"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../utils/index.js");var t=require("../../utils/formatFileSize.js");exports.formatDescription=function(e,r){var n=[];if(e.length){var i=e.slice(-1)[0],s=e.slice(0,-1),o=s.length>0?" and ":"";n.push("Only ".concat(s.join(", ")).concat(o).concat(i," ")+"format".concat(s.length>0?"s":"","."))}return r&&n.push("".concat(t.formatFileSize(r)," max file size.")),n.join(" ")},exports.parseAccept=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t instanceof Array?t:t.split(",").map((function(t){return t.trim()})).filter((function(t){return!!t}));return{mimetypes:e.filter((function(t){return!t.startsWith(".")})),extensions:e.filter((function(t){return t.startsWith(".")}))}};
//# sourceMappingURL=utils.js.map
