newt-client-js 3.3.16 → 3.3.17

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).newtClient={})}(this,(function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:o,toStringTag:i}=Symbol,a=(s=Object.create(null),e=>{const t=r.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),l=e=>t=>typeof t===e,{isArray:u}=Array,f=l("undefined");function p(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=c("ArrayBuffer");const y=l("string"),h=l("function"),m=l("number"),g=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||i in e||o in e)},w=c("Date"),E=c("File"),v=c("Blob"),O=c("FileList");const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},R=void 0!==S.FormData?S.FormData:void 0,A=c("URLSearchParams"),[_,j,T,P]=["ReadableStream","Request","Response","Headers"].map(c);function N(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(p(e))return;const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(r=0;r<i;r++)a=n[r],t.call(null,e[a],a,e)}}function x(e,t){if(p(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!f(e)&&e!==U;const D=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),L=c("HTMLFormElement"),I=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),F=c("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};N(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const B=c("AsyncFunction"),M=(q="function"==typeof setImmediate,W=h(U.postMessage),q?setImmediate:W?($=`axios@${Math.random()}`,H=[],U.addEventListener("message",(e=>{let{source:t,data:r}=e;t===U&&r===$&&H.length&&H.shift()()}),!1),e=>{H.push(e),U.postMessage($,"*")}):e=>setTimeout(e));var q,W,$,H;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||M;var K={isArray:u,isArrayBuffer:d,isBuffer:p,isFormData:e=>{let t;return e&&(R&&e instanceof R||h(e.append)&&("formdata"===(t=a(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:y,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isEmptyObject:e=>{if(!g(e)||p(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_,isRequest:j,isResponse:T,isHeaders:P,isUndefined:f,isDate:w,isFile:E,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:v,isRegExp:F,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:A,isTypedArray:D,isFileList:O,forEach:N,merge:function e(){const{caseless:t,skipUndefined:r}=C(this)&&this||{},n={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=t&&x(n,i)||i;b(n[a])&&b(o)?n[a]=e(n[a],o):b(o)?n[a]=e({},o):u(o)?n[a]=o.slice():r&&f(o)||(n[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&N(arguments[e],o);return n},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return N(r,((r,o)=>{n&&h(r)?Object.defineProperty(e,o,{value:t(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:r,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:o}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,o)=>{let i,a,s;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:L,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:U,isContextDefined:C,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[i]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(p(e))return e;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return N(e,((e,t)=>{const i=r(e,n+1);!f(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:B,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:M,asap:z,isIterable:e=>null!=e&&h(e[o])};class V extends Error{static from(e,t,r,n,o,i){const a=new V(e.message,t||e.code,r,n,o);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:K.toJSONObject(this.config),code:this.code,status:this.status}}}V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",V.ERR_BAD_OPTION="ERR_BAD_OPTION",V.ECONNABORTED="ECONNABORTED",V.ETIMEDOUT="ETIMEDOUT",V.ERR_NETWORK="ERR_NETWORK",V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",V.ERR_DEPRECATED="ERR_DEPRECATED",V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",V.ERR_BAD_REQUEST="ERR_BAD_REQUEST",V.ERR_CANCELED="ERR_CANCELED",V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",V.ERR_INVALID_URL="ERR_INVALID_URL";var G=V;function J(e){return K.isPlainObject(e)||K.isArray(e)}function Q(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=Q(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Y=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,r){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!s&&K.isBlob(e))throw new G("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let s=e;if(K.isReactNative(t)&&K.isReactNativeBlob(e))return t.append(X(o,r,i),c(e)),!1;if(e&&!o&&"object"==typeof e)if(K.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(J)}(e)||(K.isFileList(e)||K.endsWith(r,"[]"))&&(s=K.toArray(e)))return r=Q(r),s.forEach((function(e,n){!K.isUndefined(e)&&null!==e&&t.append(!0===a?X([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!J(e)||(t.append(X(o,r,i),c(e)),!1)}const u=[],f=Object.assign(Y,{defaultVisitor:l,convertValue:c,isVisitable:J});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!K.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),K.forEach(r,(function(r,i){!0===(!(K.isUndefined(r)||null===r)&&o.call(t,r,K.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),u.pop()}}(e),t}function ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function te(e,t){this._pairs=[],e&&Z(e,this,t)}const re=te.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ne,o=K.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(a=i?i(t,o):K.isURLSearchParams(t)?t.toString():new te(t,o).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}re.append=function(e,t){this._pairs.push([e,t])},re.toString=function(e){const t=e?function(t){return e.call(this,t,ee)}:ee;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:te,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ce="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,ue=ce&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pe=ce&&window.location.href||"http://localhost";var de={...Object.freeze({__proto__:null,hasBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:fe,hasStandardBrowserEnv:ue,navigator:le,origin:pe}),...se};function ye(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&K.isArray(n)?n.length:i,s)return K.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&K.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&K.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a}if(K.isFormData(e)&&K.isFunction(e.entries)){const r={};return K.forEachEntry(e,((e,n)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const he={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=K.isObject(e);o&&K.isHTMLForm(e)&&(e=new FormData(e));if(K.isFormData(e))return n?JSON.stringify(ye(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,r,n){return de.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw G.from(e,G.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{he.headers[e]={}}));var me=he;const ge=K.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 be=Symbol("internals");function we(e,t){if(!1!==e&&null!=e)if(K.isArray(e))e.forEach((e=>we(e,t)));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function Ee(e){return e&&String(e).trim().toLowerCase()}function ve(e){return!1===e||null==e?e:K.isArray(e)?e.map(ve):function(e){let t=e.length;for(;t>0;){const r=e.charCodeAt(t-1);if(10!==r&&13!==r)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function Oe(e,t,r,n,o){return K.isFunction(n)?n.call(this,t,r):(o&&(t=r),K.isString(t)?K.isString(n)?-1!==t.indexOf(n):K.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Ee(t);if(!o)throw new Error("header name must be a non-empty string");const i=K.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(we(e,t),n[i||t]=ve(e))}const i=(e,t)=>K.forEach(e,((e,r)=>o(e,r,t)));if(K.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ge[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(K.isObject(e)&&K.isIterable(e)){let r,n,o={};for(const t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?K.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Ee(e)){const r=K.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ee(e)){const r=K.findKey(this,e);return!(!r||void 0===this[r]||t&&!Oe(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Ee(e)){const o=K.findKey(r,e);!o||t&&!Oe(0,r[o],o,t)||(delete r[o],n=!0)}}return K.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Oe(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return K.forEach(this,((n,o)=>{const i=K.findKey(r,o);if(i)return t[i]=ve(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ve(n),r[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return K.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&K.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);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((e=>t.set(e))),t}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ee(e);t[n]||(!function(e,t){const r=K.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return K.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Se.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),K.freezeMethods(Se);var Re=Se;function Ae(e,t){const r=this||me,n=t||r,o=Re.from(n.headers);let i=n.data;return K.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function _e(e){return!(!e||!e.__CANCEL__)}var je=class extends G{constructor(e,t,r){super(null==e?"canceled":e,G.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function Te(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new G("Request failed with status code "+r.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Pe=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=l&&c-l;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];t>=i?a(c,e):(r=c,n||(n=setTimeout((()=>{n=null,a(r)}),i-t)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},Ne=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},xe=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return K.asap((()=>e(...r)))};var Ue=de.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,de.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Ce=de.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];K.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),K.isString(n)&&s.push(`path=${n}`),K.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),K.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function De(e,t,r){let n=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Re?{...e}:e;function Ie(e,t){t=t||{};const r={};function n(e,t,r,n){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:n},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function o(e,t,r,o){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!K.isUndefined(t))return n(void 0,t)}function a(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(Le(e),Le(t),0,!0)};return K.forEach(Object.keys({...e,...t}),(function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=K.hasOwnProp(c,n)?c[n]:o,a=i(e[n],t[n],n);K.isUndefined(a)&&i!==s||(r[n]=a)})),r}var Fe=e=>{const t=Ie({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Re.from(a),t.url=oe(De(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),K.isFormData(r))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(K.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[r,n]=e;t.includes(r.toLowerCase())&&a.set(r,n)}))}if(de.hasStandardBrowserEnv&&(n&&K.isFunction(n)&&(n=n(t)),n||!1!==n&&Ue(t.url))){const e=o&&i&&Ce.read(i);e&&a.set(o,e)}return t};var ke="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Fe(e);let o=n.data;const i=Re.from(n.headers).normalize();let a,s,c,l,u,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function y(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=Re.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Te((function(e){t(e),y()}),(function(e){r(e),y()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new G("Request aborted",G.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new G(n,G.ERR_NETWORK,e,h);o.event=t||null,r(o),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ae;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new G(t,o.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&K.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),K.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),d&&([c,u]=Pe(d,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,l]=Pe(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new je(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===de.protocols.indexOf(g)?r(new G("Unsupported protocol "+g+":",G.ERR_BAD_REQUEST,e)):h.send(o||null)}))};var Be=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof G?t:new je(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new G(`timeout of ${t}ms exceeded`,G.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>K.asap(a),s}};const Me=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},qe=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},We=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of qe(e))yield*Me(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:$e}=K,He=(e=>{let{Request:t,Response:r}=e;return{Request:t,Response:r}})(K.global),{ReadableStream:ze,TextEncoder:Ke}=K.global,Ve=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(e){return!1}},Ge=e=>{e=K.merge.call({skipUndefined:!0},He,e);const{fetch:t,Request:r,Response:n}=e,o=t?$e(t):"function"==typeof fetch,i=$e(r),a=$e(n);if(!o)return!1;const s=o&&$e(ze),c=o&&("function"==typeof Ke?(l=new Ke,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&s&&Ve((()=>{let e=!1;const t=new ze,n=new r(de.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!n})),f=a&&s&&Ve((()=>K.isReadableStream(new n("").body))),p={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,r)})}));const d=async(e,t)=>{const n=K.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new r(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:s,signal:c,cancelToken:l,timeout:y,onDownloadProgress:h,onUploadProgress:m,responseType:g,headers:b,withCredentials:w="same-origin",fetchOptions:E}=Fe(e),v=t||fetch;g=g?(g+"").toLowerCase():"text";let O=Be([c,l&&l.toAbortSignal()],y),S=null;const R=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let A;try{if(m&&u&&"get"!==a&&"head"!==a&&0!==(A=await d(b,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(K.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,r]=Ne(A,Pe(xe(m)));s=We(t.body,65536,e,r)}}K.isString(w)||(w=w?"include":"omit");const t=i&&"credentials"in r.prototype,c={...E,signal:O,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?w:void 0};S=i&&new r(o,c);let l=await(i?v(S,E):v(o,c));const y=f&&("stream"===g||"response"===g);if(f&&(h||y&&R)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=l[t]}));const t=K.toFiniteNumber(l.headers.get("content-length")),[r,o]=h&&Ne(t,Pe(xe(h),!0))||[];l=new n(We(l.body,65536,r,(()=>{o&&o(),R&&R()})),e)}g=g||"text";let _=await p[K.findKey(p,g)||"text"](l,e);return!y&&R&&R(),await new Promise(((t,r)=>{Te(t,r,{data:_,headers:Re.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S})}))}catch(t){if(R&&R(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw G.from(t,t&&t.code,e,S,t&&t.response)}}},Je=new Map,Qe=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=Je;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:Ge(t)),l=s;return s};Qe();const Xe={http:null,xhr:ke,fetch:{get:Qe}};K.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ye=e=>`- ${e}`,Ze=e=>K.isFunction(e)||null===e||!1===e;var et={getAdapter:function(e,t){e=K.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){let r;if(n=e[a],o=n,!Ze(n)&&(o=Xe[(r=String(n)).toLowerCase()],void 0===o))throw new G(`Unknown adapter '${r}'`);if(o&&(K.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const e=Object.entries(i).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));let t=r?e.length>1?"since :\n"+e.map(Ye).join("\n"):" "+Ye(e[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Xe};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new je(null,e)}function rt(e){tt(e),e.headers=Re.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return et.getAdapter(e.adapter||me.adapter,e)(e).then((function(t){return tt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Re.from(t.headers),t}),(function(t){return _e(t)||(tt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Re.from(t.response.headers))),Promise.reject(t)}))}const nt="1.15.0",ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};ot.transitional=function(e,t,r){function n(e,t){return"[Axios v"+nt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new G(n(o," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},ot.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var at={assertOptions:function(e,t,r){if("object"!=typeof e)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new G("option "+i+" must be "+r,G.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}},validators:ot};const st=at.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&at.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean),legacyInterceptorReqResOrdering:st.transitional(st.boolean)},!1),null!=n&&(K.isFunction(n)?t.paramsSerializer={serialize:n}:at.assertOptions(n,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),at.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&K.merge(o.common,o[t.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Re.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||ae;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=a.length;let p=t;for(;f<u;){const e=a[f++],t=a[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{l=rt.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return oe(De((e=Ie(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(Ie(r||{},{method:e,url:t,data:(r||{}).data}))}})),K.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ie(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var lt=ct;class ut{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new je(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var ft=ut;const pt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pt).forEach((e=>{let[t,r]=e;pt[r]=t}));var dt=pt;const yt=function e(r){const n=new lt(r),o=t(lt.prototype.request,n);return K.extend(o,lt.prototype,n,{allOwnKeys:!0}),K.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(Ie(r,t))},o}(me);yt.Axios=lt,yt.CanceledError=je,yt.CancelToken=ft,yt.isCancel=_e,yt.VERSION=nt,yt.toFormData=Z,yt.AxiosError=G,yt.Cancel=yt.CanceledError,yt.all=function(e){return Promise.all(e)},yt.spread=function(e){return function(t){return e.apply(null,t)}},yt.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=Ie,yt.AxiosHeaders=Re,yt.formToJSON=e=>ye(K.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=et.getAdapter,yt.HttpStatusCode=dt,yt.default=yt;var ht=yt,mt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gt(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}const bt=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function wt(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Et(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){wt(i,n,o,a,s,"next",e)}function s(e){wt(i,n,o,a,s,"throw",e)}a(void 0)}))}}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rt="axios-retry";function At(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(e=>!bt.has(e&&e.code))(e)}var _t=["get","head","options"],jt=_t.concat(["put","delete"]);function Tt(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function Pt(e){return!!e.config&&(Tt(e)&&-1!==jt.indexOf(e.config.method))}function Nt(e){return At(e)||Pt(e)}function xt(){return 0}function Ut(e){var t=e[Rt]||{};return t.retryCount=t.retryCount||0,e[Rt]=t,t}function Ct(){return(Ct=Et((function*(e,t,r,n){var o=r.retryCount<e&&t(n);if("object"==typeof o)try{return yield o,!0}catch(e){return!1}return o}))).apply(this,arguments)}function Dt(e,t){e.interceptors.request.use((e=>(Ut(e).lastRequestTime=Date.now(),e))),e.interceptors.response.use(null,function(){var r=Et((function*(r){var{config:n}=r;if(!n)return Promise.reject(r);var{retries:o=3,retryCondition:i=Nt,retryDelay:a=xt,shouldResetTimeout:s=!1}=function(e,t){return Ot(Ot({},t),e[Rt])}(n,t),c=Ut(n);if(yield function(e,t,r,n){return Ct.apply(this,arguments)}(o,i,c,r)){c.retryCount+=1;var l=a(c.retryCount,r);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,n),!s&&n.timeout&&c.lastRequestTime){var u=Date.now()-c.lastRequestTime;n.timeout=Math.max(n.timeout-u-l,1)}return n.transformRequest=[e=>e],new Promise((t=>setTimeout((()=>t(e(n))),l)))}return Promise.reject(r)}));return function(e){return r.apply(this,arguments)}}())}Dt.isNetworkError=At,Dt.isSafeRequestError=function(e){return!!e.config&&(Tt(e)&&-1!==_t.indexOf(e.config.method))},Dt.isIdempotentRequestError=Pt,Dt.isNetworkOrIdempotentRequestError=Nt,Dt.exponentialDelay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()},Dt.isRetryableError=Tt;var Lt=TypeError,It=gt(Object.freeze({__proto__:null,default:{}})),Ft="function"==typeof Map&&Map.prototype,kt=Object.getOwnPropertyDescriptor&&Ft?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bt=Ft&&kt&&"function"==typeof kt.get?kt.get:null,Mt=Ft&&Map.prototype.forEach,qt="function"==typeof Set&&Set.prototype,Wt=Object.getOwnPropertyDescriptor&&qt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$t=qt&&Wt&&"function"==typeof Wt.get?Wt.get:null,Ht=qt&&Set.prototype.forEach,zt="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Kt="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Vt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Gt=Boolean.prototype.valueOf,Jt=Object.prototype.toString,Qt=Function.prototype.toString,Xt=String.prototype.match,Yt=String.prototype.slice,Zt=String.prototype.replace,er=String.prototype.toUpperCase,tr=String.prototype.toLowerCase,rr=RegExp.prototype.test,nr=Array.prototype.concat,or=Array.prototype.join,ir=Array.prototype.slice,ar=Math.floor,sr="function"==typeof BigInt?BigInt.prototype.valueOf:null,cr=Object.getOwnPropertySymbols,lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ur="function"==typeof Symbol&&"object"==typeof Symbol.iterator,fr="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ur||"symbol")?Symbol.toStringTag:null,pr=Object.prototype.propertyIsEnumerable,dr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yr(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||rr.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-ar(-e):ar(e);if(n!==e){var o=String(n),i=Yt.call(t,o.length+1);return Zt.call(o,r,"$&_")+"."+Zt.call(Zt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Zt.call(t,r,"$&_")}var hr=It,mr=hr.custom,gr=_r(mr)?mr:null,br={__proto__:null,double:'"',single:"'"},wr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Er=function e(t,r,n,o){var i=r||{};if(Tr(i,"quoteStyle")&&!Tr(br,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tr(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Tr(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tr(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tr(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return xr(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?yr(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return s?yr(t,l):l}var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return Rr(t)?"[Array]":"[Object]";var f=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=or.call(Array(e.indent+1)," ")}return{base:r,prev:or.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(Nr(o,t)>=0)return"[Circular]";function p(t,r,a){if(r&&(o=ir.call(o)).push(r),a){var s={depth:i.depth};return Tr(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!Ar(t)){var d=function(e){if(e.name)return e.name;var t=Xt.call(Qt.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),y=Fr(t,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+or.call(y,", ")+" }":"")}if(_r(t)){var h=ur?Zt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):lr.call(t);return"object"!=typeof t||ur?h:Cr(h)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var m="<"+tr.call(String(t.nodeName)),g=t.attributes||[],b=0;b<g.length;b++)m+=" "+g[b].name+"="+vr(Or(g[b].value),"double",i);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+tr.call(String(t.nodeName))+">"}if(Rr(t)){if(0===t.length)return"[]";var w=Fr(t,p);return f&&!function(e){for(var t=0;t<e.length;t++)if(Nr(e[t],"\n")>=0)return!1;return!0}(w)?"["+Ir(w,f)+"]":"[ "+or.call(w,", ")+" ]"}if(function(e){return"[object Error]"===Pr(e)&&Sr(e)}(t)){var E=Fr(t,p);return"cause"in Error.prototype||!("cause"in t)||pr.call(t,"cause")?0===E.length?"["+String(t)+"]":"{ ["+String(t)+"] "+or.call(E,", ")+" }":"{ ["+String(t)+"] "+or.call(nr.call("[cause]: "+p(t.cause),E),", ")+" }"}if("object"==typeof t&&a){if(gr&&"function"==typeof t[gr]&&hr)return hr(t,{depth:u-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Bt||!e||"object"!=typeof e)return!1;try{Bt.call(e);try{$t.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var v=[];return Mt&&Mt.call(t,(function(e,r){v.push(p(r,t,!0)+" => "+p(e,t))})),Lr("Map",Bt.call(t),v,f)}if(function(e){if(!$t||!e||"object"!=typeof e)return!1;try{$t.call(e);try{Bt.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var O=[];return Ht&&Ht.call(t,(function(e){O.push(p(e,t))})),Lr("Set",$t.call(t),O,f)}if(function(e){if(!zt||!e||"object"!=typeof e)return!1;try{zt.call(e,zt);try{Kt.call(e,Kt)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Dr("WeakMap");if(function(e){if(!Kt||!e||"object"!=typeof e)return!1;try{Kt.call(e,Kt);try{zt.call(e,zt)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Dr("WeakSet");if(function(e){if(!Vt||!e||"object"!=typeof e)return!1;try{return Vt.call(e),!0}catch(e){}return!1}(t))return Dr("WeakRef");if(function(e){return"[object Number]"===Pr(e)&&Sr(e)}(t))return Cr(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!sr)return!1;try{return sr.call(e),!0}catch(e){}return!1}(t))return Cr(p(sr.call(t)));if(function(e){return"[object Boolean]"===Pr(e)&&Sr(e)}(t))return Cr(Gt.call(t));if(function(e){return"[object String]"===Pr(e)&&Sr(e)}(t))return Cr(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==mt&&t===mt)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Pr(e)&&Sr(e)}(t)&&!Ar(t)){var S=Fr(t,p),R=dr?dr(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",_=!R&&fr&&Object(t)===t&&fr in t?Yt.call(Pr(t),8,-1):A?"Object":"",j=(R||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(_||A?"["+or.call(nr.call([],_||[],A||[]),": ")+"] ":"");return 0===S.length?j+"{}":f?j+"{"+Ir(S,f)+"}":j+"{ "+or.call(S,", ")+" }"}return String(t)};function vr(e,t,r){var n=r.quoteStyle||t,o=br[n];return o+e+o}function Or(e){return Zt.call(String(e),/"/g,"&quot;")}function Sr(e){return!fr||!("object"==typeof e&&(fr in e||void 0!==e[fr]))}function Rr(e){return"[object Array]"===Pr(e)&&Sr(e)}function Ar(e){return"[object RegExp]"===Pr(e)&&Sr(e)}function _r(e){if(ur)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!lr)return!1;try{return lr.call(e),!0}catch(e){}return!1}var jr=Object.prototype.hasOwnProperty||function(e){return e in this};function Tr(e,t){return jr.call(e,t)}function Pr(e){return Jt.call(e)}function Nr(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function xr(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return xr(Yt.call(e,0,t.maxStringLength),t)+n}var o=wr[t.quoteStyle||"single"];return o.lastIndex=0,vr(Zt.call(Zt.call(e,o,"\\$1"),/[\x00-\x1f]/g,Ur),"single",t)}function Ur(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+er.call(t.toString(16))}function Cr(e){return"Object("+e+")"}function Dr(e){return e+" { ? }"}function Lr(e,t,r,n){return e+" ("+t+") {"+(n?Ir(r,n):or.call(r,", "))+"}"}function Ir(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+or.call(e,","+r)+"\n"+t.prev}function Fr(e,t){var r=Rr(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Tr(e,o)?t(e[o],e):""}var i,a="function"==typeof cr?cr(e):[];if(ur){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)Tr(e,c)&&(r&&String(Number(c))===c&&c<e.length||ur&&i["$"+c]instanceof Symbol||(rr.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof cr)for(var l=0;l<a.length;l++)pr.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var kr=Er,Br=Lt,Mr=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n},qr=Object,Wr=Error,$r=EvalError,Hr=RangeError,zr=ReferenceError,Kr=SyntaxError,Vr=URIError,Gr=Math.abs,Jr=Math.floor,Qr=Math.max,Xr=Math.min,Yr=Math.pow,Zr=Math.round,en=Number.isNaN||function(e){return e!=e},tn=Object.getOwnPropertyDescriptor;if(tn)try{tn([],"length")}catch(e){tn=null}var rn=tn,nn=Object.defineProperty||!1;if(nn)try{nn({},"a",{value:1})}catch(e){nn=!1}var on,an=nn,sn="undefined"!=typeof Symbol&&Symbol,cn=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},ln="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null,un=qr.getPrototypeOf||null,fn=Object.prototype.toString,pn=Math.max,dn=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},yn=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==fn.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),o=pn(0,t.length-n.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,dn(n,arguments));return Object(o)===o?o:this}return t.apply(e,dn(n,arguments))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},hn=Function.prototype.bind||yn,mn=Function.prototype.call,gn=Function.prototype.apply,bn=gn,wn=mn,En="undefined"!=typeof Reflect&&Reflect&&Reflect.apply||hn.call(wn,bn),vn=hn,On=Lt,Sn=mn,Rn=En,An=function(e){if(e.length<1||"function"!=typeof e[0])throw new On("a function is required");return Rn(vn,Sn,e)},_n=An,jn=rn;try{on=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var Tn,Pn=!!on&&jn&&jn(Object.prototype,"__proto__"),Nn=Object,xn=Nn.getPrototypeOf,Un=Pn&&"function"==typeof Pn.get?_n([Pn.get]):"function"==typeof xn&&function(e){return xn(null==e?e:Nn(e))},Cn=ln,Dn=un,Ln=Un,In=Cn?function(e){return Cn(e)}:Dn?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return Dn(e)}:Ln?function(e){return Ln(e)}:null,Fn=Function.prototype.call,kn=Object.prototype.hasOwnProperty,Bn=hn.call(Fn,kn),Mn=qr,qn=Wr,Wn=$r,$n=Hr,Hn=zr,zn=Kr,Kn=Lt,Vn=Vr,Gn=Gr,Jn=Jr,Qn=Qr,Xn=Xr,Yn=Yr,Zn=Zr,eo=function(e){return en(e)||0===e?e:e<0?-1:1},to=Function,ro=function(e){try{return to('"use strict"; return ('+e+").constructor;")()}catch(e){}},no=rn,oo=an,io=function(){throw new Kn},ao=no?function(){try{return io}catch(e){try{return no(arguments,"callee").get}catch(e){return io}}}():io,so="function"==typeof sn&&"function"==typeof Symbol&&"symbol"==typeof sn("foo")&&"symbol"==typeof Symbol("bar")&&cn(),co=In,lo=un,uo=ln,fo=gn,po=mn,yo={},ho="undefined"!=typeof Uint8Array&&co?co(Uint8Array):Tn,mo={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Tn:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Tn:ArrayBuffer,"%ArrayIteratorPrototype%":so&&co?co([][Symbol.iterator]()):Tn,"%AsyncFromSyncIteratorPrototype%":Tn,"%AsyncFunction%":yo,"%AsyncGenerator%":yo,"%AsyncGeneratorFunction%":yo,"%AsyncIteratorPrototype%":yo,"%Atomics%":"undefined"==typeof Atomics?Tn:Atomics,"%BigInt%":"undefined"==typeof BigInt?Tn:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Tn:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Tn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Tn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qn,"%eval%":eval,"%EvalError%":Wn,"%Float16Array%":"undefined"==typeof Float16Array?Tn:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Tn:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Tn:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Tn:FinalizationRegistry,"%Function%":to,"%GeneratorFunction%":yo,"%Int8Array%":"undefined"==typeof Int8Array?Tn:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Tn:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Tn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":so&&co?co(co([][Symbol.iterator]())):Tn,"%JSON%":"object"==typeof JSON?JSON:Tn,"%Map%":"undefined"==typeof Map?Tn:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&so&&co?co((new Map)[Symbol.iterator]()):Tn,"%Math%":Math,"%Number%":Number,"%Object%":Mn,"%Object.getOwnPropertyDescriptor%":no,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Tn:Promise,"%Proxy%":"undefined"==typeof Proxy?Tn:Proxy,"%RangeError%":$n,"%ReferenceError%":Hn,"%Reflect%":"undefined"==typeof Reflect?Tn:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Tn:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&so&&co?co((new Set)[Symbol.iterator]()):Tn,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Tn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":so&&co?co(""[Symbol.iterator]()):Tn,"%Symbol%":so?Symbol:Tn,"%SyntaxError%":zn,"%ThrowTypeError%":ao,"%TypedArray%":ho,"%TypeError%":Kn,"%Uint8Array%":"undefined"==typeof Uint8Array?Tn:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Tn:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Tn:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Tn:Uint32Array,"%URIError%":Vn,"%WeakMap%":"undefined"==typeof WeakMap?Tn:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Tn:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Tn:WeakSet,"%Function.prototype.call%":po,"%Function.prototype.apply%":fo,"%Object.defineProperty%":oo,"%Object.getPrototypeOf%":lo,"%Math.abs%":Gn,"%Math.floor%":Jn,"%Math.max%":Qn,"%Math.min%":Xn,"%Math.pow%":Yn,"%Math.round%":Zn,"%Math.sign%":eo,"%Reflect.getPrototypeOf%":uo};if(co)try{null.error}catch(e){var go=co(co(e));mo["%Error.prototype%"]=go}var bo=function e(t){var r;if("%AsyncFunction%"===t)r=ro("async function () {}");else if("%GeneratorFunction%"===t)r=ro("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=ro("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&co&&(r=co(o.prototype))}return mo[t]=r,r},wo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Eo=hn,vo=Bn,Oo=Eo.call(po,Array.prototype.concat),So=Eo.call(fo,Array.prototype.splice),Ro=Eo.call(po,String.prototype.replace),Ao=Eo.call(po,String.prototype.slice),_o=Eo.call(po,RegExp.prototype.exec),jo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,To=/\\(\\)?/g,Po=function(e,t){var r,n=e;if(vo(wo,n)&&(n="%"+(r=wo[n])[0]+"%"),vo(mo,n)){var o=mo[n];if(o===yo&&(o=bo(n)),void 0===o&&!t)throw new Kn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new zn("intrinsic "+e+" does not exist!")},No=function(e,t){if("string"!=typeof e||0===e.length)throw new Kn("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Kn('"allowMissing" argument must be a boolean');if(null===_o(/^%?[^%]*%?$/,e))throw new zn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Ao(e,0,1),r=Ao(e,-1);if("%"===t&&"%"!==r)throw new zn("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new zn("invalid intrinsic syntax, expected opening `%`");var n=[];return Ro(e,jo,(function(e,t,r,o){n[n.length]=r?Ro(o,To,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=Po("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],So(r,Oo([0,1],c)));for(var l=1,u=!0;l<r.length;l+=1){var f=r[l],p=Ao(f,0,1),d=Ao(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===d||"'"===d||"`"===d)&&p!==d)throw new zn("property names with quotes must have matching quotes");if("constructor"!==f&&u||(s=!0),vo(mo,i="%"+(n+="."+f)+"%"))a=mo[i];else if(null!=a){if(!(f in a)){if(!t)throw new Kn("base intrinsic for "+e+" exists, but the property is not available.");return}if(no&&l+1>=r.length){var y=no(a,f);a=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else u=vo(a,f),a=a[f];u&&!s&&(mo[i]=a)}}return a},xo=No,Uo=An,Co=Uo([xo("%String.prototype.indexOf%")]),Do=function(e,t){var r=xo(e,!!t);return"function"==typeof r&&Co(e,".prototype.")>-1?Uo([r]):r},Lo=Do,Io=Er,Fo=Lt,ko=No("%Map%",!0),Bo=Lo("Map.prototype.get",!0),Mo=Lo("Map.prototype.set",!0),qo=Lo("Map.prototype.has",!0),Wo=Lo("Map.prototype.delete",!0),$o=Lo("Map.prototype.size",!0),Ho=!!ko&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Fo("Side channel does not contain "+Io(e))},delete:function(t){if(e){var r=Wo(e,t);return 0===$o(e)&&(e=void 0),r}return!1},get:function(t){if(e)return Bo(e,t)},has:function(t){return!!e&&qo(e,t)},set:function(t,r){e||(e=new ko),Mo(e,t,r)}};return t},zo=Do,Ko=Er,Vo=Ho,Go=Lt,Jo=No("%WeakMap%",!0),Qo=zo("WeakMap.prototype.get",!0),Xo=zo("WeakMap.prototype.set",!0),Yo=zo("WeakMap.prototype.has",!0),Zo=zo("WeakMap.prototype.delete",!0),ei=Lt,ti=Er,ri=(Jo?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new Go("Side channel does not contain "+Ko(e))},delete:function(r){if(Jo&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Zo(e,r)}else if(Vo&&t)return t.delete(r);return!1},get:function(r){return Jo&&r&&("object"==typeof r||"function"==typeof r)&&e?Qo(e,r):t&&t.get(r)},has:function(r){return Jo&&r&&("object"==typeof r||"function"==typeof r)&&e?Yo(e,r):!!t&&t.has(r)},set:function(r,n){Jo&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Jo),Xo(e,r,n)):Vo&&(t||(t=Vo()),t.set(r,n))}};return r}:Vo)||Ho||function(){var e,t={assert:function(e){if(!t.has(e))throw new Br("Side channel does not contain "+kr(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return Mr(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=Mr(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Mr(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=Mr(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t},ni=function(){var e,t={assert:function(e){if(!t.has(e))throw new ei("Side channel does not contain "+ti(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=ri()),e.set(t,r)}};return t},oi=String.prototype.replace,ii=/%20/g,ai="RFC3986",si={default:ai,formatters:{RFC1738:function(e){return oi.call(e,ii,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:ai},ci=si,li=ni,ui=Object.prototype.hasOwnProperty,fi=Array.isArray,pi=li(),di=function(e,t){return pi.set(e,t),e},yi=function(e){return pi.has(e)},hi=function(e){return pi.get(e)},mi=function(e,t){pi.set(e,t)},gi=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),bi=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},wi=1024,Ei={arrayToObject:bi,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t,r,n){if(yi(e)){var o=hi(e)+1;return e[o]=t,mi(e,o),e}var i=[].concat(e,t);return i.length>r?di(bi(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=i[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t[t.length]={obj:i,prop:c},r[r.length]=l)}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(fi(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;s+=wi){for(var c=i.length>=wi?i.slice(s,s+wi):i,l=[],u=0;u<c.length;++u){var f=c.charCodeAt(u);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===ci.RFC1738&&(40===f||41===f)?l[l.length]=c.charAt(u):f<128?l[l.length]=gi[f]:f<2048?l[l.length]=gi[192|f>>6]+gi[128|63&f]:f<55296||f>=57344?l[l.length]=gi[224|f>>12]+gi[128|f>>6&63]+gi[128|63&f]:(u+=1,f=65536+((1023&f)<<10|1023&c.charCodeAt(u)),l[l.length]=gi[240|f>>18]+gi[128|f>>12&63]+gi[128|f>>6&63]+gi[128|63&f])}a+=l.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:yi,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:di,maybeMap:function(e,t){if(fi(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(fi(t)){var o=t.length;if(n&&"number"==typeof n.arrayLimit&&o>n.arrayLimit)return di(bi(t.concat(r),n),o);t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(yi(t)){var i=hi(t)+1;t[i]=r,mi(t,i)}else(n&&(n.plainObjects||n.allowPrototypes)||!ui.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(yi(r)){for(var a=Object.keys(r),s=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<a.length;c++){s[parseInt(a[c],10)+1]=r[a[c]]}return di(s,hi(r)+1)}var l=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&l.length>n.arrayLimit?di(bi(l,n),l.length-1):l}var u=t;return fi(t)&&!fi(r)&&(u=bi(t,n)),fi(t)&&fi(r)?(r.forEach((function(r,o){if(ui.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];if(ui.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,yi(r)&&!yi(t)&&di(t,hi(r)),yi(t)){var a=parseInt(o,10);String(a)===o&&a>=0&&a>hi(t)&&mi(t,a)}return t}),u)}},vi=ni,Oi=Ei,Si=si,Ri=Object.prototype.hasOwnProperty,Ai={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},_i=Array.isArray,ji=Array.prototype.push,Ti=function(e,t){ji.apply(e,_i(t)?t:[t])},Pi=Date.prototype.toISOString,Ni=Si.default,xi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Oi.encode,encodeValuesOnly:!1,filter:void 0,format:Ni,formatter:Si.formatters[Ni],indices:!1,serializeDate:function(e){return Pi.call(e)},skipNulls:!1,strictNullHandling:!1},Ui={},Ci=function e(t,r,n,o,i,a,s,c,l,u,f,p,d,y,h,m,g,b){for(var w,E=t,v=b,O=0,S=!1;void 0!==(v=v.get(Ui))&&!S;){var R=v.get(t);if(O+=1,void 0!==R){if(R===O)throw new RangeError("Cyclic object value");S=!0}void 0===v.get(Ui)&&(O=0)}if("function"==typeof u?E=u(r,E):E instanceof Date?E=d(E):"comma"===n&&_i(E)&&(E=Oi.maybeMap(E,(function(e){return e instanceof Date?d(e):e}))),null===E){if(a)return l&&!m?l(r,xi.encoder,g,"key",y):r;E=""}if("string"==typeof(w=E)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||Oi.isBuffer(E))return l?[h(m?r:l(r,xi.encoder,g,"key",y))+"="+h(l(E,xi.encoder,g,"value",y))]:[h(r)+"="+h(String(E))];var A,_=[];if(void 0===E)return _;if("comma"===n&&_i(E))m&&l&&(E=Oi.maybeMap(E,l)),A=[{value:E.length>0?E.join(",")||null:void 0}];else if(_i(u))A=u;else{var j=Object.keys(E);A=f?j.sort(f):j}var T=c?String(r).replace(/\./g,"%2E"):String(r),P=o&&_i(E)&&1===E.length?T+"[]":T;if(i&&_i(E)&&0===E.length)return P+"[]";for(var N=0;N<A.length;++N){var x=A[N],U="object"==typeof x&&x&&void 0!==x.value?x.value:E[x];if(!s||null!==U){var C=p&&c?String(x).replace(/\./g,"%2E"):String(x),D=_i(E)?"function"==typeof n?n(P,C):P:P+(p?"."+C:"["+C+"]");b.set(t,O);var L=vi();L.set(Ui,b),Ti(_,e(U,D,n,o,i,a,s,c,"comma"===n&&m&&_i(E)?null:l,u,f,p,d,y,h,m,g,L))}}return _},Di=Ei,Li=Object.prototype.hasOwnProperty,Ii=Array.isArray,Fi={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Di.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},ki=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Bi=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},Mi=function(e,t,r,n){if(e){var o=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&Li.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(r),i=o?r.slice(0,o.index):r,a=[];if(i){if(!t.plainObjects&&Li.call(Object.prototype,i)&&!t.allowPrototypes)return;a[a.length]=i}for(var s=0;null!==(o=n.exec(r))&&s<t.depth;){s+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&Li.call(Object.prototype,c)&&!t.allowPrototypes)return;a[a.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");a[a.length]="["+r.slice(o.index)+"]"}return a}(e,r);if(o)return function(e,t,r,n){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");o=Array.isArray(t)&&t[i]?t[i].length:0}for(var a=n?t:Bi(t,r,o),s=e.length-1;s>=0;--s){var c,l=e[s];if("[]"===l&&r.parseArrays)c=Di.isOverflow(a)?a:r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:Di.combine([],a,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var u="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,f=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,p=parseInt(f,10),d=!isNaN(p)&&l!==f&&String(p)===f&&p>=0&&r.parseArrays;if(r.parseArrays||""!==f)if(d&&p<r.arrayLimit)(c=[])[p]=a;else{if(d&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");d?(c[p]=a,Di.markOverflow(c,p)):"__proto__"!==f&&(c[f]=a)}else c={0:a}}a=c}return a}(o,t,r,n)}},qi=function(e,t){var r,n=e,o=function(e){if(!e)return xi;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||xi.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Si.default;if(void 0!==e.format){if(!Ri.call(Si.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=Si.formatters[r],i=xi.filter;if(("function"==typeof e.filter||_i(e.filter))&&(i=e.filter),n=e.arrayFormat in Ai?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":xi.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||xi.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:xi.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:xi.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:xi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?xi.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:xi.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:xi.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:xi.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:xi.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:xi.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:xi.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:xi.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):_i(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=Ai[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=vi(),l=0;l<r.length;++l){var u=r[l],f=n[u];o.skipNulls&&null===f||Ti(i,Ci(f,u,a,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},Wi=function(e,t){var r=function(e){if(!e)return Fi;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?Fi.charset:e.charset,r=void 0===e.duplicates?Fi.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Fi.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Fi.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Fi.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Fi.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Fi.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Fi.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Fi.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Fi.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Fi.decoder,delimiter:"string"==typeof e.delimiter||Di.isRegExp(e.delimiter)?e.delimiter:Fi.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Fi.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Fi.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Fi.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Fi.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Fi.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Fi.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?function(e,t){var r={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=n.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?c="utf-8":"utf8=%26%2310003%3B"===i[a]&&(c="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var l,u,f=i[a],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;if(-1===d?(l=t.decoder(f,Fi.decoder,c,"key"),u=t.strictNullHandling?null:""):null!==(l=t.decoder(f.slice(0,d),Fi.decoder,c,"key"))&&(u=Di.maybeMap(Bi(f.slice(d+1),t,Ii(r[l])?r[l].length:0),(function(e){return t.decoder(e,Fi.decoder,c,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===c&&(u=ki(String(u))),f.indexOf("[]=")>-1&&(u=Ii(u)?[u]:u),t.comma&&Ii(u)&&u.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");u=Di.combine([],u,t.arrayLimit,t.plainObjects)}if(null!==l){var y=Li.call(r,l);y&&"combine"===t.duplicates?r[l]=Di.combine(r[l],u,t.arrayLimit,t.plainObjects):y&&"last"!==t.duplicates||(r[l]=u)}}return r}(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=Mi(s,n[s],r,"string"==typeof e);o=Di.merge(o,c,r)}return!0===r.allowSparse?o:Di.compact(o)},$i={formats:si,parse:Wi,stringify:qi};const Hi=e=>{let t={raw:"",encoded:""};e.and&&(t=(e=>{if(!e)throw new Error("invalid query");const t=[],r=[];return e.forEach((e=>{const{raw:n,encoded:o}=Hi(e);t.push(n),r.push(o)})),{raw:t.join("&"),encoded:r.join("&")}})(e.and),delete e.and);let r={raw:"",encoded:""};e.or&&(r=(e=>{if(!e)throw new Error("invalid query");const t=[];e.forEach((e=>{const{raw:r}=Hi(e);t.push(r)}));const r=new URLSearchParams;return r.set("[or]",`(${t.join(";")})`),{raw:`[or]=(${t.join(";")})`,encoded:r.toString()}})(e.or),delete e.or);const n=$i.stringify(e,{encode:!1,arrayFormat:"comma"}),o=$i.stringify(e,{arrayFormat:"comma"});return{raw:[n,r.raw,t.raw].filter((e=>e)).join("&"),encoded:[o,r.encoded,t.encoded].filter((e=>e)).join("&")}},zi=e=>{if(!ht.isAxiosError(e))throw e;const{config:t,response:r}=e;if(null==r||!r.data)throw e;const{data:n}=r,o={status:n.status,code:n.code,message:n.message};if(t&&(o.request={method:t.method,headers:t.headers},t.url)){const e=new URL(t.url,t.baseURL);o.request.url=e.toString()}const i=new Error;i.name=`${n.status} ${n.code}`;try{i.message=JSON.stringify(o,null,2)}catch{i.message=n.message}throw i},Ki=(e,t)=>{if(!(e=>{if("object"!=typeof e||null===e)return!1;const t=e;return"number"==typeof t.status&&"string"==typeof t.code&&"string"==typeof t.message})(e))throw e;const{status:r,code:n,message:o}=e,i={status:r,code:n,message:o,request:t},a=new Error;a.name=`${r} ${n}`;try{a.message=JSON.stringify(i,null,2)}catch{a.message=o}throw a};e.createClient=e=>{let{spaceUid:t,token:r,apiType:n="cdn",adapter:o,retryOnError:i=!0,retryLimit:a=3,fetch:s}=e;if(!t)throw new Error("spaceUid parameter is required.");if(!r)throw new Error("token parameter is required.");if(!["cdn","api"].includes(n))throw new Error(`apiType parameter should be set to "cdn" or "api". apiType: ${n}`);if(a>10)throw new Error("retryLimit should be a value less than or equal to 10.");const c=new URL(`https://${t}.${n}.newt.so`),l={Authorization:`Bearer ${r}`},u=ht.create({baseURL:c.toString(),headers:l,adapter:o});i&&Dt(u,{retries:a,retryCondition:e=>{var t,r;return 429===(null===(t=e.response)||void 0===t?void 0:t.status)||500===(null===(r=e.response)||void 0===r?void 0:r.status)},retryDelay:e=>1e3*e});const f=async e=>{let{appUid:t,modelUid:r,query:n}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");const o=new URL(`/v1/${t}/${r}`,c.toString());if(n&&Object.keys(n).length){const{encoded:e}=Hi(n);o.search=e}if(s){const e={method:"get",headers:l,url:o.toString()};try{const t=await s(o.toString(),{headers:l}),r=await t.json();return t.ok?r:Ki(r,e)}catch(t){return Ki(t,e)}}else try{const{data:e}=await u.get(o.pathname+o.search);return e}catch(e){return zi(e)}};return{getContents:f,getContent:async e=>{let{appUid:t,modelUid:r,contentId:n,query:o}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");if(!n)throw new Error("contentId parameter is required.");const i=new URL(`/v1/${t}/${r}/${n}`,c.toString());if(o&&Object.keys(o).length){const{encoded:e}=Hi(o);i.search=e}if(s){const e={method:"get",headers:l,url:i.toString()};try{const t=await s(i.toString(),{headers:l}),r=await t.json();return t.ok?r:Ki(r,e)}catch(t){return Ki(t,e)}}else try{const{data:e}=await u.get(i.pathname+i.search);return e}catch(e){return zi(e)}},getFirstContent:async e=>{let{appUid:t,modelUid:r,query:n}=e;if(n&&n.limit)throw new Error("query.limit parameter cannot have a value.");const o={...n,limit:1},{items:i}=await f({appUid:t,modelUid:r,query:o});return 0===i.length?null:i[0]},getApp:async e=>{let{appUid:t}=e;if(!t)throw new Error("appUid parameter is required.");const r=new URL(`/v1/space/apps/${t}`,c.toString());if(s){const e={method:"get",headers:l,url:r.toString()};try{const t=await s(r.toString(),{headers:l}),n=await t.json();return t.ok?n:Ki(n,e)}catch(t){return Ki(t,e)}}else try{const{data:e}=await u.get(r.pathname);return e}catch(e){return zi(e)}}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).newtClient={})}(this,(function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:o,toStringTag:i}=Symbol,a=(s=Object.create(null),e=>{const t=r.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),l=e=>t=>typeof t===e,{isArray:u}=Array,f=l("undefined");function p(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=c("ArrayBuffer");const y=l("string"),h=l("function"),m=l("number"),g=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||i in e||o in e)},w=c("Date"),E=c("File"),O=c("Blob"),v=c("FileList");const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},R=void 0!==S.FormData?S.FormData:void 0,A=c("URLSearchParams"),[_,j,T,P]=["ReadableStream","Request","Response","Headers"].map(c);function x(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(p(e))return;const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(r=0;r<i;r++)a=n[r],t.call(null,e[a],a,e)}}function N(e,t){if(p(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!f(e)&&e!==D;const U=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),L=c("HTMLFormElement"),F=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),I=c("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};x(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const B=c("AsyncFunction"),M=(q="function"==typeof setImmediate,W=h(D.postMessage),q?setImmediate:W?(H=`axios@${Math.random()}`,$=[],D.addEventListener("message",(e=>{let{source:t,data:r}=e;t===D&&r===H&&$.length&&$.shift()()}),!1),e=>{$.push(e),D.postMessage(H,"*")}):e=>setTimeout(e));var q,W,H,$;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(D):"undefined"!=typeof process&&process.nextTick||M;var K={isArray:u,isArrayBuffer:d,isBuffer:p,isFormData:e=>{if(!e)return!1;if(R&&e instanceof R)return!0;const t=n(e);if(!t||t===Object.prototype)return!1;if(!h(e.append))return!1;const r=a(e);return"formdata"===r||"object"===r&&h(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:y,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isEmptyObject:e=>{if(!g(e)||p(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_,isRequest:j,isResponse:T,isHeaders:P,isUndefined:f,isDate:w,isFile:E,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:O,isRegExp:I,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:A,isTypedArray:U,isFileList:v,forEach:x,merge:function e(){const{caseless:t,skipUndefined:r}=C(this)&&this||{},n={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=t&&N(n,i)||i;b(n[a])&&b(o)?n[a]=e(n[a],o):b(o)?n[a]=e({},o):u(o)?n[a]=o.slice():r&&f(o)||(n[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],o);return n},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x(r,((r,o)=>{n&&h(r)?Object.defineProperty(e,o,{value:t(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:r,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:o}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,o)=>{let i,a,s;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:L,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:N,global:D,isContextDefined:C,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[i]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(p(e))return e;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return x(e,((e,t)=>{const i=r(e,n+1);!f(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:B,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:M,asap:z,isIterable:e=>null!=e&&h(e[o])};class V extends Error{static from(e,t,r,n,o,i){const a=new V(e.message,t||e.code,r,n,o);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:K.toJSONObject(this.config),code:this.code,status:this.status}}}V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",V.ERR_BAD_OPTION="ERR_BAD_OPTION",V.ECONNABORTED="ECONNABORTED",V.ETIMEDOUT="ETIMEDOUT",V.ERR_NETWORK="ERR_NETWORK",V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",V.ERR_DEPRECATED="ERR_DEPRECATED",V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",V.ERR_BAD_REQUEST="ERR_BAD_REQUEST",V.ERR_CANCELED="ERR_CANCELED",V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",V.ERR_INVALID_URL="ERR_INVALID_URL",V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var G=V;function J(e){return K.isPlainObject(e)||K.isArray(e)}function X(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Y=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,r){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,o=r.visitor||f,i=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===r.maxDepth?100:r.maxDepth,l=s&&K.isSpecCompliantForm(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!l&&K.isBlob(e))throw new G("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,r,o){let s=e;if(K.isReactNative(t)&&K.isReactNativeBlob(e))return t.append(Q(o,r,i),u(e)),!1;if(e&&!o&&"object"==typeof e)if(K.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(J)}(e)||(K.isFileList(e)||K.endsWith(r,"[]"))&&(s=K.toArray(e)))return r=X(r),s.forEach((function(e,n){!K.isUndefined(e)&&null!==e&&t.append(!0===a?Q([r],n,i):null===a?r:r+"[]",u(e))})),!1;return!!J(e)||(t.append(Q(o,r,i),u(e)),!1)}const p=[],d=Object.assign(Y,{defaultVisitor:f,convertValue:u,isVisitable:J});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!K.isUndefined(r)){if(i>c)throw new G("Object is too deeply nested ("+i+" levels). Max depth: "+c,G.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(r))throw Error("Circular reference detected in "+n.join("."));p.push(r),K.forEach(r,(function(r,a){!0===(!(K.isUndefined(r)||null===r)&&o.call(t,r,K.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a],i+1)})),p.pop()}}(e),t}function ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function te(e,t){this._pairs=[],e&&Z(e,this,t)}const re=te.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ne,o=K.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(a=i?i(t,o):K.isURLSearchParams(t)?t.toString():new te(t,o).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}re.append=function(e,t){this._pairs.push([e,t])},re.toString=function(e){const t=e?function(t){return e.call(this,t,ee)}:ee;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:te,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ce="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,ue=ce&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pe=ce&&window.location.href||"http://localhost";var de={...Object.freeze({__proto__:null,hasBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:fe,hasStandardBrowserEnv:ue,navigator:le,origin:pe}),...se};function ye(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&K.isArray(n)?n.length:i,s)return K.hasOwnProp(n,i)?n[i]=K.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a;n[i]&&K.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&K.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a}if(K.isFormData(e)&&K.isFunction(e.entries)){const r={};return K.forEachEntry(e,((e,n)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const he=(e,t)=>null!=e&&K.hasOwnProp(e,t)?e[t]:void 0;const me={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=K.isObject(e);o&&K.isHTMLForm(e)&&(e=new FormData(e));if(K.isFormData(e))return n?JSON.stringify(ye(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=he(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,r,n){return de.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=he(this,"env"),n=r&&r.FormData;return Z(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=he(this,"transitional")||me.transitional,r=t&&t.forcedJSONParsing,n=he(this,"responseType"),o="json"===n;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,he(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw G.from(e,G.ERR_BAD_RESPONSE,this,null,he(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var ge=me;const be=K.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 we=Symbol("internals"),Ee=/[^\x09\x20-\x7E\x80-\xFF]/g;function Oe(e){return e&&String(e).trim().toLowerCase()}function ve(e){return!1===e||null==e?e:K.isArray(e)?e.map(ve):function(e){let t=0,r=e.length;for(;t<r;){const r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(Ee,""))}function Se(e,t,r,n,o){return K.isFunction(n)?n.call(this,t,r):(o&&(t=r),K.isString(t)?K.isString(n)?-1!==t.indexOf(n):K.isRegExp(n)?n.test(t):void 0:void 0)}class Re{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Oe(t);if(!o)throw new Error("header name must be a non-empty string");const i=K.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ve(e))}const i=(e,t)=>K.forEach(e,((e,r)=>o(e,r,t)));if(K.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(K.isObject(e)&&K.isIterable(e)){let r,n,o={};for(const t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?K.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Oe(e)){const r=K.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Oe(e)){const r=K.findKey(this,e);return!(!r||void 0===this[r]||t&&!Se(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Oe(e)){const o=K.findKey(r,e);!o||t&&!Se(0,r[o],o,t)||(delete r[o],n=!0)}}return K.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Se(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return K.forEach(this,((n,o)=>{const i=K.findKey(r,o);if(i)return t[i]=ve(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ve(n),r[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return K.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&K.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);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((e=>t.set(e))),t}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Oe(e);t[n]||(!function(e,t){const r=K.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return K.isArray(e)?e.forEach(n):n(e),this}}Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Re.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),K.freezeMethods(Re);var Ae=Re;function _e(e,t){const r=this||ge,n=t||r,o=Ae.from(n.headers);let i=n.data;return K.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function je(e){return!(!e||!e.__CANCEL__)}var Te=class extends G{constructor(e,t,r){super(null==e?"canceled":e,G.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function Pe(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new G("Request failed with status code "+r.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const xe=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=l&&c-l;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];t>=i?a(c,e):(r=c,n||(n=setTimeout((()=>{n=null,a(r)}),i-t)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=null!=a?Math.min(i,a):i,c=Math.max(0,s-n),l=o(c);n=Math.max(n,s);e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},Ne=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},De=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return K.asap((()=>e(...r)))};var Ce=de.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,de.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Ue=de.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];K.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),K.isString(n)&&s.push(`path=${n}`),K.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),K.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Le(e,t,r){let n=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(n||!1===r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fe=e=>e instanceof Ae?{...e}:e;function Ie(e,t){t=t||{};const r=Object.create(null);function n(e,t,r,n){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:n},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function o(e,t,r,o){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!K.isUndefined(t))return n(void 0,t)}function a(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return K.hasOwnProp(t,i)?n(r,o):K.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(Fe(e),Fe(t),0,!0)};return K.forEach(Object.keys({...e,...t}),(function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=K.hasOwnProp(c,n)?c[n]:o,a=i(K.hasOwnProp(e,n)?e[n]:void 0,K.hasOwnProp(t,n)?t[n]:void 0,n);K.isUndefined(a)&&i!==s||(r[n]=a)})),r}var ke=e=>{const t=Ie({},e),r=e=>K.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let s=r("headers");const c=r("auth"),l=r("baseURL"),u=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=Ae.from(s),t.url=oe(Le(l,f,u),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),K.isFormData(n))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(K.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[r,n]=e;t.includes(r.toLowerCase())&&s.set(r,n)}))}if(de.hasStandardBrowserEnv){K.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Ce(t.url)){const e=i&&a&&Ue.read(a);e&&s.set(i,e)}}return t};var Be="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ke(e);let o=n.data;const i=Ae.from(n.headers).normalize();let a,s,c,l,u,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function y(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=Ae.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Pe((function(e){t(e),y()}),(function(e){r(e),y()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new G("Request aborted",G.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new G(n,G.ERR_NETWORK,e,h);o.event=t||null,r(o),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ae;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new G(t,o.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&K.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),K.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),d&&([c,u]=xe(d,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,l]=xe(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Te(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===de.protocols.indexOf(g)?r(new G("Unsupported protocol "+g+":",G.ERR_BAD_REQUEST,e)):h.send(o||null)}))};var Me=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof G?t:new Te(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new G(`timeout of ${t}ms exceeded`,G.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>K.asap(a),s}};const qe=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},He=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of We(e))yield*qe(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:$e}=K,ze=(e=>{let{Request:t,Response:r}=e;return{Request:t,Response:r}})(K.global),{ReadableStream:Ke,TextEncoder:Ve}=K.global,Ge=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(e){return!1}},Je=e=>{e=K.merge.call({skipUndefined:!0},ze,e);const{fetch:t,Request:r,Response:n}=e,o=t?$e(t):"function"==typeof fetch,i=$e(r),a=$e(n);if(!o)return!1;const s=o&&$e(Ke),c=o&&("function"==typeof Ve?(l=new Ve,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&s&&Ge((()=>{let e=!1;const t=new r(de.origin,{body:new Ke,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n})),f=a&&s&&Ge((()=>K.isReadableStream(new n("").body))),p={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,r)})}));const d=async(e,t)=>{const n=K.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new r(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:s,signal:c,cancelToken:l,timeout:y,onDownloadProgress:h,onUploadProgress:m,responseType:g,headers:b,withCredentials:w="same-origin",fetchOptions:E}=ke(e),O=t||fetch;g=g?(g+"").toLowerCase():"text";let v=Me([c,l&&l.toAbortSignal()],y),S=null;const R=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let A;try{if(m&&u&&"get"!==a&&"head"!==a&&0!==(A=await d(b,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(K.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,r]=Ne(A,xe(De(m)));s=He(t.body,65536,e,r)}}K.isString(w)||(w=w?"include":"omit");const t=i&&"credentials"in r.prototype;if(K.isFormData(s)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}const c={...E,signal:v,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?w:void 0};S=i&&new r(o,c);let l=await(i?O(S,E):O(o,c));const y=f&&("stream"===g||"response"===g);if(f&&(h||y&&R)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=l[t]}));const t=K.toFiniteNumber(l.headers.get("content-length")),[r,o]=h&&Ne(t,xe(De(h),!0))||[];l=new n(He(l.body,65536,r,(()=>{o&&o(),R&&R()})),e)}g=g||"text";let _=await p[K.findKey(p,g)||"text"](l,e);return!y&&R&&R(),await new Promise(((t,r)=>{Pe(t,r,{data:_,headers:Ae.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S})}))}catch(t){if(R&&R(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw G.from(t,t&&t.code,e,S,t&&t.response)}}},Xe=new Map,Qe=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=Xe;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:Je(t)),l=s;return s};Qe();const Ye={http:null,xhr:Be,fetch:{get:Qe}};K.forEach(Ye,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>K.isFunction(e)||null===e||!1===e;var tt={getAdapter:function(e,t){e=K.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){let r;if(n=e[a],o=n,!et(n)&&(o=Ye[(r=String(n)).toLowerCase()],void 0===o))throw new G(`Unknown adapter '${r}'`);if(o&&(K.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const e=Object.entries(i).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));let t=r?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Ye};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Te(null,e)}function nt(e){rt(e),e.headers=Ae.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return tt.getAdapter(e.adapter||ge.adapter,e)(e).then((function(t){return rt(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Ae.from(t.headers),t}),(function(t){return je(t)||(rt(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Ae.from(t.response.headers))),Promise.reject(t)}))}const ot="1.15.2",it={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{it[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const at={};it.transitional=function(e,t,r){function n(e,t){return"[Axios v"+ot+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new G(n(o," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!at[o]&&(at[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},it.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var st={assertOptions:function(e,t,r){if("object"!=typeof e)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new G("option "+i+" must be "+r,G.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}},validators:it};const ct=st.validators;class lt{constructor(e){this.defaults=e||{},this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&st.assertOptions(r,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean),legacyInterceptorReqResOrdering:ct.transitional(ct.boolean)},!1),null!=n&&(K.isFunction(n)?t.paramsSerializer={serialize:n}:st.assertOptions(n,{encode:ct.function,serialize:ct.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),st.assertOptions(t,{baseUrl:ct.spelling("baseURL"),withXsrfToken:ct.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&K.merge(o.common,o[t.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ae.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||ae;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[nt.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=a.length;let p=t;for(;f<u;){const e=a[f++],t=a[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{l=nt.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return oe(Le((e=Ie(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],(function(e){lt.prototype[e]=function(t,r){return this.request(Ie(r||{},{method:e,url:t,data:(r||{}).data}))}})),K.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ie(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}lt.prototype[e]=t(),lt.prototype[e+"Form"]=t(!0)}));var ut=lt;class ft{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Te(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ft((function(t){e=t})),cancel:e}}}var pt=ft;const dt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dt).forEach((e=>{let[t,r]=e;dt[r]=t}));var yt=dt;const ht=function e(r){const n=new ut(r),o=t(ut.prototype.request,n);return K.extend(o,ut.prototype,n,{allOwnKeys:!0}),K.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(Ie(r,t))},o}(ge);ht.Axios=ut,ht.CanceledError=Te,ht.CancelToken=pt,ht.isCancel=je,ht.VERSION=ot,ht.toFormData=Z,ht.AxiosError=G,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Ie,ht.AxiosHeaders=Ae,ht.formToJSON=e=>ye(K.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt.getAdapter,ht.HttpStatusCode=yt,ht.default=ht;var mt=ht,gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bt(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}const wt=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function Et(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Ot(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Et(i,n,o,a,s,"next",e)}function s(e){Et(i,n,o,a,s,"throw",e)}a(void 0)}))}}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var At="axios-retry";function _t(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(e=>!wt.has(e&&e.code))(e)}var jt=["get","head","options"],Tt=jt.concat(["put","delete"]);function Pt(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function xt(e){return!!e.config&&(Pt(e)&&-1!==Tt.indexOf(e.config.method))}function Nt(e){return _t(e)||xt(e)}function Dt(){return 0}function Ct(e){var t=e[At]||{};return t.retryCount=t.retryCount||0,e[At]=t,t}function Ut(){return(Ut=Ot((function*(e,t,r,n){var o=r.retryCount<e&&t(n);if("object"==typeof o)try{return yield o,!0}catch(e){return!1}return o}))).apply(this,arguments)}function Lt(e,t){e.interceptors.request.use((e=>(Ct(e).lastRequestTime=Date.now(),e))),e.interceptors.response.use(null,function(){var r=Ot((function*(r){var{config:n}=r;if(!n)return Promise.reject(r);var{retries:o=3,retryCondition:i=Nt,retryDelay:a=Dt,shouldResetTimeout:s=!1}=function(e,t){return St(St({},t),e[At])}(n,t),c=Ct(n);if(yield function(e,t,r,n){return Ut.apply(this,arguments)}(o,i,c,r)){c.retryCount+=1;var l=a(c.retryCount,r);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,n),!s&&n.timeout&&c.lastRequestTime){var u=Date.now()-c.lastRequestTime;n.timeout=Math.max(n.timeout-u-l,1)}return n.transformRequest=[e=>e],new Promise((t=>setTimeout((()=>t(e(n))),l)))}return Promise.reject(r)}));return function(e){return r.apply(this,arguments)}}())}Lt.isNetworkError=_t,Lt.isSafeRequestError=function(e){return!!e.config&&(Pt(e)&&-1!==jt.indexOf(e.config.method))},Lt.isIdempotentRequestError=xt,Lt.isNetworkOrIdempotentRequestError=Nt,Lt.exponentialDelay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()},Lt.isRetryableError=Pt;var Ft=TypeError,It=bt(Object.freeze({__proto__:null,default:{}})),kt="function"==typeof Map&&Map.prototype,Bt=Object.getOwnPropertyDescriptor&&kt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Mt=kt&&Bt&&"function"==typeof Bt.get?Bt.get:null,qt=kt&&Map.prototype.forEach,Wt="function"==typeof Set&&Set.prototype,Ht=Object.getOwnPropertyDescriptor&&Wt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$t=Wt&&Ht&&"function"==typeof Ht.get?Ht.get:null,zt=Wt&&Set.prototype.forEach,Kt="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Vt="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Gt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Jt=Boolean.prototype.valueOf,Xt=Object.prototype.toString,Qt=Function.prototype.toString,Yt=String.prototype.match,Zt=String.prototype.slice,er=String.prototype.replace,tr=String.prototype.toUpperCase,rr=String.prototype.toLowerCase,nr=RegExp.prototype.test,or=Array.prototype.concat,ir=Array.prototype.join,ar=Array.prototype.slice,sr=Math.floor,cr="function"==typeof BigInt?BigInt.prototype.valueOf:null,lr=Object.getOwnPropertySymbols,ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,fr="function"==typeof Symbol&&"object"==typeof Symbol.iterator,pr="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===fr||"symbol")?Symbol.toStringTag:null,dr=Object.prototype.propertyIsEnumerable,yr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function hr(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||nr.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-sr(-e):sr(e);if(n!==e){var o=String(n),i=Zt.call(t,o.length+1);return er.call(o,r,"$&_")+"."+er.call(er.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return er.call(t,r,"$&_")}var mr=It,gr=mr.custom,br=jr(gr)?gr:null,wr={__proto__:null,double:'"',single:"'"},Er={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Or=function e(t,r,n,o){var i=r||{};if(Pr(i,"quoteStyle")&&!Pr(wr,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Pr(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Pr(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Pr(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Pr(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Dr(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?hr(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return s?hr(t,l):l}var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return Ar(t)?"[Array]":"[Object]";var f=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=ir.call(Array(e.indent+1)," ")}return{base:r,prev:ir.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(Nr(o,t)>=0)return"[Circular]";function p(t,r,a){if(r&&(o=ar.call(o)).push(r),a){var s={depth:i.depth};return Pr(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!_r(t)){var d=function(e){if(e.name)return e.name;var t=Yt.call(Qt.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),y=kr(t,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ir.call(y,", ")+" }":"")}if(jr(t)){var h=fr?er.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ur.call(t);return"object"!=typeof t||fr?h:Ur(h)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var m="<"+rr.call(String(t.nodeName)),g=t.attributes||[],b=0;b<g.length;b++)m+=" "+g[b].name+"="+vr(Sr(g[b].value),"double",i);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+rr.call(String(t.nodeName))+">"}if(Ar(t)){if(0===t.length)return"[]";var w=kr(t,p);return f&&!function(e){for(var t=0;t<e.length;t++)if(Nr(e[t],"\n")>=0)return!1;return!0}(w)?"["+Ir(w,f)+"]":"[ "+ir.call(w,", ")+" ]"}if(function(e){return"[object Error]"===xr(e)&&Rr(e)}(t)){var E=kr(t,p);return"cause"in Error.prototype||!("cause"in t)||dr.call(t,"cause")?0===E.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ir.call(E,", ")+" }":"{ ["+String(t)+"] "+ir.call(or.call("[cause]: "+p(t.cause),E),", ")+" }"}if("object"==typeof t&&a){if(br&&"function"==typeof t[br]&&mr)return mr(t,{depth:u-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Mt||!e||"object"!=typeof e)return!1;try{Mt.call(e);try{$t.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var O=[];return qt&&qt.call(t,(function(e,r){O.push(p(r,t,!0)+" => "+p(e,t))})),Fr("Map",Mt.call(t),O,f)}if(function(e){if(!$t||!e||"object"!=typeof e)return!1;try{$t.call(e);try{Mt.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var v=[];return zt&&zt.call(t,(function(e){v.push(p(e,t))})),Fr("Set",$t.call(t),v,f)}if(function(e){if(!Kt||!e||"object"!=typeof e)return!1;try{Kt.call(e,Kt);try{Vt.call(e,Vt)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Lr("WeakMap");if(function(e){if(!Vt||!e||"object"!=typeof e)return!1;try{Vt.call(e,Vt);try{Kt.call(e,Kt)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Lr("WeakSet");if(function(e){if(!Gt||!e||"object"!=typeof e)return!1;try{return Gt.call(e),!0}catch(e){}return!1}(t))return Lr("WeakRef");if(function(e){return"[object Number]"===xr(e)&&Rr(e)}(t))return Ur(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!cr)return!1;try{return cr.call(e),!0}catch(e){}return!1}(t))return Ur(p(cr.call(t)));if(function(e){return"[object Boolean]"===xr(e)&&Rr(e)}(t))return Ur(Jt.call(t));if(function(e){return"[object String]"===xr(e)&&Rr(e)}(t))return Ur(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==gt&&t===gt)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===xr(e)&&Rr(e)}(t)&&!_r(t)){var S=kr(t,p),R=yr?yr(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",_=!R&&pr&&Object(t)===t&&pr in t?Zt.call(xr(t),8,-1):A?"Object":"",j=(R||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(_||A?"["+ir.call(or.call([],_||[],A||[]),": ")+"] ":"");return 0===S.length?j+"{}":f?j+"{"+Ir(S,f)+"}":j+"{ "+ir.call(S,", ")+" }"}return String(t)};function vr(e,t,r){var n=r.quoteStyle||t,o=wr[n];return o+e+o}function Sr(e){return er.call(String(e),/"/g,"&quot;")}function Rr(e){return!pr||!("object"==typeof e&&(pr in e||void 0!==e[pr]))}function Ar(e){return"[object Array]"===xr(e)&&Rr(e)}function _r(e){return"[object RegExp]"===xr(e)&&Rr(e)}function jr(e){if(fr)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!ur)return!1;try{return ur.call(e),!0}catch(e){}return!1}var Tr=Object.prototype.hasOwnProperty||function(e){return e in this};function Pr(e,t){return Tr.call(e,t)}function xr(e){return Xt.call(e)}function Nr(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Dr(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Dr(Zt.call(e,0,t.maxStringLength),t)+n}var o=Er[t.quoteStyle||"single"];return o.lastIndex=0,vr(er.call(er.call(e,o,"\\$1"),/[\x00-\x1f]/g,Cr),"single",t)}function Cr(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+tr.call(t.toString(16))}function Ur(e){return"Object("+e+")"}function Lr(e){return e+" { ? }"}function Fr(e,t,r,n){return e+" ("+t+") {"+(n?Ir(r,n):ir.call(r,", "))+"}"}function Ir(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+ir.call(e,","+r)+"\n"+t.prev}function kr(e,t){var r=Ar(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Pr(e,o)?t(e[o],e):""}var i,a="function"==typeof lr?lr(e):[];if(fr){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)Pr(e,c)&&(r&&String(Number(c))===c&&c<e.length||fr&&i["$"+c]instanceof Symbol||(nr.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof lr)for(var l=0;l<a.length;l++)dr.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var Br=Or,Mr=Ft,qr=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n},Wr=Object,Hr=Error,$r=EvalError,zr=RangeError,Kr=ReferenceError,Vr=SyntaxError,Gr=URIError,Jr=Math.abs,Xr=Math.floor,Qr=Math.max,Yr=Math.min,Zr=Math.pow,en=Math.round,tn=Number.isNaN||function(e){return e!=e},rn=Object.getOwnPropertyDescriptor;if(rn)try{rn([],"length")}catch(e){rn=null}var nn=rn,on=Object.defineProperty||!1;if(on)try{on({},"a",{value:1})}catch(e){on=!1}var an,sn=on,cn="undefined"!=typeof Symbol&&Symbol,ln=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},un="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null,fn=Wr.getPrototypeOf||null,pn=Object.prototype.toString,dn=Math.max,yn=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},hn=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==pn.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),o=dn(0,t.length-n.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,yn(n,arguments));return Object(o)===o?o:this}return t.apply(e,yn(n,arguments))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},mn=Function.prototype.bind||hn,gn=Function.prototype.call,bn=Function.prototype.apply,wn=bn,En=gn,On="undefined"!=typeof Reflect&&Reflect&&Reflect.apply||mn.call(En,wn),vn=mn,Sn=Ft,Rn=gn,An=On,_n=function(e){if(e.length<1||"function"!=typeof e[0])throw new Sn("a function is required");return An(vn,Rn,e)},jn=_n,Tn=nn;try{an=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var Pn,xn=!!an&&Tn&&Tn(Object.prototype,"__proto__"),Nn=Object,Dn=Nn.getPrototypeOf,Cn=xn&&"function"==typeof xn.get?jn([xn.get]):"function"==typeof Dn&&function(e){return Dn(null==e?e:Nn(e))},Un=un,Ln=fn,Fn=Cn,In=Un?function(e){return Un(e)}:Ln?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return Ln(e)}:Fn?function(e){return Fn(e)}:null,kn=Function.prototype.call,Bn=Object.prototype.hasOwnProperty,Mn=mn.call(kn,Bn),qn=Wr,Wn=Hr,Hn=$r,$n=zr,zn=Kr,Kn=Vr,Vn=Ft,Gn=Gr,Jn=Jr,Xn=Xr,Qn=Qr,Yn=Yr,Zn=Zr,eo=en,to=function(e){return tn(e)||0===e?e:e<0?-1:1},ro=Function,no=function(e){try{return ro('"use strict"; return ('+e+").constructor;")()}catch(e){}},oo=nn,io=sn,ao=function(){throw new Vn},so=oo?function(){try{return ao}catch(e){try{return oo(arguments,"callee").get}catch(e){return ao}}}():ao,co="function"==typeof cn&&"function"==typeof Symbol&&"symbol"==typeof cn("foo")&&"symbol"==typeof Symbol("bar")&&ln(),lo=In,uo=fn,fo=un,po=bn,yo=gn,ho={},mo="undefined"!=typeof Uint8Array&&lo?lo(Uint8Array):Pn,go={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Pn:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Pn:ArrayBuffer,"%ArrayIteratorPrototype%":co&&lo?lo([][Symbol.iterator]()):Pn,"%AsyncFromSyncIteratorPrototype%":Pn,"%AsyncFunction%":ho,"%AsyncGenerator%":ho,"%AsyncGeneratorFunction%":ho,"%AsyncIteratorPrototype%":ho,"%Atomics%":"undefined"==typeof Atomics?Pn:Atomics,"%BigInt%":"undefined"==typeof BigInt?Pn:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Pn:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Pn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Pn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Wn,"%eval%":eval,"%EvalError%":Hn,"%Float16Array%":"undefined"==typeof Float16Array?Pn:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Pn:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Pn:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Pn:FinalizationRegistry,"%Function%":ro,"%GeneratorFunction%":ho,"%Int8Array%":"undefined"==typeof Int8Array?Pn:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Pn:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Pn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":co&&lo?lo(lo([][Symbol.iterator]())):Pn,"%JSON%":"object"==typeof JSON?JSON:Pn,"%Map%":"undefined"==typeof Map?Pn:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&co&&lo?lo((new Map)[Symbol.iterator]()):Pn,"%Math%":Math,"%Number%":Number,"%Object%":qn,"%Object.getOwnPropertyDescriptor%":oo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Pn:Promise,"%Proxy%":"undefined"==typeof Proxy?Pn:Proxy,"%RangeError%":$n,"%ReferenceError%":zn,"%Reflect%":"undefined"==typeof Reflect?Pn:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Pn:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&co&&lo?lo((new Set)[Symbol.iterator]()):Pn,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Pn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":co&&lo?lo(""[Symbol.iterator]()):Pn,"%Symbol%":co?Symbol:Pn,"%SyntaxError%":Kn,"%ThrowTypeError%":so,"%TypedArray%":mo,"%TypeError%":Vn,"%Uint8Array%":"undefined"==typeof Uint8Array?Pn:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Pn:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Pn:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Pn:Uint32Array,"%URIError%":Gn,"%WeakMap%":"undefined"==typeof WeakMap?Pn:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Pn:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Pn:WeakSet,"%Function.prototype.call%":yo,"%Function.prototype.apply%":po,"%Object.defineProperty%":io,"%Object.getPrototypeOf%":uo,"%Math.abs%":Jn,"%Math.floor%":Xn,"%Math.max%":Qn,"%Math.min%":Yn,"%Math.pow%":Zn,"%Math.round%":eo,"%Math.sign%":to,"%Reflect.getPrototypeOf%":fo};if(lo)try{null.error}catch(e){var bo=lo(lo(e));go["%Error.prototype%"]=bo}var wo=function e(t){var r;if("%AsyncFunction%"===t)r=no("async function () {}");else if("%GeneratorFunction%"===t)r=no("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=no("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&lo&&(r=lo(o.prototype))}return go[t]=r,r},Eo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Oo=mn,vo=Mn,So=Oo.call(yo,Array.prototype.concat),Ro=Oo.call(po,Array.prototype.splice),Ao=Oo.call(yo,String.prototype.replace),_o=Oo.call(yo,String.prototype.slice),jo=Oo.call(yo,RegExp.prototype.exec),To=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Po=/\\(\\)?/g,xo=function(e,t){var r,n=e;if(vo(Eo,n)&&(n="%"+(r=Eo[n])[0]+"%"),vo(go,n)){var o=go[n];if(o===ho&&(o=wo(n)),void 0===o&&!t)throw new Vn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Kn("intrinsic "+e+" does not exist!")},No=function(e,t){if("string"!=typeof e||0===e.length)throw new Vn("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Vn('"allowMissing" argument must be a boolean');if(null===jo(/^%?[^%]*%?$/,e))throw new Kn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=_o(e,0,1),r=_o(e,-1);if("%"===t&&"%"!==r)throw new Kn("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Kn("invalid intrinsic syntax, expected opening `%`");var n=[];return Ao(e,To,(function(e,t,r,o){n[n.length]=r?Ao(o,Po,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=xo("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],Ro(r,So([0,1],c)));for(var l=1,u=!0;l<r.length;l+=1){var f=r[l],p=_o(f,0,1),d=_o(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===d||"'"===d||"`"===d)&&p!==d)throw new Kn("property names with quotes must have matching quotes");if("constructor"!==f&&u||(s=!0),vo(go,i="%"+(n+="."+f)+"%"))a=go[i];else if(null!=a){if(!(f in a)){if(!t)throw new Vn("base intrinsic for "+e+" exists, but the property is not available.");return}if(oo&&l+1>=r.length){var y=oo(a,f);a=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else u=vo(a,f),a=a[f];u&&!s&&(go[i]=a)}}return a},Do=No,Co=_n,Uo=Co([Do("%String.prototype.indexOf%")]),Lo=function(e,t){var r=Do(e,!!t);return"function"==typeof r&&Uo(e,".prototype.")>-1?Co([r]):r},Fo=Lo,Io=Or,ko=Ft,Bo=No("%Map%",!0),Mo=Fo("Map.prototype.get",!0),qo=Fo("Map.prototype.set",!0),Wo=Fo("Map.prototype.has",!0),Ho=Fo("Map.prototype.delete",!0),$o=Fo("Map.prototype.size",!0),zo=!!Bo&&function(){var e,t={assert:function(e){if(!t.has(e))throw new ko("Side channel does not contain "+Io(e))},delete:function(t){if(e){var r=Ho(e,t);return 0===$o(e)&&(e=void 0),r}return!1},get:function(t){if(e)return Mo(e,t)},has:function(t){return!!e&&Wo(e,t)},set:function(t,r){e||(e=new Bo),qo(e,t,r)}};return t},Ko=Lo,Vo=Or,Go=zo,Jo=Ft,Xo=No("%WeakMap%",!0),Qo=Ko("WeakMap.prototype.get",!0),Yo=Ko("WeakMap.prototype.set",!0),Zo=Ko("WeakMap.prototype.has",!0),ei=Ko("WeakMap.prototype.delete",!0),ti=Ft,ri=Or,ni=(Xo?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new Jo("Side channel does not contain "+Vo(e))},delete:function(r){if(Xo&&r&&("object"==typeof r||"function"==typeof r)){if(e)return ei(e,r)}else if(Go&&t)return t.delete(r);return!1},get:function(r){return Xo&&r&&("object"==typeof r||"function"==typeof r)&&e?Qo(e,r):t&&t.get(r)},has:function(r){return Xo&&r&&("object"==typeof r||"function"==typeof r)&&e?Zo(e,r):!!t&&t.has(r)},set:function(r,n){Xo&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Xo),Yo(e,r,n)):Go&&(t||(t=Go()),t.set(r,n))}};return r}:Go)||zo||function(){var e,t={assert:function(e){if(!t.has(e))throw new Mr("Side channel does not contain "+Br(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return qr(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=qr(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!qr(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=qr(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t},oi=function(){var e,t={assert:function(e){if(!t.has(e))throw new ti("Side channel does not contain "+ri(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=ni()),e.set(t,r)}};return t},ii=String.prototype.replace,ai=/%20/g,si="RFC3986",ci={default:si,formatters:{RFC1738:function(e){return ii.call(e,ai,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:si},li=ci,ui=oi,fi=Object.prototype.hasOwnProperty,pi=Array.isArray,di=ui(),yi=function(e,t){return di.set(e,t),e},hi=function(e){return di.has(e)},mi=function(e){return di.get(e)},gi=function(e,t){di.set(e,t)},bi=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),wi=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Ei=1024,Oi={arrayToObject:wi,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t,r,n){if(hi(e)){var o=mi(e)+1;return e[o]=t,gi(e,o),e}var i=[].concat(e,t);return i.length>r?yi(wi(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=i[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t[t.length]={obj:i,prop:c},r[r.length]=l)}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(pi(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;s+=Ei){for(var c=i.length>=Ei?i.slice(s,s+Ei):i,l=[],u=0;u<c.length;++u){var f=c.charCodeAt(u);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===li.RFC1738&&(40===f||41===f)?l[l.length]=c.charAt(u):f<128?l[l.length]=bi[f]:f<2048?l[l.length]=bi[192|f>>6]+bi[128|63&f]:f<55296||f>=57344?l[l.length]=bi[224|f>>12]+bi[128|f>>6&63]+bi[128|63&f]:(u+=1,f=65536+((1023&f)<<10|1023&c.charCodeAt(u)),l[l.length]=bi[240|f>>18]+bi[128|f>>12&63]+bi[128|f>>6&63]+bi[128|63&f])}a+=l.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:hi,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:yi,maybeMap:function(e,t){if(pi(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(pi(t)){var o=t.length;if(n&&"number"==typeof n.arrayLimit&&o>n.arrayLimit)return yi(wi(t.concat(r),n),o);t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(hi(t)){var i=mi(t)+1;t[i]=r,gi(t,i)}else(n&&(n.plainObjects||n.allowPrototypes)||!fi.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(hi(r)){for(var a=Object.keys(r),s=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<a.length;c++){s[parseInt(a[c],10)+1]=r[a[c]]}return yi(s,mi(r)+1)}var l=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&l.length>n.arrayLimit?yi(wi(l,n),l.length-1):l}var u=t;return pi(t)&&!pi(r)&&(u=wi(t,n)),pi(t)&&pi(r)?(r.forEach((function(r,o){if(fi.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];if(fi.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,hi(r)&&!hi(t)&&yi(t,mi(r)),hi(t)){var a=parseInt(o,10);String(a)===o&&a>=0&&a>mi(t)&&gi(t,a)}return t}),u)}},vi=oi,Si=Oi,Ri=ci,Ai=Object.prototype.hasOwnProperty,_i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},ji=Array.isArray,Ti=Array.prototype.push,Pi=function(e,t){Ti.apply(e,ji(t)?t:[t])},xi=Date.prototype.toISOString,Ni=Ri.default,Di={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Si.encode,encodeValuesOnly:!1,filter:void 0,format:Ni,formatter:Ri.formatters[Ni],indices:!1,serializeDate:function(e){return xi.call(e)},skipNulls:!1,strictNullHandling:!1},Ci={},Ui=function e(t,r,n,o,i,a,s,c,l,u,f,p,d,y,h,m,g,b){for(var w,E=t,O=b,v=0,S=!1;void 0!==(O=O.get(Ci))&&!S;){var R=O.get(t);if(v+=1,void 0!==R){if(R===v)throw new RangeError("Cyclic object value");S=!0}void 0===O.get(Ci)&&(v=0)}if("function"==typeof u?E=u(r,E):E instanceof Date?E=d(E):"comma"===n&&ji(E)&&(E=Si.maybeMap(E,(function(e){return e instanceof Date?d(e):e}))),null===E){if(a)return l&&!m?l(r,Di.encoder,g,"key",y):r;E=""}if("string"==typeof(w=E)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||Si.isBuffer(E))return l?[h(m?r:l(r,Di.encoder,g,"key",y))+"="+h(l(E,Di.encoder,g,"value",y))]:[h(r)+"="+h(String(E))];var A,_=[];if(void 0===E)return _;if("comma"===n&&ji(E))m&&l&&(E=Si.maybeMap(E,l)),A=[{value:E.length>0?E.join(",")||null:void 0}];else if(ji(u))A=u;else{var j=Object.keys(E);A=f?j.sort(f):j}var T=c?String(r).replace(/\./g,"%2E"):String(r),P=o&&ji(E)&&1===E.length?T+"[]":T;if(i&&ji(E)&&0===E.length)return P+"[]";for(var x=0;x<A.length;++x){var N=A[x],D="object"==typeof N&&N&&void 0!==N.value?N.value:E[N];if(!s||null!==D){var C=p&&c?String(N).replace(/\./g,"%2E"):String(N),U=ji(E)?"function"==typeof n?n(P,C):P:P+(p?"."+C:"["+C+"]");b.set(t,v);var L=vi();L.set(Ci,b),Pi(_,e(D,U,n,o,i,a,s,c,"comma"===n&&m&&ji(E)?null:l,u,f,p,d,y,h,m,g,L))}}return _},Li=Oi,Fi=Object.prototype.hasOwnProperty,Ii=Array.isArray,ki={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Li.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Bi=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Mi=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},qi=function(e,t,r,n){if(e){var o=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&Fi.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(r),i=o?r.slice(0,o.index):r,a=[];if(i){if(!t.plainObjects&&Fi.call(Object.prototype,i)&&!t.allowPrototypes)return;a[a.length]=i}for(var s=0;null!==(o=n.exec(r))&&s<t.depth;){s+=1;var c=o[1].slice(1,-1);if(!t.plainObjects&&Fi.call(Object.prototype,c)&&!t.allowPrototypes)return;a[a.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");a[a.length]="["+r.slice(o.index)+"]"}return a}(e,r);if(o)return function(e,t,r,n){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");o=Array.isArray(t)&&t[i]?t[i].length:0}for(var a=n?t:Mi(t,r,o),s=e.length-1;s>=0;--s){var c,l=e[s];if("[]"===l&&r.parseArrays)c=Li.isOverflow(a)?a:r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:Li.combine([],a,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var u="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,f=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,p=parseInt(f,10),d=!isNaN(p)&&l!==f&&String(p)===f&&p>=0&&r.parseArrays;if(r.parseArrays||""!==f)if(d&&p<r.arrayLimit)(c=[])[p]=a;else{if(d&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");d?(c[p]=a,Li.markOverflow(c,p)):"__proto__"!==f&&(c[f]=a)}else c={0:a}}a=c}return a}(o,t,r,n)}},Wi=function(e,t){var r,n=e,o=function(e){if(!e)return Di;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Di.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Ri.default;if(void 0!==e.format){if(!Ai.call(Ri.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=Ri.formatters[r],i=Di.filter;if(("function"==typeof e.filter||ji(e.filter))&&(i=e.filter),n=e.arrayFormat in _i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Di.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||Di.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Di.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Di.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Di.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?Di.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Di.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Di.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Di.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Di.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Di.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Di.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Di.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):ji(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=_i[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=vi(),l=0;l<r.length;++l){var u=r[l],f=n[u];o.skipNulls&&null===f||Pi(i,Ui(f,u,a,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},Hi=function(e,t){var r=function(e){if(!e)return ki;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?ki.charset:e.charset,r=void 0===e.duplicates?ki.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||ki.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:ki.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:ki.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:ki.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:ki.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ki.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:ki.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:ki.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:ki.decoder,delimiter:"string"==typeof e.delimiter||Li.isRegExp(e.delimiter)?e.delimiter:ki.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:ki.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:ki.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:ki.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:ki.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:ki.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ki.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?function(e,t){var r={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=n.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?c="utf-8":"utf8=%26%2310003%3B"===i[a]&&(c="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var l,u,f=i[a],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;if(-1===d?(l=t.decoder(f,ki.decoder,c,"key"),u=t.strictNullHandling?null:""):null!==(l=t.decoder(f.slice(0,d),ki.decoder,c,"key"))&&(u=Li.maybeMap(Mi(f.slice(d+1),t,Ii(r[l])?r[l].length:0),(function(e){return t.decoder(e,ki.decoder,c,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===c&&(u=Bi(String(u))),f.indexOf("[]=")>-1&&(u=Ii(u)?[u]:u),t.comma&&Ii(u)&&u.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");u=Li.combine([],u,t.arrayLimit,t.plainObjects)}if(null!==l){var y=Fi.call(r,l);y&&"combine"===t.duplicates?r[l]=Li.combine(r[l],u,t.arrayLimit,t.plainObjects):y&&"last"!==t.duplicates||(r[l]=u)}}return r}(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=qi(s,n[s],r,"string"==typeof e);o=Li.merge(o,c,r)}return!0===r.allowSparse?o:Li.compact(o)},$i={formats:ci,parse:Hi,stringify:Wi};const zi=e=>{let t={raw:"",encoded:""};e.and&&(t=(e=>{if(!e)throw new Error("invalid query");const t=[],r=[];return e.forEach((e=>{const{raw:n,encoded:o}=zi(e);t.push(n),r.push(o)})),{raw:t.join("&"),encoded:r.join("&")}})(e.and),delete e.and);let r={raw:"",encoded:""};e.or&&(r=(e=>{if(!e)throw new Error("invalid query");const t=[];e.forEach((e=>{const{raw:r}=zi(e);t.push(r)}));const r=new URLSearchParams;return r.set("[or]",`(${t.join(";")})`),{raw:`[or]=(${t.join(";")})`,encoded:r.toString()}})(e.or),delete e.or);const n=$i.stringify(e,{encode:!1,arrayFormat:"comma"}),o=$i.stringify(e,{arrayFormat:"comma"});return{raw:[n,r.raw,t.raw].filter((e=>e)).join("&"),encoded:[o,r.encoded,t.encoded].filter((e=>e)).join("&")}},Ki=e=>{if(!mt.isAxiosError(e))throw e;const{config:t,response:r}=e;if(null==r||!r.data)throw e;const{data:n}=r,o={status:n.status,code:n.code,message:n.message};if(t&&(o.request={method:t.method,headers:t.headers},t.url)){const e=new URL(t.url,t.baseURL);o.request.url=e.toString()}const i=new Error;i.name=`${n.status} ${n.code}`;try{i.message=JSON.stringify(o,null,2)}catch{i.message=n.message}throw i},Vi=(e,t)=>{if(!(e=>{if("object"!=typeof e||null===e)return!1;const t=e;return"number"==typeof t.status&&"string"==typeof t.code&&"string"==typeof t.message})(e))throw e;const{status:r,code:n,message:o}=e,i={status:r,code:n,message:o,request:t},a=new Error;a.name=`${r} ${n}`;try{a.message=JSON.stringify(i,null,2)}catch{a.message=o}throw a};e.createClient=e=>{let{spaceUid:t,token:r,apiType:n="cdn",adapter:o,retryOnError:i=!0,retryLimit:a=3,fetch:s}=e;if(!t)throw new Error("spaceUid parameter is required.");if(!r)throw new Error("token parameter is required.");if(!["cdn","api"].includes(n))throw new Error(`apiType parameter should be set to "cdn" or "api". apiType: ${n}`);if(a>10)throw new Error("retryLimit should be a value less than or equal to 10.");const c=new URL(`https://${t}.${n}.newt.so`),l={Authorization:`Bearer ${r}`},u=mt.create({baseURL:c.toString(),headers:l,adapter:o});i&&Lt(u,{retries:a,retryCondition:e=>{var t,r;return 429===(null===(t=e.response)||void 0===t?void 0:t.status)||500===(null===(r=e.response)||void 0===r?void 0:r.status)},retryDelay:e=>1e3*e});const f=async e=>{let{appUid:t,modelUid:r,query:n}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");const o=new URL(`/v1/${t}/${r}`,c.toString());if(n&&Object.keys(n).length){const{encoded:e}=zi(n);o.search=e}if(s){const e={method:"get",headers:l,url:o.toString()};try{const t=await s(o.toString(),{headers:l}),r=await t.json();return t.ok?r:Vi(r,e)}catch(t){return Vi(t,e)}}else try{const{data:e}=await u.get(o.pathname+o.search);return e}catch(e){return Ki(e)}};return{getContents:f,getContent:async e=>{let{appUid:t,modelUid:r,contentId:n,query:o}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");if(!n)throw new Error("contentId parameter is required.");const i=new URL(`/v1/${t}/${r}/${n}`,c.toString());if(o&&Object.keys(o).length){const{encoded:e}=zi(o);i.search=e}if(s){const e={method:"get",headers:l,url:i.toString()};try{const t=await s(i.toString(),{headers:l}),r=await t.json();return t.ok?r:Vi(r,e)}catch(t){return Vi(t,e)}}else try{const{data:e}=await u.get(i.pathname+i.search);return e}catch(e){return Ki(e)}},getFirstContent:async e=>{let{appUid:t,modelUid:r,query:n}=e;if(n&&n.limit)throw new Error("query.limit parameter cannot have a value.");const o={...n,limit:1},{items:i}=await f({appUid:t,modelUid:r,query:o});return 0===i.length?null:i[0]},getApp:async e=>{let{appUid:t}=e;if(!t)throw new Error("appUid parameter is required.");const r=new URL(`/v1/space/apps/${t}`,c.toString());if(s){const e={method:"get",headers:l,url:r.toString()};try{const t=await s(r.toString(),{headers:l}),n=await t.json();return t.ok?n:Vi(n,e)}catch(t){return Vi(t,e)}}else try{const{data:e}=await u.get(r.pathname);return e}catch(e){return Ki(e)}}}},Object.defineProperty(e,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newt-client-js",
3
- "version": "3.3.16",
3
+ "version": "3.3.17",
4
4
  "description": "JavaScript SDK for Newt's API",
5
5
  "main": "./dist/cjs/newtClient.js",
6
6
  "module": "./dist/esm/newtClient.js",
@@ -59,5 +59,6 @@
59
59
  "ts-jest": "^29.1.1",
60
60
  "tslib": "^2.3.1",
61
61
  "typescript": "^5.3.3"
62
- }
62
+ },
63
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
63
64
  }