text: (()=>{var br=Object.create;var V=Object.defineProperty;var Or=Object.getOwnPropertyDescriptor;var Pr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var qr=r=>V(r,"__esModule",{value:!0});var v=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Tr=(r,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Pr(e))!Sr.call(r,n)&&n!=="default"&&V(r,n,{get:()=>e[n],enumerable:!(t=Or(e,n))||t.enumerable});return r},Ir=r=>Tr(qr(V(r!=null?br(Cr(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var W=v((Pt,ye)=>{"use strict";ye.exports=function(e,t){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(t,i)}}});var A=v((Ct,Ae)=>{"use strict";var Nr=W(),P=Object.prototype.toString;function X(r){return P.call(r)==="[object Array]"}function Q(r){return typeof r=="undefined"}function Hr(r){return r!==null&&!Q(r)&&r.constructor!==null&&!Q(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function Lr(r){return P.call(r)==="[object ArrayBuffer]"}function Mr(r){return typeof FormData!="undefined"&&r instanceof FormData}function Ur(r){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&r.buffer instanceof ArrayBuffer,e}function Dr(r){return typeof r=="string"}function Br(r){return typeof r=="number"}function xe(r){return r!==null&&typeof r=="object"}function L(r){if(P.call(r)!=="[object Object]")return!1;var e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}function Fr(r){return P.call(r)==="[object Date]"}function jr(r){return P.call(r)==="[object File]"}function _r(r){return P.call(r)==="[object Blob]"}function Re(r){return P.call(r)==="[object Function]"}function kr(r){return xe(r)&&Re(r.pipe)}function Kr(r){return typeof URLSearchParams!="undefined"&&r instanceof URLSearchParams}function $r(r){return r.replace(/^\s*/,"").replace(/\s*$/,"")}function zr(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function G(r,e){if(!(r===null||typeof r=="undefined"))if(typeof r!="object"&&(r=[r]),X(r))for(var t=0,n=r.length;t<n;t++)e.call(null,r[t],t,r);else for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.call(null,r[i],i,r)}function Y(){var r={};function e(i,s){L(r[s])&&L(i)?r[s]=Y(r[s],i):L(i)?r[s]=Y({},i):X(i)?r[s]=i.slice():r[s]=i}for(var t=0,n=arguments.length;t<n;t++)G(arguments[t],e);return r}function Jr(r,e,t){return G(e,function(i,s){t&&typeof i=="function"?r[s]=Nr(i,t):r[s]=i}),r}function Vr(r){return r.charCodeAt(0)===65279&&(r=r.slice(1)),r}Ae.exports={isArray:X,isArrayBuffer:Lr,isBuffer:Hr,isFormData:Mr,isArrayBufferView:Ur,isString:Dr,isNumber:Br,isObject:xe,isPlainObject:L,isUndefined:Q,isDate:Fr,isFile:jr,isBlob:_r,isFunction:Re,isStream:kr,isURLSearchParams:Kr,isStandardBrowserEnv:zr,forEach:G,merge:Y,extend:Jr,trim:$r,stripBOM:Vr}});var Z=v((St,Ee)=>{"use strict";var q=A();function we(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ee.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(q.isURLSearchParams(t))i=t.toString();else{var s=[];q.forEach(t,function(u,c){u===null||typeof u=="undefined"||(q.isArray(u)?c=c+"[]":u=[u],q.forEach(u,function(m){q.isDate(m)?m=m.toISOString():q.isObject(m)&&(m=JSON.stringify(m)),s.push(we(c)+"="+we(m))}))}),i=s.join("&")}if(i){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var be=v((qt,ge)=>{"use strict";var Wr=A();function M(){this.handlers=[]}M.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1};M.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};M.prototype.forEach=function(e){Wr.forEach(this.handlers,function(n){n!==null&&e(n)})};ge.exports=M});var Pe=v((Tt,Oe)=>{"use strict";var Xr=A();Oe.exports=function(e,t,n){return Xr.forEach(n,function(s){e=s(e,t)}),e}});var ee=v((It,Ce)=>{"use strict";Ce.exports=function(e){return!!(e&&e.__CANCEL__)}});var qe=v((Nt,Se)=>{"use strict";var Qr=A();Se.exports=function(e,t){Qr.forEach(e,function(i,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[s])})}});var Ie=v((Ht,Te)=>{"use strict";Te.exports=function(e,t,n,i,s){return e.config=t,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.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:this.config,code:this.code}},e}});var re=v((Lt,Ne)=>{"use strict";var Gr=Ie();Ne.exports=function(e,t,n,i,s){var a=new Error(e);return Gr(a,t,n,i,s)}});var Le=v((Mt,He)=>{"use strict";var Yr=re();He.exports=function(e,t,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(Yr("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Ue=v((Ut,Me)=>{"use strict";var U=A();Me.exports=U.isStandardBrowserEnv()?function(){return{write:function(t,n,i,s,a,o){var u=[];u.push(t+"="+encodeURIComponent(n)),U.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),U.isString(s)&&u.push("path="+s),U.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Be=v((Dt,De)=>{"use strict";De.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var je=v((Bt,Fe)=>{"use strict";Fe.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}});var ke=v((Ft,_e)=>{"use strict";var Zr=Be(),et=je();_e.exports=function(e,t){return e&&!Zr(t)?et(e,t):t}});var $e=v((jt,Ke)=>{"use strict";var te=A(),rt=["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"];Ke.exports=function(e){var t={},n,i,s;return e&&te.forEach(e.split(`
  `),function(o){if(s=o.indexOf(":"),n=te.trim(o.substr(0,s)).toLowerCase(),i=te.trim(o.substr(s+1)),n){if(t[n]&&rt.indexOf(n)>=0)return;n==="set-cookie"?t[n]=(t[n]?t[n]:[]).concat([i]):t[n]=t[n]?t[n]+", "+i:i}}),t}});var Ve=v((_t,Je)=>{"use strict";var ze=A();Je.exports=ze.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){var a=s;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(a){var o=ze.isString(a)?i(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}()});var ie=v((kt,We)=>{"use strict";var D=A(),tt=Le(),nt=Ue(),it=Z(),st=ke(),ot=$e(),at=Ve(),ne=re();We.exports=function(e){return new Promise(function(n,i){var s=e.data,a=e.headers;D.isFormData(s)&&delete a["Content-Type"];var o=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(u+":"+c)}var l=st(e.baseURL,e.url);if(o.open(e.method.toUpperCase(),it(l,e.params,e.paramsSerializer),!0),o.timeout=e.timeout,o.onreadystatechange=function(){if(!(!o||o.readyState!==4)&&!(o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0))){var f="getAllResponseHeaders"in o?ot(o.getAllResponseHeaders()):null,h=!e.responseType||e.responseType==="text"?o.responseText:o.response,y={data:h,status:o.status,statusText:o.statusText,headers:f,config:e,request:o};tt(n,i,y),o=null}},o.onabort=function(){!o||(i(ne("Request aborted",e,"ECONNABORTED",o)),o=null)},o.onerror=function(){i(ne("Network Error",e,null,o)),o=null},o.ontimeout=function(){var f="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),i(ne(f,e,"ECONNABORTED",o)),o=null},D.isStandardBrowserEnv()){var m=(e.withCredentials||at(l))&&e.xsrfCookieName?nt.read(e.xsrfCookieName):void 0;m&&(a[e.xsrfHeaderName]=m)}if("setRequestHeader"in o&&D.forEach(a,function(f,h){typeof s=="undefined"&&h.toLowerCase()==="content-type"?delete a[h]:o.setRequestHeader(h,f)}),D.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),e.responseType)try{o.responseType=e.responseType}catch(d){if(e.responseType!=="json")throw d}typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(f){!o||(o.abort(),i(f),o=null)}),s||(s=null),o.send(s)})}});var se=v((Kt,Ge)=>{"use strict";var w=A(),Xe=qe(),ut={"Content-Type":"application/x-www-form-urlencoded"};function Qe(r,e){!w.isUndefined(r)&&w.isUndefined(r["Content-Type"])&&(r["Content-Type"]=e)}function ft(){var r;return typeof XMLHttpRequest!="undefined"?r=ie():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(r=ie()),r}var B={adapter:ft(),transformRequest:[function(e,t){return Xe(t,"Accept"),Xe(t,"Content-Type"),w.isFormData(e)||w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)?e:w.isArrayBufferView(e)?e.buffer:w.isURLSearchParams(e)?(Qe(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):w.isObject(e)?(Qe(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};B.headers={common:{Accept:"application/json, text/plain, */*"}};w.forEach(["delete","get","head"],function(e){B.headers[e]={}});w.forEach(["post","put","patch"],function(e){B.headers[e]=w.merge(ut)});Ge.exports=B});var er=v(($t,Ze)=>{"use strict";var Ye=A(),oe=Pe(),ct=ee(),lt=se();function ae(r){r.cancelToken&&r.cancelToken.throwIfRequested()}Ze.exports=function(e){ae(e),e.headers=e.headers||{},e.data=oe(e.data,e.headers,e.transformRequest),e.headers=Ye.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Ye.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var t=e.adapter||lt.adapter;return t(e).then(function(i){return ae(e),i.data=oe(i.data,i.headers,e.transformResponse),i},function(i){return ct(i)||(ae(e),i&&i.response&&(i.response.data=oe(i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var ue=v((zt,rr)=>{"use strict";var x=A();rr.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function u(d,f){return x.isPlainObject(d)&&x.isPlainObject(f)?x.merge(d,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function c(d){x.isUndefined(t[d])?x.isUndefined(e[d])||(n[d]=u(void 0,e[d])):n[d]=u(e[d],t[d])}x.forEach(i,function(f){x.isUndefined(t[f])||(n[f]=u(void 0,t[f]))}),x.forEach(s,c),x.forEach(a,function(f){x.isUndefined(t[f])?x.isUndefined(e[f])||(n[f]=u(void 0,e[f])):n[f]=u(void 0,t[f])}),x.forEach(o,function(f){f in t?n[f]=u(e[f],t[f]):f in e&&(n[f]=u(void 0,e[f]))});var l=i.concat(s).concat(a).concat(o),m=Object.keys(e).concat(Object.keys(t)).filter(function(f){return l.indexOf(f)===-1});return x.forEach(m,c),n}});var sr=v((Jt,ir)=>{"use strict";var tr=A(),pt=Z(),nr=be(),dt=er(),F=ue();function N(r){this.defaults=r,this.interceptors={request:new nr,response:new nr}}N.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=F(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[dt,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(s){t.unshift(s.fulfilled,s.rejected)}),this.interceptors.response.forEach(function(s){t.push(s.fulfilled,s.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};N.prototype.getUri=function(e){return e=F(this.defaults,e),pt(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};tr.forEach(["delete","get","head","options"],function(e){N.prototype[e]=function(t,n){return this.request(F(n||{},{method:e,url:t,data:(n||{}).data}))}});tr.forEach(["post","put","patch"],function(e){N.prototype[e]=function(t,n,i){return this.request(F(i||{},{method:e,url:t,data:n}))}});ir.exports=N});var ce=v((Vt,or)=>{"use strict";function fe(r){this.message=r}fe.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};fe.prototype.__CANCEL__=!0;or.exports=fe});var ur=v((Wt,ar)=>{"use strict";var ht=ce();function j(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var t=this;r(function(i){t.reason||(t.reason=new ht(i),e(t.reason))})}j.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};j.source=function(){var e,t=new j(function(i){e=i});return{token:t,cancel:e}};ar.exports=j});var cr=v((Xt,fr)=>{"use strict";fr.exports=function(e){return function(n){return e.apply(null,n)}}});var pr=v((Qt,lr)=>{"use strict";lr.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var mr=v((Gt,le)=>{"use strict";var dr=A(),mt=W(),_=sr(),vt=ue(),yt=se();function hr(r){var e=new _(r),t=mt(_.prototype.request,e);return dr.extend(t,_.prototype,e),dr.extend(t,e),t}var E=hr(yt);E.Axios=_;E.create=function(e){return hr(vt(E.defaults,e))};E.Cancel=ce();E.CancelToken=ur();E.isCancel=ee();E.all=function(e){return Promise.all(e)};E.spread=cr();E.isAxiosError=pr();le.exports=E;le.exports.default=E});var yr=v((Yt,vr)=>{vr.exports=mr()});var he=Ir(yr());var pe=["get","GET","delete","DELETE","head","HEAD","options","OPTIONS","post","POST","put","PUT","patch","PATCH","purge","PURGE","link","LINK","unlink","UNLINK"];function xt(r){for(var e=[],t=0;t<r.length;){var n=r[t];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:t,value:r[t++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:r[t++]});continue}if(n==="{"){e.push({type:"OPEN",index:t,value:r[t++]});continue}if(n==="}"){e.push({type:"CLOSE",index:t,value:r[t++]});continue}if(n===":"){for(var i="",s=t+1;s<r.length;){var a=r.charCodeAt(s);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=r[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=s;continue}if(n==="("){var o=1,u="",s=t+1;if(r[s]==="?")throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<r.length;){if(r[s]==="\\"){u+=r[s++]+r[s++];continue}if(r[s]===")"){if(o--,o===0){s++;break}}else if(r[s]==="("&&(o++,r[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+s);u+=r[s++]}if(o)throw new TypeError("Unbalanced pattern at "+t);if(!u)throw new TypeError("Missing pattern at "+t);e.push({type:"PATTERN",index:t,value:u}),t=s;continue}e.push({type:"CHAR",index:t,value:r[t++]})}return e.push({type:"END",index:t,value:""}),e}function Rt(r,e){e===void 0&&(e={});for(var t=xt(r),n=e.prefixes,i=n===void 0?"./":n,s="[^"+T(e.delimiter||"/#?")+"]+?",a=[],o=0,u=0,c="",l=function(b){if(u<t.length&&t[u].type===b)return t[u++].value},m=function(b){var I=l(b);if(I!==void 0)return I;var ve=t[u],Er=ve.type,gr=ve.index;throw new TypeError("Unexpected "+Er+" at "+gr+", expected "+b)},d=function(){for(var b="",I;I=l("CHAR")||l("ESCAPED_CHAR");)b+=I;return b};u<t.length;){var f=l("CHAR"),h=l("NAME"),y=l("PATTERN");if(h||y){var p=f||"";i.indexOf(p)===-1&&(c+=p,p=""),c&&(a.push(c),c=""),a.push({name:h||o++,prefix:p,suffix:"",pattern:y||s,modifier:l("MODIFIER")||""});continue}var R=f||l("ESCAPED_CHAR");if(R){c+=R;continue}c&&(a.push(c),c="");var g=l("OPEN");if(g){var p=d(),S=l("NAME")||"",O=l("PATTERN")||"",J=d();m("CLOSE"),a.push({name:S||(O?o++:""),pattern:S&&!O?s:O,prefix:p,suffix:J,modifier:l("MODIFIER")||""});continue}m("END")}return a}function T(r){return r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function xr(r){return r&&r.sensitive?"":"i"}function At(r,e){if(!e)return r;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=t.exec(r.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=t.exec(r.source);return r}function wt(r,e,t){var n=r.map(function(i){return de(i,e,t).source});return new RegExp("(?:"+n.join("|")+")",xr(t))}function Et(r,e,t){return gt(Rt(r,t),e,t)}function gt(r,e,t){t===void 0&&(t={});for(var n=t.strict,i=n===void 0?!1:n,s=t.start,a=s===void 0?!0:s,o=t.end,u=o===void 0?!0:o,c=t.encode,l=c===void 0?function(b){return b}:c,m="["+T(t.endsWith||"")+"]|$",d="["+T(t.delimiter||"/#?")+"]",f=a?"^":"",h=0,y=r;h<y.length;h++){var p=y[h];if(typeof p=="string")f+=T(l(p));else{var R=T(l(p.prefix)),g=T(l(p.suffix));if(p.pattern)if(e&&e.push(p),R||g)if(p.modifier==="+"||p.modifier==="*"){var S=p.modifier==="*"?"?":"";f+="(?:"+R+"((?:"+p.pattern+")(?:"+g+R+"(?:"+p.pattern+"))*)"+g+")"+S}else f+="(?:"+R+"("+p.pattern+")"+g+")"+p.modifier;else f+="("+p.pattern+")"+p.modifier;else f+="(?:"+R+g+")"+p.modifier}}if(u)i||(f+=d+"?"),f+=t.endsWith?"(?="+m+")":"$";else{var O=r[r.length-1],J=typeof O=="string"?d.indexOf(O[O.length-1])>-1:O===void 0;i||(f+="(?:"+d+"(?="+m+"))?"),J||(f+="(?="+d+"|"+m+")")}return new RegExp(f,xr(t))}function de(r,e,t){return r instanceof RegExp?At(r,e):Array.isArray(r)?wt(r,e,t):Et(r,e,t)}function Rr({hooks:r,baseURL:e,url:t,modules:n,APIs:i,...s}){return{hooks:r,modules:n,APIs:i,axiosOptions:s,baseURL:e,url:t}}function Ar(r){let{url:e,payload:t={},...n}=r,i=[],s=e,a=JSON.parse(JSON.stringify(t));if(a&&typeof a=="object"){if(s?.includes(":")&&de(s,i),i.length>0)for(let u of i){let c=a[u.name]??"";["string","number","boolean"].includes(typeof c)?["number","boolean"].includes(typeof c)&&(c=c.toString()):c=JSON.stringify(c),s=e.replace(`:${u.name}`,c)}let o=i.map(u=>u.name);a=Object.entries(a).reduce((u,[c,l])=>(o.includes(c)||(u[c]=l),u),{})}return{payload:a,url:s,...n}}var k=Symbol(),wr=Symbol(),K=Symbol(),$=Symbol(),C=Symbol(),z=Symbol(),hn,mn,vn,yn,xn,Rn,H=class{[hn];[mn];[vn]=new Map;[yn]=new Map;[xn]={success:[],fail:[],before:[],after:[],beforeTransform:[]};[Rn]="";constructor(e,t){let{hooks:n,modules:i,APIs:s,axiosOptions:a,baseURL:o,url:u}=Rr(e);if(this[wr]=e,this[k]=(()=>t?t[k]:he.default.create(Object.assign(a,{baseURL:o||u})))(),this[z]=(()=>t&&(t[z]+o||u)||"")(),t&&t[C])for(let c of Object.entries(t[C])){let l=c[0],m=c[1];this[C][l]?.push(...m)}if(n)for(let c of Object.entries(n)){let l=c[0],m=Array.isArray(c[1])?c[1]:[c[1]];this[C][l]?.push(...m)}if(s)for(let[c,l]of Object.entries(s)){let m=(()=>typeof l=="function"?l:typeof l=="boolean"&&l?H.defineAPI({}):H.defineAPI(l))();this[K].set(c,m(this,c))}if(i)for(let[c,l]of Object.entries(i))this[$].set(c,bt(l,this))}static defineAPI(e={}){return(t,n)=>new Proxy(async s=>{let a=null,o={success:[],fail:[],before:[],after:[],beforeTransform:[]},{hooks:u,...c}=e;if(o.before.push(function(y){let{url:p,...R}=y;return{url:(()=>p&&["http","https"].some(S=>p.startsWith(S))?p:`${t[z]}${p??""}`)(),...R}}),o.before.push(function(y){let{method:p,...R}=y;return{method:(()=>{if(!p&&pe.includes(n))return n;if(p&&!pe.includes(p))throw new TypeError(`${n} \u63A5\u53E3 method \u5B57\u6BB5\u7684\u503C\uFF0C\u4E0D\u80FD\u4F5C\u4E3A method \u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528\u6B63\u786E\u7684 Method \u5B57\u6BB5`);return p})(),...R}}),t[C])for(let h of Object.entries(t[C])){let y=h[0],p=h[1];o[y]?.push(...p)}if(u)for(let h of Object.entries(u)){let y=h[0],p=Array.isArray(h[1])?h[1]:[h[1]];o[y]?.push(...p)}o.before.push(Ar);let l=o.before.reduce((h,y)=>y(h),{payload:s,hooks:o,...c}),{payload:m,hooks:d,...f}=l;["get"].includes(f.method.toLowerCase())?f.params=m:f.data=m;try{let h=await t[k].request(f);a=d.success.reduce(async(y,p)=>[await p(...y),l],[h,l])}catch(h){a=d.fail.reduce(async(y,p)=>[await p(...y),l],[h,l])}return d.after.forEach(h=>{h(l)}),a},{apply(s,a,o){return s(...o)},get(s,a){if(typeof a=="string")return e[a]}})}static createHttp(e,t){let n=new H(e,t),i=()=>{};return new Proxy(i,{get:(a,o)=>{let u=Reflect.get(n,K),c=Reflect.get(n,$);return u.has(o)?u.get(o):c.has(o)?c.get(o):Reflect.get(n,o)},deleteProperty:function(a,o){let u=Reflect.get(n,K),c=Reflect.get(n,$);return u.has(o)&&u.delete(o),c.has(o)&&c.delete(o),!0},apply:function(a,o,u){return he.default.request(u[0])}})}},me=H;hn=wr,mn=k,vn=K,yn=$,xn=C,Rn=z;var pn=me.defineAPI,bt=me.createHttp;})();
  