import { _ as s } from "./mermaid.core-CYBWUA0z.js";
import { s as o } from "./transform-QfIdy88w.js";
var d = /* @__PURE__ */ s((t, e) => {
  let n;
  return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
}, "getDiagramElement");
export {
  d as g
};
