reactive-md 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-ch.md +397 -333
- package/CHANGELOG.md +398 -334
- package/CONTRIBUTING-ch.md +22 -22
- package/CONTRIBUTING.md +22 -22
- package/README-ch.md +431 -431
- package/README-en.md +431 -431
- package/README.md +429 -429
- package/SECURITY-ch.md +83 -83
- package/SECURITY.md +83 -83
- package/THIRD_PARTY_NOTICES.md +0 -57
- package/bin/reactive-md.mjs +39 -39
- package/cli/args.mjs +263 -263
- package/cli/assets.mjs +395 -395
- package/cli/build.mjs +445 -445
- package/cli/check.mjs +444 -444
- package/cli/document.mjs +130 -130
- package/cli/errors.mjs +61 -61
- package/cli/fs-utils.mjs +133 -133
- package/cli/glob.mjs +203 -203
- package/cli/help.mjs +325 -323
- package/cli/init.mjs +1577 -1577
- package/cli/lint.mjs +177 -177
- package/cli/main.mjs +65 -65
- package/cli/migrate.mjs +368 -368
- package/cli/package-loader.mjs +41 -41
- package/cli/package.mjs +211 -211
- package/dist-library/LocalDocumentView-CP2QG86k.js +114 -0
- package/dist-library/{LocalDocumentViewCore-DXE0I0Qc.js → LocalDocumentViewCore-Cd6yMEkg.js} +379 -9445
- package/dist-library/LocalReactiveDocumentCore-VuYpZqdn.js +283 -0
- package/dist-library/LocalStaticDocumentView-DfX6bemE.js +147 -0
- package/dist-library/authoring-Bwu_zCWs.js +768 -0
- package/dist-library/chart-B1TUtzm-.js +3 -0
- package/dist-library/choice-values-BItGjPD2.js +58 -0
- package/dist-library/color-values-r8Wf7ALn.js +6 -0
- package/dist-library/compile-B35rfzKr.js +1742 -0
- package/dist-library/compile-cache-key-D21X2Obx.js +28 -0
- package/dist-library/compiler-DBwLawMZ.js +98 -0
- package/dist-library/{compiler-core-DDDdvuLy.js → compiler-core-kkDiQ1RK.js} +4202 -3496
- package/dist-library/component-kernel-CsJSabHX.js +372 -0
- package/dist-library/{component-state-BRwvTV0d.js → component-state-Da0G8Ajc.js} +1 -1
- package/dist-library/component-utils-ZM3jUJNy.js +339 -0
- package/dist-library/conditional-branches-CIhJXasR.js +17 -0
- package/dist-library/config-validation-DbmsWAEV.js +469 -0
- package/dist-library/controls-DRy5rzzN.js +5970 -0
- package/dist-library/controls-DWlx-AQl.js +3 -0
- package/dist-library/{coordinate-B1VFK9fd.js → coordinate-c54pHfgf.js} +89 -89
- package/dist-library/data-BtFlkJzp.js +3 -0
- package/dist-library/data-table-CSAkm1eU.js +290 -0
- package/dist-library/data-table-model-DruztQFt.js +391 -0
- package/dist-library/data-visuals-rZQUeQM0.js +384 -0
- package/dist-library/{default-components-s21NevON.js → default-components-B-39etG9.js} +518 -355
- package/dist-library/{config-DXLvctiZ.js → default-config-CCa8rm2k.js} +265 -230
- package/dist-library/default-options-By16CVw1.js +131 -0
- package/dist-library/{registry-D6OGkOcX.js → default-registry-DXJy66xj.js} +4 -4
- package/dist-library/default-schema-CeYiEW1K.js +33 -0
- package/dist-library/diagram-BLepzI8l.js +3 -0
- package/dist-library/display-Bb6hAG5T.js +2065 -0
- package/dist-library/dist-Cueh1Psp.js +4761 -0
- package/dist-library/{document-theme-C8J6UyNO.js → document-theme-CJvN-nC1.js} +246 -4
- package/dist-library/{export-CIAIPBov.js → export-BSV4E0jv.js} +135 -135
- package/dist-library/font-aliases-CKYjwn4o.js +4 -0
- package/dist-library/gallery-BC6FYTqw.js +3 -0
- package/dist-library/{gallery-Dv1rOvL0.js → gallery-DM2yTVZJ.js} +1 -1
- package/dist-library/{html-Cr4CBwAH.js → html-CY9mC3Sr.js} +49 -48
- package/dist-library/{incremental-9nx92u9c.js → incremental-B-wW4H3F.js} +537 -384
- package/dist-library/{display-B_uutKkN.js → katex-4ukd4ZxT.js} +1555 -3618
- package/dist-library/layout-CPQggKxk.js +592 -0
- package/dist-library/layout-CaDWsDof.js +3 -0
- package/dist-library/limits-CFERRrlC.js +10 -0
- package/dist-library/localization-COdJ6lw2.js +6 -0
- package/dist-library/mafs-CnzDC5CR.js +3 -0
- package/dist-library/math-view-CyGTS6kv.js +20 -0
- package/dist-library/motion-tokens-Czk0RDmS.js +283 -0
- package/dist-library/mount-preset-DtrCX4G8.js +24 -0
- package/dist-library/numeric-sliders-BmJ1LCLx.js +542 -0
- package/dist-library/{observability-4KqXhIEU.js → observability-BVQ16ByQ.js} +125 -43
- package/dist-library/package-core-Cu_r_qs7.js +128 -0
- package/dist-library/parser-BHl9Lxbw.js +8 -0
- package/dist-library/parser-standard-DDAKv_DZ.js +4872 -0
- package/dist-library/plugin-packs-CkI0floL.js +19 -0
- package/dist-library/preset-core-BKPbH_Nv.js +1371 -0
- package/dist-library/props-0iDqxlTk.js +174 -0
- package/dist-library/react-74jdGBmu.js +32 -0
- package/dist-library/reactive-md-authoring.js +315 -296
- package/dist-library/reactive-md-build.js +334 -43
- package/dist-library/reactive-md-compiler-session.js +4 -0
- package/dist-library/reactive-md-compiler-standard.js +10 -10
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-contracts.js +6 -0
- package/dist-library/reactive-md-default-packs.js +32 -15
- package/dist-library/reactive-md-default-preset.js +7 -7
- package/dist-library/reactive-md-export.js +6 -5
- package/dist-library/reactive-md-minimal-preset.js +3 -2
- package/dist-library/reactive-md-minimal-react-preset.js +26 -23
- package/dist-library/reactive-md-minimal.css +1 -1
- package/dist-library/reactive-md-observability.js +125 -3
- package/dist-library/reactive-md-pack-style-manifest.js +805 -0
- package/dist-library/reactive-md-plugin-chart.js +14 -9
- package/dist-library/reactive-md-plugin-data.js +8 -8
- package/dist-library/reactive-md-plugin-diagram.js +7 -6
- package/dist-library/reactive-md-plugin-forms.js +14 -13
- package/dist-library/reactive-md-plugin-gallery.js +6 -5
- package/dist-library/reactive-md-plugin-navigation.js +8 -8
- package/dist-library/reactive-md-plugin-network.js +13 -13
- package/dist-library/reactive-md-plugin-plot.js +7 -6
- package/dist-library/reactive-md-print.css +304 -304
- package/dist-library/reactive-md-react-component-accordion.js +10 -0
- package/dist-library/reactive-md-react-component-alert.js +10 -0
- package/dist-library/reactive-md-react-component-anchor.js +10 -0
- package/dist-library/reactive-md-react-component-badge.js +10 -0
- package/dist-library/reactive-md-react-component-card.js +10 -0
- package/dist-library/reactive-md-react-component-chart.js +22 -0
- package/dist-library/reactive-md-react-component-checkbox.js +10 -0
- package/dist-library/reactive-md-react-component-checklist.js +10 -0
- package/dist-library/reactive-md-react-component-choices.js +10 -0
- package/dist-library/reactive-md-react-component-column.js +6 -0
- package/dist-library/reactive-md-react-component-coordinate.js +21 -0
- package/dist-library/reactive-md-react-component-counter.js +10 -0
- package/dist-library/reactive-md-react-component-data-table.js +14 -0
- package/dist-library/reactive-md-react-component-date.js +10 -0
- package/dist-library/reactive-md-react-component-diagram.js +22 -0
- package/dist-library/reactive-md-react-component-disclosure.js +10 -0
- package/dist-library/reactive-md-react-component-edge.js +22 -0
- package/dist-library/reactive-md-react-component-else.js +10 -0
- package/dist-library/reactive-md-react-component-gallery-item.js +10 -0
- package/dist-library/reactive-md-react-component-gallery.js +10 -0
- package/dist-library/reactive-md-react-component-grid.js +10 -0
- package/dist-library/reactive-md-react-component-if.js +10 -0
- package/dist-library/reactive-md-react-component-input.js +10 -0
- package/dist-library/reactive-md-react-component-jump.js +10 -0
- package/dist-library/reactive-md-react-component-multi-select.js +10 -0
- package/dist-library/reactive-md-react-component-node.js +22 -0
- package/dist-library/reactive-md-react-component-number.js +10 -0
- package/dist-library/reactive-md-react-component-option.js +10 -0
- package/dist-library/reactive-md-react-component-panel.js +10 -0
- package/dist-library/reactive-md-react-component-plot.js +26 -0
- package/dist-library/reactive-md-react-component-progress.js +10 -0
- package/dist-library/reactive-md-react-component-quiz.js +10 -0
- package/dist-library/reactive-md-react-component-radio-group.js +10 -0
- package/dist-library/reactive-md-react-component-range-slider.js +10 -0
- package/dist-library/reactive-md-react-component-section.js +10 -0
- package/dist-library/reactive-md-react-component-select.js +10 -0
- package/dist-library/reactive-md-react-component-slider.js +10 -0
- package/dist-library/reactive-md-react-component-step.js +10 -0
- package/dist-library/reactive-md-react-component-steps.js +10 -0
- package/dist-library/reactive-md-react-component-tab.js +10 -0
- package/dist-library/reactive-md-react-component-table.js +14 -0
- package/dist-library/reactive-md-react-component-tabs.js +10 -0
- package/dist-library/reactive-md-react-component-text.js +10 -0
- package/dist-library/reactive-md-react-component-textarea.js +10 -0
- package/dist-library/reactive-md-react-component-timeline.js +14 -0
- package/dist-library/reactive-md-react-component-timer.js +10 -0
- package/dist-library/reactive-md-react-component-toggle.js +10 -0
- package/dist-library/reactive-md-react-component-tooltip.js +10 -0
- package/dist-library/reactive-md-react-component-validation.js +10 -0
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-pack-controls.js +44 -0
- package/dist-library/reactive-md-react-pack-data.js +21 -0
- package/dist-library/reactive-md-react-pack-layout.js +37 -0
- package/dist-library/reactive-md-react-pack-visuals.js +43 -0
- package/dist-library/reactive-md-react-packed.js +50 -0
- package/dist-library/reactive-md-react-server.js +29 -27
- package/dist-library/reactive-md-react-static-server.js +24 -0
- package/dist-library/reactive-md-react-static.js +1 -0
- package/dist-library/reactive-md-react-unstyled.js +15 -12
- package/dist-library/reactive-md-react.js +15 -12
- package/dist-library/reactive-md-scan.js +1 -0
- package/dist-library/reactive-md-sdk.js +23 -9
- package/dist-library/reactive-md-standalone-configured.js +2 -2
- package/dist-library/reactive-md-standalone-host.js +2 -2
- package/dist-library/reactive-md-testing-browser.js +2 -2
- package/dist-library/reactive-md-testing-react.js +32 -32
- package/dist-library/reactive-md-testing.js +12 -12
- package/dist-library/reactive-md-vite.js +25 -9
- package/dist-library/reactive-md-worker-pool.js +401 -0
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +97 -1554
- package/dist-library/registry-core-DxEaxhJ6.js +126 -0
- package/dist-library/render-nodes-B6j6Ip5I.js +9404 -0
- package/dist-library/requirements-C56sFIEs.js +157 -0
- package/dist-library/resources-6VaNgk-h.js +74 -0
- package/dist-library/rmd-pack-controls.css +1032 -0
- package/dist-library/rmd-pack-data.css +724 -0
- package/dist-library/rmd-pack-layout.css +1834 -0
- package/dist-library/rmd-pack-resource-chart.css +300 -0
- package/dist-library/rmd-pack-resource-controls.css +781 -0
- package/dist-library/rmd-pack-resource-data-visuals.css +501 -0
- package/dist-library/rmd-pack-resource-diagram.css +106 -0
- package/dist-library/rmd-pack-resource-gallery.css +346 -0
- package/dist-library/rmd-pack-resource-graphics.css +516 -0
- package/dist-library/rmd-pack-resource-layout.css +1489 -0
- package/dist-library/rmd-pack-resource-mafs-core.css +124 -0
- package/dist-library/rmd-pack-resource-mafs.css +129 -0
- package/dist-library/rmd-pack-resource-visual-base.css +224 -0
- package/dist-library/rmd-pack-visuals.css +1394 -0
- package/dist-library/runtime-BHeuLOv_.js +1369 -0
- package/dist-library/runtime-requirement-DzPO8raU.js +772 -0
- package/dist-library/schema-core-CDXfxdID.js +155 -0
- package/dist-library/sdk-core-CnE-n0Z7.js +1295 -0
- package/dist-library/{session-core-dxQCJBNa.js → session-core-C071yQwV.js} +147 -133
- package/dist-library/sha256-utf16-Bmandi_H.js +937 -0
- package/dist-library/shareable-CHCDnl6j.js +844 -0
- package/dist-library/shared-bTzN-F4g.js +3 -0
- package/dist-library/structural-views-30-YD_TJ.js +11 -0
- package/dist-library/table-surface-CfZn_tk-.js +13 -0
- package/dist-library/types/assemblies/compile-cache-key.d.ts +11 -0
- package/dist-library/types/assemblies/default-config.d.ts +35 -0
- package/dist-library/types/{local/configuration/options.d.ts → assemblies/default-options.d.ts} +4 -4
- package/dist-library/types/assemblies/default-registry.d.ts +18 -0
- package/dist-library/types/{local/configuration/schema.d.ts → assemblies/default-schema.d.ts} +4 -4
- package/dist-library/types/authoring/catalog.d.ts +14 -2
- package/dist-library/types/authoring/extensions.d.ts +1 -1
- package/dist-library/types/authoring/index.d.ts +4 -4
- package/dist-library/types/authoring/templates.d.ts +1 -1
- package/dist-library/types/compiler/index.d.ts +1 -0
- package/dist-library/types/compiler/session.d.ts +19 -0
- package/dist-library/types/compiler/standard.d.ts +1 -0
- package/dist-library/types/components/chart/default-chart-types.d.ts +3 -0
- package/dist-library/types/components/chart/default-chart.d.ts +7 -0
- package/dist-library/types/components/entries/accordion.d.ts +3 -0
- package/dist-library/types/components/entries/alert.d.ts +3 -0
- package/dist-library/types/components/entries/anchor.d.ts +3 -0
- package/dist-library/types/components/entries/badge.d.ts +3 -0
- package/dist-library/types/components/entries/card.d.ts +3 -0
- package/dist-library/types/components/entries/chart.d.ts +3 -0
- package/dist-library/types/components/entries/checkbox.d.ts +3 -0
- package/dist-library/types/components/entries/checklist.d.ts +3 -0
- package/dist-library/types/components/entries/choices.d.ts +3 -0
- package/dist-library/types/components/entries/column.d.ts +3 -0
- package/dist-library/types/components/entries/coordinate.d.ts +3 -0
- package/dist-library/types/components/entries/counter.d.ts +3 -0
- package/dist-library/types/components/entries/data-table.d.ts +3 -0
- package/dist-library/types/components/entries/date.d.ts +3 -0
- package/dist-library/types/components/entries/diagram.d.ts +3 -0
- package/dist-library/types/components/entries/disclosure.d.ts +3 -0
- package/dist-library/types/components/entries/edge.d.ts +3 -0
- package/dist-library/types/components/entries/else.d.ts +3 -0
- package/dist-library/types/components/entries/gallery-item.d.ts +3 -0
- package/dist-library/types/components/entries/gallery.d.ts +3 -0
- package/dist-library/types/components/entries/grid.d.ts +3 -0
- package/dist-library/types/components/entries/if.d.ts +3 -0
- package/dist-library/types/components/entries/input.d.ts +3 -0
- package/dist-library/types/components/entries/jump.d.ts +3 -0
- package/dist-library/types/components/entries/multi-select.d.ts +3 -0
- package/dist-library/types/components/entries/node.d.ts +3 -0
- package/dist-library/types/components/entries/number.d.ts +3 -0
- package/dist-library/types/components/entries/option.d.ts +3 -0
- package/dist-library/types/components/entries/panel.d.ts +3 -0
- package/dist-library/types/components/entries/plot.d.ts +3 -0
- package/dist-library/types/components/entries/progress.d.ts +3 -0
- package/dist-library/types/components/entries/quiz.d.ts +3 -0
- package/dist-library/types/components/entries/radio-group.d.ts +3 -0
- package/dist-library/types/components/entries/range-slider.d.ts +3 -0
- package/dist-library/types/components/entries/section.d.ts +3 -0
- package/dist-library/types/components/entries/select.d.ts +3 -0
- package/dist-library/types/components/entries/slider.d.ts +3 -0
- package/dist-library/types/components/entries/step.d.ts +3 -0
- package/dist-library/types/components/entries/steps.d.ts +3 -0
- package/dist-library/types/components/entries/tab.d.ts +3 -0
- package/dist-library/types/components/entries/table.d.ts +3 -0
- package/dist-library/types/components/entries/tabs.d.ts +3 -0
- package/dist-library/types/components/entries/text.d.ts +3 -0
- package/dist-library/types/components/entries/textarea.d.ts +3 -0
- package/dist-library/types/components/entries/timeline.d.ts +3 -0
- package/dist-library/types/components/entries/timer.d.ts +3 -0
- package/dist-library/types/components/entries/toggle.d.ts +3 -0
- package/dist-library/types/components/entries/tooltip.d.ts +3 -0
- package/dist-library/types/components/entries/validation.d.ts +3 -0
- package/dist-library/types/components/layout/layout.d.ts +6 -3
- package/dist-library/types/components/layout/structural-views.d.ts +3 -0
- package/dist-library/types/components/mount-preset.d.ts +2 -0
- package/dist-library/types/components/packs/controls.d.ts +2 -0
- package/dist-library/types/components/packs/data.d.ts +2 -0
- package/dist-library/types/components/packs/layout.d.ts +2 -0
- package/dist-library/types/components/packs/visuals.d.ts +2 -0
- package/dist-library/types/components/shared/data-visuals.d.ts +3 -0
- package/dist-library/types/components/shared/table-surface.d.ts +10 -0
- package/dist-library/types/components/shared/visual-helpers.d.ts +24 -0
- package/dist-library/types/components/shared/visuals.d.ts +1 -3
- package/dist-library/types/components/table/data-table-model.d.ts +141 -0
- package/dist-library/types/components/table/data-table.d.ts +3 -50
- package/dist-library/types/{local/configuration → contracts}/component-kernel.d.ts +9 -2
- package/dist-library/types/contracts/font-aliases.d.ts +18 -0
- package/dist-library/types/contracts/index.d.ts +8 -0
- package/dist-library/types/{local/configuration → contracts}/limits.d.ts +9 -1
- package/dist-library/types/contracts/localization.d.ts +6 -0
- package/dist-library/types/contracts/number-literal.d.ts +2 -0
- package/dist-library/types/contracts/runtime-types.d.ts +19 -0
- package/dist-library/types/contracts/sha256-utf16.d.ts +2 -0
- package/dist-library/types/export/index.d.ts +4 -1
- package/dist-library/types/local/compilation/cache-version.d.ts +1 -0
- package/dist-library/types/local/compilation/compile-status.d.ts +2 -0
- package/dist-library/types/local/compilation/compiler-bindings.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +4 -1
- package/dist-library/types/local/compilation/compiler-choices.d.ts +4 -0
- package/dist-library/types/local/compilation/compiler-core.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-declarations.d.ts +2 -1
- package/dist-library/types/local/compilation/compiler-embedding.d.ts +20 -0
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +17 -5
- package/dist-library/types/local/compilation/compiler-macros.d.ts +18 -0
- package/dist-library/types/local/compilation/compiler-structure.d.ts +9 -3
- package/dist-library/types/local/compilation/compiler-tables.d.ts +4 -2
- package/dist-library/types/local/compilation/compiler-validation.d.ts +14 -7
- package/dist-library/types/local/compilation/compiler-values.d.ts +2 -3
- package/dist-library/types/local/compilation/compiler.d.ts +1 -1
- package/dist-library/types/local/compilation/component-usage.d.ts +2 -0
- package/dist-library/types/local/compilation/runtime-requirement.d.ts +3 -0
- package/dist-library/types/local/compilation/session/incremental.d.ts +5 -1
- package/dist-library/types/local/compilation/streaming.d.ts +1 -1
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +228 -2
- package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +40 -0
- package/dist-library/types/local/configuration/embedding.d.ts +4 -0
- package/dist-library/types/local/configuration/kernel-value-rules.d.ts +1 -1
- package/dist-library/types/local/configuration/options-core.d.ts +8 -2
- package/dist-library/types/local/evaluation/choice-values.d.ts +22 -0
- package/dist-library/types/local/evaluation/computations.d.ts +13 -5
- package/dist-library/types/local/evaluation/dataset.d.ts +4 -0
- package/dist-library/types/local/evaluation/expression/collection-functions.d.ts +13 -0
- package/dist-library/types/local/evaluation/expression/compile.d.ts +11 -4
- package/dist-library/types/local/evaluation/expression/data-functions.d.ts +23 -0
- package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -1
- package/dist-library/types/local/evaluation/expression/internal-names.d.ts +8 -0
- package/dist-library/types/local/evaluation/expression/syntax.d.ts +19 -2
- package/dist-library/types/local/evaluation/expression/transform-budget.d.ts +13 -0
- package/dist-library/types/local/evaluation/expression/values.d.ts +9 -1
- package/dist-library/types/local/evaluation/validation.d.ts +8 -6
- package/dist-library/types/local/index.d.ts +10 -4
- package/dist-library/types/local/observability-core.d.ts +20 -1
- package/dist-library/types/local/observability.d.ts +2 -0
- package/dist-library/types/local/parsing/conditional-branches.d.ts +4 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +18 -2
- package/dist-library/types/local/parsing/parser-region.d.ts +13 -2
- package/dist-library/types/local/parsing/parser-tags.d.ts +6 -1
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +8 -0
- package/dist-library/types/local/parsing/source-revision.d.ts +3 -0
- package/dist-library/types/local/performance-report.d.ts +70 -0
- package/dist-library/types/local/runtime/runtime-choices.d.ts +11 -0
- package/dist-library/types/local/runtime/runtime-pool.d.ts +14 -0
- package/dist-library/types/local/runtime/runtime.d.ts +3 -1
- package/dist-library/types/local/runtime/state.d.ts +30 -15
- package/dist-library/types/local/source/authoring-requirements.d.ts +3 -0
- package/dist-library/types/local/source/authoring-syntax.d.ts +3 -2
- package/dist-library/types/local/source/authoring.d.ts +10 -0
- package/dist-library/types/local/source/source-migration.d.ts +1 -0
- package/dist-library/types/local/transport/worker-handler.d.ts +3 -0
- package/dist-library/types/local/transport/worker-job.d.ts +12 -2
- package/dist-library/types/local/transport/worker-pool.d.ts +68 -0
- package/dist-library/types/local/transport/worker.d.ts +14 -0
- package/dist-library/types/local/types.d.ts +70 -27
- package/dist-library/types/observability.d.ts +1 -0
- package/dist-library/types/presets/default-semantics.d.ts +1 -1
- package/dist-library/types/presets/identity.d.ts +1 -8
- package/dist-library/types/presets/pack-style-entry.d.ts +3 -0
- package/dist-library/types/presets/pack-style-manifest.d.ts +11 -0
- package/dist-library/types/react/component-api.d.ts +24 -4
- package/dist-library/types/react/component-loader.d.ts +61 -0
- package/dist-library/types/react/component-primitives.d.ts +5 -5
- package/dist-library/types/react/component-utils.d.ts +11 -0
- package/dist-library/types/react/font-aliases.d.ts +2 -0
- package/dist-library/types/react/index.d.ts +9 -5
- package/dist-library/types/react/localization.d.ts +5 -6
- package/dist-library/types/react/minimal.d.ts +2 -2
- package/dist-library/types/react/package-core.d.ts +6 -0
- package/dist-library/types/react/packed.d.ts +17 -0
- package/dist-library/types/react/render-lifecycle.d.ts +9 -0
- package/dist-library/types/{local → react}/rendering/document/ExtendedHtmlFragment.d.ts +1 -1
- package/dist-library/types/{local → react}/rendering/document/LocalDocumentViewCore.d.ts +11 -4
- package/dist-library/types/react/rendering/document/LocalPooledDocumentView.d.ts +8 -0
- package/dist-library/types/react/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
- package/dist-library/types/react/rendering/document/LocalStaticDocumentView.d.ts +18 -0
- package/dist-library/types/react/rendering/document/StaticExternalSlot.d.ts +25 -0
- package/dist-library/types/react/rendering/document/StaticHostData.d.ts +14 -0
- package/dist-library/types/{local → react}/rendering/document/render-nodes.d.ts +8 -8
- package/dist-library/types/react/rendering/document/static-runtime.d.ts +11 -0
- package/dist-library/types/{local → react}/rendering/document/use-author-script.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/document/validation-state.d.ts +3 -3
- package/dist-library/types/{local → react}/rendering/document/view-render-context.d.ts +40 -8
- package/dist-library/types/{local → react}/rendering/document/view-revision.d.ts +5 -14
- package/dist-library/types/{local → react}/rendering/render-types.d.ts +5 -5
- package/dist-library/types/react/rendering/table/data-table.d.ts +5 -0
- package/dist-library/types/{local → react}/rendering/table/table-numeric-columns.d.ts +3 -3
- package/dist-library/types/react/sdk-core.d.ts +15 -4
- package/dist-library/types/react/sdk.d.ts +2 -1
- package/dist-library/types/react/server.d.ts +3 -10
- package/dist-library/types/react/static-server.d.ts +12 -0
- package/dist-library/types/scan/index.d.ts +15 -0
- package/dist-library/types/sdk/assembly.d.ts +3 -0
- package/dist-library/types/sdk/config.d.ts +2 -35
- package/dist-library/types/sdk/default-identity.d.ts +3 -0
- package/dist-library/types/sdk/font.d.ts +13 -0
- package/dist-library/types/sdk/index.d.ts +2 -1
- package/dist-library/types/sdk/preset.d.ts +9 -0
- package/dist-library/types/sdk/props.d.ts +8 -3
- package/dist-library/types/sdk/registry-core.d.ts +2 -2
- package/dist-library/types/sdk/registry.d.ts +2 -18
- package/dist-library/types/sdk/theme.d.ts +5 -0
- package/dist-library/types/sdk/types.d.ts +8 -2
- package/dist-library/types/sdk/version.d.ts +2 -0
- package/dist-library/types/shareable.d.ts +15 -3
- package/dist-library/types/standalone/prepare.d.ts +4 -2
- package/dist-library/types/standalone/session-core.d.ts +5 -2
- package/dist-library/types/vite/index.d.ts +3 -0
- package/dist-library/types/vite/registration.d.ts +1 -0
- package/dist-library/{types-Ib5kSScP.js → types-B4qG8J4S.js} +1 -1
- package/dist-library/types-FYhRWRn9.js +3 -0
- package/dist-library/use-hydrated-D1gFY2Dq.js +2655 -0
- package/dist-library/validation-DRuW0Wl9.js +433 -0
- package/dist-library/{version-DAxuGOG2.js → version-4wzhbvDG.js} +24 -33
- package/dist-library/visual-frame-y5RFhJ0_.js +19 -0
- package/dist-library/visual-helpers-UU6xiL8g.js +75 -0
- package/dist-library/visuals-7xzoL9ql.js +49340 -0
- package/dist-library/visuals-CdHezgh5.js +3 -0
- package/dist-library/worker-3ldRjOEG.js +1632 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +127 -366
- package/docs/README-ch.md +104 -101
- package/docs/README.md +104 -101
- package/docs/compatibility/api-stability-ch.md +1 -1
- package/docs/compatibility/api-stability-en.md +1 -1
- package/docs/compatibility/compatibility-ch.md +146 -146
- package/docs/compatibility/compatibility-en.md +146 -146
- package/docs/compatibility/compatibility-manifest.schema.json +3 -2
- package/docs/compatibility/deprecation-ch.md +2 -2
- package/docs/compatibility/deprecation-en.md +2 -2
- package/docs/compatibility/source-versioning-ch.md +170 -162
- package/docs/compatibility/source-versioning-en.md +171 -162
- package/docs/compatibility/support-matrix-ch.md +4 -3
- package/docs/compatibility/support-matrix-en.md +4 -3
- package/docs/development/component-development-ch.md +66 -66
- package/docs/development/component-development-en.md +66 -66
- package/docs/development/component-development-reference-ch.md +269 -253
- package/docs/development/component-development-reference-en.md +254 -238
- package/docs/development/component-protocol-ch.md +768 -748
- package/docs/development/component-protocol-en.md +770 -750
- package/docs/development/extension-tutorial-ch.md +308 -308
- package/docs/development/extension-tutorial-en.md +308 -308
- package/docs/development/performance-overview-ch.md +422 -422
- package/docs/development/performance-overview-en.md +422 -422
- package/docs/guides/local-guide-ch.md +621 -532
- package/docs/guides/local-guide-en.md +621 -532
- package/docs/integration/author-tools-ch.md +66 -64
- package/docs/integration/author-tools-en.md +66 -64
- package/docs/integration/compiler-ch.md +90 -49
- package/docs/integration/compiler-en.md +77 -36
- package/docs/integration/directory-discovery-en.md +1 -1
- package/docs/integration/editor-ch.md +295 -295
- package/docs/integration/editor-en.md +303 -303
- package/docs/integration/extension-sdk-ch.md +424 -394
- package/docs/integration/extension-sdk-en.md +409 -379
- package/docs/integration/local-integration-ch.md +648 -646
- package/docs/integration/local-integration-en.md +664 -662
- package/docs/integration/pdf-export-ch.md +42 -0
- package/docs/integration/pdf-export-en.md +42 -0
- package/docs/integration/shareable-export-ch.md +299 -307
- package/docs/integration/shareable-export-en.md +301 -309
- package/docs/reference/diagnostics-counting-ch.md +127 -104
- package/docs/reference/diagnostics-counting-en.md +127 -104
- package/docs/reference/html-compatibility-ch.md +93 -93
- package/docs/reference/html-compatibility-en.md +95 -95
- package/docs/reference/local-interaction-syntax-ch.md +913 -724
- package/docs/reference/local-interaction-syntax-en.md +911 -722
- package/docs/reference/public-api-ch.md +134 -21
- package/docs/reference/public-api-en.md +134 -21
- package/docs/reference/theme-protocol-ch.md +198 -198
- package/docs/reference/theme-protocol-en.md +217 -217
- package/docs/releases/release-0.10.0-ch.md +45 -0
- package/docs/releases/release-0.10.0-en.md +45 -0
- package/docs/releases/release-0.4.0-ch.md +91 -91
- package/docs/releases/release-0.4.0-en.md +91 -91
- package/docs/releases/release-0.4.1-ch.md +25 -25
- package/docs/releases/release-0.4.1-en.md +25 -25
- package/docs/releases/release-0.5.0-ch.md +43 -43
- package/docs/releases/release-0.5.0-en.md +43 -43
- package/docs/releases/release-0.5.1-ch.md +41 -41
- package/docs/releases/release-0.5.1-en.md +41 -41
- package/docs/releases/release-0.5.2-ch.md +37 -37
- package/docs/releases/release-0.5.2-en.md +37 -37
- package/docs/releases/release-0.5.3-ch.md +26 -26
- package/docs/releases/release-0.5.3-en.md +26 -26
- package/docs/releases/release-0.6.0-ch.md +59 -59
- package/docs/releases/release-0.6.0-en.md +59 -59
- package/docs/releases/release-0.6.1-ch.md +29 -29
- package/docs/releases/release-0.6.1-en.md +29 -29
- package/docs/releases/release-0.7.0-ch.md +86 -86
- package/docs/releases/release-0.7.0-en.md +86 -86
- package/docs/releases/release-0.9.3-ch.md +45 -0
- package/docs/releases/release-0.9.3-en.md +45 -0
- package/examples/component-package/README-ch.md +101 -101
- package/examples/component-package/README.md +133 -133
- package/examples/conformance/README-ch.md +55 -55
- package/examples/conformance/README.md +55 -55
- package/examples/conformance/component-protocol-1.json +482 -482
- package/examples/conformance/component-protocol-1.schema.json +76 -76
- package/examples/conformance/local-draft-1.json +50 -50
- package/examples/conformance/local-draft-2.json +212 -212
- package/examples/conformance/local-draft-4.json +441 -0
- package/examples/game-2048-package/LICENSE +21 -21
- package/examples/game-2048-package/NOTICES.md +11 -11
- package/examples/game-2048-package/README-ch.md +91 -91
- package/examples/game-2048-package/README.md +98 -98
- package/examples/game-2048-package/package.json +35 -35
- package/examples/game-2048-package/sample/document.reactive.md +17 -17
- package/examples/game-2048-package/scripts/build-export.mjs +44 -44
- package/examples/game-2048-package/scripts/build.mjs +130 -130
- package/examples/game-2048-package/scripts/verify.mjs +180 -180
- package/examples/game-2048-package/src/component.css +161 -161
- package/examples/game-2048-package/src/components.tsx +326 -326
- package/examples/game-2048-package/src/game-engine.ts +228 -228
- package/examples/game-2048-package/src/harness.tsx +34 -34
- package/examples/game-2048-package/src/manifest.ts +85 -85
- package/examples/game-2048-package/src/node-entry.ts +30 -30
- package/examples/game-2048-package/src/sample.ts +4 -4
- package/examples/game-2048-package/tsconfig.json +15 -15
- package/examples/integration/README-ch.md +114 -82
- package/examples/integration/README.md +114 -82
- package/examples/integration/chat-session/index.mjs +91 -0
- package/examples/integration/chat-session/package.json +10 -0
- package/examples/integration/core/index.mjs +32 -32
- package/examples/integration/extension-sdk/README-ch.md +24 -24
- package/examples/integration/extension-sdk/README.md +24 -24
- package/examples/integration/static-embed/embed.mjs +44 -0
- package/examples/integration/static-embed/index.html +12 -0
- package/examples/integration/static-embed/main.mjs +24 -0
- package/examples/integration/static-embed/references.mjs +5 -0
- package/examples/integration/static-embed/render.mjs +10 -0
- package/examples/integration/worker/index.html +19 -19
- package/examples/integration/worker/main.js +61 -61
- package/examples/integration/worker/package.json +13 -13
- package/examples/integration/worker/worker.js +3 -3
- package/examples/local/README-ch.md +76 -76
- package/examples/local/README.md +76 -76
- package/examples/local/charts.reactive.md +73 -73
- package/examples/local/recipes/invoice-zh.reactive.md +36 -36
- package/examples/local/recipes/invoice.reactive.md +36 -36
- package/examples/local/recipes/workshop-zh.reactive.md +33 -33
- package/examples/local/recipes/workshop.reactive.md +33 -33
- package/examples/local/showcase/README-ch.md +22 -22
- package/examples/local/showcase/README.md +31 -31
- package/examples/local/showcase/explore.reactive.md +102 -102
- package/examples/local/showcase/flow.reactive.md +86 -86
- package/examples/local/showcase/forms.reactive.md +126 -126
- package/examples/local/showcase/functions.reactive.md +119 -119
- package/examples/local/showcase/layout.reactive.md +100 -100
- package/examples/local/showcase/statistics.reactive.md +108 -108
- package/examples/local/showcase/tasks.reactive.md +89 -89
- package/examples/local/showcase/zh/explore.reactive.md +102 -102
- package/examples/local/showcase/zh/flow.reactive.md +86 -86
- package/examples/local/showcase/zh/forms.reactive.md +126 -126
- package/examples/local/showcase/zh/functions.reactive.md +119 -119
- package/examples/local/showcase/zh/layout.reactive.md +100 -100
- package/examples/local/showcase/zh/statistics.reactive.md +108 -108
- package/examples/local/showcase/zh/tasks.reactive.md +89 -89
- package/examples/minimal-extension/README-ch.md +78 -78
- package/examples/minimal-extension/README.md +78 -78
- package/examples/minimal-extension/index.html +15 -15
- package/examples/minimal-extension/package.json +26 -26
- package/examples/minimal-extension/sample/document.reactive.md +10 -10
- package/examples/minimal-extension/scripts/build.mjs +32 -32
- package/examples/minimal-extension/scripts/export.mjs +72 -72
- package/examples/minimal-extension/scripts/test-node.mjs +75 -75
- package/examples/minimal-extension/src/extension.tsx +90 -90
- package/examples/minimal-extension/src/preview.tsx +12 -12
- package/examples/minimal-extension/src/source.ts +4 -4
- package/examples/minimal-extension/tsconfig.json +14 -14
- package/examples/sci-fi-theme/README-ch.md +133 -133
- package/examples/sci-fi-theme/README.md +148 -148
- package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -454
- package/examples/sci-fi-theme/demo/demo.css +638 -638
- package/examples/sci-fi-theme/demo/document.reactive.md +206 -206
- package/examples/sci-fi-theme/demo/index.html +13 -13
- package/examples/sci-fi-theme/demo/main.tsx +215 -215
- package/examples/sci-fi-theme/docs/design-system-ch.md +245 -245
- package/examples/sci-fi-theme/docs/design-system.md +474 -474
- package/examples/sci-fi-theme/package.json +28 -28
- package/examples/sci-fi-theme/scripts/screenshot.mjs +98 -98
- package/examples/sci-fi-theme/src/components.css +2370 -2370
- package/examples/sci-fi-theme/src/index.ts +6 -6
- package/examples/sci-fi-theme/src/notch.css +142 -142
- package/examples/sci-fi-theme/src/sci-fi.css +7 -7
- package/examples/sci-fi-theme/src/theme.ts +39 -39
- package/examples/sci-fi-theme/tsconfig.json +20 -20
- package/examples/sci-fi-theme/vite.config.ts +24 -24
- package/examples/tetris-package/LICENSE +21 -21
- package/examples/tetris-package/NOTICES.md +11 -11
- package/examples/tetris-package/README-ch.md +91 -91
- package/examples/tetris-package/README.md +95 -95
- package/examples/tetris-package/package.json +35 -35
- package/examples/tetris-package/sample/document.reactive.md +16 -16
- package/examples/tetris-package/scripts/build-export.mjs +44 -44
- package/examples/tetris-package/scripts/build.mjs +130 -130
- package/examples/tetris-package/scripts/verify.mjs +173 -173
- package/examples/tetris-package/src/component.css +145 -145
- package/examples/tetris-package/src/components.tsx +334 -334
- package/examples/tetris-package/src/harness.tsx +34 -34
- package/examples/tetris-package/src/manifests.ts +93 -93
- package/examples/tetris-package/src/node-entry.ts +16 -16
- package/examples/tetris-package/src/sample.ts +4 -4
- package/examples/tetris-package/src/tetris-engine.ts +325 -325
- package/examples/tetris-package/tsconfig.json +15 -15
- package/package.json +66 -2
- package/dist-library/LocalDocumentView-BuqgJZEY.js +0 -109
- package/dist-library/LocalReactiveDocumentCore-CWBe4Mm5.js +0 -275
- package/dist-library/authoring-Ci_KzJ0q.js +0 -892
- package/dist-library/compile-Dx6Uw3D9.js +0 -1249
- package/dist-library/compiler-dxLPB9Ym.js +0 -86
- package/dist-library/config-validation-D3D7Dy2J.js +0 -586
- package/dist-library/controls-DoZyLCrV.js +0 -6740
- package/dist-library/data-table-8-3F15Jf.js +0 -296
- package/dist-library/layout-BBB2VF0S.js +0 -562
- package/dist-library/mount-preset-DMZ5wd3t.js +0 -13
- package/dist-library/options-BBp9IcHm.js +0 -121
- package/dist-library/package-core-K5xesGqy.js +0 -117
- package/dist-library/parser-standard-CBA1-hdG.js +0 -9630
- package/dist-library/plugin-packs-Bh1HhLym.js +0 -19
- package/dist-library/preset-core-DeZPA8IE.js +0 -1298
- package/dist-library/props-sJ8vk0cr.js +0 -183
- package/dist-library/react-0DCh-Mar.js +0 -7
- package/dist-library/registry-core-C9xOunaw.js +0 -479
- package/dist-library/resources-B0x_w3s9.js +0 -229
- package/dist-library/runtime-BpQdZmFI.js +0 -1288
- package/dist-library/schema-BryM_VRW.js +0 -40
- package/dist-library/sdk-core-ChslheKs.js +0 -1167
- package/dist-library/shareable-B8xMoGEa.js +0 -814
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +0 -6
- package/dist-library/types/local/rendering/table/data-table.d.ts +0 -13
- package/dist-library/types-daDo2c_w.js +0 -3
- package/dist-library/validation-B3RI0xOk.js +0 -1123
- package/dist-library/visual-frame-_rcd5HUv.js +0 -48
- package/dist-library/visuals-DkDhNdEZ.js +0 -72572
- /package/dist-library/types/{local/configuration → contracts}/color-values.d.ts +0 -0
- /package/dist-library/types/{local/html → contracts}/html-names.d.ts +0 -0
- /package/dist-library/types/{local/configuration → contracts}/schema-core.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-block.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-languages.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/LocalDocumentView.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/use-color-scheme.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/image/image-view.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/math-view.d.ts +0 -0
|
@@ -1,61 +1,64 @@
|
|
|
1
1
|
import { r as e } from "./latex-1w7aQgD5.js";
|
|
2
|
-
import "./
|
|
3
|
-
import { t } from "./compile-
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
|
|
2
|
+
import "./limits-CFERRrlC.js";
|
|
3
|
+
import { t } from "./compile-B35rfzKr.js";
|
|
4
|
+
import { f as n, h as r, p as i, r as a } from "./compiler-core-kkDiQ1RK.js";
|
|
5
|
+
import { n as o } from "./runtime-requirement-DzPO8raU.js";
|
|
6
|
+
import { t as s } from "./conditional-branches-CIhJXasR.js";
|
|
7
|
+
import { i as c, n as l, r as u } from "./parser-standard-DDAKv_DZ.js";
|
|
8
|
+
import { n as d } from "./compiler-DBwLawMZ.js";
|
|
9
|
+
import { n as f } from "./display-Bb6hAG5T.js";
|
|
10
|
+
import { s as p } from "./default-config-CCa8rm2k.js";
|
|
11
|
+
import { r as m, t as h } from "./default-options-By16CVw1.js";
|
|
12
|
+
import { t as g } from "./parser-BHl9Lxbw.js";
|
|
13
|
+
import { r as _ } from "./default-schema-CeYiEW1K.js";
|
|
14
|
+
function v(e, t) {
|
|
12
15
|
if (typeof t != "string" || t.length > 1e6) return !0;
|
|
13
16
|
if (e.severity !== "error") return !1;
|
|
14
17
|
let n = e.code, r = (e) => n === e || n.startsWith(`${e}.`);
|
|
15
|
-
return r("local.options") || r("local.budget") || r("local.version") || r("local.html") || r("local.parse") || r("local.security") || r("local.config") || r("local.registry") || r("local.capability");
|
|
18
|
+
return r("local.options") || r("local.budget") || n === "local.macro.depth" || n === "local.macro.conflict" || n === "local.macro.recursion" || r("local.version") || r("local.html") || r("local.parse") || r("local.security") || r("local.config") || r("local.registry") || r("local.capability");
|
|
16
19
|
}
|
|
17
|
-
function
|
|
18
|
-
let n = e.filter((e) => !
|
|
19
|
-
for (let i of e)
|
|
20
|
+
function y(e, t) {
|
|
21
|
+
let n = e.filter((e) => !v(e, t)), r = [];
|
|
22
|
+
for (let i of e) v(i, t) && (i.code === "local.html" && n.some((e) => e.range.start === i.range.start && e.range.end === i.range.end) ? n.push(i) : r.push(i));
|
|
20
23
|
return {
|
|
21
24
|
definite: r,
|
|
22
25
|
transient: n
|
|
23
26
|
};
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function b(e) {
|
|
26
29
|
return `${e.code}:${e.range.start}:${e.range.end}`;
|
|
27
30
|
}
|
|
28
|
-
function
|
|
31
|
+
function x(e, t) {
|
|
29
32
|
return e.range.start - t.range.start || e.range.end - t.range.end || e.line - t.line || e.column - t.column || (e.code < t.code ? -1 : +(e.code > t.code));
|
|
30
33
|
}
|
|
31
|
-
function
|
|
34
|
+
function S(e) {
|
|
32
35
|
let t = /* @__PURE__ */ new Map();
|
|
33
36
|
for (let n of e) for (let e of n) {
|
|
34
|
-
let n =
|
|
37
|
+
let n = b(e);
|
|
35
38
|
t.has(n) || t.set(n, e);
|
|
36
39
|
}
|
|
37
|
-
return [...t.values()].sort(
|
|
40
|
+
return [...t.values()].sort(x);
|
|
38
41
|
}
|
|
39
|
-
function
|
|
40
|
-
let n = t.filter((e) => e.code !== "local.author.unclosed"), r = t.filter((e) => e.code === "local.author.unclosed"), i = new Set(n.map(
|
|
42
|
+
function C(e, t) {
|
|
43
|
+
let n = t.filter((e) => e.code !== "local.author.unclosed"), r = t.filter((e) => e.code === "local.author.unclosed"), i = new Set(n.map(b));
|
|
41
44
|
return {
|
|
42
45
|
diagnostics: n,
|
|
43
|
-
transientDiagnostics:
|
|
46
|
+
transientDiagnostics: S([...e, r]).filter((e) => !i.has(b(e)))
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
|
-
function
|
|
49
|
+
function w(e, t) {
|
|
47
50
|
if (e.length !== t.length) return !1;
|
|
48
51
|
for (let n = 0; n < e.length; n += 1) if (e[n].start !== t[n].start || e[n].end !== t[n].end) return !1;
|
|
49
52
|
return !0;
|
|
50
53
|
}
|
|
51
|
-
function
|
|
54
|
+
function T(e, t) {
|
|
52
55
|
return e.length === 1 && e[0].start === 0 && e[0].end === t;
|
|
53
56
|
}
|
|
54
|
-
function
|
|
57
|
+
function E(e, t, n) {
|
|
55
58
|
for (let r of e) if (r.range.start <= t && r.range.end >= n) return r;
|
|
56
59
|
}
|
|
57
|
-
function
|
|
58
|
-
let r = t.length, i = Math.max(0, Math.min(r, e.range.start)), a =
|
|
60
|
+
function D(e, t, n) {
|
|
61
|
+
let r = t.length, i = Math.max(0, Math.min(r, e.range.start)), a = E(n, i, Math.max(i, Math.min(r, e.range.end)));
|
|
59
62
|
if (a) return {
|
|
60
63
|
start: a.range.start,
|
|
61
64
|
end: a.range.end
|
|
@@ -72,76 +75,85 @@ function C(e, t, n) {
|
|
|
72
75
|
end: r
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
|
-
function
|
|
78
|
+
function O(e, t) {
|
|
76
79
|
let n = t;
|
|
77
80
|
for (let t of e) t.range.start < n && (n = t.range.start);
|
|
78
81
|
return n;
|
|
79
82
|
}
|
|
80
|
-
function
|
|
83
|
+
function k(e, t, n, r, a) {
|
|
81
84
|
let o = [...e];
|
|
82
|
-
for (let e of t) o.push(
|
|
83
|
-
let s =
|
|
84
|
-
return a && (s =
|
|
85
|
+
for (let e of t) o.push(D(e, r, n?.nodes ?? []));
|
|
86
|
+
let s = i(o, r.length), c = O(t, r.length);
|
|
87
|
+
return a && (s = i([...s, {
|
|
85
88
|
start: c,
|
|
86
|
-
end:
|
|
87
|
-
}],
|
|
89
|
+
end: r.length
|
|
90
|
+
}], r.length)), w(s, e) && (s = i([...e, {
|
|
88
91
|
start: c,
|
|
89
|
-
end:
|
|
90
|
-
}],
|
|
92
|
+
end: r.length
|
|
93
|
+
}], r.length)), s;
|
|
91
94
|
}
|
|
92
|
-
function
|
|
95
|
+
function A(e, t) {
|
|
93
96
|
for (let [n, r] of Object.entries(t)) typeof r == "number" && Number.isFinite(r) && (e[n] = (e[n] ?? 0) + r);
|
|
94
97
|
}
|
|
95
|
-
function ee(e
|
|
96
|
-
let
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
function ee(e) {
|
|
99
|
+
let t = e;
|
|
100
|
+
if (typeof t != "object" || !t || Array.isArray(t)) return e;
|
|
101
|
+
let n = t.sourcePhase;
|
|
102
|
+
return n !== void 0 && n !== "streaming" && n !== "final" ? e : {
|
|
103
|
+
...e,
|
|
104
|
+
sourcePhase: "streaming"
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function te(e, t, n, r = !1) {
|
|
108
|
+
let i = ee(t), a = [], o = [], s = {}, c, l = 0;
|
|
109
|
+
for (let t = 1; t <= 6; t += 1) {
|
|
110
|
+
l = t, c = d(e, i, n, a, r), A(s, c.timings);
|
|
111
|
+
let u = c.result;
|
|
112
|
+
if (u.ok) {
|
|
113
|
+
let e = C(o, u.diagnostics);
|
|
102
114
|
return {
|
|
103
115
|
result: {
|
|
104
|
-
...
|
|
116
|
+
...u,
|
|
105
117
|
status: "partial",
|
|
106
118
|
...e
|
|
107
119
|
},
|
|
108
|
-
...
|
|
120
|
+
...c.parsed ? { parsed: c.parsed } : {},
|
|
109
121
|
transientDiagnostics: e.transientDiagnostics,
|
|
110
|
-
literalRanges: [...
|
|
111
|
-
attempts:
|
|
112
|
-
timings:
|
|
122
|
+
literalRanges: [...a],
|
|
123
|
+
attempts: l,
|
|
124
|
+
timings: s
|
|
113
125
|
};
|
|
114
126
|
}
|
|
115
|
-
let { definite:
|
|
116
|
-
if (
|
|
117
|
-
let e =
|
|
127
|
+
let { definite: f, transient: p } = y(u.diagnostics, e);
|
|
128
|
+
if (f.length > 0) {
|
|
129
|
+
let e = S([...o, p]);
|
|
118
130
|
return {
|
|
119
131
|
result: {
|
|
120
132
|
ok: !1,
|
|
121
|
-
diagnostics:
|
|
122
|
-
...
|
|
133
|
+
diagnostics: f,
|
|
134
|
+
...u.recoveries ? { recoveries: [...u.recoveries] } : {},
|
|
123
135
|
status: "failed",
|
|
124
136
|
transientDiagnostics: e
|
|
125
137
|
},
|
|
126
|
-
...
|
|
138
|
+
...c.parsed ? { parsed: c.parsed } : {},
|
|
127
139
|
transientDiagnostics: e,
|
|
128
|
-
literalRanges: [...
|
|
129
|
-
attempts:
|
|
130
|
-
timings:
|
|
140
|
+
literalRanges: [...a],
|
|
141
|
+
attempts: l,
|
|
142
|
+
timings: s
|
|
131
143
|
};
|
|
132
144
|
}
|
|
133
|
-
if (
|
|
134
|
-
let
|
|
135
|
-
if (
|
|
136
|
-
|
|
145
|
+
if (o.push(p), t === 6) break;
|
|
146
|
+
let m = k(a, p, c.parsed, e, t >= 5);
|
|
147
|
+
if (w(m, a)) break;
|
|
148
|
+
a = m, T(a, e.length);
|
|
137
149
|
}
|
|
138
|
-
if (typeof e == "string" && e.length <= 1e6 && !
|
|
139
|
-
let
|
|
150
|
+
if (typeof e == "string" && e.length <= 1e6 && !T(a, e.length)) {
|
|
151
|
+
let t = [{
|
|
140
152
|
start: 0,
|
|
141
153
|
end: e.length
|
|
142
|
-
}], c = d(e,
|
|
143
|
-
if (
|
|
144
|
-
let e =
|
|
154
|
+
}], c = d(e, i, n, t, r);
|
|
155
|
+
if (A(s, c.timings), l += 1, c.result.ok) {
|
|
156
|
+
let e = C(o, c.result.diagnostics);
|
|
145
157
|
return {
|
|
146
158
|
result: {
|
|
147
159
|
...c.result,
|
|
@@ -150,33 +162,33 @@ function ee(e, t, n) {
|
|
|
150
162
|
},
|
|
151
163
|
...c.parsed ? { parsed: c.parsed } : {},
|
|
152
164
|
transientDiagnostics: e.transientDiagnostics,
|
|
153
|
-
literalRanges:
|
|
154
|
-
attempts:
|
|
155
|
-
timings:
|
|
165
|
+
literalRanges: t,
|
|
166
|
+
attempts: l,
|
|
167
|
+
timings: s
|
|
156
168
|
};
|
|
157
169
|
}
|
|
158
|
-
let { definite:
|
|
159
|
-
if (
|
|
170
|
+
let { definite: u, transient: f } = y(c.result.diagnostics, e), p = S([...o, f]);
|
|
171
|
+
if (u.length > 0) return {
|
|
160
172
|
result: {
|
|
161
173
|
ok: !1,
|
|
162
|
-
diagnostics:
|
|
174
|
+
diagnostics: u,
|
|
163
175
|
...c.result.recoveries ? { recoveries: [...c.result.recoveries] } : {},
|
|
164
176
|
status: "failed",
|
|
165
|
-
transientDiagnostics:
|
|
177
|
+
transientDiagnostics: p
|
|
166
178
|
},
|
|
167
179
|
...c.parsed ? { parsed: c.parsed } : {},
|
|
168
|
-
transientDiagnostics:
|
|
169
|
-
literalRanges:
|
|
170
|
-
attempts:
|
|
171
|
-
timings:
|
|
180
|
+
transientDiagnostics: p,
|
|
181
|
+
literalRanges: t,
|
|
182
|
+
attempts: l,
|
|
183
|
+
timings: s
|
|
172
184
|
};
|
|
173
|
-
|
|
185
|
+
a = t;
|
|
174
186
|
}
|
|
175
|
-
let
|
|
187
|
+
let u = c, f = S(o);
|
|
176
188
|
return {
|
|
177
189
|
result: {
|
|
178
190
|
ok: !1,
|
|
179
|
-
diagnostics:
|
|
191
|
+
diagnostics: u !== void 0 && u.result.ok === !1 && u.result.diagnostics.length > 0 ? [...u.result.diagnostics] : f.length > 0 ? f : [{
|
|
180
192
|
code: "local.parse",
|
|
181
193
|
message: "The streaming snapshot could not be compiled.",
|
|
182
194
|
severity: "error",
|
|
@@ -187,19 +199,19 @@ function ee(e, t, n) {
|
|
|
187
199
|
line: 1,
|
|
188
200
|
column: 1
|
|
189
201
|
}],
|
|
190
|
-
...
|
|
202
|
+
...u?.result.recoveries ? { recoveries: [...u.result.recoveries] } : {},
|
|
191
203
|
status: "failed",
|
|
192
|
-
transientDiagnostics:
|
|
204
|
+
transientDiagnostics: f
|
|
193
205
|
},
|
|
194
|
-
...
|
|
195
|
-
transientDiagnostics:
|
|
196
|
-
literalRanges: [...
|
|
197
|
-
attempts:
|
|
198
|
-
timings:
|
|
206
|
+
...u?.parsed ? { parsed: u.parsed } : {},
|
|
207
|
+
transientDiagnostics: f,
|
|
208
|
+
literalRanges: [...a],
|
|
209
|
+
attempts: l,
|
|
210
|
+
timings: s
|
|
199
211
|
};
|
|
200
212
|
}
|
|
201
213
|
// src/local/compilation/session/semantic-cache.ts
|
|
202
|
-
var
|
|
214
|
+
var j = () => ({
|
|
203
215
|
expressionsCompiled: 0,
|
|
204
216
|
expressionsReused: 0,
|
|
205
217
|
typesInferred: 0,
|
|
@@ -212,18 +224,18 @@ var D = () => ({
|
|
|
212
224
|
formulasReused: 0,
|
|
213
225
|
displaysInspected: 0,
|
|
214
226
|
displaysReused: 0
|
|
215
|
-
}),
|
|
227
|
+
}), ne = class {
|
|
216
228
|
capacity;
|
|
217
229
|
maxWeight;
|
|
218
230
|
key;
|
|
219
231
|
values = /* @__PURE__ */ new Map();
|
|
220
232
|
weight = 0;
|
|
221
|
-
counts =
|
|
233
|
+
counts = j();
|
|
222
234
|
constructor(e = 16384, t = 8e6) {
|
|
223
235
|
this.capacity = e, this.maxWeight = t;
|
|
224
236
|
}
|
|
225
237
|
begin(e) {
|
|
226
|
-
this.key !== e && (this.clear(), this.key = e), this.counts =
|
|
238
|
+
this.key !== e && (this.clear(), this.key = e), this.counts = j();
|
|
227
239
|
}
|
|
228
240
|
get stats() {
|
|
229
241
|
return {
|
|
@@ -232,7 +244,7 @@ var D = () => ({
|
|
|
232
244
|
};
|
|
233
245
|
}
|
|
234
246
|
clear() {
|
|
235
|
-
this.values.clear(), this.weight = 0, this.key = void 0, this.counts =
|
|
247
|
+
this.values.clear(), this.weight = 0, this.key = void 0, this.counts = j();
|
|
236
248
|
}
|
|
237
249
|
get(e) {
|
|
238
250
|
let t = this.values.get(e);
|
|
@@ -283,14 +295,14 @@ var D = () => ({
|
|
|
283
295
|
display(e, t) {
|
|
284
296
|
let n = "display:" + JSON.stringify([e, t]), r = this.get(n);
|
|
285
297
|
if (r) return this.counts.displaysReused++, r;
|
|
286
|
-
let
|
|
287
|
-
return this.counts.displaysInspected++, this.put(n,
|
|
298
|
+
let i = f(e, t);
|
|
299
|
+
return this.counts.displaysInspected++, this.put(n, i), i;
|
|
288
300
|
}
|
|
289
|
-
},
|
|
290
|
-
function
|
|
301
|
+
}, re = 128, ie = 512, ae = 32, oe = 131072, se = (e) => JSON.parse(JSON.stringify(e));
|
|
302
|
+
function ce(e) {
|
|
291
303
|
return typeof e == "object" && !!e && e.strict === !1;
|
|
292
304
|
}
|
|
293
|
-
var
|
|
305
|
+
var M = class {
|
|
294
306
|
limit;
|
|
295
307
|
byteLimit;
|
|
296
308
|
entries = /* @__PURE__ */ new Map();
|
|
@@ -318,13 +330,13 @@ var k = class {
|
|
|
318
330
|
clear() {
|
|
319
331
|
this.entries.clear(), this.bytes = 0;
|
|
320
332
|
}
|
|
321
|
-
},
|
|
333
|
+
}, le = class {
|
|
322
334
|
disposed = !1;
|
|
323
335
|
optionKey;
|
|
324
336
|
recoveryMode;
|
|
325
|
-
plans = new
|
|
326
|
-
inline = new
|
|
327
|
-
trees = new
|
|
337
|
+
plans = new M(re, 524288);
|
|
338
|
+
inline = new M(ie, 262144);
|
|
339
|
+
trees = new M(ae, 524288);
|
|
328
340
|
counts = {
|
|
329
341
|
hits: 0,
|
|
330
342
|
misses: 0,
|
|
@@ -337,8 +349,8 @@ var k = class {
|
|
|
337
349
|
};
|
|
338
350
|
parse(e, t, n, r, i) {
|
|
339
351
|
if (this.disposed) throw Error("Local parse session is disposed");
|
|
340
|
-
let a =
|
|
341
|
-
return (a !== this.optionKey || o !== this.recoveryMode) && (this.optionKey = a, this.recoveryMode = o, this.reset()), i && i.length > 0 ?
|
|
352
|
+
let a = h(t), o = ce(t);
|
|
353
|
+
return (a !== this.optionKey || o !== this.recoveryMode) && (this.optionKey = a, this.recoveryMode = o, this.reset()), i && i.length > 0 ? g(e, t, n, void 0, void 0, i) : g(e, t, n, this, r);
|
|
342
354
|
}
|
|
343
355
|
clear() {
|
|
344
356
|
this.optionKey = void 0, this.recoveryMode = void 0, this.reset();
|
|
@@ -383,9 +395,9 @@ var k = class {
|
|
|
383
395
|
return this.lookup(this.inline, e);
|
|
384
396
|
}
|
|
385
397
|
writeInline(e, t) {
|
|
386
|
-
e.length >
|
|
398
|
+
e.length > oe || this.inline.write(se(e), t?.map((e) => ({
|
|
387
399
|
...e,
|
|
388
|
-
value:
|
|
400
|
+
value: se(e.value)
|
|
389
401
|
})));
|
|
390
402
|
}
|
|
391
403
|
notePlanReuse() {
|
|
@@ -407,8 +419,8 @@ var k = class {
|
|
|
407
419
|
let r = e.read(t);
|
|
408
420
|
return r.hit ? (this.counts.hits += 1, n && (this.counts.reusedAst += 1)) : this.counts.misses += 1, r;
|
|
409
421
|
}
|
|
410
|
-
},
|
|
411
|
-
function
|
|
422
|
+
}, N = /* @__PURE__ */ new WeakSet();
|
|
423
|
+
function P(e, t) {
|
|
412
424
|
let n = 0, r = 0, i = /* @__PURE__ */ new WeakMap(), a = [], o = (e, t, n) => {
|
|
413
425
|
e && (Object.defineProperty(e.output, t, {
|
|
414
426
|
value: n,
|
|
@@ -419,7 +431,7 @@ function j(e, t) {
|
|
|
419
431
|
}, s = (e, t, r, o) => {
|
|
420
432
|
if (typeof t != "object" || !t) return t;
|
|
421
433
|
if (e === t) return n++, e;
|
|
422
|
-
if (e === void 0 &&
|
|
434
|
+
if (e === void 0 && N.has(t)) return n++, t;
|
|
423
435
|
if (i.has(t)) return i.get(t);
|
|
424
436
|
let s = Array.isArray(t), c = typeof e == "object" && e && Array.isArray(e) === s ? e : void 0, l = Object.keys(t), u = c ? Object.keys(c) : [], d = s ? Array(t.length) : {};
|
|
425
437
|
i.set(t, d);
|
|
@@ -446,7 +458,7 @@ function j(e, t) {
|
|
|
446
458
|
}
|
|
447
459
|
a.pop();
|
|
448
460
|
let t;
|
|
449
|
-
e.equal ? (t = e.before, n++) : (r++, t = Object.isFrozen(e.after) ? Object.freeze(e.output) : e.output,
|
|
461
|
+
e.equal ? (t = e.before, n++) : (r++, t = Object.isFrozen(e.after) ? Object.freeze(e.output) : e.output, N.add(t)), i.set(e.after, t), e.parent ? o(e.parent, e.key, t) : c = t;
|
|
450
462
|
}
|
|
451
463
|
return {
|
|
452
464
|
value: c,
|
|
@@ -454,7 +466,7 @@ function j(e, t) {
|
|
|
454
466
|
created: r
|
|
455
467
|
};
|
|
456
468
|
}
|
|
457
|
-
function
|
|
469
|
+
function ue(e, t) {
|
|
458
470
|
if (!e?.ok || !t.ok) return 0;
|
|
459
471
|
let n = /* @__PURE__ */ new Set(), r = [...e.document.nodes];
|
|
460
472
|
for (; r.length;) {
|
|
@@ -469,7 +481,7 @@ function ce(e, t) {
|
|
|
469
481
|
return i;
|
|
470
482
|
}
|
|
471
483
|
// src/local/compilation/session/row-reuse.ts
|
|
472
|
-
function
|
|
484
|
+
function F(e) {
|
|
473
485
|
if (e.nodes.length !== 1) return;
|
|
474
486
|
let t = e.nodes[0], n, r;
|
|
475
487
|
if (t.type === "list") n = "item", r = "listItem";
|
|
@@ -495,25 +507,25 @@ function M(e) {
|
|
|
495
507
|
rows: a
|
|
496
508
|
};
|
|
497
509
|
}
|
|
498
|
-
function
|
|
510
|
+
function I(e, t) {
|
|
499
511
|
if (e === t) return !0;
|
|
500
512
|
if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
501
513
|
let n = Object.keys(e), r = Object.keys(t);
|
|
502
514
|
if (n.length !== r.length) return !1;
|
|
503
|
-
for (let r of n) if (!Object.hasOwn(t, r) || !
|
|
515
|
+
for (let r of n) if (!Object.hasOwn(t, r) || !I(e[r], t[r])) return !1;
|
|
504
516
|
return !0;
|
|
505
517
|
}
|
|
506
|
-
function
|
|
518
|
+
function L(e, t, n, r) {
|
|
507
519
|
if (e.type !== t.type || e.range.start - n !== t.range.start - r || e.range.end - n !== t.range.end - r) return !1;
|
|
508
520
|
let i = Object.keys(e), a = Object.keys(t);
|
|
509
521
|
if (i.length !== a.length) return !1;
|
|
510
|
-
for (let n of i) if (n !== "id" && n !== "range" && n !== "children" && (!Object.hasOwn(t, n) || !
|
|
522
|
+
for (let n of i) if (n !== "id" && n !== "range" && n !== "children" && (!Object.hasOwn(t, n) || !I(e[n], t[n]))) return !1;
|
|
511
523
|
let o = e.children ?? [], s = t.children ?? [];
|
|
512
524
|
if (o.length !== s.length) return !1;
|
|
513
|
-
for (let e = 0; e < o.length; e++) if (!
|
|
525
|
+
for (let e = 0; e < o.length; e++) if (!L(o[e], s[e], n, r)) return !1;
|
|
514
526
|
return !0;
|
|
515
527
|
}
|
|
516
|
-
function
|
|
528
|
+
function R(e, t) {
|
|
517
529
|
let n = {
|
|
518
530
|
...e,
|
|
519
531
|
range: {
|
|
@@ -521,14 +533,14 @@ function F(e, t) {
|
|
|
521
533
|
end: e.range.end + t
|
|
522
534
|
}
|
|
523
535
|
};
|
|
524
|
-
return e.attrs && (n.attrs = { ...e.attrs }), e.align && (n.align = [...e.align]), e.children && (n.children = e.children.map((e) =>
|
|
536
|
+
return e.attrs && (n.attrs = { ...e.attrs }), e.align && (n.align = [...e.align]), e.children && (n.children = e.children.map((e) => R(e, t))), n;
|
|
525
537
|
}
|
|
526
|
-
function
|
|
527
|
-
if (t.add(e.id), e.children) for (let n of e.children)
|
|
538
|
+
function z(e, t) {
|
|
539
|
+
if (t.add(e.id), e.children) for (let n of e.children) z(n, t);
|
|
528
540
|
}
|
|
529
|
-
function
|
|
541
|
+
function de(e, t) {
|
|
530
542
|
if (!e) return;
|
|
531
|
-
let n =
|
|
543
|
+
let n = F(e), r = F(t);
|
|
532
544
|
if (!n || !r || n.kind !== r.kind) return;
|
|
533
545
|
let i = n.rows, a = r.rows, o = Math.min(i.length, a.length), s = 0;
|
|
534
546
|
for (; s < o && i[s].text === a[s].text;) s += 1;
|
|
@@ -539,9 +551,9 @@ function le(e, t) {
|
|
|
539
551
|
let n;
|
|
540
552
|
if (t < s ? n = t : t >= a.length - c && (n = i.length - (a.length - t)), n === void 0) return e.node;
|
|
541
553
|
let r = i[n];
|
|
542
|
-
if (!
|
|
543
|
-
let o = e.node.range.start - r.node.range.start, d = o === 0 ? r.node :
|
|
544
|
-
return u += 1,
|
|
554
|
+
if (!L(r.node, e.node, r.node.range.start, e.node.range.start)) return e.node;
|
|
555
|
+
let o = e.node.range.start - r.node.range.start, d = o === 0 ? r.node : R(r.node, o);
|
|
556
|
+
return u += 1, z(d, l), d;
|
|
545
557
|
});
|
|
546
558
|
if (!u) return;
|
|
547
559
|
let f = {
|
|
@@ -557,16 +569,16 @@ function le(e, t) {
|
|
|
557
569
|
};
|
|
558
570
|
}
|
|
559
571
|
// src/local/compilation/session/incremental.ts
|
|
560
|
-
function
|
|
572
|
+
function B(e) {
|
|
561
573
|
return typeof e == "object" && !!e && e.strict === !1;
|
|
562
574
|
}
|
|
563
|
-
function
|
|
575
|
+
function V(e) {
|
|
564
576
|
return Object.hasOwn(e, "recoveries") && e.recoveries !== void 0;
|
|
565
577
|
}
|
|
566
|
-
function
|
|
578
|
+
function H(e) {
|
|
567
579
|
return e === "streaming" || e === "final" ? e : void 0;
|
|
568
580
|
}
|
|
569
|
-
function
|
|
581
|
+
function fe() {
|
|
570
582
|
return {
|
|
571
583
|
ok: !1,
|
|
572
584
|
status: "failed",
|
|
@@ -586,15 +598,15 @@ function ue() {
|
|
|
586
598
|
}]
|
|
587
599
|
};
|
|
588
600
|
}
|
|
589
|
-
function
|
|
601
|
+
function pe(e) {
|
|
590
602
|
try {
|
|
591
|
-
return typeof e == "object" && e ?
|
|
603
|
+
return typeof e == "object" && e ? H(e.sourcePhase) : void 0;
|
|
592
604
|
} catch {
|
|
593
605
|
return;
|
|
594
606
|
}
|
|
595
607
|
}
|
|
596
|
-
var
|
|
597
|
-
function
|
|
608
|
+
var U = u.configure(l), W = "\n\n<!-- incremental-boundary -->\n\n";
|
|
609
|
+
function G(e) {
|
|
598
610
|
let t = [], n = [...e].reverse();
|
|
599
611
|
for (; n.length;) {
|
|
600
612
|
let e = n.pop();
|
|
@@ -602,7 +614,7 @@ function H(e) {
|
|
|
602
614
|
}
|
|
603
615
|
return t;
|
|
604
616
|
}
|
|
605
|
-
function
|
|
617
|
+
function K(e, t, n) {
|
|
606
618
|
return t === 0 && !n ? e : e.map((e) => ({
|
|
607
619
|
...e,
|
|
608
620
|
id: n?.get(e.id) ?? e.id,
|
|
@@ -610,44 +622,78 @@ function U(e, t, n) {
|
|
|
610
622
|
start: e.range.start + t,
|
|
611
623
|
end: e.range.end + t
|
|
612
624
|
},
|
|
625
|
+
...e.fallback ? { fallback: {
|
|
626
|
+
...e.fallback,
|
|
627
|
+
range: {
|
|
628
|
+
start: e.fallback.range.start + t,
|
|
629
|
+
end: e.fallback.range.end + t
|
|
630
|
+
}
|
|
631
|
+
} } : {},
|
|
613
632
|
...e.attrs ? { attrs: { ...e.attrs } } : {},
|
|
614
633
|
...e.align ? { align: [...e.align] } : {},
|
|
615
|
-
...e.children ? { children:
|
|
634
|
+
...e.children ? { children: K(e.children, t, n) } : {}
|
|
616
635
|
}));
|
|
617
636
|
}
|
|
618
|
-
function
|
|
637
|
+
function q(e, t, n) {
|
|
619
638
|
let r = Object.create(null);
|
|
620
|
-
for (let i of
|
|
639
|
+
for (let i of G(e)) r[n?.get(i.id) ?? i.id] = t.dependencies?.[i.id] ?? null;
|
|
621
640
|
return r;
|
|
622
641
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
642
|
+
var J = /* @__PURE__ */ new Set(), me = "raw-body";
|
|
643
|
+
function he(e) {
|
|
644
|
+
try {
|
|
645
|
+
let t = m(e);
|
|
646
|
+
if (!t.ok) return J;
|
|
647
|
+
let n = /* @__PURE__ */ new Set();
|
|
648
|
+
for (let [e, r] of t.schemaByName) r.form === "container" && r.structure.rule === me && n.add(e);
|
|
649
|
+
return n.size ? n : J;
|
|
650
|
+
} catch {
|
|
651
|
+
return J;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function Y(e, t) {
|
|
655
|
+
return (e.type === "component" || e.type === "hostComponent") && e.name !== void 0 && t.has(e.name);
|
|
656
|
+
}
|
|
657
|
+
function X(e, t = J) {
|
|
658
|
+
if (Y(e, t)) return "raw";
|
|
659
|
+
let n = !1;
|
|
660
|
+
for (let r of G([e])) {
|
|
626
661
|
if ([
|
|
627
662
|
"authorCss",
|
|
628
663
|
"authorJavaScript",
|
|
629
664
|
"extendedHtmlRaw"
|
|
630
|
-
].includes(
|
|
665
|
+
].includes(r.type) || r.attrs && (Object.hasOwn(r.attrs, "css") || Object.hasOwn(r.attrs, "action-id")) || [
|
|
631
666
|
"definition",
|
|
632
667
|
"footnoteDefinition",
|
|
633
668
|
"footnoteReference",
|
|
634
669
|
"linkReference",
|
|
635
670
|
"imageReference"
|
|
636
|
-
].includes(
|
|
637
|
-
if (
|
|
638
|
-
if (
|
|
639
|
-
|
|
671
|
+
].includes(r.type)) return "unsupported";
|
|
672
|
+
if (r.type === "hostComponent" || r.type === "htmlDocument" || r.type === "fallback") {
|
|
673
|
+
if (Y(r, t)) {
|
|
674
|
+
n = !0;
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
return "unsupported";
|
|
678
|
+
}
|
|
679
|
+
if (r.type === "component") {
|
|
680
|
+
if (Y(r, t)) {
|
|
681
|
+
n = !0;
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
if (["anchor", "jump"].includes(r.name ?? "") || !_(r.name ?? "")) return "unsupported";
|
|
685
|
+
n = !0;
|
|
640
686
|
}
|
|
641
|
-
|
|
687
|
+
r.type === "comment" && (n = !0);
|
|
642
688
|
}
|
|
643
|
-
return
|
|
689
|
+
return n ? "context" : "fragment";
|
|
644
690
|
}
|
|
645
|
-
function
|
|
691
|
+
function Z(e, t) {
|
|
646
692
|
let n = "", r = 0;
|
|
647
693
|
for (let i of t) n += e.slice(r, i.from) + i.text.replace(/[^\r\n]/g, " "), r = i.to;
|
|
648
694
|
return n + e.slice(r);
|
|
649
695
|
}
|
|
650
|
-
function
|
|
696
|
+
function Q(e, t, n) {
|
|
651
697
|
let r = e.cursor();
|
|
652
698
|
do
|
|
653
699
|
if (r.name === "LinkReference") return null;
|
|
@@ -666,14 +712,14 @@ function q(e, t, n) {
|
|
|
666
712
|
}
|
|
667
713
|
return i;
|
|
668
714
|
}
|
|
669
|
-
function
|
|
715
|
+
function $(e) {
|
|
670
716
|
return /\r(?!\n)/.test(e);
|
|
671
717
|
}
|
|
672
|
-
function
|
|
718
|
+
function ge(e, t) {
|
|
673
719
|
for (; t > 0 && e[t - 1] !== "\n" && e[t - 1] !== "\r";) t--;
|
|
674
720
|
return t;
|
|
675
721
|
}
|
|
676
|
-
function
|
|
722
|
+
function _e(e, t) {
|
|
677
723
|
let n = new Set(t.map((e) => e.from));
|
|
678
724
|
for (let r of t) {
|
|
679
725
|
let t = r.to;
|
|
@@ -688,7 +734,7 @@ function Y(e, t) {
|
|
|
688
734
|
}
|
|
689
735
|
return !1;
|
|
690
736
|
}
|
|
691
|
-
function
|
|
737
|
+
function ve(e, t, n, r) {
|
|
692
738
|
if (e.type !== n.type || e.range.start + t !== n.range.start + r || e.range.end + t !== n.range.end + r) return !1;
|
|
693
739
|
let i = 0;
|
|
694
740
|
for (let [a, o] of Object.entries(e)) {
|
|
@@ -698,13 +744,13 @@ function X(e, t, n, r) {
|
|
|
698
744
|
if (a === "children") {
|
|
699
745
|
let n = o, i = e;
|
|
700
746
|
if (!i || n.length !== i.length) return !1;
|
|
701
|
-
for (let e = 0; e < n.length; e++) if (!
|
|
747
|
+
for (let e = 0; e < n.length; e++) if (!ve(n[e], t, i[e], r)) return !1;
|
|
702
748
|
} else if (o !== e && JSON.stringify(o) !== JSON.stringify(e)) return !1;
|
|
703
749
|
}
|
|
704
750
|
for (let [e, t] of Object.entries(n)) t !== void 0 && e !== "id" && e !== "range" && i--;
|
|
705
751
|
return i === 0;
|
|
706
752
|
}
|
|
707
|
-
function
|
|
753
|
+
function ye(e, t) {
|
|
708
754
|
let n = 0, r = e.length, i = t.length;
|
|
709
755
|
for (; n < r && n < i && e.charCodeAt(n) === t.charCodeAt(n);) n++;
|
|
710
756
|
for (; r > n && i > n && e.charCodeAt(r - 1) === t.charCodeAt(i - 1);) r--, i--;
|
|
@@ -715,23 +761,24 @@ function Z(e, t) {
|
|
|
715
761
|
delta: i - r
|
|
716
762
|
};
|
|
717
763
|
}
|
|
718
|
-
function
|
|
764
|
+
function be(e, t) {
|
|
719
765
|
let n = e.parsed?.plans;
|
|
720
766
|
if (n?.length) {
|
|
721
767
|
for (let e of n) if (e.source === t) return e.rows;
|
|
722
768
|
if (n.length === 1) return n[0].rows;
|
|
723
769
|
}
|
|
724
770
|
}
|
|
725
|
-
var
|
|
771
|
+
var xe = class {
|
|
726
772
|
disposed = !1;
|
|
727
773
|
snapshot = null;
|
|
728
774
|
deferred = null;
|
|
729
|
-
parseSession = new
|
|
730
|
-
semantic = new
|
|
775
|
+
parseSession = new le();
|
|
776
|
+
semantic = new ne();
|
|
731
777
|
services = {
|
|
732
778
|
parser: this.parseSession,
|
|
733
779
|
semantic: this.semantic
|
|
734
780
|
};
|
|
781
|
+
rawNamesCache = null;
|
|
735
782
|
shared = null;
|
|
736
783
|
sharedKey;
|
|
737
784
|
sharedMode;
|
|
@@ -762,159 +809,167 @@ var $ = class {
|
|
|
762
809
|
}
|
|
763
810
|
}, o;
|
|
764
811
|
}
|
|
765
|
-
compileShared(e, t, n) {
|
|
812
|
+
compileShared(e, t, n, r = !!t?.observer?.onTrace) {
|
|
766
813
|
if (this.disposed) throw Error("Local compile session is disposed");
|
|
767
|
-
if (n !== void 0 &&
|
|
768
|
-
let
|
|
769
|
-
return
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
814
|
+
if (n !== void 0 && H(n) === void 0) return fe();
|
|
815
|
+
let i = pe(t), a = H(n) ?? i;
|
|
816
|
+
return a === "streaming" ? this.compileStreaming(e, t, r) : a === "final" ? this.compileFinal(e, i === "streaming" ? {
|
|
817
|
+
...t,
|
|
818
|
+
sourcePhase: "final"
|
|
819
|
+
} : t, r) : this.compileFinalOrLegacy(e, t, r);
|
|
820
|
+
}
|
|
821
|
+
compileFinal(e, t, n) {
|
|
822
|
+
let r = this.compileFinalOrLegacy(e, t, n);
|
|
823
|
+
return r.ok ? {
|
|
824
|
+
...r,
|
|
825
|
+
status: V(r) ? "recovered" : "valid"
|
|
776
826
|
} : {
|
|
777
|
-
...
|
|
827
|
+
...r,
|
|
778
828
|
status: "failed"
|
|
779
829
|
};
|
|
780
830
|
}
|
|
781
|
-
compileStreaming(e, t) {
|
|
782
|
-
let
|
|
783
|
-
if (
|
|
831
|
+
compileStreaming(e, t, n) {
|
|
832
|
+
let r = m(t).ok, i = h(t), a = this.streamingCache;
|
|
833
|
+
if (r && a !== null && a.source === e && a.key === i) return this.lastStats = {
|
|
784
834
|
mode: "streaming",
|
|
785
|
-
totalBlocks:
|
|
835
|
+
totalBlocks: a.blocks,
|
|
786
836
|
compiledBlocks: 0,
|
|
787
837
|
reusedBlocks: 0,
|
|
788
838
|
compiledCharacters: 0
|
|
789
|
-
},
|
|
790
|
-
let
|
|
839
|
+
}, a.result;
|
|
840
|
+
let o = te(e, t, this.services, n), s = o.parsed?.nodes.length ?? 0;
|
|
791
841
|
return this.lastStats = {
|
|
792
842
|
mode: "streaming",
|
|
793
|
-
totalBlocks:
|
|
794
|
-
compiledBlocks:
|
|
843
|
+
totalBlocks: s,
|
|
844
|
+
compiledBlocks: s,
|
|
795
845
|
reusedBlocks: 0,
|
|
796
846
|
compiledCharacters: typeof e == "string" ? e.length : 0,
|
|
797
|
-
stages:
|
|
798
|
-
},
|
|
847
|
+
stages: o.timings
|
|
848
|
+
}, r && (this.streamingCache = {
|
|
799
849
|
source: e,
|
|
800
|
-
key:
|
|
801
|
-
result:
|
|
802
|
-
blocks:
|
|
803
|
-
}),
|
|
850
|
+
key: i,
|
|
851
|
+
result: o.result,
|
|
852
|
+
blocks: s
|
|
853
|
+
}), o.result;
|
|
804
854
|
}
|
|
805
|
-
compileFinalOrLegacy(e, t) {
|
|
855
|
+
compileFinalOrLegacy(e, t, n) {
|
|
806
856
|
this.epoch++;
|
|
807
|
-
let
|
|
808
|
-
(
|
|
809
|
-
let
|
|
810
|
-
return this.shared =
|
|
857
|
+
let r = h(t), i = B(t);
|
|
858
|
+
(r !== this.sharedKey || i !== this.sharedMode) && (this.shared = null, this.sharedKey = r, this.sharedMode = i);
|
|
859
|
+
let a = this.compileCore(e, t, n), o = performance.now(), s = this.shared, c = P(s ?? void 0, a).value;
|
|
860
|
+
return this.shared = c, this.lastStats = {
|
|
811
861
|
...this.lastStats,
|
|
812
|
-
sharedNodes:
|
|
862
|
+
sharedNodes: ue(s, c),
|
|
813
863
|
parse: this.parseSession.stats,
|
|
814
864
|
semantic: this.lastStats.semantic ?? this.semantic.stats,
|
|
815
865
|
stages: {
|
|
816
866
|
...this.lastStats.stages,
|
|
817
|
-
sharedPublicationMs: performance.now() -
|
|
867
|
+
sharedPublicationMs: performance.now() - o
|
|
818
868
|
}
|
|
819
|
-
},
|
|
869
|
+
}, c;
|
|
820
870
|
}
|
|
821
|
-
compileCore(e, t) {
|
|
871
|
+
compileCore(e, t, i) {
|
|
822
872
|
if (this.disposed) throw Error("Local compile session is disposed");
|
|
823
873
|
this.cacheBuilds = 0;
|
|
824
|
-
let
|
|
825
|
-
if (this.deferred = null, !
|
|
826
|
-
if (e ===
|
|
874
|
+
let a = h(t), o = m(t), s = this.rawNames(a, t), c = B(t), l = typeof e == "string" && e.length <= 1e6 && r(e), u = c || l, f = l ? "macro-scope" : c ? "recovery-reference" : "initial", g = !1, _ = this.deferred;
|
|
875
|
+
if (this.deferred = null, !u && _ && _.key === a && o.ok && typeof e == "string" && e.length <= 1e6) {
|
|
876
|
+
if (e === _.source) return this.deferred = _, this.lastStats = {
|
|
827
877
|
mode: "cached",
|
|
828
878
|
totalBlocks: this.lastStats.totalBlocks,
|
|
829
879
|
compiledBlocks: 0,
|
|
830
880
|
reusedBlocks: this.lastStats.totalBlocks,
|
|
831
881
|
compiledCharacters: 0
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
let n =
|
|
835
|
-
if (
|
|
836
|
-
this.snapshot = this.seed(
|
|
882
|
+
}, _.tracked.result;
|
|
883
|
+
g = !0, f = "scope-or-boundary";
|
|
884
|
+
let n = ye(_.source, e), r = (e) => n.from <= e.end && n.oldTo >= e.start, i = _.tracked.parsed;
|
|
885
|
+
if (i && !/[`\\~]/.test(_.source.slice(n.from, n.oldTo) + e.slice(n.from, n.newTo)) && !i.nodes.some((e) => r(e.range) && X(e, s) !== "fragment") && ![i.versionDeclaration?.range, i.themeRange].some((e) => e && r(e))) try {
|
|
886
|
+
this.snapshot = this.seed(_.source, a, _.tracked, t, void 0, s);
|
|
837
887
|
} catch {
|
|
838
888
|
this.snapshot = null;
|
|
839
889
|
}
|
|
840
|
-
} else
|
|
841
|
-
let
|
|
842
|
-
if (!
|
|
843
|
-
if (e ===
|
|
890
|
+
} else _ && !u && (f = "options-or-limits");
|
|
891
|
+
let v = this.snapshot;
|
|
892
|
+
if (!u && v && v.key === a && o.ok && typeof e == "string" && e.length <= 1e6) {
|
|
893
|
+
if (e === v.source) return this.lastStats = {
|
|
844
894
|
mode: "cached",
|
|
845
|
-
totalBlocks:
|
|
895
|
+
totalBlocks: v.blocks.length,
|
|
846
896
|
compiledBlocks: 0,
|
|
847
|
-
reusedBlocks:
|
|
897
|
+
reusedBlocks: v.blocks.length,
|
|
848
898
|
compiledCharacters: 0
|
|
849
|
-
}, this.publish(
|
|
899
|
+
}, this.publish(v);
|
|
850
900
|
let n = null;
|
|
851
901
|
try {
|
|
852
|
-
n = this.update(
|
|
902
|
+
n = this.update(v, e, t, o.maxSyntaxNodes, s, i);
|
|
853
903
|
} catch {}
|
|
854
904
|
if (n) return this.snapshot = n, this.publish(n);
|
|
855
|
-
|
|
856
|
-
} else
|
|
905
|
+
f = "scope-or-boundary", g = !0;
|
|
906
|
+
} else v && !u && (f = "options-or-limits");
|
|
857
907
|
this.snapshot = null;
|
|
858
|
-
let
|
|
908
|
+
let y = d(e, t, this.services, void 0, i);
|
|
859
909
|
if (this.lastStats = {
|
|
860
910
|
mode: "full",
|
|
861
|
-
totalBlocks:
|
|
862
|
-
compiledBlocks:
|
|
911
|
+
totalBlocks: y.parsed?.nodes.length ?? 0,
|
|
912
|
+
compiledBlocks: y.parsed?.nodes.length ?? 0,
|
|
863
913
|
reusedBlocks: 0,
|
|
864
914
|
compiledCharacters: typeof e == "string" ? e.length : 0,
|
|
865
|
-
fallbackReason:
|
|
866
|
-
semantic:
|
|
867
|
-
stages:
|
|
868
|
-
}, !
|
|
869
|
-
if (
|
|
870
|
-
let
|
|
871
|
-
if (
|
|
872
|
-
|
|
873
|
-
...
|
|
874
|
-
config:
|
|
915
|
+
fallbackReason: f,
|
|
916
|
+
semantic: y.semantic,
|
|
917
|
+
stages: y.timings
|
|
918
|
+
}, !u && y.result.ok && !y.result.document.capabilities && y.result.diagnostics.length === 0 && !V(y.result) && o.ok && a !== "invalid") {
|
|
919
|
+
if (g) {
|
|
920
|
+
let r = t === void 0 ? void 0 : n(t), i = r;
|
|
921
|
+
if (r?.config !== void 0) try {
|
|
922
|
+
i = {
|
|
923
|
+
...r,
|
|
924
|
+
config: p(r.config)
|
|
875
925
|
};
|
|
876
926
|
} catch {}
|
|
877
927
|
this.deferred = {
|
|
878
928
|
source: e,
|
|
879
|
-
key:
|
|
880
|
-
tracked:
|
|
881
|
-
options:
|
|
929
|
+
key: a,
|
|
930
|
+
tracked: y,
|
|
931
|
+
options: i
|
|
882
932
|
};
|
|
883
933
|
} else try {
|
|
884
|
-
this.snapshot = this.seed(e,
|
|
934
|
+
this.snapshot = this.seed(e, a, y, t, void 0, s);
|
|
885
935
|
} catch {
|
|
886
936
|
this.snapshot = null;
|
|
887
937
|
}
|
|
888
938
|
this.snapshot && (this.lastStats.totalBlocks = this.lastStats.compiledBlocks = this.snapshot.blocks.length);
|
|
889
939
|
}
|
|
890
|
-
return this.snapshot ? this.publish(this.snapshot) :
|
|
940
|
+
return this.snapshot ? this.publish(this.snapshot) : y.result;
|
|
891
941
|
}
|
|
892
|
-
seed(e, t, n, r, i) {
|
|
893
|
-
if (this.cacheBuilds++, !n.result.ok || !n.parsed ||
|
|
894
|
-
let a = n.parsed.nodes,
|
|
895
|
-
if (
|
|
896
|
-
let
|
|
942
|
+
seed(e, t, n, r, i, a) {
|
|
943
|
+
if (this.cacheBuilds++, !n.result.ok || !n.parsed || V(n.result) || e.includes("[^") || e.includes("") || $(e)) return null;
|
|
944
|
+
let o = a ?? this.rawNamesFor(r), s = n.parsed.nodes, c = s.map((e) => X(e, o)), l = s.length === 1 && c[0] === "fragment" && (s[0].type === "list" || s[0].type === "table"), u = c.filter((e) => e === "raw").length;
|
|
945
|
+
if (c.includes("unsupported") || !l && u === 0 && c.filter((e) => e === "fragment").length < 2) return null;
|
|
946
|
+
let d = {
|
|
897
947
|
...n.result.document,
|
|
898
948
|
nodes: [],
|
|
899
949
|
source: ""
|
|
900
|
-
},
|
|
901
|
-
for (let t = 0; t <
|
|
902
|
-
let n =
|
|
903
|
-
if (
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
950
|
+
}, f = new Map(n.result.document.nodes.map((e) => [e.id, e])), p = [], m = [];
|
|
951
|
+
for (let t = 0; t < s.length; t++) {
|
|
952
|
+
let n = s[t], r = c[t];
|
|
953
|
+
if (r === "fragment") {
|
|
954
|
+
m.push(n);
|
|
955
|
+
continue;
|
|
956
|
+
}
|
|
957
|
+
let i = f.has(n.id) ? [f.get(n.id)] : [], a = {
|
|
958
|
+
from: n.range.start,
|
|
959
|
+
to: n.range.end,
|
|
960
|
+
origin: n.range.start,
|
|
961
|
+
text: e.slice(n.range.start, n.range.end),
|
|
962
|
+
nodes: i,
|
|
963
|
+
dependencies: q(i, d),
|
|
964
|
+
cost: 0
|
|
965
|
+
};
|
|
966
|
+
if (r === "raw") {
|
|
967
|
+
if (!i.length) return null;
|
|
968
|
+
a.opaque = !0, a.cost = G(i).length;
|
|
915
969
|
}
|
|
970
|
+
p.push(a);
|
|
916
971
|
}
|
|
917
|
-
for (let t of [n.parsed.versionDeclaration?.range, n.parsed.themeRange]) t && !
|
|
972
|
+
for (let t of [n.parsed.versionDeclaration?.range, n.parsed.themeRange]) t && !p.some((e) => t.start >= e.from && t.end <= e.to) && p.push({
|
|
918
973
|
from: t.start,
|
|
919
974
|
to: t.end,
|
|
920
975
|
origin: t.start,
|
|
@@ -923,145 +978,234 @@ var $ = class {
|
|
|
923
978
|
dependencies: {},
|
|
924
979
|
cost: 0
|
|
925
980
|
});
|
|
926
|
-
if (
|
|
927
|
-
let
|
|
928
|
-
if (
|
|
929
|
-
let
|
|
930
|
-
if (!
|
|
931
|
-
let
|
|
932
|
-
for (let
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
981
|
+
if (p.sort((e, t) => e.from - t.from), _e(e, p)) return null;
|
|
982
|
+
let h = Z(e, p);
|
|
983
|
+
if (h.includes("<")) return null;
|
|
984
|
+
let g = i ?? U.parse(h), _ = Q(g, p, h);
|
|
985
|
+
if (!_) return null;
|
|
986
|
+
let v = p.filter((e) => e.opaque);
|
|
987
|
+
for (let e of v) if (_.some((t) => t.start < e.to && t.end > e.from)) return null;
|
|
988
|
+
let y = [..._.map((e) => ({ range: e })), ...v.map((e) => ({
|
|
989
|
+
range: {
|
|
990
|
+
start: e.from,
|
|
991
|
+
end: e.to
|
|
992
|
+
},
|
|
993
|
+
opaque: e
|
|
994
|
+
}))].sort((e, t) => e.range.start - t.range.start || e.range.end - t.range.end), b = [], x = 0;
|
|
995
|
+
for (let t of y) {
|
|
996
|
+
let i = t.range;
|
|
997
|
+
if (t.opaque) {
|
|
998
|
+
let e = t.opaque;
|
|
999
|
+
if (x < m.length && m[x].range.start < i.end) return null;
|
|
1000
|
+
let n = p.filter((t) => t !== e), a = n.length ? n.map((e) => e.text).join(W) + W : "", o = 0;
|
|
1001
|
+
if (a) {
|
|
1002
|
+
let e = this.parseSession.parse(a, r);
|
|
1003
|
+
if (e.diagnostics.length) return null;
|
|
1004
|
+
o = e.syntaxNodes ?? 0;
|
|
1005
|
+
}
|
|
1006
|
+
e.prefix = a, e.prefixCost = o, b.push(e);
|
|
1007
|
+
continue;
|
|
938
1008
|
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
1009
|
+
let a = [];
|
|
1010
|
+
for (; x < m.length && m[x].range.start < i.end;) {
|
|
1011
|
+
let e = m[x];
|
|
1012
|
+
if (e.range.start < i.start || e.range.end > i.end) return null;
|
|
1013
|
+
a.push(e), x++;
|
|
1014
|
+
}
|
|
1015
|
+
if (!a.length) return null;
|
|
1016
|
+
let o = a.flatMap((e) => f.has(e.id) ? [f.get(e.id)] : []), s = G(o).length, c = e.slice(i.start, i.end);
|
|
1017
|
+
b.push({
|
|
1018
|
+
from: i.start,
|
|
1019
|
+
to: i.end,
|
|
1020
|
+
origin: i.start,
|
|
1021
|
+
text: c,
|
|
1022
|
+
nodes: o,
|
|
1023
|
+
dependencies: q(o, d),
|
|
1024
|
+
cost: s,
|
|
1025
|
+
rowPlans: be(n, c)
|
|
950
1026
|
});
|
|
951
1027
|
}
|
|
952
|
-
if (
|
|
953
|
-
let
|
|
954
|
-
if (
|
|
955
|
-
let
|
|
956
|
-
return
|
|
1028
|
+
if (x !== m.length) return null;
|
|
1029
|
+
let S = p.length ? p.map((e) => e.text).join(W) + W : "", C = S ? this.parseSession.parse(S, r) : null;
|
|
1030
|
+
if (C?.diagnostics.length) return null;
|
|
1031
|
+
let w = (n.parsed.syntaxNodes ?? 0) - b.reduce((e, t) => e + t.cost, 0);
|
|
1032
|
+
return w < 0 ? null : (d.nodes = [], d.source = "", delete d.dependencies, {
|
|
957
1033
|
source: e,
|
|
958
1034
|
key: t,
|
|
959
|
-
tree:
|
|
960
|
-
metadata:
|
|
961
|
-
blocks:
|
|
962
|
-
context:
|
|
963
|
-
contextCost:
|
|
964
|
-
prefix:
|
|
965
|
-
prefixCost:
|
|
1035
|
+
tree: g,
|
|
1036
|
+
metadata: d,
|
|
1037
|
+
blocks: b,
|
|
1038
|
+
context: p.filter((e) => !e.opaque),
|
|
1039
|
+
contextCost: w,
|
|
1040
|
+
prefix: S,
|
|
1041
|
+
prefixCost: C?.syntaxNodes ?? 0
|
|
966
1042
|
});
|
|
967
1043
|
}
|
|
968
|
-
update(e, t, n, r) {
|
|
969
|
-
if (t.includes("[^") || t.includes("") ||
|
|
970
|
-
let i =
|
|
971
|
-
if (/[`\\~]/.test(e.source.slice(
|
|
972
|
-
let
|
|
1044
|
+
update(e, t, n, r, i, a) {
|
|
1045
|
+
if (t.includes("[^") || t.includes("") || $(t)) return null;
|
|
1046
|
+
let o = i, l = ye(e.source, t);
|
|
1047
|
+
if (/[`\\~]/.test(e.source.slice(l.from, l.oldTo) + t.slice(l.from, l.newTo))) return null;
|
|
1048
|
+
let u = [];
|
|
973
1049
|
for (let n of e.context) {
|
|
974
|
-
if (
|
|
975
|
-
let e = n.from >=
|
|
1050
|
+
if (l.from <= n.to && l.oldTo >= n.from) return null;
|
|
1051
|
+
let e = n.from >= l.oldTo ? l.delta : 0, r = {
|
|
976
1052
|
...n,
|
|
977
1053
|
from: n.from + e,
|
|
978
1054
|
to: n.to + e
|
|
979
1055
|
};
|
|
980
1056
|
if (t.slice(r.from, r.to) !== n.text) return null;
|
|
981
|
-
|
|
1057
|
+
u.push(r);
|
|
982
1058
|
}
|
|
983
|
-
|
|
984
|
-
let
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1059
|
+
let f = [];
|
|
1060
|
+
for (let n of e.blocks) {
|
|
1061
|
+
if (!n.opaque) continue;
|
|
1062
|
+
if (l.from > n.from && l.oldTo < n.to) {
|
|
1063
|
+
let e = n.to + l.delta;
|
|
1064
|
+
f.push({
|
|
1065
|
+
...n,
|
|
1066
|
+
to: e,
|
|
1067
|
+
text: t.slice(n.from, e)
|
|
1068
|
+
});
|
|
1069
|
+
continue;
|
|
1070
|
+
}
|
|
1071
|
+
if (l.from <= n.to && l.oldTo >= n.from) return null;
|
|
1072
|
+
let e = n.from >= l.oldTo ? l.delta : 0, r = {
|
|
1073
|
+
...n,
|
|
1074
|
+
from: n.from + e,
|
|
1075
|
+
to: n.to + e
|
|
1076
|
+
};
|
|
1077
|
+
if (t.slice(r.from, r.to) !== n.text) return null;
|
|
1078
|
+
f.push(r);
|
|
1079
|
+
}
|
|
1080
|
+
let p = [...u, ...f].sort((e, t) => e.from - t.from);
|
|
1081
|
+
if (_e(t, p)) return null;
|
|
1082
|
+
let m = c.applyChanges(c.addTree(e.tree), [{
|
|
1083
|
+
fromA: l.from,
|
|
1084
|
+
toA: l.oldTo,
|
|
1085
|
+
fromB: l.from,
|
|
1086
|
+
toB: l.newTo
|
|
1087
|
+
}], 0), h = Z(t, p);
|
|
1088
|
+
if (h.includes("<")) return null;
|
|
1089
|
+
let g = U.parse(h, m), _ = Q(g, p, h);
|
|
1090
|
+
if (!_) return null;
|
|
1091
|
+
for (let e of f) if (_.some((t) => t.start < e.to && t.end > e.from)) return null;
|
|
1092
|
+
let v = [..._.map((e) => ({ range: e })), ...f.map((e) => ({
|
|
1093
|
+
range: {
|
|
1094
|
+
start: e.from,
|
|
1095
|
+
end: e.to
|
|
1096
|
+
},
|
|
1097
|
+
opaque: e
|
|
1098
|
+
}))].sort((e, t) => e.range.start - t.range.start || e.range.end - t.range.end), y = new Map(e.blocks.map((e) => [`${e.from}:${e.to}`, e])), b = [], x = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), C = 0, w = 0, T = 0, E = e.contextCost, D = 0, O = 0, k = 0, A = 0;
|
|
1099
|
+
for (let i of v) {
|
|
1100
|
+
let s = i.range, c = s.start >= l.newTo ? l.delta : 0, u = s.end <= l.from || s.start >= l.newTo ? y.get(`${s.start - c}:${s.end - c}`) : void 0, f = t.slice(s.start, s.end);
|
|
1101
|
+
if (u && u.text === f) {
|
|
1102
|
+
let e = a ? performance.now() : 0;
|
|
1103
|
+
b.push({
|
|
1104
|
+
...u,
|
|
1105
|
+
from: s.start,
|
|
1106
|
+
to: s.end
|
|
1107
|
+
}), C++, E += u.cost;
|
|
1108
|
+
for (let e of G(u.nodes)) x.add(e.id);
|
|
1109
|
+
a && (D += performance.now() - e);
|
|
1110
|
+
} else if (i.opaque) {
|
|
1111
|
+
let e = i.opaque.prefix ?? "", t = e.length, r = d(e + f, n, this.services, void 0, a);
|
|
1112
|
+
if (a && (O += r.timings.totalMs, k += r.timings.parseMs ?? 0, A += r.timings.semanticMs ?? 0), T += t + f.length, w++, !r.result.ok || r.result.diagnostics.length || !r.parsed || V(r.result)) return null;
|
|
1113
|
+
let c = r.parsed.nodes.filter((e) => e.range.start >= t);
|
|
1114
|
+
if (c.length !== 1 || X(c[0], o) !== "raw") return null;
|
|
1115
|
+
let l = r.result.document.nodes.filter((e) => e.range.start >= t);
|
|
1116
|
+
if (l.length !== 1) return null;
|
|
1117
|
+
let u = new Map(G(l).map((e) => [e.id, `incremental-${++this.serial}-${e.id}`])), p = K(l, 0, u), m = (r.parsed.syntaxNodes ?? 0) - (i.opaque.prefixCost ?? 0);
|
|
1118
|
+
if (m < G(p).length) return null;
|
|
1119
|
+
let h = q(l, r.result.document, u), g = Object.create(null);
|
|
1120
|
+
for (let e of G(p)) g[e.id] = h[e.id] ?? null;
|
|
1121
|
+
let _ = {
|
|
1122
|
+
from: s.start,
|
|
1123
|
+
to: s.end,
|
|
1124
|
+
origin: t,
|
|
1125
|
+
text: f,
|
|
1126
|
+
nodes: p,
|
|
1127
|
+
dependencies: g,
|
|
1128
|
+
cost: m,
|
|
1129
|
+
opaque: !0,
|
|
1130
|
+
prefix: e,
|
|
1131
|
+
prefixCost: i.opaque.prefixCost ?? 0
|
|
1132
|
+
};
|
|
1133
|
+
b.push(_), S.add(_), E += m;
|
|
1003
1134
|
} else {
|
|
1004
1135
|
let t = e.prefix.length, r = e.blocks.find((e) => {
|
|
1005
|
-
let t = e.from >=
|
|
1006
|
-
return t <
|
|
1007
|
-
}),
|
|
1136
|
+
let t = e.from >= l.oldTo ? e.from + l.delta : e.from, n = e.to >= l.oldTo ? e.to + l.delta : e.to;
|
|
1137
|
+
return t < s.end && n > s.start;
|
|
1138
|
+
}), i = r?.rowPlans ? {
|
|
1008
1139
|
...this.services,
|
|
1009
1140
|
rowPlans: r.rowPlans
|
|
1010
|
-
} : this.services,
|
|
1011
|
-
if (
|
|
1012
|
-
let
|
|
1013
|
-
if (!
|
|
1014
|
-
let u =
|
|
1141
|
+
} : this.services, o = d(e.prefix + f, n, i, void 0, a);
|
|
1142
|
+
if (a && (O += o.timings.totalMs, k += o.timings.parseMs ?? 0, A += o.timings.semanticMs ?? 0), T += t + f.length, w++, !o.result.ok || o.result.diagnostics.length || !o.parsed || V(o.result)) return null;
|
|
1143
|
+
let c = o.parsed.nodes.filter((e) => e.range.start >= t);
|
|
1144
|
+
if (!c.length || c.some((e) => X(e) !== "fragment")) return null;
|
|
1145
|
+
let u = o.result.document.nodes.filter((e) => e.range.start >= t), p = new Map(G(u).map((e) => [e.id, `incremental-${++this.serial}-${e.id}`])), m = K(u, 0, p), h = r ? de({
|
|
1015
1146
|
text: r.text,
|
|
1016
1147
|
origin: r.origin,
|
|
1017
1148
|
nodes: r.nodes
|
|
1018
1149
|
}, {
|
|
1019
|
-
text:
|
|
1150
|
+
text: f,
|
|
1020
1151
|
origin: t,
|
|
1021
|
-
nodes:
|
|
1152
|
+
nodes: m
|
|
1022
1153
|
}) : void 0;
|
|
1023
|
-
if (
|
|
1024
|
-
for (let e of
|
|
1025
|
-
|
|
1154
|
+
if (h) {
|
|
1155
|
+
for (let e of h.reusedIds) if (x.has(e)) {
|
|
1156
|
+
h = void 0;
|
|
1026
1157
|
break;
|
|
1027
1158
|
}
|
|
1028
1159
|
}
|
|
1029
|
-
let
|
|
1030
|
-
if (
|
|
1031
|
-
let
|
|
1032
|
-
for (let e of
|
|
1033
|
-
if (
|
|
1034
|
-
let e = r.nodes[0]?.id, t =
|
|
1035
|
-
for (let n of
|
|
1036
|
-
for (let e = 0; e <
|
|
1160
|
+
let g = h?.nodes ?? m, _ = (o.parsed.syntaxNodes ?? 0) - e.prefixCost;
|
|
1161
|
+
if (_ < G(g).length) return null;
|
|
1162
|
+
let v = q(u, o.result.document, p), y = Object.create(null);
|
|
1163
|
+
for (let e of G(g)) y[e.id] = v[e.id] ?? null;
|
|
1164
|
+
if (h && r) {
|
|
1165
|
+
let e = r.nodes[0]?.id, t = m[0]?.id;
|
|
1166
|
+
for (let n of h.reusedIds) y[n] = n === e && t !== void 0 ? v[t] ?? null : r.dependencies[n] ?? null, x.add(n);
|
|
1167
|
+
for (let e = 0; e < h.reused; e++) this.parseSession.noteRowReuse(h.kind);
|
|
1037
1168
|
}
|
|
1038
|
-
let
|
|
1039
|
-
from:
|
|
1040
|
-
to:
|
|
1169
|
+
let C = {
|
|
1170
|
+
from: s.start,
|
|
1171
|
+
to: s.end,
|
|
1041
1172
|
origin: t,
|
|
1042
|
-
text:
|
|
1043
|
-
nodes:
|
|
1044
|
-
dependencies:
|
|
1045
|
-
cost:
|
|
1046
|
-
rowPlans:
|
|
1173
|
+
text: f,
|
|
1174
|
+
nodes: g,
|
|
1175
|
+
dependencies: y,
|
|
1176
|
+
cost: _,
|
|
1177
|
+
rowPlans: be(o, f)
|
|
1047
1178
|
};
|
|
1048
|
-
|
|
1179
|
+
b.push(C), S.add(C), E += _;
|
|
1049
1180
|
}
|
|
1050
|
-
if (
|
|
1181
|
+
if (E > r) return null;
|
|
1182
|
+
}
|
|
1183
|
+
if (E > r) return null;
|
|
1184
|
+
if (u.some((e) => e.nodes.some((e) => e.type === "component" && e.name === "else")) && e.metadata.componentDefinitions?.some((e) => e.id === "reactive-md/else")) {
|
|
1185
|
+
let e = [...b, ...u].sort((e, t) => e.from - t.from).flatMap((e) => e.nodes);
|
|
1186
|
+
if (e.some((t, n) => t.type === "component" && t.name === "else" && s(e, n) !== void 0)) return null;
|
|
1051
1187
|
}
|
|
1052
|
-
return
|
|
1188
|
+
return this.sameBoundaries(t, b, u, S, l, n) ? (this.lastStats = {
|
|
1053
1189
|
mode: "incremental",
|
|
1054
|
-
totalBlocks:
|
|
1055
|
-
compiledBlocks:
|
|
1056
|
-
reusedBlocks:
|
|
1057
|
-
compiledCharacters:
|
|
1190
|
+
totalBlocks: b.length,
|
|
1191
|
+
compiledBlocks: w,
|
|
1192
|
+
reusedBlocks: C,
|
|
1193
|
+
compiledCharacters: T,
|
|
1194
|
+
...a ? { stages: {
|
|
1195
|
+
...C ? { reuseMs: D } : {},
|
|
1196
|
+
...w ? {
|
|
1197
|
+
rebuildMs: O,
|
|
1198
|
+
parseMs: k,
|
|
1199
|
+
semanticMs: A
|
|
1200
|
+
} : {}
|
|
1201
|
+
} } : {}
|
|
1058
1202
|
}, {
|
|
1059
1203
|
...e,
|
|
1060
1204
|
source: t,
|
|
1061
|
-
tree:
|
|
1062
|
-
context:
|
|
1063
|
-
blocks:
|
|
1064
|
-
});
|
|
1205
|
+
tree: g,
|
|
1206
|
+
context: u,
|
|
1207
|
+
blocks: b
|
|
1208
|
+
}) : null;
|
|
1065
1209
|
}
|
|
1066
1210
|
sameBoundaries(e, t, n, r, i, a) {
|
|
1067
1211
|
let o = new Set(n), s = [...t, ...n].sort((e, t) => e.from - t.from), c = (e) => r.has(s[e]) || r.has(s[e + 1]) || i.from <= s[e + 1].from && i.newTo >= s[e].to;
|
|
@@ -1083,7 +1227,7 @@ var $ = class {
|
|
|
1083
1227
|
delta: a
|
|
1084
1228
|
});
|
|
1085
1229
|
}
|
|
1086
|
-
let i = r[0], l = r[r.length - 1], u = "node" in i ? Math.max(s[t].from,
|
|
1230
|
+
let i = r[0], l = r[r.length - 1], u = "node" in i ? Math.max(s[t].from, ge(e, i.node.range.start + i.delta)) : i.from, d = "node" in l ? l.node.range.end + l.delta : l.to, f = s.slice(t, n + 2).flatMap((e) => e.rowPlans ? [e.rowPlans] : []), p = f.length < 2 ? f[0] : {
|
|
1087
1231
|
has: (e) => f.some((t) => t.has(e)),
|
|
1088
1232
|
get: (e) => f.find((t) => t.has(e))?.get(e)
|
|
1089
1233
|
}, m = this.parseSession.parse(e.slice(u, d), a, void 0, p);
|
|
@@ -1091,7 +1235,7 @@ var $ = class {
|
|
|
1091
1235
|
for (let e = 0; e < r.length; e++) {
|
|
1092
1236
|
let t = r[e], n = m.nodes[e];
|
|
1093
1237
|
if ("node" in t) {
|
|
1094
|
-
if (!
|
|
1238
|
+
if (!ve(n, u, t.node, t.delta)) return !1;
|
|
1095
1239
|
} else if (n.range.start + u !== t.from || n.range.end + u !== t.to) return !1;
|
|
1096
1240
|
}
|
|
1097
1241
|
t = n;
|
|
@@ -1105,34 +1249,34 @@ var $ = class {
|
|
|
1105
1249
|
t.nodes = r.flatMap((e) => {
|
|
1106
1250
|
let t = e.from - e.origin;
|
|
1107
1251
|
if (e.publication?.delta === t) return e.publication.nodes;
|
|
1108
|
-
let n =
|
|
1252
|
+
let n = P(e.publication?.nodes ?? e.nodes.map((e) => i.get(e.id)).filter((e) => !!e), K(e.nodes, t)).value;
|
|
1109
1253
|
return e.publication = {
|
|
1110
1254
|
delta: t,
|
|
1111
1255
|
nodes: n
|
|
1112
1256
|
}, n;
|
|
1113
1257
|
});
|
|
1114
|
-
let
|
|
1115
|
-
for (let e of r) for (let [t, n] of Object.entries(e.dependencies)) Object.defineProperty(
|
|
1258
|
+
let s = {};
|
|
1259
|
+
for (let e of r) for (let [t, n] of Object.entries(e.dependencies)) Object.defineProperty(s, t, {
|
|
1116
1260
|
value: n === null ? null : Object.freeze([...n]),
|
|
1117
1261
|
enumerable: !0
|
|
1118
1262
|
});
|
|
1119
|
-
t.dependencies = Object.freeze(
|
|
1120
|
-
let
|
|
1121
|
-
let
|
|
1263
|
+
t.dependencies = Object.freeze(s);
|
|
1264
|
+
let c = [...e.context, ...e.blocks.filter((e) => e.opaque)], l = (e) => {
|
|
1265
|
+
let t = c.find((t) => e.start >= t.origin && e.end <= t.origin + t.text.length), n = t ? t.from - t.origin : 0;
|
|
1122
1266
|
return {
|
|
1123
|
-
start:
|
|
1124
|
-
end:
|
|
1267
|
+
start: e.start + n,
|
|
1268
|
+
end: e.end + n
|
|
1125
1269
|
};
|
|
1126
1270
|
};
|
|
1127
|
-
t.versionDeclaration && (t.versionDeclaration.range =
|
|
1128
|
-
for (let e of Object.values(t.computations ?? {})) e.range =
|
|
1129
|
-
for (let e of t.validations ?? []) e.range =
|
|
1130
|
-
for (let e of Object.values(t.externals ?? {})) e.range =
|
|
1131
|
-
for (let e of Object.values(t.dynamicConstraints ?? {})) for (let t of Object.values(e)) t.offset =
|
|
1271
|
+
t.versionDeclaration && (t.versionDeclaration.range = l(t.versionDeclaration.range)), t.themeRange &&= l(t.themeRange);
|
|
1272
|
+
for (let e of Object.values(t.computations ?? {})) e.range = l(e.range);
|
|
1273
|
+
for (let e of t.validations ?? []) e.range = l(e.range);
|
|
1274
|
+
for (let e of Object.values(t.externals ?? {})) e.range = l(e.range);
|
|
1275
|
+
for (let e of Object.values(t.dynamicConstraints ?? {})) for (let t of Object.values(e)) t.offset = l({
|
|
1132
1276
|
start: t.offset,
|
|
1133
1277
|
end: t.offset
|
|
1134
1278
|
}).start;
|
|
1135
|
-
return {
|
|
1279
|
+
return t.requiresRuntime = o(t), t.usedComponents = a(t.nodes), {
|
|
1136
1280
|
ok: !0,
|
|
1137
1281
|
document: t,
|
|
1138
1282
|
diagnostics: []
|
|
@@ -1157,10 +1301,10 @@ var $ = class {
|
|
|
1157
1301
|
if (this.disposed || !this.deferred || e?.aborted) return !1;
|
|
1158
1302
|
let n = this.deferred, r = this.epoch, i = () => !this.disposed && !e?.aborted && this.epoch === r && this.deferred === n;
|
|
1159
1303
|
if (await t(), !i() || !n.tracked.result.ok || !n.tracked.parsed) return !1;
|
|
1160
|
-
let a = [], o = n.tracked.parsed.nodes;
|
|
1304
|
+
let a = [], o = n.tracked.parsed.nodes, s = this.rawNamesFor(n.options);
|
|
1161
1305
|
for (let e = 0; e < o.length; e++) {
|
|
1162
|
-
let r = o[e],
|
|
1163
|
-
if (
|
|
1306
|
+
let r = o[e], c = X(r, s);
|
|
1307
|
+
if (c === "unsupported" || ((c === "context" || c === "raw") && a.push({
|
|
1164
1308
|
from: r.range.start,
|
|
1165
1309
|
to: r.range.end,
|
|
1166
1310
|
origin: r.range.start,
|
|
@@ -1180,29 +1324,38 @@ var $ = class {
|
|
|
1180
1324
|
cost: 0
|
|
1181
1325
|
});
|
|
1182
1326
|
a.sort((e, t) => e.from - t.from);
|
|
1183
|
-
let
|
|
1184
|
-
if (
|
|
1185
|
-
let
|
|
1186
|
-
for (; !
|
|
1327
|
+
let c = Z(n.source, a);
|
|
1328
|
+
if (c.includes("<")) return !1;
|
|
1329
|
+
let l = U.startParse(c), u = null;
|
|
1330
|
+
for (; !u;) if (u = l.advance(), !u && (await t(), !i())) return !1;
|
|
1187
1331
|
if (await t(), !i()) return !1;
|
|
1188
|
-
let
|
|
1332
|
+
let d = this.cacheBuilds;
|
|
1189
1333
|
try {
|
|
1190
|
-
let e = this.seed(n.source, n.key, n.tracked, n.options,
|
|
1334
|
+
let e = this.seed(n.source, n.key, n.tracked, n.options, u, s);
|
|
1191
1335
|
return i() ? (this.snapshot = e, this.deferred = null, e !== null) : !1;
|
|
1192
1336
|
} catch {
|
|
1193
1337
|
return !1;
|
|
1194
1338
|
} finally {
|
|
1195
|
-
this.cacheBuilds =
|
|
1339
|
+
this.cacheBuilds = d;
|
|
1196
1340
|
}
|
|
1197
1341
|
}
|
|
1342
|
+
rawNames(e, t) {
|
|
1343
|
+
return this.rawNamesCache?.key !== e && (this.rawNamesCache = {
|
|
1344
|
+
key: e,
|
|
1345
|
+
names: he(t)
|
|
1346
|
+
}), this.rawNamesCache.names;
|
|
1347
|
+
}
|
|
1348
|
+
rawNamesFor(e) {
|
|
1349
|
+
return this.rawNames(h(e), e);
|
|
1350
|
+
}
|
|
1198
1351
|
clear() {
|
|
1199
|
-
this.epoch++, this.snapshot = null, this.deferred = null, this.serial = 0, this.cacheBuilds = 0, this.shared = null, this.sharedKey = void 0, this.sharedMode = void 0, this.streamingCache = null, this.parseSession.clear(), this.semantic.clear();
|
|
1352
|
+
this.epoch++, this.snapshot = null, this.deferred = null, this.serial = 0, this.cacheBuilds = 0, this.shared = null, this.sharedKey = void 0, this.sharedMode = void 0, this.streamingCache = null, this.rawNamesCache = null, this.parseSession.clear(), this.semantic.clear();
|
|
1200
1353
|
}
|
|
1201
1354
|
dispose() {
|
|
1202
1355
|
this.clear(), this.parseSession.dispose(), this.disposed = !0;
|
|
1203
1356
|
}
|
|
1204
1357
|
};
|
|
1205
|
-
function
|
|
1206
|
-
return new
|
|
1358
|
+
function Se() {
|
|
1359
|
+
return new xe();
|
|
1207
1360
|
}
|
|
1208
|
-
export {
|
|
1361
|
+
export { Se as n, xe as t };
|