/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { BaseElement } from "./BaseElement.js";
function ValueElement(tag, definition, children) {
  definition = { ...definition };
  if (definition.constraint?.toString().toLowerCase() === "all") {
    delete definition.constraint;
  }
  for (const k of ["conformance", "quality", "access", "quality"]) {
    if (definition[k] === "") {
      delete definition[k];
    }
  }
  return BaseElement(tag, definition, children);
}
((ValueElement2) => {
  let Metatype;
  ((Metatype2) => {
    Metatype2[Metatype2["bool"] = 0] = "bool";
    Metatype2[Metatype2["map"] = 1] = "map";
  })(Metatype = ValueElement2.Metatype || (ValueElement2.Metatype = {}));
})(ValueElement || (ValueElement = {}));
export {
  ValueElement
};
//# sourceMappingURL=ValueElement.js.map
