@songtonyli/dsh-cli 0.1.30 → 0.1.32

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 (1814) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/README.md +4 -0
  4. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  5. package/node_modules/@deepseek-ai/cordis/src/index.ts +2 -0
  6. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  7. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  8. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  9. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +87 -7
  10. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -3
  11. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/diff.ts +45 -0
  12. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +53 -7
  13. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +13 -1
  14. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  15. package/node_modules/@deepseek-ai/cosmokit/README.md +6 -0
  16. package/node_modules/@deepseek-ai/cosmokit/lib/index.js +112 -19
  17. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  18. package/node_modules/@deepseek-ai/cosmokit/src/index.ts +2 -0
  19. package/node_modules/@deepseek-ai/cosmokit/src/types.ts +49 -23
  20. package/node_modules/@deepseek-ai/cosmokit/src/volatile.ts +86 -0
  21. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
  22. package/node_modules/@deepseek-ai/dsh/README.md +1 -1
  23. package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
  24. package/node_modules/@deepseek-ai/dsh/lib/bin.js +21 -5
  25. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-Bb5YvFIX.js → dump-config-C-0P1h0W.js} +14 -3
  26. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +2 -0
  27. package/node_modules/@deepseek-ai/dsh/lib/dump-config-schema-BgEU7VYz.js +41 -0
  28. package/node_modules/@deepseek-ai/dsh/lib/{plugin-DJ-rVHUS.js → plugin-CnNK4cws.js} +1 -1
  29. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-BNu17Y9U.js → profile-boot-DIiro1p-.js} +8 -15
  30. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  31. package/node_modules/@deepseek-ai/dsh/package.json +113 -119
  32. package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +7 -6
  33. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  34. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  35. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
  36. package/node_modules/@deepseek-ai/dsh-agent/README.md +3 -0
  37. package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +3 -0
  38. package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +40 -6
  39. package/node_modules/@deepseek-ai/dsh-agent/lib/types/archive-admission.js +35 -0
  40. package/node_modules/@deepseek-ai/dsh-agent/lib/types/consumed-work.js +5 -4
  41. package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +4 -0
  42. package/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +1 -2
  43. package/node_modules/@deepseek-ai/dsh-agent/package.json +27 -20
  44. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +2 -2
  45. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +9 -9
  46. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +9 -9
  47. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +26 -39
  48. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  49. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -2
  50. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +25 -25
  51. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  52. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -1
  54. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +39 -49
  55. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +26 -28
  56. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset}/README.i18n.yaml +3 -3
  57. package/node_modules/@deepseek-ai/dsh-agent-preset/README.md +94 -0
  58. package/node_modules/@deepseek-ai/dsh-agent-preset/README.zh.md +94 -0
  59. package/node_modules/@deepseek-ai/dsh-agent-preset/lib/index.js +29 -0
  60. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +49 -0
  61. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/SKILL.md +29 -0
  62. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +506 -0
  63. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +38 -0
  64. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +60 -0
  65. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/mcp-bundle.md +5 -0
  66. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +13 -0
  67. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/verification.md +5 -0
  68. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/client.js +22 -0
  69. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/cordis.patch.yml +3 -0
  70. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/index.js +2 -0
  71. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/package.json +15 -0
  72. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/cordis.patch.yml +8 -0
  73. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/package.json +7 -0
  74. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/editing-cordis-compositions/SKILL.md +84 -0
  75. package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-agent-preset-registry}/README.i18n.yaml +3 -3
  76. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +107 -0
  77. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +107 -0
  78. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +781 -0
  79. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +806 -0
  80. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/typert.host.js +118 -270
  81. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +84 -0
  82. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/composition-inventory.js +9 -36
  83. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/definition.js +29 -0
  84. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/display.js +12 -3
  85. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +371 -0
  86. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/invariant.js +7 -19
  87. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +243 -0
  88. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/preset.js +2 -0
  89. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/session.js +1 -1
  90. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +96 -0
  91. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +2 -2
  92. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.md +3 -3
  93. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.zh.md +3 -3
  94. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  95. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  96. package/node_modules/@deepseek-ai/{dsh-settings-file → dsh-api-account-controller}/README.i18n.yaml +3 -3
  97. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +53 -0
  98. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +53 -0
  99. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +209 -0
  100. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +273 -0
  101. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +267 -0
  102. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +116 -0
  103. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/types.js +2 -0
  104. package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-api-account-controller}/package.json +13 -20
  105. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  106. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -4
  107. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -4
  108. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +294 -51
  109. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +516 -92
  110. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +104 -14
  111. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +2 -2
  112. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +164 -11
  113. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +322 -33
  114. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-protocol.js +10 -46
  115. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-server.js +210 -23
  116. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +18 -13
  117. package/node_modules/@deepseek-ai/{dsh-llm-cursor → dsh-api-job-controller}/README.i18n.yaml +3 -3
  118. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.md +69 -0
  119. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.zh.md +69 -0
  120. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/client.js +367 -0
  121. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/index.js +377 -0
  122. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.host.js +273 -0
  123. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.remote-client.js +181 -0
  124. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/index.js +23 -0
  125. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/model.js +164 -0
  126. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/service.js +182 -0
  127. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/index.js +150 -0
  128. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/observe.js +107 -0
  129. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/rows.js +43 -0
  130. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/types.js +8 -0
  131. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/wake.js +59 -0
  132. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +82 -0
  133. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  134. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -0
  135. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -0
  136. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1751 -1017
  137. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +7 -3
  138. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +40 -39
  139. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  140. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +31 -8
  141. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +31 -8
  142. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +603 -515
  143. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +299 -137
  144. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +373 -183
  145. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +216 -124
  146. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +52 -0
  147. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +2 -1
  148. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +249 -277
  149. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +45 -13
  150. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +35 -47
  151. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +112 -50
  152. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +72 -36
  153. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +2 -44
  154. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +1 -1
  155. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +117 -13
  156. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +24 -15
  157. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/skill-catalog.js +60 -50
  158. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.js +0 -1
  159. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +68 -72
  160. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +2 -2
  161. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.md +1 -2
  162. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.zh.md +1 -2
  163. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/index.js +6 -78
  164. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.host.js +33 -99
  165. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.remote-client.js +32 -80
  166. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/types/index.js +6 -61
  167. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  168. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +50 -22
  169. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +4 -4
  170. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -19
  171. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +2 -2
  172. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +16 -2
  173. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +16 -2
  174. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +98 -6
  175. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +202 -15
  176. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +161 -11
  177. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +121 -8
  178. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/index.js +4 -1
  179. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +70 -2
  180. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +33 -3
  181. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/commands.js +45 -7
  182. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +65 -0
  183. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/feed.js +9 -1
  184. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +62 -5
  185. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -18
  186. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
  187. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +26 -25
  188. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +26 -25
  189. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/client.js +41 -35
  190. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +129 -121
  191. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +72 -141
  192. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +61 -120
  193. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/changes.js +106 -46
  194. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/change-feed.js +34 -27
  195. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/provider.js +13 -6
  196. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +32 -53
  197. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -14
  198. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  199. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +33 -15
  200. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +33 -15
  201. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +1647 -681
  202. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +255 -357
  203. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +20 -18
  204. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
  205. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +4 -4
  206. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +4 -4
  207. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  208. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  209. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  210. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +2 -2
  211. package/node_modules/@deepseek-ai/dsh-authorization/README.md +2 -0
  212. package/node_modules/@deepseek-ai/dsh-authorization/README.zh.md +2 -0
  213. package/node_modules/@deepseek-ai/dsh-authorization/lib/index.js +16 -4
  214. package/node_modules/@deepseek-ai/dsh-authorization/lib/types/index.js +19 -4
  215. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  216. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  217. package/node_modules/@deepseek-ai/dsh-base/README.md +2 -0
  218. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -0
  219. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +20 -26
  220. package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
  221. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +2 -2
  222. package/node_modules/@deepseek-ai/dsh-bash-local/README.md +7 -6
  223. package/node_modules/@deepseek-ai/dsh-bash-local/README.zh.md +7 -6
  224. package/node_modules/@deepseek-ai/dsh-bash-local/lib/index.js +153 -202
  225. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -13
  226. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +2 -2
  227. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.md +3 -3
  228. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.zh.md +3 -3
  229. package/node_modules/@deepseek-ai/dsh-bash-sandbox/lib/index.js +58 -63
  230. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  231. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  232. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  233. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
  234. package/node_modules/@deepseek-ai/dsh-client-connection/README.md +7 -3
  235. package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +7 -3
  236. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +169 -28
  237. package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +98 -36
  238. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -10
  239. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/client.js +8 -12
  240. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/index.js +1 -0
  241. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +46 -18
  242. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/client/runtime.js +5 -12
  243. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/protocol.js +5 -0
  244. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  245. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
  246. package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +2 -2
  247. package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +2 -2
  248. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +6 -4
  249. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +8 -5
  250. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  251. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +2 -2
  252. package/node_modules/@deepseek-ai/dsh-client-locale/README.md +9 -1
  253. package/node_modules/@deepseek-ai/dsh-client-locale/README.zh.md +9 -1
  254. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +225 -75
  255. package/node_modules/@deepseek-ai/dsh-client-locale/lib/index.js +9 -8
  256. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -11
  257. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  258. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +2 -1
  259. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +2 -1
  260. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +57 -36
  261. package/node_modules/@deepseek-ai/dsh-client-modules/lib/invariant.js +2 -2
  262. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -7
  263. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -6
  264. package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +21 -0
  265. package/node_modules/@deepseek-ai/{dsh-client-ui-settings-unarchive-sessions → dsh-client-store}/README.i18n.yaml +3 -3
  266. package/node_modules/@deepseek-ai/dsh-client-store/README.md +48 -0
  267. package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +48 -0
  268. package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +180 -0
  269. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +121 -0
  270. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +92 -0
  271. package/node_modules/@deepseek-ai/dsh-client-store/package.json +37 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +13 -31
  274. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +22 -40
  275. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +865 -1033
  276. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +21 -19
  277. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +3 -3
  278. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -14
  279. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
  280. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  281. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  282. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +28 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  284. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  285. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +62 -10
  287. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +60 -10
  288. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +4808 -1393
  289. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +37 -10
  290. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +41 -37
  291. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  292. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  293. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  294. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +20 -12
  295. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -16
  296. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
  297. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +19 -5
  298. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +19 -5
  299. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +1321 -349
  300. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +9 -8
  301. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +34 -32
  302. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
  303. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -2
  304. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +28 -25
  306. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  307. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  308. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +14 -7
  309. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +14 -7
  310. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +628 -497
  311. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +17 -8
  312. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +31 -28
  313. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +7 -7
  314. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  315. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  316. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +2 -2
  317. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.md +3 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.zh.md +3 -1
  319. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +18 -9
  320. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  321. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +13 -7
  322. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -13
  323. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
  324. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +25 -18
  325. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +29 -22
  326. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +413 -63
  327. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/index.js +5 -5
  328. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +26 -23
  329. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
  330. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +6 -2
  331. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +6 -2
  332. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +75 -4
  333. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +10 -9
  334. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +2 -2
  335. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.md +3 -3
  336. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.zh.md +3 -3
  337. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +15 -13
  338. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -17
  339. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
  340. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +4 -0
  341. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +4 -0
  342. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +12 -9
  343. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -16
  344. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  345. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +20 -8
  346. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +20 -8
  347. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +530 -195
  348. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +25 -15
  349. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +2 -2
  350. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.md +1 -1
  351. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.zh.md +1 -1
  352. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +39 -100
  353. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -16
  354. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  355. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +7 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +8 -6
  357. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +73 -60
  358. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -21
  359. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
  360. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +29 -8
  361. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +29 -8
  362. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +1095 -381
  363. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -12
  364. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +2 -2
  365. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +25 -11
  366. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +25 -11
  367. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +1 -10
  368. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +27 -0
  369. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +68 -48
  370. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +6 -2
  371. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +1 -2
  372. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +28 -0
  373. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  374. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +76 -0
  375. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +55 -0
  376. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +64 -37
  377. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +13 -6
  378. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +27 -0
  379. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +31 -2
  380. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +12 -0
  381. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +5418 -2739
  382. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +1 -1
  383. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +53 -0
  384. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +145 -0
  385. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +33 -0
  386. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +4 -1
  387. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +14 -4
  388. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +15 -30
  389. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +50 -5
  390. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +13 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +39 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +12 -7
  393. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +35 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +26 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +1 -1
  396. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +6 -4
  397. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +15 -3
  398. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +13 -0
  399. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +19 -2
  400. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +12 -2
  401. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +1 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +19 -0
  403. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +376 -195
  404. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +1 -1
  405. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +36 -0
  406. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +21 -4
  407. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +14 -0
  408. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +17 -0
  409. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +46 -0
  410. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +69 -0
  411. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +214 -0
  412. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +4 -1
  413. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +3 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +5 -3
  415. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  416. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  417. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  418. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +12 -3
  419. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  420. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +7 -5
  421. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  422. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
  423. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
  424. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
  425. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +7 -8
  426. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +12 -12
  427. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
  428. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +2 -0
  429. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +2 -3
  431. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -9
  432. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +2 -2
  433. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +20 -11
  434. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +20 -11
  435. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +281 -117
  436. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/index.js +18 -4
  437. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +13 -10
  438. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +6 -0
  439. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +75 -0
  440. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +75 -0
  441. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2383 -0
  442. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +28 -0
  443. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +69 -0
  444. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +6 -0
  445. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.md +78 -0
  446. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.zh.md +78 -0
  447. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/client.js +175 -0
  448. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/index.js +12 -0
  449. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +60 -0
  450. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  451. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +17 -6
  452. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +17 -6
  453. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +166 -36
  454. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/index.js +8 -8
  455. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +19 -15
  456. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  457. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +14 -11
  458. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +25 -22
  459. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1246 -180
  460. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/index.js +24 -4
  461. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +15 -10
  462. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
  463. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +5 -3
  464. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +5 -3
  465. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +116 -61
  466. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -12
  467. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
  468. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +11 -46
  469. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +15 -50
  470. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +15 -1753
  471. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -14
  472. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +6 -0
  473. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.md +78 -0
  474. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.zh.md +78 -0
  475. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/client.js +199 -0
  476. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/index.js +12 -0
  477. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +60 -0
  478. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +9 -8
  479. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +6 -0
  480. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.md +82 -0
  481. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +82 -0
  482. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +857 -0
  483. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/index.js +13 -0
  484. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +61 -0
  485. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +6 -0
  486. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +79 -0
  487. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +79 -0
  488. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +324 -0
  489. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/index.js +13 -0
  490. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +61 -0
  491. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  492. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +2 -2
  493. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +2 -2
  494. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +35 -28
  495. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -13
  496. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +2 -2
  497. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +13 -12
  498. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +13 -12
  499. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +1191 -429
  500. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +16 -9
  501. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  502. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +46 -20
  503. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +46 -20
  504. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +133782 -0
  505. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +3766 -789
  506. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +37 -15
  507. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +13 -6
  508. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +34 -21
  509. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
  510. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +11 -9
  511. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +11 -9
  512. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +316 -106
  513. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +15 -13
  514. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
  515. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +10 -7
  516. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +10 -7
  517. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +323 -111
  518. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -14
  519. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
  520. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +3 -3
  521. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +3 -3
  522. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +24 -141
  523. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  524. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +16 -15
  525. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
  526. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +3 -1
  527. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +3 -1
  528. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +25 -24
  529. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  530. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  531. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
  532. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +13 -7
  533. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +13 -7
  534. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +168 -260
  535. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  536. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  537. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +6 -4
  538. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +6 -4
  539. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +172 -70
  540. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +14 -27
  541. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/Montserrat-OFL.txt +93 -0
  542. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/brand-font.css +24 -0
  543. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-light.woff2 +0 -0
  544. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-medium.woff2 +0 -0
  545. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-regular.woff2 +0 -0
  546. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +17 -15
  547. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
  548. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +10 -2
  549. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +10 -2
  550. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1887 -204
  551. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
  552. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
  553. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  554. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  555. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +32 -44
  556. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -17
  557. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
  558. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +1 -1
  559. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +1 -1
  560. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +19 -13
  561. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -19
  562. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
  563. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
  564. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
  565. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +9 -8
  566. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -15
  567. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  568. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +102 -11
  569. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +102 -11
  570. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +2182 -1015
  571. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -22
  572. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  573. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  574. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  575. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  576. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +46 -18
  577. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  578. package/node_modules/@deepseek-ai/dsh-compaction/lib/index.js +2 -5
  579. package/node_modules/@deepseek-ai/dsh-compaction/lib/invariant.js +4 -22
  580. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/checkpoint.js +2 -2
  581. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/invariant.js +2 -3
  582. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  583. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +2 -2
  584. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +9 -8
  585. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +9 -8
  586. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +50 -19
  587. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  588. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/index.js +1 -7
  589. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/image-offload.js +0 -3
  590. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/project-message.js +0 -5
  591. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  592. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/lib/index.js +3 -7
  593. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  594. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +6 -0
  595. package/node_modules/@deepseek-ai/dsh-config-editor/README.md +79 -0
  596. package/node_modules/@deepseek-ai/dsh-config-editor/README.zh.md +79 -0
  597. package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +132 -0
  598. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +54 -0
  599. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +878 -170
  600. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  601. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +6 -68
  602. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +107 -51
  603. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +15 -15
  604. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -6
  605. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/sandbox.js +0 -27
  606. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  607. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  608. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  609. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +6 -0
  610. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +63 -0
  611. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +63 -0
  612. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +35 -0
  613. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +36 -0
  614. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/types.js +2 -0
  615. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +42 -0
  616. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +6 -0
  617. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +96 -0
  618. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +96 -0
  619. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +891 -0
  620. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +55 -0
  621. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +488 -0
  622. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/logout.js +34 -0
  623. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +210 -0
  624. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/types.js +2 -0
  625. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +52 -0
  626. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  627. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +1 -1
  628. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +1 -1
  629. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  630. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  631. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +2 -2
  632. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +8 -4
  633. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +8 -4
  634. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +14 -74
  635. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +6 -8
  636. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +51 -189
  637. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +3 -151
  638. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  639. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -41
  640. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +10 -10
  641. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +8 -4
  642. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +6 -0
  643. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +6 -0
  644. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +28 -26
  645. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +2 -2
  646. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +16 -4
  647. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +16 -4
  648. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +3 -0
  649. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +12 -0
  650. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +6 -0
  651. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +6 -0
  652. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +12 -7
  653. package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-api-speech-to-text}/README.i18n.yaml +3 -3
  654. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +78 -0
  655. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +78 -0
  656. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +218 -0
  657. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +432 -0
  658. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +311 -0
  659. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +142 -0
  660. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/types.js +2 -0
  661. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +60 -0
  662. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +2 -2
  663. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +11 -9
  664. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +11 -9
  665. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +127 -562
  666. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +6 -0
  667. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +6 -0
  668. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +30 -27
  669. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +6 -0
  670. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +76 -0
  671. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +76 -0
  672. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +5714 -0
  673. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/index.js +6 -0
  674. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +92 -0
  675. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +6 -0
  676. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +80 -0
  677. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +80 -0
  678. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +200 -0
  679. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +181 -0
  680. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/types.js +2 -0
  681. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/wave.js +24 -0
  682. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +57 -0
  683. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +6 -0
  684. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +82 -0
  685. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +82 -0
  686. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +818 -0
  687. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +219 -0
  688. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +53 -0
  689. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/runtime/assets.json +28 -0
  690. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +2 -2
  691. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +3 -3
  692. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +3 -3
  693. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +23 -24
  694. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +6 -0
  695. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +6 -0
  696. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +27 -25
  697. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +6 -0
  698. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.md +77 -0
  699. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.zh.md +77 -0
  700. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/cordis.patch.yml +13 -0
  701. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/icon.svg +9 -0
  702. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/en.json +6 -0
  703. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +6 -0
  704. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +54 -0
  705. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +2 -2
  706. package/node_modules/@deepseek-ai/dsh-file-reference/README.md +1 -1
  707. package/node_modules/@deepseek-ai/dsh-file-reference/README.zh.md +1 -1
  708. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  709. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +2 -2
  710. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.md +3 -4
  711. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.zh.md +3 -4
  712. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  713. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +2 -2
  714. package/node_modules/@deepseek-ai/dsh-fs/README.md +7 -5
  715. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +7 -5
  716. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +12 -0
  717. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  718. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +2 -2
  719. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +6 -3
  720. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +6 -3
  721. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +27 -0
  722. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -7
  723. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  724. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +2 -2
  725. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +1 -1
  726. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +1 -1
  727. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  728. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +46 -18
  729. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  730. package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +2 -3
  731. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  732. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
  733. package/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-BA-F3lfb.js} +4 -4
  734. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +1 -1
  735. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  736. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
  737. package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -1
  738. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -1
  739. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  740. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  741. package/node_modules/@deepseek-ai/dsh-hook-protocol/lib/index.js +1 -1
  742. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  743. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/lib/index.js +4 -7
  744. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  745. package/node_modules/@deepseek-ai/dsh-hooks-codex/lib/index.js +3 -6
  746. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  747. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  748. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  749. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  750. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  751. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +2 -2
  752. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.md +3 -1
  753. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.zh.md +3 -1
  754. package/node_modules/@deepseek-ai/dsh-host-frontend-static/lib/index.js +1 -1
  755. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  756. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +2 -2
  757. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.md +2 -0
  758. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.zh.md +2 -0
  759. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +28 -81
  760. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/icons.js +4 -49
  761. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/index.js +8 -8
  762. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +8 -27
  763. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/shared.js +16 -7
  764. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  765. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +2 -2
  766. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.md +8 -4
  767. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.zh.md +8 -4
  768. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +19 -11
  769. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +23 -4
  770. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +23 -4
  771. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +18 -10
  772. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +14 -12
  773. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +2 -2
  774. package/node_modules/@deepseek-ai/dsh-host-webserver/README.md +1 -1
  775. package/node_modules/@deepseek-ai/dsh-host-webserver/README.zh.md +1 -1
  776. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -0
  777. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  778. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  779. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +2 -2
  780. package/node_modules/@deepseek-ai/dsh-invariants/README.md +1 -1
  781. package/node_modules/@deepseek-ai/dsh-invariants/README.zh.md +1 -1
  782. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  783. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +2 -2
  784. package/node_modules/@deepseek-ai/dsh-jobs/README.md +18 -11
  785. package/node_modules/@deepseek-ai/dsh-jobs/README.zh.md +18 -11
  786. package/node_modules/@deepseek-ai/dsh-jobs/lib/index.js +74 -16
  787. package/node_modules/@deepseek-ai/dsh-jobs/lib/invariant.js +67 -17
  788. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/archive-admission.js +43 -0
  789. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/index.js +34 -16
  790. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/invariant.js +90 -27
  791. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/types.js +3 -2
  792. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/view.js +9 -0
  793. package/node_modules/@deepseek-ai/dsh-jobs/package.json +22 -11
  794. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +2 -2
  795. package/node_modules/@deepseek-ai/dsh-jobs-local/README.md +18 -11
  796. package/node_modules/@deepseek-ai/dsh-jobs-local/README.zh.md +17 -10
  797. package/node_modules/@deepseek-ai/dsh-jobs-local/lib/index.js +566 -193
  798. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  799. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  800. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  801. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  802. package/node_modules/@deepseek-ai/dsh-llm/README.md +11 -8
  803. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +11 -8
  804. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +41 -97
  805. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +69 -13
  806. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  807. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +4 -4
  808. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +12 -64
  809. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +3 -1
  810. package/node_modules/@deepseek-ai/dsh-llm/lib/types/message.js +21 -16
  811. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  812. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  813. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +35 -49
  814. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +36 -50
  815. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1132 -2048
  816. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +53 -43
  817. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  818. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +12 -9
  819. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +11 -8
  820. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +84 -184
  821. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +30 -24
  822. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
  823. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  824. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  825. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  826. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +2 -2
  827. package/node_modules/@deepseek-ai/dsh-native-command/README.md +8 -9
  828. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +8 -9
  829. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +612 -3
  830. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/desktop-entry.js +79 -0
  831. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-linux.js +70 -0
  832. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +228 -0
  833. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications.js +191 -0
  834. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/index.js +10 -0
  835. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +230 -0
  836. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/runner.js +27 -0
  837. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/types.js +25 -0
  838. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/url-opener.js +88 -0
  839. package/node_modules/@deepseek-ai/dsh-native-command/package.json +10 -5
  840. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +33 -57
  841. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
  842. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +2 -2
  843. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +2 -2
  844. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +2 -2
  845. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +4 -4
  846. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +41 -3
  847. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +39 -1
  848. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +4 -3
  849. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  850. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  851. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +2 -2
  852. package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +3 -1
  853. package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +3 -1
  854. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  855. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +2 -2
  856. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +1 -1
  857. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +1 -1
  858. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +16 -35
  859. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +54 -20
  860. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +7 -1
  861. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +14 -38
  862. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -24
  863. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
  864. package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
  865. package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
  866. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  867. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -2
  868. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
  869. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  870. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  871. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +12 -2
  872. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +12 -2
  873. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +371 -74
  874. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +203 -29
  875. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +155 -15
  876. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +210 -70
  877. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -1
  878. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +16 -2
  879. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +35 -5
  880. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +95 -0
  881. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +5 -1
  882. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +37 -32
  883. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +2 -2
  884. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.md +1 -1
  885. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.zh.md +1 -1
  886. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/index.js +1 -1
  887. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/types/index.js +1 -1
  888. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +20 -20
  889. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  890. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  891. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +2 -2
  892. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.md +6 -5
  893. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.zh.md +6 -5
  894. package/node_modules/@deepseek-ai/dsh-pwsh-local/lib/index.js +161 -196
  895. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -13
  896. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +2 -2
  897. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.md +5 -5
  898. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.zh.md +5 -5
  899. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/lib/index.js +58 -63
  900. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  901. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +36 -60
  902. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  903. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  904. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +3 -3
  905. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +3 -3
  906. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +3 -3
  907. package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +3 -2
  908. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  909. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  910. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +3 -3
  911. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +19 -15
  912. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +17 -13
  913. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  914. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  915. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-CutH1Lgc.js → types-DxezulnA.js} +267 -78
  916. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  917. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
  918. package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -1
  919. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +4 -1
  920. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +104 -37
  921. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +61 -5
  922. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +11 -1
  923. package/node_modules/@deepseek-ai/dsh-schedule/package.json +25 -23
  924. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  925. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
  926. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -0
  927. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -0
  928. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +15 -0
  929. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +10 -8
  930. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  931. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  932. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  933. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  934. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
  935. package/node_modules/@deepseek-ai/dsh-session/README.md +11 -9
  936. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +12 -8
  937. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +215 -125
  938. package/node_modules/@deepseek-ai/dsh-session/lib/invariant.js +4 -1
  939. package/node_modules/@deepseek-ai/dsh-session/lib/types/fork.js +28 -0
  940. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +56 -61
  941. package/node_modules/@deepseek-ai/dsh-session/lib/types/invariant.js +5 -1
  942. package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
  943. package/node_modules/@deepseek-ai/dsh-session/lib/types/repair.js +52 -23
  944. package/node_modules/@deepseek-ai/dsh-session/lib/types/surface.js +73 -17
  945. package/node_modules/@deepseek-ai/dsh-session/lib/types/types.js +1 -1
  946. package/node_modules/@deepseek-ai/dsh-session/package.json +15 -11
  947. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  948. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  949. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +2 -2
  950. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.md +5 -1
  951. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.zh.md +5 -1
  952. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/index.js +55 -10
  953. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/children.js +17 -0
  954. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/generated.js +25 -11
  955. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/historical.js +20 -0
  956. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/index.js +2 -0
  957. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -10
  958. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  959. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  960. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  961. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +6 -0
  962. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +350 -0
  963. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +350 -0
  964. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +1552 -0
  965. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +51 -0
  966. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +1 -0
  967. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +1 -0
  968. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +19 -19
  969. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +2 -2
  970. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -2
  971. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -2
  972. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +43 -20
  973. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/index.js +48 -17
  974. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -23
  975. package/node_modules/@deepseek-ai/dsh-session-persistence/lib/index.js +2 -0
  976. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  977. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +2 -2
  978. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.md +6 -2
  979. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.zh.md +6 -2
  980. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +210 -45
  981. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +1456 -313
  982. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +14 -14
  983. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  984. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
  985. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +2 -2
  986. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +2 -2
  987. package/node_modules/@deepseek-ai/dsh-session-projection-cache/lib/index.js +71 -51
  988. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  989. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +4 -5
  990. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  991. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  992. package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +5 -5
  993. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +47 -19
  994. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +1 -1
  995. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +3 -7
  996. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/projection.js +1 -0
  997. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  998. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  999. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +2 -2
  1000. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.md +1 -1
  1001. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.zh.md +1 -1
  1002. package/node_modules/@deepseek-ai/dsh-session-telemetry/lib/index.js +6 -5
  1003. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  1004. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  1005. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  1006. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +17 -17
  1007. package/node_modules/@deepseek-ai/dsh-session-title-llm/lib/index.js +1 -4
  1008. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  1009. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  1010. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +2 -2
  1011. package/node_modules/@deepseek-ai/dsh-settings/README.md +19 -96
  1012. package/node_modules/@deepseek-ai/dsh-settings/README.zh.md +25 -102
  1013. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +360 -426
  1014. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +271 -512
  1015. package/node_modules/@deepseek-ai/dsh-settings/lib/types/redact.js +14 -8
  1016. package/node_modules/@deepseek-ai/dsh-settings/lib/types/schema.js +85 -0
  1017. package/node_modules/@deepseek-ai/dsh-settings/lib/types/types.js +1 -9
  1018. package/node_modules/@deepseek-ai/dsh-settings/package.json +21 -17
  1019. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +2 -2
  1020. package/node_modules/@deepseek-ai/dsh-shell/README.md +17 -10
  1021. package/node_modules/@deepseek-ai/dsh-shell/README.zh.md +17 -10
  1022. package/node_modules/@deepseek-ai/dsh-shell/lib/index.js +19 -21
  1023. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -9
  1024. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +2 -2
  1025. package/node_modules/@deepseek-ai/dsh-shell-env/README.md +5 -5
  1026. package/node_modules/@deepseek-ai/dsh-shell-env/README.zh.md +5 -5
  1027. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +10 -1
  1028. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -12
  1029. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  1030. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  1031. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  1032. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +6 -0
  1033. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +100 -0
  1034. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +100 -0
  1035. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +46 -0
  1036. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +70 -0
  1037. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +56 -0
  1038. package/node_modules/@deepseek-ai/dsh-skill-office/assets/scripts/check_office.py +279 -0
  1039. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +80 -0
  1040. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +43 -0
  1041. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  1042. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  1043. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +21 -21
  1044. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  1045. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  1046. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  1047. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
  1048. package/node_modules/@deepseek-ai/dsh-subagent/README.md +9 -6
  1049. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +9 -6
  1050. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +301 -239
  1051. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +60 -89
  1052. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -56
  1053. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +151 -0
  1054. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +12 -6
  1055. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +2 -3
  1056. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +2 -40
  1057. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -91
  1058. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +14 -19
  1059. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +45 -49
  1060. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/projection.js +10 -4
  1061. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/run-settlement.js +1 -1
  1062. package/node_modules/@deepseek-ai/dsh-subagent/package.json +57 -54
  1063. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  1064. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  1065. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  1066. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +20 -20
  1067. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  1068. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  1069. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +3 -3
  1070. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  1071. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  1072. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  1073. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +2 -3
  1074. package/node_modules/@deepseek-ai/dsh-time-context/lib/invariant.js +4 -4
  1075. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
  1076. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  1077. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +35 -57
  1078. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  1079. package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +0 -7
  1080. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/estimate.js +0 -3
  1081. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/surface-fold.js +0 -5
  1082. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  1083. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  1084. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  1085. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +16 -10
  1086. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +16 -10
  1087. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +421 -183
  1088. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  1089. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +2 -2
  1090. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.md +1 -1
  1091. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.zh.md +1 -1
  1092. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +9 -3
  1093. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +22 -22
  1094. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  1095. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  1096. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +6 -5
  1097. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +6 -5
  1098. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +4 -9980
  1099. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +7809 -0
  1100. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/config.js +93 -0
  1101. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/host.js +17 -0
  1102. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +57 -0
  1103. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/present.js +16 -0
  1104. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/providers.js +85 -0
  1105. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +21 -12
  1106. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +30 -30
  1107. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  1108. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -2
  1109. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  1110. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +2 -2
  1111. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +9 -8
  1112. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +10 -9
  1113. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +110 -51
  1114. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  1115. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +2 -2
  1116. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  1117. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  1118. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +1 -1
  1119. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -4
  1120. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  1121. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
  1122. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +10 -5
  1123. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +10 -5
  1124. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +440 -207
  1125. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  1126. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +2 -2
  1127. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +1 -1
  1128. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +1 -1
  1129. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +9 -3
  1130. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +23 -23
  1131. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1132. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1133. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +20 -20
  1134. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
  1135. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1136. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1137. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  1138. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/model-selection-settings.js +12 -38
  1139. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -32
  1140. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +2 -2
  1141. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1142. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1143. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +1 -1
  1144. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +1 -1
  1145. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +10 -20
  1146. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1147. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1148. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +21 -21
  1149. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +2 -2
  1150. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +21 -8
  1151. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +21 -8
  1152. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +179 -11
  1153. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +147 -14
  1154. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/record.js +43 -0
  1155. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -21
  1156. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +6 -0
  1157. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.md +128 -0
  1158. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.zh.md +128 -0
  1159. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/lib/index.js +252 -0
  1160. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +44 -0
  1161. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
  1162. package/node_modules/@deepseek-ai/dsh-tools/README.md +4 -0
  1163. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +4 -0
  1164. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +5 -6
  1165. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +2 -1
  1166. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1167. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +1 -0
  1168. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1169. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  1170. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +18 -16
  1171. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +18 -16
  1172. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +866 -144
  1173. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
  1174. package/node_modules/@deepseek-ai/dsh-typert-loader/lib/index.js +1 -0
  1175. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1176. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
  1177. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +7 -2
  1178. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +7 -2
  1179. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +66 -3
  1180. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +20 -2
  1181. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/json-value.js +61 -0
  1182. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +6 -3
  1183. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/client.js +3 -0
  1184. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/index.js +3 -0
  1185. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/types/service.js +6 -0
  1186. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1187. package/node_modules/@deepseek-ai/dsh-user-approval/lib/index.js +1 -4
  1188. package/node_modules/@deepseek-ai/dsh-user-approval/lib/invariant.js +1 -4
  1189. package/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.js +1 -1
  1190. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1191. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1192. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1193. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1194. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1195. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1196. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1197. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  1198. package/node_modules/@deepseek-ai/dsh-web-app/README.md +9 -6
  1199. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +9 -6
  1200. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +51 -29
  1201. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +293 -1
  1202. package/node_modules/@deepseek-ai/dsh-web-app/package.json +150 -102
  1203. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +154 -0
  1204. package/node_modules/@deepseek-ai/dsh-web-app/presets/minimal.patch.yml +61 -0
  1205. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +152 -0
  1206. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +146 -0
  1207. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1208. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +127 -0
  1209. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +1 -0
  1210. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon-dark.svg +3 -0
  1211. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon.svg +0 -5
  1212. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +4 -3
  1213. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest +3 -4
  1214. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +15 -10
  1215. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +2 -2
  1216. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +4 -4
  1217. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +4 -4
  1218. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +21 -29
  1219. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -18
  1220. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1221. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1222. package/node_modules/@deepseek-ai/dsh-webhook/lib/index.js +121 -50
  1223. package/node_modules/@deepseek-ai/dsh-webhook/lib/types/session.js +111 -46
  1224. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1225. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1226. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1227. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1228. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
  1229. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +2 -2
  1230. package/node_modules/@deepseek-ai/dsh-workspace/README.md +16 -4
  1231. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +17 -4
  1232. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +166 -25
  1233. package/node_modules/@deepseek-ai/dsh-workspace/lib/invariant.js +8 -3
  1234. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +185 -21
  1235. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/spec.js +11 -4
  1236. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1237. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1238. package/node_modules/@deepseek-ai/schemastery/README.md +4 -0
  1239. package/node_modules/@deepseek-ai/schemastery/lib/index.cjs +40 -1
  1240. package/node_modules/@deepseek-ai/schemastery/lib/index.mjs +41 -2
  1241. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1242. package/node_modules/@deepseek-ai/schemastery/src/index.ts +93 -33
  1243. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +0 -1
  1244. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +0 -1
  1245. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +0 -1
  1246. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +0 -1
  1247. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +0 -1
  1248. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +0 -2
  1249. package/node_modules/@eslint-community/regexpp/LICENSE +21 -0
  1250. package/node_modules/@eslint-community/regexpp/README.md +177 -0
  1251. package/node_modules/@eslint-community/regexpp/index.js +3042 -0
  1252. package/node_modules/@eslint-community/regexpp/index.mjs +3032 -0
  1253. package/node_modules/@eslint-community/regexpp/package.json +71 -0
  1254. package/node_modules/ajv/.runkit_example.js +23 -0
  1255. package/node_modules/ajv/LICENSE +22 -0
  1256. package/node_modules/ajv/README.md +207 -0
  1257. package/node_modules/ajv/dist/2019.js +61 -0
  1258. package/node_modules/ajv/dist/2020.js +55 -0
  1259. package/node_modules/ajv/dist/ajv.js +50 -0
  1260. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  1261. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  1262. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  1263. package/node_modules/ajv/dist/compile/errors.js +123 -0
  1264. package/node_modules/ajv/dist/compile/index.js +242 -0
  1265. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  1266. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  1267. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  1268. package/node_modules/ajv/dist/compile/names.js +28 -0
  1269. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  1270. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  1271. package/node_modules/ajv/dist/compile/rules.js +26 -0
  1272. package/node_modules/ajv/dist/compile/util.js +178 -0
  1273. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  1274. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  1275. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  1276. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  1277. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  1278. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  1279. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  1280. package/node_modules/ajv/dist/core.js +618 -0
  1281. package/node_modules/ajv/dist/jtd.js +72 -0
  1282. package/node_modules/ajv/dist/refs/data.json +13 -0
  1283. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  1284. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1285. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  1286. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  1287. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  1288. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1289. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  1290. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  1291. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  1292. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1293. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  1294. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  1295. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1296. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1297. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1298. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  1299. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  1300. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  1301. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  1302. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  1303. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  1304. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  1305. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  1306. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  1307. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  1308. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  1309. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  1310. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  1311. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  1312. package/node_modules/ajv/dist/standalone/index.js +90 -0
  1313. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  1314. package/node_modules/ajv/dist/types/index.js +3 -0
  1315. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  1316. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  1317. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  1318. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  1319. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  1320. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  1321. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  1322. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  1323. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  1324. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  1325. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  1326. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  1327. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  1328. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  1329. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  1330. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  1331. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  1332. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  1333. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  1334. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  1335. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  1336. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  1337. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  1338. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  1339. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  1340. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  1341. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  1342. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  1343. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  1344. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  1345. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  1346. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  1347. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  1348. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  1349. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  1350. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  1351. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  1352. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  1353. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  1354. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  1355. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  1356. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  1357. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  1358. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  1359. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  1360. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  1361. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  1362. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  1363. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  1364. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  1365. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  1366. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  1367. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  1368. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  1369. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  1370. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  1371. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  1372. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  1373. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  1374. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  1375. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  1376. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  1377. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  1378. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  1379. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  1380. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  1381. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  1382. package/node_modules/ajv/lib/2019.ts +81 -0
  1383. package/node_modules/ajv/lib/2020.ts +75 -0
  1384. package/node_modules/ajv/lib/ajv.ts +70 -0
  1385. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  1386. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  1387. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  1388. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  1389. package/node_modules/ajv/lib/compile/index.ts +324 -0
  1390. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  1391. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  1392. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  1393. package/node_modules/ajv/lib/compile/names.ts +27 -0
  1394. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  1395. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  1396. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  1397. package/node_modules/ajv/lib/compile/util.ts +213 -0
  1398. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  1399. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  1400. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  1401. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  1402. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  1403. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  1404. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  1405. package/node_modules/ajv/lib/core.ts +892 -0
  1406. package/node_modules/ajv/lib/jtd.ts +132 -0
  1407. package/node_modules/ajv/lib/refs/data.json +13 -0
  1408. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  1409. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1410. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  1411. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  1412. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  1413. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1414. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  1415. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  1416. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  1417. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1418. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  1419. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  1420. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1421. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1422. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1423. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  1424. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  1425. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  1426. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  1427. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  1428. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  1429. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  1430. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  1431. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  1432. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  1433. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  1434. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  1435. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  1436. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  1437. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  1438. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  1439. package/node_modules/ajv/lib/types/index.ts +244 -0
  1440. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  1441. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  1442. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  1443. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  1444. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  1445. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  1446. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  1447. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  1448. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  1449. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  1450. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  1451. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  1452. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  1453. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  1454. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  1455. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  1456. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  1457. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  1458. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  1459. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  1460. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  1461. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  1462. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  1463. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  1464. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  1465. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  1466. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  1467. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  1468. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  1469. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  1470. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  1471. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  1472. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  1473. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  1474. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  1475. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  1476. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  1477. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  1478. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  1479. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  1480. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  1481. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  1482. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  1483. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  1484. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  1485. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  1486. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  1487. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  1488. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  1489. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  1490. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  1491. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  1492. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  1493. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  1494. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  1495. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  1496. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  1497. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  1498. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  1499. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  1500. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  1501. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  1502. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  1503. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  1504. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  1505. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  1506. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  1507. package/node_modules/ajv/package.json +104 -0
  1508. package/node_modules/fast-uri/.gitattributes +2 -0
  1509. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1510. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  1511. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  1512. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  1513. package/node_modules/fast-uri/LICENSE +30 -0
  1514. package/node_modules/fast-uri/README.md +152 -0
  1515. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  1516. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  1517. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  1518. package/node_modules/fast-uri/benchmark/package.json +17 -0
  1519. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  1520. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  1521. package/node_modules/fast-uri/eslint.config.js +6 -0
  1522. package/node_modules/fast-uri/index.js +631 -0
  1523. package/node_modules/fast-uri/lib/schemes.js +272 -0
  1524. package/node_modules/fast-uri/lib/utils.js +747 -0
  1525. package/node_modules/fast-uri/package.json +56 -0
  1526. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  1527. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  1528. package/node_modules/fast-uri/test/equal.test.js +145 -0
  1529. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
  1530. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  1531. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  1532. package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  1533. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  1534. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  1535. package/node_modules/fast-uri/test/parse.test.js +327 -0
  1536. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  1537. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
  1538. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  1539. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  1540. package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
  1541. package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  1542. package/node_modules/fast-uri/test/security.test.js +431 -0
  1543. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  1544. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  1545. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  1546. package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  1547. package/node_modules/fast-uri/test/util.test.js +38 -0
  1548. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  1549. package/node_modules/fast-uri/tsconfig.json +9 -0
  1550. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1551. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  1552. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  1553. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1554. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1555. package/node_modules/json-schema-traverse/LICENSE +21 -0
  1556. package/node_modules/json-schema-traverse/README.md +95 -0
  1557. package/node_modules/json-schema-traverse/index.js +93 -0
  1558. package/node_modules/json-schema-traverse/package.json +38 -0
  1559. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1560. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1561. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1562. package/node_modules/require-from-string/index.js +34 -0
  1563. package/node_modules/require-from-string/license +21 -0
  1564. package/node_modules/require-from-string/package.json +25 -0
  1565. package/node_modules/require-from-string/readme.md +56 -0
  1566. package/node_modules/sherpa-onnx-node/README.md +11 -0
  1567. package/node_modules/sherpa-onnx-node/addon-static-import.js +70 -0
  1568. package/node_modules/sherpa-onnx-node/addon.js +98 -0
  1569. package/node_modules/sherpa-onnx-node/audio-tagg.js +45 -0
  1570. package/node_modules/sherpa-onnx-node/keyword-spotter.js +68 -0
  1571. package/node_modules/sherpa-onnx-node/non-streaming-asr.js +158 -0
  1572. package/node_modules/sherpa-onnx-node/non-streaming-speaker-diarization.js +38 -0
  1573. package/node_modules/sherpa-onnx-node/non-streaming-speech-denoiser.js +32 -0
  1574. package/node_modules/sherpa-onnx-node/non-streaming-tts.js +116 -0
  1575. package/node_modules/sherpa-onnx-node/online-speech-denoiser.js +46 -0
  1576. package/node_modules/sherpa-onnx-node/package.json +56 -0
  1577. package/node_modules/sherpa-onnx-node/punctuation.js +43 -0
  1578. package/node_modules/sherpa-onnx-node/resampler.js +80 -0
  1579. package/node_modules/sherpa-onnx-node/sherpa-onnx.js +49 -0
  1580. package/node_modules/sherpa-onnx-node/speaker-identification.js +152 -0
  1581. package/node_modules/sherpa-onnx-node/spoken-language-identification.js +38 -0
  1582. package/node_modules/sherpa-onnx-node/streaming-asr.js +181 -0
  1583. package/node_modules/sherpa-onnx-node/types.js +788 -0
  1584. package/node_modules/sherpa-onnx-node/vad.js +134 -0
  1585. package/package.json +318 -272
  1586. package/node_modules/@bufbuild/protobuf/README.md +0 -41
  1587. package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +0 -66
  1588. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +0 -18
  1589. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +0 -31
  1590. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +0 -28
  1591. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +0 -18
  1592. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +0 -39
  1593. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +0 -24
  1594. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +0 -27
  1595. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +0 -43
  1596. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +0 -15
  1597. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +0 -105
  1598. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +0 -244
  1599. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +0 -58
  1600. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +0 -28
  1601. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +0 -35
  1602. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +0 -39
  1603. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +0 -24
  1604. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +0 -29
  1605. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +0 -67
  1606. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +0 -27
  1607. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +0 -74
  1608. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +0 -15
  1609. package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +0 -296
  1610. package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +0 -53
  1611. package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +0 -209
  1612. package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +0 -168
  1613. package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +0 -45
  1614. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +0 -415
  1615. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +0 -1037
  1616. package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +0 -55
  1617. package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +0 -33
  1618. package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +0 -15
  1619. package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +0 -70
  1620. package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +0 -4
  1621. package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +0 -131
  1622. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +0 -36
  1623. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +0 -78
  1624. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +0 -41
  1625. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +0 -157
  1626. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +0 -115
  1627. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +0 -110
  1628. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +0 -376
  1629. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +0 -292
  1630. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +0 -16
  1631. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +0 -469
  1632. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +0 -129
  1633. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +0 -149
  1634. package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +0 -954
  1635. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +0 -437
  1636. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +0 -625
  1637. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +0 -684
  1638. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +0 -21
  1639. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +0 -47
  1640. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +0 -481
  1641. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +0 -358
  1642. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +0 -220
  1643. package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +0 -15
  1644. package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +0 -26
  1645. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +0 -188
  1646. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +0 -726
  1647. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +0 -37
  1648. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +0 -191
  1649. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +0 -106
  1650. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +0 -199
  1651. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +0 -334
  1652. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +0 -75
  1653. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +0 -39
  1654. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +0 -27
  1655. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +0 -39
  1656. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -68
  1657. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +0 -60
  1658. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +0 -892
  1659. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +0 -27
  1660. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +0 -27
  1661. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +0 -27
  1662. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +0 -126
  1663. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +0 -106
  1664. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +0 -27
  1665. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +0 -59
  1666. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +0 -27
  1667. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +0 -242
  1668. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +0 -67
  1669. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +0 -48
  1670. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +0 -44
  1671. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +0 -57
  1672. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +0 -66
  1673. package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +0 -63
  1674. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +0 -14
  1675. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +0 -26
  1676. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +0 -25
  1677. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +0 -14
  1678. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +0 -23
  1679. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +0 -21
  1680. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +0 -24
  1681. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +0 -40
  1682. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +0 -14
  1683. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +0 -101
  1684. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +0 -239
  1685. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +0 -53
  1686. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +0 -25
  1687. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +0 -32
  1688. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +0 -23
  1689. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +0 -21
  1690. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +0 -26
  1691. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +0 -63
  1692. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +0 -24
  1693. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +0 -71
  1694. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +0 -14
  1695. package/node_modules/@bufbuild/protobuf/dist/esm/create.js +0 -293
  1696. package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +0 -50
  1697. package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +0 -206
  1698. package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +0 -159
  1699. package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +0 -41
  1700. package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +0 -409
  1701. package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +0 -1029
  1702. package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -29
  1703. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -30
  1704. package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +0 -14
  1705. package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +0 -67
  1706. package/node_modules/@bufbuild/protobuf/dist/esm/package.json +0 -4
  1707. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -128
  1708. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +0 -31
  1709. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +0 -71
  1710. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +0 -21
  1711. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +0 -152
  1712. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +0 -109
  1713. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +0 -105
  1714. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +0 -369
  1715. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +0 -284
  1716. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +0 -14
  1717. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +0 -464
  1718. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +0 -124
  1719. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +0 -140
  1720. package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +0 -948
  1721. package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +0 -433
  1722. package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +0 -620
  1723. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +0 -680
  1724. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +0 -15
  1725. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +0 -44
  1726. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +0 -477
  1727. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +0 -355
  1728. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +0 -214
  1729. package/node_modules/@bufbuild/protobuf/dist/esm/types.js +0 -14
  1730. package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +0 -23
  1731. package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +0 -184
  1732. package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +0 -721
  1733. package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +0 -18
  1734. package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +0 -186
  1735. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +0 -101
  1736. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +0 -195
  1737. package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +0 -325
  1738. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +0 -69
  1739. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +0 -35
  1740. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +0 -24
  1741. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +0 -36
  1742. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -65
  1743. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +0 -57
  1744. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +0 -888
  1745. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +0 -24
  1746. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +0 -24
  1747. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +0 -24
  1748. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +0 -123
  1749. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +0 -103
  1750. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +0 -24
  1751. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +0 -56
  1752. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +0 -24
  1753. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +0 -239
  1754. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +0 -64
  1755. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +0 -32
  1756. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +0 -41
  1757. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +0 -50
  1758. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +0 -61
  1759. package/node_modules/@bufbuild/protobuf/package.json +0 -136
  1760. package/node_modules/@deepseek-ai/dsh-agent-presets/README.md +0 -195
  1761. package/node_modules/@deepseek-ai/dsh-agent-presets/README.zh.md +0 -195
  1762. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/index.js +0 -1820
  1763. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/invariant.js +0 -1838
  1764. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/typert.remote-client.js +0 -207
  1765. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/authoring.js +0 -176
  1766. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/discovery.js +0 -316
  1767. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/index.js +0 -799
  1768. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/metadata.js +0 -92
  1769. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/mount.js +0 -386
  1770. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/preset.js +0 -11
  1771. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/specifier.js +0 -41
  1772. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +0 -98
  1773. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +0 -283
  1774. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +0 -3
  1775. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +0 -108
  1776. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +0 -102
  1777. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/agent.cordis.yml +0 -69
  1778. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/preset.yml +0 -3
  1779. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +0 -287
  1780. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/preset.yml +0 -3
  1781. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +0 -266
  1782. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/preset.yml +0 -3
  1783. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.md +0 -138
  1784. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.zh.md +0 -138
  1785. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/index.js +0 -501
  1786. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.host.js +0 -350
  1787. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.remote-client.js +0 -249
  1788. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/index.js +0 -424
  1789. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/types.js +0 -12
  1790. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
  1791. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.md +0 -112
  1792. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.zh.md +0 -112
  1793. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/client.js +0 -216
  1794. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/index.js +0 -6
  1795. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +0 -66
  1796. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +0 -98
  1797. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +0 -98
  1798. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +0 -6
  1799. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +0 -47
  1800. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +0 -142
  1801. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +0 -142
  1802. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +0 -3050
  1803. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +0 -62
  1804. package/node_modules/@deepseek-ai/dsh-settings/lib/invariant.js +0 -35
  1805. package/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
  1806. package/node_modules/@deepseek-ai/dsh-settings-file/README.md +0 -150
  1807. package/node_modules/@deepseek-ai/dsh-settings-file/README.zh.md +0 -150
  1808. package/node_modules/@deepseek-ai/dsh-settings-file/lib/index.js +0 -285
  1809. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +0 -47
  1810. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
  1811. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +0 -127
  1812. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +0 -1
  1813. /package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/types.js +0 -0
  1814. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-voice-input-bundle}/lib/index.js +0 -0
@@ -0,0 +1,3032 @@
1
+ var ast = /*#__PURE__*/Object.freeze({
2
+ __proto__: null
3
+ });
4
+
5
+ const latestEcmaVersion = 2025;
6
+
7
+ let largeIdStartRanges = undefined;
8
+ let largeIdContinueRanges = undefined;
9
+ function isIdStart(cp) {
10
+ if (cp < 0x41)
11
+ return false;
12
+ if (cp < 0x5b)
13
+ return true;
14
+ if (cp < 0x61)
15
+ return false;
16
+ if (cp < 0x7b)
17
+ return true;
18
+ return isLargeIdStart(cp);
19
+ }
20
+ function isIdContinue(cp) {
21
+ if (cp < 0x30)
22
+ return false;
23
+ if (cp < 0x3a)
24
+ return true;
25
+ if (cp < 0x41)
26
+ return false;
27
+ if (cp < 0x5b)
28
+ return true;
29
+ if (cp === 0x5f)
30
+ return true;
31
+ if (cp < 0x61)
32
+ return false;
33
+ if (cp < 0x7b)
34
+ return true;
35
+ return isLargeIdStart(cp) || isLargeIdContinue(cp);
36
+ }
37
+ function isLargeIdStart(cp) {
38
+ return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges()));
39
+ }
40
+ function isLargeIdContinue(cp) {
41
+ return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges()));
42
+ }
43
+ function initLargeIdStartRanges() {
44
+ return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 6 h 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 2 1 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 v 2 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 29 l g 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 7 p 13 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 5 1l s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 o 17 79 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r x o 3 o 19 22 6 0 1v c 1t 1 2 0 f 4 a 5p1 16 v 2q 36 6pq 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 5s u 2 2 2 1 2 6 3 4 a 1 69 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 3dp 3 4gd 3 5rk g h9 1wj f1 15v 3t6 6 6jt");
45
+ }
46
+ function initLargeIdContinueRanges() {
47
+ return restoreRanges("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 u 3 b l 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 26 5 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 5j 7 3t 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 1j 9 7e 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 6h 0 3 0 8 1 6 0 d7 6 32 6 6 9 3o7 9 gvt3 6n");
48
+ }
49
+ function isInRange(cp, ranges) {
50
+ let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0;
51
+ while (l < r) {
52
+ i = ((l + r) / 2) | 0;
53
+ min = ranges[2 * i];
54
+ max = ranges[2 * i + 1];
55
+ if (cp < min) {
56
+ r = i;
57
+ }
58
+ else if (cp > max) {
59
+ l = i + 1;
60
+ }
61
+ else {
62
+ return true;
63
+ }
64
+ }
65
+ return false;
66
+ }
67
+ function restoreRanges(data) {
68
+ let last = 0;
69
+ return data.split(" ").map((s) => (last += parseInt(s, 36) | 0));
70
+ }
71
+
72
+ class DataSet {
73
+ constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025, raw2026) {
74
+ this._raw2018 = raw2018;
75
+ this._raw2019 = raw2019;
76
+ this._raw2020 = raw2020;
77
+ this._raw2021 = raw2021;
78
+ this._raw2022 = raw2022;
79
+ this._raw2023 = raw2023;
80
+ this._raw2024 = raw2024;
81
+ this._raw2025 = raw2025;
82
+ this._raw2026 = raw2026;
83
+ }
84
+ get es2018() {
85
+ var _a;
86
+ return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" "))));
87
+ }
88
+ get es2019() {
89
+ var _a;
90
+ return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" "))));
91
+ }
92
+ get es2020() {
93
+ var _a;
94
+ return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" "))));
95
+ }
96
+ get es2021() {
97
+ var _a;
98
+ return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" "))));
99
+ }
100
+ get es2022() {
101
+ var _a;
102
+ return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" "))));
103
+ }
104
+ get es2023() {
105
+ var _a;
106
+ return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" "))));
107
+ }
108
+ get es2024() {
109
+ var _a;
110
+ return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" "))));
111
+ }
112
+ get es2025() {
113
+ var _a;
114
+ return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" "))));
115
+ }
116
+ get es2026() {
117
+ var _a;
118
+ return ((_a = this._set2026) !== null && _a !== void 0 ? _a : (this._set2026 = new Set(this._raw2026.split(" "))));
119
+ }
120
+ }
121
+ const gcNameSet = new Set(["General_Category", "gc"]);
122
+ const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]);
123
+ const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", "", "");
124
+ const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", "", "", "");
125
+ const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", "", "");
126
+ const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", "", "");
127
+ function isValidUnicodeProperty(version, name, value) {
128
+ if (gcNameSet.has(name)) {
129
+ return version >= 2018 && gcValueSets.es2018.has(value);
130
+ }
131
+ if (scNameSet.has(name)) {
132
+ return ((version >= 2018 && scValueSets.es2018.has(value)) ||
133
+ (version >= 2019 && scValueSets.es2019.has(value)) ||
134
+ (version >= 2020 && scValueSets.es2020.has(value)) ||
135
+ (version >= 2021 && scValueSets.es2021.has(value)) ||
136
+ (version >= 2022 && scValueSets.es2022.has(value)) ||
137
+ (version >= 2023 && scValueSets.es2023.has(value)));
138
+ }
139
+ return false;
140
+ }
141
+ function isValidLoneUnicodeProperty(version, value) {
142
+ return ((version >= 2018 && binPropertySets.es2018.has(value)) ||
143
+ (version >= 2019 && binPropertySets.es2019.has(value)) ||
144
+ (version >= 2021 && binPropertySets.es2021.has(value)));
145
+ }
146
+ function isValidLoneUnicodePropertyOfString(version, value) {
147
+ return version >= 2024 && binPropertyOfStringsSets.es2024.has(value);
148
+ }
149
+
150
+ const BACKSPACE = 0x08;
151
+ const CHARACTER_TABULATION = 0x09;
152
+ const LINE_FEED = 0x0a;
153
+ const LINE_TABULATION = 0x0b;
154
+ const FORM_FEED = 0x0c;
155
+ const CARRIAGE_RETURN = 0x0d;
156
+ const EXCLAMATION_MARK = 0x21;
157
+ const NUMBER_SIGN = 0x23;
158
+ const DOLLAR_SIGN = 0x24;
159
+ const PERCENT_SIGN = 0x25;
160
+ const AMPERSAND = 0x26;
161
+ const LEFT_PARENTHESIS = 0x28;
162
+ const RIGHT_PARENTHESIS = 0x29;
163
+ const ASTERISK = 0x2a;
164
+ const PLUS_SIGN = 0x2b;
165
+ const COMMA = 0x2c;
166
+ const HYPHEN_MINUS = 0x2d;
167
+ const FULL_STOP = 0x2e;
168
+ const SOLIDUS = 0x2f;
169
+ const DIGIT_ZERO = 0x30;
170
+ const DIGIT_ONE = 0x31;
171
+ const DIGIT_SEVEN = 0x37;
172
+ const DIGIT_NINE = 0x39;
173
+ const COLON = 0x3a;
174
+ const SEMICOLON = 0x3b;
175
+ const LESS_THAN_SIGN = 0x3c;
176
+ const EQUALS_SIGN = 0x3d;
177
+ const GREATER_THAN_SIGN = 0x3e;
178
+ const QUESTION_MARK = 0x3f;
179
+ const COMMERCIAL_AT = 0x40;
180
+ const LATIN_CAPITAL_LETTER_A = 0x41;
181
+ const LATIN_CAPITAL_LETTER_B = 0x42;
182
+ const LATIN_CAPITAL_LETTER_D = 0x44;
183
+ const LATIN_CAPITAL_LETTER_F = 0x46;
184
+ const LATIN_CAPITAL_LETTER_P = 0x50;
185
+ const LATIN_CAPITAL_LETTER_S = 0x53;
186
+ const LATIN_CAPITAL_LETTER_W = 0x57;
187
+ const LATIN_CAPITAL_LETTER_Z = 0x5a;
188
+ const LOW_LINE = 0x5f;
189
+ const LATIN_SMALL_LETTER_A = 0x61;
190
+ const LATIN_SMALL_LETTER_B = 0x62;
191
+ const LATIN_SMALL_LETTER_C = 0x63;
192
+ const LATIN_SMALL_LETTER_D = 0x64;
193
+ const LATIN_SMALL_LETTER_F = 0x66;
194
+ const LATIN_SMALL_LETTER_G = 0x67;
195
+ const LATIN_SMALL_LETTER_I = 0x69;
196
+ const LATIN_SMALL_LETTER_K = 0x6b;
197
+ const LATIN_SMALL_LETTER_M = 0x6d;
198
+ const LATIN_SMALL_LETTER_N = 0x6e;
199
+ const LATIN_SMALL_LETTER_P = 0x70;
200
+ const LATIN_SMALL_LETTER_Q = 0x71;
201
+ const LATIN_SMALL_LETTER_R = 0x72;
202
+ const LATIN_SMALL_LETTER_S = 0x73;
203
+ const LATIN_SMALL_LETTER_T = 0x74;
204
+ const LATIN_SMALL_LETTER_U = 0x75;
205
+ const LATIN_SMALL_LETTER_V = 0x76;
206
+ const LATIN_SMALL_LETTER_W = 0x77;
207
+ const LATIN_SMALL_LETTER_X = 0x78;
208
+ const LATIN_SMALL_LETTER_Y = 0x79;
209
+ const LATIN_SMALL_LETTER_Z = 0x7a;
210
+ const LEFT_SQUARE_BRACKET = 0x5b;
211
+ const REVERSE_SOLIDUS = 0x5c;
212
+ const RIGHT_SQUARE_BRACKET = 0x5d;
213
+ const CIRCUMFLEX_ACCENT = 0x5e;
214
+ const GRAVE_ACCENT = 0x60;
215
+ const LEFT_CURLY_BRACKET = 0x7b;
216
+ const VERTICAL_LINE = 0x7c;
217
+ const RIGHT_CURLY_BRACKET = 0x7d;
218
+ const TILDE = 0x7e;
219
+ const ZERO_WIDTH_NON_JOINER = 0x200c;
220
+ const ZERO_WIDTH_JOINER = 0x200d;
221
+ const LINE_SEPARATOR = 0x2028;
222
+ const PARAGRAPH_SEPARATOR = 0x2029;
223
+ const MIN_CODE_POINT = 0x00;
224
+ const MAX_CODE_POINT = 0x10ffff;
225
+ function isLatinLetter(code) {
226
+ return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) ||
227
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z));
228
+ }
229
+ function isDecimalDigit(code) {
230
+ return code >= DIGIT_ZERO && code <= DIGIT_NINE;
231
+ }
232
+ function isOctalDigit(code) {
233
+ return code >= DIGIT_ZERO && code <= DIGIT_SEVEN;
234
+ }
235
+ function isHexDigit(code) {
236
+ return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) ||
237
+ (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) ||
238
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F));
239
+ }
240
+ function isLineTerminator(code) {
241
+ return (code === LINE_FEED ||
242
+ code === CARRIAGE_RETURN ||
243
+ code === LINE_SEPARATOR ||
244
+ code === PARAGRAPH_SEPARATOR);
245
+ }
246
+ function isValidUnicode(code) {
247
+ return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT;
248
+ }
249
+ function digitToInt(code) {
250
+ if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) {
251
+ return code - LATIN_SMALL_LETTER_A + 10;
252
+ }
253
+ if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) {
254
+ return code - LATIN_CAPITAL_LETTER_A + 10;
255
+ }
256
+ return code - DIGIT_ZERO;
257
+ }
258
+ function isLeadSurrogate(code) {
259
+ return code >= 0xd800 && code <= 0xdbff;
260
+ }
261
+ function isTrailSurrogate(code) {
262
+ return code >= 0xdc00 && code <= 0xdfff;
263
+ }
264
+ function combineSurrogatePair(lead, trail) {
265
+ return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000;
266
+ }
267
+
268
+ class GroupSpecifiersAsES2018 {
269
+ constructor() {
270
+ this.groupName = new Set();
271
+ }
272
+ clear() {
273
+ this.groupName.clear();
274
+ }
275
+ isEmpty() {
276
+ return !this.groupName.size;
277
+ }
278
+ hasInPattern(name) {
279
+ return this.groupName.has(name);
280
+ }
281
+ hasInScope(name) {
282
+ return this.hasInPattern(name);
283
+ }
284
+ addToScope(name) {
285
+ this.groupName.add(name);
286
+ }
287
+ enterDisjunction() {
288
+ }
289
+ enterAlternative() {
290
+ }
291
+ leaveDisjunction() {
292
+ }
293
+ }
294
+ class BranchID {
295
+ constructor(parent, base) {
296
+ this.parent = parent;
297
+ this.base = base !== null && base !== void 0 ? base : this;
298
+ }
299
+ separatedFrom(other) {
300
+ var _a, _b;
301
+ if (this.base === other.base && this !== other) {
302
+ return true;
303
+ }
304
+ if (other.parent && this.separatedFrom(other.parent)) {
305
+ return true;
306
+ }
307
+ return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false;
308
+ }
309
+ child() {
310
+ return new BranchID(this, null);
311
+ }
312
+ sibling() {
313
+ return new BranchID(this.parent, this.base);
314
+ }
315
+ }
316
+ class GroupSpecifiersAsES2025 {
317
+ constructor() {
318
+ this.branchID = new BranchID(null, null);
319
+ this.groupNames = new Map();
320
+ }
321
+ clear() {
322
+ this.branchID = new BranchID(null, null);
323
+ this.groupNames.clear();
324
+ }
325
+ isEmpty() {
326
+ return !this.groupNames.size;
327
+ }
328
+ enterDisjunction() {
329
+ this.branchID = this.branchID.child();
330
+ }
331
+ enterAlternative(index) {
332
+ if (index === 0) {
333
+ return;
334
+ }
335
+ this.branchID = this.branchID.sibling();
336
+ }
337
+ leaveDisjunction() {
338
+ this.branchID = this.branchID.parent;
339
+ }
340
+ hasInPattern(name) {
341
+ return this.groupNames.has(name);
342
+ }
343
+ hasInScope(name) {
344
+ const branches = this.groupNames.get(name);
345
+ if (!branches) {
346
+ return false;
347
+ }
348
+ for (const branch of branches) {
349
+ if (!branch.separatedFrom(this.branchID)) {
350
+ return true;
351
+ }
352
+ }
353
+ return false;
354
+ }
355
+ addToScope(name) {
356
+ const branches = this.groupNames.get(name);
357
+ if (branches) {
358
+ branches.push(this.branchID);
359
+ return;
360
+ }
361
+ this.groupNames.set(name, [this.branchID]);
362
+ }
363
+ }
364
+
365
+ const legacyImpl = {
366
+ at(s, end, i) {
367
+ return i < end ? s.charCodeAt(i) : -1;
368
+ },
369
+ width(c) {
370
+ return 1;
371
+ },
372
+ };
373
+ const unicodeImpl = {
374
+ at(s, end, i) {
375
+ return i < end ? s.codePointAt(i) : -1;
376
+ },
377
+ width(c) {
378
+ return c > 0xffff ? 2 : 1;
379
+ },
380
+ };
381
+ class Reader {
382
+ constructor() {
383
+ this._impl = legacyImpl;
384
+ this._s = "";
385
+ this._i = 0;
386
+ this._end = 0;
387
+ this._cp1 = -1;
388
+ this._w1 = 1;
389
+ this._cp2 = -1;
390
+ this._w2 = 1;
391
+ this._cp3 = -1;
392
+ this._w3 = 1;
393
+ this._cp4 = -1;
394
+ }
395
+ get source() {
396
+ return this._s;
397
+ }
398
+ get index() {
399
+ return this._i;
400
+ }
401
+ get currentCodePoint() {
402
+ return this._cp1;
403
+ }
404
+ get nextCodePoint() {
405
+ return this._cp2;
406
+ }
407
+ get nextCodePoint2() {
408
+ return this._cp3;
409
+ }
410
+ get nextCodePoint3() {
411
+ return this._cp4;
412
+ }
413
+ reset(source, start, end, uFlag) {
414
+ this._impl = uFlag ? unicodeImpl : legacyImpl;
415
+ this._s = source;
416
+ this._end = end;
417
+ this.rewind(start);
418
+ }
419
+ rewind(index) {
420
+ const impl = this._impl;
421
+ this._i = index;
422
+ this._cp1 = impl.at(this._s, this._end, index);
423
+ this._w1 = impl.width(this._cp1);
424
+ this._cp2 = impl.at(this._s, this._end, index + this._w1);
425
+ this._w2 = impl.width(this._cp2);
426
+ this._cp3 = impl.at(this._s, this._end, index + this._w1 + this._w2);
427
+ this._w3 = impl.width(this._cp3);
428
+ this._cp4 = impl.at(this._s, this._end, index + this._w1 + this._w2 + this._w3);
429
+ }
430
+ advance() {
431
+ if (this._cp1 !== -1) {
432
+ const impl = this._impl;
433
+ this._i += this._w1;
434
+ this._cp1 = this._cp2;
435
+ this._w1 = this._w2;
436
+ this._cp2 = this._cp3;
437
+ this._w2 = impl.width(this._cp2);
438
+ this._cp3 = this._cp4;
439
+ this._w3 = impl.width(this._cp3);
440
+ this._cp4 = impl.at(this._s, this._end, this._i + this._w1 + this._w2 + this._w3);
441
+ }
442
+ }
443
+ eat(cp) {
444
+ if (this._cp1 === cp) {
445
+ this.advance();
446
+ return true;
447
+ }
448
+ return false;
449
+ }
450
+ eat2(cp1, cp2) {
451
+ if (this._cp1 === cp1 && this._cp2 === cp2) {
452
+ this.advance();
453
+ this.advance();
454
+ return true;
455
+ }
456
+ return false;
457
+ }
458
+ eat3(cp1, cp2, cp3) {
459
+ if (this._cp1 === cp1 && this._cp2 === cp2 && this._cp3 === cp3) {
460
+ this.advance();
461
+ this.advance();
462
+ this.advance();
463
+ return true;
464
+ }
465
+ return false;
466
+ }
467
+ }
468
+
469
+ class RegExpSyntaxError extends SyntaxError {
470
+ constructor(message, index) {
471
+ super(message);
472
+ this.index = index;
473
+ }
474
+ }
475
+ function newRegExpSyntaxError(srcCtx, flags, index, message) {
476
+ let source = "";
477
+ if (srcCtx.kind === "literal") {
478
+ const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end);
479
+ if (literal) {
480
+ source = `: ${literal}`;
481
+ }
482
+ }
483
+ else if (srcCtx.kind === "pattern") {
484
+ const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end);
485
+ const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`;
486
+ source = `: /${pattern}/${flagsText}`;
487
+ }
488
+ return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index);
489
+ }
490
+
491
+ const SYNTAX_CHARACTER = new Set([
492
+ CIRCUMFLEX_ACCENT,
493
+ DOLLAR_SIGN,
494
+ REVERSE_SOLIDUS,
495
+ FULL_STOP,
496
+ ASTERISK,
497
+ PLUS_SIGN,
498
+ QUESTION_MARK,
499
+ LEFT_PARENTHESIS,
500
+ RIGHT_PARENTHESIS,
501
+ LEFT_SQUARE_BRACKET,
502
+ RIGHT_SQUARE_BRACKET,
503
+ LEFT_CURLY_BRACKET,
504
+ RIGHT_CURLY_BRACKET,
505
+ VERTICAL_LINE,
506
+ ]);
507
+ const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([
508
+ AMPERSAND,
509
+ EXCLAMATION_MARK,
510
+ NUMBER_SIGN,
511
+ DOLLAR_SIGN,
512
+ PERCENT_SIGN,
513
+ ASTERISK,
514
+ PLUS_SIGN,
515
+ COMMA,
516
+ FULL_STOP,
517
+ COLON,
518
+ SEMICOLON,
519
+ LESS_THAN_SIGN,
520
+ EQUALS_SIGN,
521
+ GREATER_THAN_SIGN,
522
+ QUESTION_MARK,
523
+ COMMERCIAL_AT,
524
+ CIRCUMFLEX_ACCENT,
525
+ GRAVE_ACCENT,
526
+ TILDE,
527
+ ]);
528
+ const CLASS_SET_SYNTAX_CHARACTER = new Set([
529
+ LEFT_PARENTHESIS,
530
+ RIGHT_PARENTHESIS,
531
+ LEFT_SQUARE_BRACKET,
532
+ RIGHT_SQUARE_BRACKET,
533
+ LEFT_CURLY_BRACKET,
534
+ RIGHT_CURLY_BRACKET,
535
+ SOLIDUS,
536
+ HYPHEN_MINUS,
537
+ REVERSE_SOLIDUS,
538
+ VERTICAL_LINE,
539
+ ]);
540
+ const CLASS_SET_RESERVED_PUNCTUATOR = new Set([
541
+ AMPERSAND,
542
+ HYPHEN_MINUS,
543
+ EXCLAMATION_MARK,
544
+ NUMBER_SIGN,
545
+ PERCENT_SIGN,
546
+ COMMA,
547
+ COLON,
548
+ SEMICOLON,
549
+ LESS_THAN_SIGN,
550
+ EQUALS_SIGN,
551
+ GREATER_THAN_SIGN,
552
+ COMMERCIAL_AT,
553
+ GRAVE_ACCENT,
554
+ TILDE,
555
+ ]);
556
+ const FLAG_PROP_TO_CODEPOINT = {
557
+ global: LATIN_SMALL_LETTER_G,
558
+ ignoreCase: LATIN_SMALL_LETTER_I,
559
+ multiline: LATIN_SMALL_LETTER_M,
560
+ unicode: LATIN_SMALL_LETTER_U,
561
+ sticky: LATIN_SMALL_LETTER_Y,
562
+ dotAll: LATIN_SMALL_LETTER_S,
563
+ hasIndices: LATIN_SMALL_LETTER_D,
564
+ unicodeSets: LATIN_SMALL_LETTER_V,
565
+ };
566
+ const FLAG_CODEPOINT_TO_PROP = Object.fromEntries(Object.entries(FLAG_PROP_TO_CODEPOINT).map(([k, v]) => [v, k]));
567
+ function isSyntaxCharacter(cp) {
568
+ return SYNTAX_CHARACTER.has(cp);
569
+ }
570
+ function isClassSetReservedDoublePunctuatorCharacter(cp) {
571
+ return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp);
572
+ }
573
+ function isClassSetSyntaxCharacter(cp) {
574
+ return CLASS_SET_SYNTAX_CHARACTER.has(cp);
575
+ }
576
+ function isClassSetReservedPunctuator(cp) {
577
+ return CLASS_SET_RESERVED_PUNCTUATOR.has(cp);
578
+ }
579
+ function isIdentifierStartChar(cp) {
580
+ return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE;
581
+ }
582
+ function isIdentifierPartChar(cp) {
583
+ return (isIdContinue(cp) ||
584
+ cp === DOLLAR_SIGN ||
585
+ cp === ZERO_WIDTH_NON_JOINER ||
586
+ cp === ZERO_WIDTH_JOINER);
587
+ }
588
+ function isUnicodePropertyNameCharacter(cp) {
589
+ return isLatinLetter(cp) || cp === LOW_LINE;
590
+ }
591
+ function isUnicodePropertyValueCharacter(cp) {
592
+ return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp);
593
+ }
594
+ function isRegularExpressionModifier(ch) {
595
+ return (ch === LATIN_SMALL_LETTER_I ||
596
+ ch === LATIN_SMALL_LETTER_M ||
597
+ ch === LATIN_SMALL_LETTER_S);
598
+ }
599
+ class RegExpValidator {
600
+ constructor(options) {
601
+ this._reader = new Reader();
602
+ this._unicodeMode = false;
603
+ this._unicodeSetsMode = false;
604
+ this._nFlag = false;
605
+ this._lastIntValue = 0;
606
+ this._lastRange = {
607
+ min: 0,
608
+ max: Number.POSITIVE_INFINITY,
609
+ };
610
+ this._lastStrValue = "";
611
+ this._lastAssertionIsQuantifiable = false;
612
+ this._numCapturingParens = 0;
613
+ this._backreferenceNames = new Set();
614
+ this._srcCtx = null;
615
+ this._options = options !== null && options !== void 0 ? options : {};
616
+ this._groupSpecifiers =
617
+ this.ecmaVersion >= 2025
618
+ ? new GroupSpecifiersAsES2025()
619
+ : new GroupSpecifiersAsES2018();
620
+ }
621
+ validateLiteral(source, start = 0, end = source.length) {
622
+ this._srcCtx = { source, start, end, kind: "literal" };
623
+ this._unicodeSetsMode = this._unicodeMode = this._nFlag = false;
624
+ this.reset(source, start, end);
625
+ this.onLiteralEnter(start);
626
+ if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) {
627
+ const flagStart = this.index;
628
+ const unicode = source.includes("u", flagStart);
629
+ const unicodeSets = source.includes("v", flagStart);
630
+ this.validateFlagsInternal(source, flagStart, end);
631
+ this.validatePatternInternal(source, start + 1, flagStart - 1, {
632
+ unicode,
633
+ unicodeSets,
634
+ });
635
+ }
636
+ else if (start >= end) {
637
+ this.raise("Empty");
638
+ }
639
+ else {
640
+ const c = String.fromCodePoint(this.currentCodePoint);
641
+ this.raise(`Unexpected character '${c}'`);
642
+ }
643
+ this.onLiteralLeave(start, end);
644
+ }
645
+ validateFlags(source, start = 0, end = source.length) {
646
+ this._srcCtx = { source, start, end, kind: "flags" };
647
+ this.validateFlagsInternal(source, start, end);
648
+ }
649
+ validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
650
+ this._srcCtx = { source, start, end, kind: "pattern" };
651
+ this.validatePatternInternal(source, start, end, uFlagOrFlags);
652
+ }
653
+ validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
654
+ const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end);
655
+ this._unicodeMode = mode.unicodeMode;
656
+ this._nFlag = mode.nFlag;
657
+ this._unicodeSetsMode = mode.unicodeSetsMode;
658
+ this.reset(source, start, end);
659
+ this.consumePattern();
660
+ if (!this._nFlag &&
661
+ this.ecmaVersion >= 2018 &&
662
+ !this._groupSpecifiers.isEmpty()) {
663
+ this._nFlag = true;
664
+ this.rewind(start);
665
+ this.consumePattern();
666
+ }
667
+ }
668
+ validateFlagsInternal(source, start, end) {
669
+ const flags = this.parseFlags(source, start, end);
670
+ this.onRegExpFlags(start, end, flags);
671
+ }
672
+ _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) {
673
+ let unicode = false;
674
+ let unicodeSets = false;
675
+ if (uFlagOrFlags && this.ecmaVersion >= 2015) {
676
+ if (typeof uFlagOrFlags === "object") {
677
+ unicode = Boolean(uFlagOrFlags.unicode);
678
+ if (this.ecmaVersion >= 2024) {
679
+ unicodeSets = Boolean(uFlagOrFlags.unicodeSets);
680
+ }
681
+ }
682
+ else {
683
+ unicode = uFlagOrFlags;
684
+ }
685
+ }
686
+ if (unicode && unicodeSets) {
687
+ this.raise("Invalid regular expression flags", {
688
+ index: sourceEnd + 1,
689
+ unicode,
690
+ unicodeSets,
691
+ });
692
+ }
693
+ const unicodeMode = unicode || unicodeSets;
694
+ const nFlag = (unicode && this.ecmaVersion >= 2018) ||
695
+ unicodeSets ||
696
+ Boolean(this._options.strict && this.ecmaVersion >= 2023);
697
+ const unicodeSetsMode = unicodeSets;
698
+ return { unicodeMode, nFlag, unicodeSetsMode };
699
+ }
700
+ get strict() {
701
+ return Boolean(this._options.strict) || this._unicodeMode;
702
+ }
703
+ get ecmaVersion() {
704
+ var _a;
705
+ return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
706
+ }
707
+ onLiteralEnter(start) {
708
+ if (this._options.onLiteralEnter) {
709
+ this._options.onLiteralEnter(start);
710
+ }
711
+ }
712
+ onLiteralLeave(start, end) {
713
+ if (this._options.onLiteralLeave) {
714
+ this._options.onLiteralLeave(start, end);
715
+ }
716
+ }
717
+ onRegExpFlags(start, end, flags) {
718
+ if (this._options.onRegExpFlags) {
719
+ this._options.onRegExpFlags(start, end, flags);
720
+ }
721
+ if (this._options.onFlags) {
722
+ this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices);
723
+ }
724
+ }
725
+ onPatternEnter(start) {
726
+ if (this._options.onPatternEnter) {
727
+ this._options.onPatternEnter(start);
728
+ }
729
+ }
730
+ onPatternLeave(start, end) {
731
+ if (this._options.onPatternLeave) {
732
+ this._options.onPatternLeave(start, end);
733
+ }
734
+ }
735
+ onDisjunctionEnter(start) {
736
+ if (this._options.onDisjunctionEnter) {
737
+ this._options.onDisjunctionEnter(start);
738
+ }
739
+ }
740
+ onDisjunctionLeave(start, end) {
741
+ if (this._options.onDisjunctionLeave) {
742
+ this._options.onDisjunctionLeave(start, end);
743
+ }
744
+ }
745
+ onAlternativeEnter(start, index) {
746
+ if (this._options.onAlternativeEnter) {
747
+ this._options.onAlternativeEnter(start, index);
748
+ }
749
+ }
750
+ onAlternativeLeave(start, end, index) {
751
+ if (this._options.onAlternativeLeave) {
752
+ this._options.onAlternativeLeave(start, end, index);
753
+ }
754
+ }
755
+ onGroupEnter(start) {
756
+ if (this._options.onGroupEnter) {
757
+ this._options.onGroupEnter(start);
758
+ }
759
+ }
760
+ onGroupLeave(start, end) {
761
+ if (this._options.onGroupLeave) {
762
+ this._options.onGroupLeave(start, end);
763
+ }
764
+ }
765
+ onModifiersEnter(start) {
766
+ if (this._options.onModifiersEnter) {
767
+ this._options.onModifiersEnter(start);
768
+ }
769
+ }
770
+ onModifiersLeave(start, end) {
771
+ if (this._options.onModifiersLeave) {
772
+ this._options.onModifiersLeave(start, end);
773
+ }
774
+ }
775
+ onAddModifiers(start, end, flags) {
776
+ if (this._options.onAddModifiers) {
777
+ this._options.onAddModifiers(start, end, flags);
778
+ }
779
+ }
780
+ onRemoveModifiers(start, end, flags) {
781
+ if (this._options.onRemoveModifiers) {
782
+ this._options.onRemoveModifiers(start, end, flags);
783
+ }
784
+ }
785
+ onCapturingGroupEnter(start, name) {
786
+ if (this._options.onCapturingGroupEnter) {
787
+ this._options.onCapturingGroupEnter(start, name);
788
+ }
789
+ }
790
+ onCapturingGroupLeave(start, end, name) {
791
+ if (this._options.onCapturingGroupLeave) {
792
+ this._options.onCapturingGroupLeave(start, end, name);
793
+ }
794
+ }
795
+ onQuantifier(start, end, min, max, greedy) {
796
+ if (this._options.onQuantifier) {
797
+ this._options.onQuantifier(start, end, min, max, greedy);
798
+ }
799
+ }
800
+ onLookaroundAssertionEnter(start, kind, negate) {
801
+ if (this._options.onLookaroundAssertionEnter) {
802
+ this._options.onLookaroundAssertionEnter(start, kind, negate);
803
+ }
804
+ }
805
+ onLookaroundAssertionLeave(start, end, kind, negate) {
806
+ if (this._options.onLookaroundAssertionLeave) {
807
+ this._options.onLookaroundAssertionLeave(start, end, kind, negate);
808
+ }
809
+ }
810
+ onEdgeAssertion(start, end, kind) {
811
+ if (this._options.onEdgeAssertion) {
812
+ this._options.onEdgeAssertion(start, end, kind);
813
+ }
814
+ }
815
+ onWordBoundaryAssertion(start, end, kind, negate) {
816
+ if (this._options.onWordBoundaryAssertion) {
817
+ this._options.onWordBoundaryAssertion(start, end, kind, negate);
818
+ }
819
+ }
820
+ onAnyCharacterSet(start, end, kind) {
821
+ if (this._options.onAnyCharacterSet) {
822
+ this._options.onAnyCharacterSet(start, end, kind);
823
+ }
824
+ }
825
+ onEscapeCharacterSet(start, end, kind, negate) {
826
+ if (this._options.onEscapeCharacterSet) {
827
+ this._options.onEscapeCharacterSet(start, end, kind, negate);
828
+ }
829
+ }
830
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
831
+ if (this._options.onUnicodePropertyCharacterSet) {
832
+ this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings);
833
+ }
834
+ }
835
+ onCharacter(start, end, value) {
836
+ if (this._options.onCharacter) {
837
+ this._options.onCharacter(start, end, value);
838
+ }
839
+ }
840
+ onBackreference(start, end, ref) {
841
+ if (this._options.onBackreference) {
842
+ this._options.onBackreference(start, end, ref);
843
+ }
844
+ }
845
+ onCharacterClassEnter(start, negate, unicodeSets) {
846
+ if (this._options.onCharacterClassEnter) {
847
+ this._options.onCharacterClassEnter(start, negate, unicodeSets);
848
+ }
849
+ }
850
+ onCharacterClassLeave(start, end, negate) {
851
+ if (this._options.onCharacterClassLeave) {
852
+ this._options.onCharacterClassLeave(start, end, negate);
853
+ }
854
+ }
855
+ onCharacterClassRange(start, end, min, max) {
856
+ if (this._options.onCharacterClassRange) {
857
+ this._options.onCharacterClassRange(start, end, min, max);
858
+ }
859
+ }
860
+ onClassIntersection(start, end) {
861
+ if (this._options.onClassIntersection) {
862
+ this._options.onClassIntersection(start, end);
863
+ }
864
+ }
865
+ onClassSubtraction(start, end) {
866
+ if (this._options.onClassSubtraction) {
867
+ this._options.onClassSubtraction(start, end);
868
+ }
869
+ }
870
+ onClassStringDisjunctionEnter(start) {
871
+ if (this._options.onClassStringDisjunctionEnter) {
872
+ this._options.onClassStringDisjunctionEnter(start);
873
+ }
874
+ }
875
+ onClassStringDisjunctionLeave(start, end) {
876
+ if (this._options.onClassStringDisjunctionLeave) {
877
+ this._options.onClassStringDisjunctionLeave(start, end);
878
+ }
879
+ }
880
+ onStringAlternativeEnter(start, index) {
881
+ if (this._options.onStringAlternativeEnter) {
882
+ this._options.onStringAlternativeEnter(start, index);
883
+ }
884
+ }
885
+ onStringAlternativeLeave(start, end, index) {
886
+ if (this._options.onStringAlternativeLeave) {
887
+ this._options.onStringAlternativeLeave(start, end, index);
888
+ }
889
+ }
890
+ get index() {
891
+ return this._reader.index;
892
+ }
893
+ get currentCodePoint() {
894
+ return this._reader.currentCodePoint;
895
+ }
896
+ get nextCodePoint() {
897
+ return this._reader.nextCodePoint;
898
+ }
899
+ get nextCodePoint2() {
900
+ return this._reader.nextCodePoint2;
901
+ }
902
+ get nextCodePoint3() {
903
+ return this._reader.nextCodePoint3;
904
+ }
905
+ reset(source, start, end) {
906
+ this._reader.reset(source, start, end, this._unicodeMode);
907
+ }
908
+ rewind(index) {
909
+ this._reader.rewind(index);
910
+ }
911
+ advance() {
912
+ this._reader.advance();
913
+ }
914
+ eat(cp) {
915
+ return this._reader.eat(cp);
916
+ }
917
+ eat2(cp1, cp2) {
918
+ return this._reader.eat2(cp1, cp2);
919
+ }
920
+ eat3(cp1, cp2, cp3) {
921
+ return this._reader.eat3(cp1, cp2, cp3);
922
+ }
923
+ raise(message, context) {
924
+ var _a, _b, _c;
925
+ throw newRegExpSyntaxError(this._srcCtx, {
926
+ unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode),
927
+ unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode,
928
+ }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message);
929
+ }
930
+ eatRegExpBody() {
931
+ const start = this.index;
932
+ let inClass = false;
933
+ let escaped = false;
934
+ for (;;) {
935
+ const cp = this.currentCodePoint;
936
+ if (cp === -1 || isLineTerminator(cp)) {
937
+ const kind = inClass ? "character class" : "regular expression";
938
+ this.raise(`Unterminated ${kind}`);
939
+ }
940
+ if (escaped) {
941
+ escaped = false;
942
+ }
943
+ else if (cp === REVERSE_SOLIDUS) {
944
+ escaped = true;
945
+ }
946
+ else if (cp === LEFT_SQUARE_BRACKET) {
947
+ inClass = true;
948
+ }
949
+ else if (cp === RIGHT_SQUARE_BRACKET) {
950
+ inClass = false;
951
+ }
952
+ else if ((cp === SOLIDUS && !inClass) ||
953
+ (cp === ASTERISK && this.index === start)) {
954
+ break;
955
+ }
956
+ this.advance();
957
+ }
958
+ return this.index !== start;
959
+ }
960
+ consumePattern() {
961
+ const start = this.index;
962
+ this._numCapturingParens = this.countCapturingParens();
963
+ this._groupSpecifiers.clear();
964
+ this._backreferenceNames.clear();
965
+ this.onPatternEnter(start);
966
+ this.consumeDisjunction();
967
+ const cp = this.currentCodePoint;
968
+ if (this.currentCodePoint !== -1) {
969
+ if (cp === RIGHT_PARENTHESIS) {
970
+ this.raise("Unmatched ')'");
971
+ }
972
+ if (cp === REVERSE_SOLIDUS) {
973
+ this.raise("\\ at end of pattern");
974
+ }
975
+ if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) {
976
+ this.raise("Lone quantifier brackets");
977
+ }
978
+ const c = String.fromCodePoint(cp);
979
+ this.raise(`Unexpected character '${c}'`);
980
+ }
981
+ for (const name of this._backreferenceNames) {
982
+ if (!this._groupSpecifiers.hasInPattern(name)) {
983
+ this.raise("Invalid named capture referenced");
984
+ }
985
+ }
986
+ this.onPatternLeave(start, this.index);
987
+ }
988
+ countCapturingParens() {
989
+ const start = this.index;
990
+ let inClass = false;
991
+ let escaped = false;
992
+ let count = 0;
993
+ let cp = 0;
994
+ while ((cp = this.currentCodePoint) !== -1) {
995
+ if (escaped) {
996
+ escaped = false;
997
+ }
998
+ else if (cp === REVERSE_SOLIDUS) {
999
+ escaped = true;
1000
+ }
1001
+ else if (cp === LEFT_SQUARE_BRACKET) {
1002
+ inClass = true;
1003
+ }
1004
+ else if (cp === RIGHT_SQUARE_BRACKET) {
1005
+ inClass = false;
1006
+ }
1007
+ else if (cp === LEFT_PARENTHESIS &&
1008
+ !inClass &&
1009
+ (this.nextCodePoint !== QUESTION_MARK ||
1010
+ (this.nextCodePoint2 === LESS_THAN_SIGN &&
1011
+ this.nextCodePoint3 !== EQUALS_SIGN &&
1012
+ this.nextCodePoint3 !== EXCLAMATION_MARK))) {
1013
+ count += 1;
1014
+ }
1015
+ this.advance();
1016
+ }
1017
+ this.rewind(start);
1018
+ return count;
1019
+ }
1020
+ consumeDisjunction() {
1021
+ const start = this.index;
1022
+ let i = 0;
1023
+ this._groupSpecifiers.enterDisjunction();
1024
+ this.onDisjunctionEnter(start);
1025
+ do {
1026
+ this.consumeAlternative(i++);
1027
+ } while (this.eat(VERTICAL_LINE));
1028
+ if (this.consumeQuantifier(true)) {
1029
+ this.raise("Nothing to repeat");
1030
+ }
1031
+ if (this.eat(LEFT_CURLY_BRACKET)) {
1032
+ this.raise("Lone quantifier brackets");
1033
+ }
1034
+ this.onDisjunctionLeave(start, this.index);
1035
+ this._groupSpecifiers.leaveDisjunction();
1036
+ }
1037
+ consumeAlternative(i) {
1038
+ const start = this.index;
1039
+ this._groupSpecifiers.enterAlternative(i);
1040
+ this.onAlternativeEnter(start, i);
1041
+ while (this.currentCodePoint !== -1 && this.consumeTerm()) {
1042
+ }
1043
+ this.onAlternativeLeave(start, this.index, i);
1044
+ }
1045
+ consumeTerm() {
1046
+ if (this._unicodeMode || this.strict) {
1047
+ return (this.consumeAssertion() ||
1048
+ (this.consumeAtom() && this.consumeOptionalQuantifier()));
1049
+ }
1050
+ return ((this.consumeAssertion() &&
1051
+ (!this._lastAssertionIsQuantifiable ||
1052
+ this.consumeOptionalQuantifier())) ||
1053
+ (this.consumeExtendedAtom() && this.consumeOptionalQuantifier()));
1054
+ }
1055
+ consumeOptionalQuantifier() {
1056
+ this.consumeQuantifier();
1057
+ return true;
1058
+ }
1059
+ consumeAssertion() {
1060
+ const start = this.index;
1061
+ this._lastAssertionIsQuantifiable = false;
1062
+ if (this.eat(CIRCUMFLEX_ACCENT)) {
1063
+ this.onEdgeAssertion(start, this.index, "start");
1064
+ return true;
1065
+ }
1066
+ if (this.eat(DOLLAR_SIGN)) {
1067
+ this.onEdgeAssertion(start, this.index, "end");
1068
+ return true;
1069
+ }
1070
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) {
1071
+ this.onWordBoundaryAssertion(start, this.index, "word", true);
1072
+ return true;
1073
+ }
1074
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) {
1075
+ this.onWordBoundaryAssertion(start, this.index, "word", false);
1076
+ return true;
1077
+ }
1078
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
1079
+ const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN);
1080
+ let negate = false;
1081
+ if (this.eat(EQUALS_SIGN) ||
1082
+ (negate = this.eat(EXCLAMATION_MARK))) {
1083
+ const kind = lookbehind ? "lookbehind" : "lookahead";
1084
+ this.onLookaroundAssertionEnter(start, kind, negate);
1085
+ this.consumeDisjunction();
1086
+ if (!this.eat(RIGHT_PARENTHESIS)) {
1087
+ this.raise("Unterminated group");
1088
+ }
1089
+ this._lastAssertionIsQuantifiable = !lookbehind && !this.strict;
1090
+ this.onLookaroundAssertionLeave(start, this.index, kind, negate);
1091
+ return true;
1092
+ }
1093
+ this.rewind(start);
1094
+ }
1095
+ return false;
1096
+ }
1097
+ consumeQuantifier(noConsume = false) {
1098
+ const start = this.index;
1099
+ let min = 0;
1100
+ let max = 0;
1101
+ let greedy = false;
1102
+ if (this.eat(ASTERISK)) {
1103
+ min = 0;
1104
+ max = Number.POSITIVE_INFINITY;
1105
+ }
1106
+ else if (this.eat(PLUS_SIGN)) {
1107
+ min = 1;
1108
+ max = Number.POSITIVE_INFINITY;
1109
+ }
1110
+ else if (this.eat(QUESTION_MARK)) {
1111
+ min = 0;
1112
+ max = 1;
1113
+ }
1114
+ else if (this.eatBracedQuantifier(noConsume)) {
1115
+ ({ min, max } = this._lastRange);
1116
+ }
1117
+ else {
1118
+ return false;
1119
+ }
1120
+ greedy = !this.eat(QUESTION_MARK);
1121
+ if (!noConsume) {
1122
+ this.onQuantifier(start, this.index, min, max, greedy);
1123
+ }
1124
+ return true;
1125
+ }
1126
+ eatBracedQuantifier(noError) {
1127
+ const start = this.index;
1128
+ if (this.eat(LEFT_CURLY_BRACKET)) {
1129
+ if (this.eatDecimalDigits()) {
1130
+ const min = this._lastIntValue;
1131
+ let max = min;
1132
+ if (this.eat(COMMA)) {
1133
+ max = this.eatDecimalDigits()
1134
+ ? this._lastIntValue
1135
+ : Number.POSITIVE_INFINITY;
1136
+ }
1137
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
1138
+ if (!noError && max < min) {
1139
+ this.raise("numbers out of order in {} quantifier");
1140
+ }
1141
+ this._lastRange = { min, max };
1142
+ return true;
1143
+ }
1144
+ }
1145
+ if (!noError && (this._unicodeMode || this.strict)) {
1146
+ this.raise("Incomplete quantifier");
1147
+ }
1148
+ this.rewind(start);
1149
+ }
1150
+ return false;
1151
+ }
1152
+ consumeAtom() {
1153
+ return (this.consumePatternCharacter() ||
1154
+ this.consumeDot() ||
1155
+ this.consumeReverseSolidusAtomEscape() ||
1156
+ Boolean(this.consumeCharacterClass()) ||
1157
+ this.consumeCapturingGroup() ||
1158
+ this.consumeUncapturingGroup());
1159
+ }
1160
+ consumeDot() {
1161
+ if (this.eat(FULL_STOP)) {
1162
+ this.onAnyCharacterSet(this.index - 1, this.index, "any");
1163
+ return true;
1164
+ }
1165
+ return false;
1166
+ }
1167
+ consumeReverseSolidusAtomEscape() {
1168
+ const start = this.index;
1169
+ if (this.eat(REVERSE_SOLIDUS)) {
1170
+ if (this.consumeAtomEscape()) {
1171
+ return true;
1172
+ }
1173
+ this.rewind(start);
1174
+ }
1175
+ return false;
1176
+ }
1177
+ consumeUncapturingGroup() {
1178
+ const start = this.index;
1179
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
1180
+ this.onGroupEnter(start);
1181
+ if (this.ecmaVersion >= 2025) {
1182
+ this.consumeModifiers();
1183
+ }
1184
+ if (!this.eat(COLON)) {
1185
+ this.rewind(start + 1);
1186
+ this.raise("Invalid group");
1187
+ }
1188
+ this.consumeDisjunction();
1189
+ if (!this.eat(RIGHT_PARENTHESIS)) {
1190
+ this.raise("Unterminated group");
1191
+ }
1192
+ this.onGroupLeave(start, this.index);
1193
+ return true;
1194
+ }
1195
+ return false;
1196
+ }
1197
+ consumeModifiers() {
1198
+ const start = this.index;
1199
+ const hasAddModifiers = this.eatModifiers();
1200
+ const addModifiersEnd = this.index;
1201
+ const hasHyphen = this.eat(HYPHEN_MINUS);
1202
+ if (!hasAddModifiers && !hasHyphen) {
1203
+ return false;
1204
+ }
1205
+ this.onModifiersEnter(start);
1206
+ const addModifiers = this.parseModifiers(start, addModifiersEnd);
1207
+ this.onAddModifiers(start, addModifiersEnd, addModifiers);
1208
+ if (hasHyphen) {
1209
+ const modifiersStart = this.index;
1210
+ if (!this.eatModifiers() &&
1211
+ !hasAddModifiers &&
1212
+ this.currentCodePoint === COLON) {
1213
+ this.raise("Invalid empty flags");
1214
+ }
1215
+ const modifiers = this.parseModifiers(modifiersStart, this.index);
1216
+ for (const [flagName] of Object.entries(modifiers).filter(([, enable]) => enable)) {
1217
+ if (addModifiers[flagName]) {
1218
+ this.raise(`Duplicated flag '${String.fromCodePoint(FLAG_PROP_TO_CODEPOINT[flagName])}'`);
1219
+ }
1220
+ }
1221
+ this.onRemoveModifiers(modifiersStart, this.index, modifiers);
1222
+ }
1223
+ this.onModifiersLeave(start, this.index);
1224
+ return true;
1225
+ }
1226
+ consumeCapturingGroup() {
1227
+ const start = this.index;
1228
+ if (this.eat(LEFT_PARENTHESIS)) {
1229
+ let name = null;
1230
+ if (this.ecmaVersion >= 2018) {
1231
+ if (this.consumeGroupSpecifier()) {
1232
+ name = this._lastStrValue;
1233
+ }
1234
+ else if (this.currentCodePoint === QUESTION_MARK) {
1235
+ this.rewind(start);
1236
+ return false;
1237
+ }
1238
+ }
1239
+ else if (this.currentCodePoint === QUESTION_MARK) {
1240
+ this.rewind(start);
1241
+ return false;
1242
+ }
1243
+ this.onCapturingGroupEnter(start, name);
1244
+ this.consumeDisjunction();
1245
+ if (!this.eat(RIGHT_PARENTHESIS)) {
1246
+ this.raise("Unterminated group");
1247
+ }
1248
+ this.onCapturingGroupLeave(start, this.index, name);
1249
+ return true;
1250
+ }
1251
+ return false;
1252
+ }
1253
+ consumeExtendedAtom() {
1254
+ return (this.consumeDot() ||
1255
+ this.consumeReverseSolidusAtomEscape() ||
1256
+ this.consumeReverseSolidusFollowedByC() ||
1257
+ Boolean(this.consumeCharacterClass()) ||
1258
+ this.consumeCapturingGroup() ||
1259
+ this.consumeUncapturingGroup() ||
1260
+ this.consumeInvalidBracedQuantifier() ||
1261
+ this.consumeExtendedPatternCharacter());
1262
+ }
1263
+ consumeReverseSolidusFollowedByC() {
1264
+ const start = this.index;
1265
+ if (this.currentCodePoint === REVERSE_SOLIDUS &&
1266
+ this.nextCodePoint === LATIN_SMALL_LETTER_C) {
1267
+ this._lastIntValue = this.currentCodePoint;
1268
+ this.advance();
1269
+ this.onCharacter(start, this.index, REVERSE_SOLIDUS);
1270
+ return true;
1271
+ }
1272
+ return false;
1273
+ }
1274
+ consumeInvalidBracedQuantifier() {
1275
+ if (this.eatBracedQuantifier(true)) {
1276
+ this.raise("Nothing to repeat");
1277
+ }
1278
+ return false;
1279
+ }
1280
+ consumePatternCharacter() {
1281
+ const start = this.index;
1282
+ const cp = this.currentCodePoint;
1283
+ if (cp !== -1 && !isSyntaxCharacter(cp)) {
1284
+ this.advance();
1285
+ this.onCharacter(start, this.index, cp);
1286
+ return true;
1287
+ }
1288
+ return false;
1289
+ }
1290
+ consumeExtendedPatternCharacter() {
1291
+ const start = this.index;
1292
+ const cp = this.currentCodePoint;
1293
+ if (cp !== -1 &&
1294
+ cp !== CIRCUMFLEX_ACCENT &&
1295
+ cp !== DOLLAR_SIGN &&
1296
+ cp !== REVERSE_SOLIDUS &&
1297
+ cp !== FULL_STOP &&
1298
+ cp !== ASTERISK &&
1299
+ cp !== PLUS_SIGN &&
1300
+ cp !== QUESTION_MARK &&
1301
+ cp !== LEFT_PARENTHESIS &&
1302
+ cp !== RIGHT_PARENTHESIS &&
1303
+ cp !== LEFT_SQUARE_BRACKET &&
1304
+ cp !== VERTICAL_LINE) {
1305
+ this.advance();
1306
+ this.onCharacter(start, this.index, cp);
1307
+ return true;
1308
+ }
1309
+ return false;
1310
+ }
1311
+ consumeGroupSpecifier() {
1312
+ const start = this.index;
1313
+ if (this.eat(QUESTION_MARK)) {
1314
+ if (this.eatGroupName()) {
1315
+ if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) {
1316
+ this._groupSpecifiers.addToScope(this._lastStrValue);
1317
+ return true;
1318
+ }
1319
+ this.raise("Duplicate capture group name");
1320
+ }
1321
+ this.rewind(start);
1322
+ }
1323
+ return false;
1324
+ }
1325
+ consumeAtomEscape() {
1326
+ if (this.consumeBackreference() ||
1327
+ this.consumeCharacterClassEscape() ||
1328
+ this.consumeCharacterEscape() ||
1329
+ (this._nFlag && this.consumeKGroupName())) {
1330
+ return true;
1331
+ }
1332
+ if (this.strict || this._unicodeMode) {
1333
+ this.raise("Invalid escape");
1334
+ }
1335
+ return false;
1336
+ }
1337
+ consumeBackreference() {
1338
+ const start = this.index;
1339
+ if (this.eatDecimalEscape()) {
1340
+ const n = this._lastIntValue;
1341
+ if (n <= this._numCapturingParens) {
1342
+ this.onBackreference(start - 1, this.index, n);
1343
+ return true;
1344
+ }
1345
+ if (this.strict || this._unicodeMode) {
1346
+ this.raise("Invalid escape");
1347
+ }
1348
+ this.rewind(start);
1349
+ }
1350
+ return false;
1351
+ }
1352
+ consumeCharacterClassEscape() {
1353
+ var _a;
1354
+ const start = this.index;
1355
+ if (this.eat(LATIN_SMALL_LETTER_D)) {
1356
+ this._lastIntValue = -1;
1357
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", false);
1358
+ return {};
1359
+ }
1360
+ if (this.eat(LATIN_CAPITAL_LETTER_D)) {
1361
+ this._lastIntValue = -1;
1362
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", true);
1363
+ return {};
1364
+ }
1365
+ if (this.eat(LATIN_SMALL_LETTER_S)) {
1366
+ this._lastIntValue = -1;
1367
+ this.onEscapeCharacterSet(start - 1, this.index, "space", false);
1368
+ return {};
1369
+ }
1370
+ if (this.eat(LATIN_CAPITAL_LETTER_S)) {
1371
+ this._lastIntValue = -1;
1372
+ this.onEscapeCharacterSet(start - 1, this.index, "space", true);
1373
+ return {};
1374
+ }
1375
+ if (this.eat(LATIN_SMALL_LETTER_W)) {
1376
+ this._lastIntValue = -1;
1377
+ this.onEscapeCharacterSet(start - 1, this.index, "word", false);
1378
+ return {};
1379
+ }
1380
+ if (this.eat(LATIN_CAPITAL_LETTER_W)) {
1381
+ this._lastIntValue = -1;
1382
+ this.onEscapeCharacterSet(start - 1, this.index, "word", true);
1383
+ return {};
1384
+ }
1385
+ let negate = false;
1386
+ if (this._unicodeMode &&
1387
+ this.ecmaVersion >= 2018 &&
1388
+ (this.eat(LATIN_SMALL_LETTER_P) ||
1389
+ (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) {
1390
+ this._lastIntValue = -1;
1391
+ let result = null;
1392
+ if (this.eat(LEFT_CURLY_BRACKET) &&
1393
+ (result = this.eatUnicodePropertyValueExpression()) &&
1394
+ this.eat(RIGHT_CURLY_BRACKET)) {
1395
+ if (negate && result.strings) {
1396
+ this.raise("Invalid property name");
1397
+ }
1398
+ this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false);
1399
+ return { mayContainStrings: result.strings };
1400
+ }
1401
+ this.raise("Invalid property name");
1402
+ }
1403
+ return null;
1404
+ }
1405
+ consumeCharacterEscape() {
1406
+ const start = this.index;
1407
+ if (this.eatControlEscape() ||
1408
+ this.eatCControlLetter() ||
1409
+ this.eatZero() ||
1410
+ this.eatHexEscapeSequence() ||
1411
+ this.eatRegExpUnicodeEscapeSequence() ||
1412
+ (!this.strict &&
1413
+ !this._unicodeMode &&
1414
+ this.eatLegacyOctalEscapeSequence()) ||
1415
+ this.eatIdentityEscape()) {
1416
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1417
+ return true;
1418
+ }
1419
+ return false;
1420
+ }
1421
+ consumeKGroupName() {
1422
+ const start = this.index;
1423
+ if (this.eat(LATIN_SMALL_LETTER_K)) {
1424
+ if (this.eatGroupName()) {
1425
+ const groupName = this._lastStrValue;
1426
+ this._backreferenceNames.add(groupName);
1427
+ this.onBackreference(start - 1, this.index, groupName);
1428
+ return true;
1429
+ }
1430
+ this.raise("Invalid named reference");
1431
+ }
1432
+ return false;
1433
+ }
1434
+ consumeCharacterClass() {
1435
+ const start = this.index;
1436
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
1437
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
1438
+ this.onCharacterClassEnter(start, negate, this._unicodeSetsMode);
1439
+ const result = this.consumeClassContents();
1440
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
1441
+ if (this.currentCodePoint === -1) {
1442
+ this.raise("Unterminated character class");
1443
+ }
1444
+ this.raise("Invalid character in character class");
1445
+ }
1446
+ if (negate && result.mayContainStrings) {
1447
+ this.raise("Negated character class may contain strings");
1448
+ }
1449
+ this.onCharacterClassLeave(start, this.index, negate);
1450
+ return result;
1451
+ }
1452
+ return null;
1453
+ }
1454
+ consumeClassContents() {
1455
+ if (this._unicodeSetsMode) {
1456
+ if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) {
1457
+ return {};
1458
+ }
1459
+ const result = this.consumeClassSetExpression();
1460
+ return result;
1461
+ }
1462
+ const strict = this.strict || this._unicodeMode;
1463
+ for (;;) {
1464
+ const rangeStart = this.index;
1465
+ if (!this.consumeClassAtom()) {
1466
+ break;
1467
+ }
1468
+ const min = this._lastIntValue;
1469
+ if (!this.eat(HYPHEN_MINUS)) {
1470
+ continue;
1471
+ }
1472
+ this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS);
1473
+ if (!this.consumeClassAtom()) {
1474
+ break;
1475
+ }
1476
+ const max = this._lastIntValue;
1477
+ if (min === -1 || max === -1) {
1478
+ if (strict) {
1479
+ this.raise("Invalid character class");
1480
+ }
1481
+ continue;
1482
+ }
1483
+ if (min > max) {
1484
+ this.raise("Range out of order in character class");
1485
+ }
1486
+ this.onCharacterClassRange(rangeStart, this.index, min, max);
1487
+ }
1488
+ return {};
1489
+ }
1490
+ consumeClassAtom() {
1491
+ const start = this.index;
1492
+ const cp = this.currentCodePoint;
1493
+ if (cp !== -1 &&
1494
+ cp !== REVERSE_SOLIDUS &&
1495
+ cp !== RIGHT_SQUARE_BRACKET) {
1496
+ this.advance();
1497
+ this._lastIntValue = cp;
1498
+ this.onCharacter(start, this.index, this._lastIntValue);
1499
+ return true;
1500
+ }
1501
+ if (this.eat(REVERSE_SOLIDUS)) {
1502
+ if (this.consumeClassEscape()) {
1503
+ return true;
1504
+ }
1505
+ if (!this.strict &&
1506
+ this.currentCodePoint === LATIN_SMALL_LETTER_C) {
1507
+ this._lastIntValue = REVERSE_SOLIDUS;
1508
+ this.onCharacter(start, this.index, this._lastIntValue);
1509
+ return true;
1510
+ }
1511
+ if (this.strict || this._unicodeMode) {
1512
+ this.raise("Invalid escape");
1513
+ }
1514
+ this.rewind(start);
1515
+ }
1516
+ return false;
1517
+ }
1518
+ consumeClassEscape() {
1519
+ const start = this.index;
1520
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
1521
+ this._lastIntValue = BACKSPACE;
1522
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1523
+ return true;
1524
+ }
1525
+ if (this._unicodeMode && this.eat(HYPHEN_MINUS)) {
1526
+ this._lastIntValue = HYPHEN_MINUS;
1527
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1528
+ return true;
1529
+ }
1530
+ let cp = 0;
1531
+ if (!this.strict &&
1532
+ !this._unicodeMode &&
1533
+ this.currentCodePoint === LATIN_SMALL_LETTER_C &&
1534
+ (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) {
1535
+ this.advance();
1536
+ this.advance();
1537
+ this._lastIntValue = cp % 0x20;
1538
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1539
+ return true;
1540
+ }
1541
+ return (Boolean(this.consumeCharacterClassEscape()) ||
1542
+ this.consumeCharacterEscape());
1543
+ }
1544
+ consumeClassSetExpression() {
1545
+ const start = this.index;
1546
+ let mayContainStrings = false;
1547
+ let result = null;
1548
+ if (this.consumeClassSetCharacter()) {
1549
+ if (this.consumeClassSetRangeFromOperator(start)) {
1550
+ this.consumeClassUnionRight({});
1551
+ return {};
1552
+ }
1553
+ mayContainStrings = false;
1554
+ }
1555
+ else if ((result = this.consumeClassSetOperand())) {
1556
+ mayContainStrings = result.mayContainStrings;
1557
+ }
1558
+ else {
1559
+ const cp = this.currentCodePoint;
1560
+ if (cp === REVERSE_SOLIDUS) {
1561
+ this.advance();
1562
+ this.raise("Invalid escape");
1563
+ }
1564
+ if (cp === this.nextCodePoint &&
1565
+ isClassSetReservedDoublePunctuatorCharacter(cp)) {
1566
+ this.raise("Invalid set operation in character class");
1567
+ }
1568
+ this.raise("Invalid character in character class");
1569
+ }
1570
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
1571
+ while (this.currentCodePoint !== AMPERSAND &&
1572
+ (result = this.consumeClassSetOperand())) {
1573
+ this.onClassIntersection(start, this.index);
1574
+ if (!result.mayContainStrings) {
1575
+ mayContainStrings = false;
1576
+ }
1577
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
1578
+ continue;
1579
+ }
1580
+ return { mayContainStrings };
1581
+ }
1582
+ this.raise("Invalid character in character class");
1583
+ }
1584
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
1585
+ while (this.consumeClassSetOperand()) {
1586
+ this.onClassSubtraction(start, this.index);
1587
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
1588
+ continue;
1589
+ }
1590
+ return { mayContainStrings };
1591
+ }
1592
+ this.raise("Invalid character in character class");
1593
+ }
1594
+ return this.consumeClassUnionRight({ mayContainStrings });
1595
+ }
1596
+ consumeClassUnionRight(leftResult) {
1597
+ let mayContainStrings = leftResult.mayContainStrings;
1598
+ for (;;) {
1599
+ const start = this.index;
1600
+ if (this.consumeClassSetCharacter()) {
1601
+ this.consumeClassSetRangeFromOperator(start);
1602
+ continue;
1603
+ }
1604
+ const result = this.consumeClassSetOperand();
1605
+ if (result) {
1606
+ if (result.mayContainStrings) {
1607
+ mayContainStrings = true;
1608
+ }
1609
+ continue;
1610
+ }
1611
+ break;
1612
+ }
1613
+ return { mayContainStrings };
1614
+ }
1615
+ consumeClassSetRangeFromOperator(start) {
1616
+ const currentStart = this.index;
1617
+ const min = this._lastIntValue;
1618
+ if (this.eat(HYPHEN_MINUS)) {
1619
+ if (this.consumeClassSetCharacter()) {
1620
+ const max = this._lastIntValue;
1621
+ if (min === -1 || max === -1) {
1622
+ this.raise("Invalid character class");
1623
+ }
1624
+ if (min > max) {
1625
+ this.raise("Range out of order in character class");
1626
+ }
1627
+ this.onCharacterClassRange(start, this.index, min, max);
1628
+ return true;
1629
+ }
1630
+ this.rewind(currentStart);
1631
+ }
1632
+ return false;
1633
+ }
1634
+ consumeClassSetOperand() {
1635
+ let result = null;
1636
+ if ((result = this.consumeNestedClass())) {
1637
+ return result;
1638
+ }
1639
+ if ((result = this.consumeClassStringDisjunction())) {
1640
+ return result;
1641
+ }
1642
+ if (this.consumeClassSetCharacter()) {
1643
+ return {};
1644
+ }
1645
+ return null;
1646
+ }
1647
+ consumeNestedClass() {
1648
+ const start = this.index;
1649
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
1650
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
1651
+ this.onCharacterClassEnter(start, negate, true);
1652
+ const result = this.consumeClassContents();
1653
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
1654
+ this.raise("Unterminated character class");
1655
+ }
1656
+ if (negate && result.mayContainStrings) {
1657
+ this.raise("Negated character class may contain strings");
1658
+ }
1659
+ this.onCharacterClassLeave(start, this.index, negate);
1660
+ return result;
1661
+ }
1662
+ if (this.eat(REVERSE_SOLIDUS)) {
1663
+ const result = this.consumeCharacterClassEscape();
1664
+ if (result) {
1665
+ return result;
1666
+ }
1667
+ this.rewind(start);
1668
+ }
1669
+ return null;
1670
+ }
1671
+ consumeClassStringDisjunction() {
1672
+ const start = this.index;
1673
+ if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) {
1674
+ this.onClassStringDisjunctionEnter(start);
1675
+ let i = 0;
1676
+ let mayContainStrings = false;
1677
+ do {
1678
+ if (this.consumeClassString(i++).mayContainStrings) {
1679
+ mayContainStrings = true;
1680
+ }
1681
+ } while (this.eat(VERTICAL_LINE));
1682
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
1683
+ this.onClassStringDisjunctionLeave(start, this.index);
1684
+ return { mayContainStrings };
1685
+ }
1686
+ this.raise("Unterminated class string disjunction");
1687
+ }
1688
+ return null;
1689
+ }
1690
+ consumeClassString(i) {
1691
+ const start = this.index;
1692
+ let count = 0;
1693
+ this.onStringAlternativeEnter(start, i);
1694
+ while (this.currentCodePoint !== -1 &&
1695
+ this.consumeClassSetCharacter()) {
1696
+ count++;
1697
+ }
1698
+ this.onStringAlternativeLeave(start, this.index, i);
1699
+ return { mayContainStrings: count !== 1 };
1700
+ }
1701
+ consumeClassSetCharacter() {
1702
+ const start = this.index;
1703
+ const cp = this.currentCodePoint;
1704
+ if (cp !== this.nextCodePoint ||
1705
+ !isClassSetReservedDoublePunctuatorCharacter(cp)) {
1706
+ if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) {
1707
+ this._lastIntValue = cp;
1708
+ this.advance();
1709
+ this.onCharacter(start, this.index, this._lastIntValue);
1710
+ return true;
1711
+ }
1712
+ }
1713
+ if (this.eat(REVERSE_SOLIDUS)) {
1714
+ if (this.consumeCharacterEscape()) {
1715
+ return true;
1716
+ }
1717
+ if (isClassSetReservedPunctuator(this.currentCodePoint)) {
1718
+ this._lastIntValue = this.currentCodePoint;
1719
+ this.advance();
1720
+ this.onCharacter(start, this.index, this._lastIntValue);
1721
+ return true;
1722
+ }
1723
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
1724
+ this._lastIntValue = BACKSPACE;
1725
+ this.onCharacter(start, this.index, this._lastIntValue);
1726
+ return true;
1727
+ }
1728
+ this.rewind(start);
1729
+ }
1730
+ return false;
1731
+ }
1732
+ eatGroupName() {
1733
+ if (this.eat(LESS_THAN_SIGN)) {
1734
+ if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) {
1735
+ return true;
1736
+ }
1737
+ this.raise("Invalid capture group name");
1738
+ }
1739
+ return false;
1740
+ }
1741
+ eatRegExpIdentifierName() {
1742
+ if (this.eatRegExpIdentifierStart()) {
1743
+ this._lastStrValue = String.fromCodePoint(this._lastIntValue);
1744
+ while (this.eatRegExpIdentifierPart()) {
1745
+ this._lastStrValue += String.fromCodePoint(this._lastIntValue);
1746
+ }
1747
+ return true;
1748
+ }
1749
+ return false;
1750
+ }
1751
+ eatRegExpIdentifierStart() {
1752
+ const start = this.index;
1753
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
1754
+ let cp = this.currentCodePoint;
1755
+ this.advance();
1756
+ if (cp === REVERSE_SOLIDUS &&
1757
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
1758
+ cp = this._lastIntValue;
1759
+ }
1760
+ else if (forceUFlag &&
1761
+ isLeadSurrogate(cp) &&
1762
+ isTrailSurrogate(this.currentCodePoint)) {
1763
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
1764
+ this.advance();
1765
+ }
1766
+ if (isIdentifierStartChar(cp)) {
1767
+ this._lastIntValue = cp;
1768
+ return true;
1769
+ }
1770
+ if (this.index !== start) {
1771
+ this.rewind(start);
1772
+ }
1773
+ return false;
1774
+ }
1775
+ eatRegExpIdentifierPart() {
1776
+ const start = this.index;
1777
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
1778
+ let cp = this.currentCodePoint;
1779
+ this.advance();
1780
+ if (cp === REVERSE_SOLIDUS &&
1781
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
1782
+ cp = this._lastIntValue;
1783
+ }
1784
+ else if (forceUFlag &&
1785
+ isLeadSurrogate(cp) &&
1786
+ isTrailSurrogate(this.currentCodePoint)) {
1787
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
1788
+ this.advance();
1789
+ }
1790
+ if (isIdentifierPartChar(cp)) {
1791
+ this._lastIntValue = cp;
1792
+ return true;
1793
+ }
1794
+ if (this.index !== start) {
1795
+ this.rewind(start);
1796
+ }
1797
+ return false;
1798
+ }
1799
+ eatCControlLetter() {
1800
+ const start = this.index;
1801
+ if (this.eat(LATIN_SMALL_LETTER_C)) {
1802
+ if (this.eatControlLetter()) {
1803
+ return true;
1804
+ }
1805
+ this.rewind(start);
1806
+ }
1807
+ return false;
1808
+ }
1809
+ eatZero() {
1810
+ if (this.currentCodePoint === DIGIT_ZERO &&
1811
+ !isDecimalDigit(this.nextCodePoint)) {
1812
+ this._lastIntValue = 0;
1813
+ this.advance();
1814
+ return true;
1815
+ }
1816
+ return false;
1817
+ }
1818
+ eatControlEscape() {
1819
+ if (this.eat(LATIN_SMALL_LETTER_F)) {
1820
+ this._lastIntValue = FORM_FEED;
1821
+ return true;
1822
+ }
1823
+ if (this.eat(LATIN_SMALL_LETTER_N)) {
1824
+ this._lastIntValue = LINE_FEED;
1825
+ return true;
1826
+ }
1827
+ if (this.eat(LATIN_SMALL_LETTER_R)) {
1828
+ this._lastIntValue = CARRIAGE_RETURN;
1829
+ return true;
1830
+ }
1831
+ if (this.eat(LATIN_SMALL_LETTER_T)) {
1832
+ this._lastIntValue = CHARACTER_TABULATION;
1833
+ return true;
1834
+ }
1835
+ if (this.eat(LATIN_SMALL_LETTER_V)) {
1836
+ this._lastIntValue = LINE_TABULATION;
1837
+ return true;
1838
+ }
1839
+ return false;
1840
+ }
1841
+ eatControlLetter() {
1842
+ const cp = this.currentCodePoint;
1843
+ if (isLatinLetter(cp)) {
1844
+ this.advance();
1845
+ this._lastIntValue = cp % 0x20;
1846
+ return true;
1847
+ }
1848
+ return false;
1849
+ }
1850
+ eatRegExpUnicodeEscapeSequence(forceUFlag = false) {
1851
+ const start = this.index;
1852
+ const uFlag = forceUFlag || this._unicodeMode;
1853
+ if (this.eat(LATIN_SMALL_LETTER_U)) {
1854
+ if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) ||
1855
+ this.eatFixedHexDigits(4) ||
1856
+ (uFlag && this.eatRegExpUnicodeCodePointEscape())) {
1857
+ return true;
1858
+ }
1859
+ if (this.strict || uFlag) {
1860
+ this.raise("Invalid unicode escape");
1861
+ }
1862
+ this.rewind(start);
1863
+ }
1864
+ return false;
1865
+ }
1866
+ eatRegExpUnicodeSurrogatePairEscape() {
1867
+ const start = this.index;
1868
+ if (this.eatFixedHexDigits(4)) {
1869
+ const lead = this._lastIntValue;
1870
+ if (isLeadSurrogate(lead) &&
1871
+ this.eat(REVERSE_SOLIDUS) &&
1872
+ this.eat(LATIN_SMALL_LETTER_U) &&
1873
+ this.eatFixedHexDigits(4)) {
1874
+ const trail = this._lastIntValue;
1875
+ if (isTrailSurrogate(trail)) {
1876
+ this._lastIntValue = combineSurrogatePair(lead, trail);
1877
+ return true;
1878
+ }
1879
+ }
1880
+ this.rewind(start);
1881
+ }
1882
+ return false;
1883
+ }
1884
+ eatRegExpUnicodeCodePointEscape() {
1885
+ const start = this.index;
1886
+ if (this.eat(LEFT_CURLY_BRACKET) &&
1887
+ this.eatHexDigits() &&
1888
+ this.eat(RIGHT_CURLY_BRACKET) &&
1889
+ isValidUnicode(this._lastIntValue)) {
1890
+ return true;
1891
+ }
1892
+ this.rewind(start);
1893
+ return false;
1894
+ }
1895
+ eatIdentityEscape() {
1896
+ const cp = this.currentCodePoint;
1897
+ if (this.isValidIdentityEscape(cp)) {
1898
+ this._lastIntValue = cp;
1899
+ this.advance();
1900
+ return true;
1901
+ }
1902
+ return false;
1903
+ }
1904
+ isValidIdentityEscape(cp) {
1905
+ if (cp === -1) {
1906
+ return false;
1907
+ }
1908
+ if (this._unicodeMode) {
1909
+ return isSyntaxCharacter(cp) || cp === SOLIDUS;
1910
+ }
1911
+ if (this.strict) {
1912
+ return !isIdContinue(cp);
1913
+ }
1914
+ if (this._nFlag) {
1915
+ return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K);
1916
+ }
1917
+ return cp !== LATIN_SMALL_LETTER_C;
1918
+ }
1919
+ eatDecimalEscape() {
1920
+ this._lastIntValue = 0;
1921
+ let cp = this.currentCodePoint;
1922
+ if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) {
1923
+ do {
1924
+ this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO);
1925
+ this.advance();
1926
+ } while ((cp = this.currentCodePoint) >= DIGIT_ZERO &&
1927
+ cp <= DIGIT_NINE);
1928
+ return true;
1929
+ }
1930
+ return false;
1931
+ }
1932
+ eatUnicodePropertyValueExpression() {
1933
+ const start = this.index;
1934
+ if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) {
1935
+ const key = this._lastStrValue;
1936
+ if (this.eatUnicodePropertyValue()) {
1937
+ const value = this._lastStrValue;
1938
+ if (isValidUnicodeProperty(this.ecmaVersion, key, value)) {
1939
+ return {
1940
+ key,
1941
+ value: value || null,
1942
+ };
1943
+ }
1944
+ this.raise("Invalid property name");
1945
+ }
1946
+ }
1947
+ this.rewind(start);
1948
+ if (this.eatLoneUnicodePropertyNameOrValue()) {
1949
+ const nameOrValue = this._lastStrValue;
1950
+ if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) {
1951
+ return {
1952
+ key: "General_Category",
1953
+ value: nameOrValue || null,
1954
+ };
1955
+ }
1956
+ if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) {
1957
+ return {
1958
+ key: nameOrValue,
1959
+ value: null,
1960
+ };
1961
+ }
1962
+ if (this._unicodeSetsMode &&
1963
+ isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) {
1964
+ return {
1965
+ key: nameOrValue,
1966
+ value: null,
1967
+ strings: true,
1968
+ };
1969
+ }
1970
+ this.raise("Invalid property name");
1971
+ }
1972
+ return null;
1973
+ }
1974
+ eatUnicodePropertyName() {
1975
+ this._lastStrValue = "";
1976
+ while (isUnicodePropertyNameCharacter(this.currentCodePoint)) {
1977
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
1978
+ this.advance();
1979
+ }
1980
+ return this._lastStrValue !== "";
1981
+ }
1982
+ eatUnicodePropertyValue() {
1983
+ this._lastStrValue = "";
1984
+ while (isUnicodePropertyValueCharacter(this.currentCodePoint)) {
1985
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
1986
+ this.advance();
1987
+ }
1988
+ return this._lastStrValue !== "";
1989
+ }
1990
+ eatLoneUnicodePropertyNameOrValue() {
1991
+ return this.eatUnicodePropertyValue();
1992
+ }
1993
+ eatHexEscapeSequence() {
1994
+ const start = this.index;
1995
+ if (this.eat(LATIN_SMALL_LETTER_X)) {
1996
+ if (this.eatFixedHexDigits(2)) {
1997
+ return true;
1998
+ }
1999
+ if (this._unicodeMode || this.strict) {
2000
+ this.raise("Invalid escape");
2001
+ }
2002
+ this.rewind(start);
2003
+ }
2004
+ return false;
2005
+ }
2006
+ eatDecimalDigits() {
2007
+ const start = this.index;
2008
+ this._lastIntValue = 0;
2009
+ while (isDecimalDigit(this.currentCodePoint)) {
2010
+ this._lastIntValue =
2011
+ 10 * this._lastIntValue + digitToInt(this.currentCodePoint);
2012
+ this.advance();
2013
+ }
2014
+ return this.index !== start;
2015
+ }
2016
+ eatHexDigits() {
2017
+ const start = this.index;
2018
+ this._lastIntValue = 0;
2019
+ while (isHexDigit(this.currentCodePoint)) {
2020
+ this._lastIntValue =
2021
+ 16 * this._lastIntValue + digitToInt(this.currentCodePoint);
2022
+ this.advance();
2023
+ }
2024
+ return this.index !== start;
2025
+ }
2026
+ eatLegacyOctalEscapeSequence() {
2027
+ if (this.eatOctalDigit()) {
2028
+ const n1 = this._lastIntValue;
2029
+ if (this.eatOctalDigit()) {
2030
+ const n2 = this._lastIntValue;
2031
+ if (n1 <= 3 && this.eatOctalDigit()) {
2032
+ this._lastIntValue = n1 * 64 + n2 * 8 + this._lastIntValue;
2033
+ }
2034
+ else {
2035
+ this._lastIntValue = n1 * 8 + n2;
2036
+ }
2037
+ }
2038
+ else {
2039
+ this._lastIntValue = n1;
2040
+ }
2041
+ return true;
2042
+ }
2043
+ return false;
2044
+ }
2045
+ eatOctalDigit() {
2046
+ const cp = this.currentCodePoint;
2047
+ if (isOctalDigit(cp)) {
2048
+ this.advance();
2049
+ this._lastIntValue = cp - DIGIT_ZERO;
2050
+ return true;
2051
+ }
2052
+ this._lastIntValue = 0;
2053
+ return false;
2054
+ }
2055
+ eatFixedHexDigits(length) {
2056
+ const start = this.index;
2057
+ this._lastIntValue = 0;
2058
+ for (let i = 0; i < length; ++i) {
2059
+ const cp = this.currentCodePoint;
2060
+ if (!isHexDigit(cp)) {
2061
+ this.rewind(start);
2062
+ return false;
2063
+ }
2064
+ this._lastIntValue = 16 * this._lastIntValue + digitToInt(cp);
2065
+ this.advance();
2066
+ }
2067
+ return true;
2068
+ }
2069
+ eatModifiers() {
2070
+ let ate = false;
2071
+ while (isRegularExpressionModifier(this.currentCodePoint)) {
2072
+ this.advance();
2073
+ ate = true;
2074
+ }
2075
+ return ate;
2076
+ }
2077
+ parseModifiers(start, end) {
2078
+ const { ignoreCase, multiline, dotAll } = this.parseFlags(this._reader.source, start, end);
2079
+ return { ignoreCase, multiline, dotAll };
2080
+ }
2081
+ parseFlags(source, start, end) {
2082
+ const flags = {
2083
+ global: false,
2084
+ ignoreCase: false,
2085
+ multiline: false,
2086
+ unicode: false,
2087
+ sticky: false,
2088
+ dotAll: false,
2089
+ hasIndices: false,
2090
+ unicodeSets: false,
2091
+ };
2092
+ const validFlags = new Set();
2093
+ validFlags.add(LATIN_SMALL_LETTER_G);
2094
+ validFlags.add(LATIN_SMALL_LETTER_I);
2095
+ validFlags.add(LATIN_SMALL_LETTER_M);
2096
+ if (this.ecmaVersion >= 2015) {
2097
+ validFlags.add(LATIN_SMALL_LETTER_U);
2098
+ validFlags.add(LATIN_SMALL_LETTER_Y);
2099
+ if (this.ecmaVersion >= 2018) {
2100
+ validFlags.add(LATIN_SMALL_LETTER_S);
2101
+ if (this.ecmaVersion >= 2022) {
2102
+ validFlags.add(LATIN_SMALL_LETTER_D);
2103
+ if (this.ecmaVersion >= 2024) {
2104
+ validFlags.add(LATIN_SMALL_LETTER_V);
2105
+ }
2106
+ }
2107
+ }
2108
+ }
2109
+ for (let i = start; i < end; ++i) {
2110
+ const flag = source.charCodeAt(i);
2111
+ if (validFlags.has(flag)) {
2112
+ const prop = FLAG_CODEPOINT_TO_PROP[flag];
2113
+ if (flags[prop]) {
2114
+ this.raise(`Duplicated flag '${source[i]}'`, {
2115
+ index: start,
2116
+ });
2117
+ }
2118
+ flags[prop] = true;
2119
+ }
2120
+ else {
2121
+ this.raise(`Invalid flag '${source[i]}'`, { index: start });
2122
+ }
2123
+ }
2124
+ return flags;
2125
+ }
2126
+ }
2127
+
2128
+ const DUMMY_PATTERN = {};
2129
+ const DUMMY_FLAGS = {};
2130
+ const DUMMY_CAPTURING_GROUP = {};
2131
+ function isClassSetOperand(node) {
2132
+ return (node.type === "Character" ||
2133
+ node.type === "CharacterSet" ||
2134
+ node.type === "CharacterClass" ||
2135
+ node.type === "ExpressionCharacterClass" ||
2136
+ node.type === "ClassStringDisjunction");
2137
+ }
2138
+ class RegExpParserState {
2139
+ constructor(options) {
2140
+ var _a;
2141
+ this._node = DUMMY_PATTERN;
2142
+ this._expressionBufferMap = new Map();
2143
+ this._flags = DUMMY_FLAGS;
2144
+ this._backreferences = [];
2145
+ this._capturingGroups = [];
2146
+ this.source = "";
2147
+ this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict);
2148
+ this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
2149
+ }
2150
+ get pattern() {
2151
+ if (this._node.type !== "Pattern") {
2152
+ throw new Error("UnknownError");
2153
+ }
2154
+ return this._node;
2155
+ }
2156
+ get flags() {
2157
+ if (this._flags.type !== "Flags") {
2158
+ throw new Error("UnknownError");
2159
+ }
2160
+ return this._flags;
2161
+ }
2162
+ onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) {
2163
+ this._flags = {
2164
+ type: "Flags",
2165
+ parent: null,
2166
+ start,
2167
+ end,
2168
+ raw: this.source.slice(start, end),
2169
+ global,
2170
+ ignoreCase,
2171
+ multiline,
2172
+ unicode,
2173
+ sticky,
2174
+ dotAll,
2175
+ hasIndices,
2176
+ unicodeSets,
2177
+ };
2178
+ }
2179
+ onPatternEnter(start) {
2180
+ this._node = {
2181
+ type: "Pattern",
2182
+ parent: null,
2183
+ start,
2184
+ end: start,
2185
+ raw: "",
2186
+ alternatives: [],
2187
+ };
2188
+ this._backreferences.length = 0;
2189
+ this._capturingGroups.length = 0;
2190
+ }
2191
+ onPatternLeave(start, end) {
2192
+ this._node.end = end;
2193
+ this._node.raw = this.source.slice(start, end);
2194
+ for (const reference of this._backreferences) {
2195
+ const ref = reference.ref;
2196
+ const groups = typeof ref === "number"
2197
+ ? [this._capturingGroups[ref - 1]]
2198
+ : this._capturingGroups.filter((g) => g.name === ref);
2199
+ if (groups.length === 1) {
2200
+ const group = groups[0];
2201
+ reference.ambiguous = false;
2202
+ reference.resolved = group;
2203
+ }
2204
+ else {
2205
+ reference.ambiguous = true;
2206
+ reference.resolved = groups;
2207
+ }
2208
+ for (const group of groups) {
2209
+ group.references.push(reference);
2210
+ }
2211
+ }
2212
+ }
2213
+ onAlternativeEnter(start) {
2214
+ const parent = this._node;
2215
+ if (parent.type !== "Assertion" &&
2216
+ parent.type !== "CapturingGroup" &&
2217
+ parent.type !== "Group" &&
2218
+ parent.type !== "Pattern") {
2219
+ throw new Error("UnknownError");
2220
+ }
2221
+ this._node = {
2222
+ type: "Alternative",
2223
+ parent,
2224
+ start,
2225
+ end: start,
2226
+ raw: "",
2227
+ elements: [],
2228
+ };
2229
+ parent.alternatives.push(this._node);
2230
+ }
2231
+ onAlternativeLeave(start, end) {
2232
+ const node = this._node;
2233
+ if (node.type !== "Alternative") {
2234
+ throw new Error("UnknownError");
2235
+ }
2236
+ node.end = end;
2237
+ node.raw = this.source.slice(start, end);
2238
+ this._node = node.parent;
2239
+ }
2240
+ onGroupEnter(start) {
2241
+ const parent = this._node;
2242
+ if (parent.type !== "Alternative") {
2243
+ throw new Error("UnknownError");
2244
+ }
2245
+ const group = {
2246
+ type: "Group",
2247
+ parent,
2248
+ start,
2249
+ end: start,
2250
+ raw: "",
2251
+ modifiers: null,
2252
+ alternatives: [],
2253
+ };
2254
+ this._node = group;
2255
+ parent.elements.push(this._node);
2256
+ }
2257
+ onGroupLeave(start, end) {
2258
+ const node = this._node;
2259
+ if (node.type !== "Group" || node.parent.type !== "Alternative") {
2260
+ throw new Error("UnknownError");
2261
+ }
2262
+ node.end = end;
2263
+ node.raw = this.source.slice(start, end);
2264
+ this._node = node.parent;
2265
+ }
2266
+ onModifiersEnter(start) {
2267
+ const parent = this._node;
2268
+ if (parent.type !== "Group") {
2269
+ throw new Error("UnknownError");
2270
+ }
2271
+ this._node = {
2272
+ type: "Modifiers",
2273
+ parent,
2274
+ start,
2275
+ end: start,
2276
+ raw: "",
2277
+ add: null,
2278
+ remove: null,
2279
+ };
2280
+ parent.modifiers = this._node;
2281
+ }
2282
+ onModifiersLeave(start, end) {
2283
+ const node = this._node;
2284
+ if (node.type !== "Modifiers" || node.parent.type !== "Group") {
2285
+ throw new Error("UnknownError");
2286
+ }
2287
+ node.end = end;
2288
+ node.raw = this.source.slice(start, end);
2289
+ this._node = node.parent;
2290
+ }
2291
+ onAddModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
2292
+ const parent = this._node;
2293
+ if (parent.type !== "Modifiers") {
2294
+ throw new Error("UnknownError");
2295
+ }
2296
+ parent.add = {
2297
+ type: "ModifierFlags",
2298
+ parent,
2299
+ start,
2300
+ end,
2301
+ raw: this.source.slice(start, end),
2302
+ ignoreCase,
2303
+ multiline,
2304
+ dotAll,
2305
+ };
2306
+ }
2307
+ onRemoveModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
2308
+ const parent = this._node;
2309
+ if (parent.type !== "Modifiers") {
2310
+ throw new Error("UnknownError");
2311
+ }
2312
+ parent.remove = {
2313
+ type: "ModifierFlags",
2314
+ parent,
2315
+ start,
2316
+ end,
2317
+ raw: this.source.slice(start, end),
2318
+ ignoreCase,
2319
+ multiline,
2320
+ dotAll,
2321
+ };
2322
+ }
2323
+ onCapturingGroupEnter(start, name) {
2324
+ const parent = this._node;
2325
+ if (parent.type !== "Alternative") {
2326
+ throw new Error("UnknownError");
2327
+ }
2328
+ this._node = {
2329
+ type: "CapturingGroup",
2330
+ parent,
2331
+ start,
2332
+ end: start,
2333
+ raw: "",
2334
+ name,
2335
+ alternatives: [],
2336
+ references: [],
2337
+ };
2338
+ parent.elements.push(this._node);
2339
+ this._capturingGroups.push(this._node);
2340
+ }
2341
+ onCapturingGroupLeave(start, end) {
2342
+ const node = this._node;
2343
+ if (node.type !== "CapturingGroup" ||
2344
+ node.parent.type !== "Alternative") {
2345
+ throw new Error("UnknownError");
2346
+ }
2347
+ node.end = end;
2348
+ node.raw = this.source.slice(start, end);
2349
+ this._node = node.parent;
2350
+ }
2351
+ onQuantifier(start, end, min, max, greedy) {
2352
+ const parent = this._node;
2353
+ if (parent.type !== "Alternative") {
2354
+ throw new Error("UnknownError");
2355
+ }
2356
+ const element = parent.elements.pop();
2357
+ if (element == null ||
2358
+ element.type === "Quantifier" ||
2359
+ (element.type === "Assertion" && element.kind !== "lookahead")) {
2360
+ throw new Error("UnknownError");
2361
+ }
2362
+ const node = {
2363
+ type: "Quantifier",
2364
+ parent,
2365
+ start: element.start,
2366
+ end,
2367
+ raw: this.source.slice(element.start, end),
2368
+ min,
2369
+ max,
2370
+ greedy,
2371
+ element,
2372
+ };
2373
+ parent.elements.push(node);
2374
+ element.parent = node;
2375
+ }
2376
+ onLookaroundAssertionEnter(start, kind, negate) {
2377
+ const parent = this._node;
2378
+ if (parent.type !== "Alternative") {
2379
+ throw new Error("UnknownError");
2380
+ }
2381
+ const node = (this._node = {
2382
+ type: "Assertion",
2383
+ parent,
2384
+ start,
2385
+ end: start,
2386
+ raw: "",
2387
+ kind,
2388
+ negate,
2389
+ alternatives: [],
2390
+ });
2391
+ parent.elements.push(node);
2392
+ }
2393
+ onLookaroundAssertionLeave(start, end) {
2394
+ const node = this._node;
2395
+ if (node.type !== "Assertion" || node.parent.type !== "Alternative") {
2396
+ throw new Error("UnknownError");
2397
+ }
2398
+ node.end = end;
2399
+ node.raw = this.source.slice(start, end);
2400
+ this._node = node.parent;
2401
+ }
2402
+ onEdgeAssertion(start, end, kind) {
2403
+ const parent = this._node;
2404
+ if (parent.type !== "Alternative") {
2405
+ throw new Error("UnknownError");
2406
+ }
2407
+ parent.elements.push({
2408
+ type: "Assertion",
2409
+ parent,
2410
+ start,
2411
+ end,
2412
+ raw: this.source.slice(start, end),
2413
+ kind,
2414
+ });
2415
+ }
2416
+ onWordBoundaryAssertion(start, end, kind, negate) {
2417
+ const parent = this._node;
2418
+ if (parent.type !== "Alternative") {
2419
+ throw new Error("UnknownError");
2420
+ }
2421
+ parent.elements.push({
2422
+ type: "Assertion",
2423
+ parent,
2424
+ start,
2425
+ end,
2426
+ raw: this.source.slice(start, end),
2427
+ kind,
2428
+ negate,
2429
+ });
2430
+ }
2431
+ onAnyCharacterSet(start, end, kind) {
2432
+ const parent = this._node;
2433
+ if (parent.type !== "Alternative") {
2434
+ throw new Error("UnknownError");
2435
+ }
2436
+ parent.elements.push({
2437
+ type: "CharacterSet",
2438
+ parent,
2439
+ start,
2440
+ end,
2441
+ raw: this.source.slice(start, end),
2442
+ kind,
2443
+ });
2444
+ }
2445
+ onEscapeCharacterSet(start, end, kind, negate) {
2446
+ const parent = this._node;
2447
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
2448
+ throw new Error("UnknownError");
2449
+ }
2450
+ parent.elements.push({
2451
+ type: "CharacterSet",
2452
+ parent,
2453
+ start,
2454
+ end,
2455
+ raw: this.source.slice(start, end),
2456
+ kind,
2457
+ negate,
2458
+ });
2459
+ }
2460
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
2461
+ const parent = this._node;
2462
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
2463
+ throw new Error("UnknownError");
2464
+ }
2465
+ const base = {
2466
+ type: "CharacterSet",
2467
+ parent: null,
2468
+ start,
2469
+ end,
2470
+ raw: this.source.slice(start, end),
2471
+ kind,
2472
+ strings: null,
2473
+ key,
2474
+ };
2475
+ if (strings) {
2476
+ if ((parent.type === "CharacterClass" && !parent.unicodeSets) ||
2477
+ negate ||
2478
+ value !== null) {
2479
+ throw new Error("UnknownError");
2480
+ }
2481
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
2482
+ }
2483
+ else {
2484
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
2485
+ }
2486
+ }
2487
+ onCharacter(start, end, value) {
2488
+ const parent = this._node;
2489
+ if (parent.type !== "Alternative" &&
2490
+ parent.type !== "CharacterClass" &&
2491
+ parent.type !== "StringAlternative") {
2492
+ throw new Error("UnknownError");
2493
+ }
2494
+ parent.elements.push({
2495
+ type: "Character",
2496
+ parent,
2497
+ start,
2498
+ end,
2499
+ raw: this.source.slice(start, end),
2500
+ value,
2501
+ });
2502
+ }
2503
+ onBackreference(start, end, ref) {
2504
+ const parent = this._node;
2505
+ if (parent.type !== "Alternative") {
2506
+ throw new Error("UnknownError");
2507
+ }
2508
+ const node = {
2509
+ type: "Backreference",
2510
+ parent,
2511
+ start,
2512
+ end,
2513
+ raw: this.source.slice(start, end),
2514
+ ref,
2515
+ ambiguous: false,
2516
+ resolved: DUMMY_CAPTURING_GROUP,
2517
+ };
2518
+ parent.elements.push(node);
2519
+ this._backreferences.push(node);
2520
+ }
2521
+ onCharacterClassEnter(start, negate, unicodeSets) {
2522
+ const parent = this._node;
2523
+ const base = {
2524
+ type: "CharacterClass",
2525
+ parent,
2526
+ start,
2527
+ end: start,
2528
+ raw: "",
2529
+ unicodeSets,
2530
+ negate,
2531
+ elements: [],
2532
+ };
2533
+ if (parent.type === "Alternative") {
2534
+ const node = Object.assign(Object.assign({}, base), { parent });
2535
+ this._node = node;
2536
+ parent.elements.push(node);
2537
+ }
2538
+ else if (parent.type === "CharacterClass" &&
2539
+ parent.unicodeSets &&
2540
+ unicodeSets) {
2541
+ const node = Object.assign(Object.assign({}, base), { parent,
2542
+ unicodeSets });
2543
+ this._node = node;
2544
+ parent.elements.push(node);
2545
+ }
2546
+ else {
2547
+ throw new Error("UnknownError");
2548
+ }
2549
+ }
2550
+ onCharacterClassLeave(start, end) {
2551
+ const node = this._node;
2552
+ if (node.type !== "CharacterClass" ||
2553
+ (node.parent.type !== "Alternative" &&
2554
+ node.parent.type !== "CharacterClass")) {
2555
+ throw new Error("UnknownError");
2556
+ }
2557
+ const parent = node.parent;
2558
+ node.end = end;
2559
+ node.raw = this.source.slice(start, end);
2560
+ this._node = parent;
2561
+ const expression = this._expressionBufferMap.get(node);
2562
+ if (!expression) {
2563
+ return;
2564
+ }
2565
+ if (node.elements.length > 0) {
2566
+ throw new Error("UnknownError");
2567
+ }
2568
+ this._expressionBufferMap.delete(node);
2569
+ const newNode = {
2570
+ type: "ExpressionCharacterClass",
2571
+ parent,
2572
+ start: node.start,
2573
+ end: node.end,
2574
+ raw: node.raw,
2575
+ negate: node.negate,
2576
+ expression,
2577
+ };
2578
+ expression.parent = newNode;
2579
+ if (node !== parent.elements.pop()) {
2580
+ throw new Error("UnknownError");
2581
+ }
2582
+ parent.elements.push(newNode);
2583
+ }
2584
+ onCharacterClassRange(start, end) {
2585
+ const parent = this._node;
2586
+ if (parent.type !== "CharacterClass") {
2587
+ throw new Error("UnknownError");
2588
+ }
2589
+ const elements = parent.elements;
2590
+ const max = elements.pop();
2591
+ if (!max || max.type !== "Character") {
2592
+ throw new Error("UnknownError");
2593
+ }
2594
+ if (!parent.unicodeSets) {
2595
+ const hyphen = elements.pop();
2596
+ if (!hyphen ||
2597
+ hyphen.type !== "Character" ||
2598
+ hyphen.value !== HYPHEN_MINUS) {
2599
+ throw new Error("UnknownError");
2600
+ }
2601
+ }
2602
+ const min = elements.pop();
2603
+ if (!min || min.type !== "Character") {
2604
+ throw new Error("UnknownError");
2605
+ }
2606
+ const node = {
2607
+ type: "CharacterClassRange",
2608
+ parent,
2609
+ start,
2610
+ end,
2611
+ raw: this.source.slice(start, end),
2612
+ min,
2613
+ max,
2614
+ };
2615
+ min.parent = node;
2616
+ max.parent = node;
2617
+ elements.push(node);
2618
+ }
2619
+ onClassIntersection(start, end) {
2620
+ var _a;
2621
+ const parent = this._node;
2622
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
2623
+ throw new Error("UnknownError");
2624
+ }
2625
+ const right = parent.elements.pop();
2626
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
2627
+ if (!left ||
2628
+ !right ||
2629
+ left.type === "ClassSubtraction" ||
2630
+ (left.type !== "ClassIntersection" && !isClassSetOperand(left)) ||
2631
+ !isClassSetOperand(right)) {
2632
+ throw new Error("UnknownError");
2633
+ }
2634
+ const node = {
2635
+ type: "ClassIntersection",
2636
+ parent: parent,
2637
+ start,
2638
+ end,
2639
+ raw: this.source.slice(start, end),
2640
+ left,
2641
+ right,
2642
+ };
2643
+ left.parent = node;
2644
+ right.parent = node;
2645
+ this._expressionBufferMap.set(parent, node);
2646
+ }
2647
+ onClassSubtraction(start, end) {
2648
+ var _a;
2649
+ const parent = this._node;
2650
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
2651
+ throw new Error("UnknownError");
2652
+ }
2653
+ const right = parent.elements.pop();
2654
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
2655
+ if (!left ||
2656
+ !right ||
2657
+ left.type === "ClassIntersection" ||
2658
+ (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) ||
2659
+ !isClassSetOperand(right)) {
2660
+ throw new Error("UnknownError");
2661
+ }
2662
+ const node = {
2663
+ type: "ClassSubtraction",
2664
+ parent: parent,
2665
+ start,
2666
+ end,
2667
+ raw: this.source.slice(start, end),
2668
+ left,
2669
+ right,
2670
+ };
2671
+ left.parent = node;
2672
+ right.parent = node;
2673
+ this._expressionBufferMap.set(parent, node);
2674
+ }
2675
+ onClassStringDisjunctionEnter(start) {
2676
+ const parent = this._node;
2677
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
2678
+ throw new Error("UnknownError");
2679
+ }
2680
+ this._node = {
2681
+ type: "ClassStringDisjunction",
2682
+ parent,
2683
+ start,
2684
+ end: start,
2685
+ raw: "",
2686
+ alternatives: [],
2687
+ };
2688
+ parent.elements.push(this._node);
2689
+ }
2690
+ onClassStringDisjunctionLeave(start, end) {
2691
+ const node = this._node;
2692
+ if (node.type !== "ClassStringDisjunction" ||
2693
+ node.parent.type !== "CharacterClass") {
2694
+ throw new Error("UnknownError");
2695
+ }
2696
+ node.end = end;
2697
+ node.raw = this.source.slice(start, end);
2698
+ this._node = node.parent;
2699
+ }
2700
+ onStringAlternativeEnter(start) {
2701
+ const parent = this._node;
2702
+ if (parent.type !== "ClassStringDisjunction") {
2703
+ throw new Error("UnknownError");
2704
+ }
2705
+ this._node = {
2706
+ type: "StringAlternative",
2707
+ parent,
2708
+ start,
2709
+ end: start,
2710
+ raw: "",
2711
+ elements: [],
2712
+ };
2713
+ parent.alternatives.push(this._node);
2714
+ }
2715
+ onStringAlternativeLeave(start, end) {
2716
+ const node = this._node;
2717
+ if (node.type !== "StringAlternative") {
2718
+ throw new Error("UnknownError");
2719
+ }
2720
+ node.end = end;
2721
+ node.raw = this.source.slice(start, end);
2722
+ this._node = node.parent;
2723
+ }
2724
+ }
2725
+ class RegExpParser {
2726
+ constructor(options) {
2727
+ this._state = new RegExpParserState(options);
2728
+ this._validator = new RegExpValidator(this._state);
2729
+ }
2730
+ parseLiteral(source, start = 0, end = source.length) {
2731
+ this._state.source = source;
2732
+ this._validator.validateLiteral(source, start, end);
2733
+ const pattern = this._state.pattern;
2734
+ const flags = this._state.flags;
2735
+ const literal = {
2736
+ type: "RegExpLiteral",
2737
+ parent: null,
2738
+ start,
2739
+ end,
2740
+ raw: source,
2741
+ pattern,
2742
+ flags,
2743
+ };
2744
+ pattern.parent = literal;
2745
+ flags.parent = literal;
2746
+ return literal;
2747
+ }
2748
+ parseFlags(source, start = 0, end = source.length) {
2749
+ this._state.source = source;
2750
+ this._validator.validateFlags(source, start, end);
2751
+ return this._state.flags;
2752
+ }
2753
+ parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
2754
+ this._state.source = source;
2755
+ this._validator.validatePattern(source, start, end, uFlagOrFlags);
2756
+ return this._state.pattern;
2757
+ }
2758
+ }
2759
+
2760
+ class RegExpVisitor {
2761
+ constructor(handlers) {
2762
+ this._handlers = handlers;
2763
+ }
2764
+ visit(node) {
2765
+ switch (node.type) {
2766
+ case "Alternative":
2767
+ this.visitAlternative(node);
2768
+ break;
2769
+ case "Assertion":
2770
+ this.visitAssertion(node);
2771
+ break;
2772
+ case "Backreference":
2773
+ this.visitBackreference(node);
2774
+ break;
2775
+ case "CapturingGroup":
2776
+ this.visitCapturingGroup(node);
2777
+ break;
2778
+ case "Character":
2779
+ this.visitCharacter(node);
2780
+ break;
2781
+ case "CharacterClass":
2782
+ this.visitCharacterClass(node);
2783
+ break;
2784
+ case "CharacterClassRange":
2785
+ this.visitCharacterClassRange(node);
2786
+ break;
2787
+ case "CharacterSet":
2788
+ this.visitCharacterSet(node);
2789
+ break;
2790
+ case "ClassIntersection":
2791
+ this.visitClassIntersection(node);
2792
+ break;
2793
+ case "ClassStringDisjunction":
2794
+ this.visitClassStringDisjunction(node);
2795
+ break;
2796
+ case "ClassSubtraction":
2797
+ this.visitClassSubtraction(node);
2798
+ break;
2799
+ case "ExpressionCharacterClass":
2800
+ this.visitExpressionCharacterClass(node);
2801
+ break;
2802
+ case "Flags":
2803
+ this.visitFlags(node);
2804
+ break;
2805
+ case "Group":
2806
+ this.visitGroup(node);
2807
+ break;
2808
+ case "Modifiers":
2809
+ this.visitModifiers(node);
2810
+ break;
2811
+ case "ModifierFlags":
2812
+ this.visitModifierFlags(node);
2813
+ break;
2814
+ case "Pattern":
2815
+ this.visitPattern(node);
2816
+ break;
2817
+ case "Quantifier":
2818
+ this.visitQuantifier(node);
2819
+ break;
2820
+ case "RegExpLiteral":
2821
+ this.visitRegExpLiteral(node);
2822
+ break;
2823
+ case "StringAlternative":
2824
+ this.visitStringAlternative(node);
2825
+ break;
2826
+ default:
2827
+ throw new Error(`Unknown type: ${node.type}`);
2828
+ }
2829
+ }
2830
+ visitAlternative(node) {
2831
+ if (this._handlers.onAlternativeEnter) {
2832
+ this._handlers.onAlternativeEnter(node);
2833
+ }
2834
+ node.elements.forEach(this.visit, this);
2835
+ if (this._handlers.onAlternativeLeave) {
2836
+ this._handlers.onAlternativeLeave(node);
2837
+ }
2838
+ }
2839
+ visitAssertion(node) {
2840
+ if (this._handlers.onAssertionEnter) {
2841
+ this._handlers.onAssertionEnter(node);
2842
+ }
2843
+ if (node.kind === "lookahead" || node.kind === "lookbehind") {
2844
+ node.alternatives.forEach(this.visit, this);
2845
+ }
2846
+ if (this._handlers.onAssertionLeave) {
2847
+ this._handlers.onAssertionLeave(node);
2848
+ }
2849
+ }
2850
+ visitBackreference(node) {
2851
+ if (this._handlers.onBackreferenceEnter) {
2852
+ this._handlers.onBackreferenceEnter(node);
2853
+ }
2854
+ if (this._handlers.onBackreferenceLeave) {
2855
+ this._handlers.onBackreferenceLeave(node);
2856
+ }
2857
+ }
2858
+ visitCapturingGroup(node) {
2859
+ if (this._handlers.onCapturingGroupEnter) {
2860
+ this._handlers.onCapturingGroupEnter(node);
2861
+ }
2862
+ node.alternatives.forEach(this.visit, this);
2863
+ if (this._handlers.onCapturingGroupLeave) {
2864
+ this._handlers.onCapturingGroupLeave(node);
2865
+ }
2866
+ }
2867
+ visitCharacter(node) {
2868
+ if (this._handlers.onCharacterEnter) {
2869
+ this._handlers.onCharacterEnter(node);
2870
+ }
2871
+ if (this._handlers.onCharacterLeave) {
2872
+ this._handlers.onCharacterLeave(node);
2873
+ }
2874
+ }
2875
+ visitCharacterClass(node) {
2876
+ if (this._handlers.onCharacterClassEnter) {
2877
+ this._handlers.onCharacterClassEnter(node);
2878
+ }
2879
+ node.elements.forEach(this.visit, this);
2880
+ if (this._handlers.onCharacterClassLeave) {
2881
+ this._handlers.onCharacterClassLeave(node);
2882
+ }
2883
+ }
2884
+ visitCharacterClassRange(node) {
2885
+ if (this._handlers.onCharacterClassRangeEnter) {
2886
+ this._handlers.onCharacterClassRangeEnter(node);
2887
+ }
2888
+ this.visitCharacter(node.min);
2889
+ this.visitCharacter(node.max);
2890
+ if (this._handlers.onCharacterClassRangeLeave) {
2891
+ this._handlers.onCharacterClassRangeLeave(node);
2892
+ }
2893
+ }
2894
+ visitCharacterSet(node) {
2895
+ if (this._handlers.onCharacterSetEnter) {
2896
+ this._handlers.onCharacterSetEnter(node);
2897
+ }
2898
+ if (this._handlers.onCharacterSetLeave) {
2899
+ this._handlers.onCharacterSetLeave(node);
2900
+ }
2901
+ }
2902
+ visitClassIntersection(node) {
2903
+ if (this._handlers.onClassIntersectionEnter) {
2904
+ this._handlers.onClassIntersectionEnter(node);
2905
+ }
2906
+ this.visit(node.left);
2907
+ this.visit(node.right);
2908
+ if (this._handlers.onClassIntersectionLeave) {
2909
+ this._handlers.onClassIntersectionLeave(node);
2910
+ }
2911
+ }
2912
+ visitClassStringDisjunction(node) {
2913
+ if (this._handlers.onClassStringDisjunctionEnter) {
2914
+ this._handlers.onClassStringDisjunctionEnter(node);
2915
+ }
2916
+ node.alternatives.forEach(this.visit, this);
2917
+ if (this._handlers.onClassStringDisjunctionLeave) {
2918
+ this._handlers.onClassStringDisjunctionLeave(node);
2919
+ }
2920
+ }
2921
+ visitClassSubtraction(node) {
2922
+ if (this._handlers.onClassSubtractionEnter) {
2923
+ this._handlers.onClassSubtractionEnter(node);
2924
+ }
2925
+ this.visit(node.left);
2926
+ this.visit(node.right);
2927
+ if (this._handlers.onClassSubtractionLeave) {
2928
+ this._handlers.onClassSubtractionLeave(node);
2929
+ }
2930
+ }
2931
+ visitExpressionCharacterClass(node) {
2932
+ if (this._handlers.onExpressionCharacterClassEnter) {
2933
+ this._handlers.onExpressionCharacterClassEnter(node);
2934
+ }
2935
+ this.visit(node.expression);
2936
+ if (this._handlers.onExpressionCharacterClassLeave) {
2937
+ this._handlers.onExpressionCharacterClassLeave(node);
2938
+ }
2939
+ }
2940
+ visitFlags(node) {
2941
+ if (this._handlers.onFlagsEnter) {
2942
+ this._handlers.onFlagsEnter(node);
2943
+ }
2944
+ if (this._handlers.onFlagsLeave) {
2945
+ this._handlers.onFlagsLeave(node);
2946
+ }
2947
+ }
2948
+ visitGroup(node) {
2949
+ if (this._handlers.onGroupEnter) {
2950
+ this._handlers.onGroupEnter(node);
2951
+ }
2952
+ if (node.modifiers) {
2953
+ this.visit(node.modifiers);
2954
+ }
2955
+ node.alternatives.forEach(this.visit, this);
2956
+ if (this._handlers.onGroupLeave) {
2957
+ this._handlers.onGroupLeave(node);
2958
+ }
2959
+ }
2960
+ visitModifiers(node) {
2961
+ if (this._handlers.onModifiersEnter) {
2962
+ this._handlers.onModifiersEnter(node);
2963
+ }
2964
+ if (node.add) {
2965
+ this.visit(node.add);
2966
+ }
2967
+ if (node.remove) {
2968
+ this.visit(node.remove);
2969
+ }
2970
+ if (this._handlers.onModifiersLeave) {
2971
+ this._handlers.onModifiersLeave(node);
2972
+ }
2973
+ }
2974
+ visitModifierFlags(node) {
2975
+ if (this._handlers.onModifierFlagsEnter) {
2976
+ this._handlers.onModifierFlagsEnter(node);
2977
+ }
2978
+ if (this._handlers.onModifierFlagsLeave) {
2979
+ this._handlers.onModifierFlagsLeave(node);
2980
+ }
2981
+ }
2982
+ visitPattern(node) {
2983
+ if (this._handlers.onPatternEnter) {
2984
+ this._handlers.onPatternEnter(node);
2985
+ }
2986
+ node.alternatives.forEach(this.visit, this);
2987
+ if (this._handlers.onPatternLeave) {
2988
+ this._handlers.onPatternLeave(node);
2989
+ }
2990
+ }
2991
+ visitQuantifier(node) {
2992
+ if (this._handlers.onQuantifierEnter) {
2993
+ this._handlers.onQuantifierEnter(node);
2994
+ }
2995
+ this.visit(node.element);
2996
+ if (this._handlers.onQuantifierLeave) {
2997
+ this._handlers.onQuantifierLeave(node);
2998
+ }
2999
+ }
3000
+ visitRegExpLiteral(node) {
3001
+ if (this._handlers.onRegExpLiteralEnter) {
3002
+ this._handlers.onRegExpLiteralEnter(node);
3003
+ }
3004
+ this.visitPattern(node.pattern);
3005
+ this.visitFlags(node.flags);
3006
+ if (this._handlers.onRegExpLiteralLeave) {
3007
+ this._handlers.onRegExpLiteralLeave(node);
3008
+ }
3009
+ }
3010
+ visitStringAlternative(node) {
3011
+ if (this._handlers.onStringAlternativeEnter) {
3012
+ this._handlers.onStringAlternativeEnter(node);
3013
+ }
3014
+ node.elements.forEach(this.visit, this);
3015
+ if (this._handlers.onStringAlternativeLeave) {
3016
+ this._handlers.onStringAlternativeLeave(node);
3017
+ }
3018
+ }
3019
+ }
3020
+
3021
+ function parseRegExpLiteral(source, options) {
3022
+ return new RegExpParser(options).parseLiteral(String(source));
3023
+ }
3024
+ function validateRegExpLiteral(source, options) {
3025
+ new RegExpValidator(options).validateLiteral(source);
3026
+ }
3027
+ function visitRegExpAST(node, handlers) {
3028
+ new RegExpVisitor(handlers).visit(node);
3029
+ }
3030
+
3031
+ export { ast as AST, RegExpParser, RegExpSyntaxError, RegExpValidator, parseRegExpLiteral, validateRegExpLiteral, visitRegExpAST };
3032
+ //# sourceMappingURL=index.mjs.map