"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const chunkAGHRB4JF = require("./dist-chunks-mermaid.core-chunk-AGHRB4JF.cjs");
require("../d3-transition/src-selection-index.cjs");
require("../d3-zoom/src-transform.cjs");
const select = require("../d3-selection/src-select.cjs");
var getDiagramElement = /* @__PURE__ */ chunkAGHRB4JF.__name((id, securityLevel) => {
  let sandboxElement;
  if (securityLevel === "sandbox") {
    sandboxElement = select.default("#i" + id);
  }
  const root = securityLevel === "sandbox" ? select.default(sandboxElement.nodes()[0].contentDocument.body) : select.default("body");
  const svg = root.select(`[id="${id}"]`);
  return svg;
}, "getDiagramElement");
exports.getDiagramElement = getDiagramElement;
//# sourceMappingURL=dist-chunks-mermaid.core-chunk-55IACEB6.cjs.map
