@opengeni/react 6.5.2-canary.41607687019001 → 6.7.0

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 (1154) hide show
  1. package/dist/app/app-state.d.ts +4 -0
  2. package/dist/app/app-state.js +19 -14
  3. package/dist/app/components/Composer.js +25 -23
  4. package/dist/app/components/agent/agent-capability-picker.js +10 -8
  5. package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
  6. package/dist/app/components/artifacts/artifact-library.js +21 -19
  7. package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
  8. package/dist/app/components/artifacts/artifact-viewer.js +23 -22
  9. package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
  10. package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
  11. package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
  12. package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
  13. package/dist/app/components/artifacts/inline-chat-image.js +18 -18
  14. package/dist/app/components/artifacts/retained-file-preview.js +24 -23
  15. package/dist/app/components/artifacts/retained-text-preview.js +3 -3
  16. package/dist/app/components/artifacts/site-audience.js +6 -5
  17. package/dist/app/components/artifacts/site-conversations.js +16 -14
  18. package/dist/app/components/artifacts/site-data.js +18 -16
  19. package/dist/app/components/artifacts/site-public-link.js +3 -2
  20. package/dist/app/components/artifacts/site-publishing-page.js +39 -37
  21. package/dist/app/components/artifacts/site-publishing.js +34 -32
  22. package/dist/app/components/artifacts/site-settings.js +38 -36
  23. package/dist/app/components/artifacts/site-version-menu.js +8 -7
  24. package/dist/app/components/billing-class-mark.js +3 -3
  25. package/dist/app/components/bots/bot-launch-strip.js +17 -17
  26. package/dist/app/components/bots/bot-template-dialog.js +30 -28
  27. package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
  28. package/dist/app/components/bots/bot-templates-page.js +38 -36
  29. package/dist/app/components/bots/bot-templates-page.js.map +1 -1
  30. package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
  31. package/dist/app/components/capabilities/capability-logo-source.js +13 -13
  32. package/dist/app/components/capabilities/capability-logo.js +4 -3
  33. package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
  34. package/dist/app/components/capabilities/native-connect-setup.js +14 -14
  35. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
  36. package/dist/app/components/capabilities/perform-capability-action.js +7 -6
  37. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
  38. package/dist/app/components/capabilities/session-capability-card.js +72 -70
  39. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  40. package/dist/app/components/capabilities/session-chrome-card.js +28 -26
  41. package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
  42. package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
  43. package/dist/app/components/capabilities/session-github-card.js +22 -20
  44. package/dist/app/components/capabilities/session-machine-card.js +27 -25
  45. package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
  46. package/dist/app/components/capabilities/session-plugin-card.js +10 -9
  47. package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
  48. package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
  49. package/dist/app/components/command-menu/chat-status.js +15 -13
  50. package/dist/app/components/command-menu/chat-switcher.js +35 -33
  51. package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
  52. package/dist/app/components/command-menu/command-menu.js +53 -50
  53. package/dist/app/components/command-menu/command-menu.js.map +1 -1
  54. package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
  55. package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
  56. package/dist/app/components/common.js +4 -3
  57. package/dist/app/components/composer-capabilities-menu-body.js +4 -4
  58. package/dist/app/components/composer-mobile-plus-panel.js +8 -8
  59. package/dist/app/components/composer-mobile-plus.js +1 -1
  60. package/dist/app/components/credit-required-gate.js +3 -3
  61. package/dist/app/components/credit-required-prompt.js +10 -8
  62. package/dist/app/components/credit-required-prompt.js.map +1 -1
  63. package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
  64. package/dist/app/components/credits/checkout-return.js +3 -2
  65. package/dist/app/components/credits/checkout-return.js.map +1 -1
  66. package/dist/app/components/credits/coupon-redeem.js +5 -4
  67. package/dist/app/components/credits/credit-refusal-notice.js +7 -5
  68. package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
  69. package/dist/app/components/desktop/app-shots.js +13 -11
  70. package/dist/app/components/desktop/computer-use.js +6 -4
  71. package/dist/app/components/desktop/this-computer.js +9 -7
  72. package/dist/app/components/feedback.js +5 -4
  73. package/dist/app/components/follow-up-repository-menu-body.js +8 -6
  74. package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
  75. package/dist/app/components/follow-up-repository-picker.js +1 -1
  76. package/dist/app/components/github-app-connect-launcher.js +5 -4
  77. package/dist/app/components/in-app-help-link.js +3 -3
  78. package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
  79. package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
  80. package/dist/app/components/machines/connect-machine-dialog.js +18 -16
  81. package/dist/app/components/manual-repository-editor.js +3 -2
  82. package/dist/app/components/markdown.js +6 -6
  83. package/dist/app/components/models/models-ui.js +12 -10
  84. package/dist/app/components/my-things.js +12 -10
  85. package/dist/app/components/my-things.js.map +1 -1
  86. package/dist/app/components/new-session-starters.js +3 -3
  87. package/dist/app/components/own-where-it-works.js +9 -7
  88. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  89. package/dist/app/components/pickers.js +5 -5
  90. package/dist/app/components/rail/channel-create-dialog.js +7 -5
  91. package/dist/app/components/rail/project-glyph.js +17 -17
  92. package/dist/app/components/rail/project-profile.js +31 -29
  93. package/dist/app/components/rail/rail-context.js +3 -3
  94. package/dist/app/components/rail/rail-sections.js +68 -66
  95. package/dist/app/components/rail/session-header.js +59 -57
  96. package/dist/app/components/rail/session-list.js +66 -64
  97. package/dist/app/components/rail/session-row-content.js +4 -4
  98. package/dist/app/components/rail/session-row-hover-details.js +14 -12
  99. package/dist/app/components/rail/session-shell.js +90 -88
  100. package/dist/app/components/rail/site-session-group-heading.js +8 -8
  101. package/dist/app/components/repository-picker.js +8 -6
  102. package/dist/app/components/secrets/session-secrets-panel.js +4 -3
  103. package/dist/app/components/secrets/vault-model.js +3 -2
  104. package/dist/app/components/session/agent-configuration-panel.js +25 -23
  105. package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
  106. package/dist/app/components/session/artifact-link-boundary.js +3 -3
  107. package/dist/app/components/session/artifact-session-page.js +11 -9
  108. package/dist/app/components/session/banners.js +8 -8
  109. package/dist/app/components/session/codex-usage-notice.js +5 -3
  110. package/dist/app/components/session/console-new-conversation.js +42 -40
  111. package/dist/app/components/session/context-text-reader.js +3 -2
  112. package/dist/app/components/session/descendant-requests.js +39 -37
  113. package/dist/app/components/session/descendant-requests.js.map +1 -1
  114. package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
  115. package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
  116. package/dist/app/components/session/failed-session-banner.js +13 -11
  117. package/dist/app/components/session/failed-session-banner.js.map +1 -1
  118. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  119. package/dist/app/components/session/human-input-delegation-record.js +2 -2
  120. package/dist/app/components/session/human-input.js +33 -31
  121. package/dist/app/components/session/inspector.js +57 -55
  122. package/dist/app/components/session/inspector.js.map +1 -1
  123. package/dist/app/components/session/message-actions.js +5 -4
  124. package/dist/app/components/session/message-actions.js.map +1 -1
  125. package/dist/app/components/session/message-resource-attachments.js +12 -11
  126. package/dist/app/components/session/message-resource-attachments.js.map +1 -1
  127. package/dist/app/components/session/model-context-inspector.js +6 -4
  128. package/dist/app/components/session/model-recovery-notice.js +3 -3
  129. package/dist/app/components/session/new-session-settings-menu.js +11 -9
  130. package/dist/app/components/session/new-session-setup-strip.js +18 -18
  131. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  132. package/dist/app/components/session/sandbox-switcher.js +10 -9
  133. package/dist/app/components/session/sandbox-workspace.js +47 -46
  134. package/dist/app/components/session/search-markdown-highlight.js +7 -7
  135. package/dist/app/components/session/search-results-view.js +8 -8
  136. package/dist/app/components/session/session-admin-access.js +13 -11
  137. package/dist/app/components/session/session-admission-notice.js +7 -5
  138. package/dist/app/components/session/session-avatar-picker.js +22 -20
  139. package/dist/app/components/session/session-avatar.js +16 -16
  140. package/dist/app/components/session/session-machine-access-notice.js +7 -5
  141. package/dist/app/components/session/session-profile-dialog.js +29 -27
  142. package/dist/app/components/session/session-profile-editor.js +30 -28
  143. package/dist/app/components/session/session-retention.js +10 -8
  144. package/dist/app/components/session/session-search-dialog.js +10 -10
  145. package/dist/app/components/session/session-skill-reviews.js +2 -1
  146. package/dist/app/components/session/session-skill-reviews.js.map +1 -1
  147. package/dist/app/components/session/session-tenancy-control.js +13 -11
  148. package/dist/app/components/session/session-tenancy-control.js.map +1 -1
  149. package/dist/app/components/session/session-unattended-setting.js +7 -5
  150. package/dist/app/components/session/session-usage-limit-section.js +11 -9
  151. package/dist/app/components/session/share-chat-dialog.js +9 -7
  152. package/dist/app/components/session/site-origin-link.js +3 -3
  153. package/dist/app/components/session/subagents.js +8 -8
  154. package/dist/app/components/session/subscription-account-indicator.js +6 -6
  155. package/dist/app/components/session-connectors-menu-body.js +4 -3
  156. package/dist/app/components/session-connectors-menu-body.js.map +1 -1
  157. package/dist/app/components/settings/row-select.js +7 -5
  158. package/dist/app/components/toaster.js +3 -2
  159. package/dist/app/components/transcription-settings.js +11 -9
  160. package/dist/app/components/ui/destructive-confirm.js +11 -9
  161. package/dist/app/components/usage/usage-entry.js +5 -5
  162. package/dist/app/components/window-bar.js +16 -14
  163. package/dist/app/components/workspace-composer-plus.js +22 -21
  164. package/dist/app/components/workspace-reach.js +6 -4
  165. package/dist/app/components/workspace-tenant-boundary.js +5 -4
  166. package/dist/app/embed/memory-navigation.js +3 -3
  167. package/dist/app/embed/session-app.js +211 -209
  168. package/dist/app/lib/actions/actions-provider.js +15 -13
  169. package/dist/app/lib/agent-capabilities.js +3 -3
  170. package/dist/app/lib/app-surfaces.js +7 -6
  171. package/dist/app/lib/archive-session.d.ts +9 -4
  172. package/dist/app/lib/archive-session.js +4 -2
  173. package/dist/app/lib/bot-templates.js +3 -2
  174. package/dist/app/lib/capabilities.js +3 -2
  175. package/dist/app/lib/codex-usage-query.js +2 -2
  176. package/dist/app/lib/composer-connectors.js +17 -16
  177. package/dist/app/lib/console-site.js +2 -2
  178. package/dist/app/lib/console-text.js +2 -2
  179. package/dist/app/lib/events.js +9 -9
  180. package/dist/app/lib/failed-session-copy.js +3 -3
  181. package/dist/app/lib/inbox.js +4 -2
  182. package/dist/app/lib/model-access-onboarding.js +3 -3
  183. package/dist/app/lib/move-chat-to-machine.js +3 -3
  184. package/dist/app/lib/navigation.js +2 -2
  185. package/dist/app/lib/session-branch-cache.js +6 -6
  186. package/dist/app/lib/session-create.js +4 -4
  187. package/dist/app/lib/session-group-pagination.js +6 -6
  188. package/dist/app/lib/session-hover-facts.js +13 -11
  189. package/dist/app/lib/session-model.js +2 -2
  190. package/dist/app/lib/session-rail.js +3 -3
  191. package/dist/app/lib/session-rename.js +3 -3
  192. package/dist/app/lib/session-restart-operation-controller.js +4 -3
  193. package/dist/app/lib/session-tenancy.js +3 -2
  194. package/dist/app/lib/session-usage-limit.js +3 -2
  195. package/dist/app/lib/sessions-group.js +5 -5
  196. package/dist/app/lib/site-publishing.js +3 -2
  197. package/dist/app/lib/site-tool-consent-dialog.js +9 -7
  198. package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
  199. package/dist/app/lib/site-tool-consent.js +1 -1
  200. package/dist/app/lib/subscription-plans.js +3 -2
  201. package/dist/app/lib/toast.js +2 -1
  202. package/dist/app/lib/turn-failure-analytics.js +4 -4
  203. package/dist/app/lib/use-duplicate-site.js +6 -5
  204. package/dist/app/lib/use-follow-up-repositories.js +6 -5
  205. package/dist/app/lib/use-workspace-integrations.js +4 -3
  206. package/dist/app/lib/use-workspace-machines.js +4 -4
  207. package/dist/app/lib/use-workspace-model-catalog.js +5 -4
  208. package/dist/app/lib/use-workspace-rigs.js +2 -2
  209. package/dist/app/lib/workspace-navigation-preference.js +4 -4
  210. package/dist/app/lib/workspace-scope-context.js +3 -3
  211. package/dist/app/routes/artifacts.js +67 -66
  212. package/dist/app/routes/artifacts.js.map +1 -1
  213. package/dist/app/routes/retained-artifact.js +42 -40
  214. package/dist/app/routes/retained-artifact.js.map +1 -1
  215. package/dist/app/routes/session-unavailable.js +8 -7
  216. package/dist/app/routes/session.js +119 -117
  217. package/dist/app/routes/sessions-index-hydration.js +5 -5
  218. package/dist/app/routes/sessions-index.js +104 -102
  219. package/dist/app/routes/site-view.js +67 -65
  220. package/dist/app/routes/site-view.js.map +1 -1
  221. package/dist/artifacts-document.js +4 -4
  222. package/dist/artifacts-presentation.js +4 -4
  223. package/dist/artifacts-spreadsheet.js +4 -4
  224. package/dist/artifacts.js +10 -10
  225. package/dist/automations.js +17 -15
  226. package/dist/automations.js.map +1 -1
  227. package/dist/browser-viewer-TC27OCIP.js +23 -0
  228. package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
  229. package/dist/chunk-2BDT3UZQ.js +229 -0
  230. package/dist/chunk-2CLNIEK4.js +373 -0
  231. package/dist/chunk-2FSBSCZJ.js +451 -0
  232. package/dist/chunk-2I7HDP53.js +199 -0
  233. package/dist/chunk-2INLDVK3.js +15 -0
  234. package/dist/chunk-2KALVELR.js +126 -0
  235. package/dist/chunk-2M3J7ZWQ.js +418 -0
  236. package/dist/chunk-2OP6WLGV.js +708 -0
  237. package/dist/chunk-2RG7NIAS.js +2936 -0
  238. package/dist/chunk-2STUPWEL.js +135 -0
  239. package/dist/chunk-2YUOVM3G.js +271 -0
  240. package/dist/chunk-2Z3NQNTM.js +3670 -0
  241. package/dist/chunk-3CPWWGNK.js +920 -0
  242. package/dist/chunk-3ED2U6XE.js +37 -0
  243. package/dist/chunk-3GZA4BUW.js +216 -0
  244. package/dist/chunk-3IK6UYO6.js +1022 -0
  245. package/dist/chunk-3PZ7JZI2.js +431 -0
  246. package/dist/chunk-4DVJ6ONS.js +50 -0
  247. package/dist/chunk-4DVNUCRR.js +2386 -0
  248. package/dist/chunk-4DVNUCRR.js.map +1 -0
  249. package/dist/chunk-4E3ZJRTZ.js +41 -0
  250. package/dist/chunk-4SAWSRAA.js +141 -0
  251. package/dist/chunk-53AGXXZM.js +307 -0
  252. package/dist/chunk-54YW6SZZ.js +818 -0
  253. package/dist/chunk-57AZS3IE.js +2317 -0
  254. package/dist/chunk-5CPEEAFD.js +143 -0
  255. package/dist/chunk-5EWSRZ2Y.js +340 -0
  256. package/dist/chunk-5IE76VCY.js +387 -0
  257. package/dist/chunk-5NWEKLDZ.js +170 -0
  258. package/dist/chunk-5O2FCCHZ.js +198 -0
  259. package/dist/chunk-5QAY6K77.js +399 -0
  260. package/dist/chunk-5YKW2K6I.js +625 -0
  261. package/dist/chunk-5YKW2K6I.js.map +1 -0
  262. package/dist/chunk-6BCXNDEI.js +4116 -0
  263. package/dist/chunk-6BCXNDEI.js.map +1 -0
  264. package/dist/chunk-6DK6Z4UN.js +2599 -0
  265. package/dist/chunk-6DVCC7QS.js +702 -0
  266. package/dist/chunk-6JHU2UBS.js +2058 -0
  267. package/dist/chunk-6PZ7OBYU.js +490 -0
  268. package/dist/chunk-6WD2INST.js +539 -0
  269. package/dist/chunk-6WD2INST.js.map +1 -0
  270. package/dist/chunk-6WGRDRMA.js +163 -0
  271. package/dist/chunk-77WAKEAH.js +186 -0
  272. package/dist/chunk-7T2ZE3VT.js +5558 -0
  273. package/dist/chunk-7T2ZE3VT.js.map +1 -0
  274. package/dist/chunk-7TDO3CUM.js +393 -0
  275. package/dist/chunk-7TIX2UAR.js +247 -0
  276. package/dist/chunk-7V5REBCP.js +148 -0
  277. package/dist/chunk-7VMZGLYI.js +339 -0
  278. package/dist/chunk-7W37NS3I.js +236 -0
  279. package/dist/chunk-7X6SDK2C.js +111 -0
  280. package/dist/chunk-7ZNUHRP5.js +95 -0
  281. package/dist/chunk-A36PZALD.js +84 -0
  282. package/dist/chunk-AUI6VA63.js +107 -0
  283. package/dist/chunk-AW2MQB37.js +24 -0
  284. package/dist/chunk-AWKES45Y.js +198 -0
  285. package/dist/chunk-AXHZYXUV.js +132 -0
  286. package/dist/chunk-BHNSJVBC.js +129 -0
  287. package/dist/chunk-BJEJFISW.js +50 -0
  288. package/dist/chunk-BJFH6JI5.js +422 -0
  289. package/dist/chunk-BMICEQZQ.js +960 -0
  290. package/dist/chunk-BTLBYBLU.js +29 -0
  291. package/dist/chunk-BXBDYNRP.js +89 -0
  292. package/dist/chunk-C372BFOV.js +357 -0
  293. package/dist/chunk-C43KRXGA.js +234 -0
  294. package/dist/chunk-C43KRXGA.js.map +1 -0
  295. package/dist/chunk-CMKGILJK.js +4824 -0
  296. package/dist/chunk-CRAOSVHC.js +50 -0
  297. package/dist/chunk-CRU35QQH.js +281 -0
  298. package/dist/chunk-CUIWCGMA.js +172 -0
  299. package/dist/chunk-D5TWNFFE.js +38 -0
  300. package/dist/chunk-DF5EAHDN.js +4461 -0
  301. package/dist/chunk-DJAXC5OK.js +56 -0
  302. package/dist/chunk-DXBYWSL5.js +3550 -0
  303. package/dist/chunk-DXR5PDFP.js +84 -0
  304. package/dist/chunk-DZWARC4M.js +267 -0
  305. package/dist/chunk-DZXEDSQI.js +106 -0
  306. package/dist/chunk-E7XERZWC.js +48 -0
  307. package/dist/chunk-ECJBYNLJ.js +79 -0
  308. package/dist/chunk-EDI6SJ2N.js +43 -0
  309. package/dist/chunk-EWSOC6WF.js +114 -0
  310. package/dist/chunk-F2OPHAUN.js +103 -0
  311. package/dist/chunk-F4ISQGGM.js +81 -0
  312. package/dist/chunk-FO4LYKJL.js +197 -0
  313. package/dist/chunk-FPXASDG5.js +73 -0
  314. package/dist/chunk-FSOQDUCG.js +117 -0
  315. package/dist/chunk-FSOQDUCG.js.map +1 -0
  316. package/dist/chunk-FVXBNBHO.js +157 -0
  317. package/dist/chunk-FYWT2O76.js +34 -0
  318. package/dist/chunk-FYWT2O76.js.map +1 -0
  319. package/dist/chunk-FZC5N55X.js +981 -0
  320. package/dist/chunk-GAVYGBFI.js +99 -0
  321. package/dist/chunk-GFIMOUDT.js +846 -0
  322. package/dist/chunk-GFIMOUDT.js.map +1 -0
  323. package/dist/chunk-GKVJIDHF.js +33 -0
  324. package/dist/chunk-GVN5SZLX.js +212 -0
  325. package/dist/chunk-H3T7IWNA.js +134 -0
  326. package/dist/chunk-HAX4LCR5.js +261 -0
  327. package/dist/chunk-HC4JFZVU.js +121 -0
  328. package/dist/chunk-HEFPPMBQ.js +581 -0
  329. package/dist/chunk-HGKTHF2U.js +1356 -0
  330. package/dist/chunk-HGKTHF2U.js.map +1 -0
  331. package/dist/chunk-HNLR7Q4Z.js +83 -0
  332. package/dist/chunk-HSOXMJOT.js +12 -0
  333. package/dist/chunk-I4MRDSUF.js +281 -0
  334. package/dist/chunk-I4QEJ62Y.js +202 -0
  335. package/dist/chunk-I5B5L6Q4.js +56 -0
  336. package/dist/chunk-I5QZJODL.js +264 -0
  337. package/dist/chunk-I7ITSXSJ.js +603 -0
  338. package/dist/chunk-I7XIZRFD.js +390 -0
  339. package/dist/chunk-IDANQPRH.js +82 -0
  340. package/dist/chunk-IFB3WJ36.js +212 -0
  341. package/dist/chunk-IHTAKKTK.js +264 -0
  342. package/dist/chunk-IKXNLWAL.js +205 -0
  343. package/dist/chunk-IKXNLWAL.js.map +1 -0
  344. package/dist/chunk-ILDXWY37.js +173 -0
  345. package/dist/chunk-IMDQUHBJ.js +570 -0
  346. package/dist/chunk-IMZCQBOT.js +119 -0
  347. package/dist/chunk-IXPTECSC.js +403 -0
  348. package/dist/chunk-J255A3N5.js +71 -0
  349. package/dist/chunk-J5F5HPPW.js +141 -0
  350. package/dist/chunk-JDTGRRNU.js +5045 -0
  351. package/dist/chunk-JDTGRRNU.js.map +1 -0
  352. package/dist/chunk-JEA3QDX7.js +2469 -0
  353. package/dist/chunk-JEUPAVYY.js +156 -0
  354. package/dist/chunk-JKHKLL5W.js +194 -0
  355. package/dist/chunk-JQL7ZH6C.js +650 -0
  356. package/dist/chunk-JWB44UGJ.js +57 -0
  357. package/dist/chunk-JZ4NLCAP.js +333 -0
  358. package/dist/chunk-K2A5PXQ5.js +412 -0
  359. package/dist/chunk-K56XV3C3.js +623 -0
  360. package/dist/chunk-K6GAXXVA.js +23 -0
  361. package/dist/chunk-KCBMFSMS.js +199 -0
  362. package/dist/chunk-KF2FV3ZJ.js +268 -0
  363. package/dist/chunk-KJD65EJP.js +278 -0
  364. package/dist/chunk-KLEUWIMZ.js +386 -0
  365. package/dist/chunk-KODELWYT.js +309 -0
  366. package/dist/chunk-KRDR5RJD.js +83 -0
  367. package/dist/chunk-KUDGXAF7.js +914 -0
  368. package/dist/chunk-KY2R73CG.js +171 -0
  369. package/dist/chunk-KY2R73CG.js.map +1 -0
  370. package/dist/chunk-KYS77RPN.js +85 -0
  371. package/dist/chunk-L7YTNTIK.js +368 -0
  372. package/dist/chunk-LHPNABDH.js +686 -0
  373. package/dist/chunk-MFROMEKA.js +401 -0
  374. package/dist/chunk-MIHN76LX.js +2656 -0
  375. package/dist/chunk-MIYFS2XN.js +42 -0
  376. package/dist/chunk-MJUCFQMS.js +65 -0
  377. package/dist/chunk-MM4FNWI4.js +3064 -0
  378. package/dist/chunk-MNZG4OHU.js +790 -0
  379. package/dist/chunk-MVW6HNPI.js +250 -0
  380. package/dist/chunk-MVW6HNPI.js.map +1 -0
  381. package/dist/chunk-N6AACDUW.js +200 -0
  382. package/dist/chunk-NC55IFN3.js +781 -0
  383. package/dist/chunk-NC7PVOEK.js +98 -0
  384. package/dist/chunk-NCYMNCJO.js +70 -0
  385. package/dist/chunk-ND2BXV3P.js +259 -0
  386. package/dist/chunk-NDBTFUO6.js +272 -0
  387. package/dist/chunk-NDQJZ7HF.js +206 -0
  388. package/dist/chunk-NGJJJPZZ.js +162 -0
  389. package/dist/chunk-NJTSNNE7.js +251 -0
  390. package/dist/chunk-NPGISCU6.js +4159 -0
  391. package/dist/chunk-NPGISCU6.js.map +1 -0
  392. package/dist/chunk-NRTE7DNV.js +1270 -0
  393. package/dist/chunk-NULUNM7H.js +290 -0
  394. package/dist/chunk-NUNZS36W.js +227 -0
  395. package/dist/chunk-NW53H5RW.js +2424 -0
  396. package/dist/chunk-NXCMHIKI.js +263 -0
  397. package/dist/chunk-O3LKCBP5.js +159 -0
  398. package/dist/chunk-O4EA4F3W.js +103 -0
  399. package/dist/chunk-O4EA4F3W.js.map +1 -0
  400. package/dist/chunk-O4OOG3D6.js +116 -0
  401. package/dist/chunk-O4OOG3D6.js.map +1 -0
  402. package/dist/chunk-O6N4ABCA.js +376 -0
  403. package/dist/chunk-O732GAFC.js +112 -0
  404. package/dist/chunk-OF4TIKYC.js +690 -0
  405. package/dist/chunk-OMPVOMPP.js +70 -0
  406. package/dist/chunk-OPJJSKUK.js +118 -0
  407. package/dist/chunk-OPWCMA4D.js +196 -0
  408. package/dist/chunk-ORJPS5VN.js +1193 -0
  409. package/dist/chunk-OSY5K7L7.js +187 -0
  410. package/dist/chunk-OV6QJRT4.js +45 -0
  411. package/dist/chunk-OVKYVZMW.js +108 -0
  412. package/dist/chunk-OZCBM3UC.js +171 -0
  413. package/dist/chunk-P3A2EINJ.js +61 -0
  414. package/dist/chunk-PTAG4PDC.js +27 -0
  415. package/dist/chunk-PTF5B7TJ.js +298 -0
  416. package/dist/chunk-Q3DPEYX4.js +848 -0
  417. package/dist/chunk-Q6CGOPJD.js +215 -0
  418. package/dist/chunk-Q6CGOPJD.js.map +1 -0
  419. package/dist/chunk-QB2KMIDP.js +100 -0
  420. package/dist/chunk-QCSJ4CWE.js +1067 -0
  421. package/dist/chunk-QIOQ2NPQ.js +414 -0
  422. package/dist/chunk-QK5EFEUT.js +353 -0
  423. package/dist/chunk-QPQBLYQJ.js +41 -0
  424. package/dist/chunk-QPSGCC5D.js +184 -0
  425. package/dist/chunk-QZAAUQRN.js +474 -0
  426. package/dist/chunk-QZM6YDJW.js +489 -0
  427. package/dist/chunk-QZM6YDJW.js.map +1 -0
  428. package/dist/chunk-RGBI63KJ.js +188 -0
  429. package/dist/chunk-RLBKLAEY.js +138 -0
  430. package/dist/chunk-RMFKVOM7.js +304 -0
  431. package/dist/chunk-ROKQU7WG.js +258 -0
  432. package/dist/chunk-RPVREAU7.js +251 -0
  433. package/dist/chunk-RQKLF42C.js +723 -0
  434. package/dist/chunk-SC6RRD2D.js +38 -0
  435. package/dist/chunk-SC6RRD2D.js.map +1 -0
  436. package/dist/chunk-SEO7TICN.js +94 -0
  437. package/dist/chunk-SHHJCL7X.js +432 -0
  438. package/dist/chunk-SIRLACNZ.js +114 -0
  439. package/dist/chunk-SKPHMYAA.js +237 -0
  440. package/dist/chunk-SODC7T6L.js +1583 -0
  441. package/dist/chunk-SQJIKMN3.js +366 -0
  442. package/dist/chunk-SVINDKVW.js +26 -0
  443. package/dist/chunk-SYCDHPZF.js +335 -0
  444. package/dist/chunk-T2QX3FDP.js +133 -0
  445. package/dist/chunk-T3OWFVMS.js +1187 -0
  446. package/dist/chunk-T6XI5FLY.js +61 -0
  447. package/dist/chunk-T7OXJZCX.js +62 -0
  448. package/dist/chunk-TAT5USZN.js +353 -0
  449. package/dist/chunk-TPQTRNER.js +172 -0
  450. package/dist/chunk-TUIN4MB7.js +266 -0
  451. package/dist/chunk-TX3VECZU.js +71 -0
  452. package/dist/chunk-TXLIEOJX.js +9624 -0
  453. package/dist/chunk-U3DN4HEY.js +27 -0
  454. package/dist/chunk-U7XM7CB4.js +191 -0
  455. package/dist/chunk-UJK53QFL.js +140 -0
  456. package/dist/chunk-UMTXA2TH.js +319 -0
  457. package/dist/chunk-UPDSXFK5.js +199 -0
  458. package/dist/chunk-UTIAXH52.js +269 -0
  459. package/dist/chunk-UVN5TMHU.js +1184 -0
  460. package/dist/chunk-V4Z4B2E3.js +52 -0
  461. package/dist/chunk-V4Z4B2E3.js.map +1 -0
  462. package/dist/chunk-VGYXW3VG.js +246 -0
  463. package/dist/chunk-VS7AHPCZ.js +255 -0
  464. package/dist/chunk-VTTAJOQ7.js +121 -0
  465. package/dist/chunk-VWPOLUAO.js +99 -0
  466. package/dist/chunk-X3MWB2QU.js +3851 -0
  467. package/dist/chunk-X6KAJI3V.js +211 -0
  468. package/dist/chunk-XBLRHV5R.js +50 -0
  469. package/dist/chunk-XDFP2LMW.js +605 -0
  470. package/dist/chunk-XEQMZB3C.js +525 -0
  471. package/dist/chunk-XEYLT5VA.js +223 -0
  472. package/dist/chunk-XHIQ5I6N.js +918 -0
  473. package/dist/chunk-XLH7QY2R.js +378 -0
  474. package/dist/chunk-XWFAMUZQ.js +113 -0
  475. package/dist/chunk-Y4BB2KS2.js +294 -0
  476. package/dist/chunk-Y4BB2KS2.js.map +1 -0
  477. package/dist/chunk-Y4OBB2VN.js +84 -0
  478. package/dist/chunk-YCVD6CI3.js +234 -0
  479. package/dist/chunk-YENLNISG.js +270 -0
  480. package/dist/chunk-YIRVLKAX.js +351 -0
  481. package/dist/chunk-YL73CVNK.js +390 -0
  482. package/dist/chunk-YLS6QE5G.js +288 -0
  483. package/dist/chunk-YNF2OC54.js +366 -0
  484. package/dist/chunk-YNF2OC54.js.map +1 -0
  485. package/dist/chunk-YPWU5KPE.js +147 -0
  486. package/dist/chunk-YQXTDZSU.js +2984 -0
  487. package/dist/chunk-YSJEAAOL.js +178 -0
  488. package/dist/chunk-YWIFM7D7.js +499 -0
  489. package/dist/chunk-YWVI6ZMK.js +103 -0
  490. package/dist/chunk-Z4FMAFNH.js +847 -0
  491. package/dist/chunk-Z654FWNU.js +136 -0
  492. package/dist/chunk-Z7Y523PS.js +130 -0
  493. package/dist/chunk-ZD67RM6G.js +60 -0
  494. package/dist/chunk-ZEG4VPBL.js +187 -0
  495. package/dist/chunk-ZHDFQITM.js +283 -0
  496. package/dist/chunk-ZHDFQITM.js.map +1 -0
  497. package/dist/chunk-ZLYCOBHW.js +75 -0
  498. package/dist/chunk-ZNJ5MTXV.js +89 -0
  499. package/dist/chunk-ZSGY3H53.js +155 -0
  500. package/dist/chunk-ZTPXACWB.js +1788 -0
  501. package/dist/chunk-ZUA3JMI6.js +107 -0
  502. package/dist/chunk-ZYAZUPPV.js +559 -0
  503. package/dist/composer.js +8 -8
  504. package/dist/computer-viewer-TDDO25AV.js +21 -0
  505. package/dist/connect.js +12 -12
  506. package/dist/desktop-dictation.js +12 -10
  507. package/dist/desktop-dictation.js.map +1 -1
  508. package/dist/desktop.js +2 -2
  509. package/dist/editor.js +2 -2
  510. package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
  511. package/dist/embedded-voice-T5IWOWGD.js +24 -0
  512. package/dist/fleet-decision-row-WM64KXP3.js +361 -0
  513. package/dist/in-chat-connect-model.js +5 -5
  514. package/dist/index.js +51 -51
  515. package/dist/interaction.js +5 -5
  516. package/dist/machines.js +3 -3
  517. package/dist/meetings-recorder.js +1 -1
  518. package/dist/meetings.js +40 -32
  519. package/dist/meetings.js.map +1 -1
  520. package/dist/messages/en.d.ts +3 -0
  521. package/dist/messages.js +1 -1
  522. package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
  523. package/dist/payment-page-card-G4U63KUV.js +223 -0
  524. package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
  525. package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
  526. package/dist/realtime.js +4 -4
  527. package/dist/recorder-host-WF2RRR56.js +69 -0
  528. package/dist/recorder-host-WF2RRR56.js.map +1 -0
  529. package/dist/recordings.js +3 -3
  530. package/dist/sandbox-files-ESDMOFSD.js +27 -0
  531. package/dist/session-app.js +211 -209
  532. package/dist/session-connect-cards-Q53KMMYY.js +25 -0
  533. package/dist/session-list-model.js +2 -2
  534. package/dist/session-realtime-CF3I35WJ.js +30 -0
  535. package/dist/session-realtime.js +2 -2
  536. package/dist/session-ui.js +33 -31
  537. package/dist/session.js +5 -5
  538. package/dist/sites.js +2 -2
  539. package/dist/terminal.js +2 -2
  540. package/dist/this-computer.js +3 -3
  541. package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
  542. package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
  543. package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
  544. package/dist/ui/access-list.js +11 -9
  545. package/dist/ui/access-list.js.map +1 -1
  546. package/dist/ui/api-error.d.ts +6 -3
  547. package/dist/ui/api-error.js +2 -1
  548. package/dist/ui/cadence-picker.js +6 -4
  549. package/dist/ui/choice-cards.js +5 -3
  550. package/dist/ui/confirm-dialog.js +2 -2
  551. package/dist/ui/copy-field.js +5 -3
  552. package/dist/ui/detail-page.js +2 -2
  553. package/dist/ui/detail-sheet.js +2 -2
  554. package/dist/ui/diff-view.js +4 -3
  555. package/dist/ui/disclosure.js +3 -3
  556. package/dist/ui/email-chips-input.js +5 -3
  557. package/dist/ui/error-message.js +2 -1
  558. package/dist/ui/error-reference.d.ts +15 -0
  559. package/dist/ui/error-text.d.ts +10 -0
  560. package/dist/ui/error-text.js +9 -0
  561. package/dist/ui/error-text.js.map +1 -0
  562. package/dist/ui/field.js +4 -2
  563. package/dist/ui/flush-form-page.js +8 -6
  564. package/dist/ui/form-dialog.js +7 -5
  565. package/dist/ui/list-row.js +3 -3
  566. package/dist/ui/load-failure.js +3 -2
  567. package/dist/ui/load-failure.js.map +1 -1
  568. package/dist/ui/notice.js +3 -1
  569. package/dist/ui/relative-time.js +2 -2
  570. package/dist/ui/revision-history.js +9 -7
  571. package/dist/ui/revision-history.js.map +1 -1
  572. package/dist/ui/role-select.js +10 -8
  573. package/dist/ui/segmented-control.js +4 -2
  574. package/dist/ui/select-menu.js +5 -3
  575. package/dist/ui/setting-row.js +3 -1
  576. package/dist/ui/switch.js +4 -2
  577. package/dist/ui/usage-meter.js +3 -3
  578. package/dist/ui/word-list-row.js +4 -2
  579. package/dist/usage.js +2 -2
  580. package/dist/workbench.js +4 -4
  581. package/package.json +5 -6
  582. package/src/app/app-state.tsx +126 -14
  583. package/src/app/components/artifacts/site-data.tsx +2 -2
  584. package/src/app/components/artifacts/site-settings.tsx +2 -2
  585. package/src/app/components/rail/session-list.tsx +7 -8
  586. package/src/app/components/rail/session-shell.tsx +3 -3
  587. package/src/app/components/repository-picker.tsx +8 -1
  588. package/src/app/components/session/model-context-inspector.tsx +2 -1
  589. package/src/app/components/session/session-admin-access.tsx +2 -2
  590. package/src/app/lib/actions/chat-operations.ts +4 -4
  591. package/src/app/lib/archive-session.test.tsx +265 -2
  592. package/src/app/lib/archive-session.tsx +175 -9
  593. package/src/app/lib/copy-link.ts +2 -2
  594. package/src/app/lib/inbox.tsx +2 -2
  595. package/src/app/lib/session-failure-toasts.ts +3 -2
  596. package/src/app/lib/toast.test.tsx +215 -0
  597. package/src/app/lib/toast.tsx +67 -2
  598. package/src/app/personal-github-reconnect.test.tsx +356 -0
  599. package/src/app/routes/artifacts.tsx +1 -2
  600. package/src/components/tool-action-review.tsx +14 -1
  601. package/src/meetings/delete-meeting-dialog.tsx +2 -1
  602. package/src/meetings/meeting-ask.tsx +2 -1
  603. package/src/meetings/meeting-detail-page.tsx +2 -1
  604. package/src/meetings/meeting-notes.tsx +2 -1
  605. package/src/meetings/meeting-settings.tsx +4 -1
  606. package/src/meetings/meeting-transcript.tsx +4 -1
  607. package/src/meetings/recorder-context.tsx +10 -0
  608. package/src/meetings/recorder-host.test.tsx +60 -2
  609. package/src/meetings/recorder-host.tsx +16 -3
  610. package/src/meetings/recorder-panel.tsx +2 -1
  611. package/src/meetings/recorder-workspace.test.tsx +26 -1
  612. package/src/messages/en.ts +6 -0
  613. package/src/ui/api-error.test.ts +29 -5
  614. package/src/ui/api-error.tsx +10 -4
  615. package/src/ui/error-message.tsx +8 -0
  616. package/src/ui/error-reference.test.ts +54 -0
  617. package/src/ui/error-reference.ts +51 -0
  618. package/src/ui/error-text.test.tsx +66 -0
  619. package/src/ui/error-text.tsx +49 -0
  620. package/src/ui/field.tsx +4 -1
  621. package/src/ui/notice.tsx +7 -2
  622. package/src/ui/setting-row.tsx +4 -1
  623. package/styles/app.css +12 -0
  624. package/styles/compiled.css +9 -0
  625. package/dist/browser-viewer-NOP5EAUO.js +0 -23
  626. package/dist/chat-interactive-block-G7O44JHR.js +0 -18
  627. package/dist/chunk-26RWVLRD.js +0 -135
  628. package/dist/chunk-2AHTY7OT.js +0 -247
  629. package/dist/chunk-2GDNWKSC.js +0 -3670
  630. package/dist/chunk-2JENKGCE.js +0 -339
  631. package/dist/chunk-2KYQC4T5.js +0 -155
  632. package/dist/chunk-2RREGDQH.js +0 -708
  633. package/dist/chunk-2T7DX6KR.js +0 -353
  634. package/dist/chunk-2VB2O4FQ.js +0 -920
  635. package/dist/chunk-2VTTKH23.js +0 -94
  636. package/dist/chunk-2XNG2KNT.js +0 -172
  637. package/dist/chunk-2YC6JQRO.js +0 -399
  638. package/dist/chunk-2ZVRJRXC.js +0 -27
  639. package/dist/chunk-35737UT4.js +0 -162
  640. package/dist/chunk-366XZ4PM.js +0 -41
  641. package/dist/chunk-36MIDGAH.js +0 -199
  642. package/dist/chunk-3FD76LXM.js +0 -212
  643. package/dist/chunk-3OVIXY4O.js +0 -213
  644. package/dist/chunk-3OVIXY4O.js.map +0 -1
  645. package/dist/chunk-3QNRBEYH.js +0 -432
  646. package/dist/chunk-3QX55WLC.js +0 -15
  647. package/dist/chunk-3USJPT2S.js +0 -1022
  648. package/dist/chunk-42CMQ5VR.js +0 -251
  649. package/dist/chunk-4LPOWQJY.js +0 -42
  650. package/dist/chunk-4NBTZRKT.js +0 -79
  651. package/dist/chunk-4OXI6HCV.js +0 -118
  652. package/dist/chunk-4SZZAFYQ.js +0 -2317
  653. package/dist/chunk-4TQL3WP2.js +0 -140
  654. package/dist/chunk-4Y6BK7IU.js +0 -196
  655. package/dist/chunk-4YD7YZC5.js +0 -373
  656. package/dist/chunk-5DTST3TP.js +0 -81
  657. package/dist/chunk-5FH5LQVS.js +0 -130
  658. package/dist/chunk-5KWMYPJV.js +0 -847
  659. package/dist/chunk-5MUJDC6C.js +0 -84
  660. package/dist/chunk-5QM2WPKV.js +0 -41
  661. package/dist/chunk-5WUN7XPD.js +0 -1184
  662. package/dist/chunk-64PO2WXU.js +0 -1067
  663. package/dist/chunk-6AHATAAY.js +0 -431
  664. package/dist/chunk-6ED2YWBT.js +0 -56
  665. package/dist/chunk-6GXVYAGR.js +0 -170
  666. package/dist/chunk-6H4SJBPE.js +0 -85
  667. package/dist/chunk-6MT3HHUB.js +0 -84
  668. package/dist/chunk-6UHCBH4G.js +0 -198
  669. package/dist/chunk-6WLX3NR3.js +0 -198
  670. package/dist/chunk-73NXYYWE.js +0 -112
  671. package/dist/chunk-76ERNKIZ.js +0 -603
  672. package/dist/chunk-776QZ573.js +0 -57
  673. package/dist/chunk-7BYWOFVH.js +0 -171
  674. package/dist/chunk-7O5CGGIQ.js +0 -108
  675. package/dist/chunk-7QOHRZ67.js +0 -251
  676. package/dist/chunk-7WIDB4PL.js +0 -2058
  677. package/dist/chunk-7WKP3DYJ.js +0 -37
  678. package/dist/chunk-7XOVTPDI.js +0 -227
  679. package/dist/chunk-AB5MBIXY.js +0 -281
  680. package/dist/chunk-ADNMXBCX.js +0 -1193
  681. package/dist/chunk-AFBJTUFK.js +0 -202
  682. package/dist/chunk-ALVRWCXE.js +0 -61
  683. package/dist/chunk-AOHU6O3M.js +0 -247
  684. package/dist/chunk-AOHU6O3M.js.map +0 -1
  685. package/dist/chunk-APW4T4SW.js +0 -270
  686. package/dist/chunk-AXBSYWKX.js +0 -2656
  687. package/dist/chunk-B2I5ZW35.js +0 -422
  688. package/dist/chunk-B3LMRTRF.js +0 -223
  689. package/dist/chunk-BE2XENG2.js +0 -292
  690. package/dist/chunk-BE2XENG2.js.map +0 -1
  691. package/dist/chunk-BF4SADKX.js +0 -29
  692. package/dist/chunk-BKP43KK4.js +0 -1788
  693. package/dist/chunk-BM3NEZ6X.js +0 -781
  694. package/dist/chunk-BT3BAGB5.js +0 -216
  695. package/dist/chunk-BTSYDIVJ.js +0 -357
  696. package/dist/chunk-BUBNGKWG.js +0 -70
  697. package/dist/chunk-BVUJV5WR.js +0 -126
  698. package/dist/chunk-BZO5ZMUP.js +0 -27
  699. package/dist/chunk-C3HUF3M2.js +0 -157
  700. package/dist/chunk-C5QCAOES.js +0 -264
  701. package/dist/chunk-CGK6ALQU.js +0 -159
  702. package/dist/chunk-CPYGO76Q.js +0 -335
  703. package/dist/chunk-CQH4FWYA.js +0 -490
  704. package/dist/chunk-CZP5QXNB.js +0 -234
  705. package/dist/chunk-D2TOWEYH.js +0 -266
  706. package/dist/chunk-D6L4GHRH.js +0 -340
  707. package/dist/chunk-DKT3N37I.js +0 -50
  708. package/dist/chunk-DMMJIFKA.js +0 -84
  709. package/dist/chunk-DO74DQC7.js +0 -26
  710. package/dist/chunk-DOFJZ2JU.js +0 -83
  711. package/dist/chunk-DSXVY5WZ.js +0 -119
  712. package/dist/chunk-E337C2VK.js +0 -82
  713. package/dist/chunk-E6NRSRBE.js +0 -114
  714. package/dist/chunk-E6SQKHAU.js +0 -114
  715. package/dist/chunk-E7UIVD7F.js +0 -236
  716. package/dist/chunk-EGBII4CP.js +0 -229
  717. package/dist/chunk-EILSAQVJ.js +0 -200
  718. package/dist/chunk-ELL6HSYR.js +0 -307
  719. package/dist/chunk-EUBGLFFR.js +0 -73
  720. package/dist/chunk-EW6RNWSH.js +0 -212
  721. package/dist/chunk-EYUT5Y6V.js +0 -2599
  722. package/dist/chunk-F7U3QPZ3.js +0 -304
  723. package/dist/chunk-FBTJKSTM.js +0 -1270
  724. package/dist/chunk-FC2FTSK3.js +0 -2424
  725. package/dist/chunk-FOGNA3BU.js +0 -148
  726. package/dist/chunk-FQFKHNC7.js +0 -650
  727. package/dist/chunk-FTCHM755.js +0 -50
  728. package/dist/chunk-FXSHP4JZ.js +0 -3550
  729. package/dist/chunk-G6ZZC543.js +0 -818
  730. package/dist/chunk-G7FU6PUA.js +0 -100
  731. package/dist/chunk-GA4YEAMX.js +0 -3851
  732. package/dist/chunk-GE33BGB7.js +0 -12
  733. package/dist/chunk-GQ67HSJY.js +0 -570
  734. package/dist/chunk-GXXZ3WAK.js +0 -106
  735. package/dist/chunk-H2TCRX3H.js +0 -237
  736. package/dist/chunk-HLL4PBO7.js +0 -60
  737. package/dist/chunk-HLOEPV5C.js +0 -259
  738. package/dist/chunk-HUAGBS4O.js +0 -56
  739. package/dist/chunk-I36GSRUJ.js +0 -211
  740. package/dist/chunk-I6VBHT7S.js +0 -261
  741. package/dist/chunk-ICNNNOXE.js +0 -333
  742. package/dist/chunk-ICX64J4U.js +0 -172
  743. package/dist/chunk-ID36Y46W.js +0 -5046
  744. package/dist/chunk-ID36Y46W.js.map +0 -1
  745. package/dist/chunk-IGVVXLKJ.js +0 -559
  746. package/dist/chunk-IKJLSBUI.js +0 -2984
  747. package/dist/chunk-IKMUFDVS.js +0 -50
  748. package/dist/chunk-IKUNOX7F.js +0 -255
  749. package/dist/chunk-ILKDYBON.js +0 -288
  750. package/dist/chunk-IVYJX3OY.js +0 -187
  751. package/dist/chunk-JCY4CMDH.js +0 -107
  752. package/dist/chunk-JJZPLGIP.js +0 -474
  753. package/dist/chunk-JW33RV4V.js +0 -143
  754. package/dist/chunk-JWPA6ZPZ.js +0 -351
  755. package/dist/chunk-JZ4QXS6D.js +0 -50
  756. package/dist/chunk-K42OUZQ3.js +0 -386
  757. package/dist/chunk-K5TOVX5A.js +0 -206
  758. package/dist/chunk-K63HGHZX.js +0 -99
  759. package/dist/chunk-K6R5T44I.js +0 -75
  760. package/dist/chunk-KHJ5PXFM.js +0 -914
  761. package/dist/chunk-KJZRQ55O.js +0 -2319
  762. package/dist/chunk-KJZRQ55O.js.map +0 -1
  763. package/dist/chunk-KKI55ZMW.js +0 -65
  764. package/dist/chunk-KRPLAAFP.js +0 -199
  765. package/dist/chunk-KVFEZDBO.js +0 -134
  766. package/dist/chunk-L4I665WK.js +0 -45
  767. package/dist/chunk-L4OF77LE.js +0 -110
  768. package/dist/chunk-L4OF77LE.js.map +0 -1
  769. package/dist/chunk-LA5T52RM.js +0 -70
  770. package/dist/chunk-LM2W5YAT.js +0 -401
  771. package/dist/chunk-LQ62ECE6.js +0 -390
  772. package/dist/chunk-LQDUHU3Y.js +0 -71
  773. package/dist/chunk-LRJIYTZW.js +0 -4157
  774. package/dist/chunk-LRJIYTZW.js.map +0 -1
  775. package/dist/chunk-LRN6GYAZ.js +0 -138
  776. package/dist/chunk-M4SDVTKJ.js +0 -790
  777. package/dist/chunk-MA6O7CM6.js +0 -99
  778. package/dist/chunk-MBIBB6GI.js +0 -197
  779. package/dist/chunk-MF3ZFB4H.js +0 -199
  780. package/dist/chunk-MJJGJMYJ.js +0 -98
  781. package/dist/chunk-MLJADQFI.js +0 -4824
  782. package/dist/chunk-MQG7RV3B.js +0 -62
  783. package/dist/chunk-MTTGSQA5.js +0 -186
  784. package/dist/chunk-MW7Y3T55.js +0 -525
  785. package/dist/chunk-MYUFMVCH.js +0 -121
  786. package/dist/chunk-N3OARGH2.js +0 -61
  787. package/dist/chunk-NB2HMRT2.js +0 -353
  788. package/dist/chunk-NFDFYWMV.js +0 -141
  789. package/dist/chunk-NWGNFN3N.js +0 -1187
  790. package/dist/chunk-NWJRPDIO.js +0 -840
  791. package/dist/chunk-NWJRPDIO.js.map +0 -1
  792. package/dist/chunk-NXWBBZJV.js +0 -267
  793. package/dist/chunk-NY2QWROL.js +0 -71
  794. package/dist/chunk-O2IOPP3R.js +0 -848
  795. package/dist/chunk-O2UWH5RG.js +0 -141
  796. package/dist/chunk-O5YWDLYF.js +0 -393
  797. package/dist/chunk-OBMCZO7E.js +0 -121
  798. package/dist/chunk-OD3DCCCB.js +0 -132
  799. package/dist/chunk-OMH7R6I3.js +0 -390
  800. package/dist/chunk-OSA5EQG5.js +0 -113
  801. package/dist/chunk-OSJ3MUTZ.js +0 -2936
  802. package/dist/chunk-OWAYJ2OV.js +0 -368
  803. package/dist/chunk-OYXBFSGK.js +0 -269
  804. package/dist/chunk-PC2EBA5G.js +0 -4116
  805. package/dist/chunk-PC2EBA5G.js.map +0 -1
  806. package/dist/chunk-PC2MVXIP.js +0 -363
  807. package/dist/chunk-PC2MVXIP.js.map +0 -1
  808. package/dist/chunk-PENGLDR5.js +0 -309
  809. package/dist/chunk-PSMAWRPL.js +0 -191
  810. package/dist/chunk-PW4IMTYR.js +0 -702
  811. package/dist/chunk-PW54V7T5.js +0 -387
  812. package/dist/chunk-Q2EXYSMO.js +0 -24
  813. package/dist/chunk-Q2XJK5I4.js +0 -51
  814. package/dist/chunk-Q2XJK5I4.js.map +0 -1
  815. package/dist/chunk-Q4EFRI6X.js +0 -258
  816. package/dist/chunk-Q52CXW6C.js +0 -48
  817. package/dist/chunk-Q6XQ2R37.js +0 -184
  818. package/dist/chunk-QAJ53XBW.js +0 -23
  819. package/dist/chunk-QDTKECT4.js +0 -129
  820. package/dist/chunk-QE3ZFGI3.js +0 -43
  821. package/dist/chunk-QHHSUR2Y.js +0 -298
  822. package/dist/chunk-QHNVNR7B.js +0 -173
  823. package/dist/chunk-QIK2Q6N5.js +0 -376
  824. package/dist/chunk-QWL4L366.js +0 -38
  825. package/dist/chunk-R3J2PTVQ.js +0 -690
  826. package/dist/chunk-RBRX5ZS3.js +0 -319
  827. package/dist/chunk-REX6JIC7.js +0 -33
  828. package/dist/chunk-RGZ7EEC3.js +0 -537
  829. package/dist/chunk-RGZ7EEC3.js.map +0 -1
  830. package/dist/chunk-RIPS7GFR.js +0 -960
  831. package/dist/chunk-RTBZNFNV.js +0 -1354
  832. package/dist/chunk-RTBZNFNV.js.map +0 -1
  833. package/dist/chunk-SKMNW4SW.js +0 -187
  834. package/dist/chunk-SRFARKXC.js +0 -623
  835. package/dist/chunk-SWIHWCTW.js +0 -4461
  836. package/dist/chunk-TA5CFTO4.js +0 -103
  837. package/dist/chunk-TF4ZVJLI.js +0 -156
  838. package/dist/chunk-TG7DADJR.js +0 -9624
  839. package/dist/chunk-TI4R2ZD5.js +0 -623
  840. package/dist/chunk-TI4R2ZD5.js.map +0 -1
  841. package/dist/chunk-TNKWOUWP.js +0 -412
  842. package/dist/chunk-TNUSPXPW.js +0 -5555
  843. package/dist/chunk-TNUSPXPW.js.map +0 -1
  844. package/dist/chunk-TNYFHKVV.js +0 -366
  845. package/dist/chunk-TPMZBOFH.js +0 -178
  846. package/dist/chunk-TW3LKRJF.js +0 -263
  847. package/dist/chunk-TZAO65I4.js +0 -83
  848. package/dist/chunk-U5EFEMYU.js +0 -89
  849. package/dist/chunk-U6M4LS3M.js +0 -378
  850. package/dist/chunk-UI4HI5QK.js +0 -918
  851. package/dist/chunk-UJDOWCQ3.js +0 -272
  852. package/dist/chunk-UJUQ2QOX.js +0 -581
  853. package/dist/chunk-UQ3IM6FY.js +0 -133
  854. package/dist/chunk-UYE47LO6.js +0 -246
  855. package/dist/chunk-VADHIT26.js +0 -89
  856. package/dist/chunk-VFQ3H6CO.js +0 -163
  857. package/dist/chunk-VGUN6VB2.js +0 -188
  858. package/dist/chunk-VGWWEVSD.js +0 -723
  859. package/dist/chunk-VIEFJ2DM.js +0 -2469
  860. package/dist/chunk-VLXM36VS.js +0 -268
  861. package/dist/chunk-W3BFRR2G.js +0 -499
  862. package/dist/chunk-W5MPXR3A.js +0 -981
  863. package/dist/chunk-W5OWKVZG.js +0 -136
  864. package/dist/chunk-W6FRORMX.js +0 -486
  865. package/dist/chunk-W6FRORMX.js.map +0 -1
  866. package/dist/chunk-W7XROSZO.js +0 -232
  867. package/dist/chunk-W7XROSZO.js.map +0 -1
  868. package/dist/chunk-WEZ5PXZP.js +0 -403
  869. package/dist/chunk-WHWUWN2X.js +0 -197
  870. package/dist/chunk-WHWUWN2X.js.map +0 -1
  871. package/dist/chunk-WLEDGIVS.js +0 -114
  872. package/dist/chunk-WLEDGIVS.js.map +0 -1
  873. package/dist/chunk-WNDAKLHG.js +0 -281
  874. package/dist/chunk-WTJ4PLMU.js +0 -103
  875. package/dist/chunk-WV2KPJUW.js +0 -107
  876. package/dist/chunk-X3VY5EGY.js +0 -277
  877. package/dist/chunk-X3VY5EGY.js.map +0 -1
  878. package/dist/chunk-XDBYWVCW.js +0 -418
  879. package/dist/chunk-XF7MA4U5.js +0 -36
  880. package/dist/chunk-XF7MA4U5.js.map +0 -1
  881. package/dist/chunk-XOSQP3YA.js +0 -605
  882. package/dist/chunk-XYBV4ZJQ.js +0 -271
  883. package/dist/chunk-YBKVGLQR.js +0 -147
  884. package/dist/chunk-YDCUBUWH.js +0 -1583
  885. package/dist/chunk-YG6NARQY.js +0 -51
  886. package/dist/chunk-YG6NARQY.js.map +0 -1
  887. package/dist/chunk-YSVD5HI4.js +0 -278
  888. package/dist/chunk-YT3WGNG6.js +0 -290
  889. package/dist/chunk-YYICQDK4.js +0 -414
  890. package/dist/chunk-YYLMZLI6.js +0 -686
  891. package/dist/chunk-ZAMTKG5U.js +0 -95
  892. package/dist/chunk-ZDLYSXKN.js +0 -111
  893. package/dist/chunk-ZG447FSS.js +0 -194
  894. package/dist/chunk-ZIT5KD4Q.js +0 -264
  895. package/dist/chunk-ZUDOVDKR.js +0 -3064
  896. package/dist/chunk-ZW2ECJ3A.js +0 -451
  897. package/dist/computer-viewer-LPZ763KF.js +0 -21
  898. package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
  899. package/dist/embedded-voice-BJPQFXSU.js +0 -24
  900. package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
  901. package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
  902. package/dist/payment-page-card-3LTSFJGN.js +0 -223
  903. package/dist/platform-activity-row-5VYV6TX4.js +0 -128
  904. package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
  905. package/dist/recorder-host-ZKRWTDBM.js +0 -57
  906. package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
  907. package/dist/sandbox-files-YCMLQUFU.js +0 -27
  908. package/dist/session-connect-cards-KSQLMRM5.js +0 -25
  909. package/dist/session-realtime-ZR6JLG3Y.js +0 -30
  910. package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
  911. package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
  912. package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
  913. /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
  914. /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
  915. /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
  916. /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
  917. /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
  918. /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
  919. /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
  920. /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
  921. /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
  922. /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
  923. /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
  924. /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
  925. /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
  926. /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
  927. /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
  928. /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
  929. /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
  930. /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
  931. /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
  932. /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
  933. /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
  934. /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
  935. /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
  936. /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
  937. /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
  938. /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
  939. /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
  940. /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
  941. /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
  942. /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
  943. /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
  944. /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
  945. /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
  946. /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
  947. /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
  948. /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
  949. /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
  950. /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
  951. /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
  952. /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
  953. /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
  954. /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
  955. /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
  956. /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
  957. /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
  958. /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
  959. /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
  960. /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
  961. /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
  962. /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
  963. /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
  964. /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
  965. /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
  966. /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
  967. /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
  968. /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
  969. /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
  970. /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
  971. /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
  972. /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
  973. /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
  974. /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
  975. /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
  976. /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
  977. /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
  978. /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
  979. /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
  980. /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
  981. /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
  982. /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
  983. /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
  984. /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
  985. /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
  986. /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
  987. /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
  988. /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
  989. /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
  990. /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
  991. /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
  992. /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
  993. /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
  994. /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
  995. /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
  996. /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
  997. /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
  998. /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
  999. /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
  1000. /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
  1001. /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
  1002. /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
  1003. /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
  1004. /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
  1005. /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
  1006. /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
  1007. /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
  1008. /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
  1009. /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
  1010. /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
  1011. /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
  1012. /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
  1013. /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
  1014. /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
  1015. /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
  1016. /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
  1017. /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
  1018. /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
  1019. /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
  1020. /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
  1021. /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
  1022. /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
  1023. /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
  1024. /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
  1025. /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
  1026. /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
  1027. /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
  1028. /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
  1029. /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
  1030. /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
  1031. /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
  1032. /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
  1033. /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
  1034. /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
  1035. /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
  1036. /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
  1037. /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
  1038. /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
  1039. /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
  1040. /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
  1041. /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
  1042. /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
  1043. /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
  1044. /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
  1045. /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
  1046. /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
  1047. /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
  1048. /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
  1049. /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
  1050. /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
  1051. /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
  1052. /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
  1053. /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
  1054. /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
  1055. /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
  1056. /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
  1057. /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
  1058. /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
  1059. /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
  1060. /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
  1061. /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
  1062. /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
  1063. /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
  1064. /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
  1065. /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
  1066. /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
  1067. /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
  1068. /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
  1069. /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
  1070. /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
  1071. /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
  1072. /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
  1073. /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
  1074. /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
  1075. /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
  1076. /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
  1077. /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
  1078. /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
  1079. /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
  1080. /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
  1081. /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
  1082. /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
  1083. /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
  1084. /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
  1085. /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
  1086. /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
  1087. /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
  1088. /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
  1089. /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
  1090. /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
  1091. /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
  1092. /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
  1093. /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
  1094. /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
  1095. /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
  1096. /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
  1097. /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
  1098. /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
  1099. /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
  1100. /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
  1101. /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
  1102. /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
  1103. /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
  1104. /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
  1105. /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
  1106. /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
  1107. /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
  1108. /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
  1109. /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
  1110. /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
  1111. /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
  1112. /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
  1113. /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
  1114. /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
  1115. /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
  1116. /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
  1117. /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
  1118. /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
  1119. /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
  1120. /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
  1121. /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
  1122. /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
  1123. /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
  1124. /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
  1125. /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
  1126. /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
  1127. /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
  1128. /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
  1129. /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
  1130. /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
  1131. /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
  1132. /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
  1133. /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
  1134. /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
  1135. /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
  1136. /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
  1137. /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
  1138. /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
  1139. /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
  1140. /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
  1141. /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
  1142. /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
  1143. /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
  1144. /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
  1145. /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
  1146. /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
  1147. /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
  1148. /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
  1149. /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
  1150. /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
  1151. /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
  1152. /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
  1153. /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
  1154. /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
@@ -0,0 +1,2469 @@
1
+ "use client";
2
+ import {
3
+ prefersReducedMotion
4
+ } from "./chunk-OCN4S7WN.js";
5
+ import {
6
+ ActivityDisclosure,
7
+ SecretRefChip,
8
+ mayContainSecretReference,
9
+ searchMatchOffset,
10
+ useSecretsUi
11
+ } from "./chunk-6DVCC7QS.js";
12
+ import {
13
+ LoadFailureNotice,
14
+ isChunkLoadError
15
+ } from "./chunk-KYS77RPN.js";
16
+ import {
17
+ prepareMathMarkdown
18
+ } from "./chunk-W4F72GU3.js";
19
+ import {
20
+ paintPreviewLoading
21
+ } from "./chunk-UNJPZGNK.js";
22
+ import {
23
+ chainLinkRenderers,
24
+ chainLinkResolvers,
25
+ useOpenGeniLinkRenderer,
26
+ useOpenGeniLinkResolver
27
+ } from "./chunk-NPNX7LTL.js";
28
+ import {
29
+ copyTextToClipboard,
30
+ tableElementToTsv
31
+ } from "./chunk-PEHTX3V7.js";
32
+ import {
33
+ Tooltip,
34
+ TooltipContent,
35
+ TooltipProvider,
36
+ TooltipTrigger
37
+ } from "./chunk-6IWKHHRS.js";
38
+ import {
39
+ INTERACTIVE_ANSWER_FENCE,
40
+ bestInteractiveItems,
41
+ formatInteractiveValue,
42
+ interactiveActionLabel,
43
+ interactiveAnswerKey,
44
+ interactiveFilterOptions,
45
+ interactiveSelectionMessage,
46
+ interactiveSelectionWasSent,
47
+ nextInteractiveSort,
48
+ parseInteractiveAnswer,
49
+ settleInteractiveAnswer,
50
+ toggleInteractiveSelection,
51
+ trailingOpenFence,
52
+ useInteractiveAnswerHost,
53
+ useInteractiveAnswerState,
54
+ visibleInteractiveItems
55
+ } from "./chunk-OONTDHBV.js";
56
+ import {
57
+ cn
58
+ } from "./chunk-TXS65BB2.js";
59
+ import {
60
+ useOpenGeniText
61
+ } from "./chunk-7T2ZE3VT.js";
62
+
63
+ // src/components/copy-button.tsx
64
+ import { CheckIcon, CopyIcon } from "lucide-react";
65
+ import { memo, useEffect, useRef, useState } from "react";
66
+ import { jsx, jsxs } from "react/jsx-runtime";
67
+ var COPIED_MS = 1600;
68
+ var CopyButton = memo(function CopyButton2({
69
+ text: text2,
70
+ label: labelProp,
71
+ className,
72
+ reveal = "group-hover"
73
+ }) {
74
+ const t = useOpenGeniText();
75
+ const label = labelProp === void 0 ? t("copyButton.copy") : labelProp;
76
+ const [copied, setCopied] = useState(false);
77
+ const [tipOpen, setTipOpen] = useState(false);
78
+ const timerRef = useRef(null);
79
+ useEffect(() => {
80
+ return () => {
81
+ if (timerRef.current !== null) {
82
+ clearTimeout(timerRef.current);
83
+ }
84
+ };
85
+ }, []);
86
+ const onClick = async (event) => {
87
+ event.preventDefault();
88
+ event.stopPropagation();
89
+ const button = event.currentTarget;
90
+ const pointerActivated = event.detail > 0;
91
+ const value = typeof text2 === "function" ? text2() : text2;
92
+ const ok = await copyTextToClipboard(value);
93
+ if (!ok) {
94
+ return;
95
+ }
96
+ setCopied(true);
97
+ setTipOpen(true);
98
+ if (timerRef.current !== null) {
99
+ clearTimeout(timerRef.current);
100
+ }
101
+ timerRef.current = setTimeout(() => {
102
+ timerRef.current = null;
103
+ setCopied(false);
104
+ setTipOpen(false);
105
+ }, COPIED_MS);
106
+ if (pointerActivated) {
107
+ button.blur();
108
+ }
109
+ };
110
+ const tip = copied ? t("copyButton.copied") : label;
111
+ return /* @__PURE__ */ jsxs(
112
+ Tooltip,
113
+ {
114
+ open: copied ? true : tipOpen,
115
+ onOpenChange: (next) => {
116
+ if (!copied) {
117
+ setTipOpen(next);
118
+ }
119
+ },
120
+ children: [
121
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
122
+ "button",
123
+ {
124
+ type: "button",
125
+ "data-og-copy": "",
126
+ "data-state": copied ? "copied" : "idle",
127
+ "aria-label": tip,
128
+ onClick,
129
+ className: cn(
130
+ "inline-flex size-7 shrink-0 items-center justify-center rounded-og-sm pointer-coarse:size-11",
131
+ "text-og-fg-subtle transition-[opacity,color,background-color] duration-150",
132
+ "hover:bg-og-surface-2/80 hover:text-og-fg",
133
+ "focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
134
+ reveal === "group-hover" && "opacity-0 group-hover/copy:opacity-100 group-focus-within/copy:opacity-100 pointer-coarse:opacity-70",
135
+ copied && "opacity-100 text-og-accent",
136
+ className
137
+ ),
138
+ children: copied ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5", "aria-hidden": true }) : /* @__PURE__ */ jsx(CopyIcon, { className: "size-3.5", "aria-hidden": true })
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ jsx(TooltipContent, { side: "top", children: tip })
142
+ ]
143
+ }
144
+ );
145
+ });
146
+ function CopyHoverFrame({
147
+ children,
148
+ className,
149
+ copyText,
150
+ label,
151
+ align = "end",
152
+ trailing
153
+ }) {
154
+ if (copyText.trim().length === 0) {
155
+ return /* @__PURE__ */ jsx("div", { className, children });
156
+ }
157
+ return /* @__PURE__ */ jsxs("div", { className: cn("group/copy", className), children: [
158
+ children,
159
+ /* @__PURE__ */ jsxs(
160
+ "div",
161
+ {
162
+ "data-og-annotation-chrome": "",
163
+ className: cn(
164
+ "flex h-6 items-center gap-1.5 pointer-coarse:h-11",
165
+ align === "end" ? "justify-end" : "justify-start"
166
+ ),
167
+ children: [
168
+ /* @__PURE__ */ jsx(
169
+ CopyButton,
170
+ {
171
+ text: copyText,
172
+ label,
173
+ reveal: "group-hover",
174
+ className: "size-6 pointer-coarse:size-11"
175
+ }
176
+ ),
177
+ trailing
178
+ ]
179
+ }
180
+ )
181
+ ] });
182
+ }
183
+
184
+ // src/components/interactive-answer.tsx
185
+ import {
186
+ ArrowDownIcon,
187
+ ArrowUpIcon,
188
+ ArrowUpRightIcon,
189
+ CheckIcon as CheckIcon2,
190
+ LayoutGridIcon,
191
+ LoaderCircleIcon as LoaderCircleIcon2,
192
+ Table2Icon
193
+ } from "lucide-react";
194
+ import { useId, useMemo, useState as useState2 } from "react";
195
+
196
+ // src/components/decision-card.tsx
197
+ import { LoaderCircleIcon } from "lucide-react";
198
+ import { forwardRef } from "react";
199
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
200
+ var decisionCardClass = "og-root @container/decision box-border min-w-0 w-full overflow-hidden rounded-og-lg border border-og-border bg-og-surface-1 text-og-fg shadow-[0_1px_2px_rgb(0_0_0/0.04),0_6px_20px_-12px_rgb(0_0_0/0.18)]";
201
+ var decisionCardPad = "px-4 @md/decision:px-5";
202
+ function DecisionMark({
203
+ children,
204
+ tone = "neutral",
205
+ className
206
+ }) {
207
+ return /* @__PURE__ */ jsx2(
208
+ "span",
209
+ {
210
+ "aria-hidden": "true",
211
+ className: cn(
212
+ "inline-flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-og-md [&_svg]:size-[18px]",
213
+ tone === "danger" ? "bg-og-status-failed/10 text-og-status-failed" : tone === "plain" ? "" : "bg-og-fg/[0.06] text-og-fg-muted",
214
+ className
215
+ ),
216
+ children
217
+ }
218
+ );
219
+ }
220
+ function DecisionActions({
221
+ lead,
222
+ children,
223
+ className
224
+ }) {
225
+ return /* @__PURE__ */ jsxs2(
226
+ "div",
227
+ {
228
+ className: cn(
229
+ "flex min-w-0 flex-col-reverse gap-2 @md/decision:flex-row @md/decision:flex-wrap @md/decision:items-center @md/decision:justify-end",
230
+ className
231
+ ),
232
+ children: [
233
+ lead ? /* @__PURE__ */ jsx2("div", { className: "flex min-w-0 flex-wrap items-center justify-center gap-x-3 gap-y-1 @md/decision:mr-auto @md/decision:justify-start", children: lead }) : null,
234
+ children
235
+ ]
236
+ }
237
+ );
238
+ }
239
+ var buttonKinds = {
240
+ primary: "border-transparent bg-og-fg text-og-bg hover:bg-og-fg/85 active:bg-og-fg/75",
241
+ danger: "border-transparent bg-og-danger-fill text-og-danger-fg hover:bg-og-danger-fill/90 active:bg-og-danger-fill/80",
242
+ secondary: "border-og-border bg-og-surface-1 text-og-fg hover:border-og-border-strong hover:bg-og-hover active:bg-og-surface-2",
243
+ quiet: "border-transparent text-og-fg-muted hover:bg-og-hover hover:text-og-fg"
244
+ };
245
+ function decisionButtonClass(kind, className) {
246
+ return cn(
247
+ "inline-flex min-h-10 w-full items-center justify-center gap-1.5 rounded-og-md border px-4 py-2 text-og-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,opacity] duration-150",
248
+ "@md/decision:min-h-9 @md/decision:w-auto pointer-coarse:min-h-11",
249
+ "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45 focus-visible:ring-offset-1 focus-visible:ring-offset-og-surface-1",
250
+ "disabled:cursor-not-allowed disabled:opacity-55",
251
+ buttonKinds[kind],
252
+ className
253
+ );
254
+ }
255
+ var DecisionButton = forwardRef(
256
+ function DecisionButton2({ kind = "secondary", busy = false, className, children, type = "button", ...rest }, ref) {
257
+ return /* @__PURE__ */ jsxs2(
258
+ "button",
259
+ {
260
+ ref,
261
+ type,
262
+ "aria-busy": busy || void 0,
263
+ className: decisionButtonClass(kind, className),
264
+ ...rest,
265
+ children: [
266
+ busy ? /* @__PURE__ */ jsx2(LoaderCircleIcon, { "aria-hidden": "true", className: "size-3.5 shrink-0 animate-spin" }) : null,
267
+ children
268
+ ]
269
+ }
270
+ );
271
+ }
272
+ );
273
+
274
+ // src/components/interactive-answer.tsx
275
+ import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
276
+ function InteractiveAnswer({ source, state, renderSource }) {
277
+ const parsed = useMemo(
278
+ () => settleInteractiveAnswer(
279
+ parseInteractiveAnswer(source, { partial: state !== "complete" }),
280
+ state
281
+ ),
282
+ [source, state]
283
+ );
284
+ if (parsed.status === "invalid") return /* @__PURE__ */ jsx3(InvalidAnswer, { renderSource });
285
+ if (!parsed.spec || parsed.spec.items.length === 0) {
286
+ return state === "streaming" ? /* @__PURE__ */ jsx3(AnswerStatus, { streaming: true, title: parsed.spec?.title }) : /* @__PURE__ */ jsx3(InvalidAnswer, { renderSource });
287
+ }
288
+ return /* @__PURE__ */ jsx3(
289
+ LoadedAnswer,
290
+ {
291
+ spec: parsed.spec,
292
+ answerKey: interactiveAnswerKey(source),
293
+ state,
294
+ complete: parsed.status === "ok"
295
+ }
296
+ );
297
+ }
298
+ function LoadedAnswer({
299
+ spec,
300
+ answerKey,
301
+ state: streamState,
302
+ complete
303
+ }) {
304
+ const t = useOpenGeniText();
305
+ const host = useInteractiveAnswerHost();
306
+ const ids = useMemo(
307
+ () => complete ? spec.items.map((item) => item.id) : null,
308
+ [complete, spec]
309
+ );
310
+ const [state, update] = useInteractiveAnswerState(answerKey, ids);
311
+ const [hovered, setHovered] = useState2(null);
312
+ const [sending, setSending] = useState2(false);
313
+ const [failed, setFailed] = useState2(false);
314
+ const titleId = useId();
315
+ const interactive = complete;
316
+ const canPick = interactive && Boolean(spec.select) && Boolean(host.send) && !host.readOnly;
317
+ const max = spec.select?.max ?? 0;
318
+ const view = state.view ?? spec.view;
319
+ const showTable = view === "table" && spec.fields.length > 0;
320
+ const filterFields = interactive ? spec.fields.filter((field) => field.filter) : [];
321
+ const visible = interactive ? visibleInteractiveItems(spec, state) : spec.items;
322
+ const best = useMemo(
323
+ () => complete ? bestInteractiveItems(spec, spec.items) : /* @__PURE__ */ new Map(),
324
+ [complete, spec]
325
+ );
326
+ const words = { yes: t("interactiveAnswer.yes"), no: t("interactiveAnswer.no"), empty: "\u2014" };
327
+ const fallbackAction = max === 1 ? t("interactiveAnswer.continueWithThis") : t("interactiveAnswer.continueWithThese");
328
+ const sent = interactiveSelectionWasSent(state);
329
+ const activeFilters = Object.values(state.filters).some((values) => values.length > 0);
330
+ const toggle = (id) => {
331
+ if (!canPick) return;
332
+ setFailed(false);
333
+ update((current) => ({
334
+ ...current,
335
+ selected: toggleInteractiveSelection(current.selected, id, max)
336
+ }));
337
+ };
338
+ const send = async () => {
339
+ if (!host.send || state.selected.length === 0 || sending) return;
340
+ const selection = [...state.selected];
341
+ setSending(true);
342
+ setFailed(false);
343
+ try {
344
+ const result = await host.send(
345
+ interactiveSelectionMessage(spec, selection, fallbackAction, t.locale)
346
+ );
347
+ if (result === false) setFailed(true);
348
+ else update((current) => ({ ...current, sent: selection }));
349
+ } catch {
350
+ setFailed(true);
351
+ } finally {
352
+ setSending(false);
353
+ }
354
+ };
355
+ const itemProps = {
356
+ spec,
357
+ selected: state.selected,
358
+ hovered,
359
+ onHover: setHovered,
360
+ onToggle: canPick ? toggle : void 0,
361
+ atMax: max > 1 && state.selected.length >= max,
362
+ best,
363
+ words,
364
+ single: max === 1
365
+ };
366
+ return /* @__PURE__ */ jsxs3(
367
+ "section",
368
+ {
369
+ "aria-labelledby": spec.title ? titleId : void 0,
370
+ "aria-label": spec.title ? void 0 : t("interactiveAnswer.options"),
371
+ "aria-busy": streamState === "streaming" && !complete || void 0,
372
+ className: "og-interactive-answer @container/answer my-3 flex min-w-0 flex-col gap-3 first:mt-0",
373
+ children: [
374
+ spec.title || interactive && spec.fields.length > 0 ? (
375
+ // Without a title, narrow answers have no header: the switch is hidden there.
376
+ /* @__PURE__ */ jsxs3(
377
+ "header",
378
+ {
379
+ className: cn("flex min-w-0 items-center gap-3", !spec.title && "hidden @md/answer:flex"),
380
+ children: [
381
+ spec.title ? /* @__PURE__ */ jsx3(
382
+ "h3",
383
+ {
384
+ id: titleId,
385
+ className: "m-0 min-w-0 flex-1 text-og-md leading-6 font-medium text-og-fg",
386
+ children: spec.title
387
+ }
388
+ ) : /* @__PURE__ */ jsx3("span", { className: "flex-1" }),
389
+ interactive && spec.fields.length > 0 ? /* @__PURE__ */ jsx3(
390
+ ViewSwitch,
391
+ {
392
+ view: showTable ? "table" : "cards",
393
+ onChange: (next) => update((current) => ({ ...current, view: next }))
394
+ }
395
+ ) : null
396
+ ]
397
+ }
398
+ )
399
+ ) : null,
400
+ filterFields.length > 0 ? /* @__PURE__ */ jsx3(
401
+ Filters,
402
+ {
403
+ fields: filterFields,
404
+ items: spec.items,
405
+ filters: state.filters,
406
+ words,
407
+ onChange: (key, values) => update((current) => ({ ...current, filters: { ...current.filters, [key]: values } }))
408
+ }
409
+ ) : null,
410
+ spec.chart ? /* @__PURE__ */ jsx3(
411
+ BarChart,
412
+ {
413
+ ...itemProps,
414
+ field: spec.fields.find((field) => field.key === spec.chart),
415
+ items: visible
416
+ }
417
+ ) : null,
418
+ visible.length === 0 ? /* @__PURE__ */ jsxs3("p", { className: "m-0 flex flex-wrap items-center gap-x-2 text-og-sm text-og-fg-muted", children: [
419
+ t("interactiveAnswer.noMatches"),
420
+ /* @__PURE__ */ jsx3(
421
+ "button",
422
+ {
423
+ type: "button",
424
+ className: "cursor-pointer rounded-og-sm text-og-fg underline decoration-og-border-strong underline-offset-2 hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
425
+ onClick: () => update((current) => ({ ...current, filters: {} })),
426
+ children: t("interactiveAnswer.showAll")
427
+ }
428
+ )
429
+ ] }) : /* @__PURE__ */ jsxs3(Fragment, { children: [
430
+ showTable ? (
431
+ // Narrow answers (a phone, a side panel) read the same options as cards,
432
+ // so no column hides off-screen.
433
+ /* @__PURE__ */ jsx3("div", { className: "hidden min-w-0 @md/answer:block", children: /* @__PURE__ */ jsx3(
434
+ OptionTable,
435
+ {
436
+ ...itemProps,
437
+ items: visible,
438
+ sort: state.sort,
439
+ onSort: (key, field) => update((current) => ({
440
+ ...current,
441
+ sort: nextInteractiveSort(current.sort, key, field)
442
+ }))
443
+ }
444
+ ) })
445
+ ) : null,
446
+ /* @__PURE__ */ jsx3(
447
+ "div",
448
+ {
449
+ className: cn(
450
+ "grid min-w-0 grid-cols-1 gap-2 @lg/answer:grid-cols-2",
451
+ showTable && "@md/answer:hidden"
452
+ ),
453
+ children: visible.map((item) => /* @__PURE__ */ jsx3(OptionCard, { item, ...itemProps }, item.id))
454
+ }
455
+ )
456
+ ] }),
457
+ interactive && (activeFilters || spec.omitted > 0) ? /* @__PURE__ */ jsx3("p", { className: "m-0 text-og-xs text-og-fg-subtle", children: activeFilters ? t("interactiveAnswer.showing", { shown: visible.length, total: spec.items.length }) : t("interactiveAnswer.omitted", { count: spec.omitted }) }) : null,
458
+ streamState === "streaming" && !complete ? /* @__PURE__ */ jsx3(AnswerStatus, { streaming: true }) : null,
459
+ streamState === "incomplete" && !complete ? /* @__PURE__ */ jsx3("p", { className: "m-0 text-og-sm text-og-fg-muted", children: t("interactiveAnswer.stopped") }) : null,
460
+ canPick ? /* @__PURE__ */ jsx3(
461
+ PickBar,
462
+ {
463
+ spec,
464
+ max,
465
+ selected: state.selected,
466
+ sent,
467
+ sending,
468
+ failed,
469
+ action: interactiveActionLabel(spec, fallbackAction),
470
+ onClear: () => update((current) => ({ ...current, selected: [] })),
471
+ onSend: () => void send()
472
+ }
473
+ ) : null
474
+ ]
475
+ }
476
+ );
477
+ }
478
+ function ViewSwitch({
479
+ view,
480
+ onChange
481
+ }) {
482
+ const t = useOpenGeniText();
483
+ const options = [
484
+ { id: "cards", label: t("interactiveAnswer.cards"), icon: LayoutGridIcon },
485
+ { id: "table", label: t("interactiveAnswer.table"), icon: Table2Icon }
486
+ ];
487
+ return /* @__PURE__ */ jsx3(
488
+ "div",
489
+ {
490
+ role: "group",
491
+ "aria-label": t("interactiveAnswer.viewAs"),
492
+ className: "hidden shrink-0 items-center rounded-og-md bg-og-fg/[0.05] p-0.5 @md/answer:inline-flex",
493
+ children: options.map(({ id, label, icon: Icon }) => /* @__PURE__ */ jsxs3(
494
+ "button",
495
+ {
496
+ type: "button",
497
+ "aria-pressed": view === id,
498
+ title: label,
499
+ onClick: () => onChange(id),
500
+ className: cn(
501
+ "inline-flex h-7 cursor-pointer items-center gap-1.5 rounded-[calc(var(--og-radius-md)-2px)] px-2 text-og-xs font-medium transition-colors duration-150 pointer-coarse:h-9 pointer-coarse:px-3",
502
+ "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
503
+ view === id ? "bg-og-surface-1 text-og-fg shadow-[0_1px_2px_rgb(0_0_0/0.08)]" : "text-og-fg-muted hover:text-og-fg"
504
+ ),
505
+ children: [
506
+ /* @__PURE__ */ jsx3(Icon, { "aria-hidden": "true", className: "size-3.5" }),
507
+ /* @__PURE__ */ jsx3("span", { children: label })
508
+ ]
509
+ },
510
+ id
511
+ ))
512
+ }
513
+ );
514
+ }
515
+ function Filters({
516
+ fields,
517
+ items,
518
+ filters,
519
+ words,
520
+ onChange
521
+ }) {
522
+ return /* @__PURE__ */ jsx3("div", { className: "flex min-w-0 flex-col gap-2", children: fields.map((field) => {
523
+ const options = interactiveFilterOptions(field, items);
524
+ if (options.length === 0) return null;
525
+ const active = filters[field.key] ?? [];
526
+ return /* @__PURE__ */ jsxs3(
527
+ "div",
528
+ {
529
+ role: "group",
530
+ "aria-label": field.label,
531
+ className: "flex min-w-0 flex-wrap items-center gap-1.5",
532
+ children: [
533
+ /* @__PURE__ */ jsx3("span", { className: "mr-1 text-og-xs text-og-fg-subtle", children: field.label }),
534
+ options.map((option) => {
535
+ const on = active.includes(option);
536
+ return /* @__PURE__ */ jsxs3(
537
+ "button",
538
+ {
539
+ type: "button",
540
+ "aria-pressed": on,
541
+ onClick: () => onChange(
542
+ field.key,
543
+ on ? active.filter((value) => value !== option) : [...active, option]
544
+ ),
545
+ className: cn(
546
+ "inline-flex h-7 cursor-pointer items-center gap-1 rounded-full border px-2.5 text-og-xs transition-colors duration-150 pointer-coarse:h-9 pointer-coarse:px-3",
547
+ "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
548
+ on ? "border-og-fg bg-og-fg text-og-bg" : "border-og-border text-og-fg-muted hover:border-og-border-strong hover:text-og-fg"
549
+ ),
550
+ children: [
551
+ on ? /* @__PURE__ */ jsx3(CheckIcon2, { "aria-hidden": "true", className: "size-3" }) : null,
552
+ formatInteractiveValue(field, option, words)
553
+ ]
554
+ },
555
+ String(option)
556
+ );
557
+ })
558
+ ]
559
+ },
560
+ field.key
561
+ );
562
+ }) });
563
+ }
564
+ function SelectMark({ on, single }) {
565
+ return /* @__PURE__ */ jsx3(
566
+ "span",
567
+ {
568
+ "aria-hidden": "true",
569
+ className: cn(
570
+ "inline-flex size-[18px] shrink-0 items-center justify-center border transition-colors duration-150",
571
+ single ? "rounded-full" : "rounded-[5px]",
572
+ on ? "border-og-fg bg-og-fg text-og-bg" : "border-og-border-strong bg-og-surface-1 group-hover/option:border-og-fg-muted"
573
+ ),
574
+ children: on ? single ? /* @__PURE__ */ jsx3("span", { className: "size-1.5 rounded-full bg-og-bg" }) : /* @__PURE__ */ jsx3(CheckIcon2, { className: "size-3", strokeWidth: 3 }) : null
575
+ }
576
+ );
577
+ }
578
+ function BestMark() {
579
+ const t = useOpenGeniText();
580
+ return /* @__PURE__ */ jsxs3("span", { className: "inline-flex items-center gap-0.5 text-[11px] leading-4 font-medium text-og-status-idle", children: [
581
+ /* @__PURE__ */ jsx3(CheckIcon2, { "aria-hidden": "true", className: "size-3", strokeWidth: 2.5 }),
582
+ t("interactiveAnswer.best")
583
+ ] });
584
+ }
585
+ function OptionCard({
586
+ item,
587
+ spec,
588
+ selected,
589
+ hovered,
590
+ onHover,
591
+ onToggle,
592
+ atMax,
593
+ best,
594
+ words,
595
+ single
596
+ }) {
597
+ const t = useOpenGeniText();
598
+ const on = selected.includes(item.id);
599
+ const disabled = Boolean(onToggle) && !on && atMax;
600
+ const facts = spec.fields.filter((field) => {
601
+ const value = item.values[field.key];
602
+ return value !== void 0 && value !== null && value !== "";
603
+ });
604
+ const Root = onToggle ? "label" : "div";
605
+ return /* @__PURE__ */ jsxs3(
606
+ Root,
607
+ {
608
+ "data-option-id": item.id,
609
+ onPointerEnter: () => onHover(item.id),
610
+ onPointerLeave: () => onHover(null),
611
+ className: cn(
612
+ "group/option relative flex min-w-0 gap-3 rounded-og-lg border bg-og-surface-1 px-3.5 py-3 transition-[border-color,background-color,box-shadow] duration-150",
613
+ onToggle && !disabled && "cursor-pointer",
614
+ disabled && "opacity-60",
615
+ on ? "border-og-fg bg-og-fg/[0.025]" : hovered === item.id ? "border-og-border-strong bg-og-hover" : "border-og-border",
616
+ "has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-og-accent/45"
617
+ ),
618
+ children: [
619
+ onToggle ? /* @__PURE__ */ jsxs3(Fragment, { children: [
620
+ /* @__PURE__ */ jsx3(
621
+ "input",
622
+ {
623
+ type: single ? "radio" : "checkbox",
624
+ className: "sr-only",
625
+ checked: on,
626
+ disabled,
627
+ "aria-label": t("interactiveAnswer.select", { title: item.title }),
628
+ onChange: () => onToggle(item.id)
629
+ }
630
+ ),
631
+ /* @__PURE__ */ jsx3("span", { className: "pt-0.5", children: /* @__PURE__ */ jsx3(SelectMark, { on, single }) })
632
+ ] }) : null,
633
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
634
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 items-start gap-2", children: [
635
+ /* @__PURE__ */ jsxs3("div", { className: "min-w-0 flex-1", children: [
636
+ /* @__PURE__ */ jsx3("div", { className: "text-og-sm leading-5 font-medium text-og-fg", children: item.title }),
637
+ item.subtitle ? /* @__PURE__ */ jsx3("div", { className: "text-og-xs leading-4 text-og-fg-muted", children: item.subtitle }) : null
638
+ ] }),
639
+ item.badge ? /* @__PURE__ */ jsx3("span", { className: "shrink-0 rounded-full bg-og-fg/[0.07] px-2 py-0.5 text-[11px] leading-4 font-medium text-og-fg", children: item.badge }) : null
640
+ ] }),
641
+ item.description ? /* @__PURE__ */ jsx3("p", { className: "m-0 line-clamp-2 text-og-sm leading-5 text-og-fg-muted", children: item.description }) : null,
642
+ facts.length > 0 ? /* @__PURE__ */ jsx3("dl", { className: "m-0 mt-1.5 flex flex-wrap gap-x-5 gap-y-2", children: facts.map((field) => {
643
+ const isBest = best.get(field.key)?.has(item.id);
644
+ return /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col", children: [
645
+ /* @__PURE__ */ jsxs3("dt", { className: "flex items-center gap-1.5 text-og-xs leading-4 text-og-fg-subtle", children: [
646
+ field.label,
647
+ isBest ? /* @__PURE__ */ jsx3(BestMark, {}) : null
648
+ ] }),
649
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 min-w-0 text-og-sm leading-5 text-og-fg tabular-nums", children: formatInteractiveValue(field, item.values[field.key], words, t.locale) })
650
+ ] }, field.key);
651
+ }) }) : null,
652
+ item.url ? /* @__PURE__ */ jsxs3(
653
+ "a",
654
+ {
655
+ href: item.url,
656
+ target: "_blank",
657
+ rel: "noreferrer noopener",
658
+ onClick: (event) => event.stopPropagation(),
659
+ className: "relative z-10 mt-1 inline-flex w-fit items-center gap-1 rounded-og-sm text-og-xs font-medium text-og-fg-muted underline decoration-og-border-strong underline-offset-2 hover:text-og-fg hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
660
+ children: [
661
+ hostLabel(item.url),
662
+ /* @__PURE__ */ jsx3(ArrowUpRightIcon, { "aria-hidden": "true", className: "size-3" })
663
+ ]
664
+ }
665
+ ) : null
666
+ ] })
667
+ ]
668
+ }
669
+ );
670
+ }
671
+ function hostLabel(url) {
672
+ try {
673
+ return new URL(url).hostname.replace(/^www\./, "");
674
+ } catch {
675
+ return url;
676
+ }
677
+ }
678
+ var INLINE_UNITS = /* @__PURE__ */ new Set(["$", "\u20AC", "\xA3", "\xA5", "US$", "%"]);
679
+ function OptionTable({
680
+ items,
681
+ spec,
682
+ selected,
683
+ hovered,
684
+ onHover,
685
+ onToggle,
686
+ atMax,
687
+ best,
688
+ words,
689
+ single,
690
+ sort,
691
+ onSort
692
+ }) {
693
+ const t = useOpenGeniText();
694
+ const header = (key, label, field, numeric) => {
695
+ const active = sort?.key === key;
696
+ const Arrow = active && sort?.direction === "desc" ? ArrowDownIcon : ArrowUpIcon;
697
+ const arrow = /* @__PURE__ */ jsx3(
698
+ Arrow,
699
+ {
700
+ "aria-hidden": "true",
701
+ className: cn(
702
+ "size-3 shrink-0 transition-opacity",
703
+ active ? "opacity-100" : "opacity-0 group-hover/sort:opacity-60"
704
+ )
705
+ }
706
+ );
707
+ return /* @__PURE__ */ jsx3(
708
+ "th",
709
+ {
710
+ scope: "col",
711
+ "aria-sort": active ? sort?.direction === "asc" ? "ascending" : "descending" : void 0,
712
+ className: cn(
713
+ "border-b border-og-border px-2.5 py-2 text-left align-bottom font-normal first:pl-0",
714
+ numeric && "text-right",
715
+ numeric && field?.better && "pr-6"
716
+ ),
717
+ children: /* @__PURE__ */ jsxs3(
718
+ "button",
719
+ {
720
+ type: "button",
721
+ onClick: () => onSort(key, field),
722
+ className: cn(
723
+ // align-bottom: an inline-flex box takes its baseline from its first
724
+ // item, and a leading arrow icon would lift numeric headers.
725
+ "group/sort inline-flex cursor-pointer items-center gap-1 rounded-og-sm align-bottom text-og-xs whitespace-nowrap focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
726
+ active ? "text-og-fg" : "text-og-fg-subtle hover:text-og-fg"
727
+ ),
728
+ children: [
729
+ numeric ? arrow : null,
730
+ /* @__PURE__ */ jsxs3("span", { children: [
731
+ label,
732
+ field?.unit && !INLINE_UNITS.has(field.unit) ? /* @__PURE__ */ jsxs3("span", { className: "text-og-fg-subtle", children: [
733
+ " (",
734
+ field.unit,
735
+ ")"
736
+ ] }) : null
737
+ ] }),
738
+ numeric ? null : arrow
739
+ ]
740
+ }
741
+ )
742
+ },
743
+ key
744
+ );
745
+ };
746
+ const numericField = (field) => spec.items.some((item) => typeof item.values[field.key] === "number");
747
+ return /* @__PURE__ */ jsxs3("div", { className: "min-w-0 overflow-x-auto [scrollbar-gutter:stable]", children: [
748
+ /* @__PURE__ */ jsxs3("table", { className: "w-full border-collapse text-og-sm", children: [
749
+ /* @__PURE__ */ jsx3("thead", { children: /* @__PURE__ */ jsxs3("tr", { children: [
750
+ onToggle ? /* @__PURE__ */ jsx3("th", { scope: "col", className: "w-8 border-b border-og-border py-2 pr-1", children: /* @__PURE__ */ jsx3("span", { className: "sr-only", children: t("interactiveAnswer.selected") }) }) : null,
751
+ header("title", t("interactiveAnswer.option")),
752
+ spec.fields.map((field) => header(field.key, field.label, field, numericField(field)))
753
+ ] }) }),
754
+ /* @__PURE__ */ jsx3("tbody", { children: items.map((item) => {
755
+ const on = selected.includes(item.id);
756
+ const disabled = Boolean(onToggle) && !on && atMax;
757
+ return /* @__PURE__ */ jsxs3(
758
+ "tr",
759
+ {
760
+ "data-option-id": item.id,
761
+ onPointerEnter: () => onHover(item.id),
762
+ onPointerLeave: () => onHover(null),
763
+ onClick: (event) => {
764
+ if (event.target.closest("a,label,input")) return;
765
+ if (onToggle && !disabled) onToggle(item.id);
766
+ },
767
+ className: cn(
768
+ "transition-colors duration-150",
769
+ onToggle && !disabled && "cursor-pointer",
770
+ disabled && "opacity-60",
771
+ on ? "bg-og-fg/[0.06]" : hovered === item.id && "bg-og-hover"
772
+ ),
773
+ children: [
774
+ onToggle ? /* @__PURE__ */ jsx3("td", { className: "border-b border-og-border py-2 pr-1 align-top", children: /* @__PURE__ */ jsxs3("label", { className: "group/option relative inline-flex cursor-pointer pt-0.5 has-[input:focus-visible]:rounded-[5px] has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-og-accent/45", children: [
775
+ /* @__PURE__ */ jsx3(
776
+ "input",
777
+ {
778
+ type: single ? "radio" : "checkbox",
779
+ className: "sr-only",
780
+ checked: on,
781
+ disabled,
782
+ "aria-label": t("interactiveAnswer.select", { title: item.title }),
783
+ onChange: () => onToggle(item.id)
784
+ }
785
+ ),
786
+ /* @__PURE__ */ jsx3(SelectMark, { on, single })
787
+ ] }) }) : null,
788
+ /* @__PURE__ */ jsxs3(
789
+ "th",
790
+ {
791
+ scope: "row",
792
+ className: "border-b border-og-border px-2.5 py-2 text-left align-top font-normal first:pl-0",
793
+ children: [
794
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-w-[9rem] flex-wrap items-center gap-x-1.5", children: [
795
+ /* @__PURE__ */ jsx3("span", { className: "font-medium text-og-fg", children: item.title }),
796
+ item.badge ? /* @__PURE__ */ jsx3("span", { className: "rounded-full bg-og-fg/[0.07] px-1.5 text-[10.5px] leading-4 font-medium text-og-fg", children: item.badge }) : null
797
+ ] }),
798
+ item.subtitle ? /* @__PURE__ */ jsx3("div", { className: "text-og-xs text-og-fg-muted", children: item.subtitle }) : null
799
+ ]
800
+ }
801
+ ),
802
+ spec.fields.map((field) => {
803
+ const value = item.values[field.key];
804
+ const isBest = best.get(field.key)?.has(item.id);
805
+ return /* @__PURE__ */ jsxs3(
806
+ "td",
807
+ {
808
+ className: cn(
809
+ "border-b border-og-border px-2.5 py-2 align-top text-og-fg tabular-nums",
810
+ typeof value === "number" && "text-right whitespace-nowrap",
811
+ typeof value === "number" && field.better && "pr-2",
812
+ isBest && "font-medium",
813
+ (value === void 0 || value === null) && "text-og-fg-subtle"
814
+ ),
815
+ children: [
816
+ formatInteractiveValue(
817
+ field.unit && !INLINE_UNITS.has(field.unit) ? { ...field, unit: void 0 } : field,
818
+ value,
819
+ words,
820
+ t.locale
821
+ ),
822
+ field.better && typeof value === "number" ? (
823
+ // A fixed slot keeps numbers aligned whether or not they are best.
824
+ /* @__PURE__ */ jsx3("span", { className: "inline-flex w-3.5 justify-end", children: isBest ? /* @__PURE__ */ jsx3(
825
+ "span",
826
+ {
827
+ role: "img",
828
+ "aria-label": t("interactiveAnswer.best"),
829
+ className: "inline-block size-1.5 rounded-full bg-og-status-idle"
830
+ }
831
+ ) : null })
832
+ ) : null
833
+ ]
834
+ },
835
+ field.key
836
+ );
837
+ })
838
+ ]
839
+ },
840
+ item.id
841
+ );
842
+ }) })
843
+ ] }),
844
+ best.size > 0 ? /* @__PURE__ */ jsxs3("p", { className: "m-0 mt-2 inline-flex items-center gap-1.5 text-og-xs text-og-fg-subtle", children: [
845
+ /* @__PURE__ */ jsx3(
846
+ "span",
847
+ {
848
+ "aria-hidden": "true",
849
+ className: "inline-block size-1.5 rounded-full bg-og-status-idle"
850
+ }
851
+ ),
852
+ t("interactiveAnswer.bestInColumn")
853
+ ] }) : null
854
+ ] });
855
+ }
856
+ function BarChart({
857
+ field,
858
+ items,
859
+ selected,
860
+ hovered,
861
+ onHover,
862
+ onToggle,
863
+ atMax,
864
+ best,
865
+ words
866
+ }) {
867
+ const t = useOpenGeniText();
868
+ const values = items.map((item) => item.values[field.key]).filter((value) => typeof value === "number");
869
+ const top = Math.max(0, ...values);
870
+ const bottom = Math.min(0, ...values);
871
+ const span = top - bottom || 1;
872
+ const rows = items.filter((item) => typeof item.values[field.key] === "number");
873
+ if (rows.length === 0) return null;
874
+ return /* @__PURE__ */ jsxs3(
875
+ "figure",
876
+ {
877
+ className: "m-0 flex min-w-0 flex-col gap-1.5",
878
+ "aria-label": t("interactiveAnswer.chartLabel", { label: field.label }),
879
+ children: [
880
+ /* @__PURE__ */ jsxs3("figcaption", { className: "text-og-xs text-og-fg-subtle", children: [
881
+ field.label,
882
+ field.unit ? ` (${field.unit})` : ""
883
+ ] }),
884
+ /* @__PURE__ */ jsx3("ul", { className: "m-0 grid list-none grid-cols-[minmax(0,1fr)_auto] gap-y-0.5 p-0 @md/answer:grid-cols-[minmax(5.5rem,34%)_minmax(0,1fr)_auto]", children: rows.map((item) => {
885
+ const value = item.values[field.key];
886
+ const on = selected.includes(item.id);
887
+ const lit = on || hovered === item.id;
888
+ const width = `${Math.max(1.5, Math.abs(value) / span * 100)}%`;
889
+ const disabled = !on && atMax;
890
+ const body = /* @__PURE__ */ jsxs3(Fragment, { children: [
891
+ /* @__PURE__ */ jsx3("span", { className: "col-start-1 row-start-1 min-w-0 truncate text-left text-og-xs leading-5 text-og-fg @md/answer:leading-6", children: item.title }),
892
+ /* @__PURE__ */ jsx3("span", { className: "col-span-2 col-start-1 row-start-2 flex h-4 min-w-0 items-center @md/answer:col-span-1 @md/answer:col-start-2 @md/answer:row-start-1 @md/answer:h-6", children: /* @__PURE__ */ jsx3(
893
+ "span",
894
+ {
895
+ className: cn(
896
+ "h-2.5 rounded-r-[4px] rounded-l-[2px] transition-[width,background-color] duration-300 ease-out motion-reduce:transition-none @md/answer:h-3.5",
897
+ on ? "bg-og-fg/85" : lit ? "bg-og-fg/40" : "bg-og-fg/[0.16]"
898
+ ),
899
+ style: { width }
900
+ }
901
+ ) }),
902
+ /* @__PURE__ */ jsxs3("span", { className: "col-start-2 row-start-1 text-right text-og-xs leading-5 whitespace-nowrap text-og-fg-muted tabular-nums @md/answer:col-start-3 @md/answer:text-left @md/answer:leading-6", children: [
903
+ formatInteractiveValue(field, value, words, t.locale),
904
+ best.get(field.key)?.has(item.id) ? /* @__PURE__ */ jsx3("span", { className: "ml-1.5 inline-flex align-[-2px]", children: /* @__PURE__ */ jsx3(BestMark, {}) }) : null
905
+ ] })
906
+ ] });
907
+ const rowClass = "col-span-full grid min-w-0 grid-cols-subgrid items-center gap-x-3 rounded-og-sm px-1 py-1 -mx-1 @md/answer:py-0";
908
+ return /* @__PURE__ */ jsx3(
909
+ "li",
910
+ {
911
+ "data-option-id": item.id,
912
+ className: "col-span-full grid grid-cols-subgrid",
913
+ onPointerEnter: () => onHover(item.id),
914
+ onPointerLeave: () => onHover(null),
915
+ children: onToggle ? /* @__PURE__ */ jsx3(
916
+ "button",
917
+ {
918
+ type: "button",
919
+ "aria-pressed": on,
920
+ disabled,
921
+ "aria-label": t("interactiveAnswer.select", { title: item.title }),
922
+ onClick: () => onToggle(item.id),
923
+ className: cn(
924
+ rowClass,
925
+ "cursor-pointer focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45 disabled:cursor-not-allowed disabled:opacity-60"
926
+ ),
927
+ children: body
928
+ }
929
+ ) : /* @__PURE__ */ jsx3("div", { className: rowClass, children: body })
930
+ },
931
+ item.id
932
+ );
933
+ }) })
934
+ ]
935
+ }
936
+ );
937
+ }
938
+ function PickBar({
939
+ spec,
940
+ max,
941
+ selected,
942
+ sent,
943
+ sending,
944
+ failed,
945
+ action,
946
+ onClear,
947
+ onSend
948
+ }) {
949
+ const t = useOpenGeniText();
950
+ const names = spec.items.filter((item) => selected.includes(item.id)).map((item) => item.title);
951
+ const status = failed ? t("interactiveAnswer.sendFailed") : sent ? t("interactiveAnswer.sent") : selected.length === 0 ? max === 1 ? t("interactiveAnswer.pickOne") : max < spec.items.length ? t("interactiveAnswer.pickUpTo", { count: max }) : t("interactiveAnswer.pickAny") : max > 1 && selected.length >= max && max < spec.items.length ? t("interactiveAnswer.selectedMax", { count: selected.length }) : t("interactiveAnswer.selectedCount", { count: selected.length });
952
+ return /* @__PURE__ */ jsx3("div", { className: "@container/decision min-w-0 border-t border-og-border pt-3", children: /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col gap-2.5 @md/decision:flex-row @md/decision:items-center", children: [
953
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-1 flex-col", children: [
954
+ /* @__PURE__ */ jsxs3(
955
+ "p",
956
+ {
957
+ role: "status",
958
+ "aria-live": "polite",
959
+ className: cn(
960
+ "m-0 flex items-center gap-1.5 text-og-sm",
961
+ failed ? "text-og-status-failed" : "text-og-fg-muted"
962
+ ),
963
+ children: [
964
+ sent && !failed ? /* @__PURE__ */ jsx3(CheckIcon2, { "aria-hidden": "true", className: "size-3.5 text-og-status-running" }) : null,
965
+ /* @__PURE__ */ jsx3("span", { children: status }),
966
+ selected.length > 0 && !sent ? /* @__PURE__ */ jsx3(
967
+ "button",
968
+ {
969
+ type: "button",
970
+ onClick: onClear,
971
+ className: "cursor-pointer rounded-og-sm text-og-fg-subtle underline decoration-transparent underline-offset-2 hover:text-og-fg hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
972
+ children: t("interactiveAnswer.clear")
973
+ }
974
+ ) : null
975
+ ]
976
+ }
977
+ ),
978
+ names.length > 0 ? /* @__PURE__ */ jsx3("p", { className: "m-0 truncate text-og-xs text-og-fg-subtle", children: names.join(", ") }) : null
979
+ ] }),
980
+ /* @__PURE__ */ jsx3(
981
+ DecisionButton,
982
+ {
983
+ kind: sent ? "secondary" : "primary",
984
+ busy: sending,
985
+ disabled: selected.length === 0 || sent || sending,
986
+ onClick: onSend,
987
+ children: action
988
+ }
989
+ )
990
+ ] }) });
991
+ }
992
+ function AnswerStatus({ streaming, title }) {
993
+ const t = useOpenGeniText();
994
+ return /* @__PURE__ */ jsxs3("div", { role: "status", "aria-live": "polite", className: "my-3 flex flex-col gap-2 first:mt-0", children: [
995
+ title ? /* @__PURE__ */ jsx3("h3", { className: "m-0 text-og-md leading-6 font-medium text-og-fg", children: title }) : null,
996
+ /* @__PURE__ */ jsxs3("p", { className: "m-0 inline-flex items-center gap-2 text-og-sm text-og-fg-muted", children: [
997
+ streaming ? /* @__PURE__ */ jsx3(
998
+ LoaderCircleIcon2,
999
+ {
1000
+ "aria-hidden": "true",
1001
+ className: "size-3.5 animate-spin motion-reduce:animate-none"
1002
+ }
1003
+ ) : null,
1004
+ t("interactiveAnswer.writing")
1005
+ ] })
1006
+ ] });
1007
+ }
1008
+ function InvalidAnswer({ renderSource }) {
1009
+ const t = useOpenGeniText();
1010
+ const [open, setOpen] = useState2(false);
1011
+ return /* @__PURE__ */ jsxs3("div", { className: "my-3 flex flex-col gap-2 first:mt-0", children: [
1012
+ /* @__PURE__ */ jsxs3("p", { className: "m-0 flex flex-wrap items-center gap-x-2 text-og-sm text-og-fg-muted", children: [
1013
+ t("interactiveAnswer.invalid"),
1014
+ /* @__PURE__ */ jsx3(
1015
+ "button",
1016
+ {
1017
+ type: "button",
1018
+ "aria-expanded": open,
1019
+ onClick: () => setOpen((value) => !value),
1020
+ className: "cursor-pointer rounded-og-sm text-og-fg underline decoration-og-border-strong underline-offset-2 hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
1021
+ children: open ? t("interactiveAnswer.hideSource") : t("interactiveAnswer.showSource")
1022
+ }
1023
+ )
1024
+ ] }),
1025
+ open ? renderSource() : null
1026
+ ] });
1027
+ }
1028
+
1029
+ // src/components/lazy-part.tsx
1030
+ import { Component, Suspense } from "react";
1031
+ import { jsx as jsx4 } from "react/jsx-runtime";
1032
+ function LazyPart({
1033
+ children,
1034
+ fallback = null,
1035
+ onLoadFailure = "notice",
1036
+ failed
1037
+ }) {
1038
+ return /* @__PURE__ */ jsx4(
1039
+ LazyPartBoundary,
1040
+ {
1041
+ failed: failed ?? (onLoadFailure === "notice" ? /* @__PURE__ */ jsx4(LoadFailureNotice, {}) : null),
1042
+ children: /* @__PURE__ */ jsx4(Suspense, { fallback, children })
1043
+ }
1044
+ );
1045
+ }
1046
+ var LazyPartBoundary = class extends Component {
1047
+ state = { error: null };
1048
+ static getDerivedStateFromError(error) {
1049
+ return { error: { value: error } };
1050
+ }
1051
+ render() {
1052
+ const { error } = this.state;
1053
+ if (!error) return this.props.children;
1054
+ if (!isChunkLoadError(error.value)) throw error.value;
1055
+ return this.props.failed;
1056
+ }
1057
+ };
1058
+
1059
+ // src/components/markdown.tsx
1060
+ import {
1061
+ Children,
1062
+ createContext,
1063
+ useContext,
1064
+ isValidElement,
1065
+ memo as memo2,
1066
+ useEffect as useEffect4,
1067
+ useMemo as useMemo2,
1068
+ useReducer,
1069
+ useRef as useRef3,
1070
+ useState as useState4
1071
+ } from "react";
1072
+ import ReactMarkdown, {
1073
+ defaultUrlTransform
1074
+ } from "react-markdown";
1075
+ import remarkGfm from "remark-gfm";
1076
+ import { PanelsTopLeftIcon } from "lucide-react";
1077
+
1078
+ // src/lib/motion-inspect.ts
1079
+ var MOTION_INSPECT_SCALE = 1;
1080
+
1081
+ // src/components/preview-loading.tsx
1082
+ import { useEffect as useEffect2, useRef as useRef2 } from "react";
1083
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
1084
+ function PreviewLoading() {
1085
+ const t = useOpenGeniText();
1086
+ const ref = useRef2(null);
1087
+ useEffect2(() => {
1088
+ const canvas = ref.current;
1089
+ if (!canvas) return;
1090
+ let ctx;
1091
+ try {
1092
+ ctx = canvas.getContext("2d");
1093
+ } catch {
1094
+ return;
1095
+ }
1096
+ if (!ctx) return;
1097
+ const context = ctx;
1098
+ const motion = window.matchMedia?.("(prefers-reduced-motion: reduce)");
1099
+ let frame;
1100
+ let time = 2;
1101
+ let last;
1102
+ let disposed = false;
1103
+ let visible = false;
1104
+ const canAnimate = () => !disposed && visible && !document.hidden && motion?.matches === false;
1105
+ function draw() {
1106
+ const w = canvas.clientWidth;
1107
+ const h = canvas.clientHeight;
1108
+ if (!w || !h || document.hidden || disposed) return;
1109
+ const d = Math.min(window.devicePixelRatio || 1, 2);
1110
+ if (canvas.width !== Math.round(w * d) || canvas.height !== Math.round(h * d)) {
1111
+ canvas.width = Math.round(w * d);
1112
+ canvas.height = Math.round(h * d);
1113
+ }
1114
+ const style = getComputedStyle(canvas);
1115
+ const ink = style.getPropertyValue("--_og-preview-ink").trim() || "#9fdccd";
1116
+ const glowColor = style.getPropertyValue("--_og-preview-glow").trim() || "#5fb8a3";
1117
+ context.setTransform(d, 0, 0, d, 0, 0);
1118
+ paintPreviewLoading(context, w, h, time, ink, glowColor);
1119
+ canvas.dataset.painted = "true";
1120
+ }
1121
+ function stop() {
1122
+ if (frame !== void 0) window.cancelAnimationFrame(frame);
1123
+ frame = void 0;
1124
+ last = void 0;
1125
+ }
1126
+ function tick(stamp) {
1127
+ frame = void 0;
1128
+ if (!canAnimate()) return;
1129
+ if (last !== void 0) time += Math.min((stamp - last) / 1e3, 0.05);
1130
+ last = stamp;
1131
+ draw();
1132
+ frame = window.requestAnimationFrame(tick);
1133
+ }
1134
+ function refresh() {
1135
+ stop();
1136
+ if (disposed || document.hidden || !visible && intersection) return;
1137
+ draw();
1138
+ if (canAnimate() && typeof window.requestAnimationFrame === "function") {
1139
+ frame = window.requestAnimationFrame(tick);
1140
+ }
1141
+ }
1142
+ const intersection = typeof IntersectionObserver === "function" ? new IntersectionObserver(([entry]) => {
1143
+ visible = entry?.isIntersecting === true;
1144
+ refresh();
1145
+ }) : void 0;
1146
+ intersection?.observe(canvas);
1147
+ const resize = typeof ResizeObserver === "function" ? new ResizeObserver(refresh) : void 0;
1148
+ resize?.observe(canvas);
1149
+ const theme = typeof MutationObserver === "function" ? new MutationObserver(refresh) : void 0;
1150
+ for (let ancestor = canvas.parentElement; ancestor; ancestor = ancestor.parentElement) {
1151
+ theme?.observe(ancestor, {
1152
+ attributes: true,
1153
+ attributeFilter: ["class", "style", "data-og-theme"]
1154
+ });
1155
+ }
1156
+ motion?.addEventListener?.("change", refresh);
1157
+ document.addEventListener("visibilitychange", refresh);
1158
+ window.addEventListener("resize", refresh);
1159
+ if (!intersection) draw();
1160
+ return () => {
1161
+ disposed = true;
1162
+ stop();
1163
+ intersection?.disconnect();
1164
+ resize?.disconnect();
1165
+ theme?.disconnect();
1166
+ motion?.removeEventListener?.("change", refresh);
1167
+ document.removeEventListener("visibilitychange", refresh);
1168
+ window.removeEventListener("resize", refresh);
1169
+ };
1170
+ }, []);
1171
+ return /* @__PURE__ */ jsxs4("div", { className: "og-preview-loading", children: [
1172
+ /* @__PURE__ */ jsx5("canvas", { ref, "aria-hidden": "true" }),
1173
+ /* @__PURE__ */ jsx5("span", { className: "og-preview-loading-label", children: t("previewLoading.preparingPreview") })
1174
+ ] });
1175
+ }
1176
+
1177
+ // src/components/remark-soft-line-breaks.ts
1178
+ var LINE_ENDING = /\r\n|\r|\n/g;
1179
+ var HAS_LINE_ENDING = /[\r\n]/;
1180
+ var LINE_PREFIX = /[\t >]*/y;
1181
+ function remarkSoftLineBreaks() {
1182
+ return (tree, file) => {
1183
+ walk(tree, typeof file?.value === "string" ? file.value : void 0);
1184
+ };
1185
+ }
1186
+ function walk(node, source) {
1187
+ if (!node.children) {
1188
+ return;
1189
+ }
1190
+ let next = null;
1191
+ for (let index = 0; index < node.children.length; index += 1) {
1192
+ const child = node.children[index];
1193
+ if (child.type === "text" && typeof child.value === "string" && HAS_LINE_ENDING.test(child.value)) {
1194
+ next ??= node.children.slice(0, index);
1195
+ next.push(...splitText(child, child.value, source));
1196
+ continue;
1197
+ }
1198
+ walk(child, source);
1199
+ next?.push(child);
1200
+ }
1201
+ if (next !== null) {
1202
+ node.children = next;
1203
+ }
1204
+ }
1205
+ function splitText(node, value, source) {
1206
+ const segments = [];
1207
+ let cursor = 0;
1208
+ for (const match of value.matchAll(LINE_ENDING)) {
1209
+ segments.push({ value: value.slice(cursor, match.index), index: cursor });
1210
+ cursor = match.index + match[0].length;
1211
+ }
1212
+ segments.push({ value: value.slice(cursor), index: cursor });
1213
+ const starts = segmentStarts(node, segments, source);
1214
+ const nodeEnd = exactPoint(node.position?.end);
1215
+ const out = [];
1216
+ segments.forEach((segment, k) => {
1217
+ const start = starts?.[k];
1218
+ const isLast = k === segments.length - 1;
1219
+ const end = start === void 0 ? void 0 : isLast && nodeEnd !== void 0 ? nodeEnd : {
1220
+ line: start.line,
1221
+ column: start.column + segment.value.length,
1222
+ offset: start.offset + segment.value.length
1223
+ };
1224
+ if (segment.value.length > 0) {
1225
+ out.push({
1226
+ type: "text",
1227
+ value: segment.value,
1228
+ ...start !== void 0 && end !== void 0 ? { position: { start, end } } : {}
1229
+ });
1230
+ }
1231
+ if (!isLast) {
1232
+ const nextStart = starts?.[k + 1];
1233
+ out.push({
1234
+ type: "break",
1235
+ ...end !== void 0 && nextStart !== void 0 ? { position: { start: end, end: nextStart } } : {}
1236
+ });
1237
+ }
1238
+ });
1239
+ return out;
1240
+ }
1241
+ function segmentStarts(node, segments, source) {
1242
+ const start = exactPoint(node.position?.start);
1243
+ if (start === void 0) {
1244
+ return void 0;
1245
+ }
1246
+ const endOffset = node.position?.end?.offset;
1247
+ const lineStarts = [];
1248
+ if (source !== void 0 && endOffset !== void 0 && endOffset >= start.offset) {
1249
+ for (const match of source.slice(start.offset, endOffset).matchAll(LINE_ENDING)) {
1250
+ lineStarts.push(start.offset + match.index + match[0].length);
1251
+ }
1252
+ }
1253
+ const anchoredSource = lineStarts.length === segments.length - 1 ? source : void 0;
1254
+ return segments.map((segment, k) => {
1255
+ if (k === 0) {
1256
+ return start;
1257
+ }
1258
+ if (anchoredSource !== void 0) {
1259
+ const lineStart = lineStarts[k - 1];
1260
+ LINE_PREFIX.lastIndex = lineStart;
1261
+ const prefix = LINE_PREFIX.exec(anchoredSource)?.[0].length ?? 0;
1262
+ return { line: start.line + k, column: prefix + 1, offset: lineStart + prefix };
1263
+ }
1264
+ return { line: start.line + k, column: 1, offset: start.offset + segment.index };
1265
+ });
1266
+ }
1267
+ function exactPoint(point) {
1268
+ if (point === void 0 || typeof point.line !== "number" || typeof point.column !== "number" || typeof point.offset !== "number") {
1269
+ return void 0;
1270
+ }
1271
+ return { line: point.line, column: point.column, offset: point.offset };
1272
+ }
1273
+
1274
+ // src/components/rehype-inline-flow.ts
1275
+ var BLOCKS = /* @__PURE__ */ new Set([
1276
+ "p",
1277
+ "h1",
1278
+ "h2",
1279
+ "h3",
1280
+ "h4",
1281
+ "h5",
1282
+ "h6",
1283
+ "ul",
1284
+ "ol",
1285
+ "li",
1286
+ "blockquote",
1287
+ "pre",
1288
+ "hr",
1289
+ "table",
1290
+ "thead",
1291
+ "tbody",
1292
+ "tr",
1293
+ "th",
1294
+ "td",
1295
+ "div",
1296
+ "section"
1297
+ ]);
1298
+ function isBlock(node) {
1299
+ return node.type === "element" && BLOCKS.has(node.tagName);
1300
+ }
1301
+ function isBlank(node) {
1302
+ return node.type === "text" && (node.value ?? "").trim() === "";
1303
+ }
1304
+ function text(value) {
1305
+ return { type: "text", value };
1306
+ }
1307
+ function rehypeInlineFlow(options = {}) {
1308
+ const separator = () => options.separator === "space" ? text(" ") : { type: "element", tagName: "br", properties: {}, children: [] };
1309
+ function runs(children, listKind, start = 1) {
1310
+ const hasBlock = children.some(isBlock);
1311
+ const result = [];
1312
+ let inline = [];
1313
+ let item = start;
1314
+ const flushInline = () => {
1315
+ if (inline.some((node) => !isBlank(node))) result.push(inline);
1316
+ inline = [];
1317
+ };
1318
+ for (const child of children) {
1319
+ if (!isBlock(child)) {
1320
+ if (!(hasBlock && isBlank(child))) inline.push(child);
1321
+ continue;
1322
+ }
1323
+ flushInline();
1324
+ const nested = child.tagName === "ul" || child.tagName === "ol" ? runs(
1325
+ child.children,
1326
+ child.tagName,
1327
+ child.tagName === "ol" && typeof child.properties?.start === "number" ? child.properties.start : 1
1328
+ ) : runs(child.children);
1329
+ if (child.tagName === "li" && listKind) {
1330
+ const marker = listKind === "ol" ? `${item}. ` : "\u2022 ";
1331
+ item += 1;
1332
+ if (nested.length > 0) nested[0] = [text(marker), ...nested[0]];
1333
+ }
1334
+ result.push(...nested);
1335
+ }
1336
+ flushInline();
1337
+ return result;
1338
+ }
1339
+ return (tree) => {
1340
+ const flowed = [];
1341
+ for (const run of runs(tree.children ?? [])) {
1342
+ if (flowed.length > 0) flowed.push(separator());
1343
+ flowed.push(...run);
1344
+ }
1345
+ tree.children = flowed;
1346
+ };
1347
+ }
1348
+
1349
+ // src/components/rehype-secret-refs.ts
1350
+ var MARKER = "{{secret";
1351
+ function rehypeSecretRefs(options) {
1352
+ const { tokenize } = options;
1353
+ return (tree) => {
1354
+ walk2(tree);
1355
+ };
1356
+ function walk2(node) {
1357
+ if (!node.children) return;
1358
+ let changed = false;
1359
+ const next = [];
1360
+ for (const child of node.children) {
1361
+ if (child.type === "text" && child.value.includes(MARKER)) {
1362
+ const split = splitText2(child);
1363
+ if (split) {
1364
+ next.push(...split);
1365
+ changed = true;
1366
+ continue;
1367
+ }
1368
+ } else if (child.type === "element") {
1369
+ const element = child;
1370
+ if (element.tagName === "code") {
1371
+ const chip = wholeReference(element);
1372
+ if (chip) {
1373
+ next.push(chip);
1374
+ changed = true;
1375
+ continue;
1376
+ }
1377
+ } else if (element.tagName !== "pre" && element.tagName !== "a") {
1378
+ walk2(element);
1379
+ }
1380
+ } else if ("children" in child) {
1381
+ walk2(child);
1382
+ }
1383
+ next.push(child);
1384
+ }
1385
+ if (changed) node.children = next;
1386
+ }
1387
+ function splitText2(node) {
1388
+ const tokens = tokenize(node.value);
1389
+ if (!tokens.some((token) => token.type === "reference")) return null;
1390
+ return tokens.map(
1391
+ (token) => token.type === "reference" ? chipPlaceholder(token.reference.raw) : { type: "text", value: token.type === "text" ? token.value : token.raw }
1392
+ );
1393
+ }
1394
+ function wholeReference(code) {
1395
+ if (code.children.length !== 1) return null;
1396
+ const only = code.children[0];
1397
+ if (only.type !== "text") return null;
1398
+ const value = only.value;
1399
+ if (!value.includes(MARKER)) return null;
1400
+ const tokens = tokenize(value.trim());
1401
+ const token = tokens.length === 1 ? tokens[0] : null;
1402
+ return token?.type === "reference" ? chipPlaceholder(token.reference.raw) : null;
1403
+ }
1404
+ }
1405
+ function chipPlaceholder(raw) {
1406
+ return {
1407
+ type: "element",
1408
+ tagName: "span",
1409
+ properties: { dataOgSecretRef: raw },
1410
+ children: [{ type: "text", value: raw }]
1411
+ };
1412
+ }
1413
+
1414
+ // src/components/soften-streaming-markdown.ts
1415
+ function softenStreamingMarkdown(source) {
1416
+ if (source.length === 0) {
1417
+ return source;
1418
+ }
1419
+ let text2 = source;
1420
+ if (countFences(text2) % 2 === 1) {
1421
+ text2 += text2.endsWith("\n") ? "```" : "\n```";
1422
+ }
1423
+ const segments = splitByFences(text2);
1424
+ for (const segment of segments) {
1425
+ if (segment.kind === "fence") {
1426
+ continue;
1427
+ }
1428
+ segment.value = closeInlineMarkers(segment.value);
1429
+ }
1430
+ let result = segments.map((segment) => segment.value).join("");
1431
+ if (text2.endsWith("\n") && !result.endsWith("\n")) {
1432
+ result += "\n";
1433
+ }
1434
+ return result;
1435
+ }
1436
+ function countFences(text2) {
1437
+ let count = 0;
1438
+ for (const line of text2.split("\n")) {
1439
+ if (/^ {0,3}```/.test(line)) {
1440
+ count += 1;
1441
+ }
1442
+ }
1443
+ return count;
1444
+ }
1445
+ function splitByFences(text2) {
1446
+ const segments = [];
1447
+ const lines = text2.split("\n");
1448
+ let buf = [];
1449
+ let inFence = false;
1450
+ const flush = (kind, mode) => {
1451
+ if (buf.length === 0) {
1452
+ return;
1453
+ }
1454
+ let value = buf.join("\n");
1455
+ if (mode === "boundary") {
1456
+ value += "\n";
1457
+ }
1458
+ segments.push({ kind, value });
1459
+ buf = [];
1460
+ };
1461
+ for (const line of lines) {
1462
+ const isFence = /^ {0,3}```/.test(line);
1463
+ if (isFence) {
1464
+ if (inFence) {
1465
+ buf.push(line);
1466
+ flush("fence", "end");
1467
+ inFence = false;
1468
+ } else {
1469
+ flush("prose", "boundary");
1470
+ buf.push(line);
1471
+ inFence = true;
1472
+ }
1473
+ continue;
1474
+ }
1475
+ buf.push(line);
1476
+ }
1477
+ flush(inFence ? "fence" : "prose", "end");
1478
+ return segments;
1479
+ }
1480
+ function closeInlineMarkers(prose) {
1481
+ let text2 = prose;
1482
+ text2 = closeDelimiter(text2, "~~");
1483
+ text2 = closeDelimiter(text2, "**");
1484
+ text2 = closeDelimiter(text2, "__");
1485
+ text2 = closeSingleBackticks(text2);
1486
+ text2 = closeSingleAsterisks(text2);
1487
+ text2 = closeUnfinishedLink(text2);
1488
+ return text2;
1489
+ }
1490
+ function closeDelimiter(text2, delimiter) {
1491
+ let count = 0;
1492
+ let i = 0;
1493
+ while (i < text2.length) {
1494
+ if (text2[i] === "\\" && i + 1 < text2.length) {
1495
+ i += 2;
1496
+ continue;
1497
+ }
1498
+ if (text2.startsWith(delimiter, i)) {
1499
+ count += 1;
1500
+ i += delimiter.length;
1501
+ continue;
1502
+ }
1503
+ i += 1;
1504
+ }
1505
+ return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, delimiter) : text2;
1506
+ }
1507
+ function insertBeforeTrailingNewlines(text2, suffix) {
1508
+ let end = text2.length;
1509
+ while (end > 0 && text2[end - 1] === "\n") {
1510
+ end -= 1;
1511
+ }
1512
+ return text2.slice(0, end) + suffix + text2.slice(end);
1513
+ }
1514
+ function closeSingleBackticks(text2) {
1515
+ let count = 0;
1516
+ for (let i = 0; i < text2.length; i += 1) {
1517
+ if (text2[i] === "\\" && i + 1 < text2.length) {
1518
+ i += 1;
1519
+ continue;
1520
+ }
1521
+ if (text2[i] === "`") {
1522
+ if (text2.startsWith("```", i)) {
1523
+ i += 2;
1524
+ continue;
1525
+ }
1526
+ count += 1;
1527
+ }
1528
+ }
1529
+ return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, "`") : text2;
1530
+ }
1531
+ function closeSingleAsterisks(text2) {
1532
+ let count = 0;
1533
+ for (let i = 0; i < text2.length; i += 1) {
1534
+ if (text2[i] === "\\" && i + 1 < text2.length) {
1535
+ i += 1;
1536
+ continue;
1537
+ }
1538
+ if (text2[i] === "*" && text2[i + 1] === "*") {
1539
+ i += 1;
1540
+ continue;
1541
+ }
1542
+ if (text2[i] === "*") {
1543
+ count += 1;
1544
+ }
1545
+ }
1546
+ return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, "*") : text2;
1547
+ }
1548
+ function closeUnfinishedLink(text2) {
1549
+ const open = text2.lastIndexOf("](");
1550
+ if (open === -1) {
1551
+ return text2;
1552
+ }
1553
+ const after = text2.slice(open + 2);
1554
+ if (after.includes(")")) {
1555
+ return text2;
1556
+ }
1557
+ if (after.includes("[")) {
1558
+ return text2;
1559
+ }
1560
+ return insertBeforeTrailingNewlines(text2, ")");
1561
+ }
1562
+
1563
+ // src/components/stream-reveal.ts
1564
+ var INK_FADE_MS = 420 * MOTION_INSPECT_SCALE;
1565
+ var INITIAL_ANIMATED_LIMIT = 400;
1566
+ function createStreamReveal() {
1567
+ let batches = [];
1568
+ let revealedChars = -1;
1569
+ return {
1570
+ observe(text2, now) {
1571
+ if (revealedChars === -1) {
1572
+ revealedChars = text2.length > INITIAL_ANIMATED_LIMIT ? text2.length : 0;
1573
+ }
1574
+ if (text2.length <= revealedChars) {
1575
+ revealedChars = Math.max(revealedChars, text2.length);
1576
+ return;
1577
+ }
1578
+ batches.push({ start: revealedChars, end: text2.length, birth: now });
1579
+ revealedChars = text2.length;
1580
+ batches = batches.filter((batch) => batch.birth + INK_FADE_MS > now);
1581
+ },
1582
+ delayFor(offset, now) {
1583
+ const batch = findBatch(batches, offset);
1584
+ if (!batch) {
1585
+ return null;
1586
+ }
1587
+ const delay = batch.birth - now;
1588
+ return delay + INK_FADE_MS <= 0 ? null : delay;
1589
+ },
1590
+ hasActive(now) {
1591
+ const last = batches[batches.length - 1];
1592
+ return last !== void 0 && last.birth + INK_FADE_MS > now;
1593
+ }
1594
+ };
1595
+ }
1596
+ function findBatch(batches, offset) {
1597
+ let low = 0;
1598
+ let high = batches.length - 1;
1599
+ while (low <= high) {
1600
+ const mid = low + high >> 1;
1601
+ const batch = batches[mid];
1602
+ if (offset < batch.start) {
1603
+ high = mid - 1;
1604
+ } else if (offset >= batch.end) {
1605
+ low = mid + 1;
1606
+ } else {
1607
+ return batch;
1608
+ }
1609
+ }
1610
+ return null;
1611
+ }
1612
+ function rehypeStreamReveal(options) {
1613
+ const { reveal, now } = options;
1614
+ return (tree) => {
1615
+ walk2(tree, false);
1616
+ };
1617
+ function walk2(node, insideVerbatim) {
1618
+ if (!node.children) {
1619
+ return;
1620
+ }
1621
+ const verbatim = insideVerbatim || node.tagName === "code" || node.tagName === "pre";
1622
+ const next = [];
1623
+ for (const child of node.children) {
1624
+ if (child.type === "text" && !verbatim) {
1625
+ next.push(...splitTextNode(child));
1626
+ continue;
1627
+ }
1628
+ walk2(child, verbatim);
1629
+ next.push(child);
1630
+ }
1631
+ node.children = next;
1632
+ }
1633
+ function splitTextNode(node) {
1634
+ const sourceOffset = node.position?.start?.offset;
1635
+ if (sourceOffset === void 0) {
1636
+ return [node];
1637
+ }
1638
+ const value = node.value;
1639
+ const out = [];
1640
+ let plain = "";
1641
+ const flushPlain = () => {
1642
+ if (plain.length > 0) {
1643
+ out.push({ type: "text", value: plain });
1644
+ plain = "";
1645
+ }
1646
+ };
1647
+ let i = 0;
1648
+ while (i < value.length) {
1649
+ const delay = reveal.delayFor(sourceOffset + i, now);
1650
+ let j = i + 1;
1651
+ while (j < value.length) {
1652
+ const nextDelay = reveal.delayFor(sourceOffset + j, now);
1653
+ if (nextDelay !== delay) {
1654
+ break;
1655
+ }
1656
+ j += 1;
1657
+ }
1658
+ const slice = value.slice(i, j);
1659
+ if (delay === null) {
1660
+ plain += slice;
1661
+ } else {
1662
+ flushPlain();
1663
+ out.push({
1664
+ type: "element",
1665
+ tagName: "span",
1666
+ properties: {
1667
+ className: ["og-stream-ink"],
1668
+ style: `animation-delay:${Math.round(delay)}ms`
1669
+ },
1670
+ children: [{ type: "text", value: slice }]
1671
+ });
1672
+ }
1673
+ i = j;
1674
+ }
1675
+ flushPlain();
1676
+ return out.length > 0 ? out : [node];
1677
+ }
1678
+ }
1679
+
1680
+ // src/components/markdown.tsx
1681
+ import {
1682
+ parseOpenGeniLink,
1683
+ parseSandboxLink,
1684
+ parseRetainedFileReference,
1685
+ isReservedOpenGeniLink,
1686
+ openGeniLinkScheme
1687
+ } from "@opengeni/sdk";
1688
+
1689
+ // src/components/rehype-standalone-links.ts
1690
+ var STANDALONE_LINK_PROPERTY = "dataOgStandalone";
1691
+ var STANDALONE_LINK_ATTRIBUTE = "data-og-standalone";
1692
+ var CONTAINERS = /* @__PURE__ */ new Set(["p", "li"]);
1693
+ function isElement(node) {
1694
+ return node.type === "element";
1695
+ }
1696
+ function isBlank2(node) {
1697
+ return node.type === "text" && (node.value ?? "").trim() === "";
1698
+ }
1699
+ function standaloneLinkOf(container) {
1700
+ const content = (container.children ?? []).filter((child) => !isBlank2(child));
1701
+ const only = content.length === 1 ? content[0] : void 0;
1702
+ return only && isElement(only) && only.tagName === "a" ? only : null;
1703
+ }
1704
+ function rehypeStandaloneLinks() {
1705
+ return (tree) => {
1706
+ walk2(tree);
1707
+ };
1708
+ function walk2(node) {
1709
+ for (const child of node.children ?? []) {
1710
+ if (!isElement(child)) continue;
1711
+ if (CONTAINERS.has(child.tagName)) {
1712
+ const link = standaloneLinkOf(child);
1713
+ if (link) link.properties = { ...link.properties, [STANDALONE_LINK_PROPERTY]: "" };
1714
+ }
1715
+ walk2(child);
1716
+ }
1717
+ }
1718
+ }
1719
+
1720
+ // src/components/markdown-math-loader.ts
1721
+ import { useEffect as useEffect3, useState as useState3 } from "react";
1722
+ var loaded = null;
1723
+ var loading = null;
1724
+ function loadMathPlugins() {
1725
+ loading ??= import("./markdown-math-plugins-Q23LAE7Z.js").then(
1726
+ (module) => loaded = module,
1727
+ (error) => {
1728
+ loading = null;
1729
+ throw error;
1730
+ }
1731
+ );
1732
+ return loading;
1733
+ }
1734
+ function useMathPlugins(needed) {
1735
+ const [plugins, setPlugins] = useState3(loaded);
1736
+ useEffect3(() => {
1737
+ if (!needed || plugins) return;
1738
+ if (loaded) {
1739
+ setPlugins(loaded);
1740
+ return;
1741
+ }
1742
+ let active = true;
1743
+ loadMathPlugins().then(
1744
+ (module) => {
1745
+ if (active) setPlugins(module);
1746
+ },
1747
+ () => {
1748
+ }
1749
+ );
1750
+ return () => {
1751
+ active = false;
1752
+ };
1753
+ }, [needed, plugins]);
1754
+ return needed ? plugins ?? loaded : null;
1755
+ }
1756
+
1757
+ // src/components/markdown.tsx
1758
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
1759
+ var InteractiveContext = createContext({ source: "" });
1760
+ var baseComponents = {
1761
+ h1: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1762
+ "h1",
1763
+ {
1764
+ className: "mt-5 mb-2.5 text-xl font-semibold tracking-tight text-og-fg first:mt-0",
1765
+ ...props,
1766
+ children
1767
+ }
1768
+ ),
1769
+ h2: ({ children, ...props }) => /* @__PURE__ */ jsx6("h2", { className: "mt-5 mb-2 text-lg font-semibold tracking-tight text-og-fg first:mt-0", ...props, children }),
1770
+ h3: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1771
+ "h3",
1772
+ {
1773
+ className: "mt-4 mb-1.5 text-og-md font-semibold tracking-tight text-og-fg first:mt-0",
1774
+ ...props,
1775
+ children
1776
+ }
1777
+ ),
1778
+ h4: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1779
+ "h4",
1780
+ {
1781
+ className: "mt-4 mb-1.5 text-og-sm font-semibold uppercase tracking-[0.04em] text-og-fg first:mt-0",
1782
+ ...props,
1783
+ children
1784
+ }
1785
+ ),
1786
+ p: ({ children, ...props }) => /* @__PURE__ */ jsx6("p", { className: "my-2.5 leading-7 first:mt-0 last:mb-0", ...props, children }),
1787
+ strong: ({ children, ...props }) => /* @__PURE__ */ jsx6("strong", { className: "font-semibold text-og-fg", ...props, children }),
1788
+ em: ({ children, ...props }) => /* @__PURE__ */ jsx6("em", { className: "italic", ...props, children }),
1789
+ ul: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1790
+ "ul",
1791
+ {
1792
+ className: "my-2.5 ml-5 flex list-disc flex-col gap-1 marker:text-og-fg-subtle first:mt-0 last:mb-0",
1793
+ ...props,
1794
+ children
1795
+ }
1796
+ ),
1797
+ ol: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1798
+ "ol",
1799
+ {
1800
+ className: "my-2.5 ml-5 flex list-decimal flex-col gap-1 marker:text-og-fg-subtle first:mt-0 last:mb-0",
1801
+ ...props,
1802
+ children
1803
+ }
1804
+ ),
1805
+ // GFM task-list items carry a leading checkbox <input>; `list-none` + a
1806
+ // negative margin pull the checkbox back to the bullet column so it aligns
1807
+ // with the text.
1808
+ li: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1809
+ "li",
1810
+ {
1811
+ className: "leading-7 marker:text-og-fg-subtle [&>ul]:my-1 [&>ol]:my-1 [&:has(>input)]:list-none [&:has(>input)]:-ml-5",
1812
+ ...props,
1813
+ children
1814
+ }
1815
+ ),
1816
+ input: ({ type, ...props }) => type === "checkbox" ? /* @__PURE__ */ jsx6(
1817
+ "input",
1818
+ {
1819
+ ...props,
1820
+ type: "checkbox",
1821
+ disabled: true,
1822
+ className: "mr-2 size-3.5 translate-y-[2px] cursor-default accent-og-accent align-baseline"
1823
+ }
1824
+ ) : /* @__PURE__ */ jsx6("input", { type, ...props }),
1825
+ blockquote: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1826
+ "blockquote",
1827
+ {
1828
+ className: "my-3 border-l-2 border-og-border-strong pl-3.5 text-og-fg-muted [&>p]:my-1.5 first:mt-0 last:mb-0",
1829
+ ...props,
1830
+ children
1831
+ }
1832
+ ),
1833
+ hr: (props) => /* @__PURE__ */ jsx6("hr", { className: "my-4 border-0 border-t border-og-border", ...props }),
1834
+ // Inline `code` vs fenced code blocks. react-markdown v10 no longer passes an
1835
+ // `inline` flag; a fenced block is a <code> whose parent is <pre> (styled by
1836
+ // the `pre` renderer), so a `code` reaching here is treated as inline.
1837
+ code: ({ children, className: _className, ...props }) => /* @__PURE__ */ jsx6(
1838
+ "code",
1839
+ {
1840
+ className: "rounded-og-xs bg-og-surface-2 px-1 py-0.5 font-og-mono text-og-sm text-og-fg",
1841
+ ...props,
1842
+ children
1843
+ }
1844
+ ),
1845
+ // Fenced code — quiet mono block (no card / no nested vertical scroll).
1846
+ pre: InteractiveCodeBlock,
1847
+ // Tables stay unboxed (hairline rules); hover reveals a TSV copy control.
1848
+ table: ({ children, ...props }) => /* @__PURE__ */ jsx6(MarkdownTable, { ...props, children }),
1849
+ thead: ({ children, ...props }) => /* @__PURE__ */ jsx6("thead", { ...props, children }),
1850
+ th: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1851
+ "th",
1852
+ {
1853
+ className: "border-b border-og-border px-0 py-1.5 pr-4 text-left font-medium text-og-fg first:pl-0",
1854
+ ...props,
1855
+ children
1856
+ }
1857
+ ),
1858
+ td: ({ children, ...props }) => /* @__PURE__ */ jsx6(
1859
+ "td",
1860
+ {
1861
+ className: "border-b border-og-border/70 px-0 py-1.5 pr-4 align-top text-og-fg-muted",
1862
+ ...props,
1863
+ children
1864
+ }
1865
+ ),
1866
+ img: MarkdownImage
1867
+ };
1868
+ var MARKDOWN_LINK_CLASS = "break-words font-medium og-link";
1869
+ var INLINE_MARKDOWN_LINK_CLASS = "font-medium og-link [overflow-wrap:anywhere]";
1870
+ var MarkdownLinkContext = createContext({});
1871
+ var UNAVAILABLE_LABEL = (t) => ({
1872
+ file: t("markdown.thisFileNeedsAWorkspace"),
1873
+ "editable-artifact": t("markdown.thisArtifactNeedsAWorkspace"),
1874
+ site: t("markdown.thisSiteNeedsAWorkspace"),
1875
+ session: t("markdown.thisChatNeedsAWorkspace")
1876
+ });
1877
+ function linkActionTitle(t, target) {
1878
+ if (target.kind === "sandbox-file") {
1879
+ return target.line !== null ? t("markdown.openPathAtLineLine", { path: target.path, line: target.line }) : t("markdown.openPath", { path: target.path });
1880
+ }
1881
+ if (target.kind === "session") return t("markdown.openChat");
1882
+ return target.kind === "file" ? t("markdown.openFile") : target.kind === "site" ? t("markdown.openSite") : t("markdown.openArtifact");
1883
+ }
1884
+ function MarkdownSpan({
1885
+ node: _node,
1886
+ children,
1887
+ ...props
1888
+ }) {
1889
+ const raw = props["data-og-secret-ref"];
1890
+ if (typeof raw === "string") return /* @__PURE__ */ jsx6(MarkdownSecretRef, { raw, children });
1891
+ return /* @__PURE__ */ jsx6("span", { ...props, children });
1892
+ }
1893
+ function MarkdownSecretRef({ raw, children }) {
1894
+ const ui = useSecretsUi();
1895
+ const token = ui?.tokenize(raw).find((candidate) => candidate.type === "reference");
1896
+ if (!token || token.type !== "reference") return /* @__PURE__ */ jsx6(Fragment2, { children });
1897
+ return /* @__PURE__ */ jsx6(SecretRefChip, { reference: token.reference });
1898
+ }
1899
+ var markdownComponents = {
1900
+ ...baseComponents,
1901
+ span: MarkdownSpan,
1902
+ p: ({ children, node, ...props }) => {
1903
+ const containsBlock = node?.children.some(
1904
+ (child) => child.type === "element" && (child.tagName === "img" && typeof child.properties.src === "string" && retainedImageId(child.properties.src) || child.tagName === "a" && child.properties[STANDALONE_LINK_PROPERTY] !== void 0)
1905
+ );
1906
+ const Tag = containsBlock ? "div" : "p";
1907
+ return /* @__PURE__ */ jsx6(Tag, { className: "my-2.5 leading-7 first:mt-0 last:mb-0", ...props, children });
1908
+ },
1909
+ a: ({ children, href, ...linkProps }) => {
1910
+ const t = useOpenGeniText();
1911
+ const { onSandboxFile, artifactHref, resolveLink, renderLink, inline } = useContext(MarkdownLinkContext);
1912
+ const linkClass = inline ? INLINE_MARKDOWN_LINK_CLASS : MARKDOWN_LINK_CLASS;
1913
+ const inherited = useOpenGeniLinkResolver();
1914
+ const { [STANDALONE_LINK_ATTRIBUTE]: standaloneMarker, ...props } = linkProps;
1915
+ const target = parseOpenGeniLink(href);
1916
+ if (target) {
1917
+ if (target.kind === "file" && target.workspaceId === null && artifactHref) {
1918
+ const destination2 = defaultUrlTransform(artifactHref(target.fileId));
1919
+ if (destination2) {
1920
+ return /* @__PURE__ */ jsx6("a", { className: linkClass, href: destination2, target: "_blank", rel: "noreferrer noopener", children });
1921
+ }
1922
+ }
1923
+ const resolution = target.kind === "sandbox-file" && onSandboxFile ? { open: () => onSandboxFile(target.path, target.line ?? void 0) } : chainLinkResolvers(resolveLink, inherited)?.(target);
1924
+ const destination = resolution?.href ? defaultUrlTransform(resolution.href) : "";
1925
+ const navigate = resolution?.href ? resolution.open : void 0;
1926
+ if (destination && navigate) {
1927
+ return /* @__PURE__ */ jsx6(
1928
+ "a",
1929
+ {
1930
+ className: MARKDOWN_LINK_CLASS,
1931
+ href: destination,
1932
+ onClick: (event) => {
1933
+ if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
1934
+ return;
1935
+ event.preventDefault();
1936
+ navigate();
1937
+ },
1938
+ children
1939
+ }
1940
+ );
1941
+ }
1942
+ if (destination) {
1943
+ return /* @__PURE__ */ jsx6("a", { className: linkClass, href: destination, target: "_blank", rel: "noreferrer noopener", children });
1944
+ }
1945
+ if (resolution?.open) {
1946
+ return /* @__PURE__ */ jsx6(
1947
+ ActionMarkdownLink,
1948
+ {
1949
+ className: linkClass,
1950
+ title: linkActionTitle(t, target),
1951
+ onOpen: resolution.open,
1952
+ children
1953
+ }
1954
+ );
1955
+ }
1956
+ if (target.kind === "sandbox-file") {
1957
+ return /* @__PURE__ */ jsx6(
1958
+ "span",
1959
+ {
1960
+ className: "break-words font-medium text-og-fg-subtle underline decoration-dotted underline-offset-2",
1961
+ "aria-disabled": "true",
1962
+ title: t("markdown.thisSandboxFileRequiresA"),
1963
+ children
1964
+ }
1965
+ );
1966
+ }
1967
+ if (target.kind === "session") {
1968
+ return /* @__PURE__ */ jsx6("span", { title: UNAVAILABLE_LABEL(t).session, "data-og-link-unavailable": "session", children });
1969
+ }
1970
+ return /* @__PURE__ */ jsxs5("span", { title: UNAVAILABLE_LABEL(t)[target.kind], "data-og-link-unavailable": target.kind, children: [
1971
+ children,
1972
+ " ",
1973
+ t("markdown.artifactUnavailable")
1974
+ ] });
1975
+ }
1976
+ if (!isReservedOpenGeniLink(href) && href && renderLink) {
1977
+ const drawn = renderLink({ href, children, standalone: standaloneMarker !== void 0 });
1978
+ if (drawn !== void 0) return /* @__PURE__ */ jsx6(Fragment2, { children: drawn });
1979
+ }
1980
+ const safeHref = href ? defaultUrlTransform(href) : "";
1981
+ if (isReservedOpenGeniLink(href) || !safeHref) {
1982
+ return /* @__PURE__ */ jsxs5(
1983
+ "span",
1984
+ {
1985
+ className: "break-words text-og-fg-subtle",
1986
+ "aria-disabled": "true",
1987
+ title: isSandboxHref(href) ? t("markdown.thisSandboxFileReferenceIs") : t("markdown.thisLinkIsUnavailable"),
1988
+ children: [
1989
+ children,
1990
+ " ",
1991
+ t("markdown.linkUnavailable")
1992
+ ]
1993
+ }
1994
+ );
1995
+ }
1996
+ return /* @__PURE__ */ jsx6("a", { className: linkClass, target: "_blank", rel: "noreferrer noopener", href: safeHref, ...props, children });
1997
+ }
1998
+ };
1999
+ function ActionMarkdownLink({
2000
+ className,
2001
+ title,
2002
+ onOpen,
2003
+ children
2004
+ }) {
2005
+ const t = useOpenGeniText();
2006
+ const [state, setState] = useState4("idle");
2007
+ return /* @__PURE__ */ jsxs5(
2008
+ "button",
2009
+ {
2010
+ type: "button",
2011
+ className: cn(
2012
+ className,
2013
+ "inline-flex min-h-7 cursor-pointer items-center aria-disabled:cursor-wait aria-disabled:opacity-70 pointer-coarse:min-h-11"
2014
+ ),
2015
+ "aria-disabled": state === "loading" || void 0,
2016
+ "aria-busy": state === "loading",
2017
+ title: state === "error" ? t("markdown.couldnTOpenThisFile") : title,
2018
+ onClick: () => {
2019
+ if (state === "loading") return;
2020
+ setState("loading");
2021
+ void Promise.resolve().then(onOpen).then(
2022
+ () => setState("idle"),
2023
+ () => setState("error")
2024
+ );
2025
+ },
2026
+ children: [
2027
+ children,
2028
+ state === "loading" ? " (opening\u2026)" : state === "error" ? " (retry)" : null
2029
+ ]
2030
+ }
2031
+ );
2032
+ }
2033
+ function isSandboxHref(href) {
2034
+ return openGeniLinkScheme(href) === "sandbox";
2035
+ }
2036
+ function sandboxFileLocationFromHref(href) {
2037
+ return parseSandboxLink(href);
2038
+ }
2039
+ function sandboxFilePathFromHref(href) {
2040
+ return sandboxFileLocationFromHref(href)?.path ?? null;
2041
+ }
2042
+ function retainedImageId(src) {
2043
+ return parseRetainedFileReference(src);
2044
+ }
2045
+ function MarkdownImage({ src, alt }) {
2046
+ const t = useOpenGeniText();
2047
+ const { renderImage, suppressImages } = useContext(InteractiveContext);
2048
+ if (suppressImages)
2049
+ return /* @__PURE__ */ jsxs5("span", { "data-og-image-placeholder": "", children: [
2050
+ alt || t("markdown.image"),
2051
+ " ",
2052
+ t("markdown.previewUnavailable")
2053
+ ] });
2054
+ if (!src) return /* @__PURE__ */ jsx6("span", { children: alt ?? t("markdown.imageUnavailable") });
2055
+ if (retainedImageId(src))
2056
+ return renderImage ? /* @__PURE__ */ jsx6(LazyPart, { children: renderImage({ src, alt: alt ?? "" }) }) : /* @__PURE__ */ jsxs5("span", { children: [
2057
+ alt || t("markdown.image"),
2058
+ " ",
2059
+ t("markdown.previewUnavailable")
2060
+ ] });
2061
+ return /* @__PURE__ */ jsx6("img", { src, alt: alt ?? "", loading: "lazy", className: "my-3 max-w-full rounded-og-md" });
2062
+ }
2063
+ var markdownUrlTransform = (url, key, node) => key === "href" && node.tagName === "a" || key === "src" && node.tagName === "img" && retainedImageId(url) ? url : defaultUrlTransform(url);
2064
+ var REVEAL_LINGER_MS = 480 * MOTION_INSPECT_SCALE;
2065
+ var MARKDOWN_SETTLE_MS = 480 * MOTION_INSPECT_SCALE;
2066
+ function nodeText(node) {
2067
+ if (node == null || typeof node === "boolean") {
2068
+ return "";
2069
+ }
2070
+ if (typeof node === "string" || typeof node === "number") {
2071
+ return String(node);
2072
+ }
2073
+ if (Array.isArray(node)) {
2074
+ return node.map(nodeText).join("");
2075
+ }
2076
+ if (isValidElement(node)) {
2077
+ return nodeText(node.props.children);
2078
+ }
2079
+ return "";
2080
+ }
2081
+ function fenceLanguage(children) {
2082
+ let found = null;
2083
+ Children.forEach(children, (child) => {
2084
+ if (found || !isValidElement(child)) {
2085
+ return;
2086
+ }
2087
+ const match = /language-([a-zA-Z0-9_+-]+)/.exec(child.props.className ?? "");
2088
+ if (match?.[1]) {
2089
+ found = match[1];
2090
+ }
2091
+ });
2092
+ return found;
2093
+ }
2094
+ function fenceIsClosed(node, source) {
2095
+ const start = node?.position?.start.offset;
2096
+ const end = node?.position?.end.offset;
2097
+ const original = start !== void 0 && end !== void 0 && end <= source.length ? source.slice(start, end) : "";
2098
+ const lines = original.trimEnd().split("\n");
2099
+ const opening = lines[0]?.match(/^ {0,3}([\x60]{3,}|~{3,})/);
2100
+ const closing = lines.at(-1)?.replace(/^\s*(?:>\s*)+/, "").trim();
2101
+ return Boolean(
2102
+ opening && lines.length > 1 && closing && closing.length >= opening[1].length && [...closing].every((c) => c === opening[1][0])
2103
+ );
2104
+ }
2105
+ function InteractiveCodeBlock({ children, node }) {
2106
+ const t = useOpenGeniText();
2107
+ const { source, render, streaming } = useContext(InteractiveContext);
2108
+ const language = fenceLanguage(children);
2109
+ if (language === INTERACTIVE_ANSWER_FENCE) {
2110
+ const body = nodeText(children).replace(/\n$/, "");
2111
+ const tail = source.includes(INTERACTIVE_ANSWER_FENCE) ? trailingOpenFence(source) : null;
2112
+ const open = tail !== null && tail.trimEnd() === body.trimEnd();
2113
+ const state = !open ? "complete" : streaming ? "streaming" : "incomplete";
2114
+ return /* @__PURE__ */ jsx6(
2115
+ InteractiveAnswer,
2116
+ {
2117
+ source: body,
2118
+ state,
2119
+ renderSource: () => /* @__PURE__ */ jsx6(MarkdownCodeBlock, { children })
2120
+ }
2121
+ );
2122
+ }
2123
+ if (render && (language === "opengeni-html" || language === "opengeni-site")) {
2124
+ if (!fenceIsClosed(node, source)) {
2125
+ return /* @__PURE__ */ jsx6("div", { role: "status", "aria-live": "polite", "aria-busy": streaming === true, className: "my-3", children: streaming ? /* @__PURE__ */ jsx6(PreviewLoading, {}) : /* @__PURE__ */ jsx6(
2126
+ ActivityDisclosure,
2127
+ {
2128
+ icon: /* @__PURE__ */ jsx6(PanelsTopLeftIcon, { "aria-hidden": true, className: "size-3.5" }),
2129
+ title: t("markdown.previewIncomplete"),
2130
+ running: false,
2131
+ expandable: false,
2132
+ preview: t("markdown.generationStoppedBeforeThePreview")
2133
+ }
2134
+ ) });
2135
+ }
2136
+ return /* @__PURE__ */ jsx6(LazyPart, { children: render({
2137
+ kind: language === "opengeni-html" ? "html" : "site",
2138
+ content: nodeText(children).replace(/\n$/, "")
2139
+ }) });
2140
+ }
2141
+ return /* @__PURE__ */ jsx6(MarkdownCodeBlock, { children });
2142
+ }
2143
+ function MarkdownCodeBlock({ children }) {
2144
+ const t = useOpenGeniText();
2145
+ const code = nodeText(children).replace(/\n$/, "");
2146
+ const language = fenceLanguage(children);
2147
+ return /* @__PURE__ */ jsxs5("div", { className: "group/copy relative mt-3 first:mt-0 pointer-coarse:flex pointer-coarse:items-start pointer-coarse:rounded-og-md pointer-coarse:bg-og-surface-1/70", children: [
2148
+ /* @__PURE__ */ jsxs5("div", { className: "pointer-events-none absolute top-1.5 right-1.5 z-10 flex items-center gap-1 pointer-coarse:static pointer-coarse:order-last pointer-coarse:shrink-0 pointer-coarse:py-0 pointer-coarse:pr-0.5", children: [
2149
+ language ? /* @__PURE__ */ jsx6("span", { className: "rounded px-1 py-0.5 font-og-mono text-[10px] uppercase tracking-wide text-og-fg-subtle/80 opacity-0 transition-opacity group-hover/copy:opacity-100 pointer-coarse:opacity-70", children: language }) : null,
2150
+ /* @__PURE__ */ jsx6("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx6(CopyButton, { text: code, label: t("markdown.copyCode"), reveal: "group-hover" }) })
2151
+ ] }),
2152
+ /* @__PURE__ */ jsx6(
2153
+ "pre",
2154
+ {
2155
+ tabIndex: 0,
2156
+ className: "overflow-x-auto overflow-y-hidden rounded-og-md bg-og-surface-1/70 px-3 py-2.5 font-og-mono text-og-sm leading-5 text-og-fg-muted [scrollbar-gutter:stable] pointer-coarse:min-w-0 pointer-coarse:flex-1 pointer-coarse:bg-transparent [&>code]:block [&>code]:border-0 [&>code]:bg-transparent [&>code]:p-0 [&>code]:leading-5 [&>code]:text-inherit",
2157
+ children
2158
+ }
2159
+ )
2160
+ ] });
2161
+ }
2162
+ function MarkdownTable({ children, className, ...props }) {
2163
+ const t = useOpenGeniText();
2164
+ const wrapperRef = useRef3(null);
2165
+ const tableRef = useRef3(null);
2166
+ const layoutRef = useRef3(void 0);
2167
+ useEffect4(() => {
2168
+ const wrapper = wrapperRef.current;
2169
+ const table = tableRef.current;
2170
+ if (!wrapper?.closest("[data-og-wide-table-message]") || !table) return;
2171
+ let disposed = false;
2172
+ void import("./markdown-table-layout-3PV2UAAH.js").then(({ observeMarkdownTableLayout }) => {
2173
+ if (!disposed) layoutRef.current = observeMarkdownTableLayout(wrapper, table);
2174
+ }).catch(() => {
2175
+ });
2176
+ return () => {
2177
+ disposed = true;
2178
+ layoutRef.current?.disconnect();
2179
+ layoutRef.current = void 0;
2180
+ };
2181
+ }, []);
2182
+ useEffect4(() => {
2183
+ layoutRef.current?.measure();
2184
+ }, [children]);
2185
+ return (
2186
+ // Touch shows the copy action permanently at full touch size, so it sits
2187
+ // under the table there instead of covering the right-aligned header.
2188
+ /* @__PURE__ */ jsxs5(
2189
+ "div",
2190
+ {
2191
+ ref: wrapperRef,
2192
+ "data-og-table": "",
2193
+ className: "group/copy relative mt-3 max-w-full first:mt-0 pointer-coarse:pb-11",
2194
+ children: [
2195
+ /* @__PURE__ */ jsx6("div", { className: "pointer-events-none absolute top-0 right-0 z-10 pointer-coarse:top-auto pointer-coarse:bottom-0", children: /* @__PURE__ */ jsx6("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx6(
2196
+ CopyButton,
2197
+ {
2198
+ text: () => tableElementToTsv(tableRef.current),
2199
+ label: t("markdown.copyTable"),
2200
+ reveal: "group-hover"
2201
+ }
2202
+ ) }) }),
2203
+ /* @__PURE__ */ jsx6("div", { className: "overflow-x-auto", tabIndex: 0, children: /* @__PURE__ */ jsx6(
2204
+ "table",
2205
+ {
2206
+ ref: tableRef,
2207
+ className: cn(
2208
+ // Leading `&` only: a trailing one (`tr:last-child>&`) under the scoped
2209
+ // selector list needs `:is()`, which bundlers warn about for older targets.
2210
+ "w-full min-w-0 border-collapse text-og-base [&_tr:last-child>td]:border-b-0",
2211
+ className
2212
+ ),
2213
+ ...props,
2214
+ children
2215
+ }
2216
+ ) })
2217
+ ]
2218
+ }
2219
+ )
2220
+ );
2221
+ }
2222
+ var REMARK_PLUGINS = [remarkGfm];
2223
+ var SOFT_LINE_BREAK_REMARK_PLUGINS = [
2224
+ remarkGfm,
2225
+ remarkSoftLineBreaks
2226
+ ];
2227
+ function MarkdownImpl({
2228
+ children,
2229
+ artifactHref,
2230
+ className,
2231
+ softLineBreaks = false,
2232
+ streaming = false,
2233
+ onSandboxFile,
2234
+ renderInteractiveBlock,
2235
+ renderImage,
2236
+ resolveLink,
2237
+ renderLink,
2238
+ suppressImages
2239
+ }) {
2240
+ const revealRef = useRef3(null);
2241
+ const bodyRef = useRef3(null);
2242
+ const [, bump] = useReducer((n) => n + 1, 0);
2243
+ const [settling, setSettling] = useState4(false);
2244
+ const hadRevealRef = useRef3(false);
2245
+ const now = typeof performance !== "undefined" ? performance.now() : Date.now();
2246
+ const crystallize = (mutate) => {
2247
+ mutate();
2248
+ setSettling(true);
2249
+ bump();
2250
+ return setTimeout(() => setSettling(false), MARKDOWN_SETTLE_MS);
2251
+ };
2252
+ if (streaming && revealRef.current === null && !prefersReducedMotion()) {
2253
+ revealRef.current = createStreamReveal();
2254
+ }
2255
+ const reveal = revealRef.current;
2256
+ if (reveal !== null && streaming) {
2257
+ reveal.observe(children, now);
2258
+ }
2259
+ if (reveal !== null) {
2260
+ hadRevealRef.current = true;
2261
+ }
2262
+ const revealActive = reveal !== null && (streaming || reveal.hasActive(now));
2263
+ const secretsUi = useSecretsUi();
2264
+ const inheritedRenderer = useOpenGeniLinkRenderer();
2265
+ const linkRenderer = useMemo2(
2266
+ () => chainLinkRenderers(renderLink, inheritedRenderer) ?? void 0,
2267
+ [renderLink, inheritedRenderer]
2268
+ );
2269
+ const secretRefs = secretsUi && mayContainSecretReference(children) ? [[rehypeSecretRefs, { tokenize: secretsUi.tokenize }]] : [];
2270
+ const rehypePluginList = [
2271
+ ...linkRenderer ? [rehypeStandaloneLinks] : [],
2272
+ ...secretRefs,
2273
+ ...revealActive && reveal !== null ? [[rehypeStreamReveal, { reveal, now }]] : []
2274
+ ];
2275
+ useEffect4(() => {
2276
+ if (streaming || revealRef.current === null) {
2277
+ return;
2278
+ }
2279
+ let clearSettle;
2280
+ const timer = setTimeout(() => {
2281
+ const shouldSettle = hadRevealRef.current && !prefersReducedMotion();
2282
+ if (shouldSettle) {
2283
+ hadRevealRef.current = false;
2284
+ }
2285
+ if (shouldSettle) {
2286
+ clearSettle = crystallize(() => {
2287
+ revealRef.current = null;
2288
+ });
2289
+ } else {
2290
+ revealRef.current = null;
2291
+ bump();
2292
+ }
2293
+ }, REVEAL_LINGER_MS);
2294
+ return () => {
2295
+ clearTimeout(timer);
2296
+ if (clearSettle !== void 0) {
2297
+ clearTimeout(clearSettle);
2298
+ }
2299
+ };
2300
+ }, [streaming]);
2301
+ const wasStreamingRef = useRef3(streaming);
2302
+ useEffect4(() => {
2303
+ const ended = wasStreamingRef.current && !streaming;
2304
+ wasStreamingRef.current = streaming;
2305
+ if (!ended || revealRef.current !== null || prefersReducedMotion()) {
2306
+ return;
2307
+ }
2308
+ setSettling(true);
2309
+ const timer = setTimeout(() => setSettling(false), MARKDOWN_SETTLE_MS);
2310
+ return () => clearTimeout(timer);
2311
+ }, [streaming]);
2312
+ const parseText = streaming || revealActive ? softenStreamingMarkdown(children) : children;
2313
+ const math = useMemo2(() => prepareMathMarkdown(parseText), [parseText]);
2314
+ const mathPlugins = useMathPlugins(math.hasMath);
2315
+ if (mathPlugins) {
2316
+ rehypePluginList.push(mathPlugins.rehypeKatexPlugin);
2317
+ }
2318
+ const rehypePlugins = rehypePluginList.length > 0 ? rehypePluginList : void 0;
2319
+ const baseRemarkPlugins = softLineBreaks ? SOFT_LINE_BREAK_REMARK_PLUGINS : REMARK_PLUGINS;
2320
+ const remarkPlugins = mathPlugins ? [...baseRemarkPlugins, mathPlugins.remarkMathPlugin] : baseRemarkPlugins;
2321
+ const linkContext = useMemo2(
2322
+ () => ({ onSandboxFile, artifactHref, resolveLink, renderLink: linkRenderer }),
2323
+ [onSandboxFile, artifactHref, resolveLink, linkRenderer]
2324
+ );
2325
+ const interactiveContext = useMemo2(
2326
+ () => ({
2327
+ source: children,
2328
+ streaming,
2329
+ ...renderInteractiveBlock ? { render: renderInteractiveBlock } : {},
2330
+ ...renderImage ? { renderImage } : {},
2331
+ ...suppressImages ? { suppressImages } : {}
2332
+ }),
2333
+ [children, streaming, renderInteractiveBlock, renderImage, suppressImages]
2334
+ );
2335
+ return /* @__PURE__ */ jsx6(MarkdownLinkContext.Provider, { value: linkContext, children: /* @__PURE__ */ jsx6(InteractiveContext.Provider, { value: interactiveContext, children: /* @__PURE__ */ jsx6(TooltipProvider, { delayDuration: 400, children: /* @__PURE__ */ jsx6(
2336
+ "div",
2337
+ {
2338
+ ref: bodyRef,
2339
+ className: cn(
2340
+ "og-markdown-body min-w-0 break-words",
2341
+ settling && "og-markdown-settle",
2342
+ className
2343
+ ),
2344
+ children: /* @__PURE__ */ jsx6(
2345
+ ReactMarkdown,
2346
+ {
2347
+ remarkPlugins,
2348
+ rehypePlugins,
2349
+ components: markdownComponents,
2350
+ urlTransform: markdownUrlTransform,
2351
+ children: mathPlugins ? math.text : parseText
2352
+ }
2353
+ )
2354
+ }
2355
+ ) }) }) });
2356
+ }
2357
+ var INLINE_MARKDOWN_ELEMENTS = ["a", "br", "code", "del", "em", "span", "strong"];
2358
+ var inlineMarkdownComponents = {
2359
+ a: markdownComponents.a,
2360
+ // Code follows the surrounding text size (help text and options are smaller).
2361
+ code: ({ children, className: _className, node: _node, ...props }) => /* @__PURE__ */ jsx6(
2362
+ "code",
2363
+ {
2364
+ className: "rounded-og-xs bg-og-surface-2 px-1 py-0.5 font-og-mono text-[0.9em] text-og-fg",
2365
+ ...props,
2366
+ children
2367
+ }
2368
+ ),
2369
+ em: baseComponents.em,
2370
+ span: MarkdownSpan,
2371
+ strong: baseComponents.strong
2372
+ };
2373
+ var INLINE_FLOW_BREAK = [[rehypeInlineFlow, { separator: "break" }]];
2374
+ var INLINE_FLOW_SPACE = [[rehypeInlineFlow, { separator: "space" }]];
2375
+ var InlineMarkdown = memo2(function InlineMarkdown2({
2376
+ children,
2377
+ singleLine = false
2378
+ }) {
2379
+ const secretsUi = useSecretsUi();
2380
+ const renderLink = useOpenGeniLinkRenderer() ?? void 0;
2381
+ const linkContext = useMemo2(() => ({ renderLink, inline: true }), [renderLink]);
2382
+ const rehypePlugins = [
2383
+ ...singleLine ? INLINE_FLOW_SPACE : INLINE_FLOW_BREAK,
2384
+ ...secretsUi && mayContainSecretReference(children) ? [[rehypeSecretRefs, { tokenize: secretsUi.tokenize }]] : []
2385
+ ];
2386
+ return /* @__PURE__ */ jsx6(MarkdownLinkContext.Provider, { value: linkContext, children: /* @__PURE__ */ jsx6(
2387
+ ReactMarkdown,
2388
+ {
2389
+ remarkPlugins: singleLine ? REMARK_PLUGINS : SOFT_LINE_BREAK_REMARK_PLUGINS,
2390
+ rehypePlugins,
2391
+ components: inlineMarkdownComponents,
2392
+ urlTransform: markdownUrlTransform,
2393
+ allowedElements: INLINE_MARKDOWN_ELEMENTS,
2394
+ unwrapDisallowed: true,
2395
+ children
2396
+ }
2397
+ ) });
2398
+ });
2399
+ var Markdown = memo2(function SearchableMarkdown(props) {
2400
+ const t = useOpenGeniText();
2401
+ const [retained, setRetained] = useState4(
2402
+ null
2403
+ );
2404
+ if (props.searchTarget && (retained?.target !== props.searchTarget || retained.text !== props.children)) {
2405
+ setRetained({ text: props.children, target: props.searchTarget });
2406
+ }
2407
+ const target = props.searchTarget ?? (retained?.text === props.children ? retained.target : null);
2408
+ if (!target) return /* @__PURE__ */ jsx6(MarkdownImpl, { ...props });
2409
+ const offset = searchMatchOffset(props.children, target);
2410
+ if (offset < 0)
2411
+ return props.searchTarget ? /* @__PURE__ */ jsx6("div", { role: "status", children: t("markdown.thisMatchIsNoLonger") }) : /* @__PURE__ */ jsx6(MarkdownImpl, { ...props });
2412
+ let start = Math.max(0, offset - 240);
2413
+ let end = Math.min(props.children.length, offset + target.query.length + 240);
2414
+ if (start > 0 && /[\uDC00-\uDFFF]/.test(props.children[start])) start--;
2415
+ if (end < props.children.length && /[\uDC00-\uDFFF]/.test(props.children[end])) end++;
2416
+ const MatchTag = props.searchTarget ? "mark" : "span";
2417
+ return /* @__PURE__ */ jsxs5("div", { className: cn("og-markdown-body min-w-0 break-words", props.className), children: [
2418
+ /* @__PURE__ */ jsxs5("div", { "data-og-annotation-chrome": "", className: "text-xs opacity-70", children: [
2419
+ t("markdown.matchInMessageSourceExcerpt"),
2420
+ /* @__PURE__ */ jsx6(
2421
+ "button",
2422
+ {
2423
+ type: "button",
2424
+ disabled: !!props.searchTarget,
2425
+ title: props.searchTarget ? t("markdown.closeFindToShowThe") : void 0,
2426
+ className: "ml-2 inline-flex min-h-7 items-center rounded-og-sm px-1.5 text-og-xs font-medium text-og-fg-muted outline-hidden hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent/45 pointer-coarse:min-h-11 disabled:opacity-50",
2427
+ onClick: () => setRetained(null),
2428
+ children: t("markdown.showFormattedMessage")
2429
+ }
2430
+ )
2431
+ ] }),
2432
+ /* @__PURE__ */ jsxs5("div", { style: { whiteSpace: "pre-wrap", overflowWrap: "anywhere" }, children: [
2433
+ start > 0 ? "\u2026" : "",
2434
+ props.children.slice(start, offset),
2435
+ /* @__PURE__ */ jsx6(
2436
+ MatchTag,
2437
+ {
2438
+ "data-og-search-occurrence": target.occurrence ?? 0,
2439
+ "data-og-search-sequence": target.sequence,
2440
+ "data-og-search-query": target.query,
2441
+ "data-og-search-offset": offset,
2442
+ children: props.children.slice(offset, offset + target.query.length)
2443
+ }
2444
+ ),
2445
+ props.children.slice(offset + target.query.length, end),
2446
+ end < props.children.length ? "\u2026" : ""
2447
+ ] })
2448
+ ] });
2449
+ });
2450
+
2451
+ export {
2452
+ MOTION_INSPECT_SCALE,
2453
+ CopyButton,
2454
+ CopyHoverFrame,
2455
+ decisionCardClass,
2456
+ decisionCardPad,
2457
+ DecisionMark,
2458
+ DecisionActions,
2459
+ decisionButtonClass,
2460
+ DecisionButton,
2461
+ InteractiveAnswer,
2462
+ LazyPart,
2463
+ sandboxFileLocationFromHref,
2464
+ sandboxFilePathFromHref,
2465
+ retainedImageId,
2466
+ InlineMarkdown,
2467
+ Markdown
2468
+ };
2469
+ //# sourceMappingURL=chunk-JEA3QDX7.js.map