@yuriai/web 0.3.3 → 0.3.5

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 (276) hide show
  1. package/dist/assets/AgentAvatar-CNOu_vy0.js +1 -0
  2. package/dist/assets/AgentSelector-K5JSbXv3.js +1 -0
  3. package/dist/assets/ArchivedSessionsDialog-CU9RXl8K.js +1 -0
  4. package/dist/assets/AssistantConversationSurface-u3ndSmZP.js +3 -0
  5. package/dist/assets/AssistantSessionCard-MYBAni6A.js +2 -0
  6. package/dist/assets/AssistantUnreadBadge-opyLZlZd.js +1 -0
  7. package/dist/assets/AssistantView-CDPTtrUZ.js +1 -0
  8. package/dist/assets/AssistantWorkingAvatar-Vghb8xlt.js +1 -0
  9. package/dist/assets/AssistantsSettingsPage-Dt4OP3J-.js +1 -0
  10. package/dist/assets/BinaryFileFallback-CJqnlBzh.js +1 -0
  11. package/dist/assets/BtwPanel-DnMW6R43.js +6 -0
  12. package/dist/assets/BusyDots-FXSlMe2F.js +4 -0
  13. package/dist/assets/ChatContainer-Dg9uDBjk.js +65 -0
  14. package/dist/assets/ChatView-AFUNEBdD.js +3 -0
  15. package/dist/assets/{DiagramView-CaefmjA4.js → DiagramView-j7aFp44v.js} +1 -1
  16. package/dist/assets/{DiffView-BaqthIvq.js → DiffView-DZ_gKyTO.js} +2 -2
  17. package/dist/assets/DiffViewToggle-DkxhEUhV.js +1 -0
  18. package/dist/assets/ErrorBoundary-CCH4LiRY.js +1 -0
  19. package/dist/assets/FadeInOnReveal-DO9PZrJL.js +1 -0
  20. package/dist/assets/{GuiPluginMount-Btp3mJT2.js → GuiPluginMount-BCqt2pmM.js} +1 -1
  21. package/dist/assets/GuiPluginPage-BSjWEmIu.js +1 -0
  22. package/dist/assets/GuiPluginSurface-B8QjacMd.js +1 -0
  23. package/dist/assets/GuiPluginTitlebarItems-DfHugxsx.js +1 -0
  24. package/dist/assets/{GuiPluginWindow-BkAFJyFd.js → GuiPluginWindow-CDycMqzT.js} +1 -1
  25. package/dist/assets/Icon-B-w2YKpn.js +1 -0
  26. package/dist/assets/ImageLoadingPlaceholder-DsgRtfYG.js +1 -0
  27. package/dist/assets/{LoadingImage-Df22Rkor.js → LoadingImage-B3IL7hnv.js} +1 -1
  28. package/dist/assets/MarkdownRenderer-CsEylQVj.js +2 -0
  29. package/dist/assets/{MarkdownRendererImpl-BZc_jUrV.js → MarkdownRendererImpl-CPgpkd9b.js} +1 -1
  30. package/dist/assets/MarkstreamRendererImpl-BzK1BO80.js +3 -0
  31. package/dist/assets/{MobileAssistantSettingsPage-BBIiFN2g.js → MobileAssistantSettingsPage-DVpE3b24.js} +1 -1
  32. package/dist/assets/MobileAssistantTab-BbccE67x.js +1 -0
  33. package/dist/assets/{MobileBtwPage-DVZm5hrZ.js → MobileBtwPage-BRN1gAmR.js} +1 -1
  34. package/dist/assets/{MobileChangesSurface-CiqsGZsg.js → MobileChangesSurface-BwmSTxeh.js} +2 -2
  35. package/dist/assets/MobileChatScreen-Bf42GrQ8.js +1 -0
  36. package/dist/assets/MobileDetailNavigation-DKWnQoSh.js +1 -0
  37. package/dist/assets/MobileFilesSurface-qkfC06Oh.js +2 -0
  38. package/dist/assets/MobileHtmlNetworkBoundary-BKSYPR9N.js +2 -0
  39. package/dist/assets/MobileOverlayPanel-DcRWQlmf.js +1 -0
  40. package/dist/assets/MobileResizableSheet-CF3Pbot4.js +1 -0
  41. package/dist/assets/{MobileSettingsTab-MmDnxG47.js → MobileSettingsTab-of6zpTsr.js} +1 -1
  42. package/dist/assets/{MobileShareBridge-DAlGSXoj.js → MobileShareBridge-CRq9F1rn.js} +1 -1
  43. package/dist/assets/MobileSurface-DGNomvlu.js +1 -0
  44. package/dist/assets/MobileTabPageHeader-0aJFe3_x.js +1 -0
  45. package/dist/assets/ModelLogo-D27dq-si.js +1 -0
  46. package/dist/assets/ModelSelector-Dg__8QLh.js +1 -0
  47. package/dist/assets/MultiRunWindow-COqSg1Nk.js +1 -0
  48. package/dist/assets/OnboardingScreen-DUNyDwc6.js +1 -0
  49. package/dist/assets/OverlayScrollbar-DS6XJ1HA.js +1 -0
  50. package/dist/assets/{PierreDiffViewer-B1e1H6br.js → PierreDiffViewer-BHwj_6j8.js} +3 -3
  51. package/dist/assets/ProviderLogo-Cm9RNV_U.js +1 -0
  52. package/dist/assets/{RemoteAssistantSessionCard-BgL7oxAK.js → RemoteAssistantSessionCard-DAjHRUrC.js} +1 -1
  53. package/dist/assets/RemoteDesktopPanel-Bays6pHh.js +1 -0
  54. package/dist/assets/ScheduledTasksDialog-DnwBC7cj.js +3 -0
  55. package/dist/assets/ScrollableOverlay-CkX-buJm.js +1 -0
  56. package/dist/assets/SettingsGroup-kZ_faXwL.js +1 -0
  57. package/dist/assets/{SettingsView-CLE6ra3s.js → SettingsView-C62JngPE.js} +13 -13
  58. package/dist/assets/SettingsWindow-Cm8apHAR.js +1 -0
  59. package/dist/assets/SetupTourDialog-W_UeWH-i.js +1 -0
  60. package/dist/assets/{SyncActions-CrOoREWF.js → SyncActions-Blnq08ks.js} +1 -1
  61. package/dist/assets/TerminalView-CMugifkh.js +8 -0
  62. package/dist/assets/TextSelectionMenu-B2fIBlD3.js +11 -0
  63. package/dist/assets/{ToolOutputDialog-DqCCsC-N.js → ToolOutputDialog-DdSUE2kP.js} +1 -1
  64. package/dist/assets/{YuriLogo-Cp6vWDWp.js → YuriLogo-Ceon25sC.js} +1 -1
  65. package/dist/assets/{YuriWordmark-CLGHwobA.js → YuriWordmark-CW53XKgV.js} +1 -1
  66. package/dist/assets/{assistant-attachment-cache-bRIIESGe.js → assistant-attachment-cache-eNT2QtmP.js} +1 -1
  67. package/dist/assets/assistantMessagePreview-C7YAFen1.js +1 -0
  68. package/dist/assets/assistantQueries-DxvTFlpL.js +1 -0
  69. package/dist/assets/{auto-read-context-DVGIDEr6.js → auto-read-context-Ce0o43YI.js} +1 -1
  70. package/dist/assets/{capgoAdapter-94K243Zv.js → capgoAdapter-DQwUA-Nt.js} +1 -1
  71. package/dist/assets/card-D44sTpdY.js +1 -0
  72. package/dist/assets/chatUpwardIntent-CnS7WWRL.js +1 -0
  73. package/dist/assets/checkbox-DaKe0Tlq.js +1 -0
  74. package/dist/assets/{client-B_907PBv.js → client-ITylDDCS.js} +1 -1
  75. package/dist/assets/collapsible-CL3SPnOf.js +1 -0
  76. package/dist/assets/{connection-hint-B-kOWome.js → connection-hint-SMNZFDAe.js} +1 -1
  77. package/dist/assets/context-menu-DZunhC8o.js +1 -0
  78. package/dist/assets/diagram-DFXqN638.js +1 -0
  79. package/dist/assets/dialog-CmjXOKMz.js +1 -0
  80. package/dist/assets/dropdown-menu-BT_66BFT.js +1 -0
  81. package/dist/assets/{fileMentionTouchSelection-BQEUty_A.js → fileMentionTouchSelection-B_62hIQI.js} +1 -1
  82. package/dist/assets/{gitApi-BWsBS_2N.js → gitApi-CBfYFgtd.js} +1 -1
  83. package/dist/assets/{gitApiHttp-Dd-FwgCq.js → gitApiHttp-Bswf6gnl.js} +1 -1
  84. package/dist/assets/githubAuthQueries-C5RxUNL2.js +1 -0
  85. package/dist/assets/historyImportQueries-CZsECryv.js +1 -0
  86. package/dist/assets/{host-ChBHl_Vl.js → host-C7jHgymK.js} +1 -1
  87. package/dist/assets/{i18n-DXc6czdR.js → i18n-Dojvs57M.js} +1 -1
  88. package/dist/assets/{icons-Bd-INsoy.js → icons-D_vRtitD.js} +1 -1
  89. package/dist/assets/{imageSource-BR4C9TuS.js → imageSource-Cq_p4gAe.js} +1 -1
  90. package/dist/assets/input-BllFKOjo.js +1 -0
  91. package/dist/assets/{input-store-BSJBQTMi.js → input-store-dLjM4aiu.js} +1 -1
  92. package/dist/assets/insertionBoundaries-Br0Bdl9R.js +1 -0
  93. package/dist/assets/kbd-CwkasrzN.js +1 -0
  94. package/dist/assets/main-B7wAfq9F.js +2 -0
  95. package/dist/assets/main-DVmi0I-y.js +169 -0
  96. package/dist/assets/{markdownHeightCache-CHGGNhWI.js → markdownHeightCache-RX04MAqu.js} +1 -1
  97. package/dist/assets/mcpQueries-qRW-HQMx.js +1 -0
  98. package/dist/assets/miniChat-D7-JQ1hw.js +2 -0
  99. package/dist/assets/mobile-BFQBDlo9.js +2 -0
  100. package/dist/assets/{mobileBackNavigation-DF_uhF-i.js → mobileBackNavigation-DsDUTnFY.js} +1 -1
  101. package/dist/assets/mobileConnections-PVy2SsQ_.js +2 -0
  102. package/dist/assets/multirun-C2RRF2Q3.js +3 -0
  103. package/dist/assets/{native-config-DSpTDz3F.js → native-config-Czc142JT.js} +1 -1
  104. package/dist/assets/{nativeComposerCover-DXFy97OQ.js → nativeComposerCover-DzEGSyOO.js} +1 -1
  105. package/dist/assets/{navigation-jU0HUH9s.js → navigation-C1v9hIAT.js} +2 -2
  106. package/dist/assets/openRemoteProjectSession-C5z2Juv7.js +1 -0
  107. package/dist/assets/pluginPresentation-p_0sXPMT.js +2 -0
  108. package/dist/assets/{project-preview-BCtFY4Rg.js → project-preview-BcLPKzwg.js} +1 -1
  109. package/dist/assets/{prompt-attachment-upload-B5DHrw6U.js → prompt-attachment-upload-BGppTOgV.js} +1 -1
  110. package/dist/assets/pwa-Br2HZksc.js +2 -0
  111. package/dist/assets/queue-abort-optimistic-DciJN9X1.js +1 -0
  112. package/dist/assets/{quota-CqWNkFzw.js → quota-2PwXAoIg.js} +1 -1
  113. package/dist/assets/{reference-history-DBxnA_fF.js → reference-history-BwtzPAmA.js} +1 -1
  114. package/dist/assets/{remote-input-store-C6UIEZxp.js → remote-input-store-DdjKfpxS.js} +1 -1
  115. package/dist/assets/remoteProjectQueries-BXrXdLjN.js +1 -0
  116. package/dist/assets/{remoteSessionReference-Cug8RfIG.js → remoteSessionReference-XfJOxItc.js} +1 -1
  117. package/dist/assets/renderElectronMiniChatApp-BekZAu-s.js +2 -0
  118. package/dist/assets/renderMobileApp-C5U2cyeq.js +17 -0
  119. package/dist/assets/{runtime-file-download-BWeoSXRb.js → runtime-file-download-1s2Al1t3.js} +1 -1
  120. package/dist/assets/runtime-file-resource-C5kmYlLv.js +6 -0
  121. package/dist/assets/{runtimeConfig-zzeYHX6k.js → runtimeConfig-DzYIc49M.js} +1 -1
  122. package/dist/assets/runtimeEndpointReset-BKLVdNhJ.js +4 -0
  123. package/dist/assets/select-BOtGs1FV.js +1 -0
  124. package/dist/assets/{sessionLookup-4zOaVAuF.js → sessionLookup-BTQ_AtWh.js} +1 -1
  125. package/dist/assets/sessionOwnership-BPfk1qCS.js +2 -0
  126. package/dist/assets/shortcuts-Cu4ioDvH.js +1 -0
  127. package/dist/assets/sortable-tabs-strip-DACGW9sB.js +1 -0
  128. package/dist/assets/speechSettingsQueries-BU-4Axb5.js +1 -0
  129. package/dist/assets/{src-QTj33Z0x.css → src-Dj147H4m.css} +1 -1
  130. package/dist/assets/{store-C1ifDY0C.js → store-DRUKTpV5.js} +1 -1
  131. package/dist/assets/switch-DaUn0G3u.js +1 -0
  132. package/dist/assets/{terminalApi-DXvEquBF.js → terminalApi-ClNhXBA8.js} +1 -1
  133. package/dist/assets/textarea-IhQHekYx.js +1 -0
  134. package/dist/assets/{timeFormat-dCsf2MQv.js → timeFormat-BsuUDWLs.js} +1 -1
  135. package/dist/assets/tooltip-Dw3DApa-.js +1 -0
  136. package/dist/assets/truncated-path-KHrfQ66P.js +1 -0
  137. package/dist/assets/{types-s_oc_LRs.js → types-BBBwzIOU.js} +1 -1
  138. package/dist/assets/ui-CHdferA1.js +13 -0
  139. package/dist/assets/{useAppFontEffects-nvkTSYHB.js → useAppFontEffects-Dw6o6XbA.js} +4 -4
  140. package/dist/assets/useDesktopWindowControlsLayout-DAkTdcAP.js +1 -0
  141. package/dist/assets/{useDictation-CZzAlsW0.js → useDictation-sdgDfATy.js} +1 -1
  142. package/dist/assets/{useEffectiveDirectory-BxolHzt4.js → useEffectiveDirectory-DZqC-2HE.js} +1 -1
  143. package/dist/assets/{useFontPreferences-BiRBKhti.js → useFontPreferences-Bb-bxdL8.js} +1 -1
  144. package/dist/assets/{useGitStore-B641o_o0.js → useGitStore-Bbmai549.js} +1 -1
  145. package/dist/assets/{useInlineCommentDraftStore-B2mkmAZd.js → useInlineCommentDraftStore-DrC99u6A.js} +1 -1
  146. package/dist/assets/useMcpConfigStore-ZsZxSrCt.js +1 -0
  147. package/dist/assets/useMobileSwipeActions-fUp7Bkbn.js +1 -0
  148. package/dist/assets/useMobileTranscriptSyncHint-B4izCfqe.js +10 -0
  149. package/dist/assets/useModelLists-B0qSYDby.js +1 -0
  150. package/dist/assets/useOpenCodeReadiness-B9d-wLZB.js +1 -0
  151. package/dist/assets/usePluginsStore-BLncdNj-.js +1 -0
  152. package/dist/assets/useProjectGitActions-CHMe1ku4.js +1 -0
  153. package/dist/assets/{useProjectGitStore-C1K6WpCe.js → useProjectGitStore-Lz9AV32V.js} +1 -1
  154. package/dist/assets/{useProjectRuntimeAPIs-BItoD9Bt.js → useProjectRuntimeAPIs-D51dVo-V.js} +1 -1
  155. package/dist/assets/useQuotaStore-mZs9LTwx.js +1 -0
  156. package/dist/assets/{useSessionBtwStore-BCHq3UOB.js → useSessionBtwStore-CYaTDkvT.js} +1 -1
  157. package/dist/assets/{useStreamingTextThrottle-DGAjmaMZ.js → useStreamingTextThrottle-ul6e3dUd.js} +1 -1
  158. package/dist/assets/worktreeManager-V6hoSVxH.js +1 -0
  159. package/dist/assets/{worktreeSourceBranchPreference-B5Fldnhm.js → worktreeSourceBranchPreference-MQFPkOZy.js} +1 -1
  160. package/dist/index.html +12 -13
  161. package/dist/mini-chat.html +12 -13
  162. package/dist/mobile.html +2 -2
  163. package/package.json +1 -1
  164. package/server/index.js +1 -0
  165. package/server/lib/gui-customization/DOCUMENTATION.md +22 -1
  166. package/server/lib/gui-customization/projects-client.mjs +14 -3
  167. package/server/lib/gui-customization/projects-lifecycle.js +89 -0
  168. package/server/lib/gui-customization/projects-lifecycle.test.js +199 -0
  169. package/server/lib/gui-customization/projects.js +19 -3
  170. package/server/lib/gui-customization/projects.test.js +6 -0
  171. package/server/lib/gui-customization/session-skill.js +2 -2
  172. package/server/lib/gui-customization/session-skill.test.js +6 -0
  173. package/server/lib/gui-customization/skill/SKILL.md +3 -1
  174. package/server/lib/gui-customization/skill/references/projects.md +30 -0
  175. package/server/lib/opencode/feature-routes-runtime.js +5 -0
  176. package/server/lib/opencode/feature-routes-runtime.test.js +6 -0
  177. package/dist/assets/AgentAvatar-CHCjMxCF.js +0 -1
  178. package/dist/assets/AgentSelector-DpOQ7dyw.js +0 -1
  179. package/dist/assets/ArchivedSessionsDialog-nqnWb-Vc.js +0 -1
  180. package/dist/assets/AssistantConversationSurface-CKXgty02.js +0 -3
  181. package/dist/assets/AssistantSessionCard-C2-2fJul.js +0 -2
  182. package/dist/assets/AssistantUnreadBadge-p9mkpbMC.js +0 -1
  183. package/dist/assets/AssistantView-BR8hsjOv.js +0 -1
  184. package/dist/assets/AssistantWorkingAvatar-CoxhuMvM.js +0 -1
  185. package/dist/assets/AssistantsSettingsPage-Bwid1xE0.js +0 -1
  186. package/dist/assets/BinaryFileFallback-Cb3uP7y1.js +0 -1
  187. package/dist/assets/BtwPanel-9VAdk_qa.js +0 -6
  188. package/dist/assets/BusyDots-DeDkh4Ke.js +0 -4
  189. package/dist/assets/ChatContainer-wP6o_O4K.js +0 -65
  190. package/dist/assets/ChatView-DU_2-cfD.js +0 -3
  191. package/dist/assets/DiffViewToggle-BwJ6MYB7.js +0 -1
  192. package/dist/assets/ErrorBoundary-_5B1xjgZ.js +0 -1
  193. package/dist/assets/FadeInOnReveal-BYHr1gqj.js +0 -1
  194. package/dist/assets/GuiPluginPage-DM_RLx6u.js +0 -1
  195. package/dist/assets/GuiPluginSurface-KiyqqEKU.js +0 -1
  196. package/dist/assets/GuiPluginTitlebarItems-DxFINwbr.js +0 -1
  197. package/dist/assets/Icon-DmykXZL1.js +0 -1
  198. package/dist/assets/ImageLoadingPlaceholder-DgM_EFHn.js +0 -1
  199. package/dist/assets/MarkdownRenderer-D7p9Iflj.js +0 -2
  200. package/dist/assets/MarkstreamRendererImpl-BUk_c3g1.js +0 -3
  201. package/dist/assets/MobileAssistantTab-CMIQansR.js +0 -1
  202. package/dist/assets/MobileChatScreen-DDenVTX8.js +0 -1
  203. package/dist/assets/MobileDetailNavigation-ldTzGo19.js +0 -1
  204. package/dist/assets/MobileFilesSurface-DIVH9aPV.js +0 -2
  205. package/dist/assets/MobileHtmlNetworkBoundary-TBxrF4jJ.js +0 -2
  206. package/dist/assets/MobileOverlayPanel-C36VWWmN.js +0 -1
  207. package/dist/assets/MobileResizableSheet-CqphcaKq.js +0 -1
  208. package/dist/assets/MobileSurface-cmaGf3hZ.js +0 -1
  209. package/dist/assets/MobileTabPageHeader-D6P4K98S.js +0 -1
  210. package/dist/assets/ModelLogo-BkbD514M.js +0 -1
  211. package/dist/assets/ModelSelector-HJmXcB3j.js +0 -1
  212. package/dist/assets/MultiRunWindow-BmxVnblA.js +0 -1
  213. package/dist/assets/OnboardingScreen-DnEtIaxG.js +0 -1
  214. package/dist/assets/OverlayScrollbar-D6vmoMkQ.js +0 -1
  215. package/dist/assets/ProviderLogo-DA98yu7M.js +0 -1
  216. package/dist/assets/RemoteDesktopPanel-DBrEQwpr.js +0 -1
  217. package/dist/assets/ScheduledTasksDialog-BVh0yaZR.js +0 -3
  218. package/dist/assets/ScrollableOverlay-stxT7gLf.js +0 -1
  219. package/dist/assets/SettingsGroup-CvaPYznp.js +0 -1
  220. package/dist/assets/SettingsWindow-DpzeOekS.js +0 -1
  221. package/dist/assets/SetupTourDialog-CY_CU5qU.js +0 -1
  222. package/dist/assets/TerminalView-mO5f0Axl.js +0 -8
  223. package/dist/assets/TextSelectionMenu-VsKriqtT.js +0 -11
  224. package/dist/assets/assistantMessagePreview-DLBvPQtq.js +0 -1
  225. package/dist/assets/assistantQueries-NdPqu6rx.js +0 -1
  226. package/dist/assets/card-DmysoUAV.js +0 -1
  227. package/dist/assets/chatUpwardIntent-tvLWGs9Q.js +0 -1
  228. package/dist/assets/checkbox-BMN5hAVm.js +0 -1
  229. package/dist/assets/collapsible-Z0IjDAMO.js +0 -1
  230. package/dist/assets/context-menu-CKlB6wxo.js +0 -1
  231. package/dist/assets/diagram-CzY6n_4N.js +0 -1
  232. package/dist/assets/dialog-BeFBA6ja.js +0 -1
  233. package/dist/assets/dropdown-menu-BblI9sN2.js +0 -1
  234. package/dist/assets/githubAuthQueries-DqregESf.js +0 -1
  235. package/dist/assets/historyImportQueries-D00KjUT2.js +0 -1
  236. package/dist/assets/input-Cf16qJ6g.js +0 -1
  237. package/dist/assets/insertionBoundaries-BSDUOMHN.js +0 -1
  238. package/dist/assets/kbd-CamdaxHJ.js +0 -1
  239. package/dist/assets/main-CHO9s_kb.js +0 -2
  240. package/dist/assets/main-DAbyAg5_.js +0 -169
  241. package/dist/assets/mcpQueries-1WNtiFYh.js +0 -1
  242. package/dist/assets/miniChat-BZMkNMht.js +0 -2
  243. package/dist/assets/mobile-C9XDDOHq.js +0 -2
  244. package/dist/assets/mobileConnections-DjT1L-_m.js +0 -2
  245. package/dist/assets/multirun-D34EMeEj.js +0 -3
  246. package/dist/assets/openRemoteProjectSession-Bm_nafYw.js +0 -1
  247. package/dist/assets/pluginPresentation-DexqrdQ0.js +0 -2
  248. package/dist/assets/pwa-BaWpUiOR.js +0 -2
  249. package/dist/assets/queue-abort-optimistic-UwpgXn4g.js +0 -1
  250. package/dist/assets/remoteProjectQueries-C8382jM8.js +0 -1
  251. package/dist/assets/renderElectronMiniChatApp-CqrlQAsJ.js +0 -2
  252. package/dist/assets/renderMobileApp-CwcwGOox.js +0 -17
  253. package/dist/assets/runtime-file-resource-Bc_ss-sW.js +0 -2
  254. package/dist/assets/runtimeEndpointReset-DUD-TCLY.js +0 -4
  255. package/dist/assets/select-vZCgcnYG.js +0 -1
  256. package/dist/assets/session-startup-barrier-DT-hIBRf.js +0 -1
  257. package/dist/assets/sessionOwnership-CEkPFbS4.js +0 -2
  258. package/dist/assets/shortcuts-WkN3Gh8v.js +0 -1
  259. package/dist/assets/sortable-tabs-strip-DmtfYPz0.js +0 -1
  260. package/dist/assets/speechSettingsQueries-DQnPLEf3.js +0 -1
  261. package/dist/assets/switch-CNmsFYfY.js +0 -1
  262. package/dist/assets/textarea-ZiXxEOHK.js +0 -1
  263. package/dist/assets/tooltip-CpTbxEOE.js +0 -1
  264. package/dist/assets/truncated-path-CcmWjgCQ.js +0 -1
  265. package/dist/assets/ui-DrAJTWV6.js +0 -13
  266. package/dist/assets/useDesktopWindowControlsLayout-i6qqpMbd.js +0 -1
  267. package/dist/assets/useMcpConfigStore-BUSvv0Bl.js +0 -1
  268. package/dist/assets/useMobileSwipeActions-XoxrtaUo.js +0 -1
  269. package/dist/assets/useMobileTranscriptSyncHint-86i3xO8J.js +0 -10
  270. package/dist/assets/useModelLists-Ca085-di.js +0 -1
  271. package/dist/assets/useOpenCodeReadiness-CsNcdsCJ.js +0 -1
  272. package/dist/assets/usePluginsStore-ZHQOW-R5.js +0 -1
  273. package/dist/assets/useProjectGitActions-1QRsD7Rb.js +0 -1
  274. package/dist/assets/useQuotaStore-CSn2pk3T.js +0 -1
  275. package/dist/assets/worktreeManager-QmahFqHc.js +0 -1
  276. package/dist/assets/yuriEvents-BFrD5fMU.js +0 -5
@@ -1,3 +0,0 @@
1
- import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{R as n,f as r,s as i}from"./platform-CiUKDeXd.js";import{o as a}from"./vendor-zustand-CTekDqaS.js";import{ot as o,st as s}from"./vendor-base-ui-wXsskyKm.js";import{Lt as c,n as l}from"./client-B_907PBv.js";import{n as u}from"./vendor-react-BkccXcWz.js";import{o as d,s as f,u as p}from"./vendor-tanstack-react-query-DIb_ItL-.js";import{l as m}from"./yuriEvents-BFrD5fMU.js";import{E as h,O as g}from"./runtime-file-resource-Bc_ss-sW.js";import{h as _,r as v,u as y}from"./vendor-reactuses-core-DjKFMfz7.js";import{n as b,r as x,t as S}from"./useUIStore-C3ewjGgP.js";import{r as C}from"./vendor-sonner-DX3nfJx4.js";import{i as w,o as T}from"./session-startup-barrier-DT-hIBRf.js";import{n as E}from"./Icon-DmykXZL1.js";import{Gr as D,H as O,Ia as k,Ja as A,Na as j,U as M,Zn as N,dn as P,f as F,it as I,ln as ee,or as te,rr as L}from"./ui-DrAJTWV6.js";import{t as R}from"./i18n-DXc6czdR.js";import{n as z}from"./react-CPBNl-S9.js";import{n as B}from"./useEffectiveDirectory-BxolHzt4.js";import{n as V}from"./useProjectRuntimeAPIs-BItoD9Bt.js";import{a as ne,o as re,r as H,s as ie}from"./useProjectGitStore-C1K6WpCe.js";import{t as ae}from"./AgentAvatar-CHCjMxCF.js";import{i as U,n as W,r as G,t as oe}from"./card-DmysoUAV.js";import{g as K,h as q,m as J,t as se,v as ce}from"./ChatContainer-wP6o_O4K.js";import{f as le,g as ue,h as Y,m as X,p as de}from"./ToolOutputDialog-DqCCsC-N.js";var Z=u(),Q=t(s(),1),$=o(),fe=class extends Q.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t})}handleReset=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})};render(){return this.state.hasError?(0,$.jsx)(`div`,{className:`flex items-center justify-center min-h-screen p-4`,children:(0,$.jsxs)(oe,{className:`w-full max-w-md`,children:[(0,$.jsx)(G,{className:`text-center`,children:(0,$.jsxs)(U,{className:`flex items-center justify-center gap-2 text-destructive`,children:[(0,$.jsx)(E,{name:`chat-3`,className:`h-5 w-5`}),this.props.texts.title]})}),(0,$.jsxs)(W,{className:`space-y-4`,children:[(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground text-center`,children:this.props.texts.description}),this.props.sessionId&&(0,$.jsxs)(`div`,{className:`text-xs text-muted-foreground text-center`,children:[this.props.texts.sessionLabel,`: `,this.props.sessionId]}),this.state.error&&(0,$.jsxs)(`details`,{className:`text-xs font-mono bg-muted p-3 rounded`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer hover:bg-interactive-hover/80`,children:this.props.texts.detailsSummary}),(0,$.jsx)(`pre`,{className:`mt-2 max-h-48 overflow-auto`,children:this.state.error.toString()})]}),(0,$.jsx)(`div`,{className:`flex gap-2`,children:(0,$.jsxs)(w,{onClick:this.handleReset,variant:`outline`,className:`flex-1`,children:[(0,$.jsx)(E,{name:`restart`,className:`h-4 w-4 mr-2`}),this.props.texts.resetAction]})}),(0,$.jsx)(`div`,{className:`text-xs text-muted-foreground text-center`,children:this.props.texts.persistentHint})]})]})}):this.props.children}};function pe(e){let t=(0,Z.c)(22),{t:n}=R(),r;t[0]===n?r=t[1]:(r=n(`chat.errorBoundary.title`),t[0]=n,t[1]=r);let i;t[2]===n?i=t[3]:(i=n(`chat.errorBoundary.description`),t[2]=n,t[3]=i);let a;t[4]===n?a=t[5]:(a=n(`chat.errorBoundary.sessionLabel`),t[4]=n,t[5]=a);let o;t[6]===n?o=t[7]:(o=n(`chat.errorBoundary.detailsSummary`),t[6]=n,t[7]=o);let s;t[8]===n?s=t[9]:(s=n(`chat.errorBoundary.resetAction`),t[8]=n,t[9]=s);let c;t[10]===n?c=t[11]:(c=n(`chat.errorBoundary.persistentHint`),t[10]=n,t[11]=c);let l;t[12]!==r||t[13]!==i||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c?(l={title:r,description:i,sessionLabel:a,detailsSummary:o,resetAction:s,persistentHint:c},t[12]=r,t[13]=i,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l):l=t[18];let u;return t[19]!==e||t[20]!==l?(u=(0,$.jsx)(fe,{...e,texts:l}),t[19]=e,t[20]=l,t[21]=u):u=t[21],u}var me=1440,he=e=>{let t=(0,Z.c)(10),{isMobile:n,isVSCode:r,directory:i}=e,a=y(`(min-width: ${me}px)`),o;t[0]===i?o=t[1]:(o=i?b(i):``,t[0]=i,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c=e=>{let t=S(e,s);return t?.isOpen?(t.tabs.find(e=>e.id===t.activeTabId)??t.tabs[t.tabs.length-1]??null)?.mode!==`chat`:!1},t[2]=s,t[3]=c);let l=x(c),u=x(ge),d;t[4]===s?d=t[5]:(d=e=>e.isRightSidebarOpen&&!!S(e,s)?.isOpen,t[4]=s,t[5]=d);let f=x(d),p=!n&&!r&&!l&&!f,m=p&&a,h=u&&m,g;return t[6]!==m||t[7]!==p||t[8]!==h?(g={visible:h,fits:m,layoutAllows:p},t[6]=m,t[7]=p,t[8]=h,t[9]=g):g=t[9],g};function ge(e){return e.workStatusPanelEnabled}var _e=async({directory:e,sessionID:t,signal:n})=>{let r=await l.getScopedSdkClient(e).session.list({directory:e,parentID:t,limit:200},{signal:n});if(!Array.isArray(r?.data))throw Error(`session.list children returned no data`);return r.data.flatMap(e=>{if(!e?.id)return[];let t=typeof e.title==`string`?e.title:void 0;return[{id:e.id,title:t}]})},ve=(e,t,n={})=>{let r=n.entry,i=n.listChildren??(r?async({directory:e,sessionID:t,signal:n})=>{let i=await r.sdk().session.list({directory:e,parentID:t,limit:200},{signal:n});if(r.sdk(),!Array.isArray(i?.data))throw Error(`session.list children returned no data`);return i.data.map(e=>({id:e.id,title:e.title}))}:_e);return d({queryKey:[...m.workStatusChildren.list(e,t,n.transport),...r?.queryScope??[]],enabled:!!(e&&t),queryFn:({signal:n})=>i({directory:e,sessionID:t,signal:n}),staleTime:5e3,refetchInterval:1e4})},ye=[],be=(...e)=>{let t=K(...e);return t?t.charAt(0).toUpperCase()+t.slice(1):``},xe=(...e)=>{for(let t of e){if(!t||typeof t!=`object`)continue;let e=t.description;if(typeof e!=`string`)continue;let n=e.trim();if(n)return n}return``},Se=e=>e===`pending`||e===`running`,Ce=e=>{let t=[],n=new Set;for(let r of e.messageOrder){let i=e.partsByMessageID[r];if(i)for(let e of i){if(!e?.id||n.has(e.id))continue;if(e.type===`tool`&&J(e.tool)){n.add(e.id);let r=e.state;t.push({id:e.id,sessionID:q(e),label:be(r?.input,r?.metadata,e.metadata),description:xe(r?.input,e.metadata,r?.metadata),running:Se(r?.status)});continue}if(e.type!==`subtask`)continue;let r=e,i=typeof r.taskSessionID==`string`?r.taskSessionID.trim():``,a=typeof r.agent==`string`?r.agent.trim():``,o=typeof r.description==`string`?r.description.trim():``;n.add(e.id),t.push({id:e.id,sessionID:i||void 0,label:a?a.charAt(0).toUpperCase()+a.slice(1):``,description:o,running:Se(r.status)})}}return t.length===0?ye:t},we=(e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(!r||!i||r.id!==i.id||r.sessionID!==i.sessionID||r.label!==i.label||r.description!==i.description||r.running!==i.running)return!1}return!0},Te=e=>e.childTitle||e.description||e.agent,Ee=e=>({key:e.key,sessionID:e.sessionID,seed:e.key,label:Te(e),phase:e.working?`working`:`done`}),De=(e,t,n)=>{let r=new Map(t.map(e=>[e.id,e])),i=new Set,a=[],o=new Map,s=e=>{let t=e.sessionID;if(!t){a.push(e);return}i.add(t);let n=o.get(t);if(n===void 0){o.set(t,a.length),a.push({...e,key:t,sessionID:t});return}let r=a[n];r&&(a[n]={...r,description:r.description||e.description,agent:r.agent||e.agent,childTitle:e.childTitle||r.childTitle,working:r.working||e.working})};for(let t of e){let e=t.sessionID?r.get(t.sessionID):void 0;s({key:t.id,sessionID:t.sessionID,description:t.description,agent:t.label,childTitle:e?.title?.trim()||``,working:t.running||!!e?.busy||!!(t.sessionID&&n?.has(t.sessionID))})}for(let e of t)i.has(e.id)||s({key:e.id,sessionID:e.id,description:``,agent:``,childTitle:e.title?.trim()||``,working:e.busy});let c=a.map(Ee),l=c.filter(e=>e.phase===`working`),u=c.filter(e=>e.phase===`done`);return l.length===0?u:u.length===0?l:[...l,...u]},Oe=new Set,ke=e=>{if(!e)return``;let t=[];for(let n of Object.keys(e)){let r=e[n]?.type;(r===`busy`||r===`retry`)&&t.push(n)}return t.sort(),t.join(`
2
- `)},Ae=(e,t)=>{let n=(0,Z.c)(4),r;n[0]===t?r=n[1]:(r=e=>t?ke(e.session_status):``,n[0]=t,n[1]=r);let i=a(e,r),o;return n[2]===i?o=n[3]:(o=i?new Set(i.split(`
3
- `)):Oe,n[2]=i,n[3]=o),o},je=(e,t)=>{let n=[];for(let r of e)!r.id||r.parentID!==t||n.push(`${r.id}\u0001${r.title??``}`);return n.join(``)},Me=e=>e?e.split(``).map(e=>{let t=e.indexOf(``);return{id:e.slice(0,t),title:e.slice(t+1)}}):[],Ne=(e,t,n)=>{let r=new Map;for(let t of e)t.id&&r.set(t.id,{id:t.id,title:t.title,busy:n.has(t.id)});for(let e of t??[]){if(!e.id)continue;let t=r.get(e.id),i=e.title?.trim()||t?.title;r.set(e.id,{id:e.id,title:i,busy:n.has(e.id)})}return[...r.values()]},Pe=(e,t)=>{let n=(0,Z.c)(18),r=!!(e&&t),i;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={bootstrap:!1},n[0]=i):i=n[0];let o=O(t||void 0,i),s;n[1]!==r||n[2]!==e?(s=t=>r&&e?je(t.session,e):``,n[1]=r,n[2]=e,n[3]=s):s=n[3];let l=a(o,s),u=t??``,d=e??``,p;n[4]!==u||n[5]!==d?(p=ve(u,d),n[4]=u,n[5]=d,n[6]=p):p=n[6];let m;n[7]!==r||n[8]!==p?(m={...p,enabled:r},n[7]=r,n[8]=p,n[9]=m):m=n[9];let h=f(m),g;n[10]===r?g=n[11]:(g={enabled:r},n[10]=r,n[11]=g);let _=c(e??``,t??``,o,Ce,we,g),v=Ae(o,r),y;bb0:{if(!e){let e;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],n[12]=e):e=n[12],y=e;break bb0}let t;n[13]!==v||n[14]!==l||n[15]!==h.data||n[16]!==_?(t=De(_,Ne(Me(l),h.data,v),v),n[13]=v,n[14]=l,n[15]=h.data,n[16]=_,n[17]=t):t=n[17],y=t}return y},Fe=[],Ie=e=>{let t=(0,Z.c)(11),{sessionId:n,directory:r}=e,i;t[0]===n?i=t[1]:(i=e=>(n?e.todo[n]:void 0)??Fe,t[0]=n,t[1]=i);let a=M(i,r??void 0),o;t[2]===n?o=t[3]:(o=e=>{let t=n?e.session_status?.[n]?.type:void 0;return t===`busy`||t===`retry`},t[2]=n,t[3]=o);let s=M(o,r??void 0),c;t[4]===n?c=t[5]:(c=e=>n?e.sessions[n]?.todos:void 0,t[4]=n,t[5]=c);let l=P(c),u=I(n??``,r??void 0)??(a.length>0?a:l??Fe),d;t[6]===u?d=t[7]:(d=u.filter(ze),t[6]=u,t[7]=d);let f=d,p;return t[8]!==s||t[9]!==f?(p=(0,$.jsx)(Re,{todos:f,isWorking:s}),t[8]=s,t[9]=f,t[10]=p):p=t[10],p},Le=e=>{let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({remote:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=r?(0,$.jsx)(Re,{...r}):(0,$.jsx)(Ie,{...n}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i},Re=e=>{let t=(0,Z.c)(52),{todos:n,isWorking:r}=e,{t:i}=R(),a=Q.useId(),[o,s]=Q.useState(!0),[c,l]=Q.useState(!1),u,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{l(!0)},d=[],t[0]=u,t[1]=d):(u=t[0],d=t[1]),Q.useEffect(u,d);let f;t[2]===n?f=t[3]:(f=n.filter(Be),t[2]=n,t[3]=f);let p=f.length,m;t[4]===n?m=t[5]:(m=n.filter(ue),t[4]=n,t[5]=m);let h=m.length,g=Q.useRef(null),_=n.findIndex(Ve),v,y;if(t[6]===_?(v=t[7],y=t[8]):(v=()=>{_<0||g.current?.children[_]?.scrollIntoView?.({block:`nearest`})},y=[_],t[6]=_,t[7]=v,t[8]=y),Q.useEffect(v,y),n.length===0)return null;let b=h===n.length,x=r&&!b,S;t[9]===i?S=t[10]:(S=i(`chat.workStatus.todos.title`),t[9]=i,t[10]=S);let C;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>s(He),t[11]=C):C=t[11];let E=b?`done`:`open`,D=c&&`yuri-todo-icon-pop`,O;t[12]===D?O=t[13]:(O=T(`inline-flex shrink-0`,D),t[12]=D,t[13]=O);let k;t[14]!==b||t[15]!==p||t[16]!==x||t[17]!==n.length?(k=b?(0,$.jsx)(le,{}):(0,$.jsx)(Y,{done:p,total:n.length,spinning:x}),t[14]=b,t[15]=p,t[16]=x,t[17]=n.length,t[18]=k):k=t[18];let A;t[19]!==O||t[20]!==k||t[21]!==E?(A=(0,$.jsx)(`span`,{className:O,children:k},E),t[19]=O,t[20]=k,t[21]=E,t[22]=A):A=t[22];let j;t[23]===i?j=t[24]:(j=i(`chat.workStatus.todos.title`),t[23]=i,t[24]=j);let M;t[25]===j?M=t[26]:(M=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-foreground`,children:j}),t[25]=j,t[26]=M);let N;t[27]!==p||t[28]!==n.length?(N=(0,$.jsx)(de,{done:p,total:n.length,className:`text-[0.92em]`}),t[27]=p,t[28]=n.length,t[29]=N):N=t[29];let P;t[30]!==o||t[31]!==a||t[32]!==A||t[33]!==M||t[34]!==N?(P=(0,$.jsxs)(w,{type:`button`,variant:`ghost`,size:`sm`,className:`yuri-work-status-action flex w-full min-w-0 items-center justify-start gap-2 px-2 text-left text-[1em] font-normal leading-5 tracking-normal text-muted-foreground [&_svg]:size-3.5`,"aria-expanded":o,"aria-controls":a,onClick:C,children:[A,M,N]}),t[30]=o,t[31]=a,t[32]=A,t[33]=M,t[34]=N,t[35]=P):P=t[35];let F=!o,I=!o,ee=o?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`,te;t[36]===ee?te=t[37]:(te=T(`grid min-w-0 transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none`,ee),t[36]=ee,t[37]=te);let L;t[38]!==r||t[39]!==c||t[40]!==n?(L=(0,$.jsx)(X,{id:void 0,todos:n,isWorking:r,animate:c,listRef:g,rowClassName:`px-2 gap-2 [&_svg]:size-3.5 [&>span:first-child]:w-3.5`,className:`max-h-[15em] min-h-0 overflow-y-auto pt-[0.125em]`}),t[38]=r,t[39]=c,t[40]=n,t[41]=L):L=t[41];let z;t[42]!==a||t[43]!==F||t[44]!==I||t[45]!==te||t[46]!==L?(z=(0,$.jsx)(`div`,{id:a,"aria-hidden":F,inert:I,className:te,children:L}),t[42]=a,t[43]=F,t[44]=I,t[45]=te,t[46]=L,t[47]=z):z=t[47];let B;return t[48]!==P||t[49]!==z||t[50]!==S?(B=(0,$.jsxs)(`div`,{role:`group`,"aria-label":S,className:`mt-2 flex min-w-0 flex-col text-[13px]`,children:[P,z]}),t[48]=P,t[49]=z,t[50]=S,t[51]=B):B=t[51],B};function ze(e){return e.content.length>0}function Be(e){return e.status===`completed`}function Ve(e){return e.status===`in_progress`}function He(e){return!e}var Ue=Q.memo(function(e){let t=(0,Z.c)(19),{host:n,entry:r,input:i}=e,a=Q.useRef(null),o=Q.useRef(null),s;t[0]!==r||t[1]!==n||t[2]!==i?(s=e=>n.mountWorkStatus(r,e,i),t[0]=r,t[1]=n,t[2]=i,t[3]=s):s=t[3];let c=v(s),l;t[4]===c?l=t[5]:(l=()=>{if(!a.current)return;let e=c(a.current);return o.current=e,()=>{o.current=null,e.dispose()}},t[4]=c,t[5]=l);let u;t[6]!==r.generation||t[7]!==r.key||t[8]!==n||t[9]!==i.directory||t[10]!==i.scope||t[11]!==i.sessionId||t[12]!==c?(u=[n,r.key,r.generation,i.sessionId,i.directory,i.scope,c],t[6]=r.generation,t[7]=r.key,t[8]=n,t[9]=i.directory,t[10]=i.scope,t[11]=i.sessionId,t[12]=c,t[13]=u):u=t[13],Q.useLayoutEffect(l,u);let d,f;t[14]===i?(d=t[15],f=t[16]):(d=()=>{o.current?.update(i)},f=[i],t[14]=i,t[15]=d,t[16]=f),Q.useLayoutEffect(d,f);let p;return t[17]===r.key?p=t[18]:(p=(0,$.jsx)(`div`,{ref:a,"data-gui-plugin-mount":`work-status`,"data-gui-work-status":r.key,className:`min-w-0 empty:hidden`}),t[17]=r.key,t[18]=p),p}),We=Q.memo(function(e){let t=(0,Z.c)(9),{host:n,input:r}=e,i=Q.useSyncExternalStore(n.workStatus.subscribe,n.workStatus.getSnapshot,n.workStatus.getSnapshot),a;if(t[0]!==i||t[1]!==n||t[2]!==r){let e;t[4]!==n||t[5]!==r?(e=e=>(0,$.jsx)(Ue,{host:n,entry:e,input:r},e.key),t[4]=n,t[5]=r,t[6]=e):e=t[6],a=i.map(e),t[0]=i,t[1]=n,t[2]=r,t[3]=a}else a=t[3];let o;return t[7]===a?o=t[8]:(o=(0,$.jsx)($.Fragment,{children:a}),t[7]=a,t[8]=o),o}),Ge=Q.memo(function(e){let t=(0,Z.c)(3),{input:n}=e,r=Q.useContext(z),i;return t[0]!==r||t[1]!==n?(i=r?(0,$.jsx)(We,{host:r,input:n}):null,t[0]=r,t[1]=n,t[2]=i):i=t[2],i}),Ke=[],qe=(e,t)=>{let n=r(e),i=r(t);return!!(n&&i&&(n===i||n.startsWith(`${i}/`)))};function Je(e){let t=(0,Z.c)(103),n=h();if(!n?.entry.location.hostId)throw Error(`Remote work status requires Host scope`);let{entry:i,registry:a}=n,{directory:o,hubId:s}=i.location,c=i.location.hostId,l;t[0]!==i||t[1]!==a?(l=L(a,i),t[0]=i,t[1]=a,t[2]=l):l=t[2];let u=l,m,_;t[3]===u?(m=t[4],_=t[5]):(m=()=>u.retain(),_=[u],t[3]=u,t[4]=m,t[5]=_),Q.useEffect(m,_);let[v,y]=Q.useState(),b;t[6]!==u.state||t[7]!==e?(b=()=>e?u.state.observe(e,y):void 0,t[6]=u.state,t[7]=e,t[8]=b):b=t[8];let x;t[9]!==u||t[10]!==e?(x=[u,e],t[9]=u,t[10]=e,t[11]=x):x=t[11],Q.useEffect(b,x);let S;t[12]!==u.state||t[13]!==e?(S=t=>e?u.state.repository.subscribe(u.state.scope(e),t):et,t[12]=u.state,t[13]=e,t[14]=S):S=t[14];let C=S,w;t[15]!==u.state||t[16]!==e?(w=()=>e?u.state.repository.getTranscript(u.state.scope(e)):null,t[15]=u.state,t[16]=e,t[17]=w):w=t[17];let T=w,E=Q.useSyncExternalStore(C,T,T),D=u.state.subscribeSnapshot,O;t[18]!==u.state||t[19]!==e?(O=()=>u.state.getSnapshot(e??``),t[18]=u.state,t[19]=e,t[20]=O):O=t[20];let A=O,M=Q.useSyncExternalStore(D,A,A),P=j($e),F=k(Qe),I;t[21]===i?I=t[22]:(I=N(i),t[21]=i,t[22]=I);let R=I,z=re(Ze),B;if(t[23]!==o||t[24]!==i.queryScope||t[25]!==R){let e;t[27]!==o||t[28]!==R?(e=()=>R.listGitWorktrees(o),t[27]=o,t[28]=R,t[29]=e):e=t[29],B=d({queryKey:[...i.queryScope,`work-status`,`worktrees`],queryFn:e,staleTime:3e4}),t[23]=o,t[24]=i.queryScope,t[25]=R,t[26]=B}else B=t[26];let V=B,ne;t[30]===i?ne=t[31]:(ne=te(i),t[30]=i,t[31]=ne);let H=ne,ie=e??``,ae;t[32]!==o||t[33]!==i||t[34]!==ie?(ae=ve(o,ie,{entry:i}),t[32]=o,t[33]=i,t[34]=ie,t[35]=ae):ae=t[35];let U=ae,W=f(V),G=f(H),oe=!!e,K;t[36]!==U||t[37]!==oe?(K={...U,enabled:oe},t[36]=U,t[37]=oe,t[38]=K):K=t[38];let q=f(K),J=p(),se;t[39]!==U||t[40]!==J||t[41]!==o||t[42]!==z||t[43]!==R||t[44]!==H||t[45]!==V?(se=async()=>{await Promise.all([J.fetchQuery({...V,staleTime:0}),J.fetchQuery({...H,staleTime:0}),J.fetchQuery({...U,staleTime:0}),z(o,R,{silent:!0})]),y(void 0)},t[39]=U,t[40]=J,t[41]=o,t[42]=z,t[43]=R,t[44]=H,t[45]=V,t[46]=se):se=t[46],g(e,se,y);let ce,le;t[47]!==U.queryKey||t[48]!==J||t[49]!==o||t[50]!==z||t[51]!==R||t[52]!==c||t[53]!==a||t[54]!==H.queryKey||t[55]!==V.queryKey?(ce=()=>a.subscribeEvents(c,e=>{if(e.directory&&r(e.directory)!==r(o))return;let t=e.payload?.type??``;t.startsWith(`session.`)&&!t.startsWith(`session.message.`)&&!t.startsWith(`session.tool.`)&&(/status|execution|retry|idle/.test(t)&&J.invalidateQueries({queryKey:H.queryKey}),/created|updated|renamed|deleted/.test(t)&&J.invalidateQueries({queryKey:U.queryKey})),t.startsWith(`worktree.`)||t===`vcs.branch.updated`?(J.invalidateQueries({queryKey:V.queryKey}),z(o,R,{silent:!0})):/^session\.(execution\.(succeeded|failed|interrupted)|idle)$/.test(t)&&z(o,R,{silent:!0})}),le=[a,c,o,J,H.queryKey,U.queryKey,V.queryKey,z,R],t[47]=U.queryKey,t[48]=J,t[49]=o,t[50]=z,t[51]=R,t[52]=c,t[53]=a,t[54]=H.queryKey,t[55]=V.queryKey,t[56]=ce,t[57]=le):(ce=t[56],le=t[57]),Q.useEffect(ce,le);let ue;if(t[58]!==o||t[59]!==c||t[60]!==s||t[61]!==P||t[62]!==F||t[63]!==W.data){bb0:{let e;t[65]!==c||t[66]!==s?(e=e=>e.hostId===c&&e.hubId===s,t[65]=c,t[66]=s,t[67]=e):e=t[67];let n=P.filter(e),i=F&&F.location.hostId===c&&F.location.hubId===s?n.find(e=>e.id===F.projectId):void 0;if(i){ue=i;break bb0}let a;t[68]!==o||t[69]!==W.data?(a=e=>qe(o,e.path)||W.data?.some(t=>r(t.path)===r(e.path)),t[68]=o,t[69]=W.data,t[70]=a):a=t[70],ue=n.filter(a).sort(Xe)[0]}t[58]=o,t[59]=c,t[60]=s,t[61]=P,t[62]=F,t[63]=W.data,t[64]=ue}else ue=t[64];let Y=ue,X;t[71]!==o||t[72]!==Y?.path||t[73]!==W.data?(X=()=>{let e=W.data?.filter(e=>qe(o,e.path)).sort(Ye)[0];if(e)return{...e,projectDirectory:Y?.path??o,label:e.name,worktreeStatus:`ready`}},t[71]=o,t[72]=Y?.path,t[73]=W.data,t[74]=X):X=t[74],Y?.path;let de;t[75]===X?de=t[76]:(de=X(),t[75]=X,t[76]=de);let $=de,fe;if(t[77]!==q.data||t[78]!==G.data||t[79]!==E){let e;t[81]===G.data?e=t[82]:(e=G.data??{},t[81]=G.data,t[82]=e);let n=new Set(Object.keys(e));fe=De(E?Ce(E):[],(q.data??[]).map(e=>({...e,busy:n.has(e.id)})),n),t[77]=q.data,t[78]=G.data,t[79]=E,t[80]=fe}else fe=t[80];let pe=fe,me;t[83]!==M.session?.revert?.messageID||t[84]!==M.status?.type||t[85]!==E?(me=()=>({todos:(E?ee(E,M.session?.revert?.messageID):void 0)??Ke,isWorking:M.status?.type===`busy`||M.status?.type===`retry`}),t[83]=M.session?.revert?.messageID,t[84]=M.status?.type,t[85]=E,t[86]=me):me=t[86],M.session?.revert?.messageID;let he;t[87]===me?he=t[88]:(he=me(),t[87]=me,t[88]=he);let ge=he,_e;t[89]!==q||t[90]!==u.state||t[91]!==e||t[92]!==G||t[93]!==W?(_e=async()=>{y(void 0),await Promise.allSettled([W.refetch(),G.refetch(),q.refetch(),e?u.state.refreshMetadata(e):Promise.resolve()])},t[89]=q,t[90]=u.state,t[91]=e,t[92]=G,t[93]=W,t[94]=_e):_e=t[94];let ye=_e,be=v??W.error??G.error??q.error,xe;return t[95]!==i.key||t[96]!==Y||t[97]!==ge||t[98]!==ye||t[99]!==pe||t[100]!==be||t[101]!==$?(xe={project:Y,worktree:$,subagents:pe,remoteTodos:ge,stateKey:i.key,error:be,retry:ye},t[95]=i.key,t[96]=Y,t[97]=ge,t[98]=ye,t[99]=pe,t[100]=be,t[101]=$,t[102]=xe):xe=t[102],xe}function Ye(e,t){return t.path.length-e.path.length}function Xe(e,t){return t.path.length-e.path.length}function Ze(e){return e.fetchStatus}function Qe(e){return e.remoteSession}function $e(e){return e.projects}function et(){}var tt=`flex w-full min-w-0 items-center justify-start gap-2 text-left text-[13px] font-normal leading-5 tracking-normal text-muted-foreground`,nt=`size-3.5 shrink-0`,rt=`yuri-work-status-action pointer-events-none shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover/copy:pointer-events-auto group-hover/copy:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100`,it=e=>e.split(/[\\/]/).filter(Boolean).pop()||e,at=e=>{let t=(0,Z.c)(3),n=h(),r;return t[0]!==n||t[1]!==e?(r=n?.entry.location.hostId?(0,$.jsx)(ot,{...e},n.entry.key):(0,$.jsx)(st,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r},ot=Q.memo(function(e){let t=(0,Z.c)(9),{t:n}=R(),r=Je(e.sessionId),i;t[0]!==r||t[1]!==e?(i=(0,$.jsx)(ct,{...e,...r}),t[0]=r,t[1]=e,t[2]=i):i=t[2];let a;t[3]!==r||t[4]!==n?(a=r.error?(0,$.jsxs)(`div`,{role:`status`,className:`px-2 text-xs text-muted-foreground`,title:String(r.error),children:[n(`common.unavailable`),(0,$.jsx)(w,{variant:`ghost`,size:`xs`,onClick:()=>void r.retry(),children:n(`chat.history.retry`)})]}):null,t[3]=r,t[4]=n,t[5]=a):a=t[5];let o;return t[6]!==i||t[7]!==a?(o=(0,$.jsxs)($.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=o):o=t[8],o}),st=e=>{let t=(0,Z.c)(16),{sessionId:n,directory:i}=e,a=j(lt),o=F(ut),s;t[0]===n?s=t[1]:(s=e=>n?e.worktreeMetadata.get(n):void 0,t[0]=n,t[1]=s);let c=F(s),l,u;if(t[2]!==o||t[3]!==i||t[4]!==a||t[5]!==c){let e=r(i),n=t=>{let n=r(t);return!!(e&&n&&(e===n||e.startsWith(`${n}/`)))},s=c&&n(c.path)?c:void 0;l=D(a.filter(dt),o,s?.projectDirectory||i);let d=l?o.get(l.path):void 0;u=s??d?.filter(e=>n(e.path)).sort(ft)[0],t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=u}else l=t[6],u=t[7];let d=u,f;t[8]!==l||t[9]!==d?(f={project:l,worktree:d},t[8]=l,t[9]=d,t[10]=f):f=t[10];let{project:p,worktree:m}=f,h=Pe(n,i),g=p??void 0,_;return t[11]!==e||t[12]!==h||t[13]!==g||t[14]!==m?(_=(0,$.jsx)(ct,{...e,project:g,worktree:m,subagents:h}),t[11]=e,t[12]=h,t[13]=g,t[14]=m,t[15]=_):_=t[15],_},ct=({sessionId:e,directory:t,active:n=!0,placement:i=`inline`,project:a,worktree:o,subagents:s,remoteTodos:c,stateKey:l})=>{let{t:u}=R(),{git:d}=V(),f=h(),p=f?.entry.location.hostId?f.entry:void 0,m=re(e=>e.ensureStatus),g=ne(t),y=H(t),b=ie(t),S=a?.path||o?.projectDirectory||t,T=a?.label?.trim()||(S?it(S):null),D=o&&r(o.path)!==r(S)?o.name?.trim()||it(o.path):null,O=[{phase:`working`,labelKey:`chat.workStatus.subagent.workingCount`,items:s.filter(e=>e.phase===`working`)},{phase:`done`,labelKey:`chat.workStatus.subagent.doneCount`,items:s.filter(e=>e.phase===`done`)}],k=O[0].items,j=(k.length>0?k:s).slice(0,3),[M,N]=Q.useState(!1),P=Q.useId(),F=x(e=>e.setRightSidebarOpen),I=x(e=>e.openContextPanel),ee=x(e=>e.openContextPanelTab),te=x(e=>e.setRightSidebarTab),[L,z]=Q.useState(null),[,B]=_(()=>z(null),1500,{immediate:!1}),U=v(async(e,t)=>{try{let n=await A(t);if(!n.ok)throw Error(n.error);z(e),B()}catch{C.error(u(`gitView.toast.copyFailed`))}});Q.useEffect(()=>{!t||!d||m(t,d)},[t,m,d]);let W=g?.current||null,G=o?.worktreeStatus===`pending`?0:g?.files.length??0,{additions:oe,deletions:K}=Q.useMemo(()=>{let e=0,t=0;for(let n of Object.values(g?.diffStats??{}))e+=n?.insertions??0,t+=n?.deletions??0;return{additions:e,deletions:t}},[g?.diffStats]),q=o?.worktreeStatus===`pending`,J=!q&&!!g&&b!==!1,se=q?`unknown`:b===!1?`not-repository`:J?`ready`:`unknown`,ce=J&&!!g?.diffStats,le=Q.useMemo(()=>({state:se,loading:y,branch:J?W:null,changedFiles:J?G:null,additions:ce?oe:null,deletions:ce?K:null}),[se,y,J,W,G,ce,oe,K]),ue=Q.useMemo(()=>({sessionId:e,directory:t,placement:i,scope:p,project:S&&T?{id:a?.id,name:T,directory:S}:null,worktree:o?{name:o.name?.trim()||it(o.path),directory:o.path}:null,git:le}),[e,t,i,p,S,T,a?.id,o,le]),Y=W?`branch:${W}`:``,X=o?.path?`worktree:${o.path}`:``,de=!!(Y&&L===Y),Z=!!(X&&L===X),fe=v(()=>{W&&U(Y,W)}),pe=v(()=>{let e=o?.path;e&&U(X,e)}),me=v(()=>{t&&(I(l??t),te(`git`),F(!0))});return(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[T?(0,$.jsxs)(`div`,{className:`${tt} h-8 px-2`,title:`${u(`chat.workStatus.section.project`)}: ${S}`,children:[(0,$.jsx)(E,{name:`folder`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:T})]}):null,W?(0,$.jsxs)(`div`,{className:`${tt} group/copy h-8 px-2`,title:`${u(`gitView.branch.currentBranchTooltip`)}: ${W}`,children:[(0,$.jsx)(E,{name:`git-branch`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:W}),(0,$.jsx)(w,{variant:`ghost`,size:`xs`,className:rt,"aria-label":u(`chat.workStatus.action.copyBranch`),title:u(de?`contextSidebar.actions.copied`:`chat.workStatus.action.copyBranch`),onClick:fe,children:(0,$.jsx)(E,{name:de?`check`:`file-copy`,className:nt})})]}):null,D?(0,$.jsxs)(`div`,{className:`${tt} group/copy h-8 px-2`,title:`${u(`sessions.sidebar.sessionDialogs.worktree.label`)}: ${o?.path}`,children:[(0,$.jsx)(E,{name:`node-tree`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:D}),(0,$.jsx)(w,{variant:`ghost`,size:`xs`,className:rt,"aria-label":u(`agentManager.detail.actions.copyWorktreePath`),title:u(Z?`contextSidebar.actions.copied`:`agentManager.detail.actions.copyWorktreePath`),onClick:pe,children:(0,$.jsx)(E,{name:Z?`check`:`file-copy`,className:nt})})]}):null,G>0?(0,$.jsxs)(w,{variant:`ghost`,size:`sm`,className:`yuri-work-status-action ${tt}`,title:u(G===1?`chat.workStatus.git.changedFileSingle`:`chat.workStatus.git.changedFilePlural`,{count:G}),"aria-label":u(`chat.workStatus.action.openGit`),onClick:me,children:[(0,$.jsx)(E,{name:`changes`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:u(`chat.workStatus.compact.changes`)}),oe>0||K>0?(0,$.jsxs)(`span`,{className:`ml-auto flex shrink-0 gap-1.5 text-[12px] tabular-nums`,children:[(0,$.jsx)(`span`,{className:`text-[var(--status-success)]`,children:`+${oe}`}),(0,$.jsx)(`span`,{className:`text-[var(--status-error)]`,children:`−${K}`})]}):(0,$.jsx)(`span`,{className:`ml-auto tabular-nums`,children:G})]}):null,n?(0,$.jsx)(Ge,{input:ue}):null,(0,$.jsx)(Le,{sessionId:e,directory:t,remote:c}),s.length>0?(0,$.jsxs)(`div`,{role:`group`,"aria-label":u(`chat.workStatus.section.subagents`),className:`flex min-w-0 flex-col`,children:[(0,$.jsxs)(w,{type:`button`,variant:`ghost`,size:`sm`,className:`yuri-work-status-action ${tt} gap-1.5`,"aria-expanded":M,"aria-controls":P,onClick:()=>N(e=>!e),children:[(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`inline-flex shrink-0 items-center`,children:j.map((e,t)=>{let n=e.label.trim()||u(`chat.workStatus.subagent.untitled`);return(0,$.jsx)(ae,{name:e.seed,label:n,size:14,className:`relative bg-background ring-2 ring-background ${t>0?`-ml-1`:``}`},e.key)})}),(0,$.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-x-1 whitespace-nowrap text-left text-[11px] leading-5 tabular-nums`,children:O.filter(e=>e.items.length>0).map((e,t)=>(0,$.jsxs)(Q.Fragment,{children:[t>0?(0,$.jsx)(`span`,{"aria-hidden":`true`,children:`·`}):null,(0,$.jsx)(`span`,{children:u(e.labelKey,{count:e.items.length})})]},e.phase))}),(0,$.jsx)(E,{name:M?`arrow-down-s`:`arrow-right-s`,className:`size-3.5 shrink-0 text-muted-foreground opacity-70`})]}),(0,$.jsx)(`div`,{id:P,hidden:!M,className:M?`mt-1 mb-1 flex min-w-0 flex-col gap-1`:`hidden`,children:M?O.filter(e=>e.items.length>0).map(e=>(0,$.jsxs)(`section`,{"aria-label":u(e.labelKey,{count:e.items.length}),className:`flex min-w-0 flex-col gap-1 [&+section]:mt-2`,children:[(0,$.jsx)(`div`,{className:`px-2 py-1 text-[11px] leading-4 text-muted-foreground/70`,children:u(e.labelKey,{count:e.items.length})}),e.items.map(e=>{let n=e.label.trim()||u(`chat.workStatus.subagent.untitled`);return(0,$.jsxs)(w,{variant:`ghost`,size:`sm`,disabled:!e.sessionID||!t,className:`yuri-work-status-action flex w-full min-w-0 items-center justify-start gap-2 text-left text-[12px] font-normal leading-5 text-muted-foreground`,onClick:()=>{!e.sessionID||!t||ee(l??t,{mode:`chat`,dedupeKey:`session:${e.sessionID}`,label:n,readOnly:!0})},children:[(0,$.jsx)(ae,{name:e.seed,label:n,size:14}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:n,children:n})]},e.key)})]},e.phase)):null})]}):null]})};function lt(e){return e.projects}function ut(e){return e.availableWorktreesByProject}function dt(e){return!e.hostId}function ft(e,t){return t.path.length-e.path.length}var pt=200,mt=264,ht=e=>{let t=(0,Z.c)(31),{sessionId:n,directory:r,visible:i,overlay:a}=e,o=a!==void 0&&a,{t:s}=R(),c=x(gt),l=Q.useRef(null),[u,d]=Q.useState(i),f,p;t[0]===i?(f=t[1],p=t[2]):(f=()=>{if(i){d(!0);return}let e=window.setTimeout(()=>d(!1),pt);return()=>window.clearTimeout(e)},p=[i],t[0]=i,t[1]=f,t[2]=p),Q.useEffect(f,p);let m,h;t[3]!==o||t[4]!==c||t[5]!==i?(m=()=>{if(!o||!i)return;let e=e=>{let t=e.target instanceof Element?e.target:null;l.current?.contains(t)||t?.closest(`[data-work-status-toggle]`)||c(!1)},t=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`pointerdown`,e,!0),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t)}},h=[o,c,i],t[3]=o,t[4]=c,t[5]=i,t[6]=m,t[7]=h):(m=t[6],h=t[7]),Q.useEffect(m,h);let g;t[8]===s?g=t[9]:(g=s(`chat.workStatus.ariaLabel`),t[8]=s,t[9]=g);let _=!i,v=!i,y=o?`top-3 z-30 max-h-[calc(100%-1.5rem)] rounded-xl p-2 ${ce}`:`top-2`,b;t[10]===y?b=t[11]:(b=T(`absolute z-20 flex max-h-[calc(100%-1rem)] flex-col overflow-x-hidden overflow-y-auto scrollbar-hidden bg-transparent`,y),t[10]=y,t[11]=b);let S=o?mt:i?196:0,C=+!!i,w=i?`none`:o?`translateY(-6px)`:`translateX(24px)`,E=o?`opacity, transform`:`none`,D=i?void 0:`none`,O;t[12]!==S||t[13]!==C||t[14]!==w||t[15]!==E||t[16]!==D?(O={right:14,width:S,opacity:C,transform:w,transitionProperty:E,transitionDuration:`${pt}ms`,transitionTimingFunction:`cubic-bezier(0.22, 1, 0.36, 1)`,pointerEvents:D},t[12]=S,t[13]=C,t[14]=w,t[15]=E,t[16]=D,t[17]=O):O=t[17];let k;t[18]!==u||t[19]!==r||t[20]!==o||t[21]!==n||t[22]!==i?(k=i||o&&u?(0,$.jsx)(at,{sessionId:n,directory:r,active:i,placement:o?`popover`:`inline`}):null,t[18]=u,t[19]=r,t[20]=o,t[21]=n,t[22]=i,t[23]=k):k=t[23];let A;return t[24]!==b||t[25]!==O||t[26]!==k||t[27]!==g||t[28]!==_||t[29]!==v?(A=(0,$.jsx)(`aside`,{ref:l,"aria-label":g,"aria-hidden":_,inert:v,className:b,style:O,children:k}),t[24]=b,t[25]=O,t[26]=k,t[27]=g,t[28]=_,t[29]=v,t[30]=A):A=t[30],A};function gt(e){return e.setWorkStatusOverlayOpen}var _t=e({ChatView:()=>yt}),vt=e=>{let t=(0,Z.c)(10),{sessionId:n,directory:r,visible:i,overlay:a,publishVisible:o}=e,s=a!==void 0&&a,c=o!==void 0&&o,l=x(bt),u,d;t[0]!==c||t[1]!==l||t[2]!==i?(u=()=>{if(c)return l(i),()=>l(!1)},d=[c,l,i],t[0]=c,t[1]=l,t[2]=i,t[3]=u,t[4]=d):(u=t[3],d=t[4]),Q.useEffect(u,d);let f;return t[5]!==r||t[6]!==s||t[7]!==n||t[8]!==i?(f=(0,$.jsx)(ht,{overlay:s,visible:i,sessionId:n,directory:r}),t[5]=r,t[6]=s,t[7]=n,t[8]=i,t[9]=f):f=t[9],f},yt=({readOnly:e=!1,active:t=!0,selectionOverride:r})=>{let a=h(),o=k(e=>e.remoteSession),s=r?.location??(a?.entry.location.hostId?a.entry.location:void 0),c=r?{...r,active:t,...s?{location:s,directory:r.directory??s.directory,sessionId:r.sessionId||(o&&i(o.location)===i(s)?o.sessionId:null)}:{}}:void 0,l=F(e=>e.currentSessionId),u=F(e=>e.currentSessionDirectory),d=F(e=>!!e.newSessionDraft?.open),f=F(e=>!!(e.newSessionDraft?.open&&e.newSessionDraft.pendingUserMessage&&(e.newSessionDraft.draftEstablishing||e.newSessionDraft.draftSubmitting))),p=B(),m=x(e=>e.isMobile),g=x(e=>e.isExpandedInput),_=n(),v=x(e=>e.workStatusPanelEnabled),y=x(e=>e.workStatusOverlayOpen),b=x(e=>e.setWorkStatusPanelFits),S=s&&o&&i(o.location)===i(s)?o:null,C=s?c?.sessionId??S?.sessionId??null:r?.sessionId??l,w=C,E=s?s.directory:r?.directory??u??p??null,{visible:D,fits:O,layoutAllows:A}=he({isMobile:m,isVSCode:_,directory:s?i(s):E}),j=s?!!C:r?!!r.sessionId:d?f:!!C,M=t&&!m&&!_&&!g&&j,N=M&&D,P=M&&v&&!O&&y;return Q.useEffect(()=>(b(M&&O),()=>b(!1)),[O,M,b]),(0,$.jsxs)(`div`,{className:T(`relative h-full min-h-0 min-w-0`,N&&`yuri-chat-work-status-inline`),style:N?{"--yuri-work-status-reserve":`210px`}:void 0,children:[(0,$.jsx)(`div`,{className:`absolute inset-0 min-h-0 min-w-0`,children:(0,$.jsx)(pe,{sessionId:w||void 0,children:(0,$.jsx)(se,{readOnly:e,active:t,explicitSession:c})})}),M&&A?(0,$.jsx)(vt,{publishVisible:!0,visible:N,sessionId:C,directory:E}):null,M&&v&&!O?(0,$.jsx)(vt,{overlay:!0,visible:P,sessionId:C,directory:E}):null]})};function bt(e){return e.setWorkStatusPanelVisible}export{_t as n,yt as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-hePW80VL.js";import{ot as e,st as t}from"./vendor-base-ui-wXsskyKm.js";import{n}from"./vendor-react-BkccXcWz.js";import{i as r,o as i}from"./session-startup-barrier-DT-hIBRf.js";import{n as a}from"./Icon-DmykXZL1.js";var o=n();t();var s=e(),c=e=>{let t=(0,o.c)(12),{mode:n,onModeChange:c,className:l}=e,u;t[0]!==n||t[1]!==c?(u=e=>{e.stopPropagation(),c(n===`side-by-side`?`unified`:`side-by-side`)},t[0]=n,t[1]=c,t[2]=u):u=t[2];let d=u,f;t[3]===l?f=t[4]:(f=i(`h-5 w-5 p-0 opacity-60 hover:opacity-100`,l),t[3]=l,t[4]=f);let p=n===`side-by-side`?`Switch to unified view`:`Switch to side-by-side view`,m;t[5]===n?m=t[6]:(m=n===`side-by-side`?(0,s.jsx)(a,{name:`align-justify`,className:`h-3 w-3`}):(0,s.jsx)(a,{name:`layout-column`,className:`h-3 w-3`}),t[5]=n,t[6]=m);let h;return t[7]!==d||t[8]!==f||t[9]!==p||t[10]!==m?(h=(0,s.jsx)(r,{size:`sm`,variant:`ghost`,className:f,onClick:d,title:p,children:m}),t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=h):h=t[11],h};export{c as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{i}from"./session-startup-barrier-DT-hIBRf.js";import{n as a}from"./Icon-DmykXZL1.js";import{Ja as o}from"./ui-DrAJTWV6.js";import{t as s}from"./i18n-DXc6czdR.js";import{i as c,n as l,r as u,t as d}from"./card-DmysoUAV.js";var f=r(),p=e(n(),1),m=t(),h=class extends p.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t,copied:!1}),console.error(`Error caught by boundary:`,e,t)}handleReset=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})};handleCopy=async()=>{let{strings:e}=this.props,t=`${this.state.error?String(this.state.error):e.unknownError}${this.state.error?.stack?`\n\nStack:\n${this.state.error.stack}`:``}${this.state.errorInfo?.componentStack?`\n\n${e.componentStackLabel}${this.state.errorInfo.componentStack}`:``}`;(await o(t)).ok&&(this.setState({copied:!0}),window.setTimeout(()=>{this.setState(e=>e.copied?{copied:!1}:null)},1500))};render(){let{strings:e}=this.props;return this.state.hasError?this.props.fallback?this.props.fallback:(0,m.jsx)(`div`,{className:`p-4 flex items-center justify-center min-h-screen`,children:(0,m.jsxs)(d,{className:`w-full max-w-md`,children:[(0,m.jsx)(u,{className:`text-center`,children:(0,m.jsxs)(c,{className:`flex items-center justify-center gap-2 text-destructive`,children:[(0,m.jsx)(a,{name:`error-warning`,className:`h-5 w-5`}),e.title]})}),(0,m.jsxs)(l,{className:`space-y-4`,children:[(0,m.jsx)(`p`,{className:`text-sm text-muted-foreground text-center`,children:e.description}),this.state.error&&(0,m.jsxs)(`details`,{className:`text-xs font-mono bg-muted p-3 rounded`,children:[(0,m.jsx)(`summary`,{className:`cursor-pointer hover:bg-interactive-hover/80`,children:e.detailsSummary}),(0,m.jsxs)(`pre`,{className:`mt-2 max-h-48 overflow-auto`,children:[this.state.error.toString(),this.state.errorInfo?.componentStack?`\n\n${e.componentStackLabel}${this.state.errorInfo.componentStack}`:``]})]}),(0,m.jsxs)(`div`,{className:`flex gap-2`,children:[(0,m.jsxs)(i,{onClick:this.handleReset,variant:`outline`,className:`flex-1`,children:[(0,m.jsx)(a,{name:`restart`,className:`h-4 w-4 mr-2`}),e.tryAgain]}),(0,m.jsx)(i,{onClick:this.handleCopy,variant:`outline`,className:`flex-1`,children:this.state.copied?e.copied:e.copy})]})]})]})}):this.props.children}},g=e=>{let t=(0,f.c)(29),{children:n,fallback:r}=e,{t:i}=s(),a;t[0]===i?a=t[1]:(a=i(`errorBoundary.state.unknownError`),t[0]=i,t[1]=a);let o;t[2]===i?o=t[3]:(o=i(`errorBoundary.title`),t[2]=i,t[3]=o);let c;t[4]===i?c=t[5]:(c=i(`errorBoundary.description`),t[4]=i,t[5]=c);let l;t[6]===i?l=t[7]:(l=i(`errorBoundary.actions.errorDetails`),t[6]=i,t[7]=l);let u;t[8]===i?u=t[9]:(u=i(`errorBoundary.state.componentStackLabel`),t[8]=i,t[9]=u);let d;t[10]===i?d=t[11]:(d=i(`errorBoundary.actions.tryAgain`),t[10]=i,t[11]=d);let p;t[12]===i?p=t[13]:(p=i(`errorBoundary.actions.copied`),t[12]=i,t[13]=p);let g;t[14]===i?g=t[15]:(g=i(`errorBoundary.actions.copy`),t[14]=i,t[15]=g);let _;t[16]!==a||t[17]!==o||t[18]!==c||t[19]!==l||t[20]!==u||t[21]!==d||t[22]!==p||t[23]!==g?(_={unknownError:a,title:o,description:c,detailsSummary:l,componentStackLabel:u,tryAgain:d,copied:p,copy:g},t[16]=a,t[17]=o,t[18]=c,t[19]=l,t[20]=u,t[21]=d,t[22]=p,t[23]=g,t[24]=_):_=t[24];let v=_,y;return t[25]!==n||t[26]!==r||t[27]!==v?(y=(0,m.jsx)(h,{fallback:r,strings:v,children:n}),t[25]=n,t[26]=r,t[27]=v,t[28]=y):y=t[28],y};export{g as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{o as i}from"./session-startup-barrier-DT-hIBRf.js";var a=[`user-blocking`,`visible`,`background`],o=e=>{let t={"user-blocking":{head:null,tail:null},visible:{head:null,tail:null},background:{head:null,tail:null}},n=Math.max(1,Math.floor(e.maxTasksPerFrame)),r=Math.max(1,e.frameBudgetMs),i=null,o=!1,s=0,c=e=>{let n=t[e.priority];e.previous=n.tail,n.tail?n.tail.next=e:n.head=e,n.tail=e},l=e=>{let n=t[e.priority];e.previous?e.previous.next=e.next:n.head=e.next,e.next?e.next.previous=e.previous:n.tail=e.previous,e.next=null,e.previous=null},u=()=>{for(let e of a){let n=t[e].head;if(n)return l(n),n.consumed=!0,--s,n}return null},d=()=>{i===null&&s!==0&&(i=e.requestFrame(f))},f=()=>{i=null;let t=e.now(),a=0;for(;s>0&&a<n;){let n=u();if(!n||(n.run(),a+=1,e.now()-t>=r))break}d()},p=()=>{i!==null||o||s===0||(o=!0,i=e.requestFrame(()=>{i=null,o=!1,d()}))};return{enqueue(t,n){let r={cancelled:!1,consumed:!1,next:null,previous:null,priority:n?.priority??`background`,run:t};return c(r),s+=1,!o&&i===null&&p(),()=>{r.cancelled||r.consumed||(r.cancelled=!0,l(r),--s,s===0&&(i!==null&&(e.cancelFrame(i),i=null),o=!1))}},clear(){for(let e of a){let n=t[e],r=n.head;for(;r;){let e=r.next;r.cancelled=!0,r.next=null,r.previous=null,r=e}n.head=null,n.tail=null}s=0,i!==null&&(e.cancelFrame(i),i=null),o=!1}}},s=null,c=()=>typeof window>`u`?null:s||(s=o({requestFrame:e=>window.requestAnimationFrame(e),cancelFrame:e=>window.cancelAnimationFrame(e),now:()=>performance.now(),maxTasksPerFrame:2,frameBudgetMs:6}),s),l=(e,t)=>{let n=c();return n?n.enqueue(e,t):(e(),()=>{})},u={textThrottleMs:20,markdownPaceMs:64},d={textThrottleMs:100,markdownPaceMs:128},f=e=>e===`android`?d:u,p=r(),m=e(n(),1),h=t(),g=m.createContext(!1),_=e=>{let t=(0,p.c)(3),{disabled:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,h.jsx)(g.Provider,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i},v=e=>{let t=(0,p.c)(8),{children:n,className:r}=e,[a,o]=m.useState(!1),s,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=null,t=()=>o(!0);return typeof window<`u`&&typeof window.requestAnimationFrame==`function`?e=window.requestAnimationFrame(t):t(),()=>{e!==null&&typeof window<`u`&&typeof window.cancelAnimationFrame==`function`&&window.cancelAnimationFrame(e)}},c=[],t[0]=s,t[1]=c):(s=t[0],c=t[1]),m.useEffect(s,c);let l=a?`opacity-100 translate-y-0`:`opacity-0 translate-y-2`,u;t[2]!==r||t[3]!==l?(u=i(`w-full transition-all duration-300 ease-out`,l,r),t[2]=r,t[3]=l,t[4]=u):u=t[4];let d;return t[5]!==n||t[6]!==u?(d=(0,h.jsx)(`div`,{className:u,children:n}),t[5]=n,t[6]=u,t[7]=d):d=t[7],d},y=e=>{let t=(0,p.c)(5),{children:n,className:r,skipAnimation:i,forceAnimation:a,ignoreContextDisabled:o,respectReducedMotion:s}=e,c=a!==void 0&&a,l=o!==void 0&&o,u=s!==void 0&&s,d=m.useContext(g),f=u&&typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;if(!c||i||!l&&d||f){let e;return t[0]===n?e=t[1]:(e=(0,h.jsx)(h.Fragment,{children:n}),t[0]=n,t[1]=e),e}let _;return t[2]!==n||t[3]!==r?(_=(0,h.jsx)(v,{className:r,children:n}),t[2]=n,t[3]=r,t[4]=_):_=t[4],_};export{l as i,y as n,f as r,_ as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./platform-CiUKDeXd.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{n as i}from"./vendor-react-BkccXcWz.js";import{r as a}from"./useUIStore-C3ewjGgP.js";import{i as o,o as s}from"./session-startup-barrier-DT-hIBRf.js";import{n as c}from"./Icon-DmykXZL1.js";import{t as l}from"./i18n-DXc6czdR.js";import{a as u}from"./react-CPBNl-S9.js";import{i as d}from"./MobileHtmlNetworkBoundary-TBxrF4jJ.js";import{t as f}from"./GuiPluginMount-Btp3mJT2.js";import{t as p}from"./ErrorBoundary-_5B1xjgZ.js";import{i as m}from"./pages-CYkE04ml.js";var h=e(r(),1),g=i(),_=n();function v(e){let t=(0,g.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=s(`relative isolate flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl bg-background shadow-sm [--background:oklch(from_var(--surface-background)_min(1,calc(l_+_0.015))_c_h)] dark:[--background:color-mix(in_srgb,var(--surface-foreground)_4%,var(--surface-background))]`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsx)(`span`,{"aria-hidden":`true`,"data-workspace-surface-ring":!0,className:`pointer-events-none absolute inset-0 z-50 rounded-[inherit] ring-1 ring-inset ring-[var(--interactive-border)]`}),t[6]=o):o=t[6];let c;return t[7]!==n||t[8]!==i||t[9]!==a?(c=(0,_.jsxs)(`section`,{...i,"data-workspace-surface":!0,className:a,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=c):c=t[10],c}function y(){let e=(0,g.c)(33),{host:n,snapshot:r,inventory:i,error:s,loading:y,requested:S,requestLoad:C,refresh:w}=u(),{t:T}=l(),E=a(x),D=a(b),O,k;e[0]!==C||e[1]!==S?(O=()=>{S||C()},k=[S,C],e[0]=C,e[1]=S,e[2]=O,e[3]=k):(O=e[2],k=e[3]),h.useEffect(O,k);let A=r.pages,j,M,N,P,F,I;if(e[4]!==s||e[5]!==n||e[6]!==i||e[7]!==D||e[8]!==E||e[9]!==y||e[10]!==w||e[11]!==S||e[12]!==r.pages||e[13]!==r.plugins||e[14]!==T){I=Symbol.for(`react.early_return_sentinel`);bb0:{let a;e[21]===E?a=e[22]:(a=e=>e.key===E,e[21]=E,e[22]=a);let l=A.find(a),u=r.plugins.find(e=>e.id===l?.pluginId)?.revision,h=m(E),g=r.plugins.some(e=>e.id===h&&e.status===`failed`)||i.some(e=>e.id===h&&e.error)||!l&&!!s;if(D){let r=!t()||s===`unsupported`?(0,_.jsx)(d,{message:T(`guiPlugins.mobile.unsupported`)}):n&&l?(0,_.jsx)(p,{fallback:(0,_.jsx)(d,{message:T(`guiPlugins.error`)}),children:(0,_.jsx)(f,{host:n,kind:`page`,contributionKey:l.key,revision:u})},JSON.stringify([l.key,u])):g?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(d,{message:T(s===`relay_required`?`guiPlugins.mobile.relayRequired`:s===`relay_unavailable`?`guiPlugins.mobile.networkFailed`:`guiPlugins.error`)}),s?(0,_.jsx)(o,{className:`m-4 self-center`,onClick:w,children:T(`guiPlugins.mobile.retry`)}):null]}):y||!S?(0,_.jsxs)(`div`,{role:`status`,className:`flex min-h-0 flex-1 items-center justify-center gap-2 text-muted-foreground`,children:[(0,_.jsx)(c,{name:`loader-4`,className:`size-4 animate-spin motion-reduce:animate-none`}),T(`guiPlugins.loading`)]}):null,i;e[23]===r?i=e[24]:(i=(0,_.jsx)(`div`,{"data-gui-plugin-page":!0,className:`flex min-h-0 min-w-0 flex-1 flex-col`,"data-mobile-edge-to-edge-preview":`true`,children:r}),e[23]=r,e[24]=i),I=i;break bb0}P=!0,F=`flex h-full min-h-0 min-w-0 flex-col py-1.5 pl-1 pr-1.5 text-foreground`,j=v,M=!0,N=n&&l?(0,_.jsx)(p,{fallback:(0,_.jsx)(d,{message:T(`guiPlugins.error`)}),children:(0,_.jsx)(f,{host:n,kind:`page`,contributionKey:l.key,revision:u})},JSON.stringify([l.key,u])):g?(0,_.jsx)(d,{message:T(`guiPlugins.error`)}):null}e[4]=s,e[5]=n,e[6]=i,e[7]=D,e[8]=E,e[9]=y,e[10]=w,e[11]=S,e[12]=r.pages,e[13]=r.plugins,e[14]=T,e[15]=j,e[16]=M,e[17]=N,e[18]=P,e[19]=F,e[20]=I}else j=e[15],M=e[16],N=e[17],P=e[18],F=e[19],I=e[20];if(I!==Symbol.for(`react.early_return_sentinel`))return I;let L;e[25]!==j||e[26]!==M||e[27]!==N?(L=(0,_.jsx)(j,{"data-gui-plugin-page-surface":M,children:N}),e[25]=j,e[26]=M,e[27]=N,e[28]=L):L=e[28];let R;return e[29]!==P||e[30]!==F||e[31]!==L?(R=(0,_.jsx)(`div`,{"data-gui-plugin-page":P,className:F,children:L}),e[29]=P,e[30]=F,e[31]=L,e[32]=R):R=e[32],R}function b(e){return e.isMobile}function x(e){return e.activeGuiPage}export{v as n,y as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{r as i}from"./useUIStore-C3ewjGgP.js";import{i as a}from"./session-startup-barrier-DT-hIBRf.js";import{t as o}from"./i18n-DXc6czdR.js";import{a as s}from"./react-CPBNl-S9.js";import{r as c}from"./device-EIfSfSWk.js";import{n as l,r as u,t as d}from"./GuiPluginMount-Btp3mJT2.js";import{t as f}from"./GuiPluginWindow-BkAFJyFd.js";import{t as p}from"./GuiPluginPage-DM_RLx6u.js";import{i as m}from"./pages-CYkE04ml.js";var h=r(),g=e(n(),1),_=t();function v(){let e=(0,h.c)(57),{host:t,snapshot:n,inventory:r,error:v,loading:S,requested:C}=s(),{t:w}=o(),{isMobile:T}=c(),E=i(x),D;if(e[0]!==E||e[1]!==n.pages){let t;e[3]===E?t=e[4]:(t=e=>e.key===E,e[3]=E,e[4]=t),D=n.pages.find(t),e[0]=E,e[1]=n.pages,e[2]=D}else D=e[2];let O=D,k;e[5]===E?k=e[6]:(k=m(E),e[5]=E,e[6]=k);let A=k,j;e[7]!==v||e[8]!==r||e[9]!==A||e[10]!==n.plugins?(j=!!v||n.plugins.some(e=>e.id===A&&e.status===`failed`)||r.some(e=>e.id===A&&e.error),e[7]=v,e[8]=r,e[9]=A,e[10]=n.plugins,e[11]=j):j=e[11];let M=j,N,P;e[12]!==M||e[13]!==T||e[14]!==S||e[15]!==O||e[16]!==E||e[17]!==C?(N=()=>{T&&E&&C&&!S&&!O&&!M&&i.getState().closeGuiPage()},P=[T,E,C,S,O,M],e[12]=M,e[13]=T,e[14]=S,e[15]=O,e[16]=E,e[17]=C,e[18]=N,e[19]=P):(N=e[18],P=e[19]),g.useEffect(N,P);let[F]=g.useState(b),I,L,R,z,B,V,H,U;if(e[20]!==F||e[21]!==t||e[22]!==T||e[23]!==O?.title||e[24]!==E||e[25]!==n.activePanel||e[26]!==n.panels||e[27]!==n.plugins||e[28]!==w){let r;e[37]===n.activePanel?r=e[38]:(r=e=>e.key===n.activePanel&&!e.inline,e[37]=n.activePanel,e[38]=r);let i=n.panels.find(r);e[39]!==T||e[40]!==O?.title||e[41]!==E||e[42]!==w?(R=T&&E?(0,_.jsx)(f,{id:`gui-plugin-page`,open:!0,title:O?.title??w(`guiPlugins.title`),onClose:y,children:(0,_.jsx)(p,{})}):null,e[39]=T,e[40]=O?.title,e[41]=E,e[42]=w,e[43]=R):R=e[43],I=f,z=`gui-plugin-panel`,B=!!(t&&i),V=i?.title??w(`guiPlugins.title`),e[44]===t?H=e[45]:(H=()=>t?.hidePanel(),e[44]=t,e[45]=H),U=T&&i?(0,_.jsx)(l,{target:F}):null,L=t&&i?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{className:`flex shrink-0 flex-wrap gap-1`,"aria-label":w(`guiPlugins.panels`),children:n.panels.map(e=>(0,_.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,_.jsx)(a,{variant:`chip`,size:`sm`,"aria-pressed":e.key===i.key,onClick:()=>t.selectPanel(e.key),className:`max-w-64 truncate`,children:e.title}),(0,_.jsx)(a,{variant:`ghost`,size:`xs`,"aria-label":w(`guiPlugins.closePanel`,{title:e.title}),onClick:()=>t.closePanel(e.key),children:w(`guiPlugins.close`)})]},e.key))}),(0,_.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,"data-mobile-edge-to-edge-preview":`true`,children:(0,_.jsx)(d,{host:t,contributionKey:i.key,kind:`panel`,actions:T?F:void 0,revision:u(n.plugins,i.pluginId)})})]}):null,e[20]=F,e[21]=t,e[22]=T,e[23]=O?.title,e[24]=E,e[25]=n.activePanel,e[26]=n.panels,e[27]=n.plugins,e[28]=w,e[29]=I,e[30]=L,e[31]=R,e[32]=z,e[33]=B,e[34]=V,e[35]=H,e[36]=U}else I=e[29],L=e[30],R=e[31],z=e[32],B=e[33],V=e[34],H=e[35],U=e[36];let W;e[46]!==I||e[47]!==L||e[48]!==z||e[49]!==B||e[50]!==V||e[51]!==H||e[52]!==U?(W=(0,_.jsx)(I,{id:z,open:B,title:V,onClose:H,actions:U,children:L}),e[46]=I,e[47]=L,e[48]=z,e[49]=B,e[50]=V,e[51]=H,e[52]=U,e[53]=W):W=e[53];let G;return e[54]!==R||e[55]!==W?(G=(0,_.jsxs)(_.Fragment,{children:[R,W]}),e[54]=R,e[55]=W,e[56]=G):G=e[56],G}function y(){return i.getState().closeGuiPage()}function b(){return document.createElement(`div`)}function x(e){return e.activeMainTab===`plugin`?e.activeGuiPage:null}export{v as GuiPluginSurface};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{i,o as a}from"./session-startup-barrier-DT-hIBRf.js";import{n as o}from"./Icon-DmykXZL1.js";import{a as s}from"./react-CPBNl-S9.js";import{t as c}from"./icons-Bd-INsoy.js";var l=r(),u=e(n(),1),d=t();function f(e){let t=(0,l.c)(28),{item:n,host:r,mobile:s,sidebar:f}=e,[p,m]=(0,u.useState)(),h;t[0]===n.icon?h=t[1]:(h=c(n.icon),t[0]=n.icon,t[1]=h);let g=h,_;t[2]!==p||t[3]!==n.icon?(_=n.icon?.startsWith(`data:image/`)&&n.icon!==p?n.icon:void 0,t[2]=p,t[3]=n.icon,t[4]=_):_=t[4];let v=_,y=!!(g||v),b;t[5]!==g||t[6]!==v||t[7]!==n.busy||t[8]!==f?(b=n.busy?(0,d.jsx)(o,{name:`loader-4`,className:a(f?`size-4`:`size-3.5`,`shrink-0 animate-spin motion-reduce:animate-none`)}):g?(0,d.jsx)(o,{name:g,className:f?`size-4 shrink-0`:`size-3.5`}):v?(0,d.jsx)(`img`,{src:v,alt:``,draggable:!1,className:a(f?`size-4`:`size-3.5`,`shrink-0 object-contain`),onError:()=>m(v)},v):f?(0,d.jsx)(`span`,{"aria-hidden":`true`,className:`size-4 shrink-0`}):null,t[5]=g,t[6]=v,t[7]=n.busy,t[8]=f,t[9]=b):b=t[9];let x;t[10]!==y||t[11]!==n.label||t[12]!==f?(x=f||!y?(0,d.jsx)(`span`,{className:f?`truncate`:`max-w-24 truncate`,children:n.label}):null,t[10]=y,t[11]=n.label,t[12]=f,t[13]=x):x=t[13];let S;t[14]!==b||t[15]!==x?(S=(0,d.jsxs)(d.Fragment,{children:[b,x]}),t[14]=b,t[15]=x,t[16]=S):S=t[16];let C=S,w;return t[17]!==C||t[18]!==r||t[19]!==n.actionable||t[20]!==n.busy||t[21]!==n.key||t[22]!==n.label||t[23]!==n.pressed||t[24]!==n.title||t[25]!==s||t[26]!==f?(w=n.actionable?(0,d.jsx)(i,{size:f||s?`sm`:`xs`,variant:f?`ghost`:`default`,className:a(`aria-pressed:bg-interactive-selection aria-pressed:text-interactive-selection-foreground`,f&&`w-full justify-start px-2 font-normal`,f&&s&&`h-11`),title:n.label,"aria-label":n.title??n.label,"aria-pressed":n.pressed,"aria-busy":!!n.busy,disabled:!!n.busy,onClick:()=>void r.runTitlebarItem(n.key),children:C}):(0,d.jsx)(`span`,{role:`status`,title:n.label,"aria-label":n.title??n.label,"aria-busy":!!n.busy,className:a(`inline-flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-muted-foreground`,f?`w-full text-sm`:`bg-muted text-xs`),children:C}),t[17]=C,t[18]=r,t[19]=n.actionable,t[20]=n.busy,t[21]=n.key,t[22]=n.label,t[23]=n.pressed,t[24]=n.title,t[25]=s,t[26]=f,t[27]=w):w=t[27],w}function p(e){let t=(0,l.c)(14),{mobile:n,sidebar:r}=e,i=n!==void 0&&n,a=r!==void 0&&r,{host:o,snapshot:c}=s();if(!o||c.titlebarItems.length===0)return null;let u=!a||void 0,p=a||void 0,m=a?`app-region-no-drag space-y-0.5`:`app-region-no-drag flex min-w-0 max-w-32 items-center gap-1 overflow-x-auto scrollbar-hidden`,h;if(t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==c.titlebarItems){let e;t[5]!==o||t[6]!==i||t[7]!==a?(e=e=>(0,d.jsx)(f,{item:e,host:o,mobile:i,sidebar:a},e.key),t[5]=o,t[6]=i,t[7]=a,t[8]=e):e=t[8],h=c.titlebarItems.map(e),t[0]=o,t[1]=i,t[2]=a,t[3]=c.titlebarItems,t[4]=h}else h=t[4];let g;return t[9]!==u||t[10]!==p||t[11]!==m||t[12]!==h?(g=(0,d.jsx)(`div`,{"data-gui-titlebar-items":u,"data-gui-sidebar-items":p,className:m,children:h}),t[9]=u,t[10]=p,t[11]=m,t[12]=h,t[13]=g):g=t[13],g}export{p as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{o as r}from"./session-startup-barrier-DT-hIBRf.js";var i=e(n(),1),a={add:`<path d="M5 12h14" /> <path d="M12 5v14" />`,"add-circle":`<circle cx="12" cy="12" r="10" /> <path d="M8 12h8" /> <path d="M12 8v8" />`,"ai-agent":`<rect x="4" y="7.5" width="16" height="13" rx="4.5" /><path d="M12 7.5V4.75" /><circle cx="12" cy="3.5" r="1.25" /><path d="M1.75 12.5v3M22.25 12.5v3M9 12.5v2M15 12.5v2" />`,"ai-agent-fill":`<path d="M12 8V4H8" fill="currentColor"/> <rect width="16" height="12" x="4" y="8" rx="2" /> <path d="M2 14h2" fill="currentColor"/> <path d="M20 14h2" fill="currentColor"/> <path d="M15 13v2" fill="currentColor"/> <path d="M9 13v2" fill="currentColor"/>`,"ai-generate-2":`<path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" /> <path d="m14 7 3 3" /> <path d="M5 6v4" /> <path d="M19 14v4" /> <path d="M10 2v2" /> <path d="M7 8H3" /> <path d="M21 16h-4" /> <path d="M11 3H9" />`,alert:`<circle cx="12" cy="12" r="10" /> <line x1="12" x2="12" y1="8" y2="12" /> <line x1="12" x2="12.01" y1="16" y2="16" />`,"align-justify":`<path d="M3 5h18" /> <path d="M3 12h18" /> <path d="M3 19h18" />`,apple:`<path d="M12 6.528V3a1 1 0 0 1 1-1h0" /> <path d="M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21" />`,"apps-2-ai":`<rect width="7" height="7" x="3" y="3" rx="1" /> <rect width="7" height="7" x="14" y="3" rx="1" /> <rect width="7" height="7" x="14" y="14" rx="1" /> <rect width="7" height="7" x="3" y="14" rx="1" />`,archive:`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" /> <path d="M10 12h4" />`,"archive-stack":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" /> <path d="M10 12h4" />`,"arrow-down":`<path d="M12 5v14" /> <path d="m19 12-7 7-7-7" />`,"arrow-down-s":`<path d="m6 9 6 6 6-6" />`,"arrow-go-back":`<path d="M9 14 4 9l5-5" /><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H12" />`,"arrow-go-forward":`<path d="m15 14 5-5-5-5" /> <path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" />`,"arrow-left":`<path d="m12 19-7-7 7-7" /> <path d="M19 12H5" />`,"arrow-left-long":`<path d="m12 19-7-7 7-7" /> <path d="M19 12H5" />`,"arrow-left-right":`<path d="M8 7H3v5" /><path d="m3 7 7 7" /><path d="M16 17h5v-5" /><path d="m21 17-7-7" />`,"arrow-left-s":`<path d="m15 18-6-6 6-6" />`,"arrow-right":`<path d="M5 12h14" /> <path d="m12 5 7 7-7 7" />`,"arrow-right-circle":`<circle cx="12" cy="12" r="10" /> <path d="m12 16 4-4-4-4" /> <path d="M8 12h8" />`,"arrow-right-s":`<path d="m9 18 6-6-6-6" />`,"arrow-right-to-line":`<path d="M17 12H3" /> <path d="m11 18 6-6-6-6" /> <path d="M21 5v14" />`,"arrow-up":`<path d="m5 12 7-7 7 7" /> <path d="M12 19V5" />`,"arrow-up-double":`<path d="m17 11-5-5-5 5" /> <path d="m17 18-5-5-5 5" />`,"arrow-up-s":`<path d="m18 15-6-6-6 6" />`,"attachment-2":`<path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" />`,"bar-chart-2":`<path d="M3 3v16a2 2 0 0 0 2 2h16" /> <path d="M18 17V9" /> <path d="M13 17V5" /> <path d="M8 17v-3" />`,"bar-chart-box":`<path d="M3 3v16a2 2 0 0 0 2 2h16" /> <path d="M18 17V9" /> <path d="M13 17V5" /> <path d="M8 17v-3" />`,book:`<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />`,"book-open":`<path d="M12 7v14" /> <path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />`,booklet:`<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />`,brain:`<path d="M12 18V5" /> <path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4" /> <path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" /> <path d="M17.997 5.125a4 4 0 0 1 2.526 5.77" /> <path d="M18 18a4 4 0 0 0 2-7.464" /> <path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" /> <path d="M6 18a4 4 0 0 1-2-7.464" /> <path d="M6.003 5.125a4 4 0 0 0-2.526 5.77" />`,"brain-ai-3":`<path d="M12 18V5" /> <path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4" /> <path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" /> <path d="M17.997 5.125a4 4 0 0 1 2.526 5.77" /> <path d="M18 18a4 4 0 0 0 2-7.464" /> <path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" /> <path d="M6 18a4 4 0 0 1-2-7.464" /> <path d="M6.003 5.125a4 4 0 0 0-2.526 5.77" />`,briefcase:`<path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16" /> <rect width="20" height="14" x="2" y="6" rx="2" />`,bug:`<path d="M12 20v-9" /> <path d="M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z" /> <path d="M14.12 3.88 16 2" /> <path d="M21 21a4 4 0 0 0-3.81-4" /> <path d="M21 5a4 4 0 0 1-3.55 3.97" /> <path d="M22 13h-4" /> <path d="M3 21a4 4 0 0 1 3.81-4" /> <path d="M3 5a4 4 0 0 0 3.55 3.97" /> <path d="M6 13H2" /> <path d="m8 2 1.88 1.88" /> <path d="M9 7.13V6a3 3 0 1 1 6 0v1.13" />`,calendar:`<path d="M8 2v4" /> <path d="M16 2v4" /> <rect width="18" height="18" x="3" y="4" rx="2" /> <path d="M3 10h18" />`,"calendar-schedule":`<path d="M16 14v2.2l1.6 1" /> <path d="M16 2v4" /> <path d="M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5" /> <path d="M3 10h5" /> <path d="M8 2v4" /> <circle cx="16" cy="16" r="6" />`,camera:`<path d="M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" /> <circle cx="12" cy="13" r="3" />`,changes:`<path d="M6 8h12M12 2v12M6 21h12" />`,"chat-1":`<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" />`,"chat-3":`<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" />`,"chat-4":`<path d="M12 3a9 9 0 0 1 7.45 14.05L21 21l-4.05-1.55A9 9 0 1 1 12 3Z" />`,"chat-ai-3":`<path d="M12 6V2H8" /> <path d="M15 11v2" /> <path d="M2 12h2" /> <path d="M20 12h2" /> <path d="M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z" /> <path d="M9 11v2" />`,"chat-history":`<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" /> <path d="M12 7v5l4 2" />`,"chat-new":`<path d="M11.5 4.5H9A4.5 4.5 0 0 0 4.5 9v6.5A4.5 4.5 0 0 0 9 20h6.5a4.5 4.5 0 0 0 4.5-4.5V13" /><path d="m10 14.25.6-1.8a2 2 0 0 1 .48-.78l6.62-6.62a1.91 1.91 0 0 1 2.7 2.7l-6.62 6.62a2 2 0 0 1-.78.48l-1.8.6a.95.95 0 0 1-1.2-1.2Z" />`,"chat-thread":`<path d="M10.5 7C11.3 4.9 13.1 3.5 15.25 3.5c3.45 0 6.25 2.45 6.25 5.5 0 1.13-.38 2.18-1.03 3.06l.58 2.14-2.3-.75c-.4.18-.8.32-1.2.43" /><path d="M8.5 8.25c-3.6 0-6.5 2.55-6.5 5.75 0 1.21.42 2.33 1.13 3.25l-.63 2.27 2.48-.8c1.04.56 2.24.88 3.52.88 3.6 0 6.5-2.55 6.5-5.75S12.1 8.25 8.5 8.25Z" />`,check:`<path d="M20 6 9 17l-5-5" />`,"check-double":`<path d="M18 6 7 17l-5-5" /> <path d="m22 10-7.5 7.5L13 16" />`,checkbox:`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="m9 12 2 2 4-4" />`,"checkbox-blank":`<rect width="18" height="18" x="3" y="3" rx="2" />`,"checkbox-blank-circle-fill":`<circle cx="12" cy="12" r="10" fill="currentColor"/>`,"checkbox-circle":`<circle cx="12" cy="12" r="10" /> <path d="m9 12 2 2 4-4" />`,"checkbox-multiple":`<path d="m12 15 2 2 4-4" /> <rect width="14" height="14" x="8" y="8" rx="2" ry="2" /> <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />`,"circle-dashed":`<path d="M10.1 2.182a10 10 0 0 1 3.8 0" /> <path d="M13.9 21.818a10 10 0 0 1-3.8 0" /> <path d="M17.609 3.721a10 10 0 0 1 2.69 2.7" /> <path d="M2.182 13.9a10 10 0 0 1 0-3.8" /> <path d="M20.279 17.609a10 10 0 0 1-2.7 2.69" /> <path d="M21.818 10.1a10 10 0 0 1 0 3.8" /> <path d="M3.721 6.391a10 10 0 0 1 2.7-2.69" /> <path d="M6.391 20.279a10 10 0 0 1-2.69-2.7" />`,clipboard:`<rect width="8" height="4" x="8" y="2" rx="1" ry="1" /> <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" />`,close:`<path d="M18 6 6 18" /> <path d="m6 6 12 12" />`,"close-circle":`<circle cx="12" cy="12" r="10" /> <path d="m15 9-6 6" /> <path d="m9 9 6 6" />`,cloud:`<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" />`,"cloud-off":`<path d="M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057" /> <path d="M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78" /> <path d="m2 2 20 20" />`,code:`<path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" />`,"code-ai":`<path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" />`,"code-box":`<path d="m18 16 4-4-4-4" /> <path d="m6 8-4 4 4 4" /> <path d="m14.5 4-5 16" />`,"code-sslash":`<path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" />`,"collapse-diagonal":`<path d="m14 10 7-7" /> <path d="M20 10h-6V4" /> <path d="m3 21 7-7" /> <path d="M4 14h6v6" />`,command:`<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />`,"compass-3":`<circle cx="12" cy="12" r="10" /> <path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" />`,computer:`<rect width="20" height="14" x="2" y="3" rx="2" /> <line x1="8" x2="16" y1="21" y2="21" /> <line x1="12" x2="12" y1="17" y2="21" />`,"connection-lan":`<g transform="scale(.75)" stroke-width="1.65"><rect x="5" y="18" width="22" height="9" rx="4"/><path d="M10 18v-4m12 4v-4M10 8a9 9 0 0 1 12 0m-9 3a4.7 4.7 0 0 1 6 0M10 22.5h3m8 0h1"/><circle cx="16" cy="14" r="1" fill="currentColor" stroke="none"/></g>`,"connection-local":`<g transform="scale(.75)" stroke-width="1.65"><rect x="6" y="5" width="20" height="17" rx="4"/><path d="M12 26h8m-4-4v4M3 27h26M10 18h12"/></g>`,"connection-relay":`<g transform="scale(.75)" stroke-width="1.65"><path d="M9 21H8a5 5 0 0 1-1-9.9A7.2 7.2 0 0 1 20.8 9a5.9 5.9 0 0 1 4 11.5M11 19h10m-3-3 3 3-3 3M21 25H11m3-3-3 3 3 3"/><path d="m25 4 .5 1.5L27 6l-1.5.5L25 8l-.5-1.5L23 6l1.5-.5Z" fill="currentColor" stroke="none"/></g>`,"connection-ssh":`<g transform="scale(.75)" stroke-width="1.65"><path d="M18 27H9a5 5 0 0 1-5-5V11a5 5 0 0 1 5-5h14a5 5 0 0 1 5 5v8M4 12h24m-19-3h.1m3 0h.1m-3 7 3.5 3L9 22m7 0h2M23 24v-2a2 2 0 0 1 4 0v2"/><rect x="21.5" y="24" width="7" height="5" rx="1.6"/></g>`,"contract-up-down":`<path d="m7 20 5-5 5 5" /> <path d="m7 4 5 5 5-5" />`,"corner-down-left":`<path d="M20 4v7a4 4 0 0 1-4 4H4" /> <path d="m9 10-5 5 5 5" />`,"corner-up-left":`<path d="M20 20v-7a4 4 0 0 0-4-4H4" /> <path d="M9 14 4 9l5-5" />`,cursor:`<path d="M12.586 12.586 19 19" /> <path d="M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z" />`,"database-2":`<ellipse cx="12" cy="5" rx="9" ry="3" /> <path d="M3 5V19A9 3 0 0 0 21 19V5" /> <path d="M3 12A9 3 0 0 0 21 12" />`,"delete-back":`<path d="M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z" /> <path d="m12 9 6 6" /> <path d="m18 9-6 6" />`,"delete-bin":`<path d="M10 11v6" /> <path d="M14 11v6" /> <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" /> <path d="M3 6h18" /> <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />`,"device-android":`<path d="m7 9-2-3.5M17 9l2-3.5" /><path d="M2 18a10 10 0 0 1 20 0H2Z" /><path d="M7.5 14h.01M16.5 14h.01" />`,"device-apple":`<path d="M12.9 6.3c.9-.1 2-.6 2.6-1.5.6-.8.9-1.9.8-2.8-1 .1-2.1.7-2.8 1.5-.6.7-1 1.8-.9 2.8Z" /><path d="M16.4 12.6c0-2 1.6-3 1.7-3.1-.9-1.4-2.4-1.6-2.9-1.6-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.6-.7-1.3 0-2.6.8-3.3 2-1.4 2.5-.4 6.1 1 8.1.7 1 1.5 2.1 2.5 2 1-.04 1.4-.6 2.6-.6s1.5.6 2.6.6c1.1 0 1.8-1 2.5-2 .8-1.2 1.1-2.3 1.1-2.4-.02-.01-2.2-.9-2.2-3z" />`,"device-cli":`<rect x="2.5" y="3.5" width="19" height="17" rx="4" /><path d="m8 10 2.25 2L8 14" /><path d="M12.75 14h3.5" />`,"device-desktop":`<rect x="2.5" y="4" width="19" height="12.5" rx="3.5" /><path d="M9 20h6" /><path d="M12 16.5V20" />`,"device-ios":`<path d="M12.9 6.3c.9-.1 2-.6 2.6-1.5.6-.8.9-1.9.8-2.8-1 .1-2.1.7-2.8 1.5-.6.7-1 1.8-.9 2.8Z" /><path d="M16.4 12.6c0-2 1.6-3 1.7-3.1-.9-1.4-2.4-1.6-2.9-1.6-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.6-.7-1.3 0-2.6.8-3.3 2-1.4 2.5-.4 6.1 1 8.1.7 1 1.5 2.1 2.5 2 1-.04 1.4-.6 2.6-.6s1.5.6 2.6.6c1.1 0 1.8-1 2.5-2 .8-1.2 1.1-2.3 1.1-2.4-.02-.01-2.2-.9-2.2-3z" />`,"device-linux":`<rect x="2.5" y="3.5" width="19" height="17" rx="4" /><path d="m8 10 2.25 2L8 14" /><path d="M12.75 14h3.5" />`,"device-macos":`<rect x="2.5" y="4" width="19" height="12.5" rx="3.5" /><path d="M9 20h6" /><path d="M12 16.5V20" />`,"device-tablet":`<rect x="4.5" y="2.5" width="15" height="19" rx="4" /><path d="M11.5 18h1" />`,"device-windows":`<rect x="2.5" y="4" width="19" height="12.5" rx="3.5" /><path d="M9 20h6" /><path d="M12 16.5V20" />`,"devices-connected":`<path d="M13 17H5a2.5 2.5 0 0 1-2.5-2.5v-8A2.5 2.5 0 0 1 5 4h12a2.5 2.5 0 0 1 2.5 2.5V8M8 20h4M10 17v3" /><rect x="15" y="10" width="7" height="11" rx="2" /><path d="M18 18.5h1" />`,"discord-fill":`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" fill="currentColor"/>`,"donut-chart":`<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" /> <path d="M21.21 15.89A10 10 0 1 1 8 2.83" />`,"donut-chart-fill":`<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" fill="currentColor"/> <path d="M21.21 15.89A10 10 0 1 1 8 2.83" fill="currentColor"/>`,download:`<path d="M12 15V3" /> <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /> <path d="m7 10 5 5 5-5" />`,"download-2-fill":`<path d="M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM14 9H19L12 16L5 9H10V3H14V9Z" fill="currentColor" stroke="none"/>`,"download-cloud":`<path d="M12 13v8l-4-4" /> <path d="m12 21 4-4" /> <path d="M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284" />`,"drag-move-2":`<circle cx="9" cy="12" r="1" /> <circle cx="9" cy="5" r="1" /> <circle cx="9" cy="19" r="1" /> <circle cx="15" cy="12" r="1" /> <circle cx="15" cy="5" r="1" /> <circle cx="15" cy="19" r="1" />`,draggable:`<circle cx="9" cy="12" r="1" /> <circle cx="9" cy="5" r="1" /> <circle cx="9" cy="19" r="1" /> <circle cx="15" cy="12" r="1" /> <circle cx="15" cy="5" r="1" /> <circle cx="15" cy="19" r="1" />`,earth:`<circle cx="12" cy="12" r="10" /> <path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /> <path d="M2 12h20" />`,edit:`<path d="M15 5.5 18.5 9" /><path d="M4.5 19.5 5.75 14.75 15.25 5.25a2.1 2.1 0 0 1 3 0l.5.5a2.1 2.1 0 0 1 0 3L9.25 18.25Z" />`,"edit-2":`<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />`,"emotion-happy":`<circle cx="12" cy="12" r="10" /> <path d="M8 14s1.5 2 4 2 4-2 4-2" /> <line x1="9" x2="9.01" y1="9" y2="9" /> <line x1="15" x2="15.01" y1="9" y2="9" />`,"equalizer-2":`<path d="M10 5H3" /> <path d="M12 19H3" /> <path d="M14 3v4" /> <path d="M16 17v4" /> <path d="M21 12h-9" /> <path d="M21 19h-5" /> <path d="M21 5h-7" /> <path d="M8 10v4" /> <path d="M8 12H3" />`,"error-warning":`<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" /> <path d="M12 9v4" /> <path d="M12 17h.01" />`,"error-warning-fill":`<path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z" fill="currentColor" stroke="none"/>`,"exclamation-fill":`<path d="M10.5 4h3v10h-3zm0 13h3v3h-3z" fill="currentColor" stroke="none" />`,"expand-diagonal":`<path d="M15 3h6v6" /> <path d="m21 3-7 7" /> <path d="m3 21 7-7" /> <path d="M9 21H3v-6" />`,"expand-up-down":`<path d="m7 15 5 5 5-5" /> <path d="m7 9 5-5 5 5" />`,"external-link":`<path d="M15 3h6v6" /> <path d="M10 14 21 3" /> <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />`,eye:`<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /> <circle cx="12" cy="12" r="3" />`,"eye-off":`<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" /> <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" /> <path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" /> <path d="m2 2 20 20" />`,file:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" />`,"file-add":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M9 15h6" /> <path d="M12 18v-6" />`,"file-check":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="m9 15 2 2 4-4" />`,"file-check-fill":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" fill="currentColor"/> <path d="M14 2v5a1 1 0 0 0 1 1h5" fill="currentColor"/> <path d="m9 15 2 2 4-4" fill="currentColor"/>`,"file-code":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 12.5 8 15l2 2.5" /> <path d="m14 12.5 2 2.5-2 2.5" />`,"file-copy":`<rect width="14" height="14" x="8" y="8" rx="3.5" ry="3.5" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />`,"file-copy-2":`<path d="M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" /> <path d="M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z" /> <path d="M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" />`,"file-download":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M12 18v-6" /> <path d="m9 15 3 3 3-3" />`,"file-edit":`<path d="M10 21H7a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h5.2c.8 0 1.6.3 2.1.9l2.8 2.8c.6.5.9 1.3.9 2.1V10M12 3.2V7a2 2 0 0 0 2 2h3.8" /><path d="m12 17 6-6a2.1 2.1 0 0 1 3 3l-6 6-4 1 1-4ZM17 12l3 3" />`,"file-image":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <circle cx="10" cy="12" r="2" /> <path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22" />`,"file-list-2":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" />`,"file-music":`<path d="M11.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.35" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M8 20v-7l3 1.474" /> <circle cx="6" cy="20" r="2" />`,"file-pdf":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" />`,"file-search":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <circle cx="11.5" cy="14.5" r="2.5" /> <path d="M13.3 16.3 15 18" />`,"file-text":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" />`,"file-transfer":`<path d="M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M2 15h10" /> <path d="m9 18 3-3-3-3" />`,"file-video":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z" />`,flashlight:`<path d="M12 13v1" /> <path d="M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z" /> <path d="M6 6h12" />`,flask:`<path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2" /> <path d="M6.453 15h11.094" /> <path d="M8.5 2h7" />`,"fold-vertical":`<path d="M12 22v-6" /> <path d="M12 8V2" /> <path d="M4 12H2" /> <path d="M10 12H8" /> <path d="M16 12h-2" /> <path d="M22 12h-2" /> <path d="m15 19-3-3-3 3" /> <path d="m15 5-3 3-3-3" />`,folder:`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-3":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-3-fill":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-6":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-add":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" /><path d="M12 11v6" /><path d="M9 14h6" />`,"folder-open":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-open-fill":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-received":`<path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1" /> <path d="M2 13h10" /> <path d="m9 16 3-3-3-3" />`,"folder-tree":`<path d="M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z" /> <path d="M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z" /> <path d="M3 5a2 2 0 0 0 2 2h3" /> <path d="M3 3v13a2 2 0 0 0 2 2h3" />`,folders:`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,fullscreen:`<path d="M8 3H5a2 2 0 0 0-2 2v3" /> <path d="M21 8V5a2 2 0 0 0-2-2h-3" /> <path d="M3 16v3a2 2 0 0 0 2 2h3" /> <path d="M16 21h3a2 2 0 0 0 2-2v-3" />`,"fullscreen-exit":`<path d="M8 3v3a2 2 0 0 1-2 2H3" /> <path d="M21 8h-3a2 2 0 0 1-2-2V3" /> <path d="M3 16h3a2 2 0 0 1 2 2v3" /> <path d="M16 21v-3a2 2 0 0 1 2-2h3" />`,gamepad:`<line x1="6" x2="10" y1="11" y2="11" /> <line x1="8" x2="8" y1="9" y2="13" /> <line x1="15" x2="15.01" y1="12" y2="12" /> <line x1="18" x2="18.01" y1="10" y2="10" /> <path d="M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z" />`,"git-branch":`<circle cx="6" cy="17.5" r="2.75" /><circle cx="18" cy="6.5" r="2.75" /><path d="M6 14.75V3.5M18 9.25c0 4.75-3.5 8.25-9.25 8.25" />`,"git-close-pull-request":`<circle cx="6" cy="6" r="3" /> <path d="M6 9v12" /> <path d="m21 3-6 6" /> <path d="m21 9-6-6" /> <path d="M18 11.5V15" /> <circle cx="18" cy="18" r="3" />`,"git-commit":`<circle cx="12" cy="12" r="3" /> <line x1="3" x2="9" y1="12" y2="12" /> <line x1="15" x2="21" y1="12" y2="12" />`,"git-merge":`<circle cx="18" cy="18" r="3" /> <circle cx="6" cy="6" r="3" /> <path d="M6 21V9a9 9 0 0 0 9 9" />`,"git-pr-draft":`<circle cx="18" cy="18" r="3" /> <circle cx="6" cy="6" r="3" /> <path d="M18 6V5" /> <path d="M18 11v-1" /> <line x1="6" x2="6" y1="9" y2="21" />`,"git-pull-request":`<circle cx="18" cy="18" r="3" /> <circle cx="6" cy="6" r="3" /> <path d="M13 6h3a2 2 0 0 1 2 2v7" /> <line x1="6" x2="6" y1="9" y2="21" />`,"git-repository":`<path d="M18 19a5 5 0 0 1-5-5v8" /> <path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5" /> <circle cx="13" cy="12" r="2" /> <circle cx="20" cy="19" r="2" />`,github:`<path d="M5.88401 18.6533C5.58404 18.4526 5.32587 18.1975 5.0239 17.8369C4.91473 17.7065 4.47283 17.1524 4.55811 17.2583C4.09533 16.6833 3.80296 16.417 3.50156 16.3089C2.9817 16.1225 2.7114 15.5499 2.89784 15.0301C3.08428 14.5102 3.65685 14.2399 4.17672 14.4263C4.92936 14.6963 5.43847 15.1611 6.12425 16.0143C6.03025 15.8974 6.46364 16.441 6.55731 16.5529C6.74784 16.7804 6.88732 16.9182 6.99629 16.9911C7.20118 17.1283 7.58451 17.1874 8.14709 17.1311C8.17065 16.7489 8.24136 16.3783 8.34919 16.0358C5.38097 15.3104 3.70116 13.3952 3.70116 9.63971C3.70116 8.40085 4.0704 7.28393 4.75917 6.3478C4.5415 5.45392 4.57433 4.37284 5.06092 3.15636C5.1725 2.87739 5.40361 2.66338 5.69031 2.57352C5.77242 2.54973 5.81791 2.53915 5.89878 2.52673C6.70167 2.40343 7.83573 2.69705 9.31449 3.62336C10.181 3.41879 11.0885 3.315 12.0012 3.315C12.9129 3.315 13.8196 3.4186 14.6854 3.62277C16.1619 2.69 17.2986 2.39649 18.1072 2.52651C18.1919 2.54013 18.2645 2.55783 18.3249 2.57766C18.6059 2.66991 18.8316 2.88179 18.9414 3.15636C19.4279 4.37256 19.4608 5.45344 19.2433 6.3472C19.9342 7.28337 20.3012 8.39208 20.3012 9.63971C20.3012 13.3968 18.627 15.3048 15.6588 16.032C15.7837 16.447 15.8496 16.9105 15.8496 17.4121C15.8496 18.0765 15.8471 18.711 15.8424 19.4225C15.8412 19.6127 15.8397 19.8159 15.8375 20.1281C16.2129 20.2109 16.5229 20.5077 16.6031 20.9089C16.7114 21.4504 16.3602 21.9773 15.8186 22.0856C14.6794 22.3134 13.8353 21.5538 13.8353 20.5611C13.8353 20.4708 13.836 20.3417 13.8375 20.1145C13.8398 19.8015 13.8412 19.599 13.8425 19.4094C13.8471 18.7019 13.8496 18.0716 13.8496 17.4121C13.8496 16.7148 13.6664 16.2602 13.4237 16.051C12.7627 15.4812 13.0977 14.3973 13.965 14.2999C16.9314 13.9666 18.3012 12.8177 18.3012 9.63971C18.3012 8.68508 17.9893 7.89571 17.3881 7.23559C17.1301 6.95233 17.0567 6.54659 17.199 6.19087C17.3647 5.77663 17.4354 5.23384 17.2941 4.57702L17.2847 4.57968C16.7928 4.71886 16.1744 5.0198 15.4261 5.5285C15.182 5.69438 14.8772 5.74401 14.5932 5.66413C13.7729 5.43343 12.8913 5.315 12.0012 5.315C11.111 5.315 10.2294 5.43343 9.40916 5.66413C9.12662 5.74359 8.82344 5.69492 8.57997 5.53101C7.8274 5.02439 7.2056 4.72379 6.71079 4.58376C6.56735 5.23696 6.63814 5.77782 6.80336 6.19087C6.94565 6.54659 6.87219 6.95233 6.61423 7.23559C6.01715 7.8912 5.70116 8.69376 5.70116 9.63971C5.70116 12.8116 7.07225 13.9683 10.023 14.2999C10.8883 14.3971 11.2246 15.4769 10.5675 16.0482C10.3751 16.2156 10.1384 16.7802 10.1384 17.4121V20.5611C10.1384 21.5474 9.30356 22.2869 8.17878 22.09C7.63476 21.9948 7.27093 21.4766 7.36613 20.9326C7.43827 20.5204 7.75331 20.2116 8.13841 20.1276V19.1381C7.22829 19.1994 6.47656 19.0498 5.88401 18.6533Z" fill="currentColor"/>`,"github-fill":`<path d="M12.001 2C6.47598 2 2.00098 6.475 2.00098 12C2.00098 16.425 4.86348 20.1625 8.83848 21.4875C9.33848 21.575 9.52598 21.275 9.52598 21.0125C9.52598 20.775 9.51348 19.9875 9.51348 19.15C7.00098 19.6125 6.35098 18.5375 6.15098 17.975C6.03848 17.6875 5.55098 16.8 5.12598 16.5625C4.77598 16.375 4.27598 15.9125 5.11348 15.9C5.90098 15.8875 6.46348 16.625 6.65098 16.925C7.55098 18.4375 8.98848 18.0125 9.56348 17.75C9.65098 17.1 9.91348 16.6625 10.201 16.4125C7.97598 16.1625 5.65098 15.3 5.65098 11.475C5.65098 10.3875 6.03848 9.4875 6.67598 8.7875C6.57598 8.5375 6.22598 7.5125 6.77598 6.1375C6.77598 6.1375 7.61348 5.875 9.52598 7.1625C10.326 6.9375 11.176 6.825 12.026 6.825C12.876 6.825 13.726 6.9375 14.526 7.1625C16.4385 5.8625 17.276 6.1375 17.276 6.1375C17.826 7.5125 17.476 8.5375 17.376 8.7875C18.0135 9.4875 18.401 10.375 18.401 11.475C18.401 15.3125 16.0635 16.1625 13.8385 16.4125C14.201 16.725 14.5135 17.325 14.5135 18.2625C14.5135 19.6 14.501 20.675 14.501 21.0125C14.501 21.275 14.6885 21.5875 15.1885 21.4875C19.259 20.1133 21.9999 16.2963 22.001 12C22.001 6.475 17.526 2 12.001 2Z" fill="currentColor"/>`,global:`<circle cx="12" cy="12" r="10" /> <path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /> <path d="M2 12h20" />`,globe:`<path d="M13.0003 21H18.0003V23H6.00032V21H11.0003V19.9506C7.70689 19.6236 4.88351 17.6987 3.31641 14.9622L5.05319 13.9697C6.43208 16.3776 9.02674 18 12.0003 18C16.4186 18 20.0003 14.4182 20.0003 9.99995C20.0003 7.02637 18.378 4.43171 15.9701 3.05282L16.9626 1.31604C19.9724 3.03965 22.0003 6.28297 22.0003 9.99995C22.0003 15.1853 18.0536 19.4489 13.0003 19.9506V21ZM12.0003 17C8.13433 17 5.00032 13.8659 5.00032 9.99995C5.00032 6.13396 8.13433 2.99995 12.0003 2.99995C15.8663 2.99995 19.0003 6.13396 19.0003 9.99995C19.0003 13.8659 15.8663 17 12.0003 17ZM12.0003 15C14.7617 15 17.0003 12.7614 17.0003 9.99995C17.0003 7.23853 14.7617 4.99995 12.0003 4.99995C9.2389 4.99995 7.00032 7.23853 7.00032 9.99995C7.00032 12.7614 9.2389 15 12.0003 15Z" fill="currentColor" stroke="none"/>`,"graduation-cap":`<path d="M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z" /> <path d="M22 10v6" /> <path d="M6 12.5V16a6 3 0 0 0 12 0v-3.5" />`,hammer:`<path d="m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9" /> <path d="m18 15 4-4" /> <path d="m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" />`,hand:`<path d="M12.5002 2C12.2241 2 12.0002 2.22386 12.0002 2.5V12H10.0002V4.5C10.0002 4.22386 9.77634 4 9.5002 4C9.22405 4 9.0002 4.22386 9.0002 4.5V14C8.64653 14 7.00024 14 7.00024 14C6.61911 12.3792 5.64236 11.4407 4.5954 11.3216C4.87926 12.0664 5.36117 13.2592 6.16634 15.0995C7.02511 17.0622 7.89128 18.5218 9.00374 19.4986C10.0783 20.442 11.4586 21 13.5002 21C16.5378 21 19.0002 18.5377 19.0002 15.5002V7C19.0002 6.72386 18.7763 6.5 18.5002 6.5C18.2241 6.5 18.0002 6.72386 18.0002 7V12H16.0002V4C16.0002 3.72386 15.7763 3.5 15.5002 3.5C15.2241 3.5 15.0002 3.72386 15.0002 4V12H13.0002V2.5C13.0002 2.22386 12.7763 2 12.5002 2ZM21.0002 15.5002C21.0002 19.6424 17.6423 23 13.5002 23C11.0417 23 9.17214 22.308 7.68416 21.0015C6.23411 19.7283 5.22528 17.9381 4.33405 15.9012C3.40393 13.7753 2.89004 12.4804 2.60991 11.7235C2.25318 10.7597 2.74616 9.41212 4.08583 9.31846C5.24076 9.23771 6.22061 9.61249 7.0002 10.2587V4.5C7.0002 3.11929 8.11949 2 9.5002 2C9.68522 2 9.86554 2.0201 10.0391 2.05823C10.2477 0.888227 11.2702 0 12.5002 0C13.5602 0 14.4661 0.659694 14.8298 1.59091C15.0431 1.53167 15.268 1.5 15.5002 1.5C16.8809 1.5 18.0002 2.61929 18.0002 4V4.55001C18.1618 4.51722 18.329 4.5 18.5002 4.5C19.8809 4.5 21.0002 5.61929 21.0002 7V15.5002Z" fill="currentColor" stroke="none"/>`,heart:`<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" />`,history:`<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" /> <path d="M12 7v5l4 2" />`,home:`<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" /> <path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />`,"home-fill":`<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-4v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8H5a2 2 0 0 1-2-2Z" fill="currentColor" stroke="none"/>`,hourglass:`<path d="M8 3.5h8c.8 0 1.5.7 1.5 1.5 0 2.6-1.8 4.5-3.8 5.9-.4.3-.7.6-.7 1.1s.3.8.7 1.1c2 1.4 3.8 3.3 3.8 5.9 0 .8-.7 1.5-1.5 1.5H8c-.8 0-1.5-.7-1.5-1.5 0-2.6 1.8-4.5 3.8-5.9.4-.3.7-.6.7-1.1s-.3-.8-.7-1.1C8.3 9.5 6.5 7.6 6.5 5c0-.8.7-1.5 1.5-1.5z" />`,"hourglass-fill":`<path d="M5 22h14" fill="currentColor"/> <path d="M5 2h14" fill="currentColor"/> <path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22" fill="currentColor"/> <path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2" fill="currentColor"/>`,"image-download":`<path d="M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21" /> <path d="m14 19 3 3v-5.5" /> <path d="m17 22 3-3" /> <circle cx="9" cy="9" r="2" />`,"inbox-archive":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" /> <path d="M10 12h4" />`,"inbox-unarchive":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h2" /> <path d="M20 8v11a2 2 0 0 1-2 2h-2" /> <path d="m9 15 3-3 3 3" /> <path d="M12 12v9" />`,"inbox-unarchive-fill":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h2" fill="currentColor"/> <path d="M20 8v11a2 2 0 0 1-2 2h-2" fill="currentColor"/> <path d="m9 15 3-3 3 3" fill="currentColor"/> <path d="M12 12v9" fill="currentColor"/>`,information:`<circle cx="12" cy="12" r="10" /> <path d="M12 16v-4" /> <path d="M12 8h.01" />`,key:`<path d="m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4" /> <path d="m21 2-9.6 9.6" /> <circle cx="7.5" cy="15.5" r="5.5" />`,keyboard:`<path d="M3 17H21V19H3V17ZM3 11H6V14H3V11ZM8 11H11V14H8V11ZM3 5H6V8H3V5ZM13 5H16V8H13V5ZM18 5H21V8H18V5ZM13 11H16V14H13V11ZM18 11H21V14H18V11ZM8 5H11V8H8V5Z" fill="currentColor" stroke="none"/>`,"layout-column":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M12 3v18" />`,"layout-left":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M9 3v18" />`,"layout-left-rounded":`<rect width="18" height="18" x="3" y="3" rx="4" /><path d="M9.5 3v18" />`,"layout-right":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M15 3v18" />`,leaf:`<path d="M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z" /> <path d="M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12" />`,lightbulb:`<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" /> <path d="M9 18h6" /> <path d="M10 22h4" />`,"link-unlink-m":`<path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /> <path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /> <line x1="8" x2="8" y1="2" y2="5" /> <line x1="2" x2="5" y1="8" y2="8" /> <line x1="16" x2="16" y1="19" y2="22" /> <line x1="19" x2="22" y1="16" y2="16" />`,"list-check-2":`<path d="M13 5h8" /> <path d="M13 12h8" /> <path d="M13 19h8" /> <path d="m3 17 2 2 4-4" /> <path d="m3 7 2 2 4-4" />`,"list-check-3":`<path d="M13 5h8" /> <path d="M13 12h8" /> <path d="M13 19h8" /> <path d="m3 17 2 2 4-4" /> <rect x="3" y="4" width="6" height="6" rx="1" />`,"list-unordered":`<path d="M3 5h.01" /> <path d="M3 12h.01" /> <path d="M3 19h.01" /> <path d="M8 5h13" /> <path d="M8 12h13" /> <path d="M8 19h13" />`,loader:`<path d="M12 2v4" /> <path d="m16.2 7.8 2.9-2.9" /> <path d="M18 12h4" /> <path d="m16.2 16.2 2.9 2.9" /> <path d="M12 18v4" /> <path d="m4.9 19.1 2.9-2.9" /> <path d="M2 12h4" /> <path d="m4.9 4.9 2.9 2.9" />`,"loader-4":`<path d="M21 12a9 9 0 1 1-6.219-8.56" />`,lock:`<rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 10 0v4" />`,"lock-2":`<rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 10 0v4" />`,"lock-unlock":`<rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 9.9-1" />`,"loop-right-ai":`<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /> <path d="M21 3v5h-5" /> <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /> <path d="M8 16H3v5" />`,macbook:`<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z" /> <path d="M20.054 15.987H3.946" />`,mail:`<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" /> <rect x="2" y="4" width="20" height="16" rx="2" />`,"mail-open":`<path d="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z" /> <path d="m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10" />`,"menu-2":`<path d="M4 5h16" /> <path d="M4 12h16" /> <path d="M4 19h16" />`,"menu-fold-2":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M9 3v18" /> <path d="m16 15-3-3 3-3" />`,"menu-search":`<path d="m21 21-4.34-4.34" /> <circle cx="11" cy="11" r="8" />`,mic:`<path d="M12 19v3" /> <path d="M19 10v2a7 7 0 0 1-14 0v-2" /> <rect x="9" y="2" width="6" height="13" rx="3" />`,"mic-fill":`<path d="M11.9998 1C14.7612 1 16.9998 3.23858 16.9998 6V10C16.9998 12.7614 14.7612 15 11.9998 15C9.23833 15 6.99976 12.7614 6.99976 10V6C6.99976 3.23858 9.23833 1 11.9998 1ZM3.05469 11H5.07065C5.55588 14.3923 8.47329 17 11.9998 17C15.5262 17 18.4436 14.3923 18.9289 11H20.9448C20.4837 15.1716 17.1714 18.4839 12.9998 18.9451V23H10.9998V18.9451C6.82814 18.4839 3.51584 15.1716 3.05469 11Z" fill="currentColor" stroke="none"/>`,moon:`<path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" />`,more:`<circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" />`,"more-2":`<circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" />`,"more-2-fill":`<circle cx="12" cy="12" r="1" fill="currentColor"/> <circle cx="19" cy="12" r="1" fill="currentColor"/> <circle cx="5" cy="12" r="1" fill="currentColor"/>`,music:`<path d="M9 18V5l12-2v13" /> <circle cx="6" cy="18" r="3" /> <circle cx="18" cy="16" r="3" />`,"node-tree":`<rect x="9" y="3" width="6" height="5" rx="2" /><path d="M12 8v1.5c0 4-6 2-6 6.5M12 9.5c0 4 6 2 6 6.5" /><rect x="3" y="16" width="6" height="5" rx="2" /><rect x="15" y="16" width="6" height="5" rx="2" />`,"notification-3":`<path d="M10.268 21a2 2 0 0 0 3.464 0" /> <path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" />`,palette:`<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" /> <circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /> <circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /> <circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /> <circle cx="8.5" cy="7.5" r=".5" fill="currentColor" />`,pause:`<path d="M6 5H8V19H6V5ZM16 5H18V19H16V5Z" fill="currentColor" stroke="none"/>`,"pause-circle":`<circle cx="12" cy="12" r="10" /> <line x1="10" x2="10" y1="15" y2="9" /> <line x1="14" x2="14" y1="15" y2="9" />`,pencil:`<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /> <path d="m15 5 4 4" />`,"pencil-ai":`<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" />`,"pencil-ai-2":`<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" />`,"picture-in-picture-2":`<path d="M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4" /> <rect width="10" height="7" x="12" y="13" rx="2" />`,"pie-chart":`<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" /> <path d="M21.21 15.89A10 10 0 1 1 8 2.83" />`,play:`<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" />`,"play-list-add":`<path d="M16 5H3" /> <path d="M11 12H3" /> <path d="M16 19H3" /> <path d="M18 9v6" /> <path d="M21 12h-6" />`,plug:`<path d="M12 22v-5" /> <path d="M15 8V2" /> <path d="M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" /> <path d="M9 8V2" />`,"plug-2":`<path d="M12 22v-5" /> <path d="M15 8V2" /> <path d="M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" /> <path d="M9 8V2" />`,pulse:`<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" />`,pushpin:`<path d="M12 17v5" /> <path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" />`,"pushpin-2":`<path d="M12 17v5" /> <path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" />`,"pushpin-2-fill":`<path d="M22.3126 10.1753L20.8984 11.5895L20.1913 10.8824L15.9486 15.125L15.2415 18.6606L13.8273 20.0748L9.58466 15.8321L4.63492 20.7819L3.2207 19.3677L8.17045 14.4179L3.92781 10.1753L5.34202 8.76107L8.87756 8.05396L13.1202 3.81132L12.4131 3.10422L13.8273 1.69L22.3126 10.1753Z" fill="currentColor" />`,question:`<circle cx="12" cy="12" r="10" /> <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" /> <path d="M12 17h.01" />`,"record-circle":`<circle cx="12" cy="12" r="10" /> <circle cx="12" cy="12" r="1" />`,refresh:`<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /> <path d="M21 3v5h-5" /> <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /> <path d="M8 16H3v5" />`,restart:`<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" />`,robot:`<path d="M12 8V4H8" /> <rect width="16" height="12" x="4" y="8" rx="2" /> <path d="M2 14h2" /> <path d="M20 14h2" /> <path d="M15 13v2" /> <path d="M9 13v2" />`,"robot-2":`<path d="M12 8V4H8" /> <rect width="16" height="12" x="4" y="8" rx="2" /> <path d="M2 14h2" /> <path d="M20 14h2" /> <path d="M15 13v2" /> <path d="M9 13v2" />`,rocket:`<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" /> <path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09" /> <path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z" /> <path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05" />`,"save-3":`<path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" /> <path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" /> <path d="M7 3v4a1 1 0 0 0 1 1h7" />`,"scales-3":`<path d="M12 3v18" /> <path d="m19 8 3 8a5 5 0 0 1-6 0zV7" /> <path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1" /> <path d="m5 8 3 8a5 5 0 0 1-6 0zV7" /> <path d="M7 21h10" />`,"scan-2":`<path d="M3 7V5a2 2 0 0 1 2-2h2" /> <path d="M17 3h2a2 2 0 0 1 2 2v2" /> <path d="M21 17v2a2 2 0 0 1-2 2h-2" /> <path d="M7 21H5a2 2 0 0 1-2-2v-2" />`,scissors:`<circle cx="6" cy="6" r="3" /> <path d="M8.12 8.12 12 12" /> <path d="M20 4 8.12 15.88" /> <circle cx="6" cy="18" r="3" /> <path d="M14.8 14.8 20 20" />`,search:`<path d="m21 21-4.34-4.34" /> <circle cx="11" cy="11" r="8" />`,"search-eye":`<path d="M3 7V5a2 2 0 0 1 2-2h2" /> <path d="M17 3h2a2 2 0 0 1 2 2v2" /> <path d="M21 17v2a2 2 0 0 1-2 2h-2" /> <path d="M7 21H5a2 2 0 0 1-2-2v-2" /> <circle cx="12" cy="12" r="3" /> <path d="m16 16-1.9-1.9" />`,"send-plane":`<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" /> <path d="m21.854 2.147-10.94 10.939" />`,"send-plane-2":`<path d="M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z" /> <path d="M6 12h16" />`,server:`<rect width="20" height="8" x="2" y="2" rx="2" ry="2" /> <rect width="20" height="8" x="2" y="14" rx="2" ry="2" /> <line x1="6" x2="6.01" y1="6" y2="6" /> <line x1="6" x2="6.01" y1="18" y2="18" />`,"settings-2":`<path d="M14 17H5" /> <path d="M19 7h-9" /> <circle cx="17" cy="17" r="3" /> <circle cx="7" cy="7" r="3" />`,"settings-3":`<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" /> <circle cx="12" cy="12" r="3" />`,"share-2":`<path d="M12 2v13" /> <path d="m16 6-4-4-4 4" /> <path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" />`,shield:`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />`,"shield-check":`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /> <path d="m9 12 2 2 4-4" />`,"shield-keyhole":`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />`,"shield-user":`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /> <path d="M6.376 18.91a6 6 0 0 1 11.249.003" /> <circle cx="12" cy="11" r="4" />`,shuffle:`<path d="m18 14 4 4-4 4" /> <path d="m18 2 4 4-4 4" /> <path d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22" /> <path d="M2 6h1.972a4 4 0 0 1 3.6 2.2" /> <path d="M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45" />`,"slash-commands-2":`<path d="M12 19h8" /> <path d="m4 17 6-6-6-6" />`,smartphone:`<rect width="14" height="20" x="5" y="2" rx="2" ry="2" /> <path d="M12 18h.01" />`,sparkling:`<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" />`,"split-cells-horizontal":`<path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3" /> <path d="M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3" /> <line x1="12" x2="12" y1="4" y2="20" />`,stack:`<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" /> <path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" /> <path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" />`,star:`<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" />`,"star-fill":`<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" fill="currentColor"/>`,"sticky-note":`<path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z" /> <path d="M15 3v5a1 1 0 0 0 1 1h5" />`,stop:`<rect width="18" height="18" x="3" y="3" rx="2" />`,"stop-circle":`<circle cx="12" cy="12" r="9" /><rect x="9.25" y="9.25" width="5.5" height="5.5" rx="1.25" />`,subtract:`<path d="M5 12h14" />`,survey:`<rect width="8" height="4" x="8" y="2" rx="1" ry="1" /> <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" /> <path d="M12 11h4" /> <path d="M12 16h4" /> <path d="M8 11h.01" /> <path d="M8 16h.01" />`,target:`<circle cx="12" cy="12" r="10" /> <circle cx="12" cy="12" r="6" /> <circle cx="12" cy="12" r="2" />`,task:`<path d="M21.801 10A10 10 0 1 1 17 3.335" /> <path d="m9 11 3 3L22 4" />`,terminal:`<path d="M12 19h8" /> <path d="m4 17 6-6-6-6" />`,"terminal-box":`<path d="M12 19h8" /> <path d="m4 17 6-6-6-6" />`,"terminal-window":`<path d="m7 11 2-2-2-2" /> <path d="M11 13h4" /> <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />`,text:`<path d="M12 4v16" /> <path d="M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" /> <path d="M9 20h6" />`,"text-wrap":`<path d="m16 16-3 3 3 3" /> <path d="M3 12h14.5a1 1 0 0 1 0 7H13" /> <path d="M3 19h6" /> <path d="M3 5h18" />`,time:`<circle cx="12" cy="12" r="9" /><path d="M12 7v5.25l3.25 1.75" />`,timer:`<line x1="10" x2="14" y1="2" y2="2" /> <line x1="12" x2="15" y1="14" y2="11" /> <circle cx="12" cy="14" r="8" />`,tools:`<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" />`,"twitter-xfill":`<path d="M17.6874 3.0625L12.6907 8.77425L8.37045 3.0625H2.11328L9.58961 12.8387L2.50378 20.9375H5.53795L11.0068 14.6886L15.7863 20.9375H21.8885L14.095 10.6342L20.7198 3.0625H17.6874ZM16.6232 19.1225L5.65436 4.78217H7.45745L18.3034 19.1225H16.6232Z" fill="currentColor"/>`,"undo-2":`<path d="M9 14 4 9l5-5" /> <path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" />`,unpin:`<path d="M12 17v5" /> <path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" /> <path d="m2 2 20 20" /> <path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" />`,user:`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> <circle cx="12" cy="7" r="4" />`,"user-3":`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> <circle cx="12" cy="7" r="4" />`,"video-chat":`<path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /> <rect x="2" y="6" width="14" height="12" rx="2" />`,"volume-up":`<path d="M11.5 4.25a.75.75 0 0 0-1.25-.56L6 7.5H3.5A1.5 1.5 0 0 0 2 9v6a1.5 1.5 0 0 0 1.5 1.5H6l4.25 3.81a.75.75 0 0 0 1.25-.56Z" /><path d="M16 8a6 6 0 0 1 0 8M19 4.5a10.5 10.5 0 0 1 0 15" />`,"volume-up-fill":`<path d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" fill="currentColor" stroke="none"/>`,window:`<rect x="2" y="4" width="20" height="16" rx="2" /> <path d="M10 4v4" /> <path d="M2 8h20" /> <path d="M6 4v4" />`},o=t(),s=`yuri-icon-sprite-v2`,c=1.5,l=(()=>{let e=2166136261;for(let[t,n]of Object.entries(a)){let r=`${t}:${n};`;for(let t=0;t<r.length;t+=1)e=Math.imul(e^r.charCodeAt(t),16777619)}return(e>>>0).toString(36)})(),u=!1,d=new Set,f=null;function p(e){if(u&&d.has(e)&&f===l||typeof document>`u`)return;let t=document.body;if(!t)return;let n=document.getElementById(s);if(n){let t=new Set(Array.from(n.querySelectorAll(`symbol[id^="yuri-"]`),e=>e.id.slice(3)));if(!n.innerHTML.includes(`--yuri-icon-stroke`)||n.dataset.spriteSignature!==l||!t.has(e))n.remove();else{u=!0,d=t,f=l;return}}let r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.id=s,r.setAttribute(`aria-hidden`,`true`),r.dataset.spriteSignature=l,r.style.display=`none`,r.innerHTML=Object.entries(a).map(([e,t])=>`<symbol id="yuri-${e}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--yuri-icon-stroke, ${c})" stroke-linecap="round" stroke-linejoin="round">${t}</symbol>`).join(``),t.insertBefore(r,t.firstChild),u=!0,d=new Set(Object.keys(a)),f=l}var m=i.memo(({name:e,className:t,weight:n=`regular`,style:i,...a})=>{typeof document<`u`&&p(e);let s=n===`medium`?2:c;return(0,o.jsx)(`svg`,{className:r(`yuri-icon`,t),viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,stroke:`currentColor`,strokeWidth:s,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,style:{"--yuri-icon-stroke":s,...i},...a,children:(0,o.jsx)(`use`,{href:`#yuri-${e}`})})});m.displayName=`Icon`;export{m as n,a as r,c as t};
@@ -1 +0,0 @@
1
- import{ot as e}from"./vendor-base-ui-wXsskyKm.js";import{n as t}from"./vendor-react-BkccXcWz.js";import{o as n}from"./session-startup-barrier-DT-hIBRf.js";import{t as r}from"./i18n-DXc6czdR.js";/* empty css */var i=t(),a=e();function o(e){let t=(0,i.c)(7),{className:o}=e,{t:s}=r(),c;t[0]===o?c=t[1]:(c=n(`yuri-image-loading`,o),t[0]=o,t[1]=c);let l;t[2]===s?l=t[3]:(l=s(`chat.fileAttachment.image.loading`),t[2]=s,t[3]=l);let u;return t[4]!==c||t[5]!==l?(u=(0,a.jsx)(`span`,{className:c,role:`status`,"aria-label":l}),t[4]=c,t[5]=l,t[6]=u):u=t[6],u}export{o as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MarkstreamRendererImpl-BUk_c3g1.js","assets/rolldown-runtime-hePW80VL.js","assets/platform-CiUKDeXd.js","assets/runtime-auth-DA-qfGHk.js","assets/runtime-switch-DEPKHgdL.js","assets/runtimeAPIRegistry-C2VogTny.js","assets/vendor-pathe-vBmvQE8f.js","assets/vendor-base-ui-wXsskyKm.js","assets/vendor-react-BkccXcWz.js","assets/runtime-file-resource-Bc_ss-sW.js","assets/runtime-fetch-V-iMWR8t.js","assets/reasoning-projection-client-BEhVknv9.js","assets/vendor-tanstack-react-query-DIb_ItL-.js","assets/vendor-tanstack-query-core-BSjXNgF_.js","assets/yuriEvents-BFrD5fMU.js","assets/path-utils-jGozTg9d.js","assets/vendor-reactuses-core-DjKFMfz7.js","assets/vendor-lodash-es-BS45jPoZ.js","assets/vendor-js-cookie-hSOiFTtX.js","assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js","assets/runtime-file-store-BVRgEtI-.js","assets/brand-storage-migration-Bhz6UOBJ.js","assets/useUIStore-C3ewjGgP.js","assets/vendor-zustand-CTekDqaS.js","assets/brand-storage-bootstrap-D4BW3w-M.js","assets/safeStorage-DTOhKN0V.js","assets/useMobileHtmlPreviewStore-BYunNOBo.js","assets/vendor-markstream-react-BqCCtUAV.js","assets/vendor-markstream-core-Cm34iPLL.js","assets/vendor-floating-ui-dom-BHhLtF5l.js","assets/vendor-floating-ui-core-Co1I1lFV.js","assets/session-startup-barrier-DT-hIBRf.js","assets/vendor-class-variance-authority-BLUaYARZ.js","assets/vendor-tailwind-merge-BicNWLTg.js","assets/ui-DrAJTWV6.js","assets/gitApiHttp-Dd-FwgCq.js","assets/client-B_907PBv.js","assets/vendor-opencode-client-BM2r1f0o.js","assets/vendor-effect-X1Hqc7ba.js","assets/prompt-attachment-upload-B5DHrw6U.js","assets/uuid-D-SDZijH.js","assets/vendor-sonner-DX3nfJx4.js","assets/remoteProjectQueries-C8382jM8.js","assets/i18n-DXc6czdR.js","assets/runtime-ead7P81A.js","assets/bootstrap-eLlfzqAI.js","assets/store-C1ifDY0C.js","assets/tour-CMXP3Kif.js","assets/vendor-zod-DZzbCm1s.js","assets/vendor-opencode-schema-DWT45VBX.js","assets/input-store-BSJBQTMi.js","assets/toolHelpers-iEHVHQ9p.js","assets/useAssistantUIStore-CpJZ4Rqs.js","assets/vendor-framer-motion-D5NyyC73.js","assets/tooltip-CpTbxEOE.js","assets/useThemeSystem-BIXghnHj.js","assets/useEffectiveDirectory-BxolHzt4.js","assets/LoadingImage-Df22Rkor.js","assets/ImageLoadingPlaceholder-DgM_EFHn.js","assets/image-loading-DA9JEHD8.css","assets/markdownHeightCache-CHGGNhWI.js","assets/dualLimitLru-D8Sphgua.js","assets/imageSource-BR4C9TuS.js","assets/FadeInOnReveal-BYHr1gqj.js","assets/useStreamingTextThrottle-DGAjmaMZ.js","assets/MarkdownRendererImpl-BZc_jUrV.js","assets/vendor-katex-DNVSTX6g.js","assets/themes-BgDJcxRc.js","assets/inlineMessageLinks-DC78iKO5.js","assets/vendor-marked-S3gCOYp1.js","assets/markdownTheme-D84XyNiT.js","assets/vendor-pierre-diffs-B0OmIhMO.js","assets/vendor-hast-util-to-html-Bw_SgZ1t.js","assets/vendor-character-entities-legacy-Wut6vMuj.js","assets/vendor-character-entities-html4-DlN_yAFd.js","assets/vendor-ccount-CyGsA0u7.js","assets/vendor-comma-separated-tokens-B9ouxNNS.js","assets/vendor-oniguruma-to-es-CrHzjjSU.js","assets/vendor-oniguruma-parser-D2DIvhSP.js","assets/vendor-diff-Dq7CZNim.js","assets/vendor-lru_map-BMOrLc9L.js","assets/markdown-worker-oBGEB9Eg.js","assets/vendor-morphdom-BbKiNDAu.js","assets/vendor-dompurify-CeJNOzik.js","assets/vendor-pele-C1WTNWUm.js","assets/vendor-remend-C3cXc-tf.js","assets/fileReferenceActions-TmbrIHBI.js","assets/fileReferenceParser-1HHDBUum.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{a as t}from"./vendor-zustand-CTekDqaS.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import"./brand-storage-bootstrap-D4BW3w-M.js";import{n as i}from"./vendor-react-BkccXcWz.js";import{o as a}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";import{o}from"./session-startup-barrier-DT-hIBRf.js";import{t as s}from"./useEffectiveDirectory-BxolHzt4.js";import{i as c,n as l,t as u}from"./markdownHeightCache-CHGGNhWI.js";var d=i(),f=e(r(),1),p=`yuri:chunk-import-reload`,m=250,h=3e4,g=[/Importing a module script failed/i,/Failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/Loading chunk \S+ failed/i,/ChunkLoadError/i];function _(e){if(e instanceof Error)return`${e.name}\n${e.message}\n${e.stack??``}`;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function v(e){let t=_(e);return g.some(e=>e.test(t))}function y(e){return`0.3.3:${_(e).slice(0,500)}`}function b(e){if(typeof window>`u`)return;let t=Date.now(),n=y(e),r=null;try{let e=window.sessionStorage.getItem(p);if(e)try{r=JSON.parse(e)}catch{r=null}}catch{return}let i=typeof r?.timestamp==`number`?r.timestamp:0;if(!(r?.signature===n&&t-i<h)){try{window.sessionStorage.setItem(p,JSON.stringify({signature:n,timestamp:t}))}catch{return}console.error(`[refresh-debug] chunk-import-reload`,{error:_(e).slice(0,1e3)}),window.setTimeout(()=>{window.location.reload()},0)}}async function x(e,t={}){let n=t.retries??1,r;for(let t=0;t<=n;t+=1)try{return await e()}catch(e){if(r=e,!v(e)||t>=n)break;await new Promise(e=>setTimeout(e,m*(t+1)))}throw v(r)&&b(r),r}var S=e=>(0,f.lazy)(()=>x(e)),C=(e,t)=>{try{let n=t??(typeof localStorage>`u`?null:localStorage);return!n||n.getItem(e)!==`0`}catch{return!0}},w=(e,t)=>{try{typeof localStorage<`u`&&localStorage.setItem(e,t?`1`:`0`)}catch{}},T=`yuri:markstream-react`,E=e=>C(T,e),D=t(e=>({markstreamReactEnabled:E(),setMarkstreamReactEnabled:t=>{w(T,t),e({markstreamReactEnabled:t})}})),O=null,k=()=>(O??=a(()=>import(`./MarkstreamRendererImpl-BUk_c3g1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87])).catch(e=>{throw O=null,e}),O),A=()=>{k().catch(()=>void 0)},j=null,M=()=>(j??=a(()=>import(`./MarkdownRendererImpl-BZc_jUrV.js`).then(e=>e.n),__vite__mapDeps([65,1,4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,66,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55,67,56,60,61,62,68,69,70,71,72,73,74,75,76,77,78,79,80,81,63,82,83,84,85,86,87,59])).catch(e=>{throw j=null,e}),j),N=()=>{E()?A():M().catch(()=>void 0)},P=class extends f.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){console.warn(`[markstream-react] falling back to the current Markdown renderer`,e)}render(){return this.state.hasError?this.props.fallback:this.props.children}},F=f.createContext(!0),I=()=>f.useContext(F),L=(e,t)=>!!t?.toLowerCase().startsWith(`video/`)||/^data:video\//i.test(e)||/\.(?:mp4|m4v|webm|mov|ogv|ogg)(?:[?#]|$)/i.test(e),R=n(),z=S(()=>M().then(e=>({default:e.MarkdownRenderer}))),B=S(()=>k().then(e=>({default:e.MarkstreamRenderer}))),V=S(()=>M().then(e=>({default:e.SimpleMarkdownRenderer}))),H=e=>e===`tool`?`markdown-content markdown-tool`:e===`reasoning`?`markdown-content markdown-reasoning`:`markdown-content leading-relaxed`,U=e=>{let t=(0,d.c)(15),n=D(K),r=typeof e.content==`string`?e.content:``,i=typeof e.variant==`string`?e.variant:`assistant`,a;t[0]!==r||t[1]!==n||t[2]!==e.reserveMeasuredHeight||t[3]!==i?(a=e.reserveMeasuredHeight?l(u(r,n?`markstream:${i}`:i)):void 0,t[0]=r,t[1]=n,t[2]=e.reserveMeasuredHeight,t[3]=i,t[4]=a):a=t[4];let s=a,f;t[5]!==e.className||t[6]!==e.variant?(f=o(`relative break-words w-full min-w-0`,H(e.variant),typeof e.className==`string`?e.className:void 0),t[5]=e.className,t[6]=e.variant,t[7]=f):f=t[7];let p;t[8]!==r||t[9]!==e.animated||t[10]!==s?(p=(0,R.jsx)(c,{animated:e.animated,content:r,reservedHeight:s}),t[8]=r,t[9]=e.animated,t[10]=s,t[11]=p):p=t[11];let m;return t[12]!==f||t[13]!==p?(m=(0,R.jsx)(`div`,{className:f,"aria-busy":`true`,"data-markdown-hydration":`deferred`,"data-markdown-ready":`false`,children:p}),t[12]=f,t[13]=p,t[14]=m):m=t[14],m},W=e=>{let t=(0,d.c)(13),n=I(),r=D(q);if(!n&&e.isStreaming!==!0){let n;return t[0]===e?n=t[1]:(n=(0,R.jsx)(U,{...e,animated:!1,reserveMeasuredHeight:!0}),t[0]=e,t[1]=n),n}let i;t[2]===e?i=t[3]:(i=(0,R.jsx)(f.Suspense,{fallback:(0,R.jsx)(U,{...e,reserveMeasuredHeight:!0}),children:(0,R.jsx)(z,{...e})}),t[2]=e,t[3]=i);let a=i,o;t[4]!==a||t[5]!==r||t[6]!==e?(o=r?(0,R.jsx)(P,{fallback:a,children:(0,R.jsx)(f.Suspense,{fallback:(0,R.jsx)(U,{...e,reserveMeasuredHeight:!0}),children:(0,R.jsx)(B,{...e})})}):a,t[4]=a,t[5]=r,t[6]=e,t[7]=o):o=t[7];let c=o,l;t[8]===e?l=t[9]:(l=t=>{if(!e.onShowPopup||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let n=t.target instanceof Element?t.target.closest(`a[href]`):null,r=n?.getAttribute(`href`);if(!r||!L(r))return;t.preventDefault(),t.stopPropagation();let i=n?.textContent?.trim()||r.split(/[/?#]/).filter(Boolean).pop()||r;e.onShowPopup({open:!0,title:i,content:``,video:{url:r,filename:i,directory:s()??``}})},t[8]=e,t[9]=l);let u;return t[10]!==c||t[11]!==l?(u=(0,R.jsx)(`div`,{className:`contents`,onClickCapture:l,children:c}),t[10]=c,t[11]=l,t[12]=u):u=t[12],u},G=e=>{let t=(0,d.c)(4);if(!I()){let n;return t[0]===e?n=t[1]:(n=(0,R.jsx)(U,{...e,animated:!1}),t[0]=e,t[1]=n),n}let n;return t[2]===e?n=t[3]:(n=(0,R.jsx)(f.Suspense,{fallback:(0,R.jsx)(U,{...e}),children:(0,R.jsx)(V,{...e})}),t[2]=e,t[3]=n),n};function K(e){return e.markstreamReactEnabled}function q(e){return e.markstreamReactEnabled}export{N as a,F as i,G as n,S as o,L as r,W as t};
@@ -1,3 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./platform-CiUKDeXd.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{n as i}from"./vendor-react-BkccXcWz.js";import{E as a,R as o}from"./runtime-file-resource-Bc_ss-sW.js";import{i as s,m as c,r as l}from"./vendor-reactuses-core-DjKFMfz7.js";import{r as u}from"./useUIStore-C3ewjGgP.js";import{i as d,o as f}from"./useMobileHtmlPreviewStore-BYunNOBo.js";import{a as p,i as m,n as h,o as g,r as _,t as ee}from"./vendor-markstream-react-BqCCtUAV.js";import{o as v}from"./session-startup-barrier-DT-hIBRf.js";import{Mr as y}from"./ui-DrAJTWV6.js";import{a as b,t as x}from"./vendor-framer-motion-D5NyyC73.js";import{i as S,n as C,t as w}from"./tooltip-CpTbxEOE.js";import{t as te}from"./useThemeSystem-BIXghnHj.js";import{n as T}from"./useEffectiveDirectory-BxolHzt4.js";import{t as E}from"./LoadingImage-Df22Rkor.js";import{r as ne,t as re}from"./markdownHeightCache-CHGGNhWI.js";import{o as D}from"./imageSource-BR4C9TuS.js";import{r as O}from"./FadeInOnReveal-BYHr1gqj.js";import{t as k}from"./useStreamingTextThrottle-DGAjmaMZ.js";import{r as A,t as j}from"./MarkdownRendererImpl-BZc_jUrV.js";import{n as M}from"./fileReferenceParser-1HHDBUum.js";import{a as N,c as P,f as F,h as I,i as ie,l as ae,m as L,o as R,s as oe,t as se}from"./fileReferenceActions-TmbrIHBI.js";var z=e(r(),1),B=i(),V=`img:not([data-md-link-favicon="true"])`,H=e=>e.getAttribute(`data-md-image-source`)??e.getAttribute(`src`)??``,ce=(e,t)=>{if(e.defaultPrevented||e.button!==0||e.altKey||e.shiftKey)return;let n=e.target;if(!(n instanceof Element))return;if(e.metaKey||e.ctrlKey){let e=n.closest(`a[href]`);if(!(e instanceof HTMLAnchorElement)||!I(e.getAttribute(`href`)??``))return}let r=n.closest(V);if(r instanceof HTMLImageElement&&t.onShowPopup){let n=e.currentTarget;if(!(n instanceof HTMLElement))return;let i=Array.from(n.querySelectorAll(V)).map(e=>({url:H(e),filename:e.alt||H(e)||void 0})).filter(e=>e.url),a=H(r),o=i.findIndex(e=>e.url===a);if(!a)return;e.preventDefault(),e.stopPropagation(),t.onShowPopup({open:!0,title:r.alt||a,content:``,previewSource:r,image:{url:a,...t.effectiveDirectory?{directory:t.effectiveDirectory}:{},filename:r.alt||a,gallery:i,index:o>=0?o:0}});return}if(t.fileReference){let r=n.closest(F);if(r instanceof HTMLElement){e.preventDefault(),e.stopPropagation(),R(r,t.fileReference);return}}let i=n.closest(`a[href]`);if(!(i instanceof HTMLAnchorElement))return;let a=i.getAttribute(`href`)??``;if(I(a)){e.preventDefault(),e.stopPropagation(),t.fileReference&&R(i,t.fileReference);return}if(!d(a))return;e.preventDefault(),e.stopPropagation();let o=(t.effectiveDirectory||``).trim();if(!y()&&o&&t.openInAppBrowser){t.openInAppBrowser(o,a);return}f(a)},le=(e,t)=>{if(e.key!==`Enter`&&e.key!==` `||!t.fileReference)return;let n=e.target;if(!(n instanceof Element))return;let r=n.closest(F);!(r instanceof HTMLElement)||r.getAttribute(`data-yuri-file-link`)!==`true`||(e.preventDefault(),e.stopPropagation(),R(r,t.fileReference))},ue=(e,t)=>{let n=t>=2?e.slice(t-2,t):``;return(t>=1?e.charAt(t-1):``)===`:`||n===`:/`},U=e=>{if(!e.includes(`/`)||!e.includes(`.`))return[{kind:`text`,value:e}];M.lastIndex=0;let t=[],n=0,r=M.exec(e);for(;r;){let i=r[0];if(!i||ue(e,r.index)||!L(i)){r=M.exec(e);continue}r.index>n&&t.push({kind:`text`,value:e.slice(n,r.index)}),t.push({kind:`path`,value:i}),n=r.index+i.length,r=M.exec(e)}return n===0?[{kind:`text`,value:e}]:(n<e.length&&t.push({kind:`text`,value:e.slice(n)}),t)},W=z.createContext({messageId:`markstream`,isStreaming:!1,disableStreamAnimation:!1,variant:`assistant`,enableFileReferences:!0}),G=()=>z.useContext(W),K=n(),q=24,J=4,de=new Intl.Segmenter(void 0,{granularity:`grapheme`});function fe({node:e}){let t=G(),n=x(),r=t.isStreaming&&!t.disableStreamAnimation&&!n,i=e.content??``,a=z.useRef(i),o=z.useRef(i),s=z.useRef(null),c=z.useRef(new Map);return z.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=t=>{c.current.delete(t),t.parentNode===e&&(t.replaceWith(document.createTextNode(t.textContent??``)),e.normalize())},n=()=>{for(let[e,n]of c.current)n.stop(),t(e)};if(!r||!i.startsWith(o.current)){n(),e.textContent=i,o.current=i;return}let a=i.slice(o.current.length);if(o.current=i,!a)return;let l=Array.from(de.segment(a),e=>e.segment),u=Math.max(0,l.length-96),d=[];for(let e=u;e<l.length;e+=J)d.push(l.slice(e,e+J).join(``));c.current.size+d.length>q&&n(),u>0&&e.appendChild(document.createTextNode(l.slice(0,u).join(``))),d.forEach((n,r)=>{let i=document.createElement(`span`);i.dataset.motionStreamChunk=``,i.textContent=n,i.style.opacity=`0`,e.appendChild(i);let a=b([i],{opacity:[0,1]},{duration:.16,delay:Math.min(r*.008,.08),ease:`easeOut`});c.current.set(i,a),a.then(()=>t(i))})},[i,r]),z.useLayoutEffect(()=>{let e=c.current;return()=>{for(let t of e.values())t.stop();e.clear()}},[]),(0,K.jsx)(`span`,{ref:s,className:v(`text-node whitespace-pre-wrap break-words`,e.center&&`text-node-center`),children:a.current})}var Y=z.createContext({enabled:!1,insideLink:!1,isMobileSurface:!1,effectiveDirectory:``,preferRuntimeEditor:!1,slots:{used:0,limit:0}}),pe=e=>{let t=(0,B.c)(14),{enabled:n,effectiveDirectory:r,editor:i,preferRuntimeEditor:a,onShowPopup:o,content:s,children:c}=e,l=n?s:``,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=y(),t[0]=u):u=t[0];let d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=ie(),t[1]=d):d=t[1];let f;t[2]===l?f=t[3]:(f={content:l,used:0,limit:d},t[2]=l,t[3]=f);let p;t[4]!==i||t[5]!==r||t[6]!==n||t[7]!==o||t[8]!==a||t[9]!==f?(p={enabled:n,insideLink:!1,isMobileSurface:u,effectiveDirectory:r,editor:i,preferRuntimeEditor:a,onShowPopup:o,slots:f},t[4]=i,t[5]=r,t[6]=n,t[7]=o,t[8]=a,t[9]=f,t[10]=p):p=t[10];let m=p,h;return t[11]!==c||t[12]!==m?(h=(0,K.jsx)(Y.Provider,{value:m,children:c}),t[11]=c,t[12]=m,t[13]=h):h=t[13],h},X=({raw:e,referenceKind:t,children:n})=>{let r=z.useContext(Y),i=N(e,r.effectiveDirectory,t),a=z.useRef(!1);r.enabled&&i&&!a.current&&r.slots.used<r.slots.limit&&(r.slots.used+=1,a.current=!0);let[o,s]=z.useState(i?oe(i.resolvedPath,r.effectiveDirectory)??null:null),c=i?.resolvedPath;if(z.useEffect(()=>{if(!r.enabled||!c||!a.current)return;let e=!1;return P(c,r.effectiveDirectory).then(t=>{e||s(t)}).catch(()=>{}),()=>{e=!0}},[r.enabled,r.effectiveDirectory,c]),!i)return n??e;let l=!!(a.current&&o&&ae(i.resolvedPath,o,r.isMobileSurface));return(0,K.jsx)(`span`,{"data-yuri-block-path-token":`true`,...l?{"data-yuri-file-link":`true`,"data-yuri-file-ref":e,"data-yuri-file-path":i.resolvedPath,"data-yuri-file-binary":String(o?.isBinary===!0),title:se,...n?{}:{role:`button`,tabIndex:0}}:{},children:n??e})};function me(e){let t=(0,B.c)(18),n=z.useContext(Y),r=G(),i;t[0]===r?i=t[1]:(i=()=>r.isStreaming&&!r.disableStreamAnimation&&r.variant!==`tool`?fe:_,t[0]=r,t[1]=i);let[a]=z.useState(i),o=e.node.content??``;if(!n.enabled||n.insideLink){let n;return t[2]!==a||t[3]!==e?(n=(0,K.jsx)(a,{...e,fade:!1}),t[2]=a,t[3]=e,t[4]=n):n=t[4],n}let s,c;if(t[5]!==a||t[6]!==o||t[7]!==e){c=Symbol.for(`react.early_return_sentinel`);bb0:{let n=U(o);if(n.length===1&&n[0]?.kind!==`path`){let n;t[10]!==a||t[11]!==e?(n=(0,K.jsx)(a,{...e,fade:!1}),t[10]=a,t[11]=e,t[12]=n):n=t[12],c=n;break bb0}let r;t[13]!==a||t[14]!==e?(r=(t,n)=>t.kind===`path`?(0,K.jsx)(X,{raw:t.value},`path-${n}-${t.value}`):(0,K.jsx)(a,{...e,fade:!1,node:{...e.node,content:t.value}},`text-${n}`),t[13]=a,t[14]=e,t[15]=r):r=t[15],s=n.map(r)}t[5]=a,t[6]=o,t[7]=e,t[8]=s,t[9]=c}else s=t[8],c=t[9];if(c!==Symbol.for(`react.early_return_sentinel`))return c;let l;return t[16]===s?l=t[17]:(l=(0,K.jsx)(K.Fragment,{children:s}),t[16]=s,t[17]=l),l}function he(e){let t=(0,B.c)(7),n=z.useContext(Y),r=e.node.code??``;if(!n.enabled||!L(r)){let n;return t[0]===e?n=t[1]:(n=(0,K.jsx)(m,{...e}),t[0]=e,t[1]=n),n}let i;t[2]===r?i=t[3]:(i=(0,K.jsx)(X,{raw:r}),t[2]=r,t[3]=i);let a;return t[4]!==e||t[5]!==i?(a=(0,K.jsx)(m,{...e,children:i}),t[4]=e,t[5]=i,t[6]=a):a=t[6],a}function ge(e){let t=(0,B.c)(20),n=z.useContext(Y),r=e.node.href??``,i;t[0]!==n.enabled||t[1]!==r?(i=n.enabled&&L(r),t[0]=n.enabled,t[1]=r,t[2]=i):i=t[2];let a=i,o;t[3]===e?o=t[4]:(o=(0,K.jsx)(h,{...e,showTooltip:!1}),t[3]=e,t[4]=o);let s=o,c;t[5]!==n.isMobileSurface||t[6]!==r||t[7]!==s||t[8]!==e.node.title||t[9]!==e.showTooltip?(c=n.isMobileSurface||e.showTooltip===!1?s:(0,K.jsxs)(w,{children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsx)(`span`,{children:s})}),(0,K.jsx)(C,{children:e.node.title||r})]}),t[5]=n.isMobileSurface,t[6]=r,t[7]=s,t[8]=e.node.title,t[9]=e.showTooltip,t[10]=c):c=t[10];let l=c,u;t[11]===n?u=t[12]:(u={...n,insideLink:!0},t[11]=n,t[12]=u);let d;t[13]!==l||t[14]!==a||t[15]!==r?(d=a?(0,K.jsx)(X,{raw:r,referenceKind:`href`,children:l}):l,t[13]=l,t[14]=a,t[15]=r,t[16]=d):d=t[16];let f;return t[17]!==u||t[18]!==d?(f=(0,K.jsx)(Y.Provider,{value:u,children:d}),t[17]=u,t[18]=d,t[19]=f):f=t[19],f}var _e=/^[ \t]{0,3}(`{3,}|~{3,})/,ve=e=>{if(typeof e!=`string`||e.length===0)return!1;let t=e.split(/\r?\n/,1)[0]??``;return _e.test(t)},ye=e=>{let t=0,n=0,r=e.match(/[`~]+/g)??[];for(let e of r)e[0]==="`"?t=Math.max(t,e.length):n=Math.max(n,e.length);return t>=3?"`".repeat(Math.max(3,t+1)):n>=3&&t===0?"```":n>=3?`~`.repeat(Math.max(3,n+1)):"```"},be=e=>{let t=typeof e.raw==`string`?e.raw:``;if(ve(t))return t.endsWith(`
2
- `)?t:`${t}\n`;let n=(e.language??``).trim(),r=e.code??``,i=ye(r),a=r.endsWith(`
3
- `)?r:`${r}\n`;return e.loading?`${i}${n}\n${a}`:`${i}${n}\n${a}${i}\n`},xe=e=>{let t=e.partId?`part-${e.partId}`:`body`,n=e.indexKey!==void 0&&e.indexKey!==null&&String(e.indexKey).length>0?String(e.indexKey):e.language&&e.language.length>0?e.language:`code`;return`${e.messageId}:${t}:code:${n}`};function Se(e,t){let n=5381;for(let e=0;e<t.length;e+=1)n=Math.imul(n,33)^t.charCodeAt(e);return`${e}:${(n>>>0).toString(36)}:${t.length}`}function Z(e){let t=(0,B.c)(7),n;if(t[0]!==e.indexKey||t[1]!==e.node.code||t[2]!==e.node.language){let r=(e.node.language??``).trim().toLowerCase()||`diagram`;n=e.indexKey??Se(r,e.node.code??``),t[0]=e.indexKey,t[1]=e.node.code,t[2]=e.node.language,t[3]=n}else n=t[3];let r=n,i;return t[4]!==r||t[5]!==e?(i=(0,K.jsx)(Q,{...e,indexKey:r}),t[4]=r,t[5]=e,t[6]=i):i=t[6],i}function Q(e){let t=(0,B.c)(21),n=G(),r=e.node.language??``,i=e.node.code??``,a=e.node.raw??``,o=e.node.loading===!0||e.loading===!0,s;t[0]!==i||t[1]!==r||t[2]!==o||t[3]!==a?(s=be({type:`code_block`,language:r,code:i,raw:a,loading:o}),t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s):s=t[4];let c=s,l=n.isStreaming||e.loading===!0||e.node.loading===!0,u;t[5]!==n.messageId||t[6]!==n.partId||t[7]!==e.indexKey||t[8]!==e.node.language?(u=xe({messageId:n.messageId,partId:n.partId,indexKey:e.indexKey,language:e.node.language}),t[5]=n.messageId,t[6]=n.partId,t[7]=e.indexKey,t[8]=e.node.language,t[9]=u):u=t[9];let d=u,f=n.enableFileReferences&&!l,p;t[10]!==c||t[11]!==n.disableStreamAnimation||t[12]!==n.onShowPopup||t[13]!==n.variant||t[14]!==d||t[15]!==l||t[16]!==f?(p=(0,K.jsx)(j,{content:c,messageId:d,isAnimated:!1,skipFadeIn:!0,isStreaming:l,disableStreamAnimation:n.disableStreamAnimation,sourceIsPaced:!0,variant:n.variant,onShowPopup:n.onShowPopup,enableFileReferences:f}),t[10]=c,t[11]=n.disableStreamAnimation,t[12]=n.onShowPopup,t[13]=n.variant,t[14]=d,t[15]=l,t[16]=f,t[17]=p):p=t[17];let m;return t[18]!==d||t[19]!==p?(m=(0,K.jsx)(`div`,{className:`yuri-markstream-code-host min-w-0 w-full`,"data-yuri-markstream-code":`markdown-impl`,"data-yuri-markstream-code-id":d,children:p}),t[18]=d,t[19]=p,t[20]=m):m=t[20],m}function Ce(e){let t=(0,B.c)(9),{node:n}=e,r=T()??``,i=D(n.src,r),{onShowPopup:a}=G(),o=l(we),s=i.source||void 0,c=n.title??void 0,u=a?`button`:void 0,d=a?0:void 0,f=a?o:void 0,p;return t[0]!==n.alt||t[1]!==n.src||t[2]!==i.error||t[3]!==s||t[4]!==c||t[5]!==u||t[6]!==d||t[7]!==f?(p=(0,K.jsx)(E,{contentFrame:!0,src:s,resourceError:i.error,"data-md-image-source":n.src,alt:n.alt,title:c,className:`rounded-lg`,role:u,tabIndex:d,onKeyDown:f}),t[0]=n.alt,t[1]=n.src,t[2]=i.error,t[3]=s,t[4]=c,t[5]=u,t[6]=d,t[7]=f,t[8]=p):p=t[8],p}function we(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())}function Te(e){let t=(0,B.c)(4);if(e.node.type===`code_block`){let n=e,r;return t[0]===n?r=t[1]:(r=(0,K.jsx)(Q,{...n}),t[0]=n,t[1]=r),r}let n=e,r;return t[2]===n?r=t[3]:(r=(0,K.jsx)(Ce,{...n}),t[2]=n,t[3]=r),r}var $=!1;function Ee(e){return e.node?.type===`code_block`?z.createElement(Q,e):z.createElement(me,e)}var De=()=>{$||($=!0,p({text:Ee,inline_code:he,link:ge,image:Te,code_block:g(Q,`block`),mermaid:g(Z,`block`),d2:g(Z,`block`),d2lang:g(Z,`block`),infographic:g(Z,`block`)}))},Oe={parseOptions:{reuseStableTopLevelNodes:!0},maxLiveNodes:0,liveNodeBuffer:0,batchRendering:!1,deferNodesUntilVisible:!1,viewportPriority:!1,smoothStreaming:!1,typewriter:!1,fade:!1};De();var ke=e=>(e.inline.ruler.at(`math`,(e,t)=>{let n=e.src.slice(e.pos),r=A(n),i=n.startsWith(`\\(`)?/^\\\(([\s\S]+?)\\\)/.exec(n):null,a=r?.raw??i?.[0],o=r?.text??i?.[1];if(!a||!o)return!1;if(!t){let t=e.push(`math_inline`,`math`,0);t.content=o,t.markup=r?r.display?`$$`:`$`:`\\(\\)`}return e.pos+=a.length,!0}),e),Ae=e=>e===`tool`?`markdown-content markdown-tool yuri-markstream-host`:e===`reasoning`?`markdown-content markdown-reasoning yuri-markstream-host`:`markdown-content leading-relaxed yuri-markstream-host`,je=z.memo(({content:e,part:t,messageId:n,className:r,isStreaming:i=!1,disableStreamAnimation:d=!1,variant:f=`assistant`,onShowPopup:p,enableFileReferences:m=!0})=>{let h=te()?.currentTheme.metadata.variant===`dark`,{editor:g,runtime:_}=o(),y=a(),b=T()??``,x=z.useRef(null),S=t?.id?`yuri-ms-${t.id}`:`yuri-ms-${n}`,C=t?.id,w=!i,E=w?re(e,`markstream:${f}`):``,D=m&&!i,O=D?{effectiveDirectory:b,scope:y?.entry.location.hostId?y.entry:void 0,editor:g,preferRuntimeEditor:_.isVSCode,onShowPopup:p}:void 0,k=z.useMemo(()=>({messageId:n,partId:C,isStreaming:i,disableStreamAnimation:d,variant:f,onShowPopup:p,enableFileReferences:m}),[n,C,i,d,f,p,m]),A=z.useRef(w);A.current=w;let j=z.useRef(E);j.current=E;let M=l(e=>{if(!A.current)return;let t=e[0];if(!t)return;let n=t.borderBoxSize?.[0],r=n?n.blockSize:t.contentRect.height,i=n?n.inlineSize:t.contentRect.width;ne(j.current,r,i)});c(x,M);let N=l((e,t)=>{u.getState().openContextBrowser(e,t)}),P=l(e=>{ce(e,{onShowPopup:p,fileReference:O,effectiveDirectory:b,openInAppBrowser:N})}),F=l(e=>{le(e,{fileReference:O})});return s(`click`,P,x),s(`keydown`,F,x),(0,K.jsx)(`div`,{ref:x,className:v(`relative break-words w-full min-w-0`,Ae(f),r),"data-markdown-ready":`true`,"data-markdown-hydration":`ready`,"data-yuri-markdown-engine":`markstream`,"data-yuri-markstream-virtual":`off`,"data-yuri-markstream-streaming":i?`true`:void 0,children:(0,K.jsx)(W.Provider,{value:k,children:(0,K.jsx)(pe,{enabled:D,effectiveDirectory:b,editor:g,preferRuntimeEditor:_.isVSCode,onShowPopup:p,content:e,children:(0,K.jsx)(ee,{content:e,customMarkdownIt:ke,customId:S,final:!i,isDark:h,codeBlockStream:i,...Oe})})})})},(e,t)=>e.content===t.content&&e.isStreaming===t.isStreaming&&e.disableStreamAnimation===t.disableStreamAnimation&&e.variant===t.variant&&e.isAnimated===t.isAnimated&&e.skipFadeIn===t.skipFadeIn&&e.className===t.className&&e.messageId===t.messageId&&e.onShowPopup===t.onShowPopup&&e.enableFileReferences===t.enableFileReferences&&e.part?.id===t.part?.id),Me=e=>{let n=(0,B.c)(7),r=e.content,i=e.isStreaming===!0,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=O(t()),n[0]=a):a=n[0];let o;n[1]!==e.content||n[2]!==i?(o={text:r,isStreaming:i,throttleMs:a.markdownPaceMs},n[1]=e.content,n[2]=i,n[3]=o):o=n[3];let s=k(o),c=e.isStreaming?s:e.content,l;return n[4]!==e||n[5]!==c?(l=(0,K.jsx)(je,{...e,content:c}),n[4]=e,n[5]=c,n[6]=l):l=n[6],l},Ne=e=>{let t=(0,B.c)(3),n=`${e.messageId}:${e.part?.id??`text`}`,r;return t[0]!==e||t[1]!==n?(r=(0,K.jsx)(Me,{...e},n),t[0]=e,t[1]=n,t[2]=r):r=t[2],r};export{Ne as MarkstreamRenderer};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{r as i}from"./vendor-reactuses-core-DjKFMfz7.js";import{i as a,o}from"./session-startup-barrier-DT-hIBRf.js";import{n as s}from"./Icon-DmykXZL1.js";import{t as c}from"./i18n-DXc6czdR.js";import{i as l,r as u}from"./useAssistantUIStore-CpJZ4Rqs.js";import{n as d}from"./mobileAppContext-BQgdTp5T.js";import{_ as f,m as p}from"./assistantQueries-NdPqu6rx.js";import{t as m}from"./assistantPresentation-DRbsH1Ej.js";import{r as h,t as g}from"./AssistantWorkingAvatar-CoxhuMvM.js";import{n as _,r as v,t as y}from"./select-assistant-mmsKjj2O.js";import{i as b,n as ee,r as x}from"./MobileSurface-cmaGf3hZ.js";import{n as S,t as C}from"./useMobileSwipeActions-XoxrtaUo.js";import{n as w}from"./AssistantUnreadBadge-p9mkpbMC.js";import{t as T}from"./sortAssistantContacts-CcEdm3mS.js";import{a as E,i as te,n as D,o as ne,r as re,t as O}from"./assistantMessagePreview-DLBvPQtq.js";var ie=e(n(),1),ae=r(),oe=`/assets/assistant-guide-hero-wide-DiFIThB0.jpg`,k=t(),A=[{image:_,titleKey:`assistants.guide.share.ios.title`,descriptionKey:`assistants.guide.share.ios.description`},{image:v,titleKey:`assistants.guide.share.android.title`,descriptionKey:`assistants.guide.share.android.description`},{image:y,titleKey:`assistants.guide.share.pick.title`,descriptionKey:`assistants.guide.share.pick.description`}];function se(){let e=(0,ae.c)(8),{t}=c(),n;e[0]===t?n=e[1]:(n=t(`common.loading`),e[0]=t,e[1]=n);let r,i,a,o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,k.jsx)(`div`,{className:`h-10 w-10 animate-pulse rounded-xl bg-[var(--surface-muted)] motion-reduce:animate-none`}),i=(0,k.jsx)(`div`,{className:`mt-2 h-4 w-2/3 animate-pulse rounded-md bg-[var(--surface-muted)] motion-reduce:animate-none`}),a=(0,k.jsx)(`div`,{className:`h-3.5 w-full animate-pulse rounded-md bg-[var(--surface-muted)] motion-reduce:animate-none`}),o=(0,k.jsx)(`div`,{className:`h-3.5 w-4/5 animate-pulse rounded-md bg-[var(--surface-muted)] motion-reduce:animate-none`}),e[2]=r,e[3]=i,e[4]=a,e[5]=o):(r=e[2],i=e[3],a=e[4],o=e[5]);let s;return e[6]===n?s=e[7]:(s=(0,k.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col gap-3 p-5`,"aria-busy":`true`,"aria-label":n,children:[r,i,a,o]}),e[6]=n,e[7]=s),s}function ce(e){let t=(0,ae.c)(35),{onEnable:n}=e,{t:r}=c(),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,k.jsx)(`div`,{className:`yuri-mobile-assistant-guide-hero`,"aria-hidden":`true`,children:(0,k.jsx)(`img`,{src:oe,alt:``})}),t[0]=i):i=t[0];let o;t[1]===r?o=t[2]:(o=r(`assistants.guide.disabledTitle`),t[1]=r,t[2]=o);let s;t[3]===o?s=t[4]:(s=(0,k.jsx)(`h2`,{className:`yuri-mobile-assistant-guide-title`,children:o}),t[3]=o,t[4]=s);let l;t[5]===r?l=t[6]:(l=r(`assistants.guide.disabledDescription`),t[5]=r,t[6]=l);let u;t[7]===l?u=t[8]:(u=(0,k.jsx)(`p`,{className:`yuri-mobile-assistant-guide-description`,children:l}),t[7]=l,t[8]=u);let d;t[9]===r?d=t[10]:(d=r(`assistants.guide.enableAction`),t[9]=r,t[10]=d);let f;t[11]!==n||t[12]!==d?(f=(0,k.jsx)(a,{type:`button`,size:`lg`,onClick:n,children:d}),t[11]=n,t[12]=d,t[13]=f):f=t[13];let p;t[14]!==s||t[15]!==u||t[16]!==f?(p=(0,k.jsxs)(`div`,{className:`yuri-mobile-assistant-guide-body`,children:[s,u,f]}),t[14]=s,t[15]=u,t[16]=f,t[17]=p):p=t[17];let m;t[18]===r?m=t[19]:(m=r(`assistants.guide.shareTitle`),t[18]=r,t[19]=m);let h;t[20]===m?h=t[21]:(h=(0,k.jsx)(`h3`,{className:`yuri-mobile-assistant-guide-share-title`,children:m}),t[20]=m,t[21]=h);let g;t[22]===r?g=t[23]:(g=r(`assistants.guide.shareAria`),t[22]=r,t[23]=g);let _;t[24]===r?_=t[25]:(_=A.map(e=>(0,k.jsxs)(`article`,{className:`yuri-mobile-assistant-guide-step`,children:[(0,k.jsx)(`div`,{className:`yuri-mobile-assistant-guide-step-image`,children:(0,k.jsx)(`img`,{src:e.image,alt:``})}),(0,k.jsxs)(`div`,{className:`yuri-mobile-assistant-guide-step-copy`,children:[(0,k.jsx)(`h4`,{children:r(e.titleKey)}),(0,k.jsx)(`p`,{children:r(e.descriptionKey)})]})]},e.titleKey)),t[24]=r,t[25]=_);let v;t[26]!==g||t[27]!==_?(v=(0,k.jsx)(`div`,{className:`yuri-mobile-assistant-guide-steps`,"aria-label":g,children:_}),t[26]=g,t[27]=_,t[28]=v):v=t[28];let y;t[29]!==h||t[30]!==v?(y=(0,k.jsxs)(`section`,{className:`yuri-mobile-assistant-guide-share`,children:[h,v]}),t[29]=h,t[30]=v,t[31]=y):y=t[31];let b;return t[32]!==y||t[33]!==p?(b=(0,k.jsxs)(`article`,{className:`yuri-mobile-assistant-guide`,children:[i,p,y]}),t[32]=y,t[33]=p,t[34]=b):b=t[34],b}function le(e){let t=(0,ae.c)(51),{assistant:n,avatarSeed:r,unreadCount:i,assistantID:a,displayName:s,summary:c,editLabel:l,deleteLabel:u,onOpen:d,onEdit:f,onDelete:p,serverWorking:m}=e,_=h(a,m!==void 0&&m),v=C(`assistant:${a}`,d),y=ie.useRef(null),b;t[0]!==l||t[1]!==f?(b={label:l,icon:`edit`,onClick:f},t[0]=l,t[1]=f,t[2]=b):b=t[2];let x;t[3]!==u||t[4]!==p?(x={label:u,icon:`delete-bin`,destructive:!0,onClick:p},t[3]=u,t[4]=p,t[5]=x):x=t[5];let T;t[6]!==b||t[7]!==x?(T=[b,x],t[6]=b,t[7]=x,t[8]=T):T=t[8];let E;t[9]!==v||t[10]!==T?(E=(0,k.jsx)(S,{swipe:v,actions:T}),t[9]=v,t[10]=T,t[11]=E):E=t[11];let te=v.dragging?`transition-none`:`transition-transform duration-150 ease-out`,D;t[12]===te?D=t[13]:(D=o(`yuri-mobile-assistant-card relative z-10 motion-reduce:transition-none`,te),t[12]=te,t[13]=D);let re=v.handleSelect,oe=v.handlePointerDown,A=v.handlePointerMove,se=v.finishGesture,ce=v.handlePointerCancel,le=`translate3d(${v.offset}px, 0, 0)`,j=v.offset===0?void 0:`transform`,M;t[14]!==le||t[15]!==j?(M={touchAction:`pan-y`,transform:le,willChange:j},t[14]=le,t[15]=j,t[16]=M):M=t[16];let N;t[17]!==a||t[18]!==r||t[19]!==s||t[20]!==_?(N=(0,k.jsx)(`span`,{className:`yuri-mobile-assistant-avatar`,children:(0,k.jsx)(g,{name:a,avatarSeed:r,size:44,label:s,working:_,hoverTarget:y})}),t[17]=a,t[18]=r,t[19]=s,t[20]=_,t[21]=N):N=t[21];let P;t[22]===s?P=t[23]:(P=(0,k.jsx)(`span`,{className:`yuri-mobile-entity-title yuri-mobile-assistant-name block min-w-0 truncate font-semibold text-foreground`,children:s}),t[22]=s,t[23]=P);let F;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(F=o(`yuri-mobile-assistant-summary`,O),t[24]=F):F=t[24];let I;t[25]===c?I=t[26]:(I=(0,k.jsx)(`span`,{className:F,children:c}),t[25]=c,t[26]=I);let L;t[27]!==P||t[28]!==I?(L=(0,k.jsxs)(`span`,{className:`yuri-mobile-assistant-card-content min-w-0 flex-1`,children:[P,I]}),t[27]=P,t[28]=I,t[29]=L):L=t[29];let R;t[30]===i?R=t[31]:(R=(0,k.jsx)(w,{count:i}),t[30]=i,t[31]=R);let z;t[32]!==v.finishGesture||t[33]!==v.handlePointerCancel||t[34]!==v.handlePointerDown||t[35]!==v.handlePointerMove||t[36]!==v.handleSelect||t[37]!==M||t[38]!==N||t[39]!==L||t[40]!==R||t[41]!==D?(z=(0,k.jsxs)(`button`,{ref:y,type:`button`,role:`option`,"aria-selected":`false`,"data-mobile-press-feedback":`soft`,className:D,onClick:re,onPointerDown:oe,onPointerMove:A,onPointerUp:se,onPointerCancel:ce,style:M,children:[N,L,R]}),t[32]=v.finishGesture,t[33]=v.handlePointerCancel,t[34]=v.handlePointerDown,t[35]=v.handlePointerMove,t[36]=v.handleSelect,t[37]=M,t[38]=N,t[39]=L,t[40]=R,t[41]=D,t[42]=z):z=t[42];let B;t[43]!==n||t[44]!==p||t[45]!==f||t[46]!==z?(B=(0,k.jsx)(ne,{assistant:n,onEdit:f,onDelete:p,trigger:z}),t[43]=n,t[44]=p,t[45]=f,t[46]=z,t[47]=B):B=t[47];let V;return t[48]!==B||t[49]!==E?(V=(0,k.jsxs)(ee,{className:`yuri-mobile-assistant-card-shell relative isolate overflow-clip`,children:[E,B]}),t[48]=B,t[49]=E,t[50]=V):V=t[50],V}function j(e){let t=(0,ae.c)(128),{onEnable:n,onOpenAssistant:r,className:h}=e,{t:g}=c(),_=d(),v=p(),y=f();y.data?.assistants;let S;t[0]===y.data?.assistants?S=t[1]:(S=y.data?.assistants??[],t[0]=y.data?.assistants,t[1]=S);let C;t[2]===S?C=t[3]:(C=T(S),t[2]=S,t[3]=C);let w=C,ne=l(M),[O,oe]=ie.useState(null),A;t[4]===n?A=t[5]:(A=()=>n(),t[4]=n,t[5]=A);let j=i(A),N;t[6]!==_||t[7]!==ne?(N=()=>{ne(),_?.openSettings(`assistants`)},t[6]=_,t[7]=ne,t[8]=N):N=t[8];let P=i(N),F;t[9]===r?F=t[10]:(F=e=>r(e),t[9]=r,t[10]=F);let I=i(F),L;t[11]===_?L=t[12]:(L=e=>{u(e,_?{openMobileSettings:_.openSettings}:void 0)},t[11]=_,t[12]=L);let R=i(L),z;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(z=e=>{oe(e)},t[13]=z):z=t[13];let B=i(z),V;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>{e||oe(null)},t[14]=V):V=t[14];let ue=i(V),de;t[15]===g?de=t[16]:(de=g(`assistants.title`),t[15]=g,t[16]=de);let H=de,fe;t[17]===g?fe=t[18]:(fe=g(`assistants.menu.edit`),t[17]=g,t[18]=fe);let U=fe,pe;t[19]===g?pe=t[20]:(pe=g(`assistants.settings.delete`),t[19]=g,t[20]=pe);let W=pe,me;t[21]===h?me=t[22]:(me=o(`yuri-assistant-mobile-catalog-page`,h),t[21]=h,t[22]=me);let G=me;if(v.isPending||v.data?.supported&&v.data.enabled&&y.isPending){let e;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,k.jsx)(ee,{className:`yuri-mobile-assistant-loading`,children:(0,k.jsx)(se,{})}),t[23]=e):e=t[23];let n;return t[24]!==G||t[25]!==H?(n=(0,k.jsx)(b,{title:H,className:G,surface:!1,children:e}),t[24]=G,t[25]=H,t[26]=n):n=t[26],n}if(v.data?.supported&&v.data.enabled&&y.data?.enabled&&y.data.assistants.length>0){let e;t[27]===y.data?e=t[28]:(e=(0,k.jsx)(te,{snapshot:y.data,compact:!0,mobile:!0}),t[27]=y.data,t[28]=e);let n;t[29]===g?n=t[30]:(n=g(`assistants.settings.create`),t[29]=g,t[30]=n);let r;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,k.jsx)(s,{name:`add`,className:`size-5`}),t[31]=r):r=t[31];let i;t[32]!==P||t[33]!==n?(i=(0,k.jsx)(a,{type:`button`,variant:`mobileGlass`,size:`mobileIcon`,className:`yuri-mobile-inverse-action`,"aria-label":n,onClick:P,children:r}),t[32]=P,t[33]=n,t[34]=i):i=t[34];let o;t[35]!==e||t[36]!==i?(o=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e,i]}),t[35]=e,t[36]=i,t[37]=o):o=t[37];let c;t[38]===g?c=t[39]:(c=g(`assistants.listAria`),t[38]=g,t[39]=c);let l;t[40]!==w.pinned||t[41]!==R||t[42]!==I||t[43]!==B?(l=(0,k.jsx)(E,{contacts:w.pinned,onSelect:I,onEdit:R,onDelete:B}),t[40]=w.pinned,t[41]=R,t[42]=I,t[43]=B,t[44]=l):l=t[44];let u;if(t[45]!==w.unpinned||t[46]!==W||t[47]!==U||t[48]!==R||t[49]!==I||t[50]!==B||t[51]!==g){let e;t[53]!==W||t[54]!==U||t[55]!==R||t[56]!==I||t[57]!==B||t[58]!==g?(e=e=>{let t=m(e.name).displayName||e.name,n=D(e.latestMessagePreview,g);return(0,k.jsx)(le,{assistant:e,assistantID:e.id,avatarSeed:e.avatarSeed,unreadCount:e.unreadCount??0,displayName:t,summary:n,editLabel:U,deleteLabel:W,assignedSessionIDs:e.assignedSessionIDs,serverWorking:e.working,onOpen:()=>I(e.id),onEdit:()=>R(e.id),onDelete:()=>B(e)},e.id)},t[53]=W,t[54]=U,t[55]=R,t[56]=I,t[57]=B,t[58]=g,t[59]=e):e=t[59],u=w.unpinned.map(e),t[45]=w.unpinned,t[46]=W,t[47]=U,t[48]=R,t[49]=I,t[50]=B,t[51]=g,t[52]=u}else u=t[52];let d;t[60]!==c||t[61]!==l||t[62]!==u?(d=(0,k.jsxs)(`div`,{className:`yuri-mobile-assistant-catalog`,role:`listbox`,"aria-label":c,children:[l,u]}),t[60]=c,t[61]=l,t[62]=u,t[63]=d):d=t[63];let f=O!==null,p;t[64]!==O||t[65]!==ue||t[66]!==f?(p=(0,k.jsx)(re,{assistant:O,open:f,onOpenChange:ue}),t[64]=O,t[65]=ue,t[66]=f,t[67]=p):p=t[67];let h;return t[68]!==G||t[69]!==H||t[70]!==o||t[71]!==d||t[72]!==p?(h=(0,k.jsxs)(b,{title:H,className:G,surface:!1,scrollsWithPage:!0,trailing:o,children:[d,p]}),t[68]=G,t[69]=H,t[70]=o,t[71]=d,t[72]=p,t[73]=h):h=t[73],h}if(v.data?.supported&&v.data.enabled&&y.data?.enabled&&y.data.assistants.length===0){let e;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,k.jsx)(`span`,{className:`yuri-mobile-assistant-onboarding-icon`,children:(0,k.jsx)(s,{name:`ai-agent`,className:`size-5`})}),t[74]=e):e=t[74];let n;t[75]===g?n=t[76]:(n=g(`assistants.onboarding.title`),t[75]=g,t[76]=n);let r;t[77]===n?r=t[78]:(r=(0,k.jsx)(`h2`,{children:n}),t[77]=n,t[78]=r);let i;t[79]===g?i=t[80]:(i=g(`assistants.onboarding.description`),t[79]=g,t[80]=i);let o;t[81]===i?o=t[82]:(o=(0,k.jsx)(`p`,{children:i}),t[81]=i,t[82]=o);let c;t[83]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,k.jsx)(s,{name:`add`,className:`size-[18px]`}),t[83]=c):c=t[83];let l;t[84]===g?l=t[85]:(l=g(`assistants.onboarding.action`),t[84]=g,t[85]=l);let u;t[86]!==P||t[87]!==l?(u=(0,k.jsxs)(a,{type:`button`,size:`lg`,className:`mt-6 w-full`,onClick:P,children:[c,l]}),t[86]=P,t[87]=l,t[88]=u):u=t[88];let d;t[89]!==r||t[90]!==o||t[91]!==u?(d=(0,k.jsxs)(ee,{className:`yuri-mobile-assistant-onboarding`,children:[e,r,o,u]}),t[89]=r,t[90]=o,t[91]=u,t[92]=d):d=t[92];let f;return t[93]!==G||t[94]!==H||t[95]!==d?(f=(0,k.jsx)(b,{title:H,className:G,surface:!1,surfaceClassName:`yuri-mobile-assistant-state`,children:d}),t[93]=G,t[94]=H,t[95]=d,t[96]=f):f=t[96],f}let K=v.isSuccess&&v.data.supported===!1,q=v.isError||v.data?.supported===!0&&v.data.enabled&&y.isError,he=v.data?.supported===!0&&(v.data.enabled===!1||y.data?.enabled===!1),ge;t[97]!==g||t[98]!==q||t[99]!==K?(ge=g(q?`assistants.state.unavailable`:K?`assistants.state.unsupportedTitle`:`assistants.state.instanceDisabled`),t[97]=g,t[98]=q,t[99]=K,t[100]=ge):ge=t[100];let _e=ge;if(he&&!q){let e;t[101]===j?e=t[102]:(e=(0,k.jsx)(ce,{onEnable:j}),t[101]=j,t[102]=e);let n;return t[103]!==G||t[104]!==H||t[105]!==e?(n=(0,k.jsx)(b,{title:H,className:G,surface:!1,surfaceClassName:`yuri-mobile-assistant-guide-host`,children:e}),t[103]=G,t[104]=H,t[105]=e,t[106]=n):n=t[106],n}let J;t[107]===H?J=t[108]:(J=(0,k.jsx)(`span`,{className:`yuri-mobile-page-section-label`,children:H}),t[107]=H,t[108]=J);let ve=K?`cloud-off`:`sparkling`,Y;t[109]===ve?Y=t[110]:(Y=(0,k.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-xl bg-interactive-selection text-interactive-selection-foreground`,children:(0,k.jsx)(s,{name:ve,weight:`medium`,className:`size-5`})}),t[109]=ve,t[110]=Y);let X;t[111]===_e?X=t[112]:(X=(0,k.jsx)(`h2`,{className:`mt-5 max-w-xs text-lg font-semibold leading-snug tracking-[-0.02em] text-foreground`,children:_e}),t[111]=_e,t[112]=X);let Z;t[113]!==g||t[114]!==q||t[115]!==K?(Z=q?null:(0,k.jsx)(`p`,{className:`mt-2 max-w-sm typography-small leading-relaxed text-muted-foreground`,children:g(K?`assistants.state.unsupportedDescription`:`assistants.state.instanceDisabledDescription`)}),t[113]=g,t[114]=q,t[115]=K,t[116]=Z):Z=t[116];let Q;t[117]!==Y||t[118]!==X||t[119]!==Z?(Q=(0,k.jsxs)(`section`,{className:`w-full max-w-md py-2`,children:[Y,X,Z]}),t[117]=Y,t[118]=X,t[119]=Z,t[120]=Q):Q=t[120];let $;t[121]!==J||t[122]!==Q?($=(0,k.jsx)(x,{label:J,cardClassName:`yuri-mobile-assistant-state-card`,children:Q}),t[121]=J,t[122]=Q,t[123]=$):$=t[123];let ye;return t[124]!==G||t[125]!==H||t[126]!==$?(ye=(0,k.jsx)(b,{title:H,className:G,surface:!1,surfaceClassName:`yuri-mobile-assistant-state`,children:$}),t[124]=G,t[125]=H,t[126]=$,t[127]=ye):ye=t[127],ye}function M(e){return e.requestCreate}export{j as MobileAssistantTab};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{f as i}from"./vendor-tanstack-query-core-BSjXNgF_.js";import{s as a}from"./vendor-tanstack-react-query-DIb_ItL-.js";import{c as o}from"./yuriEvents-BFrD5fMU.js";import{E as s}from"./runtime-file-resource-Bc_ss-sW.js";import{r as c}from"./vendor-reactuses-core-DjKFMfz7.js";import{o as l}from"./session-startup-barrier-DT-hIBRf.js";import{Ia as u,V as d}from"./ui-DrAJTWV6.js";import{p as f}from"./remoteProjectQueries-C8382jM8.js";import{t as p}from"./i18n-DXc6czdR.js";import{t as m}from"./MobileDetailNavigation-ldTzGo19.js";import{n as h}from"./connection-hint-B-kOWome.js";import{n as g,r as _,t as v}from"./useMobileTranscriptSyncHint-86i3xO8J.js";import{t as y}from"./GuiPluginTitlebarItems-DxFINwbr.js";var b=r(),x=e(n(),1),S=t();function C(e){let t=(0,b.c)(25),{title:n,subtitle:r,onBack:i,onOpenMenu:a,menuOpen:o,elevated:l,trailing:u}=e,d=o!==void 0&&o,f=l!==void 0&&l,{t:g}=p(),_=s(),v=c(i),x=c(a),C;t[0]!==_||t[1]!==n?(C=_?.entry.location.hostId?(0,S.jsx)(w,{host:_}):n,t[0]=_,t[1]=n,t[2]=C):C=t[2];let T;t[3]!==_||t[4]!==r?(T=r||(_?.entry.location.hostId?(0,S.jsx)(h,{registry:_.registry,hostId:_.entry.location.hostId,showName:!0}):null),t[3]=_,t[4]=r,t[5]=T):T=t[5];let E;t[6]===g?E=t[7]:(E=g(`header.actions.backAria`),t[6]=g,t[7]=E);let D=f||d,O;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,S.jsx)(y,{mobile:!0}),t[8]=O):O=t[8];let k;t[9]===u?k=t[10]:(k=(0,S.jsxs)(S.Fragment,{children:[O,u]}),t[9]=u,t[10]=k);let A;t[11]===g?A=t[12]:(A=g(`mobile.menu.titleAria`),t[11]=g,t[12]=A);let j;t[13]!==x||t[14]!==d||t[15]!==A?(j=[{icon:`more-2`,ariaLabel:A,onClick:x,pressed:d}],t[13]=x,t[14]=d,t[15]=A,t[16]=j):j=t[16];let M;return t[17]!==v||t[18]!==j||t[19]!==C||t[20]!==T||t[21]!==E||t[22]!==D||t[23]!==k?(M=(0,S.jsx)(m,{title:C,subtitle:T,backAriaLabel:E,onBack:v,overlay:!0,collapsible:!0,elevated:D,trailing:k,actions:j}),t[17]=v,t[18]=j,t[19]=C,t[20]=T,t[21]=E,t[22]=D,t[23]=k,t[24]=M):M=t[24],M}function w(e){let t=(0,b.c)(16),{host:n}=e,{t:r}=p(),{location:i}=n.entry,a;t[0]!==i.directory||t[1]!==i.hostId||t[2]!==i.hubId?(a=e=>e.remoteSession?.location.hubId===i.hubId&&e.remoteSession.location.hostId===i.hostId&&e.remoteSession.location.directory===i.directory?e.remoteSession:null,t[0]=i.directory,t[1]=i.hostId,t[2]=i.hubId,t[3]=a):a=t[3];let o=u(a),s=o?.sessionId,c=f(n.registry,i.hostId),l;t[4]!==i.directory||t[5]!==s||t[6]!==c.data?.directories?(l=c.data?.directories.find(e=>e.directory===i.directory)?.sessions.find(e=>e.id===s),t[4]=i.directory,t[5]=s,t[6]=c.data?.directories,t[7]=l):l=t[7];let d=l,m;t[8]!==n.entry||t[9]!==o?.draft?.title||t[10]!==s||t[11]!==d?.title||t[12]!==r?(m=s?(0,S.jsx)(T,{entry:n.entry,sessionId:s,fallback:d?.title||r(`mobile.sessions.untitled`)}):o?.draft?.title||r(`mobile.menu.newSession`),t[8]=n.entry,t[9]=o?.draft?.title,t[10]=s,t[11]=d?.title,t[12]=r,t[13]=m):m=t[13];let h;return t[14]===m?h=t[15]:(h=(0,S.jsx)(S.Fragment,{children:m}),t[14]=m,t[15]=h),h}var T=(0,x.memo)(function(e){let t=(0,b.c)(10),{entry:n,sessionId:r,fallback:s}=e,c;t[0]!==n.queryScope||t[1]!==r?(c=[...n.queryScope,`chat`,r,`session`],t[0]=n.queryScope,t[1]=r,t[2]=c):c=t[2];let l;t[3]===r?l=t[4]:(l=e=>e.id===r&&e.title?.trim()||null,t[3]=r,t[4]=l);let u;t[5]!==c||t[6]!==l?(u={queryKey:c,queryFn:i,enabled:!1,staleTime:1/0,gcTime:1/0,select:l},t[5]=c,t[6]=l,t[7]=u):u=t[7];let d=a(u,o).data??s,f;return t[8]===d?f=t[9]:(f=(0,S.jsx)(S.Fragment,{children:d}),t[8]=d,t[9]=f),f});function E(e){let t=(0,b.c)(3),n=s(),r;return t[0]!==n||t[1]!==e?(r=n?.entry.location.hostId?(0,S.jsx)(O,{...e,host:n}):(0,S.jsx)(D,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r}function D(e){let t=(0,b.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({sessionId:i,directory:n,title:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let{t:o}=p(),s=i.length===0,c=d(s?null:i),l;t[5]!==s||t[6]!==c?.title||t[7]!==o||t[8]!==a?(l=s?a?.trim()||o(`mobile.menu.newSession`):a?.trim()||c?.title?.trim()||o(`mobile.sessions.untitled`),t[5]=s,t[6]=c?.title,t[7]=o,t[8]=a,t[9]=l):l=t[9];let u=l,f=v(s?``:i,n||void 0),m;return t[10]!==r||t[11]!==u||t[12]!==i||t[13]!==f?(m=(0,S.jsx)(k,{...r,sessionId:i,title:u,syncHint:f}),t[10]=r,t[11]=u,t[12]=i,t[13]=f,t[14]=m):m=t[14],m}function O(e){let t=(0,b.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({host:n,sessionId:i,title:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]!==n.entry.location.directory||t[6]!==n.entry.location.hostId||t[7]!==n.entry.location.hubId?(o=e=>{let t=e.remoteSession;return t?.location.hubId===n.entry.location.hubId&&t.location.hostId===n.entry.location.hostId&&t.location.directory===n.entry.location.directory?t.sessionId:null},t[5]=n.entry.location.directory,t[6]=n.entry.location.hostId,t[7]=n.entry.location.hubId,t[8]=o):o=t[8];let s=u(o),c=i||s||``,l=g(n,c),d;return t[9]!==c||t[10]!==r||t[11]!==l||t[12]!==a?(d=(0,S.jsx)(k,{...r,sessionId:c,title:a,syncHint:l}),t[9]=c,t[10]=r,t[11]=l,t[12]=a,t[13]=d):d=t[13],d}function k(e){let t=(0,b.c)(31),{sessionId:n,title:r,onBack:i,onOpenMenu:a,onCloseMenu:o,menuOpen:s,children:u,className:d,syncHint:f}=e,m=s!==void 0&&s,{t:h}=p(),[g,v]=x.useState(!1),y;t[0]!==m||t[1]!==o?(y=e=>{e&&m&&o?.(),v(e)},t[0]=m,t[1]=o,t[2]=y):y=t[2];let w=c(y),T;t[3]!==g||t[4]!==a?(T=()=>{g&&v(!1),a()},t[3]=g,t[4]=a,t[5]=T):T=t[5];let E=c(T),D=m||g,O;t[6]===d?O=t[7]:(O=l(`mobile-chat-screen relative isolate flex h-full min-h-0 w-full flex-col overflow-hidden bg-background text-foreground`,d),t[6]=d,t[7]=O);let k;t[8]!==n||t[9]!==h||t[10]!==r?(k=r||h(n?`mobile.sessions.untitled`:`mobile.menu.newSession`),t[8]=n,t[9]=h,t[10]=r,t[11]=k):k=t[11];let A;t[12]!==g||t[13]!==w||t[14]!==n?(A=(0,S.jsx)(_,{sessionId:n,open:g,onOpenChange:w}),t[12]=g,t[13]=w,t[14]=n,t[15]=A):A=t[15];let j;t[16]!==E||t[17]!==D||t[18]!==m||t[19]!==i||t[20]!==f||t[21]!==k||t[22]!==A?(j=(0,S.jsx)(C,{title:k,subtitle:f,onBack:i,onOpenMenu:E,menuOpen:m,elevated:D,trailing:A}),t[16]=E,t[17]=D,t[18]=m,t[19]=i,t[20]=f,t[21]=k,t[22]=A,t[23]=j):j=t[23];let M;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(M=l(`mobile-chat-screen__content relative h-full min-h-0 flex-1`,`[&_[data-scrollbar=chat]>.yuri-chat-scroll-content]:pt-[calc(max(0.625rem,var(--yuri-safe-area-top,0px))+var(--yuri-mobile-detail-navigation-height)+1.25rem)]`),t[24]=M):M=t[24];let N;t[25]===u?N=t[26]:(N=(0,S.jsx)(`div`,{className:M,children:u}),t[25]=u,t[26]=N);let P;return t[27]!==O||t[28]!==j||t[29]!==N?(P=(0,S.jsxs)(`main`,{className:O,children:[j,N]}),t[27]=O,t[28]=j,t[29]=N,t[30]=P):P=t[30],P}export{E as MobileChatScreen};
@@ -1 +0,0 @@
1
- import{ot as e}from"./vendor-base-ui-wXsskyKm.js";import{n as t}from"./vendor-react-BkccXcWz.js";import{i as n,o as r}from"./session-startup-barrier-DT-hIBRf.js";import{n as i}from"./Icon-DmykXZL1.js";var a=t(),o=e();function s(e){let t=(0,a.c)(34),{title:s,className:u,subtitle:d,backAriaLabel:f,onBack:p,backDisabled:m,actions:h,trailing:g,sticky:_,overlay:v,elevated:y,collapsible:b}=e,x=m!==void 0&&m,S;t[0]===h?S=t[1]:(S=h===void 0?[]:h,t[0]=h,t[1]=S);let C=S,w=_!==void 0&&_,T=v!==void 0&&v,E=y!==void 0&&y,D=b!==void 0&&b,O=Array.isArray(g)?g.filter(Boolean).length:+!!g,k=E||C.some(l),A=D?`true`:void 0,j=w&&`yuri-mobile-detail-navigation-sticky`,M=T&&`absolute inset-x-0 top-0`,N=k?`z-[60]`:T?`z-30`:void 0,P;t[2]!==u||t[3]!==M||t[4]!==N||t[5]!==j?(P=r(`yuri-mobile-detail-navigation relative shrink-0 pt-[max(0.25rem,var(--yuri-safe-area-top,0px))]`,j,M,N,u),t[2]=u,t[3]=M,t[4]=N,t[5]=j,t[6]=P):P=t[6];let F=C.length+O>1?`grid-cols-[2.75rem_minmax(0,1fr)_auto]`:`grid-cols-[2.75rem_minmax(0,1fr)_2.75rem]`,I;t[7]===F?I=t[8]:(I=r(`yuri-mobile-detail-navigation-content grid items-center gap-1 px-4`,F),t[7]=F,t[8]=I);let L;t[9]!==f||t[10]!==x||t[11]!==p?(L=p?(0,o.jsx)(n,{type:`button`,variant:`mobileGlass`,size:`mobileIcon`,className:`justify-self-start`,onClick:p,disabled:x,"aria-label":f,children:(0,o.jsx)(i,{name:`arrow-left-s`,className:`size-5`})}):(0,o.jsx)(`span`,{"aria-hidden":`true`}),t[9]=f,t[10]=x,t[11]=p,t[12]=L):L=t[12];let R;t[13]===s?R=t[14]:(R=(0,o.jsx)(`div`,{className:`yuri-mobile-detail-title w-full truncate typography-ui-label font-medium text-foreground`,children:s}),t[13]=s,t[14]=R);let z;t[15]===d?z=t[16]:(z=d?(0,o.jsx)(`div`,{className:`yuri-mobile-detail-subtitle w-full truncate text-muted-foreground`,"aria-live":`polite`,children:d}):null,t[15]=d,t[16]=z);let B;t[17]!==R||t[18]!==z?(B=(0,o.jsxs)(`div`,{className:`flex w-full max-w-72 min-w-0 flex-col items-center justify-center justify-self-center px-1`,children:[R,z]}),t[17]=R,t[18]=z,t[19]=B):B=t[19];let V;t[20]===C?V=t[21]:(V=C.map(c),t[20]=C,t[21]=V);let H;t[22]!==V||t[23]!==g?(H=(0,o.jsxs)(`div`,{className:`flex min-w-0 items-center justify-end gap-2`,children:[g,V]}),t[22]=V,t[23]=g,t[24]=H):H=t[24];let U;t[25]!==I||t[26]!==L||t[27]!==B||t[28]!==H?(U=(0,o.jsxs)(`div`,{className:I,children:[L,B,H]}),t[25]=I,t[26]=L,t[27]=B,t[28]=H,t[29]=U):U=t[29];let W;return t[30]!==P||t[31]!==U||t[32]!==A?(W=(0,o.jsx)(`header`,{"data-yuri-collapsible-header":A,className:P,children:U}),t[30]=P,t[31]=U,t[32]=A,t[33]=W):W=t[33],W}function c(e,t){return(0,o.jsx)(n,{type:`button`,variant:`mobileGlass`,size:`mobileIcon`,className:r(e.elevated&&`relative z-[60]`),onClick:e.onClick,disabled:e.disabled,"aria-label":e.ariaLabel,"aria-expanded":e.pressed,title:e.title,children:(0,o.jsx)(i,{name:e.icon,className:`size-5`})},`${e.icon}:${t}`)}function l(e){return e.elevated}export{s as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ToolOutputDialog-DqCCsC-N.js","assets/rolldown-runtime-hePW80VL.js","assets/runtime-auth-DA-qfGHk.js","assets/runtime-switch-DEPKHgdL.js","assets/runtime-fetch-V-iMWR8t.js","assets/reasoning-projection-client-BEhVknv9.js","assets/platform-CiUKDeXd.js","assets/runtimeAPIRegistry-C2VogTny.js","assets/vendor-pathe-vBmvQE8f.js","assets/vendor-base-ui-wXsskyKm.js","assets/vendor-react-BkccXcWz.js","assets/vendor-tanstack-react-query-DIb_ItL-.js","assets/vendor-tanstack-query-core-BSjXNgF_.js","assets/runtime-file-resource-Bc_ss-sW.js","assets/yuriEvents-BFrD5fMU.js","assets/path-utils-jGozTg9d.js","assets/vendor-reactuses-core-DjKFMfz7.js","assets/vendor-lodash-es-BS45jPoZ.js","assets/vendor-js-cookie-hSOiFTtX.js","assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js","assets/runtime-file-store-BVRgEtI-.js","assets/brand-storage-migration-Bhz6UOBJ.js","assets/useUIStore-C3ewjGgP.js","assets/vendor-zustand-CTekDqaS.js","assets/brand-storage-bootstrap-D4BW3w-M.js","assets/safeStorage-DTOhKN0V.js","assets/useMobileHtmlPreviewStore-BYunNOBo.js","assets/runtime-file-download-BWeoSXRb.js","assets/vendor-pierre-diffs-B0OmIhMO.js","assets/vendor-hast-util-to-html-Bw_SgZ1t.js","assets/vendor-character-entities-legacy-Wut6vMuj.js","assets/vendor-character-entities-html4-DlN_yAFd.js","assets/vendor-ccount-CyGsA0u7.js","assets/vendor-comma-separated-tokens-B9ouxNNS.js","assets/vendor-oniguruma-to-es-CrHzjjSU.js","assets/vendor-oniguruma-parser-D2DIvhSP.js","assets/vendor-diff-Dq7CZNim.js","assets/vendor-lru_map-BMOrLc9L.js","assets/session-startup-barrier-DT-hIBRf.js","assets/vendor-class-variance-authority-BLUaYARZ.js","assets/vendor-tailwind-merge-BicNWLTg.js","assets/Icon-DmykXZL1.js","assets/i18n-DXc6czdR.js","assets/runtime-ead7P81A.js","assets/bootstrap-eLlfzqAI.js","assets/store-C1ifDY0C.js","assets/tour-CMXP3Kif.js","assets/toolHelpers-iEHVHQ9p.js","assets/vendor-framer-motion-D5NyyC73.js","assets/MobileWindowStack-DGLdgoGr.js","assets/vendor-tanstack-react-virtual-qsd3nvZb.js","assets/dialog-BeFBA6ja.js","assets/dialog-D9CkSNCA.css","assets/tap-LkQum5bB.js","assets/useThemeSystem-BIXghnHj.js","assets/appThemeRegistry-BdjrGBQ4.js","assets/themes-BgDJcxRc.js","assets/useEffectiveDirectory-BxolHzt4.js","assets/gitApiHttp-Dd-FwgCq.js","assets/client-B_907PBv.js","assets/vendor-opencode-client-BM2r1f0o.js","assets/vendor-effect-X1Hqc7ba.js","assets/prompt-attachment-upload-B5DHrw6U.js","assets/uuid-D-SDZijH.js","assets/ui-DrAJTWV6.js","assets/vendor-sonner-DX3nfJx4.js","assets/remoteProjectQueries-C8382jM8.js","assets/vendor-zod-DZzbCm1s.js","assets/vendor-opencode-schema-DWT45VBX.js","assets/input-store-BSJBQTMi.js","assets/useAssistantUIStore-CpJZ4Rqs.js","assets/mobileBackNavigation-DF_uhF-i.js","assets/agentColors-DWSbQXy2.js","assets/rasterizePng-056Poix7.js","assets/ImageLoadingPlaceholder-DgM_EFHn.js","assets/image-loading-DA9JEHD8.css","assets/MarkdownRenderer-D7p9Iflj.js","assets/markdownHeightCache-CHGGNhWI.js","assets/dualLimitLru-D8Sphgua.js","assets/imageSource-BR4C9TuS.js","assets/markdownTheme-D84XyNiT.js","assets/markdown-worker-oBGEB9Eg.js","assets/DiffViewToggle-BwJ6MYB7.js","assets/touch-gestures-DOoBxhz5.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{it as t,ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{n as i}from"./vendor-react-BkccXcWz.js";import{C as a,S as o,T as s,w as c}from"./runtime-file-resource-Bc_ss-sW.js";import{r as l}from"./vendor-reactuses-core-DjKFMfz7.js";import{o as u}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";import{r as d}from"./useUIStore-C3ewjGgP.js";import{n as f}from"./vendor-pierre-diffs-B0OmIhMO.js";import{i as p,o as m}from"./session-startup-barrier-DT-hIBRf.js";import{n as h}from"./Icon-DmykXZL1.js";import{Ja as g,t as _}from"./ui-DrAJTWV6.js";import{t as v}from"./i18n-DXc6czdR.js";import{a as y,c as b,i as x,s as S}from"./toolHelpers-iEHVHQ9p.js";import{n as ee}from"./ScrollableOverlay-stxT7gLf.js";import{n as C}from"./MobileResizableSheet-CqphcaKq.js";import{n as w}from"./useInlineCommentDraftStore-B2mkmAZd.js";import{n as T}from"./useThemeSystem-BIXghnHj.js";import{t as E}from"./PierreDiffViewer-B1e1H6br.js";import{t as D}from"./appThemeRegistry-BdjrGBQ4.js";import{r as O}from"./themes-BgDJcxRc.js";import{n as te,t as ne}from"./useProjectRuntimeAPIs-BItoD9Bt.js";import{n as re}from"./mobileBackNavigation-DF_uhF-i.js";import{i as ie}from"./MobileHtmlNetworkBoundary-TBxrF4jJ.js";import{n as ae,r as k,t as oe}from"./BinaryFileFallback-Cb3uP7y1.js";import{t as se}from"./ImageLoadingPlaceholder-DgM_EFHn.js";import{t as ce}from"./LoadingImage-Df22Rkor.js";import{t as le}from"./input-Cf16qJ6g.js";import{n as ue,o as A}from"./MarkdownRenderer-D7p9Iflj.js";import{o as de}from"./imageSource-BR4C9TuS.js";import{t as fe}from"./TextSelectionMenu-VsKriqtT.js";import{t as pe}from"./useDebouncedValue-BHlMPqY8.js";var j=i(),M=e(r(),1),me=e(t(),1),N=n(),P=A(()=>u(()=>import(`./ToolOutputDialog-DqCCsC-N.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83]))),F=25e4,I=e=>(e||``).replace(/\\/g,`/`).replace(/\/+$/g,``),he=e=>{let t=I(e);return!t||t===`/`?t||`/`:t.split(`/`).filter(Boolean).at(-1)??t},ge=e=>{let t=I(e);if(!t||t===`/`)return null;let n=t.lastIndexOf(`/`);return n<=0?t.startsWith(`/`)?`/`:null:t.slice(0,n)},L=(e,t)=>{let n=I(e),r=I(t);return!r||n===r?he(n):n.startsWith(`${r}/`)?n.slice(r.length+1):n},_e=e=>{if(typeof e!=`number`||!Number.isFinite(e)||e<0)return``;if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`],n=e/1024;for(let e of t){if(n<1024||e===t[t.length-1])return`${n.toFixed(n>=10?0:1)} ${e}`;n/=1024}return``},R=e=>/\.(md|mdx|markdown)$/i.test(e),ve=e=>{let t=(0,j.c)(156),{onClose:n,initialFilePath:r,directFilePreview:i,hideFileHeader:u}=e,f=r===void 0?null:r,p=i!==void 0&&i,y=u!==void 0&&u,{t:x}=v(),{files:C}=te(),w=ne()??null,T;t[0]===w?T=t[1]:(T=I(w),t[0]=w,t[1]=T);let E=T,D;t[2]!==f||t[3]!==E?(D=()=>{let e=I(f);return e?{type:`file`,path:e,returnDirectory:ge(e)??E}:{type:`browser`,directory:E}},t[2]=f,t[3]=E,t[4]=D):D=t[4];let[O,ie]=M.useState(D),ae=M.useRef(null),[k,oe]=M.useState(``),se=d(Ee),ce=d(De),ue,A;t[5]===E?(ue=t[6],A=t[7]):(ue=()=>{E&&ie(e=>e.type===`file`?e.returnDirectory?e:{...e,returnDirectory:ge(e.path)??E}:e.type===`browser`&&e.directory?e:{type:`browser`,directory:E})},A=[E],t[5]=E,t[6]=ue,t[7]=A),M.useEffect(ue,A);let de,fe;t[8]!==se||t[9]!==E||t[10]!==ce?(fe=()=>{if(!se||!E)return;let e=I(se);if(!e){ce(null);return}oe(``),ie({type:`file`,path:e,returnDirectory:ge(e)??E}),ce(null)},de=[se,E,ce],t[8]=se,t[9]=E,t[10]=ce,t[11]=de,t[12]=fe):(de=t[11],fe=t[12]),M.useEffect(fe,de);let me=O.type===`browser`?O.directory:O.returnDirectory,P=O.type===`browser`?O.directory:``,L=O.type===`file`?O.path:``,[R,ve]=M.useState(`preview`),xe;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(xe=()=>{ve(`preview`)},t[13]=xe):xe=t[13];let Ce;t[14]===L?Ce=t[15]:(Ce=[L],t[14]=L,t[15]=Ce),M.useEffect(xe,Ce);let we=pe(k,250),ke;t[16]===k?ke=t[17]:(ke=k.trim(),t[16]=k,t[17]=ke);let Ae=ke,z;t[18]===we?z=t[19]:(z=we.trim(),t[18]=we,t[19]=z);let B=z,je;t[20]!==P||t[21]!==E?(je={scopeDirectory:E,directory:P},t[20]=P,t[21]=E,t[22]=je):je=t[22];let Me=!!P,V;t[23]===Me?V=t[24]:(V={enabled:Me,refetchOnMount:`always`},t[23]=Me,t[24]=V);let H=a(je,V),U;t[25]!==P||t[26]!==B?(U={directory:P,query:B,maxResults:40},t[25]=P,t[26]=B,t[27]=U):U=t[27];let W=!!(P&&B),G;t[28]===W?G=t[29]:(G={enabled:W},t[28]=W,t[29]=G);let Ne=c(U,G),K;t[30]===L?K=t[31]:(K=L&&(!b(L)||L.toLowerCase().endsWith(`.svg`)),t[30]=L,t[31]=K);let q=!!K,Pe;t[32]!==L||t[33]!==E?(Pe={scopeDirectory:E,path:L},t[32]=L,t[33]=E,t[34]=Pe):Pe=t[34];let J;t[35]===q?J=t[36]:(J={enabled:q},t[35]=q,t[36]=J);let Y=s(Pe,J),X=q&&Y.data?.isBinary===!0,Z;t[37]!==L||t[38]!==Y.data||t[39]!==Y.error||t[40]!==Y.isFetchedAfterMount||t[41]!==C||t[42]!==R||t[43]!==X?(Z=L&&C.readFile&&Y.data&&Y.isFetchedAfterMount&&!Y.error&&!X&&(!S(L)||R===`source`)&&(!b(L)||L.toLowerCase().endsWith(`.svg`)),t[37]=L,t[38]=Y.data,t[39]=Y.error,t[40]=Y.isFetchedAfterMount,t[41]=C,t[42]=R,t[43]=X,t[44]=Z):Z=t[44];let Fe=!!Z,Ie;t[45]!==L||t[46]!==E?(Ie={scopeDirectory:E,path:L},t[45]=L,t[46]=E,t[47]=Ie):Ie=t[47];let Le;t[48]===Fe?Le=t[49]:(Le={enabled:Fe},t[48]=Fe,t[49]=Le);let Q=o(Ie,Le),Re=H.data?.entries.slice().sort(Oe)??[],$;t[50]!==H.error||t[51]!==x?($=H.error?H.error instanceof Error?H.error.message:x(`mobile.files.error.listFailed`):null,t[50]=H.error,t[51]=x,t[52]=$):$=t[52];let ze=$,Be=H.isFetching,Ve;t[53]===Ne.data?Ve=t[54]:(Ve=Ne.data??[],t[53]=Ne.data,t[54]=Ve);let He=Ve,Ue=!!(Ae&&B&&k===we&&Ne.isFetching),We;t[55]!==Q.data||t[56]!==x?(We=Q.data&&Q.data.length>F?`${Q.data.slice(0,F)}\n\n${x(`mobile.files.file.truncated`)}`:Q.data??``,t[55]=Q.data,t[56]=x,t[57]=We):We=t[57];let Ge=We,Ke=Y.error??Q.error,qe;t[58]!==C||t[59]!==X||t[60]!==q||t[61]!==Ke||t[62]!==x?(qe=q&&(!C.statFile||!X&&!C.readFile)?x(`mobile.files.error.readUnavailable`):Ke?Ke instanceof Error?Ke.message:x(`filesView.error.readFileFailed`):null,t[58]=C,t[59]=X,t[60]=q,t[61]=Ke,t[62]=x,t[63]=qe):qe=t[63];let Je=qe,Ye=!Je&&(q&&(!Y.data||!Y.isFetchedAfterMount)||Fe&&Q.isFetching&&Q.data===void 0),Xe;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=e=>{oe(``),ie({type:`browser`,directory:e})},t[64]=Xe):Xe=t[64];let Ze=Xe,Qe;t[65]!==me||t[66]!==E?(Qe=e=>{ie({type:`file`,path:e,returnDirectory:me||E})},t[65]=me,t[66]=E,t[67]=Qe):Qe=t[67];let $e=Qe,et;t[68]!==p||t[69]!==n||t[70]!==O.returnDirectory||t[71]!==O.type?(et=()=>O.type===`file`?p?(n?.(),!0):(ie({type:`browser`,directory:O.returnDirectory}),!0):!1,t[68]=p,t[69]=n,t[70]=O.returnDirectory,t[71]=O.type,t[72]=et):et=t[72];let tt=l(et),nt=O.type===`file`,rt;t[73]!==tt||t[74]!==nt?(rt={id:`mobile-files-detail`,active:nt,layer:`overlay`,onBack:tt,surfaceRef:ae},t[73]=tt,t[74]=nt,t[75]=rt):rt=t[75],re(rt);let it;t[76]===x?it=t[77]:(it=async e=>{(await g(e)).ok||_.error(x(`mobile.files.toast.copyFailed`))},t[76]=x,t[77]=it);let at=it,ot;t[78]!==Ge||t[79]!==x?(ot=async()=>{(await g(Ge)).ok?_.success(x(`mobile.files.toast.contentCopied`)):_.error(x(`mobile.files.toast.copyFailed`))},t[78]=Ge,t[79]=x,t[80]=ot):ot=t[80];let st=ot;if(!E){let e;t[81]===x?e=t[82]:(e=x(`mobile.files.empty.noDirectory`),t[81]=x,t[82]=e);let n;return t[83]===e?n=t[84]:(n=(0,N.jsx)(Te,{message:e}),t[83]=e,t[84]=n),n}if(O.type===`file`){let e;t[85]!==at||t[86]!==O.path?(e=()=>void at(O.path),t[85]=at,t[86]=O.path,t[87]=e):e=t[87];let n;t[88]===st?n=t[89]:(n=()=>void st(),t[88]=st,t[89]=n);let r;return t[90]!==tt||t[91]!==Ge||t[92]!==Je||t[93]!==y||t[94]!==R||t[95]!==X||t[96]!==Ye||t[97]!==O.path||t[98]!==e||t[99]!==n?(r=(0,N.jsx)(`div`,{ref:ae,className:`flex h-full min-h-0 flex-col`,children:(0,N.jsx)(Se,{path:O.path,content:Ge,error:Je,isLoading:Ye,isBinary:X,hideHeader:y,htmlViewMode:R,onHtmlViewModeChange:ve,onBack:tt,onCopyPath:e,onCopyContent:n})}),t[90]=tt,t[91]=Ge,t[92]=Je,t[93]=y,t[94]=R,t[95]=X,t[96]=Ye,t[97]=O.path,t[98]=e,t[99]=n,t[100]=r):r=t[100],r}let ct;t[101]!==E||t[102]!==O.directory||t[103]!==x?(ct=O.directory===E?x(`mobile.files.rootDirectory`):he(O.directory),t[101]=E,t[102]=O.directory,t[103]=x,t[104]=ct):ct=t[104];let lt=ct,ut;t[105]!==k||t[106]!==He?(ut=k.trim()?He:[],t[105]=k,t[106]=He,t[107]=ut):ut=t[107];let dt=ut,ft,pt,mt,ht;if(t[108]!==n||t[109]!==k||t[110]!==E||t[111]!==O.directory||t[112]!==x){let e=ge(O.directory),r=O.directory!==E&&e!==null&&(e===E||e.startsWith(`${E}/`)),i=r&&!k.trim(),a=r?e:null;ht=`flex h-full flex-col overflow-hidden bg-background text-foreground`,ft=`flex h-[var(--yuri-header-height,56px)] shrink-0 items-center gap-2 px-3 text-foreground`,t[117]!==n||t[118]!==x?(pt=n?(0,N.jsx)(`button`,{type:`button`,className:`-ml-1 flex size-10 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-interactive-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,"aria-label":x(`mobile.surface.closeAria`),onClick:n,style:{touchAction:`manipulation`},children:(0,N.jsx)(h,{name:`close`,className:`size-5`})}):null,t[117]=n,t[118]=x,t[119]=pt):pt=t[119],mt=i&&a?(0,N.jsx)(`button`,{type:`button`,className:`flex size-10 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-interactive-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,"aria-label":x(`mobile.files.backToParentAria`,{name:he(a)}),onClick:()=>Ze(a),style:{touchAction:`manipulation`},children:(0,N.jsx)(h,{name:`arrow-left`,className:`size-5`})}):null,t[108]=n,t[109]=k,t[110]=E,t[111]=O.directory,t[112]=x,t[113]=ft,t[114]=pt,t[115]=mt,t[116]=ht}else ft=t[113],pt=t[114],mt=t[115],ht=t[116];let gt;t[120]===lt?gt=t[121]:(gt=(0,N.jsx)(`div`,{className:`min-w-0 flex-1 px-1`,children:(0,N.jsx)(`h2`,{className:`truncate typography-ui-label text-foreground`,children:lt})}),t[120]=lt,t[121]=gt);let _t;t[122]===x?_t=t[123]:(_t=x(`mobile.files.refreshAria`),t[122]=x,t[123]=_t);let vt;t[124]===H?vt=t[125]:(vt=()=>void H.refetch(),t[124]=H,t[125]=vt);let yt;t[126]===Symbol.for(`react.memo_cache_sentinel`)?(yt={touchAction:`manipulation`},t[126]=yt):yt=t[126];let bt=Be&&`animate-spin`,xt;t[127]===bt?xt=t[128]:(xt=m(`size-5`,bt),t[127]=bt,t[128]=xt);let St;t[129]===xt?St=t[130]:(St=(0,N.jsx)(h,{name:`refresh`,className:xt}),t[129]=xt,t[130]=St);let Ct;t[131]!==_t||t[132]!==vt||t[133]!==St?(Ct=(0,N.jsx)(`button`,{type:`button`,className:`flex size-10 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-interactive-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,"aria-label":_t,onClick:vt,style:yt,children:St}),t[131]=_t,t[132]=vt,t[133]=St,t[134]=Ct):Ct=t[134];let wt;t[135]!==ft||t[136]!==pt||t[137]!==mt||t[138]!==gt||t[139]!==Ct?(wt=(0,N.jsxs)(`header`,{className:ft,children:[pt,mt,gt,Ct]}),t[135]=ft,t[136]=pt,t[137]=mt,t[138]=gt,t[139]=Ct,t[140]=wt):wt=t[140];let Tt;t[141]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,N.jsx)(h,{name:`search`,className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`}),t[141]=Tt):Tt=t[141];let Et;t[142]===Symbol.for(`react.memo_cache_sentinel`)?(Et=e=>oe(e.target.value),t[142]=Et):Et=t[142];let Dt;t[143]===x?Dt=t[144]:(Dt=x(`mobile.files.search.placeholder`),t[143]=x,t[144]=Dt);let Ot;t[145]!==k||t[146]!==Dt?(Ot=(0,N.jsx)(`div`,{className:`shrink-0 px-4 pb-2 pt-1`,"data-mobile-sheet-no-dismiss":``,children:(0,N.jsxs)(`div`,{className:`relative`,children:[Tt,(0,N.jsx)(le,{type:`text`,inputMode:`search`,value:k,onChange:Et,placeholder:Dt,className:`h-11 pl-9`})]})}),t[145]=k,t[146]=Dt,t[147]=Ot):Ot=t[147];let kt=ee,At=ze?(0,N.jsx)(Te,{message:ze}):k.trim()?(0,N.jsx)(be,{results:dt,isSearching:Ue,onOpenFile:$e}):(0,N.jsxs)(`div`,{className:`overflow-hidden rounded-2xl border border-border/40 bg-[var(--surface-elevated)]`,children:[Re.length===0&&!Be?(0,N.jsx)(`div`,{className:`px-4 py-8 text-center typography-body text-muted-foreground`,children:x(`mobile.files.empty.directory`)}):null,Re.map(e=>(0,N.jsx)(ye,{name:e.name,path:e.path,directory:e.isDirectory,meta:e.isDirectory?void 0:_e(e.size),onClick:()=>e.isDirectory?Ze(e.path):$e(e.path)},e.path))]}),jt;t[148]!==kt||t[149]!==At?(jt=(0,N.jsx)(kt,{className:`overlay-scrollbar-container min-h-0 flex-1 overflow-y-auto px-4 pb-3`,children:At}),t[148]=kt,t[149]=At,t[150]=jt):jt=t[150];let Mt;return t[151]!==ht||t[152]!==wt||t[153]!==Ot||t[154]!==jt?(Mt=(0,N.jsxs)(`div`,{className:ht,children:[wt,Ot,jt]}),t[151]=ht,t[152]=wt,t[153]=Ot,t[154]=jt,t[155]=Mt):Mt=t[155],Mt},ye=e=>{let t=(0,j.c)(16),{name:n,path:r,directory:i,meta:a,onClick:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={touchAction:`manipulation`},t[0]=s):s=t[0];let c;t[1]!==i||t[2]!==r?(c=i?(0,N.jsx)(h,{name:`folder-3-fill`,className:`size-5 shrink-0 text-muted-foreground`}):(0,N.jsx)(w,{filePath:r,className:`size-5 shrink-0`}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let l;t[4]===n?l=t[5]:(l=(0,N.jsx)(`span`,{className:`block min-w-0 flex-1 truncate typography-ui-label text-foreground`,children:n}),t[4]=n,t[5]=l);let u;t[6]===a?u=t[7]:(u=a?(0,N.jsx)(`span`,{className:`shrink-0 typography-micro text-muted-foreground`,children:a}):null,t[6]=a,t[7]=u);let d;t[8]===i?d=t[9]:(d=i?(0,N.jsx)(h,{name:`arrow-right-s`,className:`size-4 shrink-0 text-muted-foreground/60`}):null,t[8]=i,t[9]=d);let f;return t[10]!==o||t[11]!==c||t[12]!==l||t[13]!==u||t[14]!==d?(f=(0,N.jsxs)(`button`,{type:`button`,className:`flex min-h-14 w-full items-center gap-3 border-b border-border/30 px-3 py-2.5 text-left transition-colors last:border-b-0 hover:bg-interactive-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset`,onClick:o,style:s,children:[c,l,u,d]}),t[10]=o,t[11]=c,t[12]=l,t[13]=u,t[14]=d,t[15]=f):f=t[15],f},be=e=>{let t=(0,j.c)(10),{results:n,isSearching:r,onOpenFile:i}=e,{t:a}=v(),o=I(ne()??null);if(r){let e;t[0]===a?e=t[1]:(e=a(`common.loading`),t[0]=a,t[1]=e);let n;return t[2]===e?n=t[3]:(n=(0,N.jsx)(Te,{loading:!0,message:e}),t[2]=e,t[3]=n),n}if(n.length===0){let e;t[4]===a?e=t[5]:(e=a(`mobile.files.search.empty`),t[4]=a,t[5]=e);let n;return t[6]===e?n=t[7]:(n=(0,N.jsx)(Te,{message:e}),t[6]=e,t[7]=n),n}let s=n.map(e=>(0,N.jsx)(ye,{name:he(e.path),path:e.path,directory:!1,meta:L(e.path,o),onClick:()=>i(e.path)},e.path)),c;return t[8]===s?c=t[9]:(c=(0,N.jsx)(`div`,{className:`overflow-hidden rounded-2xl border border-border/40 bg-[var(--surface-elevated)]`,children:s}),t[8]=s,t[9]=c),c},xe=e=>{let t=(0,j.c)(26),{path:n,canUseText:r,htmlViewMode:i,htmlFullscreen:a,onToggleHtmlViewMode:o,onEnterHtmlFullscreen:s,onCopyPath:c,onCopyContent:l}=e,{t:u}=v(),d;t[0]===n?d=t[1]:(d=S(n),t[0]=n,t[1]=d);let f=d,m;t[2]!==r||t[3]!==f||t[4]!==a||t[5]!==i||t[6]!==s||t[7]!==o||t[8]!==u?(m=f&&r?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(p,{type:`button`,variant:`ghost`,size:`icon`,onClick:o,"aria-label":u(i===`preview`?`mobile.files.html.viewSourceAria`:`mobile.files.html.viewPreviewAria`),children:(0,N.jsx)(h,{name:i===`preview`?`file-code`:`eye`,className:`size-4`})}),a?null:(0,N.jsx)(p,{type:`button`,variant:`ghost`,size:`icon`,onClick:s,"aria-label":u(`mobile.files.html.fullscreenAria`),children:(0,N.jsx)(h,{name:`fullscreen`,className:`size-4`})})]}):null,t[2]=r,t[3]=f,t[4]=a,t[5]=i,t[6]=s,t[7]=o,t[8]=u,t[9]=m):m=t[9];let g;t[10]!==r||t[11]!==f||t[12]!==l||t[13]!==n||t[14]!==u?(g=r&&!b(n)&&!f?(0,N.jsx)(p,{type:`button`,variant:`ghost`,size:`icon`,onClick:l,"aria-label":u(`mobile.files.copyContentAria`),children:(0,N.jsx)(h,{name:`file-copy`,className:`size-4`})}):null,t[10]=r,t[11]=f,t[12]=l,t[13]=n,t[14]=u,t[15]=g):g=t[15];let _;t[16]!==r||t[17]!==f||t[18]!==c||t[19]!==n||t[20]!==u?(_=!r||b(n)||f?(0,N.jsx)(p,{type:`button`,variant:`ghost`,size:`icon`,onClick:c,"aria-label":u(`mobile.files.copyPathAria`),children:(0,N.jsx)(h,{name:`clipboard`,className:`size-4`})}):null,t[16]=r,t[17]=f,t[18]=c,t[19]=n,t[20]=u,t[21]=_):_=t[21];let y;return t[22]!==m||t[23]!==g||t[24]!==_?(y=(0,N.jsxs)(N.Fragment,{children:[m,g,_]}),t[22]=m,t[23]=g,t[24]=_,t[25]=y):y=t[25],y},Se=e=>{let t=(0,j.c)(90),{path:n,content:r,error:i,isLoading:a,isBinary:o,hideHeader:s,htmlViewMode:c,onHtmlViewModeChange:u,onBack:d,onCopyPath:f,onCopyContent:m}=e,g=s!==void 0&&s,{t:_}=v(),y=M.useRef(null),w=ne(),T=b(n)&&!n.toLowerCase().endsWith(`.svg`)?n:``,E;t[0]===n?E=t[1]:(E=ge(n)??``,t[0]=n,t[1]=E);let D=de(T,E,`preview`),[O,te]=M.useState(``),k;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={open:!1,title:``,content:``},t[2]=k):k=t[2];let[le,ue]=M.useState(k),A=D.source,pe;t[3]===n?pe=t[4]:(pe=he(n),t[3]=n,t[4]=pe);let F=pe,I;t[5]!==r||t[6]!==n?(I=b(n)?`data:${x(n)};utf8,${encodeURIComponent(r)}`:``,t[5]=r,t[6]=n,t[7]=I):I=t[7];let L=I,_e;t[8]!==r||t[9]!==L||t[10]!==A||t[11]!==n?(_e=A||(b(n)&&r?L:``),t[8]=r,t[9]=L,t[10]=A,t[11]=n,t[12]=_e):_e=t[12];let R=_e,ve;t[13]!==i||t[14]!==O||t[15]!==D.error||t[16]!==R||t[17]!==_?(ve=i??D.error??(R&&O===R?_(`filesView.error.readFileFailed`):null),t[13]=i,t[14]=O,t[15]=D.error,t[16]=R,t[17]=_,t[18]=ve):ve=t[18];let ye=ve,be;t[19]===R?be=t[20]:(be=()=>te(R),t[19]=R,t[20]=be);let Se=l(be),Ee;t[21]!==F||t[22]!==T||t[23]!==n||t[24]!==R?(Ee=e=>{let t=T||R;t&&ue({open:!0,title:F,content:``,previewSource:e.currentTarget.querySelector(`img`)??void 0,metadata:{tool:`image-preview`,filename:F,mime:x(n)},image:{url:t,mimeType:x(n),filename:F}})},t[21]=F,t[22]=T,t[23]=n,t[24]=R,t[25]=Ee):Ee=t[25];let De=l(Ee),Oe;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=e=>{ue(t=>t.open===e?t:{...t,open:e})},t[26]=Oe):Oe=t[26];let ke=l(Oe),Ae;t[27]===n?Ae=t[28]:(Ae=S(n),t[27]=n,t[28]=Ae);let z=Ae,[B,je]=M.useState(!1),Me=M.useRef(null),V;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>{je(!1)},t[29]=V):V=t[29];let H;t[30]===n?H=t[31]:(H=[n],t[30]=n,t[31]=H),M.useEffect(V,H);let U;t[32]!==c||t[33]!==u?(U=()=>{u(c===`preview`?`source`:`preview`)},t[32]=c,t[33]=u,t[34]=U):U=t[34];let W=l(U),G;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(G=()=>{je(!0)},t[35]=G):G=t[35];let Ne=l(G),K;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>(je(!1),!0),t[36]=K):K=t[36];let q=l(K),Pe=z&&B,J;t[37]!==q||t[38]!==Pe?(J={id:`mobile-html-fullscreen`,active:Pe,layer:`overlay`,onBack:q,surfaceRef:Me},t[37]=q,t[38]=Pe,t[39]=J):J=t[39],re(J);let Y=!o&&!a&&!i,X;t[40]!==Ne||t[41]!==B||t[42]!==c||t[43]!==m||t[44]!==f||t[45]!==n||t[46]!==Y||t[47]!==W?(X=(0,N.jsx)(xe,{path:n,canUseText:Y,htmlViewMode:c,htmlFullscreen:B,onToggleHtmlViewMode:W,onEnterHtmlFullscreen:Ne,onCopyPath:f,onCopyContent:m}),t[40]=Ne,t[41]=B,t[42]=c,t[43]=m,t[44]=f,t[45]=n,t[46]=Y,t[47]=W,t[48]=X):X=t[48];let Z=X,Fe;t[49]!==r||t[50]!==i||t[51]!==c||t[52]!==a||t[53]!==n||t[54]!==_?(Fe=c===`source`?a?(0,N.jsx)(Te,{loading:!0,message:_(`filesView.state.loading`)}):i?(0,N.jsx)(ie,{message:i}):(0,N.jsx)(we,{path:n,content:r}):(0,N.jsx)(Ce,{path:n}),t[49]=r,t[50]=i,t[51]=c,t[52]=a,t[53]=n,t[54]=_,t[55]=Fe):Fe=t[55];let Ie=Fe,Le;t[56]!==q||t[57]!==z||t[58]!==Ie||t[59]!==B||t[60]!==c||t[61]!==F||t[62]!==_||t[63]!==W?(Le=z?(0,N.jsxs)(`div`,{ref:Me,"data-mobile-html-preview":c===`preview`&&!B?`true`:void 0,"data-mobile-html-fullscreen":c===`preview`&&B?`true`:void 0,className:B?`fixed inset-0 z-[80] flex flex-col bg-background text-foreground`:`flex min-h-0 flex-1 flex-col overflow-hidden bg-background`,children:[B?(0,N.jsxs)(`header`,{className:`flex shrink-0 items-center gap-2 border-b border-border/50 px-3 pb-2 pt-[max(0.5rem,env(safe-area-inset-top))]`,children:[(0,N.jsx)(p,{type:`button`,variant:`ghost`,size:`icon`,onClick:q,"aria-label":_(`mobile.files.html.exitFullscreenAria`),className:`shrink-0 text-muted-foreground`,children:(0,N.jsx)(h,{name:`arrow-left`,className:`size-5`})}),(0,N.jsx)(`h2`,{className:`min-w-0 flex-1 truncate typography-ui-header text-foreground`,children:F}),(0,N.jsx)(p,{type:`button`,variant:`ghost`,size:`icon`,onClick:W,"aria-label":_(c===`preview`?`mobile.files.html.viewSourceAria`:`mobile.files.html.viewPreviewAria`),children:(0,N.jsx)(h,{name:c===`preview`?`file-code`:`eye`,className:`size-4`})})]}):null,(0,N.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden bg-background`,children:Ie})]}):null,t[56]=q,t[57]=z,t[58]=Ie,t[59]=B,t[60]=c,t[61]=F,t[62]=_,t[63]=W,t[64]=Le):Le=t[64];let Q=Le,Re=w??void 0,$;t[65]!==r||t[66]!==i||t[67]!==Z||t[68]!==Se||t[69]!==ke||t[70]!==g||t[71]!==z||t[72]!==B||t[73]!==Q||t[74]!==ye||t[75]!==F||t[76]!==le||t[77]!==D.loading||t[78]!==o||t[79]!==a||t[80]!==d||t[81]!==De||t[82]!==n||t[83]!==R||t[84]!==_?($=e=>{let{preview:t,controls:s}=e;return(0,N.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col overflow-hidden bg-background text-foreground`,"data-mobile-edge-to-edge-preview":`true`,children:[g?(0,N.jsxs)(C,{children:[s,Z]}):(0,N.jsxs)(`header`,{className:`flex h-[var(--yuri-header-height,56px)] shrink-0 items-center gap-3 border-b border-border/50 px-3 text-foreground`,children:[(0,N.jsx)(`button`,{type:`button`,className:`flex size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-interactive-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,"aria-label":_(`header.actions.backAria`),onClick:d,children:(0,N.jsx)(h,{name:`arrow-left`,className:`size-5`})}),(0,N.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,N.jsx)(`h2`,{className:`truncate typography-ui-header text-foreground`,children:F})}),s,Z]}),(0,N.jsx)(`div`,{ref:y,className:`flex min-h-0 flex-1 flex-col overflow-hidden bg-background`,children:t??(o&&!a&&!i?(0,N.jsx)(oe,{path:n},n):z&&!a&&!i?B&&typeof document<`u`?(0,me.createPortal)(Q,document.body):Q:a||D.loading?b(n)?(0,N.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-4`,children:(0,N.jsx)(se,{className:`aspect-square w-64 max-w-full rounded-lg`})}):(0,N.jsx)(Te,{loading:!0,message:_(`filesView.state.loading`)}):ye?(0,N.jsx)(ie,{message:ye}):b(n)&&R?(0,N.jsx)(ee,{className:`h-full overflow-auto p-4`,children:(0,N.jsx)(`button`,{type:`button`,className:`mx-auto block w-full cursor-zoom-in rounded-lg border-0 bg-transparent p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary [&>.yuri-image-frame]:w-full`,onClick:De,"aria-label":F,children:(0,N.jsx)(ce,{src:R,alt:F,className:`h-auto w-full rounded-lg object-contain`,draggable:!1,onError:Se})})}):(0,N.jsx)(we,{path:n,content:r}))}),(0,N.jsx)(fe,{containerRef:y}),le.open?(0,N.jsx)(M.Suspense,{fallback:null,children:(0,N.jsx)(P,{popup:le,onOpenChange:ke,isMobile:!0})}):null]})},t[65]=r,t[66]=i,t[67]=Z,t[68]=Se,t[69]=ke,t[70]=g,t[71]=z,t[72]=B,t[73]=Q,t[74]=ye,t[75]=F,t[76]=le,t[77]=D.loading,t[78]=o,t[79]=a,t[80]=d,t[81]=De,t[82]=n,t[83]=R,t[84]=_,t[85]=$):$=t[85];let ze;return t[86]!==n||t[87]!==Re||t[88]!==$?(ze=(0,N.jsx)(ae,{path:n,base:Re,children:$}),t[86]=n,t[87]=Re,t[88]=$,t[89]=ze):ze=t[89],ze},Ce=e=>{let t=(0,j.c)(5),{path:n}=e,{projectScope:r}=te(),i=ne(),a=r?.location.directory??i??``,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={backgroundColor:`var(--surface-background)`},t[0]=o):o=t[0];let s;return t[1]!==n||t[2]!==r||t[3]!==a?(s=(0,N.jsx)(k,{path:n,directory:a,entry:r,className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-background`,iframeClassName:`h-full min-h-0 w-full flex-1 border-none bg-background`,iframeStyle:o}),t[1]=n,t[2]=r,t[3]=a,t[4]=s):s=t[4],s},we=e=>{let t=(0,j.c)(30),{path:n,content:r}=e,{currentTheme:i,availableThemes:a,lightThemeId:o,darkThemeId:s}=T(),c;t[0]!==a||t[1]!==o?(c=a.find(e=>e.metadata.id===o)??O(!1),t[0]=a,t[1]=o,t[2]=c):c=t[2];let l=c,u;t[3]!==a||t[4]!==s?(u=a.find(e=>e.metadata.id===s)??O(!0),t[3]=a,t[4]=s,t[5]=u):u=t[5];let d=u,p,m;t[6]!==d||t[7]!==l?(p=()=>{D(l),D(d)},m=[d,l],t[6]=d,t[7]=l,t[8]=p,t[9]=m):(p=t[8],m=t[9]),M.useEffect(p,m);let h;t[10]!==d.metadata.id||t[11]!==l.metadata.id?(h={light:l.metadata.id,dark:d.metadata.id},t[10]=d.metadata.id,t[11]=l.metadata.id,t[12]=h):h=t[12];let g=h;if(R(n)){let e;return t[13]===r?e=t[14]:(e=(0,N.jsx)(ee,{className:`h-full overflow-y-auto px-4 py-4`,children:(0,N.jsx)(ue,{content:r,enableFileReferences:!1})}),t[13]=r,t[14]=e),e}let _;t[15]===n?_=t[16]:(_=he(n),t[15]=n,t[16]=_);let v;t[17]===n?v=t[18]:(v=y(n)||void 0,t[17]=n,t[18]=v);let b;t[19]!==r||t[20]!==_||t[21]!==v?(b={name:_,contents:r,lang:v},t[19]=r,t[20]=_,t[21]=v,t[22]=b):b=t[22];let x=i.metadata.variant===`dark`?`dark`:`light`,S;t[23]!==g||t[24]!==x?(S={disableFileHeader:!0,overflow:`wrap`,theme:g,themeType:x,unsafeCSS:E},t[23]=g,t[24]=x,t[25]=S):S=t[25];let C;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(C={minHeight:`100%`},t[26]=C):C=t[26];let w;return t[27]!==S||t[28]!==b?(w=(0,N.jsx)(`div`,{className:`flex h-full flex-col overflow-hidden`,children:(0,N.jsx)(ee,{className:`min-h-0 flex-1 overflow-auto bg-[var(--syntax-base-background)]`,children:(0,N.jsx)(f,{file:b,options:S,className:`block min-h-full w-full`,style:C})})}),t[27]=S,t[28]=b,t[29]=w):w=t[29],w},Te=e=>{let t=(0,j.c)(7),{message:n,loading:r}=e,i=r!==void 0&&r,a;t[0]===i?a=t[1]:(a=i?(0,N.jsx)(h,{name:`loader-4`,className:`size-5 animate-spin text-muted-foreground`}):(0,N.jsx)(h,{name:`folder-open-fill`,className:`size-6 text-muted-foreground`}),t[0]=i,t[1]=a);let o;t[2]===n?o=t[3]:(o=(0,N.jsx)(`p`,{className:`typography-ui-label font-semibold text-foreground`,children:n}),t[2]=n,t[3]=o);let s;return t[4]!==a||t[5]!==o?(s=(0,N.jsx)(`div`,{className:`flex h-full items-center justify-center px-6 text-center`,children:(0,N.jsxs)(`div`,{className:`flex max-w-sm flex-col items-center gap-2`,children:[a,o]})}),t[4]=a,t[5]=o,t[6]=s):s=t[6],s};function Ee(e){return e.pendingFileFocusPath}function De(e){return e.setPendingFileFocusPath}function Oe(e,t){return e.isDirectory===t.isDirectory?e.name.localeCompare(t.name):e.isDirectory?-1:1}export{ve as MobileFilesSurface};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mobileConnections-DjT1L-_m.js","assets/rolldown-runtime-hePW80VL.js","assets/runtime-auth-DA-qfGHk.js","assets/runtime-switch-DEPKHgdL.js","assets/runtime-fetch-V-iMWR8t.js","assets/reasoning-projection-client-BEhVknv9.js","assets/platform-CiUKDeXd.js","assets/runtimeAPIRegistry-C2VogTny.js","assets/vendor-pathe-vBmvQE8f.js","assets/vendor-base-ui-wXsskyKm.js","assets/brand-storage-bootstrap-D4BW3w-M.js","assets/brand-storage-migration-Bhz6UOBJ.js","assets/vendor-reactuses-core-DjKFMfz7.js","assets/vendor-lodash-es-BS45jPoZ.js","assets/vendor-js-cookie-hSOiFTtX.js","assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js","assets/useUIStore-C3ewjGgP.js","assets/vendor-zustand-CTekDqaS.js","assets/safeStorage-DTOhKN0V.js","assets/useMobileHtmlPreviewStore-BYunNOBo.js","assets/uuid-D-SDZijH.js","assets/i18n-DXc6czdR.js","assets/vendor-react-BkccXcWz.js","assets/runtime-ead7P81A.js","assets/bootstrap-eLlfzqAI.js","assets/store-C1ifDY0C.js","assets/tour-CMXP3Kif.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{E as t,S as n,_ as r,k as i,p as a}from"./runtime-auth-DA-qfGHk.js";import{c as o,f as s,n as c,t as l}from"./runtime-switch-DEPKHgdL.js";import{n as u}from"./platform-CiUKDeXd.js";import{ot as d,st as f}from"./vendor-base-ui-wXsskyKm.js";import{n as p}from"./vendor-react-BkccXcWz.js";import{a as m,n as h,o as g}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";import{i as _}from"./session-startup-barrier-DT-hIBRf.js";import{t as v}from"./i18n-DXc6czdR.js";var y=e(f(),1),b=p(),x=d();function S(e){let t=(0,b.c)(7),{illustration:n,children:r}=e,i;t[0]===n?i=t[1]:(i=(0,x.jsx)(`div`,{className:`absolute inset-x-6 top-[calc(50%-4rem)] flex h-20 -translate-y-1/2 items-center justify-center`,"data-file-preview-illustration":!0,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=(0,x.jsx)(`div`,{className:`absolute inset-x-6 bottom-4 top-[calc(50%-0.25rem)] overflow-auto`,children:(0,x.jsx)(`div`,{className:`mx-auto flex w-full max-w-sm flex-col items-center gap-5 pb-2`,children:r})}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,x.jsxs)(`div`,{className:`relative h-full min-h-[240px]! w-full min-w-0 flex-1 text-center`,"data-file-preview-state":!0,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function C(e){let t=(0,b.c)(16),{message:n,onRetry:r}=e,{t:i}=v(),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,x.jsxs)(`svg`,{viewBox:`0 0 240 160`,fill:`none`,"aria-hidden":`true`,className:`h-20 w-30 max-w-full shrink-0 text-muted-foreground`,children:[(0,x.jsx)(`rect`,{x:`24`,y:`16`,width:`192`,height:`128`,rx:`14`,fill:`var(--surface-muted)`}),(0,x.jsx)(`rect`,{x:`40`,y:`32`,width:`160`,height:`96`,rx:`8`,stroke:`currentColor`,strokeOpacity:`0.3`,strokeDasharray:`4 5`}),(0,x.jsx)(`circle`,{cx:`86`,cy:`62`,r:`10`,fill:`currentColor`,opacity:`0.15`}),(0,x.jsx)(`path`,{d:`m52 116 42-39 26 24 25-31 43 46`,stroke:`currentColor`,strokeOpacity:`0.3`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,x.jsx)(`circle`,{cx:`177`,cy:`119`,r:`21`,fill:`var(--surface-elevated)`,stroke:`var(--interactive-border)`}),(0,x.jsx)(`path`,{d:`M177 109v12m0 6v1`,stroke:`var(--status-error)`,strokeWidth:`2.5`,strokeLinecap:`round`})]}),t[0]=a):a=t[0];let o;t[1]===i?o=t[2]:(o=i(`filesView.error.previewUnavailable`),t[1]=i,t[2]=o);let s;t[3]===o?s=t[4]:(s=(0,x.jsx)(`p`,{className:`typography-ui-label text-foreground`,children:o}),t[3]=o,t[4]=s);let c;t[5]===n?c=t[6]:(c=(0,x.jsx)(`p`,{className:`typography-meta whitespace-pre-wrap break-words text-muted-foreground [overflow-wrap:anywhere]`,children:n}),t[5]=n,t[6]=c);let l;t[7]!==s||t[8]!==c?(l=(0,x.jsxs)(`div`,{role:`alert`,className:`w-full min-w-0 space-y-2`,children:[s,c]}),t[7]=s,t[8]=c,t[9]=l):l=t[9];let u;t[10]!==r||t[11]!==i?(u=r?(0,x.jsx)(_,{size:`sm`,onClick:r,children:i(`contextPanel.preview.actions.retry`)}):null,t[10]=r,t[11]=i,t[12]=u):u=t[12];let d;return t[13]!==l||t[14]!==u?(d=(0,x.jsxs)(S,{illustration:a,children:[l,u]}),t[13]=l,t[14]=u,t[15]=d):d=t[15],d}var w=e=>{let t=typeof e==`string`?JSON.parse(e):null;if(!t||typeof t!=`object`||!(`type`in t)||t.type!==`ready`||!(`version`in t)||t.version!==1)throw Error(`unsupported_host`);if(!(`httpOrigin`in t))return;if(typeof t.httpOrigin!=`string`)throw Error(`unsupported_host`);let n=new URL(t.httpOrigin);if(n.protocol!==`http:`||n.hostname!==`localhost`||n.username||n.password||n.pathname!==`/`||n.search||n.hash||![n.origin,`${n.origin}/`].includes(t.httpOrigin))throw Error(`unsupported_host`);return n.origin};async function T({signal:e,path:t=`/api/gui-network/ws`,openSocket:n,onMessage:r,onFailure:i}){let o=()=>new DOMException(`GUI runtime ended`,`AbortError`);if(e.aborted)throw o();let c,l=!1,u=!1,d,f,p,m=new Promise((e,t)=>{p=t});m.catch(()=>{});let h=()=>{l||(l=!0,clearTimeout(f),clearInterval(d),e.removeEventListener(`abort`,g),c&&(c.onopen=null,c.onmessage=null,c.onclose=null,c.onerror=null,c.close()),p(o()))},g=()=>h(),_=(e=Error(`relay_unavailable`))=>{l||(p(e),h(),u&&i())};try{if(f=setTimeout(()=>_(),2e4),e.addEventListener(`abort`,g,{once:!0}),await Promise.race([a(),m]),l||e.aborted)throw o();let i=c=n(s().websocket(t));i.binaryType=`arraybuffer`;let p=await Promise.race([new Promise(t=>{i.onclose=()=>_(),i.onerror=()=>_(),i.onmessage=e=>{try{let n=w(e.data);u=!0,clearTimeout(f),i.onmessage=e=>{if(!l){if((typeof e.data==`string`?e.data.length*2:e.data.byteLength)>16388){_(Error(`GUI network frame limit`));return}try{r(e)}catch{_()}}},d=setInterval(()=>{try{i.send(JSON.stringify({type:`ping`}))}catch{_()}},2e4),t(n)}catch{_(Error(`unsupported_host`))}},e.aborted&&h()}),m]);if(l||e.aborted)throw o();return{socket:i,hostOrigin:p,close:h}}catch(e){throw h(),e}}var E=e=>{let t=``;for(let n=0;n<e.length;n+=16384)t+=String.fromCharCode(...e.subarray(n,n+16384));return btoa(t)};async function D(e,t){let n=new Map,r=!1,i=await e.addListener(`wire`,e=>{!r&&e.scope===t&&n.get(e.wireId)?.receive(e)});return{createWireSocket(i){if(r)throw Error(`closed`);let a=crypto.randomUUID(),o=0,s=0,c=Promise.resolve(),l=r=>{o!==3&&(o=3,n.delete(a),e.disconnect({scope:t,wireId:a}).catch(()=>{}),d.onclose?.({code:r,reason:``}))},u=()=>{o!==3&&(d.onerror?.(),l(1006))},d={get readyState(){return o},onopen:null,onmessage:null,onclose:null,onerror:null,send(n){if(o!==1)throw Error(`wire_closed`);let r=typeof n==`string`?n:void 0,i=r===void 0?new Uint8Array(n instanceof ArrayBuffer?n.slice(0):n):void 0,l=r===void 0?i.length:r.length*2;if(l>2097152||s+l>4194304){u();return}s+=l,c=c.then(async()=>{o===1&&await e.write({scope:t,wireId:a,text:r,data:i?E(i):void 0})}).catch(u).finally(()=>{s-=l})},close(){l(1e3)}};return n.set(a,{socket:d,receive(e){if(o!==3){if(e.type===`open`)o=1,d.onopen?.();else if(e.type===`close`)l(e.code??1006);else if(e.type===`message`)try{let t=e.text??Uint8Array.from(atob(e.data??``),e=>e.charCodeAt(0)).buffer;d.onmessage?.({data:t})}catch{u()}}}}),e.connect({scope:t,wireId:a,url:i}).catch(u),d},async dispose(){r=!0;for(let{socket:e}of n.values())e.close();n.clear(),await i.remove()}}}var O=m(`YuriGuiNetwork`);function k(){return!h.isNativePlatform()||!h.isPluginAvailable(`YuriGuiNetwork`)?Promise.resolve():O.prepare().catch(()=>{})}var A=16384,j=131072,M=32,N=6e4,P=1e3,F=3e4,I=Promise.resolve(),L=e=>{try{let t=new URL(e),n=t.protocol===`https:`||t.protocol===`wss:`;if(!n&&t.protocol!==`http:`&&t.protocol!==`ws:`)return null;let r=t.hostname.replace(/^\[|\]$/g,``).toLowerCase();return r?{hostname:r,port:Number(t.port)||(n?443:80)}:null}catch{return null}},R=(e,t)=>{let n=new Map;for(let r of[e.relayUrl,l(),...t]){let e=r?L(r):null;e&&n.set(`${e.hostname}:${e.port}`,e)}return[...n.values()]};async function z(e,a){if(!h.isNativePlatform()||!h.isPluginAvailable(`YuriGuiNetwork`))throw Error(`unsupported`);let s=I,l;I=new Promise(e=>{l=e});let u=crypto.randomUUID(),d=c(),f,p,m=null,_=!1,v=!1,y,b,x,S=0,C=0,w,E=()=>{},L=()=>{},z=new Map,B=()=>!v&&!e.aborted&&d===c(),V=()=>{if(!B())throw new DOMException(`GUI runtime ended`,`AbortError`)},H=(e,t,n,r)=>O.send({scope:u,id:e,type:t,data:n,bytes:r}),U=e=>{b?.socket.readyState===1&&b.socket.send(JSON.stringify(e))},W=()=>{clearTimeout(w),b&&!z.size&&(w=setTimeout(()=>{z.size||K()},N))},G=(e,t)=>{z.delete(e)&&(t&&H(e,`close`).catch(()=>{}),W())},K=()=>{let e=b;b=void 0,clearTimeout(w),e&&(e.close(),e.tunnel.close())},q=(e=!0)=>{if(b){K(),S++,C=Date.now()+Math.min(F,P*2**(S-1));for(let e of[...z.keys()])G(e,!0);e&&B()&&a()}},J=(e,t,n,r)=>{let i=z.get(e);if(i){if(i.queued+(n?.length??0)>j){q();return}i.queued+=n?.length??0,i.chain=i.chain.then(async()=>{if(!B()||z.get(e)!==i)return;let a;n&&(a=btoa(String.fromCharCode(...n))),await H(e,t,a,r),n&&(i.queued-=n.length,U({type:`credit`,id:e,bytes:n.length})),t===`close`&&G(e,!1)}).catch(()=>{U({type:`close`,id:e}),G(e,!0)})}},Y=e=>{if(B())try{if(typeof e.data!=`string`){let t=e.data;if(t.byteLength<=4||t.byteLength>16388)throw Error();J(new DataView(t).getUint32(0),`data`,new Uint8Array(t,4));return}let t=JSON.parse(e.data);if(t.type===`pong`)return;if(!Number.isInteger(t.id))throw Error();if(t.type===`credit`){let e=z.get(t.id);if(!e)return;if(!Number.isInteger(t.bytes)||t.bytes<=0||e.credit+t.bytes>j)throw Error();e.credit+=t.bytes,J(t.id,`credit`,void 0,t.bytes)}else if(t.type===`opened`){let e=z.get(t.id);e&&(e.opened=!0,J(t.id,`opened`))}else if(t.type===`fin`||t.type===`close`)J(t.id,t.type);else throw Error()}catch{q()}},X=async()=>{let n=C-Date.now();n>0&&await new Promise(e=>setTimeout(e,n)),V();let r;try{let n=await T({signal:e,openSocket(e){return V(),r=t({...m,createWireSocket:p.createWireSocket}),r.openWebSocket(i(e))},onMessage:Y,onFailure:()=>{b?.tunnel===r&&q()}});if(!B())throw n.close(),new DOMException(`GUI runtime ended`,`AbortError`);return S=0,{...n,tunnel:r}}catch(e){throw r?.close(),e}},Z=()=>{if(b)return Promise.resolve(b);if(!x){let e=X().then(t=>{if(x!==e||!B())throw t.close(),t.tunnel.close(),new DOMException(`GUI runtime ended`,`AbortError`);return b=t,W(),t}).catch(t=>{throw x===e&&(S++,C=Date.now()+Math.min(F,P*2**(S-1)),B()&&a()),t}).finally(()=>{x===e&&(x=void 0)});x=e}return x},ee=e=>{if(!B())return;let{id:t,type:n}=e;if(n===`failed`){q();return}if(!Number.isInteger(t)||!t||t<0||t>4294967295)return;if(n===`open`){if(z.has(t)||z.size>=M){H(t,`close`).catch(()=>{});return}let r={chain:Promise.resolve(),queued:0,credit:j,opened:!1};z.set(t,r),clearTimeout(w),Z().then(()=>{z.get(t)===r&&U({type:n,id:t,hostname:e.hostname,port:e.port})}).catch(()=>G(t,!0));return}let r=z.get(t);if(r)if(n===`data`){let n=atob(e.data??``);if(!b||!r.opened||!n.length||n.length>A||n.length>r.credit){U({type:`close`,id:t}),G(t,!0);return}r.credit-=n.length;let i=new Uint8Array(4+n.length);new DataView(i.buffer).setUint32(0,t);for(let e=0;e<n.length;e++)i[e+4]=n.charCodeAt(e);b.socket.send(i)}else(n===`fin`||n===`close`)&&(U({type:n,id:t}),n===`close`&&G(t,!1))},Q=()=>y||(v=!0,E(),L(),e.removeEventListener(`abort`,$),x=void 0,K(),z.clear(),y=(async()=>{try{try{await f?.remove()}finally{await p?.dispose()}}finally{try{_&&await O.stop({scope:u})}finally{l()}}})(),y),$=()=>{Q().catch(()=>{})};try{if(await s,V(),await k(),V(),!(await O.capabilities()).supported)throw Error(`unsupported`);V(),m=n();let t=[],{loadMobileConnections:i,isActiveRuntimeConnection:a}=await g(async()=>{let{loadMobileConnections:e,isActiveRuntimeConnection:t}=await import(`./mobileConnections-DjT1L-_m.js`).then(e=>e.c);return{loadMobileConnections:e,isActiveRuntimeConnection:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])),c=(await i()).find(a);if(V(),t=c?.candidates.flatMap(e=>e.kind===`direct`?[e.url]:[])??[],m??=c?.candidates.find(e=>e.kind===`relay`)?.relay??null,!m)throw Error(`relay_required`);return p=await D(O,u),f=await O.addListener(`stream`,e=>{e.scope===u&&ee(e)}),V(),_=!0,await O.start({scope:u,relayUrl:m.relayUrl,direct:R(m,t)}),V(),E=o(()=>q()),L=r(()=>q(!1)),e.addEventListener(`abort`,$,{once:!0}),{async connect(e){if(e?.aborted)throw new DOMException(`Owner ended`,`AbortError`);return{hostOrigin:(await Z()).hostOrigin}},release:Q}}catch(e){throw await Q(),e}}var B,V=()=>new DOMException(`Mobile HTML owner ended`,`AbortError`);async function H(e,t){if(e.aborted)throw V();let n=c(),r=B;if(!r||r.generation!==n||r.closing){let e=new AbortController,t={generation:n,controller:e,owners:new Set,ready:Promise.resolve().then(()=>z(e.signal,()=>{for(let e of Array.from(t.owners))e.failed()}))};t.ready.catch(()=>{B===t&&(B=void 0)}),r=B=t}let i=r,a={failed:t};i.owners.add(a);let o,s,l=new Promise((e,t)=>{s=t}),u=()=>o||(e.removeEventListener(`abort`,d),i.owners.delete(a),i.owners.size?o=Promise.resolve():(B===i&&(B=void 0),i.controller.abort(),i.closing??=i.ready.then(e=>e.release(),()=>{}),o=i.closing)),d=()=>{s(V()),u().catch(()=>{})};e.addEventListener(`abort`,d,{once:!0});try{let t=await Promise.race([i.ready,l]);if(o||e.aborted||n!==c())throw V();return{connect:n=>t.connect(n??e),release:u}}catch(e){throw await u(),e}}function U(e){let t=(0,b.c)(24),{open:n,children:r}=e,{t:i}=v(),a=y.useSyncExternalStore(o,c,c),[s,l]=y.useReducer(W,0),[u,d]=y.useState(),f=u?.generation===a&&u.attempt===s&&u.open===n?u:void 0,p=f?.failed===!0,m,h;if(t[0]!==s||t[1]!==p||t[2]!==a||t[3]!==n?(m=()=>{if(p)return;let e=new AbortController,t=!1,r=()=>{t=!0,e.signal.aborted||d({generation:a,attempt:s,open:n,failed:!0})};return n(e.signal,r).then(r=>{!e.signal.aborted&&!t&&d({generation:a,attempt:s,open:n,network:r})}).catch(r),()=>e.abort()},h=[a,s,p,n],t[0]=s,t[1]=p,t[2]=a,t[3]=n,t[4]=m,t[5]=h):(m=t[4],h=t[5]),y.useEffect(m,h),p){let e;t[6]===i?e=t[7]:(e=i(`contextPanel.preview.proxyError`),t[6]=i,t[7]=e);let n;t[8]===e?n=t[9]:(n=(0,x.jsx)(C,{message:e}),t[8]=e,t[9]=n);let r;t[10]===i?r=t[11]:(r=i(`contextPanel.preview.actions.retry`),t[10]=i,t[11]=r);let a;t[12]===r?a=t[13]:(a=(0,x.jsx)(_,{size:`sm`,onClick:l,children:r}),t[12]=r,t[13]=a);let o;return t[14]!==n||t[15]!==a?(o=(0,x.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col items-center justify-center gap-3`,children:[n,a]}),t[14]=n,t[15]=a,t[16]=o):o=t[16],o}if(!f||f.network===void 0){let e;t[17]===i?e=t[18]:(e=i(`contextPanel.preview.loading`),t[17]=i,t[18]=e);let n;return t[19]===e?n=t[20]:(n=(0,x.jsx)(`div`,{className:`flex h-full items-center justify-center text-muted-foreground`,children:e}),t[19]=e,t[20]=n),n}let g;return t[21]!==r||t[22]!==f.network?(g=r(f.network),t[21]=r,t[22]=f.network,t[23]=g):g=t[23],g}function W(e){return e+1}var G=async(e,t)=>(await H(e,t)).connect(e),K=async e=>(await H(e,()=>{}),{});function q(e){let t=(0,b.c)(3),{children:n,connect:r}=e,i;return t[0]!==n||t[1]!==r?(i=u()?(0,x.jsx)(U,{open:r===!1?K:G,children:n}):n(),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}export{S as a,C as i,U as n,T as r,q as t};