best-unit 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/best-unit.cjs +27 -27
- package/dist/best-unit.js +1499 -1487
- package/package.json +1 -1
- package/src/api/axiosInstance.ts +19 -17
- package/src/api/index.ts +3 -0
- package/src/utils/business/index.ts +24 -42
- package/src/utils/common/index.ts +27 -0
package/dist/best-unit.cjs
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function wn(){console.log("npm package test!!!")}function xn(){console.log("Current time:",new Date().toISOString())}var we=(e=>(e.ZH="zh",e.EN="en",e))(we||{}),H=(e=>(e.WHITE="white",e.DARK="dark",e))(H||{});let Ie=!1,ce=null;async function En(e){return Ie=!1,ce=null,ce=new Promise(async t=>{const{merchant_id:n,biz_type:r,fund_balance_id:o,theme:i=H.WHITE,locale:s=we.ZH}=e,a="Bearer "+e.token,l={merchantId:n,bizType:r,fundBalanceId:o,token:a,theme:i,locale:s};sessionStorage.setItem("fund_unit_params",JSON.stringify(l)),Ie=!0,console.log("initFundUnit 更新完成:",l),t(l)}),ce}function vn(){return Ie?Promise.resolve():ce||Promise.resolve()}const Sn={"/api":{target:"https://fund.bestfulfill.tech/api/sdk",changeOrigin:!0,rewrite:e=>e.replace(/^\/api/,""),secure:!1}};var oe,T,Ot,$,rt,Ft,Pt,Bt,Ge,De,Le,te={},Nt=[],Rn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xe=Array.isArray;function z(e,t){for(var n in t)e[n]=t[n];return e}function Ke(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function V(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?oe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return ee(e,s,r,o,null)}function ee(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Ot,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function K(e){return e.children}function ue(e,t){this.props=e,this.context=t}function G(e,t){if(t==null)return e.__?G(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?G(e):null}function Ut(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ut(e)}}function ot(e){(!e.__d&&(e.__d=!0)&&$.push(e)&&!me.__r++||rt!=T.debounceRendering)&&((rt=T.debounceRendering)||Ft)(me)}function me(){for(var e,t,n,r,o,i,s,a=1;$.length;)$.length>a&&$.sort(Pt),e=$.shift(),a=$.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=z({},r)).__v=r.__v+1,T.vnode&&T.vnode(n),Xe(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??G(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Lt(i,n,s),n.__e!=o&&Ut(n)));me.__r=0}function It(e,t,n,r,o,i,s,a,l,u,f){var c,g,_,h,b,p,y=r&&r.__k||Nt,w=t.length;for(l=Tn(n,t,y,l,w),c=0;c<w;c++)(_=n.__k[c])!=null&&(g=_.__i==-1?te:y[_.__i]||te,_.__i=c,p=Xe(e,_,g,o,i,s,a,l,u,f),h=_.__e,_.ref&&g.ref!=_.ref&&(g.ref&&Ze(g.ref,null,_),f.push(_.ref,_.__c||h,_)),b==null&&h!=null&&(b=h),4&_.__u||g.__k===_.__k?l=Dt(_,l,e):typeof _.type=="function"&&p!==void 0?l=p:h&&(l=h.nextSibling),_.__u&=-7);return n.__e=b,l}function Tn(e,t,n,r,o){var i,s,a,l,u,f=n.length,c=f,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+g,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?ee(null,s,null,null,null):xe(s)?ee(K,{children:s},null,null,null):s.constructor==null&&s.__b>0?ee(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=kn(s,n,l,c))!=-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(o>f?g--:o<f&&g++),typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?g--:u==l+1?g++:(u>l?g--:g++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=G(a)),Ht(a,a));return r}function Dt(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Dt(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=G(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function kn(e,t,n,r){var o,i,s=e.key,a=e.type,l=t[n];if(l===null&&e.key==null||l&&s==l.key&&a==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&s==l.key&&a==l.type)return o;o--}if(i<t.length){if((l=t[i])&&(2&l.__u)==0&&s==l.key&&a==l.type)return i;i++}}return-1}function it(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Rn.test(t)?n:n+"px"}function le(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||it(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||it(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Bt,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Ge,e.addEventListener(t,i?Le:De,i)):e.removeEventListener(t,i?Le:De,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function st(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ge++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function Xe(e,t,n,r,o,i,s,a,l,u){var f,c,g,_,h,b,p,y,w,v,x,R,k,U,j,M,Fe,D=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof D=="function")try{if(y=t.props,w="prototype"in D&&D.prototype.render,v=(f=D.contextType)&&r[f.__c],x=f?v?v.props.value:f.__:r,n.__c?p=(c=t.__c=n.__c).__=c.__E:(w?t.__c=c=new D(y,x):(t.__c=c=new ue(y,x),c.constructor=D,c.render=An),v&&v.sub(c),c.props=y,c.state||(c.state={}),c.context=x,c.__n=r,g=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&D.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=z({},c.__s)),z(c.__s,D.getDerivedStateFromProps(y,c.__s))),_=c.props,h=c.state,c.__v=t,g)w&&D.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&D.getDerivedStateFromProps==null&&y!==_&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,x),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Q){Q&&(Q.__=t)}),R=0;R<c._sb.length;R++)c.__h.push(c._sb[R]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,x),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(_,h,b)})}if(c.context=x,c.props=y,c.__P=e,c.__e=!1,k=T.__r,U=0,w){for(c.state=c.__s,c.__d=!1,k&&k(t),f=c.render(c.props,c.state,c.context),j=0;j<c._sb.length;j++)c.__h.push(c._sb[j]);c._sb=[]}else do c.__d=!1,k&&k(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++U<25);c.state=c.__s,c.getChildContext!=null&&(r=z(z({},r),c.getChildContext())),w&&!g&&c.getSnapshotBeforeUpdate!=null&&(b=c.getSnapshotBeforeUpdate(_,h)),M=f,f!=null&&f.type===K&&f.key==null&&(M=zt(f.props.children)),a=It(e,xe(M)?M:[M],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),p&&(c.__E=c.__=null)}catch(Q){if(t.__v=null,l||i!=null)if(Q.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(Fe=i.length;Fe--;)Ke(i[Fe]);else t.__e=n.__e,t.__k=n.__k;T.__e(Q,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Cn(n.__e,t,n,r,o,i,s,l,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function Lt(e,t,n){for(var r=0;r<n.length;r++)Ze(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function zt(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:xe(e)?e.map(zt):z({},e)}function Cn(e,t,n,r,o,i,s,a,l){var u,f,c,g,_,h,b,p=n.props,y=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((_=i[u])&&"setAttribute"in _==!!w&&(w?_.localName==w:_.nodeType==3)){e=_,i[u]=null;break}}if(e==null){if(w==null)return document.createTextNode(y);e=document.createElementNS(o,w,y.is&&y),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(w==null)p===y||a&&e.data==y||(e.data=y);else{if(i=i&&oe.call(e.childNodes),p=n.props||te,!a&&i!=null)for(p={},u=0;u<e.attributes.length;u++)p[(_=e.attributes[u]).name]=_.value;for(u in p)if(_=p[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=_;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;le(e,u,null,_,o)}}for(u in y)_=y[u],u=="children"?g=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?h=_:u=="checked"?b=_:a&&typeof _!="function"||p[u]===_||le(e,u,_,p[u],o);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),It(t.type=="template"?e.content:e,xe(g)?g:[g],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&G(n,0),a,l),i!=null)for(u=i.length;u--;)Ke(i[u]);a||(u="value",w=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[u]||w=="progress"&&!h||w=="option"&&h!=p[u])&&le(e,u,h,p[u],o),u="checked",b!=null&&b!=e[u]&&le(e,u,b,p[u],o))}return e}function Ze(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function Ht(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ze(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ht(r[o],t,n||typeof e.type!="function");n||Ke(e.__e),e.__c=e.__=e.__e=void 0}function An(e,t,n){return this.constructor(e,n)}function Ee(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Xe(t,e=(!r&&n||t).__k=V(K,null,[e]),o||te,te,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?oe.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Lt(i,e,s)}function jt(e,t){Ee(e,t,jt)}function Mt(e,t,n){var r,o,i,s,a=z({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?oe.call(arguments,2):n),ee(e.type,a,r||e.key,o||e.ref,null)}oe=Nt.slice,T={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Ot=0,ue.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=z({},this.state),typeof e=="function"&&(e=e(z({},n),this.props)),e&&z(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ot(this))},ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ot(this))},ue.prototype.render=K,$=[],Ft=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pt=function(e,t){return e.__v.__b-t.__v.__b},me.__r=0,Bt=/(PointerCapture)$|Capture$/i,Ge=0,De=st(!1),Le=st(!0);var On=0;function m(e,t,n,r,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--On,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return T.vnode&&T.vnode(u),u}var ne,C,Pe,at,_e=0,$t=[],O=T,lt=O.__b,ct=O.__r,ut=O.diffed,ft=O.__c,dt=O.unmount,pt=O.__;function Qe(e,t){O.__h&&O.__h(C,e,_e||t),_e=0;var n=C.__H||(C.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function N(e){return _e=1,Fn(Wt,e)}function Fn(e,t,n){var r=Qe(ne++,2);if(r.t=e,!r.__c&&(r.__=[Wt(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=C,!C.__f)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(g){return!!g.__c});if(f.every(function(g){return!g.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(g){if(g.__N){var _=g.__[0];g.__=g.__N,g.__N=void 0,_!==g.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};C.__f=!0;var i=C.shouldComponentUpdate,s=C.componentWillUpdate;C.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},C.shouldComponentUpdate=o}return r.__N||r.__}function ve(e,t){var n=Qe(ne++,3);!O.__s&&qt(n.__H,t)&&(n.__=e,n.u=t,C.__H.__h.push(n))}function ge(e){return _e=5,Pn(function(){return{current:e}},[])}function Pn(e,t){var n=Qe(ne++,7);return qt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Bn(){for(var e;e=$t.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fe),e.__H.__h.forEach(ze),e.__H.__h=[]}catch(t){e.__H.__h=[],O.__e(t,e.__v)}}O.__b=function(e){C=null,lt&<(e)},O.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pt&&pt(e,t)},O.__r=function(e){ct&&ct(e),ne=0;var t=(C=e.__c).__H;t&&(Pe===C?(t.__h=[],C.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(fe),t.__h.forEach(ze),t.__h=[],ne=0)),Pe=C},O.diffed=function(e){ut&&ut(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($t.push(t)!==1&&at===O.requestAnimationFrame||((at=O.requestAnimationFrame)||Nn)(Bn)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Pe=C=null},O.__c=function(e,t){t.some(function(n){try{n.__h.forEach(fe),n.__h=n.__h.filter(function(r){return!r.__||ze(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],O.__e(r,n.__v)}}),ft&&ft(e,t)},O.unmount=function(e){dt&&dt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{fe(r)}catch(o){t=o}}),n.__H=void 0,t&&O.__e(t,n.__v))};var ht=typeof requestAnimationFrame=="function";function Nn(e){var t,n=function(){clearTimeout(r),ht&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);ht&&(t=requestAnimationFrame(n))}function fe(e){var t=C,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),C=t}function ze(e){var t=C;e.__c=e.__(),C=t}function qt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Wt(e,t){return typeof t=="function"?t(e):t}function Un({onClick:e,color:t,children:n}){const i=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?{background:t||"#1890ff",color:"#fff",border:"none",borderRadius:6,padding:"8px 16px",cursor:"pointer",fontSize:16,fontWeight:600}:{background:t||"#00E8C6",color:"#fff",border:"none",borderRadius:6,padding:"8px 16px",cursor:"pointer",fontSize:16,fontWeight:600};return m("button",{style:i,onClick:e,type:"button",children:n})}const In={余额详情:"余额详情",真实金额:"真实金额",冻结金额:"冻结金额",总可用:"总可用",暂无数据:"暂无数据","金额需在1到999999.99之间":"金额需在1到999999.99之间","充值 / 转账":"充值 / 转账",在线充值:"在线充值",线下转账:"线下转账",充值币种:"充值币种",充值金额:"充值金额",支付平台:"支付平台",请选择充值币种:"请选择充值币种",请输入充值金额:"请输入充值金额",请选择支付平台:"请选择支付平台","需要收取手续费,实际支付金额约为:":"需要收取手续费,实际支付金额约为:","提交失败,请重试":"提交失败,请重试","提交中...":"提交中...",去支付:"去支付",取消:"取消",关闭:"关闭",第三方支付平台:"第三方支付平台",交易ID:"交易ID",请输入转账交易ID:"请输入转账交易ID",上传文件:"上传文件",请上传转账凭证:"请上传转账凭证",离线充值创建成功:"离线充值创建成功","加载中...":"加载中...",错误:"错误",成功:"成功",必填:"必填","充值/转账":"充值/转账",切换为暗黑主题:"切换为暗黑主题",切换为白色主题:"切换为白色主题",点击或拖拽文件到此处上传:"点击或拖拽文件到此处上传","支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传":"支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传",个文件:"个文件","正在上传...":"正在上传...",已上传:"已上传",移除:"移除"};function Dn(e){return In[e]||e}const Ln={余额详情:"Balance Details",真实金额:"Real Amount",冻结金额:"Frozen Amount",总可用:"Total Available",暂无数据:"No Data","金额需在1到999999.99之间":"Amount must be between 1 and 999999.99","充值 / 转账":"Recharge / Transfer",在线充值:"Online Recharge",线下转账:"Offline Transfer",充值币种:"Recharge Currency",充值金额:"Recharge Amount",支付平台:"Payment Platform",请选择充值币种:"Please select recharge currency",请输入充值金额:"Please enter recharge amount",请选择支付平台:"Please select payment platform","需要收取手续费,实际支付金额约为:":"requires a handling fee, the actual payment amount is approximately: ","提交失败,请重试":"Submit failed, please try again","提交中...":"Submitting...",去支付:"Go to Pay",取消:"Cancel",关闭:"Close",第三方支付平台:"Third-party Payment Platform",交易ID:"Transaction ID",请输入转账交易ID:"Please enter transfer transaction ID",上传文件:"Upload Files",请上传转账凭证:"Please upload transfer voucher",离线充值创建成功:"Offline recharge created successfully","加载中...":"Loading...",错误:"Error",成功:"Success",必填:"Required","充值/转账":"Recharge/Transfer",切换为暗黑主题:"Switch to Dark Theme",切换为白色主题:"Switch to Light Theme",点击或拖拽文件到此处上传:"Click or drag files here to upload","支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传":"Supports JPG, PNG, PDF formats, single file not exceeding 20MB, maximum",个文件:"files can be uploaded","正在上传...":"Uploading...",已上传:"Uploaded",移除:"Remove"};function zn(e){return Ln[e]||e}function Hn(){return JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").locale||we.ZH}function E(e){return Hn()==="zh"?Dn(e):zn(e)}const He=({value:e,onChange:t,options:n,placeholder:r,style:o,error:i,disabled:s,dropdownStyle:a,className:l,dropdownClassName:u,children:f})=>{const[c,g]=N(!1),_=ge(null),[h,b]=N(null),y=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,w=y?{trigger:{background:s?"#f5f5f5":"#fff",color:s?"#bfbfbf":e?"#222":"#bfbfbf",border:i?"1px solid #ff4d4f":s?"1px solid #f0f0f0":"1px solid #d9d9d9"},dropdown:{background:"#fff",border:"1px solid #d9d9d9",color:"#222"},option:(x,R,k)=>({color:R?"#bfbfbf":x?"#1890ff":"#222",background:x?"#e6f7ff":k&&!R||R?"#f5f5f5":"#fff"}),placeholder:{color:"#bfbfbf"}}:{trigger:{background:"#23262F",color:s?"#666":e?"#fff":"#666",border:i?"1px solid #ff4d4f":"1px solid #23262F"},dropdown:{background:"#23262F",border:"1px solid #23262F",color:"#fff"},option:(x,R,k)=>({color:R?"#666":x?"#00E8C6":"#fff",background:x?"#23262F":k&&!R?"#333843":"#23262F"}),placeholder:{color:"#666"}};ve(()=>{if(!c)return;const x=R=>{_.current&&!_.current.contains(R.target)&&g(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[c]);const v=n.find(x=>x.value===e);return m("div",{ref:_,className:l,style:{position:"relative",...o},children:[m("style",{children:`
|
|
2
|
-
|
|
3
|
-
scrollbar-width: thin;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.custom-select-dropdown::-webkit-scrollbar {
|
|
7
|
-
width: 8px;
|
|
8
|
-
}
|
|
9
|
-
.custom-select-dropdown::-webkit-scrollbar-thumb {
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
background: ${y?"#e5e5e5":"#444C5C"};
|
|
12
|
-
}
|
|
13
|
-
.custom-select-dropdown::-webkit-scrollbar-track {
|
|
14
|
-
background: ${y?"#f5f5f5":"#23262F"};
|
|
15
|
-
}
|
|
16
|
-
`}),m("div",{onClick:()=>!s&&g(x=>!x),style:{minHeight:40,borderRadius:6,display:"flex",alignItems:"center",padding:"0 12px",fontSize:15,cursor:s?"not-allowed":"pointer",boxSizing:"border-box",transition:"border 0.2s",opacity:s?.6:1,width:"100%",...w.trigger,...o},tabIndex:0,children:[m("span",{style:{flex:1},children:v?v.label:m("span",{style:w.placeholder,children:r||"请选择"})}),m("span",{style:{marginLeft:8,display:"flex",alignItems:"center"},children:m("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m("path",{d:"M6 8L10 12L14 8",stroke:"#bfbfbf","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),c&&!s&&m("div",{className:`custom-select-dropdown${u?" "+u:""}`,style:{position:"absolute",left:0,right:0,top:44,zIndex:10,borderRadius:6,boxShadow:y?"0 2px 8px rgba(0,0,0,0.08)":"0 2px 8px rgba(0,0,0,0.32)",maxHeight:220,overflowY:"auto",...w.dropdown,...a},children:[n.length===0&&m("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:120,width:"100%",userSelect:"none"},children:[m("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg",children:[m("title",{children:E("暂无数据")}),m("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd",children:[m("ellipse",{fill:"#f5f5f5",cx:"32",cy:"33",rx:"32",ry:"7"}),m("g",{fillRule:"nonzero",stroke:"#d9d9d9",children:[m("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#fafafa"})]})]})]}),m("div",{style:{marginTop:8,color:"#bfbfbf",fontSize:15},children:E("暂无数据")})]}),n.map((x,R)=>m("div",{onClick:()=>{x.disabled||(g(!1),t?.(x.value))},onMouseEnter:()=>b(R),onMouseLeave:()=>b(null),style:{padding:"10px 16px",cursor:x.disabled?"not-allowed":"pointer",fontWeight:e===x.value?600:400,opacity:x.disabled?.6:1,...w.option(e===x.value,!!x.disabled,h===R)},children:x.label},x.value))]}),f]})};function Jt(e,t){return function(){return e.apply(t,arguments)}}const{toString:jn}=Object.prototype,{getPrototypeOf:Ye}=Object,{iterator:Se,toStringTag:Vt}=Symbol,Re=(e=>t=>{const n=jn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),I=e=>(e=e.toLowerCase(),t=>Re(t)===e),Te=e=>t=>typeof t===e,{isArray:X}=Array,re=Te("undefined");function Mn(e){return e!==null&&!re(e)&&e.constructor!==null&&!re(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gt=I("ArrayBuffer");function $n(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gt(e.buffer),t}const qn=Te("string"),P=Te("function"),Kt=Te("number"),ke=e=>e!==null&&typeof e=="object",Wn=e=>e===!0||e===!1,de=e=>{if(Re(e)!=="object")return!1;const t=Ye(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vt in e)&&!(Se in e)},Jn=I("Date"),Vn=I("File"),Gn=I("Blob"),Kn=I("FileList"),Xn=e=>ke(e)&&P(e.pipe),Zn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=Re(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},Qn=I("URLSearchParams"),[Yn,er,tr,nr]=["ReadableStream","Request","Response","Headers"].map(I),rr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),X(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function Xt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zt=e=>!re(e)&&e!==q;function je(){const{caseless:e}=Zt(this)&&this||{},t={},n=(r,o)=>{const i=e&&Xt(t,o)||o;de(t[i])&&de(r)?t[i]=je(t[i],r):de(r)?t[i]=je({},r):X(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ie(arguments[r],n);return t}const or=(e,t,n,{allOwnKeys:r}={})=>(ie(t,(o,i)=>{n&&P(o)?e[i]=Jt(o,n):e[i]=o},{allOwnKeys:r}),e),ir=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sr=(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)},ar=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ye(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cr=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!Kt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ur=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ye(Uint8Array)),fr=(e,t)=>{const r=(e&&e[Se]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},dr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pr=I("HTMLFormElement"),hr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),mt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mr=I("RegExp"),Qt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ie(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},_r=e=>{Qt(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(P(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gr=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return X(e)?r(e):r(String(e).split(t)),n},br=()=>{},yr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wr(e){return!!(e&&P(e.append)&&e[Vt]==="FormData"&&e[Se])}const xr=e=>{const t=new Array(10),n=(r,o)=>{if(ke(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=X(r)?[]:{};return ie(r,(s,a)=>{const l=n(s,o+1);!re(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Er=I("AsyncFunction"),vr=e=>e&&(ke(e)||P(e))&&P(e.then)&&P(e.catch),Yt=((e,t)=>e?setImmediate:t?((n,r)=>(q.addEventListener("message",({source:o,data:i})=>{o===q&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(q.postMessage)),Sr=typeof queueMicrotask<"u"?queueMicrotask.bind(q):typeof process<"u"&&process.nextTick||Yt,Rr=e=>e!=null&&P(e[Se]),d={isArray:X,isArrayBuffer:Gt,isBuffer:Mn,isFormData:Zn,isArrayBufferView:$n,isString:qn,isNumber:Kt,isBoolean:Wn,isObject:ke,isPlainObject:de,isReadableStream:Yn,isRequest:er,isResponse:tr,isHeaders:nr,isUndefined:re,isDate:Jn,isFile:Vn,isBlob:Gn,isRegExp:mr,isFunction:P,isStream:Xn,isURLSearchParams:Qn,isTypedArray:ur,isFileList:Kn,forEach:ie,merge:je,extend:or,trim:rr,stripBOM:ir,inherits:sr,toFlatObject:ar,kindOf:Re,kindOfTest:I,endsWith:lr,toArray:cr,forEachEntry:fr,matchAll:dr,isHTMLForm:pr,hasOwnProperty:mt,hasOwnProp:mt,reduceDescriptors:Qt,freezeMethods:_r,toObjectSet:gr,toCamelCase:hr,noop:br,toFiniteNumber:yr,findKey:Xt,global:q,isContextDefined:Zt,isSpecCompliantForm:wr,toJSONObject:xr,isAsyncFn:Er,isThenable:vr,setImmediate:Yt,asap:Sr,isIterable:Rr};function S(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)}d.inherits(S,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:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=S.prototype,tn={};["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=>{tn[e]={value:e}});Object.defineProperties(S,tn);Object.defineProperty(en,"isAxiosError",{value:!0});S.from=(e,t,n,r,o,i)=>{const s=Object.create(en);return d.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),S.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Tr=null;function Me(e){return d.isPlainObject(e)||d.isArray(e)}function nn(e){return d.endsWith(e,"[]")?e.slice(0,-2):e}function _t(e,t,n){return e?e.concat(t).map(function(o,i){return o=nn(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function kr(e){return d.isArray(e)&&!e.some(Me)}const Cr=d.toFlatObject(d,{},null,function(t){return/^is[A-Z]/.test(t)});function Ce(e,t,n){if(!d.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,p){return!d.isUndefined(p[b])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(t);if(!d.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(d.isDate(h))return h.toISOString();if(d.isBoolean(h))return h.toString();if(!l&&d.isBlob(h))throw new S("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(h)||d.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,b,p){let y=h;if(h&&!p&&typeof h=="object"){if(d.endsWith(b,"{}"))b=r?b:b.slice(0,-2),h=JSON.stringify(h);else if(d.isArray(h)&&kr(h)||(d.isFileList(h)||d.endsWith(b,"[]"))&&(y=d.toArray(h)))return b=nn(b),y.forEach(function(v,x){!(d.isUndefined(v)||v===null)&&t.append(s===!0?_t([b],x,i):s===null?b:b+"[]",u(v))}),!1}return Me(h)?!0:(t.append(_t(p,b,i),u(h)),!1)}const c=[],g=Object.assign(Cr,{defaultVisitor:f,convertValue:u,isVisitable:Me});function _(h,b){if(!d.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+b.join("."));c.push(h),d.forEach(h,function(y,w){(!(d.isUndefined(y)||y===null)&&o.call(t,y,d.isString(w)?w.trim():w,b,g))===!0&&_(y,b?b.concat(w):[w])}),c.pop()}}if(!d.isObject(e))throw new TypeError("data must be an object");return _(e),t}function gt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function et(e,t){this._pairs=[],e&&Ce(e,this,t)}const rn=et.prototype;rn.append=function(t,n){this._pairs.push([t,n])};rn.toString=function(t){const n=t?function(r){return t.call(this,r,gt)}:gt;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Ar(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function on(e,t,n){if(!t)return e;const r=n&&n.encode||Ar;d.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=d.isURLSearchParams(t)?t.toString():new et(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class bt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){d.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Or=typeof URLSearchParams<"u"?URLSearchParams:et,Fr=typeof FormData<"u"?FormData:null,Pr=typeof Blob<"u"?Blob:null,Br={isBrowser:!0,classes:{URLSearchParams:Or,FormData:Fr,Blob:Pr},protocols:["http","https","file","blob","url","data"]},tt=typeof window<"u"&&typeof document<"u",$e=typeof navigator=="object"&&navigator||void 0,Nr=tt&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),Ur=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ir=tt&&window.location.href||"http://localhost",Dr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tt,hasStandardBrowserEnv:Nr,hasStandardBrowserWebWorkerEnv:Ur,navigator:$e,origin:Ir},Symbol.toStringTag,{value:"Module"})),F={...Dr,...Br};function Lr(e,t){return Ce(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return F.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function zr(e){return d.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hr(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function an(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&d.isArray(o)?o.length:s,l?(d.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!d.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&d.isArray(o[s])&&(o[s]=Hr(o[s])),!a)}if(d.isFormData(e)&&d.isFunction(e.entries)){const n={};return d.forEachEntry(e,(r,o)=>{t(zr(r),o,n,0)}),n}return null}function jr(e,t,n){if(d.isString(e))try{return(t||JSON.parse)(e),d.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const se={transitional:sn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=d.isObject(t);if(i&&d.isHTMLForm(t)&&(t=new FormData(t)),d.isFormData(t))return o?JSON.stringify(an(t)):t;if(d.isArrayBuffer(t)||d.isBuffer(t)||d.isStream(t)||d.isFile(t)||d.isBlob(t)||d.isReadableStream(t))return t;if(d.isArrayBufferView(t))return t.buffer;if(d.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lr(t,this.formSerializer).toString();if((a=d.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ce(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),jr(t)):t}],transformResponse:[function(t){const n=this.transitional||se.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(d.isResponse(t)||d.isReadableStream(t))return t;if(t&&d.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?S.from(a,S.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],e=>{se.headers[e]={}});const Mr=d.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"]),$r=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
17
|
-
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Mr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yt=Symbol("internals");function Y(e){return e&&String(e).trim().toLowerCase()}function pe(e){return e===!1||e==null?e:d.isArray(e)?e.map(pe):String(e)}function qr(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}const Wr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Be(e,t,n,r,o){if(d.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!d.isString(t)){if(d.isString(r))return t.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(t)}}function Jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Vr(e,t){const n=d.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let B=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const f=Y(l);if(!f)throw new Error("header name must be a non-empty string");const c=d.findKey(o,f);(!c||o[c]===void 0||u===!0||u===void 0&&o[c]!==!1)&&(o[c||l]=pe(a))}const s=(a,l)=>d.forEach(a,(u,f)=>i(u,f,l));if(d.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(d.isString(t)&&(t=t.trim())&&!Wr(t))s($r(t),n);else if(d.isObject(t)&&d.isIterable(t)){let a={},l,u;for(const f of t){if(!d.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[u=f[0]]=(l=a[u])?d.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Y(t),t){const r=d.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return qr(o);if(d.isFunction(n))return n.call(this,o,r);if(d.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Y(t),t){const r=d.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Be(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Y(s),s){const a=d.findKey(r,s);a&&(!n||Be(r,r[a],a,n))&&(delete r[a],o=!0)}}return d.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Be(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return d.forEach(this,(o,i)=>{const s=d.findKey(r,i);if(s){n[s]=pe(o),delete n[i];return}const a=t?Jr(i):String(i).trim();a!==i&&delete n[i],n[a]=pe(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return d.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
18
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[yt]=this[yt]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Y(s);r[a]||(Vr(o,s),r[a]=!0)}return d.isArray(t)?t.forEach(i):i(t),this}};B.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(B.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});d.freezeMethods(B);function Ne(e,t){const n=this||se,r=t||n,o=B.from(r.headers);let i=r.data;return d.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ln(e){return!!(e&&e.__CANCEL__)}function Z(e,t,n){S.call(this,e??"canceled",S.ERR_CANCELED,t,n),this.name="CanceledError"}d.inherits(Z,S,{__CANCEL__:!0});function cn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new S("Request failed with status code "+n.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[i];s||(s=u),n[o]=l,r[o]=u;let c=i,g=0;for(;c!==o;)g+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const _=f&&u-f;return _?Math.round(g*1e3/_):void 0}}function Xr(e,t){let n=0,r=1e3/t,o,i;const s=(u,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),c=f-n;c>=r?s(u,f):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-c)))},()=>o&&s(o)]}const be=(e,t,n=3)=>{let r=0;const o=Kr(50,250);return Xr(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,u=o(l),f=s<=a;r=s;const c={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&f?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(c)},n)},wt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xt=e=>(...t)=>d.asap(()=>e(...t)),Zr=F.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,F.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,Qr=F.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];d.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),d.isString(r)&&s.push("path="+r),d.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.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(){return null},remove(){}};function Yr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function un(e,t,n){let r=!Yr(t);return e&&(r||n==!1)?eo(e,t):t}const Et=e=>e instanceof B?{...e}:e;function J(e,t){t=t||{};const n={};function r(u,f,c,g){return d.isPlainObject(u)&&d.isPlainObject(f)?d.merge.call({caseless:g},u,f):d.isPlainObject(f)?d.merge({},f):d.isArray(f)?f.slice():f}function o(u,f,c,g){if(d.isUndefined(f)){if(!d.isUndefined(u))return r(void 0,u,c,g)}else return r(u,f,c,g)}function i(u,f){if(!d.isUndefined(f))return r(void 0,f)}function s(u,f){if(d.isUndefined(f)){if(!d.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,c){if(c in t)return r(u,f);if(c in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f,c)=>o(Et(u),Et(f),c,!0)};return d.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||o,g=c(e[f],t[f],f);d.isUndefined(g)&&c!==a||(n[f]=g)}),n}const fn=e=>{const t=J({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=B.from(s),t.url=on(un(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(d.isFormData(n)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...f]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...f].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(t)),r||r!==!1&&Zr(t.url))){const u=o&&i&&Qr.read(i);u&&s.set(o,u)}return t},to=typeof XMLHttpRequest<"u",no=to&&function(e){return new Promise(function(n,r){const o=fn(e);let i=o.data;const s=B.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=o,f,c,g,_,h;function b(){_&&_(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function y(){if(!p)return;const v=B.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:v,config:e,request:p};cn(function(U){n(U),b()},function(U){r(U),b()},R),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(r(new S("Request aborted",S.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new S("Network Error",S.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||sn;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new S(x,R.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,p)),p=null},i===void 0&&s.setContentType(null),"setRequestHeader"in p&&d.forEach(s.toJSON(),function(x,R){p.setRequestHeader(R,x)}),d.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),u&&([g,h]=be(u,!0),p.addEventListener("progress",g)),l&&p.upload&&([c,_]=be(l),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(f=v=>{p&&(r(!v||v.type?new Z(null,e,p):v),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const w=Gr(o.url);if(w&&F.protocols.indexOf(w)===-1){r(new S("Unsupported protocol "+w+":",S.ERR_BAD_REQUEST,e));return}p.send(i||null)})},ro=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,a();const f=u instanceof Error?u:this.reason;r.abort(f instanceof S?f:new Z(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{s=null,i(new S(`timeout ${t} of ms exceeded`,S.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>d.asap(a),l}},oo=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},io=async function*(e,t){for await(const n of so(e))yield*oo(n,t)},so=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vt=(e,t,n,r)=>{const o=io(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await o.next();if(u){a(),l.close();return}let c=f.byteLength;if(n){let g=i+=c;n(g)}l.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Ae=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",dn=Ae&&typeof ReadableStream=="function",ao=Ae&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lo=dn&&pn(()=>{let e=!1;const t=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),St=64*1024,qe=dn&&pn(()=>d.isReadableStream(new Response("").body)),ye={stream:qe&&(e=>e.body)};Ae&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ye[t]&&(ye[t]=d.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new S(`Response type '${t}' is not supported`,S.ERR_NOT_SUPPORT,r)})})})(new Response);const co=async e=>{if(e==null)return 0;if(d.isBlob(e))return e.size;if(d.isSpecCompliantForm(e))return(await new Request(F.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(d.isArrayBufferView(e)||d.isArrayBuffer(e))return e.byteLength;if(d.isURLSearchParams(e)&&(e=e+""),d.isString(e))return(await ao(e)).byteLength},uo=async(e,t)=>{const n=d.toFiniteNumber(e.getContentLength());return n??co(t)},fo=Ae&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:f,withCredentials:c="same-origin",fetchOptions:g}=fn(e);u=u?(u+"").toLowerCase():"text";let _=ro([o,i&&i.toAbortSignal()],s),h;const b=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let p;try{if(l&&lo&&n!=="get"&&n!=="head"&&(p=await uo(f,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(d.isFormData(r)&&(k=R.headers.get("content-type"))&&f.setContentType(k),R.body){const[U,j]=wt(p,be(xt(l)));r=vt(R.body,St,U,j)}}d.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...g,signal:_,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:y?c:void 0});let w=await fetch(h,g);const v=qe&&(u==="stream"||u==="response");if(qe&&(a||v&&b)){const R={};["status","statusText","headers"].forEach(M=>{R[M]=w[M]});const k=d.toFiniteNumber(w.headers.get("content-length")),[U,j]=a&&wt(k,be(xt(a),!0))||[];w=new Response(vt(w.body,St,U,()=>{j&&j(),b&&b()}),R)}u=u||"text";let x=await ye[d.findKey(ye,u)||"text"](w,e);return!v&&b&&b(),await new Promise((R,k)=>{cn(R,k,{data:x,headers:B.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:h})})}catch(y){throw b&&b(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,e,h),{cause:y.cause||y}):S.from(y,y&&y.code,e,h)}}),We={http:Tr,xhr:no,fetch:fo};d.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rt=e=>`- ${e}`,po=e=>d.isFunction(e)||e===null||e===!1,hn={getAdapter:e=>{e=d.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!po(n)&&(r=We[(s=String(n)).toLowerCase()],r===void 0))throw new S(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
19
|
-
`+i.map(Rt).join(`
|
|
20
|
-
`):" "+Rt(i[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:We};function Ue(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Z(null,e)}function Tt(e){return Ue(e),e.headers=B.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hn.getAdapter(e.adapter||se.adapter)(e).then(function(r){return Ue(e),r.data=Ne.call(e,e.transformResponse,r),r.headers=B.from(r.headers),r},function(r){return ln(r)||(Ue(e),r&&r.response&&(r.response.data=Ne.call(e,e.transformResponse,r.response),r.response.headers=B.from(r.response.headers))),Promise.reject(r)})}const mn="1.10.0",Oe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const kt={};Oe.transitional=function(t,n,r){function o(i,s){return"[Axios v"+mn+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new S(o(s," has been removed"+(n?" in "+n:"")),S.ERR_DEPRECATED);return n&&!kt[s]&&(kt[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Oe.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ho(e,t,n){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new S("option "+i+" must be "+l,S.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new S("Unknown option "+i,S.ERR_BAD_OPTION)}}const he={assertOptions:ho,validators:Oe},L=he.validators;let W=class{constructor(t){this.defaults=t||{},this.interceptors={request:new bt,response:new bt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
21
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=J(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&he.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),o!=null&&(d.isFunction(o)?n.paramsSerializer={serialize:o}:he.assertOptions(o,{encode:L.function,serialize:L.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),he.assertOptions(n,{baseUrl:L.spelling("baseURL"),withXsrfToken:L.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&d.merge(i.common,i[n.method]);i&&d.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=B.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let f,c=0,g;if(!l){const h=[Tt.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),g=h.length,f=Promise.resolve(n);c<g;)f=f.then(h[c++],h[c++]);return f}g=a.length;let _=n;for(c=0;c<g;){const h=a[c++],b=a[c++];try{_=h(_)}catch(p){b.call(this,p);break}}try{f=Tt.call(this,_)}catch(h){return Promise.reject(h)}for(c=0,g=u.length;c<g;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=J(this.defaults,t);const n=un(t.baseURL,t.url,t.allowAbsoluteUrls);return on(n,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){W.prototype[t]=function(n,r){return this.request(J(r||{},{method:t,url:n,data:(r||{}).data}))}});d.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(J(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}W.prototype[t]=n(),W.prototype[t+"Form"]=n(!0)});let mo=class _n{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Z(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _n(function(o){t=o}),cancel:t}}};function _o(e){return function(n){return e.apply(null,n)}}function go(e){return d.isObject(e)&&e.isAxiosError===!0}const Je={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(Je).forEach(([e,t])=>{Je[t]=e});function gn(e){const t=new W(e),n=Jt(W.prototype.request,t);return d.extend(n,W.prototype,t,{allOwnKeys:!0}),d.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gn(J(e,o))},n}const A=gn(se);A.Axios=W;A.CanceledError=Z;A.CancelToken=mo;A.isCancel=ln;A.VERSION=mn;A.toFormData=Ce;A.AxiosError=S;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=_o;A.isAxiosError=go;A.mergeConfig=J;A.AxiosHeaders=B;A.formToJSON=e=>an(d.isHTMLForm(e)?new FormData(e):e);A.getAdapter=hn.getAdapter;A.HttpStatusCode=Je;A.default=A;const{Axios:Mo,AxiosError:$o,CanceledError:qo,isCancel:Wo,CancelToken:Jo,VERSION:Vo,all:Go,Cancel:Ko,isAxiosError:Xo,spread:Zo,toFormData:Qo,AxiosHeaders:Yo,HttpStatusCode:ei,formToJSON:ti,getAdapter:ni,mergeConfig:ri}=A;class bo{parseArg(t){return typeof t=="string"?{content:t}:t}show(t,n){const{content:r,duration:o,closable:i}=this.parseArg(n),s=document.createElement("div");if(s.style.cssText=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function yn(){console.log("npm package test!!!")}function wn(){console.log("Current time:",new Date().toISOString())}function Ie(e){return Object.entries(e).reduce((t,[n,r])=>{if(r&&typeof r=="object"&&!Array.isArray(r)){const o=Ie(r);return Object.keys(o).length>0&&(t[n]=o),t}return r!=null&&(t[n]=r),t},{})}function At(e,t){return function(){return e.apply(t,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:Ve}=Object,{iterator:ye,toStringTag:Ot}=Symbol,we=(e=>t=>{const n=xn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),U=e=>(e=e.toLowerCase(),t=>we(t)===e),xe=e=>t=>typeof t===e,{isArray:K}=Array,ne=xe("undefined");function En(e){return e!==null&&!ne(e)&&e.constructor!==null&&!ne(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ft=U("ArrayBuffer");function Sn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ft(e.buffer),t}const vn=xe("string"),P=xe("function"),Pt=xe("number"),Ee=e=>e!==null&&typeof e=="object",Rn=e=>e===!0||e===!1,ce=e=>{if(we(e)!=="object")return!1;const t=Ve(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ot in e)&&!(ye in e)},Tn=U("Date"),kn=U("File"),Cn=U("Blob"),An=U("FileList"),On=e=>Ee(e)&&P(e.pipe),Fn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=we(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},Pn=U("URLSearchParams"),[Bn,Nn,In,Un]=["ReadableStream","Request","Response","Headers"].map(U),Dn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),K(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function Bt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nt=e=>!ne(e)&&e!==q;function Ue(){const{caseless:e}=Nt(this)&&this||{},t={},n=(r,o)=>{const i=e&&Bt(t,o)||o;ce(t[i])&&ce(r)?t[i]=Ue(t[i],r):ce(r)?t[i]=Ue({},r):K(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ie(arguments[r],n);return t}const Ln=(e,t,n,{allOwnKeys:r}={})=>(ie(t,(o,i)=>{n&&P(o)?e[i]=At(o,n):e[i]=o},{allOwnKeys:r}),e),zn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hn=(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)},jn=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ve(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$n=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!Pt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ve(Uint8Array)),Wn=(e,t)=>{const r=(e&&e[ye]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Jn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vn=U("HTMLFormElement"),Gn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),nt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kn=U("RegExp"),It=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ie(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Xn=e=>{It(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(P(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zn=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return K(e)?r(e):r(String(e).split(t)),n},Qn=()=>{},Yn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function er(e){return!!(e&&P(e.append)&&e[Ot]==="FormData"&&e[ye])}const tr=e=>{const t=new Array(10),n=(r,o)=>{if(Ee(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=K(r)?[]:{};return ie(r,(s,a)=>{const c=n(s,o+1);!ne(c)&&(i[a]=c)}),t[o]=void 0,i}}return r};return n(e,0)},nr=U("AsyncFunction"),rr=e=>e&&(Ee(e)||P(e))&&P(e.then)&&P(e.catch),Ut=((e,t)=>e?setImmediate:t?((n,r)=>(q.addEventListener("message",({source:o,data:i})=>{o===q&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(q.postMessage)),or=typeof queueMicrotask<"u"?queueMicrotask.bind(q):typeof process<"u"&&process.nextTick||Ut,ir=e=>e!=null&&P(e[ye]),d={isArray:K,isArrayBuffer:Ft,isBuffer:En,isFormData:Fn,isArrayBufferView:Sn,isString:vn,isNumber:Pt,isBoolean:Rn,isObject:Ee,isPlainObject:ce,isReadableStream:Bn,isRequest:Nn,isResponse:In,isHeaders:Un,isUndefined:ne,isDate:Tn,isFile:kn,isBlob:Cn,isRegExp:Kn,isFunction:P,isStream:On,isURLSearchParams:Pn,isTypedArray:qn,isFileList:An,forEach:ie,merge:Ue,extend:Ln,trim:Dn,stripBOM:zn,inherits:Hn,toFlatObject:jn,kindOf:we,kindOfTest:U,endsWith:Mn,toArray:$n,forEachEntry:Wn,matchAll:Jn,isHTMLForm:Vn,hasOwnProperty:nt,hasOwnProp:nt,reduceDescriptors:It,freezeMethods:Xn,toObjectSet:Zn,toCamelCase:Gn,noop:Qn,toFiniteNumber:Yn,findKey:Bt,global:q,isContextDefined:Nt,isSpecCompliantForm:er,toJSONObject:tr,isAsyncFn:nr,isThenable:rr,setImmediate:Ut,asap:or,isIterable:ir};function v(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)}d.inherits(v,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:d.toJSONObject(this.config),code:this.code,status:this.status}}});const Dt=v.prototype,Lt={};["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=>{Lt[e]={value:e}});Object.defineProperties(v,Lt);Object.defineProperty(Dt,"isAxiosError",{value:!0});v.from=(e,t,n,r,o,i)=>{const s=Object.create(Dt);return d.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),v.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const sr=null;function De(e){return d.isPlainObject(e)||d.isArray(e)}function zt(e){return d.endsWith(e,"[]")?e.slice(0,-2):e}function rt(e,t,n){return e?e.concat(t).map(function(o,i){return o=zt(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ar(e){return d.isArray(e)&&!e.some(De)}const lr=d.toFlatObject(d,{},null,function(t){return/^is[A-Z]/.test(t)});function Se(e,t,n){if(!d.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!d.isUndefined(p[g])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(t);if(!d.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(d.isDate(h))return h.toISOString();if(d.isBoolean(h))return h.toString();if(!c&&d.isBlob(h))throw new v("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(h)||d.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,g,p){let y=h;if(h&&!p&&typeof h=="object"){if(d.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(d.isArray(h)&&ar(h)||(d.isFileList(h)||d.endsWith(g,"[]"))&&(y=d.toArray(h)))return g=zt(g),y.forEach(function(S,x){!(d.isUndefined(S)||S===null)&&t.append(s===!0?rt([g],x,i):s===null?g:g+"[]",u(S))}),!1}return De(h)?!0:(t.append(rt(p,g,i),u(h)),!1)}const l=[],b=Object.assign(lr,{defaultVisitor:f,convertValue:u,isVisitable:De});function _(h,g){if(!d.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(h),d.forEach(h,function(y,w){(!(d.isUndefined(y)||y===null)&&o.call(t,y,d.isString(w)?w.trim():w,g,b))===!0&&_(y,g?g.concat(w):[w])}),l.pop()}}if(!d.isObject(e))throw new TypeError("data must be an object");return _(e),t}function ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ge(e,t){this._pairs=[],e&&Se(e,this,t)}const Ht=Ge.prototype;Ht.append=function(t,n){this._pairs.push([t,n])};Ht.toString=function(t){const n=t?function(r){return t.call(this,r,ot)}:ot;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jt(e,t,n){if(!t)return e;const r=n&&n.encode||cr;d.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=d.isURLSearchParams(t)?t.toString():new Ge(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class it{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){d.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ur=typeof URLSearchParams<"u"?URLSearchParams:Ge,fr=typeof FormData<"u"?FormData:null,dr=typeof Blob<"u"?Blob:null,pr={isBrowser:!0,classes:{URLSearchParams:ur,FormData:fr,Blob:dr},protocols:["http","https","file","blob","url","data"]},Ke=typeof window<"u"&&typeof document<"u",Le=typeof navigator=="object"&&navigator||void 0,hr=Ke&&(!Le||["ReactNative","NativeScript","NS"].indexOf(Le.product)<0),mr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_r=Ke&&window.location.href||"http://localhost",br=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ke,hasStandardBrowserEnv:hr,hasStandardBrowserWebWorkerEnv:mr,navigator:Le,origin:_r},Symbol.toStringTag,{value:"Module"})),F={...br,...pr};function gr(e,t){return Se(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return F.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yr(e){return d.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wr(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function $t(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&d.isArray(o)?o.length:s,c?(d.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!d.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&d.isArray(o[s])&&(o[s]=wr(o[s])),!a)}if(d.isFormData(e)&&d.isFunction(e.entries)){const n={};return d.forEachEntry(e,(r,o)=>{t(yr(r),o,n,0)}),n}return null}function xr(e,t,n){if(d.isString(e))try{return(t||JSON.parse)(e),d.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const se={transitional:Mt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=d.isObject(t);if(i&&d.isHTMLForm(t)&&(t=new FormData(t)),d.isFormData(t))return o?JSON.stringify($t(t)):t;if(d.isArrayBuffer(t)||d.isBuffer(t)||d.isStream(t)||d.isFile(t)||d.isBlob(t)||d.isReadableStream(t))return t;if(d.isArrayBufferView(t))return t.buffer;if(d.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gr(t,this.formSerializer).toString();if((a=d.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Se(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xr(t)):t}],transformResponse:[function(t){const n=this.transitional||se.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(d.isResponse(t)||d.isReadableStream(t))return t;if(t&&d.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?v.from(a,v.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],e=>{se.headers[e]={}});const Er=d.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"]),Sr=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Er[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},st=Symbol("internals");function ee(e){return e&&String(e).trim().toLowerCase()}function ue(e){return e===!1||e==null?e:d.isArray(e)?e.map(ue):String(e)}function vr(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}const Rr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fe(e,t,n,r,o){if(d.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!d.isString(t)){if(d.isString(r))return t.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(t)}}function Tr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kr(e,t){const n=d.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let B=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,c,u){const f=ee(c);if(!f)throw new Error("header name must be a non-empty string");const l=d.findKey(o,f);(!l||o[l]===void 0||u===!0||u===void 0&&o[l]!==!1)&&(o[l||c]=ue(a))}const s=(a,c)=>d.forEach(a,(u,f)=>i(u,f,c));if(d.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(d.isString(t)&&(t=t.trim())&&!Rr(t))s(Sr(t),n);else if(d.isObject(t)&&d.isIterable(t)){let a={},c,u;for(const f of t){if(!d.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[u=f[0]]=(c=a[u])?d.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ee(t),t){const r=d.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return vr(o);if(d.isFunction(n))return n.call(this,o,r);if(d.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ee(t),t){const r=d.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ee(s),s){const a=d.findKey(r,s);a&&(!n||Fe(r,r[a],a,n))&&(delete r[a],o=!0)}}return d.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Fe(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return d.forEach(this,(o,i)=>{const s=d.findKey(r,i);if(s){n[s]=ue(o),delete n[i];return}const a=t?Tr(i):String(i).trim();a!==i&&delete n[i],n[a]=ue(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return d.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[st]=this[st]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ee(s);r[a]||(kr(o,s),r[a]=!0)}return d.isArray(t)?t.forEach(i):i(t),this}};B.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(B.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});d.freezeMethods(B);function Pe(e,t){const n=this||se,r=t||n,o=B.from(r.headers);let i=r.data;return d.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function qt(e){return!!(e&&e.__CANCEL__)}function X(e,t,n){v.call(this,e??"canceled",v.ERR_CANCELED,t,n),this.name="CanceledError"}d.inherits(X,v,{__CANCEL__:!0});function Wt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new v("Request failed with status code "+n.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Cr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ar(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),f=r[i];s||(s=u),n[o]=c,r[o]=u;let l=i,b=0;for(;l!==o;)b+=n[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const _=f&&u-f;return _?Math.round(b*1e3/_):void 0}}function Or(e,t){let n=0,r=1e3/t,o,i;const s=(u,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),l=f-n;l>=r?s(u,f):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-l)))},()=>o&&s(o)]}const he=(e,t,n=3)=>{let r=0;const o=Ar(50,250);return Or(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-r,u=o(c),f=s<=a;r=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(l)},n)},at=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},lt=e=>(...t)=>d.asap(()=>e(...t)),Fr=F.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,F.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,Pr=F.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];d.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),d.isString(r)&&s.push("path="+r),d.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.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(){return null},remove(){}};function Br(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Jt(e,t,n){let r=!Br(t);return e&&(r||n==!1)?Nr(e,t):t}const ct=e=>e instanceof B?{...e}:e;function J(e,t){t=t||{};const n={};function r(u,f,l,b){return d.isPlainObject(u)&&d.isPlainObject(f)?d.merge.call({caseless:b},u,f):d.isPlainObject(f)?d.merge({},f):d.isArray(f)?f.slice():f}function o(u,f,l,b){if(d.isUndefined(f)){if(!d.isUndefined(u))return r(void 0,u,l,b)}else return r(u,f,l,b)}function i(u,f){if(!d.isUndefined(f))return r(void 0,f)}function s(u,f){if(d.isUndefined(f)){if(!d.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,l){if(l in t)return r(u,f);if(l in e)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f,l)=>o(ct(u),ct(f),l,!0)};return d.forEach(Object.keys(Object.assign({},e,t)),function(f){const l=c[f]||o,b=l(e[f],t[f],f);d.isUndefined(b)&&l!==a||(n[f]=b)}),n}const Vt=e=>{const t=J({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=B.from(s),t.url=jt(Jt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(d.isFormData(n)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...f]=c?c.split(";").map(l=>l.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...f].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(t)),r||r!==!1&&Fr(t.url))){const u=o&&i&&Pr.read(i);u&&s.set(o,u)}return t},Ir=typeof XMLHttpRequest<"u",Ur=Ir&&function(e){return new Promise(function(n,r){const o=Vt(e);let i=o.data;const s=B.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,f,l,b,_,h;function g(){_&&_(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function y(){if(!p)return;const S=B.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};Wt(function(I){n(I),g()},function(I){r(I),g()},R),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(r(new v("Request aborted",v.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new v("Network Error",v.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||Mt;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new v(x,R.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,e,p)),p=null},i===void 0&&s.setContentType(null),"setRequestHeader"in p&&d.forEach(s.toJSON(),function(x,R){p.setRequestHeader(R,x)}),d.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),u&&([b,h]=he(u,!0),p.addEventListener("progress",b)),c&&p.upload&&([l,_]=he(c),p.upload.addEventListener("progress",l),p.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(f=S=>{p&&(r(!S||S.type?new X(null,e,p):S),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const w=Cr(o.url);if(w&&F.protocols.indexOf(w)===-1){r(new v("Unsupported protocol "+w+":",v.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Dr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,a();const f=u instanceof Error?u:this.reason;r.abort(f instanceof v?f:new X(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{s=null,i(new v(`timeout ${t} of ms exceeded`,v.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>d.asap(a),c}},Lr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},zr=async function*(e,t){for await(const n of Hr(e))yield*Lr(n,t)},Hr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ut=(e,t,n,r)=>{const o=zr(e,t);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await o.next();if(u){a(),c.close();return}let l=f.byteLength;if(n){let b=i+=l;n(b)}c.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ve=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gt=ve&&typeof ReadableStream=="function",jr=ve&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Kt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Mr=Gt&&Kt(()=>{let e=!1;const t=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ft=64*1024,ze=Gt&&Kt(()=>d.isReadableStream(new Response("").body)),me={stream:ze&&(e=>e.body)};ve&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!me[t]&&(me[t]=d.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new v(`Response type '${t}' is not supported`,v.ERR_NOT_SUPPORT,r)})})})(new Response);const $r=async e=>{if(e==null)return 0;if(d.isBlob(e))return e.size;if(d.isSpecCompliantForm(e))return(await new Request(F.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(d.isArrayBufferView(e)||d.isArrayBuffer(e))return e.byteLength;if(d.isURLSearchParams(e)&&(e=e+""),d.isString(e))return(await jr(e)).byteLength},qr=async(e,t)=>{const n=d.toFiniteNumber(e.getContentLength());return n??$r(t)},Wr=ve&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:l="same-origin",fetchOptions:b}=Vt(e);u=u?(u+"").toLowerCase():"text";let _=Dr([o,i&&i.toAbortSignal()],s),h;const g=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let p;try{if(c&&Mr&&n!=="get"&&n!=="head"&&(p=await qr(f,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(d.isFormData(r)&&(k=R.headers.get("content-type"))&&f.setContentType(k),R.body){const[I,j]=at(p,he(lt(c)));r=ut(R.body,ft,I,j)}}d.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...b,signal:_,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let w=await fetch(h,b);const S=ze&&(u==="stream"||u==="response");if(ze&&(a||S&&g)){const R={};["status","statusText","headers"].forEach(M=>{R[M]=w[M]});const k=d.toFiniteNumber(w.headers.get("content-length")),[I,j]=a&&at(k,he(lt(a),!0))||[];w=new Response(ut(w.body,ft,I,()=>{j&&j(),g&&g()}),R)}u=u||"text";let x=await me[d.findKey(me,u)||"text"](w,e);return!S&&g&&g(),await new Promise((R,k)=>{Wt(R,k,{data:x,headers:B.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:h})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,e,h),{cause:y.cause||y}):v.from(y,y&&y.code,e,h)}}),He={http:sr,xhr:Ur,fetch:Wr};d.forEach(He,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const dt=e=>`- ${e}`,Jr=e=>d.isFunction(e)||e===null||e===!1,Xt={getAdapter:e=>{e=d.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!Jr(n)&&(r=He[(s=String(n)).toLowerCase()],r===void 0))throw new v(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
4
|
+
`+i.map(dt).join(`
|
|
5
|
+
`):" "+dt(i[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:He};function Be(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new X(null,e)}function pt(e){return Be(e),e.headers=B.from(e.headers),e.data=Pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xt.getAdapter(e.adapter||se.adapter)(e).then(function(r){return Be(e),r.data=Pe.call(e,e.transformResponse,r),r.headers=B.from(r.headers),r},function(r){return qt(r)||(Be(e),r&&r.response&&(r.response.data=Pe.call(e,e.transformResponse,r.response),r.response.headers=B.from(r.response.headers))),Promise.reject(r)})}const Zt="1.10.0",Re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Re[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ht={};Re.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Zt+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new v(o(s," has been removed"+(n?" in "+n:"")),v.ERR_DEPRECATED);return n&&!ht[s]&&(ht[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Re.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Vr(e,t,n){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new v("option "+i+" must be "+c,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+i,v.ERR_BAD_OPTION)}}const fe={assertOptions:Vr,validators:Re},L=fe.validators;let W=class{constructor(t){this.defaults=t||{},this.interceptors={request:new it,response:new it}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=J(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&fe.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),o!=null&&(d.isFunction(o)?n.paramsSerializer={serialize:o}:fe.assertOptions(o,{encode:L.function,serialize:L.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),fe.assertOptions(n,{baseUrl:L.spelling("baseURL"),withXsrfToken:L.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&d.merge(i.common,i[n.method]);i&&d.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=B.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,l=0,b;if(!c){const h=[pt.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),b=h.length,f=Promise.resolve(n);l<b;)f=f.then(h[l++],h[l++]);return f}b=a.length;let _=n;for(l=0;l<b;){const h=a[l++],g=a[l++];try{_=h(_)}catch(p){g.call(this,p);break}}try{f=pt.call(this,_)}catch(h){return Promise.reject(h)}for(l=0,b=u.length;l<b;)f=f.then(u[l++],u[l++]);return f}getUri(t){t=J(this.defaults,t);const n=Jt(t.baseURL,t.url,t.allowAbsoluteUrls);return jt(n,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){W.prototype[t]=function(n,r){return this.request(J(r||{},{method:t,url:n,data:(r||{}).data}))}});d.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(J(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}W.prototype[t]=n(),W.prototype[t+"Form"]=n(!0)});let Gr=class Qt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new X(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qt(function(o){t=o}),cancel:t}}};function Kr(e){return function(n){return e.apply(null,n)}}function Xr(e){return d.isObject(e)&&e.isAxiosError===!0}const je={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(je).forEach(([e,t])=>{je[t]=e});function Yt(e){const t=new W(e),n=At(W.prototype.request,t);return d.extend(n,W.prototype,t,{allOwnKeys:!0}),d.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Yt(J(e,o))},n}const A=Yt(se);A.Axios=W;A.CanceledError=X;A.CancelToken=Gr;A.isCancel=qt;A.VERSION=Zt;A.toFormData=Se;A.AxiosError=v;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=Kr;A.isAxiosError=Xr;A.mergeConfig=J;A.AxiosHeaders=B;A.formToJSON=e=>$t(d.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Xt.getAdapter;A.HttpStatusCode=je;A.default=A;const{Axios:jo,AxiosError:Mo,CanceledError:$o,isCancel:qo,CancelToken:Wo,VERSION:Jo,all:Vo,Cancel:Go,isAxiosError:Ko,spread:Xo,toFormData:Zo,AxiosHeaders:Qo,HttpStatusCode:Yo,formToJSON:ei,getAdapter:ti,mergeConfig:ni}=A;var ae,T,en,$,mt,tn,nn,rn,Xe,Me,$e,re={},on=[],Zr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Te=Array.isArray;function z(e,t){for(var n in t)e[n]=t[n];return e}function Ze(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function V(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ae.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return te(e,s,r,o,null)}function te(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++en,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Z(e){return e.children}function de(e,t){this.props=e,this.context=t}function G(e,t){if(t==null)return e.__?G(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?G(e):null}function sn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return sn(e)}}function _t(e){(!e.__d&&(e.__d=!0)&&$.push(e)&&!_e.__r++||mt!=T.debounceRendering)&&((mt=T.debounceRendering)||tn)(_e)}function _e(){for(var e,t,n,r,o,i,s,a=1;$.length;)$.length>a&&$.sort(nn),e=$.shift(),a=$.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=z({},r)).__v=r.__v+1,T.vnode&&T.vnode(n),Qe(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??G(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,cn(i,n,s),n.__e!=o&&sn(n)));_e.__r=0}function an(e,t,n,r,o,i,s,a,c,u,f){var l,b,_,h,g,p,y=r&&r.__k||on,w=t.length;for(c=Qr(n,t,y,c,w),l=0;l<w;l++)(_=n.__k[l])!=null&&(b=_.__i==-1?re:y[_.__i]||re,_.__i=l,p=Qe(e,_,b,o,i,s,a,c,u,f),h=_.__e,_.ref&&b.ref!=_.ref&&(b.ref&&Ye(b.ref,null,_),f.push(_.ref,_.__c||h,_)),g==null&&h!=null&&(g=h),4&_.__u||b.__k===_.__k?c=ln(_,c,e):typeof _.type=="function"&&p!==void 0?c=p:h&&(c=h.nextSibling),_.__u&=-7);return n.__e=g,c}function Qr(e,t,n,r,o){var i,s,a,c,u,f=n.length,l=f,b=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(c=i+b,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?te(null,s,null,null,null):Te(s)?te(Z,{children:s},null,null,null):s.constructor==null&&s.__b>0?te(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=Yr(s,n,c,l))!=-1&&(l--,(a=n[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(o>f?b--:o<f&&b++),typeof s.type!="function"&&(s.__u|=4)):u!=c&&(u==c-1?b--:u==c+1?b++:(u>c?b--:b++,s.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=G(a)),fn(a,a));return r}function ln(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ln(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=G(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Yr(e,t,n,r){var o,i,s=e.key,a=e.type,c=t[n];if(c===null&&e.key==null||c&&s==c.key&&a==c.type&&(2&c.__u)==0)return n;if(r>(c!=null&&(2&c.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&(2&c.__u)==0&&s==c.key&&a==c.type)return o;o--}if(i<t.length){if((c=t[i])&&(2&c.__u)==0&&s==c.key&&a==c.type)return i;i++}}return-1}function bt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Zr.test(t)?n:n+"px"}function le(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||bt(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||bt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(rn,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Xe,e.addEventListener(t,i?$e:Me,i)):e.removeEventListener(t,i?$e:Me,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function gt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Xe++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function Qe(e,t,n,r,o,i,s,a,c,u){var f,l,b,_,h,g,p,y,w,S,x,R,k,I,j,M,Oe,D=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof D=="function")try{if(y=t.props,w="prototype"in D&&D.prototype.render,S=(f=D.contextType)&&r[f.__c],x=f?S?S.props.value:f.__:r,n.__c?p=(l=t.__c=n.__c).__=l.__E:(w?t.__c=l=new D(y,x):(t.__c=l=new de(y,x),l.constructor=D,l.render=to),S&&S.sub(l),l.props=y,l.state||(l.state={}),l.context=x,l.__n=r,b=l.__d=!0,l.__h=[],l._sb=[]),w&&l.__s==null&&(l.__s=l.state),w&&D.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=z({},l.__s)),z(l.__s,D.getDerivedStateFromProps(y,l.__s))),_=l.props,h=l.state,l.__v=t,b)w&&D.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),w&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(w&&D.getDerivedStateFromProps==null&&y!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,x),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Y){Y&&(Y.__=t)}),R=0;R<l._sb.length;R++)l.__h.push(l._sb[R]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,x),w&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,h,g)})}if(l.context=x,l.props=y,l.__P=e,l.__e=!1,k=T.__r,I=0,w){for(l.state=l.__s,l.__d=!1,k&&k(t),f=l.render(l.props,l.state,l.context),j=0;j<l._sb.length;j++)l.__h.push(l._sb[j]);l._sb=[]}else do l.__d=!1,k&&k(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++I<25);l.state=l.__s,l.getChildContext!=null&&(r=z(z({},r),l.getChildContext())),w&&!b&&l.getSnapshotBeforeUpdate!=null&&(g=l.getSnapshotBeforeUpdate(_,h)),M=f,f!=null&&f.type===Z&&f.key==null&&(M=un(f.props.children)),a=an(e,Te(M)?M:[M],t,n,r,o,i,s,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),p&&(l.__E=l.__=null)}catch(Y){if(t.__v=null,c||i!=null)if(Y.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(Oe=i.length;Oe--;)Ze(i[Oe]);else t.__e=n.__e,t.__k=n.__k;T.__e(Y,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=eo(n.__e,t,n,r,o,i,s,c,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function cn(e,t,n){for(var r=0;r<n.length;r++)Ye(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function un(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Te(e)?e.map(un):z({},e)}function eo(e,t,n,r,o,i,s,a,c){var u,f,l,b,_,h,g,p=n.props,y=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((_=i[u])&&"setAttribute"in _==!!w&&(w?_.localName==w:_.nodeType==3)){e=_,i[u]=null;break}}if(e==null){if(w==null)return document.createTextNode(y);e=document.createElementNS(o,w,y.is&&y),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(w==null)p===y||a&&e.data==y||(e.data=y);else{if(i=i&&ae.call(e.childNodes),p=n.props||re,!a&&i!=null)for(p={},u=0;u<e.attributes.length;u++)p[(_=e.attributes[u]).name]=_.value;for(u in p)if(_=p[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;le(e,u,null,_,o)}}for(u in y)_=y[u],u=="children"?b=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?h=_:u=="checked"?g=_:a&&typeof _!="function"||p[u]===_||le(e,u,_,p[u],o);if(f)a||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),an(t.type=="template"?e.content:e,Te(b)?b:[b],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&G(n,0),a,c),i!=null)for(u=i.length;u--;)Ze(i[u]);a||(u="value",w=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[u]||w=="progress"&&!h||w=="option"&&h!=p[u])&&le(e,u,h,p[u],o),u="checked",g!=null&&g!=e[u]&&le(e,u,g,p[u],o))}return e}function Ye(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function fn(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ye(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&fn(r[o],t,n||typeof e.type!="function");n||Ze(e.__e),e.__c=e.__=e.__e=void 0}function to(e,t,n){return this.constructor(e,n)}function ke(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Qe(t,e=(!r&&n||t).__k=V(Z,null,[e]),o||re,re,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ae.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),cn(i,e,s)}function dn(e,t){ke(e,t,dn)}function pn(e,t,n){var r,o,i,s,a=z({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?ae.call(arguments,2):n),te(e.type,a,r||e.key,o||e.ref,null)}ae=on.slice,T={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},en=0,de.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=z({},this.state),typeof e=="function"&&(e=e(z({},n),this.props)),e&&z(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),_t(this))},de.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_t(this))},de.prototype.render=Z,$=[],tn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nn=function(e,t){return e.__v.__b-t.__v.__b},_e.__r=0,rn=/(PointerCapture)$|Capture$/i,Xe=0,Me=gt(!1),$e=gt(!0);var no=0;function m(e,t,n,r,o,i){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?s=t[a]:c[a]=t[a];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--no,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return T.vnode&&T.vnode(u),u}var oe,C,Ne,yt,be=0,hn=[],O=T,wt=O.__b,xt=O.__r,Et=O.diffed,St=O.__c,vt=O.unmount,Rt=O.__;function et(e,t){O.__h&&O.__h(C,e,be||t),be=0;var n=C.__H||(C.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function N(e){return be=1,ro(_n,e)}function ro(e,t,n){var r=et(oe++,2);if(r.t=e,!r.__c&&(r.__=[_n(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=C,!C.__f)){var o=function(a,c,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(b){return!!b.__c});if(f.every(function(b){return!b.__N}))return!i||i.call(this,a,c,u);var l=r.__c.props!==a;return f.forEach(function(b){if(b.__N){var _=b.__[0];b.__=b.__N,b.__N=void 0,_!==b.__[0]&&(l=!0)}}),i&&i.call(this,a,c,u)||l};C.__f=!0;var i=C.shouldComponentUpdate,s=C.componentWillUpdate;C.componentWillUpdate=function(a,c,u){if(this.__e){var f=i;i=void 0,o(a,c,u),i=f}s&&s.call(this,a,c,u)},C.shouldComponentUpdate=o}return r.__N||r.__}function Ce(e,t){var n=et(oe++,3);!O.__s&&mn(n.__H,t)&&(n.__=e,n.u=t,C.__H.__h.push(n))}function ge(e){return be=5,oo(function(){return{current:e}},[])}function oo(e,t){var n=et(oe++,7);return mn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function io(){for(var e;e=hn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(qe),e.__H.__h=[]}catch(t){e.__H.__h=[],O.__e(t,e.__v)}}O.__b=function(e){C=null,wt&&wt(e)},O.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Rt&&Rt(e,t)},O.__r=function(e){xt&&xt(e),oe=0;var t=(C=e.__c).__H;t&&(Ne===C?(t.__h=[],C.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(pe),t.__h.forEach(qe),t.__h=[],oe=0)),Ne=C},O.diffed=function(e){Et&&Et(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(hn.push(t)!==1&&yt===O.requestAnimationFrame||((yt=O.requestAnimationFrame)||so)(io)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ne=C=null},O.__c=function(e,t){t.some(function(n){try{n.__h.forEach(pe),n.__h=n.__h.filter(function(r){return!r.__||qe(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],O.__e(r,n.__v)}}),St&&St(e,t)},O.unmount=function(e){vt&&vt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{pe(r)}catch(o){t=o}}),n.__H=void 0,t&&O.__e(t,n.__v))};var Tt=typeof requestAnimationFrame=="function";function so(e){var t,n=function(){clearTimeout(r),Tt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Tt&&(t=requestAnimationFrame(n))}function pe(e){var t=C,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),C=t}function qe(e){var t=C;e.__c=e.__(),C=t}function mn(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function _n(e,t){return typeof t=="function"?t(e):t}class ao{parseArg(t){return typeof t=="string"?{content:t}:t}show(t,n){const{content:r,duration:o,closable:i}=this.parseArg(n),s=document.createElement("div");if(s.style.cssText=`
|
|
22
7
|
position: fixed;
|
|
23
8
|
top: 20px;
|
|
24
9
|
left: 50%;
|
|
@@ -36,25 +21,40 @@
|
|
|
36
21
|
gap: 8px;
|
|
37
22
|
font-size: 14px;
|
|
38
23
|
color: #222;
|
|
39
|
-
`,t==="error"){const
|
|
24
|
+
`,t==="error"){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("width","16"),c.setAttribute("height","16"),c.setAttribute("viewBox","0 0 16 16"),c.innerHTML=`
|
|
40
25
|
<circle cx="8" cy="8" r="8" fill="#ff4d4f"/>
|
|
41
26
|
<path d="M10.5 5.5l-5 5m0-5l5 5" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
42
|
-
`,s.appendChild(
|
|
27
|
+
`,s.appendChild(c)}if(t==="success"){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("width","16"),c.setAttribute("height","16"),c.setAttribute("viewBox","0 0 16 16"),c.innerHTML=`
|
|
43
28
|
<circle cx="8" cy="8" r="8" fill="#52c41a"/>
|
|
44
29
|
<path d="M5 8.5l2.2 2.2 3.8-3.4" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
45
|
-
`,s.appendChild(
|
|
30
|
+
`,s.appendChild(c)}if(t==="warning"){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("width","16"),c.setAttribute("height","16"),c.setAttribute("viewBox","0 0 16 16"),c.innerHTML=`
|
|
46
31
|
<circle cx="8" cy="8" r="8" fill="#faad14"/>
|
|
47
32
|
<path d="M8 4.5v5" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
48
33
|
<circle cx="8" cy="12.5" r="1" fill="white"/>
|
|
49
|
-
`,s.appendChild(
|
|
34
|
+
`,s.appendChild(c)}if(t==="info"){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("width","16"),c.setAttribute("height","16"),c.setAttribute("viewBox","0 0 16 16"),c.innerHTML=`
|
|
50
35
|
<circle cx="8" cy="8" r="8" fill="#1677ff"/>
|
|
51
36
|
<rect x="7.25" y="7" width="1.5" height="6" rx="0.75" fill="white"/>
|
|
52
37
|
<rect x="7.25" y="5" width="1.5" height="1.5" rx="0.75" fill="white"/>
|
|
53
|
-
`,s.appendChild(
|
|
38
|
+
`,s.appendChild(c)}const a=document.createElement("div");if(a.textContent=r,a.style.flex="1",s.appendChild(a),i){const c=document.createElement("button");c.textContent="✕",c.style.cssText=`
|
|
54
39
|
background: none;
|
|
55
40
|
border: none;
|
|
56
41
|
cursor: pointer;
|
|
57
42
|
padding: 4px;
|
|
58
43
|
color: #999;
|
|
59
44
|
font-size: 12px;
|
|
60
|
-
`,l.onclick=()=>{document.body.removeChild(s)},s.appendChild(l)}document.body.appendChild(s),o!==0&&setTimeout(()=>{document.body.contains(s)&&document.body.removeChild(s)},o||3e3)}success(t){this.show("success",t)}error(t){this.show("error",t)}warning(t){this.show("warning",t)}info(t){this.show("info",t)}}const Ve=new bo;function yo(e={}){const{baseURL:t="/api",timeout:n=1e4,onError:r}=e,o=A.create({baseURL:t,timeout:n});return o.interceptors.request.use(async i=>{await vn();const s=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}"),{token:a,locale:l}=s;return i.headers={...i.headers,Authorization:a,"x-locale":l===we.ZH?"zh-CN":"en-US"},i}),o.interceptors.response.use(i=>{if(i.data&&i.data.code===0)return i.data;const s=i.data?.msg||i.data?.message||"未知错误";return Ve.error(s),r&&r(s,i),Promise.reject(i.data||{message:"未知错误"})},i=>{const s=i.response?.data?.msg||i.response?.data?.message||i.message||"网络请求失败";return Ve.error(s),r&&r(s,i),Promise.reject(i)}),o}const ae=yo();function wo(){const e=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}");return ae.get("/balance",{params:{merchant_id:e.merchantId,biz_type:e.bizType,fund_balance_id:e.fundBalanceId}}).then(t=>{const n=t.data;return{totalAmount:n.total_amount||0,availableAmount:n.available_amount||0,frozenAmount:n.frozen_amount||0}})}const xo=async(e,t)=>ae.post("/oss/upload",e,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:n=>{if(n.total){const r=Math.round(n.loaded*100/n.total);t&&t(r)}}}).then(n=>n.data?.url||""),Eo=async e=>{const t=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}"),n={merchant_id:Number(t.merchantId),biz_type:t.bizType,source_operator:String(t.userId),transfer_no:e.transferNo,transfer_channel:e.transferChannel,voucher_urls:e.voucherUrls};return ae.post("/offline/recharge/create",n,{})},vo=async e=>{const t=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}");console.log(t,"fundUnitParams");const n={merchant_id:Number(t.merchantId),biz_type:t.bizType,source_operator:String(t.userId),amount:e.amount,currency:e.currency,recharge_channel:e.rechargeChannel,return_url:window.location.href};return ae.post("/online/recharge/create",n,{}).then(r=>r.data.redirect_url)},So=async e=>ae.get("/calc-payment-amount",{params:e}).then(t=>t.data.payment_amount),Ro=({formState:e,setFormState:t,onClose:n,loading:r})=>{const o=JSON.parse(sessionStorage.getItem("all_dicts")||"{}"),i=o?.currency||[],s=o?.channel?.filter(p=>p.payment_support)||[],l=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,[u,f]=N(""),[c,g]=N(!1);ve(()=>{e.currency&&e.amount&&e.rechargeChannel?So({channel:e.rechargeChannel,amount:e.amount,currency:e.currency}).then(p=>{f(p),g(!0)}).catch(p=>{console.error("计算支付金额失败:",p),g(!1)}):g(!1)},[e.currency,e.amount,e.rechargeChannel]);const _=l?{label:{marginBottom:8,fontSize:14,color:"#222",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #E5E6EB",background:"#fff",color:"#222",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}}:{label:{marginBottom:8,fontSize:14,color:"#fff",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #23262F",background:"#23262F",color:"#fff",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}},h=l?{background:"#fff",color:"#222",border:"1px solid #E5E6EB",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"}:{background:"#23262F",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"},b=l?{background:"#1890ff",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600}:{background:"#00E8C6",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600};return m(K,{children:[m("div",{style:{marginBottom:18},children:[m("div",{style:_.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("充值币种")]}),m(He,{value:e.currency,onChange:p=>{t(y=>({...y,currency:p}))},options:i?.map(p=>({value:p.value,label:p.label})),placeholder:E("请选择充值币种")})]}),m("div",{style:{marginBottom:18},children:[m("div",{style:_.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("充值金额")]}),m("input",{type:"text",placeholder:E("请输入充值金额"),value:e.amount,onInput:p=>{const y=p.target.value;t(w=>({...w,amount:y,amountError:y.trim()?"":w.amountError}))},style:{..._.input,...e.amountError?_.inputError:{}}}),e.amountError&&m("div",{style:_.error,children:e.amountError})]}),m("div",{style:{marginBottom:24},children:[m("div",{style:_.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("支付平台")]}),m(He,{value:e.rechargeChannel,onChange:p=>{t(y=>({...y,rechargeChannel:p,rechargeChannelError:p?"":y.rechargeChannelError}))},options:s?.map(p=>({value:p.value,label:p.label})),placeholder:E("请选择支付平台")}),e.rechargeChannelError&&m("div",{style:_.error,children:e.rechargeChannelError})]}),c&&u&&m("div",{style:{marginBottom:24,padding:"12px 16px",background:l?"#f6ffed":"#1a1a1a",border:`1px solid ${l?"#b7eb8f":"#333"}`,borderRadius:6,fontSize:14,color:"#52c41a"},children:[s.find(p=>p.value===e.rechargeChannel)?.label||e.rechargeChannel,E("需要收取手续费,实际支付金额约为:"),"$",u]}),e.error&&m("div",{style:{color:"#ff4d4f",marginBottom:12},children:e.error}),m("div",{style:{display:"flex",justifyContent:"flex-end",gap:12},children:[m("button",{type:"button",onClick:n,style:h,children:E("取消")}),m("button",{type:"submit",disabled:r,style:b,children:E(r?"提交中...":"去支付")})]})]})},To={white:{container:{border:"1px dashed #E5E6EB",borderRadius:8,background:"#FCFCFD",padding:24,textAlign:"center",cursor:"pointer",minHeight:120,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#999",fontSize:15},fileItem:{display:"flex",alignItems:"center",background:"#F7F8FA",borderRadius:8,padding:"12px 16px",marginBottom:8,fontSize:15,color:"#222",justifyContent:"space-between"},removeBtn:{background:"#FF4D4F",color:"#fff",border:"none",borderRadius:6,padding:"4px 14px",fontSize:15,marginLeft:16,cursor:"pointer"}},dark:{container:{border:"1.5px dashed #444C5C",borderRadius:8,background:"#181A20",padding:24,textAlign:"center",cursor:"pointer",minHeight:120,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#999",fontSize:15},fileItem:{display:"flex",alignItems:"center",background:"#23262F",borderRadius:8,padding:"12px 16px",marginBottom:8,fontSize:15,color:"#fff",justifyContent:"space-between"},removeBtn:{background:"#FF4D4F",color:"#fff",border:"none",borderRadius:6,padding:"4px 14px",fontSize:15,marginLeft:16,cursor:"pointer"}}},ko=({value:e=[],onChange:t,maxCount:n=10,accept:r=".jpg,.jpeg,.png,.pdf",multiple:o=!0,disabled:i=!1})=>{const s=ge(null),[a,l]=N(!1),[u,f]=N(0),_=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?"white":"dark",h=To[_],b=async y=>{const w=Array.from(y.target.files).slice(0,n);if(!w.length)return;l(!0);const v=[];for(let x=0;x<w.length;x++){f(0);const R=new FormData;R.append("file",w[x]);try{const k=await xo(R,U=>f(U));k&&v.push(k)}catch{}}l(!1),f(0),t?.([...e,...v]),s.current&&(s.current.value="")},p=y=>{const w=e.filter((v,x)=>x!==y);t?.(w)};return m("div",{children:[m("div",{style:{...h.container,cursor:i?"not-allowed":h.container.cursor,opacity:i?.6:1},onClick:()=>!i&&s.current?.click(),children:[m("div",{style:{fontSize:48,marginBottom:12},children:"📁"}),m("div",{style:{color:"#222",fontSize:15,marginBottom:4},children:E("点击或拖拽文件到此处上传")}),m("div",{style:{color:"#999",fontSize:13},children:[E("支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传")," ",n," ",E("个文件")]}),m("input",{ref:s,type:"file",multiple:o,accept:r,style:{display:"none"},onChange:b,disabled:i}),a&&m("div",{style:{marginTop:12,color:"#1677ff"},children:[E("正在上传...")," ",u,"%"]})]}),e&&e.length>0&&m("div",{style:{marginTop:12},children:e.map((y,w)=>m("div",{style:h.fileItem,children:[m("div",{style:{display:"flex",alignItems:"center",flex:1},children:[m("span",{style:{fontWeight:500,wordBreak:"break-all"},children:y.split("/").pop()}),m("span",{style:{color:"#8C8F93",fontSize:13,marginLeft:8},children:["[",E("已上传"),"]"]})]}),m("button",{type:"button",onClick:v=>{v.stopPropagation(),p(w)},style:h.removeBtn,disabled:i,children:E("移除")})]},y))})]})},Co=({formState:e,setFormState:t,onClose:n,loading:r})=>{const o=JSON.parse(sessionStorage.getItem("all_dicts")||"{}");console.log(o,"allDicts");const i=o?.channel||[],l=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?{label:{marginBottom:8,fontSize:14,color:"#222",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #E5E6EB",background:"#fff",color:"#222",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},buttonCancel:{background:"#fff",color:"#222",border:"1px solid #E5E6EB",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"},buttonSubmit:{background:"#1890ff",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}}:{label:{marginBottom:8,fontSize:14,color:"#fff",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #23262F",background:"#23262F",color:"#fff",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},buttonCancel:{background:"#23262F",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"},buttonSubmit:{background:"#00E8C6",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}};return m("form",{onSubmit:async f=>{f.preventDefault();let c=!0;t(g=>({...g,platformError:"",transactionIdError:"",filesError:""})),e.platform||(t(g=>({...g,platformError:E("请选择支付平台")})),c=!1),e.transactionId.trim()||(t(g=>({...g,transactionIdError:E("请输入转账交易ID")})),c=!1),(!e.files||e.files.length===0)&&(t(g=>({...g,filesError:E("请上传转账凭证")})),c=!1),c&&(await Eo({transferChannel:e.platform,transferNo:e.transactionId,voucherUrls:e.files}),n(),Ve.success(E("离线充值创建成功")))},children:[m("div",{style:{marginBottom:18},children:[m("div",{style:l.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("第三方支付平台")]}),m(He,{value:e.platform,onChange:f=>{t(c=>({...c,platform:f,platformError:f?"":c.platformError}))},options:[...i?.map(f=>({value:f.value,label:f.label}))],placeholder:E("请选择支付平台")}),e.platformError&&m("div",{style:l.error,children:e.platformError})]}),m("div",{style:{marginBottom:18},children:[m("div",{style:l.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("交易ID")]}),m("input",{type:"text",placeholder:E("请输入转账交易ID"),value:e.transactionId,onInput:f=>{const c=f.target.value;t(g=>({...g,transactionId:c,transactionIdError:c?"":g.transactionIdError}))},style:{...l.input,...e.transactionIdError?l.inputError:{}}}),e.transactionIdError&&m("div",{style:l.error,children:e.transactionIdError})]}),m("div",{style:{marginBottom:24},children:[m("div",{style:l.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("上传文件")]}),m(ko,{value:e.files,onChange:f=>t(c=>({...c,files:f,filesError:""})),maxCount:10,accept:".jpg,.jpeg,.png,.pdf",multiple:!0}),e.filesError&&m("div",{style:l.error,children:e.filesError})]}),m("div",{style:{display:"flex",justifyContent:"flex-end",gap:12},children:[m("button",{type:"button",onClick:n,style:l.buttonCancel,children:E("取消")}),m("button",{type:"submit",disabled:r,style:l.buttonSubmit,children:E("去支付")})]})]})};function Ao({visible:e,onClose:t,onSubmit:n}){const[r,o]=N({amount:"",rechargeChannel:"",currency:"USD",loading:!1,error:"",amountError:"",rechargeChannelError:"",currencyError:""}),[i,s]=N("online"),[a,l]=N({platform:"",transactionId:"",files:[],platformError:"",transactionIdError:"",filesError:"",loading:!1});if(ve(()=>{e||(s("online"),o({amount:"",rechargeChannel:"",currency:"USD",loading:!1,error:"",amountError:"",rechargeChannelError:"",currencyError:""}),l({platform:"",transactionId:"",files:[],platformError:"",transactionIdError:"",filesError:"",loading:!1}))},[e]),!e)return null;const u=async h=>{h.preventDefault();let b=!0;if(o(p=>({...p,amountError:"",rechargeChannelError:""})),r.amount.trim()||(o(p=>({...p,amountError:E("请输入充值金额")})),b=!1),r.rechargeChannel||(o(p=>({...p,rechargeChannelError:E("请选择支付平台")})),b=!1),!!b){o(p=>({...p,loading:!0,error:""}));try{await n({amount:r.amount,rechargeChannel:r.rechargeChannel,currency:r.currency}),t()}catch{o(p=>({...p,error:E("提交失败,请重试")}))}finally{o(p=>({...p,loading:!1}))}}},f=h=>{h.target===h.currentTarget&&t()},_=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?{modalBg:"#fff",modalColor:"#222",modalBoxShadow:"0 4px 24px rgba(0,0,0,0.08)",mask:"rgba(0,0,0,0.3)",title:{fontWeight:600,fontSize:20,marginBottom:24,textAlign:"left",color:"#222"},closeBtn:{position:"absolute",right:16,top:16,background:"none",border:"none",color:"#222",fontSize:22,cursor:"pointer",lineHeight:1},tabBtn:(h,b)=>({flex:1,background:h?"#fff":"#F7F8FA",color:h?"#1890ff":"#222",border:"none",borderRadius:b?"8px 0 0 8px":"0 8px 8px 0",fontWeight:h?600:400,fontSize:16,height:48,boxShadow:h?"0 2px 8px 0 rgba(20,20,20,0.04)":"none",outline:"none",cursor:"pointer",borderRight:b?"1px solid #F0F1F3":void 0,borderLeft:b?void 0:"1px solid #F0F1F3",transition:"all 0.2s"})}:{modalBg:"#181A20",modalColor:"#fff",modalBoxShadow:"0 4px 24px rgba(0,0,0,0.5)",mask:"rgba(0,0,0,0.7)",title:{fontWeight:600,fontSize:20,marginBottom:24,textAlign:"left",color:"#fff"},closeBtn:{position:"absolute",right:16,top:16,background:"none",border:"none",color:"#fff",fontSize:22,cursor:"pointer",lineHeight:1},tabBtn:(h,b)=>({flex:1,background:h?"#23262F":"#181A20",color:h?"#00E8C6":"#fff",border:"none",borderRadius:b?"8px 0 0 8px":"0 8px 8px 0",fontWeight:h?600:400,fontSize:16,height:48,boxShadow:h?"0 2px 8px 0 rgba(20,20,20,0.10)":"none",outline:"none",cursor:"pointer",borderRight:b?"1px solid #23262F":void 0,borderLeft:b?void 0:"1px solid #23262F",transition:"all 0.2s"})};return m("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:_.mask,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},onClick:f,children:m("form",{onSubmit:u,style:{background:_.modalBg,padding:32,borderRadius:12,minWidth:400,maxWidth:400,color:_.modalColor,boxShadow:_.modalBoxShadow,position:"relative"},onClick:h=>h.stopPropagation(),children:[m("button",{type:"button",onClick:t,style:_.closeBtn,"aria-label":E("关闭"),children:"×"}),m("div",{style:_.title,children:E("充值 / 转账")}),m("div",{style:{display:"flex",marginBottom:28},children:[m("button",{type:"button",onClick:()=>s("online"),style:_.tabBtn(i==="online",!0),children:E("在线充值")}),m("button",{type:"button",onClick:()=>s("offline"),style:_.tabBtn(i==="offline",!1),children:E("线下转账")})]}),i==="online"?m(Ro,{formState:r,setFormState:o,onClose:t,loading:r.loading}):m(Co,{formState:a,setFormState:l,onClose:t,loading:a.loading})]})})}function nt(){return(nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Oo=["context","children"];function Fo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,Oo);return Mt(t,n)}function Po(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=V(Fo,nt({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[bn(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=V(Ct,{name:f},u):o[s]=u}var c=r?V(Ct,null,o):o;return V(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?jt:Ee)(this._vdom,this._root)}function bn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Bo(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[bn(e)]=n,this._vdom=Mt(this._vdom,r),Ee(this._vdom,this._root)}}function No(){Ee(this._vdom=null,this._root)}function Ct(e,t){var n=this;return V("slot",nt({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function yn(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:r.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Po,o.prototype.attributeChangedCallback=Bo,o.prototype.disconnectedCallback=No,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Uo(){const[e,t]=N(!1),n=async r=>{const o=await vo({amount:r.amount,currency:r.currency,rechargeChannel:r.rechargeChannel});window.open(o,"_blank")};return m("div",{children:[m(Un,{onClick:()=>t(!0),children:E("充值/转账")}),m(Ao,{visible:e,onClose:()=>t(!1),onSubmit:n})]})}yn(Uo,"best-recharge",["theme"],{shadow:!1});const Io=({popover:e,children:t,popoverWidth:n=300,popoverMinWidth:r=200,offsetY:o=16,offsetX:i=16,popoverPosition:s="top"})=>{const[a,l]=N(!1),[u,f]=N(s),c=ge(null),g=ge(null),_=()=>{if(g.current&&(clearTimeout(g.current),g.current=null),s==="top"||s==="bottom")if(c.current){const R=c.current.getBoundingClientRect();s==="top"&&R.top<100?f("bottom"):s==="bottom"&&window.innerHeight-R.bottom<100?f("top"):f(s)}else f(s);else f(s);l(!0)},h=()=>{g.current=window.setTimeout(()=>{l(!1)},120)},b={white:{popover:{background:"#fff",color:"#222",boxShadow:"0 4px 16px rgba(0,0,0,0.12)",border:"none"},arrow:{top:"#fff",bottom:"#fff",left:"#fff",right:"#fff"}},dark:{popover:{background:"#23262F",color:"#fff",boxShadow:"0 4px 16px rgba(0,0,0,0.32)",border:"1px solid #444C5C"},arrow:{top:"#23262F",bottom:"#23262F",left:"#23262F",right:"#23262F"}}},y=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,w=b[y?"white":"dark"];let v={position:"absolute",zIndex:999,borderRadius:6,fontSize:15,minWidth:r,width:n,padding:"8px 14px",pointerEvents:"auto",textAlign:"center",animation:"fadeInUp 0.3s",...w.popover},x={position:"absolute",zIndex:11,width:0,height:0};return u==="top"?(v={...v,left:"50%",top:-48,transform:"translateX(-50%)"},x={...x,left:"50%",bottom:-8,transform:"translateX(-50%)",borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:`8px solid ${w.arrow.top}`}):u==="bottom"?(v={...v,left:"50%",top:"100%",marginTop:o,transform:"translateX(-50%)"},x={...x,left:"50%",top:-8,transform:"translateX(-50%)",borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderBottom:`8px solid ${w.arrow.bottom}`}):u==="leftTop"?(v={...v,right:"100%",top:0,marginRight:i,transform:"none"},x={...x,right:-8,top:12,borderTop:"8px solid transparent",borderBottom:"8px solid transparent",borderLeft:`8px solid ${w.arrow.left}`}):u==="rightTop"&&(v={...v,left:"100%",top:0,marginLeft:i,transform:"translateY(0)"},x={...x,left:-8,top:12,borderTop:"8px solid transparent",borderBottom:"8px solid transparent",borderRight:`8px solid ${w.arrow.right}`}),m("div",{ref:c,style:{position:"relative",display:"inline-block"},onMouseEnter:_,onMouseLeave:h,children:[t,a&&m("div",{style:v,onMouseEnter:_,onMouseLeave:h,children:[e,m("div",{style:x})]})]})};function At(e){return e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}const Do={white:{popoverTitle:{fontSize:16,fontWeight:600,color:"#222",marginBottom:16,textAlign:"center"},detailRow:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #e5e7eb",fontSize:15},detailLabel:{display:"flex",alignItems:"center",color:"#6b7280",fontWeight:500},detailDot:e=>({display:"inline-block",width:8,height:8,borderRadius:"50%",background:e,marginRight:8}),detailValue:e=>({color:e,fontWeight:600,fontSize:15}),main:{fontSize:24,fontWeight:800,color:"#111827",display:"inline-block"},currency:{fontSize:18,color:"#6b7280",marginLeft:8,fontWeight:600}},dark:{popoverTitle:{fontSize:16,fontWeight:600,color:"#fff",marginBottom:16,textAlign:"center"},detailRow:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #23262F",fontSize:15},detailLabel:{display:"flex",alignItems:"center",color:"#B5B8BE",fontWeight:500},detailDot:e=>({display:"inline-block",width:8,height:8,borderRadius:"50%",background:e,marginRight:8}),detailValue:e=>({color:e,fontWeight:600,fontSize:15}),main:{fontSize:24,fontWeight:800,color:"#fff",display:"inline-block"},currency:{fontSize:18,color:"#B5B8BE",marginLeft:8,fontWeight:600}}};function Lo(e){const[t,n]=N({available:0,currency:"USD",symbol:"$",details:[{label:E("真实金额"),value:0,color:"#15b36b",dot:"#15b36b"},{label:E("冻结金额"),value:0,color:"#f59e0b",dot:"#f59e0b"},{label:E("总可用"),value:0,color:"#1890ff",dot:"#15b36b"}]});ve(()=>{(async()=>{try{const a=await wo(),l={available:a.availableAmount,currency:"USD",symbol:"$",details:[{label:E("真实金额"),value:a.totalAmount,color:"#15b36b",dot:"#15b36b"},{label:E("冻结金额"),value:a.frozenAmount,color:"#f59e0b",dot:"#f59e0b"},{label:E("总可用"),value:a.availableAmount,color:"#1890ff",dot:"#15b36b"}]};n(l)}catch(a){console.error("获取余额失败:",a)}})()},[]);const o=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,i=Do[o?"white":"dark"];return m(Io,{popover:m(K,{children:[m("div",{style:i.popoverTitle,children:E("余额详情")}),t.details.map(s=>m("div",{style:i.detailRow,children:[m("span",{style:i.detailLabel,children:[m("span",{style:i.detailDot(s.dot)}),s.label]}),m("span",{style:i.detailValue(s.color),children:[t.symbol,At(s.value)]})]},s.label))]}),popoverPosition:e.popoverPosition||"bottom",children:m("div",{style:i.main,children:[t.symbol,At(t.available),m("span",{style:i.currency,children:t.currency})]})})}yn(Lo,"best-statistical-balance");const zo=["best-recharge","best-statistical-balance"];exports.components=zo;exports.initFundUnit=En;exports.npmTest=wn;exports.printCurrentTime=xn;exports.viteProxy=Sn;
|
|
45
|
+
`,c.onclick=()=>{document.body.removeChild(s)},s.appendChild(c)}document.body.appendChild(s),o!==0&&setTimeout(()=>{document.body.contains(s)&&document.body.removeChild(s)},o||3e3)}success(t){this.show("success",t)}error(t){this.show("error",t)}warning(t){this.show("warning",t)}info(t){this.show("info",t)}}const We=new ao;var Ae=(e=>(e.ZH="zh",e.EN="en",e))(Ae||{}),H=(e=>(e.WHITE="white",e.DARK="dark",e))(H||{});function lo(e={}){const{baseURL:t="/api",timeout:n=1e4,onError:r}=e,o=A.create({baseURL:t,timeout:n});return o.interceptors.request.use(i=>{const s=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}"),{token:a,locale:c}=s;return i.headers={...i.headers,Authorization:a,"x-locale":c===Ae.ZH?"zh-CN":"en-US"},i.params&&(i.params=Ie(i.params)),i.data&&(i.data=Ie(i.data)),i}),o.interceptors.response.use(i=>{if(i.data&&i.data.code===0)return i.data;const s=i.data?.msg||i.data?.message||"未知错误";return We.error(s),r&&r(s,i),Promise.reject(i.data||{message:"未知错误"})},i=>{const s=i.response?.data?.msg||i.response?.data?.message||i.message||"网络请求失败";return We.error(s),r&&r(s,i),Promise.reject(i)}),o}const Q=lo();function co(){const e=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}");return Q.get("/balance",{params:{merchant_id:e.merchantId,biz_type:e.bizType,fund_balance_id:e.fundBalanceId}}).then(t=>{const n=t.data;return{totalAmount:n.total_amount||0,availableAmount:n.available_amount||0,frozenAmount:n.frozen_amount||0}})}const uo=async()=>Q.get("/all-dicts",{}).then(e=>(sessionStorage.setItem("all_dicts",JSON.stringify(e.data)),e.data||{})),fo=async(e,t)=>Q.post("/oss/upload",e,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:n=>{if(n.total){const r=Math.round(n.loaded*100/n.total);t&&t(r)}}}).then(n=>n.data?.url||""),po=async e=>{const t=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}"),n={merchant_id:Number(t.merchantId),biz_type:t.bizType,fund_balance_id:t.fundBalanceId,source_operator:String(t.userId),transfer_no:e.transferNo,transfer_channel:e.transferChannel,voucher_urls:e.voucherUrls};return Q.post("/offline/recharge/create",n,{})},ho=async e=>{const t=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}");console.log(t,"fundUnitParams");const n={merchant_id:Number(t.merchantId),biz_type:t.bizType,fund_balance_id:t.fundBalanceId,source_operator:String(t.userId),amount:e.amount,currency:e.currency,recharge_channel:e.rechargeChannel,return_url:window.location.href};return Q.post("/online/recharge/create",n,{}).then(r=>r.data.redirect_url)},mo=async e=>Q.get("/calc-payment-amount",{params:e}).then(t=>t.data.payment_amount);function _o(e){const{merchant_id:t,biz_type:n,fund_balance_id:r,theme:o=H.WHITE,locale:i=Ae.ZH}=e,s="Bearer "+e.token;return sessionStorage.setItem("fund_unit_params",JSON.stringify({merchantId:t,bizType:n,fundBalanceId:r,token:s,theme:o,locale:i})),uo(),{token:s,merchantId:t,bizType:n,fundBalanceId:r,theme:o,locale:i}}const bo={"/api":{target:"https://fund.bestfulfill.tech/api/sdk",changeOrigin:!0,rewrite:e=>e.replace(/^\/api/,""),secure:!1}};function go({onClick:e,color:t,children:n}){const i=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?{background:t||"#1890ff",color:"#fff",border:"none",borderRadius:6,padding:"8px 16px",cursor:"pointer",fontSize:16,fontWeight:600}:{background:t||"#00E8C6",color:"#fff",border:"none",borderRadius:6,padding:"8px 16px",cursor:"pointer",fontSize:16,fontWeight:600};return m("button",{style:i,onClick:e,type:"button",children:n})}const yo={余额详情:"余额详情",真实金额:"真实金额",冻结金额:"冻结金额",总可用:"总可用",暂无数据:"暂无数据","金额需在1到999999.99之间":"金额需在1到999999.99之间","充值 / 转账":"充值 / 转账",在线充值:"在线充值",线下转账:"线下转账",充值币种:"充值币种",充值金额:"充值金额",支付平台:"支付平台",请选择充值币种:"请选择充值币种",请输入充值金额:"请输入充值金额",请选择支付平台:"请选择支付平台","需要收取手续费,实际支付金额约为:":"需要收取手续费,实际支付金额约为:","提交失败,请重试":"提交失败,请重试","提交中...":"提交中...",去支付:"去支付",取消:"取消",关闭:"关闭",第三方支付平台:"第三方支付平台",交易ID:"交易ID",请输入转账交易ID:"请输入转账交易ID",上传文件:"上传文件",请上传转账凭证:"请上传转账凭证",离线充值创建成功:"离线充值创建成功","加载中...":"加载中...",错误:"错误",成功:"成功",必填:"必填","充值/转账":"充值/转账",切换为暗黑主题:"切换为暗黑主题",切换为白色主题:"切换为白色主题",点击或拖拽文件到此处上传:"点击或拖拽文件到此处上传","支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传":"支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传",个文件:"个文件","正在上传...":"正在上传...",已上传:"已上传",移除:"移除"};function wo(e){return yo[e]||e}const xo={余额详情:"Balance Details",真实金额:"Real Amount",冻结金额:"Frozen Amount",总可用:"Total Available",暂无数据:"No Data","金额需在1到999999.99之间":"Amount must be between 1 and 999999.99","充值 / 转账":"Recharge / Transfer",在线充值:"Online Recharge",线下转账:"Offline Transfer",充值币种:"Recharge Currency",充值金额:"Recharge Amount",支付平台:"Payment Platform",请选择充值币种:"Please select recharge currency",请输入充值金额:"Please enter recharge amount",请选择支付平台:"Please select payment platform","需要收取手续费,实际支付金额约为:":"requires a handling fee, the actual payment amount is approximately: ","提交失败,请重试":"Submit failed, please try again","提交中...":"Submitting...",去支付:"Go to Pay",取消:"Cancel",关闭:"Close",第三方支付平台:"Third-party Payment Platform",交易ID:"Transaction ID",请输入转账交易ID:"Please enter transfer transaction ID",上传文件:"Upload Files",请上传转账凭证:"Please upload transfer voucher",离线充值创建成功:"Offline recharge created successfully","加载中...":"Loading...",错误:"Error",成功:"Success",必填:"Required","充值/转账":"Recharge/Transfer",切换为暗黑主题:"Switch to Dark Theme",切换为白色主题:"Switch to Light Theme",点击或拖拽文件到此处上传:"Click or drag files here to upload","支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传":"Supports JPG, PNG, PDF formats, single file not exceeding 20MB, maximum",个文件:"files can be uploaded","正在上传...":"Uploading...",已上传:"Uploaded",移除:"Remove"};function Eo(e){return xo[e]||e}function So(){return JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").locale||Ae.ZH}function E(e){return So()==="zh"?wo(e):Eo(e)}const Je=({value:e,onChange:t,options:n,placeholder:r,style:o,error:i,disabled:s,dropdownStyle:a,className:c,dropdownClassName:u,children:f})=>{const[l,b]=N(!1),_=ge(null),[h,g]=N(null),y=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,w=y?{trigger:{background:s?"#f5f5f5":"#fff",color:s?"#bfbfbf":e?"#222":"#bfbfbf",border:i?"1px solid #ff4d4f":s?"1px solid #f0f0f0":"1px solid #d9d9d9"},dropdown:{background:"#fff",border:"1px solid #d9d9d9",color:"#222"},option:(x,R,k)=>({color:R?"#bfbfbf":x?"#1890ff":"#222",background:x?"#e6f7ff":k&&!R||R?"#f5f5f5":"#fff"}),placeholder:{color:"#bfbfbf"}}:{trigger:{background:"#23262F",color:s?"#666":e?"#fff":"#666",border:i?"1px solid #ff4d4f":"1px solid #23262F"},dropdown:{background:"#23262F",border:"1px solid #23262F",color:"#fff"},option:(x,R,k)=>({color:R?"#666":x?"#00E8C6":"#fff",background:x?"#23262F":k&&!R?"#333843":"#23262F"}),placeholder:{color:"#666"}};Ce(()=>{if(!l)return;const x=R=>{_.current&&!_.current.contains(R.target)&&b(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[l]);const S=n.find(x=>x.value===e);return m("div",{ref:_,className:c,style:{position:"relative",...o},children:[m("style",{children:`
|
|
46
|
+
.custom-select-dropdown {
|
|
47
|
+
scrollbar-width: thin;
|
|
48
|
+
scrollbar-color: #bfbfbf #f5f5f5;
|
|
49
|
+
}
|
|
50
|
+
.custom-select-dropdown::-webkit-scrollbar {
|
|
51
|
+
width: 8px;
|
|
52
|
+
}
|
|
53
|
+
.custom-select-dropdown::-webkit-scrollbar-thumb {
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
background: ${y?"#e5e5e5":"#444C5C"};
|
|
56
|
+
}
|
|
57
|
+
.custom-select-dropdown::-webkit-scrollbar-track {
|
|
58
|
+
background: ${y?"#f5f5f5":"#23262F"};
|
|
59
|
+
}
|
|
60
|
+
`}),m("div",{onClick:()=>!s&&b(x=>!x),style:{minHeight:40,borderRadius:6,display:"flex",alignItems:"center",padding:"0 12px",fontSize:15,cursor:s?"not-allowed":"pointer",boxSizing:"border-box",transition:"border 0.2s",opacity:s?.6:1,width:"100%",...w.trigger,...o},tabIndex:0,children:[m("span",{style:{flex:1},children:S?S.label:m("span",{style:w.placeholder,children:r||"请选择"})}),m("span",{style:{marginLeft:8,display:"flex",alignItems:"center"},children:m("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m("path",{d:"M6 8L10 12L14 8",stroke:"#bfbfbf","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),l&&!s&&m("div",{className:`custom-select-dropdown${u?" "+u:""}`,style:{position:"absolute",left:0,right:0,top:44,zIndex:10,borderRadius:6,boxShadow:y?"0 2px 8px rgba(0,0,0,0.08)":"0 2px 8px rgba(0,0,0,0.32)",maxHeight:220,overflowY:"auto",...w.dropdown,...a},children:[n.length===0&&m("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:120,width:"100%",userSelect:"none"},children:[m("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg",children:[m("title",{children:E("暂无数据")}),m("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd",children:[m("ellipse",{fill:"#f5f5f5",cx:"32",cy:"33",rx:"32",ry:"7"}),m("g",{fillRule:"nonzero",stroke:"#d9d9d9",children:[m("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#fafafa"})]})]})]}),m("div",{style:{marginTop:8,color:"#bfbfbf",fontSize:15},children:E("暂无数据")})]}),n.map((x,R)=>m("div",{onClick:()=>{x.disabled||(b(!1),t?.(x.value))},onMouseEnter:()=>g(R),onMouseLeave:()=>g(null),style:{padding:"10px 16px",cursor:x.disabled?"not-allowed":"pointer",fontWeight:e===x.value?600:400,opacity:x.disabled?.6:1,...w.option(e===x.value,!!x.disabled,h===R)},children:x.label},x.value))]}),f]})},vo=({formState:e,setFormState:t,onClose:n,loading:r})=>{const o=JSON.parse(sessionStorage.getItem("all_dicts")||"{}"),i=o?.currency||[],s=o?.channel?.filter(p=>p.payment_support)||[],c=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,[u,f]=N(""),[l,b]=N(!1);Ce(()=>{e.currency&&e.amount&&e.rechargeChannel?mo({channel:e.rechargeChannel,amount:e.amount,currency:e.currency}).then(p=>{f(p),b(!0)}).catch(p=>{console.error("计算支付金额失败:",p),b(!1)}):b(!1)},[e.currency,e.amount,e.rechargeChannel]);const _=c?{label:{marginBottom:8,fontSize:14,color:"#222",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #E5E6EB",background:"#fff",color:"#222",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}}:{label:{marginBottom:8,fontSize:14,color:"#fff",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #23262F",background:"#23262F",color:"#fff",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}},h=c?{background:"#fff",color:"#222",border:"1px solid #E5E6EB",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"}:{background:"#23262F",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"},g=c?{background:"#1890ff",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600}:{background:"#00E8C6",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600};return m(Z,{children:[m("div",{style:{marginBottom:18},children:[m("div",{style:_.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("充值币种")]}),m(Je,{value:e.currency,onChange:p=>{t(y=>({...y,currency:p}))},options:i?.map(p=>({value:p.value,label:p.label})),placeholder:E("请选择充值币种")})]}),m("div",{style:{marginBottom:18},children:[m("div",{style:_.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("充值金额")]}),m("input",{type:"text",placeholder:E("请输入充值金额"),value:e.amount,onInput:p=>{const y=p.target.value;t(w=>({...w,amount:y,amountError:y.trim()?"":w.amountError}))},style:{..._.input,...e.amountError?_.inputError:{}}}),e.amountError&&m("div",{style:_.error,children:e.amountError})]}),m("div",{style:{marginBottom:24},children:[m("div",{style:_.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("支付平台")]}),m(Je,{value:e.rechargeChannel,onChange:p=>{t(y=>({...y,rechargeChannel:p,rechargeChannelError:p?"":y.rechargeChannelError}))},options:s?.map(p=>({value:p.value,label:p.label})),placeholder:E("请选择支付平台")}),e.rechargeChannelError&&m("div",{style:_.error,children:e.rechargeChannelError})]}),l&&u&&m("div",{style:{marginBottom:24,padding:"12px 16px",background:c?"#f6ffed":"#1a1a1a",border:`1px solid ${c?"#b7eb8f":"#333"}`,borderRadius:6,fontSize:14,color:"#52c41a"},children:[s.find(p=>p.value===e.rechargeChannel)?.label||e.rechargeChannel,E("需要收取手续费,实际支付金额约为:"),"$",u]}),e.error&&m("div",{style:{color:"#ff4d4f",marginBottom:12},children:e.error}),m("div",{style:{display:"flex",justifyContent:"flex-end",gap:12},children:[m("button",{type:"button",onClick:n,style:h,children:E("取消")}),m("button",{type:"submit",disabled:r,style:g,children:E(r?"提交中...":"去支付")})]})]})},Ro={white:{container:{border:"1px dashed #E5E6EB",borderRadius:8,background:"#FCFCFD",padding:24,textAlign:"center",cursor:"pointer",minHeight:120,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#999",fontSize:15},fileItem:{display:"flex",alignItems:"center",background:"#F7F8FA",borderRadius:8,padding:"12px 16px",marginBottom:8,fontSize:15,color:"#222",justifyContent:"space-between"},removeBtn:{background:"#FF4D4F",color:"#fff",border:"none",borderRadius:6,padding:"4px 14px",fontSize:15,marginLeft:16,cursor:"pointer"}},dark:{container:{border:"1.5px dashed #444C5C",borderRadius:8,background:"#181A20",padding:24,textAlign:"center",cursor:"pointer",minHeight:120,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#999",fontSize:15},fileItem:{display:"flex",alignItems:"center",background:"#23262F",borderRadius:8,padding:"12px 16px",marginBottom:8,fontSize:15,color:"#fff",justifyContent:"space-between"},removeBtn:{background:"#FF4D4F",color:"#fff",border:"none",borderRadius:6,padding:"4px 14px",fontSize:15,marginLeft:16,cursor:"pointer"}}},To=({value:e=[],onChange:t,maxCount:n=10,accept:r=".jpg,.jpeg,.png,.pdf",multiple:o=!0,disabled:i=!1})=>{const s=ge(null),[a,c]=N(!1),[u,f]=N(0),_=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?"white":"dark",h=Ro[_],g=async y=>{const w=Array.from(y.target.files).slice(0,n);if(!w.length)return;c(!0);const S=[];for(let x=0;x<w.length;x++){f(0);const R=new FormData;R.append("file",w[x]);try{const k=await fo(R,I=>f(I));k&&S.push(k)}catch{}}c(!1),f(0),t?.([...e,...S]),s.current&&(s.current.value="")},p=y=>{const w=e.filter((S,x)=>x!==y);t?.(w)};return m("div",{children:[m("div",{style:{...h.container,cursor:i?"not-allowed":h.container.cursor,opacity:i?.6:1},onClick:()=>!i&&s.current?.click(),children:[m("div",{style:{fontSize:48,marginBottom:12},children:"📁"}),m("div",{style:{color:"#222",fontSize:15,marginBottom:4},children:E("点击或拖拽文件到此处上传")}),m("div",{style:{color:"#999",fontSize:13},children:[E("支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传")," ",n," ",E("个文件")]}),m("input",{ref:s,type:"file",multiple:o,accept:r,style:{display:"none"},onChange:g,disabled:i}),a&&m("div",{style:{marginTop:12,color:"#1677ff"},children:[E("正在上传...")," ",u,"%"]})]}),e&&e.length>0&&m("div",{style:{marginTop:12},children:e.map((y,w)=>m("div",{style:h.fileItem,children:[m("div",{style:{display:"flex",alignItems:"center",flex:1},children:[m("span",{style:{fontWeight:500,wordBreak:"break-all"},children:y.split("/").pop()}),m("span",{style:{color:"#8C8F93",fontSize:13,marginLeft:8},children:["[",E("已上传"),"]"]})]}),m("button",{type:"button",onClick:S=>{S.stopPropagation(),p(w)},style:h.removeBtn,disabled:i,children:E("移除")})]},y))})]})},ko=({formState:e,setFormState:t,onClose:n,loading:r})=>{const o=JSON.parse(sessionStorage.getItem("all_dicts")||"{}");console.log(o,"allDicts");const i=o?.channel||[],c=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?{label:{marginBottom:8,fontSize:14,color:"#222",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #E5E6EB",background:"#fff",color:"#222",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},buttonCancel:{background:"#fff",color:"#222",border:"1px solid #E5E6EB",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"},buttonSubmit:{background:"#1890ff",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}}:{label:{marginBottom:8,fontSize:14,color:"#fff",textAlign:"left",display:"block"},input:{width:"100%",padding:"10px 12px",borderRadius:6,boxSizing:"border-box",border:"1px solid #23262F",background:"#23262F",color:"#fff",fontSize:15,outline:"none",marginBottom:0},inputError:{border:"1px solid #ff4d4f"},buttonCancel:{background:"#23262F",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer"},buttonSubmit:{background:"#00E8C6",color:"#fff",border:"none",borderRadius:6,padding:"8px 24px",fontSize:15,cursor:"pointer",fontWeight:600},error:{color:"#ff4d4f",fontSize:13,marginTop:4,textAlign:"left"}};return m("form",{onSubmit:async f=>{f.preventDefault();let l=!0;t(b=>({...b,platformError:"",transactionIdError:"",filesError:""})),e.platform||(t(b=>({...b,platformError:E("请选择支付平台")})),l=!1),e.transactionId.trim()||(t(b=>({...b,transactionIdError:E("请输入转账交易ID")})),l=!1),(!e.files||e.files.length===0)&&(t(b=>({...b,filesError:E("请上传转账凭证")})),l=!1),l&&(await po({transferChannel:e.platform,transferNo:e.transactionId,voucherUrls:e.files}),n(),We.success(E("离线充值创建成功")))},children:[m("div",{style:{marginBottom:18},children:[m("div",{style:c.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("第三方支付平台")]}),m(Je,{value:e.platform,onChange:f=>{t(l=>({...l,platform:f,platformError:f?"":l.platformError}))},options:[...i?.map(f=>({value:f.value,label:f.label}))],placeholder:E("请选择支付平台")}),e.platformError&&m("div",{style:c.error,children:e.platformError})]}),m("div",{style:{marginBottom:18},children:[m("div",{style:c.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("交易ID")]}),m("input",{type:"text",placeholder:E("请输入转账交易ID"),value:e.transactionId,onInput:f=>{const l=f.target.value;t(b=>({...b,transactionId:l,transactionIdError:l?"":b.transactionIdError}))},style:{...c.input,...e.transactionIdError?c.inputError:{}}}),e.transactionIdError&&m("div",{style:c.error,children:e.transactionIdError})]}),m("div",{style:{marginBottom:24},children:[m("div",{style:c.label,children:[m("span",{style:{color:"#F53F3F"},children:"*"})," ",E("上传文件")]}),m(To,{value:e.files,onChange:f=>t(l=>({...l,files:f,filesError:""})),maxCount:10,accept:".jpg,.jpeg,.png,.pdf",multiple:!0}),e.filesError&&m("div",{style:c.error,children:e.filesError})]}),m("div",{style:{display:"flex",justifyContent:"flex-end",gap:12},children:[m("button",{type:"button",onClick:n,style:c.buttonCancel,children:E("取消")}),m("button",{type:"submit",disabled:r,style:c.buttonSubmit,children:E("去支付")})]})]})};function Co({visible:e,onClose:t,onSubmit:n}){const[r,o]=N({amount:"",rechargeChannel:"",currency:"USD",loading:!1,error:"",amountError:"",rechargeChannelError:"",currencyError:""}),[i,s]=N("online"),[a,c]=N({platform:"",transactionId:"",files:[],platformError:"",transactionIdError:"",filesError:"",loading:!1});if(Ce(()=>{e||(s("online"),o({amount:"",rechargeChannel:"",currency:"USD",loading:!1,error:"",amountError:"",rechargeChannelError:"",currencyError:""}),c({platform:"",transactionId:"",files:[],platformError:"",transactionIdError:"",filesError:"",loading:!1}))},[e]),!e)return null;const u=async h=>{h.preventDefault();let g=!0;if(o(p=>({...p,amountError:"",rechargeChannelError:""})),r.amount.trim()||(o(p=>({...p,amountError:E("请输入充值金额")})),g=!1),r.rechargeChannel||(o(p=>({...p,rechargeChannelError:E("请选择支付平台")})),g=!1),!!g){o(p=>({...p,loading:!0,error:""}));try{await n({amount:r.amount,rechargeChannel:r.rechargeChannel,currency:r.currency}),t()}catch{o(p=>({...p,error:E("提交失败,请重试")}))}finally{o(p=>({...p,loading:!1}))}}},f=h=>{h.target===h.currentTarget&&t()},_=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE?{modalBg:"#fff",modalColor:"#222",modalBoxShadow:"0 4px 24px rgba(0,0,0,0.08)",mask:"rgba(0,0,0,0.3)",title:{fontWeight:600,fontSize:20,marginBottom:24,textAlign:"left",color:"#222"},closeBtn:{position:"absolute",right:16,top:16,background:"none",border:"none",color:"#222",fontSize:22,cursor:"pointer",lineHeight:1},tabBtn:(h,g)=>({flex:1,background:h?"#fff":"#F7F8FA",color:h?"#1890ff":"#222",border:"none",borderRadius:g?"8px 0 0 8px":"0 8px 8px 0",fontWeight:h?600:400,fontSize:16,height:48,boxShadow:h?"0 2px 8px 0 rgba(20,20,20,0.04)":"none",outline:"none",cursor:"pointer",borderRight:g?"1px solid #F0F1F3":void 0,borderLeft:g?void 0:"1px solid #F0F1F3",transition:"all 0.2s"})}:{modalBg:"#181A20",modalColor:"#fff",modalBoxShadow:"0 4px 24px rgba(0,0,0,0.5)",mask:"rgba(0,0,0,0.7)",title:{fontWeight:600,fontSize:20,marginBottom:24,textAlign:"left",color:"#fff"},closeBtn:{position:"absolute",right:16,top:16,background:"none",border:"none",color:"#fff",fontSize:22,cursor:"pointer",lineHeight:1},tabBtn:(h,g)=>({flex:1,background:h?"#23262F":"#181A20",color:h?"#00E8C6":"#fff",border:"none",borderRadius:g?"8px 0 0 8px":"0 8px 8px 0",fontWeight:h?600:400,fontSize:16,height:48,boxShadow:h?"0 2px 8px 0 rgba(20,20,20,0.10)":"none",outline:"none",cursor:"pointer",borderRight:g?"1px solid #23262F":void 0,borderLeft:g?void 0:"1px solid #23262F",transition:"all 0.2s"})};return m("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:_.mask,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},onClick:f,children:m("form",{onSubmit:u,style:{background:_.modalBg,padding:32,borderRadius:12,minWidth:400,maxWidth:400,color:_.modalColor,boxShadow:_.modalBoxShadow,position:"relative"},onClick:h=>h.stopPropagation(),children:[m("button",{type:"button",onClick:t,style:_.closeBtn,"aria-label":E("关闭"),children:"×"}),m("div",{style:_.title,children:E("充值 / 转账")}),m("div",{style:{display:"flex",marginBottom:28},children:[m("button",{type:"button",onClick:()=>s("online"),style:_.tabBtn(i==="online",!0),children:E("在线充值")}),m("button",{type:"button",onClick:()=>s("offline"),style:_.tabBtn(i==="offline",!1),children:E("线下转账")})]}),i==="online"?m(vo,{formState:r,setFormState:o,onClose:t,loading:r.loading}):m(ko,{formState:a,setFormState:c,onClose:t,loading:a.loading})]})})}function tt(){return(tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ao=["context","children"];function Oo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},c=Object.keys(r);for(s=0;s<c.length;s++)o.indexOf(i=c[s])>=0||(a[i]=r[i]);return a}(e,Ao);return pn(t,n)}function Fo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=V(Oo,tt({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,c=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[bn(a[s].name)]=a[s].value);for(s=c.length;s--;){var u=t(c[s],null),f=c[s].slot;f?i[f]=V(kt,{name:f},u):o[s]=u}var l=r?V(kt,null,o):o;return V(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?dn:ke)(this._vdom,this._root)}function bn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Po(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[bn(e)]=n,this._vdom=pn(this._vdom,r),ke(this._vdom,this._root)}}function Bo(){ke(this._vdom=null,this._root)}function kt(e,t){var n=this;return V("slot",tt({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function gn(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:r.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Fo,o.prototype.attributeChangedCallback=Po,o.prototype.disconnectedCallback=Bo,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function No(){const[e,t]=N(!1),n=async r=>{const o=await ho({amount:r.amount,currency:r.currency,rechargeChannel:r.rechargeChannel});window.open(o,"_blank")};return m("div",{children:[m(go,{onClick:()=>t(!0),children:E("充值/转账")}),m(Co,{visible:e,onClose:()=>t(!1),onSubmit:n})]})}gn(No,"best-recharge",["theme"],{shadow:!1});const Io=({popover:e,children:t,popoverWidth:n=300,popoverMinWidth:r=200,offsetY:o=16,offsetX:i=16,popoverPosition:s="top"})=>{const[a,c]=N(!1),[u,f]=N(s),l=ge(null),b=ge(null),_=()=>{if(b.current&&(clearTimeout(b.current),b.current=null),s==="top"||s==="bottom")if(l.current){const R=l.current.getBoundingClientRect();s==="top"&&R.top<100?f("bottom"):s==="bottom"&&window.innerHeight-R.bottom<100?f("top"):f(s)}else f(s);else f(s);c(!0)},h=()=>{b.current=window.setTimeout(()=>{c(!1)},120)},g={white:{popover:{background:"#fff",color:"#222",boxShadow:"0 4px 16px rgba(0,0,0,0.12)",border:"none"},arrow:{top:"#fff",bottom:"#fff",left:"#fff",right:"#fff"}},dark:{popover:{background:"#23262F",color:"#fff",boxShadow:"0 4px 16px rgba(0,0,0,0.32)",border:"1px solid #444C5C"},arrow:{top:"#23262F",bottom:"#23262F",left:"#23262F",right:"#23262F"}}},y=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,w=g[y?"white":"dark"];let S={position:"absolute",zIndex:999,borderRadius:6,fontSize:15,minWidth:r,width:n,padding:"8px 14px",pointerEvents:"auto",textAlign:"center",animation:"fadeInUp 0.3s",...w.popover},x={position:"absolute",zIndex:11,width:0,height:0};return u==="top"?(S={...S,left:"50%",top:-48,transform:"translateX(-50%)"},x={...x,left:"50%",bottom:-8,transform:"translateX(-50%)",borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:`8px solid ${w.arrow.top}`}):u==="bottom"?(S={...S,left:"50%",top:"100%",marginTop:o,transform:"translateX(-50%)"},x={...x,left:"50%",top:-8,transform:"translateX(-50%)",borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderBottom:`8px solid ${w.arrow.bottom}`}):u==="leftTop"?(S={...S,right:"100%",top:0,marginRight:i,transform:"none"},x={...x,right:-8,top:12,borderTop:"8px solid transparent",borderBottom:"8px solid transparent",borderLeft:`8px solid ${w.arrow.left}`}):u==="rightTop"&&(S={...S,left:"100%",top:0,marginLeft:i,transform:"translateY(0)"},x={...x,left:-8,top:12,borderTop:"8px solid transparent",borderBottom:"8px solid transparent",borderRight:`8px solid ${w.arrow.right}`}),m("div",{ref:l,style:{position:"relative",display:"inline-block"},onMouseEnter:_,onMouseLeave:h,children:[t,a&&m("div",{style:S,onMouseEnter:_,onMouseLeave:h,children:[e,m("div",{style:x})]})]})};function Ct(e){return e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}const Uo={white:{popoverTitle:{fontSize:16,fontWeight:600,color:"#222",marginBottom:16,textAlign:"center"},detailRow:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #e5e7eb",fontSize:15},detailLabel:{display:"flex",alignItems:"center",color:"#6b7280",fontWeight:500},detailDot:e=>({display:"inline-block",width:8,height:8,borderRadius:"50%",background:e,marginRight:8}),detailValue:e=>({color:e,fontWeight:600,fontSize:15}),main:{fontSize:24,fontWeight:800,color:"#111827",display:"inline-block"},currency:{fontSize:18,color:"#6b7280",marginLeft:8,fontWeight:600}},dark:{popoverTitle:{fontSize:16,fontWeight:600,color:"#fff",marginBottom:16,textAlign:"center"},detailRow:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #23262F",fontSize:15},detailLabel:{display:"flex",alignItems:"center",color:"#B5B8BE",fontWeight:500},detailDot:e=>({display:"inline-block",width:8,height:8,borderRadius:"50%",background:e,marginRight:8}),detailValue:e=>({color:e,fontWeight:600,fontSize:15}),main:{fontSize:24,fontWeight:800,color:"#fff",display:"inline-block"},currency:{fontSize:18,color:"#B5B8BE",marginLeft:8,fontWeight:600}}};function Do(e){const[t,n]=N({available:0,currency:"USD",symbol:"$",details:[{label:E("真实金额"),value:0,color:"#15b36b",dot:"#15b36b"},{label:E("冻结金额"),value:0,color:"#f59e0b",dot:"#f59e0b"},{label:E("总可用"),value:0,color:"#1890ff",dot:"#15b36b"}]});Ce(()=>{(async()=>{try{const a=await co(),c={available:a.availableAmount,currency:"USD",symbol:"$",details:[{label:E("真实金额"),value:a.totalAmount,color:"#15b36b",dot:"#15b36b"},{label:E("冻结金额"),value:a.frozenAmount,color:"#f59e0b",dot:"#f59e0b"},{label:E("总可用"),value:a.availableAmount,color:"#1890ff",dot:"#15b36b"}]};n(c)}catch(a){console.error("获取余额失败:",a)}})()},[]);const o=JSON.parse(sessionStorage.getItem("fund_unit_params")||"{}").theme===H.WHITE,i=Uo[o?"white":"dark"];return m(Io,{popover:m(Z,{children:[m("div",{style:i.popoverTitle,children:E("余额详情")}),t.details.map(s=>m("div",{style:i.detailRow,children:[m("span",{style:i.detailLabel,children:[m("span",{style:i.detailDot(s.dot)}),s.label]}),m("span",{style:i.detailValue(s.color),children:[t.symbol,Ct(s.value)]})]},s.label))]}),popoverPosition:e.popoverPosition||"bottom",children:m("div",{style:i.main,children:[t.symbol,Ct(t.available),m("span",{style:i.currency,children:t.currency})]})})}gn(Do,"best-statistical-balance");const Lo=["best-recharge","best-statistical-balance"];exports.components=Lo;exports.initFundUnit=_o;exports.npmTest=yn;exports.printCurrentTime=wn;exports.viteProxy=bo;
|