import { f as e, g as t, h as n, m as r, n as i, p as a, r as o, s, t as c } from "./chunk-XZSTWKYB-BZB_wvbZ.js";
//#region node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R5LLSJPH.mjs
var l = class extends c {
	static {
		e(this, "ArchitectureTokenBuilder");
	}
	constructor() {
		super(["architecture"]);
	}
}, u = class extends i {
	static {
		e(this, "ArchitectureValueConverter");
	}
	runCustomConverter(e, t, n) {
		if (e.name === "ARCH_ICON") return t.replace(/[()]/g, "").trim();
		if (e.name === "ARCH_TEXT_ICON") return t.replace(/["()]/g, "");
		if (e.name === "ARCH_TITLE") {
			let e = t.replace(/^\[|]$/g, "").trim();
			return (e.startsWith("\"") && e.endsWith("\"") || e.startsWith("'") && e.endsWith("'")) && (e = e.slice(1, -1), e = e.replace(/\\"/g, "\"").replace(/\\'/g, "'")), e.trim();
		}
	}
}, d = { parser: {
	TokenBuilder: /* @__PURE__ */ e(() => new l(), "TokenBuilder"),
	ValueConverter: /* @__PURE__ */ e(() => new u(), "ValueConverter")
} };
function f(e = a) {
	let i = r(t(e), s), c = r(n({ shared: i }), o, d);
	return i.ServiceRegistry.register(c), {
		shared: i,
		Architecture: c
	};
}
e(f, "createArchitectureServices");
//#endregion
export { f as n, d as t };

//# sourceMappingURL=chunk-R5LLSJPH-C90VQC8y.js.map