"use strict";const i=require("./index.cjs263.js"),d=require("./index.cjs226.js"),m=require("./index.cjs392.js"),h=require("./index.cjs393.js"),q=require("./index.cjs259.js"),w=require("./index.cjs229.js"),C=require("./index.cjs240.js"),b=require("./index.cjs256.js"),x=a=>{const e=w({},a);let{data:c,withXSRFToken:s,xsrfHeaderName:u,xsrfCookieName:l,headers:r,auth:t}=e;e.headers=r=C.from(r),e.url=b(q(e.baseURL,e.url,e.allowAbsoluteUrls),a.params,a.paramsSerializer),t&&r.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):"")));let n;if(d.isFormData(c)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((n=r.getContentType())!==!1){const[o,...f]=n?n.split(";").map(p=>p.trim()).filter(Boolean):[];r.setContentType([o||"multipart/form-data",...f].join("; "))}}if(i.hasStandardBrowserEnv&&(s&&d.isFunction(s)&&(s=s(e)),s||s!==!1&&m(e.url))){const o=u&&l&&h.read(l);o&&r.set(u,o)}return e};module.exports=x;
//# sourceMappingURL=index.cjs334.js.map
