function e(e){return!!(e&&typeof e[`!ref`]==`string`&&e[`!ref`].length>0)}function t(t,n,r){if(!n)return`(Sheet "${r}" is missing from the workbook.)`;if(!e(n))return``;try{return t.utils.sheet_to_csv(n)}catch{return`(Could not read sheet "${r}".)`}}export{t as n,e as t};