import { b as c } from "./chunk-JRCVYDCD.js";
import { Type as r } from "@sinclair/typebox";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function g(e) {
  return e.type === "object";
}
function u({ title: e, children: t, category: o = "settings", metadata: a, options: i }) {
  return g(t) ? r.Composite([r.Object({}), t], { title: e, metadata: { category: o, group: !0, ...a }, ...i }) : r.Object(t, { title: e, ...i, metadata: { category: o, group: !0, ...a } });
}
function f(e, t) {
  let o = { ...c, ...e }, { alignSelf: a, grow: i, ...n } = o, l = { ...n, ...t?.noAlignSelf ? {} : { alignSelf: a }, ...t?.noGrow ? {} : { grow: i } };
  return r.Object(l, { ...t, additionalProperties: !1 });
}
var m = r.Array;
export {
  u as a,
  f as c,
  m as d
};
//# sourceMappingURL=chunk-6PGAWO4H.js.map
