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, TreeViewGrammarGeneratedModule as s, __name as c } from "./chunk-K5T4RW27.js";
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.mjs
var l = class extends a {
	static {
		c(this, "TreeViewValueConverter");
	}
	runCustomConverter(e, t, n) {
		if (e.name === "INDENTATION") return t?.length || 0;
		if (e.name === "STRING2") return t.substring(1, t.length - 1);
	}
}, u = class extends i {
	static {
		c(this, "TreeViewTokenBuilder");
	}
	constructor() {
		super(["treeView-beta"]);
	}
}, d = { parser: {
	TokenBuilder: /* @__PURE__ */ c(() => new u(), "TokenBuilder"),
	ValueConverter: /* @__PURE__ */ c(() => new l(), "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,
		TreeView: c
	};
}
c(f, "createTreeViewServices");
//#endregion
export { d as TreeViewModule, f as createTreeViewServices };
