"use strict";const r=require("./index.cjs227.js"),a=require("./index.cjs238.js"),p=require("./index.cjs308.js"),S=require("./index.cjs237.js"),h=require("./index.cjs309.js"),m=require("./index.cjs310.js"),O=require("./index.cjs232.js");function y(i,e,t){if(r.isString(i))try{return(e||JSON.parse)(i),r.trim(i)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(i)}const c={transitional:p,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,f=r.isObject(e);if(f&&r.isHTMLForm(e)&&(e=new FormData(e)),r.isFormData(e))return o?JSON.stringify(O(e)):e;if(r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)||r.isReadableStream(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(f){if(n.indexOf("application/x-www-form-urlencoded")>-1)return h(e,this.formSerializer).toString();if((s=r.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return S(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return f||o?(t.setContentType("application/json",!1),y(e)):e}],transformResponse:[function(e){const t=this.transitional||c.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(r.isResponse(e)||r.isReadableStream(e))return e;if(e&&r.isString(e)&&(n&&!this.responseType||o)){const u=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(s){if(u)throw s.name==="SyntaxError"?a.from(s,a.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:m.classes.FormData,Blob:m.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.forEach(["delete","get","head","post","put","patch"],i=>{c.headers[i]={}});module.exports=c;
//# sourceMappingURL=index.cjs231.js.map
