reactive-md 0.8.0 → 0.9.1

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 (441) hide show
  1. package/CHANGELOG-ch.md +54 -4
  2. package/CHANGELOG.md +55 -4
  3. package/CONTRIBUTING-ch.md +13 -2
  4. package/CONTRIBUTING.md +13 -2
  5. package/README-ch.md +132 -23
  6. package/README-en.md +130 -21
  7. package/README.md +128 -21
  8. package/SECURITY-ch.md +3 -3
  9. package/SECURITY.md +3 -3
  10. package/THIRD_PARTY_NOTICES.md +111 -1
  11. package/cli/args.mjs +51 -1
  12. package/cli/assets.mjs +6 -1
  13. package/cli/build.mjs +125 -9
  14. package/cli/fs-utils.mjs +3 -3
  15. package/cli/help.mjs +12 -5
  16. package/cli/init.mjs +1 -1
  17. package/cli/package.mjs +1 -0
  18. package/dist-library/LocalDocumentView-sthUP0ct.js +109 -0
  19. package/dist-library/LocalDocumentViewCore-GiWV3bey.js +9829 -0
  20. package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +275 -0
  21. package/dist-library/{authoring-BsfSwQRm.js → authoring-Dsune4Hy.js} +240 -218
  22. package/dist-library/compile-wUv8KEge.js +1249 -0
  23. package/dist-library/{compiler-core-kPiH-gOV.js → compiler-core-As_m-MNm.js} +5372 -5559
  24. package/dist-library/compiler-eOfcinZs.js +62 -0
  25. package/dist-library/component-state-BoLCGee4.js +801 -0
  26. package/dist-library/{component-state-D_cw_EHe.js → component-state-C52ZFJGl.js} +2 -2
  27. package/dist-library/{registry-B9Jc3FVe.js → config-BadfhjdP.js} +374 -457
  28. package/dist-library/{config-validation-DXTynAw7.js → config-validation-F47AcE6o.js} +549 -751
  29. package/dist-library/controls-CcT6n7k_.js +6740 -0
  30. package/dist-library/coordinate-CWS9p5q_.js +293 -0
  31. package/dist-library/data-table-Bgccxd7h.js +296 -0
  32. package/dist-library/{default-components-Z_YMio5P.js → default-components-BwQf0oP-.js} +344 -334
  33. package/dist-library/{math-display-BJz4gbFc.js → display-B-VhqVND.js} +1299 -1299
  34. package/dist-library/export-BqVmTXm8.js +369 -0
  35. package/dist-library/gallery-CY6mTx8i.js +360 -0
  36. package/dist-library/html-CNT4KD-2.js +757 -0
  37. package/dist-library/{math-sample-BGEW49zY.js → incremental-Dv0FSp_U.js} +476 -394
  38. package/dist-library/latex-1w7aQgD5.js +928 -0
  39. package/dist-library/layout-C0YlEPGr.js +562 -0
  40. package/dist-library/mount-preset-KxvtKgJb.js +13 -0
  41. package/dist-library/options-1aDLK7JY.js +121 -0
  42. package/dist-library/{react-ByOHunUW.js → package-core-WFK1RhAZ.js} +49 -55
  43. package/dist-library/{parser-standard-DlCk7sLo.js → parser-standard-Yuf3A_VI.js} +6605 -7097
  44. package/dist-library/plugin-packs-B1XPWcFs.js +18 -0
  45. package/dist-library/{identity-MYJXKSkB.js → preset-core-CKc5YXSM.js} +31 -31
  46. package/dist-library/{props-DGlBk0e5.js → props-sJ8vk0cr.js} +1 -1
  47. package/dist-library/react-BbyAgeXc.js +6070 -0
  48. package/dist-library/react-D5iGiUdL.js +7 -0
  49. package/dist-library/reactive-md-authoring.js +222 -223
  50. package/dist-library/reactive-md-build.js +126 -72
  51. package/dist-library/reactive-md-compiler-standard.js +12 -10
  52. package/dist-library/reactive-md-compiler.js +3 -3
  53. package/dist-library/reactive-md-default-packs.js +2 -2
  54. package/dist-library/reactive-md-default-preset.js +4 -4
  55. package/dist-library/reactive-md-export-assets.js +57 -0
  56. package/dist-library/reactive-md-export.js +5 -111
  57. package/dist-library/reactive-md-minimal-preset.js +24 -0
  58. package/dist-library/reactive-md-minimal-react-preset.js +26 -0
  59. package/dist-library/reactive-md-minimal-styles.js +80 -0
  60. package/dist-library/reactive-md-minimal.css +2 -0
  61. package/dist-library/reactive-md-pdf.js +7582 -0
  62. package/dist-library/reactive-md-plugin-chart.js +13 -0
  63. package/dist-library/reactive-md-plugin-data.js +17 -0
  64. package/dist-library/reactive-md-plugin-diagram.js +18 -0
  65. package/dist-library/reactive-md-plugin-forms.js +18 -0
  66. package/dist-library/reactive-md-plugin-gallery.js +12 -0
  67. package/dist-library/reactive-md-plugin-navigation.js +15 -0
  68. package/dist-library/reactive-md-plugin-network.js +222 -0
  69. package/dist-library/reactive-md-plugin-plot.js +24 -0
  70. package/dist-library/reactive-md-print.css +5 -0
  71. package/dist-library/reactive-md-react-minimal.js +28 -0
  72. package/dist-library/reactive-md-react-server.js +34 -32
  73. package/dist-library/reactive-md-react-unstyled.js +14 -9
  74. package/dist-library/reactive-md-react.js +14 -9
  75. package/dist-library/reactive-md-runtime-browser.js +847 -15
  76. package/dist-library/reactive-md-runtime.js +3 -3
  77. package/dist-library/reactive-md-sdk.js +8 -6
  78. package/dist-library/reactive-md-standalone-configured.js +16 -0
  79. package/dist-library/reactive-md-standalone-host.js +9 -438
  80. package/dist-library/reactive-md-testing-browser.js +5 -4
  81. package/dist-library/reactive-md-testing-react.js +46 -44
  82. package/dist-library/reactive-md-testing.js +45 -44
  83. package/dist-library/reactive-md-vite.js +135 -37
  84. package/dist-library/reactive-md.css +1 -1
  85. package/dist-library/reactive-md.js +590 -498
  86. package/dist-library/registry-B9NGct4d.js +20 -0
  87. package/dist-library/registry-core-Bbad9Bm2.js +479 -0
  88. package/dist-library/{resources-BGt8mpDA.js → resources-D2GDQS0p.js} +45 -45
  89. package/dist-library/{runtime-Dkq7ldyg.js → runtime-B2fxeveq.js} +1 -1
  90. package/dist-library/runtime-kcA7bG7G.js +1282 -0
  91. package/dist-library/sample-bP4zHB3L.js +289 -0
  92. package/dist-library/{schema-ZFufO8V0.js → schema-BufhKUSM.js} +12 -11
  93. package/dist-library/sdk-core-BoJT1SIt.js +1166 -0
  94. package/dist-library/session-core-nmJHuR9c.js +452 -0
  95. package/dist-library/{shareable-DDVL4Fi9.js → shareable-DpbE-59H.js} +250 -283
  96. package/dist-library/tooltip-layer-HDLrSWs0.js +28 -0
  97. package/dist-library/types/authoring/catalog.d.ts +2 -3
  98. package/dist-library/types/authoring/editor-i18n.d.ts +1 -1
  99. package/dist-library/types/authoring/index.d.ts +1 -1
  100. package/dist-library/types/authoring/insert.d.ts +1 -1
  101. package/dist-library/types/authoring/templates.d.ts +2 -2
  102. package/dist-library/types/build/diagnostics.d.ts +1 -1
  103. package/dist-library/types/build/host.d.ts +1 -1
  104. package/dist-library/types/build/index.d.ts +1 -1
  105. package/dist-library/types/build/notices.d.ts +1 -1
  106. package/dist-library/types/build/resources.d.ts +1 -1
  107. package/dist-library/types/build/vite.d.ts +1 -1
  108. package/dist-library/types/compiler/index.d.ts +2 -2
  109. package/dist-library/types/compiler/result.d.ts +1 -1
  110. package/dist-library/types/compiler/standard.d.ts +2 -2
  111. package/dist-library/types/compiler/types.d.ts +1 -1
  112. package/dist-library/types/components/{controls.d.ts → controls/controls.d.ts} +2 -3
  113. package/dist-library/types/components/{numeric-sliders.d.ts → controls/numeric-sliders.d.ts} +1 -1
  114. package/dist-library/types/components/{gallery.d.ts → gallery/gallery.d.ts} +1 -1
  115. package/dist-library/types/components/{layout.d.ts → layout/layout.d.ts} +1 -1
  116. package/dist-library/types/components/minimal-preset.d.ts +2 -0
  117. package/dist-library/types/components/mount-preset.d.ts +4 -0
  118. package/dist-library/types/components/network/submit-button.d.ts +10 -0
  119. package/dist-library/types/components/plot/coordinate.d.ts +2 -0
  120. package/dist-library/types/components/plugins/chart.d.ts +2 -0
  121. package/dist-library/types/components/plugins/data.d.ts +2 -0
  122. package/dist-library/types/components/plugins/diagram.d.ts +2 -0
  123. package/dist-library/types/components/plugins/forms.d.ts +2 -0
  124. package/dist-library/types/components/plugins/gallery.d.ts +2 -0
  125. package/dist-library/types/components/plugins/navigation.d.ts +2 -0
  126. package/dist-library/types/components/plugins/network.d.ts +2 -0
  127. package/dist-library/types/components/plugins/plot.d.ts +2 -0
  128. package/dist-library/types/components/shared/visual-frame.d.ts +12 -0
  129. package/dist-library/types/components/{visuals.d.ts → shared/visuals.d.ts} +1 -7
  130. package/dist-library/types/components/{data-table.d.ts → table/data-table.d.ts} +2 -2
  131. package/dist-library/types/export/component-state.d.ts +1 -1
  132. package/dist-library/types/export/index.d.ts +2 -1
  133. package/dist-library/types/export/print-document.d.ts +18 -0
  134. package/dist-library/types/export/render-markup.d.ts +23 -0
  135. package/dist-library/types/export/requirements.d.ts +1 -1
  136. package/dist-library/types/export/resources.d.ts +1 -1
  137. package/dist-library/types/export/restoration.d.ts +1 -1
  138. package/dist-library/types/export-assets/index.d.ts +25 -0
  139. package/dist-library/types/local/compilation/compiler-attributes.d.ts +8 -0
  140. package/dist-library/types/local/compilation/compiler-bindings.d.ts +19 -0
  141. package/dist-library/types/local/compilation/compiler-capabilities.d.ts +3 -0
  142. package/dist-library/types/local/compilation/compiler-core.d.ts +11 -3
  143. package/dist-library/types/local/compilation/compiler-declarations.d.ts +32 -0
  144. package/dist-library/types/local/compilation/compiler-expressions.d.ts +32 -0
  145. package/dist-library/types/local/compilation/compiler-services.d.ts +62 -16
  146. package/dist-library/types/local/compilation/compiler-structure.d.ts +38 -3
  147. package/dist-library/types/local/compilation/compiler-tables.d.ts +30 -0
  148. package/dist-library/types/local/compilation/compiler-validation.d.ts +15 -0
  149. package/dist-library/types/local/compilation/compiler-values.d.ts +39 -1
  150. package/dist-library/types/local/compilation/compiler.d.ts +7 -14
  151. package/dist-library/types/local/compilation/dependencies.d.ts +1 -1
  152. package/dist-library/types/local/compilation/session/incremental.d.ts +75 -0
  153. package/dist-library/types/local/{session → compilation/session}/row-reuse.d.ts +1 -1
  154. package/dist-library/types/local/{session/compiler-cache.d.ts → compilation/session/semantic-cache.d.ts} +5 -19
  155. package/dist-library/types/local/compilation/streaming.d.ts +27 -0
  156. package/dist-library/types/local/configuration/capability-policy.d.ts +3 -0
  157. package/dist-library/types/local/{compilation → configuration}/component-kernel.d.ts +3 -79
  158. package/dist-library/types/local/configuration/diagnostic-messages.d.ts +1104 -1056
  159. package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +731 -0
  160. package/dist-library/types/local/configuration/diagnostics.d.ts +1 -1
  161. package/dist-library/types/local/configuration/kernel-value-rules.d.ts +66 -0
  162. package/dist-library/types/local/configuration/official-leaf-syntax.d.ts +24 -0
  163. package/dist-library/types/local/configuration/options-core.d.ts +5 -4
  164. package/dist-library/types/local/configuration/options.d.ts +2 -1
  165. package/dist-library/types/local/configuration/portable-options.d.ts +1 -1
  166. package/dist-library/types/local/configuration/schema-core.d.ts +1 -1
  167. package/dist-library/types/local/configuration/schema.d.ts +1 -1
  168. package/dist-library/types/local/css/author-css.d.ts +66 -0
  169. package/dist-library/types/local/evaluation/computations.d.ts +2 -2
  170. package/dist-library/types/local/evaluation/expression/compile.d.ts +30 -0
  171. package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -0
  172. package/dist-library/types/local/evaluation/expression/inference.d.ts +4 -0
  173. package/dist-library/types/local/evaluation/expression/syntax.d.ts +72 -0
  174. package/dist-library/types/local/evaluation/expression/values.d.ts +56 -0
  175. package/dist-library/types/local/evaluation/{math-display.d.ts → math/display.d.ts} +2 -2
  176. package/dist-library/types/local/evaluation/math/evaluation.d.ts +10 -0
  177. package/dist-library/types/local/evaluation/{math.d.ts → math/latex.d.ts} +58 -17
  178. package/dist-library/types/local/evaluation/{math-sample.d.ts → math/sample.d.ts} +4 -2
  179. package/dist-library/types/local/evaluation/math/syntax.d.ts +72 -0
  180. package/dist-library/types/local/evaluation/validation.d.ts +1 -1
  181. package/dist-library/types/local/html/extended-fragment.d.ts +41 -0
  182. package/dist-library/types/local/html/html-details.d.ts +1 -1
  183. package/dist-library/types/local/html/html-entities.d.ts +11 -2
  184. package/dist-library/types/local/html/html-recovery.d.ts +1 -1
  185. package/dist-library/types/local/html/html-table.d.ts +1 -1
  186. package/dist-library/types/local/html/html.d.ts +40 -4
  187. package/dist-library/types/local/index.d.ts +14 -13
  188. package/dist-library/types/local/parsing/author-markdown.d.ts +11 -0
  189. package/dist-library/types/local/{markdown → parsing}/fast-markdown.d.ts +1 -1
  190. package/dist-library/types/local/{markdown → parsing}/footnotes.d.ts +1 -1
  191. package/dist-library/types/local/{markdown → parsing}/heading-anchors.d.ts +1 -1
  192. package/dist-library/types/local/parsing/html-attributes.d.ts +14 -0
  193. package/dist-library/types/local/parsing/parse-budget.d.ts +1 -1
  194. package/dist-library/types/local/{session → parsing}/parse-session.d.ts +5 -5
  195. package/dist-library/types/local/parsing/parser-capabilities.d.ts +7 -2
  196. package/dist-library/types/local/parsing/parser-convert.d.ts +26 -0
  197. package/dist-library/types/local/parsing/parser-core.d.ts +10 -4
  198. package/dist-library/types/local/parsing/parser-internals.d.ts +54 -0
  199. package/dist-library/types/local/parsing/parser-region.d.ts +46 -0
  200. package/dist-library/types/local/parsing/parser-standard.d.ts +3 -0
  201. package/dist-library/types/local/parsing/parser-tags.d.ts +108 -0
  202. package/dist-library/types/local/parsing/parser.d.ts +3 -3
  203. package/dist-library/types/local/{markdown → parsing}/plain-paragraphs.d.ts +1 -1
  204. package/dist-library/types/local/parsing/rmd-recovery.d.ts +1 -1
  205. package/dist-library/types/local/parsing/theme-declaration.d.ts +22 -0
  206. package/dist-library/types/local/rendering/document/ExtendedHtmlFragment.d.ts +14 -0
  207. package/dist-library/types/local/rendering/document/LocalDocumentView.d.ts +5 -0
  208. package/dist-library/types/local/rendering/{LocalDocumentView.d.ts → document/LocalDocumentViewCore.d.ts} +48 -9
  209. package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
  210. package/dist-library/types/local/rendering/document/render-nodes.d.ts +24 -0
  211. package/dist-library/types/local/rendering/document/use-author-script.d.ts +3 -0
  212. package/dist-library/types/local/rendering/document/use-color-scheme.d.ts +10 -0
  213. package/dist-library/types/local/rendering/document/validation-state.d.ts +31 -0
  214. package/dist-library/types/local/rendering/document/view-render-context.d.ts +146 -0
  215. package/dist-library/types/local/rendering/{view-revision.d.ts → document/view-revision.d.ts} +31 -4
  216. package/dist-library/types/local/rendering/render-types.d.ts +1 -1
  217. package/dist-library/types/local/{widgets/table-surface.d.ts → rendering/table/data-table.d.ts} +3 -0
  218. package/dist-library/types/local/rendering/table/table-numeric-columns.d.ts +7 -0
  219. package/dist-library/types/local/runtime/author-script-protocol.d.ts +59 -0
  220. package/dist-library/types/local/runtime/retention.d.ts +1 -1
  221. package/dist-library/types/local/runtime/runtime-document.d.ts +71 -0
  222. package/dist-library/types/local/runtime/runtime-migration.d.ts +19 -0
  223. package/dist-library/types/local/runtime/runtime-values.d.ts +39 -0
  224. package/dist-library/types/local/runtime/runtime.d.ts +4 -2
  225. package/dist-library/types/local/runtime/state.d.ts +1 -1
  226. package/dist-library/types/local/source/authoring-syntax.d.ts +48 -0
  227. package/dist-library/types/local/source/authoring.d.ts +1 -1
  228. package/dist-library/types/local/source/source-context.d.ts +23 -0
  229. package/dist-library/types/local/source/source-migration.d.ts +2 -2
  230. package/dist-library/types/local/transport/compile-patch.d.ts +1 -1
  231. package/dist-library/types/local/transport/flat-compiled-data.d.ts +1 -1
  232. package/dist-library/types/local/transport/shared-data.d.ts +1 -1
  233. package/dist-library/types/local/transport/worker-handler.d.ts +30 -0
  234. package/dist-library/types/local/transport/worker-job.d.ts +28 -0
  235. package/dist-library/types/local/transport/worker.d.ts +32 -46
  236. package/dist-library/types/local/{contracts/types.d.ts → types.d.ts} +78 -21
  237. package/dist-library/types/pdf.d.ts +22 -0
  238. package/dist-library/types/presets/identity.d.ts +1 -0
  239. package/dist-library/types/presets/minimal.d.ts +2 -0
  240. package/dist-library/types/presets/plugin-packs.d.ts +1 -0
  241. package/dist-library/types/react/component-api.d.ts +20 -4
  242. package/dist-library/types/react/component-primitives.d.ts +10 -10
  243. package/dist-library/types/react/component-utils.d.ts +9 -1
  244. package/dist-library/types/react/index.d.ts +6 -5
  245. package/dist-library/types/{local/theme/i18n.d.ts → react/localization.d.ts} +2 -2
  246. package/dist-library/types/react/minimal.d.ts +13 -0
  247. package/dist-library/types/react/package-core.d.ts +67 -0
  248. package/dist-library/types/react/package.d.ts +3 -67
  249. package/dist-library/types/react/runtime/common.d.ts +1 -1
  250. package/dist-library/types/react/sdk-core.d.ts +115 -0
  251. package/dist-library/types/react/sdk.d.ts +4 -110
  252. package/dist-library/types/react/server.d.ts +2 -2
  253. package/dist-library/types/react/use-draft-field.d.ts +5 -1
  254. package/dist-library/types/runtime-services/browser/duplex.d.ts +163 -0
  255. package/dist-library/types/runtime-services/browser/http-sse.d.ts +117 -0
  256. package/dist-library/types/runtime-services/browser/index.d.ts +2 -1
  257. package/dist-library/types/runtime-services/component-state.d.ts +1 -1
  258. package/dist-library/types/runtime-services/index.d.ts +2 -0
  259. package/dist-library/types/runtime-services/network.d.ts +86 -0
  260. package/dist-library/types/runtime-services/runtime.d.ts +1 -1
  261. package/dist-library/types/sdk/config.d.ts +1 -1
  262. package/dist-library/types/sdk/index.d.ts +1 -0
  263. package/dist-library/types/sdk/props.d.ts +1 -1
  264. package/dist-library/types/sdk/registry-core.d.ts +1 -1
  265. package/dist-library/types/sdk/theme.d.ts +5 -4
  266. package/dist-library/types/sdk/types.d.ts +2 -2
  267. package/dist-library/types/shareable.d.ts +6 -5
  268. package/dist-library/types/standalone/diagnostics.d.ts +1 -1
  269. package/dist-library/types/standalone/host.d.ts +5 -0
  270. package/dist-library/types/standalone/payload.d.ts +1 -1
  271. package/dist-library/types/standalone/prepare.d.ts +2 -2
  272. package/dist-library/types/standalone/session-core.d.ts +68 -0
  273. package/dist-library/types/standalone/session.d.ts +6 -68
  274. package/dist-library/types/themes/contract.d.ts +7 -0
  275. package/dist-library/types/{local/theme/theme.d.ts → themes/document-theme.d.ts} +4 -3
  276. package/dist-library/types/vite/client.d.ts +19 -0
  277. package/dist-library/types/vite/index.d.ts +18 -3
  278. package/dist-library/types/vite/registration.d.ts +2 -2
  279. package/dist-library/{types-BFCrMrg0.js → types-BeNtPqdY.js} +1 -1
  280. package/dist-library/validation-BEBA_HvS.js +1121 -0
  281. package/dist-library/visual-frame-CyV1FXzs.js +48 -0
  282. package/dist-library/visuals-B5KSafVk.js +3 -0
  283. package/dist-library/visuals-BZbZYA7w.js +72572 -0
  284. package/dist-standalone/reactive-md-standalone.css +1 -1
  285. package/dist-standalone/reactive-md-standalone.js +146 -137
  286. package/docs/README-ch.md +16 -11
  287. package/docs/README.md +16 -11
  288. package/docs/compatibility/compatibility-ch.md +8 -8
  289. package/docs/compatibility/compatibility-en.md +8 -8
  290. package/docs/compatibility/source-versioning-ch.md +1 -1
  291. package/docs/compatibility/source-versioning-en.md +1 -1
  292. package/docs/development/component-development-ch.md +2 -2
  293. package/docs/development/component-development-en.md +2 -2
  294. package/docs/development/component-development-reference-ch.md +4 -4
  295. package/docs/development/component-development-reference-en.md +4 -4
  296. package/docs/development/component-protocol-ch.md +14 -14
  297. package/docs/development/component-protocol-en.md +14 -14
  298. package/docs/development/extension-tutorial-ch.md +308 -0
  299. package/docs/development/extension-tutorial-en.md +308 -0
  300. package/docs/development/local-module-layout-ch.md +10 -50
  301. package/docs/development/local-module-layout-en.md +9 -49
  302. package/docs/development/performance-overview-ch.md +174 -154
  303. package/docs/development/performance-overview-en.md +174 -154
  304. package/docs/guides/local-guide-ch.md +2 -2
  305. package/docs/guides/local-guide-en.md +2 -2
  306. package/docs/integration/author-tools-ch.md +2 -2
  307. package/docs/integration/author-tools-en.md +2 -2
  308. package/docs/integration/compiler-ch.md +4 -2
  309. package/docs/integration/compiler-en.md +4 -2
  310. package/docs/integration/directory-discovery-ch.md +5 -1
  311. package/docs/integration/directory-discovery-en.md +5 -1
  312. package/docs/integration/editor-ch.md +35 -5
  313. package/docs/integration/editor-en.md +42 -4
  314. package/docs/integration/extension-sdk-ch.md +6 -4
  315. package/docs/integration/extension-sdk-en.md +6 -4
  316. package/docs/integration/local-integration-ch.md +201 -19
  317. package/docs/integration/local-integration-en.md +194 -18
  318. package/docs/integration/network-host-ch.md +75 -0
  319. package/docs/integration/network-host-en.md +75 -0
  320. package/docs/integration/shareable-export-ch.md +58 -16
  321. package/docs/integration/shareable-export-en.md +57 -15
  322. package/docs/reference/html-compatibility-ch.md +20 -67
  323. package/docs/reference/html-compatibility-en.md +19 -64
  324. package/docs/reference/local-interaction-syntax-ch.md +199 -26
  325. package/docs/reference/local-interaction-syntax-en.md +194 -27
  326. package/docs/reference/public-api-ch.md +416 -0
  327. package/docs/reference/public-api-en.md +416 -0
  328. package/docs/reference/theme-protocol-ch.md +27 -8
  329. package/docs/reference/theme-protocol-en.md +46 -8
  330. package/docs/releases/release-0.4.0-ch.md +2 -2
  331. package/docs/releases/release-0.4.0-en.md +2 -2
  332. package/docs/releases/release-0.8.0-ch.md +19 -3
  333. package/docs/releases/release-0.8.0-en.md +19 -3
  334. package/docs/releases/release-0.9.0-ch.md +44 -0
  335. package/docs/releases/release-0.9.0-en.md +44 -0
  336. package/docs/releases/release-0.9.1-ch.md +29 -0
  337. package/docs/releases/release-0.9.1-en.md +29 -0
  338. package/examples/component-package/README-ch.md +1 -1
  339. package/examples/component-package/README.md +1 -1
  340. package/examples/conformance/README-ch.md +3 -3
  341. package/examples/conformance/README.md +3 -3
  342. package/examples/game-2048-package/README-ch.md +3 -9
  343. package/examples/game-2048-package/README.md +8 -12
  344. package/examples/integration/README-ch.md +21 -2
  345. package/examples/integration/README.md +21 -2
  346. package/examples/integration/extension-sdk/README-ch.md +1 -1
  347. package/examples/integration/extension-sdk/README.md +1 -1
  348. package/examples/integration/streaming/index.html +48 -0
  349. package/examples/integration/streaming/main.js +175 -0
  350. package/examples/integration/streaming/package.json +13 -0
  351. package/examples/integration/streaming/worker.js +3 -0
  352. package/examples/local/README-ch.md +3 -3
  353. package/examples/local/README.md +2 -2
  354. package/examples/local/minimal-budget.reactive.md +48 -0
  355. package/examples/minimal-extension/README-ch.md +78 -0
  356. package/examples/minimal-extension/README.md +78 -0
  357. package/examples/minimal-extension/index.html +15 -0
  358. package/examples/minimal-extension/package.json +26 -0
  359. package/examples/minimal-extension/sample/document.reactive.md +10 -0
  360. package/examples/minimal-extension/scripts/build.mjs +32 -0
  361. package/examples/minimal-extension/scripts/export.mjs +72 -0
  362. package/examples/minimal-extension/scripts/test-node.mjs +75 -0
  363. package/examples/minimal-extension/src/extension.tsx +90 -0
  364. package/examples/minimal-extension/src/preview.tsx +12 -0
  365. package/examples/minimal-extension/src/source.ts +4 -0
  366. package/examples/minimal-extension/tsconfig.json +14 -0
  367. package/examples/network-survey/README.md +200 -0
  368. package/examples/network-survey/index.html +49 -0
  369. package/examples/network-survey/package.json +26 -0
  370. package/examples/network-survey/sample/document.reactive.md +51 -0
  371. package/examples/network-survey/src/components.tsx +325 -0
  372. package/examples/network-survey/src/host.ts +316 -0
  373. package/examples/network-survey/src/main.tsx +91 -0
  374. package/examples/network-survey/src/source.ts +1 -0
  375. package/examples/network-survey/tsconfig.json +26 -0
  376. package/examples/network-survey/vite.config.ts +227 -0
  377. package/examples/sci-fi-theme/README-ch.md +4 -2
  378. package/examples/sci-fi-theme/README.md +4 -2
  379. package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -0
  380. package/examples/sci-fi-theme/demo/demo.css +129 -23
  381. package/examples/sci-fi-theme/demo/document.reactive.md +27 -6
  382. package/examples/sci-fi-theme/demo/main.tsx +45 -10
  383. package/examples/sci-fi-theme/docs/design-system-ch.md +6 -6
  384. package/examples/sci-fi-theme/package.json +2 -1
  385. package/examples/sci-fi-theme/src/components.css +1064 -154
  386. package/examples/sci-fi-theme/src/notch.css +142 -0
  387. package/examples/sci-fi-theme/src/sci-fi.css +3 -1
  388. package/examples/sci-fi-theme/src/theme.ts +2 -0
  389. package/examples/sci-fi-theme/src/tokens.css +512 -408
  390. package/examples/tetris-package/README-ch.md +4 -4
  391. package/examples/tetris-package/README.md +4 -4
  392. package/package.json +70 -3
  393. package/dist-library/LocalDocumentView-6trX7xJc.js +0 -97920
  394. package/dist-library/compiler--ea2CKQF.js +0 -61
  395. package/dist-library/component-state-Cq2K5gkS.js +0 -490
  396. package/dist-library/options-CX5m5n-J.js +0 -115
  397. package/dist-library/runtime-C-sbfpOX.js +0 -1157
  398. package/dist-library/types/local/contracts/locale.d.ts +0 -1
  399. package/dist-library/types/local/contracts/version.d.ts +0 -2
  400. package/dist-library/types/local/evaluation/dates.d.ts +0 -2
  401. package/dist-library/types/local/evaluation/expression.d.ts +0 -47
  402. package/dist-library/types/local/markdown/markdown-structure.d.ts +0 -3
  403. package/dist-library/types/local/rendering/legacy-component-adapter.d.ts +0 -36
  404. package/dist-library/types/local/session/incremental.d.ts +0 -48
  405. package/dist-library/types/local/source/node-walk.d.ts +0 -3
  406. package/dist-library/types/local/source/text-length.d.ts +0 -13
  407. package/dist-library/types/local/theme/theme-name.d.ts +0 -3
  408. package/dist-library/types/local/widgets/visuals.d.ts +0 -25
  409. package/dist-library/types/react/default-theme.d.ts +0 -6
  410. package/dist-library/validation-W-bmny-x.js +0 -2253
  411. package/docs/development/releasing-ch.md +0 -12
  412. package/docs/development/releasing-en.md +0 -12
  413. package/docs/integration/codemirror-ch.md +0 -52
  414. package/docs/integration/codemirror-en.md +0 -29
  415. package/docs/integration/repository-split-ch.md +0 -40
  416. package/docs/integration/repository-split-en.md +0 -23
  417. package/docs/reference/computations-formatting-ch.md +0 -89
  418. package/docs/reference/computations-formatting-en.md +0 -89
  419. package/docs/reference/constraints-collections-ch.md +0 -104
  420. package/docs/reference/constraints-collections-en.md +0 -104
  421. package/docs/reference/local-components-v2-ch.md +0 -140
  422. package/docs/reference/local-components-v2-en.md +0 -106
  423. package/docs/reference/tolerance-ch.md +0 -64
  424. package/docs/reference/tolerance-en.md +0 -57
  425. /package/dist-library/types/components/{chart-motion.d.ts → chart/chart-motion.d.ts} +0 -0
  426. /package/dist-library/types/components/{default-chart-types.d.ts → chart/default-chart-types.d.ts} +0 -0
  427. /package/dist-library/types/components/{default-chart.d.ts → chart/default-chart.d.ts} +0 -0
  428. /package/dist-library/types/components/{diagram-inspector.d.ts → diagram/diagram-inspector.d.ts} +0 -0
  429. /package/dist-library/types/{local/widgets/diagram-layout.d.ts → components/diagram/layout.d.ts} +0 -0
  430. /package/dist-library/types/components/{mafs-plot-grid.d.ts → plot/mafs-plot-grid.d.ts} +0 -0
  431. /package/dist-library/types/components/{mafs-visuals.d.ts → plot/mafs-visuals.d.ts} +0 -0
  432. /package/dist-library/types/components/{use-hydrated.d.ts → shared/use-hydrated.d.ts} +0 -0
  433. /package/dist-library/types/local/{theme/colors.d.ts → configuration/color-values.d.ts} +0 -0
  434. /package/dist-library/types/local/evaluation/{collection-functions.d.ts → expression/collection-functions.d.ts} +0 -0
  435. /package/dist-library/types/local/evaluation/{data-functions.d.ts → expression/data-functions.d.ts} +0 -0
  436. /package/dist-library/types/local/evaluation/{formatting.d.ts → expression/formatting.d.ts} +0 -0
  437. /package/dist-library/types/local/{markdown → parsing}/markdown-blocks.d.ts +0 -0
  438. /package/dist-library/types/local/{widgets → rendering/code}/code-block.d.ts +0 -0
  439. /package/dist-library/types/local/{widgets → rendering/code}/code-languages.d.ts +0 -0
  440. /package/dist-library/types/local/{widgets → rendering/image}/image-view.d.ts +0 -0
  441. /package/dist-library/types/local/{widgets → rendering}/math-view.d.ts +0 -0
@@ -7,1413 +7,1461 @@
7
7
  * file without changing any caller.
8
8
  */
9
9
  export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
10
- readonly 'local.version.unsupported': {
11
- readonly en: 'This reader accepts {supported}; migrate {declared} or use a compatible reader.';
12
- readonly zh: '此阅读器支持 {supported};请迁移 {declared} 或使用兼容的阅读器。';
10
+ readonly 'budget.identifier': {
11
+ readonly en: 'Parameter name exceeds the {limit}-character limit.';
12
+ readonly zh: '参数名超过 {limit} 个字符的上限。';
13
13
  };
14
- readonly 'local.version.malformed': {
15
- readonly en: 'Use <!-- reactive-md: local-draft-3 --> on one line.';
16
- readonly zh: '请在单独一行使用 <!-- reactive-md: local-draft-3 -->。';
14
+ readonly 'binding.nameInvalid': {
15
+ readonly en: 'Parameter name "{name}" must match [A-Za-z_][A-Za-z0-9_]*.';
16
+ readonly zh: '参数名“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。';
17
17
  };
18
- readonly 'local.version.duplicate': {
19
- readonly en: 'Only one source syntax declaration is allowed.';
20
- readonly zh: '源码只能声明一次语法版本。';
18
+ readonly 'binding.reserved': {
19
+ readonly en: 'Parameter name "{name}" is reserved; choose another name.';
20
+ readonly zh: '参数名“{name}”是保留名称;请换一个名称。';
21
21
  };
22
- readonly 'local.version.placement': {
23
- readonly en: 'The syntax declaration must be on its own line before the theme and document body.';
24
- readonly zh: '语法版本声明必须独占一行,位于主题声明和正文之前。';
22
+ readonly 'binding.typeConflict': {
23
+ readonly en: 'Parameter "{key}" is already declared as {kind} by <{first}> and cannot also bind <{second}>.';
24
+ readonly zh: '参数“{key}”已由 <{first}> 声明为 {kind},不能再绑定 <{second}>。';
25
25
  };
26
- readonly 'local.upgrade.from-version': {
27
- readonly en: 'Cannot migrate from {from}: {detail}.';
28
- readonly zh: '无法从 {from} 迁移:{detail}。';
26
+ readonly 'binding.exclusive': {
27
+ readonly en: 'Parameter "{key}" of <{first}> can only be owned by one component and cannot be shared with <{second}>.';
28
+ readonly zh: '<{first}> 的参数“{key}”只能由一个组件拥有,不能与 <{second}> 共享。';
29
29
  };
30
- readonly 'local.upgrade.reserved-binding': {
31
- readonly en: 'Binding {name} becomes reserved in local-draft-2; rename it with a compatible old editor before migration.';
32
- readonly zh: '绑定 {name} 在 local-draft-2 中成为保留名;迁移前请用兼容旧版本的编辑器重命名。';
30
+ readonly 'binding.slotExclusive': {
31
+ readonly en: 'Parameter "{key}" of the {slot} slot of <{name}> is exclusive and cannot be shared with another control.';
32
+ readonly zh: '<{name}> 的 {slot} 槽参数“{key}”是独占的,不能与另一个控件共享。';
33
33
  };
34
- readonly 'local.upgrade.tag': {
35
- readonly en: 'Tag {name} was inert in the older revision and becomes active in a newer one; preserve it as literal code before migration.';
36
- readonly zh: '标签 {name} 在旧版本中不执行,在较新版本中会激活;迁移前请将其保留为代码原文。';
34
+ readonly 'binding.constraintConflict': {
35
+ readonly en: 'Parameter "{key}" must use the same numeric range and step: <{first}> has {firstConstraints}, <{second}> has {secondConstraints}.';
36
+ readonly zh: '参数“{key}”必须使用相同的数值范围和步长:<{first}> 为 {firstConstraints},<{second}> 为 {secondConstraints}。';
37
37
  };
38
- readonly 'local.upgrade.text-length': {
39
- readonly en: 'Text length constraints change from UTF-16 units to Unicode code points; explicitly accept this semantic change before migration.';
40
- readonly zh: '文本长度约束从 UTF-16 单元改为 Unicode 码点计数;迁移前须明确接受这一语义变化。';
38
+ readonly 'binding.optionConflict': {
39
+ readonly en: 'Parameter "{key}" must use the same option set in the same order.';
40
+ readonly zh: '参数“{key}”必须使用相同顺序的同一组选项。';
41
41
  };
42
- readonly 'local.upgrade.expression': {
43
- readonly en: 'This expression uses array syntax or a function introduced in local-draft-2; it is outside automatic draft-1 migration.';
44
- readonly zh: '此表达式使用了 local-draft-2 新增的数组语法或函数,不属于 draft-1 自动迁移范围。';
42
+ readonly 'initial.duplicate': {
43
+ readonly en: 'Parameter "{key}" has multiple explicit initial values ({count} in total).';
44
+ readonly zh: '参数“{key}”有多个显式初值(共 {count} 个)。';
45
45
  };
46
- readonly 'local.upgrade.version-missing': {
47
- readonly en: 'The source has no syntax declaration; migration will pin {version}.';
48
- readonly zh: '源码尚未声明语法版本;迁移将固定为 {version}。';
46
+ readonly 'initial.duplicatePeers': {
47
+ readonly en: 'Parameter "{key}" has multiple explicit initial values ({count} in total; see also line {lines}).';
48
+ readonly zh: '参数“{key}”有多个显式初值(共 {count} 个;另见第 {lines} 行)。';
49
49
  };
50
- readonly 'capability.html': {
51
- readonly en: 'This compiler assembly does not include the native HTML document branch.';
52
- readonly zh: '当前编译器装配不包含原生 HTML 文档分支。';
50
+ readonly 'initial.rangeNoStep': {
51
+ readonly en: 'Parameter "{key}" has no valid step value within range [{min}, {max}].';
52
+ readonly zh: '参数“{key}”在范围 [{min}, {max}] 内没有有效的步长值。';
53
53
  };
54
- readonly 'capability.plot': {
55
- readonly en: 'This compiler assembly does not include plot formula support.';
56
- readonly zh: '当前编译器装配不包含绘图公式支持。';
54
+ readonly 'initial.cannotDerive': {
55
+ readonly en: 'Cannot derive a default initial value for <{name}> parameter "{key}".';
56
+ readonly zh: '无法为 <{name}> 的参数“{key}”推导默认初值。';
57
57
  };
58
- readonly 'parse.sourceType': {
59
- readonly en: 'Document source must be a string.';
60
- readonly zh: '文档源必须是字符串。';
58
+ readonly 'initial.typeFiniteNumber': {
59
+ readonly en: 'Initial value of parameter "{key}" must be a finite number.';
60
+ readonly zh: '参数“{key}”的初值必须是有限数字。';
61
61
  };
62
- readonly 'parse.markdownFailed': {
63
- readonly en: 'Cannot parse the Markdown document.';
64
- readonly zh: '无法解析 Markdown 文档。';
62
+ readonly 'initial.belowMin': {
63
+ readonly en: 'Initial value {value} of parameter "{key}" is below the minimum {min}.';
64
+ readonly zh: '参数“{key}”的初值 {value} 小于最小值 {min}。';
65
65
  };
66
- readonly 'parse.failed': {
67
- readonly en: 'Cannot parse document: {detail}';
68
- readonly zh: '无法解析文档:{detail}';
66
+ readonly 'initial.aboveMax': {
67
+ readonly en: 'Initial value {value} of parameter "{key}" exceeds the maximum {max}.';
68
+ readonly zh: '参数“{key}”的初值 {value} 超过最大值 {max}。';
69
69
  };
70
- readonly 'budget.document': {
71
- readonly en: 'Document exceeds the {limit}-character limit.';
72
- readonly zh: '文档超过 {limit} 个字符的上限。';
70
+ readonly 'initial.offStep': {
71
+ readonly en: 'Initial value {value} of parameter "{key}" is not on step {step} (based at {base}).';
72
+ readonly zh: '参数“{key}”的初值 {value} 不在步长 {step} 上(基准 {base})。';
73
73
  };
74
- readonly 'budget.syntaxNodes': {
75
- readonly en: 'Syntax nodes exceed the limit of {limit}.';
76
- readonly zh: '语法节点数量超过上限 {limit}。';
74
+ readonly 'initial.typeBoolean': {
75
+ readonly en: 'Initial value of parameter "{key}" must be a boolean.';
76
+ readonly zh: '参数“{key}”的初值必须是布尔值。';
77
77
  };
78
- readonly 'budget.parseWork': {
79
- readonly en: 'Parsing work exceeds the limit of {limit}.';
80
- readonly zh: '解析工作量超过上限 {limit}。';
78
+ readonly 'initial.notAmongOptions': {
79
+ readonly en: 'Initial value "{value}" of parameter "{key}" is not among the available values {options}.';
80
+ readonly zh: '参数“{key}”的初值“{value}”不在可用值 {options} 中。';
81
81
  };
82
- readonly 'budget.markdownDepth': {
83
- readonly en: 'Markdown nesting exceeds the {limit}-level limit.';
84
- readonly zh: 'Markdown 嵌套超过 {limit} 层上限。';
82
+ readonly 'initial.typeWrong': {
83
+ readonly en: 'Initial value of parameter "{name}" has the wrong type.';
84
+ readonly zh: '参数“{name}”的初值类型不正确。';
85
85
  };
86
- readonly 'budget.nesting': {
87
- readonly en: 'Component nesting exceeds the {limit}-level limit.';
88
- readonly zh: '组件嵌套超过 {limit} 层上限。';
86
+ readonly 'initial.typeCollection': {
87
+ readonly en: 'Initial value of parameter "{key}" must be a JSON array.';
88
+ readonly zh: '参数“{key}”的初值必须是 JSON 数组。';
89
89
  };
90
- readonly 'options.notObject': {
91
- readonly en: 'Compile options must be an object.';
92
- readonly zh: '编译选项必须是对象。';
90
+ readonly 'initial.typeStringArray': {
91
+ readonly en: 'Initial value of parameter "{key}" must be an array of strings.';
92
+ readonly zh: '参数“{key}”的初值必须是字符串数组。';
93
93
  };
94
- readonly 'options.limitsNotObject': {
95
- readonly en: 'Compile option limits must be an object.';
96
- readonly zh: '编译选项 limits 必须是对象。';
94
+ readonly 'initial.typeNumberArray': {
95
+ readonly en: 'Initial value of parameter "{key}" must be an array of finite numbers.';
96
+ readonly zh: '参数“{key}”的初值必须是有限数字组成的数组。';
97
97
  };
98
- readonly 'options.maxSyntaxNodes': {
99
- readonly en: 'Compile option limits.maxSyntaxNodes must be a positive safe integer.';
100
- readonly zh: '编译选项 limits.maxSyntaxNodes 必须是正安全整数。';
98
+ readonly 'initial.maxItems': {
99
+ readonly en: 'Initial value of parameter "{key}" exceeds the limit of {max} items.';
100
+ readonly zh: '参数“{key}”的初值超过 {max} 项的上限。';
101
101
  };
102
- readonly 'options.maxParseWork': {
103
- readonly en: 'Compile option limits.maxParseWork must be a positive safe integer.';
104
- readonly zh: '编译选项 limits.maxParseWork 必须是正安全整数。';
102
+ readonly 'initial.dateInvalid': {
103
+ readonly en: 'Initial date "{value}" is not a valid YYYY-MM-DD.';
104
+ readonly zh: '初值日期“{value}”不是有效的 YYYY-MM-DD。';
105
105
  };
106
- readonly 'options.maxMarkdownDepth': {
107
- readonly en: 'Compile option limits.maxMarkdownDepth must be a positive safe integer.';
108
- readonly zh: '编译选项 limits.maxMarkdownDepth 必须是正安全整数。';
106
+ readonly 'initial.notAvailableOption': {
107
+ readonly en: 'Initial value "{value}" is not an available option: {options}.';
108
+ readonly zh: '初值“{value}”不是可用选项:{options}。';
109
109
  };
110
- readonly 'options.unknownLimit': {
111
- readonly en: 'Compile option limits.{detail} is not supported.';
112
- readonly zh: '编译选项 limits.{detail} 不受支持。';
110
+ readonly 'initial.multiSelectOption': {
111
+ readonly en: 'Initial value "{value}" of parameter "{key}" is not an option of <multi-select>.';
112
+ readonly zh: '参数“{key}”的初值“{value}”不是 <multi-select> 的选项。';
113
113
  };
114
- readonly 'options.hostComponents': {
115
- readonly en: 'Compile option hostComponents is invalid: {detail}';
116
- readonly zh: '编译选项 hostComponents 无效:{detail}';
114
+ readonly 'initial.rangeSliderOrder': {
115
+ readonly en: '<range-slider> start {start} cannot be greater than end {end}.';
116
+ readonly zh: '<range-slider> 的 start {start} 不能大于 end {end}。';
117
117
  };
118
- readonly 'theme.expression': {
119
- readonly en: 'Theme names must be static text, not expressions.';
120
- readonly zh: '主题名称必须是静态文本,不能是表达式。';
118
+ readonly 'initial.slotBelowMin': {
119
+ readonly en: 'Initial value {value} of <{name}> {slot} is below the minimum {min}.';
120
+ readonly zh: '<{name}> 的 {slot} 初值 {value} 小于最小值 {min}。';
121
121
  };
122
- readonly 'theme.nameRequired': {
123
- readonly en: 'A theme declaration requires a quoted name attribute.';
124
- readonly zh: '主题声明需要一个带引号的 name 属性。';
122
+ readonly 'initial.slotAboveMax': {
123
+ readonly en: 'Initial value {value} of <{name}> {slot} exceeds the maximum {max}.';
124
+ readonly zh: '<{name}> 的 {slot} 初值 {value} 超过最大值 {max}。';
125
125
  };
126
- readonly 'theme.attributeOnly': {
127
- readonly en: 'Theme declarations only accept a quoted name attribute.';
128
- readonly zh: '主题声明只接受带引号的 name 属性。';
126
+ readonly 'initial.slotOffStep': {
127
+ readonly en: 'Initial value {value} of <{name}> {slot} is not on step {step} (based at {base}).';
128
+ readonly zh: '<{name}> 的 {slot} 初值 {value} 不在步长 {step} 上(基准 {base})。';
129
129
  };
130
- readonly 'theme.nameInvalid': {
131
- readonly en: 'Theme name "{name}" must use lowercase letters, digits and single hyphens (maximum {limit} characters).';
132
- readonly zh: '主题名称“{name}”只能使用小写字母、数字和单个连字符(最多 {limit} 个字符)。';
130
+ readonly 'initial.lengthBelow': {
131
+ readonly en: 'Initial value of parameter "{key}" has length {length}, below the minimum length {min} required by <{name}>.';
132
+ readonly zh: '参数“{key}”的初值长度为 {length},小于 <{name}> 要求的最小长度 {min}。';
133
133
  };
134
- readonly 'theme.malformedMissingClose': {
135
- readonly en: 'Theme declaration is missing >.';
136
- readonly zh: '主题声明缺少 >。';
134
+ readonly 'initial.lengthAbove': {
135
+ readonly en: 'Initial value of parameter "{key}" has length {length}, exceeding the maximum length {max} allowed by <{name}>.';
136
+ readonly zh: '参数“{key}”的初值长度为 {length},超过 <{name}> 允许的最大长度 {max}。';
137
137
  };
138
- readonly 'theme.malformedClosing': {
139
- readonly en: 'A theme declaration cannot be a closing tag.';
140
- readonly zh: '主题声明不能是结束标签。';
138
+ readonly 'initial.email': {
139
+ readonly en: 'Initial value of parameter "{key}" is not a valid email address.';
140
+ readonly zh: '参数“{key}”的初值不是有效的电子邮件地址。';
141
141
  };
142
- readonly 'theme.malformedStandalone': {
143
- readonly en: 'A theme declaration must be on its own line before the document content.';
144
- readonly zh: '主题声明必须单独占一行并位于文档内容之前。';
142
+ readonly 'initial.dateBelow': {
143
+ readonly en: 'Initial value {value} of parameter "{key}" is earlier than the minimum date {min} of <date>.';
144
+ readonly zh: '参数“{key}”的初值 {value} 早于 <date> 的最小日期 {min}。';
145
145
  };
146
- readonly 'theme.duplicateDeclaration': {
147
- readonly en: 'Only one theme declaration is allowed before the document content; this declaration is ignored.';
148
- readonly zh: '文档内容之前只允许一个主题声明;此声明将被忽略。';
146
+ readonly 'initial.dateAbove': {
147
+ readonly en: 'Initial value {value} of parameter "{key}" is later than the maximum date {max} of <date>.';
148
+ readonly zh: '参数“{key}”的初值 {value} 晚于 <date> 的最大日期 {max}。';
149
149
  };
150
- readonly 'theme.late': {
151
- readonly en: 'Theme declarations after document content are ignored.';
152
- readonly zh: '文档内容之后的主题声明将被忽略。';
150
+ readonly 'initial.multiSelectExceeds': {
151
+ readonly en: 'Initial values of <multi-select> exceed max-selected {max}.';
152
+ readonly zh: '<multi-select> 的初值数量超过 max-selected {max}。';
153
153
  };
154
- readonly 'theme.nested': {
155
- readonly en: 'Theme declarations inside document content are ignored.';
156
- readonly zh: '文档内容内部的主题声明将被忽略。';
154
+ readonly 'expression.error': {
155
+ readonly en: 'Expression error: {detail}';
156
+ readonly zh: '表达式错误:{detail}';
157
157
  };
158
- readonly 'theme.invalidDeclaration': {
159
- readonly en: 'Invalid theme declaration.';
160
- readonly zh: '无效的主题声明。';
158
+ readonly 'binding.unknownSuggestion': {
159
+ readonly en: 'Reference to undeclared parameter {name}. Did you mean {suggestion}?';
160
+ readonly zh: '引用了未声明的参数 {name}。是否想使用 {suggestion}?';
161
161
  };
162
- readonly 'attribute.lowercase': {
163
- readonly en: 'Attribute names must use lowercase kebab-case.';
164
- readonly zh: '属性名必须使用小写 kebab-case。';
162
+ readonly 'binding.unknownPlain': {
163
+ readonly en: 'Reference to undeclared parameter {name}.';
164
+ readonly zh: '引用了未声明的参数 {name}。';
165
165
  };
166
- readonly 'budget.attributeName': {
167
- readonly en: 'Attribute name exceeds the {limit}-character limit.';
168
- readonly zh: '属性名超过 {limit} 个字符的上限。';
166
+ readonly 'type.number': {
167
+ readonly en: 'Expected a number here, but the expression evaluates to {kind}.';
168
+ readonly zh: '此处需要数字,但表达式结果为 {kind}。';
169
169
  };
170
- readonly 'attribute.nameInvalid': {
171
- readonly en: 'Attribute name {name} must use lowercase kebab-case.';
172
- readonly zh: '属性名 {name} 必须使用小写 kebab-case。';
170
+ readonly 'type.boolean': {
171
+ readonly en: 'Expected a boolean here, but the expression evaluates to {kind}.';
172
+ readonly zh: '此处需要布尔值,但表达式结果为 {kind}。';
173
173
  };
174
- readonly 'attribute.valueQuoted': {
175
- readonly en: 'Attribute {name} value must be quoted.';
176
- readonly zh: '属性 {name} 的值必须加引号。';
174
+ readonly 'type.string': {
175
+ readonly en: 'Expected a string here, but the expression evaluates to {kind}.';
176
+ readonly zh: '此处需要字符串,但表达式结果为 {kind}。';
177
177
  };
178
- readonly 'attribute.valueUnclosed': {
179
- readonly en: 'Attribute {name} is missing a closing quote.';
180
- readonly zh: '属性 {name} 缺少结束引号。';
178
+ readonly 'type.arrayNoDisplay': {
179
+ readonly en: 'Arrays cannot be displayed directly; convert them first with a function such as len.';
180
+ readonly zh: '数组不能直接显示;请先用 len 等函数转换。';
181
181
  };
182
- readonly 'attribute.duplicate': {
183
- readonly en: 'Duplicate attribute {name}.';
184
- readonly zh: '重复的属性 {name}。';
182
+ readonly 'attribute.fullInterpolation': {
183
+ readonly en: 'The {name} attribute of <{component}> must be a full interpolation.';
184
+ readonly zh: '<{component}> 的 {name} 属性必须是完整插值。';
185
185
  };
186
- readonly 'attribute.separator': {
187
- readonly en: 'Attributes must be separated by whitespace.';
188
- readonly zh: '属性之间必须用空白分隔。';
186
+ readonly 'anchor.idInvalid': {
187
+ readonly en: 'Anchor id "{id}" must match [A-Za-z_][A-Za-z0-9_-]*.';
188
+ readonly zh: '锚点 id“{id}”必须匹配 [A-Za-z_][A-Za-z0-9_-]*。';
189
189
  };
190
- readonly 'budget.tagName': {
191
- readonly en: 'Tag name exceeds the {limit}-character limit.';
192
- readonly zh: '标签名超过 {limit} 个字符的上限。';
190
+ readonly 'anchor.duplicate': {
191
+ readonly en: 'Duplicate anchor id "{id}".';
192
+ readonly zh: '重复的锚点 id“{id}”。';
193
193
  };
194
- readonly 'tag.missingClose': {
195
- readonly en: 'Tag {name} is missing >.';
196
- readonly zh: '标签 {name} 缺少 >。';
194
+ readonly 'anchor.headingCollision': {
195
+ readonly en: 'Anchor id "{id}" collides with an automatic heading target.';
196
+ readonly zh: '锚点 id“{id}”与自动标题目标冲突。';
197
197
  };
198
- readonly 'tag.closingAttributes': {
199
- readonly en: 'Closing tag </{name}> cannot have attributes.';
200
- readonly zh: '结束标签 </{name}> 不能带属性。';
198
+ readonly 'jump.empty': {
199
+ readonly en: '<jump> target cannot be empty.';
200
+ readonly zh: '<jump> 的目标不能为空。';
201
201
  };
202
- readonly 'tag.nameInvalid': {
203
- readonly en: 'Tag name {name} must use lowercase kebab-case.';
204
- readonly zh: '标签名 {name} 必须使用小写 kebab-case。';
202
+ readonly 'jump.badTarget': {
203
+ readonly en: '<jump> target "{target}" must be a bare heading slug or anchor id without "#" or whitespace.';
204
+ readonly zh: '<jump> 的目标“{target}”必须是不含“#”或空白的标题 slug 或锚点 id。';
205
205
  };
206
- readonly 'tag.unclosedPaired': {
207
- readonly en: '<{name}> is missing </{name}>.';
208
- readonly zh: '<{name}> 缺少 </{name}>。';
206
+ readonly 'jump.unresolved': {
207
+ readonly en: '<jump> target "{target}" does not resolve to a heading or explicit anchor in this document.';
208
+ readonly zh: '<jump> 的目标“{target}”无法解析到本文档中的标题或显式锚点。';
209
209
  };
210
- readonly 'tag.mismatchRoot': {
211
- readonly en: 'Closing tag </{name}> does not match the document root.';
212
- readonly zh: '结束标签 </{name}> 与文档根不匹配。';
210
+ readonly 'budget.plotCurves': {
211
+ readonly en: '<plot> supports at most {limit} curves, but has {count}.';
212
+ readonly zh: '<plot> 最多支持 {limit} 条曲线,当前有 {count} 条。';
213
+ };
214
+ readonly 'budget.plotPoints': {
215
+ readonly en: "The document's total plot sample count exceeds the limit of {limit}.";
216
+ readonly zh: '文档的绘图采样点总数超过上限 {limit}。';
217
+ };
218
+ readonly 'math.formulaShape': {
219
+ readonly en: '<plot> formulas must be an equation: y = f(x), a parametric cases block, r = f(\\theta), or an implicit equation in x and y.';
220
+ readonly zh: '<plot> 的公式必须是方程:y = f(x)、参数方程 cases 块、r = f(\\theta),或关于 x 和 y 的隐式方程。';
221
+ };
222
+ readonly 'math.computeFailed': {
223
+ readonly en: 'Cannot compute plot formula: {detail}';
224
+ readonly zh: '无法计算绘图公式(错误代码 {code}):{detail}';
225
+ };
226
+ readonly 'math.bindingUnknown': {
227
+ readonly en: 'Plot formula references undeclared parameter "{name}".';
228
+ readonly zh: '绘图公式引用了未声明的参数“{name}”。';
229
+ };
230
+ readonly 'math.bindingType': {
231
+ readonly en: 'Plot parameter "{name}" must be a number, but is {kind}.';
232
+ readonly zh: '绘图参数“{name}”必须是数字,但当前为 {kind}。';
233
+ };
234
+ readonly 'math.displayUnsupportedCommand': {
235
+ readonly en: 'Formula command \\{name} is not supported; it is displayed as literal text.';
236
+ readonly zh: '公式命令 \\{name} 不受支持;已按原文显示。';
213
237
  };
214
- readonly 'tag.mismatchParent': {
215
- readonly en: 'Closing tag </{name}> does not match <{parent}>.';
216
- readonly zh: '结束标签 </{name}> 与 <{parent}> 不匹配。';
238
+ readonly 'math.displayUnsupportedEnvironment': {
239
+ readonly en: 'Formula environment {name} is not supported; it is displayed as literal text.';
240
+ readonly zh: '公式环境 {name} 不受支持;已按原文显示。';
217
241
  };
218
- readonly 'tag.requiresClose': {
219
- readonly en: '<{name}> requires a closing tag.';
220
- readonly zh: '<{name}> 需要结束标签。';
242
+ readonly 'math.displayBudget': {
243
+ readonly en: 'Formula exceeds a display resource limit ({limit}); it is displayed as literal text.';
244
+ readonly zh: '公式超过显示资源上限({limit});已按原文显示。';
221
245
  };
222
- readonly 'footnote.unsupported': {
223
- readonly en: 'Footnotes are not part of the local interaction syntax and are shown as source.';
224
- readonly zh: '脚注不属于本地交互语法,将按源文本显示。';
246
+ readonly 'math.displayStrayEnd': {
247
+ readonly en: 'Formula has an unmatched \\end; it is displayed as literal text.';
248
+ readonly zh: '公式中存在未匹配的 \\end;已按原文显示。';
225
249
  };
226
- readonly 'interpolation.unclosed': {
227
- readonly en: 'Interpolation is missing }}.';
228
- readonly zh: '插值缺少 }}。';
250
+ readonly 'math.displayEnvironmentUnclosed': {
251
+ readonly en: 'Formula environment {name} is missing its closing brace; it is displayed as literal text.';
252
+ readonly zh: '公式环境 {name} 缺少结束花括号;已按原文显示。';
229
253
  };
230
- readonly 'math.unclosed': {
231
- readonly en: 'Formula is missing its closing delimiter.';
232
- readonly zh: '公式缺少结束定界符。';
254
+ readonly 'math.displayEnvironmentMissingName': {
255
+ readonly en: 'Formula environment is missing its name; \\begin is displayed as literal text.';
256
+ readonly zh: '公式环境缺少名称;\\begin 已按原文显示。';
233
257
  };
234
- readonly 'math.whitespace': {
235
- readonly en: 'Inline math cannot start or end with whitespace.';
236
- readonly zh: '行内公式不能以空白开头或结尾。';
258
+ readonly 'math.displaySyntax': {
259
+ readonly en: 'Formula structure cannot be displayed and is shown as literal text.';
260
+ readonly zh: '公式结构无法显示,已按原文显示。';
237
261
  };
238
- readonly 'budget.math': {
239
- readonly en: 'Formula exceeds the {limit}-character limit.';
240
- readonly zh: '公式超过 {limit} 个字符的上限。';
262
+ readonly 'table.missingHeader': {
263
+ readonly en: 'The table for <{name}> is missing a header.';
264
+ readonly zh: '<{name}> 的表格缺少表头。';
241
265
  };
242
- readonly 'html.raw': {
243
- readonly en: 'Raw HTML is not part of the local interaction syntax.';
244
- readonly zh: '原始 HTML 不属于本地交互语法。';
266
+ readonly 'table.headerInterpolation': {
267
+ readonly en: 'Table headers cannot contain interpolations.';
268
+ readonly zh: '表格表头不能包含插值。';
245
269
  };
246
- readonly 'html.fallback': {
247
- readonly en: 'Native HTML was safely converted to inert source text.';
248
- readonly zh: '原生 HTML 已安全回退为惰性源码文本。';
270
+ readonly 'table.headerEmpty': {
271
+ readonly en: 'Table headers cannot be empty.';
272
+ readonly zh: '表格表头不能为空。';
249
273
  };
250
- readonly 'html.fallbackAttribute': {
251
- readonly en: 'Native HTML attribute {name} is unsupported; the element was safely converted to inert source text.';
252
- readonly zh: '原生 HTML 属性 {name} 不受支持;该元素已安全回退为惰性源码文本。';
274
+ readonly 'table.headerDuplicate': {
275
+ readonly en: 'Duplicate table header "{name}".';
276
+ readonly zh: '重复的表格表头“{name}”。';
253
277
  };
254
- readonly 'html.table.structure': {
255
- readonly en: 'Invalid native HTML table structure in <{tag}>.';
256
- readonly zh: '原生 HTML 表格的 <{tag}> 结构无效。';
278
+ readonly 'table.rowColumnMismatch': {
279
+ readonly en: 'Table row has a different column count: header has {header} columns, this row has {row}.';
280
+ readonly zh: '表格行的列数不一致:表头有 {header} 列,此行有 {row} 列。';
257
281
  };
258
- readonly 'html.table.mixed': {
259
- readonly en: 'Keep text and Markdown inside cells or captions; native HTML table structure cannot mix with Markdown table rows.';
260
- readonly zh: '文字和 Markdown 应写在单元格或标题内;原生 HTML 表格结构不能混用 Markdown 表格行。';
282
+ readonly 'chart.numericExpression': {
283
+ readonly en: 'Chart column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
284
+ readonly zh: '图表列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
261
285
  };
262
- readonly 'html.table.attribute': {
263
- readonly en: 'Attribute {name} is not supported on native HTML <{tag}>. ReactiveMD table options require a Markdown table body.';
264
- readonly zh: '原生 HTML <{tag}> 不支持属性 {name}。ReactiveMD 表格选项只适用于 Markdown 表格正文。';
286
+ readonly 'timeline.numericExpression': {
287
+ readonly en: 'Timeline column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
288
+ readonly zh: '时间线列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
265
289
  };
266
- readonly 'html.table.value': {
267
- readonly en: 'Invalid value for {name} on native HTML <{tag}>.';
268
- readonly zh: '原生 HTML <{tag}> 的 {name} 属性值无效。';
290
+ readonly 'chart.numericPlain': {
291
+ readonly en: 'Chart column "{name}" requires a plain number in row {row}, got "{value}".';
292
+ readonly zh: '图表列“{name}”第 {row} 行需要普通数字,当前为“{value}”。';
269
293
  };
270
- readonly 'html.table.unclosed': {
271
- readonly en: 'Native HTML table is missing </table>.';
272
- readonly zh: '原生 HTML 表格缺少 </table>。';
294
+ readonly 'timeline.numericPlain': {
295
+ readonly en: 'Timeline column "{name}" requires a plain number in row {row}, got "{value}".';
296
+ readonly zh: '时间线列“{name}”第 {row} 行需要普通数字,当前为“{value}”。';
273
297
  };
274
- readonly 'html.extended': {
275
- readonly en: 'HTML element <{name}> requires enableExtendedHtml in this mode; it is shown as source.';
276
- readonly zh: '此模式下 HTML 元素 <{name}> 需要启用 enableExtendedHtml;已按源码显示。';
298
+ readonly 'selection.keyEmpty': {
299
+ readonly en: '<{component}> key cannot be empty.';
300
+ readonly zh: '<{component}> 的 key 不能为空。';
277
301
  };
278
- readonly 'html.attribute': {
279
- readonly en: 'HTML attribute {name} on <{tag}> is not supported; the element is shown as source.';
280
- readonly zh: '<{tag}> 上的 HTML 属性 {name} 不受支持;该元素已按源码显示。';
302
+ readonly 'selection.keyMissingColumn': {
303
+ readonly en: '<{component}> key column "{name}" does not exist in its table.';
304
+ readonly zh: '<{component}> 的 key 列“{name}”在表格中不存在。';
281
305
  };
282
- readonly 'html.unsafeUrl': {
283
- readonly en: 'Unsafe URL in attribute {name} was removed.';
284
- readonly zh: '属性 {name} 中的不安全 URL 已移除。';
306
+ readonly 'selection.keyInterpolation': {
307
+ readonly en: '<{component}> key column "{name}" must contain static text; row {row} contains an interpolation.';
308
+ readonly zh: '<{component}> 的 key 列“{name}”必须包含静态文本;第 {row} 行包含插值。';
285
309
  };
286
- readonly 'html.capability': {
287
- readonly en: 'Author {feature} was disabled by the compile options.';
288
- readonly zh: '编译选项已禁用作者提供的{feature}。';
310
+ readonly 'selection.keyEmptyCell': {
311
+ readonly en: '<{component}> key column "{name}" cannot be empty in row {row}.';
312
+ readonly zh: '<{component}> 的 key 列“{name}”在第 {row} 行不能为空。';
289
313
  };
290
- readonly 'recovery.unclosed': {
291
- readonly en: 'An unclosed RMD fragment was rendered as literal source; its components and expressions are inactive.';
292
- readonly zh: '未闭合的 RMD 片段已按原文显示,片段中的组件和表达式不执行。';
314
+ readonly 'selection.keyDuplicate': {
315
+ readonly en: '<{component}> key column "{name}" must be unique; duplicate value "{value}".';
316
+ readonly zh: '<{component}> 的 key 列“{name}”必须唯一;重复值“{value}”。';
293
317
  };
294
- readonly 'recovery.mismatch': {
295
- readonly en: 'A fragment with mismatched tags was rendered as literal source; its components and expressions are inactive.';
296
- readonly zh: '标签不匹配的片段已按原文显示,片段中的组件和表达式不执行。';
318
+ readonly 'initial.selectionNotValue': {
319
+ readonly en: 'Initial selection "{value}" of <{component}> is not a value of key column "{name}".';
320
+ readonly zh: '<{component}> 的初始选择“{value}”不是 key 列“{name}”中的值。';
297
321
  };
298
- readonly 'recovery.strayClose': {
299
- readonly en: 'A stray closing tag was rendered as literal source.';
300
- readonly zh: '孤立的结束标签已按原文显示。';
322
+ readonly 'chart.columnComma': {
323
+ readonly en: 'Chart column names cannot contain commas: "{name}".';
324
+ readonly zh: '图表列名不能包含逗号:“{name}”。';
301
325
  };
302
- readonly 'recovery.htmlRepair': {
303
- readonly en: 'Malformed native HTML was structurally repaired for display.';
304
- readonly zh: 'HTML 结构已修复后显示。';
326
+ readonly 'chart.xMissing': {
327
+ readonly en: 'Chart x column "{name}" does not exist.';
328
+ readonly zh: '图表 x 列“{name}”不存在。';
305
329
  };
306
- readonly 'recovery.htmlLiteral': {
307
- readonly en: 'Native HTML could not be safely repaired and was rendered as literal source.';
308
- readonly zh: 'HTML 片段无法安全恢复,已按原文显示。';
330
+ readonly 'chart.yRequired': {
331
+ readonly en: 'Chart y requires a column name.';
332
+ readonly zh: '图表 y 需要列名。';
309
333
  };
310
- readonly 'options.htmlFlag': {
311
- readonly en: 'Compile option {name} must be a boolean.';
312
- readonly zh: '编译选项 {name} 必须是布尔值。';
334
+ readonly 'chart.yMissing': {
335
+ readonly en: 'Chart y column "{name}" does not exist.';
336
+ readonly zh: '图表 y 列“{name}”不存在。';
313
337
  };
314
- readonly 'options.markdownBreaks': {
315
- readonly en: 'Compile option markdownBreaks must be a boolean.';
316
- readonly zh: '编译选项 markdownBreaks 必须为布尔值。';
338
+ readonly 'chart.needsNumeric': {
339
+ readonly en: 'Chart requires at least one numeric column.';
340
+ readonly zh: '图表至少需要一个数值列。';
317
341
  };
318
- readonly 'options.strict': {
319
- readonly en: 'Compile option strict must be a boolean.';
320
- readonly zh: '编译选项 strict 必须为布尔值。';
342
+ readonly 'chart.scatterXMissing': {
343
+ readonly en: 'Scatter chart x column "{name}" does not exist.';
344
+ readonly zh: '散点图的 x 列“{name}”不存在。';
321
345
  };
322
- readonly 'component.unknownSuggestion': {
323
- readonly en: 'Unknown component <{name}>. Did you mean <{suggestion}>?';
324
- readonly zh: '未知组件 <{name}>。是否想使用 <{suggestion}>?';
346
+ readonly 'chart.scatterNeedsNumeric': {
347
+ readonly en: 'Scatter chart requires at least one numeric column.';
348
+ readonly zh: '散点图至少需要一个数值列。';
325
349
  };
326
- readonly 'component.unknownPlain': {
327
- readonly en: 'Unknown component <{name}>. This mode only accepts local interaction components.';
328
- readonly zh: '未知组件 <{name}>。此模式只接受本地交互组件。';
350
+ readonly 'chart.donutNeedsColumns': {
351
+ readonly en: 'Donut chart requires a label column and a value column.';
352
+ readonly zh: '环形图需要一个标签列和一个数值列。';
329
353
  };
330
- readonly 'legacy.fence': {
331
- readonly en: 'Legacy reactive-md configuration fences (state/data/computed/actions, etc.) are not part of the local interaction syntax; select legacy mode explicitly in the host.';
332
- readonly zh: '旧版 reactive-md 配置围栏(state/data/computed/actions 等)不属于本地交互语法;请在宿主中显式选择旧版模式。';
354
+ readonly 'chart.donutYOne': {
355
+ readonly en: 'Donut chart y can only specify one numeric column.';
356
+ readonly zh: '环形图的 y 只能指定一个数值列。';
333
357
  };
334
- readonly 'attribute.unknownSuggestion': {
335
- readonly en: 'Component <{component}> does not support attribute {name}. Did you mean {suggestion}?';
336
- readonly zh: '组件 <{component}> 不支持属性 {name}。是否想使用 {suggestion}?';
358
+ readonly 'chart.donutNeedY': {
359
+ readonly en: 'A donut chart with more than two columns must use y to specify the single numeric column.';
360
+ readonly zh: '超过两列的环形图必须用 y 指定唯一的数值列。';
337
361
  };
338
- readonly 'attribute.unknownPlain': {
339
- readonly en: 'Component <{component}> does not support attribute {name}.';
340
- readonly zh: '组件 <{component}> 不支持属性 {name}。';
362
+ readonly 'chart.negative': {
363
+ readonly en: 'Donut chart values cannot be negative; row {row} is {value}.';
364
+ readonly zh: '环形图的数值不能为负;第 {row} 行为 {value}。';
341
365
  };
342
- readonly 'budget.attribute': {
343
- readonly en: 'Attribute {name} on component <{component}> exceeds the {limit}-character limit.';
344
- readonly zh: '组件 <{component}> 的属性 {name} 超过 {limit} 个字符的上限。';
366
+ readonly 'timeline.headerMissing': {
367
+ readonly en: 'Timeline requires either Task, Start and Duration columns or 事项, 开始 and 时长 columns, with optional Notes or 说明.';
368
+ readonly zh: '时间线需要 Task、Start、Duration 列,或 事项、开始、时长 列,并可选 Notes 或 说明。';
345
369
  };
346
- readonly 'attribute.color': {
347
- readonly en: 'Attribute {name} on component <{component}> must be a standard CSS named color or #RGB/#RRGGBB, got "{value}".';
348
- readonly zh: '组件 <{component}> 的属性 {name} 必须是标准 CSS 命名颜色或 #RGB/#RRGGBB,当前为“{value}”。';
370
+ readonly 'timeline.columnUnsupported': {
371
+ readonly en: 'Timeline does not support column "{name}".';
372
+ readonly zh: '时间线不支持列“{name}”。';
349
373
  };
350
- readonly 'attribute.required': {
351
- readonly en: 'Component <{component}> is missing required attribute {name}.';
352
- readonly zh: '组件 <{component}> 缺少必需属性 {name}。';
374
+ readonly 'timeline.negative': {
375
+ readonly en: 'Timeline column "{name}" cannot be negative in row {row}.';
376
+ readonly zh: '时间线列“{name}”在第 {row} 行不能为负。';
353
377
  };
354
- readonly 'label.requiredMissing': {
355
- readonly en: 'Component <{name}> requires a label.';
356
- readonly zh: '组件 <{name}> 需要 label。';
378
+ readonly 'runtime.bindingNoWritable': {
379
+ readonly en: 'This component has no writable binding state.';
380
+ readonly zh: '此组件没有可写的绑定状态。';
357
381
  };
358
- readonly 'label.requiredEmpty': {
359
- readonly en: 'Component <{name}> label cannot be empty.';
360
- readonly zh: '组件 <{name}> 的 label 不能为空。';
382
+ readonly 'runtime.bindingNeedsSlot': {
383
+ readonly en: 'This multi-slot component requires a slot such as start/end or x/y.';
384
+ readonly zh: '此多槽组件需要 start/end 或 x/y 之类的槽位。';
361
385
  };
362
- readonly 'attribute.static': {
363
- readonly en: 'Attribute {name} is static and cannot contain interpolations.';
364
- readonly zh: '属性 {name} 是静态的,不能包含插值。';
386
+ readonly 'runtime.bindingUnknownSlot': {
387
+ readonly en: 'This component has no writable slot "{slot}".';
388
+ readonly zh: '此组件没有可写的槽位“{slot}”。';
365
389
  };
366
- readonly 'host.attributeUnknown': {
367
- readonly en: 'Component <{component}> does not support attribute {name}.';
368
- readonly zh: '组件 <{component}> 不支持属性 {name}。';
390
+ readonly 'runtime.bindingNoMultiSlot': {
391
+ readonly en: 'This component does not support multiple slots.';
392
+ readonly zh: '此组件不支持多个槽位。';
369
393
  };
370
- readonly 'host.attributeRequired': {
371
- readonly en: 'Component <{component}> is missing required attribute {name}.';
372
- readonly zh: '组件 <{component}> 缺少必需属性 {name}。';
394
+ readonly 'runtime.dateInvalid': {
395
+ readonly en: 'Date must be a valid YYYY-MM-DD or an empty string.';
396
+ readonly zh: '日期必须是有效的 YYYY-MM-DD 或空字符串。';
373
397
  };
374
- readonly 'host.attributeStatic': {
375
- readonly en: 'Attribute {name} is static and cannot contain interpolations.';
376
- readonly zh: '属性 {name} 是静态的,不能包含插值。';
398
+ readonly 'runtime.dateRequired': {
399
+ readonly en: 'This date is required.';
400
+ readonly zh: '此日期为必填项。';
377
401
  };
378
- readonly 'host.attributeType': {
379
- readonly en: 'Attribute {name} requires a {kind}, got "{value}".';
380
- readonly zh: '属性 {name} 需要 {kind},当前为“{value}”。';
402
+ readonly 'runtime.dateEarlier': {
403
+ readonly en: 'Date cannot be earlier than {min}.';
404
+ readonly zh: '日期不能早于 {min}。';
405
+ };
406
+ readonly 'runtime.dateLater': {
407
+ readonly en: 'Date cannot be later than {max}.';
408
+ readonly zh: '日期不能晚于 {max}。';
381
409
  };
382
- readonly 'host.attributeEnum': {
383
- readonly en: 'Attribute {name} must be one of {values}, got "{value}".';
384
- readonly zh: '属性 {name} 必须是 {values} 之一,当前为“{value}”。';
410
+ readonly 'runtime.fieldRequired': {
411
+ readonly en: 'This field is required.';
412
+ readonly zh: '此字段为必填项。';
385
413
  };
386
- readonly 'host.attributePattern': {
387
- readonly en: 'Attribute {name} must match pattern {pattern}.';
388
- readonly zh: '属性 {name} 必须匹配模式 {pattern}。';
414
+ readonly 'runtime.minLength': {
415
+ readonly en: 'At least {min} characters.';
416
+ readonly zh: '至少 {min} 个字符。';
389
417
  };
390
- readonly 'host.attributeInterpolation': {
391
- readonly en: 'Attribute {name} must be a literal matching {pattern} or one full interpolation.';
392
- readonly zh: '属性 {name} 必须是匹配 {pattern} 的字面值,或一个完整插值。';
418
+ readonly 'runtime.maxLength': {
419
+ readonly en: 'At most {max} characters.';
420
+ readonly zh: '至多 {max} 个字符。';
393
421
  };
394
- readonly 'expression.emptyAttribute': {
395
- readonly en: 'Attribute {name} interpolation cannot be empty.';
396
- readonly zh: '属性 {name} 的插值不能为空。';
422
+ readonly 'runtime.emailLength': {
423
+ readonly en: 'Email address cannot exceed {limit} characters.';
424
+ readonly zh: '电子邮件地址不能超过 {limit} 个字符。';
397
425
  };
398
- readonly 'expression.emptyInterpolation': {
399
- readonly en: 'Interpolation expression cannot be empty.';
400
- readonly zh: '插值表达式不能为空。';
426
+ readonly 'runtime.emailInvalid': {
427
+ readonly en: 'Enter a valid email address.';
428
+ readonly zh: '请输入有效的电子邮件地址。';
401
429
  };
402
- readonly 'attribute.numberInvalid': {
403
- readonly en: 'Attribute {name} requires a number, got "{value}".';
404
- readonly zh: '属性 {name} 需要数字,当前为“{value}”。';
430
+ readonly 'runtime.finiteNumber': {
431
+ readonly en: 'Parameter "{name}" requires a finite number.';
432
+ readonly zh: '参数“{name}”需要有限数字。';
405
433
  };
406
- readonly 'attribute.numberInterpolationInvalid': {
407
- readonly en: 'Attribute {name} requires a number or a full number interpolation, got "{value}".';
408
- readonly zh: '属性 {name} 需要数字或完整的数字插值,当前为“{value}”。';
434
+ readonly 'runtime.min': {
435
+ readonly en: 'Parameter "{name}" must be at least {min}.';
436
+ readonly zh: '参数“{name}”必须至少为 {min}。';
409
437
  };
410
- readonly 'attribute.integer': {
411
- readonly en: 'Attribute {name} requires an integer.';
412
- readonly zh: '属性 {name} 需要整数。';
438
+ readonly 'runtime.max': {
439
+ readonly en: 'Parameter "{name}" must be at most {max}.';
440
+ readonly zh: '参数“{name}”必须至多为 {max}。';
413
441
  };
414
- readonly 'attribute.positive': {
415
- readonly en: 'Attribute {name} requires a positive number.';
416
- readonly zh: '属性 {name} 需要正数。';
442
+ readonly 'runtime.step': {
443
+ readonly en: 'Parameter "{name}" must be a multiple of step {step} (base {base}).';
444
+ readonly zh: '参数“{name}”必须是步长 {step} 的倍数(基准 {base})。';
417
445
  };
418
- readonly 'attribute.rangeMin': {
419
- readonly en: 'Attribute {name} must be at least {min}.';
420
- readonly zh: '属性 {name} 必须至少为 {min}。';
446
+ readonly 'runtime.boolean': {
447
+ readonly en: 'Parameter "{name}" requires a boolean.';
448
+ readonly zh: '参数“{name}”需要布尔值。';
421
449
  };
422
- readonly 'attribute.rangeMax': {
423
- readonly en: 'Attribute {name} must be at most {max}.';
424
- readonly zh: '属性 {name} 必须至多为 {max}。';
450
+ readonly 'runtime.string': {
451
+ readonly en: 'Parameter "{name}" requires a string.';
452
+ readonly zh: '参数“{name}”需要字符串。';
425
453
  };
426
- readonly 'attribute.booleanInvalid': {
427
- readonly en: 'Attribute {name} requires true or false.';
428
- readonly zh: '属性 {name} 需要 true 或 false。';
454
+ readonly 'runtime.array': {
455
+ readonly en: 'Parameter "{name}" requires an array of strings.';
456
+ readonly zh: '参数“{name}”需要字符串数组。';
429
457
  };
430
- readonly 'attribute.booleanInterpolationInvalid': {
431
- readonly en: 'Attribute {name} requires true or false, or a full boolean interpolation.';
432
- readonly zh: '属性 {name} 需要 true 或 false,或完整的布尔插值。';
458
+ readonly 'runtime.arrayMembers': {
459
+ readonly en: 'Parameter "{name}" members must be strings.';
460
+ readonly zh: '参数“{name}”的成员必须是字符串。';
433
461
  };
434
- readonly 'attribute.enumInvalid': {
435
- readonly en: 'Attribute {name} must be one of {values}, got "{value}".';
436
- readonly zh: '属性 {name} 必须是 {values} 之一,当前为“{value}”。';
462
+ readonly 'runtime.numberArray': {
463
+ readonly en: 'Parameter "{name}" requires an array of finite numbers.';
464
+ readonly zh: '参数“{name}”需要有限数字数组。';
437
465
  };
438
- readonly 'attribute.dateLower': {
439
- readonly en: 'Date lower bound {value} is not a valid YYYY-MM-DD.';
440
- readonly zh: '日期下界 {value} 不是有效的 YYYY-MM-DD。';
466
+ readonly 'runtime.numberArrayMembers': {
467
+ readonly en: 'Parameter "{name}" members must be finite numbers.';
468
+ readonly zh: '参数“{name}”的成员必须是有限数字。';
441
469
  };
442
- readonly 'attribute.dateUpper': {
443
- readonly en: 'Date upper bound {value} is not a valid YYYY-MM-DD.';
444
- readonly zh: '日期上界 {value} 不是有效的 YYYY-MM-DD。';
470
+ readonly 'runtime.null': {
471
+ readonly en: 'Parameter "{name}" requires null.';
472
+ readonly zh: '参数“{name}”需要 null。';
445
473
  };
446
- readonly 'constraint.componentMinMax': {
447
- readonly en: 'Component <{name}> min cannot exceed max.';
448
- readonly zh: '组件 <{name}> 的 min 不能大于 max。';
474
+ readonly 'runtime.checklistOption': {
475
+ readonly en: 'Checklist item "{value}" does not exist.';
476
+ readonly zh: '清单项“{value}”不存在。';
449
477
  };
450
- readonly 'constraint.componentStep': {
451
- readonly en: 'Component <{name}> step must be greater than 0.';
452
- readonly zh: '组件 <{name}> 的 step 必须大于 0。';
478
+ readonly 'runtime.maxItems': {
479
+ readonly en: 'Parameter "{name}" allows at most {max} selected values.';
480
+ readonly zh: '参数“{name}”最多允许选择 {max} 个值。';
453
481
  };
454
- readonly 'constraint.lengthRange': {
455
- readonly en: 'max-length cannot be less than min-length.';
456
- readonly zh: 'max-length 不能小于 min-length。';
482
+ readonly 'runtime.unsupportedType': {
483
+ readonly en: 'Parameter "{name}" has an unsupported value type.';
484
+ readonly zh: '参数“{name}”的值类型不受支持。';
457
485
  };
458
- readonly 'constraint.dateOrder': {
459
- readonly en: 'Date min cannot be later than max.';
460
- readonly zh: '日期 min 不能晚于 max。';
486
+ readonly 'runtime.option': {
487
+ readonly en: 'Value "{value}" is not among the options: {options}.';
488
+ readonly zh: '值“{value}”不在选项中:{options}。';
461
489
  };
462
- readonly 'constraint.progressRange': {
463
- readonly en: 'progress value must be between 0 and {max}, got {value}.';
464
- readonly zh: 'progress 的 value 必须在 0 到 {max} 之间,当前为 {value}。';
490
+ readonly 'runtime.budget': {
491
+ readonly en: 'Parameter "{name}": {detail}';
492
+ readonly zh: '参数“{name}”:{detail}';
465
493
  };
466
- readonly 'constraint.plotRange': {
467
- readonly en: 'plot min must be less than max.';
468
- readonly zh: 'plot 的 min 必须小于 max。';
494
+ readonly 'runtime.rangeOrder': {
495
+ readonly en: 'The range start cannot be greater than its end.';
496
+ readonly zh: '范围起点不能大于终点。';
469
497
  };
470
- readonly 'constraint.timerDuration': {
471
- readonly en: 'timer duration must be a positive whole number of seconds.';
472
- readonly zh: 'timer 的 duration 必须是正整数秒。';
498
+ readonly 'budget.string': {
499
+ readonly en: 'String exceeds the {limit}-character limit.';
500
+ readonly zh: '字符串超过 {limit} 个字符的上限。';
473
501
  };
474
- readonly 'constraint.rangeSliderOrder': {
475
- readonly en: 'range-slider min cannot exceed max.';
476
- readonly zh: 'range-slider 的 min 不能大于 max。';
502
+ readonly 'budget.array': {
503
+ readonly en: 'Array exceeds the {limit}-item limit.';
504
+ readonly zh: '数组超过 {limit} 个项的上限。';
477
505
  };
478
- readonly 'constraint.rangeSliderStep': {
479
- readonly en: 'range-slider step must be a finite positive number.';
480
- readonly zh: 'range-slider 的 step 必须是有限正数。';
506
+ readonly 'budget.arrayMember': {
507
+ readonly en: 'Array member exceeds the {limit}-character limit.';
508
+ readonly zh: '数组成员超过 {limit} 个字符的上限。';
481
509
  };
482
- readonly 'constraint.coordinateOrder': {
483
- readonly en: 'coordinate {axis}-min cannot exceed {axis}-max.';
484
- readonly zh: 'coordinate 的 {axis}-min 不能大于 {axis}-max。';
510
+ readonly 'budget.arrayContents': {
511
+ readonly en: 'Array contents exceed the {limit}-character limit.';
512
+ readonly zh: '数组内容超过 {limit} 个字符的上限。';
485
513
  };
486
- readonly 'constraint.coordinateStep': {
487
- readonly en: 'coordinate step must be a finite positive number.';
488
- readonly zh: 'coordinate 的 step 必须是有限正数。';
514
+ readonly 'theme.missing': {
515
+ readonly en: 'Theme "{name}" is not registered by the host; using the default theme.';
516
+ readonly zh: '宿主未注册主题“{name}”;将使用默认主题。';
489
517
  };
490
- readonly 'constraint.multiSelectMax': {
491
- readonly en: 'multi-select max-selected must be a nonnegative whole number.';
492
- readonly zh: 'multi-select 的 max-selected 必须是非负整数。';
518
+ readonly 'theme.registryUnreadable': {
519
+ readonly en: 'The host theme registry could not be read; using the default theme.';
520
+ readonly zh: '无法读取宿主主题注册表;将使用默认主题。';
493
521
  };
494
- readonly 'constraint.quizTolerance': {
495
- readonly en: '<quiz> tolerance must be a nonnegative finite number.';
496
- readonly zh: '<quiz> 的 tolerance 必须是非负有限数。';
522
+ readonly 'theme.invalidDefinition': {
523
+ readonly en: 'The selected theme "{name}" is not a valid definition; using the default theme.';
524
+ readonly zh: '所选主题“{name}”不是有效定义;将使用默认主题。';
497
525
  };
498
- readonly 'selection.keyNeedsKey': {
499
- readonly en: '<{component}> {name} requires a key attribute naming the selection column.';
500
- readonly zh: '<{component}> 的 {name} 需要 key 属性来指定选择列。';
526
+ readonly 'theme.duplicateRegistration': {
527
+ readonly en: 'Theme "{name}" is registered more than once; using the default theme.';
528
+ readonly zh: '主题“{name}”被多次注册;将使用默认主题。';
501
529
  };
502
- readonly 'structure.parent': {
503
- readonly en: '<{name}> can only appear directly inside {parents}.';
504
- readonly zh: '<{name}> 只能直接位于 {parents} 内。';
530
+ readonly 'theme.protocol': {
531
+ readonly en: 'Theme "{name}" does not support the {protocol} protocol; using the default theme.';
532
+ readonly zh: '主题“{name}”不支持 {protocol} 协议;将使用默认主题。';
505
533
  };
506
- readonly 'structure.noBody': {
507
- readonly en: '<{name}> does not accept body content.';
508
- readonly zh: '<{name}> 不接受正文内容。';
534
+ readonly 'theme.modes': {
535
+ readonly en: 'Theme "{name}" must supply both light and dark color schemes; using the default theme.';
536
+ readonly zh: '主题“{name}”必须同时提供浅色和深色配色;将使用默认主题。';
509
537
  };
510
- readonly 'structure.inlineOnly': {
511
- readonly en: '<{name}> only accepts inline Markdown.';
512
- readonly zh: '<{name}> 只接受行内 Markdown。';
538
+ readonly 'theme.selectedUnreadable': {
539
+ readonly en: 'The selected theme "{name}" could not be read; using the default theme.';
540
+ readonly zh: '所选主题“{name}”无法读取;将使用默认主题。';
513
541
  };
514
- readonly 'structure.noNestedComponents': {
515
- readonly en: 'The body of <{name}> cannot contain other interactive components.';
516
- readonly zh: '<{name}> 的正文不能包含其他交互组件。';
542
+ readonly 'error.expression-syntax': {
543
+ readonly en: 'Check expression operators, parentheses and arguments.';
544
+ readonly zh: '表达式语法不正确,请检查运算符、括号或参数是否完整。';
517
545
  };
518
- readonly 'structure.noComponents': {
519
- readonly en: 'The body of <{name}> cannot contain interactive components.';
520
- readonly zh: '<{name}> 的正文不能包含交互组件。';
546
+ readonly 'error.expression-index': {
547
+ readonly en: 'An array index must be a finite safe integer.';
548
+ readonly zh: '数组索引必须为有限的安全整数。';
521
549
  };
522
- readonly 'structure.childrenMinimum': {
523
- readonly en: '<{name}> requires at least {min} {children}.';
524
- readonly zh: '<{name}> 至少需要 {min} 个 {children}。';
550
+ readonly 'error.expression-cycle': {
551
+ readonly en: 'Named calculations contain a dependency cycle.';
552
+ readonly zh: '命名计算中存在循环依赖。';
525
553
  };
526
- readonly 'structure.childrenOnly': {
527
- readonly en: 'Direct children of <{name}> must be {children}.';
528
- readonly zh: '<{name}> 的直接子元素必须是 {children}。';
554
+ readonly 'error.array.homogeneous': {
555
+ readonly en: 'Array elements must all be strings or all be numbers.';
556
+ readonly zh: '数组元素必须全部为字符串或全部为数字。';
529
557
  };
530
- readonly 'structure.sequenceMinimum': {
531
- readonly en: '<{name}> requires at least one <{child}>.';
532
- readonly zh: '<{name}> 至少需要一个 <{child}>。';
558
+ readonly 'error.array.finite': {
559
+ readonly en: 'Array members must be finite numbers.';
560
+ readonly zh: '数字数组元素必须为有限数值。';
533
561
  };
534
- readonly 'structure.sequenceOnly': {
535
- readonly en: '<{name}> can only contain <{child}>.';
536
- readonly zh: '<{name}> 只能包含 <{child}>。';
562
+ readonly 'error.array.members': {
563
+ readonly en: 'Array members must be strings or finite numbers.';
564
+ readonly zh: '数组元素必须为字符串或有限数值。';
537
565
  };
538
- readonly 'structure.accordionNeedsDisclosure': {
539
- readonly en: '<accordion> requires at least one <disclosure>.';
540
- readonly zh: '<accordion> 至少需要一个 <disclosure>。';
566
+ readonly 'error.expression-number': {
567
+ readonly en: 'A numeric literal must be finite and valid.';
568
+ readonly zh: '数字字面量无效,必须是有限数值。';
541
569
  };
542
- readonly 'structure.accordionOnly': {
543
- readonly en: '<accordion> can only contain <disclosure>.';
544
- readonly zh: '<accordion> 只能包含 <disclosure>。';
570
+ readonly 'error.expression-string': {
571
+ readonly en: 'Check the string quotes and escape sequences.';
572
+ readonly zh: '字符串格式不正确,请检查引号和转义。';
545
573
  };
546
- readonly 'structure.gridNeedsCard': {
547
- readonly en: '<grid> requires at least one <card>.';
548
- readonly zh: '<grid> 至少需要一个 <card>。';
574
+ readonly 'error.expression-budget': {
575
+ readonly en: 'The expression exceeded a resource budget.';
576
+ readonly zh: '表达式超过长度、节点、深度或求值步数预算,请简化表达式。';
577
+ };
578
+ readonly 'error.expression-assignment': {
579
+ readonly en: 'Assignment is not allowed in expressions.';
580
+ readonly zh: '表达式不能执行赋值,请使用比较运算符。';
549
581
  };
550
- readonly 'structure.gridOnlyCard': {
551
- readonly en: 'Direct children of <grid> must be <card>.';
552
- readonly zh: '<grid> 的直接子元素必须是 <card>。';
582
+ readonly 'error.expression-property': {
583
+ readonly en: 'Property access is not allowed.';
584
+ readonly zh: '表达式不支持属性访问,请直接引用绑定名称。';
553
585
  };
554
- readonly 'structure.exactlyOneTable': {
555
- readonly en: 'The body of <{name}> must be exactly one Markdown table.';
556
- readonly zh: '<{name}> 的正文必须恰好是一个 Markdown 表格。';
586
+ readonly 'error.expression-empty': {
587
+ readonly en: 'An expression is required.';
588
+ readonly zh: '此处需要非空表达式。';
557
589
  };
558
- readonly 'structure.plotNeedsFormula': {
559
- readonly en: '<plot> requires at least one $$...$$ formula block.';
560
- readonly zh: '<plot> 至少需要一个 $$...$$ 公式块。';
590
+ readonly 'error.expression-unknown-function': {
591
+ readonly en: 'Use a supported built-in function.';
592
+ readonly zh: '函数不受支持,请使用语言内置函数。';
561
593
  };
562
- readonly 'structure.plotOnlyFormulas': {
563
- readonly en: 'The body of <plot> can only contain blank lines and $$...$$ formula blocks.';
564
- readonly zh: '<plot> 的正文只能包含空行和 $$...$$ 公式块。';
594
+ readonly 'error.expression-arity': {
595
+ readonly en: 'Check the function argument count.';
596
+ readonly zh: '函数参数数量不正确。';
565
597
  };
566
- readonly 'structure.nodeNoComponents': {
567
- readonly en: 'The description of <node> cannot contain interactive components.';
568
- readonly zh: '<node> 的描述不能包含交互组件。';
598
+ readonly 'error.expression-forbidden-name': {
599
+ readonly en: 'The name is forbidden.';
600
+ readonly zh: '此名称属于禁止访问的名称,请使用已声明的绑定。';
569
601
  };
570
- readonly 'structure.optionsNeeded': {
571
- readonly en: '<{name}> requires at least one <option value="...">.';
572
- readonly zh: '<{name}> 至少需要一个 <option value="...">。';
602
+ readonly 'error.expression-type': {
603
+ readonly en: 'Operand or argument types do not match.';
604
+ readonly zh: '操作数或函数参数的类型不匹配,请检查绑定类型。';
573
605
  };
574
- readonly 'structure.optionsOnly': {
575
- readonly en: '<{name}> can only contain <option>.';
576
- readonly zh: '<{name}> 只能包含 <option>。';
606
+ readonly 'error.expression-unknown-name': {
607
+ readonly en: 'The binding is not declared.';
608
+ readonly zh: '引用了未声明的绑定。';
577
609
  };
578
- readonly 'budget.options': {
579
- readonly en: '<{name}> options exceed the limit of {limit}.';
580
- readonly zh: '<{name}> 的选项数量超过上限 {limit}。';
610
+ readonly 'error.expression-value': {
611
+ readonly en: 'The binding value is not supported.';
612
+ readonly zh: '绑定值不符合表达式支持的类型或数值范围。';
581
613
  };
582
- readonly 'option.valueRequired': {
583
- readonly en: '<option> requires a non-empty value.';
584
- readonly zh: '<option> 需要非空 value。';
614
+ readonly 'error.expression-eval': {
615
+ readonly en: 'The expression cannot be evaluated.';
616
+ readonly zh: '表达式无法求值,请检查输入和运算条件。';
585
617
  };
586
- readonly 'option.valueComma': {
587
- readonly en: '<multi-select> option values cannot contain commas: "{value}".';
588
- readonly zh: '<multi-select> 的选项值不能包含逗号:“{value}”。';
618
+ readonly 'error.expression-domain': {
619
+ readonly en: 'A value lies outside the function domain.';
620
+ readonly zh: '参数超出函数定义域。';
589
621
  };
590
- readonly 'option.valueDuplicate': {
591
- readonly en: 'Option values in <{name}> must be unique; duplicate value "{value}".';
592
- readonly zh: '<{name}> 的选项值必须唯一;重复值“{value}”。';
622
+ readonly 'error.expression-divide-by-zero': {
623
+ readonly en: 'Division by zero is undefined.';
624
+ readonly zh: '除数不能为零。';
593
625
  };
594
- readonly 'structure.optionNoComponents': {
595
- readonly en: 'The body of <option> cannot contain interactive components.';
596
- readonly zh: '<option> 的正文不能包含交互组件。';
626
+ readonly 'error.expression-interpolation': {
627
+ readonly en: 'Check interpolation delimiters and content.';
628
+ readonly zh: '插值格式不正确,请检查分隔符和表达式内容。';
597
629
  };
598
- readonly 'structure.tabsNeedsTab': {
599
- readonly en: '<tabs> requires at least one <tab>.';
600
- readonly zh: '<tabs> 至少需要一个 <tab>。';
630
+ readonly 'error.latex-budget': {
631
+ readonly en: 'The formula exceeded a resource budget.';
632
+ readonly zh: '公式超过长度、记号、节点、深度或计算步数预算,请简化公式。';
601
633
  };
602
- readonly 'structure.tabsOnly': {
603
- readonly en: '<tabs> can only contain <tab>.';
604
- readonly zh: '<tabs> 只能包含 <tab>。';
634
+ readonly 'error.latex-syntax': {
635
+ readonly en: 'Check formula syntax and delimiters.';
636
+ readonly zh: '公式语法不正确,请检查命令、括号和分隔符。';
605
637
  };
606
- readonly 'tab.valueDuplicate': {
607
- readonly en: 'Tab values in <tabs> must be unique; duplicate value "{value}".';
608
- readonly zh: '<tabs> 的标签值必须唯一;重复值“{value}”。';
638
+ readonly 'error.latex-empty': {
639
+ readonly en: 'A formula is required.';
640
+ readonly zh: '公式不能为空。';
609
641
  };
610
- readonly 'structure.stepsNeedsStep': {
611
- readonly en: '<steps> requires at least one <step>.';
612
- readonly zh: '<steps> 至少需要一个 <step>。';
642
+ readonly 'error.latex-relation': {
643
+ readonly en: 'Check the formula relation.';
644
+ readonly zh: '公式中的关系式不符合计算语法。';
613
645
  };
614
- readonly 'structure.stepsOnly': {
615
- readonly en: '<steps> can only contain <step>.';
616
- readonly zh: '<steps> 只能包含 <step>。';
646
+ readonly 'error.latex-number': {
647
+ readonly en: 'A formula number must be finite.';
648
+ readonly zh: '公式中的数字必须是有限数值。';
617
649
  };
618
- readonly 'step.valueDuplicate': {
619
- readonly en: 'Step values in <steps> must be unique; duplicate value "{value}".';
620
- readonly zh: '<steps> 的步骤值必须唯一;重复值“{value}”。';
650
+ readonly 'error.latex-name': {
651
+ readonly en: 'Use a valid formula parameter name.';
652
+ readonly zh: '公式参数名称无效,请使用合法绑定名。';
621
653
  };
622
- readonly 'quiz.answerRequired': {
623
- readonly en: '<quiz> requires a non-empty answer.';
624
- readonly zh: '<quiz> 需要非空 answer。';
654
+ readonly 'error.latex-unsupported': {
655
+ readonly en: 'The LaTeX structure is not computable.';
656
+ readonly zh: '此 LaTeX 结构不支持计算,请改用支持的函数和运算。';
625
657
  };
626
- readonly 'structure.quizNumericNoBody': {
627
- readonly en: 'A numeric <quiz> cannot have body content; use type="choice" for option-based quizzes.';
628
- readonly zh: '数值型 <quiz> 不能有正文内容;基于选项的测验请使用 type="choice"。';
658
+ readonly 'error.latex-variable': {
659
+ readonly en: 'A numeric formula parameter is missing or invalid.';
660
+ readonly zh: '公式引用的参数缺失或不是有限数字。';
629
661
  };
630
- readonly 'quiz.answerNumeric': {
631
- readonly en: 'A numeric <quiz> answer must be a finite number.';
632
- readonly zh: '数值型 <quiz> 的 answer 必须是有限数字。';
662
+ readonly 'error.latex-type': {
663
+ readonly en: 'A formula parameter has the wrong type.';
664
+ readonly zh: '公式参数类型不正确,计算参数必须为数字。';
633
665
  };
634
- readonly 'quiz.answerNotOption': {
635
- readonly en: '<quiz> answer "{answer}" is not one of the option values: {options}.';
636
- readonly zh: '<quiz> 的 answer“{answer}”不在选项值中:{options}。';
666
+ readonly 'error.latex-divide-by-zero': {
667
+ readonly en: 'Division by zero is undefined.';
668
+ readonly zh: '公式中的除数不能为零。';
637
669
  };
638
- readonly 'diagram.needsNode': {
639
- readonly en: '<diagram> requires at least one <node>.';
640
- readonly zh: '<diagram> 至少需要一个 <node>。';
670
+ readonly 'error.latex-domain': {
671
+ readonly en: 'A formula value lies outside the function domain.';
672
+ readonly zh: '公式参数超出函数定义域。';
641
673
  };
642
- readonly 'structure.diagramOnly': {
643
- readonly en: '<diagram> can only contain <node> and <edge>.';
644
- readonly zh: '<diagram> 只能包含 <node> 和 <edge>。';
674
+ readonly 'error.latex-undefined': {
675
+ readonly en: 'The formula is undefined at this point.';
676
+ readonly zh: '公式在此点没有有限定义值。';
645
677
  };
646
- readonly 'diagram.nodeInvalid': {
647
- readonly en: 'Node ID "{id}" may only contain letters, digits, underscores and hyphens, and cannot start with a digit.';
648
- readonly zh: '节点 ID“{id}”只能包含字母、数字、下划线和连字符,且不能以数字开头。';
678
+ readonly 'error.latex-plot-range': {
679
+ readonly en: 'Plot bounds must be finite and increasing.';
680
+ readonly zh: '绘图区间必须由有限数值构成,且最小值小于最大值。';
649
681
  };
650
- readonly 'diagram.nodeDuplicate': {
651
- readonly en: 'Duplicate node ID "{id}".';
652
- readonly zh: '重复的节点 ID“{id}”。';
682
+ readonly 'error.latex-plot-samples': {
683
+ readonly en: 'The sample count must be an integer from 2 to 2000.';
684
+ readonly zh: '采样点数必须为 2 至 2000 的整数。';
653
685
  };
654
- readonly 'diagram.edgeFromUnknown': {
655
- readonly en: 'Edge from references unknown node "{id}".';
656
- readonly zh: '连线起点引用了未知节点“{id}”。';
686
+ readonly 'local.external.placement': {
687
+ readonly en: '<external> declarations must be standalone tags at the document top level.';
688
+ readonly zh: '<external> 声明必须独占一行,位于文档顶层。';
657
689
  };
658
- readonly 'diagram.edgeToUnknown': {
659
- readonly en: 'Edge to references unknown node "{id}".';
660
- readonly zh: '连线终点引用了未知节点“{id}”。';
690
+ readonly 'local.external.name': {
691
+ readonly en: 'External name "{name}" must match [A-Za-z_][A-Za-z0-9_]*.';
692
+ readonly zh: '外部名称“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。';
661
693
  };
662
- readonly 'diagram.edgeDuplicate': {
663
- readonly en: 'Duplicate edge: {from} → {to}{label}.';
664
- readonly zh: '重复的连线:{from} → {to}{label}。';
694
+ readonly 'local.external.reserved': {
695
+ readonly en: 'External name "{name}" is reserved; choose another name.';
696
+ readonly zh: '外部名称“{name}”为保留名称,请更换。';
665
697
  };
666
- readonly 'checklist.bodySingle': {
667
- readonly en: 'The body of <checklist> must be exactly one single-level Markdown task list.';
668
- readonly zh: '<checklist> 的正文必须恰好是一个单层 Markdown 任务列表。';
698
+ readonly 'local.external.duplicate': {
699
+ readonly en: 'External name "{name}" is declared more than once.';
700
+ readonly zh: '外部名称“{name}”被重复声明。';
669
701
  };
670
- readonly 'checklist.needsItem': {
671
- readonly en: '<checklist> requires at least one task list item.';
672
- readonly zh: '<checklist> 至少需要一个任务列表项。';
702
+ readonly 'local.external.conflict': {
703
+ readonly en: 'External name "{name}" conflicts with a control parameter of the same name.';
704
+ readonly zh: '外部名称“{name}”与同名控件参数冲突。';
673
705
  };
674
- readonly 'budget.checklistItems': {
675
- readonly en: '<checklist> items exceed the limit of {limit}.';
676
- readonly zh: '<checklist> 的任务项数量超过上限 {limit}。';
706
+ readonly 'local.external.type': {
707
+ readonly en: 'External "{name}" must declare type string, number, boolean, string-array or number-array.';
708
+ readonly zh: '外部声明“{name}”必须声明 string、number、boolean、string-array 或 number-array 类型。';
677
709
  };
678
- readonly 'checklist.taskOnly': {
679
- readonly en: '<checklist> can only contain task list items (- [ ] / - [x]).';
680
- readonly zh: '<checklist> 只能包含任务列表项(- [ ] / - [x])。';
710
+ readonly 'local.host.structure.leaf': {
711
+ readonly en: 'Host component <{component}> is a leaf and cannot have body content.';
712
+ readonly zh: '宿主组件 <{component}> 是叶子组件,不能包含正文内容。';
681
713
  };
682
- readonly 'checklist.noNested': {
683
- readonly en: '<checklist> does not support nested lists.';
684
- readonly zh: '<checklist> 不支持嵌套列表。';
714
+ readonly 'local.runtime.external': {
715
+ readonly en: 'External value {name} cannot be written.';
716
+ readonly zh: '无法写入外部数据 {name}。';
685
717
  };
686
- readonly 'checklist.noComponents': {
687
- readonly en: '<checklist> items cannot contain interactive components.';
688
- readonly zh: '<checklist> 的任务项不能包含交互组件。';
718
+ readonly 'local.runtime.external-value': {
719
+ readonly en: 'External value {name} must be {kind}.';
720
+ readonly zh: '外部数据 {name} 必须是 {kind} 类型。';
689
721
  };
690
- readonly 'budget.identifier': {
691
- readonly en: 'Parameter name exceeds the {limit}-character limit.';
692
- readonly zh: '参数名超过 {limit} 个字符的上限。';
722
+ readonly 'local.runtime.external-budget': {
723
+ readonly en: 'External value {name} exceeds a resource limit.';
724
+ readonly zh: '外部数据 {name} 超过资源限制。';
693
725
  };
694
- readonly 'binding.nameInvalid': {
695
- readonly en: 'Parameter name "{name}" must match [A-Za-z_][A-Za-z0-9_]*.';
696
- readonly zh: '参数名“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。';
726
+ readonly 'local.runtime.value.constraint': {
727
+ readonly en: 'Dynamic {attribute} constraint failed for parameter {name}.';
728
+ readonly zh: '参数 {name} 的动态 {attribute} 约束无法计算。';
697
729
  };
698
- readonly 'binding.reserved': {
699
- readonly en: 'Parameter name "{name}" is reserved; choose another name.';
700
- readonly zh: '参数名“{name}”是保留名称;请换一个名称。';
730
+ readonly 'local.runtime.value.constraint-range': {
731
+ readonly en: 'Dynamic constraints for parameter {name} produce an invalid range.';
732
+ readonly zh: '参数 {name} 的动态约束产生无效范围。';
701
733
  };
702
- readonly 'binding.typeConflict': {
703
- readonly en: 'Parameter "{key}" is already declared as {kind} by <{first}> and cannot also bind <{second}>.';
704
- readonly zh: '参数“{key}”已由 <{first}> 声明为 {kind},不能再绑定 <{second}>。';
734
+ readonly 'local.runtime.value.constraint-date': {
735
+ readonly en: 'Dynamic {attribute} date bound for parameter {name} is not a valid YYYY-MM-DD value.';
736
+ readonly zh: '参数 {name} 的动态 {attribute} 日期边界不是合法的 YYYY-MM-DD。';
705
737
  };
706
- readonly 'binding.exclusive': {
707
- readonly en: 'Parameter "{key}" of <{first}> can only be owned by one component and cannot be shared with <{second}>.';
708
- readonly zh: '<{first}> 的参数“{key}”只能由一个组件拥有,不能与 <{second}> 共享。';
738
+ readonly 'local.version.unsupported': {
739
+ readonly en: 'This reader accepts {supported}; migrate {declared} or use a compatible reader.';
740
+ readonly zh: '此阅读器支持 {supported};请迁移 {declared} 或使用兼容的阅读器。';
709
741
  };
710
- readonly 'binding.slotExclusive': {
711
- readonly en: 'Parameter "{key}" of the {slot} slot of <{name}> is exclusive and cannot be shared with another control.';
712
- readonly zh: '<{name}> 的 {slot} 槽参数“{key}”是独占的,不能与另一个控件共享。';
742
+ readonly 'local.version.malformed': {
743
+ readonly en: 'Use <!-- reactive-md: local-draft-3 --> on one line.';
744
+ readonly zh: '请在单独一行使用 <!-- reactive-md: local-draft-3 -->。';
713
745
  };
714
- readonly 'binding.constraintConflict': {
715
- readonly en: 'Parameter "{key}" must use the same numeric range and step: <{first}> has {firstConstraints}, <{second}> has {secondConstraints}.';
716
- readonly zh: '参数“{key}”必须使用相同的数值范围和步长:<{first}> 为 {firstConstraints},<{second}> 为 {secondConstraints}。';
746
+ readonly 'local.version.duplicate': {
747
+ readonly en: 'Only one source syntax declaration is allowed.';
748
+ readonly zh: '源码只能声明一次语法版本。';
749
+ };
750
+ readonly 'local.version.placement': {
751
+ readonly en: 'The syntax declaration must be on its own line before the theme and document body.';
752
+ readonly zh: '语法版本声明必须独占一行,位于主题声明和正文之前。';
717
753
  };
718
- readonly 'binding.optionConflict': {
719
- readonly en: 'Parameter "{key}" must use the same option set in the same order.';
720
- readonly zh: '参数“{key}”必须使用相同顺序的同一组选项。';
754
+ readonly 'local.upgrade.from-version': {
755
+ readonly en: 'Cannot migrate from {from}: {detail}.';
756
+ readonly zh: '无法从 {from} 迁移:{detail}。';
721
757
  };
722
- readonly 'initial.duplicate': {
723
- readonly en: 'Parameter "{key}" has multiple explicit initial values ({count} in total).';
724
- readonly zh: '参数“{key}”有多个显式初值(共 {count} 个)。';
758
+ readonly 'local.upgrade.reserved-binding': {
759
+ readonly en: 'Binding {name} becomes reserved in local-draft-2; rename it with a compatible old editor before migration.';
760
+ readonly zh: '绑定 {name} 在 local-draft-2 中成为保留名;迁移前请用兼容旧版本的编辑器重命名。';
725
761
  };
726
- readonly 'initial.duplicatePeers': {
727
- readonly en: 'Parameter "{key}" has multiple explicit initial values ({count} in total; see also line {lines}).';
728
- readonly zh: '参数“{key}”有多个显式初值(共 {count} 个;另见第 {lines} 行)。';
762
+ readonly 'local.upgrade.tag': {
763
+ readonly en: 'Tag {name} was inert in the older revision and becomes active in a newer one; preserve it as literal code before migration.';
764
+ readonly zh: '标签 {name} 在旧版本中不执行,在较新版本中会激活;迁移前请将其保留为代码原文。';
729
765
  };
730
- readonly 'initial.rangeNoStep': {
731
- readonly en: 'Parameter "{key}" has no valid step value within range [{min}, {max}].';
732
- readonly zh: '参数“{key}”在范围 [{min}, {max}] 内没有有效的步长值。';
766
+ readonly 'local.upgrade.text-length': {
767
+ readonly en: 'Text length constraints change from UTF-16 units to Unicode code points; explicitly accept this semantic change before migration.';
768
+ readonly zh: '文本长度约束从 UTF-16 单元改为 Unicode 码点计数;迁移前须明确接受这一语义变化。';
733
769
  };
734
- readonly 'initial.cannotDerive': {
735
- readonly en: 'Cannot derive a default initial value for <{name}> parameter "{key}".';
736
- readonly zh: '无法为 <{name}> 的参数“{key}”推导默认初值。';
770
+ readonly 'local.upgrade.expression': {
771
+ readonly en: 'This expression uses array syntax or a function introduced in local-draft-2; it is outside automatic draft-1 migration.';
772
+ readonly zh: '此表达式使用了 local-draft-2 新增的数组语法或函数,不属于 draft-1 自动迁移范围。';
737
773
  };
738
- readonly 'initial.typeFiniteNumber': {
739
- readonly en: 'Initial value of parameter "{key}" must be a finite number.';
740
- readonly zh: '参数“{key}”的初值必须是有限数字。';
774
+ readonly 'local.upgrade.version-missing': {
775
+ readonly en: 'The source has no syntax declaration; migration will pin {version}.';
776
+ readonly zh: '源码尚未声明语法版本;迁移将固定为 {version}。';
741
777
  };
742
- readonly 'initial.belowMin': {
743
- readonly en: 'Initial value {value} of parameter "{key}" is below the minimum {min}.';
744
- readonly zh: '参数“{key}”的初值 {value} 小于最小值 {min}。';
778
+ readonly 'capability.html': {
779
+ readonly en: 'This compiler assembly does not include the native HTML document branch.';
780
+ readonly zh: '当前编译器装配不包含原生 HTML 文档分支。';
745
781
  };
746
- readonly 'initial.aboveMax': {
747
- readonly en: 'Initial value {value} of parameter "{key}" exceeds the maximum {max}.';
748
- readonly zh: '参数“{key}”的初值 {value} 超过最大值 {max}。';
782
+ readonly 'capability.plot': {
783
+ readonly en: 'This compiler assembly does not include plot formula support.';
784
+ readonly zh: '当前编译器装配不包含绘图公式支持。';
749
785
  };
750
- readonly 'initial.offStep': {
751
- readonly en: 'Initial value {value} of parameter "{key}" is not on step {step} (based at {base}).';
752
- readonly zh: '参数“{key}”的初值 {value} 不在步长 {step} 上(基准 {base})。';
786
+ readonly 'parse.sourceType': {
787
+ readonly en: 'Document source must be a string.';
788
+ readonly zh: '文档源必须是字符串。';
753
789
  };
754
- readonly 'initial.typeBoolean': {
755
- readonly en: 'Initial value of parameter "{key}" must be a boolean.';
756
- readonly zh: '参数“{key}”的初值必须是布尔值。';
790
+ readonly 'parse.markdownFailed': {
791
+ readonly en: 'Cannot parse the Markdown document.';
792
+ readonly zh: '无法解析 Markdown 文档。';
757
793
  };
758
- readonly 'initial.notAmongOptions': {
759
- readonly en: 'Initial value "{value}" of parameter "{key}" is not among the available values {options}.';
760
- readonly zh: '参数“{key}”的初值“{value}”不在可用值 {options} 中。';
794
+ readonly 'parse.failed': {
795
+ readonly en: 'Cannot parse document: {detail}';
796
+ readonly zh: '无法解析文档:{detail}';
761
797
  };
762
- readonly 'initial.typeWrong': {
763
- readonly en: 'Initial value of parameter "{name}" has the wrong type.';
764
- readonly zh: '参数“{name}”的初值类型不正确。';
798
+ readonly 'budget.document': {
799
+ readonly en: 'Document exceeds the {limit}-character limit.';
800
+ readonly zh: '文档超过 {limit} 个字符的上限。';
765
801
  };
766
- readonly 'initial.typeCollection': {
767
- readonly en: 'Initial value of parameter "{key}" must be a JSON array.';
768
- readonly zh: '参数“{key}”的初值必须是 JSON 数组。';
802
+ readonly 'budget.syntaxNodes': {
803
+ readonly en: 'Syntax nodes exceed the limit of {limit}.';
804
+ readonly zh: '语法节点数量超过上限 {limit}。';
769
805
  };
770
- readonly 'initial.typeStringArray': {
771
- readonly en: 'Initial value of parameter "{key}" must be an array of strings.';
772
- readonly zh: '参数“{key}”的初值必须是字符串数组。';
806
+ readonly 'budget.parseWork': {
807
+ readonly en: 'Parsing work exceeds the limit of {limit}.';
808
+ readonly zh: '解析工作量超过上限 {limit}。';
773
809
  };
774
- readonly 'initial.typeNumberArray': {
775
- readonly en: 'Initial value of parameter "{key}" must be an array of finite numbers.';
776
- readonly zh: '参数“{key}”的初值必须是有限数字组成的数组。';
810
+ readonly 'budget.markdownDepth': {
811
+ readonly en: 'Markdown nesting exceeds the {limit}-level limit.';
812
+ readonly zh: 'Markdown 嵌套超过 {limit} 层上限。';
777
813
  };
778
- readonly 'initial.maxItems': {
779
- readonly en: 'Initial value of parameter "{key}" exceeds the limit of {max} items.';
780
- readonly zh: '参数“{key}”的初值超过 {max} 项的上限。';
814
+ readonly 'budget.nesting': {
815
+ readonly en: 'Component nesting exceeds the {limit}-level limit.';
816
+ readonly zh: '组件嵌套超过 {limit} 层上限。';
781
817
  };
782
- readonly 'initial.dateInvalid': {
783
- readonly en: 'Initial date "{value}" is not a valid YYYY-MM-DD.';
784
- readonly zh: '初值日期“{value}”不是有效的 YYYY-MM-DD。';
818
+ readonly 'options.notObject': {
819
+ readonly en: 'Compile options must be an object.';
820
+ readonly zh: '编译选项必须是对象。';
785
821
  };
786
- readonly 'initial.notAvailableOption': {
787
- readonly en: 'Initial value "{value}" is not an available option: {options}.';
788
- readonly zh: '初值“{value}”不是可用选项:{options}。';
822
+ readonly 'options.limitsNotObject': {
823
+ readonly en: 'Compile option limits must be an object.';
824
+ readonly zh: '编译选项 limits 必须是对象。';
789
825
  };
790
- readonly 'initial.multiSelectOption': {
791
- readonly en: 'Initial value "{value}" of parameter "{key}" is not an option of <multi-select>.';
792
- readonly zh: '参数“{key}”的初值“{value}”不是 <multi-select> 的选项。';
826
+ readonly 'options.maxSyntaxNodes': {
827
+ readonly en: 'Compile option limits.maxSyntaxNodes must be a positive safe integer.';
828
+ readonly zh: '编译选项 limits.maxSyntaxNodes 必须是正安全整数。';
793
829
  };
794
- readonly 'initial.rangeSliderOrder': {
795
- readonly en: '<range-slider> start {start} cannot be greater than end {end}.';
796
- readonly zh: '<range-slider> 的 start {start} 不能大于 end {end}。';
830
+ readonly 'options.maxParseWork': {
831
+ readonly en: 'Compile option limits.maxParseWork must be a positive safe integer.';
832
+ readonly zh: '编译选项 limits.maxParseWork 必须是正安全整数。';
797
833
  };
798
- readonly 'initial.slotBelowMin': {
799
- readonly en: 'Initial value {value} of <{name}> {slot} is below the minimum {min}.';
800
- readonly zh: '<{name}> 的 {slot} 初值 {value} 小于最小值 {min}。';
834
+ readonly 'options.maxMarkdownDepth': {
835
+ readonly en: 'Compile option limits.maxMarkdownDepth must be a positive safe integer.';
836
+ readonly zh: '编译选项 limits.maxMarkdownDepth 必须是正安全整数。';
801
837
  };
802
- readonly 'initial.slotAboveMax': {
803
- readonly en: 'Initial value {value} of <{name}> {slot} exceeds the maximum {max}.';
804
- readonly zh: '<{name}> 的 {slot} 初值 {value} 超过最大值 {max}。';
838
+ readonly 'options.unknownLimit': {
839
+ readonly en: 'Compile option limits.{detail} is not supported.';
840
+ readonly zh: '编译选项 limits.{detail} 不受支持。';
805
841
  };
806
- readonly 'initial.slotOffStep': {
807
- readonly en: 'Initial value {value} of <{name}> {slot} is not on step {step} (based at {base}).';
808
- readonly zh: '<{name}> 的 {slot} 初值 {value} 不在步长 {step} 上(基准 {base})。';
842
+ readonly 'options.hostComponents': {
843
+ readonly en: 'Compile option hostComponents is invalid: {detail}';
844
+ readonly zh: '编译选项 hostComponents 无效:{detail}';
809
845
  };
810
- readonly 'initial.lengthBelow': {
811
- readonly en: 'Initial value of parameter "{key}" has length {length}, below the minimum length {min} required by <{name}>.';
812
- readonly zh: '参数“{key}”的初值长度为 {length},小于 <{name}> 要求的最小长度 {min}。';
846
+ readonly 'theme.expression': {
847
+ readonly en: 'Theme names must be static text, not expressions.';
848
+ readonly zh: '主题名称必须是静态文本,不能是表达式。';
813
849
  };
814
- readonly 'initial.lengthAbove': {
815
- readonly en: 'Initial value of parameter "{key}" has length {length}, exceeding the maximum length {max} allowed by <{name}>.';
816
- readonly zh: '参数“{key}”的初值长度为 {length},超过 <{name}> 允许的最大长度 {max}。';
850
+ readonly 'theme.nameRequired': {
851
+ readonly en: 'A theme declaration requires a quoted name attribute.';
852
+ readonly zh: '主题声明需要一个带引号的 name 属性。';
817
853
  };
818
- readonly 'initial.email': {
819
- readonly en: 'Initial value of parameter "{key}" is not a valid email address.';
820
- readonly zh: '参数“{key}”的初值不是有效的电子邮件地址。';
854
+ readonly 'theme.attributeOnly': {
855
+ readonly en: 'Theme declarations only accept a quoted name attribute.';
856
+ readonly zh: '主题声明只接受带引号的 name 属性。';
821
857
  };
822
- readonly 'initial.dateBelow': {
823
- readonly en: 'Initial value {value} of parameter "{key}" is earlier than the minimum date {min} of <date>.';
824
- readonly zh: '参数“{key}”的初值 {value} 早于 <date> 的最小日期 {min}。';
858
+ readonly 'theme.nameInvalid': {
859
+ readonly en: 'Theme name "{name}" must use lowercase letters, digits and single hyphens (maximum {limit} characters).';
860
+ readonly zh: '主题名称“{name}”只能使用小写字母、数字和单个连字符(最多 {limit} 个字符)。';
825
861
  };
826
- readonly 'initial.dateAbove': {
827
- readonly en: 'Initial value {value} of parameter "{key}" is later than the maximum date {max} of <date>.';
828
- readonly zh: '参数“{key}”的初值 {value} 晚于 <date> 的最大日期 {max}。';
862
+ readonly 'theme.malformedMissingClose': {
863
+ readonly en: 'Theme declaration is missing >.';
864
+ readonly zh: '主题声明缺少 >。';
829
865
  };
830
- readonly 'initial.multiSelectExceeds': {
831
- readonly en: 'Initial values of <multi-select> exceed max-selected {max}.';
832
- readonly zh: '<multi-select> 的初值数量超过 max-selected {max}。';
866
+ readonly 'theme.malformedClosing': {
867
+ readonly en: 'A theme declaration cannot be a closing tag.';
868
+ readonly zh: '主题声明不能是结束标签。';
833
869
  };
834
- readonly 'expression.error': {
835
- readonly en: 'Expression error: {detail}';
836
- readonly zh: '表达式错误:{detail}';
870
+ readonly 'theme.malformedStandalone': {
871
+ readonly en: 'A theme declaration must be on its own line before the document content.';
872
+ readonly zh: '主题声明必须单独占一行并位于文档内容之前。';
837
873
  };
838
- readonly 'binding.unknownSuggestion': {
839
- readonly en: 'Reference to undeclared parameter {name}. Did you mean {suggestion}?';
840
- readonly zh: '引用了未声明的参数 {name}。是否想使用 {suggestion}?';
874
+ readonly 'theme.duplicateDeclaration': {
875
+ readonly en: 'Only one theme declaration is allowed before the document content; this declaration is ignored.';
876
+ readonly zh: '文档内容之前只允许一个主题声明;此声明将被忽略。';
841
877
  };
842
- readonly 'binding.unknownPlain': {
843
- readonly en: 'Reference to undeclared parameter {name}.';
844
- readonly zh: '引用了未声明的参数 {name}。';
878
+ readonly 'theme.late': {
879
+ readonly en: 'Theme declarations after document content are ignored.';
880
+ readonly zh: '文档内容之后的主题声明将被忽略。';
845
881
  };
846
- readonly 'type.number': {
847
- readonly en: 'Expected a number here, but the expression evaluates to {kind}.';
848
- readonly zh: '此处需要数字,但表达式结果为 {kind}。';
882
+ readonly 'theme.nested': {
883
+ readonly en: 'Theme declarations inside document content are ignored.';
884
+ readonly zh: '文档内容内部的主题声明将被忽略。';
849
885
  };
850
- readonly 'type.boolean': {
851
- readonly en: 'Expected a boolean here, but the expression evaluates to {kind}.';
852
- readonly zh: '此处需要布尔值,但表达式结果为 {kind}。';
886
+ readonly 'theme.invalidDeclaration': {
887
+ readonly en: 'Invalid theme declaration.';
888
+ readonly zh: '无效的主题声明。';
853
889
  };
854
- readonly 'type.string': {
855
- readonly en: 'Expected a string here, but the expression evaluates to {kind}.';
856
- readonly zh: '此处需要字符串,但表达式结果为 {kind}。';
890
+ readonly 'attribute.lowercase': {
891
+ readonly en: 'Attribute names must use lowercase kebab-case.';
892
+ readonly zh: '属性名必须使用小写 kebab-case。';
857
893
  };
858
- readonly 'type.arrayNoDisplay': {
859
- readonly en: 'Arrays cannot be displayed directly; convert them first with a function such as len.';
860
- readonly zh: '数组不能直接显示;请先用 len 等函数转换。';
894
+ readonly 'budget.attributeName': {
895
+ readonly en: 'Attribute name exceeds the {limit}-character limit.';
896
+ readonly zh: '属性名超过 {limit} 个字符的上限。';
861
897
  };
862
- readonly 'attribute.fullInterpolation': {
863
- readonly en: 'The {name} attribute of <{component}> must be a full interpolation.';
864
- readonly zh: '<{component}> 的 {name} 属性必须是完整插值。';
898
+ readonly 'attribute.nameInvalid': {
899
+ readonly en: 'Attribute name {name} must use lowercase kebab-case.';
900
+ readonly zh: '属性名 {name} 必须使用小写 kebab-case。';
865
901
  };
866
- readonly 'anchor.idInvalid': {
867
- readonly en: 'Anchor id "{id}" must match [A-Za-z_][A-Za-z0-9_-]*.';
868
- readonly zh: '锚点 id“{id}”必须匹配 [A-Za-z_][A-Za-z0-9_-]*。';
902
+ readonly 'attribute.valueQuoted': {
903
+ readonly en: 'Attribute {name} value must be quoted.';
904
+ readonly zh: '属性 {name} 的值必须加引号。';
869
905
  };
870
- readonly 'anchor.duplicate': {
871
- readonly en: 'Duplicate anchor id "{id}".';
872
- readonly zh: '重复的锚点 id“{id}”。';
906
+ readonly 'attribute.valueUnclosed': {
907
+ readonly en: 'Attribute {name} is missing a closing quote.';
908
+ readonly zh: '属性 {name} 缺少结束引号。';
873
909
  };
874
- readonly 'anchor.headingCollision': {
875
- readonly en: 'Anchor id "{id}" collides with an automatic heading target.';
876
- readonly zh: '锚点 id“{id}”与自动标题目标冲突。';
910
+ readonly 'attribute.duplicate': {
911
+ readonly en: 'Duplicate attribute {name}.';
912
+ readonly zh: '重复的属性 {name}。';
877
913
  };
878
- readonly 'jump.empty': {
879
- readonly en: '<jump> target cannot be empty.';
880
- readonly zh: '<jump> 的目标不能为空。';
914
+ readonly 'attribute.separator': {
915
+ readonly en: 'Attributes must be separated by whitespace.';
916
+ readonly zh: '属性之间必须用空白分隔。';
881
917
  };
882
- readonly 'jump.badTarget': {
883
- readonly en: '<jump> target "{target}" must be a bare heading slug or anchor id without "#" or whitespace.';
884
- readonly zh: '<jump> 的目标“{target}”必须是不含“#”或空白的标题 slug 或锚点 id。';
918
+ readonly 'budget.tagName': {
919
+ readonly en: 'Tag name exceeds the {limit}-character limit.';
920
+ readonly zh: '标签名超过 {limit} 个字符的上限。';
921
+ };
922
+ readonly 'tag.missingClose': {
923
+ readonly en: 'Tag {name} is missing >.';
924
+ readonly zh: '标签 {name} 缺少 >。';
885
925
  };
886
- readonly 'jump.unresolved': {
887
- readonly en: '<jump> target "{target}" does not resolve to a heading or explicit anchor in this document.';
888
- readonly zh: '<jump> 的目标“{target}”无法解析到本文档中的标题或显式锚点。';
926
+ readonly 'tag.closingAttributes': {
927
+ readonly en: 'Closing tag </{name}> cannot have attributes.';
928
+ readonly zh: '结束标签 </{name}> 不能带属性。';
889
929
  };
890
- readonly 'budget.plotCurves': {
891
- readonly en: '<plot> supports at most {limit} curves, but has {count}.';
892
- readonly zh: '<plot> 最多支持 {limit} 条曲线,当前有 {count} 条。';
930
+ readonly 'tag.nameInvalid': {
931
+ readonly en: 'Tag name {name} must use lowercase kebab-case.';
932
+ readonly zh: '标签名 {name} 必须使用小写 kebab-case。';
893
933
  };
894
- readonly 'budget.plotPoints': {
895
- readonly en: "The document's total plot sample count exceeds the limit of {limit}.";
896
- readonly zh: '文档的绘图采样点总数超过上限 {limit}。';
934
+ readonly 'tag.unclosedPaired': {
935
+ readonly en: '<{name}> is missing </{name}>.';
936
+ readonly zh: '<{name}> 缺少 </{name}>。';
897
937
  };
898
- readonly 'math.formulaShape': {
899
- readonly en: '<plot> formulas must be an equation: y = f(x), a parametric cases block, or an implicit equation in x and y.';
900
- readonly zh: '<plot> 的公式必须是方程:y = f(x)、参数方程 cases 块,或关于 x 和 y 的隐式方程。';
938
+ readonly 'tag.mismatchRoot': {
939
+ readonly en: 'Closing tag </{name}> does not match the document root.';
940
+ readonly zh: '结束标签 </{name}> 与文档根不匹配。';
901
941
  };
902
- readonly 'math.computeFailed': {
903
- readonly en: 'Cannot compute plot formula: {detail}';
904
- readonly zh: '无法计算绘图公式(错误代码 {code}):{detail}';
942
+ readonly 'tag.mismatchParent': {
943
+ readonly en: 'Closing tag </{name}> does not match <{parent}>.';
944
+ readonly zh: '结束标签 </{name}> 与 <{parent}> 不匹配。';
905
945
  };
906
- readonly 'math.bindingUnknown': {
907
- readonly en: 'Plot formula references undeclared parameter "{name}".';
908
- readonly zh: '绘图公式引用了未声明的参数“{name}”。';
946
+ readonly 'tag.requiresClose': {
947
+ readonly en: '<{name}> requires a closing tag.';
948
+ readonly zh: '<{name}> 需要结束标签。';
909
949
  };
910
- readonly 'math.bindingType': {
911
- readonly en: 'Plot parameter "{name}" must be a number, but is {kind}.';
912
- readonly zh: '绘图参数“{name}”必须是数字,但当前为 {kind}。';
950
+ readonly 'footnote.unsupported': {
951
+ readonly en: 'Footnotes are not part of the local interaction syntax and are shown as source.';
952
+ readonly zh: '脚注不属于本地交互语法,将按源文本显示。';
913
953
  };
914
- readonly 'math.displayUnsupportedCommand': {
915
- readonly en: 'Formula command \\{name} is not supported; it is displayed as literal text.';
916
- readonly zh: '公式命令 \\{name} 不受支持;已按原文显示。';
954
+ readonly 'interpolation.unclosed': {
955
+ readonly en: 'Interpolation is missing }}.';
956
+ readonly zh: '插值缺少 }}。';
917
957
  };
918
- readonly 'math.displayUnsupportedEnvironment': {
919
- readonly en: 'Formula environment {name} is not supported; it is displayed as literal text.';
920
- readonly zh: '公式环境 {name} 不受支持;已按原文显示。';
958
+ readonly 'math.unclosed': {
959
+ readonly en: 'Formula is missing its closing delimiter.';
960
+ readonly zh: '公式缺少结束定界符。';
921
961
  };
922
- readonly 'math.displayBudget': {
923
- readonly en: 'Formula exceeds a display resource limit ({limit}); it is displayed as literal text.';
924
- readonly zh: '公式超过显示资源上限({limit});已按原文显示。';
962
+ readonly 'math.whitespace': {
963
+ readonly en: 'Inline math cannot start or end with whitespace.';
964
+ readonly zh: '行内公式不能以空白开头或结尾。';
925
965
  };
926
- readonly 'math.displayStrayEnd': {
927
- readonly en: 'Formula has an unmatched \\end; it is displayed as literal text.';
928
- readonly zh: '公式中存在未匹配的 \\end;已按原文显示。';
966
+ readonly 'budget.math': {
967
+ readonly en: 'Formula exceeds the {limit}-character limit.';
968
+ readonly zh: '公式超过 {limit} 个字符的上限。';
929
969
  };
930
- readonly 'math.displayEnvironmentUnclosed': {
931
- readonly en: 'Formula environment {name} is missing its closing brace; it is displayed as literal text.';
932
- readonly zh: '公式环境 {name} 缺少结束花括号;已按原文显示。';
970
+ readonly 'html.raw': {
971
+ readonly en: 'Raw HTML is not part of the local interaction syntax.';
972
+ readonly zh: '原始 HTML 不属于本地交互语法。';
933
973
  };
934
- readonly 'math.displayEnvironmentMissingName': {
935
- readonly en: 'Formula environment is missing its name; \\begin is displayed as literal text.';
936
- readonly zh: '公式环境缺少名称;\\begin 已按原文显示。';
974
+ readonly 'html.fallback': {
975
+ readonly en: 'Native HTML was safely converted to inert source text.';
976
+ readonly zh: '原生 HTML 已安全回退为惰性源码文本。';
937
977
  };
938
- readonly 'math.displaySyntax': {
939
- readonly en: 'Formula structure cannot be displayed and is shown as literal text.';
940
- readonly zh: '公式结构无法显示,已按原文显示。';
978
+ readonly 'html.fallbackAttribute': {
979
+ readonly en: 'Native HTML attribute {name} is unsupported; the element was safely converted to inert source text.';
980
+ readonly zh: '原生 HTML 属性 {name} 不受支持;该元素已安全回退为惰性源码文本。';
941
981
  };
942
- readonly 'table.missingHeader': {
943
- readonly en: 'The table for <{name}> is missing a header.';
944
- readonly zh: '<{name}> 的表格缺少表头。';
982
+ readonly 'html.table.structure': {
983
+ readonly en: 'Invalid native HTML table structure in <{tag}>.';
984
+ readonly zh: '原生 HTML 表格的 <{tag}> 结构无效。';
945
985
  };
946
- readonly 'table.headerInterpolation': {
947
- readonly en: 'Table headers cannot contain interpolations.';
948
- readonly zh: '表格表头不能包含插值。';
986
+ readonly 'html.table.mixed': {
987
+ readonly en: 'Keep text and Markdown inside cells or captions; native HTML table structure cannot mix with Markdown table rows.';
988
+ readonly zh: '文字和 Markdown 应写在单元格或标题内;原生 HTML 表格结构不能混用 Markdown 表格行。';
949
989
  };
950
- readonly 'table.headerEmpty': {
951
- readonly en: 'Table headers cannot be empty.';
952
- readonly zh: '表格表头不能为空。';
990
+ readonly 'html.table.attribute': {
991
+ readonly en: 'Attribute {name} is not supported on native HTML <{tag}>. ReactiveMD table options require a Markdown table body.';
992
+ readonly zh: '原生 HTML <{tag}> 不支持属性 {name}。ReactiveMD 表格选项只适用于 Markdown 表格正文。';
953
993
  };
954
- readonly 'table.headerDuplicate': {
955
- readonly en: 'Duplicate table header "{name}".';
956
- readonly zh: '重复的表格表头“{name}”。';
994
+ readonly 'html.table.value': {
995
+ readonly en: 'Invalid value for {name} on native HTML <{tag}>.';
996
+ readonly zh: '原生 HTML <{tag}> 的 {name} 属性值无效。';
957
997
  };
958
- readonly 'table.rowColumnMismatch': {
959
- readonly en: 'Table row has a different column count: header has {header} columns, this row has {row}.';
960
- readonly zh: '表格行的列数不一致:表头有 {header} 列,此行有 {row} 列。';
998
+ readonly 'html.table.unclosed': {
999
+ readonly en: 'Native HTML table is missing </table>.';
1000
+ readonly zh: '原生 HTML 表格缺少 </table>。';
961
1001
  };
962
- readonly 'chart.numericExpression': {
963
- readonly en: 'Chart column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
964
- readonly zh: '图表列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
1002
+ readonly 'html.extended': {
1003
+ readonly en: 'HTML element <{name}> requires enableExtendedHtml in this mode; it is shown as source.';
1004
+ readonly zh: '此模式下 HTML 元素 <{name}> 需要启用 enableExtendedHtml;已按源码显示。';
965
1005
  };
966
- readonly 'timeline.numericExpression': {
967
- readonly en: 'Timeline column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
968
- readonly zh: '时间线列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
1006
+ readonly 'html.attribute': {
1007
+ readonly en: 'HTML attribute {name} on <{tag}> is not supported; the element is shown as source.';
1008
+ readonly zh: '<{tag}> 上的 HTML 属性 {name} 不受支持;该元素已按源码显示。';
969
1009
  };
970
- readonly 'chart.numericPlain': {
971
- readonly en: 'Chart column "{name}" requires a plain number in row {row}, got "{value}".';
972
- readonly zh: '图表列“{name}”第 {row} 行需要普通数字,当前为“{value}”。';
1010
+ readonly 'html.unsafeUrl': {
1011
+ readonly en: 'Unsafe URL in attribute {name} was removed.';
1012
+ readonly zh: '属性 {name} 中的不安全 URL 已移除。';
973
1013
  };
974
- readonly 'timeline.numericPlain': {
975
- readonly en: 'Timeline column "{name}" requires a plain number in row {row}, got "{value}".';
976
- readonly zh: '时间线列“{name}”第 {row} 行需要普通数字,当前为“{value}”。';
1014
+ readonly 'local.author.disabled': {
1015
+ readonly en: 'Author {feature} is disabled by the compile options.';
1016
+ readonly zh: '编译选项已关闭作者 {feature}。';
977
1017
  };
978
- readonly 'selection.keyEmpty': {
979
- readonly en: '<{component}> key cannot be empty.';
980
- readonly zh: '<{component}> 的 key 不能为空。';
1018
+ readonly 'local.author.placement': {
1019
+ readonly en: 'Use paired tags for this declaration.';
1020
+ readonly zh: '请使用成对标签声明此能力。';
981
1021
  };
982
- readonly 'selection.keyMissingColumn': {
983
- readonly en: '<{component}> key column "{name}" does not exist in its table.';
984
- readonly zh: '<{component}> 的 key 列“{name}”在表格中不存在。';
1022
+ readonly 'local.author.unclosed': {
1023
+ readonly en: 'Close the <{name}> declaration.';
1024
+ readonly zh: '请补全 <{name}> 声明的结束标签。';
985
1025
  };
986
- readonly 'selection.keyInterpolation': {
987
- readonly en: '<{component}> key column "{name}" must contain static text; row {row} contains an interpolation.';
988
- readonly zh: '<{component}> 的 key 列“{name}”必须包含静态文本;第 {row} 行包含插值。';
1026
+ readonly 'local.author.css-placement': {
1027
+ readonly en: 'Move document CSS before the body.';
1028
+ readonly zh: '请将文档 CSS 移到正文之前。';
989
1029
  };
990
- readonly 'selection.keyEmptyCell': {
991
- readonly en: '<{component}> key column "{name}" cannot be empty in row {row}.';
992
- readonly zh: '<{component}> 的 key 列“{name}”在第 {row} 行不能为空。';
1030
+ readonly 'local.author.script-placement': {
1031
+ readonly en: 'Place author JavaScript at the document’s top level.';
1032
+ readonly zh: '请将 JavaScript 声明放在文档顶层。';
993
1033
  };
994
- readonly 'selection.keyDuplicate': {
995
- readonly en: '<{component}> key column "{name}" must be unique; duplicate value "{value}".';
996
- readonly zh: '<{component}> 的 key 列“{name}”必须唯一;重复值“{value}”。';
1034
+ readonly 'local.author.component-conflict': {
1035
+ readonly en: 'The registered <{name}> component owns this tag.';
1036
+ readonly zh: '此标签归已注册的 <{name}> 组件。';
997
1037
  };
998
- readonly 'initial.selectionNotValue': {
999
- readonly en: 'Initial selection "{value}" of <{component}> is not a value of key column "{name}".';
1000
- readonly zh: '<{component}> 的初始选择“{value}”不是 key 列“{name}”中的值。';
1038
+ readonly 'local.author.css-owned': {
1039
+ readonly en: '<{name}> defines its own css attribute.';
1040
+ readonly zh: '<{name}> 自行定义了 css 属性。';
1001
1041
  };
1002
- readonly 'chart.columnComma': {
1003
- readonly en: 'Chart column names cannot contain commas: "{name}".';
1004
- readonly zh: '图表列名不能包含逗号:“{name}”。';
1042
+ readonly 'local.author.css-hidden': {
1043
+ readonly en: '<{name}> has no visible root for a css declaration.';
1044
+ readonly zh: '<{name}> 没有可应用 css 声明的可见根元素。';
1005
1045
  };
1006
- readonly 'chart.xMissing': {
1007
- readonly en: 'Chart x column "{name}" does not exist.';
1008
- readonly zh: '图表 x 列“{name}”不存在。';
1046
+ readonly 'local.author.css-global-rule': {
1047
+ readonly en: 'Author CSS does not support the global rule @{name}.';
1048
+ readonly zh: '作者 CSS 暂不支持全局规则 @{name}。';
1009
1049
  };
1010
- readonly 'chart.yRequired': {
1011
- readonly en: 'Chart y requires a column name.';
1012
- readonly zh: '图表 y 需要列名。';
1050
+ readonly 'local.author.action-invalid': {
1051
+ readonly en: 'Invalid or unsupported action target "{id}".';
1052
+ readonly zh: '动作目标 "{id}" 无效或不受支持。';
1013
1053
  };
1014
- readonly 'chart.yMissing': {
1015
- readonly en: 'Chart y column "{name}" does not exist.';
1016
- readonly zh: '图表 y 列“{name}”不存在。';
1054
+ readonly 'local.author.action-duplicate': {
1055
+ readonly en: 'Duplicate action target "{id}".';
1056
+ readonly zh: '动作目标 "{id}" 重复。';
1017
1057
  };
1018
- readonly 'chart.needsNumeric': {
1019
- readonly en: 'Chart requires at least one numeric column.';
1020
- readonly zh: '图表至少需要一个数值列。';
1058
+ readonly 'local.author.fragment-tag': {
1059
+ readonly en: 'Use a document declaration or an extended element instead of <{name}>.';
1060
+ readonly zh: '<{name}> 已按原文显示。请使用文档声明或扩展元素。';
1021
1061
  };
1022
- readonly 'chart.scatterXMissing': {
1023
- readonly en: 'Scatter chart x column "{name}" does not exist.';
1024
- readonly zh: '散点图的 x 列“{name}”不存在。';
1062
+ readonly 'html.capability': {
1063
+ readonly en: 'Author {feature} was disabled by the compile options.';
1064
+ readonly zh: '编译选项已禁用作者提供的{feature}。';
1025
1065
  };
1026
- readonly 'chart.scatterNeedsNumeric': {
1027
- readonly en: 'Scatter chart requires at least one numeric column.';
1028
- readonly zh: '散点图至少需要一个数值列。';
1066
+ readonly 'recovery.unclosed': {
1067
+ readonly en: 'An unclosed RMD fragment was rendered as literal source; its components and expressions are inactive.';
1068
+ readonly zh: '未闭合的 RMD 片段已按原文显示,片段中的组件和表达式不执行。';
1029
1069
  };
1030
- readonly 'chart.donutNeedsColumns': {
1031
- readonly en: 'Donut chart requires a label column and a value column.';
1032
- readonly zh: '环形图需要一个标签列和一个数值列。';
1070
+ readonly 'recovery.mismatch': {
1071
+ readonly en: 'A fragment with mismatched tags was rendered as literal source; its components and expressions are inactive.';
1072
+ readonly zh: '标签不匹配的片段已按原文显示,片段中的组件和表达式不执行。';
1033
1073
  };
1034
- readonly 'chart.donutYOne': {
1035
- readonly en: 'Donut chart y can only specify one numeric column.';
1036
- readonly zh: '环形图的 y 只能指定一个数值列。';
1074
+ readonly 'recovery.strayClose': {
1075
+ readonly en: 'A stray closing tag was rendered as literal source.';
1076
+ readonly zh: '孤立的结束标签已按原文显示。';
1037
1077
  };
1038
- readonly 'chart.donutNeedY': {
1039
- readonly en: 'A donut chart with more than two columns must use y to specify the single numeric column.';
1040
- readonly zh: '超过两列的环形图必须用 y 指定唯一的数值列。';
1078
+ readonly 'recovery.htmlRepair': {
1079
+ readonly en: 'Malformed native HTML was structurally repaired for display.';
1080
+ readonly zh: 'HTML 结构已修复后显示。';
1041
1081
  };
1042
- readonly 'chart.negative': {
1043
- readonly en: 'Donut chart values cannot be negative; row {row} is {value}.';
1044
- readonly zh: '环形图的数值不能为负;第 {row} 行为 {value}。';
1082
+ readonly 'recovery.htmlLiteral': {
1083
+ readonly en: 'Native HTML could not be safely repaired and was rendered as literal source.';
1084
+ readonly zh: 'HTML 片段无法安全恢复,已按原文显示。';
1045
1085
  };
1046
- readonly 'timeline.headerMissing': {
1047
- readonly en: 'Timeline requires either Task, Start and Duration columns or 事项, 开始 and 时长 columns, with optional Notes or 说明.';
1048
- readonly zh: '时间线需要 Task、Start、Duration 列,或 事项、开始、时长 列,并可选 Notes 或 说明。';
1086
+ readonly 'options.htmlFlag': {
1087
+ readonly en: 'Compile option {name} must be a boolean.';
1088
+ readonly zh: '编译选项 {name} 必须是布尔值。';
1049
1089
  };
1050
- readonly 'timeline.columnUnsupported': {
1051
- readonly en: 'Timeline does not support column "{name}".';
1052
- readonly zh: '时间线不支持列“{name}”。';
1090
+ readonly 'options.markdownBreaks': {
1091
+ readonly en: 'Compile option markdownBreaks must be a boolean.';
1092
+ readonly zh: '编译选项 markdownBreaks 必须为布尔值。';
1053
1093
  };
1054
- readonly 'timeline.negative': {
1055
- readonly en: 'Timeline column "{name}" cannot be negative in row {row}.';
1056
- readonly zh: '时间线列“{name}”在第 {row} 行不能为负。';
1094
+ readonly 'options.strict': {
1095
+ readonly en: 'Compile option strict must be a boolean.';
1096
+ readonly zh: '编译选项 strict 必须为布尔值。';
1057
1097
  };
1058
- readonly 'runtime.bindingNoWritable': {
1059
- readonly en: 'This component has no writable binding state.';
1060
- readonly zh: '此组件没有可写的绑定状态。';
1098
+ readonly 'component.unknownSuggestion': {
1099
+ readonly en: 'Unknown component <{name}>. Did you mean <{suggestion}>?';
1100
+ readonly zh: '未知组件 <{name}>。是否想使用 <{suggestion}>?';
1061
1101
  };
1062
- readonly 'runtime.bindingNeedsSlot': {
1063
- readonly en: 'This multi-slot component requires a slot such as start/end or x/y.';
1064
- readonly zh: '此多槽组件需要 start/end 或 x/y 之类的槽位。';
1102
+ readonly 'component.unknownPlain': {
1103
+ readonly en: 'Unknown component <{name}>. This mode only accepts local interaction components.';
1104
+ readonly zh: '未知组件 <{name}>。此模式只接受本地交互组件。';
1065
1105
  };
1066
- readonly 'runtime.bindingUnknownSlot': {
1067
- readonly en: 'This component has no writable slot "{slot}".';
1068
- readonly zh: '此组件没有可写的槽位“{slot}”。';
1106
+ readonly 'legacy.fence': {
1107
+ readonly en: 'Legacy reactive-md configuration fences (state/data/computed/actions, etc.) are not part of the local interaction syntax; select legacy mode explicitly in the host.';
1108
+ readonly zh: '旧版 reactive-md 配置围栏(state/data/computed/actions 等)不属于本地交互语法;请在宿主中显式选择旧版模式。';
1069
1109
  };
1070
- readonly 'runtime.bindingNoMultiSlot': {
1071
- readonly en: 'This component does not support multiple slots.';
1072
- readonly zh: '此组件不支持多个槽位。';
1110
+ readonly 'attribute.unknownSuggestion': {
1111
+ readonly en: 'Component <{component}> does not support attribute {name}. Did you mean {suggestion}?';
1112
+ readonly zh: '组件 <{component}> 不支持属性 {name}。是否想使用 {suggestion}?';
1073
1113
  };
1074
- readonly 'runtime.dateInvalid': {
1075
- readonly en: 'Date must be a valid YYYY-MM-DD or an empty string.';
1076
- readonly zh: '日期必须是有效的 YYYY-MM-DD 或空字符串。';
1114
+ readonly 'attribute.unknownPlain': {
1115
+ readonly en: 'Component <{component}> does not support attribute {name}.';
1116
+ readonly zh: '组件 <{component}> 不支持属性 {name}。';
1077
1117
  };
1078
- readonly 'runtime.dateRequired': {
1079
- readonly en: 'This date is required.';
1080
- readonly zh: '此日期为必填项。';
1118
+ readonly 'budget.attribute': {
1119
+ readonly en: 'Attribute {name} on component <{component}> exceeds the {limit}-character limit.';
1120
+ readonly zh: '组件 <{component}> 的属性 {name} 超过 {limit} 个字符的上限。';
1081
1121
  };
1082
- readonly 'runtime.dateEarlier': {
1083
- readonly en: 'Date cannot be earlier than {min}.';
1084
- readonly zh: '日期不能早于 {min}。';
1122
+ readonly 'attribute.color': {
1123
+ readonly en: 'Attribute {name} on component <{component}> must be a standard CSS named color or #RGB/#RRGGBB, got "{value}".';
1124
+ readonly zh: '组件 <{component}> 的属性 {name} 必须是标准 CSS 命名颜色或 #RGB/#RRGGBB,当前为“{value}”。';
1085
1125
  };
1086
- readonly 'runtime.dateLater': {
1087
- readonly en: 'Date cannot be later than {max}.';
1088
- readonly zh: '日期不能晚于 {max}。';
1126
+ readonly 'attribute.required': {
1127
+ readonly en: 'Component <{component}> is missing required attribute {name}.';
1128
+ readonly zh: '组件 <{component}> 缺少必需属性 {name}。';
1089
1129
  };
1090
- readonly 'runtime.fieldRequired': {
1091
- readonly en: 'This field is required.';
1092
- readonly zh: '此字段为必填项。';
1130
+ readonly 'label.requiredMissing': {
1131
+ readonly en: 'Component <{name}> requires a label.';
1132
+ readonly zh: '组件 <{name}> 需要 label。';
1093
1133
  };
1094
- readonly 'runtime.minLength': {
1095
- readonly en: 'At least {min} characters.';
1096
- readonly zh: '至少 {min} 个字符。';
1134
+ readonly 'label.requiredEmpty': {
1135
+ readonly en: 'Component <{name}> label cannot be empty.';
1136
+ readonly zh: '组件 <{name}> 的 label 不能为空。';
1097
1137
  };
1098
- readonly 'runtime.maxLength': {
1099
- readonly en: 'At most {max} characters.';
1100
- readonly zh: '至多 {max} 个字符。';
1138
+ readonly 'attribute.static': {
1139
+ readonly en: 'Attribute {name} is static and cannot contain interpolations.';
1140
+ readonly zh: '属性 {name} 是静态的,不能包含插值。';
1101
1141
  };
1102
- readonly 'runtime.emailLength': {
1103
- readonly en: 'Email address cannot exceed {limit} characters.';
1104
- readonly zh: '电子邮件地址不能超过 {limit} 个字符。';
1142
+ readonly 'host.attributeUnknown': {
1143
+ readonly en: 'Component <{component}> does not support attribute {name}.';
1144
+ readonly zh: '组件 <{component}> 不支持属性 {name}。';
1105
1145
  };
1106
- readonly 'runtime.emailInvalid': {
1107
- readonly en: 'Enter a valid email address.';
1108
- readonly zh: '请输入有效的电子邮件地址。';
1146
+ readonly 'host.attributeRequired': {
1147
+ readonly en: 'Component <{component}> is missing required attribute {name}.';
1148
+ readonly zh: '组件 <{component}> 缺少必需属性 {name}。';
1109
1149
  };
1110
- readonly 'runtime.finiteNumber': {
1111
- readonly en: 'Parameter "{name}" requires a finite number.';
1112
- readonly zh: '参数“{name}”需要有限数字。';
1150
+ readonly 'host.attributeStatic': {
1151
+ readonly en: 'Attribute {name} is static and cannot contain interpolations.';
1152
+ readonly zh: '属性 {name} 是静态的,不能包含插值。';
1113
1153
  };
1114
- readonly 'runtime.min': {
1115
- readonly en: 'Parameter "{name}" must be at least {min}.';
1116
- readonly zh: '参数“{name}”必须至少为 {min}。';
1154
+ readonly 'host.attributeType': {
1155
+ readonly en: 'Attribute {name} requires a {kind}, got "{value}".';
1156
+ readonly zh: '属性 {name} 需要 {kind},当前为“{value}”。';
1117
1157
  };
1118
- readonly 'runtime.max': {
1119
- readonly en: 'Parameter "{name}" must be at most {max}.';
1120
- readonly zh: '参数“{name}”必须至多为 {max}。';
1158
+ readonly 'host.attributeEnum': {
1159
+ readonly en: 'Attribute {name} must be one of {values}, got "{value}".';
1160
+ readonly zh: '属性 {name} 必须是 {values} 之一,当前为“{value}”。';
1121
1161
  };
1122
- readonly 'runtime.step': {
1123
- readonly en: 'Parameter "{name}" must be a multiple of step {step} (base {base}).';
1124
- readonly zh: '参数“{name}”必须是步长 {step} 的倍数(基准 {base})。';
1162
+ readonly 'host.attributePattern': {
1163
+ readonly en: 'Attribute {name} must match pattern {pattern}.';
1164
+ readonly zh: '属性 {name} 必须匹配模式 {pattern}。';
1125
1165
  };
1126
- readonly 'runtime.boolean': {
1127
- readonly en: 'Parameter "{name}" requires a boolean.';
1128
- readonly zh: '参数“{name}”需要布尔值。';
1166
+ readonly 'host.attributeInterpolation': {
1167
+ readonly en: 'Attribute {name} must be a literal matching {pattern} or one full interpolation.';
1168
+ readonly zh: '属性 {name} 必须是匹配 {pattern} 的字面值,或一个完整插值。';
1129
1169
  };
1130
- readonly 'runtime.string': {
1131
- readonly en: 'Parameter "{name}" requires a string.';
1132
- readonly zh: '参数“{name}”需要字符串。';
1170
+ readonly 'expression.emptyAttribute': {
1171
+ readonly en: 'Attribute {name} interpolation cannot be empty.';
1172
+ readonly zh: '属性 {name} 的插值不能为空。';
1133
1173
  };
1134
- readonly 'runtime.array': {
1135
- readonly en: 'Parameter "{name}" requires an array of strings.';
1136
- readonly zh: '参数“{name}”需要字符串数组。';
1174
+ readonly 'expression.emptyInterpolation': {
1175
+ readonly en: 'Interpolation expression cannot be empty.';
1176
+ readonly zh: '插值表达式不能为空。';
1137
1177
  };
1138
- readonly 'runtime.arrayMembers': {
1139
- readonly en: 'Parameter "{name}" members must be strings.';
1140
- readonly zh: '参数“{name}”的成员必须是字符串。';
1178
+ readonly 'attribute.numberInvalid': {
1179
+ readonly en: 'Attribute {name} requires a number, got "{value}".';
1180
+ readonly zh: '属性 {name} 需要数字,当前为“{value}”。';
1141
1181
  };
1142
- readonly 'runtime.numberArray': {
1143
- readonly en: 'Parameter "{name}" requires an array of finite numbers.';
1144
- readonly zh: '参数“{name}”需要有限数字数组。';
1182
+ readonly 'attribute.numberInterpolationInvalid': {
1183
+ readonly en: 'Attribute {name} requires a number or a full number interpolation, got "{value}".';
1184
+ readonly zh: '属性 {name} 需要数字或完整的数字插值,当前为“{value}”。';
1145
1185
  };
1146
- readonly 'runtime.numberArrayMembers': {
1147
- readonly en: 'Parameter "{name}" members must be finite numbers.';
1148
- readonly zh: '参数“{name}”的成员必须是有限数字。';
1186
+ readonly 'attribute.integer': {
1187
+ readonly en: 'Attribute {name} requires an integer.';
1188
+ readonly zh: '属性 {name} 需要整数。';
1149
1189
  };
1150
- readonly 'runtime.null': {
1151
- readonly en: 'Parameter "{name}" requires null.';
1152
- readonly zh: '参数“{name}”需要 null。';
1190
+ readonly 'attribute.positive': {
1191
+ readonly en: 'Attribute {name} requires a positive number.';
1192
+ readonly zh: '属性 {name} 需要正数。';
1153
1193
  };
1154
- readonly 'runtime.checklistOption': {
1155
- readonly en: 'Checklist item "{value}" does not exist.';
1156
- readonly zh: '清单项“{value}”不存在。';
1194
+ readonly 'attribute.rangeMin': {
1195
+ readonly en: 'Attribute {name} must be at least {min}.';
1196
+ readonly zh: '属性 {name} 必须至少为 {min}。';
1157
1197
  };
1158
- readonly 'runtime.maxItems': {
1159
- readonly en: 'Parameter "{name}" allows at most {max} selected values.';
1160
- readonly zh: '参数“{name}”最多允许选择 {max} 个值。';
1198
+ readonly 'attribute.rangeMax': {
1199
+ readonly en: 'Attribute {name} must be at most {max}.';
1200
+ readonly zh: '属性 {name} 必须至多为 {max}。';
1161
1201
  };
1162
- readonly 'runtime.unsupportedType': {
1163
- readonly en: 'Parameter "{name}" has an unsupported value type.';
1164
- readonly zh: '参数“{name}”的值类型不受支持。';
1202
+ readonly 'attribute.booleanInvalid': {
1203
+ readonly en: 'Attribute {name} requires true or false.';
1204
+ readonly zh: '属性 {name} 需要 true 或 false。';
1165
1205
  };
1166
- readonly 'runtime.option': {
1167
- readonly en: 'Value "{value}" is not among the options: {options}.';
1168
- readonly zh: '值“{value}”不在选项中:{options}。';
1206
+ readonly 'attribute.booleanInterpolationInvalid': {
1207
+ readonly en: 'Attribute {name} requires true or false, or a full boolean interpolation.';
1208
+ readonly zh: '属性 {name} 需要 true 或 false,或完整的布尔插值。';
1169
1209
  };
1170
- readonly 'runtime.budget': {
1171
- readonly en: 'Parameter "{name}": {detail}';
1172
- readonly zh: '参数“{name}”:{detail}';
1210
+ readonly 'attribute.enumInvalid': {
1211
+ readonly en: 'Attribute {name} must be one of {values}, got "{value}".';
1212
+ readonly zh: '属性 {name} 必须是 {values} 之一,当前为“{value}”。';
1173
1213
  };
1174
- readonly 'runtime.rangeOrder': {
1175
- readonly en: 'The range start cannot be greater than its end.';
1176
- readonly zh: '范围起点不能大于终点。';
1214
+ readonly 'attribute.dateLower': {
1215
+ readonly en: 'Date lower bound {value} is not a valid YYYY-MM-DD.';
1216
+ readonly zh: '日期下界 {value} 不是有效的 YYYY-MM-DD。';
1177
1217
  };
1178
- readonly 'budget.string': {
1179
- readonly en: 'String exceeds the {limit}-character limit.';
1180
- readonly zh: '字符串超过 {limit} 个字符的上限。';
1218
+ readonly 'attribute.dateUpper': {
1219
+ readonly en: 'Date upper bound {value} is not a valid YYYY-MM-DD.';
1220
+ readonly zh: '日期上界 {value} 不是有效的 YYYY-MM-DD。';
1181
1221
  };
1182
- readonly 'budget.array': {
1183
- readonly en: 'Array exceeds the {limit}-item limit.';
1184
- readonly zh: '数组超过 {limit} 个项的上限。';
1222
+ readonly 'constraint.componentMinMax': {
1223
+ readonly en: 'Component <{name}> min cannot exceed max.';
1224
+ readonly zh: '组件 <{name}> 的 min 不能大于 max。';
1185
1225
  };
1186
- readonly 'budget.arrayMember': {
1187
- readonly en: 'Array member exceeds the {limit}-character limit.';
1188
- readonly zh: '数组成员超过 {limit} 个字符的上限。';
1226
+ readonly 'constraint.componentStep': {
1227
+ readonly en: 'Component <{name}> step must be greater than 0.';
1228
+ readonly zh: '组件 <{name}> 的 step 必须大于 0。';
1189
1229
  };
1190
- readonly 'budget.arrayContents': {
1191
- readonly en: 'Array contents exceed the {limit}-character limit.';
1192
- readonly zh: '数组内容超过 {limit} 个字符的上限。';
1230
+ readonly 'constraint.lengthRange': {
1231
+ readonly en: 'max-length cannot be less than min-length.';
1232
+ readonly zh: 'max-length 不能小于 min-length。';
1193
1233
  };
1194
- readonly 'theme.missing': {
1195
- readonly en: 'Theme "{name}" is not registered by the host; using the default theme.';
1196
- readonly zh: '宿主未注册主题“{name}”;将使用默认主题。';
1234
+ readonly 'constraint.dateOrder': {
1235
+ readonly en: 'Date min cannot be later than max.';
1236
+ readonly zh: '日期 min 不能晚于 max。';
1197
1237
  };
1198
- readonly 'theme.registryUnreadable': {
1199
- readonly en: 'The host theme registry could not be read; using the default theme.';
1200
- readonly zh: '无法读取宿主主题注册表;将使用默认主题。';
1238
+ readonly 'constraint.progressRange': {
1239
+ readonly en: 'progress value must be between 0 and {max}, got {value}.';
1240
+ readonly zh: 'progress 的 value 必须在 0 到 {max} 之间,当前为 {value}。';
1201
1241
  };
1202
- readonly 'theme.invalidDefinition': {
1203
- readonly en: 'The selected theme "{name}" is not a valid definition; using the default theme.';
1204
- readonly zh: '所选主题“{name}”不是有效定义;将使用默认主题。';
1242
+ readonly 'constraint.plotRange': {
1243
+ readonly en: 'plot min must be less than max.';
1244
+ readonly zh: 'plot 的 min 必须小于 max。';
1205
1245
  };
1206
- readonly 'theme.duplicateRegistration': {
1207
- readonly en: 'Theme "{name}" is registered more than once; using the default theme.';
1208
- readonly zh: '主题“{name}”被多次注册;将使用默认主题。';
1246
+ readonly 'constraint.timerDuration': {
1247
+ readonly en: 'timer duration must be a positive whole number of seconds.';
1248
+ readonly zh: 'timer 的 duration 必须是正整数秒。';
1209
1249
  };
1210
- readonly 'theme.protocol': {
1211
- readonly en: 'Theme "{name}" does not support the {protocol} protocol; using the default theme.';
1212
- readonly zh: '主题“{name}”不支持 {protocol} 协议;将使用默认主题。';
1250
+ readonly 'constraint.rangeSliderOrder': {
1251
+ readonly en: 'range-slider min cannot exceed max.';
1252
+ readonly zh: 'range-slider 的 min 不能大于 max。';
1213
1253
  };
1214
- readonly 'theme.modes': {
1215
- readonly en: 'Theme "{name}" must supply both light and dark color schemes; using the default theme.';
1216
- readonly zh: '主题“{name}”必须同时提供浅色和深色配色;将使用默认主题。';
1254
+ readonly 'constraint.rangeSliderStep': {
1255
+ readonly en: 'range-slider step must be a finite positive number.';
1256
+ readonly zh: 'range-slider 的 step 必须是有限正数。';
1217
1257
  };
1218
- readonly 'theme.selectedUnreadable': {
1219
- readonly en: 'The selected theme "{name}" could not be read; using the default theme.';
1220
- readonly zh: '所选主题“{name}”无法读取;将使用默认主题。';
1258
+ readonly 'constraint.coordinateOrder': {
1259
+ readonly en: 'coordinate {axis}-min cannot exceed {axis}-max.';
1260
+ readonly zh: 'coordinate 的 {axis}-min 不能大于 {axis}-max。';
1221
1261
  };
1222
- readonly 'error.expression-syntax': {
1223
- readonly en: 'Check expression operators, parentheses and arguments.';
1224
- readonly zh: '表达式语法不正确,请检查运算符、括号或参数是否完整。';
1262
+ readonly 'constraint.coordinateStep': {
1263
+ readonly en: 'coordinate step must be a finite positive number.';
1264
+ readonly zh: 'coordinate 的 step 必须是有限正数。';
1225
1265
  };
1226
- readonly 'error.expression-index': {
1227
- readonly en: 'An array index must be a finite safe integer.';
1228
- readonly zh: '数组索引必须为有限的安全整数。';
1266
+ readonly 'constraint.multiSelectMax': {
1267
+ readonly en: 'multi-select max-selected must be a nonnegative whole number.';
1268
+ readonly zh: 'multi-select 的 max-selected 必须是非负整数。';
1229
1269
  };
1230
- readonly 'error.expression-cycle': {
1231
- readonly en: 'Named calculations contain a dependency cycle.';
1232
- readonly zh: '命名计算中存在循环依赖。';
1270
+ readonly 'constraint.quizTolerance': {
1271
+ readonly en: '<quiz> tolerance must be a nonnegative finite number.';
1272
+ readonly zh: '<quiz> 的 tolerance 必须是非负有限数。';
1233
1273
  };
1234
- readonly 'error.array.homogeneous': {
1235
- readonly en: 'Array elements must all be strings or all be numbers.';
1236
- readonly zh: '数组元素必须全部为字符串或全部为数字。';
1274
+ readonly 'selection.keyNeedsKey': {
1275
+ readonly en: '<{component}> {name} requires a key attribute naming the selection column.';
1276
+ readonly zh: '<{component}> 的 {name} 需要 key 属性来指定选择列。';
1237
1277
  };
1238
- readonly 'error.array.finite': {
1239
- readonly en: 'Array members must be finite numbers.';
1240
- readonly zh: '数字数组元素必须为有限数值。';
1278
+ readonly 'structure.parent': {
1279
+ readonly en: '<{name}> can only appear directly inside {parents}.';
1280
+ readonly zh: '<{name}> 只能直接位于 {parents} 内。';
1241
1281
  };
1242
- readonly 'error.array.members': {
1243
- readonly en: 'Array members must be strings or finite numbers.';
1244
- readonly zh: '数组元素必须为字符串或有限数值。';
1282
+ readonly 'structure.noBody': {
1283
+ readonly en: '<{name}> does not accept body content.';
1284
+ readonly zh: '<{name}> 不接受正文内容。';
1245
1285
  };
1246
- readonly 'error.expression-number': {
1247
- readonly en: 'A numeric literal must be finite and valid.';
1248
- readonly zh: '数字字面量无效,必须是有限数值。';
1286
+ readonly 'structure.inlineOnly': {
1287
+ readonly en: '<{name}> only accepts inline Markdown.';
1288
+ readonly zh: '<{name}> 只接受行内 Markdown。';
1289
+ };
1290
+ readonly 'structure.noNestedComponents': {
1291
+ readonly en: 'The body of <{name}> cannot contain other interactive components.';
1292
+ readonly zh: '<{name}> 的正文不能包含其他交互组件。';
1249
1293
  };
1250
- readonly 'error.expression-string': {
1251
- readonly en: 'Check the string quotes and escape sequences.';
1252
- readonly zh: '字符串格式不正确,请检查引号和转义。';
1294
+ readonly 'structure.noComponents': {
1295
+ readonly en: 'The body of <{name}> cannot contain interactive components.';
1296
+ readonly zh: '<{name}> 的正文不能包含交互组件。';
1253
1297
  };
1254
- readonly 'error.expression-budget': {
1255
- readonly en: 'The expression exceeded a resource budget.';
1256
- readonly zh: '表达式超过长度、节点、深度或求值步数预算,请简化表达式。';
1298
+ readonly 'structure.childrenMinimum': {
1299
+ readonly en: '<{name}> requires at least {min} {children}.';
1300
+ readonly zh: '<{name}> 至少需要 {min} 个 {children}。';
1257
1301
  };
1258
- readonly 'error.expression-assignment': {
1259
- readonly en: 'Assignment is not allowed in expressions.';
1260
- readonly zh: '表达式不能执行赋值,请使用比较运算符。';
1302
+ readonly 'structure.childrenOnly': {
1303
+ readonly en: 'Direct children of <{name}> must be {children}.';
1304
+ readonly zh: '<{name}> 的直接子元素必须是 {children}。';
1261
1305
  };
1262
- readonly 'error.expression-property': {
1263
- readonly en: 'Property access is not allowed.';
1264
- readonly zh: '表达式不支持属性访问,请直接引用绑定名称。';
1306
+ readonly 'structure.sequenceMinimum': {
1307
+ readonly en: '<{name}> requires at least one <{child}>.';
1308
+ readonly zh: '<{name}> 至少需要一个 <{child}>。';
1265
1309
  };
1266
- readonly 'error.expression-empty': {
1267
- readonly en: 'An expression is required.';
1268
- readonly zh: '此处需要非空表达式。';
1310
+ readonly 'structure.sequenceOnly': {
1311
+ readonly en: '<{name}> can only contain <{child}>.';
1312
+ readonly zh: '<{name}> 只能包含 <{child}>。';
1269
1313
  };
1270
- readonly 'error.expression-unknown-function': {
1271
- readonly en: 'Use a supported built-in function.';
1272
- readonly zh: '函数不受支持,请使用语言内置函数。';
1314
+ readonly 'structure.accordionNeedsDisclosure': {
1315
+ readonly en: '<accordion> requires at least one <disclosure>.';
1316
+ readonly zh: '<accordion> 至少需要一个 <disclosure>。';
1273
1317
  };
1274
- readonly 'error.expression-arity': {
1275
- readonly en: 'Check the function argument count.';
1276
- readonly zh: '函数参数数量不正确。';
1318
+ readonly 'structure.accordionOnly': {
1319
+ readonly en: '<accordion> can only contain <disclosure>.';
1320
+ readonly zh: '<accordion> 只能包含 <disclosure>。';
1277
1321
  };
1278
- readonly 'error.expression-forbidden-name': {
1279
- readonly en: 'The name is forbidden.';
1280
- readonly zh: '此名称属于禁止访问的名称,请使用已声明的绑定。';
1322
+ readonly 'structure.gridNeedsCard': {
1323
+ readonly en: '<grid> requires at least one <card>.';
1324
+ readonly zh: '<grid> 至少需要一个 <card>。';
1281
1325
  };
1282
- readonly 'error.expression-type': {
1283
- readonly en: 'Operand or argument types do not match.';
1284
- readonly zh: '操作数或函数参数的类型不匹配,请检查绑定类型。';
1326
+ readonly 'structure.gridOnlyCard': {
1327
+ readonly en: 'Direct children of <grid> must be <card>.';
1328
+ readonly zh: '<grid> 的直接子元素必须是 <card>。';
1285
1329
  };
1286
- readonly 'error.expression-unknown-name': {
1287
- readonly en: 'The binding is not declared.';
1288
- readonly zh: '引用了未声明的绑定。';
1330
+ readonly 'structure.exactlyOneTable': {
1331
+ readonly en: 'The body of <{name}> must be exactly one Markdown table.';
1332
+ readonly zh: '<{name}> 的正文必须恰好是一个 Markdown 表格。';
1289
1333
  };
1290
- readonly 'error.expression-value': {
1291
- readonly en: 'The binding value is not supported.';
1292
- readonly zh: '绑定值不符合表达式支持的类型或数值范围。';
1334
+ readonly 'structure.plotNeedsFormula': {
1335
+ readonly en: '<plot> requires at least one $$...$$ formula block.';
1336
+ readonly zh: '<plot> 至少需要一个 $$...$$ 公式块。';
1293
1337
  };
1294
- readonly 'error.expression-eval': {
1295
- readonly en: 'The expression cannot be evaluated.';
1296
- readonly zh: '表达式无法求值,请检查输入和运算条件。';
1338
+ readonly 'structure.plotOnlyFormulas': {
1339
+ readonly en: 'The body of <plot> can only contain blank lines and $$...$$ formula blocks.';
1340
+ readonly zh: '<plot> 的正文只能包含空行和 $$...$$ 公式块。';
1297
1341
  };
1298
- readonly 'error.expression-domain': {
1299
- readonly en: 'A value lies outside the function domain.';
1300
- readonly zh: '参数超出函数定义域。';
1342
+ readonly 'structure.nodeNoComponents': {
1343
+ readonly en: 'The description of <node> cannot contain interactive components.';
1344
+ readonly zh: '<node> 的描述不能包含交互组件。';
1301
1345
  };
1302
- readonly 'error.expression-divide-by-zero': {
1303
- readonly en: 'Division by zero is undefined.';
1304
- readonly zh: '除数不能为零。';
1346
+ readonly 'structure.optionsNeeded': {
1347
+ readonly en: '<{name}> requires at least one <option value="...">.';
1348
+ readonly zh: '<{name}> 至少需要一个 <option value="...">。';
1305
1349
  };
1306
- readonly 'error.expression-interpolation': {
1307
- readonly en: 'Check interpolation delimiters and content.';
1308
- readonly zh: '插值格式不正确,请检查分隔符和表达式内容。';
1350
+ readonly 'structure.optionsOnly': {
1351
+ readonly en: '<{name}> can only contain <option>.';
1352
+ readonly zh: '<{name}> 只能包含 <option>。';
1309
1353
  };
1310
- readonly 'error.latex-budget': {
1311
- readonly en: 'The formula exceeded a resource budget.';
1312
- readonly zh: '公式超过长度、记号、节点、深度或计算步数预算,请简化公式。';
1354
+ readonly 'budget.options': {
1355
+ readonly en: '<{name}> options exceed the limit of {limit}.';
1356
+ readonly zh: '<{name}> 的选项数量超过上限 {limit}。';
1313
1357
  };
1314
- readonly 'error.latex-syntax': {
1315
- readonly en: 'Check formula syntax and delimiters.';
1316
- readonly zh: '公式语法不正确,请检查命令、括号和分隔符。';
1358
+ readonly 'option.valueRequired': {
1359
+ readonly en: '<option> requires a non-empty value.';
1360
+ readonly zh: '<option> 需要非空 value。';
1317
1361
  };
1318
- readonly 'error.latex-empty': {
1319
- readonly en: 'A formula is required.';
1320
- readonly zh: '公式不能为空。';
1362
+ readonly 'option.valueComma': {
1363
+ readonly en: '<multi-select> option values cannot contain commas: "{value}".';
1364
+ readonly zh: '<multi-select> 的选项值不能包含逗号:“{value}”。';
1321
1365
  };
1322
- readonly 'error.latex-relation': {
1323
- readonly en: 'Check the formula relation.';
1324
- readonly zh: '公式中的关系式不符合计算语法。';
1366
+ readonly 'option.valueDuplicate': {
1367
+ readonly en: 'Option values in <{name}> must be unique; duplicate value "{value}".';
1368
+ readonly zh: '<{name}> 的选项值必须唯一;重复值“{value}”。';
1325
1369
  };
1326
- readonly 'error.latex-number': {
1327
- readonly en: 'A formula number must be finite.';
1328
- readonly zh: '公式中的数字必须是有限数值。';
1370
+ readonly 'structure.optionNoComponents': {
1371
+ readonly en: 'The body of <option> cannot contain interactive components.';
1372
+ readonly zh: '<option> 的正文不能包含交互组件。';
1329
1373
  };
1330
- readonly 'error.latex-name': {
1331
- readonly en: 'Use a valid formula parameter name.';
1332
- readonly zh: '公式参数名称无效,请使用合法绑定名。';
1374
+ readonly 'structure.tabsNeedsTab': {
1375
+ readonly en: '<tabs> requires at least one <tab>.';
1376
+ readonly zh: '<tabs> 至少需要一个 <tab>。';
1333
1377
  };
1334
- readonly 'error.latex-unsupported': {
1335
- readonly en: 'The LaTeX structure is not computable.';
1336
- readonly zh: '此 LaTeX 结构不支持计算,请改用支持的函数和运算。';
1378
+ readonly 'structure.tabsOnly': {
1379
+ readonly en: '<tabs> can only contain <tab>.';
1380
+ readonly zh: '<tabs> 只能包含 <tab>。';
1337
1381
  };
1338
- readonly 'error.latex-variable': {
1339
- readonly en: 'A numeric formula parameter is missing or invalid.';
1340
- readonly zh: '公式引用的参数缺失或不是有限数字。';
1382
+ readonly 'tab.valueDuplicate': {
1383
+ readonly en: 'Tab values in <tabs> must be unique; duplicate value "{value}".';
1384
+ readonly zh: '<tabs> 的标签值必须唯一;重复值“{value}”。';
1341
1385
  };
1342
- readonly 'error.latex-type': {
1343
- readonly en: 'A formula parameter has the wrong type.';
1344
- readonly zh: '公式参数类型不正确,计算参数必须为数字。';
1386
+ readonly 'structure.stepsNeedsStep': {
1387
+ readonly en: '<steps> requires at least one <step>.';
1388
+ readonly zh: '<steps> 至少需要一个 <step>。';
1345
1389
  };
1346
- readonly 'error.latex-divide-by-zero': {
1347
- readonly en: 'Division by zero is undefined.';
1348
- readonly zh: '公式中的除数不能为零。';
1390
+ readonly 'structure.stepsOnly': {
1391
+ readonly en: '<steps> can only contain <step>.';
1392
+ readonly zh: '<steps> 只能包含 <step>。';
1349
1393
  };
1350
- readonly 'error.latex-domain': {
1351
- readonly en: 'A formula value lies outside the function domain.';
1352
- readonly zh: '公式参数超出函数定义域。';
1394
+ readonly 'step.valueDuplicate': {
1395
+ readonly en: 'Step values in <steps> must be unique; duplicate value "{value}".';
1396
+ readonly zh: '<steps> 的步骤值必须唯一;重复值“{value}”。';
1353
1397
  };
1354
- readonly 'error.latex-undefined': {
1355
- readonly en: 'The formula is undefined at this point.';
1356
- readonly zh: '公式在此点没有有限定义值。';
1398
+ readonly 'quiz.answerRequired': {
1399
+ readonly en: '<quiz> requires a non-empty answer.';
1400
+ readonly zh: '<quiz> 需要非空 answer。';
1357
1401
  };
1358
- readonly 'error.latex-plot-range': {
1359
- readonly en: 'Plot bounds must be finite and increasing.';
1360
- readonly zh: '绘图区间必须由有限数值构成,且最小值小于最大值。';
1402
+ readonly 'structure.quizNumericNoBody': {
1403
+ readonly en: 'A numeric <quiz> cannot have body content; use type="choice" for option-based quizzes.';
1404
+ readonly zh: '数值型 <quiz> 不能有正文内容;基于选项的测验请使用 type="choice"。';
1361
1405
  };
1362
- readonly 'error.latex-plot-samples': {
1363
- readonly en: 'The sample count must be an integer from 2 to 2000.';
1364
- readonly zh: '采样点数必须为 2 至 2000 的整数。';
1406
+ readonly 'quiz.answerNumeric': {
1407
+ readonly en: 'A numeric <quiz> answer must be a finite number.';
1408
+ readonly zh: '数值型 <quiz> 的 answer 必须是有限数字。';
1365
1409
  };
1366
- readonly 'local.external.placement': {
1367
- readonly en: '<external> declarations must be standalone tags at the document top level.';
1368
- readonly zh: '<external> 声明必须独占一行,位于文档顶层。';
1410
+ readonly 'quiz.answerNotOption': {
1411
+ readonly en: '<quiz> answer "{answer}" is not one of the option values: {options}.';
1412
+ readonly zh: '<quiz> 的 answer“{answer}”不在选项值中:{options}。';
1369
1413
  };
1370
- readonly 'local.external.name': {
1371
- readonly en: 'External name "{name}" must match [A-Za-z_][A-Za-z0-9_]*.';
1372
- readonly zh: '外部名称“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。';
1414
+ readonly 'diagram.needsNode': {
1415
+ readonly en: '<diagram> requires at least one <node>.';
1416
+ readonly zh: '<diagram> 至少需要一个 <node>。';
1373
1417
  };
1374
- readonly 'local.external.reserved': {
1375
- readonly en: 'External name "{name}" is reserved; choose another name.';
1376
- readonly zh: '外部名称“{name}”为保留名称,请更换。';
1418
+ readonly 'structure.diagramOnly': {
1419
+ readonly en: '<diagram> can only contain <node> and <edge>.';
1420
+ readonly zh: '<diagram> 只能包含 <node> 和 <edge>。';
1377
1421
  };
1378
- readonly 'local.external.duplicate': {
1379
- readonly en: 'External name "{name}" is declared more than once.';
1380
- readonly zh: '外部名称“{name}”被重复声明。';
1422
+ readonly 'diagram.nodeInvalid': {
1423
+ readonly en: 'Node ID "{id}" may only contain letters, digits, underscores and hyphens, and cannot start with a digit.';
1424
+ readonly zh: '节点 ID“{id}”只能包含字母、数字、下划线和连字符,且不能以数字开头。';
1381
1425
  };
1382
- readonly 'local.external.conflict': {
1383
- readonly en: 'External name "{name}" conflicts with a control parameter of the same name.';
1384
- readonly zh: '外部名称“{name}”与同名控件参数冲突。';
1426
+ readonly 'diagram.nodeDuplicate': {
1427
+ readonly en: 'Duplicate node ID "{id}".';
1428
+ readonly zh: '重复的节点 ID“{id}”。';
1385
1429
  };
1386
- readonly 'local.external.type': {
1387
- readonly en: 'External "{name}" must declare type string, number, boolean, string-array or number-array.';
1388
- readonly zh: '外部声明“{name}”必须声明 string、number、boolean、string-array 或 number-array 类型。';
1430
+ readonly 'diagram.edgeFromUnknown': {
1431
+ readonly en: 'Edge from references unknown node "{id}".';
1432
+ readonly zh: '连线起点引用了未知节点“{id}”。';
1389
1433
  };
1390
- readonly 'local.host.structure.leaf': {
1391
- readonly en: 'Host component <{component}> is a leaf and cannot have body content.';
1392
- readonly zh: '宿主组件 <{component}> 是叶子组件,不能包含正文内容。';
1434
+ readonly 'diagram.edgeToUnknown': {
1435
+ readonly en: 'Edge to references unknown node "{id}".';
1436
+ readonly zh: '连线终点引用了未知节点“{id}”。';
1393
1437
  };
1394
- readonly 'local.runtime.external': {
1395
- readonly en: 'External value {name} cannot be written.';
1396
- readonly zh: '无法写入外部数据 {name}。';
1438
+ readonly 'diagram.edgeDuplicate': {
1439
+ readonly en: 'Duplicate edge: {from} → {to}{label}.';
1440
+ readonly zh: '重复的连线:{from} → {to}{label}。';
1397
1441
  };
1398
- readonly 'local.runtime.external-value': {
1399
- readonly en: 'External value {name} must be {kind}.';
1400
- readonly zh: '外部数据 {name} 必须是 {kind} 类型。';
1442
+ readonly 'checklist.bodySingle': {
1443
+ readonly en: 'The body of <checklist> must be exactly one single-level Markdown task list.';
1444
+ readonly zh: '<checklist> 的正文必须恰好是一个单层 Markdown 任务列表。';
1401
1445
  };
1402
- readonly 'local.runtime.external-budget': {
1403
- readonly en: 'External value {name} exceeds a resource limit.';
1404
- readonly zh: '外部数据 {name} 超过资源限制。';
1446
+ readonly 'checklist.needsItem': {
1447
+ readonly en: '<checklist> requires at least one task list item.';
1448
+ readonly zh: '<checklist> 至少需要一个任务列表项。';
1405
1449
  };
1406
- readonly 'local.runtime.value.constraint': {
1407
- readonly en: 'Dynamic {attribute} constraint failed for parameter {name}.';
1408
- readonly zh: '参数 {name} 的动态 {attribute} 约束无法计算。';
1450
+ readonly 'budget.checklistItems': {
1451
+ readonly en: '<checklist> items exceed the limit of {limit}.';
1452
+ readonly zh: '<checklist> 的任务项数量超过上限 {limit}。';
1409
1453
  };
1410
- readonly 'local.runtime.value.constraint-range': {
1411
- readonly en: 'Dynamic constraints for parameter {name} produce an invalid range.';
1412
- readonly zh: '参数 {name} 的动态约束产生无效范围。';
1454
+ readonly 'checklist.taskOnly': {
1455
+ readonly en: '<checklist> can only contain task list items (- [ ] / - [x]).';
1456
+ readonly zh: '<checklist> 只能包含任务列表项(- [ ] / - [x])。';
1413
1457
  };
1414
- readonly 'local.runtime.value.constraint-date': {
1415
- readonly en: 'Dynamic {attribute} date bound for parameter {name} is not a valid YYYY-MM-DD value.';
1416
- readonly zh: '参数 {name} 的动态 {attribute} 日期边界不是合法的 YYYY-MM-DD。';
1458
+ readonly 'checklist.noNested': {
1459
+ readonly en: '<checklist> does not support nested lists.';
1460
+ readonly zh: '<checklist> 不支持嵌套列表。';
1461
+ };
1462
+ readonly 'checklist.noComponents': {
1463
+ readonly en: '<checklist> items cannot contain interactive components.';
1464
+ readonly zh: '<checklist> 的任务项不能包含交互组件。';
1417
1465
  };
1418
1466
  };
1419
1467
  export type LocalDiagnosticMessageKey = keyof typeof LOCAL_DIAGNOSTIC_MESSAGES;