vezgo-sdk-js
Version:
Official Vezgo JS SDK for the Browser & NodeJS
8 lines • 251 kB
JavaScript
(function(Ce,Je){typeof exports=="object"&&typeof module!="undefined"?module.exports=Je():typeof define=="function"&&define.amd?define(Je):(Ce=typeof globalThis!="undefined"?globalThis:Ce||self,Ce.Vezgo=Je())})(this,function(){"use strict";var Oc=Object.defineProperty,Tc=Object.defineProperties;var Ic=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var lu=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,cu=(Ce,Je,Ye)=>Je in Ce?Oc(Ce,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ce[Je]=Ye,Nr=(Ce,Je)=>{for(var Ye in Je||(Je={}))lu.call(Je,Ye)&&cu(Ce,Ye,Je[Ye]);if(ht)for(var Ye of ht(Je))hu.call(Je,Ye)&&cu(Ce,Ye,Je[Ye]);return Ce},pu=(Ce,Je)=>Tc(Ce,Ic(Je));var Mr=(Ce,Je)=>{var Ye={};for(var $e in Ce)lu.call(Ce,$e)&&Je.indexOf($e)<0&&(Ye[$e]=Ce[$e]);if(Ce!=null&&ht)for(var $e of ht(Ce))Je.indexOf($e)<0&&hu.call(Ce,$e)&&(Ye[$e]=Ce[$e]);return Ye};var tr=(Ce,Je,Ye)=>new Promise(($e,Gr)=>{var Lr=wr=>{try{or(Ye.next(wr))}catch(Ir){Gr(Ir)}},cr=wr=>{try{or(Ye.throw(wr))}catch(Ir){Gr(Ir)}},or=wr=>wr.done?$e(wr.value):Promise.resolve(wr.value).then(Lr,cr);or((Ye=Ye.apply(Ce,Je)).next())});var Ce=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ye(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function u(){return this instanceof u?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var c=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(i,u,c.get?c:{enumerable:!0,get:function(){return e[u]}})}),i}var $e={},Gr={},Lr={};Lr.byteLength=yu,Lr.toByteArray=gu,Lr.fromByteArray=bu;for(var cr=[],or=[],wr=typeof Uint8Array!="undefined"?Uint8Array:Array,Ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr=0,du=Ir.length;Fr<du;++Fr)cr[Fr]=Ir[Fr],or[Ir.charCodeAt(Fr)]=Fr;or[45]=62,or[95]=63;function eo(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=n);var u=i===n?0:4-i%4;return[i,u]}function yu(e){var n=eo(e),i=n[0],u=n[1];return(i+u)*3/4-u}function mu(e,n,i){return(n+i)*3/4-i}function gu(e){var n,i=eo(e),u=i[0],c=i[1],f=new wr(mu(e,u,c)),p=0,m=c>0?u-4:u,d;for(d=0;d<m;d+=4)n=or[e.charCodeAt(d)]<<18|or[e.charCodeAt(d+1)]<<12|or[e.charCodeAt(d+2)]<<6|or[e.charCodeAt(d+3)],f[p++]=n>>16&255,f[p++]=n>>8&255,f[p++]=n&255;return c===2&&(n=or[e.charCodeAt(d)]<<2|or[e.charCodeAt(d+1)]>>4,f[p++]=n&255),c===1&&(n=or[e.charCodeAt(d)]<<10|or[e.charCodeAt(d+1)]<<4|or[e.charCodeAt(d+2)]>>2,f[p++]=n>>8&255,f[p++]=n&255),f}function Eu(e){return cr[e>>18&63]+cr[e>>12&63]+cr[e>>6&63]+cr[e&63]}function wu(e,n,i){for(var u,c=[],f=n;f<i;f+=3)u=(e[f]<<16&16711680)+(e[f+1]<<8&65280)+(e[f+2]&255),c.push(Eu(u));return c.join("")}function bu(e){for(var n,i=e.length,u=i%3,c=[],f=16383,p=0,m=i-u;p<m;p+=f)c.push(wu(e,p,p+f>m?m:p+f));return u===1?(n=e[i-1],c.push(cr[n>>2]+cr[n<<4&63]+"==")):u===2&&(n=(e[i-2]<<8)+e[i-1],c.push(cr[n>>10]+cr[n>>4&63]+cr[n<<2&63]+"=")),c.join("")}var pt={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */pt.read=function(e,n,i,u,c){var f,p,m=c*8-u-1,d=(1<<m)-1,B=d>>1,o=-7,O=i?c-1:0,b=i?-1:1,L=e[n+O];for(O+=b,f=L&(1<<-o)-1,L>>=-o,o+=m;o>0;f=f*256+e[n+O],O+=b,o-=8);for(p=f&(1<<-o)-1,f>>=-o,o+=u;o>0;p=p*256+e[n+O],O+=b,o-=8);if(f===0)f=1-B;else{if(f===d)return p?NaN:(L?-1:1)*(1/0);p=p+Math.pow(2,u),f=f-B}return(L?-1:1)*p*Math.pow(2,f-u)},pt.write=function(e,n,i,u,c,f){var p,m,d,B=f*8-c-1,o=(1<<B)-1,O=o>>1,b=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=u?0:f-1,x=u?1:-1,j=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(m=isNaN(n)?1:0,p=o):(p=Math.floor(Math.log(n)/Math.LN2),n*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+O>=1?n+=b/d:n+=b*Math.pow(2,1-O),n*d>=2&&(p++,d/=2),p+O>=o?(m=0,p=o):p+O>=1?(m=(n*d-1)*Math.pow(2,c),p=p+O):(m=n*Math.pow(2,O-1)*Math.pow(2,c),p=0));c>=8;e[i+L]=m&255,L+=x,m/=256,c-=8);for(p=p<<c|m,B+=c;B>0;e[i+L]=p&255,L+=x,p/=256,B-=8);e[i+L-x]|=j*128};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(e){const n=Lr,i=pt,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=U,e.INSPECT_MAX_BYTES=50;const c=2147483647;e.kMaxLength=c;const{Uint8Array:f,ArrayBuffer:p,SharedArrayBuffer:m}=globalThis;o.TYPED_ARRAY_SUPPORT=d(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const y=new f(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,f.prototype),Object.setPrototypeOf(y,r),y.foo()===42}catch(y){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function B(y){if(y>c)throw new RangeError('The value "'+y+'" is invalid for option "size"');const r=new f(y);return Object.setPrototypeOf(r,o.prototype),r}function o(y,r,a){if(typeof y=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(y)}return O(y,r,a)}o.poolSize=8192;function O(y,r,a){if(typeof y=="string")return j(y,r);if(p.isView(y))return w(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(We(y,p)||y&&We(y.buffer,p)||typeof m!="undefined"&&(We(y,m)||y&&We(y.buffer,m)))return v(y,r,a);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=y.valueOf&&y.valueOf();if(T!=null&&T!==y)return o.from(T,r,a);const G=_(y);if(G)return G;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return o.from(y[Symbol.toPrimitive]("string"),r,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}o.from=function(y,r,a){return O(y,r,a)},Object.setPrototypeOf(o.prototype,f.prototype),Object.setPrototypeOf(o,f);function b(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function L(y,r,a){return b(y),y<=0?B(y):r!==void 0?typeof a=="string"?B(y).fill(r,a):B(y).fill(r):B(y)}o.alloc=function(y,r,a){return L(y,r,a)};function x(y){return b(y),B(y<0?0:A(y)|0)}o.allocUnsafe=function(y){return x(y)},o.allocUnsafeSlow=function(y){return x(y)};function j(y,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const a=C(y,r)|0;let T=B(a);const G=T.write(y,r);return G!==a&&(T=T.slice(0,G)),T}function V(y){const r=y.length<0?0:A(y.length)|0,a=B(r);for(let T=0;T<r;T+=1)a[T]=y[T]&255;return a}function w(y){if(We(y,f)){const r=new f(y);return v(r.buffer,r.byteOffset,r.byteLength)}return V(y)}function v(y,r,a){if(r<0||y.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<r+(a||0))throw new RangeError('"length" is outside of buffer bounds');let T;return r===void 0&&a===void 0?T=new f(y):a===void 0?T=new f(y,r):T=new f(y,r,a),Object.setPrototypeOf(T,o.prototype),T}function _(y){if(o.isBuffer(y)){const r=A(y.length)|0,a=B(r);return a.length===0||y.copy(a,0,0,r),a}if(y.length!==void 0)return typeof y.length!="number"||Qe(y.length)?B(0):V(y);if(y.type==="Buffer"&&Array.isArray(y.data))return V(y.data)}function A(y){if(y>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return y|0}function U(y){return+y!=y&&(y=0),o.alloc(+y)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,a){if(We(r,f)&&(r=o.from(r,r.offset,r.byteLength)),We(a,f)&&(a=o.from(a,a.offset,a.byteLength)),!o.isBuffer(r)||!o.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===a)return 0;let T=r.length,G=a.length;for(let re=0,le=Math.min(T,G);re<le;++re)if(r[re]!==a[re]){T=r[re],G=a[re];break}return T<G?-1:G<T?1:0},o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(r,a){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let T;if(a===void 0)for(a=0,T=0;T<r.length;++T)a+=r[T].length;const G=o.allocUnsafe(a);let re=0;for(T=0;T<r.length;++T){let le=r[T];if(We(le,f))re+le.length>G.length?(o.isBuffer(le)||(le=o.from(le)),le.copy(G,re)):f.prototype.set.call(G,le,re);else if(o.isBuffer(le))le.copy(G,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=le.length}return G};function C(y,r){if(o.isBuffer(y))return y.length;if(p.isView(y)||We(y,p))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const a=y.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&a===0)return 0;let G=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return se(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return Ge(y).length;default:if(G)return T?-1:se(y).length;r=(""+r).toLowerCase(),G=!0}}o.byteLength=C;function k(y,r,a){let T=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,r>>>=0,a<=r))return"";for(y||(y="utf8");;)switch(y){case"hex":return D(this,r,a);case"utf8":case"utf-8":return ae(this,r,a);case"ascii":return me(this,r,a);case"latin1":case"binary":return we(this,r,a);case"base64":return Q(this,r,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,r,a);default:if(T)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),T=!0}}o.prototype._isBuffer=!0;function F(y,r,a){const T=y[r];y[r]=y[a],y[a]=T}o.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let a=0;a<r;a+=2)F(this,a,a+1);return this},o.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let a=0;a<r;a+=4)F(this,a,a+3),F(this,a+1,a+2);return this},o.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let a=0;a<r;a+=8)F(this,a,a+7),F(this,a+1,a+6),F(this,a+2,a+5),F(this,a+3,a+4);return this},o.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?ae(this,0,r):k.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="";const a=e.INSPECT_MAX_BYTES;return r=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(r+=" ... "),"<Buffer "+r+">"},u&&(o.prototype[u]=o.prototype.inspect),o.prototype.compare=function(r,a,T,G,re){if(We(r,f)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(a===void 0&&(a=0),T===void 0&&(T=r?r.length:0),G===void 0&&(G=0),re===void 0&&(re=this.length),a<0||T>r.length||G<0||re>this.length)throw new RangeError("out of range index");if(G>=re&&a>=T)return 0;if(G>=re)return-1;if(a>=T)return 1;if(a>>>=0,T>>>=0,G>>>=0,re>>>=0,this===r)return 0;let le=re-G,Pe=T-a;const ke=Math.min(le,Pe),qe=this.slice(G,re),ze=r.slice(a,T);for(let je=0;je<ke;++je)if(qe[je]!==ze[je]){le=qe[je],Pe=ze[je];break}return le<Pe?-1:Pe<le?1:0};function W(y,r,a,T,G){if(y.length===0)return-1;if(typeof a=="string"?(T=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Qe(a)&&(a=G?0:y.length-1),a<0&&(a=y.length+a),a>=y.length){if(G)return-1;a=y.length-1}else if(a<0)if(G)a=0;else return-1;if(typeof r=="string"&&(r=o.from(r,T)),o.isBuffer(r))return r.length===0?-1:X(y,r,a,T,G);if(typeof r=="number")return r=r&255,typeof f.prototype.indexOf=="function"?G?f.prototype.indexOf.call(y,r,a):f.prototype.lastIndexOf.call(y,r,a):X(y,[r],a,T,G);throw new TypeError("val must be string, number or Buffer")}function X(y,r,a,T,G){let re=1,le=y.length,Pe=r.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(y.length<2||r.length<2)return-1;re=2,le/=2,Pe/=2,a/=2}function ke(ze,je){return re===1?ze[je]:ze.readUInt16BE(je*re)}let qe;if(G){let ze=-1;for(qe=a;qe<le;qe++)if(ke(y,qe)===ke(r,ze===-1?0:qe-ze)){if(ze===-1&&(ze=qe),qe-ze+1===Pe)return ze*re}else ze!==-1&&(qe-=qe-ze),ze=-1}else for(a+Pe>le&&(a=le-Pe),qe=a;qe>=0;qe--){let ze=!0;for(let je=0;je<Pe;je++)if(ke(y,qe+je)!==ke(r,je)){ze=!1;break}if(ze)return qe}return-1}o.prototype.includes=function(r,a,T){return this.indexOf(r,a,T)!==-1},o.prototype.indexOf=function(r,a,T){return W(this,r,a,T,!0)},o.prototype.lastIndexOf=function(r,a,T){return W(this,r,a,T,!1)};function fe(y,r,a,T){a=Number(a)||0;const G=y.length-a;T?(T=Number(T),T>G&&(T=G)):T=G;const re=r.length;T>re/2&&(T=re/2);let le;for(le=0;le<T;++le){const Pe=parseInt(r.substr(le*2,2),16);if(Qe(Pe))return le;y[a+le]=Pe}return le}function R(y,r,a,T){return ar(se(r,y.length-a),y,a,T)}function ce(y,r,a,T){return ar(xe(r),y,a,T)}function $(y,r,a,T){return ar(Ge(r),y,a,T)}function q(y,r,a,T){return ar(De(r,y.length-a),y,a,T)}o.prototype.write=function(r,a,T,G){if(a===void 0)G="utf8",T=this.length,a=0;else if(T===void 0&&typeof a=="string")G=a,T=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(T)?(T=T>>>0,G===void 0&&(G="utf8")):(G=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const re=this.length-a;if((T===void 0||T>re)&&(T=re),r.length>0&&(T<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");let le=!1;for(;;)switch(G){case"hex":return fe(this,r,a,T);case"utf8":case"utf-8":return R(this,r,a,T);case"ascii":case"latin1":case"binary":return ce(this,r,a,T);case"base64":return $(this,r,a,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,r,a,T);default:if(le)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),le=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(y,r,a){return r===0&&a===y.length?n.fromByteArray(y):n.fromByteArray(y.slice(r,a))}function ae(y,r,a){a=Math.min(y.length,a);const T=[];let G=r;for(;G<a;){const re=y[G];let le=null,Pe=re>239?4:re>223?3:re>191?2:1;if(G+Pe<=a){let ke,qe,ze,je;switch(Pe){case 1:re<128&&(le=re);break;case 2:ke=y[G+1],(ke&192)===128&&(je=(re&31)<<6|ke&63,je>127&&(le=je));break;case 3:ke=y[G+1],qe=y[G+2],(ke&192)===128&&(qe&192)===128&&(je=(re&15)<<12|(ke&63)<<6|qe&63,je>2047&&(je<55296||je>57343)&&(le=je));break;case 4:ke=y[G+1],qe=y[G+2],ze=y[G+3],(ke&192)===128&&(qe&192)===128&&(ze&192)===128&&(je=(re&15)<<18|(ke&63)<<12|(qe&63)<<6|ze&63,je>65535&&je<1114112&&(le=je))}}le===null?(le=65533,Pe=1):le>65535&&(le-=65536,T.push(le>>>10&1023|55296),le=56320|le&1023),T.push(le),G+=Pe}return ye(T)}const ue=4096;function ye(y){const r=y.length;if(r<=ue)return String.fromCharCode.apply(String,y);let a="",T=0;for(;T<r;)a+=String.fromCharCode.apply(String,y.slice(T,T+=ue));return a}function me(y,r,a){let T="";a=Math.min(y.length,a);for(let G=r;G<a;++G)T+=String.fromCharCode(y[G]&127);return T}function we(y,r,a){let T="";a=Math.min(y.length,a);for(let G=r;G<a;++G)T+=String.fromCharCode(y[G]);return T}function D(y,r,a){const T=y.length;(!r||r<0)&&(r=0),(!a||a<0||a>T)&&(a=T);let G="";for(let re=r;re<a;++re)G+=rr[y[re]];return G}function K(y,r,a){const T=y.slice(r,a);let G="";for(let re=0;re<T.length-1;re+=2)G+=String.fromCharCode(T[re]+T[re+1]*256);return G}o.prototype.slice=function(r,a){const T=this.length;r=~~r,a=a===void 0?T:~~a,r<0?(r+=T,r<0&&(r=0)):r>T&&(r=T),a<0?(a+=T,a<0&&(a=0)):a>T&&(a=T),a<r&&(a=r);const G=this.subarray(r,a);return Object.setPrototypeOf(G,o.prototype),G};function J(y,r,a){if(y%1!==0||y<0)throw new RangeError("offset is not uint");if(y+r>a)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,a,T){r=r>>>0,a=a>>>0,T||J(r,a,this.length);let G=this[r],re=1,le=0;for(;++le<a&&(re*=256);)G+=this[r+le]*re;return G},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,a,T){r=r>>>0,a=a>>>0,T||J(r,a,this.length);let G=this[r+--a],re=1;for(;a>0&&(re*=256);)G+=this[r+--a]*re;return G},o.prototype.readUint8=o.prototype.readUInt8=function(r,a){return r=r>>>0,a||J(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,a){return r=r>>>0,a||J(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,a){return r=r>>>0,a||J(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,a){return r=r>>>0,a||J(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,a){return r=r>>>0,a||J(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=He(function(r){r=r>>>0,ve(r,"offset");const a=this[r],T=this[r+7];(a===void 0||T===void 0)&&Ae(r,this.length-8);const G=a+this[++r]*Oe(2,8)+this[++r]*Oe(2,16)+this[++r]*Oe(2,24),re=this[++r]+this[++r]*Oe(2,8)+this[++r]*Oe(2,16)+T*Oe(2,24);return BigInt(G)+(BigInt(re)<<BigInt(32))}),o.prototype.readBigUInt64BE=He(function(r){r=r>>>0,ve(r,"offset");const a=this[r],T=this[r+7];(a===void 0||T===void 0)&&Ae(r,this.length-8);const G=a*Oe(2,24)+this[++r]*Oe(2,16)+this[++r]*Oe(2,8)+this[++r],re=this[++r]*Oe(2,24)+this[++r]*Oe(2,16)+this[++r]*Oe(2,8)+T;return(BigInt(G)<<BigInt(32))+BigInt(re)}),o.prototype.readIntLE=function(r,a,T){r=r>>>0,a=a>>>0,T||J(r,a,this.length);let G=this[r],re=1,le=0;for(;++le<a&&(re*=256);)G+=this[r+le]*re;return re*=128,G>=re&&(G-=Math.pow(2,8*a)),G},o.prototype.readIntBE=function(r,a,T){r=r>>>0,a=a>>>0,T||J(r,a,this.length);let G=a,re=1,le=this[r+--G];for(;G>0&&(re*=256);)le+=this[r+--G]*re;return re*=128,le>=re&&(le-=Math.pow(2,8*a)),le},o.prototype.readInt8=function(r,a){return r=r>>>0,a||J(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,a){r=r>>>0,a||J(r,2,this.length);const T=this[r]|this[r+1]<<8;return T&32768?T|4294901760:T},o.prototype.readInt16BE=function(r,a){r=r>>>0,a||J(r,2,this.length);const T=this[r+1]|this[r]<<8;return T&32768?T|4294901760:T},o.prototype.readInt32LE=function(r,a){return r=r>>>0,a||J(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,a){return r=r>>>0,a||J(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=He(function(r){r=r>>>0,ve(r,"offset");const a=this[r],T=this[r+7];(a===void 0||T===void 0)&&Ae(r,this.length-8);const G=this[r+4]+this[r+5]*Oe(2,8)+this[r+6]*Oe(2,16)+(T<<24);return(BigInt(G)<<BigInt(32))+BigInt(a+this[++r]*Oe(2,8)+this[++r]*Oe(2,16)+this[++r]*Oe(2,24))}),o.prototype.readBigInt64BE=He(function(r){r=r>>>0,ve(r,"offset");const a=this[r],T=this[r+7];(a===void 0||T===void 0)&&Ae(r,this.length-8);const G=(a<<24)+this[++r]*Oe(2,16)+this[++r]*Oe(2,8)+this[++r];return(BigInt(G)<<BigInt(32))+BigInt(this[++r]*Oe(2,24)+this[++r]*Oe(2,16)+this[++r]*Oe(2,8)+T)}),o.prototype.readFloatLE=function(r,a){return r=r>>>0,a||J(r,4,this.length),i.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,a){return r=r>>>0,a||J(r,4,this.length),i.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,a){return r=r>>>0,a||J(r,8,this.length),i.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,a){return r=r>>>0,a||J(r,8,this.length),i.read(this,r,!1,52,8)};function ge(y,r,a,T,G,re){if(!o.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>G||r<re)throw new RangeError('"value" argument is out of bounds');if(a+T>y.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,a,T,G){if(r=+r,a=a>>>0,T=T>>>0,!G){const Pe=Math.pow(2,8*T)-1;ge(this,r,a,T,Pe,0)}let re=1,le=0;for(this[a]=r&255;++le<T&&(re*=256);)this[a+le]=r/re&255;return a+T},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,a,T,G){if(r=+r,a=a>>>0,T=T>>>0,!G){const Pe=Math.pow(2,8*T)-1;ge(this,r,a,T,Pe,0)}let re=T-1,le=1;for(this[a+re]=r&255;--re>=0&&(le*=256);)this[a+re]=r/le&255;return a+T},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,1,255,0),this[a]=r&255,a+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,2,65535,0),this[a]=r&255,this[a+1]=r>>>8,a+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,2,65535,0),this[a]=r>>>8,this[a+1]=r&255,a+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,4,4294967295,0),this[a+3]=r>>>24,this[a+2]=r>>>16,this[a+1]=r>>>8,this[a]=r&255,a+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,4,4294967295,0),this[a]=r>>>24,this[a+1]=r>>>16,this[a+2]=r>>>8,this[a+3]=r&255,a+4};function M(y,r,a,T,G){Re(r,T,G,y,a,7);let re=Number(r&BigInt(4294967295));y[a++]=re,re=re>>8,y[a++]=re,re=re>>8,y[a++]=re,re=re>>8,y[a++]=re;let le=Number(r>>BigInt(32)&BigInt(4294967295));return y[a++]=le,le=le>>8,y[a++]=le,le=le>>8,y[a++]=le,le=le>>8,y[a++]=le,a}function H(y,r,a,T,G){Re(r,T,G,y,a,7);let re=Number(r&BigInt(4294967295));y[a+7]=re,re=re>>8,y[a+6]=re,re=re>>8,y[a+5]=re,re=re>>8,y[a+4]=re;let le=Number(r>>BigInt(32)&BigInt(4294967295));return y[a+3]=le,le=le>>8,y[a+2]=le,le=le>>8,y[a+1]=le,le=le>>8,y[a]=le,a+8}o.prototype.writeBigUInt64LE=He(function(r,a=0){return M(this,r,a,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=He(function(r,a=0){return H(this,r,a,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,a,T,G){if(r=+r,a=a>>>0,!G){const ke=Math.pow(2,8*T-1);ge(this,r,a,T,ke-1,-ke)}let re=0,le=1,Pe=0;for(this[a]=r&255;++re<T&&(le*=256);)r<0&&Pe===0&&this[a+re-1]!==0&&(Pe=1),this[a+re]=(r/le>>0)-Pe&255;return a+T},o.prototype.writeIntBE=function(r,a,T,G){if(r=+r,a=a>>>0,!G){const ke=Math.pow(2,8*T-1);ge(this,r,a,T,ke-1,-ke)}let re=T-1,le=1,Pe=0;for(this[a+re]=r&255;--re>=0&&(le*=256);)r<0&&Pe===0&&this[a+re+1]!==0&&(Pe=1),this[a+re]=(r/le>>0)-Pe&255;return a+T},o.prototype.writeInt8=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,1,127,-128),r<0&&(r=255+r+1),this[a]=r&255,a+1},o.prototype.writeInt16LE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,2,32767,-32768),this[a]=r&255,this[a+1]=r>>>8,a+2},o.prototype.writeInt16BE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,2,32767,-32768),this[a]=r>>>8,this[a+1]=r&255,a+2},o.prototype.writeInt32LE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,4,2147483647,-2147483648),this[a]=r&255,this[a+1]=r>>>8,this[a+2]=r>>>16,this[a+3]=r>>>24,a+4},o.prototype.writeInt32BE=function(r,a,T){return r=+r,a=a>>>0,T||ge(this,r,a,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[a]=r>>>24,this[a+1]=r>>>16,this[a+2]=r>>>8,this[a+3]=r&255,a+4},o.prototype.writeBigInt64LE=He(function(r,a=0){return M(this,r,a,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=He(function(r,a=0){return H(this,r,a,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(y,r,a,T,G,re){if(a+T>y.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Ee(y,r,a,T,G){return r=+r,a=a>>>0,G||ie(y,r,a,4),i.write(y,r,a,T,23,4),a+4}o.prototype.writeFloatLE=function(r,a,T){return Ee(this,r,a,!0,T)},o.prototype.writeFloatBE=function(r,a,T){return Ee(this,r,a,!1,T)};function de(y,r,a,T,G){return r=+r,a=a>>>0,G||ie(y,r,a,8),i.write(y,r,a,T,52,8),a+8}o.prototype.writeDoubleLE=function(r,a,T){return de(this,r,a,!0,T)},o.prototype.writeDoubleBE=function(r,a,T){return de(this,r,a,!1,T)},o.prototype.copy=function(r,a,T,G){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(T||(T=0),!G&&G!==0&&(G=this.length),a>=r.length&&(a=r.length),a||(a=0),G>0&&G<T&&(G=T),G===T||r.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),r.length-a<G-T&&(G=r.length-a+T);const re=G-T;return this===r&&typeof f.prototype.copyWithin=="function"?this.copyWithin(a,T,G):f.prototype.set.call(r,this.subarray(T,G),a),re},o.prototype.fill=function(r,a,T,G){if(typeof r=="string"){if(typeof a=="string"?(G=a,a=0,T=this.length):typeof T=="string"&&(G=T,T=this.length),G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!o.isEncoding(G))throw new TypeError("Unknown encoding: "+G);if(r.length===1){const le=r.charCodeAt(0);(G==="utf8"&&le<128||G==="latin1")&&(r=le)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(a<0||this.length<a||this.length<T)throw new RangeError("Out of range index");if(T<=a)return this;a=a>>>0,T=T===void 0?this.length:T>>>0,r||(r=0);let re;if(typeof r=="number")for(re=a;re<T;++re)this[re]=r;else{const le=o.isBuffer(r)?r:o.from(r,G),Pe=le.length;if(Pe===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(re=0;re<T-a;++re)this[re+a]=le[re%Pe]}return this};const S={};function l(y,r,a){S[y]=class extends a{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(G){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:G,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}l("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),l("ERR_INVALID_ARG_TYPE",function(y,r){return`The "${y}" argument must be of type number. Received type ${typeof r}`},TypeError),l("ERR_OUT_OF_RANGE",function(y,r,a){let T=`The value of "${y}" is out of range.`,G=a;return Number.isInteger(a)&&Math.abs(a)>Oe(2,32)?G=Y(String(a)):typeof a=="bigint"&&(G=String(a),(a>Oe(BigInt(2),BigInt(32))||a<-Oe(BigInt(2),BigInt(32)))&&(G=Y(G)),G+="n"),T+=` It must be ${r}. Received ${G}`,T},RangeError);function Y(y){let r="",a=y.length;const T=y[0]==="-"?1:0;for(;a>=T+4;a-=3)r=`_${y.slice(a-3,a)}${r}`;return`${y.slice(0,a)}${r}`}function oe(y,r,a){ve(r,"offset"),(y[r]===void 0||y[r+a]===void 0)&&Ae(r,y.length-(a+1))}function Re(y,r,a,T,G,re){if(y>a||y<r){const le=typeof r=="bigint"?"n":"";let Pe;throw r===0||r===BigInt(0)?Pe=`>= 0${le} and < 2${le} ** ${(re+1)*8}${le}`:Pe=`>= -(2${le} ** ${(re+1)*8-1}${le}) and < 2 ** ${(re+1)*8-1}${le}`,new S.ERR_OUT_OF_RANGE("value",Pe,y)}oe(T,G,re)}function ve(y,r){if(typeof y!="number")throw new S.ERR_INVALID_ARG_TYPE(r,"number",y)}function Ae(y,r,a){throw Math.floor(y)!==y?(ve(y,a),new S.ERR_OUT_OF_RANGE("offset","an integer",y)):r<0?new S.ERR_BUFFER_OUT_OF_BOUNDS:new S.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,y)}const Xe=/[^+/0-9A-Za-z-_]/g;function pe(y){if(y=y.split("=")[0],y=y.trim().replace(Xe,""),y.length<2)return"";for(;y.length%4!==0;)y=y+"=";return y}function se(y,r){r=r||1/0;let a;const T=y.length;let G=null;const re=[];for(let le=0;le<T;++le){if(a=y.charCodeAt(le),a>55295&&a<57344){if(!G){if(a>56319){(r-=3)>-1&&re.push(239,191,189);continue}else if(le+1===T){(r-=3)>-1&&re.push(239,191,189);continue}G=a;continue}if(a<56320){(r-=3)>-1&&re.push(239,191,189),G=a;continue}a=(G-55296<<10|a-56320)+65536}else G&&(r-=3)>-1&&re.push(239,191,189);if(G=null,a<128){if((r-=1)<0)break;re.push(a)}else if(a<2048){if((r-=2)<0)break;re.push(a>>6|192,a&63|128)}else if(a<65536){if((r-=3)<0)break;re.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((r-=4)<0)break;re.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return re}function xe(y){const r=[];for(let a=0;a<y.length;++a)r.push(y.charCodeAt(a)&255);return r}function De(y,r){let a,T,G;const re=[];for(let le=0;le<y.length&&!((r-=2)<0);++le)a=y.charCodeAt(le),T=a>>8,G=a%256,re.push(G),re.push(T);return re}function Ge(y){return n.toByteArray(pe(y))}function ar(y,r,a,T){let G;for(G=0;G<T&&!(G+a>=r.length||G>=y.length);++G)r[G+a]=y[G];return G}function We(y,r){return y instanceof r||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===r.name}function Qe(y){return y!==y}const rr=function(){const y="0123456789abcdef",r=new Array(256);for(let a=0;a<16;++a){const T=a*16;for(let G=0;G<16;++G)r[T+G]=y[a]+y[G]}return r}();function He(y){return typeof BigInt=="undefined"?lr:y}function lr(){throw new Error("BigInt not supported")}})(Gr);const Kr=Gr.Buffer;var dt,ro;function Su(){if(ro)return dt;ro=1;function e(h,E){return function(){return h.apply(E,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,u=(h=>E=>{const P=n.call(E);return h[P]||(h[P]=P.slice(8,-1).toLowerCase())})(Object.create(null)),c=h=>(h=h.toLowerCase(),E=>u(E)===h),f=h=>E=>typeof E===h,{isArray:p}=Array,m=f("undefined");function d(h){return h!==null&&!m(h)&&h.constructor!==null&&!m(h.constructor)&&b(h.constructor.isBuffer)&&h.constructor.isBuffer(h)}const B=c("ArrayBuffer");function o(h){let E;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?E=ArrayBuffer.isView(h):E=h&&h.buffer&&B(h.buffer),E}const O=f("string"),b=f("function"),L=f("number"),x=h=>h!==null&&typeof h=="object",j=h=>h===!0||h===!1,V=h=>{if(u(h)!=="object")return!1;const E=i(h);return(E===null||E===Object.prototype||Object.getPrototypeOf(E)===null)&&!(Symbol.toStringTag in h)&&!(Symbol.iterator in h)},w=c("Date"),v=c("File"),_=c("Blob"),A=c("FileList"),U=h=>x(h)&&b(h.pipe),C=h=>{let E;return h&&(typeof FormData=="function"&&h instanceof FormData||b(h.append)&&((E=u(h))==="formdata"||E==="object"&&b(h.toString)&&h.toString()==="[object FormData]"))},k=c("URLSearchParams"),F=h=>h.trim?h.trim():h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(h,E,{allOwnKeys:P=!1}={}){if(h===null||typeof h=="undefined")return;let N,Z;if(typeof h!="object"&&(h=[h]),p(h))for(N=0,Z=h.length;N<Z;N++)E.call(null,h[N],N,h);else{const ee=P?Object.getOwnPropertyNames(h):Object.keys(h),te=ee.length;let be;for(N=0;N<te;N++)be=ee[N],E.call(null,h[be],be,h)}}function X(h,E){E=E.toLowerCase();const P=Object.keys(h);let N=P.length,Z;for(;N-- >0;)if(Z=P[N],E===Z.toLowerCase())return Z;return null}const fe=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:Ce,R=h=>!m(h)&&h!==fe;function ce(){const{caseless:h}=R(this)&&this||{},E={},P=(N,Z)=>{const ee=h&&X(E,Z)||Z;V(E[ee])&&V(N)?E[ee]=ce(E[ee],N):V(N)?E[ee]=ce({},N):p(N)?E[ee]=N.slice():E[ee]=N};for(let N=0,Z=arguments.length;N<Z;N++)arguments[N]&&W(arguments[N],P);return E}const $=(h,E,P,{allOwnKeys:N}={})=>(W(E,(Z,ee)=>{P&&b(Z)?h[ee]=e(Z,P):h[ee]=Z},{allOwnKeys:N}),h),q=h=>(h.charCodeAt(0)===65279&&(h=h.slice(1)),h),Q=(h,E,P,N)=>{h.prototype=Object.create(E.prototype,N),h.prototype.constructor=h,Object.defineProperty(h,"super",{value:E.prototype}),P&&Object.assign(h.prototype,P)},ae=(h,E,P,N)=>{let Z,ee,te;const be={};if(E=E||{},h==null)return E;do{for(Z=Object.getOwnPropertyNames(h),ee=Z.length;ee-- >0;)te=Z[ee],(!N||N(te,h,E))&&!be[te]&&(E[te]=h[te],be[te]=!0);h=P!==!1&&i(h)}while(h&&(!P||P(h,E))&&h!==Object.prototype);return E},ue=(h,E,P)=>{h=String(h),(P===void 0||P>h.length)&&(P=h.length),P-=E.length;const N=h.indexOf(E,P);return N!==-1&&N===P},ye=h=>{if(!h)return null;if(p(h))return h;let E=h.length;if(!L(E))return null;const P=new Array(E);for(;E-- >0;)P[E]=h[E];return P},me=(h=>E=>h&&E instanceof h)(typeof Uint8Array!="undefined"&&i(Uint8Array)),we=(h,E)=>{const N=(h&&h[Symbol.iterator]).call(h);let Z;for(;(Z=N.next())&&!Z.done;){const ee=Z.value;E.call(h,ee[0],ee[1])}},D=(h,E)=>{let P;const N=[];for(;(P=h.exec(E))!==null;)N.push(P);return N},K=c("HTMLFormElement"),J=h=>h.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(P,N,Z){return N.toUpperCase()+Z}),ge=(({hasOwnProperty:h})=>(E,P)=>h.call(E,P))(Object.prototype),M=c("RegExp"),H=(h,E)=>{const P=Object.getOwnPropertyDescriptors(h),N={};W(P,(Z,ee)=>{let te;(te=E(Z,ee,h))!==!1&&(N[ee]=te||Z)}),Object.defineProperties(h,N)},ie=h=>{H(h,(E,P)=>{if(b(h)&&["arguments","caller","callee"].indexOf(P)!==-1)return!1;const N=h[P];if(b(N)){if(E.enumerable=!1,"writable"in E){E.writable=!1;return}E.set||(E.set=()=>{throw Error("Can not rewrite read-only method '"+P+"'")})}})},Ee=(h,E)=>{const P={},N=Z=>{Z.forEach(ee=>{P[ee]=!0})};return p(h)?N(h):N(String(h).split(E)),P},de=()=>{},S=(h,E)=>(h=+h,Number.isFinite(h)?h:E),l="abcdefghijklmnopqrstuvwxyz",Y="0123456789",oe={DIGIT:Y,ALPHA:l,ALPHA_DIGIT:l+l.toUpperCase()+Y},Re=(h=16,E=oe.ALPHA_DIGIT)=>{let P="";const{length:N}=E;for(;h--;)P+=E[Math.random()*N|0];return P};function ve(h){return!!(h&&b(h.append)&&h[Symbol.toStringTag]==="FormData"&&h[Symbol.iterator])}const Ae=h=>{const E=new Array(10),P=(N,Z)=>{if(x(N)){if(E.indexOf(N)>=0)return;if(!("toJSON"in N)){E[Z]=N;const ee=p(N)?[]:{};return W(N,(te,be)=>{const Ne=P(te,Z+1);!m(Ne)&&(ee[be]=Ne)}),E[Z]=void 0,ee}}return N};return P(h,0)},Xe=c("AsyncFunction");var se={isArray:p,isArrayBuffer:B,isBuffer:d,isFormData:C,isArrayBufferView:o,isString:O,isNumber:L,isBoolean:j,isObject:x,isPlainObject:V,isUndefined:m,isDate:w,isFile:v,isBlob:_,isRegExp:M,isFunction:b,isStream:U,isURLSearchParams:k,isTypedArray:me,isFileList:A,forEach:W,merge:ce,extend:$,trim:F,stripBOM:q,inherits:Q,toFlatObject:ae,kindOf:u,kindOfTest:c,endsWith:ue,toArray:ye,forEachEntry:we,matchAll:D,isHTMLForm:K,hasOwnProperty:ge,hasOwnProp:ge,reduceDescriptors:H,freezeMethods:ie,toObjectSet:Ee,toCamelCase:J,noop:de,toFiniteNumber:S,findKey:X,global:fe,isContextDefined:R,ALPHABET:oe,generateString:Re,isSpecCompliantForm:ve,toJSONObject:Ae,isAsyncFn:Xe,isThenable:h=>h&&(x(h)||b(h))&&b(h.then)&&b(h.catch)};function xe(h,E,P,N,Z){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=h,this.name="AxiosError",E&&(this.code=E),P&&(this.config=P),N&&(this.request=N),Z&&(this.response=Z)}se.inherits(xe,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:se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const De=xe.prototype,Ge={};["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(h=>{Ge[h]={value:h}}),Object.defineProperties(xe,Ge),Object.defineProperty(De,"isAxiosError",{value:!0}),xe.from=(h,E,P,N,Z,ee)=>{const te=Object.create(De);return se.toFlatObject(h,te,function(Ne){return Ne!==Error.prototype},be=>be!=="isAxiosError"),xe.call(te,h.message,E,P,N,Z),te.cause=h,te.name=h.name,ee&&Object.assign(te,ee),te};var ar=null;function We(h){return se.isPlainObject(h)||se.isArray(h)}function Qe(h){return se.endsWith(h,"[]")?h.slice(0,-2):h}function rr(h,E,P){return h?h.concat(E).map(function(Z,ee){return Z=Qe(Z),!P&&ee?"["+Z+"]":Z}).join(P?".":""):E}function He(h){return se.isArray(h)&&!h.some(We)}const lr=se.toFlatObject(se,{},null,function(E){return/^is[A-Z]/.test(E)});function y(h,E,P){if(!se.isObject(h))throw new TypeError("target must be an object");E=E||new FormData,P=se.toFlatObject(P,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ie,ir){return!se.isUndefined(ir[Ie])});const N=P.metaTokens,Z=P.visitor||_e,ee=P.dots,te=P.indexes,Ne=(P.Blob||typeof Blob!="undefined"&&Blob)&&se.isSpecCompliantForm(E);if(!se.isFunction(Z))throw new TypeError("visitor must be a function");function Le(Te){if(Te===null)return"";if(se.isDate(Te))return Te.toISOString();if(!Ne&&se.isBlob(Te))throw new xe("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(Te)||se.isTypedArray(Te)?Ne&&typeof Blob=="function"?new Blob([Te]):Kr.from(Te):Te}function _e(Te,Ie,ir){let ur=Te;if(Te&&!ir&&typeof Te=="object"){if(se.endsWith(Ie,"{}"))Ie=N?Ie:Ie.slice(0,-2),Te=JSON.stringify(Te);else if(se.isArray(Te)&&He(Te)||(se.isFileList(Te)||se.endsWith(Ie,"[]"))&&(ur=se.toArray(Te)))return Ie=Qe(Ie),ur.forEach(function(Tr,_c){!(se.isUndefined(Tr)||Tr===null)&&E.append(te===!0?rr([Ie],_c,ee):te===null?Ie:Ie+"[]",Le(Tr))}),!1}return We(Te)?!0:(E.append(rr(ir,Ie,ee),Le(Te)),!1)}const Se=[],nr=Object.assign(lr,{defaultVisitor:_e,convertValue:Le,isVisitable:We});function pr(Te,Ie){if(!se.isUndefined(Te)){if(Se.indexOf(Te)!==-1)throw Error("Circular reference detected in "+Ie.join("."));Se.push(Te),se.forEach(Te,function(ur,Or){(!(se.isUndefined(ur)||ur===null)&&Z.call(E,ur,se.isString(Or)?Or.trim():Or,Ie,nr))===!0&&pr(ur,Ie?Ie.concat(Or):[Or])}),Se.pop()}}if(!se.isObject(h))throw new TypeError("data must be an object");return pr(h),E}function r(h){const E={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(h).replace(/[!'()~]|%20|%00/g,function(N){return E[N]})}function a(h,E){this._pairs=[],h&&y(h,this,E)}const T=a.prototype;T.append=function(E,P){this._pairs.push([E,P])},T.toString=function(E){const P=E?function(N){return E.call(this,N,r)}:r;return this._pairs.map(function(Z){return P(Z[0])+"="+P(Z[1])},"").join("&")};function G(h){return encodeURIComponent(h).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function re(h,E,P){if(!E)return h;const N=P&&P.encode||G,Z=P&&P.serialize;let ee;if(Z?ee=Z(E,P):ee=se.isURLSearchParams(E)?E.toString():new a(E,P).toString(N),ee){const te=h.indexOf("#");te!==-1&&(h=h.slice(0,te)),h+=(h.indexOf("?")===-1?"?":"&")+ee}return h}class le{constructor(){this.handlers=[]}use(E,P,N){return this.handlers.push({fulfilled:E,rejected:P,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){se.forEach(this.handlers,function(N){N!==null&&E(N)})}}var Pe=le,ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qe=typeof URLSearchParams!="undefined"?URLSearchParams:a,ze=typeof FormData!="undefined"?FormData:null,je=typeof Blob!="undefined"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:qe,FormData:ze,Blob:je},protocols:["http","https","file","blob","url","data"]};const fr=typeof window!="undefined"&&typeof document!="undefined",zr=(h=>fr&&["ReactNative","NativeScript","NS"].indexOf(h)<0)(typeof navigator!="undefined"&&navigator.product),Vi=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Er=Object.freeze({__proto__:null,hasBrowserEnv:fr,hasStandardBrowserWebWorkerEnv:Vi,hasStandardBrowserEnv:zr}),hr=Nr(Nr({},Er),kr);function g(h,E){return y(h,new hr.classes.URLSearchParams,Object.assign({visitor:function(P,N,Z,ee){return hr.isNode&&se.isBuffer(P)?(this.append(N,P.toString("base64")),!1):ee.defaultVisitor.apply(this,arguments)}},E))}function t(h){return se.matchAll(/\w+|\[(\w*)]/g,h).map(E=>E[0]==="[]"?"":E[1]||E[0])}function s(h){const E={},P=Object.keys(h);let N;const Z=P.length;let ee;for(N=0;N<Z;N++)ee=P[N],E[ee]=h[ee];return E}function I(h){function E(P,N,Z,ee){let te=P[ee++];if(te==="__proto__")return!0;const be=Number.isFinite(+te),Ne=ee>=P.length;return te=!te&&se.isArray(Z)?Z.length:te,Ne?(se.hasOwnProp(Z,te)?Z[te]=[Z[te],N]:Z[te]=N,!be):((!Z[te]||!se.isObject(Z[te]))&&(Z[te]=[]),E(P,N,Z[te],ee)&&se.isArray(Z[te])&&(Z[te]=s(Z[te])),!be)}if(se.isFormData(h)&&se.isFunction(h.entries)){const P={};return se.forEachEntry(h,(N,Z)=>{E(t(N),Z,P,0)}),P}return null}function z(h,E,P){if(se.isString(h))try{return(E||JSON.parse)(h),se.trim(h)}catch(N){if(N.name!=="SyntaxError")throw N}return(P||JSON.stringify)(h)}const ne={transitional:ke,adapter:["xhr","http"],transformRequest:[function(E,P){const N=P.getContentType()||"",Z=N.indexOf("application/json")>-1,ee=se.isObject(E);if(ee&&se.isHTMLForm(E)&&(E=new FormData(E)),se.isFormData(E))return Z?JSON.stringify(I(E)):E;if(se.isArrayBuffer(E)||se.isBuffer(E)||se.isStream(E)||se.isFile(E)||se.isBlob(E))return E;if(se.isArrayBufferView(E))return E.buffer;if(se.isURLSearchParams(E))return P.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),E.toString();let be;if(ee){if(N.indexOf("application/x-www-form-urlencoded")>-1)return g(E,this.formSerializer).toString();if((be=se.isFileList(E))||N.indexOf("multipart/form-data")>-1){const Ne=this.env&&this.env.FormData;return y(be?{"files[]":E}:E,Ne&&new Ne,this.formSerializer)}}return ee||Z?(P.setContentType("application/json",!1),z(E)):E}],transformResponse:[function(E){const P=this.transitional||ne.transitional,N=P&&P.forcedJSONParsing,Z=this.responseType==="json";if(E&&se.isString(E)&&(N&&!this.responseType||Z)){const te=!(P&&P.silentJSONParsing)&&Z;try{return JSON.parse(E)}catch(be){if(te)throw be.name==="SyntaxError"?xe.from(be,xe.ERR_BAD_RESPONSE,this,null,this.response):be}}return E}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hr.classes.FormData,Blob:hr.classes.Blob},validateStatus:function(E){return E>=200&&E<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],h=>{ne.headers[h]={}});var he=ne;const Fe=se.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"]);var Ke=h=>{const E={};let P,N,Z;return h&&h.split(`
`).forEach(function(te){Z=te.indexOf(":"),P=te.substring(0,Z).trim().toLowerCase(),N=te.substring(Z+1).trim(),!(!P||E[P]&&Fe[P])&&(P==="set-cookie"?E[P]?E[P].push(N):E[P]=[N]:E[P]=E[P]?E[P]+", "+N:N)}),E};const Ve=Symbol("internals");function Me(h){return h&&String(h).trim().toLowerCase()}function Ue(h){return h===!1||h==null?h:se.isArray(h)?h.map(Ue):String(h)}function sc(h){const E=Object.create(null),P=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let N;for(;N=P.exec(h);)E[N[1]]=N[2];return E}const uc=h=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(h.trim());function Hi(h,E,P,N,Z){if(se.isFunction(N))return N.call(this,E,P);if(Z&&(E=P),!!se.isString(E)){if(se.isString(N))return E.indexOf(N)!==-1;if(se.isRegExp(N))return N.test(E)}}function fc(h){return h.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(E,P,N)=>P.toUpperCase()+N)}function cc(h,E){const P=se.toCamelCase(" "+E);["get","set","has"].forEach(N=>{Object.defineProperty(h,N+P,{value:function(Z,ee,te){return this[N].call(this,E,Z,ee,te)},configurable:!0})})}class ft{constructor(E){E&&this.set(E)}set(E,P,N){const Z=this;function ee(be,Ne,Le){const _e=Me(Ne);if(!_e)throw new Error("header name must be a non-empty string");const Se=se.findKey(Z,_e);(!Se||Z[Se]===void 0||Le===!0||Le===void 0&&Z[Se]!==!1)&&(Z[Se||Ne]=Ue(be))}const te=(be,Ne)=>se.forEach(be,(Le,_e)=>ee(Le,_e,Ne));return se.isPlainObject(E)||E instanceof this.constructor?te(E,P):se.isString(E)&&(E=E.trim())&&!uc(E)?te(Ke(E),P):E!=null&&ee(P,E,N),this}get(E,P){if(E=Me(E),E){const N=se.findKey(this,E);if(N){const Z=this[N];if(!P)return Z;if(P===!0)return sc(Z);if(se.isFunction(P))return P.call(this,Z,N);if(se.isRegExp(P))return P.exec(Z);throw new TypeError("parser must be boolean|regexp|function")}}}has(E,P){if(E=Me(E),E){const N=se.findKey(this,E);return!!(N&&this[N]!==void 0&&(!P||Hi(this,this[N],N,P)))}return!1}delete(E,P){const N=this;let Z=!1;function ee(te){if(te=Me(te),te){const be=se.findKey(N,te);be&&(!P||Hi(N,N[be],be,P))&&(delete N[be],Z=!0)}}return se.isArray(E)?E.forEach(ee):ee(E),Z}clear(E){const P=Object.keys(this);let N=P.length,Z=!1;for(;N--;){const ee=P[N];(!E||Hi(this,this[ee],ee,E,!0))&&(delete this[ee],Z=!0)}return Z}normalize(E){const P=this,N={};return se.forEach(this,(Z,ee)=>{const te=se.findKey(N,ee);if(te){P[te]=Ue(Z),delete P[ee];return}const be=E?fc(ee):String(ee).trim();be!==ee&&delete P[ee],P[be]=Ue(Z),N[be]=!0}),this}concat(...E){return this.constructor.concat(this,...E)}toJSON(E){const P=Object.create(null);return se.forEach(this,(N,Z)=>{N!=null&&N!==!1&&(P[Z]=E&&se.isArray(N)?N.join(", "):N)}),P}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([E,P])=>E+": "+P).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(E){return E instanceof this?E:new this(E)}static concat(E,...P){const N=new this(E);return P.forEach(Z=>N.set(Z)),N}static accessor(E){const N=(this[Ve]=this[Ve]={accessors:{}}).accessors,Z=this.prototype;function ee(te){const be=Me(te);N[be]||(cc(Z,te),N[be]=!0)}return se.isArray(E)?E.forEach(ee):ee(E),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(ft.prototype,({value:h},E)=>{let P=E[0].toUpperCase()+E.slice(1);return{get:()=>h,set(N){this[P]=N}}}),se.freezeMethods(ft);var Rr=ft;function zi(h,E){const P=this||he,N=E||P,Z=Rr.from(N.headers);let ee=N.data;return se.forEach(h,function(be){ee=be.call(P,ee,Z.normalize(),E?E.status:void 0)}),Z.normalize(),ee}function eu(h){return!!(h&&h.__CANCEL__)}function Jr(h,E,P){xe.call(this,h==null?"canceled":h,xe.ERR_CANCELED,E,P),this.name="CanceledError"}se.inherits(Jr,xe,{__CANCEL__:!0});function lc(h,E,P){const N=P.config.validateStatus;!P.status||!N||N(P.status)?h(P):E(new xe("Request failed with status code "+P.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(P.status/100)-4],P.config,P.request,P))}var hc=hr.hasStandardBrowserEnv?{write(h,E,P,N,Z,ee){const te=[h+"="+encodeURIComponent(E)];se.isNumber(P)&&te.push("expires="+new Date(P).toGMTString()),se.isString(N)&&te.push("path="+N),se.isString(Z)&&te.push("domain="+Z),ee===!0&&te.push("secure"),document.cookie=te.join("; ")},read(h){const E=document.cookie.match(new RegExp("(^|;\\s*)("+h+")=([^;]*)"));return E?decodeURIComponent(E[3]):null},remove(h){this.write(h,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pc(h){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(h)}function dc(h,E){return E?h.replace(/\/?\/$/,"")+"/"+E.replace(/^\/+/,""):h}function ru(h,E){return h&&!pc(E)?dc(h,E):E}var yc=hr.hasStandardBrowserEnv?function(){const E=/(msie|trident)/i.test(navigator.userAgent),P=document.createElement("a");let N;function Z(ee){let te=ee;return E&&(P.setAttribute("href",te),te=P.href),P.setAttribute("href",te),{href:P.href,protocol:P.protocol?P.protocol.replace(/:$/,""):"",host:P.host,search:P.search?P.search.replace(/^\?/,""):"",hash:P.hash?P.hash.replace(/^#/,""):"",hostname:P.hostname,port:P.port,pathname:P.pathname.charAt(0)==="/"?P.pathname:"/"+P.pathname}}return N=Z(window.location.href),function(te){const be=se.isString(te)?Z(te):te;return be.protocol===N.protocol&&be.host===N.host}}():function(){return function(){return!0}}();function mc(h){const E=/^([-+\w]{1,25})(:?\/\/|:)/.exec(h);return E&&E[1]||""}function gc(h,E){h=h||10;const P=new Array(h),N=new Array(h);let Z=0,ee=0,te;return E=E!==void 0?E:1e3,function(Ne){const Le=Date.now(),_e=N[ee];te||(te=Le),P[Z]=Ne,N[Z]=Le;let Se=ee,nr=0;for(;Se!==Z;)nr+=P[Se++],Se=Se%h;if(Z=(Z+1)%h,Z===ee&&(ee=(ee+1)%h),Le-te<E)return;const pr=_e&&Le-_e;return pr?Math.round(nr*1e3/pr):void 0}}function tu(h,E){let P=0;const N=gc(50,250);return Z=>{const ee=Z.loaded,te=Z.lengthComputable?Z.total:void 0,be=ee-P,Ne=N(be),Le=ee<=te;P=ee;const _e={loaded:ee,total:te,progress:te?ee/te:void 0,bytes:be,rate:Ne||void 0,estimated:Ne&&te&&Le?(te-ee)/Ne:void 0,event:Z};_e[E?"download":"upload"]=!0,h(_e)}}var Ec=typeof XMLHttpRequest!="undefined"&&function(h){return new Promise(function(P,N){let Z=h.data;const ee=Rr.from(h.headers).normalize();let{responseType:te,withXSRFToken:be}=h,Ne;function Le(){h.cancelToken&&h.cancelToken.unsubscribe(Ne),h.signal&&h.signal.removeEventListener("abort",Ne)}let _e;if(se.isFormData(Z)){if(hr.hasStandardBrowserEnv||hr.hasStandardBrowserWebWorkerEnv)ee.setContentType(!1);else if((_e=ee.getContentType())!==!1){const[Ie,...ir]=_e?_e.split(";").map(ur=>ur.trim()).filter(Boolean):[];ee.setContentType([Ie||"multipart/form-data",...ir].join("; "))}}let Se=new XMLHttpRequest;if(h.auth){const Ie=h.auth.username||"",ir=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";ee.set("Authorization","Basic "+btoa(Ie+":"+ir))}const nr=ru(h.baseURL,h.url);Se.open(h.method.toUpperCase(),re(nr,h.params,h.paramsSerializer),!0),Se.ti