vezgo-sdk-js
Version:
Official Vezgo JS SDK for the Browser & NodeJS
7 lines • 260 kB
JavaScript
(function(Te,Le){typeof exports=="object"&&typeof module!="undefined"?module.exports=Le():typeof define=="function"&&define.amd?define(Le):(Te=typeof globalThis!="undefined"?globalThis:Te||self,Te.Vezgo=Le())})(this,function(){"use strict";var Ol=Object.defineProperty,Tl=Object.defineProperties;var Il=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var rf=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable;var et=(Te,Le)=>(Le=Symbol[Te])?Le:Symbol.for("Symbol."+Te),Bl=Te=>{throw TypeError(Te)},Pe=Math.pow,ef=(Te,Le,qe)=>Le in Te?Ol(Te,Le,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Te[Le]=qe,Br=(Te,Le)=>{for(var qe in Le||(Le={}))rf.call(Le,qe)&&ef(Te,qe,Le[qe]);if(jt)for(var qe of jt(Le))tf.call(Le,qe)&&ef(Te,qe,Le[qe]);return Te},Ao=(Te,Le)=>Tl(Te,Il(Le));var rt=(Te,Le)=>{var qe={};for(var Fe in Te)rf.call(Te,Fe)&&Le.indexOf(Fe)<0&&(qe[Fe]=Te[Fe]);if(Te!=null&&jt)for(var Fe of jt(Te))Le.indexOf(Fe)<0&&tf.call(Te,Fe)&&(qe[Fe]=Te[Fe]);return qe};var Qe=(Te,Le,qe)=>new Promise((Fe,sr)=>{var rr=Me=>{try{ze(qe.next(Me))}catch(pr){sr(pr)}},$e=Me=>{try{ze(qe.throw(Me))}catch(pr){sr(pr)}},ze=Me=>Me.done?Fe(Me.value):Promise.resolve(Me.value).then(rr,$e);ze((qe=qe.apply(Te,Le)).next())}),Gr=function(Te,Le){this[0]=Te,this[1]=Le},_o=(Te,Le,qe)=>{var Fe=($e,ze,Me,pr)=>{try{var Vr=qe[$e](ze),tt=(ze=Vr.value)instanceof Gr,Ut=Vr.done;Promise.resolve(tt?ze[0]:ze).then(ar=>tt?Fe($e==="return"?$e:"next",ze[1]?{done:ar.done,value:ar.value}:ar,Me,pr):Me({value:ar,done:Ut})).catch(ar=>Fe("throw",ar,Me,pr))}catch(ar){pr(ar)}},sr=$e=>rr[$e]=ze=>new Promise((Me,pr)=>Fe($e,ze,Me,pr)),rr={};return qe=qe.apply(Te,Le),rr[et("asyncIterator")]=()=>rr,sr("next"),sr("throw"),sr("return"),rr},Oo=Te=>{var Le=Te[et("asyncIterator")],qe=!1,Fe,sr={};return Le==null?(Le=Te[et("iterator")](),Fe=rr=>sr[rr]=$e=>Le[rr]($e)):(Le=Le.call(Te),Fe=rr=>sr[rr]=$e=>{if(qe){if(qe=!1,rr==="throw")throw $e;return $e}return qe=!0,{done:!1,value:new Gr(new Promise(ze=>{var Me=Le[rr]($e);Me instanceof Object||Bl("Object expected"),ze(Me)}),1)}}),sr[et("iterator")]=()=>sr,Fe("next"),"throw"in Le?Fe("throw"):sr.throw=rr=>{throw rr},"return"in Le&&Fe("return"),sr},nf=(Te,Le,qe)=>(Le=Te[et("asyncIterator")])?Le.call(Te):(Te=Te[et("iterator")](),Le={},qe=(Fe,sr)=>(sr=Te[Fe])&&(Le[Fe]=rr=>new Promise(($e,ze,Me)=>(rr=sr.call(Te,rr),Me=rr.done,Promise.resolve(rr.value).then(pr=>$e({value:pr,done:Me}),ze)))),qe("next"),qe("return"),Le);var Te=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Le(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function qe(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function u(){return this instanceof u?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(u){var h=Object.getOwnPropertyDescriptor(r,u);Object.defineProperty(o,u,h.get?h:{enumerable:!0,get:function(){return r[u]}})}),o}var Fe={};function sr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var rr={exports:{}},$e=rr.exports={},ze,Me;function pr(){throw new Error("setTimeout has not been defined")}function Vr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ze=setTimeout:ze=pr}catch(r){ze=pr}try{typeof clearTimeout=="function"?Me=clearTimeout:Me=Vr}catch(r){Me=Vr}})();function tt(r){if(ze===setTimeout)return setTimeout(r,0);if((ze===pr||!ze)&&setTimeout)return ze=setTimeout,setTimeout(r,0);try{return ze(r,0)}catch(i){try{return ze.call(null,r,0)}catch(o){return ze.call(this,r,0)}}}function Ut(r){if(Me===clearTimeout)return clearTimeout(r);if((Me===Vr||!Me)&&clearTimeout)return Me=clearTimeout,clearTimeout(r);try{return Me(r)}catch(i){try{return Me.call(null,r)}catch(o){return Me.call(this,r)}}}var ar=[],Hr=!1,jr,ht=-1;function of(){!Hr||!jr||(Hr=!1,jr.length?ar=jr.concat(ar):ht=-1,ar.length&&To())}function To(){if(!Hr){var r=tt(of);Hr=!0;for(var i=ar.length;i;){for(jr=ar,ar=[];++ht<i;)jr&&jr[ht].run();ht=-1,i=ar.length}jr=null,Hr=!1,Ut(r)}}$e.nextTick=function(r){var i=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)i[o-1]=arguments[o];ar.push(new Io(r,i)),ar.length===1&&!Hr&&tt(To)};function Io(r,i){this.fun=r,this.array=i}Io.prototype.run=function(){this.fun.apply(null,this.array)},$e.title="browser",$e.browser=!0,$e.env={},$e.argv=[],$e.version="",$e.versions={};function Pr(){}$e.on=Pr,$e.addListener=Pr,$e.once=Pr,$e.off=Pr,$e.removeListener=Pr,$e.removeAllListeners=Pr,$e.emit=Pr,$e.prependListener=Pr,$e.prependOnceListener=Pr,$e.listeners=function(r){return[]},$e.binding=function(r){throw new Error("process.binding is not supported")},$e.cwd=function(){return"/"},$e.chdir=function(r){throw new Error("process.chdir is not supported")},$e.umask=function(){return 0};var sf=rr.exports;const Ne=sr(sf);var Bo={},pt={};pt.byteLength=ff,pt.toByteArray=lf,pt.fromByteArray=df;for(var xr=[],wr=[],af=typeof Uint8Array!="undefined"?Uint8Array:Array,$t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zr=0,uf=$t.length;zr<uf;++zr)xr[zr]=$t[zr],wr[$t.charCodeAt(zr)]=zr;wr[45]=62,wr[95]=63;function xo(r){var i=r.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=r.indexOf("=");o===-1&&(o=i);var u=o===i?0:4-o%4;return[o,u]}function ff(r){var i=xo(r),o=i[0],u=i[1];return(o+u)*3/4-u}function cf(r,i,o){return(i+o)*3/4-o}function lf(r){var i,o=xo(r),u=o[0],h=o[1],f=new af(cf(r,u,h)),p=0,m=h>0?u-4:u,y;for(y=0;y<m;y+=4)i=wr[r.charCodeAt(y)]<<18|wr[r.charCodeAt(y+1)]<<12|wr[r.charCodeAt(y+2)]<<6|wr[r.charCodeAt(y+3)],f[p++]=i>>16&255,f[p++]=i>>8&255,f[p++]=i&255;return h===2&&(i=wr[r.charCodeAt(y)]<<2|wr[r.charCodeAt(y+1)]>>4,f[p++]=i&255),h===1&&(i=wr[r.charCodeAt(y)]<<10|wr[r.charCodeAt(y+1)]<<4|wr[r.charCodeAt(y+2)]>>2,f[p++]=i>>8&255,f[p++]=i&255),f}function hf(r){return xr[r>>18&63]+xr[r>>12&63]+xr[r>>6&63]+xr[r&63]}function pf(r,i,o){for(var u,h=[],f=i;f<o;f+=3)u=(r[f]<<16&16711680)+(r[f+1]<<8&65280)+(r[f+2]&255),h.push(hf(u));return h.join("")}function df(r){for(var i,o=r.length,u=o%3,h=[],f=16383,p=0,m=o-u;p<m;p+=f)h.push(pf(r,p,p+f>m?m:p+f));return u===1?(i=r[o-1],h.push(xr[i>>2]+xr[i<<4&63]+"==")):u===2&&(i=(r[o-2]<<8)+r[o-1],h.push(xr[i>>10]+xr[i>>4&63]+xr[i<<2&63]+"=")),h.join("")}var Dt={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Dt.read=function(r,i,o,u,h){var f,p,m=h*8-u-1,y=(1<<m)-1,x=y>>1,s=-7,T=o?h-1:0,b=o?-1:1,L=r[i+T];for(T+=b,f=L&(1<<-s)-1,L>>=-s,s+=m;s>0;f=f*256+r[i+T],T+=b,s-=8);for(p=f&(1<<-s)-1,f>>=-s,s+=u;s>0;p=p*256+r[i+T],T+=b,s-=8);if(f===0)f=1-x;else{if(f===y)return p?NaN:(L?-1:1)*(1/0);p=p+Math.pow(2,u),f=f-x}return(L?-1:1)*p*Math.pow(2,f-u)},Dt.write=function(r,i,o,u,h,f){var p,m,y,x=f*8-h-1,s=(1<<x)-1,T=s>>1,b=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=u?0:f-1,I=u?1:-1,j=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(m=isNaN(i)?1:0,p=s):(p=Math.floor(Math.log(i)/Math.LN2),i*(y=Math.pow(2,-p))<1&&(p--,y*=2),p+T>=1?i+=b/y:i+=b*Math.pow(2,1-T),i*y>=2&&(p++,y/=2),p+T>=s?(m=0,p=s):p+T>=1?(m=(i*y-1)*Math.pow(2,h),p=p+T):(m=i*Math.pow(2,T-1)*Math.pow(2,h),p=0));h>=8;r[o+L]=m&255,L+=I,m/=256,h-=8);for(p=p<<h|m,x+=h;x>0;r[o+L]=p&255,L+=I,p/=256,x-=8);r[o+L-I]|=j*128};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(r){const i=pt,o=Dt,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=s,r.SlowBuffer=$,r.INSPECT_MAX_BYTES=50;const h=2147483647;r.kMaxLength=h;const{Uint8Array:f,ArrayBuffer:p,SharedArrayBuffer:m}=globalThis;s.TYPED_ARRAY_SUPPORT=y(),!s.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 y(){try{const g=new f(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,f.prototype),Object.setPrototypeOf(g,e),g.foo()===42}catch(g){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function x(g){if(g>h)throw new RangeError('The value "'+g+'" is invalid for option "size"');const e=new f(g);return Object.setPrototypeOf(e,s.prototype),e}function s(g,e,n){if(typeof g=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(g)}return T(g,e,n)}s.poolSize=8192;function T(g,e,n){if(typeof g=="string")return j(g,e);if(p.isView(g))return w(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(Xe(g,p)||g&&Xe(g.buffer,p)||typeof m!="undefined"&&(Xe(g,m)||g&&Xe(g.buffer,m)))return S(g,e,n);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=g.valueOf&&g.valueOf();if(P!=null&&P!==g)return s.from(P,e,n);const W=O(g);if(W)return W;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return s.from(g[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}s.from=function(g,e,n){return T(g,e,n)},Object.setPrototypeOf(s.prototype,f.prototype),Object.setPrototypeOf(s,f);function b(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function L(g,e,n){return b(g),g<=0?x(g):e!==void 0?typeof n=="string"?x(g).fill(e,n):x(g).fill(e):x(g)}s.alloc=function(g,e,n){return L(g,e,n)};function I(g){return b(g),x(g<0?0:_(g)|0)}s.allocUnsafe=function(g){return I(g)},s.allocUnsafeSlow=function(g){return I(g)};function j(g,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=C(g,e)|0;let P=x(n);const W=P.write(g,e);return W!==n&&(P=P.slice(0,W)),P}function V(g){const e=g.length<0?0:_(g.length)|0,n=x(e);for(let P=0;P<e;P+=1)n[P]=g[P]&255;return n}function w(g){if(Xe(g,f)){const e=new f(g);return S(e.buffer,e.byteOffset,e.byteLength)}return V(g)}function S(g,e,n){if(e<0||g.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let P;return e===void 0&&n===void 0?P=new f(g):n===void 0?P=new f(g,e):P=new f(g,e,n),Object.setPrototypeOf(P,s.prototype),P}function O(g){if(s.isBuffer(g)){const e=_(g.length)|0,n=x(e);return n.length===0||g.copy(n,0,0,e),n}if(g.length!==void 0)return typeof g.length!="number"||or(g.length)?x(0):V(g);if(g.type==="Buffer"&&Array.isArray(g.data))return V(g.data)}function _(g){if(g>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return g|0}function $(g){return+g!=g&&(g=0),s.alloc(+g)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,n){if(Xe(e,f)&&(e=s.from(e,e.offset,e.byteLength)),Xe(n,f)&&(n=s.from(n,n.offset,n.byteLength)),!s.isBuffer(e)||!s.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let P=e.length,W=n.length;for(let te=0,le=Math.min(P,W);te<le;++te)if(e[te]!==n[te]){P=e[te],W=n[te];break}return P<W?-1:W<P?1:0},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);let P;if(n===void 0)for(n=0,P=0;P<e.length;++P)n+=e[P].length;const W=s.allocUnsafe(n);let te=0;for(P=0;P<e.length;++P){let le=e[P];if(Xe(le,f))te+le.length>W.length?(s.isBuffer(le)||(le=s.from(le)),le.copy(W,te)):f.prototype.set.call(W,le,te);else if(s.isBuffer(le))le.copy(W,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=le.length}return W};function C(g,e){if(s.isBuffer(g))return g.length;if(p.isView(g)||Xe(g,p))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);const n=g.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&n===0)return 0;let W=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return yr(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Ke(g).length;default:if(W)return P?-1:yr(g).length;e=(""+e).toLowerCase(),W=!0}}s.byteLength=C;function k(g,e,n){let P=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(g||(g="utf8");;)switch(g){case"hex":return q(this,e,n);case"utf8":case"utf-8":return oe(this,e,n);case"ascii":return ge(this,e,n);case"latin1":case"binary":return Se(this,e,n);case"base64":return re(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,e,n);default:if(P)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),P=!0}}s.prototype._isBuffer=!0;function F(g,e,n){const P=g[e];g[e]=g[n],g[n]=P}s.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<e;n+=2)F(this,n,n+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<e;n+=4)F(this,n,n+3),F(this,n+1,n+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<e;n+=8)F(this,n,n+7),F(this,n+1,n+6),F(this,n+2,n+5),F(this,n+3,n+4);return this},s.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?oe(this,0,e):k.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let e="";const n=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},u&&(s.prototype[u]=s.prototype.inspect),s.prototype.compare=function(e,n,P,W,te){if(Xe(e,f)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(n===void 0&&(n=0),P===void 0&&(P=e?e.length:0),W===void 0&&(W=0),te===void 0&&(te=this.length),n<0||P>e.length||W<0||te>this.length)throw new RangeError("out of range index");if(W>=te&&n>=P)return 0;if(W>=te)return-1;if(n>=P)return 1;if(n>>>=0,P>>>=0,W>>>=0,te>>>=0,this===e)return 0;let le=te-W,Ce=P-n;const Ve=Math.min(le,Ce),ke=this.slice(W,te),He=e.slice(n,P);for(let De=0;De<Ve;++De)if(ke[De]!==He[De]){le=ke[De],Ce=He[De];break}return le<Ce?-1:Ce<le?1:0};function z(g,e,n,P,W){if(g.length===0)return-1;if(typeof n=="string"?(P=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,or(n)&&(n=W?0:g.length-1),n<0&&(n=g.length+n),n>=g.length){if(W)return-1;n=g.length-1}else if(n<0)if(W)n=0;else return-1;if(typeof e=="string"&&(e=s.from(e,P)),s.isBuffer(e))return e.length===0?-1:Y(g,e,n,P,W);if(typeof e=="number")return e=e&255,typeof f.prototype.indexOf=="function"?W?f.prototype.indexOf.call(g,e,n):f.prototype.lastIndexOf.call(g,e,n):Y(g,[e],n,P,W);throw new TypeError("val must be string, number or Buffer")}function Y(g,e,n,P,W){let te=1,le=g.length,Ce=e.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(g.length<2||e.length<2)return-1;te=2,le/=2,Ce/=2,n/=2}function Ve(He,De){return te===1?He[De]:He.readUInt16BE(De*te)}let ke;if(W){let He=-1;for(ke=n;ke<le;ke++)if(Ve(g,ke)===Ve(e,He===-1?0:ke-He)){if(He===-1&&(He=ke),ke-He+1===Ce)return He*te}else He!==-1&&(ke-=ke-He),He=-1}else for(n+Ce>le&&(n=le-Ce),ke=n;ke>=0;ke--){let He=!0;for(let De=0;De<Ce;De++)if(Ve(g,ke+De)!==Ve(e,De)){He=!1;break}if(He)return ke}return-1}s.prototype.includes=function(e,n,P){return this.indexOf(e,n,P)!==-1},s.prototype.indexOf=function(e,n,P){return z(this,e,n,P,!0)},s.prototype.lastIndexOf=function(e,n,P){return z(this,e,n,P,!1)};function ue(g,e,n,P){n=Number(n)||0;const W=g.length-n;P?(P=Number(P),P>W&&(P=W)):P=W;const te=e.length;P>te/2&&(P=te/2);let le;for(le=0;le<P;++le){const Ce=parseInt(e.substr(le*2,2),16);if(or(Ce))return le;g[n+le]=Ce}return le}function A(g,e,n,P){return lr(yr(e,g.length-n),g,n,P)}function ce(g,e,n,P){return lr(Tr(e),g,n,P)}function D(g,e,n,P){return lr(Ke(e),g,n,P)}function M(g,e,n,P){return lr(Ge(e,g.length-n),g,n,P)}s.prototype.write=function(e,n,P,W){if(n===void 0)W="utf8",P=this.length,n=0;else if(P===void 0&&typeof n=="string")W=n,P=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(P)?(P=P>>>0,W===void 0&&(W="utf8")):(W=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const te=this.length-n;if((P===void 0||P>te)&&(P=te),e.length>0&&(P<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let le=!1;for(;;)switch(W){case"hex":return ue(this,e,n,P);case"utf8":case"utf-8":return A(this,e,n,P);case"ascii":case"latin1":case"binary":return ce(this,e,n,P);case"base64":return D(this,e,n,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n,P);default:if(le)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),le=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(g,e,n){return e===0&&n===g.length?i.fromByteArray(g):i.fromByteArray(g.slice(e,n))}function oe(g,e,n){n=Math.min(g.length,n);const P=[];let W=e;for(;W<n;){const te=g[W];let le=null,Ce=te>239?4:te>223?3:te>191?2:1;if(W+Ce<=n){let Ve,ke,He,De;switch(Ce){case 1:te<128&&(le=te);break;case 2:Ve=g[W+1],(Ve&192)===128&&(De=(te&31)<<6|Ve&63,De>127&&(le=De));break;case 3:Ve=g[W+1],ke=g[W+2],(Ve&192)===128&&(ke&192)===128&&(De=(te&15)<<12|(Ve&63)<<6|ke&63,De>2047&&(De<55296||De>57343)&&(le=De));break;case 4:Ve=g[W+1],ke=g[W+2],He=g[W+3],(Ve&192)===128&&(ke&192)===128&&(He&192)===128&&(De=(te&15)<<18|(Ve&63)<<12|(ke&63)<<6|He&63,De>65535&&De<1114112&&(le=De))}}le===null?(le=65533,Ce=1):le>65535&&(le-=65536,P.push(le>>>10&1023|55296),le=56320|le&1023),P.push(le),W+=Ce}return ye(P)}const ae=4096;function ye(g){const e=g.length;if(e<=ae)return String.fromCharCode.apply(String,g);let n="",P=0;for(;P<e;)n+=String.fromCharCode.apply(String,g.slice(P,P+=ae));return n}function ge(g,e,n){let P="";n=Math.min(g.length,n);for(let W=e;W<n;++W)P+=String.fromCharCode(g[W]&127);return P}function Se(g,e,n){let P="";n=Math.min(g.length,n);for(let W=e;W<n;++W)P+=String.fromCharCode(g[W]);return P}function q(g,e,n){const P=g.length;(!e||e<0)&&(e=0),(!n||n<0||n>P)&&(n=P);let W="";for(let te=e;te<n;++te)W+=ur[g[te]];return W}function X(g,e,n){const P=g.slice(e,n);let W="";for(let te=0;te<P.length-1;te+=2)W+=String.fromCharCode(P[te]+P[te+1]*256);return W}s.prototype.slice=function(e,n){const P=this.length;e=~~e,n=n===void 0?P:~~n,e<0?(e+=P,e<0&&(e=0)):e>P&&(e=P),n<0?(n+=P,n<0&&(n=0)):n>P&&(n=P),n<e&&(n=e);const W=this.subarray(e,n);return Object.setPrototypeOf(W,s.prototype),W};function J(g,e,n){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+e>n)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,n,P){e=e>>>0,n=n>>>0,P||J(e,n,this.length);let W=this[e],te=1,le=0;for(;++le<n&&(te*=256);)W+=this[e+le]*te;return W},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,n,P){e=e>>>0,n=n>>>0,P||J(e,n,this.length);let W=this[e+--n],te=1;for(;n>0&&(te*=256);)W+=this[e+--n]*te;return W},s.prototype.readUint8=s.prototype.readUInt8=function(e,n){return e=e>>>0,n||J(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,n){return e=e>>>0,n||J(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,n){return e=e>>>0,n||J(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,n){return e=e>>>0,n||J(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,n){return e=e>>>0,n||J(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Ye(function(e){e=e>>>0,Re(e,"offset");const n=this[e],P=this[e+7];(n===void 0||P===void 0)&&Oe(e,this.length-8);const W=n+this[++e]*Pe(2,8)+this[++e]*Pe(2,16)+this[++e]*Pe(2,24),te=this[++e]+this[++e]*Pe(2,8)+this[++e]*Pe(2,16)+P*Pe(2,24);return BigInt(W)+(BigInt(te)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ye(function(e){e=e>>>0,Re(e,"offset");const n=this[e],P=this[e+7];(n===void 0||P===void 0)&&Oe(e,this.length-8);const W=n*Pe(2,24)+this[++e]*Pe(2,16)+this[++e]*Pe(2,8)+this[++e],te=this[++e]*Pe(2,24)+this[++e]*Pe(2,16)+this[++e]*Pe(2,8)+P;return(BigInt(W)<<BigInt(32))+BigInt(te)}),s.prototype.readIntLE=function(e,n,P){e=e>>>0,n=n>>>0,P||J(e,n,this.length);let W=this[e],te=1,le=0;for(;++le<n&&(te*=256);)W+=this[e+le]*te;return te*=128,W>=te&&(W-=Math.pow(2,8*n)),W},s.prototype.readIntBE=function(e,n,P){e=e>>>0,n=n>>>0,P||J(e,n,this.length);let W=n,te=1,le=this[e+--W];for(;W>0&&(te*=256);)le+=this[e+--W]*te;return te*=128,le>=te&&(le-=Math.pow(2,8*n)),le},s.prototype.readInt8=function(e,n){return e=e>>>0,n||J(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,n){e=e>>>0,n||J(e,2,this.length);const P=this[e]|this[e+1]<<8;return P&32768?P|4294901760:P},s.prototype.readInt16BE=function(e,n){e=e>>>0,n||J(e,2,this.length);const P=this[e+1]|this[e]<<8;return P&32768?P|4294901760:P},s.prototype.readInt32LE=function(e,n){return e=e>>>0,n||J(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,n){return e=e>>>0,n||J(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Ye(function(e){e=e>>>0,Re(e,"offset");const n=this[e],P=this[e+7];(n===void 0||P===void 0)&&Oe(e,this.length-8);const W=this[e+4]+this[e+5]*Pe(2,8)+this[e+6]*Pe(2,16)+(P<<24);return(BigInt(W)<<BigInt(32))+BigInt(n+this[++e]*Pe(2,8)+this[++e]*Pe(2,16)+this[++e]*Pe(2,24))}),s.prototype.readBigInt64BE=Ye(function(e){e=e>>>0,Re(e,"offset");const n=this[e],P=this[e+7];(n===void 0||P===void 0)&&Oe(e,this.length-8);const W=(n<<24)+this[++e]*Pe(2,16)+this[++e]*Pe(2,8)+this[++e];return(BigInt(W)<<BigInt(32))+BigInt(this[++e]*Pe(2,24)+this[++e]*Pe(2,16)+this[++e]*Pe(2,8)+P)}),s.prototype.readFloatLE=function(e,n){return e=e>>>0,n||J(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,n){return e=e>>>0,n||J(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,n){return e=e>>>0,n||J(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,n){return e=e>>>0,n||J(e,8,this.length),o.read(this,e,!1,52,8)};function me(g,e,n,P,W,te){if(!s.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>W||e<te)throw new RangeError('"value" argument is out of bounds');if(n+P>g.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,n,P,W){if(e=+e,n=n>>>0,P=P>>>0,!W){const Ce=Math.pow(2,8*P)-1;me(this,e,n,P,Ce,0)}let te=1,le=0;for(this[n]=e&255;++le<P&&(te*=256);)this[n+le]=e/te&255;return n+P},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,n,P,W){if(e=+e,n=n>>>0,P=P>>>0,!W){const Ce=Math.pow(2,8*P)-1;me(this,e,n,P,Ce,0)}let te=P-1,le=1;for(this[n+te]=e&255;--te>=0&&(le*=256);)this[n+te]=e/le&255;return n+P},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,1,255,0),this[n]=e&255,n+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,2,65535,0),this[n]=e&255,this[n+1]=e>>>8,n+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=e&255,n+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255,n+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};function G(g,e,n,P,W){_e(e,P,W,g,n,7);let te=Number(e&BigInt(4294967295));g[n++]=te,te=te>>8,g[n++]=te,te=te>>8,g[n++]=te,te=te>>8,g[n++]=te;let le=Number(e>>BigInt(32)&BigInt(4294967295));return g[n++]=le,le=le>>8,g[n++]=le,le=le>>8,g[n++]=le,le=le>>8,g[n++]=le,n}function K(g,e,n,P,W){_e(e,P,W,g,n,7);let te=Number(e&BigInt(4294967295));g[n+7]=te,te=te>>8,g[n+6]=te,te=te>>8,g[n+5]=te,te=te>>8,g[n+4]=te;let le=Number(e>>BigInt(32)&BigInt(4294967295));return g[n+3]=le,le=le>>8,g[n+2]=le,le=le>>8,g[n+1]=le,le=le>>8,g[n]=le,n+8}s.prototype.writeBigUInt64LE=Ye(function(e,n=0){return G(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ye(function(e,n=0){return K(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,n,P,W){if(e=+e,n=n>>>0,!W){const Ve=Math.pow(2,8*P-1);me(this,e,n,P,Ve-1,-Ve)}let te=0,le=1,Ce=0;for(this[n]=e&255;++te<P&&(le*=256);)e<0&&Ce===0&&this[n+te-1]!==0&&(Ce=1),this[n+te]=(e/le>>0)-Ce&255;return n+P},s.prototype.writeIntBE=function(e,n,P,W){if(e=+e,n=n>>>0,!W){const Ve=Math.pow(2,8*P-1);me(this,e,n,P,Ve-1,-Ve)}let te=P-1,le=1,Ce=0;for(this[n+te]=e&255;--te>=0&&(le*=256);)e<0&&Ce===0&&this[n+te+1]!==0&&(Ce=1),this[n+te]=(e/le>>0)-Ce&255;return n+P},s.prototype.writeInt8=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=e&255,n+1},s.prototype.writeInt16LE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,2,32767,-32768),this[n]=e&255,this[n+1]=e>>>8,n+2},s.prototype.writeInt16BE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=e&255,n+2},s.prototype.writeInt32LE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,4,2147483647,-2147483648),this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},s.prototype.writeInt32BE=function(e,n,P){return e=+e,n=n>>>0,P||me(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4},s.prototype.writeBigInt64LE=Ye(function(e,n=0){return G(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ye(function(e,n=0){return K(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(g,e,n,P,W,te){if(n+P>g.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ee(g,e,n,P,W){return e=+e,n=n>>>0,W||ie(g,e,n,4),o.write(g,e,n,P,23,4),n+4}s.prototype.writeFloatLE=function(e,n,P){return Ee(this,e,n,!0,P)},s.prototype.writeFloatBE=function(e,n,P){return Ee(this,e,n,!1,P)};function de(g,e,n,P,W){return e=+e,n=n>>>0,W||ie(g,e,n,8),o.write(g,e,n,P,52,8),n+8}s.prototype.writeDoubleLE=function(e,n,P){return de(this,e,n,!0,P)},s.prototype.writeDoubleBE=function(e,n,P){return de(this,e,n,!1,P)},s.prototype.copy=function(e,n,P,W){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(P||(P=0),!W&&W!==0&&(W=this.length),n>=e.length&&(n=e.length),n||(n=0),W>0&&W<P&&(W=P),W===P||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),e.length-n<W-P&&(W=e.length-n+P);const te=W-P;return this===e&&typeof f.prototype.copyWithin=="function"?this.copyWithin(n,P,W):f.prototype.set.call(e,this.subarray(P,W),n),te},s.prototype.fill=function(e,n,P,W){if(typeof e=="string"){if(typeof n=="string"?(W=n,n=0,P=this.length):typeof P=="string"&&(W=P,P=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!s.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(e.length===1){const le=e.charCodeAt(0);(W==="utf8"&&le<128||W==="latin1")&&(e=le)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(n<0||this.length<n||this.length<P)throw new RangeError("Out of range index");if(P<=n)return this;n=n>>>0,P=P===void 0?this.length:P>>>0,e||(e=0);let te;if(typeof e=="number")for(te=n;te<P;++te)this[te]=e;else{const le=s.isBuffer(e)?e:s.from(e,W),Ce=le.length;if(Ce===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(te=0;te<P-n;++te)this[te+n]=le[te%Ce]}return this};const v={};function l(g,e,n){v[g]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,this.stack,delete this.name}get code(){return g}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}l("ERR_BUFFER_OUT_OF_BOUNDS",function(g){return g?`${g} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),l("ERR_INVALID_ARG_TYPE",function(g,e){return`The "${g}" argument must be of type number. Received type ${typeof e}`},TypeError),l("ERR_OUT_OF_RANGE",function(g,e,n){let P=`The value of "${g}" is out of range.`,W=n;return Number.isInteger(n)&&Math.abs(n)>Pe(2,32)?W=Z(String(n)):typeof n=="bigint"&&(W=String(n),(n>Pe(BigInt(2),BigInt(32))||n<-Pe(BigInt(2),BigInt(32)))&&(W=Z(W)),W+="n"),P+=` It must be ${e}. Received ${W}`,P},RangeError);function Z(g){let e="",n=g.length;const P=g[0]==="-"?1:0;for(;n>=P+4;n-=3)e=`_${g.slice(n-3,n)}${e}`;return`${g.slice(0,n)}${e}`}function se(g,e,n){Re(e,"offset"),(g[e]===void 0||g[e+n]===void 0)&&Oe(e,g.length-(n+1))}function _e(g,e,n,P,W,te){if(g>n||g<e){const le=typeof e=="bigint"?"n":"";let Ce;throw e===0||e===BigInt(0)?Ce=`>= 0${le} and < 2${le} ** ${(te+1)*8}${le}`:Ce=`>= -(2${le} ** ${(te+1)*8-1}${le}) and < 2 ** ${(te+1)*8-1}${le}`,new v.ERR_OUT_OF_RANGE("value",Ce,g)}se(P,W,te)}function Re(g,e){if(typeof g!="number")throw new v.ERR_INVALID_ARG_TYPE(e,"number",g)}function Oe(g,e,n){throw Math.floor(g)!==g?(Re(g,n),new v.ERR_OUT_OF_RANGE("offset","an integer",g)):e<0?new v.ERR_BUFFER_OUT_OF_BOUNDS:new v.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,g)}const tr=/[^+/0-9A-Za-z-_]/g;function he(g){if(g=g.split("=")[0],g=g.trim().replace(tr,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function yr(g,e){e=e||1/0;let n;const P=g.length;let W=null;const te=[];for(let le=0;le<P;++le){if(n=g.charCodeAt(le),n>55295&&n<57344){if(!W){if(n>56319){(e-=3)>-1&&te.push(239,191,189);continue}else if(le+1===P){(e-=3)>-1&&te.push(239,191,189);continue}W=n;continue}if(n<56320){(e-=3)>-1&&te.push(239,191,189),W=n;continue}n=(W-55296<<10|n-56320)+65536}else W&&(e-=3)>-1&&te.push(239,191,189);if(W=null,n<128){if((e-=1)<0)break;te.push(n)}else if(n<2048){if((e-=2)<0)break;te.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;te.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;te.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return te}function Tr(g){const e=[];for(let n=0;n<g.length;++n)e.push(g.charCodeAt(n)&255);return e}function Ge(g,e){let n,P,W;const te=[];for(let le=0;le<g.length&&!((e-=2)<0);++le)n=g.charCodeAt(le),P=n>>8,W=n%256,te.push(W),te.push(P);return te}function Ke(g){return i.toByteArray(he(g))}function lr(g,e,n,P){let W;for(W=0;W<P&&!(W+n>=e.length||W>=g.length);++W)e[W+n]=g[W];return W}function Xe(g,e){return g instanceof e||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===e.name}function or(g){return g!==g}const ur=function(){const g="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const P=n*16;for(let W=0;W<16;++W)e[P+W]=g[n]+g[W]}return e}();function Ye(g){return typeof BigInt=="undefined"?hr:g}function hr(){throw new Error("BigInt not supported")}})(Bo);const dt=Bo.Buffer;var qt,Po;function yf(){if(Po)return qt;Po=1;function r(c,d){return function(){return c.apply(d,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:u,toStringTag:h}=Symbol,f=(c=>d=>{const R=i.call(d);return c[R]||(c[R]=R.slice(8,-1).toLowerCase())})(Object.create(null)),p=c=>(c=c.toLowerCase(),d=>f(d)===c),m=c=>d=>typeof d===c,{isArray:y}=Array,x=m("undefined");function s(c){return c!==null&&!x(c)&&c.constructor!==null&&!x(c.constructor)&&I(c.constructor.isBuffer)&&c.constructor.isBuffer(c)}const T=p("ArrayBuffer");function b(c){let d;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?d=ArrayBuffer.isView(c):d=c&&c.buffer&&T(c.buffer),d}const L=m("string"),I=m("function"),j=m("number"),V=c=>c!==null&&typeof c=="object",w=c=>c===!0||c===!1,S=c=>{if(f(c)!=="object")return!1;const d=o(c);return(d===null||d===Object.prototype||Object.getPrototypeOf(d)===null)&&!(h in c)&&!(u in c)},O=c=>{if(!V(c)||s(c))return!1;try{return Object.keys(c).length===0&&Object.getPrototypeOf(c)===Object.prototype}catch(d){return!1}},_=p("Date"),$=p("File"),C=c=>!!(c&&typeof c.uri!="undefined"),k=c=>c&&typeof c.getParts!="undefined",F=p("Blob"),z=p("FileList"),Y=c=>V(c)&&I(c.pipe);function ue(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Te!="undefined"?Te:{}}const A=ue(),ce=typeof A.FormData!="undefined"?A.FormData:void 0,D=c=>{let d;return c&&(ce&&c instanceof ce||I(c.append)&&((d=f(c))==="formdata"||d==="object"&&I(c.toString)&&c.toString()==="[object FormData]"))},M=p("URLSearchParams"),[re,oe,ae,ye]=["ReadableStream","Request","Response","Headers"].map(p),ge=c=>c.trim?c.trim():c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(c,d,{allOwnKeys:R=!1}={}){if(c===null||typeof c=="undefined")return;let B,U;if(typeof c!="object"&&(c=[c]),y(c))for(B=0,U=c.length;B<U;B++)d.call(null,c[B],B,c);else{if(s(c))return;const ee=R?Object.getOwnPropertyNames(c):Object.keys(c),Q=ee.length;let fe;for(B=0;B<Q;B++)fe=ee[B],d.call(null,c[fe],fe,c)}}function q(c,d){if(s(c))return null;d=d.toLowerCase();const R=Object.keys(c);let B=R.length,U;for(;B-- >0;)if(U=R[B],d===U.toLowerCase())return U;return null}const X=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:Te,J=c=>!x(c)&&c!==X;function me(){const{caseless:c,skipUndefined:d}=J(this)&&this||{},R={},B=(U,ee)=>{if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return;const Q=c&&q(R,ee)||ee;S(R[Q])&&S(U)?R[Q]=me(R[Q],U):S(U)?R[Q]=me({},U):y(U)?R[Q]=U.slice():(!d||!x(U))&&(R[Q]=U)};for(let U=0,ee=arguments.length;U<ee;U++)arguments[U]&&Se(arguments[U],B);return R}const G=(c,d,R,{allOwnKeys:B}={})=>(Se(d,(U,ee)=>{R&&I(U)?Object.defineProperty(c,ee,{value:r(U,R),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(c,ee,{value:U,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:B}),c),K=c=>(c.charCodeAt(0)===65279&&(c=c.slice(1)),c),ie=(c,d,R,B)=>{c.prototype=Object.create(d.prototype,B),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(c,"super",{value:d.prototype}),R&&Object.assign(c.prototype,R)},Ee=(c,d,R,B)=>{let U,ee,Q;const fe={};if(d=d||{},c==null)return d;do{for(U=Object.getOwnPropertyNames(c),ee=U.length;ee-- >0;)Q=U[ee],(!B||B(Q,c,d))&&!fe[Q]&&(d[Q]=c[Q],fe[Q]=!0);c=R!==!1&&o(c)}while(c&&(!R||R(c,d))&&c!==Object.prototype);return d},de=(c,d,R)=>{c=String(c),(R===void 0||R>c.length)&&(R=c.length),R-=d.length;const B=c.indexOf(d,R);return B!==-1&&B===R},v=c=>{if(!c)return null;if(y(c))return c;let d=c.length;if(!j(d))return null;const R=new Array(d);for(;d-- >0;)R[d]=c[d];return R},l=(c=>d=>c&&d instanceof c)(typeof Uint8Array!="undefined"&&o(Uint8Array)),Z=(c,d)=>{const B=(c&&c[u]).call(c);let U;for(;(U=B.next())&&!U.done;){const ee=U.value;d.call(c,ee[0],ee[1])}},se=(c,d)=>{let R;const B=[];for(;(R=c.exec(d))!==null;)B.push(R);return B},_e=p("HTMLFormElement"),Re=c=>c.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(R,B,U){return B.toUpperCase()+U}),Oe=(({hasOwnProperty:c})=>(d,R)=>c.call(d,R))(Object.prototype),tr=p("RegExp"),he=(c,d)=>{const R=Object.getOwnPropertyDescriptors(c),B={};Se(R,(U,ee)=>{let Q;(Q=d(U,ee,c))!==!1&&(B[ee]=Q||U)}),Object.defineProperties(c,B)},yr=c=>{he(c,(d,R)=>{if(I(c)&&["arguments","caller","callee"].indexOf(R)!==-1)return!1;const B=c[R];if(I(B)){if(d.enumerable=!1,"writable"in d){d.writable=!1;return}d.set||(d.set=()=>{throw Error("Can not rewrite read-only method '"+R+"'")})}})},Tr=(c,d)=>{const R={},B=U=>{U.forEach(ee=>{R[ee]=!0})};return y(c)?B(c):B(String(c).split(d)),R},Ge=()=>{},Ke=(c,d)=>c!=null&&Number.isFinite(c=+c)?c:d;function lr(c){return!!(c&&I(c.append)&&c[h]==="FormData"&&c[u])}const Xe=c=>{const d=new Array(10),R=(B,U)=>{if(V(B)){if(d.indexOf(B)>=0)return;if(s(B))return B;if(!("toJSON"in B)){d[U]=B;const ee=y(B)?[]:{};return Se(B,(Q,fe)=>{const Ie=R(Q,U+1);!x(Ie)&&(ee[fe]=Ie)}),d[U]=void 0,ee}}return B};return R(c,0)},or=p("AsyncFunction"),ur=c=>c&&(V(c)||I(c))&&I(c.then)&&I(c.catch),Ye=((c,d)=>c?setImmediate:d?((R,B)=>(X.addEventListener("message",({source:U,data:ee})=>{U===X&&ee===R&&B.length&&B.shift()()},!1),U=>{B.push(U),X.postMessage(R,"*")}))(`axios@${Math.random()}`,[]):R=>setTimeout(R))(typeof setImmediate=="function",I(X.postMessage)),hr=typeof queueMicrotask!="undefined"?queueMicrotask.bind(X):typeof Ne!="undefined"&&Ne.nextTick||Ye;var e={isArray:y,isArrayBuffer:T,isBuffer:s,isFormData:D,isArrayBufferView:b,isString:L,isNumber:j,isBoolean:w,isObject:V,isPlainObject:S,isEmptyObject:O,isReadableStream:re,isRequest:oe,isResponse:ae,isHeaders:ye,isUndefined:x,isDate:_,isFile:$,isReactNativeBlob:C,isReactNative:k,isBlob:F,isRegExp:tr,isFunction:I,isStream:Y,isURLSearchParams:M,isTypedArray:l,isFileList:z,forEach:Se,merge:me,extend:G,trim:ge,stripBOM:K,inherits:ie,toFlatObject:Ee,kindOf:f,kindOfTest:p,endsWith:de,toArray:v,forEachEntry:Z,matchAll:se,isHTMLForm:_e,hasOwnProperty:Oe,hasOwnProp:Oe,reduceDescriptors:he,freezeMethods:yr,toObjectSet:Tr,toCamelCase:Re,noop:Ge,toFiniteNumber:Ke,findKey:q,global:X,isContextDefined:J,isSpecCompliantForm:lr,toJSONObject:Xe,isAsyncFn:or,isThenable:ur,setImmediate:Ye,asap:hr,isIterable:c=>c!=null&&I(c[u])};class n extends Error{static from(d,R,B,U,ee,Q){const fe=new n(d.message,R||d.code,B,U,ee);return fe.cause=d,fe.name=d.name,d.status!=null&&fe.status==null&&(fe.status=d.status),Q&&Object.assign(fe,Q),fe}constructor(d,R,B,U,ee){super(d),Object.defineProperty(this,"message",{value:d,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,R&&(this.code=R),B&&(this.config=B),U&&(this.request=U),ee&&(this.response=ee,this.status=ee.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:e.toJSONObject(this.config),code:this.code,status:this.status}}}n.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",n.ERR_BAD_OPTION="ERR_BAD_OPTION",n.ECONNABORTED="ECONNABORTED",n.ETIMEDOUT="ETIMEDOUT",n.ERR_NETWORK="ERR_NETWORK",n.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",n.ERR_DEPRECATED="ERR_DEPRECATED",n.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",n.ERR_BAD_REQUEST="ERR_BAD_REQUEST",n.ERR_CANCELED="ERR_CANCELED",n.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",n.ERR_INVALID_URL="ERR_INVALID_URL";var P=null;function W(c){return e.isPlainObject(c)||e.isArray(c)}function te(c){return e.endsWith(c,"[]")?c.slice(0,-2):c}function le(c,d,R){return c?c.concat(d).map(function(U,ee){return U=te(U),!R&&ee?"["+U+"]":U}).join(R?".":""):d}function Ce(c){return e.isArray(c)&&!c.some(W)}const Ve=e.toFlatObject(e,{},null,function(d){return/^is[A-Z]/.test(d)});function ke(c,d,R){if(!e.isObject(c))throw new TypeError("target must be an object");d=d||new FormData,R=e.toFlatObject(R,{metaTokens:!0,dots:!1,indexes:!1},!1,function(xe,Ae){return!e.isUndefined(Ae[xe])});const B=R.metaTokens,U=R.visitor||we,ee=R.dots,Q=R.indexes,Ie=(R.Blob||typeof Blob!="undefined"&&Blob)&&e.isSpecCompliantForm(d);if(!e.isFunction(U))throw new TypeError("visitor must be a function");function ve(be){if(be===null)return"";if(e.isDate(be))return be.toISOString();if(e.isBoolean(be))return be.toString();if(!Ie&&e.isBlob(be))throw new n("Blob is not supported. Use a Buffer instead.");return e.isArrayBuffer(be)||e.isTypedArray(be)?Ie&&typeof Blob=="function"?new Blob([be]):dt.from(be):be}function we(be,xe,Ae){let ir=be;if(e.isReactNative(d)&&e.isReactNativeBlob(be))return d.append(le(Ae,xe,ee),ve(be)),!1;if(be&&!Ae&&typeof be=="object"){if(e.endsWith(xe,"{}"))xe=B?xe:xe.slice(0,-2),be=JSON.stringify(be);else if(e.isArray(be)&&Ce(be)||(e.isFileList(be)||e.endsWith(xe,"[]"))&&(ir=e.toArray(be)))return xe=te(xe),ir.forEach(function(cr,mr){!(e.isUndefined(cr)||cr===null)&&d.append(Q===!0?le([xe],mr,ee):Q===null?xe:xe+"[]",ve(cr))}),!1}return W(be)?!0:(d.append(le(Ae,xe,ee),ve(be)),!1)}const Be=[],Je=Object.assign(Ve,{defaultVisitor:we,convertValue:ve,isVisitable:W});function fr(be,xe){if(!e.isUndefined(be)){if(Be.indexOf(be)!==-1)throw Error("Circular reference detected in "+xe.join("."));Be.push(be),e.forEach(be,function(ir,Rr){(!(e.isUndefined(ir)||ir===null)&&U.call(d,ir,e.isString(Rr)?Rr.trim():Rr,xe,Je))===!0&&fr(ir,xe?xe.concat(Rr):[Rr])}),Be.pop()}}if(!e.isObject(c))throw new TypeError("data must be an object");return fr(c),d}function He(c){const d={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(c).replace(/[!'()~]|%20|%00/g,function(B){return d[B]})}function De(c,d){this._pairs=[],c&&ke(c,this,d)}const Dr=De.prototype;Dr.append=function(d,R){this._pairs.push([d,R])},Dr.toString=function(d){const R=d?function(B){return d.call(this,B,He)}:He;return this._pairs.map(function(U){return R(U[0])+"="+R(U[1])},"").join("&")};function br(c){return encodeURIComponent(c).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Qr(c,d,R){if(!d)return c;const B=R&&R.encode||br,U=e.isFunction(R)?{serialize:R}:R,ee=U&&U.serialize;let Q;if(ee?Q=ee(d,U):Q=e.isURLSearchParams(d)?d.toString():new De(d,U).toString(B),Q){const fe=c.indexOf("#");fe!==-1&&(c=c.slice(0,fe)),c+=(c.indexOf("?")===-1?"?":"&")+Q}return c}class Tt{constructor(){this.handlers=[]}use(d,R,B){return this.handlers.push({fulfilled:d,rejected:R,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(d){this.handlers[d]&&(this.handlers[d]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(d){e.forEach(this.handlers,function(B){B!==null&&d(B)})}}var Sr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},yo=typeof URLSearchParams!="undefined"?URLSearchParams:De,E=typeof FormData!="undefined"?FormData:null,t=typeof Blob!="undefined"?Blob:null,a={isBrowser:!0,classes:{URLSearchParams:yo,FormData:E,Blob:t},protocols:["http","https","file","blob","url","data"]};const N=typeof window!="undefined"&&typeof document!="undefined",H=typeof navigator=="object"&&navigator||void 0,ne=N&&(!H||["ReactNative","NativeScript","NS"].indexOf(H.product)<0),pe=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ue=N&&window.location.href||"http://localhost";var Ze=Object.freeze({__proto__:null,hasBrowserEnv:N,hasStandardBrowserEnv:ne,hasStandardBrowserWebWorkerEnv:pe,navigator:H,origin:Ue}),je=Br(Br({},Ze),a);function er(c,d){return ke(c,new je.classes.URLSearchParams,Br({visitor:function(R,B,U,ee){return je.isNode&&e.isBuffer(R)?(this.append(B,R.toString("base64")),!1):ee.defaultVisitor.apply(this,arguments)}},d))}function We(c){return e.matchAll(/\w+|\[(\w*)]/g,c).map(d=>d[0]==="[]"?"":d[1]||d[0])}function Yc(c){const d={},R=Object.keys(c);let B;const U=R.length;let ee;for(B=0;B<U;B++)ee=R[B],d[ee]=c[ee];return d}function Tu(c){function d(R,B,U,ee){let Q=R[ee++];if(Q==="__proto__")return!0;const fe=Number.isFinite(+Q),Ie=ee>=R.length;return Q=!Q&&e.isArray(U)?U.length:Q,Ie?(e.hasOwnProp(U,Q)?U[Q]=[U[Q],B]:U[Q]=B,!fe):((!U[Q]||!e.isObject(U[Q]))&&(U[Q]=[]),d(R,B,U[Q],ee)&&e.isArray(U[Q])&&(U[Q]=Yc(U[Q])),!fe)}if(e.isFormData(c)&&e.isFunction(c.entries)){const R={};return e.forEachEntry(c,(B,U)=>{d(We(B),U,R,0)}),R}return null}function Qc(c,d,R){if(e.isString(c))try{return(d||JSON.parse)(c),e.trim(c)}catch(B){if(B.name!=="SyntaxError")throw B}return(R||JSON.stringify)(c)}const ut={transitional:Sr,adapter:["xhr","http","fetch"],transformRequest:[function(d,R){const B=R.getContentType()||"",U=B.indexOf("application/json")>-1,ee=e.isObject(d);if(ee&&e.isHTMLForm(d)&&(d=new FormData(d)),e.isFormData(d))return U?JSON.stringify(Tu(d)):d;if(e.isArrayBuffer(d)||e.isBuffer(d)||e.isStream(d)||e.isFile(d)||e.isBlob(d)||e.isReadableStream(d))return d;if(e.isArrayBufferView(d))return d.buffer;if(e.isURLSearchParams(d))return R.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();let fe;if(ee){if(B.indexOf("application/x-www-form-urlencoded")>-1)return er(d,this.formSerializer).toString();if((fe=e.isFileList(d))||B.indexOf("multipart/form-data")>-1){const Ie=this.env&&this.env.FormData;return ke(fe?{"files[]":d}:d,Ie&&new Ie,this.formSerializer)}}return ee||U?(R.setContentType("application/json",!1),Qc(d)):d}],transformResponse:[function(d){const R=this.transitional||ut.transitional,B=R&&R.forcedJSONParsing,U=this.responseType==="json";if(e.isResponse(d)||e.isReadableStream(d))return d;if(d&&e.isString(d)&&(B&&!this.responseType||U)){const Q=!(R&&R.silentJSONParsing)&&U;try{return JSON.parse(d,this.parseReviver)}catch(fe){if(Q)throw fe.name==="SyntaxError"?n.from(fe,n.ERR_BAD_RESPONSE,this,null,this.response):fe}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};e.forEach(["delete","get","head","post","put","patch"],c=>{ut.headers[c]={}});const Zc=e.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 el=c=>{const d={};let R,B,U;return c&&c.split(`
`).forEach(function(Q){U=Q.indexOf(":"),R=Q.substring(0,U).trim().toLowerCase(),B=Q.substring(U+1).trim(),!(!R||d[R]&&Zc[R])&&(R==="set-cookie"?d[R]?d[R].push(B):d[R]=[B]:d[R]=d[R]?d[R]+", "+B:B)}),d};const Iu=Symbol("internals");function ft(c){return c&&String(c).trim().toLowerCase()}function It(c){return c===!1||c==null?c:e.isArray(c)?c.map(It):String(c).replace(/[\r\n]+$/,"")}function rl(c){const d=Object.create(null),R=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=R.exec(c);)d[B[1]]=B[2];return d}const tl=c=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(c.trim());function go(c,d,R,B,U){if(e.isFunction(B))return B.call(this,d,R);if(U&&(d=R),!!e.isString(d)){if(e.isString(B))return d.indexOf(B)!==-1;if(e.isRegExp(B))return B.test(d)}}function nl(c){return c.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(d,R,B)=>R.toUpperCase()+B)}function il(c,d){const R=e.toCamelCase(" "+d);["get","set","has"].forEach(B=>{Object.defineProperty(c,B+R,{value:function(U,ee,Q){return this[B].call(this,d,U,ee,Q)},configurable:!0})})}class gr{constructor(d){d&&this.set(d)}set(d,R,B){const U=this;function ee(fe,Ie,ve){const we=ft(Ie);if(!we)throw new Error("header name must be a non-empty string");const Be=e.findKey(U,we);(!Be||U[Be]===void 0||ve===!0||ve===void 0&&U[Be]!==!1)&&(U[Be||Ie]=It(fe))}const Q=(fe,Ie)=>e.forEach(fe,(ve,we)=>ee(ve,we,Ie));if(e.isPlainObject(d)||d instanceof this.constructor)Q(d,R);else if(e.isString(d)&&(d=d.trim())&&!tl(d))Q(el(d),R);else if(e.isObject(d)&&e.isIterable(d)){let fe={},Ie,ve;for(const we of d){if(!e.isArray(we))throw TypeError("Object iterator must return a key-value pair");fe[ve=we[0]]=(Ie=fe[ve])?e.isArray(Ie)?[...Ie,we[1]]:[Ie,we[1]]:we[1]}Q(fe,R)}else d!=null&&ee(R,d,B);return this}get(d,R){if(d=ft(d),d){const B=e.findKey(this,d);if(B){const U=this[B];if(!R)return U;if(R===!0)return rl(U);if(e.isFunction(R))return R.call(this,U,B);if(e.isRegExp(R))return R.exec(U);throw new TypeError("parser must be boolean|regexp|function")}}}has(d,R){if(d=ft(d),d){const B=e.findKey(this,d);return!!(B&&this[B]!==void 0&&(!R||go(this,this[B],B,R)))}return!1}delete(d,R){const B=this;let U=!1;function ee(Q){if(Q=ft(Q),Q){const fe=e.findKey(B,Q);fe&&(!R||go(B,B[fe],fe,R))&&(delete B[fe],U=!0)}}return e.isArray(d)?d.forEach(ee):ee(d),U}clear(d){const R=Obj