@vtj/utils 0.13.31 → 0.13.32

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/index.cjs CHANGED
@@ -1,16 +1,12 @@
1
- "use strict";var mn=Object.defineProperty;var gn=(e,t,n)=>t in e?mn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>gn(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("@vtj/base");(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),e.call(this,t,n,r)}})();/**!
1
+ "use strict";var Ot=Object.defineProperty;var Tt=(e,t,n)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _=(e,t,n)=>Tt(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("@vtj/base"),ie=require("vue");(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),e.call(this,t,n,r)}})();/**!
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/utils
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.13.31
5
+ * @version 0.13.32
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
- */const wn="0.13.31";/**
8
- * @vue/shared v3.5.22
9
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
10
- * @license MIT
11
- **/function yn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const bn=Object.assign,Rn=Object.prototype.hasOwnProperty,Ue=(e,t)=>Rn.call(e,t),W=Array.isArray,he=e=>St(e)==="[object Map]",En=e=>typeof e=="string",se=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Sn=Object.prototype.toString,St=e=>Sn.call(e),_n=e=>St(e).slice(8,-1),Xe=e=>En(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ee=(e,t)=>!Object.is(e,t);var On={ENV_TYPE:"local",NODE_ENV:"production"};let Tn,_t=0,Ae;function Ye(){_t++}function Ge(){if(--_t>0)return;let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}let we=!0;const Ot=[];function An(){Ot.push(we),we=!1}function xn(){const e=Ot.pop();we=e===void 0?!0:e}class Tt{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){Ye();try{On.NODE_ENV;for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ge()}}}const Fe=new WeakMap,q=Symbol(""),De=Symbol(""),ne=Symbol("");function C(e,t,n){if(we&&Tn){let r=Fe.get(e);r||Fe.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Tt),s.map=r,s.key=n),s.track()}}function B(e,t,n,r,s,o){const i=Fe.get(e);if(!i)return;const a=l=>{l&&l.trigger()};if(Ye(),t==="clear")i.forEach(a);else{const l=W(e),c=l&&Xe(n);if(l&&n==="length"){const f=Number(r);i.forEach((d,m)=>{(m==="length"||m===ne||!se(m)&&m>=f)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(ne)),t){case"add":l?c&&a(i.get("length")):(a(i.get(q)),he(e)&&a(i.get(De)));break;case"delete":l||(a(i.get(q)),he(e)&&a(i.get(De)));break;case"set":he(e)&&a(i.get(q));break}}Ge()}function $(e){const t=E(e);return t===e?t:(C(t,"iterate",ne),I(e)?t:t.map(x))}function Qe(e){return C(e=E(e),"iterate",ne),e}const Cn={__proto__:null,[Symbol.iterator](){return xe(this,Symbol.iterator,x)},concat(...e){return $(this).concat(...e.map(t=>W(t)?$(t):t))},entries(){return xe(this,"entries",e=>(e[1]=x(e[1]),e))},every(e,t){return F(this,"every",e,t,void 0,arguments)},filter(e,t){return F(this,"filter",e,t,n=>n.map(x),arguments)},find(e,t){return F(this,"find",e,t,x,arguments)},findIndex(e,t){return F(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return F(this,"findLast",e,t,x,arguments)},findLastIndex(e,t){return F(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return F(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ce(this,"includes",e)},indexOf(...e){return Ce(this,"indexOf",e)},join(e){return $(this).join(e)},lastIndexOf(...e){return Ce(this,"lastIndexOf",e)},map(e,t){return F(this,"map",e,t,void 0,arguments)},pop(){return G(this,"pop")},push(...e){return G(this,"push",e)},reduce(e,...t){return ot(this,"reduce",e,t)},reduceRight(e,...t){return ot(this,"reduceRight",e,t)},shift(){return G(this,"shift")},some(e,t){return F(this,"some",e,t,void 0,arguments)},splice(...e){return G(this,"splice",e)},toReversed(){return $(this).toReversed()},toSorted(e){return $(this).toSorted(e)},toSpliced(...e){return $(this).toSpliced(...e)},unshift(...e){return G(this,"unshift",e)},values(){return xe(this,"values",x)}};function xe(e,t,n){const r=Qe(e),s=r[t]();return r!==e&&!I(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Pn=Array.prototype;function F(e,t,n,r,s,o){const i=Qe(e),a=i!==e&&!I(e),l=i[t];if(l!==Pn[t]){const d=l.apply(e,o);return a?x(d):d}let c=n;i!==e&&(a?c=function(d,m){return n.call(this,x(d),m,e)}:n.length>2&&(c=function(d,m){return n.call(this,d,m,e)}));const f=l.call(i,c,r);return a&&s?s(f):f}function ot(e,t,n,r){const s=Qe(e);let o=n;return s!==e&&(I(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,x(a),l,e)}),s[t](o,...r)}function Ce(e,t,n){const r=E(e);C(r,"iterate",ne);const s=r[t](...n);return(s===-1||s===!1)&&$n(n[0])?(n[0]=E(n[0]),r[t](...n)):s}function G(e,t,n=[]){An(),Ye();const r=E(e)[t].apply(e,n);return Ge(),xn(),r}const jn=yn("__proto__,__v_isRef,__isVue"),At=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(se));function Ln(e){se(e)||(e=String(e));const t=E(this);return C(t,"has",e),t.hasOwnProperty(e)}class xt{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?qn:jt:o?kn:Pt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=W(t);if(!s){let l;if(i&&(l=Cn[n]))return l;if(n==="hasOwnProperty")return Ln}const a=Reflect.get(t,n,z(t)?t:r);if((se(n)?At.has(n):jn(n))||(s||C(t,"get",n),o))return a;if(z(a)){const l=i&&Xe(n)?a:a.value;return s&&te(l)?Ie(l):l}return te(a)?s?Ie(a):Lt(a):a}}class vn extends xt{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=K(o);if(!I(r)&&!K(r)&&(o=E(o),r=E(r)),!W(t)&&z(o)&&!z(r))return l||(o.value=r),!0}const i=W(t)&&Xe(n)?Number(n)<t.length:Ue(t,n),a=Reflect.set(t,n,r,z(t)?t:s);return t===E(s)&&(i?ee(r,o)&&B(t,"set",n,r):B(t,"add",n,r)),a}deleteProperty(t,n){const r=Ue(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&B(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!se(n)||!At.has(n))&&C(t,"has",n),r}ownKeys(t){return C(t,"iterate",W(t)?"length":q),Reflect.ownKeys(t)}}class Nn extends xt{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Un=new vn,Fn=new Nn,Be=e=>e,ue=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n){return function(...r){const s=this.__v_raw,o=E(s),i=he(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),f=n?Be:t?Me:x;return!t&&C(o,"iterate",l?De:q),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[f(d[0]),f(d[1])]:f(d),done:m}},[Symbol.iterator](){return this}}}}function fe(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bn(e,t){const n={get(s){const o=this.__v_raw,i=E(o),a=E(s);e||(ee(s,a)&&C(i,"get",s),C(i,"get",a));const{has:l}=ue(i),c=t?Be:e?Me:x;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&C(E(s),"iterate",q),s.size},has(s){const o=this.__v_raw,i=E(o),a=E(s);return e||(ee(s,a)&&C(i,"has",s),C(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=E(a),c=t?Be:e?Me:x;return!e&&C(l,"iterate",q),a.forEach((f,d)=>s.call(o,c(f),c(d),i))}};return bn(n,e?{add:fe("add"),set:fe("set"),delete:fe("delete"),clear:fe("clear")}:{add(s){!t&&!I(s)&&!K(s)&&(s=E(s));const o=E(this);return ue(o).has.call(o,s)||(o.add(s),B(o,"add",s,s)),this},set(s,o){!t&&!I(o)&&!K(o)&&(o=E(o));const i=E(this),{has:a,get:l}=ue(i);let c=a.call(i,s);c||(s=E(s),c=a.call(i,s));const f=l.call(i,s);return i.set(s,o),c?ee(o,f)&&B(i,"set",s,o):B(i,"add",s,o),this},delete(s){const o=E(this),{has:i,get:a}=ue(o);let l=i.call(o,s);l||(s=E(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&B(o,"delete",s,void 0),c},clear(){const s=E(this),o=s.size!==0,i=s.clear();return o&&B(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Dn(s,e,t)}),n}function Ct(e,t){const n=Bn(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Ue(n,s)&&s in r?n:r,s,o)}const In={get:Ct(!1,!1)},Mn={get:Ct(!0,!1)},Pt=new WeakMap,kn=new WeakMap,jt=new WeakMap,qn=new WeakMap;function Hn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jn(e){return e.__v_skip||!Object.isExtensible(e)?0:Hn(_n(e))}function Lt(e){return K(e)?e:vt(e,!1,Un,In,Pt)}function Ie(e){return vt(e,!0,Fn,Mn,jt)}function vt(e,t,n,r,s){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Jn(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function K(e){return!!(e&&e.__v_isReadonly)}function I(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function E(e){const t=e&&e.__v_raw;return t?E(t):e}const x=e=>te(e)?Lt(e):e,Me=e=>te(e)?Ie(e):e;function z(e){return e?e.__v_isRef===!0:!1}function Pe(e){return Wn(e,!1)}function Wn(e,t){return z(e)?e:new zn(e,t)}class zn{constructor(t,n){this.dep=new Tt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:E(t),this._value=n?t:x(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||I(t)||K(t);t=r?t:E(t),ee(t,n)&&(this._rawValue=t,this._value=r?t:x(t),this.dep.trigger())}}function Nt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Kn}=Object.prototype,{getPrototypeOf:Ze}=Object,{iterator:Re,toStringTag:Ut}=Symbol,Ee=(e=>t=>{const n=Kn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>Ee(t)===e),Se=e=>t=>typeof t===e,{isArray:X}=Array,re=Se("undefined");function oe(e){return e!==null&&!re(e)&&e.constructor!==null&&!re(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ft=N("ArrayBuffer");function Vn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ft(e.buffer),t}const Xn=Se("string"),P=Se("function"),Dt=Se("number"),ie=e=>e!==null&&typeof e=="object",Yn=e=>e===!0||e===!1,pe=e=>{if(Ee(e)!=="object")return!1;const t=Ze(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ut in e)&&!(Re in e)},Gn=e=>{if(!ie(e)||oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Qn=N("Date"),Zn=N("File"),er=N("Blob"),tr=N("FileList"),nr=e=>ie(e)&&P(e.pipe),rr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=Ee(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},sr=N("URLSearchParams"),[or,ir,ar,cr]=["ReadableStream","Request","Response","Headers"].map(N),lr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ae(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),X(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(oe(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Bt(e,t){if(oe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,It=e=>!re(e)&&e!==k;function ke(){const{caseless:e}=It(this)&&this||{},t={},n=(r,s)=>{const o=e&&Bt(t,s)||s;pe(t[o])&&pe(r)?t[o]=ke(t[o],r):pe(r)?t[o]=ke({},r):X(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ae(arguments[r],n);return t}const ur=(e,t,n,{allOwnKeys:r}={})=>(ae(t,(s,o)=>{n&&P(s)?e[o]=Nt(s,n):e[o]=s},{allOwnKeys:r}),e),fr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dr=(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)},hr=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Ze(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pr=(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},mr=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!Dt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ze(Uint8Array)),wr=(e,t)=>{const r=(e&&e[Re]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},yr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},br=N("HTMLFormElement"),Rr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),it=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Er=N("RegExp"),Mt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ae(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Sr=e=>{Mt(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+"'")})}})},_r=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return X(e)?r(e):r(String(e).split(t)),n},Or=()=>{},Tr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ar(e){return!!(e&&P(e.append)&&e[Ut]==="FormData"&&e[Re])}const xr=e=>{const t=new Array(10),n=(r,s)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(oe(r))return r;if(!("toJSON"in r)){t[s]=r;const o=X(r)?[]:{};return ae(r,(i,a)=>{const l=n(i,s+1);!re(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Cr=N("AsyncFunction"),Pr=e=>e&&(ie(e)||P(e))&&P(e.then)&&P(e.catch),kt=((e,t)=>e?setImmediate:t?((n,r)=>(k.addEventListener("message",({source:s,data:o})=>{s===k&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(k.postMessage)),jr=typeof queueMicrotask<"u"?queueMicrotask.bind(k):typeof process<"u"&&process.nextTick||kt,Lr=e=>e!=null&&P(e[Re]),u={isArray:X,isArrayBuffer:Ft,isBuffer:oe,isFormData:rr,isArrayBufferView:Vn,isString:Xn,isNumber:Dt,isBoolean:Yn,isObject:ie,isPlainObject:pe,isEmptyObject:Gn,isReadableStream:or,isRequest:ir,isResponse:ar,isHeaders:cr,isUndefined:re,isDate:Qn,isFile:Zn,isBlob:er,isRegExp:Er,isFunction:P,isStream:nr,isURLSearchParams:sr,isTypedArray:gr,isFileList:tr,forEach:ae,merge:ke,extend:ur,trim:lr,stripBOM:fr,inherits:dr,toFlatObject:hr,kindOf:Ee,kindOfTest:N,endsWith:pr,toArray:mr,forEachEntry:wr,matchAll:yr,isHTMLForm:br,hasOwnProperty:it,hasOwnProp:it,reduceDescriptors:Mt,freezeMethods:Sr,toObjectSet:_r,toCamelCase:Rr,noop:Or,toFiniteNumber:Tr,findKey:Bt,global:k,isContextDefined:It,isSpecCompliantForm:Ar,toJSONObject:xr,isAsyncFn:Cr,isThenable:Pr,setImmediate:kt,asap:jr,isIterable:Lr};function w(e,t,n,r,s){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),s&&(this.response=s,this.status=s.status?s.status:null)}u.inherits(w,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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const qt=w.prototype,Ht={};["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=>{Ht[e]={value:e}});Object.defineProperties(w,Ht);Object.defineProperty(qt,"isAxiosError",{value:!0});w.from=(e,t,n,r,s,o)=>{const i=Object.create(qt);return u.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),w.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const vr=null;function qe(e){return u.isPlainObject(e)||u.isArray(e)}function Jt(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function at(e,t,n){return e?e.concat(t).map(function(s,o){return s=Jt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Nr(e){return u.isArray(e)&&!e.some(qe)}const Ur=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function _e(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!u.isUndefined(p[g])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(u.isBoolean(h))return h.toString();if(!l&&u.isBlob(h))throw new w("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?l&&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(u.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&Nr(h)||(u.isFileList(h)||u.endsWith(g,"[]"))&&(y=u.toArray(h)))return g=Jt(g),y.forEach(function(R,v){!(u.isUndefined(R)||R===null)&&t.append(i===!0?at([g],v,o):i===null?g:g+"[]",c(R))}),!1}return qe(h)?!0:(t.append(at(p,g,o),c(h)),!1)}const d=[],m=Object.assign(Ur,{defaultVisitor:f,convertValue:c,isVisitable:qe});function b(h,g){if(!u.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(h),u.forEach(h,function(y,S){(!(u.isUndefined(y)||y===null)&&s.call(t,y,u.isString(S)?S.trim():S,g,m))===!0&&b(y,g?g.concat(S):[S])}),d.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ct(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&&_e(e,this,t)}const $t=et.prototype;$t.append=function(t,n){this._pairs.push([t,n])};$t.toString=function(t){const n=t?function(r){return t.call(this,r,ct)}:ct;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wt(e,t,n){if(!t)return e;const r=n&&n.encode||Fr;u.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=u.isURLSearchParams(t)?t.toString():new et(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class lt{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){u.forEach(this.handlers,function(r){r!==null&&t(r)})}}const zt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dr=typeof URLSearchParams<"u"?URLSearchParams:et,Br=typeof FormData<"u"?FormData:null,Ir=typeof Blob<"u"?Blob:null,Mr={isBrowser:!0,classes:{URLSearchParams:Dr,FormData:Br,Blob:Ir},protocols:["http","https","file","blob","url","data"]},tt=typeof window<"u"&&typeof document<"u",He=typeof navigator=="object"&&navigator||void 0,kr=tt&&(!He||["ReactNative","NativeScript","NS"].indexOf(He.product)<0),qr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hr=tt&&window.location.href||"http://localhost",Jr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tt,hasStandardBrowserEnv:kr,hasStandardBrowserWebWorkerEnv:qr,navigator:He,origin:Hr},Symbol.toStringTag,{value:"Module"})),T={...Jr,...Mr};function $r(e,t){return _e(e,new T.classes.URLSearchParams,{visitor:function(n,r,s,o){return T.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Wr(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Kt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&u.isArray(s)?s.length:i,l?(u.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&u.isArray(s[i])&&(s[i]=zr(s[i])),!a)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(r,s)=>{t(Wr(r),s,n,0)}),n}return null}function Kr(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ce={transitional:zt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(Kt(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $r(t,this.formSerializer).toString();if((a=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _e(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Kr(t)):t}],transformResponse:[function(t){const n=this.transitional||ce.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?w.from(a,w.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:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{ce.headers[e]={}});const Vr=u.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"]),Xr=e=>{const t={};let n,r,s;return e&&e.split(`
12
- `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Vr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ut=Symbol("internals");function Q(e){return e&&String(e).trim().toLowerCase()}function me(e){return e===!1||e==null?e:u.isArray(e)?e.map(me):String(e)}function Yr(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 Gr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function je(e,t,n,r,s){if(u.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!u.isString(t)){if(u.isString(r))return t.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(t)}}function Qr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Zr(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let j=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,c){const f=Q(l);if(!f)throw new Error("header name must be a non-empty string");const d=u.findKey(s,f);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||l]=me(a))}const i=(a,l)=>u.forEach(a,(c,f)=>o(c,f,l));if(u.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(u.isString(t)&&(t=t.trim())&&!Gr(t))i(Xr(t),n);else if(u.isObject(t)&&u.isIterable(t)){let a={},l,c;for(const f of t){if(!u.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[c=f[0]]=(l=a[c])?u.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Q(t),t){const r=u.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Yr(s);if(u.isFunction(n))return n.call(this,s,r);if(u.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Q(t),t){const r=u.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||je(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Q(i),i){const a=u.findKey(r,i);a&&(!n||je(r,r[a],a,n))&&(delete r[a],s=!0)}}return u.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||je(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return u.forEach(this,(s,o)=>{const i=u.findKey(r,o);if(i){n[i]=me(s),delete n[o];return}const a=t?Qr(o):String(o).trim();a!==o&&delete n[o],n[a]=me(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&u.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(`
13
- `)}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(s=>r.set(s)),r}static accessor(t){const r=(this[ut]=this[ut]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Q(i);r[a]||(Zr(s,i),r[a]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};j.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(j.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});u.freezeMethods(j);function Le(e,t){const n=this||ce,r=t||n,s=j.from(r.headers);let o=r.data;return u.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Vt(e){return!!(e&&e.__CANCEL__)}function Y(e,t,n){w.call(this,e??"canceled",w.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(Y,w,{__CANCEL__:!0});function Xt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function es(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ts(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),f=r[o];i||(i=c),n[s]=l,r[s]=c;let d=o,m=0;for(;d!==s;)m+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const b=f&&c-f;return b?Math.round(m*1e3/b):void 0}}function ns(e,t){let n=0,r=1e3/t,s,o;const i=(c,f=Date.now())=>{n=f,s=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const f=Date.now(),d=f-n;d>=r?i(c,f):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const ye=(e,t,n=3)=>{let r=0;const s=ts(50,250);return ns(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,c=s(l),f=i<=a;r=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&f?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},ft=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dt=e=>(...t)=>u.asap(()=>e(...t)),rs=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,ss=T.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),u.isString(r)&&i.push("path="+r),u.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function os(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function is(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yt(e,t,n){let r=!os(t);return e&&(r||n==!1)?is(e,t):t}const ht=e=>e instanceof j?{...e}:e;function J(e,t){t=t||{};const n={};function r(c,f,d,m){return u.isPlainObject(c)&&u.isPlainObject(f)?u.merge.call({caseless:m},c,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function s(c,f,d,m){if(u.isUndefined(f)){if(!u.isUndefined(c))return r(void 0,c,d,m)}else return r(c,f,d,m)}function o(c,f){if(!u.isUndefined(f))return r(void 0,f)}function i(c,f){if(u.isUndefined(f)){if(!u.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,d){if(d in t)return r(c,f);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,f,d)=>s(ht(c),ht(f),d,!0)};return u.forEach(Object.keys({...e,...t}),function(f){const d=l[f]||s,m=d(e[f],t[f],f);u.isUndefined(m)&&d!==a||(n[f]=m)}),n}const Gt=e=>{const t=J({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=j.from(i),t.url=Wt(Yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(u.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...f]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...f].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(t)),r||r!==!1&&rs(t.url))){const c=s&&o&&ss.read(o);c&&i.set(s,c)}return t},as=typeof XMLHttpRequest<"u",cs=as&&function(e){return new Promise(function(n,r){const s=Gt(e);let o=s.data;const i=j.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,f,d,m,b,h;function g(){b&&b(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function y(){if(!p)return;const R=j.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};Xt(function(M){n(M),g()},function(M){r(M),g()},A),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 w("Request aborted",w.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let v=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||zt;s.timeoutErrorMessage&&(v=s.timeoutErrorMessage),r(new w(v,A.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&u.forEach(i.toJSON(),function(v,A){p.setRequestHeader(A,v)}),u.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),a&&a!=="json"&&(p.responseType=s.responseType),c&&([m,h]=ye(c,!0),p.addEventListener("progress",m)),l&&p.upload&&([d,b]=ye(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(f=R=>{p&&(r(!R||R.type?new Y(null,e,p):R),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const S=es(s.url);if(S&&T.protocols.indexOf(S)===-1){r(new w("Unsupported protocol "+S+":",w.ERR_BAD_REQUEST,e));return}p.send(o||null)})},ls=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(c){if(!s){s=!0,a();const f=c instanceof Error?c:this.reason;r.abort(f instanceof w?f:new Y(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new w(`timeout ${t} of ms exceeded`,w.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>u.asap(a),l}},us=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},fs=async function*(e,t){for await(const n of ds(e))yield*us(n,t)},ds=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()}},pt=(e,t,n,r)=>{const s=fs(e,t);let o=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:f}=await s.next();if(c){a(),l.close();return}let d=f.byteLength;if(n){let m=o+=d;n(m)}l.enqueue(new Uint8Array(f))}catch(c){throw a(c),c}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Oe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qt=Oe&&typeof ReadableStream=="function",hs=Oe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ps=Qt&&Zt(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mt=64*1024,Je=Qt&&Zt(()=>u.isReadableStream(new Response("").body)),be={stream:Je&&(e=>e.body)};Oe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!be[t]&&(be[t]=u.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new w(`Response type '${t}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const ms=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(u.isArrayBufferView(e)||u.isArrayBuffer(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await hs(e)).byteLength},gs=async(e,t)=>{const n=u.toFiniteNumber(e.getContentLength());return n??ms(t)},ws=Oe&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:f,withCredentials:d="same-origin",fetchOptions:m}=Gt(e);c=c?(c+"").toLowerCase():"text";let b=ls([s,o&&o.toAbortSignal()],i),h;const g=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let p;try{if(l&&ps&&n!=="get"&&n!=="head"&&(p=await gs(f,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),D;if(u.isFormData(r)&&(D=A.headers.get("content-type"))&&f.setContentType(D),A.body){const[M,le]=ft(p,ye(dt(l)));r=pt(A.body,mt,M,le)}}u.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...m,signal:b,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let S=await fetch(h,m);const R=Je&&(c==="stream"||c==="response");if(Je&&(a||R&&g)){const A={};["status","statusText","headers"].forEach(st=>{A[st]=S[st]});const D=u.toFiniteNumber(S.headers.get("content-length")),[M,le]=a&&ft(D,ye(dt(a),!0))||[];S=new Response(pt(S.body,mt,M,()=>{le&&le(),g&&g()}),A)}c=c||"text";let v=await be[u.findKey(be,c)||"text"](S,e);return!R&&g&&g(),await new Promise((A,D)=>{Xt(A,D,{data:v,headers:j.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:h})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,e,h),{cause:y.cause||y}):w.from(y,y&&y.code,e,h)}}),$e={http:vr,xhr:cs,fetch:ws};u.forEach($e,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gt=e=>`- ${e}`,ys=e=>u.isFunction(e)||e===null||e===!1,en={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!ys(n)&&(r=$e[(i=String(n)).toLowerCase()],r===void 0))throw new w(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
14
- `+o.map(gt).join(`
15
- `):" "+gt(o[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:$e};function ve(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Y(null,e)}function wt(e){return ve(e),e.headers=j.from(e.headers),e.data=Le.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),en.getAdapter(e.adapter||ce.adapter)(e).then(function(r){return ve(e),r.data=Le.call(e,e.transformResponse,r),r.headers=j.from(r.headers),r},function(r){return Vt(r)||(ve(e),r&&r.response&&(r.response.data=Le.call(e,e.transformResponse,r.response),r.response.headers=j.from(r.response.headers))),Promise.reject(r)})}const tn="1.11.0",Te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yt={};Te.transitional=function(t,n,r){function s(o,i){return"[Axios v"+tn+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new w(s(i," has been removed"+(n?" in "+n:"")),w.ERR_DEPRECATED);return n&&!yt[i]&&(yt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};Te.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function bs(e,t,n){if(typeof e!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new w("option "+o+" must be "+l,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+o,w.ERR_BAD_OPTION)}}const ge={assertOptions:bs,validators:Te},U=ge.validators;let H=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lt,response:new lt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
16
- `+o):r.stack=o}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:s,headers:o}=n;r!==void 0&&ge.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:ge.assertOptions(s,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ge.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=j.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let f,d=0,m;if(!l){const h=[wt.bind(this),void 0];for(h.unshift(...a),h.push(...c),m=h.length,f=Promise.resolve(n);d<m;)f=f.then(h[d++],h[d++]);return f}m=a.length;let b=n;for(d=0;d<m;){const h=a[d++],g=a[d++];try{b=h(b)}catch(p){g.call(this,p);break}}try{f=wt.call(this,b)}catch(h){return Promise.reject(h)}for(d=0,m=c.length;d<m;)f=f.then(c[d++],c[d++]);return f}getUri(t){t=J(this.defaults,t);const n=Yt(t.baseURL,t.url,t.allowAbsoluteUrls);return Wt(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){H.prototype[t]=function(n,r){return this.request(J(r||{},{method:t,url:n,data:(r||{}).data}))}});u.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(J(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}H.prototype[t]=n(),H.prototype[t+"Form"]=n(!0)});let Rs=class nn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Y(o,i,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 nn(function(s){t=s}),cancel:t}}};function Es(e){return function(n){return e.apply(null,n)}}function Ss(e){return u.isObject(e)&&e.isAxiosError===!0}const We={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(We).forEach(([e,t])=>{We[t]=e});function rn(e){const t=new H(e),n=Nt(H.prototype.request,t);return u.extend(n,H.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return rn(J(e,s))},n}const _=rn(ce);_.Axios=H;_.CanceledError=Y;_.CancelToken=Rs;_.isCancel=Vt;_.VERSION=tn;_.toFormData=_e;_.AxiosError=w;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=Es;_.isAxiosError=Ss;_.mergeConfig=J;_.AxiosHeaders=j;_.formToJSON=e=>Kt(u.isHTMLForm(e)?new FormData(e):e);_.getAdapter=en.getAdapter;_.HttpStatusCode=We;_.default=_;const{Axios:fo,AxiosError:ho,CanceledError:po,isCancel:mo,CancelToken:go,VERSION:wo,all:yo,Cancel:bo,isAxiosError:Ro,spread:Eo,toFormData:So,AxiosHeaders:_o,HttpStatusCode:Oo,formToJSON:To,getAdapter:Ao,mergeConfig:xo}=_,_s={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Os=["put","post","patch"],ze="Local-Request-Id",Ts=100,As=300;let sn=class{constructor(t={}){L(this,"axios");L(this,"settings");L(this,"records",{});L(this,"isLoading",!1);L(this,"stopSkipWarn");L(this,"showLoading");L(this,"showError");this.settings=Object.assign({type:"form"},t.settings||{});const n=O.omit(t,["settings","query"]);this.axios=_.create(O.merge({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},n)),this.setupSkipWarn(this.settings),this.showLoading=O.debounce(this.openLoading.bind(this),Ts),this.showError=O.throttle(this._showError.bind(this),As,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=O.merge(this.settings,t.settings||{});const n=O.omit(t,["settings","query"]);this.axios.defaults=O.merge(this.axios.defaults,n),this.setupSkipWarn(this.settings)}cancel(t,n="请求已取消"){if(t){const r=this.records[t];if(!r)return;r.source.cancel(n)}else for(const r of Object.values(this.records))r.source.cancel(n)}createHeaders(t,n,r){const s=n.injectHeaders?typeof n.headers=="function"?n.headers(t,r,n):n.headers||{}:{},o={"Content-Type":_s[n.type||"form"],...r.headers,...s};return n.skipWarn&&(o[ze]=t),o}isJsonType(t){return Object.entries(t).some(([n,r])=>n.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(t,n="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const r=n==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([s,o])=>{r.append(s,o)}),r}createSendData(t,n,r,s,o={}){const{type:i,skipWarn:a}=t,{name:l="skipWarn"}=a||{};let{data:c,params:f={},method:d="get"}=n;const m=s?{[l]:!0}:{};return Os.includes(d.toLowerCase())?(c=Object.assign(c||{},m),c=i!=="json"||!this.isJsonType(r)?this.toFormData(c,i):c,f={...o}):i==="form"?f={...c||{},...o,...m}:(c&&(i!=="json"||!this.isJsonType(r))&&(c=this.toFormData(c,i)),f={...o,...m}),{data:c,params:f}}createUrl(t){let{url:n,params:r}=t;if(n){let s=O.isUrl(n)?new URL(n).origin:"";const o=s?n.replace(s,""):n;try{const i=O.pathToRegexpCompile(o,{encode:encodeURIComponent});return s+i(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",n)}}return n}openLoading(t){const{loading:n,showLoading:r}=t;n&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(t){const{loading:n,hideLoading:r}=t;if(!n)return;this.isLoading=!1;const s=Object.keys(this.records);r&&s.length===0&&(this.isLoading=!1,r())}_showError(t,n){const{failMessage:r,showError:s}=t;if(r&&s){const o=n?.response?.data,i=o?.message||o?.msg||n?.message||n?.msg||"未知错误";s(i,n)}}validResponse(t,n){const{validSuccess:r,validate:s}=t;return r&&s?!!s(n):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},n=!1){const r=O.merge({},this.settings,t.settings||{}),s=t.query||{},o=O.omit(t,["settings","query"]),i=O.uuid(!1),a=_.CancelToken.source();this.records[i]={settings:r,config:o,source:a};const l=this.createUrl(o),c=this.createHeaders(i,r,o),{data:f,params:d}=this.createSendData(r,o,c,n,s);return this.showLoading(r),new Promise((m,b)=>{this.axios({cancelToken:a.token,...o,url:l,headers:c,data:f,params:d}).then(h=>this.isSkipWarnResponse(h)?m(h.promise):this.validResponse(r,h)?m(r.originResponse?h:h.data?.data):(this.showError(r,h.data),b(h.data))).catch(h=>(this.showError(r,h),b(h))).finally(()=>{delete this.records[i],this.closeLoading(r)})})}useResponse(t,n){const{response:r}=this.axios.interceptors,s=r.use(t,n);return()=>r.eject(s)}useRequest(t,n){const{request:r}=this.axios.interceptors,s=r.use(t,n);return()=>r.eject(s)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:n,executor:r,callback:s,complete:o}=t.skipWarn;this.stopSkipWarn=this.useResponse(i=>{const l=(i.config.headers||{})[ze],c=this.records[l];if(!c)return i;const{data:f}=i;if(!f||typeof f!="object")return i;if(f?.code===n){s&&s(i);const d=new Promise(r).then(()=>this.send({...c.config,settings:c.settings},!0));d.catch(m=>m).finally(()=>{o&&o()}),i.promise=d}return i})}};function on(e={}){const t=new sn(e),n=t.send.bind(t),r=t.cancel.bind(t),s=t.setConfig.bind(t),o=t.useRequest.bind(t),i=t.useResponse.bind(t);return Object.assign(n,{...t,instance:t,send:n,cancel:r,setConfig:s,useRequest:o,useResponse:i})}const an=on({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function cn(e){const t=typeof e=="string"?{url:e}:e;return(n,r)=>an.send(O.merge({},t,r||{},{data:n}))}function xs(e){const t={};for(const[n,r]of Object.entries(e))t[n]=cn(r);return t}function Cs(e,t){const n=Pe(null),r=Pe(),s=Pe(!0);return e.then(o=>{n.value=t?t(o):o}).catch(o=>{r.value=o}).finally(()=>{s.value=!1}),{data:n,error:r,loading:s}}const V=typeof window<"u",Ps=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=s=>{n(s)}});function js(e){const t={};return e?(e.forEach((n,r)=>{t[r]=typeof n=="string"?decodeURIComponent(n):n}),t):{}}function Ls(e){const t=e.split(","),n=t[0].match(/:(.*?);/)?.[1],r=atob(t[1]);let s=r.length;const o=new Uint8Array(s);for(;s--;)o[s]=r.charCodeAt(s);return new Blob([o],{type:n})}function vs(e,t){const n=e;return n.lastModified=Date.now(),n.lastModifiedDate=new Date,n.name=t,n}const Ns=e=>V?window.requestAnimationFrame(e):setTimeout(e,16),Us=e=>V?window.cancelAnimationFrame(e):clearTimeout(e);class ln{constructor(t={}){L(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"});L(this,"caches",{});L(this,"types");this.types={local:V?window.localStorage:this.caches,session:V?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,n,r={}){const{type:s,expired:o,prefix:i}={...this.options,...r},a=Date.now(),l=i+t,c=this.types[s]||this.caches,f={value:n,timestamp:a,expired:o};c===this.caches?c[l]=f:c.setItem(l,JSON.stringify(f))}get(t,n={}){const{type:r,prefix:s}={...this.options,...n},o=s+t,i=this.types[r]||this.caches;let a;if(i===this.caches)a=i[o];else{const m=i.getItem(o);if(m)try{a=JSON.parse(m)}catch(b){console.warn("[Storage] JSON.parse",b)}}if(!a)return null;const{value:l,timestamp:c,expired:f}=a;return f>0&&c+f<Date.now()?(this.remove(t,n),null):l}remove(t,n={}){const{type:r,prefix:s}={...this.options,...n},o=this.types[r]||this.caches,i=s+t;o===this.caches?delete o[i]:o.removeItem(i)}clear(t={}){const{type:n}={...this.options,...t},r=this.types[n]||this.caches;r===this.caches?this.caches={}:r.clear()}}const Fs=new ln;function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}},Ds=Z.exports,bt;function Bs(){return bt||(bt=1,(function(e,t){(function(n,r){r(t,e)})(Ds,function(n,r){var s={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function i(c){try{delete window[c]}catch{window[c]=void 0}}function a(c){var f=document.getElementById(c);f&&document.getElementsByTagName("head")[0].removeChild(f)}function l(c){var f=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=c,m=f.timeout||s.timeout,b=f.jsonpCallback||s.jsonpCallback,h=void 0;return new Promise(function(g,p){var y=f.jsonpCallbackFunction||o(),S=b+"_"+y;window[y]=function(v){g({ok:!0,json:function(){return Promise.resolve(v)}}),h&&clearTimeout(h),a(S),i(y)},d+=d.indexOf("?")===-1?"?":"&";var R=document.createElement("script");R.setAttribute("src",""+d+b+"="+y),f.charset&&R.setAttribute("charset",f.charset),f.nonce&&R.setAttribute("nonce",f.nonce),f.referrerPolicy&&R.setAttribute("referrerPolicy",f.referrerPolicy),f.crossorigin&&R.setAttribute("crossorigin","true"),R.id=S,document.getElementsByTagName("head")[0].appendChild(R),h=setTimeout(function(){p(new Error("JSONP request to "+c+" timed out")),i(y),a(S),window[y]=function(){i(y)}},m),R.onerror=function(){p(new Error("JSONP request to "+c+" failed")),i(y),a(S),h&&clearTimeout(h)}})}r.exports=l})})(Z,Z.exports)),Z.exports}var Is=Bs();const Ms=un(Is);function ks(e){if(V){const{protocol:t,host:n,pathname:r}=location;return`${t}//${n}${e?r:""}`}else return null}function qs(e=""){const t=e.match(O.rURL);return t?t[0]:""}function fn(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,encodeURIComponent(e[n])].join("="));return t.join("&")}function Ke(e,t,n){const r={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",n=n||"=";let s;const o=new RegExp("(?:^|\\"+t+")([^\\"+n+"\\"+t+"]+)(?:\\"+n+"([^\\"+t+"]*))?","g");for(;(s=o.exec(e))!==null;)s[1]!==e&&(r[decodeURIComponent(s[1])]=decodeURIComponent(s[2]||""));return r}function dn(e,t){t=typeof t=="string"?Ke(t):t;const n=e.split("?")[0],r=Ke(e),s=Object.assign({},r,t),o=fn(s);return o?[n,o].join("?"):e}const Hs=Object.freeze(Object.defineProperty({__proto__:null,append:dn,getCurrentHost:ks,getHost:qs,parse:Ke,stringify:fn},Symbol.toStringTag,{value:"Module"}));async function Js(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=O.template(e)(n||{}));const r=dn(e,n);return await(await Ms(r,t)).json()}var Ne,Rt;function $s(){if(Rt)return Ne;Rt=1,Ne=function(s,o,i){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("script");typeof o=="function"&&(i=o,o={}),o=o||{},i=i||function(){},l.type=o.type||"text/javascript",l.charset=o.charset||"utf8",l.async="async"in o?!!o.async:!0,l.src=s,o.attrs&&e(l,o.attrs),o.text&&(l.text=""+o.text);var c="onload"in l?t:n;c(l,i),l.onload||t(l,i),a.appendChild(l)};function e(r,s){for(var o in s)r.setAttribute(o,s[o])}function t(r,s){r.onload=function(){this.onerror=this.onload=null,s(null,r)},r.onerror=function(){this.onerror=this.onload=null,s(new Error("Failed to load "+this.src),r)}}function n(r,s){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,s(null,r))}}return Ne}var Ws=$s();const zs=un(Ws);function Ks(e,t={}){return new Promise((n,r)=>{const{library:s}=t;zs(e,t,(o,i)=>{o?r(o):n(s?window[s]:void 0)})})}const Et={debug:-1,log:0,info:0,warn:1,error:2},Vs=function(e,t,n,r){return function(...s){if(t&&Et[t]<=Et[e]&&console[e].apply&&(r==="*"||n.startsWith(r)))return console[e].apply(console,Xs(s,n))}};function Xs(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Ys(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const n=e.split(":");return{targetLevel:n[0],targetBizName:n[1]}}return{targetLevel:e,targetBizName:"*"}}const Gs={level:"warn",bizName:"*"};class hn{constructor(t){L(this,"config");L(this,"options");this.options={...Gs,...t};const n=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href)||[])[1];this.config=Ys(r,t)}_log(t){const{targetLevel:n,targetBizName:r}=this.config,{bizName:s}=this.options;return Vs(t,n,s,r)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function pn(e){return new hn(e)}const Qs=pn({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Zs={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ve(e,t){function n(s,o,i){if(!(typeof document>"u")){i=de({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var l=o[a].split("="),c=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(i[f]=e.read(c,f),s===f)break}catch{}}return s?i[s]:i}}return Object.create({set:n,get:r,remove:function(s,o){n(s,"",de({},o,{expires:-1}))},withAttributes:function(s){return Ve(this.converter,de({},this.attributes,s))},withConverter:function(s){return Ve(de({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var nt=Ve(Zs,{path:"/"});function eo(e,t,n){nt.set(e,t,n)}function to(e){return nt.get(e)}function no(e,t){nt.remove(e,t)}const ro=Object.freeze(Object.defineProperty({__proto__:null,get:to,remove:no,set:eo},Symbol.toStringTag,{value:"Module"}));function so(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.target="_blank",n.click()}function rt(e,t="",n){const r=new Blob([e],{type:n}),s=document.createElement("a");s.download=t,s.style.display="none",s.href=URL.createObjectURL(r),s.click(),URL.revokeObjectURL(s.href)}async function oo(e,t="",n){return fetch(e,{credentials:"include"}).then(async r=>{const s=await r.blob();return rt(s,t,n),s})}function io(e,t=""){const n=JSON.stringify(e);rt(n,t,"application/json")}function ao(){const e=navigator.userAgent;let t="Unknown",n="Unknown",r="Unknown",s="Unknown",o=!1;if(/Windows NT/i.test(e)){t="Windows";const a={"12.0":"12","11.0":"11","10.0":"10","6.3":"8.1","6.2":"8","6.1":"7","6.0":"Vista","5.2":"XP 64-bit","5.1":"XP"},l=e.match(/Windows NT (\d+\.\d+)/);l&&(n=a[l[1]]||l[1])}else if(/Mac OS X/i.test(e)){t="Mac OS";const a=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);a&&(n=a[1].replace(/_/g,"."))}else if(/(iPhone|iPad|iPod)/i.test(e)){t="iOS";const a=e.match(/OS (\d+[_\.]\d+[_\.]?\d*)/);a&&(n=a[1].replace(/_/g,"."))}else if(/Android/i.test(e)){t="Android";const a=e.match(/Android (\d+\.\d+)/);a&&(n=a[1])}else/Linux/i.test(e)&&(t="Linux");const i=e.match(/(Edge|Edg|Edga|EdgA)\/(\d+)/i);if(i)r="Microsoft Edge",s=i[2];else{const a=e.match(/Firefox\/(\d+)/i);if(a)r="Firefox",s=a[1];else{const l=e.match(/(Opera|OPR)\/(\d+)/i);if(l)r="Opera",s=l[2];else{const c=e.match(/Chrome\/(\d+)/i);if(c)r="Chrome",s=c[1];else{const f=e.match(/Version\/(\d+\.\d+)/i);if(f&&/Safari/i.test(e))r="Safari",s=f[1];else{const d=e.match(/(MSIE |Trident.*rv:)(\d+)/i);d&&(r="Internet Explorer",s=d[2])}}}}}return o=/(iPhone|iPod|iPad|Android|Windows Phone|Mobile)/i.test(e)||["iOS","Android"].includes(t),/(iPad|Tablet|Android(?!.*Mobile))/i.test(e)&&(o=!0),{os:t,osVersion:n,browser:r,browserVersion:s,isMobile:o}}exports.LOCAL_REQUEST_ID=ze;exports.Logger=hn;exports.Request=sn;exports.Storage=ln;exports.VTJ_UTILS_VERSION=wn;exports.axios=_;exports.blobToFile=vs;exports.cAF=Us;exports.cookie=ro;exports.createApi=cn;exports.createApis=xs;exports.createRequest=on;exports.dataURLtoBlob=Ls;exports.downloadBlob=rt;exports.downloadJson=io;exports.downloadRemoteFile=oo;exports.downloadUrl=so;exports.fileToBase64=Ps;exports.formDataToJson=js;exports.getClientInfo=ao;exports.getLogger=pn;exports.isClient=V;exports.jsonp=Js;exports.loadScript=Ks;exports.logger=Qs;exports.rAF=Ns;exports.request=an;exports.storage=Fs;exports.url=Hs;exports.useApi=Cs;Object.keys(O).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>O[e]})});
7
+ */const At="0.13.32";function He(e,t){return function(){return e.apply(t,arguments)}}const{toString:xt}=Object.prototype,{getPrototypeOf:Ee}=Object,{iterator:ee,toStringTag:Je}=Symbol,te=(e=>t=>{const n=xt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>te(t)===e),ne=e=>t=>typeof t===e,{isArray:v}=Array,H=ne("undefined");function J(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $e=P("ArrayBuffer");function Ct(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$e(e.buffer),t}const _t=ne("string"),x=ne("function"),ze=ne("number"),$=e=>e!==null&&typeof e=="object",Lt=e=>e===!0||e===!1,X=e=>{if(te(e)!=="object")return!1;const t=Ee(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Je in e)&&!(ee in e)},Pt=e=>{if(!$(e)||J(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jt=P("Date"),Ut=P("File"),kt=P("Blob"),Ft=P("FileList"),Nt=e=>$(e)&&x(e.pipe),Dt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=te(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},Bt=P("URLSearchParams"),[vt,qt,It,Mt]=["ReadableStream","Request","Response","Headers"].map(P),Ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function z(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),v(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(J(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function We(e,t){if(J(e))return null;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 F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ve=e=>!H(e)&&e!==F;function fe(){const{caseless:e}=Ve(this)&&this||{},t={},n=(r,o)=>{const s=e&&We(t,o)||o;X(t[s])&&X(r)?t[s]=fe(t[s],r):X(r)?t[s]=fe({},r):v(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&z(arguments[r],n);return t}const Jt=(e,t,n,{allOwnKeys:r}={})=>(z(t,(o,s)=>{n&&x(o)?e[s]=He(o,n):e[s]=o},{allOwnKeys:r}),e),$t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zt=(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)},Wt=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Ee(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Vt=(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},Kt=e=>{if(!e)return null;if(v(e))return e;let t=e.length;if(!ze(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ee(Uint8Array)),Gt=(e,t)=>{const r=(e&&e[ee]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Qt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yt=P("HTMLFormElement"),Zt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),en=P("RegExp"),Ke=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};z(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},tn=e=>{Ke(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(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+"'")})}})},nn=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return v(e)?r(e):r(String(e).split(t)),n},rn=()=>{},on=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function sn(e){return!!(e&&x(e.append)&&e[Je]==="FormData"&&e[ee])}const an=e=>{const t=new Array(10),n=(r,o)=>{if($(r)){if(t.indexOf(r)>=0)return;if(J(r))return r;if(!("toJSON"in r)){t[o]=r;const s=v(r)?[]:{};return z(r,(i,a)=>{const f=n(i,o+1);!H(f)&&(s[a]=f)}),t[o]=void 0,s}}return r};return n(e,0)},cn=P("AsyncFunction"),ln=e=>e&&($(e)||x(e))&&x(e.then)&&x(e.catch),Xe=((e,t)=>e?setImmediate:t?((n,r)=>(F.addEventListener("message",({source:o,data:s})=>{o===F&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),F.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(F.postMessage)),un=typeof queueMicrotask<"u"?queueMicrotask.bind(F):typeof process<"u"&&process.nextTick||Xe,fn=e=>e!=null&&x(e[ee]),c={isArray:v,isArrayBuffer:$e,isBuffer:J,isFormData:Dt,isArrayBufferView:Ct,isString:_t,isNumber:ze,isBoolean:Lt,isObject:$,isPlainObject:X,isEmptyObject:Pt,isReadableStream:vt,isRequest:qt,isResponse:It,isHeaders:Mt,isUndefined:H,isDate:jt,isFile:Ut,isBlob:kt,isRegExp:en,isFunction:x,isStream:Nt,isURLSearchParams:Bt,isTypedArray:Xt,isFileList:Ft,forEach:z,merge:fe,extend:Jt,trim:Ht,stripBOM:$t,inherits:zt,toFlatObject:Wt,kindOf:te,kindOfTest:P,endsWith:Vt,toArray:Kt,forEachEntry:Gt,matchAll:Qt,isHTMLForm:Yt,hasOwnProperty:xe,hasOwnProp:xe,reduceDescriptors:Ke,freezeMethods:tn,toObjectSet:nn,toCamelCase:Zt,noop:rn,toFiniteNumber:on,findKey:We,global:F,isContextDefined:Ve,isSpecCompliantForm:sn,toJSONObject:an,isAsyncFn:cn,isThenable:ln,setImmediate:Xe,asap:un,isIterable:fn};function g(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)}c.inherits(g,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const Ge=g.prototype,Qe={};["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=>{Qe[e]={value:e}});Object.defineProperties(g,Qe);Object.defineProperty(Ge,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(Ge);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},a=>a!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const dn=null;function de(e){return c.isPlainObject(e)||c.isArray(e)}function Ye(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ce(e,t,n){return e?e.concat(t).map(function(o,s){return o=Ye(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function pn(e){return c.isArray(e)&&!e.some(de)}const hn=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!c.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(c.isBoolean(p))return p.toString();if(!f&&c.isBlob(p))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,h){let w=p;if(p&&!h&&typeof p=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&pn(p)||(c.isFileList(p)||c.endsWith(m,"[]"))&&(w=c.toArray(p)))return m=Ye(m),w.forEach(function(E,L){!(c.isUndefined(E)||E===null)&&t.append(i===!0?Ce([m],L,s):i===null?m:m+"[]",l(E))}),!1}return de(p)?!0:(t.append(Ce(h,m,s),l(p)),!1)}const d=[],y=Object.assign(hn,{defaultVisitor:u,convertValue:l,isVisitable:de});function b(p,m){if(!c.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),c.forEach(p,function(w,R){(!(c.isUndefined(w)||w===null)&&o.call(t,w,c.isString(R)?R.trim():R,m,y))===!0&&b(w,m?m.concat(R):[R])}),d.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return b(e),t}function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Re(e,t){this._pairs=[],e&&re(e,this,t)}const Ze=Re.prototype;Ze.append=function(t,n){this._pairs.push([t,n])};Ze.toString=function(t){const n=t?function(r){return t.call(this,r,_e)}:_e;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function mn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function et(e,t,n){if(!t)return e;const r=n&&n.encode||mn;c.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=c.isURLSearchParams(t)?t.toString():new Re(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Le{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){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const tt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gn=typeof URLSearchParams<"u"?URLSearchParams:Re,yn=typeof FormData<"u"?FormData:null,wn=typeof Blob<"u"?Blob:null,bn={isBrowser:!0,classes:{URLSearchParams:gn,FormData:yn,Blob:wn},protocols:["http","https","file","blob","url","data"]},Se=typeof window<"u"&&typeof document<"u",pe=typeof navigator=="object"&&navigator||void 0,En=Se&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),Rn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sn=Se&&window.location.href||"http://localhost",On=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Se,hasStandardBrowserEnv:En,hasStandardBrowserWebWorkerEnv:Rn,navigator:pe,origin:Sn},Symbol.toStringTag,{value:"Module"})),T={...On,...bn};function Tn(e,t){return re(e,new T.classes.URLSearchParams,{visitor:function(n,r,o,s){return T.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function An(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xn(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function nt(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=s>=n.length;return i=!i&&c.isArray(o)?o.length:i,f?(c.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!c.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&c.isArray(o[i])&&(o[i]=xn(o[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,o)=>{t(An(r),o,n,0)}),n}return null}function Cn(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const W={transitional:tt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return o?JSON.stringify(nt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tn(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return re(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Cn(t)):t}],transformResponse:[function(t){const n=this.transitional||W.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?g.from(a,g.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:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{W.headers[e]={}});const _n=c.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"]),Ln=e=>{const t={};let n,r,o;return e&&e.split(`
8
+ `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&_n[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Pe=Symbol("internals");function I(e){return e&&String(e).trim().toLowerCase()}function G(e){return e===!1||e==null?e:c.isArray(e)?e.map(G):String(e)}function Pn(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 jn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ae(e,t,n,r,o){if(c.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Un(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kn(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let C=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,f,l){const u=I(f);if(!u)throw new Error("header name must be a non-empty string");const d=c.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||f]=G(a))}const i=(a,f)=>c.forEach(a,(l,u)=>s(l,u,f));if(c.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(c.isString(t)&&(t=t.trim())&&!jn(t))i(Ln(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},f,l;for(const u of t){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(f=a[l])?c.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=I(t),t){const r=c.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Pn(o);if(c.isFunction(n))return n.call(this,o,r);if(c.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=I(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ae(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=I(i),i){const a=c.findKey(r,i);a&&(!n||ae(r,r[a],a,n))&&(delete r[a],o=!0)}}return c.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ae(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return c.forEach(this,(o,s)=>{const i=c.findKey(r,s);if(i){n[i]=G(o),delete n[s];return}const a=t?Un(s):String(s).trim();a!==s&&delete n[s],n[a]=G(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&c.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(`
9
+ `)}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[Pe]=this[Pe]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=I(i);r[a]||(kn(o,i),r[a]=!0)}return c.isArray(t)?t.forEach(s):s(t),this}};C.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(C.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(C);function ce(e,t){const n=this||W,r=t||n,o=C.from(r.headers);let s=r.data;return c.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function rt(e){return!!(e&&e.__CANCEL__)}function q(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(q,g,{__CANCEL__:!0});function ot(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[s];i||(i=l),n[o]=f,r[o]=l;let d=s,y=0;for(;d!==o;)y+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const b=u&&l-u;return b?Math.round(y*1e3/b):void 0}}function Dn(e,t){let n=0,r=1e3/t,o,s;const i=(l,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},r-d)))},()=>o&&i(o)]}const Y=(e,t,n=3)=>{let r=0;const o=Nn(50,250);return Dn(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,f=i-r,l=o(f),u=i<=a;r=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},je=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ue=e=>(...t)=>c.asap(()=>e(...t)),Bn=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,vn=T.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function In(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function st(e,t,n){let r=!qn(t);return e&&(r||n==!1)?In(e,t):t}const ke=e=>e instanceof C?{...e}:e;function D(e,t){t=t||{};const n={};function r(l,u,d,y){return c.isPlainObject(l)&&c.isPlainObject(u)?c.merge.call({caseless:y},l,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function o(l,u,d,y){if(c.isUndefined(u)){if(!c.isUndefined(l))return r(void 0,l,d,y)}else return r(l,u,d,y)}function s(l,u){if(!c.isUndefined(u))return r(void 0,u)}function i(l,u){if(c.isUndefined(u)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,u,d)=>o(ke(l),ke(u),d,!0)};return c.forEach(Object.keys({...e,...t}),function(u){const d=f[u]||o,y=d(e[u],t[u],u);c.isUndefined(y)&&d!==a||(n[u]=y)}),n}const it=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;t.headers=i=C.from(i),t.url=et(st(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let f;if(c.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&Bn(t.url))){const l=o&&s&&vn.read(s);l&&i.set(o,l)}return t},Mn=typeof XMLHttpRequest<"u",Hn=Mn&&function(e){return new Promise(function(n,r){const o=it(e);let s=o.data;const i=C.from(o.headers).normalize();let{responseType:a,onUploadProgress:f,onDownloadProgress:l}=o,u,d,y,b,p;function m(){b&&b(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function w(){if(!h)return;const E=C.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};ot(function(k){n(k),m()},function(k){r(k),m()},A),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new g("Request aborted",g.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||tt;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),r(new g(L,A.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&c.forEach(i.toJSON(),function(L,A){h.setRequestHeader(A,L)}),c.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),l&&([y,p]=Y(l,!0),h.addEventListener("progress",y)),f&&h.upload&&([d,b]=Y(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(u=E=>{h&&(r(!E||E.type?new q(null,e,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const R=Fn(o.url);if(R&&T.protocols.indexOf(R)===-1){r(new g("Unsupported protocol "+R+":",g.ERR_BAD_REQUEST,e));return}h.send(s||null)})},Jn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof g?u:new q(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>c.asap(a),f}},$n=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},zn=async function*(e,t){for await(const n of Wn(e))yield*$n(n,t)},Wn=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()}},Fe=(e,t,n,r)=>{const o=zn(e,t);let s=0,i,a=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){a(),f.close();return}let d=u.byteLength;if(n){let y=s+=d;n(y)}f.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(f){return a(f),o.return()}},{highWaterMark:2})},oe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",at=oe&&typeof ReadableStream=="function",Vn=oe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ct=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Kn=at&&ct(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ne=64*1024,he=at&&ct(()=>c.isReadableStream(new Response("").body)),Z={stream:he&&(e=>e.body)};oe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Z[t]&&(Z[t]=c.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new g(`Response type '${t}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const Xn=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(c.isArrayBufferView(e)||c.isArrayBuffer(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await Vn(e)).byteLength},Gn=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??Xn(t)},Qn=oe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:y}=it(e);l=l?(l+"").toLowerCase():"text";let b=Jn([o,s&&s.toAbortSignal()],i),p;const m=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let h;try{if(f&&Kn&&n!=="get"&&n!=="head"&&(h=await Gn(u,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),U;if(c.isFormData(r)&&(U=A.headers.get("content-type"))&&u.setContentType(U),A.body){const[k,V]=je(h,Y(Ue(f)));r=Fe(A.body,Ne,k,V)}}c.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...y,signal:b,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let R=await fetch(p,y);const E=he&&(l==="stream"||l==="response");if(he&&(a||E&&m)){const A={};["status","statusText","headers"].forEach(Ae=>{A[Ae]=R[Ae]});const U=c.toFiniteNumber(R.headers.get("content-length")),[k,V]=a&&je(U,Y(Ue(a),!0))||[];R=new Response(Fe(R.body,Ne,k,()=>{V&&V(),m&&m()}),A)}l=l||"text";let L=await Z[c.findKey(Z,l)||"text"](R,e);return!E&&m&&m(),await new Promise((A,U)=>{ot(A,U,{data:L,headers:C.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:p})})}catch(w){throw m&&m(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,p),{cause:w.cause||w}):g.from(w,w&&w.code,e,p)}}),me={http:dn,xhr:Hn,fetch:Qn};c.forEach(me,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const De=e=>`- ${e}`,Yn=e=>c.isFunction(e)||e===null||e===!1,lt={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let i;if(r=n,!Yn(n)&&(r=me[(i=String(n)).toLowerCase()],r===void 0))throw new g(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,f])=>`adapter ${a} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
10
+ `+s.map(De).join(`
11
+ `):" "+De(s[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:me};function le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q(null,e)}function Be(e){return le(e),e.headers=C.from(e.headers),e.data=ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lt.getAdapter(e.adapter||W.adapter)(e).then(function(r){return le(e),r.data=ce.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return rt(r)||(le(e),r&&r.response&&(r.response.data=ce.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const ut="1.11.0",se={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{se[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ve={};se.transitional=function(t,n,r){function o(s,i){return"[Axios v"+ut+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new g(o(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!ve[i]&&(ve[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};se.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Zn(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],f=a===void 0||i(a,s,e);if(f!==!0)throw new g("option "+s+" must be "+f,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const Q={assertOptions:Zn,validators:se},j=Q.validators;let N=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Le,response:new Le}}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 s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
12
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Q.assertOptions(r,{silentJSONParsing:j.transitional(j.boolean),forcedJSONParsing:j.transitional(j.boolean),clarifyTimeoutError:j.transitional(j.boolean)},!1),o!=null&&(c.isFunction(o)?n.paramsSerializer={serialize:o}:Q.assertOptions(o,{encode:j.function,serialize:j.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Q.assertOptions(n,{baseUrl:j.spelling("baseURL"),withXsrfToken:j.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&c.merge(s.common,s[n.method]);s&&c.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=C.concat(i,s);const a=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,y;if(!f){const p=[Be.bind(this),void 0];for(p.unshift(...a),p.push(...l),y=p.length,u=Promise.resolve(n);d<y;)u=u.then(p[d++],p[d++]);return u}y=a.length;let b=n;for(d=0;d<y;){const p=a[d++],m=a[d++];try{b=p(b)}catch(h){m.call(this,h);break}}try{u=Be.call(this,b)}catch(p){return Promise.reject(p)}for(d=0,y=l.length;d<y;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=D(this.defaults,t);const n=st(t.baseURL,t.url,t.allowAbsoluteUrls);return et(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){N.prototype[t]=function(n,r){return this.request(D(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(D(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}N.prototype[t]=n(),N.prototype[t+"Form"]=n(!0)});let er=class ft{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new q(s,i,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 ft(function(o){t=o}),cancel:t}}};function tr(e){return function(n){return e.apply(null,n)}}function nr(e){return c.isObject(e)&&e.isAxiosError===!0}const ge={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(ge).forEach(([e,t])=>{ge[t]=e});function dt(e){const t=new N(e),n=He(N.prototype.request,t);return c.extend(n,N.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return dt(D(e,o))},n}const S=dt(W);S.Axios=N;S.CanceledError=q;S.CancelToken=er;S.isCancel=rt;S.VERSION=ut;S.toFormData=re;S.AxiosError=g;S.Cancel=S.CanceledError;S.all=function(t){return Promise.all(t)};S.spread=tr;S.isAxiosError=nr;S.mergeConfig=D;S.AxiosHeaders=C;S.formToJSON=e=>nt(c.isHTMLForm(e)?new FormData(e):e);S.getAdapter=lt.getAdapter;S.HttpStatusCode=ge;S.default=S;const{Axios:zr,AxiosError:Wr,CanceledError:Vr,isCancel:Kr,CancelToken:Xr,VERSION:Gr,all:Qr,Cancel:Yr,isAxiosError:Zr,spread:eo,toFormData:to,AxiosHeaders:no,HttpStatusCode:ro,formToJSON:oo,getAdapter:so,mergeConfig:io}=S,rr={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},or=["put","post","patch"],ye="Local-Request-Id",sr=100,ir=300;let pt=class{constructor(t={}){_(this,"axios");_(this,"settings");_(this,"records",{});_(this,"isLoading",!1);_(this,"stopSkipWarn");_(this,"showLoading");_(this,"showError");this.settings=Object.assign({type:"form"},t.settings||{});const n=O.omit(t,["settings","query"]);this.axios=S.create(O.merge({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},n)),this.setupSkipWarn(this.settings),this.showLoading=O.debounce(this.openLoading.bind(this),sr),this.showError=O.throttle(this._showError.bind(this),ir,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=O.merge(this.settings,t.settings||{});const n=O.omit(t,["settings","query"]);this.axios.defaults=O.merge(this.axios.defaults,n),this.setupSkipWarn(this.settings)}cancel(t,n="请求已取消"){if(t){const r=this.records[t];if(!r)return;r.source.cancel(n)}else for(const r of Object.values(this.records))r.source.cancel(n)}createHeaders(t,n,r){const o=n.injectHeaders?typeof n.headers=="function"?n.headers(t,r,n):n.headers||{}:{},s={"Content-Type":rr[n.type||"form"],...r.headers,...o};return n.skipWarn&&(s[ye]=t),s}isJsonType(t){return Object.entries(t).some(([n,r])=>n.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(t,n="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const r=n==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([o,s])=>{r.append(o,s)}),r}createSendData(t,n,r,o,s={}){const{type:i,skipWarn:a}=t,{name:f="skipWarn"}=a||{};let{data:l,params:u={},method:d="get"}=n;const y=o?{[f]:!0}:{};return or.includes(d.toLowerCase())?(l=Object.assign(l||{},y),l=i!=="json"||!this.isJsonType(r)?this.toFormData(l,i):l,u={...s}):i==="form"?u={...l||{},...s,...y}:(l&&(i!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,i)),u={...s,...y}),{data:l,params:u}}createUrl(t){let{url:n,params:r}=t;if(n){let o=O.isUrl(n)?new URL(n).origin:"";const s=o?n.replace(o,""):n;try{const i=O.pathToRegexpCompile(s,{encode:encodeURIComponent});return o+i(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",n)}}return n}openLoading(t){const{loading:n,showLoading:r}=t;n&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(t){const{loading:n,hideLoading:r}=t;if(!n)return;this.isLoading=!1;const o=Object.keys(this.records);r&&o.length===0&&(this.isLoading=!1,r())}_showError(t,n){const{failMessage:r,showError:o}=t;if(r&&o){const s=n?.response?.data,i=s?.message||s?.msg||n?.message||n?.msg||"未知错误";o(i,n)}}validResponse(t,n){const{validSuccess:r,validate:o}=t;return r&&o?!!o(n):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},n=!1){const r=O.merge({},this.settings,t.settings||{}),o=t.query||{},s=O.omit(t,["settings","query"]),i=O.uuid(!1),a=S.CancelToken.source();this.records[i]={settings:r,config:s,source:a};const f=this.createUrl(s),l=this.createHeaders(i,r,s),{data:u,params:d}=this.createSendData(r,s,l,n,o);return this.showLoading(r),new Promise((y,b)=>{this.axios({cancelToken:a.token,...s,url:f,headers:l,data:u,params:d}).then(p=>this.isSkipWarnResponse(p)?y(p.promise):this.validResponse(r,p)?y(r.originResponse?p:p.data?.data):(this.showError(r,p.data),b(p.data))).catch(p=>(this.showError(r,p),b(p))).finally(()=>{delete this.records[i],this.closeLoading(r)})})}useResponse(t,n){const{response:r}=this.axios.interceptors,o=r.use(t,n);return()=>r.eject(o)}useRequest(t,n){const{request:r}=this.axios.interceptors,o=r.use(t,n);return()=>r.eject(o)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:n,executor:r,callback:o,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(i=>{const f=(i.config.headers||{})[ye],l=this.records[f];if(!l)return i;const{data:u}=i;if(!u||typeof u!="object")return i;if(u?.code===n){o&&o(i);const d=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));d.catch(y=>y).finally(()=>{s&&s()}),i.promise=d}return i})}};function ht(e={}){const t=new pt(e),n=t.send.bind(t),r=t.cancel.bind(t),o=t.setConfig.bind(t),s=t.useRequest.bind(t),i=t.useResponse.bind(t);return Object.assign(n,{...t,instance:t,send:n,cancel:r,setConfig:o,useRequest:s,useResponse:i})}const mt=ht({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function gt(e){const t=typeof e=="string"?{url:e}:e;return(n,r)=>mt.send(O.merge({},t,r||{},{data:n}))}function ar(e){const t={};for(const[n,r]of Object.entries(e))t[n]=gt(r);return t}function cr(e,t){const n=ie.ref(null),r=ie.ref(),o=ie.ref(!0);return e.then(s=>{n.value=t?t(s):s}).catch(s=>{r.value=s}).finally(()=>{o.value=!1}),{data:n,error:r,loading:o}}const B=typeof window<"u",lr=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=o=>{n(o)}});function ur(e){const t={};return e?(e.forEach((n,r)=>{t[r]=typeof n=="string"?decodeURIComponent(n):n}),t):{}}function fr(e){const t=e.split(","),n=t[0].match(/:(.*?);/)?.[1],r=atob(t[1]);let o=r.length;const s=new Uint8Array(o);for(;o--;)s[o]=r.charCodeAt(o);return new Blob([s],{type:n})}function dr(e,t){const n=e;return n.lastModified=Date.now(),n.lastModifiedDate=new Date,n.name=t,n}const pr=e=>B?window.requestAnimationFrame(e):setTimeout(e,16),hr=e=>B?window.cancelAnimationFrame(e):clearTimeout(e);class yt{constructor(t={}){_(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"});_(this,"caches",{});_(this,"types");this.types={local:B?window.localStorage:this.caches,session:B?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,n,r={}){const{type:o,expired:s,prefix:i}={...this.options,...r},a=Date.now(),f=i+t,l=this.types[o]||this.caches,u={value:n,timestamp:a,expired:s};l===this.caches?l[f]=u:l.setItem(f,JSON.stringify(u))}get(t,n={}){const{type:r,prefix:o}={...this.options,...n},s=o+t,i=this.types[r]||this.caches;let a;if(i===this.caches)a=i[s];else{const y=i.getItem(s);if(y)try{a=JSON.parse(y)}catch(b){console.warn("[Storage] JSON.parse",b)}}if(!a)return null;const{value:f,timestamp:l,expired:u}=a;return u>0&&l+u<Date.now()?(this.remove(t,n),null):f}remove(t,n={}){const{type:r,prefix:o}={...this.options,...n},s=this.types[r]||this.caches,i=o+t;s===this.caches?delete s[i]:s.removeItem(i)}clear(t={}){const{type:n}={...this.options,...t},r=this.types[n]||this.caches;r===this.caches?this.caches={}:r.clear()}}const mr=new yt;function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M={exports:{}},gr=M.exports,qe;function yr(){return qe||(qe=1,(function(e,t){(function(n,r){r(t,e)})(gr,function(n,r){var o={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function i(l){try{delete window[l]}catch{window[l]=void 0}}function a(l){var u=document.getElementById(l);u&&document.getElementsByTagName("head")[0].removeChild(u)}function f(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=l,y=u.timeout||o.timeout,b=u.jsonpCallback||o.jsonpCallback,p=void 0;return new Promise(function(m,h){var w=u.jsonpCallbackFunction||s(),R=b+"_"+w;window[w]=function(L){m({ok:!0,json:function(){return Promise.resolve(L)}}),p&&clearTimeout(p),a(R),i(w)},d+=d.indexOf("?")===-1?"?":"&";var E=document.createElement("script");E.setAttribute("src",""+d+b+"="+w),u.charset&&E.setAttribute("charset",u.charset),u.nonce&&E.setAttribute("nonce",u.nonce),u.referrerPolicy&&E.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&E.setAttribute("crossorigin","true"),E.id=R,document.getElementsByTagName("head")[0].appendChild(E),p=setTimeout(function(){h(new Error("JSONP request to "+l+" timed out")),i(w),a(R),window[w]=function(){i(w)}},y),E.onerror=function(){h(new Error("JSONP request to "+l+" failed")),i(w),a(R),p&&clearTimeout(p)}})}r.exports=f})})(M,M.exports)),M.exports}var wr=yr();const br=wt(wr);function Er(e){if(B){const{protocol:t,host:n,pathname:r}=location;return`${t}//${n}${e?r:""}`}else return null}function Rr(e=""){const t=e.match(O.rURL);return t?t[0]:""}function bt(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,encodeURIComponent(e[n])].join("="));return t.join("&")}function we(e,t,n){const r={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",n=n||"=";let o;const s=new RegExp("(?:^|\\"+t+")([^\\"+n+"\\"+t+"]+)(?:\\"+n+"([^\\"+t+"]*))?","g");for(;(o=s.exec(e))!==null;)o[1]!==e&&(r[decodeURIComponent(o[1])]=decodeURIComponent(o[2]||""));return r}function Et(e,t){t=typeof t=="string"?we(t):t;const n=e.split("?")[0],r=we(e),o=Object.assign({},r,t),s=bt(o);return s?[n,s].join("?"):e}const Sr=Object.freeze(Object.defineProperty({__proto__:null,append:Et,getCurrentHost:Er,getHost:Rr,parse:we,stringify:bt},Symbol.toStringTag,{value:"Module"}));async function Or(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=O.template(e)(n||{}));const r=Et(e,n);return await(await br(r,t)).json()}var ue,Ie;function Tr(){if(Ie)return ue;Ie=1,ue=function(o,s,i){var a=document.head||document.getElementsByTagName("head")[0],f=document.createElement("script");typeof s=="function"&&(i=s,s={}),s=s||{},i=i||function(){},f.type=s.type||"text/javascript",f.charset=s.charset||"utf8",f.async="async"in s?!!s.async:!0,f.src=o,s.attrs&&e(f,s.attrs),s.text&&(f.text=""+s.text);var l="onload"in f?t:n;l(f,i),f.onload||t(f,i),a.appendChild(f)};function e(r,o){for(var s in o)r.setAttribute(s,o[s])}function t(r,o){r.onload=function(){this.onerror=this.onload=null,o(null,r)},r.onerror=function(){this.onerror=this.onload=null,o(new Error("Failed to load "+this.src),r)}}function n(r,o){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,o(null,r))}}return ue}var Ar=Tr();const xr=wt(Ar);function Cr(e,t={}){return new Promise((n,r)=>{const{library:o}=t;xr(e,t,(s,i)=>{s?r(s):n(o?window[o]:void 0)})})}const Me={debug:-1,log:0,info:0,warn:1,error:2},_r=function(e,t,n,r){return function(...o){if(t&&Me[t]<=Me[e]&&console[e].apply&&(r==="*"||n.startsWith(r)))return console[e].apply(console,Lr(o,n))}};function Lr(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Pr(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const n=e.split(":");return{targetLevel:n[0],targetBizName:n[1]}}return{targetLevel:e,targetBizName:"*"}}const jr={level:"warn",bizName:"*"};class Rt{constructor(t){_(this,"config");_(this,"options");this.options={...jr,...t};const n=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href)||[])[1];this.config=Pr(r,t)}_log(t){const{targetLevel:n,targetBizName:r}=this.config,{bizName:o}=this.options;return _r(t,n,o,r)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function St(e){return new Rt(e)}const Ur=St({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var kr={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function be(e,t){function n(o,s,i){if(!(typeof document>"u")){i=K({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var f in i)i[f]&&(a+="; "+f,i[f]!==!0&&(a+="="+i[f].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var f=s[a].split("="),l=f.slice(1).join("=");try{var u=decodeURIComponent(f[0]);if(i[u]=e.read(l,u),o===u)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",K({},s,{expires:-1}))},withAttributes:function(o){return be(this.converter,K({},this.attributes,o))},withConverter:function(o){return be(K({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Oe=be(kr,{path:"/"});function Fr(e,t,n){Oe.set(e,t,n)}function Nr(e){return Oe.get(e)}function Dr(e,t){Oe.remove(e,t)}const Br=Object.freeze(Object.defineProperty({__proto__:null,get:Nr,remove:Dr,set:Fr},Symbol.toStringTag,{value:"Module"}));function vr(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.target="_blank",n.click()}function Te(e,t="",n){const r=new Blob([e],{type:n}),o=document.createElement("a");o.download=t,o.style.display="none",o.href=URL.createObjectURL(r),o.click(),URL.revokeObjectURL(o.href)}async function qr(e,t="",n){return fetch(e,{credentials:"include"}).then(async r=>{const o=await r.blob();return Te(o,t,n),o})}function Ir(e,t=""){const n=JSON.stringify(e);Te(n,t,"application/json")}function Mr(){const e=navigator.userAgent;let t="Unknown",n="Unknown",r="Unknown",o="Unknown",s=!1;if(/Windows NT/i.test(e)){t="Windows";const a={"12.0":"12","11.0":"11","10.0":"10","6.3":"8.1","6.2":"8","6.1":"7","6.0":"Vista","5.2":"XP 64-bit","5.1":"XP"},f=e.match(/Windows NT (\d+\.\d+)/);f&&(n=a[f[1]]||f[1])}else if(/Mac OS X/i.test(e)){t="Mac OS";const a=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);a&&(n=a[1].replace(/_/g,"."))}else if(/(iPhone|iPad|iPod)/i.test(e)){t="iOS";const a=e.match(/OS (\d+[_\.]\d+[_\.]?\d*)/);a&&(n=a[1].replace(/_/g,"."))}else if(/Android/i.test(e)){t="Android";const a=e.match(/Android (\d+\.\d+)/);a&&(n=a[1])}else/Linux/i.test(e)&&(t="Linux");const i=e.match(/(Edge|Edg|Edga|EdgA)\/(\d+)/i);if(i)r="Microsoft Edge",o=i[2];else{const a=e.match(/Firefox\/(\d+)/i);if(a)r="Firefox",o=a[1];else{const f=e.match(/(Opera|OPR)\/(\d+)/i);if(f)r="Opera",o=f[2];else{const l=e.match(/Chrome\/(\d+)/i);if(l)r="Chrome",o=l[1];else{const u=e.match(/Version\/(\d+\.\d+)/i);if(u&&/Safari/i.test(e))r="Safari",o=u[1];else{const d=e.match(/(MSIE |Trident.*rv:)(\d+)/i);d&&(r="Internet Explorer",o=d[2])}}}}}return s=/(iPhone|iPod|iPad|Android|Windows Phone|Mobile)/i.test(e)||["iOS","Android"].includes(t),/(iPad|Tablet|Android(?!.*Mobile))/i.test(e)&&(s=!0),{os:t,osVersion:n,browser:r,browserVersion:o,isMobile:s}}exports.LOCAL_REQUEST_ID=ye;exports.Logger=Rt;exports.Request=pt;exports.Storage=yt;exports.VTJ_UTILS_VERSION=At;exports.axios=S;exports.blobToFile=dr;exports.cAF=hr;exports.cookie=Br;exports.createApi=gt;exports.createApis=ar;exports.createRequest=ht;exports.dataURLtoBlob=fr;exports.downloadBlob=Te;exports.downloadJson=Ir;exports.downloadRemoteFile=qr;exports.downloadUrl=vr;exports.fileToBase64=lr;exports.formDataToJson=ur;exports.getClientInfo=Mr;exports.getLogger=St;exports.isClient=B;exports.jsonp=Or;exports.loadScript=Cr;exports.logger=Ur;exports.rAF=pr;exports.request=mt;exports.storage=mr;exports.url=Sr;exports.useApi=cr;Object.keys(O).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>O[e]})});