@p4code/cli 0.9.12 → 0.9.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-D9zhTalS.mjs → binCli-D22yxtxv.mjs} +273 -36
  3. package/dist/client/.vite/manifest.json +2046 -2046
  4. package/dist/client/assets/{2NI2N5EU-DOvURDwM.js → 2NI2N5EU-DBKJSvEQ.js} +2 -2
  5. package/dist/client/assets/{4UO7MD6I-CArKQR6u.js → 4UO7MD6I-1JuY3zN7.js} +2 -2
  6. package/dist/client/assets/{5B3SVYGG-D3yJKYTq.js → 5B3SVYGG-CwgmePuE.js} +2 -2
  7. package/dist/client/assets/{5GK6JWQ2-C7D6qJvm.js → 5GK6JWQ2-D9VJsozU.js} +2 -2
  8. package/dist/client/assets/{5N7A7DKN-DDTV444t.js → 5N7A7DKN-CFgZoUw5.js} +2 -2
  9. package/dist/client/assets/{5OC2THR4-CYaAiBA5.js → 5OC2THR4-Cx6keXWX.js} +2 -2
  10. package/dist/client/assets/{5S6HY5KT-jYzQX9YI.js → 5S6HY5KT-Ce1reKKv.js} +2 -2
  11. package/dist/client/assets/{6IMQ5BUJ-CZSZgyOb.js → 6IMQ5BUJ-D7X0q9kf.js} +2 -2
  12. package/dist/client/assets/{6OLKWJ4F-D_TpeHsd.js → 6OLKWJ4F-YLfMA9aH.js} +2 -2
  13. package/dist/client/assets/{74OO7NKP-VJq-BY7c.js → 74OO7NKP-Wm5pZPTC.js} +2 -2
  14. package/dist/client/assets/{75O6YZUN-BCik3Y9V.js → 75O6YZUN-D2He6_fp.js} +2 -2
  15. package/dist/client/assets/{77XECAW3-Ce_-nZaY.js → 77XECAW3-CV_JLSeU.js} +2 -2
  16. package/dist/client/assets/{ABYRPUBD-C1hL61qL.js → ABYRPUBD-D0xOVN1A.js} +2 -2
  17. package/dist/client/assets/AlertDialogRoot-DaczVYX9.js +2 -0
  18. package/dist/client/assets/{AnimatedHeight-DEeywxgS.js → AnimatedHeight-yuTG4G03.js} +2 -2
  19. package/dist/client/assets/{AuthSurfaceShell-835o12nS.js → AuthSurfaceShell-CCBOJP5G.js} +2 -2
  20. package/dist/client/assets/{BB2UYUI2-DlIE2g50.js → BB2UYUI2-BdXGRPif.js} +2 -2
  21. package/dist/client/assets/{BUM34MOA-D9NQPxww.js → BUM34MOA-isqGnSvm.js} +2 -2
  22. package/dist/client/assets/{CEQABKGZ-BsiY6pPC.js → CEQABKGZ-DE0PWXRq.js} +2 -2
  23. package/dist/client/assets/{CXAC5362-t7YfF0UQ.js → CXAC5362-0Zr5tv4C.js} +2 -2
  24. package/dist/client/assets/{ChatGptUsageButton-C3xHekTe.js → ChatGptUsageButton-w6RkBCUH.js} +2 -2
  25. package/dist/client/assets/{ChatMarkdown-Cw9bEYxG.js → ChatMarkdown-CFUfXlYp.js} +5 -5
  26. package/dist/client/assets/{CheckboxIndicator-XdXpYxXy.js → CheckboxIndicator-lkbFKbE7.js} +2 -2
  27. package/dist/client/assets/{ClippedText-C-unQqBz.js → ClippedText-Bf8FSQkX.js} +2 -2
  28. package/dist/client/assets/{CodexSetupSection.logic-Bl5OcEqH.js → CodexSetupSection.logic-SHExnMKR.js} +2 -2
  29. package/dist/client/assets/{ComboboxClear-CBRGIQSm.js → ComboboxClear-B0HJXjbz.js} +2 -2
  30. package/dist/client/assets/{ComboboxGroupLabel-DVAwRoGV.js → ComboboxGroupLabel-CMc5xUrd.js} +2 -2
  31. package/dist/client/assets/{CommandBlock-D6NTupaO.js → CommandBlock-CluJmhVo.js} +2 -2
  32. package/dist/client/assets/{ComposerPromptEditor-BqLNVkse.js → ComposerPromptEditor-DR1WsmjD.js} +4 -4
  33. package/dist/client/assets/{CompositeRoot-DBS-Yo_S.js → CompositeRoot-BMHKb-nN.js} +2 -2
  34. package/dist/client/assets/{ConnectAgentSurface-TBgGDnVI.js → ConnectAgentSurface-CNWdh9ck.js} +2 -2
  35. package/dist/client/assets/{ConnectionStatusDot-CR_qWdCU.js → ConnectionStatusDot-CpmZ8NE5.js} +2 -2
  36. package/dist/client/assets/{DRLTVNUE-DkTzG_pM.js → DRLTVNUE-Dttc5MrD.js} +2 -2
  37. package/dist/client/assets/{DYY6UVD2-BBRUtn6A.js → DYY6UVD2-DTrZAR1D.js} +2 -2
  38. package/dist/client/assets/{DevicePanel-BS7y97f_.js → DevicePanel-CRFuAv_j.js} +2 -2
  39. package/dist/client/assets/{DeviceSetup-TIKLCkls.js → DeviceSetup-DRzepax4.js} +2 -2
  40. package/dist/client/assets/{DialogTitle-DzoEjZ6h.js → DialogTitle-pLX9Mw1n.js} +2 -2
  41. package/dist/client/assets/{DiffCommentAnnotation-y1CrEDvy.js → DiffCommentAnnotation-6V9nI3Cm.js} +2 -2
  42. package/dist/client/assets/{DiffFileTree-BM7RDTEn.js → DiffFileTree-CBEjDul5.js} +2 -2
  43. package/dist/client/assets/{DiffPanel-CAK_DAYa.js → DiffPanel-CM5Rvb_z.js} +2 -2
  44. package/dist/client/assets/{DiffWorkerPoolProvider-D2t5zRbN.js → DiffWorkerPoolProvider-f4-YQsHo.js} +2 -2
  45. package/dist/client/assets/{EmbeddedDesign-_id3IQO6.js → EmbeddedDesign-DSEjf0KK.js} +2 -2
  46. package/dist/client/assets/{EnvironmentMachineIcon-oObSi9GI.js → EnvironmentMachineIcon-B6wAZat7.js} +2 -2
  47. package/dist/client/assets/{ExpandableText-BLwIQ2BJ.js → ExpandableText-Cjat32hh.js} +2 -2
  48. package/dist/client/assets/{FNOVOB4O-B469NSHv.js → FNOVOB4O-LisHSqAM.js} +2 -2
  49. package/dist/client/assets/{FieldControl-Btl-j-6W.js → FieldControl-DwBVFJAI.js} +2 -2
  50. package/dist/client/assets/{FileDiff-CGLKzg3V.js → FileDiff-Bj9kBLN2.js} +2 -2
  51. package/dist/client/assets/{FilePreviewPanel-DJ-LkCJ7.js → FilePreviewPanel-z6NirC2y.js} +2 -2
  52. package/dist/client/assets/{FoldedSettingsSection-DPTJODig.js → FoldedSettingsSection-DIlgxayr.js} +2 -2
  53. package/dist/client/assets/{FormContext-Be16jmaZ.js → FormContext-DcnLkh-4.js} +2 -2
  54. package/dist/client/assets/{HDGCDEEZ-BUMQl9WF.js → HDGCDEEZ-Bn1jLSys.js} +2 -2
  55. package/dist/client/assets/{HSJLKHB7-C08sJAK2.js → HSJLKHB7-CHpiqxlA.js} +2 -2
  56. package/dist/client/assets/{Icons-2l7Ym4KO.js → Icons-Be1TL1sN.js} +2 -2
  57. package/dist/client/assets/Input-BZ1XdBC0.js +2 -0
  58. package/dist/client/assets/JZOYTAAL-BZEjBuKj.js +1 -0
  59. package/dist/client/assets/{K3MD6TGW-D4RWgVJJ.js → K3MD6TGW-D5oCFPkP.js} +2 -2
  60. package/dist/client/assets/{K7RP3OMA-B8UDebPA.js → K7RP3OMA-ZIPW--CU.js} +2 -2
  61. package/dist/client/assets/{KeybindingsSettings.logic-CCfOv-KZ.js → KeybindingsSettings.logic-Ctmq4InP.js} +2 -2
  62. package/dist/client/assets/{LHDIQX7Q-DwRY1EjH.js → LHDIQX7Q-BkDTNH4X.js} +2 -2
  63. package/dist/client/assets/{LUXOKEGN-BTGUp3oJ.js → LUXOKEGN-BMFFLlMk.js} +2 -2
  64. package/dist/client/assets/{LinkMachineSelect-DoHeQGoj.js → LinkMachineSelect-DGm4EDKi.js} +2 -2
  65. package/dist/client/assets/{MathTypeset-DZCUnfpK.js → MathTypeset-DpXMOBGY.js} +2 -2
  66. package/dist/client/assets/{N3JZAHOW-C-bkdj1S.js → N3JZAHOW-CV9TIlCo.js} +2 -2
  67. package/dist/client/assets/{NUIALGQ3-COfmKsf1.js → NUIALGQ3-WBqakHka.js} +2 -2
  68. package/dist/client/assets/{NoProjectsHero-CbIPjHEJ.js → NoProjectsHero-BfU7AxbB.js} +2 -2
  69. package/dist/client/assets/{O65XPQGZ-BPK2EL3_.js → O65XPQGZ-CYhr2tYZ.js} +2 -2
  70. package/dist/client/assets/{O7XIQ6OM-qzVUZXbW.js → O7XIQ6OM-D2JMbFqc.js} +2 -2
  71. package/dist/client/assets/{OFQON5FD-DJVnaZou.js → OFQON5FD-B1aTfx9o.js} +2 -2
  72. package/dist/client/assets/{P4ConnectAccountPages-DwBbHN5Q.js → P4ConnectAccountPages-J205rNHS.js} +2 -2
  73. package/dist/client/assets/{P4ConnectSidebarSignIn-D7VczA30.js → P4ConnectSidebarSignIn-Bc4xlsJh.js} +2 -2
  74. package/dist/client/assets/{PJQHF43J-CTXALHLE.js → PJQHF43J-Dm3RMjWi.js} +2 -2
  75. package/dist/client/assets/{PanelLayoutControls-D8g6TJ8z.js → PanelLayoutControls-BQZYES2T.js} +4 -4
  76. package/dist/client/assets/{PierreEntryIcon-CUoKY0yE.js → PierreEntryIcon-CHy821MU.js} +2 -2
  77. package/dist/client/assets/{PopoverHandle-tRSwNzqr.js → PopoverHandle-BkzqaTB6.js} +2 -2
  78. package/dist/client/assets/{PreviewPanel-cYx50TF6.js → PreviewPanel-D8V2zDl4.js} +2 -2
  79. package/dist/client/assets/{ProjectDefaultsSettings-G0FTRG0c.js → ProjectDefaultsSettings-6UkudkKP.js} +2 -2
  80. package/dist/client/assets/{ProjectFavicon-in-OyDkg.js → ProjectFavicon-LcyFYpHB.js} +3 -3
  81. package/dist/client/assets/{ProjectIconPickerDialog-JCPOaZup.js → ProjectIconPickerDialog-D03-Jrsi.js} +2 -2
  82. package/dist/client/assets/{ProjectMonogram-DdbScW3Y.js → ProjectMonogram-C8FlNLaU.js} +2 -2
  83. package/dist/client/assets/{ProviderAuthTerminal-CCw2XmNz.js → ProviderAuthTerminal-DMTbKboR.js} +2 -2
  84. package/dist/client/assets/{ProviderModelPicker-DWqfDVY9.js → ProviderModelPicker-CpWE-Lfx.js} +2 -2
  85. package/dist/client/assets/{ProviderSettingsForm-_viBEB9w.js → ProviderSettingsForm-DrCFln8c.js} +2 -2
  86. package/dist/client/assets/{PullRequestCodeTab-D3ntjIAg.js → PullRequestCodeTab-CjBrGNWY.js} +2 -2
  87. package/dist/client/assets/{RHNBAITX-BR5h8H8U.js → RHNBAITX-C7mnxleL.js} +2 -2
  88. package/dist/client/assets/{ReadOnlySourcePreview-Bx9Jebzp.js → ReadOnlySourcePreview-BasbTHVd.js} +2 -2
  89. package/dist/client/assets/{RedactedSensitiveText-DM7Kme26.js → RedactedSensitiveText-DACYfm7e.js} +2 -2
  90. package/dist/client/assets/{RenderErrorBoundary-BeYcnW7D.js → RenderErrorBoundary-CIVNp8r9.js} +2 -2
  91. package/dist/client/assets/{SLD4V6NK-DfUtjUb_.js → SLD4V6NK-BkeVs7gb.js} +2 -2
  92. package/dist/client/assets/{ScheduledTasksSettings-BcF7IiOl.js → ScheduledTasksSettings-DpYigye5.js} +2 -2
  93. package/dist/client/assets/{ScopedSwitch-CD9C3Bhs.js → ScopedSwitch-D1uscoF8.js} +2 -2
  94. package/dist/client/assets/{ScrollAreaCorner-D5JbJL5g.js → ScrollAreaCorner-DBtks1xb.js} +2 -2
  95. package/dist/client/assets/{SecretInput-ttyiYbVY.js → SecretInput-ZW3hnCoN.js} +2 -2
  96. package/dist/client/assets/{SelectScrollUpArrow-BV1xykNQ.js → SelectScrollUpArrow-Bq-GYRhT.js} +2 -2
  97. package/dist/client/assets/{SelfImproveSettingsSection-Dm8NhqV7.js → SelfImproveSettingsSection-CDIhJO4P.js} +2 -2
  98. package/dist/client/assets/{SettingsPanels-BsyJETg8.js → SettingsPanels-Co5mks6X.js} +2 -2
  99. package/dist/client/assets/{SettingsPanels.logic-DS-Semyc.js → SettingsPanels.logic-H5v8FTnu.js} +2 -2
  100. package/dist/client/assets/{SettingsScopeNotice--a-aNSRR.js → SettingsScopeNotice-gFtgpybO.js} +2 -2
  101. package/dist/client/assets/{SidebarStageBackdrop-ntSLLOvm.js → SidebarStageBackdrop-DSuAw8Ob.js} +2 -2
  102. package/dist/client/assets/{T3PCR2KE-C5JeZecU.js → T3PCR2KE-D6MHoseG.js} +2 -2
  103. package/dist/client/assets/{TKWO2OVW-B11aaxW8.js → TKWO2OVW-gZK7dLQZ.js} +2 -2
  104. package/dist/client/assets/{TSHNXIZL-2800Jt5F.js → TSHNXIZL-BKUmF3Cu.js} +2 -2
  105. package/dist/client/assets/{ThemeEditorPanel-CTXEQSgi.js → ThemeEditorPanel-lI_9CbBH.js} +2 -2
  106. package/dist/client/assets/{ThreadTerminalDrawer-DIUp50A3.js → ThreadTerminalDrawer-CD3plt2C.js} +2 -2
  107. package/dist/client/assets/{TooltipViewport-rDmof6w5.js → TooltipViewport-Be_gbUW1.js} +2 -2
  108. package/dist/client/assets/{UQJE5E4I-BG1U9EIM.js → UQJE5E4I-D6av033t.js} +2 -2
  109. package/dist/client/assets/{USNYFO5S-d4iGw5HU.js → USNYFO5S-Cy6sDMEU.js} +2 -2
  110. package/dist/client/assets/{Virtualizer-CzClYBap.js → Virtualizer-B_IsUzcr.js} +2 -2
  111. package/dist/client/assets/{WEVWDWVA-V2MwjUCO.js → WEVWDWVA-Cq1fZcng.js} +2 -2
  112. package/dist/client/assets/{WorkspaceBreadcrumb-Dpau2BKr.js → WorkspaceBreadcrumb-DbQW7iNE.js} +2 -2
  113. package/dist/client/assets/{WorkspacePageContainer-C3u06BW-.js → WorkspacePageContainer-BxI-x0oV.js} +2 -2
  114. package/dist/client/assets/{WorkspacePageHeader-MBEFb20_.js → WorkspacePageHeader-Bc_F6Uog.js} +2 -2
  115. package/dist/client/assets/{X5RFHQXM-D_mIa6o9.js → X5RFHQXM-DdtKPA-W.js} +2 -2
  116. package/dist/client/assets/{X62E3GBT-Cwvyi_iR.js → X62E3GBT-C7OjB5pB.js} +2 -2
  117. package/dist/client/assets/{XBNEOJTC-sfA1U_fe.js → XBNEOJTC-_Tbl2Kwh.js} +2 -2
  118. package/dist/client/assets/{YHV2MVVZ-CZoP6AAo.js → YHV2MVVZ-CA4YS5f4.js} +2 -2
  119. package/dist/client/assets/{YURCZMG2-DYo6rqon.js → YURCZMG2-DSnhUUsH.js} +2 -2
  120. package/dist/client/assets/{YVG2LODB-D8sTsTwc.js → YVG2LODB-D-qFsH5t.js} +2 -2
  121. package/dist/client/assets/_chat-Cnc6rxt6.js +47 -0
  122. package/dist/client/assets/{_chat.design-Nh4vxHDS.js → _chat.design-SX7SShjI.js} +2 -2
  123. package/dist/client/assets/{_chat.index-YNITFXX3.js → _chat.index-Bz1lJLpv.js} +2 -2
  124. package/dist/client/assets/{_chat.new-B16PAbQN.js → _chat.new-BEqc5oJc.js} +2 -2
  125. package/dist/client/assets/{_chat.pull-requests-DEHC0db5.js → _chat.pull-requests-A3IwVYWs.js} +2 -2
  126. package/dist/client/assets/{alert-UH7IbYie.js → alert-BOVMKHDy.js} +2 -2
  127. package/dist/client/assets/{alert-dialog-D3mCT6Vy.js → alert-dialog-Du3fYY3I.js} +2 -2
  128. package/dist/client/assets/{assetUrls-BNjjSBLP.js → assetUrls-CYjvy6P4.js} +2 -2
  129. package/dist/client/assets/{assets-CrCgj2yM.js → assets-JgE2I_Ix.js} +2 -2
  130. package/dist/client/assets/{browserHistoryStore-CW_ylkPy.js → browserHistoryStore-CdncPjG8.js} +2 -2
  131. package/dist/client/assets/{browserLinkTarget-Dlnk6CC2.js → browserLinkTarget-Bf9H9UVe.js} +2 -2
  132. package/dist/client/assets/{checkbox-Bqcsvpsf.js → checkbox-d50pgAVe.js} +2 -2
  133. package/dist/client/assets/{color-picker-DAcpRn0k.js → color-picker-zcQshxaE.js} +2 -2
  134. package/dist/client/assets/{combobox-CoLp0McG.js → combobox-BrCd1kH5.js} +2 -2
  135. package/dist/client/assets/{command-cKnhWwdw.js → command-DFkhX6wm.js} +2 -2
  136. package/dist/client/assets/{connect-rbXRyqde.js → connect-DkH09d_M.js} +2 -2
  137. package/dist/client/assets/connect-agent-DJHm1Ubj.js +2 -0
  138. package/dist/client/assets/{design-BJbd-4a9.js → design-DrpehYJf.js} +2 -2
  139. package/dist/client/assets/{device-BqGYZxfg.js → device-Nh7DArH7.js} +2 -2
  140. package/dist/client/assets/{dialog-CjB1WWbE.js → dialog-BpR3dRVS.js} +2 -2
  141. package/dist/client/assets/{diffRendering-JsGpyVJ1.js → diffRendering-BuOJdnZ8.js} +2 -2
  142. package/dist/client/assets/{dist-D4GndTOF.js → dist-CMJL98Oz.js} +3 -3
  143. package/dist/client/assets/{draft-input-1ySc55QI.js → draft-input-CzfhM72Z.js} +2 -2
  144. package/dist/client/assets/{duoViewer-DvlUJy5A.js → duoViewer-ChrCWcjO.js} +2 -2
  145. package/dist/client/assets/{dynamic-B8PD-aHj.js → dynamic-CVt07u2H.js} +2 -2
  146. package/dist/client/assets/{embeddedScripts-ByokzHX1.js → embeddedScripts-BWqMWwOU.js} +2 -2
  147. package/dist/client/assets/{empty-CMnFXg8W.js → empty-Cy-8us9l.js} +2 -2
  148. package/dist/client/assets/{entities-CTJ1ube2.js → entities-aKdRyfsJ.js} +2 -2
  149. package/dist/client/assets/{fileLinks-lUzqPrjb.js → fileLinks-BgHa8yE4.js} +2 -2
  150. package/dist/client/assets/{fileTreeExpansion-B6sjoSXU.js → fileTreeExpansion-CBn1SzSX.js} +2 -2
  151. package/dist/client/assets/{getDiffFileInput-Bt5vSiss.js → getDiffFileInput-IQ1TDM4E.js} +2 -2
  152. package/dist/client/assets/{guideRunStore-DFawhaj_.js → guideRunStore-DfNfJUIu.js} +2 -2
  153. package/dist/client/assets/{htmlRender-DJLbbd4O.js → htmlRender-lwQ3HyqS.js} +2 -2
  154. package/dist/client/assets/{index-CxLeDuff.js → index-BXvrSYK3.js} +3 -3
  155. package/dist/client/assets/{input-CSgYZgdv.js → input-FUjAUGXY.js} +2 -2
  156. package/dist/client/assets/{input-group-a-sGQMiV.js → input-group-BdZ_CKvG.js} +2 -2
  157. package/dist/client/assets/{kbd-D3uRVBMx.js → kbd-CGgmav-Q.js} +2 -2
  158. package/dist/client/assets/{keybindings-B9X0TLvu.js → keybindings-DuCyi9aT.js} +2 -2
  159. package/dist/client/assets/{lazy-C_hQh3dP.js → lazy-Bs2SFpYS.js} +4 -4
  160. package/dist/client/assets/{lazyRouteComponent-GMfIUG8o.js → lazyRouteComponent-CYNRqeNP.js} +2 -2
  161. package/dist/client/assets/{link-BmkuqfGQ.js → link-DW1IQk5s.js} +2 -2
  162. package/dist/client/assets/{linkedPrompt-BNxBPorU.js → linkedPrompt-yo2xi4Z8.js} +2 -2
  163. package/dist/client/assets/{main-DIEsHSIy.js → main-C0z861OK.js} +7 -7
  164. package/dist/client/assets/{mediaReference-CVS-Yvam.js → mediaReference-BQ9J-tjl.js} +2 -2
  165. package/dist/client/assets/{mediaSource-DQsJoeCH.js → mediaSource-BLpxwEw3.js} +2 -2
  166. package/dist/client/assets/{number-field-Bw2BDGyn.js → number-field-Pve745k3.js} +2 -2
  167. package/dist/client/assets/{observeResize-Br7VOcTc.js → observeResize-CZuDzlcZ.js} +2 -2
  168. package/dist/client/assets/{onboarding-D6kvYnD1.js → onboarding-CE8pzS12.js} +2 -2
  169. package/dist/client/assets/{openFileInPreview-52PEk4wb.js → openFileInPreview-Dns9tPaB.js} +2 -2
  170. package/dist/client/assets/{p4ProjectFile-B1qTw64E.js → p4ProjectFile-jwYvYDE-.js} +2 -2
  171. package/dist/client/assets/{pair-Das8G2kV.js → pair-OPslYcM9.js} +2 -2
  172. package/dist/client/assets/{pendingSendStore-B1MXHU-Y.js → pendingSendStore-CLwMM17y.js} +2 -2
  173. package/dist/client/assets/{phoneViewer-iWL9Ocv_.js → phoneViewer-CkTxyA9N.js} +2 -2
  174. package/dist/client/assets/{pierre-icons-CyZxWykW.js → pierre-icons-DY8ZeGCr.js} +2 -2
  175. package/dist/client/assets/{popover-Cpc0L75h.js → popover-hYAmvSJj.js} +2 -2
  176. package/dist/client/assets/{preview-DRZGCh-w.js → preview-CI9HEdfV.js} +2 -2
  177. package/dist/client/assets/{preview-CDQ5ceMi.js → preview-YhZE3kRt.js} +2 -2
  178. package/dist/client/assets/{previewMiniPlayerStore-Dd2KfilQ.js → previewMiniPlayerStore-DUPe1gGI.js} +2 -2
  179. package/dist/client/assets/{primary-YDhFfOF8.js → primary-BlS2rEKe.js} +2 -2
  180. package/dist/client/assets/{primaryCloudLinkState-kvnCGEBC.js → primaryCloudLinkState-CyPf4N0F.js} +2 -2
  181. package/dist/client/assets/{projectFilesQueryState-DvEcN38K.js → projectFilesQueryState-BdWJ4WwI.js} +2 -2
  182. package/dist/client/assets/{projectScriptEditor-lOSI5meb.js → projectScriptEditor-C0FBhCbn.js} +2 -2
  183. package/dist/client/assets/{providerSkills-CRmME5qO.js → providerSkills-Ca_7EbAx.js} +2 -2
  184. package/dist/client/assets/{pullRequestDetail.logic-CXEtJJcn.js → pullRequestDetail.logic-DYx7bEwE.js} +2 -2
  185. package/dist/client/assets/{pullRequestIcons-D8Koo716.js → pullRequestIcons-csprKuju.js} +2 -2
  186. package/dist/client/assets/{pullRequestReviewStore-CpLjLBJR.js → pullRequestReviewStore-_uEYgfaW.js} +2 -2
  187. package/dist/client/assets/{pullRequests-DKqH-UAm.js → pullRequests-B85p5Xnw.js} +2 -2
  188. package/dist/client/assets/{queries-eqpX-CHf.js → queries-B0FvRKmk.js} +2 -2
  189. package/dist/client/assets/{query-D5Kb9u_z.js → query-B2_Td0ad.js} +2 -2
  190. package/dist/client/assets/{radio-group-DpxVKrML.js → radio-group-IyWHDcIP.js} +2 -2
  191. package/dist/client/assets/{renderScheduler-B1rJHKDM.js → renderScheduler-DR2WAtIH.js} +2 -2
  192. package/dist/client/assets/{rightPanelStore-DQ1c3-Lt.js → rightPanelStore-rZSIb-5z.js} +2 -2
  193. package/dist/client/assets/{runtime-DCbEdU32.js → runtime-BK2Lh1vB.js} +3 -3
  194. package/dist/client/assets/{runtime-DeVKKxNz.js → runtime-BVmDVuJ-.js} +3 -3
  195. package/dist/client/assets/{runtimeModeConfig-CZCsG9b4.js → runtimeModeConfig-DFxXOIlV.js} +2 -2
  196. package/dist/client/assets/{scheduledTasksSettings.logic-gN3n5v-e.js → scheduledTasksSettings.logic-W9AQpJk4.js} +2 -2
  197. package/dist/client/assets/{scroll-area-C9Jh_pl0.js → scroll-area-Cf7uLi_s.js} +2 -2
  198. package/dist/client/assets/{select-oshTwPZM.js → select-vBkqTMKL.js} +2 -2
  199. package/dist/client/assets/selfImproveFindings-4GGN9cRm.js +2 -0
  200. package/dist/client/assets/{server-Ct4-BCZx.js → server-DwkxciXh.js} +2 -2
  201. package/dist/client/assets/{session-Bb7JWdWO.js → session-BIwsf8Q4.js} +2 -2
  202. package/dist/client/assets/{session-logic-D0Wb0fc2.js → session-logic-D8FbVFDm.js} +2 -2
  203. package/dist/client/assets/{settings-CQtFOh_t.js → settings-C58Y7hMl.js} +2 -2
  204. package/dist/client/assets/{settings.appearance-CqHPJVJ2.js → settings.appearance-C9ZmuG-n.js} +2 -2
  205. package/dist/client/assets/settings.archived-BxqS4kuW.js +2 -0
  206. package/dist/client/assets/{settings.computer-use-CDrWkvkD.js → settings.computer-use-CeIs-8zf.js} +2 -2
  207. package/dist/client/assets/{settings.connections-CHXX5kH0.js → settings.connections-CEr4PdrJ.js} +2 -2
  208. package/dist/client/assets/{settings.data-controls-Bd79f82M.js → settings.data-controls-BbzJxjBi.js} +2 -2
  209. package/dist/client/assets/{settings.decisions-B-i781li.js → settings.decisions-DagsCV4K.js} +2 -2
  210. package/dist/client/assets/{settings.designs-DpX9xXFH.js → settings.designs-DEThhuEj.js} +2 -2
  211. package/dist/client/assets/{settings.diagnostics-Du6_cMwQ.js → settings.diagnostics-DdsecwWn.js} +2 -2
  212. package/dist/client/assets/{settings.general-6bgZAoM7.js → settings.general-RgU1jNmB.js} +2 -2
  213. package/dist/client/assets/{settings.integrations-Ct8ruO3E.js → settings.integrations-CO-aLXSC.js} +2 -2
  214. package/dist/client/assets/{settings.keybindings-DzB2I9OY.js → settings.keybindings-CU8fBQaI.js} +2 -2
  215. package/dist/client/assets/{settings.open-source-licenses-C-RX63iR.js → settings.open-source-licenses-rG8Neftl.js} +2 -2
  216. package/dist/client/assets/{settings.plugins-CqpVlMrk.js → settings.plugins-Dr0VpcPy.js} +2 -2
  217. package/dist/client/assets/{settings.projects-DosfFxrs.js → settings.projects-hxwk8_7r.js} +3 -3
  218. package/dist/client/assets/{settings.providers-DKgzTRpw.js → settings.providers-D5-Kj1jY.js} +3 -3
  219. package/dist/client/assets/{settings.scheduled-tasks-Ca4XxyAg.js → settings.scheduled-tasks-DwUd14Xj.js} +2 -2
  220. package/dist/client/assets/{settings.snap-shot-BkSOnsJ3.js → settings.snap-shot-CTMJRtJe.js} +2 -2
  221. package/dist/client/assets/{settings.source-control-uZ0ges0j.js → settings.source-control-BHD5KE8W.js} +2 -2
  222. package/dist/client/assets/{settings.storage-BkURtSS0.js → settings.storage-Bhd9ragP.js} +2 -2
  223. package/dist/client/assets/{settingsLayout-krWuVpsF.js → settingsLayout-WhjsCfB6.js} +2 -2
  224. package/dist/client/assets/{sidebar-PSpwc3Zu.js → sidebar-O52WtiJv.js} +2 -2
  225. package/dist/client/assets/{sidebarProjectGrouping-D02jVAL6.js → sidebarProjectGrouping-BYVdJp_w.js} +2 -2
  226. package/dist/client/assets/{skeleton-DIPW_H7N.js → skeleton-PlPtYr_f.js} +2 -2
  227. package/dist/client/assets/{sourceControl-B9aMMjp2.js → sourceControl-BkJeQRrv.js} +2 -2
  228. package/dist/client/assets/{sourceControlClients-XtdH6kjx.js → sourceControlClients-CtMx7u86.js} +2 -2
  229. package/dist/client/assets/{spinner-BeAnBYcY.js → spinner-BZ5ohCyO.js} +2 -2
  230. package/dist/client/assets/{terminal-links-CYEBYRi6.js → terminal-links-UI2UJn0y.js} +2 -2
  231. package/dist/client/assets/{terminalSessions-C2k3TT8f.js → terminalSessions-C1xOLG3i.js} +2 -2
  232. package/dist/client/assets/{textarea-DBTtAB2q.js → textarea-DIg__-Gi.js} +2 -2
  233. package/dist/client/assets/{themePalette-Uk7bx8zb.js → themePalette-BMlBfFUx.js} +2 -2
  234. package/dist/client/assets/{toast-Dkj3G-UM.js → toast-BZ96uuab.js} +2 -2
  235. package/dist/client/assets/{toggle-DYYe3Gb8.js → toggle-DJ8KOwn5.js} +2 -2
  236. package/dist/client/assets/{toggle-group-hQw0fxkT.js → toggle-group-2e3XGJdx.js} +2 -2
  237. package/dist/client/assets/{tooltip-BeHmtauD.js → tooltip-BPiLl1TV.js} +2 -2
  238. package/dist/client/assets/{uiStateStore-Cd96D_GT.js → uiStateStore-4i21PZUL.js} +2 -2
  239. package/dist/client/assets/{usage-ChIGOn5O.js → usage-uuNPbJve.js} +2 -2
  240. package/dist/client/assets/{usageAccess-DTKEwCKL.js → usageAccess-CsMv6eC9.js} +2 -2
  241. package/dist/client/assets/{usageFormat-D1mf8I5d.js → usageFormat-DhefL58S.js} +2 -2
  242. package/dist/client/assets/{usageShortcuts-C0jTsdR4.js → usageShortcuts-CREc0FBr.js} +2 -2
  243. package/dist/client/assets/{use-atom-command-D4TeQyNE.js → use-atom-command-CdV5BZYB.js} +2 -2
  244. package/dist/client/assets/{useAriaLabelledBy-Cod6bMX5.js → useAriaLabelledBy-CYRfRdAq.js} +2 -2
  245. package/dist/client/assets/{useHandleNewThread-CJ3yJ6tD.js → useHandleNewThread-BsnMrEPr.js} +2 -2
  246. package/dist/client/assets/{useLocation-DNv7cb59.js → useLocation-DHd-KBb-.js} +2 -2
  247. package/dist/client/assets/{useNavigate-PfhtEZbl.js → useNavigate-AZUCIeU4.js} +2 -2
  248. package/dist/client/assets/{useNavigateBack-DUje4FcE.js → useNavigateBack-C7DkQuEE.js} +2 -2
  249. package/dist/client/assets/{useP4ConnectAuthPrompt-evKe5nuS.js → useP4ConnectAuthPrompt-u1GHgwlc.js} +2 -2
  250. package/dist/client/assets/{useParams-CzC0HF0R.js → useParams-rbhXoEw9.js} +2 -2
  251. package/dist/client/assets/{usePermissionStatus-BUDWSxLm.js → usePermissionStatus-DHzE_VGG.js} +2 -2
  252. package/dist/client/assets/{usePullRequestActions-Cxt5UQ0d.js → usePullRequestActions-Cv12eqOn.js} +2 -2
  253. package/dist/client/assets/{useRegisterFieldControl-B4MJ2axN.js → useRegisterFieldControl-D4FG4i3_.js} +2 -2
  254. package/dist/client/assets/{useScopedModelAvailability-ujoqpGuE.js → useScopedModelAvailability-D6cbxQLl.js} +2 -2
  255. package/dist/client/assets/{useSettings-Cg0O7Ek7.js → useSettings-B09a3zie.js} +2 -2
  256. package/dist/client/assets/utils-C5GGWTfe.js +37 -0
  257. package/dist/client/assets/{vcsRefInvalidation-B5V_HlR9.js → vcsRefInvalidation-B66hRx4g.js} +2 -2
  258. package/dist/client/assets/{welcome-DqtsIjdN.js → welcome-D2-tjFV3.js} +2 -2
  259. package/dist/client/index.html +1 -1
  260. package/dist/{renderer-CmxAcIV2.mjs → renderer-CuqsXHrO.mjs} +2 -2
  261. package/dist/{runtime-CAtWuL14.mjs → runtime-CWPUW_8Y.mjs} +24 -7
  262. package/package.json +1 -1
  263. package/dist/client/assets/AlertDialogRoot-C6RQ4Ag-.js +0 -2
  264. package/dist/client/assets/Input--rtZ2Jji.js +0 -2
  265. package/dist/client/assets/JZOYTAAL-PmkwTnld.js +0 -1
  266. package/dist/client/assets/_chat-DNoJniWX.js +0 -47
  267. package/dist/client/assets/connect-agent-CsvW078q.js +0 -2
  268. package/dist/client/assets/selfImproveFindings-DUmfxmCO.js +0 -2
  269. package/dist/client/assets/settings.archived-DDtPGPcJ.js +0 -2
  270. package/dist/client/assets/utils-CcBaVOX5.js +0 -37
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{$c as i,Ht as a,Lb as o,Pt as ee,Ut as s,Yt as c,fr as l,ns as u,t as d}from"./utils-CcBaVOX5.js";import{a as f,c as p,o as m,s as h,t as g}from"./select-oshTwPZM.js";import{f as _,t as v}from"./server-Ct4-BCZx.js";import{n as y}from"./query-D5Kb9u_z.js";import{t as b}from"./use-atom-command-D4TeQyNE.js";import{i as x}from"./usageFormat-D1mf8I5d.js";import{t as S}from"./input-CSgYZgdv.js";import{F as C,V as w,a as T,n as E,s as D}from"./settingsLayout-krWuVpsF.js";import{t as O}from"./ProviderModelPicker-DWqfDVY9.js";import{i as k}from"./selfImproveFindings-DUmfxmCO.js";var A=n(),j={off:`Off`,shadow:`Record decisions only`,dispatch:`Review turns`},M={off:`Finished turns are not checked.`,shadow:`Decisions judges finished turns; nothing is reviewed.`,dispatch:`Reviewers suggest memories from turns Decisions judges worth a review.`};function N(e){return e.checkedTurns===0||e.lastCheckedAt===null?null:`${`${e.checkedTurns} ${e.checkedTurns===1?`turn`:`turns`} checked`} · ${e.reviewTurns} worth a review · last ${x(e.lastCheckedAt)}`}function te(e){return e.mode===`off`?null:e.hasDecisionKey?e.mode===`dispatch`&&e.reviewerCount===0?`Choose a reviewer below. Without one, no review runs.`:null:`Needs an OpenRouter key above. No turn is judged until one is saved.`}function P(e,t,n){if(n===null)return e.filter((e,n)=>n!==t);let r=e[t],i=r&&r.instanceId===n.instanceId&&r.model===n.model?r:{instanceId:n.instanceId,model:n.model};return t<e.length?e.map((e,n)=>n===t?i:e):[...e,i]}var F=e(t(),1),I=e(r(),1),ne=o(i);function L(e){let t=(0,A.c)(8),n=!e.open,r=e.open?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`,i;t[0]===r?i=t[1]:(i=d(`grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-opacity`,r),t[0]=r,t[1]=i);let a;t[2]===e.children?a=t[3]:(a=(0,I.jsx)(`div`,{className:`min-h-0 overflow-hidden`,children:e.children}),t[2]=e.children,t[3]=a);let o;return t[4]!==n||t[5]!==i||t[6]!==a?(o=(0,I.jsx)(`div`,{inert:n,className:i,children:a}),t[4]=n,t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function R(e){let[t,n]=(0,F.useState)(e);return e!==null&&e!==t&&n(e),t}function z(e){let t=(0,A.c)(6),n=R(e.text),r=e.text!==null,i=e.text?`status`:void 0,a;t[0]!==n||t[1]!==i?(a=(0,I.jsx)(`p`,{role:i,className:`pt-0.5 text-xs text-warning`,children:n}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let o;return t[3]!==r||t[4]!==a?(o=(0,I.jsx)(L,{open:r,children:a}),t[3]=r,t[4]=a,t[5]=o):o=t[5],o}function B(){let e=(0,A.c)(3),{scope:t,environment:n}=w(),r=t.environmentIds.length===1?n?.environmentId??null:null,i=n?.connection.phase===`connected`&&n.serverConfig!==null,a;return e[0]!==i||e[1]!==r?(a=(0,I.jsx)(D,{title:`Self-improvement`,children:r&&i?(0,I.jsx)(V,{environmentId:r}):(0,I.jsx)(T,{title:`Review finished turns`,description:`Pick a single connected environment to set up self-improvement for it.`})}),e[0]=i,e[1]=r,e[2]=a):a=e[2],a}function V(e){let t=(0,A.c)(57),{environmentId:n}=e,{environment:r,target:o}=w(),d=C(),f;t[0]===n?f=t[1]:(f=_.selfImproveSettingsLive({environmentId:n,input:{}}),t[0]=n,t[1]=f);let x=y(f),S;t[2]===n?S=t[3]:(S=_.updateSelfImproveSettings.permissionAtom(n),t[2]=n,t[3]=S);let D=u(S),k=b(_.updateSelfImproveSettings),[L,R]=(0,F.useState)(!1),B=x.data,V=r?.serverConfig?.providers??v,U,W,G,K;if(t[4]!==D||t[5]!==n||t[6]!==L||t[7]!==B||t[8]!==x.error||t[9]!==d||t[10]!==V||t[11]!==o?.projectId||t[12]!==k){K=Symbol.for(`react.early_return_sentinel`);bb0:{let e=V.filter(ae),r=c(a(s(e),d,o?.projectId??null)),u=r.find(ie);if(!B){let e=x.error?`Couldn't load self-improvement settings.`:`Loading…`,n;t[17]===e?n=t[18]:(n=(0,I.jsx)(T,{title:`Review finished turns`,status:e}),t[17]=e,t[18]=n),K=n;break bb0}let f=!D||L,_;t[19]!==n||t[20]!==k?(_=async e=>{R(!0),await k({environmentId:n,input:e}),R(!1)},t[19]=n,t[20]=k,t[21]=_):_=t[21];let v=_,y=B.mode===`dispatch`,b=B.mode,S=!!d.decisionOpenRouterKey,C;t[22]!==B.mode||t[23]!==B.reviewers.length||t[24]!==S?(C=te({mode:b,hasDecisionKey:S,reviewerCount:B.reviewers.length}),t[22]=B.mode,t[23]=B.reviewers.length,t[24]=S,t[25]=C):C=t[25];let w=C,A=t=>{let i=B.reviewers[t],a=t===0||B.reviewers.length>0,o=i?r.find(e=>e.instanceId===i.instanceId):void 0,s=i&&(!o||!o.enabled||!o.isAvailable)?`${o?.displayName??i.instanceId} is unavailable, so this reviewer is skipped.`:null,c=t===0?`First reviewer`:`Second reviewer`;return(0,I.jsx)(T,{title:c,"aria-disabled":!y||!a||void 0,className:`transition-opacity duration-200 ease-out motion-reduce:transition-none`,status:(0,I.jsx)(z,{text:y?s:null}),control:i||u?(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[(0,I.jsx)(O,{environmentId:n,activeInstanceId:i?.instanceId??u.instanceId,model:i?.model??``,lockedProvider:null,instanceEntries:r,modelOptionsByInstance:ee(d,e,i?.instanceId??null,i?.model??null),triggerClassName:E,triggerAriaLabel:c,...i?{}:{triggerLabel:`Choose model`},disabled:f||!y||!a,onInstanceModelChange:(e,n)=>void v({mode:B.mode,reviewers:P(B.reviewers,t,{instanceId:e,model:n})})}),i?(0,I.jsx)(l,{size:`sm`,variant:`outline`,disabled:f||!y,onClick:()=>void v({mode:B.mode,reviewers:P(B.reviewers,t,null)}),children:`Remove`}):null]}):(0,I.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`No reviewer models available.`})},c)},F=M[B.mode],H;t[26]===B?H=t[27]:(H=N(B),t[26]=B,t[27]=H);let q;t[28]===w?q=t[29]:(q=(0,I.jsx)(z,{text:w}),t[28]=w,t[29]=q);let J;t[30]!==H||t[31]!==q?(J=(0,I.jsxs)(I.Fragment,{children:[H,q]}),t[30]=H,t[31]=q,t[32]=J):J=t[32];let Y;t[33]!==B.mode||t[34]!==B.reviewers||t[35]!==v?(Y=e=>{ne(e)&&e!==B.mode&&v({mode:e,reviewers:B.reviewers})},t[33]=B.mode,t[34]=B.reviewers,t[35]=v,t[36]=Y):Y=t[36];let X=j[B.mode],Z;t[37]===X?Z=t[38]:(Z=(0,I.jsx)(h,{"aria-label":`Review finished turns`,children:(0,I.jsx)(p,{children:X})}),t[37]=X,t[38]=Z);let Q;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,I.jsx)(m,{children:i.literals.map(re)}),t[39]=Q):Q=t[39];let $;t[40]!==f||t[41]!==B.mode||t[42]!==Y||t[43]!==Z?($=(0,I.jsxs)(g,{value:B.mode,disabled:f,onValueChange:Y,children:[Z,Q]}),t[40]=f,t[41]=B.mode,t[42]=Y,t[43]=Z,t[44]=$):$=t[44],t[45]!==F||t[46]!==J||t[47]!==$?(U=(0,I.jsx)(T,{id:`self-improve-mode`,title:`Review finished turns`,description:F,status:J,control:$}),t[45]=F,t[46]=J,t[47]=$,t[48]=U):U=t[48],W=A(0),G=A(1)}t[4]=D,t[5]=n,t[6]=L,t[7]=B,t[8]=x.error,t[9]=d,t[10]=V,t[11]=o?.projectId,t[12]=k,t[13]=U,t[14]=W,t[15]=G,t[16]=K}else U=t[13],W=t[14],G=t[15],K=t[16];if(K!==Symbol.for(`react.early_return_sentinel`))return K;let q;t[49]!==n||t[50]!==B.memoryMirror?(q=(0,I.jsx)(H,{environmentId:n,mirror:B.memoryMirror}),t[49]=n,t[50]=B.memoryMirror,t[51]=q):q=t[51];let J;return t[52]!==U||t[53]!==W||t[54]!==G||t[55]!==q?(J=(0,I.jsxs)(I.Fragment,{children:[U,W,G,q]}),t[52]=U,t[53]=W,t[54]=G,t[55]=q,t[56]=J):J=t[56],J}function re(e){return(0,I.jsx)(f,{value:e,children:j[e]},e)}function ie(e){return e.enabled&&e.isAvailable}function ae(e){return e.supportsTextGeneration!==!1}function H(e){let t=(0,A.c)(37),[n,r]=(0,F.useState)(``),[i,a]=(0,F.useState)(!1),[o,ee]=(0,F.useState)(null),s;t[0]===e.environmentId?s=t[1]:(s=_.setSelfImproveMemoryMirror.permissionAtom(e.environmentId),t[0]=e.environmentId,t[1]=s);let c=u(s),d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[2]=d):d=t[2];let f=b(_.setSelfImproveMemoryMirror,d),p=!c||i,m;t[3]!==e.environmentId||t[4]!==f?(m=async t=>{a(!0);let n=k(await f({environmentId:e.environmentId,input:{memoryMirror:t}}),`Couldn't set the mirror.`);ee(n.ok?null:n.message),n.ok&&r(``),a(!1)},t[3]=e.environmentId,t[4]=f,t[5]=m):m=t[5];let h=m,g=e.mirror??`Not mirrored`,v;t[6]===o?v=t[7]:(v=(0,I.jsx)(z,{text:o}),t[6]=o,t[7]=v);let y;t[8]!==g||t[9]!==v?(y=(0,I.jsxs)(I.Fragment,{children:[g,v]}),t[8]=g,t[9]=v,t[10]=y):y=t[10];let x;t[11]!==p||t[12]!==h||t[13]!==n?(x=e=>{e.preventDefault(),n.trim()&&!p&&h(n.trim())},t[11]=p,t[12]=h,t[13]=n,t[14]=x):x=t[14];let C=e.mirror?`Replace repository path`:`/path/to/repository`,w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>r(e.target.value),t[15]=w):w=t[15];let E;t[16]!==p||t[17]!==n||t[18]!==C?(E=(0,I.jsx)(`div`,{className:`min-w-40 flex-1`,children:(0,I.jsx)(S,{"aria-label":`Mirror saved memory`,autoComplete:`off`,value:n,disabled:p,placeholder:C,onChange:w})}),t[16]=p,t[17]=n,t[18]=C,t[19]=E):E=t[19];let D;t[20]!==p||t[21]!==n?(D=p||!n.trim(),t[20]=p,t[21]=n,t[22]=D):D=t[22];let O;t[23]===D?O=t[24]:(O=(0,I.jsx)(l,{type:`submit`,size:`sm`,disabled:D,children:`Save`}),t[23]=D,t[24]=O);let j;t[25]!==p||t[26]!==h||t[27]!==e.mirror?(j=e.mirror?(0,I.jsx)(l,{type:`button`,size:`sm`,variant:`outline`,disabled:p,onClick:()=>void h(null),children:`Remove`}):null,t[25]=p,t[26]=h,t[27]=e.mirror,t[28]=j):j=t[28];let M;t[29]!==O||t[30]!==j||t[31]!==x||t[32]!==E?(M=(0,I.jsxs)(`form`,{className:`flex max-w-lg flex-wrap items-center gap-2 pb-2`,onSubmit:x,children:[E,O,j]}),t[29]=O,t[30]=j,t[31]=x,t[32]=E,t[33]=M):M=t[33];let N;return t[34]!==M||t[35]!==y?(N=(0,I.jsx)(T,{title:`Mirror saved memory`,description:`A git checkout. Each save copies the changed files into its memory folder, commits them on the default branch, and pushes.`,status:y,children:M}),t[34]=M,t[35]=y,t[36]=N):N=t[36],N}export{B as n,z as r,L as t};
2
- //# sourceMappingURL=SelfImproveSettingsSection-Dm8NhqV7.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{$c as i,Ht as a,Lb as o,Pt as ee,Ut as s,Yt as c,fr as l,ns as u,t as d}from"./utils-C5GGWTfe.js";import{a as f,c as p,o as m,s as h,t as g}from"./select-vBkqTMKL.js";import{f as _,t as v}from"./server-DwkxciXh.js";import{n as y}from"./query-B2_Td0ad.js";import{t as b}from"./use-atom-command-CdV5BZYB.js";import{i as x}from"./usageFormat-DhefL58S.js";import{t as S}from"./input-FUjAUGXY.js";import{F as C,V as w,a as T,n as E,s as D}from"./settingsLayout-WhjsCfB6.js";import{t as O}from"./ProviderModelPicker-CpWE-Lfx.js";import{i as k}from"./selfImproveFindings-4GGN9cRm.js";var A=n(),j={off:`Off`,shadow:`Record decisions only`,dispatch:`Review turns`},M={off:`Finished turns are not checked.`,shadow:`Decisions judges finished turns; nothing is reviewed.`,dispatch:`Reviewers suggest memories from turns Decisions judges worth a review.`};function N(e){return e.checkedTurns===0||e.lastCheckedAt===null?null:`${`${e.checkedTurns} ${e.checkedTurns===1?`turn`:`turns`} checked`} · ${e.reviewTurns} worth a review · last ${x(e.lastCheckedAt)}`}function te(e){return e.mode===`off`?null:e.hasDecisionKey?e.mode===`dispatch`&&e.reviewerCount===0?`Choose a reviewer below. Without one, no review runs.`:null:`Needs an OpenRouter key above. No turn is judged until one is saved.`}function P(e,t,n){if(n===null)return e.filter((e,n)=>n!==t);let r=e[t],i=r&&r.instanceId===n.instanceId&&r.model===n.model?r:{instanceId:n.instanceId,model:n.model};return t<e.length?e.map((e,n)=>n===t?i:e):[...e,i]}var F=e(t(),1),I=e(r(),1),ne=o(i);function L(e){let t=(0,A.c)(8),n=!e.open,r=e.open?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`,i;t[0]===r?i=t[1]:(i=d(`grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-opacity`,r),t[0]=r,t[1]=i);let a;t[2]===e.children?a=t[3]:(a=(0,I.jsx)(`div`,{className:`min-h-0 overflow-hidden`,children:e.children}),t[2]=e.children,t[3]=a);let o;return t[4]!==n||t[5]!==i||t[6]!==a?(o=(0,I.jsx)(`div`,{inert:n,className:i,children:a}),t[4]=n,t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function R(e){let[t,n]=(0,F.useState)(e);return e!==null&&e!==t&&n(e),t}function z(e){let t=(0,A.c)(6),n=R(e.text),r=e.text!==null,i=e.text?`status`:void 0,a;t[0]!==n||t[1]!==i?(a=(0,I.jsx)(`p`,{role:i,className:`pt-0.5 text-xs text-warning`,children:n}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let o;return t[3]!==r||t[4]!==a?(o=(0,I.jsx)(L,{open:r,children:a}),t[3]=r,t[4]=a,t[5]=o):o=t[5],o}function B(){let e=(0,A.c)(3),{scope:t,environment:n}=w(),r=t.environmentIds.length===1?n?.environmentId??null:null,i=n?.connection.phase===`connected`&&n.serverConfig!==null,a;return e[0]!==i||e[1]!==r?(a=(0,I.jsx)(D,{title:`Self-improvement`,children:r&&i?(0,I.jsx)(V,{environmentId:r}):(0,I.jsx)(T,{title:`Review finished turns`,description:`Pick a single connected environment to set up self-improvement for it.`})}),e[0]=i,e[1]=r,e[2]=a):a=e[2],a}function V(e){let t=(0,A.c)(57),{environmentId:n}=e,{environment:r,target:o}=w(),d=C(),f;t[0]===n?f=t[1]:(f=_.selfImproveSettingsLive({environmentId:n,input:{}}),t[0]=n,t[1]=f);let x=y(f),S;t[2]===n?S=t[3]:(S=_.updateSelfImproveSettings.permissionAtom(n),t[2]=n,t[3]=S);let D=u(S),k=b(_.updateSelfImproveSettings),[L,R]=(0,F.useState)(!1),B=x.data,V=r?.serverConfig?.providers??v,U,W,G,K;if(t[4]!==D||t[5]!==n||t[6]!==L||t[7]!==B||t[8]!==x.error||t[9]!==d||t[10]!==V||t[11]!==o?.projectId||t[12]!==k){K=Symbol.for(`react.early_return_sentinel`);bb0:{let e=V.filter(ae),r=c(a(s(e),d,o?.projectId??null)),u=r.find(ie);if(!B){let e=x.error?`Couldn't load self-improvement settings.`:`Loading…`,n;t[17]===e?n=t[18]:(n=(0,I.jsx)(T,{title:`Review finished turns`,status:e}),t[17]=e,t[18]=n),K=n;break bb0}let f=!D||L,_;t[19]!==n||t[20]!==k?(_=async e=>{R(!0),await k({environmentId:n,input:e}),R(!1)},t[19]=n,t[20]=k,t[21]=_):_=t[21];let v=_,y=B.mode===`dispatch`,b=B.mode,S=!!d.decisionOpenRouterKey,C;t[22]!==B.mode||t[23]!==B.reviewers.length||t[24]!==S?(C=te({mode:b,hasDecisionKey:S,reviewerCount:B.reviewers.length}),t[22]=B.mode,t[23]=B.reviewers.length,t[24]=S,t[25]=C):C=t[25];let w=C,A=t=>{let i=B.reviewers[t],a=t===0||B.reviewers.length>0,o=i?r.find(e=>e.instanceId===i.instanceId):void 0,s=i&&(!o||!o.enabled||!o.isAvailable)?`${o?.displayName??i.instanceId} is unavailable, so this reviewer is skipped.`:null,c=t===0?`First reviewer`:`Second reviewer`;return(0,I.jsx)(T,{title:c,"aria-disabled":!y||!a||void 0,className:`transition-opacity duration-200 ease-out motion-reduce:transition-none`,status:(0,I.jsx)(z,{text:y?s:null}),control:i||u?(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[(0,I.jsx)(O,{environmentId:n,activeInstanceId:i?.instanceId??u.instanceId,model:i?.model??``,lockedProvider:null,instanceEntries:r,modelOptionsByInstance:ee(d,e,i?.instanceId??null,i?.model??null),triggerClassName:E,triggerAriaLabel:c,...i?{}:{triggerLabel:`Choose model`},disabled:f||!y||!a,onInstanceModelChange:(e,n)=>void v({mode:B.mode,reviewers:P(B.reviewers,t,{instanceId:e,model:n})})}),i?(0,I.jsx)(l,{size:`sm`,variant:`outline`,disabled:f||!y,onClick:()=>void v({mode:B.mode,reviewers:P(B.reviewers,t,null)}),children:`Remove`}):null]}):(0,I.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`No reviewer models available.`})},c)},F=M[B.mode],H;t[26]===B?H=t[27]:(H=N(B),t[26]=B,t[27]=H);let q;t[28]===w?q=t[29]:(q=(0,I.jsx)(z,{text:w}),t[28]=w,t[29]=q);let J;t[30]!==H||t[31]!==q?(J=(0,I.jsxs)(I.Fragment,{children:[H,q]}),t[30]=H,t[31]=q,t[32]=J):J=t[32];let Y;t[33]!==B.mode||t[34]!==B.reviewers||t[35]!==v?(Y=e=>{ne(e)&&e!==B.mode&&v({mode:e,reviewers:B.reviewers})},t[33]=B.mode,t[34]=B.reviewers,t[35]=v,t[36]=Y):Y=t[36];let X=j[B.mode],Z;t[37]===X?Z=t[38]:(Z=(0,I.jsx)(h,{"aria-label":`Review finished turns`,children:(0,I.jsx)(p,{children:X})}),t[37]=X,t[38]=Z);let Q;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,I.jsx)(m,{children:i.literals.map(re)}),t[39]=Q):Q=t[39];let $;t[40]!==f||t[41]!==B.mode||t[42]!==Y||t[43]!==Z?($=(0,I.jsxs)(g,{value:B.mode,disabled:f,onValueChange:Y,children:[Z,Q]}),t[40]=f,t[41]=B.mode,t[42]=Y,t[43]=Z,t[44]=$):$=t[44],t[45]!==F||t[46]!==J||t[47]!==$?(U=(0,I.jsx)(T,{id:`self-improve-mode`,title:`Review finished turns`,description:F,status:J,control:$}),t[45]=F,t[46]=J,t[47]=$,t[48]=U):U=t[48],W=A(0),G=A(1)}t[4]=D,t[5]=n,t[6]=L,t[7]=B,t[8]=x.error,t[9]=d,t[10]=V,t[11]=o?.projectId,t[12]=k,t[13]=U,t[14]=W,t[15]=G,t[16]=K}else U=t[13],W=t[14],G=t[15],K=t[16];if(K!==Symbol.for(`react.early_return_sentinel`))return K;let q;t[49]!==n||t[50]!==B.memoryMirror?(q=(0,I.jsx)(H,{environmentId:n,mirror:B.memoryMirror}),t[49]=n,t[50]=B.memoryMirror,t[51]=q):q=t[51];let J;return t[52]!==U||t[53]!==W||t[54]!==G||t[55]!==q?(J=(0,I.jsxs)(I.Fragment,{children:[U,W,G,q]}),t[52]=U,t[53]=W,t[54]=G,t[55]=q,t[56]=J):J=t[56],J}function re(e){return(0,I.jsx)(f,{value:e,children:j[e]},e)}function ie(e){return e.enabled&&e.isAvailable}function ae(e){return e.supportsTextGeneration!==!1}function H(e){let t=(0,A.c)(37),[n,r]=(0,F.useState)(``),[i,a]=(0,F.useState)(!1),[o,ee]=(0,F.useState)(null),s;t[0]===e.environmentId?s=t[1]:(s=_.setSelfImproveMemoryMirror.permissionAtom(e.environmentId),t[0]=e.environmentId,t[1]=s);let c=u(s),d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[2]=d):d=t[2];let f=b(_.setSelfImproveMemoryMirror,d),p=!c||i,m;t[3]!==e.environmentId||t[4]!==f?(m=async t=>{a(!0);let n=k(await f({environmentId:e.environmentId,input:{memoryMirror:t}}),`Couldn't set the mirror.`);ee(n.ok?null:n.message),n.ok&&r(``),a(!1)},t[3]=e.environmentId,t[4]=f,t[5]=m):m=t[5];let h=m,g=e.mirror??`Not mirrored`,v;t[6]===o?v=t[7]:(v=(0,I.jsx)(z,{text:o}),t[6]=o,t[7]=v);let y;t[8]!==g||t[9]!==v?(y=(0,I.jsxs)(I.Fragment,{children:[g,v]}),t[8]=g,t[9]=v,t[10]=y):y=t[10];let x;t[11]!==p||t[12]!==h||t[13]!==n?(x=e=>{e.preventDefault(),n.trim()&&!p&&h(n.trim())},t[11]=p,t[12]=h,t[13]=n,t[14]=x):x=t[14];let C=e.mirror?`Replace repository path`:`/path/to/repository`,w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>r(e.target.value),t[15]=w):w=t[15];let E;t[16]!==p||t[17]!==n||t[18]!==C?(E=(0,I.jsx)(`div`,{className:`min-w-40 flex-1`,children:(0,I.jsx)(S,{"aria-label":`Mirror saved memory`,autoComplete:`off`,value:n,disabled:p,placeholder:C,onChange:w})}),t[16]=p,t[17]=n,t[18]=C,t[19]=E):E=t[19];let D;t[20]!==p||t[21]!==n?(D=p||!n.trim(),t[20]=p,t[21]=n,t[22]=D):D=t[22];let O;t[23]===D?O=t[24]:(O=(0,I.jsx)(l,{type:`submit`,size:`sm`,disabled:D,children:`Save`}),t[23]=D,t[24]=O);let j;t[25]!==p||t[26]!==h||t[27]!==e.mirror?(j=e.mirror?(0,I.jsx)(l,{type:`button`,size:`sm`,variant:`outline`,disabled:p,onClick:()=>void h(null),children:`Remove`}):null,t[25]=p,t[26]=h,t[27]=e.mirror,t[28]=j):j=t[28];let M;t[29]!==O||t[30]!==j||t[31]!==x||t[32]!==E?(M=(0,I.jsxs)(`form`,{className:`flex max-w-lg flex-wrap items-center gap-2 pb-2`,onSubmit:x,children:[E,O,j]}),t[29]=O,t[30]=j,t[31]=x,t[32]=E,t[33]=M):M=t[33];let N;return t[34]!==M||t[35]!==y?(N=(0,I.jsx)(T,{title:`Mirror saved memory`,description:`A git checkout. Each save copies the changed files into its memory folder, commits them on the default branch, and pushes.`,status:y,children:M}),t[34]=M,t[35]=y,t[36]=N):N=t[36],N}export{B as n,z as r,L as t};
2
+ //# sourceMappingURL=SelfImproveSettingsSection-CDIhJO4P.js.map
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,t as r}from"./react-BUfh6y28.js";import{n as i,t as a}from"./jsx-runtime-DJeoFXNw.js";import{Bp as o,Eh as s,Fd as c,Fm as l,H_ as u,Hh as d,Ht as f,Ih as p,Is as m,It as h,Lb as g,Lt as _,ME as v,MT as y,Nh as b,Pt as x,Qm as S,Rd as C,Rh as w,Ut as T,Vh as E,Vp as D,Wm as O,Yt as k,bm as A,df as j,eb as M,fr as N,gm as P,in as F,jp as I,nc as L,nm as R,of as z,pf as B,qp as V,rv as H,t as U,zc as ee,zp as te,zs as W}from"./utils-CcBaVOX5.js";import{W as G,g as ne}from"./runtime-DeVKKxNz.js";import{F as re,I as ie,Kt as ae,L as oe,x as se}from"./runtime-DCbEdU32.js";import{a as ce,i as le,n as ue,r as de,t as fe}from"./number-field-Bw2BDGyn.js";import{a as K,c as pe,n as me,o as he,s as q,t as ge}from"./select-oshTwPZM.js";import{t as _e}from"./spinner-BeAnBYcY.js";import{t as ve}from"./link-BmkuqfGQ.js";import{t as ye}from"./useNavigate-PfhtEZbl.js";import{i as be}from"./toast-Dkj3G-UM.js";import{H as xe,J as Se,K as Ce,U as we,V as Te,W as Ee,q as De,z as Oe}from"./useSettings-Cg0O7Ek7.js";import{t as ke}from"./server-Ct4-BCZx.js";import{o as Ae}from"./session-Bb7JWdWO.js";import{t as je}from"./toastHelpers-DxXYm50b.js";import{r as Me}from"./queries-eqpX-CHf.js";import{A as Ne,B as Pe,C as Fe,E as Ie,F as Le,G as Re,J as ze,K as Be,L as Ve,O as He,V as Ue,W as We,_ as Ge,b as Ke,j as qe,k as Je,l as Ye,m as Xe,p as Ze,q as Qe,u as $e,v as et,z as tt}from"./themePalette-Uk7bx8zb.js";import{$ as nt,D as rt,G as it,f as at,l as ot,vt as st,yt as ct}from"./diffRendering-JsGpyVJ1.js";import{A as lt,C as ut,D as dt,E as ft,T as pt,lt as mt,n as ht,st as gt,t as _t}from"./getDiffFileInput-Bt5vSiss.js";import{t as vt}from"./env-wK1YYxA8.js";import{a as yt,n as bt,r as xt,t as St}from"./tooltip-BeHmtauD.js";import{a as Ct,l as wt,n as Tt,o as Et,r as Dt,s as Ot,t as kt}from"./combobox-CoLp0McG.js";import{t as At}from"./input-CSgYZgdv.js";import{a as jt,c as Mt,i as Nt,o as Pt,r as Ft,s as It,t as Lt}from"./dialog-CjB1WWbE.js";import{h as Rt,r as zt,t as Bt}from"./ComposerPromptEditor-BqLNVkse.js";import{h as Vt,p as Ht}from"./Icons-2l7Ym4KO.js";import{t as Ut}from"./ProjectFavicon-in-OyDkg.js";import{n as Wt,r as Gt,t as Kt}from"./input-group-a-sGQMiV.js";import{c as qt,r as Jt}from"./ThreadTerminalDrawer-DIUp50A3.js";import{r as Yt,t as Xt}from"./alert-UH7IbYie.js";import{a as Zt,i as Qt,n as $t,o as en,r as tn,s as nn,t as rn}from"./alert-dialog-D3mCT6Vy.js";import{F as an,G as on,I as sn,L as cn,R as ln,U as un,V as dn,a as J,d as fn,f as pn,i as mn,n as hn,r as Y,s as gn,t as _n}from"./settingsLayout-krWuVpsF.js";import{Ar as X,Bn as vn,C as yn,Dn as bn,Eo as xn,Gn as Sn,Hn as Cn,S as wn,Un as Tn,Vn as En,Wn as Dn,_o as On,ao as kn,b as An,di as jn,eo as Mn,fi as Nn,gi as Pn,go as Fn,hi as In,hn as Ln,ho as Rn,io as zn,mi as Bn,mo as Vn,no as Hn,oo as Un,pi as Wn,po as Gn,qi as Kn,ro as qn,sa as Jn,so as Yn,w as Xn,x as Zn,y as Qn,zn as $n}from"./main-DIEsHSIy.js";import{t as er}from"./ProviderModelPicker-DWqfDVY9.js";import{i as tr,n as nr}from"./SidebarStageBackdrop-ntSLLOvm.js";import{t as rr}from"./legalLinks-C4VP5hPh.js";import{t as ir}from"./useScopedModelAvailability-ujoqpGuE.js";import{t as ar}from"./ProjectDefaultsSettings-G0FTRG0c.js";import{t as or}from"./draft-input-1ySc55QI.js";import{t as sr}from"./ScopedSwitch-CD9C3Bhs.js";import{a as cr,c as lr,d as ur,f as dr,i as fr,l as pr,n as mr,o as hr,p as gr,s as _r,t as vr,u as yr}from"./SettingsPanels.logic-DS-Semyc.js";function br(e,t=!1){return gt({tagName:`style`,children:[mt(t?pt(e):dt(e))],properties:{[nt]:t?``:void 0,[ct]:t?void 0:``}})}function xr(e){return gt({tagName:`style`,children:[mt(e)],properties:{[st]:``}})}var Z=i(),Q=e(r(),1),$=e(a(),1);function Sr(){let e=an(e=>e.notificationMode),t=ln(),[n,r]=(0,Q.useState)(null),[i,a]=(0,Q.useState)(!1);return(0,$.jsx)(J,{...X(`thread-notifications`),description:n??`System alerts when a thread finishes, fails, or needs input or approval. Applies to this device while P4 Code is open.`,control:(0,$.jsxs)(ge,{value:e,disabled:i,onValueChange:async e=>{if(e===`off`||e===`notifications`||e===`sound`||e===`notifications-and-sound`){if(r(null),Zn(e)&&wn(),An(e)){if(typeof Notification>`u`||!window.isSecureContext){r(`Notifications need a supported browser over HTTPS, or the desktop app. Sound only is still available.`);return}a(!0);try{if(await Notification.requestPermission()!==`granted`){r(`Allow notifications in your browser or system settings, then choose this option again. Sound only is still available.`);return}}catch{r(`Notifications are unavailable in this browser. Sound only is still available.`);return}finally{a(!1)}}t({notificationMode:e})}},children:[(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-56`,"aria-label":`Thread notifications`,children:(0,$.jsx)(pe,{children:Qn[e]})}),(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:Object.entries(Qn).map(([e,t])=>(0,$.jsx)(K,{hideIndicator:!0,value:e,children:t},e))})]})})}function Cr(){let e=(0,Z.c)(15),t=typeof window>`u`?void 0:window.desktopBridge?.cliCommand,[n,r]=(0,Q.useState)(null),[i,a]=(0,Q.useState)(!1),o,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{if(!t)return;let e=!1;return t.getState().then(t=>{e||r(t)}).catch(wr),()=>{e=!0}},s=[t],e[0]=o,e[1]=s):(o=e[0],s=e[1]),(0,Q.useEffect)(o,s);let c;e[2]===i?c=e[3]:(c=e=>{t&&!i&&(a(!0),t[e]().then(r).catch(t=>{be.add(je({type:`error`,title:e===`install`?`Could not install p4c`:`Could not remove p4c`,description:t instanceof Error?t.message:`Something went wrong.`}))}).finally(()=>a(!1)))},e[2]=i,e[3]=c);let l=c;if(!t||!n?.supported)return null;let u=n.installedPath!==null,d=n.shadowedBy?`Another p4c at ${n.shadowedBy} runs first in a new terminal. Remove it to use P4 Code's.`:u?n.onPath?`Installed at ${n.installedPath}. Open a new terminal to use it.`:`Installed at ${n.installedPath}, which is not on your PATH yet. Add its folder to your PATH to run \`p4c\`.`:"Run P4 Code's CLI as `p4c` from any terminal.",f;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=X(`cli-command`),e[4]=f):f=e[4];let p;e[5]!==l||e[6]!==u?(p=()=>l(u?`uninstall`:`install`),e[5]=l,e[6]=u,e[7]=p):p=e[7];let m=u?`Remove`:`Install`,h;e[8]!==i||e[9]!==p||e[10]!==m?(h=(0,$.jsx)(N,{size:`sm`,variant:`outline`,disabled:i,onClick:p,children:m}),e[8]=i,e[9]=p,e[10]=m,e[11]=h):h=e[11];let g;return e[12]!==d||e[13]!==h?(g=(0,$.jsx)(J,{...f,description:d,control:h}),e[12]=d,e[13]=h,e[14]=g):g=e[14],g}function wr(){}function Tr(e){return`${lt}${rt(e)}`}async function Er({fileDiff:e,oldFile:t,newFile:n,options:r,annotations:i}){let a=_t({oldFile:t,newFile:n},`preloadDiffHTML`);if(e==null&&a!=null&&(e=at(a.oldFile,a.newFile,r?.parseDiffOptions)),e==null)throw Error(`preloadFileDiff: You must pass at least a fileDiff, oldFile, or newFile prop`);let o=new ht(kr(r));return i!=null&&i.length>0&&o.setLineAnnotations(i),Tr(Or(await o.asyncRender(e),o,r?.unsafeCSS,r?.themeType??`system`))}async function Dr({fileDiff:e,options:t,annotations:n}){return{fileDiff:e,options:t,annotations:n,prerenderedHTML:await Er({fileDiff:e,options:t,annotations:n})}}function Or(e,t,n,r){let i=[br(e.css,!0)];i.push(xr(ft(e.themeStyles,e.baseThemeType??r))),n!=null&&i.push(br(n)),e.headerElement!=null&&i.push(e.headerElement);let a=t.renderFullAST(e);return a.properties[`data-dehydrated`]=``,i.push(a),i}function kr(e){return{...e,useTokenTransformer:ut(e),headerRenderMode:e?.renderCustomHeader==null?`default`:`custom`,hunkSeparators:typeof e?.hunkSeparators==`function`?`custom`:e?.hunkSeparators}}async function Ar({patch:e,options:t}){let n=[],r=it(e);for(let e of r)for(let r of e.files)n.push(Dr({fileDiff:r,options:t}));return await Promise.all(n)}var jr=[],Mr=`Use $frontend-design to fix the flaky test in [surface.test.ts](apps/web/src/terminal/ghostty/surface.test.ts) and align the header with [SettingsPanels.tsx](apps/web/src/components/settings/SettingsPanels.tsx) before shipping.`;function Nr(){}function Pr(){let e=(0,Z.c)(4),t=(0,Q.useRef)(null),[n,r]=(0,Q.useState)(Mr),[i,a]=(0,Q.useState)(227),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(e,t)=>{r(e),a(t)},e[0]=o):o=e[0];let s=o,c;return e[1]!==i||e[2]!==n?(c=(0,$.jsx)(`div`,{className:`mt-1 mb-2 rounded-lg border border-border bg-background px-3 py-2`,children:(0,$.jsx)(Bt,{ariaLabel:`Prompt font preview`,editorRef:t,value:n,cursor:i,contextRecords:zt,skills:jr,disabled:!1,placeholder:Rt,className:`max-h-42 min-h-14`,onChange:s,onPaste:Nr})}),e[1]=i,e[2]=n,e[3]=c):c=e[3],c}var Fr=`diff --git a/src/formatUser.ts b/src/formatUser.ts
1
+ import{a as e,i as t,n,t as r}from"./react-BUfh6y28.js";import{n as i,t as a}from"./jsx-runtime-DJeoFXNw.js";import{Bp as o,Eh as s,Fd as c,Fm as l,H_ as u,Hh as d,Ht as f,Ih as p,Is as m,It as h,Lb as g,Lt as _,ME as v,MT as y,Nh as b,Pt as x,Qm as S,Rd as C,Rh as w,Ut as T,Vh as E,Vp as D,Wm as O,Yt as k,bm as A,df as j,eb as M,fr as N,gm as P,in as F,jp as I,nc as L,nm as R,of as z,pf as B,qp as V,rv as H,t as U,zc as ee,zp as te,zs as W}from"./utils-C5GGWTfe.js";import{W as G,g as ne}from"./runtime-BVmDVuJ-.js";import{F as re,I as ie,Kt as ae,L as oe,x as se}from"./runtime-BK2Lh1vB.js";import{a as ce,i as le,n as ue,r as de,t as fe}from"./number-field-Pve745k3.js";import{a as K,c as pe,n as me,o as he,s as q,t as ge}from"./select-vBkqTMKL.js";import{t as _e}from"./spinner-BZ5ohCyO.js";import{t as ve}from"./link-DW1IQk5s.js";import{t as ye}from"./useNavigate-AZUCIeU4.js";import{i as be}from"./toast-BZ96uuab.js";import{H as xe,J as Se,K as Ce,U as we,V as Te,W as Ee,q as De,z as Oe}from"./useSettings-B09a3zie.js";import{t as ke}from"./server-DwkxciXh.js";import{o as Ae}from"./session-BIwsf8Q4.js";import{t as je}from"./toastHelpers-DxXYm50b.js";import{r as Me}from"./queries-B0FvRKmk.js";import{A as Ne,B as Pe,C as Fe,E as Ie,F as Le,G as Re,J as ze,K as Be,L as Ve,O as He,V as Ue,W as We,_ as Ge,b as Ke,j as qe,k as Je,l as Ye,m as Xe,p as Ze,q as Qe,u as $e,v as et,z as tt}from"./themePalette-BMlBfFUx.js";import{$ as nt,D as rt,G as it,f as at,l as ot,vt as st,yt as ct}from"./diffRendering-BuOJdnZ8.js";import{A as lt,C as ut,D as dt,E as ft,T as pt,lt as mt,n as ht,st as gt,t as _t}from"./getDiffFileInput-IQ1TDM4E.js";import{t as vt}from"./env-wK1YYxA8.js";import{a as yt,n as bt,r as xt,t as St}from"./tooltip-BPiLl1TV.js";import{a as Ct,l as wt,n as Tt,o as Et,r as Dt,s as Ot,t as kt}from"./combobox-BrCd1kH5.js";import{t as At}from"./input-FUjAUGXY.js";import{a as jt,c as Mt,i as Nt,o as Pt,r as Ft,s as It,t as Lt}from"./dialog-BpR3dRVS.js";import{h as Rt,r as zt,t as Bt}from"./ComposerPromptEditor-DR1WsmjD.js";import{h as Vt,p as Ht}from"./Icons-Be1TL1sN.js";import{t as Ut}from"./ProjectFavicon-LcyFYpHB.js";import{n as Wt,r as Gt,t as Kt}from"./input-group-BdZ_CKvG.js";import{c as qt,r as Jt}from"./ThreadTerminalDrawer-CD3plt2C.js";import{r as Yt,t as Xt}from"./alert-BOVMKHDy.js";import{a as Zt,i as Qt,n as $t,o as en,r as tn,s as nn,t as rn}from"./alert-dialog-Du3fYY3I.js";import{F as an,G as on,I as sn,L as cn,R as ln,U as un,V as dn,a as J,d as fn,f as pn,i as mn,n as hn,r as Y,s as gn,t as _n}from"./settingsLayout-WhjsCfB6.js";import{Ar as X,Bn as vn,C as yn,Dn as bn,Eo as xn,Gn as Sn,Hn as Cn,S as wn,Un as Tn,Vn as En,Wn as Dn,_o as On,ao as kn,b as An,di as jn,eo as Mn,fi as Nn,gi as Pn,go as Fn,hi as In,hn as Ln,ho as Rn,io as zn,mi as Bn,mo as Vn,no as Hn,oo as Un,pi as Wn,po as Gn,qi as Kn,ro as qn,sa as Jn,so as Yn,w as Xn,x as Zn,y as Qn,zn as $n}from"./main-C0z861OK.js";import{t as er}from"./ProviderModelPicker-CpWE-Lfx.js";import{i as tr,n as nr}from"./SidebarStageBackdrop-DSuAw8Ob.js";import{t as rr}from"./legalLinks-C4VP5hPh.js";import{t as ir}from"./useScopedModelAvailability-D6cbxQLl.js";import{t as ar}from"./ProjectDefaultsSettings-6UkudkKP.js";import{t as or}from"./draft-input-CzfhM72Z.js";import{t as sr}from"./ScopedSwitch-D1uscoF8.js";import{a as cr,c as lr,d as ur,f as dr,i as fr,l as pr,n as mr,o as hr,p as gr,s as _r,t as vr,u as yr}from"./SettingsPanels.logic-H5v8FTnu.js";function br(e,t=!1){return gt({tagName:`style`,children:[mt(t?pt(e):dt(e))],properties:{[nt]:t?``:void 0,[ct]:t?void 0:``}})}function xr(e){return gt({tagName:`style`,children:[mt(e)],properties:{[st]:``}})}var Z=i(),Q=e(r(),1),$=e(a(),1);function Sr(){let e=an(e=>e.notificationMode),t=ln(),[n,r]=(0,Q.useState)(null),[i,a]=(0,Q.useState)(!1);return(0,$.jsx)(J,{...X(`thread-notifications`),description:n??`System alerts when a thread finishes, fails, or needs input or approval. Applies to this device while P4 Code is open.`,control:(0,$.jsxs)(ge,{value:e,disabled:i,onValueChange:async e=>{if(e===`off`||e===`notifications`||e===`sound`||e===`notifications-and-sound`){if(r(null),Zn(e)&&wn(),An(e)){if(typeof Notification>`u`||!window.isSecureContext){r(`Notifications need a supported browser over HTTPS, or the desktop app. Sound only is still available.`);return}a(!0);try{if(await Notification.requestPermission()!==`granted`){r(`Allow notifications in your browser or system settings, then choose this option again. Sound only is still available.`);return}}catch{r(`Notifications are unavailable in this browser. Sound only is still available.`);return}finally{a(!1)}}t({notificationMode:e})}},children:[(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-56`,"aria-label":`Thread notifications`,children:(0,$.jsx)(pe,{children:Qn[e]})}),(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:Object.entries(Qn).map(([e,t])=>(0,$.jsx)(K,{hideIndicator:!0,value:e,children:t},e))})]})})}function Cr(){let e=(0,Z.c)(15),t=typeof window>`u`?void 0:window.desktopBridge?.cliCommand,[n,r]=(0,Q.useState)(null),[i,a]=(0,Q.useState)(!1),o,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{if(!t)return;let e=!1;return t.getState().then(t=>{e||r(t)}).catch(wr),()=>{e=!0}},s=[t],e[0]=o,e[1]=s):(o=e[0],s=e[1]),(0,Q.useEffect)(o,s);let c;e[2]===i?c=e[3]:(c=e=>{t&&!i&&(a(!0),t[e]().then(r).catch(t=>{be.add(je({type:`error`,title:e===`install`?`Could not install p4c`:`Could not remove p4c`,description:t instanceof Error?t.message:`Something went wrong.`}))}).finally(()=>a(!1)))},e[2]=i,e[3]=c);let l=c;if(!t||!n?.supported)return null;let u=n.installedPath!==null,d=n.shadowedBy?`Another p4c at ${n.shadowedBy} runs first in a new terminal. Remove it to use P4 Code's.`:u?n.onPath?`Installed at ${n.installedPath}. Open a new terminal to use it.`:`Installed at ${n.installedPath}, which is not on your PATH yet. Add its folder to your PATH to run \`p4c\`.`:"Run P4 Code's CLI as `p4c` from any terminal.",f;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=X(`cli-command`),e[4]=f):f=e[4];let p;e[5]!==l||e[6]!==u?(p=()=>l(u?`uninstall`:`install`),e[5]=l,e[6]=u,e[7]=p):p=e[7];let m=u?`Remove`:`Install`,h;e[8]!==i||e[9]!==p||e[10]!==m?(h=(0,$.jsx)(N,{size:`sm`,variant:`outline`,disabled:i,onClick:p,children:m}),e[8]=i,e[9]=p,e[10]=m,e[11]=h):h=e[11];let g;return e[12]!==d||e[13]!==h?(g=(0,$.jsx)(J,{...f,description:d,control:h}),e[12]=d,e[13]=h,e[14]=g):g=e[14],g}function wr(){}function Tr(e){return`${lt}${rt(e)}`}async function Er({fileDiff:e,oldFile:t,newFile:n,options:r,annotations:i}){let a=_t({oldFile:t,newFile:n},`preloadDiffHTML`);if(e==null&&a!=null&&(e=at(a.oldFile,a.newFile,r?.parseDiffOptions)),e==null)throw Error(`preloadFileDiff: You must pass at least a fileDiff, oldFile, or newFile prop`);let o=new ht(kr(r));return i!=null&&i.length>0&&o.setLineAnnotations(i),Tr(Or(await o.asyncRender(e),o,r?.unsafeCSS,r?.themeType??`system`))}async function Dr({fileDiff:e,options:t,annotations:n}){return{fileDiff:e,options:t,annotations:n,prerenderedHTML:await Er({fileDiff:e,options:t,annotations:n})}}function Or(e,t,n,r){let i=[br(e.css,!0)];i.push(xr(ft(e.themeStyles,e.baseThemeType??r))),n!=null&&i.push(br(n)),e.headerElement!=null&&i.push(e.headerElement);let a=t.renderFullAST(e);return a.properties[`data-dehydrated`]=``,i.push(a),i}function kr(e){return{...e,useTokenTransformer:ut(e),headerRenderMode:e?.renderCustomHeader==null?`default`:`custom`,hunkSeparators:typeof e?.hunkSeparators==`function`?`custom`:e?.hunkSeparators}}async function Ar({patch:e,options:t}){let n=[],r=it(e);for(let e of r)for(let r of e.files)n.push(Dr({fileDiff:r,options:t}));return await Promise.all(n)}var jr=[],Mr=`Use $frontend-design to fix the flaky test in [surface.test.ts](apps/web/src/terminal/ghostty/surface.test.ts) and align the header with [SettingsPanels.tsx](apps/web/src/components/settings/SettingsPanels.tsx) before shipping.`;function Nr(){}function Pr(){let e=(0,Z.c)(4),t=(0,Q.useRef)(null),[n,r]=(0,Q.useState)(Mr),[i,a]=(0,Q.useState)(227),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(e,t)=>{r(e),a(t)},e[0]=o):o=e[0];let s=o,c;return e[1]!==i||e[2]!==n?(c=(0,$.jsx)(`div`,{className:`mt-1 mb-2 rounded-lg border border-border bg-background px-3 py-2`,children:(0,$.jsx)(Bt,{ariaLabel:`Prompt font preview`,editorRef:t,value:n,cursor:i,contextRecords:zt,skills:jr,disabled:!1,placeholder:Rt,className:`max-h-42 min-h-14`,onChange:s,onPaste:Nr})}),e[1]=i,e[2]=n,e[3]=c):c=e[3],c}var Fr=`diff --git a/src/formatUser.ts b/src/formatUser.ts
2
2
  --- a/src/formatUser.ts
3
3
  +++ b/src/formatUser.ts
4
4
  @@ -1,3 +1,3 @@
@@ -43,4 +43,4 @@ import{a as e,i as t,n,t as r}from"./react-BUfh6y28.js";import{n as i,t as a}fro
43
43
  "colors": { ... }
44
44
  }`,spellCheck:!1,value:r}),t[10]=n,t[11]=p,t[12]=m,t[13]=r,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==h?(g=(0,$.jsxs)(`div`,{className:`relative overflow-hidden rounded-xl border border-input bg-background shadow-xs/5 focus-within:border-ring focus-within:ring-3 focus-within:ring-inset focus-within:ring-ring/24`,children:[d,h]}),t[15]=d,t[16]=h,t[17]=g):g=t[17],g}function Ra({open:e,onOpenChange:t,onImported:n,onImportedMany:r}){let i=(0,Q.useRef)(null),[a,o]=(0,Q.useState)(``),[s,c]=(0,Q.useState)(null),[l,u]=(0,Q.useState)(null),[d,f]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(!1),[h,g]=(0,Q.useState)(null),_=(0,Q.useRef)(0);(0,Q.useEffect)(()=>{_.current+=1,m(!1),e&&(o(``),c(null),u(null),f(!1),g(null))},[e]);let v=(0,Q.useCallback)(async e=>{let t=Pa(e.size);if(t){u(t);return}let n=++_.current;f(!0);try{let t=await e.text();if(n!==_.current)return;o(t),c(e.name),u(null)}catch{if(n!==_.current)return;u(`Could not read that file. Paste the JSON below instead.`)}finally{n===_.current&&f(!1)}},[]),y=(0,Q.useCallback)(async e=>{let n=++_.current;f(!0);let i=[],a=[];try{for(let t of e)if(Pa(t.size))i.push(`${t.name}: too large`);else try{let e=JSON.parse(await t.text());a.push({sourceName:t.name,theme:_i(e)?xi(e):Ie(e)})}catch(e){i.push(`${t.name}: ${e instanceof Error?e.message:`not a theme file`}`)}if(n!==_.current)return;let o=[],s=[];for(let e of Si(Ci(a)))if($e().some(t=>t.id===e.id))s.push(e);else try{o.push(Ke(e))}catch(t){i.push(`${e.label}: ${t instanceof Error?t.message:`could not install`}`)}o.length>0&&r(o,{updated:!1}),i.length>0?u(i.join(` — `)):s.length>0?g(s):o.length>0&&t(!1)}finally{n===_.current&&f(!1)}},[r,t]),b=(0,Q.useCallback)(e=>{e.length!==0&&(e.length===1?v(e[0]):y(e))},[y,v]),x=(0,Q.useCallback)(()=>{let e=window.desktopBridge;e?.pickThemeFiles?e.pickThemeFiles().then(e=>{e&&e.length!==0&&b(e.map(e=>({name:e.name,size:e.size,text:()=>Promise.resolve(e.text)})))}):i.current?.click()},[b]),S=(0,Q.useCallback)(e=>{let t=[...e.currentTarget.files??[]];e.currentTarget.value=``,b(t)},[b]),C=(0,Q.useCallback)(e=>{e.preventDefault(),m(!1),b([...e.dataTransfer.files])},[b]),w=(e,t)=>{if(t&&t.toLowerCase()!==e.label.toLowerCase()){let n=Ie({version:1,name:t.slice(0,48),appearance:e.appearance,colors:e.colors,...e.variants?{variants:e.variants}:{},...e.managed?{managed:!0}:{}});if(!$e().some(e=>e.id===n.id))return n}for(let t=1;t<100;t+=1){let n=Ie({version:1,name:`${e.label.slice(0,48-` (${t})`.length)} (${t})`,appearance:e.appearance,colors:e.colors,...e.variants?{variants:e.variants}:{},...e.managed?{managed:!0}:{}});if(!$e().some(e=>e.id===n.id))return n}throw Error(`Too many copies of "${e.label}".`)},T=(0,Q.useCallback)(e=>{if(!h)return;let n=[],i=[],a=h.length===1&&s?yi(s.replace(/\.[^.]+$/,``)):null;for(let t of h)try{let r=e===`update`?$e().find(e=>e.id===t.id):void 0,i=r?.collection?{...t,collection:r.collection}:t;n.push(e===`update`?Ue(i):Ke(w(t,a)))}catch(e){i.push(`${t.label}: ${e instanceof Error?e.message:`failed`}`)}n.length>0&&r(n,{updated:e===`update`}),g(null),i.length>0?u(i.join(` — `)):t(!1)},[h,s,r,t]),E=(0,Q.useCallback)(()=>{let e=Pa(a.length);if(e)u(e);else try{let e=JSON.parse(a),r=_i(e)?xi(e):Ie(e);if($e().some(e=>e.id===r.id)){u(null),g([r]);return}let i=Ke(r);if(!n(i)){try{Je(i.id)}catch{}u(`Theme added, but it could not be selected. Try again.`);return}t(!1)}catch(e){u(e instanceof Error?e.message:`That theme file is invalid.`)}},[a,n,t]);return(0,$.jsx)(Lt,{open:e,onOpenChange:e=>{e||u(null),t(e)},children:(0,$.jsxs)(It,{className:`max-w-3xl overflow-hidden`,children:[(0,$.jsx)(jt,{children:(0,$.jsx)(Mt,{children:`Add a theme`})}),(0,$.jsxs)(Pt,{children:[(0,$.jsx)(ka,{onInstalled:(e,n)=>{r(e,n),t(!1)},open:e}),(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,"aria-hidden":!0,children:[(0,$.jsx)(`div`,{className:`h-px flex-1 bg-border`}),(0,$.jsx)(`span`,{className:`text-muted-foreground text-2xs uppercase tracking-wider`,children:`or import a file`}),(0,$.jsx)(`div`,{className:`h-px flex-1 bg-border`})]}),(()=>{let e={onDragEnter:e=>{e.preventDefault(),m(!0)},onDragOver:e=>{e.preventDefault(),m(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},onDrop:C},n=(0,$.jsx)(`input`,{ref:i,accept:`.json,application/json`,className:`sr-only`,onChange:S,multiple:!0,type:`file`}),r=(e=`Choose files`)=>(0,$.jsxs)(N,{disabled:d,size:`sm`,variant:`outline`,onClick:x,children:[(0,$.jsx)(j,{}),d?`Reading…`:e]}),c=()=>(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(`div`,{className:`flex items-baseline justify-between gap-3`,children:(0,$.jsx)(`label`,{className:`text-sm font-medium`,htmlFor:`theme-json-editor`,children:`Theme JSON`})}),(0,$.jsx)(La,{id:`theme-json-editor`,onChange:o,value:a})]});return h?(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`rounded-xl border border-border/70 bg-muted/20 p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium`,children:`Already installed`}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:h.map(e=>e.label).join(`, `)})]}),(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsx)(N,{size:`sm`,onClick:()=>T(`update`),children:`Update existing`}),(0,$.jsx)(N,{size:`sm`,variant:`outline`,onClick:()=>T(`copy`),children:`Keep both`}),(0,$.jsx)(N,{size:`sm`,variant:`ghost`,onClick:()=>g(null),children:`Back`}),(0,$.jsx)(N,{size:`sm`,variant:`ghost`,onClick:()=>t(!1),children:`Cancel`})]})]}):(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:U(`flex flex-wrap items-center justify-between gap-3 rounded-xl border border-dashed px-3 py-3 transition-colors`,p?`border-ring bg-accent/20`:`border-border/80 bg-muted/20`),...e,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium`,children:`Theme file`}),(0,$.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:s??`Drop P4 Code or VS Code .json files`})]}),r(),n]}),c(),(0,$.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,children:[(0,$.jsx)(N,{variant:`ghost`,onClick:()=>t(!1),children:`Cancel`}),(0,$.jsxs)(N,{disabled:!a.trim()||d,onClick:E,children:[(0,$.jsx)(R,{}),`Add theme`]})]})]})})(),l?(0,$.jsx)(Xt,{"aria-live":`polite`,variant:`error`,children:l}):null]})]})})}function za(e){let t=(0,Z.c)(45),{colors:n,clip:r}=e,i;t[0]===r?i=t[1]:(i=r===void 0?void 0:{clipPath:r===`left`?`polygon(0 0, calc(50% - 1px) 0, calc(50% - 1px) 100%, 0 100%)`:`polygon(calc(50% + 1px) 0, 100% 0, 100% 100%, calc(50% + 1px) 100%)`},t[0]=r,t[1]=i);let a;t[2]===n.canvas?a=t[3]:(a=(0,$.jsx)(`span`,{className:`absolute inset-0`,style:{backgroundColor:n.canvas}}),t[2]=n.canvas,t[3]=a);let o;t[4]===n.sidebar?o=t[5]:(o=(0,$.jsx)(`span`,{className:`absolute inset-y-0 left-0 w-[22%]`,style:{backgroundColor:n.sidebar,boxShadow:`inset -1px 0 0 rgb(127 127 127 / 0.25)`}}),t[4]=n.sidebar,t[5]=o);let s;t[6]===n.surface?s=t[7]:(s=(0,$.jsx)(`span`,{className:`absolute left-[3%] top-[8%] h-[8%] w-[16%] rounded-md`,style:{backgroundColor:n.surface,boxShadow:`inset 0 0 0 1px rgb(127 127 127 / 0.25)`}}),t[6]=n.surface,t[7]=s);let c;t[8]===n.accentSurface?c=t[9]:(c=(0,$.jsx)(`span`,{className:`absolute left-[3%] top-[22%] h-[7%] w-[16%] rounded-md`,style:{backgroundColor:n.accentSurface}}),t[8]=n.accentSurface,t[9]=c);let l;t[10]===n.messageSurface?l=t[11]:(l=(0,$.jsx)(`span`,{className:`absolute left-[3%] top-[32%] h-[7%] w-[16%] rounded-md`,style:{backgroundColor:n.messageSurface,opacity:.7}}),t[10]=n.messageSurface,t[11]=l);let u;t[12]===n.messageSurface?u=t[13]:(u=(0,$.jsx)(`span`,{className:`absolute left-[3%] top-[42%] h-[7%] w-[16%] rounded-md`,style:{backgroundColor:n.messageSurface,opacity:.5}}),t[12]=n.messageSurface,t[13]=u);let d;t[14]===n.messageSurface?d=t[15]:(d=(0,$.jsx)(`span`,{className:`absolute right-[28%] top-[11%] h-[9%] w-[24%] rounded-lg`,style:{backgroundColor:n.messageSurface}}),t[14]=n.messageSurface,t[15]=d);let f;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(`span`,{className:`absolute left-[27%] top-[28%] h-[5%] w-[34%] rounded-sm`,style:{backgroundColor:`rgb(127 127 127 / 0.25)`}}),t[16]=f):f=t[16];let p;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(`span`,{className:`absolute left-[27%] top-[38%] h-[5%] w-[26%] rounded-sm`,style:{backgroundColor:`rgb(127 127 127 / 0.25)`}}),t[17]=p):p=t[17];let m;t[18]===n.surface?m=t[19]:(m={backgroundColor:n.surface,boxShadow:`inset 0 0 0 1px rgb(127 127 127 / 0.25)`},t[18]=n.surface,t[19]=m);let h;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(`span`,{className:`block h-[26%] w-[34%] rounded-full`,style:{backgroundColor:`rgb(127 127 127 / 0.25)`,opacity:.7}}),t[20]=h):h=t[20];let g;t[21]===n.messageAction?g=t[22]:(g=(0,$.jsx)(`span`,{className:`block aspect-square h-[58%] rounded-full`,style:{backgroundColor:n.messageAction}}),t[21]=n.messageAction,t[22]=g);let _;t[23]!==m||t[24]!==g?(_=(0,$.jsxs)(`span`,{className:`absolute bottom-[8%] left-[26%] right-[6%] flex h-[15%] items-center justify-between rounded-md px-1`,style:m,children:[h,g]}),t[23]=m,t[24]=g,t[25]=_):_=t[25];let v;t[26]===n.surface?v=t[27]:(v={backgroundColor:n.surface,boxShadow:`inset 0 0 0 1px rgb(127 127 127 / 0.25), 0 2px 5px rgb(0 0 0 / 0.14)`},t[26]=n.surface,t[27]=v);let y;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(y=[0,1,2],t[28]=y):y=t[28];let b;t[29]===n.messageAction?b=t[30]:(b=y.map(e=>(0,$.jsxs)(`span`,{className:`absolute left-[11%] right-[11%] flex items-center gap-1`,style:{top:`${10+e*30}%`,height:`20%`},children:[(0,$.jsx)(`span`,{className:`block aspect-square h-[26%] rounded-full`,style:{backgroundColor:e===0?`#34d399`:e===1?n.messageAction:`#fbbf24`,opacity:.55}}),(0,$.jsx)(`span`,{className:`block h-[30%] w-[52%] rounded-sm`,style:{backgroundColor:`rgb(127 127 127 / 0.25)`}})]},e)),t[29]=n.messageAction,t[30]=b);let x;t[31]!==v||t[32]!==b?(x=(0,$.jsx)(`span`,{className:`absolute right-[5%] top-[8%] h-[46%] w-[20%] rounded-lg`,style:v,children:b}),t[31]=v,t[32]=b,t[33]=x):x=t[33];let S;return t[34]!==i||t[35]!==_||t[36]!==x||t[37]!==a||t[38]!==o||t[39]!==s||t[40]!==c||t[41]!==l||t[42]!==u||t[43]!==d?(S=(0,$.jsxs)(`span`,{className:`absolute inset-0`,style:i,children:[a,o,s,c,l,u,d,f,p,_,x]}),t[34]=i,t[35]=_,t[36]=x,t[37]=a,t[38]=o,t[39]=s,t[40]=c,t[41]=l,t[42]=u,t[43]=d,t[44]=S):S=t[44],S}function Ba(e){let t=(0,Z.c)(7),{className:n,panes:r}=e,i;t[0]===n?i=t[1]:(i=U(`relative block w-full overflow-hidden rounded-lg border border-border/60`,n),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=r.map(Va),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,$.jsx)(`span`,{"aria-hidden":!0,className:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Va(e){return(0,$.jsx)(za,{clip:e.clip,colors:e.colors},e.clip??`pane`)}var Ha=[ze,Re,Qe,We,Be];function Ua(e){if(e.length===0)return[];let t=e.map(e=>e.label.trim().split(/\s+/)),n=t[0],r=n.findIndex((e,n)=>t.some(t=>t[n]?.toLocaleLowerCase()!==e.toLocaleLowerCase())),i=r===-1?n.length-1:r;return e.map((e,n)=>t[n]?.slice(Math.max(0,i)).join(` `).trim()||e.label)}function Wa(e,t){let n=URL.createObjectURL(new Blob([t],{type:`application/json`})),r=document.createElement(`a`);r.href=n,r.download=e,r.click(),setTimeout(()=>URL.revokeObjectURL(n),3e4)}function Ga(e){let t=(0,Z.c)(7),{label:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,$.jsx)(yt,{render:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,$.jsx)(bt,{children:n}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,$.jsxs)(St,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Ka(e){let t=(0,Z.c)(59),{theme:n,isActive:r,onUse:i,onUseMode:a,activeModes:o,onEdit:s,onDuplicate:c,onDownload:u,onRemove:d,variantNavigation:f}=e,p;t[0]===n.previews?p=t[1]:(p=n.previews.map(qa),t[0]=n.previews,t[1]=p);let m=p,[h,g]=(0,Q.useState)(null),_,v,y,b,x,C,w,T;if(t[2]!==o||t[3]!==r||t[4]!==i||t[5]!==a||t[6]!==h||t[7]!==n.id||t[8]!==n.label||t[9]!==n.previews||t[10]!==f){let e=[`light`,`dark`].map(e=>{let t=f?.options.flatMap(t=>{let n=t.preview;return n.mode===e?[{option:t,preview:n}]:[]})??[];return{mode:e,options:t,selected:t.find(t=>{let{option:n}=t;return n.activeModes.includes(e)})??t[0]}});v=St,_=yt;let s=r&&`bg-accent/30`;t[19]===s?x=t[20]:(x=U(`cursor-pointer overflow-hidden rounded-xl border border-border/70 bg-card/60 transition-colors hover:bg-accent/10`,s),t[19]=s,t[20]=x),C=n.id,w=i,t[21]===r?T=t[22]:(T=r?{boxShadow:`inset 0 0 0 1px var(--ring)`}:void 0,t[21]=r,t[22]=T),y=`relative`,b=f?(0,$.jsx)(`div`,{"aria-label":`Light and dark theme variants`,className:`relative h-20`,role:`group`,onBlurCapture:e=>{let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||g(null)},onKeyDown:e=>{e.key===`Escape`&&g(null)},onMouseLeave:()=>g(null),children:e.map(e=>{let{mode:t,options:n,selected:r}=e;if(!r)return null;let i=t===`light`?-52:52,a=h===t,o=r.option.activeModes.includes(t);return(0,$.jsxs)(`div`,{className:`contents`,children:[(0,$.jsx)(Ga,{label:`${t===`light`?`Light`:`Dark`}: ${r.option.label}`,children:(0,$.jsxs)(`button`,{"aria-label":n.length>1?`Choose ${t} variant, ${n.length} options, currently ${r.option.label}`:`Use ${t} variant, currently ${r.option.label}`,"aria-pressed":o,className:`absolute left-1/2 top-2 z-20 flex size-14 items-center justify-center rounded-full outline-none focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-2 focus-visible:outline-ring`,style:{transform:`translateX(calc(-50% + ${i}px))`},type:`button`,onClick:e=>{e.stopPropagation(),f.onSelectAndUse(r.option.themeIndex,t)},onFocus:()=>g(t),onMouseEnter:()=>g(t),children:[(0,$.jsx)(vn,{colors:r.preview.colors,mode:r.preview.mode}),o?(0,$.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 rounded-full ring-2 ring-inset ring-ring`}):null,o?(0,$.jsx)(`span`,{className:`pointer-events-none absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full border border-border/70 bg-background text-foreground shadow-sm`,children:t===`light`?(0,$.jsx)(l,{className:`size-2.5`}):(0,$.jsx)(I,{className:`size-2.5`})}):null]})}),(0,$.jsxs)(`span`,{className:`pointer-events-none absolute bottom-0 left-1/2 inline-flex max-w-24 -translate-x-1/2 items-center gap-1 text-2xs font-medium text-foreground`,style:{marginLeft:i},children:[(0,$.jsx)(`span`,{className:`truncate`,children:r.option.label}),n.length>1?(0,$.jsxs)(`span`,{className:`shrink-0 rounded-full bg-muted px-1 text-3xs text-muted-foreground`,children:[`+`,n.length-1]}):null]}),n.length>1?n.map((e,r)=>{let{option:o,preview:s}=e,c=r/(n.length-1)-.5,l=i+c*68,u=Math.abs(c)*10,d=o.activeModes.includes(t);return(0,$.jsx)(Ga,{label:`Use ${o.label} for ${t} mode`,children:(0,$.jsx)(`button`,{"aria-label":`Use ${o.label} for ${t} mode${d?`, currently active`:``}`,"aria-pressed":d,className:U(`absolute left-1/2 top-1 z-30 flex size-7 items-center justify-center rounded-full bg-background shadow-sm outline-none transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`,d?`ring-2 ring-inset ring-ring`:`ring-1 ring-border/70`),style:{opacity:+!!a,pointerEvents:a?`auto`:`none`,transform:`translate(calc(-50% + ${a?l:i}px), ${a?u:28}px) scale(${a?1:.55})`,transitionDelay:a?`${r*35}ms`:`0ms`},type:`button`,onClick:e=>{e.stopPropagation(),f.onSelectAndUse(o.themeIndex,t)},onFocus:()=>g(t),onMouseEnter:()=>g(t),children:(0,$.jsx)(`span`,{className:`pointer-events-none scale-[0.43]`,children:(0,$.jsx)(vn,{colors:s.colors,mode:s.mode})})})},o.label)}):null]},t)})}):(0,$.jsx)(En,{label:n.label,activeModes:o,onSelectMode:a,previews:n.previews}),t[2]=o,t[3]=r,t[4]=i,t[5]=a,t[6]=h,t[7]=n.id,t[8]=n.label,t[9]=n.previews,t[10]=f,t[11]=_,t[12]=v,t[13]=y,t[14]=b,t[15]=x,t[16]=C,t[17]=w,t[18]=T}else _=t[11],v=t[12],y=t[13],b=t[14],x=t[15],C=t[16],w=t[17],T=t[18];let E;t[23]!==y||t[24]!==b?(E=(0,$.jsx)(`div`,{className:y,children:b}),t[23]=y,t[24]=b,t[25]=E):E=t[25];let D=`Use ${f?`${f.collectionLabel}, ${n.label} variant`:`${n.label} theme`}${r?`, currently active`:``}`,k;t[26]===i?k=t[27]:(k=e=>{e.stopPropagation(),i()},t[26]=i,t[27]=k);let A=f?.collectionLabel??n.label,j;t[28]!==r||t[29]!==k||t[30]!==A||t[31]!==D?(j=(0,$.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,$.jsx)(`div`,{className:`flex items-center gap-1.5`,children:(0,$.jsx)(`button`,{"aria-label":D,"aria-pressed":r,className:`min-w-0 cursor-pointer truncate rounded-sm text-left text-sm font-medium text-foreground outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card`,type:`button`,onClick:k,children:A})})}),t[28]=r,t[29]=k,t[30]=A,t[31]=D,t[32]=j):j=t[32];let M;t[33]!==u||t[34]!==c||t[35]!==s||t[36]!==d||t[37]!==n.label||t[38]!==f?(M=s||c||u||d?(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[c?(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{"aria-label":`Duplicate ${n.label}`,size:`icon-xs`,variant:`ghost`,onClick:e=>{e.stopPropagation(),c()},children:(0,$.jsx)(z,{})})}),(0,$.jsx)(bt,{children:`Duplicate theme`})]}):null,s?(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{"aria-label":`Edit ${n.label}`,size:`icon-xs`,variant:`ghost`,onClick:e=>{e.stopPropagation(),s()},children:(0,$.jsx)(V,{})})}),(0,$.jsx)(bt,{children:`Edit theme`})]}):null,u?(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{"aria-label":`Export ${n.label}`,size:`icon-xs`,variant:`ghost`,onClick:e=>{e.stopPropagation(),u()},children:(0,$.jsx)(S,{})})}),(0,$.jsx)(bt,{children:`Export theme file`})]}):null,d?(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{"aria-label":f?`Remove themes from ${f.collectionLabel}`:`Remove ${n.label}`,size:`icon-xs`,variant:`ghost-destructive`,onClick:e=>{e.stopPropagation(),d()},children:(0,$.jsx)(O,{})})}),(0,$.jsx)(bt,{children:f?`Remove themes`:`Remove theme`})]}):null]}):null,t[33]=u,t[34]=c,t[35]=s,t[36]=d,t[37]=n.label,t[38]=f,t[39]=M):M=t[39];let P;t[40]!==j||t[41]!==M?(P=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pb-3 pt-2`,children:[j,M]}),t[40]=j,t[41]=M,t[42]=P):P=t[42];let F;t[43]!==P||t[44]!==x||t[45]!==C||t[46]!==w||t[47]!==T||t[48]!==E?(F=(0,$.jsxs)(`div`,{className:x,"data-theme-library-card":C,onClick:w,style:T,children:[E,P]}),t[43]=P,t[44]=x,t[45]=C,t[46]=w,t[47]=T,t[48]=E,t[49]=F):F=t[49];let L;t[50]!==_||t[51]!==F?(L=(0,$.jsx)(_,{render:F}),t[50]=_,t[51]=F,t[52]=L):L=t[52];let R=f?`Use the first variants for light and dark`:m.length>1?`Use for both light and dark`:`Use for ${m[0]} mode only`,B;t[53]===R?B=t[54]:(B=(0,$.jsx)(bt,{children:R}),t[53]=R,t[54]=B);let H;return t[55]!==v||t[56]!==L||t[57]!==B?(H=(0,$.jsxs)(v,{children:[L,B]}),t[55]=v,t[56]=L,t[57]=B,t[58]=H):H=t[58],H}function qa(e){return e.mode}function Ja(e){let t=(0,Z.c)(49),{themes:n,activeModesFor:r,onUse:i,onUseMode:a,onDuplicate:o,onEdit:s,onDownload:c,onRemove:l}=e,u;t[0]!==r||t[1]!==n?(u=()=>{let e=n.findIndex(e=>r(e.id).length>0);return e<0?0:e},t[0]=r,t[1]=n,t[2]=u):u=t[2];let[d,f]=(0,Q.useState)(u),p=Math.min(d,n.length-1),m=n[p],h,g;if(t[3]!==p||t[4]!==d?(h=()=>{d!==p&&f(p)},g=[p,d],t[3]=p,t[4]=d,t[5]=h,t[6]=g):(h=t[5],g=t[6]),(0,Q.useEffect)(h,g),!m)return null;let _=m.collection?.label??m.label,v;if(t[7]!==r||t[8]!==_||t[9]!==c||t[10]!==o||t[11]!==s||t[12]!==l||t[13]!==i||t[14]!==a||t[15]!==m||t[16]!==n){let e=Ua(n),u;t[18]===n?u=t[19]:(u=n.find(Xa),t[18]=n,t[19]=u);let d=u,p;t[20]===n?p=t[21]:(p=n.find(Ya),t[20]=n,t[21]=p);let h=p,g;t[22]!==h||t[23]!==d||t[24]!==i||t[25]!==a||t[26]!==m||t[27]!==n.length?(g=()=>{n.length===1?i(m):(d&&a(d,`light`),h&&a(h,`dark`),f(0))},t[22]=h,t[23]=d,t[24]=i,t[25]=a,t[26]=m,t[27]=n.length,t[28]=g):g=t[28];let y=g,b;t[29]!==r||t[30]!==m.id?(b=r(m.id),t[29]=r,t[30]=m.id,t[31]=b):b=t[31];let x;t[32]!==c||t[33]!==m?(x=()=>c(m),t[32]=c,t[33]=m,t[34]=x):x=t[34];let S;t[35]!==o||t[36]!==m?(S=()=>o(m),t[35]=o,t[36]=m,t[37]=S):S=t[37];let C;t[38]!==s||t[39]!==m?(C=()=>s(m),t[38]=s,t[39]=m,t[40]=C):C=t[40];let w;t[41]!==l||t[42]!==m?(w=()=>l(m),t[41]=l,t[42]=m,t[43]=w):w=t[43];let T;t[44]!==a||t[45]!==m?(T=e=>a(m,e),t[44]=a,t[45]=m,t[46]=T):T=t[46];let E;t[47]===m?E=t[48]:(E=Cn(m),t[47]=m,t[48]=E),v=(0,$.jsx)(Ka,{activeModes:b,isActive:!1,onDownload:x,onDuplicate:S,onEdit:C,onRemove:w,onUse:y,onUseMode:T,theme:E,...n.length>1?{variantNavigation:{collectionLabel:_,options:n.flatMap((t,n)=>Cn(t).previews.map(i=>({themeIndex:n,label:e[n]??t.label,activeModes:r(t.id),preview:i}))),onSelectAndUse:(e,t)=>{let r=n[e];r&&(f(e),a(r,t))}}}:{}}),t[7]=r,t[8]=_,t[9]=c,t[10]=o,t[11]=s,t[12]=l,t[13]=i,t[14]=a,t[15]=m,t[16]=n,t[17]=v}else v=t[17];return v}function Ya(e){return et(e).includes(`dark`)}function Xa(e){return et(e).includes(`light`)}function Za(e){let t=(0,Z.c)(118),{theme:n,setTheme:r,appearanceMode:i,setAppearanceMode:a,customThemes:s,initialAppearance:l,refreshTheme:u,isImportOpen:d,onImportOpenChange:f,themeHalves:p,setThemeHalf:m}=e,h=Ln(ao),g=Dn(),[_,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(!1),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=[],t[0]=x):x=t[0];let[S,C]=(0,Q.useState)(x),w;t[1]===S?w=t[2]:(w=new Set(S),t[1]=S,t[2]=w);let T=w,E=_?.theme,D;t[3]===_?.collectionThemes?D=t[4]:(D=_?.collectionThemes??[],t[3]=_?.collectionThemes,t[4]=D);let O=D,k=O.length>1,A=E?.collection?.label??E?.label,j=io,M=ro,P;t[5]===r?P=t[6]:(P=e=>{let t=r(e);return t||j(),t},t[5]=r,t[6]=P);let F=P,I;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(I=(e,t)=>{v({theme:e,collectionThemes:t}),C(t.length>1?[]:[e.id]),b(!0)},t[7]=I):I=t[7];let L=I,z;t[8]!==i||t[9]!==F||t[10]!==m||t[11]!==n||t[12]!==S||t[13]!==_?(z=()=>{if(!_)return;let e=new Set(S);if(e.size===0)return;let t=e.has(Ge(n)?.id??``),r=we();if(!t||F(i===`system`?`system`:i)){for(let n of[`light`,`dark`]){let i=r[n];if(i===void 0)continue;let a=i&&e.has(i)?null:t?i:void 0;if(a!==void 0&&!m(n,a)){M();return}}try{Ne([...e])}catch{M();return}b(!1)}},t[8]=i,t[9]=F,t[10]=m,t[11]=n,t[12]=S,t[13]=_,t[14]=z):z=t[14];let B=z,V=Ge(n)?.id??null,H=p?.light??V,ee=p?.dark??V,te;t[15]!==i||t[16]!==V||t[17]!==F||t[18]!==r||t[19]!==m||t[20]!==n?(te=(e,t)=>{let a=e===`light`?`dark`:`light`;if(t===null&&V!==null){let e=we()[a]??V;if(!F(i===`system`?`system`:i))return;m(a,e)||(r(n),j())}else m(e,t)||j()},t[15]=i,t[16]=V,t[17]=F,t[18]=r,t[19]=m,t[20]=n,t[21]=te):te=t[21];let W=te,G;t[22]!==ee||t[23]!==l||t[24]!==H?(G=Ge((l===`light`?H:ee)??``)??null,t[22]=ee,t[23]=l,t[24]=H,t[25]=G):G=t[25];let ne=G,re=no,ie;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(e,t)=>{let n=re(e);return Tn(n,t)??n.previews[0].colors},t[26]=ie):ie=t[26];let ae=ie,oe;t[27]===a?oe=t[28]:(oe=e=>{a(e)||j()},t[27]=a,t[28]=oe);let se=oe,ce;t[29]===W?ce=t[30]:(ce=e=>t=>{t!==`system`&&W(t,e)},t[29]=W,t[30]=ce);let le=ce,ue;t[31]!==ee||t[32]!==H?(ue=e=>{let t=[];return H===e&&t.push(`light`),ee===e&&t.push(`dark`),t},t[31]=ee,t[32]=H,t[33]=ue):ue=t[33];let de=ue,fe;if(t[34]!==ee||t[35]!==H){let e=e=>ae(e===`light`?H:ee,e);fe=t=>(0,$.jsx)(Ba,{className:`h-[8.75rem]`,panes:t===`system`?[{clip:`left`,colors:e(`light`)},{clip:`right`,colors:e(`dark`)}]:[{colors:e(t===`dark`?`dark`:`light`)}]}),t[34]=ee,t[35]=H,t[36]=fe}else fe=t[36];let K=fe,pe;t[37]!==i||t[38]!==K||t[39]!==se?(pe=()=>(0,$.jsx)(`div`,{"aria-label":`Appearance mode`,className:`grid w-full grid-cols-3 gap-3`,role:`group`,children:[`system`,`light`,`dark`].map(e=>{let t=i===e;return(0,$.jsxs)(`button`,{"aria-label":e===`system`?`Follow the system appearance`:`Use ${e} mode`,"aria-pressed":t,className:U(`flex cursor-pointer flex-col items-stretch gap-1.5 rounded-xl border p-2 outline-none transition-colors focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-2 focus-visible:outline-ring`,t?`border-transparent bg-accent/30`:`border-border/70 bg-card/60 hover:bg-accent/10`),style:t?{boxShadow:`inset 0 0 0 1px var(--ring)`}:void 0,onClick:()=>se(e),type:`button`,children:[K(e),(0,$.jsx)(`span`,{className:U(`flex items-center justify-center text-xs font-medium`,t?`text-foreground`:`text-muted-foreground`),children:e===`system`?`System`:e===`light`?`Light`:`Dark`})]},e)})}),t[37]=i,t[38]=K,t[39]=se,t[40]=pe):pe=t[40];let me=pe,he,q,ge,_e,ve;if(t[41]!==ne?.id||t[42]!==i||t[43]!==W||t[44]!==s||t[45]!==g||t[46]!==le||t[47]!==l||t[48]!==f||t[49]!==h||t[50]!==F||t[51]!==de||t[52]!==me){let e=[...s.reduce(to,new Map).entries()],n=()=>(0,$.jsx)(xt,{children:(0,$.jsxs)(`div`,{className:`grid w-full gap-2`,style:{gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, 16rem), 1fr))`},children:[$n.map(e=>(0,$.jsx)(Ka,{activeModes:de(null),isActive:!1,onDuplicate:()=>h({editingThemeId:null,seedThemeId:null,seedName:`${e.label} copy`,initialAppearance:l}),onUse:()=>F(i===`system`?`system`:i),onUseMode:le(null),theme:e},e.id)),Ha.map(e=>{let t=Cn(e);return(0,$.jsx)(Ka,{activeModes:de(e.id),isActive:!1,onDuplicate:()=>h({editingThemeId:null,seedThemeId:e.id,seedName:`${e.label} copy`,initialAppearance:l}),onUse:()=>F(e.id),onUseMode:le(e.id),theme:t},e.id)}),g.filter(e=>!s.some(t=>t.id===e.id)).map(e=>(0,$.jsx)(Ka,{activeModes:de(e.id),isActive:!1,onDuplicate:()=>h({editingThemeId:null,seedThemeId:e.id,seedName:`${e.label} copy`,initialAppearance:l}),onUse:()=>{let t=Ve(e);t===null?F(e.id):W(t,e.id)},onUseMode:le(e.id),theme:Cn(e)},e.id)),e.map(e=>{let[t,n]=e;return(0,$.jsx)(Ja,{activeModesFor:de,onDownload:eo,onDuplicate:e=>h({editingThemeId:null,seedThemeId:e.id,seedName:`${e.label} copy`,initialAppearance:l}),onEdit:e=>h({editingThemeId:e.id,seedThemeId:null,seedName:null,initialAppearance:l}),onRemove:e=>L(e,n),onUse:e=>{let t=et(e);t.length===1?W(t[0],e.id):F(e.id)},onUseMode:(e,t)=>le(e.id)(t),themes:n},t)})]})});he=`space-y-3`,t[58]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,$.jsx)(`h3`,{className:`px-3 text-sm font-normal text-foreground/70 sm:px-4`,children:X(`color-scheme`).title}),t[58]=q):q=t[58],t[59]===me?ge=t[60]:(ge=me(),t[59]=me,t[60]=ge);let r;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(`h3`,{className:`text-sm font-normal text-foreground/70`,children:X(`theme`).title}),t[61]=r):r=t[61];let a;t[62]!==ne?.id||t[63]!==l||t[64]!==h?(a=()=>h({editingThemeId:null,seedThemeId:ne?.id??null,seedName:null,initialAppearance:l}),t[62]=ne?.id,t[63]=l,t[64]=h,t[65]=a):a=t[65];let c;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(o,{}),t[66]=c):c=t[66];let u;t[67]===a?u=t[68]:(u=(0,$.jsxs)(N,{size:`xs`,variant:`outline`,onClick:a,children:[c,`Create theme`]}),t[67]=a,t[68]=u);let d;t[69]===f?d=t[70]:(d=()=>f(!0),t[69]=f,t[70]=d);let p;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(R,{}),t[71]=p):p=t[71];let m;t[72]===d?m=t[73]:(m=(0,$.jsxs)(N,{size:`xs`,variant:`outline`,onClick:d,children:[p,`Add theme`]}),t[72]=d,t[73]=m),t[74]!==u||t[75]!==m?(_e=(0,$.jsxs)(`div`,{className:`flex min-h-8 flex-wrap items-center justify-between gap-3 px-3 pt-2 sm:px-4`,children:[r,(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[u,m]})]}),t[74]=u,t[75]=m,t[76]=_e):_e=t[76],ve=n(),t[41]=ne?.id,t[42]=i,t[43]=W,t[44]=s,t[45]=g,t[46]=le,t[47]=l,t[48]=f,t[49]=h,t[50]=F,t[51]=de,t[52]=me,t[53]=he,t[54]=q,t[55]=ge,t[56]=_e,t[57]=ve}else he=t[53],q=t[54],ge=t[55],_e=t[56],ve=t[57];let ye;t[77]===u?ye=t[78]:(ye=(e,t)=>{let{updated:n}=t;n&&u();let r=n?`updated`:`added`;be.add(je({type:`success`,title:e.length===1?`${e[0].label} ${r}`:`${e.length} themes ${r}`,description:e.map($a).join(`, `)}))},t[77]=u,t[78]=ye);let xe;t[79]!==W||t[80]!==F?(xe=e=>{let t=et(e);return t.length===1?(W(t[0],e.id),be.add(je({type:`success`,title:`${e.label} added`,description:`It’s now your ${t[0]} theme.`})),!0):F(e.id)?(be.add(je({type:`success`,title:`${e.label} added`,description:`It’s now active.`})),!0):!1},t[79]=W,t[80]=F,t[81]=xe):xe=t[81];let Se;t[82]!==d||t[83]!==f||t[84]!==ye||t[85]!==xe?(Se=(0,$.jsx)(Ra,{onImportedMany:ye,onImported:xe,onOpenChange:f,open:d}),t[82]=d,t[83]=f,t[84]=ye,t[85]=xe,t[86]=Se):Se=t[86];let Ce=k?`Remove themes from “${A}”?`:`Remove “${E?.label}”?`,Te;t[87]===Ce?Te=t[88]:(Te=(0,$.jsx)(nn,{children:Ce}),t[87]=Ce,t[88]=Te);let Ee=k?`Select the variants you want to remove. You can restore them by importing the extension again.`:`You can bring it back anytime by importing its JSON file.`,De;t[89]===Ee?De=t[90]:(De=(0,$.jsx)(tn,{children:Ee}),t[89]=Ee,t[90]=De);let Oe;t[91]!==Te||t[92]!==De?(Oe=(0,$.jsxs)(Zt,{children:[Te,De]}),t[91]=Te,t[92]=De,t[93]=Oe):Oe=t[93];let ke;t[94]!==k||t[95]!==O||t[96]!==T?(ke=k?(0,$.jsx)(`div`,{className:`grid max-h-72 grid-cols-1 gap-2 overflow-y-auto px-6 pb-6 sm:grid-cols-2`,children:O.map(e=>{let t=T.has(e.id),n=Cn(e),r=`remove-theme-${e.id}`;return(0,$.jsxs)(`label`,{className:`group relative flex min-h-28 cursor-pointer flex-col items-center justify-center gap-2 rounded-lg border border-border/70 bg-muted/25 p-3 has-checked:border-ring has-checked:bg-accent/20 hover:bg-muted/40`,htmlFor:r,children:[(0,$.jsxs)(`span`,{className:`absolute right-2 top-2 inline-grid size-5 grid-cols-1 sm:size-4`,children:[(0,$.jsx)(`input`,{checked:t,className:`col-start-1 row-start-1 size-full appearance-none rounded-sm border border-input bg-background outline-none checked:border-primary checked:bg-primary focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring checked:focus-visible:inset-ring-3 checked:focus-visible:inset-ring-background dark:not-checked:bg-input/32 forced-colors:appearance-auto`,id:r,name:`themes-to-remove`,type:`checkbox`,onChange:t=>{let n=t.currentTarget.checked;C(t=>n?[...t,e.id]:t.filter(t=>t!==e.id))}}),(0,$.jsx)(c,{className:`pointer-events-none col-start-1 row-start-1 size-3.5 shrink-0 self-center justify-self-center stroke-primary-foreground opacity-0 group-has-checked:opacity-100 sm:size-3`})]}),(0,$.jsx)(`span`,{className:`flex min-h-12 items-center justify-center gap-1`,children:n.previews.map(Qa)}),(0,$.jsx)(`p`,{className:`max-w-full truncate text-center text-base font-medium text-foreground sm:text-sm`,children:e.label})]},e.id)})}):null,t[94]=k,t[95]=O,t[96]=T,t[97]=ke):ke=t[97];let Ae;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,$.jsx)($t,{render:(0,$.jsx)(N,{variant:`outline`}),children:`Cancel`}),t[98]=Ae):Ae=t[98];let Me=S.length===0,Pe=k?`Remove selected${S.length>0?` (${S.length})`:``}`:`Remove theme`,Fe;t[99]!==B||t[100]!==Me||t[101]!==Pe?(Fe=(0,$.jsxs)(Qt,{children:[Ae,(0,$.jsx)(N,{disabled:Me,variant:`destructive`,onClick:B,children:Pe})]}),t[99]=B,t[100]=Me,t[101]=Pe,t[102]=Fe):Fe=t[102];let Ie;t[103]!==Oe||t[104]!==ke||t[105]!==Fe?(Ie=(0,$.jsxs)(en,{children:[Oe,ke,Fe]}),t[103]=Oe,t[104]=ke,t[105]=Fe,t[106]=Ie):Ie=t[106];let Le;t[107]!==y||t[108]!==Ie?(Le=(0,$.jsx)(rn,{open:y,onOpenChange:b,children:Ie}),t[107]=y,t[108]=Ie,t[109]=Le):Le=t[109];let Re;return t[110]!==he||t[111]!==q||t[112]!==ge||t[113]!==_e||t[114]!==ve||t[115]!==Se||t[116]!==Le?(Re=(0,$.jsxs)(`div`,{className:he,children:[q,ge,_e,ve,Se,Le]}),t[110]=he,t[111]=q,t[112]=ge,t[113]=_e,t[114]=ve,t[115]=Se,t[116]=Le,t[117]=Re):Re=t[117],Re}function Qa(e){return(0,$.jsx)(`span`,{className:`flex size-11 shrink-0 items-center justify-center`,children:(0,$.jsx)(`span`,{className:`flex scale-75`,children:(0,$.jsx)(vn,{colors:e.colors,mode:e.mode})})},e.mode)}function $a(e){return e.label}function eo(e){return Wa(`${e.id}.json`,Le(e))}function to(e,t){let n=t.collection?`collection:${t.collection.id}`:`theme:${t.id}`,r=e.get(n);return r?r.push(t):e.set(n,[t]),e}function no(e){if(e===null)return $n[0];let t=Ge(e);return t?Cn(t):$n[0]}function ro(){be.add(je({type:`error`,title:`Couldn’t remove theme`,description:`Try again.`}))}function io(){be.add(je({type:`error`,title:`Couldn’t save theme selection`,description:`Try again.`}))}function ao(e){return e.openThemeEditor}function oo(e){let t=(0,Z.c)(22),{durationMs:n}=e,[r,i]=(0,Q.useState)(!0),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>i(so),t[0]=a):a=t[0];let o=`${n}ms`,s;t[1]===o?s=t[2]:(s={"--preview-duration":o},t[1]=o,t[2]=s);let c=s,l=r?`w-4`:`w-0`,u;t[3]===l?u=t[4]:(u=U(`h-full shrink-0 overflow-hidden rounded-md bg-sidebar`,`transition-[width,height,border-width] duration-(--preview-duration) ease-out motion-reduce:transition-none`,l),t[3]=l,t[4]=u);let d;t[5]===u?d=t[6]:(d=(0,$.jsx)(`span`,{"aria-hidden":!0,className:u}),t[5]=u,t[6]=d);let f;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsxs)(`span`,{className:`flex min-h-0 flex-1 flex-col gap-1 pt-1`,children:[(0,$.jsx)(`span`,{className:`h-0.5 w-full rounded-full bg-muted-foreground/25`}),(0,$.jsx)(`span`,{className:`h-0.5 w-4/5 rounded-full bg-muted-foreground/20`}),(0,$.jsx)(`span`,{className:`h-0.5 w-3/5 rounded-full bg-muted-foreground/15`})]}),t[7]=f):f=t[7];let p=r?`h-2 border-t border-border/70`:`h-0 border-t-0`,m;t[8]===p?m=t[9]:(m=U(`flex shrink-0 items-center overflow-hidden bg-foreground/5 px-2`,`transition-[width,height,border-width] duration-(--preview-duration) ease-out motion-reduce:transition-none`,p),t[8]=p,t[9]=m);let h;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(`span`,{className:`h-px w-2/3 rounded-full bg-muted-foreground/25`}),t[10]=h):h=t[10];let g;t[11]===m?g=t[12]:(g=(0,$.jsxs)(`span`,{"aria-hidden":!0,className:`flex min-w-0 flex-1 flex-col px-1`,children:[f,(0,$.jsx)(`span`,{className:m,children:h})]}),t[11]=m,t[12]=g);let _=r?`w-5`:`w-0`,v;t[13]===_?v=t[14]:(v=U(`h-full shrink-0 overflow-hidden rounded-md bg-muted`,`transition-[width,height,border-width] duration-(--preview-duration) ease-out motion-reduce:transition-none`,_),t[13]=_,t[14]=v);let y;t[15]===v?y=t[16]:(y=(0,$.jsx)(`span`,{"aria-hidden":!0,className:v}),t[15]=v,t[16]=y);let b;return t[17]!==g||t[18]!==y||t[19]!==c||t[20]!==d?(b=(0,$.jsxs)(`button`,{type:`button`,"aria-label":`Replay panel animation preview`,className:`flex h-10 w-full cursor-pointer overflow-hidden rounded-lg border border-border bg-background p-1 shadow-xs/5 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,onClick:a,style:c,children:[d,g,y]}),t[17]=g,t[18]=y,t[19]=c,t[20]=d,t[21]=b):b=t[21],b}function so(e){return!e}function co(){let{scope:e,connectedEnvironments:t}=dn(),n=Kn(),{snapshots:r,error:i,isLoading:a,refresh:o}=Jn(e.environmentIds),s=Ae(t,H),[c,l]=(0,Q.useState)(``),[u,d]=(0,Q.useState)(`all`),[f,p]=(0,Q.useState)(`newest`),[m,h]=(0,Q.useState)(!1),g=(0,Q.useRef)(!1),[_,v]=(0,Q.useState)(null),y=(0,Q.useMemo)(()=>{let t=e.kind===`project`||e.kind===`checkout`?new Set(e.members.map(e=>`${e.environmentId}:${e.id}`)):null;return r.flatMap(({environmentId:e,snapshot:n})=>n.projects.flatMap(r=>{let i=`${e}:${r.id}`;if(t!==null&&!t.has(i))return[];let a=n.threads.filter(e=>e.projectId===r.id).map(t=>ae(e,t));return a.length?[{key:i,project:{...r,environmentId:e},threads:a}]:[]}))},[r,e]),b=y.flatMap(e=>e.threads),x=y.some(e=>e.key===u)?u:`all`,S=y.flatMap(e=>{if(x!==`all`&&e.key!==x)return[];let t=e.threads.filter(e=>e.title.toLocaleLowerCase().includes(c.trim().toLocaleLowerCase())).toSorted((e,t)=>{if(f===`title`)return e.title.localeCompare(t.title);let n=(t.archivedAt??t.createdAt).localeCompare(e.archivedAt??e.createdAt);return f===`oldest`?-n:n});return t.length?[{...e,threads:t}]:[]}),C=!a&&!i&&e.environmentIds.every(e=>t.some(t=>t.environmentId===e)&&r.some(t=>t.environmentId===e)),w=async(t,r,i=!1)=>{if(!g.current){g.current=!0,h(!0),v(null);try{if(i&&!await De().dialogs.confirm(`Permanently delete all ${t.length} archived chats in ${e.label}? Search and project filters do not limit this action. This cannot be undone.`,{variant:`destructive`}))return;for(let e of t){let t=r===`unarchive`?await n.unarchiveThread(e):i?await n.deleteThread(e):await n.confirmAndDeleteThread(e);if(t._tag===`Failure`)throw G(t)}}catch(e){v(e instanceof Error?e.message:`The action could not be completed. Try again.`)}finally{o(),g.current=!1,h(!1)}}};return(0,$.jsxs)(mn,{width:`wide`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,$.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Archived chats`}),(0,$.jsxs)(N,{variant:`destructive-outline`,size:`sm`,disabled:m||!C||!b.length||b.some(e=>!s.has(e.environmentId)),onClick:()=>void w(b.map(e=>L(e.environmentId,e.id)),`delete`,!0),children:[(0,$.jsx)(O,{"aria-hidden":!0}),` Delete all`]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 sm:grid-cols-[minmax(0,1fr)_9rem_10rem]`,children:[(0,$.jsx)(`div`,{className:`col-span-2 min-w-0 sm:col-span-1`,children:(0,$.jsxs)(Kt,{children:[(0,$.jsx)(Wt,{children:(0,$.jsx)(P,{"aria-hidden":!0})}),(0,$.jsx)(Gt,{type:`search`,"aria-label":`Search archived chats`,placeholder:`Search archived chats`,value:c,onChange:e=>l(e.currentTarget.value)})]})}),(0,$.jsxs)(ge,{value:f,onValueChange:e=>e&&p(e),children:[(0,$.jsx)(q,{"aria-label":`Sort archived chats`,children:(0,$.jsx)(pe,{children:f===`newest`?`Newest first`:f===`oldest`?`Oldest first`:`By title`})}),(0,$.jsxs)(he,{children:[(0,$.jsx)(K,{value:`newest`,children:`Newest first`}),(0,$.jsx)(K,{value:`oldest`,children:`Oldest first`}),(0,$.jsx)(K,{value:`title`,children:`By title`})]})]}),(0,$.jsxs)(ge,{value:x,onValueChange:e=>e&&d(e),children:[(0,$.jsx)(q,{"aria-label":`Filter by project`,children:(0,$.jsx)(pe,{children:x===`all`?`All projects`:y.find(e=>e.key===u)?.project.title??`All projects`})}),(0,$.jsxs)(he,{children:[(0,$.jsx)(K,{value:`all`,children:`All projects`}),y.map(e=>(0,$.jsx)(K,{value:e.key,children:e.project.title},e.key))]})]})]}),_||i?(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-destructive-foreground`,children:[(0,$.jsx)(`p`,{children:_??i}),(0,$.jsx)(N,{variant:`outline`,size:`sm`,onClick:o,children:`Retry`})]}):null,S.map(({key:e,project:t,threads:n},r)=>(0,$.jsx)(gn,{id:r===0?`archive`:void 0,title:t.title,icon:(0,$.jsx)(Ut,{project:t}),headerAction:(0,$.jsxs)(`span`,{className:`text-sm text-muted-foreground`,children:[n.length,` `,n.length===1?`chat`:`chats`]}),children:n.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-4`,onContextMenu:t=>{t.preventDefault(),!m&&s.has(e.environmentId)&&De().contextMenu.show([{id:`unarchive`,label:`Unarchive`},{id:`delete`,label:`Delete`,destructive:!0}],{x:t.clientX,y:t.clientY}).then(t=>{if(t===`delete`||t===`unarchive`)return w([L(e.environmentId,e.id)],t)}).catch(e=>v(e instanceof Error?e.message:`Could not open chat actions.`))},children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`p`,{className:`break-words text-sm font-medium`,children:e.title||`Untitled chat`}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:new Date(e.archivedAt??e.createdAt).toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})})]}),(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{variant:`ghost-destructive`,size:`icon-sm`,"aria-label":`Delete ${e.title}`,disabled:m||!s.has(e.environmentId),onClick:()=>void w([L(e.environmentId,e.id)],`delete`),children:(0,$.jsx)(O,{"aria-hidden":!0})})}),(0,$.jsx)(bt,{children:`Delete chat`})]}),(0,$.jsx)(N,{variant:`soft`,size:`sm`,disabled:m||!s.has(e.environmentId),onClick:()=>void w([L(e.environmentId,e.id)],`unarchive`),children:`Unarchive`})]},e.id))},e)),S.length?null:(0,$.jsx)(`p`,{id:`archive`,role:`status`,className:`py-8 text-center text-sm text-muted-foreground`,children:a?`Loading archived chats…`:i?`Archived chats could not be loaded.`:b.length?`No chats match your filters.`:`No archived chats.`})]})}var lo={artwork:`Artwork`,pill:`Version pill`,none:`None`},uo={turn:`Wait for the full response`,paragraph:`Show finished paragraphs`},fo={turn:`Text appears once the agent finishes its turn.`,paragraph:`Each paragraph or code block appears as soon as it is complete.`},po={updated_at:`Last user message`,created_at:`Created at`,manual:`Manual`},mo=g(E),ho={locale:`System default`,"12-hour":`12-hour`,"24-hour":`24-hour`},go={comfortable:`Comfortable`,wide:`Wide`,full:`Full`},_o={p4:`P4`,lucide:`Lucide`},vo={stacked:`Stacked`,split:`Split`},yo={direct:`Direct`,hold:`Hold`,"double-click":`Double press`},bo={balanced:`Balanced`,performance:`Performance`,"battery-saver":`Battery saver`},xo={...bo,advanced:`Advanced`},So={balanced:`Pauses probes for idle clients, locked hosts, or low power mode.`,performance:`Allows scoped background probes while any subscribed client remains connected.`,"battery-saver":`Also pauses background probes when the host or client is on battery.`},Co=`Uses custom intervals.`,wo=u.make(`codex`),To=[{key:`pauseWhenHostLocked`,label:`Pause when host is locked`},{key:`pauseWhenHostLowPower`,label:`Pause on host low power`},{key:`pauseWhenClientLowPower`,label:`Pause on client low power`},{key:`pauseWhenOnBattery`,label:`Pause on battery`}];function Eo(){return{backgroundActivity:p.backgroundActivity}}function Do(e){return{backgroundActivity:{schemaVersion:1,profile:e,overrides:{}}}}function Oo(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`span`,{className:`inline-flex items-baseline gap-2`,children:[(0,$.jsx)(`span`,{children:`Version`}),(0,$.jsx)(`code`,{className:`text-2xs font-medium text-muted-foreground`,children:re})]}),e[0]=t):t=e[0],t}function ko(){let e=Pn(),[t,n]=(0,Q.useState)(!1),[r,i]=(0,Q.useState)(!1),a=typeof window<`u`&&!!window.desktopBridge,o=e?.channel??`latest`,s=a?null:ie,c=yn||a&&o===`nightly`,l=(0,Q.useCallback)(e=>{let t=window.desktopBridge;t&&typeof t.setUpdateChannel==`function`&&e!==o&&(n(!0),t.setUpdateChannel(e).catch(e=>{be.add(je({type:`error`,title:`Could not change update track`,description:e instanceof Error?e.message:`Update track change failed.`}))}).finally(()=>{n(!1)}))},[o]),u=(0,Q.useCallback)(async()=>{let t=window.desktopBridge;if(!t)return;let n=e?In(e):`none`;if(n===`download`)t.downloadUpdate().catch(e=>{be.add(je({type:`error`,title:`Could not download update`,description:e instanceof Error?e.message:`Download failed.`}))});else if(n===`install`){if(r)return;i(!0);let n=!1;try{n=await De().dialogs.confirm(Wn(e??{availableVersion:null,downloadedVersion:null}))}catch(e){i(!1),be.add(je({type:`error`,title:`Could not confirm update`,description:e instanceof Error?e.message:`Update confirmation failed.`}));return}if(!n){i(!1);return}t.installUpdate().catch(e=>{be.add(je({type:`error`,title:`Could not install update`,description:e instanceof Error?e.message:`Install failed.`}))}).finally(()=>i(!1))}else typeof t.checkForUpdate==`function`&&t.checkForUpdate().then(e=>{e.checked||be.add(je({type:`error`,title:`Could not check for updates`,description:e.state.message??`Automatic updates are not available in this build.`}))}).catch(e=>{be.add(je({type:`error`,title:`Could not check for updates`,description:e instanceof Error?e.message:`Update check failed.`}))})},[r,e]),d=e?In(e):`none`,f=e?Nn(e):null,p=d===`none`?!jn(e):Bn(e),m={download:`Download`,install:`Install`}[d]??{checking:`Checking…`,downloading:`Downloading…`,"up-to-date":`Up to Date`}[e?.status??``]??`Check for Updates`,h=d===`download`||d===`install`?`Update available.`:`Current version of the application.`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(J,{id:X(`app-version`).id,title:(0,$.jsx)(Oo,{}),description:h,control:(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{size:`sm`,variant:`outline`,disabled:p||r,onClick:u,children:m})}),f?(0,$.jsx)(bt,{children:f}):null]})}),a?(0,$.jsx)(J,{...X(`update-track`),description:`Use stable releases or nightly builds. Switch back anytime.`,control:(0,$.jsxs)(ge,{value:o,onValueChange:e=>{l(e)},children:[(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Update track`,disabled:t,children:(0,$.jsx)(pe,{children:o===`nightly`?`Nightly`:`Stable`})}),(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`latest`,children:`Stable`}),(0,$.jsx)(K,{hideIndicator:!0,value:`nightly`,children:`Nightly`})]})]})}):s?(0,$.jsx)(J,{...X(`update-track`),description:`Switches the hosted app release channel.`,control:(0,$.jsxs)(ge,{value:s,onValueChange:e=>{e!==s&&window.location.assign(se({channel:e}))},children:[(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Update track`,children:(0,$.jsx)(pe,{children:oe})}),(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`latest`,children:`Latest`}),(0,$.jsx)(K,{hideIndicator:!0,value:`nightly`,children:`Nightly`})]})]})}):null,c?(0,$.jsx)(Xn,{}):null,a?(0,$.jsx)(Cr,{}):null]})}function Ao(e){let{theme:t,setTheme:n,followSystem:r,setFollowSystem:i,setThemeHalf:a,clearThemeHalves:o,themeHalves:s}=Ce(),c=an(),l=ln(),u=!v(c.textGenerationModelSelection??null,p.textGenerationModelSelection??null),d=_r(c),f=(0,Q.useMemo)(()=>[...t===`system`?[]:[`Theme`],...r?[]:[`Follow system`],...s===null?[]:[`Theme mix`],...c.appearanceContrast===p.appearanceContrast?[]:[`Contrast`],...c.glassOpacity===p.glassOpacity?[]:[`Glass opacity`],...c.diffColorScheme===p.diffColorScheme?[]:[`Diff colors`],...c.chatWidth===p.chatWidth?[]:[`Chat width`],...c.iconSet===p.iconSet?[]:[`Icon set`],...c.mathRenderingEnabled===p.mathRenderingEnabled?[]:[`Render math`],...c.panelAnimationDurationMs===p.panelAnimationDurationMs?[]:[`Panel animations`],...c.environmentIdentificationMode===p.environmentIdentificationMode?[]:[`Environment identification`],...c.timestampFormat===p.timestampFormat?[]:[`Time format`],...c.notificationMode===p.notificationMode?[]:[`Thread notifications`],...c.inAppNotificationsEnabled===p.inAppNotificationsEnabled?[]:[`In-app notifications`],...c.wakeScreenOnThreadEvents===p.wakeScreenOnThreadEvents?[]:[`Auto awake`],...c.sidebarThreadPreviewCount===p.sidebarThreadPreviewCount?[]:[`Visible threads`],...c.sidebarProjectGroupingMode===p.sidebarProjectGroupingMode?[]:[`Project Grouping`],...c.sidebarProjectSortOrder===p.sidebarProjectSortOrder?[]:[`Project order`],...c.sidebarWorkingShelfEnabled===p.sidebarWorkingShelfEnabled?[]:[`Working section`],...c.autoResumeLimitedThreads===p.autoResumeLimitedThreads?[]:[`Auto-resume limited threads`],...c.snoozeLimitedThreads===p.snoozeLimitedThreads?[]:[`Snooze limited threads`],...c.wordWrap===p.wordWrap?[]:[`Word wrap`],...c.persistComposerContextStrip===p.persistComposerContextStrip?[]:[`Composer context`],...hr(c),...c.diffFilesCollapsed===p.diffFilesCollapsed?[]:[`Default diff file state`],...c.diffIgnoreWhitespace===p.diffIgnoreWhitespace?[]:[`Diff whitespace changes`],...c.diffLayout===p.diffLayout?[]:[`Diff layout`],...c.proactivePanelsEnabled===p.proactivePanelsEnabled?[]:[`Proactive panels`],...c.showSkillsInSlashMenu===p.showSkillsInSlashMenu?[]:[`Show skills in slash menu`],...c.composerCollapseOnScroll===p.composerCollapseOnScroll?[]:[`Collapse composer on scroll`],...c.composerRichTextEnabled===p.composerRichTextEnabled?[]:[`Rich text composer`],...c.sendShortcut===p.sendShortcut?[]:[`Send shortcut`],...c.followUpBehavior===p.followUpBehavior?[]:[`Follow-up behavior`],...c.contextWindowMeterEnabled===p.contextWindowMeterEnabled?[]:[`Context window indicator`],...c.responseStreamingMode===p.responseStreamingMode?[]:[`Response streaming`],...c.enableProviderUpdateChecks===p.enableProviderUpdateChecks?[]:[`Provider update checks`],...c.continueThreadsAfterServerUpdate===p.continueThreadsAfterServerUpdate?[]:[`Continue threads after restarts`],...d?[`Background activity`]:[],...c.defaultThreadEnvMode===p.defaultThreadEnvMode?[]:[`New thread mode`],...c.newWorktreesStartFromOrigin===p.newWorktreesStartFromOrigin?[]:[`New worktrees start from origin`],...c.addProjectBaseDirectory===p.addProjectBaseDirectory?[]:[`Add project base directory`],...c.confirmThreadUnpin===p.confirmThreadUnpin?[]:[`Unpin confirmation`],...c.confirmThreadArchive===p.confirmThreadArchive?[]:[`Archive confirmation`],...c.confirmThreadDelete===p.confirmThreadDelete?[]:[`Delete confirmation`],...c.confirmQuit===p.confirmQuit?[]:[`Quit shortcut`],...u?[`Text generation model`]:[],...cr(c),...c.enableAgentBrowserAccess===p.enableAgentBrowserAccess?[]:[`Agent browser access`]],[u,d,c.browserDefaultViewport,c.browserDefaultZoomFactor,c.browserDefaultAppearance,c.browserRecordingFrameRate,c.browserRecordingShowKeyPresses,c.browserRecordingShowMousePresses,c.browserLinkTarget,c.browserAutoShowFloatingPreview,c.pullRequestLinksOpenInApp,c.appearanceContrast,c.diffColorScheme,c.chatWidth,c.iconSet,c.mathRenderingEnabled,c.enableAgentBrowserAccess,c.confirmQuit,c.confirmThreadArchive,c.confirmThreadDelete,c.confirmThreadUnpin,c.composerCollapseOnScroll,c.composerRichTextEnabled,c.sendShortcut,c.followUpBehavior,c.addProjectBaseDirectory,c.defaultThreadEnvMode,c.newWorktreesStartFromOrigin,c.diffFilesCollapsed,c.diffIgnoreWhitespace,c.diffLayout,c.proactivePanelsEnabled,c.environmentIdentificationMode,c.contextWindowMeterEnabled,c.fontFamilyCode,c.fontFamilyComposer,c.fontFamilySans,c.fontFamilyTerminal,c.fontSizeCode,c.fontSizeInterface,c.fontSizePrompt,c.fontSizeTerminal,c.glassOpacity,c.panelAnimationDurationMs,c.responseStreamingMode,c.persistComposerContextStrip,c.enableProviderUpdateChecks,c.continueThreadsAfterServerUpdate,c.autoResumeLimitedThreads,c.snoozeLimitedThreads,c.sidebarProjectGroupingMode,c.sidebarProjectSortOrder,c.sidebarWorkingShelfEnabled,c.sidebarThreadPreviewCount,c.showSkillsInSlashMenu,c.timestampFormat,c.notificationMode,c.inAppNotificationsEnabled,c.wakeScreenOnThreadEvents,c.wordWrap,r,t,s]);return{changedSettingLabels:f,restoreDefaults:(0,Q.useCallback)(async()=>{if(f.length===0||!await(Se()??De()).dialogs.confirm([`Restore default settings?`,`This will reset: ${f.join(`, `)}.`].join(`
45
45
  `),{variant:`destructive`}))return;let r=t;try{r=Ee()}catch{}let s=xe(),c=r!==`system`,u=s!==null,d=Te(r)!==`system`,m=()=>{be.add(je({type:`error`,title:`Couldn’t restore theme settings`,description:`Try again.`}))},h=s;c&&!n(`system`)?m():u&&!o()||d&&!i(!0)?(c&&n(r),h?.light&&a(`light`,h.light),h?.dark&&a(`dark`,h.dark),m()):(l({appearanceContrast:p.appearanceContrast,diffColorScheme:p.diffColorScheme,chatWidth:p.chatWidth,iconSet:p.iconSet,mathRenderingEnabled:p.mathRenderingEnabled,timestampFormat:p.timestampFormat,notificationMode:p.notificationMode,inAppNotificationsEnabled:p.inAppNotificationsEnabled,wakeScreenOnThreadEvents:p.wakeScreenOnThreadEvents,wordWrap:p.wordWrap,persistComposerContextStrip:p.persistComposerContextStrip,diffFilesCollapsed:p.diffFilesCollapsed,diffIgnoreWhitespace:p.diffIgnoreWhitespace,diffLayout:p.diffLayout,proactivePanelsEnabled:p.proactivePanelsEnabled,showSkillsInSlashMenu:p.showSkillsInSlashMenu,composerCollapseOnScroll:p.composerCollapseOnScroll,composerRichTextEnabled:p.composerRichTextEnabled,sendShortcut:p.sendShortcut,followUpBehavior:p.followUpBehavior,contextWindowMeterEnabled:p.contextWindowMeterEnabled,environmentIdentificationMode:p.environmentIdentificationMode,glassOpacity:p.glassOpacity,panelAnimationDurationMs:p.panelAnimationDurationMs,sidebarThreadPreviewCount:p.sidebarThreadPreviewCount,sidebarProjectGroupingMode:p.sidebarProjectGroupingMode,sidebarProjectSortOrder:p.sidebarProjectSortOrder,sidebarWorkingShelfEnabled:p.sidebarWorkingShelfEnabled,autoResumeLimitedThreads:p.autoResumeLimitedThreads,snoozeLimitedThreads:p.snoozeLimitedThreads,responseStreamingMode:p.responseStreamingMode,enableProviderUpdateChecks:p.enableProviderUpdateChecks,continueThreadsAfterServerUpdate:p.continueThreadsAfterServerUpdate,backgroundActivity:p.backgroundActivity,backgroundActivityProfile:p.backgroundActivityProfile,automaticGitFetchInterval:p.automaticGitFetchInterval,providerHealthRefreshInterval:p.providerHealthRefreshInterval,defaultThreadEnvMode:p.defaultThreadEnvMode,newWorktreesStartFromOrigin:p.newWorktreesStartFromOrigin,addProjectBaseDirectory:p.addProjectBaseDirectory,confirmThreadArchive:p.confirmThreadArchive,confirmThreadDelete:p.confirmThreadDelete,confirmThreadUnpin:p.confirmThreadUnpin,confirmQuit:p.confirmQuit,textGenerationModelSelection:p.textGenerationModelSelection,fontFamilySans:p.fontFamilySans,fontFamilyComposer:p.fontFamilyComposer,fontFamilyCode:p.fontFamilyCode,fontFamilyTerminal:p.fontFamilyTerminal,fontSizeInterface:p.fontSizeInterface,fontSizePrompt:p.fontSizePrompt,fontSizeCode:p.fontSizeCode,fontSizeTerminal:p.fontSizeTerminal,browserDefaultViewport:p.browserDefaultViewport,browserDefaultZoomFactor:p.browserDefaultZoomFactor,browserDefaultAppearance:p.browserDefaultAppearance,browserRecordingFrameRate:p.browserRecordingFrameRate,browserRecordingShowKeyPresses:p.browserRecordingShowKeyPresses,browserRecordingShowMousePresses:p.browserRecordingShowMousePresses,browserLinkTarget:p.browserLinkTarget,browserSearchEngine:p.browserSearchEngine,browserCustomSearchUrl:p.browserCustomSearchUrl,browserAutoShowFloatingPreview:p.browserAutoShowFloatingPreview,pullRequestLinksOpenInApp:p.pullRequestLinksOpenInApp,enableAgentBrowserAccess:p.enableAgentBrowserAccess}),e?.())},[f,o,e,i,n,a,t,s,l])}}function jo(e){let t=(0,Z.c)(98),{open:n,onOpenChange:r}=e,i=cn(),a=an(),o=ln(),s,c,l,u,d,f;t[0]===a?(s=t[1],c=t[2],l=t[3],u=t[4],d=t[5],f=t[6]):(d=Oe(a),s=d.profile,c=fr(d.automaticGitFetchInterval),u=fr(d.providerHealthRefreshInterval),l=fr(d.hostPowerMonitorActiveInterval),f=fr(d.hostPowerMonitorIdleInterval),t[0]=a,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=d,t[6]=f);let p=f,m=n&&i,h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsxs)(jt,{children:[(0,$.jsx)(Mt,{children:`Background Activity`}),(0,$.jsx)(Ft,{children:`Tune the shared power policy and the background intervals that feed it.`})]}),t[7]=h):h=t[7];let g=!i,_;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium`,children:`Shared policy`}),(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Controls whether background work may run after a subscribed interval fires.`})]}),t[8]=_):_=t[8];let v;t[9]!==a||t[10]!==o?(v=e=>{(e===`balanced`||e===`performance`||e===`battery-saver`)&&o({backgroundActivity:mr(a,e)})},t[9]=a,t[10]=o,t[11]=v):v=t[11];let b=bo[s],x;t[12]===b?x=t[13]:(x=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Shared background policy`,children:(0,$.jsx)(pe,{children:b})}),t[12]=b,t[13]=x);let S;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`balanced`,children:bo.balanced}),(0,$.jsx)(K,{hideIndicator:!0,value:`performance`,children:bo.performance}),(0,$.jsx)(K,{hideIndicator:!0,value:`battery-saver`,children:bo[`battery-saver`]})]}),t[14]=S):S=t[14];let C;t[15]!==s||t[16]!==v||t[17]!==x?(C=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 border-b px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[_,(0,$.jsxs)(ge,{value:s,onValueChange:v,children:[x,S]})]}),t[15]=s,t[16]=v,t[17]=x,t[18]=C):C=t[18];let w;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium`,children:X(`git-fetch-interval`).title}),(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Refresh remote branch status in the background.`})]}),t[19]=w):w=t[19];let T;t[20]!==d||t[21]!==a.backgroundActivity||t[22]!==o?(T=e=>o(vr(a.backgroundActivity,d,{automaticGitFetchInterval:y(pr(e))})),t[20]=d,t[21]=a.backgroundActivity,t[22]=o,t[23]=T):T=t[23];let E;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsxs)(de,{children:[(0,$.jsx)(ue,{"aria-label":`Decrease Git fetch interval`}),(0,$.jsx)(ce,{"aria-label":`Git fetch interval in seconds`}),(0,$.jsx)(le,{"aria-label":`Increase Git fetch interval`})]}),t[24]=E):E=t[24];let D;t[25]!==c||t[26]!==T?(D=(0,$.jsx)(fe,{value:c,min:0,step:5,size:`sm`,className:`w-32`,onValueChange:T,children:E}),t[25]=c,t[26]=T,t[27]=D):D=t[27];let O;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`seconds`}),t[28]=O):O=t[28];let k;t[29]===D?k=t[30]:(k=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 border-b px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[w,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[D,O]})]}),t[29]=D,t[30]=k);let A;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium`,children:`Provider health interval`}),(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Refresh provider availability, versions, and auth state. Model catalog updates follow Provider update checks.`})]}),t[31]=A):A=t[31];let j;t[32]!==d||t[33]!==a.backgroundActivity||t[34]!==o?(j=e=>o(vr(a.backgroundActivity,d,{providerHealthRefreshInterval:y(pr(e))})),t[32]=d,t[33]=a.backgroundActivity,t[34]=o,t[35]=j):j=t[35];let M;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsxs)(de,{children:[(0,$.jsx)(ue,{"aria-label":`Decrease provider health interval`}),(0,$.jsx)(ce,{"aria-label":`Provider health interval in seconds`}),(0,$.jsx)(le,{"aria-label":`Increase provider health interval`})]}),t[36]=M):M=t[36];let P;t[37]!==u||t[38]!==j?(P=(0,$.jsx)(fe,{value:u,min:0,step:30,size:`sm`,className:`w-32`,onValueChange:j,children:M}),t[37]=u,t[38]=j,t[39]=P):P=t[39];let F;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`seconds`}),t[40]=F):F=t[40];let I;t[41]===P?I=t[42]:(I=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[A,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[P,F]})]}),t[41]=P,t[42]=I);let L;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium`,children:`Host power monitor`}),(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Poll host power state while clients are active.`})]}),t[43]=L):L=t[43];let R;t[44]!==d||t[45]!==a.backgroundActivity||t[46]!==o?(R=e=>o(vr(a.backgroundActivity,d,{hostPowerMonitorActiveInterval:y(pr(e,5))})),t[44]=d,t[45]=a.backgroundActivity,t[46]=o,t[47]=R):R=t[47];let z;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsxs)(de,{children:[(0,$.jsx)(ue,{"aria-label":`Decrease active host power interval`}),(0,$.jsx)(ce,{"aria-label":`Active host power interval in seconds`}),(0,$.jsx)(le,{"aria-label":`Increase active host power interval`})]}),t[48]=z):z=t[48];let B;t[49]!==l||t[50]!==R?(B=(0,$.jsx)(fe,{value:l,min:5,step:5,size:`sm`,className:`w-32`,onValueChange:R,children:z}),t[49]=l,t[50]=R,t[51]=B):B=t[51];let V;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`seconds`}),t[52]=V):V=t[52];let H;t[53]===B?H=t[54]:(H=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 border-t px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[L,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[B,V]})]}),t[53]=B,t[54]=H);let U;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium`,children:`Idle host monitor`}),(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Poll host power state when no foreground client is active.`})]}),t[55]=U):U=t[55];let ee;t[56]!==d||t[57]!==a.backgroundActivity||t[58]!==o?(ee=e=>o(vr(a.backgroundActivity,d,{hostPowerMonitorIdleInterval:y(pr(e,5))})),t[56]=d,t[57]=a.backgroundActivity,t[58]=o,t[59]=ee):ee=t[59];let te;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,$.jsxs)(de,{children:[(0,$.jsx)(ue,{"aria-label":`Decrease idle host power interval`}),(0,$.jsx)(ce,{"aria-label":`Idle host power interval in seconds`}),(0,$.jsx)(le,{"aria-label":`Increase idle host power interval`})]}),t[60]=te):te=t[60];let W;t[61]!==p||t[62]!==ee?(W=(0,$.jsx)(fe,{value:p,min:5,step:30,size:`sm`,className:`w-32`,onValueChange:ee,children:te}),t[61]=p,t[62]=ee,t[63]=W):W=t[63];let G;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`seconds`}),t[64]=G):G=t[64];let ne;t[65]===W?ne=t[66]:(ne=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 border-t px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[U,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[W,G]})]}),t[65]=W,t[66]=ne);let re;t[67]!==d||t[68]!==a.backgroundActivity||t[69]!==o?(re=To.map(e=>{let{key:t,label:n}=e;return(0,$.jsxs)(`label`,{className:`flex items-center justify-between gap-3 border-b px-4 py-3 last:border-b-0 sm:border-r sm:even:border-r-0`,children:[(0,$.jsx)(`span`,{className:`text-sm font-medium`,children:n}),(0,$.jsx)(Fn,{checked:d[t],onCheckedChange:e=>o(vr(a.backgroundActivity,d,{[t]:!!e})),"aria-label":n})]},t)}),t[67]=d,t[68]=a.backgroundActivity,t[69]=o,t[70]=re):re=t[70];let ie;t[71]===re?ie=t[72]:(ie=(0,$.jsx)(`div`,{className:`grid gap-0 border-t sm:grid-cols-2`,children:re}),t[71]=re,t[72]=ie);let ae;t[73]!==C||t[74]!==k||t[75]!==I||t[76]!==H||t[77]!==ne||t[78]!==ie||t[79]!==g?(ae=(0,$.jsx)(Pt,{children:(0,$.jsxs)(`fieldset`,{disabled:g,className:`min-w-0 overflow-hidden rounded-xl border bg-card text-card-foreground`,children:[C,k,I,H,ne,ie]})}),t[73]=C,t[74]=k,t[75]=I,t[76]=H,t[77]=ne,t[78]=ie,t[79]=g,t[80]=ae):ae=t[80];let oe=!i,se;t[81]===o?se=t[82]:(se=()=>o(Eo()),t[81]=o,t[82]=se);let me;t[83]!==oe||t[84]!==se?(me=(0,$.jsx)(N,{variant:`outline`,disabled:oe,onClick:se,children:`Reset all`}),t[83]=oe,t[84]=se,t[85]=me):me=t[85];let _e;t[86]===r?_e=t[87]:(_e=(0,$.jsx)(N,{onClick:()=>r(!1),children:`Done`}),t[86]=r,t[87]=_e);let ve;t[88]!==me||t[89]!==_e?(ve=(0,$.jsxs)(Nt,{children:[me,_e]}),t[88]=me,t[89]=_e,t[90]=ve):ve=t[90];let ye;t[91]!==ae||t[92]!==ve?(ye=(0,$.jsxs)(It,{className:`max-w-xl`,children:[h,ae,ve]}),t[91]=ae,t[92]=ve,t[93]=ye):ye=t[93];let be;return t[94]!==r||t[95]!==m||t[96]!==ye?(be=(0,$.jsx)(Lt,{open:m,onOpenChange:r,children:ye}),t[94]=r,t[95]=m,t[96]=ye,t[97]=be):be=t[97],be}function Mo(){let e=(0,Z.c)(179),{appearanceMode:t,refreshTheme:n,resolvedTheme:r,setAppearanceMode:i,setTheme:a,setThemeHalf:o,theme:s,themeHalves:c}=Ce(),l=Sn(),[u,d]=(0,Q.useState)(!1),f=an(),m=ln(),h=tr(),g;e[0]===h?g=e[1]:(g=nr(h),e[0]=h,e[1]=g);let _=g!==null,v=(f.glassOpacity-40)/60,y=`${v*100}%`,x=`${.5-v}rem`,S;e[2]!==y||e[3]!==x?(S={"--settings-slider-progress":y,"--settings-slider-fill-offset":x},e[2]=y,e[3]=x,e[4]=S):S=e[4];let C=S,w=(f.appearanceContrast-50)/150,T=`${w*100}%`,E=`${.5-w}rem`,D;e[5]!==T||e[6]!==E?(D={"--settings-slider-progress":T,"--settings-slider-fill-offset":E},e[5]=T,e[6]=E,e[7]=D):D=e[7];let O=D,k=(f.panelAnimationDurationMs-0)/400,A=`${k*100}%`,j=`${.5-k}rem`,M;e[8]!==A||e[9]!==j?(M={"--settings-slider-progress":A,"--settings-slider-fill-offset":j},e[8]=A,e[9]=j,e[10]=M):M=e[10];let N=M,P;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=X(`theme`),e[11]=P):P=e[11];let F;e[12]!==t||e[13]!==l||e[14]!==u||e[15]!==n||e[16]!==r||e[17]!==i||e[18]!==a||e[19]!==o||e[20]!==s||e[21]!==c?(F=(0,$.jsx)(gn,{id:`appearance`,title:`Colors & themes`,variant:`plain`,hideTitle:!0,children:(0,$.jsx)(`div`,{id:P.id,children:(0,$.jsx)(Za,{appearanceMode:t,customThemes:l,initialAppearance:r,refreshTheme:n,isImportOpen:u,setAppearanceMode:i,setTheme:a,setThemeHalf:o,theme:s,themeHalves:c,onImportOpenChange:d})})}),e[12]=t,e[13]=l,e[14]=u,e[15]=n,e[16]=r,e[17]=i,e[18]=a,e[19]=o,e[20]=s,e[21]=c,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=X(`setting-appearance-contrast`),e[23]=I):I=e[23];let L;e[24]!==f.appearanceContrast||e[25]!==m?(L=f.appearanceContrast===p.appearanceContrast?null:(0,$.jsx)(Y,{label:`contrast`,onClick:()=>m({appearanceContrast:p.appearanceContrast})}),e[24]=f.appearanceContrast,e[25]=m,e[26]=L):L=e[26];let R;e[27]===f.appearanceContrast?R=e[28]:(R=(0,$.jsxs)(`output`,{className:`min-w-12 rounded-md bg-muted px-2 py-1 text-center font-mono text-xs font-medium tabular-nums text-foreground`,htmlFor:`appearance-contrast`,children:[f.appearanceContrast,`%`]}),e[27]=f.appearanceContrast,e[28]=R);let z;e[29]===m?z=e[30]:(z=e=>{let t=Number(e.currentTarget.value);Number.isInteger(t)&&t>=50&&t<=200&&m({appearanceContrast:t})},e[29]=m,e[30]=z);let B;e[31]!==O||e[32]!==f.appearanceContrast||e[33]!==z?(B=(0,$.jsx)(`input`,{"aria-label":`Contrast`,className:`settings-slider min-w-0 flex-1`,id:`appearance-contrast`,max:200,min:50,onChange:z,step:5,style:O,type:`range`,value:f.appearanceContrast}),e[31]=O,e[32]=f.appearanceContrast,e[33]=z,e[34]=B):B=e[34];let V;e[35]!==R||e[36]!==B?(V=(0,$.jsxs)(`div`,{className:`flex w-full items-center gap-3 sm:w-52`,children:[R,B]}),e[35]=R,e[36]=B,e[37]=V):V=e[37];let H;e[38]!==L||e[39]!==V?(H=(0,$.jsx)(J,{...I,description:`Adjust the contrast of colors and borders across the interface.`,resetAction:L,control:V}),e[38]=L,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=X(`setting-glass-opacity`),e[41]=U):U=e[41];let ee;e[42]!==f.glassOpacity||e[43]!==m?(ee=f.glassOpacity===p.glassOpacity?null:(0,$.jsx)(Y,{label:`glass opacity`,onClick:()=>m({glassOpacity:p.glassOpacity})}),e[42]=f.glassOpacity,e[43]=m,e[44]=ee):ee=e[44];let te;e[45]===f.glassOpacity?te=e[46]:(te=(0,$.jsxs)(`output`,{className:`min-w-12 rounded-md bg-muted px-2 py-1 text-center font-mono text-xs font-medium tabular-nums text-foreground`,htmlFor:`glass-opacity`,children:[f.glassOpacity,`%`]}),e[45]=f.glassOpacity,e[46]=te);let W;e[47]===m?W=e[48]:(W=e=>{let t=Number(e.currentTarget.value);Number.isInteger(t)&&t>=40&&t<=100&&m({glassOpacity:t})},e[47]=m,e[48]=W);let G;e[49]!==C||e[50]!==f.glassOpacity||e[51]!==W?(G=(0,$.jsx)(`input`,{"aria-label":`Glass opacity`,className:`settings-slider min-w-0 flex-1`,id:`glass-opacity`,max:100,min:40,onChange:W,step:5,style:C,type:`range`,value:f.glassOpacity}),e[49]=C,e[50]=f.glassOpacity,e[51]=W,e[52]=G):G=e[52];let ne;e[53]!==te||e[54]!==G?(ne=(0,$.jsxs)(`div`,{className:`flex w-full items-center gap-3 sm:w-52`,children:[te,G]}),e[53]=te,e[54]=G,e[55]=ne):ne=e[55];let re;e[56]!==ee||e[57]!==ne?(re=(0,$.jsx)(J,{...U,description:`Higher values make menus, dialogs, and the composer more solid.`,resetAction:ee,control:ne}),e[56]=ee,e[57]=ne,e[58]=re):re=e[58];let ie;e[59]!==f.environmentIdentificationMode||e[60]!==_||e[61]!==m?(ie=_?(0,$.jsx)(J,{...X(`environment-identification`),description:`Choose how Dev and Nightly environments are identified.`,resetAction:f.environmentIdentificationMode===`artwork`?null:(0,$.jsx)(Y,{label:`environment identification`,onClick:()=>m({environmentIdentificationMode:b})}),control:(0,$.jsxs)(ge,{value:f.environmentIdentificationMode,onValueChange:e=>{(e===`artwork`||e===`pill`||e===`none`)&&m({environmentIdentificationMode:e})},children:[(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Environment identification`,children:(0,$.jsx)(pe,{children:lo[f.environmentIdentificationMode]})}),(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:Object.entries(lo).map(No)})]})}):null,e[59]=f.environmentIdentificationMode,e[60]=_,e[61]=m,e[62]=ie):ie=e[62];let ae;e[63]===Symbol.for(`react.memo_cache_sentinel`)?(ae=X(`diff-color-scheme`),e[63]=ae):ae=e[63];let oe;e[64]!==f.diffColorScheme||e[65]!==m?(oe=f.diffColorScheme===p.diffColorScheme?null:(0,$.jsx)(Y,{label:`diff colors`,onClick:()=>m({diffColorScheme:p.diffColorScheme})}),e[64]=f.diffColorScheme,e[65]=m,e[66]=oe):oe=e[66];let se;e[67]===m?se=e[68]:(se=e=>{(e===`red-green`||e===`blue-orange`)&&m({diffColorScheme:e})},e[67]=m,e[68]=se);let ce=f.diffColorScheme===`blue-orange`?`flex shrink-0 flex-row-reverse gap-1`:`flex shrink-0 gap-1`,le,ue;e[69]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-diff-deletion`}),ue=(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-diff-addition`}),e[69]=le,e[70]=ue):(le=e[69],ue=e[70]);let de;e[71]===ce?de=e[72]:(de=(0,$.jsxs)(`span`,{"aria-hidden":`true`,className:ce,children:[le,ue]}),e[71]=ce,e[72]=de);let fe=f.diffColorScheme===`blue-orange`?`Blue & orange`:`Red & green`,me;e[73]===fe?me=e[74]:(me=(0,$.jsx)(pe,{children:fe}),e[73]=fe,e[74]=me);let _e;e[75]!==de||e[76]!==me?(_e=(0,$.jsxs)(q,{size:`sm`,className:`w-full min-w-0`,"aria-label":`Diff colors`,children:[de,me]}),e[75]=de,e[76]=me,e[77]=_e):_e=e[77];let ve;e[78]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{value:`red-green`,children:`Red & green (default)`}),(0,$.jsx)(K,{value:`blue-orange`,children:`Blue & orange`})]}),e[78]=ve):ve=e[78];let ye;e[79]!==f.diffColorScheme||e[80]!==se||e[81]!==_e?(ye=(0,$.jsx)(`div`,{className:`w-full sm:w-40`,children:(0,$.jsxs)(ge,{value:f.diffColorScheme,onValueChange:se,children:[_e,ve]})}),e[79]=f.diffColorScheme,e[80]=se,e[81]=_e,e[82]=ye):ye=e[82];let be;e[83]!==oe||e[84]!==ye?(be=(0,$.jsx)(J,{...ae,description:`Choose colors for additions and deletions, including change counts.`,resetAction:oe,control:ye}),e[83]=oe,e[84]=ye,e[85]=be):be=e[85];let xe;e[86]===Symbol.for(`react.memo_cache_sentinel`)?(xe=X(`composer-context`),e[86]=xe):xe=e[86];let Se;e[87]!==f.persistComposerContextStrip||e[88]!==m?(Se=f.persistComposerContextStrip===p.persistComposerContextStrip?null:(0,$.jsx)(Y,{label:`composer context`,onClick:()=>m({persistComposerContextStrip:p.persistComposerContextStrip})}),e[87]=f.persistComposerContextStrip,e[88]=m,e[89]=Se):Se=e[89];let we;e[90]===m?we=e[91]:(we=e=>m({persistComposerContextStrip:!!e}),e[90]=m,e[91]=we);let Te;e[92]!==f.persistComposerContextStrip||e[93]!==we?(Te=(0,$.jsx)(Fn,{checked:f.persistComposerContextStrip,onCheckedChange:we,"aria-label":`Keep composer context visible in active threads`}),e[92]=f.persistComposerContextStrip,e[93]=we,e[94]=Te):Te=e[94];let Ee;e[95]!==Se||e[96]!==Te?(Ee=(0,$.jsx)(J,{...xe,description:`Keep branch and worktree controls below the composer after a thread starts.`,resetAction:Se,control:Te}),e[95]=Se,e[96]=Te,e[97]=Ee):Ee=e[97];let De;e[98]===Symbol.for(`react.memo_cache_sentinel`)?(De=X(`chat-width`),e[98]=De):De=e[98];let Oe;e[99]!==f.chatWidth||e[100]!==m?(Oe=f.chatWidth===p.chatWidth?null:(0,$.jsx)(Y,{label:`chat width`,onClick:()=>m({chatWidth:p.chatWidth})}),e[99]=f.chatWidth,e[100]=m,e[101]=Oe):Oe=e[101];let ke;e[102]===m?ke=e[103]:(ke=e=>{(e===`comfortable`||e===`wide`||e===`full`)&&m({chatWidth:e})},e[102]=m,e[103]=ke);let Ae=go[f.chatWidth],je;e[104]===Ae?je=e[105]:(je=(0,$.jsx)(q,{size:`sm`,className:`w-full min-w-0`,"aria-label":`Chat width`,children:(0,$.jsx)(pe,{children:Ae})}),e[104]=Ae,e[105]=je);let Me;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{value:`comfortable`,children:`Comfortable (default)`}),(0,$.jsx)(K,{value:`wide`,children:`Wide`}),(0,$.jsx)(K,{value:`full`,children:`Full`})]}),e[106]=Me):Me=e[106];let Ne;e[107]!==f.chatWidth||e[108]!==ke||e[109]!==je?(Ne=(0,$.jsx)(`div`,{className:`w-full sm:w-40`,children:(0,$.jsxs)(ge,{value:f.chatWidth,onValueChange:ke,children:[je,Me]})}),e[107]=f.chatWidth,e[108]=ke,e[109]=je,e[110]=Ne):Ne=e[110];let Pe;e[111]!==Oe||e[112]!==Ne?(Pe=(0,$.jsx)(J,{...De,description:`Set how wide messages and the composer can grow on large screens.`,resetAction:Oe,control:Ne}),e[111]=Oe,e[112]=Ne,e[113]=Pe):Pe=e[113];let Fe;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=X(`icon-set`),e[114]=Fe):Fe=e[114];let Ie;e[115]!==f.iconSet||e[116]!==m?(Ie=f.iconSet===p.iconSet?null:(0,$.jsx)(Y,{label:`icon set`,onClick:()=>m({iconSet:p.iconSet})}),e[115]=f.iconSet,e[116]=m,e[117]=Ie):Ie=e[117];let Le;e[118]===m?Le=e[119]:(Le=e=>{(e===`p4`||e===`lucide`)&&m({iconSet:e})},e[118]=m,e[119]=Le);let Re=_o[f.iconSet],ze;e[120]===Re?ze=e[121]:(ze=(0,$.jsx)(q,{size:`sm`,className:`w-full min-w-0`,"aria-label":`Icon set`,children:(0,$.jsx)(pe,{children:Re})}),e[120]=Re,e[121]=ze);let Be;e[122]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{value:`p4`,children:`P4 (default)`}),(0,$.jsx)(K,{value:`lucide`,children:`Lucide`})]}),e[122]=Be):Be=e[122];let Ve;e[123]!==f.iconSet||e[124]!==Le||e[125]!==ze?(Ve=(0,$.jsx)(`div`,{className:`w-full sm:w-40`,children:(0,$.jsxs)(ge,{value:f.iconSet,onValueChange:Le,children:[ze,Be]})}),e[123]=f.iconSet,e[124]=Le,e[125]=ze,e[126]=Ve):Ve=e[126];let He;e[127]!==Ie||e[128]!==Ve?(He=(0,$.jsx)(J,{...Fe,description:`Choose which icon drawings the app uses. An icon missing from one set shows the other set's drawing.`,resetAction:Ie,control:Ve}),e[127]=Ie,e[128]=Ve,e[129]=He):He=e[129];let Ue;e[130]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=X(`math-rendering`),e[130]=Ue):Ue=e[130];let We;e[131]!==f.mathRenderingEnabled||e[132]!==m?(We=f.mathRenderingEnabled===p.mathRenderingEnabled?null:(0,$.jsx)(Y,{label:`math rendering`,onClick:()=>m({mathRenderingEnabled:p.mathRenderingEnabled})}),e[131]=f.mathRenderingEnabled,e[132]=m,e[133]=We):We=e[133];let Ge;e[134]===m?Ge=e[135]:(Ge=e=>m({mathRenderingEnabled:!!e}),e[134]=m,e[135]=Ge);let Ke;e[136]!==f.mathRenderingEnabled||e[137]!==Ge?(Ke=(0,$.jsx)(Fn,{checked:f.mathRenderingEnabled,onCheckedChange:Ge,"aria-label":`Render math`}),e[136]=f.mathRenderingEnabled,e[137]=Ge,e[138]=Ke):Ke=e[138];let qe;e[139]!==We||e[140]!==Ke?(qe=(0,$.jsx)(J,{...Ue,description:`Typeset LaTeX math, such as $x^2$ or \\[x^2\\], in messages and Markdown previews. The composer keeps TeX source editable.`,resetAction:We,control:Ke}),e[139]=We,e[140]=Ke,e[141]=qe):qe=e[141];let Je;e[142]!==H||e[143]!==re||e[144]!==ie||e[145]!==be||e[146]!==Ee||e[147]!==Pe||e[148]!==He||e[149]!==qe?(Je=(0,$.jsxs)(gn,{id:`appearance-interface`,title:`Interface`,children:[H,re,ie,be,Ee,Pe,He,qe]}),e[142]=H,e[143]=re,e[144]=ie,e[145]=be,e[146]=Ee,e[147]=Pe,e[148]=He,e[149]=qe,e[150]=Je):Je=e[150];let Ye;e[151]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=X(`panel-animations`),e[151]=Ye):Ye=e[151];let Xe;e[152]===f.panelAnimationDurationMs?Xe=e[153]:(Xe=(0,$.jsx)(oo,{durationMs:f.panelAnimationDurationMs}),e[152]=f.panelAnimationDurationMs,e[153]=Xe);let Ze;e[154]===f.panelAnimationDurationMs?Ze=e[155]:(Ze=(0,$.jsxs)(`output`,{className:`min-w-16 rounded-md bg-muted px-2 py-1 text-center font-mono text-xs font-medium tabular-nums text-foreground`,htmlFor:`panel-animation-duration`,children:[f.panelAnimationDurationMs,` ms`]}),e[154]=f.panelAnimationDurationMs,e[155]=Ze);let Qe;e[156]===m?Qe=e[157]:(Qe=e=>{let t=Number(e.currentTarget.value);Number.isInteger(t)&&t>=0&&t<=400&&m({panelAnimationDurationMs:t})},e[156]=m,e[157]=Qe);let $e;e[158]!==N||e[159]!==f.panelAnimationDurationMs||e[160]!==Qe?($e=(0,$.jsx)(`input`,{"aria-label":`Panel animation duration`,className:`settings-slider min-w-0 flex-1`,id:`panel-animation-duration`,max:400,min:0,onChange:Qe,step:25,style:N,type:`range`,value:f.panelAnimationDurationMs}),e[158]=N,e[159]=f.panelAnimationDurationMs,e[160]=Qe,e[161]=$e):$e=e[161];let et;e[162]!==Ze||e[163]!==$e?(et=(0,$.jsxs)(`div`,{className:`flex w-full items-center gap-3`,children:[Ze,$e]}),e[162]=Ze,e[163]=$e,e[164]=et):et=e[164];let tt;e[165]!==Xe||e[166]!==et?(tt=(0,$.jsxs)(`div`,{className:`grid w-full grid-cols-[5rem_minmax(0,1fr)] items-center gap-3 sm:w-auto sm:grid-cols-[7rem_13rem] sm:gap-4`,children:[Xe,et]}),e[165]=Xe,e[166]=et,e[167]=tt):tt=e[167];let nt;e[168]!==f.panelAnimationDurationMs||e[169]!==m?(nt=f.panelAnimationDurationMs===p.panelAnimationDurationMs?null:(0,$.jsx)(Y,{label:`panel animations`,onClick:()=>m({panelAnimationDurationMs:p.panelAnimationDurationMs})}),e[168]=f.panelAnimationDurationMs,e[169]=m,e[170]=nt):nt=e[170];let rt;e[171]!==tt||e[172]!==nt?(rt=(0,$.jsx)(gn,{id:`motion`,title:`Motion`,children:(0,$.jsx)(J,{...Ye,description:`Set how fast panels open and close.`,control:tt,resetAction:nt})}),e[171]=tt,e[172]=nt,e[173]=rt):rt=e[173];let it;e[174]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,$.jsx)(Wo,{}),e[174]=it):it=e[174];let at;return e[175]!==F||e[176]!==Je||e[177]!==rt?(at=(0,$.jsxs)(mn,{children:[F,Je,rt,it]}),e[175]=F,e[176]=Je,e[177]=rt,e[178]=at):at=e[178],at}function No(e){let[t,n]=e;return(0,$.jsx)(K,{hideIndicator:!0,value:t,children:n},t)}function Po(){let e=(0,Z.c)(5),t=an(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={sans:kn(`-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif`)??`System default`,code:kn(`"SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace`)??`System monospace`},e[0]=n):n=e[0];let r=n,i;e[1]===t.fontFamilySans?i=e[2]:(i=t.fontFamilySans.trim()||r.sans,e[1]=t.fontFamilySans,e[2]=i);let a;return e[3]===i?a=e[4]:(a={sans:r.sans,code:r.code,interfaceFamily:i},e[3]=i,e[4]=a),a}function Fo(e){let t=(0,Z.c)(18),{preview:n}=e,r=an(),i=ln(),a=Po(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=X(`interface-font`),t[0]=o):o=t[0];let s,c;t[1]===i?(s=t[2],c=t[3]):(s=e=>i({fontFamilySans:e}),c=()=>i({fontFamilySans:p.fontFamilySans,fontSizeInterface:p.fontSizeInterface}),t[1]=i,t[2]=s,t[3]=c);let l;t[4]===i?l=t[5]:(l=e=>i({fontSizeInterface:e}),t[4]=i,t[5]=l);let u;t[6]!==r.fontSizeInterface||t[7]!==l?(u={label:`Interface font size`,min:12,max:20,value:r.fontSizeInterface,defaultValue:p.fontSizeInterface,onChange:l},t[6]=r.fontSizeInterface,t[7]=l,t[8]=u):u=t[8];let d;t[9]===n?d=t[10]:(d=n===void 0?{}:{preview:n},t[9]=n,t[10]=d);let f;return t[11]!==a.sans||t[12]!==r.fontFamilySans||t[13]!==s||t[14]!==c||t[15]!==u||t[16]!==d?(f=(0,$.jsx)(Go,{...o,description:`Everything outside code blocks and the terminal.`,defaultFamily:a.sans,defaultValue:p.fontFamilySans,value:r.fontFamilySans,onValueChange:s,onReset:c,size:u,...d}),t[11]=a.sans,t[12]=r.fontFamilySans,t[13]=s,t[14]=c,t[15]=u,t[16]=d,t[17]=f):f=t[17],f}function Io(){let e=(0,Z.c)(16),t=an(),n=ln(),r=Po(),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=X(`prompt-font`),e[0]=i):i=e[0];let a,o;e[1]===n?(a=e[2],o=e[3]):(a=e=>n({fontFamilyComposer:e}),o=()=>n({fontFamilyComposer:p.fontFamilyComposer,fontSizePrompt:p.fontSizePrompt}),e[1]=n,e[2]=a,e[3]=o);let s;e[4]===n?s=e[5]:(s=e=>n({fontSizePrompt:e}),e[4]=n,e[5]=s);let c;e[6]!==t.fontSizePrompt||e[7]!==s?(c={label:`Prompt font size`,min:12,max:20,value:t.fontSizePrompt,defaultValue:p.fontSizePrompt,onChange:s},e[6]=t.fontSizePrompt,e[7]=s,e[8]=c):c=e[8];let l;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(Pr,{}),e[9]=l):l=e[9];let u;return e[10]!==r.interfaceFamily||e[11]!==t.fontFamilyComposer||e[12]!==a||e[13]!==o||e[14]!==c?(u=(0,$.jsx)(Go,{...i,description:`Only the box you write prompts in. Mono works well here.`,defaultFamily:r.interfaceFamily,defaultValue:p.fontFamilyComposer,value:t.fontFamilyComposer,onValueChange:a,onReset:o,size:c,preview:l}),e[10]=r.interfaceFamily,e[11]=t.fontFamilyComposer,e[12]=a,e[13]=o,e[14]=c,e[15]=u):u=e[15],u}function Lo(e){let t=(0,Z.c)(22),{title:n,description:r,preview:i}=e,a=r===void 0?`Code blocks, diffs, and file previews.`:r,o=an(),s=ln(),c=Po(),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=X(`code-font`),t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=n===void 0?{}:{title:n},t[1]=n,t[2]=u);let d,f;t[3]===s?(d=t[4],f=t[5]):(d=e=>s({fontFamilyCode:e}),f=()=>s({fontFamilyCode:p.fontFamilyCode,fontSizeCode:p.fontSizeCode}),t[3]=s,t[4]=d,t[5]=f);let m;t[6]===s?m=t[7]:(m=e=>s({fontSizeCode:e}),t[6]=s,t[7]=m);let h;t[8]!==o.fontSizeCode||t[9]!==m?(h={label:`Code font size`,min:10,max:18,value:o.fontSizeCode,defaultValue:p.fontSizeCode,onChange:m},t[8]=o.fontSizeCode,t[9]=m,t[10]=h):h=t[10];let g;t[11]===i?g=t[12]:(g=i??(0,$.jsx)(Br,{}),t[11]=i,t[12]=g);let _;return t[13]!==c.code||t[14]!==a||t[15]!==o.fontFamilyCode||t[16]!==u||t[17]!==d||t[18]!==f||t[19]!==h||t[20]!==g?(_=(0,$.jsx)(Go,{...l,...u,description:a,defaultFamily:c.code,defaultValue:p.fontFamilyCode,value:o.fontFamilyCode,onValueChange:d,onReset:f,requireMonospace:!0,size:h,preview:g}),t[13]=c.code,t[14]=a,t[15]=o.fontFamilyCode,t[16]=u,t[17]=d,t[18]=f,t[19]=h,t[20]=g,t[21]=_):_=t[21],_}function Ro(){let e=(0,Z.c)(22),t=an(),n=ln(),r=Po(),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=X(`terminal-font`),e[0]=i):i=e[0];let a=r.code,o=t.fontFamilyTerminal,s,c;e[1]===n?(s=e[2],c=e[3]):(s=e=>n({fontFamilyTerminal:e}),c=()=>n({fontFamilyTerminal:p.fontFamilyTerminal,fontSizeTerminal:p.fontSizeTerminal}),e[1]=n,e[2]=s,e[3]=c);let l;e[4]===n?l=e[5]:(l=e=>n({fontSizeTerminal:e}),e[4]=n,e[5]=l);let u;e[6]!==t.fontSizeTerminal||e[7]!==l?(u={label:`Terminal font size`,min:8,max:20,value:t.fontSizeTerminal,defaultValue:p.fontSizeTerminal,onChange:l},e[6]=t.fontSizeTerminal,e[7]=l,e[8]=u):u=e[8];let d;e[9]!==t.fontFamilyCode||e[10]!==t.fontFamilyTerminal?(d=Un({advanced:!0,code:t.fontFamilyCode,terminal:t.fontFamilyTerminal}),e[9]=t.fontFamilyCode,e[10]=t.fontFamilyTerminal,e[11]=d):d=e[11];let f;e[12]!==t.fontSizeTerminal||e[13]!==d?(f=(0,$.jsx)(Gr,{family:d,size:t.fontSizeTerminal}),e[12]=t.fontSizeTerminal,e[13]=d,e[14]=f):f=e[14];let m;return e[15]!==r.code||e[16]!==t.fontFamilyTerminal||e[17]!==s||e[18]!==c||e[19]!==u||e[20]!==f?(m=(0,$.jsx)(Go,{...i,description:`Terminal output, independent from code blocks and diffs.`,defaultFamily:a,defaultValue:p.fontFamilyTerminal,value:o,onValueChange:s,onReset:c,requireMonospace:!0,size:u,preview:f}),e[15]=r.code,e[16]=t.fontFamilyTerminal,e[17]=s,e[18]=c,e[19]=u,e[20]=f,e[21]=m):m=e[21],m}function zo(){let e=(0,Z.c)(12),t=an(),n=ln();if(!ee(navigator.platform))return null;let r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=X(`font-smoothing`),e[0]=r):r=e[0];let i;e[1]!==t.fontSmoothing||e[2]!==n?(i=t.fontSmoothing===p.fontSmoothing?null:(0,$.jsx)(Y,{label:`font smoothing`,onClick:()=>n({fontSmoothing:p.fontSmoothing})}),e[1]=t.fontSmoothing,e[2]=n,e[3]=i):i=e[3];let a;e[4]===n?a=e[5]:(a=e=>n({fontSmoothing:!!e}),e[4]=n,e[5]=a);let o;e[6]!==t.fontSmoothing||e[7]!==a?(o=(0,$.jsx)(Fn,{checked:t.fontSmoothing,onCheckedChange:a,"aria-label":`Font smoothing`}),e[6]=t.fontSmoothing,e[7]=a,e[8]=o):o=e[8];let s;return e[9]!==i||e[10]!==o?(s=(0,$.jsx)(J,{...r,description:`Use thinner grayscale text smoothing instead of the macOS default.`,resetAction:i,control:o}),e[9]=i,e[10]=o,e[11]=s):s=e[11],s}function Bo(){let e=(0,Z.c)(12),t=an(),n=ln(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=X(`word-wrap`),e[0]=r):r=e[0];let i;e[1]!==t.wordWrap||e[2]!==n?(i=t.wordWrap===p.wordWrap?null:(0,$.jsx)(Y,{label:`word wrapping`,onClick:()=>n({wordWrap:p.wordWrap})}),e[1]=t.wordWrap,e[2]=n,e[3]=i):i=e[3];let a;e[4]===n?a=e[5]:(a=e=>n({wordWrap:!!e}),e[4]=n,e[5]=a);let o;e[6]!==t.wordWrap||e[7]!==a?(o=(0,$.jsx)(Fn,{checked:t.wordWrap,onCheckedChange:a,"aria-label":`Wrap code, diffs, and file previews by default`}),e[6]=t.wordWrap,e[7]=a,e[8]=o):o=e[8];let s;return e[9]!==i||e[10]!==o?(s=(0,$.jsx)(J,{...r,description:`Wrap long lines in code blocks, diffs, and file previews by default.`,resetAction:i,control:o}),e[9]=i,e[10]=o,e[11]=s):s=e[11],s}function Vo(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Fo,{}),(0,$.jsx)(Io,{}),(0,$.jsx)(Lo,{}),(0,$.jsx)(Ro,{}),(0,$.jsx)(zo,{})]}),e[0]=t):t=e[0],t}function Ho(){let e=(0,Z.c)(11),t=an(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(Fo,{preview:(0,$.jsx)(Pr,{})}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(Br,{}),e[1]=r):r=e[1];let i;e[2]!==t.fontFamilyCode||e[3]!==t.fontFamilyTerminal?(i=Un({advanced:!1,code:t.fontFamilyCode,terminal:t.fontFamilyTerminal}),e[2]=t.fontFamilyCode,e[3]=t.fontFamilyTerminal,e[4]=i):i=e[4];let a;e[5]!==t.fontSizeCode||e[6]!==t.fontSizeTerminal?(a=Yn({advanced:!1,code:t.fontSizeCode,terminal:t.fontSizeTerminal}),e[5]=t.fontSizeCode,e[6]=t.fontSizeTerminal,e[7]=a):a=e[7];let o;return e[8]!==i||e[9]!==a?(o=(0,$.jsxs)($.Fragment,{children:[n,(0,$.jsx)(Lo,{title:`Monospace font`,description:`Code blocks, diffs, file previews, and the terminal.`,preview:(0,$.jsxs)($.Fragment,{children:[r,(0,$.jsx)(Gr,{family:i,size:a})]})})]}),e[8]=i,e[9]=a,e[10]=o):o=e[10],o}var Uo=new Set([`prompt-font`,`terminal-font`,...typeof navigator<`u`&&ee(navigator.platform)?[`font-smoothing`]:[]]);function Wo(){let e=(0,Z.c)(15),[t,n]=m(Mn,!1,M),r=pn(),i=(0,Q.useRef)(null),a,o;e[0]!==r||e[1]!==n?(a=()=>{r!==null&&Uo.has(r)&&i.current!==r&&(i.current=r,n(!0))},o=[r,n],e[0]=r,e[1]=n,e[2]=a,e[3]=o):(a=e[2],o=e[3]),(0,Q.useEffect)(a,o);let s;e[4]===n?s=e[5]:(s=e=>n(!!e),e[4]=n,e[5]=s);let c;e[6]!==t||e[7]!==s?(c=(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2 text-xs font-medium text-muted-foreground`,children:[`Advanced`,(0,$.jsx)(Fn,{checked:t,onCheckedChange:s,"aria-label":`Show advanced typography settings`})]}),e[6]=t,e[7]=s,e[8]=c):c=e[8];let l;e[9]===t?l=e[10]:(l=t?(0,$.jsx)(Vo,{}):(0,$.jsx)(Ho,{}),e[9]=t,e[10]=l);let u;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Bo,{}),e[11]=u):u=e[11];let d;return e[12]!==c||e[13]!==l?(d=(0,$.jsxs)(gn,{id:`typography`,title:`Typography`,headerAction:c,children:[l,u]}),e[12]=c,e[13]=l,e[14]=d):d=e[14],d}function Go({id:e,title:t,description:n,defaultFamily:r,defaultValue:i,preview:a,value:o,onValueChange:s,onReset:c,requireMonospace:l=!1,size:u}){let d=o.trim(),[f,p]=(0,Q.useState)(o),[m,h]=(0,Q.useState)(!0),g=(0,Q.useRef)(null),_=(0,Q.useRef)(o);_.current!==o&&(_.current=o,g.current!==null&&(window.clearTimeout(g.current),g.current=null),p(o),h(!0)),(0,Q.useEffect)(()=>()=>{g.current!==null&&window.clearTimeout(g.current)},[]);let v=e=>Hn(e)&&(!l||qn(e)),y=e=>{h(!0),(e.trim().length===0||v(e))&&s(e)},b=()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null,y(f))},x=f.trim(),S=m&&x.length>0&&x!==d,C=o!==i||u.value!==u.defaultValue?(0,$.jsx)(Y,{label:t.toLowerCase(),onClick:()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null),p(i),h(!0),c()}}):null,w=ii(),T=(0,Q.useRef)(!1),E=w.status===`granted`?(0,$.jsx)(ai,{ariaLabel:`${t} family`,defaultFamily:r,selectedFamily:d,requireMonospace:l,initialOpen:T.current,onSelect:s}):(0,$.jsx)(At,{size:`sm`,"aria-label":`${t} family`,"aria-invalid":S||void 0,autoCapitalize:`off`,autoComplete:`off`,className:`min-w-0 flex-1`,maxLength:200,onFocus:()=>{T.current=!0,ti()},onBlur:()=>{T.current=!1,b()},onChange:e=>{let t=e.currentTarget.value;p(t),h(!1),g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,y(t)},400)},onKeyDown:e=>{e.key===`Enter`&&b(),e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),g.current!==null&&(window.clearTimeout(g.current),g.current=null),p(o),h(!0))},placeholder:r,spellCheck:!1,value:f}),D=(0,$.jsxs)(`div`,{className:`flex w-full items-center gap-2 sm:w-auto`,children:[(0,$.jsx)(`div`,{className:`min-w-0 flex-1 sm:w-44 sm:flex-none`,children:E}),(0,$.jsxs)(ge,{value:String(u.value),onValueChange:e=>{if(typeof e!=`string`)return;let t=Number(e);Number.isInteger(t)&&t>=u.min&&t<=u.max&&u.onChange(t)},children:[(0,$.jsx)(q,{size:`sm`,className:`w-22 shrink-0`,"aria-label":u.label,children:(0,$.jsxs)(pe,{children:[u.value,` px`]})}),(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:Array.from({length:u.max-u.min+1},(e,t)=>u.min+t).map(e=>(0,$.jsxs)(K,{hideIndicator:!0,value:String(e),children:[e,` px`]},e))})]})]});return(0,$.jsx)(J,{...e===void 0?{}:{id:e},title:t,description:n,resetAction:C,control:D,children:a})}var Ko=new Set([`legacy-plan-mode`,`legacy-context-window-indicator`]);function qo(){let e=(0,Z.c)(25),t=an(),n=ln(),[r,i]=(0,Q.useState)(!1),a=pn(),o=fn(`legacy-features`),s=(0,Q.useRef)(null),c,l;e[0]===a?(c=e[1],l=e[2]):(c=()=>{a===null?s.current=null:Ko.has(a)&&s.current!==a&&(s.current=a,i(!0))},l=[a],e[0]=a,e[1]=c,e[2]=l),(0,Q.useEffect)(c,l);let u;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsxs)(Rn,{className:`group flex min-h-8 w-full items-center gap-2 px-3 sm:px-4`,children:[(0,$.jsx)(`h2`,{className:`text-sm font-normal text-foreground/70 transition-colors group-hover:text-foreground`,children:`Legacy features`}),(0,$.jsx)(C,{className:`size-4 text-muted-foreground transition-transform duration-200 group-data-panel-open:rotate-90`})]}),e[3]=u):u=e[3];let d;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=X(`legacy-plan-mode`),e[4]=d):d=e[4];let f;e[5]===n?f=e[6]:(f=e=>{n({planModeEnabled:!!e})},e[5]=n,e[6]=f);let p;e[7]!==t.planModeEnabled||e[8]!==f?(p=(0,$.jsx)(J,{...d,description:`Restore Build/Plan, /plan, /default, and Shift+Tab. Off uses build mode.`,control:(0,$.jsx)(Fn,{checked:t.planModeEnabled,onCheckedChange:f,"aria-label":`Plan mode (legacy)`})}),e[7]=t.planModeEnabled,e[8]=f,e[9]=p):p=e[9];let m;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=X(`legacy-context-window-indicator`),e[10]=m):m=e[10];let h;e[11]===n?h=e[12]:(h=e=>n({contextWindowMeterEnabled:!!e}),e[11]=n,e[12]=h);let g;e[13]!==t.contextWindowMeterEnabled||e[14]!==h?(g=(0,$.jsx)(J,{...m,description:`Shows context window usage as a circular indicator in the composer.`,control:(0,$.jsx)(Fn,{checked:t.contextWindowMeterEnabled,onCheckedChange:h,"aria-label":`Context window indicator (legacy)`})}),e[13]=t.contextWindowMeterEnabled,e[14]=h,e[15]=g):g=e[15];let _;e[16]!==p||e[17]!==g?(_=(0,$.jsx)(Vn,{children:(0,$.jsxs)(on,{children:[p,g]})}),e[16]=p,e[17]=g,e[18]=_):_=e[18];let v;e[19]!==r||e[20]!==_?(v=(0,$.jsxs)(Gn,{open:r,onOpenChange:i,children:[u,_]}),e[19]=r,e[20]=_,e[21]=v):v=e[21];let y;return e[22]!==v||e[23]!==o?(y=(0,$.jsx)(`section`,{id:`legacy-features`,ref:o,tabIndex:-1,className:`space-y-2.5`,children:v}),e[22]=v,e[23]=o,e[24]=y):y=e[24],y}function Jo(){let e=(0,Z.c)(484),t=ee(navigator.platform)?`⌘`:`Ctrl`,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[{value:`enter`,label:`Enter`},{value:`mod-enter-multiline`,label:`${t} + Enter for multiline prompts`},{value:`mod-enter`,label:`${t} + Enter always`}],e[0]=n):n=e[0];let r=n,i=an(),a=ln(),o=ye(),{scope:l,environment:u,connectedEnvironments:m,target:g,targets:y}=dn(),b;e[1]!==i||e[2]!==y?(b=y.length>0?y:[{settings:i}],e[1]=i,e[2]=y,e[3]=b):b=e[3];let S;e[4]===b?S=e[5]:(S=un(b),e[4]=b,e[5]=S);let C=S,D=u?.environmentId??null,O=l.environmentIds.length===1&&D!==null,j=m.length>0,[M,P]=(0,Q.useState)(!1),I;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(I=[`compressMode`],e[6]=I):I=e[6];let L=sn(I),R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(R=[`responseStreamingMode`],e[7]=R):R=e[7];let z=sn(R),B;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(B=ur(),e[8]=B):B=e[8];let V=(0,Q.useRef)(B),H=u?.serverConfig?.providers??ke,U;e[9]===m?U=e[10]:(U=m.length>0&&m.every(is),e[9]=m,e[10]=U);let te=U,G=H.filter(rs),ne=h(i,G),re=ne.instanceId,ae=ne.model,oe=ne.options,se=k(f(T(G),i,g?.projectId??null)),ce=se.some(ns),le=se.find(e=>e.instanceId===re),ue=le?.driverKind??wo,de=x(i,G,re,ae),fe;e[11]===i.textGenerationModelSelection?fe=e[12]:(fe=v(i.textGenerationModelSelection??null,p.textGenerationModelSelection??null),e[11]=i.textGenerationModelSelection,e[12]=fe);let me=!fe,_e=ir(i,se),xe=Oe(i),Se=xe.profile,Ce;e[13]===i?Ce=e[14]:(Ce=gr(i),e[13]=i,e[14]=Ce);let we=Ce,Te;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(Te=[`backgroundActivity`],e[15]=Te):Te=e[15];let Ee=sn(Te),De;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(De=[`addProjectBaseDirectory`],e[16]=De):De=e[16];let Ae=sn(De),je;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(je=[`textGenerationModelSelection`],e[17]=je):je=e[17];let Me=sn(je),Ne=we===`advanced`?`${Co} Shared policy: ${bo[Se]}.`:So[xe.profile],Pe;e[18]===i.backgroundActivity?Pe=e[19]:(Pe=v(i.backgroundActivity,p.backgroundActivity),e[18]=i.backgroundActivity,e[19]=Pe);let Fe=!Pe,Ie=mn,Le;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,$.jsx)(ar,{category:`general`}),e[20]=Le):Le=e[20];let Re;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(Re=X(`project-grouping`),e[21]=Re):Re=e[21];let ze;e[22]!==i.sidebarProjectGroupingMode||e[23]!==a?(ze=i.sidebarProjectGroupingMode===p.sidebarProjectGroupingMode?null:(0,$.jsx)(Y,{label:`project grouping`,onClick:()=>a({sidebarProjectGroupingMode:p.sidebarProjectGroupingMode})}),e[22]=i.sidebarProjectGroupingMode,e[23]=a,e[24]=ze):ze=e[24];let Be;e[25]===i.sidebarProjectGroupingMode?Be=e[26]:(Be=lr(i.sidebarProjectGroupingMode),e[25]=i.sidebarProjectGroupingMode,e[26]=Be);let Ve;e[27]!==i.sidebarProjectGroupingMode||e[28]!==a?(Ve=e=>{!e&&i.sidebarProjectGroupingMode!==`separate`&&(V.current=i.sidebarProjectGroupingMode,dr(i.sidebarProjectGroupingMode)),a({sidebarProjectGroupingMode:yr(e,V.current)})},e[27]=i.sidebarProjectGroupingMode,e[28]=a,e[29]=Ve):Ve=e[29];let He;e[30]!==Be||e[31]!==Ve?(He=(0,$.jsx)(Fn,{checked:Be,onCheckedChange:Ve,"aria-label":`Project grouping`}),e[30]=Be,e[31]=Ve,e[32]=He):He=e[32];let Ue;e[33]!==ze||e[34]!==He?(Ue=(0,$.jsx)(J,{...Re,description:`Combine matching repositories across environments.`,resetAction:ze,control:He}),e[33]=ze,e[34]=He,e[35]=Ue):Ue=e[35];let We;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(We=X(`project-order`),e[36]=We):We=e[36];let Ge;e[37]!==i.sidebarProjectSortOrder||e[38]!==a?(Ge=i.sidebarProjectSortOrder===p.sidebarProjectSortOrder?null:(0,$.jsx)(Y,{label:`project order`,onClick:()=>a({sidebarProjectSortOrder:p.sidebarProjectSortOrder})}),e[37]=i.sidebarProjectSortOrder,e[38]=a,e[39]=Ge):Ge=e[39];let Ke;e[40]===a?Ke=e[41]:(Ke=e=>{mo(e)&&a({sidebarProjectSortOrder:e})},e[40]=a,e[41]=Ke);let qe=po[i.sidebarProjectSortOrder],Je;e[42]===qe?Je=e[43]:(Je=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-44`,"aria-label":`Project order`,children:(0,$.jsx)(pe,{children:qe})}),e[42]=qe,e[43]=Je);let Ye;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:E.literals.map(ts)}),e[44]=Ye):Ye=e[44];let Xe;e[45]!==i.sidebarProjectSortOrder||e[46]!==Ke||e[47]!==Je?(Xe=(0,$.jsxs)(ge,{value:i.sidebarProjectSortOrder,onValueChange:Ke,children:[Je,Ye]}),e[45]=i.sidebarProjectSortOrder,e[46]=Ke,e[47]=Je,e[48]=Xe):Xe=e[48];let Ze;e[49]!==Ge||e[50]!==Xe?(Ze=(0,$.jsx)(J,{...We,description:`Order of projects in the sidebar project picker and command palette.`,resetAction:Ge,control:Xe}),e[49]=Ge,e[50]=Xe,e[51]=Ze):Ze=e[51];let Qe;e[52]===Symbol.for(`react.memo_cache_sentinel`)?(Qe=X(`auto-resume-limited-threads`),e[52]=Qe):Qe=e[52];let $e;e[53]===Symbol.for(`react.memo_cache_sentinel`)?($e=[`autoResumeLimitedThreads`],e[53]=$e):$e=e[53];let et;e[54]===Symbol.for(`react.memo_cache_sentinel`)?(et=[`autoResumeLimitedThreads`],e[54]=et):et=e[54];let tt;e[55]===a?tt=e[56]:(tt=e=>a({autoResumeLimitedThreads:!!e}),e[55]=a,e[56]=tt);let nt;e[57]!==i.autoResumeLimitedThreads||e[58]!==tt?(nt=(0,$.jsx)(J,{serverScoped:!0,...Qe,description:`Resume usage-limit stops at the reported reset time. Each thread can cancel its scheduled continuation.`,settingKeys:$e,control:(0,$.jsx)(sr,{settingKeys:et,checked:i.autoResumeLimitedThreads,onCheckedChange:tt,"aria-label":`Auto-resume limited threads`})}),e[57]=i.autoResumeLimitedThreads,e[58]=tt,e[59]=nt):nt=e[59];let rt;e[60]===Symbol.for(`react.memo_cache_sentinel`)?(rt=X(`snooze-limited-threads`),e[60]=rt):rt=e[60];let it;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(it=[`snoozeLimitedThreads`],e[61]=it):it=e[61];let at;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(at=[`snoozeLimitedThreads`],e[62]=at):at=e[62];let ot;e[63]===a?ot=e[64]:(ot=e=>a({snoozeLimitedThreads:!!e}),e[63]=a,e[64]=ot);let st;e[65]!==i.snoozeLimitedThreads||e[66]!==ot?(st=(0,$.jsx)(J,{serverScoped:!0,...rt,description:`Snooze usage-limit stops until the reported reset time. Combine with auto-resume to continue when they wake.`,settingKeys:it,control:(0,$.jsx)(sr,{settingKeys:at,checked:i.snoozeLimitedThreads,onCheckedChange:ot,"aria-label":`Snooze limited threads`})}),e[65]=i.snoozeLimitedThreads,e[66]=ot,e[67]=st):st=e[67];let ct;e[68]===Symbol.for(`react.memo_cache_sentinel`)?(ct=X(`working-shelf`),e[68]=ct):ct=e[68];let lt;e[69]!==i.sidebarWorkingShelfEnabled||e[70]!==a?(lt=i.sidebarWorkingShelfEnabled===p.sidebarWorkingShelfEnabled?null:(0,$.jsx)(Y,{label:`working section`,onClick:()=>a({sidebarWorkingShelfEnabled:p.sidebarWorkingShelfEnabled})}),e[69]=i.sidebarWorkingShelfEnabled,e[70]=a,e[71]=lt):lt=e[71];let ut;e[72]===a?ut=e[73]:(ut=e=>a({sidebarWorkingShelfEnabled:!!e}),e[72]=a,e[73]=ut);let dt;e[74]!==i.sidebarWorkingShelfEnabled||e[75]!==ut?(dt=(0,$.jsx)(Fn,{checked:i.sidebarWorkingShelfEnabled,onCheckedChange:ut,"aria-label":`Working section (beta)`}),e[74]=i.sidebarWorkingShelfEnabled,e[75]=ut,e[76]=dt):dt=e[76];let ft;e[77]!==lt||e[78]!==dt?(ft=(0,$.jsx)(J,{...ct,description:`Fold working and monitoring threads into a Working section. They return to the top of the inbox when they need you.`,resetAction:lt,control:dt}),e[77]=lt,e[78]=dt,e[79]=ft):ft=e[79];let pt;e[80]===Symbol.for(`react.memo_cache_sentinel`)?(pt=[`idleCompaction`,`compactIdleThreads`],e[80]=pt):pt=e[80];let mt=C.mixed,ht;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(ht=X(`compact-idle-threads`),e[81]=ht):ht=e[81];let gt;e[82]!==i||e[83]!==a?(gt=d(i)===d(p)?null:(0,$.jsx)(Y,{label:`compact idle threads`,onClick:()=>a({idleCompaction:d(p)})}),e[82]=i,e[83]=a,e[84]=gt):gt=e[84];let _t;e[85]!==C.mixed||e[86]!==i?(_t=C.mixed?null:d(i),e[85]=C.mixed,e[86]=i,e[87]=_t):_t=e[87];let xt;e[88]===a?xt=e[89]:(xt=e=>{let t=w.find(t=>t.value===e);t&&a({idleCompaction:t.value})},e[88]=a,e[89]=xt);let Ct;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-56`,"aria-label":`Compact idle threads`,children:(0,$.jsx)(pe,{children:es})}),e[90]=Ct):Ct=e[90];let wt;e[91]===C.neverAvailable?wt=e[92]:(wt=w.map(e=>(0,$.jsx)(K,{hideIndicator:!0,value:e.value,disabled:e.value===`off`&&!C.neverAvailable,children:e.label},e.value)),e[91]=C.neverAvailable,e[92]=wt);let Tt;e[93]===wt?Tt=e[94]:(Tt=(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:wt}),e[93]=wt,e[94]=Tt);let Et;e[95]!==_t||e[96]!==xt||e[97]!==Tt?(Et=(0,$.jsxs)(ge,{value:_t,onValueChange:xt,children:[Ct,Tt]}),e[95]=_t,e[96]=xt,e[97]=Tt,e[98]=Et):Et=e[98];let Dt;e[99]!==C.mixed||e[100]!==gt||e[101]!==Et?(Dt=(0,$.jsx)(J,{serverScoped:!0,settingKeys:pt,mixed:mt,...ht,description:`When to compact an idle Claude thread over 200,000 tokens: after you return, just before its prompt cache expires, or never. Each Claude provider can override this.`,resetAction:gt,control:Et}),e[99]=C.mixed,e[100]=gt,e[101]=Et,e[102]=Dt):Dt=e[102];let Ot;e[103]!==Ue||e[104]!==Ze||e[105]!==nt||e[106]!==st||e[107]!==ft||e[108]!==Dt?(Ot=(0,$.jsxs)(gn,{id:`organization`,title:`Organization`,children:[Ue,Ze,nt,st,ft,Dt]}),e[103]=Ue,e[104]=Ze,e[105]=nt,e[106]=st,e[107]=ft,e[108]=Dt,e[109]=Ot):Ot=e[109];let kt;e[110]===Symbol.for(`react.memo_cache_sentinel`)?(kt=(0,$.jsx)(Sr,{}),e[110]=kt):kt=e[110];let At;e[111]===Symbol.for(`react.memo_cache_sentinel`)?(At=X(`in-app-notifications`),e[111]=At):At=e[111];let jt;e[112]===a?jt=e[113]:(jt=e=>a({inAppNotificationsEnabled:e}),e[112]=a,e[113]=jt);let Mt;e[114]!==i.inAppNotificationsEnabled||e[115]!==jt?(Mt=(0,$.jsx)(J,{...At,description:`Show a toast when another thread finishes, fails, or needs input or approval while this app has focus.`,control:(0,$.jsx)(Fn,{checked:i.inAppNotificationsEnabled,onCheckedChange:jt,"aria-label":`In-app notifications`})}),e[114]=i.inAppNotificationsEnabled,e[115]=jt,e[116]=Mt):Mt=e[116];let Nt;e[117]!==i.wakeScreenOnThreadEvents||e[118]!==a?(Nt=window.desktopBridge?.wakeDisplay?(0,$.jsx)(J,{...X(`wake-screen`),description:`Keep the Mac awake while threads run, and wake it when one finishes or needs you.`,control:(0,$.jsx)(Fn,{checked:i.wakeScreenOnThreadEvents,onCheckedChange:e=>a({wakeScreenOnThreadEvents:e}),"aria-label":`Auto awake`})}):null,e[117]=i.wakeScreenOnThreadEvents,e[118]=a,e[119]=Nt):Nt=e[119];let Pt;e[120]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=X(`time-format`),e[120]=Pt):Pt=e[120];let Ft;e[121]!==i.timestampFormat||e[122]!==a?(Ft=i.timestampFormat===p.timestampFormat?null:(0,$.jsx)(Y,{label:`time format`,onClick:()=>a({timestampFormat:p.timestampFormat})}),e[121]=i.timestampFormat,e[122]=a,e[123]=Ft):Ft=e[123];let It;e[124]===a?It=e[125]:(It=e=>{(e===`locale`||e===`12-hour`||e===`24-hour`)&&a({timestampFormat:e})},e[124]=a,e[125]=It);let Lt=ho[i.timestampFormat],Rt;e[126]===Lt?Rt=e[127]:(Rt=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Timestamp format`,children:(0,$.jsx)(pe,{children:Lt})}),e[126]=Lt,e[127]=Rt);let zt;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`locale`,children:ho.locale}),(0,$.jsx)(K,{hideIndicator:!0,value:`12-hour`,children:ho[`12-hour`]}),(0,$.jsx)(K,{hideIndicator:!0,value:`24-hour`,children:ho[`24-hour`]})]}),e[128]=zt):zt=e[128];let Bt;e[129]!==i.timestampFormat||e[130]!==It||e[131]!==Rt?(Bt=(0,$.jsxs)(ge,{value:i.timestampFormat,onValueChange:It,children:[Rt,zt]}),e[129]=i.timestampFormat,e[130]=It,e[131]=Rt,e[132]=Bt):Bt=e[132];let Vt;e[133]!==Ft||e[134]!==Bt?(Vt=(0,$.jsx)(J,{...Pt,description:`System default follows your browser or OS clock preference.`,resetAction:Ft,control:Bt}),e[133]=Ft,e[134]=Bt,e[135]=Vt):Vt=e[135];let Ht,Ut;e[136]===Symbol.for(`react.memo_cache_sentinel`)?(Ht=[`compressMode`],Ut=X(`response-compression`),e[136]=Ht,e[137]=Ut):(Ht=e[136],Ut=e[137]);let Wt=L?null:i.compressMode,Gt;e[138]===a?Gt=e[139]:(Gt=e=>{s.literals.some(t=>t===e)&&a({compressMode:e})},e[138]=a,e[139]=Gt);let Kt;e[140]===Symbol.for(`react.memo_cache_sentinel`)?(Kt=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-56`,"aria-label":`Response compression`,children:(0,$.jsx)(pe,{children:$o})}),e[140]=Kt):Kt=e[140];let qt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(qt=(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:s.literals.map(Qo)}),e[141]=qt):qt=e[141];let Jt;e[142]!==Wt||e[143]!==Gt?(Jt=(0,$.jsx)(J,{serverScoped:!0,settingKeys:Ht,...Ut,description:`Response style for all threads on this server, starting next turn. Code and saved documents retain normal prose.`,control:(0,$.jsxs)(ge,{value:Wt,onValueChange:Gt,children:[Kt,qt]})}),e[142]=Wt,e[143]=Gt,e[144]=Jt):Jt=e[144];let Yt,Xt;e[145]===Symbol.for(`react.memo_cache_sentinel`)?(Yt=[`responseStreamingMode`],Xt=X(`response-streaming`),e[145]=Yt,e[146]=Xt):(Yt=e[145],Xt=e[146]);let Zt=z?`The selected targets use different streaming modes.`:fo[i.responseStreamingMode],Qt;e[147]!==i.responseStreamingMode||e[148]!==a?(Qt=i.responseStreamingMode===p.responseStreamingMode?null:(0,$.jsx)(Y,{label:`response streaming`,onClick:()=>a({responseStreamingMode:p.responseStreamingMode})}),e[147]=i.responseStreamingMode,e[148]=a,e[149]=Qt):Qt=e[149];let $t=z?null:i.responseStreamingMode,en;e[150]===a?en=e[151]:(en=e=>{(e===`turn`||e===`paragraph`)&&a({responseStreamingMode:e})},e[150]=a,e[151]=en);let tn;e[152]===Symbol.for(`react.memo_cache_sentinel`)?(tn=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-56`,"aria-label":`Response streaming`,children:(0,$.jsx)(pe,{children:Zo})}),e[152]=tn):tn=e[152];let nn;e[153]===Symbol.for(`react.memo_cache_sentinel`)?(nn=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`turn`,children:uo.turn}),(0,$.jsx)(K,{hideIndicator:!0,value:`paragraph`,children:uo.paragraph})]}),e[153]=nn):nn=e[153];let rn;e[154]!==$t||e[155]!==en?(rn=(0,$.jsxs)(ge,{value:$t,onValueChange:en,children:[tn,nn]}),e[154]=$t,e[155]=en,e[156]=rn):rn=e[156];let on;e[157]!==Zt||e[158]!==Qt||e[159]!==rn?(on=(0,$.jsx)(J,{serverScoped:!0,settingKeys:Yt,...Xt,description:Zt,resetAction:Qt,control:rn}),e[157]=Zt,e[158]=Qt,e[159]=rn,e[160]=on):on=e[160];let cn;e[161]===Symbol.for(`react.memo_cache_sentinel`)?(cn=X(`hide-whitespace-changes`),e[161]=cn):cn=e[161];let fn;e[162]!==i.diffIgnoreWhitespace||e[163]!==a?(fn=i.diffIgnoreWhitespace===p.diffIgnoreWhitespace?null:(0,$.jsx)(Y,{label:`diff whitespace changes`,onClick:()=>a({diffIgnoreWhitespace:p.diffIgnoreWhitespace})}),e[162]=i.diffIgnoreWhitespace,e[163]=a,e[164]=fn):fn=e[164];let pn;e[165]===a?pn=e[166]:(pn=e=>a({diffIgnoreWhitespace:!!e}),e[165]=a,e[166]=pn);let vn;e[167]!==i.diffIgnoreWhitespace||e[168]!==pn?(vn=(0,$.jsx)(Fn,{checked:i.diffIgnoreWhitespace,onCheckedChange:pn,"aria-label":`Hide whitespace changes by default`}),e[167]=i.diffIgnoreWhitespace,e[168]=pn,e[169]=vn):vn=e[169];let bn;e[170]!==fn||e[171]!==vn?(bn=(0,$.jsx)(J,{...cn,description:`Set whether the diff panel ignores whitespace-only edits by default.`,resetAction:fn,control:vn}),e[170]=fn,e[171]=vn,e[172]=bn):bn=e[172];let xn;e[173]===Symbol.for(`react.memo_cache_sentinel`)?(xn=X(`default-diff-file-state`),e[173]=xn):xn=e[173];let Sn;e[174]!==i.diffFilesCollapsed||e[175]!==a?(Sn=i.diffFilesCollapsed===p.diffFilesCollapsed?null:(0,$.jsx)(Y,{label:`default diff file state`,onClick:()=>a({diffFilesCollapsed:p.diffFilesCollapsed})}),e[174]=i.diffFilesCollapsed,e[175]=a,e[176]=Sn):Sn=e[176];let Cn=i.diffFilesCollapsed?`collapsed`:`expanded`,wn;e[177]===a?wn=e[178]:(wn=e=>{(e===`expanded`||e===`collapsed`)&&a({diffFilesCollapsed:e===`collapsed`})},e[177]=a,e[178]=wn);let Tn=i.diffFilesCollapsed?`Collapsed`:`Expanded`,En;e[179]===Tn?En=e[180]:(En=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Default diff file state`,children:(0,$.jsx)(pe,{children:Tn})}),e[179]=Tn,e[180]=En);let Dn;e[181]===Symbol.for(`react.memo_cache_sentinel`)?(Dn=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`expanded`,children:`Expanded`}),(0,$.jsx)(K,{hideIndicator:!0,value:`collapsed`,children:`Collapsed`})]}),e[181]=Dn):Dn=e[181];let On;e[182]!==Cn||e[183]!==wn||e[184]!==En?(On=(0,$.jsxs)(ge,{value:Cn,onValueChange:wn,children:[En,Dn]}),e[182]=Cn,e[183]=wn,e[184]=En,e[185]=On):On=e[185];let kn;e[186]!==Sn||e[187]!==On?(kn=(0,$.jsx)(J,{...xn,description:`Start with files expanded or collapsed when opening diffs or a pull request's Code tab.`,resetAction:Sn,control:On}),e[186]=Sn,e[187]=On,e[188]=kn):kn=e[188];let An;e[189]===Symbol.for(`react.memo_cache_sentinel`)?(An=X(`diff-layout`),e[189]=An):An=e[189];let jn;e[190]!==i.diffLayout||e[191]!==a?(jn=i.diffLayout===p.diffLayout?null:(0,$.jsx)(Y,{label:`diff layout`,onClick:()=>a({diffLayout:p.diffLayout})}),e[190]=i.diffLayout,e[191]=a,e[192]=jn):jn=e[192];let Mn;e[193]===a?Mn=e[194]:(Mn=e=>{(e===`stacked`||e===`split`)&&a({diffLayout:e})},e[193]=a,e[194]=Mn);let Nn=vo[i.diffLayout],Pn;e[195]===Nn?Pn=e[196]:(Pn=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Diff layout`,children:(0,$.jsx)(pe,{children:Nn})}),e[195]=Nn,e[196]=Pn);let In;e[197]===Symbol.for(`react.memo_cache_sentinel`)?(In=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{hideIndicator:!0,value:`stacked`,children:vo.stacked}),(0,$.jsx)(K,{hideIndicator:!0,value:`split`,children:vo.split})]}),e[197]=In):In=e[197];let Ln;e[198]!==i.diffLayout||e[199]!==Mn||e[200]!==Pn?(Ln=(0,$.jsxs)(ge,{value:i.diffLayout,onValueChange:Mn,children:[Pn,In]}),e[198]=i.diffLayout,e[199]=Mn,e[200]=Pn,e[201]=Ln):Ln=e[201];let Rn;e[202]!==jn||e[203]!==Ln?(Rn=(0,$.jsx)(J,{...An,description:`Show diffs stacked or side by side. The toggle in the diff toolbar changes this too.`,resetAction:jn,control:Ln}),e[202]=jn,e[203]=Ln,e[204]=Rn):Rn=e[204];let zn;e[205]===Symbol.for(`react.memo_cache_sentinel`)?(zn=X(`proactive-panels`),e[205]=zn):zn=e[205];let Bn;e[206]!==i.proactivePanelsEnabled||e[207]!==a?(Bn=i.proactivePanelsEnabled===p.proactivePanelsEnabled?null:(0,$.jsx)(Y,{label:`proactive panels`,onClick:()=>a({proactivePanelsEnabled:p.proactivePanelsEnabled})}),e[206]=i.proactivePanelsEnabled,e[207]=a,e[208]=Bn):Bn=e[208];let Vn;e[209]===a?Vn=e[210]:(Vn=e=>a({proactivePanelsEnabled:!!e}),e[209]=a,e[210]=Vn);let Hn;e[211]!==i.proactivePanelsEnabled||e[212]!==Vn?(Hn=(0,$.jsx)(Fn,{checked:i.proactivePanelsEnabled,onCheckedChange:Vn,"aria-label":`Proactive panels`}),e[211]=i.proactivePanelsEnabled,e[212]=Vn,e[213]=Hn):Hn=e[213];let Un;e[214]!==Bn||e[215]!==Hn?(Un=(0,$.jsx)(J,{...zn,description:`Open linked pull requests first. Otherwise, open Changes for edits to at least 3 files or 50 lines.`,resetAction:Bn,control:Hn}),e[214]=Bn,e[215]=Hn,e[216]=Un):Un=e[216];let Wn;e[217]===Symbol.for(`react.memo_cache_sentinel`)?(Wn=X(`skills-in-slash-menu`),e[217]=Wn):Wn=e[217];let Gn;e[218]!==i.showSkillsInSlashMenu||e[219]!==a?(Gn=i.showSkillsInSlashMenu===p.showSkillsInSlashMenu?null:(0,$.jsx)(Y,{label:`skills in slash menu`,onClick:()=>a({showSkillsInSlashMenu:p.showSkillsInSlashMenu})}),e[218]=i.showSkillsInSlashMenu,e[219]=a,e[220]=Gn):Gn=e[220];let Kn;e[221]===a?Kn=e[222]:(Kn=e=>a({showSkillsInSlashMenu:!!e}),e[221]=a,e[222]=Kn);let qn;e[223]!==i.showSkillsInSlashMenu||e[224]!==Kn?(qn=(0,$.jsx)(Fn,{checked:i.showSkillsInSlashMenu,onCheckedChange:Kn,"aria-label":`Show skills in slash menu`}),e[223]=i.showSkillsInSlashMenu,e[224]=Kn,e[225]=qn):qn=e[225];let Jn;e[226]!==Gn||e[227]!==qn?(Jn=(0,$.jsx)(J,{...Wn,description:`Also include skills in the / command menu. Skills always appear when you type $.`,resetAction:Gn,control:qn}),e[226]=Gn,e[227]=qn,e[228]=Jn):Jn=e[228];let Yn;e[229]===Symbol.for(`react.memo_cache_sentinel`)?(Yn=X(`composer-rich-text`),e[229]=Yn):Yn=e[229];let Zn;e[230]!==i.composerRichTextEnabled||e[231]!==a?(Zn=i.composerRichTextEnabled===p.composerRichTextEnabled?null:(0,$.jsx)(Y,{label:`rich text composer`,onClick:()=>a({composerRichTextEnabled:p.composerRichTextEnabled})}),e[230]=i.composerRichTextEnabled,e[231]=a,e[232]=Zn):Zn=e[232];let Qn;e[233]===a?Qn=e[234]:(Qn=e=>a({composerRichTextEnabled:!!e}),e[233]=a,e[234]=Qn);let $n;e[235]!==i.composerRichTextEnabled||e[236]!==Qn?($n=(0,$.jsx)(Fn,{checked:i.composerRichTextEnabled,onCheckedChange:Qn,"aria-label":`Rich text composer`}),e[235]=i.composerRichTextEnabled,e[236]=Qn,e[237]=$n):$n=e[237];let tr;e[238]!==Zn||e[239]!==$n?(tr=(0,$.jsx)(J,{...Yn,description:`Show formatted Markdown as you type.`,resetAction:Zn,control:$n}),e[238]=Zn,e[239]=$n,e[240]=tr):tr=e[240];let nr;e[241]===Symbol.for(`react.memo_cache_sentinel`)?(nr=X(`composer-collapse`),e[241]=nr):nr=e[241];let cr;e[242]!==i.composerCollapseOnScroll||e[243]!==a?(cr=i.composerCollapseOnScroll===p.composerCollapseOnScroll?null:(0,$.jsx)(Y,{label:`collapse composer on scroll`,onClick:()=>a({composerCollapseOnScroll:p.composerCollapseOnScroll})}),e[242]=i.composerCollapseOnScroll,e[243]=a,e[244]=cr):cr=e[244];let fr;e[245]===a?fr=e[246]:(fr=e=>a({composerCollapseOnScroll:!!e}),e[245]=a,e[246]=fr);let pr;e[247]!==i.composerCollapseOnScroll||e[248]!==fr?(pr=(0,$.jsx)(Fn,{checked:i.composerCollapseOnScroll,onCheckedChange:fr,"aria-label":`Collapse composer on scroll`}),e[247]=i.composerCollapseOnScroll,e[248]=fr,e[249]=pr):pr=e[249];let mr;e[250]!==cr||e[251]!==pr?(mr=(0,$.jsx)(J,{...nr,description:`Rest the composer of an existing thread into a single line when you scroll the conversation. Focus the composer or start typing to expand it again.`,resetAction:cr,control:pr}),e[250]=cr,e[251]=pr,e[252]=mr):mr=e[252];let hr;e[253]===Symbol.for(`react.memo_cache_sentinel`)?(hr=X(`send-shortcut`),e[253]=hr):hr=e[253];let _r;e[254]!==i.sendShortcut||e[255]!==a?(_r=i.sendShortcut===p.sendShortcut?null:(0,$.jsx)(Y,{label:`send shortcut`,onClick:()=>a({sendShortcut:p.sendShortcut})}),e[254]=i.sendShortcut,e[255]=a,e[256]=_r):_r=e[256];let vr;e[257]===a?vr=e[258]:(vr=e=>{let t=r.find(t=>t.value===e);t&&a({sendShortcut:t.value})},e[257]=a,e[258]=vr);let br=r.find(e=>e.value===i.sendShortcut)?.label,xr;e[259]===br?xr=e[260]:(xr=(0,$.jsx)(q,{size:`sm`,className:`w-auto min-w-0 max-w-full`,"aria-label":`Send shortcut`,children:(0,$.jsx)(pe,{children:br})}),e[259]=br,e[260]=xr);let Cr;e[261]===i.sendShortcut?Cr=e[262]:(Cr=(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:r.map(e=>(0,$.jsx)(K,{value:e.value,children:(0,$.jsxs)(`span`,{className:`flex items-center justify-between gap-4`,children:[e.label,i.sendShortcut===e.value&&(0,$.jsx)(c,{"aria-hidden":`true`})]})},e.value))}),e[261]=i.sendShortcut,e[262]=Cr);let wr;e[263]!==i.sendShortcut||e[264]!==vr||e[265]!==xr||e[266]!==Cr?(wr=(0,$.jsxs)(ge,{value:i.sendShortcut,onValueChange:vr,children:[xr,Cr]}),e[263]=i.sendShortcut,e[264]=vr,e[265]=xr,e[266]=Cr,e[267]=wr):wr=e[267];let Tr;e[268]!==_r||e[269]!==wr?(Tr=(0,$.jsx)(J,{...hr,description:`Choose when Enter sends a prompt or inserts a new line`,resetAction:_r,control:wr}),e[268]=_r,e[269]=wr,e[270]=Tr):Tr=e[270];let Er;e[271]===Symbol.for(`react.memo_cache_sentinel`)?(Er=X(`follow-up-behavior`),e[271]=Er):Er=e[271];let Dr=`Queue follow-ups while the agent runs or steer the current run. `+(i.sendShortcut===`mod-enter-multiline`?`Press ${t} + Enter for single-line prompts or ${t} + Shift + Enter for multiline prompts to do the opposite for one message.`:`Press ${t}${i.sendShortcut===`mod-enter`?` + Shift`:``} + Enter to do the opposite for one message.`),Or;e[272]!==i.followUpBehavior||e[273]!==a?(Or=i.followUpBehavior===p.followUpBehavior?null:(0,$.jsx)(Y,{label:`follow-up behavior`,onClick:()=>a({followUpBehavior:p.followUpBehavior})}),e[272]=i.followUpBehavior,e[273]=a,e[274]=Or):Or=e[274];let kr;e[275]===a?kr=e[276]:(kr=e=>{(e===`queue`||e===`steer`)&&a({followUpBehavior:e})},e[275]=a,e[276]=kr);let Ar=i.followUpBehavior===`queue`?`Queue`:`Steer`,jr;e[277]===Ar?jr=e[278]:(jr=(0,$.jsx)(q,{size:`sm`,className:`w-auto min-w-0`,"aria-label":`Follow-up behavior`,children:(0,$.jsx)(pe,{children:Ar})}),e[277]=Ar,e[278]=jr);let Mr;e[279]===Symbol.for(`react.memo_cache_sentinel`)?(Mr=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[(0,$.jsx)(K,{value:`queue`,children:`Queue`}),(0,$.jsx)(K,{value:`steer`,children:`Steer`})]}),e[279]=Mr):Mr=e[279];let Nr;e[280]!==i.followUpBehavior||e[281]!==kr||e[282]!==jr?(Nr=(0,$.jsxs)(ge,{value:i.followUpBehavior,onValueChange:kr,children:[jr,Mr]}),e[280]=i.followUpBehavior,e[281]=kr,e[282]=jr,e[283]=Nr):Nr=e[283];let Pr;e[284]!==Dr||e[285]!==Or||e[286]!==Nr?(Pr=(0,$.jsx)(J,{...Er,description:Dr,resetAction:Or,control:Nr}),e[284]=Dr,e[285]=Or,e[286]=Nr,e[287]=Pr):Pr=e[287];let Fr,Ir;e[288]===Symbol.for(`react.memo_cache_sentinel`)?(Fr=[`enableProviderUpdateChecks`],Ir=X(`provider-update-checks`),e[288]=Fr,e[289]=Ir):(Fr=e[288],Ir=e[289]);let Lr;e[290]!==i.enableProviderUpdateChecks||e[291]!==a?(Lr=i.enableProviderUpdateChecks===p.enableProviderUpdateChecks?null:(0,$.jsx)(Y,{label:`provider update checks`,onClick:()=>a({enableProviderUpdateChecks:p.enableProviderUpdateChecks})}),e[290]=i.enableProviderUpdateChecks,e[291]=a,e[292]=Lr):Lr=e[292];let Rr;e[293]===Symbol.for(`react.memo_cache_sentinel`)?(Rr=[`enableProviderUpdateChecks`],e[293]=Rr):Rr=e[293];let zr;e[294]===a?zr=e[295]:(zr=e=>a({enableProviderUpdateChecks:!!e}),e[294]=a,e[295]=zr);let Br;e[296]!==i.enableProviderUpdateChecks||e[297]!==zr?(Br=(0,$.jsx)(sr,{settingKeys:Rr,checked:i.enableProviderUpdateChecks,onCheckedChange:zr,"aria-label":`Check provider versions`}),e[296]=i.enableProviderUpdateChecks,e[297]=zr,e[298]=Br):Br=e[298];let Vr;e[299]!==Lr||e[300]!==Br?(Vr=(0,$.jsx)(J,{serverScoped:!0,settingKeys:Fr,...Ir,description:`Check installed provider CLIs for newer available versions and fetch model catalog updates. When off, new models may not appear.`,resetAction:Lr,control:Br}),e[299]=Lr,e[300]=Br,e[301]=Vr):Vr=e[301];let Hr;e[302]===Symbol.for(`react.memo_cache_sentinel`)?(Hr=X(`continue-threads-after-server-update`),e[302]=Hr):Hr=e[302];let Ur;e[303]===Symbol.for(`react.memo_cache_sentinel`)?(Ur=[`continueThreadsAfterServerUpdate`],e[303]=Ur):Ur=e[303];let Wr=te?void 0:`All selected connected environments must support restart continuation.`,Gr;e[304]!==i.continueThreadsAfterServerUpdate||e[305]!==te||e[306]!==a?(Gr=te&&i.continueThreadsAfterServerUpdate!==p.continueThreadsAfterServerUpdate?(0,$.jsx)(Y,{label:`continue threads after restarts`,onClick:()=>a({continueThreadsAfterServerUpdate:p.continueThreadsAfterServerUpdate})}):null,e[304]=i.continueThreadsAfterServerUpdate,e[305]=te,e[306]=a,e[307]=Gr):Gr=e[307];let Kr;e[308]===Symbol.for(`react.memo_cache_sentinel`)?(Kr=[`continueThreadsAfterServerUpdate`],e[308]=Kr):Kr=e[308];let qr=!te,Jr;e[309]===a?Jr=e[310]:(Jr=e=>a({continueThreadsAfterServerUpdate:!!e}),e[309]=a,e[310]=Jr);let Yr;e[311]!==i.continueThreadsAfterServerUpdate||e[312]!==qr||e[313]!==Jr?(Yr=(0,$.jsx)(sr,{settingKeys:Kr,checked:i.continueThreadsAfterServerUpdate,disabled:qr,onCheckedChange:Jr,"aria-label":`Continue threads after restarts`}),e[311]=i.continueThreadsAfterServerUpdate,e[312]=qr,e[313]=Jr,e[314]=Yr):Yr=e[314];let Xr;e[315]!==Wr||e[316]!==Gr||e[317]!==Yr?(Xr=(0,$.jsx)(J,{...Hr,serverScoped:!0,settingKeys:Ur,description:`Automatically resume interrupted threads after an update, crash, or machine restart on the selected environments.`,status:Wr,resetAction:Gr,control:Yr}),e[315]=Wr,e[316]=Gr,e[317]=Yr,e[318]=Xr):Xr=e[318];let Zr,Qr;e[319]===Symbol.for(`react.memo_cache_sentinel`)?(Zr=[`backgroundActivity`],Qr=X(`background-activity`),e[319]=Zr,e[320]=Qr):(Zr=e[319],Qr=e[320]);let $r=Qr.id,ei;e[321]===Symbol.for(`react.memo_cache_sentinel`)?(ei=X(`background-activity`),e[321]=ei):ei=e[321];let ti;e[322]===Symbol.for(`react.memo_cache_sentinel`)?(ti=(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[ei.title,(0,$.jsx)(_n,{children:`This shared policy gates background work such as Git refreshes and provider health probes after their individual intervals elapse.`})]}),e[322]=ti):ti=e[322];let ni;e[323]!==Fe||e[324]!==a?(ni=Fe?(0,$.jsx)(Y,{label:`background activity`,onClick:()=>a(Eo())}):null,e[323]=Fe,e[324]=a,e[325]=ni):ni=e[325];let ri=Ee?null:we,ii;e[326]!==O||e[327]!==a?(ii=e=>{e===`advanced`?O&&P(!0):(e===`balanced`||e===`performance`||e===`battery-saver`)&&a(Do(e))},e[326]=O,e[327]=a,e[328]=ii):ii=e[328];let ai;e[329]===Symbol.for(`react.memo_cache_sentinel`)?(ai=(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Background activity profile`,children:(0,$.jsx)(pe,{children:Xo})}),e[329]=ai):ai=e[329];let oi,si,ci;e[330]===Symbol.for(`react.memo_cache_sentinel`)?(oi=(0,$.jsx)(K,{hideIndicator:!0,value:`balanced`,children:bo.balanced}),si=(0,$.jsx)(K,{hideIndicator:!0,value:`performance`,children:bo.performance}),ci=(0,$.jsx)(K,{hideIndicator:!0,value:`battery-saver`,children:bo[`battery-saver`]}),e[330]=oi,e[331]=si,e[332]=ci):(oi=e[330],si=e[331],ci=e[332]);let li=!O,ui=O?xo.advanced:`${xo.advanced} (one environment)`,di;e[333]!==li||e[334]!==ui?(di=(0,$.jsxs)(he,{align:`end`,alignItemWithTrigger:!1,children:[oi,si,ci,(0,$.jsx)(K,{hideIndicator:!0,value:`advanced`,disabled:li,children:ui})]}),e[333]=li,e[334]=ui,e[335]=di):di=e[335];let fi;e[336]!==ri||e[337]!==ii||e[338]!==di?(fi=(0,$.jsxs)(ge,{value:ri,onValueChange:ii,children:[ai,di]}),e[336]=ri,e[337]=ii,e[338]=di,e[339]=fi):fi=e[339];let pi;e[340]!==we||e[341]!==O?(pi=we===`advanced`&&O?(0,$.jsxs)(St,{children:[(0,$.jsx)(yt,{render:(0,$.jsx)(N,{size:`icon-sm`,variant:`outline`,"aria-label":`Configure advanced background activity`,onClick:()=>P(!0),children:(0,$.jsx)(A,{className:`size-4`})})}),(0,$.jsx)(bt,{side:`top`,children:`Configure background activity`})]}):null,e[340]=we,e[341]=O,e[342]=pi):pi=e[342];let mi=M&&O,hi;e[343]===mi?hi=e[344]:(hi=(0,$.jsx)(jo,{open:mi,onOpenChange:P}),e[343]=mi,e[344]=hi);let gi;e[345]!==fi||e[346]!==pi||e[347]!==hi?(gi=(0,$.jsxs)($.Fragment,{children:[fi,pi,hi]}),e[345]=fi,e[346]=pi,e[347]=hi,e[348]=gi):gi=e[348];let _i;e[349]!==Ne||e[350]!==ni||e[351]!==gi?(_i=(0,$.jsx)(J,{serverScoped:!0,settingKeys:Zr,id:$r,title:ti,description:Ne,resetAction:ni,control:gi}),e[349]=Ne,e[350]=ni,e[351]=gi,e[352]=_i):_i=e[352];let vi;e[353]!==Rn||e[354]!==Un||e[355]!==Jn||e[356]!==tr||e[357]!==mr||e[358]!==Tr||e[359]!==Pr||e[360]!==Vr||e[361]!==Xr||e[362]!==_i||e[363]!==Mt||e[364]!==Nt||e[365]!==Vt||e[366]!==Jt||e[367]!==on||e[368]!==bn||e[369]!==kn?(vi=(0,$.jsxs)(gn,{id:`behavior`,title:`Behavior`,children:[kt,Mt,Nt,Vt,Jt,on,bn,kn,Rn,Un,Jn,tr,mr,Tr,Pr,Vr,Xr,_i]}),e[353]=Rn,e[354]=Un,e[355]=Jn,e[356]=tr,e[357]=mr,e[358]=Tr,e[359]=Pr,e[360]=Vr,e[361]=Xr,e[362]=_i,e[363]=Mt,e[364]=Nt,e[365]=Vt,e[366]=Jt,e[367]=on,e[368]=bn,e[369]=kn,e[370]=vi):vi=e[370];let yi,bi;e[371]===Symbol.for(`react.memo_cache_sentinel`)?(yi=[`newWorktreesStartFromOrigin`],bi=X(`start-from-origin`),e[371]=yi,e[372]=bi):(yi=e[371],bi=e[372]);let xi;e[373]!==i.newWorktreesStartFromOrigin||e[374]!==a?(xi=i.newWorktreesStartFromOrigin===p.newWorktreesStartFromOrigin?null:(0,$.jsx)(Y,{label:`new worktrees start from origin`,onClick:()=>a({newWorktreesStartFromOrigin:p.newWorktreesStartFromOrigin})}),e[373]=i.newWorktreesStartFromOrigin,e[374]=a,e[375]=xi):xi=e[375];let Si;e[376]===Symbol.for(`react.memo_cache_sentinel`)?(Si=[`newWorktreesStartFromOrigin`],e[376]=Si):Si=e[376];let Ci;e[377]===a?Ci=e[378]:(Ci=e=>a({newWorktreesStartFromOrigin:!!e}),e[377]=a,e[378]=Ci);let wi;e[379]!==i.newWorktreesStartFromOrigin||e[380]!==Ci?(wi=(0,$.jsx)(sr,{settingKeys:Si,checked:i.newWorktreesStartFromOrigin,onCheckedChange:Ci,"aria-label":`Start new worktrees from origin by default`}),e[379]=i.newWorktreesStartFromOrigin,e[380]=Ci,e[381]=wi):wi=e[381];let Ti;e[382]!==xi||e[383]!==wi?(Ti=(0,$.jsx)(J,{serverScoped:!0,settingKeys:yi,...bi,description:`Creates the worktree from the latest matching branch on origin instead of your local branch.`,resetAction:xi,control:wi}),e[382]=xi,e[383]=wi,e[384]=Ti):Ti=e[384];let Ei,Di;e[385]===Symbol.for(`react.memo_cache_sentinel`)?(Ei=[`addProjectBaseDirectory`],Di=X(`add-project-starts-in`),e[385]=Ei,e[386]=Di):(Ei=e[385],Di=e[386]);let Oi;e[387]!==i.addProjectBaseDirectory||e[388]!==a?(Oi=i.addProjectBaseDirectory===p.addProjectBaseDirectory?null:(0,$.jsx)(Y,{label:`add project base directory`,onClick:()=>a({addProjectBaseDirectory:p.addProjectBaseDirectory})}),e[387]=i.addProjectBaseDirectory,e[388]=a,e[389]=Oi):Oi=e[389];let ki=Ae?``:i.addProjectBaseDirectory,Ai;e[390]===a?Ai=e[391]:(Ai=e=>a({addProjectBaseDirectory:e}),e[390]=a,e[391]=Ai);let ji=Ae?`Mixed`:`~/`,Mi;e[392]!==ki||e[393]!==Ai||e[394]!==ji?(Mi=(0,$.jsx)(or,{size:`sm`,className:`w-full sm:w-72`,value:ki,onCommit:Ai,placeholder:ji,spellCheck:!1,"aria-label":`Add project base directory`}),e[392]=ki,e[393]=Ai,e[394]=ji,e[395]=Mi):Mi=e[395];let Ni;e[396]!==Oi||e[397]!==Mi?(Ni=(0,$.jsx)(J,{serverScoped:!0,settingKeys:Ei,...Di,description:`Leave empty to use "~/" when the Add Project browser opens.`,resetAction:Oi,control:Mi}),e[396]=Oi,e[397]=Mi,e[398]=Ni):Ni=e[398];let Pi;e[399]!==Ti||e[400]!==Ni?(Pi=(0,$.jsxs)(gn,{id:`projects-and-threads`,title:`Projects & threads`,children:[Ti,Ni]}),e[399]=Ti,e[400]=Ni,e[401]=Pi):Pi=e[401];let Fi;e[402]===Symbol.for(`react.memo_cache_sentinel`)?(Fi=X(`unpin-confirmation`),e[402]=Fi):Fi=e[402];let Ii;e[403]!==i.confirmThreadUnpin||e[404]!==a?(Ii=i.confirmThreadUnpin===p.confirmThreadUnpin?null:(0,$.jsx)(Y,{label:`unpin confirmation`,onClick:()=>a({confirmThreadUnpin:p.confirmThreadUnpin})}),e[403]=i.confirmThreadUnpin,e[404]=a,e[405]=Ii):Ii=e[405];let Li;e[406]===a?Li=e[407]:(Li=e=>a({confirmThreadUnpin:!!e}),e[406]=a,e[407]=Li);let Ri;e[408]!==i.confirmThreadUnpin||e[409]!==Li?(Ri=(0,$.jsx)(Fn,{checked:i.confirmThreadUnpin,onCheckedChange:Li,"aria-label":`Confirm thread unpinning`}),e[408]=i.confirmThreadUnpin,e[409]=Li,e[410]=Ri):Ri=e[410];let zi;e[411]!==Ii||e[412]!==Ri?(zi=(0,$.jsx)(J,{...Fi,description:`Ask before unpinning a thread from the pinned section.`,resetAction:Ii,control:Ri}),e[411]=Ii,e[412]=Ri,e[413]=zi):zi=e[413];let Bi;e[414]===Symbol.for(`react.memo_cache_sentinel`)?(Bi=X(`archive-confirmation`),e[414]=Bi):Bi=e[414];let Vi;e[415]!==i.confirmThreadArchive||e[416]!==a?(Vi=i.confirmThreadArchive===p.confirmThreadArchive?null:(0,$.jsx)(Y,{label:`archive confirmation`,onClick:()=>a({confirmThreadArchive:p.confirmThreadArchive})}),e[415]=i.confirmThreadArchive,e[416]=a,e[417]=Vi):Vi=e[417];let Hi;e[418]===a?Hi=e[419]:(Hi=e=>a({confirmThreadArchive:!!e}),e[418]=a,e[419]=Hi);let Ui;e[420]!==i.confirmThreadArchive||e[421]!==Hi?(Ui=(0,$.jsx)(Fn,{checked:i.confirmThreadArchive,onCheckedChange:Hi,"aria-label":`Confirm thread archiving`}),e[420]=i.confirmThreadArchive,e[421]=Hi,e[422]=Ui):Ui=e[422];let Wi;e[423]!==Vi||e[424]!==Ui?(Wi=(0,$.jsx)(J,{...Bi,description:`Require a second click on the inline archive action before a thread is archived.`,resetAction:Vi,control:Ui}),e[423]=Vi,e[424]=Ui,e[425]=Wi):Wi=e[425];let Gi;e[426]===Symbol.for(`react.memo_cache_sentinel`)?(Gi=X(`delete-confirmation`),e[426]=Gi):Gi=e[426];let Ki;e[427]!==i.confirmThreadDelete||e[428]!==a?(Ki=i.confirmThreadDelete===p.confirmThreadDelete?null:(0,$.jsx)(Y,{label:`delete confirmation`,onClick:()=>a({confirmThreadDelete:p.confirmThreadDelete})}),e[427]=i.confirmThreadDelete,e[428]=a,e[429]=Ki):Ki=e[429];let qi;e[430]===a?qi=e[431]:(qi=e=>a({confirmThreadDelete:!!e}),e[430]=a,e[431]=qi);let Ji;e[432]!==i.confirmThreadDelete||e[433]!==qi?(Ji=(0,$.jsx)(Fn,{checked:i.confirmThreadDelete,onCheckedChange:qi,"aria-label":`Confirm thread deletion`}),e[432]=i.confirmThreadDelete,e[433]=qi,e[434]=Ji):Ji=e[434];let Yi;e[435]!==Ki||e[436]!==Ji?(Yi=(0,$.jsx)(J,{...Gi,description:`Ask before deleting a thread and its chat history.`,resetAction:Ki,control:Ji}),e[435]=Ki,e[436]=Ji,e[437]=Yi):Yi=e[437];let Xi;e[438]!==i.confirmQuit||e[439]!==a?(Xi=vt?(0,$.jsx)(J,{...X(`quit-confirmation`),description:`Hold mode also quits on two quick presses.`,resetAction:i.confirmQuit===p.confirmQuit?null:(0,$.jsx)(Y,{label:`quit shortcut behavior`,onClick:()=>a({confirmQuit:p.confirmQuit})}),control:(0,$.jsxs)(ge,{value:i.confirmQuit,onValueChange:e=>{(e===`direct`||e===`hold`||e===`double-click`)&&a({confirmQuit:e})},children:[(0,$.jsx)(q,{size:`sm`,className:`w-full sm:w-40`,"aria-label":`Quit shortcut behavior`,children:(0,$.jsx)(pe,{children:yo[i.confirmQuit]})}),(0,$.jsx)(he,{align:`end`,alignItemWithTrigger:!1,children:Object.entries(yo).map(Yo)})]})}):null,e[438]=i.confirmQuit,e[439]=a,e[440]=Xi):Xi=e[440];let Zi;e[441]!==zi||e[442]!==Wi||e[443]!==Yi||e[444]!==Xi?(Zi=(0,$.jsxs)(gn,{id:`confirmations`,title:`Confirmations`,children:[zi,Wi,Yi,Xi]}),e[441]=zi,e[442]=Wi,e[443]=Yi,e[444]=Xi,e[445]=Zi):Zi=e[445];let Qi=gn,$i=J,ea,ta;e[446]===Symbol.for(`react.memo_cache_sentinel`)?(ea=[`textGenerationModelSelection`],ta=X(`text-generation-model`),e[446]=ea,e[447]=ta):(ea=e[446],ta=e[447]);let na;e[448]!==j||e[449]!==me||e[450]!==a?(na=j&&me?(0,$.jsx)(Y,{label:`text generation model`,onClick:()=>a({textGenerationModelSelection:p.textGenerationModelSelection})}):null,e[448]=j,e[449]=me,e[450]=a,e[451]=na):na=e[451];let ra=j?ce?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[(0,$.jsx)(er,{environmentId:D,activeInstanceId:re,model:ae,lockedProvider:null,instanceEntries:se,modelOptionsByInstance:de,triggerClassName:hn,...Me?{triggerLabel:`Mixed`}:{},getModelDisabledReason:_e,...D?{onOpenProviderSetup:e=>{o({to:`/settings/providers`,search:{environmentId:D,instanceId:e}})}}:{},onInstanceModelChange:(e,t)=>{let n=_e(e,t);n?be.add({type:`error`,title:`Text generation model not saved`,description:n}):a({textGenerationModelSelection:h({...i,textGenerationModelSelection:W(e,t)},G)})}}),le?(0,$.jsx)(F,{provider:ue,models:le?.models??[],model:ae,modelOptions:oe,allowPromptInjectedEffort:!1,planModeEnabled:i.planModeEnabled||_(oe),triggerClassName:hn,onModelOptionsChange:e=>{a({textGenerationModelSelection:h({...i,textGenerationModelSelection:W(re,ae,e)},G)})}}):null]}):(0,$.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`No text generation providers available.`}):(0,$.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Connect an environment to choose its text generation model.`}),ia;e[452]!==$i||e[453]!==ea||e[454]!==ta||e[455]!==na||e[456]!==ra?(ia=(0,$.jsx)($i,{serverScoped:!0,settingKeys:ea,...ta,description:`Used for thread titles and other generated text on connected devices with this provider. Source control can override it.`,resetAction:na,control:ra}),e[452]=$i,e[453]=ea,e[454]=ta,e[455]=na,e[456]=ra,e[457]=ia):ia=e[457];let aa;e[458]!==Qi||e[459]!==ia?(aa=(0,$.jsx)(Qi,{id:`text-generation`,title:`Text generation`,children:ia}),e[458]=Qi,e[459]=ia,e[460]=aa):aa=e[460];let oa;e[461]===Symbol.for(`react.memo_cache_sentinel`)?(oa=vt||ie?(0,$.jsx)(ko,{}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(J,{id:X(`app-version`).id,title:(0,$.jsx)(Oo,{}),description:`Current version of the application.`}),yn?(0,$.jsx)(Xn,{}):null]}),e[461]=oa):oa=e[461];let sa;e[462]===Symbol.for(`react.memo_cache_sentinel`)?(sa=X(`privacy-policy`),e[462]=sa):sa=e[462];let ca;e[463]===Symbol.for(`react.memo_cache_sentinel`)?(ca=(0,$.jsxs)(gn,{id:`about`,title:`About`,children:[oa,(0,$.jsx)(J,{...sa,description:`How we handle your data, including the anonymous usage data P4 Code collects.`,control:(0,$.jsx)(N,{render:(0,$.jsx)(`a`,{href:rr,target:`_blank`,rel:`noreferrer noopener`}),size:`sm`,variant:`outline`,children:`View policy`})})]}),e[463]=ca):ca=e[463];let la;e[464]===Symbol.for(`react.memo_cache_sentinel`)?(la=X(`diagnostics`),e[464]=la):la=e[464];let ua=O?`Inspect processes, resource use, and logs on this environment.`:`Inspect processes, resource use, and logs on one environment at a time.`,da=D??void 0,fa;e[465]===da?fa=e[466]:(fa=(0,$.jsx)(N,{render:(0,$.jsx)(ve,{to:`/settings/diagnostics`,search:{machine:da}}),size:`sm`,variant:`outline`,children:`View diagnostics`}),e[465]=da,e[466]=fa);let pa;e[467]!==ua||e[468]!==fa?(pa=(0,$.jsx)(J,{...la,description:ua,control:fa}),e[467]=ua,e[468]=fa,e[469]=pa):pa=e[469];let ma;e[470]===Symbol.for(`react.memo_cache_sentinel`)?(ma=X(`open-source-licenses`),e[470]=ma):ma=e[470];let ha;e[471]===Symbol.for(`react.memo_cache_sentinel`)?(ha=(0,$.jsx)(J,{...ma,description:`Notices for dependencies, assets, and optional tools used by P4 Code.`,control:(0,$.jsx)(N,{render:(0,$.jsx)(ve,{to:`/settings/open-source-licenses`}),size:`sm`,variant:`outline`,children:`View licenses`})}),e[471]=ha):ha=e[471];let ga;e[472]===pa?ga=e[473]:(ga=(0,$.jsxs)(gn,{title:`Diagnostics`,children:[pa,ha]}),e[472]=pa,e[473]=ga);let _a;e[474]===Symbol.for(`react.memo_cache_sentinel`)?(_a=(0,$.jsx)(qo,{}),e[474]=_a):_a=e[474];let va;return e[475]!==Ie||e[476]!==Le||e[477]!==vi||e[478]!==Pi||e[479]!==Zi||e[480]!==aa||e[481]!==ga||e[482]!==Ot?(va=(0,$.jsxs)(Ie,{children:[Le,Ot,vi,Pi,Zi,aa,ca,ga,_a]}),e[475]=Ie,e[476]=Le,e[477]=vi,e[478]=Pi,e[479]=Zi,e[480]=aa,e[481]=ga,e[482]=Ot,e[483]=va):va=e[483],va}function Yo(e){let[t,n]=e;return(0,$.jsx)(K,{hideIndicator:!0,value:t,children:n},t)}function Xo(e){return e===null?`Mixed`:xo[e]}function Zo(e){return e===null?`Mixed`:uo[e]}function Qo(e){return(0,$.jsx)(K,{value:e,children:e===`off`?`Off`:e.charAt(0).toUpperCase()+e.slice(1)},e)}function $o(e){return e===null?`Mixed`:e===`off`?`Off`:e.charAt(0).toUpperCase()+e.slice(1)}function es(e){return e===null?`Mixed`:w.find(t=>t.value===e)?.label}function ts(e){return(0,$.jsx)(K,{hideIndicator:!0,value:e,children:po[e]},e)}function ns(e){return e.enabled&&e.isAvailable}function rs(e){return e.supportsTextGeneration!==!1}function is(e){return e.serverConfig?.environment.capabilities.threadRestartContinuation===!0}export{co as i,Jo as n,Ao as r,Mo as t};
46
- //# sourceMappingURL=SettingsPanels-BsyJETg8.js.map
46
+ //# sourceMappingURL=SettingsPanels-Co5mks6X.js.map
@@ -1,2 +1,2 @@
1
- import{FT as e,Ih as t,ME as n}from"./utils-CcBaVOX5.js";import{F as r,L as i,R as a,z as o}from"./useSettings-Cg0O7Ek7.js";function s(e){return e!==`separate`}function c(e,t=`repository`){return e?t===`repository_path`?`repository_path`:`repository`:`separate`}var l=`p4code:last-enabled-project-grouping-mode`;function u(){try{return localStorage.getItem(l)===`repository_path`?`repository_path`:`repository`}catch{return`repository`}}function d(e){if(e!==`separate`)try{localStorage.setItem(l,e)}catch{}}function f(e){return!n(e.backgroundActivity,t.backgroundActivity)||e.backgroundActivityProfile!==t.backgroundActivityProfile||!n(e.automaticGitFetchInterval,t.automaticGitFetchInterval)||!n(e.providerHealthRefreshInterval,t.providerHealthRefreshInterval)}function p(e){return[...e.fontFamilySans!==t.fontFamilySans||e.fontSizeInterface!==t.fontSizeInterface?[`Interface font`]:[],...e.fontFamilyComposer!==t.fontFamilyComposer||e.fontSizePrompt!==t.fontSizePrompt?[`Prompt font`]:[],...e.fontFamilyCode!==t.fontFamilyCode||e.fontSizeCode!==t.fontSizeCode?[`Code font`]:[],...e.fontFamilyTerminal!==t.fontFamilyTerminal||e.fontSizeTerminal!==t.fontSizeTerminal?[`Terminal font`]:[]]}function m(e,t){return e._tag===t._tag?e._tag===`fill`||t._tag===`fill`?!0:e.width!==t.width||e.height!==t.height?!1:e._tag===`preset`&&t._tag===`preset`?e.presetId===t.presetId:!0:!1}function h(e){return[...m(e.browserDefaultViewport,t.browserDefaultViewport)?[]:[`Browser viewport`],...e.browserDefaultZoomFactor===t.browserDefaultZoomFactor?[]:[`Browser zoom`],...e.browserDefaultAppearance===t.browserDefaultAppearance?[]:[`Browser appearance`],...e.browserRecordingFrameRate===t.browserRecordingFrameRate?[]:[`Recording frame rate`],...e.browserRecordingShowKeyPresses?[`Recording key presses`]:[],...e.browserRecordingShowMousePresses?[`Recording mouse presses`]:[],...e.browserLinkTarget===t.browserLinkTarget?[]:[`Open links in`],...e.browserSearchEngine!==t.browserSearchEngine||e.browserCustomSearchUrl!==t.browserCustomSearchUrl?[`Search engine`]:[],...e.browserAutoShowFloatingPreview===t.browserAutoShowFloatingPreview?[]:[`Floating preview`],...e.pullRequestLinksOpenInApp===t.pullRequestLinksOpenInApp?[]:[`Open pull requests in P4 Code`]]}function g(e){let t=o(e),n=i({schemaVersion:1,profile:`custom`,baseProfile:t.profile,overrides:{automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery}});return n.profile===`custom`?`advanced`:n.profile}function _(e,t){let n=a(e);return{schemaVersion:1,profile:`custom`,baseProfile:t,overrides:n.profile===`custom`?n.overrides:{}}}function v(e){return{providerInstances:{...e.settings.providerInstances,[e.instanceId]:e.instance},...e.textGenerationModelSelection===void 0?{}:{textGenerationModelSelection:e.textGenerationModelSelection}}}function y(t){return Math.round(e(t)/1e3)}function b(e,t=0){return e===null||!Number.isFinite(e)?t:Math.max(t,Math.round(e))}function x(e,t,n){let i={automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery,...n};for(let[e,t]of Object.entries(i))t===void 0&&delete i[e];return{backgroundActivity:{schemaVersion:1,profile:`custom`,baseProfile:r(e),overrides:i}}}export{h as a,s as c,u as d,d as f,y as i,b as l,_ as n,p as o,g as p,v as r,f as s,x as t,c as u};
2
- //# sourceMappingURL=SettingsPanels.logic-DS-Semyc.js.map
1
+ import{FT as e,Ih as t,ME as n}from"./utils-C5GGWTfe.js";import{F as r,L as i,R as a,z as o}from"./useSettings-B09a3zie.js";function s(e){return e!==`separate`}function c(e,t=`repository`){return e?t===`repository_path`?`repository_path`:`repository`:`separate`}var l=`p4code:last-enabled-project-grouping-mode`;function u(){try{return localStorage.getItem(l)===`repository_path`?`repository_path`:`repository`}catch{return`repository`}}function d(e){if(e!==`separate`)try{localStorage.setItem(l,e)}catch{}}function f(e){return!n(e.backgroundActivity,t.backgroundActivity)||e.backgroundActivityProfile!==t.backgroundActivityProfile||!n(e.automaticGitFetchInterval,t.automaticGitFetchInterval)||!n(e.providerHealthRefreshInterval,t.providerHealthRefreshInterval)}function p(e){return[...e.fontFamilySans!==t.fontFamilySans||e.fontSizeInterface!==t.fontSizeInterface?[`Interface font`]:[],...e.fontFamilyComposer!==t.fontFamilyComposer||e.fontSizePrompt!==t.fontSizePrompt?[`Prompt font`]:[],...e.fontFamilyCode!==t.fontFamilyCode||e.fontSizeCode!==t.fontSizeCode?[`Code font`]:[],...e.fontFamilyTerminal!==t.fontFamilyTerminal||e.fontSizeTerminal!==t.fontSizeTerminal?[`Terminal font`]:[]]}function m(e,t){return e._tag===t._tag?e._tag===`fill`||t._tag===`fill`?!0:e.width!==t.width||e.height!==t.height?!1:e._tag===`preset`&&t._tag===`preset`?e.presetId===t.presetId:!0:!1}function h(e){return[...m(e.browserDefaultViewport,t.browserDefaultViewport)?[]:[`Browser viewport`],...e.browserDefaultZoomFactor===t.browserDefaultZoomFactor?[]:[`Browser zoom`],...e.browserDefaultAppearance===t.browserDefaultAppearance?[]:[`Browser appearance`],...e.browserRecordingFrameRate===t.browserRecordingFrameRate?[]:[`Recording frame rate`],...e.browserRecordingShowKeyPresses?[`Recording key presses`]:[],...e.browserRecordingShowMousePresses?[`Recording mouse presses`]:[],...e.browserLinkTarget===t.browserLinkTarget?[]:[`Open links in`],...e.browserSearchEngine!==t.browserSearchEngine||e.browserCustomSearchUrl!==t.browserCustomSearchUrl?[`Search engine`]:[],...e.browserAutoShowFloatingPreview===t.browserAutoShowFloatingPreview?[]:[`Floating preview`],...e.pullRequestLinksOpenInApp===t.pullRequestLinksOpenInApp?[]:[`Open pull requests in P4 Code`]]}function g(e){let t=o(e),n=i({schemaVersion:1,profile:`custom`,baseProfile:t.profile,overrides:{automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery}});return n.profile===`custom`?`advanced`:n.profile}function _(e,t){let n=a(e);return{schemaVersion:1,profile:`custom`,baseProfile:t,overrides:n.profile===`custom`?n.overrides:{}}}function v(e){return{providerInstances:{...e.settings.providerInstances,[e.instanceId]:e.instance},...e.textGenerationModelSelection===void 0?{}:{textGenerationModelSelection:e.textGenerationModelSelection}}}function y(t){return Math.round(e(t)/1e3)}function b(e,t=0){return e===null||!Number.isFinite(e)?t:Math.max(t,Math.round(e))}function x(e,t,n){let i={automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery,...n};for(let[e,t]of Object.entries(i))t===void 0&&delete i[e];return{backgroundActivity:{schemaVersion:1,profile:`custom`,baseProfile:r(e),overrides:i}}}export{h as a,s as c,u as d,d as f,y as i,b as l,_ as n,p as o,g as p,v as r,f as s,x as t,c as u};
2
+ //# sourceMappingURL=SettingsPanels.logic-H5v8FTnu.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./react-BUfh6y28.js";import{n as t,t as n}from"./jsx-runtime-DJeoFXNw.js";import{fr as r}from"./utils-CcBaVOX5.js";import{t as i}from"./useNavigate-PfhtEZbl.js";import{t as a}from"./useLocation-DNv7cb59.js";import{E as o}from"./useSettings-Cg0O7Ek7.js";import{n as s,r as c,t as l}from"./alert-UH7IbYie.js";import{V as u,W as d,i as f}from"./settingsLayout-krWuVpsF.js";var p=t(),m=e(n(),1);function h(e){let t=(0,p.c)(42),{children:n,target:h,targetId:y,eligibleEnvironmentIds:b}=e,{selectScope:x,search:S}=u(),C;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(C={from:`/settings`},t[0]=C):C=t[0];let w=i(C),T;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(T={select:v},t[1]=T):T=t[1];let E=a(T),{environments:D}=o(),O=d(),k,A,j,M,N,P,F,I;if(t[2]!==n||t[3]!==b||t[4]!==D||t[5]!==O||t[6]!==w||t[7]!==E||t[8]!==S||t[9]!==x||t[10]!==h||t[11]!==y){let e=h===`checkout`?O.filter(e=>!S.project||e.projectKey===S.project).flatMap(_):h===`project`?O.map(g):h===`environment`?D.filter(e=>b===void 0||b.includes(e.environmentId)).map(e=>({label:D.some(t=>t.environmentId!==e.environmentId&&t.label===e.label)?`${e.label} · ${e.displayUrl||e.environmentId}`:e.label,search:{machine:e.environmentId}})):[{label:`Open all environments`,search:{}}];M=f,j=l,I=`status`,A=c,t[20]===n?F=t[21]:(F=(0,m.jsx)(`p`,{children:n}),t[20]=n,t[21]=F),k=s,N=`flex-wrap`;let i;t[22]!==w||t[23]!==E||t[24]!==x||t[25]!==y?(i=e=>(0,m.jsx)(r,{size:`sm-multiline`,variant:`outline`,className:`max-w-full break-all text-left`,onClick:()=>{y?w({to:E,search:()=>e.search,hash:y}):x(e.search)},children:e.label},JSON.stringify(e.search)),t[22]=w,t[23]=E,t[24]=x,t[25]=y,t[26]=i):i=t[26],P=e.map(i),t[2]=n,t[3]=b,t[4]=D,t[5]=O,t[6]=w,t[7]=E,t[8]=S,t[9]=x,t[10]=h,t[11]=y,t[12]=k,t[13]=A,t[14]=j,t[15]=M,t[16]=N,t[17]=P,t[18]=F,t[19]=I}else k=t[12],A=t[13],j=t[14],M=t[15],N=t[16],P=t[17],F=t[18],I=t[19];let L;t[27]!==k||t[28]!==N||t[29]!==P?(L=(0,m.jsx)(k,{className:N,children:P}),t[27]=k,t[28]=N,t[29]=P,t[30]=L):L=t[30];let R;t[31]!==A||t[32]!==F||t[33]!==L?(R=(0,m.jsxs)(A,{children:[F,L]}),t[31]=A,t[32]=F,t[33]=L,t[34]=R):R=t[34];let z;t[35]!==j||t[36]!==I||t[37]!==R?(z=(0,m.jsx)(j,{role:I,children:R}),t[35]=j,t[36]=I,t[37]=R,t[38]=z):z=t[38];let B;return t[39]!==M||t[40]!==z?(B=(0,m.jsx)(M,{children:z}),t[39]=M,t[40]=z,t[41]=B):B=t[41],B}function g(e){return{label:e.displayName,search:{project:e.projectKey}}}function _(e){return e.memberProjects.map(t=>({label:`${e.displayName} · ${t.environmentLabel??`Environment`} · ${t.workspaceRoot}`,search:{project:e.projectKey,machine:t.environmentId,checkout:t.physicalProjectKey}}))}function v(e){return e.pathname}export{h as t};
2
- //# sourceMappingURL=SettingsScopeNotice--a-aNSRR.js.map
1
+ import{a as e}from"./react-BUfh6y28.js";import{n as t,t as n}from"./jsx-runtime-DJeoFXNw.js";import{fr as r}from"./utils-C5GGWTfe.js";import{t as i}from"./useNavigate-AZUCIeU4.js";import{t as a}from"./useLocation-DHd-KBb-.js";import{E as o}from"./useSettings-B09a3zie.js";import{n as s,r as c,t as l}from"./alert-BOVMKHDy.js";import{V as u,W as d,i as f}from"./settingsLayout-WhjsCfB6.js";var p=t(),m=e(n(),1);function h(e){let t=(0,p.c)(42),{children:n,target:h,targetId:y,eligibleEnvironmentIds:b}=e,{selectScope:x,search:S}=u(),C;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(C={from:`/settings`},t[0]=C):C=t[0];let w=i(C),T;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(T={select:v},t[1]=T):T=t[1];let E=a(T),{environments:D}=o(),O=d(),k,A,j,M,N,P,F,I;if(t[2]!==n||t[3]!==b||t[4]!==D||t[5]!==O||t[6]!==w||t[7]!==E||t[8]!==S||t[9]!==x||t[10]!==h||t[11]!==y){let e=h===`checkout`?O.filter(e=>!S.project||e.projectKey===S.project).flatMap(_):h===`project`?O.map(g):h===`environment`?D.filter(e=>b===void 0||b.includes(e.environmentId)).map(e=>({label:D.some(t=>t.environmentId!==e.environmentId&&t.label===e.label)?`${e.label} · ${e.displayUrl||e.environmentId}`:e.label,search:{machine:e.environmentId}})):[{label:`Open all environments`,search:{}}];M=f,j=l,I=`status`,A=c,t[20]===n?F=t[21]:(F=(0,m.jsx)(`p`,{children:n}),t[20]=n,t[21]=F),k=s,N=`flex-wrap`;let i;t[22]!==w||t[23]!==E||t[24]!==x||t[25]!==y?(i=e=>(0,m.jsx)(r,{size:`sm-multiline`,variant:`outline`,className:`max-w-full break-all text-left`,onClick:()=>{y?w({to:E,search:()=>e.search,hash:y}):x(e.search)},children:e.label},JSON.stringify(e.search)),t[22]=w,t[23]=E,t[24]=x,t[25]=y,t[26]=i):i=t[26],P=e.map(i),t[2]=n,t[3]=b,t[4]=D,t[5]=O,t[6]=w,t[7]=E,t[8]=S,t[9]=x,t[10]=h,t[11]=y,t[12]=k,t[13]=A,t[14]=j,t[15]=M,t[16]=N,t[17]=P,t[18]=F,t[19]=I}else k=t[12],A=t[13],j=t[14],M=t[15],N=t[16],P=t[17],F=t[18],I=t[19];let L;t[27]!==k||t[28]!==N||t[29]!==P?(L=(0,m.jsx)(k,{className:N,children:P}),t[27]=k,t[28]=N,t[29]=P,t[30]=L):L=t[30];let R;t[31]!==A||t[32]!==F||t[33]!==L?(R=(0,m.jsxs)(A,{children:[F,L]}),t[31]=A,t[32]=F,t[33]=L,t[34]=R):R=t[34];let z;t[35]!==j||t[36]!==I||t[37]!==R?(z=(0,m.jsx)(j,{role:I,children:R}),t[35]=j,t[36]=I,t[37]=R,t[38]=z):z=t[38];let B;return t[39]!==M||t[40]!==z?(B=(0,m.jsx)(M,{children:z}),t[39]=M,t[40]=z,t[41]=B):B=t[41],B}function g(e){return{label:e.displayName,search:{project:e.projectKey}}}function _(e){return e.memberProjects.map(t=>({label:`${e.displayName} · ${t.environmentLabel??`Environment`} · ${t.workspaceRoot}`,search:{project:e.projectKey,machine:t.environmentId,checkout:t.physicalProjectKey}}))}function v(e){return e.pathname}export{h as t};
2
+ //# sourceMappingURL=SettingsScopeNotice-gFtgpybO.js.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{ns as i}from"./utils-CcBaVOX5.js";import{P as a,z as o}from"./runtime-DCbEdU32.js";import{i as s}from"./server-Ct4-BCZx.js";var ee=n(),te=e(t(),1),c=e(r(),1),ne=`0 0 8192 96`;function l(e,t=!0){if(!t)return null;let n=e.trim().toLowerCase();return n===`nightly`?`nightly`:n===`dev`?`dev`:null}function u(e){let t=e.trim().toLowerCase();return t===`dev`?`Dev`:t===`nightly`?`Nightly`:null}function d(){let e=(0,ee.c)(2),t=i(s)?.environment.serverVersion??null,n;return e[0]===t?n=e[1]:(n=o({primaryServerVersion:t,fallbackStageLabel:a}),e[0]=t,e[1]=n),n}function f(e){let t=(0,ee.c)(2),{variant:n}=e,r;return t[0]===n?r=t[1]:(r=n===`nightly`?(0,c.jsx)(p,{}):(0,c.jsx)(m,{}),t[0]=n,t[1]=r),r}var re=[{cx:14,cy:10,r:.6,opacity:.85},{cx:38,cy:22,r:.4,opacity:.55},{cx:58,cy:8,r:.5,opacity:.7},{cx:84,cy:16,r:.4,opacity:.5},{cx:104,cy:7,r:.6,opacity:.8},{cx:126,cy:20,r:.4,opacity:.55},{cx:148,cy:11,r:.5,opacity:.7},{cx:170,cy:24,r:.4,opacity:.5},{cx:192,cy:9,r:.6,opacity:.8},{cx:214,cy:18,r:.4,opacity:.55},{cx:236,cy:8,r:.5,opacity:.7},{cx:258,cy:20,r:.45,opacity:.6},{cx:278,cy:11,r:.55,opacity:.75},{cx:26,cy:34,r:.4,opacity:.45},{cx:118,cy:34,r:.4,opacity:.45},{cx:202,cy:32,r:.4,opacity:.5},{cx:268,cy:34,r:.4,opacity:.45}],ie=[{x:70,y:28},{x:160,y:36},{x:246,y:26}];function p(e){let t=(0,ee.c)(61),{compact:n}=e,r=n!==void 0&&n,i=(0,te.useId)(),a;t[0]===i?a=t[1]:(a=i.replaceAll(`:`,``),t[0]=i,t[1]=a);let o=a,s=`${o}-stage-night-sky`,l=`${o}-stage-night-glow`,u=`${o}-stage-night-cloud`,d=`${o}-stage-night-soft`,f=`${o}-stage-night-stars`,p=`${o}-stage-night-glows`,m=r?`96 0 8192 96`:ne,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-night-bottom)`}}),t[2]=h):h=t[2];let g;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-night-mid)`}}),t[3]=g):g=t[3];let _;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-night-top)`}}),t[4]=_):_=t[4];let v;t[5]===s?v=t[6]:(v=(0,c.jsxs)(`linearGradient`,{id:s,x1:`24`,y1:`0`,x2:`264`,y2:`96`,gradientUnits:`userSpaceOnUse`,spreadMethod:`reflect`,children:[h,g,_]}),t[5]=s,t[6]=v);let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-night-glow-highlight)`},stopOpacity:`0.4`}),t[7]=y):y=t[7];let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-night-glow-secondary)`},stopOpacity:`0.16`}),t[8]=b):b=t[8];let x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-night-bottom)`},stopOpacity:`0`}),t[9]=x):x=t[9];let S;t[10]===l?S=t[11]:(S=(0,c.jsxs)(`radialGradient`,{id:l,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(216 18) rotate(137) scale(120 84)`,gradientUnits:`userSpaceOnUse`,children:[y,b,x]}),t[10]=l,t[11]=S);let C;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-night-highlight)`},stopOpacity:`0.5`}),t[12]=C):C=t[12];let w;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,c.jsx)(`stop`,{offset:`0.52`,style:{stopColor:`var(--stage-night-secondary)`},stopOpacity:`0.62`}),t[13]=w):w=t[13];let T;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-night-tertiary)`},stopOpacity:`0.5`}),t[14]=T):T=t[14];let E;t[15]===u?E=t[16]:(E=(0,c.jsxs)(`linearGradient`,{id:u,x1:`0`,y1:`60`,x2:`288`,y2:`96`,gradientUnits:`userSpaceOnUse`,children:[C,w,T]}),t[15]=u,t[16]=E);let D;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,c.jsx)(`feGaussianBlur`,{stdDeviation:`4`}),t[17]=D):D=t[17];let O;t[18]===d?O=t[19]:(O=(0,c.jsx)(`filter`,{id:d,x:`-24`,y:`-24`,width:`336`,height:`144`,filterUnits:`userSpaceOnUse`,children:D}),t[18]=d,t[19]=O);let k,A;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,c.jsx)(`g`,{style:{fill:`var(--stage-night-line)`},children:re.map(oe)}),A={stroke:`var(--stage-night-sparkle)`},t[20]=k,t[21]=A):(k=t[20],A=t[21]);let j;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,c.jsx)(`g`,{style:A,strokeLinecap:`round`,strokeOpacity:`0.7`,strokeWidth:`0.6`,children:ie.map(ae)}),t[22]=j):j=t[22];let M;t[23]===f?M=t[24]:(M=(0,c.jsxs)(`pattern`,{id:f,width:`288`,height:`96`,patternUnits:`userSpaceOnUse`,children:[k,j]}),t[23]=f,t[24]=M);let N=`url(#${l})`,P;t[25]===N?P=t[26]:(P=(0,c.jsx)(`rect`,{width:`640`,height:`96`,fill:N}),t[25]=N,t[26]=P);let F;t[27]!==p||t[28]!==P?(F=(0,c.jsx)(`pattern`,{id:p,width:`640`,height:`96`,patternUnits:`userSpaceOnUse`,children:P}),t[27]=p,t[28]=P,t[29]=F):F=t[29];let I;t[30]!==S||t[31]!==E||t[32]!==O||t[33]!==M||t[34]!==F||t[35]!==v?(I=(0,c.jsxs)(`defs`,{children:[v,S,E,O,M,F]}),t[30]=S,t[31]=E,t[32]=O,t[33]=M,t[34]=F,t[35]=v,t[36]=I):I=t[36];let L=`url(#${s})`,R;t[37]===L?R=t[38]:(R=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:L}),t[37]=L,t[38]=R);let z=`url(#${p})`,B;t[39]===z?B=t[40]:(B=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:z}),t[39]=z,t[40]=B);let V=`url(#${f})`,H;t[41]===V?H=t[42]:(H=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:V}),t[41]=V,t[42]=H);let U=`url(#${d})`,W=`url(#${u})`,G;t[43]===W?G=t[44]:(G=(0,c.jsx)(`path`,{d:`M-12 88C-12 74 0 63 14 63C18 50 30 41 44 41C58 41 70 49 74 62C79 57 86 54 94 54C110 54 123 66 124 82C132 83 138 88 141 96H-12V88Z`,fill:W}),t[43]=W,t[44]=G);let K;t[45]!==U||t[46]!==G?(K=(0,c.jsx)(`g`,{filter:U,children:G}),t[45]=U,t[46]=G,t[47]=K):K=t[47];let q=`url(#${d})`,J=`url(#${u})`,Y;t[48]===J?Y=t[49]:(Y=(0,c.jsx)(`path`,{d:`M150 96C151 84 161 75 173 75C176 64 186 57 198 57C210 57 220 64 223 75C231 75 238 80 241 87C250 87 257 91 260 96H150Z`,fill:J,fillOpacity:`0.8`}),t[48]=J,t[49]=Y);let X;t[50]!==q||t[51]!==Y?(X=(0,c.jsx)(`g`,{filter:q,children:Y}),t[50]=q,t[51]=Y,t[52]=X):X=t[52];let Z;return t[53]!==I||t[54]!==R||t[55]!==B||t[56]!==H||t[57]!==K||t[58]!==m||t[59]!==X?(Z=(0,c.jsxs)(`svg`,{"data-stage-art":`nightly`,className:`h-full w-full`,fill:`none`,preserveAspectRatio:`xMinYMin slice`,viewBox:m,xmlns:`http://www.w3.org/2000/svg`,children:[I,R,B,H,K,X]}),t[53]=I,t[54]=R,t[55]=B,t[56]=H,t[57]=K,t[58]=m,t[59]=X,t[60]=Z):Z=t[60],Z}function ae(e){return(0,c.jsxs)(`g`,{children:[(0,c.jsx)(`path`,{d:`M${e.x-1.5} ${e.y}H${e.x+1.5}`}),(0,c.jsx)(`path`,{d:`M${e.x} ${e.y-1.5}V${e.y+1.5}`})]},`${e.x}-${e.y}`)}function oe(e){return(0,c.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,fillOpacity:e.opacity},`${e.cx}-${e.cy}`)}function m(e){let t=(0,ee.c)(81),{compact:n}=e,r=n!==void 0&&n,i=(0,te.useId)(),a;t[0]===i?a=t[1]:(a=i.replaceAll(`:`,``),t[0]=i,t[1]=a);let o=a,s=`${o}-stage-bp-paper`,l=`${o}-stage-bp-glow`,u=`${o}-stage-bp-glow-celeste`,d=`${o}-stage-bp-glow-violet`,f=`${o}-stage-bp-grid-minor`,re=`${o}-stage-bp-grid-major`,ie=`${o}-stage-bp-ruler`,p=`${o}-stage-bp-glows`,ae=`${o}-stage-bp-annotations`,oe=r?`64 0 8192 96`:ne,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-bottom)`}}),t[2]=m):m=t[2];let h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-art-mid)`}}),t[3]=h):h=t[3];let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-top)`}}),t[4]=g):g=t[4];let _;t[5]===s?_=t[6]:(_=(0,c.jsxs)(`linearGradient`,{id:s,x1:`60`,y1:`0`,x2:`220`,y2:`96`,gradientUnits:`userSpaceOnUse`,spreadMethod:`reflect`,children:[m,h,g]}),t[5]=s,t[6]=_);let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-highlight)`},stopOpacity:`0.4`}),t[7]=v):v=t[7];let y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`stop`,{offset:`0.52`,style:{stopColor:`var(--stage-art-secondary)`},stopOpacity:`0.16`}),t[8]=y):y=t[8];let b;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-bottom)`},stopOpacity:`0`}),t[9]=b):b=t[9];let x;t[10]===l?x=t[11]:(x=(0,c.jsxs)(`radialGradient`,{id:l,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(216 14) rotate(137) scale(120 84)`,gradientUnits:`userSpaceOnUse`,children:[v,y,b]}),t[10]=l,t[11]=x);let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-celeste-highlight)`},stopOpacity:`0.34`}),t[12]=S):S=t[12];let C;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-art-celeste-secondary)`},stopOpacity:`0.18`}),t[13]=C):C=t[13];let w;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-bottom)`},stopOpacity:`0`}),t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=(0,c.jsxs)(`radialGradient`,{id:u,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(474 44) rotate(166) scale(156 92)`,gradientUnits:`userSpaceOnUse`,children:[S,C,w]}),t[15]=u,t[16]=T);let E;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-violet-highlight)`},stopOpacity:`0.3`}),t[17]=E):E=t[17];let D;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,c.jsx)(`stop`,{offset:`0.52`,style:{stopColor:`var(--stage-art-tertiary)`},stopOpacity:`0.14`}),t[18]=D):D=t[18];let O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-bottom)`},stopOpacity:`0`}),t[19]=O):O=t[19];let k;t[20]===d?k=t[21]:(k=(0,c.jsxs)(`radialGradient`,{id:d,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(704 18) rotate(145) scale(132 88)`,gradientUnits:`userSpaceOnUse`,children:[E,D,O]}),t[20]=d,t[21]=k);let A;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,c.jsx)(`path`,{d:`M8 0H0V8`,style:{stroke:`var(--stage-art-grid-line)`},strokeOpacity:`0.14`,strokeWidth:`0.5`}),t[22]=A):A=t[22];let j;t[23]===f?j=t[24]:(j=(0,c.jsx)(`pattern`,{id:f,width:`8`,height:`8`,patternUnits:`userSpaceOnUse`,children:A}),t[23]=f,t[24]=j);let M;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,c.jsx)(`path`,{d:`M32 0H0V32`,style:{stroke:`var(--stage-art-grid-line)`},strokeOpacity:`0.26`,strokeWidth:`0.6`}),t[25]=M):M=t[25];let N;t[26]===re?N=t[27]:(N=(0,c.jsx)(`pattern`,{id:re,width:`32`,height:`32`,patternUnits:`userSpaceOnUse`,children:M}),t[26]=re,t[27]=N);let P;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,c.jsx)(`path`,{d:`M4 0V2.5M12 0V2.5M20 0V4M28 0V2.5`,style:{stroke:`var(--stage-art-line)`},strokeOpacity:`0.5`,strokeWidth:`0.5`}),t[28]=P):P=t[28];let F;t[29]===ie?F=t[30]:(F=(0,c.jsx)(`pattern`,{id:ie,width:`32`,height:`6`,patternUnits:`userSpaceOnUse`,children:P}),t[29]=ie,t[30]=F);let I=`url(#${l})`,L;t[31]===I?L=t[32]:(L=(0,c.jsx)(`rect`,{width:`768`,height:`96`,fill:I}),t[31]=I,t[32]=L);let R=`url(#${u})`,z;t[33]===R?z=t[34]:(z=(0,c.jsx)(`rect`,{width:`768`,height:`96`,fill:R}),t[33]=R,t[34]=z);let B=`url(#${d})`,V;t[35]===B?V=t[36]:(V=(0,c.jsx)(`rect`,{width:`768`,height:`96`,fill:B}),t[35]=B,t[36]=V);let H;t[37]!==p||t[38]!==L||t[39]!==z||t[40]!==V?(H=(0,c.jsxs)(`pattern`,{id:p,width:`768`,height:`96`,patternUnits:`userSpaceOnUse`,children:[L,z,V]}),t[37]=p,t[38]=L,t[39]=z,t[40]=V,t[41]=H):H=t[41];let U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U={stroke:`var(--stage-art-line)`},t[42]=U):U=t[42];let W,G;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,c.jsxs)(`g`,{style:U,strokeLinecap:`round`,strokeOpacity:`0.6`,strokeWidth:`0.7`,children:[(0,c.jsx)(`path`,{d:`M180 64H264`,strokeDasharray:`5 4`}),(0,c.jsx)(`path`,{d:`M180 61V67M264 61V67`}),(0,c.jsx)(`path`,{d:`M276 10V44`,strokeDasharray:`4 4`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M273 10H279M273 44H279`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M348 30H428`,strokeDasharray:`3.5 5`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M348 27V33M428 27V33`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M512 48V80`,strokeDasharray:`5 3`,strokeOpacity:`0.45`}),(0,c.jsx)(`path`,{d:`M509 48H515M509 80H515`,strokeOpacity:`0.45`}),(0,c.jsx)(`path`,{d:`M590 70H724`,strokeDasharray:`7 4`,strokeOpacity:`0.55`}),(0,c.jsx)(`path`,{d:`M590 67V73M724 67V73`,strokeOpacity:`0.55`})]}),G={stroke:`var(--stage-art-line)`},t[43]=W,t[44]=G):(W=t[43],G=t[44]);let K,q;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,c.jsxs)(`g`,{style:G,strokeLinecap:`round`,strokeOpacity:`0.55`,strokeWidth:`0.6`,children:[(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M34 60L38 64M38 60L34 64`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M228 26H234M231 23V29`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M143 51H149M146 48V54`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M316 16L322 22M322 16L316 22`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M468 70H476M472 66V74`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M558 28L564 34M564 28L558 34`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M742 44H750M746 40V48`})})]}),q={stroke:`var(--stage-art-line)`},t[45]=K,t[46]=q):(K=t[45],q=t[46]);let J;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,c.jsxs)(`g`,{style:q,strokeOpacity:`0.35`,strokeWidth:`0.6`,children:[(0,c.jsx)(`circle`,{cx:`196`,cy:`38`,r:`13`,strokeDasharray:`3.5 4`}),(0,c.jsx)(`path`,{d:`M196 33V43M191 38H201`,strokeOpacity:`0.6`,strokeWidth:`0.4`}),(0,c.jsx)(`circle`,{cx:`414`,cy:`64`,r:`10`,strokeDasharray:`2.5 3.5`}),(0,c.jsx)(`path`,{d:`M414 60V68M410 64H418`,strokeOpacity:`0.6`,strokeWidth:`0.4`}),(0,c.jsx)(`circle`,{cx:`648`,cy:`32`,r:`15`,strokeDasharray:`4 5`}),(0,c.jsx)(`path`,{d:`M648 26V38M642 32H654`,strokeOpacity:`0.6`,strokeWidth:`0.4`})]}),t[47]=J):J=t[47];let Y;t[48]===ae?Y=t[49]:(Y=(0,c.jsxs)(`pattern`,{id:ae,width:`768`,height:`96`,patternUnits:`userSpaceOnUse`,children:[W,K,J]}),t[48]=ae,t[49]=Y);let X;t[50]!==x||t[51]!==T||t[52]!==k||t[53]!==j||t[54]!==N||t[55]!==F||t[56]!==H||t[57]!==Y||t[58]!==_?(X=(0,c.jsxs)(`defs`,{children:[_,x,T,k,j,N,F,H,Y]}),t[50]=x,t[51]=T,t[52]=k,t[53]=j,t[54]=N,t[55]=F,t[56]=H,t[57]=Y,t[58]=_,t[59]=X):X=t[59];let Z=`url(#${s})`,Q;t[60]===Z?Q=t[61]:(Q=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:Z}),t[60]=Z,t[61]=Q);let se=`url(#${p})`,$;t[62]===se?$=t[63]:($=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:se}),t[62]=se,t[63]=$);let ce=`url(#${f})`,le;t[64]===ce?le=t[65]:(le=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:ce}),t[64]=ce,t[65]=le);let ue=`url(#${re})`,de;t[66]===ue?de=t[67]:(de=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:ue}),t[66]=ue,t[67]=de);let fe=`url(#${ie})`,pe;t[68]===fe?pe=t[69]:(pe=(0,c.jsx)(`rect`,{width:`100%`,height:`6`,fill:fe}),t[68]=fe,t[69]=pe);let me=`url(#${ae})`,he;t[70]===me?he=t[71]:(he=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:me}),t[70]=me,t[71]=he);let ge;return t[72]!==oe||t[73]!==X||t[74]!==Q||t[75]!==$||t[76]!==le||t[77]!==de||t[78]!==pe||t[79]!==he?(ge=(0,c.jsxs)(`svg`,{"data-stage-art":`blueprint`,className:`h-full w-full`,fill:`none`,preserveAspectRatio:`xMinYMin slice`,viewBox:oe,xmlns:`http://www.w3.org/2000/svg`,children:[X,Q,$,le,de,pe,he]}),t[72]=oe,t[73]=X,t[74]=Q,t[75]=$,t[76]=le,t[77]=de,t[78]=pe,t[79]=he,t[80]=ge):ge=t[80],ge}export{d as i,u as n,l as r,f as t};
2
- //# sourceMappingURL=SidebarStageBackdrop-ntSLLOvm.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{ns as i}from"./utils-C5GGWTfe.js";import{P as a,z as o}from"./runtime-BK2Lh1vB.js";import{i as s}from"./server-DwkxciXh.js";var ee=n(),te=e(t(),1),c=e(r(),1),ne=`0 0 8192 96`;function l(e,t=!0){if(!t)return null;let n=e.trim().toLowerCase();return n===`nightly`?`nightly`:n===`dev`?`dev`:null}function u(e){let t=e.trim().toLowerCase();return t===`dev`?`Dev`:t===`nightly`?`Nightly`:null}function d(){let e=(0,ee.c)(2),t=i(s)?.environment.serverVersion??null,n;return e[0]===t?n=e[1]:(n=o({primaryServerVersion:t,fallbackStageLabel:a}),e[0]=t,e[1]=n),n}function f(e){let t=(0,ee.c)(2),{variant:n}=e,r;return t[0]===n?r=t[1]:(r=n===`nightly`?(0,c.jsx)(p,{}):(0,c.jsx)(m,{}),t[0]=n,t[1]=r),r}var re=[{cx:14,cy:10,r:.6,opacity:.85},{cx:38,cy:22,r:.4,opacity:.55},{cx:58,cy:8,r:.5,opacity:.7},{cx:84,cy:16,r:.4,opacity:.5},{cx:104,cy:7,r:.6,opacity:.8},{cx:126,cy:20,r:.4,opacity:.55},{cx:148,cy:11,r:.5,opacity:.7},{cx:170,cy:24,r:.4,opacity:.5},{cx:192,cy:9,r:.6,opacity:.8},{cx:214,cy:18,r:.4,opacity:.55},{cx:236,cy:8,r:.5,opacity:.7},{cx:258,cy:20,r:.45,opacity:.6},{cx:278,cy:11,r:.55,opacity:.75},{cx:26,cy:34,r:.4,opacity:.45},{cx:118,cy:34,r:.4,opacity:.45},{cx:202,cy:32,r:.4,opacity:.5},{cx:268,cy:34,r:.4,opacity:.45}],ie=[{x:70,y:28},{x:160,y:36},{x:246,y:26}];function p(e){let t=(0,ee.c)(61),{compact:n}=e,r=n!==void 0&&n,i=(0,te.useId)(),a;t[0]===i?a=t[1]:(a=i.replaceAll(`:`,``),t[0]=i,t[1]=a);let o=a,s=`${o}-stage-night-sky`,l=`${o}-stage-night-glow`,u=`${o}-stage-night-cloud`,d=`${o}-stage-night-soft`,f=`${o}-stage-night-stars`,p=`${o}-stage-night-glows`,m=r?`96 0 8192 96`:ne,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-night-bottom)`}}),t[2]=h):h=t[2];let g;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-night-mid)`}}),t[3]=g):g=t[3];let _;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-night-top)`}}),t[4]=_):_=t[4];let v;t[5]===s?v=t[6]:(v=(0,c.jsxs)(`linearGradient`,{id:s,x1:`24`,y1:`0`,x2:`264`,y2:`96`,gradientUnits:`userSpaceOnUse`,spreadMethod:`reflect`,children:[h,g,_]}),t[5]=s,t[6]=v);let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-night-glow-highlight)`},stopOpacity:`0.4`}),t[7]=y):y=t[7];let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-night-glow-secondary)`},stopOpacity:`0.16`}),t[8]=b):b=t[8];let x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-night-bottom)`},stopOpacity:`0`}),t[9]=x):x=t[9];let S;t[10]===l?S=t[11]:(S=(0,c.jsxs)(`radialGradient`,{id:l,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(216 18) rotate(137) scale(120 84)`,gradientUnits:`userSpaceOnUse`,children:[y,b,x]}),t[10]=l,t[11]=S);let C;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-night-highlight)`},stopOpacity:`0.5`}),t[12]=C):C=t[12];let w;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,c.jsx)(`stop`,{offset:`0.52`,style:{stopColor:`var(--stage-night-secondary)`},stopOpacity:`0.62`}),t[13]=w):w=t[13];let T;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-night-tertiary)`},stopOpacity:`0.5`}),t[14]=T):T=t[14];let E;t[15]===u?E=t[16]:(E=(0,c.jsxs)(`linearGradient`,{id:u,x1:`0`,y1:`60`,x2:`288`,y2:`96`,gradientUnits:`userSpaceOnUse`,children:[C,w,T]}),t[15]=u,t[16]=E);let D;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,c.jsx)(`feGaussianBlur`,{stdDeviation:`4`}),t[17]=D):D=t[17];let O;t[18]===d?O=t[19]:(O=(0,c.jsx)(`filter`,{id:d,x:`-24`,y:`-24`,width:`336`,height:`144`,filterUnits:`userSpaceOnUse`,children:D}),t[18]=d,t[19]=O);let k,A;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,c.jsx)(`g`,{style:{fill:`var(--stage-night-line)`},children:re.map(oe)}),A={stroke:`var(--stage-night-sparkle)`},t[20]=k,t[21]=A):(k=t[20],A=t[21]);let j;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,c.jsx)(`g`,{style:A,strokeLinecap:`round`,strokeOpacity:`0.7`,strokeWidth:`0.6`,children:ie.map(ae)}),t[22]=j):j=t[22];let M;t[23]===f?M=t[24]:(M=(0,c.jsxs)(`pattern`,{id:f,width:`288`,height:`96`,patternUnits:`userSpaceOnUse`,children:[k,j]}),t[23]=f,t[24]=M);let N=`url(#${l})`,P;t[25]===N?P=t[26]:(P=(0,c.jsx)(`rect`,{width:`640`,height:`96`,fill:N}),t[25]=N,t[26]=P);let F;t[27]!==p||t[28]!==P?(F=(0,c.jsx)(`pattern`,{id:p,width:`640`,height:`96`,patternUnits:`userSpaceOnUse`,children:P}),t[27]=p,t[28]=P,t[29]=F):F=t[29];let I;t[30]!==S||t[31]!==E||t[32]!==O||t[33]!==M||t[34]!==F||t[35]!==v?(I=(0,c.jsxs)(`defs`,{children:[v,S,E,O,M,F]}),t[30]=S,t[31]=E,t[32]=O,t[33]=M,t[34]=F,t[35]=v,t[36]=I):I=t[36];let L=`url(#${s})`,R;t[37]===L?R=t[38]:(R=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:L}),t[37]=L,t[38]=R);let z=`url(#${p})`,B;t[39]===z?B=t[40]:(B=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:z}),t[39]=z,t[40]=B);let V=`url(#${f})`,H;t[41]===V?H=t[42]:(H=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:V}),t[41]=V,t[42]=H);let U=`url(#${d})`,W=`url(#${u})`,G;t[43]===W?G=t[44]:(G=(0,c.jsx)(`path`,{d:`M-12 88C-12 74 0 63 14 63C18 50 30 41 44 41C58 41 70 49 74 62C79 57 86 54 94 54C110 54 123 66 124 82C132 83 138 88 141 96H-12V88Z`,fill:W}),t[43]=W,t[44]=G);let K;t[45]!==U||t[46]!==G?(K=(0,c.jsx)(`g`,{filter:U,children:G}),t[45]=U,t[46]=G,t[47]=K):K=t[47];let q=`url(#${d})`,J=`url(#${u})`,Y;t[48]===J?Y=t[49]:(Y=(0,c.jsx)(`path`,{d:`M150 96C151 84 161 75 173 75C176 64 186 57 198 57C210 57 220 64 223 75C231 75 238 80 241 87C250 87 257 91 260 96H150Z`,fill:J,fillOpacity:`0.8`}),t[48]=J,t[49]=Y);let X;t[50]!==q||t[51]!==Y?(X=(0,c.jsx)(`g`,{filter:q,children:Y}),t[50]=q,t[51]=Y,t[52]=X):X=t[52];let Z;return t[53]!==I||t[54]!==R||t[55]!==B||t[56]!==H||t[57]!==K||t[58]!==m||t[59]!==X?(Z=(0,c.jsxs)(`svg`,{"data-stage-art":`nightly`,className:`h-full w-full`,fill:`none`,preserveAspectRatio:`xMinYMin slice`,viewBox:m,xmlns:`http://www.w3.org/2000/svg`,children:[I,R,B,H,K,X]}),t[53]=I,t[54]=R,t[55]=B,t[56]=H,t[57]=K,t[58]=m,t[59]=X,t[60]=Z):Z=t[60],Z}function ae(e){return(0,c.jsxs)(`g`,{children:[(0,c.jsx)(`path`,{d:`M${e.x-1.5} ${e.y}H${e.x+1.5}`}),(0,c.jsx)(`path`,{d:`M${e.x} ${e.y-1.5}V${e.y+1.5}`})]},`${e.x}-${e.y}`)}function oe(e){return(0,c.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,fillOpacity:e.opacity},`${e.cx}-${e.cy}`)}function m(e){let t=(0,ee.c)(81),{compact:n}=e,r=n!==void 0&&n,i=(0,te.useId)(),a;t[0]===i?a=t[1]:(a=i.replaceAll(`:`,``),t[0]=i,t[1]=a);let o=a,s=`${o}-stage-bp-paper`,l=`${o}-stage-bp-glow`,u=`${o}-stage-bp-glow-celeste`,d=`${o}-stage-bp-glow-violet`,f=`${o}-stage-bp-grid-minor`,re=`${o}-stage-bp-grid-major`,ie=`${o}-stage-bp-ruler`,p=`${o}-stage-bp-glows`,ae=`${o}-stage-bp-annotations`,oe=r?`64 0 8192 96`:ne,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-bottom)`}}),t[2]=m):m=t[2];let h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-art-mid)`}}),t[3]=h):h=t[3];let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-top)`}}),t[4]=g):g=t[4];let _;t[5]===s?_=t[6]:(_=(0,c.jsxs)(`linearGradient`,{id:s,x1:`60`,y1:`0`,x2:`220`,y2:`96`,gradientUnits:`userSpaceOnUse`,spreadMethod:`reflect`,children:[m,h,g]}),t[5]=s,t[6]=_);let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-highlight)`},stopOpacity:`0.4`}),t[7]=v):v=t[7];let y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`stop`,{offset:`0.52`,style:{stopColor:`var(--stage-art-secondary)`},stopOpacity:`0.16`}),t[8]=y):y=t[8];let b;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-bottom)`},stopOpacity:`0`}),t[9]=b):b=t[9];let x;t[10]===l?x=t[11]:(x=(0,c.jsxs)(`radialGradient`,{id:l,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(216 14) rotate(137) scale(120 84)`,gradientUnits:`userSpaceOnUse`,children:[v,y,b]}),t[10]=l,t[11]=x);let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-celeste-highlight)`},stopOpacity:`0.34`}),t[12]=S):S=t[12];let C;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,c.jsx)(`stop`,{offset:`0.5`,style:{stopColor:`var(--stage-art-celeste-secondary)`},stopOpacity:`0.18`}),t[13]=C):C=t[13];let w;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-bottom)`},stopOpacity:`0`}),t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=(0,c.jsxs)(`radialGradient`,{id:u,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(474 44) rotate(166) scale(156 92)`,gradientUnits:`userSpaceOnUse`,children:[S,C,w]}),t[15]=u,t[16]=T);let E;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,c.jsx)(`stop`,{style:{stopColor:`var(--stage-art-violet-highlight)`},stopOpacity:`0.3`}),t[17]=E):E=t[17];let D;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,c.jsx)(`stop`,{offset:`0.52`,style:{stopColor:`var(--stage-art-tertiary)`},stopOpacity:`0.14`}),t[18]=D):D=t[18];let O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--stage-art-bottom)`},stopOpacity:`0`}),t[19]=O):O=t[19];let k;t[20]===d?k=t[21]:(k=(0,c.jsxs)(`radialGradient`,{id:d,cx:`0`,cy:`0`,r:`1`,gradientTransform:`translate(704 18) rotate(145) scale(132 88)`,gradientUnits:`userSpaceOnUse`,children:[E,D,O]}),t[20]=d,t[21]=k);let A;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,c.jsx)(`path`,{d:`M8 0H0V8`,style:{stroke:`var(--stage-art-grid-line)`},strokeOpacity:`0.14`,strokeWidth:`0.5`}),t[22]=A):A=t[22];let j;t[23]===f?j=t[24]:(j=(0,c.jsx)(`pattern`,{id:f,width:`8`,height:`8`,patternUnits:`userSpaceOnUse`,children:A}),t[23]=f,t[24]=j);let M;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,c.jsx)(`path`,{d:`M32 0H0V32`,style:{stroke:`var(--stage-art-grid-line)`},strokeOpacity:`0.26`,strokeWidth:`0.6`}),t[25]=M):M=t[25];let N;t[26]===re?N=t[27]:(N=(0,c.jsx)(`pattern`,{id:re,width:`32`,height:`32`,patternUnits:`userSpaceOnUse`,children:M}),t[26]=re,t[27]=N);let P;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,c.jsx)(`path`,{d:`M4 0V2.5M12 0V2.5M20 0V4M28 0V2.5`,style:{stroke:`var(--stage-art-line)`},strokeOpacity:`0.5`,strokeWidth:`0.5`}),t[28]=P):P=t[28];let F;t[29]===ie?F=t[30]:(F=(0,c.jsx)(`pattern`,{id:ie,width:`32`,height:`6`,patternUnits:`userSpaceOnUse`,children:P}),t[29]=ie,t[30]=F);let I=`url(#${l})`,L;t[31]===I?L=t[32]:(L=(0,c.jsx)(`rect`,{width:`768`,height:`96`,fill:I}),t[31]=I,t[32]=L);let R=`url(#${u})`,z;t[33]===R?z=t[34]:(z=(0,c.jsx)(`rect`,{width:`768`,height:`96`,fill:R}),t[33]=R,t[34]=z);let B=`url(#${d})`,V;t[35]===B?V=t[36]:(V=(0,c.jsx)(`rect`,{width:`768`,height:`96`,fill:B}),t[35]=B,t[36]=V);let H;t[37]!==p||t[38]!==L||t[39]!==z||t[40]!==V?(H=(0,c.jsxs)(`pattern`,{id:p,width:`768`,height:`96`,patternUnits:`userSpaceOnUse`,children:[L,z,V]}),t[37]=p,t[38]=L,t[39]=z,t[40]=V,t[41]=H):H=t[41];let U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U={stroke:`var(--stage-art-line)`},t[42]=U):U=t[42];let W,G;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,c.jsxs)(`g`,{style:U,strokeLinecap:`round`,strokeOpacity:`0.6`,strokeWidth:`0.7`,children:[(0,c.jsx)(`path`,{d:`M180 64H264`,strokeDasharray:`5 4`}),(0,c.jsx)(`path`,{d:`M180 61V67M264 61V67`}),(0,c.jsx)(`path`,{d:`M276 10V44`,strokeDasharray:`4 4`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M273 10H279M273 44H279`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M348 30H428`,strokeDasharray:`3.5 5`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M348 27V33M428 27V33`,strokeOpacity:`0.5`}),(0,c.jsx)(`path`,{d:`M512 48V80`,strokeDasharray:`5 3`,strokeOpacity:`0.45`}),(0,c.jsx)(`path`,{d:`M509 48H515M509 80H515`,strokeOpacity:`0.45`}),(0,c.jsx)(`path`,{d:`M590 70H724`,strokeDasharray:`7 4`,strokeOpacity:`0.55`}),(0,c.jsx)(`path`,{d:`M590 67V73M724 67V73`,strokeOpacity:`0.55`})]}),G={stroke:`var(--stage-art-line)`},t[43]=W,t[44]=G):(W=t[43],G=t[44]);let K,q;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,c.jsxs)(`g`,{style:G,strokeLinecap:`round`,strokeOpacity:`0.55`,strokeWidth:`0.6`,children:[(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M34 60L38 64M38 60L34 64`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M228 26H234M231 23V29`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M143 51H149M146 48V54`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M316 16L322 22M322 16L316 22`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M468 70H476M472 66V74`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M558 28L564 34M564 28L558 34`})}),(0,c.jsx)(`g`,{children:(0,c.jsx)(`path`,{d:`M742 44H750M746 40V48`})})]}),q={stroke:`var(--stage-art-line)`},t[45]=K,t[46]=q):(K=t[45],q=t[46]);let J;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,c.jsxs)(`g`,{style:q,strokeOpacity:`0.35`,strokeWidth:`0.6`,children:[(0,c.jsx)(`circle`,{cx:`196`,cy:`38`,r:`13`,strokeDasharray:`3.5 4`}),(0,c.jsx)(`path`,{d:`M196 33V43M191 38H201`,strokeOpacity:`0.6`,strokeWidth:`0.4`}),(0,c.jsx)(`circle`,{cx:`414`,cy:`64`,r:`10`,strokeDasharray:`2.5 3.5`}),(0,c.jsx)(`path`,{d:`M414 60V68M410 64H418`,strokeOpacity:`0.6`,strokeWidth:`0.4`}),(0,c.jsx)(`circle`,{cx:`648`,cy:`32`,r:`15`,strokeDasharray:`4 5`}),(0,c.jsx)(`path`,{d:`M648 26V38M642 32H654`,strokeOpacity:`0.6`,strokeWidth:`0.4`})]}),t[47]=J):J=t[47];let Y;t[48]===ae?Y=t[49]:(Y=(0,c.jsxs)(`pattern`,{id:ae,width:`768`,height:`96`,patternUnits:`userSpaceOnUse`,children:[W,K,J]}),t[48]=ae,t[49]=Y);let X;t[50]!==x||t[51]!==T||t[52]!==k||t[53]!==j||t[54]!==N||t[55]!==F||t[56]!==H||t[57]!==Y||t[58]!==_?(X=(0,c.jsxs)(`defs`,{children:[_,x,T,k,j,N,F,H,Y]}),t[50]=x,t[51]=T,t[52]=k,t[53]=j,t[54]=N,t[55]=F,t[56]=H,t[57]=Y,t[58]=_,t[59]=X):X=t[59];let Z=`url(#${s})`,Q;t[60]===Z?Q=t[61]:(Q=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:Z}),t[60]=Z,t[61]=Q);let se=`url(#${p})`,$;t[62]===se?$=t[63]:($=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:se}),t[62]=se,t[63]=$);let ce=`url(#${f})`,le;t[64]===ce?le=t[65]:(le=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:ce}),t[64]=ce,t[65]=le);let ue=`url(#${re})`,de;t[66]===ue?de=t[67]:(de=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:ue}),t[66]=ue,t[67]=de);let fe=`url(#${ie})`,pe;t[68]===fe?pe=t[69]:(pe=(0,c.jsx)(`rect`,{width:`100%`,height:`6`,fill:fe}),t[68]=fe,t[69]=pe);let me=`url(#${ae})`,he;t[70]===me?he=t[71]:(he=(0,c.jsx)(`rect`,{width:`100%`,height:`96`,fill:me}),t[70]=me,t[71]=he);let ge;return t[72]!==oe||t[73]!==X||t[74]!==Q||t[75]!==$||t[76]!==le||t[77]!==de||t[78]!==pe||t[79]!==he?(ge=(0,c.jsxs)(`svg`,{"data-stage-art":`blueprint`,className:`h-full w-full`,fill:`none`,preserveAspectRatio:`xMinYMin slice`,viewBox:oe,xmlns:`http://www.w3.org/2000/svg`,children:[X,Q,$,le,de,pe,he]}),t[72]=oe,t[73]=X,t[74]=Q,t[75]=$,t[76]=le,t[77]=de,t[78]=pe,t[79]=he,t[80]=ge):ge=t[80],ge}export{d as i,u as n,l as r,f as t};
2
+ //# sourceMappingURL=SidebarStageBackdrop-DSuAw8Ob.js.map