reactive-md 0.9.3 → 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 +34 -0
- package/CHANGELOG.md +34 -0
- package/README-ch.md +7 -7
- package/README-en.md +7 -7
- package/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +0 -57
- package/cli/help.mjs +6 -4
- package/cli/init.mjs +1 -1
- package/cli/migrate.mjs +1 -1
- package/dist-library/{LocalDocumentView-D6zQkTkt.js → LocalDocumentView-CP2QG86k.js} +46 -44
- package/dist-library/{LocalDocumentViewCore-CmJhemcA.js → LocalDocumentViewCore-Cd6yMEkg.js} +284 -265
- package/dist-library/{LocalReactiveDocumentCore-lAKOGAZ7.js → LocalReactiveDocumentCore-VuYpZqdn.js} +7 -7
- package/dist-library/LocalStaticDocumentView-DfX6bemE.js +147 -0
- package/dist-library/authoring-Bwu_zCWs.js +768 -0
- package/dist-library/choice-values-BItGjPD2.js +58 -0
- package/dist-library/compile-B35rfzKr.js +1742 -0
- package/dist-library/{compile-cache-key-6GgpETz_.js → compile-cache-key-D21X2Obx.js} +5 -5
- package/dist-library/{compiler-DLkKUK4t.js → compiler-DBwLawMZ.js} +4 -4
- package/dist-library/{compiler-core-Niqhp9wV.js → compiler-core-kkDiQ1RK.js} +3146 -2055
- package/dist-library/{component-kernel-IG4wOO0i.js → component-kernel-CsJSabHX.js} +42 -26
- package/dist-library/{component-state-Ht-hOK0W.js → component-state-Da0G8Ajc.js} +1 -1
- package/dist-library/{component-utils-eSj5IdG4.js → component-utils-ZM3jUJNy.js} +80 -79
- package/dist-library/conditional-branches-CIhJXasR.js +17 -0
- package/dist-library/{config-validation-Cpol91_M.js → config-validation-DbmsWAEV.js} +165 -152
- package/dist-library/{controls-B-CLSK8Q.js → controls-DRy5rzzN.js} +271 -228
- package/dist-library/{coordinate-PyLPMIQK.js → coordinate-c54pHfgf.js} +29 -29
- package/dist-library/data-table-CSAkm1eU.js +290 -0
- package/dist-library/data-table-model-DruztQFt.js +391 -0
- package/dist-library/{data-visuals-_Z7QqYTk.js → data-visuals-rZQUeQM0.js} +14 -14
- package/dist-library/{default-components-jugH7Ubr.js → default-components-B-39etG9.js} +233 -71
- package/dist-library/{default-config-DIrRpuQz.js → default-config-CCa8rm2k.js} +236 -216
- package/dist-library/default-options-By16CVw1.js +131 -0
- package/dist-library/{default-registry-BlloaZi7.js → default-registry-DXJy66xj.js} +3 -3
- package/dist-library/{default-schema-Ch-Vznpm.js → default-schema-CeYiEW1K.js} +3 -3
- package/dist-library/display-Bb6hAG5T.js +2065 -0
- package/dist-library/{document-theme-DBAfnk7y.js → document-theme-CJvN-nC1.js} +190 -3
- package/dist-library/{export-heVBqgxA.js → export-BSV4E0jv.js} +105 -106
- package/dist-library/font-aliases-CKYjwn4o.js +4 -0
- package/dist-library/{gallery-Q6VPS2ep.js → gallery-DM2yTVZJ.js} +1 -1
- package/dist-library/{html-CCnvzan1.js → html-CY9mC3Sr.js} +5 -5
- package/dist-library/{incremental-Bzvh8_lB.js → incremental-B-wW4H3F.js} +251 -245
- package/dist-library/{display-y4v9v0Qd.js → katex-4ukd4ZxT.js} +1555 -3618
- package/dist-library/layout-CPQggKxk.js +592 -0
- package/dist-library/{layout-BnfDeUNy.js → layout-CaDWsDof.js} +1 -1
- package/dist-library/{math-view-B0jthpRw.js → math-view-CyGTS6kv.js} +1 -1
- package/dist-library/{mount-preset-C_i37FvY.js → mount-preset-DtrCX4G8.js} +4 -4
- package/dist-library/{numeric-sliders-CkWS0-ja.js → numeric-sliders-BmJ1LCLx.js} +190 -190
- package/dist-library/{observability-CYLuvFfL.js → observability-BVQ16ByQ.js} +5 -4
- package/dist-library/{package-core-9UK5ZdqB.js → package-core-Cu_r_qs7.js} +7 -6
- package/dist-library/{parser-9yNJxGip.js → parser-BHl9Lxbw.js} +2 -2
- package/dist-library/{parser-standard-BPIy4HOu.js → parser-standard-DDAKv_DZ.js} +247 -247
- package/dist-library/{plugin-packs-CZb46nuv.js → plugin-packs-CkI0floL.js} +3 -3
- package/dist-library/{preset-core-BW3NWZJ9.js → preset-core-BKPbH_Nv.js} +377 -306
- package/dist-library/{props-pJRrfDc6.js → props-0iDqxlTk.js} +56 -61
- package/dist-library/{react-BSo0o998.js → react-74jdGBmu.js} +2 -2
- package/dist-library/reactive-md-authoring.js +277 -269
- package/dist-library/reactive-md-build.js +327 -33
- package/dist-library/reactive-md-compiler-session.js +3 -3
- 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 +4 -4
- package/dist-library/reactive-md-default-packs.js +4 -3
- package/dist-library/reactive-md-default-preset.js +3 -3
- package/dist-library/reactive-md-export.js +6 -6
- package/dist-library/reactive-md-minimal-preset.js +3 -2
- package/dist-library/reactive-md-minimal-react-preset.js +18 -17
- package/dist-library/reactive-md-minimal.css +1 -1
- package/dist-library/reactive-md-observability.js +2 -2
- package/dist-library/reactive-md-pack-style-manifest.js +8 -0
- package/dist-library/reactive-md-plugin-chart.js +13 -9
- package/dist-library/reactive-md-plugin-data.js +4 -4
- package/dist-library/reactive-md-plugin-diagram.js +3 -3
- package/dist-library/reactive-md-plugin-forms.js +5 -5
- package/dist-library/reactive-md-plugin-gallery.js +3 -3
- package/dist-library/reactive-md-plugin-navigation.js +10 -10
- package/dist-library/reactive-md-plugin-network.js +5 -5
- package/dist-library/reactive-md-plugin-plot.js +4 -4
- package/dist-library/reactive-md-react-component-accordion.js +3 -3
- package/dist-library/reactive-md-react-component-alert.js +3 -3
- package/dist-library/reactive-md-react-component-anchor.js +3 -3
- package/dist-library/reactive-md-react-component-badge.js +3 -3
- package/dist-library/reactive-md-react-component-card.js +3 -3
- package/dist-library/reactive-md-react-component-chart.js +2 -2
- package/dist-library/reactive-md-react-component-checkbox.js +2 -2
- package/dist-library/reactive-md-react-component-checklist.js +2 -2
- package/dist-library/reactive-md-react-component-choices.js +2 -2
- package/dist-library/reactive-md-react-component-column.js +1 -1
- package/dist-library/reactive-md-react-component-coordinate.js +2 -2
- package/dist-library/reactive-md-react-component-counter.js +2 -2
- package/dist-library/reactive-md-react-component-data-table.js +2 -2
- package/dist-library/reactive-md-react-component-date.js +2 -2
- package/dist-library/reactive-md-react-component-diagram.js +2 -2
- package/dist-library/reactive-md-react-component-disclosure.js +3 -3
- package/dist-library/reactive-md-react-component-edge.js +1 -1
- package/dist-library/reactive-md-react-component-else.js +10 -0
- package/dist-library/reactive-md-react-component-gallery-item.js +2 -2
- package/dist-library/reactive-md-react-component-gallery.js +2 -2
- package/dist-library/reactive-md-react-component-grid.js +3 -3
- package/dist-library/reactive-md-react-component-if.js +3 -3
- package/dist-library/reactive-md-react-component-input.js +2 -2
- package/dist-library/reactive-md-react-component-jump.js +3 -3
- package/dist-library/reactive-md-react-component-multi-select.js +2 -2
- package/dist-library/reactive-md-react-component-node.js +2 -2
- package/dist-library/reactive-md-react-component-number.js +2 -2
- package/dist-library/reactive-md-react-component-option.js +1 -1
- package/dist-library/reactive-md-react-component-panel.js +3 -3
- package/dist-library/reactive-md-react-component-plot.js +2 -2
- package/dist-library/reactive-md-react-component-progress.js +2 -2
- package/dist-library/reactive-md-react-component-quiz.js +2 -2
- package/dist-library/reactive-md-react-component-radio-group.js +2 -2
- package/dist-library/reactive-md-react-component-range-slider.js +2 -2
- package/dist-library/reactive-md-react-component-section.js +3 -3
- package/dist-library/reactive-md-react-component-select.js +2 -2
- package/dist-library/reactive-md-react-component-slider.js +2 -2
- package/dist-library/reactive-md-react-component-step.js +3 -3
- package/dist-library/reactive-md-react-component-steps.js +3 -3
- package/dist-library/reactive-md-react-component-tab.js +3 -3
- package/dist-library/reactive-md-react-component-table.js +2 -2
- package/dist-library/reactive-md-react-component-tabs.js +3 -3
- package/dist-library/reactive-md-react-component-text.js +3 -3
- package/dist-library/reactive-md-react-component-textarea.js +2 -2
- package/dist-library/reactive-md-react-component-timeline.js +2 -2
- package/dist-library/reactive-md-react-component-timer.js +2 -2
- package/dist-library/reactive-md-react-component-toggle.js +2 -2
- package/dist-library/reactive-md-react-component-tooltip.js +3 -3
- package/dist-library/reactive-md-react-component-validation.js +3 -3
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-pack-controls.js +4 -4
- package/dist-library/reactive-md-react-pack-data.js +3 -3
- package/dist-library/reactive-md-react-pack-layout.js +25 -24
- package/dist-library/reactive-md-react-pack-visuals.js +2 -2
- package/dist-library/reactive-md-react-packed.js +6 -6
- package/dist-library/reactive-md-react-server.js +37 -36
- package/dist-library/reactive-md-react-static-server.js +2 -2
- package/dist-library/reactive-md-react-static.js +1 -1
- package/dist-library/reactive-md-react-unstyled.js +12 -12
- package/dist-library/reactive-md-react.js +12 -12
- package/dist-library/reactive-md-scan.js +1 -1
- 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 +6 -6
- package/dist-library/reactive-md-testing.js +6 -6
- package/dist-library/reactive-md-vite.js +25 -9
- package/dist-library/reactive-md-worker-pool.js +3 -3
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +52 -43
- package/dist-library/{registry-core-CziAIP5P.js → registry-core-DxEaxhJ6.js} +3 -2
- package/dist-library/{render-nodes-DKjg_TR1.js → render-nodes-B6j6Ip5I.js} +766 -731
- package/dist-library/{requirements-DhIkxAbl.js → requirements-C56sFIEs.js} +2 -2
- package/dist-library/{resources-B_nbROgj.js → resources-6VaNgk-h.js} +2 -2
- package/dist-library/rmd-pack-layout.css +9 -0
- package/dist-library/rmd-pack-resource-layout.css +9 -0
- package/dist-library/runtime-BHeuLOv_.js +1369 -0
- package/dist-library/{runtime-requirement-C4-vNcf5.js → runtime-requirement-DzPO8raU.js} +166 -163
- package/dist-library/{schema-core-4sd1Vu7V.js → schema-core-CDXfxdID.js} +24 -1
- package/dist-library/{sdk-core-BLsW9cCy.js → sdk-core-CnE-n0Z7.js} +469 -314
- package/dist-library/{session-core-DLBRPV7f.js → session-core-C071yQwV.js} +140 -127
- package/dist-library/{validation-XXlb-spV.js → sha256-utf16-Bmandi_H.js} +392 -315
- package/dist-library/shareable-CHCDnl6j.js +844 -0
- package/dist-library/types/authoring/catalog.d.ts +3 -1
- package/dist-library/types/authoring/index.d.ts +1 -1
- 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/else.d.ts +3 -0
- package/dist-library/types/components/layout/layout.d.ts +5 -0
- package/dist-library/types/components/shared/visuals.d.ts +1 -1
- package/dist-library/types/components/table/data-table-model.d.ts +95 -2
- package/dist-library/types/components/table/data-table.d.ts +2 -2
- package/dist-library/types/contracts/component-kernel.d.ts +5 -0
- package/dist-library/types/contracts/font-aliases.d.ts +18 -0
- package/dist-library/types/contracts/number-literal.d.ts +2 -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/compiler-choices.d.ts +4 -0
- package/dist-library/types/local/compilation/compiler-declarations.d.ts +2 -1
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +12 -1
- package/dist-library/types/local/compilation/compiler-macros.d.ts +18 -0
- package/dist-library/types/local/compilation/compiler-structure.d.ts +8 -2
- package/dist-library/types/local/compilation/compiler-tables.d.ts +1 -0
- package/dist-library/types/local/compilation/compiler-validation.d.ts +11 -0
- package/dist-library/types/local/compilation/compiler-values.d.ts +1 -2
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +173 -2
- package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +40 -0
- 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 +4 -3
- package/dist-library/types/local/parsing/conditional-branches.d.ts +4 -0
- package/dist-library/types/local/parsing/source-revision.d.ts +3 -0
- package/dist-library/types/local/runtime/runtime-choices.d.ts +11 -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/types.d.ts +33 -2
- package/dist-library/types/react/component-api.d.ts +21 -2
- 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/package-core.d.ts +3 -0
- package/dist-library/types/react/rendering/document/validation-state.d.ts +1 -1
- package/dist-library/types/react/rendering/document/view-revision.d.ts +3 -12
- package/dist-library/types/react/rendering/table/data-table.d.ts +1 -1
- package/dist-library/types/react/sdk-core.d.ts +3 -1
- package/dist-library/types/sdk/assembly.d.ts +3 -0
- package/dist-library/types/sdk/font.d.ts +13 -0
- package/dist-library/types/sdk/index.d.ts +1 -0
- package/dist-library/types/sdk/theme.d.ts +5 -0
- package/dist-library/types/sdk/types.d.ts +6 -0
- package/dist-library/types/sdk/version.d.ts +1 -1
- 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 +4 -1
- package/dist-library/types/vite/index.d.ts +3 -0
- package/dist-library/types/vite/registration.d.ts +1 -0
- package/dist-library/{types-Bza88SGK.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-B0G1699c.js → version-4wzhbvDG.js} +1 -1
- package/dist-library/{visual-helpers-CRmaqCHX.js → visual-helpers-UU6xiL8g.js} +3 -3
- package/dist-library/visuals-7xzoL9ql.js +49340 -0
- package/dist-library/{worker-D6WMV8xJ.js → worker-3ldRjOEG.js} +9 -9
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +128 -368
- package/docs/README-ch.md +3 -1
- package/docs/README.md +3 -1
- package/docs/compatibility/api-stability-ch.md +1 -1
- package/docs/compatibility/api-stability-en.md +1 -1
- package/docs/compatibility/compatibility-ch.md +15 -15
- package/docs/compatibility/compatibility-en.md +15 -15
- 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 +22 -14
- package/docs/compatibility/source-versioning-en.md +22 -13
- 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 +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-protocol-ch.md +18 -18
- package/docs/development/component-protocol-en.md +14 -14
- package/docs/guides/local-guide-ch.md +109 -20
- package/docs/guides/local-guide-en.md +109 -20
- package/docs/integration/author-tools-ch.md +1 -1
- package/docs/integration/author-tools-en.md +1 -1
- package/docs/integration/editor-ch.md +3 -3
- package/docs/integration/editor-en.md +3 -3
- package/docs/integration/extension-sdk-ch.md +29 -3
- package/docs/integration/extension-sdk-en.md +29 -3
- package/docs/integration/local-integration-ch.md +3 -3
- package/docs/integration/local-integration-en.md +3 -3
- 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 +11 -19
- package/docs/integration/shareable-export-en.md +11 -19
- package/docs/reference/diagnostics-counting-ch.md +24 -1
- package/docs/reference/diagnostics-counting-en.md +24 -1
- package/docs/reference/local-interaction-syntax-ch.md +222 -33
- package/docs/reference/local-interaction-syntax-en.md +220 -31
- package/docs/reference/public-api-ch.md +24 -18
- package/docs/reference/public-api-en.md +24 -18
- package/docs/reference/theme-protocol-ch.md +1 -1
- package/docs/reference/theme-protocol-en.md +1 -1
- package/docs/releases/release-0.10.0-ch.md +45 -0
- package/docs/releases/release-0.10.0-en.md +45 -0
- package/examples/conformance/README-ch.md +3 -3
- package/examples/conformance/README.md +3 -3
- package/examples/conformance/local-draft-4.json +441 -0
- package/examples/integration/README-ch.md +3 -3
- package/examples/integration/README.md +3 -3
- package/examples/integration/chat-session/package.json +1 -1
- package/examples/local/README-ch.md +1 -1
- package/examples/local/README.md +1 -1
- package/package.json +6 -1
- package/dist-library/LocalStaticDocumentView-2J7w0sKm.js +0 -143
- package/dist-library/authoring-B14SsOXZ.js +0 -893
- package/dist-library/compile-D50B5_Ww.js +0 -1249
- package/dist-library/computations-CffoW7Ff.js +0 -340
- package/dist-library/data-table-Kv_ZA2Z2.js +0 -297
- package/dist-library/default-options-DU5dxuU6.js +0 -125
- package/dist-library/layout-BfUzzO2b.js +0 -553
- package/dist-library/runtime-CuJndKqK.js +0 -1289
- package/dist-library/shareable-C6mUerpQ.js +0 -817
- package/dist-library/types-daDo2c_w.js +0 -3
- package/dist-library/use-hydrated-W-laKPhY.js +0 -22975
- package/dist-library/visuals-CoVSjVD8.js +0 -49159
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as w, r as T } from "./schema-core-
|
|
1
|
+
import { S as e } from "./validation-DRuW0Wl9.js";
|
|
2
|
+
import { A as t, I as n, L as r, M as i, N as a, O as o, P as s, S as c, _ as l, c as u, d, f, g as p, h as m, j as h, k as g, m as _, p as v, u as y, v as b, w as x, x as S, y as C } from "./sha256-utf16-Bmandi_H.js";
|
|
3
|
+
import { a as w, r as T } from "./schema-core-CDXfxdID.js";
|
|
4
4
|
import { a as E, n as D, o as O, s as k } from "./dist-Cueh1Psp.js";
|
|
5
5
|
// src/local/html/html-table.ts
|
|
6
6
|
var ee = {
|
|
@@ -2806,7 +2806,7 @@ function Jn(e) {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
function Yn(e, t) {
|
|
2808
2808
|
let n = e.input.charCodeAt(e.index - 1);
|
|
2809
|
-
return (e.index === 0 ||
|
|
2809
|
+
return (e.index === 0 || i(n) || h(n)) && (!t || n !== 47);
|
|
2810
2810
|
}
|
|
2811
2811
|
// node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
2812
2812
|
ar.peek = ir;
|
|
@@ -2832,15 +2832,15 @@ function $n(e) {
|
|
|
2832
2832
|
}, e);
|
|
2833
2833
|
}
|
|
2834
2834
|
function er(e) {
|
|
2835
|
-
let
|
|
2836
|
-
|
|
2835
|
+
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
2836
|
+
n.type, n.identifier = a(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
2837
2837
|
}
|
|
2838
2838
|
function tr(e) {
|
|
2839
2839
|
this.exit(e);
|
|
2840
2840
|
}
|
|
2841
2841
|
function nr(e) {
|
|
2842
|
-
let
|
|
2843
|
-
|
|
2842
|
+
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
2843
|
+
n.type, n.identifier = a(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
2844
2844
|
}
|
|
2845
2845
|
function rr(e) {
|
|
2846
2846
|
this.exit(e);
|
|
@@ -3178,7 +3178,7 @@ function Vr(e, t) {
|
|
|
3178
3178
|
let n = !1;
|
|
3179
3179
|
return Br(e, function(e) {
|
|
3180
3180
|
if ("value" in e && /\r?\n|\r/.test(e.value) || e.type === "break") return n = !0, !1;
|
|
3181
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
3181
|
+
}), !!((!e.depth || e.depth < 3) && r(e) && (t.options.setext || n));
|
|
3182
3182
|
}
|
|
3183
3183
|
// node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
3184
3184
|
function Hr(e, t, n, r) {
|
|
@@ -3277,7 +3277,7 @@ function Xr() {
|
|
|
3277
3277
|
}
|
|
3278
3278
|
// node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
3279
3279
|
function Zr(e, t) {
|
|
3280
|
-
let n =
|
|
3280
|
+
let n = r(e);
|
|
3281
3281
|
return !(t.options.resourceLink || !e.url || e.title || !e.children || e.children.length !== 1 || e.children[0].type !== "text" || n !== e.url && "mailto:" + n !== e.url || !/^[a-z][+\-.a-z]+:/i.test(e.url) || /[\0- <>\u007F]/.test(e.url));
|
|
3282
3282
|
}
|
|
3283
3283
|
// node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
@@ -3731,19 +3731,19 @@ function Ui(e, t, n) {
|
|
|
3731
3731
|
let r = this, i, a;
|
|
3732
3732
|
return o;
|
|
3733
3733
|
function o(t) {
|
|
3734
|
-
return !ea(t) || !$i.call(r, r.previous) || ta(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"),
|
|
3734
|
+
return !ea(t) || !$i.call(r, r.previous) || ta(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(t));
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3737
|
-
return ea(t) ? (e.consume(t),
|
|
3736
|
+
function s(t) {
|
|
3737
|
+
return ea(t) ? (e.consume(t), s) : t === 64 ? (e.consume(t), l) : n(t);
|
|
3738
3738
|
}
|
|
3739
3739
|
function l(t) {
|
|
3740
|
-
return t === 46 ? e.check(zi, d, u)(t) : t === 45 || t === 95 ||
|
|
3740
|
+
return t === 46 ? e.check(zi, d, u)(t) : t === 45 || t === 95 || c(t) ? (a = !0, e.consume(t), l) : d(t);
|
|
3741
3741
|
}
|
|
3742
3742
|
function u(t) {
|
|
3743
3743
|
return e.consume(t), i = !0, l;
|
|
3744
3744
|
}
|
|
3745
3745
|
function d(o) {
|
|
3746
|
-
return a && i &&
|
|
3746
|
+
return a && i && S(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(o)) : n(o);
|
|
3747
3747
|
}
|
|
3748
3748
|
}
|
|
3749
3749
|
function Wi(e, t, n) {
|
|
@@ -3757,26 +3757,26 @@ function Wi(e, t, n) {
|
|
|
3757
3757
|
}
|
|
3758
3758
|
}
|
|
3759
3759
|
function Gi(e, t, n) {
|
|
3760
|
-
let r = this,
|
|
3761
|
-
return
|
|
3762
|
-
function
|
|
3763
|
-
return (t === 72 || t === 104) && Qi.call(r, r.previous) && !ta(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"),
|
|
3760
|
+
let r = this, a = "", o = !1;
|
|
3761
|
+
return s;
|
|
3762
|
+
function s(t) {
|
|
3763
|
+
return (t === 72 || t === 104) && Qi.call(r, r.previous) && !ta(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), a += String.fromCodePoint(t), e.consume(t), c) : n(t);
|
|
3764
3764
|
}
|
|
3765
|
-
function
|
|
3766
|
-
if (
|
|
3765
|
+
function c(t) {
|
|
3766
|
+
if (S(t) && a.length < 5) return a += String.fromCodePoint(t), e.consume(t), c;
|
|
3767
3767
|
if (t === 58) {
|
|
3768
|
-
let n =
|
|
3769
|
-
if (n === "http" || n === "https") return e.consume(t),
|
|
3768
|
+
let n = a.toLowerCase();
|
|
3769
|
+
if (n === "http" || n === "https") return e.consume(t), l;
|
|
3770
3770
|
}
|
|
3771
3771
|
return n(t);
|
|
3772
3772
|
}
|
|
3773
|
-
function
|
|
3774
|
-
return t === 47 ? (e.consume(t), o ?
|
|
3773
|
+
function l(t) {
|
|
3774
|
+
return t === 47 ? (e.consume(t), o ? u : (o = !0, l)) : n(t);
|
|
3775
3775
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return t === null ||
|
|
3776
|
+
function u(t) {
|
|
3777
|
+
return t === null || x(t) || g(t) || i(t) || h(t) ? n(t) : e.attempt(Ii, e.attempt(Li, d), n)(t);
|
|
3778
3778
|
}
|
|
3779
|
-
function
|
|
3779
|
+
function d(n) {
|
|
3780
3780
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(n);
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
@@ -3791,41 +3791,41 @@ function Ki(e, t, n) {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
}
|
|
3793
3793
|
function qi(e, t, n) {
|
|
3794
|
-
let r,
|
|
3794
|
+
let r, a, o;
|
|
3795
3795
|
return s;
|
|
3796
3796
|
function s(t) {
|
|
3797
|
-
return t === 46 || t === 95 ? e.check(Ri,
|
|
3797
|
+
return t === 46 || t === 95 ? e.check(Ri, l, c)(t) : t === null || g(t) || i(t) || t !== 45 && h(t) ? l(t) : (o = !0, e.consume(t), s);
|
|
3798
3798
|
}
|
|
3799
|
-
function
|
|
3800
|
-
return t === 95 ? r = !0 : (
|
|
3799
|
+
function c(t) {
|
|
3800
|
+
return t === 95 ? r = !0 : (a = r, r = void 0), e.consume(t), s;
|
|
3801
3801
|
}
|
|
3802
|
-
function
|
|
3803
|
-
return
|
|
3802
|
+
function l(e) {
|
|
3803
|
+
return a || r || !o ? n(e) : t(e);
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
3806
|
function Ji(e, t) {
|
|
3807
3807
|
let n = 0, r = 0;
|
|
3808
|
-
return
|
|
3809
|
-
function
|
|
3810
|
-
return s === 40 ? (n++, e.consume(s),
|
|
3808
|
+
return a;
|
|
3809
|
+
function a(s) {
|
|
3810
|
+
return s === 40 ? (n++, e.consume(s), a) : s === 41 && r < n ? o(s) : s === 33 || s === 34 || s === 38 || s === 39 || s === 41 || s === 42 || s === 44 || s === 46 || s === 58 || s === 59 || s === 60 || s === 63 || s === 93 || s === 95 || s === 126 ? e.check(Ri, t, o)(s) : s === null || g(s) || i(s) ? t(s) : (e.consume(s), a);
|
|
3811
3811
|
}
|
|
3812
3812
|
function o(t) {
|
|
3813
|
-
return t === 41 && r++, e.consume(t),
|
|
3813
|
+
return t === 41 && r++, e.consume(t), a;
|
|
3814
3814
|
}
|
|
3815
3815
|
}
|
|
3816
3816
|
function Yi(e, t, n) {
|
|
3817
3817
|
return r;
|
|
3818
3818
|
function r(s) {
|
|
3819
|
-
return s === 33 || s === 34 || s === 39 || s === 41 || s === 42 || s === 44 || s === 46 || s === 58 || s === 59 || s === 63 || s === 95 || s === 126 ? (e.consume(s), r) : s === 38 ? (e.consume(s), o) : s === 93 ? (e.consume(s),
|
|
3819
|
+
return s === 33 || s === 34 || s === 39 || s === 41 || s === 42 || s === 44 || s === 46 || s === 58 || s === 59 || s === 63 || s === 95 || s === 126 ? (e.consume(s), r) : s === 38 ? (e.consume(s), o) : s === 93 ? (e.consume(s), a) : s === 60 || s === null || g(s) || i(s) ? t(s) : n(s);
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3822
|
-
return e === null || e === 40 || e === 91 ||
|
|
3821
|
+
function a(e) {
|
|
3822
|
+
return e === null || e === 40 || e === 91 || g(e) || i(e) ? t(e) : r(e);
|
|
3823
3823
|
}
|
|
3824
3824
|
function o(e) {
|
|
3825
|
-
return
|
|
3825
|
+
return S(e) ? s(e) : n(e);
|
|
3826
3826
|
}
|
|
3827
|
-
function
|
|
3828
|
-
return t === 59 ? (e.consume(t), r) :
|
|
3827
|
+
function s(t) {
|
|
3828
|
+
return t === 59 ? (e.consume(t), r) : S(t) ? (e.consume(t), s) : n(t);
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
3831
|
function Xi(e, t, n) {
|
|
@@ -3834,20 +3834,20 @@ function Xi(e, t, n) {
|
|
|
3834
3834
|
return e.consume(t), i;
|
|
3835
3835
|
}
|
|
3836
3836
|
function i(e) {
|
|
3837
|
-
return
|
|
3837
|
+
return c(e) ? n(e) : t(e);
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
3840
3840
|
function Zi(e) {
|
|
3841
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 ||
|
|
3841
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || g(e);
|
|
3842
3842
|
}
|
|
3843
3843
|
function Qi(e) {
|
|
3844
|
-
return !
|
|
3844
|
+
return !S(e);
|
|
3845
3845
|
}
|
|
3846
3846
|
function $i(e) {
|
|
3847
3847
|
return !(e === 47 || ea(e));
|
|
3848
3848
|
}
|
|
3849
3849
|
function ea(e) {
|
|
3850
|
-
return e === 43 || e === 45 || e === 46 || e === 95 ||
|
|
3850
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || c(e);
|
|
3851
3851
|
}
|
|
3852
3852
|
function ta(e) {
|
|
3853
3853
|
let t = e.length, n = !1;
|
|
@@ -3891,10 +3891,10 @@ function ra() {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
};
|
|
3893
3893
|
}
|
|
3894
|
-
function ia(e,
|
|
3895
|
-
let
|
|
3896
|
-
for (;
|
|
3897
|
-
let e =
|
|
3894
|
+
function ia(e, t, n) {
|
|
3895
|
+
let r = this, i = r.events.length, o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), s;
|
|
3896
|
+
for (; i--;) {
|
|
3897
|
+
let e = r.events[i][1];
|
|
3898
3898
|
if (e.type === "labelImage") {
|
|
3899
3899
|
s = e;
|
|
3900
3900
|
break;
|
|
@@ -3902,13 +3902,13 @@ function ia(e, n, r) {
|
|
|
3902
3902
|
if (e.type === "gfmFootnoteCall" || e.type === "labelLink" || e.type === "label" || e.type === "image" || e.type === "link") break;
|
|
3903
3903
|
}
|
|
3904
3904
|
return c;
|
|
3905
|
-
function c(
|
|
3906
|
-
if (!s || !s._balanced) return
|
|
3907
|
-
let c =
|
|
3905
|
+
function c(i) {
|
|
3906
|
+
if (!s || !s._balanced) return n(i);
|
|
3907
|
+
let c = a(r.sliceSerialize({
|
|
3908
3908
|
start: s.end,
|
|
3909
|
-
end:
|
|
3909
|
+
end: r.now()
|
|
3910
3910
|
}));
|
|
3911
|
-
return c.codePointAt(0) !== 94 || !o.includes(c.slice(1)) ?
|
|
3911
|
+
return c.codePointAt(0) !== 94 || !o.includes(c.slice(1)) ? n(i) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(i), e.exit("gfmFootnoteCallLabelMarker"), t(i));
|
|
3912
3912
|
}
|
|
3913
3913
|
}
|
|
3914
3914
|
function aa(e, t) {
|
|
@@ -3987,158 +3987,158 @@ function aa(e, t) {
|
|
|
3987
3987
|
];
|
|
3988
3988
|
return e.splice(n, e.length - n + 1, ...s), e;
|
|
3989
3989
|
}
|
|
3990
|
-
function oa(e,
|
|
3991
|
-
let
|
|
3992
|
-
return
|
|
3993
|
-
function
|
|
3994
|
-
return e.enter("gfmFootnoteCall"), e.enter("gfmFootnoteCallLabelMarker"), e.consume(t), e.exit("gfmFootnoteCallLabelMarker"),
|
|
3990
|
+
function oa(e, t, n) {
|
|
3991
|
+
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o = 0, s;
|
|
3992
|
+
return c;
|
|
3993
|
+
function c(t) {
|
|
3994
|
+
return e.enter("gfmFootnoteCall"), e.enter("gfmFootnoteCallLabelMarker"), e.consume(t), e.exit("gfmFootnoteCallLabelMarker"), l;
|
|
3995
3995
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string",
|
|
3996
|
+
function l(t) {
|
|
3997
|
+
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string", u) : n(t);
|
|
3998
3998
|
}
|
|
3999
|
-
function
|
|
4000
|
-
if (
|
|
4001
|
-
if (
|
|
3999
|
+
function u(c) {
|
|
4000
|
+
if (o > 999 || c === 93 && !s || c === null || c === 91 || g(c)) return n(c);
|
|
4001
|
+
if (c === 93) {
|
|
4002
4002
|
e.exit("chunkString");
|
|
4003
|
-
let
|
|
4004
|
-
return
|
|
4003
|
+
let o = e.exit("gfmFootnoteCallString");
|
|
4004
|
+
return i.includes(a(r.sliceSerialize(o))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(c);
|
|
4005
4005
|
}
|
|
4006
|
-
return
|
|
4006
|
+
return g(c) || (s = !0), o++, e.consume(c), c === 92 ? d : u;
|
|
4007
4007
|
}
|
|
4008
|
-
function
|
|
4009
|
-
return t === 91 || t === 92 || t === 93 ? (e.consume(t),
|
|
4008
|
+
function d(t) {
|
|
4009
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), o++, u) : u(t);
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
4012
|
-
function sa(e,
|
|
4013
|
-
let
|
|
4014
|
-
return
|
|
4015
|
-
function
|
|
4016
|
-
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"),
|
|
4012
|
+
function sa(e, t, n) {
|
|
4013
|
+
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o, s = 0, c;
|
|
4014
|
+
return l;
|
|
4015
|
+
function l(t) {
|
|
4016
|
+
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), u;
|
|
4017
4017
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string",
|
|
4018
|
+
function u(t) {
|
|
4019
|
+
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", d) : n(t);
|
|
4020
4020
|
}
|
|
4021
|
-
function
|
|
4022
|
-
if (
|
|
4023
|
-
if (
|
|
4021
|
+
function d(t) {
|
|
4022
|
+
if (s > 999 || t === 93 && !c || t === null || t === 91 || g(t)) return n(t);
|
|
4023
|
+
if (t === 93) {
|
|
4024
4024
|
e.exit("chunkString");
|
|
4025
|
-
let
|
|
4026
|
-
return
|
|
4025
|
+
let n = e.exit("gfmFootnoteDefinitionLabelString");
|
|
4026
|
+
return o = a(r.sliceSerialize(n)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
4027
4027
|
}
|
|
4028
|
-
return
|
|
4028
|
+
return g(t) || (c = !0), s++, e.consume(t), t === 92 ? f : d;
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return t === 91 || t === 92 || t === 93 ? (e.consume(t),
|
|
4030
|
+
function f(t) {
|
|
4031
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), s++, d) : d(t);
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"),
|
|
4033
|
+
function p(t) {
|
|
4034
|
+
return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), i.includes(o) || i.push(o), C(e, m, "gfmFootnoteDefinitionWhitespace")) : n(t);
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4037
|
-
return
|
|
4036
|
+
function m(e) {
|
|
4037
|
+
return t(e);
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
|
-
function ca(e, t,
|
|
4041
|
-
return e.check(
|
|
4040
|
+
function ca(e, t, n) {
|
|
4041
|
+
return e.check(p, t, e.attempt(na, t, n));
|
|
4042
4042
|
}
|
|
4043
4043
|
function la(e) {
|
|
4044
4044
|
e.exit("gfmFootnoteDefinition");
|
|
4045
4045
|
}
|
|
4046
4046
|
function ua(e, t, n) {
|
|
4047
|
-
let
|
|
4048
|
-
return
|
|
4049
|
-
function
|
|
4050
|
-
let
|
|
4051
|
-
return
|
|
4047
|
+
let r = this;
|
|
4048
|
+
return C(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
4049
|
+
function i(e) {
|
|
4050
|
+
let i = r.events[r.events.length - 1];
|
|
4051
|
+
return i && i[1].type === "gfmFootnoteDefinitionIndent" && i[2].sliceSerialize(i[1], !0).length === 4 ? t(e) : n(e);
|
|
4052
4052
|
}
|
|
4053
4053
|
}
|
|
4054
4054
|
// node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
4055
4055
|
function da(e) {
|
|
4056
|
-
let t = (e || {}).singleTilde,
|
|
4056
|
+
let t = (e || {}).singleTilde, r = {
|
|
4057
4057
|
name: "strikethrough",
|
|
4058
|
-
tokenize:
|
|
4059
|
-
resolveAll:
|
|
4058
|
+
tokenize: a,
|
|
4059
|
+
resolveAll: i
|
|
4060
4060
|
};
|
|
4061
4061
|
return t ??= !0, {
|
|
4062
|
-
text: { 126:
|
|
4063
|
-
insideSpan: { null: [
|
|
4062
|
+
text: { 126: r },
|
|
4063
|
+
insideSpan: { null: [r] },
|
|
4064
4064
|
attentionMarkers: { null: [126] }
|
|
4065
4065
|
};
|
|
4066
|
-
function
|
|
4067
|
-
let
|
|
4068
|
-
for (; ++
|
|
4069
|
-
let
|
|
4070
|
-
for (;
|
|
4071
|
-
e[
|
|
4072
|
-
let
|
|
4066
|
+
function i(e, t) {
|
|
4067
|
+
let r = -1;
|
|
4068
|
+
for (; ++r < e.length;) if (e[r][0] === "enter" && e[r][1].type === "strikethroughSequenceTemporary" && e[r][1]._close) {
|
|
4069
|
+
let i = r;
|
|
4070
|
+
for (; i--;) if (e[i][0] === "exit" && e[i][1].type === "strikethroughSequenceTemporary" && e[i][1]._open && e[r][1].end.offset - e[r][1].start.offset === e[i][1].end.offset - e[i][1].start.offset) {
|
|
4071
|
+
e[r][1].type = "strikethroughSequence", e[i][1].type = "strikethroughSequence";
|
|
4072
|
+
let a = {
|
|
4073
4073
|
type: "strikethrough",
|
|
4074
|
-
start: Object.assign({}, e[
|
|
4075
|
-
end: Object.assign({}, e[
|
|
4076
|
-
},
|
|
4074
|
+
start: Object.assign({}, e[i][1].start),
|
|
4075
|
+
end: Object.assign({}, e[r][1].end)
|
|
4076
|
+
}, o = {
|
|
4077
4077
|
type: "strikethroughText",
|
|
4078
|
-
start: Object.assign({}, e[
|
|
4079
|
-
end: Object.assign({}, e[
|
|
4080
|
-
},
|
|
4078
|
+
start: Object.assign({}, e[i][1].end),
|
|
4079
|
+
end: Object.assign({}, e[r][1].start)
|
|
4080
|
+
}, s = [
|
|
4081
4081
|
[
|
|
4082
4082
|
"enter",
|
|
4083
|
-
|
|
4083
|
+
a,
|
|
4084
4084
|
t
|
|
4085
4085
|
],
|
|
4086
4086
|
[
|
|
4087
4087
|
"enter",
|
|
4088
|
-
e[
|
|
4088
|
+
e[i][1],
|
|
4089
4089
|
t
|
|
4090
4090
|
],
|
|
4091
4091
|
[
|
|
4092
4092
|
"exit",
|
|
4093
|
-
e[
|
|
4093
|
+
e[i][1],
|
|
4094
4094
|
t
|
|
4095
4095
|
],
|
|
4096
4096
|
[
|
|
4097
4097
|
"enter",
|
|
4098
|
-
|
|
4098
|
+
o,
|
|
4099
4099
|
t
|
|
4100
4100
|
]
|
|
4101
|
-
],
|
|
4102
|
-
|
|
4101
|
+
], c = t.parser.constructs.insideSpan.null;
|
|
4102
|
+
c && n(s, s.length, 0, l(c, e.slice(i + 1, r), t)), n(s, s.length, 0, [
|
|
4103
4103
|
[
|
|
4104
4104
|
"exit",
|
|
4105
|
-
|
|
4105
|
+
o,
|
|
4106
4106
|
t
|
|
4107
4107
|
],
|
|
4108
4108
|
[
|
|
4109
4109
|
"enter",
|
|
4110
|
-
e[
|
|
4110
|
+
e[r][1],
|
|
4111
4111
|
t
|
|
4112
4112
|
],
|
|
4113
4113
|
[
|
|
4114
4114
|
"exit",
|
|
4115
|
-
e[
|
|
4115
|
+
e[r][1],
|
|
4116
4116
|
t
|
|
4117
4117
|
],
|
|
4118
4118
|
[
|
|
4119
4119
|
"exit",
|
|
4120
|
-
|
|
4120
|
+
a,
|
|
4121
4121
|
t
|
|
4122
4122
|
]
|
|
4123
|
-
]),
|
|
4123
|
+
]), n(e, i - 1, r - i + 3, s), r = i + s.length - 2;
|
|
4124
4124
|
break;
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
|
-
for (
|
|
4127
|
+
for (r = -1; ++r < e.length;) e[r][1].type === "strikethroughSequenceTemporary" && (e[r][1].type = "data");
|
|
4128
4128
|
return e;
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4130
|
+
function a(e, n, r) {
|
|
4131
4131
|
let i = this.previous, a = this.events, o = 0;
|
|
4132
4132
|
return s;
|
|
4133
4133
|
function s(t) {
|
|
4134
4134
|
return i === 126 && a[a.length - 1][1].type !== "characterEscape" ? r(t) : (e.enter("strikethroughSequenceTemporary"), c(t));
|
|
4135
4135
|
}
|
|
4136
4136
|
function c(a) {
|
|
4137
|
-
let s =
|
|
4137
|
+
let s = b(i);
|
|
4138
4138
|
if (a === 126) return o > 1 ? r(a) : (e.consume(a), o++, c);
|
|
4139
4139
|
if (o < 2 && !t) return r(a);
|
|
4140
|
-
let l = e.exit("strikethroughSequenceTemporary"),
|
|
4141
|
-
return l._open = !
|
|
4140
|
+
let l = e.exit("strikethroughSequenceTemporary"), u = b(a);
|
|
4141
|
+
return l._open = !u || u === 2 && !!s, l._close = !s || s === 2 && !!u, n(a);
|
|
4142
4142
|
}
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
@@ -4207,69 +4207,69 @@ function ha() {
|
|
|
4207
4207
|
resolveAll: _a
|
|
4208
4208
|
} } };
|
|
4209
4209
|
}
|
|
4210
|
-
function ga(e,
|
|
4211
|
-
let
|
|
4212
|
-
return
|
|
4213
|
-
function
|
|
4214
|
-
let t =
|
|
4210
|
+
function ga(e, n, r) {
|
|
4211
|
+
let i = this, a = 0, s = 0, c;
|
|
4212
|
+
return l;
|
|
4213
|
+
function l(e) {
|
|
4214
|
+
let t = i.events.length - 1;
|
|
4215
4215
|
for (; t > -1;) {
|
|
4216
|
-
let { type: e } =
|
|
4216
|
+
let { type: e } = i.events[t][1];
|
|
4217
4217
|
if (e === "lineEnding" || e === "linePrefix") t--;
|
|
4218
4218
|
else break;
|
|
4219
4219
|
}
|
|
4220
|
-
let
|
|
4221
|
-
return
|
|
4220
|
+
let n = t > -1 ? i.events[t][1].type : null, a = n === "tableHead" || n === "tableRow" ? E : u;
|
|
4221
|
+
return a === E && i.parser.lazy[i.now().line] ? r(e) : a(e);
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4224
|
-
return e.enter("tableHead"), e.enter("tableRow"),
|
|
4223
|
+
function u(t) {
|
|
4224
|
+
return e.enter("tableHead"), e.enter("tableRow"), d(t);
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4227
|
-
return e === 124 || (
|
|
4226
|
+
function d(e) {
|
|
4227
|
+
return e === 124 || (c = !0, s += 1), f(e);
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4230
|
-
return
|
|
4229
|
+
function f(n) {
|
|
4230
|
+
return n === null ? r(n) : o(n) ? s > 1 ? (s = 0, i.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), h) : r(n) : t(n) ? C(e, f, "whitespace")(n) : (s += 1, c && (c = !1, a += 1), n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"), c = !0, f) : (e.enter("data"), p(n)));
|
|
4231
|
+
}
|
|
4232
|
+
function p(t) {
|
|
4233
|
+
return t === null || t === 124 || g(t) ? (e.exit("data"), f(t)) : (e.consume(t), t === 92 ? m : p);
|
|
4231
4234
|
}
|
|
4232
|
-
function
|
|
4233
|
-
return t ===
|
|
4235
|
+
function m(t) {
|
|
4236
|
+
return t === 92 || t === 124 ? (e.consume(t), p) : p(t);
|
|
4234
4237
|
}
|
|
4235
|
-
function
|
|
4236
|
-
return
|
|
4238
|
+
function h(n) {
|
|
4239
|
+
return i.interrupt = !1, i.parser.lazy[i.now().line] ? r(n) : (e.enter("tableDelimiterRow"), c = !1, t(n) ? C(e, _, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(n) : _(n));
|
|
4237
4240
|
}
|
|
4238
4241
|
function _(t) {
|
|
4239
|
-
return
|
|
4242
|
+
return t === 45 || t === 58 ? y(t) : t === 124 ? (c = !0, e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), v) : T(t);
|
|
4240
4243
|
}
|
|
4241
|
-
function v(
|
|
4242
|
-
return t
|
|
4244
|
+
function v(n) {
|
|
4245
|
+
return t(n) ? C(e, y, "whitespace")(n) : y(n);
|
|
4243
4246
|
}
|
|
4244
4247
|
function y(t) {
|
|
4245
|
-
return
|
|
4248
|
+
return t === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), b) : t === 45 ? (s += 1, b(t)) : t === null || o(t) ? w(t) : T(t);
|
|
4246
4249
|
}
|
|
4247
4250
|
function b(t) {
|
|
4248
|
-
return t ===
|
|
4251
|
+
return t === 45 ? (e.enter("tableDelimiterFiller"), x(t)) : T(t);
|
|
4249
4252
|
}
|
|
4250
4253
|
function x(t) {
|
|
4251
|
-
return t === 45 ? (e.
|
|
4252
|
-
}
|
|
4253
|
-
function S(t) {
|
|
4254
|
-
return t === 45 ? (e.consume(t), S) : t === 58 ? (u = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), C) : (e.exit("tableDelimiterFiller"), C(t));
|
|
4254
|
+
return t === 45 ? (e.consume(t), x) : t === 58 ? (c = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), S) : (e.exit("tableDelimiterFiller"), S(t));
|
|
4255
4255
|
}
|
|
4256
|
-
function
|
|
4257
|
-
return
|
|
4256
|
+
function S(n) {
|
|
4257
|
+
return t(n) ? C(e, w, "whitespace")(n) : w(n);
|
|
4258
4258
|
}
|
|
4259
|
-
function w(
|
|
4260
|
-
return
|
|
4259
|
+
function w(t) {
|
|
4260
|
+
return t === 124 ? _(t) : t === null || o(t) ? !c || a !== s ? T(t) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(t)) : T(t);
|
|
4261
4261
|
}
|
|
4262
4262
|
function T(e) {
|
|
4263
|
-
return
|
|
4263
|
+
return r(e);
|
|
4264
4264
|
}
|
|
4265
4265
|
function E(t) {
|
|
4266
4266
|
return e.enter("tableRow"), D(t);
|
|
4267
4267
|
}
|
|
4268
|
-
function D(
|
|
4269
|
-
return
|
|
4268
|
+
function D(r) {
|
|
4269
|
+
return r === 124 ? (e.enter("tableCellDivider"), e.consume(r), e.exit("tableCellDivider"), D) : r === null || o(r) ? (e.exit("tableRow"), n(r)) : t(r) ? C(e, D, "whitespace")(r) : (e.enter("data"), O(r));
|
|
4270
4270
|
}
|
|
4271
4271
|
function O(t) {
|
|
4272
|
-
return t === null || t === 124 ||
|
|
4272
|
+
return t === null || t === 124 || g(t) ? (e.exit("data"), D(t)) : (e.consume(t), t === 92 ? k : O);
|
|
4273
4273
|
}
|
|
4274
4274
|
function k(t) {
|
|
4275
4275
|
return t === 92 || t === 124 ? (e.consume(t), O) : O(t);
|
|
@@ -4402,31 +4402,31 @@ var xa = {
|
|
|
4402
4402
|
function Sa() {
|
|
4403
4403
|
return { text: { 91: xa } };
|
|
4404
4404
|
}
|
|
4405
|
-
function Ca(e,
|
|
4406
|
-
let
|
|
4407
|
-
return
|
|
4405
|
+
function Ca(e, n, r) {
|
|
4406
|
+
let i = this;
|
|
4407
|
+
return a;
|
|
4408
|
+
function a(t) {
|
|
4409
|
+
return i.previous !== null || !i._gfmTasklistFirstContentOfListItem ? r(t) : (e.enter("taskListCheck"), e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), s);
|
|
4410
|
+
}
|
|
4408
4411
|
function s(t) {
|
|
4409
|
-
return
|
|
4412
|
+
return g(t) ? (e.enter("taskListCheckValueUnchecked"), e.consume(t), e.exit("taskListCheckValueUnchecked"), c) : t === 88 || t === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(t), e.exit("taskListCheckValueChecked"), c) : r(t);
|
|
4410
4413
|
}
|
|
4411
4414
|
function c(t) {
|
|
4412
|
-
return
|
|
4413
|
-
}
|
|
4414
|
-
function l(t) {
|
|
4415
|
-
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), u) : n(t);
|
|
4415
|
+
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), l) : r(t);
|
|
4416
4416
|
}
|
|
4417
|
-
function
|
|
4418
|
-
return i
|
|
4417
|
+
function l(i) {
|
|
4418
|
+
return o(i) ? n(i) : t(i) ? e.check({ tokenize: wa }, n, r)(i) : r(i);
|
|
4419
4419
|
}
|
|
4420
4420
|
}
|
|
4421
4421
|
function wa(e, t, n) {
|
|
4422
|
-
return
|
|
4423
|
-
function
|
|
4422
|
+
return C(e, r, "whitespace");
|
|
4423
|
+
function r(e) {
|
|
4424
4424
|
return e === null ? n(e) : t(e);
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
// node_modules/micromark-extension-gfm/index.js
|
|
4428
4428
|
function Ta(e) {
|
|
4429
|
-
return
|
|
4429
|
+
return s([
|
|
4430
4430
|
Hi(),
|
|
4431
4431
|
ra(),
|
|
4432
4432
|
da(e),
|
|
@@ -4496,7 +4496,7 @@ function Fa(t, n, r, i, a) {
|
|
|
4496
4496
|
if (t.slice(d, a).includes("{{")) return null;
|
|
4497
4497
|
if (n < 0 || n >= r) break;
|
|
4498
4498
|
if (d = n, t.startsWith("<!--", d)) {
|
|
4499
|
-
d =
|
|
4499
|
+
d = f(t, d, r);
|
|
4500
4500
|
continue;
|
|
4501
4501
|
}
|
|
4502
4502
|
let o = /^<(\/?)([A-Za-z][A-Za-z0-9:-]*)/.exec(t.slice(d, Math.min(r, d + 80)));
|
|
@@ -4504,50 +4504,50 @@ function Fa(t, n, r, i, a) {
|
|
|
4504
4504
|
d += 1;
|
|
4505
4505
|
continue;
|
|
4506
4506
|
}
|
|
4507
|
-
let
|
|
4508
|
-
if (!(
|
|
4509
|
-
d =
|
|
4507
|
+
let p = d + o[0].length, m = t[p];
|
|
4508
|
+
if (!(m === ">" || m === "/" || m !== void 0 && /\s/.test(m))) {
|
|
4509
|
+
d = p;
|
|
4510
4510
|
continue;
|
|
4511
4511
|
}
|
|
4512
|
-
let
|
|
4513
|
-
if (
|
|
4514
|
-
let
|
|
4515
|
-
name:
|
|
4516
|
-
closing:
|
|
4517
|
-
self: !
|
|
4512
|
+
let h = o[2].toLowerCase(), g = o[1] === "/", _ = v(t, p, r);
|
|
4513
|
+
if (_ < 0) return null;
|
|
4514
|
+
let b = {
|
|
4515
|
+
name: h,
|
|
4516
|
+
closing: g,
|
|
4517
|
+
self: !g && /\/\s*$/.test(t.slice(p, _ - 1)),
|
|
4518
4518
|
start: d,
|
|
4519
|
-
end:
|
|
4519
|
+
end: _
|
|
4520
4520
|
};
|
|
4521
|
-
if (i.has(
|
|
4522
|
-
if (
|
|
4523
|
-
if (
|
|
4521
|
+
if (i.has(h)) return null;
|
|
4522
|
+
if (g) {
|
|
4523
|
+
if (h !== "table" && !e.has(h) && !w.has(h) || h !== "table" && e.has(h) && !s && !c.some((e) => e.name === "table")) return null;
|
|
4524
4524
|
let t = -1;
|
|
4525
|
-
for (let e = c.length - 1; e >= 0; --e) if (c[e].name ===
|
|
4525
|
+
for (let e = c.length - 1; e >= 0; --e) if (c[e].name === h) {
|
|
4526
4526
|
t = e;
|
|
4527
4527
|
break;
|
|
4528
4528
|
}
|
|
4529
|
-
t >= 0 ? c.length = t : l ??=
|
|
4529
|
+
t >= 0 ? c.length = t : l ??= b, d = b.end;
|
|
4530
4530
|
} else {
|
|
4531
|
-
if (
|
|
4532
|
-
else if (e.has(
|
|
4531
|
+
if (h === "table") u = !0;
|
|
4532
|
+
else if (e.has(h)) {
|
|
4533
4533
|
if (!s && !c.some((e) => e.name === "table")) return null;
|
|
4534
|
-
} else if (!w.has(
|
|
4535
|
-
if (ja.has(
|
|
4536
|
-
if (!
|
|
4537
|
-
if (
|
|
4538
|
-
let e = RegExp(`</${
|
|
4539
|
-
e.lastIndex =
|
|
4534
|
+
} else if (!w.has(h)) return null;
|
|
4535
|
+
if (ja.has(h)) return null;
|
|
4536
|
+
if (!y.has(h) && !b.self) {
|
|
4537
|
+
if (h === "code" || h === "pre") {
|
|
4538
|
+
let e = RegExp(`</${h}\\s*>`, "gi");
|
|
4539
|
+
e.lastIndex = b.end;
|
|
4540
4540
|
let n = e.exec(t);
|
|
4541
4541
|
if (n && n.index < r) {
|
|
4542
4542
|
d = n.index + n[0].length;
|
|
4543
4543
|
continue;
|
|
4544
4544
|
}
|
|
4545
|
-
c.push(
|
|
4545
|
+
c.push(b), d = r;
|
|
4546
4546
|
continue;
|
|
4547
4547
|
}
|
|
4548
|
-
c.push(
|
|
4548
|
+
c.push(b);
|
|
4549
4549
|
}
|
|
4550
|
-
d =
|
|
4550
|
+
d = b.end;
|
|
4551
4551
|
}
|
|
4552
4552
|
}
|
|
4553
4553
|
return c.length > 0 ? {
|
|
@@ -4567,13 +4567,13 @@ function Ia(e, t) {
|
|
|
4567
4567
|
for (let r of t.attrs) {
|
|
4568
4568
|
if (r.prefix || r.namespace || r.value.includes("{{")) return null;
|
|
4569
4569
|
let t = r.name.toLowerCase();
|
|
4570
|
-
if (!
|
|
4570
|
+
if (!_(e, t)) return null;
|
|
4571
4571
|
if (t === "align" && T.has(e)) {
|
|
4572
|
-
let t =
|
|
4572
|
+
let t = d(e, r.value);
|
|
4573
4573
|
if (!t) return null;
|
|
4574
4574
|
n.align = t;
|
|
4575
4575
|
} else {
|
|
4576
|
-
if (!
|
|
4576
|
+
if (!m(t, r.value)) return null;
|
|
4577
4577
|
n[t] = r.value;
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
@@ -4583,21 +4583,21 @@ function La(t, n, r, i, a, o) {
|
|
|
4583
4583
|
if (!Number.isInteger(n) || !Number.isInteger(r) || n < 0 || r > t.length || r <= n) return null;
|
|
4584
4584
|
let s = Fa(t, n, r, a, o);
|
|
4585
4585
|
if (s === null) return null;
|
|
4586
|
-
let c = r - n, l = (e) => Math.max(0, Math.min(c, e)),
|
|
4587
|
-
s.strayClose &&
|
|
4586
|
+
let c = r - n, l = (e) => Math.max(0, Math.min(c, e)), d = (e) => n + l(e), f = [], p = [];
|
|
4587
|
+
s.strayClose && f.push({
|
|
4588
4588
|
start: s.strayClose.start,
|
|
4589
4589
|
end: s.strayClose.end
|
|
4590
|
-
}), s.unclosed &&
|
|
4590
|
+
}), s.unclosed && f.push({
|
|
4591
4591
|
start: s.unclosed.start,
|
|
4592
4592
|
end: s.unclosed.end
|
|
4593
4593
|
});
|
|
4594
|
-
let
|
|
4594
|
+
let m = s.tableMode, h = {
|
|
4595
4595
|
scriptingEnabled: !1,
|
|
4596
4596
|
sourceCodeLocationInfo: !0
|
|
4597
|
-
},
|
|
4598
|
-
function
|
|
4597
|
+
}, g = t.slice(n, r), _ = s.contextTag === null ? D(g, h) : D(E.createElement(s.contextTag, Aa, []), g, h);
|
|
4598
|
+
function v(e) {
|
|
4599
4599
|
if (!Number.isInteger(e.startOffset) || !Number.isInteger(e.endOffset)) return null;
|
|
4600
|
-
let t =
|
|
4600
|
+
let t = d(e.startOffset), n = d(e.endOffset);
|
|
4601
4601
|
return n < t ? null : {
|
|
4602
4602
|
start: t,
|
|
4603
4603
|
end: n
|
|
@@ -4622,7 +4622,7 @@ function La(t, n, r, i, a, o) {
|
|
|
4622
4622
|
e.synthetic = !0, e.syntheticBoundary = {
|
|
4623
4623
|
start: t.start,
|
|
4624
4624
|
end: t.end
|
|
4625
|
-
},
|
|
4625
|
+
}, p.push({
|
|
4626
4626
|
start: t.start,
|
|
4627
4627
|
end: t.end
|
|
4628
4628
|
});
|
|
@@ -4660,13 +4660,13 @@ function La(t, n, r, i, a, o) {
|
|
|
4660
4660
|
if (E.isTextNode(e)) {
|
|
4661
4661
|
let t = e.sourceCodeLocation;
|
|
4662
4662
|
if (!t) return null;
|
|
4663
|
-
let n =
|
|
4663
|
+
let n = v(t);
|
|
4664
4664
|
return n === null ? null : n.start === n.end ? void 0 : e.value.includes("{{") ? null : i("text", n.start, n.end, { value: e.value.replace(/\u0000/g, "�") });
|
|
4665
4665
|
}
|
|
4666
4666
|
if (E.isCommentNode(e)) {
|
|
4667
4667
|
let t = e.sourceCodeLocation;
|
|
4668
4668
|
if (!t) return null;
|
|
4669
|
-
let n =
|
|
4669
|
+
let n = v(t);
|
|
4670
4670
|
return n === null ? null : i("comment", n.start, n.end);
|
|
4671
4671
|
}
|
|
4672
4672
|
return E.isElementNode(e) ? ee(e, t, n) : null;
|
|
@@ -4683,17 +4683,17 @@ function La(t, n, r, i, a, o) {
|
|
|
4683
4683
|
let n = t.start === void 0 ? void 0 : Number(t.start);
|
|
4684
4684
|
return e === "ol" && n !== void 0 && Number.isFinite(n) && (r.start = n), r;
|
|
4685
4685
|
}
|
|
4686
|
-
return r.type = e === "p" ? "paragraph" : e === "div" ? "div" : e === "blockquote" ? "blockquote" : e === "details" ? "details" : e === "li" ? "listItem" :
|
|
4686
|
+
return r.type = e === "p" ? "paragraph" : e === "div" ? "div" : e === "blockquote" ? "blockquote" : e === "details" ? "details" : e === "li" ? "listItem" : u[e] ?? e, r;
|
|
4687
4687
|
}
|
|
4688
4688
|
function ee(n, r, a) {
|
|
4689
4689
|
if (r > Pa || n.namespaceURI !== Aa) return null;
|
|
4690
4690
|
let o = n.tagName.toLowerCase();
|
|
4691
|
-
if (ja.has(o) || !w.has(o) && !(
|
|
4691
|
+
if (ja.has(o) || !w.has(o) && !(m && e.has(o))) return null;
|
|
4692
4692
|
let s = n.sourceCodeLocation, c = !s, l = Ia(o, n);
|
|
4693
4693
|
if (l === null) return null;
|
|
4694
4694
|
if (o === "br" || o === "hr" || o === "img") {
|
|
4695
4695
|
if (!s) return null;
|
|
4696
|
-
let e =
|
|
4696
|
+
let e = v(s);
|
|
4697
4697
|
if (e === null) return null;
|
|
4698
4698
|
if (o === "br") return i("break", e.start, e.end, { attrs: l });
|
|
4699
4699
|
if (o === "hr") return i("thematicBreak", e.start, e.end, { attrs: l });
|
|
@@ -4709,14 +4709,14 @@ function La(t, n, r, i, a, o) {
|
|
|
4709
4709
|
}
|
|
4710
4710
|
if (o === "code" || o === "pre") {
|
|
4711
4711
|
if (!s || !s.startTag) return null;
|
|
4712
|
-
let e =
|
|
4712
|
+
let e = v(s);
|
|
4713
4713
|
if (e === null) return null;
|
|
4714
|
-
let n =
|
|
4714
|
+
let n = d(s.startTag.endOffset), r = s.endTag ? d(s.endTag.startOffset) : d(s.endOffset);
|
|
4715
4715
|
if (r < n) return null;
|
|
4716
4716
|
let a = t.slice(n, r);
|
|
4717
|
-
if (s.endTag === void 0 &&
|
|
4718
|
-
start:
|
|
4719
|
-
end:
|
|
4717
|
+
if (s.endTag === void 0 && f.push({
|
|
4718
|
+
start: d(s.startTag.startOffset),
|
|
4719
|
+
end: d(s.startTag.endOffset)
|
|
4720
4720
|
}), o === "pre") {
|
|
4721
4721
|
let t = /^<code(?:\s[^>]*)?>([\s\S]*)<\/code>$/.exec(a);
|
|
4722
4722
|
return i("code", e.start, e.end, {
|
|
@@ -4730,19 +4730,19 @@ function La(t, n, r, i, a, o) {
|
|
|
4730
4730
|
});
|
|
4731
4731
|
}
|
|
4732
4732
|
if (e.has(o)) return ne(n, o, l, r, a, s);
|
|
4733
|
-
let
|
|
4734
|
-
if (
|
|
4735
|
-
let
|
|
4736
|
-
if (c) h = x(
|
|
4733
|
+
let u = T(n, o, r, a);
|
|
4734
|
+
if (u === null) return null;
|
|
4735
|
+
let p = k(o, l, u), h;
|
|
4736
|
+
if (c) h = x(u, a), S(p, h);
|
|
4737
4737
|
else {
|
|
4738
|
-
let e =
|
|
4738
|
+
let e = v(s);
|
|
4739
4739
|
if (e === null) return null;
|
|
4740
|
-
h = e, !s?.endTag && s?.startTag &&
|
|
4741
|
-
start:
|
|
4742
|
-
end:
|
|
4740
|
+
h = e, !s?.endTag && s?.startTag && f.push({
|
|
4741
|
+
start: d(s.startTag.startOffset),
|
|
4742
|
+
end: d(s.startTag.endOffset)
|
|
4743
4743
|
});
|
|
4744
4744
|
}
|
|
4745
|
-
return i(
|
|
4745
|
+
return i(p.type ?? o, h.start, h.end, p);
|
|
4746
4746
|
}
|
|
4747
4747
|
function te(e, t, n, r) {
|
|
4748
4748
|
let i = Na[t];
|
|
@@ -4769,7 +4769,7 @@ function La(t, n, r, i, a, o) {
|
|
|
4769
4769
|
if (r > Pa) return null;
|
|
4770
4770
|
let s = !o, c;
|
|
4771
4771
|
if (c = t === "td" || t === "th" || t === "caption" ? T(e, t, r, a) : te(e, t, r, a), c === null) return null;
|
|
4772
|
-
let l,
|
|
4772
|
+
let l, u = t === "table" ? {
|
|
4773
4773
|
attrs: n,
|
|
4774
4774
|
children: c
|
|
4775
4775
|
} : {
|
|
@@ -4777,19 +4777,19 @@ function La(t, n, r, i, a, o) {
|
|
|
4777
4777
|
children: c,
|
|
4778
4778
|
name: t
|
|
4779
4779
|
};
|
|
4780
|
-
if (s) l = x(c, a), S(
|
|
4780
|
+
if (s) l = x(c, a), S(u, l);
|
|
4781
4781
|
else {
|
|
4782
|
-
let e =
|
|
4782
|
+
let e = v(o);
|
|
4783
4783
|
if (e === null) return null;
|
|
4784
|
-
l = e, !o?.endTag && !
|
|
4785
|
-
start:
|
|
4786
|
-
end:
|
|
4784
|
+
l = e, !o?.endTag && !y.has(t) && o?.startTag && f.push({
|
|
4785
|
+
start: d(o.startTag.startOffset),
|
|
4786
|
+
end: d(o.startTag.endOffset)
|
|
4787
4787
|
});
|
|
4788
4788
|
}
|
|
4789
|
-
return i(t === "table" ? "htmlTable" : "htmlTableElement", l.start, l.end,
|
|
4789
|
+
return i(t === "table" ? "htmlTable" : "htmlTableElement", l.start, l.end, u);
|
|
4790
4790
|
}
|
|
4791
4791
|
let re = [], ie = -Infinity;
|
|
4792
|
-
for (let e of
|
|
4792
|
+
for (let e of _.childNodes) {
|
|
4793
4793
|
let t = O(e, 0, n);
|
|
4794
4794
|
if (t === null) return null;
|
|
4795
4795
|
if (t !== void 0) {
|
|
@@ -4798,8 +4798,8 @@ function La(t, n, r, i, a, o) {
|
|
|
4798
4798
|
}
|
|
4799
4799
|
}
|
|
4800
4800
|
if (re.length === 0 || !re.some((e) => !(e.type === "comment" || e.type === "text" && !(e.value ?? "").trim()))) return null;
|
|
4801
|
-
|
|
4802
|
-
let ae =
|
|
4801
|
+
f.sort((e, t) => e.start - t.start || e.end - t.end), p.sort((e, t) => e.start - t.start || e.end - t.end);
|
|
4802
|
+
let ae = f[0] ?? p[0], oe = ae === void 0 ? n : Math.max(n, Math.min(r, ae.start));
|
|
4803
4803
|
return {
|
|
4804
4804
|
nodes: re,
|
|
4805
4805
|
recovery: {
|