import{dp as y,p as l,dq as m,h as u,az as g,c7 as d,bs as f,U as b}from"./index-46ma1THH.js";import{c}from"./complement-Cl658Mix.js";const o=y({String:"string",Integer:"integer",Float:"number",Boolean:"boolean","Array of Float":"arraynumber","Array of Integer":"arrayinteger","Array of String":"arraystring","Array of Boolean":"arrayboolean"}),B=p=>p.reduce((e,{name:r,description:t,required:s,type:i})=>{if(r==="")return e;const a=i[0];if(a.includes("Array")){const n=a.slice(a.lastIndexOf(" ")+1);e.properties[r]={description:t,type:"array",items:{type:o.getByKey(n)}}}else e.properties[r]={type:o.getByKey(a),...t?{description:t}:{description:""}};return s&&e.required.push(r),e},{properties:{},required:[]}),j=p=>Object.entries(p.properties).map(([e,{description:r,type:t,items:s}])=>({name:e,type:[o.getByValue(t+(s?s.type:""))],required:p.required.includes(e),description:r??""})),x=l(b("properties"),f,g(d(["type","description","items"])),m(c(u)));export{B as a,x as j,j as m,o as p};
