"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),r=require("papaparse"),n=require("read-excel-file");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(e),s=a(t),c=a(n),f=function(){var e=u.default(s.default.mark((function e(t){var n,a;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return n=e.sent,e.next=5,n.text();case 5:return a=e.sent,e.abrupt("return",(u=a,r.parse(u,{header:!0,dynamicTyping:!0,skipEmptyLines:!0}).data));case 7:case"end":return e.stop()}var u}),e)})));return function(t){return e.apply(this,arguments)}}(),i=function(){var e=u.default(s.default.mark((function e(t){var r,n;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.text();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=u.default(s.default.mark((function e(t){var r,n,a;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.arrayBuffer();case 5:return n=e.sent,e.next=8,c.default(n);case 8:return a=e.sent,e.abrupt("return",null==a?void 0:a.map((function(e){return null==e?void 0:e.map((function(e){return String(e||"")}))})));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();exports.getCsvData=f,exports.getTextData=i,exports.getXlsxData=o;
//# sourceMappingURL=utils.js.map
