reactive-md 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-ch.md +333 -319
- package/CHANGELOG.md +334 -320
- 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/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 +323 -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-sthUP0ct.js → LocalDocumentView-BuqgJZEY.js} +11 -11
- package/dist-library/{LocalDocumentViewCore-GiWV3bey.js → LocalDocumentViewCore-DXE0I0Qc.js} +210 -209
- package/dist-library/{LocalReactiveDocumentCore-ZjQSGyHE.js → LocalReactiveDocumentCore-CWBe4Mm5.js} +8 -8
- package/dist-library/{authoring-Dsune4Hy.js → authoring-Ci_KzJ0q.js} +53 -53
- package/dist-library/{compile-wUv8KEge.js → compile-Dx6Uw3D9.js} +11 -11
- package/dist-library/{compiler-core-As_m-MNm.js → compiler-core-DDDdvuLy.js} +883 -818
- package/dist-library/compiler-dxLPB9Ym.js +86 -0
- package/dist-library/{component-state-C52ZFJGl.js → component-state-BRwvTV0d.js} +15 -14
- package/dist-library/component-state-CwKX_SN5.js +763 -0
- package/dist-library/{config-BadfhjdP.js → config-DXLvctiZ.js} +68 -66
- package/dist-library/config-validation-D3D7Dy2J.js +586 -0
- package/dist-library/{controls-CcT6n7k_.js → controls-DoZyLCrV.js} +3 -3
- package/dist-library/{coordinate-CWS9p5q_.js → coordinate-B1VFK9fd.js} +2 -2
- package/dist-library/{data-table-Bgccxd7h.js → data-table-8-3F15Jf.js} +3 -3
- package/dist-library/{default-components-BwQf0oP-.js → default-components-s21NevON.js} +29 -28
- package/dist-library/{display-B-VhqVND.js → display-B_uutKkN.js} +1 -1
- package/dist-library/{config-validation-F47AcE6o.js → document-theme-C8J6UyNO.js} +193 -731
- package/dist-library/{export-BqVmTXm8.js → export-CIAIPBov.js} +35 -34
- package/dist-library/{gallery-CY6mTx8i.js → gallery-Dv1rOvL0.js} +1 -1
- package/dist-library/{html-CNT4KD-2.js → html-Cr4CBwAH.js} +42 -41
- package/dist-library/identity-BUx0Q_-d.js +40 -0
- package/dist-library/{incremental-Dv0FSp_U.js → incremental-9nx92u9c.js} +12 -10
- package/dist-library/{layout-C0YlEPGr.js → layout-BBB2VF0S.js} +1 -1
- package/dist-library/{mount-preset-KxvtKgJb.js → mount-preset-DMZ5wd3t.js} +3 -3
- package/dist-library/observability-4KqXhIEU.js +421 -0
- package/dist-library/observability-core-Bcu7vpnl.js +24 -0
- package/dist-library/{options-1aDLK7JY.js → options-BBp9IcHm.js} +4 -4
- package/dist-library/{package-core-WFK1RhAZ.js → package-core-K5xesGqy.js} +30 -29
- package/dist-library/{parser-standard-Yuf3A_VI.js → parser-standard-CBA1-hdG.js} +352 -352
- package/dist-library/{plugin-packs-B1XPWcFs.js → plugin-packs-Bh1HhLym.js} +3 -2
- package/dist-library/preset-core-DeZPA8IE.js +1298 -0
- package/dist-library/react-0DCh-Mar.js +7 -0
- package/dist-library/reactive-md-authoring.js +19 -19
- package/dist-library/reactive-md-build.js +48 -10
- package/dist-library/reactive-md-compiler-standard.js +6 -6
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-default-packs.js +3 -2
- package/dist-library/reactive-md-default-preset.js +3 -2
- package/dist-library/reactive-md-export.js +4 -4
- package/dist-library/reactive-md-minimal-preset.js +2 -2
- package/dist-library/reactive-md-minimal-react-preset.js +3 -3
- package/dist-library/reactive-md-observability.js +4 -0
- package/dist-library/reactive-md-plugin-chart.js +3 -3
- package/dist-library/reactive-md-plugin-data.js +5 -5
- package/dist-library/reactive-md-plugin-diagram.js +4 -4
- package/dist-library/reactive-md-plugin-forms.js +4 -4
- package/dist-library/reactive-md-plugin-gallery.js +3 -3
- package/dist-library/reactive-md-plugin-navigation.js +3 -3
- package/dist-library/reactive-md-plugin-network.js +4 -3
- package/dist-library/reactive-md-plugin-plot.js +4 -4
- package/dist-library/reactive-md-print.css +304 -304
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-server.js +6 -6
- package/dist-library/reactive-md-react-unstyled.js +11 -11
- package/dist-library/reactive-md-react.js +11 -11
- package/dist-library/reactive-md-runtime-browser.js +2 -1
- package/dist-library/reactive-md-runtime.js +4 -3
- package/dist-library/reactive-md-sdk.js +8 -7
- 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 +5 -5
- package/dist-library/reactive-md.js +556 -367
- package/dist-library/{registry-B9NGct4d.js → registry-D6OGkOcX.js} +3 -3
- package/dist-library/{registry-core-Bbad9Bm2.js → registry-core-C9xOunaw.js} +1 -1
- package/dist-library/{resources-D2GDQS0p.js → resources-B0x_w3s9.js} +71 -46
- package/dist-library/{runtime-B2fxeveq.js → runtime-BDnnimPA.js} +17 -16
- package/dist-library/{runtime-kcA7bG7G.js → runtime-BpQdZmFI.js} +311 -305
- package/dist-library/{schema-BufhKUSM.js → schema-BryM_VRW.js} +14 -14
- package/dist-library/{sdk-core-BoJT1SIt.js → sdk-core-ChslheKs.js} +33 -32
- package/dist-library/{session-core-nmJHuR9c.js → session-core-dxQCJBNa.js} +15 -14
- package/dist-library/{shareable-DpbE-59H.js → shareable-B8xMoGEa.js} +179 -176
- package/dist-library/types/build/diagnostics.d.ts +1 -1
- package/dist-library/types/local/index.d.ts +6 -0
- package/dist-library/types/local/observability-codes.d.ts +2 -0
- package/dist-library/types/local/observability-core.d.ts +25 -0
- package/dist-library/types/local/observability-messages.d.ts +6 -0
- package/dist-library/types/local/observability.d.ts +43 -0
- package/dist-library/types/local/parsing/parser-internals.d.ts +2 -1
- package/dist-library/types/local/transport/worker.d.ts +52 -1
- package/dist-library/types/local/types.d.ts +8 -0
- package/dist-library/types/observability.d.ts +7 -0
- package/dist-library/{types-BeNtPqdY.js → types-Ib5kSScP.js} +1 -1
- package/dist-library/types-daDo2c_w.js +3 -0
- package/dist-library/{validation-BEBA_HvS.js → validation-B3RI0xOk.js} +251 -249
- package/dist-library/version-DAxuGOG2.js +147 -0
- package/dist-library/{visual-frame-CyV1FXzs.js → visual-frame-_rcd5HUv.js} +1 -1
- package/dist-library/{visuals-BZbZYA7w.js → visuals-DkDhNdEZ.js} +17 -17
- package/dist-standalone/reactive-md-standalone.js +118 -118
- package/docs/README-ch.md +101 -95
- package/docs/README.md +101 -95
- package/docs/compatibility/api-stability-ch.md +25 -0
- package/docs/compatibility/api-stability-en.md +25 -0
- package/docs/compatibility/compatibility-ch.md +146 -129
- package/docs/compatibility/compatibility-en.md +146 -129
- package/docs/compatibility/compatibility-manifest.schema.json +161 -0
- package/docs/compatibility/deprecation-ch.md +21 -0
- package/docs/compatibility/deprecation-en.md +21 -0
- package/docs/compatibility/source-versioning-ch.md +162 -162
- package/docs/compatibility/source-versioning-en.md +162 -162
- package/docs/compatibility/support-matrix-ch.md +108 -0
- package/docs/compatibility/support-matrix-en.md +108 -0
- 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 +253 -253
- package/docs/development/component-development-reference-en.md +238 -238
- package/docs/development/component-protocol-ch.md +748 -748
- package/docs/development/component-protocol-en.md +750 -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 +532 -532
- package/docs/guides/local-guide-en.md +532 -532
- package/docs/integration/author-tools-ch.md +64 -64
- package/docs/integration/author-tools-en.md +64 -64
- package/docs/integration/compiler-ch.md +49 -49
- package/docs/integration/compiler-en.md +36 -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 +394 -394
- package/docs/integration/extension-sdk-en.md +379 -379
- package/docs/integration/local-integration-ch.md +646 -646
- package/docs/integration/local-integration-en.md +662 -662
- package/docs/integration/shareable-export-ch.md +307 -307
- package/docs/integration/shareable-export-en.md +309 -309
- package/docs/reference/diagnostics-counting-ch.md +104 -104
- package/docs/reference/diagnostics-counting-en.md +104 -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 +724 -724
- package/docs/reference/local-interaction-syntax-en.md +722 -722
- package/docs/reference/public-api-ch.md +33 -4
- package/docs/reference/public-api-en.md +33 -4
- package/docs/reference/theme-protocol-ch.md +198 -198
- package/docs/reference/theme-protocol-en.md +217 -217
- 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.2-ch.md +33 -0
- package/docs/releases/release-0.9.2-en.md +33 -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/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 +82 -82
- package/examples/integration/README.md +82 -82
- 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/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 +7 -1
- package/dist-library/compiler-eOfcinZs.js +0 -62
- package/dist-library/component-state-BoLCGee4.js +0 -801
- package/dist-library/preset-core-CKc5YXSM.js +0 -1443
- package/dist-library/react-D5iGiUdL.js +0 -7
package/dist-library/{LocalDocumentViewCore-GiWV3bey.js → LocalDocumentViewCore-DXE0I0Qc.js}
RENAMED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { f as e, l as t } from "./latex-1w7aQgD5.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { n as
|
|
15
|
-
import {
|
|
2
|
+
import { v as n } from "./version-DAxuGOG2.js";
|
|
3
|
+
import { g as r, i, t as a, v as o, y as s } from "./document-theme-C8J6UyNO.js";
|
|
4
|
+
import { a as c, c as l, g as u, h as d, i as f, l as p, m, o as h, r as g, s as _, u as v } from "./compiler-core-DDDdvuLy.js";
|
|
5
|
+
import { j as y, n as b, x } from "./validation-B3RI0xOk.js";
|
|
6
|
+
import { T as S, w as C } from "./config-validation-D3D7Dy2J.js";
|
|
7
|
+
import { i as w, n as T, r as E, t as D } from "./html-Cr4CBwAH.js";
|
|
8
|
+
import { l as O } from "./config-DXLvctiZ.js";
|
|
9
|
+
import { n as k } from "./registry-D6OGkOcX.js";
|
|
10
|
+
import { S as A, x as j } from "./component-state-CwKX_SN5.js";
|
|
11
|
+
import { t as M } from "./runtime-BpQdZmFI.js";
|
|
12
|
+
import { r as N } from "./resources-B0x_w3s9.js";
|
|
13
|
+
import { W as P, l as F, o as I, r as ee, t as te } from "./sdk-core-ChslheKs.js";
|
|
14
|
+
import { n as ne, r as re, t as ie } from "./visual-frame-_rcd5HUv.js";
|
|
15
|
+
import { n as ae, t as oe } from "./tooltip-layer-HDLrSWs0.js";
|
|
16
|
+
import { Component as se, Fragment as ce, createContext as le, createElement as L, memo as ue, useCallback as R, useContext as de, useEffect as z, useId as fe, useLayoutEffect as pe, useMemo as B, useRef as V, useState as H, useSyncExternalStore as me } from "react";
|
|
16
17
|
import { Fragment as he, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
17
18
|
import { createPortal as ge } from "react-dom";
|
|
18
19
|
// src/react/localization.tsx
|
|
19
|
-
var _e = (e) => e, G =
|
|
20
|
+
var _e = (e) => e, G = le("en");
|
|
20
21
|
function ve({ locale: e = "en", children: t }) {
|
|
21
22
|
return /* @__PURE__ */ U(G.Provider, {
|
|
22
23
|
value: e,
|
|
@@ -34,7 +35,7 @@ function q() {
|
|
|
34
35
|
return B(() => (t, n) => ye(e, t, n), [e]);
|
|
35
36
|
}
|
|
36
37
|
// src/local/rendering/document/view-render-context.tsx
|
|
37
|
-
var be =
|
|
38
|
+
var be = le(null);
|
|
38
39
|
function xe() {
|
|
39
40
|
let e = de(be);
|
|
40
41
|
if (!e) throw Error("LocalViewContext is not initialized");
|
|
@@ -97,7 +98,7 @@ function Te({ message: e }) {
|
|
|
97
98
|
children: e ?? t("Cannot compute", "无法计算")
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
|
-
var Ee = class extends
|
|
101
|
+
var Ee = class extends se {
|
|
101
102
|
state = { failed: !1 };
|
|
102
103
|
static getDerivedStateFromError() {
|
|
103
104
|
return { failed: !0 };
|
|
@@ -214,8 +215,8 @@ function Ne(e, t, n, r, i) {
|
|
|
214
215
|
}
|
|
215
216
|
return {
|
|
216
217
|
runtime: e.runtime,
|
|
217
|
-
authorStyle: e.componentStyles && Object.hasOwn(e.componentStyles, t.id) ?
|
|
218
|
-
authorStyleText: e.componentStyles && Object.hasOwn(e.componentStyles, t.id) ?
|
|
218
|
+
authorStyle: e.componentStyles && Object.hasOwn(e.componentStyles, t.id) ? g(e.componentStyles[t.id]) : void 0,
|
|
219
|
+
authorStyleText: e.componentStyles && Object.hasOwn(e.componentStyles, t.id) ? c(e.componentStyles[t.id]) : void 0,
|
|
219
220
|
dispatchAuthorAction: e.dispatchAuthorAction && ((n) => e.dispatchAuthorAction(t.id, n)),
|
|
220
221
|
services: e.runtime.services,
|
|
221
222
|
network: e.network,
|
|
@@ -251,16 +252,16 @@ function Ne(e, t, n, r, i) {
|
|
|
251
252
|
};
|
|
252
253
|
}
|
|
253
254
|
function Pe({ node: e, visible: t, renderInlineNodes: n, safeHtmlProps: r }) {
|
|
254
|
-
let i = fe(), a = xe(), { render: o, mode: s } = a, c = q(), { summary: l, body: u } =
|
|
255
|
+
let i = fe(), a = xe(), { render: o, mode: s } = a, c = q(), { summary: l, body: u } = m(e.children ?? []), d = l ? /* @__PURE__ */ U("span", {
|
|
255
256
|
...r(a, l),
|
|
256
257
|
children: n(a, l.children, t)
|
|
257
|
-
}) : c("Details", "折叠内容"), f = e.attrs !== void 0 && Object.hasOwn(e.attrs, "open"), [p,
|
|
258
|
-
Y(a.runtime, e, () =>
|
|
259
|
-
let
|
|
258
|
+
}) : c("Details", "折叠内容"), f = e.attrs !== void 0 && Object.hasOwn(e.attrs, "open"), [p, h] = H(f);
|
|
259
|
+
Y(a.runtime, e, () => h(f));
|
|
260
|
+
let g = c("Accordion", "折叠面板");
|
|
260
261
|
if (s === "static") return /* @__PURE__ */ U("div", {
|
|
261
262
|
className: "local-accordion",
|
|
262
263
|
role: "group",
|
|
263
|
-
"aria-label":
|
|
264
|
+
"aria-label": g,
|
|
264
265
|
children: /* @__PURE__ */ W("section", {
|
|
265
266
|
className: "local-disclosure local-static-disclosure local-html-details",
|
|
266
267
|
...r(a, e),
|
|
@@ -277,7 +278,7 @@ function Pe({ node: e, visible: t, renderInlineNodes: n, safeHtmlProps: r }) {
|
|
|
277
278
|
return /* @__PURE__ */ U("div", {
|
|
278
279
|
className: "local-accordion",
|
|
279
280
|
role: "group",
|
|
280
|
-
"aria-label":
|
|
281
|
+
"aria-label": g,
|
|
281
282
|
children: /* @__PURE__ */ W("div", {
|
|
282
283
|
className: "local-disclosure local-html-details",
|
|
283
284
|
...r(a, e),
|
|
@@ -290,7 +291,7 @@ function Pe({ node: e, visible: t, renderInlineNodes: n, safeHtmlProps: r }) {
|
|
|
290
291
|
"data-rmd-appearance": "custom",
|
|
291
292
|
"aria-expanded": p,
|
|
292
293
|
"aria-controls": v,
|
|
293
|
-
onClick: () =>
|
|
294
|
+
onClick: () => h((e) => !e),
|
|
294
295
|
children: [/* @__PURE__ */ U("span", {
|
|
295
296
|
className: "local-disclosure-label",
|
|
296
297
|
children: d
|
|
@@ -343,14 +344,14 @@ function Re(e, t) {
|
|
|
343
344
|
let t = a[e];
|
|
344
345
|
t && (i += `${e}\u0000${t.kind}\u0000${t.source}\u0000${Le(t.value)}\u0002`);
|
|
345
346
|
}
|
|
346
|
-
let o = JSON.stringify([...
|
|
347
|
+
let o = JSON.stringify([...p(e, t)].sort(([e], [t]) => e.localeCompare(t)));
|
|
347
348
|
return `${n}\u0003${i}\u0003${o}`;
|
|
348
349
|
}
|
|
349
350
|
function ze(e, t) {
|
|
350
|
-
let n = [],
|
|
351
|
-
for (let t of
|
|
352
|
-
let e = t.type === "component" || t.type === "hostComponent",
|
|
353
|
-
(t.type === "heading" ||
|
|
351
|
+
let n = [], r = p(e, t);
|
|
352
|
+
for (let t of s(e.nodes)) {
|
|
353
|
+
let e = t.type === "component" || t.type === "hostComponent", i = !e && typeof t.attrs?.id == "string", a = e ? r.get(t.name ?? "") : void 0, o = a !== void 0 && typeof t.attrs?.[a] == "string";
|
|
354
|
+
(t.type === "heading" || i || o) && n.push(t);
|
|
354
355
|
}
|
|
355
356
|
return {
|
|
356
357
|
nodes: n,
|
|
@@ -364,7 +365,7 @@ function Be(e, t) {
|
|
|
364
365
|
}
|
|
365
366
|
function Ve(e) {
|
|
366
367
|
let t = [];
|
|
367
|
-
for (let n of
|
|
368
|
+
for (let n of s(e.nodes)) (n.type === "footnoteDefinition" || n.type === "footnoteReference") && t.push(n);
|
|
368
369
|
return { nodes: t };
|
|
369
370
|
}
|
|
370
371
|
function He(e, t) {
|
|
@@ -446,14 +447,14 @@ function Ze(e, t) {
|
|
|
446
447
|
if (r || (r = {
|
|
447
448
|
document: null,
|
|
448
449
|
installed: null,
|
|
449
|
-
index:
|
|
450
|
+
index: h,
|
|
450
451
|
lookup: { get: (e) => n.current?.index.get(e) }
|
|
451
452
|
}, n.current = r), r.document !== e || r.installed !== t) {
|
|
452
453
|
let n;
|
|
453
454
|
try {
|
|
454
|
-
n =
|
|
455
|
+
n = _(e, t);
|
|
455
456
|
} catch {
|
|
456
|
-
n =
|
|
457
|
+
n = h;
|
|
457
458
|
}
|
|
458
459
|
r.index = n, r.document = e, r.installed = t;
|
|
459
460
|
}
|
|
@@ -548,7 +549,7 @@ function lt(e) {
|
|
|
548
549
|
return `${e.start}:${e.end}`;
|
|
549
550
|
}
|
|
550
551
|
function ut(e) {
|
|
551
|
-
return e.length > ot ? `${
|
|
552
|
+
return e.length > ot ? `${o(e, 1999)}…` : e;
|
|
552
553
|
}
|
|
553
554
|
function dt(e, t, n, r) {
|
|
554
555
|
let i = Array.isArray(e.validations) ? e.validations : [];
|
|
@@ -563,7 +564,7 @@ function dt(e, t, n, r) {
|
|
|
563
564
|
for (let e of a ?? []) (e.code === "local.validation.failed" || e.code === "local.validation.expression") && o.set(lt(e.range), e);
|
|
564
565
|
let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = r("This rule cannot be evaluated", "无法计算此规则"), d = r("Validation failed.", "校验未通过。");
|
|
565
566
|
for (let [t, r] of i.entries()) {
|
|
566
|
-
let i = lt(r.range), f = o.get(i), p = a === null || f?.code === "local.validation.expression", m = f?.code ===
|
|
567
|
+
let i = lt(r.range), f = o.get(i), p = a === null || f?.code === "local.validation.expression", m = f?.code === b, h = m ? ut(f?.message || r.message || d) : p ? f?.message ? `${u}: ${ut(f.message)}` : u : "", g = {
|
|
567
568
|
id: `${n}-validation-${t}`,
|
|
568
569
|
failed: m,
|
|
569
570
|
error: p,
|
|
@@ -5996,7 +5997,7 @@ function ur(e) {
|
|
|
5996
5997
|
contains: [k],
|
|
5997
5998
|
keywords: [...Qn, ...Zn],
|
|
5998
5999
|
end: /}/
|
|
5999
|
-
},
|
|
6000
|
+
}, te = {
|
|
6000
6001
|
match: [
|
|
6001
6002
|
/class\b/,
|
|
6002
6003
|
/\s+/,
|
|
@@ -6009,7 +6010,7 @@ function ur(e) {
|
|
|
6009
6010
|
3: "keyword",
|
|
6010
6011
|
5: "title.function"
|
|
6011
6012
|
}
|
|
6012
|
-
},
|
|
6013
|
+
}, ne = {
|
|
6013
6014
|
match: [
|
|
6014
6015
|
/class\b/,
|
|
6015
6016
|
/\s+/,
|
|
@@ -6019,7 +6020,7 @@ function ur(e) {
|
|
|
6019
6020
|
1: "keyword",
|
|
6020
6021
|
3: "keyword"
|
|
6021
6022
|
}
|
|
6022
|
-
},
|
|
6023
|
+
}, re = {
|
|
6023
6024
|
begin: [
|
|
6024
6025
|
/(struct|protocol|class|extension|enum|actor)/,
|
|
6025
6026
|
/\s+/,
|
|
@@ -6070,9 +6071,9 @@ function ur(e) {
|
|
|
6070
6071
|
...r,
|
|
6071
6072
|
P,
|
|
6072
6073
|
F,
|
|
6073
|
-
L,
|
|
6074
6074
|
te,
|
|
6075
6075
|
ne,
|
|
6076
|
+
re,
|
|
6076
6077
|
I,
|
|
6077
6078
|
ee,
|
|
6078
6079
|
{
|
|
@@ -7289,7 +7290,7 @@ var Tr = {
|
|
|
7289
7290
|
});
|
|
7290
7291
|
let i = y("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
7291
7292
|
return r.contains.push({ begin: _(/[ ]+/, "(", i, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), r;
|
|
7292
|
-
}, ee = I("//", "$"),
|
|
7293
|
+
}, ee = I("//", "$"), te = I("/\\*", "\\*/"), ne = I("#", "$"), re = /*#__PURE__*/ Object.freeze({
|
|
7293
7294
|
__proto__: null,
|
|
7294
7295
|
APOS_STRING_MODE: N,
|
|
7295
7296
|
BACKSLASH_ESCAPE: M,
|
|
@@ -7300,7 +7301,7 @@ var Tr = {
|
|
|
7300
7301
|
},
|
|
7301
7302
|
BINARY_NUMBER_RE: k,
|
|
7302
7303
|
COMMENT: I,
|
|
7303
|
-
C_BLOCK_COMMENT_MODE:
|
|
7304
|
+
C_BLOCK_COMMENT_MODE: te,
|
|
7304
7305
|
C_LINE_COMMENT_MODE: ee,
|
|
7305
7306
|
C_NUMBER_MODE: {
|
|
7306
7307
|
scope: "number",
|
|
@@ -7318,7 +7319,7 @@ var Tr = {
|
|
|
7318
7319
|
}
|
|
7319
7320
|
});
|
|
7320
7321
|
},
|
|
7321
|
-
HASH_COMMENT_MODE:
|
|
7322
|
+
HASH_COMMENT_MODE: ne,
|
|
7322
7323
|
IDENT_RE: T,
|
|
7323
7324
|
MATCH_NOTHING_RE: w,
|
|
7324
7325
|
METHOD_GUARD: {
|
|
@@ -7358,28 +7359,28 @@ var Tr = {
|
|
|
7358
7359
|
relevance: 0
|
|
7359
7360
|
}
|
|
7360
7361
|
});
|
|
7361
|
-
function re(e, t) {
|
|
7362
|
-
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
7363
|
-
}
|
|
7364
7362
|
function ie(e, t) {
|
|
7365
|
-
e.
|
|
7363
|
+
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
7366
7364
|
}
|
|
7367
7365
|
function ae(e, t) {
|
|
7368
|
-
|
|
7366
|
+
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
7369
7367
|
}
|
|
7370
7368
|
function oe(e, t) {
|
|
7371
|
-
|
|
7369
|
+
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = ie, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
7372
7370
|
}
|
|
7373
7371
|
function se(e, t) {
|
|
7372
|
+
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
7373
|
+
}
|
|
7374
|
+
function ce(e, t) {
|
|
7374
7375
|
if (e.match) {
|
|
7375
7376
|
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
7376
7377
|
e.begin = e.match, delete e.match;
|
|
7377
7378
|
}
|
|
7378
7379
|
}
|
|
7379
|
-
function
|
|
7380
|
+
function le(e, t) {
|
|
7380
7381
|
e.relevance === void 0 && (e.relevance = 1);
|
|
7381
7382
|
}
|
|
7382
|
-
var
|
|
7383
|
+
var L = (e, t) => {
|
|
7383
7384
|
if (!e.beforeMatch) return;
|
|
7384
7385
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
7385
7386
|
let n = Object.assign({}, e);
|
|
@@ -7516,14 +7517,14 @@ var Tr = {
|
|
|
7516
7517
|
let a = n;
|
|
7517
7518
|
if (n.isCompiled) return a;
|
|
7518
7519
|
[
|
|
7519
|
-
|
|
7520
|
-
|
|
7520
|
+
ae,
|
|
7521
|
+
ce,
|
|
7521
7522
|
_e,
|
|
7522
|
-
|
|
7523
|
+
L
|
|
7523
7524
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
7524
|
-
ae,
|
|
7525
7525
|
oe,
|
|
7526
|
-
|
|
7526
|
+
se,
|
|
7527
|
+
le
|
|
7527
7528
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
7528
7529
|
let s = null;
|
|
7529
7530
|
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= de(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
@@ -7582,9 +7583,9 @@ var Tr = {
|
|
|
7582
7583
|
code: r,
|
|
7583
7584
|
language: i
|
|
7584
7585
|
};
|
|
7585
|
-
|
|
7586
|
+
ne("before:highlight", a);
|
|
7586
7587
|
let o = a.result ? a.result : v(a.language, a.code, n);
|
|
7587
|
-
return o.code = a.code,
|
|
7588
|
+
return o.code = a.code, ne("after:highlight", o), o;
|
|
7588
7589
|
}
|
|
7589
7590
|
function v(e, n, i, a) {
|
|
7590
7591
|
let c = Object.create(null);
|
|
@@ -7661,7 +7662,7 @@ var Tr = {
|
|
|
7661
7662
|
if (e.endsWithParent) return _(e.parent, t, n);
|
|
7662
7663
|
}
|
|
7663
7664
|
function y(e) {
|
|
7664
|
-
return A.matcher.regexIndex === 0 ? (P += e[0], 1) : (
|
|
7665
|
+
return A.matcher.regexIndex === 0 ? (P += e[0], 1) : (te = !0, 0);
|
|
7665
7666
|
}
|
|
7666
7667
|
function b(e) {
|
|
7667
7668
|
let t = e[0], n = e.rule, i = new r(n), a = [n.__beforeBegin, n["on:begin"]];
|
|
@@ -7711,12 +7712,12 @@ var Tr = {
|
|
|
7711
7712
|
if (!D) throw B(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
7712
7713
|
let O = G(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
|
|
7713
7714
|
w();
|
|
7714
|
-
let P = "", F = 0, I = 0, ee = 0,
|
|
7715
|
+
let P = "", F = 0, I = 0, ee = 0, te = !1;
|
|
7715
7716
|
try {
|
|
7716
7717
|
if (D.__emitTokens) D.__emitTokens(n, M);
|
|
7717
7718
|
else {
|
|
7718
7719
|
for (A.matcher.considerAll();;) {
|
|
7719
|
-
ee++,
|
|
7720
|
+
ee++, te ? te = !1 : A.matcher.considerAll(), A.matcher.lastIndex = I;
|
|
7720
7721
|
let e = A.matcher.exec(n);
|
|
7721
7722
|
if (!e) break;
|
|
7722
7723
|
let t = E(n.substring(I, e.index), e);
|
|
@@ -7790,7 +7791,7 @@ var Tr = {
|
|
|
7790
7791
|
function w(e) {
|
|
7791
7792
|
let t = null, n = d(e);
|
|
7792
7793
|
if (u(n)) return;
|
|
7793
|
-
if (
|
|
7794
|
+
if (ne("before:highlightElement", {
|
|
7794
7795
|
el: e,
|
|
7795
7796
|
language: n
|
|
7796
7797
|
}), e.dataset.highlighted) {
|
|
@@ -7810,7 +7811,7 @@ var Tr = {
|
|
|
7810
7811
|
}, i.secondBest && (e.secondBest = {
|
|
7811
7812
|
language: i.secondBest.language,
|
|
7812
7813
|
relevance: i.secondBest.relevance
|
|
7813
|
-
}),
|
|
7814
|
+
}), ne("after:highlightElement", {
|
|
7814
7815
|
el: e,
|
|
7815
7816
|
result: i,
|
|
7816
7817
|
text: r
|
|
@@ -7872,17 +7873,17 @@ var Tr = {
|
|
|
7872
7873
|
function ee(e) {
|
|
7873
7874
|
I(e), a.push(e);
|
|
7874
7875
|
}
|
|
7875
|
-
function
|
|
7876
|
+
function te(e) {
|
|
7876
7877
|
let t = a.indexOf(e);
|
|
7877
7878
|
t !== -1 && a.splice(t, 1);
|
|
7878
7879
|
}
|
|
7879
|
-
function
|
|
7880
|
+
function ne(e, t) {
|
|
7880
7881
|
let n = e;
|
|
7881
7882
|
a.forEach(function(e) {
|
|
7882
7883
|
e[n] && e[n](t);
|
|
7883
7884
|
});
|
|
7884
7885
|
}
|
|
7885
|
-
function
|
|
7886
|
+
function ie(e) {
|
|
7886
7887
|
return H("10.7.0", "highlightBlock will be removed entirely in v12.0"), H("10.7.0", "Please use highlightElement now."), w(e);
|
|
7887
7888
|
}
|
|
7888
7889
|
Object.assign(e, {
|
|
@@ -7890,7 +7891,7 @@ var Tr = {
|
|
|
7890
7891
|
highlightAuto: S,
|
|
7891
7892
|
highlightAll: k,
|
|
7892
7893
|
highlightElement: w,
|
|
7893
|
-
highlightBlock:
|
|
7894
|
+
highlightBlock: ie,
|
|
7894
7895
|
configure: T,
|
|
7895
7896
|
initHighlighting: E,
|
|
7896
7897
|
initHighlightingOnLoad: D,
|
|
@@ -7902,7 +7903,7 @@ var Tr = {
|
|
|
7902
7903
|
autoDetection: F,
|
|
7903
7904
|
inherit: xe,
|
|
7904
7905
|
addPlugin: ee,
|
|
7905
|
-
removePlugin:
|
|
7906
|
+
removePlugin: te
|
|
7906
7907
|
}), e.debugMode = function() {
|
|
7907
7908
|
o = !1;
|
|
7908
7909
|
}, e.safeMode = function() {
|
|
@@ -7914,8 +7915,8 @@ var Tr = {
|
|
|
7914
7915
|
optional: g,
|
|
7915
7916
|
anyNumberOfTimes: h
|
|
7916
7917
|
};
|
|
7917
|
-
for (let e in
|
|
7918
|
-
return Object.assign(e,
|
|
7918
|
+
for (let e in re) typeof re[e] == "object" && n(re[e]);
|
|
7919
|
+
return Object.assign(e, re), e;
|
|
7919
7920
|
}, J = we({});
|
|
7920
7921
|
J.newInstance = () => we({}), t.exports = J, J.HighlightJS = J, J.default = J;
|
|
7921
7922
|
})))())).default, Dr = {}, Or = "hljs-";
|
|
@@ -8614,63 +8615,63 @@ var ni = /^(?:aria|data)-[a-z0-9_.:-]+$/, ri = /* @__PURE__ */ new Set([
|
|
|
8614
8615
|
function Q(e, t) {
|
|
8615
8616
|
let n = t.attrs;
|
|
8616
8617
|
if (!n) return {};
|
|
8617
|
-
let r = {},
|
|
8618
|
-
|
|
8619
|
-
for (let [
|
|
8620
|
-
let n =
|
|
8618
|
+
let r = {}, i = e.anchors.ids.get(t) ?? e.anchors.htmlIds.get(t);
|
|
8619
|
+
i && (r.id = i);
|
|
8620
|
+
for (let [i, a] of Object.entries(n)) {
|
|
8621
|
+
let n = i.toLowerCase();
|
|
8621
8622
|
if (n !== "id") {
|
|
8622
8623
|
if (n === "align" && (t.type === "div" || t.type === "paragraph" || t.type === "heading")) {
|
|
8623
|
-
let e =
|
|
8624
|
+
let e = C(a);
|
|
8624
8625
|
e && (r.align = e);
|
|
8625
|
-
} else if (n === "title" || n === "lang") r[n] =
|
|
8626
|
+
} else if (n === "title" || n === "lang") r[n] = a;
|
|
8626
8627
|
else if (n === "dir") {
|
|
8627
|
-
let e =
|
|
8628
|
+
let e = a.trim().toLowerCase();
|
|
8628
8629
|
(e === "ltr" || e === "rtl" || e === "auto") && (r.dir = e);
|
|
8629
|
-
} else ni.test(n) && (r[n] = ri.has(n) ?
|
|
8630
|
+
} else ni.test(n) && (r[n] = ri.has(n) ? a.trim().split(/\s+/).filter(Boolean).map((t) => e.anchors.referenceId(t)).join(" ") : a);
|
|
8630
8631
|
}
|
|
8631
8632
|
}
|
|
8632
8633
|
return r;
|
|
8633
8634
|
}
|
|
8634
8635
|
function ii(e, t, n, r) {
|
|
8635
|
-
let
|
|
8636
|
-
for (let t of e) t.name === "tr" ?
|
|
8636
|
+
let i = [], a = (e) => {
|
|
8637
|
+
for (let t of e) t.name === "tr" ? i.push(t) : t.name !== "td" && t.name !== "th" && t.type !== "htmlTable" && a(t.children ?? []);
|
|
8637
8638
|
};
|
|
8638
|
-
|
|
8639
|
-
let
|
|
8639
|
+
a(t.children ?? []);
|
|
8640
|
+
let o = i.some((e) => e.children?.some((e) => ["colspan", "rowspan"].some((t) => e.attrs?.[t] !== void 0 && e.attrs[t] !== "1"))), s = i.filter((e) => e.children?.some((e) => e.name === "td")), c = (t) => {
|
|
8640
8641
|
if (t.type === "interpolation") try {
|
|
8641
8642
|
return Ce(e.runtime.evaluate(t.value ?? "")) ?? "";
|
|
8642
8643
|
} catch {
|
|
8643
8644
|
return "";
|
|
8644
8645
|
}
|
|
8645
|
-
return (t.value ?? "") + (t.children ?? []).map(
|
|
8646
|
-
},
|
|
8646
|
+
return (t.value ?? "") + (t.children ?? []).map(c).join("");
|
|
8647
|
+
}, l = o ? [] : _t(s.map((e) => e.children ?? []), e.runtime, e.t), u = (t, r = 0) => {
|
|
8647
8648
|
if (t.type === "htmlTable") return ii(e, t, n, t.id);
|
|
8648
|
-
let
|
|
8649
|
-
if (!
|
|
8650
|
-
let
|
|
8649
|
+
let i = t.name ?? "";
|
|
8650
|
+
if (!y.has(i) || i === "table") return null;
|
|
8651
|
+
let a = {
|
|
8651
8652
|
...Q(e, t),
|
|
8652
8653
|
key: t.id
|
|
8653
|
-
},
|
|
8654
|
-
if (
|
|
8655
|
-
|
|
8656
|
-
let
|
|
8657
|
-
return
|
|
8658
|
-
}
|
|
8659
|
-
return (
|
|
8660
|
-
},
|
|
8661
|
-
return /* @__PURE__ */ U(
|
|
8654
|
+
}, o = t.attrs ?? {};
|
|
8655
|
+
if (i === "th" || i === "td") {
|
|
8656
|
+
o.colspan !== void 0 && (a.colSpan = Number(o.colspan)), o.rowspan !== void 0 && (a.rowSpan = Number(o.rowspan)), o.scope !== void 0 && (a.scope = o.scope.trim().toLowerCase()), o.abbr !== void 0 && (a.abbr = o.abbr), o.headers !== void 0 && (a.headers = o.headers.trim().split(/\s+/).map((t) => e.anchors.referenceId(t)).join(" ")), l[r] && (a.className = "is-numeric");
|
|
8657
|
+
let s = o.align && C(o.align);
|
|
8658
|
+
return s && (a.style = { textAlign: s }), L(i, a, $(e, t.children, n));
|
|
8659
|
+
}
|
|
8660
|
+
return (i === "col" || i === "colgroup") && (o.span !== void 0 && (a.span = Number(o.span)), i === "col") ? L("col", a) : L(i, a, (t.children ?? []).map((e, t) => u(e, t)));
|
|
8661
|
+
}, d = t.children?.find((e) => e.name === "caption"), f = d ? $(e, (d.children ?? []).flatMap((e) => e.type === "paragraph" ? e.children ?? [] : [e]), n, !1) : e.t("Table", "表格");
|
|
8662
|
+
return /* @__PURE__ */ U(ie, {
|
|
8662
8663
|
className: "local-visual-table-block local-html-table-block",
|
|
8663
|
-
label:
|
|
8664
|
-
children: /* @__PURE__ */ W(
|
|
8664
|
+
label: f,
|
|
8665
|
+
children: /* @__PURE__ */ W(ne, {
|
|
8665
8666
|
tableProps: {
|
|
8666
8667
|
...Q(e, t),
|
|
8667
|
-
...
|
|
8668
|
+
...o ? { "data-merged": "true" } : {}
|
|
8668
8669
|
},
|
|
8669
8670
|
children: [/* @__PURE__ */ U("caption", {
|
|
8670
|
-
...
|
|
8671
|
+
...d ? Q(e, d) : {},
|
|
8671
8672
|
className: "local-visual-sr-only",
|
|
8672
|
-
children:
|
|
8673
|
-
}), (t.children ?? []).filter((e) => e.name !== "caption").map((e) =>
|
|
8673
|
+
children: d ? c(d) : e.t("Table", "表格")
|
|
8674
|
+
}), (t.children ?? []).filter((e) => e.name !== "caption").map((e) => u(e))]
|
|
8674
8675
|
})
|
|
8675
8676
|
}, r);
|
|
8676
8677
|
}
|
|
@@ -8685,7 +8686,7 @@ function $(e, t, n, r = !0) {
|
|
|
8685
8686
|
if (!r) return t.map((t, r) => mi(e, t, r, n, !1));
|
|
8686
8687
|
let i = null, a = null;
|
|
8687
8688
|
try {
|
|
8688
|
-
i = e.runtime.snapshot().state, a =
|
|
8689
|
+
i = e.runtime.snapshot().state, a = l(e.runtime);
|
|
8689
8690
|
} catch {
|
|
8690
8691
|
i = null;
|
|
8691
8692
|
}
|
|
@@ -8722,7 +8723,7 @@ function li(e, t, n) {
|
|
|
8722
8723
|
function ui(e, t, n) {
|
|
8723
8724
|
let r = e.footnotes.siteFor(t);
|
|
8724
8725
|
if (!r || !r.entry) {
|
|
8725
|
-
let i = r?.label ||
|
|
8726
|
+
let i = r?.label || u(t) || "?";
|
|
8726
8727
|
return /* @__PURE__ */ U("span", {
|
|
8727
8728
|
className: "local-footnote-missing",
|
|
8728
8729
|
title: e.t("Undefined footnote", "未定义的脚注"),
|
|
@@ -8767,9 +8768,9 @@ function fi(e, t, n, r) {
|
|
|
8767
8768
|
children: e.t(`Host component <${i}> is unavailable here.`, `宿主组件 <${i}> 在此不可用。`)
|
|
8768
8769
|
}, n);
|
|
8769
8770
|
if (e.extensionRenderer) try {
|
|
8770
|
-
return
|
|
8771
|
+
return L(ce, { key: n }, e.extensionRenderer(t, Ne(e, t, r, $, li)));
|
|
8771
8772
|
} catch (e) {
|
|
8772
|
-
return a(e instanceof
|
|
8773
|
+
return a(e instanceof te ? "renderer" : "error", !0);
|
|
8773
8774
|
}
|
|
8774
8775
|
let o = t.attrs?.kind?.trim() ?? "", s = t.attrs?.ref?.trim() ?? "", c = o !== "" && s !== "" ? `${o}:${s}` : null;
|
|
8775
8776
|
if (c === null) {
|
|
@@ -8819,7 +8820,7 @@ function fi(e, t, n, r) {
|
|
|
8819
8820
|
report: (t) => e.report?.(t)
|
|
8820
8821
|
};
|
|
8821
8822
|
try {
|
|
8822
|
-
return
|
|
8823
|
+
return L(ce, { key: n }, l(t, u, h));
|
|
8823
8824
|
} catch {
|
|
8824
8825
|
return a("error");
|
|
8825
8826
|
}
|
|
@@ -8854,15 +8855,15 @@ function pi(e, t, n) {
|
|
|
8854
8855
|
return o;
|
|
8855
8856
|
}
|
|
8856
8857
|
function mi(e, t, n, r, i = !0) {
|
|
8857
|
-
let a = t.id || `${t.type}-${n}`,
|
|
8858
|
-
if (
|
|
8858
|
+
let a = t.id || `${t.type}-${n}`, o = pi(e, t, r);
|
|
8859
|
+
if (o !== void 0) return o;
|
|
8859
8860
|
if (t.type === "component") return /* @__PURE__ */ U(Ee, {
|
|
8860
8861
|
revision: Ke(e.runtime),
|
|
8861
8862
|
children: gi(e, t, r)
|
|
8862
8863
|
}, a);
|
|
8863
8864
|
switch (t.type) {
|
|
8864
8865
|
case "root": return /* @__PURE__ */ U("div", { children: $(e, t.children, r) }, a);
|
|
8865
|
-
case "heading": return
|
|
8866
|
+
case "heading": return L(ti(t.depth), {
|
|
8866
8867
|
key: a,
|
|
8867
8868
|
id: e.anchors.ids.get(t),
|
|
8868
8869
|
...Q(e, t),
|
|
@@ -8971,19 +8972,19 @@ function mi(e, t, n, r, i = !0) {
|
|
|
8971
8972
|
}
|
|
8972
8973
|
case "link": {
|
|
8973
8974
|
let n = De(t.url, "link", e.urlPolicy);
|
|
8974
|
-
if (!n) return /* @__PURE__ */
|
|
8975
|
+
if (!n) return /* @__PURE__ */ L("span", {
|
|
8975
8976
|
...Q(e, t),
|
|
8976
8977
|
className: "md-link-rejected",
|
|
8977
8978
|
key: a,
|
|
8978
8979
|
title: e.t("Unsafe link URL rejected", "已拒绝不安全的链接地址")
|
|
8979
8980
|
}, $(e, t.children, r, !1));
|
|
8980
|
-
let i = e.anchors.resolve(n),
|
|
8981
|
+
let i = e.anchors.resolve(n), o = /^https?:/i.test(i), s = t.attrs?.target ?? (o ? "_blank" : void 0), c = S(t.attrs?.rel ?? (o ? "noopener noreferrer" : void 0), s);
|
|
8981
8982
|
return /* @__PURE__ */ U("a", {
|
|
8982
8983
|
...Q(e, t),
|
|
8983
8984
|
href: i,
|
|
8984
8985
|
title: t.title ?? void 0,
|
|
8985
|
-
target:
|
|
8986
|
-
rel:
|
|
8986
|
+
target: s,
|
|
8987
|
+
rel: c,
|
|
8987
8988
|
children: $(e, t.children, r, !1)
|
|
8988
8989
|
}, a);
|
|
8989
8990
|
}
|
|
@@ -9059,7 +9060,7 @@ function mi(e, t, n, r, i = !0) {
|
|
|
9059
9060
|
...ke(e, t),
|
|
9060
9061
|
children: /* @__PURE__ */ U(Ee, {
|
|
9061
9062
|
revision: Ke(e.runtime),
|
|
9062
|
-
children: /* @__PURE__ */ U(
|
|
9063
|
+
children: /* @__PURE__ */ U(re, {
|
|
9063
9064
|
source: t.value ?? "",
|
|
9064
9065
|
display: n
|
|
9065
9066
|
})
|
|
@@ -9114,9 +9115,9 @@ function gi(e, t, n) {
|
|
|
9114
9115
|
if (r === "computed" || r === "const" || r === "external") return null;
|
|
9115
9116
|
let i = e.componentRenderer ?? e.extensionRenderer;
|
|
9116
9117
|
if (i) try {
|
|
9117
|
-
return
|
|
9118
|
+
return L(ce, { key: t.id }, i(t, Ne(e, t, n, $, li)));
|
|
9118
9119
|
} catch (e) {
|
|
9119
|
-
if (!(e instanceof
|
|
9120
|
+
if (!(e instanceof te)) throw e;
|
|
9120
9121
|
}
|
|
9121
9122
|
return /* @__PURE__ */ W("span", {
|
|
9122
9123
|
className: "component-error",
|
|
@@ -9205,54 +9206,54 @@ function bi(e, t) {
|
|
|
9205
9206
|
} : { ok: !0 };
|
|
9206
9207
|
}
|
|
9207
9208
|
var xi = (e, t) => `${e}:${t}`, Si = Object.freeze({});
|
|
9208
|
-
function Ci(e, t, n,
|
|
9209
|
-
let
|
|
9209
|
+
function Ci(e, t, n, i, a) {
|
|
9210
|
+
let o = e.capabilities, s = n && o?.scripts.length ? JSON.stringify(o.scripts.map((e) => e.text)) : "", c = o?.actionTargets ?? Si, l = V({
|
|
9210
9211
|
document: e,
|
|
9211
|
-
targets:
|
|
9212
|
-
paused:
|
|
9213
|
-
report:
|
|
9212
|
+
targets: c,
|
|
9213
|
+
paused: i,
|
|
9214
|
+
report: a
|
|
9214
9215
|
}), u = V(void 0);
|
|
9215
9216
|
return pe(() => {
|
|
9216
|
-
|
|
9217
|
+
l.current = {
|
|
9217
9218
|
document: e,
|
|
9218
|
-
targets:
|
|
9219
|
-
paused:
|
|
9220
|
-
report:
|
|
9219
|
+
targets: c,
|
|
9220
|
+
paused: i,
|
|
9221
|
+
report: a
|
|
9221
9222
|
};
|
|
9222
9223
|
let t = u.current;
|
|
9223
9224
|
if (t) {
|
|
9224
|
-
for (let e of t.targets.keys()) Object.hasOwn(
|
|
9225
|
-
for (let e of Object.keys(
|
|
9226
|
-
|
|
9225
|
+
for (let e of t.targets.keys()) Object.hasOwn(c, e) || t.targets.delete(e);
|
|
9226
|
+
for (let e of Object.keys(c)) t.targets.has(e) || t.targets.set(e, ++t.nextEpoch);
|
|
9227
|
+
i || queueMicrotask(t.resume);
|
|
9227
9228
|
}
|
|
9228
9229
|
}, [
|
|
9229
9230
|
e,
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9231
|
+
c,
|
|
9232
|
+
i,
|
|
9233
|
+
a
|
|
9233
9234
|
]), pe(() => {
|
|
9234
|
-
if (!
|
|
9235
|
-
let e = !1, n,
|
|
9236
|
-
let n =
|
|
9235
|
+
if (!s) return;
|
|
9236
|
+
let e = !1, n, i = (e, t) => {
|
|
9237
|
+
let n = l.current, i = n.document.capabilities?.scripts[e]?.range ?? {
|
|
9237
9238
|
start: 0,
|
|
9238
9239
|
end: 0
|
|
9239
|
-
},
|
|
9240
|
+
}, a = new r(n.document.source), o = a.lineIndexAt(i.start);
|
|
9240
9241
|
n.report([{
|
|
9241
9242
|
code: "local.author.javascript",
|
|
9242
9243
|
severity: "warning",
|
|
9243
9244
|
message: t,
|
|
9244
|
-
range:
|
|
9245
|
-
line:
|
|
9246
|
-
column:
|
|
9245
|
+
range: i,
|
|
9246
|
+
line: o + 1,
|
|
9247
|
+
column: i.start - a.lineStarts[o] + 1
|
|
9247
9248
|
}]);
|
|
9248
|
-
},
|
|
9249
|
+
}, a = () => {
|
|
9249
9250
|
e = !0, u.current?.worker === n && (u.current = void 0), n?.terminate();
|
|
9250
9251
|
};
|
|
9251
9252
|
return queueMicrotask(() => {
|
|
9252
9253
|
if (!e) try {
|
|
9253
|
-
let
|
|
9254
|
-
n =
|
|
9255
|
-
let
|
|
9254
|
+
let r = new yi();
|
|
9255
|
+
n = r;
|
|
9256
|
+
let o = /* @__PURE__ */ new Map(), c = Object.keys(l.current.targets), d = new Map(c.map((e, t) => [e, t + 1])), f = (e) => r.postMessage(e), p = [], m = (n) => {
|
|
9256
9257
|
let r;
|
|
9257
9258
|
try {
|
|
9258
9259
|
r = n.target && d.get(n.target.id) !== n.target.epoch ? {
|
|
@@ -9272,38 +9273,38 @@ function Ci(e, t, n, r, i) {
|
|
|
9272
9273
|
});
|
|
9273
9274
|
};
|
|
9274
9275
|
u.current = {
|
|
9275
|
-
worker:
|
|
9276
|
-
actions:
|
|
9276
|
+
worker: r,
|
|
9277
|
+
actions: o,
|
|
9277
9278
|
targets: d,
|
|
9278
|
-
nextEpoch:
|
|
9279
|
+
nextEpoch: c.length,
|
|
9279
9280
|
resume() {
|
|
9280
|
-
for (; !e && !
|
|
9281
|
+
for (; !e && !l.current.paused && p.length;) m(p.shift());
|
|
9281
9282
|
}
|
|
9282
|
-
},
|
|
9283
|
+
}, r.onmessage = ({ data: t }) => {
|
|
9283
9284
|
if (!e) {
|
|
9284
|
-
if (t.kind === "request")
|
|
9285
|
+
if (t.kind === "request") l.current.paused ? p.push(t) : m(t);
|
|
9285
9286
|
else if (t.kind === "registered") for (let e of t.registrations) {
|
|
9286
9287
|
let t = xi(e.target, e.action);
|
|
9287
|
-
|
|
9288
|
+
o.set(t, { takeover: e.takeover || o.get(t)?.takeover === !0 });
|
|
9288
9289
|
}
|
|
9289
|
-
else t.kind === "diagnostic" ?
|
|
9290
|
+
else t.kind === "diagnostic" ? i(t.block, t.message) : (i(0, t.message), a());
|
|
9290
9291
|
}
|
|
9291
|
-
},
|
|
9292
|
-
e || (
|
|
9292
|
+
}, r.onerror = () => {
|
|
9293
|
+
e || (i(0, "Unable to start the isolated author JavaScript worker."), a());
|
|
9293
9294
|
}, f({
|
|
9294
9295
|
kind: "start",
|
|
9295
|
-
blocks: JSON.parse(
|
|
9296
|
-
targets:
|
|
9296
|
+
blocks: JSON.parse(s),
|
|
9297
|
+
targets: c
|
|
9297
9298
|
});
|
|
9298
9299
|
} catch {
|
|
9299
9300
|
if (e) return;
|
|
9300
|
-
|
|
9301
|
+
i(0, "Unable to create the isolated author JavaScript worker."), a();
|
|
9301
9302
|
}
|
|
9302
|
-
}),
|
|
9303
|
-
}, [t,
|
|
9303
|
+
}), a;
|
|
9304
|
+
}, [t, s]), R((e, t) => {
|
|
9304
9305
|
let n = u.current;
|
|
9305
|
-
if (!n ||
|
|
9306
|
-
let r = Object.keys(
|
|
9306
|
+
if (!n || l.current.paused) return !1;
|
|
9307
|
+
let r = Object.keys(l.current.targets).find((t) => l.current.targets[t] === e);
|
|
9307
9308
|
if (!r) return !1;
|
|
9308
9309
|
let i = n.targets.get(r);
|
|
9309
9310
|
if (i === void 0) return !1;
|
|
@@ -9354,7 +9355,7 @@ function Di({ rootRef: e, enabled: t }) {
|
|
|
9354
9355
|
top: 8,
|
|
9355
9356
|
ready: !1
|
|
9356
9357
|
});
|
|
9357
|
-
return
|
|
9358
|
+
return ae(r, t && i !== null), z(() => {
|
|
9358
9359
|
let i = e.current;
|
|
9359
9360
|
if (!i || !t) return;
|
|
9360
9361
|
let o = null, c = null, l = null, u = null, d, f, p = !1, m = /* @__PURE__ */ new Map(), h = () => {
|
|
@@ -9432,7 +9433,7 @@ function Di({ rootRef: e, enabled: t }) {
|
|
|
9432
9433
|
t,
|
|
9433
9434
|
n,
|
|
9434
9435
|
e
|
|
9435
|
-
]),
|
|
9436
|
+
]), oe(() => {
|
|
9436
9437
|
if (!i || !r.current) return;
|
|
9437
9438
|
let e = i.anchor.getBoundingClientRect(), t = r.current.getBoundingClientRect(), n = Math.max(8, Math.min(e.left, window.innerWidth - t.width - 8)), a = e.bottom + 8, o = a + t.height <= window.innerHeight - 8 ? a : Math.max(8, e.top - t.height - 8);
|
|
9438
9439
|
s({
|
|
@@ -9481,7 +9482,7 @@ function Ai({ document: e, capabilityGrants: t, mode: r = "interactive", staticF
|
|
|
9481
9482
|
z(() => {
|
|
9482
9483
|
i && c(!0);
|
|
9483
9484
|
}, [i]);
|
|
9484
|
-
let l = r === "interactive" && i && !s ? "static" : r, u =
|
|
9485
|
+
let l = r === "interactive" && i && !s ? "static" : r, u = x(e.html, t), d = u.enableCss, f = l === "interactive" && u.enableJavaScript, p = u.enableExtendedHtml, m = B(() => ({
|
|
9485
9486
|
enableCss: d,
|
|
9486
9487
|
enableJavaScript: f,
|
|
9487
9488
|
enableExtendedHtml: p
|
|
@@ -9527,52 +9528,52 @@ function Ai({ document: e, capabilityGrants: t, mode: r = "interactive", staticF
|
|
|
9527
9528
|
function ji(e) {
|
|
9528
9529
|
return Ie(e.reactConfig, e), P(e.runtime), e.document.html && e.document.nodes.length === 1 && ["htmlDocument", "fallback"].includes(e.document.nodes[0].type) ? /* @__PURE__ */ U(Ai, { ...e }) : /* @__PURE__ */ U(Mi, { ...e });
|
|
9529
9530
|
}
|
|
9530
|
-
function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused: r = !1, allowedFrameOrigins:
|
|
9531
|
+
function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused: r = !1, allowedFrameOrigins: o, network: s, networkScope: c, onDiagnostics: l, urlPolicy: u, locale: p = "en", themes: m, colorScheme: h = "auto", mode: g = "interactive", staticFirst: _ = !1, imageResolver: y, hostData: b, hostRenderer: S, reactConfig: C, externalValues: w, onSourceNavigate: T, getBaseConfig: E }) {
|
|
9531
9532
|
let [D, P] = H(!_);
|
|
9532
9533
|
z(() => {
|
|
9533
9534
|
_ && P(!0);
|
|
9534
9535
|
}, [_]);
|
|
9535
|
-
let F = g === "interactive" && _ && !D ? "static" : g,
|
|
9536
|
-
enableCss:
|
|
9537
|
-
enableJavaScript:
|
|
9538
|
-
enableExtendedHtml:
|
|
9536
|
+
let F = g === "interactive" && _ && !D ? "static" : g, te = x(e.capabilities?.policy, n), ne = te.enableCss, re = F === "interactive" && te.enableJavaScript, ie = te.enableExtendedHtml, ae = B(() => ({
|
|
9537
|
+
enableCss: ne,
|
|
9538
|
+
enableJavaScript: re,
|
|
9539
|
+
enableExtendedHtml: ie
|
|
9539
9540
|
}), [
|
|
9540
|
-
te,
|
|
9541
9541
|
ne,
|
|
9542
|
-
re
|
|
9543
|
-
|
|
9542
|
+
re,
|
|
9543
|
+
ie
|
|
9544
|
+
]), oe = c ?? t, [se, ce] = H();
|
|
9544
9545
|
pe(() => {
|
|
9545
|
-
if (F !== "interactive" ||
|
|
9546
|
-
|
|
9546
|
+
if (F !== "interactive" || s === void 0) {
|
|
9547
|
+
ce(void 0);
|
|
9547
9548
|
return;
|
|
9548
9549
|
}
|
|
9549
|
-
let e =
|
|
9550
|
-
return
|
|
9551
|
-
config:
|
|
9552
|
-
identity:
|
|
9550
|
+
let e = j(s);
|
|
9551
|
+
return ce({
|
|
9552
|
+
config: s,
|
|
9553
|
+
identity: oe,
|
|
9553
9554
|
session: e
|
|
9554
9555
|
}), () => e.dispose();
|
|
9555
9556
|
}, [
|
|
9556
|
-
|
|
9557
|
-
|
|
9557
|
+
s,
|
|
9558
|
+
oe,
|
|
9558
9559
|
F
|
|
9559
9560
|
]);
|
|
9560
|
-
let
|
|
9561
|
+
let le = F === "interactive" && se?.config === s && se?.identity === oe ? se.session : void 0, L = s === void 0 ? void 0 : le?.network ?? A, ue = fe(), de = ne ? e.capabilities?.styles : void 0, he = B(() => de?.map((e) => f(e.text)).join("\n"), [de]), ge = ne ? e.capabilities?.componentStyles : void 0, _e = !!(he || ge && Object.keys(ge).length), G = B(() => (e, t) => ye(p, e, t), [p]), K = B(() => C ?? E(), [C, E]), q = B(() => {
|
|
9561
9562
|
try {
|
|
9562
9563
|
return k(K.config);
|
|
9563
9564
|
} catch {
|
|
9564
9565
|
return [];
|
|
9565
9566
|
}
|
|
9566
|
-
}, [K]), xe = Xe(e, (e) => ze(e, q), Be, () =>
|
|
9567
|
+
}, [K]), xe = Xe(e, (e) => ze(e, q), Be, () => v(e, `local-heading-${ue}`, !0, q)), Se = Xe(e, Ve, He, () => d(e, ue)), Ce = Ze(e, q), we = V(l);
|
|
9567
9568
|
we.current = l;
|
|
9568
9569
|
let J = V(null), Y = R((e) => {
|
|
9569
9570
|
we.current?.(e);
|
|
9570
|
-
}, []), Te = Ci(e, t,
|
|
9571
|
+
}, []), Te = Ci(e, t, re, r, Y);
|
|
9571
9572
|
pe(() => {
|
|
9572
|
-
if (
|
|
9573
|
+
if (le) return M(t, le, Y);
|
|
9573
9574
|
}, [
|
|
9574
9575
|
t,
|
|
9575
|
-
|
|
9576
|
+
le,
|
|
9576
9577
|
Y
|
|
9577
9578
|
]);
|
|
9578
9579
|
let Ee = B(() => {
|
|
@@ -9614,11 +9615,11 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9614
9615
|
K,
|
|
9615
9616
|
je,
|
|
9616
9617
|
E
|
|
9617
|
-
]), Pe = B(() =>
|
|
9618
|
-
|
|
9618
|
+
]), Pe = B(() => C !== void 0 && je ? ee(K) : void 0, [
|
|
9619
|
+
C,
|
|
9619
9620
|
K,
|
|
9620
9621
|
je
|
|
9621
|
-
]), Fe =
|
|
9622
|
+
]), Fe = C?.themes ?? m, Ie = V(w);
|
|
9622
9623
|
Ie.current = w, z(() => {
|
|
9623
9624
|
let e = Ie.current;
|
|
9624
9625
|
if (e) try {
|
|
@@ -9659,10 +9660,10 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9659
9660
|
});
|
|
9660
9661
|
}, [J, Re]), Ke = qe(Fe), Ye = B(() => {
|
|
9661
9662
|
try {
|
|
9662
|
-
return
|
|
9663
|
+
return i(e.theme, Fe, e.themeRange, e.source);
|
|
9663
9664
|
} catch {
|
|
9664
9665
|
return {
|
|
9665
|
-
name:
|
|
9666
|
+
name: a.name,
|
|
9666
9667
|
diagnostics: []
|
|
9667
9668
|
};
|
|
9668
9669
|
}
|
|
@@ -9701,22 +9702,22 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9701
9702
|
}
|
|
9702
9703
|
let rt = ft(e, t, ue, G, `${e.validations?.length ? Ue(e) : ""}\u0000${nt}`), it = B(() => ({
|
|
9703
9704
|
runtime: t,
|
|
9704
|
-
network:
|
|
9705
|
-
capabilityPolicy:
|
|
9706
|
-
allowedFrameOrigins:
|
|
9705
|
+
network: L,
|
|
9706
|
+
capabilityPolicy: ae,
|
|
9707
|
+
allowedFrameOrigins: o,
|
|
9707
9708
|
componentStyles: ge,
|
|
9708
9709
|
dispatchAuthorAction: Te,
|
|
9709
9710
|
rootRef: J,
|
|
9710
9711
|
urlPolicy: u,
|
|
9711
|
-
imageResolver:
|
|
9712
|
-
hostData:
|
|
9713
|
-
hostRenderer: je ?
|
|
9712
|
+
imageResolver: y,
|
|
9713
|
+
hostData: b,
|
|
9714
|
+
hostRenderer: je ? S : void 0,
|
|
9714
9715
|
extensionRenderer: Pe,
|
|
9715
9716
|
componentRenderer: Ne,
|
|
9716
9717
|
definitions: Ee,
|
|
9717
9718
|
anchors: xe,
|
|
9718
9719
|
t: G,
|
|
9719
|
-
locale:
|
|
9720
|
+
locale: p,
|
|
9720
9721
|
mode: F,
|
|
9721
9722
|
dependencies: Ce,
|
|
9722
9723
|
footnotes: Se,
|
|
@@ -9725,23 +9726,23 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9725
9726
|
report: Y
|
|
9726
9727
|
}), [
|
|
9727
9728
|
t,
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9729
|
+
L,
|
|
9730
|
+
ae,
|
|
9731
|
+
o,
|
|
9731
9732
|
ge,
|
|
9732
9733
|
Te,
|
|
9733
9734
|
J,
|
|
9734
9735
|
u,
|
|
9735
|
-
v,
|
|
9736
9736
|
y,
|
|
9737
|
-
|
|
9737
|
+
b,
|
|
9738
|
+
S,
|
|
9738
9739
|
je,
|
|
9739
9740
|
Pe,
|
|
9740
9741
|
Ne,
|
|
9741
9742
|
Ee,
|
|
9742
9743
|
xe,
|
|
9743
9744
|
G,
|
|
9744
|
-
|
|
9745
|
+
p,
|
|
9745
9746
|
F,
|
|
9746
9747
|
Ce,
|
|
9747
9748
|
Se,
|
|
@@ -9752,10 +9753,10 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9752
9753
|
runtime: t,
|
|
9753
9754
|
render: ot,
|
|
9754
9755
|
definitions: Ee,
|
|
9755
|
-
locale:
|
|
9756
|
+
locale: p,
|
|
9756
9757
|
visible: !0,
|
|
9757
9758
|
mode: F,
|
|
9758
|
-
imageResolver:
|
|
9759
|
+
imageResolver: y,
|
|
9759
9760
|
validation: rt,
|
|
9760
9761
|
report: Y,
|
|
9761
9762
|
urlPolicy: u,
|
|
@@ -9769,10 +9770,10 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9769
9770
|
t,
|
|
9770
9771
|
ot,
|
|
9771
9772
|
Ee,
|
|
9772
|
-
|
|
9773
|
+
p,
|
|
9773
9774
|
Y,
|
|
9774
9775
|
u,
|
|
9775
|
-
|
|
9776
|
+
y,
|
|
9776
9777
|
F,
|
|
9777
9778
|
xe,
|
|
9778
9779
|
J,
|
|
@@ -9783,11 +9784,11 @@ function Mi({ document: e, runtime: t, capabilityGrants: n, authorScriptPaused:
|
|
|
9783
9784
|
Re
|
|
9784
9785
|
]);
|
|
9785
9786
|
return /* @__PURE__ */ U(ve, {
|
|
9786
|
-
locale:
|
|
9787
|
+
locale: p,
|
|
9787
9788
|
children: /* @__PURE__ */ W("article", {
|
|
9788
9789
|
ref: J,
|
|
9789
9790
|
className: `md-document local-document${F === "static" ? " local-static" : ""}`,
|
|
9790
|
-
lang:
|
|
9791
|
+
lang: p === "zh" ? "zh-CN" : "en",
|
|
9791
9792
|
"data-rmd-theme": Ye.name,
|
|
9792
9793
|
"data-rmd-document": "",
|
|
9793
9794
|
"data-rmd-snapshot-css": _e ? "" : void 0,
|