import { parseDef as n } from "../parseDef.js";
const p = (e, t) => {
  if (t.pipeStrategy === "input")
    return n(e.in._def, t);
  if (t.pipeStrategy === "output")
    return n(e.out._def, t);
  const r = n(e.in._def, {
    ...t,
    currentPath: [...t.currentPath, "allOf", "0"]
  }), u = n(e.out._def, {
    ...t,
    currentPath: [...t.currentPath, "allOf", r ? "1" : "0"]
  });
  return {
    allOf: [r, u].filter((a) => a !== void 0)
  };
};
export {
  p as parsePipelineDef
};
//# sourceMappingURL=pipeline.js.map
