-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 36.7 KB
/
index.js
1
var x4=Object.create;var{defineProperty:_0,getPrototypeOf:k4,getOwnPropertyNames:j4}=Object;var b4=Object.prototype.hasOwnProperty;var v4=($,Z,G)=>{G=$!=null?x4(k4($)):{};const Q=Z||!$||!$.__esModule?_0(G,"default",{value:$,enumerable:!0}):G;for(let z of j4($))if(!b4.call(Q,z))_0(Q,z,{get:()=>$[z],enumerable:!0});return Q};var m0=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var m4=($,Z)=>{for(var G in Z)_0($,G,{get:Z[G],enumerable:!0,configurable:!0,set:(Q)=>Z[G]=()=>Q})};var d0=m0((Y5,g0)=>{var w=function($){if(!(this instanceof w))return new w($);if(this.parameters={},$ instanceof w)this.type=$.type,this.subtype=$.subtype,this.suffix=$.suffix,this.parameters=h0(this.parameters,$.parameters);else if(typeof $=="string"){var Z=y4.exec($);if(!Z)throw SyntaxError("Invalid Media Type: "+$);this.type=Z[1].toLowerCase(),this.subtype=Z[2].toLowerCase();var G=this.subtype.indexOf("+");if(G!=-1)this.suffix=this.subtype.slice(G+1);if(this.suffix.length)this.subtype=this.subtype.slice(0,G);var Q;N0.lastIndex=Z[1].length+1+Z[2].length;while(Q=H0($,N0,N0.lastIndex))this.parameters[Q[1].toLowerCase()]=c4(Q[2])}else if($&&typeof $=="object")h0(this,$);else if($===void 0);else throw new SyntaxError("Invalid Media Type: "+$)},h0=function($,Z){for(var G in Z)$[G]=Z[G];return $},f0=function($){var Z=$.type+"/"+$.subtype;if($.suffix)Z+="+"+$.suffix;return Z},u4=function($){if($==null)return'""';if(f4.test($))return $;return'"'+$.replace(g4,"\\$1")+'"'},c4=function($){if($[0]=='"')return $.slice(1,-1).replace(d4,"$1");return $},H0=function($,Z,G){Z.lastIndex=G;var Q=Z.exec($);if(Q==null||Q.index!=G)return Z.lastIndex=G,null;return Q},l4=function($,Z){for(var G in Z)if(G!="q"&&$[G]!=Z[G])return!1;return!0},p4=function($,Z){return Z.q-$.q},n4=function($,Z){if($.type==Z.type&&$.subtype==Z.subtype)return 0;if($.type=="*"&&$.subtype=="*")return 1;if(Z.type=="*"&&Z.subtype=="*")return-1;if($.subtype=="*"&&Z.subtype=="*")return 0;if($.subtype=="*")return 1;if(Z.subtype=="*")return-1;return 0},i4=function($,Z){return y0(Z.parameters)-y0($.parameters)},y0=function($){var Z=0;for(var G in $)if(G!="q")++Z;return Z};g0.exports=w;w.prototype.type="";w.prototype.subtype="";w.prototype.suffix="";Object.defineProperty(w.prototype,"name",{get:function(){return f0(this)},configurable:!0,enumerable:!0});Object.defineProperty(w.prototype,"q",{get:function(){var $=this.parameters.q;return $==null?1:Number($)},set:function($){this.parameters.q=$},configurable:!0,enumerable:!0});w.prototype.toString=function(){var $=f0(this);for(var Z in this.parameters){var G=this.parameters[Z];if(G!==void 0)$+="; "+Z+"="+u4(G)}return $};w.prototype.toJSON=w.prototype.toString;w.prototype.inspect=w.prototype.toString;w.prototype.match=function($){if(!($ instanceof w))$=new w($);var Z=!0;return Z=Z&&($.type=="*"||this.type==$.type),Z=Z&&($.subtype=="*"||this.subtype==$.subtype),Z=Z&&($.subtype=="*"&&$.suffix==""||this.suffix==$.suffix),Z=Z&&l4(this.parameters,$.parameters),Z};w.parse=w;w.stringify=function($){if($ instanceof w)return $.toString();return new w($).toString()};w.split=function($){var Z=[],G;V0.lastIndex=0;do Z.push((G=H0($,t,V0.lastIndex))?G[0]:"");while(H0($,V0,t.lastIndex));if(t.lastIndex!=$.length)Z[Z.length-1]+=$.slice(t.lastIndex);return Z};w.sort=function($){return $.slice().sort(w.comparator)};w.comparator=function($,Z){return p4($,Z)||n4($,Z)||i4($,Z)};var o="[-a-zA-Z0-9!#$%^&*_+{}\\|'.`~]+",h4='"[^\\\\"\0-\x1F\x7F]*(\\\\.[^\\\\"\0-\x1F\x7F]*)*"',s="("+o+")",V0=/\s*,\s*/g,I0="(?:\\s*;\\s*("+o+")=("+o+"|"+h4+"))",N0=new RegExp(I0,"g"),y4=new RegExp("^"+s+"/"+s+I0+"*$"),t=new RegExp(s+"/"+s+I0+"*","g"),f4=new RegExp("^"+o+"$"),g4=/([\\"])/g,d4=/\\(.)/g});var p0=m0((M,l0)=>{var s4=function($){return Q1(function(Z,G,Q){var z=a4(Q);if(G===!0)return Z.concat(z.map(function(X){return[X,null]}));else if(typeof G=="function")return Z.concat(z.map(function(X){return[X,G]}));else throw new TypeError(o4+G)},[],$)},a4=function($){switch($){case"json":return u0;case"xml":return c0;default:return[new m($)]}},r4=function($){if($.bodyUsed)return!1;if($.status===204||$.status===304)return!1;var Z=$.headers.get("content-type");return Z!=null&&Z!==""},e4=function($){try{return new m($)}catch(Z){if(Z instanceof SyntaxError||Z instanceof TypeError)return null;else throw Z}},$1=function($,Z){for(var G=0;G<$.length;++G)if(Z.match($[G][0]))return $[G][1]||Z1(Z);return null},Z1=function($){if($.type==="text")return M.text;if(u0.some($.match,$))return M.json;if(c0.some($.match,$))return M.text;return M.arrayBuffer},G1=function($,Z){return Object.defineProperty(Z,"response",{value:$,configurable:!0,writable:!0})},Q1=function($,Z,G){for(var Q in G)Z=$(Z,G[Q],Q);return Z},z1=function($,Z){for(var G in Z)$[G]=Z[G];return $},m=d0(),u0=["application/json","*/*+json"].map(m.parse),c0=["application/xml","text/xml","*/*+xml"].map(m.parse),t4=[[new m("*/*"),null]],o4="Parser not a function or true for default: ";M=l0.exports=function($,Z){return Z=Z==null?t4:s4(Z),z1(M.fetch.bind(null,$,Z),$)};M.fetch=function($,Z,G,Q){return $(G,Q).then(M.parse.bind(null,Z))};M.parse=function($,Z){if(!r4(Z))return Z;var G=e4(Z.headers.get("content-type"));if(G==null)return Z;var Q=$1($,G);return Q?Q(Z).then(M.set.bind(null,Z)):Z};M.arrayBuffer=function($){return $.arrayBuffer()};M.text=function($){return $.text()};M.json=function($){return $.text().then(function(Z){if(Z!=="")try{return JSON.parse(Z)}catch(G){throw M.set($,Z),G1($,G)}else return})};M.set=function($,Z){return Object.defineProperty($,"body",{value:Z,configurable:!0,writable:!0,enumerable:!0})}});var A4=v4(p0(),1);function h($,Z){return function G(){return $.apply(Z,arguments)}}var X1=function($){return $!==null&&!y($)&&$.constructor!==null&&!y($.constructor)&&E($.constructor.isBuffer)&&$.constructor.isBuffer($)},Y1=function($){let Z;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)Z=ArrayBuffer.isView($);else Z=$&&$.buffer&&t0($.buffer);return Z},f=function($,Z,{allOwnKeys:G=!1}={}){if($===null||typeof $==="undefined")return;let Q,z;if(typeof $!=="object")$=[$];if(j($))for(Q=0,z=$.length;Q<z;Q++)Z.call(null,$[Q],Q,$);else{const X=G?Object.getOwnPropertyNames($):Object.keys($),W=X.length;let B;for(Q=0;Q<W;Q++)B=X[Q],Z.call(null,$[B],B,$)}},s0=function($,Z){Z=Z.toLowerCase();const G=Object.keys($);let Q=G.length,z;while(Q-- >0)if(z=G[Q],Z===z.toLowerCase())return z;return null},F0=function(){const{caseless:$}=r0(this)&&this||{},Z={},G=(Q,z)=>{const X=$&&s0(Z,z)||z;if(a(Z[X])&&a(Q))Z[X]=F0(Z[X],Q);else if(a(Q))Z[X]=F0({},Q);else if(j(Q))Z[X]=Q.slice();else Z[X]=Q};for(let Q=0,z=arguments.length;Q<z;Q++)arguments[Q]&&f(arguments[Q],G);return Z},v1=function($){return!!($&&E($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])},{toString:W1}=Object.prototype,{getPrototypeOf:S0}=Object,r=(($)=>(Z)=>{const G=W1.call(Z);return $[G]||($[G]=G.slice(8,-1).toLowerCase())})(Object.create(null)),q=($)=>{return $=$.toLowerCase(),(Z)=>r(Z)===$},e=($)=>(Z)=>typeof Z===$,{isArray:j}=Array,y=e("undefined"),t0=q("ArrayBuffer"),J1=e("string"),E=e("function"),o0=e("number"),$0=($)=>$!==null&&typeof $==="object",B1=($)=>$===!0||$===!1,a=($)=>{if(r($)!=="object")return!1;const Z=S0($);return(Z===null||Z===Object.prototype||Object.getPrototypeOf(Z)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)},K1=q("Date"),_1=q("File"),V1=q("Blob"),N1=q("FileList"),H1=($)=>$0($)&&E($.pipe),I1=($)=>{let Z;return $&&(typeof FormData==="function"&&$ instanceof FormData||E($.append)&&((Z=r($))==="formdata"||Z==="object"&&E($.toString)&&$.toString()==="[object FormData]"))},w1=q("URLSearchParams"),F1=($)=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),a0=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),r0=($)=>!y($)&&$!==a0,S1=($,Z,G,{allOwnKeys:Q}={})=>{return f(Z,(z,X)=>{if(G&&E(z))$[X]=h(z,G);else $[X]=z},{allOwnKeys:Q}),$},M1=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},U1=($,Z,G,Q)=>{$.prototype=Object.create(Z.prototype,Q),$.prototype.constructor=$,Object.defineProperty($,"super",{value:Z.prototype}),G&&Object.assign($.prototype,G)},L1=($,Z,G,Q)=>{let z,X,W;const B={};if(Z=Z||{},$==null)return Z;do{z=Object.getOwnPropertyNames($),X=z.length;while(X-- >0)if(W=z[X],(!Q||Q(W,$,Z))&&!B[W])Z[W]=$[W],B[W]=!0;$=G!==!1&&S0($)}while($&&(!G||G($,Z))&&$!==Object.prototype);return Z},D1=($,Z,G)=>{if($=String($),G===void 0||G>$.length)G=$.length;G-=Z.length;const Q=$.indexOf(Z,G);return Q!==-1&&Q===G},P1=($)=>{if(!$)return null;if(j($))return $;let Z=$.length;if(!o0(Z))return null;const G=new Array(Z);while(Z-- >0)G[Z]=$[Z];return G},R1=(($)=>{return(Z)=>{return $&&Z instanceof $}})(typeof Uint8Array!=="undefined"&&S0(Uint8Array)),E1=($,Z)=>{const Q=($&&$[Symbol.iterator]).call($);let z;while((z=Q.next())&&!z.done){const X=z.value;Z.call($,X[0],X[1])}},q1=($,Z)=>{let G;const Q=[];while((G=$.exec(Z))!==null)Q.push(G);return Q},C1=q("HTMLFormElement"),O1=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function Z(G,Q,z){return Q.toUpperCase()+z})},n0=(({hasOwnProperty:$})=>(Z,G)=>$.call(Z,G))(Object.prototype),A1=q("RegExp"),e0=($,Z)=>{const G=Object.getOwnPropertyDescriptors($),Q={};f(G,(z,X)=>{let W;if((W=Z(z,X,$))!==!1)Q[X]=W||z}),Object.defineProperties($,Q)},T1=($)=>{e0($,(Z,G)=>{if(E($)&&["arguments","caller","callee"].indexOf(G)!==-1)return!1;const Q=$[G];if(!E(Q))return;if(Z.enumerable=!1,"writable"in Z){Z.writable=!1;return}if(!Z.set)Z.set=()=>{throw Error("Can not rewrite read-only method \'"+G+"\'")}})},x1=($,Z)=>{const G={},Q=(z)=>{z.forEach((X)=>{G[X]=!0})};return j($)?Q($):Q(String($).split(Z)),G},k1=()=>{},j1=($,Z)=>{return $=+$,Number.isFinite($)?$:Z},w0="abcdefghijklmnopqrstuvwxyz",i0="0123456789",$4={DIGIT:i0,ALPHA:w0,ALPHA_DIGIT:w0+w0.toUpperCase()+i0},b1=($=16,Z=$4.ALPHA_DIGIT)=>{let G="";const{length:Q}=Z;while($--)G+=Z[Math.random()*Q|0];return G},m1=($)=>{const Z=new Array(10),G=(Q,z)=>{if($0(Q)){if(Z.indexOf(Q)>=0)return;if(!("toJSON"in Q)){Z[z]=Q;const X=j(Q)?[]:{};return f(Q,(W,B)=>{const K=G(W,z+1);!y(K)&&(X[B]=K)}),Z[z]=void 0,X}}return Q};return G($,0)},h1=q("AsyncFunction"),y1=($)=>$&&($0($)||E($))&&E($.then)&&E($.catch),Y={isArray:j,isArrayBuffer:t0,isBuffer:X1,isFormData:I1,isArrayBufferView:Y1,isString:J1,isNumber:o0,isBoolean:B1,isObject:$0,isPlainObject:a,isUndefined:y,isDate:K1,isFile:_1,isBlob:V1,isRegExp:A1,isFunction:E,isStream:H1,isURLSearchParams:w1,isTypedArray:R1,isFileList:N1,forEach:f,merge:F0,extend:S1,trim:F1,stripBOM:M1,inherits:U1,toFlatObject:L1,kindOf:r,kindOfTest:q,endsWith:D1,toArray:P1,forEachEntry:E1,matchAll:q1,isHTMLForm:C1,hasOwnProperty:n0,hasOwnProp:n0,reduceDescriptors:e0,freezeMethods:T1,toObjectSet:x1,toCamelCase:O1,noop:k1,toFiniteNumber:j1,findKey:s0,global:a0,isContextDefined:r0,ALPHABET:$4,generateString:b1,isSpecCompliantForm:v1,toJSONObject:m1,isAsyncFn:h1,isThenable:y1};var b=function($,Z,G,Q,z){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=new Error().stack;this.message=$,this.name="AxiosError",Z&&(this.code=Z),G&&(this.config=G),Q&&(this.request=Q),z&&(this.response=z)};Y.inherits(b,Error,{toJSON:function $(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Z4=b.prototype,G4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(($)=>{G4[$]={value:$}});Object.defineProperties(b,G4);Object.defineProperty(Z4,"isAxiosError",{value:!0});b.from=($,Z,G,Q,z,X)=>{const W=Object.create(Z4);return Y.toFlatObject($,W,function B(K){return K!==Error.prototype},(B)=>{return B!=="isAxiosError"}),b.call(W,$.message,Z,G,Q,z),W.cause=$,W.name=$.name,X&&Object.assign(W,X),W};var I=b;var Z0=null;var M0=function($){return Y.isPlainObject($)||Y.isArray($)},z4=function($){return Y.endsWith($,"[]")?$.slice(0,-2):$},Q4=function($,Z,G){if(!$)return Z;return $.concat(Z).map(function Q(z,X){return z=z4(z),!G&&X?"["+z+"]":z}).join(G?".":"")},f1=function($){return Y.isArray($)&&!$.some(M0)},d1=function($,Z,G){if(!Y.isObject($))throw new TypeError("target must be an object");Z=Z||new(Z0||FormData),G=Y.toFlatObject(G,{metaTokens:!0,dots:!1,indexes:!1},!1,function N(H,L){return!Y.isUndefined(L[H])});const Q=G.metaTokens,z=G.visitor||_,X=G.dots,W=G.indexes,K=(G.Blob||typeof Blob!=="undefined"&&Blob)&&Y.isSpecCompliantForm(Z);if(!Y.isFunction(z))throw new TypeError("visitor must be a function");function V(N){if(N===null)return"";if(Y.isDate(N))return N.toISOString();if(!K&&Y.isBlob(N))throw new I("Blob is not supported. Use a Buffer instead.");if(Y.isArrayBuffer(N)||Y.isTypedArray(N))return K&&typeof Blob==="function"?new Blob([N]):Buffer.from(N);return N}function _(N,H,L){let D=N;if(N&&!L&&typeof N==="object"){if(Y.endsWith(H,"{}"))H=Q?H:H.slice(0,-2),N=JSON.stringify(N);else if(Y.isArray(N)&&f1(N)||(Y.isFileList(N)||Y.endsWith(H,"[]"))&&(D=Y.toArray(N)))return H=z4(H),D.forEach(function O(A,T4){!(Y.isUndefined(A)||A===null)&&Z.append(W===!0?Q4([H],T4,X):W===null?H:H+"[]",V(A))}),!1}if(M0(N))return!0;return Z.append(Q4(L,H,X),V(N)),!1}const J=[],U=Object.assign(g1,{defaultVisitor:_,convertValue:V,isVisitable:M0});function F(N,H){if(Y.isUndefined(N))return;if(J.indexOf(N)!==-1)throw Error("Circular reference detected in "+H.join("."));J.push(N),Y.forEach(N,function L(D,O){if((!(Y.isUndefined(D)||D===null)&&z.call(Z,D,Y.isString(O)?O.trim():O,H,U))===!0)F(D,H?H.concat(O):[O])}),J.pop()}if(!Y.isObject($))throw new TypeError("data must be an object");return F($),Z},g1=Y.toFlatObject(Y,{},null,function $(Z){return/^is[A-Z]/.test(Z)}),T=d1;var W4=function($){const Z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function G(Q){return Z[Q]})},X4=function($,Z){this._pairs=[],$&&T($,this,Z)},Y4=X4.prototype;Y4.append=function $(Z,G){this._pairs.push([Z,G])};Y4.toString=function $(Z){const G=Z?function(Q){return Z.call(this,Q,W4)}:W4;return this._pairs.map(function Q(z){return G(z[0])+"="+G(z[1])},"").join("&")};var G0=X4;var u1=function($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")};function g($,Z,G){if(!Z)return $;const Q=G&&G.encode||u1,z=G&&G.serialize;let X;if(z)X=z(Z,G);else X=Y.isURLSearchParams(Z)?Z.toString():new G0(Z,G).toString(Q);if(X){const W=$.indexOf("#");if(W!==-1)$=$.slice(0,W);$+=($.indexOf("?")===-1?"?":"&")+X}return $}class J4{constructor(){this.handlers=[]}use($,Z,G){return this.handlers.push({fulfilled:$,rejected:Z,synchronous:G?G.synchronous:!1,runWhen:G?G.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){Y.forEach(this.handlers,function Z(G){if(G!==null)$(G)})}}var U0=J4;var Q0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var B4=typeof URLSearchParams!=="undefined"?URLSearchParams:G0;var K4=typeof FormData!=="undefined"?FormData:null;var _4=typeof Blob!=="undefined"?Blob:null;var V4={isBrowser:!0,classes:{URLSearchParams:B4,FormData:K4,Blob:_4},protocols:["http","https","file","blob","url","data"]};var L0={};m4(L0,{hasStandardBrowserWebWorkerEnv:()=>{{return l1}},hasStandardBrowserEnv:()=>{{return c1}},hasBrowserEnv:()=>{{return N4}}});var N4=typeof window!=="undefined"&&typeof document!=="undefined",c1=(($)=>{return N4&&["ReactNative","NativeScript","NS"].indexOf($)<0})(typeof navigator!=="undefined"&&navigator.product),l1=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})();var P={...L0,...V4};function D0($,Z){return T($,new P.classes.URLSearchParams,Object.assign({visitor:function(G,Q,z,X){if(P.isNode&&Y.isBuffer(G))return this.append(Q,G.toString("base64")),!1;return X.defaultVisitor.apply(this,arguments)}},Z))}var p1=function($){return Y.matchAll(/\w+|\[(\w*)]/g,$).map((Z)=>{return Z[0]==="[]"?"":Z[1]||Z[0]})},n1=function($){const Z={},G=Object.keys($);let Q;const z=G.length;let X;for(Q=0;Q<z;Q++)X=G[Q],Z[X]=$[X];return Z},i1=function($){function Z(G,Q,z,X){let W=G[X++];if(W==="__proto__")return!0;const B=Number.isFinite(+W),K=X>=G.length;if(W=!W&&Y.isArray(z)?z.length:W,K){if(Y.hasOwnProp(z,W))z[W]=[z[W],Q];else z[W]=Q;return!B}if(!z[W]||!Y.isObject(z[W]))z[W]=[];if(Z(G,Q,z[W],X)&&Y.isArray(z[W]))z[W]=n1(z[W]);return!B}if(Y.isFormData($)&&Y.isFunction($.entries)){const G={};return Y.forEachEntry($,(Q,z)=>{Z(p1(Q),z,G,0)}),G}return null},z0=i1;var t1=function($,Z,G){if(Y.isString($))try{return(Z||JSON.parse)($),Y.trim($)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(G||JSON.stringify)($)},P0={transitional:Q0,adapter:["xhr","http"],transformRequest:[function $(Z,G){const Q=G.getContentType()||"",z=Q.indexOf("application/json")>-1,X=Y.isObject(Z);if(X&&Y.isHTMLForm(Z))Z=new FormData(Z);if(Y.isFormData(Z))return z?JSON.stringify(z0(Z)):Z;if(Y.isArrayBuffer(Z)||Y.isBuffer(Z)||Y.isStream(Z)||Y.isFile(Z)||Y.isBlob(Z))return Z;if(Y.isArrayBufferView(Z))return Z.buffer;if(Y.isURLSearchParams(Z))return G.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Z.toString();let B;if(X){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return D0(Z,this.formSerializer).toString();if((B=Y.isFileList(Z))||Q.indexOf("multipart/form-data")>-1){const K=this.env&&this.env.FormData;return T(B?{"files[]":Z}:Z,K&&new K,this.formSerializer)}}if(X||z)return G.setContentType("application/json",!1),t1(Z);return Z}],transformResponse:[function $(Z){const G=this.transitional||P0.transitional,Q=G&&G.forcedJSONParsing,z=this.responseType==="json";if(Z&&Y.isString(Z)&&(Q&&!this.responseType||z)){const W=!(G&&G.silentJSONParsing)&&z;try{return JSON.parse(Z)}catch(B){if(W){if(B.name==="SyntaxError")throw I.from(B,I.ERR_BAD_RESPONSE,this,null,this.response);throw B}}}return Z}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function $(Z){return Z>=200&&Z<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],($)=>{P0.headers[$]={}});var v=P0;var o1=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),H4=($)=>{const Z={};let G,Q,z;return $&&$.split("\n").forEach(function X(W){if(z=W.indexOf(":"),G=W.substring(0,z).trim().toLowerCase(),Q=W.substring(z+1).trim(),!G||Z[G]&&o1[G])return;if(G==="set-cookie")if(Z[G])Z[G].push(Q);else Z[G]=[Q];else Z[G]=Z[G]?Z[G]+", "+Q:Q}),Z};var d=function($){return $&&String($).trim().toLowerCase()},W0=function($){if($===!1||$==null)return $;return Y.isArray($)?$.map(W0):String($)},s1=function($){const Z=Object.create(null),G=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let Q;while(Q=G.exec($))Z[Q[1]]=Q[2];return Z},R0=function($,Z,G,Q,z){if(Y.isFunction(Q))return Q.call(this,Z,G);if(z)Z=G;if(!Y.isString(Z))return;if(Y.isString(Q))return Z.indexOf(Q)!==-1;if(Y.isRegExp(Q))return Q.test(Z)},r1=function($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Z,G,Q)=>{return G.toUpperCase()+Q})},e1=function($,Z){const G=Y.toCamelCase(" "+Z);["get","set","has"].forEach((Q)=>{Object.defineProperty($,Q+G,{value:function(z,X,W){return this[Q].call(this,Z,z,X,W)},configurable:!0})})},I4=Symbol("internals"),a1=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());class u{constructor($){$&&this.set($)}set($,Z,G){const Q=this;function z(W,B,K){const V=d(B);if(!V)throw new Error("header name must be a non-empty string");const _=Y.findKey(Q,V);if(!_||Q[_]===void 0||K===!0||K===void 0&&Q[_]!==!1)Q[_||B]=W0(W)}const X=(W,B)=>Y.forEach(W,(K,V)=>z(K,V,B));if(Y.isPlainObject($)||$ instanceof this.constructor)X($,Z);else if(Y.isString($)&&($=$.trim())&&!a1($))X(H4($),Z);else $!=null&&z(Z,$,G);return this}get($,Z){if($=d($),$){const G=Y.findKey(this,$);if(G){const Q=this[G];if(!Z)return Q;if(Z===!0)return s1(Q);if(Y.isFunction(Z))return Z.call(this,Q,G);if(Y.isRegExp(Z))return Z.exec(Q);throw new TypeError("parser must be boolean|regexp|function")}}}has($,Z){if($=d($),$){const G=Y.findKey(this,$);return!!(G&&this[G]!==void 0&&(!Z||R0(this,this[G],G,Z)))}return!1}delete($,Z){const G=this;let Q=!1;function z(X){if(X=d(X),X){const W=Y.findKey(G,X);if(W&&(!Z||R0(G,G[W],W,Z)))delete G[W],Q=!0}}if(Y.isArray($))$.forEach(z);else z($);return Q}clear($){const Z=Object.keys(this);let G=Z.length,Q=!1;while(G--){const z=Z[G];if(!$||R0(this,this[z],z,$,!0))delete this[z],Q=!0}return Q}normalize($){const Z=this,G={};return Y.forEach(this,(Q,z)=>{const X=Y.findKey(G,z);if(X){Z[X]=W0(Q),delete Z[z];return}const W=$?r1(z):String(z).trim();if(W!==z)delete Z[z];Z[W]=W0(Q),G[W]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){const Z=Object.create(null);return Y.forEach(this,(G,Q)=>{G!=null&&G!==!1&&(Z[Q]=$&&Y.isArray(G)?G.join(", "):G)}),Z}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,Z])=>$+": "+Z).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...Z){const G=new this($);return Z.forEach((Q)=>G.set(Q)),G}static accessor($){const G=(this[I4]=this[I4]={accessors:{}}).accessors,Q=this.prototype;function z(X){const W=d(X);if(!G[W])e1(Q,X),G[W]=!0}return Y.isArray($)?$.forEach(z):z($),this}}u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Y.reduceDescriptors(u.prototype,({value:$},Z)=>{let G=Z[0].toUpperCase()+Z.slice(1);return{get:()=>$,set(Q){this[G]=Q}}});Y.freezeMethods(u);var R=u;function c($,Z){const G=this||v,Q=Z||G,z=R.from(Q.headers);let X=Q.data;return Y.forEach($,function W(B){X=B.call(G,X,z.normalize(),Z?Z.status:void 0)}),z.normalize(),X}function l($){return!!($&&$.__CANCEL__)}var w4=function($,Z,G){I.call(this,$==null?"canceled":$,I.ERR_CANCELED,Z,G),this.name="CanceledError"};Y.inherits(w4,I,{__CANCEL__:!0});var x=w4;function E0($,Z,G){const Q=G.config.validateStatus;if(!G.status||!Q||Q(G.status))$(G);else Z(new I("Request failed with status code "+G.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(G.status/100)-4],G.config,G.request,G))}var F4=P.hasStandardBrowserEnv?{write($,Z,G,Q,z,X){const W=[$+"="+encodeURIComponent(Z)];Y.isNumber(G)&&W.push("expires="+new Date(G).toGMTString()),Y.isString(Q)&&W.push("path="+Q),Y.isString(z)&&W.push("domain="+z),X===!0&&W.push("secure"),document.cookie=W.join("; ")},read($){const Z=document.cookie.match(new RegExp("(^|;\\s*)("+$+")=([^;]*)"));return Z?decodeURIComponent(Z[3]):null},remove($){this.write($,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}};function q0($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function C0($,Z){return Z?$.replace(/\/?\/$/,"")+"/"+Z.replace(/^\/+/,""):$}function p($,Z){if($&&!q0(Z))return C0($,Z);return Z}var S4=P.hasStandardBrowserEnv?function $(){const Z=/(msie|trident)/i.test(navigator.userAgent),G=document.createElement("a");let Q;function z(X){let W=X;if(Z)G.setAttribute("href",W),W=G.href;return G.setAttribute("href",W),{href:G.href,protocol:G.protocol?G.protocol.replace(/:$/,""):"",host:G.host,search:G.search?G.search.replace(/^\?/,""):"",hash:G.hash?G.hash.replace(/^#/,""):"",hostname:G.hostname,port:G.port,pathname:G.pathname.charAt(0)==="/"?G.pathname:"/"+G.pathname}}return Q=z(window.location.href),function X(W){const B=Y.isString(W)?z(W):W;return B.protocol===Q.protocol&&B.host===Q.host}}():function $(){return function Z(){return!0}}();function O0($){const Z=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return Z&&Z[1]||""}var $5=function($,Z){$=$||10;const G=new Array($),Q=new Array($);let z=0,X=0,W;return Z=Z!==void 0?Z:1000,function B(K){const V=Date.now(),_=Q[X];if(!W)W=V;G[z]=K,Q[z]=V;let J=X,U=0;while(J!==z)U+=G[J++],J=J%$;if(z=(z+1)%$,z===X)X=(X+1)%$;if(V-W<Z)return;const F=_&&V-_;return F?Math.round(U*1000/F):void 0}},M4=$5;var U4=function($,Z){let G=0;const Q=M4(50,250);return(z)=>{const X=z.loaded,W=z.lengthComputable?z.total:void 0,B=X-G,K=Q(B),V=X<=W;G=X;const _={loaded:X,total:W,progress:W?X/W:void 0,bytes:B,rate:K?K:void 0,estimated:K&&W&&V?(W-X)/K:void 0,event:z};_[Z?"download":"upload"]=!0,$(_)}},Z5=typeof XMLHttpRequest!=="undefined",L4=Z5&&function($){return new Promise(function Z(G,Q){let z=$.data;const X=R.from($.headers).normalize();let{responseType:W,withXSRFToken:B}=$,K;function V(){if($.cancelToken)$.cancelToken.unsubscribe(K);if($.signal)$.signal.removeEventListener("abort",K)}let _;if(Y.isFormData(z)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)X.setContentType(!1);else if((_=X.getContentType())!==!1){const[H,...L]=_?_.split(";").map((D)=>D.trim()).filter(Boolean):[];X.setContentType([H||"multipart/form-data",...L].join("; "))}}let J=new XMLHttpRequest;if($.auth){const H=$.auth.username||"",L=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";X.set("Authorization","Basic "+btoa(H+":"+L))}const U=p($.baseURL,$.url);J.open($.method.toUpperCase(),g(U,$.params,$.paramsSerializer),!0),J.timeout=$.timeout;function F(){if(!J)return;const H=R.from("getAllResponseHeaders"in J&&J.getAllResponseHeaders()),D={data:!W||W==="text"||W==="json"?J.responseText:J.response,status:J.status,statusText:J.statusText,headers:H,config:$,request:J};E0(function O(A){G(A),V()},function O(A){Q(A),V()},D),J=null}if("onloadend"in J)J.onloadend=F;else J.onreadystatechange=function H(){if(!J||J.readyState!==4)return;if(J.status===0&&!(J.responseURL&&J.responseURL.indexOf("file:")===0))return;setTimeout(F)};if(J.onabort=function H(){if(!J)return;Q(new I("Request aborted",I.ECONNABORTED,$,J)),J=null},J.onerror=function H(){Q(new I("Network Error",I.ERR_NETWORK,$,J)),J=null},J.ontimeout=function H(){let L=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";const D=$.transitional||Q0;if($.timeoutErrorMessage)L=$.timeoutErrorMessage;Q(new I(L,D.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,$,J)),J=null},P.hasStandardBrowserEnv){if(B&&Y.isFunction(B)&&(B=B($)),B||B!==!1&&S4(U)){const H=$.xsrfHeaderName&&$.xsrfCookieName&&F4.read($.xsrfCookieName);if(H)X.set($.xsrfHeaderName,H)}}if(z===void 0&&X.setContentType(null),"setRequestHeader"in J)Y.forEach(X.toJSON(),function H(L,D){J.setRequestHeader(D,L)});if(!Y.isUndefined($.withCredentials))J.withCredentials=!!$.withCredentials;if(W&&W!=="json")J.responseType=$.responseType;if(typeof $.onDownloadProgress==="function")J.addEventListener("progress",U4($.onDownloadProgress,!0));if(typeof $.onUploadProgress==="function"&&J.upload)J.upload.addEventListener("progress",U4($.onUploadProgress));if($.cancelToken||$.signal){if(K=(H)=>{if(!J)return;Q(!H||H.type?new x(null,$,J):H),J.abort(),J=null},$.cancelToken&&$.cancelToken.subscribe(K),$.signal)$.signal.aborted?K():$.signal.addEventListener("abort",K)}const N=O0(U);if(N&&P.protocols.indexOf(N)===-1){Q(new I("Unsupported protocol "+N+":",I.ERR_BAD_REQUEST,$));return}J.send(z||null)})};var A0={http:Z0,xhr:L4};Y.forEach(A0,($,Z)=>{if($){try{Object.defineProperty($,"name",{value:Z})}catch(G){}Object.defineProperty($,"adapterName",{value:Z})}});var D4=($)=>`- ${$}`,G5=($)=>Y.isFunction($)||$===null||$===!1,X0={getAdapter:($)=>{$=Y.isArray($)?$:[$];const{length:Z}=$;let G,Q;const z={};for(let X=0;X<Z;X++){G=$[X];let W;if(Q=G,!G5(G)){if(Q=A0[(W=String(G)).toLowerCase()],Q===void 0)throw new I(`Unknown adapter '${W}'`)}if(Q)break;z[W||"#"+X]=Q}if(!Q){const X=Object.entries(z).map(([B,K])=>`adapter ${B} `+(K===!1?"is not supported by the environment":"is not available in the build"));let W=Z?X.length>1?"since :\n"+X.map(D4).join("\n"):" "+D4(X[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+W,"ERR_NOT_SUPPORT")}return Q},adapters:A0};var T0=function($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new x(null,$)};function Y0($){if(T0($),$.headers=R.from($.headers),$.data=c.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return X0.getAdapter($.adapter||v.adapter)($).then(function G(Q){return T0($),Q.data=c.call($,$.transformResponse,Q),Q.headers=R.from(Q.headers),Q},function G(Q){if(!l(Q)){if(T0($),Q&&Q.response)Q.response.data=c.call($,$.transformResponse,Q.response),Q.response.headers=R.from(Q.response.headers)}return Promise.reject(Q)})}var P4=($)=>$ instanceof R?{...$}:$;function C($,Z){Z=Z||{};const G={};function Q(V,_,J){if(Y.isPlainObject(V)&&Y.isPlainObject(_))return Y.merge.call({caseless:J},V,_);else if(Y.isPlainObject(_))return Y.merge({},_);else if(Y.isArray(_))return _.slice();return _}function z(V,_,J){if(!Y.isUndefined(_))return Q(V,_,J);else if(!Y.isUndefined(V))return Q(void 0,V,J)}function X(V,_){if(!Y.isUndefined(_))return Q(void 0,_)}function W(V,_){if(!Y.isUndefined(_))return Q(void 0,_);else if(!Y.isUndefined(V))return Q(void 0,V)}function B(V,_,J){if(J in Z)return Q(V,_);else if(J in $)return Q(void 0,V)}const K={url:X,method:X,data:X,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:B,headers:(V,_)=>z(P4(V),P4(_),!0)};return Y.forEach(Object.keys(Object.assign({},$,Z)),function V(_){const J=K[_]||z,U=J($[_],Z[_],_);Y.isUndefined(U)&&J!==B||(G[_]=U)}),G}var J0="1.6.8";var Q5=function($,Z,G){if(typeof $!=="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const Q=Object.keys($);let z=Q.length;while(z-- >0){const X=Q[z],W=Z[X];if(W){const B=$[X],K=B===void 0||W(B,X,$);if(K!==!0)throw new I("option "+X+" must be "+K,I.ERR_BAD_OPTION_VALUE);continue}if(G!==!0)throw new I("Unknown option "+X,I.ERR_BAD_OPTION)}},x0={};["object","boolean","number","function","string","symbol"].forEach(($,Z)=>{x0[$]=function G(Q){return typeof Q===$||"a"+(Z<1?"n ":" ")+$}});var R4={};x0.transitional=function $(Z,G,Q){function z(X,W){return"[Axios v"+J0+"] Transitional option \'"+X+"\'"+W+(Q?". "+Q:"")}return(X,W,B)=>{if(Z===!1)throw new I(z(W," has been removed"+(G?" in "+G:"")),I.ERR_DEPRECATED);if(G&&!R4[W])R4[W]=!0,console.warn(z(W," has been deprecated since v"+G+" and will be removed in the near future"));return Z?Z(X,W,B):!0}};var B0={assertOptions:Q5,validators:x0};var k=B0.validators;class n{constructor($){this.defaults=$,this.interceptors={request:new U0,response:new U0}}async request($,Z){try{return await this._request($,Z)}catch(G){if(G instanceof Error){let Q;Error.captureStackTrace?Error.captureStackTrace(Q={}):Q=new Error;const z=Q.stack?Q.stack.replace(/^.+\n/,""):"";if(!G.stack)G.stack=z;else if(z&&!String(G.stack).endsWith(z.replace(/^.+\n.+\n/,"")))G.stack+="\n"+z}throw G}}_request($,Z){if(typeof $==="string")Z=Z||{},Z.url=$;else Z=$||{};Z=C(this.defaults,Z);const{transitional:G,paramsSerializer:Q,headers:z}=Z;if(G!==void 0)B0.assertOptions(G,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1);if(Q!=null)if(Y.isFunction(Q))Z.paramsSerializer={serialize:Q};else B0.assertOptions(Q,{encode:k.function,serialize:k.function},!0);Z.method=(Z.method||this.defaults.method||"get").toLowerCase();let X=z&&Y.merge(z.common,z[Z.method]);z&&Y.forEach(["delete","get","head","post","put","patch","common"],(F)=>{delete z[F]}),Z.headers=R.concat(X,z);const W=[];let B=!0;this.interceptors.request.forEach(function F(N){if(typeof N.runWhen==="function"&&N.runWhen(Z)===!1)return;B=B&&N.synchronous,W.unshift(N.fulfilled,N.rejected)});const K=[];this.interceptors.response.forEach(function F(N){K.push(N.fulfilled,N.rejected)});let V,_=0,J;if(!B){const F=[Y0.bind(this),void 0];F.unshift.apply(F,W),F.push.apply(F,K),J=F.length,V=Promise.resolve(Z);while(_<J)V=V.then(F[_++],F[_++]);return V}J=W.length;let U=Z;_=0;while(_<J){const F=W[_++],N=W[_++];try{U=F(U)}catch(H){N.call(this,H);break}}try{V=Y0.call(this,U)}catch(F){return Promise.reject(F)}_=0,J=K.length;while(_<J)V=V.then(K[_++],K[_++]);return V}getUri($){$=C(this.defaults,$);const Z=p($.baseURL,$.url);return g(Z,$.params,$.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function $(Z){n.prototype[Z]=function(G,Q){return this.request(C(Q||{},{method:Z,url:G,data:(Q||{}).data}))}});Y.forEach(["post","put","patch"],function $(Z){function G(Q){return function z(X,W,B){return this.request(C(B||{},{method:Z,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:X,data:W}))}}n.prototype[Z]=G(),n.prototype[Z+"Form"]=G(!0)});var i=n;class k0{constructor($){if(typeof $!=="function")throw new TypeError("executor must be a function.");let Z;this.promise=new Promise(function Q(z){Z=z});const G=this;this.promise.then((Q)=>{if(!G._listeners)return;let z=G._listeners.length;while(z-- >0)G._listeners[z](Q);G._listeners=null}),this.promise.then=(Q)=>{let z;const X=new Promise((W)=>{G.subscribe(W),z=W}).then(Q);return X.cancel=function W(){G.unsubscribe(z)},X},$(function Q(z,X,W){if(G.reason)return;G.reason=new x(z,X,W),Z(G.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;const Z=this._listeners.indexOf($);if(Z!==-1)this._listeners.splice(Z,1)}static source(){let $;return{token:new k0(function G(Q){$=Q}),cancel:$}}}var E4=k0;function j0($){return function Z(G){return $.apply(null,G)}}function b0($){return Y.isObject($)&&$.isAxiosError===!0}var v0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(v0).forEach(([$,Z])=>{v0[Z]=$});var q4=v0;var C4=function($){const Z=new i($),G=h(i.prototype.request,Z);return Y.extend(G,i.prototype,Z,{allOwnKeys:!0}),Y.extend(G,Z,null,{allOwnKeys:!0}),G.create=function Q(z){return C4(C($,z))},G},S=C4(v);S.Axios=i;S.CanceledError=x;S.CancelToken=E4;S.isCancel=l;S.VERSION=J0;S.toFormData=T;S.AxiosError=I;S.Cancel=S.CanceledError;S.all=function $(Z){return Promise.all(Z)};S.spread=j0;S.isAxiosError=b0;S.mergeConfig=C;S.AxiosHeaders=R;S.formToJSON=($)=>z0(Y.isHTMLForm($)?new FormData($):$);S.getAdapter=X0.getAdapter;S.HttpStatusCode=q4;S.default=S;var O4=S;var{Axios:h6,AxiosError:K0,CanceledError:y6,isCancel:f6,CancelToken:g6,VERSION:d6,all:u6,Cancel:c6,isAxiosError:l6,spread:p6,toFormData:n6,AxiosHeaders:i6,HttpStatusCode:t6,formToJSON:o6,getAdapter:s6,mergeConfig:a6}=O4;var z5=function($){const Z={};for(let G in $)if($[G]!==void 0)Z[G]=$[G];return Z};function W5($){return $=A4.default($),async(Z)=>{const G=new URL(Z.url,Z.baseURL);if(Z.params)Object.keys(Z.params).forEach((K)=>G.searchParams.append(K,Z.params[K]));let Q={};const z={method:Z.method,body:Z.data==null?null:Z.data,headers:z5(Z.headers),credentials:Z.withCredentials?"include":"same-origin"},X=new Request(G.toString(),z);let W;try{W=await Promise.race([$(G.toString(),z),new Promise((K,V)=>setTimeout(()=>V(new Error("timeout")),5000))]);for(let K of W.headers.keys())Q[K]=W.headers.get(K);if(!W.ok){const K={data:W.body,status:W.status,statusText:W.statusText,headers:Q,config:Z,request:X};throw new K0(`Request failed with status code ${W.status}`,W.status.toString(),Z,X,K)}}catch(K){if(K instanceof K0)throw K;throw new K0(`An error occurred while making the request. Error: ${K.message}`,"777 (FETCH_ERROR)",Z,X)}return{data:W.body,status:W.status,statusText:W.statusText,headers:Q,config:Z,request:X}}}export{W5 as default};