import{__exports as r}from"../../../../_virtual/makeStreamConfig.mjs";import{__require as e}from"./utils.mjs";import{__require as t}from"./validateConfig.mjs";var o;function i(){if(o)return r;o=1,Object.defineProperty(r,"__esModule",{value:!0}),r.makeStreamConfig=void 0;const i=e(),a=t(),n=(r,e={},t)=>Array.from({length:r}).map((r,o)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",wrapWord:!1,...t,...e[o]}));return r.makeStreamConfig=r=>{if((0,a.validateConfig)("streamConfig.json",r),void 0===r.columnDefault.width)throw new Error("Must provide config.columnDefault.width when creating a stream.");return{drawVerticalLine:()=>!0,...r,border:(0,i.makeBorderConfig)(r.border),columns:n(r.columnCount,r.columns,r.columnDefault)}},r}export{i as __require};