w-converhp 1.0.38 → 1.0.39

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/.editorconfig CHANGED
@@ -1,9 +1,9 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 4
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 4
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
package/.eslintignore CHANGED
@@ -1,3 +1,3 @@
1
- /build/
2
- /config/
3
- /dist/
1
+ /build/
2
+ /config/
3
+ /dist/
package/.eslintrc.js CHANGED
@@ -50,5 +50,6 @@ module.exports = {
50
50
  'prefer-regex-literals': 'off',
51
51
  'array-callback-return': 'off',
52
52
  'no-unreachable-loop': 'off',
53
+ 'vue/multi-word-component-names': 'off',
53
54
  }
54
55
  }
package/README.md CHANGED
@@ -6,6 +6,7 @@ An operator for hapi in nodejs and browser.
6
6
  [![license](https://img.shields.io/npm/l/w-converhp.svg?style=flat)](https://npmjs.org/package/w-converhp)
7
7
  [![gzip file size](http://img.badgesize.io/yuda-lyu/w-converhp/master/dist/w-converhp-server.umd.js.svg?compression=gzip)](https://github.com/yuda-lyu/w-converhp)
8
8
  [![npm download](https://img.shields.io/npm/dt/w-converhp.svg)](https://npmjs.org/package/w-converhp)
9
+ [![npm download](https://img.shields.io/npm/dm/w-converhp.svg)](https://npmjs.org/package/w-converhp)
9
10
  [![jsdelivr download](https://img.shields.io/jsdelivr/npm/hm/w-converhp.svg)](https://www.jsdelivr.com/package/npm/w-converhp)
10
11
 
11
12
  ## Documentation
@@ -224,7 +225,7 @@ wo.on('deliver', function(data) {
224
225
 
225
226
  [Necessary] Add script for w-converhp-client.
226
227
  ```alias
227
- <script src="https://cdn.jsdelivr.net/npm/w-converhp@1.0.38/dist/w-converhp-client.umd.js"></script>
228
+ <script src="https://cdn.jsdelivr.net/npm/w-converhp@1.0.39/dist/w-converhp-client.umd.js"></script>
228
229
  ```
229
230
  #### Example for w-converhp-client:
230
231
  > **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 v1.0.38
2
+ * w-converhp-client v1.0.39
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():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e()}(this,(function(){"use strict";function t(t,e){return function(){return t.apply(e,arguments)}}const{toString:e}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),t=>{const r=e.call(t);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const i=t=>(t=t.toLowerCase(),e=>n(e)===t),s=t=>e=>typeof e===t,{isArray:a}=Array,c=s("undefined");const u=i("ArrayBuffer");const l=s("string"),f=s("function"),p=s("number"),h=t=>null!==t&&"object"==typeof t,d=t=>{if("object"!==n(t))return!1;const e=r(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=i("Date"),g=i("File"),v=i("Blob"),m=i("FileList"),b=i("URLSearchParams");function w(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]),a(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 O(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 j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,A=t=>!c(t)&&t!==j;const _=(E="undefined"!=typeof Uint8Array&&r(Uint8Array),t=>E&&t instanceof E);var E;const S=i("HTMLFormElement"),x=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),R=i("RegExp"),T=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};w(r,((r,o)=>{!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},N="abcdefghijklmnopqrstuvwxyz",P="0123456789",C={DIGIT:P,ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+P};var B={isArray:a,isArrayBuffer:u,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const r="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||e.call(t)===r||f(t.toString)&&t.toString()===r)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer),e},isString:l,isNumber:p,isBoolean:t=>!0===t||!1===t,isObject:h,isPlainObject:d,isUndefined:c,isDate:y,isFile:g,isBlob:v,isRegExp:R,isFunction:f,isStream:t=>h(t)&&f(t.pipe),isURLSearchParams:b,isTypedArray:_,isFileList:m,forEach:w,merge:function t(){const{caseless:e}=A(this)&&this||{},r={},n=(n,o)=>{const i=e&&O(r,o)||o;d(r[i])&&d(n)?r[i]=t(r[i],n):d(n)?r[i]=t({},n):a(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&w(arguments[t],n);return r},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return w(r,((r,o)=>{n&&f(r)?e[o]=t(r,n):e[o]=r}),{allOwnKeys:o}),e},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,n,o)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],o&&!o(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:n,kindOfTest:i,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(a(t))return t;let e=t.length;if(!p(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:S,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:T,freezeMethods:t=>{T(t,((e,r)=>{if(f(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];f(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 a(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)=>(t=+t,Number.isFinite(t)?t:e),findKey:O,global:j,isContextDefined:A,ALPHABET:C,generateString:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.ALPHA_DIGIT,r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&f(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(h(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=a(t)?[]:{};return w(t,((t,e)=>{const i=r(t,n+1);!c(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)}};function U(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)}B.inherits(U,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F=U.prototype,L={};["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=>{L[t]={value:t}})),Object.defineProperties(U,L),Object.defineProperty(F,"isAxiosError",{value:!0}),U.from=(t,e,r,n,o,i)=>{const s=Object.create(F);return B.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),U.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};function D(t){return B.isPlainObject(t)||B.isArray(t)}function k(t){return B.endsWith(t,"[]")?t.slice(0,-2):t}function M(t,e,r){return t?t.concat(e).map((function(t,e){return t=k(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const I=B.toFlatObject(B,{},null,(function(t){return/^is[A-Z]/.test(t)}));function z(t,e,r){if(!B.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=B.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!B.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(e);if(!B.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(B.isDate(t))return t.toISOString();if(!a&&B.isBlob(t))throw new U("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(t)||B.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(B.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(B.isArray(t)&&function(t){return B.isArray(t)&&!t.some(D)}(t)||(B.isFileList(t)||B.endsWith(r,"[]"))&&(a=B.toArray(t)))return r=k(r),a.forEach((function(t,n){!B.isUndefined(t)&&null!==t&&e.append(!0===s?M([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!D(t)||(e.append(M(o,r,i),c(t)),!1)}const l=[],f=Object.assign(I,{defaultVisitor:u,convertValue:c,isVisitable:D});if(!B.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!B.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),B.forEach(r,(function(r,i){!0===(!(B.isUndefined(r)||null===r)&&o.call(e,r,B.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 H(t,e){this._pairs=[],t&&z(t,this,e)}const $=H.prototype;function J(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W(t,e,r){if(!e)return t;const n=r&&r.encode||J,o=r&&r.serialize;let i;if(i=o?o(e,r):B.isURLSearchParams(e)?e.toString():new H(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}$.append=function(t,e){this._pairs.push([t,e])},$.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 V=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){B.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var G={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:H,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function X(t){function e(t,r,n,o){let i=t[o++];const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&B.isArray(n)?n.length:i,a)return B.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&B.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&B.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(B.isFormData(t)&&B.isFunction(t.entries)){const r={};return B.forEachEntry(t,((t,n)=>{e(function(t){return B.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const Q={"Content-Type":void 0};const Z={transitional:K,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=B.isObject(t);o&&B.isHTMLForm(t)&&(t=new FormData(t));if(B.isFormData(t))return n&&n?JSON.stringify(X(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.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 G.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return G.isNode&&B.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=B.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(B.isString(t))try{return(e||JSON.parse)(t),B.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Z.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&B.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 U.from(t,U.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:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};B.forEach(["delete","get","head"],(function(t){Z.headers[t]={}})),B.forEach(["post","put","patch"],(function(t){Z.headers[t]=B.merge(Q)}));var Y=Z;const tt=B.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 et=Symbol("internals");function rt(t){return t&&String(t).trim().toLowerCase()}function nt(t){return!1===t||null==t?t:B.isArray(t)?t.map(nt):String(t)}function ot(t,e,r,n,o){return B.isFunction(n)?n.call(this,e,r):(o&&(e=r),B.isString(e)?B.isString(n)?-1!==e.indexOf(n):B.isRegExp(n)?n.test(e):void 0:void 0)}class it{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=rt(e);if(!o)throw new Error("header name must be a non-empty string");const i=B.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=nt(t))}const i=(t,e)=>B.forEach(t,((t,r)=>o(t,r,e)));return B.isPlainObject(t)||t instanceof this.constructor?i(t,e):B.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.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]&&tt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=rt(t)){const r=B.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(B.isFunction(e))return e.call(this,t,r);if(B.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=rt(t)){const r=B.findKey(this,t);return!(!r||void 0===this[r]||e&&!ot(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=rt(t)){const o=B.findKey(r,t);!o||e&&!ot(0,r[o],o,e)||(delete r[o],n=!0)}}return B.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&&!ot(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return B.forEach(this,((n,o)=>{const i=B.findKey(r,o);if(i)return e[i]=nt(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]=nt(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 B.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&B.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[et]=this[et]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=rt(t);e[n]||(!function(t,e){const r=B.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 B.isArray(t)?t.forEach(n):n(t),this}}it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.freezeMethods(it.prototype),B.freezeMethods(it);var st=it;function at(t,e){const r=this||Y,n=e||r,o=st.from(n.headers);let i=n.data;return B.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function ct(t){return!(!t||!t.__CANCEL__)}function ut(t,e,r){U.call(this,null==t?"canceled":t,U.ERR_CANCELED,e,r),this.name="CanceledError"}B.inherits(ut,U,{__CANCEL__:!0});var lt=G.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),B.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),B.isString(n)&&s.push("path="+n),B.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ft(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var pt=G.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=B.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function ht(t,e){let r=0;const n=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 o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a);r=i;const u={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:o};u[e?"download":"upload"]=!0,t(u)}}const dt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=st.from(t.headers).normalize(),i=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}B.isFormData(n)&&(G.isStandardBrowserEnv||G.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const u=ft(t.baseURL,t.url);function l(){if(!c)return;const n=st.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new U("Request failed with status code "+r.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),a()}),(function(t){r(t),a()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),W(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(r(new U("Request aborted",U.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||K;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new U(e,n.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,t,c)),c=null},G.isStandardBrowserEnv){const e=(t.withCredentials||pt(u))&&t.xsrfCookieName&&lt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&B.forEach(o.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),B.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&"json"!==i&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",ht(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ht(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{c&&(r(!e||e.type?new ut(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);f&&-1===G.protocols.indexOf(f)?r(new U("Unsupported protocol "+f+":",U.ERR_BAD_REQUEST,t)):c.send(n||null)}))}};B.forEach(dt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var yt=t=>{t=B.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;o<e&&(r=t[o],!(n=B.isString(r)?dt[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new U(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(B.hasOwnProp(dt,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!B.isFunction(n))throw new TypeError("adapter is not a function");return n};function gt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function vt(t){gt(t),t.headers=st.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 yt(t.adapter||Y.adapter)(t).then((function(e){return gt(t),e.data=at.call(t,t.transformResponse,e),e.headers=st.from(e.headers),e}),(function(e){return ct(e)||(gt(t),e&&e.response&&(e.response.data=at.call(t,t.transformResponse,e.response),e.response.headers=st.from(e.response.headers))),Promise.reject(e)}))}const mt=t=>t instanceof st?t.toJSON():t;function bt(t,e){e=e||{};const r={};function n(t,e,r){return B.isPlainObject(t)&&B.isPlainObject(e)?B.merge.call({caseless:r},t,e):B.isPlainObject(e)?B.merge({},e):B.isArray(e)?e.slice():e}function o(t,e,r){return B.isUndefined(e)?B.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!B.isUndefined(e))return n(void 0,e)}function s(t,e){return B.isUndefined(e)?B.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,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)=>o(mt(t),mt(e),!0)};return B.forEach(Object.keys(t).concat(Object.keys(e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);B.isUndefined(s)&&i!==a||(r[n]=s)})),r}const wt="1.3.4",Ot={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ot[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const jt={};Ot.transitional=function(t,e,r){function n(t,e){return"[Axios v1.3.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new U(n(o," has been removed"+(e?" in "+e:"")),U.ERR_DEPRECATED);return e&&!jt[o]&&(jt[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)}};var At={assertOptions:function(t,e,r){if("object"!=typeof t)throw new U("options must be an object",U.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 U("option "+i+" must be "+r,U.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new U("Unknown option "+i,U.ERR_BAD_OPTION)}},validators:Ot};const _t=At.validators;class Et{constructor(t){this.defaults=t,this.interceptors={request:new V,response:new V}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=bt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;let i;void 0!==r&&At.assertOptions(r,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),void 0!==n&&At.assertOptions(n,{encode:_t.function,serialize:_t.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&B.merge(o.common,o[e.method]),i&&B.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=st.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=[vt.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=vt.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 W(ft((t=bt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(t){Et.prototype[t]=function(e,r){return this.request(bt(r||{},{method:t,url:e,data:(r||{}).data}))}})),B.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(bt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Et.prototype[t]=e(),Et.prototype[t+"Form"]=e(!0)}));var St=Et;class xt{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 ut(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)}static source(){let t;return{token:new xt((function(e){t=e})),cancel:t}}}var Rt=xt;const Tt={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(Tt).forEach((t=>{let[e,r]=t;Tt[r]=e}));var Nt=Tt;const Pt=function e(r){const n=new St(r),o=t(St.prototype.request,n);return B.extend(o,St.prototype,n,{allOwnKeys:!0}),B.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(bt(r,t))},o}(Y);Pt.Axios=St,Pt.CanceledError=ut,Pt.CancelToken=Rt,Pt.isCancel=ct,Pt.VERSION=wt,Pt.toFormData=z,Pt.AxiosError=U,Pt.Cancel=Pt.CanceledError,Pt.all=function(t){return Promise.all(t)},Pt.spread=function(t){return function(e){return t.apply(null,e)}},Pt.isAxiosError=function(t){return B.isObject(t)&&!0===t.isAxiosError},Pt.mergeConfig=bt,Pt.AxiosHeaders=st,Pt.formToJSON=t=>X(B.isHTMLForm(t)?new FormData(t):t),Pt.HttpStatusCode=Nt,Pt.default=Pt;var Ct=Pt,Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ft=Array.isArray,Lt="object"==typeof Bt&&Bt&&Bt.Object===Object&&Bt,Dt=Lt,kt="object"==typeof self&&self&&self.Object===Object&&self,Mt=Dt||kt||Function("return this")(),It=Mt.Symbol,zt=It,qt=Object.prototype,Ht=qt.hasOwnProperty,$t=qt.toString,Jt=zt?zt.toStringTag:void 0;var Wt=function(t){var e=Ht.call(t,Jt),r=t[Jt];try{t[Jt]=void 0;var n=!0}catch(t){}var o=$t.call(t);return n&&(e?t[Jt]=r:delete t[Jt]),o},Vt=Object.prototype.toString;var Kt=Wt,Gt=function(t){return Vt.call(t)},Xt=It?It.toStringTag:void 0;var Qt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Xt&&Xt in Object(t)?Kt(t):Gt(t)};var Zt=function(t){return null!=t&&"object"==typeof t},Yt=Qt,te=Zt;var ee=function(t){return"symbol"==typeof t||te(t)&&"[object Symbol]"==Yt(t)},re=Ft,ne=ee,oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/;var se=function(t,e){if(re(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ne(t))||(ie.test(t)||!oe.test(t)||null!=e&&t in Object(e))};var ae=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ce=Qt,ue=ae;var le,fe=function(t){if(!ue(t))return!1;var e=ce(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},pe=Mt["__core-js_shared__"],he=(le=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var de=function(t){return!!he&&he in t},ye=Function.prototype.toString;var ge=fe,ve=de,me=ae,be=function(t){if(null!=t){try{return ye.call(t)}catch(t){}try{return t+""}catch(t){}}return""},we=/^\[object .+?Constructor\]$/,Oe=Function.prototype,je=Object.prototype,Ae=Oe.toString,_e=je.hasOwnProperty,Ee=RegExp("^"+Ae.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Se=function(t){return!(!me(t)||ve(t))&&(ge(t)?Ee:we).test(be(t))},xe=function(t,e){return null==t?void 0:t[e]};var Re=function(t,e){var r=xe(t,e);return Se(r)?r:void 0},Te=Re(Object,"create"),Ne=Te;var Pe=function(){this.__data__=Ne?Ne(null):{},this.size=0};var Ce=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Be=Te,Ue=Object.prototype.hasOwnProperty;var Fe=function(t){var e=this.__data__;if(Be){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Ue.call(e,t)?e[t]:void 0},Le=Te,De=Object.prototype.hasOwnProperty;var ke=Te;var Me=Pe,Ie=Ce,ze=Fe,qe=function(t){var e=this.__data__;return Le?void 0!==e[t]:De.call(e,t)},He=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ke&&void 0===e?"__lodash_hash_undefined__":e,this};function $e(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])}}$e.prototype.clear=Me,$e.prototype.delete=Ie,$e.prototype.get=ze,$e.prototype.has=qe,$e.prototype.set=He;var Je=$e;var We=function(){this.__data__=[],this.size=0};var Ve=function(t,e){return t===e||t!=t&&e!=e};var Ke=function(t,e){for(var r=t.length;r--;)if(Ve(t[r][0],e))return r;return-1},Ge=Ke,Xe=Array.prototype.splice;var Qe=Ke;var Ze=Ke;var Ye=Ke;var tr=We,er=function(t){var e=this.__data__,r=Ge(e,t);return!(r<0)&&(r==e.length-1?e.pop():Xe.call(e,r,1),--this.size,!0)},rr=function(t){var e=this.__data__,r=Qe(e,t);return r<0?void 0:e[r][1]},nr=function(t){return Ze(this.__data__,t)>-1},or=function(t,e){var r=this.__data__,n=Ye(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ir(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])}}ir.prototype.clear=tr,ir.prototype.delete=er,ir.prototype.get=rr,ir.prototype.has=nr,ir.prototype.set=or;var sr=ir,ar=Re(Mt,"Map"),cr=Je,ur=sr,lr=ar;var fr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var pr=function(t,e){var r=t.__data__;return fr(e)?r["string"==typeof e?"string":"hash"]:r.map},hr=pr;var dr=pr;var yr=pr;var gr=pr;var vr=function(){this.size=0,this.__data__={hash:new cr,map:new(lr||ur),string:new cr}},mr=function(t){var e=hr(this,t).delete(t);return this.size-=e?1:0,e},br=function(t){return dr(this,t).get(t)},wr=function(t){return yr(this,t).has(t)},Or=function(t,e){var r=gr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function jr(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])}}jr.prototype.clear=vr,jr.prototype.delete=mr,jr.prototype.get=br,jr.prototype.has=wr,jr.prototype.set=Or;var Ar=jr;function _r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");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(_r.Cache||Ar),r}_r.Cache=Ar;var Er=_r;var Sr=function(t){var e=Er(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e},xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rr=/\\(\\)?/g,Tr=Sr((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xr,(function(t,r,n,o){e.push(n?o.replace(Rr,"$1"):r||t)})),e}));var Nr=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},Pr=Ft,Cr=ee,Br=It?It.prototype:void 0,Ur=Br?Br.toString:void 0;var Fr=function t(e){if("string"==typeof e)return e;if(Pr(e))return Nr(e,t)+"";if(Cr(e))return Ur?Ur.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},Lr=Fr;var Dr=function(t){return null==t?"":Lr(t)},kr=Ft,Mr=se,Ir=Tr,zr=Dr;var qr=ee;var Hr=function(t,e){return kr(t)?t:Mr(t,e)?[t]:Ir(zr(t))},$r=function(t){if("string"==typeof t||qr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Jr=function(t,e){for(var r=0,n=(e=Hr(e,t)).length;null!=t&&r<n;)t=t[$r(e[r++])];return r&&r==n?t:void 0};var Wr=function(t,e,r){var n=null==t?void 0:Jr(t,e);return void 0===n?r:n},Vr={},Kr={get exports(){return Vr},set exports(t){Vr=t}};var Gr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};var Xr=function(t){return function(e,r,n){for(var o=-1,i=Object(e),s=n(e),a=s.length;a--;){var c=s[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();var Qr=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Zr=Qt,Yr=Zt;var tn=function(t){return Yr(t)&&"[object Arguments]"==Zr(t)},en=Zt,rn=Object.prototype,nn=rn.hasOwnProperty,on=rn.propertyIsEnumerable,sn=tn(function(){return arguments}())?tn:function(t){return en(t)&&nn.call(t,"callee")&&!on.call(t,"callee")},an=sn,cn={};var un=function(){return!1};!function(t,e){var r=Mt,n=un,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o?r.Buffer:void 0,a=(s?s.isBuffer:void 0)||n;t.exports=a}({get exports(){return cn},set exports(t){cn=t}},cn);var ln=/^(?:0|[1-9]\d*)$/;var fn=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ln.test(t))&&t>-1&&t%1==0&&t<e};var pn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},hn=Qt,dn=pn,yn=Zt,gn={};gn["[object Float32Array]"]=gn["[object Float64Array]"]=gn["[object Int8Array]"]=gn["[object Int16Array]"]=gn["[object Int32Array]"]=gn["[object Uint8Array]"]=gn["[object Uint8ClampedArray]"]=gn["[object Uint16Array]"]=gn["[object Uint32Array]"]=!0,gn["[object Arguments]"]=gn["[object Array]"]=gn["[object ArrayBuffer]"]=gn["[object Boolean]"]=gn["[object DataView]"]=gn["[object Date]"]=gn["[object Error]"]=gn["[object Function]"]=gn["[object Map]"]=gn["[object Number]"]=gn["[object Object]"]=gn["[object RegExp]"]=gn["[object Set]"]=gn["[object String]"]=gn["[object WeakMap]"]=!1;var vn=function(t){return yn(t)&&dn(t.length)&&!!gn[hn(t)]};var mn=function(t){return function(e){return t(e)}},bn={};!function(t,e){var r=Lt,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=s}({get exports(){return bn},set exports(t){bn=t}},bn);var wn=vn,On=mn,jn=bn&&bn.isTypedArray,An=jn?On(jn):wn,_n=Qr,En=an,Sn=Ft,xn=cn,Rn=fn,Tn=An,Nn=Object.prototype.hasOwnProperty;var Pn=function(t,e){var r=Sn(t),n=!r&&En(t),o=!r&&!n&&xn(t),i=!r&&!n&&!o&&Tn(t),s=r||n||o||i,a=s?_n(t.length,String):[],c=a.length;for(var u in t)!e&&!Nn.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Rn(u,c))||a.push(u);return a},Cn=Object.prototype;var Bn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Cn)};var Un=function(t,e){return function(r){return t(e(r))}},Fn=Un(Object.keys,Object),Ln=Bn,Dn=Fn,kn=Object.prototype.hasOwnProperty;var Mn=fe,In=pn;var zn=function(t){return null!=t&&In(t.length)&&!Mn(t)},qn=Pn,Hn=function(t){if(!Ln(t))return Dn(t);var e=[];for(var r in Object(t))kn.call(t,r)&&"constructor"!=r&&e.push(r);return e},$n=zn;var Jn=Xr,Wn=function(t){return $n(t)?qn(t):Hn(t)};var Vn=zn;var Kn=function(t,e){return function(r,n){if(null==r)return r;if(!Vn(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&&Jn(t,e,Wn)}));var Gn=function(t){return t};var Xn=Gr,Qn=Kn,Zn=function(t){return"function"==typeof t?t:Gn},Yn=Ft;var to=function(t,e){return(Yn(t)?Xn:Qn)(t,Zn(e))};!function(t){t.exports=to}(Kr);var eo=Ut(Vr);function ro(){return"undefined"!=typeof window&&void 0!==window.document}function no(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}var oo=/\s/;var io=function(t){for(var e=t.length;e--&&oo.test(t.charAt(e)););return e},so=/^\s+/;var ao=function(t){return t?t.slice(0,io(t)+1).replace(so,""):t},co=ae,uo=ee,lo=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,po=/^0o[0-7]+$/i,ho=parseInt;var yo=function(t){if("number"==typeof t)return t;if(uo(t))return NaN;if(co(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=co(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ao(t);var r=fo.test(t);return r||po.test(t)?ho(t.slice(2),r?2:8):lo.test(t)?NaN:+t},go=yo,vo=1/0;var mo=function(t){return t?(t=go(t))===vo||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},bo=mo;var wo=function(t){var e=bo(t),r=e%1;return e==e?r?e-r:e:0},Oo=wo;var jo=function(t){return"number"==typeof t&&t==Oo(t)};function Ao(t){return"[object String]"===Object.prototype.toString.call(t)}function _o(t){return!(!Ao(t)||""===t)}function Eo(t){let e=!1;return _o(t)?e=!isNaN(Number(t)):function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)&&(e=!0),e}function So(t){if(!Eo(t))return 0;return mo(t)}function xo(t){return!!Eo(t)&&(t=So(t),jo(t))}var Ro=wo,To=yo,No=Dr,Po=Mt.isFinite,Co=Math.min;var Bo=function(t){var e=Math[t];return function(t,r){if(t=To(t),(r=null==r?0:Co(Ro(r),292))&&Po(t)){var n=(No(t)+"e").split("e"),o=e(n[0]+"e"+(+n[1]+r));return+((n=(No(o)+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round");function Uo(t){if(!Eo(t))return 0;t=So(t);let e=Bo(t);return"0"===String(e)?0:e}function Fo(t){if(!xo(t))return!1;return Uo(t)>0}let Lo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Do=Lo.length;var ko={};!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,h=l.length;for(u=0;u<h;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 ko},set exports(t){ko=t}});var Mo=ko;function Io(){return new Mo}function zo(t){return function(){let e=no(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):!function(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}(r)?e.resolve({state:"success",msg:r}):r.then((function(t){e.resolve({state:"success",msg:t})})).catch((function(t){"cancelled"===Wr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})),e}}function qo(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function Ho(t){return"[object Array]"===Object.prototype.toString.call(t)}function $o(t){return"[object Object]"===Object.prototype.toString.call(t)}function Jo(t){if($o(t)){for(let e in t)return!1;return!0}return!1}function Wo(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!Jo(t)||(!!function(t){return!(!Ao(t)||""!==t)}(t)||!!function(t){return!!Ho(t)&&0===t.length}(t))))}function Vo(t){return!!Ho(t)&&(0!==t.length&&(1!==t.length||!Wo(t[0])))}function Ko(t,e){if(!_o(t))return"";if(!(xo(r=e)&&Uo(r)>=0))return"";var r;if(0===(e=Uo(e)))return"";let n=t.length-e;return n<0&&(n=0),t.substr(n,e)}function Go(t){if(!ro())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=no(),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 Xo(t){if($o(t)){for(let e in t)return!0;return!1}return!1}function Qo(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function Zo(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function Yo(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function ti(t){if(!(Qo(t)||(e=t,"[object Blob]"===Object.prototype.toString.call(e))||Zo(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 ei=Un(Object.getPrototypeOf,Object),ri=Qt,ni=ei,oi=Zt,ii=Function.prototype,si=Object.prototype,ai=ii.toString,ci=si.hasOwnProperty,ui=ai.call(Object);var li=Qt,fi=Zt,pi=function(t){if(!oi(t)||"[object Object]"!=ri(t))return!1;var e=ni(t);if(null===e)return!0;var r=ci.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&ai.call(r)==ui};var hi=function(t){if(!fi(t))return!1;var e=li(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!pi(t)};var di={};var yi,gi={},vi={get exports(){return gi},set exports(t){gi=t}};function mi(){return yi||(yi=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!==Bt&&Bt.crypto&&(r=Bt.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)))}},h=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=h.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.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 d.HMAC.init(t,r).finalize(e)}}});var d=i.algo={};return i}(Math),r)}(vi)),gi}!function(t,e){t.exports=mi().enc.Utf8}({get exports(){return di},set exports(t){di=t}});var bi=di,wi={};!function(t,e){var r;t.exports=(r=mi(),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 wi},set exports(t){wi=t}});var Oi=wi;function ji(t){if(!_o(t))return new Uint8Array;let e;try{e=function(t){if(!Ao(t))return new Uint8Array;let e=Oi.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(!_o(t))return"";let e=bi.parse(t);return Oi.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var Ai=Qt,_i=Zt;var Ei=function(t){return!0===t||!1===t||_i(t)&&"[object Boolean]"==Ai(t)};function Si(t){return Ei(t)}function xi(t,e){return function(t,e,r,n,o,i){if(!Eo(t))return null;if(!Zo(e))return null;if(!xo(r))return null;if(!Si(n))return null;if(!xo(o))return null;if(!xo(i))return null;let s,a,c;t=So(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,h=n?i-1:0,d=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+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+h]=255&s,h+=d,s/=256,u-=8);return e[r+h-d]|=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 Ri(t){let e=[],r=[];if(!Vo(t)&&!Xo(t))return null;let n=[],o=[];function i(t){n.push(ti(t)),o.push(t)}try{let s=function(t){if(!$o(t))return{results:"",binarys:[]};if(Jo(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(Zo(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(Qo(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return hi(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);i(ji(s.results)),eo(s.binarys,(t=>{i(t)}));let a=n,c=ji(JSON.stringify(a)),u=new Uint8Array(8);xi(ti(c),u),e.push(u),e.push(c),eo(o,(t=>{e.push(t)})),eo(e,(t=>{r=function(t,e){let r=ti(t),n=ti(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 Ti(t){return function(t,e,r,n,o){if(!Zo(t))return null;if(!xo(e))return null;if(!Si(r))return null;if(!xo(n))return null;if(!xo(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,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-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*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-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 Ni={};!function(t,e){var r;t.exports=(r=mi(),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 Ni},set exports(t){Ni=t}});var Pi=Ni;function Ci(t){if(!Zo(t))return"";let e;try{r=function(t){return Zo(t)?Pi.create(t).toString(Oi):""}(t),e=_o(r)?Oi.parse(r).toString(bi):""}catch(t){return""}var r;return e}function Bi(t){let e=null;if(!Zo(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,ti(t)),i=Ti(n),s=o.slice(0,i),a=o.slice(i,ti(o)),c=Ci(s),u=function(t,e){let r=0,n=0,o=[];return eo(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(!Xo(t))return{};let{results:e,binarys:r}=t;if(!_o(e))return{};if(!Ho(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(_o(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=Uo(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=Uo(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=Uo(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:Ci(u.shift()),binarys:u})}catch(t){}return e}return function(t){let e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];t=Fo(t)?Uo(t):32;for(let r=0;r<t;r++)e[r]=Lo[0|Math.random()*Do];return e.join("")}(),r=new Io;function n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];setTimeout((()=>{r.emit(t,...n)}),1)}function o(t,e){let r=Wr(e,"success",null),n=Wr(e,"error",null);if(null!==r){let e=Wr(r,"output");t.resolve(e)}else t.reject(n)}return r.execute=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=no();return n("triggerExecute",t,e,(function(t){o(i,t)}),r),i},r.broadcast=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=no();return n("triggerBroadcast",t,(function(t){o(r,t)}),e),r},r.deliver=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=no();return n("triggerDeliver",t,(function(t){o(r,t)}),e),r},function(){t.url||(t.url="http://localhost:8080"),t.apiName||(t.apiName="api"),t.timePolling||(t.timePolling=2e3),t.retry||(t.retry=3);let o="";function i(t,e){n("error",{msg:t,err:e})}async function s(t,e){let r;return r="browser"===t?await function(t){let e=no();return Go(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(e):new Uint8Array(e),r}function a(e,r){let n,i,a=no(),c=ro()?"browser":"nodejs",u=Ri(e);if(n="browser"===c?new Blob([u.buffer]):Buffer.from(u),"browser"===c)i=new FormData;else{if(!qo(t.FormData))throw console.log("invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");i=new t.FormData({maxDataSize:1073741824})}i.append("bb",n);let l="multipart/form-data";"nodejs"===c&&(l+=`; boundary=${i.getBoundary()}`);let f="blob";return"nodejs"===c&&(f="arraybuffer"),Ct({method:"POST",url:o,data:i,headers:{"Content-Type":l},timeout:3e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:f,onUploadProgress:function(t){let e=0,n=t.loaded,o=t.total;Fo(o)&&(e=100*n/o),qo(r)&&r(Math.floor(e),n,"upload")},onDownloadProgress:function(t){let e=0,n=t.loaded,o=t.total;Fo(o)&&(e=100*n/o),qo(r)&&r(Math.floor(e),n,"donwload")}}).then((async t=>{let e=Wr(t,"data"),r=Bi(await s(c,e));a.resolve(r)})).catch((async t=>{let r=Wr(t,"response.statusText")||Wr(t,"message"),n=Wr(t,"response.data")||Wr(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}console.log("err",t),e="Can not connect to server."}"Network Error"===e&&(e=`${e}. Make sure your space of hard drive is large enough or blocking by browser plugins.`),a.reject(e)})),a}function c(e,r,n){(async function(e,r){let n=await zo(a)(e,r),o=0;for(;"error"===n.state&&(o+=1,!(o>t.retry));)console.log(`retry n=${o}`),n=await zo(a)(e,r);return"success"===n.state?n.msg:Promise.reject(n.msg)})(e,n).then((t=>{r(t)})).catch((t=>{r({error:t})}))}function u(t,r,n,o){c({_mode:o,clientId:e,input:t},r,n)}o="/"===Ko(t.url,1)?t.url+t.apiName:t.url+"/"+t.apiName,r.removeAllListeners("triggerExecute"),r.on("triggerExecute",(function(t,r,n,o){c({_mode:"execute",clientId:e,func:t,input:r},n,o)})),r.removeAllListeners("triggerBroadcast"),r.on("triggerBroadcast",(function(t,e,r){u(t,e,r,"broadcast")})),r.removeAllListeners("triggerDeliver"),r.on("triggerDeliver",(function(t,e,r){u(t,e,r,"deliver")})),n("open"),n("openOnce"),setInterval((()=>{(function(){let t=no();function r(e){t.resolve(e)}return c({_mode:"polling",clientId:e},r,(()=>{})),t})().then((t=>{let e=Wr(t,"success.output",null);null!==e&&Vo(e)&&eo(e,((t,e)=>{setTimeout((()=>{"broadcast"===Wr(t,"mode")?n("broadcast",Wr(t,"data")):"deliver"===Wr(t,"mode")?n("deliver",Wr(t,"data")):i("invalid data.mode in polling",t)}),10*(e+1))}))})).catch((t=>{i("can not polling",t),n("reconn")}))}),t.timePolling)}(),r}}));
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(t,e){return function(){return t.apply(e,arguments)}}const{toString:e}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),t=>{const r=e.call(t);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const i=t=>(t=t.toLowerCase(),e=>n(e)===t),s=t=>e=>typeof e===t,{isArray:a}=Array,c=s("undefined");const u=i("ArrayBuffer");const l=s("string"),f=s("function"),p=s("number"),h=t=>null!==t&&"object"==typeof t,d=t=>{if("object"!==n(t))return!1;const e=r(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=i("Date"),g=i("File"),b=i("Blob"),m=i("FileList"),v=i("URLSearchParams");function w(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]),a(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 O(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 j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=t=>!c(t)&&t!==j;const A=(S="undefined"!=typeof Uint8Array&&r(Uint8Array),t=>S&&t instanceof S);var S;const E=i("HTMLFormElement"),x=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),R=i("RegExp"),T=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};w(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)},P="abcdefghijklmnopqrstuvwxyz",N="0123456789",C={DIGIT:N,ALPHA:P,ALPHA_DIGIT:P+P.toUpperCase()+N};const B=i("AsyncFunction");var U={isArray:a,isArrayBuffer:u,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||f(t.append)&&("formdata"===(e=n(t))||"object"===e&&f(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer),e},isString:l,isNumber:p,isBoolean:t=>!0===t||!1===t,isObject:h,isPlainObject:d,isUndefined:c,isDate:y,isFile:g,isBlob:b,isRegExp:R,isFunction:f,isStream:t=>h(t)&&f(t.pipe),isURLSearchParams:v,isTypedArray:A,isFileList:m,forEach:w,merge:function t(){const{caseless:e}=_(this)&&this||{},r={},n=(n,o)=>{const i=e&&O(r,o)||o;d(r[i])&&d(n)?r[i]=t(r[i],n):d(n)?r[i]=t({},n):a(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&w(arguments[t],n);return r},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return w(r,((r,o)=>{n&&f(r)?e[o]=t(r,n):e[o]=r}),{allOwnKeys:o}),e},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,n,o)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],o&&!o(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:n,kindOfTest:i,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(a(t))return t;let e=t.length;if(!p(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:E,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:T,freezeMethods:t=>{T(t,((e,r)=>{if(f(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];f(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 a(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)=>(t=+t,Number.isFinite(t)?t:e),findKey:O,global:j,isContextDefined:_,ALPHABET:C,generateString:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.ALPHA_DIGIT,r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&f(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(h(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=a(t)?[]:{};return w(t,((t,e)=>{const i=r(t,n+1);!c(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:B,isThenable:t=>t&&(h(t)||f(t))&&f(t.then)&&f(t.catch)};function F(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)}U.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const D=F.prototype,L={};["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=>{L[t]={value:t}})),Object.defineProperties(F,L),Object.defineProperty(D,"isAxiosError",{value:!0}),F.from=(t,e,r,n,o,i)=>{const s=Object.create(D);return U.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),F.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 U.isPlainObject(t)||U.isArray(t)}function M(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function z(t,e,r){return t?t.concat(e).map((function(t,e){return t=M(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const I=U.toFlatObject(U,{},null,(function(t){return/^is[A-Z]/.test(t)}));function q(t,e,r){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=U.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!U.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(U.isDate(t))return t.toISOString();if(!a&&U.isBlob(t))throw new F("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(t)||U.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(U.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(U.isArray(t)&&function(t){return U.isArray(t)&&!t.some(k)}(t)||(U.isFileList(t)||U.endsWith(r,"[]"))&&(a=U.toArray(t)))return r=M(r),a.forEach((function(t,n){!U.isUndefined(t)&&null!==t&&e.append(!0===s?z([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!k(t)||(e.append(z(o,r,i),c(t)),!1)}const l=[],f=Object.assign(I,{defaultVisitor:u,convertValue:c,isVisitable:k});if(!U.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!U.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),U.forEach(r,(function(r,i){!0===(!(U.isUndefined(r)||null===r)&&o.call(e,r,U.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function H(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function $(t,e){this._pairs=[],t&&q(t,this,e)}const J=$.prototype;function W(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V(t,e,r){if(!e)return t;const n=r&&r.encode||W,o=r&&r.serialize;let i;if(i=o?o(e,r):U.isURLSearchParams(e)?e.toString():new $(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}J.append=function(t,e){this._pairs.push([t,e])},J.toString=function(t){const e=t?function(e){return t.call(this,e,H)}:H;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var K=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){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},G={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function X(t){return X="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},X(t)}function Q(t){var e=function(t,e){if("object"!==X(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==X(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===X(e)?e:String(e)}function Z(t,e,r){return(e=Q(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Y={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:$,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const tt="undefined"!=typeof window&&"undefined"!=typeof document,et=(rt="undefined"!=typeof navigator&&navigator.product,tt&&["ReactNative","NativeScript","NS"].indexOf(rt)<0);var rt;const nt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;function ot(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 it(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(r),!0).forEach((function(e){Z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var st=it(it({},Object.freeze({__proto__:null,hasBrowserEnv:tt,hasStandardBrowserEnv:et,hasStandardBrowserWebWorkerEnv:nt})),Y);function at(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&&U.isArray(n)?n.length:i,a)return U.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&U.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&U.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(U.isFormData(t)&&U.isFunction(t.entries)){const r={};return U.forEachEntry(t,((t,n)=>{e(function(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const ct={transitional:G,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=U.isObject(t);o&&U.isHTMLForm(t)&&(t=new FormData(t));if(U.isFormData(t))return n?JSON.stringify(at(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.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 st.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return st.isNode&&U.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=U.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(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||ct.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&U.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 F.from(t,F.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:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],(t=>{ct.headers[t]={}}));var ut=ct;const lt=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ft=Symbol("internals");function pt(t){return t&&String(t).trim().toLowerCase()}function ht(t){return!1===t||null==t?t:U.isArray(t)?t.map(ht):String(t)}function dt(t,e,r,n,o){return U.isFunction(n)?n.call(this,e,r):(o&&(e=r),U.isString(e)?U.isString(n)?-1!==e.indexOf(n):U.isRegExp(n)?n.test(e):void 0:void 0)}class yt{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=pt(e);if(!o)throw new Error("header name must be a non-empty string");const i=U.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=ht(t))}const i=(t,e)=>U.forEach(t,((t,r)=>o(t,r,e)));return U.isPlainObject(t)||t instanceof this.constructor?i(t,e):U.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]&&lt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=pt(t)){const r=U.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(U.isFunction(e))return e.call(this,t,r);if(U.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=pt(t)){const r=U.findKey(this,t);return!(!r||void 0===this[r]||e&&!dt(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=pt(t)){const o=U.findKey(r,t);!o||e&&!dt(0,r[o],o,e)||(delete r[o],n=!0)}}return U.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&&!dt(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return U.forEach(this,((n,o)=>{const i=U.findKey(r,o);if(i)return e[i]=ht(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]=ht(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 U.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&U.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[ft]=this[ft]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=pt(t);e[n]||(!function(t,e){const r=U.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 U.isArray(t)?t.forEach(n):n(t),this}}yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(yt.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),U.freezeMethods(yt);var gt=yt;function bt(t,e){const r=this||ut,n=e||r,o=gt.from(n.headers);let i=n.data;return U.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function mt(t){return!(!t||!t.__CANCEL__)}function vt(t,e,r){F.call(this,null==t?"canceled":t,F.ERR_CANCELED,e,r),this.name="CanceledError"}U.inherits(vt,F,{__CANCEL__:!0});var wt=st.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];U.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),U.isString(n)&&s.push("path="+n),U.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 Ot(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var jt=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=U.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function _t(t,e){let r=0;const n=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 o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a);r=i;const u={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:o};u[e?"download":"upload"]=!0,t(u)}}const At={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=gt.from(t.headers).normalize();let i,s,{responseType:a,withXSRFToken:c}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}if(U.isFormData(n))if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[t,...e]=s?s.split(";").map((t=>t.trim())).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let l=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const f=Ot(t.baseURL,t.url);function p(){if(!l)return;const n=gt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),u()}),(function(t){r(t),u()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:t,request:l}),l=null}if(l.open(t.method.toUpperCase(),V(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(p)},l.onabort=function(){l&&(r(new F("Request aborted",F.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||G;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new F(e,n.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,l)),l=null},st.hasStandardBrowserEnv&&(c&&U.isFunction(c)&&(c=c(t)),c||!1!==c&&jt(f))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&wt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in l&&U.forEach(o.toJSON(),(function(t,e){l.setRequestHeader(e,t)})),U.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",_t(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",_t(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{l&&(r(!e||e.type?new vt(null,t,l):e),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);h&&-1===st.protocols.indexOf(h)?r(new F("Unsupported protocol "+h+":",F.ERR_BAD_REQUEST,t)):l.send(n||null)}))}};U.forEach(At,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const St=t=>`- ${t}`,Et=t=>U.isFunction(t)||null===t||!1===t;var xt={getAdapter:t=>{t=U.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,!Et(r)&&(n=At[(e=String(r)).toLowerCase()],void 0===n))throw new F(`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 F("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(St).join("\n"):" "+St(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:At};function Rt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new vt(null,t)}function Tt(t){Rt(t),t.headers=gt.from(t.headers),t.data=bt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return xt.getAdapter(t.adapter||ut.adapter)(t).then((function(e){return Rt(t),e.data=bt.call(t,t.transformResponse,e),e.headers=gt.from(e.headers),e}),(function(e){return mt(e)||(Rt(t),e&&e.response&&(e.response.data=bt.call(t,t.transformResponse,e.response),e.response.headers=gt.from(e.response.headers))),Promise.reject(e)}))}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}const Nt=t=>t instanceof gt?function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(r),!0).forEach((function(e){Z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t):t;function Ct(t,e){e=e||{};const r={};function n(t,e,r){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge.call({caseless:r},t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(t,e,r){return U.isUndefined(e)?U.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!U.isUndefined(e))return n(void 0,e)}function s(t,e){return U.isUndefined(e)?U.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)=>o(Nt(t),Nt(e),!0)};return U.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);U.isUndefined(s)&&i!==a||(r[n]=s)})),r}const Bt="1.6.8",Ut={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ut[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const Ft={};Ut.transitional=function(t,e,r){function n(t,e){return"[Axios v1.6.8] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new F(n(o," has been removed"+(e?" in "+e:"")),F.ERR_DEPRECATED);return e&&!Ft[o]&&(Ft[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)}};var Dt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new F("options must be an object",F.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 F("option "+i+" must be "+r,F.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new F("Unknown option "+i,F.ERR_BAD_OPTION)}},validators:Ut};const Lt=Dt.validators;class kt{constructor(t){this.defaults=t,this.interceptors={request:new K,response:new K}}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/,""):"";t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Ct(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&Dt.assertOptions(r,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean)},!1),null!=n&&(U.isFunction(n)?e.paramsSerializer={serialize:n}:Dt.assertOptions(n,{encode:Lt.function,serialize:Lt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&U.merge(o.common,o[e.method]);o&&U.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=gt.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=[Tt.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=Tt.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 V(Ot((t=Ct(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}U.forEach(["delete","get","head","options"],(function(t){kt.prototype[t]=function(e,r){return this.request(Ct(r||{},{method:t,url:e,data:(r||{}).data}))}})),U.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Ct(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}kt.prototype[t]=e(),kt.prototype[t+"Form"]=e(!0)}));var Mt=kt;class zt{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 vt(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)}static source(){let t;return{token:new zt((function(e){t=e})),cancel:t}}}var It=zt;const qt={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(qt).forEach((t=>{let[e,r]=t;qt[r]=e}));var Ht=qt;const $t=function e(r){const n=new Mt(r),o=t(Mt.prototype.request,n);return U.extend(o,Mt.prototype,n,{allOwnKeys:!0}),U.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(Ct(r,t))},o}(ut);$t.Axios=Mt,$t.CanceledError=vt,$t.CancelToken=It,$t.isCancel=mt,$t.VERSION=Bt,$t.toFormData=q,$t.AxiosError=F,$t.Cancel=$t.CanceledError,$t.all=function(t){return Promise.all(t)},$t.spread=function(t){return function(e){return t.apply(null,e)}},$t.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError},$t.mergeConfig=Ct,$t.AxiosHeaders=gt,$t.formToJSON=t=>at(U.isHTMLForm(t)?new FormData(t):t),$t.getAdapter=xt.getAdapter,$t.HttpStatusCode=Ht,$t.default=$t;var Jt=$t,Wt=Array.isArray,Vt="object"==typeof global&&global&&global.Object===Object&&global,Kt="object"==typeof self&&self&&self.Object===Object&&self,Gt=Vt||Kt||Function("return this")(),Xt=Gt.Symbol,Qt=Object.prototype,Zt=Qt.hasOwnProperty,Yt=Qt.toString,te=Xt?Xt.toStringTag:void 0;var ee=Object.prototype.toString;var re="[object Null]",ne="[object Undefined]",oe=Xt?Xt.toStringTag:void 0;function ie(t){return null==t?void 0===t?ne:re:oe&&oe in Object(t)?function(t){var e=Zt.call(t,te),r=t[te];try{t[te]=void 0;var n=!0}catch(t){}var o=Yt.call(t);return n&&(e?t[te]=r:delete t[te]),o}(t):function(t){return ee.call(t)}(t)}function se(t){return null!=t&&"object"==typeof t}var ae="[object Symbol]";function ce(t){return"symbol"==typeof t||se(t)&&ie(t)==ae}var ue=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,le=/^\w*$/;function fe(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var pe="[object AsyncFunction]",he="[object Function]",de="[object GeneratorFunction]",ye="[object Proxy]";function ge(t){if(!fe(t))return!1;var e=ie(t);return e==he||e==de||e==pe||e==ye}var be,me=Gt["__core-js_shared__"],ve=(be=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"";var we=Function.prototype.toString;var Oe=/^\[object .+?Constructor\]$/,je=Function.prototype,_e=Object.prototype,Ae=je.toString,Se=_e.hasOwnProperty,Ee=RegExp("^"+Ae.call(Se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xe(t){return!(!fe(t)||(e=t,ve&&ve in e))&&(ge(t)?Ee:Oe).test(function(t){if(null!=t){try{return we.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Re(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return xe(r)?r:void 0}var Te=Re(Object,"create");var Pe=Object.prototype.hasOwnProperty;var Ne=Object.prototype.hasOwnProperty;function Ce(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 Be(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}Ce.prototype.clear=function(){this.__data__=Te?Te(null):{},this.size=0},Ce.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ce.prototype.get=function(t){var e=this.__data__;if(Te){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Pe.call(e,t)?e[t]:void 0},Ce.prototype.has=function(t){var e=this.__data__;return Te?void 0!==e[t]:Ne.call(e,t)},Ce.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Te&&void 0===e?"__lodash_hash_undefined__":e,this};var Ue=Array.prototype.splice;function Fe(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])}}Fe.prototype.clear=function(){this.__data__=[],this.size=0},Fe.prototype.delete=function(t){var e=this.__data__,r=Be(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ue.call(e,r,1),--this.size,!0)},Fe.prototype.get=function(t){var e=this.__data__,r=Be(e,t);return r<0?void 0:e[r][1]},Fe.prototype.has=function(t){return Be(this.__data__,t)>-1},Fe.prototype.set=function(t,e){var r=this.__data__,n=Be(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var De=Re(Gt,"Map");function Le(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 ke(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])}}ke.prototype.clear=function(){this.size=0,this.__data__={hash:new Ce,map:new(De||Fe),string:new Ce}},ke.prototype.delete=function(t){var e=Le(this,t).delete(t);return this.size-=e?1:0,e},ke.prototype.get=function(t){return Le(this,t).get(t)},ke.prototype.has=function(t){return Le(this,t).has(t)},ke.prototype.set=function(t,e){var r=Le(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var Me="Expected a function";function ze(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Me);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(ze.Cache||ke),r}ze.Cache=ke;var Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/\\(\\)?/g,He=function(t){var e=ze(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(Ie,(function(t,r,n,o){e.push(n?o.replace(qe,"$1"):r||t)})),e})),$e=He;var Je=1/0,We=Xt?Xt.prototype:void 0,Ve=We?We.toString:void 0;function Ke(t){if("string"==typeof t)return t;if(Wt(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,Ke)+"";if(ce(t))return Ve?Ve.call(t):"";var e=t+"";return"0"==e&&1/t==-Je?"-0":e}function Ge(t){return null==t?"":Ke(t)}function Xe(t,e){return Wt(t)?t:function(t,e){if(Wt(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ce(t))||le.test(t)||!ue.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:$e(Ge(t))}var Qe=1/0;function Ze(t){if("string"==typeof t||ce(t))return t;var e=t+"";return"0"==e&&1/t==-Qe?"-0":e}function Ye(t,e,r){var n=null==t?void 0:function(t,e){for(var r=0,n=(e=Xe(e,t)).length;null!=t&&r<n;)t=t[Ze(e[r++])];return r&&r==n?t:void 0}(t,e);return void 0===n?r:n}function tr(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var er,rr=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var a=i[er?s:++n];if(!1===e(o[a],a,o))break}return t};function nr(t){return se(t)&&"[object Arguments]"==ie(t)}var or=Object.prototype,ir=or.hasOwnProperty,sr=or.propertyIsEnumerable,ar=nr(function(){return arguments}())?nr:function(t){return se(t)&&ir.call(t,"callee")&&!sr.call(t,"callee")},cr=ar;var ur="object"==typeof exports&&exports&&!exports.nodeType&&exports,lr=ur&&"object"==typeof module&&module&&!module.nodeType&&module,fr=lr&&lr.exports===ur?Gt.Buffer:void 0,pr=(fr?fr.isBuffer:void 0)||function(){return!1},hr=9007199254740991,dr=/^(?:0|[1-9]\d*)$/;function yr(t,e){var r=typeof t;return!!(e=null==e?hr:e)&&("number"==r||"symbol"!=r&&dr.test(t))&&t>-1&&t%1==0&&t<e}var gr=9007199254740991;function br(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gr}var mr={};mr["[object Float32Array]"]=mr["[object Float64Array]"]=mr["[object Int8Array]"]=mr["[object Int16Array]"]=mr["[object Int32Array]"]=mr["[object Uint8Array]"]=mr["[object Uint8ClampedArray]"]=mr["[object Uint16Array]"]=mr["[object Uint32Array]"]=!0,mr["[object Arguments]"]=mr["[object Array]"]=mr["[object ArrayBuffer]"]=mr["[object Boolean]"]=mr["[object DataView]"]=mr["[object Date]"]=mr["[object Error]"]=mr["[object Function]"]=mr["[object Map]"]=mr["[object Number]"]=mr["[object Object]"]=mr["[object RegExp]"]=mr["[object Set]"]=mr["[object String]"]=mr["[object WeakMap]"]=!1;var vr,wr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Or=wr&&"object"==typeof module&&module&&!module.nodeType&&module,jr=Or&&Or.exports===wr&&Vt.process,_r=function(){try{var t=Or&&Or.require&&Or.require("util").types;return t||jr&&jr.binding&&jr.binding("util")}catch(t){}}(),Ar=_r&&_r.isTypedArray,Sr=Ar?(vr=Ar,function(t){return vr(t)}):function(t){return se(t)&&br(t.length)&&!!mr[ie(t)]},Er=Object.prototype.hasOwnProperty;function xr(t,e){var r=Wt(t),n=!r&&cr(t),o=!r&&!n&&pr(t),i=!r&&!n&&!o&&Sr(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&&!Er.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yr(u,c))||a.push(u);return a}var Rr=Object.prototype;function Tr(t,e){return function(r){return t(e(r))}}var Pr=Tr(Object.keys,Object),Nr=Object.prototype.hasOwnProperty;function Cr(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Rr))return Pr(t);var e,r,n=[];for(var o in Object(t))Nr.call(t,o)&&"constructor"!=o&&n.push(o);return n}function Br(t){return null!=t&&br(t.length)&&!ge(t)}function Ur(t){return Br(t)?xr(t):Cr(t)}var Fr=function(t,e){return function(r,n){if(null==r)return r;if(!Br(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&&rr(t,e,Ur)})),Dr=Fr;function Lr(t){return t}function kr(t,e){var r;return(Wt(t)?tr:Dr)(t,"function"==typeof(r=e)?r:Lr)}function Mr(){return"undefined"!=typeof window&&void 0!==window.document}function zr(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}var Ir=/\s/;var qr=/^\s+/;function Hr(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Ir.test(t.charAt(e)););return e}(t)+1).replace(qr,""):t}var $r=NaN,Jr=/^[-+]0x[0-9a-f]+$/i,Wr=/^0b[01]+$/i,Vr=/^0o[0-7]+$/i,Kr=parseInt;function Gr(t){if("number"==typeof t)return t;if(ce(t))return $r;if(fe(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=fe(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Hr(t);var r=Wr.test(t);return r||Vr.test(t)?Kr(t.slice(2),r?2:8):Jr.test(t)?$r:+t}var Xr=1/0,Qr=17976931348623157e292;function Zr(t){return t?(t=Gr(t))===Xr||t===-Xr?(t<0?-1:1)*Qr:t==t?t:0:0===t?t:0}function Yr(t){var e=Zr(t),r=e%1;return e==e?r?e-r:e:0}function tn(t){return"[object String]"===Object.prototype.toString.call(t)}function en(t){return!(!tn(t)||""===t)}function rn(t){return t!=t}function nn(t){let e=!1;if(en(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(rn(t))return!1;e=!0}return e}function on(t){if(!nn(t))return 0;return Zr(t)}function sn(t){return!!nn(t)&&(t=on(t),"number"==typeof(e=t)&&e==Yr(e));var e}var an=Gt.isFinite,cn=Math.min;var un=function(t){var e=Math[t];return function(t,r){if(t=Gr(t),(r=null==r?0:cn(Yr(r),292))&&an(t)){var n=(Ge(t)+"e").split("e");return+((n=(Ge(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round"),ln=un;function fn(t){if(!nn(t))return 0;t=on(t);let e=ln(t);return"0"===String(e)?0:e}function pn(t){if(!sn(t))return!1;return fn(t)>0}let hn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),dn=hn.length;var yn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},gn={};!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,h=l.length;for(u=0;u<h;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 gn},set exports(t){gn=t}});var bn=gn;function mn(){return new bn}function vn(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}let wn=function(t){if(!vn(t))throw new Error("fn is not a function");return function(){let e=zr(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):!function(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}(r)?e.resolve({state:"success",msg:r}):r.then((t=>{e.resolve({state:"success",msg:t})})).catch((t=>{"cancelled"===Ye(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})),e}};function On(t){return"[object Array]"===Object.prototype.toString.call(t)}function jn(t){return"[object Object]"===Object.prototype.toString.call(t)}function _n(t){if(jn(t)){for(let e in t)return!1;return!0}return!1}function An(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!_n(t)||(!!function(t){return!(!tn(t)||""!==t)}(t)||(!!function(t){return!!On(t)&&0===t.length}(t)||!!rn(t)))))}function Sn(t){return!!On(t)&&(0!==t.length&&(1!==t.length||!An(t[0])))}function En(t,e){if(!en(t))return"";if(!(sn(r=e)&&fn(r)>=0))return"";var r;if(0===(e=fn(e)))return"";let n=t.length-e;return n<0&&(n=0),t.substr(n,e)}function xn(t){if(!Mr())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=zr(),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 Rn(t){if(jn(t)){for(let e in t)return!0;return!1}return!1}function Tn(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function Pn(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function Nn(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function Cn(t){if(!(Tn(t)||(e=t,"[object Blob]"===Object.prototype.toString.call(e))||Pn(t)||Nn(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 Bn=Tr(Object.getPrototypeOf,Object),Un="[object Object]",Fn=Function.prototype,Dn=Object.prototype,Ln=Fn.toString,kn=Dn.hasOwnProperty,Mn=Ln.call(Object);var zn="[object DOMException]",In="[object Error]";function qn(t){if(!se(t))return!1;var e=ie(t);return e==In||e==zn||"string"==typeof t.message&&"string"==typeof t.name&&!function(t){if(!se(t)||ie(t)!=Un)return!1;var e=Bn(t);if(null===e)return!0;var r=kn.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==Mn}(t)}var Hn={};var $n,Jn={},Wn={get exports(){return Jn},set exports(t){Jn=t}};function Vn(){return $n||($n=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!==yn&&yn.crypto&&(r=yn.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)))}},h=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=h.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.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 d.HMAC.init(t,r).finalize(e)}}});var d=i.algo={};return i}(Math),r)}(Wn)),Jn}!function(t,e){t.exports=Vn().enc.Utf8}({get exports(){return Hn},set exports(t){Hn=t}});var Kn=Hn,Gn={};!function(t,e){var r;t.exports=(r=Vn(),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 Gn},set exports(t){Gn=t}});var Xn=Gn;function Qn(t){if(!en(t))return new Uint8Array;let e;try{e=function(t){if(!tn(t))return new Uint8Array;let e=Xn.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(!en(t))return"";let e=Kn.parse(t);return Xn.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var Zn="[object Boolean]";function Yn(t){return!0===(e=t)||!1===e||se(e)&&ie(e)==Zn;var e}function to(t,e){return function(t,e,r,n,o,i){if(!nn(t))return null;if(!Pn(e))return null;if(!sn(r))return null;if(!Yn(n))return null;if(!sn(o))return null;if(!sn(i))return null;let s,a,c;t=on(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,h=n?i-1:0,d=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+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+h]=255&s,h+=d,s/=256,u-=8);return e[r+h-d]|=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 eo(t){let e=[],r=[];if(!Sn(t)&&!Rn(t))return null;let n=[],o=[];function i(t){n.push(Cn(t)),o.push(t)}try{let s=function(t){if(!jn(t))return{results:"",binarys:[]};if(_n(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(Pn(e)){n+=1;let t=`[Uint8Array]::${n}`;return r.push(e),t}if(Nn(e)){n+=1;let t=`[Uint16Array]::${n}`;return r.push(e),t}if(Tn(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return qn(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);i(Qn(s.results)),kr(s.binarys,(t=>{i(t)}));let a=n,c=Qn(JSON.stringify(a)),u=new Uint8Array(8);to(Cn(c),u),e.push(u),e.push(c),kr(o,(t=>{e.push(t)})),kr(e,(t=>{r=function(t,e){let r=Cn(t),n=Cn(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 ro(t){return function(t,e,r,n,o){if(!Pn(t))return null;if(!sn(e))return null;if(!Yn(r))return null;if(!sn(n))return null;if(!sn(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,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-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*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-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 no={};!function(t,e){var r;t.exports=(r=Vn(),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 no},set exports(t){no=t}});var oo=no;function io(t){if(!Pn(t))return"";let e;try{r=function(t){return Pn(t)?oo.create(t).toString(Xn):""}(t),e=en(r)?Xn.parse(r).toString(Kn):""}catch(t){return""}var r;return e}function so(t){let e=null;if(!Pn(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,Cn(t)),i=ro(n),s=o.slice(0,i),a=o.slice(i,Cn(o)),c=io(s),u=function(t,e){let r=0,n=0,o=[];return kr(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(!Rn(t))return{};let{results:e,binarys:r}=t;if(!en(e))return{};if(!On(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(en(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=fn(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=fn(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=fn(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:io(u.shift()),binarys:u})}catch(t){}return e}return function(t){let e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];t=pn(t)?fn(t):32;for(let r=0;r<t;r++)e[r]=hn[0|Math.random()*dn];return e.join("")}(),r=new mn;function n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];setTimeout((()=>{r.emit(t,...n)}),1)}function o(t,e){let r=Ye(e,"success",null),n=Ye(e,"error",null);if(null!==r){let e=Ye(r,"output");t.resolve(e)}else t.reject(n)}return r.execute=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=zr();return n("triggerExecute",t,e,(function(t){o(i,t)}),r),i},r.broadcast=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=zr();return n("triggerBroadcast",t,(function(t){o(r,t)}),e),r},r.deliver=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=zr();return n("triggerDeliver",t,(function(t){o(r,t)}),e),r},function(){t.url||(t.url="http://localhost:8080"),t.apiName||(t.apiName="api"),t.timePolling||(t.timePolling=2e3),t.retry||(t.retry=3);let o="";function i(t,e){n("error",{msg:t,err:e})}async function s(t,e){let r;return r="browser"===t?await function(t){let e=zr();return xn(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(e):new Uint8Array(e),r}function a(e,r){let n,i,a=zr(),c=Mr()?"browser":"nodejs",u=eo(e);if(n="browser"===c?new Blob([u.buffer]):Buffer.from(u),"browser"===c)i=new FormData;else{if(!vn(t.FormData))throw console.log("invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");i=new t.FormData({maxDataSize:1073741824})}i.append("bb",n);let l="multipart/form-data";"nodejs"===c&&(l+=`; boundary=${i.getBoundary()}`);let f="blob";return"nodejs"===c&&(f="arraybuffer"),Jt({method:"POST",url:o,data:i,headers:{"Content-Type":l},timeout:3e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:f,onUploadProgress:function(t){let e=0,n=t.loaded,o=t.total;pn(o)&&(e=100*n/o),vn(r)&&r(Math.floor(e),n,"upload")},onDownloadProgress:function(t){let e=0,n=t.loaded,o=t.total;pn(o)&&(e=100*n/o),vn(r)&&r(Math.floor(e),n,"donwload")}}).then((async t=>{let e=Ye(t,"data"),r=so(await s(c,e));a.resolve(r)})).catch((async t=>{let r=Ye(t,"response.statusText")||Ye(t,"message"),n=Ye(t,"response.data")||Ye(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}console.log("err",t),e="Can not connect to server."}"Network Error"===e&&(e=`${e}. Make sure your space of hard drive is large enough or blocking by browser plugins.`),a.reject(e)})),a}function c(e,r,n){(async function(e,r){let n=await wn(a)(e,r),o=0;for(;"error"===n.state&&(o+=1,!(o>t.retry));)console.log(`retry n=${o}`),n=await wn(a)(e,r);return"success"===n.state?n.msg:Promise.reject(n.msg)})(e,n).then((t=>{r(t)})).catch((t=>{r({error:t})}))}function u(t,r,n,o){c({_mode:o,clientId:e,input:t},r,n)}o="/"===En(t.url,1)?t.url+t.apiName:t.url+"/"+t.apiName,r.removeAllListeners("triggerExecute"),r.on("triggerExecute",(function(t,r,n,o){c({_mode:"execute",clientId:e,func:t,input:r},n,o)})),r.removeAllListeners("triggerBroadcast"),r.on("triggerBroadcast",(function(t,e,r){u(t,e,r,"broadcast")})),r.removeAllListeners("triggerDeliver"),r.on("triggerDeliver",(function(t,e,r){u(t,e,r,"deliver")})),n("open"),n("openOnce"),setInterval((()=>{(function(){let t=zr();function r(e){t.resolve(e)}return c({_mode:"polling",clientId:e},r,(()=>{})),t})().then((t=>{let e=Ye(t,"success.output",null);null!==e&&Sn(e)&&kr(e,((t,e)=>{setTimeout((()=>{"broadcast"===Ye(t,"mode")?n("broadcast",Ye(t,"data")):"deliver"===Ye(t,"mode")?n("deliver",Ye(t,"data")):i("invalid data.mode in polling",t)}),10*(e+1))}))})).catch((t=>{i("can not polling",t),n("reconn")}))}),t.timePolling)}(),r}}));
7
7
  //# sourceMappingURL=w-converhp-client.umd.js.map