*/e.exports=contentDisposition;e.exports.parse=parse;var n=t(17).basename;var a=t(291).Buffer;var o=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;var i=/%[0-9A-Fa-f]{2}/;var f=/%([0-9A-Fa-f]{2})/g;var u=/[^\x20-\x7e\xa0-\xff]/g;var s=/\\([\u0000-\u007f])/g;var p=/([\\"])/g;varl=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g;varc=/^[\x20-\x7e\x80-\xff]+$/;varv=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;vard=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/;varx=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;functioncontentDisposition(e,r){vart=r||{};varn=t.type||"attachment";vara=createparams(e,t.fallback);returnformat(newContentDisposition(n,a))}functioncreateparams(e,r){if(e===undefined){return}vart={};if(typeofe!=="string"){thrownewTypeError("filename must be a string")}if(r===undefined){r=true}if(typeofr!=="string"&&typeofr!=="boolean"){thrownewTypeError("fallback must be a string or boolean")}if(typeofr==="string"&&u.test(r)){thrownewTypeError("fallback must be ISO-8859-1 string")}vara=n(e);varo=c.test(a);varf=typeofr!=="string"?r&&getlatin1(a):n(r);vars=typeoff==="string"&&f!==a;if(s||!o||i.test(a)){t["filename*"]=a}if(o||s){t.filename=s?f:a}returnt}functionformat(e){varr=e.parameters;vart=e.type;if(!t||typeoft!=="string"||!v.test(t)){thrownewTypeError("invalid type")}varn=String(t).toLowerCase();if(r&&typeofr==="object"){vara;varo=Object.keys(r).sort();for(vari=0;i<o.length;i++){a=o[i];varf=a.substr(-1)==="*"?ustring(r[a]):qstring(r[a]);n+="; "+a+"="+f}}returnn}functiondecodefield(e){varr=d.exec(e);if(!r){thrownewTypeError("invalid extended field value")}vart=r[1].toLowerCase();varn=r[2];varo;vari=n.replace(f,pdecode);switch(t){case"iso-8859-1":o=getlatin1(i);break;case"utf-8":o=a.from(i,"binary").toString("utf8");break;default:thrownewTypeError("unsupported charset in extended field")}returno}functiongetlatin1(e){returnString(e).replace(u,"?")}functionparse(e){if(!e||typeofe!=="string"){thrownewTypeError("argument string is required")}varr=x.exec(e);if(!r){thrownewTypeError("invalid type format")}vart=r[0].length;varn=r[1].toLowerCase();vara;varo=[];vari={};varf;t=l.lastIndex=r[0].substr(-1)===";"?t-1:t;while(r=l.exec(e)){if(r.index!==t){thrownewTypeError("invalid parameter format")}t+=r[0].length;a=r[1].toLowerCase();f=r[2];if(o.indexOf(a)!==-1){thrownewTypeError("invalid duplicate parameter")}o.push(a);if(a.indexOf("*")+1===a.length){a=a.slice(0,-1);f=decodefield(f);i[a]=f;continue}if(typeofi[a]==="string"){continue}if(f[0]==='"'){f=f.substr(1,f.length-2).replace(s,"$1")}i[a]=f}if(t!==-1&&t!==e.length){thrownewTypeError("invalid parameter format")}returnnewContentDisposition(n,i)}functionpdecode(e,r){returnString.fromCharCode(parseInt(r,16))}functionpencode(e){return"%"+String(e).charCodeAt(0).toString(16).toUpperCase()}functionqstring(e){varr=String(e);return'"'+r.replace(p,"\\$1")+'"'}functionustring(e){varr=String(e);vart=encodeURIComponent(r).replace(o,pencode);return"UTF-8''"+t}functionContentDisposition(e,r){this.type=e;this.parameters=r}},291:(e,r,t)=>{varn=t(300);vara=n.Buffer;functioncopyProps(e,r){for(vartine){r[t]=e[t]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,r);r.Buffer=SafeBuffer}functionSafeBuffer(e,r,t){returna(e,r,t)}copyProps(a,SafeBuffer);SafeBuffer.from=function(e,r,t){if(typeofe==="number"){thrownewTypeError("Argument must not be a number")}returna(e,r,t)};SafeBuffer.alloc=function(e,r,t){if(typeofe!=="number"){thrownewTypeError("Argument must be a number")}varn=a(e);if(r!==undefined){if(typeoft==="string"){n.fill(r,t)}else{n.fill(r)}}else{n.fill(0)}returnn};SafeBuffer.allocUnsafe=function(e){if(typeofe!=="number"){thrownewTypeError("Argument must be a number")}returna(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeofe!=="number"){thrownewTypeError("A