import { createDefaultCoreModule as e, createDefaultSharedCoreModule as t } from "../../../../../langium/lib/default-module.js";
import { inject as n } from "../../../../../langium/lib/dependency-injection.js";
import { EmptyFileSystem as r } from "../../../../../langium/lib/workspace/file-system-provider.js";
import { AbstractMermaidTokenBuilder as i, AbstractMermaidValueConverter as a, MermaidGeneratedSharedModule as o, PieGrammarGeneratedModule as s, __name as c } from "./chunk-K5T4RW27.js";
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.mjs
var l = class extends i {
	static {
		c(this, "PieTokenBuilder");
	}
	constructor() {
		super(["pie", "showData"]);
	}
}, u = class extends a {
	static {
		c(this, "PieValueConverter");
	}
	runCustomConverter(e, t, n) {
		if (e.name === "PIE_SECTION_LABEL") return t.replace(/"/g, "").trim();
	}
}, d = { parser: {
	TokenBuilder: /* @__PURE__ */ c(() => new l(), "TokenBuilder"),
	ValueConverter: /* @__PURE__ */ c(() => new u(), "ValueConverter")
} };
function f(i = r) {
	let a = n(t(i), o), c = n(e({ shared: a }), s, d);
	return a.ServiceRegistry.register(c), {
		shared: a,
		Pie: c
	};
}
c(f, "createPieServices");
//#endregion
export { d as PieModule, f as createPieServices };
