import { _ as i, g as c, h as n, m as a, n as u, r as l, s as o, t as d, v as h } from "./chunk-K5T4RW27.js";
var m = class extends d {
  static {
    a(this, "ArchitectureTokenBuilder");
  }
  constructor() {
    super(["architecture"]);
  }
}, A = class extends u {
  static {
    a(this, "ArchitectureValueConverter");
  }
  runCustomConverter(t, r, s) {
    if (t.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim();
    if (t.name === "ARCH_TEXT_ICON") return r.replace(/["()]/g, "");
    if (t.name === "ARCH_TITLE") {
      let e = r.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();
    }
  }
}, C = { parser: {
  TokenBuilder: /* @__PURE__ */ a(() => new m(), "TokenBuilder"),
  ValueConverter: /* @__PURE__ */ a(() => new A(), "ValueConverter")
} };
function v(t = n) {
  const r = c(h(t), o), s = c(i({ shared: r }), l, C);
  return r.ServiceRegistry.register(s), {
    shared: r,
    Architecture: s
  };
}
a(v, "createArchitectureServices");
export {
  v as n,
  C as t
};

//# sourceMappingURL=chunk-7N4EOEYR.js.map