import { package_default } from "./chunk-DR5Q36YT.js";
import { __name, log } from "./chunk-AGHRB4JF.js";
import { configureSvgSize } from "./chunk-ABZYJK2D.js";
import { selectSvgElement } from "./chunk-EXTU4WIE.js";
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
var parser = { parse: /* @__PURE__ */ __name(async (e) => {
	let o = await parse("info", e);
	log.debug(o);
}, "parse") }, DEFAULT_INFO_DB = { version: package_default.version + "" }, diagram = {
	parser,
	db: { getVersion: /* @__PURE__ */ __name(() => DEFAULT_INFO_DB.version, "getVersion") },
	renderer: { draw: /* @__PURE__ */ __name((e, o, s) => {
		log.debug("rendering info diagram\n" + e);
		let c = selectSvgElement(o);
		configureSvgSize(c, 100, 400, !0), c.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${s}`);
	}, "draw") }
};
export { diagram };
