@histoire/app 1.0.0-alpha.5 → 1.0.0-beta.2

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 (1623) hide show
  1. package/dist/app/style/README.md +167 -0
  2. package/dist/app/style/controls.css +28 -0
  3. package/dist/app/style/density.css +38 -0
  4. package/dist/app/style/document.pcss +60 -0
  5. package/dist/app/style/fonts.pcss +1 -0
  6. package/dist/app/style/main.css +25 -0
  7. package/dist/app/style/theme.css +109 -0
  8. package/dist/app/style/tokens.pcss +135 -0
  9. package/dist/bundle-embed-dev.js +6 -0
  10. package/dist/bundle-embed.js +6 -0
  11. package/dist/bundle-main-dev.js +1 -1
  12. package/dist/bundle-main.js +2 -1
  13. package/dist/bundle-sandbox-dev.js +3 -2
  14. package/dist/bundle-sandbox.js +3 -2
  15. package/dist/bundled/api.js +1 -12
  16. package/dist/bundled/app.css +183 -75
  17. package/dist/bundled/chunks/AboutSection-D3IIVsiV.js +42 -0
  18. package/dist/bundled/chunks/AgentCursor-Cg5SLa2H.js +124 -0
  19. package/dist/bundled/chunks/AgentLogo-C2uXqX04.js +69 -0
  20. package/dist/bundled/chunks/AgentPlanApproval-D4hnGlYs.js +693 -0
  21. package/dist/bundled/chunks/AgentsSection-CJGS9C2q.js +1126 -0
  22. package/dist/bundled/chunks/AiPanel-B9QWRuSg.js +1130 -0
  23. package/dist/bundled/chunks/AppearanceSection-DMjmDr1Y.js +306 -0
  24. package/dist/bundled/chunks/BasePopover-CQQ8wKev.js +307 -0
  25. package/dist/bundled/chunks/CommentsCanvasOverlay-UX-oYgnx.js +955 -0
  26. package/dist/bundled/chunks/DevBrowseStatus-D2rIG8uC.js +48 -0
  27. package/dist/bundled/chunks/DocsTab-BR3BktyF.js +31 -0
  28. package/dist/bundled/chunks/EmbedDialog-B70Zo-PZ.js +475 -0
  29. package/dist/bundled/chunks/EventsTab-BP0hCGqL.js +37 -0
  30. package/dist/bundled/chunks/GeneralSection-CT_-32qT.js +84 -0
  31. package/dist/bundled/chunks/HomeCard-JYU5jbs7.js +24 -0
  32. package/dist/bundled/chunks/InspectionPanel-C6kUdJj9.js +584 -0
  33. package/dist/bundled/chunks/InspectorGuideLink-Bqlz1aaY.js +28 -0
  34. package/dist/bundled/chunks/MarkdownPage-DD7XyGkq.js +349 -0
  35. package/dist/bundled/chunks/MarketplaceUpdateBody-B1cn_zeo.js +300 -0
  36. package/dist/bundled/chunks/MarketplaceView-eDPLtc_x.js +2769 -0
  37. package/dist/bundled/chunks/MatrixInspector-eIr_N5eH.js +893 -0
  38. package/dist/bundled/chunks/MatrixView-CDmN-Kl9.js +604 -0
  39. package/dist/bundled/chunks/MatrixVisualActions-Cx3QzDTD.js +70 -0
  40. package/dist/bundled/chunks/McpActivity-CiK3jUTY.js +136 -0
  41. package/dist/bundled/chunks/McpSection-DRGzPGXO.js +76 -0
  42. package/dist/bundled/chunks/MenuItem-BYRJG5YA.js +59 -0
  43. package/dist/bundled/chunks/NeedsAttention-C5zjd6RT.js +77 -0
  44. package/dist/bundled/chunks/PermissionPrompt-i5VbZCCJ.js +128 -0
  45. package/dist/bundled/chunks/PluginTile-CfplGy7m.js +97 -0
  46. package/dist/bundled/chunks/PluginsSection-B3ZWAjrk.js +855 -0
  47. package/dist/bundled/chunks/PopoverDivider-vLxqs_KP.js +13 -0
  48. package/dist/bundled/chunks/PopoverTitle-zikHVKQE.js +12 -0
  49. package/dist/bundled/chunks/SaveToProject-F-tQZKCG.js +206 -0
  50. package/dist/bundled/chunks/ScreenshotPopover-DWcV_NAf.js +725 -0
  51. package/dist/bundled/chunks/SettingsChoices-BoESgi62.js +19 -0
  52. package/dist/bundled/chunks/SettingsPage-BvT1FOl7.js +174 -0
  53. package/dist/bundled/chunks/SettingsRow-C4lda-j7.js +22 -0
  54. package/dist/bundled/chunks/ShortcutsSection-D3-4e5Ug.js +43 -0
  55. package/dist/bundled/chunks/StoryInspector-BJKzoeHc.js +1194 -0
  56. package/dist/bundled/chunks/TestsPanel-CpBld3wM.js +1264 -0
  57. package/dist/bundled/chunks/TestsSection-CEXW49Ge.js +33 -0
  58. package/dist/bundled/chunks/TestsTab-B-ZNDgGi.js +50 -0
  59. package/dist/bundled/chunks/ThreadMessage-CPRLVXXQ.js +2426 -0
  60. package/dist/bundled/chunks/ToolbarPopover-Nd-us4Fg.js +276 -0
  61. package/dist/bundled/chunks/ViewportsSection-3EWu6WSc.js +203 -0
  62. package/dist/bundled/chunks/VisualViewer-DV5mNFT8.js +888 -0
  63. package/dist/bundled/chunks/WorkbenchErrorState-D97EoY89.js +48 -0
  64. package/dist/bundled/chunks/WorkbenchGuideLink-COO1XNvp.js +26 -0
  65. package/dist/bundled/chunks/WorkbenchLoadingState-CLA8IBL6.js +50 -0
  66. package/dist/bundled/chunks/WorkbenchPaneHeader-DBuiBHTT.js +15 -0
  67. package/dist/bundled/chunks/WorkbenchPaneList-cOz9-XSR.js +13 -0
  68. package/dist/bundled/chunks/WorkbenchPaneToolbar-DEYUs_bD.js +12 -0
  69. package/dist/bundled/chunks/WorkbenchPanelAction-Cl68QrDs.js +96 -0
  70. package/dist/bundled/chunks/WorkbenchVirtualList-CUTamRgO.js +67 -0
  71. package/dist/bundled/chunks/agents-Cnoa7KRp.js +318 -0
  72. package/dist/bundled/chunks/agents-http-BjeGJFYE.js +27 -0
  73. package/dist/bundled/chunks/ai-threads-3QfVXZ43.js +402 -0
  74. package/dist/bundled/chunks/background-CG5-SPiv.js +70 -0
  75. package/dist/bundled/chunks/canvas-settings-EP62RnvB.js +101 -0
  76. package/dist/bundled/chunks/capture-SFV9pF9b.js +20 -0
  77. package/dist/bundled/chunks/catalog-UvMhynPX.js +39 -0
  78. package/dist/bundled/chunks/catalog-target-BN1NsBKA.js +9 -0
  79. package/dist/bundled/chunks/color-scheme-mhmCnofm.js +96 -0
  80. package/dist/bundled/chunks/content-view-Bpn8As7f.js +15 -0
  81. package/dist/bundled/chunks/context-menu-Cw2xQKsM.js +121 -0
  82. package/dist/bundled/chunks/controls-DpdwHd4q.js +23264 -0
  83. package/dist/bundled/chunks/controls-view-COcHf8Pm.js +358 -0
  84. package/dist/bundled/chunks/events-Dhp302xE.js +30 -0
  85. package/dist/bundled/chunks/explorer-view-5gTgnjcf.js +283 -0
  86. package/dist/bundled/chunks/extensions-DUXM9uEy.js +6274 -0
  87. package/dist/bundled/chunks/extensions-DY0LLiE_.js +42 -0
  88. package/dist/bundled/chunks/frame-ledger-BHZ0nJjD.js +3290 -0
  89. package/dist/bundled/chunks/frame-owner-Di8_BWb0.js +22 -0
  90. package/dist/bundled/chunks/frame-screenshot-D9R_xDns.js +84 -0
  91. package/dist/bundled/chunks/http-json-B3BE0tJj.js +37 -0
  92. package/dist/bundled/chunks/icons-Bd36WZPu.js +128 -0
  93. package/dist/bundled/chunks/internal-BOzwU0KU.js +49 -0
  94. package/dist/bundled/chunks/keyboard-DWsKh2rn.js +93 -0
  95. package/dist/bundled/chunks/local-mount-CCa2jcqi.js +198 -0
  96. package/dist/bundled/chunks/marketplace-DKeNfni-.js +945 -0
  97. package/dist/bundled/chunks/matrix-BPPIGW-q.js +770 -0
  98. package/dist/bundled/chunks/mcp-CbWZxLuC.js +212 -0
  99. package/dist/bundled/chunks/measure-owner-BJxCiOYZ.js +36 -0
  100. package/dist/bundled/chunks/measurement-DfNeNMZe.js +237 -0
  101. package/dist/bundled/chunks/model-DhvdMZzS.js +744 -0
  102. package/dist/bundled/chunks/navigation-view-GU5-aPWL.js +20 -0
  103. package/dist/bundled/chunks/ownership-004rrffQ.js +48 -0
  104. package/dist/bundled/chunks/presets-config-CfdpjV2k.js +173 -0
  105. package/dist/bundled/chunks/project-config-Di_IAjjN.js +190 -0
  106. package/dist/bundled/chunks/purify.es-DhaLjfsW.js +2463 -0
  107. package/dist/bundled/chunks/rolldown-runtime-D8jQpDG7.js +12 -0
  108. package/dist/bundled/chunks/sandbox-shared-CwPQj187.js +1178 -0
  109. package/dist/bundled/chunks/screenshot-file-5sIH6A7o.js +22 -0
  110. package/dist/bundled/chunks/screenshot-targets-1TJFnTQJ.js +21 -0
  111. package/dist/bundled/chunks/selection-DQJWdqhl.js +35 -0
  112. package/dist/bundled/chunks/settings-B8QvkMcW.js +173 -0
  113. package/dist/bundled/chunks/settings-DC0gilMg.js +35 -0
  114. package/dist/bundled/chunks/shell-VHlsl1Wj.js +15 -0
  115. package/dist/bundled/chunks/shell-extensions-BRqMTtWV.js +29 -0
  116. package/dist/bundled/chunks/shell-registry-dTiCKXFh.js +66 -0
  117. package/dist/bundled/chunks/shortcuts-BPetXlYX.js +84 -0
  118. package/dist/bundled/chunks/src-BazVZNon.js +445 -0
  119. package/dist/bundled/chunks/status-C0sxyPzj.js +48 -0
  120. package/dist/bundled/chunks/tests-view-B9J9Gvpt.js +33 -0
  121. package/dist/bundled/chunks/ui-channel-BPYj8uw2.js +36 -0
  122. package/dist/bundled/chunks/use-install-plan-ChZg4Xyq.js +184 -0
  123. package/dist/bundled/chunks/visual-CId9zv09.js +611 -0
  124. package/dist/bundled/chunks/workbench-plugin-id-BgjbPURy.js +7 -0
  125. package/dist/bundled/controls.js +1 -0
  126. package/dist/bundled/index.js +15290 -33
  127. package/dist/bundled/sandbox.js +1 -87
  128. package/dist/embed/EmbedDocument.vue.js +4 -0
  129. package/dist/embed/EmbedDocument.vue_vue_type_script_setup_true_lang.js +47 -0
  130. package/dist/embed/_virtual/_plugin-vue_export-helper.js +7 -0
  131. package/dist/embed/_virtual/_rolldown/runtime.js +12 -0
  132. package/dist/embed/adapters/channels.d.ts +34 -0
  133. package/dist/embed/adapters/channels.js +105 -0
  134. package/dist/embed/adapters/content-surface.d.ts +1 -0
  135. package/dist/embed/adapters/content-surface.js +9 -0
  136. package/dist/embed/adapters/content-view.d.ts +6 -0
  137. package/dist/embed/adapters/content-view.js +16 -0
  138. package/dist/embed/adapters/controls-replica.d.ts +10 -0
  139. package/dist/embed/adapters/controls-replica.js +294 -0
  140. package/dist/embed/adapters/controls-view.d.ts +7 -0
  141. package/dist/embed/adapters/controls-view.js +69 -0
  142. package/dist/embed/adapters/controls.d.ts +1 -0
  143. package/dist/embed/adapters/controls.js +8 -0
  144. package/dist/embed/adapters/document.d.ts +24 -0
  145. package/dist/embed/adapters/document.js +48 -0
  146. package/dist/embed/adapters/explorer-session.d.ts +13 -0
  147. package/dist/embed/adapters/explorer-session.js +203 -0
  148. package/dist/embed/adapters/explorer-view.d.ts +9 -0
  149. package/dist/embed/adapters/explorer-view.js +83 -0
  150. package/dist/embed/adapters/explorer.d.ts +1 -0
  151. package/dist/embed/adapters/explorer.js +9 -0
  152. package/dist/embed/adapters/geometry.d.ts +1 -0
  153. package/dist/embed/adapters/geometry.js +1 -0
  154. package/dist/embed/adapters/layout.d.ts +14 -0
  155. package/dist/embed/adapters/layout.js +109 -0
  156. package/dist/embed/adapters/lazy-surface.d.ts +3 -0
  157. package/dist/embed/adapters/lazy-surface.js +52 -0
  158. package/dist/embed/adapters/local-mount.d.ts +3 -0
  159. package/dist/embed/adapters/local-mount.js +179 -0
  160. package/dist/embed/adapters/navigation-surface.d.ts +1 -0
  161. package/dist/embed/adapters/navigation-surface.js +14 -0
  162. package/dist/embed/adapters/navigation-view.d.ts +7 -0
  163. package/dist/embed/adapters/navigation-view.js +23 -0
  164. package/dist/embed/adapters/preview.d.ts +1 -0
  165. package/dist/embed/adapters/preview.js +5 -0
  166. package/dist/embed/adapters/runtime-frame.d.ts +14 -0
  167. package/dist/embed/adapters/runtime-frame.js +470 -0
  168. package/dist/embed/adapters/runtime-layout.d.ts +23 -0
  169. package/dist/embed/adapters/runtime-layout.js +44 -0
  170. package/dist/embed/adapters/runtime-loading.d.ts +30 -0
  171. package/dist/embed/adapters/runtime-loading.js +57 -0
  172. package/dist/embed/adapters/runtime-readiness.d.ts +14 -0
  173. package/dist/embed/adapters/runtime-readiness.js +53 -0
  174. package/dist/embed/adapters/runtime-requests.d.ts +12 -0
  175. package/dist/embed/adapters/runtime-requests.js +114 -0
  176. package/dist/embed/adapters/runtime-revision.d.ts +9 -0
  177. package/dist/embed/adapters/runtime-revision.js +29 -0
  178. package/dist/embed/adapters/sandbox-urls.d.ts +22 -0
  179. package/dist/embed/adapters/sandbox-urls.js +40 -0
  180. package/dist/embed/adapters/stale-preview.d.ts +14 -0
  181. package/dist/embed/adapters/stale-preview.js +56 -0
  182. package/dist/embed/adapters/state-presets.d.ts +28 -0
  183. package/dist/embed/adapters/state-presets.js +108 -0
  184. package/dist/embed/adapters/state.d.ts +11 -0
  185. package/dist/embed/adapters/state.js +29 -0
  186. package/dist/embed/adapters/test-workers.d.ts +30 -0
  187. package/dist/embed/adapters/test-workers.js +133 -0
  188. package/dist/embed/adapters/tests-surface.d.ts +1 -0
  189. package/dist/embed/adapters/tests-surface.js +9 -0
  190. package/dist/embed/adapters/tests-view.d.ts +7 -0
  191. package/dist/embed/adapters/tests-view.js +34 -0
  192. package/dist/embed/adapters/tests.d.ts +8 -0
  193. package/dist/embed/adapters/tests.js +21 -0
  194. package/dist/embed/app/standalone/presets.js +67 -0
  195. package/dist/embed/app.css +175 -0
  196. package/dist/embed/capabilities.d.ts +5 -0
  197. package/dist/embed/capabilities.js +23 -0
  198. package/dist/embed/color-scheme.d.ts +6 -0
  199. package/dist/embed/color-scheme.js +10 -0
  200. package/dist/embed/commands.d.ts +9 -0
  201. package/dist/embed/commands.js +118 -0
  202. package/dist/embed/descriptor.d.ts +7 -0
  203. package/dist/embed/descriptor.js +47 -0
  204. package/dist/embed/direct.d.ts +4 -0
  205. package/dist/embed/direct.js +55 -0
  206. package/dist/embed/document.css +11 -0
  207. package/dist/embed/fetch.d.ts +4 -0
  208. package/dist/embed/fetch.js +66 -0
  209. package/dist/embed/handshake.d.ts +7 -0
  210. package/dist/embed/handshake.js +171 -0
  211. package/dist/embed/index.d.ts +14 -0
  212. package/dist/embed/index.js +36 -0
  213. package/dist/embed/lifecycle.d.ts +7 -0
  214. package/dist/embed/lifecycle.js +32 -0
  215. package/dist/embed/node_modules/.pnpm/@codemirror_commands@6.10.1/node_modules/@codemirror/commands/dist/index.js +1567 -0
  216. package/dist/embed/node_modules/.pnpm/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +28 -0
  217. package/dist/embed/node_modules/.pnpm/@codemirror_language@6.12.1/node_modules/@codemirror/language/dist/index.js +1737 -0
  218. package/dist/embed/node_modules/.pnpm/@codemirror_lint@6.9.2/node_modules/@codemirror/lint/dist/index.js +559 -0
  219. package/dist/embed/node_modules/.pnpm/@codemirror_state@6.5.3/node_modules/@codemirror/state/dist/index.js +3351 -0
  220. package/dist/embed/node_modules/.pnpm/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +119 -0
  221. package/dist/embed/node_modules/.pnpm/@codemirror_view@6.39.9/node_modules/@codemirror/view/dist/index.js +8856 -0
  222. package/dist/embed/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +1521 -0
  223. package/dist/embed/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +874 -0
  224. package/dist/embed/node_modules/.pnpm/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.js +52 -0
  225. package/dist/embed/node_modules/.pnpm/@lezer_lr@1.4.7/node_modules/@lezer/lr/dist/index.js +1446 -0
  226. package/dist/embed/node_modules/.pnpm/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js +71 -0
  227. package/dist/embed/node_modules/.pnpm/@shikijs_core@3.21.0/node_modules/@shikijs/core/dist/index.js +1775 -0
  228. package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/index.js +387 -0
  229. package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +6 -0
  230. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/abap.js +2 -0
  231. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -0
  232. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ada.js +2 -0
  233. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-expression.js +2 -0
  234. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-html.js +16 -0
  235. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -0
  236. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-template.js +10 -0
  237. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -0
  238. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template-blocks.js +10 -0
  239. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template.js +5 -0
  240. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-ts.js +18 -0
  241. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apache.js +2 -0
  242. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apex.js +2 -0
  243. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apl.js +16 -0
  244. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/applescript.js +2 -0
  245. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ara.js +2 -0
  246. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asciidoc.js +2 -0
  247. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asm.js +2 -0
  248. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/astro.js +18 -0
  249. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/awk.js +2 -0
  250. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ballerina.js +2 -0
  251. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bat.js +2 -0
  252. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/beancount.js +2 -0
  253. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/berry.js +2 -0
  254. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bibtex.js +2 -0
  255. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bicep.js +2 -0
  256. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/blade.js +20 -0
  257. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bsl.js +5 -0
  258. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c.js +2 -0
  259. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c3.js +2 -0
  260. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cadence.js +2 -0
  261. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cairo.js +5 -0
  262. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clarity.js +2 -0
  263. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clojure.js +2 -0
  264. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cmake.js +2 -0
  265. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cobol.js +10 -0
  266. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeowners.js +2 -0
  267. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeql.js +2 -0
  268. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coffee.js +5 -0
  269. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/common-lisp.js +2 -0
  270. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coq.js +2 -0
  271. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp-macro.js +12 -0
  272. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp.js +14 -0
  273. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/crystal.js +18 -0
  274. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csharp.js +2 -0
  275. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/css.js +2 -0
  276. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csv.js +2 -0
  277. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cue.js +2 -0
  278. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cypher.js +2 -0
  279. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/d.js +2 -0
  280. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dart.js +2 -0
  281. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dax.js +2 -0
  282. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/desktop.js +2 -0
  283. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/diff.js +2 -0
  284. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/docker.js +2 -0
  285. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dotenv.js +2 -0
  286. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dream-maker.js +2 -0
  287. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/edge.js +12 -0
  288. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elixir.js +5 -0
  289. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elm.js +5 -0
  290. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -0
  291. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erb.js +10 -0
  292. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erlang.js +5 -0
  293. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-css.js +12 -0
  294. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-glsl.js +12 -0
  295. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-html.js +12 -0
  296. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-sql.js +10 -0
  297. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -0
  298. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fennel.js +2 -0
  299. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fish.js +2 -0
  300. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fluent.js +2 -0
  301. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -0
  302. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -0
  303. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fsharp.js +5 -0
  304. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdresource.js +10 -0
  305. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdscript.js +2 -0
  306. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdshader.js +2 -0
  307. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/genie.js +2 -0
  308. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gherkin.js +2 -0
  309. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-commit.js +5 -0
  310. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-rebase.js +5 -0
  311. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gleam.js +2 -0
  312. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-js.js +14 -0
  313. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-ts.js +14 -0
  314. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glsl.js +5 -0
  315. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gn.js +2 -0
  316. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gnuplot.js +2 -0
  317. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/go.js +2 -0
  318. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/graphql.js +14 -0
  319. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/groovy.js +2 -0
  320. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hack.js +10 -0
  321. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haml.js +10 -0
  322. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/handlebars.js +14 -0
  323. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haskell.js +2 -0
  324. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haxe.js +2 -0
  325. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hcl.js +2 -0
  326. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hjson.js +2 -0
  327. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hlsl.js +2 -0
  328. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html-derivative.js +5 -0
  329. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html.js +10 -0
  330. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/http.js +14 -0
  331. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hurl.js +12 -0
  332. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hxml.js +5 -0
  333. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hy.js +2 -0
  334. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/imba.js +2 -0
  335. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ini.js +2 -0
  336. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/java.js +2 -0
  337. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/javascript.js +2 -0
  338. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja-html.js +5 -0
  339. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja.js +5 -0
  340. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jison.js +5 -0
  341. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json.js +2 -0
  342. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json5.js +2 -0
  343. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonc.js +2 -0
  344. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonl.js +2 -0
  345. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonnet.js +2 -0
  346. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jssm.js +2 -0
  347. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsx.js +2 -0
  348. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/julia.js +16 -0
  349. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kdl.js +2 -0
  350. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kotlin.js +2 -0
  351. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kusto.js +2 -0
  352. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/latex.js +5 -0
  353. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lean.js +2 -0
  354. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/less.js +2 -0
  355. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/liquid.js +14 -0
  356. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/llvm.js +2 -0
  357. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/log.js +2 -0
  358. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/logo.js +2 -0
  359. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lua.js +5 -0
  360. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/luau.js +2 -0
  361. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/make.js +2 -0
  362. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -0
  363. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -0
  364. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown.js +2 -0
  365. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/marko.js +14 -0
  366. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/matlab.js +2 -0
  367. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdc.js +12 -0
  368. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdx.js +2 -0
  369. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mermaid.js +2 -0
  370. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mipsasm.js +2 -0
  371. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mojo.js +2 -0
  372. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/moonbit.js +2 -0
  373. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/move.js +2 -0
  374. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/narrat.js +2 -0
  375. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nextflow.js +2 -0
  376. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nginx.js +5 -0
  377. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nim.js +20 -0
  378. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nix.js +5 -0
  379. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nushell.js +2 -0
  380. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-c.js +2 -0
  381. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -0
  382. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ocaml.js +2 -0
  383. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/openscad.js +2 -0
  384. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pascal.js +2 -0
  385. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/perl.js +16 -0
  386. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/php.js +18 -0
  387. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pkl.js +2 -0
  388. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/plsql.js +2 -0
  389. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/po.js +2 -0
  390. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/polar.js +2 -0
  391. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/postcss.js +2 -0
  392. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powerquery.js +2 -0
  393. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powershell.js +2 -0
  394. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prisma.js +2 -0
  395. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prolog.js +2 -0
  396. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/proto.js +2 -0
  397. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pug.js +12 -0
  398. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/puppet.js +2 -0
  399. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/purescript.js +2 -0
  400. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/python.js +2 -0
  401. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qml.js +5 -0
  402. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qmldir.js +2 -0
  403. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qss.js +2 -0
  404. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/r.js +2 -0
  405. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/racket.js +2 -0
  406. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/raku.js +2 -0
  407. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/razor.js +10 -0
  408. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/reg.js +2 -0
  409. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/regexp.js +2 -0
  410. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rel.js +2 -0
  411. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/riscv.js +2 -0
  412. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rosmsg.js +2 -0
  413. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rst.js +22 -0
  414. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ruby.js +30 -0
  415. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rust.js +2 -0
  416. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sas.js +5 -0
  417. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sass.js +2 -0
  418. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scala.js +2 -0
  419. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scheme.js +2 -0
  420. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scss.js +5 -0
  421. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sdbl.js +2 -0
  422. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shaderlab.js +5 -0
  423. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellscript.js +2 -0
  424. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellsession.js +5 -0
  425. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/smalltalk.js +2 -0
  426. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/solidity.js +2 -0
  427. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/soy.js +5 -0
  428. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sparql.js +5 -0
  429. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/splunk.js +2 -0
  430. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sql.js +2 -0
  431. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ssh-config.js +2 -0
  432. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stata.js +5 -0
  433. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stylus.js +2 -0
  434. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/svelte.js +14 -0
  435. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/swift.js +2 -0
  436. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/system-verilog.js +2 -0
  437. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/systemd.js +2 -0
  438. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/talonscript.js +2 -0
  439. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tasl.js +2 -0
  440. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tcl.js +2 -0
  441. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/templ.js +12 -0
  442. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/terraform.js +2 -0
  443. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tex.js +5 -0
  444. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/toml.js +2 -0
  445. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ts-tags.js +18 -0
  446. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsv.js +2 -0
  447. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsx.js +2 -0
  448. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/turtle.js +2 -0
  449. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/twig.js +18 -0
  450. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typescript.js +2 -0
  451. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typespec.js +2 -0
  452. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typst.js +2 -0
  453. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/v.js +2 -0
  454. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vala.js +2 -0
  455. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vb.js +2 -0
  456. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/verilog.js +2 -0
  457. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vhdl.js +2 -0
  458. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/viml.js +2 -0
  459. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-directives.js +2 -0
  460. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-html.js +5 -0
  461. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -0
  462. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -0
  463. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-vine.js +18 -0
  464. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue.js +26 -0
  465. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vyper.js +2 -0
  466. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wasm.js +2 -0
  467. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wenyan.js +2 -0
  468. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wgsl.js +2 -0
  469. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wikitext.js +2 -0
  470. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wit.js +2 -0
  471. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wolfram.js +2 -0
  472. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
  473. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xsl.js +5 -0
  474. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/yaml.js +2 -0
  475. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zenscript.js +2 -0
  476. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zig.js +2 -0
  477. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/andromeeda.js +3 -0
  478. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/aurora-x.js +3 -0
  479. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/ayu-dark.js +3 -0
  480. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +3 -0
  481. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-latte.js +3 -0
  482. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +3 -0
  483. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +3 -0
  484. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dark-plus.js +3 -0
  485. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula-soft.js +3 -0
  486. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula.js +3 -0
  487. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-dark.js +3 -0
  488. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-light.js +3 -0
  489. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-default.js +3 -0
  490. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +3 -0
  491. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +3 -0
  492. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark.js +3 -0
  493. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-default.js +3 -0
  494. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +3 -0
  495. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light.js +3 -0
  496. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +3 -0
  497. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +3 -0
  498. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +3 -0
  499. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +3 -0
  500. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +3 -0
  501. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +3 -0
  502. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/houston.js +3 -0
  503. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +3 -0
  504. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +3 -0
  505. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-wave.js +3 -0
  506. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/laserwave.js +3 -0
  507. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/light-plus.js +3 -0
  508. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-darker.js +3 -0
  509. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-lighter.js +3 -0
  510. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-ocean.js +3 -0
  511. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-palenight.js +3 -0
  512. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme.js +3 -0
  513. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-dark.js +3 -0
  514. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-light.js +3 -0
  515. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/monokai.js +3 -0
  516. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/night-owl.js +3 -0
  517. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/nord.js +3 -0
  518. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-dark-pro.js +3 -0
  519. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-light.js +3 -0
  520. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/plastic.js +3 -0
  521. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/poimandres.js +3 -0
  522. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/red.js +3 -0
  523. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +3 -0
  524. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-moon.js +3 -0
  525. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine.js +3 -0
  526. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-dark.js +3 -0
  527. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-ochin.js +3 -0
  528. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/snazzy-light.js +3 -0
  529. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-dark.js +3 -0
  530. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-light.js +3 -0
  531. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/synthwave-84.js +3 -0
  532. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/tokyo-night.js +3 -0
  533. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vesper.js +3 -0
  534. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-black.js +3 -0
  535. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-dark.js +3 -0
  536. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-light.js +3 -0
  537. package/dist/embed/node_modules/.pnpm/@shikijs_types@3.21.0/node_modules/@shikijs/types/dist/index.js +8 -0
  538. package/dist/embed/node_modules/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +2320 -0
  539. package/dist/embed/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +23 -0
  540. package/dist/embed/node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +261 -0
  541. package/dist/embed/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +115 -0
  542. package/dist/embed/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +16 -0
  543. package/dist/embed/node_modules/.pnpm/crelt@1.0.6/node_modules/crelt/index.js +23 -0
  544. package/dist/embed/node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.js +2463 -0
  545. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +33 -0
  546. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +23 -0
  547. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +125 -0
  548. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +50 -0
  549. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +25 -0
  550. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +23 -0
  551. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +26 -0
  552. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +238 -0
  553. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +268 -0
  554. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +39 -0
  555. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +97 -0
  556. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +42 -0
  557. package/dist/embed/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +27 -0
  558. package/dist/embed/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +29 -0
  559. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +25 -0
  560. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +60 -0
  561. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +80 -0
  562. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +315 -0
  563. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +14 -0
  564. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +561 -0
  565. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +14 -0
  566. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +13 -0
  567. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +52 -0
  568. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +48 -0
  569. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +32 -0
  570. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +25 -0
  571. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +26 -0
  572. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +23 -0
  573. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +18 -0
  574. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +14 -0
  575. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +13 -0
  576. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/bundle-full.js +13 -0
  577. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/index.js +7 -0
  578. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/langs.js +1248 -0
  579. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/themes.js +365 -0
  580. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/wasm.js +1 -0
  581. package/dist/embed/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +13 -0
  582. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +18 -0
  583. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +77 -0
  584. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +21 -0
  585. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +40 -0
  586. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +15 -0
  587. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +15 -0
  588. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +35 -0
  589. package/dist/embed/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod/src/style-mod.js +92 -0
  590. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScroller.vue_vue_type_script_setup_true_lang-yssX6Q5B.js +130 -0
  591. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScrollerItem.vue_vue_type_script_setup_true_lang-qh6MY0wl.js +37 -0
  592. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi.js +202 -0
  593. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScroller.js +705 -0
  594. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScrollerItem.js +47 -0
  595. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/dynamicScrollerMeasurement-Cq5NQLJa.js +122 -0
  596. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/keyField-D6okV6nC.js +15 -0
  597. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/scroller.css_vue_type_style_index_0_src_true_lang--7gJ3zh_.js +100 -0
  598. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/useRecycleScroller-D_RDrEg2.js +805 -0
  599. package/dist/embed/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js +101 -0
  600. package/dist/embed/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +105 -0
  601. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue.js +4 -0
  602. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue_vue_type_script_setup_true_lang.js +43 -0
  603. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue.js +4 -0
  604. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue_vue_type_script_setup_true_lang.js +50 -0
  605. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue.js +4 -0
  606. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue_vue_type_script_setup_true_lang.js +40 -0
  607. package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue.js +6 -0
  608. package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue_vue_type_script_setup_true_lang.js +78 -0
  609. package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue.js +6 -0
  610. package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue_vue_type_script_setup_true_lang.js +50 -0
  611. package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue.js +4 -0
  612. package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue_vue_type_script_setup_true_lang.js +79 -0
  613. package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue.js +4 -0
  614. package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue_vue_type_script_setup_true_lang.js +46 -0
  615. package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue.js +4 -0
  616. package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue_vue_type_script_setup_true_lang.js +85 -0
  617. package/dist/embed/packages/histoire-controls/src/components/design-tokens/HstTokenGrid.vue.js +1 -0
  618. package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue.js +6 -0
  619. package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue_vue_type_script_setup_true_lang.js +146 -0
  620. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue.js +6 -0
  621. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue_vue_type_script_setup_true_lang.js +175 -0
  622. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditorAsync.js +22 -0
  623. package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue.js +4 -0
  624. package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue_vue_type_script_setup_true_lang.js +107 -0
  625. package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue.js +4 -0
  626. package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue_vue_type_script_setup_true_lang.js +207 -0
  627. package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue.js +4 -0
  628. package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue_vue_type_script_setup_true_lang.js +78 -0
  629. package/dist/embed/packages/histoire-controls/src/components/slider/HstSlider.vue.js +1 -0
  630. package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue.js +4 -0
  631. package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue_vue_type_script_setup_true_lang.js +67 -0
  632. package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue.js +4 -0
  633. package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue_vue_type_script_setup_true_lang.js +65 -0
  634. package/dist/embed/packages/histoire-controls/src/context.js +17 -0
  635. package/dist/embed/packages/histoire-controls/src/field.js +43 -0
  636. package/dist/embed/packages/histoire-controls/src/index.js +30 -0
  637. package/dist/embed/packages/histoire-controls/src/loading/LoadingDelayBoundary.js +13 -0
  638. package/dist/embed/packages/histoire-controls/src/loading/use-loading-delay.js +24 -0
  639. package/dist/embed/packages/histoire-controls/src/model.js +28 -0
  640. package/dist/embed/packages/histoire-controls/src/options.js +12 -0
  641. package/dist/embed/packages/histoire-controls/src/overlay/appearance.js +64 -0
  642. package/dist/embed/packages/histoire-controls/src/overlay/focus.js +81 -0
  643. package/dist/embed/packages/histoire-controls/src/overlay/tooltip.js +116 -0
  644. package/dist/embed/packages/histoire-controls/src/utils.js +15 -0
  645. package/dist/embed/packages/histoire-vue/src/components/controls/GenericControls.js +40 -0
  646. package/dist/embed/packages/histoire-vue/src/components/controls/HistoireControls.js +203 -0
  647. package/dist/embed/packages/histoire-vue/src/components/controls/PresetMenu.js +267 -0
  648. package/dist/embed/packages/histoire-vue/src/components/controls/PropControl.js +85 -0
  649. package/dist/embed/packages/histoire-vue/src/components/controls/StateControl.js +34 -0
  650. package/dist/embed/packages/histoire-vue/src/components/controls/StatePresets.js +127 -0
  651. package/dist/embed/packages/histoire-vue/src/components/controls/edit.js +80 -0
  652. package/dist/embed/packages/histoire-vue/src/components/controls/editor.js +29 -0
  653. package/dist/embed/packages/histoire-vue/src/components/docs/HistoireDocs.js +149 -0
  654. package/dist/embed/packages/histoire-vue/src/components/docs/anchors.js +21 -0
  655. package/dist/embed/packages/histoire-vue/src/components/docs/content.js +12 -0
  656. package/dist/embed/packages/histoire-vue/src/components/docs/links.js +81 -0
  657. package/dist/embed/packages/histoire-vue/src/components/docs/sanitize.js +30 -0
  658. package/dist/embed/packages/histoire-vue/src/components/embed/EmbedPanels.js +64 -0
  659. package/dist/embed/packages/histoire-vue/src/components/embed/HistoireEmbed.js +93 -0
  660. package/dist/embed/packages/histoire-vue/src/components/embed/geometry.js +39 -0
  661. package/dist/embed/packages/histoire-vue/src/components/events/HistoireEvents.js +116 -0
  662. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerNavigation.js +23 -0
  663. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPanels.js +121 -0
  664. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPreview.js +136 -0
  665. package/dist/embed/packages/histoire-vue/src/components/explorer/HistoireExplorer.js +58 -0
  666. package/dist/embed/packages/histoire-vue/src/components/explorer/panel-tabs.js +69 -0
  667. package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionOutlet.js +48 -0
  668. package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionView.js +76 -0
  669. package/dist/embed/packages/histoire-vue/src/components/extensions/panel-action.js +33 -0
  670. package/dist/embed/packages/histoire-vue/src/components/extensions/state-renderer.js +65 -0
  671. package/dist/embed/packages/histoire-vue/src/components/extensions/view-lifecycle.js +109 -0
  672. package/dist/embed/packages/histoire-vue/src/components/extensions/workbench-components.js +134 -0
  673. package/dist/embed/packages/histoire-vue/src/components/preview/HistoirePreview.js +5 -0
  674. package/dist/embed/packages/histoire-vue/src/components/preview/surface.js +121 -0
  675. package/dist/embed/packages/histoire-vue/src/components/search/HistoireSearch.js +106 -0
  676. package/dist/embed/packages/histoire-vue/src/components/source/HistoireSource.js +147 -0
  677. package/dist/embed/packages/histoire-vue/src/components/source/content.js +15 -0
  678. package/dist/embed/packages/histoire-vue/src/components/source/highlight.js +32 -0
  679. package/dist/embed/packages/histoire-vue/src/components/source/render.js +15 -0
  680. package/dist/embed/packages/histoire-vue/src/components/tests/HistoireTests.js +119 -0
  681. package/dist/embed/packages/histoire-vue/src/components/tests/TestsRunActions.js +186 -0
  682. package/dist/embed/packages/histoire-vue/src/components/tests/render.js +147 -0
  683. package/dist/embed/packages/histoire-vue/src/components/toolbar/HistoireToolbar.js +145 -0
  684. package/dist/embed/packages/histoire-vue/src/components/toolbar/ToolbarExtensions.js +89 -0
  685. package/dist/embed/packages/histoire-vue/src/components/toolbar/groups.js +25 -0
  686. package/dist/embed/packages/histoire-vue/src/components/tree/HistoireStoryTree.js +90 -0
  687. package/dist/embed/packages/histoire-vue/src/composables/snapshot.js +11 -0
  688. package/dist/embed/packages/histoire-vue/src/content/controller.js +66 -0
  689. package/dist/embed/packages/histoire-vue/src/foundation/VirtualList.js +156 -0
  690. package/dist/embed/packages/histoire-vue/src/foundation/floating.js +80 -0
  691. package/dist/embed/packages/histoire-vue/src/foundation/parts.js +18 -0
  692. package/dist/embed/packages/histoire-vue/src/overlays/OverlayHost.js +138 -0
  693. package/dist/embed/packages/histoire-vue/src/overlays/geometry.js +14 -0
  694. package/dist/embed/packages/histoire-vue/src/overlays/menu-bounds.js +46 -0
  695. package/dist/embed/packages/histoire-vue/src/provider/HistoireProvider.js +198 -0
  696. package/dist/embed/packages/histoire-vue/src/provider/context.js +17 -0
  697. package/dist/embed/packages/histoire-vue/src/provider/extensions.js +150 -0
  698. package/dist/embed/packages/histoire-vue/src/provider/panels.js +51 -0
  699. package/dist/embed/packages/histoire-vue/src/provider/plugin-shortcuts.js +75 -0
  700. package/dist/embed/packages/histoire-vue/src/provider/shortcuts.js +56 -0
  701. package/dist/embed/packages/histoire-vue/src/provider/theme.js +23 -0
  702. package/dist/embed/packages/histoire-vue/src/search/navigation.js +51 -0
  703. package/dist/embed/packages/histoire-vue/src/tests/collector.js +49 -0
  704. package/dist/embed/packages/histoire-vue/src/tests/controller.js +114 -0
  705. package/dist/embed/packages/histoire-vue/src/tests/model.js +29 -0
  706. package/dist/embed/search-match.d.ts +23 -0
  707. package/dist/embed/search-match.js +51 -0
  708. package/dist/embed/search.d.ts +5 -0
  709. package/dist/embed/search.js +54 -0
  710. package/dist/embed/source.d.ts +4 -0
  711. package/dist/embed/source.js +151 -0
  712. package/dist/embed/subscriptions.d.ts +10 -0
  713. package/dist/embed/subscriptions.js +49 -0
  714. package/dist/embed/surfaces.d.ts +42 -0
  715. package/dist/embed/surfaces.js +22 -0
  716. package/dist/embed/types.d.ts +24 -0
  717. package/dist/embed/view-session.d.ts +16 -0
  718. package/dist/embed/view-session.js +196 -0
  719. package/dist/fonts/SOURCES.txt +2 -0
  720. package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  721. package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  722. package/dist/fonts/jetbrains-mono.LICENSE +93 -0
  723. package/dist/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
  724. package/dist/fonts/manrope-latin-wght-normal.woff2 +0 -0
  725. package/dist/fonts/manrope.LICENSE +93 -0
  726. package/dist/style.css +8151 -2836
  727. package/package.json +35 -15
  728. package/postcss-scope-wrapper.cjs +21 -22
  729. package/postcss.config.cjs +2 -4
  730. package/scripts/asset-path.mjs +8 -0
  731. package/scripts/copy.mjs +4 -5
  732. package/scripts/generate-fonts.mjs +42 -0
  733. package/scripts/generate-icons.mjs +28 -0
  734. package/scripts/module-file-name.mjs +8 -0
  735. package/scripts/watchAndCopy.mjs +8 -5
  736. package/src/app/App.vue +27 -167
  737. package/src/app/api.ts +8 -1
  738. package/src/app/components/agents/AgentLogo.vue +31 -0
  739. package/src/app/components/agents/PermissionPrompt.vue +74 -0
  740. package/src/app/components/base/BaseButton.vue +13 -23
  741. package/src/app/components/base/BaseChip.vue +21 -0
  742. package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
  743. package/src/app/components/base/overflow/BaseOverflowToolbar.vue +111 -0
  744. package/src/app/components/base/overflow/BaseOverflowToolbarItem.vue +36 -0
  745. package/src/app/components/base/overflow/context.ts +47 -0
  746. package/src/app/components/base/overflow/fit.ts +28 -0
  747. package/src/app/components/base/overflow/layout.ts +174 -0
  748. package/src/app/components/base/overflow/measurement.ts +70 -0
  749. package/src/app/components/base/overflow/presentation.ts +12 -0
  750. package/src/app/components/base/popover/BasePopover.vue +147 -0
  751. package/src/app/components/base/popover/PopoverDivider.vue +12 -0
  752. package/src/app/components/base/popover/PopoverError.vue +12 -0
  753. package/src/app/components/base/popover/PopoverMeta.vue +10 -0
  754. package/src/app/components/base/popover/PopoverRow.vue +19 -0
  755. package/src/app/components/base/popover/PopoverTitle.vue +16 -0
  756. package/src/app/components/base/popover/overlay.ts +21 -0
  757. package/src/app/components/base/popover/position.ts +54 -0
  758. package/src/app/components/base/popover/scope.ts +45 -0
  759. package/src/app/components/base/use-menu-keyboard.ts +61 -0
  760. package/src/app/components/canvas/AgentCursor.vue +66 -0
  761. package/src/app/components/canvas/CanvasFrame.vue +167 -0
  762. package/src/app/components/canvas/CanvasHeader.vue +35 -0
  763. package/src/app/components/canvas/CanvasHintBar.vue +16 -0
  764. package/src/app/components/canvas/CanvasHintButton.vue +18 -0
  765. package/src/app/components/canvas/CanvasHintItem.vue +16 -0
  766. package/src/app/components/canvas/CanvasHintKey.vue +10 -0
  767. package/src/app/components/canvas/CanvasLoadingIndicator.vue +9 -0
  768. package/src/app/components/canvas/CanvasMatrixPrimary.vue +147 -0
  769. package/src/app/components/canvas/CanvasMeasureHint.vue +57 -0
  770. package/src/app/components/canvas/CanvasReplicaPreview.vue +86 -0
  771. package/src/app/components/canvas/CanvasSingleVariant.vue +70 -0
  772. package/src/app/components/canvas/CanvasStatus.vue +49 -0
  773. package/src/app/components/canvas/CanvasViewport.vue +283 -0
  774. package/src/app/components/canvas/CollectErrorCard.vue +22 -0
  775. package/src/app/components/canvas/FrameGrid.vue +14 -0
  776. package/src/app/components/canvas/FrameList.vue +14 -0
  777. package/src/app/components/canvas/MeasureBoxModel.vue +47 -0
  778. package/src/app/components/canvas/MeasureGuides.vue +30 -0
  779. package/src/app/components/canvas/MeasureOverlay.vue +252 -0
  780. package/src/app/components/canvas/SingleVariantResizeHandle.vue +11 -0
  781. package/src/app/components/canvas/SingleVariantResizeHandles.vue +131 -0
  782. package/src/app/components/canvas/active-tool.ts +9 -0
  783. package/src/app/components/canvas/agent-cursor.ts +57 -0
  784. package/src/app/components/canvas/canvas-extensions.ts +87 -0
  785. package/src/app/components/canvas/canvas-header-editor.ts +84 -0
  786. package/src/app/components/canvas/canvas-overlay-occlusion.ts +20 -0
  787. package/src/app/components/canvas/canvas-startup-activity.ts +46 -0
  788. package/src/app/components/canvas/content-measure.ts +92 -0
  789. package/src/app/components/canvas/content-sizes.ts +37 -0
  790. package/src/app/components/canvas/frame-activation.ts +49 -0
  791. package/src/app/components/canvas/frame-admission.ts +42 -0
  792. package/src/app/components/canvas/frame-badges.ts +74 -0
  793. package/src/app/components/canvas/frame-focus.ts +31 -0
  794. package/src/app/components/canvas/frame-interactions.ts +81 -0
  795. package/src/app/components/canvas/frame-layout.ts +158 -0
  796. package/src/app/components/canvas/frame-menu.ts +13 -0
  797. package/src/app/components/canvas/frame-props-override.ts +94 -0
  798. package/src/app/components/canvas/frame-registration.ts +12 -0
  799. package/src/app/components/canvas/frame-replica.ts +34 -0
  800. package/src/app/components/canvas/frame-requests.ts +8 -0
  801. package/src/app/components/canvas/frame-runtime.ts +100 -0
  802. package/src/app/components/canvas/frame-selection.ts +90 -0
  803. package/src/app/components/canvas/frame-source.ts +10 -0
  804. package/src/app/components/canvas/frame-startup-coordinator.ts +250 -0
  805. package/src/app/components/canvas/frame-startup-lifecycle.ts +197 -0
  806. package/src/app/components/canvas/frame-state.ts +92 -0
  807. package/src/app/components/canvas/frame-target.ts +21 -0
  808. package/src/app/components/canvas/frames/acquire-story-frame.ts +240 -0
  809. package/src/app/components/canvas/frames/frame-leases.ts +204 -0
  810. package/src/app/components/canvas/frames/frame-ledger.ts +79 -0
  811. package/src/app/components/canvas/frames/story-frame-session.ts +156 -0
  812. package/src/app/components/canvas/frames/viewport-frames.ts +49 -0
  813. package/src/app/components/canvas/matrix/MatrixAvailabilityState.vue +51 -0
  814. package/src/app/components/canvas/matrix/MatrixAxisBar.vue +32 -0
  815. package/src/app/components/canvas/matrix/MatrixAxisEntry.vue +85 -0
  816. package/src/app/components/canvas/matrix/MatrixAxisForm.vue +16 -0
  817. package/src/app/components/canvas/matrix/MatrixAxisFormActions.vue +12 -0
  818. package/src/app/components/canvas/matrix/MatrixBaseProp.vue +59 -0
  819. package/src/app/components/canvas/matrix/MatrixCell.vue +100 -0
  820. package/src/app/components/canvas/matrix/MatrixCustomAxes.vue +71 -0
  821. package/src/app/components/canvas/matrix/MatrixCustomValues.vue +52 -0
  822. package/src/app/components/canvas/matrix/MatrixInspector.vue +124 -0
  823. package/src/app/components/canvas/matrix/MatrixNumericValues.vue +95 -0
  824. package/src/app/components/canvas/matrix/MatrixView.vue +123 -0
  825. package/src/app/components/canvas/matrix/MatrixVisualActions.vue +52 -0
  826. package/src/app/components/canvas/matrix/matrix-layout.ts +63 -0
  827. package/src/app/components/canvas/matrix/matrix-registration.ts +42 -0
  828. package/src/app/components/canvas/matrix/matrix-selection.ts +18 -0
  829. package/src/app/components/canvas/measure-controller.ts +205 -0
  830. package/src/app/components/canvas/measure-geometry.ts +158 -0
  831. package/src/app/components/canvas/measure-labels.ts +130 -0
  832. package/src/app/components/canvas/measure-owner.ts +31 -0
  833. package/src/app/components/canvas/overlays/CanvasPluginLayers.vue +22 -0
  834. package/src/app/components/canvas/overlays/FrameLayer.vue +28 -0
  835. package/src/app/components/canvas/overlays/OverlayItem.vue +26 -0
  836. package/src/app/components/canvas/overlays/OverlayLayer.vue +32 -0
  837. package/src/app/components/canvas/overlays/frame-overlays.ts +83 -0
  838. package/src/app/components/canvas/pan/usePanZoom.ts +147 -0
  839. package/src/app/components/canvas/pan/usePointerPan.ts +99 -0
  840. package/src/app/components/canvas/pan/useSpacePan.ts +89 -0
  841. package/src/app/components/canvas/sandbox-boot-gate.ts +63 -0
  842. package/src/app/components/canvas/single-resize.ts +192 -0
  843. package/src/app/components/canvas/single-viewport.ts +41 -0
  844. package/src/app/components/canvas/single-zoom.ts +10 -0
  845. package/src/app/components/canvas/snapshots/capture.ts +107 -0
  846. package/src/app/components/canvas/snapshots/document.ts +24 -0
  847. package/src/app/components/canvas/snapshots/store.ts +127 -0
  848. package/src/app/components/canvas/snapshots/useFrameSnapshot.ts +98 -0
  849. package/src/app/components/canvas/story-view-binding.ts +187 -0
  850. package/src/app/components/canvas/toolbar/ArrangeSwitch.vue +25 -0
  851. package/src/app/components/canvas/toolbar/BackgroundPicker.vue +77 -0
  852. package/src/app/components/canvas/toolbar/CanvasToolbar.vue +157 -0
  853. package/src/app/components/canvas/toolbar/PluginToolbarItem.vue +74 -0
  854. package/src/app/components/canvas/toolbar/ScreenshotPopover.vue +195 -0
  855. package/src/app/components/canvas/toolbar/ScreenshotSetup.vue +193 -0
  856. package/src/app/components/canvas/toolbar/SearchMatchStepper.vue +27 -0
  857. package/src/app/components/canvas/toolbar/ToolSwitch.vue +38 -0
  858. package/src/app/components/canvas/toolbar/ToolbarButton.vue +52 -0
  859. package/src/app/components/canvas/toolbar/ToolbarPopover.vue +57 -0
  860. package/src/app/components/canvas/toolbar/ViewportMenu.vue +105 -0
  861. package/src/app/components/canvas/toolbar/ZoomMenu.vue +58 -0
  862. package/src/app/components/canvas/toolbar/bounds.ts +30 -0
  863. package/src/app/components/canvas/toolbar/session-settings.ts +16 -0
  864. package/src/app/components/canvas/toolbar/settings.ts +25 -0
  865. package/src/app/components/canvas/toolbar/shortcuts.ts +20 -0
  866. package/src/app/components/canvas/toolbar/use-screenshot-setup.ts +183 -0
  867. package/src/app/components/canvas/toolbar/viewport-size.ts +20 -0
  868. package/src/app/components/canvas/tools/PluginToolLayer.vue +50 -0
  869. package/src/app/components/canvas/tools/plugin-tool.ts +158 -0
  870. package/src/app/components/canvas/tools/plugin-tools.ts +134 -0
  871. package/src/app/components/canvas/useCanvasContentSizing.ts +69 -0
  872. package/src/app/components/canvas/useCanvasGeometry.ts +99 -0
  873. package/src/app/components/canvas/useCanvasHeaderOcclusion.ts +52 -0
  874. package/src/app/components/canvas/useCanvasPan.ts +46 -0
  875. package/src/app/components/canvas/useCanvasVariantSize.ts +22 -0
  876. package/src/app/components/canvas/useSingleVariantGeometry.ts +32 -0
  877. package/src/app/components/canvas/useSingleVariantPan.ts +78 -0
  878. package/src/app/components/canvas/useSingleVariantZoom.ts +58 -0
  879. package/src/app/components/canvas/viewport-events.ts +105 -0
  880. package/src/app/components/canvas/views/PluginCanvasView.vue +59 -0
  881. package/src/app/components/canvas/views/canvas-views.ts +119 -0
  882. package/src/app/components/canvas/views/view-input.ts +20 -0
  883. package/src/app/components/command/CommandPrompts.vue +31 -23
  884. package/src/app/components/command/PromptSelect.vue +27 -23
  885. package/src/app/components/command/PromptText.vue +10 -8
  886. package/src/app/components/comments/CommentComposer.vue +78 -0
  887. package/src/app/components/comments/CommentContext.vue +56 -0
  888. package/src/app/components/comments/CommentContextChip.vue +21 -0
  889. package/src/app/components/comments/CommentPin.vue +31 -0
  890. package/src/app/components/comments/CommentThread.vue +113 -0
  891. package/src/app/components/comments/CommentsCanvasOverlay.vue +172 -0
  892. package/src/app/components/comments/capture.ts +45 -0
  893. package/src/app/components/comments/destination.ts +45 -0
  894. package/src/app/components/comments/dismiss-outside.ts +44 -0
  895. package/src/app/components/comments/frame-geometry.ts +28 -0
  896. package/src/app/components/comments/pick.ts +83 -0
  897. package/src/app/components/comments/presentation.ts +85 -0
  898. package/src/app/components/comments/prompt/AgentPrompt.vue +188 -0
  899. package/src/app/components/comments/prompt/AttachMenuPanel.vue +67 -0
  900. package/src/app/components/comments/prompt/AttachmentStrip.vue +54 -0
  901. package/src/app/components/comments/prompt/AttachmentTile.vue +41 -0
  902. package/src/app/components/comments/prompt/AttachmentViewer.vue +37 -0
  903. package/src/app/components/comments/prompt/ContextChip.vue +28 -0
  904. package/src/app/components/comments/prompt/PromptAttachMenu.vue +52 -0
  905. package/src/app/components/comments/prompt/PromptMenu.vue +51 -0
  906. package/src/app/components/comments/prompt/PromptSuggestions.vue +33 -0
  907. package/src/app/components/comments/prompt/SessionPicker.vue +49 -0
  908. package/src/app/components/comments/prompt/SessionPopover.vue +21 -0
  909. package/src/app/components/comments/prompt/SessionRadioList.vue +30 -0
  910. package/src/app/components/comments/prompt/SessionSettings.vue +71 -0
  911. package/src/app/components/comments/prompt/actions.ts +85 -0
  912. package/src/app/components/comments/prompt/attachment-meta.ts +28 -0
  913. package/src/app/components/comments/prompt/attachments.ts +121 -0
  914. package/src/app/components/comments/prompt/autogrow.ts +20 -0
  915. package/src/app/components/comments/prompt/menu-trigger.ts +28 -0
  916. package/src/app/components/comments/prompt/plan-follow-up.ts +23 -0
  917. package/src/app/components/comments/prompt/session-labels.ts +36 -0
  918. package/src/app/components/comments/prompt/suggestions.ts +140 -0
  919. package/src/app/components/comments/reply-draft.ts +42 -0
  920. package/src/app/components/comments/thread/AgentActivityPhase.vue +46 -0
  921. package/src/app/components/comments/thread/AgentDisclosure.vue +12 -0
  922. package/src/app/components/comments/thread/AgentLiveTail.vue +54 -0
  923. package/src/app/components/comments/thread/AgentMarkdown.vue +32 -0
  924. package/src/app/components/comments/thread/AgentPlan.vue +39 -0
  925. package/src/app/components/comments/thread/AgentPlanDecision.vue +29 -0
  926. package/src/app/components/comments/thread/ThreadMessage.vue +70 -0
  927. package/src/app/components/comments/thread/activity-phases.ts +105 -0
  928. package/src/app/components/comments/thread/markdown.ts +32 -0
  929. package/src/app/components/comments/thread/questions/AgentElicitation.vue +34 -0
  930. package/src/app/components/comments/thread/questions/AgentPendingInput.vue +67 -0
  931. package/src/app/components/comments/thread/questions/AgentPlanApproval.vue +36 -0
  932. package/src/app/components/comments/thread/questions/ElicitationField.vue +74 -0
  933. package/src/app/components/comments/thread/questions/ElicitationForm.vue +54 -0
  934. package/src/app/components/comments/thread/questions/ElicitationLink.vue +64 -0
  935. package/src/app/components/comments/thread/questions/ElicitationOptions.vue +101 -0
  936. package/src/app/components/comments/thread/questions/QuestionActions.vue +12 -0
  937. package/src/app/components/comments/thread/questions/QuestionInput.vue +3 -0
  938. package/src/app/components/comments/thread/questions/QuestionOption.vue +13 -0
  939. package/src/app/components/comments/thread/questions/QuestionOptionLabel.vue +12 -0
  940. package/src/app/components/comments/thread/questions/elicitation-fields.ts +66 -0
  941. package/src/app/components/comments/thread/questions/use-expiry-countdown.ts +31 -0
  942. package/src/app/components/comments/thread/stick-to-bottom.ts +43 -0
  943. package/src/app/components/embed/EmbedDialog.vue +204 -0
  944. package/src/app/components/embed/EmbedMenu.vue +36 -0
  945. package/src/app/components/embed/actions.ts +21 -0
  946. package/src/app/components/embed/controller.ts +74 -0
  947. package/src/app/components/embed/snippets.ts +124 -0
  948. package/src/app/components/extensions/ExtensionOutlet.vue +58 -0
  949. package/src/app/components/extensions/ExtensionView.vue +79 -0
  950. package/src/app/components/extensions/workbench-components.ts +23 -0
  951. package/src/app/components/inspector/DocsTab.vue +20 -0
  952. package/src/app/components/inspector/EventsBadge.vue +9 -0
  953. package/src/app/components/inspector/EventsTab.vue +29 -0
  954. package/src/app/components/inspector/InspectorExtensionOutlet.vue +31 -0
  955. package/src/app/components/inspector/InspectorGuideLink.vue +21 -0
  956. package/src/app/components/inspector/InspectorHeader.vue +36 -0
  957. package/src/app/components/inspector/InspectorTabs.vue +103 -0
  958. package/src/app/components/inspector/PropsTab.vue +33 -0
  959. package/src/app/components/inspector/SourceAction.vue +14 -0
  960. package/src/app/components/inspector/SourceDrawer.vue +188 -0
  961. package/src/app/components/inspector/StoryInspector.vue +149 -0
  962. package/src/app/components/inspector/TestsBadge.vue +14 -0
  963. package/src/app/components/inspector/TestsTab.vue +29 -0
  964. package/src/app/components/inspector/builtins.ts +36 -0
  965. package/src/app/components/inspector/inspection/InspectionAccessibility.vue +56 -0
  966. package/src/app/components/inspector/inspection/InspectionComponents.vue +48 -0
  967. package/src/app/components/inspector/inspection/InspectionPanel.vue +107 -0
  968. package/src/app/components/inspector/inspection/frame-owner.ts +13 -0
  969. package/src/app/components/inspector/inspection/picker.ts +80 -0
  970. package/src/app/components/inspector/inspection/plugin.ts +111 -0
  971. package/src/app/components/inspector/inspection/use-inspection.ts +227 -0
  972. package/src/app/components/inspector/model.ts +79 -0
  973. package/src/app/components/inspector/plugin-tabs.ts +78 -0
  974. package/src/app/components/inspector/state.ts +131 -0
  975. package/src/app/components/inspector/tab-overflow.ts +127 -0
  976. package/src/app/components/lists/WorkbenchVirtualList.vue +41 -0
  977. package/src/app/components/marketplace/browse/CatalogState.vue +29 -0
  978. package/src/app/components/marketplace/browse/CollectionRow.vue +36 -0
  979. package/src/app/components/marketplace/browse/DiscoverHero.vue +43 -0
  980. package/src/app/components/marketplace/browse/FacetPanel.vue +73 -0
  981. package/src/app/components/marketplace/browse/MarketplaceAll.vue +46 -0
  982. package/src/app/components/marketplace/browse/MarketplaceDiscover.vue +53 -0
  983. package/src/app/components/marketplace/browse/MatchText.vue +28 -0
  984. package/src/app/components/marketplace/browse/NoResults.vue +63 -0
  985. package/src/app/components/marketplace/browse/PluginCard.vue +61 -0
  986. package/src/app/components/marketplace/browse/PluginInstallAction.vue +22 -0
  987. package/src/app/components/marketplace/browse/ResultsBar.vue +38 -0
  988. package/src/app/components/marketplace/browse/catalog-client.ts +52 -0
  989. package/src/app/components/marketplace/browse/catalog-collections.ts +37 -0
  990. package/src/app/components/marketplace/browse/labels.ts +11 -0
  991. package/src/app/components/marketplace/browse/plugin-actions.ts +7 -0
  992. package/src/app/components/marketplace/browse/use-catalog-filters.ts +50 -0
  993. package/src/app/components/marketplace/browse/use-catalog-query.ts +67 -0
  994. package/src/app/components/marketplace/detail/ChangelogTab.vue +31 -0
  995. package/src/app/components/marketplace/detail/DetailHeader.vue +83 -0
  996. package/src/app/components/marketplace/detail/MarketplaceDetail.vue +83 -0
  997. package/src/app/components/marketplace/detail/MetaList.vue +76 -0
  998. package/src/app/components/marketplace/detail/OptionsTab.vue +48 -0
  999. package/src/app/components/marketplace/detail/OverviewTab.vue +31 -0
  1000. package/src/app/components/marketplace/detail/VersionsTab.vue +24 -0
  1001. package/src/app/components/marketplace/detail/use-plugin-detail.ts +48 -0
  1002. package/src/app/components/marketplace/install/CommandBlock.vue +15 -0
  1003. package/src/app/components/marketplace/install/ConfigDiff.vue +23 -0
  1004. package/src/app/components/marketplace/install/FailureStep.vue +59 -0
  1005. package/src/app/components/marketplace/install/InstallFooter.vue +17 -0
  1006. package/src/app/components/marketplace/install/ManualStep.vue +87 -0
  1007. package/src/app/components/marketplace/install/MarketplaceInstall.vue +121 -0
  1008. package/src/app/components/marketplace/install/OptionField.vue +46 -0
  1009. package/src/app/components/marketplace/install/OptionsStep.vue +43 -0
  1010. package/src/app/components/marketplace/install/OutputLog.vue +22 -0
  1011. package/src/app/components/marketplace/install/ProgressStep.vue +60 -0
  1012. package/src/app/components/marketplace/install/ReviewStep.vue +75 -0
  1013. package/src/app/components/marketplace/install/WizardSteps.vue +27 -0
  1014. package/src/app/components/marketplace/install/manual-instructions.ts +18 -0
  1015. package/src/app/components/marketplace/install/use-copy.ts +15 -0
  1016. package/src/app/components/marketplace/install/use-install-plan.ts +59 -0
  1017. package/src/app/components/marketplace/install/use-install-wizard.ts +161 -0
  1018. package/src/app/components/marketplace/shell/MarketplaceHeader.vue +46 -0
  1019. package/src/app/components/marketplace/shell/MarketplaceModal.vue +52 -0
  1020. package/src/app/components/marketplace/shell/MarketplaceView.vue +16 -0
  1021. package/src/app/components/marketplace/shell/PluginTile.vue +44 -0
  1022. package/src/app/components/marketplace/shell/compatibility-reason.ts +4 -0
  1023. package/src/app/components/marketplace/shell/job-progress-label.ts +22 -0
  1024. package/src/app/components/marketplace/shell/marketplace-jobs.ts +115 -0
  1025. package/src/app/components/marketplace/shell/marketplace-prefs.ts +18 -0
  1026. package/src/app/components/marketplace/shell/marketplace-reads.ts +16 -0
  1027. package/src/app/components/marketplace/shell/marketplace-services.ts +17 -0
  1028. package/src/app/components/marketplace/shell/use-marketplace-keys.ts +34 -0
  1029. package/src/app/components/marketplace/shell/workbench-plugin-id.ts +5 -0
  1030. package/src/app/components/marketplace/spotlight/MarketplaceSpotlightHost.vue +10 -0
  1031. package/src/app/components/marketplace/spotlight/SpotlightCard.vue +95 -0
  1032. package/src/app/components/marketplace/spotlight/use-post-install-spotlight.ts +173 -0
  1033. package/src/app/components/marketplace/spotlight/use-spotlight-targets.ts +80 -0
  1034. package/src/app/components/marketplace/update/MarketplaceUpdateBody.vue +98 -0
  1035. package/src/app/components/marketplace/update/MarketplaceUpdateDialog.vue +40 -0
  1036. package/src/app/components/marketplace/update/ReleaseNotes.vue +27 -0
  1037. package/src/app/components/marketplace/update/use-update-dialog.ts +118 -0
  1038. package/src/app/components/menu/ContextMenu.vue +118 -0
  1039. package/src/app/components/menu/MenuItem.vue +12 -0
  1040. package/src/app/components/menu/SubMenu.vue +48 -0
  1041. package/src/app/components/misc/HatchedPattern.vue +1 -11
  1042. package/src/app/components/pages/home/BrowseSections.vue +39 -0
  1043. package/src/app/components/pages/home/DevBrowseStatus.vue +25 -0
  1044. package/src/app/components/pages/home/GuidesList.vue +31 -0
  1045. package/src/app/components/pages/home/HomeCard.vue +12 -0
  1046. package/src/app/components/pages/home/HomeHeader.vue +30 -0
  1047. package/src/app/components/pages/home/HomeHeading.vue +12 -0
  1048. package/src/app/components/pages/home/HomePage.vue +102 -0
  1049. package/src/app/components/pages/home/HomeRow.vue +18 -0
  1050. package/src/app/components/pages/home/HomeSearch.vue +22 -0
  1051. package/src/app/components/pages/home/NeedsAttention.vue +47 -0
  1052. package/src/app/components/pages/home/PluginHomeSections.vue +44 -0
  1053. package/src/app/components/pages/home/UpdatesList.vue +46 -0
  1054. package/src/app/components/pages/home/catalog.spec.ts +53 -0
  1055. package/src/app/components/pages/home/catalog.ts +59 -0
  1056. package/src/app/components/pages/home/ownership.spec.ts +14 -0
  1057. package/src/app/components/pages/home/ownership.ts +48 -0
  1058. package/src/app/components/pages/markdown/MarkdownOutline.vue +26 -0
  1059. package/src/app/components/pages/markdown/MarkdownPage.vue +141 -0
  1060. package/src/app/components/pages/markdown/MarkdownPager.vue +30 -0
  1061. package/src/app/components/pages/markdown/navigation.spec.ts +18 -0
  1062. package/src/app/components/pages/markdown/navigation.ts +9 -0
  1063. package/src/app/components/pages/markdown/outline-dom.spec.ts +28 -0
  1064. package/src/app/components/pages/markdown/outline-dom.ts +37 -0
  1065. package/src/app/components/pages/markdown/outline.ts +36 -0
  1066. package/src/app/components/pages/settings/AboutSection.vue +27 -0
  1067. package/src/app/components/pages/settings/AgentAdvancedSettings.vue +135 -0
  1068. package/src/app/components/pages/settings/AgentArgumentsField.vue +49 -0
  1069. package/src/app/components/pages/settings/AgentEnvironmentField.vue +67 -0
  1070. package/src/app/components/pages/settings/AgentLaunchField.vue +19 -0
  1071. package/src/app/components/pages/settings/AgentModelSettings.vue +51 -0
  1072. package/src/app/components/pages/settings/AgentPresetRow.vue +79 -0
  1073. package/src/app/components/pages/settings/AgentsSection.vue +149 -0
  1074. package/src/app/components/pages/settings/AppearanceSection.vue +60 -0
  1075. package/src/app/components/pages/settings/BackgroundsSection.vue +96 -0
  1076. package/src/app/components/pages/settings/GeneralSection.vue +33 -0
  1077. package/src/app/components/pages/settings/McpSection.vue +48 -0
  1078. package/src/app/components/pages/settings/PluginsSection.vue +105 -0
  1079. package/src/app/components/pages/settings/ProjectSourceBadge.vue +32 -0
  1080. package/src/app/components/pages/settings/SaveToProject.vue +71 -0
  1081. package/src/app/components/pages/settings/SettingsCard.vue +12 -0
  1082. package/src/app/components/pages/settings/SettingsChoices.vue +7 -0
  1083. package/src/app/components/pages/settings/SettingsNav.vue +35 -0
  1084. package/src/app/components/pages/settings/SettingsPage.vue +59 -0
  1085. package/src/app/components/pages/settings/SettingsRow.vue +20 -0
  1086. package/src/app/components/pages/settings/ShortcutsSection.vue +28 -0
  1087. package/src/app/components/pages/settings/TestsSection.vue +20 -0
  1088. package/src/app/components/pages/settings/ViewportsSection.vue +76 -0
  1089. package/src/app/components/pages/settings/plugins/InstalledPluginRow.vue +90 -0
  1090. package/src/app/components/pages/settings/plugins/MarketplacePrefs.vue +37 -0
  1091. package/src/app/components/pages/settings/plugins/PluginActionsMenu.vue +79 -0
  1092. package/src/app/components/pages/settings/plugins/PluginSettingsCard.vue +23 -0
  1093. package/src/app/components/pages/settings/plugins/builtin-logos.ts +15 -0
  1094. package/src/app/components/pages/settings/plugins/types.ts +4 -0
  1095. package/src/app/components/pages/settings/plugins/use-package-manager.ts +26 -0
  1096. package/src/app/components/pages/settings/plugins/use-plugin-updates.ts +85 -0
  1097. package/src/app/components/pages/settings/plugins/use-settings-jobs.ts +124 -0
  1098. package/src/app/components/pages/settings/project-config-preview.ts +27 -0
  1099. package/src/app/components/pages/settings/usePluginToggles.ts +111 -0
  1100. package/src/app/components/panes/ai/AiCreatedStories.vue +27 -0
  1101. package/src/app/components/panes/ai/AiPanel.vue +102 -0
  1102. package/src/app/components/panes/ai/AiThreadComposer.vue +71 -0
  1103. package/src/app/components/panes/ai/AiThreadHeader.vue +28 -0
  1104. package/src/app/components/panes/ai/AiThreadList.vue +78 -0
  1105. package/src/app/components/panes/ai/AiThreadView.vue +102 -0
  1106. package/src/app/components/panes/ai/created-stories.ts +33 -0
  1107. package/src/app/components/panes/mcp/McpActivity.vue +57 -0
  1108. package/src/app/components/panes/mcp/McpClients.vue +38 -0
  1109. package/src/app/components/panes/mcp/McpContent.vue +49 -0
  1110. package/src/app/components/panes/mcp/McpCurrentOperation.vue +36 -0
  1111. package/src/app/components/panes/mcp/McpEndpoint.vue +51 -0
  1112. package/src/app/components/panes/mcp/McpHistory.vue +39 -0
  1113. package/src/app/components/panes/search/SearchPanel.vue +288 -0
  1114. package/src/app/components/panes/search/SearchResultItem.vue +65 -0
  1115. package/src/app/components/panes/search/SearchResultList.vue +36 -0
  1116. package/src/app/components/panes/search/SearchScopes.vue +21 -0
  1117. package/src/app/components/panes/search/accessibility.ts +14 -0
  1118. package/src/app/components/panes/search/command-execution.ts +42 -0
  1119. package/src/app/components/panes/search/controller.ts +145 -0
  1120. package/src/app/components/panes/search/frame-navigation.ts +61 -0
  1121. package/src/app/components/panes/search/query.ts +114 -0
  1122. package/src/app/components/panes/stories/StoriesPanel.vue +299 -0
  1123. package/src/app/components/panes/stories/row-status.ts +49 -0
  1124. package/src/app/components/panes/stories/tree.spec.ts +79 -0
  1125. package/src/app/components/panes/stories/tree.ts +77 -0
  1126. package/src/app/components/panes/tests/FunctionalTestsPanel.vue +98 -0
  1127. package/src/app/components/panes/tests/TestsFilter.vue +15 -0
  1128. package/src/app/components/panes/tests/TestsPanel.vue +18 -0
  1129. package/src/app/components/panes/tests/TestsSummary.vue +34 -0
  1130. package/src/app/components/panes/tests/TestsTree.vue +122 -0
  1131. package/src/app/components/panes/tests/TestsTreeRow.vue +45 -0
  1132. package/src/app/components/panes/tests/capture.ts +22 -0
  1133. package/src/app/components/panes/tests/dev-runner.ts +48 -0
  1134. package/src/app/components/panes/tests/discovery.ts +201 -0
  1135. package/src/app/components/panes/tests/execution.ts +69 -0
  1136. package/src/app/components/panes/tests/model.ts +305 -0
  1137. package/src/app/components/panes/tests/projection.ts +86 -0
  1138. package/src/app/components/panes/tests/types.ts +96 -0
  1139. package/src/app/components/panes/visual/VisualImageLabel.vue +16 -0
  1140. package/src/app/components/panes/visual/VisualResultRow.vue +43 -0
  1141. package/src/app/components/panes/visual/VisualResultsList.vue +43 -0
  1142. package/src/app/components/panes/visual/VisualRunButton.vue +25 -0
  1143. package/src/app/components/panes/visual/VisualSlider.vue +91 -0
  1144. package/src/app/components/panes/visual/VisualTestsPanel.vue +112 -0
  1145. package/src/app/components/panes/visual/VisualTestsSummary.vue +37 -0
  1146. package/src/app/components/panes/visual/VisualViewer.vue +215 -0
  1147. package/src/app/components/panes/visual/VisualViewerActions.vue +41 -0
  1148. package/src/app/components/panes/visual/VisualViewerDock.vue +75 -0
  1149. package/src/app/components/panes/visual/VisualViewerDockButton.vue +15 -0
  1150. package/src/app/components/panes/visual/VisualViewerHeader.vue +86 -0
  1151. package/src/app/components/panes/visual/VisualViewerSurface.vue +19 -0
  1152. package/src/app/components/panes/visual/projection.ts +62 -0
  1153. package/src/app/components/panes/visual/status.ts +21 -0
  1154. package/src/app/components/panes/visual/viewer-focus.ts +24 -0
  1155. package/src/app/components/panes/visual/viewer-types.ts +5 -0
  1156. package/src/app/components/panes/visual/zoom.spec.ts +21 -0
  1157. package/src/app/components/panes/visual/zoom.ts +30 -0
  1158. package/src/app/components/shell/AppRail.vue +135 -0
  1159. package/src/app/components/shell/InspectorFrame.vue +31 -0
  1160. package/src/app/components/shell/PanelResizeHandle.vue +35 -0
  1161. package/src/app/components/shell/PluginPane.vue +22 -0
  1162. package/src/app/components/shell/RailButton.vue +45 -0
  1163. package/src/app/components/shell/ShellLayout.vue +104 -0
  1164. package/src/app/components/shell/SidePanelHost.vue +24 -0
  1165. package/src/app/components/shell/WorkbenchApp.vue +174 -0
  1166. package/src/app/components/shell/WorkbenchEmptyState.vue +39 -0
  1167. package/src/app/components/shell/WorkbenchErrorState.vue +37 -0
  1168. package/src/app/components/shell/WorkbenchGuideLink.vue +16 -0
  1169. package/src/app/components/shell/WorkbenchLoadingSkeleton.vue +22 -0
  1170. package/src/app/components/shell/WorkbenchLoadingState.vue +34 -0
  1171. package/src/app/components/shell/WorkbenchPaneHeader.vue +19 -0
  1172. package/src/app/components/shell/WorkbenchPaneList.vue +12 -0
  1173. package/src/app/components/shell/WorkbenchPaneToolbar.vue +17 -0
  1174. package/src/app/components/shell/WorkbenchPanelAction.vue +54 -0
  1175. package/src/app/components/shell/WorkbenchStateLayout.vue +36 -0
  1176. package/src/app/components/shell/panel-focus.ts +35 -0
  1177. package/src/app/components/shell/panel-resize.ts +83 -0
  1178. package/src/app/components/shell/rail-items.ts +63 -0
  1179. package/src/app/components/shell/shortcuts.ts +8 -0
  1180. package/src/app/components/story/GenericMountStory.vue +17 -3
  1181. package/src/app/components/story/GenericRenderStory.vue +21 -2
  1182. package/src/app/composables/agent-discovery.ts +25 -0
  1183. package/src/app/composables/canvas-settings.ts +127 -0
  1184. package/src/app/composables/context-menu.ts +156 -0
  1185. package/src/app/composables/controls-host.ts +100 -0
  1186. package/src/app/composables/extensions.ts +50 -0
  1187. package/src/app/composables/keyboard-input.ts +11 -0
  1188. package/src/app/composables/list-density.ts +14 -0
  1189. package/src/app/composables/selection.ts +25 -0
  1190. package/src/app/composables/shell-extensions.ts +40 -0
  1191. package/src/app/composables/shell.ts +18 -0
  1192. package/src/app/extensions/action-surfaces.ts +43 -0
  1193. package/src/app/extensions/canvas-service.ts +208 -0
  1194. package/src/app/extensions/commands.ts +26 -0
  1195. package/src/app/extensions/context.ts +9 -0
  1196. package/src/app/extensions/create-workbench-host.ts +137 -0
  1197. package/src/app/extensions/dev-events.ts +31 -0
  1198. package/src/app/extensions/frame-channels.ts +188 -0
  1199. package/src/app/extensions/frame-context.ts +209 -0
  1200. package/src/app/extensions/icons.ts +28 -0
  1201. package/src/app/extensions/menus.ts +138 -0
  1202. package/src/app/extensions/navigation.ts +144 -0
  1203. package/src/app/extensions/plugins.ts +7 -0
  1204. package/src/app/extensions/shell-registry.ts +87 -0
  1205. package/src/app/extensions/shortcuts.ts +54 -0
  1206. package/src/app/extensions/standalone.ts +50 -0
  1207. package/src/app/extensions/storage.ts +47 -0
  1208. package/src/app/extensions/sync.ts +57 -0
  1209. package/src/app/extensions/tests-service.ts +63 -0
  1210. package/src/app/extensions/toolbar.ts +79 -0
  1211. package/src/app/index.ts +10 -30
  1212. package/src/app/plugin.ts +37 -48
  1213. package/src/app/sandbox.ts +19 -101
  1214. package/src/app/standalone/arrangement.ts +49 -0
  1215. package/src/app/standalone/build-info.ts +10 -0
  1216. package/src/app/standalone/client-actions.ts +58 -0
  1217. package/src/app/standalone/commands.ts +115 -0
  1218. package/src/app/standalone/document.ts +30 -0
  1219. package/src/app/standalone/editable-state.ts +79 -0
  1220. package/src/app/standalone/error-handler.ts +15 -0
  1221. package/src/app/standalone/folders.ts +62 -0
  1222. package/src/app/standalone/markdown-transition.ts +46 -0
  1223. package/src/app/standalone/mount.ts +123 -0
  1224. package/src/app/standalone/navigation.ts +116 -0
  1225. package/src/app/standalone/preferences.ts +36 -0
  1226. package/src/app/standalone/presets.ts +70 -0
  1227. package/src/app/standalone/runtime-binding.ts +57 -0
  1228. package/src/app/standalone/runtime-tests.ts +46 -0
  1229. package/src/app/standalone/selection.ts +76 -0
  1230. package/src/app/standalone/session.ts +32 -0
  1231. package/src/app/standalone/tests.ts +14 -0
  1232. package/src/app/standalone/ui-visibility-menu.ts +27 -0
  1233. package/src/app/standalone/ui-visibility.ts +72 -0
  1234. package/src/app/standalone/workbench-dev.ts +208 -0
  1235. package/src/app/standalone/workbench-navigation.ts +48 -0
  1236. package/src/app/standalone/workbench-stores.ts +54 -0
  1237. package/src/app/standalone/workbench-thread-actions.ts +46 -0
  1238. package/src/app/standalone/workbench-types.ts +39 -0
  1239. package/src/app/standalone/workbench-visual.ts +74 -0
  1240. package/src/app/standalone/workbench.ts +299 -0
  1241. package/src/app/stores/agent-threads.ts +170 -0
  1242. package/src/app/stores/agents-catalog.ts +100 -0
  1243. package/src/app/stores/agents.ts +201 -0
  1244. package/src/app/stores/ai-threads.ts +151 -0
  1245. package/src/app/stores/canvas-arrangement.ts +44 -0
  1246. package/src/app/stores/canvas-preferences.ts +77 -0
  1247. package/src/app/stores/canvas-types.ts +54 -0
  1248. package/src/app/stores/canvas.ts +260 -0
  1249. package/src/app/stores/events.ts +12 -8
  1250. package/src/app/stores/marketplace.ts +228 -0
  1251. package/src/app/stores/matrix-axis-editor.ts +43 -0
  1252. package/src/app/stores/matrix-domains.ts +55 -0
  1253. package/src/app/stores/matrix-preferences.ts +85 -0
  1254. package/src/app/stores/matrix-runtime.ts +106 -0
  1255. package/src/app/stores/matrix.ts +267 -0
  1256. package/src/app/stores/mcp-activity.ts +70 -0
  1257. package/src/app/stores/mcp.ts +170 -0
  1258. package/src/app/stores/presets-config.ts +202 -0
  1259. package/src/app/stores/project-config.ts +170 -0
  1260. package/src/app/stores/project-save-persistence.ts +59 -0
  1261. package/src/app/stores/settings.ts +139 -0
  1262. package/src/app/stores/shell-widths.ts +51 -0
  1263. package/src/app/stores/shell.ts +249 -0
  1264. package/src/app/stores/story-canvas-views.ts +49 -0
  1265. package/src/app/stores/thread-drafts.ts +128 -0
  1266. package/src/app/stores/visual-approval.ts +73 -0
  1267. package/src/app/stores/visual-collection.ts +76 -0
  1268. package/src/app/stores/visual-refresh.ts +31 -0
  1269. package/src/app/stores/visual-transport.ts +85 -0
  1270. package/src/app/stores/visual.ts +293 -0
  1271. package/src/app/style/README.md +167 -0
  1272. package/src/app/style/controls.css +28 -0
  1273. package/src/app/style/density.css +38 -0
  1274. package/src/app/style/document.pcss +60 -0
  1275. package/src/app/style/fonts.pcss +1 -0
  1276. package/src/app/style/main.css +25 -0
  1277. package/src/app/style/theme.css +109 -0
  1278. package/src/app/style/tokens.pcss +135 -0
  1279. package/src/app/types.ts +3 -9
  1280. package/src/app/util/agent-catalog-rows.ts +31 -0
  1281. package/src/app/util/agent-command.ts +9 -0
  1282. package/src/app/util/agents-http.ts +25 -0
  1283. package/src/app/util/agents-transport.ts +24 -0
  1284. package/src/app/util/background.ts +56 -0
  1285. package/src/app/util/builtin-commands.ts +27 -0
  1286. package/src/app/util/catalog-target.ts +17 -0
  1287. package/src/app/util/comments-http.ts +38 -0
  1288. package/src/app/util/const.ts +29 -4
  1289. package/src/app/util/controls-appearance.ts +2 -0
  1290. package/src/app/util/controls-document.ts +26 -0
  1291. package/src/app/util/controls-overlay-anchor.ts +14 -0
  1292. package/src/app/util/dark.ts +45 -17
  1293. package/src/app/util/dev-event-api.ts +236 -0
  1294. package/src/app/util/docs.ts +13 -17
  1295. package/src/app/util/dynamic-source.ts +20 -0
  1296. package/src/app/util/event-payload.ts +30 -0
  1297. package/src/app/util/events.ts +32 -17
  1298. package/src/app/util/frame-actions.ts +198 -0
  1299. package/src/app/util/frame-screenshot.ts +68 -0
  1300. package/src/app/util/frame-variant-source.ts +111 -0
  1301. package/src/app/util/host-channel.ts +148 -0
  1302. package/src/app/util/hot.ts +5 -0
  1303. package/src/app/util/http-json.ts +30 -0
  1304. package/src/app/util/keyboard.ts +1 -82
  1305. package/src/app/util/mapping.ts +26 -5
  1306. package/src/app/util/marketplace-client.ts +177 -0
  1307. package/src/app/util/marketplace-preferences.ts +6 -0
  1308. package/src/app/util/matrix-numeric.ts +19 -0
  1309. package/src/app/util/matrix-values.ts +72 -0
  1310. package/src/app/util/matrix.ts +172 -0
  1311. package/src/app/util/preview-settings.ts +4 -0
  1312. package/src/app/util/runtime-events.ts +101 -0
  1313. package/src/app/util/screenshot-file.ts +32 -0
  1314. package/src/app/util/screenshot-targets.ts +14 -0
  1315. package/src/app/util/shortcuts.ts +111 -0
  1316. package/src/app/util/story-component.ts +51 -0
  1317. package/src/app/util/ui-channel.ts +49 -0
  1318. package/src/app/util/variant-selection.ts +43 -0
  1319. package/src/app/util/vitest-mocker-shim.ts +27 -0
  1320. package/src/bundle-embed-dev.js +6 -0
  1321. package/src/bundle-embed.js +6 -0
  1322. package/src/bundle-main-dev.js +1 -1
  1323. package/src/bundle-main.js +2 -1
  1324. package/src/bundle-sandbox-dev.js +3 -2
  1325. package/src/bundle-sandbox.js +3 -2
  1326. package/src/embed/EmbedDocument.vue +29 -0
  1327. package/src/embed/adapters/channels.ts +113 -0
  1328. package/src/embed/adapters/content-surface.ts +12 -0
  1329. package/src/embed/adapters/content-view.ts +12 -0
  1330. package/src/embed/adapters/controls-replica.ts +281 -0
  1331. package/src/embed/adapters/controls-view.ts +56 -0
  1332. package/src/embed/adapters/controls.ts +8 -0
  1333. package/src/embed/adapters/document.ts +46 -0
  1334. package/src/embed/adapters/explorer-session.ts +171 -0
  1335. package/src/embed/adapters/explorer-view.ts +65 -0
  1336. package/src/embed/adapters/explorer.ts +9 -0
  1337. package/src/embed/adapters/geometry.ts +2 -0
  1338. package/src/embed/adapters/layout.ts +92 -0
  1339. package/src/embed/adapters/lazy-surface.ts +50 -0
  1340. package/src/embed/adapters/local-mount.ts +137 -0
  1341. package/src/embed/adapters/navigation-surface.ts +11 -0
  1342. package/src/embed/adapters/navigation-view.ts +12 -0
  1343. package/src/embed/adapters/preview.ts +5 -0
  1344. package/src/embed/adapters/runtime-frame.ts +337 -0
  1345. package/src/embed/adapters/runtime-layout.ts +58 -0
  1346. package/src/embed/adapters/runtime-loading.ts +66 -0
  1347. package/src/embed/adapters/runtime-readiness.ts +53 -0
  1348. package/src/embed/adapters/runtime-requests.ts +58 -0
  1349. package/src/embed/adapters/runtime-revision.ts +32 -0
  1350. package/src/embed/adapters/sandbox-urls.ts +55 -0
  1351. package/src/embed/adapters/stale-preview.ts +59 -0
  1352. package/src/embed/adapters/state-presets.ts +134 -0
  1353. package/src/embed/adapters/state.ts +24 -0
  1354. package/src/embed/adapters/test-workers.ts +189 -0
  1355. package/src/embed/adapters/tests-surface.ts +9 -0
  1356. package/src/embed/adapters/tests-view.ts +34 -0
  1357. package/src/embed/adapters/tests.ts +27 -0
  1358. package/src/embed/capabilities.ts +12 -0
  1359. package/src/embed/color-scheme.ts +8 -0
  1360. package/src/embed/commands.ts +111 -0
  1361. package/src/embed/descriptor.ts +43 -0
  1362. package/src/embed/direct.ts +49 -0
  1363. package/src/embed/document.css +11 -0
  1364. package/src/embed/fetch.ts +61 -0
  1365. package/src/embed/handshake.ts +140 -0
  1366. package/src/embed/index.ts +36 -0
  1367. package/src/embed/lifecycle.ts +37 -0
  1368. package/src/embed/search-match.ts +50 -0
  1369. package/src/embed/search.ts +33 -0
  1370. package/src/embed/source.ts +129 -0
  1371. package/src/embed/subscriptions.ts +38 -0
  1372. package/src/embed/surfaces.ts +62 -0
  1373. package/src/embed/types.ts +26 -0
  1374. package/src/embed/view-session.ts +153 -0
  1375. package/src/embed/virtual.d.ts +13 -0
  1376. package/src/embed/vue.d.ts +6 -0
  1377. package/src/virtual.d.ts +70 -0
  1378. package/tsconfig.embed.json +11 -0
  1379. package/tsconfig.json +10 -9
  1380. package/tsconfig.workbench.json +12 -0
  1381. package/vite.config.ts +48 -21
  1382. package/vite.embed.config.ts +53 -0
  1383. package/LICENSE +0 -21
  1384. package/dist/app/style/floating.pcss +0 -34
  1385. package/dist/app/style/main.pcss +0 -100
  1386. package/dist/app/style/sandbox.css +0 -24
  1387. package/dist/app/style/transitions.pcss +0 -51
  1388. package/dist/bundled/App.vue.js +0 -5
  1389. package/dist/bundled/App.vue2.js +0 -167
  1390. package/dist/bundled/_virtual/_plugin-vue_export-helper.js +0 -10
  1391. package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
  1392. package/dist/bundled/assets/histoire-text.svg.js +0 -4
  1393. package/dist/bundled/assets/histoire.svg.js +0 -4
  1394. package/dist/bundled/components/HomeView.vue.js +0 -5
  1395. package/dist/bundled/components/HomeView.vue2.js +0 -66
  1396. package/dist/bundled/components/app/AppHeader.vue.js +0 -5
  1397. package/dist/bundled/components/app/AppHeader.vue2.js +0 -71
  1398. package/dist/bundled/components/app/AppLogo.vue.js +0 -5
  1399. package/dist/bundled/components/app/AppLogo.vue2.js +0 -29
  1400. package/dist/bundled/components/app/Breadcrumb.vue.js +0 -8
  1401. package/dist/bundled/components/app/Breadcrumb.vue2.js +0 -91
  1402. package/dist/bundled/components/app/HomeCounter.vue.js +0 -5
  1403. package/dist/bundled/components/app/HomeCounter.vue2.js +0 -42
  1404. package/dist/bundled/components/app/InitialLoading.vue.js +0 -5
  1405. package/dist/bundled/components/app/InitialLoading.vue2.js +0 -51
  1406. package/dist/bundled/components/app/MobileOverlay.vue.js +0 -5
  1407. package/dist/bundled/components/app/MobileOverlay.vue2.js +0 -45
  1408. package/dist/bundled/components/base/BaseButton.vue.js +0 -5
  1409. package/dist/bundled/components/base/BaseButton.vue2.js +0 -39
  1410. package/dist/bundled/components/base/BaseCheckbox.vue.js +0 -5
  1411. package/dist/bundled/components/base/BaseCheckbox.vue2.js +0 -78
  1412. package/dist/bundled/components/base/BaseEmpty.vue.js +0 -14
  1413. package/dist/bundled/components/base/BaseIcon.vue.js +0 -8
  1414. package/dist/bundled/components/base/BaseIcon.vue2.js +0 -29
  1415. package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +0 -5
  1416. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +0 -20
  1417. package/dist/bundled/components/base/BaseListItem.vue.js +0 -5
  1418. package/dist/bundled/components/base/BaseListItem.vue2.js +0 -33
  1419. package/dist/bundled/components/base/BaseListItemLink.vue.js +0 -33
  1420. package/dist/bundled/components/base/BaseListItemLink.vue2.js +0 -26
  1421. package/dist/bundled/components/base/BaseOverflowMenu.vue.js +0 -5
  1422. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +0 -100
  1423. package/dist/bundled/components/base/BaseOverflowTab.vue.js +0 -36
  1424. package/dist/bundled/components/base/BaseOverflowTab.vue2.js +0 -18
  1425. package/dist/bundled/components/base/BaseSelect.vue.js +0 -5
  1426. package/dist/bundled/components/base/BaseSelect.vue2.js +0 -77
  1427. package/dist/bundled/components/base/BaseSplitPane.vue.js +0 -8
  1428. package/dist/bundled/components/base/BaseSplitPane.vue2.js +0 -183
  1429. package/dist/bundled/components/base/BaseTab.vue.js +0 -36
  1430. package/dist/bundled/components/base/BaseTab.vue2.js +0 -18
  1431. package/dist/bundled/components/base/BaseTag.vue.js +0 -13
  1432. package/dist/bundled/components/command/CommandPrompts.vue.js +0 -5
  1433. package/dist/bundled/components/command/CommandPrompts.vue2.js +0 -91
  1434. package/dist/bundled/components/command/CommandPromptsModal.vue.js +0 -5
  1435. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +0 -45
  1436. package/dist/bundled/components/command/PromptSelect.vue.js +0 -5
  1437. package/dist/bundled/components/command/PromptSelect.vue2.js +0 -142
  1438. package/dist/bundled/components/command/PromptText.vue.js +0 -5
  1439. package/dist/bundled/components/command/PromptText.vue2.js +0 -67
  1440. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +0 -40
  1441. package/dist/bundled/components/misc/HatchedPattern.vue.js +0 -12
  1442. package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +0 -5
  1443. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +0 -72
  1444. package/dist/bundled/components/panel/ControlsComponentProps.vue.js +0 -5
  1445. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +0 -45
  1446. package/dist/bundled/components/panel/ControlsComponentState.vue.js +0 -5
  1447. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +0 -41
  1448. package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +0 -5
  1449. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +0 -46
  1450. package/dist/bundled/components/panel/PaneTabs.vue.js +0 -5
  1451. package/dist/bundled/components/panel/PaneTabs.vue2.js +0 -114
  1452. package/dist/bundled/components/panel/StatePresets.vue.js +0 -5
  1453. package/dist/bundled/components/panel/StatePresets.vue2.js +0 -193
  1454. package/dist/bundled/components/panel/StoryControls.vue.js +0 -5
  1455. package/dist/bundled/components/panel/StoryControls.vue2.js +0 -87
  1456. package/dist/bundled/components/panel/StoryDocs.vue.js +0 -7
  1457. package/dist/bundled/components/panel/StoryDocs.vue2.js +0 -161
  1458. package/dist/bundled/components/panel/StoryEvent.vue.js +0 -5
  1459. package/dist/bundled/components/panel/StoryEvent.vue2.js +0 -59
  1460. package/dist/bundled/components/panel/StoryEvents.vue.js +0 -5
  1461. package/dist/bundled/components/panel/StoryEvents.vue2.js +0 -53
  1462. package/dist/bundled/components/panel/StorySidePanel.vue.js +0 -5
  1463. package/dist/bundled/components/panel/StorySidePanel.vue2.js +0 -83
  1464. package/dist/bundled/components/panel/StorySourceCode.vue.js +0 -8
  1465. package/dist/bundled/components/panel/StorySourceCode.vue2.js +0 -204
  1466. package/dist/bundled/components/search/SearchItem.vue.js +0 -8
  1467. package/dist/bundled/components/search/SearchItem.vue2.js +0 -93
  1468. package/dist/bundled/components/search/SearchItemContent.vue.js +0 -5
  1469. package/dist/bundled/components/search/SearchItemContent.vue2.js +0 -71
  1470. package/dist/bundled/components/search/SearchLoading.vue.js +0 -5
  1471. package/dist/bundled/components/search/SearchLoading.vue2.js +0 -21
  1472. package/dist/bundled/components/search/SearchModal.vue.js +0 -5
  1473. package/dist/bundled/components/search/SearchModal.vue2.js +0 -51
  1474. package/dist/bundled/components/search/SearchPane.vue.js +0 -5
  1475. package/dist/bundled/components/search/SearchPane.vue2.js +0 -272
  1476. package/dist/bundled/components/search/search-docs-data.js +0 -11
  1477. package/dist/bundled/components/search/search-title-data.js +0 -11
  1478. package/dist/bundled/components/story/GenericMountStory.vue.js +0 -5
  1479. package/dist/bundled/components/story/GenericMountStory.vue2.js +0 -34
  1480. package/dist/bundled/components/story/GenericRenderStory.vue.js +0 -5
  1481. package/dist/bundled/components/story/GenericRenderStory.vue2.js +0 -39
  1482. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +0 -8
  1483. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +0 -207
  1484. package/dist/bundled/components/story/StoryVariantGrid.vue.js +0 -5
  1485. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +0 -146
  1486. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +0 -8
  1487. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +0 -153
  1488. package/dist/bundled/components/story/StoryVariantListItem.vue.js +0 -8
  1489. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +0 -55
  1490. package/dist/bundled/components/story/StoryVariantSingle.vue.js +0 -8
  1491. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +0 -107
  1492. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +0 -5
  1493. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +0 -70
  1494. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +0 -5
  1495. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +0 -128
  1496. package/dist/bundled/components/story/StoryVariantSingleView.vue.js +0 -5
  1497. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +0 -66
  1498. package/dist/bundled/components/story/StoryView.vue.js +0 -5
  1499. package/dist/bundled/components/story/StoryView.vue2.js +0 -104
  1500. package/dist/bundled/components/story/StoryViewer.vue.js +0 -8
  1501. package/dist/bundled/components/story/StoryViewer.vue2.js +0 -55
  1502. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +0 -5
  1503. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +0 -31
  1504. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +0 -8
  1505. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +0 -98
  1506. package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +0 -5
  1507. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +0 -36
  1508. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +0 -5
  1509. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +0 -127
  1510. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +0 -5
  1511. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +0 -27
  1512. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +0 -5
  1513. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +0 -26
  1514. package/dist/bundled/components/tree/StoryGroup.vue.js +0 -5
  1515. package/dist/bundled/components/tree/StoryGroup.vue2.js +0 -74
  1516. package/dist/bundled/components/tree/StoryList.vue.js +0 -5
  1517. package/dist/bundled/components/tree/StoryList.vue2.js +0 -41
  1518. package/dist/bundled/components/tree/StoryListFolder.vue.js +0 -8
  1519. package/dist/bundled/components/tree/StoryListFolder.vue2.js +0 -86
  1520. package/dist/bundled/components/tree/StoryListItem.vue.js +0 -8
  1521. package/dist/bundled/components/tree/StoryListItem.vue2.js +0 -69
  1522. package/dist/bundled/plugin.js +0 -49
  1523. package/dist/bundled/router.js +0 -32
  1524. package/dist/bundled/stores/command.js +0 -25
  1525. package/dist/bundled/stores/events.js +0 -29
  1526. package/dist/bundled/stores/folder.js +0 -54
  1527. package/dist/bundled/stores/preview-settings.js +0 -19
  1528. package/dist/bundled/stores/story.js +0 -43
  1529. package/dist/bundled/util/commands.js +0 -57
  1530. package/dist/bundled/util/config.js +0 -8
  1531. package/dist/bundled/util/const.js +0 -10
  1532. package/dist/bundled/util/dark.js +0 -28
  1533. package/dist/bundled/util/docs.js +0 -26
  1534. package/dist/bundled/util/env.js +0 -4
  1535. package/dist/bundled/util/events.js +0 -33
  1536. package/dist/bundled/util/keyboard.js +0 -90
  1537. package/dist/bundled/util/mapping.js +0 -70
  1538. package/dist/bundled/util/open-in-editor.js +0 -6
  1539. package/dist/bundled/util/preview-settings.js +0 -21
  1540. package/dist/bundled/util/responsive.js +0 -6
  1541. package/dist/bundled/util/sandbox.js +0 -11
  1542. package/dist/bundled/util/scroll.js +0 -31
  1543. package/dist/bundled/util/select.js +0 -28
  1544. package/dist/bundled/util/state.js +0 -41
  1545. package/dist/bundled/util/tooltip.js +0 -15
  1546. package/dist/bundled/util/variant.js +0 -21
  1547. package/src/app/components/HomeView.vue +0 -61
  1548. package/src/app/components/app/AppHeader.vue +0 -65
  1549. package/src/app/components/app/AppLogo.vue +0 -25
  1550. package/src/app/components/app/Breadcrumb.vue +0 -98
  1551. package/src/app/components/app/HomeCounter.vue +0 -39
  1552. package/src/app/components/app/InitialLoading.vue +0 -44
  1553. package/src/app/components/app/MobileOverlay.vue +0 -33
  1554. package/src/app/components/base/BaseCheckbox.vue +0 -76
  1555. package/src/app/components/base/BaseCopyIcon.vue +0 -34
  1556. package/src/app/components/base/BaseEmpty.vue +0 -21
  1557. package/src/app/components/base/BaseIcon.vue +0 -31
  1558. package/src/app/components/base/BaseListItem.vue +0 -30
  1559. package/src/app/components/base/BaseListItemLink.vue +0 -56
  1560. package/src/app/components/base/BaseOverflowMenu.vue +0 -119
  1561. package/src/app/components/base/BaseOverflowTab.vue +0 -47
  1562. package/src/app/components/base/BaseSelect.vue +0 -75
  1563. package/src/app/components/base/BaseSplitPane.vue +0 -244
  1564. package/src/app/components/base/BaseTab.vue +0 -47
  1565. package/src/app/components/base/BaseTag.vue +0 -5
  1566. package/src/app/components/command/CommandPromptsModal.vue +0 -41
  1567. package/src/app/components/misc/CheckerboardPattern.vue +0 -32
  1568. package/src/app/components/panel/ControlsComponentPropItem.vue +0 -73
  1569. package/src/app/components/panel/ControlsComponentProps.vue +0 -34
  1570. package/src/app/components/panel/ControlsComponentState.vue +0 -38
  1571. package/src/app/components/panel/ControlsComponentStateItem.vue +0 -44
  1572. package/src/app/components/panel/PaneTabs.vue +0 -84
  1573. package/src/app/components/panel/StatePresets.vue +0 -199
  1574. package/src/app/components/panel/StoryControls.vue +0 -97
  1575. package/src/app/components/panel/StoryDocs.vue +0 -202
  1576. package/src/app/components/panel/StoryEvent.vue +0 -54
  1577. package/src/app/components/panel/StoryEvents.vue +0 -48
  1578. package/src/app/components/panel/StorySidePanel.vue +0 -76
  1579. package/src/app/components/panel/StorySourceCode.vue +0 -248
  1580. package/src/app/components/search/SearchItem.vue +0 -89
  1581. package/src/app/components/search/SearchItemContent.vue +0 -67
  1582. package/src/app/components/search/SearchLoading.vue +0 -16
  1583. package/src/app/components/search/SearchModal.vue +0 -44
  1584. package/src/app/components/search/SearchPane.vue +0 -319
  1585. package/src/app/components/search/search-docs-data.ts +0 -9
  1586. package/src/app/components/search/search-title-data.ts +0 -9
  1587. package/src/app/components/search/types.ts +0 -4
  1588. package/src/app/components/story/StoryResponsivePreview.vue +0 -216
  1589. package/src/app/components/story/StoryVariantGrid.vue +0 -169
  1590. package/src/app/components/story/StoryVariantGridItem.vue +0 -163
  1591. package/src/app/components/story/StoryVariantListItem.vue +0 -52
  1592. package/src/app/components/story/StoryVariantSingle.vue +0 -105
  1593. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +0 -66
  1594. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +0 -143
  1595. package/src/app/components/story/StoryVariantSingleView.vue +0 -61
  1596. package/src/app/components/story/StoryView.vue +0 -110
  1597. package/src/app/components/story/StoryViewer.vue +0 -52
  1598. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +0 -23
  1599. package/src/app/components/toolbar/ToolbarBackground.vue +0 -81
  1600. package/src/app/components/toolbar/ToolbarNewTab.vue +0 -29
  1601. package/src/app/components/toolbar/ToolbarResponsiveSize.vue +0 -82
  1602. package/src/app/components/toolbar/ToolbarTextDirection.vue +0 -19
  1603. package/src/app/components/toolbar/ToolbarTitle.vue +0 -21
  1604. package/src/app/components/tree/StoryGroup.vue +0 -73
  1605. package/src/app/components/tree/StoryList.vue +0 -35
  1606. package/src/app/components/tree/StoryListFolder.vue +0 -88
  1607. package/src/app/components/tree/StoryListItem.vue +0 -72
  1608. package/src/app/router.ts +0 -29
  1609. package/src/app/stores/command.ts +0 -26
  1610. package/src/app/stores/folder.ts +0 -63
  1611. package/src/app/stores/preview-settings.ts +0 -18
  1612. package/src/app/stores/story.ts +0 -47
  1613. package/src/app/style/floating.pcss +0 -34
  1614. package/src/app/style/main.pcss +0 -100
  1615. package/src/app/style/sandbox.css +0 -24
  1616. package/src/app/style/transitions.pcss +0 -51
  1617. package/src/app/util/commands.ts +0 -57
  1618. package/src/app/util/responsive.ts +0 -3
  1619. package/src/app/util/sandbox.ts +0 -9
  1620. package/src/app/util/scroll.ts +0 -32
  1621. package/src/app/util/tooltip.ts +0 -13
  1622. package/src/app/util/variant.ts +0 -21
  1623. package/tailwind.config.cjs +0 -137
@@ -0,0 +1,2463 @@
1
+ // ../../node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
2
+ /*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */
3
+ function _OverloadYield(e, d) {
4
+ this.v = e, this.k = d;
5
+ }
6
+ function _arrayLikeToArray(r, a) {
7
+ (null == a || a > r.length) && (a = r.length);
8
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
9
+ return n;
10
+ }
11
+ function _arrayWithHoles(r) {
12
+ if (Array.isArray(r)) return r;
13
+ }
14
+ function _iterableToArrayLimit(r, l) {
15
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
16
+ if (null != t) {
17
+ var e, n, i, u, a = [], f = !0, o = !1;
18
+ try {
19
+ if (i = (t = t.call(r)).next, 0 === l) {
20
+ if (Object(t) !== t) return;
21
+ f = !1;
22
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
23
+ } catch (r) {
24
+ o = !0, n = r;
25
+ } finally {
26
+ try {
27
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
28
+ } finally {
29
+ if (o) throw n;
30
+ }
31
+ }
32
+ return a;
33
+ }
34
+ }
35
+ function _nonIterableRest() {
36
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
+ }
38
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
39
+ function _slicedToArray(r, e) {
40
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
41
+ }
42
+ function _unsupportedIterableToArray(r, a) {
43
+ if (r) {
44
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
45
+ var t = {}.toString.call(r).slice(8, -1);
46
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
47
+ }
48
+ }
49
+ function AsyncGenerator(e) {
50
+ var t, n;
51
+ function resume(t, n) {
52
+ try {
53
+ var r = e[t](n), o = r.value, u = o instanceof _OverloadYield;
54
+ Promise.resolve(u ? o.v : o).then(function(n) {
55
+ if (u) {
56
+ var i = "return" === t && o.k ? t : "next";
57
+ if (!o.k || n.done) return resume(i, n);
58
+ n = e[i](n).value;
59
+ }
60
+ settle(!!r.done, n);
61
+ }, function(e) {
62
+ resume("throw", e);
63
+ });
64
+ } catch (e) {
65
+ settle(2, e);
66
+ }
67
+ }
68
+ function settle(e, r) {
69
+ 2 === e ? t.reject(r) : t.resolve({
70
+ value: r,
71
+ done: e
72
+ }), (t = t.next) ? resume(t.key, t.arg) : n = null;
73
+ }
74
+ this._invoke = function(e, r) {
75
+ return new Promise(function(o, u) {
76
+ var i = {
77
+ key: e,
78
+ arg: r,
79
+ resolve: o,
80
+ reject: u,
81
+ next: null
82
+ };
83
+ n ? n = n.next = i : (t = n = i, resume(e, r));
84
+ });
85
+ }, "function" != typeof e.return && (this.return = void 0);
86
+ }
87
+ AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function() {
88
+ return this;
89
+ }, AsyncGenerator.prototype.next = function(e) {
90
+ return this._invoke("next", e);
91
+ }, AsyncGenerator.prototype.throw = function(e) {
92
+ return this._invoke("throw", e);
93
+ }, AsyncGenerator.prototype.return = function(e) {
94
+ return this._invoke("return", e);
95
+ };
96
+ var entries = Object.entries;
97
+ var setPrototypeOf = Object.setPrototypeOf;
98
+ var isFrozen = Object.isFrozen;
99
+ var getPrototypeOf = Object.getPrototypeOf;
100
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
101
+ var freeze = Object.freeze;
102
+ var seal = Object.seal;
103
+ var create = Object.create;
104
+ var _ref = typeof Reflect !== "undefined" && Reflect;
105
+ var apply = _ref.apply;
106
+ var construct = _ref.construct;
107
+ if (!freeze) freeze = function freeze(x) {
108
+ return x;
109
+ };
110
+ if (!seal) seal = function seal(x) {
111
+ return x;
112
+ };
113
+ if (!apply) apply = function apply(func, thisArg) {
114
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
115
+ return func.apply(thisArg, args);
116
+ };
117
+ if (!construct) construct = function construct(Func) {
118
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
119
+ return new Func(...args);
120
+ };
121
+ var arrayForEach = unapply(Array.prototype.forEach);
122
+ Array.prototype.indexOf;
123
+ var arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
124
+ var arrayPop = unapply(Array.prototype.pop);
125
+ var arrayPush = unapply(Array.prototype.push);
126
+ Array.prototype.slice;
127
+ var arraySplice = unapply(Array.prototype.splice);
128
+ var arrayIsArray = Array.isArray;
129
+ var stringToLowerCase = unapply(String.prototype.toLowerCase);
130
+ var stringToString = unapply(String.prototype.toString);
131
+ var stringMatch = unapply(String.prototype.match);
132
+ var stringReplace = unapply(String.prototype.replace);
133
+ var stringIndexOf = unapply(String.prototype.indexOf);
134
+ var stringTrim = unapply(String.prototype.trim);
135
+ var numberToString = unapply(Number.prototype.toString);
136
+ var booleanToString = unapply(Boolean.prototype.toString);
137
+ var bigintToString = typeof BigInt === "undefined" ? null : unapply(BigInt.prototype.toString);
138
+ var symbolToString = typeof Symbol === "undefined" ? null : unapply(Symbol.prototype.toString);
139
+ var objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
140
+ var objectToString = unapply(Object.prototype.toString);
141
+ var regExpTest = unapply(RegExp.prototype.test);
142
+ var typeErrorCreate = unconstruct(TypeError);
143
+ /**
144
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
145
+ *
146
+ * @param func - The function to be wrapped and called.
147
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
148
+ */
149
+ function unapply(func) {
150
+ return function(thisArg) {
151
+ if (thisArg instanceof RegExp) thisArg.lastIndex = 0;
152
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) args[_key3 - 1] = arguments[_key3];
153
+ return apply(func, thisArg, args);
154
+ };
155
+ }
156
+ /**
157
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
158
+ *
159
+ * @param func - The constructor function to be wrapped and called.
160
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
161
+ */
162
+ function unconstruct(Func) {
163
+ return function() {
164
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4];
165
+ return construct(Func, args);
166
+ };
167
+ }
168
+ /**
169
+ * Add properties to a lookup table
170
+ *
171
+ * @param set - The set to which elements will be added.
172
+ * @param array - The array containing elements to be added to the set.
173
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
174
+ * @returns The modified set with added elements.
175
+ */
176
+ function addToSet(set, array) {
177
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
178
+ if (setPrototypeOf) setPrototypeOf(set, null);
179
+ if (!arrayIsArray(array)) return set;
180
+ let l = array.length;
181
+ while (l--) {
182
+ let element = array[l];
183
+ if (typeof element === "string") {
184
+ const lcElement = transformCaseFunc(element);
185
+ if (lcElement !== element) {
186
+ if (!isFrozen(array)) array[l] = lcElement;
187
+ element = lcElement;
188
+ }
189
+ }
190
+ set[element] = true;
191
+ }
192
+ return set;
193
+ }
194
+ /**
195
+ * Clean up an array to harden against CSPP
196
+ *
197
+ * @param array - The array to be cleaned.
198
+ * @returns The cleaned version of the array
199
+ */
200
+ function cleanArray(array) {
201
+ for (let index = 0; index < array.length; index++) if (!objectHasOwnProperty(array, index)) array[index] = null;
202
+ return array;
203
+ }
204
+ /**
205
+ * Shallow clone an object
206
+ *
207
+ * @param object - The object to be cloned.
208
+ * @returns A new object that copies the original.
209
+ */
210
+ function clone(object) {
211
+ const newObject = create(null);
212
+ for (const _ref2 of entries(object)) {
213
+ var _ref3 = _slicedToArray(_ref2, 2);
214
+ const property = _ref3[0];
215
+ const value = _ref3[1];
216
+ if (objectHasOwnProperty(object, property)) {
217
+ if (arrayIsArray(value)) newObject[property] = cleanArray(value);
218
+ else if (value && typeof value === "object" && value.constructor === Object) newObject[property] = clone(value);
219
+ else newObject[property] = value;
220
+ }
221
+ }
222
+ return newObject;
223
+ }
224
+ /**
225
+ * Convert non-node values into strings without depending on direct property access.
226
+ *
227
+ * @param value - The value to stringify.
228
+ * @returns A string representation of the provided value.
229
+ */
230
+ function stringifyValue(value) {
231
+ switch (typeof value) {
232
+ case "string": return value;
233
+ case "number": return numberToString(value);
234
+ case "boolean": return booleanToString(value);
235
+ case "bigint": return bigintToString ? bigintToString(value) : "0";
236
+ case "symbol": return symbolToString ? symbolToString(value) : "Symbol()";
237
+ case "undefined": return objectToString(value);
238
+ case "function":
239
+ case "object": {
240
+ if (value === null) return objectToString(value);
241
+ const valueAsRecord = value;
242
+ const valueToString = lookupGetter(valueAsRecord, "toString");
243
+ if (typeof valueToString === "function") {
244
+ const stringified = valueToString(valueAsRecord);
245
+ return typeof stringified === "string" ? stringified : objectToString(stringified);
246
+ }
247
+ return objectToString(value);
248
+ }
249
+ default: return objectToString(value);
250
+ }
251
+ }
252
+ /**
253
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
254
+ *
255
+ * @param object - The object to look up the getter function in its prototype chain.
256
+ * @param prop - The property name for which to find the getter function.
257
+ * @returns The getter function found in the prototype chain or a fallback function.
258
+ */
259
+ function lookupGetter(object, prop) {
260
+ while (object !== null) {
261
+ const desc = getOwnPropertyDescriptor(object, prop);
262
+ if (desc) {
263
+ if (desc.get) return unapply(desc.get);
264
+ if (typeof desc.value === "function") return unapply(desc.value);
265
+ }
266
+ object = getPrototypeOf(object);
267
+ }
268
+ function fallbackValue() {
269
+ return null;
270
+ }
271
+ return fallbackValue;
272
+ }
273
+ function isRegex(value) {
274
+ try {
275
+ regExpTest(value, "");
276
+ return true;
277
+ } catch (_unused) {
278
+ return false;
279
+ }
280
+ }
281
+ var html$1 = freeze([
282
+ "a",
283
+ "abbr",
284
+ "acronym",
285
+ "address",
286
+ "area",
287
+ "article",
288
+ "aside",
289
+ "audio",
290
+ "b",
291
+ "bdi",
292
+ "bdo",
293
+ "big",
294
+ "blink",
295
+ "blockquote",
296
+ "body",
297
+ "br",
298
+ "button",
299
+ "canvas",
300
+ "caption",
301
+ "center",
302
+ "cite",
303
+ "code",
304
+ "col",
305
+ "colgroup",
306
+ "content",
307
+ "data",
308
+ "datalist",
309
+ "dd",
310
+ "decorator",
311
+ "del",
312
+ "details",
313
+ "dfn",
314
+ "dialog",
315
+ "dir",
316
+ "div",
317
+ "dl",
318
+ "dt",
319
+ "element",
320
+ "em",
321
+ "fieldset",
322
+ "figcaption",
323
+ "figure",
324
+ "font",
325
+ "footer",
326
+ "form",
327
+ "h1",
328
+ "h2",
329
+ "h3",
330
+ "h4",
331
+ "h5",
332
+ "h6",
333
+ "head",
334
+ "header",
335
+ "hgroup",
336
+ "hr",
337
+ "html",
338
+ "i",
339
+ "img",
340
+ "input",
341
+ "ins",
342
+ "kbd",
343
+ "label",
344
+ "legend",
345
+ "li",
346
+ "main",
347
+ "map",
348
+ "mark",
349
+ "marquee",
350
+ "menu",
351
+ "menuitem",
352
+ "meter",
353
+ "nav",
354
+ "nobr",
355
+ "ol",
356
+ "optgroup",
357
+ "option",
358
+ "output",
359
+ "p",
360
+ "picture",
361
+ "pre",
362
+ "progress",
363
+ "q",
364
+ "rp",
365
+ "rt",
366
+ "ruby",
367
+ "s",
368
+ "samp",
369
+ "search",
370
+ "section",
371
+ "select",
372
+ "shadow",
373
+ "slot",
374
+ "small",
375
+ "source",
376
+ "spacer",
377
+ "span",
378
+ "strike",
379
+ "strong",
380
+ "style",
381
+ "sub",
382
+ "summary",
383
+ "sup",
384
+ "table",
385
+ "tbody",
386
+ "td",
387
+ "template",
388
+ "textarea",
389
+ "tfoot",
390
+ "th",
391
+ "thead",
392
+ "time",
393
+ "tr",
394
+ "track",
395
+ "tt",
396
+ "u",
397
+ "ul",
398
+ "var",
399
+ "video",
400
+ "wbr"
401
+ ]);
402
+ var svg$1 = freeze([
403
+ "svg",
404
+ "a",
405
+ "altglyph",
406
+ "altglyphdef",
407
+ "altglyphitem",
408
+ "animatecolor",
409
+ "animatemotion",
410
+ "animatetransform",
411
+ "circle",
412
+ "clippath",
413
+ "defs",
414
+ "desc",
415
+ "ellipse",
416
+ "enterkeyhint",
417
+ "exportparts",
418
+ "filter",
419
+ "font",
420
+ "g",
421
+ "glyph",
422
+ "glyphref",
423
+ "hkern",
424
+ "image",
425
+ "inputmode",
426
+ "line",
427
+ "lineargradient",
428
+ "marker",
429
+ "mask",
430
+ "metadata",
431
+ "mpath",
432
+ "part",
433
+ "path",
434
+ "pattern",
435
+ "polygon",
436
+ "polyline",
437
+ "radialgradient",
438
+ "rect",
439
+ "stop",
440
+ "style",
441
+ "switch",
442
+ "symbol",
443
+ "text",
444
+ "textpath",
445
+ "title",
446
+ "tref",
447
+ "tspan",
448
+ "view",
449
+ "vkern"
450
+ ]);
451
+ var svgFilters = freeze([
452
+ "feBlend",
453
+ "feColorMatrix",
454
+ "feComponentTransfer",
455
+ "feComposite",
456
+ "feConvolveMatrix",
457
+ "feDiffuseLighting",
458
+ "feDisplacementMap",
459
+ "feDistantLight",
460
+ "feDropShadow",
461
+ "feFlood",
462
+ "feFuncA",
463
+ "feFuncB",
464
+ "feFuncG",
465
+ "feFuncR",
466
+ "feGaussianBlur",
467
+ "feImage",
468
+ "feMerge",
469
+ "feMergeNode",
470
+ "feMorphology",
471
+ "feOffset",
472
+ "fePointLight",
473
+ "feSpecularLighting",
474
+ "feSpotLight",
475
+ "feTile",
476
+ "feTurbulence"
477
+ ]);
478
+ var svgDisallowed = freeze([
479
+ "animate",
480
+ "color-profile",
481
+ "cursor",
482
+ "discard",
483
+ "font-face",
484
+ "font-face-format",
485
+ "font-face-name",
486
+ "font-face-src",
487
+ "font-face-uri",
488
+ "foreignobject",
489
+ "hatch",
490
+ "hatchpath",
491
+ "mesh",
492
+ "meshgradient",
493
+ "meshpatch",
494
+ "meshrow",
495
+ "missing-glyph",
496
+ "script",
497
+ "set",
498
+ "solidcolor",
499
+ "unknown",
500
+ "use"
501
+ ]);
502
+ var mathMl$1 = freeze([
503
+ "math",
504
+ "menclose",
505
+ "merror",
506
+ "mfenced",
507
+ "mfrac",
508
+ "mglyph",
509
+ "mi",
510
+ "mlabeledtr",
511
+ "mmultiscripts",
512
+ "mn",
513
+ "mo",
514
+ "mover",
515
+ "mpadded",
516
+ "mphantom",
517
+ "mroot",
518
+ "mrow",
519
+ "ms",
520
+ "mspace",
521
+ "msqrt",
522
+ "mstyle",
523
+ "msub",
524
+ "msup",
525
+ "msubsup",
526
+ "mtable",
527
+ "mtd",
528
+ "mtext",
529
+ "mtr",
530
+ "munder",
531
+ "munderover",
532
+ "mprescripts"
533
+ ]);
534
+ var mathMlDisallowed = freeze([
535
+ "maction",
536
+ "maligngroup",
537
+ "malignmark",
538
+ "mlongdiv",
539
+ "mscarries",
540
+ "mscarry",
541
+ "msgroup",
542
+ "mstack",
543
+ "msline",
544
+ "msrow",
545
+ "semantics",
546
+ "annotation",
547
+ "annotation-xml",
548
+ "mprescripts",
549
+ "none"
550
+ ]);
551
+ var text = freeze(["#text"]);
552
+ var html = freeze([
553
+ "accept",
554
+ "action",
555
+ "align",
556
+ "alt",
557
+ "autocapitalize",
558
+ "autocomplete",
559
+ "autopictureinpicture",
560
+ "autoplay",
561
+ "background",
562
+ "bgcolor",
563
+ "border",
564
+ "capture",
565
+ "cellpadding",
566
+ "cellspacing",
567
+ "checked",
568
+ "cite",
569
+ "class",
570
+ "clear",
571
+ "color",
572
+ "cols",
573
+ "colspan",
574
+ "command",
575
+ "commandfor",
576
+ "controls",
577
+ "controlslist",
578
+ "coords",
579
+ "crossorigin",
580
+ "datetime",
581
+ "decoding",
582
+ "default",
583
+ "dir",
584
+ "disabled",
585
+ "disablepictureinpicture",
586
+ "disableremoteplayback",
587
+ "download",
588
+ "draggable",
589
+ "enctype",
590
+ "enterkeyhint",
591
+ "exportparts",
592
+ "face",
593
+ "for",
594
+ "headers",
595
+ "height",
596
+ "hidden",
597
+ "high",
598
+ "href",
599
+ "hreflang",
600
+ "id",
601
+ "inert",
602
+ "inputmode",
603
+ "integrity",
604
+ "ismap",
605
+ "kind",
606
+ "label",
607
+ "lang",
608
+ "list",
609
+ "loading",
610
+ "loop",
611
+ "low",
612
+ "max",
613
+ "maxlength",
614
+ "media",
615
+ "method",
616
+ "min",
617
+ "minlength",
618
+ "multiple",
619
+ "muted",
620
+ "name",
621
+ "nonce",
622
+ "noshade",
623
+ "novalidate",
624
+ "nowrap",
625
+ "open",
626
+ "optimum",
627
+ "part",
628
+ "pattern",
629
+ "placeholder",
630
+ "playsinline",
631
+ "popover",
632
+ "popovertarget",
633
+ "popovertargetaction",
634
+ "poster",
635
+ "preload",
636
+ "pubdate",
637
+ "radiogroup",
638
+ "readonly",
639
+ "rel",
640
+ "required",
641
+ "rev",
642
+ "reversed",
643
+ "role",
644
+ "rows",
645
+ "rowspan",
646
+ "spellcheck",
647
+ "scope",
648
+ "selected",
649
+ "shape",
650
+ "size",
651
+ "sizes",
652
+ "slot",
653
+ "span",
654
+ "srclang",
655
+ "start",
656
+ "src",
657
+ "srcset",
658
+ "step",
659
+ "style",
660
+ "summary",
661
+ "tabindex",
662
+ "title",
663
+ "translate",
664
+ "type",
665
+ "usemap",
666
+ "valign",
667
+ "value",
668
+ "width",
669
+ "wrap",
670
+ "xmlns"
671
+ ]);
672
+ var svg = freeze([
673
+ "accent-height",
674
+ "accumulate",
675
+ "additive",
676
+ "alignment-baseline",
677
+ "amplitude",
678
+ "ascent",
679
+ "attributename",
680
+ "attributetype",
681
+ "azimuth",
682
+ "basefrequency",
683
+ "baseline-shift",
684
+ "begin",
685
+ "bias",
686
+ "by",
687
+ "class",
688
+ "clip",
689
+ "clippathunits",
690
+ "clip-path",
691
+ "clip-rule",
692
+ "color",
693
+ "color-interpolation",
694
+ "color-interpolation-filters",
695
+ "color-profile",
696
+ "color-rendering",
697
+ "cx",
698
+ "cy",
699
+ "d",
700
+ "dx",
701
+ "dy",
702
+ "diffuseconstant",
703
+ "direction",
704
+ "display",
705
+ "divisor",
706
+ "dominant-baseline",
707
+ "dur",
708
+ "edgemode",
709
+ "elevation",
710
+ "end",
711
+ "exponent",
712
+ "fill",
713
+ "fill-opacity",
714
+ "fill-rule",
715
+ "filter",
716
+ "filterunits",
717
+ "flood-color",
718
+ "flood-opacity",
719
+ "font-family",
720
+ "font-size",
721
+ "font-size-adjust",
722
+ "font-stretch",
723
+ "font-style",
724
+ "font-variant",
725
+ "font-weight",
726
+ "fx",
727
+ "fy",
728
+ "g1",
729
+ "g2",
730
+ "glyph-name",
731
+ "glyphref",
732
+ "gradientunits",
733
+ "gradienttransform",
734
+ "height",
735
+ "href",
736
+ "id",
737
+ "image-rendering",
738
+ "in",
739
+ "in2",
740
+ "intercept",
741
+ "k",
742
+ "k1",
743
+ "k2",
744
+ "k3",
745
+ "k4",
746
+ "kerning",
747
+ "keypoints",
748
+ "keysplines",
749
+ "keytimes",
750
+ "lang",
751
+ "lengthadjust",
752
+ "letter-spacing",
753
+ "kernelmatrix",
754
+ "kernelunitlength",
755
+ "lighting-color",
756
+ "local",
757
+ "marker-end",
758
+ "marker-mid",
759
+ "marker-start",
760
+ "markerheight",
761
+ "markerunits",
762
+ "markerwidth",
763
+ "maskcontentunits",
764
+ "maskunits",
765
+ "max",
766
+ "mask",
767
+ "mask-type",
768
+ "media",
769
+ "method",
770
+ "mode",
771
+ "min",
772
+ "name",
773
+ "numoctaves",
774
+ "offset",
775
+ "operator",
776
+ "opacity",
777
+ "order",
778
+ "orient",
779
+ "orientation",
780
+ "origin",
781
+ "overflow",
782
+ "paint-order",
783
+ "path",
784
+ "pathlength",
785
+ "patterncontentunits",
786
+ "patterntransform",
787
+ "patternunits",
788
+ "pointer-events",
789
+ "points",
790
+ "preservealpha",
791
+ "preserveaspectratio",
792
+ "primitiveunits",
793
+ "r",
794
+ "rx",
795
+ "ry",
796
+ "radius",
797
+ "refx",
798
+ "refy",
799
+ "repeatcount",
800
+ "repeatdur",
801
+ "restart",
802
+ "result",
803
+ "rotate",
804
+ "scale",
805
+ "seed",
806
+ "shape-rendering",
807
+ "slope",
808
+ "specularconstant",
809
+ "specularexponent",
810
+ "spreadmethod",
811
+ "startoffset",
812
+ "stddeviation",
813
+ "stitchtiles",
814
+ "stop-color",
815
+ "stop-opacity",
816
+ "stroke-dasharray",
817
+ "stroke-dashoffset",
818
+ "stroke-linecap",
819
+ "stroke-linejoin",
820
+ "stroke-miterlimit",
821
+ "stroke-opacity",
822
+ "stroke",
823
+ "stroke-width",
824
+ "style",
825
+ "surfacescale",
826
+ "systemlanguage",
827
+ "tabindex",
828
+ "tablevalues",
829
+ "targetx",
830
+ "targety",
831
+ "transform",
832
+ "transform-origin",
833
+ "text-anchor",
834
+ "text-decoration",
835
+ "text-orientation",
836
+ "text-rendering",
837
+ "textlength",
838
+ "type",
839
+ "u1",
840
+ "u2",
841
+ "unicode",
842
+ "values",
843
+ "vector-effect",
844
+ "viewbox",
845
+ "visibility",
846
+ "version",
847
+ "vert-adv-y",
848
+ "vert-origin-x",
849
+ "vert-origin-y",
850
+ "width",
851
+ "word-spacing",
852
+ "wrap",
853
+ "writing-mode",
854
+ "xchannelselector",
855
+ "ychannelselector",
856
+ "x",
857
+ "x1",
858
+ "x2",
859
+ "xmlns",
860
+ "y",
861
+ "y1",
862
+ "y2",
863
+ "z",
864
+ "zoomandpan"
865
+ ]);
866
+ var mathMl = freeze([
867
+ "accent",
868
+ "accentunder",
869
+ "align",
870
+ "bevelled",
871
+ "close",
872
+ "columnalign",
873
+ "columnlines",
874
+ "columnspacing",
875
+ "columnspan",
876
+ "denomalign",
877
+ "depth",
878
+ "dir",
879
+ "display",
880
+ "displaystyle",
881
+ "encoding",
882
+ "fence",
883
+ "frame",
884
+ "height",
885
+ "href",
886
+ "id",
887
+ "largeop",
888
+ "length",
889
+ "linethickness",
890
+ "lquote",
891
+ "lspace",
892
+ "mathbackground",
893
+ "mathcolor",
894
+ "mathsize",
895
+ "mathvariant",
896
+ "maxsize",
897
+ "minsize",
898
+ "movablelimits",
899
+ "notation",
900
+ "numalign",
901
+ "open",
902
+ "rowalign",
903
+ "rowlines",
904
+ "rowspacing",
905
+ "rowspan",
906
+ "rspace",
907
+ "rquote",
908
+ "scriptlevel",
909
+ "scriptminsize",
910
+ "scriptsizemultiplier",
911
+ "selection",
912
+ "separator",
913
+ "separators",
914
+ "stretchy",
915
+ "subscriptshift",
916
+ "supscriptshift",
917
+ "symmetric",
918
+ "voffset",
919
+ "width",
920
+ "xmlns"
921
+ ]);
922
+ var xml = freeze([
923
+ "xlink:href",
924
+ "xml:id",
925
+ "xlink:title",
926
+ "xml:space",
927
+ "xmlns:xlink"
928
+ ]);
929
+ var MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
930
+ var ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
931
+ var TMPLIT_EXPR = seal(/\${[\w\W]*/g);
932
+ var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
933
+ var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
934
+ var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);
935
+ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
936
+ var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);
937
+ var DOCTYPE_NAME = seal(/^html$/i);
938
+ var CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
939
+ var ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
940
+ var COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
941
+ var FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
942
+ var SELF_CLOSING_TAG = seal(/\/>/i);
943
+ var NODE_TYPE = {
944
+ element: 1,
945
+ attribute: 2,
946
+ text: 3,
947
+ cdataSection: 4,
948
+ entityReference: 5,
949
+ entityNode: 6,
950
+ processingInstruction: 7,
951
+ comment: 8,
952
+ document: 9,
953
+ documentType: 10,
954
+ documentFragment: 11,
955
+ notation: 12
956
+ };
957
+ var LITERAL_TEXT_ELEMENT_NAMES = [
958
+ "style",
959
+ "script",
960
+ "xmp",
961
+ "iframe",
962
+ "noembed",
963
+ "noframes",
964
+ "plaintext",
965
+ "noscript"
966
+ ];
967
+ var LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));
968
+ var LITERAL_TEXT_CLOSE = function() {
969
+ const map = {};
970
+ arrayForEach(LITERAL_TEXT_ELEMENT_NAMES, (name) => {
971
+ map[name] = seal(new RegExp("</" + name + "(?=[\\t\\n\\f\\r />])", "i"));
972
+ });
973
+ return freeze(map);
974
+ }();
975
+ var getGlobal = function getGlobal() {
976
+ return typeof window === "undefined" ? null : window;
977
+ };
978
+ /**
979
+ * Creates a no-op policy for internal use only.
980
+ * Don't export this function outside this module!
981
+ * @param trustedTypes The policy factory.
982
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
983
+ * @return The policy created (or null, if Trusted Types
984
+ * are not supported or creating the policy failed).
985
+ */
986
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
987
+ if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") return null;
988
+ let suffix = null;
989
+ const ATTR_NAME = "data-tt-policy-suffix";
990
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) suffix = purifyHostElement.getAttribute(ATTR_NAME);
991
+ const policyName = "dompurify" + (suffix ? "#" + suffix : "");
992
+ try {
993
+ return trustedTypes.createPolicy(policyName, {
994
+ createHTML(html) {
995
+ return html;
996
+ },
997
+ createScriptURL(scriptUrl) {
998
+ return scriptUrl;
999
+ }
1000
+ });
1001
+ } catch (_) {
1002
+ console.warn("TrustedTypes policy " + policyName + " could not be created.");
1003
+ return null;
1004
+ }
1005
+ };
1006
+ var _createHooksMap = function _createHooksMap() {
1007
+ return {
1008
+ afterSanitizeAttributes: [],
1009
+ afterSanitizeElements: [],
1010
+ afterSanitizeShadowDOM: [],
1011
+ beforeSanitizeAttributes: [],
1012
+ beforeSanitizeElements: [],
1013
+ beforeSanitizeShadowDOM: [],
1014
+ uponSanitizeAttribute: [],
1015
+ uponSanitizeElement: [],
1016
+ uponSanitizeShadowNode: []
1017
+ };
1018
+ };
1019
+ /**
1020
+ * Resolve a set-valued configuration option: a fresh set built from
1021
+ * cfg[key] when it is an own array property (seeded with a clone of
1022
+ * options.base when given, case-normalized via options.transform),
1023
+ * the fallback set otherwise.
1024
+ *
1025
+ * @param cfg the cloned, prototype-free configuration object
1026
+ * @param key the configuration property to read
1027
+ * @param fallback the set to use when the option is absent or not an array
1028
+ * @param options transform and optional base set to merge into
1029
+ * @returns the resolved set
1030
+ */
1031
+ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
1032
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
1033
+ };
1034
+ /**
1035
+ * Resolve an object-valued configuration option: a prototype-free clone
1036
+ * of cfg[key] when it is an own, truthy object property, else a fresh
1037
+ * fallback built by makeFallback (fresh on every parse, so a previous
1038
+ * parse can never leak state into the next one).
1039
+ *
1040
+ * @param cfg the cloned, prototype-free configuration object
1041
+ * @param key the configuration property to read
1042
+ * @param makeFallback builds the fallback value when the option is absent
1043
+ * @returns the resolved object
1044
+ */
1045
+ var _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {
1046
+ const value = objectHasOwnProperty(cfg, key) ? cfg[key] : void 0;
1047
+ return value && typeof value === "object" ? clone(value) : makeFallback();
1048
+ };
1049
+ function createDOMPurify() {
1050
+ let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
1051
+ const DOMPurify = (root) => createDOMPurify(root);
1052
+ DOMPurify.version = "3.4.16";
1053
+ DOMPurify.removed = [];
1054
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
1055
+ DOMPurify.isSupported = false;
1056
+ return DOMPurify;
1057
+ }
1058
+ let document = window.document;
1059
+ const originalDocument = document;
1060
+ const currentScript = originalDocument.currentScript;
1061
+ window.DocumentFragment;
1062
+ const HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter;
1063
+ window.NamedNodeMap === void 0 && (window.NamedNodeMap || window.MozNamedAttrMap);
1064
+ window.HTMLFormElement;
1065
+ const DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;
1066
+ const ElementPrototype = Element.prototype;
1067
+ const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
1068
+ const remove = lookupGetter(ElementPrototype, "remove");
1069
+ const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
1070
+ const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
1071
+ const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
1072
+ const getParentNode = lookupGetter(ElementPrototype, "parentNode");
1073
+ const getShadowRoot = lookupGetter(ElementPrototype, "shadowRoot");
1074
+ const getAttributes = lookupGetter(ElementPrototype, "attributes");
1075
+ const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
1076
+ const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
1077
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
1078
+ const _readNodeType = function _readNodeType(node) {
1079
+ return getNodeType ? getNodeType(node) : node.nodeType;
1080
+ };
1081
+ const _readNodeName = function _readNodeName(node) {
1082
+ return getNodeName ? getNodeName(node) : node.nodeName;
1083
+ };
1084
+ if (typeof HTMLTemplateElement === "function") {
1085
+ const template = document.createElement("template");
1086
+ if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
1087
+ }
1088
+ let trustedTypesPolicy;
1089
+ let emptyHTML = "";
1090
+ let defaultTrustedTypesPolicy;
1091
+ let defaultTrustedTypesPolicyResolved = false;
1092
+ let IN_TRUSTED_TYPES_POLICY = 0;
1093
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
1094
+ if (IN_TRUSTED_TYPES_POLICY > 0) throw typeErrorCreate("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
1095
+ };
1096
+ const _createTrustedHTML = function _createTrustedHTML(html) {
1097
+ _assertNotInTrustedTypesPolicy();
1098
+ IN_TRUSTED_TYPES_POLICY++;
1099
+ try {
1100
+ return trustedTypesPolicy.createHTML(html);
1101
+ } finally {
1102
+ IN_TRUSTED_TYPES_POLICY--;
1103
+ }
1104
+ };
1105
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
1106
+ _assertNotInTrustedTypesPolicy();
1107
+ IN_TRUSTED_TYPES_POLICY++;
1108
+ try {
1109
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
1110
+ } finally {
1111
+ IN_TRUSTED_TYPES_POLICY--;
1112
+ }
1113
+ };
1114
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
1115
+ if (!defaultTrustedTypesPolicyResolved) {
1116
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
1117
+ defaultTrustedTypesPolicyResolved = true;
1118
+ }
1119
+ return defaultTrustedTypesPolicy;
1120
+ };
1121
+ const _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
1122
+ const importNode = originalDocument.importNode;
1123
+ let hooks = _createHooksMap();
1124
+ /**
1125
+ * Expose whether this browser supports running the full DOMPurify.
1126
+ */
1127
+ DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
1128
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, TMPLIT_EXPR$1 = TMPLIT_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE, CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
1129
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
1130
+ /**
1131
+ * We consider the elements and attributes below to be safe. Ideally
1132
+ * don't add any new ones but feel free to remove unwanted ones.
1133
+ */
1134
+ let ALLOWED_TAGS = null;
1135
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [
1136
+ ...html$1,
1137
+ ...svg$1,
1138
+ ...svgFilters,
1139
+ ...mathMl$1,
1140
+ ...text
1141
+ ]);
1142
+ let ALLOWED_ATTR = null;
1143
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [
1144
+ ...html,
1145
+ ...svg,
1146
+ ...mathMl,
1147
+ ...xml
1148
+ ]);
1149
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
1150
+ tagNameCheck: {
1151
+ writable: true,
1152
+ configurable: false,
1153
+ enumerable: true,
1154
+ value: null
1155
+ },
1156
+ attributeNameCheck: {
1157
+ writable: true,
1158
+ configurable: false,
1159
+ enumerable: true,
1160
+ value: null
1161
+ },
1162
+ allowCustomizedBuiltInElements: {
1163
+ writable: true,
1164
+ configurable: false,
1165
+ enumerable: true,
1166
+ value: false
1167
+ }
1168
+ }));
1169
+ let FORBID_TAGS = null;
1170
+ let FORBID_ATTR = null;
1171
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
1172
+ tagCheck: {
1173
+ writable: true,
1174
+ configurable: false,
1175
+ enumerable: true,
1176
+ value: null
1177
+ },
1178
+ attributeCheck: {
1179
+ writable: true,
1180
+ configurable: false,
1181
+ enumerable: true,
1182
+ value: null
1183
+ }
1184
+ }));
1185
+ let ALLOW_ARIA_ATTR = true;
1186
+ let ALLOW_DATA_ATTR = true;
1187
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
1188
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
1189
+ let SAFE_FOR_TEMPLATES = false;
1190
+ let SAFE_FOR_XML = true;
1191
+ let WHOLE_DOCUMENT = false;
1192
+ let SET_CONFIG = false;
1193
+ let SET_CONFIG_ALLOWED_TAGS = null;
1194
+ let SET_CONFIG_ALLOWED_ATTR = null;
1195
+ let FORCE_BODY = false;
1196
+ let RETURN_DOM = false;
1197
+ let RETURN_DOM_FRAGMENT = false;
1198
+ let RETURN_TRUSTED_TYPE = false;
1199
+ let SANITIZE_DOM = true;
1200
+ let SANITIZE_NAMED_PROPS = false;
1201
+ const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
1202
+ let KEEP_CONTENT = true;
1203
+ let IN_PLACE = false;
1204
+ let USE_PROFILES = {};
1205
+ let FORBID_CONTENTS = null;
1206
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, [
1207
+ "annotation-xml",
1208
+ "audio",
1209
+ "colgroup",
1210
+ "desc",
1211
+ "foreignobject",
1212
+ "head",
1213
+ "iframe",
1214
+ "math",
1215
+ "mi",
1216
+ "mn",
1217
+ "mo",
1218
+ "ms",
1219
+ "mtext",
1220
+ "noembed",
1221
+ "noframes",
1222
+ "noscript",
1223
+ "plaintext",
1224
+ "script",
1225
+ "selectedcontent",
1226
+ "style",
1227
+ "svg",
1228
+ "template",
1229
+ "thead",
1230
+ "title",
1231
+ "video",
1232
+ "xmp"
1233
+ ]);
1234
+ let DATA_URI_TAGS = null;
1235
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, [
1236
+ "audio",
1237
+ "video",
1238
+ "img",
1239
+ "source",
1240
+ "image",
1241
+ "track"
1242
+ ]);
1243
+ let URI_SAFE_ATTRIBUTES = null;
1244
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [
1245
+ "alt",
1246
+ "class",
1247
+ "for",
1248
+ "id",
1249
+ "label",
1250
+ "name",
1251
+ "pattern",
1252
+ "placeholder",
1253
+ "role",
1254
+ "summary",
1255
+ "title",
1256
+ "value",
1257
+ "style",
1258
+ "xmlns"
1259
+ ]);
1260
+ const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
1261
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
1262
+ const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
1263
+ let NAMESPACE = HTML_NAMESPACE;
1264
+ let IS_EMPTY_INPUT = false;
1265
+ let ALLOWED_NAMESPACES = null;
1266
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [
1267
+ MATHML_NAMESPACE,
1268
+ SVG_NAMESPACE,
1269
+ HTML_NAMESPACE
1270
+ ], stringToString);
1271
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze([
1272
+ "mi",
1273
+ "mo",
1274
+ "mn",
1275
+ "ms",
1276
+ "mtext"
1277
+ ]);
1278
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
1279
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(["annotation-xml"]);
1280
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
1281
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [
1282
+ "title",
1283
+ "style",
1284
+ "font",
1285
+ "a",
1286
+ "script"
1287
+ ]);
1288
+ let PARSER_MEDIA_TYPE = null;
1289
+ const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
1290
+ const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
1291
+ let transformCaseFunc = null;
1292
+ let CONFIG = null;
1293
+ const formElement = document.createElement("form");
1294
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
1295
+ return testValue instanceof RegExp || testValue instanceof Function;
1296
+ };
1297
+ /**
1298
+ * _parseConfig
1299
+ *
1300
+ * @param cfg optional config literal
1301
+ */
1302
+ const _parseConfig = function _parseConfig() {
1303
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1304
+ if (CONFIG && CONFIG === cfg) return;
1305
+ if (!cfg || typeof cfg !== "object") cfg = {};
1306
+ cfg = clone(cfg);
1307
+ PARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
1308
+ transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
1309
+ ALLOWED_TAGS = _resolveSetOption(cfg, "ALLOWED_TAGS", DEFAULT_ALLOWED_TAGS, { transform: transformCaseFunc });
1310
+ ALLOWED_ATTR = _resolveSetOption(cfg, "ALLOWED_ATTR", DEFAULT_ALLOWED_ATTR, { transform: transformCaseFunc });
1311
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, "ALLOWED_NAMESPACES", DEFAULT_ALLOWED_NAMESPACES, { transform: stringToString });
1312
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, "ADD_URI_SAFE_ATTR", DEFAULT_URI_SAFE_ATTRIBUTES, {
1313
+ transform: transformCaseFunc,
1314
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
1315
+ });
1316
+ DATA_URI_TAGS = _resolveSetOption(cfg, "ADD_DATA_URI_TAGS", DEFAULT_DATA_URI_TAGS, {
1317
+ transform: transformCaseFunc,
1318
+ base: DEFAULT_DATA_URI_TAGS
1319
+ });
1320
+ FORBID_CONTENTS = _resolveSetOption(cfg, "FORBID_CONTENTS", DEFAULT_FORBID_CONTENTS, { transform: transformCaseFunc });
1321
+ FORBID_TAGS = _resolveSetOption(cfg, "FORBID_TAGS", clone({}), { transform: transformCaseFunc });
1322
+ FORBID_ATTR = _resolveSetOption(cfg, "FORBID_ATTR", clone({}), { transform: transformCaseFunc });
1323
+ USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === "object" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
1324
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
1325
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
1326
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
1327
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
1328
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
1329
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
1330
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
1331
+ RETURN_DOM = cfg.RETURN_DOM || false;
1332
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
1333
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
1334
+ FORCE_BODY = cfg.FORCE_BODY || false;
1335
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
1336
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
1337
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
1338
+ IN_PLACE = cfg.IN_PLACE || false;
1339
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI;
1340
+ NAMESPACE = typeof cfg.NAMESPACE === "string" ? cfg.NAMESPACE : HTML_NAMESPACE;
1341
+ MATHML_TEXT_INTEGRATION_POINTS = _resolveObjectOption(cfg, "MATHML_TEXT_INTEGRATION_POINTS", () => addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS));
1342
+ HTML_INTEGRATION_POINTS = _resolveObjectOption(cfg, "HTML_INTEGRATION_POINTS", () => addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS));
1343
+ const customElementHandling = _resolveObjectOption(cfg, "CUSTOM_ELEMENT_HANDLING", () => create(null));
1344
+ CUSTOM_ELEMENT_HANDLING = create(null);
1345
+ if (objectHasOwnProperty(customElementHandling, "tagNameCheck") && isRegexOrFunction(customElementHandling.tagNameCheck)) CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck;
1346
+ if (objectHasOwnProperty(customElementHandling, "attributeNameCheck") && isRegexOrFunction(customElementHandling.attributeNameCheck)) CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck;
1347
+ if (objectHasOwnProperty(customElementHandling, "allowCustomizedBuiltInElements") && typeof customElementHandling.allowCustomizedBuiltInElements === "boolean") CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements;
1348
+ seal(CUSTOM_ELEMENT_HANDLING);
1349
+ if (SAFE_FOR_TEMPLATES) ALLOW_DATA_ATTR = false;
1350
+ if (RETURN_DOM_FRAGMENT) RETURN_DOM = true;
1351
+ if (USE_PROFILES) {
1352
+ ALLOWED_TAGS = addToSet({}, text);
1353
+ ALLOWED_ATTR = create(null);
1354
+ if (USE_PROFILES.html === true) {
1355
+ addToSet(ALLOWED_TAGS, html$1);
1356
+ addToSet(ALLOWED_ATTR, html);
1357
+ }
1358
+ if (USE_PROFILES.svg === true) {
1359
+ addToSet(ALLOWED_TAGS, svg$1);
1360
+ addToSet(ALLOWED_ATTR, svg);
1361
+ addToSet(ALLOWED_ATTR, xml);
1362
+ }
1363
+ if (USE_PROFILES.svgFilters === true) {
1364
+ addToSet(ALLOWED_TAGS, svgFilters);
1365
+ addToSet(ALLOWED_ATTR, svg);
1366
+ addToSet(ALLOWED_ATTR, xml);
1367
+ }
1368
+ if (USE_PROFILES.mathMl === true) {
1369
+ addToSet(ALLOWED_TAGS, mathMl$1);
1370
+ addToSet(ALLOWED_ATTR, mathMl);
1371
+ addToSet(ALLOWED_ATTR, xml);
1372
+ }
1373
+ }
1374
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
1375
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
1376
+ if (objectHasOwnProperty(cfg, "ADD_TAGS")) {
1377
+ if (typeof cfg.ADD_TAGS === "function") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
1378
+ else if (arrayIsArray(cfg.ADD_TAGS)) {
1379
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);
1380
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
1381
+ }
1382
+ }
1383
+ if (objectHasOwnProperty(cfg, "ADD_ATTR")) {
1384
+ if (typeof cfg.ADD_ATTR === "function") EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
1385
+ else if (arrayIsArray(cfg.ADD_ATTR)) {
1386
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);
1387
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
1388
+ }
1389
+ }
1390
+ if (objectHasOwnProperty(cfg, "ADD_FORBID_CONTENTS") && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
1391
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);
1392
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
1393
+ }
1394
+ if (KEEP_CONTENT) ALLOWED_TAGS["#text"] = true;
1395
+ if (WHOLE_DOCUMENT) addToSet(ALLOWED_TAGS, [
1396
+ "html",
1397
+ "head",
1398
+ "body"
1399
+ ]);
1400
+ if (ALLOWED_TAGS.table) {
1401
+ addToSet(ALLOWED_TAGS, ["tbody"]);
1402
+ delete FORBID_TAGS.tbody;
1403
+ }
1404
+ if (cfg.TRUSTED_TYPES_POLICY) {
1405
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
1406
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
1407
+ const previousTrustedTypesPolicy = trustedTypesPolicy;
1408
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
1409
+ try {
1410
+ emptyHTML = _createTrustedHTML("");
1411
+ } catch (error) {
1412
+ trustedTypesPolicy = previousTrustedTypesPolicy;
1413
+ throw error;
1414
+ }
1415
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
1416
+ trustedTypesPolicy = void 0;
1417
+ emptyHTML = "";
1418
+ } else {
1419
+ if (trustedTypesPolicy === void 0) trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
1420
+ if (trustedTypesPolicy && typeof emptyHTML === "string") emptyHTML = _createTrustedHTML("");
1421
+ }
1422
+ if (freeze) freeze(cfg);
1423
+ CONFIG = cfg;
1424
+ };
1425
+ const ALL_SVG_TAGS = addToSet({}, [
1426
+ ...svg$1,
1427
+ ...svgFilters,
1428
+ ...svgDisallowed
1429
+ ]);
1430
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
1431
+ /**
1432
+ * Namespace rules for an element in the SVG namespace.
1433
+ *
1434
+ * @param tagName the element's lowercase tag name
1435
+ * @param parent the (possibly simulated) parent node
1436
+ * @param parentTagName the parent's lowercase tag name
1437
+ * @returns true if a spec-compliant parser could produce this element
1438
+ */
1439
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
1440
+ if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "svg";
1441
+ if (parent.namespaceURI === MATHML_NAMESPACE) return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
1442
+ return Boolean(ALL_SVG_TAGS[tagName]);
1443
+ };
1444
+ /**
1445
+ * Namespace rules for an element in the MathML namespace.
1446
+ *
1447
+ * @param tagName the element's lowercase tag name
1448
+ * @param parent the (possibly simulated) parent node
1449
+ * @param parentTagName the parent's lowercase tag name
1450
+ * @returns true if a spec-compliant parser could produce this element
1451
+ */
1452
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
1453
+ if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "math";
1454
+ if (parent.namespaceURI === SVG_NAMESPACE) return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
1455
+ return Boolean(ALL_MATHML_TAGS[tagName]);
1456
+ };
1457
+ /**
1458
+ * Namespace rules for an element in the HTML namespace.
1459
+ *
1460
+ * @param tagName the element's lowercase tag name
1461
+ * @param parent the (possibly simulated) parent node
1462
+ * @param parentTagName the parent's lowercase tag name
1463
+ * @returns true if a spec-compliant parser could produce this element
1464
+ */
1465
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
1466
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) return false;
1467
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) return false;
1468
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1469
+ };
1470
+ /**
1471
+ * @param element a DOM element whose namespace is being checked
1472
+ * @returns Return false if the element has a
1473
+ * namespace that a spec-compliant parser would never
1474
+ * return. Return true otherwise.
1475
+ */
1476
+ const _checkValidNamespace = function _checkValidNamespace(element) {
1477
+ let parent = getParentNode(element);
1478
+ if (!parent || !parent.tagName) parent = {
1479
+ namespaceURI: NAMESPACE,
1480
+ tagName: "template"
1481
+ };
1482
+ const tagName = stringToLowerCase(element.tagName);
1483
+ const parentTagName = stringToLowerCase(parent.tagName);
1484
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) return false;
1485
+ if (element.namespaceURI === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);
1486
+ if (element.namespaceURI === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);
1487
+ if (element.namespaceURI === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);
1488
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) return true;
1489
+ return false;
1490
+ };
1491
+ /**
1492
+ * _forceRemove
1493
+ *
1494
+ * @param node a DOM node
1495
+ */
1496
+ const _forceRemove = function _forceRemove(node) {
1497
+ arrayPush(DOMPurify.removed, { element: node });
1498
+ try {
1499
+ getParentNode(node).removeChild(node);
1500
+ } catch (_) {
1501
+ remove(node);
1502
+ if (!getParentNode(node)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
1503
+ }
1504
+ };
1505
+ /**
1506
+ * _stripAttributeNode
1507
+ *
1508
+ * Remove a single Attr node case/namespace-exactly on an attribute-teardown
1509
+ * path. Name-based removeAttribute() ASCII-lowercases its lookup key for an
1510
+ * HTML element in an HTML document and so silently misses a case-preserved
1511
+ * handler (e.g. `ONERROR` off an XML/XHTML import) - the same defect
1512
+ * _removeAttribute() was fixed for, which a name-based call would reintroduce
1513
+ * on these IN_PLACE teardown paths. Unlike _removeAttribute this does not
1514
+ * record into DOMPurify.removed: the neutralize passes intentionally do not
1515
+ * book-keep. A clobbered/detached node falls back to best-effort name-based
1516
+ * removal.
1517
+ *
1518
+ * @param element the element to strip the attribute from
1519
+ * @param attribute the Attr node to remove
1520
+ * @param name the attribute's name, for the fallback path
1521
+ */
1522
+ const _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {
1523
+ try {
1524
+ removeAttributeNode(element, attribute);
1525
+ } catch (_) {
1526
+ try {
1527
+ element.removeAttribute(name);
1528
+ } catch (_) {}
1529
+ }
1530
+ };
1531
+ /**
1532
+ * _neutralizeRoot
1533
+ *
1534
+ * Fail-closed teardown of an in-place root after the sanitize walk aborts
1535
+ * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
1536
+ * custom element's reaction detaches a node so `_forceRemove`'s deliberate
1537
+ * parentless guard throws, or any other re-entrant engine mutation — would
1538
+ * otherwise leave the caller's *live* tree half-sanitized, with everything
1539
+ * after the abort point still carrying its handlers. There is no safe way
1540
+ * to resume the walk (the tree mutated under us), so we strip the root bare:
1541
+ * remove every child and every attribute, then let the caller's catch see
1542
+ * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
1543
+ * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
1544
+ *
1545
+ * @param root the in-place root to empty
1546
+ */
1547
+ const _neutralizeRoot = function _neutralizeRoot(root) {
1548
+ _neutralizeSubtree(root);
1549
+ const childNodes = getChildNodes(root);
1550
+ if (childNodes) {
1551
+ const snapshot = [];
1552
+ arrayForEach(childNodes, (child) => {
1553
+ arrayPush(snapshot, child);
1554
+ });
1555
+ arrayForEach(snapshot, (child) => {
1556
+ try {
1557
+ remove(child);
1558
+ } catch (_) {}
1559
+ });
1560
+ }
1561
+ const attributes = getAttributes(root);
1562
+ if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
1563
+ const attribute = attributes[i];
1564
+ const name = attribute && attribute.name;
1565
+ if (typeof name === "string") _stripAttributeNode(root, attribute, name);
1566
+ }
1567
+ };
1568
+ /**
1569
+ * _removeAttribute
1570
+ *
1571
+ * Name-based getAttributeNode()/removeAttribute() ASCII-lowercase their
1572
+ * lookup key for HTML elements in an HTML document, so they silently miss an
1573
+ * attribute whose stored qualified name still contains uppercase ASCII
1574
+ * letters. That happens when the node came from a case-preserving source
1575
+ * (an XML/XHTML document imported via importNode(), or createAttributeNS()),
1576
+ * where e.g. `ONERROR` survives the walk: the policy check lowercases to
1577
+ * `onerror` and rejects it, but `removeAttribute('ONERROR')` looks up
1578
+ * `onerror` and finds nothing. Remove the exact Attr node instead, which is
1579
+ * case- and namespace-exact, and fall back to name-based removal only when
1580
+ * the caller could not supply the node.
1581
+ *
1582
+ * @param name an Attribute name
1583
+ * @param element a DOM node
1584
+ * @param attr the exact Attr node to remove, when the caller has it
1585
+ */
1586
+ const _removeAttribute = function _removeAttribute(name, element, attr) {
1587
+ if (!attr) try {
1588
+ attr = element.getAttributeNode(name);
1589
+ } catch (_) {
1590
+ attr = null;
1591
+ }
1592
+ arrayPush(DOMPurify.removed, {
1593
+ attribute: attr || null,
1594
+ from: element
1595
+ });
1596
+ try {
1597
+ if (attr) removeAttributeNode(element, attr);
1598
+ else element.removeAttribute(name);
1599
+ } catch (_) {
1600
+ try {
1601
+ element.removeAttribute(name);
1602
+ } catch (_) {}
1603
+ }
1604
+ if (name === "is") {
1605
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) try {
1606
+ _forceRemove(element);
1607
+ } catch (_) {}
1608
+ else try {
1609
+ element.setAttribute(name, "");
1610
+ } catch (_) {}
1611
+ }
1612
+ };
1613
+ /**
1614
+ * _stripDisallowedAttributes
1615
+ *
1616
+ * Removes every attribute the active configuration does not allow from a
1617
+ * single element, using the same allowlist as the main attribute pass (so
1618
+ * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
1619
+ * neutralise nodes that are being discarded from an in-place tree.
1620
+ *
1621
+ * @param element the element to strip
1622
+ */
1623
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
1624
+ const attributes = getAttributes(element);
1625
+ if (!attributes) return;
1626
+ for (let i = attributes.length - 1; i >= 0; --i) {
1627
+ const attribute = attributes[i];
1628
+ const name = attribute && attribute.name;
1629
+ if (typeof name !== "string" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;
1630
+ _stripAttributeNode(element, attribute, name);
1631
+ }
1632
+ };
1633
+ /**
1634
+ * _neutralizeSubtree
1635
+ *
1636
+ * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
1637
+ * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
1638
+ * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
1639
+ * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
1640
+ * those dropped nodes are detached from the caller's LIVE tree but a
1641
+ * handler-bearing original among them (an `<img onerror>`/`<video>` that was
1642
+ * loading) keeps its queued resource event, which fires in page scope after
1643
+ * sanitize returns. This walks a removed subtree and strips every attribute
1644
+ * the active configuration does not allow — so `on*` handlers are cancelled
1645
+ * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
1646
+ * blocklist. Run synchronously before sanitize returns, i.e. before any
1647
+ * queued event can fire. Hook-free by design: these nodes leave the output,
1648
+ * so firing attribute hooks for them would be surprising. Clobber-safe reads;
1649
+ * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
1650
+ * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
1651
+ * the `<img>`, are reached and scrubbed).
1652
+ *
1653
+ * @param root the root of a removed subtree to neutralise
1654
+ */
1655
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
1656
+ const stack = [root];
1657
+ while (stack.length > 0) {
1658
+ const node = stack.pop();
1659
+ if (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);
1660
+ const childNodes = getChildNodes(node);
1661
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
1662
+ }
1663
+ };
1664
+ /**
1665
+ * _neutralizePatchLinkage
1666
+ *
1667
+ * IN_PLACE entry pre-pass (declarative-partial-updates / streaming
1668
+ * hardening, https://github.com/WICG/declarative-partial-updates).
1669
+ *
1670
+ * The main walk strips patch linkage (`for`/`patchsrc`) and removes range
1671
+ * markers (PIs / markup comments) node-by-node, in document order, AS it
1672
+ * reaches each node. On a live in-place root that leaves a window: from the
1673
+ * moment the root is connected until the walk arrives at a given node, that
1674
+ * node's linkage is live. A patch applied on connection/stream can fire as
1675
+ * a microtask during the walk and inject or teleport an unsanitized DOM
1676
+ * range into a region the iterator has already passed and will not revisit,
1677
+ * so the post-return "tree is sanitized" contract is violated. Sweep the
1678
+ * whole tree once up front and sever every linkage before the walk begins,
1679
+ * closing that window.
1680
+ *
1681
+ * This CANNOT undo a patch that already fired before sanitize ran — that is
1682
+ * the irreducible "do not IN_PLACE a live-connected attacker tree" caveat —
1683
+ * but it closes everything from sanitize-start onward. Gated on SAFE_FOR_XML
1684
+ * to group with the rest of the declarative-partial-updates handling and
1685
+ * stay overridable, consistent with the codebase.
1686
+ *
1687
+ * Clobber-safe traversal (cached childNodes getter); per-node try/catch so a
1688
+ * clobbered root cannot defeat the sweep of its non-clobbered descendants.
1689
+ *
1690
+ * NOTE (pending real-Chrome confirmation, see test/declarative-patch-probe
1691
+ * .html Q1): this mirrors the existing policy of keeping `for` on
1692
+ * <label>/<output>. If the shipping feature can drive a patch through a
1693
+ * surviving `for`-on-label/output + `id` pair, this pre-pass and the
1694
+ * attribute check at _isBasicCustomElement's caller must additionally drop
1695
+ * that pair on the IN_PLACE path. Left as-is until the taxonomy is verified.
1696
+ *
1697
+ * @param root the in-place root to sweep
1698
+ */
1699
+ /**
1700
+ * Central policy for declarative-partial-updates patch-linkage attributes,
1701
+ * shared by the _neutralizePatchLinkage pre-pass and _isValidAttribute so
1702
+ * the two sites cannot drift: `patchsrc` always links, `for` links
1703
+ * everywhere except on <label>/<output>, and the whole policy is gated on
1704
+ * SAFE_FOR_XML (see the rationale block in _isValidAttribute).
1705
+ *
1706
+ * @param lcName the transformCaseFunc'd attribute name
1707
+ * @param lcTag the transformCaseFunc'd tag name of the carrying element
1708
+ * @return true if the attribute is patch linkage and must be dropped
1709
+ */
1710
+ const _isPatchLinkageAttribute = function _isPatchLinkageAttribute(lcName, lcTag) {
1711
+ if (!SAFE_FOR_XML) return false;
1712
+ if (lcName === "patchsrc") return true;
1713
+ return lcName === "for" && lcTag !== "label" && lcTag !== "output";
1714
+ };
1715
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
1716
+ if (!SAFE_FOR_XML) return;
1717
+ const stack = [root];
1718
+ while (stack.length > 0) {
1719
+ const node = stack.pop();
1720
+ const nodeType = _readNodeType(node);
1721
+ if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
1722
+ try {
1723
+ remove(node);
1724
+ } catch (_) {}
1725
+ continue;
1726
+ }
1727
+ if (nodeType === NODE_TYPE.element) {
1728
+ const element = node;
1729
+ const lcTag = transformCaseFunc(_readNodeName(node));
1730
+ try {
1731
+ if (element.hasAttribute && element.hasAttribute("patchsrc")) element.removeAttribute("patchsrc");
1732
+ if (element.hasAttribute && element.hasAttribute("for") && _isPatchLinkageAttribute("for", lcTag)) element.removeAttribute("for");
1733
+ } catch (_) {}
1734
+ }
1735
+ const childNodes = getChildNodes(node);
1736
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
1737
+ }
1738
+ };
1739
+ /**
1740
+ * _initDocument
1741
+ *
1742
+ * @param dirty - a string of dirty markup
1743
+ * @return a DOM, filled with the dirty markup
1744
+ */
1745
+ const _initDocument = function _initDocument(dirty) {
1746
+ let doc = null;
1747
+ let leadingWhitespace = null;
1748
+ if (FORCE_BODY) dirty = "<remove></remove>" + dirty;
1749
+ else {
1750
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
1751
+ leadingWhitespace = matches && matches[0];
1752
+ }
1753
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) dirty = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + dirty + "</body></html>";
1754
+ const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
1755
+ if (NAMESPACE === HTML_NAMESPACE) try {
1756
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
1757
+ } catch (_) {}
1758
+ if (!doc || !doc.documentElement) {
1759
+ doc = implementation.createDocument(NAMESPACE, "template", null);
1760
+ try {
1761
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
1762
+ } catch (_) {}
1763
+ }
1764
+ const body = doc.body || doc.documentElement;
1765
+ if (dirty && leadingWhitespace) body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1766
+ if (NAMESPACE === HTML_NAMESPACE) return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0];
1767
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
1768
+ };
1769
+ /**
1770
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
1771
+ *
1772
+ * @param root The root element or node to start traversing on.
1773
+ * @return The created NodeIterator
1774
+ */
1775
+ const _createNodeIterator = function _createNodeIterator(root) {
1776
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1777
+ return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1778
+ };
1779
+ /**
1780
+ * Replace template expression syntax (mustache, ERB, template
1781
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
1782
+ * sites. Order matters: mustache, then ERB, then template literal.
1783
+ *
1784
+ * @param value the string to scrub
1785
+ * @returns the scrubbed string
1786
+ */
1787
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1788
+ value = stringReplace(value, MUSTACHE_EXPR$1, " ");
1789
+ value = stringReplace(value, ERB_EXPR$1, " ");
1790
+ value = stringReplace(value, TMPLIT_EXPR$1, " ");
1791
+ return value;
1792
+ };
1793
+ /**
1794
+ * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
1795
+ * character data of an element subtree. Used as the final safety net for
1796
+ * SAFE_FOR_TEMPLATES on every DOM-returning code path so that expressions
1797
+ * which only form after text-node normalization (e.g. fragments split across
1798
+ * stripped elements) cannot survive into a template-evaluating framework.
1799
+ *
1800
+ * Walks text/comment/CDATA/processing-instruction nodes and mutates `.data`
1801
+ * in place rather than round-tripping through innerHTML. This preserves
1802
+ * descendant node references (important for IN_PLACE callers), avoids a
1803
+ * serialize/reparse cycle, and reads literal character data — which means
1804
+ * `<%...%>` in text content matches the ERB regex against its real bytes
1805
+ * instead of the HTML-entity-escaped form innerHTML would produce.
1806
+ *
1807
+ * Attribute values are not visited here; SAFE_FOR_TEMPLATES handling for
1808
+ * attributes is performed during the per-node `_sanitizeAttributes` pass.
1809
+ *
1810
+ * @param node The root element whose character data should be scrubbed.
1811
+ */
1812
+ const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1813
+ var _node$querySelectorAl;
1814
+ node.normalize();
1815
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
1816
+ const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1817
+ let currentNode = walker.nextNode();
1818
+ while (currentNode) {
1819
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
1820
+ currentNode = walker.nextNode();
1821
+ }
1822
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
1823
+ if (templates) arrayForEach(templates, (tmpl) => {
1824
+ if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
1825
+ });
1826
+ };
1827
+ /**
1828
+ * _isClobbered
1829
+ *
1830
+ * Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
1831
+ * interface with [LegacyOverrideBuiltIns]; a descendant element with a
1832
+ * `name` attribute matching a prototype property shadows that property
1833
+ * on direct reads. We use this check at the IN_PLACE entry-point and
1834
+ * during attribute sanitization to refuse clobbered forms.
1835
+ *
1836
+ * @param element element to check for clobbering attacks
1837
+ * @return true if clobbered, false if safe
1838
+ */
1839
+ const _isClobbered = function _isClobbered(element) {
1840
+ const realTagName = getNodeName ? getNodeName(element) : null;
1841
+ if (typeof realTagName !== "string") return false;
1842
+ if (transformCaseFunc(realTagName) !== "form") return false;
1843
+ return typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.removeAttributeNode !== "function" || typeof element.getAttributeNode !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || element.nodeType !== getNodeType(element) || element.childNodes !== getChildNodes(element);
1844
+ };
1845
+ /**
1846
+ * Checks whether the given value is a DocumentFragment from any realm.
1847
+ *
1848
+ * The realm-independent replacement reads `nodeType` through the cached
1849
+ * Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
1850
+ * constant (11). nodeType is a numeric value resolved from the node's
1851
+ * internal slot, identical across realms for the same kind of node.
1852
+ *
1853
+ * @param value object to check
1854
+ * @return true if value is a DocumentFragment-shaped node from any realm
1855
+ */
1856
+ const _isDocumentFragment = function _isDocumentFragment(value) {
1857
+ if (!getNodeType || typeof value !== "object" || value === null) return false;
1858
+ try {
1859
+ return getNodeType(value) === NODE_TYPE.documentFragment;
1860
+ } catch (_) {
1861
+ return false;
1862
+ }
1863
+ };
1864
+ /**
1865
+ * Checks whether the given object is a DOM node, including nodes that
1866
+ * originate from a different window/realm (e.g. an iframe's
1867
+ * contentDocument). The previous `value instanceof Node` check was
1868
+ * realm-bound: nodes from a different window failed it, causing
1869
+ * sanitize() to silently stringify them and reset IN_PLACE to false,
1870
+ * returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
1871
+ *
1872
+ * @param value object to check whether it's a DOM node
1873
+ * @return true if value is a DOM node from any realm
1874
+ */
1875
+ const _isNode = function _isNode(value) {
1876
+ if (!getNodeType || typeof value !== "object" || value === null) return false;
1877
+ try {
1878
+ return typeof getNodeType(value) === "number";
1879
+ } catch (_) {
1880
+ return false;
1881
+ }
1882
+ };
1883
+ function _executeHooks(hooks, currentNode, data) {
1884
+ if (hooks.length === 0) return;
1885
+ arrayForEach(hooks, (hook) => {
1886
+ hook.call(DOMPurify, currentNode, data, CONFIG);
1887
+ });
1888
+ }
1889
+ /**
1890
+ * Structural-threat checks that condemn a node regardless of the
1891
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
1892
+ * processing instructions, markup-bearing comments. Pure predicate;
1893
+ * the caller removes. Check order is load-bearing.
1894
+ *
1895
+ * @param currentNode the node to inspect
1896
+ * @param tagName the node's transformCaseFunc'd tag name
1897
+ * @return true if the node must be removed
1898
+ */
1899
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1900
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) return true;
1901
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && LITERAL_TEXT_ELEMENTS[tagName] && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === "string" && regExpTest(LITERAL_TEXT_CLOSE[tagName], currentNode.textContent))) return true;
1902
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) return true;
1903
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) return true;
1904
+ return false;
1905
+ };
1906
+ /**
1907
+ * Evaluate a CUSTOM_ELEMENT_HANDLING check (a RegExp or a predicate
1908
+ * function, per the validation in _parseConfig) against a name.
1909
+ * Additional arguments are forwarded to predicate functions - the
1910
+ * attributeNameCheck predicate receives the tag name as its second
1911
+ * argument. A null/absent check never matches.
1912
+ *
1913
+ * @param check the configured tagNameCheck / attributeNameCheck value
1914
+ * @param name the name to test
1915
+ * @param args extra arguments forwarded to a predicate function
1916
+ * @return true if the check matches the name
1917
+ */
1918
+ const _matchesNameCheck = function _matchesNameCheck(check, name) {
1919
+ if (check instanceof RegExp) return regExpTest(check, name);
1920
+ if (check instanceof Function) {
1921
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
1922
+ return Boolean(check(name, ...args));
1923
+ }
1924
+ return false;
1925
+ };
1926
+ /**
1927
+ * Handle a node whose tag is forbidden or not allowlisted: keep
1928
+ * allowed custom elements (false return exits _sanitizeElements
1929
+ * early - the namespace and fallback-tag removal checks are
1930
+ * intentionally skipped for kept custom elements), else hoist
1931
+ * content per KEEP_CONTENT and remove.
1932
+ *
1933
+ * A kept custom element is the ONLY case in which this function
1934
+ * returns false, so the caller uses that return value to run the
1935
+ * afterSanitizeElements hook on the kept element and keep the
1936
+ * element-hook lifecycle consistent with normal allowlisted
1937
+ * elements (GHSA-c2j3-45gr-mqc4).
1938
+ *
1939
+ * @param currentNode the disallowed node
1940
+ * @param tagName the node's transformCaseFunc'd tag name
1941
+ * @return true if the node was removed, false if kept
1942
+ */
1943
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1944
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
1945
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1946
+ const parentNode = getParentNode(currentNode);
1947
+ const childNodes = getChildNodes(currentNode);
1948
+ if (childNodes && parentNode) {
1949
+ const childCount = childNodes.length;
1950
+ for (let i = childCount - 1; i >= 0; --i) {
1951
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
1952
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1953
+ }
1954
+ }
1955
+ }
1956
+ _forceRemove(currentNode);
1957
+ return true;
1958
+ };
1959
+ /**
1960
+ * Fork a hook-mutable allowlist off its shared binding the first time a
1961
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
1962
+ * hook cannot widen the per-instance default or the setConfig binding by
1963
+ * reference and leak past the call. Returns the set unchanged once it is
1964
+ * already call-local, so repeated calls across elements are idempotent.
1965
+ *
1966
+ * @param hookList the uponSanitize* hook array for this event
1967
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
1968
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
1969
+ * @param setConfigSet the captured setConfig() binding, or null
1970
+ * @return a call-local clone if a hook is present and set is still shared,
1971
+ * else set unchanged
1972
+ */
1973
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
1974
+ if (hookList.length === 0) return set;
1975
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
1976
+ };
1977
+ /**
1978
+ * Shared guard for a node that a hook has detached from the walk tree,
1979
+ * used after each element-hook site in _sanitizeElements. Detaching is a
1980
+ * long-standing user pattern (issue #469; draw.io-style foreignObject
1981
+ * filtering). Per the cached, unclobberable parentNode getter the node is
1982
+ * genuinely out of the tree, so it can reach neither the serialized
1983
+ * output nor an IN_PLACE live tree; treat it as removed and stop
1984
+ * processing it. Without this guard, the unsafe-node / namespace checks
1985
+ * would call _forceRemove on a parentless node and hit the REPORT-3
1986
+ * fail-closed throw — which exists for nodes DOMPurify wants gone but
1987
+ * *cannot* detach (clobbered / parentless roots), the opposite of a node
1988
+ * that is already safely gone. The walk root is exempt: a detached
1989
+ * IN_PLACE root is legitimate input and must still be fully sanitized,
1990
+ * and a kill-decision on it must keep hitting the REPORT-3 throw.
1991
+ *
1992
+ * Nodes detached by hooks stay the hook's responsibility for placement:
1993
+ * they are not recorded in DOMPurify.removed, so the post-walk IN_PLACE
1994
+ * pass (which iterates DOMPurify.removed) does not reach them. But a
1995
+ * hook-detached subtree can still hold a queued resource-event handler -
1996
+ * e.g. an <img onload> that began loading when the caller built the live
1997
+ * tree - which fires in page scope after sanitize returns even though the
1998
+ * handler never reached the returned tree. That is the audit-5 F1 hazard,
1999
+ * and the documented node.remove() hook pattern walks straight into it.
2000
+ * So on the IN_PLACE path we neutralize the detached subtree inline,
2001
+ * stripping its non-allow-listed attributes before returning, exactly as
2002
+ * the post-walk pass does for _forceRemove'd subtrees.
2003
+ *
2004
+ * @param currentNode the node a hook may have detached
2005
+ * @param root the current walk root
2006
+ * @return true if the node is detached and now handled, false otherwise
2007
+ */
2008
+ const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
2009
+ if (currentNode === root || getParentNode(currentNode) !== null) return false;
2010
+ if (IN_PLACE) _neutralizeSubtree(currentNode);
2011
+ return true;
2012
+ };
2013
+ /**
2014
+ * _sanitizeElements
2015
+ *
2016
+ * @protect nodeName
2017
+ * @protect textContent
2018
+ * @protect removeChild
2019
+ * @param currentNode to check for permission to exist
2020
+ * @return true if node was killed, false if left alive
2021
+ */
2022
+ const _sanitizeElements = function _sanitizeElements(currentNode, root) {
2023
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
2024
+ if (_handleHookDetachedNode(currentNode, root)) return true;
2025
+ if (_isClobbered(currentNode)) {
2026
+ _forceRemove(currentNode);
2027
+ return true;
2028
+ }
2029
+ const tagName = transformCaseFunc(_readNodeName(currentNode));
2030
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
2031
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
2032
+ tagName,
2033
+ allowedTags: ALLOWED_TAGS
2034
+ });
2035
+ if (_handleHookDetachedNode(currentNode, root)) return true;
2036
+ if (_isUnsafeNode(currentNode, tagName)) {
2037
+ _forceRemove(currentNode);
2038
+ return true;
2039
+ }
2040
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
2041
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
2042
+ if (removed === false) {
2043
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
2044
+ if (_handleHookDetachedNode(currentNode, root)) return true;
2045
+ }
2046
+ return removed;
2047
+ }
2048
+ if (_readNodeType(currentNode) === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
2049
+ _forceRemove(currentNode);
2050
+ return true;
2051
+ }
2052
+ if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
2053
+ _forceRemove(currentNode);
2054
+ return true;
2055
+ }
2056
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
2057
+ const content = _stripTemplateExpressions(currentNode.textContent);
2058
+ if (currentNode.textContent !== content) {
2059
+ arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
2060
+ currentNode.textContent = content;
2061
+ }
2062
+ }
2063
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
2064
+ return _handleHookDetachedNode(currentNode, root);
2065
+ };
2066
+ /**
2067
+ * _isValidAttribute
2068
+ *
2069
+ * @param lcTag Lowercase tag name of containing element.
2070
+ * @param lcName Lowercase attribute name.
2071
+ * @param value Attribute value.
2072
+ * @return Returns true if `value` is valid, otherwise false.
2073
+ */
2074
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
2075
+ if (FORBID_ATTR[lcName]) return false;
2076
+ if (_isPatchLinkageAttribute(lcName, lcTag)) return false;
2077
+ if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
2078
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
2079
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) return true;
2080
+ if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) return true;
2081
+ if (!nameIsPermitted) return _isBasicCustomElement(lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName, lcTag) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value);
2082
+ if (URI_SAFE_ATTRIBUTES[lcName]) return true;
2083
+ if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ""))) return true;
2084
+ if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) return true;
2085
+ if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ""))) return true;
2086
+ return !value;
2087
+ };
2088
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, [
2089
+ "annotation-xml",
2090
+ "color-profile",
2091
+ "font-face",
2092
+ "font-face-format",
2093
+ "font-face-name",
2094
+ "font-face-src",
2095
+ "font-face-uri",
2096
+ "missing-glyph"
2097
+ ]);
2098
+ /**
2099
+ * _isBasicCustomElement
2100
+ * checks if at least one dash is included in tagName, and it's not the first char
2101
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
2102
+ *
2103
+ * @param tagName name of the tag of the node to sanitize
2104
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
2105
+ */
2106
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
2107
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
2108
+ };
2109
+ /**
2110
+ * Wrap an attribute value in the matching Trusted Types object when
2111
+ * the active policy requires it. Namespaced attributes pass through
2112
+ * unchanged (no TT support yet, see
2113
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
2114
+ *
2115
+ * @param lcTag lowercase tag name of the containing element
2116
+ * @param lcName lowercase attribute name
2117
+ * @param namespaceURI the attribute's namespace, if any
2118
+ * @param value the attribute value to wrap
2119
+ * @return the value, wrapped when Trusted Types demand it
2120
+ */
2121
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
2122
+ if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function" && !namespaceURI) switch (trustedTypes.getAttributeType(lcTag, lcName)) {
2123
+ case "TrustedHTML": return _createTrustedHTML(value);
2124
+ case "TrustedScriptURL": return _createTrustedScriptURL(value);
2125
+ }
2126
+ return value;
2127
+ };
2128
+ /**
2129
+ * Write a modified attribute value back onto the element. On
2130
+ * success, re-probe for clobbering introduced by the new value and
2131
+ * remove the element when found; otherwise, when this writeback is the
2132
+ * recreate half of the SANITIZE_NAMED_PROPS remove-and-recreate, pop the
2133
+ * removal entry that path recorded so it does not show as removed. On
2134
+ * failure, remove the attribute instead.
2135
+ *
2136
+ * Returns true only on a clean write (the value was set and the new value
2137
+ * introduced no clobbering). The caller uses that, together with its own
2138
+ * knowledge of whether this attribute pushed a DOMPurify.removed record, to
2139
+ * decide whether to pop that record. The pop must happen ONLY for the
2140
+ * named-prop remove-and-recreate; popping on any other value change (trim,
2141
+ * template scrubbing, Trusted Types) would consume an unrelated _forceRemove
2142
+ * subtree-cleanup record and let that detached subtree keep a live event
2143
+ * handler through the IN_PLACE neutralization pass (SO-001).
2144
+ *
2145
+ * @param currentNode the element carrying the attribute
2146
+ * @param name the attribute name as present on the element
2147
+ * @param namespaceURI the attribute's namespace, if any
2148
+ * @param value the new attribute value
2149
+ * @return true if the value was written without introducing clobbering
2150
+ */
2151
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
2152
+ try {
2153
+ if (namespaceURI) currentNode.setAttributeNS(namespaceURI, name, value);
2154
+ else currentNode.setAttribute(name, value);
2155
+ if (_isClobbered(currentNode)) {
2156
+ _forceRemove(currentNode);
2157
+ return false;
2158
+ }
2159
+ return true;
2160
+ } catch (_) {
2161
+ _removeAttribute(name, currentNode);
2162
+ return false;
2163
+ }
2164
+ };
2165
+ /**
2166
+ * _sanitizeAttributes
2167
+ *
2168
+ * @protect attributes
2169
+ * @protect nodeName
2170
+ * @protect removeAttribute
2171
+ * @protect setAttribute
2172
+ *
2173
+ * @param currentNode to sanitize
2174
+ * @param root the current walk root
2175
+ */
2176
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode, root) {
2177
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
2178
+ if (_handleHookDetachedNode(currentNode, root)) return;
2179
+ const attributes = currentNode.attributes;
2180
+ if (!attributes || _isClobbered(currentNode)) return;
2181
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
2182
+ const hookEvent = {
2183
+ attrName: "",
2184
+ attrValue: "",
2185
+ keepAttr: true,
2186
+ allowedAttributes: ALLOWED_ATTR,
2187
+ forceKeepAttr: void 0
2188
+ };
2189
+ let l = attributes.length;
2190
+ const lcTag = transformCaseFunc(currentNode.nodeName);
2191
+ while (l--) {
2192
+ const attr = attributes[l];
2193
+ const name = attr.name, namespaceURI = attr.namespaceURI, attrValue = attr.value;
2194
+ const lcName = transformCaseFunc(name);
2195
+ const initValue = attrValue;
2196
+ let value = name === "value" ? initValue : stringTrim(initValue);
2197
+ let recreatedNamedProp = false;
2198
+ hookEvent.attrName = lcName;
2199
+ hookEvent.attrValue = value;
2200
+ hookEvent.keepAttr = true;
2201
+ hookEvent.forceKeepAttr = void 0;
2202
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
2203
+ value = hookEvent.attrValue;
2204
+ if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
2205
+ _removeAttribute(name, currentNode, attr);
2206
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
2207
+ recreatedNamedProp = true;
2208
+ }
2209
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
2210
+ _removeAttribute(name, currentNode, attr);
2211
+ continue;
2212
+ }
2213
+ if (lcName === "attributename" && stringMatch(value, "href")) {
2214
+ _removeAttribute(name, currentNode, attr);
2215
+ continue;
2216
+ }
2217
+ if (hookEvent.forceKeepAttr) continue;
2218
+ if (!hookEvent.keepAttr) {
2219
+ _removeAttribute(name, currentNode, attr);
2220
+ continue;
2221
+ }
2222
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
2223
+ _removeAttribute(name, currentNode, attr);
2224
+ continue;
2225
+ }
2226
+ if (SAFE_FOR_TEMPLATES) value = _stripTemplateExpressions(value);
2227
+ if (!_isValidAttribute(lcTag, lcName, value)) {
2228
+ _removeAttribute(name, currentNode, attr);
2229
+ continue;
2230
+ }
2231
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
2232
+ if (value !== initValue) {
2233
+ if (_setAttributeValue(currentNode, name, namespaceURI, value) && recreatedNamedProp) arrayPop(DOMPurify.removed);
2234
+ }
2235
+ }
2236
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
2237
+ _handleHookDetachedNode(currentNode, root);
2238
+ };
2239
+ /**
2240
+ * _sanitizeShadowDOM
2241
+ *
2242
+ * @param fragment to iterate over recursively
2243
+ */
2244
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
2245
+ let shadowNode = null;
2246
+ const shadowIterator = _createNodeIterator(fragment);
2247
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
2248
+ while (shadowNode = shadowIterator.nextNode()) {
2249
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2250
+ _sanitizeElements(shadowNode, fragment);
2251
+ _sanitizeAttributes(shadowNode, fragment);
2252
+ if (_isDocumentFragment(shadowNode.content)) _sanitizeShadowDOM2(shadowNode.content);
2253
+ if (_readNodeType(shadowNode) === NODE_TYPE.element) {
2254
+ const innerSr = getShadowRoot(shadowNode);
2255
+ if (_isDocumentFragment(innerSr)) {
2256
+ _sanitizeAttachedShadowRoots(innerSr);
2257
+ _sanitizeShadowDOM2(innerSr);
2258
+ }
2259
+ }
2260
+ }
2261
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
2262
+ };
2263
+ /**
2264
+ * _sanitizeAttachedShadowRoots
2265
+ *
2266
+ * Walks `root` and feeds every attached shadow root we encounter into
2267
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
2268
+ * does not descend into shadow trees, so nodes inside an attached
2269
+ * shadow root would otherwise be skipped entirely.
2270
+ *
2271
+ * Two real input paths put attached shadow roots in front of us:
2272
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
2273
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
2274
+ * shadow root because it was created with `clonable: true`.
2275
+ *
2276
+ * This pass runs once, up front, so the main iteration loop (and the
2277
+ * existing _sanitizeShadowDOM template-content recursion) stay
2278
+ * untouched — string-input paths are not affected.
2279
+ *
2280
+ * @param root the subtree root to walk for attached shadow roots
2281
+ */
2282
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
2283
+ const stack = [{
2284
+ node: root,
2285
+ shadow: null
2286
+ }];
2287
+ while (stack.length > 0) {
2288
+ const item = stack.pop();
2289
+ if (item.shadow) {
2290
+ _sanitizeShadowDOM2(item.shadow);
2291
+ continue;
2292
+ }
2293
+ const node = item.node;
2294
+ const isElement = _readNodeType(node) === NODE_TYPE.element;
2295
+ const childNodes = getChildNodes(node);
2296
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push({
2297
+ node: childNodes[i],
2298
+ shadow: null
2299
+ });
2300
+ if (isElement) {
2301
+ const rootName = getNodeName ? getNodeName(node) : null;
2302
+ if (typeof rootName === "string" && transformCaseFunc(rootName) === "template") {
2303
+ const content = node.content;
2304
+ if (_isDocumentFragment(content)) stack.push({
2305
+ node: content,
2306
+ shadow: null
2307
+ });
2308
+ }
2309
+ }
2310
+ if (isElement) {
2311
+ const sr = getShadowRoot(node);
2312
+ if (_isDocumentFragment(sr)) stack.push({
2313
+ node: null,
2314
+ shadow: sr
2315
+ }, {
2316
+ node: sr,
2317
+ shadow: null
2318
+ });
2319
+ }
2320
+ }
2321
+ };
2322
+ DOMPurify.sanitize = function(dirty) {
2323
+ let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2324
+ let body = null;
2325
+ let importedNode = null;
2326
+ let currentNode = null;
2327
+ let returnNode = null;
2328
+ IS_EMPTY_INPUT = !dirty;
2329
+ if (IS_EMPTY_INPUT) dirty = "<!-->";
2330
+ if (typeof dirty !== "string" && !_isNode(dirty)) {
2331
+ dirty = stringifyValue(dirty);
2332
+ if (typeof dirty !== "string") throw typeErrorCreate("dirty is not a string, aborting");
2333
+ }
2334
+ if (!DOMPurify.isSupported) return dirty;
2335
+ if (SET_CONFIG) {
2336
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
2337
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
2338
+ } else _parseConfig(cfg);
2339
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) ALLOWED_TAGS = clone(ALLOWED_TAGS);
2340
+ if (hooks.uponSanitizeAttribute.length > 0) ALLOWED_ATTR = clone(ALLOWED_ATTR);
2341
+ DOMPurify.removed = [];
2342
+ const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
2343
+ if (inPlace) {
2344
+ _neutralizePatchLinkage(dirty);
2345
+ const nn = _readNodeName(dirty);
2346
+ if (typeof nn === "string") {
2347
+ const tagName = transformCaseFunc(nn);
2348
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2349
+ _neutralizeRoot(dirty);
2350
+ throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
2351
+ }
2352
+ }
2353
+ if (_isClobbered(dirty)) {
2354
+ _neutralizeRoot(dirty);
2355
+ throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
2356
+ }
2357
+ try {
2358
+ _sanitizeAttachedShadowRoots(dirty);
2359
+ } catch (error) {
2360
+ _neutralizeRoot(dirty);
2361
+ throw error;
2362
+ }
2363
+ } else if (_isNode(dirty)) {
2364
+ body = _initDocument("<!---->");
2365
+ importedNode = body.ownerDocument.importNode(dirty, true);
2366
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") body = importedNode;
2367
+ else if (importedNode.nodeName === "HTML") body = importedNode;
2368
+ else body.appendChild(importedNode);
2369
+ _sanitizeAttachedShadowRoots(body);
2370
+ } else {
2371
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf("<") === -1) return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
2372
+ body = _initDocument(dirty);
2373
+ if (!body) return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
2374
+ }
2375
+ if (body && FORCE_BODY) _forceRemove(body.firstChild);
2376
+ const walkRoot = inPlace ? dirty : body;
2377
+ try {
2378
+ const nodeIterator = _createNodeIterator(walkRoot);
2379
+ while (currentNode = nodeIterator.nextNode()) {
2380
+ _sanitizeElements(currentNode, walkRoot);
2381
+ _sanitizeAttributes(currentNode, walkRoot);
2382
+ if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
2383
+ }
2384
+ } catch (error) {
2385
+ if (inPlace) {
2386
+ _neutralizeRoot(dirty);
2387
+ arrayForEach(DOMPurify.removed, (entry) => {
2388
+ if (entry.element) _neutralizeSubtree(entry.element);
2389
+ });
2390
+ }
2391
+ throw error;
2392
+ }
2393
+ if (inPlace) {
2394
+ let rootWasRemoved = false;
2395
+ arrayForEach(DOMPurify.removed, (entry) => {
2396
+ if (entry.element) {
2397
+ if (entry.element === dirty) rootWasRemoved = true;
2398
+ _neutralizeSubtree(entry.element);
2399
+ }
2400
+ });
2401
+ if (rootWasRemoved) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
2402
+ if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
2403
+ return dirty;
2404
+ }
2405
+ if (RETURN_DOM) {
2406
+ if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(body);
2407
+ if (RETURN_DOM_FRAGMENT) {
2408
+ returnNode = createDocumentFragment.call(body.ownerDocument);
2409
+ while (body.firstChild) returnNode.appendChild(body.firstChild);
2410
+ } else returnNode = body;
2411
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) returnNode = importNode.call(originalDocument, returnNode, true);
2412
+ return returnNode;
2413
+ }
2414
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
2415
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
2416
+ if (SAFE_FOR_TEMPLATES) serializedHTML = _stripTemplateExpressions(serializedHTML);
2417
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
2418
+ };
2419
+ DOMPurify.setConfig = function() {
2420
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2421
+ _parseConfig(cfg);
2422
+ SET_CONFIG = true;
2423
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
2424
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
2425
+ };
2426
+ DOMPurify.clearConfig = function() {
2427
+ CONFIG = null;
2428
+ SET_CONFIG = false;
2429
+ SET_CONFIG_ALLOWED_TAGS = null;
2430
+ SET_CONFIG_ALLOWED_ATTR = null;
2431
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2432
+ emptyHTML = "";
2433
+ };
2434
+ DOMPurify.isValidAttribute = function(tag, attr, value) {
2435
+ if (!CONFIG) _parseConfig({});
2436
+ const lcTag = transformCaseFunc(tag);
2437
+ const lcName = transformCaseFunc(attr);
2438
+ return _isValidAttribute(lcTag, lcName, value);
2439
+ };
2440
+ DOMPurify.addHook = function(entryPoint, hookFunction) {
2441
+ if (typeof hookFunction !== "function") return;
2442
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2443
+ arrayPush(hooks[entryPoint], hookFunction);
2444
+ };
2445
+ DOMPurify.removeHook = function(entryPoint, hookFunction) {
2446
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2447
+ if (hookFunction !== void 0) {
2448
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
2449
+ return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
2450
+ }
2451
+ return arrayPop(hooks[entryPoint]);
2452
+ };
2453
+ DOMPurify.removeHooks = function(entryPoint) {
2454
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2455
+ hooks[entryPoint] = [];
2456
+ };
2457
+ DOMPurify.removeAllHooks = function() {
2458
+ hooks = _createHooksMap();
2459
+ };
2460
+ return DOMPurify;
2461
+ }
2462
+ var purify_default = createDOMPurify();
2463
+ export { purify_default as default };