import { normalize as p } from "../normalize.es.js";
import { DefinedInfo as c } from "./defined-info.es.js";
import { Schema as a } from "./schema.es.js";
function l(r) {
  const s = {}, t = {};
  for (const [e, m] of Object.entries(r.properties)) {
    const o = new c(
      e,
      r.transform(r.attributes || {}, e),
      m,
      r.space
    );
    r.mustUseProperty && r.mustUseProperty.includes(e) && (o.mustUseProperty = !0), s[e] = o, t[p(e)] = e, t[p(o.attribute)] = e;
  }
  return new a(s, t, r.space);
}
export {
  l as create
};
//# sourceMappingURL=create.es.js.map
