@memetic-block/ao-encrypted-messages
Version:
Send encrypted messages on AO. Like an encrypted voicemail.
10 lines • 2.01 MB
JavaScript
var IO=Object.create;var Ol=Object.defineProperty;var $O=Object.getOwnPropertyDescriptor;var OO=Object.getOwnPropertyNames;var CO=Object.getPrototypeOf,PO=Object.prototype.hasOwnProperty;var T8=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(i,s)=>(typeof require<"u"?require:i)[s]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var En=(r,i)=>()=>(r&&(i=r(r=0)),i);var mr=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),cp=(r,i)=>{for(var s in i)Ol(r,s,{get:i[s],enumerable:!0})},I8=(r,i,s,h)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of OO(i))!PO.call(r,a)&&a!==s&&Ol(r,a,{get:()=>i[a],enumerable:!(h=$O(i,a))||h.enumerable});return r};var pp=(r,i,s)=>(s=r!=null?IO(CO(r)):{},I8(i||!r||!r.__esModule?Ol(s,"default",{value:r,enumerable:!0}):s,r)),Cl=r=>I8(Ol({},"__esModule",{value:!0}),r);var le=En(()=>{});var He={};cp(He,{_debugEnd:()=>b4,_debugProcess:()=>y4,_events:()=>P4,_eventsCount:()=>L4,_exiting:()=>Q8,_fatalExceptions:()=>p4,_getActiveHandles:()=>i4,_getActiveRequests:()=>r4,_kill:()=>a4,_linkedBinding:()=>X8,_maxListeners:()=>C4,_preload_modules:()=>I4,_rawDebug:()=>G8,_startProfilerIdleNotifier:()=>w4,_stopProfilerIdleNotifier:()=>_4,_tickCallback:()=>g4,abort:()=>x4,addListener:()=>N4,allowedNodeEnvironmentFlags:()=>l4,arch:()=>L8,argv:()=>U8,argv0:()=>T4,assert:()=>d4,binding:()=>Z8,chdir:()=>W8,config:()=>t4,cpuUsage:()=>Nl,cwd:()=>K8,debugPort:()=>R4,default:()=>K4,dlopen:()=>e4,domain:()=>J8,emit:()=>z4,emitWarning:()=>F8,env:()=>D8,execArgv:()=>q8,execPath:()=>k4,exit:()=>h4,features:()=>c4,hasUncaughtExceptionCaptureCallback:()=>m4,hrtime:()=>Ll,kill:()=>f4,listeners:()=>H4,memoryUsage:()=>o4,moduleLoadList:()=>Y8,nextTick:()=>O8,off:()=>U4,on:()=>Ns,once:()=>D4,openStdin:()=>u4,pid:()=>A4,platform:()=>N8,ppid:()=>B4,prependListener:()=>F4,prependOnceListener:()=>Z4,reallyExit:()=>n4,release:()=>V8,removeAllListeners:()=>j4,removeListener:()=>q4,resourceUsage:()=>s4,setSourceMapsEnabled:()=>$4,setUncaughtExceptionCaptureCallback:()=>v4,stderr:()=>S4,stdin:()=>E4,stdout:()=>M4,title:()=>P8,umask:()=>H8,uptime:()=>O4,version:()=>j8,versions:()=>z8});function gp(r){throw new Error("Node.js process "+r+" is not supported by JSPM core outside of Node.js")}function LO(){!lh||!ff||(lh=!1,ff.length?Ls=ff.concat(Ls):Pl=-1,Ls.length&&$8())}function $8(){if(!lh){var r=setTimeout(LO,0);lh=!0;for(var i=Ls.length;i;){for(ff=Ls,Ls=[];++Pl<i;)ff&&ff[Pl].run();Pl=-1,i=Ls.length}ff=null,lh=!1,clearTimeout(r)}}function O8(r){var i=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)i[s-1]=arguments[s];Ls.push(new C8(r,i)),Ls.length===1&&!lh&&setTimeout($8,0)}function C8(r,i){this.fun=r,this.array=i}function fn(){}function X8(r){gp("_linkedBinding")}function e4(r){gp("dlopen")}function r4(){return[]}function i4(){return[]}function d4(r,i){if(!r)throw new Error(i||"assertion error")}function m4(){return!1}function O4(){return mo.now()/1e3}function Ll(r){var i=Math.floor((Date.now()-mo.now())*.001),s=mo.now()*.001,h=Math.floor(s)+i,a=Math.floor(s%1*1e9);return r&&(h=h-r[0],a=a-r[1],a<0&&(h--,a+=mp)),[h,a]}function Ns(){return K4}function H4(r){return[]}var Ls,lh,ff,Pl,P8,L8,N8,D8,U8,q8,j8,z8,F8,Z8,H8,K8,W8,V8,G8,Y8,J8,Q8,t4,n4,a4,Nl,s4,o4,f4,h4,u4,l4,c4,p4,v4,g4,y4,b4,w4,_4,M4,S4,E4,x4,A4,B4,k4,R4,T4,I4,$4,mo,vp,mp,C4,P4,L4,N4,D4,U4,q4,j4,z4,F4,Z4,K4,W4=En(()=>{le();ce();de();Ls=[],lh=!1,Pl=-1;C8.prototype.run=function(){this.fun.apply(null,this.array)};P8="browser",L8="x64",N8="browser",D8={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},U8=["/usr/bin/node"],q8=[],j8="v16.8.0",z8={},F8=function(r,i){console.warn((i?i+": ":"")+r)},Z8=function(r){gp("binding")},H8=function(r){return 0},K8=function(){return"/"},W8=function(r){},V8={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};G8=fn,Y8=[];J8={},Q8=!1,t4={};n4=fn,a4=fn,Nl=function(){return{}},s4=Nl,o4=Nl,f4=fn,h4=fn,u4=fn,l4={};c4={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},p4=fn,v4=fn;g4=fn,y4=fn,b4=fn,w4=fn,_4=fn,M4=void 0,S4=void 0,E4=void 0,x4=fn,A4=2,B4=1,k4="/bin/usr/node",R4=9229,T4="node",I4=[],$4=fn,mo={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};mo.now===void 0&&(vp=Date.now(),mo.timing&&mo.timing.navigationStart&&(vp=mo.timing.navigationStart),mo.now=()=>Date.now()-vp);mp=1e9;Ll.bigint=function(r){var i=Ll(r);return typeof BigInt>"u"?i[0]*mp+i[1]:BigInt(i[0]*mp)+BigInt(i[1])};C4=10,P4={},L4=0;N4=Ns,D4=Ns,U4=Ns,q4=Ns,j4=Ns,z4=fn,F4=Ns,Z4=Ns;K4={version:j8,versions:z8,arch:L8,platform:N8,release:V8,_rawDebug:G8,moduleLoadList:Y8,binding:Z8,_linkedBinding:X8,_events:P4,_eventsCount:L4,_maxListeners:C4,on:Ns,addListener:N4,once:D4,off:U4,removeListener:q4,removeAllListeners:j4,emit:z4,prependListener:F4,prependOnceListener:Z4,listeners:H4,domain:J8,_exiting:Q8,config:t4,dlopen:e4,uptime:O4,_getActiveRequests:r4,_getActiveHandles:i4,reallyExit:n4,_kill:a4,cpuUsage:Nl,resourceUsage:s4,memoryUsage:o4,kill:f4,exit:h4,openStdin:u4,allowedNodeEnvironmentFlags:l4,assert:d4,features:c4,_fatalExceptions:p4,setUncaughtExceptionCaptureCallback:v4,hasUncaughtExceptionCaptureCallback:m4,emitWarning:F8,nextTick:O8,_tickCallback:g4,_debugProcess:y4,_debugEnd:b4,_startProfilerIdleNotifier:w4,_stopProfilerIdleNotifier:_4,stdout:M4,stdin:E4,stderr:S4,abort:x4,umask:H8,chdir:W8,cwd:K8,env:D8,title:P8,argv:U8,execArgv:q8,pid:A4,ppid:B4,execPath:k4,debugPort:R4,hrtime:Ll,argv0:T4,_preload_modules:I4,setSourceMapsEnabled:$4}});var de=En(()=>{W4()});var yp={};cp(yp,{Buffer:()=>Ue,INSPECT_MAX_BYTES:()=>qO,default:()=>go,kMaxLength:()=>jO});function NO(){if(V4)return Eu;V4=!0,Eu.byteLength=m,Eu.toByteArray=y,Eu.fromByteArray=S;for(var r=[],i=[],s=typeof Uint8Array<"u"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=h.length;a<c;++a)r[a]=h[a],i[h.charCodeAt(a)]=a;i[45]=62,i[95]=63;function p(A){var k=A.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=A.indexOf("=");I===-1&&(I=k);var O=I===k?0:4-I%4;return[I,O]}function m(A){var k=p(A),I=k[0],O=k[1];return(I+O)*3/4-O}function w(A,k,I){return(k+I)*3/4-I}function y(A){var k,I=p(A),O=I[0],C=I[1],U=new s(w(A,O,C)),N=0,rt=C>0?O-4:O,X;for(X=0;X<rt;X+=4)k=i[A.charCodeAt(X)]<<18|i[A.charCodeAt(X+1)]<<12|i[A.charCodeAt(X+2)]<<6|i[A.charCodeAt(X+3)],U[N++]=k>>16&255,U[N++]=k>>8&255,U[N++]=k&255;return C===2&&(k=i[A.charCodeAt(X)]<<2|i[A.charCodeAt(X+1)]>>4,U[N++]=k&255),C===1&&(k=i[A.charCodeAt(X)]<<10|i[A.charCodeAt(X+1)]<<4|i[A.charCodeAt(X+2)]>>2,U[N++]=k>>8&255,U[N++]=k&255),U}function b(A){return r[A>>18&63]+r[A>>12&63]+r[A>>6&63]+r[A&63]}function E(A,k,I){for(var O,C=[],U=k;U<I;U+=3)O=(A[U]<<16&16711680)+(A[U+1]<<8&65280)+(A[U+2]&255),C.push(b(O));return C.join("")}function S(A){for(var k,I=A.length,O=I%3,C=[],U=16383,N=0,rt=I-O;N<rt;N+=U)C.push(E(A,N,N+U>rt?rt:N+U));return O===1?(k=A[I-1],C.push(r[k>>2]+r[k<<4&63]+"==")):O===2&&(k=(A[I-2]<<8)+A[I-1],C.push(r[k>>10]+r[k>>4&63]+r[k<<2&63]+"=")),C.join("")}return Eu}function DO(){if(G4)return Dl;G4=!0;return Dl.read=function(r,i,s,h,a){var c,p,m=a*8-h-1,w=(1<<m)-1,y=w>>1,b=-7,E=s?a-1:0,S=s?-1:1,A=r[i+E];for(E+=S,c=A&(1<<-b)-1,A>>=-b,b+=m;b>0;c=c*256+r[i+E],E+=S,b-=8);for(p=c&(1<<-b)-1,c>>=-b,b+=h;b>0;p=p*256+r[i+E],E+=S,b-=8);if(c===0)c=1-y;else{if(c===w)return p?NaN:(A?-1:1)*(1/0);p=p+Math.pow(2,h),c=c-y}return(A?-1:1)*p*Math.pow(2,c-h)},Dl.write=function(r,i,s,h,a,c){var p,m,w,y=c*8-a-1,b=(1<<y)-1,E=b>>1,S=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=h?0:c-1,k=h?1:-1,I=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=b):(p=Math.floor(Math.log(i)/Math.LN2),i*(w=Math.pow(2,-p))<1&&(p--,w*=2),p+E>=1?i+=S/w:i+=S*Math.pow(2,1-E),i*w>=2&&(p++,w/=2),p+E>=b?(m=0,p=b):p+E>=1?(m=(i*w-1)*Math.pow(2,a),p=p+E):(m=i*Math.pow(2,E-1)*Math.pow(2,a),p=0));a>=8;r[s+A]=m&255,A+=k,m/=256,a-=8);for(p=p<<a|m,y+=a;y>0;r[s+A]=p&255,A+=k,p/=256,y-=8);r[s+A-k]|=I*128},Dl}function UO(){if(Y4)return hf;Y4=!0;let r=NO(),i=DO(),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;hf.Buffer=p,hf.SlowBuffer=C,hf.INSPECT_MAX_BYTES=50;let h=2147483647;hf.kMaxLength=h,p.TYPED_ARRAY_SUPPORT=a(),!p.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 a(){try{let L=new Uint8Array(1),M={foo:function(){return 42}};return Object.setPrototypeOf(M,Uint8Array.prototype),Object.setPrototypeOf(L,M),L.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function c(L){if(L>h)throw new RangeError('The value "'+L+'" is invalid for option "size"');let M=new Uint8Array(L);return Object.setPrototypeOf(M,p.prototype),M}function p(L,M,x){if(typeof L=="number"){if(typeof M=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(L)}return m(L,M,x)}p.poolSize=8192;function m(L,M,x){if(typeof L=="string")return E(L,M);if(ArrayBuffer.isView(L))return A(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if($t(L,ArrayBuffer)||L&&$t(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($t(L,SharedArrayBuffer)||L&&$t(L.buffer,SharedArrayBuffer)))return k(L,M,x);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let R=L.valueOf&&L.valueOf();if(R!=null&&R!==L)return p.from(R,M,x);let P=I(L);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return p.from(L[Symbol.toPrimitive]("string"),M,x);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}p.from=function(L,M,x){return m(L,M,x)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function w(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function y(L,M,x){return w(L),L<=0?c(L):M!==void 0?typeof x=="string"?c(L).fill(M,x):c(L).fill(M):c(L)}p.alloc=function(L,M,x){return y(L,M,x)};function b(L){return w(L),c(L<0?0:O(L)|0)}p.allocUnsafe=function(L){return b(L)},p.allocUnsafeSlow=function(L){return b(L)};function E(L,M){if((typeof M!="string"||M==="")&&(M="utf8"),!p.isEncoding(M))throw new TypeError("Unknown encoding: "+M);let x=U(L,M)|0,R=c(x),P=R.write(L,M);return P!==x&&(R=R.slice(0,P)),R}function S(L){let M=L.length<0?0:O(L.length)|0,x=c(M);for(let R=0;R<M;R+=1)x[R]=L[R]&255;return x}function A(L){if($t(L,Uint8Array)){let M=new Uint8Array(L);return k(M.buffer,M.byteOffset,M.byteLength)}return S(L)}function k(L,M,x){if(M<0||L.byteLength<M)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<M+(x||0))throw new RangeError('"length" is outside of buffer bounds');let R;return M===void 0&&x===void 0?R=new Uint8Array(L):x===void 0?R=new Uint8Array(L,M):R=new Uint8Array(L,M,x),Object.setPrototypeOf(R,p.prototype),R}function I(L){if(p.isBuffer(L)){let M=O(L.length)|0,x=c(M);return x.length===0||L.copy(x,0,0,M),x}if(L.length!==void 0)return typeof L.length!="number"||Qt(L.length)?c(0):S(L);if(L.type==="Buffer"&&Array.isArray(L.data))return S(L.data)}function O(L){if(L>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return L|0}function C(L){return+L!=L&&(L=0),p.alloc(+L)}p.isBuffer=function(M){return M!=null&&M._isBuffer===!0&&M!==p.prototype},p.compare=function(M,x){if($t(M,Uint8Array)&&(M=p.from(M,M.offset,M.byteLength)),$t(x,Uint8Array)&&(x=p.from(x,x.offset,x.byteLength)),!p.isBuffer(M)||!p.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(M===x)return 0;let R=M.length,P=x.length;for(let G=0,H=Math.min(R,P);G<H;++G)if(M[G]!==x[G]){R=M[G],P=x[G];break}return R<P?-1:P<R?1:0},p.isEncoding=function(M){switch(String(M).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}},p.concat=function(M,x){if(!Array.isArray(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return p.alloc(0);let R;if(x===void 0)for(x=0,R=0;R<M.length;++R)x+=M[R].length;let P=p.allocUnsafe(x),G=0;for(R=0;R<M.length;++R){let H=M[R];if($t(H,Uint8Array))G+H.length>P.length?(p.isBuffer(H)||(H=p.from(H)),H.copy(P,G)):Uint8Array.prototype.set.call(P,H,G);else if(p.isBuffer(H))H.copy(P,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=H.length}return P};function U(L,M){if(p.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||$t(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);let x=L.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&x===0)return 0;let P=!1;for(;;)switch(M){case"ascii":case"latin1":case"binary":return x;case"utf8":case"utf-8":return Pt(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x*2;case"hex":return x>>>1;case"base64":return Zt(L).length;default:if(P)return R?-1:Pt(L).length;M=(""+M).toLowerCase(),P=!0}}p.byteLength=U;function N(L,M,x){let R=!1;if((M===void 0||M<0)&&(M=0),M>this.length||((x===void 0||x>this.length)&&(x=this.length),x<=0)||(x>>>=0,M>>>=0,x<=M))return"";for(L||(L="utf8");;)switch(L){case"hex":return l(this,M,x);case"utf8":case"utf-8":return o(this,M,x);case"ascii":return g(this,M,x);case"latin1":case"binary":return _(this,M,x);case"base64":return n(this,M,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e(this,M,x);default:if(R)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),R=!0}}p.prototype._isBuffer=!0;function rt(L,M,x){let R=L[M];L[M]=L[x],L[x]=R}p.prototype.swap16=function(){let M=this.length;if(M%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let x=0;x<M;x+=2)rt(this,x,x+1);return this},p.prototype.swap32=function(){let M=this.length;if(M%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let x=0;x<M;x+=4)rt(this,x,x+3),rt(this,x+1,x+2);return this},p.prototype.swap64=function(){let M=this.length;if(M%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let x=0;x<M;x+=8)rt(this,x,x+7),rt(this,x+1,x+6),rt(this,x+2,x+5),rt(this,x+3,x+4);return this},p.prototype.toString=function(){let M=this.length;return M===0?"":arguments.length===0?o(this,0,M):N.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(M){if(!p.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M?!0:p.compare(this,M)===0},p.prototype.inspect=function(){let M="",x=hf.INSPECT_MAX_BYTES;return M=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(M+=" ... "),"<Buffer "+M+">"},s&&(p.prototype[s]=p.prototype.inspect),p.prototype.compare=function(M,x,R,P,G){if($t(M,Uint8Array)&&(M=p.from(M,M.offset,M.byteLength)),!p.isBuffer(M))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof M);if(x===void 0&&(x=0),R===void 0&&(R=M?M.length:0),P===void 0&&(P=0),G===void 0&&(G=this.length),x<0||R>M.length||P<0||G>this.length)throw new RangeError("out of range index");if(P>=G&&x>=R)return 0;if(P>=G)return-1;if(x>=R)return 1;if(x>>>=0,R>>>=0,P>>>=0,G>>>=0,this===M)return 0;let H=G-P,ot=R-x,Xt=Math.min(H,ot),Tt=this.slice(P,G),Ot=M.slice(x,R);for(let Jt=0;Jt<Xt;++Jt)if(Tt[Jt]!==Ot[Jt]){H=Tt[Jt],ot=Ot[Jt];break}return H<ot?-1:ot<H?1:0};function X(L,M,x,R,P){if(L.length===0)return-1;if(typeof x=="string"?(R=x,x=0):x>2147483647?x=2147483647:x<-2147483648&&(x=-2147483648),x=+x,Qt(x)&&(x=P?0:L.length-1),x<0&&(x=L.length+x),x>=L.length){if(P)return-1;x=L.length-1}else if(x<0)if(P)x=0;else return-1;if(typeof M=="string"&&(M=p.from(M,R)),p.isBuffer(M))return M.length===0?-1:at(L,M,x,R,P);if(typeof M=="number")return M=M&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(L,M,x):Uint8Array.prototype.lastIndexOf.call(L,M,x):at(L,[M],x,R,P);throw new TypeError("val must be string, number or Buffer")}function at(L,M,x,R,P){let G=1,H=L.length,ot=M.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(L.length<2||M.length<2)return-1;G=2,H/=2,ot/=2,x/=2}function Xt(Ot,Jt){return G===1?Ot[Jt]:Ot.readUInt16BE(Jt*G)}let Tt;if(P){let Ot=-1;for(Tt=x;Tt<H;Tt++)if(Xt(L,Tt)===Xt(M,Ot===-1?0:Tt-Ot)){if(Ot===-1&&(Ot=Tt),Tt-Ot+1===ot)return Ot*G}else Ot!==-1&&(Tt-=Tt-Ot),Ot=-1}else for(x+ot>H&&(x=H-ot),Tt=x;Tt>=0;Tt--){let Ot=!0;for(let Jt=0;Jt<ot;Jt++)if(Xt(L,Tt+Jt)!==Xt(M,Jt)){Ot=!1;break}if(Ot)return Tt}return-1}p.prototype.includes=function(M,x,R){return this.indexOf(M,x,R)!==-1},p.prototype.indexOf=function(M,x,R){return X(this,M,x,R,!0)},p.prototype.lastIndexOf=function(M,x,R){return X(this,M,x,R,!1)};function D(L,M,x,R){x=Number(x)||0;let P=L.length-x;R?(R=Number(R),R>P&&(R=P)):R=P;let G=M.length;R>G/2&&(R=G/2);let H;for(H=0;H<R;++H){let ot=parseInt(M.substr(H*2,2),16);if(Qt(ot))return H;L[x+H]=ot}return H}function z(L,M,x,R){return dt(Pt(M,L.length-x),L,x,R)}function W(L,M,x,R){return dt(it(M),L,x,R)}function v(L,M,x,R){return dt(Zt(M),L,x,R)}function t(L,M,x,R){return dt(lt(M,L.length-x),L,x,R)}p.prototype.write=function(M,x,R,P){if(x===void 0)P="utf8",R=this.length,x=0;else if(R===void 0&&typeof x=="string")P=x,R=this.length,x=0;else if(isFinite(x))x=x>>>0,isFinite(R)?(R=R>>>0,P===void 0&&(P="utf8")):(P=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let G=this.length-x;if((R===void 0||R>G)&&(R=G),M.length>0&&(R<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let H=!1;for(;;)switch(P){case"hex":return D(this,M,x,R);case"utf8":case"utf-8":return z(this,M,x,R);case"ascii":case"latin1":case"binary":return W(this,M,x,R);case"base64":return v(this,M,x,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,M,x,R);default:if(H)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),H=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function n(L,M,x){return M===0&&x===L.length?r.fromByteArray(L):r.fromByteArray(L.slice(M,x))}function o(L,M,x){x=Math.min(L.length,x);let R=[],P=M;for(;P<x;){let G=L[P],H=null,ot=G>239?4:G>223?3:G>191?2:1;if(P+ot<=x){let Xt,Tt,Ot,Jt;switch(ot){case 1:G<128&&(H=G);break;case 2:Xt=L[P+1],(Xt&192)===128&&(Jt=(G&31)<<6|Xt&63,Jt>127&&(H=Jt));break;case 3:Xt=L[P+1],Tt=L[P+2],(Xt&192)===128&&(Tt&192)===128&&(Jt=(G&15)<<12|(Xt&63)<<6|Tt&63,Jt>2047&&(Jt<55296||Jt>57343)&&(H=Jt));break;case 4:Xt=L[P+1],Tt=L[P+2],Ot=L[P+3],(Xt&192)===128&&(Tt&192)===128&&(Ot&192)===128&&(Jt=(G&15)<<18|(Xt&63)<<12|(Tt&63)<<6|Ot&63,Jt>65535&&Jt<1114112&&(H=Jt))}}H===null?(H=65533,ot=1):H>65535&&(H-=65536,R.push(H>>>10&1023|55296),H=56320|H&1023),R.push(H),P+=ot}return u(R)}let f=4096;function u(L){let M=L.length;if(M<=f)return String.fromCharCode.apply(String,L);let x="",R=0;for(;R<M;)x+=String.fromCharCode.apply(String,L.slice(R,R+=f));return x}function g(L,M,x){let R="";x=Math.min(L.length,x);for(let P=M;P<x;++P)R+=String.fromCharCode(L[P]&127);return R}function _(L,M,x){let R="";x=Math.min(L.length,x);for(let P=M;P<x;++P)R+=String.fromCharCode(L[P]);return R}function l(L,M,x){let R=L.length;(!M||M<0)&&(M=0),(!x||x<0||x>R)&&(x=R);let P="";for(let G=M;G<x;++G)P+=Ct[L[G]];return P}function e(L,M,x){let R=L.slice(M,x),P="";for(let G=0;G<R.length-1;G+=2)P+=String.fromCharCode(R[G]+R[G+1]*256);return P}p.prototype.slice=function(M,x){let R=this.length;M=~~M,x=x===void 0?R:~~x,M<0?(M+=R,M<0&&(M=0)):M>R&&(M=R),x<0?(x+=R,x<0&&(x=0)):x>R&&(x=R),x<M&&(x=M);let P=this.subarray(M,x);return Object.setPrototypeOf(P,p.prototype),P};function d(L,M,x){if(L%1!==0||L<0)throw new RangeError("offset is not uint");if(L+M>x)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(M,x,R){M=M>>>0,x=x>>>0,R||d(M,x,this.length);let P=this[M],G=1,H=0;for(;++H<x&&(G*=256);)P+=this[M+H]*G;return P},p.prototype.readUintBE=p.prototype.readUIntBE=function(M,x,R){M=M>>>0,x=x>>>0,R||d(M,x,this.length);let P=this[M+--x],G=1;for(;x>0&&(G*=256);)P+=this[M+--x]*G;return P},p.prototype.readUint8=p.prototype.readUInt8=function(M,x){return M=M>>>0,x||d(M,1,this.length),this[M]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(M,x){return M=M>>>0,x||d(M,2,this.length),this[M]|this[M+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(M,x){return M=M>>>0,x||d(M,2,this.length),this[M]<<8|this[M+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(M,x){return M=M>>>0,x||d(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+this[M+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(M,x){return M=M>>>0,x||d(M,4,this.length),this[M]*16777216+(this[M+1]<<16|this[M+2]<<8|this[M+3])},p.prototype.readBigUInt64LE=qt(function(M){M=M>>>0,q(M,"offset");let x=this[M],R=this[M+7];(x===void 0||R===void 0)&&K(M,this.length-8);let P=x+this[++M]*2**8+this[++M]*2**16+this[++M]*2**24,G=this[++M]+this[++M]*2**8+this[++M]*2**16+R*2**24;return BigInt(P)+(BigInt(G)<<BigInt(32))}),p.prototype.readBigUInt64BE=qt(function(M){M=M>>>0,q(M,"offset");let x=this[M],R=this[M+7];(x===void 0||R===void 0)&&K(M,this.length-8);let P=x*2**24+this[++M]*2**16+this[++M]*2**8+this[++M],G=this[++M]*2**24+this[++M]*2**16+this[++M]*2**8+R;return(BigInt(P)<<BigInt(32))+BigInt(G)}),p.prototype.readIntLE=function(M,x,R){M=M>>>0,x=x>>>0,R||d(M,x,this.length);let P=this[M],G=1,H=0;for(;++H<x&&(G*=256);)P+=this[M+H]*G;return G*=128,P>=G&&(P-=Math.pow(2,8*x)),P},p.prototype.readIntBE=function(M,x,R){M=M>>>0,x=x>>>0,R||d(M,x,this.length);let P=x,G=1,H=this[M+--P];for(;P>0&&(G*=256);)H+=this[M+--P]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*x)),H},p.prototype.readInt8=function(M,x){return M=M>>>0,x||d(M,1,this.length),this[M]&128?(255-this[M]+1)*-1:this[M]},p.prototype.readInt16LE=function(M,x){M=M>>>0,x||d(M,2,this.length);let R=this[M]|this[M+1]<<8;return R&32768?R|4294901760:R},p.prototype.readInt16BE=function(M,x){M=M>>>0,x||d(M,2,this.length);let R=this[M+1]|this[M]<<8;return R&32768?R|4294901760:R},p.prototype.readInt32LE=function(M,x){return M=M>>>0,x||d(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},p.prototype.readInt32BE=function(M,x){return M=M>>>0,x||d(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},p.prototype.readBigInt64LE=qt(function(M){M=M>>>0,q(M,"offset");let x=this[M],R=this[M+7];(x===void 0||R===void 0)&&K(M,this.length-8);let P=this[M+4]+this[M+5]*2**8+this[M+6]*2**16+(R<<24);return(BigInt(P)<<BigInt(32))+BigInt(x+this[++M]*2**8+this[++M]*2**16+this[++M]*2**24)}),p.prototype.readBigInt64BE=qt(function(M){M=M>>>0,q(M,"offset");let x=this[M],R=this[M+7];(x===void 0||R===void 0)&&K(M,this.length-8);let P=(x<<24)+this[++M]*2**16+this[++M]*2**8+this[++M];return(BigInt(P)<<BigInt(32))+BigInt(this[++M]*2**24+this[++M]*2**16+this[++M]*2**8+R)}),p.prototype.readFloatLE=function(M,x){return M=M>>>0,x||d(M,4,this.length),i.read(this,M,!0,23,4)},p.prototype.readFloatBE=function(M,x){return M=M>>>0,x||d(M,4,this.length),i.read(this,M,!1,23,4)},p.prototype.readDoubleLE=function(M,x){return M=M>>>0,x||d(M,8,this.length),i.read(this,M,!0,52,8)},p.prototype.readDoubleBE=function(M,x){return M=M>>>0,x||d(M,8,this.length),i.read(this,M,!1,52,8)};function B(L,M,x,R,P,G){if(!p.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>P||M<G)throw new RangeError('"value" argument is out of bounds');if(x+R>L.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(M,x,R,P){if(M=+M,x=x>>>0,R=R>>>0,!P){let ot=Math.pow(2,8*R)-1;B(this,M,x,R,ot,0)}let G=1,H=0;for(this[x]=M&255;++H<R&&(G*=256);)this[x+H]=M/G&255;return x+R},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(M,x,R,P){if(M=+M,x=x>>>0,R=R>>>0,!P){let ot=Math.pow(2,8*R)-1;B(this,M,x,R,ot,0)}let G=R-1,H=1;for(this[x+G]=M&255;--G>=0&&(H*=256);)this[x+G]=M/H&255;return x+R},p.prototype.writeUint8=p.prototype.writeUInt8=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,1,255,0),this[x]=M&255,x+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,2,65535,0),this[x]=M&255,this[x+1]=M>>>8,x+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,2,65535,0),this[x]=M>>>8,this[x+1]=M&255,x+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,4,4294967295,0),this[x+3]=M>>>24,this[x+2]=M>>>16,this[x+1]=M>>>8,this[x]=M&255,x+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,4,4294967295,0),this[x]=M>>>24,this[x+1]=M>>>16,this[x+2]=M>>>8,this[x+3]=M&255,x+4};function T(L,M,x,R,P){tt(M,R,P,L,x,7);let G=Number(M&BigInt(4294967295));L[x++]=G,G=G>>8,L[x++]=G,G=G>>8,L[x++]=G,G=G>>8,L[x++]=G;let H=Number(M>>BigInt(32)&BigInt(4294967295));return L[x++]=H,H=H>>8,L[x++]=H,H=H>>8,L[x++]=H,H=H>>8,L[x++]=H,x}function $(L,M,x,R,P){tt(M,R,P,L,x,7);let G=Number(M&BigInt(4294967295));L[x+7]=G,G=G>>8,L[x+6]=G,G=G>>8,L[x+5]=G,G=G>>8,L[x+4]=G;let H=Number(M>>BigInt(32)&BigInt(4294967295));return L[x+3]=H,H=H>>8,L[x+2]=H,H=H>>8,L[x+1]=H,H=H>>8,L[x]=H,x+8}p.prototype.writeBigUInt64LE=qt(function(M,x=0){return T(this,M,x,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=qt(function(M,x=0){return $(this,M,x,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(M,x,R,P){if(M=+M,x=x>>>0,!P){let Xt=Math.pow(2,8*R-1);B(this,M,x,R,Xt-1,-Xt)}let G=0,H=1,ot=0;for(this[x]=M&255;++G<R&&(H*=256);)M<0&&ot===0&&this[x+G-1]!==0&&(ot=1),this[x+G]=(M/H>>0)-ot&255;return x+R},p.prototype.writeIntBE=function(M,x,R,P){if(M=+M,x=x>>>0,!P){let Xt=Math.pow(2,8*R-1);B(this,M,x,R,Xt-1,-Xt)}let G=R-1,H=1,ot=0;for(this[x+G]=M&255;--G>=0&&(H*=256);)M<0&&ot===0&&this[x+G+1]!==0&&(ot=1),this[x+G]=(M/H>>0)-ot&255;return x+R},p.prototype.writeInt8=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,1,127,-128),M<0&&(M=255+M+1),this[x]=M&255,x+1},p.prototype.writeInt16LE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,2,32767,-32768),this[x]=M&255,this[x+1]=M>>>8,x+2},p.prototype.writeInt16BE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,2,32767,-32768),this[x]=M>>>8,this[x+1]=M&255,x+2},p.prototype.writeInt32LE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,4,2147483647,-2147483648),this[x]=M&255,this[x+1]=M>>>8,this[x+2]=M>>>16,this[x+3]=M>>>24,x+4},p.prototype.writeInt32BE=function(M,x,R){return M=+M,x=x>>>0,R||B(this,M,x,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),this[x]=M>>>24,this[x+1]=M>>>16,this[x+2]=M>>>8,this[x+3]=M&255,x+4},p.prototype.writeBigInt64LE=qt(function(M,x=0){return T(this,M,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=qt(function(M,x=0){return $(this,M,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function j(L,M,x,R,P,G){if(x+R>L.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("Index out of range")}function J(L,M,x,R,P){return M=+M,x=x>>>0,P||j(L,M,x,4),i.write(L,M,x,R,23,4),x+4}p.prototype.writeFloatLE=function(M,x,R){return J(this,M,x,!0,R)},p.prototype.writeFloatBE=function(M,x,R){return J(this,M,x,!1,R)};function ct(L,M,x,R,P){return M=+M,x=x>>>0,P||j(L,M,x,8),i.write(L,M,x,R,52,8),x+8}p.prototype.writeDoubleLE=function(M,x,R){return ct(this,M,x,!0,R)},p.prototype.writeDoubleBE=function(M,x,R){return ct(this,M,x,!1,R)},p.prototype.copy=function(M,x,R,P){if(!p.isBuffer(M))throw new TypeError("argument should be a Buffer");if(R||(R=0),!P&&P!==0&&(P=this.length),x>=M.length&&(x=M.length),x||(x=0),P>0&&P<R&&(P=R),P===R||M.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),M.length-x<P-R&&(P=M.length-x+R);let G=P-R;return this===M&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(x,R,P):Uint8Array.prototype.set.call(M,this.subarray(R,P),x),G},p.prototype.fill=function(M,x,R,P){if(typeof M=="string"){if(typeof x=="string"?(P=x,x=0,R=this.length):typeof R=="string"&&(P=R,R=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!p.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(M.length===1){let H=M.charCodeAt(0);(P==="utf8"&&H<128||P==="latin1")&&(M=H)}}else typeof M=="number"?M=M&255:typeof M=="boolean"&&(M=Number(M));if(x<0||this.length<x||this.length<R)throw new RangeError("Out of range index");if(R<=x)return this;x=x>>>0,R=R===void 0?this.length:R>>>0,M||(M=0);let G;if(typeof M=="number")for(G=x;G<R;++G)this[G]=M;else{let H=p.isBuffer(M)?M:p.from(M,P),ot=H.length;if(ot===0)throw new TypeError('The value "'+M+'" is invalid for argument "value"');for(G=0;G<R-x;++G)this[G+x]=H[G%ot]}return this};let ht={};function F(L,M,x){ht[L]=class extends x{constructor(){super(),Object.defineProperty(this,"message",{value:M.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(P){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:P,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(L,M){return`The "${L}" argument must be of type number. Received type ${typeof M}`},TypeError),F("ERR_OUT_OF_RANGE",function(L,M,x){let R=`The value of "${L}" is out of range.`,P=x;return Number.isInteger(x)&&Math.abs(x)>2**32?P=Z(String(x)):typeof x=="bigint"&&(P=String(x),(x>BigInt(2)**BigInt(32)||x<-(BigInt(2)**BigInt(32)))&&(P=Z(P)),P+="n"),R+=` It must be ${M}. Received ${P}`,R},RangeError);function Z(L){let M="",x=L.length,R=L[0]==="-"?1:0;for(;x>=R+4;x-=3)M=`_${L.slice(x-3,x)}${M}`;return`${L.slice(0,x)}${M}`}function ut(L,M,x){q(M,"offset"),(L[M]===void 0||L[M+x]===void 0)&&K(M,L.length-(x+1))}function tt(L,M,x,R,P,G){if(L>x||L<M){let H=typeof M=="bigint"?"n":"",ot;throw G>3?M===0||M===BigInt(0)?ot=`>= 0${H} and < 2${H} ** ${(G+1)*8}${H}`:ot=`>= -(2${H} ** ${(G+1)*8-1}${H}) and < 2 ** ${(G+1)*8-1}${H}`:ot=`>= ${M}${H} and <= ${x}${H}`,new ht.ERR_OUT_OF_RANGE("value",ot,L)}ut(R,P,G)}function q(L,M){if(typeof L!="number")throw new ht.ERR_INVALID_ARG_TYPE(M,"number",L)}function K(L,M,x){throw Math.floor(L)!==L?(q(L,x),new ht.ERR_OUT_OF_RANGE(x||"offset","an integer",L)):M<0?new ht.ERR_BUFFER_OUT_OF_BOUNDS:new ht.ERR_OUT_OF_RANGE(x||"offset",`>= ${x?1:0} and <= ${M}`,L)}let Y=/[^+/0-9A-Za-z-_]/g;function st(L){if(L=L.split("=")[0],L=L.trim().replace(Y,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function Pt(L,M){M=M||1/0;let x,R=L.length,P=null,G=[];for(let H=0;H<R;++H){if(x=L.charCodeAt(H),x>55295&&x<57344){if(!P){if(x>56319){(M-=3)>-1&&G.push(239,191,189);continue}else if(H+1===R){(M-=3)>-1&&G.push(239,191,189);continue}P=x;continue}if(x<56320){(M-=3)>-1&&G.push(239,191,189),P=x;continue}x=(P-55296<<10|x-56320)+65536}else P&&(M-=3)>-1&&G.push(239,191,189);if(P=null,x<128){if((M-=1)<0)break;G.push(x)}else if(x<2048){if((M-=2)<0)break;G.push(x>>6|192,x&63|128)}else if(x<65536){if((M-=3)<0)break;G.push(x>>12|224,x>>6&63|128,x&63|128)}else if(x<1114112){if((M-=4)<0)break;G.push(x>>18|240,x>>12&63|128,x>>6&63|128,x&63|128)}else throw new Error("Invalid code point")}return G}function it(L){let M=[];for(let x=0;x<L.length;++x)M.push(L.charCodeAt(x)&255);return M}function lt(L,M){let x,R,P,G=[];for(let H=0;H<L.length&&!((M-=2)<0);++H)x=L.charCodeAt(H),R=x>>8,P=x%256,G.push(P),G.push(R);return G}function Zt(L){return r.toByteArray(st(L))}function dt(L,M,x,R){let P;for(P=0;P<R&&!(P+x>=M.length||P>=L.length);++P)M[P+x]=L[P];return P}function $t(L,M){return L instanceof M||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===M.name}function Qt(L){return L!==L}let Ct=function(){let L="0123456789abcdef",M=new Array(256);for(let x=0;x<16;++x){let R=x*16;for(let P=0;P<16;++P)M[R+P]=L[x]+L[P]}return M}();function qt(L){return typeof BigInt>"u"?ne:L}function ne(){throw new Error("BigInt not supported")}return hf}var Eu,V4,Dl,G4,hf,Y4,go,Ue,qO,jO,Ul=En(()=>{le();ce();de();Eu={},V4=!1;Dl={},G4=!1;hf={},Y4=!1;go=UO();go.Buffer;go.SlowBuffer;go.INSPECT_MAX_BYTES;go.kMaxLength;Ue=go.Buffer,qO=go.INSPECT_MAX_BYTES,jO=go.kMaxLength});var ce=En(()=>{Ul()});function ai(){ai.init.call(this)}function Ad(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}function y7(r){return r._maxListeners===void 0?ai.defaultMaxListeners:r._maxListeners}function d7(r,i,s,h){var a,c,p,m;if(Ad(s),(c=r._events)===void 0?(c=r._events=Object.create(null),r._eventsCount=0):(c.newListener!==void 0&&(r.emit("newListener",i,s.listener?s.listener:s),c=r._events),p=c[i]),p===void 0)p=c[i]=s,++r._eventsCount;else if(typeof p=="function"?p=c[i]=h?[s,p]:[p,s]:h?p.unshift(s):p.push(s),(a=y7(r))>0&&p.length>a&&!p.warned){p.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=r,w.type=i,w.count=p.length,m=w,console&&console.warn&&console.warn(m)}return r}function Sj(){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 c7(r,i,s){var h={fired:!1,wrapFn:void 0,target:r,type:i,listener:s},a=Sj.bind(h);return a.listener=s,h.wrapFn=a,a}function p7(r,i,s){var h=r._events;if(h===void 0)return[];var a=h[i];return a===void 0?[]:typeof a=="function"?s?[a.listener||a]:[a]:s?function(c){for(var p=new Array(c.length),m=0;m<p.length;++m)p[m]=c[m].listener||c[m];return p}(a):b7(a,a.length)}function v7(r){var i=this._events;if(i!==void 0){var s=i[r];if(typeof s=="function")return 1;if(s!==void 0)return s.length}return 0}function b7(r,i){for(var s=new Array(i),h=0;h<i;++h)s[h]=r[h];return s}var m7,g7,Ph,h7,u7,l7,Ui,kv=En(()=>{le();ce();de();Ph=typeof Reflect=="object"?Reflect:null,h7=Ph&&typeof Ph.apply=="function"?Ph.apply:function(r,i,s){return Function.prototype.apply.call(r,i,s)};g7=Ph&&typeof Ph.ownKeys=="function"?Ph.ownKeys:Object.getOwnPropertySymbols?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:function(r){return Object.getOwnPropertyNames(r)};u7=Number.isNaN||function(r){return r!=r};m7=ai,ai.EventEmitter=ai,ai.prototype._events=void 0,ai.prototype._eventsCount=0,ai.prototype._maxListeners=void 0;l7=10;Object.defineProperty(ai,"defaultMaxListeners",{enumerable:!0,get:function(){return l7},set:function(r){if(typeof r!="number"||r<0||u7(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");l7=r}}),ai.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},ai.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||u7(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this},ai.prototype.getMaxListeners=function(){return y7(this)},ai.prototype.emit=function(r){for(var i=[],s=1;s<arguments.length;s++)i.push(arguments[s]);var h=r==="error",a=this._events;if(a!==void 0)h=h&&a.error===void 0;else if(!h)return!1;if(h){var c;if(i.length>0&&(c=i[0]),c instanceof Error)throw c;var p=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw p.context=c,p}var m=a[r];if(m===void 0)return!1;if(typeof m=="function")h7(m,this,i);else{var w=m.length,y=b7(m,w);for(s=0;s<w;++s)h7(y[s],this,i)}return!0},ai.prototype.addListener=function(r,i){return d7(this,r,i,!1)},ai.prototype.on=ai.prototype.addListener,ai.prototype.prependListener=function(r,i){return d7(this,r,i,!0)},ai.prototype.once=function(r,i){return Ad(i),this.on(r,c7(this,r,i)),this},ai.prototype.prependOnceListener=function(r,i){return Ad(i),this.prependListener(r,c7(this,r,i)),this},ai.prototype.removeListener=function(r,i){var s,h,a,c,p;if(Ad(i),(h=this._events)===void 0)return this;if((s=h[r])===void 0)return this;if(s===i||s.listener===i)--this._eventsCount==0?this._events=Object.create(null):(delete h[r],h.removeListener&&this.emit("removeListener",r,s.listener||i));else if(typeof s!="function"){for(a=-1,c=s.length-1;c>=0;c--)if(s[c]===i||s[c].listener===i){p=s[c].listener,a=c;break}if(a<0)return this;a===0?s.shift():function(m,w){for(;w+1<m.length;w++)m[w]=m[w+1];m.pop()}(s,a),s.length===1&&(h[r]=s[0]),h.removeListener!==void 0&&this.emit("removeListener",r,p||i)}return this},ai.prototype.off=ai.prototype.removeListener,ai.prototype.removeAllListeners=function(r){var i,s,h;if((s=this._events)===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[r]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete s[r]),this;if(arguments.length===0){var a,c=Object.keys(s);for(h=0;h<c.length;++h)(a=c[h])!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(i=s[r])=="function")this.removeListener(r,i);else if(i!==void 0)for(h=i.length-1;h>=0;h--)this.removeListener(r,i[h]);return this},ai.prototype.listeners=function(r){return p7(this,r,!0)},ai.prototype.rawListeners=function(r){return p7(this,r,!1)},ai.listenerCount=function(r,i){return typeof r.listenerCount=="function"?r.listenerCount(i):v7.call(r,i)},ai.prototype.listenerCount=v7,ai.prototype.eventNames=function(){return this._eventsCount>0?g7(this._events):[]};Ui=m7;Ui.EventEmitter;Ui.defaultMaxListeners;Ui.init;Ui.listenerCount;Ui.EventEmitter;Ui.defaultMaxListeners;Ui.init;Ui.listenerCount});function Rv(){throw new Error("setTimeout has not been defined")}function Tv(){throw new Error("clearTimeout has not been defined")}function M7(r){if(Ks===setTimeout)return setTimeout(r,0);if((Ks===Rv||!Ks)&&setTimeout)return Ks=setTimeout,setTimeout(r,0);try{return Ks(r,0)}catch{try{return Ks.call(null,r,0)}catch{return Ks.call(this||Nh,r,0)}}}function Ej(){Lh&&wf&&(Lh=!1,wf.length?Vs=wf.concat(Vs):Bd=-1,Vs.length&&S7())}function S7(){if(!Lh){var r=M7(Ej);Lh=!0;for(var i=Vs.length;i;){for(wf=Vs,Vs=[];++Bd<i;)wf&&wf[Bd].run();Bd=-1,i=Vs.length}wf=null,Lh=!1,function(s){if(Ws===clearTimeout)return clearTimeout(s);if((Ws===Tv||!Ws)&&clearTimeout)return Ws=clearTimeout,clearTimeout(s);try{Ws(s)}catch{try{return Ws.call(null,s)}catch{return Ws.call(this||Nh,s)}}}(r)}}function w7(r,i){(this||Nh).fun=r,(this||Nh).array=i}function Hs(){}var _7,Ks,Ws,Nh,Oi,wf,Vs,Lh,Bd,rr,kd=En(()=>{le();ce();de();Nh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Oi=_7={};(function(){try{Ks=typeof setTimeout=="function"?setTimeout:Rv}catch{Ks=Rv}try{Ws=typeof clearTimeout=="function"?clearTimeout:Tv}catch{Ws=Tv}})();Vs=[],Lh=!1,Bd=-1;Oi.nextTick=function(r){var i=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)i[s-1]=arguments[s];Vs.push(new w7(r,i)),Vs.length!==1||Lh||M7(S7)},w7.prototype.run=function(){(this||Nh).fun.apply(null,(this||Nh).array)},Oi.title="browser",Oi.browser=!0,Oi.env={},Oi.argv=[],Oi.version="",Oi.versions={},Oi.on=Hs,Oi.addListener=Hs,Oi.once=Hs,Oi.off=Hs,Oi.removeListener=Hs,Oi.removeAllListeners=Hs,Oi.emit=Hs,Oi.prependListener=Hs,Oi.prependOnceListener=Hs,Oi.listeners=function(r){return[]},Oi.binding=function(r){throw new Error("process.binding is not supported")},Oi.cwd=function(){return"/"},Oi.chdir=function(r){throw new Error("process.chdir is not supported")},Oi.umask=function(){return 0};rr=_7;rr.addListener;rr.argv;rr.binding;rr.browser;rr.chdir;rr.cwd;rr.emit;rr.env;rr.listeners;rr.nextTick;rr.off;rr.on;rr.once;rr.prependListener;rr.prependOnceListener;rr.removeAllListeners;rr.removeListener;rr.title;rr.umask;rr.version;rr.versions});function Sf(r){return r.call.bind(r)}function x0(r,i){if(typeof r!="object")return!1;try{return i(r),!0}catch{return!1}}function x7(r){return Bn&&Nn?ra(r)!==void 0:q7(r)||j7(r)||z7(r)||F7(r)||Z7(r)||H7(r)||K7(r)||W7(r)||V7(r)||G7(r)||Y7(r)}function q7(r){return Bn&&Nn?ra(r)==="Uint8Array":_i(r)==="[object Uint8Array]"||Oj(r)&&r.buffer!==void 0}function j7(r){return Bn&&Nn?ra(r)==="Uint8ClampedArray":_i(r)==="[object Uint8ClampedArray]"}function z7(r){return Bn&&Nn?ra(r)==="Uint16Array":_i(r)==="[object Uint16Array]"}function F7(r){return Bn&&Nn?ra(r)==="Uint32Array":_i(r)==="[object Uint32Array]"}function Z7(r){return Bn&&Nn?ra(r)==="Int8Array":_i(r)==="[object Int8Array]"}function H7(r){return Bn&&Nn?ra(r)==="Int16Array":_i(r)==="[object Int16Array]"}function K7(r){return Bn&&Nn?ra(r)==="Int32Array":_i(r)==="[object Int32Array]"}function W7(r){return Bn&&Nn?ra(r)==="Float32Array":_i(r)==="[object Float32Array]"}function V7(r){return Bn&&Nn?ra(r)==="Float64Array":_i(r)==="[object Float64Array]"}function G7(r){return Bn&&Nn?ra(r)==="BigInt64Array":_i(r)==="[object BigInt64Array]"}function Y7(r){return Bn&&Nn?ra(r)==="BigUint64Array":_i(r)==="[object BigUint64Array]"}function Rd(r){return _i(r)==="[object Map]"}function Td(r){return _i(r)==="[object Set]"}function Id(r){return _i(r)==="[object WeakMap]"}function Iv(r){return _i(r)==="[object WeakSet]"}function Pd(r){return _i(r)==="[object ArrayBuffer]"}function A7(r){return typeof ArrayBuffer<"u"&&(Pd.working?Pd(r):r instanceof ArrayBuffer)}function Ld(r){return _i(r)==="[object DataView]"}function B7(r){return typeof DataView<"u"&&(Ld.working?Ld(r):r instanceof DataView)}function Nd(r){return _i(r)==="[object SharedArrayBuffer]"}function k7(r){return typeof SharedArrayBuffer<"u"&&(Nd.working?Nd(r):r instanceof SharedArrayBuffer)}function R7(r){return x0(r,Dj)}function T7(r){return x0(r,Uj)}function I7(r){return x0(r,qj)}function $7(r){return U7&&x0(r,jj)}function O7(r){return Lv&&x0(r,zj)}function ko(r,i){var s={seen:[],stylize:Hj};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),Nv(i)?s.showHidden=i:i&&$e._extend(s,i),Mf(s.showHidden)&&(s.showHidden=!1),Mf(s.depth)&&(s.depth=2),Mf(s.colors)&&(s.colors=!1),Mf(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=Zj),Dd(s,r,s.depth)}function Zj(r,i){var s=ko.styles[i];return s?"\x1B["+ko.colors[s][0]+"m"+r+"\x1B["+ko.colors[s][1]+"m":r}function Hj(r,i){return r}function Dd(r,i,s){if(r.customInspect&&i&&Cd(i.inspect)&&i.inspect!==$e.inspect&&(!i.constructor||i.constructor.prototype!==i)){var h=i.inspect(s,r);return Ud(h)||(h=Dd(r,h,s)),h}var a=function(S,A){if(Mf(A))return S.stylize("undefined","undefined");if(Ud(A)){var k="'"+JSON.stringify(A).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return S.stylize(k,"string")}if(Q7(A))return S.stylize(""+A,"number");if(Nv(A))return S.stylize(""+A,"boolean");if(zd(A))return S.stylize("null","null")}(r,i);if(a)return a;var c=Object.keys(i),p=function(S){var A={};return S.forEach(function(k,I){A[k]=!0}),A}(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(i)),E0(i)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return $v(i);if(c.length===0){if(Cd(i)){var m=i.name?": "+i.name:"";return r.stylize("[Function"+m+"]","special")}if(S0(i))return r.stylize(RegExp.prototype.toString.call(i),"regexp");if(qd(i))return r.stylize(Date.prototype.toString.call(i),"date");if(E0(i))return $v(i)}var w,y="",b=!1,E=["{","}"];return J7(i)&&(b=!0,E=["[","]"]),Cd(i)&&(y=" [Function"+(i.name?": "+i.name:"")+"]"),S0(i)&&(y=" "+RegExp.prototype.toString.call(i)),qd(i)&&(y=" "+Date.prototype.toUTCString.call(i)),E0(i)&&(y=" "+$v(i)),c.length!==0||b&&i.length!=0?s<0?S0(i)?r.stylize(RegExp.prototype.toString.call(i),"regexp"):r.stylize("[Object]","special"):(r.seen.push(i),w=b?function(S,A,k,I,O){for(var C=[],U=0,N=A.length;U<N;++U)t9(A,String(U))?C.push(Ov(S,A,k,I,String(U),!0)):C.push("");return O.forEach(function(rt){rt.match(/^\d+$/)||C.push(Ov(S,A,k,I,rt,!0))}),C}(r,i,s,p,c):c.map(function(S){return Ov(r,i,s,p,S,b)}),r.seen.pop(),function(S,A,k){var I=0;return S.reduce(function(O,C){return I++,C.indexOf(`
`)>=0&&I++,O+C.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?k[0]+(A===""?"":A+`
`)+" "+S.join(`,
`)+" "+k[1]:k[0]+A+" "+S.join(", ")+" "+k[1]}(w,y,E)):E[0]+y+E[1]}function $v(r){return"["+Error.prototype.toString.call(r)+"]"}function Ov(r,i,s,h,a,c){var p,m,w;if((w=Object.getOwnPropertyDescriptor(i,a)||{value:i[a]}).get?m=w.set?r.stylize("[Getter/Setter]","special"):r.stylize("[Getter]","special"):w.set&&(m=r.stylize("[Setter]","special")),t9(h,a)||(p="["+a+"]"),m||(r.seen.indexOf(w.value)<0?(m=zd(s)?Dd(r,w.value,null):Dd(r,w.value,s-1)).indexOf(`
`)>-1&&(m=c?m.split(`
`).map(function(y){return" "+y}).join(`
`).substr(2):`
`+m.split(`
`).map(function(y){return" "+y}).join(`
`)):m=r.stylize("[Circular]","special")),Mf(p)){if(c&&a.match(/^\d+$/))return m;(p=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.substr(1,p.length-2),p=r.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),p=r.stylize(p,"string"))}return p+": "+m}function J7(r){return Array.isArray(r)}function Nv(r){return typeof r=="boolean"}function zd(r){return r===null}function Q7(r){return typeof r=="number"}function Ud(r){return typeof r=="string"}function Mf(r){return r===void 0}function S0(r){return Dh(r)&&Dv(r)==="[object RegExp]"}function Dh(r){return typeof r=="object"&&r!==null}function qd(r){return Dh(r)&&Dv(r)==="[object Date]"}function E0(r){return Dh(r)&&(Dv(r)==="[object Error]"||r instanceof Error)}function Cd(r){return typeof r=="function"}function Dv(r){return Object.prototype.toString.call(r)}function Cv(r){return r<10?"0"+r.toString(10):r.toString(10)}function Wj(){var r=new Date,i=[Cv(r.getHours()),Cv(r.getMinutes()),Cv(r.getSeconds())].join(":");return[r.getDate(),Kj[r.getMonth()],i].join(" ")}function t9(r,i){return Object.prototype.hasOwnProperty.call(r,i)}function Vj(r,i){if(!r){var s=new Error("Promise was rejected with a falsy value");s.reason=r,r=s}return i(r)}var xj,Pv,jd,P7,Aj,Bj,kj,Rj,Tj,L7,N7,E7,Ij,$j,nr,D7,Tr,Oj,Cj,Pj,U7,Lv,Nn,Bn,Lj,_i,Dj,Uj,qj,M0,$e,ms,C7,Fj,$d,X7,Od,Kj,_f,Fd=En(()=>{le();ce();de();kd();xj=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Pv=Object.prototype.toString,jd=function(r){return!(xj&&r&&typeof r=="object"&&Symbol.toStringTag in r)&&Pv.call(r)==="[object Arguments]"},P7=function(r){return!!jd(r)||r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Pv.call(r)!=="[object Array]"&&Pv.call(r.callee)==="[object Function]"},Aj=function(){return jd(arguments)}();jd.isLegacyArguments=P7;Bj=Aj?jd:P7,kj=Object.prototype.toString,Rj=Function.prototype.toString,Tj=/^\s*(?:function)?\*/,L7=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",N7=Object.getPrototypeOf,E7=function(){if(!L7)return!1;try{return Function("return function*() {}")()}catch{}}(),Ij=E7?N7(E7):{},$j=function(r){return typeof r=="function"&&(!!Tj.test(Rj.call(r))||(L7?N7(r)===Ij:kj.call(r)==="[object GeneratorFunction]"))},nr=typeof Object.create=="function"?function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:function(r,i){if(i){r.super_=i;var s=function(){};s.prototype=i.prototype,r.prototype=new s,r.prototype.constructor=r}},D7=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"},Tr={},Oj=D7,Cj=Bj,Pj=$j;U7=typeof BigInt<"u",Lv=typeof Symbol<"u",Nn=Lv&&Symbol.toStringTag!==void 0,Bn=typeof Uint8Array<"u",Lj=typeof ArrayBuffer<"u";if(Bn&&Nn)var Nj=Object.getPrototypeOf(Uint8Array.prototype),ra=Sf(Object.getOwnPropertyDescriptor(Nj,Symbol.toStringTag).get);_i=Sf(Object.prototype.toString),Dj=Sf(Number.prototype.valueOf),Uj=Sf(String.prototype.valueOf),qj=Sf(Boolean.prototype.valueOf);if(U7)var jj=Sf(BigInt.prototype.valueOf);if(Lv)var zj=Sf(Symbol.prototype.valueOf);Tr.isArgumentsObject=Cj,Tr.isGeneratorFunction=Pj,Tr.isPromise=function(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"},Tr.isArrayBufferView=function(r){return Lj&&ArrayBuffer.isView?ArrayBuffer.isView(r):x7(r)||B7(r)},Tr.isTypedArray=x7,Tr.isUint8Array=q7,Tr.isUint8ClampedArray=j7,Tr.isUint16Array=z7,Tr.isUint32Array=F7,Tr.isInt8Array=Z7,Tr.isInt16Array=H7,Tr.isInt32Array=K7,Tr.isFloat32Array=W7,Tr.isFloat64Array=V7,Tr.isBigInt64Array=G7,Tr.isBigUint64Array=Y7,Rd.working=typeof Map<"u"&&Rd(new Map),Tr.isMap=function(r){return typeof