w-converhp 2.0.12 → 2.0.14
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/README.md +1 -1
- package/dist/w-converhp-client.umd.js +2 -2
- package/dist/w-converhp-client.umd.js.map +1 -1
- package/dist/w-converhp-server.umd.js +2 -2
- package/dist/w-converhp-server.umd.js.map +1 -1
- package/docs/WConverhpClient.html +2 -2
- package/docs/WConverhpClient.mjs.html +5 -7
- package/docs/WConverhpServer.html +2 -2
- package/docs/WConverhpServer.mjs.html +31 -8
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/scla.mjs +2 -0
- package/sclb.mjs +2 -0
- package/sclc.mjs +2 -0
- package/scld.mjs +4 -1
- package/src/WConverhpClient.mjs +4 -6
- package/src/WConverhpServer.mjs +30 -7
- package/srv.mjs +2 -2
- package/test/downloadLargeFile.test.mjs +1 -1
package/README.md
CHANGED
|
@@ -268,7 +268,7 @@ downloadLargeFile()
|
|
|
268
268
|
|
|
269
269
|
[Necessary] Add script for w-converhp-client.
|
|
270
270
|
```alias
|
|
271
|
-
<script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.
|
|
271
|
+
<script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.14/dist/w-converhp-client.umd.js"></script>
|
|
272
272
|
```
|
|
273
273
|
#### Example for w-converhp-client:
|
|
274
274
|
> **Link:** [[dev source code](https://github.com/yuda-lyu/w-converhp/blob/master/web.html)]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* w-converhp-client v2.0.
|
|
2
|
+
* w-converhp-client v2.0.14
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("fs")):"function"==typeof define&&define.amd?define(["fs"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e(t.fs)}(this,(function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}function n(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return function(){return t.apply(e,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,a=(c=Object.create(null),t=>{const e=i.call(t);return c[e]||(c[e]=e.slice(8,-1).toLowerCase())});var c;const u=t=>(t=t.toLowerCase(),e=>a(e)===t),l=t=>e=>typeof e===t,{isArray:f}=Array,p=l("undefined");const d=u("ArrayBuffer");const h=l("string"),y=l("function"),b=l("number"),m=t=>null!==t&&"object"==typeof t,g=t=>{if("object"!==a(t))return!1;const e=s(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},v=u("Date"),w=u("File"),O=u("Blob"),j=u("FileList"),S=u("URLSearchParams"),[_,A,E,x]=["ReadableStream","Request","Response","Headers"].map(u);function R(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),f(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let s;for(r=0;r<i;r++)s=n[r],e.call(null,t[s],s,t)}}function T(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,D=t=>!p(t)&&t!==P;const C=(U="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>U&&t instanceof U);var U;const N=u("HTMLFormElement"),$=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),k=u("RegExp"),B=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};R(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)};const M=u("AsyncFunction"),F=(L="function"==typeof setImmediate,z=y(P.postMessage),L?setImmediate:z?(I=`axios@${Math.random()}`,q=[],P.addEventListener("message",(t=>{let{source:e,data:r}=t;e===P&&r===I&&q.length&&q.shift()()}),!1),t=>{q.push(t),P.postMessage(I,"*")}):t=>setTimeout(t));var L,z,I,q;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||F;var W={isArray:f,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!p(t)&&null!==t.constructor&&!p(t.constructor)&&y(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||y(t.append)&&("formdata"===(e=a(t))||"object"===e&&y(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:h,isNumber:b,isBoolean:t=>!0===t||!1===t,isObject:m,isPlainObject:g,isReadableStream:_,isRequest:A,isResponse:E,isHeaders:x,isUndefined:p,isDate:v,isFile:w,isBlob:O,isRegExp:k,isFunction:y,isStream:t=>m(t)&&y(t.pipe),isURLSearchParams:S,isTypedArray:C,isFileList:j,forEach:R,merge:function t(){const{caseless:e}=D(this)&&this||{},r={},n=(n,o)=>{const i=e&&T(r,o)||o;g(r[i])&&g(n)?r[i]=t(r[i],n):g(n)?r[i]=t({},n):f(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&R(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return R(e,((e,n)=>{r&&y(e)?t[n]=o(e,r):t[n]=e}),{allOwnKeys:n}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&s(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:u,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(f(t))return t;let e=t.length;if(!b(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:N,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:B,freezeMethods:t=>{B(t,((e,r)=>{if(y(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];y(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return f(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:T,global:P,isContextDefined:D,isSpecCompliantForm:function(t){return!!(t&&y(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(m(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=f(t)?[]:{};return R(t,((t,e)=>{const i=r(t,n+1);!p(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:M,isThenable:t=>t&&(m(t)||y(t))&&y(t.then)&&y(t.catch),setImmediate:F,asap:H};function J(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(J,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:W.toJSONObject(this.config),code:this.code,status:this.status}}});const V=J.prototype,Y={};["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((t=>{Y[t]={value:t}})),Object.defineProperties(J,Y),Object.defineProperty(V,"isAxiosError",{value:!0}),J.from=(t,e,r,n,o,i)=>{const s=Object.create(V);return W.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),J.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};function K(t){return W.isPlainObject(t)||W.isArray(t)}function X(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function G(t,e,r){return t?t.concat(e).map((function(t,e){return t=X(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const Z=W.toFlatObject(W,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Q(t,e,r){if(!W.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!W.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(W.isDate(t))return t.toISOString();if(!a&&W.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(t)||W.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,o){let a=t;if(t&&!o&&"object"==typeof t)if(W.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(W.isArray(t)&&function(t){return W.isArray(t)&&!t.some(K)}(t)||(W.isFileList(t)||W.endsWith(r,"[]"))&&(a=W.toArray(t)))return r=X(r),a.forEach((function(t,n){!W.isUndefined(t)&&null!==t&&e.append(!0===s?G([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!K(t)||(e.append(G(o,r,i),c(t)),!1)}const l=[],f=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:K});if(!W.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!W.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),W.forEach(r,(function(r,i){!0===(!(W.isUndefined(r)||null===r)&&o.call(e,r,W.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function tt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function et(t,e){this._pairs=[],t&&Q(t,this,e)}const rt=et.prototype;function nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ot(t,e,r){if(!e)return t;const n=r&&r.encode||nt;W.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):W.isURLSearchParams(e)?e.toString():new et(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}rt.append=function(t,e){this._pairs.push([t,e])},rt.toString=function(t){const e=t?function(e){return t.call(this,e,tt)}:tt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var it=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,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){W.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},at={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:et,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ct="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,lt=ct&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pt=ct&&window.location.href||"http://localhost";function dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ht(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var yt=ht(ht({},Object.freeze({__proto__:null,hasBrowserEnv:ct,hasStandardBrowserEnv:lt,hasStandardBrowserWebWorkerEnv:ft,navigator:ut,origin:pt})),at);function bt(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&W.isArray(n)?n.length:i,a)return W.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&W.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&W.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!s}if(W.isFormData(t)&&W.isFunction(t.entries)){const r={};return W.forEachEntry(t,((t,n)=>{e(function(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const mt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=W.isObject(t);o&&W.isHTMLForm(t)&&(t=new FormData(t));if(W.isFormData(t))return n?JSON.stringify(bt(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Q(t,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return yt.isNode&&W.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Q(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(W.isString(t))try{return(e||JSON.parse)(t),W.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||mt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(t=>{mt.headers[t]={}}));var gt=mt;const vt=W.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"]);const wt=Symbol("internals");function Ot(t){return t&&String(t).trim().toLowerCase()}function jt(t){return!1===t||null==t?t:W.isArray(t)?t.map(jt):String(t)}function St(t,e,r,n,o){return W.isFunction(n)?n.call(this,e,r):(o&&(e=r),W.isString(e)?W.isString(n)?-1!==e.indexOf(n):W.isRegExp(n)?n.test(e):void 0:void 0)}class _t{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Ot(e);if(!o)throw new Error("header name must be a non-empty string");const i=W.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=jt(t))}const i=(t,e)=>W.forEach(t,((t,r)=>o(t,r,e)));if(W.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(W.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&vt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(W.isHeaders(t))for(const[e,n]of t.entries())o(n,e,r);else null!=t&&o(e,t,r);return this}get(t,e){if(t=Ot(t)){const r=W.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(W.isFunction(e))return e.call(this,t,r);if(W.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ot(t)){const r=W.findKey(this,t);return!(!r||void 0===this[r]||e&&!St(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Ot(t)){const o=W.findKey(r,t);!o||e&&!St(0,r[o],o,e)||(delete r[o],n=!0)}}return W.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!St(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return W.forEach(this,((n,o)=>{const i=W.findKey(r,o);if(i)return e[i]=jt(n),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete e[o],e[s]=jt(n),r[s]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return W.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&W.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((t=>e.set(t))),e}static accessor(t){const e=(this[wt]=this[wt]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Ot(t);e[n]||(!function(t,e){const r=W.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return W.isArray(t)?t.forEach(n):n(t),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(_t.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),W.freezeMethods(_t);var At=_t;function Et(t,e){const r=this||gt,n=e||r,o=At.from(n.headers);let i=n.data;return W.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function xt(t){return!(!t||!t.__CANCEL__)}function Rt(t,e,r){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,r),this.name="CanceledError"}function Tt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}W.inherits(Rt,J,{__CANCEL__:!0});const Pt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(t,e){let r,n,o=0,i=1e3/e;const s=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[function(){const t=Date.now(),e=t-o;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];e>=i?s(c,t):(r=c,n||(n=setTimeout((()=>{n=null,s(r)}),i-e)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;t({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[e?"download":"upload"]:!0})}),r)},Dt=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Ct=t=>function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return W.asap((()=>t(...r)))};var Ut=yt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,yt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Nt=yt.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];W.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),W.isString(n)&&s.push("path="+n),W.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $t(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}function kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Bt=t=>t instanceof At?function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t):t;function Mt(t,e){e=e||{};const r={};function n(t,e,r,n){return W.isPlainObject(t)&&W.isPlainObject(e)?W.merge.call({caseless:n},t,e):W.isPlainObject(e)?W.merge({},e):W.isArray(e)?e.slice():e}function o(t,e,r,o){return W.isUndefined(e)?W.isUndefined(t)?void 0:n(void 0,t,0,o):n(t,e,0,o)}function i(t,e){if(!W.isUndefined(e))return n(void 0,e)}function s(t,e){return W.isUndefined(e)?W.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,r)=>o(Bt(t),Bt(e),0,!0)};return W.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);W.isUndefined(s)&&i!==a||(r[n]=s)})),r}var Ft=t=>{const e=Mt({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=At.from(a),e.url=ot($t(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),W.isFormData(n))if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(yt.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(e)),o||!1!==o&&Ut(e.url))){const t=i&&s&&Nt.read(s);t&&a.set(i,t)}return e};var Lt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=Ft(t);let o=n.data;const i=At.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function b(){if(!y)return;const n=At.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Tt((function(t){e(t),h()}),(function(t){r(t),h()}),{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:t,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(r(new J("Request aborted",J.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||st;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new J(e,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&W.forEach(i.toJSON(),(function(t,e){y.setRequestHeader(e,t)})),W.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),d&&([c,l]=Pt(d,!0),y.addEventListener("progress",c)),p&&y.upload&&([a,u]=Pt(p),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=e=>{y&&(r(!e||e.type?new Rt(null,t,y):e),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);m&&-1===yt.protocols.indexOf(m)?r(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,t)):y.send(o||null)}))};var zt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof J?e:new Rt(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))}),e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>W.asap(s),a}};const It=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,o=0;for(;o<r;)n=o+e,yield t.slice(o,n),o=n},qt=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Ht=(t,e,r,n)=>{const o=async function*(t,e){for await(const r of qt(t))yield*It(r,e)}(t,e);let i,s=0,a=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return a(),void t.close();let i=n.byteLength;if(r){let t=s+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),o.return())},{highWaterMark:2})};function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const Vt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Yt=Vt&&"function"==typeof ReadableStream,Kt=Vt&&("function"==typeof TextEncoder?(Xt=new TextEncoder,t=>Xt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Xt;const Gt=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return!!t(...r)}catch(t){return!1}},Zt=Yt&&Gt((()=>{let t=!1;const e=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Qt=Yt&&Gt((()=>W.isReadableStream(new Response("").body))),te={stream:Qt&&(t=>t.body)};var ee;Vt&&(ee=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!te[t]&&(te[t]=W.isFunction(ee[t])?e=>e[t]():(e,r)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,r)})})));const re=async(t,e)=>{const r=W.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(W.isBlob(t))return t.size;if(W.isSpecCompliantForm(t)){const e=new Request(yt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return W.isArrayBufferView(t)||W.isArrayBuffer(t)?t.byteLength:(W.isURLSearchParams(t)&&(t+=""),W.isString(t)?(await Kt(t)).byteLength:void 0)})(e):r};const ne={http:null,xhr:Lt,fetch:Vt&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=Ft(t);u=u?(u+"").toLowerCase():"text";let d,h=zt([o,i&&i.toAbortSignal()],s);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Zt&&"get"!==r&&"head"!==r&&0!==(b=await re(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(W.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Dt(b,Pt(Ct(c)));n=Ht(r.body,65536,t,e)}}W.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(e,Jt(Jt({},p),{},{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0}));let i=await fetch(d);const s=Qt&&("stream"===u||"response"===u);if(Qt&&(a||s&&y)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=W.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Dt(e,Pt(Ct(a),!0))||[];i=new Response(Ht(i.body,65536,r,(()=>{n&&n(),y&&y()})),t)}u=u||"text";let m=await te[W.findKey(te,u)||"text"](i,t);return!s&&y&&y(),await new Promise(((e,r)=>{Tt(e,r,{data:m,headers:At.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:d})}))}catch(e){if(y&&y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,d),{cause:e.cause||e});throw J.from(e,e&&e.code,t,d)}})};W.forEach(ne,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const oe=t=>`- ${t}`,ie=t=>W.isFunction(t)||null===t||!1===t;var se={getAdapter:t=>{t=W.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!ie(r)&&(n=ne[(e=String(r)).toLowerCase()],void 0===n))throw new J(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((t=>{let[e,r]=t;return`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new J("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(oe).join("\n"):" "+oe(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:ne};function ae(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rt(null,t)}function ce(t){ae(t),t.headers=At.from(t.headers),t.data=Et.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return se.getAdapter(t.adapter||gt.adapter)(t).then((function(e){return ae(t),e.data=Et.call(t,t.transformResponse,e),e.headers=At.from(e.headers),e}),(function(e){return xt(e)||(ae(t),e&&e.response&&(e.response.data=Et.call(t,t.transformResponse,e.response),e.response.headers=At.from(e.response.headers))),Promise.reject(e)}))}const ue="1.8.4",le={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{le[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const fe={};le.transitional=function(t,e,r){function n(t,e){return"[Axios v1.8.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new J(n(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!fe[o]&&(fe[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},le.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var pe={assertOptions:function(t,e,r){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new J("option "+i+" must be "+r,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:le};const de=pe.validators;class he{constructor(t){this.defaults=t,this.interceptors={request:new it,response:new it}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Mt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&pe.assertOptions(r,{silentJSONParsing:de.transitional(de.boolean),forcedJSONParsing:de.transitional(de.boolean),clarifyTimeoutError:de.transitional(de.boolean)},!1),null!=n&&(W.isFunction(n)?e.paramsSerializer={serialize:n}:pe.assertOptions(n,{encode:de.function,serialize:de.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),pe.assertOptions(e,{baseUrl:de.spelling("baseURL"),withXsrfToken:de.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&W.merge(o.common,o[e.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=At.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ce.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);f<l;)u=u.then(t[f++],t[f++]);return u}l=s.length;let p=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=ce.call(this,p)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(t){return ot($t((t=Mt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(t){he.prototype[t]=function(e,r){return this.request(Mt(r||{},{method:t,url:e,data:(r||{}).data}))}})),W.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Mt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}he.prototype[t]=e(),he.prototype[t+"Form"]=e(!0)}));var ye=he;class be{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Rt(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new be((function(e){t=e})),cancel:t}}}var me=be;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((t=>{let[e,r]=t;ge[r]=e}));var ve=ge;const we=function t(e){const r=new ye(e),n=o(ye.prototype.request,r);return W.extend(n,ye.prototype,r,{allOwnKeys:!0}),W.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Mt(e,r))},n}(gt);we.Axios=ye,we.CanceledError=Rt,we.CancelToken=me,we.isCancel=xt,we.VERSION=ue,we.toFormData=Q,we.AxiosError=J,we.Cancel=we.CanceledError,we.all=function(t){return Promise.all(t)},we.spread=function(t){return function(e){return t.apply(null,e)}},we.isAxiosError=function(t){return W.isObject(t)&&!0===t.isAxiosError},we.mergeConfig=Mt,we.AxiosHeaders=At,we.formToJSON=t=>bt(W.isHTMLForm(t)?new FormData(t):t),we.getAdapter=se.getAdapter,we.HttpStatusCode=ve,we.default=we;var Oe=we,je=Array.isArray,Se="object"==typeof global&&global&&global.Object===Object&&global,_e="object"==typeof self&&self&&self.Object===Object&&self,Ae=Se||_e||Function("return this")(),Ee=Ae.Symbol,xe=Object.prototype,Re=xe.hasOwnProperty,Te=xe.toString,Pe=Ee?Ee.toStringTag:void 0;var De=Object.prototype.toString;var Ce="[object Null]",Ue="[object Undefined]",Ne=Ee?Ee.toStringTag:void 0;function $e(t){return null==t?void 0===t?Ue:Ce:Ne&&Ne in Object(t)?function(t){var e=Re.call(t,Pe),r=t[Pe];try{t[Pe]=void 0;var n=!0}catch(t){}var o=Te.call(t);return n&&(e?t[Pe]=r:delete t[Pe]),o}(t):function(t){return De.call(t)}(t)}function ke(t){return null!=t&&"object"==typeof t}var Be="[object Symbol]";function Me(t){return"symbol"==typeof t||ke(t)&&$e(t)==Be}var Fe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/;function ze(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ie="[object AsyncFunction]",qe="[object Function]",He="[object GeneratorFunction]",We="[object Proxy]";function Je(t){if(!ze(t))return!1;var e=$e(t);return e==qe||e==He||e==Ie||e==We}var Ve,Ye=Ae["__core-js_shared__"],Ke=(Ve=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||""))?"Symbol(src)_1."+Ve:"";var Xe=Function.prototype.toString;var Ge=/^\[object .+?Constructor\]$/,Ze=Function.prototype,Qe=Object.prototype,tr=Ze.toString,er=Qe.hasOwnProperty,rr=RegExp("^"+tr.call(er).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nr(t){return!(!ze(t)||(e=t,Ke&&Ke in e))&&(Je(t)?rr:Ge).test(function(t){if(null!=t){try{return Xe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function or(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return nr(r)?r:void 0}var ir=or(Object,"create");var sr=Object.prototype.hasOwnProperty;var ar=Object.prototype.hasOwnProperty;function cr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ur(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}cr.prototype.clear=function(){this.__data__=ir?ir(null):{},this.size=0},cr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},cr.prototype.get=function(t){var e=this.__data__;if(ir){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return sr.call(e,t)?e[t]:void 0},cr.prototype.has=function(t){var e=this.__data__;return ir?void 0!==e[t]:ar.call(e,t)},cr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ir&&void 0===e?"__lodash_hash_undefined__":e,this};var lr=Array.prototype.splice;function fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}fr.prototype.clear=function(){this.__data__=[],this.size=0},fr.prototype.delete=function(t){var e=this.__data__,r=ur(e,t);return!(r<0)&&(r==e.length-1?e.pop():lr.call(e,r,1),--this.size,!0)},fr.prototype.get=function(t){var e=this.__data__,r=ur(e,t);return r<0?void 0:e[r][1]},fr.prototype.has=function(t){return ur(this.__data__,t)>-1},fr.prototype.set=function(t,e){var r=this.__data__,n=ur(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var pr=or(Ae,"Map");function dr(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}hr.prototype.clear=function(){this.size=0,this.__data__={hash:new cr,map:new(pr||fr),string:new cr}},hr.prototype.delete=function(t){var e=dr(this,t).delete(t);return this.size-=e?1:0,e},hr.prototype.get=function(t){return dr(this,t).get(t)},hr.prototype.has=function(t){return dr(this,t).has(t)},hr.prototype.set=function(t,e){var r=dr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var yr="Expected a function";function br(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(yr);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(br.Cache||hr),r}br.Cache=hr;var mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gr=/\\(\\)?/g,vr=function(t){var e=br(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(mr,(function(t,r,n,o){e.push(n?o.replace(gr,"$1"):r||t)})),e})),wr=vr;var Or=1/0,jr=Ee?Ee.prototype:void 0,Sr=jr?jr.toString:void 0;function _r(t){if("string"==typeof t)return t;if(je(t))return function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,_r)+"";if(Me(t))return Sr?Sr.call(t):"";var e=t+"";return"0"==e&&1/t==-Or?"-0":e}function Ar(t){return null==t?"":_r(t)}function Er(t,e){return je(t)?t:function(t,e){if(je(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Me(t))||Le.test(t)||!Fe.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:wr(Ar(t))}var xr=1/0;function Rr(t){if("string"==typeof t||Me(t))return t;var e=t+"";return"0"==e&&1/t==-xr?"-0":e}function Tr(t,e,r){var n=null==t?void 0:function(t,e){for(var r=0,n=(e=Er(e,t)).length;null!=t&&r<n;)t=t[Rr(e[r++])];return r&&r==n?t:void 0}(t,e);return void 0===n?r:n}function Pr(){return"undefined"!=typeof window&&void 0!==window.document}function Dr(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}var Cr=/\s/;var Ur=/^\s+/;function Nr(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Cr.test(t.charAt(e)););return e}(t)+1).replace(Ur,""):t}var $r=NaN,kr=/^[-+]0x[0-9a-f]+$/i,Br=/^0b[01]+$/i,Mr=/^0o[0-7]+$/i,Fr=parseInt;function Lr(t){if("number"==typeof t)return t;if(Me(t))return $r;if(ze(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ze(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Nr(t);var r=Br.test(t);return r||Mr.test(t)?Fr(t.slice(2),r?2:8):kr.test(t)?$r:+t}var zr=1/0,Ir=17976931348623157e292;function qr(t){return t?(t=Lr(t))===zr||t===-zr?(t<0?-1:1)*Ir:t==t?t:0:0===t?t:0}function Hr(t){var e=qr(t),r=e%1;return e==e?r?e-r:e:0}function Wr(t){return"[object String]"===Object.prototype.toString.call(t)}function Jr(t){return!(!Wr(t)||""===t)}function Vr(t){return t!=t}function Yr(t){let e=!1;if(Jr(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(Vr(t))return!1;e=!0}return e}function Kr(t){if(!Yr(t))return 0;return qr(t)}function Xr(t){return!!Yr(t)&&(t=Kr(t),"number"==typeof(e=t)&&e==Hr(e));var e}var Gr=Ae.isFinite,Zr=Math.min;var Qr,tn=(Qr=Math["round"],function(t,e){if(t=Lr(t),(e=null==e?0:Zr(Hr(e),292))&&Gr(t)){var r=(Ar(t)+"e").split("e");return+((r=(Ar(Qr(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return Qr(t)});function en(t){if(!Yr(t))return 0;t=Kr(t);let e=tn(t);return"0"===String(e)?0:e}function rn(t){if(!Xr(t))return!1;return en(t)>0}let nn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),on=nn.length;function sn(t){return"[object Object]"===Object.prototype.toString.call(t)}function an(t,e){return!!sn(t)&&(!(!Jr(e)&&!Yr(e))&&e in t)}function cn(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function un(t){if(!Xr(t))return!1;return en(t)>=0}function ln(t){if(sn(t)){for(let e in t)return!0;return!1}return!1}function fn(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}var pn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},dn={};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,s){var a=r?r+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,o),!0;case 5:return l.fn.call(l.context,e,n,o,i),!0;case 6:return l.fn.call(l.context,e,n,o,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==e||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a}({get exports(){return dn},set exports(t){dn=t}});var hn=dn;function yn(t){if(!Pr())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=Dr(),r=new FileReader;return r.onload=function(){let t=r.result;e.resolve(t)},r.onerror=function(t){e.reject(t)},r.readAsArrayBuffer(t),e}(t)}}function bn(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var mn,gn=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var a=i[mn?s:++n];if(!1===e(o[a],a,o))break}return t};function vn(t){return ke(t)&&"[object Arguments]"==$e(t)}var wn=Object.prototype,On=wn.hasOwnProperty,jn=wn.propertyIsEnumerable,Sn=vn(function(){return arguments}())?vn:function(t){return ke(t)&&On.call(t,"callee")&&!jn.call(t,"callee")},_n=Sn;var An="object"==typeof exports&&exports&&!exports.nodeType&&exports,En=An&&"object"==typeof module&&module&&!module.nodeType&&module,xn=En&&En.exports===An?Ae.Buffer:void 0,Rn=(xn?xn.isBuffer:void 0)||function(){return!1},Tn=9007199254740991,Pn=/^(?:0|[1-9]\d*)$/;function Dn(t,e){var r=typeof t;return!!(e=null==e?Tn:e)&&("number"==r||"symbol"!=r&&Pn.test(t))&&t>-1&&t%1==0&&t<e}var Cn=9007199254740991;function Un(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Cn}var Nn={};Nn["[object Float32Array]"]=Nn["[object Float64Array]"]=Nn["[object Int8Array]"]=Nn["[object Int16Array]"]=Nn["[object Int32Array]"]=Nn["[object Uint8Array]"]=Nn["[object Uint8ClampedArray]"]=Nn["[object Uint16Array]"]=Nn["[object Uint32Array]"]=!0,Nn["[object Arguments]"]=Nn["[object Array]"]=Nn["[object ArrayBuffer]"]=Nn["[object Boolean]"]=Nn["[object DataView]"]=Nn["[object Date]"]=Nn["[object Error]"]=Nn["[object Function]"]=Nn["[object Map]"]=Nn["[object Number]"]=Nn["[object Object]"]=Nn["[object RegExp]"]=Nn["[object Set]"]=Nn["[object String]"]=Nn["[object WeakMap]"]=!1;var $n="object"==typeof exports&&exports&&!exports.nodeType&&exports,kn=$n&&"object"==typeof module&&module&&!module.nodeType&&module,Bn=kn&&kn.exports===$n&&Se.process,Mn=function(){try{var t=kn&&kn.require&&kn.require("util").types;return t||Bn&&Bn.binding&&Bn.binding("util")}catch(t){}}(),Fn=Mn&&Mn.isTypedArray,Ln=Fn?function(t){return function(e){return t(e)}}(Fn):function(t){return ke(t)&&Un(t.length)&&!!Nn[$e(t)]},zn=Ln,In=Object.prototype.hasOwnProperty;function qn(t,e){var r=je(t),n=!r&&_n(t),o=!r&&!n&&Rn(t),i=!r&&!n&&!o&&zn(t),s=r||n||o||i,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!In.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Dn(u,c))||a.push(u);return a}var Hn=Object.prototype;function Wn(t,e){return function(r){return t(e(r))}}var Jn=Wn(Object.keys,Object),Vn=Object.prototype.hasOwnProperty;function Yn(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Hn))return Jn(t);var e,r,n=[];for(var o in Object(t))Vn.call(t,o)&&"constructor"!=o&&n.push(o);return n}function Kn(t){return null!=t&&Un(t.length)&&!Je(t)}function Xn(t){return Kn(t)?qn(t):Yn(t)}var Gn=function(t,e){return function(r,n){if(null==r)return r;if(!Kn(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(t,e){return t&&gn(t,e,Xn)})),Zn=Gn;function Qn(t){return t}function to(t,e){var r;return(je(t)?bn:Zn)(t,"function"==typeof(r=e)?r:Qn)}function eo(t){return"[object Array]"===Object.prototype.toString.call(t)}function ro(t){if(sn(t)){for(let e in t)return!1;return!0}return!1}function no(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!ro(t)||(!!function(t){return!(!Wr(t)||""!==t)}(t)||(!!function(t){return!!eo(t)&&0===t.length}(t)||!!Vr(t)))))}function oo(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function io(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function so(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function ao(t){if(!(oo(t)||(e=t,"[object Blob]"===Object.prototype.toString.call(e))||io(t)||so(t)))return null;var e;try{if(t.byteLength)return t.byteLength}catch(t){}try{if(t.length)return t.length}catch(t){}try{if(t.size)return t.size}catch(t){}return null}var co=Wn(Object.getPrototypeOf,Object),uo="[object Object]",lo=Function.prototype,fo=Object.prototype,po=lo.toString,ho=fo.hasOwnProperty,yo=po.call(Object);var bo="[object DOMException]",mo="[object Error]";function go(t){if(!ke(t))return!1;var e=$e(t);return e==mo||e==bo||"string"==typeof t.message&&"string"==typeof t.name&&!function(t){if(!ke(t)||$e(t)!=uo)return!1;var e=co(t);if(null===e)return!0;var r=ho.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&po.call(r)==yo}(t)}var vo={};var wo,Oo={},jo={get exports(){return Oo},set exports(t){Oo=t}};function So(){return wo||(wo=1,function(t,e){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==pn&&pn.crypto&&(r=pn.crypto),!r)try{r=require("crypto")}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),u=i.enc={},l=u.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*u,i);if(u){for(var f=0;f<u;f+=s)this._doProcessBlock(o,f);r=o.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new h.HMAC.init(t,r).finalize(e)}}});var h=i.algo={};return i}(Math),r)}(jo)),Oo}!function(t,e){t.exports=So().enc.Utf8}({get exports(){return vo},set exports(t){vo=t}});var _o=vo,Ao={};!function(t,e){var r;t.exports=(r=So(),function(){var t=r,e=t.lib.WordArray;function n(t,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return e.create(o,i)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t){var e=t.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return Ao},set exports(t){Ao=t}});var Eo=Ao;function xo(t){if(!Jr(t))return new Uint8Array;let e;try{e=function(t){if(!Wr(t))return new Uint8Array;let e=Eo.parse(t),r=e.words,n=e.sigBytes,o=new Uint8Array(n);for(let t=0;t<n;t++){let e=r[t>>>2]>>>24-t%4*8&255;o[t]=e}return o}(function(t){if(!Jr(t))return"";let e=_o.parse(t);return Eo.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var Ro="[object Boolean]";function To(t){return!0===(e=t)||!1===e||ke(e)&&$e(e)==Ro;var e}function Po(t,e){return function(t,e,r,n,o,i){if(!Yr(t))return null;if(!io(e))return null;if(!Xr(r))return null;if(!To(n))return null;if(!Xr(o))return null;if(!Xr(i))return null;let s,a,c;t=Kr(t);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?i-1:0,h=n?-1:1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+d]=255&a,d+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+d]=255&s,d+=h,s/=256,u-=8);return e[r+d-h]|=128*y,null}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function Do(t){let e=[],r=[];if((!eo(n=t)||0===n.length||1===n.length&&no(n[0]))&&!ln(t))return null;var n;let o=[],i=[];function s(t){o.push(ao(t)),i.push(t)}try{let n=function(t){if(!sn(t))return{results:"",binarys:[]};if(ro(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(io(e)){n+=1;let t=`[Uint8Array]::${n}`;return r.push(e),t}if(so(e)){n+=1;let t=`[Uint16Array]::${n}`;return r.push(e),t}if(oo(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return go(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);s(xo(n.results)),to(n.binarys,(t=>{s(t)}));let a=o,c=xo(JSON.stringify(a)),u=new Uint8Array(8);Po(ao(c),u),e.push(u),e.push(c),to(i,(t=>{e.push(t)})),to(e,(t=>{r=function(t,e){let r=ao(t),n=ao(e),o=new Uint8Array(r+n);return o.set(new Uint8Array(t),0),o.set(new Uint8Array(e),r),o}(r,t)}))}catch(t){return null}return r}function Co(t){return function(t,e,r,n,o){if(!io(t))return null;if(!Xr(e))return null;if(!To(r))return null;if(!Xr(n))return null;if(!Xr(o))return null;let i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?0:o-1,p=r?1:-1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),i-=u}return(d?-1:1)*s*Math.pow(2,i-n)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}var Uo={};!function(t,e){var r;t.exports=(r=So(),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;e.call(this,n,r)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)}({get exports(){return Uo},set exports(t){Uo=t}});var No=Uo;function $o(t){if(!io(t))return"";let e;try{r=function(t){return io(t)?No.create(t).toString(Eo):""}(t),e=Jr(r)?Eo.parse(r).toString(_o):""}catch(t){return""}var r;return e}function ko(t){let e=null;if(!io(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,ao(t)),i=Co(n),s=o.slice(0,i),a=o.slice(i,ao(o)),c=$o(s),u=function(t,e){let r=0,n=0,o=[];return to(e,(e=>{n=r+e;let i=t.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));e=function(t){if(!ln(t))return{};let{results:e,binarys:r}=t;if(!Jr(e))return{};if(!eo(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(Jr(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=en(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=en(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=en(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:$o(u.shift()),binarys:u})}catch(t){}return e}var Bo={};!function(t,e){t.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},m=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,u),i=r-o<0,s=e.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:a,D:p,h:s,m:i,s:o,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",w={};w[v]=b;var O="$isDayjsObject",j=function(t){return t instanceof E||!(!t||!t[O])},S=function t(e,r,n){var o;if(!e)return v;if("string"==typeof e){var i=e.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,o=a}return!n&&o&&(v=o),o||!n&&v},_=function(t,e){if(j(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new E(r)},A=g;A.l=S,A.i=j,A.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function b(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[O]=!0}var m=b.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(h);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return A},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return _(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<_(t)},m.$g=function(t,e,r){return A.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,n=!!A.u(e)||e,l=A.p(t),d=function(t,e){var o=A.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?o:o.endOf(a)},h=function(t,e){return A.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,b=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case f:return n?d(1,0):d(31,11);case u:return n?d(1,b):d(0,b+1);case c:var v=this.$locale().weekStart||0,w=(y<v?y+7:y)-v;return d(n?m-w:m+(6-w),b);case a:case p:return h(g+"Hours",0);case s:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case o:return h(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,c=A.p(t),l="set"+(this.$u?"UTC":""),d=(r={},r[a]=l+"Date",r[p]=l+"Date",r[u]=l+"Month",r[f]=l+"FullYear",r[s]=l+"Hours",r[i]=l+"Minutes",r[o]=l+"Seconds",r[n]=l+"Milliseconds",r)[c],h=c===a?this.$D+(e-this.$W):e;if(c===u||c===f){var y=this.clone().set(p,1);y.$d[d](h),y.init(),this.$d=y.set(p,Math.min(this.$D,y.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[A.p(t)]()},m.add=function(n,l){var p,d=this;n=Number(n);var h=A.p(l),y=function(t){var e=_(d);return A.w(e.date(e.date()+Math.round(t*n)),d)};if(h===u)return this.set(u,this.$M+n);if(h===f)return this.set(f,this.$y+n);if(h===a)return y(1);if(h===c)return y(7);var b=(p={},p[i]=e,p[s]=r,p[o]=t,p)[h]||1,m=this.$d.getTime()+n*b;return A.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=A.z(this),i=this.$H,s=this.$m,a=this.$M,c=r.weekdays,u=r.months,l=r.meridiem,f=function(t,r,o,i){return t&&(t[r]||t(e,n))||o[r].slice(0,i)},p=function(t){return A.s(i%12||12,t,"0")},h=l||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return a+1;case"MM":return A.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,u,3);case"MMMM":return f(u,a);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(i);case"HH":return A.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,s,!0);case"A":return h(i,s,!1);case"m":return String(s);case"mm":return A.s(s,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,p,d){var h,y=this,b=A.p(p),m=_(n),g=(m.utcOffset()-this.utcOffset())*e,v=this-m,w=function(){return A.m(y,m)};switch(b){case f:h=w()/12;break;case u:h=w();break;case l:h=w()/3;break;case c:h=(v-g)/6048e5;break;case a:h=(v-g)/864e5;break;case s:h=v/r;break;case i:h=v/e;break;case o:h=v/t;break;default:h=v}return d?h:A.a(h)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return w[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},m.clone=function(){return A.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},b}(),x=E.prototype;return _.prototype=x,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),_.extend=function(t,e){return t.$i||(t(e,E,_),t.$i=!0),_},_.locale=S,_.isDayjs=j,_.unix=function(t){return _(1e3*t)},_.en=w[v],_.Ls=w,_.p={},_}()}({get exports(){return Bo},set exports(t){Bo=t}});var Mo=Bo;function Fo(e){return!!t.existsSync(e)&&(!t.lstatSync(e).isFile()&&!t.lstatSync(e).isSymbolicLink())}function Lo(e){if(Fo(e))return{success:"input folder is already exists: "+e};if(t.existsSync(e))return{error:"input path already exists: "+e};try{t.mkdirSync(e,{recursive:!0})}catch(t){return{error:t}}return{success:"done: "+e}}function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Io(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}return function(t){let e=Tr(t,"url");Jr(e)||(e="http://localhost:8080");let r=Tr(t,"apiName");Jr(r)||(r="api");let n="";n="/"===function(t,e){if(!Jr(t))return"";if(!un(e))return"";if(0===(e=en(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}(e,1)?e+r:e+"/"+r;let o=Tr(t,"getToken",null);cn(o)||(o=()=>"");let i=Tr(t,"tokenType");Jr(i)||(i="Bearer");let s=Tr(t,"sizeSlice");rn(s)||(s=1048576);let a=Tr(t,"retry");un(a)||(a=3);let c=Pr()?"browser":"nodejs",u=new hn,l=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];setTimeout((()=>{u.emit(t,...r)}),1)};async function f(t){let e;return e="browser"===c?await function(t){let e=Dr();return yn(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(t):new Uint8Array(t),e}async function p(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Tr(r,"headers");sn(s)||(s={});let a=Tr(r,"dataType","");"blob"!==a&&"fmd"!==a&&"json"!==a&&(a="blob");let u=Tr(r,"cbProgress");cn(u)||(u=()=>{});let p="";if("basic"===t)p=n;else if("slice"===t)p=`${n}slc`;else if("slicemerge"===t)p=`${n}slcm`;else{if("download"!==t)throw new Error(`invalid type[${t}]`);p=`${n}dw`}let d=Dr(),h=null,y={};if("blob"===a)y={"Content-Type":"application/octet-stream"},h=e;else if("fmd"===a){let t;if("browser"===c)t=new FormData;else{if(!cn(r.FormData))throw l("error","invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");t=new r.FormData({maxDataSize:1099511627776})}t.append("bb",e),"nodejs"===c&&(y={"Content-Type":`multipart/form-data; boundary=${t.getBoundary()}`}),h=t}else"json"===a&&(y={"Content-Type":"application/json"},h=JSON.stringify(e));let b="blob";"nodejs"===c&&(b="arraybuffer","download"===t&&(b="stream"));let m=o();fn(m)&&(m=await m);let g={method:"POST",url:p,data:h,headers:Io(Io({Authorization:`${i} ${m}`},y),s),timeout:36e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:b,onUploadProgress:function(t){let e=0,r=t.loaded,n=t.total;rn(n)&&(e=100*r/n),u({prog:Math.floor(e),p:r,m:"upload"})},onDownloadProgress:function(t){let e=0,r=t.loaded,n=t.total;rn(n)&&(e=100*r/n),u({prog:Math.floor(e),p:r,m:"download"})}},v=async t=>{let e=Dr(),n=Tr(t,"headers['return-type']",""),o=Tr(t,"headers['return-msg']","");if("error"===n)return e.reject(o),e;let i=(t=>{let e="unknow";try{let r=/filename="(.+?)"/.exec(t);e=r?r[1]:"unknown"}catch(t){}return e})(Tr(t,"headers['content-disposition']","")),s=Tr(t,"data");if("browser"===c)try{let t=URL.createObjectURL(s),r=document.createElement("a");r.href=t,r.download=i,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(t),e.resolve(i)}catch(t){console.log(t),e.reject(t)}else try{let t=await import("path"),n=await import("fs"),o=Tr(r,"fdDownload","");Fo(o)||Lo(o);let a=t.resolve(o,i),c=n.createWriteStream(a);s.pipe(c),c.on("finish",(()=>{e.resolve(a)})),c.on("error",(t=>{e.reject(t)}))}catch(t){e.reject(t)}return e};return Oe(g).then((async e=>{if("download"===t)return void await v(e).then((t=>{d.resolve(t)})).catch((t=>{d.reject(t)}));let r=Tr(e,"data"),n=ko(await f(r));if(!ln(n))return l("error","data is not an effective object"),void d.reject("data is not an effective object");an(n,"success")?d.resolve(n.success):an(n,"error")?(l("error",n.error),d.reject(n.error)):(l("error","invalid data"),d.reject("invalid data"))})).catch((async t=>{let e=null,r=Tr(t,"response.statusText")||Tr(t,"message"),n=Tr(t,"response.data")||Tr(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}l("error",t),e="Can not connect to server."}"Network Error"===e&&(e="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),d.reject(e)})),d}async function d(t,e,r){let n=null;try{n=function(t){let e;return e="browser"===c?new Blob([t.buffer]):Buffer.from(t),e}(Do(e))}catch(t){return Promise.reject(t)}return await p(t,n,{dataType:"blob",cbProgress:r})}async function h(t,e,r){let n=function(t){if(!cn(t))throw new Error("fn is not a function");return function(){let e=Dr(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):fn(r)?r.then((t=>{e.resolve({state:"success",msg:t})})).catch((t=>{"cancelled"===Tr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})):e.resolve({state:"success",msg:r}),e}}(d),o=await n(t,e,r),i=0;for(;"error"===o.state&&(i+=1,!(i>a));)console.log(`retry n=${i}`),o=await n(t,e,r);return"success"===o.state?o.msg:Promise.reject(o.msg)}async function y(t,e,r){let n=0;if(0===n)try{n=e.size,n=en(n)}catch(t){}if(0===n)try{n=e.length,n=en(n)}catch(t){}0===n&&(n=1);let o=Math.ceil(n/s),i=`${function(){if(!cn(Mo))throw new Error("invalid dayjs");return Mo().format("YYYYMMDDHHmmss")}()}-${function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];t=rn(t)?en(t):32;for(let r=0;r<t;r++)e[r]=nn[0|Math.random()*on];return e.join("")}()}`,a=0,c=t=>{let e=t.prog;if("upload"===t.m&&100===e){a++;let t=a/o;r({prog:.99*t*100,p:t*n,m:"upload"})}};for(let t=0;t<o;t++){let r=t*s,a=Math.min(r+s,n),u=e.slice(r,a),l={"chunk-index":t,"chunk-total":o,"package-id":i};await p("slice",u,{headers:l,dataType:"blob",cbProgress:c})}let u={filename:t,"chunk-total":o,"package-id":i},l=await p("slicemerge",u,{dataType:"json",cbProgress:t=>{let e=t.prog;"download"===t.m&&100===e&&r({prog:100,p:n,m:"upload"})}});return l}return u.execute=async function(t,e,r){let n={func:t,input:e},o="",i=null;return await h("basic",n,r).then((t=>Jr(t)?(o="error",void(i=t)):ln(t)?an(t,"output")?(o="success",void(i=t.output)):(console.log("invalid msg.output",t),o="error",void(i="invalid msg.output")):(console.log("msg is not an effective object",t),o="error",void(i="msg is not an effective object")))).catch((t=>{o="error",i=t})),""===o?(l("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(i):i},u.upload=async function(t,e,r){return y(t,e,r)},u.download=async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={fileId:t};return await p("download",n,Io(Io({},r),{},{dataType:"json",cbProgress:e}))},u}}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function r(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function n(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,s=(a=Object.create(null),t=>{const e=o.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const c=t=>(t=t.toLowerCase(),e=>s(e)===t),u=t=>e=>typeof e===t,{isArray:l}=Array,f=u("undefined");const p=c("ArrayBuffer");const d=u("string"),h=u("function"),y=u("number"),b=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==s(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},g=c("Date"),v=c("File"),w=c("Blob"),O=c("FileList"),j=c("URLSearchParams"),[S,_,A,E]=["ReadableStream","Request","Response","Headers"].map(c);function x(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),l(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let s;for(r=0;r<i;r++)s=n[r],e.call(null,t[s],s,t)}}function R(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=t=>!f(t)&&t!==T;const D=(C="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>C&&t instanceof C);var C;const U=c("HTMLFormElement"),N=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),$=c("RegExp"),B=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};x(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)};const k=c("AsyncFunction"),M=(F="function"==typeof setImmediate,L=h(T.postMessage),F?setImmediate:L?(z=`axios@${Math.random()}`,I=[],T.addEventListener("message",(t=>{let{source:e,data:r}=t;e===T&&r===z&&I.length&&I.shift()()}),!1),t=>{I.push(t),T.postMessage(z,"*")}):t=>setTimeout(t));var F,L,z,I;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||M;var H={isArray:l,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||h(t.append)&&("formdata"===(e=s(t))||"object"===e&&h(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:d,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:b,isPlainObject:m,isReadableStream:S,isRequest:_,isResponse:A,isHeaders:E,isUndefined:f,isDate:g,isFile:v,isBlob:w,isRegExp:$,isFunction:h,isStream:t=>b(t)&&h(t.pipe),isURLSearchParams:j,isTypedArray:D,isFileList:O,forEach:x,merge:function t(){const{caseless:e}=P(this)&&this||{},r={},n=(n,o)=>{const i=e&&R(r,o)||o;m(r[i])&&m(n)?r[i]=t(r[i],n):m(n)?r[i]=t({},n):l(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&x(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x(e,((e,o)=>{r&&h(e)?t[o]=n(e,r):t[o]=e}),{allOwnKeys:o}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,s,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&i(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:U,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:B,freezeMethods:t=>{B(t,((e,r)=>{if(h(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];h(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return l(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:R,global:T,isContextDefined:P,isSpecCompliantForm:function(t){return!!(t&&h(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(b(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=l(t)?[]:{};return x(t,((t,e)=>{const i=r(t,n+1);!f(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:k,isThenable:t=>t&&(b(t)||h(t))&&h(t.then)&&h(t.catch),setImmediate:M,asap:q};function W(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}H.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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const J=W.prototype,V={};["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((t=>{V[t]={value:t}})),Object.defineProperties(W,V),Object.defineProperty(J,"isAxiosError",{value:!0}),W.from=(t,e,r,n,o,i)=>{const s=Object.create(J);return H.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),W.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};function Y(t){return H.isPlainObject(t)||H.isArray(t)}function K(t){return H.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,r){return t?t.concat(e).map((function(t,e){return t=K(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const G=H.toFlatObject(H,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Z(t,e,r){if(!H.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!H.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(H.isDate(t))return t.toISOString();if(!a&&H.isBlob(t))throw new W("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(t)||H.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,o){let a=t;if(t&&!o&&"object"==typeof t)if(H.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(H.isArray(t)&&function(t){return H.isArray(t)&&!t.some(Y)}(t)||(H.isFileList(t)||H.endsWith(r,"[]"))&&(a=H.toArray(t)))return r=K(r),a.forEach((function(t,n){!H.isUndefined(t)&&null!==t&&e.append(!0===s?X([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!Y(t)||(e.append(X(o,r,i),c(t)),!1)}const l=[],f=Object.assign(G,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!H.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!H.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),H.forEach(r,(function(r,i){!0===(!(H.isUndefined(r)||null===r)&&o.call(e,r,H.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function Q(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&Z(t,this,e)}const et=tt.prototype;function rt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nt(t,e,r){if(!e)return t;const n=r&&r.encode||rt;H.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):H.isURLSearchParams(e)?e.toString():new tt(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,Q)}:Q;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ot=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,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){H.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},it={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},st={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const at="undefined"!=typeof window&&"undefined"!=typeof document,ct="object"==typeof navigator&&navigator||void 0,ut=at&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),lt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ft=at&&window.location.href||"http://localhost";function pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ht=dt(dt({},Object.freeze({__proto__:null,hasBrowserEnv:at,hasStandardBrowserEnv:ut,hasStandardBrowserWebWorkerEnv:lt,navigator:ct,origin:ft})),st);function yt(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&H.isArray(n)?n.length:i,a)return H.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&H.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&H.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!s}if(H.isFormData(t)&&H.isFunction(t.entries)){const r={};return H.forEachEntry(t,((t,n)=>{e(function(t){return H.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const bt={transitional:it,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=H.isObject(t);o&&H.isHTMLForm(t)&&(t=new FormData(t));if(H.isFormData(t))return n?JSON.stringify(yt(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Z(t,new ht.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return ht.isNode&&H.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=H.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Z(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(H.isString(t))try{return(e||JSON.parse)(t),H.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||bt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw W.from(t,W.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],(t=>{bt.headers[t]={}}));var mt=bt;const gt=H.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"]);const vt=Symbol("internals");function wt(t){return t&&String(t).trim().toLowerCase()}function Ot(t){return!1===t||null==t?t:H.isArray(t)?t.map(Ot):String(t)}function jt(t,e,r,n,o){return H.isFunction(n)?n.call(this,e,r):(o&&(e=r),H.isString(e)?H.isString(n)?-1!==e.indexOf(n):H.isRegExp(n)?n.test(e):void 0:void 0)}class St{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=wt(e);if(!o)throw new Error("header name must be a non-empty string");const i=H.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Ot(t))}const i=(t,e)=>H.forEach(t,((t,r)=>o(t,r,e)));if(H.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(H.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&>[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(H.isHeaders(t))for(const[e,n]of t.entries())o(n,e,r);else null!=t&&o(e,t,r);return this}get(t,e){if(t=wt(t)){const r=H.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(H.isFunction(e))return e.call(this,t,r);if(H.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=wt(t)){const r=H.findKey(this,t);return!(!r||void 0===this[r]||e&&!jt(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=wt(t)){const o=H.findKey(r,t);!o||e&&!jt(0,r[o],o,e)||(delete r[o],n=!0)}}return H.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!jt(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return H.forEach(this,((n,o)=>{const i=H.findKey(r,o);if(i)return e[i]=Ot(n),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Ot(n),r[s]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return H.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&H.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((t=>e.set(t))),e}static accessor(t){const e=(this[vt]=this[vt]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=wt(t);e[n]||(!function(t,e){const r=H.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return H.isArray(t)?t.forEach(n):n(t),this}}St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(St.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),H.freezeMethods(St);var _t=St;function At(t,e){const r=this||mt,n=e||r,o=_t.from(n.headers);let i=n.data;return H.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Et(t){return!(!t||!t.__CANCEL__)}function xt(t,e,r){W.call(this,null==t?"canceled":t,W.ERR_CANCELED,e,r),this.name="CanceledError"}function Rt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}H.inherits(xt,W,{__CANCEL__:!0});const Tt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(t,e){let r,n,o=0,i=1e3/e;const s=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[function(){const t=Date.now(),e=t-o;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];e>=i?s(c,t):(r=c,n||(n=setTimeout((()=>{n=null,s(r)}),i-e)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;t({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[e?"download":"upload"]:!0})}),r)},Pt=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Dt=t=>function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return H.asap((()=>t(...r)))};var Ct=ht.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ht.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,Ut=ht.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];H.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),H.isString(n)&&s.push("path="+n),H.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Nt(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}function $t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Bt=t=>t instanceof _t?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t):t;function kt(t,e){e=e||{};const r={};function n(t,e,r,n){return H.isPlainObject(t)&&H.isPlainObject(e)?H.merge.call({caseless:n},t,e):H.isPlainObject(e)?H.merge({},e):H.isArray(e)?e.slice():e}function o(t,e,r,o){return H.isUndefined(e)?H.isUndefined(t)?void 0:n(void 0,t,0,o):n(t,e,0,o)}function i(t,e){if(!H.isUndefined(e))return n(void 0,e)}function s(t,e){return H.isUndefined(e)?H.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,r)=>o(Bt(t),Bt(e),0,!0)};return H.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);H.isUndefined(s)&&i!==a||(r[n]=s)})),r}var Mt=t=>{const e=kt({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=_t.from(a),e.url=nt(Nt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),H.isFormData(n))if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(ht.hasStandardBrowserEnv&&(o&&H.isFunction(o)&&(o=o(e)),o||!1!==o&&Ct(e.url))){const t=i&&s&&Ut.read(s);t&&a.set(i,t)}return e};var Ft="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=Mt(t);let o=n.data;const i=_t.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function b(){if(!y)return;const n=_t.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Rt((function(t){e(t),h()}),(function(t){r(t),h()}),{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:t,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(r(new W("Request aborted",W.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||it;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new W(e,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&H.forEach(i.toJSON(),(function(t,e){y.setRequestHeader(e,t)})),H.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),d&&([c,l]=Tt(d,!0),y.addEventListener("progress",c)),p&&y.upload&&([a,u]=Tt(p),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=e=>{y&&(r(!e||e.type?new xt(null,t,y):e),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);m&&-1===ht.protocols.indexOf(m)?r(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,t)):y.send(o||null)}))};var Lt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof W?e:new xt(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new W(`timeout ${e} of ms exceeded`,W.ETIMEDOUT))}),e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>H.asap(s),a}};const zt=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,o=0;for(;o<r;)n=o+e,yield t.slice(o,n),o=n},It=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},qt=(t,e,r,n)=>{const o=async function*(t,e){for await(const r of It(t))yield*zt(r,e)}(t,e);let i,s=0,a=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return a(),void t.close();let i=n.byteLength;if(r){let t=s+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),o.return())},{highWaterMark:2})};function Ht(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Jt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Vt=Jt&&"function"==typeof ReadableStream,Yt=Jt&&("function"==typeof TextEncoder?(Kt=new TextEncoder,t=>Kt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Kt;const Xt=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return!!t(...r)}catch(t){return!1}},Gt=Vt&&Xt((()=>{let t=!1;const e=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Zt=Vt&&Xt((()=>H.isReadableStream(new Response("").body))),Qt={stream:Zt&&(t=>t.body)};var te;Jt&&(te=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Qt[t]&&(Qt[t]=H.isFunction(te[t])?e=>e[t]():(e,r)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,r)})})));const ee=async(t,e)=>{const r=H.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(H.isBlob(t))return t.size;if(H.isSpecCompliantForm(t)){const e=new Request(ht.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return H.isArrayBufferView(t)||H.isArrayBuffer(t)?t.byteLength:(H.isURLSearchParams(t)&&(t+=""),H.isString(t)?(await Yt(t)).byteLength:void 0)})(e):r};const re={http:null,xhr:Ft,fetch:Jt&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=Mt(t);u=u?(u+"").toLowerCase():"text";let d,h=Lt([o,i&&i.toAbortSignal()],s);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Gt&&"get"!==r&&"head"!==r&&0!==(b=await ee(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(H.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Pt(b,Tt(Dt(c)));n=qt(r.body,65536,t,e)}}H.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(e,Wt(Wt({},p),{},{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0}));let i=await fetch(d);const s=Zt&&("stream"===u||"response"===u);if(Zt&&(a||s&&y)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=H.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Pt(e,Tt(Dt(a),!0))||[];i=new Response(qt(i.body,65536,r,(()=>{n&&n(),y&&y()})),t)}u=u||"text";let m=await Qt[H.findKey(Qt,u)||"text"](i,t);return!s&&y&&y(),await new Promise(((e,r)=>{Rt(e,r,{data:m,headers:_t.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:d})}))}catch(e){if(y&&y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,t,d),{cause:e.cause||e});throw W.from(e,e&&e.code,t,d)}})};H.forEach(re,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const ne=t=>`- ${t}`,oe=t=>H.isFunction(t)||null===t||!1===t;var ie={getAdapter:t=>{t=H.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!oe(r)&&(n=re[(e=String(r)).toLowerCase()],void 0===n))throw new W(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((t=>{let[e,r]=t;return`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new W("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(ne).join("\n"):" "+ne(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:re};function se(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xt(null,t)}function ae(t){se(t),t.headers=_t.from(t.headers),t.data=At.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ie.getAdapter(t.adapter||mt.adapter)(t).then((function(e){return se(t),e.data=At.call(t,t.transformResponse,e),e.headers=_t.from(e.headers),e}),(function(e){return Et(e)||(se(t),e&&e.response&&(e.response.data=At.call(t,t.transformResponse,e.response),e.response.headers=_t.from(e.response.headers))),Promise.reject(e)}))}const ce="1.8.4",ue={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ue[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const le={};ue.transitional=function(t,e,r){function n(t,e){return"[Axios v1.8.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new W(n(o," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!le[o]&&(le[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},ue.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var fe={assertOptions:function(t,e,r){if("object"!=typeof t)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new W("option "+i+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}},validators:ue};const pe=fe.validators;class de{constructor(t){this.defaults=t,this.interceptors={request:new ot,response:new ot}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=kt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&fe.assertOptions(r,{silentJSONParsing:pe.transitional(pe.boolean),forcedJSONParsing:pe.transitional(pe.boolean),clarifyTimeoutError:pe.transitional(pe.boolean)},!1),null!=n&&(H.isFunction(n)?e.paramsSerializer={serialize:n}:fe.assertOptions(n,{encode:pe.function,serialize:pe.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),fe.assertOptions(e,{baseUrl:pe.spelling("baseURL"),withXsrfToken:pe.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[e.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=_t.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ae.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);f<l;)u=u.then(t[f++],t[f++]);return u}l=s.length;let p=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=ae.call(this,p)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(t){return nt(Nt((t=kt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}H.forEach(["delete","get","head","options"],(function(t){de.prototype[t]=function(e,r){return this.request(kt(r||{},{method:t,url:e,data:(r||{}).data}))}})),H.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(kt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}de.prototype[t]=e(),de.prototype[t+"Form"]=e(!0)}));var he=de;class ye{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new xt(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ye((function(e){t=e})),cancel:t}}}var be=ye;const me={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(me).forEach((t=>{let[e,r]=t;me[r]=e}));var ge=me;const ve=function t(e){const r=new he(e),o=n(he.prototype.request,r);return H.extend(o,he.prototype,r,{allOwnKeys:!0}),H.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return t(kt(e,r))},o}(mt);ve.Axios=he,ve.CanceledError=xt,ve.CancelToken=be,ve.isCancel=Et,ve.VERSION=ce,ve.toFormData=Z,ve.AxiosError=W,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=function(t){return function(e){return t.apply(null,e)}},ve.isAxiosError=function(t){return H.isObject(t)&&!0===t.isAxiosError},ve.mergeConfig=kt,ve.AxiosHeaders=_t,ve.formToJSON=t=>yt(H.isHTMLForm(t)?new FormData(t):t),ve.getAdapter=ie.getAdapter,ve.HttpStatusCode=ge,ve.default=ve;var we=ve,Oe=Array.isArray,je="object"==typeof global&&global&&global.Object===Object&&global,Se="object"==typeof self&&self&&self.Object===Object&&self,_e=je||Se||Function("return this")(),Ae=_e.Symbol,Ee=Object.prototype,xe=Ee.hasOwnProperty,Re=Ee.toString,Te=Ae?Ae.toStringTag:void 0;var Pe=Object.prototype.toString;var De="[object Null]",Ce="[object Undefined]",Ue=Ae?Ae.toStringTag:void 0;function Ne(t){return null==t?void 0===t?Ce:De:Ue&&Ue in Object(t)?function(t){var e=xe.call(t,Te),r=t[Te];try{t[Te]=void 0;var n=!0}catch(t){}var o=Re.call(t);return n&&(e?t[Te]=r:delete t[Te]),o}(t):function(t){return Pe.call(t)}(t)}function $e(t){return null!=t&&"object"==typeof t}var Be="[object Symbol]";function ke(t){return"symbol"==typeof t||$e(t)&&Ne(t)==Be}var Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/;function Le(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ze="[object AsyncFunction]",Ie="[object Function]",qe="[object GeneratorFunction]",He="[object Proxy]";function We(t){if(!Le(t))return!1;var e=Ne(t);return e==Ie||e==qe||e==ze||e==He}var Je,Ve=_e["__core-js_shared__"],Ye=(Je=/[^.]+$/.exec(Ve&&Ve.keys&&Ve.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"";var Ke=Function.prototype.toString;var Xe=/^\[object .+?Constructor\]$/,Ge=Function.prototype,Ze=Object.prototype,Qe=Ge.toString,tr=Ze.hasOwnProperty,er=RegExp("^"+Qe.call(tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rr(t){return!(!Le(t)||(e=t,Ye&&Ye in e))&&(We(t)?er:Xe).test(function(t){if(null!=t){try{return Ke.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function nr(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return rr(r)?r:void 0}var or=nr(Object,"create");var ir=Object.prototype.hasOwnProperty;var sr=Object.prototype.hasOwnProperty;function ar(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function cr(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}ar.prototype.clear=function(){this.__data__=or?or(null):{},this.size=0},ar.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ar.prototype.get=function(t){var e=this.__data__;if(or){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ir.call(e,t)?e[t]:void 0},ar.prototype.has=function(t){var e=this.__data__;return or?void 0!==e[t]:sr.call(e,t)},ar.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=or&&void 0===e?"__lodash_hash_undefined__":e,this};var ur=Array.prototype.splice;function lr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}lr.prototype.clear=function(){this.__data__=[],this.size=0},lr.prototype.delete=function(t){var e=this.__data__,r=cr(e,t);return!(r<0)&&(r==e.length-1?e.pop():ur.call(e,r,1),--this.size,!0)},lr.prototype.get=function(t){var e=this.__data__,r=cr(e,t);return r<0?void 0:e[r][1]},lr.prototype.has=function(t){return cr(this.__data__,t)>-1},lr.prototype.set=function(t,e){var r=this.__data__,n=cr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var fr=nr(_e,"Map");function pr(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function dr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}dr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(fr||lr),string:new ar}},dr.prototype.delete=function(t){var e=pr(this,t).delete(t);return this.size-=e?1:0,e},dr.prototype.get=function(t){return pr(this,t).get(t)},dr.prototype.has=function(t){return pr(this,t).has(t)},dr.prototype.set=function(t,e){var r=pr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var hr="Expected a function";function yr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(hr);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(yr.Cache||dr),r}yr.Cache=dr;var br=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mr=/\\(\\)?/g,gr=function(t){var e=yr(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(br,(function(t,r,n,o){e.push(n?o.replace(mr,"$1"):r||t)})),e})),vr=gr;var wr=1/0,Or=Ae?Ae.prototype:void 0,jr=Or?Or.toString:void 0;function Sr(t){if("string"==typeof t)return t;if(Oe(t))return function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,Sr)+"";if(ke(t))return jr?jr.call(t):"";var e=t+"";return"0"==e&&1/t==-wr?"-0":e}function _r(t){return null==t?"":Sr(t)}function Ar(t,e){return Oe(t)?t:function(t,e){if(Oe(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ke(t))||Fe.test(t)||!Me.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:vr(_r(t))}var Er=1/0;function xr(t){if("string"==typeof t||ke(t))return t;var e=t+"";return"0"==e&&1/t==-Er?"-0":e}function Rr(t,e,r){var n=null==t?void 0:function(t,e){for(var r=0,n=(e=Ar(e,t)).length;null!=t&&r<n;)t=t[xr(e[r++])];return r&&r==n?t:void 0}(t,e);return void 0===n?r:n}function Tr(){return"undefined"!=typeof window&&void 0!==window.document}var Pr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Dr={};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,s){var a=r?r+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,o),!0;case 5:return l.fn.call(l.context,e,n,o,i),!0;case 6:return l.fn.call(l.context,e,n,o,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==e||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a}({get exports(){return Dr},set exports(t){Dr=t}});var Cr=Dr;function Ur(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}var Nr=/\s/;var $r=/^\s+/;function Br(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Nr.test(t.charAt(e)););return e}(t)+1).replace($r,""):t}var kr=NaN,Mr=/^[-+]0x[0-9a-f]+$/i,Fr=/^0b[01]+$/i,Lr=/^0o[0-7]+$/i,zr=parseInt;function Ir(t){if("number"==typeof t)return t;if(ke(t))return kr;if(Le(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Le(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Br(t);var r=Fr.test(t);return r||Lr.test(t)?zr(t.slice(2),r?2:8):Mr.test(t)?kr:+t}var qr=1/0,Hr=17976931348623157e292;function Wr(t){return t?(t=Ir(t))===qr||t===-qr?(t<0?-1:1)*Hr:t==t?t:0:0===t?t:0}function Jr(t){var e=Wr(t),r=e%1;return e==e?r?e-r:e:0}function Vr(t){return"[object String]"===Object.prototype.toString.call(t)}function Yr(t){return!(!Vr(t)||""===t)}function Kr(t){return t!=t}function Xr(t){let e=!1;if(Yr(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(Kr(t))return!1;e=!0}return e}function Gr(t){if(!Xr(t))return 0;return Wr(t)}function Zr(t){return!!Xr(t)&&(t=Gr(t),"number"==typeof(e=t)&&e==Jr(e));var e}var Qr=_e.isFinite,tn=Math.min;var en,rn=(en=Math["round"],function(t,e){if(t=Ir(t),(e=null==e?0:tn(Jr(e),292))&&Qr(t)){var r=(_r(t)+"e").split("e");return+((r=(_r(en(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return en(t)});function nn(t){if(!Xr(t))return 0;t=Gr(t);let e=rn(t);return"0"===String(e)?0:e}function on(t){if(!Zr(t))return!1;return nn(t)>0}let sn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),an=sn.length;function cn(t){return"[object Object]"===Object.prototype.toString.call(t)}function un(t,e){return!!cn(t)&&(!(!Yr(e)&&!Xr(e))&&e in t)}function ln(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function fn(t){if(!Zr(t))return!1;return nn(t)>=0}function pn(t){if(cn(t)){for(let e in t)return!0;return!1}return!1}function dn(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}var hn={};var yn,bn={},mn={get exports(){return bn},set exports(t){bn=t}};function gn(){return yn||(yn=1,function(t,e){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==Pr&&Pr.crypto&&(r=Pr.crypto),!r)try{r=require("crypto")}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),u=i.enc={},l=u.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*u,i);if(u){for(var f=0;f<u;f+=s)this._doProcessBlock(o,f);r=o.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new h.HMAC.init(t,r).finalize(e)}}});var h=i.algo={};return i}(Math),r)}(mn)),bn}!function(t,e){t.exports=gn().enc.Utf8}({get exports(){return hn},set exports(t){hn=t}});var vn=hn,wn={};!function(t,e){var r;t.exports=(r=gn(),function(){var t=r,e=t.lib.WordArray;function n(t,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return e.create(o,i)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t){var e=t.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return wn},set exports(t){wn=t}});var On=wn;function jn(t){if(!Yr(t))return"";return On.parse(t).toString(vn)}function Sn(t){if(!Tr())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=Ur(),r=new FileReader;return r.onload=function(){let t=r.result;e.resolve(t)},r.onerror=function(t){e.reject(t)},r.readAsArrayBuffer(t),e}(t)}}function _n(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var An,En=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var a=i[An?s:++n];if(!1===e(o[a],a,o))break}return t};function xn(t){return $e(t)&&"[object Arguments]"==Ne(t)}var Rn=Object.prototype,Tn=Rn.hasOwnProperty,Pn=Rn.propertyIsEnumerable,Dn=xn(function(){return arguments}())?xn:function(t){return $e(t)&&Tn.call(t,"callee")&&!Pn.call(t,"callee")},Cn=Dn;var Un="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nn=Un&&"object"==typeof module&&module&&!module.nodeType&&module,$n=Nn&&Nn.exports===Un?_e.Buffer:void 0,Bn=($n?$n.isBuffer:void 0)||function(){return!1},kn=9007199254740991,Mn=/^(?:0|[1-9]\d*)$/;function Fn(t,e){var r=typeof t;return!!(e=null==e?kn:e)&&("number"==r||"symbol"!=r&&Mn.test(t))&&t>-1&&t%1==0&&t<e}var Ln=9007199254740991;function zn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ln}var In={};In["[object Float32Array]"]=In["[object Float64Array]"]=In["[object Int8Array]"]=In["[object Int16Array]"]=In["[object Int32Array]"]=In["[object Uint8Array]"]=In["[object Uint8ClampedArray]"]=In["[object Uint16Array]"]=In["[object Uint32Array]"]=!0,In["[object Arguments]"]=In["[object Array]"]=In["[object ArrayBuffer]"]=In["[object Boolean]"]=In["[object DataView]"]=In["[object Date]"]=In["[object Error]"]=In["[object Function]"]=In["[object Map]"]=In["[object Number]"]=In["[object Object]"]=In["[object RegExp]"]=In["[object Set]"]=In["[object String]"]=In["[object WeakMap]"]=!1;var qn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hn=qn&&"object"==typeof module&&module&&!module.nodeType&&module,Wn=Hn&&Hn.exports===qn&&je.process,Jn=function(){try{var t=Hn&&Hn.require&&Hn.require("util").types;return t||Wn&&Wn.binding&&Wn.binding("util")}catch(t){}}(),Vn=Jn&&Jn.isTypedArray,Yn=Vn?function(t){return function(e){return t(e)}}(Vn):function(t){return $e(t)&&zn(t.length)&&!!In[Ne(t)]},Kn=Yn,Xn=Object.prototype.hasOwnProperty;function Gn(t,e){var r=Oe(t),n=!r&&Cn(t),o=!r&&!n&&Bn(t),i=!r&&!n&&!o&&Kn(t),s=r||n||o||i,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!Xn.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Fn(u,c))||a.push(u);return a}var Zn=Object.prototype;function Qn(t,e){return function(r){return t(e(r))}}var to=Qn(Object.keys,Object),eo=Object.prototype.hasOwnProperty;function ro(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Zn))return to(t);var e,r,n=[];for(var o in Object(t))eo.call(t,o)&&"constructor"!=o&&n.push(o);return n}function no(t){return null!=t&&zn(t.length)&&!We(t)}function oo(t){return no(t)?Gn(t):ro(t)}var io=function(t,e){return function(r,n){if(null==r)return r;if(!no(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(t,e){return t&&En(t,e,oo)})),so=io;function ao(t){return t}function co(t,e){var r;return(Oe(t)?_n:so)(t,"function"==typeof(r=e)?r:ao)}function uo(t){return"[object Array]"===Object.prototype.toString.call(t)}function lo(t){if(cn(t)){for(let e in t)return!1;return!0}return!1}function fo(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!lo(t)||(!!function(t){return!(!Vr(t)||""!==t)}(t)||(!!function(t){return!!uo(t)&&0===t.length}(t)||!!Kr(t)))))}function po(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function ho(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function yo(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function bo(t){if(!(po(t)||(e=t,"[object Blob]"===Object.prototype.toString.call(e))||ho(t)||yo(t)))return null;var e;try{if(t.byteLength)return t.byteLength}catch(t){}try{if(t.length)return t.length}catch(t){}try{if(t.size)return t.size}catch(t){}return null}var mo=Qn(Object.getPrototypeOf,Object),go="[object Object]",vo=Function.prototype,wo=Object.prototype,Oo=vo.toString,jo=wo.hasOwnProperty,So=Oo.call(Object);var _o="[object DOMException]",Ao="[object Error]";function Eo(t){if(!$e(t))return!1;var e=Ne(t);return e==Ao||e==_o||"string"==typeof t.message&&"string"==typeof t.name&&!function(t){if(!$e(t)||Ne(t)!=go)return!1;var e=mo(t);if(null===e)return!0;var r=jo.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Oo.call(r)==So}(t)}function xo(t){if(!Yr(t))return new Uint8Array;let e;try{e=function(t){if(!Vr(t))return new Uint8Array;let e=On.parse(t),r=e.words,n=e.sigBytes,o=new Uint8Array(n);for(let t=0;t<n;t++){let e=r[t>>>2]>>>24-t%4*8&255;o[t]=e}return o}(function(t){if(!Yr(t))return"";let e=vn.parse(t);return On.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var Ro="[object Boolean]";function To(t){return!0===(e=t)||!1===e||$e(e)&&Ne(e)==Ro;var e}function Po(t,e){return function(t,e,r,n,o,i){if(!Xr(t))return null;if(!ho(e))return null;if(!Zr(r))return null;if(!To(n))return null;if(!Zr(o))return null;if(!Zr(i))return null;let s,a,c;t=Gr(t);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?i-1:0,h=n?-1:1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+d]=255&a,d+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+d]=255&s,d+=h,s/=256,u-=8);return e[r+d-h]|=128*y,null}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function Do(t){let e=[],r=[];if((!uo(n=t)||0===n.length||1===n.length&&fo(n[0]))&&!pn(t))return null;var n;let o=[],i=[];function s(t){o.push(bo(t)),i.push(t)}try{let n=function(t){if(!cn(t))return{results:"",binarys:[]};if(lo(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(ho(e)){n+=1;let t=`[Uint8Array]::${n}`;return r.push(e),t}if(yo(e)){n+=1;let t=`[Uint16Array]::${n}`;return r.push(e),t}if(po(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return Eo(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);s(xo(n.results)),co(n.binarys,(t=>{s(t)}));let a=o,c=xo(JSON.stringify(a)),u=new Uint8Array(8);Po(bo(c),u),e.push(u),e.push(c),co(i,(t=>{e.push(t)})),co(e,(t=>{r=function(t,e){let r=bo(t),n=bo(e),o=new Uint8Array(r+n);return o.set(new Uint8Array(t),0),o.set(new Uint8Array(e),r),o}(r,t)}))}catch(t){return null}return r}function Co(t){return function(t,e,r,n,o){if(!ho(t))return null;if(!Zr(e))return null;if(!To(r))return null;if(!Zr(n))return null;if(!Zr(o))return null;let i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?0:o-1,p=r?1:-1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),i-=u}return(d?-1:1)*s*Math.pow(2,i-n)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}var Uo={};!function(t,e){var r;t.exports=(r=gn(),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;e.call(this,n,r)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)}({get exports(){return Uo},set exports(t){Uo=t}});var No=Uo;function $o(t){if(!ho(t))return"";let e;try{e=jn(function(t){return ho(t)?No.create(t).toString(On):""}(t))}catch(t){return""}return e}function Bo(t){let e=null;if(!ho(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,bo(t)),i=Co(n),s=o.slice(0,i),a=o.slice(i,bo(o)),c=$o(s),u=function(t,e){let r=0,n=0,o=[];return co(e,(e=>{n=r+e;let i=t.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));e=function(t){if(!pn(t))return{};let{results:e,binarys:r}=t;if(!Yr(e))return{};if(!uo(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(Yr(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=nn(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=nn(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=nn(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:$o(u.shift()),binarys:u})}catch(t){}return e}var ko={};!function(t,e){t.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},m=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,u),i=r-o<0,s=e.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:a,D:p,h:s,m:i,s:o,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",w={};w[v]=b;var O="$isDayjsObject",j=function(t){return t instanceof E||!(!t||!t[O])},S=function t(e,r,n){var o;if(!e)return v;if("string"==typeof e){var i=e.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,o=a}return!n&&o&&(v=o),o||!n&&v},_=function(t,e){if(j(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new E(r)},A=g;A.l=S,A.i=j,A.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function b(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[O]=!0}var m=b.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(h);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return A},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return _(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<_(t)},m.$g=function(t,e,r){return A.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,n=!!A.u(e)||e,l=A.p(t),d=function(t,e){var o=A.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?o:o.endOf(a)},h=function(t,e){return A.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,b=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case f:return n?d(1,0):d(31,11);case u:return n?d(1,b):d(0,b+1);case c:var v=this.$locale().weekStart||0,w=(y<v?y+7:y)-v;return d(n?m-w:m+(6-w),b);case a:case p:return h(g+"Hours",0);case s:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case o:return h(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,c=A.p(t),l="set"+(this.$u?"UTC":""),d=(r={},r[a]=l+"Date",r[p]=l+"Date",r[u]=l+"Month",r[f]=l+"FullYear",r[s]=l+"Hours",r[i]=l+"Minutes",r[o]=l+"Seconds",r[n]=l+"Milliseconds",r)[c],h=c===a?this.$D+(e-this.$W):e;if(c===u||c===f){var y=this.clone().set(p,1);y.$d[d](h),y.init(),this.$d=y.set(p,Math.min(this.$D,y.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[A.p(t)]()},m.add=function(n,l){var p,d=this;n=Number(n);var h=A.p(l),y=function(t){var e=_(d);return A.w(e.date(e.date()+Math.round(t*n)),d)};if(h===u)return this.set(u,this.$M+n);if(h===f)return this.set(f,this.$y+n);if(h===a)return y(1);if(h===c)return y(7);var b=(p={},p[i]=e,p[s]=r,p[o]=t,p)[h]||1,m=this.$d.getTime()+n*b;return A.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=A.z(this),i=this.$H,s=this.$m,a=this.$M,c=r.weekdays,u=r.months,l=r.meridiem,f=function(t,r,o,i){return t&&(t[r]||t(e,n))||o[r].slice(0,i)},p=function(t){return A.s(i%12||12,t,"0")},h=l||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return a+1;case"MM":return A.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,u,3);case"MMMM":return f(u,a);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(i);case"HH":return A.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,s,!0);case"A":return h(i,s,!1);case"m":return String(s);case"mm":return A.s(s,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,p,d){var h,y=this,b=A.p(p),m=_(n),g=(m.utcOffset()-this.utcOffset())*e,v=this-m,w=function(){return A.m(y,m)};switch(b){case f:h=w()/12;break;case u:h=w();break;case l:h=w()/3;break;case c:h=(v-g)/6048e5;break;case a:h=(v-g)/864e5;break;case s:h=v/r;break;case i:h=v/e;break;case o:h=v/t;break;default:h=v}return d?h:A.a(h)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return w[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},m.clone=function(){return A.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},b}(),x=E.prototype;return _.prototype=x,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),_.extend=function(t,e){return t.$i||(t(e,E,_),t.$i=!0),_},_.locale=S,_.isDayjs=j,_.unix=function(t){return _(1e3*t)},_.en=w[v],_.Ls=w,_.p={},_}()}({get exports(){return ko},set exports(t){ko=t}});var Mo=ko;function Fo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fo(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}return function(t){let e=Rr(t,"url");Yr(e)||(e="http://localhost:8080");let r=Rr(t,"apiName");Yr(r)||(r="api");let n="";n="/"===function(t,e){if(!Yr(t))return"";if(!fn(e))return"";if(0===(e=nn(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}(e,1)?e+r:e+"/"+r;let o=Rr(t,"getToken",null);ln(o)||(o=()=>"");let i=Rr(t,"tokenType");Yr(i)||(i="Bearer");let s=Rr(t,"sizeSlice");on(s)||(s=1048576);let a=Rr(t,"retry");fn(a)||(a=3);let c=Tr()?"browser":"nodejs",u=new Cr,l=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];setTimeout((()=>{u.emit(t,...r)}),1)};async function f(t){let e;return e="browser"===c?await function(t){let e=Ur();return Sn(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(t):new Uint8Array(t),e}async function p(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Rr(r,"headers");cn(s)||(s={});let a=Rr(r,"dataType","");"blob"!==a&&"fmd"!==a&&"json"!==a&&(a="blob");let u=Rr(r,"cbProgress");ln(u)||(u=()=>{});let p="";if("basic"===t)p=n;else if("slice"===t)p=`${n}slc`;else if("slicemerge"===t)p=`${n}slcm`;else{if("download"!==t)throw new Error(`invalid type[${t}]`);p=`${n}dw`}let d=Ur(),h=null,y={};if("blob"===a)y={"Content-Type":"application/octet-stream"},h=e;else if("fmd"===a){let t;if("browser"===c)t=new FormData;else{if(!ln(r.FormData))throw l("error","invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");t=new r.FormData({maxDataSize:1099511627776})}t.append("bb",e),"nodejs"===c&&(y={"Content-Type":`multipart/form-data; boundary=${t.getBoundary()}`}),h=t}else"json"===a&&(y={"Content-Type":"application/json"},h=JSON.stringify(e));let b="blob";"nodejs"===c&&(b="arraybuffer","download"===t&&(b="stream"));let m=o();dn(m)&&(m=await m);let g={method:"POST",url:p,data:h,headers:Lo(Lo({Authorization:`${i} ${m}`},y),s),timeout:36e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:b,onUploadProgress:function(t){let e=0,r=t.loaded,n=t.total;on(n)&&(e=100*r/n),u({prog:Math.floor(e),p:r,m:"upload"})},onDownloadProgress:function(t){let e=0,r=t.loaded,n=t.total;on(n)&&(e=100*r/n),u({prog:Math.floor(e),p:r,m:"download"})}};return we(g).then((async e=>{if("download"===t)return void await(async t=>{let e=Ur(),n=Rr(t,"headers['return-type']",""),o=Rr(t,"headers['return-msg']","");if("error"===n)return e.reject(o),e;let i=(t=>{let e="unknow";try{let r=/filename="(.+?)"/.exec(t);e=r?r[1]:"unknown"}catch(t){}return e})(Rr(t,"headers['content-disposition']",""));i=jn(i);let s=Rr(t,"data");if("browser"===c)try{let t=URL.createObjectURL(s),r=document.createElement("a");r.href=t,r.download=i,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(t),e.resolve(i)}catch(t){console.log(t),e.reject(t)}else try{let t=await import("path"),n=await import("fs"),o=Rr(r,"fdDownload","");n.mkdirSync(o,{recursive:!0});let a=t.resolve(o,i),c=n.createWriteStream(a);s.pipe(c),c.on("finish",(()=>{e.resolve(a)})),c.on("error",(t=>{e.reject(t)}))}catch(t){e.reject(t)}return e})(e).then((t=>{d.resolve(t)})).catch((t=>{d.reject(t)}));let n=Rr(e,"data"),o=Bo(await f(n));if(!pn(o))return l("error","data is not an effective object"),void d.reject("data is not an effective object");un(o,"success")?d.resolve(o.success):un(o,"error")?(l("error",o.error),d.reject(o.error)):(l("error","invalid data"),d.reject("invalid data"))})).catch((async t=>{let e=null,r=Rr(t,"response.statusText")||Rr(t,"message"),n=Rr(t,"response.data")||Rr(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}l("error",t),e="Can not connect to server."}"Network Error"===e&&(e="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),d.reject(e)})),d}async function d(t,e,r){let n=null;try{n=function(t){let e;return e="browser"===c?new Blob([t.buffer]):Buffer.from(t),e}(Do(e))}catch(t){return Promise.reject(t)}return await p(t,n,{dataType:"blob",cbProgress:r})}async function h(t,e,r){let n=function(t){if(!ln(t))throw new Error("fn is not a function");return function(){let e=Ur(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):dn(r)?r.then((t=>{e.resolve({state:"success",msg:t})})).catch((t=>{"cancelled"===Rr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})):e.resolve({state:"success",msg:r}),e}}(d),o=await n(t,e,r),i=0;for(;"error"===o.state&&(i+=1,!(i>a));)console.log(`retry n=${i}`),o=await n(t,e,r);return"success"===o.state?o.msg:Promise.reject(o.msg)}async function y(t,e,r){let n=0;if(0===n)try{n=e.size,n=nn(n)}catch(t){}if(0===n)try{n=e.length,n=nn(n)}catch(t){}0===n&&(n=1);let o=Math.ceil(n/s),i=`${function(){if(!ln(Mo))throw new Error("invalid dayjs");return Mo().format("YYYYMMDDHHmmss")}()}-${function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];t=on(t)?nn(t):32;for(let r=0;r<t;r++)e[r]=sn[0|Math.random()*an];return e.join("")}()}`,a=0,c=t=>{let e=t.prog;if("upload"===t.m&&100===e){a++;let t=a/o;r({prog:.99*t*100,p:t*n,m:"upload"})}};for(let t=0;t<o;t++){let r=t*s,a=Math.min(r+s,n),u=e.slice(r,a),l={"chunk-index":t,"chunk-total":o,"package-id":i};await p("slice",u,{headers:l,dataType:"blob",cbProgress:c})}let u={filename:t,"chunk-total":o,"package-id":i},l=await p("slicemerge",u,{dataType:"json",cbProgress:t=>{let e=t.prog;"download"===t.m&&100===e&&r({prog:100,p:n,m:"upload"})}});return l}return u.execute=async function(t,e,r){let n={func:t,input:e},o="",i=null;return await h("basic",n,r).then((t=>Yr(t)?(o="error",void(i=t)):pn(t)?un(t,"output")?(o="success",void(i=t.output)):(console.log("invalid msg.output",t),o="error",void(i="invalid msg.output")):(console.log("msg is not an effective object",t),o="error",void(i="msg is not an effective object")))).catch((t=>{o="error",i=t})),""===o?(l("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(i):i},u.upload=async function(t,e,r){return y(t,e,r)},u.download=async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={fileId:t};return await p("download",n,Lo(Lo({},r),{},{dataType:"json",cbProgress:e}))},u}}));
|
|
7
7
|
//# sourceMappingURL=w-converhp-client.umd.js.map
|