First commit.

Signed-off-by: Chen Xiao <abigwc@gmail.com>
This commit is contained in:
Chen Xiao
2026-05-08 14:43:16 +08:00
commit 0b64e2de94
10989 changed files with 2253791 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import {
getConfig2
} from "./chunk-6YWVU24R.js";
import {
__name,
select_default
} from "./chunk-XOKMXDAB.js";
// node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.mjs
var selectSvgElement = __name((id) => {
var _a;
const { securityLevel } = getConfig2();
let root = select_default("body");
if (securityLevel === "sandbox") {
const sandboxElement = select_default(`#i${id}`);
const doc = ((_a = sandboxElement.node()) == null ? void 0 : _a.contentDocument) ?? document;
root = select_default(doc.body);
}
const svg = root.select(`#${id}`);
return svg;
}, "selectSvgElement");
export {
selectSvgElement
};
//# sourceMappingURL=chunk-QBIGODNM.js.map