UNPKG

ebay-api

Version:

eBay API for Node and Browser

1 lines 200 kB
function bind$2(e,t){return function wrap(){return e.apply(t,arguments)}}const{toString:e}=Object.prototype,{getPrototypeOf:t}=Object,r=(n=Object.create(null),t=>{const r=e.call(t);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())});var n;const kindOfTest=e=>(e=e.toLowerCase(),t=>r(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:o}=Array,i=typeOfTest("undefined");const s=kindOfTest("ArrayBuffer");const c=typeOfTest("string"),u=typeOfTest("function"),l=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==r(e))return!1;const n=t(e);return!(null!==n&&n!==Object.prototype&&null!==Object.getPrototypeOf(n)||Symbol.toStringTag in e||Symbol.iterator in e)},p=kindOfTest("Date"),d=kindOfTest("File"),E=kindOfTest("Blob"),f=kindOfTest("FileList"),_=kindOfTest("URLSearchParams");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),o(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function findKey(e,t){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 g="undefined"==typeof self?"undefined"==typeof global?window:global:self,isContextDefined=e=>!i(e)&&e!==g;const h=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&t(Uint8Array)),m=kindOfTest("HTMLFormElement"),R=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),A=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,((r,o)=>{!1!==t(r,o,e)&&(n[o]=r)})),Object.defineProperties(e,n)};var y={isArray:o,isArrayBuffer:s,isBuffer:function isBuffer$1(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&u(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:t=>{const r="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||e.call(t)===r||u(t.toString)&&t.toString()===r)},isArrayBufferView:function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer),t},isString:c,isNumber:l,isBoolean:e=>!0===e||!1===e,isObject:isObject,isPlainObject:isPlainObject,isUndefined:i,isDate:p,isFile:d,isBlob:E,isRegExp:A,isFunction:u,isStream:e=>isObject(e)&&u(e.pipe),isURLSearchParams:_,isTypedArray:h,isFileList:f,forEach:forEach,merge:function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},t={},assignValue=(r,n)=>{const i=e&&findKey(t,n)||n;isPlainObject(t[i])&&isPlainObject(r)?t[i]=merge$1(t[i],r):isPlainObject(r)?t[i]=merge$1({},r):o(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],assignValue);return t},extend:(e,t,r,{allOwnKeys:n}={})=>(forEach(t,((t,n)=>{r&&u(t)?e[n]=bind$2(t,r):e[n]=t}),{allOwnKeys:n}),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),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,r,n,o)=>{let i,s,c;const u={};if(r=r||{},null==e)return r;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)c=i[s],o&&!o(c,e,r)||u[c]||(r[c]=e[c],u[c]=!0);e=!1!==n&&t(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},kindOf:r,kindOfTest:kindOfTest,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(o(e))return e;let t=e.length;if(!l(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).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:m,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,((t,r)=>{if(u(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];u(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={},define=e=>{e.forEach((e=>{r[e]=!0}))};return o(e)?define(e):define(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function replacer(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:findKey,global:g,isContextDefined:isContextDefined,toJSONObject:e=>{const t=new Array(10),visit=(e,r)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const n=o(e)?[]:{};return forEach(e,((e,t)=>{const o=visit(e,r+1);!i(o)&&(n[t]=o)})),t[r]=void 0,n}}return e};return visit(e,0)}};function AxiosError(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}y.inherits(AxiosError,Error,{toJSON:function 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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I=AxiosError.prototype,T={};function getAugmentedNamespace(e){var t=e.default;if("function"==typeof t){var r=function a(){if(this instanceof a){var e=[null];e.push.apply(e,arguments);var r=Function.bind.apply(t,e);return new r}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{T[e]={value:e}})),Object.defineProperties(AxiosError,T),Object.defineProperty(I,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,o,i)=>{const s=Object.create(I);return y.toFlatObject(e,s,(function filter(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var S="object"==typeof self?self.FormData:window.FormData;function isVisitable(e){return y.isPlainObject(e)||y.isArray(e)}function removeBrackets(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function each(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const N=y.toFlatObject(y,{},null,(function filter(e){return/^is[A-Z]/.test(e)}));function toFormData(e,t,r){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new(S||FormData);const n=(r=y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function defined(e,t){return!y.isUndefined(t[e])}))).metaTokens,o=r.visitor||defaultVisitor,i=r.dots,s=r.indexes,c=(r.Blob||"undefined"!=typeof Blob&&Blob)&&function isSpecCompliant(e){return e&&y.isFunction(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator]}(t);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(y.isDate(e))return e.toISOString();if(!c&&y.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(e)||y.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function defaultVisitor(e,r,o){let c=e;if(e&&!o&&"object"==typeof e)if(y.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(y.isArray(e)&&function isFlatArray(e){return y.isArray(e)&&!e.some(isVisitable)}(e)||y.isFileList(e)||y.endsWith(r,"[]")&&(c=y.toArray(e)))return r=removeBrackets(r),c.forEach((function each(e,n){!y.isUndefined(e)&&null!==e&&t.append(!0===s?renderKey([r],n,i):null===s?r:r+"[]",convertValue(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(o,r,i),convertValue(e)),!1)}const u=[],l=Object.assign(N,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});if(!y.isObject(e))throw new TypeError("data must be an object");return function build(e,r){if(!y.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+r.join("."));u.push(e),y.forEach(e,(function each(e,n){!0===(!(y.isUndefined(e)||null===e)&&o.call(t,e,y.isString(n)?n.trim():n,r,l))&&build(e,r?r.concat(n):[n])})),u.pop()}}(e),t}function encode$2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function replacer(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const C=AxiosURLSearchParams.prototype;function encode$1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode$1,o=r&&r.serialize;let i;if(i=o?o(t,r):y.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}C.append=function append(e,t){this._pairs.push([e,t])},C.toString=function toString(e){const t=e?function(t){return e.call(this,t,encode$2)}:encode$2;return this._pairs.map((function each(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var O=class InterceptorManager{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){y.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))}},P={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,U=FormData;const D=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),L="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var B={isBrowser:!0,classes:{URLSearchParams:b,FormData:U,Blob:Blob},isStandardBrowserEnv:D,isStandardBrowserWebWorkerEnv:L,protocols:["http","https","file","blob","url","data"]};function formDataToJSON(e){function buildPath(e,t,r,n){let o=e[n++];const i=Number.isFinite(+o),s=n>=e.length;if(o=!o&&y.isArray(r)?r.length:o,s)return y.hasOwnProp(r,o)?r[o]=[r[o],t]:r[o]=t,!i;r[o]&&y.isObject(r[o])||(r[o]=[]);return buildPath(e,t,r[o],n)&&y.isArray(r[o])&&(r[o]=function arrayToObject$1(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}(r[o])),!i}if(y.isFormData(e)&&y.isFunction(e.entries)){const t={};return y.forEachEntry(e,((e,r)=>{buildPath(function parsePropPath(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,t,0)})),t}return null}const M={"Content-Type":void 0};const v={transitional:P,adapter:["xhr","http"],transformRequest:[function transformRequest(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=y.isObject(e);o&&y.isHTMLForm(e)&&(e=new FormData(e));if(y.isFormData(e))return n&&n?JSON.stringify(formDataToJSON(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.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 toURLEncodedForm(e,t){return toFormData(e,new B.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return B.isNode&&y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function stringifySafely(e,t,r){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){const t=this.transitional||v.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&y.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.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:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],(function forEachMethodNoData(e){v.headers[e]={}})),y.forEach(["post","put","patch"],(function forEachMethodWithData(e){v.headers[e]=y.merge(M)}));var F=v;const x=y.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 w=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:y.isArray(e)?e.map(normalizeValue):String(e)}function matchHeaderValue(e,t,r,n){return y.isFunction(n)?n.call(this,t,r):y.isString(t)?y.isString(n)?-1!==t.indexOf(n):y.isRegExp(n)?n.test(t):void 0:void 0}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function setHeader(e,t,r){const o=normalizeHeader(t);if(!o)throw new Error("header name must be a non-empty string");const i=y.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue(e))}const setHeaders=(e,t)=>y.forEach(e,((e,r)=>setHeader(e,r,t)));return y.isPlainObject(e)||e instanceof this.constructor?setHeaders(e,t):y.isString(e)&&(e=e.trim())&&!function isValidHeaderName(e){return/^[-_a-zA-Z]+$/.test(e.trim())}(e)?setHeaders((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function parser(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&x[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&setHeader(t,e,r),this}get(e,t){if(e=normalizeHeader(e)){const r=y.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function parseTokens(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(y.isFunction(t))return t.call(this,e,r);if(y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=y.findKey(this,e);return!(!r||t&&!matchHeaderValue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function deleteHeader(e){if(e=normalizeHeader(e)){const o=y.findKey(r,e);!o||t&&!matchHeaderValue(0,r[o],o,t)||(delete r[o],n=!0)}}return y.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),n}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const t=this,r={};return y.forEach(this,((n,o)=>{const i=y.findKey(r,o);if(i)return t[i]=normalizeValue(n),void delete t[o];const s=e?function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=normalizeValue(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return y.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&y.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[w]=this[w]={accessors:{}}).accessors,r=this.prototype;function defineAccessor(e){const n=normalizeHeader(e);t[n]||(!function buildAccessors(e,t){const r=y.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 y.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),y.freezeMethods(AxiosHeaders.prototype),y.freezeMethods(AxiosHeaders);var k=AxiosHeaders;function transformData(e,t){const r=this||F,n=t||r,o=k.from(n.headers);let i=n.data;return y.forEach(e,(function transform(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}y.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var G=B.isStandardBrowserEnv?function standardBrowserEnv(){return{write:function write(e,t,r,n,o,i){const s=[];s.push(e+"="+encodeURIComponent(t)),y.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),y.isString(n)&&s.push("path="+n),y.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}};function buildFullPath(e,t){return e&&!function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Y=B.isStandardBrowserEnv?function standardBrowserEnv(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function resolveURL(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=resolveURL(window.location.href),function isURLSameOrigin(e){const t=y.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function isURLSameOrigin(){return!0};function progressEventReducer(e,t){let r=0;const n=function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function push(c){const u=Date.now(),l=n[s];o||(o=u),r[i]=c,n[i]=u;let p=s,d=0;for(;p!==i;)d+=r[p++],p%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const E=l&&u-l;return E?Math.round(1e3*d/E):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,c=i-r,u=n(c);r=i;const l={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const $={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function dispatchXhrRequest(t,r){let n=e.data;const o=k.from(e.headers).normalize(),i=e.responseType;let s;function done(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}y.isFormData(n)&&(B.isStandardBrowserEnv||B.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const u=buildFullPath(e.baseURL,e.url);function onloadend(){if(!c)return;const n=k.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function settle(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function _resolve(e){t(e),done()}),(function _reject(e){r(e),done()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),buildURL(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=onloadend:c.onreadystatechange=function handleLoad(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(onloadend)},c.onabort=function handleAbort(){c&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,c)),c=null)},c.onerror=function handleError(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,c)),c=null},c.ontimeout=function handleTimeout(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||P;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new AxiosError(t,n.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,c)),c=null},B.isStandardBrowserEnv){const t=(e.withCredentials||Y(u))&&e.xsrfCookieName&&G.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&y.forEach(o.toJSON(),(function setRequestHeader(e,t){c.setRequestHeader(t,e)})),y.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{c&&(r(!t||t.type?new CanceledError(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const l=function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);l&&-1===B.protocols.indexOf(l)?r(new AxiosError("Unsupported protocol "+l+":",AxiosError.ERR_BAD_REQUEST,e)):c.send(n||null)}))}};y.forEach($,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var adapters_getAdapter=e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=y.isString(r)?$[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new AxiosError(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(y.hasOwnProp($,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!y.isFunction(n))throw new TypeError("adapter is not a function");return n};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=k.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters_getAdapter(e.adapter||F.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=k.from(t.headers),t}),(function onAdapterRejection(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=k.from(t.response.headers))),Promise.reject(t)}))}const headersToObject=e=>e instanceof k?e.toJSON():e;function mergeConfig(e,t){t=t||{};const r={};function getMergedValue(e,t,r){return y.isPlainObject(e)&&y.isPlainObject(t)?y.merge.call({caseless:r},e,t):y.isPlainObject(t)?y.merge({},t):y.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,r){return y.isUndefined(t)?y.isUndefined(e)?void 0:getMergedValue(void 0,e,r):getMergedValue(e,t,r)}function valueFromConfig2(e,t){if(!y.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return y.isUndefined(t)?y.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(r,n,o){return o in t?getMergedValue(r,n):o in e?getMergedValue(void 0,r):void 0}const n={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t)=>mergeDeepProperties(headersToObject(e),headersToObject(t),!0)};return y.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(o){const i=n[o]||mergeDeepProperties,s=i(e[o],t[o],o);y.isUndefined(s)&&i!==mergeDirectKeys||(r[o]=s)})),r}const H="1.2.1",j={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{j[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const V={};j.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v1.2.1] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new AxiosError(formatMessage(n," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!V[n]&&(V[n]=!0,console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}};var K={assertOptions:function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new AxiosError("option "+i+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}},validators:j};const W=K.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new O,response:new O}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;let i;void 0!==r&&K.assertOptions(r,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1),void 0!==n&&K.assertOptions(n,{encode:W.function,serialize:W.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&y.merge(o.common,o[t.method]),i&&y.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=k.concat(i,o);const s=[];let c=!0;this.interceptors.request.forEach((function unshiftRequestInterceptors(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const u=[];let l;this.interceptors.response.forEach((function pushResponseInterceptors(e){u.push(e.fulfilled,e.rejected)}));let p,d=0;if(!c){const e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,u),p=e.length,l=Promise.resolve(t);d<p;)l=l.then(e[d++],e[d++]);return l}p=s.length;let E=t;for(d=0;d<p;){const e=s[d++],t=s[d++];try{E=e(E)}catch(e){t.call(this,e);break}}try{l=dispatchRequest.call(this,E)}catch(e){return Promise.reject(e)}for(d=0,p=u.length;d<p;)l=l.then(u[d++],u[d++]);return l}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(mergeConfig(r||{},{method:e,url:t,data:(r||{}).data}))}})),y.forEach(["post","put","patch"],(function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(r,n,o){return this.request(mergeConfig(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Axios.prototype[e]=generateHTTPMethod(),Axios.prototype[e+"Form"]=generateHTTPMethod(!0)}));var q=Axios;class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function promiseExecutor(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 reject(){r.unsubscribe(t)},n},e((function cancel(e,n,o){r.reason||(r.reason=new CanceledError(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)}static source(){let e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}}}var X=CancelToken;const J=function createInstance(e){const t=new q(e),r=bind$2(q.prototype.request,t);return y.extend(r,q.prototype,t,{allOwnKeys:!0}),y.extend(r,t,null,{allOwnKeys:!0}),r.create=function create(t){return createInstance(mergeConfig(e,t))},r}(F);J.Axios=q,J.CanceledError=CanceledError,J.CancelToken=X,J.isCancel=isCancel,J.VERSION=H,J.toFormData=toFormData,J.AxiosError=AxiosError,J.Cancel=J.CanceledError,J.all=function all(e){return Promise.all(e)},J.spread=function spread(e){return function wrap(t){return e.apply(null,t)}},J.isAxiosError=function isAxiosError(e){return y.isObject(e)&&!0===e.isAxiosError},J.mergeConfig=mergeConfig,J.AxiosHeaders=k,J.formToJSON=e=>formDataToJSON(y.isHTMLForm(e)?new FormData(e):e),J.default=J;var z,Q,Z=J,ee={exports:{}};function requireMs(){if(Q)return z;Q=1;var e=1e3,t=60*e,r=60*t,n=24*r,o=7*n,i=365.25*n;function plural(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}return z=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function parse(s){if((s=String(s)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!c)return;var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*n;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*t;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function fmtLong(o){var i=Math.abs(o);if(i>=n)return plural(o,i,n,"day");if(i>=r)return plural(o,i,r,"hour");if(i>=t)return plural(o,i,t,"minute");if(i>=e)return plural(o,i,e,"second");return o+" ms"}(s):function fmtShort(o){var i=Math.abs(o);if(i>=n)return Math.round(o/n)+"d";if(i>=r)return Math.round(o/r)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}var te=function setup(e){function createDebug(e){let t,r,n,o=null;function debug(...e){if(!debug.enabled)return;const r=debug,n=Number(new Date),o=n-(t||n);r.diff=o,r.prev=t,r.curr=n,t=n,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if("%%"===t)return"%";i++;const o=createDebug.formatters[n];if("function"==typeof o){const n=e[i];t=o.call(r,n),e.splice(i,1),i--}return t})),createDebug.formatArgs.call(r,e);(r.log||createDebug.log).apply(r,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==createDebug.namespaces&&(r=createDebug.namespaces,n=createDebug.enabled(e)),n),set:e=>{o=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const r=createDebug(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){let t;createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+e.slice(1)+"$")):createDebug.names.push(new RegExp("^"+e+"$")))},createDebug.enabled=function enabled(e){if("*"===e[e.length-1])return!0;let t,r;for(t=0,r=createDebug.skips.length;t<r;t++)if(createDebug.skips[t].test(e))return!1;for(t=0,r=createDebug.names.length;t<r;t++)if(createDebug.names[t].test(e))return!0;return!1},createDebug.humanize=requireMs(),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{createDebug[t]=e[t]})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug};!function(e,t){t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function localstorage(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=te(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ee,ee.exports);var re,ne=ee.exports,oe="undefined"!=typeof Symbol&&Symbol,ie=function hasSymbols(){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(t 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},se="Function.prototype.bind called on incompatible ",ae=Array.prototype.slice,ce=Object.prototype.toString,ue="[object Function]",le=function bind(e){var t=this;if("function"!=typeof t||ce.call(t)!==ue)throw new TypeError(se+t);for(var r,n=ae.call(arguments,1),binder=function(){if(this instanceof r){var o=t.apply(this,n.concat(ae.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(ae.call(arguments)))},o=Math.max(0,t.length-n.length),i=[],s=0;s<o;s++)i.push("$"+s);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(binder),t.prototype){var c=function Empty(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},pe=Function.prototype.bind||le,de=pe.call(Function.call,Object.prototype.hasOwnProperty),Ee=SyntaxError,fe=Function,_e=TypeError,getEvalledConstructor=function(e){try{return fe('"use strict"; return ('+e+").constructor;")()}catch(e){}},ge=Object.getOwnPropertyDescriptor;if(ge)try{ge({},"")}catch(e){ge=null}var throwTypeError=function(){throw new _e},he=ge?function(){try{return throwTypeError}catch(e){try{return ge(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,me=function hasNativeSymbols(){return"function"==typeof oe&&("function"==typeof Symbol&&("symbol"==typeof oe("foo")&&("symbol"==typeof Symbol("bar")&&ie())))}(),Re=Object.getPrototypeOf||function(e){return e.__proto__},Ae={},ye="undefined"==typeof Uint8Array?re:Re(Uint8Array),Ie={"%AggregateError%":"undefined"==typeof AggregateError?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?re:ArrayBuffer,"%ArrayIteratorPrototype%":me?Re([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":Ae,"%AsyncGenerator%":Ae,"%AsyncGeneratorFunction%":Ae,"%AsyncIteratorPrototype%":Ae,"%Atomics%":"undefined"==typeof Atomics?re:Atomics,"%BigInt%":"undefined"==typeof BigInt?re:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?re:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?re:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?re:FinalizationRegistry,"%Function%":fe,"%GeneratorFunction%":Ae,"%Int8Array%":"undefined"==typeof Int8Array?re:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?re:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":me?Re(Re([][Symbol.iterator]())):re,"%JSON%":"object"==typeof JSON?JSON:re,"%Map%":"undefined"==typeof Map?re:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&me?Re((new Map)[Symbol.iterator]()):re,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?re:Promise,"%Proxy%":"undefined"==typeof Proxy?re:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?re:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?re:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&me?Re((new Set)[Symbol.iterator]()):re,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":me?Re(""[Symbol.iterator]()):re,"%Symbol%":me?Symbol:re,"%SyntaxError%":Ee,"%ThrowTypeError%":he,"%TypedArray%":ye,"%TypeError%":_e,"%Uint8Array%":"undefined"==typeof Uint8Array?re:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?re:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?re:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?re:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?re:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?re:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?re:WeakSet},Te=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var r=doEval("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=doEval("%AsyncGenerator%");n&&(t=Re(n.prototype))}return Ie[e]=t,t},Se={"%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"]},Ne=pe,Ce=de,Oe=Ne.call(Function.call,Array.prototype.concat),Pe=Ne.call(Function.apply,Array.prototype.splice),be=Ne.call(Function.call,String.prototype.replace),Ue=Ne.call(Function.call,String.prototype.slice),De=Ne.call(Function.call,RegExp.prototype.exec),Le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Be=/\\(\\)?/g,Me=function stringToPath(e){var t=Ue(e,0,1),r=Ue(e,-1);if("%"===t&&"%"!==r)throw new Ee("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Ee("invalid intrinsic syntax, expected opening `%`");var n=[];return be(e,Le,(function(e,t,r,o){n[n.length]=r?be(o,Be,"$1"):t||e})),n},ve=function getBaseIntrinsic(e,t){var r,n=e;if(Ce(Se,n)&&(n="%"+(r=Se[n])[0]+"%"),Ce(Ie,n)){var o=Ie[n];if(o===Ae&&(o=Te(n)),void 0===o&&!t)throw new _e("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Ee("intrinsic "+e+" does not exist!")},Fe=function GetIntrinsic(e,t){if("string"!=typeof e||0===e.length)throw new _e("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new _e('"allowMissing" argument must be a boolean');if(null===De(/^%?[^%]*%?$/,e))throw new Ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Me(e),n=r.length>0?r[0]:"",o=ve("%"+n+"%",t),i=o.name,s=o.value,c=!1,u=o.alias;u&&(n=u[0],Pe(r,Oe([0,1],u)));for(var l=1,p=!0;l<r.length;l+=1){var d=r[l],E=Ue(d,0,1),f=Ue(d,-1);if(('"'===E||"'"===E||"`"===E||'"'===f||"'"===f||"`"===f)&&E!==f)throw new Ee("property names with quotes must have matching quotes");if("constructor"!==d&&p||(c=!0),Ce(Ie,i="%"+(n+="."+d)+"%"))s=Ie[i];else if(null!=s){if(!(d in s)){if(!t)throw new _e("base intrinsic for "+e+" exists, but the property is not available.");return}if(ge&&l+1>=r.length){var _=ge(s,d);s=(p=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:s[d]}else p=Ce(s,d),s=s[d];p&&!c&&(Ie[i]=s)}}return s},xe={exports:{}};!function(e){var t=pe,r=Fe,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),s=r("%Object.getOwnPropertyDescriptor%",!0),c=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function callBind(e){var r=i(t,o,arguments);if(s&&c){var n=s(r,"length");n.configurable&&c(r,"length",{value:1+u(0,e.length-(arguments.length-1))})}return r};var l=function applyBind(){return i(t,n,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l}(xe);var we=Fe,ke=xe.exports,Ge=ke(we("String.prototype.indexOf")),Ye=getAugmentedNamespace(Object.freeze({__proto__:null,default:{}})),$e="function"==typeof Map&&Map.prototype,He=Object.getOwnPropertyDescriptor&&$e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,je=$e&&He&&"function"==typeof He.get?He.get:null,Ve=$e&&Map.prototype.forEach,Ke="function"==typeof Set&&Set.prototype,We=Object.getOwnPropertyDescriptor&&Ke?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,qe=Ke&&We&&"function"==typeof We.get?We.get:null,Xe=Ke&&Set.prototype.forEach,Je="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,ze="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Qe="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ze=Boolean.prototype.valueOf,et=Object.prototype.toString,tt=Function.prototype.toString,rt=String.prototype.match,nt=String.prototype.slice,ot=String.prototype.replace,it=String.prototype.toUpperCase,st=String.prototype.toLowerCase,at=RegExp.prototype.test,ct=Array.prototype.concat,ut=Array.prototype.join,lt=Array.prototype.slice,pt=Math.floor,dt="function"==typeof BigInt?BigInt.prototype.valueOf:null,Et=Object.getOwnPropertySymbols,ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_t="function"==typeof Symbol&&"object"==typeof Symbol.iterator,gt="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_t||"symbol")?Symbol.toStringTag:null,ht=Object.prototype.propertyIsEnumerable,mt=("function"==typeof Reflect?Reflect.getPrototypeOf:Objec