@neosjs/request
Version:
NeosJS Request
12 lines • 65 kB
JavaScript
"use strict";var Mr=Object.defineProperty;var kr=(t,e,r)=>e in t?Mr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var _t=(t,e,r)=>(kr(t,typeof e!="symbol"?e+"":e,r),r);/*!
* NeosRequest
* Version: 2.1.0
* ReleaseTime: 2023-04-24 15:12
* Website: https://docs.neosjs.com/request/
* Copyright 2023 NoesJS
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function nr(t,e){return function(){return t.apply(e,arguments)}}const{toString:or}=Object.prototype,{getPrototypeOf:dt}=Object,yt=(t=>e=>{const r=or.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),I=t=>(t=t.toLowerCase(),e=>yt(e)===t),Ue=t=>e=>typeof e===t,{isArray:se}=Array,Se=Ue("undefined");function qr(t){return t!==null&&!Se(t)&&t.constructor!==null&&!Se(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ir=I("ArrayBuffer");function jr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ir(t.buffer),e}const Wr=Ue("string"),J=Ue("function"),ar=Ue("number"),ht=t=>t!==null&&typeof t=="object",Hr=t=>t===!0||t===!1,Te=t=>{if(yt(t)!=="object")return!1;const e=dt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},zr=I("Date"),Vr=I("File"),Jr=I("Blob"),Gr=I("FileList"),Kr=t=>ht(t)&&J(t.pipe),Qr=t=>{const e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||or.call(t)===e||J(t.toString)&&t.toString()===e)},Xr=I("URLSearchParams"),Yr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),se(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const i=r?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let s;for(n=0;n<a;n++)s=i[n],e.call(null,t[s],s,t)}}function sr(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const cr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),lr=t=>!Se(t)&&t!==cr;function et(){const{caseless:t}=lr(this)&&this||{},e={},r=(n,o)=>{const i=t&&sr(e,o)||o;Te(e[i])&&Te(n)?e[i]=et(e[i],n):Te(n)?e[i]=et({},n):se(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&be(arguments[n],r);return e}const Zr=(t,e,r,{allOwnKeys:n}={})=>(be(e,(o,i)=>{r&&J(o)?t[i]=nr(o,r):t[i]=o},{allOwnKeys:n}),t),en=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),tn=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},rn=(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&dt(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},nn=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},on=t=>{if(!t)return null;if(se(t))return t;let e=t.length;if(!ar(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},an=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&dt(Uint8Array)),sn=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},cn=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},ln=I("HTMLFormElement"),un=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ft=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),fn=I("RegExp"),ur=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};be(r,(o,i)=>{e(o,i,t)!==!1&&(n[i]=o)}),Object.defineProperties(t,n)},pn=t=>{ur(t,(e,r)=>{if(J(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(!!J(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},dn=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return se(t)?n(t):n(String(t).split(e)),r},yn=()=>{},hn=(t,e)=>(t=+t,Number.isFinite(t)?t:e),mn=t=>{const e=new Array(10),r=(n,o)=>{if(ht(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=se(n)?[]:{};return be(n,(a,s)=>{const l=r(a,o+1);!Se(l)&&(i[s]=l)}),e[o]=void 0,i}}return n};return r(t,0)},u={isArray:se,isArrayBuffer:ir,isBuffer:qr,isFormData:Qr,isArrayBufferView:jr,isString:Wr,isNumber:ar,isBoolean:Hr,isObject:ht,isPlainObject:Te,isUndefined:Se,isDate:zr,isFile:Vr,isBlob:Jr,isRegExp:fn,isFunction:J,isStream:Kr,isURLSearchParams:Xr,isTypedArray:an,isFileList:Gr,forEach:be,merge:et,extend:Zr,trim:Yr,stripBOM:en,inherits:tn,toFlatObject:rn,kindOf:yt,kindOfTest:I,endsWith:nn,toArray:on,forEachEntry:sn,matchAll:cn,isHTMLForm:ln,hasOwnProperty:Ft,hasOwnProp:Ft,reduceDescriptors:ur,freezeMethods:pn,toObjectSet:dn,toCamelCase:un,noop:yn,toFiniteNumber:hn,findKey:sr,global:cr,isContextDefined:lr,toJSONObject:mn};function v(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}u.inherits(v,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fr=v.prototype,pr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{pr[t]={value:t}});Object.defineProperties(v,pr);Object.defineProperty(fr,"isAxiosError",{value:!0});v.from=(t,e,r,n,o,i)=>{const a=Object.create(fr);return u.toFlatObject(t,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),v.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function gn(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var Sn=typeof self=="object"?self.FormData:window.FormData;const vn=Sn;function tt(t){return u.isPlainObject(t)||u.isArray(t)}function dr(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function Ct(t,e,r){return t?t.concat(e).map(function(o,i){return o=dr(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function En(t){return u.isArray(t)&&!t.some(tt)}const bn=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function wn(t){return t&&u.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function $e(t,e,r){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new(vn||FormData),r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,E){return!u.isUndefined(E[m])});const n=r.metaTokens,o=r.visitor||f,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&wn(e);if(!u.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(u.isDate(p))return p.toISOString();if(!l&&u.isBlob(p))throw new v("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(p)||u.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,m,E){let g=p;if(p&&!E&&typeof p=="object"){if(u.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(u.isArray(p)&&En(p)||u.isFileList(p)||u.endsWith(m,"[]")&&(g=u.toArray(p)))return m=dr(m),g.forEach(function(P,B){!(u.isUndefined(P)||P===null)&&e.append(a===!0?Ct([m],B,i):a===null?m:m+"[]",c(P))}),!1}return tt(p)?!0:(e.append(Ct(E,m,i),c(p)),!1)}const d=[],y=Object.assign(bn,{defaultVisitor:f,convertValue:c,isVisitable:tt});function h(p,m){if(!u.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),u.forEach(p,function(g,O){(!(u.isUndefined(g)||g===null)&&o.call(e,g,u.isString(O)?O.trim():O,m,y))===!0&&h(g,m?m.concat(O):[O])}),d.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Dt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function mt(t,e){this._pairs=[],t&&$e(t,this,e)}const yr=mt.prototype;yr.append=function(e,r){this._pairs.push([e,r])};yr.toString=function(e){const r=e?function(n){return e.call(this,n,Dt)}:Dt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Rn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hr(t,e,r){if(!e)return t;const n=r&&r.encode||Rn,o=r&&r.serialize;let i;if(o?i=o(e,r):i=u.isURLSearchParams(e)?e.toString():new mt(e,r).toString(n),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class On{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(n){n!==null&&e(n)})}}const It=On,mr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},An=typeof URLSearchParams<"u"?URLSearchParams:mt,Pn=FormData,Tn=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Nn=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_={isBrowser:!0,classes:{URLSearchParams:An,FormData:Pn,Blob},isStandardBrowserEnv:Tn,isStandardBrowserWebWorkerEnv:Nn,protocols:["http","https","file","blob","url","data"]};function xn(t,e){return $e(t,new _.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return _.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function _n(t){return u.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Fn(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function gr(t){function e(r,n,o,i){let a=r[i++];const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&u.isArray(o)?o.length:a,l?(u.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!u.isObject(o[a]))&&(o[a]=[]),e(r,n,o[a],i)&&u.isArray(o[a])&&(o[a]=Fn(o[a])),!s)}if(u.isFormData(t)&&u.isFunction(t.entries)){const r={};return u.forEachEntry(t,(n,o)=>{e(_n(n),o,r,0)}),r}return null}const Cn={"Content-Type":void 0};function Dn(t,e,r){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Le={transitional:mr,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=u.isObject(e);if(i&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return o&&o?JSON.stringify(gr(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xn(e,this.formSerializer).toString();if((s=u.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $e(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Dn(e)):e}],transformResponse:[function(e){const r=this.transitional||Le.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&u.isString(e)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?v.from(s,v.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};u.forEach(["delete","get","head"],function(e){Le.headers[e]={}});u.forEach(["post","put","patch"],function(e){Le.headers[e]=u.merge(Cn)});const gt=Le,In=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bn=t=>{const e={};let r,n,o;return t&&t.split(`
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||e[r]&&In[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Bt=Symbol("internals");function de(t){return t&&String(t).trim().toLowerCase()}function Ne(t){return t===!1||t==null?t:u.isArray(t)?t.map(Ne):String(t)}function Un(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}function $n(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function Ut(t,e,r,n){if(u.isFunction(n))return n.call(this,e,r);if(!!u.isString(e)){if(u.isString(n))return e.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(e)}}function Ln(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Mn(t,e){const r=u.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,a){return this[n].call(this,e,o,i,a)},configurable:!0})})}class Me{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(s,l,c){const f=de(l);if(!f)throw new Error("header name must be a non-empty string");const d=u.findKey(o,f);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Ne(s))}const a=(s,l)=>u.forEach(s,(c,f)=>i(c,f,l));return u.isPlainObject(e)||e instanceof this.constructor?a(e,r):u.isString(e)&&(e=e.trim())&&!$n(e)?a(Bn(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=de(e),e){const n=u.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return Un(o);if(u.isFunction(r))return r.call(this,o,n);if(u.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=de(e),e){const n=u.findKey(this,e);return!!(n&&(!r||Ut(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(a){if(a=de(a),a){const s=u.findKey(n,a);s&&(!r||Ut(n,n[s],s,r))&&(delete n[s],o=!0)}}return u.isArray(e)?e.forEach(i):i(e),o}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const r=this,n={};return u.forEach(this,(o,i)=>{const a=u.findKey(n,i);if(a){r[a]=Ne(o),delete r[i];return}const s=e?Ln(i):String(i).trim();s!==i&&delete r[i],r[s]=Ne(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return u.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Bt]=this[Bt]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=de(a);n[s]||(Mn(o,a),n[s]=!0)}return u.isArray(e)?e.forEach(i):i(e),this}}Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);u.freezeMethods(Me.prototype);u.freezeMethods(Me);const D=Me;function qe(t,e){const r=this||gt,n=e||r,o=D.from(n.headers);let i=n.data;return u.forEach(t,function(s){i=s.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Sr(t){return!!(t&&t.__CANCEL__)}function we(t,e,r){v.call(this,t==null?"canceled":t,v.ERR_CANCELED,e,r),this.name="CanceledError"}u.inherits(we,v,{__CANCEL__:!0});const kn=null;function qn(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new v("Request failed with status code "+r.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const jn=_.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,a,s){const l=[];l.push(r+"="+encodeURIComponent(n)),u.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),u.isString(i)&&l.push("path="+i),u.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Wn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Hn(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function vr(t,e){return t&&!Wn(e)?Hn(t,e):e}const zn=_.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return e&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const s=u.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Vn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Jn(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),f=n[i];a||(a=c),r[o]=l,n[o]=c;let d=i,y=0;for(;d!==o;)y+=r[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),c-a<e)return;const h=f&&c-f;return h?Math.round(y*1e3/h):void 0}}function $t(t,e){let r=0;const n=Jn(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,l=n(s),c=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-i)/l:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const Gn=typeof XMLHttpRequest<"u",Kn=Gn&&function(t){return new Promise(function(r,n){let o=t.data;const i=D.from(t.headers).normalize(),a=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}u.isFormData(o)&&(_.isStandardBrowserEnv||_.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const f=vr(t.baseURL,t.url);c.open(t.method.toUpperCase(),hr(f,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function d(){if(!c)return;const h=D.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:t,request:c};qn(function(g){r(g),l()},function(g){n(g),l()},m),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){!c||(n(new v("Request aborted",v.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new v("Network Error",v.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const m=t.transitional||mr;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),n(new v(p,m.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,c)),c=null},_.isStandardBrowserEnv){const h=(t.withCredentials||zn(f))&&t.xsrfCookieName&&jn.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&u.forEach(i.toJSON(),function(p,m){c.setRequestHeader(m,p)}),u.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",$t(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",$t(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{!c||(n(!h||h.type?new we(null,t,c):h),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const y=Vn(f);if(y&&_.protocols.indexOf(y)===-1){n(new v("Unsupported protocol "+y+":",v.ERR_BAD_REQUEST,t));return}c.send(o||null)})},xe={http:kn,xhr:Kn};u.forEach(xe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Qn={getAdapter:t=>{t=u.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;o<e&&(r=t[o],!(n=u.isString(r)?xe[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new v(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(u.hasOwnProp(xe,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!u.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:xe};function je(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new we(null,t)}function Lt(t){return je(t),t.headers=D.from(t.headers),t.data=qe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Qn.getAdapter(t.adapter||gt.adapter)(t).then(function(n){return je(t),n.data=qe.call(t,t.transformResponse,n),n.headers=D.from(n.headers),n},function(n){return Sr(n)||(je(t),n&&n.response&&(n.response.data=qe.call(t,t.transformResponse,n.response),n.response.headers=D.from(n.response.headers))),Promise.reject(n)})}const Mt=t=>t instanceof D?t.toJSON():t;function ne(t,e){e=e||{};const r={};function n(c,f,d){return u.isPlainObject(c)&&u.isPlainObject(f)?u.merge.call({caseless:d},c,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function o(c,f,d){if(u.isUndefined(f)){if(!u.isUndefined(c))return n(void 0,c,d)}else return n(c,f,d)}function i(c,f){if(!u.isUndefined(f))return n(void 0,f)}function a(c,f){if(u.isUndefined(f)){if(!u.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function s(c,f,d){if(d in e)return n(c,f);if(d in t)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials: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:(c,f)=>o(Mt(c),Mt(f),!0)};return u.forEach(Object.keys(t).concat(Object.keys(e)),function(f){const d=l[f]||o,y=d(t[f],e[f],f);u.isUndefined(y)&&d!==s||(r[f]=y)}),r}const Er="1.2.2",St={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{St[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const kt={};St.transitional=function(e,r,n){function o(i,a){return"[Axios v"+Er+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(e===!1)throw new v(o(a," has been removed"+(r?" in "+r:"")),v.ERR_DEPRECATED);return r&&!kt[a]&&(kt[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,a,s):!0}};function Xn(t,e,r){if(typeof t!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const s=t[i],l=s===void 0||a(s,i,t);if(l!==!0)throw new v("option "+i+" must be "+l,v.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new v("Unknown option "+i,v.ERR_BAD_OPTION)}}const rt={assertOptions:Xn,validators:St},L=rt.validators;class Fe{constructor(e){this.defaults=e,this.interceptors={request:new It,response:new It}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=ne(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&rt.assertOptions(n,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),o!==void 0&&rt.assertOptions(o,{encode:L.function,serialize:L.function},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a;a=i&&u.merge(i.common,i[r.method]),a&&u.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=D.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,d=0,y;if(!l){const p=[Lt.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),y=p.length,f=Promise.resolve(r);d<y;)f=f.then(p[d++],p[d++]);return f}y=s.length;let h=r;for(d=0;d<y;){const p=s[d++],m=s[d++];try{h=p(h)}catch(E){m.call(this,E);break}}try{f=Lt.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,y=c.length;d<y;)f=f.then(c[d++],c[d++]);return f}getUri(e){e=ne(this.defaults,e);const r=vr(e.baseURL,e.url);return hr(r,e.params,e.paramsSerializer)}}u.forEach(["delete","get","head","options"],function(e){Fe.prototype[e]=function(r,n){return this.request(ne(n||{},{method:e,url:r,data:(n||{}).data}))}});u.forEach(["post","put","patch"],function(e){function r(n){return function(i,a,s){return this.request(ne(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Fe.prototype[e]=r(),Fe.prototype[e+"Form"]=r(!0)});const _e=Fe;class vt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,s){n.reason||(n.reason=new we(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new vt(function(o){e=o}),cancel:e}}}const Yn=vt;function Zn(t){return function(r){return t.apply(null,r)}}function eo(t){return u.isObject(t)&&t.isAxiosError===!0}const nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nt).forEach(([t,e])=>{nt[e]=t});const to=nt;function br(t){const e=new _e(t),r=nr(_e.prototype.request,e);return u.extend(r,_e.prototype,e,{allOwnKeys:!0}),u.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return br(ne(t,o))},r}const b=br(gt);b.Axios=_e;b.CanceledError=we;b.CancelToken=Yn;b.isCancel=Sr;b.VERSION=Er;b.toFormData=$e;b.AxiosError=v;b.Cancel=b.CanceledError;b.all=function(e){return Promise.all(e)};b.spread=Zn;b.isAxiosError=eo;b.mergeConfig=ne;b.AxiosHeaders=D;b.formToJSON=t=>gr(u.isHTMLForm(t)?new FormData(t):t);b.HttpStatusCode=to;b.default=b;const G=b;var ro=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},qt=typeof Symbol<"u"&&Symbol,no=ro,oo=function(){return typeof qt!="function"||typeof Symbol!="function"||typeof qt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:no()},io="Function.prototype.bind called on incompatible ",We=Array.prototype.slice,ao=Object.prototype.toString,so="[object Function]",co=function(e){var r=this;if(typeof r!="function"||ao.call(r)!==so)throw new TypeError(io+r);for(var n=We.call(arguments,1),o,i=function(){if(this instanceof o){var f=r.apply(this,n.concat(We.call(arguments)));return Object(f)===f?f:this}else return r.apply(e,n.concat(We.call(arguments)))},a=Math.max(0,r.length-n.length),s=[],l=0;l<a;l++)s.push("$"+l);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o},lo=co,Et=Function.prototype.bind||lo,uo=Et,fo=uo.call(Function.call,Object.prototype.hasOwnProperty),S,oe=SyntaxError,wr=Function,ee=TypeError,He=function(t){try{return wr('"use strict"; return ('+t+").constructor;")()}catch{}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch{V=null}var ze=function(){throw new ee},po=V?function(){try{return arguments.callee,ze}catch{try{return V(arguments,"callee").get}catch{return ze}}}():ze,X=oo(),M=Object.getPrototypeOf||function(t){return t.__proto__},Y={},yo=typeof Uint8Array>"u"?S:M(Uint8Array),te={"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":X?M([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?S:Atomics,"%BigInt%":typeof BigInt>"u"?S:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?S:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?S:Float32Array,"%Float64Array%":typeof Float64Array>"u"?S:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?S:FinalizationRegistry,"%Function%":wr,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":X?M(M([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!X?S:M(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!X?S:M(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":X?M(""[Symbol.iterator]()):S,"%Symbol%":X?Symbol:S,"%SyntaxError%":oe,"%ThrowTypeError%":po,"%TypedArray%":yo,"%TypeError%":ee,"%Uint8Array%":typeof Uint8Array>"u"?S:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?S:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?S:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?S:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet},ho=function t(e){var r;if(e==="%AsyncFunction%")r=He("async function () {}");else if(e==="%GeneratorFunction%")r=He("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=He("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=M(o.prototype))}return te[e]=r,r},jt={"%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"]},Re=Et,Ce=fo,mo=Re.call(Function.call,Array.prototype.concat),go=Re.call(Function.apply,Array.prototype.splice),Wt=Re.call(Function.call,String.prototype.replace),De=Re.call(Function.call,String.prototype.slice),So=Re.call(Function.call,RegExp.prototype.exec),vo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Eo=/\\(\\)?/g,bo=function(e){var r=De(e,0,1),n=De(e,-1);if(r==="%"&&n!=="%")throw new oe("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oe("invalid intrinsic syntax, expected opening `%`");var o=[];return Wt(e,vo,function(i,a,s,l){o[o.length]=s?Wt(l,Eo,"$1"):a||i}),o},wo=function(e,r){var n=e,o;if(Ce(jt,n)&&(o=jt[n],n="%"+o[0]+"%"),Ce(te,n)){var i=te[n];if(i===Y&&(i=ho(n)),typeof i>"u"&&!r)throw new ee("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new oe("intrinsic "+e+" does not exist!")},bt=function(e,r){if(typeof e!="string"||e.length===0)throw new ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ee('"allowMissing" argument must be a boolean');if(So(/^%?[^%]*%?$/g,e)===null)throw new oe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bo(e),o=n.length>0?n[0]:"",i=wo("%"+o+"%",r),a=i.name,s=i.value,l=!1,c=i.alias;c&&(o=c[0],go(n,mo([0,1],c)));for(var f=1,d=!0;f<n.length;f+=1){var y=n[f],h=De(y,0,1),p=De(y,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new oe("property names with quotes must have matching quotes");if((y==="constructor"||!d)&&(l=!0),o+="."+y,a="%"+o+"%",Ce(te,a))s=te[a];else if(s!=null){if(!(y in s)){if(!r)throw new ee("base intrinsic for "+e+" exists, but the property is not available.");return}if(V&&f+1>=n.length){var m=V(s,y);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[y]}else d=Ce(s,y),s=s[y];d&&!l&&(te[a]=s)}}return s},Rr={exports:{}};(function(t){var e=Et,r=bt,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(d){var y=i(e,o,arguments);if(a&&s){var h=a(y,"length");h.configurable&&s(y,"length",{value:1+l(0,d.length-(arguments.length-1))})}return y};var c=function(){return i(e,n,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c})(Rr);var Or=bt,Ar=Rr.exports,Ro=Ar(Or("String.prototype.indexOf")),Oo=function(e,r){var n=Or(e,!!r);return typeof n=="function"&&Ro(e,".prototype.")>-1?Ar(n):n};const Ao={},Po=Object.freeze(Object.defineProperty({__proto__:null,default:Ao},Symbol.toStringTag,{value:"Module"})),To=gn(Po);var wt=typeof Map=="function"&&Map.prototype,Ve=Object.getOwnPropertyDescriptor&&wt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ie=wt&&Ve&&typeof Ve.get=="function"?Ve.get:null,No=wt&&Map.prototype.forEach,Rt=typeof Set=="function"&&Set.prototype,Je=Object.getOwnPropertyDescriptor&&Rt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Be=Rt&&Je&&typeof Je.get=="function"?Je.get:null,xo=Rt&&Set.prototype.forEach,_o=typeof WeakMap=="function"&&WeakMap.prototype,he=_o?WeakMap.prototype.has:null,Fo=typeof WeakSet=="function"&&WeakSet.prototype,me=Fo?WeakSet.prototype.has:null,Co=typeof WeakRef=="function"&&WeakRef.prototype,Ht=Co?WeakRef.prototype.deref:null,Do=Boolean.prototype.valueOf,Io=Object.prototype.toString,Bo=Function.prototype.toString,Uo=String.prototype.match,Ot=String.prototype.slice,q=String.prototype.replace,$o=String.prototype.toUpperCase,zt=String.prototype.toLowerCase,Pr=RegExp.prototype.test,Vt=Array.prototype.concat,x=Array.prototype.join,Lo=Array.prototype.slice,Jt=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ge=Object.getOwnPropertySymbols,it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie?"object":"symbol")?Symbol.toStringTag:null,Tr=Object.prototype.propertyIsEnumerable,Gt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Kt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Pr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Jt(-t):Jt(t);if(n!==t){var o=String(n),i=Ot.call(e,o.length+1);return q.call(o,r,"$&_")+"."+q.call(q.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(e,r,"$&_")}var at=To,Qt=at.custom,Xt=xr(Qt)?Qt:null,Mo=function t(e,r,n,o){var i=r||{};if(k(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(k(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=k(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(k(i,"indent")&&i.indent!==null&&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(k(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Fr(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return s?Kt(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return s?Kt(e,c):c}var f=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return st(e)?"[Array]":"[Object]";var d=ni(i,n);if(typeof o>"u")o=[];else if(_r(o,e)>=0)return"[Circular]";function y(T,$,F){if($&&(o=Lo.call(o),o.push($)),F){var pe={depth:i.depth};return k(i,"quoteStyle")&&(pe.quoteStyle=i.quoteStyle),t(T,pe,n+1,o)}return t(T,i,n+1,o)}if(typeof e=="function"&&!Yt(e)){var h=Go(e),p=Oe(e,y);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+x.call(p,", ")+" }":"")}if(xr(e)){var m=ie?q.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):it.call(e);return typeof e=="object"&&!ie?ye(m):m}if(ei(e)){for(var E="<"+zt.call(String(e.nodeName)),g=e.attributes||[],O=0;O<g.length;O++)E+=" "+g[O].name+"="+Nr(ko(g[O].value),"double",i);return E+=">",e.childNodes&&e.childNodes.length&&(E+="..."),E+="</"+zt.call(String(e.nodeName))+">",E}if(st(e)){if(e.length===0)return"[]";var P=Oe(e,y);return d&&!ri(P)?"["+ct(P,d)+"]":"[ "+x.call(P,", ")+" ]"}if(jo(e)){var B=Oe(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!Tr.call(e,"cause")?"{ ["+String(e)+"] "+x.call(Vt.call("[cause]: "+y(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(B,", ")+" }"}if(typeof e=="object"&&a){if(Xt&&typeof e[Xt]=="function"&&at)return at(e,{depth:f-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ko(e)){var le=[];return No.call(e,function(T,$){le.push(y($,e,!0)+" => "+y(T,e))}),Zt("Map",Ie.call(e),le,d)}if(Yo(e)){var ue=[];return xo.call(e,function(T){ue.push(y(T,e))}),Zt("Set",Be.call(e),ue,d)}if(Qo(e))return Ke("WeakMap");if(Zo(e))return Ke("WeakSet");if(Xo(e))return Ke("WeakRef");if(Ho(e))return ye(y(Number(e)));if(Vo(e))return ye(y(ot.call(e)));if(zo(e))return ye(Do.call(e));if(Wo(e))return ye(y(String(e)));if(!qo(e)&&!Yt(e)){var W=Oe(e,y),fe=Gt?Gt(e)===Object.prototype:e instanceof Object||e.constructor===Object,U=e instanceof Object?"":"null prototype",K=!fe&&A&&Object(e)===e&&A in e?Ot.call(j(e),8,-1):U?"Object":"",H=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Q=H+(K||U?"["+x.call(Vt.call([],K||[],U||[]),": ")+"] ":"");return W.length===0?Q+"{}":d?Q+"{"+ct(W,d)+"}":Q+"{ "+x.call(W,", ")+" }"}return String(e)};function Nr(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function ko(t){return q.call(String(t),/"/g,""")}function st(t){return j(t)==="[object Array]"&&(!A||!(typeof t=="object"&&A in t))}function qo(t){return j(t)==="[object Date]"&&(!A||!(typeof t=="object"&&A in t))}function Yt(t){return j(t)==="[object RegExp]"&&(!A||!(typeof t=="object"&&A in t))}function jo(t){return j(t)==="[object Error]"&&(!A||!(typeof t=="object"&&A in t))}function Wo(t){return j(t)==="[object String]"&&(!A||!(typeof t=="object"&&A in t))}function Ho(t){return j(t)==="[object Number]"&&(!A||!(typeof t=="object"&&A in t))}function zo(t){return j(t)==="[object Boolean]"&&(!A||!(typeof t=="object"&&A in t))}function xr(t){if(ie)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!it)return!1;try{return it.call(t),!0}catch{}return!1}function Vo(t){if(!t||typeof t!="object"||!ot)return!1;try{return ot.call(t),!0}catch{}return!1}var Jo=Object.prototype.hasOwnProperty||function(t){return t in this};function k(t,e){return Jo.call(t,e)}function j(t){return Io.call(t)}function Go(t){if(t.name)return t.name;var e=Uo.call(Bo.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function _r(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Ko(t){if(!Ie||!t||typeof t!="object")return!1;try{Ie.call(t);try{Be.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Qo(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t,he);try{me.call(t,me)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Xo(t){if(!Ht||!t||typeof t!="object")return!1;try{return Ht.call(t),!0}catch{}return!1}function Yo(t){if(!Be||!t||typeof t!="object")return!1;try{Be.call(t);try{Ie.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Zo(t){if(!me||!t||typeof t!="object")return!1;try{me.call(t,me);try{he.call(t,he)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function ei(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Fr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Fr(Ot.call(t,0,e.maxStringLength),e)+n}var o=q.call(q.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ti);return Nr(o,"single",e)}function ti(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$o.call(e.toString(16))}function ye(t){return"Object("+t+")"}function Ke(t){return t+" { ? }"}function Zt(t,e,r,n){var o=n?ct(r,n):x.call(r,", ");return t+" ("+e+") {"+o+"}"}function ri(t){for(var e=0;e<t.length;e++)if(_r(t[e],`
`)>=0)return!1;return!0}function ni(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=x.call(Array(t.indent+1)," ");else return null;return{base:r,prev:x.call(Array(e+1),r)}}function ct(t,e){if(t.length===0)return"";var r=`
`+e.prev+e.base;return r+x.call(t,","+r)+`
`+e.prev}function Oe(t,e){var r=st(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=k(t,o)?e(t[o],t):""}var i=typeof Ge=="function"?Ge(t):[],a;if(ie){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in t)!k(t,l)||r&&String(Number(l))===l&&l<t.length||ie&&a["$"+l]instanceof Symbol||(Pr.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t)));if(typeof Ge=="function")for(var c=0;c<i.length;c++)Tr.call(t,i[c])&&n.push("["+e(i[c])+"]: "+e(t[i[c]],t));return n}var At=bt,ce=Oo,oi=Mo,ii=At("%TypeError%"),Ae=At("%WeakMap%",!0),Pe=At("%Map%",!0),ai=ce("WeakMap.prototype.get",!0),si=ce("WeakMap.prototype.set",!0),ci=ce("WeakMap.prototype.has",!0),li=ce("Map.prototype.get",!0),ui=ce("Map.prototype.set",!0),fi=ce("Map.prototype.has",!0),Pt=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},pi=function(t,e){var r=Pt(t,e);return r&&r.value},di=function(t,e,r){var n=Pt(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},yi=function(t,e){return!!Pt(t,e)},hi=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new ii("Side channel does not contain "+oi(i))},get:function(i){if(Ae&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ai(e,i)}else if(Pe){if(r)return li(r,i)}else if(n)return pi(n,i)},has:function(i){if(Ae&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ci(e,i)}else if(Pe){if(r)return fi(r,i)}else if(n)return yi(n,i);return!1},set:function(i,a){Ae&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Ae),si(e,i,a)):Pe?(r||(r=new Pe),ui(r,i,a)):(n||(n={key:{},next:null}),di(n,i,a))}};return o},mi=String.prototype.replace,gi=/%20/g,Qe={RFC1738:"RFC1738",RFC3986:"RFC3986"},Tt={default:Qe.RFC3986,formatters:{RFC1738:function(t){return mi.call(t,gi,"+")},RFC3986:function(t){return String(t)}},RFC1738:Qe.RFC1738,RFC3986:Qe.RFC3986},Si=Tt,Xe=Object.prototype.hasOwnProperty,z=Array.isArray,N=function(){for(var t=[],e=0;e<256;++e)