ioredis-mock
Version:
This library emulates ioredis by performing all operations in-memory.
2 lines • 1.18 MB
JavaScript
var Az=Object.create;var Hg=Object.defineProperty;var Sz=Object.getOwnPropertyDescriptor;var Ez=Object.getOwnPropertyNames;var Oz=Object.getPrototypeOf,Tz=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E6=(e,t)=>{for(var r in t)Hg(e,r,{get:t[r],enumerable:!0})},Rz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ez(t))!Tz.call(e,i)&&i!==r&&Hg(e,i,{get:()=>t[i],enumerable:!(n=Sz(t,i))||n.enumerable});return e};var pt=(e,t,r)=>(r=e!=null?Az(Oz(e)):{},Rz(t||!e||!e.__esModule?Hg(r,"default",{value:e,enumerable:!0}):r,e));var T6=U((t8e,O6)=>{x();O6.exports=O||Nz;var wu=window.performance||{},Iz=wu.now||wu.mozNow||wu.msNow||wu.oNow||wu.webkitNow||function(){return new Date().getTime()};function Nz(e){var t=Iz.call(wu)*.001,r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r=r-e[0],n=n-e[1],n<0&&(r--,n+=1e9)),[r,n]}});var N6=U(fd=>{"use strict";x();fd.byteLength=Cz;fd.toByteArray=Pz;fd.fromByteArray=Fz;var $i=[],ai=[],Bz=typeof Uint8Array<"u"?Uint8Array:Array,Lg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ho=0,R6=Lg.length;Ho<R6;++Ho)$i[Ho]=Lg[Ho],ai[Lg.charCodeAt(Ho)]=Ho;var Ho,R6;ai["-".charCodeAt(0)]=62;ai["_".charCodeAt(0)]=63;function I6(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Cz(e){var t=I6(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Uz(e,t,r){return(t+r)*3/4-r}function Pz(e){var t,r=I6(e),n=r[0],i=r[1],u=new Bz(Uz(e,n,i)),p=0,v=i>0?n-4:n,_;for(_=0;_<v;_+=4)t=ai[e.charCodeAt(_)]<<18|ai[e.charCodeAt(_+1)]<<12|ai[e.charCodeAt(_+2)]<<6|ai[e.charCodeAt(_+3)],u[p++]=t>>16&255,u[p++]=t>>8&255,u[p++]=t&255;return i===2&&(t=ai[e.charCodeAt(_)]<<2|ai[e.charCodeAt(_+1)]>>4,u[p++]=t&255),i===1&&(t=ai[e.charCodeAt(_)]<<10|ai[e.charCodeAt(_+1)]<<4|ai[e.charCodeAt(_+2)]>>2,u[p++]=t>>8&255,u[p++]=t&255),u}function qz(e){return $i[e>>18&63]+$i[e>>12&63]+$i[e>>6&63]+$i[e&63]}function Dz(e,t,r){for(var n,i=[],u=t;u<r;u+=3)n=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(e[u+2]&255),i.push(qz(n));return i.join("")}function Fz(e){for(var t,r=e.length,n=r%3,i=[],u=16383,p=0,v=r-n;p<v;p+=u)i.push(Dz(e,p,p+u>v?v:p+u));return n===1?(t=e[r-1],i.push($i[t>>2]+$i[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push($i[t>>10]+$i[t>>4&63]+$i[t<<2&63]+"=")),i.join("")}});var B6=U(Vg=>{x();Vg.read=function(e,t,r,n,i){var u,p,v=i*8-n-1,_=(1<<v)-1,w=_>>1,k=-7,S=r?i-1:0,T=r?-1:1,I=e[t+S];for(S+=T,u=I&(1<<-k)-1,I>>=-k,k+=v;k>0;u=u*256+e[t+S],S+=T,k-=8);for(p=u&(1<<-k)-1,u>>=-k,k+=n;k>0;p=p*256+e[t+S],S+=T,k-=8);if(u===0)u=1-w;else{if(u===_)return p?NaN:(I?-1:1)*(1/0);p=p+Math.pow(2,n),u=u-w}return(I?-1:1)*p*Math.pow(2,u-n)};Vg.write=function(e,t,r,n,i,u){var p,v,_,w=u*8-i-1,k=(1<<w)-1,S=k>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=n?0:u-1,C=n?1:-1,L=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(v=isNaN(t)?1:0,p=k):(p=Math.floor(Math.log(t)/Math.LN2),t*(_=Math.pow(2,-p))<1&&(p--,_*=2),p+S>=1?t+=T/_:t+=T*Math.pow(2,1-S),t*_>=2&&(p++,_/=2),p+S>=k?(v=0,p=k):p+S>=1?(v=(t*_-1)*Math.pow(2,i),p=p+S):(v=t*Math.pow(2,S-1)*Math.pow(2,i),p=0));i>=8;e[r+I]=v&255,I+=C,v/=256,i-=8);for(p=p<<i|v,w+=i;w>0;e[r+I]=p&255,I+=C,p/=256,w-=8);e[r+I-C]|=L*128}});var Ri=U(Su=>{"use strict";x();var jg=N6(),Mu=B6(),C6=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Su.Buffer=Me;Su.SlowBuffer=Vz;Su.INSPECT_MAX_BYTES=50;var ud=2147483647;Su.kMaxLength=ud;Me.TYPED_ARRAY_SUPPORT=Kz();!Me.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 Kz(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(Me.prototype,"parent",{enumerable:!0,get:function(){if(!!Me.isBuffer(this))return this.buffer}});Object.defineProperty(Me.prototype,"offset",{enumerable:!0,get:function(){if(!!Me.isBuffer(this))return this.byteOffset}});function qs(e){if(e>ud)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Me.prototype),t}function Me(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Yg(e)}return D6(e,t,r)}Me.poolSize=8192;function D6(e,t,r){if(typeof e=="string")return zz(e,t);if(ArrayBuffer.isView(e))return Hz(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Qi(e,ArrayBuffer)||e&&Qi(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Qi(e,SharedArrayBuffer)||e&&Qi(e.buffer,SharedArrayBuffer)))return Wg(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Me.from(n,t,r);let i=Lz(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Me.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Me.from=function(e,t,r){return D6(e,t,r)};Object.setPrototypeOf(Me.prototype,Uint8Array.prototype);Object.setPrototypeOf(Me,Uint8Array);function F6(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gz(e,t,r){return F6(e),e<=0?qs(e):t!==void 0?typeof r=="string"?qs(e).fill(t,r):qs(e).fill(t):qs(e)}Me.alloc=function(e,t,r){return Gz(e,t,r)};function Yg(e){return F6(e),qs(e<0?0:Jg(e)|0)}Me.allocUnsafe=function(e){return Yg(e)};Me.allocUnsafeSlow=function(e){return Yg(e)};function zz(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Me.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=K6(e,t)|0,n=qs(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Xg(e){let t=e.length<0?0:Jg(e.length)|0,r=qs(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Hz(e){if(Qi(e,Uint8Array)){let t=new Uint8Array(e);return Wg(t.buffer,t.byteOffset,t.byteLength)}return Xg(e)}function Wg(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,Me.prototype),n}function Lz(e){if(Me.isBuffer(e)){let t=Jg(e.length)|0,r=qs(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Qg(e.length)?qs(0):Xg(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Xg(e.data)}function Jg(e){if(e>=ud)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ud.toString(16)+" bytes");return e|0}function Vz(e){return+e!=e&&(e=0),Me.alloc(+e)}Me.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Me.prototype};Me.compare=function(t,r){if(Qi(t,Uint8Array)&&(t=Me.from(t,t.offset,t.byteLength)),Qi(r,Uint8Array)&&(r=Me.from(r,r.offset,r.byteLength)),!Me.isBuffer(t)||!Me.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let u=0,p=Math.min(n,i);u<p;++u)if(t[u]!==r[u]){n=t[u],i=r[u];break}return n<i?-1:i<n?1:0};Me.isEncoding=function(t){switch(String(t).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}};Me.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Me.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=Me.allocUnsafe(r),u=0;for(n=0;n<t.length;++n){let p=t[n];if(Qi(p,Uint8Array))u+p.length>i.length?(Me.isBuffer(p)||(p=Me.from(p)),p.copy(i,u)):Uint8Array.prototype.set.call(i,p,u);else if(Me.isBuffer(p))p.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=p.length}return i};function K6(e,t){if(Me.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Qi(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Zg(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Z6(e).length;default:if(i)return n?-1:Zg(e).length;t=(""+t).toLowerCase(),i=!0}}Me.byteLength=K6;function jz(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return rH(this,t,r);case"utf8":case"utf-8":return z6(this,t,r);case"ascii":return eH(this,t,r);case"latin1":case"binary":return tH(this,t,r);case"base64":return $z(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nH(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Me.prototype._isBuffer=!0;function Lo(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}Me.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Lo(this,r,r+1);return this};Me.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Lo(this,r,r+3),Lo(this,r+1,r+2);return this};Me.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Lo(this,r,r+7),Lo(this,r+1,r+6),Lo(this,r+2,r+5),Lo(this,r+3,r+4);return this};Me.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?z6(this,0,t):jz.apply(this,arguments)};Me.prototype.toLocaleString=Me.prototype.toString;Me.prototype.equals=function(t){if(!Me.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Me.compare(this,t)===0};Me.prototype.inspect=function(){let t="",r=Su.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};C6&&(Me.prototype[C6]=Me.prototype.inspect);Me.prototype.compare=function(t,r,n,i,u){if(Qi(t,Uint8Array)&&(t=Me.from(t,t.offset,t.byteLength)),!Me.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),r<0||n>t.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&r>=n)return 0;if(i>=u)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,u>>>=0,this===t)return 0;let p=u-i,v=n-r,_=Math.min(p,v),w=this.slice(i,u),k=t.slice(r,n);for(let S=0;S<_;++S)if(w[S]!==k[S]){p=w[S],v=k[S];break}return p<v?-1:v<p?1:0};function G6(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Qg(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=Me.from(t,n)),Me.isBuffer(t))return t.length===0?-1:U6(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):U6(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function U6(e,t,r,n,i){let u=1,p=e.length,v=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;u=2,p/=2,v/=2,r/=2}function _(k,S){return u===1?k[S]:k.readUInt16BE(S*u)}let w;if(i){let k=-1;for(w=r;w<p;w++)if(_(e,w)===_(t,k===-1?0:w-k)){if(k===-1&&(k=w),w-k+1===v)return k*u}else k!==-1&&(w-=w-k),k=-1}else for(r+v>p&&(r=p-v),w=r;w>=0;w--){let k=!0;for(let S=0;S<v;S++)if(_(e,w+S)!==_(t,S)){k=!1;break}if(k)return w}return-1}Me.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Me.prototype.indexOf=function(t,r,n){return G6(this,t,r,n,!0)};Me.prototype.lastIndexOf=function(t,r,n){return G6(this,t,r,n,!1)};function Xz(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let u=t.length;n>u/2&&(n=u/2);let p;for(p=0;p<n;++p){let v=parseInt(t.substr(p*2,2),16);if(Qg(v))return p;e[r+p]=v}return p}function Wz(e,t,r,n){return ld(Zg(t,e.length-r),e,r,n)}function Zz(e,t,r,n){return ld(oH(t),e,r,n)}function Yz(e,t,r,n){return ld(Z6(t),e,r,n)}function Jz(e,t,r,n){return ld(fH(t,e.length-r),e,r,n)}Me.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-r;if((n===void 0||n>u)&&(n=u),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let p=!1;for(;;)switch(i){case"hex":return Xz(this,t,r,n);case"utf8":case"utf-8":return Wz(this,t,r,n);case"ascii":case"latin1":case"binary":return Zz(this,t,r,n);case"base64":return Yz(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jz(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};Me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $z(e,t,r){return t===0&&r===e.length?jg.fromByteArray(e):jg.fromByteArray(e.slice(t,r))}function z6(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let u=e[i],p=null,v=u>239?4:u>223?3:u>191?2:1;if(i+v<=r){let _,w,k,S;switch(v){case 1:u<128&&(p=u);break;case 2:_=e[i+1],(_&192)===128&&(S=(u&31)<<6|_&63,S>127&&(p=S));break;case 3:_=e[i+1],w=e[i+2],(_&192)===128&&(w&192)===128&&(S=(u&15)<<12|(_&63)<<6|w&63,S>2047&&(S<55296||S>57343)&&(p=S));break;case 4:_=e[i+1],w=e[i+2],k=e[i+3],(_&192)===128&&(w&192)===128&&(k&192)===128&&(S=(u&15)<<18|(_&63)<<12|(w&63)<<6|k&63,S>65535&&S<1114112&&(p=S))}}p===null?(p=65533,v=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=v}return Qz(n)}var P6=4096;function Qz(e){let t=e.length;if(t<=P6)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P6));return r}function eH(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function tH(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function rH(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let u=t;u<r;++u)i+=uH[e[u]];return i}function nH(e,t,r){let n=e.slice(t,r),i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}Me.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,Me.prototype),i};function Lr(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Me.prototype.readUintLE=Me.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Lr(t,r,this.length);let i=this[t],u=1,p=0;for(;++p<r&&(u*=256);)i+=this[t+p]*u;return i};Me.prototype.readUintBE=Me.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Lr(t,r,this.length);let i=this[t+--r],u=1;for(;r>0&&(u*=256);)i+=this[t+--r]*u;return i};Me.prototype.readUint8=Me.prototype.readUInt8=function(t,r){return t=t>>>0,r||Lr(t,1,this.length),this[t]};Me.prototype.readUint16LE=Me.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Lr(t,2,this.length),this[t]|this[t+1]<<8};Me.prototype.readUint16BE=Me.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Lr(t,2,this.length),this[t]<<8|this[t+1]};Me.prototype.readUint32LE=Me.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Lr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Me.prototype.readUint32BE=Me.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Lr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Me.prototype.readBigUInt64LE=qa(function(t){t=t>>>0,Au(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,u=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))});Me.prototype.readBigUInt64BE=qa(function(t){t=t>>>0,Au(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],u=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(u)});Me.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Lr(t,r,this.length);let i=this[t],u=1,p=0;for(;++p<r&&(u*=256);)i+=this[t+p]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*r)),i};Me.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Lr(t,r,this.length);let i=r,u=1,p=this[t+--i];for(;i>0&&(u*=256);)p+=this[t+--i]*u;return u*=128,p>=u&&(p-=Math.pow(2,8*r)),p};Me.prototype.readInt8=function(t,r){return t=t>>>0,r||Lr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Me.prototype.readInt16LE=function(t,r){t=t>>>0,r||Lr(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Me.prototype.readInt16BE=function(t,r){t=t>>>0,r||Lr(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Me.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Lr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Me.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Lr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Me.prototype.readBigInt64LE=qa(function(t){t=t>>>0,Au(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});Me.prototype.readBigInt64BE=qa(function(t){t=t>>>0,Au(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});Me.prototype.readFloatLE=function(t,r){return t=t>>>0,r||Lr(t,4,this.length),Mu.read(this,t,!0,23,4)};Me.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Lr(t,4,this.length),Mu.read(this,t,!1,23,4)};Me.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Lr(t,8,this.length),Mu.read(this,t,!0,52,8)};Me.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Lr(t,8,this.length),Mu.read(this,t,!1,52,8)};function Tn(e,t,r,n,i,u){if(!Me.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<u)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Me.prototype.writeUintLE=Me.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let v=Math.pow(2,8*n)-1;Tn(this,t,r,n,v,0)}let u=1,p=0;for(this[r]=t&255;++p<n&&(u*=256);)this[r+p]=t/u&255;return r+n};Me.prototype.writeUintBE=Me.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let v=Math.pow(2,8*n)-1;Tn(this,t,r,n,v,0)}let u=n-1,p=1;for(this[r+u]=t&255;--u>=0&&(p*=256);)this[r+u]=t/p&255;return r+n};Me.prototype.writeUint8=Me.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,1,255,0),this[r]=t&255,r+1};Me.prototype.writeUint16LE=Me.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Me.prototype.writeUint16BE=Me.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Me.prototype.writeUint32LE=Me.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Me.prototype.writeUint32BE=Me.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function H6(e,t,r,n,i){W6(t,n,i,e,r,7);let u=Number(t&BigInt(4294967295));e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u;let p=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=p,p=p>>8,e[r++]=p,p=p>>8,e[r++]=p,p=p>>8,e[r++]=p,r}function L6(e,t,r,n,i){W6(t,n,i,e,r,7);let u=Number(t&BigInt(4294967295));e[r+7]=u,u=u>>8,e[r+6]=u,u=u>>8,e[r+5]=u,u=u>>8,e[r+4]=u;let p=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=p,p=p>>8,e[r+2]=p,p=p>>8,e[r+1]=p,p=p>>8,e[r]=p,r+8}Me.prototype.writeBigUInt64LE=qa(function(t,r=0){return H6(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Me.prototype.writeBigUInt64BE=qa(function(t,r=0){return L6(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Me.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let _=Math.pow(2,8*n-1);Tn(this,t,r,n,_-1,-_)}let u=0,p=1,v=0;for(this[r]=t&255;++u<n&&(p*=256);)t<0&&v===0&&this[r+u-1]!==0&&(v=1),this[r+u]=(t/p>>0)-v&255;return r+n};Me.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let _=Math.pow(2,8*n-1);Tn(this,t,r,n,_-1,-_)}let u=n-1,p=1,v=0;for(this[r+u]=t&255;--u>=0&&(p*=256);)t<0&&v===0&&this[r+u+1]!==0&&(v=1),this[r+u]=(t/p>>0)-v&255;return r+n};Me.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Me.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Me.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Me.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Me.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Tn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Me.prototype.writeBigInt64LE=qa(function(t,r=0){return H6(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Me.prototype.writeBigInt64BE=qa(function(t,r=0){return L6(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function V6(e,t,r,n,i,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j6(e,t,r,n,i){return t=+t,r=r>>>0,i||V6(e,t,r,4,34028234663852886e22,-34028234663852886e22),Mu.write(e,t,r,n,23,4),r+4}Me.prototype.writeFloatLE=function(t,r,n){return j6(this,t,r,!0,n)};Me.prototype.writeFloatBE=function(t,r,n){return j6(this,t,r,!1,n)};function X6(e,t,r,n,i){return t=+t,r=r>>>0,i||V6(e,t,r,8,17976931348623157e292,-17976931348623157e292),Mu.write(e,t,r,n,52,8),r+8}Me.prototype.writeDoubleLE=function(t,r,n){return X6(this,t,r,!0,n)};Me.prototype.writeDoubleBE=function(t,r,n){return X6(this,t,r,!1,n)};Me.prototype.copy=function(t,r,n,i){if(!Me.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let u=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),u};Me.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Me.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let p=t.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(t=p)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let u;if(typeof t=="number")for(u=r;u<n;++u)this[u]=t;else{let p=Me.isBuffer(t)?t:Me.from(t,i),v=p.length;if(v===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(u=0;u<n-r;++u)this[u+r]=p[u%v]}return this};var ku={};function $g(e,t,r){ku[e]=class extends r{constructor(){super();Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}$g("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);$g("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);$g("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q6(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q6(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function q6(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function iH(e,t,r){Au(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&D0(t,e.length-(r+1))}function W6(e,t,r,n,i,u){if(e>r||e<t){let p=typeof t=="bigint"?"n":"",v;throw u>3?t===0||t===BigInt(0)?v=`>= 0${p} and < 2${p} ** ${(u+1)*8}${p}`:v=`>= -(2${p} ** ${(u+1)*8-1}${p}) and < 2 ** ${(u+1)*8-1}${p}`:v=`>= ${t}${p} and <= ${r}${p}`,new ku.ERR_OUT_OF_RANGE("value",v,e)}iH(n,i,u)}function Au(e,t){if(typeof e!="number")throw new ku.ERR_INVALID_ARG_TYPE(t,"number",e)}function D0(e,t,r){throw Math.floor(e)!==e?(Au(e,r),new ku.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new ku.ERR_BUFFER_OUT_OF_BOUNDS:new ku.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var sH=/[^+/0-9A-Za-z-_]/g;function aH(e){if(e=e.split("=")[0],e=e.trim().replace(sH,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Zg(e,t){t=t||1/0;let r,n=e.length,i=null,u=[];for(let p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&u.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&u.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;u.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return u}function oH(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function fH(e,t){let r,n,i,u=[];for(let p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,u.push(i),u.push(n);return u}function Z6(e){return jg.toByteArray(aH(e))}function ld(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Qi(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Qg(e){return e!==e}var uH=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function qa(e){return typeof BigInt>"u"?lH:e}function lH(){throw new Error("BigInt not supported")}});function E(e){Promise.resolve().then(()=>{e()})}var Y6,J6,O,x=F(()=>{Y6=pt(T6()),J6=pt(Ri());window.Buffer=J6.Buffer;O=Y6.default});var Ou=U((o8e,ey)=>{"use strict";x();var Eu=typeof Reflect=="object"?Reflect:null,$6=Eu&&typeof Eu.apply=="function"?Eu.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},cd;Eu&&typeof Eu.ownKeys=="function"?cd=Eu.ownKeys:Object.getOwnPropertySymbols?cd=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:cd=function(t){return Object.getOwnPropertyNames(t)};function cH(e){console&&console.warn&&console.warn(e)}var ek=Number.isNaN||function(t){return t!==t};function vt(){vt.init.call(this)}ey.exports=vt;ey.exports.once=mH;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var Q6=10;function hd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(vt,"defaultMaxListeners",{enumerable:!0,get:function(){return Q6},set:function(e){if(typeof e!="number"||e<0||ek(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Q6=e}});vt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};vt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ek(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function tk(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return tk(this)};vt.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",u=this._events;if(u!==void 0)i=i&&u.error===void 0;else if(!i)return!1;if(i){var p;if(r.length>0&&(p=r[0]),p instanceof Error)throw p;var v=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw v.context=p,v}var _=u[t];if(_===void 0)return!1;if(typeof _=="function")$6(_,this,r);else for(var w=_.length,k=ak(_,w),n=0;n<w;++n)$6(k[n],this,r);return!0};function rk(e,t,r,n){var i,u,p;if(hd(r),u=e._events,u===void 0?(u=e._events=Object.create(null),e._eventsCount=0):(u.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),u=e._events),p=u[t]),p===void 0)p=u[t]=r,++e._eventsCount;else if(typeof p=="function"?p=u[t]=n?[r,p]:[p,r]:n?p.unshift(r):p.push(r),i=tk(e),i>0&&p.length>i&&!p.warned){p.warned=!0;var v=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");v.name="MaxListenersExceededWarning",v.emitter=e,v.type=t,v.count=p.length,cH(v)}return e}vt.prototype.addListener=function(t,r){return rk(this,t,r,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(t,r){return rk(this,t,r,!0)};function hH(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function nk(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=hH.bind(n);return i.listener=r,n.wrapFn=i,i}vt.prototype.once=function(t,r){return hd(r),this.on(t,nk(this,t,r)),this};vt.prototype.prependOnceListener=function(t,r){return hd(r),this.prependListener(t,nk(this,t,r)),this};vt.prototype.removeListener=function(t,r){var n,i,u,p,v;if(hd(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(u=-1,p=n.length-1;p>=0;p--)if(n[p]===r||n[p].listener===r){v=n[p].listener,u=p;break}if(u<0)return this;u===0?n.shift():dH(n,u),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,v||r)}return this};vt.prototype.off=vt.prototype.removeListener;vt.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var u=Object.keys(n),p;for(i=0;i<u.length;++i)p=u[i],p!=="removeListener"&&this.removeAllListeners(p);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function ik(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?pH(i):ak(i,i.length)}vt.prototype.listeners=function(t){return ik(this,t,!0)};vt.prototype.rawListeners=function(t){return ik(this,t,!1)};vt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):sk.call(e,t)};vt.prototype.listenerCount=sk;function sk(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}vt.prototype.eventNames=function(){return this._eventsCount>0?cd(this._events):[]};function ak(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function dH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function pH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function mH(e,t){return new Promise(function(r,n){function i(p){e.removeListener(t,u),n(p)}function u(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}ok(e,t,u,{once:!0}),t!=="error"&&gH(e,i,{once:!0})})}function gH(e,t,r){typeof e.on=="function"&&ok(e,"error",t,r)}function ok(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(u){n.once&&e.removeEventListener(t,i),r(u)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var fk=U((Tu,Ru)=>{x();(function(e){var t=typeof Tu=="object"&&Tu&&!Tu.nodeType&&Tu,r=typeof Ru=="object"&&Ru&&!Ru.nodeType&&Ru,n=typeof window=="object"&&window;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,u=2147483647,p=36,v=1,_=26,w=38,k=700,S=72,T=128,I="-",C=/^xn--/,L=/[^\x20-\x7E]/,Se=/[\x2E\u3002\uFF0E\uFF61]/g,K={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=p-v,j=Math.floor,Ie=String.fromCharCode,Fe;function Ce(h){throw RangeError(K[h])}function He(h,a){for(var d=h.length,M=[];d--;)M[d]=a(h[d]);return M}function z(h,a){var d=h.split("@"),M="";d.length>1&&(M=d[0]+"@",h=d[1]),h=h.replace(Se,".");var b=h.split("."),A=He(b,a).join(".");return M+A}function Ne(h){for(var a=[],d=0,M=h.length,b,A;d<M;)b=h.charCodeAt(d++),b>=55296&&b<=56319&&d<M?(A=h.charCodeAt(d++),(A&64512)==56320?a.push(((b&1023)<<10)+(A&1023)+65536):(a.push(b),d--)):a.push(b);return a}function g(h){return He(h,function(a){var d="";return a>65535&&(a-=65536,d+=Ie(a>>>10&1023|55296),a=56320|a&1023),d+=Ie(a),d}).join("")}function s(h){return h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:p}function o(h,a){return h+22+75*(h<26)-((a!=0)<<5)}function l(h,a,d){var M=0;for(h=d?j(h/k):h>>1,h+=j(h/a);h>Ae*_>>1;M+=p)h=j(h/Ae);return j(M+(Ae+1)*h/(h+w))}function f(h){var a=[],d=h.length,M,b=0,A=T,R=S,N,B,Oe,P,q,it,G,H,yt;for(N=h.lastIndexOf(I),N<0&&(N=0),B=0;B<N;++B)h.charCodeAt(B)>=128&&Ce("not-basic"),a.push(h.charCodeAt(B));for(Oe=N>0?N+1:0;Oe<d;){for(P=b,q=1,it=p;Oe>=d&&Ce("invalid-input"),G=s(h.charCodeAt(Oe++)),(G>=p||G>j((u-b)/q))&&Ce("overflow"),b+=G*q,H=it<=R?v:it>=R+_?_:it-R,!(G<H);it+=p)yt=p-H,q>j(u/yt)&&Ce("overflow"),q*=yt;M=a.length+1,R=l(b-P,M,P==0),j(b/M)>u-A&&Ce("overflow"),A+=j(b/M),b%=M,a.splice(b++,0,A)}return g(a)}function c(h){var a,d,M,b,A,R,N,B,Oe,P,q,it=[],G,H,yt,V;for(h=Ne(h),G=h.length,a=T,d=0,A=S,R=0;R<G;++R)q=h[R],q<128&&it.push(Ie(q));for(M=b=it.length,b&&it.push(I);M<G;){for(N=u,R=0;R<G;++R)q=h[R],q>=a&&q<N&&(N=q);for(H=M+1,N-a>j((u-d)/H)&&Ce("overflow"),d+=(N-a)*H,a=N,R=0;R<G;++R)if(q=h[R],q<a&&++d>u&&Ce("overflow"),q==a){for(B=d,Oe=p;P=Oe<=A?v:Oe>=A+_?_:Oe-A,!(B<P);Oe+=p)V=B-P,yt=p-P,it.push(Ie(o(P+V%yt,0))),B=j(V/yt);it.push(Ie(o(B,0))),A=l(d,H,M==b),d=0,++M}++d,++a}return it.join("")}function m(h){return z(h,function(a){return C.test(a)?f(a.slice(4).toLowerCase()):a})}function y(h){return z(h,function(a){return L.test(a)?"xn--"+c(a):a})}if(i={version:"1.3.2",ucs2:{decode:Ne,encode:g},decode:f,encode:c,toASCII:y,toUnicode:m},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(Ru.exports==t)r.exports=i;else for(Fe in i)i.hasOwnProperty(Fe)&&(t[Fe]=i[Fe]);else e.punycode=i})(Tu)});var lk=U((f8e,uk)=>{"use strict";x();uk.exports={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}});var hk=U((u8e,ck)=>{"use strict";x();function yH(e,t){return Object.prototype.hasOwnProperty.call(e,t)}ck.exports=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if(typeof e!="string"||e.length===0)return i;var u=/\+/g;e=e.split(t);var p=1e3;n&&typeof n.maxKeys=="number"&&(p=n.maxKeys);var v=e.length;p>0&&v>p&&(v=p);for(var _=0;_<v;++_){var w=e[_].replace(u,"%20"),k=w.indexOf(r),S,T,I,C;k>=0?(S=w.substr(0,k),T=w.substr(k+1)):(S=w,T=""),I=decodeURIComponent(S),C=decodeURIComponent(T),yH(i,I)?Array.isArray(i[I])?i[I].push(C):i[I]=[i[I],C]:i[I]=C}return i}});var pk=U((l8e,dk)=>{"use strict";x();var F0=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};dk.exports=function(e,t,r,n){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var u=encodeURIComponent(F0(i))+r;return Array.isArray(e[i])?e[i].map(function(p){return u+encodeURIComponent(F0(p))}).join(t):u+encodeURIComponent(F0(e[i]))}).join(t):n?encodeURIComponent(F0(n))+r+encodeURIComponent(F0(e)):""}});var mk=U(K0=>{"use strict";x();K0.decode=K0.parse=hk();K0.encode=K0.stringify=pk()});var _k=U(Nu=>{"use strict";x();var vH=fk(),es=lk();Nu.parse=G0;Nu.resolve=OH;Nu.resolveObject=TH;Nu.format=EH;Nu.Url=oi;function oi(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var _H=/^([a-z0-9.+-]+:)/i,bH=/:[0-9]*$/,xH=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wH=["<",">",'"',"`"," ","\r",`
`," "],kH=["{","}","|","\\","^","`"].concat(wH),ty=["'"].concat(kH),gk=["%","/","?",";","#"].concat(ty),yk=["/","?","#"],MH=255,vk=/^[+a-z0-9A-Z_-]{0,63}$/,AH=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,SH={javascript:!0,"javascript:":!0},ry={javascript:!0,"javascript:":!0},Iu={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ny=mk();function G0(e,t,r){if(e&&es.isObject(e)&&e instanceof oi)return e;var n=new oi;return n.parse(e,t,r),n}oi.prototype.parse=function(e,t,r){if(!es.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",u=e.split(i),p=/\\/g;u[0]=u[0].replace(p,"/"),e=u.join(i);var v=e;if(v=v.trim(),!r&&e.split("#").length===1){var _=xH.exec(v);if(_)return this.path=v,this.href=v,this.pathname=_[1],_[2]?(this.search=_[2],t?this.query=ny.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=_H.exec(v);if(w){w=w[0];var k=w.toLowerCase();this.protocol=k,v=v.substr(w.length)}if(r||w||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var S=v.substr(0,2)==="//";S&&!(w&&ry[w])&&(v=v.substr(2),this.slashes=!0)}if(!ry[w]&&(S||w&&!Iu[w])){for(var T=-1,I=0;I<yk.length;I++){var C=v.indexOf(yk[I]);C!==-1&&(T===-1||C<T)&&(T=C)}var L,Se;T===-1?Se=v.lastIndexOf("@"):Se=v.lastIndexOf("@",T),Se!==-1&&(L=v.slice(0,Se),v=v.slice(Se+1),this.auth=decodeURIComponent(L)),T=-1;for(var I=0;I<gk.length;I++){var C=v.indexOf(gk[I]);C!==-1&&(T===-1||C<T)&&(T=C)}T===-1&&(T=v.length),this.host=v.slice(0,T),v=v.slice(T),this.parseHost(),this.hostname=this.hostname||"";var K=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!K)for(var Ae=this.hostname.split(/\./),I=0,j=Ae.length;I<j;I++){var Ie=Ae[I];if(!!Ie&&!Ie.match(vk)){for(var Fe="",Ce=0,He=Ie.length;Ce<He;Ce++)Ie.charCodeAt(Ce)>127?Fe+="x":Fe+=Ie[Ce];if(!Fe.match(vk)){var z=Ae.slice(0,I),Ne=Ae.slice(I+1),g=Ie.match(AH);g&&(z.push(g[1]),Ne.unshift(g[2])),Ne.length&&(v="/"+Ne.join(".")+v),this.hostname=z.join(".");break}}}this.hostname.length>MH?this.hostname="":this.hostname=this.hostname.toLowerCase(),K||(this.hostname=vH.toASCII(this.hostname));var s=this.port?":"+this.port:"",o=this.hostname||"";this.host=o+s,this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),v[0]!=="/"&&(v="/"+v))}if(!SH[k])for(var I=0,j=ty.length;I<j;I++){var l=ty[I];if(v.indexOf(l)!==-1){var f=encodeURIComponent(l);f===l&&(f=escape(l)),v=v.split(l).join(f)}}var c=v.indexOf("#");c!==-1&&(this.hash=v.substr(c),v=v.slice(0,c));var m=v.indexOf("?");if(m!==-1?(this.search=v.substr(m),this.query=v.substr(m+1),t&&(this.query=ny.parse(this.query)),v=v.slice(0,m)):t&&(this.search="",this.query={}),v&&(this.pathname=v),Iu[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var s=this.pathname||"",y=this.search||"";this.path=s+y}return this.href=this.format(),this};function EH(e){return es.isString(e)&&(e=G0(e)),e instanceof oi?e.format():oi.prototype.format.call(e)}oi.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,u="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&es.isObject(this.query)&&Object.keys(this.query).length&&(u=ny.stringify(this.query));var p=this.search||u&&"?"+u||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Iu[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),p&&p.charAt(0)!=="?"&&(p="?"+p),r=r.replace(/[?#]/g,function(v){return encodeURIComponent(v)}),p=p.replace("#","%23"),t+i+r+p+n};function OH(e,t){return G0(e,!1,!0).resolve(t)}oi.prototype.resolve=function(e){return this.resolveObject(G0(e,!1,!0)).format()};function TH(e,t){return e?G0(e,!1,!0).resolveObject(t):t}oi.prototype.resolveObject=function(e){if(es.isString(e)){var t=new oi;t.parse(e,!1,!0),e=t}for(var r=new oi,n=Object.keys(this),i=0;i<n.length;i++){var u=n[i];r[u]=this[u]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var p=Object.keys(e),v=0;v<p.length;v++){var _=p[v];_!=="protocol"&&(r[_]=e[_])}return Iu[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Iu[e.protocol]){for(var w=Object.keys(e),k=0;k<w.length;k++){var S=w[k];r[S]=e[S]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!ry[e.protocol]){for(var j=(e.pathname||"").split("/");j.length&&!(e.host=j.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),j[0]!==""&&j.unshift(""),j.length<2&&j.unshift(""),r.pathname=j.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var T=r.pathname||"",I=r.search||"";r.path=T+I}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var C=r.pathname&&r.pathname.charAt(0)==="/",L=e.host||e.pathname&&e.pathname.charAt(0)==="/",Se=L||C||r.host&&e.pathname,K=Se,Ae=r.pathname&&r.pathname.split("/")||[],j=e.pathname&&e.pathname.split("/")||[],Ie=r.protocol&&!Iu[r.protocol];if(Ie&&(r.hostname="",r.port=null,r.host&&(Ae[0]===""?Ae[0]=r.host:Ae.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(j[0]===""?j[0]=e.host:j.unshift(e.host)),e.host=null),Se=Se&&(j[0]===""||Ae[0]==="")),L)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,Ae=j;else if(j.length)Ae||(Ae=[]),Ae.pop(),Ae=Ae.concat(j),r.search=e.search,r.query=e.query;else if(!es.isNullOrUndefined(e.search)){if(Ie){r.hostname=r.host=Ae.shift();var Fe=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;Fe&&(r.auth=Fe.shift(),r.host=r.hostname=Fe.shift())}return r.search=e.search,r.query=e.query,(!es.isNull(r.pathname)||!es.isNull(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!Ae.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var Ce=Ae.slice(-1)[0],He=(r.host||e.host||Ae.length>1)&&(Ce==="."||Ce==="..")||Ce==="",z=0,Ne=Ae.length;Ne>=0;Ne--)Ce=Ae[Ne],Ce==="."?Ae.splice(Ne,1):Ce===".."?(Ae.splice(Ne,1),z++):z&&(Ae.splice(Ne,1),z--);if(!Se&&!K)for(;z--;z)Ae.unshift("..");Se&&Ae[0]!==""&&(!Ae[0]||Ae[0].charAt(0)!=="/")&&Ae.unshift(""),He&&Ae.join("/").substr(-1)!=="/"&&Ae.push("");var g=Ae[0]===""||Ae[0]&&Ae[0].charAt(0)==="/";if(Ie){r.hostname=r.host=g?"":Ae.length?Ae.shift():"";var Fe=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;Fe&&(r.auth=Fe.shift(),r.host=r.hostname=Fe.shift())}return Se=Se||r.host&&Ae.length,Se&&!g&&Ae.unshift(""),Ae.length?r.pathname=Ae.join("/"):(r.pathname=null,r.path=null),(!es.isNull(r.pathname)||!es.isNull(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};oi.prototype.parseHost=function(){var e=this.host,t=bH.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}});var Ek=U((d8e,Sk)=>{x();var xk=9007199254740991,RH="[object Arguments]",IH="[object Function]",NH="[object GeneratorFunction]",BH=/^(?:0|[1-9]\d*)$/;function wk(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function CH(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var z0=Object.prototype,H0=z0.hasOwnProperty,kk=z0.toString,UH=z0.propertyIsEnumerable,bk=Math.max;function PH(e,t){var r=jH(e)||VH(e)?CH(e.length,String):[],n=r.length,i=!!n;for(var u in e)(t||H0.call(e,u))&&!(i&&(u=="length"||Ak(u,n)))&&r.push(u);return r}function qH(e,t,r,n){return e===void 0||iy(e,z0[r])&&!H0.call(n,r)?t:e}function DH(e,t,r){var n=e[t];(!(H0.call(e,t)&&iy(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function FH(e){if(!ay(e))return LH(e);var t=HH(e),r=[];for(var n in e)n=="constructor"&&(t||!H0.call(e,n))||r.push(n);return r}function Mk(e,t){return t=bk(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=bk(r.length-t,0),u=Array(i);++n<i;)u[n]=r[t+n];n=-1;for(var p=Array(t+1);++n<t;)p[n]=r[n];return p[t]=u,wk(e,this,p)}}function KH(e,t,r,n){r||(r={});for(var i=-1,u=t.length;++i<u;){var p=t[i],v=n?n(r[p],e[p],p,r,e):void 0;DH(r,p,v===void 0?e[p]:v)}return r}function GH(e){return Mk(function(t,r){var n=-1,i=r.length,u=i>1?r[i-1]:void 0,p=i>2?r[2]:void 0;for(u=e.length>3&&typeof u=="function"?(i--,u):void 0,p&&zH(r[0],r[1],p)&&(u=i<3?void 0:u,i=1),t=Object(t);++n<i;){var v=r[n];v&&e(t,v,n,u)}return t})}function Ak(e,t){return t=t??xk,!!t&&(typeof e=="number"||BH.test(e))&&e>-1&&e%1==0&&e<t}function zH(e,t,r){if(!ay(r))return!1;var n=typeof t;return(n=="number"?sy(r)&&Ak(t,r.length):n=="string"&&t in r)?iy(r[t],e):!1}function HH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||z0;return e===r}function LH(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function iy(e,t){return e===t||e!==e&&t!==t}function VH(e){return XH(e)&&H0.call(e,"callee")&&(!UH.call(e,"callee")||kk.call(e)==RH)}var jH=Array.isArray;function sy(e){return e!=null&&ZH(e.length)&&!WH(e)}function XH(e){return YH(e)&&sy(e)}function WH(e){var t=ay(e)?kk.call(e):"";return t==IH||t==NH}function ZH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xk}function ay(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function YH(e){return!!e&&typeof e=="object"}var JH=GH(function(e,t,r,n){KH(t,QH(t),e,n)}),$H=Mk(function(e){return e.push(void 0,qH),wk(JH,void 0,e)});function QH(e){return sy(e)?PH(e,!0):FH(e)}Sk.exports=$H});var Rk=U((p8e,Tk)=>{x();var eL=9007199254740991,tL="[object Arguments]",rL="[object Function]",nL="[object GeneratorFunction]",oy=Object.prototype,iL=oy.hasOwnProperty,Ok=oy.toString,sL=oy.propertyIsEnumerable;function aL(e){return fL(e)&&iL.call(e,"callee")&&(!sL.call(e,"callee")||Ok.call(e)==tL)}function oL(e){return e!=null&&lL(e.length)&&!uL(e)}function fL(e){return hL(e)&&oL(e)}function uL(e){var t=cL(e)?Ok.call(