ryco-cli 0.1.9 → 0.1.11

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 (283) hide show
  1. package/dist/{AcpNativeLogging-CwXNgeCl.mjs → AcpNativeLogging-Ba9Nn9Re.mjs} +1 -1
  2. package/dist/{AcpNativeLogging-BBLrglnY.cjs → AcpNativeLogging-Be1KGJfF.cjs} +1 -1
  3. package/dist/{AzureDevOpsSourceControlProvider-lRTMr9X9.mjs → AzureDevOpsSourceControlProvider-CGlK6M0b.mjs} +2 -2
  4. package/dist/{AzureDevOpsSourceControlProvider-BMQxxk2n.cjs → AzureDevOpsSourceControlProvider-CVj-F-pW.cjs} +2 -2
  5. package/dist/{BitbucketSourceControlProvider-F1J_75c0.mjs → BitbucketSourceControlProvider-BV6iRDi7.mjs} +2 -2
  6. package/dist/{BitbucketSourceControlProvider-BXDk4GzL.cjs → BitbucketSourceControlProvider-CEZEd4PX.cjs} +2 -2
  7. package/dist/{ClaudeDriver-B_pvBuh5.cjs → ClaudeDriver-lBU7EyUX.cjs} +2 -2
  8. package/dist/{ClaudeDriver-BpYiEftb.mjs → ClaudeDriver-rooMNrJz.mjs} +2 -2
  9. package/dist/{CodexDriver-Bcju44ZM.cjs → CodexDriver-CZCIJSLV.cjs} +4 -4
  10. package/dist/{CodexDriver-6IRQy37T.mjs → CodexDriver-DBz2rPXb.mjs} +4 -4
  11. package/dist/{CodexTextGeneration-CCvcMT6Y.mjs → CodexTextGeneration-BeG7ymPC.mjs} +1 -1
  12. package/dist/{CodexTextGeneration-yaU53Kmz.cjs → CodexTextGeneration-BvIcyD1P.cjs} +1 -1
  13. package/dist/{CopilotDriver-CTxl0KmP.cjs → CopilotDriver-CX5zhEdZ.cjs} +3 -3
  14. package/dist/{CopilotDriver-BCe5V1Ll.mjs → CopilotDriver-D36vbGbn.mjs} +3 -3
  15. package/dist/{CursorDriver-D1Agqrbj.cjs → CursorDriver-CPBVeesr.cjs} +3 -3
  16. package/dist/{CursorDriver-C4V25d1y.mjs → CursorDriver-DWuuOSkJ.mjs} +3 -3
  17. package/dist/{ForgejoSourceControlProvider-C-NI9vaC.mjs → ForgejoSourceControlProvider-CeN7Snfr.mjs} +2 -2
  18. package/dist/{ForgejoSourceControlProvider-CV1lljGK.cjs → ForgejoSourceControlProvider-CzmmcAZO.cjs} +2 -2
  19. package/dist/{GitHubSourceControlProvider-B_7J1jOl.cjs → GitHubSourceControlProvider-DfFR9O2o.cjs} +2 -2
  20. package/dist/{GitHubSourceControlProvider-BeCMPF92.mjs → GitHubSourceControlProvider-Dmz1LJct.mjs} +2 -2
  21. package/dist/{GitLabSourceControlProvider-0BeWchVS.mjs → GitLabSourceControlProvider-C21lwphV.mjs} +2 -2
  22. package/dist/{GitLabSourceControlProvider-U0xcv577.cjs → GitLabSourceControlProvider-DGoelNmL.cjs} +2 -2
  23. package/dist/{GrokDriver-mkLP3IZl.cjs → GrokDriver-CIXj_4ry.cjs} +3 -3
  24. package/dist/{GrokDriver-DFw7DOdK.mjs → GrokDriver-qKX1a63G.mjs} +3 -3
  25. package/dist/{OpenCodeDriver-ChWHrFi7.mjs → OpenCodeDriver-CbdswhqU.mjs} +2 -2
  26. package/dist/{OpenCodeDriver-C_KFYA-P.cjs → OpenCodeDriver-DDEuwtXl.cjs} +2 -2
  27. package/dist/{SourceControlProviderDiscoveryCatalog-BTJDoEx1.mjs → SourceControlProviderDiscoveryCatalog-4_4yahsa.mjs} +1 -1
  28. package/dist/{SourceControlProviderDiscoveryCatalog-Bwu_JBJN.cjs → SourceControlProviderDiscoveryCatalog-DJWDCoup.cjs} +1 -1
  29. package/dist/bin.cjs +46 -20
  30. package/dist/bin.mjs +46 -20
  31. package/dist/client/assets/AccountSettings-BUoiS8x1.js +1 -0
  32. package/dist/client/assets/AiFocusSettings-Cz1Uqn7a.js +1 -0
  33. package/dist/client/assets/AnimatedHeight-BIsV_Z3J.js +1 -0
  34. package/dist/client/assets/AppearanceSettings-CYbSApl4.js +1 -0
  35. package/dist/client/assets/{BranchToolbar.logic-CvclFpSW.js → BranchToolbar.logic-LIanCEVr.js} +1 -1
  36. package/dist/client/assets/ChatRightPanel-CKEjpQ_x.js +27 -0
  37. package/dist/client/assets/ChatThreadRouteView-D50onHY2.js +1 -0
  38. package/dist/client/assets/CommandPaletteDialog-DdRKgZ8m.js +1 -0
  39. package/dist/client/assets/{CompositeItem-e0rusLTG.js → CompositeItem-F3NGn6aG.js} +1 -1
  40. package/dist/client/assets/CompositeRoot-CmJGfRtc.js +1 -0
  41. package/dist/client/assets/ConnectionsSettings--CbTzkTn.js +7 -0
  42. package/dist/client/assets/DiagnosticsSettings-C74u3ce5.js +2 -0
  43. package/dist/client/assets/{DialogHandle-DZVZpjWD.js → DialogHandle-C4uSr9wX.js} +1 -1
  44. package/dist/client/assets/DialogPopup-Dck8r8Hn.js +1 -0
  45. package/dist/client/assets/DialogRoot-BpIvUdm7.js +1 -0
  46. package/dist/client/assets/{DialogTitle-CtpwXIBL.js → DialogTitle-CCedPAjV.js} +1 -1
  47. package/dist/client/assets/{DialogTrigger-CdeFWE8i.js → DialogTrigger-CYJ7_YcV.js} +1 -1
  48. package/dist/client/assets/DialogViewport-D-CrTM-P.js +1 -0
  49. package/dist/client/assets/DraftChatThreadRouteView-RTmLGTl0.js +1 -0
  50. package/dist/client/assets/{ExternalIdentityWeb.logic-DsqwSlwL.js → ExternalIdentityWeb.logic-D64j70NH.js} +1 -1
  51. package/dist/client/assets/{GlassSurface-EZnNd1mF.js → GlassSurface-C3IIWMu9.js} +1 -1
  52. package/dist/client/assets/HostedConnectionControls-CKiC01ju.js +1 -0
  53. package/dist/client/assets/HostedHubRoot-BS3rAYTy.js +1 -0
  54. package/dist/client/assets/HostedNativeAuthorizationRoute-BFTDyh4N.js +1 -0
  55. package/dist/client/assets/HostedRelayTrustNotice-eEOPKsBg.js +1 -0
  56. package/dist/client/assets/Icons-CT3nd2MA.js +1 -0
  57. package/dist/client/assets/IntegrationsSettingsPanel-Cg4eRHm_.js +1 -0
  58. package/dist/client/assets/KeybindingsSettings-CYj67N2D.js +7 -0
  59. package/dist/client/assets/McpServersSettings-Bc61hRUY.js +6 -0
  60. package/dist/client/assets/MobileSheet-CkeG6_SP.js +1 -0
  61. package/dist/client/assets/NewWorktreeDialog-CTlFjKa4.js +4 -0
  62. package/dist/client/assets/NoActiveThreadState-Dw9aoU2J.js +1 -0
  63. package/dist/client/assets/NodeSecuritySettings-DMkkTgfg.js +1 -0
  64. package/dist/client/assets/OpinionatedPluginsSettings-CeoSmZ90.js +1 -0
  65. package/dist/client/assets/PhoneGetAppInterstitial-7ZxxVbUB.js +1 -0
  66. package/dist/client/assets/PhoneGetAppInterstitialBackdrop-B8vfJdZd.js +1 -0
  67. package/dist/client/assets/PhoneHome-DRRoCd_y.js +1 -0
  68. package/dist/client/assets/PhoneSettingsSurface-LNEaPHQC.js +1 -0
  69. package/dist/client/assets/ProjectFavicon-BIMdZxK6.js +1 -0
  70. package/dist/client/assets/ProviderModelPicker-jd6GjQkO.js +1 -0
  71. package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BkoRegCn.js +1 -0
  72. package/dist/client/assets/ProvidersSettingsPanel-v2SvoEGx.js +1 -0
  73. package/dist/client/assets/RedactedSensitiveText-CxtaUiKH.js +1 -0
  74. package/dist/client/assets/RootAppShell-CFjrYjtn.js +6 -0
  75. package/dist/client/assets/RycoLetterMark-Bk0kvGJ_.js +1 -0
  76. package/dist/client/assets/SettingsDialog-CvGTsSV0.js +1 -0
  77. package/dist/client/assets/SettingsPanels-BmhZ8u4B.js +3 -0
  78. package/dist/client/assets/SettingsPanels.editor-B2x4U4rW.js +1 -0
  79. package/dist/client/assets/SourceControlSettings-DvPydmxX.js +1 -0
  80. package/dist/client/assets/StatisticsPage-Duk2cHVH.js +1 -0
  81. package/dist/client/assets/StatisticsPanel-D-uNJcdj.js +1 -0
  82. package/dist/client/assets/StatisticsSettingsLink-Cx43bOeo.js +1 -0
  83. package/dist/client/assets/ThreadStatusIndicators-D0xoATCw.js +0 -0
  84. package/dist/client/assets/{ThreadTerminalDrawer-Dju6roQA.js → ThreadTerminalDrawer-DjX8p7IH.js} +3 -3
  85. package/dist/client/assets/{ThreadWorkspacePanel-hfIocZRN.js → ThreadWorkspacePanel-DI0GXPBf.js} +18 -18
  86. package/dist/client/assets/{ToolbarRootContext-CgV898DN.js → ToolbarRootContext-BgqqXVly.js} +1 -1
  87. package/dist/client/assets/{WorkItemsTab-DYgsIthY.js → WorkItemsTab-ow45makA.js} +8 -8
  88. package/dist/client/assets/alert-LqMhbdE9.js +1 -0
  89. package/dist/client/assets/alert-dialog-DxoA6ky8.js +1 -0
  90. package/dist/client/assets/{authorization-CFcCWeGd.js → authorization-mIJKV2yp.js} +1 -1
  91. package/dist/client/assets/badge-CXw6fWrB.js +1 -0
  92. package/dist/client/assets/{branding-CG1VEma6.js → branding-C8SLy6Af.js} +1 -1
  93. package/dist/client/assets/button-BAbJxRzt.js +1 -0
  94. package/dist/client/assets/{capabilities-CK9Wa-Au.js → capabilities-BQuqC7jg.js} +1 -1
  95. package/dist/client/assets/{chatThreadActions-Ooky34bb.js → chatThreadActions-DQ8aOQ1g.js} +1 -1
  96. package/dist/client/assets/collapsible-dxy6kc2k.js +1 -0
  97. package/dist/client/assets/command-CGNKG_Oe.js +1 -0
  98. package/dist/client/assets/composerDraftStore-CdJJZe42.js +11 -0
  99. package/dist/client/assets/copy-UQjKGt7t.js +1 -0
  100. package/dist/client/assets/data-list-CYKBxN62.js +1 -0
  101. package/dist/client/assets/{desktopUpdateAtoms-C9VOpM6h.js → desktopUpdateAtoms-C82GmR67.js} +1 -1
  102. package/dist/client/assets/{desktopWorkspace-BOWgdyPs.js → desktopWorkspace-G5Z_JRbm.js} +1 -1
  103. package/dist/client/assets/{device-CLd1blIe.js → device-B56cBWWt.js} +12 -12
  104. package/dist/client/assets/dialog-DQsYchqu.js +1 -0
  105. package/dist/client/assets/draft-input-CkzOk8BY.js +1 -0
  106. package/dist/client/assets/{editorPreferences-C79SevBP.js → editorPreferences-CTDEj79K.js} +1 -1
  107. package/dist/client/assets/empty-DwzqNgCP.js +1 -0
  108. package/dist/client/assets/{env-CBdFekj3.js → env-B4arEvJg.js} +1 -1
  109. package/dist/client/assets/{getPseudoElementBounds-CWoLtsYr.js → getPseudoElementBounds-X62ElHN8.js} +1 -1
  110. package/dist/client/assets/group-D9ER9giz.js +1 -0
  111. package/dist/client/assets/{index-Bbc24tew.js → index-Bbz4fkK_.js} +2 -2
  112. package/dist/client/assets/input-CHEwW3oH.js +1 -0
  113. package/dist/client/assets/kbd-DCGQZk18.js +1 -0
  114. package/dist/client/assets/{keybindings-n2U57Td0.js → keybindings-CWJ7E9ZI.js} +1 -1
  115. package/dist/client/assets/label-CVFHsLFO.js +1 -0
  116. package/dist/client/assets/{lib-DoLGGVrW.js → lib-qiiNMGgU.js} +1 -1
  117. package/dist/client/assets/{logging-FtLrPmK_.js → logging-M8H3z7rQ.js} +1 -1
  118. package/dist/client/assets/main-DaYHZt-J.css +2 -0
  119. package/dist/client/assets/{main-C2i8ecSj.js → main-Dwu2cT6v.js} +3 -3
  120. package/dist/client/assets/menu-Dvxh8sD5.js +1 -0
  121. package/dist/client/assets/popover-CuH9Yrj3.js +1 -0
  122. package/dist/client/assets/{primary-0ymoUGkq.js → primary-OskAInOO.js} +1 -1
  123. package/dist/client/assets/{projectPaths-CHDYD_Gc.js → projectPaths-lDhAE9o_.js} +1 -1
  124. package/dist/client/assets/{providerDriverMeta-lsEf84Mz.js → providerDriverMeta-I0TSo-QI.js} +1 -1
  125. package/dist/client/assets/providerIconUtils-DnSYUN9l.js +1 -0
  126. package/dist/client/assets/providerInstances-BJcfB_9E.js +1 -0
  127. package/dist/client/assets/providerModels-BJcfB_9E.js +1 -0
  128. package/dist/client/assets/qr-code-Bddq6K7S.js +1 -0
  129. package/dist/client/assets/radio-group-CBZFr4C8.js +2 -0
  130. package/dist/client/assets/resolveAriaLabelledBy-CD_ugzhJ.js +1 -0
  131. package/dist/client/assets/{rightPanelRouteSearch-DkhE1otz.js → rightPanelRouteSearch-DB5gQGHK.js} +1 -1
  132. package/dist/client/assets/runtime-DKwoXpJv.js +1 -0
  133. package/dist/client/assets/scroll-area-Drsa8bNB.js +1 -0
  134. package/dist/client/assets/scrollEdges-B-cqxY4l.js +1 -0
  135. package/dist/client/assets/select-BYbVr-yg.js +1 -0
  136. package/dist/client/assets/separator-CdS5bi4Z.js +1 -0
  137. package/dist/client/assets/{session-logic-B0shVXpN.js → session-logic-DElAta-Z.js} +1 -1
  138. package/dist/client/assets/settingsDialogStore-ygYoScKe.js +1 -0
  139. package/dist/client/assets/settingsLayout-D8glO7f1.js +1 -0
  140. package/dist/client/assets/settingsSections.logic-F8RXVmAq.js +1 -0
  141. package/dist/client/assets/sheet-BO78gIKZ.js +1 -0
  142. package/dist/client/assets/sidebar-Dm6l2GA6.js +1 -0
  143. package/dist/client/assets/sidebarProjectFolders-Cs13ZUN8.js +4 -0
  144. package/dist/client/assets/{sidebarStatusText-DjLAEM1H.js → sidebarStatusText-D0HT0fek.js} +1 -1
  145. package/dist/client/assets/skeleton-CvQSeJbw.js +1 -0
  146. package/dist/client/assets/spinner-ClF0jOcX.js +1 -0
  147. package/dist/client/assets/src-Vf4LVnMX.js +14 -0
  148. package/dist/client/assets/storeSelectors-Cq_JKyiF.js +1 -0
  149. package/dist/client/assets/switch-BTGo9Yip.js +1 -0
  150. package/dist/client/assets/{terminal-links-DERnXf-G.js → terminal-links-CZ3c9AbA.js} +1 -1
  151. package/dist/client/assets/textarea-RFPODxWW.js +1 -0
  152. package/dist/client/assets/{threadPriorityRefreshRuntime-D2XRdn_X.js → threadPriorityRefreshRuntime-DJF5drVD.js} +1 -1
  153. package/dist/client/assets/toast-CcSCAm4B.js +1 -0
  154. package/dist/client/assets/toggle-I6h33Cu5.js +1 -0
  155. package/dist/client/assets/toggle-group-mLIkiJtU.js +1 -0
  156. package/dist/client/assets/tooltip-C8sAONBj.js +1 -0
  157. package/dist/client/assets/types-Cq_JKyiF.js +1 -0
  158. package/dist/client/assets/{uiStateStore-hgy2ilHo.js → uiStateStore-B6pjzSjj.js} +1 -1
  159. package/dist/client/assets/{useAtlassian-1BSXt3BO.js → useAtlassian-Bx2ua3JV.js} +0 -0
  160. package/dist/client/assets/{useButton-_xmxdcVX.js → useButton-D__1LqCF.js} +1 -1
  161. package/dist/client/assets/useCompositeListItem-Cmr_nuuG.js +1 -0
  162. package/dist/client/assets/useCopyToClipboard-BTpWxumf.js +1 -0
  163. package/dist/client/assets/{useDebouncedValue-DU7gLY9w.js → useDebouncedValue-DHjoudTq.js} +1 -1
  164. package/dist/client/assets/{useFloatingRootContext-CSPbIu1q.js → useFloatingRootContext-D5EZmrCa.js} +1 -1
  165. package/dist/client/assets/useHandleNewThread-DHO0PWGZ.js +1 -0
  166. package/dist/client/assets/{useLabelableId-COmfNFnd.js → useLabelableId-DnQJ7amm.js} +1 -1
  167. package/dist/client/assets/useLocation-CDeYzWW6.js +1 -0
  168. package/dist/client/assets/{useOpenInteractionType-JaQBnIly.js → useOpenInteractionType-CjtpACKR.js} +1 -1
  169. package/dist/client/assets/usePhoneThreadActions-OTf7yIbN.js +1 -0
  170. package/dist/client/assets/usePopupViewport-BuhsNdVy.js +1 -0
  171. package/dist/client/assets/useScrollLock-D3tMGsRk.js +1 -0
  172. package/dist/client/assets/{useStatistics-B2NNfOqV.js → useStatistics-DEtKeVPP.js} +14 -14
  173. package/dist/client/assets/{useSwipeDismiss-B8Fo31QE.js → useSwipeDismiss-CbgDJvw1.js} +1 -1
  174. package/dist/client/assets/{useThreadActions-B9kmG6FU.js → useThreadActions-DLxhOMkz.js} +1 -1
  175. package/dist/client/assets/{useTriggerFocusGuards-O2ZE3JtI.js → useTriggerFocusGuards-CrugmkhX.js} +1 -1
  176. package/dist/client/assets/{useValueChanged-Dj0YXujm.js → useValueChanged-MQtIzPIU.js} +1 -1
  177. package/dist/client/assets/utils-BofFIn5Y.js +1 -0
  178. package/dist/client/index.html +1 -1
  179. package/dist/{collectUint8StreamText-Dn-L1KcR.cjs → collectUint8StreamText-Bb52hlpd.cjs} +36 -6
  180. package/dist/{collectUint8StreamText-DNY4x71l.mjs → collectUint8StreamText-EDg4F0TU.mjs} +31 -7
  181. package/dist/{makeManagedServerProvider-D3T5X-B4.mjs → makeManagedServerProvider-Cf8bNWwc.mjs} +1 -1
  182. package/dist/{makeManagedServerProvider-DNnEIuhW.cjs → makeManagedServerProvider-itynW7xv.cjs} +1 -1
  183. package/package.json +1 -1
  184. package/dist/client/assets/AccountSettings-ckhtafp7.js +0 -1
  185. package/dist/client/assets/AiFocusSettings-DGHWPxgZ.js +0 -1
  186. package/dist/client/assets/AnimatedHeight-BwF3D1vB.js +0 -1
  187. package/dist/client/assets/AppearanceSettings-CDvljGDS.js +0 -1
  188. package/dist/client/assets/ChatRightPanel-CL4qBTZb.js +0 -27
  189. package/dist/client/assets/ChatThreadRouteView-BuOmyy7a.js +0 -1
  190. package/dist/client/assets/CommandPaletteDialog-lCv8qmpm.js +0 -1
  191. package/dist/client/assets/CompositeRoot-vnNIb6NL.js +0 -1
  192. package/dist/client/assets/ConnectionsSettings-BJJrdASq.js +0 -7
  193. package/dist/client/assets/DiagnosticsSettings-CxT6modq.js +0 -2
  194. package/dist/client/assets/DialogPopup-BIJxt62s.js +0 -1
  195. package/dist/client/assets/DialogRoot-8xRqqTn8.js +0 -1
  196. package/dist/client/assets/DialogViewport-C2oKvkDR.js +0 -1
  197. package/dist/client/assets/DraftChatThreadRouteView-FriWZLgB.js +0 -1
  198. package/dist/client/assets/HostedConnectionControls-BYS30u9D.js +0 -1
  199. package/dist/client/assets/HostedHubRoot-Bi0LEQCK.js +0 -1
  200. package/dist/client/assets/HostedNativeAuthorizationRoute-B-F2I7S_.js +0 -1
  201. package/dist/client/assets/HostedRelayTrustNotice-CB0O5OAN.js +0 -1
  202. package/dist/client/assets/Icons-Cme5LL0k.js +0 -1
  203. package/dist/client/assets/IntegrationsSettingsPanel-CS9vrmPw.js +0 -1
  204. package/dist/client/assets/KeybindingsSettings-CQi3dbgG.js +0 -7
  205. package/dist/client/assets/McpServersSettings-BMV56xhW.js +0 -6
  206. package/dist/client/assets/MobileSheet-C8OrQzw0.js +0 -1
  207. package/dist/client/assets/NewWorktreeDialog-DnxmXlh2.js +0 -4
  208. package/dist/client/assets/NoActiveThreadState-BWs9JspL.js +0 -1
  209. package/dist/client/assets/NodeSecuritySettings-iTvQFged.js +0 -1
  210. package/dist/client/assets/OpinionatedPluginsSettings-BcGJ1f7b.js +0 -1
  211. package/dist/client/assets/PhoneGetAppInterstitial-BJGf9FwA.js +0 -1
  212. package/dist/client/assets/PhoneGetAppInterstitialBackdrop-KgY3ydJF.js +0 -1
  213. package/dist/client/assets/PhoneHome-kBrFqF5K.js +0 -1
  214. package/dist/client/assets/PhoneSettingsSurface-CBI6Gl8b.js +0 -1
  215. package/dist/client/assets/ProjectFavicon-D0HVbYDF.js +0 -1
  216. package/dist/client/assets/ProviderModelPicker-DZTCKskK.js +0 -1
  217. package/dist/client/assets/ProviderUpdateLaunchNotification.logic-CtfZzmYI.js +0 -1
  218. package/dist/client/assets/ProvidersSettingsPanel-DAz8hMXw.js +0 -1
  219. package/dist/client/assets/RedactedSensitiveText-CRGSSHz3.js +0 -1
  220. package/dist/client/assets/RootAppShell-BWtqIOLh.js +0 -6
  221. package/dist/client/assets/RycoLetterMark-E82lj57c.js +0 -1
  222. package/dist/client/assets/SettingsDialog-RrFirXQp.js +0 -1
  223. package/dist/client/assets/SettingsPanels-bLK5JAV2.js +0 -3
  224. package/dist/client/assets/SettingsPanels.editor-DTAK4nlM.js +0 -1
  225. package/dist/client/assets/SourceControlSettings-CpnAAcyj.js +0 -1
  226. package/dist/client/assets/StatisticsPage-DwU3oJRO.js +0 -1
  227. package/dist/client/assets/StatisticsPanel-8OSQWA79.js +0 -1
  228. package/dist/client/assets/StatisticsSettingsLink-Bb86VtRL.js +0 -1
  229. package/dist/client/assets/ThreadStatusIndicators-wgiSGtn6.js +0 -0
  230. package/dist/client/assets/alert-DFo8_l6D.js +0 -1
  231. package/dist/client/assets/alert-dialog-Cmodiuqg.js +0 -1
  232. package/dist/client/assets/badge-BbJiUmhG.js +0 -1
  233. package/dist/client/assets/button-BT6cGe5S.js +0 -1
  234. package/dist/client/assets/collapsible-BIEfHdzc.js +0 -1
  235. package/dist/client/assets/command-BjXuIvYa.js +0 -1
  236. package/dist/client/assets/composerDraftStore-_Xy-iY4b.js +0 -11
  237. package/dist/client/assets/data-list-iVYHRfWS.js +0 -1
  238. package/dist/client/assets/dialog-BUIS3TXH.js +0 -1
  239. package/dist/client/assets/draft-input-CUkU2EAu.js +0 -1
  240. package/dist/client/assets/empty-BNn5X77p.js +0 -1
  241. package/dist/client/assets/group-a6GUMeTh.js +0 -1
  242. package/dist/client/assets/input-zjUwoDs3.js +0 -1
  243. package/dist/client/assets/kbd-BGOWI5KX.js +0 -1
  244. package/dist/client/assets/label-DWGvDLsD.js +0 -1
  245. package/dist/client/assets/main-an0sD0U2.css +0 -2
  246. package/dist/client/assets/menu-CwPZHq2g.js +0 -1
  247. package/dist/client/assets/popover-j6ZF-s94.js +0 -1
  248. package/dist/client/assets/providerIconUtils-_WuNo2Ek.js +0 -1
  249. package/dist/client/assets/providerInstances-DEQekDE8.js +0 -1
  250. package/dist/client/assets/providerModels-DEQekDE8.js +0 -1
  251. package/dist/client/assets/qr-code-DbscZ6Qz.js +0 -1
  252. package/dist/client/assets/radio-group-BTtFIcDI.js +0 -2
  253. package/dist/client/assets/resolveAriaLabelledBy-CxOsaNI8.js +0 -1
  254. package/dist/client/assets/runtime-BkRtSwRY.js +0 -1
  255. package/dist/client/assets/scroll-area-B-bu3v0j.js +0 -1
  256. package/dist/client/assets/scrollEdges-CDEU4fOg.js +0 -1
  257. package/dist/client/assets/select-rPdFVPfm.js +0 -1
  258. package/dist/client/assets/separator-CaVw81t6.js +0 -1
  259. package/dist/client/assets/settingsDialogStore-CPtQPrek.js +0 -1
  260. package/dist/client/assets/settingsLayout-B8os-EWr.js +0 -1
  261. package/dist/client/assets/settingsSections.logic-Be8uaymC.js +0 -1
  262. package/dist/client/assets/sheet-DQBndeJT.js +0 -1
  263. package/dist/client/assets/sidebar-H-CSxQVD.js +0 -1
  264. package/dist/client/assets/sidebarProjectFolders-CsZlmaJg.js +0 -4
  265. package/dist/client/assets/skeleton-CCuGgPK1.js +0 -1
  266. package/dist/client/assets/spinner-CgrOdIjl.js +0 -1
  267. package/dist/client/assets/src-b7-hpIff.js +0 -14
  268. package/dist/client/assets/storeSelectors-BLHJVLCP.js +0 -1
  269. package/dist/client/assets/switch-cMx5Wv_R.js +0 -1
  270. package/dist/client/assets/textarea-DIqqrD8A.js +0 -1
  271. package/dist/client/assets/toast-DonYDy-6.js +0 -1
  272. package/dist/client/assets/toggle-BIs83JSj.js +0 -1
  273. package/dist/client/assets/toggle-group-0LgplGMc.js +0 -1
  274. package/dist/client/assets/tooltip-BaJgdXlL.js +0 -1
  275. package/dist/client/assets/types-BLHJVLCP.js +0 -1
  276. package/dist/client/assets/useCompositeListItem-dLIU4XjY.js +0 -1
  277. package/dist/client/assets/useCopyToClipboard-qG2nhvjQ.js +0 -1
  278. package/dist/client/assets/useHandleNewThread-COAg-4eT.js +0 -1
  279. package/dist/client/assets/useLocation-DsqdpYA5.js +0 -1
  280. package/dist/client/assets/usePhoneThreadActions-RjcSVspy.js +0 -1
  281. package/dist/client/assets/usePopupViewport-wXfO6SZE.js +0 -1
  282. package/dist/client/assets/useScrollLock-Dr_P7FLZ.js +0 -1
  283. package/dist/client/assets/utils-c6dglOTK.js +0 -1
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./index-Bbc24tew.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";import"./src-b7-hpIff.js";import{F as i,Jt as a,M as o,N as s,P as c,Wt as l}from"./runtime-BkRtSwRY.js";import{f as u,t as d}from"./utils-c6dglOTK.js";import{a as f,i as p,o as m}from"./useHandleNewThread-COAg-4eT.js";import{t as h}from"./useNavigate-2tVq4iZ2.js";import{Gt as g,_,o as v}from"./authorization-CFcCWeGd.js";import{t as y}from"./RootAppShell-BWtqIOLh.js";import{f as b}from"./useRenderElement-DchFnsR8.js";import{t as x}from"./arrow-left-Dtj9PfsA.js";import{n as S,t as C}from"./loader-circle-CrtHFAvM.js";import{t as w}from"./chevron-down-B7C6FKzM.js";import{t as T}from"./chevron-right-BWYGybX9.js";import{n as E,o as D,t as O}from"./toast-DonYDy-6.js";import{n as k,t as A}from"./useCopyToClipboard-qG2nhvjQ.js";import{t as j}from"./key-round-CacMputS.js";import{_ as M,a as N,c as P,d as F,f as I,g as L,h as R,i as z,l as B,m as V,o as ee,p as te,t as H,u as ne}from"./HostedConnectionControls-BYS30u9D.js";import{t as re}from"./log-out-tMJm0Gk6.js";import{t as ie}from"./palette-BSD_aJZg.js";import{t as ae}from"./refresh-cw-DopCMrtR.js";import{t as oe}from"./server-JApJpgLa.js";import{t as U}from"./shield-check-dQ-4cMKk.js";import{t as se}from"./triangle-alert-RL_T3KLo.js";import{t as ce}from"./user-round-Cpzx8pSw.js";import{n as W,t as G}from"./input-zjUwoDs3.js";import{u as K}from"./Icons-Cme5LL0k.js";import{t as q}from"./button-BT6cGe5S.js";import{a as le,i as J,n as ue,o as de,r as fe,s as pe,t as me}from"./sheet-DQBndeJT.js";import{t as he}from"./skeleton-CCuGgPK1.js";import{t as ge}from"./usePresentationTier-B_SCFvN7.js";import{i as _e,r as ve,t as ye}from"./alert-DFo8_l6D.js";import{a as be,c as xe,i as Se,o as Ce,r as we,s as Te,t as Ee}from"./dialog-BUIS3TXH.js";import{t as Y}from"./label-DWGvDLsD.js";import{t as De}from"./RycoLetterMark-E82lj57c.js";import{a as Oe,i as ke,n as Ae,o as je,r as Me,t as Ne}from"./MobileSheet-C8OrQzw0.js";import{a as Pe,i as Fe,n as Ie,o as Le,r as Re,t as ze}from"./empty-BNn5X77p.js";import{c as Be,n as Ve,r as He,t as Ue}from"./ExternalIdentityWeb.logic-DsqwSlwL.js";import{a as We}from"./settingsLayout-B8os-EWr.js";import{n as Ge,r as Ke,t as qe}from"./phoneAnchoredActions-CtpkI3yG.js";import{t as Je}from"./HostedRelayTrustNotice-CB0O5OAN.js";import{n as X,t as Ye}from"./data-list-iVYHRfWS.js";var Xe=b(`life-buoy`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),Ze=b(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),Z=e(t(),1),Q=r(),Qe=/^[A-Za-z0-9_-]{43}$/u,$e=/^signup_[A-Za-z0-9_-]{22,43}$/u;function et(e){if(e.pathname===`/public-signup/verify`){let t=new URLSearchParams(e.hash.startsWith(`#`)?e.hash.slice(1):e.hash),n=t.get(`attempt`),r=t.get(`attempt_secret`),i=t.get(`token`);return n!==null&&$e.test(n)&&r!==null&&Qe.test(r)&&i!==null&&Qe.test(i)?{kind:`signup-verification`,attemptId:n,attemptSecret:r,token:i}:{kind:`invalid-signup-verification`}}if(e.pathname===`/password-reset`){let t=new URLSearchParams(e.hash.startsWith(`#`)?e.hash.slice(1):e.hash).get(`token`);return t!==null&&Qe.test(t)?{kind:`password-reset`,token:t}:{kind:`invalid-password-reset`}}if(e.pathname===`/email-verification`){let t=new URLSearchParams(e.hash.startsWith(`#`)?e.hash.slice(1):e.hash).get(`token`);return t!==null&&Qe.test(t)?{kind:`email-verification`,token:t}:{kind:`invalid-email-verification`}}return null}function tt(e){let t=new URL(e.href),n=et(t);return n===null?null:(e.replaceState(e.historyState,``,`${t.pathname}${t.search}`),n)}function nt(){let e=(0,Q.c)(3),t=s(ot),n,r;e[0]===t?(n=e[1],r=e[2]):(n=()=>{if(t!==`authenticated`)return;let e=it,n=()=>{document.visibilityState===`hidden`?(f(!0),v.suspendBrowser(`hidden`)):e()},r=rt,i=()=>e(),a=()=>e();return document.addEventListener(`visibilitychange`,n),window.addEventListener(`offline`,r),window.addEventListener(`online`,i),window.addEventListener(`pageshow`,a),navigator.onLine||r(),()=>{document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`offline`,r),window.removeEventListener(`online`,i),window.removeEventListener(`pageshow`,a)}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r)}function rt(){f(!0),v.suspendBrowser(`offline`)}function it(){document.visibilityState===`visible`&&navigator.onLine&&v.resumeBrowser().then(at)}function at(){return f(!1)}function ot(e){return e.accountStatus}var $=u(),st=100;function ct(e){let t=(0,Q.c)(52),{node:n,open:r,onOpenChange:i,onRename:a}=e,[o,s]=(0,Z.useState)(n.label),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(null),f,p;t[0]!==n.label||t[1]!==r?(f=()=>{r&&(s(n.label),l(!1),d(null))},p=[n.label,r],t[0]=n.label,t[1]=r,t[2]=f,t[3]=p):(f=t[2],p=t[3]),(0,Z.useEffect)(f,p);let m;t[4]===o?m=t[5]:(m=o.trim(),t[4]=o,t[5]=m);let h=m,g=h.length===0?`Enter a node name.`:h.length>st?`Use 100 characters or fewer.`:null,_=g===null&&h!==n.label&&!c,v;t[6]!==_||t[7]!==h||t[8]!==i||t[9]!==a?(v=async()=>{if(_){l(!0),d(null);try{await a(h),i(!1)}catch(e){let t=e;d(t instanceof Error?t.message:`Unable to rename this node.`),l(!1)}}},t[6]=_,t[7]=h,t[8]=i,t[9]=a,t[10]=v):v=t[10];let y=v,b=!c,x;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsxs)(be,{children:[(0,$.jsx)(xe,{children:`Rename node`}),(0,$.jsx)(we,{children:`This is the canonical name shown to everyone authorized to use this node.`})]}),t[11]=x):x=t[11];let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(`label`,{htmlFor:`hosted-node-name`,className:`text-sm font-medium`,children:`Node name`}),t[12]=S):S=t[12];let C=g!==null||u!==null,w;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>{s(e.currentTarget.value),d(null)},t[13]=w):w=t[13];let T;t[14]!==_||t[15]!==y?(T=e=>{e.key===`Enter`&&_&&y()},t[14]=_,t[15]=y,t[16]=T):T=t[16];let E;t[17]!==o||t[18]!==c||t[19]!==T||t[20]!==C?(E=(0,$.jsx)(G,{id:`hosted-node-name`,value:o,autoFocus:!0,disabled:c,"aria-invalid":C,onChange:w,onKeyDown:T}),t[17]=o,t[18]=c,t[19]=T,t[20]=C,t[21]=E):E=t[21];let D;t[22]===g?D=t[23]:(D=g?(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:g}):null,t[22]=g,t[23]=D);let O;t[24]===u?O=t[25]:(O=u?(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive`,children:u}):null,t[24]=u,t[25]=O);let k;t[26]!==E||t[27]!==D||t[28]!==O?(k=(0,$.jsxs)(Ce,{className:`space-y-2`,children:[S,E,D,O]}),t[26]=E,t[27]=D,t[28]=O,t[29]=k):k=t[29];let A;t[30]===i?A=t[31]:(A=()=>i(!1),t[30]=i,t[31]=A);let j;t[32]!==c||t[33]!==A?(j=(0,$.jsx)(q,{variant:`outline`,disabled:c,onClick:A,children:`Cancel`}),t[32]=c,t[33]=A,t[34]=j):j=t[34];let M=!_,N;t[35]===y?N=t[36]:(N=()=>void y(),t[35]=y,t[36]=N);let P=c?`Saving…`:`Save`,F;t[37]!==M||t[38]!==N||t[39]!==P?(F=(0,$.jsx)(q,{disabled:M,onClick:N,children:P}),t[37]=M,t[38]=N,t[39]=P,t[40]=F):F=t[40];let I;t[41]!==j||t[42]!==F?(I=(0,$.jsxs)(Se,{children:[j,F]}),t[41]=j,t[42]=F,t[43]=I):I=t[43];let L;t[44]!==k||t[45]!==I||t[46]!==b?(L=(0,$.jsxs)(Te,{className:`max-w-md`,showCloseButton:b,children:[x,k,I]}),t[44]=k,t[45]=I,t[46]=b,t[47]=L):L=t[47];let R;return t[48]!==i||t[49]!==r||t[50]!==L?(R=(0,$.jsx)(Ee,{open:r,onOpenChange:i,children:L}),t[48]=i,t[49]=r,t[50]=L,t[51]=R):R=t[51],R}var lt=`owner_revoked`,ut=Object.freeze([Object.freeze({id:`access`,text:`Every Hub grant on this node stops working immediately, for everyone authorized through this Hub — not only for you — and any relay channel it has open right now closes.`}),Object.freeze({id:`direct`,text:`Clients paired directly with that machine are separate and keep working. Those are managed on the machine itself, with the ryco auth command.`}),Object.freeze({id:`directory`,text:`It leaves the directory for every account on this Hub, not only yours, and stays gone. There is no undo here and no state it can return to.`}),Object.freeze({id:`return`,text:`Putting that machine back starts on the machine itself: use “Leave this Hub” there, then enroll it again with a new device code and your approval. It is a new enrollment, not a reconnection.`}),Object.freeze({id:`reach`,text:`All of that is recorded here, on the Hub. A node that is offline, unreachable, or long gone is revoked in exactly the same way — which is the point of doing it from here.`})]),dt=`Check the identifier below against the machine you meant. Two nodes can carry the same name, and this is the only value that tells them apart.`;function ft(e){return{title:`Revoke ${e.label}?`,consequences:ut,subjectPrompt:dt,subjectId:e.id,confirmLabel:`Revoke this node`,pendingLabel:`Revoking…`,cancelLabel:`Cancel`,dismissLabel:`Back to the list`}}var pt=`Revoke`;function mt(e){return`${e} was revoked. It is gone from this Hub's directory for every account, and this cannot be undone.`}function ht(e){return e===null||e.outcome===`unchanged`}var gt=e=>Object.freeze(e),_t=Object.freeze([gt({id:`invalidResponse`,probe:Object.freeze({code:`invalid_response`,status:502}),selects:(e,t)=>t===`invalid_response`,failure:Object.freeze({message:`The Hub accepted the request and its answer could not be read, so whether this node was revoked is not known here. Refresh the list and check before trying again.`,outcome:`unknown`})}),gt({id:`transport`,probe:Object.freeze({code:`unavailable`,status:0}),selects:(e,t)=>e===0||t===`timeout`||t===`unavailable`,failure:Object.freeze({message:`The request left this browser and no answer came back, so whether this node was revoked is not known here. Check your connection, then refresh the list and look before trying again.`,outcome:`unknown`})}),gt({id:`csrf`,probe:Object.freeze({code:`csrf_rejected`,status:403}),selects:(e,t)=>t===`csrf_rejected`,failure:Object.freeze({message:`This request could not be verified, so nothing was changed. Refresh the page and try again.`,outcome:`unchanged`})}),gt({id:`unauthorized`,probe:Object.freeze({code:`session_invalid`,status:401}),selects:(e,t)=>e===401||t===`session_invalid`,failure:Object.freeze({message:`Your Hub session is no longer valid, so nothing was changed. Sign in and try again.`,outcome:`unchanged`})}),gt({id:`forbidden`,probe:Object.freeze({code:`forbidden`,status:403}),selects:e=>e===403,failure:Object.freeze({message:`Only an owner of this Hub can revoke a node. Nothing was changed.`,outcome:`unchanged`})}),gt({id:`notFound`,probe:Object.freeze({code:`not_found`,status:404}),selects:e=>e===404,failure:Object.freeze({message:`The Hub has no active node under this identifier: it was already revoked, or it is not this Hub's. Either way there is nothing here left to revoke.`,outcome:`already-gone`})}),gt({id:`conflict`,probe:Object.freeze({code:`conflict`,status:409}),selects:e=>e===409,failure:Object.freeze({message:`The Hub reported a conflicting change on this node, so nothing was changed. Refresh and look at it again before retrying.`,outcome:`unchanged`})}),gt({id:`rateLimited`,probe:Object.freeze({code:`node_rate_limited`,status:429}),selects:e=>e===429,failure:Object.freeze({message:`The Hub is refusing further owner changes for now, so nothing was changed. Wait a little and try again.`,outcome:`unchanged`})}),gt({id:`badRequest`,probe:Object.freeze({code:`invalid_request`,status:400}),selects:(e,t)=>e===400||t===`invalid_request`,failure:Object.freeze({message:`The Hub refused this request, so nothing was changed.`,outcome:`unchanged`})})]),vt=Object.freeze({message:`This node could not be revoked. Nothing was changed. Try again in a moment.`,outcome:`unchanged`});function yt(e){let t=bt(e),n=xt(e);for(let e of _t)if(e.selects(t,n))return e.failure;return vt}function bt(e){if(typeof e!=`object`||!e)return null;let{status:t}=e;return typeof t==`number`&&Number.isFinite(t)?t:null}function xt(e){if(typeof e!=`object`||!e)return null;let{code:t}=e;return typeof t==`string`?t:null}var St=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function Ct(e){return e===null||!Number.isFinite(e)?null:St.format(new Date(e))}function wt(e){switch(e){case`darwin`:return`macOS`;case`linux`:return`Linux`;case`windows`:return`Windows`;case`unknown`:return`Unknown platform`}}function Tt(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function Et(e){return Tt(e)}function Dt(e,t){if(!Number.isFinite(e))return`unknown`;let n=t-e;if(n<0)return Ct(e)??`unknown`;let r=Math.floor(n/6e4);if(r<2)return`just now`;if(r<60)return`${String(r)} min ago`;let i=Math.floor(r/60);return i<24?`${String(i)} h ago`:Ct(e)??`unknown`}function Ot(e,t){return e.presence.online?null:e.presence.lastHeartbeatAt===null?e.lastAuthenticatedAt===null?`No connection recorded`:`Last authenticated ${Dt(e.lastAuthenticatedAt,t)}`:`Last seen ${Dt(e.presence.lastHeartbeatAt,t)}`}function kt(e){let t=`${wt(e.platformOs)} · ${e.platformArch}`;return e.revokedAt===null?`${t} · ${Et(e.effectiveRole)}`:e.revocationReasonCode?`${t} · Access revoked — ${e.revocationReasonCode}`:`${t} · Access revoked`}function At(e){return e.toSorted((e,t)=>{let n=e.revokedAt===null?0:1,r=t.revokedAt===null?0:1;return n===r?e.label.localeCompare(t.label,void 0,{numeric:!0,sensitivity:`base`}):n-r})}function jt(e){return e.filter(e=>e.revokedAt===null).length}function Mt(e){return e.filter(e=>e.revokedAt===null&&e.presence.online).length}function Nt(e){let t=jt(e),n=Mt(e),r=e.length-t,i=`${String(t)} authorized · ${n===0?`none online`:`${String(n)} online`}`;return r===0?i:`${i} · ${String(r)} revoked`}function Pt(e){return e.directoryStatus!==`ready`||e.browserStatus!==`current`||e.node.revokedAt!==null||e.node.capabilities?.nativeClientRequired===!0}function Ft(e){return e.node.capabilities?.nativeClientRequired===!0?`Open this node in Desktop/Mobile.`:e.node.revokedAt===null?e.directoryStatus!==`ready`||e.browserStatus!==`current`?`Node switching is unavailable until the directory and this browser are current.`:null:`Access to this node was revoked.`}function It({node:e,open:t,onOpenChange:n,onRevoke:r}){let[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),c=ft(e),l=ht(o);(0,Z.useEffect)(()=>{!t||i||(a(!1),s(null))},[e.id,t]);let u=async()=>{if(!i){a(!0),s(null);try{await r(),n(!1)}catch(e){s(yt(e)),a(!1)}}};return(0,$.jsx)(Ee,{open:t,onOpenChange:e=>{!e&&i||n(e)},disablePointerDismissal:i,children:(0,$.jsxs)(Te,{className:`max-w-md`,showCloseButton:!i,children:[(0,$.jsxs)(be,{children:[(0,$.jsx)(xe,{children:c.title}),(0,$.jsx)(we,{children:c.subjectPrompt})]}),(0,$.jsxs)(Ce,{className:`space-y-4`,children:[(0,$.jsxs)(Ye,{children:[(0,$.jsx)(X,{term:`Node`,children:e.label}),(0,$.jsx)(X,{term:`Node ID`,mono:!0,children:c.subjectId}),(0,$.jsx)(X,{term:`Platform`,children:`${wt(e.platformOs)} · ${e.platformArch}`})]}),(0,$.jsx)(`ul`,{className:`space-y-2 text-xs leading-relaxed text-muted-foreground`,children:c.consequences.map(e=>(0,$.jsx)(`li`,{children:e.text},e.id))}),o?(0,$.jsxs)(`p`,{role:`alert`,className:`flex items-start gap-2 text-xs leading-relaxed text-destructive`,children:[(0,$.jsx)(se,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0`}),o.message]}):null]}),(0,$.jsxs)(Se,{children:[(0,$.jsx)(q,{variant:`outline`,disabled:i,onClick:()=>n(!1),children:l?c.cancelLabel:c.dismissLabel}),l?(0,$.jsx)(q,{variant:`destructive`,disabled:i,onClick:()=>void u(),children:i?c.pendingLabel:c.confirmLabel}):null]})]})})}function Lt(e){let t=(0,Q.c)(57),{node:n}=e,r=We(6e4),{copyToClipboard:i,isCopied:a}=A(),o;t[0]===n.createdAt?o=t[1]:(o=Ct(n.createdAt),t[0]=n.createdAt,t[1]=o);let s=o,c;t[2]===n.lastAuthenticatedAt?c=t[3]:(c=Ct(n.lastAuthenticatedAt),t[2]=n.lastAuthenticatedAt,t[3]=c);let l=c,u;t[4]===n.revokedAt?u=t[5]:(u=Ct(n.revokedAt),t[4]=n.revokedAt,t[5]=u);let d=u,f=n.grant.role!==n.effectiveRole,p;t[6]===n?p=t[7]:(p=(0,$.jsx)(X,{term:`Status`,children:(0,$.jsx)(z,{node:n})}),t[6]=n,t[7]=p);let m;t[8]!==n.presence.lastHeartbeatAt||t[9]!==r?(m=n.presence.lastHeartbeatAt===null?`Not reported`:(0,$.jsx)(`span`,{title:Ct(n.presence.lastHeartbeatAt)??void 0,children:Dt(n.presence.lastHeartbeatAt,r)}),t[8]=n.presence.lastHeartbeatAt,t[9]=r,t[10]=m):m=t[10];let h;t[11]===m?h=t[12]:(h=(0,$.jsx)(X,{term:`Last heartbeat`,children:m}),t[11]=m,t[12]=h);let g=l??`Never`,_;t[13]===g?_=t[14]:(_=(0,$.jsx)(X,{term:`Last connected`,children:g}),t[13]=g,t[14]=_);let v;t[15]===n.platformOs?v=t[16]:(v=wt(n.platformOs),t[15]=n.platformOs,t[16]=v);let y=`${v} · ${n.platformArch}`,b;t[17]===y?b=t[18]:(b=(0,$.jsx)(X,{term:`Platform`,children:y}),t[17]=y,t[18]=b);let x;t[19]===n.clientVersion?x=t[20]:(x=(0,$.jsx)(X,{term:`Client version`,mono:!0,children:n.clientVersion}),t[19]=n.clientVersion,t[20]=x);let C;t[21]===n.effectiveRole?C=t[22]:(C=Et(n.effectiveRole),t[21]=n.effectiveRole,t[22]=C);let w;t[23]===C?w=t[24]:(w=(0,$.jsx)(X,{term:`Your role`,children:C}),t[23]=C,t[24]=w);let T;t[25]!==f||t[26]!==n.grant.role?(T=f?(0,$.jsxs)(X,{term:`Granted role`,children:[Et(n.grant.role),(0,$.jsx)(`span`,{className:`mt-1 block text-muted-foreground`,children:`The role on your grant differs from the role in effect.`})]}):null,t[25]=f,t[26]=n.grant.role,t[27]=T):T=t[27];let E=s??`Not reported`,D;t[28]===E?D=t[29]:(D=(0,$.jsx)(X,{term:`Enrolled`,children:E}),t[28]=E,t[29]=D);let O;t[30]!==n.revocationReasonCode||t[31]!==n.revokedAt||t[32]!==d?(O=n.revokedAt===null?null:(0,$.jsx)(X,{term:`Revoked`,children:`${d??`Not reported`}${n.revocationReasonCode?` — ${n.revocationReasonCode}`:``}`}),t[30]=n.revocationReasonCode,t[31]=n.revokedAt,t[32]=d,t[33]=O):O=t[33];let j=a?`Copied`:`Copy node ID`,M;t[34]!==i||t[35]!==n.id?(M=()=>i(n.id,void 0),t[34]=i,t[35]=n.id,t[36]=M):M=t[36];let N;t[37]===a?N=t[38]:(N=a?(0,$.jsx)(S,{"aria-hidden":!0}):(0,$.jsx)(k,{"aria-hidden":!0}),t[37]=a,t[38]=N);let P;t[39]!==j||t[40]!==M||t[41]!==N?(P=(0,$.jsx)(q,{size:`icon-xs`,variant:`ghost`,"aria-label":j,onClick:M,children:N}),t[39]=j,t[40]=M,t[41]=N,t[42]=P):P=t[42];let F;t[43]!==n.id||t[44]!==P?(F=(0,$.jsx)(X,{term:`Node ID`,mono:!0,action:P,children:n.id}),t[43]=n.id,t[44]=P,t[45]=F):F=t[45];let I;return t[46]!==b||t[47]!==x||t[48]!==w||t[49]!==T||t[50]!==D||t[51]!==O||t[52]!==F||t[53]!==p||t[54]!==h||t[55]!==_?(I=(0,$.jsxs)(Ye,{children:[p,h,_,b,x,w,T,D,O,F]}),t[46]=b,t[47]=x,t[48]=w,t[49]=T,t[50]=D,t[51]=O,t[52]=F,t[53]=p,t[54]=h,t[55]=_,t[56]=I):I=t[56],I}function Rt(e){let t=(0,Q.c)(93),{node:n,directoryStatus:r,browserStatus:i,canRename:a,canRevoke:o,onOpenChange:s,onConnect:c,onRename:l,onRevoke:u}=e,d=ge()===`phone`,[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(null),g=n!==null;if(!n)return null;let _;t[0]!==i||t[1]!==r||t[2]!==n?(_=Pt({directoryStatus:r,browserStatus:i,node:n}),t[0]=i,t[1]=r,t[2]=n,t[3]=_):_=t[3];let v=_,y;t[4]!==i||t[5]!==r||t[6]!==n?(y=Ft({directoryStatus:r,browserStatus:i,node:n}),t[4]=i,t[5]=r,t[6]=n,t[7]=y):y=t[7];let b=y,x;t[8]!==n||t[9]!==c||t[10]!==s?(x=()=>{s(!1),c(n)},t[8]=n,t[9]=c,t[10]=s,t[11]=x):x=t[11];let S=x,C=v&&b?b:null;if(d){let e=`Node details: ${n.label}`,r;t[12]===n.label?r=t[13]:(r=(0,$.jsx)(je,{children:n.label}),t[12]=n.label,t[13]=r);let i;t[14]===n?i=t[15]:(i=kt(n),t[14]=n,t[15]=i);let a;t[16]===i?a=t[17]:(a=(0,$.jsx)(Ae,{children:i}),t[16]=i,t[17]=a);let o;t[18]!==r||t[19]!==a?(o=(0,$.jsxs)(ke,{children:[r,a]}),t[18]=r,t[19]=a,t[20]=o):o=t[20];let c;t[21]===n?c=t[22]:(c=(0,$.jsx)(Lt,{node:n}),t[21]=n,t[22]=c);let l;t[23]===C?l=t[24]:(l=C?(0,$.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:C}):null,t[23]=C,t[24]=l);let u;t[25]!==l||t[26]!==c?(u=(0,$.jsxs)(Oe,{children:[c,l]}),t[25]=l,t[26]=c,t[27]=u):u=t[27];let d;t[28]!==v||t[29]!==S?(d=(0,$.jsx)(Me,{children:(0,$.jsx)(q,{className:`min-h-11`,disabled:v,onClick:S,children:`Connect`})}),t[28]=v,t[29]=S,t[30]=d):d=t[30];let f;return t[31]!==s||t[32]!==g||t[33]!==u||t[34]!==d||t[35]!==e||t[36]!==o?(f=(0,$.jsxs)(Ne,{open:g,onOpenChange:s,label:e,children:[o,u,d]}),t[31]=s,t[32]=g,t[33]=u,t[34]=d,t[35]=e,t[36]=o,t[37]=f):f=t[37],f}let w=o&&n.revokedAt===null,T;t[38]!==s||t[39]!==f||t[40]!==m?(T=e=>{!e&&(m!==null||f!==null)||(e||(p(null),h(null)),s(e))},t[38]=s,t[39]=f,t[40]=m,t[41]=T):T=t[41];let E;t[42]===n.label?E=t[43]:(E=(0,$.jsx)(pe,{className:`truncate`,children:n.label}),t[42]=n.label,t[43]=E);let D;t[44]===n?D=t[45]:(D=kt(n),t[44]=n,t[45]=D);let O;t[46]===D?O=t[47]:(O=(0,$.jsx)(ue,{children:D}),t[46]=D,t[47]=O);let k;t[48]!==E||t[49]!==O?(k=(0,$.jsxs)(J,{children:[E,O]}),t[48]=E,t[49]=O,t[50]=k):k=t[50];let A;t[51]===n?A=t[52]:(A=(0,$.jsx)(Lt,{node:n}),t[51]=n,t[52]=A);let j;t[53]===C?j=t[54]:(j=C?(0,$.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:C}):null,t[53]=C,t[54]=j);let M;t[55]!==j||t[56]!==A?(M=(0,$.jsxs)(le,{children:[A,j]}),t[55]=j,t[56]=A,t[57]=M):M=t[57];let N;t[58]!==n.id||t[59]!==w?(N=w?(0,$.jsx)(q,{variant:`destructive-outline`,className:`sm:mr-auto`,onClick:()=>h(n.id),children:pt}):null,t[58]=n.id,t[59]=w,t[60]=N):N=t[60];let P;t[61]!==a||t[62]!==n.id?(P=a?(0,$.jsx)(q,{variant:`outline`,onClick:()=>p(n.id),children:`Rename`}):null,t[61]=a,t[62]=n.id,t[63]=P):P=t[63];let F;t[64]!==v||t[65]!==S?(F=(0,$.jsx)(q,{disabled:v,onClick:S,children:`Connect`}),t[64]=v,t[65]=S,t[66]=F):F=t[66];let I;t[67]!==N||t[68]!==P||t[69]!==F?(I=(0,$.jsxs)(fe,{children:[N,P,F]}),t[67]=N,t[68]=P,t[69]=F,t[70]=I):I=t[70];let L;t[71]!==M||t[72]!==I||t[73]!==k?(L=(0,$.jsxs)(de,{side:`right`,className:`w-full sm:max-w-md`,children:[k,M,I]}),t[71]=M,t[72]=I,t[73]=k,t[74]=L):L=t[74];let R;t[75]!==g||t[76]!==L||t[77]!==T?(R=(0,$.jsx)(me,{open:g,onOpenChange:T,children:L}),t[75]=g,t[76]=L,t[77]=T,t[78]=R):R=t[78];let z;t[79]!==a||t[80]!==n||t[81]!==l||t[82]!==f?(z=a?(0,$.jsx)(ct,{node:n,open:f===n.id,onOpenChange:e=>p(e?n.id:null),onRename:e=>l(n,e)}):null,t[79]=a,t[80]=n,t[81]=l,t[82]=f,t[83]=z):z=t[83];let B;t[84]!==n||t[85]!==u||t[86]!==w||t[87]!==m?(B=w?(0,$.jsx)(It,{node:n,open:m===n.id,onOpenChange:e=>h(e?n.id:null),onRevoke:()=>u(n)}):null,t[84]=n,t[85]=u,t[86]=w,t[87]=m,t[88]=B):B=t[88];let V;return t[89]!==R||t[90]!==z||t[91]!==B?(V=(0,$.jsxs)($.Fragment,{children:[R,z,B]}),t[89]=R,t[90]=z,t[91]=B,t[92]=V):V=t[92],V}function zt(e){let t=(0,Q.c)(18),{children:n,title:r,description:i,actions:a,titleRef:o}=e,s;t[0]!==r||t[1]!==o?(s=(0,$.jsx)(`h1`,{ref:o,tabIndex:-1,className:`font-semibold text-2xl tracking-tight outline-none`,children:r}),t[0]=r,t[1]=o,t[2]=s):s=t[2];let c;t[3]===i?c=t[4]:(c=i===void 0?null:(0,$.jsx)(`div`,{className:`mt-1.5 text-muted-foreground text-sm`,children:i}),t[3]=i,t[4]=c);let l;t[5]!==s||t[6]!==c?(l=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[s,c]}),t[5]=s,t[6]=c,t[7]=l):l=t[7];let u;t[8]===a?u=t[9]:(u=a===void 0?null:(0,$.jsx)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2`,children:a}),t[8]=a,t[9]=u);let d;t[10]!==l||t[11]!==u?(d=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-x-4 gap-y-3`,children:[l,u]}),t[10]=l,t[11]=u,t[12]=d):d=t[12];let f;t[13]===n?f=t[14]:(f=(0,$.jsx)(`div`,{className:`mt-8`,children:n}),t[13]=n,t[14]=f);let p;return t[15]!==d||t[16]!==f?(p=(0,$.jsxs)($.Fragment,{children:[d,f]}),t[15]=d,t[16]=f,t[17]=p):p=t[17],p}function Bt(e){let t=(0,Q.c)(12),{children:n,className:r,title:i,description:a,actions:o}=e,s;t[0]===r?s=t[1]:(s=d(`app-surface relative rounded-2xl border not-dark:bg-clip-padding shadow-lg/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,r),t[0]=r,t[1]=s);let c;t[2]!==o||t[3]!==a||t[4]!==i?(c=i===void 0&&o===void 0?null:(0,$.jsxs)(`header`,{className:`flex flex-wrap items-start justify-between gap-x-4 gap-y-2 border-border/60 border-b px-5 py-4`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[i===void 0?null:(0,$.jsx)(`h2`,{className:`font-medium text-base`,children:i}),a===void 0?null:(0,$.jsx)(`p`,{className:`mt-1 text-muted-foreground text-sm leading-relaxed`,children:a})]}),o===void 0?null:(0,$.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:o})]}),t[2]=o,t[3]=a,t[4]=i,t[5]=c):c=t[5];let l;t[6]===n?l=t[7]:(l=n===void 0?null:(0,$.jsx)(`div`,{className:`px-5 py-4`,children:n}),t[6]=n,t[7]=l);let u;return t[8]!==s||t[9]!==c||t[10]!==l?(u=(0,$.jsxs)(`section`,{className:s,children:[c,l]}),t[8]=s,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Vt(e){let t=(0,Q.c)(8),{className:n,size:r}=e,i=r===void 0?`default`:r,a=i===`lg`?`gap-2.5 text-lg`:`gap-2 text-sm`,o;t[0]!==n||t[1]!==a?(o=d(`inline-flex items-center font-semibold text-foreground`,a,n),t[0]=n,t[1]=a,t[2]=o):o=t[2];let s=i===`lg`?`h-6`:`h-4.5`,c;t[3]===s?c=t[4]:(c=(0,$.jsx)(De,{className:s}),t[3]=s,t[4]=c);let l;return t[5]!==o||t[6]!==c?(l=(0,$.jsxs)(`span`,{className:o,children:[c,Ge]}),t[5]=o,t[6]=c,t[7]=l):l=t[7],l}var Ht=`h-dvh overflow-x-hidden overflow-y-auto overscroll-contain text-foreground`,Ut=`px-4 sm:px-6 phone:px-[max(1rem,env(safe-area-inset-left),env(safe-area-inset-right))] phone:pt-[max(2.5rem,calc(env(safe-area-inset-top)+1rem))] phone:pb-[max(2.5rem,calc(env(safe-area-inset-bottom)+1rem))]`,Wt=`flex min-h-full flex-col`,Gt={form:`max-w-[28rem]`,content:`max-w-3xl`,page:`max-w-5xl`};function Kt(e){let t=(0,Q.c)(13),{nav:n,trailing:r}=e,i,a,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=d(`app-chrome-glass shrink-0 border-border/60 border-b`,`pt-[env(safe-area-inset-top)]`),a=d(`mx-auto flex h-14 w-full items-center gap-3 px-4 sm:px-6`,Gt.page),o=(0,$.jsx)(Vt,{}),t[0]=i,t[1]=a,t[2]=o):(i=t[0],a=t[1],o=t[2]);let s;t[3]===n?s=t[4]:(s=n===void 0?null:(0,$.jsx)(`nav`,{"aria-label":`Hub`,className:`min-w-0 flex-1`,children:n}),t[3]=n,t[4]=s);let c;t[5]===n?c=t[6]:(c=n===void 0?(0,$.jsx)(`div`,{className:`flex-1`}):null,t[5]=n,t[6]=c);let l;t[7]===r?l=t[8]:(l=r===void 0?null:(0,$.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:r}),t[7]=r,t[8]=l);let u;return t[9]!==s||t[10]!==c||t[11]!==l?(u=(0,$.jsx)(`header`,{className:i,children:(0,$.jsxs)(`div`,{className:a,children:[o,s,c,l]})}),t[9]=s,t[10]=c,t[11]=l,t[12]=u):u=t[12],u}function qt(e){let t=(0,Q.c)(16),{children:n,nav:r,trailing:i,scrollRef:a,measure:o}=e,s=o===void 0?`page`:o,c=ge()===`phone`,l;t[0]!==c||t[1]!==r||t[2]!==i?(l=c?null:(0,$.jsx)(Kt,{nav:r,trailing:i}),t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];let u=c?`min-h-full py-10`:`pt-8 pb-16`,f=Gt[s],p;t[4]!==u||t[5]!==f?(p=d(`mx-auto flex w-full flex-col`,u,Ut,f),t[4]=u,t[5]=f,t[6]=p):p=t[6];let m;t[7]!==n||t[8]!==p?(m=(0,$.jsx)(`section`,{className:p,children:n}),t[7]=n,t[8]=p,t[9]=m):m=t[9];let h;t[10]!==a||t[11]!==m?(h=(0,$.jsx)(`main`,{ref:a,className:`min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain`,children:m}),t[10]=a,t[11]=m,t[12]=h):h=t[12];let g;return t[13]!==l||t[14]!==h?(g=(0,$.jsx)(E,{children:(0,$.jsx)(O,{children:(0,$.jsxs)(`div`,{className:`hub-ambient flex h-dvh flex-col text-foreground`,children:[l,h]})})}),t[13]=l,t[14]=h,t[15]=g):g=t[15],g}var Jt=(0,Z.lazy)(()=>n(()=>import(`./AccountSettings-ckhtafp7.js`).then(e=>({default:e.AccountSettingsPanel})),[])),Yt=(0,Z.lazy)(()=>n(()=>import(`./AppearanceSettings-CDvljGDS.js`).then(e=>({default:e.AppearanceSettingsPanel})),[])),Xt=[{id:`overview`,label:`Overview`,icon:ce},{id:`security`,label:`Security`,icon:U},{id:`appearance`,label:`Appearance`,icon:ie}];function Zt(e){let t=(0,Q.c)(15),{section:n}=e,r=s($t),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsxs)(q,{variant:`ghost`,onClick:Qt,children:[(0,$.jsx)(x,{"aria-hidden":!0}),` Nodes`]}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=r===null?void 0:`${r.displayName} · ${r.role.charAt(0).toUpperCase()}${r.role.slice(1)}`,t[1]=r,t[2]=a);let o;t[3]===n?o=t[4]:(o=Xt.map(e=>{let t=e.id===n;return(0,$.jsx)(`li`,{children:(0,$.jsxs)(q,{variant:t?`secondary`:`ghost`,"aria-current":t?`page`:void 0,className:`w-full justify-start`,onClick:()=>R({kind:`account`,section:e.id}),children:[(0,$.jsx)(e.icon,{"aria-hidden":!0}),e.label]})},e.id)}),t[3]=n,t[4]=o);let c;t[5]===o?c=t[6]:(c=(0,$.jsx)(`nav`,{"aria-label":`Account`,className:`shrink-0 sm:w-48`,children:(0,$.jsx)(`ul`,{className:`flex gap-1 overflow-x-auto sm:flex-col sm:overflow-visible`,children:o})}),t[5]=o,t[6]=c);let l;t[7]===n?l=t[8]:(l=(0,$.jsx)(`div`,{className:`min-w-0 flex-1`,children:n===`overview`?(0,$.jsx)(en,{}):(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(he,{className:`h-64 w-full rounded-2xl`}),children:n===`security`?(0,$.jsx)(Jt,{}):(0,$.jsx)(Yt,{surface:`hub`})})}),t[7]=n,t[8]=l);let u;t[9]!==c||t[10]!==l?(u=(0,$.jsxs)(`div`,{className:`flex flex-col gap-6 sm:flex-row sm:gap-8`,children:[c,l]}),t[9]=c,t[10]=l,t[11]=u):u=t[11];let d;return t[12]!==a||t[13]!==u?(d=(0,$.jsx)(qt,{measure:`page`,trailing:i,children:(0,$.jsx)(zt,{title:`Account`,description:a,children:u})}),t[12]=a,t[13]=u,t[14]=d):d=t[14],d}function Qt(){return R({kind:`nodes`})}function $t(e){return e.account}function en(){let e=(0,Q.c)(11),t=s(tn),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`dt`,{className:`text-muted-foreground text-xs`,children:`Display name`}),e[0]=n):n=e[0];let r=t?.displayName??`—`,i;e[1]===r?i=e[2]:(i=(0,$.jsxs)(`div`,{children:[n,(0,$.jsx)(`dd`,{className:`mt-0.5 text-sm`,children:r})]}),e[1]=r,e[2]=i);let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(`dt`,{className:`text-muted-foreground text-xs`,children:`Role`}),e[3]=a):a=e[3];let o;e[4]===t?o=e[5]:(o=t===null?`—`:`${t.role.charAt(0).toUpperCase()}${t.role.slice(1)}`,e[4]=t,e[5]=o);let c;e[6]===o?c=e[7]:(c=(0,$.jsxs)(`div`,{children:[a,(0,$.jsx)(`dd`,{className:`mt-0.5 text-sm`,children:o})]}),e[6]=o,e[7]=c);let l;return e[8]!==i||e[9]!==c?(l=(0,$.jsx)(Bt,{title:`Your account`,description:`Identity this Hub knows you by.`,children:(0,$.jsxs)(`dl`,{className:`grid gap-x-6 gap-y-4 sm:grid-cols-2`,children:[i,c]})}),e[8]=i,e[9]=c,e[10]=l):l=e[10],l}function tn(e){return e.account}function nn(e){let t=(0,Q.c)(7),{links:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,a=typeof window>`u`?null:window.location.host,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=a===null?null:(0,$.jsxs)(`p`,{children:[`Signing in to `,(0,$.jsx)(`span`,{className:`font-medium text-foreground`,children:a})]}),t[2]=o):o=t[2];let s;t[3]===i?s=t[4]:(s=i.length===0?null:(0,$.jsx)(`ul`,{className:`flex flex-wrap items-center justify-center gap-x-4 gap-y-1`,children:i.map(rn)}),t[3]=i,t[4]=s);let c;return t[5]===s?c=t[6]:(c=(0,$.jsxs)(`footer`,{className:`mt-10 flex flex-col items-center gap-2 text-center text-muted-foreground text-xs`,children:[o,s]}),t[5]=s,t[6]=c),c}function rn(e){return(0,$.jsx)(`li`,{children:(0,$.jsx)(`a`,{className:`rounded-sm underline-offset-4 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring`,href:e.href,rel:`noreferrer`,target:`_blank`,children:e.label})},e.href)}function an(e){let t=(0,Q.c)(25),{children:n,title:r,description:i,actions:a,trailing:o,scrollRef:s,titleRef:c,measure:l}=e,u=l===void 0?`form`:l,f,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=d(Ht,`hub-ambient`),p=d(Wt,Ut,`py-10`),t[0]=f,t[1]=p):(f=t[0],p=t[1]);let m=Gt[u],h;t[2]===m?h=t[3]:(h=d(`my-auto w-full self-center phone:my-0 phone:flex phone:max-w-none phone:flex-1 phone:flex-col`,m),t[2]=m,t[3]=h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-8 flex justify-center phone:mb-6 phone:justify-start`,children:(0,$.jsx)(Vt,{size:`lg`})}),t[4]=g):g=t[4];let _;t[5]!==r||t[6]!==c?(_=(0,$.jsx)(`h1`,{ref:c,tabIndex:-1,className:`font-semibold text-2xl tracking-tight outline-none`,children:r}),t[5]=r,t[6]=c,t[7]=_):_=t[7];let v;t[8]===i?v=t[9]:(v=i===void 0?null:(0,$.jsx)(`p`,{className:`mt-2 text-muted-foreground text-sm leading-relaxed`,children:i}),t[8]=i,t[9]=v);let y;t[10]===n?y=t[11]:(y=(0,$.jsx)(`div`,{className:`mt-6 phone:flex phone:flex-1 phone:flex-col`,children:n}),t[10]=n,t[11]=y);let b;t[12]!==a||t[13]!==_||t[14]!==v||t[15]!==y||t[16]!==o?(b=(0,$.jsxs)(`section`,{className:`hub-gateway-panel app-surface relative rounded-2xl border p-6 not-dark:bg-clip-padding shadow-lg/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] sm:p-8 phone:flex phone:flex-1 phone:flex-col phone:rounded-none phone:border-0 phone:p-0 phone:shadow-none phone:before:hidden dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,children:[_,v,y,a,o]}),t[12]=a,t[13]=_,t[14]=v,t[15]=y,t[16]=o,t[17]=b):b=t[17];let x;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(nn,{}),t[18]=x):x=t[18];let S;t[19]!==b||t[20]!==h?(S=(0,$.jsx)(`div`,{className:p,children:(0,$.jsxs)(`div`,{className:h,children:[g,b,x]})}),t[19]=b,t[20]=h,t[21]=S):S=t[21];let C;return t[22]!==s||t[23]!==S?(C=(0,$.jsx)(`main`,{ref:s,className:f,children:S}),t[22]=s,t[23]=S,t[24]=C):C=t[24],C}function on({onClose:e}){let[t,n]=(0,Z.useState)(``),[r,a]=(0,Z.useState)(null),[o,s]=(0,Z.useState)(`input`),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(null),f=(0,Z.useRef)(``),p=(0,Z.useRef)(null);(0,Z.useEffect)(()=>()=>{p.current?.abort(),p.current=null,f.current=``},[]);let m=()=>{p.current?.abort();let e=new AbortController;return p.current=e,l(!0),d(null),e},h=e=>{p.current===e&&(p.current=null,l(!1))},g=async(e,t)=>{if(!(e instanceof DOMException&&e.name===`AbortError`)){if(e instanceof _&&e.status===401){f.current=``,n(``),a(null),await v.expireSession();return}d(t??(e instanceof _?e.message:`Hub is temporarily unavailable.`))}},y=async e=>{e.preventDefault();let r=t.trim();n(``),f.current=``;let o=m();try{let e=await i.lookupNodeEnrollment(r,o.signal);if(o.signal.aborted)return;f.current=r,a(e),s(`review`)}catch(e){await g(e)}finally{h(o)}},b=async()=>{let e=f.current;if(!e||!r)return;let t=m();try{if(await i.approveNodeEnrollment(e,t.signal),t.signal.aborted)return;f.current=``,a(null),s(`approved`),await v.refreshDirectory()}catch(e){f.current=``,a(null),s(`input`),await g(e,`The approval result is unknown. Enter the device code again to verify its current state.`)}finally{h(t)}},x=async()=>{let e=f.current;if(!e||!r)return;let t=m();try{if(await i.denyNodeEnrollment(e,t.signal),t.signal.aborted)return;f.current=``,a(null),s(`denied`)}catch(e){await g(e)}finally{h(t)}},S=()=>{p.current?.abort(),f.current=``,n(``),a(null),e()};return o===`approved`||o===`denied`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(D,{"aria-hidden":!0,className:`size-8 text-primary`}),(0,$.jsx)(`h1`,{className:`mt-4 text-2xl font-semibold`,children:o===`approved`?`Node approved`:`Enrollment denied`}),(0,$.jsx)(`p`,{role:`status`,className:`mt-2 text-sm text-muted-foreground`,children:o===`approved`?`The node can now finish enrollment and connect. Online presence may take a few seconds.`:`This ceremony cannot be reused. Start a new enrollment on the node if needed.`}),(0,$.jsx)(q,{className:`mt-5`,onClick:S,children:`Back to nodes`})]}):r?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(oe,{"aria-hidden":!0,className:`size-8 text-primary`}),(0,$.jsx)(`h1`,{className:`mt-4 text-2xl font-semibold`,children:`Review node enrollment`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Compare every field, especially the fingerprint, with the node or a trusted operator channel before approving.`}),(0,$.jsxs)(Ye,{className:`mt-5 rounded-xl border border-border bg-background p-4`,children:[(0,$.jsx)(X,{term:`Label`,children:(0,$.jsx)(`span`,{className:`font-medium break-words`,children:r.label})}),(0,$.jsx)(X,{term:`Platform`,children:`${r.platformOs} · ${r.platformArch}`}),(0,$.jsx)(X,{term:`Version`,mono:!0,children:r.clientVersion}),(0,$.jsx)(X,{term:`Algorithm`,children:r.algorithm}),(0,$.jsx)(X,{term:`Fingerprint`,mono:!0,children:r.fingerprint}),(0,$.jsx)(X,{term:`Expires`,children:new Date(r.expiresAt).toLocaleString()})]}),u?(0,$.jsx)(`p`,{role:`alert`,className:`mt-4 text-sm text-destructive`,children:u}):null,o===`confirm-denial`?(0,$.jsxs)(`div`,{className:`mt-4 rounded-lg border border-destructive/30 bg-destructive/5 p-3`,children:[(0,$.jsxs)(`p`,{className:`flex gap-2 text-sm`,children:[(0,$.jsx)(se,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0`}),` Denial is permanent for this device code.`]}),(0,$.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[(0,$.jsx)(q,{variant:`destructive`,disabled:c,onClick:()=>void x(),children:`Confirm denial`}),(0,$.jsx)(q,{variant:`outline`,disabled:c,onClick:()=>s(`review`),children:`Keep reviewing`})]})]}):(0,$.jsxs)(`div`,{className:`mt-5 flex flex-wrap gap-2`,children:[(0,$.jsx)(q,{disabled:c,onClick:()=>void b(),children:c?`Approving…`:`Approve node`}),(0,$.jsx)(q,{variant:`outline`,disabled:c,onClick:()=>s(`confirm-denial`),children:`Deny`}),(0,$.jsx)(q,{variant:`ghost`,disabled:c,onClick:S,children:`Cancel`})]})]}):(0,$.jsxs)(`div`,{children:[(0,$.jsx)(oe,{"aria-hidden":!0,className:`size-8 text-primary`}),(0,$.jsx)(`h1`,{className:`mt-4 text-2xl font-semibold`,children:`Enroll a Ryco node`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Start enrollment on the node, then enter the short device code shown there. Codes expire after ten minutes.`}),u?(0,$.jsx)(`p`,{role:`alert`,className:`mt-4 text-sm text-destructive`,children:u}):null,(0,$.jsxs)(`form`,{className:`mt-5 space-y-4`,autoComplete:`off`,onSubmit:e=>void y(e),children:[(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-node-device-code`,children:`Device code`}),(0,$.jsx)(G,{id:`hub-node-device-code`,required:!0,autoFocus:!0,maxLength:16,value:t,className:`font-mono uppercase ${W}`,onChange:e=>n(e.currentTarget.value)})]}),(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,$.jsx)(q,{type:`submit`,disabled:c,children:c?`Looking up…`:`Review node`}),(0,$.jsx)(q,{type:`button`,variant:`outline`,onClick:S,children:`Cancel`})]})]})]})}function sn(e){let t=(0,Q.c)(14),{step:n,total:r,label:i}=e,a=Math.min(Math.max(n,1),r),o;t[0]===i?o=t[1]:(o=i===void 0?null:(0,$.jsxs)(`span`,{className:`sr-only`,children:[`: `,i]}),t[0]=i,t[1]=o);let s;t[2]!==a||t[3]!==o||t[4]!==r?(s=(0,$.jsxs)(`p`,{className:`font-medium text-muted-foreground text-xs`,children:[`Step `,a,` of `,r,o]}),t[2]=a,t[3]=o,t[4]=r,t[5]=s):s=t[5];let c;if(t[6]!==a||t[7]!==r){let e;t[9]===a?e=t[10]:(e=(e,t)=>(0,$.jsx)(`span`,{className:`h-1 flex-1 rounded-full transition-colors ${t<a?`bg-primary`:`bg-border`}`},t),t[9]=a,t[10]=e),c=(0,$.jsx)(`div`,{"aria-hidden":!0,className:`flex flex-1 items-center gap-1.5`,children:Array.from({length:r},e)}),t[6]=a,t[7]=r,t[8]=c}else c=t[8];let l;return t[11]!==s||t[12]!==c?(l=(0,$.jsxs)(`div`,{className:`mb-6 flex items-center gap-3`,children:[s,c]}),t[11]=s,t[12]=c,t[13]=l):l=t[13],l}var cn=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,ln=null;function un(){return window.turnstile?Promise.resolve(window.turnstile):ln||(ln=new Promise((e,t)=>{let n=document.querySelector(`script[src="${cn}"]`),r=n??document.createElement(`script`);r.addEventListener(`load`,()=>{window.turnstile?e(window.turnstile):t(Error(`Turnstile did not initialize`))},{once:!0}),r.addEventListener(`error`,()=>t(Error(`Turnstile could not be loaded`)),{once:!0}),n||(r.src=cn,r.async=!0,r.defer=!0,document.head.append(r))}).catch(e=>{throw ln=null,e}),ln)}function dn(e){let t=(0,Q.c)(10),{siteKey:n,action:r,onToken:i}=e,a=(0,Z.useRef)(null),[o,s]=(0,Z.useState)(!1),c,l;t[0]!==r||t[1]!==i||t[2]!==n?(c=()=>{let e=!1,t=null;return i(null),s(!1),un().then(o=>{e||a.current===null||(t={api:o,id:o.render(a.current,{sitekey:n,action:r,theme:document.documentElement.classList.contains(`dark`)?`dark`:`light`,callback:t=>{e||i(t)},"expired-callback":()=>{e||i(null)},"error-callback":()=>{e||(i(null),s(!0))}})})}).catch(()=>{e||s(!0)}),()=>{e=!0,i(null),t&&t.api.remove(t.id)}},l=[r,i,n],t[0]=r,t[1]=i,t[2]=n,t[3]=c,t[4]=l):(c=t[3],l=t[4]),(0,Z.useEffect)(c,l);let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(`div`,{ref:a,"aria-label":`Anti-bot verification`,className:`min-h-[65px]`}),t[5]=u):u=t[5];let d;t[6]===o?d=t[7]:(d=o?(0,$.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:`Verification could not load. Check your connection and try again.`}):null,t[6]=o,t[7]=d);let f;return t[8]===d?f=t[9]:(f=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[u,d]}),t[8]=d,t[9]=f),f}function fn(e,t){return e instanceof _?e.message:t}function pn(){let e=new Uint8Array(32);return crypto.getRandomValues(e),g(e)}function mn(){let e=(0,Q.c)(5),[t,n]=(0,Z.useState)(null),[r,a]=(0,Z.useState)(!0),o,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{let e=new AbortController;return i.getPublicSignupConfiguration(e.signal).then(n).catch(()=>n({status:`disabled`})).finally(()=>{e.signal.aborted||a(!1)}),()=>e.abort()},s=[],e[0]=o,e[1]=s):(o=e[0],s=e[1]),(0,Z.useEffect)(o,s);let c;return e[2]!==t||e[3]!==r?(c={config:t,loading:r},e[2]=t,e[3]=r,e[4]=c):c=e[4],c}function hn(e){return e!==null&&`activationSecret`in e}function gn({config:e,initialLink:t,onConsumeLink:n,onCancel:r}){let[a,o]=(0,Z.useState)(t?.kind===`signup-verification`||t?.kind===`invalid-signup-verification`?`verifying`:`details`),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(``),[p,m]=(0,Z.useState)(``),[h,g]=(0,Z.useState)(``),[_,y]=(0,Z.useState)(null),[b,x]=(0,Z.useState)(!1),[S,w]=(0,Z.useState)(null),T=(0,Z.useRef)(null),E=(0,Z.useRef)(!1);(0,Z.useEffect)(()=>{if(E.current||t===null)return;if(E.current=!0,t.kind!==`signup-verification`){t.kind===`invalid-signup-verification`&&(w(`This verification link is incomplete or expired. Start signup again.`),o(`details`));return}let e=new AbortController;return x(!0),i.verifyPublicSignup({attemptId:t.attemptId,attemptSecret:t.attemptSecret,proof:{kind:`link_token`,token:t.token}},e.signal).then(e=>{T.current=e,o(`credential`)}).catch(e=>w(fn(e,`This verification link could not be confirmed.`))).finally(()=>{n(),e.signal.aborted||x(!1)}),()=>e.abort()},[t,n]);let D=async t=>{if(t.preventDefault(),b||e===null)return;let n=e.antiBot.provider===`bypass`?`development`:_??``;if(!n){w(`Complete the anti-bot check before continuing.`);return}x(!0),w(null);try{let e=await i.startPublicSignup({username:s.trim().toLowerCase(),email:l.trim().toLowerCase(),antiBotAssertion:n});T.current=e,o(`check-email`)}catch(e){w(fn(e,`Account creation is temporarily unavailable.`))}finally{x(!1)}},O=async e=>{e.preventDefault();let t=T.current;if(!(b||t===null||!(`attemptSecret`in t))){x(!0),w(null);try{let e=await i.verifyPublicSignup({attemptId:t.attemptId,attemptSecret:t.attemptSecret,proof:{kind:`email_code`,code:d.trim()}});f(``),T.current=e,o(`credential`)}catch(e){w(fn(e,`That email code could not be verified.`))}finally{x(!1)}}},k=async e=>{let t=T.current;if(b||!hn(t))return;if(e===`password`&&p!==h){w(`The passwords do not match.`);return}x(!0),w(null);let n=p;m(``),g(``);try{let r=e===`passkey`?await i.finishPublicSignupWithPasskey({attemptId:t.attemptId,activationSecret:t.activationSecret,idempotencyKey:pn()}):await i.finishPublicSignupWithPassword({attemptId:t.attemptId,activationSecret:t.activationSecret,password:n,idempotencyKey:pn()});T.current=null,await v.adoptPublicBrowserIdentity(r.identity,r.recoveryCodes)}catch(e){w(fn(e,`Account creation did not complete.`))}finally{x(!1)}},A=a===`details`?1:a===`check-email`||a===`verifying`?2:3;return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,$.jsx)(sn,{step:A,total:3,label:A===1?`Your details`:A===2?`Verify your email`:`Choose how you sign in`}),a===`details`?(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:e=>void D(e),children:[(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-signup-username`,children:`Username`}),(0,$.jsx)(G,{id:`hub-signup-username`,autoCapitalize:`none`,autoComplete:`username`,maxLength:32,pattern:`[A-Za-z0-9_]+`,required:!0,value:s,className:W,onChange:e=>c(e.currentTarget.value.toLowerCase())}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Lowercase letters, numbers, and underscores.`})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-signup-email`,children:`Email`}),(0,$.jsx)(G,{id:`hub-signup-email`,type:`email`,autoCapitalize:`none`,autoComplete:`email`,maxLength:254,required:!0,value:l,className:W,onChange:e=>u(e.currentTarget.value)})]}),e?.antiBot.provider===`turnstile`?(0,$.jsx)(dn,{siteKey:e.antiBot.siteKey,action:`public_signup`,onToken:y}):null,(0,$.jsx)(xn,{value:S}),(0,$.jsx)(Sn,{onCancel:r,pending:b,submitLabel:`Send verification email`,submitDisabled:e===null})]}):a===`check-email`?(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:e=>void O(e),children:[(0,$.jsxs)(`div`,{className:`rounded-xl border border-border bg-background/60 p-4`,children:[(0,$.jsx)(Ze,{"aria-hidden":!0,className:`size-5 text-primary`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium`,children:`Check your email`}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:`Enter the six-digit code, or open the verification link on this device.`})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-signup-code`,children:`Verification code`}),(0,$.jsx)(G,{id:`hub-signup-code`,inputMode:`numeric`,autoComplete:`one-time-code`,maxLength:6,pattern:`[0-9]{6}`,required:!0,value:d,className:W,onChange:e=>f(e.currentTarget.value)})]}),(0,$.jsx)(xn,{value:S}),(0,$.jsx)(Sn,{onCancel:r,pending:b,submitLabel:`Verify email`})]}):a===`password`?(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:e=>{e.preventDefault(),k(`password`)},children:[(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-signup-password`,children:`Password`}),(0,$.jsx)(G,{id:`hub-signup-password`,type:`password`,autoComplete:`new-password`,minLength:12,maxLength:256,required:!0,value:p,className:W,onChange:e=>m(e.currentTarget.value)})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-signup-password-confirmation`,children:`Repeat password`}),(0,$.jsx)(G,{id:`hub-signup-password-confirmation`,type:`password`,autoComplete:`new-password`,minLength:12,maxLength:256,required:!0,value:h,className:W,onChange:e=>g(e.currentTarget.value)})]}),(0,$.jsxs)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:[`At least `,12,` characters. Password sign-in always asks for an email or authenticator code too.`]}),(0,$.jsx)(xn,{value:S}),(0,$.jsx)(Sn,{onCancel:()=>o(`credential`),pending:b,submitLabel:`Create account`})]}):(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`rounded-xl border border-border bg-background/60 p-4`,children:[(0,$.jsx)(U,{"aria-hidden":!0,className:`size-5 text-primary`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium`,children:a===`verifying`?`Verifying your email…`:`Choose how you sign in`}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-relaxed text-muted-foreground`,children:`A passkey is the strongest and easiest option. A password always requires a second factor on future sign-ins.`})]}),(0,$.jsx)(xn,{value:S}),(0,$.jsxs)(`div`,{className:`space-y-3 phone:mt-auto ${qe}`,children:[(0,$.jsxs)(q,{type:`button`,size:`lg`,className:`min-h-11 w-full`,disabled:b||a===`verifying`,onClick:()=>void k(`passkey`),children:[b?(0,$.jsx)(C,{"aria-hidden":!0,className:`animate-spin`}):(0,$.jsx)(j,{"aria-hidden":!0}),b?`Creating passkey…`:`Create a passkey`]}),(0,$.jsx)(q,{type:`button`,variant:`outline`,className:`min-h-11 w-full`,disabled:b||a===`verifying`,onClick:()=>o(`password`),children:`Use a password instead`}),(0,$.jsx)(q,{type:`button`,variant:`ghost`,className:`min-h-11 w-full`,onClick:r,children:`Cancel`})]})]})]})}function _n({pendingSignup:e,config:t,onCancel:n}){let[r,a]=(0,Z.useState)(e.suggestedUsername??``),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(null),f=async e=>{if(e.preventDefault(),c||t===null)return;let n=t.antiBot.provider===`bypass`?`development`:o??``;if(!n){d(`Complete the anti-bot check before continuing.`);return}l(!0),d(null);try{let e=await i.finishExternalIdentitySignup({provider:`github`,username:r.trim().toLowerCase(),antiBotAssertion:n,idempotencyKey:pn()});await v.adoptPublicBrowserIdentity(e.identity,e.recoveryCodes)}catch(e){d(fn(e,`GitHub signup did not complete.`))}finally{l(!1)}};return(0,$.jsxs)(`form`,{className:`flex flex-1 flex-col space-y-4`,onSubmit:e=>void f(e),children:[(0,$.jsx)(sn,{step:1,total:1,label:`Confirm your Ryco username`}),(0,$.jsxs)(`div`,{className:`rounded-xl border border-border bg-background/60 p-4`,children:[(0,$.jsx)(U,{"aria-hidden":!0,className:`size-5 text-primary`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium`,children:`GitHub verified`}),(0,$.jsxs)(`p`,{className:`mt-1 text-sm leading-relaxed text-muted-foreground`,children:[e.displayName?`${e.displayName} authorized Ryco through GitHub. `:`GitHub authorized this account. `,`Choose the public username Ryco should use. Nothing is created until you confirm.`]})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-external-signup-username`,children:`Username`}),(0,$.jsx)(G,{id:`hub-external-signup-username`,autoCapitalize:`none`,autoComplete:`username`,maxLength:32,pattern:`[A-Za-z0-9_]+`,required:!0,value:r,className:W,onChange:e=>a(e.currentTarget.value.toLowerCase())}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`GitHub suggested this name. You can change it before creating the account.`})]}),t?.antiBot.provider===`turnstile`?(0,$.jsx)(dn,{siteKey:t.antiBot.siteKey,action:`external_signup`,onToken:s}):null,(0,$.jsx)(xn,{value:u}),(0,$.jsx)(Sn,{onCancel:n,pending:c,submitLabel:`Create account with GitHub`,submitDisabled:t===null})]})}function vn({onCancel:e,onUseRecoveryCode:t,onResetPassword:n}){let[r,a]=(0,Z.useState)(``),[o,s]=(0,Z.useState)(``),[c,l]=(0,Z.useState)(``),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=async e=>{if(e.preventDefault(),!f){p(!0),h(null);try{if(u===null){let e=await i.startPasswordLogin({identifier:r.trim().toLowerCase(),password:o});s(``),d(e)}else{let e=await i.finishPasswordLogin({attemptId:u.attemptId,attemptSecret:u.attemptSecret,factor:u.factor,code:c.trim()});l(``),await v.adoptPublicBrowserIdentity(e)}}catch(e){h(fn(e,`Password sign-in did not complete.`))}finally{p(!1)}}};return(0,$.jsxs)(`form`,{className:`mt-6 flex flex-1 flex-col space-y-4`,onSubmit:e=>void g(e),children:[u===null?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-login-identifier`,children:`Username or verified email`}),(0,$.jsx)(G,{id:`hub-login-identifier`,autoCapitalize:`none`,autoComplete:`username`,required:!0,value:r,className:W,onChange:e=>a(e.currentTarget.value)})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-login-password`,children:`Password`}),(0,$.jsx)(G,{id:`hub-login-password`,type:`password`,autoComplete:`current-password`,required:!0,maxLength:256,value:o,className:W,onChange:e=>s(e.currentTarget.value)})]})]}):(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-login-second-factor`,children:u.factor===`totp`?`Authenticator code`:`Email code`}),(0,$.jsx)(G,{id:`hub-login-second-factor`,inputMode:`numeric`,autoComplete:`one-time-code`,pattern:`[0-9]{6}`,maxLength:6,required:!0,value:c,className:W,onChange:e=>l(e.currentTarget.value)}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:u.factor===`totp`?`Enter the current code from your authenticator app.`:`We sent a six-digit code to your verified email address.`})]}),(0,$.jsx)(xn,{value:m}),u===null?(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,$.jsx)(q,{type:`button`,variant:`ghost`,size:`sm`,onClick:t,children:`Use recovery code`}),(0,$.jsx)(q,{type:`button`,variant:`ghost`,size:`sm`,onClick:n,children:`Forgot password?`})]}):null,(0,$.jsx)(Sn,{onCancel:u===null?e:()=>d(null),pending:f,submitLabel:u===null?`Continue`:`Sign in`})]})}function yn({initialLink:e,onConsumeLink:t,onCancel:n}){let[r,a]=(0,Z.useState)(e?.kind===`password-reset`||e?.kind===`invalid-password-reset`?`verifying`:`request`),[o,s]=(0,Z.useState)(``),[c,l]=(0,Z.useState)(``),[u,d]=(0,Z.useState)(``),[f,p]=(0,Z.useState)(``),[m,h]=(0,Z.useState)(``),[g,_]=(0,Z.useState)(!1),[v,y]=(0,Z.useState)(null),b=(0,Z.useRef)(null),x=(0,Z.useRef)(!1),S=async(e,t)=>{let n=await i.verifyPasswordReset({token:e},t);b.current=n,l(``),a(`password`)};(0,Z.useEffect)(()=>{if(x.current||e===null)return;if(x.current=!0,e.kind!==`password-reset`){e.kind===`invalid-password-reset`&&(y(`This reset link is incomplete or expired. Request a new one.`),a(`request`));return}let n=new AbortController;return _(!0),S(e.token,n.signal).catch(e=>y(fn(e,`This reset link could not be verified.`))).finally(()=>{t(),n.signal.aborted||_(!1)}),()=>n.abort()},[e,t]);let C=async e=>{if(e.preventDefault(),!g){_(!0),y(null);try{if(r===`request`)await i.requestPasswordReset({identifier:o.trim().toLowerCase()}),a(`check-email`);else if(r===`check-email`)await S(c.trim());else if(r===`password`){let e=b.current;if(e===null)return;if(u!==f){y(`The passwords do not match.`);return}let t=u;d(``),p(``),await i.finishPasswordReset({attemptId:e.attemptId,attemptSecret:e.attemptSecret,password:t,factor:e.requiresTotp?{kind:`totp`,code:m.trim()}:{kind:`none`}}),h(``),b.current=null,a(`complete`)}}catch(e){y(fn(e,`Password reset did not complete.`))}finally{_(!1)}}},w=r===`request`?1:r===`check-email`||r===`verifying`?2:3;return(0,$.jsxs)(`form`,{className:`flex flex-1 flex-col space-y-4`,onSubmit:e=>void C(e),children:[r===`complete`?null:(0,$.jsx)(sn,{step:w,total:3,label:w===1?`Find your account`:w===2?`Check your email`:`Set a new password`}),r===`request`?(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-reset-identifier`,children:`Username or verified email`}),(0,$.jsx)(G,{id:`hub-reset-identifier`,autoCapitalize:`none`,autoComplete:`username`,required:!0,value:o,className:W,onChange:e=>s(e.currentTarget.value)}),(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`If the account is eligible, its verified address receives a single-use reset link.`})]}):r===`check-email`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`rounded-xl border border-border bg-background/60 p-4`,children:[(0,$.jsx)(Ze,{"aria-hidden":!0,className:`size-5 text-primary`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium`,children:`Check your email`}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:`Open the reset link, or paste its token below.`})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-reset-token`,children:`Reset token`}),(0,$.jsx)(G,{id:`hub-reset-token`,type:`password`,autoComplete:`one-time-code`,maxLength:64,required:!0,value:c,className:W,onChange:e=>l(e.currentTarget.value)})]})]}):r===`password`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-reset-password`,children:`New password`}),(0,$.jsx)(G,{id:`hub-reset-password`,type:`password`,autoComplete:`new-password`,minLength:12,maxLength:256,required:!0,value:u,className:W,onChange:e=>d(e.currentTarget.value)})]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-reset-password-confirmation`,children:`Repeat password`}),(0,$.jsx)(G,{id:`hub-reset-password-confirmation`,type:`password`,autoComplete:`new-password`,minLength:12,maxLength:256,required:!0,value:f,className:W,onChange:e=>p(e.currentTarget.value)})]}),b.current?.requiresTotp?(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-reset-totp`,children:`Authenticator code`}),(0,$.jsx)(G,{id:`hub-reset-totp`,inputMode:`numeric`,autoComplete:`one-time-code`,pattern:`[0-9]{6}`,maxLength:6,required:!0,value:m,className:W,onChange:e=>h(e.currentTarget.value)})]}):null]}):r===`complete`?(0,$.jsxs)(`div`,{className:`rounded-xl border border-border bg-background/60 p-4`,children:[(0,$.jsx)(U,{"aria-hidden":!0,className:`size-5 text-primary`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium`,children:`Password changed`}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-relaxed text-muted-foreground`,children:`Every previous session was revoked. Sign in again with the new password and its normal second factor.`})]}):(0,$.jsx)(`p`,{role:`status`,className:`text-sm text-muted-foreground`,children:`Verifying your reset link…`}),(0,$.jsx)(xn,{value:v}),r===`complete`?(0,$.jsx)(`div`,{className:`phone:mt-auto ${qe}`,children:(0,$.jsx)(q,{type:`button`,className:`min-h-11 w-full`,onClick:n,children:`Back to sign in`})}):(0,$.jsx)(Sn,{onCancel:n,pending:g,submitLabel:r===`request`?`Send reset email`:r===`check-email`?`Verify reset token`:r===`password`?`Change password`:`Verifying…`,submitDisabled:r===`verifying`})]})}function bn({onCancel:e}){let[t,n]=(0,Z.useState)(``),[r,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),c=async e=>{if(e.preventDefault(),r)return;a(!0),s(null);let o=t;n(``);try{await i.signInWithRecoveryCode(o),await v.bootstrap()}catch(e){s(fn(e,`That recovery code could not be used.`))}finally{a(!1)}};return(0,$.jsxs)(`form`,{className:`mt-6 flex flex-1 flex-col space-y-4`,onSubmit:e=>void c(e),children:[(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(Y,{htmlFor:`hub-login-recovery-code`,children:`Recovery code`}),(0,$.jsx)(G,{id:`hub-login-recovery-code`,type:`password`,autoComplete:`one-time-code`,required:!0,maxLength:128,value:t,className:W,onChange:e=>n(e.currentTarget.value)})]}),(0,$.jsx)(xn,{value:o}),(0,$.jsx)(Sn,{onCancel:e,pending:r,submitLabel:`Use recovery code`})]})}function xn(e){let t=(0,Q.c)(2),{value:n}=e,r;return t[0]===n?r=t[1]:(r=n?(0,$.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:n}):null,t[0]=n,t[1]=r),r}function Sn(e){let t=(0,Q.c)(12),{onCancel:n,pending:r,submitLabel:i,submitDisabled:a}=e,o=r||a!==void 0&&a,s;t[0]===r?s=t[1]:(s=r?(0,$.jsx)(C,{"aria-hidden":!0,className:`animate-spin motion-reduce:animate-none`}):null,t[0]=r,t[1]=s);let c=r?`Working…`:i,l;t[2]!==o||t[3]!==s||t[4]!==c?(l=(0,$.jsxs)(q,{type:`submit`,size:`lg`,className:`min-h-11 w-full`,disabled:o,children:[s,c]}),t[2]=o,t[3]=s,t[4]=c,t[5]=l):l=t[5];let u;t[6]!==n||t[7]!==r?(u=(0,$.jsx)(q,{type:`button`,variant:`ghost`,className:`min-h-11 w-full`,disabled:r,onClick:n,children:`Back`}),t[6]=n,t[7]=r,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=(0,$.jsxs)(`div`,{className:`space-y-3 phone:mt-auto ${qe}`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}var Cn;function wn(){if(window.location.pathname!==`/email-verification`)return null;if(Cn!==void 0)return Cn;let e=tt({href:window.location.href,historyState:window.history.state,replaceState:(e,t,n)=>window.history.replaceState(e,t,n)});return Cn=e?.kind===`email-verification`||e?.kind===`invalid-email-verification`?e:null,Cn}function Tn(){let e=(0,Q.c)(3),t=M(),n,r;e[0]===t?(n=e[1],r=e[2]):(n=()=>{document.title=Ke(t===null?void 0:V(t))},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r)}function En(){let e=(0,Q.c)(30),[t,n]=(0,Z.useState)(wn),r=s(Pn),i=s(Nn),o=s(Mn),u=s(jn),d=s(An),f=s(kn),p=c(On),m=I(),h;e[0]===m.logicalPathname?h=e[1]:(h=P(m.logicalPathname),e[0]=m.logicalPathname,e[1]=h);let g=h,_;e[2]===g?_=e[3]:(_=e=>l(e,g),e[2]=g,e[3]=_);let v=a(_),b=ne();F();let x;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(x=[],e[4]=x):x=e[4],(0,Z.useEffect)(Dn,x),nt(),Tn();let S=M(),C;e[5]!==r||e[6]!==S?.kind?(C=()=>{r===`authenticated`&&S?.kind===`sign-up`&&L(`/`,{replace:!0})},e[5]=r,e[6]=S?.kind,e[7]=C):C=e[7];let w;if(e[8]!==r||e[9]!==S?(w=[r,S],e[8]=r,e[9]=S,e[10]=w):w=e[10],(0,Z.useEffect)(C,w),t?.kind===`email-verification`||t?.kind===`invalid-email-verification`){let r;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{window.history.replaceState(window.history.state,``,`/`),n(null)},e[11]=r):r=e[11];let i;return e[12]===t?i=e[13]:(i=(0,$.jsx)(Fn,{link:t,onContinue:r}),e[12]=t,e[13]=i),i}if(r!==`authenticated`){let t;return e[14]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(Gn,{}),e[14]=t):t=e[14],t}if(o.length>0&&!p){let t;return e[15]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(Jn,{}),e[15]=t):t=e[15],t}if(S?.kind===`account`){let t;return e[16]===S.section?t=e[17]:(t=(0,$.jsx)(Zt,{section:S.section}),e[16]=S.section,e[17]=t),t}if(S?.kind===`nodes`||S?.kind===`nodes-enroll`){let t;return e[18]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)($n,{}),e[18]=t):t=e[18],t}if(m.nodeId===null){if(b||m.malformed){let t;return e[19]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)($n,{}),e[19]=t):t=e[19],t}if(i&&d){let t;return e[20]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(y,{authGateState:{status:`hosted-hub`}}),e[20]=t):t=e[20],t}let t;return e[21]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(y,{authGateState:{status:`hosted-cached`}}),e[21]=t):t=e[21],t}if(!i||i.id!==m.nodeId){let t;return e[22]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(Vn,{}),e[22]=t):t=e[22],t}if(u===`terminal-failure`){let t;return e[23]!==f||e[24]!==i?(t=(0,$.jsx)(Rn,{node:i,message:f}),e[23]=f,e[24]=i,e[25]=t):t=e[25],t}if(!d){if(v){let t;return e[26]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(y,{authGateState:{status:`hosted-cached`}}),e[26]=t):t=e[26],t}let t;return e[27]===i?t=e[28]:(t=(0,$.jsx)(Hn,{node:i}),e[27]=i,e[28]=t),t}let T;return e[29]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(y,{authGateState:{status:`hosted-hub`}}),e[29]=T):T=e[29],T}function Dn(){return m()}function On(e){return e.leased}function kn(e){return e.errorMessage}function An(e){return e.sessionEstablished}function jn(e){return e.transportStatus}function Mn(e){return e.recoveryCodes}function Nn(e){return e.selectedNode}function Pn(e){return e.accountStatus}function Fn(e){let t=(0,Q.c)(15),{link:n,onContinue:r}=e,[a,o]=(0,Z.useState)(n.kind===`email-verification`?`verifying`:`invalid`),s;t[0]!==n.kind||t[1]!==n.token?(s=()=>{if(n.kind!==`email-verification`)return;let e=new AbortController;return i.confirmEmailVerification(n.token,e.signal).then(()=>o(`verified`)).catch(()=>{e.signal.aborted||o(`invalid`)}).finally(In),()=>e.abort()},t[0]=n.kind,t[1]=n.token,t[2]=s):s=t[2];let c;t[3]===n?c=t[4]:(c=[n],t[3]=n,t[4]=c),(0,Z.useEffect)(s,c);let l=a===`verifying`?`Verifying your email`:a===`verified`?`Email verified`:`This verification link is unavailable`,u=a===`verifying`?`This will only take a moment.`:a===`verified`?`Your address is now available for account recovery.`:`The link is incomplete, expired, or has already been used. Request a new one from Account settings.`,d;t[5]!==r||t[6]!==a?(d=a===`verifying`?void 0:(0,$.jsx)(q,{size:`cta`,className:`mt-6 w-full`,onClick:r,children:`Continue`}),t[5]=r,t[6]=a,t[7]=d):d=t[7];let f;t[8]===a?f=t[9]:(f=a===`verifying`?(0,$.jsxs)(`p`,{role:`status`,"aria-live":`polite`,className:`text-muted-foreground text-sm`,children:[(0,$.jsx)(Ln,{}),`Confirming the link…`]}):null,t[8]=a,t[9]=f);let p;return t[10]!==l||t[11]!==u||t[12]!==d||t[13]!==f?(p=(0,$.jsx)(an,{title:l,description:u,actions:d,children:f}),t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p):p=t[14],p}function In(){Cn=void 0}function Ln(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(C,{"aria-hidden":!0,className:`mr-2 inline size-4 animate-spin align-[-0.15em] motion-reduce:animate-none`}),e[0]=t):t=e[0],t}function Rn(e){let t=(0,Q.c)(10),{node:n,message:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(H,{}),t[0]=i):i=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(se,{"aria-hidden":!0,className:`size-8 text-destructive`}),t[1]=a):a=t[1];let o=`Unable to connect to ${n.label}`,s=r??`The relay session could not be established. Choose another node or retry.`,c;t[2]===s?c=t[3]:(c=(0,$.jsx)(`p`,{role:`alert`,className:`text-muted-foreground text-sm`,children:s}),t[2]=s,t[3]=c);let l;t[4]===r?l=t[5]:(l=r===`Ryco state could not be synchronized.`?(0,$.jsxs)(q,{className:`mt-5`,onClick:zn,children:[(0,$.jsx)(ae,{"aria-hidden":!0}),` Retry`]}):null,t[4]=r,t[5]=l);let u;return t[6]!==o||t[7]!==c||t[8]!==l?(u=(0,$.jsx)(qt,{measure:`content`,trailing:i,children:(0,$.jsxs)(Bn,{tone:`destructive`,icon:a,title:o,children:[c,l]})}),t[6]=o,t[7]=c,t[8]=l,t[9]=u):u=t[9],u}function zn(){v.retrySelectedNode()}function Bn(e){let t=(0,Q.c)(9),{children:n,icon:r,title:i,tone:a}=e,o=`mt-4 font-semibold text-2xl tracking-tight ${(a===void 0?`default`:a)===`destructive`?`text-foreground`:``}`,s;t[0]!==o||t[1]!==i?(s=(0,$.jsx)(`h1`,{className:o,children:i}),t[0]=o,t[1]=i,t[2]=s):s=t[2];let c;t[3]===n?c=t[4]:(c=(0,$.jsx)(`div`,{className:`mt-2`,children:n}),t[3]=n,t[4]=c);let l;return t[5]!==r||t[6]!==s||t[7]!==c?(l=(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-lg flex-col items-center pt-10 text-center`,children:[r,s,c]}),t[5]=r,t[6]=s,t[7]=c,t[8]=l):l=t[8],l}function Vn(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(oe,{"aria-hidden":!0,className:`size-8 text-primary`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(qt,{measure:`content`,children:(0,$.jsx)(Bn,{icon:t,title:`Restoring your node`,children:(0,$.jsxs)(`p`,{role:`status`,"aria-live":`polite`,className:`text-muted-foreground text-sm`,children:[(0,$.jsx)(Ln,{}),`Checking your access before reconnecting…`]})})}),e[1]=n):n=e[1],n}function Hn(e){let t=(0,Q.c)(7),{node:n}=e,{returnToAllNodes:r}=N(),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(oe,{"aria-hidden":!0,className:`size-8 text-primary`}),t[0]=i):i=t[0];let a=`Connecting to ${n.label}`,o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsxs)(`p`,{role:`status`,"aria-live":`polite`,className:`text-muted-foreground text-sm`,children:[(0,$.jsx)(Ln,{}),`Preparing a private relay session and synchronizing Ryco state…`]}),t[1]=o):o=t[1];let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(q,{variant:`outline`,className:`mt-5 phone:min-h-11`,onClick:()=>void r(),children:`Back to nodes`}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==s?(c=(0,$.jsx)(qt,{measure:`content`,children:(0,$.jsxs)(Bn,{icon:i,title:a,children:[o,s]})}),t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function Un(e){let t=(0,Q.c)(15),{bootstrapAvailable:n,publicSignupEnabled:r}=e,[i,a]=(0,Z.useState)(!1),o=(0,Z.useId)(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>a(Wn),t[0]=s):s=t[0];let c=`transition-transform ${i?`rotate-180`:``}`,l;t[1]===c?l=t[2]:(l=(0,$.jsx)(w,{"aria-hidden":!0,className:c}),t[1]=c,t[2]=l);let u;t[3]!==i||t[4]!==o||t[5]!==l?(u=(0,$.jsxs)(q,{variant:`ghost`,size:`sm`,"aria-expanded":i,"aria-controls":o,className:`-mx-2 h-auto min-h-8 max-w-full whitespace-normal py-1.5 text-left phone:min-h-11`,onClick:s,children:[`New to this Hub?`,l]}),t[3]=i,t[4]=o,t[5]=l,t[6]=u):u=t[6];let d;t[7]!==n||t[8]!==i||t[9]!==o||t[10]!==r?(d=i?(0,$.jsxs)(`div`,{id:o,className:`mt-2 space-y-2 text-xs leading-relaxed text-muted-foreground`,children:[(0,$.jsxs)(`p`,{children:[(0,$.jsx)(`span`,{className:`font-medium text-foreground`,children:`Getting access.`}),` Accounts are`,r?` open to signup on this Hub. Verify your email, then choose a passkey or password.`:` created by invitation. An owner sends you an invitation code; redeem it below to create your account.`]}),(0,$.jsxs)(`p`,{children:[(0,$.jsx)(`span`,{className:`font-medium text-foreground`,children:`What a passkey is here.`}),` The passkey is created by your browser or password manager and never leaves it. It is the only credential this Hub treats as strong.`]}),n?(0,$.jsxs)(`p`,{children:[(0,$.jsx)(`span`,{className:`font-medium text-foreground`,children:`If this Hub is brand new.`}),` No owner exists yet. “Set up first owner” claims this Hub with a bootstrap credential from whoever deployed it.`]}):null]}):null,t[7]=n,t[8]=i,t[9]=o,t[10]=r,t[11]=d):d=t[11];let f;return t[12]!==u||t[13]!==d?(f=(0,$.jsxs)(`div`,{className:`mt-4`,children:[u,d]}),t[12]=u,t[13]=d,t[14]=f):f=t[14],f}function Wn(e){return!e}function Gn({context:e=`hub`,autoExternalProvider:t=null}={}){let n=s(e=>e.accountStatus),r=s(e=>e.errorMessage),a=s(e=>e.bootstrapAvailable),[c,l]=(0,Z.useState)(()=>tt({href:window.location.href,historyState:window.history.state,replaceState:(e,t,n)=>window.history.replaceState(e,t,n)})),u=(0,Z.useCallback)(()=>l(null),[]),{config:d}=mn(),f=o(e=>e.externalIdentityConfiguration),p=He(f),[m,h]=(0,Z.useState)(!1),[g,y]=(0,Z.useState)(null),b=(0,Z.useRef)(!1),[x,S]=(0,Z.useState)(void 0),w=M(),T=w?.kind===`sign-up`||w?.kind===`sign-up-verify`?`public`:w?.kind===`invitation`?`invitation`:w?.kind===`setup`?`bootstrap`:null,E=w?.kind===`sign-in-password`?`password`:w?.kind===`sign-in-recovery-code`?`recovery-code`:w?.kind===`reset-password`?`password-reset`:null,D=e=>{R(e===`public`?{kind:`sign-up`}:e===`invitation`?{kind:`invitation`}:e===`bootstrap`?{kind:`setup`}:{kind:`sign-in`})},O=e=>{R(e===`password`?{kind:`sign-in-password`}:e===`recovery-code`?{kind:`sign-in-recovery-code`}:e===`password-reset`?{kind:`reset-password`}:{kind:`sign-in`})},k=(0,Z.useRef)(null),A=(0,Z.useRef)(null),N=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{v.refreshExternalIdentityConfiguration()},[]),(0,Z.useEffect)(()=>{if(T!==`public`&&e!==`native-authorization`){S(void 0);return}let t=new AbortController;return S(void 0),i.getPendingExternalIdentity(t.signal).then(e=>{t.signal.aborted||S(e)}).catch(()=>{t.signal.aborted||S({status:`none`})}),()=>t.abort()},[e,T]);let P=(0,Z.useCallback)(async()=>{if(!m){h(!0),y(null);try{await Ue({intent:`authenticate`,returnTo:e===`native-authorization`?window.location.pathname:te({kind:`sign-up`}),start:e=>i.startExternalIdentityAuthorization(e),navigate:e=>window.location.assign(e)})}catch(e){y(e instanceof _?e.message:`GitHub sign-in is temporarily unavailable.`),h(!1)}}},[e,m]);(0,Z.useEffect)(()=>{e!==`native-authorization`||t!==`github`||n!==`signed-out`||p?.login!==!0||x?.status!==`none`||b.current||(b.current=!0,P())},[t,e,x?.status,p?.login,P,n]),(0,Z.useEffect)(()=>{T===`invitation`||T===`bootstrap`?A.current?.focus({preventScroll:!0}):k.current?.focus({preventScroll:!0})},[E,T]),(0,Z.useEffect)(()=>{N.current?.scrollTo({top:0,left:0})},[E,T]);let F=T===`invitation`||T===`bootstrap`?(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-2 phone:mt-auto ${qe}`,children:[(0,$.jsx)(q,{type:`submit`,form:Kn,className:`phone:min-h-11`,disabled:n===`authenticating`,children:T===`invitation`?`Create account and passkey`:`Create owner and passkey`}),(0,$.jsx)(q,{type:`button`,variant:`outline`,className:`phone:min-h-11`,onClick:n===`authenticating`?()=>v.cancelAuthentication():()=>D(null),children:n===`authenticating`?`Cancel`:`Back`})]}):null,I=T||E?null:(0,$.jsx)(`div`,{className:`phone:mt-auto ${qe}`,children:(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col gap-3`,children:[p?.login?(0,$.jsxs)(q,{size:`lg`,className:`phone:min-h-11`,disabled:m||n===`authenticating`||n===`signing-out`,onClick:()=>void P(),children:[m?(0,$.jsx)(C,{"aria-hidden":!0,className:`animate-spin`}):(0,$.jsx)(K,{"aria-hidden":!0}),m?`Opening GitHub…`:`Continue with GitHub`]}):null,(0,$.jsxs)(q,{size:`lg`,className:`phone:min-h-11`,disabled:n===`authenticating`||n===`signing-out`,onClick:()=>void v.signIn(),children:[(0,$.jsx)(j,{"aria-hidden":!0}),n===`authenticating`?`Waiting for passkey…`:`Sign in with passkey`]}),n===`authenticating`?(0,$.jsx)(q,{variant:`outline`,size:`lg`,className:`phone:min-h-11`,onClick:()=>v.cancelAuthentication(),children:`Cancel`}):(0,$.jsxs)($.Fragment,{children:[d?.status===`enabled`?(0,$.jsx)(q,{variant:`outline`,size:`lg`,className:`phone:min-h-11`,onClick:()=>D(`public`),children:`Create account`}):null,(0,$.jsx)(q,{variant:`ghost`,size:`lg`,className:`phone:min-h-11`,onClick:()=>D(`invitation`),children:`Redeem invitation`}),a?(0,$.jsx)(q,{variant:`ghost`,size:`lg`,className:`phone:min-h-11`,onClick:()=>D(`bootstrap`),children:`Set up first owner`}):null]})]})}),L=(0,$.jsxs)($.Fragment,{children:[n===`unavailable`?(0,$.jsxs)(q,{className:`mt-3 phone:min-h-11`,variant:`ghost`,onClick:()=>void v.bootstrap(),children:[(0,$.jsx)(ae,{"aria-hidden":!0}),` Retry Hub`]}):null,(0,$.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:n===`authenticating`?`Passkey authentication is in progress.`:``})]}),z=g??r,B=z?(0,$.jsx)(`div`,{className:`mt-4`,children:(0,$.jsxs)(ye,{variant:`error`,children:[(0,$.jsx)(se,{"aria-hidden":!0}),(0,$.jsx)(_e,{children:`Sign-in did not complete`}),(0,$.jsx)(ve,{children:z})]})}):null,V=x?.status===`signup`?x:null,H=x?.status===`error`?x:null,ne=e===`native-authorization`&&T!==`public`;if(T===`public`||ne&&(V!==null||H!==null)){let e=()=>{ne?S({status:`none`}):D(null)};return(0,$.jsxs)(an,{title:`Create your account`,description:ne?`Choose your Ryco username, then return to approving this device.`:`Pick a username and confirm your email. You choose a passkey or a password at the end.`,trailing:L,scrollRef:N,titleRef:k,children:[B,x===void 0?(0,$.jsx)(he,{className:`h-64 w-full rounded-2xl`}):V?(0,$.jsx)(_n,{pendingSignup:V,config:d?.status===`enabled`?d:null,onCancel:e}):H?(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(ye,{variant:`warning`,children:[(0,$.jsx)(se,{"aria-hidden":!0}),(0,$.jsx)(_e,{children:`GitHub signup did not continue`}),(0,$.jsx)(ve,{children:Ve(H.code)})]}),(0,$.jsx)(q,{variant:`outline`,onClick:e,children:`Back to sign in`})]}):(0,$.jsx)(gn,{config:d?.status===`enabled`?d:null,initialLink:c,onConsumeLink:u,onCancel:()=>{u(),D(null)}})]})}if(T===`invitation`||T===`bootstrap`)return(0,$.jsxs)(an,{title:T===`invitation`?`Redeem your invitation`:`Claim this Hub`,description:T===`invitation`?`Enter the invitation code an owner sent you. Your browser creates a passkey at the same time.`:`No owner exists yet. The bootstrap credential from whoever deployed this Hub makes you its first owner.`,actions:F,trailing:L,scrollRef:N,titleRef:k,children:[B,(0,$.jsx)(qn,{mode:T,credentialRef:A})]});if(E!==null){let e={password:{title:`Sign in with a password`,description:`Password sign-in always asks for a second factor — an authenticator code, or a code sent to your verified email.`},"recovery-code":{title:`Use a recovery code`,description:`One of the single-use codes you saved when your account was created. Each code works once.`},"password-reset":{title:`Reset your password`,description:`We email a single-use link. Setting a new password signs out every device, including this one.`}}[E];return(0,$.jsxs)(an,{title:e.title,description:e.description,trailing:L,scrollRef:N,titleRef:k,children:[B,E===`password`?(0,$.jsx)(vn,{onCancel:()=>O(null),onUseRecoveryCode:()=>O(`recovery-code`),onResetPassword:()=>O(`password-reset`)}):E===`recovery-code`?(0,$.jsx)(bn,{onCancel:()=>O(null)}):(0,$.jsx)(yn,{initialLink:c,onConsumeLink:u,onCancel:()=>{u(),O(null)}})]})}return(0,$.jsxs)(an,{title:e===`native-authorization`?`Sign in to continue on your device`:n===`session-expired`?`Your session expired`:`Connect to your Ryco nodes`,description:e===`native-authorization`?`Authenticate in this browser first. Ryco will ask again before it authorizes the mobile app.`:`Ryco Hub reaches the developer machines an owner has authorized for your account. Your session lives in an HttpOnly cookie — nothing about it is readable by this page.`,actions:I,trailing:L,scrollRef:N,titleRef:k,children:[(0,$.jsx)(Je,{}),(0,$.jsx)(Un,{bootstrapAvailable:a,publicSignupEnabled:d?.status===`enabled`}),n===`authenticating`?null:(0,$.jsxs)(q,{variant:`ghost`,size:`sm`,className:`-ml-2 mt-2 h-auto min-h-8 whitespace-normal phone:min-h-11`,onClick:()=>O(`password`),children:[(0,$.jsx)(Xe,{"aria-hidden":!0}),`Password, recovery code, or reset`]}),(0,$.jsx)(ee,{}),B]})}var Kn=`hub-registration-form`;function qn(e){let t=(0,Q.c)(29),{mode:n,credentialRef:r}=e,[i,a]=(0,Z.useState)(``),[o,s]=(0,Z.useState)(``),[c,l]=(0,Z.useState)(``),u;t[0]!==i||t[1]!==o||t[2]!==n||t[3]!==c?(u=async e=>{e.preventDefault();let t=i;a(``);let r={displayName:o.trim(),passkeyLabel:c.trim()||null};n===`invitation`?await v.redeemInvitation({secret:t,...r}):await v.bootstrapOwner({credential:t,...r})},t[0]=i,t[1]=o,t[2]=n,t[3]=c,t[4]=u):u=t[4];let d=u,f;t[5]===d?f=t[6]:(f=e=>void d(e),t[5]=d,t[6]=f);let p=n===`invitation`?`Invitation code`:`Bootstrap credential`,m;t[7]===p?m=t[8]:(m=(0,$.jsx)(Y,{htmlFor:`hub-registration-credential`,children:p}),t[7]=p,t[8]=m);let h;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>a(e.currentTarget.value),t[9]=h):h=t[9];let g;t[10]!==i||t[11]!==r?(g=(0,$.jsx)(G,{ref:r,id:`hub-registration-credential`,type:`password`,required:!0,maxLength:128,value:i,className:W,onChange:h}),t[10]=i,t[11]=r,t[12]=g):g=t[12];let _;t[13]!==m||t[14]!==g?(_=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[m,g]}),t[13]=m,t[14]=g,t[15]=_):_=t[15];let y;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(Y,{htmlFor:`hub-display-name`,children:`Display name`}),t[16]=y):y=t[16];let b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>s(e.currentTarget.value),t[17]=b):b=t[17];let x;t[18]===o?x=t[19]:(x=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[y,(0,$.jsx)(G,{id:`hub-display-name`,required:!0,maxLength:200,value:o,className:W,onChange:b})]}),t[18]=o,t[19]=x);let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsxs)(Y,{htmlFor:`hub-passkey-label`,children:[`Passkey label `,(0,$.jsx)(`span`,{className:`text-muted-foreground`,children:`(optional)`})]}),t[20]=S):S=t[20];let C;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(e.currentTarget.value),t[21]=C):C=t[21];let w;t[22]===c?w=t[23]:(w=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[S,(0,$.jsx)(G,{id:`hub-passkey-label`,maxLength:100,value:c,className:W,onChange:C})]}),t[22]=c,t[23]=w);let T;return t[24]!==x||t[25]!==w||t[26]!==f||t[27]!==_?(T=(0,$.jsxs)(`form`,{id:Kn,className:`mt-6 space-y-4`,onSubmit:f,autoComplete:`off`,children:[_,x,w]}),t[24]=x,t[25]=w,t[26]=f,t[27]=_,t[28]=T):T=t[28],T}function Jn(){let e=(0,Q.c)(20),t=s(Zn),{copyToClipboard:n,isCopied:r}=A(),i=`Save all ${String(t.length)} codes — they are shown once and cannot be retrieved later. Ryco does not save them in browser storage.`,a;e[0]!==n||e[1]!==t?(a=()=>n(Be(t),void 0),e[0]=n,e[1]=t,e[2]=a):a=e[2];let o;e[3]===r?o=e[4]:(o=r?(0,$.jsx)(S,{"aria-hidden":!0}):(0,$.jsx)(k,{"aria-hidden":!0}),e[3]=r,e[4]=o);let c=r?`Copied`:`Copy codes`,l;e[5]!==a||e[6]!==o||e[7]!==c?(l=(0,$.jsxs)(q,{variant:`outline`,className:`mt-5 w-full phone:min-h-11`,onClick:a,children:[o,c]}),e[5]=a,e[6]=o,e[7]=c,e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(q,{size:`cta`,className:`mt-3 w-full`,onClick:Xn,children:`I saved the codes`}),e[9]=u):u=e[9];let d;e[10]===l?d=e[11]:(d=(0,$.jsxs)(`div`,{className:`phone:mt-auto ${qe}`,children:[l,u]}),e[10]=l,e[11]=d);let f;e[12]===t?f=e[13]:(f=t.map(Yn),e[12]=t,e[13]=f);let p;e[14]===f?p=e[15]:(p=(0,$.jsx)(`ul`,{"aria-label":`Recovery codes`,className:`grid gap-2 rounded-xl border border-border bg-background p-4 font-mono text-sm break-all sm:grid-cols-2`,children:f}),e[14]=f,e[15]=p);let m;return e[16]!==i||e[17]!==d||e[18]!==p?(m=(0,$.jsx)(an,{title:`Save your recovery codes`,description:i,actions:d,children:p}),e[16]=i,e[17]=d,e[18]=p,e[19]=m):m=e[19],m}function Yn(e){return(0,$.jsx)(`li`,{children:e},e)}function Xn(){return v.dismissRecoveryCodes()}function Zn(e){return e.recoveryCodes}function Qn(e){let t=(0,Q.c)(38),{node:n,nowMs:r,disabled:i,onConnect:a,onOpenDetail:o}=e,s;t[0]!==n||t[1]!==r?(s=Ot(n,r),t[0]=n,t[1]=r,t[2]=s):s=t[2];let c=s,l;t[3]===n?l=t[4]:(l=p(n),t[3]=n,t[4]=l);let u=l,d=i||u,f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(`span`,{className:`flex size-[36px] shrink-0 items-center justify-center rounded-lg bg-muted`,children:(0,$.jsx)(oe,{"aria-hidden":!0,className:`size-4`})}),t[5]=f):f=t[5];let m;t[6]===n.label?m=t[7]:(m=(0,$.jsx)(`span`,{className:`block truncate font-medium`,children:n.label}),t[6]=n.label,t[7]=m);let h;t[8]===n?h=t[9]:(h=kt(n),t[8]=n,t[9]=h);let g;t[10]===h?g=t[11]:(g=(0,$.jsx)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:h}),t[10]=h,t[11]=g);let _;t[12]===u?_=t[13]:(_=u?(0,$.jsx)(`span`,{className:`block truncate text-xs font-medium text-muted-foreground`,children:`Open in Desktop/Mobile`}):null,t[12]=u,t[13]=_);let v;t[14]!==m||t[15]!==g||t[16]!==_?(v=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[m,g,_]}),t[14]=m,t[15]=g,t[16]=_,t[17]=v):v=t[17];let y;t[18]===n?y=t[19]:(y=(0,$.jsx)(z,{node:n}),t[18]=n,t[19]=y);let b;t[20]===c?b=t[21]:(b=c?(0,$.jsx)(`span`,{className:`whitespace-nowrap text-[11px] text-muted-foreground max-sm:hidden phone:hidden`,children:c}):null,t[20]=c,t[21]=b);let x;t[22]!==y||t[23]!==b?(x=(0,$.jsxs)(`span`,{className:`flex shrink-0 flex-col items-end gap-0.5`,children:[y,b]}),t[22]=y,t[23]=b,t[24]=x):x=t[24];let S;t[25]!==a||t[26]!==x||t[27]!==d||t[28]!==v?(S=(0,$.jsxs)(`button`,{type:`button`,disabled:d,onClick:a,className:`flex min-h-16 min-w-0 flex-1 flex-wrap items-center gap-3 px-4 py-3 text-left outline-none hover:bg-accent/50 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset disabled:opacity-60 disabled:hover:bg-transparent phone:min-h-18`,children:[f,v,x]}),t[25]=a,t[26]=x,t[27]=d,t[28]=v,t[29]=S):S=t[29];let C;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(`span`,{"aria-hidden":!0,className:`w-px shrink-0 bg-border/60`}),t[30]=C):C=t[30];let w=`Node details: ${n.label}`,E;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(T,{"aria-hidden":!0,className:`size-4`}),t[31]=E):E=t[31];let D;t[32]!==o||t[33]!==w?(D=(0,$.jsx)(`button`,{type:`button`,"aria-label":w,onClick:o,className:`flex w-[44px] shrink-0 items-center justify-center text-muted-foreground outline-none hover:bg-accent/50 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,children:E}),t[32]=o,t[33]=w,t[34]=D):D=t[34];let O;return t[35]!==S||t[36]!==D?(O=(0,$.jsxs)(`li`,{className:`flex items-stretch overflow-hidden rounded-xl border border-border bg-background`,children:[S,C,D]}),t[35]=S,t[36]=D,t[37]=O):O=t[37],O}function $n(){let e=(0,Q.c)(110),t=s(pr),n=s(fr),r=s(dr),a=s(ur),o=s(lr),c=s(cr),l=ne(),u=h(),d=ge()===`phone`,f=M()?.kind===`nodes-enroll`,p=sr,[m,g]=(0,Z.useState)(null),[_,y]=(0,Z.useState)(null),b=(0,Z.useRef)(null),x=We(6e4),S,w;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{b.current?.focus({preventScroll:!0})},w=[],e[0]=S,e[1]=w):(S=e[0],w=e[1]),(0,Z.useEffect)(S,w);let T;e[2]===u?T=e[3]:(T=async e=>{B(e.id)||(await u({to:`/`,replace:!0}),await v.selectNode(e.id))},e[2]=u,e[3]=T);let E=T;if(f){let t;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(qt,{measure:`content`,children:(0,$.jsx)(on,{onClose:()=>p(!1)})}),e[4]=t):t=e[4],t}let D,O,k,A,j,N,P,F,I,L,R,z,V,te,H,ie,U,W;if(e[5]!==o||e[6]!==r||e[7]!==m||e[8]!==a||e[9]!==d||e[10]!==t||e[11]!==x||e[12]!==_||e[13]!==l||e[14]!==E||e[15]!==c||e[16]!==n){let i=At(t),s;e[35]!==m||e[36]!==t?(s=m===null?null:t.find(e=>e.id===m)??null,e[35]=m,e[36]=t,e[37]=s):s=e[37],A=s,P=o?.role===`owner`;let u=n===`ready`&&t.length===0;N=P&&!u;let f;e[38]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsxs)(q,{variant:`ghost`,className:`min-h-11 flex-1`,onClick:or,children:[(0,$.jsx)(ce,{"aria-hidden":!0}),` Account`]}),e[38]=f):f=e[38],k=f;let h;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsxs)(q,{variant:`ghost`,className:`min-h-11 flex-1`,onClick:ar,children:[(0,$.jsx)(re,{"aria-hidden":!0}),` Sign out`]}),e[39]=h):h=e[39],I=h;let v=d?`mt-3 phone:min-h-11 phone:w-full`:void 0,y,S;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>p(!0),S=(0,$.jsx)(oe,{"aria-hidden":!0}),e[40]=y,e[41]=S):(y=e[40],S=e[41]);let w;e[42]===v?w=e[43]:(w=(0,$.jsxs)(q,{className:v,onClick:y,children:[S,` Enroll node`]}),e[42]=v,e[43]=w),j=w;let T=d?`mt-3 phone:min-h-11 phone:w-full`:void 0,M=n===`loading`,B;e[44]===n?B=e[45]:(B=n===`loading`?(0,$.jsx)(C,{"aria-hidden":!0,className:`animate-spin motion-reduce:animate-none`}):(0,$.jsx)(ae,{"aria-hidden":!0}),e[44]=n,e[45]=B);let ee;e[46]!==T||e[47]!==M||e[48]!==B?(ee=(0,$.jsxs)(q,{className:T,variant:`outline`,disabled:M,onClick:ir,children:[B,`Refresh nodes`]}),e[46]=T,e[47]=M,e[48]=B,e[49]=ee):ee=e[49],F=ee,O=qt;let ne;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,$.jsx)(q,{size:`icon`,variant:`ghost`,"aria-label":`Account settings`,onClick:rr,children:(0,$.jsx)(ce,{"aria-hidden":!0})}),e[50]=ne):ne=e[50],e[51]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsxs)($.Fragment,{children:[ne,(0,$.jsx)(q,{size:`icon`,variant:`ghost`,"aria-label":`Sign out`,onClick:nr,children:(0,$.jsx)(re,{"aria-hidden":!0})})]}),e[51]=R):R=e[51],D=zt,z=b,V=t.length===1?`Your node`:`Your nodes`;let G=o?.displayName??`Hub account`,K;e[52]===o?K=e[53]:(K=o?` · ${o.role.charAt(0).toUpperCase()}${o.role.slice(1)}`:``,e[52]=o,e[53]=K);let le;e[54]!==G||e[55]!==K?(le=(0,$.jsxs)(`p`,{className:`truncate`,children:[`Signed in as `,G,K]}),e[54]=G,e[55]=K,e[56]=le):le=e[56];let J;e[57]===t?J=e[58]:(J=t.length>1?(0,$.jsx)(`p`,{className:`mt-0.5 truncate text-xs`,children:Nt(t)}):null,e[57]=t,e[58]=J),e[59]!==le||e[60]!==J?(te=(0,$.jsxs)($.Fragment,{children:[le,J]}),e[59]=le,e[60]=J,e[61]=te):te=e[61],e[62]!==j||e[63]!==N||e[64]!==d||e[65]!==F?(H=d?void 0:(0,$.jsxs)($.Fragment,{children:[F,N?j:null]}),e[62]=j,e[63]=N,e[64]=d,e[65]=F,e[66]=H):H=e[66],e[67]===n?ie=e[68]:(ie=n===`stale`?(0,$.jsx)(`div`,{className:`mt-4`,children:(0,$.jsxs)(ye,{variant:`warning`,role:`status`,children:[(0,$.jsx)(se,{"aria-hidden":!0}),(0,$.jsx)(ve,{children:`Directory data is stale. Connecting is unavailable until it refreshes.`})]})}):null,e[67]=n,e[68]=ie),e[69]===_?U=e[70]:(U=_?(0,$.jsx)(`div`,{className:`mt-4`,children:(0,$.jsxs)(ye,{variant:`warning`,role:`status`,children:[(0,$.jsx)(se,{"aria-hidden":!0}),(0,$.jsx)(ve,{children:_})]})}):null,e[69]=_,e[70]=U);let ue=n===`stale`?null:a;e[71]!==l||e[72]!==c||e[73]!==ue?(W=(0,$.jsx)(mr,{selection:c,routeNotice:l,error:ue}),e[71]=l,e[72]=c,e[73]=ue,e[74]=W):W=e[74],L=u?(0,$.jsx)(hr,{isOwner:P,onEnroll:()=>p(!0)}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`ul`,{role:`list`,className:`mt-5 space-y-2`,"aria-busy":n===`loading`,children:[i.map(e=>(0,$.jsx)(Qn,{node:e,nowMs:x,disabled:Pt({directoryStatus:n,browserStatus:r,node:e}),onConnect:()=>void E(e),onOpenDetail:()=>g(e.id)},`${e.id}:${e.environmentId}`)),n===`loading`&&t.length===0?(0,$.jsx)($.Fragment,{children:[0,1,2].map(tr)}):null]}),n===`loading`&&t.length===0?(0,$.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:`Loading authorized nodes…`}):null,t.length>0?(0,$.jsx)(`p`,{className:`mt-2 px-1 text-[11px] text-muted-foreground`,children:`Presence refreshes about every 20 seconds.`}):null]}),e[5]=o,e[6]=r,e[7]=m,e[8]=a,e[9]=d,e[10]=t,e[11]=x,e[12]=_,e[13]=l,e[14]=E,e[15]=c,e[16]=n,e[17]=D,e[18]=O,e[19]=k,e[20]=A,e[21]=j,e[22]=N,e[23]=P,e[24]=F,e[25]=I,e[26]=L,e[27]=R,e[28]=z,e[29]=V,e[30]=te,e[31]=H,e[32]=ie,e[33]=U,e[34]=W}else D=e[17],O=e[18],k=e[19],A=e[20],j=e[21],N=e[22],P=e[23],F=e[24],I=e[25],L=e[26],R=e[27],z=e[28],V=e[29],te=e[30],H=e[31],ie=e[32],U=e[33],W=e[34];let G,K;e[75]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsx)(`div`,{className:`mt-5`,children:(0,$.jsx)(Je,{})}),K=(0,$.jsx)(ee,{}),e[75]=G,e[76]=K):(G=e[75],K=e[76]);let le;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(le=e=>{e||g(null)},e[77]=le):le=e[77];let J;e[78]===E?J=e[79]:(J=e=>void E(e),e[78]=E,e[79]=J);let ue;e[80]===Symbol.for(`react.memo_cache_sentinel`)?(ue=async e=>{await i.revokeNode(e.id,lt),y(mt(e.label)),await v.refreshDirectory(),g(null)},e[80]=ue):ue=e[80];let de;e[81]!==r||e[82]!==A||e[83]!==P||e[84]!==n||e[85]!==J?(de=(0,$.jsx)(Rt,{node:A,directoryStatus:n,browserStatus:r,canRename:P,canRevoke:P,onOpenChange:le,onConnect:J,onRename:er,onRevoke:ue}),e[81]=r,e[82]=A,e[83]=P,e[84]=n,e[85]=J,e[86]=de):de=e[86];let fe;e[87]!==D||e[88]!==L||e[89]!==de||e[90]!==z||e[91]!==V||e[92]!==te||e[93]!==H||e[94]!==ie||e[95]!==U||e[96]!==W?(fe=(0,$.jsxs)(D,{titleRef:z,title:V,description:te,actions:H,children:[ie,U,W,L,G,K,de]}),e[87]=D,e[88]=L,e[89]=de,e[90]=z,e[91]=V,e[92]=te,e[93]=H,e[94]=ie,e[95]=U,e[96]=W,e[97]=fe):fe=e[97];let pe;e[98]!==k||e[99]!==j||e[100]!==N||e[101]!==d||e[102]!==F||e[103]!==I?(pe=d?(0,$.jsxs)(`div`,{className:`mt-auto ${qe}`,children:[(0,$.jsxs)(`div`,{className:`mt-5 flex flex-wrap gap-2`,children:[k,I]}),N?j:null,F]}):null,e[98]=k,e[99]=j,e[100]=N,e[101]=d,e[102]=F,e[103]=I,e[104]=pe):pe=e[104];let me;return e[105]!==O||e[106]!==R||e[107]!==fe||e[108]!==pe?(me=(0,$.jsxs)(O,{trailing:R,children:[fe,pe]}),e[105]=O,e[106]=R,e[107]=fe,e[108]=pe,e[109]=me):me=e[109],me}async function er(e,t){await i.renameNode(e.id,t),await v.refreshDirectory()}function tr(e){return(0,$.jsx)(`li`,{children:(0,$.jsx)(he,{className:`h-16 w-full rounded-xl`})},e)}function nr(){v.signOut()}function rr(){R({kind:`account`,section:`security`})}function ir(){v.refreshDirectory()}function ar(){v.signOut()}function or(){R({kind:`account`,section:`security`})}function sr(e){return R(e?{kind:`nodes-enroll`}:{kind:`nodes`})}function cr(e){return e.selectionStatus}function lr(e){return e.account}function ur(e){return e.errorMessage}function dr(e){return e.browserStatus}function fr(e){return e.directoryStatus}function pr(e){return e.nodes}function mr(e){let t=(0,Q.c)(3),{selection:n,routeNotice:r,error:i}=e,a=(n===`authorization-removed`?`Authorization for the previous node was removed.`:n===`revoked`?`The previous node or grant was revoked.`:n===`incompatible`?`The previous node uses an incompatible relay version.`:null)??r??i;if(!a)return null;let o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsx)(se,{"aria-hidden":!0}),t[0]=o):o=t[0];let s;return t[1]===a?s=t[2]:(s=(0,$.jsx)(`div`,{className:`mt-4`,children:(0,$.jsxs)(ye,{variant:`error`,children:[o,(0,$.jsx)(ve,{children:a})]})}),t[1]=a,t[2]=s),s}function hr(e){let t=(0,Q.c)(14),{isOwner:n,onEnroll:r}=e,i;t[0]===n?i=t[1]:(i=(0,$.jsx)(Pe,{variant:`icon`,children:n?(0,$.jsx)(oe,{"aria-hidden":!0}):(0,$.jsx)(U,{"aria-hidden":!0})}),t[0]=n,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(Le,{children:`No nodes yet`}),t[2]=a):a=t[2];let o=n?`A node appears here once the Ryco client on that machine has been enrolled. Start enrollment on the node, then enter the short device code it shows — codes expire after ten minutes.`:`A node appears here once an owner of this Hub authorizes your account for it.`,s;t[3]===o?s=t[4]:(s=(0,$.jsx)(Re,{children:o}),t[3]=o,t[4]=s);let c;t[5]!==i||t[6]!==s?(c=(0,$.jsxs)(Fe,{children:[i,a,s]}),t[5]=i,t[6]=s,t[7]=c):c=t[7];let l;t[8]!==n||t[9]!==r?(l=n?(0,$.jsx)(Ie,{children:(0,$.jsxs)(q,{className:`phone:min-h-11`,onClick:r,children:[(0,$.jsx)(oe,{"aria-hidden":!0}),` Enroll node`]})}):null,t[8]=n,t[9]=r,t[10]=l):l=t[10];let u;return t[11]!==c||t[12]!==l?(u=(0,$.jsxs)(ze,{className:`min-h-64`,children:[c,l]}),t[11]=c,t[12]=l,t[13]=u):u=t[13],u}export{Gn as HostedAuthenticationSurface,En as HostedHubRoot};
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./index-Bbc24tew.js";import{F as r,N as i}from"./runtime-BkRtSwRY.js";import{f as a}from"./utils-c6dglOTK.js";import{n as o}from"./branding-CG1VEma6.js";import{_ as s,o as c}from"./authorization-CFcCWeGd.js";import{n as l,t as u}from"./loader-circle-CrtHFAvM.js";import{t as d}from"./log-out-tMJm0Gk6.js";import{t as f}from"./shield-check-dQ-4cMKk.js";import{t as p}from"./smartphone-gNe1ynB8.js";import{t as m}from"./triangle-alert-RL_T3KLo.js";import{t as h}from"./x-C1Cemsov.js";import{t as g}from"./button-BT6cGe5S.js";import{i as _,r as v,t as y}from"./alert-DFo8_l6D.js";var b=e(t(),1),x=a(),S=(0,b.lazy)(()=>n(()=>import(`./HostedHubRoot-Bi0LEQCK.js`).then(e=>({default:e.HostedAuthenticationSurface})),[]));function C(e){window.location.assign(e)}function w({handoffId:e,navigate:t=C}){let n=i(e=>e.accountStatus),a=i(e=>e.account),[w,T]=(0,b.useState)(null),[E,D]=(0,b.useState)(!0),[O,k]=(0,b.useState)(null),[A,j]=(0,b.useState)(null),[M,N]=(0,b.useState)(null),P=(0,b.useRef)(null);if((0,b.useEffect)(()=>{let t=new AbortController;return D(!0),N(null),r.getNativeHandoffPresentation(e,t.signal).then(e=>T(e)).catch(e=>{t.signal.aborted||N(e instanceof s?e.message:`This device authorization is unavailable or has expired.`)}).finally(()=>{t.signal.aborted||D(!1)}),()=>t.abort()},[e]),(0,b.useEffect)(()=>{!E&&n===`authenticated`&&P.current?.focus({preventScroll:!0})},[n,E]),n!==`authenticated`||!a)return(0,x.jsx)(b.Suspense,{fallback:null,children:(0,x.jsx)(S,{context:`native-authorization`,autoExternalProvider:w?.providerHint??null})});let F=async n=>{if(O===null){k(n),N(null);try{if(n===`switch-account`){await c.signOut();return}let i=n===`approve`?await r.approveNativeHandoff(e):await r.cancelNativeHandoff(e);n===`approve`&&(j({redirectUri:i.redirectUri,deviceLabel:w?.deviceLabel??`your device`}),await new Promise(e=>requestAnimationFrame(()=>e()))),t(i.redirectUri)}catch(e){n===`approve`&&j(null),N(e instanceof s?e.message:`The device authorization could not be completed.`)}finally{k(null)}}};return A===null?(0,x.jsx)(`main`,{className:`flex min-h-dvh items-center justify-center overflow-x-hidden bg-background px-4 py-10 text-foreground sm:px-6`,children:(0,x.jsxs)(`section`,{className:`w-full max-w-md rounded-[1.5rem] border border-border bg-card p-5 shadow-2xl shadow-black/10 sm:p-7`,children:[(0,x.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,x.jsx)(`div`,{className:`flex size-11 shrink-0 items-center justify-center rounded-xl border border-border bg-background text-primary`,children:(0,x.jsx)(f,{"aria-hidden":!0,className:`size-5`})}),(0,x.jsxs)(`p`,{className:`pt-1 text-[11px] font-semibold tracking-[0.16em] text-muted-foreground uppercase`,children:[o,` Hub`]})]}),(0,x.jsx)(`h1`,{ref:P,tabIndex:-1,className:`mt-6 text-2xl font-semibold tracking-tight outline-none`,children:`Continue on this device?`}),(0,x.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:`Only continue if you started this connection from the Ryco app. The app receives a one-time code, never this browser session.`}),(0,x.jsxs)(`div`,{className:`mt-6 overflow-hidden rounded-2xl border border-border bg-background/65`,children:[(0,x.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-border px-4 py-3.5`,children:[(0,x.jsx)(p,{"aria-hidden":!0,className:`size-5 text-muted-foreground`}),(0,x.jsxs)(`div`,{className:`min-w-0`,children:[(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Requesting device`}),(0,x.jsx)(`p`,{className:`truncate text-sm font-medium`,children:E?`Checking request…`:w?.deviceLabel??`Unknown device`})]})]}),(0,x.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-3.5`,children:[(0,x.jsx)(`div`,{"aria-hidden":!0,className:`flex size-8 shrink-0 items-center justify-center rounded-full bg-primary/12 text-xs font-semibold text-primary`,children:a.displayName.trim().slice(0,1).toLocaleUpperCase()||`R`}),(0,x.jsxs)(`div`,{className:`min-w-0`,children:[(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Signed in as`}),(0,x.jsx)(`p`,{className:`truncate text-sm font-medium`,children:a.displayName})]})]})]}),M?(0,x.jsxs)(y,{variant:`error`,className:`mt-4`,children:[(0,x.jsx)(m,{"aria-hidden":!0}),(0,x.jsx)(_,{children:`Authorization did not complete`}),(0,x.jsx)(v,{children:M})]}):null,(0,x.jsxs)(`div`,{className:`mt-6 space-y-2.5`,children:[(0,x.jsxs)(g,{size:`lg`,className:`min-h-11 w-full`,disabled:E||!w||O!==null,onClick:()=>void F(`approve`),children:[O===`approve`?(0,x.jsx)(u,{"aria-hidden":!0,className:`animate-spin motion-reduce:animate-none`}):(0,x.jsx)(l,{"aria-hidden":!0}),`Continue as `,a.displayName]}),(0,x.jsxs)(g,{size:`lg`,variant:`outline`,className:`min-h-11 w-full`,disabled:O!==null,onClick:()=>void F(`switch-account`),children:[O===`switch-account`?(0,x.jsx)(u,{"aria-hidden":!0,className:`animate-spin motion-reduce:animate-none`}):(0,x.jsx)(d,{"aria-hidden":!0}),`Use another account`]}),(0,x.jsxs)(g,{size:`lg`,variant:`ghost`,className:`min-h-11 w-full`,disabled:E||!w||O!==null,onClick:()=>void F(`cancel`),children:[O===`cancel`?(0,x.jsx)(u,{"aria-hidden":!0,className:`animate-spin motion-reduce:animate-none`}):(0,x.jsx)(h,{"aria-hidden":!0}),`Cancel`]})]}),(0,x.jsx)(`p`,{className:`mt-5 text-center text-xs leading-relaxed text-muted-foreground`,children:`Access remains limited to the nodes and permissions assigned to this Hub account.`})]})}):(0,x.jsx)(`main`,{className:`flex min-h-dvh items-center justify-center overflow-hidden bg-background px-4 py-10 text-foreground sm:px-6`,children:(0,x.jsxs)(`section`,{role:`status`,"aria-live":`polite`,className:`w-full max-w-md rounded-[1.5rem] border border-border bg-card p-6 text-center shadow-2xl shadow-black/10 sm:p-8`,children:[(0,x.jsxs)(`div`,{className:`relative mx-auto flex size-24 items-center justify-center`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-2 rounded-full bg-success/20 motion-safe:animate-ping`}),(0,x.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-0 rounded-full border border-success/25 motion-safe:animate-pulse`}),(0,x.jsx)(`span`,{className:`relative flex size-16 items-center justify-center rounded-full bg-success text-success-foreground shadow-lg shadow-success/20`,children:(0,x.jsx)(l,{"aria-hidden":!0,className:`size-8`,strokeWidth:2.5})})]}),(0,x.jsx)(`p`,{className:`mt-7 text-[11px] font-semibold tracking-[0.16em] text-success uppercase`,children:`Sign-in approved`}),(0,x.jsx)(`h1`,{className:`mt-2 text-2xl font-semibold tracking-tight`,children:`Ryco is opening`}),(0,x.jsxs)(`p`,{className:`mt-3 text-sm leading-relaxed text-muted-foreground`,children:[`Ryco is securely finishing account and node setup on `,A.deviceLabel,`. This tab can be closed when the app shows setup complete.`]}),(0,x.jsx)(`div`,{className:`mt-7 rounded-2xl border border-border bg-background/65 p-4`,children:(0,x.jsxs)(`div`,{className:`flex items-center justify-center gap-2 text-sm font-medium`,children:[(0,x.jsx)(p,{"aria-hidden":!0,className:`size-4 text-primary`}),`Waiting for the Ryco app`,(0,x.jsxs)(`span`,{className:`flex gap-1`,"aria-hidden":!0,children:[(0,x.jsx)(`span`,{className:`size-1 rounded-full bg-primary motion-safe:animate-pulse`}),(0,x.jsx)(`span`,{className:`size-1 rounded-full bg-primary motion-safe:animate-pulse [animation-delay:150ms]`}),(0,x.jsx)(`span`,{className:`size-1 rounded-full bg-primary motion-safe:animate-pulse [animation-delay:300ms]`})]})]})}),(0,x.jsx)(g,{size:`lg`,variant:`outline`,className:`mt-5 min-h-11 w-full`,onClick:()=>t(A.redirectUri),children:`Open Ryco again`})]})})}export{w as HostedNativeAuthorizationRoute};
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{ht as r,mt as i}from"./runtime-BkRtSwRY.js";import{f as a}from"./utils-c6dglOTK.js";import{jt as o,n as s,r as c,wt as l}from"./authorization-CFcCWeGd.js";import{t as u}from"./shield-alert-DY9uVP5G.js";import{t as d}from"./shield-IZEIJ8r7.js";function f(e){return c(e)}function p(e){return s(e)}var m=n(),h=e(t(),1),g=()=>r().status;function _(){return(0,h.useSyncExternalStore)(i,g,g)}var v=()=>r().verificationCode;function y(){return(0,h.useSyncExternalStore)(i,v,v)}function b(e){let t=e.split(o.separator);if(t.length!==o.groups)return[];for(let e of t){if(e.length!==o.charsPerGroup)return[];for(let t of e)if(!`0123456789ABCDEFGHJKMNPQRSTVWXYZ`.includes(t))return[]}return t}o.chars*Math.log2(l.length);var x=`Compare this code with the one your node's CLI shows for this session. A match catches accidental wrong-node routing and some network interposition while the loaded code is honest; it cannot protect against the Hub operator, who serves this page, and it does not rule out someone sitting in the middle.`,S=`Settings → Security explains what else this tab cannot check.`,C=`Compare this code with the one your node's CLI shows for this session. A match catches accidental wrong-node routing and some network interposition while the loaded code is honest. This tab pins no node identity, so that comparison is the only thing that speaks to whether the far end is your machine or the Hub standing in for it — and it cannot protect against the Hub operator, who serves this page and could serve code that completes the same handshake and displays this same code anyway. A match does not rule out someone sitting in the middle.`,w="Run `ryco e2ee sessions` on the machine running the node to read its end of the comparison.",T=`No session code is available for this channel, so there is nothing here to compare against your node's CLI.`;function E(e){return e?`inline`:`settings`}var D={inline:{advisory:x,more:S},settings:{advisory:C,more:w}};Object.keys(D);function O(e,t){if(e===null)return null;let n=b(e);if(n.length===0)return null;let{advisory:r,more:i}=D[t];return{groups:n,display:n.join(o.separator),advisory:r,more:i}}var k={unavailable:{tone:`caution`,body:`Hosted connections reach your nodes through the Ryco Hub over WSS. No node channel is open in this tab, so the Hub still forwards what you send in a form it can read, and it is expected not to log or keep it.`},negotiating:{tone:`caution`,body:`This tab is still agreeing a channel with your node and has released nothing to it yet. Until that settles, treat this connection as one the Hub can read.`},"web-unsigned":{tone:`advisory`,body:`This tab and the node it was routed to agreed a browser channel, so while the code this page is running is honest the Hub relays ciphertext instead of readable payload. It is weaker than the channel the Ryco mobile app gets, in two ways this tab cannot close. This tab pins no node identity, so it cannot tell whether the far end of that channel is your machine or the Hub standing in for it. And it cannot protect against the Hub operator, who serves every byte of this page's JavaScript and could serve code that completes the same handshake and copies your data anyway. Its downgrade check is held in memory only — empty again in every new tab and after every reload, and worth nothing against that operator. Only your node can close the plaintext path for browsers.`},legacy:{tone:`caution`,body:`This channel fell back to legacy plaintext. This tab cannot tell whether your node offered no encrypted channel or something on the path removed the offer, so treat everything sent over it as readable by the Hub, which is expected not to log or keep it. Only your node can refuse plaintext for browsers.`}};function A(e){return k[e]}Object.keys(k);var j=a();function M(e){let t=(0,m.c)(13),{compact:n}=e,r=n!==void 0&&n,i=_(),a;t[0]===i?a=t[1]:(a=A(i),t[0]=i,t[1]=a);let{tone:o,body:s}=a,c=o===`advisory`?d:u,l=o===`advisory`?`text-sky-600`:`text-amber-600`,f=r?`flex gap-2 text-xs leading-relaxed text-muted-foreground`:`flex gap-2 rounded-lg border px-3 py-2.5 text-xs leading-relaxed text-muted-foreground ${o===`advisory`?`border-sky-500/25 bg-sky-500/5`:`border-amber-500/25 bg-amber-500/5`}`,p=`mt-0.5 size-4 shrink-0 ${l}`,h;t[2]!==c||t[3]!==p?(h=(0,j.jsx)(c,{"aria-hidden":!0,className:p}),t[2]=c,t[3]=p,t[4]=h):h=t[4];let g;t[5]===s?g=t[6]:(g=(0,j.jsx)(`p`,{children:s}),t[5]=s,t[6]=g);let v;return t[7]!==i||t[8]!==f||t[9]!==h||t[10]!==g||t[11]!==o?(v=(0,j.jsxs)(`div`,{className:f,"data-hosted-relay-trust-notice":`true`,"data-e2ee-status":i,"data-tone":o,children:[h,g]}),t[7]=i,t[8]=f,t[9]=h,t[10]=g,t[11]=o,t[12]=v):v=t[12],v}export{_ as a,f as c,O as i,T as n,y as o,E as r,p as s,M as t};
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{f as r,t as i}from"./utils-c6dglOTK.js";var a=n(),o=e(t(),1),s=r(),c=e=>{let t=(0,a.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`title`,{children:`Jira`}),r=(0,s.jsx)(`path`,{d:`M0 128C0 57.312 57.312 0 128 0h256.001c70.688 0 128 57.312 128 128v256.001c0 70.688-57.312 128-128 128h-256C57.311 512.002 0 454.69 0 384.002v-256z`,fill:`#1868db`}),i=(0,s.jsx)(`path`,{d:`M189.544 324.041H160.69c-43.51 0-74.72-24.483-74.72-60.321h155.115c8.043 0 13.248 5.241 13.248 12.677V419.77c-38.784 0-64.79-28.853-64.79-69.07V324.04zm76.608-71.245h-28.843c-43.51 0-74.73-24.043-74.73-59.89h155.125c8.043 0 13.718 4.81 13.718 12.236v143.373c-38.785 0-65.27-28.843-65.27-69.061v-26.658zm77.088-70.815h-28.842c-43.51 0-74.731-24.483-74.731-60.321h155.125c8.043 0 13.248 5.241 13.248 12.237v143.372c-38.784 0-64.8-28.853-64.8-69.06V181.98z`,fill:`#fff`}),t[0]=n,t[1]=r,t[2]=i):(n=t[0],r=t[1],i=t[2]);let o;return t[3]===e?o=t[4]:(o=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 512 512`,fill:`none`,children:[n,r,i]}),t[3]=e,t[4]=o),o},l=e=>{let t=(0,a.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z`,transform:`scale(64)`,fill:`currentColor`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,s.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},u=e=>{let t=(0,a.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`path`,{d:`M251.17 116.6 139.4 4.82a16.49 16.49 0 0 0-23.31 0l-23.21 23.2 29.44 29.45a19.57 19.57 0 0 1 24.8 24.96l28.37 28.38a19.61 19.61 0 1 1-11.75 11.06L137.28 95.4v69.64a19.62 19.62 0 1 1-16.13-.57V94.2a19.61 19.61 0 0 1-10.65-25.73L81.46 39.44 4.83 116.08a16.49 16.49 0 0 0 0 23.32L116.6 251.17a16.49 16.49 0 0 0 23.32 0l111.25-111.25a16.5 16.5 0 0 0 0-23.33`,fill:`#DE4C36`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,s.jsx)(`svg`,{...e,viewBox:`0 0 256 256`,children:n}),t[1]=e,t[2]=r),r},d=e=>{let t=(0,a.c)(21),n=(0,o.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=`${r}-jj-a`,c,l,u,d,f,p,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`M380.7 632.3s-14.3 56-50.3 55.5c-12.1-.2-29-10.9-47.1-26.8-34.2 82.7-98.5 239-108.5 268.6-8.9 26.5 13 52 38.2 56 36.4 5.7 49-18.1 49-18.1s13.6 40.7 37.6 39.7c29.9-1.2 34.6-33 34.6-33s11.4 23.8 26.8 23.2c38.4-1.4 41.7-102.9 43.8-135.6 3.8-57.5 6.3-135.4 7.8-190.1-9 6.7-16.5 10.7-21.3 9.9-16.1-2.7-10.6-49.3-10.6-49.3z`,fill:`#42acde`}),l=(0,s.jsx)(`path`,{d:`M403.7 75.1c-89.7-.3-201.5 32.6-200.6 99.6 1.3 87.4 52.2 62.4 41.2 111.2-4.9 21.6-59.9 49.8-65.5 153.8 2.8.7 5.3 1 7.2 1.2 14.2.7 29.9-26.3 29.9-26.3s9.5 38 35 38 50.7-26.3 50.7-26.3 15 30.3 39.6 32c20 1.6 34-8 34-8s.8 15 14.6 14c13.9-1.2 37.6-27.8 37.6-27.8 16.5 30.3 31.9 21 54.7 5.1 0 0 6.2 26.6 36.8 23.7 6-.6 12.3-1 18.5-1.5l.9-11.6c2-58.8-20.4-129.8-50.4-183-21.7-38.7-52.5-83.4-49.6-107.3 3.5-28.3 46.7-28.4 46.7-28.4l-48.5-16 24-37a279.7 279.7 0 0 0-56.8-5.4Z`,fill:`#2f9fdf`}),u=(0,s.jsx)(`path`,{d:`M215.9 414.6s-15.7 27-30 26.3c-1.8-.1-4.3-.5-7-1.2l-.3 3c-2.3 52 7.7 100.3 29.7 132 35.1 50.7 92.6 112.6 122 113 36.1.6 50.4-55.4 50.4-55.4s-5.5 46.6 10.6 49.3c16 2.6 62.4-46.7 87.9-79.5 15.8-20.5 52-82.3 58.2-138.3-6.2.4-12.4 1-18.5 1.5-30.6 3-36.8-23.7-36.8-23.7-22.8 16-38.2 25.2-54.7-5 0 0-23.7 26.5-37.6 27.6-13.8 1.1-14.6-13.8-14.6-13.8s-14 9.5-34 8c-24.5-1.8-39.6-32.1-39.6-32.1s-25.2 26.3-50.7 26.3c-25.5 0-35-38-35-38z`,fill:`#0e254f`}),d=(0,s.jsx)(`path`,{d:`M309.5 418.5a1.5 1.5 0 0 0-.7 0c-.6.2-1.1.8-1.5 1.8a34.7 34.7 0 0 0 4 16.6c5.5 10.6 12.4 22 23.3 27.6 4 2 8.5 3.5 12.5 3.3a36 36 0 0 0 12.5-2.3c4-2 7.6-3.8 10.8-6.2 6-4.4 7.6-6.5 7.6-9.8 0-3.3-2.7-3.5-7.6-.5-5 3-14.6 6.1-18.8 6.1-11.2 0-21.2-8-33.1-26.4-4.3-6.6-7.1-9.9-9-10.2zm174 5c-1.2-.2-2.4.4-3.8 1.7-2.3 2.3-2.7 4-2.6 10.7.5 9 4.8 19.2 11.8 24.6 4.4 3.3 13.2 6 20.4 5.8 6.8-1.1 18.8-6.6 15.3-10.3-2-1.6-5 .7-9.9.7-10.6 0-15.3-3.4-19.6-9-3.8-5-5.4-8.7-7.2-16.8-1.1-4.6-2.6-7.1-4.4-7.4zm-67.5 2.2a1 1 0 0 0-.4 0c-.4.1-.7.4-1.2.9-2.4 2-2.5 5.1-.2 12.6a41.4 41.4 0 0 0 25.3 22c7.6 1.7 14.5.6 20.3-2.7 3.8-2.4 5.3-5 4.4-7.3-4.8-2.9-7.7-1-13.3-1A39.5 39.5 0 0 1 424 435c-4.8-5.9-7-9.3-8-9.4zm-199 .8c-1 .3-1.4 2.7-1 7.2.3 5.3 1.3 8.2 4 12 3 4.5 11.5 11 14.7 11.7 2.5 1 6.9 2.3 10.7 2.3 3.8 0 8-.6 11.2-1.3 3.2-.7 6.8-2 10.3-4l1.3-.7c4-2.1 8-5.1 10.9-7.9l1.4-1.2c6.3-5.4 9.9-10.7 9.9-14.6 0-2.4-5.3-.5-14 5-16 9.8-31.1 13.2-40.9 9l-2.2-1.3-8.8-7.7a32.9 32.9 0 0 1-3.6-4.8c-1.4-2.2-2.5-3.4-3.3-3.7a1 1 0 0 0-.5 0z`,fill:`#71beea`}),f=(0,s.jsx)(`path`,{d:`M221.6 468.8c-.5 0-.8.1-1.1.4-.3.2-.5.6-.6 1.2a10 10 0 0 0 .6 5.1 55 55 0 0 0 28.3 28.9 42.4 42.4 0 0 0 16.4 2c6.1-.2 12.3-1.4 16.6-3.4a48.3 48.3 0 0 0 13.7-10.6c.9-1 1.3-2 1.3-2.3 0-.6 0-.9-.3-1-.3-.3-.7-.4-1.6-.4-1.8 0-4.9.8-9.7 2.3-6.2 1.9-12.7 3-18.5 3.1-7.8.2-10.2-.4-17-3.7-4.5-2.2-12-7.7-17.7-12.8a232 232 0 0 0-7.2-6.3 63 63 0 0 0-2.4-2 12 12 0 0 0-.7-.4h-.1zm214.8 13.6c-.2 0-.5.7-.7 1.8v4a32 32 0 0 0 2.7 9.9 38.5 38.5 0 0 0 49.1 19.3c5.2-2.3 10-6.4 13-10.5 1.4-2.1 2.5-4.3 3-6.2.5-1.9.4-3.6-.3-4.9-.4-.8-.9-1.4-1.3-1.7-.3-.3-.6-.3-1-.2-.9.2-2.3 1.4-4.3 3.8-5 6.2-12.8 9.5-22.6 9.4-6.2 0-11-1.1-16-4.4-5-3.2-10.4-8.6-18-17.3-.8-1-1.7-2-2.5-2.4l-1-.6c-.1 0-.2 0 0 0zm-33.6 4.2-.6.2-1.4.7a53.5 53.5 0 0 0-4 2.5c-8 5.5-15.6 8.3-23.9 8.4-8.3 0-17.2-2.7-28-8.2a42 42 0 0 0-7.3-3c-2-.5-3.1-.5-3.6-.2-.2.1-.3.3-.4.6 0 .3 0 .8.2 1.5.4 1.3 1.4 3.1 3.1 5.5 4 5.4 10.5 10.1 19.7 14 9.3 3.9 23.8 3.5 32.4-1a42 42 0 0 0 9.1-6.5c2.6-2.6 4.5-6.5 5.3-9.6.5-1.5.6-3 .4-3.8 0-.4-.2-.7-.4-.9-.1-.2-.3-.2-.6-.2zm-132.5 30.8c-.3 0-.4 0-.5.2l-.1.5c0 .5.4 1.7 1.2 3.1a87.3 87.3 0 0 0 13.5 16.2c17 15.6 34.6 20.7 49 14.4a33.3 33.3 0 0 0 19-23c.4-2 .1-3.1-.2-3.5-.2-.2-.5-.3-1-.3l-1.7.5a24 24 0 0 0-5.7 4.6c-7.7 8-14.6 12-23 11.4-8.3-.4-18-5.2-31.7-14.3-5.2-3.4-9.4-6-12.5-7.6a15.5 15.5 0 0 0-6.3-2.2zm109.4 0c-.2 0-.3 0-.5.2-.1 0-.3.3-.4.7a9 9 0 0 0 0 3.3c.4 2.9 1.6 6.7 3.5 10.3 11 20.5 29.4 30.5 46.8 25.7a37.3 37.3 0 0 0 15.6-10c4.4-4.6 7.4-9.9 7.4-13.8 0-1.3-.1-2.3-.4-2.7 0-.3-.2-.4-.3-.4h-.5c-.6 0-1.5.4-2.7 1.2a57 57 0 0 0-4.7 3.7c-9 7.7-16.9 11.2-25.1 10-8.2-1.3-16.7-7.1-27-17.7a159.8 159.8 0 0 0-10.6-9.8 9.8 9.8 0 0 0-.9-.6l-.2-.1zm-140.2 43.5c-1 0-1.6.2-1.8.5-.2.4-.3 1 0 2.1.8 2.2 3.1 5.6 7.1 9.6a78.2 78.2 0 0 0 27.4 17.9c9.7 3.8 16.7 4.1 23.4 1.1 5.5-2.5 8.4-6.1 8.4-10.4a4 4 0 0 0-.4-2c-.3-.4-.6-.6-1-.7-.9-.1-2.5.4-4.6 1.8-2.7 2-6.4 2.3-11.3 1.2-5-1.2-11.3-3.8-19.5-8-8-4-17.5-9-21.3-11-2.9-1.4-5-2-6.4-2.1zm160.1 2.8c-.6-.1-1.7.2-3.1 1-1.4 1-3.2 2.3-5.2 4.1a58 58 0 0 1-12.7 8.7c-5.9 2.7-8.6 3.2-18.3 3.2-12.6 0-17.2-1.6-29.9-11.2a21 21 0 0 0-6.4-3.8c-.5 0-.5 0-.7.2-.2.3-.3 1-.3 2 0 2.2 1.5 5.7 3.8 9.2 2.4 3.4 5.7 7 9.2 9.5 8.1 6 14.3 7.8 26.2 7.4a34 34 0 0 0 18.3-4.1 51 51 0 0 0 13.1-9.8c3.8-3.8 6.5-8 7-10.7.4-2 .4-3.5.2-4.5a2 2 0 0 0-.5-1 1 1 0 0 0-.7-.2zm-2 21.4c-.5 0-.6 0-.8.4-.2.4-.3 1.2-.3 2.4 0 3.2 1.7 7.3 4.4 11 2.7 4 6.3 7.4 10 9.5a35 35 0 0 0 21.3 4.8c11-.9 17.8-3.4 23.8-12.6 1.5-2.5 2-4.8 1.4-6.7-.2-.7-.4-1.1-.8-1.4-.3-.2-.6-.3-1.2-.3-1 0-2.6.7-4.7 2.1-6 4.3-12 6.1-19.9 6.2-8.8 0-16.3-3-26.2-11-3.6-2.8-6-4.3-7-4.4zM290 605.5c-.6.3-.9.5-1 1a9 9 0 0 0 .1 3.3c1.8 11 13 25 24.4 30.2 8.5 4 20 4 28.5 0 7.7-3.5 16-11.1 19-17.3a25 25 0 0 0 2.2-6.3c.1-.7.1-1.3 0-1.6 0-.4-.2-.6-.4-.7-.3-.2-1.3-.2-2.8.5-1.6.7-3.6 2-6 4-10 8.2-18.6 12.1-27 11.4-8.6-.7-16.9-6-26.4-15.9a82.6 82.6 0 0 0-7.6-7.1 10 10 0 0 0-2-1.4c-.5-.2-.8-.2-1-.1z`,fill:`#309fdf`}),p=(0,s.jsx)(`path`,{d:`M290 125.7a61.4 61.4 0 0 0-19 2.3c-19.9 5.7-33.5 15.8-36.5 52.2-3 36.6-18 45.5-20.3 46.7 14.7 26.7 38 24.5 30.1 59-2.4 11-17.6 23.5-32.8 46.5 34-27 56.4-48 99.6-100.5 0 0 39-47.6 25.1-77a52 52 0 0 0-46.1-29.2z`,fill:`#e9f2f1`}),m=(0,s.jsx)(`path`,{d:`M288.5 120.8c-8.1 0-16.7 1.4-25.6 5.3-22.5 9.9-25 20.3-29.1 37a96.8 96.8 0 0 0-1.4 24.6 178 178 0 0 0-16.5-31.6s-19 19.8-36.5 18.6c-22.9-1.7-34 2-44.8 9.8-25.4 18.5-21.2 43.8-21.2 43.8s17.6-1.8 40.5 1c20.3 2.7 37.4 4.3 61.3 2.6 8.5-.6 15.8-10 19.3-19 4.5-4 2.9-22 4.8-24.5 3-3.4 8-4.7 10.6-5.2 3.7-.7 4.3 1.5 4.7 2.8a31 31 0 0 0 60.5-3.2c1-4.4 9-5 15.9-4.5 7 0 .9 15.9-1.7 22.3-5.4 13.2-24.9 39-24.9 39l124.3-85s-45.8 22-61.5 20c-19.7-2.3-25.7-34.8-43.2-44-9.9-5.1-22-9.6-35.5-9.8zm1.4 9.4a48.2 48.2 0 0 1 40.6 23.5c3.7 7.1 6.2 17-.3 20.2-7.6 3.7-14.7.7-15.5-2.8a31 31 0 0 0-30.2-24.1 30 30 0 0 0-30.8 27.4c-.4 5.2-9.1 7.7-12.7 3.7-2.7-3 1.7-16.8 3.7-22 6.2-16.2 27.8-25.7 45.2-26zm5.6 27.8a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm-22 29a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm40 523.4c-2.6-1.8-15.1 23.5-20 59-6.8 49-8.3 63.2-14.2 96-6 32.7-12.6 66.3-13.4 73.7-.6 4.8-1.7 19-.6 20.1 3.2 3.3 14.7-31.7 16.8-42 2-10.3 7.7-40.7 14.2-86.9 6.4-46.1 8.5-69.6 13.1-91.5 4.7-22 6.7-26.6 4.2-28.4zm66.3-27c-4.1-1.3-10.5 24.6-13.1 37.8-5.6 28.6-6.2 64-8.4 87a1099 1099 0 0 1-12 87.4c-2.7 15-8 29.4-9.8 44.6-1 9-5.2 26-.2 27.3 5.2 1.5 15.4-36.5 20-55.7 8.1-32.9 10.7-65.6 14.2-99.3 3.3-30.7 4.6-62.8 6.5-93.6.7-18.5 5.1-34.5 2.8-35.6z`,fill:`#0e254f`}),t[2]=c,t[3]=l,t[4]=u,t[5]=d,t[6]=f,t[7]=p,t[8]=m):(c=t[2],l=t[3],u=t[4],d=t[5],f=t[6],p=t[7],m=t[8]);let h;t[9]===i?h=t[10]:(h=(0,s.jsx)(`defs`,{children:(0,s.jsxs)(`g`,{id:i,children:[c,l,u,d,f,p,m]})}),t[9]=i,t[10]=h);let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,s.jsx)(`rect`,{width:`1024`,height:`1024`,rx:`270`,fill:`#a7bcd9`}),t[11]=g):g=t[11];let _=`#${i}`,v;t[12]===_?v=t[13]:(v=(0,s.jsx)(`use`,{href:_,transform:`matrix(-1 0 0 1 1024 0)`}),t[12]=_,t[13]=v);let y=`#${i}`,b;t[14]===y?b=t[15]:(b=(0,s.jsx)(`use`,{href:y}),t[14]=y,t[15]=b);let x;return t[16]!==e||t[17]!==v||t[18]!==b||t[19]!==h?(x=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 1024 1024`,children:[h,g,v,b]}),t[16]=e,t[17]=v,t[18]=b,t[19]=h,t[20]=x):x=t[20],x},f=e=>{let t=(0,a.c)(6),n,r,i,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`path`,{d:`m31.46 12.78-.04-.12-4.35-11.35A1.14 1.14 0 0 0 25.94.6c-.24 0-.47.1-.66.24-.19.15-.33.36-.39.6l-2.94 9h-11.9l-2.94-9A1.14 1.14 0 0 0 6.07.58a1.15 1.15 0 0 0-1.14.72L.58 12.68l-.05.11a8.1 8.1 0 0 0 2.68 9.34l.02.01.04.03 6.63 4.97 3.28 2.48 2 1.52a1.35 1.35 0 0 0 1.62 0l2-1.52 3.28-2.48 6.67-5h.02a8.09 8.09 0 0 0 2.7-9.36Z`,fill:`#E24329`}),r=(0,s.jsx)(`path`,{d:`m31.46 12.78-.04-.12a14.75 14.75 0 0 0-5.86 2.64l-9.55 7.24 6.09 4.6 6.67-5h.02a8.09 8.09 0 0 0 2.67-9.36Z`,fill:`#FC6D26`}),i=(0,s.jsx)(`path`,{d:`m9.9 27.14 3.28 2.48 2 1.52a1.35 1.35 0 0 0 1.62 0l2-1.52 3.28-2.48-6.1-4.6-6.07 4.6Z`,fill:`#FCA326`}),o=(0,s.jsx)(`path`,{d:`M6.44 15.3a14.71 14.71 0 0 0-5.86-2.63l-.05.12a8.1 8.1 0 0 0 2.68 9.34l.02.01.04.03 6.63 4.97 6.1-4.6-9.56-7.24Z`,fill:`#FC6D26`}),t[0]=n,t[1]=r,t[2]=i,t[3]=o):(n=t[0],r=t[1],i=t[2],o=t[3]);let c;return t[4]===e?c=t[5]:(c=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 32 32`,fill:`none`,children:[n,r,i,o]}),t[4]=e,t[5]=c),c},p=e=>{let t=(0,a.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`rect`,{width:`32`,height:`32`,rx:`7`,fill:`#FB923C`}),r=(0,s.jsx)(`path`,{d:`M9 22.5V8.8h14.4v3.4H13.2v3h8.4v3.2h-8.4v4.1H9Z`,fill:`#111827`}),i=(0,s.jsx)(`path`,{d:`M21.8 22.5h-4.1l5.2-6.6h4.1l-5.2 6.6Z`,fill:`#111827`,opacity:`.82`}),t[0]=n,t[1]=r,t[2]=i):(n=t[0],r=t[1],i=t[2]);let o;return t[3]===e?o=t[4]:(o=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 32 32`,fill:`none`,children:[n,r,i]}),t[3]=e,t[4]=o),o},m=e=>{let t=(0,a.c)(34),n=(0,o.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=r,c=`${i}-azure-a`,l=`${i}-azure-b`,u=`${i}-azure-c`,d,f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,s.jsx)(`stop`,{offset:`0`,stopColor:`#114a8b`}),f=(0,s.jsx)(`stop`,{offset:`1`,stopColor:`#0669bc`}),t[2]=d,t[3]=f):(d=t[2],f=t[3]);let p;t[4]===c?p=t[5]:(p=(0,s.jsxs)(`linearGradient`,{id:c,x1:`-1032.17`,x2:`-1059.21`,y1:`145.31`,y2:`65.43`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[d,f]}),t[4]=c,t[5]=p);let m,h,g,_,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,s.jsx)(`stop`,{offset:`0`,stopOpacity:`.3`}),h=(0,s.jsx)(`stop`,{offset:`.07`,stopOpacity:`.2`}),g=(0,s.jsx)(`stop`,{offset:`.32`,stopOpacity:`.1`}),_=(0,s.jsx)(`stop`,{offset:`.62`,stopOpacity:`.05`}),v=(0,s.jsx)(`stop`,{offset:`1`,stopOpacity:`0`}),t[6]=m,t[7]=h,t[8]=g,t[9]=_,t[10]=v):(m=t[6],h=t[7],g=t[8],_=t[9],v=t[10]);let y;t[11]===l?y=t[12]:(y=(0,s.jsxs)(`linearGradient`,{id:l,x1:`-1023.73`,x2:`-1029.98`,y1:`108.08`,y2:`105.97`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[m,h,g,_,v]}),t[11]=l,t[12]=y);let b,x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,s.jsx)(`stop`,{offset:`0`,stopColor:`#3ccbf4`}),x=(0,s.jsx)(`stop`,{offset:`1`,stopColor:`#2892df`}),t[13]=b,t[14]=x):(b=t[13],x=t[14]);let S;t[15]===u?S=t[16]:(S=(0,s.jsxs)(`linearGradient`,{id:u,x1:`-1027.16`,x2:`-997.48`,y1:`147.64`,y2:`68.56`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[b,x]}),t[15]=u,t[16]=S);let C;t[17]!==y||t[18]!==S||t[19]!==p?(C=(0,s.jsxs)(`defs`,{children:[p,y,S]}),t[17]=y,t[18]=S,t[19]=p,t[20]=C):C=t[20];let w=`url(#${c})`,T;t[21]===w?T=t[22]:(T=(0,s.jsx)(`path`,{fill:w,d:`M33.34 6.54h26.04l-27.03 80.1a4.15 4.15 0 0 1-3.94 2.81H8.15a4.14 4.14 0 0 1-3.93-5.47L29.4 9.38a4.15 4.15 0 0 1 3.94-2.83z`}),t[21]=w,t[22]=T);let E;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,s.jsx)(`path`,{fill:`#0078d4`,d:`M71.17 60.26H29.88a1.91 1.91 0 0 0-1.3 3.31l26.53 24.76a4.17 4.17 0 0 0 2.85 1.13h23.38z`}),t[23]=E):E=t[23];let D=`url(#${l})`,O;t[24]===D?O=t[25]:(O=(0,s.jsx)(`path`,{fill:D,d:`M33.34 6.54a4.12 4.12 0 0 0-3.95 2.88L4.25 83.92a4.14 4.14 0 0 0 3.91 5.54h20.79a4.44 4.44 0 0 0 3.4-2.9l5.02-14.78 17.91 16.7a4.24 4.24 0 0 0 2.67.97h23.29L71.02 60.26H41.24L59.47 6.55z`}),t[24]=D,t[25]=O);let k=`url(#${u})`,A;t[26]===k?A=t[27]:(A=(0,s.jsx)(`path`,{fill:k,d:`M66.6 9.36a4.14 4.14 0 0 0-3.93-2.82H33.65a4.15 4.15 0 0 1 3.93 2.82l25.18 74.62a4.15 4.15 0 0 1-3.93 5.48h29.02a4.15 4.15 0 0 0 3.93-5.48z`}),t[26]=k,t[27]=A);let j;return t[28]!==e||t[29]!==C||t[30]!==T||t[31]!==O||t[32]!==A?(j=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 96 96`,children:[C,T,E,O,A]}),t[28]=e,t[29]=C,t[30]=T,t[31]=O,t[32]=A,t[33]=j):j=t[33],j},h=e=>{let t=(0,a.c)(14),n=(0,o.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=`${r}-bitbucket-a`,c,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{fill:`none`,d:`M989.97,1493.09h518.05l125.04-730.04H852.22L989.97,1493.09z`}),l=(0,s.jsx)(`path`,{fill:`#2684FF`,d:`M88.92,14.4C45.02,13.83,8.97,48.96,8.41,92.86c-0.06,4.61,0.28,9.22,1.02,13.77l337.48,2048.72 c8.68,51.75,53.26,89.8,105.74,90.24h1619.03c39.38,0.5,73.19-27.9,79.49-66.78l337.49-2071.78c7.03-43.34-22.41-84.17-65.75-91.2 c-4.55-0.74-9.15-1.08-13.76-1.02L88.92,14.4z M1509.99,1495.09H993.24l-139.92-731h781.89L1509.99,1495.09z`}),t[2]=c,t[3]=l):(c=t[2],l=t[3]);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,s.jsx)(`stop`,{offset:`0.18`,stopColor:`#0052CC`}),d=(0,s.jsx)(`stop`,{offset:`1`,stopColor:`#2684FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===i?f=t[7]:(f=(0,s.jsxs)(`linearGradient`,{id:i,gradientUnits:`userSpaceOnUse`,x1:`945.1094`,y1:`1524.8389`,x2:`944.4923`,y2:`1524.1893`,gradientTransform:`matrix(1996.6343 0 0 -1480.3047 -1884485.625 2258195)`,children:[u,d]}),t[6]=i,t[7]=f);let p=`url(#${i})`,m;t[8]===p?m=t[9]:(m=(0,s.jsx)(`path`,{fill:p,d:`M2379.27,763.06h-745.5l-125.12,730.42H992.31l-609.67,723.67c19.32,16.71,43.96,26,69.5,26.21h1618.13 c39.35,0.51,73.14-27.88,79.44-66.72L2379.27,763.06z`}),t[8]=p,t[9]=m);let h;return t[10]!==e||t[11]!==f||t[12]!==m?(h=(0,s.jsxs)(`svg`,{...e,viewBox:`8.4 14.39 2481.29 2231.21`,children:[c,l,f,m]}),t[10]=e,t[11]=f,t[12]=m,t[13]=h):h=t[13],h},g=e=>{let t=(0,a.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-[#26251E] dark:fill-[#EDECEC]`,n),t[3]=n,t[4]=o);let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z`}),t[5]=c):c=t[5];let l;return t[6]!==r||t[7]!==o?(l=(0,s.jsx)(`svg`,{...r,viewBox:`0 0 466.73 532.09`,className:o,children:c}),t[6]=r,t[7]=o,t[8]=l):l=t[8],l},_=e=>{let t=(0,a.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-[#0F0F0F] dark:fill-[#F5F5F5]`,n),t[3]=n,t[4]=o);let c,l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`M9.26905 15.284L17.2479 9.36086C17.6391 9.07047 18.1981 9.18374 18.3845 9.63478C19.3655 12.0135 18.9272 14.8721 16.9755 16.8349C15.0238 18.7976 12.3082 19.228 9.8261 18.2477L7.1146 19.5102C11.0037 22.1834 15.7263 21.5223 18.6774 18.5525C21.0182 16.1985 21.7432 12.9897 21.0653 10.0961L21.0714 10.1023C20.0884 5.85143 21.3131 4.15233 23.8218 0.677913C23.8812 0.595532 23.9406 0.513151 24 0.428711L20.6987 3.74866V3.73836L9.267 15.2861`}),l=(0,s.jsx)(`path`,{d:`M7.62249 16.7237C4.83113 14.0422 5.3124 9.89222 7.69417 7.49905C9.45541 5.72786 12.341 5.00497 14.86 6.06768L17.5653 4.81138C17.0779 4.45714 16.4533 4.07613 15.7365 3.80839C12.4966 2.46764 8.6178 3.13492 5.98413 5.78141C3.45081 8.32904 2.65415 12.2463 4.02219 15.5889C5.04412 18.0871 3.36889 19.8541 1.68137 21.6377C1.08337 22.2699 0.483318 22.9022 0 23.5716L7.62045 16.7257`}),t[5]=c,t[6]=l):(c=t[5],l=t[6]);let u;return t[7]!==r||t[8]!==o?(u=(0,s.jsxs)(`svg`,{...r,viewBox:`0 0 24 24`,fill:`none`,className:o,children:[c,l]}),t[7]=r,t[8]=o,t[9]=u):u=t[9],u},v=e=>{let t=(0,a.c)(8),n,r,i,o,c,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`rect`,{x:`1`,y:`4`,width:`3`,height:`14`}),r=(0,s.jsx)(`rect`,{x:`4`,y:`18`,width:`18`,height:`3`}),i=(0,s.jsx)(`rect`,{x:`4`,y:`4`,width:`18`,height:`3`}),o=(0,s.jsx)(`rect`,{x:`19`,y:`7`,width:`3`,height:`11`}),c=(0,s.jsx)(`path`,{d:`M11 10L13 12L11 14L9 12Z`}),l=(0,s.jsx)(`path`,{d:`M16 10L18 12L16 14L14 12Z`}),t[0]=n,t[1]=r,t[2]=i,t[3]=o,t[4]=c,t[5]=l):(n=t[0],r=t[1],i=t[2],o=t[3],c=t[4],l=t[5]);let u;return t[6]===e?u=t[7]:(u=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 24 24`,fill:`currentColor`,children:[n,r,i,o,c,l]}),t[6]=e,t[7]=u),u},y=e=>{let t=(0,a.c)(6),n,r,i,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`rect`,{width:`1200`,height:`1200`,rx:`260`,fill:`#9046FF`}),r=(0,s.jsx)(`path`,{d:`M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z`,fill:`#fff`}),i=(0,s.jsx)(`path`,{d:`M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z`,fill:`#000`}),o=(0,s.jsx)(`path`,{d:`M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z`,fill:`#000`}),t[0]=n,t[1]=r,t[2]=i,t[3]=o):(n=t[0],r=t[1],i=t[2],o=t[3]);let c;return t[4]===e?c=t[5]:(c=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 1200 1200`,fill:`none`,children:[n,r,i,o]}),t[4]=e,t[5]=c),c},b=e=>{let t=(0,a.c)(49),n=(0,o.useId)(),r=`${n}-vscode-a`,i=`${n}-vscode-b`,c=`${n}-vscode-c`,l=`${n}-vscode-d`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,s.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z`,clipRule:`evenodd`}),t[0]=u):u=t[0];let d;t[1]===r?d=t[2]:(d=(0,s.jsx)(`mask`,{id:r,width:`100`,height:`100`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,children:u}),t[1]=r,t[2]=d);let f=`url(#${r})`,p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,s.jsx)(`path`,{fill:`#0065A9`,d:`M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z`}),t[3]=p):p=t[3];let m=`url(#${i})`,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,s.jsx)(`path`,{fill:`#007ACC`,d:`m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z`}),t[4]=h):h=t[4];let g;t[5]===m?g=t[6]:(g=(0,s.jsx)(`g`,{filter:m,children:h}),t[5]=m,t[6]=g);let _=`url(#${c})`,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,s.jsx)(`path`,{fill:`#1F9CF0`,d:`M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z`}),t[7]=v):v=t[7];let y;t[8]===_?y=t[9]:(y=(0,s.jsx)(`g`,{filter:_,children:v}),t[8]=_,t[9]=y);let b=`url(#${l})`,x;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(x={mixBlendMode:`overlay`},t[10]=x):x=t[10];let S;t[11]===b?S=t[12]:(S=(0,s.jsx)(`path`,{fill:b,fillRule:`evenodd`,d:`M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z`,clipRule:`evenodd`,opacity:`.25`,style:x}),t[11]=b,t[12]=S);let C;t[13]!==S||t[14]!==f||t[15]!==g||t[16]!==y?(C=(0,s.jsxs)(`g`,{mask:f,children:[p,g,y,S]}),t[13]=S,t[14]=f,t[15]=g,t[16]=y,t[17]=C):C=t[17];let w,T,E,D,O,k,A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),T=(0,s.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),E=(0,s.jsx)(`feOffset`,{}),D=(0,s.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),O=(0,s.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),k=(0,s.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),A=(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[18]=w,t[19]=T,t[20]=E,t[21]=D,t[22]=O,t[23]=k,t[24]=A):(w=t[18],T=t[19],E=t[20],D=t[21],O=t[22],k=t[23],A=t[24]);let j;t[25]===i?j=t[26]:(j=(0,s.jsxs)(`filter`,{id:i,width:`116.727`,height:`92.246`,x:`-8.394`,y:`15.829`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[w,T,E,D,O,k,A]}),t[25]=i,t[26]=j);let M,N,P,F,I,L,R;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),N=(0,s.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),P=(0,s.jsx)(`feOffset`,{}),F=(0,s.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),I=(0,s.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),L=(0,s.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),R=(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[27]=M,t[28]=N,t[29]=P,t[30]=F,t[31]=I,t[32]=L,t[33]=R):(M=t[27],N=t[28],P=t[29],F=t[30],I=t[31],L=t[32],R=t[33]);let z;t[34]===c?z=t[35]:(z=(0,s.jsxs)(`filter`,{id:c,width:`47.917`,height:`116.151`,x:`60.417`,y:`-8.076`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[M,N,P,F,I,L,R]}),t[34]=c,t[35]=z);let B,V;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,s.jsx)(`stop`,{stopColor:`#fff`}),V=(0,s.jsx)(`stop`,{offset:`1`,stopColor:`#fff`,stopOpacity:`0`}),t[36]=B,t[37]=V):(B=t[36],V=t[37]);let H;t[38]===l?H=t[39]:(H=(0,s.jsxs)(`linearGradient`,{id:l,x1:`49.939`,x2:`49.939`,y1:`.258`,y2:`99.742`,gradientUnits:`userSpaceOnUse`,children:[B,V]}),t[38]=l,t[39]=H);let U;t[40]!==j||t[41]!==z||t[42]!==H?(U=(0,s.jsxs)(`defs`,{children:[j,z,H]}),t[40]=j,t[41]=z,t[42]=H,t[43]=U):U=t[43];let W;return t[44]!==e||t[45]!==d||t[46]!==C||t[47]!==U?(W=(0,s.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[d,C,U]}),t[44]=e,t[45]=d,t[46]=C,t[47]=U,t[48]=W):W=t[48],W},x=e=>{let t=(0,a.c)(49),n=(0,o.useId)(),r=`${n}-vscode-insiders-a`,i=`${n}-vscode-insiders-b`,c=`${n}-vscode-insiders-c`,l=`${n}-vscode-insiders-d`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,s.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z`,clipRule:`evenodd`}),t[0]=u):u=t[0];let d;t[1]===r?d=t[2]:(d=(0,s.jsx)(`mask`,{id:r,width:`100`,height:`100`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,children:u}),t[1]=r,t[2]=d);let f=`url(#${r})`,p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,s.jsx)(`path`,{fill:`#009a7c`,d:`M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z`}),t[3]=p):p=t[3];let m=`url(#${i})`,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,s.jsx)(`path`,{fill:`#00b294`,d:`m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z`}),t[4]=h):h=t[4];let g;t[5]===m?g=t[6]:(g=(0,s.jsx)(`g`,{filter:m,children:h}),t[5]=m,t[6]=g);let _=`url(#${c})`,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,s.jsx)(`path`,{fill:`#24bfa5`,d:`M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z`}),t[7]=v):v=t[7];let y;t[8]===_?y=t[9]:(y=(0,s.jsx)(`g`,{filter:_,children:v}),t[8]=_,t[9]=y);let b=`url(#${l})`,x;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(x={mixBlendMode:`overlay`},t[10]=x):x=t[10];let S;t[11]===b?S=t[12]:(S=(0,s.jsx)(`path`,{fill:b,fillRule:`evenodd`,d:`M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z`,clipRule:`evenodd`,opacity:`.25`,style:x}),t[11]=b,t[12]=S);let C;t[13]!==S||t[14]!==f||t[15]!==g||t[16]!==y?(C=(0,s.jsxs)(`g`,{mask:f,children:[p,g,y,S]}),t[13]=S,t[14]=f,t[15]=g,t[16]=y,t[17]=C):C=t[17];let w,T,E,D,O,k,A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),T=(0,s.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),E=(0,s.jsx)(`feOffset`,{}),D=(0,s.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),O=(0,s.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),k=(0,s.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),A=(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[18]=w,t[19]=T,t[20]=E,t[21]=D,t[22]=O,t[23]=k,t[24]=A):(w=t[18],T=t[19],E=t[20],D=t[21],O=t[22],k=t[23],A=t[24]);let j;t[25]===i?j=t[26]:(j=(0,s.jsxs)(`filter`,{id:i,width:`116.727`,height:`92.246`,x:`-8.394`,y:`15.829`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[w,T,E,D,O,k,A]}),t[25]=i,t[26]=j);let M,N,P,F,I,L,R;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),N=(0,s.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),P=(0,s.jsx)(`feOffset`,{}),F=(0,s.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),I=(0,s.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),L=(0,s.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),R=(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[27]=M,t[28]=N,t[29]=P,t[30]=F,t[31]=I,t[32]=L,t[33]=R):(M=t[27],N=t[28],P=t[29],F=t[30],I=t[31],L=t[32],R=t[33]);let z;t[34]===c?z=t[35]:(z=(0,s.jsxs)(`filter`,{id:c,width:`47.917`,height:`116.151`,x:`60.417`,y:`-8.076`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[M,N,P,F,I,L,R]}),t[34]=c,t[35]=z);let B,V;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,s.jsx)(`stop`,{stopColor:`#fff`}),V=(0,s.jsx)(`stop`,{offset:`1`,stopColor:`#fff`,stopOpacity:`0`}),t[36]=B,t[37]=V):(B=t[36],V=t[37]);let H;t[38]===l?H=t[39]:(H=(0,s.jsxs)(`linearGradient`,{id:l,x1:`49.939`,x2:`49.939`,y1:`.258`,y2:`99.742`,gradientUnits:`userSpaceOnUse`,children:[B,V]}),t[38]=l,t[39]=H);let U;t[40]!==j||t[41]!==z||t[42]!==H?(U=(0,s.jsxs)(`defs`,{children:[j,z,H]}),t[40]=j,t[41]=z,t[42]=H,t[43]=U):U=t[43];let W;return t[44]!==e||t[45]!==d||t[46]!==C||t[47]!==U?(W=(0,s.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[d,C,U]}),t[44]=e,t[45]=d,t[46]=C,t[47]=U,t[48]=W):W=t[48],W},S=e=>{let t=(0,a.c)(10),n=`${(0,o.useId)()}-vscodium-gradient`,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsx)(`stop`,{offset:`0`,stopColor:`#62A0EA`}),i=(0,s.jsx)(`stop`,{offset:`1`,stopColor:`#1A5FB4`}),t[0]=r,t[1]=i):(r=t[0],i=t[1]);let c;t[2]===n?c=t[3]:(c=(0,s.jsx)(`defs`,{children:(0,s.jsxs)(`linearGradient`,{id:n,x1:`0`,x2:`100`,y1:`0`,y2:`100`,gradientUnits:`userSpaceOnUse`,children:[r,i]})}),t[2]=n,t[3]=c);let l=`url(#${n})`,u;t[4]===l?u=t[5]:(u=(0,s.jsx)(`path`,{fill:l,d:`M48.26 2.274C45.406 4.105 44.583 7.898 46.422 10.742C56.531 26.397 58.917 38.205 57.882 48.553C53.698 68.369 44.603 72.389 36.655 72.389C28.895 72.389 30.973 59.618 36.806 55.88C40.288 53.706 44.748 52.293 48.171 52.293C51.563 52.293 54.313 49.552 54.313 46.17C54.313 42.787 51.563 40.046 48.171 40.046C44.173 40.046 40.251 40.886 36.59 42.316C37.338 38.787 37.614 34.973 36.647 30.919C35.179 24.763 30.953 18.883 23.615 13.183C22.33 12.183 20.7 11.734 19.083 11.934C17.466 12.134 15.995 12.966 14.994 14.248C12.912 16.918 13.394 20.766 16.072 22.843C22.05 27.486 24.024 30.923 24.699 33.752C25.374 36.581 24.831 39.616 23.475 43.786C21.742 49.406 19.73 54.423 18.848 59.234C18.414 61.602 18.377 64.179 18.265 66.238C13.96 62.042 12.275 56.502 12.275 48.407C12.274 45.025 9.524 42.283 6.133 42.284C2.744 42.287-0.002 45.027-0.003 48.407C-0.003 59.463 3.23 69.983 11.895 77.001C19.739 84.474 39.686 81.712 39.686 93.709C39.686 97.095 44.642 98.743 48.033 98.743C51.511 98.743 55.888 96.418 55.888 93.709C55.888 80.097 70.233 71.824 93.848 71.86C97.24 71.865 99.992 69.126 99.997 65.744C100.003 62.361 97.259 59.614 93.867 59.608C92.252 59.606 90.678 59.661 89.126 59.753C91.766 53.544 92.937 46.708 92.695 39.324C92.583 35.943 89.745 33.293 86.356 33.403C82.963 33.513 80.305 36.346 80.416 39.729C80.736 49.397 80.374 58.03 73.171 62.581C71.123 63.874 68.742 64.996 66.484 64.996C68.237 60.228 69.561 55.195 70.103 49.77C70.449 46.308 70.486 42.195 70.091 39C69.478 34.05 68.738 28.436 70.617 24.207C72.305 20.565 76.087 19.04 81.64 19.04C85.029 19.037 87.775 16.296 87.776 12.917C87.778 9.534 85.031 6.79 81.64 6.787C73.388 6.787 67.133 11.13 63.587 16.377C61.733 12.417 59.475 8.336 56.747 4.112C55.866 2.747 54.478 1.788 52.887 1.443C52.099 1.272 51.285 1.257 50.491 1.399C49.697 1.542 48.939 1.839 48.26 2.274z`}),t[4]=l,t[5]=u);let d;return t[6]!==e||t[7]!==c||t[8]!==u?(d=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 100 100`,children:[c,u]}),t[6]=e,t[7]=c,t[8]=u,t[9]=d):d=t[9],d},C=e=>{let t=(0,a.c)(10),n=`${(0,o.useId)()}-zed-logo-a`,r=`url(#${n})`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,s.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M9 6a3 3 0 0 0-3 3v66H0V9a9 9 0 0 1 9-9h80.379c4.009 0 6.016 4.847 3.182 7.682L43.055 57.187H57V51h6v7.688a4.5 4.5 0 0 1-4.5 4.5H37.055L26.743 73.5H73.5V36h6v37.5a6 6 0 0 1-6 6H20.743L10.243 90H87a3 3 0 0 0 3-3V21h6v66a9 9 0 0 1-9 9H6.621c-4.009 0-6.016-4.847-3.182-7.682L52.757 39H39v6h-6v-7.5a4.5 4.5 0 0 1 4.5-4.5h21.257l10.5-10.5H22.5V60h-6V22.5a6 6 0 0 1 6-6h52.757L85.757 6H9Z`,clipRule:`evenodd`}),t[0]=i):i=t[0];let c;t[1]===r?c=t[2]:(c=(0,s.jsx)(`g`,{clipPath:r,children:i}),t[1]=r,t[2]=c);let l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,s.jsx)(`path`,{fill:`#fff`,d:`M0 0h96v96H0z`}),t[3]=l):l=t[3];let u;t[4]===n?u=t[5]:(u=(0,s.jsx)(`defs`,{children:(0,s.jsx)(`clipPath`,{id:n,children:l})}),t[4]=n,t[5]=u);let d;return t[6]!==e||t[7]!==c||t[8]!==u?(d=(0,s.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 96 96`,children:[c,u]}),t[6]=e,t[7]=c,t[8]=u,t[9]=d):d=t[9],d},w=e=>{let t=(0,a.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-black dark:fill-white`,n),t[3]=n,t[4]=o);let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z`}),t[5]=c):c=t[5];let l;return t[6]!==r||t[7]!==o?(l=(0,s.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 260`,className:o,children:c}),t[6]=r,t[7]=o,t[8]=l):l=t[8],l},T=e=>{let t=(0,a.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-[#d97757]`,n),t[3]=n,t[4]=o);let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`m50.228 170.321 50.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0 125.796l.583-3.759 5.12-3.434 7.324.648 16.202 1.101 24.304 1.685 17.629 1.037 26.118 2.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758 7-7.713 9.397.649 2.398.648 9.527 7.323 20.35 15.75L94.817 91.9l3.889 3.24 1.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42 0 82.05 1.426l4.472 3.888 6.61 15.101 10.694 23.786 16.591 32.34 4.861 9.592 2.592 8.879.973 2.722h1.685v-1.556l1.36-18.211 2.528-22.36 2.463-28.776.843-8.1 4.018-9.722 7.971-5.25 6.222 2.981 5.12 7.324-.713 4.73-3.046 19.768-5.962 30.98-3.889 20.739h2.268l2.593-2.593 10.499-13.934 17.628-22.036 7.778-8.749 9.073-9.657 5.833-4.601h11.018l8.1 12.055-3.628 12.443-11.342 14.388-9.398 12.184-13.48 18.147-8.426 14.518.778 1.166 2.01-.194 30.46-6.481 16.462-2.982 19.637-3.37 8.88 4.148.971 4.213-3.5 8.62-20.998 5.184-24.628 4.926-36.682 8.685-.454.324.519.648 16.526 1.555 7.065.389h17.304l32.21 2.398 8.426 5.574 5.055 6.805-.843 5.184-12.962 6.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666 11.406 21.387 19.314 26.767 24.887 1.36 6.157-3.434 4.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73 6.935 25.017 37.59 1.296 11.536-1.814 3.76-6.481 2.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194 77.448-3.37 3.953-7.778 2.981-6.48-4.925-3.436-7.972 3.435-15.749 4.148-20.544 3.37-16.333 3.046-20.285 1.815-6.74-.13-.454-1.49.194-15.295 20.999-23.267 31.433-18.406 19.702-4.407 1.75-7.648-3.954.713-7.064 4.277-6.286 25.47-32.405 15.36-20.092 9.917-11.6-.065-1.686h-.583L44.07 198.125l-12.055 1.555-5.185-4.86.648-7.972 2.463-2.593 20.35-13.999-.064.065Z`}),t[5]=c):c=t[5];let l;return t[6]!==r||t[7]!==o?(l=(0,s.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 257`,className:o,children:c}),t[6]=r,t[7]=o,t[8]=l):l=t[8],l},E=e=>{let t=(0,a.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`mask`,{id:`gemini__a`,width:`296`,height:`298`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,style:{maskType:`alpha`},children:(0,s.jsx)(`path`,{fill:`#3186FF`,d:`M141.201 4.886c2.282-6.17 11.042-6.071 13.184.148l5.985 17.37a184.004 184.004 0 0 0 111.257 113.049l19.304 6.997c6.143 2.227 6.156 10.91.02 13.155l-19.35 7.082a184.001 184.001 0 0 0-109.495 109.385l-7.573 20.629c-2.241 6.105-10.869 6.121-13.133.025l-7.908-21.296a184 184 0 0 0-109.02-108.658l-19.698-7.239c-6.102-2.243-6.118-10.867-.025-13.132l20.083-7.467A183.998 183.998 0 0 0 133.291 26.28l7.91-21.394Z`})}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsx)(`g`,{filter:`url(#gemini__b)`,children:(0,s.jsx)(`ellipse`,{cx:`163`,cy:`149`,fill:`#3689FF`,rx:`196`,ry:`159`})}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,s.jsx)(`g`,{filter:`url(#gemini__c)`,children:(0,s.jsx)(`ellipse`,{cx:`33.5`,cy:`142.5`,fill:`#F6C013`,rx:`68.5`,ry:`72.5`})}),t[2]=i):i=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,s.jsx)(`g`,{filter:`url(#gemini__d)`,children:(0,s.jsx)(`ellipse`,{cx:`19.5`,cy:`148.5`,fill:`#F6C013`,rx:`68.5`,ry:`72.5`})}),t[3]=o):o=t[3];let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`g`,{filter:`url(#gemini__e)`,children:(0,s.jsx)(`path`,{fill:`#FA4340`,d:`M194 10.5C172 82.5 65.5 134.333 22.5 135L144-66l50 76.5Z`})}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,s.jsx)(`g`,{filter:`url(#gemini__f)`,children:(0,s.jsx)(`path`,{fill:`#FA4340`,d:`M190.5-12.5C168.5 59.5 62 111.333 19 112L140.5-89l50 76.5Z`})}),t[5]=l):l=t[5];let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,s.jsx)(`g`,{filter:`url(#gemini__g)`,children:(0,s.jsx)(`path`,{fill:`#14BB69`,d:`M194.5 279.5C172.5 207.5 66 155.667 23 155l121.5 201 50-76.5Z`})}),t[6]=u):u=t[6];let d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,s.jsxs)(`g`,{mask:`url(#gemini__a)`,children:[r,i,o,c,l,u,(0,s.jsx)(`g`,{filter:`url(#gemini__h)`,children:(0,s.jsx)(`path`,{fill:`#14BB69`,d:`M196.5 320.5C174.5 248.5 68 196.667 25 196l121.5 201 50-76.5Z`})})]}),t[7]=d):d=t[7];let f;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,s.jsxs)(`filter`,{id:`gemini__b`,width:`464`,height:`390`,x:`-69`,y:`-46`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`18`})]}),t[8]=f):f=t[8];let p;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,s.jsxs)(`filter`,{id:`gemini__c`,width:`265`,height:`273`,x:`-99`,y:`6`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[9]=p):p=t[9];let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,s.jsxs)(`filter`,{id:`gemini__d`,width:`265`,height:`273`,x:`-113`,y:`12`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[10]=m):m=t[10];let h;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,s.jsxs)(`filter`,{id:`gemini__e`,width:`299.5`,height:`329`,x:`-41.5`,y:`-130`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[11]=h):h=t[11];let g;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,s.jsxs)(`filter`,{id:`gemini__f`,width:`299.5`,height:`329`,x:`-45`,y:`-153`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[12]=g):g=t[12];let _;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,s.jsxs)(`filter`,{id:`gemini__g`,width:`299.5`,height:`329`,x:`-41`,y:`91`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[13]=_):_=t[13];let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,s.jsxs)(`defs`,{children:[f,p,m,h,g,_,(0,s.jsxs)(`filter`,{id:`gemini__h`,width:`299.5`,height:`329`,x:`-39`,y:`132`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,s.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]})]}),t[14]=v):v=t[14];let y;return t[15]===e?y=t[16]:(y=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 296 298`,fill:`none`,children:[n,d,v]}),t[15]=e,t[16]=y),y},D=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAAjOElEQVR4Ae1dCYxkV3W9tfdW3T0z3bMvPcxge2zGy2BjY0MwxEAWEBACihSCEiMUSFCiRJEsRygIiIKySUlYAkmMQSxJQAKi4AQngDcMAe87nsF4xuPxrJ6ll+rqri3n3Pfv71e/f1XP4u7+Zdeb+XXvu+/9999/57z7lv+rOiVnF1ILnNYuvV3aAsW+JJIbbe6yXRpPWyh9XtFnCsZC+ePS42ysSCv7vEq2MbwQZbQp/rSTzrjhY0puVUacPc7mF7lQepj3TBqwVd44e9QWjbMCcbawYqeR7uftBH0hUOLSo7ZonPcdZ2tnb2qrhUBg5nZ5/DRfj57XLs0qFM1j9herjAMuavPjvs428eO+Hm2vdmltwWVBrUDx7S+U7lfcL9O3d7reCgzf/kLpflv5Zfr2lgAzUxwIUZvFo9I/v12an4+6BTvH4i8WGQeEb4vTzWaSbWF6VFo7md3i/jm+LRZkZogDwLeZfq4y7lpWZlNFX0SRKDh+3PRzlWwuK8Nvunm2uMZeyGbpvjwdnRXx8/nxqM44g+V3sc79nNfwuBXfZno76ae10tlClhbVGWfw0yXrbOFnXIObrZ1kmp++UJwX9PNbBcxmcZOt7JaeVNnU2F4lfbvpcZI2Hrx/01mMxam3Cv55fp6mc/2G9XU7wWxxkjbfbvGoZFmp3t6+wtDwim25XO6KdDp9JUyXpFKpMaT143gph6lGo7EX+D5Ur9d/XKlU7jl18sRT09OlGTQKQWQw8ONkNN3icZI2C1q2D6AlmIym+XHqCx4AOr127YZduXz+9wD2r1nBXblwC4AU36jMzn7m0KED94MYdZwRB34rGy+gAMdIplloGIhmMOmDTZufz3Rfpr08KQK/bv2mX0Rv/wLsL/UejiY4pzAFr/DbB5/b/70YIrQiBi9o5DDdl9Q1GIgWp6SNwZdRnfEm0C2+es26rXD3X0KPv4iFdMML0wLwCI9hWPitI4cPPo0SCW4U/GicF16QBATSwOUJpvsyqvvAm65y46axd2ez2c+yoG5YnBaoVqsfeHb/3q+hdJ8EPvi+zkq0JUEGGXyAeQIDbb7d4gY449T1gMfPbNq89eOZTOajsHXDIrYA2votg0PDxYmJU3fAK/BKhpNdNRpvmyeOACzACjGd0sAPgadNwd809knI63mlblj8FsDwesXg4NAmkOA7AQnsoj5uZjNpaRZXaQSwRF9S949YAqDnf6wLflObLkkEJNhZHBwaOHXqxO1neEEfY4kjgA+66bHgb9y05V2ZTPajZ1iBbvYXqAXoCQaKxafHx089EVOkAR2TNGdiJoLLYGCbbqBbHsbDY3T1mq39/cV7mLkblrcFpqYmrjh65PDTqAUngNHDJoE2OWRlzdYEPhMYokSweCix0M/09Q180WXvfi53CxALYuJhF2IV2FhFs1FnYDwkgBksky/NE4S9f926Da+H+7mQJ3XD8rcAsSAmqEmIEXRiaNj5eJquFbcMGvE+LJNJy4drpTP5fOEmL29XTUALEBNig6rMw8yzRWuaIrAMdpLJOBvzptesWbcLsru9yxZKVugPsFGcUDXD0iRra7rJpiHAbscSfWkeIJ0vFH7XMnZlslogwCbECrXzMTS9qdLM7AdmYrDMviT4Baz53+aydD+T1gLEhhihXkYCHz8f27Dq0YxMiJ4UxoeGVmwLz+wqiWyBAKMQsxg8We8wPc4DMJHBMoUkwUTjlS6p+5nUFggwmoddUF+zh9X3CWDAM9F0O4H50njYc0V4Zgcq3P2o46OGLZEaJHWN0xboHXhbTVUOMFK8kGD4MY9h2qTzncBoJovPk1gD7uTZnRb40IxAF3tExlaKbMexoS8txXRKGpW0jJdSsn+iIXvG6/JMqS4lsAFJTS3WKfccYDQPO9Tft6E13O35L4UygwU/c6ij8M2WoVMkX6ZaMSDyhleIvGmHyAUrUjKMOVJ2Ni2pckZSM+gskNXptJycEnnkeF1uOTQrdxyflcmqI0Kn3CvrGWAUYkaTdzALA20kQexbwUxk8E80vePW/688PyXXvzEluzaK5Kvo8eWUVMtpqYEEqfBISQpdfmUhLW8Yyco1xYLcdawin3m2JI+XKjqldk3SEZ/EyPDyJStvcQWfBvMATPBDXDxq8/MnSufdZdCx33x1Rt73K2lZ3ScAPYVx3kGOHTO4eOjcB1Md8XRa6rDVcGQyKbluVY9sL+Tlr56ZkNtOlbXlEnWT7StjQPu5ovgx3rA5ADPaSZbRj5vuF5hYneP3L12bk+vfnpMBbI7yBWv2d2AbAk/w08ioZIC0eAaZ+KpsA3JLb1o+snlI0s+IfK+zSGB4+TKKsc4DzANEwfRPpM5g0sUS+snJ3tVX5OXd7+iVNLZESrMOfPR1RwLchjp/EIBgZxR82OAB6DUaOEgMOAElwmg+LTduGJaT1RNy7+QMiJLQG2+ultWS0j+acyHGdmGwE6K6xa0QxhMbOOHbsiUr7/z1ouT681Kq56XcwCF5mZaCHmXIciovM6kcDidn03mppLNSSWWlClnFM5UqCFHDQbmukJM/Xjck6/IZfdie2AaYq5jh5ePKVD+uuu8B7CTLGI3PFZ9AjUu93t6U/Orbh2TFuh51++zCKdjTerDnu7Gfj8zoBbLqATAR0h7fgMRyEUcWJzVwkhsKnH7JQI/8zuig/PXBE7pnkMAmiFbJwDYco3G0ytwkMHqyH/dP9O2J0kmAS68akPMuK2IdD/et4IMAwT+6OhIACz/n+nFXdPMkQY6gA/A6QeeRwYGxRHXEuYmQAineivXknRNluWt8Ws9NVAM0V+a0MfMngVaEncy46SYtT6IkwR9elZVXv2mF1LJ5mZ1FdclvDOipOiiAQ8d93A5JwJsm+DkcJEAN4JIAuYAA9XQdZKirjSQQ6CREEUz5zZEheWhqRiYx3iS6UeKxi1YZg158YMZ5meOzJsN68dVDsnLzgExV09r76QGUAPQECrsjgXoAWIwAJEEVBCD4tQB46iRAo+kAERp1uXygD/sEffLfJyeT7AXisIvaFLgoAeIyxdmSgTpqwd4/uDInF75mlcxislcB4A0M5O4g3I4AKXiDNNIyONjrs3ARFdwZ3T8m+iBBzREgVQ+J0EjXQhI4L1CTApjzjlVDcvdEqZO8gI9XE55GABqbEvwzFkiLZF3aKL8Ysf2VwzK0gWM/Zu4NzNQBdkMPTPcgObNLKwE4B4D7BwlyJAF6fh5EqOHOqwC7FoBPT0Dw695Bb5DDikAaNXlF/4Dsgie4/dQEvEC7ZlvatohcrV3FmMZDN4Ii5zVF2xXSlHFZIuj9Pf1Z2X7ViHApNwv3X6uDADgaPAISsPenQAybB2SDeUAu8AIVEKFgHgBA16HX01UlgPMC9AQ8qlpmIZuRN64Ylh9OTIFwqESyQ1sMzQP4t9DqhFZ2/9wl1eto/LUvL8qKrcMyXc1JFSBXSQDwug5dSYA4pvUggPMCpAEHhixw483ncQBqDAHuqCkRHAEIOL2AAg8de8QoCxJe4NLikGztOSa7S9O6u7ikN77wxVphNc8eRwArfl5mS0iKTGM83nL5qNTzPTJbceBX61l4ARAARyMgAR2d8wIAHzYlAO4uhxvB86E58NH7awC6RtefIvjuUCJkKiiPcQ4vVRnExOHVg8NKgKS0R5t6tMSyFQH8E3y9zTWWNoljf3GkV1ZfOCLlWk4q6OnVOrxAQIAavQBJQA8AmYJMYS5AAnA+QA9AAjgSzPV+Hfc98EmCRprgo6kCEmD6CB9Sk1cNr5JvHjsqE7Va2wnU0rZM09V87Hw9zNSKAGGGxCrY9l19/grJrxqUchXbtyRBDRIkUA+AeA06vQAJICBAWsGn5CogpTByHoB+7SaAAJXjP72AAx5SQac3qbihBXEdXuAFNvUPy/a+otw3fiLJk8G2EHYsAdJYv63ZuQbuG+4f4FYANg/1AAC/Dt0Ogu/mAZj+2VwAm0M5EAH9G7DzIAkcAZzrB9AZEADAqwcg8KCMDiuYC9AL9KQysmt4RB6YONm2kZOc2JEEoPvvH+mToW2j6P05EAAPcvDgh16ARw06wVcPwGGAc4DAC3A1kCEJ1Im7/QDuBHIJqO4fE7xGPfAA9TnwG41ZLaeRQXnYccA+IbaHq3Lh0GoZPLhPxqscFjovdCQBgICs3DYimaEhmali8wegV2oggHqAvAJfBwlqsDd4EHydCHIe4OYA3AvgW0EcAgA9/mHvn74AXkAnfXDxbuxnr8ehwNMLgAiYRmLzGEdFRvtXyZb+IXn45FEQovMo0JEESOPB/Yod65z7x7iv4JMAetALYHsHh/MAJACmeuYBgk0h0EBXA5hK6BBQhwdo0AtwAqhDQUAAHSQIugOcPZ86iVDHTnoPHh/vGF6rBOi8/u+WwqdT7+RQG+4/P9wrA2NrZAYgzwJc5/4dAWoEHkedB7wAwacH4KErAbh/Lgk5kbNXwV3vhydg71ciYK2PiaA0uEagB8D50On6HREQB/iN2izeKMvJthUbpe/ZJ2W6lqhh4LQw6zgPAPxlYNMqyQyvxNqf7p9HQcf9qrp99nwHfl3dvyOAbnoCdM4BHAG4JMRzg+Af0MbmKPyBEgDPk7n8094PoINe38Ckj+6fPb8Bz6MS84SR4lq8dzgke8c7bxjoOAJwmB3cvh6Pffvx2JfLP/Z8EMCkjf1KAuf+dQ4AwNxKwBEAT/gBJjZ19B+SMBFs4GkfPYBgI0gwERQMBw24eDpK3QeAVD0FTxCSYFZ6erOyZXg9CHAE6afV8ZAvGaGzCIBOmuktSN/YRpnVnu+7/YKSga5fx35IrgTU/Sv4uFVMAFOcDBJ44FxXD6B9H2gEHoAJGOEFAOswAC/gRkrECToPkILunzo3m1KYMI6t2ip3P/soyuT5nRM6igBc/hXwQkZ2dI1UAvdfC3q/Ss/1O/CdB1D3H+wFcB3PIYAeAM/22PUDH8AIgceBLWEgizj2D9QDkARw/xwCeKAsmwPUmY5VwujKLfjmUVFOlk521GqgowjAXtq3Zb00eoYC188JXwETPjcHcJM/BzoJIOoBnBeg+0fXxUECuLcECD5dNocBGKHbEZBAz5kDX8tQz4Bmg1dREtTx2jG8Ss/AWlkztE5OlE6gxM4ZBjqKACnswPWMjeGpXw8mftjoUXdfQI80InD3j0tAgMNZu5KAOm5TPQAJwN7vXg6xl7roCbgSwBpANZIhRW+gPoJeACRQ4kDHqoC67gVwdQCPwKePPXgcvX5kuzx5MO4X23BaQkPnEADuPzuI173Xb5JKFT0eO4AhAXS8tzEfJODyLRj/2Tv1gZD2ZrcEZK/n+M9nAoSZcbAEn84D0Ko6wOUugQ4WWCJiqxD8oSfB0pBDATeLVLIZa7J69HzJ5/4X9eNP/XdG6BgCcPzPr10jqcFRqVYIPlw/x3yAz00ft9530sDXnq/AEzQCBgAD9083TcgZ1BNwCMA1aKpxIse5AIcMfIGE3x5SPXgjSL0Iy9U5AsrlnAAEGFgxJkMDq+XoiX3uHC092R8dQwBusxY2b4UnL0oNBAg3ehT8ZgLosi90+wSeBAhAJPAggev1BMeRwPV9bguTBG5QcJ4AVGH+gAicQGpZBF9JBRl4g1zfiIyMbJMjJ/YGpSYbfNaucwiQz0tu03Zd83Pp5cZ6fPdLXb0RwI374SPgoNcTKAcagAzBdw4f6ClKJEA9mAhS0CvUAiI4b0ALwFdvwIkk5gWBTk/AnUXBN41G1u6UzFN3gGQsMfmhMwgAl5xZsUrSqzbq2K87fOj5c+AHOsd7r+eHwIe91iNApI86uBwpnBfAAMF5ATwPHxo5SnDGQMJwiKAksbhjyIkldNiHR3dIT8+wlErH9VwYEx06hAB4c2f9mDR6V8H1Y4IXuH28C4bxNxj3FXjcDryDAR91/WHvByQc/wmhAW8a4/yauObQ1QBzOiJU9Qyk6fyAebhzSHJw/QAigKj5oY0yiLlAqXQMdpIi2aEzCIDlX3bzBWjuXl3iEXg73ESPM/1m8I0EoetX8AIXDj3AWK0+RJwFMPBbxkqRYFhwBKFl7p8NDcxJLyBYKeQL+ILKuovl0IH7/GITqyefAHDD6f5Byazd7nq/ru2dy2dv53rfPeq1nu9m+44A7KXsocFRLUl98oDUTu2TRukwVnPTSMPInu/HNdbg/YIxyQ6sx44vfkwIkOpQoDmcR1CvwDjZE8wPOECwDJKBqwyqw+suk2zu3zFcufKRIbGhIwiQWb0Zyz/sANL9KwFMBqCHbt8Dn0go8LDBHVf2fVdmf/4/Ujv+pNTLeIULT/GAmAOGYGZyku5ZKbnRi6Sw7ZelZ/PrJYPezMlcSAQU6eYDPM8NC+ol1GtwOODcoCE9q14ufYMbZPz5PYmfBySfAGj0zKYLsZ8ziNZHdZUABD44FHwAaBM9zsYJPiX28yv7bpXyg/8s1aOP4XyATrDV/yOPSscBptUnD8nMxHMy88ydUl53uQzs+qAUNrwaJLDJIUvGeQq+I4FG+WFlYh6Q7RuVIawGxo/t5gmJDmiNJAf0skK/ZDbu1Mne3AOe6JgPsJuWeojD/ZYf+EeZuu1GqR5+EOnondzF80GP3jrTmAePgmf33y0nv/tHMvXYVzAf4I4fZ/puZ0B/Swg6vUENE70q0qqQFayq9UcmMgUZ2vgqPEfCUJXwkGwPwPEfS78UHrU2agSGHsD1fL7dwzGXL3gQfKeTz4gD/Ol7/l7Kj3wJ+TFG65buGSIBItQxdEz86C8xV5iS4sXvAznYXJwkslvz0JkiJK8bvFkQEKxv7SVSwAOi6VP7wbnk9rPk1gxNypDefLFIYQU6MIAF+G6TB7oCTzL44ON28FZv+aGbHPjQ2/Z4d4nWn+z1mChO3vtpmXry6wq9rvkxJJAGulkEIlTpCZCXB3V+QzmDyeQAhgFUuHX5CUhJMAHQcPk+yWzehTZ0j3RtyacPeJQAbm8/7JEAYPZnt4AAn3c9X3vpObYyejQ9wAQ8ysyBu7FH4IAPhwNcg4+L+BN0KnVYABkyvTK4+Ro4H3qN5IbkEkDd/2ZJj5yHyRt7NhpSvQB7P6vtHbr8wncCj/1Upu/9lDRm8ZOf7cb6M8UDxKpPHZHxH/+tVDFJVBKAn+YF2Mf5+4LcKCIJKPkWQR8mknkMAzr/ONNrLlH+5BIADZDZgh8nh/t3z/Kdu3eun8MBScGDYzE8AUAv3/8ZqZ/aC/AX4bYwj6gcfkgmH/oXLC648xesDIC+9v7QA5hHwIOWwU0ysOEKeDBSJJlhEVrqhbhRNC9er0pvuRKF5TDRI/gEO+j90PXBTAA+CTD71C0yu/f7AB95Fi2kpPTkN2Vm/52BFwAJQk8ATpIEJARqp6+cYzVQ3Pp6zB35NxySGZJJAP4A05oLAvePHk7A6f6VBKwyx35K9n7M1sf3yczDX0DL4/WsxQycD8yckknsK9SmTzQNAdw65mHg61AAQy+GgcKKrag7B4zkhWQSAMut7PbXSipXDJd5oevn2I+ephsySoiazGCtXju+Z3FcfxQzeJjZg/fK9O5vcBHYTALGSYTAA/DXQ9J9a/AllmujpSQmnjwCoKek8I59evNV6PUEmwfdOt0+e3xw0P0DjNrh+2V2938E9iVqV8wBph77qlRPPqUk4DAQzglQBSOBeYSBl70Jr7PjjxQkcC6QPAKgATNbr5F0cQMaDJADfL6Fo2/lkASh7pZnZbj+xvTzIAOJsUQBk8zayb0gwZd1QqirAfZ8EkE9gEcCGHOrdkjfxiuRlrxhIFkEQOul+lZK9rzr0M85+QP4dPnB4UgQeAD0/uq+70kF+/aLMutfkEspKe/+T6kcuiccCugFQjLgfJ0QkhScDJ73Njx1xO/Wa+4FC1+yDMkiAJovs/VqyYxcoI/abdLn3uNnVekRnOtvTOHBzSNf0G1f2pc8wOPUy8dlCruOdSxBreeHQ4F5AlSMP2ZVWH8lJoTc1EqWF0gOAdj7e1dIbsdb0aHxPN5cv3kAAs+DYCPvzE+/LtUjjyK6mMu+BWjFCeH+H0j557do1ZQEBB71jHoCKQxKcce7sCTkuwbJCckhAHv/y16Hv02L/XO0Hl2/ewM36PVoVP7Tid/Rh2X28X8DEZa/N/E7gqWHb5bqqWcc6MAWHABH5zaKlBioas+ma6VnA/Y2+IwiISEZBGDvH1gjuZ3vxFyuJ5josWoBCSgJPr3B7ITMPPhP2Jo9BDIkoPqoQ/X53VJ65PPgI18QDQgAqZ6AHkF1PC0sFKW48734QxZ4tyEhc4EEtCDaAuNp7qK3Y+zfAfAR1aUfQWf1Ag9AAiDf7J5vyuy+26Avo+tHrZoC6lXGDuEs3jriKOWWgUYEDAdGAjChsOEa6cMbRzppaCpkeSKnSwDcwiIFuMMMXqLMXYTejy3fOfDRkmxN7fkEH2v+Iw/j7Z6bML3Gmz2JCnD3s5Mydf+n8b7hM24+gPqx0bT34x7c/ABeAN8hHLjkfZJd/N3B08LsdAmwOM1N148NkvwV79cdM53hc52vPd/r/XCzXOuX7/07qU88CzIsb7VjG4NDwdHHpXT/J/FC0XQwD3A5jQgqcc+Z4e1SvOyD2OnsRYbTwin2ki+EcRlbEjeOt27yl71Hshuvcl3FwNchwFw/qogeX37wc1LBa1qJcv1RBDgU7Pm2lB//ivZ4QsueT8n5gHoB1TEh3P5W6cOqYLnD8hEArZK74C2Sf8VvoMc71689X0lg4HMIwLzvp1/DrP9fobEpkxxQX5C1dP9nZWbvrXNDgZEgGAr08TCHgl2/L4XNr8NtcaBYnrA8BMANZ7HkK1z5IX3gw2erDnxKNKKN/Rj3K09/By95/EP4Dv/yNNMZXBVeoFE+IaUffUIqB38yRwIUQfpyo4gPi7g5lOoZkcGrP4xvPe9CwvIsDZeeAAR/6y9Iz2tv1HGfs6S5no/qeOBX998h0z/8BMb/48kc91vxAvOB2vh+mbzrz/ASyQO8QQ2OAEYEDgt4Wji0VYq/8DHJrca7j8vgCVoRgHW14OtmOzuJG8ysu0R6XnODpAfwsIfg63hv63y2FA5OqPZ9X0p3fQTv6h/U+NldcBnPIgmO75bJO/4Uzwvui/UEOifAR2blDim+9qOYHI690CTwsfP1sGFaEYAZYk8IzzxThS4PD3p6rvwDSQ+O6V6/gm+bPNrzWR38AOueb0npzg/jRY+EzvhP9965dMU3kSZvvwEPre7Qs6xRKTkc6EESjF4ifZe8H49CF+W7BHbZeTWPI0CrzK3s8wqNN+Bv7oxdK9m1l4cPetyIjx5P8PnjS3ioMvPA56T0g4/rS5iJXO7F31xrK0lw8mklwcwTX8VQj5+XQW72fpO2Y5gfuw77A9uQcM6TwlZYzbOj1duGeSe0zd0uES4xg+/dSQYPQ/QPLBjwcP/46RW+0VO+71P4/t6tGBr4Pn8cN9tdIMFpuJd66ahM/fAvpAqP0HvpBzAErlMS6JePrer5QcyLRkGAx3H/Zjxn2RZDIwAztctoaSXk40PtMw+gfO3oE9rLU1m86sU7xMy3Pn0MW6jfl5mHbpbaiacc8JhJv+gCSNColaX86FewYfSI9Fx8PX7z4BrsDQ+D6xgKsF9cPXQvCMLvE54T+YkRg2HmYs2fId5GAEuOOym0Yf26H1+NPt8yn5HETVV2fxvf1D2OYeAy3CR+5mViP276AQD/M7e9e243fkbVWZ7MIDb+V/l6+W03SHblyyWDt4VS+SJWOvgG83M/xtB3GHnOvgMQI+/eQuxa2aIEsHwhQ8wA2ajX649mMpmzIwALwKPTyl68xcPXtxk4EPJmCfyLHnx3y/rJe0VbVPFsg2Rwwdrh7MFnOcQIIgp8HJ56WfqauMya6KVpnlqter8lnLXEpCgEXL+te07u7qyrkYgT2Rb8wqkebJdzA5/35GFkuJpksq9r/HRa305qzJTL+J51NyS5BQKMQswWqqtPAJ7knxiNy/g41jPdkOgW8DBqh6Wl6XNX3lBoiOiWxvRGBQHfi/svGrsheS1AbIgRaqZ4BdKv6DycfQ8QzRgtROPTpdLNfsaunpwWCLAx3Fgx003OqywJwEQGyxQXD9OOHcPUVcTWmnpi9yMRLVAKsAmxQq18nZWcFzcPwAQ/xMX1ZKwz69PTpT/0M3f15W8BYkJsUJMoyFa5OEzDOYCfyTL6BTXpRw4fvAsXw5ZVNyShBYgFMUFdmnCKxFlVS6euwTwAI0y0YBmjUhlGpp06eeJDlrkrl7cFiIXX+6NewMfQKhpijd2H0AvYLgTlQke6XJ6e6O3t25/NZt9opXbl0rcA1v03HDt2+Ce4MoHna0WUcUeUCBo3AkTBRxlKDCMC49TpMcyWmpwc3zNQHCym0+lLmaEblrYFqtXqF5878MxNuGoUcCMCQWaaSVbQiECdP6rXBCptIcCBHmezPOmJiVP/VywOrQcJLmDGbliaFqjVat868Oy+P8fVCLABHiWCgW+gmwwrSQIQTAumG8BRyXxmM28gE+Onbh8YKPan05muJ7CWXERZrVa+SPAx7vvA+7r1+DgCsGZGhOCnN+ZAZWIrEliaEcDy0Y5t4lM/6untxZwgd50auh+L0gKYe9343IH9N6NwAm5Hq54fJQDrRPDDEB0CfFCjQFua2VmI6SonJyf2gJW39PT0vgrvDawKr9JVzrkF0K57Tp44/t7njx2xCZ8Put/7DXSTYW9HJZrAZ6UIHEnA4INp7p0yejC/ESdWB/iZ0dE11/T1D/wN8p7dG0Q4sRu0BUqlqck/OXr08N2ey/d7fivdJ4iRwaSRQkE3sH0CmG7gG1Es7hOAttg4iJBeuXJkJ4jwHrxI8uYuoKffApjk3Qrgv3z8+LFHALyBaT19Icn8zEOg7VwDvUkSWCMA1CYv4KcZ8CYN8DjwfRt1LQf7BXksGbdgeLgY84RLM5n0DvADXw7A34F5aYdp4HugVqs/gcndgxjjH56cGN+HJR5/9NB6rIFowBvAvozqdo6RoAn4oMnDl/EZJ1A8GHzwTTfw46RPCJ8A/rmmU/qHXc+XUZ3xVoFlLWdgw55O8POZ7kvqdhA86lEQfQK0AtzOMRktk3U1m/7dQEbYiJQM1qAWp406C2wXmMc/h/lJBjuXOm0++KbDHF7Xru/bqHdy8NvFdF9Sjx5sK9oofT1KAkuPymh5KEaD2Rnhj/DOC8wQDSzcAIymxcUtv12MoJrNQDfJ8w30qIwr28/fKn257HFt59fF0uOktRUl28ri1O2wNIu3kpbPyvClXx/1ADQwAxvfpNkoLTCNgZIXtsB49LCyLC/JQxvPo4weMKnNl9QtMH8nBt5/NJjNl9TjDrYX7Qa0r8fZ4sowm9WDcQaV7TwAG90y8wRe0LyAD4jpdiFKO9d0O5d2/0B0HvBWHtMYonFn7ZxPvw1Za4vHSdrsYJv5usUpfZ15fJvF7VxKBou7WPDpE4AZ/Mb241YIL0QSMFBnsHNMMi/zUFp+plGnjB4wzSuDNgYr08U699Paz+7A4r6kHnew3cxueivJfJZG3YKv0xbGDQzLSGmN7suozri5dep+vJXd8pm0azFueqCGdbB4K2nntkpfKnvYoAtc0M9nOmVUNxulD6gfb2W3c1mVqG42Sg0+GGajtIb1ZVS3cymjoFtanN3KtzwWp2SgPRribNE8SYwTgGjwbaYbUHFx2qJgW/5Wdl7T8pjuS+oaOAQwY7SBzeZLd0b8JytigPrSzvdtLMHipvuSOgPzvJgC28IPFvdlVGf8bA5exy/Lj1O3oBtBFolrcLPFSdp8u8WjkuX7Nj9uOiWDledi7jPO5qcnXTcg/Hr6NtMpo3pc3PKZZLmm+/nN7kvqFjRvtHGjcWY2WzvJND99oXhcub6Nuh+sbN/WCboBEq2rbzc9TtLm2xeK8zp+fj9O3YLlCUGzBMq4xvZtpvvydHS/bD+/XdtsFvfz+7ZO1MMG9yrv20xvJ/20VjqLt7Sobpf202PBZsaFwLD0c5Vx17IyrcIvNtkEAG7Oj5t+rpJtZmX47TfP9v9tVpxWeBtrbgAAAABJRU5ErkJggg==`,O=e=>{let t=(0,a.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`image`,{href:D,width:`128`,height:`128`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,s.jsx)(`svg`,{...e,viewBox:`9 9 110 110`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},k=e=>{let t=(0,a.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsxs)(`g`,{clipPath:`url(#opencode__clip0_1311_94969)`,children:[(0,s.jsx)(`path`,{className:`dark:hidden`,d:`M24 32H8V16H24V32Z`,fill:`#CFCECD`}),(0,s.jsx)(`path`,{className:`dark:hidden`,d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`,fill:`#211E1E`}),(0,s.jsx)(`path`,{className:`hidden dark:block`,d:`M24 32H8V16H24V32Z`,fill:`#4B4646`}),(0,s.jsx)(`path`,{className:`hidden dark:block`,d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`,fill:`#F1ECEC`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsx)(`defs`,{children:(0,s.jsx)(`clipPath`,{id:`opencode__clip0_1311_94969`,children:(0,s.jsx)(`rect`,{width:`32`,height:`40`,fill:`white`})})}),t[1]=r):r=t[1];let i;return t[2]===e?i=t[3]:(i=(0,s.jsxs)(`svg`,{...e,viewBox:`0 0 32 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[n,r]}),t[2]=e,t[3]=i),i},A=e=>{let t=(0,a.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-black dark:fill-white`,n),t[3]=n,t[4]=o);let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`M205.3 31.4c14 14.8 20 35.2 22.5 63.6 6.6 0 12.8 1.5 17 7.2l7.8 10.6c2.2 3 3.4 6.6 3.4 10.4v28.7a12 12 0 0 1-4.8 9.5C215.9 187.2 172.3 208 128 208c-49 0-98.2-28.3-123.2-46.6a12 12 0 0 1-4.8-9.5v-28.7c0-3.8 1.2-7.4 3.4-10.5l7.8-10.5c4.2-5.7 10.4-7.2 17-7.2 2.5-28.4 8.4-48.8 22.5-63.6C77.3 3.2 112.6 0 127.6 0h.4c14.7 0 50.4 2.9 77.3 31.4ZM128 78.7c-3 0-6.5.2-10.3.6a27.1 27.1 0 0 1-6 12.1 45 45 0 0 1-32 13c-6.8 0-13.9-1.5-19.7-5.2-5.5 1.9-10.8 4.5-11.2 11-.5 12.2-.6 24.5-.6 36.8 0 6.1 0 12.3-.2 18.5 0 3.6 2.2 6.9 5.5 8.4C79.9 185.9 105 192 128 192s48-6 74.5-18.1a9.4 9.4 0 0 0 5.5-8.4c.3-18.4 0-37-.8-55.3-.4-6.6-5.7-9.1-11.2-11-5.8 3.7-13 5.1-19.7 5.1a45 45 0 0 1-32-12.9 27.1 27.1 0 0 1-6-12.1c-3.4-.4-6.9-.5-10.3-.6Zm-27 44c5.8 0 10.5 4.6 10.5 10.4v19.2a10.4 10.4 0 0 1-20.8 0V133c0-5.8 4.6-10.4 10.4-10.4Zm53.4 0c5.8 0 10.4 4.6 10.4 10.4v19.2a10.4 10.4 0 0 1-20.8 0V133c0-5.8 4.7-10.4 10.4-10.4Zm-73-94.4c-11.2 1.1-20.6 4.8-25.4 10-10.4 11.3-8.2 40.1-2.2 46.2A31.2 31.2 0 0 0 75 91.7c6.8 0 19.6-1.5 30.1-12.2 4.7-4.5 7.5-15.7 7.2-27-.3-9.1-2.9-16.7-6.7-19.9-4.2-3.6-13.6-5.2-24.2-4.3Zm69 4.3c-3.8 3.2-6.4 10.8-6.7 19.9-.3 11.3 2.5 22.5 7.2 27a41.7 41.7 0 0 0 30 12.2c8.9 0 17-2.9 21.3-7.2 6-6.1 8.2-34.9-2.2-46.3-4.8-5-14.2-8.8-25.4-9.9-10.6-1-20 .7-24.2 4.3ZM128 56c-2.6 0-5.6.2-9 .5.4 1.7.5 3.7.7 5.7 0 1.5 0 3-.2 4.5 3.2-.3 6-.3 8.5-.3 2.6 0 5.3 0 8.5.3-.2-1.6-.2-3-.2-4.5.2-2 .3-4 .7-5.7-3.4-.3-6.4-.5-9-.5Z`}),t[5]=c):c=t[5];let l;return t[6]!==r||t[7]!==o?(l=(0,s.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 208`,className:o,children:c}),t[6]=r,t[7]=o,t[8]=l):l=t[8],l},j=e=>{let t=(0,a.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-black dark:fill-white`,n),t[3]=n,t[4]=o);let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`path`,{d:`M568.003 115.821L517.278 27.9661C507.183 10.4816 489.084 0.0227367 468.894 0.0227367C448.727 0.0227367 430.674 10.4361 420.556 27.8752L343.251 161.749H242.755C236.23 161.749 230.386 158.384 227.135 152.745C223.861 147.106 223.861 140.376 227.135 134.715L277.861 46.8603C281.112 41.2216 286.955 37.8338 293.481 37.8338C300.006 37.8338 305.827 41.1988 309.101 46.8603L312.125 52.0897C313.353 54.2042 315.604 55.5002 318.036 55.5002C320.469 55.5002 322.743 54.1815 323.948 52.067L337.385 28.5118C338.795 26.0335 338.522 22.9413 336.703 20.7586C325.699 7.57131 309.874 0 293.322 0C292.662 0 292.003 0 291.321 0.0454733C272.04 0.75031 254.76 11.1864 245.074 27.9434L200.215 105.657L155.81 29.1484C145.465 11.2092 126.594 0.0227367 106.608 0.0227367C105.949 0.0227367 105.289 0.0227367 104.607 0.06821C85.3265 0.773047 68.0467 11.2092 58.3608 27.9661L7.65806 115.821C-6.25678 139.899 -0.868187 168.82 21.05 187.759C29.8945 195.422 41.6039 199.628 54.0181 199.628H148.648C151.081 199.628 153.332 198.332 154.56 196.217L168.52 172.026C169.748 169.911 169.748 167.319 168.52 165.205C167.292 163.09 165.041 161.794 162.608 161.794H56.0417C49.5163 161.794 43.6729 158.429 40.4216 152.79C37.1475 147.152 37.1475 140.422 40.4216 134.76L91.1471 46.9057C94.3985 41.2671 100.242 37.8793 106.767 37.8793C113.293 37.8793 119.113 41.2443 122.387 46.9057L194.826 172.526C195.031 172.89 195.258 173.208 195.531 173.526C198.76 178.665 202.83 183.485 207.786 187.782C216.631 195.444 228.34 199.651 240.754 199.651H321.424L315.581 209.769C314.353 211.883 314.353 214.475 315.581 216.59C316.809 218.704 319.059 220 321.492 220H349.436C351.868 220 354.119 218.704 355.347 216.59L364.396 200.901L367.17 196.468C367.17 196.468 367.261 196.331 367.284 196.263L453.274 46.9285C456.525 41.2898 462.369 37.902 468.894 37.902C475.42 37.902 481.263 41.2671 484.514 46.9285L535.24 134.783C538.491 140.422 538.514 147.174 535.24 152.813C531.988 158.452 526.145 161.84 519.62 161.84H418.669C416.236 161.84 413.985 163.136 412.757 165.25L398.774 189.442C397.546 191.556 397.546 194.148 398.774 196.263C400.002 198.377 402.253 199.673 404.686 199.673H518.21C539.81 199.673 559.295 188.237 569.026 169.843C578.053 152.79 577.666 132.623 567.981 115.843L568.003 115.821Z`}),t[5]=c):c=t[5];let l;return t[6]!==r||t[7]!==o?(l=(0,s.jsx)(`svg`,{...r,viewBox:`0 0 576 220`,fill:`none`,className:o,children:c}),t[6]=r,t[7]=o,t[8]=l):l=t[8],l},M=e=>{let t=(0,a.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(`fill-none`,n),t[3]=n,t[4]=o);let c,l,u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsx)(`rect`,{width:`800`,height:`800`,rx:`160`,fill:`#000`}),l=(0,s.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`}),u=(0,s.jsx)(`path`,{fill:`#fff`,d:`M517.36 400H634.72V634.72H517.36Z`}),t[5]=c,t[6]=l,t[7]=u):(c=t[5],l=t[6],u=t[7]);let d;return t[8]!==r||t[9]!==o?(d=(0,s.jsxs)(`svg`,{...r,viewBox:`0 0 800 800`,className:o,children:[c,l,u]}),t[8]=r,t[9]=o,t[10]=d):d=t[10],d};export{x as C,b as S,w as _,h as a,v as b,p as c,u as d,f,y as g,d as h,m as i,E as l,_ as m,O as n,T as o,A as p,c as r,g as s,j as t,l as u,k as v,C as w,S as x,M as y};
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{Fr as r,d as i,t as a}from"./src-b7-hpIff.js";import{Rn as o,hn as s,zn as c}from"./runtime-BkRtSwRY.js";import{a as l}from"./primary-0ymoUGkq.js";import{Z as u}from"./composerDraftStore-_Xy-iY4b.js";import{f as d}from"./utils-c6dglOTK.js";import{f}from"./useRenderElement-DchFnsR8.js";import{t as p}from"./bot-DJp0cuhK.js";import{n as m}from"./loader-circle-CrtHFAvM.js";import{t as h}from"./chevron-right-BWYGybX9.js";import{i as g,o as _}from"./toast-DonYDy-6.js";import{t as v}from"./key-round-CacMputS.js";import{t as y}from"./loader-zHASMrUy.js";import{t as b}from"./plus-B2h-VEqh.js";import{t as x}from"./refresh-cw-DopCMrtR.js";import{t as S}from"./save-Bh36JIv6.js";import{t as C}from"./shield-check-dQ-4cMKk.js";import{t as w}from"./trash-2-CM1zXPGb.js";import{t as T}from"./triangle-alert-RL_T3KLo.js";import{t as E}from"./unplug-Cw8iawyX.js";import{t as D}from"./wrench-D0IetWa1.js";import{t as O}from"./switch-cMx5Wv_R.js";import{t as k}from"./input-zjUwoDs3.js";import{t as A}from"./button-BT6cGe5S.js";import{t as j}from"./toastHelpers-CSQRKo4F.js";import{t as M}from"./capabilities-CK9Wa-Au.js";import{t as N}from"./badge-BbJiUmhG.js";import"./providerModels-DEQekDE8.js";import{r as P}from"./providerDriverMeta-lsEf84Mz.js";import{McpServersSettings as F}from"./McpServersSettings-BMV56xhW.js";var I=()=>({integrations:[],topology:{available:!1,reason:`Not loaded.`},pairingCodes:{}}),L=(e,t)=>({integrations:t.integrations,topology:t.topology,pairingCodes:{}}),R=(e,t)=>({...e,integrations:[...e.integrations.filter(e=>e.integration.integrationId!==t.detail.integration.integrationId),t.detail],pairingCodes:{...e.pairingCodes,[t.detail.integration.integrationId]:t.pairingCode}}),z=(e,t)=>{let n={...e.pairingCodes};return delete n[t],{...e,integrations:e.integrations.filter(e=>e.integration.integrationId!==t),pairingCodes:n}},B=()=>({installations:[]}),V=e=>[...e].toSorted((e,t)=>e.driver.localeCompare(t.driver)||e.createdAt.localeCompare(t.createdAt)||e.installationId.localeCompare(t.installationId)),H=(e,t)=>({installations:V(t.installations)}),U=(e,t)=>{let n=e.installations.find(e=>e.installationId===t.installation.installationId);return n&&n.revision>t.installation.revision?e:{installations:V([...e.installations.filter(e=>e.installationId!==t.installation.installationId),t.installation])}},ee=f(`cable`,[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]),W=f(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),te=f(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),G=e(t(),1),ne=n(),re=[50,100,200,400],ie=e=>e instanceof Error&&e.message.trim()===`Agent Control is disabled.`,ae=e=>new Promise(t=>window.setTimeout(t,e));async function oe(e,t=ae){for(let n of re)try{return await e()}catch(e){if(!ie(e))throw e;await t(n)}return e()}var K=d(),se={codex:`Codex`,"claude-code":`Claude Code`,"claude-desktop":`Claude Desktop`,"generic-mcp":`Generic MCP`},ce=[{capability:i.externalListProjects,label:`List allowed projects`,description:`Discover only projects inside this integration's scope.`},{capability:i.externalCreateTask,label:`Request tasks`,description:`Submit one task to Ryco's normal approval queue.`},{capability:i.externalReadTask,label:`Read own tasks`,description:`Read or wait only for tasks created by this integration.`},{capability:i.externalReadAutomations,label:`Read automations`,description:`Read bounded schedules and run outcomes inside the selected project scope.`},{capability:i.externalManageAutomations,label:`Request automations`,description:`Propose schedule changes; each due run still requires separate approval.`},{capability:i.externalReadActivity,label:`Read activity`,description:`Read bounded payload-free project and provider event summaries.`},{capability:i.externalReadDiagnostics,label:`Read diagnostics`,description:`Read redacted count-only health summaries for allowed projects.`},{capability:i.externalSharedCheckout,label:`Request shared checkout`,description:`May request the local checkout; each request still needs approval.`},{capability:i.externalFullAccess,label:`Request full access`,description:`May request a full-access runtime; each request still needs approval.`}],q=()=>({displayName:``,clientKind:`codex`,scopeKind:`all`,projectIds:``,capabilities:[i.externalListProjects,i.externalCreateTask,i.externalReadTask],expiresAt:``,rateLimitPerMinute:`60`,activeTaskLimit:`1`});function J(e,t){g.add(j({type:`error`,title:e,description:t instanceof Error?t.message:`The request failed.`}))}function le(e,t){return[e,...t.map(e=>JSON.stringify(e))].join(` `)}function Y(e){return e===null?`Never`:new Date(e).toLocaleString()}function ue(e){let t=e.integration;return t.revokedAt===null?t.expiresAt!==null&&Date.parse(t.expiresAt)<=Date.now()?{label:`Expired`,variant:`error`}:t.pairingState===`paired`?{label:`Paired`,variant:`success`}:t.pairingState===`pending`?{label:`Pairing`,variant:`warning`}:{label:`Unpaired`,variant:`outline`}:{label:`Revoked`,variant:`error`}}function de(e){let t=e.integration;return{displayName:t.displayName,clientKind:t.clientKind,scopeKind:t.projectScope.kind,projectIds:t.projectScope.kind===`selected`?t.projectScope.projectIds.join(`, `):``,capabilities:t.capabilities,expiresAt:t.expiresAt===null?``:new Date(t.expiresAt).toISOString().slice(0,16),rateLimitPerMinute:String(t.rateLimitPerMinute),activeTaskLimit:String(t.activeTaskLimit)}}function X(e){let t=e.projectIds.split(`,`).map(e=>e.trim()).filter(Boolean).map(e=>r.make(e)),n=e.scopeKind===`all`?{kind:`all`}:{kind:`selected`,projectIds:t},i=Number(e.rateLimitPerMinute),a=Number(e.activeTaskLimit);if(!e.displayName.trim())throw Error(`A display name is required.`);if(e.scopeKind===`selected`&&t.length===0)throw Error(`Enter at least one project ID for selected-project scope.`);if(!Number.isInteger(i)||i<1)throw Error(`Rate limit must be a positive whole number.`);if(!Number.isInteger(a)||a<1)throw Error(`Active-task limit must be a positive whole number.`);return{displayName:e.displayName.trim(),clientKind:e.clientKind,projectScope:n,capabilities:e.capabilities,expiresAt:e.expiresAt?new Date(e.expiresAt).toISOString():null,rateLimitPerMinute:i,activeTaskLimit:a}}function Z(e){let t=(0,ne.c)(85),{form:n,onChange:r,clientLocked:i}=e,a=i!==void 0&&i,o;t[0]!==n||t[1]!==r?(o=e=>r({...n,displayName:e.target.value}),t[0]=n,t[1]=r,t[2]=o):o=t[2];let s;t[3]!==n.displayName||t[4]!==o?(s=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium`,children:[`Display name`,(0,K.jsx)(k,{value:n.displayName,placeholder:`Local Codex`,onChange:o})]}),t[3]=n.displayName,t[4]=o,t[5]=s):s=t[5];let c=n.clientKind,l;t[6]!==n||t[7]!==r?(l=e=>r({...n,clientKind:e.target.value}),t[6]=n,t[7]=r,t[8]=l):l=t[8];let u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=Object.entries(se).map(fe),t[9]=u):u=t[9];let d;t[10]!==a||t[11]!==n.clientKind||t[12]!==l?(d=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium`,children:[`Client`,(0,K.jsx)(`select`,{className:`h-9 rounded-lg border border-input bg-background px-3 text-sm`,value:c,disabled:a,onChange:l,children:u})]}),t[10]=a,t[11]=n.clientKind,t[12]=l,t[13]=d):d=t[13];let f;t[14]!==s||t[15]!==d?(f=(0,K.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[s,d]}),t[14]=s,t[15]=d,t[16]=f):f=t[16];let p;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,K.jsx)(`legend`,{className:`text-xs font-medium`,children:`Project scope`}),t[17]=p):p=t[17];let m=n.scopeKind===`all`,h;t[18]!==n||t[19]!==r?(h=()=>r({...n,scopeKind:`all`}),t[18]=n,t[19]=r,t[20]=h):h=t[20];let g;t[21]!==m||t[22]!==h?(g=(0,K.jsx)(`input`,{type:`radio`,checked:m,onChange:h}),t[21]=m,t[22]=h,t[23]=g):g=t[23];let _;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,K.jsxs)(`span`,{children:[`All current and future projects`,(0,K.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:`The client can discover every project on this local Ryco instance.`})]}),t[24]=_):_=t[24];let v;t[25]===g?v=t[26]:(v=(0,K.jsxs)(`label`,{className:`flex items-start gap-2 text-sm`,children:[g,_]}),t[25]=g,t[26]=v);let y=n.scopeKind===`selected`,b;t[27]!==n||t[28]!==r?(b=()=>r({...n,scopeKind:`selected`}),t[27]=n,t[28]=r,t[29]=b):b=t[29];let x;t[30]!==y||t[31]!==b?(x=(0,K.jsx)(`input`,{type:`radio`,checked:y,onChange:b}),t[30]=y,t[31]=b,t[32]=x):x=t[32];let S=n.scopeKind!==`selected`,C;t[33]!==n||t[34]!==r?(C=e=>r({...n,projectIds:e.target.value}),t[33]=n,t[34]=r,t[35]=C):C=t[35];let w;t[36]!==n.projectIds||t[37]!==S||t[38]!==C?(w=(0,K.jsx)(k,{className:`mt-1.5`,value:n.projectIds,disabled:S,placeholder:`project-id-1, project-id-2`,"aria-label":`Selected project IDs`,onChange:C}),t[36]=n.projectIds,t[37]=S,t[38]=C,t[39]=w):w=t[39];let T;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,K.jsx)(`span`,{className:`mt-1 block text-xs text-muted-foreground`,children:`Comma-separated stable project IDs. Unknown IDs remain inaccessible.`}),t[40]=T):T=t[40];let E;t[41]===w?E=t[42]:(E=(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[`Selected projects`,w,T]}),t[41]=w,t[42]=E);let D;t[43]!==x||t[44]!==E?(D=(0,K.jsxs)(`label`,{className:`flex items-start gap-2 text-sm`,children:[x,E]}),t[43]=x,t[44]=E,t[45]=D):D=t[45];let O;t[46]!==v||t[47]!==D?(O=(0,K.jsxs)(`fieldset`,{className:`grid gap-2`,children:[p,v,D]}),t[46]=v,t[47]=D,t[48]=O):O=t[48];let A;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,K.jsx)(`legend`,{className:`text-xs font-medium`,children:`Capability grants`}),t[49]=A):A=t[49];let j;t[50]!==n||t[51]!==r?(j=ce.map(e=>(0,K.jsxs)(`label`,{className:`flex items-start gap-2 text-sm`,children:[(0,K.jsx)(`input`,{type:`checkbox`,checked:n.capabilities.includes(e.capability),onChange:t=>r({...n,capabilities:t.target.checked?[...n.capabilities,e.capability]:n.capabilities.filter(t=>t!==e.capability)})}),(0,K.jsxs)(`span`,{children:[e.label,(0,K.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:e.description})]})]},e.capability)),t[50]=n,t[51]=r,t[52]=j):j=t[52];let M;t[53]===j?M=t[54]:(M=(0,K.jsxs)(`fieldset`,{className:`grid gap-2`,children:[A,j]}),t[53]=j,t[54]=M);let N;t[55]!==n||t[56]!==r?(N=e=>r({...n,expiresAt:e.target.value}),t[55]=n,t[56]=r,t[57]=N):N=t[57];let P;t[58]!==n.expiresAt||t[59]!==N?(P=(0,K.jsx)(k,{type:`datetime-local`,value:n.expiresAt,onChange:N}),t[58]=n.expiresAt,t[59]=N,t[60]=P):P=t[60];let F;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,K.jsx)(`span`,{className:`font-normal text-muted-foreground`,children:`Empty means no expiry.`}),t[61]=F):F=t[61];let I;t[62]===P?I=t[63]:(I=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium`,children:[`Expires`,P,F]}),t[62]=P,t[63]=I);let L;t[64]!==n||t[65]!==r?(L=e=>r({...n,rateLimitPerMinute:e.target.value}),t[64]=n,t[65]=r,t[66]=L):L=t[66];let R;t[67]!==n.rateLimitPerMinute||t[68]!==L?(R=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium`,children:[`Requests per minute`,(0,K.jsx)(k,{type:`number`,min:1,max:600,value:n.rateLimitPerMinute,onChange:L})]}),t[67]=n.rateLimitPerMinute,t[68]=L,t[69]=R):R=t[69];let z;t[70]!==n||t[71]!==r?(z=e=>r({...n,activeTaskLimit:e.target.value}),t[70]=n,t[71]=r,t[72]=z):z=t[72];let B;t[73]!==n.activeTaskLimit||t[74]!==z?(B=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium`,children:[`Concurrent active tasks`,(0,K.jsx)(k,{type:`number`,min:1,max:32,value:n.activeTaskLimit,onChange:z})]}),t[73]=n.activeTaskLimit,t[74]=z,t[75]=B):B=t[75];let V;t[76]!==I||t[77]!==R||t[78]!==B?(V=(0,K.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:[I,R,B]}),t[76]=I,t[77]=R,t[78]=B,t[79]=V):V=t[79];let H;return t[80]!==O||t[81]!==M||t[82]!==V||t[83]!==f?(H=(0,K.jsxs)(`div`,{className:`grid gap-4`,children:[f,O,M,V]}),t[80]=O,t[81]=M,t[82]=V,t[83]=f,t[84]=H):H=t[84],H}function fe(e){let[t,n]=e;return(0,K.jsx)(`option`,{value:t,children:n},t)}function pe(){let e=l(),[t,n]=(0,G.useState)(I),[r,i]=(0,G.useState)(q),[a,o]=(0,G.useState)(!1),[c,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,h]=(0,G.useState)(null),g=(0,G.useMemo)(()=>e===null?void 0:s(e)?.agentControl,[e]),_=(0,G.useCallback)(async()=>{if(g)try{let e=await oe(()=>g.listIntegrations());n(t=>L(t,e))}catch(e){J(`Failed to load external integrations`,e)}},[g]);(0,G.useEffect)(()=>{_()},[_]);let y=(0,G.useCallback)(async(e,t)=>{await navigator.clipboard.writeText(t),h(e),window.setTimeout(()=>h(t=>t===e?null:t),1500)},[]),T=async()=>{if(g)try{f(`new`);let e=await g.createIntegration(X(r));n(t=>R(t,e)),i(q()),o(!1)}catch(e){J(`Failed to create integration`,e)}finally{f(null)}},E=async e=>{if(g)try{f(e.integration.integrationId);let t=X(r);await g.updateIntegration({integrationId:e.integration.integrationId,...t}),u(null),await _()}catch(e){J(`Failed to update integration`,e)}finally{f(null)}},D=async e=>{if(!g)return;let t=e.integration.integrationId;try{f(t);let e=await g.resumeIntegrationPairing({integrationId:t});n(t=>R(t,e))}catch(e){J(`Failed to resume pairing`,e)}finally{f(null)}},O=async e=>{if(!g)return;let t=e.integration.integrationId;try{f(t),await g.revokeIntegration({integrationId:t}),await _()}catch(e){J(`Failed to revoke integration`,e)}finally{f(null)}},k=async e=>{if(!g)return;let t=e.integration.integrationId;if(window.confirm(`Delete ${e.integration.displayName}? This cannot be undone.`))try{f(t),(await g.deleteIntegration({integrationId:t})).deleted&&n(e=>z(e,t))}catch(e){J(`Failed to delete integration`,e)}finally{f(null)}};return(0,K.jsx)(`section`,{"data-testid":`external-integrations`,className:`border-b bg-muted/10 p-6 sm:p-8`,children:(0,K.jsxs)(`div`,{className:`mx-auto grid w-full max-w-4xl gap-5`,children:[(0,K.jsxs)(`header`,{className:`flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:[(0,K.jsx)(C,{className:`size-3.5`}),`Agent Control`]}),(0,K.jsx)(`h2`,{className:`mt-1 text-lg font-semibold tracking-[-0.01em]`,children:`External integrations`}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground/80`,children:`Pair a local MCP client with a revocable identity. Every task request waits in Ryco for explicit user approval before a thread is created.`})]}),(0,K.jsxs)(`div`,{className:`flex gap-2`,children:[(0,K.jsx)(A,{size:`icon`,variant:`outline`,"aria-label":`Refresh integrations`,onClick:()=>void _(),children:(0,K.jsx)(x,{})}),(0,K.jsxs)(A,{disabled:!g||!t.topology.available,onClick:()=>{u(null),i(q()),o(e=>!e)},children:[(0,K.jsx)(b,{}),`New integration`]})]})]}),t.topology.available?null:(0,K.jsxs)(`div`,{className:`flex gap-3 rounded-xl border border-warning/30 bg-warning/8 p-4 text-sm`,children:[(0,K.jsx)(te,{className:`mt-0.5 size-4 shrink-0 text-warning-foreground`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{className:`font-medium`,children:`Local pairing is unavailable`}),(0,K.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[t.topology.reason??`Ryco could not prove a direct loopback-only topology.`,` `,`External setup fails closed while Ryco is remotely exposed or Hub-connected.`]})]})]}),a?(0,K.jsxs)(`div`,{className:`grid gap-4 rounded-xl border bg-card p-4`,children:[(0,K.jsx)(Z,{form:r,onChange:i}),(0,K.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,K.jsx)(A,{variant:`ghost`,onClick:()=>o(!1),children:`Cancel`}),(0,K.jsxs)(A,{disabled:d===`new`,onClick:()=>void T(),children:[(0,K.jsx)(v,{}),`Create and pair`]})]})]}):null,t.integrations.length===0&&!a?(0,K.jsx)(`div`,{className:`rounded-xl border border-dashed p-6 text-center text-sm text-muted-foreground`,children:`No external integrations are configured.`}):null,t.integrations.map(e=>{let n=e.integration,a=ue(e),o=t.pairingCodes[n.integrationId],s=le(e.setup.pairCommand.command,e.setup.pairCommand.args),l=c===n.integrationId;return(0,K.jsxs)(`article`,{className:`grid gap-4 rounded-xl border bg-card p-4`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`h3`,{className:`font-semibold`,children:n.displayName}),(0,K.jsx)(N,{variant:a.variant,children:a.label}),(0,K.jsx)(N,{variant:`outline`,children:se[n.clientKind]})]}),(0,K.jsx)(`p`,{className:`mt-1 font-mono text-[11px] text-muted-foreground`,children:n.integrationId})]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,K.jsx)(A,{size:`sm`,variant:`outline`,onClick:()=>{u(l?null:n.integrationId),i(de(e))},children:l?`Close editor`:`Edit`}),(0,K.jsxs)(A,{size:`sm`,variant:`outline`,disabled:!t.topology.available||d===n.integrationId||n.revokedAt!==null,onClick:()=>void D(e),children:[(0,K.jsx)(v,{}),`Pair again`]}),(0,K.jsx)(A,{size:`sm`,variant:`outline`,disabled:d===n.integrationId||n.revokedAt!==null,onClick:()=>void O(e),children:`Revoke`}),(0,K.jsx)(A,{size:`icon-sm`,variant:`ghost`,"aria-label":`Delete ${n.displayName}`,disabled:d===n.integrationId,onClick:()=>void k(e),children:(0,K.jsx)(w,{})})]})]}),l?(0,K.jsxs)(`div`,{className:`grid gap-4 border-t pt-4`,children:[(0,K.jsx)(Z,{form:r,onChange:i}),(0,K.jsx)(`div`,{className:`flex justify-end`,children:(0,K.jsxs)(A,{disabled:d===n.integrationId,onClick:()=>void E(e),children:[(0,K.jsx)(S,{}),`Save changes`]})})]}):(0,K.jsxs)(`div`,{className:`grid gap-3 text-xs sm:grid-cols-2`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:`Project scope`}),(0,K.jsx)(`p`,{className:`mt-0.5 break-words font-medium`,children:n.projectScope.kind===`all`?`All current and future projects`:n.projectScope.projectIds.join(`, `)})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:`Limits`}),(0,K.jsxs)(`p`,{className:`mt-0.5 font-medium`,children:[n.rateLimitPerMinute,`/minute · `,n.activeTaskCount,`/`,n.activeTaskLimit,` active`]})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:`Expiry`}),(0,K.jsx)(`p`,{className:`mt-0.5 font-medium`,children:Y(n.expiresAt)})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:`Last used`}),(0,K.jsx)(`p`,{className:`mt-0.5 font-medium`,children:Y(n.lastUsedAt)})]}),(0,K.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:`Capabilities`}),(0,K.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1`,children:n.capabilities.map(e=>(0,K.jsx)(N,{variant:`outline`,children:e},e))})]})]}),n.pairingState===`pending`?(0,K.jsxs)(`div`,{className:`grid gap-3 rounded-lg border bg-muted/20 p-3`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{className:`text-sm font-medium`,children:`Finish pairing locally`}),(0,K.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Pairing code expires `,Y(n.pairingCodeExpiresAt),`. The code is shown only for this ceremony; the generated MCP configuration never contains it.`]})]}),o?(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`code`,{"data-testid":`external-pairing-code`,className:`rounded bg-background px-3 py-2 font-mono text-sm tracking-[0.18em]`,children:o}),(0,K.jsxs)(A,{size:`sm`,variant:`outline`,onClick:()=>void y(`code-${n.integrationId}`,o),children:[p===`code-${n.integrationId}`?(0,K.jsx)(m,{}):(0,K.jsx)(W,{}),`Copy code`]})]}):(0,K.jsx)(`p`,{className:`text-xs text-warning-foreground`,children:`The pairing code is no longer displayed. Choose Pair again to generate a new one.`}),(0,K.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,K.jsx)(`span`,{className:`text-xs font-medium`,children:`Run this bridge command, then enter the code`}),(0,K.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[(0,K.jsx)(`code`,{className:`min-w-0 flex-1 overflow-x-auto rounded bg-background p-2 text-[11px]`,children:s}),(0,K.jsx)(A,{size:`icon-sm`,variant:`outline`,"aria-label":`Copy pairing command`,onClick:()=>void y(`pair-${n.integrationId}`,s),children:p===`pair-${n.integrationId}`?(0,K.jsx)(m,{}):(0,K.jsx)(W,{})})]})]}),(0,K.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,K.jsx)(`span`,{className:`text-xs font-medium`,children:`MCP configuration`}),(0,K.jsx)(`pre`,{"data-testid":`external-mcp-configuration`,className:`max-h-48 overflow-auto rounded bg-background p-3 text-[11px] leading-relaxed`,children:e.setup.configuration}),(0,K.jsxs)(A,{className:`justify-self-start`,size:`sm`,variant:`outline`,onClick:()=>void y(`config-${n.integrationId}`,e.setup.configuration),children:[p===`config-${n.integrationId}`?(0,K.jsx)(m,{}):(0,K.jsx)(W,{}),`Copy configuration`]})]})]}):null]},n.integrationId)})]})})}var me=[],he=[];function ge(e){return e.displayName??P(e.driver)?.label??u(e.driver)}function Q(e){return e.providerDisplayName??P(e.driver)?.label??u(e.driver)}function _e(e){return e.driver===`codex`?`codex`:e.driver===`claudeAgent`?`claude-code`:`generic-mcp`}function ve(e){return{...q(),displayName:`${Q(e)} Agent Control`,clientKind:_e(e)}}function ye(e,t){return e.filter(e=>e.workspaceId===t).toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0]}function be(e){if(!e)return{label:`Not connected`,variant:`outline`};switch(e.state){case`connected`:return{label:`Connected`,variant:`success`};case`repair-needed`:return{label:`Needs repair`,variant:`error`};case`disconnected`:case`revoked`:return{label:`Disconnected`,variant:`outline`};case`disconnecting`:return{label:`Disconnecting`,variant:`warning`};case`planned`:case`credential-written`:case`provider-written`:case`verifying`:return{label:`Connecting`,variant:`warning`}}}function xe(e,t){g.add(j({type:`success`,title:e,description:t}))}function $(e,t){g.add(j({type:`error`,title:e,description:t instanceof Error?t.message:`The request failed.`}))}function Se(){let e=l(),[t,n]=(0,G.useState)(me),[r,i]=(0,G.useState)(he),[a,o]=(0,G.useState)(B),[c,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(!0),[m,h]=(0,G.useState)(null),[g,v]=(0,G.useState)(null),[b,S]=(0,G.useState)(q),C=(0,G.useMemo)(()=>e===null?void 0:s(e),[e]),w=C?.agentControl,O=C?.mcp,k=(0,G.useCallback)(async()=>{if(!w||!O){f(!1);return}try{let[e,t,r]=await oe(()=>Promise.all([O.listWorkspaces(),w.listMcpInstallations(),w.listIntegrations()]));n(e.providers),i(e.workspaces),o(e=>H(e,t)),u(r.topology)}catch(e){$(`Failed to load Agent Control providers`,e)}finally{f(!1)}},[w,O]);(0,G.useEffect)(()=>{k()},[k]);let j=async(e,t)=>{if(w)try{h(e.id);let n=t?(()=>{let{clientKind:t,...n}=X(b);return{workspaceId:e.id,...n}})():{workspaceId:e.id},r=await w.connectMcpInstallation(n);o(e=>U(e,r)),v(null),xe(`${Q(e)} connected`,`The credential was stored locally and was not shown to the browser.`)}catch(t){$(`Failed to connect ${Q(e)}`,t),await k()}finally{h(null)}},M=async(e,t)=>{if(w)try{h(e.id);let n=await w.repairMcpInstallation({installationId:t.installationId});o(e=>U(e,n)),xe(`${Q(e)} repaired`)}catch(t){$(`Failed to repair ${Q(e)}`,t),await k()}finally{h(null)}},F=async(e,t)=>{if(w&&window.confirm(`Disconnect Agent Control from ${Q(e)}?`))try{h(e.id);let n=await w.disconnectMcpInstallation({installationId:t.installationId});o(e=>U(e,n)),xe(`${Q(e)} disconnected`)}catch(t){$(`Failed to disconnect ${Q(e)}`,t),await k()}finally{h(null)}},I=r.filter(e=>e.capabilities.externalAgentControl===`available`);return(0,K.jsx)(`section`,{"data-testid":`agent-control-mcp-installations`,className:`border-b bg-muted/10 p-6 sm:p-8`,children:(0,K.jsxs)(`div`,{className:`mx-auto grid w-full max-w-4xl gap-8`,children:[(0,K.jsxs)(`section`,{className:`grid gap-4`,children:[(0,K.jsxs)(`header`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:[(0,K.jsx)(p,{className:`size-3.5`}),`Ryco sessions`]}),(0,K.jsx)(`h2`,{className:`mt-1 text-lg font-semibold tracking-[-0.01em]`,children:`Automatic inside Ryco`}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground/80`,children:`Supported sessions started by Ryco receive Agent Control automatically. There is nothing to install in those provider profiles.`})]}),d?(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border p-4 text-sm text-muted-foreground`,children:[(0,K.jsx)(y,{className:`size-4 animate-spin`}),` Loading providers…`]}):t.length===0?(0,K.jsx)(`div`,{className:`rounded-xl border border-dashed p-4 text-sm text-muted-foreground`,children:`No configured provider instances were found.`}):(0,K.jsx)(`div`,{className:`divide-y overflow-hidden rounded-xl border bg-card`,children:t.map(e=>{let t=P(e.driver)?.icon??p,n=e.enabled&&e.capabilities.automaticAgentControl===`available`;return(0,K.jsxs)(`div`,{className:`flex items-start justify-between gap-4 px-4 py-3`,children:[(0,K.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,K.jsx)(`div`,{className:`mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg border bg-background`,children:(0,K.jsx)(t,{className:`size-4 text-muted-foreground`})}),(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsx)(`p`,{className:`text-sm font-medium`,children:ge(e)}),(0,K.jsx)(`p`,{className:`mt-0.5 font-mono text-[11px] text-muted-foreground`,children:e.instanceId}),(0,K.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:n?`Available in every new Ryco-managed session.`:e.enabled?`This provider does not expose automatic Agent Control yet.`:`This provider instance is disabled.`})]})]}),(0,K.jsx)(N,{variant:n?`success`:`outline`,children:n?`Automatic`:e.enabled?`Unavailable`:`Disabled`})]},e.instanceId)})})]}),(0,K.jsxs)(`section`,{className:`grid gap-4`,children:[(0,K.jsxs)(`header`,{className:`flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:[(0,K.jsx)(ee,{className:`size-3.5`}),`External agents`]}),(0,K.jsx)(`h2`,{className:`mt-1 text-lg font-semibold tracking-[-0.01em]`,children:`Connect an installed provider`}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground/80`,children:`Ryco detects local provider profiles and writes their native MCP configuration. The default grants project listing and task request/read access, limited to 60 requests per minute and one active task. Every task still requires approval.`})]}),(0,K.jsx)(A,{size:`icon`,variant:`outline`,"aria-label":`Refresh Agent Control providers`,disabled:d,onClick:()=>void k(),children:(0,K.jsx)(x,{})})]}),c&&!c.available?(0,K.jsxs)(`div`,{className:`flex gap-3 rounded-xl border border-warning/30 bg-warning/8 p-4 text-sm`,children:[(0,K.jsx)(T,{className:`mt-0.5 size-4 shrink-0 text-warning-foreground`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{className:`font-medium`,children:`Local installation is unavailable`}),(0,K.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:c.reason??`Ryco could not prove a direct loopback-only topology.`})]})]}):null,!d&&(!w||!O)?(0,K.jsx)(`div`,{className:`rounded-xl border border-dashed p-4 text-sm text-muted-foreground`,children:`This Ryco environment does not expose provider MCP installation yet.`}):!d&&I.length===0?(0,K.jsx)(`div`,{className:`rounded-xl border border-dashed p-4 text-sm text-muted-foreground`,children:`No installable provider profiles were detected. Configure a supported provider instance first, then refresh.`}):(0,K.jsx)(`div`,{className:`grid gap-3`,children:I.map(e=>{let t=ye(a.installations,e.id),n=be(t),r=t?.state===`connected`,i=t?.state===`repair-needed`,o=m===e.id,s=g===e.id,l=P(e.driver)?.icon??ee;return(0,K.jsxs)(`article`,{className:`grid gap-4 rounded-xl border bg-card p-4`,children:[(0,K.jsxs)(`div`,{className:`flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`,children:[(0,K.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,K.jsx)(`div`,{className:`mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-lg border bg-background`,children:(0,K.jsx)(l,{className:`size-4 text-muted-foreground`})}),(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`h3`,{className:`text-sm font-semibold`,children:Q(e)}),(0,K.jsx)(N,{variant:n.variant,children:n.label})]}),(0,K.jsx)(`p`,{className:`mt-1 truncate font-mono text-[11px] text-muted-foreground`,children:e.displayPath}),(0,K.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.providerInstances.length,` configured provider`,e.providerInstances.length===1?` instance`:` instances`,t?` · MCP name ${t.serverName}`:``]})]})]}),(0,K.jsx)(`div`,{className:`flex shrink-0 flex-wrap gap-2 sm:justify-end`,children:i&&t?(0,K.jsxs)(A,{size:`sm`,disabled:o||c?.available===!1,onClick:()=>void M(e,t),children:[o?(0,K.jsx)(y,{className:`animate-spin`}):(0,K.jsx)(D,{}),`Repair`]}):r&&t?(0,K.jsxs)(A,{size:`sm`,variant:`outline`,disabled:o,onClick:()=>void F(e,t),children:[o?(0,K.jsx)(y,{className:`animate-spin`}):(0,K.jsx)(E,{}),`Disconnect`]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(A,{size:`sm`,variant:`outline`,disabled:o||c?.available===!1,onClick:()=>{s?v(null):(S(ve(e)),v(e.id))},children:s?`Close`:`Customize`}),(0,K.jsxs)(A,{size:`sm`,disabled:o||c?.available===!1,onClick:()=>void j(e,!1),children:[o?(0,K.jsx)(y,{className:`animate-spin`}):(0,K.jsx)(_,{}),`Connect`]})]})})]}),t?.lastError?(0,K.jsx)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-xs text-destructive`,children:t.lastError}):null,t?.preservedUserChanges?(0,K.jsx)(`div`,{className:`rounded-lg border border-warning/30 bg-warning/8 p-3 text-xs text-warning-foreground`,children:`Ryco left this provider's MCP entry untouched because it had been edited after installation.`}):null,s?(0,K.jsxs)(`div`,{className:`grid gap-4 border-t pt-4`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Customize the credential scope and limits before Ryco installs it. The provider profile is fixed to this detected workspace.`}),(0,K.jsx)(Z,{form:b,onChange:S,clientLocked:!0}),(0,K.jsx)(`div`,{className:`flex justify-end`,children:(0,K.jsxs)(A,{disabled:o||c?.available===!1,onClick:()=>void j(e,!0),children:[o?(0,K.jsx)(y,{className:`animate-spin`}):(0,K.jsx)(ee,{}),`Connect with these permissions`]})})]}):null]},e.id)})})]})]})})}function Ce(){let e=(0,ne.c)(26),t=o(we),{updateSettings:n}=c(),r=M(a.serverUpdateSettings),i,s,l;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,K.jsx)(`div`,{className:`text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Agent Control`}),s=(0,K.jsx)(`h2`,{className:`mt-1 text-lg font-semibold tracking-[-0.01em]`,children:`Private tools for every agent`}),l=(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground/80`,children:`Ryco sessions receive the tools automatically. Connect supported standalone provider profiles with one click. Every requested change still waits for explicit approval.`}),e[0]=i,e[1]=s,e[2]=l):(i=e[0],s=e[1],l=e[2]);let u=t?`Enabled. New Ryco-managed sessions receive Agent Control without changing the provider's global MCP configuration.`:`Disabled. Agent Control is unavailable to Ryco sessions and external clients.`,d;e[3]===u?d=e[4]:(d=(0,K.jsx)(`p`,{className:`mt-2 max-w-2xl text-xs leading-relaxed text-muted-foreground`,children:u}),e[3]=u,e[4]=d);let f;e[5]!==r.allowed||e[6]!==r.reason?(f=!r.allowed&&r.reason?(0,K.jsx)(`p`,{className:`mt-2 max-w-2xl text-xs leading-relaxed text-destructive`,children:r.reason}):null,e[5]=r.allowed,e[6]=r.reason,e[7]=f):f=e[7];let p;e[8]!==d||e[9]!==f?(p=(0,K.jsxs)(`div`,{children:[i,s,l,d,f]}),e[8]=d,e[9]=f,e[10]=p):p=e[10];let m=!r.allowed,g;e[11]===n?g=e[12]:(g=e=>n({agentControl:{enabled:!!e}}),e[11]=n,e[12]=g);let _;e[13]!==t||e[14]!==m||e[15]!==g?(_=(0,K.jsx)(O,{checked:t,disabled:m,onCheckedChange:g,"aria-label":`Enable Agent Control`}),e[13]=t,e[14]=m,e[15]=g,e[16]=_):_=e[16];let y;e[17]!==p||e[18]!==_?(y=(0,K.jsx)(`section`,{className:`border-b bg-muted/10 p-6 sm:p-8`,children:(0,K.jsxs)(`div`,{className:`mx-auto flex w-full max-w-4xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`,children:[p,_]})}),e[17]=p,e[18]=_,e[19]=y):y=e[19];let b;e[20]===t?b=e[21]:(b=t?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Se,{}),(0,K.jsxs)(`details`,{className:`group border-b bg-muted/5`,children:[(0,K.jsxs)(`summary`,{className:`mx-auto flex w-full max-w-4xl cursor-pointer list-none items-center gap-3 px-6 py-5 sm:px-8 [&::-webkit-details-marker]:hidden`,children:[(0,K.jsx)(`span`,{className:`flex size-8 items-center justify-center rounded-lg border bg-background`,children:(0,K.jsx)(v,{className:`size-4 text-muted-foreground`})}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block text-sm font-semibold`,children:`Advanced manual setup`}),(0,K.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:`Create a revocable pairing for another MCP client or a profile Ryco cannot detect.`})]}),(0,K.jsx)(h,{className:`size-4 text-muted-foreground transition-transform group-open:rotate-90`})]}),(0,K.jsx)(pe,{})]})]}):null,e[20]=t,e[21]=b);let x;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,K.jsx)(F,{}),e[22]=x):x=e[22];let S;return e[23]!==y||e[24]!==b?(S=(0,K.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[y,b,x]}),e[23]=y,e[24]=b,e[25]=S):S=e[25],S}function we(e){return e.agentControl.enabled}export{Ce as IntegrationsSettingsPanel};
@@ -1,7 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{Bn as r,Ft as i,Jt as a,Vn as o,Wn as s,xn as c}from"./runtime-BkRtSwRY.js";import{dt as l}from"./primary-0ymoUGkq.js";import{f as u,n as d,t as f}from"./utils-c6dglOTK.js";import{i as p}from"./toast-DonYDy-6.js";import{t as m}from"./keyboard-BqeRMHfL.js";import{t as h}from"./plus-B2h-VEqh.js";import{t as g}from"./search-BGQsenCM.js";import{t as _}from"./triangle-alert-RL_T3KLo.js";import{t as v}from"./undo-2-x37tfI3V.js";import{t as y}from"./x-C1Cemsov.js";import{t as b}from"./shallow-DWZCFNun.js";import{i as x,n as S,t as C}from"./tooltip-BaJgdXlL.js";import{t as w}from"./input-zjUwoDs3.js";import{t as T}from"./button-BT6cGe5S.js";import{t as E}from"./toastHelpers-CSQRKo4F.js";import{c as D,i as O,p as k,s as A}from"./menu-CwPZHq2g.js";import{r as j}from"./editorPreferences-C79SevBP.js";import{i as M,n as N,r as P}from"./settingsLayout-B8os-EWr.js";var F=e(t(),1),I=n(),L={terminal:{id:`terminal`,label:`Terminal`,sortWeight:10},workspace:{id:`workspace`,label:`Workspace`,sortWeight:20},diff:{id:`diff`,label:`Diff`,sortWeight:30},commandPalette:{id:`commandPalette`,label:`Command palette`,sortWeight:40},sidebar:{id:`sidebar`,label:`Sidebar`,sortWeight:50},chat:{id:`chat`,label:`Chat`,sortWeight:60},composer:{id:`composer`,label:`Composer`,sortWeight:70},editor:{id:`editor`,label:`Editor`,sortWeight:80},modelPicker:{id:`modelPicker`,label:`Model picker`,sortWeight:90},thread:{id:`thread`,label:`Threads`,sortWeight:100},script:{id:`script`,label:`Project scripts`,sortWeight:110}},R={"terminal.toggle":{title:`Toggle terminal drawer`,sortWeight:1},"terminal.split":{title:`Split terminal`,sortWeight:2},"terminal.new":{title:`New terminal`,sortWeight:3},"terminal.close":{title:`Close terminal`,sortWeight:4},"workspace.files":{title:`Open workspace files`,sortWeight:1},"workspace.review":{title:`Open workspace review`,sortWeight:2},"workspace.terminal":{title:`Open workspace terminal`,sortWeight:3},"workspace.simulator":{title:`Open iOS Simulator workspace`,sortWeight:4},"diff.toggle":{title:`Toggle diff view`,sortWeight:1},"commandPalette.toggle":{title:`Open command palette`,sortWeight:1},"sidebar.showInbox":{title:`Show Inbox sidebar`,sortWeight:1},"sidebar.showProjects":{title:`Show Projects sidebar`,sortWeight:2},"chat.new":{title:`New chat`,sortWeight:1},"chat.newLocal":{title:`New chat (local environment)`,sortWeight:2},"composer.stash":{title:`Stash prompt or open stash`,sortWeight:1},"editor.openFavorite":{title:`Open in preferred editor`,sortWeight:1},"modelPicker.toggle":{title:`Toggle model picker`,sortWeight:1},"modelPicker.jump.1":{title:`Pick model 1`,sortWeight:2},"modelPicker.jump.2":{title:`Pick model 2`,sortWeight:3},"modelPicker.jump.3":{title:`Pick model 3`,sortWeight:4},"modelPicker.jump.4":{title:`Pick model 4`,sortWeight:5},"modelPicker.jump.5":{title:`Pick model 5`,sortWeight:6},"modelPicker.jump.6":{title:`Pick model 6`,sortWeight:7},"modelPicker.jump.7":{title:`Pick model 7`,sortWeight:8},"modelPicker.jump.8":{title:`Pick model 8`,sortWeight:9},"modelPicker.jump.9":{title:`Pick model 9`,sortWeight:10},"thread.find":{title:`Find in current thread`,sortWeight:1},"thread.previous":{title:`Previous thread`,sortWeight:2},"thread.next":{title:`Next thread`,sortWeight:3},"thread.jump.1":{title:`Jump to thread 1`,sortWeight:4},"thread.jump.2":{title:`Jump to thread 2`,sortWeight:5},"thread.jump.3":{title:`Jump to thread 3`,sortWeight:6},"thread.jump.4":{title:`Jump to thread 4`,sortWeight:7},"thread.jump.5":{title:`Jump to thread 5`,sortWeight:8},"thread.jump.6":{title:`Jump to thread 6`,sortWeight:9},"thread.jump.7":{title:`Jump to thread 7`,sortWeight:10},"thread.jump.8":{title:`Jump to thread 8`,sortWeight:11},"thread.jump.9":{title:`Jump to thread 9`,sortWeight:12}};function z(e){let t=e.indexOf(`.`),n=t===-1?e:e.slice(0,t);return n===`script`?L.script:L[n]??L.script}function B(e,t){let n=z(e),r=R[e];if(r)return{category:n,title:r.title,sortWeight:r.sortWeight};let i=e.match(/^script\.([a-z0-9][a-z0-9-]*)\.run$/)?.[1]??e;return{category:n,title:t??`Run: ${i}`,sortWeight:100}}var V=[{id:`always`,label:`Always`,value:void 0},{id:`terminalFocus`,label:`Terminal focused`,value:`terminalFocus`},{id:`notTerminalFocus`,label:`Not in terminal`,value:`!terminalFocus`},{id:`terminalOpen`,label:`Terminal open`,value:`terminalOpen`},{id:`notTerminalOpen`,label:`Terminal not open`,value:`!terminalOpen`},{id:`modelPickerOpen`,label:`Model picker open`,value:`modelPickerOpen`},{id:`commandPaletteOpen`,label:`Command palette open`,value:`commandPaletteOpen`},{id:`composerFocus`,label:`Composer focused`,value:`composerFocus`},{id:`notComposerFocus`,label:`Not in composer`,value:`!composerFocus`}],H=new Map(V.map(e=>[e.value,e])),U=new Map(V.map(e=>[e.value===void 0?void 0:e.value.replace(/\s+/g,``),e]));function W(e){return e===void 0?H.get(void 0):H.get(e)||U.get(e.replace(/\s+/g,``))}function G(e){let t=W(e);return t?t.label:e??`Always`}function K(e){if(e)switch(e.type){case`identifier`:return e.name;case`not`:return`!${K(e.node)}`;case`and`:return`(${K(e.left)} && ${K(e.right)})`;case`or`:return`(${K(e.left)} || ${K(e.right)})`}}function ee(e,t){return(e===void 0?``:e.replace(/\s+/g,``))===(t===void 0?``:t.replace(/\s+/g,``))}function te(e,t){let n=e[t];if(!n)return[];let r=[];return e.forEach((e,i)=>{i!==t&&e.command!==n.command&&e.key===n.key&&ee(e.when,n.when)&&r.push({key:n.key,otherCommand:e.command,otherWhen:e.when})}),r}function ne(e){let t=new Map;return e.forEach((n,r)=>{let i=te(e,r);if(i.length===0)return;let a=e[r].command,o=t.get(a)??[];o.push(...i),t.set(a,o)}),t}function q(e){return/mac|iphone|ipad|ipod/i.test(e)}var re=new Set([`control`,`shift`,`alt`,`altgraph`,`meta`,`os`,`hyper`,`super`,`fn`,`capslock`,`numlock`,`scrolllock`]),ie=new Set([`escape`,`tab`,`enter`]);function ae(e,t){let n=e.toLowerCase();if(n===` `||n===`spacebar`)return`space`;if(n===`esc`)return`escape`;if(n===`arrowup`)return`up`;if(n===`arrowdown`)return`down`;if(n===`arrowleft`)return`left`;if(n===`arrowright`)return`right`;if(t){let e=t.match(/^Digit(\d)$/);if(e)return e[1];if(t===`BracketLeft`)return`[`;if(t===`BracketRight`)return`]`}return n}function J(e,t){let n=e.key.toLowerCase();if(re.has(n))return null;let r=q(t?.platform??(typeof navigator<`u`?navigator.platform:``)),i=r?e.metaKey:e.ctrlKey;if(!(i||e.shiftKey||e.altKey||(r?e.ctrlKey:e.metaKey))&&ie.has(n))return null;let a=ae(e.key,e.code);return a.length===0?null:{key:a,modKey:i,metaKey:!r&&e.metaKey,ctrlKey:r&&e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey}}var Y={mod:`⌘`,meta:`⌘`,cmd:`⌘`,ctrl:`⌃`,control:`⌃`,shift:`⇧`,alt:`⌥`,option:`⌥`},oe={mod:`Ctrl`,meta:`Meta`,cmd:`Meta`,ctrl:`Ctrl`,control:`Ctrl`,shift:`Shift`,alt:`Alt`,option:`Alt`},se={space:`Space`,enter:`Enter`,escape:`Esc`,up:`↑`,down:`↓`,left:`←`,right:`→`,tab:`Tab`,backspace:`⌫`,delete:`Del`};function ce(e,t){let n=q(t?.platform??(typeof navigator<`u`?navigator.platform:``))?Y:oe,r=[];e.modKey&&r.push(n.mod),e.metaKey&&r.push(n.meta),e.ctrlKey&&r.push(n.ctrl),e.altKey&&r.push(n.alt),e.shiftKey&&r.push(n.shift);let i=se[e.key]??(e.key.length===1?e.key.toUpperCase():e.key);return r.push(i),r}function le(e){let t=[];e.modKey&&t.push(`mod`),e.metaKey&&t.push(`meta`),e.ctrlKey&&t.push(`ctrl`),e.altKey&&t.push(`alt`),e.shiftKey&&t.push(`shift`);let n=e.key===` `?`space`:e.key;return t.push(n),t.join(`+`)}var X=u(),ue=[],Z=(()=>{let e=new Map;for(let t of l){let n=`${t.key}|${t.when??``}`,r=e.get(t.command)??new Set;r.add(n),e.set(t.command,r)}return e})(),Q=new Set(l.map(e=>e.command));function de(e,t){return`${e.command}|${e.key}|${e.when??``}|${t}`}function fe(e){return{key:le(e.shortcut),command:e.command,when:K(e.whenAst)}}function $(e){return e.map((e,t)=>({...fe(e),__id:de(e,t)}))}function pe(e){return e.map(({__id:e,...t})=>t)}function me(e){return l.filter(t=>t.command===e).map(e=>Object.assign({},e))}function he(e,t){if(!Q.has(e))return`custom`;let n=Z.get(e);if(!n)return`custom`;if(t.length!==n.size)return`modified`;for(let e of t){let t=`${e.key}|${e.when??``}`;if(!n.has(t))return`modified`}return`default`}function ge(e,t,n){return!n||[t.toLowerCase(),e.command.toLowerCase(),e.key.toLowerCase(),G(e.when).toLowerCase()].some(e=>e.includes(n))}function _e(){return Math.random().toString(36).slice(2)}function ve(){let e=o(),t=s(),n=r(),l=typeof navigator<`u`?navigator.platform:``,u=d(l),[f,h]=(0,F.useState)(!1),[y,x]=(0,F.useState)(null),S=(0,F.useCallback)(()=>{if(!t)return;x(null),h(!0);let e=j(n??[]);if(!e){x(`No available editors found.`),h(!1);return}c().shell.openInEditor(t,e).catch(e=>{x(e instanceof Error?e.message:`Unable to open keybindings file.`)}).finally(()=>{h(!1)})},[n,t]),C=a(b(i)),D=(0,F.useMemo)(()=>{let e=new Set,t=new Map;for(let n of C)for(let r of n.scripts){let n=`script.${r.id}.run`;e.add(n),t.has(n)||t.set(n,`Run: ${r.name}`)}return{commandList:Array.from(e),titles:t}},[C]),O=e?.keybindings??ue,[k,A]=(0,F.useState)(()=>$(O)),[I,R]=(0,F.useState)(()=>JSON.stringify(pe($(O)))),z=(0,F.useRef)(!1);(0,F.useEffect)(()=>{let e=JSON.stringify(pe($(O)));e!==I&&(R(e),z.current||A($(O)))},[O,I]);let V=(0,F.useCallback)(async e=>{z.current=!0;try{await c().keybindings.replaceCustom({rules:pe(e)})}catch(e){p.add(E({type:`error`,title:`Could not save keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),A($(O))}finally{z.current=!1}},[O]),H=(0,F.useCallback)((e,t)=>{A(n=>{let r=n.slice(),i=r[e];if(!i)return n;let a=le(t);return a===i.key?n:(r[e]={...i,key:a,__id:i.__id},V(r),r)})},[V]),U=(0,F.useCallback)(e=>{A(t=>{let n={command:e,key:``,when:void 0,__id:`placeholder-${_e()}`},r=(()=>{let n=-1;return t.forEach((t,r)=>{t.command===e&&(n=r)}),n})();return r===-1?[...t,n]:[...t.slice(0,r+1),n,...t.slice(r+1)]})},[]),W=(0,F.useCallback)(e=>{A(t=>{let n=t.slice();return n.splice(e,1),V(n),n})},[V]),G=(0,F.useCallback)((e,t)=>{A(n=>{let r=n.slice(),i=r[e];return!i||(i.when??void 0)===t?n:(r[e]={...i,when:t,__id:i.__id},V(r),r)})},[V]),K=(0,F.useCallback)(e=>{A(t=>{let n=t[e];if(!n)return t;let r=n.command;if(!Q.has(r)){let n=t.slice();return n.splice(e,1),V(n),n}let i=me(r),a=t.filter(e=>e.command!==r);for(let e of i)a.push({...e,__id:`default-${r}-${_e()}`});return V(a),a})},[V]),ee=(0,F.useCallback)(e=>{A(t=>{let n=t.filter(t=>t.command!==e);if(Q.has(e))for(let t of me(e))n.push({...t,__id:`default-${e}-${_e()}`});return V(n),n})},[V]),te=(0,F.useCallback)(async()=>{A([]);try{await c().keybindings.replaceCustom({rules:[]})}catch(e){p.add(E({type:`error`,title:`Could not restore default keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),A($(O))}},[O]),q=(0,F.useRef)(new Map),re=(0,F.useCallback)(e=>{let t=q.current.get(e);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.dataset.flash=`true`,window.setTimeout(()=>{delete t.dataset.flash},1100))},[]),[ie,ae]=(0,F.useState)(``),J=(0,F.useDeferredValue)(ie.trim().toLowerCase()),Y=(0,F.useMemo)(()=>ne(k),[k]),oe=(0,F.useMemo)(()=>{let e=new Map;k.forEach((t,n)=>{let r=e.get(t.command);r?r.push(n):e.set(t.command,[n])});let t=new Set([...e.keys(),...Q,...D.commandList]),n=new Map;for(let r of t){let t=e.get(r)??[],i=t.map(e=>k[e]).filter(Boolean),a=B(r,D.titles.get(r)),o=he(r,i),s={key:``,command:r,when:void 0};if(!(J.length===0||ge(s,a.title,J)||i.some(e=>ge(e,a.title,J))))continue;let c={command:r,title:a.title,indicesInDraft:t,status:o},l=n.get(a.category.id);l?l.push(c):n.set(a.category.id,[c])}let r=[];for(let e of Object.values(L).toSorted((e,t)=>e.sortWeight-t.sortWeight)){let t=n.get(e.id);!t||t.length===0||(t.sort((e,t)=>{let n=B(e.command,D.titles.get(e.command)),r=B(t.command,D.titles.get(t.command));return n.sortWeight-r.sortWeight}),r.push({category:e,rows:t}))}return r},[k,J,D]),se=oe.reduce((e,t)=>e+t.rows.length,0),ce=(0,F.useMemo)(()=>({platform:l,draft:k,conflictsByCommand:Y,onRebind:H,onAddBinding:U,onRemoveBinding:W,onChangeWhen:G,onResetBinding:K,onResetCommand:ee,scrollToCommand:re,rowRefs:q}),[l,k,Y,H,U,W,G,K,ee,re]),Z=e?.issues.filter(e=>e.kind.startsWith(`keybindings.`))??[],de=(n??[]).length>0;return(0,X.jsxs)(N,{children:[(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,X.jsx)(`span`,{className:`grid size-9 place-items-center rounded-lg bg-accent text-foreground/70`,children:(0,X.jsx)(m,{className:`size-4`})}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`Keybindings`}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Click any shortcut and press a new combination to rebind. Press Esc to cancel, Backspace to clear.`})]})]}),(0,X.jsxs)(T,{variant:`outline`,size:`xs`,onClick:()=>void te(),disabled:k.length===0,children:[(0,X.jsx)(v,{className:`size-3.5`}),`Restore defaults`]})]}),(0,X.jsx)(M,{title:`Configuration file`,children:(0,X.jsx)(P,{title:`Keybindings file`,description:"Open the persisted `keybindings.json` file to edit advanced bindings directly.",status:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`block break-all font-mono text-[11px] text-foreground`,children:t??`Resolving keybindings path...`}),y?(0,X.jsx)(`span`,{className:`mt-1 block text-destructive`,children:y}):(0,X.jsx)(`span`,{className:`mt-1 block`,children:de?`Opens in your preferred editor.`:`No available editors found.`})]}),control:(0,X.jsx)(T,{size:`xs`,variant:`outline`,disabled:!t||!de||f,onClick:S,children:f?`Opening...`:`Open file`})})}),Z.length>0?(0,X.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-200`,children:[(0,X.jsx)(_,{className:`mt-0.5 size-4 shrink-0`}),(0,X.jsxs)(`div`,{className:`flex-1 space-y-0.5`,children:[Z.map(e=>(0,X.jsx)(`p`,{children:e.message},`${e.kind}-${e.message}`)),t?(0,X.jsxs)(`p`,{className:`opacity-70`,children:[`Edit `,(0,X.jsx)(`code`,{className:`rounded bg-amber-500/20 px-1`,children:t}),` `,`to resolve.`]}):null]})]}):null,(0,X.jsxs)(`div`,{className:`relative`,children:[(0,X.jsx)(g,{className:`absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground/60`}),(0,X.jsx)(w,{type:`search`,placeholder:`Search by command, shortcut, or when…`,className:`pl-9`,value:ie,onChange:e=>ae(e.target.value)})]}),se===0?(0,X.jsx)(`div`,{className:`rounded-lg border border-dashed border-border/60 px-6 py-12 text-center text-sm text-muted-foreground`,children:`No commands match your search.`}):oe.map(e=>(0,X.jsx)(M,{title:e.category.label,children:e.rows.map(e=>(0,X.jsx)(ye,{row:e,context:ce,isMac:u,scriptTitle:D.titles.get(e.command)},e.command))},e.category.id))]})}var ye=(0,F.memo)(function(e){let t=(0,I.c)(42),{row:n,context:r,isMac:i}=e,a;if(t[0]!==r||t[1]!==i||t[2]!==n.command||t[3]!==n.indicesInDraft||t[4]!==n.status||t[5]!==n.title){let e;t[7]===r.draft?e=t[8]:(e=e=>({index:e,rule:r.draft[e]}),t[7]=r.draft,t[8]=e);let o=n.indicesInDraft.map(e),s=r.conflictsByCommand.get(n.command)??[],c=s.slice(0,3),l=n.command,u;t[9]!==r.rowRefs.current||t[10]!==n.command?(u=e=>{r.rowRefs.current.set(n.command,e)},t[9]=r.rowRefs.current,t[10]=n.command,t[11]=u):u=t[11];let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=f(`group flex flex-col gap-2 border-t border-border/60 px-4 py-3 first:border-t-0 transition-colors data-[flash=true]:bg-amber-500/10 sm:px-5`),t[12]=d):d=t[12];let p;t[13]===n.title?p=t[14]:(p=(0,X.jsx)(`span`,{className:`truncate text-[13px] font-medium tracking-tight text-foreground`,children:n.title}),t[13]=n.title,t[14]=p);let m;t[15]===n.status?m=t[16]:(m=(0,X.jsx)(be,{status:n.status}),t[15]=n.status,t[16]=m);let g;t[17]!==p||t[18]!==m?(g=(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,m]}),t[17]=p,t[18]=m,t[19]=g):g=t[19];let _;t[20]===n.command?_=t[21]:(_=(0,X.jsx)(`code`,{className:`block truncate text-[10px] text-muted-foreground/60`,children:n.command}),t[20]=n.command,t[21]=_);let y;t[22]!==g||t[23]!==_?(y=(0,X.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[g,_]}),t[22]=g,t[23]=_,t[24]=y):y=t[24];let b=o.length===0?(0,X.jsx)(Se,{draftIndex:-1,rule:{command:n.command,key:``,when:void 0},context:r,isMac:i,isPrimary:!0,isPlaceholder:!0,onAddPlaceholder:()=>r.onAddBinding(n.command)},`placeholder`):o.map((e,t)=>{let{index:n,rule:a}=e;return(0,X.jsx)(Se,{draftIndex:n,rule:a,context:r,isMac:i,isPrimary:t===0,isPlaceholder:a.key.length===0},`${n}-${a.__id}`)}),w;t[25]!==r||t[26]!==n.command||t[27]!==n.title||t[28]!==o?(w=o.length>0?(0,X.jsxs)(C,{children:[(0,X.jsx)(x,{render:(0,X.jsx)(`button`,{type:`button`,onClick:()=>r.onAddBinding(n.command),className:`inline-flex size-6 items-center justify-center rounded-md border border-dashed border-border/60 text-muted-foreground/60 transition-colors hover:border-border hover:text-foreground`,"aria-label":`Add another shortcut for ${n.title}`,children:(0,X.jsx)(h,{className:`size-3.5`})})}),(0,X.jsx)(S,{side:`top`,children:`Add another shortcut`})]}):null,t[25]=r,t[26]=n.command,t[27]=n.title,t[28]=o,t[29]=w):w=t[29];let T;t[30]!==r||t[31]!==n.command||t[32]!==n.status||t[33]!==n.title?(T=n.status!=="default"&&Q.has(n.command)?(0,X.jsxs)(C,{children:[(0,X.jsx)(x,{render:(0,X.jsx)(`button`,{type:`button`,onClick:()=>r.onResetCommand(n.command),className:`inline-flex size-6 items-center justify-center rounded-md text-muted-foreground/50 transition-colors hover:text-foreground`,"aria-label":`Reset ${n.title} to default`,children:(0,X.jsx)(v,{className:`size-3.5`})})}),(0,X.jsx)(S,{side:`top`,children:`Reset to default`})]}):null,t[30]=r,t[31]=n.command,t[32]=n.status,t[33]=n.title,t[34]=T):T=t[34];let E;t[35]!==b||t[36]!==w||t[37]!==T?(E=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[b,w,T]}),t[35]=b,t[36]=w,t[37]=T,t[38]=E):E=t[38];let D;t[39]!==y||t[40]!==E?(D=(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[y,E]}),t[39]=y,t[40]=E,t[41]=D):D=t[41],a=(0,X.jsxs)(`div`,{"data-keybinding-command":l,ref:u,className:d,children:[D,c.length>0?(0,X.jsxs)(`div`,{className:`animate-in fade-in slide-in-from-top-1 flex flex-col gap-1 rounded-md border border-destructive/30 bg-destructive/10 px-2.5 py-1.5 text-[11px] text-destructive-foreground/90`,children:[c.map(e=>(0,X.jsx)(xe,{conflict:e,isMac:i,platform:r.platform,onSelect:()=>r.scrollToCommand(e.otherCommand)},`${e.key}-${e.otherCommand}`)),s.length>c.length?(0,X.jsxs)(`span`,{className:`opacity-70`,children:[`+ `,s.length-c.length,` more`]}):null]}):null]}),t[0]=r,t[1]=i,t[2]=n.command,t[3]=n.indicesInDraft,t[4]=n.status,t[5]=n.title,t[6]=a}else a=t[6];return a});function be(e){let t=(0,I.c)(5),{status:n}=e;if(n==="default")return null;let r=n===`modified`?`bg-amber-500/15 text-amber-300`:`bg-indigo-500/15 text-indigo-300`,i;t[0]===r?i=t[1]:(i=f(`rounded px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-[0.06em]`,r),t[0]=r,t[1]=i);let a=n===`modified`?`Modified`:`Custom`,o;return t[2]!==i||t[3]!==a?(o=(0,X.jsx)(`span`,{className:i,children:a}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function xe(e){let t=(0,I.c)(27),{conflict:n,platform:r,isMac:i,onSelect:a}=e,o;t[0]===n.otherCommand?o=t[1]:(o=B(n.otherCommand),t[0]=n.otherCommand,t[1]=o);let s=o,c,l,u,d;if(t[2]!==n.key||t[3]!==i||t[4]!==r){let e=ke(n.key),a=e?ce(e,{platform:r}):[n.key];u=`flex flex-wrap items-center gap-1.5`,t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(_,{className:`size-3 shrink-0 text-destructive`}),t[9]=d):d=t[9],c=`inline-flex items-center gap-0.5 font-mono`;let o;t[10]===i?o=t[11]:(o=e=>(0,X.jsx)(Te,{token:e,isMac:i},e),t[10]=i,t[11]=o),l=a.map(o),t[2]=n.key,t[3]=i,t[4]=r,t[5]=c,t[6]=l,t[7]=u,t[8]=d}else c=t[5],l=t[6],u=t[7],d=t[8];let f;t[12]!==c||t[13]!==l?(f=(0,X.jsx)(`span`,{className:c,children:l}),t[12]=c,t[13]=l,t[14]=f):f=t[14];let p;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`span`,{children:`also bound to`}),t[15]=p):p=t[15];let m;t[16]!==s.title||t[17]!==a?(m=(0,X.jsx)(`button`,{type:`button`,onClick:a,className:`rounded bg-destructive/20 px-1.5 py-0.5 font-medium text-destructive-foreground hover:bg-destructive/30`,children:s.title}),t[16]=s.title,t[17]=a,t[18]=m):m=t[18];let h;t[19]===n.otherWhen?h=t[20]:(h=n.otherWhen===void 0?null:(0,X.jsxs)(`span`,{className:`opacity-70`,children:[`when `,(0,X.jsx)(`code`,{className:`font-mono`,children:G(n.otherWhen)})]}),t[19]=n.otherWhen,t[20]=h);let g;return t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==m||t[25]!==h?(g=(0,X.jsxs)(`div`,{className:u,children:[d,f,p,m,h]}),t[21]=u,t[22]=d,t[23]=f,t[24]=m,t[25]=h,t[26]=g):g=t[26],g}function Se(e){let t=(0,I.c)(59),{draftIndex:n,rule:r,context:i,isMac:a,isPlaceholder:o,onAddPlaceholder:s}=e,[c,l]=(0,F.useState)(!1),[u,d]=(0,F.useState)(!1),p=(0,F.useRef)(null),m;bb0:{if(r.key.length===0){m=null;break bb0}let e;t[0]===r.key?e=t[1]:(e=ke(r.key),t[0]=r.key,t[1]=e),m=e}let g=m,_=g?ce(g,{platform:i.platform}):[],v;t[2]!==n||t[3]!==o||t[4]!==s?(v=()=>{if(o&&n===-1&&s){s(),setTimeout(Ce,50);return}l(!0)},t[2]=n,t[3]=o,t[4]=s,t[5]=v):v=t[5];let b=v,x,S;t[6]!==i||t[7]!==n||t[8]!==c?(x=()=>{if(!c)return;let e=e=>{if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`&&!Oe(e)){l(!1);return}if(e.key===`Tab`&&!Oe(e)){l(!1);return}if(e.key===`Backspace`&&!Oe(e)){n>=0&&i.onRemoveBinding(n),l(!1);return}let t=J(e,{platform:i.platform});t&&(n>=0&&i.onRebind(n,t),d(!0),l(!1),setTimeout(()=>d(!1),220))};return window.addEventListener(`keydown`,e,{capture:!0}),()=>window.removeEventListener(`keydown`,e,{capture:!0})},S=[c,n,i],t[6]=i,t[7]=n,t[8]=c,t[9]=x,t[10]=S):(x=t[9],S=t[10]),(0,F.useEffect)(x,S);let C,w;t[11]===c?(C=t[12],w=t[13]):(C=()=>{c&&p.current?.focus()},w=[c],t[11]=c,t[12]=C,t[13]=w),(0,F.useEffect)(C,w);let T;t[14]!==c||t[15]!==b?(T=e=>{c||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),b())},t[14]=c,t[15]=b,t[16]=T):T=t[16];let E=T,D;t[17]!==i||t[18]!==n?(D=()=>{n>=0&&i.onRemoveBinding(n)},t[17]=i,t[18]=n,t[19]=D):D=t[19];let O=D;if(o&&n===-1&&_.length===0){let e;t[20]===s?e=t[21]:(e=()=>s?.(),t[20]=s,t[21]=e);let n;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(h,{className:`size-3`}),t[22]=n):n=t[22];let r;return t[23]!==E||t[24]!==e?(r=(0,X.jsxs)(`button`,{ref:p,type:`button`,onClick:e,onKeyDown:E,className:`inline-flex h-6 items-center gap-1 rounded-md border border-dashed border-border/60 bg-transparent px-2 text-[11px] text-muted-foreground/70 transition-colors hover:border-border hover:text-foreground`,children:[n,` No shortcut — click to set`]}),t[23]=E,t[24]=e,t[25]=r):r=t[25],r}let k=`Edit shortcut for ${r.command}`,A=_.length===0&&n>=0?`true`:void 0,j=c?`kb-chip-recording border-indigo-500/60 bg-indigo-500/15 text-indigo-100 shadow-[0_0_0_4px_rgba(99,102,241,0.18)]`:u?`border-emerald-500/50 bg-emerald-500/15 text-emerald-100`:`border-border bg-muted/60 text-foreground hover:bg-muted`,M;t[26]===j?M=t[27]:(M=f(`inline-flex h-6 items-center gap-1 rounded-md border px-2 font-mono text-[11px] transition-all duration-150`,j),t[26]=j,t[27]=M);let N;t[28]===c?N=t[29]:(N=c?{animation:`keybindings-pulse 1.4s ease-in-out infinite`}:{},t[28]=c,t[29]=N);let P=c?(0,X.jsx)(`span`,{className:`text-[11px] tracking-[0.04em]`,children:`Press shortcut…`}):_.length===0?(0,X.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Click to set`}):_.map(e=>(0,X.jsx)(Te,{token:e,isMac:a},e)),L;t[30]!==c||t[31]!==r.when?(L=!c&&r.when!==void 0?(0,X.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:`·`}):null,t[30]=c,t[31]=r.when,t[32]=L):L=t[32];let R;t[33]!==c||t[34]!==E||t[35]!==b||t[36]!==k||t[37]!==A||t[38]!==M||t[39]!==N||t[40]!==P||t[41]!==L?(R=(0,X.jsxs)(`button`,{ref:p,type:`button`,"aria-pressed":c,"aria-label":k,"data-chip-pending-record":A,onClick:b,onKeyDown:E,className:M,style:N,children:[P,L]}),t[33]=c,t[34]=E,t[35]=b,t[36]=k,t[37]=A,t[38]=M,t[39]=N,t[40]=P,t[41]=L,t[42]=R):R=t[42];let z;t[43]!==i||t[44]!==n?(z=e=>i.onChangeWhen(n,e),t[43]=i,t[44]=n,t[45]=z):z=t[45];let B=n<0||c,V;t[46]!==r.when||t[47]!==z||t[48]!==B?(V=(0,X.jsx)(Ee,{currentWhen:r.when,onChange:z,disabled:B}),t[46]=r.when,t[47]=z,t[48]=B,t[49]=V):V=t[49];let H;t[50]!==n||t[51]!==O||t[52]!==c?(H=n>=0&&!c?(0,X.jsx)(`button`,{type:`button`,onClick:O,"aria-label":`Remove this shortcut`,className:`opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100`,children:(0,X.jsx)(y,{className:`size-3 text-muted-foreground/60 hover:text-destructive`})}):null,t[50]=n,t[51]=O,t[52]=c,t[53]=H):H=t[53];let U;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,X.jsx)(De,{}),t[54]=U):U=t[54];let W;return t[55]!==R||t[56]!==V||t[57]!==H?(W=(0,X.jsxs)(`span`,{className:`relative inline-flex items-center gap-1`,children:[R,V,H,U]}),t[55]=R,t[56]=V,t[57]=H,t[58]=W):W=t[58],W}function Ce(){document.querySelectorAll(`[data-chip-pending-record="true"]`).forEach(we)}function we(e){e.click()}function Te(e){let t=(0,I.c)(5),{token:n,isMac:r}=e,i=r&&n.length===1&&/[⌀-⏿←-⇿]/.test(n)?`bg-transparent`:`bg-foreground/10`,a;t[0]===i?a=t[1]:(a=f(`rounded px-1 leading-none`,i),t[0]=i,t[1]=a);let o;return t[2]!==a||t[3]!==n?(o=(0,X.jsx)(`span`,{className:a,children:n}),t[2]=a,t[3]=n,t[4]=o):o=t[4],o}function Ee(e){let t=(0,I.c)(35),{currentWhen:n,onChange:r,disabled:i}=e,a;t[0]===n?a=t[1]:(a=W(n),t[0]=n,t[1]=a);let o=a,s,c,l,u,d,p,m;if(t[2]!==n||t[3]!==i){let e=G(n);c=O,s=k,l=`button`,u=i;let r=n===void 0&&`italic opacity-70`;t[11]===r?d=t[12]:(d=f(`inline-flex h-5 items-center gap-1 rounded bg-muted/40 px-1.5 text-[10px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,r),t[11]=r,t[12]=d),p=`When: ${e}`,m=n===void 0?`always`:e.toLowerCase(),t[2]=n,t[3]=i,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=p,t[10]=m}else s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],p=t[9],m=t[10];let h;t[13]!==l||t[14]!==u||t[15]!==d||t[16]!==p||t[17]!==m?(h=(0,X.jsx)(`button`,{type:l,disabled:u,className:d,"aria-label":p,children:m}),t[13]=l,t[14]=u,t[15]=d,t[16]=p,t[17]=m,t[18]=h):h=t[18];let g;t[19]!==s||t[20]!==h?(g=(0,X.jsx)(s,{render:h}),t[19]=s,t[20]=h,t[21]=g):g=t[21];let _;t[22]!==n||t[23]!==o?(_=!o&&n!==void 0?(0,X.jsxs)(`div`,{className:`px-2 py-1.5 text-[10px] text-muted-foreground`,children:[`Current: `,(0,X.jsx)(`code`,{className:`font-mono`,children:n})]}):null,t[22]=n,t[23]=o,t[24]=_):_=t[24];let v;t[25]!==n||t[26]!==r?(v=V.map(e=>(0,X.jsxs)(A,{onClick:()=>r(e.value),className:f(`flex items-center justify-between text-[12px]`,e.value===n&&`font-semibold text-foreground`),children:[(0,X.jsx)(`span`,{children:e.label}),e.value===void 0?(0,X.jsx)(`span`,{className:`text-[10px] text-muted-foreground/60`,children:`no condition`}):(0,X.jsx)(`code`,{className:`text-[10px] font-mono text-muted-foreground/60`,children:e.value})]},e.id)),t[25]=n,t[26]=r,t[27]=v):v=t[27];let y;t[28]!==v||t[29]!==_?(y=(0,X.jsxs)(D,{side:`bottom`,align:`end`,className:`min-w-[220px]`,children:[_,v]}),t[28]=v,t[29]=_,t[30]=y):y=t[30];let b;return t[31]!==c||t[32]!==y||t[33]!==g?(b=(0,X.jsxs)(c,{children:[g,y]}),t[31]=c,t[32]=y,t[33]=g,t[34]=b):b=t[34],b}function De(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(`style`,{children:`@keyframes keybindings-pulse {
2
- 0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
3
- 50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.30); }
4
- }
5
- @media (prefers-reduced-motion: reduce) {
6
- .kb-chip-recording { animation: none !important; }
7
- }`}),e[0]=t):t=e[0],t}function Oe(e){return e.metaKey||e.ctrlKey||e.altKey||e.shiftKey}function ke(e){let t=e.toLowerCase().split(`+`),n=null,r=!1,i=!1,a=!1,o=!1,s=!1;for(let e of t)switch(e){case`cmd`:case`meta`:r=!0;break;case`ctrl`:case`control`:i=!0;break;case`alt`:case`option`:a=!0;break;case`shift`:o=!0;break;case`mod`:s=!0;break;default:if(n!==null)return null;n=e===`space`?` `:e}return n===null?null:{key:n,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,modKey:s}}export{ve as KeybindingsSettingsPanel};