import{__exports as a}from"../../../../_virtual/calculateMaximumColumnWidths.mjs";import{__require as e}from"../../../string-width/index.mjs";import{__require as t}from"./utils.mjs";var l;function i(){return l||(l=1,function(l){var i=a&&a.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(l,"__esModule",{value:!0}),l.calculateMaximumColumnWidths=l.calculateMaximumCellWidth=void 0;const r=i(e()),u=t();l.calculateMaximumCellWidth=a=>Math.max(...a.split("\n").map(r.default));l.calculateMaximumColumnWidths=(a,e=[])=>{const t=new Array(a[0].length).fill(0),i=e.map(u.calculateRangeCoordinate);return a.forEach((a,e)=>{a.forEach((a,r)=>{((a,e)=>i.some(t=>(0,u.isCellInRange)({col:e,row:a},t)))(e,r)||(t[r]=Math.max(t[r],(0,l.calculateMaximumCellWidth)(a)))})}),t}}(a)),a}export{i as __require};