allinssl/build/static/js/index-BVkzzSq5.js

2 lines
57 KiB
JavaScript

var e=Object.defineProperty,t=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r);import{D as n,E as r,bq as o,F as s,d as i,H as a,P as l,T as c,I as u,K as f,br as d,l as p,bs as h,aN as m,M as y,ax as g,r as w,aw as b,_ as v,a0 as E,a1 as x,bj as S,bt as O,bu as R,bv as C,bw as T,c as A,a2 as _,bx as j,b2 as k,b8 as P,by as B,bd as N,f as U,bf as F,aP as D,x as L,aQ as z,a6 as M}from"./main-DxBfl9jt.js";const q=n([n("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),r("spin-container","\n position: relative;\n ",[r("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[o()])]),r("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),r("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[s("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),r("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),r("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[s("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]),I={small:20,medium:18,large:16},H=i({name:"Spin",props:Object.assign(Object.assign({},f.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=u(e),r=f("Spin","-spin",q,d,e,t),o=p((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:o}=r.value,{opacitySpinning:s,color:i,textColor:a}=o;return{"--n-bezier":n,"--n-opacity-spinning":s,"--n-size":"number"==typeof t?h(t):o[m("size",t)],"--n-color":i,"--n-text-color":a}})),s=n?y("spin",p((()=>{const{size:t}=e;return"number"==typeof t?String(t):t[0]})),o,e):void 0,i=g(e,["spinning","show"]),a=w(!1);return b((t=>{let n;if(i.value){const{delay:r}=e;if(r)return n=window.setTimeout((()=>{a.value=!0}),r),void t((()=>{clearTimeout(n)}))}a.value=i.value})),{mergedClsPrefix:t,active:a,mergedStrokeWidth:p((()=>{const{strokeWidth:t}=e;if(void 0!==t)return t;const{size:n}=e;return I["number"==typeof n?"medium":n]})),cssVars:n?void 0:o,themeClass:null==s?void 0:s.themeClass,onRender:null==s?void 0:s.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,s=n.icon&&this.rotate,i=(o||n.description)&&a("div",{class:`${r}-spin-description`},o||(null===(e=n.description)||void 0===e?void 0:e.call(n))),u=n.icon?a("div",{class:[`${r}-spin-body`,this.themeClass]},a("div",{class:[`${r}-spin`,s&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),i):a("div",{class:[`${r}-spin-body`,this.themeClass]},a(l,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),i);return null===(t=this.onRender)||void 0===t||t.call(this),n.default?a("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},a("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),a(c,{name:"fade-in-transition"},{default:()=>this.active?u:null})):u}}),$={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},W=i({name:"CheckmarkCircle24Filled",render:function(e,t){return E(),v("svg",$,t[0]||(t[0]=[x("g",{fill:"none"},[x("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm3.22 6.97l-4.47 4.47l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5a.75.75 0 1 0-1.06-1.06z",fill:"currentColor"})],-1)]))}}),J={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},V=i({name:"ErrorCircle24Filled",render:function(e,t){return E(),v("svg",J,t[0]||(t[0]=[x("g",{fill:"none"},[x("path",{d:"M12 2c5.523 0 10 4.478 10 10s-4.477 10-10 10S2 17.522 2 12S6.477 2 12 2zm.002 13.004a.999.999 0 1 0 0 1.997a.999.999 0 0 0 0-1.997zM12 7a1 1 0 0 0-.993.884L11 8l.002 5.001l.007.117a1 1 0 0 0 1.986 0l.007-.117L13 8l-.007-.117A1 1 0 0 0 12 7z",fill:"currentColor"})],-1)]))}}),K={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},X=i({name:"Info24Filled",render:function(e,t){return E(),v("svg",K,t[0]||(t[0]=[x("g",{fill:"none"},[x("path",{d:"M12 1.999c5.524 0 10.002 4.478 10.002 10.002c0 5.523-4.478 10.001-10.002 10.001C6.476 22.002 2 17.524 2 12.001C1.999 6.477 6.476 1.999 12 1.999zm-.004 8.25a1 1 0 0 0-.992.885l-.007.116l.004 5.502l.006.117a1 1 0 0 0 1.987-.002L13 16.75l-.004-5.501l-.007-.117a1 1 0 0 0-.994-.882zm.005-3.749a1.251 1.251 0 1 0 0 2.503A1.251 1.251 0 0 0 12 6.5z",fill:"currentColor"})],-1)]))}});function G(e){const t=T(),n=w(e||{}),r=S(),o=e=>{const{type:n="warning",title:o,area:s,content:i,draggable:l=!0,confirmText:c="确定",cancelText:u="取消",confirmButtonProps:f={type:"primary"},cancelButtonProps:d={type:"default"},maskClosable:p=!1,closeOnEsc:h=!1,autoFocus:m=!1,onConfirm:y,onCancel:g,onClose:w,onMaskClick:b,...v}=e,E={title:o,content:()=>(()=>{if(!i)return"";const e=a("div",{class:"flex pt-[0.4rem]"},[(e=>{const t={info:[A(X,{class:"text-primary"},null)],success:[A(W,{class:"text-success"},null)],warning:[A(X,{class:"text-warning"},null)],error:[A(V,{class:"text-error"},null)]};return a(_,{size:30,class:"n-dialog__icon"},(()=>t[e][0]))})(n),a("div",{class:"w-full pt-1 flex items-center"},"string"==typeof i?i:i())]);return t?e:a(C,{type:n},(()=>e))})(),style:s?"string"==typeof s?{width:s,height:"auto"}:{width:s[0],height:s[1]}:{width:"35rem",height:"auto"},draggable:l,maskClosable:p,showIcon:!1,closeOnEsc:h,autoFocus:m,positiveText:c,negativeText:u,positiveButtonProps:f,negativeButtonProps:d,onPositiveClick:y,onNegativeClick:g,onClose:w,onMaskClick:b,...v};if(t){const e=O();return r.value=e.create(E),r.value}const{dialog:x}=R(["dialog"]);return r.value=x.create(E),r.value},s={create:o,options:n,update:e=>(n.value=e,o(e)),success:(e,t={})=>o({...t,type:"success",content:e,showIcon:!0}),warning:(e,t={})=>o({...t,type:"warning",content:e}),error:(e,t={})=>o({...t,type:"error",content:e}),info:(e,t={})=>o({...t,type:"info",content:e}),request:(e,t={})=>o({...t,type:e.status?"success":"error",content:e.message}),destroyAll:()=>{var e;null==(e=r.value)||e.destroyAll()}};return e?Object.assign(o(e),s):s}const Q={text:"正在加载中,请稍后 ...",description:"",color:"",size:"small",stroke:"",show:!0,fullscreen:!0,background:"rgba(0, 0, 0, 0.5)",zIndex:2e3},Y=(e={})=>{const t=w({...Q,...e}),n=w(!1);let r=null,o=null;const s=()=>{const{target:e}=t.value;if(!e)return document.body;if("string"==typeof e){return document.querySelector(e)||document.body}return e},i=()=>{if(!n.value)return;const e=(()=>{o&&(document.body.removeChild(o),o=null),o=document.createElement("div");const e=s(),n={position:t.value.fullscreen?"fixed":"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:t.value.background,zIndex:t.value.zIndex,...t.value.customStyle||{}};if(!t.value.fullscreen&&e&&e!==document.body){const t=e.getBoundingClientRect();Object.assign(n,{top:`${t.top}px`,left:`${t.left}px`,width:`${t.width}px`,height:`${t.height}px`,position:"fixed"})}return Object.keys(n).forEach((e=>{o.style[e]=n[e]})),t.value.customClass&&(o.className=t.value.customClass),document.body.appendChild(o),o})(),i=A("div",{style:{display:"flex",alignItems:"center",padding:"16px 24px",backgroundColor:"#fff",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}},[A(H,{description:t.value.description,size:t.value.size,stroke:t.value.stroke,style:{marginRight:"12px"},...t.value.spinProps||{}}),A("span",{style:{fontSize:"14px",color:"#333"}},t.value.text)]);r=i,j(r,e)},a=()=>{var e,r;n.value=!1,o&&(j(null,o),document.body.removeChild(o),o=null),null==(r=(e=t.value).onClose)||r.call(e)};return{open:e=>{e&&(t.value={...t.value,...e}),n.value=!0,i()},close:a,update:e=>{t.value={...t.value,...e},n.value&&i()},destroy:()=>{a(),r=null}}};function Z(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return B(n)?t:k((function(t,r){return e(n,t,r)}));case 2:return B(n)&&B(r)?t:B(n)?k((function(t,n){return e(t,r,n)})):B(r)?k((function(t,r){return e(n,t,r)})):P((function(t){return e(n,r,t)}));default:return B(n)&&B(r)&&B(o)?t:B(n)&&B(r)?k((function(t,n){return e(t,n,o)})):B(n)&&B(o)?k((function(t,n){return e(t,r,n)})):B(r)&&B(o)?k((function(t,r){return e(n,t,r)})):B(n)?P((function(t){return e(t,r,o)})):B(r)?P((function(t){return e(n,t,o)})):B(o)?P((function(t){return e(n,r,t)})):e(n,r,o)}}}var ee=P((function(e){return function(){return e}}));function te(e){return e}var ne=P(te),re=Z((function(e,t,n){return N(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const oe=w([]),se={showMessage:!0,reportError:!0,autoAnalyze:!0,showDialog:!1},ie=e=>"AxiosError"===e.name?{type:"network",level:"error",summary:e.message,details:{message:e.message}}:e instanceof TypeError&&e.message.includes("network")?{type:"network",level:"error",summary:"网络请求错误",details:{message:e.message}}:e instanceof Error?{type:"runtime",level:"error",summary:e.message,details:{stack:e.stack,name:e.name}}:"object"==typeof e&&null!==e&&"code"in e?{type:"business",level:"warning",summary:"业务处理错误,请联系管理员",details:e}:"object"==typeof e&&null!==e&&Array.isArray(e)?{type:"validation",level:"warning",summary:"数据验证错误",details:{message:"数据验证错误,请检查输入内容"}}:"string"==typeof e?{type:"runtime",level:"error",summary:e,details:{message:e}}:{type:"runtime",level:"error",summary:"未知错误",details:{message:(null==e?void 0:e.message)||"未知错误"}},ae=(e={})=>{const t={...se,...e},n=(e,t)=>"boolean"!=typeof e&&(e=>"object"==typeof e&&null!==e&&"message"in e)(e)?e.message:t,r={collect:e=>{oe.value.push({...e,timestamp:Date.now()})},report:(e=oe.value)=>{t.reportError&&t.reportHandler&&t.reportHandler(e)},clear:()=>{oe.value=[]},analyze:e=>{const t=ie(e);return{message:t.summary,type:t.type,metadata:t.details,timestamp:Date.now()}}};return{handleError:(e,o)=>{const s=U();let i;if("boolean"==typeof e)return{default:t=>n(e,t)};if(i=t.autoAnalyze&&"object"==typeof e&&null!==e&&"message"in e?r.analyze(e):e,i.timestamp=Date.now(),oe.value.push(i),t.showMessage){const t=ie(e);switch(t.level){case"error":s.error(t.details.message||t.summary);break;case"warning":s.warning(t.details.message||t.summary);break;case"info":s.info(i.message||t.summary)}}return t.showDialog,t.customHandler&&t.customHandler(i),{errorInfo:i,...s,default:t=>n(e,t)}},collector:r,errorQueue:oe}};var le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ue(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var fe={exports:{}};var de={exports:{}};const pe=ue(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var he;function me(){return he||(he=1,de.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==le&&le.crypto&&(n=le.crypto),!n)try{n=pe}catch(m){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},i=s.lib={},a=i.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=i.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var s=0;s<o;s++){var i=n[s>>>2]>>>24-s%4*8&255;t[r+s>>>2]|=i<<24-(r+s)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=s.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,s=r.sigBytes,i=this.blockSize,a=s/(4*i),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,u=e.min(4*c,s);if(c){for(var f=0;f<c;f+=i)this._doProcessBlock(o,f);n=o.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=s.algo={};return s}(Math),e)),de.exports;var e}var ye,ge;const we=ce(ye?fe.exports:(ye=1,fe.exports=(ge=me(),function(e){var t=ge,n=t.lib,r=n.WordArray,o=n.Hasher,s=t.algo,i=[];!function(){for(var t=0;t<64;t++)i[t]=4294967296*e.abs(e.sin(t+1))|0}();var a=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var s=this._hash.words,a=e[t+0],d=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],y=e[t+5],g=e[t+6],w=e[t+7],b=e[t+8],v=e[t+9],E=e[t+10],x=e[t+11],S=e[t+12],O=e[t+13],R=e[t+14],C=e[t+15],T=s[0],A=s[1],_=s[2],j=s[3];T=l(T,A,_,j,a,7,i[0]),j=l(j,T,A,_,d,12,i[1]),_=l(_,j,T,A,p,17,i[2]),A=l(A,_,j,T,h,22,i[3]),T=l(T,A,_,j,m,7,i[4]),j=l(j,T,A,_,y,12,i[5]),_=l(_,j,T,A,g,17,i[6]),A=l(A,_,j,T,w,22,i[7]),T=l(T,A,_,j,b,7,i[8]),j=l(j,T,A,_,v,12,i[9]),_=l(_,j,T,A,E,17,i[10]),A=l(A,_,j,T,x,22,i[11]),T=l(T,A,_,j,S,7,i[12]),j=l(j,T,A,_,O,12,i[13]),_=l(_,j,T,A,R,17,i[14]),T=c(T,A=l(A,_,j,T,C,22,i[15]),_,j,d,5,i[16]),j=c(j,T,A,_,g,9,i[17]),_=c(_,j,T,A,x,14,i[18]),A=c(A,_,j,T,a,20,i[19]),T=c(T,A,_,j,y,5,i[20]),j=c(j,T,A,_,E,9,i[21]),_=c(_,j,T,A,C,14,i[22]),A=c(A,_,j,T,m,20,i[23]),T=c(T,A,_,j,v,5,i[24]),j=c(j,T,A,_,R,9,i[25]),_=c(_,j,T,A,h,14,i[26]),A=c(A,_,j,T,b,20,i[27]),T=c(T,A,_,j,O,5,i[28]),j=c(j,T,A,_,p,9,i[29]),_=c(_,j,T,A,w,14,i[30]),T=u(T,A=c(A,_,j,T,S,20,i[31]),_,j,y,4,i[32]),j=u(j,T,A,_,b,11,i[33]),_=u(_,j,T,A,x,16,i[34]),A=u(A,_,j,T,R,23,i[35]),T=u(T,A,_,j,d,4,i[36]),j=u(j,T,A,_,m,11,i[37]),_=u(_,j,T,A,w,16,i[38]),A=u(A,_,j,T,E,23,i[39]),T=u(T,A,_,j,O,4,i[40]),j=u(j,T,A,_,a,11,i[41]),_=u(_,j,T,A,h,16,i[42]),A=u(A,_,j,T,g,23,i[43]),T=u(T,A,_,j,v,4,i[44]),j=u(j,T,A,_,S,11,i[45]),_=u(_,j,T,A,C,16,i[46]),T=f(T,A=u(A,_,j,T,p,23,i[47]),_,j,a,6,i[48]),j=f(j,T,A,_,w,10,i[49]),_=f(_,j,T,A,R,15,i[50]),A=f(A,_,j,T,y,21,i[51]),T=f(T,A,_,j,S,6,i[52]),j=f(j,T,A,_,h,10,i[53]),_=f(_,j,T,A,E,15,i[54]),A=f(A,_,j,T,d,21,i[55]),T=f(T,A,_,j,b,6,i[56]),j=f(j,T,A,_,C,10,i[57]),_=f(_,j,T,A,g,15,i[58]),A=f(A,_,j,T,O,21,i[59]),T=f(T,A,_,j,m,6,i[60]),j=f(j,T,A,_,x,10,i[61]),_=f(_,j,T,A,p,15,i[62]),A=f(A,_,j,T,v,21,i[63]),s[0]=s[0]+T|0,s[1]=s[1]+A|0,s[2]=s[2]+_|0,s[3]=s[3]+j|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var s=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,s,i){var a=e+(t&n|~t&r)+o+i;return(a<<s|a>>>32-s)+t}function c(e,t,n,r,o,s,i){var a=e+(t&r|n&~r)+o+i;return(a<<s|a>>>32-s)+t}function u(e,t,n,r,o,s,i){var a=e+(t^n^r)+o+i;return(a<<s|a>>>32-s)+t}function f(e,t,n,r,o,s,i){var a=e+(n^(t|~r))+o+i;return(a<<s|a>>>32-s)+t}t.MD5=o._createHelper(a),t.HmacMD5=o._createHmacHelper(a)}(Math),ge.MD5)));F((e=>new URLSearchParams(window.location.search).get(e)));const be=e=>re(ee("https:"===window.location.protocol),(e=>`https_${e}`),ne)(e);F(((e,t,n)=>{const r=be(e),o=(e=>{if(!e)return"";const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),`; expires=${t.toUTCString()}`})(n);document.cookie=`${r}=${encodeURIComponent(t)}${o}; path=/`}));const ve=(e,t=!0)=>{const n=`${t?be(e):e}=`,r=document.cookie.split(";").map((e=>e.trim())).find((e=>e.startsWith(n)));return r?decodeURIComponent(r.substring(n.length)):null};F(ve);const Ee=()=>{document.cookie.split(";").map((e=>e.trim())).forEach((e=>{const[t]=e.split("=");t&&(document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`)}))};F(((e,t,n)=>{const r=JSON.stringify(t);n.setItem(e,r)}));F(((e,t)=>{const n=t.getItem(e);return n?JSON.parse(n):null}));const xe=()=>sessionStorage.clear();function Se(e,t){return function(){return e.apply(t,arguments)}}const{toString:Oe}=Object.prototype,{getPrototypeOf:Re}=Object,{iterator:Ce,toStringTag:Te}=Symbol,Ae=(e=>t=>{const n=Oe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_e=e=>(e=e.toLowerCase(),t=>Ae(t)===e),je=e=>t=>typeof t===e,{isArray:ke}=Array,Pe=je("undefined");const Be=_e("ArrayBuffer");const Ne=je("string"),Ue=je("function"),Fe=je("number"),De=e=>null!==e&&"object"==typeof e,Le=e=>{if("object"!==Ae(e))return!1;const t=Re(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Te in e||Ce in e)},ze=_e("Date"),Me=_e("File"),qe=_e("Blob"),Ie=_e("FileList"),He=_e("URLSearchParams"),[$e,We,Je,Ve]=["ReadableStream","Request","Response","Headers"].map(_e);function Ke(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ke(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function Xe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Qe=e=>!Pe(e)&&e!==Ge;const Ye=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Re(Uint8Array)),Ze=_e("HTMLFormElement"),et=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tt=_e("RegExp"),nt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ke(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)};const rt=_e("AsyncFunction"),ot=(st="function"==typeof setImmediate,it=Ue(Ge.postMessage),st?setImmediate:it?(at=`axios@${Math.random()}`,lt=[],Ge.addEventListener("message",(({source:e,data:t})=>{e===Ge&&t===at&&lt.length&&lt.shift()()}),!1),e=>{lt.push(e),Ge.postMessage(at,"*")}):e=>setTimeout(e));var st,it,at,lt;const ct="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ge):"undefined"!=typeof process&&process.nextTick||ot,ut={isArray:ke,isArrayBuffer:Be,isBuffer:function(e){return null!==e&&!Pe(e)&&null!==e.constructor&&!Pe(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ue(e.append)&&("formdata"===(t=Ae(e))||"object"===t&&Ue(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Be(e.buffer),t},isString:Ne,isNumber:Fe,isBoolean:e=>!0===e||!1===e,isObject:De,isPlainObject:Le,isReadableStream:$e,isRequest:We,isResponse:Je,isHeaders:Ve,isUndefined:Pe,isDate:ze,isFile:Me,isBlob:qe,isRegExp:tt,isFunction:Ue,isStream:e=>De(e)&&Ue(e.pipe),isURLSearchParams:He,isTypedArray:Ye,isFileList:Ie,forEach:Ke,merge:function e(){const{caseless:t}=Qe(this)&&this||{},n={},r=(r,o)=>{const s=t&&Xe(n,o)||o;Le(n[s])&&Le(r)?n[s]=e(n[s],r):Le(r)?n[s]=e({},r):ke(r)?n[s]=r.slice():n[s]=r};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Ke(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Ke(t,((t,r)=>{n&&Ue(t)?e[r]=Se(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&Re(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ae,kindOfTest:_e,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ke(e))return e;let t=e.length;if(!Fe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ce]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ze,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:nt,freezeMethods:e=>{nt(e,((t,n)=>{if(Ue(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Ue(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return ke(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Xe,global:Ge,isContextDefined:Qe,isSpecCompliantForm:function(e){return!!(e&&Ue(e.append)&&"FormData"===e[Te]&&e[Ce])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(De(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ke(e)?[]:{};return Ke(e,((e,t)=>{const s=n(e,r+1);!Pe(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:rt,isThenable:e=>e&&(De(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),setImmediate:ot,asap:ct,isIterable:e=>null!=e&&Ue(e[Ce])};function ft(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ut.inherits(ft,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:ut.toJSONObject(this.config),code:this.code,status:this.status}}});const dt=ft.prototype,pt={};["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((e=>{pt[e]={value:e}})),Object.defineProperties(ft,pt),Object.defineProperty(dt,"isAxiosError",{value:!0}),ft.from=(e,t,n,r,o,s)=>{const i=Object.create(dt);return ut.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ft.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function ht(e){return ut.isPlainObject(e)||ut.isArray(e)}function mt(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function yt(e,t,n){return e?e.concat(t).map((function(e,t){return e=mt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const gt=ut.toFlatObject(ut,{},null,(function(e){return/^is[A-Z]/.test(e)}));function wt(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ut.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ut.isDate(e))return e.toISOString();if(!a&&ut.isBlob(e))throw new ft("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(e)||ut.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ut.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ut.isArray(e)&&function(e){return ut.isArray(e)&&!e.some(ht)}(e)||(ut.isFileList(e)||ut.endsWith(n,"[]"))&&(a=ut.toArray(e)))return n=mt(n),a.forEach((function(e,r){!ut.isUndefined(e)&&null!==e&&t.append(!0===i?yt([n],r,s):null===i?n:n+"[]",l(e))})),!1;return!!ht(e)||(t.append(yt(o,n,s),l(e)),!1)}const u=[],f=Object.assign(gt,{defaultVisitor:c,convertValue:l,isVisitable:ht});if(!ut.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ut.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ut.forEach(n,(function(n,s){!0===(!(ut.isUndefined(n)||null===n)&&o.call(t,n,ut.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t}function bt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function vt(e,t){this._pairs=[],e&&wt(e,this,t)}const Et=vt.prototype;function xt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function St(e,t,n){if(!t)return e;const r=n&&n.encode||xt;ut.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):ut.isURLSearchParams(t)?t.toString():new vt(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Et.append=function(e,t){this._pairs.push([e,t])},Et.toString=function(e){const t=e?function(t){return e.call(this,t,bt)}:bt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ot{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ut.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:vt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Tt="undefined"!=typeof window&&"undefined"!=typeof document,At="object"==typeof navigator&&navigator||void 0,_t=Tt&&(!At||["ReactNative","NativeScript","NS"].indexOf(At.product)<0),jt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,kt=Tt&&window.location.href||"http://localhost",Pt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:_t,hasStandardBrowserWebWorkerEnv:jt,navigator:At,origin:kt},Symbol.toStringTag,{value:"Module"})),...Ct};function Bt(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&ut.isArray(r)?r.length:s,a)return ut.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&ut.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&ut.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,((e,r)=>{t(function(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Nt={transitional:Rt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ut.isObject(e);o&&ut.isHTMLForm(e)&&(e=new FormData(e));if(ut.isFormData(e))return r?JSON.stringify(Bt(e)):e;if(ut.isArrayBuffer(e)||ut.isBuffer(e)||ut.isStream(e)||ut.isFile(e)||ut.isBlob(e)||ut.isReadableStream(e))return e;if(ut.isArrayBufferView(e))return e.buffer;if(ut.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return wt(e,new Pt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Pt.isNode&&ut.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=ut.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return wt(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Nt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ut.isResponse(e)||ut.isReadableStream(e))return e;if(e&&ut.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw ft.from(o,ft.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],(e=>{Nt.headers[e]={}}));const Ut=ut.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"]),Ft=Symbol("internals");function Dt(e){return e&&String(e).trim().toLowerCase()}function Lt(e){return!1===e||null==e?e:ut.isArray(e)?e.map(Lt):String(e)}function zt(e,t,n,r,o){return ut.isFunction(r)?r.call(this,t,n):(o&&(t=n),ut.isString(t)?ut.isString(r)?-1!==t.indexOf(r):ut.isRegExp(r)?r.test(t):void 0:void 0)}let Mt=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Dt(t);if(!o)throw new Error("header name must be a non-empty string");const s=ut.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Lt(e))}const s=(e,t)=>ut.forEach(e,((e,n)=>o(e,n,t)));if(ut.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(ut.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ut[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(ut.isObject(e)&&ut.isIterable(e)){let n,r,o={};for(const t of e){if(!ut.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ut.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Dt(e)){const n=ut.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ut.isFunction(t))return t.call(this,e,n);if(ut.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Dt(e)){const n=ut.findKey(this,e);return!(!n||void 0===this[n]||t&&!zt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Dt(e)){const o=ut.findKey(n,e);!o||t&&!zt(0,n[o],o,t)||(delete n[o],r=!0)}}return ut.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!zt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ut.forEach(this,((r,o)=>{const s=ut.findKey(n,o);if(s)return t[s]=Lt(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Lt(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ut.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ut.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ft]=this[Ft]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Dt(e);t[r]||(!function(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ut.isArray(e)?e.forEach(r):r(e),this}};function qt(e,t){const n=this||Nt,r=t||n,o=Mt.from(r.headers);let s=r.data;return ut.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function It(e){return!(!e||!e.__CANCEL__)}function Ht(e,t,n){ft.call(this,null==e?"canceled":e,ft.ERR_CANCELED,t,n),this.name="CanceledError"}function $t(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ut.reduceDescriptors(Mt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ut.freezeMethods(Mt),ut.inherits(Ht,ft,{__CANCEL__:!0});const Wt=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[i];o||(o=l),n[s]=a,r[s]=l;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const d=c&&l-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,l=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&s<=i?(i-s)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Jt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Vt=e=>(...t)=>ut.asap((()=>e(...t))),Kt=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,Xt=Pt.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&i.push("path="+r),ut.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gt(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Qt=e=>e instanceof Mt?{...e}:e;function Yt(e,t){t=t||{};const n={};function r(e,t,n,r){return ut.isPlainObject(e)&&ut.isPlainObject(t)?ut.merge.call({caseless:r},e,t):ut.isPlainObject(t)?ut.merge({},t):ut.isArray(t)?t.slice():t}function o(e,t,n,o){return ut.isUndefined(t)?ut.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!ut.isUndefined(t))return r(void 0,t)}function i(e,t){return ut.isUndefined(t)?ut.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(Qt(e),Qt(t),0,!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=l[r]||o,i=s(e[r],t[r],r);ut.isUndefined(i)&&s!==a||(n[r]=i)})),n}const Zt=e=>{const t=Yt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=Mt.from(a),t.url=St(Gt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ut.isFormData(r))if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Pt.hasStandardBrowserEnv&&(o&&ut.isFunction(o)&&(o=o(t)),o||!1!==o&&Kt(t.url))){const e=s&&i&&Xt.read(i);e&&a.set(s,e)}return t},en="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Zt(e);let o=r.data;const s=Mt.from(r.headers).normalize();let i,a,l,c,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=Mt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());$t((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new ft("Request aborted",ft.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ft("Network Error",ft.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Rt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ft(t,o.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&ut.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ut.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([l,u]=Wt(p,!0),m.addEventListener("progress",l)),d&&m.upload&&([a,c]=Wt(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ht(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===Pt.protocols.indexOf(g)?n(new ft("Unsupported protocol "+g+":",ft.ERR_BAD_REQUEST,e)):m.send(o||null)}))},tn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ft?t:new Ht(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>ut.asap(i),a}},nn=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},rn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},on=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of rn(e))yield*nn(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},sn="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,an=sn&&"function"==typeof ReadableStream,ln=sn&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cn=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},un=an&&cn((()=>{let e=!1;const t=new Request(Pt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),fn=an&&cn((()=>ut.isReadableStream(new Response("").body))),dn={stream:fn&&(e=>e.body)};var pn;sn&&(pn=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!dn[e]&&(dn[e]=ut.isFunction(pn[e])?t=>t[e]():(t,n)=>{throw new ft(`Response type '${e}' is not supported`,ft.ERR_NOT_SUPPORT,n)})})));const hn=async(e,t)=>{const n=ut.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ut.isBlob(e))return e.size;if(ut.isSpecCompliantForm(e)){const t=new Request(Pt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ut.isArrayBufferView(e)||ut.isArrayBuffer(e)?e.byteLength:(ut.isURLSearchParams(e)&&(e+=""),ut.isString(e)?(await ln(e)).byteLength:void 0)})(t):n},mn={http:null,xhr:en,fetch:sn&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Zt(e);c=c?(c+"").toLowerCase():"text";let p,h=tn([o,s&&s.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(l&&un&&"get"!==n&&"head"!==n&&0!==(y=await hn(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ut.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Jt(y,Wt(Vt(l)));r=on(n.body,65536,e,t)}}ut.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let s=await fetch(p);const i=fn&&("stream"===c||"response"===c);if(fn&&(a||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=ut.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&Jt(t,Wt(Vt(a),!0))||[];s=new Response(on(s.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let g=await dn[ut.findKey(dn,c)||"text"](s,e);return!i&&m&&m(),await new Promise(((t,n)=>{$t(t,n,{data:g,headers:Mt.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:p})}))}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/Load failed|fetch/i.test(g.message))throw Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,p),{cause:g.cause||g});throw ft.from(g,g&&g.code,e,p)}})};ut.forEach(mn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const yn=e=>`- ${e}`,gn=e=>ut.isFunction(e)||null===e||!1===e,wn=e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!gn(n)&&(r=mn[(t=String(n)).toLowerCase()],void 0===r))throw new ft(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ft("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(yn).join("\n"):" "+yn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function bn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ht(null,e)}function vn(e){bn(e),e.headers=Mt.from(e.headers),e.data=qt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return wn(e.adapter||Nt.adapter)(e).then((function(t){return bn(e),t.data=qt.call(e,e.transformResponse,t),t.headers=Mt.from(t.headers),t}),(function(t){return It(t)||(bn(e),t&&t.response&&(t.response.data=qt.call(e,e.transformResponse,t.response),t.response.headers=Mt.from(t.response.headers))),Promise.reject(t)}))}const En="1.9.0",xn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{xn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Sn={};xn.transitional=function(e,t,n){return(r,o,s)=>{if(!1===e)throw new ft(function(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),ft.ERR_DEPRECATED);return t&&!Sn[o]&&(Sn[o]=!0),!e||e(r,o,s)}},xn.spelling=function(e){return(e,t)=>!0};const On={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new ft("option "+s+" must be "+n,ft.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ft("Unknown option "+s,ft.ERR_BAD_OPTION)}},validators:xn},Rn=On.validators;let Cn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ot,response:new Ot}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Yt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&On.assertOptions(n,{silentJSONParsing:Rn.transitional(Rn.boolean),forcedJSONParsing:Rn.transitional(Rn.boolean),clarifyTimeoutError:Rn.transitional(Rn.boolean)},!1),null!=r&&(ut.isFunction(r)?t.paramsSerializer={serialize:r}:On.assertOptions(r,{encode:Rn.function,serialize:Rn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),On.assertOptions(t,{baseUrl:Rn.spelling("baseURL"),withXsrfToken:Rn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&ut.merge(o.common,o[t.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Mt.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,f=0;if(!a){const e=[vn.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);f<u;)c=c.then(e[f++],e[f++]);return c}u=i.length;let d=t;for(f=0;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{c=vn.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,u=l.length;f<u;)c=c.then(l[f++],l[f++]);return c}getUri(e){return St(Gt((e=Yt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ut.forEach(["delete","get","head","options"],(function(e){Cn.prototype[e]=function(t,n){return this.request(Yt(n||{},{method:e,url:t,data:(n||{}).data}))}})),ut.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Yt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Cn.prototype[e]=t(),Cn.prototype[e+"Form"]=t(!0)}));const Tn={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(Tn).forEach((([e,t])=>{Tn[t]=e}));const An=function e(t){const n=new Cn(t),r=Se(Cn.prototype.request,n);return ut.extend(r,Cn.prototype,n,{allOwnKeys:!0}),ut.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Yt(t,n))},r}(Nt);An.Axios=Cn,An.CanceledError=Ht,An.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ht(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},An.isCancel=It,An.VERSION=En,An.toFormData=wt,An.AxiosError=ft,An.Cancel=An.CanceledError,An.all=function(e){return Promise.all(e)},An.spread=function(e){return function(t){return e.apply(null,t)}},An.isAxiosError=function(e){return ut.isObject(e)&&!0===e.isAxiosError},An.mergeConfig=Yt,An.AxiosHeaders=Mt,An.formToJSON=e=>Bt(ut.isHTMLForm(e)?new FormData(e):e),An.getAdapter=wn,An.HttpStatusCode=Tn,An.default=An;const{Axios:_n,AxiosError:jn,CanceledError:kn,isCancel:Pn,CancelToken:Bn,VERSION:Nn,all:Un,Cancel:Fn,isAxiosError:Dn,spread:Ln,toFormData:zn,AxiosHeaders:Mn,HttpStatusCode:qn,formToJSON:In,getAdapter:Hn,mergeConfig:$n}=An;const Wn=new Map,Jn=e=>{const{open:t,close:n,update:r}=Y(),o=w({status:!1,text:"正在处理,请稍后..."}),s=w({status:!1}),i=w(!1),a=w(!1),l=S(null),c=S(null),u=S(null),f=p((()=>{var e;return(null==(e=u.value)?void 0:e.status)||null})),d=w({}),h=w({}),m=w(""),y=w({}),g=w(!1),b=()=>{o.value.status&&!l.value&&(r({...o.value}),t())},v=()=>{l.value&&(n(),l.value=null)},E=async(t,n)=>{if(t.trim())try{if(c.value=null,g.value=!1,i.value=!0,m.value=t,y.value=n||{},s.value.status){const{create:e}=G();await e({type:"info",...s.value})}o.value.status&&b();const r=await e.post(t,n);return u.value=r,r.data&&(d.value={...h.value,...r.data}),a.value&&(()=>{if(a.value&&d.value&&d.value&&"object"==typeof d.value&&"status"in d.value&&"message"in d.value){const{request:e}=U(),{status:t,message:n}=d.value;n&&e({status:t,message:n})}})(),r.data}catch(r){(e=>{var t;const{handleError:n}=ae();if("boolean"!=typeof e){if(g.value="AbortError"===(null==e?void 0:e.name)||!1,200!=e.status&&404!=e.status&&(null==e?void 0:e.response)){const{message:r}=null==(t=e.response)?void 0:t.data;return n(new Error(r))}n(e)}})(r)}finally{i.value=!1,o.value.text&&v()}},x=D();x.run((()=>{L(o,(e=>{e&&i.value?b():e||v()})),z((()=>{x.stop()}))}));return{...{loadingMask:o,dialog:s,message:a,loading:i,error:c,response:u,data:d,defaultData:h,statusCode:f,aborted:g,urlRef:m,paramsRef:y},...{execute:E,setParams:e=>(y.value=e,E(m.value,e)),setUrl:(e,t)=>(m.value=e,y.value=t||{},E(e,y.value)),cancel:e=>(g.value=!0,(e=>{var t;null==(t=Wn.get(e))||t.abort()})(e)),cancelAll:()=>{g.value=!0,Wn.clear()},fetch:e=>{if(m.value)return E(m.value,e||y.value)}}}},Vn={error:e=>(401===e.status&&M.push("/login"),404===e.status&&M.go(0),e)};const Kn=new class{constructor(e={}){t(this,"instance"),t(this,"middlewares",[]);const{middlewares:n=[],...r}=e;this.instance=An.create(r),this.middlewares=[...n],this.setupInterceptors()}async executeMiddlewareChain(e,t){let n={...t};for(const r of this.middlewares){const t=r[e];t&&(n=await t(n))}return n}setupInterceptors(){this.instance.interceptors.request.use((async e=>{let t={...e};return t=await this.executeMiddlewareChain("request",t),t}),(e=>Promise.reject(e))),this.instance.interceptors.response.use((async e=>{let t={...e};return t=await this.executeMiddlewareChain("response",t),t}))}use(e){return this.middlewares.push(e),this}getAxiosInstance(){return this.instance}async request(e){try{const t=await this.executeMiddlewareChain("request",e),n=await this.instance.request(t);return this.executeMiddlewareChain("response",n)}catch(t){const e=await this.executeMiddlewareChain("error",t);return Promise.reject(e)}}async get(e,t={}){return this.request({...t,url:e,method:"get"})}async post(e,t,n={}){return this.request({...n,url:e,data:t,method:"post"})}async put(e,t,n={}){return this.request({...n,url:e,data:t,method:"put"})}async delete(e,t={}){return this.request({...t,url:e,method:"delete"})}}({baseURL:"/",timeout:5e4,headers:{"Content-Type":"application/x-www-form-urlencoded"},middlewares:[Vn]}),Xn=(e,t)=>{const{urlRef:n,paramsRef:r,...o}=Jn(Kn);return(()=>{const e=(new Date).getTime();we(e+we("123456").toString()).toString()})(),n.value=e,r.value=t||{},{urlRef:n,paramsRef:r,...o}};export{ve as I,H as N,Ee as P,xe as T,Z as _,G as a,Y as b,Xn as c,An as d,ce as g,ne as i,we as m,ae as u};