SHA256
424 lines
6.0 MiB
Plaintext
424 lines
6.0 MiB
Plaintext
var FRt=Object.create;var VH=Object.defineProperty;var QRt=Object.getOwnPropertyDescriptor;var HRt=Object.getOwnPropertyNames;var GRt=Object.getPrototypeOf,qRt=Object.prototype.hasOwnProperty;var Av=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var tn=(e,t)=>()=>(e&&(t=e(e=0)),t);var ir=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gh=(e,t)=>{for(var r in t)VH(e,r,{get:t[r],enumerable:!0})},UBe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of HRt(t))!qRt.call(e,n)&&n!==r&&VH(e,n,{get:()=>t[n],enumerable:!(i=QRt(t,n))||i.enumerable});return e};var po=(e,t,r)=>(r=e!=null?FRt(GRt(e)):{},UBe(t||!e||!e.__esModule?VH(r,"default",{value:e,enumerable:!0}):r,e)),Zu=e=>UBe(VH({},"__esModule",{value:!0}),e);var J=tn(()=>{"use strict"});var me={};gh(me,{_debugEnd:()=>C7e,_debugProcess:()=>I7e,_events:()=>G7e,_eventsCount:()=>q7e,_exiting:()=>a7e,_fatalExceptions:()=>E7e,_getActiveHandles:()=>d7e,_getActiveRequests:()=>u7e,_kill:()=>l7e,_linkedBinding:()=>i7e,_maxListeners:()=>H7e,_preload_modules:()=>U7e,_rawDebug:()=>r7e,_startProfilerIdleNotifier:()=>w7e,_stopProfilerIdleNotifier:()=>O7e,_tickCallback:()=>S7e,abort:()=>B7e,addListener:()=>V7e,allowedNodeEnvironmentFlags:()=>m7e,arch:()=>qBe,argv:()=>zBe,argv0:()=>L7e,assert:()=>y7e,binding:()=>XBe,chdir:()=>e7e,config:()=>s7e,cpuUsage:()=>KH,cwd:()=>jBe,debugPort:()=>P7e,default:()=>j7e,dlopen:()=>c7e,domain:()=>o7e,emit:()=>Y7e,emitWarning:()=>WBe,env:()=>JBe,execArgv:()=>KBe,execPath:()=>k7e,exit:()=>g7e,features:()=>b7e,hasUncaughtExceptionCaptureCallback:()=>R7e,hrtime:()=>zH,kill:()=>p7e,listeners:()=>Z7e,memoryUsage:()=>A7e,moduleLoadList:()=>n7e,nextTick:()=>QBe,off:()=>z7e,on:()=>gv,once:()=>J7e,openStdin:()=>_7e,pid:()=>M7e,platform:()=>VBe,ppid:()=>D7e,prependListener:()=>W7e,prependOnceListener:()=>X7e,reallyExit:()=>f7e,release:()=>t7e,removeAllListeners:()=>$7e,removeListener:()=>K7e,resourceUsage:()=>h7e,setSourceMapsEnabled:()=>F7e,setUncaughtExceptionCaptureCallback:()=>v7e,stderr:()=>x7e,stdin:()=>T7e,stdout:()=>N7e,title:()=>GBe,umask:()=>ZBe,uptime:()=>Q7e,version:()=>$Be,versions:()=>YBe});function rne(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function VRt(){!tO||!D8||(tO=!1,D8.length?pv=D8.concat(pv):JH=-1,pv.length&&FBe())}function FBe(){if(!tO){var e=setTimeout(VRt,0);tO=!0;for(var t=pv.length;t;){for(D8=pv,pv=[];++JH<t;)D8&&D8[JH].run();JH=-1,t=pv.length}D8=null,tO=!1,clearTimeout(e)}}function QBe(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];pv.push(new HBe(e,t)),pv.length===1&&!tO&&setTimeout(FBe,0)}function HBe(e,t){this.fun=e,this.array=t}function _h(){}function i7e(e){rne("_linkedBinding")}function c7e(e){rne("dlopen")}function u7e(){return[]}function d7e(){return[]}function y7e(e,t){if(!e)throw new Error(t||"assertion error")}function R7e(){return!1}function Q7e(){return KS.now()/1e3}function zH(e){var t=Math.floor((Date.now()-KS.now())*.001),r=KS.now()*.001,i=Math.floor(r)+t,n=Math.floor(r%1*1e9);return e&&(i=i-e[0],n=n-e[1],n<0&&(i--,n+=tne)),[i,n]}function gv(){return j7e}function Z7e(e){return[]}var pv,tO,D8,JH,GBe,qBe,VBe,JBe,zBe,KBe,$Be,YBe,WBe,XBe,ZBe,jBe,e7e,t7e,r7e,n7e,o7e,a7e,s7e,f7e,l7e,KH,h7e,A7e,p7e,g7e,_7e,m7e,b7e,E7e,v7e,S7e,I7e,C7e,w7e,O7e,N7e,x7e,T7e,B7e,M7e,D7e,k7e,P7e,L7e,U7e,F7e,KS,ene,tne,H7e,G7e,q7e,V7e,J7e,z7e,K7e,$7e,Y7e,W7e,X7e,j7e,e9e=tn(()=>{"use strict";J();K();z();pv=[],tO=!1,JH=-1;HBe.prototype.run=function(){this.fun.apply(null,this.array)};GBe="browser",qBe="x64",VBe="browser",JBe={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},zBe=["/usr/bin/node"],KBe=[],$Be="v16.8.0",YBe={},WBe=function(e,t){console.warn((t?t+": ":"")+e)},XBe=function(e){rne("binding")},ZBe=function(e){return 0},jBe=function(){return"/"},e7e=function(e){},t7e={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};r7e=_h,n7e=[];o7e={},a7e=!1,s7e={};f7e=_h,l7e=_h,KH=function(){return{}},h7e=KH,A7e=KH,p7e=_h,g7e=_h,_7e=_h,m7e={};b7e={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},E7e=_h,v7e=_h;S7e=_h,I7e=_h,C7e=_h,w7e=_h,O7e=_h,N7e=void 0,x7e=void 0,T7e=void 0,B7e=_h,M7e=2,D7e=1,k7e="/bin/usr/node",P7e=9229,L7e="node",U7e=[],F7e=_h,KS={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};KS.now===void 0&&(ene=Date.now(),KS.timing&&KS.timing.navigationStart&&(ene=KS.timing.navigationStart),KS.now=()=>Date.now()-ene);tne=1e9;zH.bigint=function(e){var t=zH(e);return typeof BigInt>"u"?t[0]*tne+t[1]:BigInt(t[0]*tne)+BigInt(t[1])};H7e=10,G7e={},q7e=0;V7e=gv,J7e=gv,z7e=gv,K7e=gv,$7e=gv,Y7e=_h,W7e=gv,X7e=gv;j7e={version:$Be,versions:YBe,arch:qBe,platform:VBe,release:t7e,_rawDebug:r7e,moduleLoadList:n7e,binding:XBe,_linkedBinding:i7e,_events:G7e,_eventsCount:q7e,_maxListeners:H7e,on:gv,addListener:V7e,once:J7e,off:z7e,removeListener:K7e,removeAllListeners:$7e,emit:Y7e,prependListener:W7e,prependOnceListener:X7e,listeners:Z7e,domain:o7e,_exiting:a7e,config:s7e,dlopen:c7e,uptime:Q7e,_getActiveRequests:u7e,_getActiveHandles:d7e,reallyExit:f7e,_kill:l7e,cpuUsage:KH,resourceUsage:h7e,memoryUsage:A7e,kill:p7e,exit:g7e,openStdin:_7e,allowedNodeEnvironmentFlags:m7e,assert:y7e,features:b7e,_fatalExceptions:E7e,setUncaughtExceptionCaptureCallback:v7e,hasUncaughtExceptionCaptureCallback:R7e,emitWarning:WBe,nextTick:QBe,_tickCallback:S7e,_debugProcess:I7e,_debugEnd:C7e,_startProfilerIdleNotifier:w7e,_stopProfilerIdleNotifier:O7e,stdout:N7e,stdin:T7e,stderr:x7e,abort:B7e,umask:ZBe,chdir:e7e,cwd:jBe,env:JBe,title:GBe,argv:zBe,execArgv:KBe,pid:M7e,ppid:D7e,execPath:k7e,debugPort:P7e,hrtime:zH,argv0:L7e,_preload_modules:U7e,setSourceMapsEnabled:F7e}});var z=tn(()=>{"use strict";e9e()});var ky={};gh(ky,{Buffer:()=>fe,INSPECT_MAX_BYTES:()=>$Rt,default:()=>$S,kMaxLength:()=>YRt});function JRt(){if(t9e)return BM;t9e=!0,BM.byteLength=g,BM.toByteArray=_,BM.fromByteArray=T;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)e[n]=i[n],t[i.charCodeAt(n)]=n;t[45]=62,t[95]=63;function d(M){var D=M.length;if(D%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var P=M.indexOf("=");P===-1&&(P=D);var G=P===D?0:4-P%4;return[P,G]}function g(M){var D=d(M),P=D[0],G=D[1];return(P+G)*3/4-G}function y(M,D,P){return(D+P)*3/4-P}function _(M){var D,P=d(M),G=P[0],q=P[1],Y=new r(y(M,G,q)),ne=0,ce=q>0?G-4:G,le;for(le=0;le<ce;le+=4)D=t[M.charCodeAt(le)]<<18|t[M.charCodeAt(le+1)]<<12|t[M.charCodeAt(le+2)]<<6|t[M.charCodeAt(le+3)],Y[ne++]=D>>16&255,Y[ne++]=D>>8&255,Y[ne++]=D&255;return q===2&&(D=t[M.charCodeAt(le)]<<2|t[M.charCodeAt(le+1)]>>4,Y[ne++]=D&255),q===1&&(D=t[M.charCodeAt(le)]<<10|t[M.charCodeAt(le+1)]<<4|t[M.charCodeAt(le+2)]>>2,Y[ne++]=D>>8&255,Y[ne++]=D&255),Y}function I(M){return e[M>>18&63]+e[M>>12&63]+e[M>>6&63]+e[M&63]}function N(M,D,P){for(var G,q=[],Y=D;Y<P;Y+=3)G=(M[Y]<<16&16711680)+(M[Y+1]<<8&65280)+(M[Y+2]&255),q.push(I(G));return q.join("")}function T(M){for(var D,P=M.length,G=P%3,q=[],Y=16383,ne=0,ce=P-G;ne<ce;ne+=Y)q.push(N(M,ne,ne+Y>ce?ce:ne+Y));return G===1?(D=M[P-1],q.push(e[D>>2]+e[D<<4&63]+"==")):G===2&&(D=(M[P-2]<<8)+M[P-1],q.push(e[D>>10]+e[D>>4&63]+e[D<<2&63]+"=")),q.join("")}return BM}function zRt(){if(r9e)return $H;r9e=!0;return $H.read=function(e,t,r,i,n){var o,d,g=n*8-i-1,y=(1<<g)-1,_=y>>1,I=-7,N=r?n-1:0,T=r?-1:1,M=e[t+N];for(N+=T,o=M&(1<<-I)-1,M>>=-I,I+=g;I>0;o=o*256+e[t+N],N+=T,I-=8);for(d=o&(1<<-I)-1,o>>=-I,I+=i;I>0;d=d*256+e[t+N],N+=T,I-=8);if(o===0)o=1-_;else{if(o===y)return d?NaN:(M?-1:1)*(1/0);d=d+Math.pow(2,i),o=o-_}return(M?-1:1)*d*Math.pow(2,o-i)},$H.write=function(e,t,r,i,n,o){var d,g,y,_=o*8-n-1,I=(1<<_)-1,N=I>>1,T=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:o-1,D=i?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,d=I):(d=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-d))<1&&(d--,y*=2),d+N>=1?t+=T/y:t+=T*Math.pow(2,1-N),t*y>=2&&(d++,y/=2),d+N>=I?(g=0,d=I):d+N>=1?(g=(t*y-1)*Math.pow(2,n),d=d+N):(g=t*Math.pow(2,N-1)*Math.pow(2,n),d=0));n>=8;e[r+M]=g&255,M+=D,g/=256,n-=8);for(d=d<<n|g,_+=n;_>0;e[r+M]=d&255,M+=D,d/=256,_-=8);e[r+M-D]|=P*128},$H}function KRt(){if(n9e)return k8;n9e=!0;let e=JRt(),t=zRt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;k8.Buffer=d,k8.SlowBuffer=q,k8.INSPECT_MAX_BYTES=50;let i=2147483647;k8.kMaxLength=i,d.TYPED_ARRAY_SUPPORT=n(),!d.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 n(){try{let ve=new Uint8Array(1),ie={foo:function(){return 42}};return Object.setPrototypeOf(ie,Uint8Array.prototype),Object.setPrototypeOf(ve,ie),ve.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function o(ve){if(ve>i)throw new RangeError('The value "'+ve+'" is invalid for option "size"');let ie=new Uint8Array(ve);return Object.setPrototypeOf(ie,d.prototype),ie}function d(ve,ie,_e){if(typeof ve=="number"){if(typeof ie=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(ve)}return g(ve,ie,_e)}d.poolSize=8192;function g(ve,ie,_e){if(typeof ve=="string")return N(ve,ie);if(ArrayBuffer.isView(ve))return M(ve);if(ve==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve);if(At(ve,ArrayBuffer)||ve&&At(ve.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(At(ve,SharedArrayBuffer)||ve&&At(ve.buffer,SharedArrayBuffer)))return D(ve,ie,_e);if(typeof ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let Be=ve.valueOf&&ve.valueOf();if(Be!=null&&Be!==ve)return d.from(Be,ie,_e);let Ze=P(ve);if(Ze)return Ze;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ve[Symbol.toPrimitive]=="function")return d.from(ve[Symbol.toPrimitive]("string"),ie,_e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve)}d.from=function(ve,ie,_e){return g(ve,ie,_e)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function y(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be of type number');if(ve<0)throw new RangeError('The value "'+ve+'" is invalid for option "size"')}function _(ve,ie,_e){return y(ve),ve<=0?o(ve):ie!==void 0?typeof _e=="string"?o(ve).fill(ie,_e):o(ve).fill(ie):o(ve)}d.alloc=function(ve,ie,_e){return _(ve,ie,_e)};function I(ve){return y(ve),o(ve<0?0:G(ve)|0)}d.allocUnsafe=function(ve){return I(ve)},d.allocUnsafeSlow=function(ve){return I(ve)};function N(ve,ie){if((typeof ie!="string"||ie==="")&&(ie="utf8"),!d.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie);let _e=Y(ve,ie)|0,Be=o(_e),Ze=Be.write(ve,ie);return Ze!==_e&&(Be=Be.slice(0,Ze)),Be}function T(ve){let ie=ve.length<0?0:G(ve.length)|0,_e=o(ie);for(let Be=0;Be<ie;Be+=1)_e[Be]=ve[Be]&255;return _e}function M(ve){if(At(ve,Uint8Array)){let ie=new Uint8Array(ve);return D(ie.buffer,ie.byteOffset,ie.byteLength)}return T(ve)}function D(ve,ie,_e){if(ie<0||ve.byteLength<ie)throw new RangeError('"offset" is outside of buffer bounds');if(ve.byteLength<ie+(_e||0))throw new RangeError('"length" is outside of buffer bounds');let Be;return ie===void 0&&_e===void 0?Be=new Uint8Array(ve):_e===void 0?Be=new Uint8Array(ve,ie):Be=new Uint8Array(ve,ie,_e),Object.setPrototypeOf(Be,d.prototype),Be}function P(ve){if(d.isBuffer(ve)){let ie=G(ve.length)|0,_e=o(ie);return _e.length===0||ve.copy(_e,0,0,ie),_e}if(ve.length!==void 0)return typeof ve.length!="number"||Er(ve.length)?o(0):T(ve);if(ve.type==="Buffer"&&Array.isArray(ve.data))return T(ve.data)}function G(ve){if(ve>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return ve|0}function q(ve){return+ve!=ve&&(ve=0),d.alloc(+ve)}d.isBuffer=function(ie){return ie!=null&&ie._isBuffer===!0&&ie!==d.prototype},d.compare=function(ie,_e){if(At(ie,Uint8Array)&&(ie=d.from(ie,ie.offset,ie.byteLength)),At(_e,Uint8Array)&&(_e=d.from(_e,_e.offset,_e.byteLength)),!d.isBuffer(ie)||!d.isBuffer(_e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ie===_e)return 0;let Be=ie.length,Ze=_e.length;for(let $t=0,at=Math.min(Be,Ze);$t<at;++$t)if(ie[$t]!==_e[$t]){Be=ie[$t],Ze=_e[$t];break}return Be<Ze?-1:Ze<Be?1:0},d.isEncoding=function(ie){switch(String(ie).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}},d.concat=function(ie,_e){if(!Array.isArray(ie))throw new TypeError('"list" argument must be an Array of Buffers');if(ie.length===0)return d.alloc(0);let Be;if(_e===void 0)for(_e=0,Be=0;Be<ie.length;++Be)_e+=ie[Be].length;let Ze=d.allocUnsafe(_e),$t=0;for(Be=0;Be<ie.length;++Be){let at=ie[Be];if(At(at,Uint8Array))$t+at.length>Ze.length?(d.isBuffer(at)||(at=d.from(at)),at.copy(Ze,$t)):Uint8Array.prototype.set.call(Ze,at,$t);else if(d.isBuffer(at))at.copy(Ze,$t);else throw new TypeError('"list" argument must be an Array of Buffers');$t+=at.length}return Ze};function Y(ve,ie){if(d.isBuffer(ve))return ve.length;if(ArrayBuffer.isView(ve)||At(ve,ArrayBuffer))return ve.byteLength;if(typeof ve!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ve);let _e=ve.length,Be=arguments.length>2&&arguments[2]===!0;if(!Be&&_e===0)return 0;let Ze=!1;for(;;)switch(ie){case"ascii":case"latin1":case"binary":return _e;case"utf8":case"utf-8":return Le(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e*2;case"hex":return _e>>>1;case"base64":return _t(ve).length;default:if(Ze)return Be?-1:Le(ve).length;ie=(""+ie).toLowerCase(),Ze=!0}}d.byteLength=Y;function ne(ve,ie,_e){let Be=!1;if((ie===void 0||ie<0)&&(ie=0),ie>this.length||((_e===void 0||_e>this.length)&&(_e=this.length),_e<=0)||(_e>>>=0,ie>>>=0,_e<=ie))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return R(this,ie,_e);case"utf8":case"utf-8":return A(this,ie,_e);case"ascii":return w(this,ie,_e);case"latin1":case"binary":return x(this,ie,_e);case"base64":return l(this,ie,_e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,ie,_e);default:if(Be)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Be=!0}}d.prototype._isBuffer=!0;function ce(ve,ie,_e){let Be=ve[ie];ve[ie]=ve[_e],ve[_e]=Be}d.prototype.swap16=function(){let ie=this.length;if(ie%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _e=0;_e<ie;_e+=2)ce(this,_e,_e+1);return this},d.prototype.swap32=function(){let ie=this.length;if(ie%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _e=0;_e<ie;_e+=4)ce(this,_e,_e+3),ce(this,_e+1,_e+2);return this},d.prototype.swap64=function(){let ie=this.length;if(ie%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _e=0;_e<ie;_e+=8)ce(this,_e,_e+7),ce(this,_e+1,_e+6),ce(this,_e+2,_e+5),ce(this,_e+3,_e+4);return this},d.prototype.toString=function(){let ie=this.length;return ie===0?"":arguments.length===0?A(this,0,ie):ne.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(ie){if(!d.isBuffer(ie))throw new TypeError("Argument must be a Buffer");return this===ie?!0:d.compare(this,ie)===0},d.prototype.inspect=function(){let ie="",_e=k8.INSPECT_MAX_BYTES;return ie=this.toString("hex",0,_e).replace(/(.{2})/g,"$1 ").trim(),this.length>_e&&(ie+=" ... "),"<Buffer "+ie+">"},r&&(d.prototype[r]=d.prototype.inspect),d.prototype.compare=function(ie,_e,Be,Ze,$t){if(At(ie,Uint8Array)&&(ie=d.from(ie,ie.offset,ie.byteLength)),!d.isBuffer(ie))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ie);if(_e===void 0&&(_e=0),Be===void 0&&(Be=ie?ie.length:0),Ze===void 0&&(Ze=0),$t===void 0&&($t=this.length),_e<0||Be>ie.length||Ze<0||$t>this.length)throw new RangeError("out of range index");if(Ze>=$t&&_e>=Be)return 0;if(Ze>=$t)return-1;if(_e>=Be)return 1;if(_e>>>=0,Be>>>=0,Ze>>>=0,$t>>>=0,this===ie)return 0;let at=$t-Ze,zt=Be-_e,Hr=Math.min(at,zt),St=this.slice(Ze,$t),Yt=ie.slice(_e,Be);for(let qr=0;qr<Hr;++qr)if(St[qr]!==Yt[qr]){at=St[qr],zt=Yt[qr];break}return at<zt?-1:zt<at?1:0};function le(ve,ie,_e,Be,Ze){if(ve.length===0)return-1;if(typeof _e=="string"?(Be=_e,_e=0):_e>2147483647?_e=2147483647:_e<-2147483648&&(_e=-2147483648),_e=+_e,Er(_e)&&(_e=Ze?0:ve.length-1),_e<0&&(_e=ve.length+_e),_e>=ve.length){if(Ze)return-1;_e=ve.length-1}else if(_e<0)if(Ze)_e=0;else return-1;if(typeof ie=="string"&&(ie=d.from(ie,Be)),d.isBuffer(ie))return ie.length===0?-1:pe(ve,ie,_e,Be,Ze);if(typeof ie=="number")return ie=ie&255,typeof Uint8Array.prototype.indexOf=="function"?Ze?Uint8Array.prototype.indexOf.call(ve,ie,_e):Uint8Array.prototype.lastIndexOf.call(ve,ie,_e):pe(ve,[ie],_e,Be,Ze);throw new TypeError("val must be string, number or Buffer")}function pe(ve,ie,_e,Be,Ze){let $t=1,at=ve.length,zt=ie.length;if(Be!==void 0&&(Be=String(Be).toLowerCase(),Be==="ucs2"||Be==="ucs-2"||Be==="utf16le"||Be==="utf-16le")){if(ve.length<2||ie.length<2)return-1;$t=2,at/=2,zt/=2,_e/=2}function Hr(Yt,qr){return $t===1?Yt[qr]:Yt.readUInt16BE(qr*$t)}let St;if(Ze){let Yt=-1;for(St=_e;St<at;St++)if(Hr(ve,St)===Hr(ie,Yt===-1?0:St-Yt)){if(Yt===-1&&(Yt=St),St-Yt+1===zt)return Yt*$t}else Yt!==-1&&(St-=St-Yt),Yt=-1}else for(_e+zt>at&&(_e=at-zt),St=_e;St>=0;St--){let Yt=!0;for(let qr=0;qr<zt;qr++)if(Hr(ve,St+qr)!==Hr(ie,qr)){Yt=!1;break}if(Yt)return St}return-1}d.prototype.includes=function(ie,_e,Be){return this.indexOf(ie,_e,Be)!==-1},d.prototype.indexOf=function(ie,_e,Be){return le(this,ie,_e,Be,!0)},d.prototype.lastIndexOf=function(ie,_e,Be){return le(this,ie,_e,Be,!1)};function ae(ve,ie,_e,Be){_e=Number(_e)||0;let Ze=ve.length-_e;Be?(Be=Number(Be),Be>Ze&&(Be=Ze)):Be=Ze;let $t=ie.length;Be>$t/2&&(Be=$t/2);let at;for(at=0;at<Be;++at){let zt=parseInt(ie.substr(at*2,2),16);if(Er(zt))return at;ve[_e+at]=zt}return at}function W(ve,ie,_e,Be){return rt(Le(ie,ve.length-_e),ve,_e,Be)}function se(ve,ie,_e,Be){return rt(V(ie),ve,_e,Be)}function O(ve,ie,_e,Be){return rt(_t(ie),ve,_e,Be)}function s(ve,ie,_e,Be){return rt(Qe(ie,ve.length-_e),ve,_e,Be)}d.prototype.write=function(ie,_e,Be,Ze){if(_e===void 0)Ze="utf8",Be=this.length,_e=0;else if(Be===void 0&&typeof _e=="string")Ze=_e,Be=this.length,_e=0;else if(isFinite(_e))_e=_e>>>0,isFinite(Be)?(Be=Be>>>0,Ze===void 0&&(Ze="utf8")):(Ze=Be,Be=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let $t=this.length-_e;if((Be===void 0||Be>$t)&&(Be=$t),ie.length>0&&(Be<0||_e<0)||_e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ze||(Ze="utf8");let at=!1;for(;;)switch(Ze){case"hex":return ae(this,ie,_e,Be);case"utf8":case"utf-8":return W(this,ie,_e,Be);case"ascii":case"latin1":case"binary":return se(this,ie,_e,Be);case"base64":return O(this,ie,_e,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,ie,_e,Be);default:if(at)throw new TypeError("Unknown encoding: "+Ze);Ze=(""+Ze).toLowerCase(),at=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function l(ve,ie,_e){return ie===0&&_e===ve.length?e.fromByteArray(ve):e.fromByteArray(ve.slice(ie,_e))}function A(ve,ie,_e){_e=Math.min(ve.length,_e);let Be=[],Ze=ie;for(;Ze<_e;){let $t=ve[Ze],at=null,zt=$t>239?4:$t>223?3:$t>191?2:1;if(Ze+zt<=_e){let Hr,St,Yt,qr;switch(zt){case 1:$t<128&&(at=$t);break;case 2:Hr=ve[Ze+1],(Hr&192)===128&&(qr=($t&31)<<6|Hr&63,qr>127&&(at=qr));break;case 3:Hr=ve[Ze+1],St=ve[Ze+2],(Hr&192)===128&&(St&192)===128&&(qr=($t&15)<<12|(Hr&63)<<6|St&63,qr>2047&&(qr<55296||qr>57343)&&(at=qr));break;case 4:Hr=ve[Ze+1],St=ve[Ze+2],Yt=ve[Ze+3],(Hr&192)===128&&(St&192)===128&&(Yt&192)===128&&(qr=($t&15)<<18|(Hr&63)<<12|(St&63)<<6|Yt&63,qr>65535&&qr<1114112&&(at=qr))}}at===null?(at=65533,zt=1):at>65535&&(at-=65536,Be.push(at>>>10&1023|55296),at=56320|at&1023),Be.push(at),Ze+=zt}return E(Be)}let m=4096;function E(ve){let ie=ve.length;if(ie<=m)return String.fromCharCode.apply(String,ve);let _e="",Be=0;for(;Be<ie;)_e+=String.fromCharCode.apply(String,ve.slice(Be,Be+=m));return _e}function w(ve,ie,_e){let Be="";_e=Math.min(ve.length,_e);for(let Ze=ie;Ze<_e;++Ze)Be+=String.fromCharCode(ve[Ze]&127);return Be}function x(ve,ie,_e){let Be="";_e=Math.min(ve.length,_e);for(let Ze=ie;Ze<_e;++Ze)Be+=String.fromCharCode(ve[Ze]);return Be}function R(ve,ie,_e){let Be=ve.length;(!ie||ie<0)&&(ie=0),(!_e||_e<0||_e>Be)&&(_e=Be);let Ze="";for(let $t=ie;$t<_e;++$t)Ze+=mt[ve[$t]];return Ze}function u(ve,ie,_e){let Be=ve.slice(ie,_e),Ze="";for(let $t=0;$t<Be.length-1;$t+=2)Ze+=String.fromCharCode(Be[$t]+Be[$t+1]*256);return Ze}d.prototype.slice=function(ie,_e){let Be=this.length;ie=~~ie,_e=_e===void 0?Be:~~_e,ie<0?(ie+=Be,ie<0&&(ie=0)):ie>Be&&(ie=Be),_e<0?(_e+=Be,_e<0&&(_e=0)):_e>Be&&(_e=Be),_e<ie&&(_e=ie);let Ze=this.subarray(ie,_e);return Object.setPrototypeOf(Ze,d.prototype),Ze};function C(ve,ie,_e){if(ve%1!==0||ve<0)throw new RangeError("offset is not uint");if(ve+ie>_e)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=this[ie],$t=1,at=0;for(;++at<_e&&($t*=256);)Ze+=this[ie+at]*$t;return Ze},d.prototype.readUintBE=d.prototype.readUIntBE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=this[ie+--_e],$t=1;for(;_e>0&&($t*=256);)Ze+=this[ie+--_e]*$t;return Ze},d.prototype.readUint8=d.prototype.readUInt8=function(ie,_e){return ie=ie>>>0,_e||C(ie,1,this.length),this[ie]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(ie,_e){return ie=ie>>>0,_e||C(ie,2,this.length),this[ie]|this[ie+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(ie,_e){return ie=ie>>>0,_e||C(ie,2,this.length),this[ie]<<8|this[ie+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),(this[ie]|this[ie+1]<<8|this[ie+2]<<16)+this[ie+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),this[ie]*16777216+(this[ie+1]<<16|this[ie+2]<<8|this[ie+3])},d.prototype.readBigUInt64LE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=_e+this[++ie]*2**8+this[++ie]*2**16+this[++ie]*2**24,$t=this[++ie]+this[++ie]*2**8+this[++ie]*2**16+Be*2**24;return BigInt(Ze)+(BigInt($t)<<BigInt(32))}),d.prototype.readBigUInt64BE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=_e*2**24+this[++ie]*2**16+this[++ie]*2**8+this[++ie],$t=this[++ie]*2**24+this[++ie]*2**16+this[++ie]*2**8+Be;return(BigInt(Ze)<<BigInt(32))+BigInt($t)}),d.prototype.readIntLE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=this[ie],$t=1,at=0;for(;++at<_e&&($t*=256);)Ze+=this[ie+at]*$t;return $t*=128,Ze>=$t&&(Ze-=Math.pow(2,8*_e)),Ze},d.prototype.readIntBE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=_e,$t=1,at=this[ie+--Ze];for(;Ze>0&&($t*=256);)at+=this[ie+--Ze]*$t;return $t*=128,at>=$t&&(at-=Math.pow(2,8*_e)),at},d.prototype.readInt8=function(ie,_e){return ie=ie>>>0,_e||C(ie,1,this.length),this[ie]&128?(255-this[ie]+1)*-1:this[ie]},d.prototype.readInt16LE=function(ie,_e){ie=ie>>>0,_e||C(ie,2,this.length);let Be=this[ie]|this[ie+1]<<8;return Be&32768?Be|4294901760:Be},d.prototype.readInt16BE=function(ie,_e){ie=ie>>>0,_e||C(ie,2,this.length);let Be=this[ie+1]|this[ie]<<8;return Be&32768?Be|4294901760:Be},d.prototype.readInt32LE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),this[ie]|this[ie+1]<<8|this[ie+2]<<16|this[ie+3]<<24},d.prototype.readInt32BE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),this[ie]<<24|this[ie+1]<<16|this[ie+2]<<8|this[ie+3]},d.prototype.readBigInt64LE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=this[ie+4]+this[ie+5]*2**8+this[ie+6]*2**16+(Be<<24);return(BigInt(Ze)<<BigInt(32))+BigInt(_e+this[++ie]*2**8+this[++ie]*2**16+this[++ie]*2**24)}),d.prototype.readBigInt64BE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=(_e<<24)+this[++ie]*2**16+this[++ie]*2**8+this[++ie];return(BigInt(Ze)<<BigInt(32))+BigInt(this[++ie]*2**24+this[++ie]*2**16+this[++ie]*2**8+Be)}),d.prototype.readFloatLE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),t.read(this,ie,!0,23,4)},d.prototype.readFloatBE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),t.read(this,ie,!1,23,4)},d.prototype.readDoubleLE=function(ie,_e){return ie=ie>>>0,_e||C(ie,8,this.length),t.read(this,ie,!0,52,8)},d.prototype.readDoubleBE=function(ie,_e){return ie=ie>>>0,_e||C(ie,8,this.length),t.read(this,ie,!1,52,8)};function U(ve,ie,_e,Be,Ze,$t){if(!d.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(ie>Ze||ie<$t)throw new RangeError('"value" argument is out of bounds');if(_e+Be>ve.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,Be=Be>>>0,!Ze){let zt=Math.pow(2,8*Be)-1;U(this,ie,_e,Be,zt,0)}let $t=1,at=0;for(this[_e]=ie&255;++at<Be&&($t*=256);)this[_e+at]=ie/$t&255;return _e+Be},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,Be=Be>>>0,!Ze){let zt=Math.pow(2,8*Be)-1;U(this,ie,_e,Be,zt,0)}let $t=Be-1,at=1;for(this[_e+$t]=ie&255;--$t>=0&&(at*=256);)this[_e+$t]=ie/at&255;return _e+Be},d.prototype.writeUint8=d.prototype.writeUInt8=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,1,255,0),this[_e]=ie&255,_e+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,65535,0),this[_e]=ie&255,this[_e+1]=ie>>>8,_e+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,65535,0),this[_e]=ie>>>8,this[_e+1]=ie&255,_e+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,4294967295,0),this[_e+3]=ie>>>24,this[_e+2]=ie>>>16,this[_e+1]=ie>>>8,this[_e]=ie&255,_e+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,4294967295,0),this[_e]=ie>>>24,this[_e+1]=ie>>>16,this[_e+2]=ie>>>8,this[_e+3]=ie&255,_e+4};function F(ve,ie,_e,Be,Ze){ze(ie,Be,Ze,ve,_e,7);let $t=Number(ie&BigInt(4294967295));ve[_e++]=$t,$t=$t>>8,ve[_e++]=$t,$t=$t>>8,ve[_e++]=$t,$t=$t>>8,ve[_e++]=$t;let at=Number(ie>>BigInt(32)&BigInt(4294967295));return ve[_e++]=at,at=at>>8,ve[_e++]=at,at=at>>8,ve[_e++]=at,at=at>>8,ve[_e++]=at,_e}function X(ve,ie,_e,Be,Ze){ze(ie,Be,Ze,ve,_e,7);let $t=Number(ie&BigInt(4294967295));ve[_e+7]=$t,$t=$t>>8,ve[_e+6]=$t,$t=$t>>8,ve[_e+5]=$t,$t=$t>>8,ve[_e+4]=$t;let at=Number(ie>>BigInt(32)&BigInt(4294967295));return ve[_e+3]=at,at=at>>8,ve[_e+2]=at,at=at>>8,ve[_e+1]=at,at=at>>8,ve[_e]=at,_e+8}d.prototype.writeBigUInt64LE=Ht(function(ie,_e=0){return F(this,ie,_e,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Ht(function(ie,_e=0){return X(this,ie,_e,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,!Ze){let Hr=Math.pow(2,8*Be-1);U(this,ie,_e,Be,Hr-1,-Hr)}let $t=0,at=1,zt=0;for(this[_e]=ie&255;++$t<Be&&(at*=256);)ie<0&&zt===0&&this[_e+$t-1]!==0&&(zt=1),this[_e+$t]=(ie/at>>0)-zt&255;return _e+Be},d.prototype.writeIntBE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,!Ze){let Hr=Math.pow(2,8*Be-1);U(this,ie,_e,Be,Hr-1,-Hr)}let $t=Be-1,at=1,zt=0;for(this[_e+$t]=ie&255;--$t>=0&&(at*=256);)ie<0&&zt===0&&this[_e+$t+1]!==0&&(zt=1),this[_e+$t]=(ie/at>>0)-zt&255;return _e+Be},d.prototype.writeInt8=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,1,127,-128),ie<0&&(ie=255+ie+1),this[_e]=ie&255,_e+1},d.prototype.writeInt16LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,32767,-32768),this[_e]=ie&255,this[_e+1]=ie>>>8,_e+2},d.prototype.writeInt16BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,32767,-32768),this[_e]=ie>>>8,this[_e+1]=ie&255,_e+2},d.prototype.writeInt32LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,2147483647,-2147483648),this[_e]=ie&255,this[_e+1]=ie>>>8,this[_e+2]=ie>>>16,this[_e+3]=ie>>>24,_e+4},d.prototype.writeInt32BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,2147483647,-2147483648),ie<0&&(ie=4294967295+ie+1),this[_e]=ie>>>24,this[_e+1]=ie>>>16,this[_e+2]=ie>>>8,this[_e+3]=ie&255,_e+4},d.prototype.writeBigInt64LE=Ht(function(ie,_e=0){return F(this,ie,_e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Ht(function(ie,_e=0){return X(this,ie,_e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(ve,ie,_e,Be,Ze,$t){if(_e+Be>ve.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("Index out of range")}function he(ve,ie,_e,Be,Ze){return ie=+ie,_e=_e>>>0,Ze||Ae(ve,ie,_e,4),t.write(ve,ie,_e,Be,23,4),_e+4}d.prototype.writeFloatLE=function(ie,_e,Be){return he(this,ie,_e,!0,Be)},d.prototype.writeFloatBE=function(ie,_e,Be){return he(this,ie,_e,!1,Be)};function $e(ve,ie,_e,Be,Ze){return ie=+ie,_e=_e>>>0,Ze||Ae(ve,ie,_e,8),t.write(ve,ie,_e,Be,52,8),_e+8}d.prototype.writeDoubleLE=function(ie,_e,Be){return $e(this,ie,_e,!0,Be)},d.prototype.writeDoubleBE=function(ie,_e,Be){return $e(this,ie,_e,!1,Be)},d.prototype.copy=function(ie,_e,Be,Ze){if(!d.isBuffer(ie))throw new TypeError("argument should be a Buffer");if(Be||(Be=0),!Ze&&Ze!==0&&(Ze=this.length),_e>=ie.length&&(_e=ie.length),_e||(_e=0),Ze>0&&Ze<Be&&(Ze=Be),Ze===Be||ie.length===0||this.length===0)return 0;if(_e<0)throw new RangeError("targetStart out of bounds");if(Be<0||Be>=this.length)throw new RangeError("Index out of range");if(Ze<0)throw new RangeError("sourceEnd out of bounds");Ze>this.length&&(Ze=this.length),ie.length-_e<Ze-Be&&(Ze=ie.length-_e+Be);let $t=Ze-Be;return this===ie&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(_e,Be,Ze):Uint8Array.prototype.set.call(ie,this.subarray(Be,Ze),_e),$t},d.prototype.fill=function(ie,_e,Be,Ze){if(typeof ie=="string"){if(typeof _e=="string"?(Ze=_e,_e=0,Be=this.length):typeof Be=="string"&&(Ze=Be,Be=this.length),Ze!==void 0&&typeof Ze!="string")throw new TypeError("encoding must be a string");if(typeof Ze=="string"&&!d.isEncoding(Ze))throw new TypeError("Unknown encoding: "+Ze);if(ie.length===1){let at=ie.charCodeAt(0);(Ze==="utf8"&&at<128||Ze==="latin1")&&(ie=at)}}else typeof ie=="number"?ie=ie&255:typeof ie=="boolean"&&(ie=Number(ie));if(_e<0||this.length<_e||this.length<Be)throw new RangeError("Out of range index");if(Be<=_e)return this;_e=_e>>>0,Be=Be===void 0?this.length:Be>>>0,ie||(ie=0);let $t;if(typeof ie=="number")for($t=_e;$t<Be;++$t)this[$t]=ie;else{let at=d.isBuffer(ie)?ie:d.from(ie,Ze),zt=at.length;if(zt===0)throw new TypeError('The value "'+ie+'" is invalid for argument "value"');for($t=0;$t<Be-_e;++$t)this[$t+_e]=at[$t%zt]}return this};let Ge={};function Re(ve,ie,_e){Ge[ve]=class extends _e{constructor(){super(),Object.defineProperty(this,"message",{value:ie.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ve}]`,this.stack,delete this.name}get code(){return ve}set code(Ze){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ze,writable:!0})}toString(){return`${this.name} [${ve}]: ${this.message}`}}}Re("ERR_BUFFER_OUT_OF_BOUNDS",function(ve){return ve?`${ve} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Re("ERR_INVALID_ARG_TYPE",function(ve,ie){return`The "${ve}" argument must be of type number. Received type ${typeof ie}`},TypeError),Re("ERR_OUT_OF_RANGE",function(ve,ie,_e){let Be=`The value of "${ve}" is out of range.`,Ze=_e;return Number.isInteger(_e)&&Math.abs(_e)>2**32?Ze=Se(String(_e)):typeof _e=="bigint"&&(Ze=String(_e),(_e>BigInt(2)**BigInt(32)||_e<-(BigInt(2)**BigInt(32)))&&(Ze=Se(Ze)),Ze+="n"),Be+=` It must be ${ie}. Received ${Ze}`,Be},RangeError);function Se(ve){let ie="",_e=ve.length,Be=ve[0]==="-"?1:0;for(;_e>=Be+4;_e-=3)ie=`_${ve.slice(_e-3,_e)}${ie}`;return`${ve.slice(0,_e)}${ie}`}function ct(ve,ie,_e){te(ie,"offset"),(ve[ie]===void 0||ve[ie+_e]===void 0)&&Ue(ie,ve.length-(_e+1))}function ze(ve,ie,_e,Be,Ze,$t){if(ve>_e||ve<ie){let at=typeof ie=="bigint"?"n":"",zt;throw $t>3?ie===0||ie===BigInt(0)?zt=`>= 0${at} and < 2${at} ** ${($t+1)*8}${at}`:zt=`>= -(2${at} ** ${($t+1)*8-1}${at}) and < 2 ** ${($t+1)*8-1}${at}`:zt=`>= ${ie}${at} and <= ${_e}${at}`,new Ge.ERR_OUT_OF_RANGE("value",zt,ve)}ct(Be,Ze,$t)}function te(ve,ie){if(typeof ve!="number")throw new Ge.ERR_INVALID_ARG_TYPE(ie,"number",ve)}function Ue(ve,ie,_e){throw Math.floor(ve)!==ve?(te(ve,_e),new Ge.ERR_OUT_OF_RANGE(_e||"offset","an integer",ve)):ie<0?new Ge.ERR_BUFFER_OUT_OF_BOUNDS:new Ge.ERR_OUT_OF_RANGE(_e||"offset",`>= ${_e?1:0} and <= ${ie}`,ve)}let oe=/[^+/0-9A-Za-z-_]/g;function ge(ve){if(ve=ve.split("=")[0],ve=ve.trim().replace(oe,""),ve.length<2)return"";for(;ve.length%4!==0;)ve=ve+"=";return ve}function Le(ve,ie){ie=ie||1/0;let _e,Be=ve.length,Ze=null,$t=[];for(let at=0;at<Be;++at){if(_e=ve.charCodeAt(at),_e>55295&&_e<57344){if(!Ze){if(_e>56319){(ie-=3)>-1&&$t.push(239,191,189);continue}else if(at+1===Be){(ie-=3)>-1&&$t.push(239,191,189);continue}Ze=_e;continue}if(_e<56320){(ie-=3)>-1&&$t.push(239,191,189),Ze=_e;continue}_e=(Ze-55296<<10|_e-56320)+65536}else Ze&&(ie-=3)>-1&&$t.push(239,191,189);if(Ze=null,_e<128){if((ie-=1)<0)break;$t.push(_e)}else if(_e<2048){if((ie-=2)<0)break;$t.push(_e>>6|192,_e&63|128)}else if(_e<65536){if((ie-=3)<0)break;$t.push(_e>>12|224,_e>>6&63|128,_e&63|128)}else if(_e<1114112){if((ie-=4)<0)break;$t.push(_e>>18|240,_e>>12&63|128,_e>>6&63|128,_e&63|128)}else throw new Error("Invalid code point")}return $t}function V(ve){let ie=[];for(let _e=0;_e<ve.length;++_e)ie.push(ve.charCodeAt(_e)&255);return ie}function Qe(ve,ie){let _e,Be,Ze,$t=[];for(let at=0;at<ve.length&&!((ie-=2)<0);++at)_e=ve.charCodeAt(at),Be=_e>>8,Ze=_e%256,$t.push(Ze),$t.push(Be);return $t}function _t(ve){return e.toByteArray(ge(ve))}function rt(ve,ie,_e,Be){let Ze;for(Ze=0;Ze<Be&&!(Ze+_e>=ie.length||Ze>=ve.length);++Ze)ie[Ze+_e]=ve[Ze];return Ze}function At(ve,ie){return ve instanceof ie||ve!=null&&ve.constructor!=null&&ve.constructor.name!=null&&ve.constructor.name===ie.name}function Er(ve){return ve!==ve}let mt=(function(){let ve="0123456789abcdef",ie=new Array(256);for(let _e=0;_e<16;++_e){let Be=_e*16;for(let Ze=0;Ze<16;++Ze)ie[Be+Ze]=ve[_e]+ve[Ze]}return ie})();function Ht(ve){return typeof BigInt>"u"?zr:ve}function zr(){throw new Error("BigInt not supported")}return k8}var BM,t9e,$H,r9e,k8,n9e,$S,fe,$Rt,YRt,mh=tn(()=>{"use strict";J();K();z();BM={},t9e=!1;$H={},r9e=!1;k8={},n9e=!1;$S=KRt();$S.Buffer;$S.SlowBuffer;$S.INSPECT_MAX_BYTES;$S.kMaxLength;fe=$S.Buffer,$Rt=$S.INSPECT_MAX_BYTES,YRt=$S.kMaxLength});var K=tn(()=>{"use strict";mh()});var i9e=ir(ine=>{"use strict";J();K();z();Object.defineProperty(ine,"__esModule",{value:!0});function WRt(e){var t=4,r=e.length,i=r%t;if(!i)return e;var n=r,o=t-i,d=r+o,g=fe.alloc(d);for(g.write(e);o--;)g.write("=",n++);return g.toString()}ine.default=WRt});var a9e=ir(sne=>{"use strict";J();K();z();Object.defineProperty(sne,"__esModule",{value:!0});var XRt=i9e();function o9e(e,t){return t===void 0&&(t="utf8"),fe.isBuffer(e)?one(e.toString("base64")):one(fe.from(e,t).toString("base64"))}function ZRt(e,t){return t===void 0&&(t="utf8"),fe.from(ane(e),"base64").toString(t)}function ane(e){return e=e.toString(),XRt.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function one(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function jRt(e){return fe.from(ane(e),"base64")}var rO=o9e;rO.encode=o9e;rO.decode=ZRt;rO.toBase64=ane;rO.fromBase64=one;rO.toBuffer=jRt;sne.default=rO});var Cg=ir((wSn,YH)=>{"use strict";J();K();z();YH.exports=a9e().default;YH.exports.default=YH.exports});function iu(){iu.init.call(this)}function WH(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function g9e(e){return e._maxListeners===void 0?iu.defaultMaxListeners:e._maxListeners}function d9e(e,t,r,i){var n,o,d,g;if(WH(r),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),d=o[t]),d===void 0)d=o[t]=r,++e._eventsCount;else if(typeof d=="function"?d=o[t]=i?[r,d]:[d,r]:i?d.unshift(r):d.push(r),(n=g9e(e))>0&&d.length>n&&!d.warned){d.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+d.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=e,y.type=t,y.count=d.length,g=y,console&&console.warn&&console.warn(g)}return e}function eSt(){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 f9e(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=eSt.bind(i);return n.listener=r,i.wrapFn=n,n}function l9e(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?(function(o){for(var d=new Array(o.length),g=0;g<d.length;++g)d[g]=o[g].listener||o[g];return d})(n):_9e(n,n.length)}function h9e(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}function _9e(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}var A9e,p9e,nO,s9e,c9e,u9e,xc,YS=tn(()=>{"use strict";J();K();z();nO=typeof Reflect=="object"?Reflect:null,s9e=nO&&typeof nO.apply=="function"?nO.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};p9e=nO&&typeof nO.ownKeys=="function"?nO.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};c9e=Number.isNaN||function(e){return e!=e};A9e=iu,iu.EventEmitter=iu,iu.prototype._events=void 0,iu.prototype._eventsCount=0,iu.prototype._maxListeners=void 0;u9e=10;Object.defineProperty(iu,"defaultMaxListeners",{enumerable:!0,get:function(){return u9e},set:function(e){if(typeof e!="number"||e<0||c9e(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u9e=e}}),iu.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},iu.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||c9e(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},iu.prototype.getMaxListeners=function(){return g9e(this)},iu.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i=e==="error",n=this._events;if(n!==void 0)i=i&&n.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var d=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw d.context=o,d}var g=n[e];if(g===void 0)return!1;if(typeof g=="function")s9e(g,this,t);else{var y=g.length,_=_9e(g,y);for(r=0;r<y;++r)s9e(_[r],this,t)}return!0},iu.prototype.addListener=function(e,t){return d9e(this,e,t,!1)},iu.prototype.on=iu.prototype.addListener,iu.prototype.prependListener=function(e,t){return d9e(this,e,t,!0)},iu.prototype.once=function(e,t){return WH(t),this.on(e,f9e(this,e,t)),this},iu.prototype.prependOnceListener=function(e,t){return WH(t),this.prependListener(e,f9e(this,e,t)),this},iu.prototype.removeListener=function(e,t){var r,i,n,o,d;if(WH(t),(i=this._events)===void 0)return this;if((r=i[e])===void 0)return this;if(r===t||r.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){d=r[o].listener,n=o;break}if(n<0)return this;n===0?r.shift():(function(g,y){for(;y+1<g.length;y++)g[y]=g[y+1];g.pop()})(r,n),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,d||t)}return this},iu.prototype.off=iu.prototype.removeListener,iu.prototype.removeAllListeners=function(e){var t,r,i;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var n,o=Object.keys(r);for(i=0;i<o.length;++i)(n=o[i])!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=r[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},iu.prototype.listeners=function(e){return l9e(this,e,!0)},iu.prototype.rawListeners=function(e){return l9e(this,e,!1)},iu.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):h9e.call(e,t)},iu.prototype.listenerCount=h9e,iu.prototype.eventNames=function(){return this._eventsCount>0?p9e(this._events):[]};xc=A9e;xc.EventEmitter;xc.defaultMaxListeners;xc.init;xc.listenerCount;xc.EventEmitter;xc.defaultMaxListeners;xc.init;xc.listenerCount});function cne(){throw new Error("setTimeout has not been defined")}function une(){throw new Error("clearTimeout has not been defined")}function b9e(e){if(mv===setTimeout)return setTimeout(e,0);if((mv===cne||!mv)&&setTimeout)return mv=setTimeout,setTimeout(e,0);try{return mv(e,0)}catch{try{return mv.call(null,e,0)}catch{return mv.call(this||oO,e,0)}}}function tSt(){iO&&P8&&(iO=!1,P8.length?bv=P8.concat(bv):XH=-1,bv.length&&E9e())}function E9e(){if(!iO){var e=b9e(tSt);iO=!0;for(var t=bv.length;t;){for(P8=bv,bv=[];++XH<t;)P8&&P8[XH].run();XH=-1,t=bv.length}P8=null,iO=!1,(function(r){if(yv===clearTimeout)return clearTimeout(r);if((yv===une||!yv)&&clearTimeout)return yv=clearTimeout,clearTimeout(r);try{yv(r)}catch{try{return yv.call(null,r)}catch{return yv.call(this||oO,r)}}})(e)}}function m9e(e,t){(this||oO).fun=e,(this||oO).array=t}function _v(){}var y9e,mv,yv,oO,Cd,P8,bv,iO,XH,Mo,Ev=tn(()=>{"use strict";J();K();z();oO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Cd=y9e={};(function(){try{mv=typeof setTimeout=="function"?setTimeout:cne}catch{mv=cne}try{yv=typeof clearTimeout=="function"?clearTimeout:une}catch{yv=une}})();bv=[],iO=!1,XH=-1;Cd.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];bv.push(new m9e(e,t)),bv.length!==1||iO||b9e(E9e)},m9e.prototype.run=function(){(this||oO).fun.apply(null,(this||oO).array)},Cd.title="browser",Cd.browser=!0,Cd.env={},Cd.argv=[],Cd.version="",Cd.versions={},Cd.on=_v,Cd.addListener=_v,Cd.once=_v,Cd.off=_v,Cd.removeListener=_v,Cd.removeAllListeners=_v,Cd.emit=_v,Cd.prependListener=_v,Cd.prependOnceListener=_v,Cd.listeners=function(e){return[]},Cd.binding=function(e){throw new Error("process.binding is not supported")},Cd.cwd=function(){return"/"},Cd.chdir=function(e){throw new Error("process.chdir is not supported")},Cd.umask=function(){return 0};Mo=y9e;Mo.addListener;Mo.argv;Mo.binding;Mo.browser;Mo.chdir;Mo.cwd;Mo.emit;Mo.env;Mo.listeners;Mo.nextTick;Mo.off;Mo.on;Mo.once;Mo.prependListener;Mo.prependOnceListener;Mo.removeAllListeners;Mo.removeListener;Mo.title;Mo.umask;Mo.version;Mo.versions});function F8(e){return e.call.bind(e)}function PM(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}function S9e(e){return yp&&x1?T1(e)!==void 0:H9e(e)||G9e(e)||q9e(e)||V9e(e)||J9e(e)||z9e(e)||K9e(e)||$9e(e)||Y9e(e)||W9e(e)||X9e(e)}function H9e(e){return yp&&x1?T1(e)==="Uint8Array":Q0(e)==="[object Uint8Array]"||dSt(e)&&e.buffer!==void 0}function G9e(e){return yp&&x1?T1(e)==="Uint8ClampedArray":Q0(e)==="[object Uint8ClampedArray]"}function q9e(e){return yp&&x1?T1(e)==="Uint16Array":Q0(e)==="[object Uint16Array]"}function V9e(e){return yp&&x1?T1(e)==="Uint32Array":Q0(e)==="[object Uint32Array]"}function J9e(e){return yp&&x1?T1(e)==="Int8Array":Q0(e)==="[object Int8Array]"}function z9e(e){return yp&&x1?T1(e)==="Int16Array":Q0(e)==="[object Int16Array]"}function K9e(e){return yp&&x1?T1(e)==="Int32Array":Q0(e)==="[object Int32Array]"}function $9e(e){return yp&&x1?T1(e)==="Float32Array":Q0(e)==="[object Float32Array]"}function Y9e(e){return yp&&x1?T1(e)==="Float64Array":Q0(e)==="[object Float64Array]"}function W9e(e){return yp&&x1?T1(e)==="BigInt64Array":Q0(e)==="[object BigInt64Array]"}function X9e(e){return yp&&x1?T1(e)==="BigUint64Array":Q0(e)==="[object BigUint64Array]"}function ZH(e){return Q0(e)==="[object Map]"}function jH(e){return Q0(e)==="[object Set]"}function eG(e){return Q0(e)==="[object WeakMap]"}function dne(e){return Q0(e)==="[object WeakSet]"}function iG(e){return Q0(e)==="[object ArrayBuffer]"}function I9e(e){return typeof ArrayBuffer<"u"&&(iG.working?iG(e):e instanceof ArrayBuffer)}function oG(e){return Q0(e)==="[object DataView]"}function C9e(e){return typeof DataView<"u"&&(oG.working?oG(e):e instanceof DataView)}function aG(e){return Q0(e)==="[object SharedArrayBuffer]"}function w9e(e){return typeof SharedArrayBuffer<"u"&&(aG.working?aG(e):e instanceof SharedArrayBuffer)}function O9e(e){return PM(e,ASt)}function N9e(e){return PM(e,pSt)}function x9e(e){return PM(e,gSt)}function T9e(e){return U9e&&PM(e,F9e)}function B9e(e){return pne&&PM(e,Q9e)}function WS(e,t){var r={seen:[],stylize:ySt};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),gne(t)?r.showHidden=t:t&&yn._extend(r,t),U8(r.showHidden)&&(r.showHidden=!1),U8(r.depth)&&(r.depth=2),U8(r.colors)&&(r.colors=!1),U8(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=mSt),sG(r,e,r.depth)}function mSt(e,t){var r=WS.styles[t];return r?"\x1B["+WS.colors[r][0]+"m"+e+"\x1B["+WS.colors[r][1]+"m":e}function ySt(e,t){return e}function sG(e,t,r){if(e.customInspect&&t&&nG(t.inspect)&&t.inspect!==yn.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return cG(i)||(i=sG(e,i,r)),i}var n=(function(T,M){if(U8(M))return T.stylize("undefined","undefined");if(cG(M)){var D="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(D,"string")}if(eMe(M))return T.stylize(""+M,"number");if(gne(M))return T.stylize(""+M,"boolean");if(fG(M))return T.stylize("null","null")})(e,t);if(n)return n;var o=Object.keys(t),d=(function(T){var M={};return T.forEach((function(D,P){M[D]=!0})),M})(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),kM(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return fne(t);if(o.length===0){if(nG(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(DM(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(uG(t))return e.stylize(Date.prototype.toString.call(t),"date");if(kM(t))return fne(t)}var y,_="",I=!1,N=["{","}"];return j9e(t)&&(I=!0,N=["[","]"]),nG(t)&&(_=" [Function"+(t.name?": "+t.name:"")+"]"),DM(t)&&(_=" "+RegExp.prototype.toString.call(t)),uG(t)&&(_=" "+Date.prototype.toUTCString.call(t)),kM(t)&&(_=" "+fne(t)),o.length!==0||I&&t.length!=0?r<0?DM(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),y=I?(function(T,M,D,P,G){for(var q=[],Y=0,ne=M.length;Y<ne;++Y)tMe(M,String(Y))?q.push(lne(T,M,D,P,String(Y),!0)):q.push("");return G.forEach((function(ce){ce.match(/^\d+$/)||q.push(lne(T,M,D,P,ce,!0))})),q})(e,t,r,d,o):o.map((function(T){return lne(e,t,r,d,T,I)})),e.seen.pop(),(function(T,M,D){var P=0;return T.reduce((function(G,q){return P++,q.indexOf(`
|
|
`)>=0&&P++,G+q.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?D[0]+(M===""?"":M+`
|
|
`)+" "+T.join(`,
|
|
`)+" "+D[1]:D[0]+M+" "+T.join(", ")+" "+D[1]})(y,_,N)):N[0]+_+N[1]}function fne(e){return"["+Error.prototype.toString.call(e)+"]"}function lne(e,t,r,i,n,o){var d,g,y;if((y=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?g=y.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):y.set&&(g=e.stylize("[Setter]","special")),tMe(i,n)||(d="["+n+"]"),g||(e.seen.indexOf(y.value)<0?(g=fG(r)?sG(e,y.value,null):sG(e,y.value,r-1)).indexOf(`
|
|
`)>-1&&(g=o?g.split(`
|
|
`).map((function(_){return" "+_})).join(`
|
|
`).substr(2):`
|
|
`+g.split(`
|
|
`).map((function(_){return" "+_})).join(`
|
|
`)):g=e.stylize("[Circular]","special")),U8(d)){if(o&&n.match(/^\d+$/))return g;(d=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(d=d.substr(1,d.length-2),d=e.stylize(d,"name")):(d=d.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),d=e.stylize(d,"string"))}return d+": "+g}function j9e(e){return Array.isArray(e)}function gne(e){return typeof e=="boolean"}function fG(e){return e===null}function eMe(e){return typeof e=="number"}function cG(e){return typeof e=="string"}function U8(e){return e===void 0}function DM(e){return aO(e)&&_ne(e)==="[object RegExp]"}function aO(e){return typeof e=="object"&&e!==null}function uG(e){return aO(e)&&_ne(e)==="[object Date]"}function kM(e){return aO(e)&&(_ne(e)==="[object Error]"||e instanceof Error)}function nG(e){return typeof e=="function"}function _ne(e){return Object.prototype.toString.call(e)}function hne(e){return e<10?"0"+e.toString(10):e.toString(10)}function ESt(){var e=new Date,t=[hne(e.getHours()),hne(e.getMinutes()),hne(e.getSeconds())].join(":");return[e.getDate(),bSt[e.getMonth()],t].join(" ")}function tMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vSt(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}var rSt,Ane,dG,D9e,nSt,iSt,oSt,aSt,sSt,k9e,P9e,v9e,cSt,uSt,ca,L9e,gs,dSt,fSt,lSt,U9e,pne,x1,yp,hSt,R9e,T1,Q0,ASt,pSt,gSt,F9e,Q9e,MM,yn,Py,M9e,_St,tG,Z9e,rG,bSt,L8,vv=tn(()=>{"use strict";J();K();z();Ev();rSt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ane=Object.prototype.toString,dG=function(e){return!(rSt&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&Ane.call(e)==="[object Arguments]"},D9e=function(e){return!!dG(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Ane.call(e)!=="[object Array]"&&Ane.call(e.callee)==="[object Function]"},nSt=(function(){return dG(arguments)})();dG.isLegacyArguments=D9e;iSt=nSt?dG:D9e,oSt=Object.prototype.toString,aSt=Function.prototype.toString,sSt=/^\s*(?:function)?\*/,k9e=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",P9e=Object.getPrototypeOf,v9e=(function(){if(!k9e)return!1;try{return Function("return function*() {}")()}catch{}})(),cSt=v9e?P9e(v9e):{},uSt=function(e){return typeof e=="function"&&(!!sSt.test(aSt.call(e))||(k9e?P9e(e)===cSt:oSt.call(e)==="[object GeneratorFunction]"))},ca=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},L9e=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},gs={},dSt=L9e,fSt=iSt,lSt=uSt;U9e=typeof BigInt<"u",pne=typeof Symbol<"u",x1=pne&&Symbol.toStringTag!==void 0,yp=typeof Uint8Array<"u",hSt=typeof ArrayBuffer<"u";yp&&x1&&(R9e=Object.getPrototypeOf(Uint8Array.prototype),T1=F8(Object.getOwnPropertyDescriptor(R9e,Symbol.toStringTag).get));Q0=F8(Object.prototype.toString),ASt=F8(Number.prototype.valueOf),pSt=F8(String.prototype.valueOf),gSt=F8(Boolean.prototype.valueOf);U9e&&(F9e=F8(BigInt.prototype.valueOf));pne&&(Q9e=F8(Symbol.prototype.valueOf));gs.isArgumentsObject=fSt,gs.isGeneratorFunction=lSt,gs.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},gs.isArrayBufferView=function(e){return hSt&&ArrayBuffer.isView?ArrayBuffer.isView(e):S9e(e)||C9e(e)},gs.isTypedArray=S9e,gs.isUint8Array=H9e,gs.isUint8ClampedArray=G9e,gs.isUint16Array=q9e,gs.isUint32Array=V9e,gs.isInt8Array=J9e,gs.isInt16Array=z9e,gs.isInt32Array=K9e,gs.isFloat32Array=$9e,gs.isFloat64Array=Y9e,gs.isBigInt64Array=W9e,gs.isBigUint64Array=X9e,ZH.working=typeof Map<"u"&&ZH(new Map),gs.isMap=function(e){return typeof Map<"u"&&(ZH.working?ZH(e):e instanceof Map)},jH.working=typeof Set<"u"&&jH(new Set),gs.isSet=function(e){return typeof Set<"u"&&(jH.working?jH(e):e instanceof Set)},eG.working=typeof WeakMap<"u"&&eG(new WeakMap),gs.isWeakMap=function(e){return typeof WeakMap<"u"&&(eG.working?eG(e):e instanceof WeakMap)},dne.working=typeof WeakSet<"u"&&dne(new WeakSet),gs.isWeakSet=function(e){return dne(e)},iG.working=typeof ArrayBuffer<"u"&&iG(new ArrayBuffer),gs.isArrayBuffer=I9e,oG.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&oG(new DataView(new ArrayBuffer(1),0,1)),gs.isDataView=C9e,aG.working=typeof SharedArrayBuffer<"u"&&aG(new SharedArrayBuffer),gs.isSharedArrayBuffer=w9e,gs.isAsyncFunction=function(e){return Q0(e)==="[object AsyncFunction]"},gs.isMapIterator=function(e){return Q0(e)==="[object Map Iterator]"},gs.isSetIterator=function(e){return Q0(e)==="[object Set Iterator]"},gs.isGeneratorObject=function(e){return Q0(e)==="[object Generator]"},gs.isWebAssemblyCompiledModule=function(e){return Q0(e)==="[object WebAssembly.Module]"},gs.isNumberObject=O9e,gs.isStringObject=N9e,gs.isBooleanObject=x9e,gs.isBigIntObject=T9e,gs.isSymbolObject=B9e,gs.isBoxedPrimitive=function(e){return O9e(e)||N9e(e)||x9e(e)||T9e(e)||B9e(e)},gs.isAnyArrayBuffer=function(e){return yp&&(I9e(e)||w9e(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(gs,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}));MM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,yn={},Py=Mo,M9e=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++)r[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return r},_St=/%[sdj%]/g;yn.format=function(e){if(!cG(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(WS(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,n=i.length,o=String(e).replace(_St,(function(g){if(g==="%%")return"%";if(r>=n)return g;switch(g){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return g}})),d=i[r];r<n;d=i[++r])fG(d)||!aO(d)?o+=" "+d:o+=" "+WS(d);return o},yn.deprecate=function(e,t){if(Py!==void 0&&Py.noDeprecation===!0)return e;if(Py===void 0)return function(){return yn.deprecate(e,t).apply(this||MM,arguments)};var r=!1;return function(){if(!r){if(Py.throwDeprecation)throw new Error(t);Py.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this||MM,arguments)}};tG={},Z9e=/^$/;Py.env.NODE_DEBUG&&(rG=Py.env.NODE_DEBUG,rG=rG.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Z9e=new RegExp("^"+rG+"$","i"));yn.debuglog=function(e){if(e=e.toUpperCase(),!tG[e])if(Z9e.test(e)){var t=Py.pid;tG[e]=function(){var r=yn.format.apply(yn,arguments);console.error("%s %d: %s",e,t,r)}}else tG[e]=function(){};return tG[e]},yn.inspect=WS,WS.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},WS.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},yn.types=gs,yn.isArray=j9e,yn.isBoolean=gne,yn.isNull=fG,yn.isNullOrUndefined=function(e){return e==null},yn.isNumber=eMe,yn.isString=cG,yn.isSymbol=function(e){return typeof e=="symbol"},yn.isUndefined=U8,yn.isRegExp=DM,yn.types.isRegExp=DM,yn.isObject=aO,yn.isDate=uG,yn.types.isDate=uG,yn.isError=kM,yn.types.isNativeError=kM,yn.isFunction=nG,yn.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},yn.isBuffer=L9e;bSt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];yn.log=function(){console.log("%s - %s",ESt(),yn.format.apply(yn,arguments))},yn.inherits=ca,yn._extend=function(e,t){if(!t||!aO(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};L8=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;yn.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(L8&&e[L8]){var t;if(typeof(t=e[L8])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,L8,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var r,i,n=new Promise((function(g,y){r=g,i=y})),o=[],d=0;d<arguments.length;d++)o.push(arguments[d]);o.push((function(g,y){g?i(g):r(y)}));try{e.apply(this||MM,o)}catch(g){i(g)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),L8&&Object.defineProperty(t,L8,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,M9e(e))},yn.promisify.custom=L8,yn.callbackify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var o=this||MM,d=function(){return n.apply(o,arguments)};e.apply(this||MM,r).then((function(g){Py.nextTick(d.bind(null,null,g))}),(function(g){Py.nextTick(vSt.bind(null,g,d))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,M9e(e)),t}});var WSn,XSn,ZSn,jSn,e6n,t6n,r6n,n6n,i6n,o6n,a6n,s6n,c6n,u6n,d6n,f6n,l6n,h6n,A6n,p6n,g6n,_6n,m6n,mne,y6n,b6n,E6n,sO=tn(()=>{"use strict";J();K();z();vv();Ev();yn._extend;yn.callbackify;yn.debuglog;yn.deprecate;yn.format;yn.inherits;yn.inspect;yn.isArray;yn.isBoolean;yn.isBuffer;yn.isDate;yn.isError;yn.isFunction;yn.isNull;yn.isNullOrUndefined;yn.isNumber;yn.isObject;yn.isPrimitive;yn.isRegExp;yn.isString;yn.isSymbol;yn.isUndefined;yn.log;yn.promisify;WSn=yn._extend,XSn=yn.callbackify,ZSn=yn.debuglog,jSn=yn.deprecate,e6n=yn.format,t6n=yn.inherits,r6n=yn.inspect,n6n=yn.isArray,i6n=yn.isBoolean,o6n=yn.isBuffer,a6n=yn.isDate,s6n=yn.isError,c6n=yn.isFunction,u6n=yn.isNull,d6n=yn.isNullOrUndefined,f6n=yn.isNumber,l6n=yn.isObject,h6n=yn.isPrimitive,A6n=yn.isRegExp,p6n=yn.isString,g6n=yn.isSymbol,_6n=yn.isUndefined,m6n=yn.log,mne=yn.promisify,y6n=yn.types,b6n=self.TextEncoder,E6n=self.TextDecoder});function RSt(){if(rMe)return yne;rMe=!0;var e=yne={},t,r;function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=i}catch{t=i}try{typeof clearTimeout=="function"?r=clearTimeout:r=n}catch{r=n}})();function o(P){if(t===setTimeout)return setTimeout(P,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(P,0);try{return t(P,0)}catch{try{return t.call(null,P,0)}catch{return t.call(this||cO,P,0)}}}function d(P){if(r===clearTimeout)return clearTimeout(P);if((r===n||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(P);try{return r(P)}catch{try{return r.call(null,P)}catch{return r.call(this||cO,P)}}}var g=[],y=!1,_,I=-1;function N(){!y||!_||(y=!1,_.length?g=_.concat(g):I=-1,g.length&&T())}function T(){if(!y){var P=o(N);y=!0;for(var G=g.length;G;){for(_=g,g=[];++I<G;)_&&_[I].run();I=-1,G=g.length}_=null,y=!1,d(P)}}e.nextTick=function(P){var G=new Array(arguments.length-1);if(arguments.length>1)for(var q=1;q<arguments.length;q++)G[q-1]=arguments[q];g.push(new M(P,G)),g.length===1&&!y&&o(T)};function M(P,G){(this||cO).fun=P,(this||cO).array=G}M.prototype.run=function(){(this||cO).fun.apply(null,(this||cO).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function D(){}return e.on=D,e.addListener=D,e.once=D,e.off=D,e.removeListener=D,e.removeAllListeners=D,e.emit=D,e.prependListener=D,e.prependOnceListener=D,e.listeners=function(P){return[]},e.binding=function(P){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(P){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},yne}var yne,rMe,cO,za,XS=tn(()=>{"use strict";J();K();z();yne={},rMe=!1,cO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;za=RSt();za.platform="browser";za.addListener;za.argv;za.binding;za.browser;za.chdir;za.cwd;za.emit;za.env;za.listeners;za.nextTick;za.off;za.on;za.once;za.prependListener;za.prependOnceListener;za.removeAllListeners;za.removeListener;za.title;za.umask;za.version;za.versions});function oMe(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("=");return r===-1&&(r=t),[r,r===t?0:4-r%4]}function SSt(e,t,r){for(var i,n,o=[],d=t;d<r;d+=3)i=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(255&e[d+2]),o.push(nm[(n=i)>>18&63]+nm[n>>12&63]+nm[n>>6&63]+nm[63&n]);return o.join("")}function Rv(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Hn.prototype),t}function Hn(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 Rne(e)}return pMe(e,t,r)}function pMe(e,t,r){if(typeof e=="string")return(function(o,d){if(typeof d=="string"&&d!==""||(d="utf8"),!Hn.isEncoding(d))throw new TypeError("Unknown encoding: "+d);var g=0|_Me(o,d),y=Rv(g),_=y.write(o,d);return _!==g&&(y=y.slice(0,_)),y})(e,t);if(ArrayBuffer.isView(e))return bne(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(Sv(e,ArrayBuffer)||e&&Sv(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Sv(e,SharedArrayBuffer)||e&&Sv(e.buffer,SharedArrayBuffer)))return sMe(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return Hn.from(i,t,r);var n=(function(o){if(Hn.isBuffer(o)){var d=0|Cne(o.length),g=Rv(d);return g.length===0||o.copy(g,0,0,d),g}if(o.length!==void 0)return typeof o.length!="number"||wne(o.length)?Rv(0):bne(o);if(o.type==="Buffer"&&Array.isArray(o.data))return bne(o.data)})(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Hn.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)}function gMe(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 Rne(e){return gMe(e),Rv(e<0?0:0|Cne(e))}function bne(e){for(var t=e.length<0?0:0|Cne(e.length),r=Rv(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function sMe(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');var i;return i=t===void 0&&r===void 0?new Uint8Array(e):r===void 0?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(i,Hn.prototype),i}function Cne(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function _Me(e,t){if(Hn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Sv(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);var r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Sne(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return EMe(e).length;default:if(n)return i?-1:Sne(e).length;t=(""+t).toLowerCase(),n=!0}}function CSt(e,t,r){var i=!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))return"";for(e||(e="utf8");;)switch(e){case"hex":return kSt(this,t,r);case"utf8":case"utf-8":return yMe(this,t,r);case"ascii":return MSt(this,t,r);case"latin1":case"binary":return DSt(this,t,r);case"base64":return BSt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return PSt(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function H8(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function cMe(e,t,r,i,n){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),wne(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(typeof t=="string"&&(t=Hn.from(t,i)),Hn.isBuffer(t))return t.length===0?-1:uMe(e,t,r,i,n);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):uMe(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function uMe(e,t,r,i,n){var o,d=1,g=e.length,y=t.length;if(i!==void 0&&((i=String(i).toLowerCase())==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;d=2,g/=2,y/=2,r/=2}function _(M,D){return d===1?M[D]:M.readUInt16BE(D*d)}if(n){var I=-1;for(o=r;o<g;o++)if(_(e,o)===_(t,I===-1?0:o-I)){if(I===-1&&(I=o),o-I+1===y)return I*d}else I!==-1&&(o-=o-I),I=-1}else for(r+y>g&&(r=g-y),o=r;o>=0;o--){for(var N=!0,T=0;T<y;T++)if(_(e,o+T)!==_(t,T)){N=!1;break}if(N)return o}return-1}function wSt(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var o=t.length;i>o/2&&(i=o/2);for(var d=0;d<i;++d){var g=parseInt(t.substr(2*d,2),16);if(wne(g))return d;e[r+d]=g}return d}function OSt(e,t,r,i){return pG(Sne(t,e.length-r),e,r,i)}function mMe(e,t,r,i){return pG((function(n){for(var o=[],d=0;d<n.length;++d)o.push(255&n.charCodeAt(d));return o})(t),e,r,i)}function NSt(e,t,r,i){return mMe(e,t,r,i)}function xSt(e,t,r,i){return pG(EMe(t),e,r,i)}function TSt(e,t,r,i){return pG((function(n,o){for(var d,g,y,_=[],I=0;I<n.length&&!((o-=2)<0);++I)d=n.charCodeAt(I),g=d>>8,y=d%256,_.push(y),_.push(g);return _})(t,e.length-r),e,r,i)}function BSt(e,t,r){return t===0&&r===e.length?vne.fromByteArray(e):vne.fromByteArray(e.slice(t,r))}function yMe(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,d,g,y,_=e[n],I=null,N=_>239?4:_>223?3:_>191?2:1;if(n+N<=r)switch(N){case 1:_<128&&(I=_);break;case 2:(192&(o=e[n+1]))==128&&(y=(31&_)<<6|63&o)>127&&(I=y);break;case 3:o=e[n+1],d=e[n+2],(192&o)==128&&(192&d)==128&&(y=(15&_)<<12|(63&o)<<6|63&d)>2047&&(y<55296||y>57343)&&(I=y);break;case 4:o=e[n+1],d=e[n+2],g=e[n+3],(192&o)==128&&(192&d)==128&&(192&g)==128&&(y=(15&_)<<18|(63&o)<<12|(63&d)<<6|63&g)>65535&&y<1114112&&(I=y)}I===null?(I=65533,N=1):I>65535&&(I-=65536,i.push(I>>>10&1023|55296),I=56320|1023&I),i.push(I),n+=N}return(function(T){var M=T.length;if(M<=4096)return String.fromCharCode.apply(String,T);for(var D="",P=0;P<M;)D+=String.fromCharCode.apply(String,T.slice(P,P+=4096));return D})(i)}function MSt(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function DSt(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function kSt(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",o=t;o<r;++o)n+=USt[e[o]];return n}function PSt(e,t,r){for(var i=e.slice(t,r),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function Wf(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")}function bp(e,t,r,i,n,o){if(!Hn.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function bMe(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function dMe(e,t,r,i,n){return t=+t,r>>>=0,n||bMe(e,0,r,4),uO.write(e,t,r,i,23,4),r+4}function fMe(e,t,r,i,n){return t=+t,r>>>=0,n||bMe(e,0,r,8),uO.write(e,t,r,i,52,8),r+8}function Sne(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],d=0;d<i;++d){if((r=e.charCodeAt(d))>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(d+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function EMe(e){return vne.toByteArray((function(t){if((t=(t=t.split("=")[0]).trim().replace(LSt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t})(e))}function pG(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function Sv(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function wne(e){return e!=e}function lMe(e,t){for(var r in e)t[r]=e[r]}function G8(e,t,r){return Ly(e,t,r)}function LM(e){var t;switch(this.encoding=(function(r){var i=(function(n){if(!n)return"utf8";for(var o;;)switch(n){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return n;default:if(o)return;n=(""+n).toLowerCase(),o=!0}})(r);if(typeof i!="string"&&(Ine.isEncoding===hMe||!hMe(r)))throw new Error("Unknown encoding: "+r);return i||r})(e),this.encoding){case"utf16le":this.text=QSt,this.end=HSt,t=4;break;case"utf8":this.fillLast=FSt,t=4;break;case"base64":this.text=GSt,this.end=qSt,t=3;break;default:return this.write=VSt,this.end=JSt,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ine.allocUnsafe(t)}function Ene(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function FSt(e){var t=this.lastTotal-this.lastNeed,r=(function(i,n,o){if((192&n[0])!=128)return i.lastNeed=0,"\uFFFD";if(i.lastNeed>1&&n.length>1){if((192&n[1])!=128)return i.lastNeed=1,"\uFFFD";if(i.lastNeed>2&&n.length>2&&(192&n[2])!=128)return i.lastNeed=2,"\uFFFD"}})(this,e);return r!==void 0?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function QSt(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function HSt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function GSt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function qSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function VSt(e){return e.toString(this.encoding)}function JSt(e){return e&&e.length?this.write(e):""}var AMe,nm,B1,nMe,lG,Q8,iMe,ISt,Vo,vne,uO,aMe,LSt,USt,hG,AG,Ly,Rs,yh,Ine,hMe,UM=tn(()=>{"use strict";J();K();z();for(AMe={byteLength:function(e){var t=oMe(e),r=t[0],i=t[1];return 3*(r+i)/4-i},toByteArray:function(e){var t,r,i=oMe(e),n=i[0],o=i[1],d=new nMe((function(_,I,N){return 3*(I+N)/4-N})(0,n,o)),g=0,y=o>0?n-4:n;for(r=0;r<y;r+=4)t=B1[e.charCodeAt(r)]<<18|B1[e.charCodeAt(r+1)]<<12|B1[e.charCodeAt(r+2)]<<6|B1[e.charCodeAt(r+3)],d[g++]=t>>16&255,d[g++]=t>>8&255,d[g++]=255&t;return o===2&&(t=B1[e.charCodeAt(r)]<<2|B1[e.charCodeAt(r+1)]>>4,d[g++]=255&t),o===1&&(t=B1[e.charCodeAt(r)]<<10|B1[e.charCodeAt(r+1)]<<4|B1[e.charCodeAt(r+2)]>>2,d[g++]=t>>8&255,d[g++]=255&t),d},fromByteArray:function(e){for(var t,r=e.length,i=r%3,n=[],o=0,d=r-i;o<d;o+=16383)n.push(SSt(e,o,o+16383>d?d:o+16383));return i===1?(t=e[r-1],n.push(nm[t>>2]+nm[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(nm[t>>10]+nm[t>>4&63]+nm[t<<2&63]+"=")),n.join("")}},nm=[],B1=[],nMe=typeof Uint8Array<"u"?Uint8Array:Array,lG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q8=0,iMe=lG.length;Q8<iMe;++Q8)nm[Q8]=lG[Q8],B1[lG.charCodeAt(Q8)]=Q8;B1[45]=62,B1[95]=63;ISt={read:function(e,t,r,i,n){var o,d,g=8*n-i-1,y=(1<<g)-1,_=y>>1,I=-7,N=r?n-1:0,T=r?-1:1,M=e[t+N];for(N+=T,o=M&(1<<-I)-1,M>>=-I,I+=g;I>0;o=256*o+e[t+N],N+=T,I-=8);for(d=o&(1<<-I)-1,o>>=-I,I+=i;I>0;d=256*d+e[t+N],N+=T,I-=8);if(o===0)o=1-_;else{if(o===y)return d?NaN:1/0*(M?-1:1);d+=Math.pow(2,i),o-=_}return(M?-1:1)*d*Math.pow(2,o-i)},write:function(e,t,r,i,n,o){var d,g,y,_=8*o-n-1,I=(1<<_)-1,N=I>>1,T=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:o-1,D=i?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,d=I):(d=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-d))<1&&(d--,y*=2),(t+=d+N>=1?T/y:T*Math.pow(2,1-N))*y>=2&&(d++,y/=2),d+N>=I?(g=0,d=I):d+N>=1?(g=(t*y-1)*Math.pow(2,n),d+=N):(g=t*Math.pow(2,N-1)*Math.pow(2,n),d=0));n>=8;e[r+M]=255&g,M+=D,g/=256,n-=8);for(d=d<<n|g,_+=n;_>0;e[r+M]=255&d,M+=D,d/=256,_-=8);e[r+M-D]|=128*P}},Vo={},vne=AMe,uO=ISt,aMe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Vo.Buffer=Hn,Vo.SlowBuffer=function(e){return+e!=e&&(e=0),Hn.alloc(+e)},Vo.INSPECT_MAX_BYTES=50;Vo.kMaxLength=2147483647,Hn.TYPED_ARRAY_SUPPORT=(function(){try{var 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}})(),Hn.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."),Object.defineProperty(Hn.prototype,"parent",{enumerable:!0,get:function(){if(Hn.isBuffer(this))return this.buffer}}),Object.defineProperty(Hn.prototype,"offset",{enumerable:!0,get:function(){if(Hn.isBuffer(this))return this.byteOffset}}),Hn.poolSize=8192,Hn.from=function(e,t,r){return pMe(e,t,r)},Object.setPrototypeOf(Hn.prototype,Uint8Array.prototype),Object.setPrototypeOf(Hn,Uint8Array),Hn.alloc=function(e,t,r){return(function(i,n,o){return gMe(i),i<=0?Rv(i):n!==void 0?typeof o=="string"?Rv(i).fill(n,o):Rv(i).fill(n):Rv(i)})(e,t,r)},Hn.allocUnsafe=function(e){return Rne(e)},Hn.allocUnsafeSlow=function(e){return Rne(e)},Hn.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Hn.prototype},Hn.compare=function(e,t){if(Sv(e,Uint8Array)&&(e=Hn.from(e,e.offset,e.byteLength)),Sv(t,Uint8Array)&&(t=Hn.from(t,t.offset,t.byteLength)),!Hn.isBuffer(e)||!Hn.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},Hn.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Hn.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Hn.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var i=Hn.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(Sv(o,Uint8Array)&&(o=Hn.from(o)),!Hn.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},Hn.byteLength=_Me,Hn.prototype._isBuffer=!0,Hn.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)H8(this,t,t+1);return this},Hn.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)H8(this,t,t+3),H8(this,t+1,t+2);return this},Hn.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)H8(this,t,t+7),H8(this,t+1,t+6),H8(this,t+2,t+5),H8(this,t+3,t+4);return this},Hn.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?yMe(this,0,e):CSt.apply(this,arguments)},Hn.prototype.toLocaleString=Hn.prototype.toString,Hn.prototype.equals=function(e){if(!Hn.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||Hn.compare(this,e)===0},Hn.prototype.inspect=function(){var e="",t=Vo.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},aMe&&(Hn.prototype[aMe]=Hn.prototype.inspect),Hn.prototype.compare=function(e,t,r,i,n){if(Sv(e,Uint8Array)&&(e=Hn.from(e,e.offset,e.byteLength)),!Hn.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),i===void 0&&(i=0),n===void 0&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),d=(r>>>=0)-(t>>>=0),g=Math.min(o,d),y=this.slice(i,n),_=e.slice(t,r),I=0;I<g;++I)if(y[I]!==_[I]){o=y[I],d=_[I];break}return o<d?-1:d<o?1:0},Hn.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},Hn.prototype.indexOf=function(e,t,r){return cMe(this,e,t,r,!0)},Hn.prototype.lastIndexOf=function(e,t,r){return cMe(this,e,t,r,!1)},Hn.prototype.write=function(e,t,r,i){if(t===void 0)i="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,i===void 0&&(i="utf8")):(i=r,r=void 0)}var n=this.length-t;if((r===void 0||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return wSt(this,e,t,r);case"utf8":case"utf-8":return OSt(this,e,t,r);case"ascii":return mMe(this,e,t,r);case"latin1":case"binary":return NSt(this,e,t,r);case"base64":return xSt(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return TSt(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},Hn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Hn.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,Hn.prototype),i},Hn.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||Wf(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},Hn.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||Wf(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},Hn.prototype.readUInt8=function(e,t){return e>>>=0,t||Wf(e,1,this.length),this[e]},Hn.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Wf(e,2,this.length),this[e]|this[e+1]<<8},Hn.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Wf(e,2,this.length),this[e]<<8|this[e+1]},Hn.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Wf(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Hn.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Wf(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Hn.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||Wf(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},Hn.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||Wf(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},Hn.prototype.readInt8=function(e,t){return e>>>=0,t||Wf(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Hn.prototype.readInt16LE=function(e,t){e>>>=0,t||Wf(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Hn.prototype.readInt16BE=function(e,t){e>>>=0,t||Wf(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Hn.prototype.readInt32LE=function(e,t){return e>>>=0,t||Wf(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Hn.prototype.readInt32BE=function(e,t){return e>>>=0,t||Wf(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Hn.prototype.readFloatLE=function(e,t){return e>>>=0,t||Wf(e,4,this.length),uO.read(this,e,!0,23,4)},Hn.prototype.readFloatBE=function(e,t){return e>>>=0,t||Wf(e,4,this.length),uO.read(this,e,!1,23,4)},Hn.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Wf(e,8,this.length),uO.read(this,e,!0,52,8)},Hn.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Wf(e,8,this.length),uO.read(this,e,!1,52,8)},Hn.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||bp(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},Hn.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||bp(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+r},Hn.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,1,255,0),this[t]=255&e,t+1},Hn.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Hn.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Hn.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Hn.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Hn.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);bp(this,e,t,r,n-1,-n)}var o=0,d=1,g=0;for(this[t]=255&e;++o<r&&(d*=256);)e<0&&g===0&&this[t+o-1]!==0&&(g=1),this[t+o]=(e/d>>0)-g&255;return t+r},Hn.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);bp(this,e,t,r,n-1,-n)}var o=r-1,d=1,g=0;for(this[t+o]=255&e;--o>=0&&(d*=256);)e<0&&g===0&&this[t+o+1]!==0&&(g=1),this[t+o]=(e/d>>0)-g&255;return t+r},Hn.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Hn.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Hn.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Hn.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Hn.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||bp(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Hn.prototype.writeFloatLE=function(e,t,r){return dMe(this,e,t,!0,r)},Hn.prototype.writeFloatBE=function(e,t,r){return dMe(this,e,t,!1,r)},Hn.prototype.writeDoubleLE=function(e,t,r){return fMe(this,e,t,!0,r)},Hn.prototype.writeDoubleBE=function(e,t,r){return fMe(this,e,t,!1,r)},Hn.prototype.copy=function(e,t,r,i){if(!Hn.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||i===0||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},Hn.prototype.fill=function(e,t,r,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Hn.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var n=e.charCodeAt(0);(i==="utf8"&&n<128||i==="latin1")&&(e=n)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(o=t;o<r;++o)this[o]=e;else{var d=Hn.isBuffer(e)?e:Hn.from(e,i),g=d.length;if(g===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=d[o%g]}return this};LSt=/[^+/0-9A-Za-z-_]/g;USt=(function(){for(var e=new Array(256),t=0;t<16;++t)for(var r=16*t,i=0;i<16;++i)e[r+i]="0123456789abcdef"[t]+"0123456789abcdef"[i];return e})();Vo.Buffer;Vo.INSPECT_MAX_BYTES;Vo.kMaxLength;hG={},AG=Vo,Ly=AG.Buffer;Ly.from&&Ly.alloc&&Ly.allocUnsafe&&Ly.allocUnsafeSlow?hG=AG:(lMe(AG,hG),hG.Buffer=G8),G8.prototype=Object.create(Ly.prototype),lMe(Ly,G8),G8.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ly(e,t,r)},G8.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Ly(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i},G8.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ly(e)},G8.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return AG.SlowBuffer(e)};Rs=hG,yh={},Ine=Rs.Buffer,hMe=Ine.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};yh.StringDecoder=LM,LM.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},LM.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t},LM.prototype.text=function(e,t){var r=(function(n,o,d){var g=o.length-1;if(g<d)return 0;var y=Ene(o[g]);return y>=0?(y>0&&(n.lastNeed=y-1),y):--g<d||y===-2?0:(y=Ene(o[g]))>=0?(y>0&&(n.lastNeed=y-2),y):--g<d||y===-2?0:(y=Ene(o[g]))>=0?(y>0&&(y===2?y=0:n.lastNeed=y-3),y):0})(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},LM.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};yh.StringDecoder;yh.StringDecoder});function zSt(){if(vMe)return FM;vMe=!0,FM.byteLength=g,FM.toByteArray=_,FM.fromByteArray=T;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)e[n]=i[n],t[i.charCodeAt(n)]=n;t[45]=62,t[95]=63;function d(M){var D=M.length;if(D%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var P=M.indexOf("=");P===-1&&(P=D);var G=P===D?0:4-P%4;return[P,G]}function g(M){var D=d(M),P=D[0],G=D[1];return(P+G)*3/4-G}function y(M,D,P){return(D+P)*3/4-P}function _(M){var D,P=d(M),G=P[0],q=P[1],Y=new r(y(M,G,q)),ne=0,ce=q>0?G-4:G,le;for(le=0;le<ce;le+=4)D=t[M.charCodeAt(le)]<<18|t[M.charCodeAt(le+1)]<<12|t[M.charCodeAt(le+2)]<<6|t[M.charCodeAt(le+3)],Y[ne++]=D>>16&255,Y[ne++]=D>>8&255,Y[ne++]=D&255;return q===2&&(D=t[M.charCodeAt(le)]<<2|t[M.charCodeAt(le+1)]>>4,Y[ne++]=D&255),q===1&&(D=t[M.charCodeAt(le)]<<10|t[M.charCodeAt(le+1)]<<4|t[M.charCodeAt(le+2)]>>2,Y[ne++]=D>>8&255,Y[ne++]=D&255),Y}function I(M){return e[M>>18&63]+e[M>>12&63]+e[M>>6&63]+e[M&63]}function N(M,D,P){for(var G,q=[],Y=D;Y<P;Y+=3)G=(M[Y]<<16&16711680)+(M[Y+1]<<8&65280)+(M[Y+2]&255),q.push(I(G));return q.join("")}function T(M){for(var D,P=M.length,G=P%3,q=[],Y=16383,ne=0,ce=P-G;ne<ce;ne+=Y)q.push(N(M,ne,ne+Y>ce?ce:ne+Y));return G===1?(D=M[P-1],q.push(e[D>>2]+e[D<<4&63]+"==")):G===2&&(D=(M[P-2]<<8)+M[P-1],q.push(e[D>>10]+e[D>>4&63]+e[D<<2&63]+"=")),q.join("")}return FM}function KSt(){if(RMe)return gG;RMe=!0;return gG.read=function(e,t,r,i,n){var o,d,g=n*8-i-1,y=(1<<g)-1,_=y>>1,I=-7,N=r?n-1:0,T=r?-1:1,M=e[t+N];for(N+=T,o=M&(1<<-I)-1,M>>=-I,I+=g;I>0;o=o*256+e[t+N],N+=T,I-=8);for(d=o&(1<<-I)-1,o>>=-I,I+=i;I>0;d=d*256+e[t+N],N+=T,I-=8);if(o===0)o=1-_;else{if(o===y)return d?NaN:(M?-1:1)*(1/0);d=d+Math.pow(2,i),o=o-_}return(M?-1:1)*d*Math.pow(2,o-i)},gG.write=function(e,t,r,i,n,o){var d,g,y,_=o*8-n-1,I=(1<<_)-1,N=I>>1,T=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:o-1,D=i?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,d=I):(d=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-d))<1&&(d--,y*=2),d+N>=1?t+=T/y:t+=T*Math.pow(2,1-N),t*y>=2&&(d++,y/=2),d+N>=I?(g=0,d=I):d+N>=1?(g=(t*y-1)*Math.pow(2,n),d=d+N):(g=t*Math.pow(2,N-1)*Math.pow(2,n),d=0));n>=8;e[r+M]=g&255,M+=D,g/=256,n-=8);for(d=d<<n|g,_+=n;_>0;e[r+M]=d&255,M+=D,d/=256,_-=8);e[r+M-D]|=P*128},gG}function $St(){if(SMe)return q8;SMe=!0;let e=zSt(),t=KSt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q8.Buffer=d,q8.SlowBuffer=q,q8.INSPECT_MAX_BYTES=50;let i=2147483647;q8.kMaxLength=i,d.TYPED_ARRAY_SUPPORT=n(),!d.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 n(){try{let ve=new Uint8Array(1),ie={foo:function(){return 42}};return Object.setPrototypeOf(ie,Uint8Array.prototype),Object.setPrototypeOf(ve,ie),ve.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function o(ve){if(ve>i)throw new RangeError('The value "'+ve+'" is invalid for option "size"');let ie=new Uint8Array(ve);return Object.setPrototypeOf(ie,d.prototype),ie}function d(ve,ie,_e){if(typeof ve=="number"){if(typeof ie=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(ve)}return g(ve,ie,_e)}d.poolSize=8192;function g(ve,ie,_e){if(typeof ve=="string")return N(ve,ie);if(ArrayBuffer.isView(ve))return M(ve);if(ve==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve);if(At(ve,ArrayBuffer)||ve&&At(ve.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(At(ve,SharedArrayBuffer)||ve&&At(ve.buffer,SharedArrayBuffer)))return D(ve,ie,_e);if(typeof ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let Be=ve.valueOf&&ve.valueOf();if(Be!=null&&Be!==ve)return d.from(Be,ie,_e);let Ze=P(ve);if(Ze)return Ze;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ve[Symbol.toPrimitive]=="function")return d.from(ve[Symbol.toPrimitive]("string"),ie,_e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve)}d.from=function(ve,ie,_e){return g(ve,ie,_e)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function y(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be of type number');if(ve<0)throw new RangeError('The value "'+ve+'" is invalid for option "size"')}function _(ve,ie,_e){return y(ve),ve<=0?o(ve):ie!==void 0?typeof _e=="string"?o(ve).fill(ie,_e):o(ve).fill(ie):o(ve)}d.alloc=function(ve,ie,_e){return _(ve,ie,_e)};function I(ve){return y(ve),o(ve<0?0:G(ve)|0)}d.allocUnsafe=function(ve){return I(ve)},d.allocUnsafeSlow=function(ve){return I(ve)};function N(ve,ie){if((typeof ie!="string"||ie==="")&&(ie="utf8"),!d.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie);let _e=Y(ve,ie)|0,Be=o(_e),Ze=Be.write(ve,ie);return Ze!==_e&&(Be=Be.slice(0,Ze)),Be}function T(ve){let ie=ve.length<0?0:G(ve.length)|0,_e=o(ie);for(let Be=0;Be<ie;Be+=1)_e[Be]=ve[Be]&255;return _e}function M(ve){if(At(ve,Uint8Array)){let ie=new Uint8Array(ve);return D(ie.buffer,ie.byteOffset,ie.byteLength)}return T(ve)}function D(ve,ie,_e){if(ie<0||ve.byteLength<ie)throw new RangeError('"offset" is outside of buffer bounds');if(ve.byteLength<ie+(_e||0))throw new RangeError('"length" is outside of buffer bounds');let Be;return ie===void 0&&_e===void 0?Be=new Uint8Array(ve):_e===void 0?Be=new Uint8Array(ve,ie):Be=new Uint8Array(ve,ie,_e),Object.setPrototypeOf(Be,d.prototype),Be}function P(ve){if(d.isBuffer(ve)){let ie=G(ve.length)|0,_e=o(ie);return _e.length===0||ve.copy(_e,0,0,ie),_e}if(ve.length!==void 0)return typeof ve.length!="number"||Er(ve.length)?o(0):T(ve);if(ve.type==="Buffer"&&Array.isArray(ve.data))return T(ve.data)}function G(ve){if(ve>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return ve|0}function q(ve){return+ve!=ve&&(ve=0),d.alloc(+ve)}d.isBuffer=function(ie){return ie!=null&&ie._isBuffer===!0&&ie!==d.prototype},d.compare=function(ie,_e){if(At(ie,Uint8Array)&&(ie=d.from(ie,ie.offset,ie.byteLength)),At(_e,Uint8Array)&&(_e=d.from(_e,_e.offset,_e.byteLength)),!d.isBuffer(ie)||!d.isBuffer(_e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ie===_e)return 0;let Be=ie.length,Ze=_e.length;for(let $t=0,at=Math.min(Be,Ze);$t<at;++$t)if(ie[$t]!==_e[$t]){Be=ie[$t],Ze=_e[$t];break}return Be<Ze?-1:Ze<Be?1:0},d.isEncoding=function(ie){switch(String(ie).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}},d.concat=function(ie,_e){if(!Array.isArray(ie))throw new TypeError('"list" argument must be an Array of Buffers');if(ie.length===0)return d.alloc(0);let Be;if(_e===void 0)for(_e=0,Be=0;Be<ie.length;++Be)_e+=ie[Be].length;let Ze=d.allocUnsafe(_e),$t=0;for(Be=0;Be<ie.length;++Be){let at=ie[Be];if(At(at,Uint8Array))$t+at.length>Ze.length?(d.isBuffer(at)||(at=d.from(at)),at.copy(Ze,$t)):Uint8Array.prototype.set.call(Ze,at,$t);else if(d.isBuffer(at))at.copy(Ze,$t);else throw new TypeError('"list" argument must be an Array of Buffers');$t+=at.length}return Ze};function Y(ve,ie){if(d.isBuffer(ve))return ve.length;if(ArrayBuffer.isView(ve)||At(ve,ArrayBuffer))return ve.byteLength;if(typeof ve!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ve);let _e=ve.length,Be=arguments.length>2&&arguments[2]===!0;if(!Be&&_e===0)return 0;let Ze=!1;for(;;)switch(ie){case"ascii":case"latin1":case"binary":return _e;case"utf8":case"utf-8":return Le(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e*2;case"hex":return _e>>>1;case"base64":return _t(ve).length;default:if(Ze)return Be?-1:Le(ve).length;ie=(""+ie).toLowerCase(),Ze=!0}}d.byteLength=Y;function ne(ve,ie,_e){let Be=!1;if((ie===void 0||ie<0)&&(ie=0),ie>this.length||((_e===void 0||_e>this.length)&&(_e=this.length),_e<=0)||(_e>>>=0,ie>>>=0,_e<=ie))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return R(this,ie,_e);case"utf8":case"utf-8":return A(this,ie,_e);case"ascii":return w(this,ie,_e);case"latin1":case"binary":return x(this,ie,_e);case"base64":return l(this,ie,_e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,ie,_e);default:if(Be)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Be=!0}}d.prototype._isBuffer=!0;function ce(ve,ie,_e){let Be=ve[ie];ve[ie]=ve[_e],ve[_e]=Be}d.prototype.swap16=function(){let ie=this.length;if(ie%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _e=0;_e<ie;_e+=2)ce(this,_e,_e+1);return this},d.prototype.swap32=function(){let ie=this.length;if(ie%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _e=0;_e<ie;_e+=4)ce(this,_e,_e+3),ce(this,_e+1,_e+2);return this},d.prototype.swap64=function(){let ie=this.length;if(ie%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _e=0;_e<ie;_e+=8)ce(this,_e,_e+7),ce(this,_e+1,_e+6),ce(this,_e+2,_e+5),ce(this,_e+3,_e+4);return this},d.prototype.toString=function(){let ie=this.length;return ie===0?"":arguments.length===0?A(this,0,ie):ne.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(ie){if(!d.isBuffer(ie))throw new TypeError("Argument must be a Buffer");return this===ie?!0:d.compare(this,ie)===0},d.prototype.inspect=function(){let ie="",_e=q8.INSPECT_MAX_BYTES;return ie=this.toString("hex",0,_e).replace(/(.{2})/g,"$1 ").trim(),this.length>_e&&(ie+=" ... "),"<Buffer "+ie+">"},r&&(d.prototype[r]=d.prototype.inspect),d.prototype.compare=function(ie,_e,Be,Ze,$t){if(At(ie,Uint8Array)&&(ie=d.from(ie,ie.offset,ie.byteLength)),!d.isBuffer(ie))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ie);if(_e===void 0&&(_e=0),Be===void 0&&(Be=ie?ie.length:0),Ze===void 0&&(Ze=0),$t===void 0&&($t=this.length),_e<0||Be>ie.length||Ze<0||$t>this.length)throw new RangeError("out of range index");if(Ze>=$t&&_e>=Be)return 0;if(Ze>=$t)return-1;if(_e>=Be)return 1;if(_e>>>=0,Be>>>=0,Ze>>>=0,$t>>>=0,this===ie)return 0;let at=$t-Ze,zt=Be-_e,Hr=Math.min(at,zt),St=this.slice(Ze,$t),Yt=ie.slice(_e,Be);for(let qr=0;qr<Hr;++qr)if(St[qr]!==Yt[qr]){at=St[qr],zt=Yt[qr];break}return at<zt?-1:zt<at?1:0};function le(ve,ie,_e,Be,Ze){if(ve.length===0)return-1;if(typeof _e=="string"?(Be=_e,_e=0):_e>2147483647?_e=2147483647:_e<-2147483648&&(_e=-2147483648),_e=+_e,Er(_e)&&(_e=Ze?0:ve.length-1),_e<0&&(_e=ve.length+_e),_e>=ve.length){if(Ze)return-1;_e=ve.length-1}else if(_e<0)if(Ze)_e=0;else return-1;if(typeof ie=="string"&&(ie=d.from(ie,Be)),d.isBuffer(ie))return ie.length===0?-1:pe(ve,ie,_e,Be,Ze);if(typeof ie=="number")return ie=ie&255,typeof Uint8Array.prototype.indexOf=="function"?Ze?Uint8Array.prototype.indexOf.call(ve,ie,_e):Uint8Array.prototype.lastIndexOf.call(ve,ie,_e):pe(ve,[ie],_e,Be,Ze);throw new TypeError("val must be string, number or Buffer")}function pe(ve,ie,_e,Be,Ze){let $t=1,at=ve.length,zt=ie.length;if(Be!==void 0&&(Be=String(Be).toLowerCase(),Be==="ucs2"||Be==="ucs-2"||Be==="utf16le"||Be==="utf-16le")){if(ve.length<2||ie.length<2)return-1;$t=2,at/=2,zt/=2,_e/=2}function Hr(Yt,qr){return $t===1?Yt[qr]:Yt.readUInt16BE(qr*$t)}let St;if(Ze){let Yt=-1;for(St=_e;St<at;St++)if(Hr(ve,St)===Hr(ie,Yt===-1?0:St-Yt)){if(Yt===-1&&(Yt=St),St-Yt+1===zt)return Yt*$t}else Yt!==-1&&(St-=St-Yt),Yt=-1}else for(_e+zt>at&&(_e=at-zt),St=_e;St>=0;St--){let Yt=!0;for(let qr=0;qr<zt;qr++)if(Hr(ve,St+qr)!==Hr(ie,qr)){Yt=!1;break}if(Yt)return St}return-1}d.prototype.includes=function(ie,_e,Be){return this.indexOf(ie,_e,Be)!==-1},d.prototype.indexOf=function(ie,_e,Be){return le(this,ie,_e,Be,!0)},d.prototype.lastIndexOf=function(ie,_e,Be){return le(this,ie,_e,Be,!1)};function ae(ve,ie,_e,Be){_e=Number(_e)||0;let Ze=ve.length-_e;Be?(Be=Number(Be),Be>Ze&&(Be=Ze)):Be=Ze;let $t=ie.length;Be>$t/2&&(Be=$t/2);let at;for(at=0;at<Be;++at){let zt=parseInt(ie.substr(at*2,2),16);if(Er(zt))return at;ve[_e+at]=zt}return at}function W(ve,ie,_e,Be){return rt(Le(ie,ve.length-_e),ve,_e,Be)}function se(ve,ie,_e,Be){return rt(V(ie),ve,_e,Be)}function O(ve,ie,_e,Be){return rt(_t(ie),ve,_e,Be)}function s(ve,ie,_e,Be){return rt(Qe(ie,ve.length-_e),ve,_e,Be)}d.prototype.write=function(ie,_e,Be,Ze){if(_e===void 0)Ze="utf8",Be=this.length,_e=0;else if(Be===void 0&&typeof _e=="string")Ze=_e,Be=this.length,_e=0;else if(isFinite(_e))_e=_e>>>0,isFinite(Be)?(Be=Be>>>0,Ze===void 0&&(Ze="utf8")):(Ze=Be,Be=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let $t=this.length-_e;if((Be===void 0||Be>$t)&&(Be=$t),ie.length>0&&(Be<0||_e<0)||_e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ze||(Ze="utf8");let at=!1;for(;;)switch(Ze){case"hex":return ae(this,ie,_e,Be);case"utf8":case"utf-8":return W(this,ie,_e,Be);case"ascii":case"latin1":case"binary":return se(this,ie,_e,Be);case"base64":return O(this,ie,_e,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,ie,_e,Be);default:if(at)throw new TypeError("Unknown encoding: "+Ze);Ze=(""+Ze).toLowerCase(),at=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function l(ve,ie,_e){return ie===0&&_e===ve.length?e.fromByteArray(ve):e.fromByteArray(ve.slice(ie,_e))}function A(ve,ie,_e){_e=Math.min(ve.length,_e);let Be=[],Ze=ie;for(;Ze<_e;){let $t=ve[Ze],at=null,zt=$t>239?4:$t>223?3:$t>191?2:1;if(Ze+zt<=_e){let Hr,St,Yt,qr;switch(zt){case 1:$t<128&&(at=$t);break;case 2:Hr=ve[Ze+1],(Hr&192)===128&&(qr=($t&31)<<6|Hr&63,qr>127&&(at=qr));break;case 3:Hr=ve[Ze+1],St=ve[Ze+2],(Hr&192)===128&&(St&192)===128&&(qr=($t&15)<<12|(Hr&63)<<6|St&63,qr>2047&&(qr<55296||qr>57343)&&(at=qr));break;case 4:Hr=ve[Ze+1],St=ve[Ze+2],Yt=ve[Ze+3],(Hr&192)===128&&(St&192)===128&&(Yt&192)===128&&(qr=($t&15)<<18|(Hr&63)<<12|(St&63)<<6|Yt&63,qr>65535&&qr<1114112&&(at=qr))}}at===null?(at=65533,zt=1):at>65535&&(at-=65536,Be.push(at>>>10&1023|55296),at=56320|at&1023),Be.push(at),Ze+=zt}return E(Be)}let m=4096;function E(ve){let ie=ve.length;if(ie<=m)return String.fromCharCode.apply(String,ve);let _e="",Be=0;for(;Be<ie;)_e+=String.fromCharCode.apply(String,ve.slice(Be,Be+=m));return _e}function w(ve,ie,_e){let Be="";_e=Math.min(ve.length,_e);for(let Ze=ie;Ze<_e;++Ze)Be+=String.fromCharCode(ve[Ze]&127);return Be}function x(ve,ie,_e){let Be="";_e=Math.min(ve.length,_e);for(let Ze=ie;Ze<_e;++Ze)Be+=String.fromCharCode(ve[Ze]);return Be}function R(ve,ie,_e){let Be=ve.length;(!ie||ie<0)&&(ie=0),(!_e||_e<0||_e>Be)&&(_e=Be);let Ze="";for(let $t=ie;$t<_e;++$t)Ze+=mt[ve[$t]];return Ze}function u(ve,ie,_e){let Be=ve.slice(ie,_e),Ze="";for(let $t=0;$t<Be.length-1;$t+=2)Ze+=String.fromCharCode(Be[$t]+Be[$t+1]*256);return Ze}d.prototype.slice=function(ie,_e){let Be=this.length;ie=~~ie,_e=_e===void 0?Be:~~_e,ie<0?(ie+=Be,ie<0&&(ie=0)):ie>Be&&(ie=Be),_e<0?(_e+=Be,_e<0&&(_e=0)):_e>Be&&(_e=Be),_e<ie&&(_e=ie);let Ze=this.subarray(ie,_e);return Object.setPrototypeOf(Ze,d.prototype),Ze};function C(ve,ie,_e){if(ve%1!==0||ve<0)throw new RangeError("offset is not uint");if(ve+ie>_e)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=this[ie],$t=1,at=0;for(;++at<_e&&($t*=256);)Ze+=this[ie+at]*$t;return Ze},d.prototype.readUintBE=d.prototype.readUIntBE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=this[ie+--_e],$t=1;for(;_e>0&&($t*=256);)Ze+=this[ie+--_e]*$t;return Ze},d.prototype.readUint8=d.prototype.readUInt8=function(ie,_e){return ie=ie>>>0,_e||C(ie,1,this.length),this[ie]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(ie,_e){return ie=ie>>>0,_e||C(ie,2,this.length),this[ie]|this[ie+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(ie,_e){return ie=ie>>>0,_e||C(ie,2,this.length),this[ie]<<8|this[ie+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),(this[ie]|this[ie+1]<<8|this[ie+2]<<16)+this[ie+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),this[ie]*16777216+(this[ie+1]<<16|this[ie+2]<<8|this[ie+3])},d.prototype.readBigUInt64LE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=_e+this[++ie]*2**8+this[++ie]*2**16+this[++ie]*2**24,$t=this[++ie]+this[++ie]*2**8+this[++ie]*2**16+Be*2**24;return BigInt(Ze)+(BigInt($t)<<BigInt(32))}),d.prototype.readBigUInt64BE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=_e*2**24+this[++ie]*2**16+this[++ie]*2**8+this[++ie],$t=this[++ie]*2**24+this[++ie]*2**16+this[++ie]*2**8+Be;return(BigInt(Ze)<<BigInt(32))+BigInt($t)}),d.prototype.readIntLE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=this[ie],$t=1,at=0;for(;++at<_e&&($t*=256);)Ze+=this[ie+at]*$t;return $t*=128,Ze>=$t&&(Ze-=Math.pow(2,8*_e)),Ze},d.prototype.readIntBE=function(ie,_e,Be){ie=ie>>>0,_e=_e>>>0,Be||C(ie,_e,this.length);let Ze=_e,$t=1,at=this[ie+--Ze];for(;Ze>0&&($t*=256);)at+=this[ie+--Ze]*$t;return $t*=128,at>=$t&&(at-=Math.pow(2,8*_e)),at},d.prototype.readInt8=function(ie,_e){return ie=ie>>>0,_e||C(ie,1,this.length),this[ie]&128?(255-this[ie]+1)*-1:this[ie]},d.prototype.readInt16LE=function(ie,_e){ie=ie>>>0,_e||C(ie,2,this.length);let Be=this[ie]|this[ie+1]<<8;return Be&32768?Be|4294901760:Be},d.prototype.readInt16BE=function(ie,_e){ie=ie>>>0,_e||C(ie,2,this.length);let Be=this[ie+1]|this[ie]<<8;return Be&32768?Be|4294901760:Be},d.prototype.readInt32LE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),this[ie]|this[ie+1]<<8|this[ie+2]<<16|this[ie+3]<<24},d.prototype.readInt32BE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),this[ie]<<24|this[ie+1]<<16|this[ie+2]<<8|this[ie+3]},d.prototype.readBigInt64LE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=this[ie+4]+this[ie+5]*2**8+this[ie+6]*2**16+(Be<<24);return(BigInt(Ze)<<BigInt(32))+BigInt(_e+this[++ie]*2**8+this[++ie]*2**16+this[++ie]*2**24)}),d.prototype.readBigInt64BE=Ht(function(ie){ie=ie>>>0,te(ie,"offset");let _e=this[ie],Be=this[ie+7];(_e===void 0||Be===void 0)&&Ue(ie,this.length-8);let Ze=(_e<<24)+this[++ie]*2**16+this[++ie]*2**8+this[++ie];return(BigInt(Ze)<<BigInt(32))+BigInt(this[++ie]*2**24+this[++ie]*2**16+this[++ie]*2**8+Be)}),d.prototype.readFloatLE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),t.read(this,ie,!0,23,4)},d.prototype.readFloatBE=function(ie,_e){return ie=ie>>>0,_e||C(ie,4,this.length),t.read(this,ie,!1,23,4)},d.prototype.readDoubleLE=function(ie,_e){return ie=ie>>>0,_e||C(ie,8,this.length),t.read(this,ie,!0,52,8)},d.prototype.readDoubleBE=function(ie,_e){return ie=ie>>>0,_e||C(ie,8,this.length),t.read(this,ie,!1,52,8)};function U(ve,ie,_e,Be,Ze,$t){if(!d.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(ie>Ze||ie<$t)throw new RangeError('"value" argument is out of bounds');if(_e+Be>ve.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,Be=Be>>>0,!Ze){let zt=Math.pow(2,8*Be)-1;U(this,ie,_e,Be,zt,0)}let $t=1,at=0;for(this[_e]=ie&255;++at<Be&&($t*=256);)this[_e+at]=ie/$t&255;return _e+Be},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,Be=Be>>>0,!Ze){let zt=Math.pow(2,8*Be)-1;U(this,ie,_e,Be,zt,0)}let $t=Be-1,at=1;for(this[_e+$t]=ie&255;--$t>=0&&(at*=256);)this[_e+$t]=ie/at&255;return _e+Be},d.prototype.writeUint8=d.prototype.writeUInt8=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,1,255,0),this[_e]=ie&255,_e+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,65535,0),this[_e]=ie&255,this[_e+1]=ie>>>8,_e+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,65535,0),this[_e]=ie>>>8,this[_e+1]=ie&255,_e+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,4294967295,0),this[_e+3]=ie>>>24,this[_e+2]=ie>>>16,this[_e+1]=ie>>>8,this[_e]=ie&255,_e+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,4294967295,0),this[_e]=ie>>>24,this[_e+1]=ie>>>16,this[_e+2]=ie>>>8,this[_e+3]=ie&255,_e+4};function F(ve,ie,_e,Be,Ze){ze(ie,Be,Ze,ve,_e,7);let $t=Number(ie&BigInt(4294967295));ve[_e++]=$t,$t=$t>>8,ve[_e++]=$t,$t=$t>>8,ve[_e++]=$t,$t=$t>>8,ve[_e++]=$t;let at=Number(ie>>BigInt(32)&BigInt(4294967295));return ve[_e++]=at,at=at>>8,ve[_e++]=at,at=at>>8,ve[_e++]=at,at=at>>8,ve[_e++]=at,_e}function X(ve,ie,_e,Be,Ze){ze(ie,Be,Ze,ve,_e,7);let $t=Number(ie&BigInt(4294967295));ve[_e+7]=$t,$t=$t>>8,ve[_e+6]=$t,$t=$t>>8,ve[_e+5]=$t,$t=$t>>8,ve[_e+4]=$t;let at=Number(ie>>BigInt(32)&BigInt(4294967295));return ve[_e+3]=at,at=at>>8,ve[_e+2]=at,at=at>>8,ve[_e+1]=at,at=at>>8,ve[_e]=at,_e+8}d.prototype.writeBigUInt64LE=Ht(function(ie,_e=0){return F(this,ie,_e,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Ht(function(ie,_e=0){return X(this,ie,_e,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,!Ze){let Hr=Math.pow(2,8*Be-1);U(this,ie,_e,Be,Hr-1,-Hr)}let $t=0,at=1,zt=0;for(this[_e]=ie&255;++$t<Be&&(at*=256);)ie<0&&zt===0&&this[_e+$t-1]!==0&&(zt=1),this[_e+$t]=(ie/at>>0)-zt&255;return _e+Be},d.prototype.writeIntBE=function(ie,_e,Be,Ze){if(ie=+ie,_e=_e>>>0,!Ze){let Hr=Math.pow(2,8*Be-1);U(this,ie,_e,Be,Hr-1,-Hr)}let $t=Be-1,at=1,zt=0;for(this[_e+$t]=ie&255;--$t>=0&&(at*=256);)ie<0&&zt===0&&this[_e+$t+1]!==0&&(zt=1),this[_e+$t]=(ie/at>>0)-zt&255;return _e+Be},d.prototype.writeInt8=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,1,127,-128),ie<0&&(ie=255+ie+1),this[_e]=ie&255,_e+1},d.prototype.writeInt16LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,32767,-32768),this[_e]=ie&255,this[_e+1]=ie>>>8,_e+2},d.prototype.writeInt16BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,2,32767,-32768),this[_e]=ie>>>8,this[_e+1]=ie&255,_e+2},d.prototype.writeInt32LE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,2147483647,-2147483648),this[_e]=ie&255,this[_e+1]=ie>>>8,this[_e+2]=ie>>>16,this[_e+3]=ie>>>24,_e+4},d.prototype.writeInt32BE=function(ie,_e,Be){return ie=+ie,_e=_e>>>0,Be||U(this,ie,_e,4,2147483647,-2147483648),ie<0&&(ie=4294967295+ie+1),this[_e]=ie>>>24,this[_e+1]=ie>>>16,this[_e+2]=ie>>>8,this[_e+3]=ie&255,_e+4},d.prototype.writeBigInt64LE=Ht(function(ie,_e=0){return F(this,ie,_e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Ht(function(ie,_e=0){return X(this,ie,_e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(ve,ie,_e,Be,Ze,$t){if(_e+Be>ve.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("Index out of range")}function he(ve,ie,_e,Be,Ze){return ie=+ie,_e=_e>>>0,Ze||Ae(ve,ie,_e,4),t.write(ve,ie,_e,Be,23,4),_e+4}d.prototype.writeFloatLE=function(ie,_e,Be){return he(this,ie,_e,!0,Be)},d.prototype.writeFloatBE=function(ie,_e,Be){return he(this,ie,_e,!1,Be)};function $e(ve,ie,_e,Be,Ze){return ie=+ie,_e=_e>>>0,Ze||Ae(ve,ie,_e,8),t.write(ve,ie,_e,Be,52,8),_e+8}d.prototype.writeDoubleLE=function(ie,_e,Be){return $e(this,ie,_e,!0,Be)},d.prototype.writeDoubleBE=function(ie,_e,Be){return $e(this,ie,_e,!1,Be)},d.prototype.copy=function(ie,_e,Be,Ze){if(!d.isBuffer(ie))throw new TypeError("argument should be a Buffer");if(Be||(Be=0),!Ze&&Ze!==0&&(Ze=this.length),_e>=ie.length&&(_e=ie.length),_e||(_e=0),Ze>0&&Ze<Be&&(Ze=Be),Ze===Be||ie.length===0||this.length===0)return 0;if(_e<0)throw new RangeError("targetStart out of bounds");if(Be<0||Be>=this.length)throw new RangeError("Index out of range");if(Ze<0)throw new RangeError("sourceEnd out of bounds");Ze>this.length&&(Ze=this.length),ie.length-_e<Ze-Be&&(Ze=ie.length-_e+Be);let $t=Ze-Be;return this===ie&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(_e,Be,Ze):Uint8Array.prototype.set.call(ie,this.subarray(Be,Ze),_e),$t},d.prototype.fill=function(ie,_e,Be,Ze){if(typeof ie=="string"){if(typeof _e=="string"?(Ze=_e,_e=0,Be=this.length):typeof Be=="string"&&(Ze=Be,Be=this.length),Ze!==void 0&&typeof Ze!="string")throw new TypeError("encoding must be a string");if(typeof Ze=="string"&&!d.isEncoding(Ze))throw new TypeError("Unknown encoding: "+Ze);if(ie.length===1){let at=ie.charCodeAt(0);(Ze==="utf8"&&at<128||Ze==="latin1")&&(ie=at)}}else typeof ie=="number"?ie=ie&255:typeof ie=="boolean"&&(ie=Number(ie));if(_e<0||this.length<_e||this.length<Be)throw new RangeError("Out of range index");if(Be<=_e)return this;_e=_e>>>0,Be=Be===void 0?this.length:Be>>>0,ie||(ie=0);let $t;if(typeof ie=="number")for($t=_e;$t<Be;++$t)this[$t]=ie;else{let at=d.isBuffer(ie)?ie:d.from(ie,Ze),zt=at.length;if(zt===0)throw new TypeError('The value "'+ie+'" is invalid for argument "value"');for($t=0;$t<Be-_e;++$t)this[$t+_e]=at[$t%zt]}return this};let Ge={};function Re(ve,ie,_e){Ge[ve]=class extends _e{constructor(){super(),Object.defineProperty(this,"message",{value:ie.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ve}]`,this.stack,delete this.name}get code(){return ve}set code(Ze){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ze,writable:!0})}toString(){return`${this.name} [${ve}]: ${this.message}`}}}Re("ERR_BUFFER_OUT_OF_BOUNDS",function(ve){return ve?`${ve} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Re("ERR_INVALID_ARG_TYPE",function(ve,ie){return`The "${ve}" argument must be of type number. Received type ${typeof ie}`},TypeError),Re("ERR_OUT_OF_RANGE",function(ve,ie,_e){let Be=`The value of "${ve}" is out of range.`,Ze=_e;return Number.isInteger(_e)&&Math.abs(_e)>2**32?Ze=Se(String(_e)):typeof _e=="bigint"&&(Ze=String(_e),(_e>BigInt(2)**BigInt(32)||_e<-(BigInt(2)**BigInt(32)))&&(Ze=Se(Ze)),Ze+="n"),Be+=` It must be ${ie}. Received ${Ze}`,Be},RangeError);function Se(ve){let ie="",_e=ve.length,Be=ve[0]==="-"?1:0;for(;_e>=Be+4;_e-=3)ie=`_${ve.slice(_e-3,_e)}${ie}`;return`${ve.slice(0,_e)}${ie}`}function ct(ve,ie,_e){te(ie,"offset"),(ve[ie]===void 0||ve[ie+_e]===void 0)&&Ue(ie,ve.length-(_e+1))}function ze(ve,ie,_e,Be,Ze,$t){if(ve>_e||ve<ie){let at=typeof ie=="bigint"?"n":"",zt;throw $t>3?ie===0||ie===BigInt(0)?zt=`>= 0${at} and < 2${at} ** ${($t+1)*8}${at}`:zt=`>= -(2${at} ** ${($t+1)*8-1}${at}) and < 2 ** ${($t+1)*8-1}${at}`:zt=`>= ${ie}${at} and <= ${_e}${at}`,new Ge.ERR_OUT_OF_RANGE("value",zt,ve)}ct(Be,Ze,$t)}function te(ve,ie){if(typeof ve!="number")throw new Ge.ERR_INVALID_ARG_TYPE(ie,"number",ve)}function Ue(ve,ie,_e){throw Math.floor(ve)!==ve?(te(ve,_e),new Ge.ERR_OUT_OF_RANGE(_e||"offset","an integer",ve)):ie<0?new Ge.ERR_BUFFER_OUT_OF_BOUNDS:new Ge.ERR_OUT_OF_RANGE(_e||"offset",`>= ${_e?1:0} and <= ${ie}`,ve)}let oe=/[^+/0-9A-Za-z-_]/g;function ge(ve){if(ve=ve.split("=")[0],ve=ve.trim().replace(oe,""),ve.length<2)return"";for(;ve.length%4!==0;)ve=ve+"=";return ve}function Le(ve,ie){ie=ie||1/0;let _e,Be=ve.length,Ze=null,$t=[];for(let at=0;at<Be;++at){if(_e=ve.charCodeAt(at),_e>55295&&_e<57344){if(!Ze){if(_e>56319){(ie-=3)>-1&&$t.push(239,191,189);continue}else if(at+1===Be){(ie-=3)>-1&&$t.push(239,191,189);continue}Ze=_e;continue}if(_e<56320){(ie-=3)>-1&&$t.push(239,191,189),Ze=_e;continue}_e=(Ze-55296<<10|_e-56320)+65536}else Ze&&(ie-=3)>-1&&$t.push(239,191,189);if(Ze=null,_e<128){if((ie-=1)<0)break;$t.push(_e)}else if(_e<2048){if((ie-=2)<0)break;$t.push(_e>>6|192,_e&63|128)}else if(_e<65536){if((ie-=3)<0)break;$t.push(_e>>12|224,_e>>6&63|128,_e&63|128)}else if(_e<1114112){if((ie-=4)<0)break;$t.push(_e>>18|240,_e>>12&63|128,_e>>6&63|128,_e&63|128)}else throw new Error("Invalid code point")}return $t}function V(ve){let ie=[];for(let _e=0;_e<ve.length;++_e)ie.push(ve.charCodeAt(_e)&255);return ie}function Qe(ve,ie){let _e,Be,Ze,$t=[];for(let at=0;at<ve.length&&!((ie-=2)<0);++at)_e=ve.charCodeAt(at),Be=_e>>8,Ze=_e%256,$t.push(Ze),$t.push(Be);return $t}function _t(ve){return e.toByteArray(ge(ve))}function rt(ve,ie,_e,Be){let Ze;for(Ze=0;Ze<Be&&!(Ze+_e>=ie.length||Ze>=ve.length);++Ze)ie[Ze+_e]=ve[Ze];return Ze}function At(ve,ie){return ve instanceof ie||ve!=null&&ve.constructor!=null&&ve.constructor.name!=null&&ve.constructor.name===ie.name}function Er(ve){return ve!==ve}let mt=(function(){let ve="0123456789abcdef",ie=new Array(256);for(let _e=0;_e<16;++_e){let Be=_e*16;for(let Ze=0;Ze<16;++Ze)ie[Be+Ze]=ve[_e]+ve[Ze]}return ie})();function Ht(ve){return typeof BigInt>"u"?zr:ve}function zr(){throw new Error("BigInt not supported")}return q8}function La(){return IMe||(IMe=!0,typeof Object.create=="function"?_G=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_G=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}),_G}function HMe(){return CMe||(CMe=!0,One=xc.EventEmitter),One}function YSt(){if(wMe)return Nne;wMe=!0;function e(T,M){var D=Object.keys(T);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(T);M&&(P=P.filter(function(G){return Object.getOwnPropertyDescriptor(T,G).enumerable})),D.push.apply(D,P)}return D}function t(T){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?e(Object(D),!0).forEach(function(P){r(T,P,D[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(D)):e(Object(D)).forEach(function(P){Object.defineProperty(T,P,Object.getOwnPropertyDescriptor(D,P))})}return T}function r(T,M,D){return M in T?Object.defineProperty(T,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):T[M]=D,T}function i(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}function n(T,M){for(var D=0;D<M.length;D++){var P=M[D];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function o(T,M,D){return M&&n(T.prototype,M),D&&n(T,D),T}var d=Nu,g=d.Buffer,y=yn,_=y.inspect,I=_&&_.custom||"inspect";function N(T,M,D){g.prototype.copy.call(T,M,D)}return Nne=(function(){function T(){i(this,T),this.head=null,this.tail=null,this.length=0}return o(T,[{key:"push",value:function(D){var P={data:D,next:null};this.length>0?this.tail.next=P:this.head=P,this.tail=P,++this.length}},{key:"unshift",value:function(D){var P={data:D,next:this.head};this.length===0&&(this.tail=P),this.head=P,++this.length}},{key:"shift",value:function(){if(this.length!==0){var D=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,D}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(D){if(this.length===0)return"";for(var P=this.head,G=""+P.data;P=P.next;)G+=D+P.data;return G}},{key:"concat",value:function(D){if(this.length===0)return g.alloc(0);for(var P=g.allocUnsafe(D>>>0),G=this.head,q=0;G;)N(G.data,P,q),q+=G.data.length,G=G.next;return P}},{key:"consume",value:function(D,P){var G;return D<this.head.data.length?(G=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?G=this.shift():G=P?this._getString(D):this._getBuffer(D),G}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var P=this.head,G=1,q=P.data;for(D-=q.length;P=P.next;){var Y=P.data,ne=D>Y.length?Y.length:D;if(ne===Y.length?q+=Y:q+=Y.slice(0,D),D-=ne,D===0){ne===Y.length?(++G,P.next?this.head=P.next:this.head=this.tail=null):(this.head=P,P.data=Y.slice(ne));break}++G}return this.length-=G,q}},{key:"_getBuffer",value:function(D){var P=g.allocUnsafe(D),G=this.head,q=1;for(G.data.copy(P),D-=G.data.length;G=G.next;){var Y=G.data,ne=D>Y.length?Y.length:D;if(Y.copy(P,P.length-D,0,ne),D-=ne,D===0){ne===Y.length?(++q,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Y.slice(ne));break}++q}return this.length-=q,P}},{key:I,value:function(D,P){return _(this,t({},P,{depth:0,customInspect:!1}))}}]),T})(),Nne}function GMe(){if(OMe)return xne;OMe=!0;var e=za;function t(g,y){var _=this,I=this._readableState&&this._readableState.destroyed,N=this._writableState&&this._writableState.destroyed;return I||N?(y?y(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,g)):e.nextTick(o,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(T){!y&&T?_._writableState?_._writableState.errorEmitted?e.nextTick(i,_):(_._writableState.errorEmitted=!0,e.nextTick(r,_,T)):e.nextTick(r,_,T):y?(e.nextTick(i,_),y(T)):e.nextTick(i,_)}),this)}function r(g,y){o(g,y),i(g)}function i(g){g._writableState&&!g._writableState.emitClose||g._readableState&&!g._readableState.emitClose||g.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(g,y){g.emit("error",y)}function d(g,y){var _=g._readableState,I=g._writableState;_&&_.autoDestroy||I&&I.autoDestroy?g.destroy(y):g.emit("error",y)}return xne={destroy:t,undestroy:n,errorOrDestroy:d},xne}function dO(){if(NMe)return Tne;NMe=!0;let e={};function t(d,g,y){y||(y=Error);function _(N,T,M){return typeof g=="string"?g:g(N,T,M)}class I extends y{constructor(T,M,D){super(_(T,M,D))}}I.prototype.name=y.name,I.prototype.code=d,e[d]=I}function r(d,g){if(Array.isArray(d)){let y=d.length;return d=d.map(_=>String(_)),y>2?`one of ${g} ${d.slice(0,y-1).join(", ")}, or `+d[y-1]:y===2?`one of ${g} ${d[0]} or ${d[1]}`:`of ${g} ${d[0]}`}else return`of ${g} ${String(d)}`}function i(d,g,y){return d.substr(!y||y<0?0:+y,g.length)===g}function n(d,g,y){return(y===void 0||y>d.length)&&(y=d.length),d.substring(y-g.length,y)===g}function o(d,g,y){return typeof y!="number"&&(y=0),y+g.length>d.length?!1:d.indexOf(g,y)!==-1}return t("ERR_INVALID_OPT_VALUE",function(d,g){return'The value "'+g+'" is invalid for option "'+d+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(d,g,y){let _;typeof g=="string"&&i(g,"not ")?(_="must not be",g=g.replace(/^not /,"")):_="must be";let I;if(n(d," argument"))I=`The ${d} ${_} ${r(g,"type")}`;else{let N=o(d,".")?"property":"argument";I=`The "${d}" ${N} ${_} ${r(g,"type")}`}return I+=`. Received type ${typeof y}`,I},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Tne.codes=e,Tne}function qMe(){if(xMe)return Bne;xMe=!0;var e=dO().codes.ERR_INVALID_OPT_VALUE;function t(i,n,o){return i.highWaterMark!=null?i.highWaterMark:n?i[o]:null}function r(i,n,o,d){var g=t(n,d,o);if(g!=null){if(!(isFinite(g)&&Math.floor(g)===g)||g<0){var y=d?o:"highWaterMark";throw new e(y,g)}return Math.floor(g)}return i.objectMode?16:16*1024}return Bne={getHighWaterMark:r},Bne}function WSt(){if(TMe)return Mne;TMe=!0,Mne=e;function e(r,i){if(t("noDeprecation"))return r;var n=!1;function o(){if(!n){if(t("throwDeprecation"))throw new Error(i);t("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return r.apply(this||Dne,arguments)}return o}function t(r){try{if(!Dne.localStorage)return!1}catch{return!1}var i=Dne.localStorage[r];return i==null?!1:String(i).toLowerCase()==="true"}return Mne}function QM(){if(BMe)return kne;BMe=!0;var e=za;kne=se;function t(Ge){var Re=this;this.next=null,this.entry=null,this.finish=function(){$e(Re,Ge)}}var r;se.WritableState=ae;var i={deprecate:WSt()},n=HMe(),o=Nu.Buffer,d=XSt.Uint8Array||function(){};function g(Ge){return o.from(Ge)}function y(Ge){return o.isBuffer(Ge)||Ge instanceof d}var _=GMe(),I=qMe(),N=I.getHighWaterMark,T=dO().codes,M=T.ERR_INVALID_ARG_TYPE,D=T.ERR_METHOD_NOT_IMPLEMENTED,P=T.ERR_MULTIPLE_CALLBACK,G=T.ERR_STREAM_CANNOT_PIPE,q=T.ERR_STREAM_DESTROYED,Y=T.ERR_STREAM_NULL_VALUES,ne=T.ERR_STREAM_WRITE_AFTER_END,ce=T.ERR_UNKNOWN_ENCODING,le=_.errorOrDestroy;La()(se,n);function pe(){}function ae(Ge,Re,Se){r=r||Iv(),Ge=Ge||{},typeof Se!="boolean"&&(Se=Re instanceof r),this.objectMode=!!Ge.objectMode,Se&&(this.objectMode=this.objectMode||!!Ge.writableObjectMode),this.highWaterMark=N(this,Ge,"writableHighWaterMark",Se),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ct=Ge.decodeStrings===!1;this.decodeStrings=!ct,this.defaultEncoding=Ge.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ze){x(Re,ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ge.emitClose!==!1,this.autoDestroy=!!Ge.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}ae.prototype.getBuffer=function(){for(var Re=this.bufferedRequest,Se=[];Re;)Se.push(Re),Re=Re.next;return Se},(function(){try{Object.defineProperty(ae.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(Re){return W.call(this,Re)?!0:this!==se?!1:Re&&Re._writableState instanceof ae}})):W=function(Re){return Re instanceof this};function se(Ge){r=r||Iv();var Re=this instanceof r;if(!Re&&!W.call(se,this))return new se(Ge);this._writableState=new ae(Ge,this,Re),this.writable=!0,Ge&&(typeof Ge.write=="function"&&(this._write=Ge.write),typeof Ge.writev=="function"&&(this._writev=Ge.writev),typeof Ge.destroy=="function"&&(this._destroy=Ge.destroy),typeof Ge.final=="function"&&(this._final=Ge.final)),n.call(this)}se.prototype.pipe=function(){le(this,new G)};function O(Ge,Re){var Se=new ne;le(Ge,Se),e.nextTick(Re,Se)}function s(Ge,Re,Se,ct){var ze;return Se===null?ze=new Y:typeof Se!="string"&&!Re.objectMode&&(ze=new M("chunk",["string","Buffer"],Se)),ze?(le(Ge,ze),e.nextTick(ct,ze),!1):!0}se.prototype.write=function(Ge,Re,Se){var ct=this._writableState,ze=!1,te=!ct.objectMode&&y(Ge);return te&&!o.isBuffer(Ge)&&(Ge=g(Ge)),typeof Re=="function"&&(Se=Re,Re=null),te?Re="buffer":Re||(Re=ct.defaultEncoding),typeof Se!="function"&&(Se=pe),ct.ending?O(this,Se):(te||s(this,ct,Ge,Se))&&(ct.pendingcb++,ze=A(this,ct,te,Ge,Re,Se)),ze},se.prototype.cork=function(){this._writableState.corked++},se.prototype.uncork=function(){var Ge=this._writableState;Ge.corked&&(Ge.corked--,!Ge.writing&&!Ge.corked&&!Ge.bufferProcessing&&Ge.bufferedRequest&&C(this,Ge))},se.prototype.setDefaultEncoding=function(Re){if(typeof Re=="string"&&(Re=Re.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Re+"").toLowerCase())>-1))throw new ce(Re);return this._writableState.defaultEncoding=Re,this},Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function l(Ge,Re,Se){return!Ge.objectMode&&Ge.decodeStrings!==!1&&typeof Re=="string"&&(Re=o.from(Re,Se)),Re}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(Ge,Re,Se,ct,ze,te){if(!Se){var Ue=l(Re,ct,ze);ct!==Ue&&(Se=!0,ze="buffer",ct=Ue)}var oe=Re.objectMode?1:ct.length;Re.length+=oe;var ge=Re.length<Re.highWaterMark;if(ge||(Re.needDrain=!0),Re.writing||Re.corked){var Le=Re.lastBufferedRequest;Re.lastBufferedRequest={chunk:ct,encoding:ze,isBuf:Se,callback:te,next:null},Le?Le.next=Re.lastBufferedRequest:Re.bufferedRequest=Re.lastBufferedRequest,Re.bufferedRequestCount+=1}else m(Ge,Re,!1,oe,ct,ze,te);return ge}function m(Ge,Re,Se,ct,ze,te,Ue){Re.writelen=ct,Re.writecb=Ue,Re.writing=!0,Re.sync=!0,Re.destroyed?Re.onwrite(new q("write")):Se?Ge._writev(ze,Re.onwrite):Ge._write(ze,te,Re.onwrite),Re.sync=!1}function E(Ge,Re,Se,ct,ze){--Re.pendingcb,Se?(e.nextTick(ze,ct),e.nextTick(Ae,Ge,Re),Ge._writableState.errorEmitted=!0,le(Ge,ct)):(ze(ct),Ge._writableState.errorEmitted=!0,le(Ge,ct),Ae(Ge,Re))}function w(Ge){Ge.writing=!1,Ge.writecb=null,Ge.length-=Ge.writelen,Ge.writelen=0}function x(Ge,Re){var Se=Ge._writableState,ct=Se.sync,ze=Se.writecb;if(typeof ze!="function")throw new P;if(w(Se),Re)E(Ge,Se,ct,Re,ze);else{var te=U(Se)||Ge.destroyed;!te&&!Se.corked&&!Se.bufferProcessing&&Se.bufferedRequest&&C(Ge,Se),ct?e.nextTick(R,Ge,Se,te,ze):R(Ge,Se,te,ze)}}function R(Ge,Re,Se,ct){Se||u(Ge,Re),Re.pendingcb--,ct(),Ae(Ge,Re)}function u(Ge,Re){Re.length===0&&Re.needDrain&&(Re.needDrain=!1,Ge.emit("drain"))}function C(Ge,Re){Re.bufferProcessing=!0;var Se=Re.bufferedRequest;if(Ge._writev&&Se&&Se.next){var ct=Re.bufferedRequestCount,ze=new Array(ct),te=Re.corkedRequestsFree;te.entry=Se;for(var Ue=0,oe=!0;Se;)ze[Ue]=Se,Se.isBuf||(oe=!1),Se=Se.next,Ue+=1;ze.allBuffers=oe,m(Ge,Re,!0,Re.length,ze,"",te.finish),Re.pendingcb++,Re.lastBufferedRequest=null,te.next?(Re.corkedRequestsFree=te.next,te.next=null):Re.corkedRequestsFree=new t(Re),Re.bufferedRequestCount=0}else{for(;Se;){var ge=Se.chunk,Le=Se.encoding,V=Se.callback,Qe=Re.objectMode?1:ge.length;if(m(Ge,Re,!1,Qe,ge,Le,V),Se=Se.next,Re.bufferedRequestCount--,Re.writing)break}Se===null&&(Re.lastBufferedRequest=null)}Re.bufferedRequest=Se,Re.bufferProcessing=!1}se.prototype._write=function(Ge,Re,Se){Se(new D("_write()"))},se.prototype._writev=null,se.prototype.end=function(Ge,Re,Se){var ct=this._writableState;return typeof Ge=="function"?(Se=Ge,Ge=null,Re=null):typeof Re=="function"&&(Se=Re,Re=null),Ge!=null&&this.write(Ge,Re),ct.corked&&(ct.corked=1,this.uncork()),ct.ending||he(this,ct,Se),this},Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(Ge){return Ge.ending&&Ge.length===0&&Ge.bufferedRequest===null&&!Ge.finished&&!Ge.writing}function F(Ge,Re){Ge._final(function(Se){Re.pendingcb--,Se&&le(Ge,Se),Re.prefinished=!0,Ge.emit("prefinish"),Ae(Ge,Re)})}function X(Ge,Re){!Re.prefinished&&!Re.finalCalled&&(typeof Ge._final=="function"&&!Re.destroyed?(Re.pendingcb++,Re.finalCalled=!0,e.nextTick(F,Ge,Re)):(Re.prefinished=!0,Ge.emit("prefinish")))}function Ae(Ge,Re){var Se=U(Re);if(Se&&(X(Ge,Re),Re.pendingcb===0&&(Re.finished=!0,Ge.emit("finish"),Re.autoDestroy))){var ct=Ge._readableState;(!ct||ct.autoDestroy&&ct.endEmitted)&&Ge.destroy()}return Se}function he(Ge,Re,Se){Re.ending=!0,Ae(Ge,Re),Se&&(Re.finished?e.nextTick(Se):Ge.once("finish",Se)),Re.ended=!0,Ge.writable=!1}function $e(Ge,Re,Se){var ct=Ge.entry;for(Ge.entry=null;ct;){var ze=ct.callback;Re.pendingcb--,ze(Se),ct=ct.next}Re.corkedRequestsFree.next=Ge}return Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Re){this._writableState&&(this._writableState.destroyed=Re)}}),se.prototype.destroy=_.destroy,se.prototype._undestroy=_.undestroy,se.prototype._destroy=function(Ge,Re){Re(Ge)},kne}function Iv(){if(MMe)return Pne;MMe=!0;var e=za,t=Object.keys||function(I){var N=[];for(var T in I)N.push(T);return N};Pne=g;var r=HM(),i=QM();La()(g,r);for(var n=t(i.prototype),o=0;o<n.length;o++){var d=n[o];g.prototype[d]||(g.prototype[d]=i.prototype[d])}function g(I){if(!(this instanceof g))return new g(I);r.call(this,I),i.call(this,I),this.allowHalfOpen=!0,I&&(I.readable===!1&&(this.readable=!1),I.writable===!1&&(this.writable=!1),I.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",y)))}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function y(){this._writableState.ended||e.nextTick(_,this)}function _(I){I.end()}return Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(N){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=N,this._writableState.destroyed=N)}}),Pne}function fO(){if(DMe)return Lne;DMe=!0;var e=dO().codes.ERR_STREAM_PREMATURE_CLOSE;function t(o){var d=!1;return function(){if(!d){d=!0;for(var g=arguments.length,y=new Array(g),_=0;_<g;_++)y[_]=arguments[_];o.apply(this,y)}}}function r(){}function i(o){return o.setHeader&&typeof o.abort=="function"}function n(o,d,g){if(typeof d=="function")return n(o,null,d);d||(d={}),g=t(g||r);var y=d.readable||d.readable!==!1&&o.readable,_=d.writable||d.writable!==!1&&o.writable,I=function(){o.writable||T()},N=o._writableState&&o._writableState.finished,T=function(){_=!1,N=!0,y||g.call(o)},M=o._readableState&&o._readableState.endEmitted,D=function(){y=!1,M=!0,_||g.call(o)},P=function(ne){g.call(o,ne)},G=function(){var ne;if(y&&!M)return(!o._readableState||!o._readableState.ended)&&(ne=new e),g.call(o,ne);if(_&&!N)return(!o._writableState||!o._writableState.ended)&&(ne=new e),g.call(o,ne)},q=function(){o.req.on("finish",T)};return i(o)?(o.on("complete",T),o.on("abort",G),o.req?q():o.on("request",q)):_&&!o._writableState&&(o.on("end",I),o.on("close",I)),o.on("end",D),o.on("finish",T),d.error!==!1&&o.on("error",P),o.on("close",G),function(){o.removeListener("complete",T),o.removeListener("abort",G),o.removeListener("request",q),o.req&&o.req.removeListener("finish",T),o.removeListener("end",I),o.removeListener("close",I),o.removeListener("finish",T),o.removeListener("end",D),o.removeListener("error",P),o.removeListener("close",G)}}return Lne=n,Lne}function ZSt(){if(kMe)return Une;kMe=!0;var e=za,t;function r(Y,ne,ce){return ne in Y?Object.defineProperty(Y,ne,{value:ce,enumerable:!0,configurable:!0,writable:!0}):Y[ne]=ce,Y}var i=fO(),n=Symbol("lastResolve"),o=Symbol("lastReject"),d=Symbol("error"),g=Symbol("ended"),y=Symbol("lastPromise"),_=Symbol("handlePromise"),I=Symbol("stream");function N(Y,ne){return{value:Y,done:ne}}function T(Y){var ne=Y[n];if(ne!==null){var ce=Y[I].read();ce!==null&&(Y[y]=null,Y[n]=null,Y[o]=null,ne(N(ce,!1)))}}function M(Y){e.nextTick(T,Y)}function D(Y,ne){return function(ce,le){Y.then(function(){if(ne[g]){ce(N(void 0,!0));return}ne[_](ce,le)},le)}}var P=Object.getPrototypeOf(function(){}),G=Object.setPrototypeOf((t={get stream(){return this[I]},next:function(){var ne=this,ce=this[d];if(ce!==null)return Promise.reject(ce);if(this[g])return Promise.resolve(N(void 0,!0));if(this[I].destroyed)return new Promise(function(W,se){e.nextTick(function(){ne[d]?se(ne[d]):W(N(void 0,!0))})});var le=this[y],pe;if(le)pe=new Promise(D(le,this));else{var ae=this[I].read();if(ae!==null)return Promise.resolve(N(ae,!1));pe=new Promise(this[_])}return this[y]=pe,pe}},r(t,Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var ne=this;return new Promise(function(ce,le){ne[I].destroy(null,function(pe){if(pe){le(pe);return}ce(N(void 0,!0))})})}),t),P),q=function(ne){var ce,le=Object.create(G,(ce={},r(ce,I,{value:ne,writable:!0}),r(ce,n,{value:null,writable:!0}),r(ce,o,{value:null,writable:!0}),r(ce,d,{value:null,writable:!0}),r(ce,g,{value:ne._readableState.endEmitted,writable:!0}),r(ce,_,{value:function(ae,W){var se=le[I].read();se?(le[y]=null,le[n]=null,le[o]=null,ae(N(se,!1))):(le[n]=ae,le[o]=W)},writable:!0}),ce));return le[y]=null,i(ne,function(pe){if(pe&&pe.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ae=le[o];ae!==null&&(le[y]=null,le[n]=null,le[o]=null,ae(pe)),le[d]=pe;return}var W=le[n];W!==null&&(le[y]=null,le[n]=null,le[o]=null,W(N(void 0,!0))),le[g]=!0}),ne.on("readable",M.bind(null,le)),le};return Une=q,Une}function jSt(){return PMe||(PMe=!0,Fne=function(){throw new Error("Readable.from is not available in the browser")}),Fne}function HM(){if(LMe)return Qne;LMe=!0;var e=za;Qne=O;var t;O.ReadableState=se,xc.EventEmitter;var r=function(Ue,oe){return Ue.listeners(oe).length},i=HMe(),n=Nu.Buffer,o=e6t.Uint8Array||function(){};function d(te){return n.from(te)}function g(te){return n.isBuffer(te)||te instanceof o}var y=yn,_;y&&y.debuglog?_=y.debuglog("stream"):_=function(){};var I=YSt(),N=GMe(),T=qMe(),M=T.getHighWaterMark,D=dO().codes,P=D.ERR_INVALID_ARG_TYPE,G=D.ERR_STREAM_PUSH_AFTER_EOF,q=D.ERR_METHOD_NOT_IMPLEMENTED,Y=D.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ne,ce,le;La()(O,i);var pe=N.errorOrDestroy,ae=["error","close","destroy","pause","resume"];function W(te,Ue,oe){if(typeof te.prependListener=="function")return te.prependListener(Ue,oe);!te._events||!te._events[Ue]?te.on(Ue,oe):Array.isArray(te._events[Ue])?te._events[Ue].unshift(oe):te._events[Ue]=[oe,te._events[Ue]]}function se(te,Ue,oe){t=t||Iv(),te=te||{},typeof oe!="boolean"&&(oe=Ue instanceof t),this.objectMode=!!te.objectMode,oe&&(this.objectMode=this.objectMode||!!te.readableObjectMode),this.highWaterMark=M(this,te,"readableHighWaterMark",oe),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=te.emitClose!==!1,this.autoDestroy=!!te.autoDestroy,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(ne||(ne=yh.StringDecoder),this.decoder=new ne(te.encoding),this.encoding=te.encoding)}function O(te){if(t=t||Iv(),!(this instanceof O))return new O(te);var Ue=this instanceof t;this._readableState=new se(te,this,Ue),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),i.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ue){this._readableState&&(this._readableState.destroyed=Ue)}}),O.prototype.destroy=N.destroy,O.prototype._undestroy=N.undestroy,O.prototype._destroy=function(te,Ue){Ue(te)},O.prototype.push=function(te,Ue){var oe=this._readableState,ge;return oe.objectMode?ge=!0:typeof te=="string"&&(Ue=Ue||oe.defaultEncoding,Ue!==oe.encoding&&(te=n.from(te,Ue),Ue=""),ge=!0),s(this,te,Ue,!1,ge)},O.prototype.unshift=function(te){return s(this,te,null,!0,!1)};function s(te,Ue,oe,ge,Le){_("readableAddChunk",Ue);var V=te._readableState;if(Ue===null)V.reading=!1,x(te,V);else{var Qe;if(Le||(Qe=A(V,Ue)),Qe)pe(te,Qe);else if(V.objectMode||Ue&&Ue.length>0)if(typeof Ue!="string"&&!V.objectMode&&Object.getPrototypeOf(Ue)!==n.prototype&&(Ue=d(Ue)),ge)V.endEmitted?pe(te,new Y):l(te,V,Ue,!0);else if(V.ended)pe(te,new G);else{if(V.destroyed)return!1;V.reading=!1,V.decoder&&!oe?(Ue=V.decoder.write(Ue),V.objectMode||Ue.length!==0?l(te,V,Ue,!1):C(te,V)):l(te,V,Ue,!1)}else ge||(V.reading=!1,C(te,V))}return!V.ended&&(V.length<V.highWaterMark||V.length===0)}function l(te,Ue,oe,ge){Ue.flowing&&Ue.length===0&&!Ue.sync?(Ue.awaitDrain=0,te.emit("data",oe)):(Ue.length+=Ue.objectMode?1:oe.length,ge?Ue.buffer.unshift(oe):Ue.buffer.push(oe),Ue.needReadable&&R(te)),C(te,Ue)}function A(te,Ue){var oe;return!g(Ue)&&typeof Ue!="string"&&Ue!==void 0&&!te.objectMode&&(oe=new P("chunk",["string","Buffer","Uint8Array"],Ue)),oe}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(te){ne||(ne=yh.StringDecoder);var Ue=new ne(te);this._readableState.decoder=Ue,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,ge="";oe!==null;)ge+=Ue.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var m=1073741824;function E(te){return te>=m?te=m:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function w(te,Ue){return te<=0||Ue.length===0&&Ue.ended?0:Ue.objectMode?1:te!==te?Ue.flowing&&Ue.length?Ue.buffer.head.data.length:Ue.length:(te>Ue.highWaterMark&&(Ue.highWaterMark=E(te)),te<=Ue.length?te:Ue.ended?Ue.length:(Ue.needReadable=!0,0))}O.prototype.read=function(te){_("read",te),te=parseInt(te,10);var Ue=this._readableState,oe=te;if(te!==0&&(Ue.emittedReadable=!1),te===0&&Ue.needReadable&&((Ue.highWaterMark!==0?Ue.length>=Ue.highWaterMark:Ue.length>0)||Ue.ended))return _("read: emitReadable",Ue.length,Ue.ended),Ue.length===0&&Ue.ended?Se(this):R(this),null;if(te=w(te,Ue),te===0&&Ue.ended)return Ue.length===0&&Se(this),null;var ge=Ue.needReadable;_("need readable",ge),(Ue.length===0||Ue.length-te<Ue.highWaterMark)&&(ge=!0,_("length less than watermark",ge)),Ue.ended||Ue.reading?(ge=!1,_("reading or ended",ge)):ge&&(_("do read"),Ue.reading=!0,Ue.sync=!0,Ue.length===0&&(Ue.needReadable=!0),this._read(Ue.highWaterMark),Ue.sync=!1,Ue.reading||(te=w(oe,Ue)));var Le;return te>0?Le=Re(te,Ue):Le=null,Le===null?(Ue.needReadable=Ue.length<=Ue.highWaterMark,te=0):(Ue.length-=te,Ue.awaitDrain=0),Ue.length===0&&(Ue.ended||(Ue.needReadable=!0),oe!==te&&Ue.ended&&Se(this)),Le!==null&&this.emit("data",Le),Le};function x(te,Ue){if(_("onEofChunk"),!Ue.ended){if(Ue.decoder){var oe=Ue.decoder.end();oe&&oe.length&&(Ue.buffer.push(oe),Ue.length+=Ue.objectMode?1:oe.length)}Ue.ended=!0,Ue.sync?R(te):(Ue.needReadable=!1,Ue.emittedReadable||(Ue.emittedReadable=!0,u(te)))}}function R(te){var Ue=te._readableState;_("emitReadable",Ue.needReadable,Ue.emittedReadable),Ue.needReadable=!1,Ue.emittedReadable||(_("emitReadable",Ue.flowing),Ue.emittedReadable=!0,e.nextTick(u,te))}function u(te){var Ue=te._readableState;_("emitReadable_",Ue.destroyed,Ue.length,Ue.ended),!Ue.destroyed&&(Ue.length||Ue.ended)&&(te.emit("readable"),Ue.emittedReadable=!1),Ue.needReadable=!Ue.flowing&&!Ue.ended&&Ue.length<=Ue.highWaterMark,Ge(te)}function C(te,Ue){Ue.readingMore||(Ue.readingMore=!0,e.nextTick(U,te,Ue))}function U(te,Ue){for(;!Ue.reading&&!Ue.ended&&(Ue.length<Ue.highWaterMark||Ue.flowing&&Ue.length===0);){var oe=Ue.length;if(_("maybeReadMore read 0"),te.read(0),oe===Ue.length)break}Ue.readingMore=!1}O.prototype._read=function(te){pe(this,new q("_read()"))},O.prototype.pipe=function(te,Ue){var oe=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=te;break;case 1:ge.pipes=[ge.pipes,te];break;default:ge.pipes.push(te);break}ge.pipesCount+=1,_("pipe count=%d opts=%j",ge.pipesCount,Ue);var Le=(!Ue||Ue.end!==!1)&&te!==e.stdout&&te!==e.stderr,V=Le?_t:ie;ge.endEmitted?e.nextTick(V):oe.once("end",V),te.on("unpipe",Qe);function Qe(_e,Be){_("onunpipe"),_e===oe&&Be&&Be.hasUnpiped===!1&&(Be.hasUnpiped=!0,Er())}function _t(){_("onend"),te.end()}var rt=F(oe);te.on("drain",rt);var At=!1;function Er(){_("cleanup"),te.removeListener("close",zr),te.removeListener("finish",ve),te.removeListener("drain",rt),te.removeListener("error",Ht),te.removeListener("unpipe",Qe),oe.removeListener("end",_t),oe.removeListener("end",ie),oe.removeListener("data",mt),At=!0,ge.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&rt()}oe.on("data",mt);function mt(_e){_("ondata");var Be=te.write(_e);_("dest.write",Be),Be===!1&&((ge.pipesCount===1&&ge.pipes===te||ge.pipesCount>1&&ze(ge.pipes,te)!==-1)&&!At&&(_("false write response, pause",ge.awaitDrain),ge.awaitDrain++),oe.pause())}function Ht(_e){_("onerror",_e),ie(),te.removeListener("error",Ht),r(te,"error")===0&&pe(te,_e)}W(te,"error",Ht);function zr(){te.removeListener("finish",ve),ie()}te.once("close",zr);function ve(){_("onfinish"),te.removeListener("close",zr),ie()}te.once("finish",ve);function ie(){_("unpipe"),oe.unpipe(te)}return te.emit("pipe",oe),ge.flowing||(_("pipe resume"),oe.resume()),te};function F(te){return function(){var oe=te._readableState;_("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&r(te,"data")&&(oe.flowing=!0,Ge(te))}}O.prototype.unpipe=function(te){var Ue=this._readableState,oe={hasUnpiped:!1};if(Ue.pipesCount===0)return this;if(Ue.pipesCount===1)return te&&te!==Ue.pipes?this:(te||(te=Ue.pipes),Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1,te&&te.emit("unpipe",this,oe),this);if(!te){var ge=Ue.pipes,Le=Ue.pipesCount;Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1;for(var V=0;V<Le;V++)ge[V].emit("unpipe",this,{hasUnpiped:!1});return this}var Qe=ze(Ue.pipes,te);return Qe===-1?this:(Ue.pipes.splice(Qe,1),Ue.pipesCount-=1,Ue.pipesCount===1&&(Ue.pipes=Ue.pipes[0]),te.emit("unpipe",this,oe),this)},O.prototype.on=function(te,Ue){var oe=i.prototype.on.call(this,te,Ue),ge=this._readableState;return te==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):te==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,_("on readable",ge.length,ge.reading),ge.length?R(this):ge.reading||e.nextTick(Ae,this)),oe},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(te,Ue){var oe=i.prototype.removeListener.call(this,te,Ue);return te==="readable"&&e.nextTick(X,this),oe},O.prototype.removeAllListeners=function(te){var Ue=i.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&e.nextTick(X,this),Ue};function X(te){var Ue=te._readableState;Ue.readableListening=te.listenerCount("readable")>0,Ue.resumeScheduled&&!Ue.paused?Ue.flowing=!0:te.listenerCount("data")>0&&te.resume()}function Ae(te){_("readable nexttick read 0"),te.read(0)}O.prototype.resume=function(){var te=this._readableState;return te.flowing||(_("resume"),te.flowing=!te.readableListening,he(this,te)),te.paused=!1,this};function he(te,Ue){Ue.resumeScheduled||(Ue.resumeScheduled=!0,e.nextTick($e,te,Ue))}function $e(te,Ue){_("resume",Ue.reading),Ue.reading||te.read(0),Ue.resumeScheduled=!1,te.emit("resume"),Ge(te),Ue.flowing&&!Ue.reading&&te.read(0)}O.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ge(te){var Ue=te._readableState;for(_("flow",Ue.flowing);Ue.flowing&&te.read()!==null;);}O.prototype.wrap=function(te){var Ue=this,oe=this._readableState,ge=!1;te.on("end",function(){if(_("wrapped end"),oe.decoder&&!oe.ended){var Qe=oe.decoder.end();Qe&&Qe.length&&Ue.push(Qe)}Ue.push(null)}),te.on("data",function(Qe){if(_("wrapped data"),oe.decoder&&(Qe=oe.decoder.write(Qe)),!(oe.objectMode&&Qe==null)&&!(!oe.objectMode&&(!Qe||!Qe.length))){var _t=Ue.push(Qe);_t||(ge=!0,te.pause())}});for(var Le in te)this[Le]===void 0&&typeof te[Le]=="function"&&(this[Le]=(function(_t){return function(){return te[_t].apply(te,arguments)}})(Le));for(var V=0;V<ae.length;V++)te.on(ae[V],this.emit.bind(this,ae[V]));return this._read=function(Qe){_("wrapped _read",Qe),ge&&(ge=!1,te.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return ce===void 0&&(ce=ZSt()),ce(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ue){this._readableState&&(this._readableState.flowing=Ue)}}),O._fromList=Re,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Re(te,Ue){if(Ue.length===0)return null;var oe;return Ue.objectMode?oe=Ue.buffer.shift():!te||te>=Ue.length?(Ue.decoder?oe=Ue.buffer.join(""):Ue.buffer.length===1?oe=Ue.buffer.first():oe=Ue.buffer.concat(Ue.length),Ue.buffer.clear()):oe=Ue.buffer.consume(te,Ue.decoder),oe}function Se(te){var Ue=te._readableState;_("endReadable",Ue.endEmitted),Ue.endEmitted||(Ue.ended=!0,e.nextTick(ct,Ue,te))}function ct(te,Ue){if(_("endReadableNT",te.endEmitted,te.length),!te.endEmitted&&te.length===0&&(te.endEmitted=!0,Ue.readable=!1,Ue.emit("end"),te.autoDestroy)){var oe=Ue._writableState;(!oe||oe.autoDestroy&&oe.finished)&&Ue.destroy()}}typeof Symbol=="function"&&(O.from=function(te,Ue){return le===void 0&&(le=jSt()),le(O,te,Ue)});function ze(te,Ue){for(var oe=0,ge=te.length;oe<ge;oe++)if(te[oe]===Ue)return oe;return-1}return Qne}function GM(){if(UMe)return Hne;UMe=!0,Hne=g;var e=dO().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,o=Iv();La()(g,o);function d(I,N){var T=this._transformState;T.transforming=!1;var M=T.writecb;if(M===null)return this.emit("error",new r);T.writechunk=null,T.writecb=null,N!=null&&this.push(N),M(I);var D=this._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}function g(I){if(!(this instanceof g))return new g(I);o.call(this,I),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,I&&(typeof I.transform=="function"&&(this._transform=I.transform),typeof I.flush=="function"&&(this._flush=I.flush)),this.on("prefinish",y)}function y(){var I=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,T){_(I,N,T)}):_(this,null,null)}g.prototype.push=function(I,N){return this._transformState.needTransform=!1,o.prototype.push.call(this,I,N)},g.prototype._transform=function(I,N,T){T(new t("_transform()"))},g.prototype._write=function(I,N,T){var M=this._transformState;if(M.writecb=T,M.writechunk=I,M.writeencoding=N,!M.transforming){var D=this._readableState;(M.needTransform||D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}},g.prototype._read=function(I){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},g.prototype._destroy=function(I,N){o.prototype._destroy.call(this,I,function(T){N(T)})};function _(I,N,T){if(N)return I.emit("error",N);if(T!=null&&I.push(T),I._writableState.length)throw new n;if(I._transformState.transforming)throw new i;return I.push(null)}return Hne}function mG(){if(FMe)return Gne;FMe=!0,Gne=t;var e=GM();La()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,n){n(null,r)},Gne}function yG(){if(QMe)return qne;QMe=!0;var e;function t(T){var M=!1;return function(){M||(M=!0,T.apply(void 0,arguments))}}var r=dO().codes,i=r.ERR_MISSING_ARGS,n=r.ERR_STREAM_DESTROYED;function o(T){if(T)throw T}function d(T){return T.setHeader&&typeof T.abort=="function"}function g(T,M,D,P){P=t(P);var G=!1;T.on("close",function(){G=!0}),e===void 0&&(e=fO()),e(T,{readable:M,writable:D},function(Y){if(Y)return P(Y);G=!0,P()});var q=!1;return function(Y){if(!G&&!q){if(q=!0,d(T))return T.abort();if(typeof T.destroy=="function")return T.destroy();P(Y||new n("pipe"))}}}function y(T){T()}function _(T,M){return T.pipe(M)}function I(T){return!T.length||typeof T[T.length-1]!="function"?o:T.pop()}function N(){for(var T=arguments.length,M=new Array(T),D=0;D<T;D++)M[D]=arguments[D];var P=I(M);if(Array.isArray(M[0])&&(M=M[0]),M.length<2)throw new i("streams");var G,q=M.map(function(Y,ne){var ce=ne<M.length-1,le=ne>0;return g(Y,ce,le,function(pe){G||(G=pe),pe&&q.forEach(y),!ce&&(q.forEach(y),P(G))})});return M.reduce(_)}return qne=N,qne}var FM,vMe,gG,RMe,q8,SMe,Nu,_G,IMe,One,CMe,Nne,wMe,xne,OMe,Tne,NMe,Bne,xMe,Mne,TMe,Dne,kne,BMe,XSt,Pne,MMe,Lne,DMe,Une,kMe,Fne,PMe,Qne,LMe,e6t,Hne,UMe,Gne,FMe,qne,QMe,lO=tn(()=>{"use strict";J();K();z();YS();sO();vv();XS();UM();FM={},vMe=!1;gG={},RMe=!1;q8={},SMe=!1;Nu=$St();Nu.Buffer;Nu.INSPECT_MAX_BYTES;Nu.kMaxLength;_G={},IMe=!1;One={},CMe=!1;Nne={},wMe=!1;xne={},OMe=!1;Tne={},NMe=!1;Bne={},xMe=!1;Mne={},TMe=!1,Dne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kne={},BMe=!1,XSt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Pne={},MMe=!1;Lne={},DMe=!1;Une={},kMe=!1;Fne={},PMe=!1;Qne={},LMe=!1,e6t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Hne={},UMe=!1;Gne={},FMe=!1;qne={},QMe=!1});function Vne(){return VMe||(VMe=!0,Ep=Ep=HM(),Ep.Stream=Ep,Ep.Readable=Ep,Ep.Writable=QM(),Ep.Duplex=Iv(),Ep.Transform=GM(),Ep.PassThrough=mG(),Ep.finished=fO(),Ep.pipeline=yG()),Ep}var Ep,VMe,JMe=tn(()=>{"use strict";J();K();z();lO();Ep={},VMe=!1});var Lv={};gh(Lv,{Cipher:()=>vOt,Cipheriv:()=>ROt,Decipher:()=>SOt,Decipheriv:()=>IOt,DiffieHellman:()=>COt,DiffieHellmanGroup:()=>wOt,Hash:()=>OOt,Hmac:()=>NOt,Sign:()=>xOt,Verify:()=>TOt,constants:()=>u0e,createCipher:()=>BOt,createCipheriv:()=>MOt,createCredentials:()=>DOt,createDecipher:()=>kOt,createDecipheriv:()=>POt,createDiffieHellman:()=>LOt,createDiffieHellmanGroup:()=>UOt,createECDH:()=>FOt,createHash:()=>vm,createHmac:()=>QOt,createSign:()=>d0e,createVerify:()=>HOt,default:()=>yi,getCiphers:()=>GOt,getDiffieHellman:()=>qOt,getHashes:()=>VOt,listCiphers:()=>JOt,pbkdf2:()=>zOt,pbkdf2Sync:()=>KOt,privateDecrypt:()=>$Ot,privateEncrypt:()=>YOt,prng:()=>WOt,pseudoRandomBytes:()=>XOt,publicDecrypt:()=>ZOt,publicEncrypt:()=>jOt,randomBytes:()=>f0e,randomFill:()=>eNt,randomFillSync:()=>tNt,rng:()=>rNt,webcrypto:()=>nNt});function Vs(){if(zMe)return qM;zMe=!0;var e=Nu,t=e.Buffer;function r(n,o){for(var d in n)o[d]=n[d]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?qM=e:(r(e,qM),qM.Buffer=i);function i(n,o,d){return t(n,o,d)}return r(t,i),i.from=function(n,o,d){if(typeof n=="number")throw new TypeError("Argument must not be a number");return t(n,o,d)},i.alloc=function(n,o,d){if(typeof n!="number")throw new TypeError("Argument must be a number");var g=t(n);return o!==void 0?typeof d=="string"?g.fill(o,d):g.fill(o):g.fill(0),g},i.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return t(n)},i.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(n)},qM}function TO(){if(KMe)return bG;KMe=!0;var e=za,t=65536,r=4294967295;function i(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
Use Chrome, Firefox or Internet Explorer 11`)}var n=Vs().Buffer,o=$Me.crypto||$Me.msCrypto;o&&o.getRandomValues?bG=d:bG=i;function d(g,y){if(g>r)throw new RangeError("requested too many random bytes");var _=n.allocUnsafe(g);if(g>0)if(g>t)for(var I=0;I<g;I+=t)o.getRandomValues(_.slice(I,I+t));else o.getRandomValues(_);return typeof y=="function"?e.nextTick(function(){y(null,_)}):_}return bG}function t6t(){if(YMe)return VM;YMe=!0;var e=Nu,t=e.Buffer;function r(n,o){for(var d in n)o[d]=n[d]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?VM=e:(r(e,VM),VM.Buffer=i);function i(n,o,d){return t(n,o,d)}return i.prototype=Object.create(t.prototype),r(t,i),i.from=function(n,o,d){if(typeof n=="number")throw new TypeError("Argument must not be a number");return t(n,o,d)},i.alloc=function(n,o,d){if(typeof n!="number")throw new TypeError("Argument must be a number");var g=t(n);return o!==void 0?typeof d=="string"?g.fill(o,d):g.fill(o):g.fill(0),g},i.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return t(n)},i.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(n)},VM}function nHe(){if(WMe)return Jne;WMe=!0;var e=t6t().Buffer,t=Vne().Transform,r=La();function i(o,d){if(!e.isBuffer(o)&&typeof o!="string")throw new TypeError(d+" must be a string or a buffer")}function n(o){t.call(this),this._block=e.allocUnsafe(o),this._blockSize=o,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return r(n,t),n.prototype._transform=function(o,d,g){var y=null;try{this.update(o,d)}catch(_){y=_}g(y)},n.prototype._flush=function(o){var d=null;try{this.push(this.digest())}catch(g){d=g}o(d)},n.prototype.update=function(o,d){if(i(o,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(o)||(o=e.from(o,d));for(var g=this._block,y=0;this._blockOffset+o.length-y>=this._blockSize;){for(var _=this._blockOffset;_<this._blockSize;)g[_++]=o[y++];this._update(),this._blockOffset=0}for(;y<o.length;)g[this._blockOffset++]=o[y++];for(var I=0,N=o.length*8;N>0;++I)this._length[I]+=N,N=this._length[I]/4294967296|0,N>0&&(this._length[I]-=4294967296*N);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(o){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();o!==void 0&&(d=d.toString(o)),this._block.fill(0),this._blockOffset=0;for(var g=0;g<4;++g)this._length[g]=0;return d},n.prototype._digest=function(){throw new Error("_digest is not implemented")},Jne=n,Jne}function lue(){if(XMe)return zne;XMe=!0;var e=La(),t=nHe(),r=Vs().Buffer,i=new Array(16);function n(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(n,t),n.prototype._update=function(){for(var I=i,N=0;N<16;++N)I[N]=this._block.readInt32LE(N*4);var T=this._a,M=this._b,D=this._c,P=this._d;T=d(T,M,D,P,I[0],3614090360,7),P=d(P,T,M,D,I[1],3905402710,12),D=d(D,P,T,M,I[2],606105819,17),M=d(M,D,P,T,I[3],3250441966,22),T=d(T,M,D,P,I[4],4118548399,7),P=d(P,T,M,D,I[5],1200080426,12),D=d(D,P,T,M,I[6],2821735955,17),M=d(M,D,P,T,I[7],4249261313,22),T=d(T,M,D,P,I[8],1770035416,7),P=d(P,T,M,D,I[9],2336552879,12),D=d(D,P,T,M,I[10],4294925233,17),M=d(M,D,P,T,I[11],2304563134,22),T=d(T,M,D,P,I[12],1804603682,7),P=d(P,T,M,D,I[13],4254626195,12),D=d(D,P,T,M,I[14],2792965006,17),M=d(M,D,P,T,I[15],1236535329,22),T=g(T,M,D,P,I[1],4129170786,5),P=g(P,T,M,D,I[6],3225465664,9),D=g(D,P,T,M,I[11],643717713,14),M=g(M,D,P,T,I[0],3921069994,20),T=g(T,M,D,P,I[5],3593408605,5),P=g(P,T,M,D,I[10],38016083,9),D=g(D,P,T,M,I[15],3634488961,14),M=g(M,D,P,T,I[4],3889429448,20),T=g(T,M,D,P,I[9],568446438,5),P=g(P,T,M,D,I[14],3275163606,9),D=g(D,P,T,M,I[3],4107603335,14),M=g(M,D,P,T,I[8],1163531501,20),T=g(T,M,D,P,I[13],2850285829,5),P=g(P,T,M,D,I[2],4243563512,9),D=g(D,P,T,M,I[7],1735328473,14),M=g(M,D,P,T,I[12],2368359562,20),T=y(T,M,D,P,I[5],4294588738,4),P=y(P,T,M,D,I[8],2272392833,11),D=y(D,P,T,M,I[11],1839030562,16),M=y(M,D,P,T,I[14],4259657740,23),T=y(T,M,D,P,I[1],2763975236,4),P=y(P,T,M,D,I[4],1272893353,11),D=y(D,P,T,M,I[7],4139469664,16),M=y(M,D,P,T,I[10],3200236656,23),T=y(T,M,D,P,I[13],681279174,4),P=y(P,T,M,D,I[0],3936430074,11),D=y(D,P,T,M,I[3],3572445317,16),M=y(M,D,P,T,I[6],76029189,23),T=y(T,M,D,P,I[9],3654602809,4),P=y(P,T,M,D,I[12],3873151461,11),D=y(D,P,T,M,I[15],530742520,16),M=y(M,D,P,T,I[2],3299628645,23),T=_(T,M,D,P,I[0],4096336452,6),P=_(P,T,M,D,I[7],1126891415,10),D=_(D,P,T,M,I[14],2878612391,15),M=_(M,D,P,T,I[5],4237533241,21),T=_(T,M,D,P,I[12],1700485571,6),P=_(P,T,M,D,I[3],2399980690,10),D=_(D,P,T,M,I[10],4293915773,15),M=_(M,D,P,T,I[1],2240044497,21),T=_(T,M,D,P,I[8],1873313359,6),P=_(P,T,M,D,I[15],4264355552,10),D=_(D,P,T,M,I[6],2734768916,15),M=_(M,D,P,T,I[13],1309151649,21),T=_(T,M,D,P,I[4],4149444226,6),P=_(P,T,M,D,I[11],3174756917,10),D=_(D,P,T,M,I[2],718787259,15),M=_(M,D,P,T,I[9],3951481745,21),this._a=this._a+T|0,this._b=this._b+M|0,this._c=this._c+D|0,this._d=this._d+P|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var I=r.allocUnsafe(16);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I};function o(I,N){return I<<N|I>>>32-N}function d(I,N,T,M,D,P,G){return o(I+(N&T|~N&M)+D+P|0,G)+N|0}function g(I,N,T,M,D,P,G){return o(I+(N&M|T&~M)+D+P|0,G)+N|0}function y(I,N,T,M,D,P,G){return o(I+(N^T^M)+D+P|0,G)+N|0}function _(I,N,T,M,D,P,G){return o(I+(T^(N|~M))+D+P|0,G)+N|0}return zne=n,zne}function hue(){if(ZMe)return Kne;ZMe=!0;var e=Nu.Buffer,t=La(),r=nHe(),i=new Array(16),n=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],o=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],y=[0,1518500249,1859775393,2400959708,2840853838],_=[1352829926,1548603684,1836072691,2053994217,0];function I(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}t(I,r),I.prototype._update=function(){for(var q=i,Y=0;Y<16;++Y)q[Y]=this._block.readInt32LE(Y*4);for(var ne=this._a|0,ce=this._b|0,le=this._c|0,pe=this._d|0,ae=this._e|0,W=this._a|0,se=this._b|0,O=this._c|0,s=this._d|0,l=this._e|0,A=0;A<80;A+=1){var m,E;A<16?(m=T(ne,ce,le,pe,ae,q[n[A]],y[0],d[A]),E=G(W,se,O,s,l,q[o[A]],_[0],g[A])):A<32?(m=M(ne,ce,le,pe,ae,q[n[A]],y[1],d[A]),E=P(W,se,O,s,l,q[o[A]],_[1],g[A])):A<48?(m=D(ne,ce,le,pe,ae,q[n[A]],y[2],d[A]),E=D(W,se,O,s,l,q[o[A]],_[2],g[A])):A<64?(m=P(ne,ce,le,pe,ae,q[n[A]],y[3],d[A]),E=M(W,se,O,s,l,q[o[A]],_[3],g[A])):(m=G(ne,ce,le,pe,ae,q[n[A]],y[4],d[A]),E=T(W,se,O,s,l,q[o[A]],_[4],g[A])),ne=ae,ae=pe,pe=N(le,10),le=ce,ce=m,W=l,l=s,s=N(O,10),O=se,se=E}var w=this._b+le+s|0;this._b=this._c+pe+l|0,this._c=this._d+ae+W|0,this._d=this._e+ne+se|0,this._e=this._a+ce+O|0,this._a=w},I.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var q=e.alloc?e.alloc(20):new e(20);return q.writeInt32LE(this._a,0),q.writeInt32LE(this._b,4),q.writeInt32LE(this._c,8),q.writeInt32LE(this._d,12),q.writeInt32LE(this._e,16),q};function N(q,Y){return q<<Y|q>>>32-Y}function T(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y^ne^ce)+pe+ae|0,W)+le|0}function M(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y&ne|~Y&ce)+pe+ae|0,W)+le|0}function D(q,Y,ne,ce,le,pe,ae,W){return N(q+((Y|~ne)^ce)+pe+ae|0,W)+le|0}function P(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y&ce|ne&~ce)+pe+ae|0,W)+le|0}function G(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y^(ne|~ce))+pe+ae|0,W)+le|0}return Kne=I,Kne}function BO(){if(jMe)return $ne;jMe=!0;var e=Vs().Buffer;function t(r,i){(this||p0)._block=e.alloc(r),(this||p0)._finalSize=i,(this||p0)._blockSize=r,(this||p0)._len=0}return t.prototype.update=function(r,i){typeof r=="string"&&(i=i||"utf8",r=e.from(r,i));for(var n=(this||p0)._block,o=(this||p0)._blockSize,d=r.length,g=(this||p0)._len,y=0;y<d;){for(var _=g%o,I=Math.min(d-y,o-_),N=0;N<I;N++)n[_+N]=r[y+N];g+=I,y+=I,g%o===0&&this._update(n)}return(this||p0)._len+=d,this||p0},t.prototype.digest=function(r){var i=(this||p0)._len%(this||p0)._blockSize;(this||p0)._block[i]=128,(this||p0)._block.fill(0,i+1),i>=(this||p0)._finalSize&&(this._update((this||p0)._block),(this||p0)._block.fill(0));var n=(this||p0)._len*8;if(n<=4294967295)(this||p0)._block.writeUInt32BE(n,(this||p0)._blockSize-4);else{var o=(n&4294967295)>>>0,d=(n-o)/4294967296;(this||p0)._block.writeUInt32BE(d,(this||p0)._blockSize-8),(this||p0)._block.writeUInt32BE(o,(this||p0)._blockSize-4)}this._update((this||p0)._block);var g=this._hash();return r?g.toString(r):g},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},$ne=t,$ne}function r6t(){if(eDe)return Yne;eDe=!0;var e=La(),t=BO(),r=Vs().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),(this||Kc)._w=n,t.call(this||Kc,64,56)}e(o,t),o.prototype.init=function(){return(this||Kc)._a=1732584193,(this||Kc)._b=4023233417,(this||Kc)._c=2562383102,(this||Kc)._d=271733878,(this||Kc)._e=3285377520,this||Kc};function d(_){return _<<5|_>>>27}function g(_){return _<<30|_>>>2}function y(_,I,N,T){return _===0?I&N|~I&T:_===2?I&N|I&T|N&T:I^N^T}return o.prototype._update=function(_){for(var I=(this||Kc)._w,N=(this||Kc)._a|0,T=(this||Kc)._b|0,M=(this||Kc)._c|0,D=(this||Kc)._d|0,P=(this||Kc)._e|0,G=0;G<16;++G)I[G]=_.readInt32BE(G*4);for(;G<80;++G)I[G]=I[G-3]^I[G-8]^I[G-14]^I[G-16];for(var q=0;q<80;++q){var Y=~~(q/20),ne=d(N)+y(Y,T,M,D)+P+I[q]+i[Y]|0;P=D,D=M,M=g(T),T=N,N=ne}(this||Kc)._a=N+(this||Kc)._a|0,(this||Kc)._b=T+(this||Kc)._b|0,(this||Kc)._c=M+(this||Kc)._c|0,(this||Kc)._d=D+(this||Kc)._d|0,(this||Kc)._e=P+(this||Kc)._e|0},o.prototype._hash=function(){var _=r.allocUnsafe(20);return _.writeInt32BE((this||Kc)._a|0,0),_.writeInt32BE((this||Kc)._b|0,4),_.writeInt32BE((this||Kc)._c|0,8),_.writeInt32BE((this||Kc)._d|0,12),_.writeInt32BE((this||Kc)._e|0,16),_},Yne=o,Yne}function n6t(){if(tDe)return Wne;tDe=!0;var e=La(),t=BO(),r=Vs().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),(this||$c)._w=n,t.call(this||$c,64,56)}e(o,t),o.prototype.init=function(){return(this||$c)._a=1732584193,(this||$c)._b=4023233417,(this||$c)._c=2562383102,(this||$c)._d=271733878,(this||$c)._e=3285377520,this||$c};function d(I){return I<<1|I>>>31}function g(I){return I<<5|I>>>27}function y(I){return I<<30|I>>>2}function _(I,N,T,M){return I===0?N&T|~N&M:I===2?N&T|N&M|T&M:N^T^M}return o.prototype._update=function(I){for(var N=(this||$c)._w,T=(this||$c)._a|0,M=(this||$c)._b|0,D=(this||$c)._c|0,P=(this||$c)._d|0,G=(this||$c)._e|0,q=0;q<16;++q)N[q]=I.readInt32BE(q*4);for(;q<80;++q)N[q]=d(N[q-3]^N[q-8]^N[q-14]^N[q-16]);for(var Y=0;Y<80;++Y){var ne=~~(Y/20),ce=g(T)+_(ne,M,D,P)+G+N[Y]+i[ne]|0;G=P,P=D,D=y(M),M=T,T=ce}(this||$c)._a=T+(this||$c)._a|0,(this||$c)._b=M+(this||$c)._b|0,(this||$c)._c=D+(this||$c)._c|0,(this||$c)._d=P+(this||$c)._d|0,(this||$c)._e=G+(this||$c)._e|0},o.prototype._hash=function(){var I=r.allocUnsafe(20);return I.writeInt32BE((this||$c)._a|0,0),I.writeInt32BE((this||$c)._b|0,4),I.writeInt32BE((this||$c)._c|0,8),I.writeInt32BE((this||$c)._d|0,12),I.writeInt32BE((this||$c)._e|0,16),I},Wne=o,Wne}function iHe(){if(rDe)return Xne;rDe=!0;var e=La(),t=BO(),r=Vs().Buffer,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=new Array(64);function o(){this.init(),(this||ua)._w=n,t.call(this||ua,64,56)}e(o,t),o.prototype.init=function(){return(this||ua)._a=1779033703,(this||ua)._b=3144134277,(this||ua)._c=1013904242,(this||ua)._d=2773480762,(this||ua)._e=1359893119,(this||ua)._f=2600822924,(this||ua)._g=528734635,(this||ua)._h=1541459225,this||ua};function d(T,M,D){return D^T&(M^D)}function g(T,M,D){return T&M|D&(T|M)}function y(T){return(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10)}function _(T){return(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7)}function I(T){return(T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3}function N(T){return(T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10}return o.prototype._update=function(T){for(var M=(this||ua)._w,D=(this||ua)._a|0,P=(this||ua)._b|0,G=(this||ua)._c|0,q=(this||ua)._d|0,Y=(this||ua)._e|0,ne=(this||ua)._f|0,ce=(this||ua)._g|0,le=(this||ua)._h|0,pe=0;pe<16;++pe)M[pe]=T.readInt32BE(pe*4);for(;pe<64;++pe)M[pe]=N(M[pe-2])+M[pe-7]+I(M[pe-15])+M[pe-16]|0;for(var ae=0;ae<64;++ae){var W=le+_(Y)+d(Y,ne,ce)+i[ae]+M[ae]|0,se=y(D)+g(D,P,G)|0;le=ce,ce=ne,ne=Y,Y=q+W|0,q=G,G=P,P=D,D=W+se|0}(this||ua)._a=D+(this||ua)._a|0,(this||ua)._b=P+(this||ua)._b|0,(this||ua)._c=G+(this||ua)._c|0,(this||ua)._d=q+(this||ua)._d|0,(this||ua)._e=Y+(this||ua)._e|0,(this||ua)._f=ne+(this||ua)._f|0,(this||ua)._g=ce+(this||ua)._g|0,(this||ua)._h=le+(this||ua)._h|0},o.prototype._hash=function(){var T=r.allocUnsafe(32);return T.writeInt32BE((this||ua)._a,0),T.writeInt32BE((this||ua)._b,4),T.writeInt32BE((this||ua)._c,8),T.writeInt32BE((this||ua)._d,12),T.writeInt32BE((this||ua)._e,16),T.writeInt32BE((this||ua)._f,20),T.writeInt32BE((this||ua)._g,24),T.writeInt32BE((this||ua)._h,28),T},Xne=o,Xne}function i6t(){if(nDe)return Zne;nDe=!0;var e=La(),t=iHe(),r=BO(),i=Vs().Buffer,n=new Array(64);function o(){this.init(),(this||Xf)._w=n,r.call(this||Xf,64,56)}return e(o,t),o.prototype.init=function(){return(this||Xf)._a=3238371032,(this||Xf)._b=914150663,(this||Xf)._c=812702999,(this||Xf)._d=4144912697,(this||Xf)._e=4290775857,(this||Xf)._f=1750603025,(this||Xf)._g=1694076839,(this||Xf)._h=3204075428,this||Xf},o.prototype._hash=function(){var d=i.allocUnsafe(28);return d.writeInt32BE((this||Xf)._a,0),d.writeInt32BE((this||Xf)._b,4),d.writeInt32BE((this||Xf)._c,8),d.writeInt32BE((this||Xf)._d,12),d.writeInt32BE((this||Xf)._e,16),d.writeInt32BE((this||Xf)._f,20),d.writeInt32BE((this||Xf)._g,24),d},Zne=o,Zne}function oHe(){if(iDe)return jne;iDe=!0;var e=La(),t=BO(),r=Vs().Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=new Array(160);function o(){this.init(),(this||ti)._w=n,t.call(this||ti,128,112)}e(o,t),o.prototype.init=function(){return(this||ti)._ah=1779033703,(this||ti)._bh=3144134277,(this||ti)._ch=1013904242,(this||ti)._dh=2773480762,(this||ti)._eh=1359893119,(this||ti)._fh=2600822924,(this||ti)._gh=528734635,(this||ti)._hh=1541459225,(this||ti)._al=4089235720,(this||ti)._bl=2227873595,(this||ti)._cl=4271175723,(this||ti)._dl=1595750129,(this||ti)._el=2917565137,(this||ti)._fl=725511199,(this||ti)._gl=4215389547,(this||ti)._hl=327033209,this||ti};function d(P,G,q){return q^P&(G^q)}function g(P,G,q){return P&G|q&(P|G)}function y(P,G){return(P>>>28|G<<4)^(G>>>2|P<<30)^(G>>>7|P<<25)}function _(P,G){return(P>>>14|G<<18)^(P>>>18|G<<14)^(G>>>9|P<<23)}function I(P,G){return(P>>>1|G<<31)^(P>>>8|G<<24)^P>>>7}function N(P,G){return(P>>>1|G<<31)^(P>>>8|G<<24)^(P>>>7|G<<25)}function T(P,G){return(P>>>19|G<<13)^(G>>>29|P<<3)^P>>>6}function M(P,G){return(P>>>19|G<<13)^(G>>>29|P<<3)^(P>>>6|G<<26)}function D(P,G){return P>>>0<G>>>0?1:0}return o.prototype._update=function(P){for(var G=(this||ti)._w,q=(this||ti)._ah|0,Y=(this||ti)._bh|0,ne=(this||ti)._ch|0,ce=(this||ti)._dh|0,le=(this||ti)._eh|0,pe=(this||ti)._fh|0,ae=(this||ti)._gh|0,W=(this||ti)._hh|0,se=(this||ti)._al|0,O=(this||ti)._bl|0,s=(this||ti)._cl|0,l=(this||ti)._dl|0,A=(this||ti)._el|0,m=(this||ti)._fl|0,E=(this||ti)._gl|0,w=(this||ti)._hl|0,x=0;x<32;x+=2)G[x]=P.readInt32BE(x*4),G[x+1]=P.readInt32BE(x*4+4);for(;x<160;x+=2){var R=G[x-30],u=G[x-30+1],C=I(R,u),U=N(u,R);R=G[x-4],u=G[x-4+1];var F=T(R,u),X=M(u,R),Ae=G[x-14],he=G[x-14+1],$e=G[x-32],Ge=G[x-32+1],Re=U+he|0,Se=C+Ae+D(Re,U)|0;Re=Re+X|0,Se=Se+F+D(Re,X)|0,Re=Re+Ge|0,Se=Se+$e+D(Re,Ge)|0,G[x]=Se,G[x+1]=Re}for(var ct=0;ct<160;ct+=2){Se=G[ct],Re=G[ct+1];var ze=g(q,Y,ne),te=g(se,O,s),Ue=y(q,se),oe=y(se,q),ge=_(le,A),Le=_(A,le),V=i[ct],Qe=i[ct+1],_t=d(le,pe,ae),rt=d(A,m,E),At=w+Le|0,Er=W+ge+D(At,w)|0;At=At+rt|0,Er=Er+_t+D(At,rt)|0,At=At+Qe|0,Er=Er+V+D(At,Qe)|0,At=At+Re|0,Er=Er+Se+D(At,Re)|0;var mt=oe+te|0,Ht=Ue+ze+D(mt,oe)|0;W=ae,w=E,ae=pe,E=m,pe=le,m=A,A=l+At|0,le=ce+Er+D(A,l)|0,ce=ne,l=s,ne=Y,s=O,Y=q,O=se,se=At+mt|0,q=Er+Ht+D(se,At)|0}(this||ti)._al=(this||ti)._al+se|0,(this||ti)._bl=(this||ti)._bl+O|0,(this||ti)._cl=(this||ti)._cl+s|0,(this||ti)._dl=(this||ti)._dl+l|0,(this||ti)._el=(this||ti)._el+A|0,(this||ti)._fl=(this||ti)._fl+m|0,(this||ti)._gl=(this||ti)._gl+E|0,(this||ti)._hl=(this||ti)._hl+w|0,(this||ti)._ah=(this||ti)._ah+q+D((this||ti)._al,se)|0,(this||ti)._bh=(this||ti)._bh+Y+D((this||ti)._bl,O)|0,(this||ti)._ch=(this||ti)._ch+ne+D((this||ti)._cl,s)|0,(this||ti)._dh=(this||ti)._dh+ce+D((this||ti)._dl,l)|0,(this||ti)._eh=(this||ti)._eh+le+D((this||ti)._el,A)|0,(this||ti)._fh=(this||ti)._fh+pe+D((this||ti)._fl,m)|0,(this||ti)._gh=(this||ti)._gh+ae+D((this||ti)._gl,E)|0,(this||ti)._hh=(this||ti)._hh+W+D((this||ti)._hl,w)|0},o.prototype._hash=function(){var P=r.allocUnsafe(64);function G(q,Y,ne){P.writeInt32BE(q,ne),P.writeInt32BE(Y,ne+4)}return G((this||ti)._ah,(this||ti)._al,0),G((this||ti)._bh,(this||ti)._bl,8),G((this||ti)._ch,(this||ti)._cl,16),G((this||ti)._dh,(this||ti)._dl,24),G((this||ti)._eh,(this||ti)._el,32),G((this||ti)._fh,(this||ti)._fl,40),G((this||ti)._gh,(this||ti)._gl,48),G((this||ti)._hh,(this||ti)._hl,56),P},jne=o,jne}function o6t(){if(oDe)return eie;oDe=!0;var e=La(),t=oHe(),r=BO(),i=Vs().Buffer,n=new Array(160);function o(){this.init(),(this||bc)._w=n,r.call(this||bc,128,112)}return e(o,t),o.prototype.init=function(){return(this||bc)._ah=3418070365,(this||bc)._bh=1654270250,(this||bc)._ch=2438529370,(this||bc)._dh=355462360,(this||bc)._eh=1731405415,(this||bc)._fh=2394180231,(this||bc)._gh=3675008525,(this||bc)._hh=1203062813,(this||bc)._al=3238371032,(this||bc)._bl=914150663,(this||bc)._cl=812702999,(this||bc)._dl=4144912697,(this||bc)._el=4290775857,(this||bc)._fl=1750603025,(this||bc)._gl=1694076839,(this||bc)._hl=3204075428,this||bc},o.prototype._hash=function(){var d=i.allocUnsafe(48);function g(y,_,I){d.writeInt32BE(y,I),d.writeInt32BE(_,I+4)}return g((this||bc)._ah,(this||bc)._al,0),g((this||bc)._bh,(this||bc)._bl,8),g((this||bc)._ch,(this||bc)._cl,16),g((this||bc)._dh,(this||bc)._dl,24),g((this||bc)._eh,(this||bc)._el,32),g((this||bc)._fh,(this||bc)._fl,40),d},eie=o,eie}function Aue(){if(aDe)return tie.exports;aDe=!0;var e=tie.exports=function(r){r=r.toLowerCase();var i=e[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};return e.sha=r6t(),e.sha1=n6t(),e.sha224=i6t(),e.sha256=iHe(),e.sha384=o6t(),e.sha512=oHe(),tie.exports}function rs(){return sDe||(sDe=!0,typeof Object.create=="function"?EG=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:EG=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}),EG}function aHe(){return cDe||(cDe=!0,rie=xc.EventEmitter),rie}function s6t(){if(uDe)return nie;uDe=!0;function e(T,M){var D=Object.keys(T);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(T);M&&(P=P.filter(function(G){return Object.getOwnPropertyDescriptor(T,G).enumerable})),D.push.apply(D,P)}return D}function t(T){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?e(Object(D),!0).forEach(function(P){r(T,P,D[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(D)):e(Object(D)).forEach(function(P){Object.defineProperty(T,P,Object.getOwnPropertyDescriptor(D,P))})}return T}function r(T,M,D){return M in T?Object.defineProperty(T,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):T[M]=D,T}function i(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}function n(T,M){for(var D=0;D<M.length;D++){var P=M[D];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function o(T,M,D){return M&&n(T.prototype,M),D&&n(T,D),T}var d=Vo,g=d.Buffer,y=yn,_=y.inspect,I=_&&_.custom||"inspect";function N(T,M,D){g.prototype.copy.call(T,M,D)}return nie=(function(){function T(){i(this,T),this.head=null,this.tail=null,this.length=0}return o(T,[{key:"push",value:function(D){var P={data:D,next:null};this.length>0?this.tail.next=P:this.head=P,this.tail=P,++this.length}},{key:"unshift",value:function(D){var P={data:D,next:this.head};this.length===0&&(this.tail=P),this.head=P,++this.length}},{key:"shift",value:function(){if(this.length!==0){var D=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,D}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(D){if(this.length===0)return"";for(var P=this.head,G=""+P.data;P=P.next;)G+=D+P.data;return G}},{key:"concat",value:function(D){if(this.length===0)return g.alloc(0);for(var P=g.allocUnsafe(D>>>0),G=this.head,q=0;G;)N(G.data,P,q),q+=G.data.length,G=G.next;return P}},{key:"consume",value:function(D,P){var G;return D<this.head.data.length?(G=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?G=this.shift():G=P?this._getString(D):this._getBuffer(D),G}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var P=this.head,G=1,q=P.data;for(D-=q.length;P=P.next;){var Y=P.data,ne=D>Y.length?Y.length:D;if(ne===Y.length?q+=Y:q+=Y.slice(0,D),D-=ne,D===0){ne===Y.length?(++G,P.next?this.head=P.next:this.head=this.tail=null):(this.head=P,P.data=Y.slice(ne));break}++G}return this.length-=G,q}},{key:"_getBuffer",value:function(D){var P=g.allocUnsafe(D),G=this.head,q=1;for(G.data.copy(P),D-=G.data.length;G=G.next;){var Y=G.data,ne=D>Y.length?Y.length:D;if(Y.copy(P,P.length-D,0,ne),D-=ne,D===0){ne===Y.length?(++q,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Y.slice(ne));break}++q}return this.length-=q,P}},{key:I,value:function(D,P){return _(this,t({},P,{depth:0,customInspect:!1}))}}]),T})(),nie}function sHe(){if(dDe)return iie;dDe=!0;var e=Mo;function t(g,y){var _=this,I=this._readableState&&this._readableState.destroyed,N=this._writableState&&this._writableState.destroyed;return I||N?(y?y(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,g)):e.nextTick(o,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(T){!y&&T?_._writableState?_._writableState.errorEmitted?e.nextTick(i,_):(_._writableState.errorEmitted=!0,e.nextTick(r,_,T)):e.nextTick(r,_,T):y?(e.nextTick(i,_),y(T)):e.nextTick(i,_)}),this)}function r(g,y){o(g,y),i(g)}function i(g){g._writableState&&!g._writableState.emitClose||g._readableState&&!g._readableState.emitClose||g.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(g,y){g.emit("error",y)}function d(g,y){var _=g._readableState,I=g._writableState;_&&_.autoDestroy||I&&I.autoDestroy?g.destroy(y):g.emit("error",y)}return iie={destroy:t,undestroy:n,errorOrDestroy:d},iie}function MO(){if(fDe)return oie;fDe=!0;let e={};function t(d,g,y){y||(y=Error);function _(N,T,M){return typeof g=="string"?g:g(N,T,M)}class I extends y{constructor(T,M,D){super(_(T,M,D))}}I.prototype.name=y.name,I.prototype.code=d,e[d]=I}function r(d,g){if(Array.isArray(d)){let y=d.length;return d=d.map(_=>String(_)),y>2?`one of ${g} ${d.slice(0,y-1).join(", ")}, or `+d[y-1]:y===2?`one of ${g} ${d[0]} or ${d[1]}`:`of ${g} ${d[0]}`}else return`of ${g} ${String(d)}`}function i(d,g,y){return d.substr(!y||y<0?0:+y,g.length)===g}function n(d,g,y){return(y===void 0||y>d.length)&&(y=d.length),d.substring(y-g.length,y)===g}function o(d,g,y){return typeof y!="number"&&(y=0),y+g.length>d.length?!1:d.indexOf(g,y)!==-1}return t("ERR_INVALID_OPT_VALUE",function(d,g){return'The value "'+g+'" is invalid for option "'+d+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(d,g,y){let _;typeof g=="string"&&i(g,"not ")?(_="must not be",g=g.replace(/^not /,"")):_="must be";let I;if(n(d," argument"))I=`The ${d} ${_} ${r(g,"type")}`;else{let N=o(d,".")?"property":"argument";I=`The "${d}" ${N} ${_} ${r(g,"type")}`}return I+=`. Received type ${typeof y}`,I},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),oie.codes=e,oie}function cHe(){if(lDe)return aie;lDe=!0;var e=MO().codes.ERR_INVALID_OPT_VALUE;function t(i,n,o){return i.highWaterMark!=null?i.highWaterMark:n?i[o]:null}function r(i,n,o,d){var g=t(n,d,o);if(g!=null){if(!(isFinite(g)&&Math.floor(g)===g)||g<0){var y=d?o:"highWaterMark";throw new e(y,g)}return Math.floor(g)}return i.objectMode?16:16*1024}return aie={getHighWaterMark:r},aie}function c6t(){if(hDe)return sie;hDe=!0,sie=e;function e(r,i){if(t("noDeprecation"))return r;var n=!1;function o(){if(!n){if(t("throwDeprecation"))throw new Error(i);t("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return r.apply(this||cie,arguments)}return o}function t(r){try{if(!cie.localStorage)return!1}catch{return!1}var i=cie.localStorage[r];return i==null?!1:String(i).toLowerCase()==="true"}return sie}function pue(){if(ADe)return uie;ADe=!0;var e=Mo;uie=se;function t(Ge){var Re=this;this.next=null,this.entry=null,this.finish=function(){$e(Re,Ge)}}var r;se.WritableState=ae;var i={deprecate:c6t()},n=aHe(),o=Vo.Buffer,d=u6t.Uint8Array||function(){};function g(Ge){return o.from(Ge)}function y(Ge){return o.isBuffer(Ge)||Ge instanceof d}var _=sHe(),I=cHe(),N=I.getHighWaterMark,T=MO().codes,M=T.ERR_INVALID_ARG_TYPE,D=T.ERR_METHOD_NOT_IMPLEMENTED,P=T.ERR_MULTIPLE_CALLBACK,G=T.ERR_STREAM_CANNOT_PIPE,q=T.ERR_STREAM_DESTROYED,Y=T.ERR_STREAM_NULL_VALUES,ne=T.ERR_STREAM_WRITE_AFTER_END,ce=T.ERR_UNKNOWN_ENCODING,le=_.errorOrDestroy;rs()(se,n);function pe(){}function ae(Ge,Re,Se){r=r||b4(),Ge=Ge||{},typeof Se!="boolean"&&(Se=Re instanceof r),this.objectMode=!!Ge.objectMode,Se&&(this.objectMode=this.objectMode||!!Ge.writableObjectMode),this.highWaterMark=N(this,Ge,"writableHighWaterMark",Se),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ct=Ge.decodeStrings===!1;this.decodeStrings=!ct,this.defaultEncoding=Ge.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ze){x(Re,ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ge.emitClose!==!1,this.autoDestroy=!!Ge.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}ae.prototype.getBuffer=function(){for(var Re=this.bufferedRequest,Se=[];Re;)Se.push(Re),Re=Re.next;return Se},(function(){try{Object.defineProperty(ae.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(Re){return W.call(this,Re)?!0:this!==se?!1:Re&&Re._writableState instanceof ae}})):W=function(Re){return Re instanceof this};function se(Ge){r=r||b4();var Re=this instanceof r;if(!Re&&!W.call(se,this))return new se(Ge);this._writableState=new ae(Ge,this,Re),this.writable=!0,Ge&&(typeof Ge.write=="function"&&(this._write=Ge.write),typeof Ge.writev=="function"&&(this._writev=Ge.writev),typeof Ge.destroy=="function"&&(this._destroy=Ge.destroy),typeof Ge.final=="function"&&(this._final=Ge.final)),n.call(this)}se.prototype.pipe=function(){le(this,new G)};function O(Ge,Re){var Se=new ne;le(Ge,Se),e.nextTick(Re,Se)}function s(Ge,Re,Se,ct){var ze;return Se===null?ze=new Y:typeof Se!="string"&&!Re.objectMode&&(ze=new M("chunk",["string","Buffer"],Se)),ze?(le(Ge,ze),e.nextTick(ct,ze),!1):!0}se.prototype.write=function(Ge,Re,Se){var ct=this._writableState,ze=!1,te=!ct.objectMode&&y(Ge);return te&&!o.isBuffer(Ge)&&(Ge=g(Ge)),typeof Re=="function"&&(Se=Re,Re=null),te?Re="buffer":Re||(Re=ct.defaultEncoding),typeof Se!="function"&&(Se=pe),ct.ending?O(this,Se):(te||s(this,ct,Ge,Se))&&(ct.pendingcb++,ze=A(this,ct,te,Ge,Re,Se)),ze},se.prototype.cork=function(){this._writableState.corked++},se.prototype.uncork=function(){var Ge=this._writableState;Ge.corked&&(Ge.corked--,!Ge.writing&&!Ge.corked&&!Ge.bufferProcessing&&Ge.bufferedRequest&&C(this,Ge))},se.prototype.setDefaultEncoding=function(Re){if(typeof Re=="string"&&(Re=Re.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Re+"").toLowerCase())>-1))throw new ce(Re);return this._writableState.defaultEncoding=Re,this},Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function l(Ge,Re,Se){return!Ge.objectMode&&Ge.decodeStrings!==!1&&typeof Re=="string"&&(Re=o.from(Re,Se)),Re}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(Ge,Re,Se,ct,ze,te){if(!Se){var Ue=l(Re,ct,ze);ct!==Ue&&(Se=!0,ze="buffer",ct=Ue)}var oe=Re.objectMode?1:ct.length;Re.length+=oe;var ge=Re.length<Re.highWaterMark;if(ge||(Re.needDrain=!0),Re.writing||Re.corked){var Le=Re.lastBufferedRequest;Re.lastBufferedRequest={chunk:ct,encoding:ze,isBuf:Se,callback:te,next:null},Le?Le.next=Re.lastBufferedRequest:Re.bufferedRequest=Re.lastBufferedRequest,Re.bufferedRequestCount+=1}else m(Ge,Re,!1,oe,ct,ze,te);return ge}function m(Ge,Re,Se,ct,ze,te,Ue){Re.writelen=ct,Re.writecb=Ue,Re.writing=!0,Re.sync=!0,Re.destroyed?Re.onwrite(new q("write")):Se?Ge._writev(ze,Re.onwrite):Ge._write(ze,te,Re.onwrite),Re.sync=!1}function E(Ge,Re,Se,ct,ze){--Re.pendingcb,Se?(e.nextTick(ze,ct),e.nextTick(Ae,Ge,Re),Ge._writableState.errorEmitted=!0,le(Ge,ct)):(ze(ct),Ge._writableState.errorEmitted=!0,le(Ge,ct),Ae(Ge,Re))}function w(Ge){Ge.writing=!1,Ge.writecb=null,Ge.length-=Ge.writelen,Ge.writelen=0}function x(Ge,Re){var Se=Ge._writableState,ct=Se.sync,ze=Se.writecb;if(typeof ze!="function")throw new P;if(w(Se),Re)E(Ge,Se,ct,Re,ze);else{var te=U(Se)||Ge.destroyed;!te&&!Se.corked&&!Se.bufferProcessing&&Se.bufferedRequest&&C(Ge,Se),ct?e.nextTick(R,Ge,Se,te,ze):R(Ge,Se,te,ze)}}function R(Ge,Re,Se,ct){Se||u(Ge,Re),Re.pendingcb--,ct(),Ae(Ge,Re)}function u(Ge,Re){Re.length===0&&Re.needDrain&&(Re.needDrain=!1,Ge.emit("drain"))}function C(Ge,Re){Re.bufferProcessing=!0;var Se=Re.bufferedRequest;if(Ge._writev&&Se&&Se.next){var ct=Re.bufferedRequestCount,ze=new Array(ct),te=Re.corkedRequestsFree;te.entry=Se;for(var Ue=0,oe=!0;Se;)ze[Ue]=Se,Se.isBuf||(oe=!1),Se=Se.next,Ue+=1;ze.allBuffers=oe,m(Ge,Re,!0,Re.length,ze,"",te.finish),Re.pendingcb++,Re.lastBufferedRequest=null,te.next?(Re.corkedRequestsFree=te.next,te.next=null):Re.corkedRequestsFree=new t(Re),Re.bufferedRequestCount=0}else{for(;Se;){var ge=Se.chunk,Le=Se.encoding,V=Se.callback,Qe=Re.objectMode?1:ge.length;if(m(Ge,Re,!1,Qe,ge,Le,V),Se=Se.next,Re.bufferedRequestCount--,Re.writing)break}Se===null&&(Re.lastBufferedRequest=null)}Re.bufferedRequest=Se,Re.bufferProcessing=!1}se.prototype._write=function(Ge,Re,Se){Se(new D("_write()"))},se.prototype._writev=null,se.prototype.end=function(Ge,Re,Se){var ct=this._writableState;return typeof Ge=="function"?(Se=Ge,Ge=null,Re=null):typeof Re=="function"&&(Se=Re,Re=null),Ge!=null&&this.write(Ge,Re),ct.corked&&(ct.corked=1,this.uncork()),ct.ending||he(this,ct,Se),this},Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(Ge){return Ge.ending&&Ge.length===0&&Ge.bufferedRequest===null&&!Ge.finished&&!Ge.writing}function F(Ge,Re){Ge._final(function(Se){Re.pendingcb--,Se&&le(Ge,Se),Re.prefinished=!0,Ge.emit("prefinish"),Ae(Ge,Re)})}function X(Ge,Re){!Re.prefinished&&!Re.finalCalled&&(typeof Ge._final=="function"&&!Re.destroyed?(Re.pendingcb++,Re.finalCalled=!0,e.nextTick(F,Ge,Re)):(Re.prefinished=!0,Ge.emit("prefinish")))}function Ae(Ge,Re){var Se=U(Re);if(Se&&(X(Ge,Re),Re.pendingcb===0&&(Re.finished=!0,Ge.emit("finish"),Re.autoDestroy))){var ct=Ge._readableState;(!ct||ct.autoDestroy&&ct.endEmitted)&&Ge.destroy()}return Se}function he(Ge,Re,Se){Re.ending=!0,Ae(Ge,Re),Se&&(Re.finished?e.nextTick(Se):Ge.once("finish",Se)),Re.ended=!0,Ge.writable=!1}function $e(Ge,Re,Se){var ct=Ge.entry;for(Ge.entry=null;ct;){var ze=ct.callback;Re.pendingcb--,ze(Se),ct=ct.next}Re.corkedRequestsFree.next=Ge}return Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Re){this._writableState&&(this._writableState.destroyed=Re)}}),se.prototype.destroy=_.destroy,se.prototype._undestroy=_.undestroy,se.prototype._destroy=function(Ge,Re){Re(Ge)},uie}function b4(){if(pDe)return die;pDe=!0;var e=Mo,t=Object.keys||function(I){var N=[];for(var T in I)N.push(T);return N};die=g;var r=gue(),i=pue();rs()(g,r);for(var n=t(i.prototype),o=0;o<n.length;o++){var d=n[o];g.prototype[d]||(g.prototype[d]=i.prototype[d])}function g(I){if(!(this instanceof g))return new g(I);r.call(this,I),i.call(this,I),this.allowHalfOpen=!0,I&&(I.readable===!1&&(this.readable=!1),I.writable===!1&&(this.writable=!1),I.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",y)))}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function y(){this._writableState.ended||e.nextTick(_,this)}function _(I){I.end()}return Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(N){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=N,this._writableState.destroyed=N)}}),die}function zq(){if(gDe)return fie;gDe=!0;var e=MO().codes.ERR_STREAM_PREMATURE_CLOSE;function t(o){var d=!1;return function(){if(!d){d=!0;for(var g=arguments.length,y=new Array(g),_=0;_<g;_++)y[_]=arguments[_];o.apply(this,y)}}}function r(){}function i(o){return o.setHeader&&typeof o.abort=="function"}function n(o,d,g){if(typeof d=="function")return n(o,null,d);d||(d={}),g=t(g||r);var y=d.readable||d.readable!==!1&&o.readable,_=d.writable||d.writable!==!1&&o.writable,I=function(){o.writable||T()},N=o._writableState&&o._writableState.finished,T=function(){_=!1,N=!0,y||g.call(o)},M=o._readableState&&o._readableState.endEmitted,D=function(){y=!1,M=!0,_||g.call(o)},P=function(ne){g.call(o,ne)},G=function(){var ne;if(y&&!M)return(!o._readableState||!o._readableState.ended)&&(ne=new e),g.call(o,ne);if(_&&!N)return(!o._writableState||!o._writableState.ended)&&(ne=new e),g.call(o,ne)},q=function(){o.req.on("finish",T)};return i(o)?(o.on("complete",T),o.on("abort",G),o.req?q():o.on("request",q)):_&&!o._writableState&&(o.on("end",I),o.on("close",I)),o.on("end",D),o.on("finish",T),d.error!==!1&&o.on("error",P),o.on("close",G),function(){o.removeListener("complete",T),o.removeListener("abort",G),o.removeListener("request",q),o.req&&o.req.removeListener("finish",T),o.removeListener("end",I),o.removeListener("close",I),o.removeListener("finish",T),o.removeListener("end",D),o.removeListener("error",P),o.removeListener("close",G)}}return fie=n,fie}function d6t(){if(_De)return lie;_De=!0;var e=Mo,t;function r(Y,ne,ce){return ne in Y?Object.defineProperty(Y,ne,{value:ce,enumerable:!0,configurable:!0,writable:!0}):Y[ne]=ce,Y}var i=zq(),n=Symbol("lastResolve"),o=Symbol("lastReject"),d=Symbol("error"),g=Symbol("ended"),y=Symbol("lastPromise"),_=Symbol("handlePromise"),I=Symbol("stream");function N(Y,ne){return{value:Y,done:ne}}function T(Y){var ne=Y[n];if(ne!==null){var ce=Y[I].read();ce!==null&&(Y[y]=null,Y[n]=null,Y[o]=null,ne(N(ce,!1)))}}function M(Y){e.nextTick(T,Y)}function D(Y,ne){return function(ce,le){Y.then(function(){if(ne[g]){ce(N(void 0,!0));return}ne[_](ce,le)},le)}}var P=Object.getPrototypeOf(function(){}),G=Object.setPrototypeOf((t={get stream(){return this[I]},next:function(){var ne=this,ce=this[d];if(ce!==null)return Promise.reject(ce);if(this[g])return Promise.resolve(N(void 0,!0));if(this[I].destroyed)return new Promise(function(W,se){e.nextTick(function(){ne[d]?se(ne[d]):W(N(void 0,!0))})});var le=this[y],pe;if(le)pe=new Promise(D(le,this));else{var ae=this[I].read();if(ae!==null)return Promise.resolve(N(ae,!1));pe=new Promise(this[_])}return this[y]=pe,pe}},r(t,Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var ne=this;return new Promise(function(ce,le){ne[I].destroy(null,function(pe){if(pe){le(pe);return}ce(N(void 0,!0))})})}),t),P),q=function(ne){var ce,le=Object.create(G,(ce={},r(ce,I,{value:ne,writable:!0}),r(ce,n,{value:null,writable:!0}),r(ce,o,{value:null,writable:!0}),r(ce,d,{value:null,writable:!0}),r(ce,g,{value:ne._readableState.endEmitted,writable:!0}),r(ce,_,{value:function(ae,W){var se=le[I].read();se?(le[y]=null,le[n]=null,le[o]=null,ae(N(se,!1))):(le[n]=ae,le[o]=W)},writable:!0}),ce));return le[y]=null,i(ne,function(pe){if(pe&&pe.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ae=le[o];ae!==null&&(le[y]=null,le[n]=null,le[o]=null,ae(pe)),le[d]=pe;return}var W=le[n];W!==null&&(le[y]=null,le[n]=null,le[o]=null,W(N(void 0,!0))),le[g]=!0}),ne.on("readable",M.bind(null,le)),le};return lie=q,lie}function f6t(){return mDe||(mDe=!0,hie=function(){throw new Error("Readable.from is not available in the browser")}),hie}function gue(){if(yDe)return Aie;yDe=!0;var e=Mo;Aie=O;var t;O.ReadableState=se,xc.EventEmitter;var r=function(Ue,oe){return Ue.listeners(oe).length},i=aHe(),n=Vo.Buffer,o=l6t.Uint8Array||function(){};function d(te){return n.from(te)}function g(te){return n.isBuffer(te)||te instanceof o}var y=yn,_;y&&y.debuglog?_=y.debuglog("stream"):_=function(){};var I=s6t(),N=sHe(),T=cHe(),M=T.getHighWaterMark,D=MO().codes,P=D.ERR_INVALID_ARG_TYPE,G=D.ERR_STREAM_PUSH_AFTER_EOF,q=D.ERR_METHOD_NOT_IMPLEMENTED,Y=D.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ne,ce,le;rs()(O,i);var pe=N.errorOrDestroy,ae=["error","close","destroy","pause","resume"];function W(te,Ue,oe){if(typeof te.prependListener=="function")return te.prependListener(Ue,oe);!te._events||!te._events[Ue]?te.on(Ue,oe):Array.isArray(te._events[Ue])?te._events[Ue].unshift(oe):te._events[Ue]=[oe,te._events[Ue]]}function se(te,Ue,oe){t=t||b4(),te=te||{},typeof oe!="boolean"&&(oe=Ue instanceof t),this.objectMode=!!te.objectMode,oe&&(this.objectMode=this.objectMode||!!te.readableObjectMode),this.highWaterMark=M(this,te,"readableHighWaterMark",oe),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=te.emitClose!==!1,this.autoDestroy=!!te.autoDestroy,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(ne||(ne=yh.StringDecoder),this.decoder=new ne(te.encoding),this.encoding=te.encoding)}function O(te){if(t=t||b4(),!(this instanceof O))return new O(te);var Ue=this instanceof t;this._readableState=new se(te,this,Ue),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),i.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ue){this._readableState&&(this._readableState.destroyed=Ue)}}),O.prototype.destroy=N.destroy,O.prototype._undestroy=N.undestroy,O.prototype._destroy=function(te,Ue){Ue(te)},O.prototype.push=function(te,Ue){var oe=this._readableState,ge;return oe.objectMode?ge=!0:typeof te=="string"&&(Ue=Ue||oe.defaultEncoding,Ue!==oe.encoding&&(te=n.from(te,Ue),Ue=""),ge=!0),s(this,te,Ue,!1,ge)},O.prototype.unshift=function(te){return s(this,te,null,!0,!1)};function s(te,Ue,oe,ge,Le){_("readableAddChunk",Ue);var V=te._readableState;if(Ue===null)V.reading=!1,x(te,V);else{var Qe;if(Le||(Qe=A(V,Ue)),Qe)pe(te,Qe);else if(V.objectMode||Ue&&Ue.length>0)if(typeof Ue!="string"&&!V.objectMode&&Object.getPrototypeOf(Ue)!==n.prototype&&(Ue=d(Ue)),ge)V.endEmitted?pe(te,new Y):l(te,V,Ue,!0);else if(V.ended)pe(te,new G);else{if(V.destroyed)return!1;V.reading=!1,V.decoder&&!oe?(Ue=V.decoder.write(Ue),V.objectMode||Ue.length!==0?l(te,V,Ue,!1):C(te,V)):l(te,V,Ue,!1)}else ge||(V.reading=!1,C(te,V))}return!V.ended&&(V.length<V.highWaterMark||V.length===0)}function l(te,Ue,oe,ge){Ue.flowing&&Ue.length===0&&!Ue.sync?(Ue.awaitDrain=0,te.emit("data",oe)):(Ue.length+=Ue.objectMode?1:oe.length,ge?Ue.buffer.unshift(oe):Ue.buffer.push(oe),Ue.needReadable&&R(te)),C(te,Ue)}function A(te,Ue){var oe;return!g(Ue)&&typeof Ue!="string"&&Ue!==void 0&&!te.objectMode&&(oe=new P("chunk",["string","Buffer","Uint8Array"],Ue)),oe}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(te){ne||(ne=yh.StringDecoder);var Ue=new ne(te);this._readableState.decoder=Ue,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,ge="";oe!==null;)ge+=Ue.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var m=1073741824;function E(te){return te>=m?te=m:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function w(te,Ue){return te<=0||Ue.length===0&&Ue.ended?0:Ue.objectMode?1:te!==te?Ue.flowing&&Ue.length?Ue.buffer.head.data.length:Ue.length:(te>Ue.highWaterMark&&(Ue.highWaterMark=E(te)),te<=Ue.length?te:Ue.ended?Ue.length:(Ue.needReadable=!0,0))}O.prototype.read=function(te){_("read",te),te=parseInt(te,10);var Ue=this._readableState,oe=te;if(te!==0&&(Ue.emittedReadable=!1),te===0&&Ue.needReadable&&((Ue.highWaterMark!==0?Ue.length>=Ue.highWaterMark:Ue.length>0)||Ue.ended))return _("read: emitReadable",Ue.length,Ue.ended),Ue.length===0&&Ue.ended?Se(this):R(this),null;if(te=w(te,Ue),te===0&&Ue.ended)return Ue.length===0&&Se(this),null;var ge=Ue.needReadable;_("need readable",ge),(Ue.length===0||Ue.length-te<Ue.highWaterMark)&&(ge=!0,_("length less than watermark",ge)),Ue.ended||Ue.reading?(ge=!1,_("reading or ended",ge)):ge&&(_("do read"),Ue.reading=!0,Ue.sync=!0,Ue.length===0&&(Ue.needReadable=!0),this._read(Ue.highWaterMark),Ue.sync=!1,Ue.reading||(te=w(oe,Ue)));var Le;return te>0?Le=Re(te,Ue):Le=null,Le===null?(Ue.needReadable=Ue.length<=Ue.highWaterMark,te=0):(Ue.length-=te,Ue.awaitDrain=0),Ue.length===0&&(Ue.ended||(Ue.needReadable=!0),oe!==te&&Ue.ended&&Se(this)),Le!==null&&this.emit("data",Le),Le};function x(te,Ue){if(_("onEofChunk"),!Ue.ended){if(Ue.decoder){var oe=Ue.decoder.end();oe&&oe.length&&(Ue.buffer.push(oe),Ue.length+=Ue.objectMode?1:oe.length)}Ue.ended=!0,Ue.sync?R(te):(Ue.needReadable=!1,Ue.emittedReadable||(Ue.emittedReadable=!0,u(te)))}}function R(te){var Ue=te._readableState;_("emitReadable",Ue.needReadable,Ue.emittedReadable),Ue.needReadable=!1,Ue.emittedReadable||(_("emitReadable",Ue.flowing),Ue.emittedReadable=!0,e.nextTick(u,te))}function u(te){var Ue=te._readableState;_("emitReadable_",Ue.destroyed,Ue.length,Ue.ended),!Ue.destroyed&&(Ue.length||Ue.ended)&&(te.emit("readable"),Ue.emittedReadable=!1),Ue.needReadable=!Ue.flowing&&!Ue.ended&&Ue.length<=Ue.highWaterMark,Ge(te)}function C(te,Ue){Ue.readingMore||(Ue.readingMore=!0,e.nextTick(U,te,Ue))}function U(te,Ue){for(;!Ue.reading&&!Ue.ended&&(Ue.length<Ue.highWaterMark||Ue.flowing&&Ue.length===0);){var oe=Ue.length;if(_("maybeReadMore read 0"),te.read(0),oe===Ue.length)break}Ue.readingMore=!1}O.prototype._read=function(te){pe(this,new q("_read()"))},O.prototype.pipe=function(te,Ue){var oe=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=te;break;case 1:ge.pipes=[ge.pipes,te];break;default:ge.pipes.push(te);break}ge.pipesCount+=1,_("pipe count=%d opts=%j",ge.pipesCount,Ue);var Le=(!Ue||Ue.end!==!1)&&te!==e.stdout&&te!==e.stderr,V=Le?_t:ie;ge.endEmitted?e.nextTick(V):oe.once("end",V),te.on("unpipe",Qe);function Qe(_e,Be){_("onunpipe"),_e===oe&&Be&&Be.hasUnpiped===!1&&(Be.hasUnpiped=!0,Er())}function _t(){_("onend"),te.end()}var rt=F(oe);te.on("drain",rt);var At=!1;function Er(){_("cleanup"),te.removeListener("close",zr),te.removeListener("finish",ve),te.removeListener("drain",rt),te.removeListener("error",Ht),te.removeListener("unpipe",Qe),oe.removeListener("end",_t),oe.removeListener("end",ie),oe.removeListener("data",mt),At=!0,ge.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&rt()}oe.on("data",mt);function mt(_e){_("ondata");var Be=te.write(_e);_("dest.write",Be),Be===!1&&((ge.pipesCount===1&&ge.pipes===te||ge.pipesCount>1&&ze(ge.pipes,te)!==-1)&&!At&&(_("false write response, pause",ge.awaitDrain),ge.awaitDrain++),oe.pause())}function Ht(_e){_("onerror",_e),ie(),te.removeListener("error",Ht),r(te,"error")===0&&pe(te,_e)}W(te,"error",Ht);function zr(){te.removeListener("finish",ve),ie()}te.once("close",zr);function ve(){_("onfinish"),te.removeListener("close",zr),ie()}te.once("finish",ve);function ie(){_("unpipe"),oe.unpipe(te)}return te.emit("pipe",oe),ge.flowing||(_("pipe resume"),oe.resume()),te};function F(te){return function(){var oe=te._readableState;_("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&r(te,"data")&&(oe.flowing=!0,Ge(te))}}O.prototype.unpipe=function(te){var Ue=this._readableState,oe={hasUnpiped:!1};if(Ue.pipesCount===0)return this;if(Ue.pipesCount===1)return te&&te!==Ue.pipes?this:(te||(te=Ue.pipes),Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1,te&&te.emit("unpipe",this,oe),this);if(!te){var ge=Ue.pipes,Le=Ue.pipesCount;Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1;for(var V=0;V<Le;V++)ge[V].emit("unpipe",this,{hasUnpiped:!1});return this}var Qe=ze(Ue.pipes,te);return Qe===-1?this:(Ue.pipes.splice(Qe,1),Ue.pipesCount-=1,Ue.pipesCount===1&&(Ue.pipes=Ue.pipes[0]),te.emit("unpipe",this,oe),this)},O.prototype.on=function(te,Ue){var oe=i.prototype.on.call(this,te,Ue),ge=this._readableState;return te==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):te==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,_("on readable",ge.length,ge.reading),ge.length?R(this):ge.reading||e.nextTick(Ae,this)),oe},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(te,Ue){var oe=i.prototype.removeListener.call(this,te,Ue);return te==="readable"&&e.nextTick(X,this),oe},O.prototype.removeAllListeners=function(te){var Ue=i.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&e.nextTick(X,this),Ue};function X(te){var Ue=te._readableState;Ue.readableListening=te.listenerCount("readable")>0,Ue.resumeScheduled&&!Ue.paused?Ue.flowing=!0:te.listenerCount("data")>0&&te.resume()}function Ae(te){_("readable nexttick read 0"),te.read(0)}O.prototype.resume=function(){var te=this._readableState;return te.flowing||(_("resume"),te.flowing=!te.readableListening,he(this,te)),te.paused=!1,this};function he(te,Ue){Ue.resumeScheduled||(Ue.resumeScheduled=!0,e.nextTick($e,te,Ue))}function $e(te,Ue){_("resume",Ue.reading),Ue.reading||te.read(0),Ue.resumeScheduled=!1,te.emit("resume"),Ge(te),Ue.flowing&&!Ue.reading&&te.read(0)}O.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ge(te){var Ue=te._readableState;for(_("flow",Ue.flowing);Ue.flowing&&te.read()!==null;);}O.prototype.wrap=function(te){var Ue=this,oe=this._readableState,ge=!1;te.on("end",function(){if(_("wrapped end"),oe.decoder&&!oe.ended){var Qe=oe.decoder.end();Qe&&Qe.length&&Ue.push(Qe)}Ue.push(null)}),te.on("data",function(Qe){if(_("wrapped data"),oe.decoder&&(Qe=oe.decoder.write(Qe)),!(oe.objectMode&&Qe==null)&&!(!oe.objectMode&&(!Qe||!Qe.length))){var _t=Ue.push(Qe);_t||(ge=!0,te.pause())}});for(var Le in te)this[Le]===void 0&&typeof te[Le]=="function"&&(this[Le]=(function(_t){return function(){return te[_t].apply(te,arguments)}})(Le));for(var V=0;V<ae.length;V++)te.on(ae[V],this.emit.bind(this,ae[V]));return this._read=function(Qe){_("wrapped _read",Qe),ge&&(ge=!1,te.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return ce===void 0&&(ce=d6t()),ce(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ue){this._readableState&&(this._readableState.flowing=Ue)}}),O._fromList=Re,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Re(te,Ue){if(Ue.length===0)return null;var oe;return Ue.objectMode?oe=Ue.buffer.shift():!te||te>=Ue.length?(Ue.decoder?oe=Ue.buffer.join(""):Ue.buffer.length===1?oe=Ue.buffer.first():oe=Ue.buffer.concat(Ue.length),Ue.buffer.clear()):oe=Ue.buffer.consume(te,Ue.decoder),oe}function Se(te){var Ue=te._readableState;_("endReadable",Ue.endEmitted),Ue.endEmitted||(Ue.ended=!0,e.nextTick(ct,Ue,te))}function ct(te,Ue){if(_("endReadableNT",te.endEmitted,te.length),!te.endEmitted&&te.length===0&&(te.endEmitted=!0,Ue.readable=!1,Ue.emit("end"),te.autoDestroy)){var oe=Ue._writableState;(!oe||oe.autoDestroy&&oe.finished)&&Ue.destroy()}}typeof Symbol=="function"&&(O.from=function(te,Ue){return le===void 0&&(le=f6t()),le(O,te,Ue)});function ze(te,Ue){for(var oe=0,ge=te.length;oe<ge;oe++)if(te[oe]===Ue)return oe;return-1}return Aie}function _ue(){if(bDe)return pie;bDe=!0,pie=g;var e=MO().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,o=b4();rs()(g,o);function d(I,N){var T=this._transformState;T.transforming=!1;var M=T.writecb;if(M===null)return this.emit("error",new r);T.writechunk=null,T.writecb=null,N!=null&&this.push(N),M(I);var D=this._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}function g(I){if(!(this instanceof g))return new g(I);o.call(this,I),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,I&&(typeof I.transform=="function"&&(this._transform=I.transform),typeof I.flush=="function"&&(this._flush=I.flush)),this.on("prefinish",y)}function y(){var I=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,T){_(I,N,T)}):_(this,null,null)}g.prototype.push=function(I,N){return this._transformState.needTransform=!1,o.prototype.push.call(this,I,N)},g.prototype._transform=function(I,N,T){T(new t("_transform()"))},g.prototype._write=function(I,N,T){var M=this._transformState;if(M.writecb=T,M.writechunk=I,M.writeencoding=N,!M.transforming){var D=this._readableState;(M.needTransform||D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}},g.prototype._read=function(I){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},g.prototype._destroy=function(I,N){o.prototype._destroy.call(this,I,function(T){N(T)})};function _(I,N,T){if(N)return I.emit("error",N);if(T!=null&&I.push(T),I._writableState.length)throw new n;if(I._transformState.transforming)throw new i;return I.push(null)}return pie}function uHe(){if(EDe)return gie;EDe=!0,gie=t;var e=_ue();rs()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,n){n(null,r)},gie}function dHe(){if(vDe)return _ie;vDe=!0;var e;function t(T){var M=!1;return function(){M||(M=!0,T.apply(void 0,arguments))}}var r=MO().codes,i=r.ERR_MISSING_ARGS,n=r.ERR_STREAM_DESTROYED;function o(T){if(T)throw T}function d(T){return T.setHeader&&typeof T.abort=="function"}function g(T,M,D,P){P=t(P);var G=!1;T.on("close",function(){G=!0}),e===void 0&&(e=zq()),e(T,{readable:M,writable:D},function(Y){if(Y)return P(Y);G=!0,P()});var q=!1;return function(Y){if(!G&&!q){if(q=!0,d(T))return T.abort();if(typeof T.destroy=="function")return T.destroy();P(Y||new n("pipe"))}}}function y(T){T()}function _(T,M){return T.pipe(M)}function I(T){return!T.length||typeof T[T.length-1]!="function"?o:T.pop()}function N(){for(var T=arguments.length,M=new Array(T),D=0;D<T;D++)M[D]=arguments[D];var P=I(M);if(Array.isArray(M[0])&&(M=M[0]),M.length<2)throw new i("streams");var G,q=M.map(function(Y,ne){var ce=ne<M.length-1,le=ne>0;return g(Y,ce,le,function(pe){G||(G=pe),pe&&q.forEach(y),!ce&&(q.forEach(y),P(G))})});return M.reduce(_)}return _ie=N,_ie}function h6t(){if(RDe)return mie;RDe=!0,mie=r;var e=xc.EventEmitter,t=rs();t(r,e),r.Readable=gue(),r.Writable=pue(),r.Duplex=b4(),r.Transform=_ue(),r.PassThrough=uHe(),r.finished=zq(),r.pipeline=dHe(),r.Stream=r;function r(){e.call(this||yie)}return r.prototype.pipe=function(i,n){var o=this||yie;function d(M){i.writable&&i.write(M)===!1&&o.pause&&o.pause()}o.on("data",d);function g(){o.readable&&o.resume&&o.resume()}i.on("drain",g),!i._isStdio&&(!n||n.end!==!1)&&(o.on("end",_),o.on("close",I));var y=!1;function _(){y||(y=!0,i.end())}function I(){y||(y=!0,typeof i.destroy=="function"&&i.destroy())}function N(M){if(T(),e.listenerCount(this||yie,"error")===0)throw M}o.on("error",N),i.on("error",N);function T(){o.removeListener("data",d),i.removeListener("drain",g),o.removeListener("end",_),o.removeListener("close",I),o.removeListener("error",N),i.removeListener("error",N),o.removeListener("end",T),o.removeListener("close",T),i.removeListener("close",T)}return o.on("end",T),o.on("close",T),i.on("close",T),i.emit("pipe",o),i},mie}function R6(){if(SDe)return bie;SDe=!0;var e=Vs().Buffer,t=_m.Transform,r=yh.StringDecoder,i=La();function n(o){t.call(this||rd),(this||rd).hashMode=typeof o=="string",(this||rd).hashMode?(this||rd)[o]=(this||rd)._finalOrDigest:(this||rd).final=(this||rd)._finalOrDigest,(this||rd)._final&&((this||rd).__final=(this||rd)._final,(this||rd)._final=null),(this||rd)._decoder=null,(this||rd)._encoding=null}return i(n,t),n.prototype.update=function(o,d,g){typeof o=="string"&&(o=e.from(o,d));var y=this._update(o);return(this||rd).hashMode?this||rd:(g&&(y=this._toString(y,g)),y)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(o,d,g){var y;try{(this||rd).hashMode?this._update(o):this.push(this._update(o))}catch(_){y=_}finally{g(y)}},n.prototype._flush=function(o){var d;try{this.push(this.__final())}catch(g){d=g}o(d)},n.prototype._finalOrDigest=function(o){var d=this.__final()||e.alloc(0);return o&&(d=this._toString(d,o,!0)),d},n.prototype._toString=function(o,d,g){if((this||rd)._decoder||((this||rd)._decoder=new r(d),(this||rd)._encoding=d),(this||rd)._encoding!==d)throw new Error("can't switch encodings");var y=(this||rd)._decoder.write(o);return g&&(y+=(this||rd)._decoder.end()),y},bie=n,bie}function TD(){if(IDe)return Eie;IDe=!0;var e=La(),t=lue(),r=hue(),i=Aue(),n=R6();function o(d){n.call(this,"digest"),this._hash=d}return e(o,n),o.prototype._update=function(d){this._hash.update(d)},o.prototype._final=function(){return this._hash.digest()},Eie=function(g){return g=g.toLowerCase(),g==="md5"?new t:g==="rmd160"||g==="ripemd160"?new r:new o(i(g))},Eie}function A6t(){if(CDe)return vie;CDe=!0;var e=La(),t=Vs().Buffer,r=R6(),i=t.alloc(128),n=64;function o(d,g){r.call(this,"digest"),typeof g=="string"&&(g=t.from(g)),this._alg=d,this._key=g,g.length>n?g=d(g):g.length<n&&(g=t.concat([g,i],n));for(var y=this._ipad=t.allocUnsafe(n),_=this._opad=t.allocUnsafe(n),I=0;I<n;I++)y[I]=g[I]^54,_[I]=g[I]^92;this._hash=[y]}return e(o,r),o.prototype._update=function(d){this._hash.push(d)},o.prototype._final=function(){var d=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,d]))},vie=o,vie}function fHe(){if(wDe)return Rie;wDe=!0;var e=lue();return Rie=function(t){return new e().update(t).digest()},Rie}function lHe(){if(ODe)return Sie;ODe=!0;var e=La(),t=A6t(),r=R6(),i=Vs().Buffer,n=fHe(),o=hue(),d=Aue(),g=i.alloc(128);function y(_,I){r.call(this,"digest"),typeof I=="string"&&(I=i.from(I));var N=_==="sha512"||_==="sha384"?128:64;if(this._alg=_,this._key=I,I.length>N){var T=_==="rmd160"?new o:d(_);I=T.update(I).digest()}else I.length<N&&(I=i.concat([I,g],N));for(var M=this._ipad=i.allocUnsafe(N),D=this._opad=i.allocUnsafe(N),P=0;P<N;P++)M[P]=I[P]^54,D[P]=I[P]^92;this._hash=_==="rmd160"?new o:d(_),this._hash.update(M)}return e(y,r),y.prototype._update=function(_){this._hash.update(_)},y.prototype._final=function(){var _=this._hash.digest(),I=this._alg==="rmd160"?new o:d(this._alg);return I.update(this._opad).update(_).digest()},Sie=function(I,N){return I=I.toLowerCase(),I==="rmd160"||I==="ripemd160"?new y("rmd160",N):I==="md5"?new t(n,N):new y(I,N)},Sie}function p6t(){return NDe||(NDe=!0,Iie=hHe),Iie}function AHe(){if(xDe)return Cie;xDe=!0;var e=Math.pow(2,30)-1;return Cie=function(t,r){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof r!="number")throw new TypeError("Key length not a number");if(r<0||r>e||r!==r)throw new TypeError("Bad key length")},Cie}function pHe(){if(TDe)return wie;TDe=!0;var e=za,t;if(vG.process&&vG.process.browser)t="utf-8";else if(vG.process&&vG.process.version){var r=parseInt(e.version.split(".")[0].slice(1),10);t=r>=6?"utf-8":"binary"}else t="utf-8";return wie=t,wie}function gHe(){if(BDe)return Oie;BDe=!0;var e=Vs().Buffer;return Oie=function(t,r,i){if(e.isBuffer(t))return t;if(typeof t=="string")return e.from(t,r);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")},Oie}function _He(){if(MDe)return Nie;MDe=!0;var e=fHe(),t=hue(),r=Aue(),i=Vs().Buffer,n=AHe(),o=pHe(),d=gHe(),g=i.alloc(128),y={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function _(T,M,D){var P=I(T),G=T==="sha512"||T==="sha384"?128:64;M.length>G?M=P(M):M.length<G&&(M=i.concat([M,g],G));for(var q=i.allocUnsafe(G+y[T]),Y=i.allocUnsafe(G+y[T]),ne=0;ne<G;ne++)q[ne]=M[ne]^54,Y[ne]=M[ne]^92;var ce=i.allocUnsafe(G+D+4);q.copy(ce,0,0,G),(this||im).ipad1=ce,(this||im).ipad2=q,(this||im).opad=Y,(this||im).alg=T,(this||im).blocksize=G,(this||im).hash=P,(this||im).size=y[T]}_.prototype.run=function(T,M){T.copy(M,(this||im).blocksize);var D=this.hash(M);return D.copy((this||im).opad,(this||im).blocksize),this.hash((this||im).opad)};function I(T){function M(P){return r(T).update(P).digest()}function D(P){return new t().update(P).digest()}return T==="rmd160"||T==="ripemd160"?D:T==="md5"?e:M}function N(T,M,D,P,G){n(D,P),T=d(T,o,"Password"),M=d(M,o,"Salt"),G=G||"sha1";var q=new _(G,T,M.length),Y=i.allocUnsafe(P),ne=i.allocUnsafe(M.length+4);M.copy(ne,0,0,M.length);for(var ce=0,le=y[G],pe=Math.ceil(P/le),ae=1;ae<=pe;ae++){ne.writeUInt32BE(ae,M.length);for(var W=q.run(ne,q.ipad1),se=W,O=1;O<D;O++){se=q.run(se,q.ipad2);for(var s=0;s<le;s++)W[s]^=se[s]}W.copy(Y,ce),ce+=le}return Y}return Nie=N,Nie}function g6t(){if(DDe)return xie;DDe=!0;var e=Vs().Buffer,t=AHe(),r=pHe(),i=_He(),n=gHe(),o,d=M1.crypto&&M1.crypto.subtle,g={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];function _(D){if(M1.process&&!M1.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(y[D]!==void 0)return y[D];o=o||e.alloc(8);var P=T(o,o,10,128,D).then(function(){return!0}).catch(function(){return!1});return y[D]=P,P}var I;function N(){return I||(M1.process&&M1.process.nextTick?I=M1.process.nextTick:M1.queueMicrotask?I=M1.queueMicrotask:M1.setImmediate?I=M1.setImmediate:I=M1.setTimeout,I)}function T(D,P,G,q,Y){return d.importKey("raw",D,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ne){return d.deriveBits({name:"PBKDF2",salt:P,iterations:G,hash:{name:Y}},ne,q<<3)}).then(function(ne){return e.from(ne)})}function M(D,P){D.then(function(G){N()(function(){P(null,G)})},function(G){N()(function(){P(G)})})}return xie=function(D,P,G,q,Y,ne){typeof Y=="function"&&(ne=Y,Y=void 0),Y=Y||"sha1";var ce=g[Y.toLowerCase()];if(!ce||typeof M1.Promise!="function"){N()(function(){var le;try{le=i(D,P,G,q,Y)}catch(pe){return ne(pe)}ne(null,le)});return}if(t(G,q),D=n(D,r,"Password"),P=n(P,r,"Salt"),typeof ne!="function")throw new Error("No callback provided to pbkdf2");M(_(ce).then(function(le){return le?T(D,P,G,q,ce):i(D,P,G,q,Y)}),ne)},xie}function mHe(){return kDe||(kDe=!0,RG.pbkdf2=g6t(),RG.pbkdf2Sync=_He()),RG}function yHe(){if(PDe)return D1;PDe=!0,D1.readUInt32BE=function(n,o){var d=n[0+o]<<24|n[1+o]<<16|n[2+o]<<8|n[3+o];return d>>>0},D1.writeUInt32BE=function(n,o,d){n[0+d]=o>>>24,n[1+d]=o>>>16&255,n[2+d]=o>>>8&255,n[3+d]=o&255},D1.ip=function(n,o,d,g){for(var y=0,_=0,I=6;I>=0;I-=2){for(var N=0;N<=24;N+=8)y<<=1,y|=o>>>N+I&1;for(var N=0;N<=24;N+=8)y<<=1,y|=n>>>N+I&1}for(var I=6;I>=0;I-=2){for(var N=1;N<=25;N+=8)_<<=1,_|=o>>>N+I&1;for(var N=1;N<=25;N+=8)_<<=1,_|=n>>>N+I&1}d[g+0]=y>>>0,d[g+1]=_>>>0},D1.rip=function(n,o,d,g){for(var y=0,_=0,I=0;I<4;I++)for(var N=24;N>=0;N-=8)y<<=1,y|=o>>>N+I&1,y<<=1,y|=n>>>N+I&1;for(var I=4;I<8;I++)for(var N=24;N>=0;N-=8)_<<=1,_|=o>>>N+I&1,_<<=1,_|=n>>>N+I&1;d[g+0]=y>>>0,d[g+1]=_>>>0},D1.pc1=function(n,o,d,g){for(var y=0,_=0,I=7;I>=5;I--){for(var N=0;N<=24;N+=8)y<<=1,y|=o>>N+I&1;for(var N=0;N<=24;N+=8)y<<=1,y|=n>>N+I&1}for(var N=0;N<=24;N+=8)y<<=1,y|=o>>N+I&1;for(var I=1;I<=3;I++){for(var N=0;N<=24;N+=8)_<<=1,_|=o>>N+I&1;for(var N=0;N<=24;N+=8)_<<=1,_|=n>>N+I&1}for(var N=0;N<=24;N+=8)_<<=1,_|=n>>N+I&1;d[g+0]=y>>>0,d[g+1]=_>>>0},D1.r28shl=function(n,o){return n<<o&268435455|n>>>28-o};var e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];D1.pc2=function(n,o,d,g){for(var y=0,_=0,I=e.length>>>1,N=0;N<I;N++)y<<=1,y|=n>>>e[N]&1;for(var N=I;N<e.length;N++)_<<=1,_|=o>>>e[N]&1;d[g+0]=y>>>0,d[g+1]=_>>>0},D1.expand=function(n,o,d){var g=0,y=0;g=(n&1)<<5|n>>>27;for(var _=23;_>=15;_-=4)g<<=6,g|=n>>>_&63;for(var _=11;_>=3;_-=4)y|=n>>>_&63,y<<=6;y|=(n&31)<<1|n>>>31,o[d+0]=g>>>0,o[d+1]=y>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];D1.substitute=function(n,o){for(var d=0,g=0;g<4;g++){var y=n>>>18-g*6&63,_=t[g*64+y];d<<=4,d|=_}for(var g=0;g<4;g++){var y=o>>>18-g*6&63,_=t[256+g*64+y];d<<=4,d|=_}return d>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return D1.permute=function(n){for(var o=0,d=0;d<r.length;d++)o<<=1,o|=n>>>r[d]&1;return o>>>0},D1.padSplit=function(n,o,d){for(var g=n.toString(2);g.length<o;)g="0"+g;for(var y=[],_=0;_<o;_+=d)y.push(g.slice(_,_+d));return y.join(" ")},D1}function Zy(){if(LDe)return Tie;LDe=!0,Tie=e;function e(t,r){if(!t)throw new Error(r||"Assertion failed")}return e.equal=function(r,i,n){if(r!=i)throw new Error(n||"Assertion failed: "+r+" != "+i)},Tie}function mue(){if(UDe)return Bie;UDe=!0;var e=Zy();function t(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}return Bie=t,t.prototype._init=function(){},t.prototype.update=function(i){return i.length===0?[]:this.type==="decrypt"?this._updateDecrypt(i):this._updateEncrypt(i)},t.prototype._buffer=function(i,n){for(var o=Math.min(this.buffer.length-this.bufferOff,i.length-n),d=0;d<o;d++)this.buffer[this.bufferOff+d]=i[n+d];return this.bufferOff+=o,o},t.prototype._flushBuffer=function(i,n){return this._update(this.buffer,0,i,n),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(i){var n=0,o=0,d=(this.bufferOff+i.length)/this.blockSize|0,g=new Array(d*this.blockSize);this.bufferOff!==0&&(n+=this._buffer(i,n),this.bufferOff===this.buffer.length&&(o+=this._flushBuffer(g,o)));for(var y=i.length-(i.length-n)%this.blockSize;n<y;n+=this.blockSize)this._update(i,n,g,o),o+=this.blockSize;for(;n<i.length;n++,this.bufferOff++)this.buffer[this.bufferOff]=i[n];return g},t.prototype._updateDecrypt=function(i){for(var n=0,o=0,d=Math.ceil((this.bufferOff+i.length)/this.blockSize)-1,g=new Array(d*this.blockSize);d>0;d--)n+=this._buffer(i,n),o+=this._flushBuffer(g,o);return n+=this._buffer(i,n),g},t.prototype.final=function(i){var n;i&&(n=this.update(i));var o;return this.type==="encrypt"?o=this._finalEncrypt():o=this._finalDecrypt(),n?n.concat(o):o},t.prototype._pad=function(i,n){if(n===0)return!1;for(;n<i.length;)i[n++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var i=new Array(this.blockSize);return this._update(this.buffer,0,i,0),i},t.prototype._unpad=function(i){return i},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var i=new Array(this.blockSize);return this._flushBuffer(i,0),this._unpad(i)},Bie}function bHe(){if(FDe)return Mie;FDe=!0;var e=Zy(),t=La(),r=yHe(),i=mue();function n(){this.tmp=new Array(2),this.keys=null}function o(g){i.call(this,g);var y=new n;this._desState=y,this.deriveKeys(y,g.key)}t(o,i),Mie=o,o.create=function(y){return new o(y)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return o.prototype.deriveKeys=function(y,_){y.keys=new Array(32),e.equal(_.length,this.blockSize,"Invalid key length");var I=r.readUInt32BE(_,0),N=r.readUInt32BE(_,4);r.pc1(I,N,y.tmp,0),I=y.tmp[0],N=y.tmp[1];for(var T=0;T<y.keys.length;T+=2){var M=d[T>>>1];I=r.r28shl(I,M),N=r.r28shl(N,M),r.pc2(I,N,y.keys,T)}},o.prototype._update=function(y,_,I,N){var T=this._desState,M=r.readUInt32BE(y,_),D=r.readUInt32BE(y,_+4);r.ip(M,D,T.tmp,0),M=T.tmp[0],D=T.tmp[1],this.type==="encrypt"?this._encrypt(T,M,D,T.tmp,0):this._decrypt(T,M,D,T.tmp,0),M=T.tmp[0],D=T.tmp[1],r.writeUInt32BE(I,M,N),r.writeUInt32BE(I,D,N+4)},o.prototype._pad=function(y,_){for(var I=y.length-_,N=_;N<y.length;N++)y[N]=I;return!0},o.prototype._unpad=function(y){for(var _=y[y.length-1],I=y.length-_;I<y.length;I++)e.equal(y[I],_);return y.slice(0,y.length-_)},o.prototype._encrypt=function(y,_,I,N,T){for(var M=_,D=I,P=0;P<y.keys.length;P+=2){var G=y.keys[P],q=y.keys[P+1];r.expand(D,y.tmp,0),G^=y.tmp[0],q^=y.tmp[1];var Y=r.substitute(G,q),ne=r.permute(Y),ce=D;D=(M^ne)>>>0,M=ce}r.rip(D,M,N,T)},o.prototype._decrypt=function(y,_,I,N,T){for(var M=I,D=_,P=y.keys.length-2;P>=0;P-=2){var G=y.keys[P],q=y.keys[P+1];r.expand(M,y.tmp,0),G^=y.tmp[0],q^=y.tmp[1];var Y=r.substitute(G,q),ne=r.permute(Y),ce=M;M=(D^ne)>>>0,D=ce}r.rip(M,D,N,T)},Mie}function _6t(){if(QDe)return Die;QDe=!0;var e=Zy(),t=La(),r={};function i(o){e.equal(o.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d<this.iv.length;d++)this.iv[d]=o[d]}function n(o){function d(I){o.call(this,I),this._cbcInit()}t(d,o);for(var g=Object.keys(r),y=0;y<g.length;y++){var _=g[y];d.prototype[_]=r[_]}return d.create=function(N){return new d(N)},d}return Die.instantiate=n,r._cbcInit=function(){var d=new i(this.options.iv);this._cbcState=d},r._update=function(d,g,y,_){var I=this._cbcState,N=this.constructor.super_.prototype,T=I.iv;if(this.type==="encrypt"){for(var M=0;M<this.blockSize;M++)T[M]^=d[g+M];N._update.call(this,T,0,y,_);for(var M=0;M<this.blockSize;M++)T[M]=y[_+M]}else{N._update.call(this,d,g,y,_);for(var M=0;M<this.blockSize;M++)y[_+M]^=T[M];for(var M=0;M<this.blockSize;M++)T[M]=d[g+M]}},Die}function m6t(){if(HDe)return kie;HDe=!0;var e=Zy(),t=La(),r=mue(),i=bHe();function n(d,g){e.equal(g.length,24,"Invalid key length");var y=g.slice(0,8),_=g.slice(8,16),I=g.slice(16,24);d==="encrypt"?this.ciphers=[i.create({type:"encrypt",key:y}),i.create({type:"decrypt",key:_}),i.create({type:"encrypt",key:I})]:this.ciphers=[i.create({type:"decrypt",key:I}),i.create({type:"encrypt",key:_}),i.create({type:"decrypt",key:y})]}function o(d){r.call(this,d);var g=new n(this.type,this.options.key);this._edeState=g}return t(o,r),kie=o,o.create=function(g){return new o(g)},o.prototype._update=function(g,y,_,I){var N=this._edeState;N.ciphers[0]._update(g,y,_,I),N.ciphers[1]._update(_,I,_,I),N.ciphers[2]._update(_,I,_,I)},o.prototype._pad=i.prototype._pad,o.prototype._unpad=i.prototype._unpad,kie}function y6t(){return GDe||(GDe=!0,V8.utils=yHe(),V8.Cipher=mue(),V8.DES=bHe(),V8.CBC=_6t(),V8.EDE=m6t()),V8}function b6t(){if(qDe)return Pie;qDe=!0;var e=R6(),t=y6t(),r=La(),i=Vs().Buffer,n={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};n.des=n["des-cbc"],n.des3=n["des-ede3-cbc"],Pie=o,r(o,e);function o(d){e.call(this||SG);var g=d.mode.toLowerCase(),y=n[g],_;d.decrypt?_="decrypt":_="encrypt";var I=d.key;i.isBuffer(I)||(I=i.from(I)),(g==="des-ede"||g==="des-ede-cbc")&&(I=i.concat([I,I.slice(0,8)]));var N=d.iv;i.isBuffer(N)||(N=i.from(N)),(this||SG)._des=y.create({key:I,iv:N,type:_})}return o.prototype._update=function(d){return i.from((this||SG)._des.update(d))},o.prototype._final=function(){return i.from((this||SG)._des.final())},Pie}function E6t(){return VDe||(VDe=!0,IG.encrypt=function(e,t){return e._cipher.encryptBlock(t)},IG.decrypt=function(e,t){return e._cipher.decryptBlock(t)}),IG}function BD(){if(JDe)return Lie;JDe=!0;var e=Nu.Buffer;return Lie=function(r,i){for(var n=Math.min(r.length,i.length),o=new e(n),d=0;d<n;++d)o[d]=r[d]^i[d];return o},Lie}function v6t(){if(zDe)return CG;zDe=!0;var e=BD();return CG.encrypt=function(t,r){var i=e(r,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},CG.decrypt=function(t,r){var i=t._prev;t._prev=r;var n=t._cipher.decryptBlock(r);return e(n,i)},CG}function R6t(){if(KDe)return Uie;KDe=!0;var e=Vs().Buffer,t=BD();function r(i,n,o){var d=n.length,g=t(n,i._cache);return i._cache=i._cache.slice(d),i._prev=e.concat([i._prev,o?n:g]),g}return Uie.encrypt=function(i,n,o){for(var d=e.allocUnsafe(0),g;n.length;)if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=e.allocUnsafe(0)),i._cache.length<=n.length)g=i._cache.length,d=e.concat([d,r(i,n.slice(0,g),o)]),n=n.slice(g);else{d=e.concat([d,r(i,n,o)]);break}return d},Uie}function S6t(){if($De)return Fie;$De=!0;var e=Vs().Buffer;function t(r,i,n){var o=r._cipher.encryptBlock(r._prev),d=o[0]^i;return r._prev=e.concat([r._prev.slice(1),e.from([n?i:d])]),d}return Fie.encrypt=function(r,i,n){for(var o=i.length,d=e.allocUnsafe(o),g=-1;++g<o;)d[g]=t(r,i[g],n);return d},Fie}function I6t(){if(YDe)return Qie;YDe=!0;var e=Vs().Buffer;function t(i,n,o){for(var d,g=-1,y=8,_=0,I,N;++g<y;)d=i._cipher.encryptBlock(i._prev),I=n&1<<7-g?128:0,N=d[0]^I,_+=(N&128)>>g%8,i._prev=r(i._prev,o?I:N);return _}function r(i,n){var o=i.length,d=-1,g=e.allocUnsafe(i.length);for(i=e.concat([i,e.from([n])]);++d<o;)g[d]=i[d]<<1|i[d+1]>>7;return g}return Qie.encrypt=function(i,n,o){for(var d=n.length,g=e.allocUnsafe(d),y=-1;++y<d;)g[y]=t(i,n[y],o);return g},Qie}function C6t(){if(WDe)return Hie;WDe=!0;var e=Nu.Buffer,t=BD();function r(i){return i._prev=i._cipher.encryptBlock(i._prev),i._prev}return Hie.encrypt=function(i,n){for(;i._cache.length<n.length;)i._cache=e.concat([i._cache,r(i)]);var o=i._cache.slice(0,n.length);return i._cache=i._cache.slice(n.length),t(n,o)},Hie}function EHe(){if(XDe)return Gie;XDe=!0;function e(t){for(var r=t.length,i;r--;)if(i=t.readUInt8(r),i===255)t.writeUInt8(0,r);else{i++,t.writeUInt8(i,r);break}}return Gie=e,Gie}function jDe(){if(ZDe)return qie;ZDe=!0;var e=BD(),t=Vs().Buffer,r=EHe();function i(o){var d=o._cipher.encryptBlockRaw(o._prev);return r(o._prev),d}var n=16;return qie.encrypt=function(o,d){var g=Math.ceil(d.length/n),y=o._cache.length;o._cache=t.concat([o._cache,t.allocUnsafe(g*n)]);for(var _=0;_<g;_++){var I=i(o),N=y+_*n;o._cache.writeUInt32BE(I[0],N+0),o._cache.writeUInt32BE(I[1],N+4),o._cache.writeUInt32BE(I[2],N+8),o._cache.writeUInt32BE(I[3],N+12)}var T=o._cache.slice(0,d.length);return o._cache=o._cache.slice(d.length),e(d,T)},qie}function yue(){if(eke)return Vie;eke=!0;var e={ECB:E6t(),CBC:v6t(),CFB:R6t(),CFB8:S6t(),CFB1:I6t(),OFB:C6t(),CTR:jDe(),GCM:jDe()},t=vHe;for(var r in t)t[r].module=e[t[r].mode];return Vie=t,Vie}function Kq(){if(tke)return Jie;tke=!0;var e=Vs().Buffer;function t(g){e.isBuffer(g)||(g=e.from(g));for(var y=g.length/4|0,_=new Array(y),I=0;I<y;I++)_[I]=g.readUInt32BE(I*4);return _}function r(g){for(var y=0;y<g.length;g++)g[y]=0}function i(g,y,_,I,N){for(var T=_[0],M=_[1],D=_[2],P=_[3],G=g[0]^y[0],q=g[1]^y[1],Y=g[2]^y[2],ne=g[3]^y[3],ce,le,pe,ae,W=4,se=1;se<N;se++)ce=T[G>>>24]^M[q>>>16&255]^D[Y>>>8&255]^P[ne&255]^y[W++],le=T[q>>>24]^M[Y>>>16&255]^D[ne>>>8&255]^P[G&255]^y[W++],pe=T[Y>>>24]^M[ne>>>16&255]^D[G>>>8&255]^P[q&255]^y[W++],ae=T[ne>>>24]^M[G>>>16&255]^D[q>>>8&255]^P[Y&255]^y[W++],G=ce,q=le,Y=pe,ne=ae;return ce=(I[G>>>24]<<24|I[q>>>16&255]<<16|I[Y>>>8&255]<<8|I[ne&255])^y[W++],le=(I[q>>>24]<<24|I[Y>>>16&255]<<16|I[ne>>>8&255]<<8|I[G&255])^y[W++],pe=(I[Y>>>24]<<24|I[ne>>>16&255]<<16|I[G>>>8&255]<<8|I[q&255])^y[W++],ae=(I[ne>>>24]<<24|I[G>>>16&255]<<16|I[q>>>8&255]<<8|I[Y&255])^y[W++],ce=ce>>>0,le=le>>>0,pe=pe>>>0,ae=ae>>>0,[ce,le,pe,ae]}var n=[0,1,2,4,8,16,32,64,128,27,54],o=(function(){for(var g=new Array(256),y=0;y<256;y++)y<128?g[y]=y<<1:g[y]=y<<1^283;for(var _=[],I=[],N=[[],[],[],[]],T=[[],[],[],[]],M=0,D=0,P=0;P<256;++P){var G=D^D<<1^D<<2^D<<3^D<<4;G=G>>>8^G&255^99,_[M]=G,I[G]=M;var q=g[M],Y=g[q],ne=g[Y],ce=g[G]*257^G*16843008;N[0][M]=ce<<24|ce>>>8,N[1][M]=ce<<16|ce>>>16,N[2][M]=ce<<8|ce>>>24,N[3][M]=ce,ce=ne*16843009^Y*65537^q*257^M*16843008,T[0][G]=ce<<24|ce>>>8,T[1][G]=ce<<16|ce>>>16,T[2][G]=ce<<8|ce>>>24,T[3][G]=ce,M===0?M=D=1:(M=q^g[g[g[ne^q]]],D^=g[g[D]])}return{SBOX:_,INV_SBOX:I,SUB_MIX:N,INV_SUB_MIX:T}})();function d(g){(this||wg)._key=t(g),this._reset()}return d.blockSize=16,d.keySize=256/8,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var g=(this||wg)._key,y=g.length,_=y+6,I=(_+1)*4,N=[],T=0;T<y;T++)N[T]=g[T];for(T=y;T<I;T++){var M=N[T-1];T%y===0?(M=M<<8|M>>>24,M=o.SBOX[M>>>24]<<24|o.SBOX[M>>>16&255]<<16|o.SBOX[M>>>8&255]<<8|o.SBOX[M&255],M^=n[T/y|0]<<24):y>6&&T%y===4&&(M=o.SBOX[M>>>24]<<24|o.SBOX[M>>>16&255]<<16|o.SBOX[M>>>8&255]<<8|o.SBOX[M&255]),N[T]=N[T-y]^M}for(var D=[],P=0;P<I;P++){var G=I-P,q=N[G-(P%4?0:4)];P<4||G<=4?D[P]=q:D[P]=o.INV_SUB_MIX[0][o.SBOX[q>>>24]]^o.INV_SUB_MIX[1][o.SBOX[q>>>16&255]]^o.INV_SUB_MIX[2][o.SBOX[q>>>8&255]]^o.INV_SUB_MIX[3][o.SBOX[q&255]]}(this||wg)._nRounds=_,(this||wg)._keySchedule=N,(this||wg)._invKeySchedule=D},d.prototype.encryptBlockRaw=function(g){return g=t(g),i(g,(this||wg)._keySchedule,o.SUB_MIX,o.SBOX,(this||wg)._nRounds)},d.prototype.encryptBlock=function(g){var y=this.encryptBlockRaw(g),_=e.allocUnsafe(16);return _.writeUInt32BE(y[0],0),_.writeUInt32BE(y[1],4),_.writeUInt32BE(y[2],8),_.writeUInt32BE(y[3],12),_},d.prototype.decryptBlock=function(g){g=t(g);var y=g[1];g[1]=g[3],g[3]=y;var _=i(g,(this||wg)._invKeySchedule,o.INV_SUB_MIX,o.INV_SBOX,(this||wg)._nRounds),I=e.allocUnsafe(16);return I.writeUInt32BE(_[0],0),I.writeUInt32BE(_[3],4),I.writeUInt32BE(_[2],8),I.writeUInt32BE(_[1],12),I},d.prototype.scrub=function(){r((this||wg)._keySchedule),r((this||wg)._invKeySchedule),r((this||wg)._key)},Jie.AES=d,Jie}function w6t(){if(rke)return zie;rke=!0;var e=Vs().Buffer,t=e.alloc(16,0);function r(o){return[o.readUInt32BE(0),o.readUInt32BE(4),o.readUInt32BE(8),o.readUInt32BE(12)]}function i(o){var d=e.allocUnsafe(16);return d.writeUInt32BE(o[0]>>>0,0),d.writeUInt32BE(o[1]>>>0,4),d.writeUInt32BE(o[2]>>>0,8),d.writeUInt32BE(o[3]>>>0,12),d}function n(o){(this||bh).h=o,(this||bh).state=e.alloc(16,0),(this||bh).cache=e.allocUnsafe(0)}return n.prototype.ghash=function(o){for(var d=-1;++d<o.length;)(this||bh).state[d]^=o[d];this._multiply()},n.prototype._multiply=function(){for(var o=r((this||bh).h),d=[0,0,0,0],g,y,_,I=-1;++I<128;){for(y=((this||bh).state[~~(I/8)]&1<<7-I%8)!==0,y&&(d[0]^=o[0],d[1]^=o[1],d[2]^=o[2],d[3]^=o[3]),_=(o[3]&1)!==0,g=3;g>0;g--)o[g]=o[g]>>>1|(o[g-1]&1)<<31;o[0]=o[0]>>>1,_&&(o[0]=o[0]^225<<24)}(this||bh).state=i(d)},n.prototype.update=function(o){(this||bh).cache=e.concat([(this||bh).cache,o]);for(var d;(this||bh).cache.length>=16;)d=(this||bh).cache.slice(0,16),(this||bh).cache=(this||bh).cache.slice(16),this.ghash(d)},n.prototype.final=function(o,d){return(this||bh).cache.length&&this.ghash(e.concat([(this||bh).cache,t],16)),this.ghash(i([0,o,0,d])),(this||bh).state},zie=n,zie}function RHe(){if(nke)return Kie;nke=!0;var e=Kq(),t=Vs().Buffer,r=R6(),i=La(),n=w6t(),o=BD(),d=EHe();function g(I,N){var T=0;I.length!==N.length&&T++;for(var M=Math.min(I.length,N.length),D=0;D<M;++D)T+=I[D]^N[D];return T}function y(I,N,T){if(N.length===12)return I._finID=t.concat([N,t.from([0,0,0,1])]),t.concat([N,t.from([0,0,0,2])]);var M=new n(T),D=N.length,P=D%16;M.update(N),P&&(P=16-P,M.update(t.alloc(P,0))),M.update(t.alloc(8,0));var G=D*8,q=t.alloc(8);q.writeUIntBE(G,0,8),M.update(q),I._finID=M.state;var Y=t.from(I._finID);return d(Y),Y}function _(I,N,T,M){r.call(this||da);var D=t.alloc(4,0);(this||da)._cipher=new e.AES(N);var P=(this||da)._cipher.encryptBlock(D);(this||da)._ghash=new n(P),T=y(this||da,T,P),(this||da)._prev=t.from(T),(this||da)._cache=t.allocUnsafe(0),(this||da)._secCache=t.allocUnsafe(0),(this||da)._decrypt=M,(this||da)._alen=0,(this||da)._len=0,(this||da)._mode=I,(this||da)._authTag=null,(this||da)._called=!1}return i(_,r),_.prototype._update=function(I){if(!(this||da)._called&&(this||da)._alen){var N=16-(this||da)._alen%16;N<16&&(N=t.alloc(N,0),(this||da)._ghash.update(N))}(this||da)._called=!0;var T=(this||da)._mode.encrypt(this||da,I);return(this||da)._decrypt?(this||da)._ghash.update(I):(this||da)._ghash.update(T),(this||da)._len+=I.length,T},_.prototype._final=function(){if((this||da)._decrypt&&!(this||da)._authTag)throw new Error("Unsupported state or unable to authenticate data");var I=o((this||da)._ghash.final((this||da)._alen*8,(this||da)._len*8),(this||da)._cipher.encryptBlock((this||da)._finID));if((this||da)._decrypt&&g(I,(this||da)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||da)._authTag=I,(this||da)._cipher.scrub()},_.prototype.getAuthTag=function(){if((this||da)._decrypt||!t.isBuffer((this||da)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||da)._authTag},_.prototype.setAuthTag=function(N){if(!(this||da)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||da)._authTag=N},_.prototype.setAAD=function(N){if((this||da)._called)throw new Error("Attempting to set AAD in unsupported state");(this||da)._ghash.update(N),(this||da)._alen+=N.length},Kie=_,Kie}function SHe(){if(ike)return $ie;ike=!0;var e=Kq(),t=Vs().Buffer,r=R6(),i=La();function n(o,d,g,y){r.call(this||om),(this||om)._cipher=new e.AES(d),(this||om)._prev=t.from(g),(this||om)._cache=t.allocUnsafe(0),(this||om)._secCache=t.allocUnsafe(0),(this||om)._decrypt=y,(this||om)._mode=o}return i(n,r),n.prototype._update=function(o){return(this||om)._mode.encrypt(this||om,o,(this||om)._decrypt)},n.prototype._final=function(){(this||om)._cipher.scrub()},$ie=n,$ie}function $q(){if(oke)return Yie;oke=!0;var e=Vs().Buffer,t=lue();function r(i,n,o,d){if(e.isBuffer(i)||(i=e.from(i,"binary")),n&&(e.isBuffer(n)||(n=e.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var g=o/8,y=e.alloc(g),_=e.alloc(d||0),I=e.alloc(0);g>0||d>0;){var N=new t;N.update(I),N.update(i),n&&N.update(n),I=N.digest();var T=0;if(g>0){var M=y.length-g;T=Math.min(g,I.length),I.copy(y,M,0,T),g-=T}if(T<I.length&&d>0){var D=_.length-d,P=Math.min(d,I.length-T);I.copy(_,D,T,T+P),d-=P}}return I.fill(0),{key:y,iv:_}}return Yie=r,Yie}function O6t(){if(ake)return wG;ake=!0;var e=yue(),t=RHe(),r=Vs().Buffer,i=SHe(),n=R6(),o=Kq(),d=$q(),g=La();function y(M,D,P){n.call(this||xu),(this||xu)._cache=new I,(this||xu)._cipher=new o.AES(D),(this||xu)._prev=r.from(P),(this||xu)._mode=M,(this||xu)._autopadding=!0}g(y,n),y.prototype._update=function(M){(this||xu)._cache.add(M);for(var D,P,G=[];D=(this||xu)._cache.get();)P=(this||xu)._mode.encrypt(this||xu,D),G.push(P);return r.concat(G)};var _=r.alloc(16,16);y.prototype._final=function(){var M=(this||xu)._cache.flush();if((this||xu)._autopadding)return M=(this||xu)._mode.encrypt(this||xu,M),(this||xu)._cipher.scrub(),M;if(!M.equals(_))throw(this||xu)._cipher.scrub(),new Error("data not multiple of block length")},y.prototype.setAutoPadding=function(M){return(this||xu)._autopadding=!!M,this||xu};function I(){(this||xu).cache=r.allocUnsafe(0)}I.prototype.add=function(M){(this||xu).cache=r.concat([(this||xu).cache,M])},I.prototype.get=function(){if((this||xu).cache.length>15){var M=(this||xu).cache.slice(0,16);return(this||xu).cache=(this||xu).cache.slice(16),M}return null},I.prototype.flush=function(){for(var M=16-(this||xu).cache.length,D=r.allocUnsafe(M),P=-1;++P<M;)D.writeUInt8(M,P);return r.concat([(this||xu).cache,D])};function N(M,D,P){var G=e[M.toLowerCase()];if(!G)throw new TypeError("invalid suite type");if(typeof D=="string"&&(D=r.from(D)),D.length!==G.key/8)throw new TypeError("invalid key length "+D.length);if(typeof P=="string"&&(P=r.from(P)),G.mode!=="GCM"&&P.length!==G.iv)throw new TypeError("invalid iv length "+P.length);return G.type==="stream"?new i(G.module,D,P):G.type==="auth"?new t(G.module,D,P):new y(G.module,D,P)}function T(M,D){var P=e[M.toLowerCase()];if(!P)throw new TypeError("invalid suite type");var G=d(D,!1,P.key,P.iv);return N(M,G.key,G.iv)}return wG.createCipheriv=N,wG.createCipher=T,wG}function N6t(){if(ske)return OG;ske=!0;var e=RHe(),t=Vs().Buffer,r=yue(),i=SHe(),n=R6(),o=Kq(),d=$q(),g=La();function y(M,D,P){n.call(this||Ec),(this||Ec)._cache=new _,(this||Ec)._last=void 0,(this||Ec)._cipher=new o.AES(D),(this||Ec)._prev=t.from(P),(this||Ec)._mode=M,(this||Ec)._autopadding=!0}g(y,n),y.prototype._update=function(M){(this||Ec)._cache.add(M);for(var D,P,G=[];D=(this||Ec)._cache.get((this||Ec)._autopadding);)P=(this||Ec)._mode.decrypt(this||Ec,D),G.push(P);return t.concat(G)},y.prototype._final=function(){var M=(this||Ec)._cache.flush();if((this||Ec)._autopadding)return I((this||Ec)._mode.decrypt(this||Ec,M));if(M)throw new Error("data not multiple of block length")},y.prototype.setAutoPadding=function(M){return(this||Ec)._autopadding=!!M,this||Ec};function _(){(this||Ec).cache=t.allocUnsafe(0)}_.prototype.add=function(M){(this||Ec).cache=t.concat([(this||Ec).cache,M])},_.prototype.get=function(M){var D;if(M){if((this||Ec).cache.length>16)return D=(this||Ec).cache.slice(0,16),(this||Ec).cache=(this||Ec).cache.slice(16),D}else if((this||Ec).cache.length>=16)return D=(this||Ec).cache.slice(0,16),(this||Ec).cache=(this||Ec).cache.slice(16),D;return null},_.prototype.flush=function(){if((this||Ec).cache.length)return(this||Ec).cache};function I(M){var D=M[15];if(D<1||D>16)throw new Error("unable to decrypt data");for(var P=-1;++P<D;)if(M[P+(16-D)]!==D)throw new Error("unable to decrypt data");if(D!==16)return M.slice(0,16-D)}function N(M,D,P){var G=r[M.toLowerCase()];if(!G)throw new TypeError("invalid suite type");if(typeof P=="string"&&(P=t.from(P)),G.mode!=="GCM"&&P.length!==G.iv)throw new TypeError("invalid iv length "+P.length);if(typeof D=="string"&&(D=t.from(D)),D.length!==G.key/8)throw new TypeError("invalid key length "+D.length);return G.type==="stream"?new i(G.module,D,P,!0):G.type==="auth"?new e(G.module,D,P,!0):new y(G.module,D,P)}function T(M,D){var P=r[M.toLowerCase()];if(!P)throw new TypeError("invalid suite type");var G=d(D,!1,P.key,P.iv);return N(M,G.key,G.iv)}return OG.createDecipher=T,OG.createDecipheriv=N,OG}function bue(){if(cke)return Og;cke=!0;var e=O6t(),t=N6t(),r=vHe;function i(){return Object.keys(r)}return Og.createCipher=Og.Cipher=e.createCipher,Og.createCipheriv=Og.Cipheriv=e.createCipheriv,Og.createDecipher=Og.Decipher=t.createDecipher,Og.createDecipheriv=Og.Decipheriv=t.createDecipheriv,Og.listCiphers=Og.getCiphers=i,Og}function x6t(){return uke||(uke=!0,Uy["des-ecb"]={key:8,iv:0},Uy["des-cbc"]=Uy.des={key:8,iv:8},Uy["des-ede3-cbc"]=Uy.des3={key:24,iv:8},Uy["des-ede3"]={key:24,iv:0},Uy["des-ede-cbc"]={key:16,iv:8},Uy["des-ede"]={key:16,iv:0}),Uy}function T6t(){if(dke)return Ng;dke=!0;var e=b6t(),t=bue(),r=yue(),i=x6t(),n=$q();function o(I,N){I=I.toLowerCase();var T,M;if(r[I])T=r[I].key,M=r[I].iv;else if(i[I])T=i[I].key*8,M=i[I].iv;else throw new TypeError("invalid suite type");var D=n(N,!1,T,M);return g(I,D.key,D.iv)}function d(I,N){I=I.toLowerCase();var T,M;if(r[I])T=r[I].key,M=r[I].iv;else if(i[I])T=i[I].key*8,M=i[I].iv;else throw new TypeError("invalid suite type");var D=n(N,!1,T,M);return y(I,D.key,D.iv)}function g(I,N,T){if(I=I.toLowerCase(),r[I])return t.createCipheriv(I,N,T);if(i[I])return new e({key:N,iv:T,mode:I});throw new TypeError("invalid suite type")}function y(I,N,T){if(I=I.toLowerCase(),r[I])return t.createDecipheriv(I,N,T);if(i[I])return new e({key:N,iv:T,mode:I,decrypt:!0});throw new TypeError("invalid suite type")}function _(){return Object.keys(i).concat(t.getCiphers())}return Ng.createCipher=Ng.Cipher=o,Ng.createCipheriv=Ng.Cipheriv=g,Ng.createDecipher=Ng.Decipher=d,Ng.createDecipheriv=Ng.Decipheriv=y,Ng.listCiphers=Ng.getCiphers=_,Ng}function CHe(){return fke||(fke=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||wt).negative=0,(this||wt).words=null,(this||wt).length=0,(this||wt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||wt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||wt).negative=1,s=-s),s<67108864?((this||wt).words=[s&67108863],(this||wt).length=1):s<4503599627370496?((this||wt).words=[s&67108863,s/67108864&67108863],(this||wt).length=2):(r(s<9007199254740992),(this||wt).words=[s&67108863,s/67108864&67108863,1],(this||wt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||wt).words=[0],(this||wt).length=1,this||wt;(this||wt).length=Math.ceil(s.length/3),(this||wt).words=new Array((this||wt).length);for(var m=0;m<(this||wt).length;m++)(this||wt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||wt).words[E]|=w<<x&67108863,(this||wt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||wt).words[E]|=w<<x&67108863,(this||wt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||wt).length=Math.ceil((s.length-l)/6),(this||wt).words=new Array((this||wt).length);for(var m=0;m<(this||wt).length;m++)(this||wt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||wt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||wt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||wt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||wt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||wt).words=[0],(this||wt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||wt).words[0]+u<67108864?(this||wt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||wt).words[0]+u<67108864?(this||wt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||wt).length);for(var l=0;l<(this||wt).length;l++)s.words[l]=(this||wt).words[l];s.length=(this||wt).length,s.negative=(this||wt).negative,s.red=(this||wt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||wt).length<s;)(this||wt).words[(this||wt).length++]=0;return this||wt},n.prototype.strip=function(){for(;(this||wt).length>1&&(this||wt).words[(this||wt).length-1]===0;)(this||wt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||wt).length===1&&(this||wt).words[0]===0&&((this||wt).negative=0),this||wt},n.prototype.inspect=function(){return((this||wt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||wt).length;w++){var x=(this||wt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||wt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||wt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||wt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||wt).words[0];return(this||wt).length===2?s+=(this||wt).words[1]*67108864:(this||wt).length===3&&(this||wt).words[2]===1?s+=4503599627370496+(this||wt).words[1]*67108864:(this||wt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||wt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||wt).words[(this||wt).length-1],l=this._countBits(s);return((this||wt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||wt).length;l++){var A=this._zeroBits((this||wt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||wt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||wt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||wt).negative^=1),this||wt},n.prototype.iuor=function(s){for(;(this||wt).length<s.length;)(this||wt).words[(this||wt).length++]=0;for(var l=0;l<s.length;l++)(this||wt).words[l]=(this||wt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||wt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||wt).length>s.length?this.clone().ior(s):s.clone().ior(this||wt)},n.prototype.uor=function(s){return(this||wt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||wt)},n.prototype.iuand=function(s){var l;(this||wt).length>s.length?l=s:l=this||wt;for(var A=0;A<l.length;A++)(this||wt).words[A]=(this||wt).words[A]&s.words[A];return(this||wt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||wt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||wt).length>s.length?this.clone().iand(s):s.clone().iand(this||wt)},n.prototype.uand=function(s){return(this||wt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||wt)},n.prototype.iuxor=function(s){var l,A;(this||wt).length>s.length?(l=this||wt,A=s):(l=s,A=this||wt);for(var m=0;m<A.length;m++)(this||wt).words[m]=l.words[m]^A.words[m];if((this||wt)!==l)for(;m<l.length;m++)(this||wt).words[m]=l.words[m];return(this||wt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||wt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||wt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||wt)},n.prototype.uxor=function(s){return(this||wt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||wt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||wt).words[m]=~(this||wt).words[m]&67108863;return A>0&&((this||wt).words[m]=~(this||wt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||wt).words[A]=(this||wt).words[A]|1<<m:(this||wt).words[A]=(this||wt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||wt).negative!==0&&s.negative===0)return(this||wt).negative=0,l=this.isub(s),(this||wt).negative^=1,this._normSign();if((this||wt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||wt).length>s.length?(A=this||wt,m=s):(A=s,m=this||wt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||wt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||wt).words[w]=l&67108863,E=l>>>26;if((this||wt).length=A.length,E!==0)(this||wt).words[(this||wt).length]=E,(this||wt).length++;else if(A!==(this||wt))for(;w<A.length;w++)(this||wt).words[w]=A.words[w];return this||wt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||wt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||wt).negative!==0?((this||wt).negative=0,l=s.sub(this||wt),(this||wt).negative=1,l):(this||wt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||wt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||wt).negative!==0)return(this||wt).negative=0,this.iadd(s),(this||wt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||wt).negative=0,(this||wt).length=1,(this||wt).words[0]=0,this||wt;var m,E;A>0?(m=this||wt,E=s):(m=s,E=this||wt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||wt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||wt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||wt))for(;x<m.length;x++)(this||wt).words[x]=m.words[x];return(this||wt).length=Math.max((this||wt).length,x),m!==(this||wt)&&((this||wt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||wt).length+s.length;return(this||wt).length===10&&s.length===10?A=D(this||wt,s,l):m<63?A=M(this||wt,s,l):m<1024?A=P(this||wt,s,l):A=G(this||wt,s,l),A};function q(O,s){(this||wt).x=O,(this||wt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||wt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||wt).length+s.length),G(this||wt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||wt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||wt).length;A++){var m=((this||wt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||wt).words[A]=E&67108863}return l!==0&&((this||wt).words[A]=l,(this||wt).length++),this||wt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||wt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||wt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||wt).length;E++){var x=(this||wt).words[E]&m,R=((this||wt).words[E]|0)-x<<l;(this||wt).words[E]=R|w,w=x>>>26-l}w&&((this||wt).words[E]=w,(this||wt).length++)}if(A!==0){for(E=(this||wt).length-1;E>=0;E--)(this||wt).words[E+A]=(this||wt).words[E];for(E=0;E<A;E++)(this||wt).words[E]=0;(this||wt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||wt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||wt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||wt).words[u];R.length=w}if(w!==0)if((this||wt).length>w)for((this||wt).length-=w,u=0;u<(this||wt).length;u++)(this||wt).words[u]=(this||wt).words[u+w];else(this||wt).words[0]=0,(this||wt).length=1;var C=0;for(u=(this||wt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||wt).words[u]|0;(this||wt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||wt).length===0&&((this||wt).words[0]=0,(this||wt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||wt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||wt).length<=A)return!1;var E=(this||wt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||wt).negative===0,"imaskn works only with positive numbers"),(this||wt).length<=A)return this||wt;if(l!==0&&A++,(this||wt).length=Math.min(A,(this||wt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||wt).words[(this||wt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||wt).negative!==0?(this||wt).length===1&&((this||wt).words[0]|0)<s?((this||wt).words[0]=s-((this||wt).words[0]|0),(this||wt).negative=0,this||wt):((this||wt).negative=0,this.isubn(s),(this||wt).negative=1,this||wt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||wt).words[0]+=s;for(var l=0;l<(this||wt).length&&(this||wt).words[l]>=67108864;l++)(this||wt).words[l]-=67108864,l===(this||wt).length-1?(this||wt).words[l+1]=1:(this||wt).words[l+1]++;return(this||wt).length=Math.max((this||wt).length,l+1),this||wt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||wt).negative!==0)return(this||wt).negative=0,this.iaddn(s),(this||wt).negative=1,this||wt;if((this||wt).words[0]-=s,(this||wt).length===1&&(this||wt).words[0]<0)(this||wt).words[0]=-(this||wt).words[0],(this||wt).negative=1;else for(var l=0;l<(this||wt).length&&(this||wt).words[l]<0;l++)(this||wt).words[l]+=67108864,(this||wt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||wt).negative=0,this||wt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||wt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||wt).words[E+A]=w&67108863}for(;E<(this||wt).length-A;E++)w=((this||wt).words[E+A]|0)+x,x=w>>26,(this||wt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||wt).length;E++)w=-((this||wt).words[E]|0)+x,x=w>>26,(this||wt).words[E]=w&67108863;return(this||wt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||wt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||wt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||wt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||wt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||wt).length||this.cmp(s)<0?{div:new n(0),mod:this||wt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||wt).length-1;m>=0;m--)A=(l*A+((this||wt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||wt).length-1;A>=0;A--){var m=((this||wt).words[A]|0)+l*67108864;(this||wt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||wt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||wt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||wt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||wt).words[0]&1)===1},n.prototype.andln=function(s){return(this||wt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||wt).length<=A)return this._expand(A+1),(this||wt).words[A]|=m,this||wt;for(var E=m,w=A;E!==0&&w<(this||wt).length;w++){var x=(this||wt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||wt).words[w]=x}return E!==0&&((this||wt).words[w]=E,(this||wt).length++),this||wt},n.prototype.isZero=function(){return(this||wt).length===1&&(this||wt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||wt).negative!==0&&!l)return-1;if((this||wt).negative===0&&l)return 1;this.strip();var A;if((this||wt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||wt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||wt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||wt).negative!==0&&s.negative===0)return-1;if((this||wt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||wt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||wt).length>s.length)return 1;if((this||wt).length<s.length)return-1;for(var l=0,A=(this||wt).length-1;A>=0;A--){var m=(this||wt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||wt).red,"Already a number in reduction context"),r((this||wt).negative===0,"red works only with positives"),s.convertTo(this||wt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||wt).red,"fromRed works only with numbers in reduction context"),(this||wt).red.convertFrom(this||wt)},n.prototype._forceRed=function(s){return(this||wt).red=s,this||wt},n.prototype.forceRed=function(s){return r(!(this||wt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||wt).red,"redAdd works only with red numbers"),(this||wt).red.add(this||wt,s)},n.prototype.redIAdd=function(s){return r((this||wt).red,"redIAdd works only with red numbers"),(this||wt).red.iadd(this||wt,s)},n.prototype.redSub=function(s){return r((this||wt).red,"redSub works only with red numbers"),(this||wt).red.sub(this||wt,s)},n.prototype.redISub=function(s){return r((this||wt).red,"redISub works only with red numbers"),(this||wt).red.isub(this||wt,s)},n.prototype.redShl=function(s){return r((this||wt).red,"redShl works only with red numbers"),(this||wt).red.shl(this||wt,s)},n.prototype.redMul=function(s){return r((this||wt).red,"redMul works only with red numbers"),(this||wt).red._verify2(this||wt,s),(this||wt).red.mul(this||wt,s)},n.prototype.redIMul=function(s){return r((this||wt).red,"redMul works only with red numbers"),(this||wt).red._verify2(this||wt,s),(this||wt).red.imul(this||wt,s)},n.prototype.redSqr=function(){return r((this||wt).red,"redSqr works only with red numbers"),(this||wt).red._verify1(this||wt),(this||wt).red.sqr(this||wt)},n.prototype.redISqr=function(){return r((this||wt).red,"redISqr works only with red numbers"),(this||wt).red._verify1(this||wt),(this||wt).red.isqr(this||wt)},n.prototype.redSqrt=function(){return r((this||wt).red,"redSqrt works only with red numbers"),(this||wt).red._verify1(this||wt),(this||wt).red.sqrt(this||wt)},n.prototype.redInvm=function(){return r((this||wt).red,"redInvm works only with red numbers"),(this||wt).red._verify1(this||wt),(this||wt).red.invm(this||wt)},n.prototype.redNeg=function(){return r((this||wt).red,"redNeg works only with red numbers"),(this||wt).red._verify1(this||wt),(this||wt).red.neg(this||wt)},n.prototype.redPow=function(s){return r((this||wt).red&&!s.red,"redPow(normalNum)"),(this||wt).red._verify1(this||wt),(this||wt).red.pow(this||wt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||wt).name=O,(this||wt).p=new n(s,16),(this||wt).n=(this||wt).p.bitLength(),(this||wt).k=new n(1).iushln((this||wt).n).isub((this||wt).p),(this||wt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||wt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||wt).tmp),l=this.imulK(l),l=l.iadd((this||wt).tmp),A=l.bitLength();while(A>(this||wt).n);var m=A<(this||wt).n?-1:l.ucmp((this||wt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||wt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||wt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||wt).k)};function ce(){ne.call(this||wt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||wt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||wt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||wt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||wt).m=s.p,(this||wt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||wt).m=O,(this||wt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||wt).prime?(this||wt).prime.ireduce(s)._forceRed(this||wt):s.umod((this||wt).m)._forceRed(this||wt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||wt).m.sub(s)._forceRed(this||wt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||wt).m)>=0&&A.isub((this||wt).m),A._forceRed(this||wt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||wt).m)>=0&&A.isub((this||wt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||wt).m),A._forceRed(this||wt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||wt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||wt).m.andln(3);if(r(l%2===1),l===3){var A=(this||wt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||wt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||wt),x=w.redNeg(),R=(this||wt).m.subn(1).iushrn(1),u=(this||wt).m.bitLength();for(u=new n(2*u*u).toRed(this||wt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||wt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||wt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||wt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||wt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||wt,O),(this||wt).shift=(this||wt).m.bitLength(),(this||wt).shift%26!==0&&((this||wt).shift+=26-(this||wt).shift%26),(this||wt).r=new n(1).iushln((this||wt).shift),(this||wt).r2=this.imod((this||wt).r.sqr()),(this||wt).rinv=(this||wt).r._invmp((this||wt).m),(this||wt).minv=(this||wt).rinv.mul((this||wt).r).isubn(1).div((this||wt).m),(this||wt).minv=(this||wt).minv.umod((this||wt).r),(this||wt).minv=(this||wt).r.sub((this||wt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||wt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||wt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||wt).shift).mul((this||wt).minv).imaskn((this||wt).shift).mul((this||wt).m),E=A.isub(m).iushrn((this||wt).shift),w=E;return E.cmp((this||wt).m)>=0?w=E.isub((this||wt).m):E.cmpn(0)<0&&(w=E.iadd((this||wt).m)),w._forceRed(this||wt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||wt);var A=s.mul(l),m=A.maskn((this||wt).shift).mul((this||wt).minv).imaskn((this||wt).shift).mul((this||wt).m),E=A.isub(m).iushrn((this||wt).shift),w=E;return E.cmp((this||wt).m)>=0?w=E.isub((this||wt).m):E.cmpn(0)<0&&(w=E.iadd((this||wt).m)),w._forceRed(this||wt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||wt).m).mul((this||wt).r2));return l._forceRed(this||wt)}})(Wie,IHe)),Wie.exports}function B6t(){return lke||(lke=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Ot).negative=0,(this||Ot).words=null,(this||Ot).length=0,(this||Ot).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Ot).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Ot).negative=1,s=-s),s<67108864?((this||Ot).words=[s&67108863],(this||Ot).length=1):s<4503599627370496?((this||Ot).words=[s&67108863,s/67108864&67108863],(this||Ot).length=2):(r(s<9007199254740992),(this||Ot).words=[s&67108863,s/67108864&67108863,1],(this||Ot).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Ot).words=[0],(this||Ot).length=1,this||Ot;(this||Ot).length=Math.ceil(s.length/3),(this||Ot).words=new Array((this||Ot).length);for(var m=0;m<(this||Ot).length;m++)(this||Ot).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Ot).words[E]|=w<<x&67108863,(this||Ot).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Ot).words[E]|=w<<x&67108863,(this||Ot).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Ot).length=Math.ceil((s.length-l)/6),(this||Ot).words=new Array((this||Ot).length);for(var m=0;m<(this||Ot).length;m++)(this||Ot).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Ot).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Ot).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Ot).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Ot).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Ot).words=[0],(this||Ot).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Ot).words[0]+u<67108864?(this||Ot).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Ot).words[0]+u<67108864?(this||Ot).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Ot).length);for(var l=0;l<(this||Ot).length;l++)s.words[l]=(this||Ot).words[l];s.length=(this||Ot).length,s.negative=(this||Ot).negative,s.red=(this||Ot).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Ot).length<s;)(this||Ot).words[(this||Ot).length++]=0;return this||Ot},n.prototype.strip=function(){for(;(this||Ot).length>1&&(this||Ot).words[(this||Ot).length-1]===0;)(this||Ot).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Ot).length===1&&(this||Ot).words[0]===0&&((this||Ot).negative=0),this||Ot},n.prototype.inspect=function(){return((this||Ot).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Ot).length;w++){var x=(this||Ot).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Ot).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Ot).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Ot).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Ot).words[0];return(this||Ot).length===2?s+=(this||Ot).words[1]*67108864:(this||Ot).length===3&&(this||Ot).words[2]===1?s+=4503599627370496+(this||Ot).words[1]*67108864:(this||Ot).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Ot).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Ot).words[(this||Ot).length-1],l=this._countBits(s);return((this||Ot).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Ot).length;l++){var A=this._zeroBits((this||Ot).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Ot).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Ot).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Ot).negative^=1),this||Ot},n.prototype.iuor=function(s){for(;(this||Ot).length<s.length;)(this||Ot).words[(this||Ot).length++]=0;for(var l=0;l<s.length;l++)(this||Ot).words[l]=(this||Ot).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Ot).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Ot).length>s.length?this.clone().ior(s):s.clone().ior(this||Ot)},n.prototype.uor=function(s){return(this||Ot).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Ot)},n.prototype.iuand=function(s){var l;(this||Ot).length>s.length?l=s:l=this||Ot;for(var A=0;A<l.length;A++)(this||Ot).words[A]=(this||Ot).words[A]&s.words[A];return(this||Ot).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Ot).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Ot).length>s.length?this.clone().iand(s):s.clone().iand(this||Ot)},n.prototype.uand=function(s){return(this||Ot).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Ot)},n.prototype.iuxor=function(s){var l,A;(this||Ot).length>s.length?(l=this||Ot,A=s):(l=s,A=this||Ot);for(var m=0;m<A.length;m++)(this||Ot).words[m]=l.words[m]^A.words[m];if((this||Ot)!==l)for(;m<l.length;m++)(this||Ot).words[m]=l.words[m];return(this||Ot).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Ot).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Ot).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Ot)},n.prototype.uxor=function(s){return(this||Ot).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Ot)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Ot).words[m]=~(this||Ot).words[m]&67108863;return A>0&&((this||Ot).words[m]=~(this||Ot).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Ot).words[A]=(this||Ot).words[A]|1<<m:(this||Ot).words[A]=(this||Ot).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Ot).negative!==0&&s.negative===0)return(this||Ot).negative=0,l=this.isub(s),(this||Ot).negative^=1,this._normSign();if((this||Ot).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Ot).length>s.length?(A=this||Ot,m=s):(A=s,m=this||Ot);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Ot).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Ot).words[w]=l&67108863,E=l>>>26;if((this||Ot).length=A.length,E!==0)(this||Ot).words[(this||Ot).length]=E,(this||Ot).length++;else if(A!==(this||Ot))for(;w<A.length;w++)(this||Ot).words[w]=A.words[w];return this||Ot},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Ot).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Ot).negative!==0?((this||Ot).negative=0,l=s.sub(this||Ot),(this||Ot).negative=1,l):(this||Ot).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Ot)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Ot).negative!==0)return(this||Ot).negative=0,this.iadd(s),(this||Ot).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Ot).negative=0,(this||Ot).length=1,(this||Ot).words[0]=0,this||Ot;var m,E;A>0?(m=this||Ot,E=s):(m=s,E=this||Ot);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Ot).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Ot).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Ot))for(;x<m.length;x++)(this||Ot).words[x]=m.words[x];return(this||Ot).length=Math.max((this||Ot).length,x),m!==(this||Ot)&&((this||Ot).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Ot).length+s.length;return(this||Ot).length===10&&s.length===10?A=D(this||Ot,s,l):m<63?A=M(this||Ot,s,l):m<1024?A=P(this||Ot,s,l):A=G(this||Ot,s,l),A};function q(O,s){(this||Ot).x=O,(this||Ot).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Ot).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Ot).length+s.length),G(this||Ot,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Ot)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Ot).length;A++){var m=((this||Ot).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Ot).words[A]=E&67108863}return l!==0&&((this||Ot).words[A]=l,(this||Ot).length++),this||Ot},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Ot)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Ot,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Ot).length;E++){var x=(this||Ot).words[E]&m,R=((this||Ot).words[E]|0)-x<<l;(this||Ot).words[E]=R|w,w=x>>>26-l}w&&((this||Ot).words[E]=w,(this||Ot).length++)}if(A!==0){for(E=(this||Ot).length-1;E>=0;E--)(this||Ot).words[E+A]=(this||Ot).words[E];for(E=0;E<A;E++)(this||Ot).words[E]=0;(this||Ot).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Ot).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Ot).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Ot).words[u];R.length=w}if(w!==0)if((this||Ot).length>w)for((this||Ot).length-=w,u=0;u<(this||Ot).length;u++)(this||Ot).words[u]=(this||Ot).words[u+w];else(this||Ot).words[0]=0,(this||Ot).length=1;var C=0;for(u=(this||Ot).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Ot).words[u]|0;(this||Ot).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Ot).length===0&&((this||Ot).words[0]=0,(this||Ot).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Ot).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Ot).length<=A)return!1;var E=(this||Ot).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Ot).negative===0,"imaskn works only with positive numbers"),(this||Ot).length<=A)return this||Ot;if(l!==0&&A++,(this||Ot).length=Math.min(A,(this||Ot).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Ot).words[(this||Ot).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Ot).negative!==0?(this||Ot).length===1&&((this||Ot).words[0]|0)<s?((this||Ot).words[0]=s-((this||Ot).words[0]|0),(this||Ot).negative=0,this||Ot):((this||Ot).negative=0,this.isubn(s),(this||Ot).negative=1,this||Ot):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Ot).words[0]+=s;for(var l=0;l<(this||Ot).length&&(this||Ot).words[l]>=67108864;l++)(this||Ot).words[l]-=67108864,l===(this||Ot).length-1?(this||Ot).words[l+1]=1:(this||Ot).words[l+1]++;return(this||Ot).length=Math.max((this||Ot).length,l+1),this||Ot},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Ot).negative!==0)return(this||Ot).negative=0,this.iaddn(s),(this||Ot).negative=1,this||Ot;if((this||Ot).words[0]-=s,(this||Ot).length===1&&(this||Ot).words[0]<0)(this||Ot).words[0]=-(this||Ot).words[0],(this||Ot).negative=1;else for(var l=0;l<(this||Ot).length&&(this||Ot).words[l]<0;l++)(this||Ot).words[l]+=67108864,(this||Ot).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Ot).negative=0,this||Ot},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Ot).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Ot).words[E+A]=w&67108863}for(;E<(this||Ot).length-A;E++)w=((this||Ot).words[E+A]|0)+x,x=w>>26,(this||Ot).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Ot).length;E++)w=-((this||Ot).words[E]|0)+x,x=w>>26,(this||Ot).words[E]=w&67108863;return(this||Ot).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Ot).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Ot).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Ot).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Ot).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Ot).length||this.cmp(s)<0?{div:new n(0),mod:this||Ot}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Ot).length-1;m>=0;m--)A=(l*A+((this||Ot).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Ot).length-1;A>=0;A--){var m=((this||Ot).words[A]|0)+l*67108864;(this||Ot).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Ot,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Ot,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Ot).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Ot).words[0]&1)===1},n.prototype.andln=function(s){return(this||Ot).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Ot).length<=A)return this._expand(A+1),(this||Ot).words[A]|=m,this||Ot;for(var E=m,w=A;E!==0&&w<(this||Ot).length;w++){var x=(this||Ot).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Ot).words[w]=x}return E!==0&&((this||Ot).words[w]=E,(this||Ot).length++),this||Ot},n.prototype.isZero=function(){return(this||Ot).length===1&&(this||Ot).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Ot).negative!==0&&!l)return-1;if((this||Ot).negative===0&&l)return 1;this.strip();var A;if((this||Ot).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Ot).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Ot).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Ot).negative!==0&&s.negative===0)return-1;if((this||Ot).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Ot).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Ot).length>s.length)return 1;if((this||Ot).length<s.length)return-1;for(var l=0,A=(this||Ot).length-1;A>=0;A--){var m=(this||Ot).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Ot).red,"Already a number in reduction context"),r((this||Ot).negative===0,"red works only with positives"),s.convertTo(this||Ot)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Ot).red,"fromRed works only with numbers in reduction context"),(this||Ot).red.convertFrom(this||Ot)},n.prototype._forceRed=function(s){return(this||Ot).red=s,this||Ot},n.prototype.forceRed=function(s){return r(!(this||Ot).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Ot).red,"redAdd works only with red numbers"),(this||Ot).red.add(this||Ot,s)},n.prototype.redIAdd=function(s){return r((this||Ot).red,"redIAdd works only with red numbers"),(this||Ot).red.iadd(this||Ot,s)},n.prototype.redSub=function(s){return r((this||Ot).red,"redSub works only with red numbers"),(this||Ot).red.sub(this||Ot,s)},n.prototype.redISub=function(s){return r((this||Ot).red,"redISub works only with red numbers"),(this||Ot).red.isub(this||Ot,s)},n.prototype.redShl=function(s){return r((this||Ot).red,"redShl works only with red numbers"),(this||Ot).red.shl(this||Ot,s)},n.prototype.redMul=function(s){return r((this||Ot).red,"redMul works only with red numbers"),(this||Ot).red._verify2(this||Ot,s),(this||Ot).red.mul(this||Ot,s)},n.prototype.redIMul=function(s){return r((this||Ot).red,"redMul works only with red numbers"),(this||Ot).red._verify2(this||Ot,s),(this||Ot).red.imul(this||Ot,s)},n.prototype.redSqr=function(){return r((this||Ot).red,"redSqr works only with red numbers"),(this||Ot).red._verify1(this||Ot),(this||Ot).red.sqr(this||Ot)},n.prototype.redISqr=function(){return r((this||Ot).red,"redISqr works only with red numbers"),(this||Ot).red._verify1(this||Ot),(this||Ot).red.isqr(this||Ot)},n.prototype.redSqrt=function(){return r((this||Ot).red,"redSqrt works only with red numbers"),(this||Ot).red._verify1(this||Ot),(this||Ot).red.sqrt(this||Ot)},n.prototype.redInvm=function(){return r((this||Ot).red,"redInvm works only with red numbers"),(this||Ot).red._verify1(this||Ot),(this||Ot).red.invm(this||Ot)},n.prototype.redNeg=function(){return r((this||Ot).red,"redNeg works only with red numbers"),(this||Ot).red._verify1(this||Ot),(this||Ot).red.neg(this||Ot)},n.prototype.redPow=function(s){return r((this||Ot).red&&!s.red,"redPow(normalNum)"),(this||Ot).red._verify1(this||Ot),(this||Ot).red.pow(this||Ot,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Ot).name=O,(this||Ot).p=new n(s,16),(this||Ot).n=(this||Ot).p.bitLength(),(this||Ot).k=new n(1).iushln((this||Ot).n).isub((this||Ot).p),(this||Ot).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Ot).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Ot).tmp),l=this.imulK(l),l=l.iadd((this||Ot).tmp),A=l.bitLength();while(A>(this||Ot).n);var m=A<(this||Ot).n?-1:l.ucmp((this||Ot).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Ot).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Ot).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Ot).k)};function ce(){ne.call(this||Ot,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Ot,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Ot,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Ot,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Ot).m=s.p,(this||Ot).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Ot).m=O,(this||Ot).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Ot).prime?(this||Ot).prime.ireduce(s)._forceRed(this||Ot):s.umod((this||Ot).m)._forceRed(this||Ot)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Ot).m.sub(s)._forceRed(this||Ot)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Ot).m)>=0&&A.isub((this||Ot).m),A._forceRed(this||Ot)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Ot).m)>=0&&A.isub((this||Ot).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Ot).m),A._forceRed(this||Ot)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Ot).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Ot).m.andln(3);if(r(l%2===1),l===3){var A=(this||Ot).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Ot).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Ot),x=w.redNeg(),R=(this||Ot).m.subn(1).iushrn(1),u=(this||Ot).m.bitLength();for(u=new n(2*u*u).toRed(this||Ot);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Ot).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Ot);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Ot),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Ot).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Ot,O),(this||Ot).shift=(this||Ot).m.bitLength(),(this||Ot).shift%26!==0&&((this||Ot).shift+=26-(this||Ot).shift%26),(this||Ot).r=new n(1).iushln((this||Ot).shift),(this||Ot).r2=this.imod((this||Ot).r.sqr()),(this||Ot).rinv=(this||Ot).r._invmp((this||Ot).m),(this||Ot).minv=(this||Ot).rinv.mul((this||Ot).r).isubn(1).div((this||Ot).m),(this||Ot).minv=(this||Ot).minv.umod((this||Ot).r),(this||Ot).minv=(this||Ot).r.sub((this||Ot).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Ot).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Ot).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Ot).shift).mul((this||Ot).minv).imaskn((this||Ot).shift).mul((this||Ot).m),E=A.isub(m).iushrn((this||Ot).shift),w=E;return E.cmp((this||Ot).m)>=0?w=E.isub((this||Ot).m):E.cmpn(0)<0&&(w=E.iadd((this||Ot).m)),w._forceRed(this||Ot)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Ot);var A=s.mul(l),m=A.maskn((this||Ot).shift).mul((this||Ot).minv).imaskn((this||Ot).shift).mul((this||Ot).m),E=A.isub(m).iushrn((this||Ot).shift),w=E;return E.cmp((this||Ot).m)>=0?w=E.isub((this||Ot).m):E.cmpn(0)<0&&(w=E.iadd((this||Ot).m)),w._forceRed(this||Ot)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Ot).m).mul((this||Ot).r2));return l._forceRed(this||Ot)}})(Xie,wHe)),Xie.exports}function OHe(){return hke||(hke=!0,vp=vp=gue(),vp.Stream=vp,vp.Readable=vp,vp.Writable=pue(),vp.Duplex=b4(),vp.Transform=_ue(),vp.PassThrough=uHe(),vp.finished=zq(),vp.pipeline=dHe()),vp}function cs(){if(Ake)return JM;Ake=!0;var e=Vo,t=e.Buffer;function r(n,o){for(var d in n)o[d]=n[d]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?JM=e:(r(e,JM),JM.Buffer=i);function i(n,o,d){return t(n,o,d)}return i.prototype=Object.create(t.prototype),r(t,i),i.from=function(n,o,d){if(typeof n=="number")throw new TypeError("Argument must not be a number");return t(n,o,d)},i.alloc=function(n,o,d){if(typeof n!="number")throw new TypeError("Argument must be a number");var g=t(n);return o!==void 0?typeof d=="string"?g.fill(o,d):g.fill(o):g.fill(0),g},i.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return t(n)},i.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(n)},JM}function DO(){if(pke)return NG;pke=!0;var e=Mo,t=65536,r=4294967295;function i(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
Use Chrome, Firefox or Internet Explorer 11`)}var n=cs().Buffer,o=gke.crypto||gke.msCrypto;o&&o.getRandomValues?NG=d:NG=i;function d(g,y){if(g>r)throw new RangeError("requested too many random bytes");var _=n.allocUnsafe(g);if(g>0)if(g>t)for(var I=0;I<g;I+=t)o.getRandomValues(_.slice(I,I+t));else o.getRandomValues(_);return typeof y=="function"?e.nextTick(function(){y(null,_)}):_}return NG}function NHe(){if(_ke)return Zie;_ke=!0;var e=cs().Buffer,t=OHe().Transform,r=rs();function i(o,d){if(!e.isBuffer(o)&&typeof o!="string")throw new TypeError(d+" must be a string or a buffer")}function n(o){t.call(this),this._block=e.allocUnsafe(o),this._blockSize=o,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return r(n,t),n.prototype._transform=function(o,d,g){var y=null;try{this.update(o,d)}catch(_){y=_}g(y)},n.prototype._flush=function(o){var d=null;try{this.push(this.digest())}catch(g){d=g}o(d)},n.prototype.update=function(o,d){if(i(o,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(o)||(o=e.from(o,d));for(var g=this._block,y=0;this._blockOffset+o.length-y>=this._blockSize;){for(var _=this._blockOffset;_<this._blockSize;)g[_++]=o[y++];this._update(),this._blockOffset=0}for(;y<o.length;)g[this._blockOffset++]=o[y++];for(var I=0,N=o.length*8;N>0;++I)this._length[I]+=N,N=this._length[I]/4294967296|0,N>0&&(this._length[I]-=4294967296*N);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(o){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();o!==void 0&&(d=d.toString(o)),this._block.fill(0),this._blockOffset=0;for(var g=0;g<4;++g)this._length[g]=0;return d},n.prototype._digest=function(){throw new Error("_digest is not implemented")},Zie=n,Zie}function Eue(){if(mke)return jie;mke=!0;var e=rs(),t=NHe(),r=cs().Buffer,i=new Array(16);function n(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(n,t),n.prototype._update=function(){for(var I=i,N=0;N<16;++N)I[N]=this._block.readInt32LE(N*4);var T=this._a,M=this._b,D=this._c,P=this._d;T=d(T,M,D,P,I[0],3614090360,7),P=d(P,T,M,D,I[1],3905402710,12),D=d(D,P,T,M,I[2],606105819,17),M=d(M,D,P,T,I[3],3250441966,22),T=d(T,M,D,P,I[4],4118548399,7),P=d(P,T,M,D,I[5],1200080426,12),D=d(D,P,T,M,I[6],2821735955,17),M=d(M,D,P,T,I[7],4249261313,22),T=d(T,M,D,P,I[8],1770035416,7),P=d(P,T,M,D,I[9],2336552879,12),D=d(D,P,T,M,I[10],4294925233,17),M=d(M,D,P,T,I[11],2304563134,22),T=d(T,M,D,P,I[12],1804603682,7),P=d(P,T,M,D,I[13],4254626195,12),D=d(D,P,T,M,I[14],2792965006,17),M=d(M,D,P,T,I[15],1236535329,22),T=g(T,M,D,P,I[1],4129170786,5),P=g(P,T,M,D,I[6],3225465664,9),D=g(D,P,T,M,I[11],643717713,14),M=g(M,D,P,T,I[0],3921069994,20),T=g(T,M,D,P,I[5],3593408605,5),P=g(P,T,M,D,I[10],38016083,9),D=g(D,P,T,M,I[15],3634488961,14),M=g(M,D,P,T,I[4],3889429448,20),T=g(T,M,D,P,I[9],568446438,5),P=g(P,T,M,D,I[14],3275163606,9),D=g(D,P,T,M,I[3],4107603335,14),M=g(M,D,P,T,I[8],1163531501,20),T=g(T,M,D,P,I[13],2850285829,5),P=g(P,T,M,D,I[2],4243563512,9),D=g(D,P,T,M,I[7],1735328473,14),M=g(M,D,P,T,I[12],2368359562,20),T=y(T,M,D,P,I[5],4294588738,4),P=y(P,T,M,D,I[8],2272392833,11),D=y(D,P,T,M,I[11],1839030562,16),M=y(M,D,P,T,I[14],4259657740,23),T=y(T,M,D,P,I[1],2763975236,4),P=y(P,T,M,D,I[4],1272893353,11),D=y(D,P,T,M,I[7],4139469664,16),M=y(M,D,P,T,I[10],3200236656,23),T=y(T,M,D,P,I[13],681279174,4),P=y(P,T,M,D,I[0],3936430074,11),D=y(D,P,T,M,I[3],3572445317,16),M=y(M,D,P,T,I[6],76029189,23),T=y(T,M,D,P,I[9],3654602809,4),P=y(P,T,M,D,I[12],3873151461,11),D=y(D,P,T,M,I[15],530742520,16),M=y(M,D,P,T,I[2],3299628645,23),T=_(T,M,D,P,I[0],4096336452,6),P=_(P,T,M,D,I[7],1126891415,10),D=_(D,P,T,M,I[14],2878612391,15),M=_(M,D,P,T,I[5],4237533241,21),T=_(T,M,D,P,I[12],1700485571,6),P=_(P,T,M,D,I[3],2399980690,10),D=_(D,P,T,M,I[10],4293915773,15),M=_(M,D,P,T,I[1],2240044497,21),T=_(T,M,D,P,I[8],1873313359,6),P=_(P,T,M,D,I[15],4264355552,10),D=_(D,P,T,M,I[6],2734768916,15),M=_(M,D,P,T,I[13],1309151649,21),T=_(T,M,D,P,I[4],4149444226,6),P=_(P,T,M,D,I[11],3174756917,10),D=_(D,P,T,M,I[2],718787259,15),M=_(M,D,P,T,I[9],3951481745,21),this._a=this._a+T|0,this._b=this._b+M|0,this._c=this._c+D|0,this._d=this._d+P|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var I=r.allocUnsafe(16);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I};function o(I,N){return I<<N|I>>>32-N}function d(I,N,T,M,D,P,G){return o(I+(N&T|~N&M)+D+P|0,G)+N|0}function g(I,N,T,M,D,P,G){return o(I+(N&M|T&~M)+D+P|0,G)+N|0}function y(I,N,T,M,D,P,G){return o(I+(N^T^M)+D+P|0,G)+N|0}function _(I,N,T,M,D,P,G){return o(I+(T^(N|~M))+D+P|0,G)+N|0}return jie=n,jie}function vue(){if(yke)return eoe;yke=!0;var e=Vo.Buffer,t=rs(),r=NHe(),i=new Array(16),n=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],o=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],y=[0,1518500249,1859775393,2400959708,2840853838],_=[1352829926,1548603684,1836072691,2053994217,0];function I(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}t(I,r),I.prototype._update=function(){for(var q=i,Y=0;Y<16;++Y)q[Y]=this._block.readInt32LE(Y*4);for(var ne=this._a|0,ce=this._b|0,le=this._c|0,pe=this._d|0,ae=this._e|0,W=this._a|0,se=this._b|0,O=this._c|0,s=this._d|0,l=this._e|0,A=0;A<80;A+=1){var m,E;A<16?(m=T(ne,ce,le,pe,ae,q[n[A]],y[0],d[A]),E=G(W,se,O,s,l,q[o[A]],_[0],g[A])):A<32?(m=M(ne,ce,le,pe,ae,q[n[A]],y[1],d[A]),E=P(W,se,O,s,l,q[o[A]],_[1],g[A])):A<48?(m=D(ne,ce,le,pe,ae,q[n[A]],y[2],d[A]),E=D(W,se,O,s,l,q[o[A]],_[2],g[A])):A<64?(m=P(ne,ce,le,pe,ae,q[n[A]],y[3],d[A]),E=M(W,se,O,s,l,q[o[A]],_[3],g[A])):(m=G(ne,ce,le,pe,ae,q[n[A]],y[4],d[A]),E=T(W,se,O,s,l,q[o[A]],_[4],g[A])),ne=ae,ae=pe,pe=N(le,10),le=ce,ce=m,W=l,l=s,s=N(O,10),O=se,se=E}var w=this._b+le+s|0;this._b=this._c+pe+l|0,this._c=this._d+ae+W|0,this._d=this._e+ne+se|0,this._e=this._a+ce+O|0,this._a=w},I.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var q=e.alloc?e.alloc(20):new e(20);return q.writeInt32LE(this._a,0),q.writeInt32LE(this._b,4),q.writeInt32LE(this._c,8),q.writeInt32LE(this._d,12),q.writeInt32LE(this._e,16),q};function N(q,Y){return q<<Y|q>>>32-Y}function T(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y^ne^ce)+pe+ae|0,W)+le|0}function M(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y&ne|~Y&ce)+pe+ae|0,W)+le|0}function D(q,Y,ne,ce,le,pe,ae,W){return N(q+((Y|~ne)^ce)+pe+ae|0,W)+le|0}function P(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y&ce|ne&~ce)+pe+ae|0,W)+le|0}function G(q,Y,ne,ce,le,pe,ae,W){return N(q+(Y^(ne|~ce))+pe+ae|0,W)+le|0}return eoe=I,eoe}function kO(){if(bke)return toe;bke=!0;var e=cs().Buffer;function t(r,i){(this||g0)._block=e.alloc(r),(this||g0)._finalSize=i,(this||g0)._blockSize=r,(this||g0)._len=0}return t.prototype.update=function(r,i){typeof r=="string"&&(i=i||"utf8",r=e.from(r,i));for(var n=(this||g0)._block,o=(this||g0)._blockSize,d=r.length,g=(this||g0)._len,y=0;y<d;){for(var _=g%o,I=Math.min(d-y,o-_),N=0;N<I;N++)n[_+N]=r[y+N];g+=I,y+=I,g%o===0&&this._update(n)}return(this||g0)._len+=d,this||g0},t.prototype.digest=function(r){var i=(this||g0)._len%(this||g0)._blockSize;(this||g0)._block[i]=128,(this||g0)._block.fill(0,i+1),i>=(this||g0)._finalSize&&(this._update((this||g0)._block),(this||g0)._block.fill(0));var n=(this||g0)._len*8;if(n<=4294967295)(this||g0)._block.writeUInt32BE(n,(this||g0)._blockSize-4);else{var o=(n&4294967295)>>>0,d=(n-o)/4294967296;(this||g0)._block.writeUInt32BE(d,(this||g0)._blockSize-8),(this||g0)._block.writeUInt32BE(o,(this||g0)._blockSize-4)}this._update((this||g0)._block);var g=this._hash();return r?g.toString(r):g},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},toe=t,toe}function M6t(){if(Eke)return roe;Eke=!0;var e=rs(),t=kO(),r=cs().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),(this||Yc)._w=n,t.call(this||Yc,64,56)}e(o,t),o.prototype.init=function(){return(this||Yc)._a=1732584193,(this||Yc)._b=4023233417,(this||Yc)._c=2562383102,(this||Yc)._d=271733878,(this||Yc)._e=3285377520,this||Yc};function d(_){return _<<5|_>>>27}function g(_){return _<<30|_>>>2}function y(_,I,N,T){return _===0?I&N|~I&T:_===2?I&N|I&T|N&T:I^N^T}return o.prototype._update=function(_){for(var I=(this||Yc)._w,N=(this||Yc)._a|0,T=(this||Yc)._b|0,M=(this||Yc)._c|0,D=(this||Yc)._d|0,P=(this||Yc)._e|0,G=0;G<16;++G)I[G]=_.readInt32BE(G*4);for(;G<80;++G)I[G]=I[G-3]^I[G-8]^I[G-14]^I[G-16];for(var q=0;q<80;++q){var Y=~~(q/20),ne=d(N)+y(Y,T,M,D)+P+I[q]+i[Y]|0;P=D,D=M,M=g(T),T=N,N=ne}(this||Yc)._a=N+(this||Yc)._a|0,(this||Yc)._b=T+(this||Yc)._b|0,(this||Yc)._c=M+(this||Yc)._c|0,(this||Yc)._d=D+(this||Yc)._d|0,(this||Yc)._e=P+(this||Yc)._e|0},o.prototype._hash=function(){var _=r.allocUnsafe(20);return _.writeInt32BE((this||Yc)._a|0,0),_.writeInt32BE((this||Yc)._b|0,4),_.writeInt32BE((this||Yc)._c|0,8),_.writeInt32BE((this||Yc)._d|0,12),_.writeInt32BE((this||Yc)._e|0,16),_},roe=o,roe}function D6t(){if(vke)return noe;vke=!0;var e=rs(),t=kO(),r=cs().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),(this||Wc)._w=n,t.call(this||Wc,64,56)}e(o,t),o.prototype.init=function(){return(this||Wc)._a=1732584193,(this||Wc)._b=4023233417,(this||Wc)._c=2562383102,(this||Wc)._d=271733878,(this||Wc)._e=3285377520,this||Wc};function d(I){return I<<1|I>>>31}function g(I){return I<<5|I>>>27}function y(I){return I<<30|I>>>2}function _(I,N,T,M){return I===0?N&T|~N&M:I===2?N&T|N&M|T&M:N^T^M}return o.prototype._update=function(I){for(var N=(this||Wc)._w,T=(this||Wc)._a|0,M=(this||Wc)._b|0,D=(this||Wc)._c|0,P=(this||Wc)._d|0,G=(this||Wc)._e|0,q=0;q<16;++q)N[q]=I.readInt32BE(q*4);for(;q<80;++q)N[q]=d(N[q-3]^N[q-8]^N[q-14]^N[q-16]);for(var Y=0;Y<80;++Y){var ne=~~(Y/20),ce=g(T)+_(ne,M,D,P)+G+N[Y]+i[ne]|0;G=P,P=D,D=y(M),M=T,T=ce}(this||Wc)._a=T+(this||Wc)._a|0,(this||Wc)._b=M+(this||Wc)._b|0,(this||Wc)._c=D+(this||Wc)._c|0,(this||Wc)._d=P+(this||Wc)._d|0,(this||Wc)._e=G+(this||Wc)._e|0},o.prototype._hash=function(){var I=r.allocUnsafe(20);return I.writeInt32BE((this||Wc)._a|0,0),I.writeInt32BE((this||Wc)._b|0,4),I.writeInt32BE((this||Wc)._c|0,8),I.writeInt32BE((this||Wc)._d|0,12),I.writeInt32BE((this||Wc)._e|0,16),I},noe=o,noe}function xHe(){if(Rke)return ioe;Rke=!0;var e=rs(),t=kO(),r=cs().Buffer,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=new Array(64);function o(){this.init(),(this||fa)._w=n,t.call(this||fa,64,56)}e(o,t),o.prototype.init=function(){return(this||fa)._a=1779033703,(this||fa)._b=3144134277,(this||fa)._c=1013904242,(this||fa)._d=2773480762,(this||fa)._e=1359893119,(this||fa)._f=2600822924,(this||fa)._g=528734635,(this||fa)._h=1541459225,this||fa};function d(T,M,D){return D^T&(M^D)}function g(T,M,D){return T&M|D&(T|M)}function y(T){return(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10)}function _(T){return(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7)}function I(T){return(T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3}function N(T){return(T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10}return o.prototype._update=function(T){for(var M=(this||fa)._w,D=(this||fa)._a|0,P=(this||fa)._b|0,G=(this||fa)._c|0,q=(this||fa)._d|0,Y=(this||fa)._e|0,ne=(this||fa)._f|0,ce=(this||fa)._g|0,le=(this||fa)._h|0,pe=0;pe<16;++pe)M[pe]=T.readInt32BE(pe*4);for(;pe<64;++pe)M[pe]=N(M[pe-2])+M[pe-7]+I(M[pe-15])+M[pe-16]|0;for(var ae=0;ae<64;++ae){var W=le+_(Y)+d(Y,ne,ce)+i[ae]+M[ae]|0,se=y(D)+g(D,P,G)|0;le=ce,ce=ne,ne=Y,Y=q+W|0,q=G,G=P,P=D,D=W+se|0}(this||fa)._a=D+(this||fa)._a|0,(this||fa)._b=P+(this||fa)._b|0,(this||fa)._c=G+(this||fa)._c|0,(this||fa)._d=q+(this||fa)._d|0,(this||fa)._e=Y+(this||fa)._e|0,(this||fa)._f=ne+(this||fa)._f|0,(this||fa)._g=ce+(this||fa)._g|0,(this||fa)._h=le+(this||fa)._h|0},o.prototype._hash=function(){var T=r.allocUnsafe(32);return T.writeInt32BE((this||fa)._a,0),T.writeInt32BE((this||fa)._b,4),T.writeInt32BE((this||fa)._c,8),T.writeInt32BE((this||fa)._d,12),T.writeInt32BE((this||fa)._e,16),T.writeInt32BE((this||fa)._f,20),T.writeInt32BE((this||fa)._g,24),T.writeInt32BE((this||fa)._h,28),T},ioe=o,ioe}function k6t(){if(Ske)return ooe;Ske=!0;var e=rs(),t=xHe(),r=kO(),i=cs().Buffer,n=new Array(64);function o(){this.init(),(this||Zf)._w=n,r.call(this||Zf,64,56)}return e(o,t),o.prototype.init=function(){return(this||Zf)._a=3238371032,(this||Zf)._b=914150663,(this||Zf)._c=812702999,(this||Zf)._d=4144912697,(this||Zf)._e=4290775857,(this||Zf)._f=1750603025,(this||Zf)._g=1694076839,(this||Zf)._h=3204075428,this||Zf},o.prototype._hash=function(){var d=i.allocUnsafe(28);return d.writeInt32BE((this||Zf)._a,0),d.writeInt32BE((this||Zf)._b,4),d.writeInt32BE((this||Zf)._c,8),d.writeInt32BE((this||Zf)._d,12),d.writeInt32BE((this||Zf)._e,16),d.writeInt32BE((this||Zf)._f,20),d.writeInt32BE((this||Zf)._g,24),d},ooe=o,ooe}function THe(){if(Ike)return aoe;Ike=!0;var e=rs(),t=kO(),r=cs().Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=new Array(160);function o(){this.init(),(this||ri)._w=n,t.call(this||ri,128,112)}e(o,t),o.prototype.init=function(){return(this||ri)._ah=1779033703,(this||ri)._bh=3144134277,(this||ri)._ch=1013904242,(this||ri)._dh=2773480762,(this||ri)._eh=1359893119,(this||ri)._fh=2600822924,(this||ri)._gh=528734635,(this||ri)._hh=1541459225,(this||ri)._al=4089235720,(this||ri)._bl=2227873595,(this||ri)._cl=4271175723,(this||ri)._dl=1595750129,(this||ri)._el=2917565137,(this||ri)._fl=725511199,(this||ri)._gl=4215389547,(this||ri)._hl=327033209,this||ri};function d(P,G,q){return q^P&(G^q)}function g(P,G,q){return P&G|q&(P|G)}function y(P,G){return(P>>>28|G<<4)^(G>>>2|P<<30)^(G>>>7|P<<25)}function _(P,G){return(P>>>14|G<<18)^(P>>>18|G<<14)^(G>>>9|P<<23)}function I(P,G){return(P>>>1|G<<31)^(P>>>8|G<<24)^P>>>7}function N(P,G){return(P>>>1|G<<31)^(P>>>8|G<<24)^(P>>>7|G<<25)}function T(P,G){return(P>>>19|G<<13)^(G>>>29|P<<3)^P>>>6}function M(P,G){return(P>>>19|G<<13)^(G>>>29|P<<3)^(P>>>6|G<<26)}function D(P,G){return P>>>0<G>>>0?1:0}return o.prototype._update=function(P){for(var G=(this||ri)._w,q=(this||ri)._ah|0,Y=(this||ri)._bh|0,ne=(this||ri)._ch|0,ce=(this||ri)._dh|0,le=(this||ri)._eh|0,pe=(this||ri)._fh|0,ae=(this||ri)._gh|0,W=(this||ri)._hh|0,se=(this||ri)._al|0,O=(this||ri)._bl|0,s=(this||ri)._cl|0,l=(this||ri)._dl|0,A=(this||ri)._el|0,m=(this||ri)._fl|0,E=(this||ri)._gl|0,w=(this||ri)._hl|0,x=0;x<32;x+=2)G[x]=P.readInt32BE(x*4),G[x+1]=P.readInt32BE(x*4+4);for(;x<160;x+=2){var R=G[x-30],u=G[x-30+1],C=I(R,u),U=N(u,R);R=G[x-4],u=G[x-4+1];var F=T(R,u),X=M(u,R),Ae=G[x-14],he=G[x-14+1],$e=G[x-32],Ge=G[x-32+1],Re=U+he|0,Se=C+Ae+D(Re,U)|0;Re=Re+X|0,Se=Se+F+D(Re,X)|0,Re=Re+Ge|0,Se=Se+$e+D(Re,Ge)|0,G[x]=Se,G[x+1]=Re}for(var ct=0;ct<160;ct+=2){Se=G[ct],Re=G[ct+1];var ze=g(q,Y,ne),te=g(se,O,s),Ue=y(q,se),oe=y(se,q),ge=_(le,A),Le=_(A,le),V=i[ct],Qe=i[ct+1],_t=d(le,pe,ae),rt=d(A,m,E),At=w+Le|0,Er=W+ge+D(At,w)|0;At=At+rt|0,Er=Er+_t+D(At,rt)|0,At=At+Qe|0,Er=Er+V+D(At,Qe)|0,At=At+Re|0,Er=Er+Se+D(At,Re)|0;var mt=oe+te|0,Ht=Ue+ze+D(mt,oe)|0;W=ae,w=E,ae=pe,E=m,pe=le,m=A,A=l+At|0,le=ce+Er+D(A,l)|0,ce=ne,l=s,ne=Y,s=O,Y=q,O=se,se=At+mt|0,q=Er+Ht+D(se,At)|0}(this||ri)._al=(this||ri)._al+se|0,(this||ri)._bl=(this||ri)._bl+O|0,(this||ri)._cl=(this||ri)._cl+s|0,(this||ri)._dl=(this||ri)._dl+l|0,(this||ri)._el=(this||ri)._el+A|0,(this||ri)._fl=(this||ri)._fl+m|0,(this||ri)._gl=(this||ri)._gl+E|0,(this||ri)._hl=(this||ri)._hl+w|0,(this||ri)._ah=(this||ri)._ah+q+D((this||ri)._al,se)|0,(this||ri)._bh=(this||ri)._bh+Y+D((this||ri)._bl,O)|0,(this||ri)._ch=(this||ri)._ch+ne+D((this||ri)._cl,s)|0,(this||ri)._dh=(this||ri)._dh+ce+D((this||ri)._dl,l)|0,(this||ri)._eh=(this||ri)._eh+le+D((this||ri)._el,A)|0,(this||ri)._fh=(this||ri)._fh+pe+D((this||ri)._fl,m)|0,(this||ri)._gh=(this||ri)._gh+ae+D((this||ri)._gl,E)|0,(this||ri)._hh=(this||ri)._hh+W+D((this||ri)._hl,w)|0},o.prototype._hash=function(){var P=r.allocUnsafe(64);function G(q,Y,ne){P.writeInt32BE(q,ne),P.writeInt32BE(Y,ne+4)}return G((this||ri)._ah,(this||ri)._al,0),G((this||ri)._bh,(this||ri)._bl,8),G((this||ri)._ch,(this||ri)._cl,16),G((this||ri)._dh,(this||ri)._dl,24),G((this||ri)._eh,(this||ri)._el,32),G((this||ri)._fh,(this||ri)._fl,40),G((this||ri)._gh,(this||ri)._gl,48),G((this||ri)._hh,(this||ri)._hl,56),P},aoe=o,aoe}function P6t(){if(Cke)return soe;Cke=!0;var e=rs(),t=THe(),r=kO(),i=cs().Buffer,n=new Array(160);function o(){this.init(),(this||vc)._w=n,r.call(this||vc,128,112)}return e(o,t),o.prototype.init=function(){return(this||vc)._ah=3418070365,(this||vc)._bh=1654270250,(this||vc)._ch=2438529370,(this||vc)._dh=355462360,(this||vc)._eh=1731405415,(this||vc)._fh=2394180231,(this||vc)._gh=3675008525,(this||vc)._hh=1203062813,(this||vc)._al=3238371032,(this||vc)._bl=914150663,(this||vc)._cl=812702999,(this||vc)._dl=4144912697,(this||vc)._el=4290775857,(this||vc)._fl=1750603025,(this||vc)._gl=1694076839,(this||vc)._hl=3204075428,this||vc},o.prototype._hash=function(){var d=i.allocUnsafe(48);function g(y,_,I){d.writeInt32BE(y,I),d.writeInt32BE(_,I+4)}return g((this||vc)._ah,(this||vc)._al,0),g((this||vc)._bh,(this||vc)._bl,8),g((this||vc)._ch,(this||vc)._cl,16),g((this||vc)._dh,(this||vc)._dl,24),g((this||vc)._eh,(this||vc)._el,32),g((this||vc)._fh,(this||vc)._fl,40),d},soe=o,soe}function Rue(){if(wke)return coe.exports;wke=!0;var e=coe.exports=function(r){r=r.toLowerCase();var i=e[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};return e.sha=M6t(),e.sha1=D6t(),e.sha224=k6t(),e.sha256=xHe(),e.sha384=P6t(),e.sha512=THe(),coe.exports}function xg(e,t,r){r||(r=Error);class i extends r{constructor(o,d,g){super((function(y,_,I){return typeof t=="string"?t:t(y,_,I)})(o,d,g))}}i.prototype.name=r.name,i.prototype.code=e,BHe[e]=i}function Oke(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}function uoe(e){try{if(!Uce.localStorage)return!1}catch{return!1}var t=Uce.localStorage[e];return t!=null&&String(t).toLowerCase()==="true"}function Nke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function U6t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F6t(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function xke(e,t){Qce(e,t),hq(e)}function hq(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Qce(e,t){e.emit("error",t)}function q6t(){}function h6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E6(e,t){return{value:e,done:t}}function z6t(e){var t=e[A6];if(t!==null){var r=e[h4].read();r!==null&&(e[l4]=null,e[A6]=null,e[i4]=null,t(E6(r,!1)))}}function K6t(e){LHe.nextTick(z6t,e)}function UHe(){if(Bke)return foe;Bke=!0;var e,t=Mo;foe=pe,pe.ReadableState=le,xc.EventEmitter;var r=function(F,X){return F.listeners(X).length},i=Yq,n=Vo.Buffer,o=X6t.Uint8Array||function(){},d,g=yn;d=g&&g.debuglog?g.debuglog("stream"):function(){};var y,_,I,N=H6t,T=kHe,M=PHe.getHighWaterMark,D=ym.codes,P=D.ERR_INVALID_ARG_TYPE,G=D.ERR_STREAM_PUSH_AFTER_EOF,q=D.ERR_METHOD_NOT_IMPLEMENTED,Y=D.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ca(pe,i);var ne=T.errorOrDestroy,ce=["error","close","destroy","pause","resume"];function le(F,X,Ae){e=e||SD(),F=F||{},typeof Ae!="boolean"&&(Ae=X instanceof e),this.objectMode=!!F.objectMode,Ae&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=M(this,F,"readableHighWaterMark",Ae),this.buffer=new N,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(y||(y=yh.StringDecoder),this.decoder=new y(F.encoding),this.encoding=F.encoding)}function pe(F){if(e=e||SD(),!(this instanceof pe))return new pe(F);var X=this instanceof e;this._readableState=new le(F,this,X),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),i.call(this)}function ae(F,X,Ae,he,$e){d("readableAddChunk",X);var Ge,Re=F._readableState;if(X===null)Re.reading=!1,(function(Se,ct){if(d("onEofChunk"),!ct.ended){if(ct.decoder){var ze=ct.decoder.end();ze&&ze.length&&(ct.buffer.push(ze),ct.length+=ct.objectMode?1:ze.length)}ct.ended=!0,ct.sync?O(Se):(ct.needReadable=!1,ct.emittedReadable||(ct.emittedReadable=!0,s(Se)))}})(F,Re);else if($e||(Ge=(function(Se,ct){var ze;te=ct,n.isBuffer(te)||te instanceof o||typeof ct=="string"||ct===void 0||Se.objectMode||(ze=new P("chunk",["string","Buffer","Uint8Array"],ct));var te;return ze})(Re,X)),Ge)ne(F,Ge);else if(Re.objectMode||X&&X.length>0)if(typeof X=="string"||Re.objectMode||Object.getPrototypeOf(X)===n.prototype||(X=(function(Se){return n.from(Se)})(X)),he)Re.endEmitted?ne(F,new Y):W(F,Re,X,!0);else if(Re.ended)ne(F,new G);else{if(Re.destroyed)return!1;Re.reading=!1,Re.decoder&&!Ae?(X=Re.decoder.write(X),Re.objectMode||X.length!==0?W(F,Re,X,!1):l(F,Re)):W(F,Re,X,!1)}else he||(Re.reading=!1,l(F,Re));return!Re.ended&&(Re.length<Re.highWaterMark||Re.length===0)}function W(F,X,Ae,he){X.flowing&&X.length===0&&!X.sync?(X.awaitDrain=0,F.emit("data",Ae)):(X.length+=X.objectMode?1:Ae.length,he?X.buffer.unshift(Ae):X.buffer.push(Ae),X.needReadable&&O(F)),l(F,X)}Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),pe.prototype.destroy=T.destroy,pe.prototype._undestroy=T.undestroy,pe.prototype._destroy=function(F,X){X(F)},pe.prototype.push=function(F,X){var Ae,he=this._readableState;return he.objectMode?Ae=!0:typeof F=="string"&&((X=X||he.defaultEncoding)!==he.encoding&&(F=n.from(F,X),X=""),Ae=!0),ae(this,F,X,!1,Ae)},pe.prototype.unshift=function(F){return ae(this,F,null,!0,!1)},pe.prototype.isPaused=function(){return this._readableState.flowing===!1},pe.prototype.setEncoding=function(F){y||(y=yh.StringDecoder);var X=new y(F);this._readableState.decoder=X,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ae=this._readableState.buffer.head,he="";Ae!==null;)he+=X.write(Ae.data),Ae=Ae.next;return this._readableState.buffer.clear(),he!==""&&this._readableState.buffer.push(he),this._readableState.length=he.length,this};function se(F,X){return F<=0||X.length===0&&X.ended?0:X.objectMode?1:F!=F?X.flowing&&X.length?X.buffer.head.data.length:X.length:(F>X.highWaterMark&&(X.highWaterMark=(function(Ae){return Ae>=1073741824?Ae=1073741824:(Ae--,Ae|=Ae>>>1,Ae|=Ae>>>2,Ae|=Ae>>>4,Ae|=Ae>>>8,Ae|=Ae>>>16,Ae++),Ae})(F)),F<=X.length?F:X.ended?X.length:(X.needReadable=!0,0))}function O(F){var X=F._readableState;d("emitReadable",X.needReadable,X.emittedReadable),X.needReadable=!1,X.emittedReadable||(d("emitReadable",X.flowing),X.emittedReadable=!0,t.nextTick(s,F))}function s(F){var X=F._readableState;d("emitReadable_",X.destroyed,X.length,X.ended),X.destroyed||!X.length&&!X.ended||(F.emit("readable"),X.emittedReadable=!1),X.needReadable=!X.flowing&&!X.ended&&X.length<=X.highWaterMark,x(F)}function l(F,X){X.readingMore||(X.readingMore=!0,t.nextTick(A,F,X))}function A(F,X){for(;!X.reading&&!X.ended&&(X.length<X.highWaterMark||X.flowing&&X.length===0);){var Ae=X.length;if(d("maybeReadMore read 0"),F.read(0),Ae===X.length)break}X.readingMore=!1}function m(F){var X=F._readableState;X.readableListening=F.listenerCount("readable")>0,X.resumeScheduled&&!X.paused?X.flowing=!0:F.listenerCount("data")>0&&F.resume()}function E(F){d("readable nexttick read 0"),F.read(0)}function w(F,X){d("resume",X.reading),X.reading||F.read(0),X.resumeScheduled=!1,F.emit("resume"),x(F),X.flowing&&!X.reading&&F.read(0)}function x(F){var X=F._readableState;for(d("flow",X.flowing);X.flowing&&F.read()!==null;);}function R(F,X){return X.length===0?null:(X.objectMode?Ae=X.buffer.shift():!F||F>=X.length?(Ae=X.decoder?X.buffer.join(""):X.buffer.length===1?X.buffer.first():X.buffer.concat(X.length),X.buffer.clear()):Ae=X.buffer.consume(F,X.decoder),Ae);var Ae}function u(F){var X=F._readableState;d("endReadable",X.endEmitted),X.endEmitted||(X.ended=!0,t.nextTick(C,X,F))}function C(F,X){if(d("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&F.length===0&&(F.endEmitted=!0,X.readable=!1,X.emit("end"),F.autoDestroy)){var Ae=X._writableState;(!Ae||Ae.autoDestroy&&Ae.finished)&&X.destroy()}}function U(F,X){for(var Ae=0,he=F.length;Ae<he;Ae++)if(F[Ae]===X)return Ae;return-1}return pe.prototype.read=function(F){d("read",F),F=parseInt(F,10);var X=this._readableState,Ae=F;if(F!==0&&(X.emittedReadable=!1),F===0&&X.needReadable&&((X.highWaterMark!==0?X.length>=X.highWaterMark:X.length>0)||X.ended))return d("read: emitReadable",X.length,X.ended),X.length===0&&X.ended?u(this):O(this),null;if((F=se(F,X))===0&&X.ended)return X.length===0&&u(this),null;var he,$e=X.needReadable;return d("need readable",$e),(X.length===0||X.length-F<X.highWaterMark)&&d("length less than watermark",$e=!0),X.ended||X.reading?d("reading or ended",$e=!1):$e&&(d("do read"),X.reading=!0,X.sync=!0,X.length===0&&(X.needReadable=!0),this._read(X.highWaterMark),X.sync=!1,X.reading||(F=se(Ae,X))),(he=F>0?R(F,X):null)===null?(X.needReadable=X.length<=X.highWaterMark,F=0):(X.length-=F,X.awaitDrain=0),X.length===0&&(X.ended||(X.needReadable=!0),Ae!==F&&X.ended&&u(this)),he!==null&&this.emit("data",he),he},pe.prototype._read=function(F){ne(this,new q("_read()"))},pe.prototype.pipe=function(F,X){var Ae=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=F;break;case 1:he.pipes=[he.pipes,F];break;default:he.pipes.push(F)}he.pipesCount+=1,d("pipe count=%d opts=%j",he.pipesCount,X);var $e=(!X||X.end!==!1)&&F!==t.stdout&&F!==t.stderr?Re:ge;function Ge(Le,V){d("onunpipe"),Le===Ae&&V&&V.hasUnpiped===!1&&(V.hasUnpiped=!0,d("cleanup"),F.removeListener("close",Ue),F.removeListener("finish",oe),F.removeListener("drain",Se),F.removeListener("error",te),F.removeListener("unpipe",Ge),Ae.removeListener("end",Re),Ae.removeListener("end",ge),Ae.removeListener("data",ze),ct=!0,!he.awaitDrain||F._writableState&&!F._writableState.needDrain||Se())}function Re(){d("onend"),F.end()}he.endEmitted?t.nextTick($e):Ae.once("end",$e),F.on("unpipe",Ge);var Se=(function(Le){return function(){var V=Le._readableState;d("pipeOnDrain",V.awaitDrain),V.awaitDrain&&V.awaitDrain--,V.awaitDrain===0&&r(Le,"data")&&(V.flowing=!0,x(Le))}})(Ae);F.on("drain",Se);var ct=!1;function ze(Le){d("ondata");var V=F.write(Le);d("dest.write",V),V===!1&&((he.pipesCount===1&&he.pipes===F||he.pipesCount>1&&U(he.pipes,F)!==-1)&&!ct&&(d("false write response, pause",he.awaitDrain),he.awaitDrain++),Ae.pause())}function te(Le){d("onerror",Le),ge(),F.removeListener("error",te),r(F,"error")===0&&ne(F,Le)}function Ue(){F.removeListener("finish",oe),ge()}function oe(){d("onfinish"),F.removeListener("close",Ue),ge()}function ge(){d("unpipe"),Ae.unpipe(F)}return Ae.on("data",ze),(function(Le,V,Qe){if(typeof Le.prependListener=="function")return Le.prependListener(V,Qe);Le._events&&Le._events[V]?Array.isArray(Le._events[V])?Le._events[V].unshift(Qe):Le._events[V]=[Qe,Le._events[V]]:Le.on(V,Qe)})(F,"error",te),F.once("close",Ue),F.once("finish",oe),F.emit("pipe",Ae),he.flowing||(d("pipe resume"),Ae.resume()),F},pe.prototype.unpipe=function(F){var X=this._readableState,Ae={hasUnpiped:!1};if(X.pipesCount===0)return this;if(X.pipesCount===1)return F&&F!==X.pipes||(F||(F=X.pipes),X.pipes=null,X.pipesCount=0,X.flowing=!1,F&&F.emit("unpipe",this,Ae)),this;if(!F){var he=X.pipes,$e=X.pipesCount;X.pipes=null,X.pipesCount=0,X.flowing=!1;for(var Ge=0;Ge<$e;Ge++)he[Ge].emit("unpipe",this,{hasUnpiped:!1});return this}var Re=U(X.pipes,F);return Re===-1||(X.pipes.splice(Re,1),X.pipesCount-=1,X.pipesCount===1&&(X.pipes=X.pipes[0]),F.emit("unpipe",this,Ae)),this},pe.prototype.on=function(F,X){var Ae=i.prototype.on.call(this,F,X),he=this._readableState;return F==="data"?(he.readableListening=this.listenerCount("readable")>0,he.flowing!==!1&&this.resume()):F==="readable"&&(he.endEmitted||he.readableListening||(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,d("on readable",he.length,he.reading),he.length?O(this):he.reading||t.nextTick(E,this))),Ae},pe.prototype.addListener=pe.prototype.on,pe.prototype.removeListener=function(F,X){var Ae=i.prototype.removeListener.call(this,F,X);return F==="readable"&&t.nextTick(m,this),Ae},pe.prototype.removeAllListeners=function(F){var X=i.prototype.removeAllListeners.apply(this,arguments);return F!=="readable"&&F!==void 0||t.nextTick(m,this),X},pe.prototype.resume=function(){var F=this._readableState;return F.flowing||(d("resume"),F.flowing=!F.readableListening,(function(X,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,t.nextTick(w,X,Ae))})(this,F)),F.paused=!1,this},pe.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},pe.prototype.wrap=function(F){var X=this,Ae=this._readableState,he=!1;for(var $e in F.on("end",(function(){if(d("wrapped end"),Ae.decoder&&!Ae.ended){var Re=Ae.decoder.end();Re&&Re.length&&X.push(Re)}X.push(null)})),F.on("data",(function(Re){d("wrapped data"),Ae.decoder&&(Re=Ae.decoder.write(Re)),Ae.objectMode&&Re==null||(Ae.objectMode||Re&&Re.length)&&(X.push(Re)||(he=!0,F.pause()))})),F)this[$e]===void 0&&typeof F[$e]=="function"&&(this[$e]=(function(Re){return function(){return F[Re].apply(F,arguments)}})($e));for(var Ge=0;Ge<ce.length;Ge++)F.on(ce[Ge],this.emit.bind(this,ce[Ge]));return this._read=function(Re){d("wrapped _read",Re),he&&(he=!1,F.resume())},this},typeof Symbol=="function"&&(pe.prototype[Symbol.asyncIterator]=function(){return _===void 0&&(_=W6t),_(this)}),Object.defineProperty(pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(pe.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(pe.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(F){this._readableState&&(this._readableState.flowing=F)}}),pe._fromList=R,Object.defineProperty(pe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(pe.from=function(F,X){return I===void 0&&(I=MHe),I(pe,F,X)}),foe}function j6t(){if(Mke)return loe;Mke=!0;var e,t=Mo;function r(A){var m=this;this.next=null,this.entry=null,this.finish=function(){(function(E,w,x){var R=E.entry;for(E.entry=null;R;){var u=R.callback;w.pendingcb--,u(x),R=R.next}w.corkedRequestsFree.next=E})(m,A)}}loe=pe,pe.WritableState=le;var i={deprecate:DHe},n=Yq,o=Vo.Buffer,d=Z6t.Uint8Array||function(){},g,y=kHe,_=PHe.getHighWaterMark,I=ym.codes,N=I.ERR_INVALID_ARG_TYPE,T=I.ERR_METHOD_NOT_IMPLEMENTED,M=I.ERR_MULTIPLE_CALLBACK,D=I.ERR_STREAM_CANNOT_PIPE,P=I.ERR_STREAM_DESTROYED,G=I.ERR_STREAM_NULL_VALUES,q=I.ERR_STREAM_WRITE_AFTER_END,Y=I.ERR_UNKNOWN_ENCODING,ne=y.errorOrDestroy;function ce(){}function le(A,m,E){e=e||SD(),A=A||{},typeof E!="boolean"&&(E=m instanceof e),this.objectMode=!!A.objectMode,E&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=_(this,A,"writableHighWaterMark",E),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var w=A.decodeStrings===!1;this.decodeStrings=!w,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(x){(function(R,u){var C=R._writableState,U=C.sync,F=C.writecb;if(typeof F!="function")throw new M;if((function(Ae){Ae.writing=!1,Ae.writecb=null,Ae.length-=Ae.writelen,Ae.writelen=0})(C),u)(function(Ae,he,$e,Ge,Re){--he.pendingcb,$e?(t.nextTick(Re,Ge),t.nextTick(l,Ae,he),Ae._writableState.errorEmitted=!0,ne(Ae,Ge)):(Re(Ge),Ae._writableState.errorEmitted=!0,ne(Ae,Ge),l(Ae,he))})(R,C,U,u,F);else{var X=O(C)||R.destroyed;X||C.corked||C.bufferProcessing||!C.bufferedRequest||se(R,C),U?t.nextTick(W,R,C,X,F):W(R,C,X,F)}})(m,x)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function pe(A){var m=this instanceof(e=e||SD());if(!m&&!g.call(pe,this))return new pe(A);this._writableState=new le(A,this,m),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),n.call(this)}function ae(A,m,E,w,x,R,u){m.writelen=w,m.writecb=u,m.writing=!0,m.sync=!0,m.destroyed?m.onwrite(new P("write")):E?A._writev(x,m.onwrite):A._write(x,R,m.onwrite),m.sync=!1}function W(A,m,E,w){E||(function(x,R){R.length===0&&R.needDrain&&(R.needDrain=!1,x.emit("drain"))})(A,m),m.pendingcb--,w(),l(A,m)}function se(A,m){m.bufferProcessing=!0;var E=m.bufferedRequest;if(A._writev&&E&&E.next){var w=m.bufferedRequestCount,x=new Array(w),R=m.corkedRequestsFree;R.entry=E;for(var u=0,C=!0;E;)x[u]=E,E.isBuf||(C=!1),E=E.next,u+=1;x.allBuffers=C,ae(A,m,!0,m.length,x,"",R.finish),m.pendingcb++,m.lastBufferedRequest=null,R.next?(m.corkedRequestsFree=R.next,R.next=null):m.corkedRequestsFree=new r(m),m.bufferedRequestCount=0}else{for(;E;){var U=E.chunk,F=E.encoding,X=E.callback;if(ae(A,m,!1,m.objectMode?1:U.length,U,F,X),E=E.next,m.bufferedRequestCount--,m.writing)break}E===null&&(m.lastBufferedRequest=null)}m.bufferedRequest=E,m.bufferProcessing=!1}function O(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function s(A,m){A._final((function(E){m.pendingcb--,E&&ne(A,E),m.prefinished=!0,A.emit("prefinish"),l(A,m)}))}function l(A,m){var E=O(m);if(E&&((function(x,R){R.prefinished||R.finalCalled||(typeof x._final!="function"||R.destroyed?(R.prefinished=!0,x.emit("prefinish")):(R.pendingcb++,R.finalCalled=!0,t.nextTick(s,x,R)))})(A,m),m.pendingcb===0&&(m.finished=!0,A.emit("finish"),m.autoDestroy))){var w=A._readableState;(!w||w.autoDestroy&&w.endEmitted)&&A.destroy()}return E}return ca(pe,n),le.prototype.getBuffer=function(){for(var A=this.bufferedRequest,m=[];A;)m.push(A),A=A.next;return m},(function(){try{Object.defineProperty(le.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(pe,Symbol.hasInstance,{value:function(A){return!!g.call(this,A)||this===pe&&A&&A._writableState instanceof le}})):g=function(A){return A instanceof this},pe.prototype.pipe=function(){ne(this,new D)},pe.prototype.write=function(A,m,E){var w,x=this._writableState,R=!1,u=!x.objectMode&&(w=A,o.isBuffer(w)||w instanceof d);return u&&!o.isBuffer(A)&&(A=(function(C){return o.from(C)})(A)),typeof m=="function"&&(E=m,m=null),u?m="buffer":m||(m=x.defaultEncoding),typeof E!="function"&&(E=ce),x.ending?(function(C,U){var F=new q;ne(C,F),t.nextTick(U,F)})(this,E):(u||(function(C,U,F,X){var Ae;return F===null?Ae=new G:typeof F=="string"||U.objectMode||(Ae=new N("chunk",["string","Buffer"],F)),!Ae||(ne(C,Ae),t.nextTick(X,Ae),!1)})(this,x,A,E))&&(x.pendingcb++,R=(function(C,U,F,X,Ae,he){if(!F){var $e=(function(ct,ze,te){return ct.objectMode||ct.decodeStrings===!1||typeof ze!="string"||(ze=o.from(ze,te)),ze})(U,X,Ae);X!==$e&&(F=!0,Ae="buffer",X=$e)}var Ge=U.objectMode?1:X.length;U.length+=Ge;var Re=U.length<U.highWaterMark;if(Re||(U.needDrain=!0),U.writing||U.corked){var Se=U.lastBufferedRequest;U.lastBufferedRequest={chunk:X,encoding:Ae,isBuf:F,callback:he,next:null},Se?Se.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else ae(C,U,!1,Ge,X,Ae,he);return Re})(this,x,u,A,m,E)),R},pe.prototype.cork=function(){this._writableState.corked++},pe.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.bufferProcessing||!A.bufferedRequest||se(this,A))},pe.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new Y(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(pe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),pe.prototype._write=function(A,m,E){E(new T("_write()"))},pe.prototype._writev=null,pe.prototype.end=function(A,m,E){var w=this._writableState;return typeof A=="function"?(E=A,A=null,m=null):typeof m=="function"&&(E=m,m=null),A!=null&&this.write(A,m),w.corked&&(w.corked=1,this.uncork()),w.ending||(function(x,R,u){R.ending=!0,l(x,R),u&&(R.finished?t.nextTick(u):x.once("finish",u)),R.ended=!0,x.writable=!1})(this,w,E),this},Object.defineProperty(pe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),pe.prototype.destroy=y.destroy,pe.prototype._undestroy=y.undestroy,pe.prototype._destroy=function(A,m){m(A)},loe}function SD(){if(Dke)return hoe;Dke=!0;var e=Mo,t=Object.keys||function(I){var N=[];for(var T in I)N.push(T);return N};hoe=g;var r=UHe(),i=j6t();ca(g,r);for(var n=t(i.prototype),o=0;o<n.length;o++){var d=n[o];g.prototype[d]||(g.prototype[d]=i.prototype[d])}function g(I){if(!(this instanceof g))return new g(I);r.call(this,I),i.call(this,I),this.allowHalfOpen=!0,I&&(I.readable===!1&&(this.readable=!1),I.writable===!1&&(this.writable=!1),I.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",y)))}function y(){this._writableState.ended||e.nextTick(_,this)}function _(I){I.end()}return Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(I){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=I,this._writableState.destroyed=I)}}),hoe}function tIt(){}function Pke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function rIt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nIt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Lke(e,t){qce(e,t),Aq(e)}function Aq(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function qce(e,t){e.emit("error",t)}function p6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v6(e,t){return{value:e,done:t}}function cIt(e){var t=e[g6];if(t!==null){var r=e[p4].read();r!==null&&(e[A4]=null,e[g6]=null,e[o4]=null,t(v6(r,!1)))}}function uIt(e){HHe.nextTick(cIt,e)}function AIt(){if(Uke)return poe;Uke=!0;var e,t=Mo;poe=pe,pe.ReadableState=le,xc.EventEmitter;var r=function(F,X){return F.listeners(X).length},i=Yq,n=Vo.Buffer,o=hIt.Uint8Array||function(){},d,g=yn;d=g&&g.debuglog?g.debuglog("stream"):function(){};var y,_,I,N=oIt,T=FHe,M=QHe.getHighWaterMark,D=ym.codes,P=D.ERR_INVALID_ARG_TYPE,G=D.ERR_STREAM_PUSH_AFTER_EOF,q=D.ERR_METHOD_NOT_IMPLEMENTED,Y=D.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ca(pe,i);var ne=T.errorOrDestroy,ce=["error","close","destroy","pause","resume"];function le(F,X,Ae){e=e||kq(),F=F||{},typeof Ae!="boolean"&&(Ae=X instanceof e),this.objectMode=!!F.objectMode,Ae&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=M(this,F,"readableHighWaterMark",Ae),this.buffer=new N,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(y||(y=yh.StringDecoder),this.decoder=new y(F.encoding),this.encoding=F.encoding)}function pe(F){if(e=e||kq(),!(this instanceof pe))return new pe(F);var X=this instanceof e;this._readableState=new le(F,this,X),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),i.call(this)}function ae(F,X,Ae,he,$e){d("readableAddChunk",X);var Ge,Re=F._readableState;if(X===null)Re.reading=!1,(function(Se,ct){if(d("onEofChunk"),!ct.ended){if(ct.decoder){var ze=ct.decoder.end();ze&&ze.length&&(ct.buffer.push(ze),ct.length+=ct.objectMode?1:ze.length)}ct.ended=!0,ct.sync?O(Se):(ct.needReadable=!1,ct.emittedReadable||(ct.emittedReadable=!0,s(Se)))}})(F,Re);else if($e||(Ge=(function(Se,ct){var ze;te=ct,n.isBuffer(te)||te instanceof o||typeof ct=="string"||ct===void 0||Se.objectMode||(ze=new P("chunk",["string","Buffer","Uint8Array"],ct));var te;return ze})(Re,X)),Ge)ne(F,Ge);else if(Re.objectMode||X&&X.length>0)if(typeof X=="string"||Re.objectMode||Object.getPrototypeOf(X)===n.prototype||(X=(function(Se){return n.from(Se)})(X)),he)Re.endEmitted?ne(F,new Y):W(F,Re,X,!0);else if(Re.ended)ne(F,new G);else{if(Re.destroyed)return!1;Re.reading=!1,Re.decoder&&!Ae?(X=Re.decoder.write(X),Re.objectMode||X.length!==0?W(F,Re,X,!1):l(F,Re)):W(F,Re,X,!1)}else he||(Re.reading=!1,l(F,Re));return!Re.ended&&(Re.length<Re.highWaterMark||Re.length===0)}function W(F,X,Ae,he){X.flowing&&X.length===0&&!X.sync?(X.awaitDrain=0,F.emit("data",Ae)):(X.length+=X.objectMode?1:Ae.length,he?X.buffer.unshift(Ae):X.buffer.push(Ae),X.needReadable&&O(F)),l(F,X)}Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),pe.prototype.destroy=T.destroy,pe.prototype._undestroy=T.undestroy,pe.prototype._destroy=function(F,X){X(F)},pe.prototype.push=function(F,X){var Ae,he=this._readableState;return he.objectMode?Ae=!0:typeof F=="string"&&((X=X||he.defaultEncoding)!==he.encoding&&(F=n.from(F,X),X=""),Ae=!0),ae(this,F,X,!1,Ae)},pe.prototype.unshift=function(F){return ae(this,F,null,!0,!1)},pe.prototype.isPaused=function(){return this._readableState.flowing===!1},pe.prototype.setEncoding=function(F){y||(y=yh.StringDecoder);var X=new y(F);this._readableState.decoder=X,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ae=this._readableState.buffer.head,he="";Ae!==null;)he+=X.write(Ae.data),Ae=Ae.next;return this._readableState.buffer.clear(),he!==""&&this._readableState.buffer.push(he),this._readableState.length=he.length,this};function se(F,X){return F<=0||X.length===0&&X.ended?0:X.objectMode?1:F!=F?X.flowing&&X.length?X.buffer.head.data.length:X.length:(F>X.highWaterMark&&(X.highWaterMark=(function(Ae){return Ae>=1073741824?Ae=1073741824:(Ae--,Ae|=Ae>>>1,Ae|=Ae>>>2,Ae|=Ae>>>4,Ae|=Ae>>>8,Ae|=Ae>>>16,Ae++),Ae})(F)),F<=X.length?F:X.ended?X.length:(X.needReadable=!0,0))}function O(F){var X=F._readableState;d("emitReadable",X.needReadable,X.emittedReadable),X.needReadable=!1,X.emittedReadable||(d("emitReadable",X.flowing),X.emittedReadable=!0,t.nextTick(s,F))}function s(F){var X=F._readableState;d("emitReadable_",X.destroyed,X.length,X.ended),X.destroyed||!X.length&&!X.ended||(F.emit("readable"),X.emittedReadable=!1),X.needReadable=!X.flowing&&!X.ended&&X.length<=X.highWaterMark,x(F)}function l(F,X){X.readingMore||(X.readingMore=!0,t.nextTick(A,F,X))}function A(F,X){for(;!X.reading&&!X.ended&&(X.length<X.highWaterMark||X.flowing&&X.length===0);){var Ae=X.length;if(d("maybeReadMore read 0"),F.read(0),Ae===X.length)break}X.readingMore=!1}function m(F){var X=F._readableState;X.readableListening=F.listenerCount("readable")>0,X.resumeScheduled&&!X.paused?X.flowing=!0:F.listenerCount("data")>0&&F.resume()}function E(F){d("readable nexttick read 0"),F.read(0)}function w(F,X){d("resume",X.reading),X.reading||F.read(0),X.resumeScheduled=!1,F.emit("resume"),x(F),X.flowing&&!X.reading&&F.read(0)}function x(F){var X=F._readableState;for(d("flow",X.flowing);X.flowing&&F.read()!==null;);}function R(F,X){return X.length===0?null:(X.objectMode?Ae=X.buffer.shift():!F||F>=X.length?(Ae=X.decoder?X.buffer.join(""):X.buffer.length===1?X.buffer.first():X.buffer.concat(X.length),X.buffer.clear()):Ae=X.buffer.consume(F,X.decoder),Ae);var Ae}function u(F){var X=F._readableState;d("endReadable",X.endEmitted),X.endEmitted||(X.ended=!0,t.nextTick(C,X,F))}function C(F,X){if(d("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&F.length===0&&(F.endEmitted=!0,X.readable=!1,X.emit("end"),F.autoDestroy)){var Ae=X._writableState;(!Ae||Ae.autoDestroy&&Ae.finished)&&X.destroy()}}function U(F,X){for(var Ae=0,he=F.length;Ae<he;Ae++)if(F[Ae]===X)return Ae;return-1}return pe.prototype.read=function(F){d("read",F),F=parseInt(F,10);var X=this._readableState,Ae=F;if(F!==0&&(X.emittedReadable=!1),F===0&&X.needReadable&&((X.highWaterMark!==0?X.length>=X.highWaterMark:X.length>0)||X.ended))return d("read: emitReadable",X.length,X.ended),X.length===0&&X.ended?u(this):O(this),null;if((F=se(F,X))===0&&X.ended)return X.length===0&&u(this),null;var he,$e=X.needReadable;return d("need readable",$e),(X.length===0||X.length-F<X.highWaterMark)&&d("length less than watermark",$e=!0),X.ended||X.reading?d("reading or ended",$e=!1):$e&&(d("do read"),X.reading=!0,X.sync=!0,X.length===0&&(X.needReadable=!0),this._read(X.highWaterMark),X.sync=!1,X.reading||(F=se(Ae,X))),(he=F>0?R(F,X):null)===null?(X.needReadable=X.length<=X.highWaterMark,F=0):(X.length-=F,X.awaitDrain=0),X.length===0&&(X.ended||(X.needReadable=!0),Ae!==F&&X.ended&&u(this)),he!==null&&this.emit("data",he),he},pe.prototype._read=function(F){ne(this,new q("_read()"))},pe.prototype.pipe=function(F,X){var Ae=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=F;break;case 1:he.pipes=[he.pipes,F];break;default:he.pipes.push(F)}he.pipesCount+=1,d("pipe count=%d opts=%j",he.pipesCount,X);var $e=(!X||X.end!==!1)&&F!==t.stdout&&F!==t.stderr?Re:ge;function Ge(Le,V){d("onunpipe"),Le===Ae&&V&&V.hasUnpiped===!1&&(V.hasUnpiped=!0,d("cleanup"),F.removeListener("close",Ue),F.removeListener("finish",oe),F.removeListener("drain",Se),F.removeListener("error",te),F.removeListener("unpipe",Ge),Ae.removeListener("end",Re),Ae.removeListener("end",ge),Ae.removeListener("data",ze),ct=!0,!he.awaitDrain||F._writableState&&!F._writableState.needDrain||Se())}function Re(){d("onend"),F.end()}he.endEmitted?t.nextTick($e):Ae.once("end",$e),F.on("unpipe",Ge);var Se=(function(Le){return function(){var V=Le._readableState;d("pipeOnDrain",V.awaitDrain),V.awaitDrain&&V.awaitDrain--,V.awaitDrain===0&&r(Le,"data")&&(V.flowing=!0,x(Le))}})(Ae);F.on("drain",Se);var ct=!1;function ze(Le){d("ondata");var V=F.write(Le);d("dest.write",V),V===!1&&((he.pipesCount===1&&he.pipes===F||he.pipesCount>1&&U(he.pipes,F)!==-1)&&!ct&&(d("false write response, pause",he.awaitDrain),he.awaitDrain++),Ae.pause())}function te(Le){d("onerror",Le),ge(),F.removeListener("error",te),r(F,"error")===0&&ne(F,Le)}function Ue(){F.removeListener("finish",oe),ge()}function oe(){d("onfinish"),F.removeListener("close",Ue),ge()}function ge(){d("unpipe"),Ae.unpipe(F)}return Ae.on("data",ze),(function(Le,V,Qe){if(typeof Le.prependListener=="function")return Le.prependListener(V,Qe);Le._events&&Le._events[V]?Array.isArray(Le._events[V])?Le._events[V].unshift(Qe):Le._events[V]=[Qe,Le._events[V]]:Le.on(V,Qe)})(F,"error",te),F.once("close",Ue),F.once("finish",oe),F.emit("pipe",Ae),he.flowing||(d("pipe resume"),Ae.resume()),F},pe.prototype.unpipe=function(F){var X=this._readableState,Ae={hasUnpiped:!1};if(X.pipesCount===0)return this;if(X.pipesCount===1)return F&&F!==X.pipes||(F||(F=X.pipes),X.pipes=null,X.pipesCount=0,X.flowing=!1,F&&F.emit("unpipe",this,Ae)),this;if(!F){var he=X.pipes,$e=X.pipesCount;X.pipes=null,X.pipesCount=0,X.flowing=!1;for(var Ge=0;Ge<$e;Ge++)he[Ge].emit("unpipe",this,{hasUnpiped:!1});return this}var Re=U(X.pipes,F);return Re===-1||(X.pipes.splice(Re,1),X.pipesCount-=1,X.pipesCount===1&&(X.pipes=X.pipes[0]),F.emit("unpipe",this,Ae)),this},pe.prototype.on=function(F,X){var Ae=i.prototype.on.call(this,F,X),he=this._readableState;return F==="data"?(he.readableListening=this.listenerCount("readable")>0,he.flowing!==!1&&this.resume()):F==="readable"&&(he.endEmitted||he.readableListening||(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,d("on readable",he.length,he.reading),he.length?O(this):he.reading||t.nextTick(E,this))),Ae},pe.prototype.addListener=pe.prototype.on,pe.prototype.removeListener=function(F,X){var Ae=i.prototype.removeListener.call(this,F,X);return F==="readable"&&t.nextTick(m,this),Ae},pe.prototype.removeAllListeners=function(F){var X=i.prototype.removeAllListeners.apply(this,arguments);return F!=="readable"&&F!==void 0||t.nextTick(m,this),X},pe.prototype.resume=function(){var F=this._readableState;return F.flowing||(d("resume"),F.flowing=!F.readableListening,(function(X,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,t.nextTick(w,X,Ae))})(this,F)),F.paused=!1,this},pe.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},pe.prototype.wrap=function(F){var X=this,Ae=this._readableState,he=!1;for(var $e in F.on("end",(function(){if(d("wrapped end"),Ae.decoder&&!Ae.ended){var Re=Ae.decoder.end();Re&&Re.length&&X.push(Re)}X.push(null)})),F.on("data",(function(Re){d("wrapped data"),Ae.decoder&&(Re=Ae.decoder.write(Re)),Ae.objectMode&&Re==null||(Ae.objectMode||Re&&Re.length)&&(X.push(Re)||(he=!0,F.pause()))})),F)this[$e]===void 0&&typeof F[$e]=="function"&&(this[$e]=(function(Re){return function(){return F[Re].apply(F,arguments)}})($e));for(var Ge=0;Ge<ce.length;Ge++)F.on(ce[Ge],this.emit.bind(this,ce[Ge]));return this._read=function(Re){d("wrapped _read",Re),he&&(he=!1,F.resume())},this},typeof Symbol=="function"&&(pe.prototype[Symbol.asyncIterator]=function(){return _===void 0&&(_=lIt),_(this)}),Object.defineProperty(pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(pe.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(pe.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(F){this._readableState&&(this._readableState.flowing=F)}}),pe._fromList=R,Object.defineProperty(pe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(pe.from=function(F,X){return I===void 0&&(I=MHe),I(pe,F,X)}),poe}function GHe(){if(Fke)return goe;Fke=!0;var e,t=Mo;function r(A){var m=this;this.next=null,this.entry=null,this.finish=function(){(function(E,w,x){var R=E.entry;for(E.entry=null;R;){var u=R.callback;w.pendingcb--,u(x),R=R.next}w.corkedRequestsFree.next=E})(m,A)}}goe=pe,pe.WritableState=le;var i={deprecate:DHe},n=Yq,o=Vo.Buffer,d=pIt.Uint8Array||function(){},g,y=FHe,_=QHe.getHighWaterMark,I=ym.codes,N=I.ERR_INVALID_ARG_TYPE,T=I.ERR_METHOD_NOT_IMPLEMENTED,M=I.ERR_MULTIPLE_CALLBACK,D=I.ERR_STREAM_CANNOT_PIPE,P=I.ERR_STREAM_DESTROYED,G=I.ERR_STREAM_NULL_VALUES,q=I.ERR_STREAM_WRITE_AFTER_END,Y=I.ERR_UNKNOWN_ENCODING,ne=y.errorOrDestroy;function ce(){}function le(A,m,E){e=e||kq(),A=A||{},typeof E!="boolean"&&(E=m instanceof e),this.objectMode=!!A.objectMode,E&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=_(this,A,"writableHighWaterMark",E),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var w=A.decodeStrings===!1;this.decodeStrings=!w,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(x){(function(R,u){var C=R._writableState,U=C.sync,F=C.writecb;if(typeof F!="function")throw new M;if((function(Ae){Ae.writing=!1,Ae.writecb=null,Ae.length-=Ae.writelen,Ae.writelen=0})(C),u)(function(Ae,he,$e,Ge,Re){--he.pendingcb,$e?(t.nextTick(Re,Ge),t.nextTick(l,Ae,he),Ae._writableState.errorEmitted=!0,ne(Ae,Ge)):(Re(Ge),Ae._writableState.errorEmitted=!0,ne(Ae,Ge),l(Ae,he))})(R,C,U,u,F);else{var X=O(C)||R.destroyed;X||C.corked||C.bufferProcessing||!C.bufferedRequest||se(R,C),U?t.nextTick(W,R,C,X,F):W(R,C,X,F)}})(m,x)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function pe(A){var m=this instanceof(e=e||kq());if(!m&&!g.call(pe,this))return new pe(A);this._writableState=new le(A,this,m),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),n.call(this)}function ae(A,m,E,w,x,R,u){m.writelen=w,m.writecb=u,m.writing=!0,m.sync=!0,m.destroyed?m.onwrite(new P("write")):E?A._writev(x,m.onwrite):A._write(x,R,m.onwrite),m.sync=!1}function W(A,m,E,w){E||(function(x,R){R.length===0&&R.needDrain&&(R.needDrain=!1,x.emit("drain"))})(A,m),m.pendingcb--,w(),l(A,m)}function se(A,m){m.bufferProcessing=!0;var E=m.bufferedRequest;if(A._writev&&E&&E.next){var w=m.bufferedRequestCount,x=new Array(w),R=m.corkedRequestsFree;R.entry=E;for(var u=0,C=!0;E;)x[u]=E,E.isBuf||(C=!1),E=E.next,u+=1;x.allBuffers=C,ae(A,m,!0,m.length,x,"",R.finish),m.pendingcb++,m.lastBufferedRequest=null,R.next?(m.corkedRequestsFree=R.next,R.next=null):m.corkedRequestsFree=new r(m),m.bufferedRequestCount=0}else{for(;E;){var U=E.chunk,F=E.encoding,X=E.callback;if(ae(A,m,!1,m.objectMode?1:U.length,U,F,X),E=E.next,m.bufferedRequestCount--,m.writing)break}E===null&&(m.lastBufferedRequest=null)}m.bufferedRequest=E,m.bufferProcessing=!1}function O(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function s(A,m){A._final((function(E){m.pendingcb--,E&&ne(A,E),m.prefinished=!0,A.emit("prefinish"),l(A,m)}))}function l(A,m){var E=O(m);if(E&&((function(x,R){R.prefinished||R.finalCalled||(typeof x._final!="function"||R.destroyed?(R.prefinished=!0,x.emit("prefinish")):(R.pendingcb++,R.finalCalled=!0,t.nextTick(s,x,R)))})(A,m),m.pendingcb===0&&(m.finished=!0,A.emit("finish"),m.autoDestroy))){var w=A._readableState;(!w||w.autoDestroy&&w.endEmitted)&&A.destroy()}return E}return ca(pe,n),le.prototype.getBuffer=function(){for(var A=this.bufferedRequest,m=[];A;)m.push(A),A=A.next;return m},(function(){try{Object.defineProperty(le.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(pe,Symbol.hasInstance,{value:function(A){return!!g.call(this,A)||this===pe&&A&&A._writableState instanceof le}})):g=function(A){return A instanceof this},pe.prototype.pipe=function(){ne(this,new D)},pe.prototype.write=function(A,m,E){var w,x=this._writableState,R=!1,u=!x.objectMode&&(w=A,o.isBuffer(w)||w instanceof d);return u&&!o.isBuffer(A)&&(A=(function(C){return o.from(C)})(A)),typeof m=="function"&&(E=m,m=null),u?m="buffer":m||(m=x.defaultEncoding),typeof E!="function"&&(E=ce),x.ending?(function(C,U){var F=new q;ne(C,F),t.nextTick(U,F)})(this,E):(u||(function(C,U,F,X){var Ae;return F===null?Ae=new G:typeof F=="string"||U.objectMode||(Ae=new N("chunk",["string","Buffer"],F)),!Ae||(ne(C,Ae),t.nextTick(X,Ae),!1)})(this,x,A,E))&&(x.pendingcb++,R=(function(C,U,F,X,Ae,he){if(!F){var $e=(function(ct,ze,te){return ct.objectMode||ct.decodeStrings===!1||typeof ze!="string"||(ze=o.from(ze,te)),ze})(U,X,Ae);X!==$e&&(F=!0,Ae="buffer",X=$e)}var Ge=U.objectMode?1:X.length;U.length+=Ge;var Re=U.length<U.highWaterMark;if(Re||(U.needDrain=!0),U.writing||U.corked){var Se=U.lastBufferedRequest;U.lastBufferedRequest={chunk:X,encoding:Ae,isBuf:F,callback:he,next:null},Se?Se.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else ae(C,U,!1,Ge,X,Ae,he);return Re})(this,x,u,A,m,E)),R},pe.prototype.cork=function(){this._writableState.corked++},pe.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.bufferProcessing||!A.bufferedRequest||se(this,A))},pe.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new Y(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(pe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),pe.prototype._write=function(A,m,E){E(new T("_write()"))},pe.prototype._writev=null,pe.prototype.end=function(A,m,E){var w=this._writableState;return typeof A=="function"?(E=A,A=null,m=null):typeof m=="function"&&(E=m,m=null),A!=null&&this.write(A,m),w.corked&&(w.corked=1,this.uncork()),w.ending||(function(x,R,u){R.ending=!0,l(x,R),u&&(R.finished?t.nextTick(u):x.once("finish",u)),R.ended=!0,x.writable=!1})(this,w,E),this},Object.defineProperty(pe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),pe.prototype.destroy=y.destroy,pe.prototype._undestroy=y.undestroy,pe.prototype._destroy=function(A,m){m(A)},goe}function kq(){if(Qke)return _oe;Qke=!0;var e=Mo,t=Object.keys||function(I){var N=[];for(var T in I)N.push(T);return N};_oe=g;var r=AIt(),i=GHe();ca(g,r);for(var n=t(i.prototype),o=0;o<n.length;o++){var d=n[o];g.prototype[d]||(g.prototype[d]=i.prototype[d])}function g(I){if(!(this instanceof g))return new g(I);r.call(this,I),i.call(this,I),this.allowHalfOpen=!0,I&&(I.readable===!1&&(this.readable=!1),I.writable===!1&&(this.writable=!1),I.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",y)))}function y(){this._writableState.ended||e.nextTick(_,this)}function _(I){I.end()}return Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(I){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=I,this._writableState.destroyed=I)}}),_oe}function EIt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new mIt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Tv(e){if(!(this instanceof Tv))return new Tv(e);pq.call(this,e),this._transformState={afterTransform:EIt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",vIt)}function vIt(){var e=this;typeof this._flush!="function"||this._readableState.destroyed?Hke(this,null,null):this._flush((function(t,r){Hke(e,t,r)}))}function Hke(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new bIt;if(e._transformState.transforming)throw new yIt;return e.push(null)}function ID(e){if(!(this instanceof ID))return new ID(e);KHe.call(this,e)}function Gke(e){if(e)throw e}function CIt(e,t,r,i){i=(function(d){var g=!1;return function(){g||(g=!0,d.apply(void 0,arguments))}})(i);var n=!1;e.on("close",(function(){n=!0})),moe===void 0&&(moe=Sue),moe(e,{readable:t,writable:r},(function(d){if(d)return i(d);n=!0,i()}));var o=!1;return function(d){if(!n&&!o)return o=!0,(function(g){return g.setHeader&&typeof g.abort=="function"})(e)?e.abort():typeof e.destroy=="function"?e.destroy():(i(d||new IIt("pipe")),void 0)}}function qke(e){e()}function wIt(e,t){return e.pipe(t)}function OIt(e){return e.length?typeof e[e.length-1]!="function"?Gke:e.pop():Gke}function Hg(){zce.call(this||Jce)}function S6(){if(Vke)return yoe;Vke=!0;var e=cs().Buffer,t=Jg.Transform,r=yh.StringDecoder,i=rs();function n(o){t.call(this||nd),(this||nd).hashMode=typeof o=="string",(this||nd).hashMode?(this||nd)[o]=(this||nd)._finalOrDigest:(this||nd).final=(this||nd)._finalOrDigest,(this||nd)._final&&((this||nd).__final=(this||nd)._final,(this||nd)._final=null),(this||nd)._decoder=null,(this||nd)._encoding=null}return i(n,t),n.prototype.update=function(o,d,g){typeof o=="string"&&(o=e.from(o,d));var y=this._update(o);return(this||nd).hashMode?this||nd:(g&&(y=this._toString(y,g)),y)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(o,d,g){var y;try{(this||nd).hashMode?this._update(o):this.push(this._update(o))}catch(_){y=_}finally{g(y)}},n.prototype._flush=function(o){var d;try{this.push(this.__final())}catch(g){d=g}o(d)},n.prototype._finalOrDigest=function(o){var d=this.__final()||e.alloc(0);return o&&(d=this._toString(d,o,!0)),d},n.prototype._toString=function(o,d,g){if((this||nd)._decoder||((this||nd)._decoder=new r(d),(this||nd)._encoding=d),(this||nd)._encoding!==d)throw new Error("can't switch encodings");var y=(this||nd)._decoder.write(o);return g&&(y+=(this||nd)._decoder.end()),y},yoe=n,yoe}function MD(){if(Jke)return boe;Jke=!0;var e=rs(),t=Eue(),r=vue(),i=Rue(),n=S6();function o(d){n.call(this,"digest"),this._hash=d}return e(o,n),o.prototype._update=function(d){this._hash.update(d)},o.prototype._final=function(){return this._hash.digest()},boe=function(g){return g=g.toLowerCase(),g==="md5"?new t:g==="rmd160"||g==="ripemd160"?new r:new o(i(g))},boe}function xIt(){if(zke)return Eoe;zke=!0;var e=rs(),t=cs().Buffer,r=S6(),i=t.alloc(128),n=64;function o(d,g){r.call(this,"digest"),typeof g=="string"&&(g=t.from(g)),this._alg=d,this._key=g,g.length>n?g=d(g):g.length<n&&(g=t.concat([g,i],n));for(var y=this._ipad=t.allocUnsafe(n),_=this._opad=t.allocUnsafe(n),I=0;I<n;I++)y[I]=g[I]^54,_[I]=g[I]^92;this._hash=[y]}return e(o,r),o.prototype._update=function(d){this._hash.push(d)},o.prototype._final=function(){var d=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,d]))},Eoe=o,Eoe}function WHe(){if(Kke)return voe;Kke=!0;var e=Eue();return voe=function(t){return new e().update(t).digest()},voe}function XHe(){if($ke)return Roe;$ke=!0;var e=rs(),t=xIt(),r=S6(),i=cs().Buffer,n=WHe(),o=vue(),d=Rue(),g=i.alloc(128);function y(_,I){r.call(this,"digest"),typeof I=="string"&&(I=i.from(I));var N=_==="sha512"||_==="sha384"?128:64;if(this._alg=_,this._key=I,I.length>N){var T=_==="rmd160"?new o:d(_);I=T.update(I).digest()}else I.length<N&&(I=i.concat([I,g],N));for(var M=this._ipad=i.allocUnsafe(N),D=this._opad=i.allocUnsafe(N),P=0;P<N;P++)M[P]=I[P]^54,D[P]=I[P]^92;this._hash=_==="rmd160"?new o:d(_),this._hash.update(M)}return e(y,r),y.prototype._update=function(_){this._hash.update(_)},y.prototype._final=function(){var _=this._hash.digest(),I=this._alg==="rmd160"?new o:d(this._alg);return I.update(this._opad).update(_).digest()},Roe=function(I,N){return I=I.toLowerCase(),I==="rmd160"||I==="ripemd160"?new y("rmd160",N):I==="md5"?new t(n,N):new y(I,N)},Roe}function TIt(){return Yke||(Yke=!0,Soe=ZHe),Soe}function jHe(){if(Wke)return Ioe;Wke=!0;var e=Math.pow(2,30)-1;return Ioe=function(t,r){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof r!="number")throw new TypeError("Key length not a number");if(r<0||r>e||r!==r)throw new TypeError("Bad key length")},Ioe}function eGe(){if(Xke)return Coe;Xke=!0;var e=Mo,t;if(BG.process&&BG.process.browser)t="utf-8";else if(BG.process&&BG.process.version){var r=parseInt(e.version.split(".")[0].slice(1),10);t=r>=6?"utf-8":"binary"}else t="utf-8";return Coe=t,Coe}function tGe(){if(Zke)return woe;Zke=!0;var e=cs().Buffer;return woe=function(t,r,i){if(e.isBuffer(t))return t;if(typeof t=="string")return e.from(t,r);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")},woe}function rGe(){if(jke)return Ooe;jke=!0;var e=WHe(),t=vue(),r=Rue(),i=cs().Buffer,n=jHe(),o=eGe(),d=tGe(),g=i.alloc(128),y={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function _(T,M,D){var P=I(T),G=T==="sha512"||T==="sha384"?128:64;M.length>G?M=P(M):M.length<G&&(M=i.concat([M,g],G));for(var q=i.allocUnsafe(G+y[T]),Y=i.allocUnsafe(G+y[T]),ne=0;ne<G;ne++)q[ne]=M[ne]^54,Y[ne]=M[ne]^92;var ce=i.allocUnsafe(G+D+4);q.copy(ce,0,0,G),(this||am).ipad1=ce,(this||am).ipad2=q,(this||am).opad=Y,(this||am).alg=T,(this||am).blocksize=G,(this||am).hash=P,(this||am).size=y[T]}_.prototype.run=function(T,M){T.copy(M,(this||am).blocksize);var D=this.hash(M);return D.copy((this||am).opad,(this||am).blocksize),this.hash((this||am).opad)};function I(T){function M(P){return r(T).update(P).digest()}function D(P){return new t().update(P).digest()}return T==="rmd160"||T==="ripemd160"?D:T==="md5"?e:M}function N(T,M,D,P,G){n(D,P),T=d(T,o,"Password"),M=d(M,o,"Salt"),G=G||"sha1";var q=new _(G,T,M.length),Y=i.allocUnsafe(P),ne=i.allocUnsafe(M.length+4);M.copy(ne,0,0,M.length);for(var ce=0,le=y[G],pe=Math.ceil(P/le),ae=1;ae<=pe;ae++){ne.writeUInt32BE(ae,M.length);for(var W=q.run(ne,q.ipad1),se=W,O=1;O<D;O++){se=q.run(se,q.ipad2);for(var s=0;s<le;s++)W[s]^=se[s]}W.copy(Y,ce),ce+=le}return Y}return Ooe=N,Ooe}function BIt(){if(ePe)return Noe;ePe=!0;var e=cs().Buffer,t=jHe(),r=eGe(),i=rGe(),n=tGe(),o,d=k1.crypto&&k1.crypto.subtle,g={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];function _(D){if(k1.process&&!k1.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(y[D]!==void 0)return y[D];o=o||e.alloc(8);var P=T(o,o,10,128,D).then(function(){return!0}).catch(function(){return!1});return y[D]=P,P}var I;function N(){return I||(k1.process&&k1.process.nextTick?I=k1.process.nextTick:k1.queueMicrotask?I=k1.queueMicrotask:k1.setImmediate?I=k1.setImmediate:I=k1.setTimeout,I)}function T(D,P,G,q,Y){return d.importKey("raw",D,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ne){return d.deriveBits({name:"PBKDF2",salt:P,iterations:G,hash:{name:Y}},ne,q<<3)}).then(function(ne){return e.from(ne)})}function M(D,P){D.then(function(G){N()(function(){P(null,G)})},function(G){N()(function(){P(G)})})}return Noe=function(D,P,G,q,Y,ne){typeof Y=="function"&&(ne=Y,Y=void 0),Y=Y||"sha1";var ce=g[Y.toLowerCase()];if(!ce||typeof k1.Promise!="function"){N()(function(){var le;try{le=i(D,P,G,q,Y)}catch(pe){return ne(pe)}ne(null,le)});return}if(t(G,q),D=n(D,r,"Password"),P=n(P,r,"Salt"),typeof ne!="function")throw new Error("No callback provided to pbkdf2");M(_(ce).then(function(le){return le?T(D,P,G,q,ce):i(D,P,G,q,Y)}),ne)},Noe}function nGe(){return tPe||(tPe=!0,MG.pbkdf2=BIt(),MG.pbkdf2Sync=rGe()),MG}function iGe(){if(rPe)return P1;rPe=!0,P1.readUInt32BE=function(n,o){var d=n[0+o]<<24|n[1+o]<<16|n[2+o]<<8|n[3+o];return d>>>0},P1.writeUInt32BE=function(n,o,d){n[0+d]=o>>>24,n[1+d]=o>>>16&255,n[2+d]=o>>>8&255,n[3+d]=o&255},P1.ip=function(n,o,d,g){for(var y=0,_=0,I=6;I>=0;I-=2){for(var N=0;N<=24;N+=8)y<<=1,y|=o>>>N+I&1;for(var N=0;N<=24;N+=8)y<<=1,y|=n>>>N+I&1}for(var I=6;I>=0;I-=2){for(var N=1;N<=25;N+=8)_<<=1,_|=o>>>N+I&1;for(var N=1;N<=25;N+=8)_<<=1,_|=n>>>N+I&1}d[g+0]=y>>>0,d[g+1]=_>>>0},P1.rip=function(n,o,d,g){for(var y=0,_=0,I=0;I<4;I++)for(var N=24;N>=0;N-=8)y<<=1,y|=o>>>N+I&1,y<<=1,y|=n>>>N+I&1;for(var I=4;I<8;I++)for(var N=24;N>=0;N-=8)_<<=1,_|=o>>>N+I&1,_<<=1,_|=n>>>N+I&1;d[g+0]=y>>>0,d[g+1]=_>>>0},P1.pc1=function(n,o,d,g){for(var y=0,_=0,I=7;I>=5;I--){for(var N=0;N<=24;N+=8)y<<=1,y|=o>>N+I&1;for(var N=0;N<=24;N+=8)y<<=1,y|=n>>N+I&1}for(var N=0;N<=24;N+=8)y<<=1,y|=o>>N+I&1;for(var I=1;I<=3;I++){for(var N=0;N<=24;N+=8)_<<=1,_|=o>>N+I&1;for(var N=0;N<=24;N+=8)_<<=1,_|=n>>N+I&1}for(var N=0;N<=24;N+=8)_<<=1,_|=n>>N+I&1;d[g+0]=y>>>0,d[g+1]=_>>>0},P1.r28shl=function(n,o){return n<<o&268435455|n>>>28-o};var e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];P1.pc2=function(n,o,d,g){for(var y=0,_=0,I=e.length>>>1,N=0;N<I;N++)y<<=1,y|=n>>>e[N]&1;for(var N=I;N<e.length;N++)_<<=1,_|=o>>>e[N]&1;d[g+0]=y>>>0,d[g+1]=_>>>0},P1.expand=function(n,o,d){var g=0,y=0;g=(n&1)<<5|n>>>27;for(var _=23;_>=15;_-=4)g<<=6,g|=n>>>_&63;for(var _=11;_>=3;_-=4)y|=n>>>_&63,y<<=6;y|=(n&31)<<1|n>>>31,o[d+0]=g>>>0,o[d+1]=y>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];P1.substitute=function(n,o){for(var d=0,g=0;g<4;g++){var y=n>>>18-g*6&63,_=t[g*64+y];d<<=4,d|=_}for(var g=0;g<4;g++){var y=o>>>18-g*6&63,_=t[256+g*64+y];d<<=4,d|=_}return d>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return P1.permute=function(n){for(var o=0,d=0;d<r.length;d++)o<<=1,o|=n>>>r[d]&1;return o>>>0},P1.padSplit=function(n,o,d){for(var g=n.toString(2);g.length<o;)g="0"+g;for(var y=[],_=0;_<o;_+=d)y.push(g.slice(_,_+d));return y.join(" ")},P1}function jy(){if(nPe)return xoe;nPe=!0,xoe=e;function e(t,r){if(!t)throw new Error(r||"Assertion failed")}return e.equal=function(r,i,n){if(r!=i)throw new Error(n||"Assertion failed: "+r+" != "+i)},xoe}function Iue(){if(iPe)return Toe;iPe=!0;var e=jy();function t(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}return Toe=t,t.prototype._init=function(){},t.prototype.update=function(i){return i.length===0?[]:this.type==="decrypt"?this._updateDecrypt(i):this._updateEncrypt(i)},t.prototype._buffer=function(i,n){for(var o=Math.min(this.buffer.length-this.bufferOff,i.length-n),d=0;d<o;d++)this.buffer[this.bufferOff+d]=i[n+d];return this.bufferOff+=o,o},t.prototype._flushBuffer=function(i,n){return this._update(this.buffer,0,i,n),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(i){var n=0,o=0,d=(this.bufferOff+i.length)/this.blockSize|0,g=new Array(d*this.blockSize);this.bufferOff!==0&&(n+=this._buffer(i,n),this.bufferOff===this.buffer.length&&(o+=this._flushBuffer(g,o)));for(var y=i.length-(i.length-n)%this.blockSize;n<y;n+=this.blockSize)this._update(i,n,g,o),o+=this.blockSize;for(;n<i.length;n++,this.bufferOff++)this.buffer[this.bufferOff]=i[n];return g},t.prototype._updateDecrypt=function(i){for(var n=0,o=0,d=Math.ceil((this.bufferOff+i.length)/this.blockSize)-1,g=new Array(d*this.blockSize);d>0;d--)n+=this._buffer(i,n),o+=this._flushBuffer(g,o);return n+=this._buffer(i,n),g},t.prototype.final=function(i){var n;i&&(n=this.update(i));var o;return this.type==="encrypt"?o=this._finalEncrypt():o=this._finalDecrypt(),n?n.concat(o):o},t.prototype._pad=function(i,n){if(n===0)return!1;for(;n<i.length;)i[n++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var i=new Array(this.blockSize);return this._update(this.buffer,0,i,0),i},t.prototype._unpad=function(i){return i},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var i=new Array(this.blockSize);return this._flushBuffer(i,0),this._unpad(i)},Toe}function oGe(){if(oPe)return Boe;oPe=!0;var e=jy(),t=rs(),r=iGe(),i=Iue();function n(){this.tmp=new Array(2),this.keys=null}function o(g){i.call(this,g);var y=new n;this._desState=y,this.deriveKeys(y,g.key)}t(o,i),Boe=o,o.create=function(y){return new o(y)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return o.prototype.deriveKeys=function(y,_){y.keys=new Array(32),e.equal(_.length,this.blockSize,"Invalid key length");var I=r.readUInt32BE(_,0),N=r.readUInt32BE(_,4);r.pc1(I,N,y.tmp,0),I=y.tmp[0],N=y.tmp[1];for(var T=0;T<y.keys.length;T+=2){var M=d[T>>>1];I=r.r28shl(I,M),N=r.r28shl(N,M),r.pc2(I,N,y.keys,T)}},o.prototype._update=function(y,_,I,N){var T=this._desState,M=r.readUInt32BE(y,_),D=r.readUInt32BE(y,_+4);r.ip(M,D,T.tmp,0),M=T.tmp[0],D=T.tmp[1],this.type==="encrypt"?this._encrypt(T,M,D,T.tmp,0):this._decrypt(T,M,D,T.tmp,0),M=T.tmp[0],D=T.tmp[1],r.writeUInt32BE(I,M,N),r.writeUInt32BE(I,D,N+4)},o.prototype._pad=function(y,_){for(var I=y.length-_,N=_;N<y.length;N++)y[N]=I;return!0},o.prototype._unpad=function(y){for(var _=y[y.length-1],I=y.length-_;I<y.length;I++)e.equal(y[I],_);return y.slice(0,y.length-_)},o.prototype._encrypt=function(y,_,I,N,T){for(var M=_,D=I,P=0;P<y.keys.length;P+=2){var G=y.keys[P],q=y.keys[P+1];r.expand(D,y.tmp,0),G^=y.tmp[0],q^=y.tmp[1];var Y=r.substitute(G,q),ne=r.permute(Y),ce=D;D=(M^ne)>>>0,M=ce}r.rip(D,M,N,T)},o.prototype._decrypt=function(y,_,I,N,T){for(var M=I,D=_,P=y.keys.length-2;P>=0;P-=2){var G=y.keys[P],q=y.keys[P+1];r.expand(M,y.tmp,0),G^=y.tmp[0],q^=y.tmp[1];var Y=r.substitute(G,q),ne=r.permute(Y),ce=M;M=(D^ne)>>>0,D=ce}r.rip(M,D,N,T)},Boe}function MIt(){if(aPe)return Moe;aPe=!0;var e=jy(),t=rs(),r={};function i(o){e.equal(o.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d<this.iv.length;d++)this.iv[d]=o[d]}function n(o){function d(I){o.call(this,I),this._cbcInit()}t(d,o);for(var g=Object.keys(r),y=0;y<g.length;y++){var _=g[y];d.prototype[_]=r[_]}return d.create=function(N){return new d(N)},d}return Moe.instantiate=n,r._cbcInit=function(){var d=new i(this.options.iv);this._cbcState=d},r._update=function(d,g,y,_){var I=this._cbcState,N=this.constructor.super_.prototype,T=I.iv;if(this.type==="encrypt"){for(var M=0;M<this.blockSize;M++)T[M]^=d[g+M];N._update.call(this,T,0,y,_);for(var M=0;M<this.blockSize;M++)T[M]=y[_+M]}else{N._update.call(this,d,g,y,_);for(var M=0;M<this.blockSize;M++)y[_+M]^=T[M];for(var M=0;M<this.blockSize;M++)T[M]=d[g+M]}},Moe}function DIt(){if(sPe)return Doe;sPe=!0;var e=jy(),t=rs(),r=Iue(),i=oGe();function n(d,g){e.equal(g.length,24,"Invalid key length");var y=g.slice(0,8),_=g.slice(8,16),I=g.slice(16,24);d==="encrypt"?this.ciphers=[i.create({type:"encrypt",key:y}),i.create({type:"decrypt",key:_}),i.create({type:"encrypt",key:I})]:this.ciphers=[i.create({type:"decrypt",key:I}),i.create({type:"encrypt",key:_}),i.create({type:"decrypt",key:y})]}function o(d){r.call(this,d);var g=new n(this.type,this.options.key);this._edeState=g}return t(o,r),Doe=o,o.create=function(g){return new o(g)},o.prototype._update=function(g,y,_,I){var N=this._edeState;N.ciphers[0]._update(g,y,_,I),N.ciphers[1]._update(_,I,_,I),N.ciphers[2]._update(_,I,_,I)},o.prototype._pad=i.prototype._pad,o.prototype._unpad=i.prototype._unpad,Doe}function kIt(){return cPe||(cPe=!0,K8.utils=iGe(),K8.Cipher=Iue(),K8.DES=oGe(),K8.CBC=MIt(),K8.EDE=DIt()),K8}function PIt(){if(uPe)return koe;uPe=!0;var e=S6(),t=kIt(),r=rs(),i=cs().Buffer,n={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};n.des=n["des-cbc"],n.des3=n["des-ede3-cbc"],koe=o,r(o,e);function o(d){e.call(this||DG);var g=d.mode.toLowerCase(),y=n[g],_;d.decrypt?_="decrypt":_="encrypt";var I=d.key;i.isBuffer(I)||(I=i.from(I)),(g==="des-ede"||g==="des-ede-cbc")&&(I=i.concat([I,I.slice(0,8)]));var N=d.iv;i.isBuffer(N)||(N=i.from(N)),(this||DG)._des=y.create({key:I,iv:N,type:_})}return o.prototype._update=function(d){return i.from((this||DG)._des.update(d))},o.prototype._final=function(){return i.from((this||DG)._des.final())},koe}function LIt(){return dPe||(dPe=!0,kG.encrypt=function(e,t){return e._cipher.encryptBlock(t)},kG.decrypt=function(e,t){return e._cipher.decryptBlock(t)}),kG}function DD(){if(fPe)return Poe;fPe=!0;var e=Vo.Buffer;return Poe=function(r,i){for(var n=Math.min(r.length,i.length),o=new e(n),d=0;d<n;++d)o[d]=r[d]^i[d];return o},Poe}function UIt(){if(lPe)return PG;lPe=!0;var e=DD();return PG.encrypt=function(t,r){var i=e(r,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},PG.decrypt=function(t,r){var i=t._prev;t._prev=r;var n=t._cipher.decryptBlock(r);return e(n,i)},PG}function FIt(){if(hPe)return Loe;hPe=!0;var e=cs().Buffer,t=DD();function r(i,n,o){var d=n.length,g=t(n,i._cache);return i._cache=i._cache.slice(d),i._prev=e.concat([i._prev,o?n:g]),g}return Loe.encrypt=function(i,n,o){for(var d=e.allocUnsafe(0),g;n.length;)if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=e.allocUnsafe(0)),i._cache.length<=n.length)g=i._cache.length,d=e.concat([d,r(i,n.slice(0,g),o)]),n=n.slice(g);else{d=e.concat([d,r(i,n,o)]);break}return d},Loe}function QIt(){if(APe)return Uoe;APe=!0;var e=cs().Buffer;function t(r,i,n){var o=r._cipher.encryptBlock(r._prev),d=o[0]^i;return r._prev=e.concat([r._prev.slice(1),e.from([n?i:d])]),d}return Uoe.encrypt=function(r,i,n){for(var o=i.length,d=e.allocUnsafe(o),g=-1;++g<o;)d[g]=t(r,i[g],n);return d},Uoe}function HIt(){if(pPe)return Foe;pPe=!0;var e=cs().Buffer;function t(i,n,o){for(var d,g=-1,y=8,_=0,I,N;++g<y;)d=i._cipher.encryptBlock(i._prev),I=n&1<<7-g?128:0,N=d[0]^I,_+=(N&128)>>g%8,i._prev=r(i._prev,o?I:N);return _}function r(i,n){var o=i.length,d=-1,g=e.allocUnsafe(i.length);for(i=e.concat([i,e.from([n])]);++d<o;)g[d]=i[d]<<1|i[d+1]>>7;return g}return Foe.encrypt=function(i,n,o){for(var d=n.length,g=e.allocUnsafe(d),y=-1;++y<d;)g[y]=t(i,n[y],o);return g},Foe}function GIt(){if(gPe)return Qoe;gPe=!0;var e=Vo.Buffer,t=DD();function r(i){return i._prev=i._cipher.encryptBlock(i._prev),i._prev}return Qoe.encrypt=function(i,n){for(;i._cache.length<n.length;)i._cache=e.concat([i._cache,r(i)]);var o=i._cache.slice(0,n.length);return i._cache=i._cache.slice(n.length),t(n,o)},Qoe}function aGe(){if(_Pe)return Hoe;_Pe=!0;function e(t){for(var r=t.length,i;r--;)if(i=t.readUInt8(r),i===255)t.writeUInt8(0,r);else{i++,t.writeUInt8(i,r);break}}return Hoe=e,Hoe}function yPe(){if(mPe)return Goe;mPe=!0;var e=DD(),t=cs().Buffer,r=aGe();function i(o){var d=o._cipher.encryptBlockRaw(o._prev);return r(o._prev),d}var n=16;return Goe.encrypt=function(o,d){var g=Math.ceil(d.length/n),y=o._cache.length;o._cache=t.concat([o._cache,t.allocUnsafe(g*n)]);for(var _=0;_<g;_++){var I=i(o),N=y+_*n;o._cache.writeUInt32BE(I[0],N+0),o._cache.writeUInt32BE(I[1],N+4),o._cache.writeUInt32BE(I[2],N+8),o._cache.writeUInt32BE(I[3],N+12)}var T=o._cache.slice(0,d.length);return o._cache=o._cache.slice(d.length),e(d,T)},Goe}function Cue(){if(bPe)return qoe;bPe=!0;var e={ECB:LIt(),CBC:UIt(),CFB:FIt(),CFB8:QIt(),CFB1:HIt(),OFB:GIt(),CTR:yPe(),GCM:yPe()},t=sGe;for(var r in t)t[r].module=e[t[r].mode];return qoe=t,qoe}function Xq(){if(EPe)return Voe;EPe=!0;var e=cs().Buffer;function t(g){e.isBuffer(g)||(g=e.from(g));for(var y=g.length/4|0,_=new Array(y),I=0;I<y;I++)_[I]=g.readUInt32BE(I*4);return _}function r(g){for(var y=0;y<g.length;g++)g[y]=0}function i(g,y,_,I,N){for(var T=_[0],M=_[1],D=_[2],P=_[3],G=g[0]^y[0],q=g[1]^y[1],Y=g[2]^y[2],ne=g[3]^y[3],ce,le,pe,ae,W=4,se=1;se<N;se++)ce=T[G>>>24]^M[q>>>16&255]^D[Y>>>8&255]^P[ne&255]^y[W++],le=T[q>>>24]^M[Y>>>16&255]^D[ne>>>8&255]^P[G&255]^y[W++],pe=T[Y>>>24]^M[ne>>>16&255]^D[G>>>8&255]^P[q&255]^y[W++],ae=T[ne>>>24]^M[G>>>16&255]^D[q>>>8&255]^P[Y&255]^y[W++],G=ce,q=le,Y=pe,ne=ae;return ce=(I[G>>>24]<<24|I[q>>>16&255]<<16|I[Y>>>8&255]<<8|I[ne&255])^y[W++],le=(I[q>>>24]<<24|I[Y>>>16&255]<<16|I[ne>>>8&255]<<8|I[G&255])^y[W++],pe=(I[Y>>>24]<<24|I[ne>>>16&255]<<16|I[G>>>8&255]<<8|I[q&255])^y[W++],ae=(I[ne>>>24]<<24|I[G>>>16&255]<<16|I[q>>>8&255]<<8|I[Y&255])^y[W++],ce=ce>>>0,le=le>>>0,pe=pe>>>0,ae=ae>>>0,[ce,le,pe,ae]}var n=[0,1,2,4,8,16,32,64,128,27,54],o=(function(){for(var g=new Array(256),y=0;y<256;y++)y<128?g[y]=y<<1:g[y]=y<<1^283;for(var _=[],I=[],N=[[],[],[],[]],T=[[],[],[],[]],M=0,D=0,P=0;P<256;++P){var G=D^D<<1^D<<2^D<<3^D<<4;G=G>>>8^G&255^99,_[M]=G,I[G]=M;var q=g[M],Y=g[q],ne=g[Y],ce=g[G]*257^G*16843008;N[0][M]=ce<<24|ce>>>8,N[1][M]=ce<<16|ce>>>16,N[2][M]=ce<<8|ce>>>24,N[3][M]=ce,ce=ne*16843009^Y*65537^q*257^M*16843008,T[0][G]=ce<<24|ce>>>8,T[1][G]=ce<<16|ce>>>16,T[2][G]=ce<<8|ce>>>24,T[3][G]=ce,M===0?M=D=1:(M=q^g[g[g[ne^q]]],D^=g[g[D]])}return{SBOX:_,INV_SBOX:I,SUB_MIX:N,INV_SUB_MIX:T}})();function d(g){(this||Tg)._key=t(g),this._reset()}return d.blockSize=16,d.keySize=256/8,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var g=(this||Tg)._key,y=g.length,_=y+6,I=(_+1)*4,N=[],T=0;T<y;T++)N[T]=g[T];for(T=y;T<I;T++){var M=N[T-1];T%y===0?(M=M<<8|M>>>24,M=o.SBOX[M>>>24]<<24|o.SBOX[M>>>16&255]<<16|o.SBOX[M>>>8&255]<<8|o.SBOX[M&255],M^=n[T/y|0]<<24):y>6&&T%y===4&&(M=o.SBOX[M>>>24]<<24|o.SBOX[M>>>16&255]<<16|o.SBOX[M>>>8&255]<<8|o.SBOX[M&255]),N[T]=N[T-y]^M}for(var D=[],P=0;P<I;P++){var G=I-P,q=N[G-(P%4?0:4)];P<4||G<=4?D[P]=q:D[P]=o.INV_SUB_MIX[0][o.SBOX[q>>>24]]^o.INV_SUB_MIX[1][o.SBOX[q>>>16&255]]^o.INV_SUB_MIX[2][o.SBOX[q>>>8&255]]^o.INV_SUB_MIX[3][o.SBOX[q&255]]}(this||Tg)._nRounds=_,(this||Tg)._keySchedule=N,(this||Tg)._invKeySchedule=D},d.prototype.encryptBlockRaw=function(g){return g=t(g),i(g,(this||Tg)._keySchedule,o.SUB_MIX,o.SBOX,(this||Tg)._nRounds)},d.prototype.encryptBlock=function(g){var y=this.encryptBlockRaw(g),_=e.allocUnsafe(16);return _.writeUInt32BE(y[0],0),_.writeUInt32BE(y[1],4),_.writeUInt32BE(y[2],8),_.writeUInt32BE(y[3],12),_},d.prototype.decryptBlock=function(g){g=t(g);var y=g[1];g[1]=g[3],g[3]=y;var _=i(g,(this||Tg)._invKeySchedule,o.INV_SUB_MIX,o.INV_SBOX,(this||Tg)._nRounds),I=e.allocUnsafe(16);return I.writeUInt32BE(_[0],0),I.writeUInt32BE(_[3],4),I.writeUInt32BE(_[2],8),I.writeUInt32BE(_[1],12),I},d.prototype.scrub=function(){r((this||Tg)._keySchedule),r((this||Tg)._invKeySchedule),r((this||Tg)._key)},Voe.AES=d,Voe}function qIt(){if(vPe)return Joe;vPe=!0;var e=cs().Buffer,t=e.alloc(16,0);function r(o){return[o.readUInt32BE(0),o.readUInt32BE(4),o.readUInt32BE(8),o.readUInt32BE(12)]}function i(o){var d=e.allocUnsafe(16);return d.writeUInt32BE(o[0]>>>0,0),d.writeUInt32BE(o[1]>>>0,4),d.writeUInt32BE(o[2]>>>0,8),d.writeUInt32BE(o[3]>>>0,12),d}function n(o){(this||Eh).h=o,(this||Eh).state=e.alloc(16,0),(this||Eh).cache=e.allocUnsafe(0)}return n.prototype.ghash=function(o){for(var d=-1;++d<o.length;)(this||Eh).state[d]^=o[d];this._multiply()},n.prototype._multiply=function(){for(var o=r((this||Eh).h),d=[0,0,0,0],g,y,_,I=-1;++I<128;){for(y=((this||Eh).state[~~(I/8)]&1<<7-I%8)!==0,y&&(d[0]^=o[0],d[1]^=o[1],d[2]^=o[2],d[3]^=o[3]),_=(o[3]&1)!==0,g=3;g>0;g--)o[g]=o[g]>>>1|(o[g-1]&1)<<31;o[0]=o[0]>>>1,_&&(o[0]=o[0]^225<<24)}(this||Eh).state=i(d)},n.prototype.update=function(o){(this||Eh).cache=e.concat([(this||Eh).cache,o]);for(var d;(this||Eh).cache.length>=16;)d=(this||Eh).cache.slice(0,16),(this||Eh).cache=(this||Eh).cache.slice(16),this.ghash(d)},n.prototype.final=function(o,d){return(this||Eh).cache.length&&this.ghash(e.concat([(this||Eh).cache,t],16)),this.ghash(i([0,o,0,d])),(this||Eh).state},Joe=n,Joe}function cGe(){if(RPe)return zoe;RPe=!0;var e=Xq(),t=cs().Buffer,r=S6(),i=rs(),n=qIt(),o=DD(),d=aGe();function g(I,N){var T=0;I.length!==N.length&&T++;for(var M=Math.min(I.length,N.length),D=0;D<M;++D)T+=I[D]^N[D];return T}function y(I,N,T){if(N.length===12)return I._finID=t.concat([N,t.from([0,0,0,1])]),t.concat([N,t.from([0,0,0,2])]);var M=new n(T),D=N.length,P=D%16;M.update(N),P&&(P=16-P,M.update(t.alloc(P,0))),M.update(t.alloc(8,0));var G=D*8,q=t.alloc(8);q.writeUIntBE(G,0,8),M.update(q),I._finID=M.state;var Y=t.from(I._finID);return d(Y),Y}function _(I,N,T,M){r.call(this||la);var D=t.alloc(4,0);(this||la)._cipher=new e.AES(N);var P=(this||la)._cipher.encryptBlock(D);(this||la)._ghash=new n(P),T=y(this||la,T,P),(this||la)._prev=t.from(T),(this||la)._cache=t.allocUnsafe(0),(this||la)._secCache=t.allocUnsafe(0),(this||la)._decrypt=M,(this||la)._alen=0,(this||la)._len=0,(this||la)._mode=I,(this||la)._authTag=null,(this||la)._called=!1}return i(_,r),_.prototype._update=function(I){if(!(this||la)._called&&(this||la)._alen){var N=16-(this||la)._alen%16;N<16&&(N=t.alloc(N,0),(this||la)._ghash.update(N))}(this||la)._called=!0;var T=(this||la)._mode.encrypt(this||la,I);return(this||la)._decrypt?(this||la)._ghash.update(I):(this||la)._ghash.update(T),(this||la)._len+=I.length,T},_.prototype._final=function(){if((this||la)._decrypt&&!(this||la)._authTag)throw new Error("Unsupported state or unable to authenticate data");var I=o((this||la)._ghash.final((this||la)._alen*8,(this||la)._len*8),(this||la)._cipher.encryptBlock((this||la)._finID));if((this||la)._decrypt&&g(I,(this||la)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||la)._authTag=I,(this||la)._cipher.scrub()},_.prototype.getAuthTag=function(){if((this||la)._decrypt||!t.isBuffer((this||la)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||la)._authTag},_.prototype.setAuthTag=function(N){if(!(this||la)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||la)._authTag=N},_.prototype.setAAD=function(N){if((this||la)._called)throw new Error("Attempting to set AAD in unsupported state");(this||la)._ghash.update(N),(this||la)._alen+=N.length},zoe=_,zoe}function uGe(){if(SPe)return Koe;SPe=!0;var e=Xq(),t=cs().Buffer,r=S6(),i=rs();function n(o,d,g,y){r.call(this||sm),(this||sm)._cipher=new e.AES(d),(this||sm)._prev=t.from(g),(this||sm)._cache=t.allocUnsafe(0),(this||sm)._secCache=t.allocUnsafe(0),(this||sm)._decrypt=y,(this||sm)._mode=o}return i(n,r),n.prototype._update=function(o){return(this||sm)._mode.encrypt(this||sm,o,(this||sm)._decrypt)},n.prototype._final=function(){(this||sm)._cipher.scrub()},Koe=n,Koe}function Zq(){if(IPe)return $oe;IPe=!0;var e=cs().Buffer,t=Eue();function r(i,n,o,d){if(e.isBuffer(i)||(i=e.from(i,"binary")),n&&(e.isBuffer(n)||(n=e.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var g=o/8,y=e.alloc(g),_=e.alloc(d||0),I=e.alloc(0);g>0||d>0;){var N=new t;N.update(I),N.update(i),n&&N.update(n),I=N.digest();var T=0;if(g>0){var M=y.length-g;T=Math.min(g,I.length),I.copy(y,M,0,T),g-=T}if(T<I.length&&d>0){var D=_.length-d,P=Math.min(d,I.length-T);I.copy(_,D,T,T+P),d-=P}}return I.fill(0),{key:y,iv:_}}return $oe=r,$oe}function VIt(){if(CPe)return LG;CPe=!0;var e=Cue(),t=cGe(),r=cs().Buffer,i=uGe(),n=S6(),o=Xq(),d=Zq(),g=rs();function y(M,D,P){n.call(this||Tu),(this||Tu)._cache=new I,(this||Tu)._cipher=new o.AES(D),(this||Tu)._prev=r.from(P),(this||Tu)._mode=M,(this||Tu)._autopadding=!0}g(y,n),y.prototype._update=function(M){(this||Tu)._cache.add(M);for(var D,P,G=[];D=(this||Tu)._cache.get();)P=(this||Tu)._mode.encrypt(this||Tu,D),G.push(P);return r.concat(G)};var _=r.alloc(16,16);y.prototype._final=function(){var M=(this||Tu)._cache.flush();if((this||Tu)._autopadding)return M=(this||Tu)._mode.encrypt(this||Tu,M),(this||Tu)._cipher.scrub(),M;if(!M.equals(_))throw(this||Tu)._cipher.scrub(),new Error("data not multiple of block length")},y.prototype.setAutoPadding=function(M){return(this||Tu)._autopadding=!!M,this||Tu};function I(){(this||Tu).cache=r.allocUnsafe(0)}I.prototype.add=function(M){(this||Tu).cache=r.concat([(this||Tu).cache,M])},I.prototype.get=function(){if((this||Tu).cache.length>15){var M=(this||Tu).cache.slice(0,16);return(this||Tu).cache=(this||Tu).cache.slice(16),M}return null},I.prototype.flush=function(){for(var M=16-(this||Tu).cache.length,D=r.allocUnsafe(M),P=-1;++P<M;)D.writeUInt8(M,P);return r.concat([(this||Tu).cache,D])};function N(M,D,P){var G=e[M.toLowerCase()];if(!G)throw new TypeError("invalid suite type");if(typeof D=="string"&&(D=r.from(D)),D.length!==G.key/8)throw new TypeError("invalid key length "+D.length);if(typeof P=="string"&&(P=r.from(P)),G.mode!=="GCM"&&P.length!==G.iv)throw new TypeError("invalid iv length "+P.length);return G.type==="stream"?new i(G.module,D,P):G.type==="auth"?new t(G.module,D,P):new y(G.module,D,P)}function T(M,D){var P=e[M.toLowerCase()];if(!P)throw new TypeError("invalid suite type");var G=d(D,!1,P.key,P.iv);return N(M,G.key,G.iv)}return LG.createCipheriv=N,LG.createCipher=T,LG}function JIt(){if(wPe)return UG;wPe=!0;var e=cGe(),t=cs().Buffer,r=Cue(),i=uGe(),n=S6(),o=Xq(),d=Zq(),g=rs();function y(M,D,P){n.call(this||Rc),(this||Rc)._cache=new _,(this||Rc)._last=void 0,(this||Rc)._cipher=new o.AES(D),(this||Rc)._prev=t.from(P),(this||Rc)._mode=M,(this||Rc)._autopadding=!0}g(y,n),y.prototype._update=function(M){(this||Rc)._cache.add(M);for(var D,P,G=[];D=(this||Rc)._cache.get((this||Rc)._autopadding);)P=(this||Rc)._mode.decrypt(this||Rc,D),G.push(P);return t.concat(G)},y.prototype._final=function(){var M=(this||Rc)._cache.flush();if((this||Rc)._autopadding)return I((this||Rc)._mode.decrypt(this||Rc,M));if(M)throw new Error("data not multiple of block length")},y.prototype.setAutoPadding=function(M){return(this||Rc)._autopadding=!!M,this||Rc};function _(){(this||Rc).cache=t.allocUnsafe(0)}_.prototype.add=function(M){(this||Rc).cache=t.concat([(this||Rc).cache,M])},_.prototype.get=function(M){var D;if(M){if((this||Rc).cache.length>16)return D=(this||Rc).cache.slice(0,16),(this||Rc).cache=(this||Rc).cache.slice(16),D}else if((this||Rc).cache.length>=16)return D=(this||Rc).cache.slice(0,16),(this||Rc).cache=(this||Rc).cache.slice(16),D;return null},_.prototype.flush=function(){if((this||Rc).cache.length)return(this||Rc).cache};function I(M){var D=M[15];if(D<1||D>16)throw new Error("unable to decrypt data");for(var P=-1;++P<D;)if(M[P+(16-D)]!==D)throw new Error("unable to decrypt data");if(D!==16)return M.slice(0,16-D)}function N(M,D,P){var G=r[M.toLowerCase()];if(!G)throw new TypeError("invalid suite type");if(typeof P=="string"&&(P=t.from(P)),G.mode!=="GCM"&&P.length!==G.iv)throw new TypeError("invalid iv length "+P.length);if(typeof D=="string"&&(D=t.from(D)),D.length!==G.key/8)throw new TypeError("invalid key length "+D.length);return G.type==="stream"?new i(G.module,D,P,!0):G.type==="auth"?new e(G.module,D,P,!0):new y(G.module,D,P)}function T(M,D){var P=r[M.toLowerCase()];if(!P)throw new TypeError("invalid suite type");var G=d(D,!1,P.key,P.iv);return N(M,G.key,G.iv)}return UG.createDecipher=T,UG.createDecipheriv=N,UG}function wue(){if(OPe)return Bg;OPe=!0;var e=VIt(),t=JIt(),r=sGe;function i(){return Object.keys(r)}return Bg.createCipher=Bg.Cipher=e.createCipher,Bg.createCipheriv=Bg.Cipheriv=e.createCipheriv,Bg.createDecipher=Bg.Decipher=t.createDecipher,Bg.createDecipheriv=Bg.Decipheriv=t.createDecipheriv,Bg.listCiphers=Bg.getCiphers=i,Bg}function zIt(){return NPe||(NPe=!0,Fy["des-ecb"]={key:8,iv:0},Fy["des-cbc"]=Fy.des={key:8,iv:8},Fy["des-ede3-cbc"]=Fy.des3={key:24,iv:8},Fy["des-ede3"]={key:24,iv:0},Fy["des-ede-cbc"]={key:16,iv:8},Fy["des-ede"]={key:16,iv:0}),Fy}function KIt(){if(xPe)return Mg;xPe=!0;var e=PIt(),t=wue(),r=Cue(),i=zIt(),n=Zq();function o(I,N){I=I.toLowerCase();var T,M;if(r[I])T=r[I].key,M=r[I].iv;else if(i[I])T=i[I].key*8,M=i[I].iv;else throw new TypeError("invalid suite type");var D=n(N,!1,T,M);return g(I,D.key,D.iv)}function d(I,N){I=I.toLowerCase();var T,M;if(r[I])T=r[I].key,M=r[I].iv;else if(i[I])T=i[I].key*8,M=i[I].iv;else throw new TypeError("invalid suite type");var D=n(N,!1,T,M);return y(I,D.key,D.iv)}function g(I,N,T){if(I=I.toLowerCase(),r[I])return t.createCipheriv(I,N,T);if(i[I])return new e({key:N,iv:T,mode:I});throw new TypeError("invalid suite type")}function y(I,N,T){if(I=I.toLowerCase(),r[I])return t.createDecipheriv(I,N,T);if(i[I])return new e({key:N,iv:T,mode:I,decrypt:!0});throw new TypeError("invalid suite type")}function _(){return Object.keys(i).concat(t.getCiphers())}return Mg.createCipher=Mg.Cipher=o,Mg.createCipheriv=Mg.Cipheriv=g,Mg.createDecipher=Mg.Decipher=d,Mg.createDecipheriv=Mg.Decipheriv=y,Mg.listCiphers=Mg.getCiphers=_,Mg}function fGe(){return TPe||(TPe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Nt).negative=0,(this||Nt).words=null,(this||Nt).length=0,(this||Nt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Nt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Nt).negative=1,s=-s),s<67108864?((this||Nt).words=[s&67108863],(this||Nt).length=1):s<4503599627370496?((this||Nt).words=[s&67108863,s/67108864&67108863],(this||Nt).length=2):(r(s<9007199254740992),(this||Nt).words=[s&67108863,s/67108864&67108863,1],(this||Nt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Nt).words=[0],(this||Nt).length=1,this||Nt;(this||Nt).length=Math.ceil(s.length/3),(this||Nt).words=new Array((this||Nt).length);for(var m=0;m<(this||Nt).length;m++)(this||Nt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Nt).words[E]|=w<<x&67108863,(this||Nt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Nt).words[E]|=w<<x&67108863,(this||Nt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Nt).length=Math.ceil((s.length-l)/6),(this||Nt).words=new Array((this||Nt).length);for(var m=0;m<(this||Nt).length;m++)(this||Nt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Nt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Nt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Nt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Nt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Nt).words=[0],(this||Nt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Nt).words[0]+u<67108864?(this||Nt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Nt).words[0]+u<67108864?(this||Nt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Nt).length);for(var l=0;l<(this||Nt).length;l++)s.words[l]=(this||Nt).words[l];s.length=(this||Nt).length,s.negative=(this||Nt).negative,s.red=(this||Nt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Nt).length<s;)(this||Nt).words[(this||Nt).length++]=0;return this||Nt},n.prototype.strip=function(){for(;(this||Nt).length>1&&(this||Nt).words[(this||Nt).length-1]===0;)(this||Nt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Nt).length===1&&(this||Nt).words[0]===0&&((this||Nt).negative=0),this||Nt},n.prototype.inspect=function(){return((this||Nt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Nt).length;w++){var x=(this||Nt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Nt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Nt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Nt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Nt).words[0];return(this||Nt).length===2?s+=(this||Nt).words[1]*67108864:(this||Nt).length===3&&(this||Nt).words[2]===1?s+=4503599627370496+(this||Nt).words[1]*67108864:(this||Nt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Nt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Nt).words[(this||Nt).length-1],l=this._countBits(s);return((this||Nt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Nt).length;l++){var A=this._zeroBits((this||Nt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Nt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Nt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Nt).negative^=1),this||Nt},n.prototype.iuor=function(s){for(;(this||Nt).length<s.length;)(this||Nt).words[(this||Nt).length++]=0;for(var l=0;l<s.length;l++)(this||Nt).words[l]=(this||Nt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Nt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Nt).length>s.length?this.clone().ior(s):s.clone().ior(this||Nt)},n.prototype.uor=function(s){return(this||Nt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Nt)},n.prototype.iuand=function(s){var l;(this||Nt).length>s.length?l=s:l=this||Nt;for(var A=0;A<l.length;A++)(this||Nt).words[A]=(this||Nt).words[A]&s.words[A];return(this||Nt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Nt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Nt).length>s.length?this.clone().iand(s):s.clone().iand(this||Nt)},n.prototype.uand=function(s){return(this||Nt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Nt)},n.prototype.iuxor=function(s){var l,A;(this||Nt).length>s.length?(l=this||Nt,A=s):(l=s,A=this||Nt);for(var m=0;m<A.length;m++)(this||Nt).words[m]=l.words[m]^A.words[m];if((this||Nt)!==l)for(;m<l.length;m++)(this||Nt).words[m]=l.words[m];return(this||Nt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Nt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Nt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Nt)},n.prototype.uxor=function(s){return(this||Nt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Nt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Nt).words[m]=~(this||Nt).words[m]&67108863;return A>0&&((this||Nt).words[m]=~(this||Nt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Nt).words[A]=(this||Nt).words[A]|1<<m:(this||Nt).words[A]=(this||Nt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Nt).negative!==0&&s.negative===0)return(this||Nt).negative=0,l=this.isub(s),(this||Nt).negative^=1,this._normSign();if((this||Nt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Nt).length>s.length?(A=this||Nt,m=s):(A=s,m=this||Nt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Nt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Nt).words[w]=l&67108863,E=l>>>26;if((this||Nt).length=A.length,E!==0)(this||Nt).words[(this||Nt).length]=E,(this||Nt).length++;else if(A!==(this||Nt))for(;w<A.length;w++)(this||Nt).words[w]=A.words[w];return this||Nt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Nt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Nt).negative!==0?((this||Nt).negative=0,l=s.sub(this||Nt),(this||Nt).negative=1,l):(this||Nt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Nt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Nt).negative!==0)return(this||Nt).negative=0,this.iadd(s),(this||Nt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Nt).negative=0,(this||Nt).length=1,(this||Nt).words[0]=0,this||Nt;var m,E;A>0?(m=this||Nt,E=s):(m=s,E=this||Nt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Nt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Nt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Nt))for(;x<m.length;x++)(this||Nt).words[x]=m.words[x];return(this||Nt).length=Math.max((this||Nt).length,x),m!==(this||Nt)&&((this||Nt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Nt).length+s.length;return(this||Nt).length===10&&s.length===10?A=D(this||Nt,s,l):m<63?A=M(this||Nt,s,l):m<1024?A=P(this||Nt,s,l):A=G(this||Nt,s,l),A};function q(O,s){(this||Nt).x=O,(this||Nt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Nt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Nt).length+s.length),G(this||Nt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Nt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Nt).length;A++){var m=((this||Nt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Nt).words[A]=E&67108863}return l!==0&&((this||Nt).words[A]=l,(this||Nt).length++),this||Nt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Nt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Nt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Nt).length;E++){var x=(this||Nt).words[E]&m,R=((this||Nt).words[E]|0)-x<<l;(this||Nt).words[E]=R|w,w=x>>>26-l}w&&((this||Nt).words[E]=w,(this||Nt).length++)}if(A!==0){for(E=(this||Nt).length-1;E>=0;E--)(this||Nt).words[E+A]=(this||Nt).words[E];for(E=0;E<A;E++)(this||Nt).words[E]=0;(this||Nt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Nt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Nt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Nt).words[u];R.length=w}if(w!==0)if((this||Nt).length>w)for((this||Nt).length-=w,u=0;u<(this||Nt).length;u++)(this||Nt).words[u]=(this||Nt).words[u+w];else(this||Nt).words[0]=0,(this||Nt).length=1;var C=0;for(u=(this||Nt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Nt).words[u]|0;(this||Nt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Nt).length===0&&((this||Nt).words[0]=0,(this||Nt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Nt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Nt).length<=A)return!1;var E=(this||Nt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Nt).negative===0,"imaskn works only with positive numbers"),(this||Nt).length<=A)return this||Nt;if(l!==0&&A++,(this||Nt).length=Math.min(A,(this||Nt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Nt).words[(this||Nt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Nt).negative!==0?(this||Nt).length===1&&((this||Nt).words[0]|0)<s?((this||Nt).words[0]=s-((this||Nt).words[0]|0),(this||Nt).negative=0,this||Nt):((this||Nt).negative=0,this.isubn(s),(this||Nt).negative=1,this||Nt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Nt).words[0]+=s;for(var l=0;l<(this||Nt).length&&(this||Nt).words[l]>=67108864;l++)(this||Nt).words[l]-=67108864,l===(this||Nt).length-1?(this||Nt).words[l+1]=1:(this||Nt).words[l+1]++;return(this||Nt).length=Math.max((this||Nt).length,l+1),this||Nt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Nt).negative!==0)return(this||Nt).negative=0,this.iaddn(s),(this||Nt).negative=1,this||Nt;if((this||Nt).words[0]-=s,(this||Nt).length===1&&(this||Nt).words[0]<0)(this||Nt).words[0]=-(this||Nt).words[0],(this||Nt).negative=1;else for(var l=0;l<(this||Nt).length&&(this||Nt).words[l]<0;l++)(this||Nt).words[l]+=67108864,(this||Nt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Nt).negative=0,this||Nt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Nt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Nt).words[E+A]=w&67108863}for(;E<(this||Nt).length-A;E++)w=((this||Nt).words[E+A]|0)+x,x=w>>26,(this||Nt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Nt).length;E++)w=-((this||Nt).words[E]|0)+x,x=w>>26,(this||Nt).words[E]=w&67108863;return(this||Nt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Nt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Nt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Nt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Nt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Nt).length||this.cmp(s)<0?{div:new n(0),mod:this||Nt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Nt).length-1;m>=0;m--)A=(l*A+((this||Nt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Nt).length-1;A>=0;A--){var m=((this||Nt).words[A]|0)+l*67108864;(this||Nt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Nt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Nt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Nt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Nt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Nt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Nt).length<=A)return this._expand(A+1),(this||Nt).words[A]|=m,this||Nt;for(var E=m,w=A;E!==0&&w<(this||Nt).length;w++){var x=(this||Nt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Nt).words[w]=x}return E!==0&&((this||Nt).words[w]=E,(this||Nt).length++),this||Nt},n.prototype.isZero=function(){return(this||Nt).length===1&&(this||Nt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Nt).negative!==0&&!l)return-1;if((this||Nt).negative===0&&l)return 1;this.strip();var A;if((this||Nt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Nt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Nt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Nt).negative!==0&&s.negative===0)return-1;if((this||Nt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Nt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Nt).length>s.length)return 1;if((this||Nt).length<s.length)return-1;for(var l=0,A=(this||Nt).length-1;A>=0;A--){var m=(this||Nt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Nt).red,"Already a number in reduction context"),r((this||Nt).negative===0,"red works only with positives"),s.convertTo(this||Nt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Nt).red,"fromRed works only with numbers in reduction context"),(this||Nt).red.convertFrom(this||Nt)},n.prototype._forceRed=function(s){return(this||Nt).red=s,this||Nt},n.prototype.forceRed=function(s){return r(!(this||Nt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Nt).red,"redAdd works only with red numbers"),(this||Nt).red.add(this||Nt,s)},n.prototype.redIAdd=function(s){return r((this||Nt).red,"redIAdd works only with red numbers"),(this||Nt).red.iadd(this||Nt,s)},n.prototype.redSub=function(s){return r((this||Nt).red,"redSub works only with red numbers"),(this||Nt).red.sub(this||Nt,s)},n.prototype.redISub=function(s){return r((this||Nt).red,"redISub works only with red numbers"),(this||Nt).red.isub(this||Nt,s)},n.prototype.redShl=function(s){return r((this||Nt).red,"redShl works only with red numbers"),(this||Nt).red.shl(this||Nt,s)},n.prototype.redMul=function(s){return r((this||Nt).red,"redMul works only with red numbers"),(this||Nt).red._verify2(this||Nt,s),(this||Nt).red.mul(this||Nt,s)},n.prototype.redIMul=function(s){return r((this||Nt).red,"redMul works only with red numbers"),(this||Nt).red._verify2(this||Nt,s),(this||Nt).red.imul(this||Nt,s)},n.prototype.redSqr=function(){return r((this||Nt).red,"redSqr works only with red numbers"),(this||Nt).red._verify1(this||Nt),(this||Nt).red.sqr(this||Nt)},n.prototype.redISqr=function(){return r((this||Nt).red,"redISqr works only with red numbers"),(this||Nt).red._verify1(this||Nt),(this||Nt).red.isqr(this||Nt)},n.prototype.redSqrt=function(){return r((this||Nt).red,"redSqrt works only with red numbers"),(this||Nt).red._verify1(this||Nt),(this||Nt).red.sqrt(this||Nt)},n.prototype.redInvm=function(){return r((this||Nt).red,"redInvm works only with red numbers"),(this||Nt).red._verify1(this||Nt),(this||Nt).red.invm(this||Nt)},n.prototype.redNeg=function(){return r((this||Nt).red,"redNeg works only with red numbers"),(this||Nt).red._verify1(this||Nt),(this||Nt).red.neg(this||Nt)},n.prototype.redPow=function(s){return r((this||Nt).red&&!s.red,"redPow(normalNum)"),(this||Nt).red._verify1(this||Nt),(this||Nt).red.pow(this||Nt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Nt).name=O,(this||Nt).p=new n(s,16),(this||Nt).n=(this||Nt).p.bitLength(),(this||Nt).k=new n(1).iushln((this||Nt).n).isub((this||Nt).p),(this||Nt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Nt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Nt).tmp),l=this.imulK(l),l=l.iadd((this||Nt).tmp),A=l.bitLength();while(A>(this||Nt).n);var m=A<(this||Nt).n?-1:l.ucmp((this||Nt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Nt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Nt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Nt).k)};function ce(){ne.call(this||Nt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Nt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Nt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Nt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Nt).m=s.p,(this||Nt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Nt).m=O,(this||Nt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Nt).prime?(this||Nt).prime.ireduce(s)._forceRed(this||Nt):s.umod((this||Nt).m)._forceRed(this||Nt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Nt).m.sub(s)._forceRed(this||Nt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Nt).m)>=0&&A.isub((this||Nt).m),A._forceRed(this||Nt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Nt).m)>=0&&A.isub((this||Nt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Nt).m),A._forceRed(this||Nt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Nt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Nt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Nt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Nt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Nt),x=w.redNeg(),R=(this||Nt).m.subn(1).iushrn(1),u=(this||Nt).m.bitLength();for(u=new n(2*u*u).toRed(this||Nt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Nt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Nt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Nt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Nt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Nt,O),(this||Nt).shift=(this||Nt).m.bitLength(),(this||Nt).shift%26!==0&&((this||Nt).shift+=26-(this||Nt).shift%26),(this||Nt).r=new n(1).iushln((this||Nt).shift),(this||Nt).r2=this.imod((this||Nt).r.sqr()),(this||Nt).rinv=(this||Nt).r._invmp((this||Nt).m),(this||Nt).minv=(this||Nt).rinv.mul((this||Nt).r).isubn(1).div((this||Nt).m),(this||Nt).minv=(this||Nt).minv.umod((this||Nt).r),(this||Nt).minv=(this||Nt).r.sub((this||Nt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Nt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Nt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Nt).shift).mul((this||Nt).minv).imaskn((this||Nt).shift).mul((this||Nt).m),E=A.isub(m).iushrn((this||Nt).shift),w=E;return E.cmp((this||Nt).m)>=0?w=E.isub((this||Nt).m):E.cmpn(0)<0&&(w=E.iadd((this||Nt).m)),w._forceRed(this||Nt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Nt);var A=s.mul(l),m=A.maskn((this||Nt).shift).mul((this||Nt).minv).imaskn((this||Nt).shift).mul((this||Nt).m),E=A.isub(m).iushrn((this||Nt).shift),w=E;return E.cmp((this||Nt).m)>=0?w=E.isub((this||Nt).m):E.cmpn(0)<0&&(w=E.iadd((this||Nt).m)),w._forceRed(this||Nt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Nt).m).mul((this||Nt).r2));return l._forceRed(this||Nt)}})(Yoe,dGe)),Yoe.exports}function $It(){return BPe||(BPe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||xt).negative=0,(this||xt).words=null,(this||xt).length=0,(this||xt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||xt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||xt).negative=1,s=-s),s<67108864?((this||xt).words=[s&67108863],(this||xt).length=1):s<4503599627370496?((this||xt).words=[s&67108863,s/67108864&67108863],(this||xt).length=2):(r(s<9007199254740992),(this||xt).words=[s&67108863,s/67108864&67108863,1],(this||xt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||xt).words=[0],(this||xt).length=1,this||xt;(this||xt).length=Math.ceil(s.length/3),(this||xt).words=new Array((this||xt).length);for(var m=0;m<(this||xt).length;m++)(this||xt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||xt).words[E]|=w<<x&67108863,(this||xt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||xt).words[E]|=w<<x&67108863,(this||xt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||xt).length=Math.ceil((s.length-l)/6),(this||xt).words=new Array((this||xt).length);for(var m=0;m<(this||xt).length;m++)(this||xt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||xt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||xt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||xt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||xt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||xt).words=[0],(this||xt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||xt).words[0]+u<67108864?(this||xt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||xt).words[0]+u<67108864?(this||xt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||xt).length);for(var l=0;l<(this||xt).length;l++)s.words[l]=(this||xt).words[l];s.length=(this||xt).length,s.negative=(this||xt).negative,s.red=(this||xt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||xt).length<s;)(this||xt).words[(this||xt).length++]=0;return this||xt},n.prototype.strip=function(){for(;(this||xt).length>1&&(this||xt).words[(this||xt).length-1]===0;)(this||xt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||xt).length===1&&(this||xt).words[0]===0&&((this||xt).negative=0),this||xt},n.prototype.inspect=function(){return((this||xt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||xt).length;w++){var x=(this||xt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||xt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||xt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||xt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||xt).words[0];return(this||xt).length===2?s+=(this||xt).words[1]*67108864:(this||xt).length===3&&(this||xt).words[2]===1?s+=4503599627370496+(this||xt).words[1]*67108864:(this||xt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||xt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||xt).words[(this||xt).length-1],l=this._countBits(s);return((this||xt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||xt).length;l++){var A=this._zeroBits((this||xt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||xt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||xt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||xt).negative^=1),this||xt},n.prototype.iuor=function(s){for(;(this||xt).length<s.length;)(this||xt).words[(this||xt).length++]=0;for(var l=0;l<s.length;l++)(this||xt).words[l]=(this||xt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||xt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||xt).length>s.length?this.clone().ior(s):s.clone().ior(this||xt)},n.prototype.uor=function(s){return(this||xt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||xt)},n.prototype.iuand=function(s){var l;(this||xt).length>s.length?l=s:l=this||xt;for(var A=0;A<l.length;A++)(this||xt).words[A]=(this||xt).words[A]&s.words[A];return(this||xt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||xt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||xt).length>s.length?this.clone().iand(s):s.clone().iand(this||xt)},n.prototype.uand=function(s){return(this||xt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||xt)},n.prototype.iuxor=function(s){var l,A;(this||xt).length>s.length?(l=this||xt,A=s):(l=s,A=this||xt);for(var m=0;m<A.length;m++)(this||xt).words[m]=l.words[m]^A.words[m];if((this||xt)!==l)for(;m<l.length;m++)(this||xt).words[m]=l.words[m];return(this||xt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||xt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||xt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||xt)},n.prototype.uxor=function(s){return(this||xt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||xt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||xt).words[m]=~(this||xt).words[m]&67108863;return A>0&&((this||xt).words[m]=~(this||xt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||xt).words[A]=(this||xt).words[A]|1<<m:(this||xt).words[A]=(this||xt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||xt).negative!==0&&s.negative===0)return(this||xt).negative=0,l=this.isub(s),(this||xt).negative^=1,this._normSign();if((this||xt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||xt).length>s.length?(A=this||xt,m=s):(A=s,m=this||xt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||xt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||xt).words[w]=l&67108863,E=l>>>26;if((this||xt).length=A.length,E!==0)(this||xt).words[(this||xt).length]=E,(this||xt).length++;else if(A!==(this||xt))for(;w<A.length;w++)(this||xt).words[w]=A.words[w];return this||xt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||xt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||xt).negative!==0?((this||xt).negative=0,l=s.sub(this||xt),(this||xt).negative=1,l):(this||xt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||xt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||xt).negative!==0)return(this||xt).negative=0,this.iadd(s),(this||xt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||xt).negative=0,(this||xt).length=1,(this||xt).words[0]=0,this||xt;var m,E;A>0?(m=this||xt,E=s):(m=s,E=this||xt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||xt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||xt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||xt))for(;x<m.length;x++)(this||xt).words[x]=m.words[x];return(this||xt).length=Math.max((this||xt).length,x),m!==(this||xt)&&((this||xt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||xt).length+s.length;return(this||xt).length===10&&s.length===10?A=D(this||xt,s,l):m<63?A=M(this||xt,s,l):m<1024?A=P(this||xt,s,l):A=G(this||xt,s,l),A};function q(O,s){(this||xt).x=O,(this||xt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||xt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||xt).length+s.length),G(this||xt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||xt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||xt).length;A++){var m=((this||xt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||xt).words[A]=E&67108863}return l!==0&&((this||xt).words[A]=l,(this||xt).length++),this||xt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||xt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||xt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||xt).length;E++){var x=(this||xt).words[E]&m,R=((this||xt).words[E]|0)-x<<l;(this||xt).words[E]=R|w,w=x>>>26-l}w&&((this||xt).words[E]=w,(this||xt).length++)}if(A!==0){for(E=(this||xt).length-1;E>=0;E--)(this||xt).words[E+A]=(this||xt).words[E];for(E=0;E<A;E++)(this||xt).words[E]=0;(this||xt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||xt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||xt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||xt).words[u];R.length=w}if(w!==0)if((this||xt).length>w)for((this||xt).length-=w,u=0;u<(this||xt).length;u++)(this||xt).words[u]=(this||xt).words[u+w];else(this||xt).words[0]=0,(this||xt).length=1;var C=0;for(u=(this||xt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||xt).words[u]|0;(this||xt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||xt).length===0&&((this||xt).words[0]=0,(this||xt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||xt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||xt).length<=A)return!1;var E=(this||xt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||xt).negative===0,"imaskn works only with positive numbers"),(this||xt).length<=A)return this||xt;if(l!==0&&A++,(this||xt).length=Math.min(A,(this||xt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||xt).words[(this||xt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||xt).negative!==0?(this||xt).length===1&&((this||xt).words[0]|0)<s?((this||xt).words[0]=s-((this||xt).words[0]|0),(this||xt).negative=0,this||xt):((this||xt).negative=0,this.isubn(s),(this||xt).negative=1,this||xt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||xt).words[0]+=s;for(var l=0;l<(this||xt).length&&(this||xt).words[l]>=67108864;l++)(this||xt).words[l]-=67108864,l===(this||xt).length-1?(this||xt).words[l+1]=1:(this||xt).words[l+1]++;return(this||xt).length=Math.max((this||xt).length,l+1),this||xt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||xt).negative!==0)return(this||xt).negative=0,this.iaddn(s),(this||xt).negative=1,this||xt;if((this||xt).words[0]-=s,(this||xt).length===1&&(this||xt).words[0]<0)(this||xt).words[0]=-(this||xt).words[0],(this||xt).negative=1;else for(var l=0;l<(this||xt).length&&(this||xt).words[l]<0;l++)(this||xt).words[l]+=67108864,(this||xt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||xt).negative=0,this||xt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||xt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||xt).words[E+A]=w&67108863}for(;E<(this||xt).length-A;E++)w=((this||xt).words[E+A]|0)+x,x=w>>26,(this||xt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||xt).length;E++)w=-((this||xt).words[E]|0)+x,x=w>>26,(this||xt).words[E]=w&67108863;return(this||xt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||xt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||xt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||xt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||xt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||xt).length||this.cmp(s)<0?{div:new n(0),mod:this||xt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||xt).length-1;m>=0;m--)A=(l*A+((this||xt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||xt).length-1;A>=0;A--){var m=((this||xt).words[A]|0)+l*67108864;(this||xt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||xt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||xt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||xt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||xt).words[0]&1)===1},n.prototype.andln=function(s){return(this||xt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||xt).length<=A)return this._expand(A+1),(this||xt).words[A]|=m,this||xt;for(var E=m,w=A;E!==0&&w<(this||xt).length;w++){var x=(this||xt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||xt).words[w]=x}return E!==0&&((this||xt).words[w]=E,(this||xt).length++),this||xt},n.prototype.isZero=function(){return(this||xt).length===1&&(this||xt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||xt).negative!==0&&!l)return-1;if((this||xt).negative===0&&l)return 1;this.strip();var A;if((this||xt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||xt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||xt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||xt).negative!==0&&s.negative===0)return-1;if((this||xt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||xt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||xt).length>s.length)return 1;if((this||xt).length<s.length)return-1;for(var l=0,A=(this||xt).length-1;A>=0;A--){var m=(this||xt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||xt).red,"Already a number in reduction context"),r((this||xt).negative===0,"red works only with positives"),s.convertTo(this||xt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||xt).red,"fromRed works only with numbers in reduction context"),(this||xt).red.convertFrom(this||xt)},n.prototype._forceRed=function(s){return(this||xt).red=s,this||xt},n.prototype.forceRed=function(s){return r(!(this||xt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||xt).red,"redAdd works only with red numbers"),(this||xt).red.add(this||xt,s)},n.prototype.redIAdd=function(s){return r((this||xt).red,"redIAdd works only with red numbers"),(this||xt).red.iadd(this||xt,s)},n.prototype.redSub=function(s){return r((this||xt).red,"redSub works only with red numbers"),(this||xt).red.sub(this||xt,s)},n.prototype.redISub=function(s){return r((this||xt).red,"redISub works only with red numbers"),(this||xt).red.isub(this||xt,s)},n.prototype.redShl=function(s){return r((this||xt).red,"redShl works only with red numbers"),(this||xt).red.shl(this||xt,s)},n.prototype.redMul=function(s){return r((this||xt).red,"redMul works only with red numbers"),(this||xt).red._verify2(this||xt,s),(this||xt).red.mul(this||xt,s)},n.prototype.redIMul=function(s){return r((this||xt).red,"redMul works only with red numbers"),(this||xt).red._verify2(this||xt,s),(this||xt).red.imul(this||xt,s)},n.prototype.redSqr=function(){return r((this||xt).red,"redSqr works only with red numbers"),(this||xt).red._verify1(this||xt),(this||xt).red.sqr(this||xt)},n.prototype.redISqr=function(){return r((this||xt).red,"redISqr works only with red numbers"),(this||xt).red._verify1(this||xt),(this||xt).red.isqr(this||xt)},n.prototype.redSqrt=function(){return r((this||xt).red,"redSqrt works only with red numbers"),(this||xt).red._verify1(this||xt),(this||xt).red.sqrt(this||xt)},n.prototype.redInvm=function(){return r((this||xt).red,"redInvm works only with red numbers"),(this||xt).red._verify1(this||xt),(this||xt).red.invm(this||xt)},n.prototype.redNeg=function(){return r((this||xt).red,"redNeg works only with red numbers"),(this||xt).red._verify1(this||xt),(this||xt).red.neg(this||xt)},n.prototype.redPow=function(s){return r((this||xt).red&&!s.red,"redPow(normalNum)"),(this||xt).red._verify1(this||xt),(this||xt).red.pow(this||xt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||xt).name=O,(this||xt).p=new n(s,16),(this||xt).n=(this||xt).p.bitLength(),(this||xt).k=new n(1).iushln((this||xt).n).isub((this||xt).p),(this||xt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||xt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||xt).tmp),l=this.imulK(l),l=l.iadd((this||xt).tmp),A=l.bitLength();while(A>(this||xt).n);var m=A<(this||xt).n?-1:l.ucmp((this||xt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||xt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||xt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||xt).k)};function ce(){ne.call(this||xt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||xt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||xt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||xt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||xt).m=s.p,(this||xt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||xt).m=O,(this||xt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||xt).prime?(this||xt).prime.ireduce(s)._forceRed(this||xt):s.umod((this||xt).m)._forceRed(this||xt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||xt).m.sub(s)._forceRed(this||xt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||xt).m)>=0&&A.isub((this||xt).m),A._forceRed(this||xt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||xt).m)>=0&&A.isub((this||xt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||xt).m),A._forceRed(this||xt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||xt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||xt).m.andln(3);if(r(l%2===1),l===3){var A=(this||xt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||xt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||xt),x=w.redNeg(),R=(this||xt).m.subn(1).iushrn(1),u=(this||xt).m.bitLength();for(u=new n(2*u*u).toRed(this||xt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||xt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||xt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||xt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||xt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||xt,O),(this||xt).shift=(this||xt).m.bitLength(),(this||xt).shift%26!==0&&((this||xt).shift+=26-(this||xt).shift%26),(this||xt).r=new n(1).iushln((this||xt).shift),(this||xt).r2=this.imod((this||xt).r.sqr()),(this||xt).rinv=(this||xt).r._invmp((this||xt).m),(this||xt).minv=(this||xt).rinv.mul((this||xt).r).isubn(1).div((this||xt).m),(this||xt).minv=(this||xt).minv.umod((this||xt).r),(this||xt).minv=(this||xt).r.sub((this||xt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||xt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||xt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||xt).shift).mul((this||xt).minv).imaskn((this||xt).shift).mul((this||xt).m),E=A.isub(m).iushrn((this||xt).shift),w=E;return E.cmp((this||xt).m)>=0?w=E.isub((this||xt).m):E.cmpn(0)<0&&(w=E.iadd((this||xt).m)),w._forceRed(this||xt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||xt);var A=s.mul(l),m=A.maskn((this||xt).shift).mul((this||xt).minv).imaskn((this||xt).shift).mul((this||xt).m),E=A.isub(m).iushrn((this||xt).shift),w=E;return E.cmp((this||xt).m)>=0?w=E.isub((this||xt).m):E.cmpn(0)<0&&(w=E.iadd((this||xt).m)),w._forceRed(this||xt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||xt).m).mul((this||xt).r2));return l._forceRed(this||xt)}})(Woe,lGe)),Woe.exports}function gq(){}function c6(e){hGe.call(this),this._block=_q.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}function mq(){pGe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function jq(e,t){return e<<t|e>>>32-t}function vh(e,t,r,i,n,o,d){return jq(e+(t&r|~t&i)+n+o|0,d)+t|0}function Rh(e,t,r,i,n,o,d){return jq(e+(t&i|r&~i)+n+o|0,d)+t|0}function Sh(e,t,r,i,n,o,d){return jq(e+(t^r^i)+n+o|0,d)+t|0}function Ih(e,t,r,i,n,o,d){return jq(e+(r^(t|~i))+n+o|0,d)+t|0}function yq(){gGe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function E4(e,t){return e<<t|e>>>32-t}function kPe(e,t,r,i,n,o,d,g){return E4(e+(t^r^i)+o+d|0,g)+n|0}function PPe(e,t,r,i,n,o,d,g){return E4(e+(t&r|~t&i)+o+d|0,g)+n|0}function LPe(e,t,r,i,n,o,d,g){return E4(e+((t|~r)^i)+o+d|0,g)+n|0}function UPe(e,t,r,i,n,o,d,g){return E4(e+(t&i|r&~i)+o+d|0,g)+n|0}function FPe(e,t,r,i,n,o,d,g){return E4(e+(t^(r|~i))+o+d|0,g)+n|0}function bq(e,t){(this||_0)._block=_Ge.alloc(e),(this||_0)._finalSize=t,(this||_0)._blockSize=e,(this||_0)._len=0}function aD(){this.init(),(this||ha)._w=s3t,mGe.call(this||ha,64,56)}function c3t(e,t,r){return r^e&(t^r)}function u3t(e,t,r){return e&t|r&(e|t)}function d3t(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f3t(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l3t(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function sD(){this.init(),(this||Xc)._w=g3t,bGe.call(this||Xc,64,56)}function _3t(e){return e<<30|e>>>2}function m3t(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}function cD(){this.init(),(this||Zc)._w=R3t,EGe.call(this||Zc,64,56)}function S3t(e){return e<<5|e>>>27}function I3t(e){return e<<30|e>>>2}function C3t(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}function Eq(){this.init(),(this||nl)._w=B3t,x3t.call(this||nl,64,56)}function uD(){this.init(),(this||ni)._w=P3t,vGe.call(this||ni,128,112)}function HPe(e,t,r){return r^e&(t^r)}function GPe(e,t,r){return e&t|r&(e|t)}function qPe(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function VPe(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function L3t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function U3t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function F3t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Q3t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function jf(e,t){return e>>>0<t>>>0?1:0}function vq(){this.init(),(this||Sc)._w=J3t,q3t.call(this||Sc,128,112)}function fm(e){IGe.call(this||sd),(this||sd).hashMode=typeof e=="string",(this||sd).hashMode?(this||sd)[e]=(this||sd)._finalOrDigest:(this||sd).final=(this||sd)._finalOrDigest,(this||sd)._final&&((this||sd).__final=(this||sd)._final,(this||sd)._final=null),(this||sd)._decoder=null,(this||sd)._encoding=null}function Rq(e){CGe.call(this,"digest"),this._hash=e}function Sq(e,t){OGe.call(this,"digest"),typeof t=="string"&&(t=g4.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=g4.concat([t,j3t],64));for(var r=this._ipad=g4.allocUnsafe(64),i=this._opad=g4.allocUnsafe(64),n=0;n<64;n++)r[n]=54^t[n],i[n]=92^t[n];this._hash=[r]}function bD(e,t){NGe.call(this,"digest"),typeof t=="string"&&(t=dD.from(t));var r=e==="sha512"||e==="sha384"?128:64;this._alg=e,this._key=t,t.length>r?t=(e==="rmd160"?new Kce:$ce(e)).update(t).digest():t.length<r&&(t=dD.concat([t,n8t],r));for(var i=this._ipad=dD.allocUnsafe(r),n=this._opad=dD.allocUnsafe(r),o=0;o<r;o++)i[o]=54^t[o],n[o]=92^t[o];this._hash=e==="rmd160"?new Kce:$ce(e),this._hash.update(i)}function zPe(e,t){if(typeof e!="string"&&!i8t.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}function DGe(e,t,r){var i=(function(_){function I(N){return c8t(_).update(N).digest()}return _==="rmd160"||_==="ripemd160"?function(N){return new s8t().update(N).digest()}:_==="md5"?a8t:I})(e),n=e==="sha512"||e==="sha384"?128:64;t.length>n?t=i(t):t.length<n&&(t=gm.concat([t,d8t],n));for(var o=gm.allocUnsafe(n+Iq[e]),d=gm.allocUnsafe(n+Iq[e]),g=0;g<n;g++)o[g]=54^t[g],d[g]=92^t[g];var y=gm.allocUnsafe(n+r+4);o.copy(y,0,0,n),(this||Am).ipad1=y,(this||Am).ipad2=o,(this||Am).opad=d,(this||Am).alg=e,(this||Am).blocksize=n,(this||Am).hash=i,(this||Am).size=Iq[e]}function XPe(e,t,r,i,n){return vD.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(o){return vD.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},o,i<<3)})).then((function(o){return yO.from(o)}))}function ZPe(e,t){if(!e)throw new Error(t||"Assertion failed")}function Dg(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}function p8t(){this.tmp=new Array(2),this.keys=null}function $y(e){FGe.call(this,e);var t=new p8t;this._desState=t,this.deriveKeys(t,e.key)}function y8t(e){_8t.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function E8t(e,t){b8t.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);this.ciphers=e==="encrypt"?[_6.create({type:"encrypt",key:r}),_6.create({type:"decrypt",key:i}),_6.create({type:"encrypt",key:n})]:[_6.create({type:"decrypt",key:n}),_6.create({type:"encrypt",key:i}),_6.create({type:"decrypt",key:r})]}function Y8(e){qGe.call(this,e);var t=new E8t(this.type,this.options.key);this._edeState=t}function GG(e){JGe.call(this||Uq);var t,r=e.mode.toLowerCase(),i=fD[r];t=e.decrypt?"decrypt":"encrypt";var n=e.key;d4.isBuffer(n)||(n=d4.from(n)),r!=="des-ede"&&r!=="des-ede-cbc"||(n=d4.concat([n,n.slice(0,8)]));var o=e.iv;d4.isBuffer(o)||(o=d4.from(o)),(this||Uq)._des=i.create({key:n,iv:o,type:t})}function nLe(e,t,r){var i=t.length,n=w8t(t,e._cache);return e._cache=e._cache.slice(i),e._prev=lD.concat([e._prev,r?t:n]),n}function O8t(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=Xce.concat([e._prev.slice(1),Xce.from([r?t:i])]),i}function N8t(e,t,r){for(var i,n,o=-1,d=0;++o<8;)i=t&1<<7-o?128:0,d+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^i))>>o%8,e._prev=x8t(e._prev,r?i:n);return d}function x8t(e,t){var r=e.length,i=-1,n=Cq.allocUnsafe(e.length);for(e=Cq.concat([e,Cq.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}function M8t(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}function P8t(e){var t=e._cipher.encryptBlockRaw(e._prev);return k8t(e._prev),t}function jce(e){Fq.isBuffer(e)||(e=Fq.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function rae(e){for(;0<e.length;e++)e[0]=0}function oLe(e,t,r,i,n){for(var o,d,g,y,_=r[0],I=r[1],N=r[2],T=r[3],M=e[0]^t[0],D=e[1]^t[1],P=e[2]^t[2],G=e[3]^t[3],q=4,Y=1;Y<n;Y++)o=_[M>>>24]^I[D>>>16&255]^N[P>>>8&255]^T[255&G]^t[q++],d=_[D>>>24]^I[P>>>16&255]^N[G>>>8&255]^T[255&M]^t[q++],g=_[P>>>24]^I[G>>>16&255]^N[M>>>8&255]^T[255&D]^t[q++],y=_[G>>>24]^I[M>>>16&255]^N[D>>>8&255]^T[255&P]^t[q++],M=o,D=d,P=g,G=y;return o=(i[M>>>24]<<24|i[D>>>16&255]<<16|i[P>>>8&255]<<8|i[255&G])^t[q++],d=(i[D>>>24]<<24|i[P>>>16&255]<<16|i[G>>>8&255]<<8|i[255&M])^t[q++],g=(i[P>>>24]<<24|i[G>>>16&255]<<16|i[M>>>8&255]<<8|i[255&D])^t[q++],y=(i[G>>>24]<<24|i[M>>>16&255]<<16|i[D>>>8&255]<<8|i[255&P])^t[q++],[o>>>=0,d>>>=0,g>>>=0,y>>>=0]}function kg(e){(this||Gg)._key=jce(e),this._reset()}function aLe(e){var t=NO.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function hD(e){(this||wh).h=e,(this||wh).state=NO.alloc(16,0),(this||wh).cache=NO.allocUnsafe(0)}function a4(e,t,r,i){ZGe.call(this||Aa);var n=Sp.alloc(4,0);(this||Aa)._cipher=new H8t.AES(t);var o=(this||Aa)._cipher.encryptBlock(n);(this||Aa)._ghash=new sLe(o),r=(function(d,g,y){if(g.length===12)return d._finID=Sp.concat([g,Sp.from([0,0,0,1])]),Sp.concat([g,Sp.from([0,0,0,2])]);var _=new sLe(y),I=g.length,N=I%16;_.update(g),N&&(N=16-N,_.update(Sp.alloc(N,0))),_.update(Sp.alloc(8,0));var T=8*I,M=Sp.alloc(8);M.writeUIntBE(T,0,8),_.update(M),d._finID=_.state;var D=Sp.from(d._finID);return q8t(D),D})(this||Aa,r,o),(this||Aa)._prev=Sp.from(r),(this||Aa)._cache=Sp.allocUnsafe(0),(this||Aa)._secCache=Sp.allocUnsafe(0),(this||Aa)._decrypt=i,(this||Aa)._alen=0,(this||Aa)._len=0,(this||Aa)._mode=e,(this||Aa)._authTag=null,(this||Aa)._called=!1}function Oq(e,t,r,i){eqe.call(this||pm),(this||pm)._cipher=new V8t.AES(t),(this||pm)._prev=nae.from(r),(this||pm)._cache=nae.allocUnsafe(0),(this||pm)._secCache=nae.allocUnsafe(0),(this||pm)._decrypt=i,(this||pm)._mode=e}function AD(e,t,r){nqe.call(this||Ic),(this||Ic)._cache=new Nq,(this||Ic)._last=void 0,(this||Ic)._cipher=new $8t.AES(t),(this||Ic)._prev=xO.from(r),(this||Ic)._mode=e,(this||Ic)._autopadding=!0}function Nq(){(this||Ic).cache=xO.allocUnsafe(0)}function cLe(e,t,r){var i=rqe[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=xO.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=xO.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new K8t(i.module,t,r,!0):i.type==="auth"?new z8t(i.module,t,r,!0):new AD(i.module,t,r)}function CD(e,t,r){oqe.call(this||Bu),(this||Bu)._cache=new xq,(this||Bu)._cipher=new Z8t.AES(t),(this||Bu)._prev=Dv.from(r),(this||Bu)._mode=e,(this||Bu)._autopadding=!0}function xq(){(this||Bu).cache=Dv.allocUnsafe(0)}function uLe(e,t,r){var i=iqe[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Dv.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=Dv.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new X8t(i.module,t,r):i.type==="auth"?new W8t(i.module,t,r):new CD(i.module,t,r)}function hLe(e,t,r){if(e=e.toLowerCase(),m6[e])return Mue.createCipheriv(e,t,r);if(Ov[e])return new aqe({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function ALe(e,t,r){if(e=e.toLowerCase(),m6[e])return Mue.createDecipheriv(e,t,r);if(Ov[e])return new aqe({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function ZS(e){(this||Tq).rand=e}function Z8(e){(this||fqe).rand=e||new i4t.Rand}function l4t(){if(aae!==null)return aae;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;n<t&&e[n]<=i&&r%e[n]!=0;n++);t!==n&&e[n]<=i||(e[t++]=r)}return aae=e,e}function nue(e){for(var t=l4t(),r=0;r<t.length;r++)if(e.modn(t[r])===0)return e.cmpn(t[r])===0;return!0}function iue(e){var t=Nh.mont(e);return rue.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function sae(e,t){if(e<16)return new Nh(t===2||t===5?[140,123]:[140,39]);var r,i;for(t=new Nh(t);;){for(r=new Nh(o4t(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s4t),r.testn(1)||r.iadd(rue),t.cmp(rue)){if(!t.cmp(c4t))for(;r.mod(u4t).cmp(d4t);)r.iadd(gLe)}else for(;r.mod(a4t).cmp(f4t);)r.iadd(gLe);if(nue(i=r.shrn(1))&&nue(r)&&iue(i)&&iue(r)&&pLe.test(i)&&pLe.test(r))return r}}function y4t(e,t){return t=t||"utf8",Yy.isBuffer(e)||(e=new Yy(e,t)),(this||ks)._pub=new Vg(e),this||ks}function b4t(e,t){return t=t||"utf8",Yy.isBuffer(e)||(e=new Yy(e,t)),(this||ks)._priv=new Vg(e),this||ks}function wv(e,t,r){this.setGenerator(t),(this||ks).__prime=new Vg(e),(this||ks)._prime=Vg.mont((this||ks).__prime),(this||ks)._primeLen=e.length,(this||ks)._pub=void 0,(this||ks)._priv=void 0,(this||ks)._primeCode=void 0,r?((this||ks).setPublicKey=y4t,(this||ks).setPrivateKey=b4t):(this||ks)._primeCode=8}function VG(e,t){var r=new Yy(e.toArray());return t?r.toString(t):r}function ELe(e,t){var r=(function(M){var D=_qe(M);return{blinder:D.toRed(y6.mont(M.modulus)).redPow(new y6(M.publicExponent)).fromRed(),unblinder:D.invm(M.modulus)}})(t),i=t.modulus.byteLength(),n=(y6.mont(t.modulus),new y6(e).mul(r.blinder).umod(t.modulus)),o=n.toRed(y6.mont(t.prime1)),d=n.toRed(y6.mont(t.prime2)),g=t.coefficient,y=t.prime1,_=t.prime2,I=o.redPow(t.exponent1),N=d.redPow(t.exponent2);I=I.fromRed(),N=N.fromRed();var T=I.isub(N).imul(g).umod(y);return T.imul(_),N.iadd(T),new S4t(N.imul(r.unblinder).umod(t.modulus).toArray(!1,i))}function _qe(e){for(var t=e.modulus.byteLength(),r=new y6(bLe(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new y6(bLe(t));return r}function mqe(e){return e.length===1?"0"+e:e}function vLe(e){for(var t="",r=0;r<e.length;r++)t+=mqe(e[r].toString(16));return t}function Bq(e,t){if(e instanceof Bq)return e;this._importDER(e,t)||(w4t(e.r&&e.s,"Signature without r or s"),this.r=new Qq(e.r,16),this.s=new Qq(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function O4t(){this.place=0}function uae(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,o=0,d=t.place;o<i;o++,d++)n<<=8,n|=e[d];return t.place=d,n}function RLe(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return t===0?e:e.slice(t)}function dae(e,t){if(t<128)return e.push(t),void 0;var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}function B4t(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0||t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function SLe(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function ILe(e){return e.length===1?"0"+e:e}function CLe(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}function KG(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}function hm(){if(!(this instanceof hm))return new hm;Rqe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Q4t,this.W=new Array(160)}function H4t(e,t,r,i,n){var o=e&r^~e&n;return o<0&&(o+=4294967296),o}function G4t(e,t,r,i,n,o){var d=t&i^~t&o;return d<0&&(d+=4294967296),d}function q4t(e,t,r,i,n){var o=e&r^e&n^r&n;return o<0&&(o+=4294967296),o}function V4t(e,t,r,i,n,o){var d=t&i^t&o^i&o;return d<0&&(d+=4294967296),d}function J4t(e,t){var r=Wy(e,t,28)^Wy(t,e,2)^Wy(t,e,7);return r<0&&(r+=4294967296),r}function z4t(e,t){var r=Xy(e,t,28)^Xy(t,e,2)^Xy(t,e,7);return r<0&&(r+=4294967296),r}function K4t(e,t){var r=Wy(e,t,14)^Wy(e,t,18)^Wy(t,e,9);return r<0&&(r+=4294967296),r}function $4t(e,t){var r=Xy(e,t,14)^Xy(e,t,18)^Xy(t,e,9);return r<0&&(r+=4294967296),r}function Y4t(e,t){var r=Wy(e,t,1)^Wy(e,t,8)^Eqe(e,t,7);return r<0&&(r+=4294967296),r}function W4t(e,t){var r=Xy(e,t,1)^Xy(e,t,8)^vqe(e,t,7);return r<0&&(r+=4294967296),r}function X4t(e,t){var r=Wy(e,t,19)^Wy(t,e,29)^Eqe(e,t,6);return r<0&&(r+=4294967296),r}function Z4t(e,t){var r=Xy(e,t,19)^Xy(t,e,29)^vqe(e,t,6);return r<0&&(r+=4294967296),r}function OLe(e,t,r){return e&t^~e&r}function NLe(e,t,r){return e&t^e&r^t&r}function xLe(e,t,r){return e^t^r}function Jy(){if(!(this instanceof Jy))return new Jy;Cqe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=uCt,this.W=new Array(64)}function zy(){if(!(this instanceof zy))return new zy;Nqe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}function Nv(){if(!(this instanceof Nv))return new Nv;Tqe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}function xv(){if(!(this instanceof xv))return new xv;Mqe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}function Ky(){if(!(this instanceof Ky))return new Ky;kqe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function MLe(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function yCt(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function bCt(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}function RO(e,t,r){if(!(this instanceof RO))return new RO(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ICt.toArray(t,r))}function b6(e){if(!(this instanceof b6))return new b6(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=_4.toArray(e.entropy,e.entropyEnc||"hex"),r=_4.toArray(e.nonce,e.nonceEnc||"hex"),i=_4.toArray(e.pers,e.persEnc||"hex");Uqe(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}function t6(e,t){this.type=e,this.p=new j8(t.p,16),this.red=t.prime?j8.red(t.prime):j8.mont(this.p),this.zero=new j8(0).toRed(this.red),this.one=new j8(1).toRed(this.red),this.two=new j8(2).toRed(this.red),this.n=t.n&&new j8(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function Pg(e,t){this.curve=e,this.type=t,this.precomputed=null}function Lg(e){OO.call(this,"short",e),this.a=new ad(e.a,16).toRed(this.red),this.b=new ad(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function el(e,t,r,i){OO.BasePoint.call(this,e,"affine"),t===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new ad(t,16),this.y=new ad(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function Hl(e,t,r,i){OO.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ad(0)):(this.x=new ad(t,16),this.y=new ad(r,16),this.z=new ad(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}function AO(e){Hq.call(this,"mont",e),this.a=new SO(e.a,16).toRed(this.red),this.b=new SO(e.b,16).toRed(this.red),this.i4=new SO(4).toRed(this.red).redInvm(),this.two=new SO(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function tl(e,t,r){Hq.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new SO(t,16),this.z=new SO(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}function Hy(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,Gq.call(this,"edwards",e),this.a=new Mv(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Mv(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Mv(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),kCt(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}function qu(e,t,r,i,n){Gq.BasePoint.call(this,e,"projective"),t===null&&r===null&&i===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Mv(t,16),this.y=new Mv(r,16),this.z=i?new Mv(i,16):this.curve.one,this.t=n&&new Mv(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}function qqe(e){e.type==="short"?this.curve=new _ae.short(e):e.type==="edwards"?this.curve=new _ae.edwards(e):this.curve=new _ae.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,PLe(this.g.validate(),"Invalid curve"),PLe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l6(e,t){Object.defineProperty(sue,e,{configurable:!0,enumerable:!0,get:function(){var r=new qqe(t);return Object.defineProperty(sue,e,{configurable:!0,enumerable:!0,value:r}),r}})}function Ch(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}function qg(e){if(!(this instanceof qg))return new qg(e);typeof e=="string"&&(zqe(mae.hasOwnProperty(e),"Unknown curve "+e),e=mae[e]),e instanceof mae.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}function rl(e,t){this.eddsa=e,this._secret=QLe(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=QLe(t.pub)}function s4(e,t){this.eddsa=e,typeof t!="object"&&(t=JCt(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),VCt(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof qCt&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}function Ip(e){if(YCt(e==="ed25519","only tested with ed25519 so far"),!(this instanceof Ip))return new Ip(e);e=$Ct[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=KCt.sha512}function Ug(e){(this||Mf)._reporterState={obj:null,path:[],options:e||{},errors:[]}}function gO(e,t){(this||Mf).path=e,this.rethrow(t)}function zLe(){if(JLe)return eq;JLe=!0;var e=ca,t=RD().Reporter,r=Vo.Buffer;function i(o,d){if(t.call(this||ra,d),!r.isBuffer(o))return this.error("Input not Buffer"),void 0;(this||ra).base=o,(this||ra).offset=0,(this||ra).length=o.length}function n(o,d){if(Array.isArray(o))(this||ra).length=0,(this||ra).value=o.map((function(g){return g instanceof n||(g=new n(g,d)),(this||ra).length+=g.length,g}),this||ra);else if(typeof o=="number"){if(!(0<=o&&o<=255))return d.error("non-byte EncoderBuffer value");(this||ra).value=o,(this||ra).length=1}else if(typeof o=="string")(this||ra).value=o,(this||ra).length=r.byteLength(o);else{if(!r.isBuffer(o))return d.error("Unsupported type: "+typeof o);(this||ra).value=o,(this||ra).length=o.length}}return e(i,t),eq.DecoderBuffer=i,i.prototype.save=function(){return{offset:(this||ra).offset,reporter:t.prototype.save.call(this||ra)}},i.prototype.restore=function(o){var d=new i((this||ra).base);return d.offset=o.offset,d.length=(this||ra).offset,(this||ra).offset=o.offset,t.prototype.restore.call(this||ra,o.reporter),d},i.prototype.isEmpty=function(){return(this||ra).offset===(this||ra).length},i.prototype.readUInt8=function(o){return(this||ra).offset+1<=(this||ra).length?(this||ra).base.readUInt8((this||ra).offset++,!0):this.error(o||"DecoderBuffer overrun")},i.prototype.skip=function(o,d){if(!((this||ra).offset+o<=(this||ra).length))return this.error(d||"DecoderBuffer overrun");var g=new i((this||ra).base);return g._reporterState=(this||ra)._reporterState,g.offset=(this||ra).offset,g.length=(this||ra).offset+o,(this||ra).offset+=o,g},i.prototype.raw=function(o){return(this||ra).base.slice(o?o.offset:(this||ra).offset,(this||ra).length)},eq.EncoderBuffer=n,n.prototype.join=function(o,d){return o||(o=new r((this||ra).length)),d||(d=0),(this||ra).length===0||(Array.isArray((this||ra).value)?(this||ra).value.forEach((function(g){g.join(o,d),d+=g.length})):(typeof(this||ra).value=="number"?o[d]=(this||ra).value:typeof(this||ra).value=="string"?o.write((this||ra).value,d):r.isBuffer((this||ra).value)&&(this||ra).value.copy(o,d),d+=(this||ra).length)),o},eq}function RD(){if($Le)return vae;$Le=!0;var e=vae;return e.Reporter=$qe.Reporter,e.DecoderBuffer=zLe().DecoderBuffer,e.EncoderBuffer=zLe().EncoderBuffer,e.Node=(function(){if(KLe)return Eae;KLe=!0;var t=RD().Reporter,r=RD().EncoderBuffer,i=RD().DecoderBuffer,n=zg,o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function g(_,I){var N={};(this||Ro)._baseState=N,N.enc=_,N.parent=I||null,N.children=null,N.tag=null,N.args=null,N.reverseArgs=null,N.choice=null,N.optional=!1,N.any=!1,N.obj=!1,N.use=null,N.useDecoder=null,N.key=null,N.default=null,N.explicit=null,N.implicit=null,N.contains=null,N.parent||(N.children=[],this._wrap())}Eae=g;var y=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return g.prototype.clone=function(){var _=(this||Ro)._baseState,I={};y.forEach((function(T){I[T]=_[T]}));var N=new(this||Ro).constructor(I.parent);return N._baseState=I,N},g.prototype._wrap=function(){var _=(this||Ro)._baseState;d.forEach((function(I){(this||Ro)[I]=function(){var N=new(this||Ro).constructor(this||Ro);return _.children.push(N),N[I].apply(N,arguments)}}),this||Ro)},g.prototype._init=function(_){var I=(this||Ro)._baseState;n(I.parent===null),_.call(this||Ro),I.children=I.children.filter((function(N){return N._baseState.parent===(this||Ro)}),this||Ro),n.equal(I.children.length,1,"Root node can have only one child")},g.prototype._useArgs=function(_){var I=(this||Ro)._baseState,N=_.filter((function(T){return T instanceof(this||Ro).constructor}),this||Ro);_=_.filter((function(T){return!(T instanceof(this||Ro).constructor)}),this||Ro),N.length!==0&&(n(I.children===null),I.children=N,N.forEach((function(T){T._baseState.parent=this||Ro}),this||Ro)),_.length!==0&&(n(I.args===null),I.args=_,I.reverseArgs=_.map((function(T){if(typeof T!="object"||T.constructor!==Object)return T;var M={};return Object.keys(T).forEach((function(D){D==(0|D)&&(D|=0);var P=T[D];M[P]=D})),M})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(_){g.prototype[_]=function(){var I=(this||Ro)._baseState;throw new Error(_+" not implemented for encoding: "+I.enc)}})),o.forEach((function(_){g.prototype[_]=function(){var I=(this||Ro)._baseState,N=Array.prototype.slice.call(arguments);return n(I.tag===null),I.tag=_,this._useArgs(N),this||Ro}})),g.prototype.use=function(_){n(_);var I=(this||Ro)._baseState;return n(I.use===null),I.use=_,this||Ro},g.prototype.optional=function(){return(this||Ro)._baseState.optional=!0,this||Ro},g.prototype.def=function(_){var I=(this||Ro)._baseState;return n(I.default===null),I.default=_,I.optional=!0,this||Ro},g.prototype.explicit=function(_){var I=(this||Ro)._baseState;return n(I.explicit===null&&I.implicit===null),I.explicit=_,this||Ro},g.prototype.implicit=function(_){var I=(this||Ro)._baseState;return n(I.explicit===null&&I.implicit===null),I.implicit=_,this||Ro},g.prototype.obj=function(){var _=(this||Ro)._baseState,I=Array.prototype.slice.call(arguments);return _.obj=!0,I.length!==0&&this._useArgs(I),this||Ro},g.prototype.key=function(_){var I=(this||Ro)._baseState;return n(I.key===null),I.key=_,this||Ro},g.prototype.any=function(){return(this||Ro)._baseState.any=!0,this||Ro},g.prototype.choice=function(_){var I=(this||Ro)._baseState;return n(I.choice===null),I.choice=_,this._useArgs(Object.keys(_).map((function(N){return _[N]}))),this||Ro},g.prototype.contains=function(_){var I=(this||Ro)._baseState;return n(I.use===null),I.contains=_,this||Ro},g.prototype._decode=function(_,I){var N=(this||Ro)._baseState;if(N.parent===null)return _.wrapResult(N.children[0]._decode(_,I));var T,M=N.default,D=!0,P=null;if(N.key!==null&&(P=_.enterKey(N.key)),N.optional){var G=null;if(N.explicit!==null?G=N.explicit:N.implicit!==null?G=N.implicit:N.tag!==null&&(G=N.tag),G!==null||N.any){if(D=this._peekTag(_,G,N.any),_.isError(D))return D}else{var q=_.save();try{N.choice===null?this._decodeGeneric(N.tag,_,I):this._decodeChoice(_,I),D=!0}catch{D=!1}_.restore(q)}}if(N.obj&&D&&(T=_.enterObject()),D){if(N.explicit!==null){var Y=this._decodeTag(_,N.explicit);if(_.isError(Y))return Y;_=Y}var ne=_.offset;if(N.use===null&&N.choice===null){N.any&&(q=_.save());var ce=this._decodeTag(_,N.implicit!==null?N.implicit:N.tag,N.any);if(_.isError(ce))return ce;N.any?M=_.raw(q):_=ce}if(I&&I.track&&N.tag!==null&&I.track(_.path(),ne,_.length,"tagged"),I&&I.track&&N.tag!==null&&I.track(_.path(),_.offset,_.length,"content"),M=N.any?M:N.choice===null?this._decodeGeneric(N.tag,_,I):this._decodeChoice(_,I),_.isError(M))return M;if(N.any||N.choice!==null||N.children===null||N.children.forEach((function(pe){pe._decode(_,I)})),N.contains&&(N.tag==="octstr"||N.tag==="bitstr")){var le=new i(M);M=this._getUse(N.contains,_._reporterState.obj)._decode(le,I)}}return N.obj&&D&&(M=_.leaveObject(T)),N.key===null||M===null&&D!==!0?P!==null&&_.exitKey(P):_.leaveKey(P,N.key,M),M},g.prototype._decodeGeneric=function(_,I,N){var T=(this||Ro)._baseState;return _==="seq"||_==="set"?null:_==="seqof"||_==="setof"?this._decodeList(I,_,T.args[0],N):/str$/.test(_)?this._decodeStr(I,_,N):_==="objid"&&T.args?this._decodeObjid(I,T.args[0],T.args[1],N):_==="objid"?this._decodeObjid(I,null,null,N):_==="gentime"||_==="utctime"?this._decodeTime(I,_,N):_==="null_"?this._decodeNull(I,N):_==="bool"?this._decodeBool(I,N):_==="objDesc"?this._decodeStr(I,_,N):_==="int"||_==="enum"?this._decodeInt(I,T.args&&T.args[0],N):T.use!==null?this._getUse(T.use,I._reporterState.obj)._decode(I,N):I.error("unknown tag: "+_)},g.prototype._getUse=function(_,I){var N=(this||Ro)._baseState;return N.useDecoder=this._use(_,I),n(N.useDecoder._baseState.parent===null),N.useDecoder=N.useDecoder._baseState.children[0],N.implicit!==N.useDecoder._baseState.implicit&&(N.useDecoder=N.useDecoder.clone(),N.useDecoder._baseState.implicit=N.implicit),N.useDecoder},g.prototype._decodeChoice=function(_,I){var N=(this||Ro)._baseState,T=null,M=!1;return Object.keys(N.choice).some((function(D){var P=_.save(),G=N.choice[D];try{var q=G._decode(_,I);if(_.isError(q))return!1;T={type:D,value:q},M=!0}catch{return _.restore(P),!1}return!0}),this||Ro),M?T:_.error("Choice not matched")},g.prototype._createEncoderBuffer=function(_){return new r(_,(this||Ro).reporter)},g.prototype._encode=function(_,I,N){var T=(this||Ro)._baseState;if(T.default===null||T.default!==_){var M=this._encodeValue(_,I,N);if(M!==void 0&&!this._skipDefault(M,I,N))return M}},g.prototype._encodeValue=function(_,I,N){var T=(this||Ro)._baseState;if(T.parent===null)return T.children[0]._encode(_,I||new t);var M=null;if((this||Ro).reporter=I,T.optional&&_===void 0){if(T.default===null)return;_=T.default}var D=null,P=!1;if(T.any)M=this._createEncoderBuffer(_);else if(T.choice)M=this._encodeChoice(_,I);else if(T.contains)D=this._getUse(T.contains,N)._encode(_,I),P=!0;else if(T.children)D=T.children.map((function(ne){if(ne._baseState.tag==="null_")return ne._encode(null,I,_);if(ne._baseState.key===null)return I.error("Child should have a key");var ce=I.enterKey(ne._baseState.key);if(typeof _!="object")return I.error("Child expected, but input is not object");var le=ne._encode(_[ne._baseState.key],I,_);return I.leaveKey(ce),le}),this||Ro).filter((function(ne){return ne})),D=this._createEncoderBuffer(D);else if(T.tag==="seqof"||T.tag==="setof"){if(!T.args||T.args.length!==1)return I.error("Too many args for : "+T.tag);if(!Array.isArray(_))return I.error("seqof/setof, but data is not Array");var G=this.clone();G._baseState.implicit=null,D=this._createEncoderBuffer(_.map((function(ne){var ce=(this||Ro)._baseState;return this._getUse(ce.args[0],_)._encode(ne,I)}),G))}else T.use!==null?M=this._getUse(T.use,N)._encode(_,I):(D=this._encodePrimitive(T.tag,_),P=!0);if(!T.any&&T.choice===null){var q=T.implicit!==null?T.implicit:T.tag,Y=T.implicit===null?"universal":"context";q===null?T.use===null&&I.error("Tag could be omitted only for .use()"):T.use===null&&(M=this._encodeComposite(q,P,Y,D))}return T.explicit!==null&&(M=this._encodeComposite(T.explicit,!1,"context",M)),M},g.prototype._encodeChoice=function(_,I){var N=(this||Ro)._baseState,T=N.choice[_.type];return T||n(!1,_.type+" not found in "+JSON.stringify(Object.keys(N.choice))),T._encode(_.value,I)},g.prototype._encodePrimitive=function(_,I){var N=(this||Ro)._baseState;if(/str$/.test(_))return this._encodeStr(I,_);if(_==="objid"&&N.args)return this._encodeObjid(I,N.reverseArgs[0],N.args[1]);if(_==="objid")return this._encodeObjid(I,null,null);if(_==="gentime"||_==="utctime")return this._encodeTime(I,_);if(_==="null_")return this._encodeNull();if(_==="int"||_==="enum")return this._encodeInt(I,N.args&&N.reverseArgs[0]);if(_==="bool")return this._encodeBool(I);if(_==="objDesc")return this._encodeStr(I,_);throw new Error("Unsupported tag: "+_)},g.prototype._isNumstr=function(_){return/^[0-9 ]*$/.test(_)},g.prototype._isPrintstr=function(_){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(_)},Eae})(),vae}function Yqe(){if(WLe)return Rae;WLe=!0;var e=Rae;return e._reverse=function(t){var r={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);var n=t[i];r[n]=i})),r},e.der=(function(){if(YLe)return r6;YLe=!0;var t=Yqe();return r6.tagClass={0:"universal",1:"application",2:"context",3:"private"},r6.tagClassByName=t._reverse(r6.tagClass),r6.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r6.tagByName=t._reverse(r6.tag),r6})(),Rae}function ZLe(){if(XLe)return Sae;XLe=!0;var e=ca,t=aV(),r=t.base,i=t.bignum,n=t.constants.der;function o(_){(this||n6).enc="der",(this||n6).name=_.name,(this||n6).entity=_,(this||n6).tree=new d,(this||n6).tree._init(_.body)}function d(_){r.Node.call(this||n6,"der",_)}function g(_,I){var N=_.readUInt8(I);if(_.isError(N))return N;var T=n.tagClass[N>>6],M=(32&N)==0;if((31&N)==31){var D=N;for(N=0;(128&D)==128;){if(D=_.readUInt8(I),_.isError(D))return D;N<<=7,N|=127&D}}else N&=31;return{cls:T,primitive:M,tag:N,tagStr:n.tag[N]}}function y(_,I,N){var T=_.readUInt8(N);if(_.isError(T))return T;if(!I&&T===128)return null;if((128&T)==0)return T;var M=127&T;if(M>4)return _.error("length octect is too long");T=0;for(var D=0;D<M;D++){T<<=8;var P=_.readUInt8(N);if(_.isError(P))return P;T|=P}return T}return Sae=o,o.prototype.decode=function(_,I){return _ instanceof r.DecoderBuffer||(_=new r.DecoderBuffer(_,I)),(this||n6).tree._decode(_,I)},e(d,r.Node),d.prototype._peekTag=function(_,I,N){if(_.isEmpty())return!1;var T=_.save(),M=g(_,'Failed to peek tag: "'+I+'"');return _.isError(M)?M:(_.restore(T),M.tag===I||M.tagStr===I||M.tagStr+"of"===I||N)},d.prototype._decodeTag=function(_,I,N){var T=g(_,'Failed to decode tag of "'+I+'"');if(_.isError(T))return T;var M=y(_,T.primitive,'Failed to get length of "'+I+'"');if(_.isError(M))return M;if(!N&&T.tag!==I&&T.tagStr!==I&&T.tagStr+"of"!==I)return _.error('Failed to match tag: "'+I+'"');if(T.primitive||M!==null)return _.skip(M,'Failed to match body of: "'+I+'"');var D=_.save(),P=this._skipUntilEnd(_,'Failed to skip indefinite length body: "'+(this||n6).tag+'"');return _.isError(P)?P:(M=_.offset-D.offset,_.restore(D),_.skip(M,'Failed to match body of: "'+I+'"'))},d.prototype._skipUntilEnd=function(_,I){for(;;){var N=g(_,I);if(_.isError(N))return N;var T,M=y(_,N.primitive,I);if(_.isError(M))return M;if(T=N.primitive||M!==null?_.skip(M):this._skipUntilEnd(_,I),_.isError(T))return T;if(N.tagStr==="end")break}},d.prototype._decodeList=function(_,I,N,T){for(var M=[];!_.isEmpty();){var D=this._peekTag(_,"end");if(_.isError(D))return D;var P=N.decode(_,"der",T);if(_.isError(P)&&D)break;M.push(P)}return M},d.prototype._decodeStr=function(_,I){if(I==="bitstr"){var N=_.readUInt8();return _.isError(N)?N:{unused:N,data:_.raw()}}if(I==="bmpstr"){var T=_.raw();if(T.length%2==1)return _.error("Decoding of string type: bmpstr length mismatch");for(var M="",D=0;D<T.length/2;D++)M+=String.fromCharCode(T.readUInt16BE(2*D));return M}if(I==="numstr"){var P=_.raw().toString("ascii");return this._isNumstr(P)?P:_.error("Decoding of string type: numstr unsupported characters")}if(I==="octstr"||I==="objDesc")return _.raw();if(I==="printstr"){var G=_.raw().toString("ascii");return this._isPrintstr(G)?G:_.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(I)?_.raw().toString():_.error("Decoding of string type: "+I+" unsupported")},d.prototype._decodeObjid=function(_,I,N){for(var T,M=[],D=0;!_.isEmpty();){var P=_.readUInt8();D<<=7,D|=127&P,(128&P)==0&&(M.push(D),D=0)}128&P&&M.push(D);var G=M[0]/40|0,q=M[0]%40;if(T=N?M:[G,q].concat(M.slice(1)),I){var Y=I[T.join(" ")];Y===void 0&&(Y=I[T.join(".")]),Y!==void 0&&(T=Y)}return T},d.prototype._decodeTime=function(_,I){var N=_.raw().toString();if(I==="gentime")var T=0|N.slice(0,4),M=0|N.slice(4,6),D=0|N.slice(6,8),P=0|N.slice(8,10),G=0|N.slice(10,12),q=0|N.slice(12,14);else{if(I!=="utctime")return _.error("Decoding "+I+" time is not supported yet");T=0|N.slice(0,2),M=0|N.slice(2,4),D=0|N.slice(4,6),P=0|N.slice(6,8),G=0|N.slice(8,10),q=0|N.slice(10,12),T=T<70?2e3+T:1900+T}return Date.UTC(T,M-1,D,P,G,q,0)},d.prototype._decodeNull=function(_){return null},d.prototype._decodeBool=function(_){var I=_.readUInt8();return _.isError(I)?I:I!==0},d.prototype._decodeInt=function(_,I){var N=_.raw(),T=new i(N);return I&&(T=I[T.toString(10)]||T),T},d.prototype._use=function(_,I){return typeof _=="function"&&(_=_(I)),_._getDecoder("der").tree},Sae}function ZCt(){if(eUe)return wae;eUe=!0;var e=wae;return e.der=ZLe(),e.pem=(function(){if(jLe)return Iae;jLe=!0;var t=ca,r=Vo.Buffer,i=ZLe();function n(o){i.call(this||Cae,o),(this||Cae).enc="pem"}return t(n,i),Iae=n,n.prototype.decode=function(o,d){for(var g=o.toString().split(/[\r\n]+/g),y=d.label.toUpperCase(),_=/^-----(BEGIN|END) ([^-]+)-----$/,I=-1,N=-1,T=0;T<g.length;T++){var M=g[T].match(_);if(M!==null&&M[2]===y){if(I!==-1){if(M[1]!=="END")break;N=T;break}if(M[1]!=="BEGIN")break;I=T}}if(I===-1||N===-1)throw new Error("PEM section not found for: "+y);var D=g.slice(I+1,N).join("");D.replace(/[^a-z0-9\+\/=]+/gi,"");var P=new r(D,"base64");return i.prototype.decode.call(this||Cae,P,d)},Iae})(),wae}function rUe(){if(tUe)return Oae;tUe=!0;var e=ca,t=Vo.Buffer,r=aV(),i=r.base,n=r.constants.der;function o(y){(this||xf).enc="der",(this||xf).name=y.name,(this||xf).entity=y,(this||xf).tree=new d,(this||xf).tree._init(y.body)}function d(y){i.Node.call(this||xf,"der",y)}function g(y){return y<10?"0"+y:y}return Oae=o,o.prototype.encode=function(y,_){return(this||xf).tree._encode(y,_).join()},e(d,i.Node),d.prototype._encodeComposite=function(y,_,I,N){var T,M=(function(q,Y,ne,ce){var le;if(q==="seqof"?q="seq":q==="setof"&&(q="set"),n.tagByName.hasOwnProperty(q))le=n.tagByName[q];else{if(typeof q!="number"||(0|q)!==q)return ce.error("Unknown tag: "+q);le=q}return le>=31?ce.error("Multi-octet tag encoding unsupported"):(Y||(le|=32),le|=n.tagClassByName[ne||"universal"]<<6)})(y,_,I,(this||xf).reporter);if(N.length<128)return(T=new t(2))[0]=M,T[1]=N.length,this._createEncoderBuffer([T,N]);for(var D=1,P=N.length;P>=256;P>>=8)D++;(T=new t(2+D))[0]=M,T[1]=128|D,P=1+D;for(var G=N.length;G>0;P--,G>>=8)T[P]=255&G;return this._createEncoderBuffer([T,N])},d.prototype._encodeStr=function(y,_){if(_==="bitstr")return this._createEncoderBuffer([0|y.unused,y.data]);if(_==="bmpstr"){for(var I=new t(2*y.length),N=0;N<y.length;N++)I.writeUInt16BE(y.charCodeAt(N),2*N);return this._createEncoderBuffer(I)}return _==="numstr"?this._isNumstr(y)?this._createEncoderBuffer(y):(this||xf).reporter.error("Encoding of string type: numstr supports only digits and space"):_==="printstr"?this._isPrintstr(y)?this._createEncoderBuffer(y):(this||xf).reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(_)||_==="objDesc"?this._createEncoderBuffer(y):(this||xf).reporter.error("Encoding of string type: "+_+" unsupported")},d.prototype._encodeObjid=function(y,_,I){if(typeof y=="string"){if(!_)return(this||xf).reporter.error("string objid given, but no values map found");if(!_.hasOwnProperty(y))return(this||xf).reporter.error("objid not found in values map");y=_[y].split(/[\s\.]+/g);for(var N=0;N<y.length;N++)y[N]|=0}else if(Array.isArray(y))for(y=y.slice(),N=0;N<y.length;N++)y[N]|=0;if(!Array.isArray(y))return(this||xf).reporter.error("objid() should be either array or string, got: "+JSON.stringify(y));if(!I){if(y[1]>=40)return(this||xf).reporter.error("Second objid identifier OOB");y.splice(0,2,40*y[0]+y[1])}var T=0;for(N=0;N<y.length;N++){var M=y[N];for(T++;M>=128;M>>=7)T++}var D=new t(T),P=D.length-1;for(N=y.length-1;N>=0;N--)for(M=y[N],D[P--]=127&M;(M>>=7)>0;)D[P--]=128|127&M;return this._createEncoderBuffer(D)},d.prototype._encodeTime=function(y,_){var I,N=new Date(y);return _==="gentime"?I=[g(N.getFullYear()),g(N.getUTCMonth()+1),g(N.getUTCDate()),g(N.getUTCHours()),g(N.getUTCMinutes()),g(N.getUTCSeconds()),"Z"].join(""):_==="utctime"?I=[g(N.getFullYear()%100),g(N.getUTCMonth()+1),g(N.getUTCDate()),g(N.getUTCHours()),g(N.getUTCMinutes()),g(N.getUTCSeconds()),"Z"].join(""):(this||xf).reporter.error("Encoding "+_+" time is not supported yet"),this._encodeStr(I,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(y,_){if(typeof y=="string"){if(!_)return(this||xf).reporter.error("String int or enum given, but no values map");if(!_.hasOwnProperty(y))return(this||xf).reporter.error("Values map doesn't contain: "+JSON.stringify(y));y=_[y]}if(typeof y!="number"&&!t.isBuffer(y)){var I=y.toArray();!y.sign&&128&I[0]&&I.unshift(0),y=new t(I)}if(t.isBuffer(y)){var N=y.length;y.length===0&&N++;var T=new t(N);return y.copy(T),y.length===0&&(T[0]=0),this._createEncoderBuffer(T)}if(y<128)return this._createEncoderBuffer(y);if(y<256)return this._createEncoderBuffer([0,y]);N=1;for(var M=y;M>=256;M>>=8)N++;for(M=(T=new Array(N)).length-1;M>=0;M--)T[M]=255&y,y>>=8;return 128&T[0]&&T.unshift(0),this._createEncoderBuffer(new t(T))},d.prototype._encodeBool=function(y){return this._createEncoderBuffer(y?255:0)},d.prototype._use=function(y,_){return typeof y=="function"&&(y=y(_)),y._getEncoder("der").tree},d.prototype._skipDefault=function(y,_,I){var N,T=(this||xf)._baseState;if(T.default===null)return!1;var M=y.join();if(T.defaultBuffer===void 0&&(T.defaultBuffer=this._encodeValue(T.default,_,I).join()),M.length!==T.defaultBuffer.length)return!1;for(N=0;N<M.length;N++)if(M[N]!==T.defaultBuffer[N])return!1;return!0},Oae}function jCt(){if(iUe)return Tae;iUe=!0;var e=Tae;return e.der=rUe(),e.pem=(function(){if(nUe)return Nae;nUe=!0;var t=ca,r=rUe();function i(n){r.call(this||xae,n),(this||xae).enc="pem"}return t(i,r),Nae=i,i.prototype.encode=function(n,o){for(var d=r.prototype.encode.call(this||xae,n).toString("base64"),g=["-----BEGIN "+o.label+"-----"],y=0;y<d.length;y+=64)g.push(d.slice(y,y+64));return g.push("-----END "+o.label+"-----"),g.join(`
|
|
`)},Nae})(),Tae}function aV(){if(oUe)return Bae;oUe=!0;var e=Bae;return e.bignum=ef,e.define=(function(){if(VLe)return bae;VLe=!0;var t=aV(),r=ca;function i(n,o){(this||L1).name=n,(this||L1).body=o,(this||L1).decoders={},(this||L1).encoders={}}return bae.define=function(n,o){return new i(n,o)},i.prototype._createNamed=function(n){var o;try{o=Cp.runInThisContext("(function "+(this||L1).name+`(entity) {
|
|
this._initNamed(entity);
|
|
})`)}catch{o=function(g){this._initNamed(g)}}return r(o,n),o.prototype._initNamed=function(d){n.call(this||L1,d)},new o(this||L1)},i.prototype._getDecoder=function(n){return n=n||"der",(this||L1).decoders.hasOwnProperty(n)||((this||L1).decoders[n]=this._createNamed(t.decoders[n])),(this||L1).decoders[n]},i.prototype.decode=function(n,o,d){return this._getDecoder(o).decode(n,d)},i.prototype._getEncoder=function(n){return n=n||"der",(this||L1).encoders.hasOwnProperty(n)||((this||L1).encoders[n]=this._createNamed(t.encoders[n])),(this||L1).encoders[n]},i.prototype.encode=function(n,o,d){return this._getEncoder(o).encode(n,d)},bae})().define,e.base=RD(),e.constants=Yqe(),e.decoders=ZCt(),e.encoders=jCt(),Bae}function cUe(e){var t;typeof e!="object"||Mae.isBuffer(e)||(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Mae.from(e));var r,i,n=vwt(e,t),o=n.tag,d=n.data;switch(o){case"CERTIFICATE":i=Rp.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=Rp.PublicKey.decode(d,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Rp.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=Rp.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=(function(g,y){var _=g.algorithm.decrypt.kde.kdeparams.salt,I=parseInt(g.algorithm.decrypt.kde.kdeparams.iters.toString(),10),N=Ewt[g.algorithm.decrypt.cipher.algo.join(".")],T=g.algorithm.decrypt.cipher.iv,M=g.subjectPrivateKey,D=parseInt(N.split("-")[1],10)/8,P=Swt.pbkdf2Sync(y,_,I,D,"sha1"),G=Rwt.createDecipheriv(N,P,T),q=[];return q.push(G.update(M)),q.push(G.final()),Mae.concat(q)})(d=Rp.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(i=Rp.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Rp.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:Rp.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=Rp.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return Rp.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return Rp.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Rp.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=Rp.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+o)}}function uUe(e,t,r,i){if((e=new Oh(e.toArray())).length<t.byteLength()){var n=new Oh(t.byteLength()-e.length);n.fill(0),e=Oh.concat([n,e])}var o=r.length,d=(function(_,I){_=(_=Fue(_,I)).mod(I);var N=new Oh(_.toArray());if(N.length<I.byteLength()){var T=new Oh(I.byteLength()-N.length);T.fill(0),N=Oh.concat([T,N])}return N})(r,t),g=new Oh(o);g.fill(1);var y=new Oh(o);return y.fill(0),y=m4(i,y).update(g).update(new Oh([0])).update(e).update(d).digest(),g=m4(i,y).update(g).digest(),{k:y=m4(i,y).update(g).update(new Oh([1])).update(e).update(d).digest(),v:g=m4(i,y).update(g).digest()}}function Fue(e,t){var r=new qq(e),i=(e.length<<3)-t.bitLength();return i>0&&r.ishrn(i),r}function dUe(e,t,r){var i,n;do{for(i=new Oh(0);8*i.length<e.bitLength();)t.v=m4(r,t.k).update(t.v).digest(),i=Oh.concat([i,t.v]);n=Fue(i,e),t.k=m4(r,t.k).update(t.v).update(new Oh([0])).digest(),t.v=m4(r,t.k).update(t.v).digest()}while(n.cmp(e)!==-1);return n}function Nwt(e,t,r,i){return e.toRed(qq.mont(r)).redPow(t).fromRed().mod(i)}function lUe(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}function pD(e){Vq.Writable.call(this||cd);var t=f4[e];if(!t)throw new Error("Unknown message digest");(this||cd)._hashType=t.hash,(this||cd)._hash=eVe(t.hash),(this||cd)._tag=t.id,(this||cd)._signType=t.sign}function gD(e){Vq.Writable.call(this||cd);var t=f4[e];if(!t)throw new Error("Unknown message digest");(this||cd)._hash=eVe(t.hash),(this||cd)._tag=t.id,(this||cd)._signType=t.sign}function AUe(e){return new pD(e)}function pUe(e){return new gD(e)}function c4(e){(this||Df).curveType=U1[e],(this||Df).curveType||((this||Df).curveType={name:e}),(this||Df).curve=new Lwt.ec((this||Df).curveType.name),(this||Df).keys=void 0}function kae(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new Bv(e);if(r&&i.length<r){var n=new Bv(r-i.length);n.fill(0),i=Bv.concat([n,i])}return t?i.toString(t):i}function Hwt(e){var t=uue.allocUnsafe(4);return t.writeUInt32BE(e,0),t}function vUe(){throw new Error(`secure random number generation not supported by this browser
|
|
use chrome, FireFox or Internet Explorer 11`)}function IUe(e,t){if(typeof e!="number"||e!=e)throw new TypeError("offset must be a number");if(e>sVe||e<0)throw new TypeError("offset must be a uint32");if(e>aVe||e>t)throw new RangeError("offset out of range")}function CUe(e,t,r){if(typeof e!="number"||e!=e)throw new TypeError("size must be a number");if(e>sVe||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>aVe)throw new RangeError("buffer too small")}function wUe(e,t,r,i){if(due.browser){var n=e.buffer,o=new Uint8Array(n,t,r);return fue.getRandomValues(o),i?(due.nextTick((function(){i(null,e)})),void 0):e}return i?(RUe(r,(function(d,g){if(d)return i(d);g.copy(e,t),i(null,e)})),void 0):(RUe(r).copy(e,t),e)}function Que(){if(xUe)return oq;xUe=!0;var e;oq=function(n){return e||(e=new t(null)),e.generate(n)};function t(i){(this||aq).rand=i}if(oq.Rand=t,t.prototype.generate=function(n){return this._rand(n)},t.prototype._rand=function(n){if((this||aq).rand.getBytes)return(this||aq).rand.getBytes(n);for(var o=new Uint8Array(n),d=0;d<o.length;d++)o[d]=(this||aq).rand.getByte();return o},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(n){var o=new Uint8Array(n);return self.crypto.getRandomValues(o),o}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(n){var o=new Uint8Array(n);return self.msCrypto.getRandomValues(o),o}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=Ka;if(typeof r.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(n){return r.randomBytes(n)}}catch{}return oq}function cVe(){if(TUe)return Uae;TUe=!0;var e=$It(),t=Que();function r(i){(this||BUe).rand=i||new t.Rand}return Uae=r,r.create=function(n){return new r(n)},r.prototype._randbelow=function(n){var o=n.bitLength(),d=Math.ceil(o/8);do var g=new e((this||BUe).rand.generate(d));while(g.cmp(n)>=0);return g},r.prototype._randrange=function(n,o){var d=o.sub(n);return n.add(this._randbelow(d))},r.prototype.test=function(n,o,d){var g=n.bitLength(),y=e.mont(n),_=new e(1).toRed(y);o||(o=Math.max(1,g/48|0));for(var I=n.subn(1),N=0;!I.testn(N);N++);for(var T=n.shrn(N),M=I.toRed(y),D=!0;o>0;o--){var P=this._randrange(new e(2),I);d&&d(P);var G=P.toRed(y).redPow(T);if(!(G.cmp(_)===0||G.cmp(M)===0)){for(var q=1;q<N;q++){if(G=G.redSqr(),G.cmp(_)===0)return!1;if(G.cmp(M)===0)break}if(q===N)return!1}}return D},r.prototype.getDivisor=function(n,o){var d=n.bitLength(),g=e.mont(n),y=new e(1).toRed(g);o||(o=Math.max(1,d/48|0));for(var _=n.subn(1),I=0;!_.testn(I);I++);for(var N=n.shrn(I),T=_.toRed(g);o>0;o--){var M=this._randrange(new e(2),_),D=n.gcd(M);if(D.cmpn(1)!==0)return D;var P=M.toRed(g).redPow(N);if(!(P.cmp(y)===0||P.cmp(T)===0)){for(var G=1;G<I;G++){if(P=P.redSqr(),P.cmp(y)===0)return P.fromRed().subn(1).gcd(n);if(P.cmp(T)===0)break}if(G===I)return P=P.redSqr(),P.fromRed().subn(1).gcd(n)}}return!1},Uae}function uVe(){if(MUe)return Fae;MUe=!0;var e=DO();Fae=G,G.simpleSieve=D,G.fermatTest=P;var t=fGe(),r=new t(24),i=cVe(),n=new i,o=new t(1),d=new t(2),g=new t(5);new t(16),new t(8);var y=new t(10),_=new t(3);new t(7);var I=new t(11),N=new t(4);new t(12);var T=null;function M(){if(T!==null)return T;var q=1048576,Y=[];Y[0]=2;for(var ne=1,ce=3;ce<q;ce+=2){for(var le=Math.ceil(Math.sqrt(ce)),pe=0;pe<ne&&Y[pe]<=le&&ce%Y[pe]!==0;pe++);ne!==pe&&Y[pe]<=le||(Y[ne++]=ce)}return T=Y,Y}function D(q){for(var Y=M(),ne=0;ne<Y.length;ne++)if(q.modn(Y[ne])===0)return q.cmpn(Y[ne])===0;return!0}function P(q){var Y=t.mont(q);return d.toRed(Y).redPow(q.subn(1)).fromRed().cmpn(1)===0}function G(q,Y){if(q<16)return Y===2||Y===5?new t([140,123]):new t([140,39]);Y=new t(Y);for(var ne,ce;;){for(ne=new t(e(Math.ceil(q/8)));ne.bitLength()>q;)ne.ishrn(1);if(ne.isEven()&&ne.iadd(o),ne.testn(1)||ne.iadd(d),Y.cmp(d)){if(!Y.cmp(g))for(;ne.mod(y).cmp(_);)ne.iadd(N)}else for(;ne.mod(r).cmp(I);)ne.iadd(N);if(ce=ne.shrn(1),D(ce)&&D(ne)&&P(ce)&&P(ne)&&n.test(ce)&&n.test(ne))return ne}}return Fae}function n5t(){if(DUe)return Qae;DUe=!0;var e=Vo.Buffer,t=fGe(),r=cVe(),i=new r,n=new t(24),o=new t(11),d=new t(10),g=new t(3),y=new t(7),_=uVe(),I=DO();Qae=P;function N(q,Y){return Y=Y||"utf8",e.isBuffer(q)||(q=new e(q,Y)),(this||Ms)._pub=new t(q),this||Ms}function T(q,Y){return Y=Y||"utf8",e.isBuffer(q)||(q=new e(q,Y)),(this||Ms)._priv=new t(q),this||Ms}var M={};function D(q,Y){var ne=Y.toString("hex"),ce=[ne,q.toString(16)].join("_");if(ce in M)return M[ce];var le=0;if(q.isEven()||!_.simpleSieve||!_.fermatTest(q)||!i.test(q))return le+=1,ne==="02"||ne==="05"?le+=8:le+=4,M[ce]=le,le;i.test(q.shrn(1))||(le+=2);var pe;switch(ne){case"02":q.mod(n).cmp(o)&&(le+=8);break;case"05":pe=q.mod(d),pe.cmp(g)&&pe.cmp(y)&&(le+=8);break;default:le+=4}return M[ce]=le,le}function P(q,Y,ne){this.setGenerator(Y),(this||Ms).__prime=new t(q),(this||Ms)._prime=t.mont((this||Ms).__prime),(this||Ms)._primeLen=q.length,(this||Ms)._pub=void 0,(this||Ms)._priv=void 0,(this||Ms)._primeCode=void 0,ne?((this||Ms).setPublicKey=N,(this||Ms).setPrivateKey=T):(this||Ms)._primeCode=8}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||Ms)._primeCode!="number"&&((this||Ms)._primeCode=D((this||Ms).__prime,(this||Ms).__gen)),(this||Ms)._primeCode}}),P.prototype.generateKeys=function(){return(this||Ms)._priv||((this||Ms)._priv=new t(I((this||Ms)._primeLen))),(this||Ms)._pub=(this||Ms)._gen.toRed((this||Ms)._prime).redPow((this||Ms)._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(q){q=new t(q),q=q.toRed((this||Ms)._prime);var Y=q.redPow((this||Ms)._priv).fromRed(),ne=new e(Y.toArray()),ce=this.getPrime();if(ne.length<ce.length){var le=new e(ce.length-ne.length);le.fill(0),ne=e.concat([le,ne])}return ne},P.prototype.getPublicKey=function(Y){return G((this||Ms)._pub,Y)},P.prototype.getPrivateKey=function(Y){return G((this||Ms)._priv,Y)},P.prototype.getPrime=function(q){return G((this||Ms).__prime,q)},P.prototype.getGenerator=function(q){return G((this||Ms)._gen,q)},P.prototype.setGenerator=function(q,Y){return Y=Y||"utf8",e.isBuffer(q)||(q=new e(q,Y)),(this||Ms).__gen=q,(this||Ms)._gen=new t(q),this||Ms};function G(q,Y){var ne=new e(q.toArray());return Y?ne.toString(Y):ne}return Qae}function i5t(){if(kUe)return r4;kUe=!0;var e=Vo.Buffer,t=uVe(),r=r5t,i=n5t();function n(g){var y=new e(r[g].prime,"hex"),_=new e(r[g].gen,"hex");return new i(y,_)}var o={binary:!0,hex:!0,base64:!0};function d(g,y,_,I){return e.isBuffer(y)||o[y]===void 0?d(g,"binary",y,_):(y=y||"binary",I=I||"binary",_=_||new e([2]),e.isBuffer(_)||(_=new e(_,I)),typeof g=="number"?new i(t(g,_),_,!0):(e.isBuffer(g)||(g=new e(g,y)),new i(g,_,!0)))}return r4.DiffieHellmanGroup=r4.createDiffieHellmanGroup=r4.getDiffieHellman=n,r4.createDiffieHellman=r4.DiffieHellman=d,r4}function Hue(){return PUe||(PUe=!0,(function(e,t){function r(l,A){if(!l)throw new Error(A||"Assertion failed")}function i(l,A){l.super_=A;var m=function(){};m.prototype=A.prototype,l.prototype=new m,l.prototype.constructor=l}function n(l,A,m){if(n.isBN(l))return l;(this||It).negative=0,(this||It).words=null,(this||It).length=0,(this||It).red=null,l!==null&&((A==="le"||A==="be")&&(m=A,A=10),this._init(l||0,A||10,m||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(A){return A instanceof n?!0:A!==null&&typeof A=="object"&&A.constructor.wordSize===n.wordSize&&Array.isArray(A.words)},n.max=function(A,m){return A.cmp(m)>0?A:m},n.min=function(A,m){return A.cmp(m)<0?A:m},n.prototype._init=function(A,m,E){if(typeof A=="number")return this._initNumber(A,m,E);if(typeof A=="object")return this._initArray(A,m,E);m==="hex"&&(m=16),r(m===(m|0)&&m>=2&&m<=36),A=A.toString().replace(/\s+/g,"");var w=0;A[0]==="-"&&(w++,(this||It).negative=1),w<A.length&&(m===16?this._parseHex(A,w,E):(this._parseBase(A,m,w),E==="le"&&this._initArray(this.toArray(),m,E)))},n.prototype._initNumber=function(A,m,E){A<0&&((this||It).negative=1,A=-A),A<67108864?((this||It).words=[A&67108863],(this||It).length=1):A<4503599627370496?((this||It).words=[A&67108863,A/67108864&67108863],(this||It).length=2):(r(A<9007199254740992),(this||It).words=[A&67108863,A/67108864&67108863,1],(this||It).length=3),E==="le"&&this._initArray(this.toArray(),m,E)},n.prototype._initArray=function(A,m,E){if(r(typeof A.length=="number"),A.length<=0)return(this||It).words=[0],(this||It).length=1,this||It;(this||It).length=Math.ceil(A.length/3),(this||It).words=new Array((this||It).length);for(var w=0;w<(this||It).length;w++)(this||It).words[w]=0;var x,R,u=0;if(E==="be")for(w=A.length-1,x=0;w>=0;w-=3)R=A[w]|A[w-1]<<8|A[w-2]<<16,(this||It).words[x]|=R<<u&67108863,(this||It).words[x+1]=R>>>26-u&67108863,u+=24,u>=26&&(u-=26,x++);else if(E==="le")for(w=0,x=0;w<A.length;w+=3)R=A[w]|A[w+1]<<8|A[w+2]<<16,(this||It).words[x]|=R<<u&67108863,(this||It).words[x+1]=R>>>26-u&67108863,u+=24,u>=26&&(u-=26,x++);return this._strip()};function d(l,A){var m=l.charCodeAt(A);if(m>=48&&m<=57)return m-48;if(m>=65&&m<=70)return m-55;if(m>=97&&m<=102)return m-87;r(!1,"Invalid character in "+l)}function g(l,A,m){var E=d(l,m);return m-1>=A&&(E|=d(l,m-1)<<4),E}n.prototype._parseHex=function(A,m,E){(this||It).length=Math.ceil((A.length-m)/6),(this||It).words=new Array((this||It).length);for(var w=0;w<(this||It).length;w++)(this||It).words[w]=0;var x=0,R=0,u;if(E==="be")for(w=A.length-1;w>=m;w-=2)u=g(A,m,w)<<x,(this||It).words[R]|=u&67108863,x>=18?(x-=18,R+=1,(this||It).words[R]|=u>>>26):x+=8;else{var C=A.length-m;for(w=C%2===0?m+1:m;w<A.length;w+=2)u=g(A,m,w)<<x,(this||It).words[R]|=u&67108863,x>=18?(x-=18,R+=1,(this||It).words[R]|=u>>>26):x+=8}this._strip()};function y(l,A,m,E){for(var w=0,x=0,R=Math.min(l.length,m),u=A;u<R;u++){var C=l.charCodeAt(u)-48;w*=E,C>=49?x=C-49+10:C>=17?x=C-17+10:x=C,r(C>=0&&x<E,"Invalid character"),w+=x}return w}n.prototype._parseBase=function(A,m,E){(this||It).words=[0],(this||It).length=1;for(var w=0,x=1;x<=67108863;x*=m)w++;w--,x=x/m|0;for(var R=A.length-E,u=R%w,C=Math.min(R,R-u)+E,U=0,F=E;F<C;F+=w)U=y(A,F,F+w,m),this.imuln(x),(this||It).words[0]+U<67108864?(this||It).words[0]+=U:this._iaddn(U);if(u!==0){var X=1;for(U=y(A,F,A.length,m),F=0;F<u;F++)X*=m;this.imuln(X),(this||It).words[0]+U<67108864?(this||It).words[0]+=U:this._iaddn(U)}this._strip()},n.prototype.copy=function(A){A.words=new Array((this||It).length);for(var m=0;m<(this||It).length;m++)A.words[m]=(this||It).words[m];A.length=(this||It).length,A.negative=(this||It).negative,A.red=(this||It).red};function _(l,A){l.words=A.words,l.length=A.length,l.negative=A.negative,l.red=A.red}if(n.prototype._move=function(A){_(A,this||It)},n.prototype.clone=function(){var A=new n(null);return this.copy(A),A},n.prototype._expand=function(A){for(;(this||It).length<A;)(this||It).words[(this||It).length++]=0;return this||It},n.prototype._strip=function(){for(;(this||It).length>1&&(this||It).words[(this||It).length-1]===0;)(this||It).length--;return this._normSign()},n.prototype._normSign=function(){return(this||It).length===1&&(this||It).words[0]===0&&((this||It).negative=0),this||It},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=I}catch{n.prototype.inspect=I}else n.prototype.inspect=I;function I(){return((this||It).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(A,m){A=A||10,m=m|0||1;var E;if(A===16||A==="hex"){E="";for(var w=0,x=0,R=0;R<(this||It).length;R++){var u=(this||It).words[R],C=((u<<w|x)&16777215).toString(16);x=u>>>24-w&16777215,x!==0||R!==(this||It).length-1?E=N[6-C.length]+C+E:E=C+E,w+=2,w>=26&&(w-=26,R--)}for(x!==0&&(E=x.toString(16)+E);E.length%m!==0;)E="0"+E;return(this||It).negative!==0&&(E="-"+E),E}if(A===(A|0)&&A>=2&&A<=36){var U=T[A],F=M[A];E="";var X=this.clone();for(X.negative=0;!X.isZero();){var Ae=X.modrn(F).toString(A);X=X.idivn(F),X.isZero()?E=Ae+E:E=N[U-Ae.length]+Ae+E}for(this.isZero()&&(E="0"+E);E.length%m!==0;)E="0"+E;return(this||It).negative!==0&&(E="-"+E),E}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var A=(this||It).words[0];return(this||It).length===2?A+=(this||It).words[1]*67108864:(this||It).length===3&&(this||It).words[2]===1?A+=4503599627370496+(this||It).words[1]*67108864:(this||It).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||It).negative!==0?-A:A},n.prototype.toJSON=function(){return this.toString(16,2)},o&&(n.prototype.toBuffer=function(A,m){return this.toArrayLike(o,A,m)}),n.prototype.toArray=function(A,m){return this.toArrayLike(Array,A,m)};var D=function(A,m){return A.allocUnsafe?A.allocUnsafe(m):new A(m)};n.prototype.toArrayLike=function(A,m,E){this._strip();var w=this.byteLength(),x=E||Math.max(1,w);r(w<=x,"byte array longer than desired length"),r(x>0,"Requested array length <= 0");var R=D(A,x),u=m==="le"?"LE":"BE";return this["_toArrayLike"+u](R,w),R},n.prototype._toArrayLikeLE=function(A,m){for(var E=0,w=0,x=0,R=0;x<(this||It).length;x++){var u=(this||It).words[x]<<R|w;A[E++]=u&255,E<A.length&&(A[E++]=u>>8&255),E<A.length&&(A[E++]=u>>16&255),R===6?(E<A.length&&(A[E++]=u>>24&255),w=0,R=0):(w=u>>>24,R+=2)}if(E<A.length)for(A[E++]=w;E<A.length;)A[E++]=0},n.prototype._toArrayLikeBE=function(A,m){for(var E=A.length-1,w=0,x=0,R=0;x<(this||It).length;x++){var u=(this||It).words[x]<<R|w;A[E--]=u&255,E>=0&&(A[E--]=u>>8&255),E>=0&&(A[E--]=u>>16&255),R===6?(E>=0&&(A[E--]=u>>24&255),w=0,R=0):(w=u>>>24,R+=2)}if(E>=0)for(A[E--]=w;E>=0;)A[E--]=0},Math.clz32?n.prototype._countBits=function(A){return 32-Math.clz32(A)}:n.prototype._countBits=function(A){var m=A,E=0;return m>=4096&&(E+=13,m>>>=13),m>=64&&(E+=7,m>>>=7),m>=8&&(E+=4,m>>>=4),m>=2&&(E+=2,m>>>=2),E+m},n.prototype._zeroBits=function(A){if(A===0)return 26;var m=A,E=0;return(m&8191)===0&&(E+=13,m>>>=13),(m&127)===0&&(E+=7,m>>>=7),(m&15)===0&&(E+=4,m>>>=4),(m&3)===0&&(E+=2,m>>>=2),(m&1)===0&&E++,E},n.prototype.bitLength=function(){var A=(this||It).words[(this||It).length-1],m=this._countBits(A);return((this||It).length-1)*26+m};function P(l){for(var A=new Array(l.bitLength()),m=0;m<A.length;m++){var E=m/26|0,w=m%26;A[m]=l.words[E]>>>w&1}return A}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,m=0;m<(this||It).length;m++){var E=this._zeroBits((this||It).words[m]);if(A+=E,E!==26)break}return A},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(A){return(this||It).negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},n.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||It).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||It).negative^=1),this||It},n.prototype.iuor=function(A){for(;(this||It).length<A.length;)(this||It).words[(this||It).length++]=0;for(var m=0;m<A.length;m++)(this||It).words[m]=(this||It).words[m]|A.words[m];return this._strip()},n.prototype.ior=function(A){return r(((this||It).negative|A.negative)===0),this.iuor(A)},n.prototype.or=function(A){return(this||It).length>A.length?this.clone().ior(A):A.clone().ior(this||It)},n.prototype.uor=function(A){return(this||It).length>A.length?this.clone().iuor(A):A.clone().iuor(this||It)},n.prototype.iuand=function(A){var m;(this||It).length>A.length?m=A:m=this||It;for(var E=0;E<m.length;E++)(this||It).words[E]=(this||It).words[E]&A.words[E];return(this||It).length=m.length,this._strip()},n.prototype.iand=function(A){return r(((this||It).negative|A.negative)===0),this.iuand(A)},n.prototype.and=function(A){return(this||It).length>A.length?this.clone().iand(A):A.clone().iand(this||It)},n.prototype.uand=function(A){return(this||It).length>A.length?this.clone().iuand(A):A.clone().iuand(this||It)},n.prototype.iuxor=function(A){var m,E;(this||It).length>A.length?(m=this||It,E=A):(m=A,E=this||It);for(var w=0;w<E.length;w++)(this||It).words[w]=m.words[w]^E.words[w];if((this||It)!==m)for(;w<m.length;w++)(this||It).words[w]=m.words[w];return(this||It).length=m.length,this._strip()},n.prototype.ixor=function(A){return r(((this||It).negative|A.negative)===0),this.iuxor(A)},n.prototype.xor=function(A){return(this||It).length>A.length?this.clone().ixor(A):A.clone().ixor(this||It)},n.prototype.uxor=function(A){return(this||It).length>A.length?this.clone().iuxor(A):A.clone().iuxor(this||It)},n.prototype.inotn=function(A){r(typeof A=="number"&&A>=0);var m=Math.ceil(A/26)|0,E=A%26;this._expand(m),E>0&&m--;for(var w=0;w<m;w++)(this||It).words[w]=~(this||It).words[w]&67108863;return E>0&&((this||It).words[w]=~(this||It).words[w]&67108863>>26-E),this._strip()},n.prototype.notn=function(A){return this.clone().inotn(A)},n.prototype.setn=function(A,m){r(typeof A=="number"&&A>=0);var E=A/26|0,w=A%26;return this._expand(E+1),m?(this||It).words[E]=(this||It).words[E]|1<<w:(this||It).words[E]=(this||It).words[E]&~(1<<w),this._strip()},n.prototype.iadd=function(A){var m;if((this||It).negative!==0&&A.negative===0)return(this||It).negative=0,m=this.isub(A),(this||It).negative^=1,this._normSign();if((this||It).negative===0&&A.negative!==0)return A.negative=0,m=this.isub(A),A.negative=1,m._normSign();var E,w;(this||It).length>A.length?(E=this||It,w=A):(E=A,w=this||It);for(var x=0,R=0;R<w.length;R++)m=(E.words[R]|0)+(w.words[R]|0)+x,(this||It).words[R]=m&67108863,x=m>>>26;for(;x!==0&&R<E.length;R++)m=(E.words[R]|0)+x,(this||It).words[R]=m&67108863,x=m>>>26;if((this||It).length=E.length,x!==0)(this||It).words[(this||It).length]=x,(this||It).length++;else if(E!==(this||It))for(;R<E.length;R++)(this||It).words[R]=E.words[R];return this||It},n.prototype.add=function(A){var m;return A.negative!==0&&(this||It).negative===0?(A.negative=0,m=this.sub(A),A.negative^=1,m):A.negative===0&&(this||It).negative!==0?((this||It).negative=0,m=A.sub(this||It),(this||It).negative=1,m):(this||It).length>A.length?this.clone().iadd(A):A.clone().iadd(this||It)},n.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var m=this.iadd(A);return A.negative=1,m._normSign()}else if((this||It).negative!==0)return(this||It).negative=0,this.iadd(A),(this||It).negative=1,this._normSign();var E=this.cmp(A);if(E===0)return(this||It).negative=0,(this||It).length=1,(this||It).words[0]=0,this||It;var w,x;E>0?(w=this||It,x=A):(w=A,x=this||It);for(var R=0,u=0;u<x.length;u++)m=(w.words[u]|0)-(x.words[u]|0)+R,R=m>>26,(this||It).words[u]=m&67108863;for(;R!==0&&u<w.length;u++)m=(w.words[u]|0)+R,R=m>>26,(this||It).words[u]=m&67108863;if(R===0&&u<w.length&&w!==(this||It))for(;u<w.length;u++)(this||It).words[u]=w.words[u];return(this||It).length=Math.max((this||It).length,u),w!==(this||It)&&((this||It).negative=1),this._strip()},n.prototype.sub=function(A){return this.clone().isub(A)};function G(l,A,m){m.negative=A.negative^l.negative;var E=l.length+A.length|0;m.length=E,E=E-1|0;var w=l.words[0]|0,x=A.words[0]|0,R=w*x,u=R&67108863,C=R/67108864|0;m.words[0]=u;for(var U=1;U<E;U++){for(var F=C>>>26,X=C&67108863,Ae=Math.min(U,A.length-1),he=Math.max(0,U-l.length+1);he<=Ae;he++){var $e=U-he|0;w=l.words[$e]|0,x=A.words[he]|0,R=w*x+X,F+=R/67108864|0,X=R&67108863}m.words[U]=X|0,C=F|0}return C!==0?m.words[U]=C|0:m.length--,m._strip()}var q=function(A,m,E){var w=A.words,x=m.words,R=E.words,u=0,C,U,F,X=w[0]|0,Ae=X&8191,he=X>>>13,$e=w[1]|0,Ge=$e&8191,Re=$e>>>13,Se=w[2]|0,ct=Se&8191,ze=Se>>>13,te=w[3]|0,Ue=te&8191,oe=te>>>13,ge=w[4]|0,Le=ge&8191,V=ge>>>13,Qe=w[5]|0,_t=Qe&8191,rt=Qe>>>13,At=w[6]|0,Er=At&8191,mt=At>>>13,Ht=w[7]|0,zr=Ht&8191,ve=Ht>>>13,ie=w[8]|0,_e=ie&8191,Be=ie>>>13,Ze=w[9]|0,$t=Ze&8191,at=Ze>>>13,zt=x[0]|0,Hr=zt&8191,St=zt>>>13,Yt=x[1]|0,qr=Yt&8191,tr=Yt>>>13,hr=x[2]|0,Cn=hr&8191,er=hr>>>13,pr=x[3]|0,mn=pr&8191,Xt=pr>>>13,dr=x[4]|0,wn=dr&8191,Qt=dr>>>13,fr=x[5]|0,In=fr&8191,jt=fr>>>13,ar=x[6]|0,ht=ar&8191,Xe=ar>>>13,et=x[7]|0,ue=et&8191,je=et>>>13,be=x[8]|0,qe=be&8191,De=be>>>13,Je=x[9]|0,Rt=Je&8191,Vt=Je>>>13;E.negative=A.negative^m.negative,E.length=19,C=Math.imul(Ae,Hr),U=Math.imul(Ae,St),U=U+Math.imul(he,Hr)|0,F=Math.imul(he,St);var br=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(br>>>26)|0,br&=67108863,C=Math.imul(Ge,Hr),U=Math.imul(Ge,St),U=U+Math.imul(Re,Hr)|0,F=Math.imul(Re,St),C=C+Math.imul(Ae,qr)|0,U=U+Math.imul(Ae,tr)|0,U=U+Math.imul(he,qr)|0,F=F+Math.imul(he,tr)|0;var Rr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,C=Math.imul(ct,Hr),U=Math.imul(ct,St),U=U+Math.imul(ze,Hr)|0,F=Math.imul(ze,St),C=C+Math.imul(Ge,qr)|0,U=U+Math.imul(Ge,tr)|0,U=U+Math.imul(Re,qr)|0,F=F+Math.imul(Re,tr)|0,C=C+Math.imul(Ae,Cn)|0,U=U+Math.imul(Ae,er)|0,U=U+Math.imul(he,Cn)|0,F=F+Math.imul(he,er)|0;var Dr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,C=Math.imul(Ue,Hr),U=Math.imul(Ue,St),U=U+Math.imul(oe,Hr)|0,F=Math.imul(oe,St),C=C+Math.imul(ct,qr)|0,U=U+Math.imul(ct,tr)|0,U=U+Math.imul(ze,qr)|0,F=F+Math.imul(ze,tr)|0,C=C+Math.imul(Ge,Cn)|0,U=U+Math.imul(Ge,er)|0,U=U+Math.imul(Re,Cn)|0,F=F+Math.imul(Re,er)|0,C=C+Math.imul(Ae,mn)|0,U=U+Math.imul(Ae,Xt)|0,U=U+Math.imul(he,mn)|0,F=F+Math.imul(he,Xt)|0;var Pr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,C=Math.imul(Le,Hr),U=Math.imul(Le,St),U=U+Math.imul(V,Hr)|0,F=Math.imul(V,St),C=C+Math.imul(Ue,qr)|0,U=U+Math.imul(Ue,tr)|0,U=U+Math.imul(oe,qr)|0,F=F+Math.imul(oe,tr)|0,C=C+Math.imul(ct,Cn)|0,U=U+Math.imul(ct,er)|0,U=U+Math.imul(ze,Cn)|0,F=F+Math.imul(ze,er)|0,C=C+Math.imul(Ge,mn)|0,U=U+Math.imul(Ge,Xt)|0,U=U+Math.imul(Re,mn)|0,F=F+Math.imul(Re,Xt)|0,C=C+Math.imul(Ae,wn)|0,U=U+Math.imul(Ae,Qt)|0,U=U+Math.imul(he,wn)|0,F=F+Math.imul(he,Qt)|0;var k=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(k>>>26)|0,k&=67108863,C=Math.imul(_t,Hr),U=Math.imul(_t,St),U=U+Math.imul(rt,Hr)|0,F=Math.imul(rt,St),C=C+Math.imul(Le,qr)|0,U=U+Math.imul(Le,tr)|0,U=U+Math.imul(V,qr)|0,F=F+Math.imul(V,tr)|0,C=C+Math.imul(Ue,Cn)|0,U=U+Math.imul(Ue,er)|0,U=U+Math.imul(oe,Cn)|0,F=F+Math.imul(oe,er)|0,C=C+Math.imul(ct,mn)|0,U=U+Math.imul(ct,Xt)|0,U=U+Math.imul(ze,mn)|0,F=F+Math.imul(ze,Xt)|0,C=C+Math.imul(Ge,wn)|0,U=U+Math.imul(Ge,Qt)|0,U=U+Math.imul(Re,wn)|0,F=F+Math.imul(Re,Qt)|0,C=C+Math.imul(Ae,In)|0,U=U+Math.imul(Ae,jt)|0,U=U+Math.imul(he,In)|0,F=F+Math.imul(he,jt)|0;var a=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(a>>>26)|0,a&=67108863,C=Math.imul(Er,Hr),U=Math.imul(Er,St),U=U+Math.imul(mt,Hr)|0,F=Math.imul(mt,St),C=C+Math.imul(_t,qr)|0,U=U+Math.imul(_t,tr)|0,U=U+Math.imul(rt,qr)|0,F=F+Math.imul(rt,tr)|0,C=C+Math.imul(Le,Cn)|0,U=U+Math.imul(Le,er)|0,U=U+Math.imul(V,Cn)|0,F=F+Math.imul(V,er)|0,C=C+Math.imul(Ue,mn)|0,U=U+Math.imul(Ue,Xt)|0,U=U+Math.imul(oe,mn)|0,F=F+Math.imul(oe,Xt)|0,C=C+Math.imul(ct,wn)|0,U=U+Math.imul(ct,Qt)|0,U=U+Math.imul(ze,wn)|0,F=F+Math.imul(ze,Qt)|0,C=C+Math.imul(Ge,In)|0,U=U+Math.imul(Ge,jt)|0,U=U+Math.imul(Re,In)|0,F=F+Math.imul(Re,jt)|0,C=C+Math.imul(Ae,ht)|0,U=U+Math.imul(Ae,Xe)|0,U=U+Math.imul(he,ht)|0,F=F+Math.imul(he,Xe)|0;var S=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(S>>>26)|0,S&=67108863,C=Math.imul(zr,Hr),U=Math.imul(zr,St),U=U+Math.imul(ve,Hr)|0,F=Math.imul(ve,St),C=C+Math.imul(Er,qr)|0,U=U+Math.imul(Er,tr)|0,U=U+Math.imul(mt,qr)|0,F=F+Math.imul(mt,tr)|0,C=C+Math.imul(_t,Cn)|0,U=U+Math.imul(_t,er)|0,U=U+Math.imul(rt,Cn)|0,F=F+Math.imul(rt,er)|0,C=C+Math.imul(Le,mn)|0,U=U+Math.imul(Le,Xt)|0,U=U+Math.imul(V,mn)|0,F=F+Math.imul(V,Xt)|0,C=C+Math.imul(Ue,wn)|0,U=U+Math.imul(Ue,Qt)|0,U=U+Math.imul(oe,wn)|0,F=F+Math.imul(oe,Qt)|0,C=C+Math.imul(ct,In)|0,U=U+Math.imul(ct,jt)|0,U=U+Math.imul(ze,In)|0,F=F+Math.imul(ze,jt)|0,C=C+Math.imul(Ge,ht)|0,U=U+Math.imul(Ge,Xe)|0,U=U+Math.imul(Re,ht)|0,F=F+Math.imul(Re,Xe)|0,C=C+Math.imul(Ae,ue)|0,U=U+Math.imul(Ae,je)|0,U=U+Math.imul(he,ue)|0,F=F+Math.imul(he,je)|0;var sn=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(sn>>>26)|0,sn&=67108863,C=Math.imul(_e,Hr),U=Math.imul(_e,St),U=U+Math.imul(Be,Hr)|0,F=Math.imul(Be,St),C=C+Math.imul(zr,qr)|0,U=U+Math.imul(zr,tr)|0,U=U+Math.imul(ve,qr)|0,F=F+Math.imul(ve,tr)|0,C=C+Math.imul(Er,Cn)|0,U=U+Math.imul(Er,er)|0,U=U+Math.imul(mt,Cn)|0,F=F+Math.imul(mt,er)|0,C=C+Math.imul(_t,mn)|0,U=U+Math.imul(_t,Xt)|0,U=U+Math.imul(rt,mn)|0,F=F+Math.imul(rt,Xt)|0,C=C+Math.imul(Le,wn)|0,U=U+Math.imul(Le,Qt)|0,U=U+Math.imul(V,wn)|0,F=F+Math.imul(V,Qt)|0,C=C+Math.imul(Ue,In)|0,U=U+Math.imul(Ue,jt)|0,U=U+Math.imul(oe,In)|0,F=F+Math.imul(oe,jt)|0,C=C+Math.imul(ct,ht)|0,U=U+Math.imul(ct,Xe)|0,U=U+Math.imul(ze,ht)|0,F=F+Math.imul(ze,Xe)|0,C=C+Math.imul(Ge,ue)|0,U=U+Math.imul(Ge,je)|0,U=U+Math.imul(Re,ue)|0,F=F+Math.imul(Re,je)|0,C=C+Math.imul(Ae,qe)|0,U=U+Math.imul(Ae,De)|0,U=U+Math.imul(he,qe)|0,F=F+Math.imul(he,De)|0;var Lr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,C=Math.imul($t,Hr),U=Math.imul($t,St),U=U+Math.imul(at,Hr)|0,F=Math.imul(at,St),C=C+Math.imul(_e,qr)|0,U=U+Math.imul(_e,tr)|0,U=U+Math.imul(Be,qr)|0,F=F+Math.imul(Be,tr)|0,C=C+Math.imul(zr,Cn)|0,U=U+Math.imul(zr,er)|0,U=U+Math.imul(ve,Cn)|0,F=F+Math.imul(ve,er)|0,C=C+Math.imul(Er,mn)|0,U=U+Math.imul(Er,Xt)|0,U=U+Math.imul(mt,mn)|0,F=F+Math.imul(mt,Xt)|0,C=C+Math.imul(_t,wn)|0,U=U+Math.imul(_t,Qt)|0,U=U+Math.imul(rt,wn)|0,F=F+Math.imul(rt,Qt)|0,C=C+Math.imul(Le,In)|0,U=U+Math.imul(Le,jt)|0,U=U+Math.imul(V,In)|0,F=F+Math.imul(V,jt)|0,C=C+Math.imul(Ue,ht)|0,U=U+Math.imul(Ue,Xe)|0,U=U+Math.imul(oe,ht)|0,F=F+Math.imul(oe,Xe)|0,C=C+Math.imul(ct,ue)|0,U=U+Math.imul(ct,je)|0,U=U+Math.imul(ze,ue)|0,F=F+Math.imul(ze,je)|0,C=C+Math.imul(Ge,qe)|0,U=U+Math.imul(Ge,De)|0,U=U+Math.imul(Re,qe)|0,F=F+Math.imul(Re,De)|0,C=C+Math.imul(Ae,Rt)|0,U=U+Math.imul(Ae,Vt)|0,U=U+Math.imul(he,Rt)|0,F=F+Math.imul(he,Vt)|0;var Wr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,C=Math.imul($t,qr),U=Math.imul($t,tr),U=U+Math.imul(at,qr)|0,F=Math.imul(at,tr),C=C+Math.imul(_e,Cn)|0,U=U+Math.imul(_e,er)|0,U=U+Math.imul(Be,Cn)|0,F=F+Math.imul(Be,er)|0,C=C+Math.imul(zr,mn)|0,U=U+Math.imul(zr,Xt)|0,U=U+Math.imul(ve,mn)|0,F=F+Math.imul(ve,Xt)|0,C=C+Math.imul(Er,wn)|0,U=U+Math.imul(Er,Qt)|0,U=U+Math.imul(mt,wn)|0,F=F+Math.imul(mt,Qt)|0,C=C+Math.imul(_t,In)|0,U=U+Math.imul(_t,jt)|0,U=U+Math.imul(rt,In)|0,F=F+Math.imul(rt,jt)|0,C=C+Math.imul(Le,ht)|0,U=U+Math.imul(Le,Xe)|0,U=U+Math.imul(V,ht)|0,F=F+Math.imul(V,Xe)|0,C=C+Math.imul(Ue,ue)|0,U=U+Math.imul(Ue,je)|0,U=U+Math.imul(oe,ue)|0,F=F+Math.imul(oe,je)|0,C=C+Math.imul(ct,qe)|0,U=U+Math.imul(ct,De)|0,U=U+Math.imul(ze,qe)|0,F=F+Math.imul(ze,De)|0,C=C+Math.imul(Ge,Rt)|0,U=U+Math.imul(Ge,Vt)|0,U=U+Math.imul(Re,Rt)|0,F=F+Math.imul(Re,Vt)|0;var ln=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(ln>>>26)|0,ln&=67108863,C=Math.imul($t,Cn),U=Math.imul($t,er),U=U+Math.imul(at,Cn)|0,F=Math.imul(at,er),C=C+Math.imul(_e,mn)|0,U=U+Math.imul(_e,Xt)|0,U=U+Math.imul(Be,mn)|0,F=F+Math.imul(Be,Xt)|0,C=C+Math.imul(zr,wn)|0,U=U+Math.imul(zr,Qt)|0,U=U+Math.imul(ve,wn)|0,F=F+Math.imul(ve,Qt)|0,C=C+Math.imul(Er,In)|0,U=U+Math.imul(Er,jt)|0,U=U+Math.imul(mt,In)|0,F=F+Math.imul(mt,jt)|0,C=C+Math.imul(_t,ht)|0,U=U+Math.imul(_t,Xe)|0,U=U+Math.imul(rt,ht)|0,F=F+Math.imul(rt,Xe)|0,C=C+Math.imul(Le,ue)|0,U=U+Math.imul(Le,je)|0,U=U+Math.imul(V,ue)|0,F=F+Math.imul(V,je)|0,C=C+Math.imul(Ue,qe)|0,U=U+Math.imul(Ue,De)|0,U=U+Math.imul(oe,qe)|0,F=F+Math.imul(oe,De)|0,C=C+Math.imul(ct,Rt)|0,U=U+Math.imul(ct,Vt)|0,U=U+Math.imul(ze,Rt)|0,F=F+Math.imul(ze,Vt)|0;var yt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(yt>>>26)|0,yt&=67108863,C=Math.imul($t,mn),U=Math.imul($t,Xt),U=U+Math.imul(at,mn)|0,F=Math.imul(at,Xt),C=C+Math.imul(_e,wn)|0,U=U+Math.imul(_e,Qt)|0,U=U+Math.imul(Be,wn)|0,F=F+Math.imul(Be,Qt)|0,C=C+Math.imul(zr,In)|0,U=U+Math.imul(zr,jt)|0,U=U+Math.imul(ve,In)|0,F=F+Math.imul(ve,jt)|0,C=C+Math.imul(Er,ht)|0,U=U+Math.imul(Er,Xe)|0,U=U+Math.imul(mt,ht)|0,F=F+Math.imul(mt,Xe)|0,C=C+Math.imul(_t,ue)|0,U=U+Math.imul(_t,je)|0,U=U+Math.imul(rt,ue)|0,F=F+Math.imul(rt,je)|0,C=C+Math.imul(Le,qe)|0,U=U+Math.imul(Le,De)|0,U=U+Math.imul(V,qe)|0,F=F+Math.imul(V,De)|0,C=C+Math.imul(Ue,Rt)|0,U=U+Math.imul(Ue,Vt)|0,U=U+Math.imul(oe,Rt)|0,F=F+Math.imul(oe,Vt)|0;var ot=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(ot>>>26)|0,ot&=67108863,C=Math.imul($t,wn),U=Math.imul($t,Qt),U=U+Math.imul(at,wn)|0,F=Math.imul(at,Qt),C=C+Math.imul(_e,In)|0,U=U+Math.imul(_e,jt)|0,U=U+Math.imul(Be,In)|0,F=F+Math.imul(Be,jt)|0,C=C+Math.imul(zr,ht)|0,U=U+Math.imul(zr,Xe)|0,U=U+Math.imul(ve,ht)|0,F=F+Math.imul(ve,Xe)|0,C=C+Math.imul(Er,ue)|0,U=U+Math.imul(Er,je)|0,U=U+Math.imul(mt,ue)|0,F=F+Math.imul(mt,je)|0,C=C+Math.imul(_t,qe)|0,U=U+Math.imul(_t,De)|0,U=U+Math.imul(rt,qe)|0,F=F+Math.imul(rt,De)|0,C=C+Math.imul(Le,Rt)|0,U=U+Math.imul(Le,Vt)|0,U=U+Math.imul(V,Rt)|0,F=F+Math.imul(V,Vt)|0;var lt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(lt>>>26)|0,lt&=67108863,C=Math.imul($t,In),U=Math.imul($t,jt),U=U+Math.imul(at,In)|0,F=Math.imul(at,jt),C=C+Math.imul(_e,ht)|0,U=U+Math.imul(_e,Xe)|0,U=U+Math.imul(Be,ht)|0,F=F+Math.imul(Be,Xe)|0,C=C+Math.imul(zr,ue)|0,U=U+Math.imul(zr,je)|0,U=U+Math.imul(ve,ue)|0,F=F+Math.imul(ve,je)|0,C=C+Math.imul(Er,qe)|0,U=U+Math.imul(Er,De)|0,U=U+Math.imul(mt,qe)|0,F=F+Math.imul(mt,De)|0,C=C+Math.imul(_t,Rt)|0,U=U+Math.imul(_t,Vt)|0,U=U+Math.imul(rt,Rt)|0,F=F+Math.imul(rt,Vt)|0;var gt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(gt>>>26)|0,gt&=67108863,C=Math.imul($t,ht),U=Math.imul($t,Xe),U=U+Math.imul(at,ht)|0,F=Math.imul(at,Xe),C=C+Math.imul(_e,ue)|0,U=U+Math.imul(_e,je)|0,U=U+Math.imul(Be,ue)|0,F=F+Math.imul(Be,je)|0,C=C+Math.imul(zr,qe)|0,U=U+Math.imul(zr,De)|0,U=U+Math.imul(ve,qe)|0,F=F+Math.imul(ve,De)|0,C=C+Math.imul(Er,Rt)|0,U=U+Math.imul(Er,Vt)|0,U=U+Math.imul(mt,Rt)|0,F=F+Math.imul(mt,Vt)|0;var Ie=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,C=Math.imul($t,ue),U=Math.imul($t,je),U=U+Math.imul(at,ue)|0,F=Math.imul(at,je),C=C+Math.imul(_e,qe)|0,U=U+Math.imul(_e,De)|0,U=U+Math.imul(Be,qe)|0,F=F+Math.imul(Be,De)|0,C=C+Math.imul(zr,Rt)|0,U=U+Math.imul(zr,Vt)|0,U=U+Math.imul(ve,Rt)|0,F=F+Math.imul(ve,Vt)|0;var Zt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,C=Math.imul($t,qe),U=Math.imul($t,De),U=U+Math.imul(at,qe)|0,F=Math.imul(at,De),C=C+Math.imul(_e,Rt)|0,U=U+Math.imul(_e,Vt)|0,U=U+Math.imul(Be,Rt)|0,F=F+Math.imul(Be,Vt)|0;var Ir=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,C=Math.imul($t,Rt),U=Math.imul($t,Vt),U=U+Math.imul(at,Rt)|0,F=Math.imul(at,Vt);var $=(u+C|0)+((U&8191)<<13)|0;return u=(F+(U>>>13)|0)+($>>>26)|0,$&=67108863,R[0]=br,R[1]=Rr,R[2]=Dr,R[3]=Pr,R[4]=k,R[5]=a,R[6]=S,R[7]=sn,R[8]=Lr,R[9]=Wr,R[10]=ln,R[11]=yt,R[12]=ot,R[13]=lt,R[14]=gt,R[15]=Ie,R[16]=Zt,R[17]=Ir,R[18]=$,u!==0&&(R[19]=u,E.length++),E};Math.imul||(q=G);function Y(l,A,m){m.negative=A.negative^l.negative,m.length=l.length+A.length;for(var E=0,w=0,x=0;x<m.length-1;x++){var R=w;w=0;for(var u=E&67108863,C=Math.min(x,A.length-1),U=Math.max(0,x-l.length+1);U<=C;U++){var F=x-U,X=l.words[F]|0,Ae=A.words[U]|0,he=X*Ae,$e=he&67108863;R=R+(he/67108864|0)|0,$e=$e+u|0,u=$e&67108863,R=R+($e>>>26)|0,w+=R>>>26,R&=67108863}m.words[x]=u,E=R,R=w}return E!==0?m.words[x]=E:m.length--,m._strip()}function ne(l,A,m){return Y(l,A,m)}n.prototype.mulTo=function(A,m){var E,w=(this||It).length+A.length;return(this||It).length===10&&A.length===10?E=q(this||It,A,m):w<63?E=G(this||It,A,m):w<1024?E=Y(this||It,A,m):E=ne(this||It,A,m),E},n.prototype.mul=function(A){var m=new n(null);return m.words=new Array((this||It).length+A.length),this.mulTo(A,m)},n.prototype.mulf=function(A){var m=new n(null);return m.words=new Array((this||It).length+A.length),ne(this||It,A,m)},n.prototype.imul=function(A){return this.clone().mulTo(A,this||It)},n.prototype.imuln=function(A){var m=A<0;m&&(A=-A),r(typeof A=="number"),r(A<67108864);for(var E=0,w=0;w<(this||It).length;w++){var x=((this||It).words[w]|0)*A,R=(x&67108863)+(E&67108863);E>>=26,E+=x/67108864|0,E+=R>>>26,(this||It).words[w]=R&67108863}return E!==0&&((this||It).words[w]=E,(this||It).length++),m?this.ineg():this||It},n.prototype.muln=function(A){return this.clone().imuln(A)},n.prototype.sqr=function(){return this.mul(this||It)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(A){var m=P(A);if(m.length===0)return new n(1);for(var E=this||It,w=0;w<m.length&&m[w]===0;w++,E=E.sqr());if(++w<m.length)for(var x=E.sqr();w<m.length;w++,x=x.sqr())m[w]!==0&&(E=E.mul(x));return E},n.prototype.iushln=function(A){r(typeof A=="number"&&A>=0);var m=A%26,E=(A-m)/26,w=67108863>>>26-m<<26-m,x;if(m!==0){var R=0;for(x=0;x<(this||It).length;x++){var u=(this||It).words[x]&w,C=((this||It).words[x]|0)-u<<m;(this||It).words[x]=C|R,R=u>>>26-m}R&&((this||It).words[x]=R,(this||It).length++)}if(E!==0){for(x=(this||It).length-1;x>=0;x--)(this||It).words[x+E]=(this||It).words[x];for(x=0;x<E;x++)(this||It).words[x]=0;(this||It).length+=E}return this._strip()},n.prototype.ishln=function(A){return r((this||It).negative===0),this.iushln(A)},n.prototype.iushrn=function(A,m,E){r(typeof A=="number"&&A>=0);var w;m?w=(m-m%26)/26:w=0;var x=A%26,R=Math.min((A-x)/26,(this||It).length),u=67108863^67108863>>>x<<x,C=E;if(w-=R,w=Math.max(0,w),C){for(var U=0;U<R;U++)C.words[U]=(this||It).words[U];C.length=R}if(R!==0)if((this||It).length>R)for((this||It).length-=R,U=0;U<(this||It).length;U++)(this||It).words[U]=(this||It).words[U+R];else(this||It).words[0]=0,(this||It).length=1;var F=0;for(U=(this||It).length-1;U>=0&&(F!==0||U>=w);U--){var X=(this||It).words[U]|0;(this||It).words[U]=F<<26-x|X>>>x,F=X&u}return C&&F!==0&&(C.words[C.length++]=F),(this||It).length===0&&((this||It).words[0]=0,(this||It).length=1),this._strip()},n.prototype.ishrn=function(A,m,E){return r((this||It).negative===0),this.iushrn(A,m,E)},n.prototype.shln=function(A){return this.clone().ishln(A)},n.prototype.ushln=function(A){return this.clone().iushln(A)},n.prototype.shrn=function(A){return this.clone().ishrn(A)},n.prototype.ushrn=function(A){return this.clone().iushrn(A)},n.prototype.testn=function(A){r(typeof A=="number"&&A>=0);var m=A%26,E=(A-m)/26,w=1<<m;if((this||It).length<=E)return!1;var x=(this||It).words[E];return!!(x&w)},n.prototype.imaskn=function(A){r(typeof A=="number"&&A>=0);var m=A%26,E=(A-m)/26;if(r((this||It).negative===0,"imaskn works only with positive numbers"),(this||It).length<=E)return this||It;if(m!==0&&E++,(this||It).length=Math.min(E,(this||It).length),m!==0){var w=67108863^67108863>>>m<<m;(this||It).words[(this||It).length-1]&=w}return this._strip()},n.prototype.maskn=function(A){return this.clone().imaskn(A)},n.prototype.iaddn=function(A){return r(typeof A=="number"),r(A<67108864),A<0?this.isubn(-A):(this||It).negative!==0?(this||It).length===1&&((this||It).words[0]|0)<=A?((this||It).words[0]=A-((this||It).words[0]|0),(this||It).negative=0,this||It):((this||It).negative=0,this.isubn(A),(this||It).negative=1,this||It):this._iaddn(A)},n.prototype._iaddn=function(A){(this||It).words[0]+=A;for(var m=0;m<(this||It).length&&(this||It).words[m]>=67108864;m++)(this||It).words[m]-=67108864,m===(this||It).length-1?(this||It).words[m+1]=1:(this||It).words[m+1]++;return(this||It).length=Math.max((this||It).length,m+1),this||It},n.prototype.isubn=function(A){if(r(typeof A=="number"),r(A<67108864),A<0)return this.iaddn(-A);if((this||It).negative!==0)return(this||It).negative=0,this.iaddn(A),(this||It).negative=1,this||It;if((this||It).words[0]-=A,(this||It).length===1&&(this||It).words[0]<0)(this||It).words[0]=-(this||It).words[0],(this||It).negative=1;else for(var m=0;m<(this||It).length&&(this||It).words[m]<0;m++)(this||It).words[m]+=67108864,(this||It).words[m+1]-=1;return this._strip()},n.prototype.addn=function(A){return this.clone().iaddn(A)},n.prototype.subn=function(A){return this.clone().isubn(A)},n.prototype.iabs=function(){return(this||It).negative=0,this||It},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(A,m,E){var w=A.length+E,x;this._expand(w);var R,u=0;for(x=0;x<A.length;x++){R=((this||It).words[x+E]|0)+u;var C=(A.words[x]|0)*m;R-=C&67108863,u=(R>>26)-(C/67108864|0),(this||It).words[x+E]=R&67108863}for(;x<(this||It).length-E;x++)R=((this||It).words[x+E]|0)+u,u=R>>26,(this||It).words[x+E]=R&67108863;if(u===0)return this._strip();for(r(u===-1),u=0,x=0;x<(this||It).length;x++)R=-((this||It).words[x]|0)+u,u=R>>26,(this||It).words[x]=R&67108863;return(this||It).negative=1,this._strip()},n.prototype._wordDiv=function(A,m){var E=(this||It).length-A.length,w=this.clone(),x=A,R=x.words[x.length-1]|0,u=this._countBits(R);E=26-u,E!==0&&(x=x.ushln(E),w.iushln(E),R=x.words[x.length-1]|0);var C=w.length-x.length,U;if(m!=="mod"){U=new n(null),U.length=C+1,U.words=new Array(U.length);for(var F=0;F<U.length;F++)U.words[F]=0}var X=w.clone()._ishlnsubmul(x,1,C);X.negative===0&&(w=X,U&&(U.words[C]=1));for(var Ae=C-1;Ae>=0;Ae--){var he=(w.words[x.length+Ae]|0)*67108864+(w.words[x.length+Ae-1]|0);for(he=Math.min(he/R|0,67108863),w._ishlnsubmul(x,he,Ae);w.negative!==0;)he--,w.negative=0,w._ishlnsubmul(x,1,Ae),w.isZero()||(w.negative^=1);U&&(U.words[Ae]=he)}return U&&U._strip(),w._strip(),m!=="div"&&E!==0&&w.iushrn(E),{div:U||null,mod:w}},n.prototype.divmod=function(A,m,E){if(r(!A.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var w,x,R;return(this||It).negative!==0&&A.negative===0?(R=this.neg().divmod(A,m),m!=="mod"&&(w=R.div.neg()),m!=="div"&&(x=R.mod.neg(),E&&x.negative!==0&&x.iadd(A)),{div:w,mod:x}):(this||It).negative===0&&A.negative!==0?(R=this.divmod(A.neg(),m),m!=="mod"&&(w=R.div.neg()),{div:w,mod:R.mod}):((this||It).negative&A.negative)!==0?(R=this.neg().divmod(A.neg(),m),m!=="div"&&(x=R.mod.neg(),E&&x.negative!==0&&x.isub(A)),{div:R.div,mod:x}):A.length>(this||It).length||this.cmp(A)<0?{div:new n(0),mod:this||It}:A.length===1?m==="div"?{div:this.divn(A.words[0]),mod:null}:m==="mod"?{div:null,mod:new n(this.modrn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new n(this.modrn(A.words[0]))}:this._wordDiv(A,m)},n.prototype.div=function(A){return this.divmod(A,"div",!1).div},n.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},n.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},n.prototype.divRound=function(A){var m=this.divmod(A);if(m.mod.isZero())return m.div;var E=m.div.negative!==0?m.mod.isub(A):m.mod,w=A.ushrn(1),x=A.andln(1),R=E.cmp(w);return R<0||x===1&&R===0?m.div:m.div.negative!==0?m.div.isubn(1):m.div.iaddn(1)},n.prototype.modrn=function(A){var m=A<0;m&&(A=-A),r(A<=67108863);for(var E=(1<<26)%A,w=0,x=(this||It).length-1;x>=0;x--)w=(E*w+((this||It).words[x]|0))%A;return m?-w:w},n.prototype.modn=function(A){return this.modrn(A)},n.prototype.idivn=function(A){var m=A<0;m&&(A=-A),r(A<=67108863);for(var E=0,w=(this||It).length-1;w>=0;w--){var x=((this||It).words[w]|0)+E*67108864;(this||It).words[w]=x/A|0,E=x%A}return this._strip(),m?this.ineg():this||It},n.prototype.divn=function(A){return this.clone().idivn(A)},n.prototype.egcd=function(A){r(A.negative===0),r(!A.isZero());var m=this||It,E=A.clone();m.negative!==0?m=m.umod(A):m=m.clone();for(var w=new n(1),x=new n(0),R=new n(0),u=new n(1),C=0;m.isEven()&&E.isEven();)m.iushrn(1),E.iushrn(1),++C;for(var U=E.clone(),F=m.clone();!m.isZero();){for(var X=0,Ae=1;(m.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(m.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(U),x.isub(F)),w.iushrn(1),x.iushrn(1);for(var he=0,$e=1;(E.words[0]&$e)===0&&he<26;++he,$e<<=1);if(he>0)for(E.iushrn(he);he-- >0;)(R.isOdd()||u.isOdd())&&(R.iadd(U),u.isub(F)),R.iushrn(1),u.iushrn(1);m.cmp(E)>=0?(m.isub(E),w.isub(R),x.isub(u)):(E.isub(m),R.isub(w),u.isub(x))}return{a:R,b:u,gcd:E.iushln(C)}},n.prototype._invmp=function(A){r(A.negative===0),r(!A.isZero());var m=this||It,E=A.clone();m.negative!==0?m=m.umod(A):m=m.clone();for(var w=new n(1),x=new n(0),R=E.clone();m.cmpn(1)>0&&E.cmpn(1)>0;){for(var u=0,C=1;(m.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(m.iushrn(u);u-- >0;)w.isOdd()&&w.iadd(R),w.iushrn(1);for(var U=0,F=1;(E.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(E.iushrn(U);U-- >0;)x.isOdd()&&x.iadd(R),x.iushrn(1);m.cmp(E)>=0?(m.isub(E),w.isub(x)):(E.isub(m),x.isub(w))}var X;return m.cmpn(1)===0?X=w:X=x,X.cmpn(0)<0&&X.iadd(A),X},n.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var m=this.clone(),E=A.clone();m.negative=0,E.negative=0;for(var w=0;m.isEven()&&E.isEven();w++)m.iushrn(1),E.iushrn(1);do{for(;m.isEven();)m.iushrn(1);for(;E.isEven();)E.iushrn(1);var x=m.cmp(E);if(x<0){var R=m;m=E,E=R}else if(x===0||E.cmpn(1)===0)break;m.isub(E)}while(!0);return E.iushln(w)},n.prototype.invm=function(A){return this.egcd(A).a.umod(A)},n.prototype.isEven=function(){return((this||It).words[0]&1)===0},n.prototype.isOdd=function(){return((this||It).words[0]&1)===1},n.prototype.andln=function(A){return(this||It).words[0]&A},n.prototype.bincn=function(A){r(typeof A=="number");var m=A%26,E=(A-m)/26,w=1<<m;if((this||It).length<=E)return this._expand(E+1),(this||It).words[E]|=w,this||It;for(var x=w,R=E;x!==0&&R<(this||It).length;R++){var u=(this||It).words[R]|0;u+=x,x=u>>>26,u&=67108863,(this||It).words[R]=u}return x!==0&&((this||It).words[R]=x,(this||It).length++),this||It},n.prototype.isZero=function(){return(this||It).length===1&&(this||It).words[0]===0},n.prototype.cmpn=function(A){var m=A<0;if((this||It).negative!==0&&!m)return-1;if((this||It).negative===0&&m)return 1;this._strip();var E;if((this||It).length>1)E=1;else{m&&(A=-A),r(A<=67108863,"Number is too big");var w=(this||It).words[0]|0;E=w===A?0:w<A?-1:1}return(this||It).negative!==0?-E|0:E},n.prototype.cmp=function(A){if((this||It).negative!==0&&A.negative===0)return-1;if((this||It).negative===0&&A.negative!==0)return 1;var m=this.ucmp(A);return(this||It).negative!==0?-m|0:m},n.prototype.ucmp=function(A){if((this||It).length>A.length)return 1;if((this||It).length<A.length)return-1;for(var m=0,E=(this||It).length-1;E>=0;E--){var w=(this||It).words[E]|0,x=A.words[E]|0;if(w!==x){w<x?m=-1:w>x&&(m=1);break}}return m},n.prototype.gtn=function(A){return this.cmpn(A)===1},n.prototype.gt=function(A){return this.cmp(A)===1},n.prototype.gten=function(A){return this.cmpn(A)>=0},n.prototype.gte=function(A){return this.cmp(A)>=0},n.prototype.ltn=function(A){return this.cmpn(A)===-1},n.prototype.lt=function(A){return this.cmp(A)===-1},n.prototype.lten=function(A){return this.cmpn(A)<=0},n.prototype.lte=function(A){return this.cmp(A)<=0},n.prototype.eqn=function(A){return this.cmpn(A)===0},n.prototype.eq=function(A){return this.cmp(A)===0},n.red=function(A){return new O(A)},n.prototype.toRed=function(A){return r(!(this||It).red,"Already a number in reduction context"),r((this||It).negative===0,"red works only with positives"),A.convertTo(this||It)._forceRed(A)},n.prototype.fromRed=function(){return r((this||It).red,"fromRed works only with numbers in reduction context"),(this||It).red.convertFrom(this||It)},n.prototype._forceRed=function(A){return(this||It).red=A,this||It},n.prototype.forceRed=function(A){return r(!(this||It).red,"Already a number in reduction context"),this._forceRed(A)},n.prototype.redAdd=function(A){return r((this||It).red,"redAdd works only with red numbers"),(this||It).red.add(this||It,A)},n.prototype.redIAdd=function(A){return r((this||It).red,"redIAdd works only with red numbers"),(this||It).red.iadd(this||It,A)},n.prototype.redSub=function(A){return r((this||It).red,"redSub works only with red numbers"),(this||It).red.sub(this||It,A)},n.prototype.redISub=function(A){return r((this||It).red,"redISub works only with red numbers"),(this||It).red.isub(this||It,A)},n.prototype.redShl=function(A){return r((this||It).red,"redShl works only with red numbers"),(this||It).red.shl(this||It,A)},n.prototype.redMul=function(A){return r((this||It).red,"redMul works only with red numbers"),(this||It).red._verify2(this||It,A),(this||It).red.mul(this||It,A)},n.prototype.redIMul=function(A){return r((this||It).red,"redMul works only with red numbers"),(this||It).red._verify2(this||It,A),(this||It).red.imul(this||It,A)},n.prototype.redSqr=function(){return r((this||It).red,"redSqr works only with red numbers"),(this||It).red._verify1(this||It),(this||It).red.sqr(this||It)},n.prototype.redISqr=function(){return r((this||It).red,"redISqr works only with red numbers"),(this||It).red._verify1(this||It),(this||It).red.isqr(this||It)},n.prototype.redSqrt=function(){return r((this||It).red,"redSqrt works only with red numbers"),(this||It).red._verify1(this||It),(this||It).red.sqrt(this||It)},n.prototype.redInvm=function(){return r((this||It).red,"redInvm works only with red numbers"),(this||It).red._verify1(this||It),(this||It).red.invm(this||It)},n.prototype.redNeg=function(){return r((this||It).red,"redNeg works only with red numbers"),(this||It).red._verify1(this||It),(this||It).red.neg(this||It)},n.prototype.redPow=function(A){return r((this||It).red&&!A.red,"redPow(normalNum)"),(this||It).red._verify1(this||It),(this||It).red.pow(this||It,A)};var ce={k256:null,p224:null,p192:null,p25519:null};function le(l,A){(this||It).name=l,(this||It).p=new n(A,16),(this||It).n=(this||It).p.bitLength(),(this||It).k=new n(1).iushln((this||It).n).isub((this||It).p),(this||It).tmp=this._tmp()}le.prototype._tmp=function(){var A=new n(null);return A.words=new Array(Math.ceil((this||It).n/13)),A},le.prototype.ireduce=function(A){var m=A,E;do this.split(m,(this||It).tmp),m=this.imulK(m),m=m.iadd((this||It).tmp),E=m.bitLength();while(E>(this||It).n);var w=E<(this||It).n?-1:m.ucmp((this||It).p);return w===0?(m.words[0]=0,m.length=1):w>0?m.isub((this||It).p):m.strip!==void 0?m.strip():m._strip(),m},le.prototype.split=function(A,m){A.iushrn((this||It).n,0,m)},le.prototype.imulK=function(A){return A.imul((this||It).k)};function pe(){le.call(this||It,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(pe,le),pe.prototype.split=function(A,m){for(var E=4194303,w=Math.min(A.length,9),x=0;x<w;x++)m.words[x]=A.words[x];if(m.length=w,A.length<=9){A.words[0]=0,A.length=1;return}var R=A.words[9];for(m.words[m.length++]=R&E,x=10;x<A.length;x++){var u=A.words[x]|0;A.words[x-10]=(u&E)<<4|R>>>22,R=u}R>>>=22,A.words[x-10]=R,R===0&&A.length>10?A.length-=10:A.length-=9},pe.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var m=0,E=0;E<A.length;E++){var w=A.words[E]|0;m+=w*977,A.words[E]=m&67108863,m=w*64+(m/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A};function ae(){le.call(this||It,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(ae,le);function W(){le.call(this||It,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(W,le);function se(){le.call(this||It,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(se,le),se.prototype.imulK=function(A){for(var m=0,E=0;E<A.length;E++){var w=(A.words[E]|0)*19+m,x=w&67108863;w>>>=26,A.words[E]=x,m=w}return m!==0&&(A.words[A.length++]=m),A},n._prime=function(A){if(ce[A])return ce[A];var m;if(A==="k256")m=new pe;else if(A==="p224")m=new ae;else if(A==="p192")m=new W;else if(A==="p25519")m=new se;else throw new Error("Unknown prime "+A);return ce[A]=m,m};function O(l){if(typeof l=="string"){var A=n._prime(l);(this||It).m=A.p,(this||It).prime=A}else r(l.gtn(1),"modulus must be greater than 1"),(this||It).m=l,(this||It).prime=null}O.prototype._verify1=function(A){r(A.negative===0,"red works only with positives"),r(A.red,"red works only with red numbers")},O.prototype._verify2=function(A,m){r((A.negative|m.negative)===0,"red works only with positives"),r(A.red&&A.red===m.red,"red works only with red numbers")},O.prototype.imod=function(A){return(this||It).prime?(this||It).prime.ireduce(A)._forceRed(this||It):(_(A,A.umod((this||It).m)._forceRed(this||It)),A)},O.prototype.neg=function(A){return A.isZero()?A.clone():(this||It).m.sub(A)._forceRed(this||It)},O.prototype.add=function(A,m){this._verify2(A,m);var E=A.add(m);return E.cmp((this||It).m)>=0&&E.isub((this||It).m),E._forceRed(this||It)},O.prototype.iadd=function(A,m){this._verify2(A,m);var E=A.iadd(m);return E.cmp((this||It).m)>=0&&E.isub((this||It).m),E},O.prototype.sub=function(A,m){this._verify2(A,m);var E=A.sub(m);return E.cmpn(0)<0&&E.iadd((this||It).m),E._forceRed(this||It)},O.prototype.isub=function(A,m){this._verify2(A,m);var E=A.isub(m);return E.cmpn(0)<0&&E.iadd((this||It).m),E},O.prototype.shl=function(A,m){return this._verify1(A),this.imod(A.ushln(m))},O.prototype.imul=function(A,m){return this._verify2(A,m),this.imod(A.imul(m))},O.prototype.mul=function(A,m){return this._verify2(A,m),this.imod(A.mul(m))},O.prototype.isqr=function(A){return this.imul(A,A.clone())},O.prototype.sqr=function(A){return this.mul(A,A)},O.prototype.sqrt=function(A){if(A.isZero())return A.clone();var m=(this||It).m.andln(3);if(r(m%2===1),m===3){var E=(this||It).m.add(new n(1)).iushrn(2);return this.pow(A,E)}for(var w=(this||It).m.subn(1),x=0;!w.isZero()&&w.andln(1)===0;)x++,w.iushrn(1);r(!w.isZero());var R=new n(1).toRed(this||It),u=R.redNeg(),C=(this||It).m.subn(1).iushrn(1),U=(this||It).m.bitLength();for(U=new n(2*U*U).toRed(this||It);this.pow(U,C).cmp(u)!==0;)U.redIAdd(u);for(var F=this.pow(U,w),X=this.pow(A,w.addn(1).iushrn(1)),Ae=this.pow(A,w),he=x;Ae.cmp(R)!==0;){for(var $e=Ae,Ge=0;$e.cmp(R)!==0;Ge++)$e=$e.redSqr();r(Ge<he);var Re=this.pow(F,new n(1).iushln(he-Ge-1));X=X.redMul(Re),F=Re.redSqr(),Ae=Ae.redMul(F),he=Ge}return X},O.prototype.invm=function(A){var m=A._invmp((this||It).m);return m.negative!==0?(m.negative=0,this.imod(m).redNeg()):this.imod(m)},O.prototype.pow=function(A,m){if(m.isZero())return new n(1).toRed(this||It);if(m.cmpn(1)===0)return A.clone();var E=4,w=new Array(1<<E);w[0]=new n(1).toRed(this||It),w[1]=A;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],A);var R=w[0],u=0,C=0,U=m.bitLength()%26;for(U===0&&(U=26),x=m.length-1;x>=0;x--){for(var F=m.words[x],X=U-1;X>=0;X--){var Ae=F>>X&1;if(R!==w[0]&&(R=this.sqr(R)),Ae===0&&u===0){C=0;continue}u<<=1,u|=Ae,C++,!(C!==E&&(x!==0||X!==0))&&(R=this.mul(R,w[u]),C=0,u=0)}U=26}return R},O.prototype.convertTo=function(A){var m=A.umod((this||It).m);return m===A?m.clone():m},O.prototype.convertFrom=function(A){var m=A.clone();return m.red=null,m},n.mont=function(A){return new s(A)};function s(l){O.call(this||It,l),(this||It).shift=(this||It).m.bitLength(),(this||It).shift%26!==0&&((this||It).shift+=26-(this||It).shift%26),(this||It).r=new n(1).iushln((this||It).shift),(this||It).r2=this.imod((this||It).r.sqr()),(this||It).rinv=(this||It).r._invmp((this||It).m),(this||It).minv=(this||It).rinv.mul((this||It).r).isubn(1).div((this||It).m),(this||It).minv=(this||It).minv.umod((this||It).r),(this||It).minv=(this||It).r.sub((this||It).minv)}i(s,O),s.prototype.convertTo=function(A){return this.imod(A.ushln((this||It).shift))},s.prototype.convertFrom=function(A){var m=this.imod(A.mul((this||It).rinv));return m.red=null,m},s.prototype.imul=function(A,m){if(A.isZero()||m.isZero())return A.words[0]=0,A.length=1,A;var E=A.imul(m),w=E.maskn((this||It).shift).mul((this||It).minv).imaskn((this||It).shift).mul((this||It).m),x=E.isub(w).iushrn((this||It).shift),R=x;return x.cmp((this||It).m)>=0?R=x.isub((this||It).m):x.cmpn(0)<0&&(R=x.iadd((this||It).m)),R._forceRed(this||It)},s.prototype.mul=function(A,m){if(A.isZero()||m.isZero())return new n(0)._forceRed(this||It);var E=A.mul(m),w=E.maskn((this||It).shift).mul((this||It).minv).imaskn((this||It).shift).mul((this||It).m),x=E.isub(w).iushrn((this||It).shift),R=x;return x.cmp((this||It).m)>=0?R=x.isub((this||It).m):x.cmpn(0)<0&&(R=x.iadd((this||It).m)),R._forceRed(this||It)},s.prototype.invm=function(A){var m=this.imod(A._invmp((this||It).m).mul((this||It).r2));return m._forceRed(this||It)}})(Hae,dVe)),Hae.exports}function Gue(){if(LUe)return Gae;LUe=!0;var e=Vo.Buffer,t=Hue(),r=DO();function i(d){var g=n(d),y=g.toRed(t.mont(d.modulus)).redPow(new t(d.publicExponent)).fromRed();return{blinder:y,unblinder:g.invm(d.modulus)}}function n(d){var g=d.modulus.byteLength(),y;do y=new t(r(g));while(y.cmp(d.modulus)>=0||!y.umod(d.prime1)||!y.umod(d.prime2));return y}function o(d,g){var y=i(g),_=g.modulus.byteLength(),I=new t(d).mul(y.blinder).umod(g.modulus),N=I.toRed(t.mont(g.prime1)),T=I.toRed(t.mont(g.prime2)),M=g.coefficient,D=g.prime1,P=g.prime2,G=N.redPow(g.exponent1).fromRed(),q=T.redPow(g.exponent2).fromRed(),Y=G.isub(q).imul(M).umod(D).imul(P);return q.iadd(Y).imul(y.unblinder).umod(g.modulus).toArrayLike(e,"be",_)}return o.getr=n,Gae=o,Gae}function kv(){return UUe||(UUe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Tt).negative=0,(this||Tt).words=null,(this||Tt).length=0,(this||Tt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Tt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Tt).negative=1,s=-s),s<67108864?((this||Tt).words=[s&67108863],(this||Tt).length=1):s<4503599627370496?((this||Tt).words=[s&67108863,s/67108864&67108863],(this||Tt).length=2):(r(s<9007199254740992),(this||Tt).words=[s&67108863,s/67108864&67108863,1],(this||Tt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Tt).words=[0],(this||Tt).length=1,this||Tt;(this||Tt).length=Math.ceil(s.length/3),(this||Tt).words=new Array((this||Tt).length);for(var m=0;m<(this||Tt).length;m++)(this||Tt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Tt).words[E]|=w<<x&67108863,(this||Tt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Tt).words[E]|=w<<x&67108863,(this||Tt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Tt).length=Math.ceil((s.length-l)/6),(this||Tt).words=new Array((this||Tt).length);for(var m=0;m<(this||Tt).length;m++)(this||Tt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Tt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Tt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Tt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Tt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Tt).words=[0],(this||Tt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Tt).words[0]+u<67108864?(this||Tt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Tt).words[0]+u<67108864?(this||Tt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Tt).length);for(var l=0;l<(this||Tt).length;l++)s.words[l]=(this||Tt).words[l];s.length=(this||Tt).length,s.negative=(this||Tt).negative,s.red=(this||Tt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Tt).length<s;)(this||Tt).words[(this||Tt).length++]=0;return this||Tt},n.prototype.strip=function(){for(;(this||Tt).length>1&&(this||Tt).words[(this||Tt).length-1]===0;)(this||Tt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Tt).length===1&&(this||Tt).words[0]===0&&((this||Tt).negative=0),this||Tt},n.prototype.inspect=function(){return((this||Tt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Tt).length;w++){var x=(this||Tt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Tt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Tt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Tt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Tt).words[0];return(this||Tt).length===2?s+=(this||Tt).words[1]*67108864:(this||Tt).length===3&&(this||Tt).words[2]===1?s+=4503599627370496+(this||Tt).words[1]*67108864:(this||Tt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Tt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Tt).words[(this||Tt).length-1],l=this._countBits(s);return((this||Tt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Tt).length;l++){var A=this._zeroBits((this||Tt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Tt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Tt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Tt).negative^=1),this||Tt},n.prototype.iuor=function(s){for(;(this||Tt).length<s.length;)(this||Tt).words[(this||Tt).length++]=0;for(var l=0;l<s.length;l++)(this||Tt).words[l]=(this||Tt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Tt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Tt).length>s.length?this.clone().ior(s):s.clone().ior(this||Tt)},n.prototype.uor=function(s){return(this||Tt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Tt)},n.prototype.iuand=function(s){var l;(this||Tt).length>s.length?l=s:l=this||Tt;for(var A=0;A<l.length;A++)(this||Tt).words[A]=(this||Tt).words[A]&s.words[A];return(this||Tt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Tt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Tt).length>s.length?this.clone().iand(s):s.clone().iand(this||Tt)},n.prototype.uand=function(s){return(this||Tt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Tt)},n.prototype.iuxor=function(s){var l,A;(this||Tt).length>s.length?(l=this||Tt,A=s):(l=s,A=this||Tt);for(var m=0;m<A.length;m++)(this||Tt).words[m]=l.words[m]^A.words[m];if((this||Tt)!==l)for(;m<l.length;m++)(this||Tt).words[m]=l.words[m];return(this||Tt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Tt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Tt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Tt)},n.prototype.uxor=function(s){return(this||Tt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Tt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Tt).words[m]=~(this||Tt).words[m]&67108863;return A>0&&((this||Tt).words[m]=~(this||Tt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Tt).words[A]=(this||Tt).words[A]|1<<m:(this||Tt).words[A]=(this||Tt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Tt).negative!==0&&s.negative===0)return(this||Tt).negative=0,l=this.isub(s),(this||Tt).negative^=1,this._normSign();if((this||Tt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Tt).length>s.length?(A=this||Tt,m=s):(A=s,m=this||Tt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Tt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Tt).words[w]=l&67108863,E=l>>>26;if((this||Tt).length=A.length,E!==0)(this||Tt).words[(this||Tt).length]=E,(this||Tt).length++;else if(A!==(this||Tt))for(;w<A.length;w++)(this||Tt).words[w]=A.words[w];return this||Tt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Tt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Tt).negative!==0?((this||Tt).negative=0,l=s.sub(this||Tt),(this||Tt).negative=1,l):(this||Tt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Tt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Tt).negative!==0)return(this||Tt).negative=0,this.iadd(s),(this||Tt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Tt).negative=0,(this||Tt).length=1,(this||Tt).words[0]=0,this||Tt;var m,E;A>0?(m=this||Tt,E=s):(m=s,E=this||Tt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Tt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Tt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Tt))for(;x<m.length;x++)(this||Tt).words[x]=m.words[x];return(this||Tt).length=Math.max((this||Tt).length,x),m!==(this||Tt)&&((this||Tt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Tt).length+s.length;return(this||Tt).length===10&&s.length===10?A=D(this||Tt,s,l):m<63?A=M(this||Tt,s,l):m<1024?A=P(this||Tt,s,l):A=G(this||Tt,s,l),A};function q(O,s){(this||Tt).x=O,(this||Tt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Tt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Tt).length+s.length),G(this||Tt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Tt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Tt).length;A++){var m=((this||Tt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Tt).words[A]=E&67108863}return l!==0&&((this||Tt).words[A]=l,(this||Tt).length++),this||Tt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Tt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Tt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Tt).length;E++){var x=(this||Tt).words[E]&m,R=((this||Tt).words[E]|0)-x<<l;(this||Tt).words[E]=R|w,w=x>>>26-l}w&&((this||Tt).words[E]=w,(this||Tt).length++)}if(A!==0){for(E=(this||Tt).length-1;E>=0;E--)(this||Tt).words[E+A]=(this||Tt).words[E];for(E=0;E<A;E++)(this||Tt).words[E]=0;(this||Tt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Tt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Tt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Tt).words[u];R.length=w}if(w!==0)if((this||Tt).length>w)for((this||Tt).length-=w,u=0;u<(this||Tt).length;u++)(this||Tt).words[u]=(this||Tt).words[u+w];else(this||Tt).words[0]=0,(this||Tt).length=1;var C=0;for(u=(this||Tt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Tt).words[u]|0;(this||Tt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Tt).length===0&&((this||Tt).words[0]=0,(this||Tt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Tt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Tt).length<=A)return!1;var E=(this||Tt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Tt).negative===0,"imaskn works only with positive numbers"),(this||Tt).length<=A)return this||Tt;if(l!==0&&A++,(this||Tt).length=Math.min(A,(this||Tt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Tt).words[(this||Tt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Tt).negative!==0?(this||Tt).length===1&&((this||Tt).words[0]|0)<s?((this||Tt).words[0]=s-((this||Tt).words[0]|0),(this||Tt).negative=0,this||Tt):((this||Tt).negative=0,this.isubn(s),(this||Tt).negative=1,this||Tt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Tt).words[0]+=s;for(var l=0;l<(this||Tt).length&&(this||Tt).words[l]>=67108864;l++)(this||Tt).words[l]-=67108864,l===(this||Tt).length-1?(this||Tt).words[l+1]=1:(this||Tt).words[l+1]++;return(this||Tt).length=Math.max((this||Tt).length,l+1),this||Tt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Tt).negative!==0)return(this||Tt).negative=0,this.iaddn(s),(this||Tt).negative=1,this||Tt;if((this||Tt).words[0]-=s,(this||Tt).length===1&&(this||Tt).words[0]<0)(this||Tt).words[0]=-(this||Tt).words[0],(this||Tt).negative=1;else for(var l=0;l<(this||Tt).length&&(this||Tt).words[l]<0;l++)(this||Tt).words[l]+=67108864,(this||Tt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Tt).negative=0,this||Tt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Tt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Tt).words[E+A]=w&67108863}for(;E<(this||Tt).length-A;E++)w=((this||Tt).words[E+A]|0)+x,x=w>>26,(this||Tt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Tt).length;E++)w=-((this||Tt).words[E]|0)+x,x=w>>26,(this||Tt).words[E]=w&67108863;return(this||Tt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Tt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Tt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Tt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Tt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Tt).length||this.cmp(s)<0?{div:new n(0),mod:this||Tt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Tt).length-1;m>=0;m--)A=(l*A+((this||Tt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Tt).length-1;A>=0;A--){var m=((this||Tt).words[A]|0)+l*67108864;(this||Tt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Tt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Tt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Tt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Tt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Tt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Tt).length<=A)return this._expand(A+1),(this||Tt).words[A]|=m,this||Tt;for(var E=m,w=A;E!==0&&w<(this||Tt).length;w++){var x=(this||Tt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Tt).words[w]=x}return E!==0&&((this||Tt).words[w]=E,(this||Tt).length++),this||Tt},n.prototype.isZero=function(){return(this||Tt).length===1&&(this||Tt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Tt).negative!==0&&!l)return-1;if((this||Tt).negative===0&&l)return 1;this.strip();var A;if((this||Tt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Tt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Tt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Tt).negative!==0&&s.negative===0)return-1;if((this||Tt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Tt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Tt).length>s.length)return 1;if((this||Tt).length<s.length)return-1;for(var l=0,A=(this||Tt).length-1;A>=0;A--){var m=(this||Tt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Tt).red,"Already a number in reduction context"),r((this||Tt).negative===0,"red works only with positives"),s.convertTo(this||Tt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Tt).red,"fromRed works only with numbers in reduction context"),(this||Tt).red.convertFrom(this||Tt)},n.prototype._forceRed=function(s){return(this||Tt).red=s,this||Tt},n.prototype.forceRed=function(s){return r(!(this||Tt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Tt).red,"redAdd works only with red numbers"),(this||Tt).red.add(this||Tt,s)},n.prototype.redIAdd=function(s){return r((this||Tt).red,"redIAdd works only with red numbers"),(this||Tt).red.iadd(this||Tt,s)},n.prototype.redSub=function(s){return r((this||Tt).red,"redSub works only with red numbers"),(this||Tt).red.sub(this||Tt,s)},n.prototype.redISub=function(s){return r((this||Tt).red,"redISub works only with red numbers"),(this||Tt).red.isub(this||Tt,s)},n.prototype.redShl=function(s){return r((this||Tt).red,"redShl works only with red numbers"),(this||Tt).red.shl(this||Tt,s)},n.prototype.redMul=function(s){return r((this||Tt).red,"redMul works only with red numbers"),(this||Tt).red._verify2(this||Tt,s),(this||Tt).red.mul(this||Tt,s)},n.prototype.redIMul=function(s){return r((this||Tt).red,"redMul works only with red numbers"),(this||Tt).red._verify2(this||Tt,s),(this||Tt).red.imul(this||Tt,s)},n.prototype.redSqr=function(){return r((this||Tt).red,"redSqr works only with red numbers"),(this||Tt).red._verify1(this||Tt),(this||Tt).red.sqr(this||Tt)},n.prototype.redISqr=function(){return r((this||Tt).red,"redISqr works only with red numbers"),(this||Tt).red._verify1(this||Tt),(this||Tt).red.isqr(this||Tt)},n.prototype.redSqrt=function(){return r((this||Tt).red,"redSqrt works only with red numbers"),(this||Tt).red._verify1(this||Tt),(this||Tt).red.sqrt(this||Tt)},n.prototype.redInvm=function(){return r((this||Tt).red,"redInvm works only with red numbers"),(this||Tt).red._verify1(this||Tt),(this||Tt).red.invm(this||Tt)},n.prototype.redNeg=function(){return r((this||Tt).red,"redNeg works only with red numbers"),(this||Tt).red._verify1(this||Tt),(this||Tt).red.neg(this||Tt)},n.prototype.redPow=function(s){return r((this||Tt).red&&!s.red,"redPow(normalNum)"),(this||Tt).red._verify1(this||Tt),(this||Tt).red.pow(this||Tt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Tt).name=O,(this||Tt).p=new n(s,16),(this||Tt).n=(this||Tt).p.bitLength(),(this||Tt).k=new n(1).iushln((this||Tt).n).isub((this||Tt).p),(this||Tt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Tt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Tt).tmp),l=this.imulK(l),l=l.iadd((this||Tt).tmp),A=l.bitLength();while(A>(this||Tt).n);var m=A<(this||Tt).n?-1:l.ucmp((this||Tt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Tt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Tt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Tt).k)};function ce(){ne.call(this||Tt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Tt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Tt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Tt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Tt).m=s.p,(this||Tt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Tt).m=O,(this||Tt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Tt).prime?(this||Tt).prime.ireduce(s)._forceRed(this||Tt):s.umod((this||Tt).m)._forceRed(this||Tt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Tt).m.sub(s)._forceRed(this||Tt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Tt).m)>=0&&A.isub((this||Tt).m),A._forceRed(this||Tt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Tt).m)>=0&&A.isub((this||Tt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Tt).m),A._forceRed(this||Tt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Tt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Tt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Tt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Tt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Tt),x=w.redNeg(),R=(this||Tt).m.subn(1).iushrn(1),u=(this||Tt).m.bitLength();for(u=new n(2*u*u).toRed(this||Tt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Tt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Tt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Tt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Tt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Tt,O),(this||Tt).shift=(this||Tt).m.bitLength(),(this||Tt).shift%26!==0&&((this||Tt).shift+=26-(this||Tt).shift%26),(this||Tt).r=new n(1).iushln((this||Tt).shift),(this||Tt).r2=this.imod((this||Tt).r.sqr()),(this||Tt).rinv=(this||Tt).r._invmp((this||Tt).m),(this||Tt).minv=(this||Tt).rinv.mul((this||Tt).r).isubn(1).div((this||Tt).m),(this||Tt).minv=(this||Tt).minv.umod((this||Tt).r),(this||Tt).minv=(this||Tt).r.sub((this||Tt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Tt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Tt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Tt).shift).mul((this||Tt).minv).imaskn((this||Tt).shift).mul((this||Tt).m),E=A.isub(m).iushrn((this||Tt).shift),w=E;return E.cmp((this||Tt).m)>=0?w=E.isub((this||Tt).m):E.cmpn(0)<0&&(w=E.iadd((this||Tt).m)),w._forceRed(this||Tt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Tt);var A=s.mul(l),m=A.maskn((this||Tt).shift).mul((this||Tt).minv).imaskn((this||Tt).shift).mul((this||Tt).m),E=A.isub(m).iushrn((this||Tt).shift),w=E;return E.cmp((this||Tt).m)>=0?w=E.isub((this||Tt).m):E.cmpn(0)<0&&(w=E.iadd((this||Tt).m)),w._forceRed(this||Tt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Tt).m).mul((this||Tt).r2));return l._forceRed(this||Tt)}})(qae,fVe)),qae.exports}function lVe(){if(FUe)return Vae;FUe=!0;var e=Vae;function t(n,o){if(Array.isArray(n))return n.slice();if(!n)return[];var d=[];if(typeof n!="string"){for(var g=0;g<n.length;g++)d[g]=n[g]|0;return d}if(o==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var g=0;g<n.length;g+=2)d.push(parseInt(n[g]+n[g+1],16))}else for(var g=0;g<n.length;g++){var y=n.charCodeAt(g),_=y>>8,I=y&255;_?d.push(_,I):d.push(I)}return d}e.toArray=t;function r(n){return n.length===1?"0"+n:n}e.zero2=r;function i(n){for(var o="",d=0;d<n.length;d++)o+=r(n[d].toString(16));return o}return e.toHex=i,e.encode=function(o,d){return d==="hex"?i(o):o},Vae}function Kg(){if(QUe)return Jae;QUe=!0;var e=Jae,t=kv(),r=jy(),i=lVe();e.assert=r,e.toArray=i.toArray,e.zero2=i.zero2,e.toHex=i.toHex,e.encode=i.encode;function n(_,I,N){var T=new Array(Math.max(_.bitLength(),N)+1);T.fill(0);for(var M=1<<I+1,D=_.clone(),P=0;P<T.length;P++){var G,q=D.andln(M-1);D.isOdd()?(q>(M>>1)-1?G=(M>>1)-q:G=q,D.isubn(G)):G=0,T[P]=G,D.iushrn(1)}return T}e.getNAF=n;function o(_,I){var N=[[],[]];_=_.clone(),I=I.clone();for(var T=0,M=0,D;_.cmpn(-T)>0||I.cmpn(-M)>0;){var P=_.andln(3)+T&3,G=I.andln(3)+M&3;P===3&&(P=-1),G===3&&(G=-1);var q;(P&1)===0?q=0:(D=_.andln(7)+T&7,(D===3||D===5)&&G===2?q=-P:q=P),N[0].push(q);var Y;(G&1)===0?Y=0:(D=I.andln(7)+M&7,(D===3||D===5)&&P===2?Y=-G:Y=G),N[1].push(Y),2*T===q+1&&(T=1-T),2*M===Y+1&&(M=1-M),_.iushrn(1),I.iushrn(1)}return N}e.getJSF=o;function d(_,I,N){var T="_"+I;_.prototype[I]=function(){return this[T]!==void 0?this[T]:this[T]=N.call(this)}}e.cachedProperty=d;function g(_){return typeof _=="string"?e.toArray(_,"hex"):_}e.parseBytes=g;function y(_){return new t(_,"hex","le")}return e.intFromLE=y,Jae}function cV(){if(HUe)return zae;HUe=!0;var e=kv(),t=Kg(),r=t.getNAF,i=t.getJSF,n=t.assert;function o(g,y){this.type=g,this.p=new e(y.p,16),this.red=y.prime?e.red(y.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=y.n&&new e(y.n,16),this.g=y.g&&this.pointFromJSON(y.g,y.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var _=this.n&&this.p.div(this.n);!_||_.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}zae=o,o.prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(y,_){n(y.precomputed);var I=y._getDoubles(),N=r(_,1,this._bitLength),T=(1<<I.step+1)-(I.step%2===0?2:1);T/=3;var M=[],D,P;for(D=0;D<N.length;D+=I.step){P=0;for(var G=D+I.step-1;G>=D;G--)P=(P<<1)+N[G];M.push(P)}for(var q=this.jpoint(null,null,null),Y=this.jpoint(null,null,null),ne=T;ne>0;ne--){for(D=0;D<M.length;D++)P=M[D],P===ne?Y=Y.mixedAdd(I.points[D]):P===-ne&&(Y=Y.mixedAdd(I.points[D].neg()));q=q.add(Y)}return q.toP()},o.prototype._wnafMul=function(y,_){var I=4,N=y._getNAFPoints(I);I=N.wnd;for(var T=N.points,M=r(_,I,this._bitLength),D=this.jpoint(null,null,null),P=M.length-1;P>=0;P--){for(var G=0;P>=0&&M[P]===0;P--)G++;if(P>=0&&G++,D=D.dblp(G),P<0)break;var q=M[P];n(q!==0),y.type==="affine"?q>0?D=D.mixedAdd(T[q-1>>1]):D=D.mixedAdd(T[-q-1>>1].neg()):q>0?D=D.add(T[q-1>>1]):D=D.add(T[-q-1>>1].neg())}return y.type==="affine"?D.toP():D},o.prototype._wnafMulAdd=function(y,_,I,N,T){var M=this._wnafT1,D=this._wnafT2,P=this._wnafT3,G=0,q,Y,ne;for(q=0;q<N;q++){ne=_[q];var ce=ne._getNAFPoints(y);M[q]=ce.wnd,D[q]=ce.points}for(q=N-1;q>=1;q-=2){var le=q-1,pe=q;if(M[le]!==1||M[pe]!==1){P[le]=r(I[le],M[le],this._bitLength),P[pe]=r(I[pe],M[pe],this._bitLength),G=Math.max(P[le].length,G),G=Math.max(P[pe].length,G);continue}var ae=[_[le],null,null,_[pe]];_[le].y.cmp(_[pe].y)===0?(ae[1]=_[le].add(_[pe]),ae[2]=_[le].toJ().mixedAdd(_[pe].neg())):_[le].y.cmp(_[pe].y.redNeg())===0?(ae[1]=_[le].toJ().mixedAdd(_[pe]),ae[2]=_[le].add(_[pe].neg())):(ae[1]=_[le].toJ().mixedAdd(_[pe]),ae[2]=_[le].toJ().mixedAdd(_[pe].neg()));var W=[-3,-1,-5,-7,0,7,5,1,3],se=i(I[le],I[pe]);for(G=Math.max(se[0].length,G),P[le]=new Array(G),P[pe]=new Array(G),Y=0;Y<G;Y++){var O=se[0][Y]|0,s=se[1][Y]|0;P[le][Y]=W[(O+1)*3+(s+1)],P[pe][Y]=0,D[le]=ae}}var l=this.jpoint(null,null,null),A=this._wnafT4;for(q=G;q>=0;q--){for(var m=0;q>=0;){var E=!0;for(Y=0;Y<N;Y++)A[Y]=P[Y][q]|0,A[Y]!==0&&(E=!1);if(!E)break;m++,q--}if(q>=0&&m++,l=l.dblp(m),q<0)break;for(Y=0;Y<N;Y++){var w=A[Y];w!==0&&(w>0?ne=D[Y][w-1>>1]:w<0&&(ne=D[Y][-w-1>>1].neg()),ne.type==="affine"?l=l.mixedAdd(ne):l=l.add(ne))}}for(q=0;q<N;q++)D[q]=null;return T?l:l.toP()};function d(g,y){this.curve=g,this.type=y,this.precomputed=null}return o.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(y,_){y=t.toArray(y,_);var I=this.p.byteLength();if((y[0]===4||y[0]===6||y[0]===7)&&y.length-1===2*I){y[0]===6?n(y[y.length-1]%2===0):y[0]===7&&n(y[y.length-1]%2===1);var N=this.point(y.slice(1,1+I),y.slice(1+I,1+2*I));return N}else if((y[0]===2||y[0]===3)&&y.length-1===I)return this.pointFromX(y.slice(1,1+I),y[0]===3);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(y){return this.encode(y,!0)},d.prototype._encode=function(y){var _=this.curve.p.byteLength(),I=this.getX().toArray("be",_);return y?[this.getY().isEven()?2:3].concat(I):[4].concat(I,this.getY().toArray("be",_))},d.prototype.encode=function(y,_){return t.encode(this._encode(_),y)},d.prototype.precompute=function(y){if(this.precomputed)return this;var _={doubles:null,naf:null,beta:null};return _.naf=this._getNAFPoints(8),_.doubles=this._getDoubles(4,y),_.beta=this._getBeta(),this.precomputed=_,this},d.prototype._hasDoubles=function(y){if(!this.precomputed)return!1;var _=this.precomputed.doubles;return _?_.points.length>=Math.ceil((y.bitLength()+1)/_.step):!1},d.prototype._getDoubles=function(y,_){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var I=[this],N=this,T=0;T<_;T+=y){for(var M=0;M<y;M++)N=N.dbl();I.push(N)}return{step:y,points:I}},d.prototype._getNAFPoints=function(y){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var _=[this],I=(1<<y)-1,N=I===1?null:this.dbl(),T=1;T<I;T++)_[T]=_[T-1].add(N);return{wnd:y,points:_}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(y){for(var _=this,I=0;I<y;I++)_=_.dbl();return _},zae}function a5t(){if(GUe)return Kae;GUe=!0;var e=Kg(),t=kv(),r=rs(),i=cV(),n=e.assert;function o(y){i.call(this,"short",y),this.a=new t(y.a,16).toRed(this.red),this.b=new t(y.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(y),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(o,i),Kae=o,o.prototype._getEndomorphism=function(_){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var I,N;if(_.beta)I=new t(_.beta,16).toRed(this.red);else{var T=this._getEndoRoots(this.p);I=T[0].cmp(T[1])<0?T[0]:T[1],I=I.toRed(this.red)}if(_.lambda)N=new t(_.lambda,16);else{var M=this._getEndoRoots(this.n);this.g.mul(M[0]).x.cmp(this.g.x.redMul(I))===0?N=M[0]:(N=M[1],n(this.g.mul(N).x.cmp(this.g.x.redMul(I))===0))}var D;return _.basis?D=_.basis.map(function(P){return{a:new t(P.a,16),b:new t(P.b,16)}}):D=this._getEndoBasis(N),{beta:I,lambda:N,basis:D}}},o.prototype._getEndoRoots=function(_){var I=_===this.p?this.red:t.mont(_),N=new t(2).toRed(I).redInvm(),T=N.redNeg(),M=new t(3).toRed(I).redNeg().redSqrt().redMul(N),D=T.redAdd(M).fromRed(),P=T.redSub(M).fromRed();return[D,P]},o.prototype._getEndoBasis=function(_){for(var I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),N=_,T=this.n.clone(),M=new t(1),D=new t(0),P=new t(0),G=new t(1),q,Y,ne,ce,le,pe,ae,W=0,se,O;N.cmpn(0)!==0;){var s=T.div(N);se=T.sub(s.mul(N)),O=P.sub(s.mul(M));var l=G.sub(s.mul(D));if(!ne&&se.cmp(I)<0)q=ae.neg(),Y=M,ne=se.neg(),ce=O;else if(ne&&++W===2)break;ae=se,T=N,N=se,P=M,M=O,G=D,D=l}le=se.neg(),pe=O;var A=ne.sqr().add(ce.sqr()),m=le.sqr().add(pe.sqr());return m.cmp(A)>=0&&(le=q,pe=Y),ne.negative&&(ne=ne.neg(),ce=ce.neg()),le.negative&&(le=le.neg(),pe=pe.neg()),[{a:ne,b:ce},{a:le,b:pe}]},o.prototype._endoSplit=function(_){var I=this.endo.basis,N=I[0],T=I[1],M=T.b.mul(_).divRound(this.n),D=N.b.neg().mul(_).divRound(this.n),P=M.mul(N.a),G=D.mul(T.a),q=M.mul(N.b),Y=D.mul(T.b),ne=_.sub(P).sub(G),ce=q.add(Y).neg();return{k1:ne,k2:ce}},o.prototype.pointFromX=function(_,I){_=new t(_,16),_.red||(_=_.toRed(this.red));var N=_.redSqr().redMul(_).redIAdd(_.redMul(this.a)).redIAdd(this.b),T=N.redSqrt();if(T.redSqr().redSub(N).cmp(this.zero)!==0)throw new Error("invalid point");var M=T.fromRed().isOdd();return(I&&!M||!I&&M)&&(T=T.redNeg()),this.point(_,T)},o.prototype.validate=function(_){if(_.inf)return!0;var I=_.x,N=_.y,T=this.a.redMul(I),M=I.redSqr().redMul(I).redIAdd(T).redIAdd(this.b);return N.redSqr().redISub(M).cmpn(0)===0},o.prototype._endoWnafMulAdd=function(_,I,N){for(var T=this._endoWnafT1,M=this._endoWnafT2,D=0;D<_.length;D++){var P=this._endoSplit(I[D]),G=_[D],q=G._getBeta();P.k1.negative&&(P.k1.ineg(),G=G.neg(!0)),P.k2.negative&&(P.k2.ineg(),q=q.neg(!0)),T[D*2]=G,T[D*2+1]=q,M[D*2]=P.k1,M[D*2+1]=P.k2}for(var Y=this._wnafMulAdd(1,T,M,D*2,N),ne=0;ne<D*2;ne++)T[ne]=null,M[ne]=null;return Y};function d(y,_,I,N){i.BasePoint.call(this,y,"affine"),_===null&&I===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(_,16),this.y=new t(I,16),N&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(d,i.BasePoint),o.prototype.point=function(_,I,N){return new d(this,_,I,N)},o.prototype.pointFromJSON=function(_,I){return d.fromJSON(this,_,I)},d.prototype._getBeta=function(){if(this.curve.endo){var _=this.precomputed;if(_&&_.beta)return _.beta;var I=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(_){var N=this.curve,T=function(M){return N.point(M.x.redMul(N.endo.beta),M.y)};_.beta=I,I.precomputed={beta:null,naf:_.naf&&{wnd:_.naf.wnd,points:_.naf.points.map(T)},doubles:_.doubles&&{step:_.doubles.step,points:_.doubles.points.map(T)}}}return I}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(_,I,N){typeof I=="string"&&(I=JSON.parse(I));var T=_.point(I[0],I[1],N);if(!I[2])return T;function M(P){return _.point(P[0],P[1],N)}var D=I[2];return T.precomputed={beta:null,doubles:D.doubles&&{step:D.doubles.step,points:[T].concat(D.doubles.points.map(M))},naf:D.naf&&{wnd:D.naf.wnd,points:[T].concat(D.naf.points.map(M))}},T},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(_){if(this.inf)return _;if(_.inf)return this;if(this.eq(_))return this.dbl();if(this.neg().eq(_))return this.curve.point(null,null);if(this.x.cmp(_.x)===0)return this.curve.point(null,null);var I=this.y.redSub(_.y);I.cmpn(0)!==0&&(I=I.redMul(this.x.redSub(_.x).redInvm()));var N=I.redSqr().redISub(this.x).redISub(_.x),T=I.redMul(this.x.redSub(N)).redISub(this.y);return this.curve.point(N,T)},d.prototype.dbl=function(){if(this.inf)return this;var _=this.y.redAdd(this.y);if(_.cmpn(0)===0)return this.curve.point(null,null);var I=this.curve.a,N=this.x.redSqr(),T=_.redInvm(),M=N.redAdd(N).redIAdd(N).redIAdd(I).redMul(T),D=M.redSqr().redISub(this.x.redAdd(this.x)),P=M.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,P)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(_){return _=new t(_,16),this.isInfinity()?this:this._hasDoubles(_)?this.curve._fixedNafMul(this,_):this.curve.endo?this.curve._endoWnafMulAdd([this],[_]):this.curve._wnafMul(this,_)},d.prototype.mulAdd=function(_,I,N){var T=[this,I],M=[_,N];return this.curve.endo?this.curve._endoWnafMulAdd(T,M):this.curve._wnafMulAdd(1,T,M,2)},d.prototype.jmulAdd=function(_,I,N){var T=[this,I],M=[_,N];return this.curve.endo?this.curve._endoWnafMulAdd(T,M,!0):this.curve._wnafMulAdd(1,T,M,2,!0)},d.prototype.eq=function(_){return this===_||this.inf===_.inf&&(this.inf||this.x.cmp(_.x)===0&&this.y.cmp(_.y)===0)},d.prototype.neg=function(_){if(this.inf)return this;var I=this.curve.point(this.x,this.y.redNeg());if(_&&this.precomputed){var N=this.precomputed,T=function(M){return M.neg()};I.precomputed={naf:N.naf&&{wnd:N.naf.wnd,points:N.naf.points.map(T)},doubles:N.doubles&&{step:N.doubles.step,points:N.doubles.points.map(T)}}}return I},d.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var _=this.curve.jpoint(this.x,this.y,this.curve.one);return _};function g(y,_,I,N){i.BasePoint.call(this,y,"jacobian"),_===null&&I===null&&N===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(_,16),this.y=new t(I,16),this.z=new t(N,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return r(g,i.BasePoint),o.prototype.jpoint=function(_,I,N){return new g(this,_,I,N)},g.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var _=this.z.redInvm(),I=_.redSqr(),N=this.x.redMul(I),T=this.y.redMul(I).redMul(_);return this.curve.point(N,T)},g.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},g.prototype.add=function(_){if(this.isInfinity())return _;if(_.isInfinity())return this;var I=_.z.redSqr(),N=this.z.redSqr(),T=this.x.redMul(I),M=_.x.redMul(N),D=this.y.redMul(I.redMul(_.z)),P=_.y.redMul(N.redMul(this.z)),G=T.redSub(M),q=D.redSub(P);if(G.cmpn(0)===0)return q.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Y=G.redSqr(),ne=Y.redMul(G),ce=T.redMul(Y),le=q.redSqr().redIAdd(ne).redISub(ce).redISub(ce),pe=q.redMul(ce.redISub(le)).redISub(D.redMul(ne)),ae=this.z.redMul(_.z).redMul(G);return this.curve.jpoint(le,pe,ae)},g.prototype.mixedAdd=function(_){if(this.isInfinity())return _.toJ();if(_.isInfinity())return this;var I=this.z.redSqr(),N=this.x,T=_.x.redMul(I),M=this.y,D=_.y.redMul(I).redMul(this.z),P=N.redSub(T),G=M.redSub(D);if(P.cmpn(0)===0)return G.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var q=P.redSqr(),Y=q.redMul(P),ne=N.redMul(q),ce=G.redSqr().redIAdd(Y).redISub(ne).redISub(ne),le=G.redMul(ne.redISub(ce)).redISub(M.redMul(Y)),pe=this.z.redMul(P);return this.curve.jpoint(ce,le,pe)},g.prototype.dblp=function(_){if(_===0)return this;if(this.isInfinity())return this;if(!_)return this.dbl();var I;if(this.curve.zeroA||this.curve.threeA){var N=this;for(I=0;I<_;I++)N=N.dbl();return N}var T=this.curve.a,M=this.curve.tinv,D=this.x,P=this.y,G=this.z,q=G.redSqr().redSqr(),Y=P.redAdd(P);for(I=0;I<_;I++){var ne=D.redSqr(),ce=Y.redSqr(),le=ce.redSqr(),pe=ne.redAdd(ne).redIAdd(ne).redIAdd(T.redMul(q)),ae=D.redMul(ce),W=pe.redSqr().redISub(ae.redAdd(ae)),se=ae.redISub(W),O=pe.redMul(se);O=O.redIAdd(O).redISub(le);var s=Y.redMul(G);I+1<_&&(q=q.redMul(le)),D=W,G=s,Y=O}return this.curve.jpoint(D,Y.redMul(M),G)},g.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},g.prototype._zeroDbl=function(){var _,I,N;if(this.zOne){var T=this.x.redSqr(),M=this.y.redSqr(),D=M.redSqr(),P=this.x.redAdd(M).redSqr().redISub(T).redISub(D);P=P.redIAdd(P);var G=T.redAdd(T).redIAdd(T),q=G.redSqr().redISub(P).redISub(P),Y=D.redIAdd(D);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),_=q,I=G.redMul(P.redISub(q)).redISub(Y),N=this.y.redAdd(this.y)}else{var ne=this.x.redSqr(),ce=this.y.redSqr(),le=ce.redSqr(),pe=this.x.redAdd(ce).redSqr().redISub(ne).redISub(le);pe=pe.redIAdd(pe);var ae=ne.redAdd(ne).redIAdd(ne),W=ae.redSqr(),se=le.redIAdd(le);se=se.redIAdd(se),se=se.redIAdd(se),_=W.redISub(pe).redISub(pe),I=ae.redMul(pe.redISub(_)).redISub(se),N=this.y.redMul(this.z),N=N.redIAdd(N)}return this.curve.jpoint(_,I,N)},g.prototype._threeDbl=function(){var _,I,N;if(this.zOne){var T=this.x.redSqr(),M=this.y.redSqr(),D=M.redSqr(),P=this.x.redAdd(M).redSqr().redISub(T).redISub(D);P=P.redIAdd(P);var G=T.redAdd(T).redIAdd(T).redIAdd(this.curve.a),q=G.redSqr().redISub(P).redISub(P);_=q;var Y=D.redIAdd(D);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),I=G.redMul(P.redISub(q)).redISub(Y),N=this.y.redAdd(this.y)}else{var ne=this.z.redSqr(),ce=this.y.redSqr(),le=this.x.redMul(ce),pe=this.x.redSub(ne).redMul(this.x.redAdd(ne));pe=pe.redAdd(pe).redIAdd(pe);var ae=le.redIAdd(le);ae=ae.redIAdd(ae);var W=ae.redAdd(ae);_=pe.redSqr().redISub(W),N=this.y.redAdd(this.z).redSqr().redISub(ce).redISub(ne);var se=ce.redSqr();se=se.redIAdd(se),se=se.redIAdd(se),se=se.redIAdd(se),I=pe.redMul(ae.redISub(_)).redISub(se)}return this.curve.jpoint(_,I,N)},g.prototype._dbl=function(){var _=this.curve.a,I=this.x,N=this.y,T=this.z,M=T.redSqr().redSqr(),D=I.redSqr(),P=N.redSqr(),G=D.redAdd(D).redIAdd(D).redIAdd(_.redMul(M)),q=I.redAdd(I);q=q.redIAdd(q);var Y=q.redMul(P),ne=G.redSqr().redISub(Y.redAdd(Y)),ce=Y.redISub(ne),le=P.redSqr();le=le.redIAdd(le),le=le.redIAdd(le),le=le.redIAdd(le);var pe=G.redMul(ce).redISub(le),ae=N.redAdd(N).redMul(T);return this.curve.jpoint(ne,pe,ae)},g.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var _=this.x.redSqr(),I=this.y.redSqr(),N=this.z.redSqr(),T=I.redSqr(),M=_.redAdd(_).redIAdd(_),D=M.redSqr(),P=this.x.redAdd(I).redSqr().redISub(_).redISub(T);P=P.redIAdd(P),P=P.redAdd(P).redIAdd(P),P=P.redISub(D);var G=P.redSqr(),q=T.redIAdd(T);q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var Y=M.redIAdd(P).redSqr().redISub(D).redISub(G).redISub(q),ne=I.redMul(Y);ne=ne.redIAdd(ne),ne=ne.redIAdd(ne);var ce=this.x.redMul(G).redISub(ne);ce=ce.redIAdd(ce),ce=ce.redIAdd(ce);var le=this.y.redMul(Y.redMul(q.redISub(Y)).redISub(P.redMul(G)));le=le.redIAdd(le),le=le.redIAdd(le),le=le.redIAdd(le);var pe=this.z.redAdd(P).redSqr().redISub(N).redISub(G);return this.curve.jpoint(ce,le,pe)},g.prototype.mul=function(_,I){return _=new t(_,I),this.curve._wnafMul(this,_)},g.prototype.eq=function(_){if(_.type==="affine")return this.eq(_.toJ());if(this===_)return!0;var I=this.z.redSqr(),N=_.z.redSqr();if(this.x.redMul(N).redISub(_.x.redMul(I)).cmpn(0)!==0)return!1;var T=I.redMul(this.z),M=N.redMul(_.z);return this.y.redMul(M).redISub(_.y.redMul(T)).cmpn(0)===0},g.prototype.eqXToP=function(_){var I=this.z.redSqr(),N=_.toRed(this.curve.red).redMul(I);if(this.x.cmp(N)===0)return!0;for(var T=_.clone(),M=this.curve.redN.redMul(I);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(N.redIAdd(M),this.x.cmp(N)===0)return!0}},g.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},g.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Kae}function s5t(){if(qUe)return $ae;qUe=!0;var e=kv(),t=rs(),r=cV(),i=Kg();function n(d){r.call(this,"mont",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}t(n,r),$ae=n,n.prototype.validate=function(g){var y=g.normalize().x,_=y.redSqr(),I=_.redMul(y).redAdd(_.redMul(this.a)).redAdd(y),N=I.redSqrt();return N.redSqr().cmp(I)===0};function o(d,g,y){r.BasePoint.call(this,d,"projective"),g===null&&y===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(g,16),this.z=new e(y,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return t(o,r.BasePoint),n.prototype.decodePoint=function(g,y){return this.point(i.toArray(g,y),1)},n.prototype.point=function(g,y){return new o(this,g,y)},n.prototype.pointFromJSON=function(g){return o.fromJSON(this,g)},o.prototype.precompute=function(){},o.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},o.fromJSON=function(g,y){return new o(g,y[0],y[1]||g.one)},o.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},o.prototype.isInfinity=function(){return this.z.cmpn(0)===0},o.prototype.dbl=function(){var g=this.x.redAdd(this.z),y=g.redSqr(),_=this.x.redSub(this.z),I=_.redSqr(),N=y.redSub(I),T=y.redMul(I),M=N.redMul(I.redAdd(this.curve.a24.redMul(N)));return this.curve.point(T,M)},o.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.diffAdd=function(g,y){var _=this.x.redAdd(this.z),I=this.x.redSub(this.z),N=g.x.redAdd(g.z),T=g.x.redSub(g.z),M=T.redMul(_),D=N.redMul(I),P=y.z.redMul(M.redAdd(D).redSqr()),G=y.x.redMul(M.redISub(D).redSqr());return this.curve.point(P,G)},o.prototype.mul=function(g){for(var y=g.clone(),_=this,I=this.curve.point(null,null),N=this,T=[];y.cmpn(0)!==0;y.iushrn(1))T.push(y.andln(1));for(var M=T.length-1;M>=0;M--)T[M]===0?(_=_.diffAdd(I,N),I=I.dbl()):(I=_.diffAdd(I,N),_=_.dbl());return I},o.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.eq=function(g){return this.getX().cmp(g.getX())===0},o.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()},$ae}function c5t(){if(VUe)return Yae;VUe=!0;var e=Kg(),t=kv(),r=rs(),i=cV(),n=e.assert;function o(g){this.twisted=(g.a|0)!==1,this.mOneA=this.twisted&&(g.a|0)===-1,this.extended=this.mOneA,i.call(this,"edwards",g),this.a=new t(g.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(g.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(g.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),n(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(g.c|0)===1}r(o,i),Yae=o,o.prototype._mulA=function(y){return this.mOneA?y.redNeg():this.a.redMul(y)},o.prototype._mulC=function(y){return this.oneC?y:this.c.redMul(y)},o.prototype.jpoint=function(y,_,I,N){return this.point(y,_,I,N)},o.prototype.pointFromX=function(y,_){y=new t(y,16),y.red||(y=y.toRed(this.red));var I=y.redSqr(),N=this.c2.redSub(this.a.redMul(I)),T=this.one.redSub(this.c2.redMul(this.d).redMul(I)),M=N.redMul(T.redInvm()),D=M.redSqrt();if(D.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");var P=D.fromRed().isOdd();return(_&&!P||!_&&P)&&(D=D.redNeg()),this.point(y,D)},o.prototype.pointFromY=function(y,_){y=new t(y,16),y.red||(y=y.toRed(this.red));var I=y.redSqr(),N=I.redSub(this.c2),T=I.redMul(this.d).redMul(this.c2).redSub(this.a),M=N.redMul(T.redInvm());if(M.cmp(this.zero)===0){if(_)throw new Error("invalid point");return this.point(this.zero,y)}var D=M.redSqrt();if(D.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");return D.fromRed().isOdd()!==_&&(D=D.redNeg()),this.point(D,y)},o.prototype.validate=function(y){if(y.isInfinity())return!0;y.normalize();var _=y.x.redSqr(),I=y.y.redSqr(),N=_.redMul(this.a).redAdd(I),T=this.c2.redMul(this.one.redAdd(this.d.redMul(_).redMul(I)));return N.cmp(T)===0};function d(g,y,_,I,N){i.BasePoint.call(this,g,"projective"),y===null&&_===null&&I===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(y,16),this.y=new t(_,16),this.z=I?new t(I,16):this.curve.one,this.t=N&&new t(N,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return r(d,i.BasePoint),o.prototype.pointFromJSON=function(y){return d.fromJSON(this,y)},o.prototype.point=function(y,_,I,N){return new d(this,y,_,I,N)},d.fromJSON=function(y,_){return new d(y,_[0],_[1],_[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},d.prototype._extDbl=function(){var y=this.x.redSqr(),_=this.y.redSqr(),I=this.z.redSqr();I=I.redIAdd(I);var N=this.curve._mulA(y),T=this.x.redAdd(this.y).redSqr().redISub(y).redISub(_),M=N.redAdd(_),D=M.redSub(I),P=N.redSub(_),G=T.redMul(D),q=M.redMul(P),Y=T.redMul(P),ne=D.redMul(M);return this.curve.point(G,q,ne,Y)},d.prototype._projDbl=function(){var y=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),I=this.y.redSqr(),N,T,M,D,P,G;if(this.curve.twisted){D=this.curve._mulA(_);var q=D.redAdd(I);this.zOne?(N=y.redSub(_).redSub(I).redMul(q.redSub(this.curve.two)),T=q.redMul(D.redSub(I)),M=q.redSqr().redSub(q).redSub(q)):(P=this.z.redSqr(),G=q.redSub(P).redISub(P),N=y.redSub(_).redISub(I).redMul(G),T=q.redMul(D.redSub(I)),M=q.redMul(G))}else D=_.redAdd(I),P=this.curve._mulC(this.z).redSqr(),G=D.redSub(P).redSub(P),N=this.curve._mulC(y.redISub(D)).redMul(G),T=this.curve._mulC(D).redMul(_.redISub(I)),M=D.redMul(G);return this.curve.point(N,T,M)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(y){var _=this.y.redSub(this.x).redMul(y.y.redSub(y.x)),I=this.y.redAdd(this.x).redMul(y.y.redAdd(y.x)),N=this.t.redMul(this.curve.dd).redMul(y.t),T=this.z.redMul(y.z.redAdd(y.z)),M=I.redSub(_),D=T.redSub(N),P=T.redAdd(N),G=I.redAdd(_),q=M.redMul(D),Y=P.redMul(G),ne=M.redMul(G),ce=D.redMul(P);return this.curve.point(q,Y,ce,ne)},d.prototype._projAdd=function(y){var _=this.z.redMul(y.z),I=_.redSqr(),N=this.x.redMul(y.x),T=this.y.redMul(y.y),M=this.curve.d.redMul(N).redMul(T),D=I.redSub(M),P=I.redAdd(M),G=this.x.redAdd(this.y).redMul(y.x.redAdd(y.y)).redISub(N).redISub(T),q=_.redMul(D).redMul(G),Y,ne;return this.curve.twisted?(Y=_.redMul(P).redMul(T.redSub(this.curve._mulA(N))),ne=D.redMul(P)):(Y=_.redMul(P).redMul(T.redSub(N)),ne=this.curve._mulC(D).redMul(P)),this.curve.point(q,Y,ne)},d.prototype.add=function(y){return this.isInfinity()?y:y.isInfinity()?this:this.curve.extended?this._extAdd(y):this._projAdd(y)},d.prototype.mul=function(y){return this._hasDoubles(y)?this.curve._fixedNafMul(this,y):this.curve._wnafMul(this,y)},d.prototype.mulAdd=function(y,_,I){return this.curve._wnafMulAdd(1,[this,_],[y,I],2,!1)},d.prototype.jmulAdd=function(y,_,I){return this.curve._wnafMulAdd(1,[this,_],[y,I],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var y=this.z.redInvm();return this.x=this.x.redMul(y),this.y=this.y.redMul(y),this.t&&(this.t=this.t.redMul(y)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(y){return this===y||this.getX().cmp(y.getX())===0&&this.getY().cmp(y.getY())===0},d.prototype.eqXToP=function(y){var _=y.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(_)===0)return!0;for(var I=y.clone(),N=this.curve.redN.redMul(this.z);;){if(I.iadd(this.curve.n),I.cmp(this.curve.p)>=0)return!1;if(_.redIAdd(N),this.x.cmp(_)===0)return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add,Yae}function hVe(){if(JUe)return Wae;JUe=!0;var e=Wae;return e.base=cV(),e.short=a5t(),e.mont=s5t(),e.edwards=c5t(),Wae}function uV(){if(zUe)return ou;zUe=!0;var e=jy(),t=rs();ou.inherits=t;function r(l,A){return(l.charCodeAt(A)&64512)!==55296||A<0||A+1>=l.length?!1:(l.charCodeAt(A+1)&64512)===56320}function i(l,A){if(Array.isArray(l))return l.slice();if(!l)return[];var m=[];if(typeof l=="string")if(A){if(A==="hex")for(l=l.replace(/[^a-z0-9]+/ig,""),l.length%2!==0&&(l="0"+l),w=0;w<l.length;w+=2)m.push(parseInt(l[w]+l[w+1],16))}else for(var E=0,w=0;w<l.length;w++){var x=l.charCodeAt(w);x<128?m[E++]=x:x<2048?(m[E++]=x>>6|192,m[E++]=x&63|128):r(l,w)?(x=65536+((x&1023)<<10)+(l.charCodeAt(++w)&1023),m[E++]=x>>18|240,m[E++]=x>>12&63|128,m[E++]=x>>6&63|128,m[E++]=x&63|128):(m[E++]=x>>12|224,m[E++]=x>>6&63|128,m[E++]=x&63|128)}else for(w=0;w<l.length;w++)m[w]=l[w]|0;return m}ou.toArray=i;function n(l){for(var A="",m=0;m<l.length;m++)A+=g(l[m].toString(16));return A}ou.toHex=n;function o(l){var A=l>>>24|l>>>8&65280|l<<8&16711680|(l&255)<<24;return A>>>0}ou.htonl=o;function d(l,A){for(var m="",E=0;E<l.length;E++){var w=l[E];A==="little"&&(w=o(w)),m+=y(w.toString(16))}return m}ou.toHex32=d;function g(l){return l.length===1?"0"+l:l}ou.zero2=g;function y(l){return l.length===7?"0"+l:l.length===6?"00"+l:l.length===5?"000"+l:l.length===4?"0000"+l:l.length===3?"00000"+l:l.length===2?"000000"+l:l.length===1?"0000000"+l:l}ou.zero8=y;function _(l,A,m,E){var w=m-A;e(w%4===0);for(var x=new Array(w/4),R=0,u=A;R<x.length;R++,u+=4){var C;E==="big"?C=l[u]<<24|l[u+1]<<16|l[u+2]<<8|l[u+3]:C=l[u+3]<<24|l[u+2]<<16|l[u+1]<<8|l[u],x[R]=C>>>0}return x}ou.join32=_;function I(l,A){for(var m=new Array(l.length*4),E=0,w=0;E<l.length;E++,w+=4){var x=l[E];A==="big"?(m[w]=x>>>24,m[w+1]=x>>>16&255,m[w+2]=x>>>8&255,m[w+3]=x&255):(m[w+3]=x>>>24,m[w+2]=x>>>16&255,m[w+1]=x>>>8&255,m[w]=x&255)}return m}ou.split32=I;function N(l,A){return l>>>A|l<<32-A}ou.rotr32=N;function T(l,A){return l<<A|l>>>32-A}ou.rotl32=T;function M(l,A){return l+A>>>0}ou.sum32=M;function D(l,A,m){return l+A+m>>>0}ou.sum32_3=D;function P(l,A,m,E){return l+A+m+E>>>0}ou.sum32_4=P;function G(l,A,m,E,w){return l+A+m+E+w>>>0}ou.sum32_5=G;function q(l,A,m,E){var w=l[A],x=l[A+1],R=E+x>>>0,u=(R<E?1:0)+m+w;l[A]=u>>>0,l[A+1]=R}ou.sum64=q;function Y(l,A,m,E){var w=A+E>>>0,x=(w<A?1:0)+l+m;return x>>>0}ou.sum64_hi=Y;function ne(l,A,m,E){var w=A+E;return w>>>0}ou.sum64_lo=ne;function ce(l,A,m,E,w,x,R,u){var C=0,U=A;U=U+E>>>0,C+=U<A?1:0,U=U+x>>>0,C+=U<x?1:0,U=U+u>>>0,C+=U<u?1:0;var F=l+m+w+R+C;return F>>>0}ou.sum64_4_hi=ce;function le(l,A,m,E,w,x,R,u){var C=A+E+x+u;return C>>>0}ou.sum64_4_lo=le;function pe(l,A,m,E,w,x,R,u,C,U){var F=0,X=A;X=X+E>>>0,F+=X<A?1:0,X=X+x>>>0,F+=X<x?1:0,X=X+u>>>0,F+=X<u?1:0,X=X+U>>>0,F+=X<U?1:0;var Ae=l+m+w+R+C+F;return Ae>>>0}ou.sum64_5_hi=pe;function ae(l,A,m,E,w,x,R,u,C,U){var F=A+E+x+u+U;return F>>>0}ou.sum64_5_lo=ae;function W(l,A,m){var E=A<<32-m|l>>>m;return E>>>0}ou.rotr64_hi=W;function se(l,A,m){var E=l<<32-m|A>>>m;return E>>>0}ou.rotr64_lo=se;function O(l,A,m){return l>>>m}ou.shr64_hi=O;function s(l,A,m){var E=l<<32-m|A>>>m;return E>>>0}return ou.shr64_lo=s,ou}function AVe(){if(KUe)return Xae;KUe=!0;var e=uV(),t=jy();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Xae.BlockHash=r,r.prototype.update=function(n,o){if(n=e.toArray(n,o),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var d=n.length%this._delta8;this.pending=n.slice(n.length-d,n.length),this.pending.length===0&&(this.pending=null),n=e.join32(n,0,n.length-d,this.endian);for(var g=0;g<n.length;g+=this._delta32)this._update(n,g,g+this._delta32)}return this},r.prototype.digest=function(n){return this.update(this._pad()),t(this.pending===null),this._digest(n)},r.prototype._pad=function(){var n=this.pendingTotal,o=this._delta8,d=o-(n+this.padLength)%o,g=new Array(d+this.padLength);g[0]=128;for(var y=1;y<d;y++)g[y]=0;if(n<<=3,this.endian==="big"){for(var _=8;_<this.padLength;_++)g[y++]=0;g[y++]=0,g[y++]=0,g[y++]=0,g[y++]=0,g[y++]=n>>>24&255,g[y++]=n>>>16&255,g[y++]=n>>>8&255,g[y++]=n&255}else for(g[y++]=n&255,g[y++]=n>>>8&255,g[y++]=n>>>16&255,g[y++]=n>>>24&255,g[y++]=0,g[y++]=0,g[y++]=0,g[y++]=0,_=8;_<this.padLength;_++)g[y++]=0;return g},Xae}function u5t(){return YUe||(YUe=!0),$Ue}function d5t(){if(WUe)return Zae;WUe=!0;var e=uV(),t=AVe(),r=e.rotl32,i=e.sum32,n=e.sum32_3,o=e.sum32_4,d=t.BlockHash;function g(){if(!(this instanceof g))return new g;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(g,d),Zae.ripemd160=g,g.blockSize=512,g.outSize=160,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(G,q){for(var Y=this.h[0],ne=this.h[1],ce=this.h[2],le=this.h[3],pe=this.h[4],ae=Y,W=ne,se=ce,O=le,s=pe,l=0;l<80;l++){var A=i(r(o(Y,y(l,ne,ce,le),G[N[l]+q],_(l)),M[l]),pe);Y=pe,pe=le,le=r(ce,10),ce=ne,ne=A,A=i(r(o(ae,y(79-l,W,se,O),G[T[l]+q],I(l)),D[l]),s),ae=s,s=O,O=r(se,10),se=W,W=A}A=n(this.h[1],ce,O),this.h[1]=n(this.h[2],le,s),this.h[2]=n(this.h[3],pe,ae),this.h[3]=n(this.h[4],Y,W),this.h[4]=n(this.h[0],ne,se),this.h[0]=A},g.prototype._digest=function(G){return G==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function y(P,G,q,Y){return P<=15?G^q^Y:P<=31?G&q|~G&Y:P<=47?(G|~q)^Y:P<=63?G&Y|q&~Y:G^(q|~Y)}function _(P){return P<=15?0:P<=31?1518500249:P<=47?1859775393:P<=63?2400959708:2840853838}function I(P){return P<=15?1352829926:P<=31?1548603684:P<=47?1836072691:P<=63?2053994217:0}var N=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],T=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],M=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],D=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Zae}function f5t(){if(XUe)return jae;XUe=!0;var e=uV(),t=jy();function r(i,n,o){if(!(this instanceof r))return new r(i,n,o);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(n,o))}return jae=r,r.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),t(n.length<=this.blockSize);for(var o=n.length;o<this.blockSize;o++)n.push(0);for(o=0;o<n.length;o++)n[o]^=54;for(this.inner=new this.Hash().update(n),o=0;o<n.length;o++)n[o]^=106;this.outer=new this.Hash().update(n)},r.prototype.update=function(n,o){return this.inner.update(n,o),this},r.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)},jae}function que(){if(ZUe)return ese;ZUe=!0;var e=ese;return e.utils=uV(),e.common=AVe(),e.sha=u5t(),e.ripemd=d5t(),e.hmac=f5t(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160,ese}function l5t(){return jUe||(jUe=!0,tse={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),tse}function Vue(){if(eFe)return rse;eFe=!0;var e=rse,t=que(),r=hVe(),i=Kg(),n=i.assert;function o(y){y.type==="short"?this.curve=new r.short(y):y.type==="edwards"?this.curve=new r.edwards(y):this.curve=new r.mont(y),this.g=this.curve.g,this.n=this.curve.n,this.hash=y.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=o;function d(y,_){Object.defineProperty(e,y,{configurable:!0,enumerable:!0,get:function(){var I=new o(_);return Object.defineProperty(e,y,{configurable:!0,enumerable:!0,value:I}),I}})}d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var g;try{g=l5t()}catch{g=void 0}return d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",g]}),rse}function h5t(){if(tFe)return nse;tFe=!0;var e=que(),t=lVe(),r=jy();function i(n){if(!(this instanceof i))return new i(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var o=t.toArray(n.entropy,n.entropyEnc||"hex"),d=t.toArray(n.nonce,n.nonceEnc||"hex"),g=t.toArray(n.pers,n.persEnc||"hex");r(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,d,g)}return nse=i,i.prototype._init=function(o,d,g){var y=o.concat(d).concat(g);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var _=0;_<this.V.length;_++)this.K[_]=0,this.V[_]=1;this._update(y),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},i.prototype._update=function(o){var d=this._hmac().update(this.V).update([0]);o&&(d=d.update(o)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),o&&(this.K=this._hmac().update(this.V).update([1]).update(o).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(o,d,g,y){typeof d!="string"&&(y=g,g=d,d=null),o=t.toArray(o,d),g=t.toArray(g,y),r(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(o.concat(g||[])),this._reseed=1},i.prototype.generate=function(o,d,g,y){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof d!="string"&&(y=g,g=d,d=null),g&&(g=t.toArray(g,y||"hex"),this._update(g));for(var _=[];_.length<o;)this.V=this._hmac().update(this.V).digest(),_=_.concat(this.V);var I=_.slice(0,o);return this._update(g),this._reseed++,t.encode(I,d)},nse}function A5t(){if(rFe)return ise;rFe=!0;var e=kv(),t=Kg(),r=t.assert;function i(n,o){this.ec=n,this.priv=null,this.pub=null,o.priv&&this._importPrivate(o.priv,o.privEnc),o.pub&&this._importPublic(o.pub,o.pubEnc)}return ise=i,i.fromPublic=function(o,d,g){return d instanceof i?d:new i(o,{pub:d,pubEnc:g})},i.fromPrivate=function(o,d,g){return d instanceof i?d:new i(o,{priv:d,privEnc:g})},i.prototype.validate=function(){var o=this.getPublic();return o.isInfinity()?{result:!1,reason:"Invalid public key"}:o.validate()?o.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(o,d){return typeof o=="string"&&(d=o,o=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,o):this.pub},i.prototype.getPrivate=function(o){return o==="hex"?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(o,d){this.priv=new e(o,d||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(o,d){if(o.x||o.y){this.ec.curve.type==="mont"?r(o.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&r(o.x&&o.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(o.x,o.y);return}this.pub=this.ec.curve.decodePoint(o,d)},i.prototype.derive=function(o){return o.validate()||r(o.validate(),"public point not validated"),o.mul(this.priv).getX()},i.prototype.sign=function(o,d,g){return this.ec.sign(o,this,d,g)},i.prototype.verify=function(o,d){return this.ec.verify(o,d,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},ise}function p5t(){if(nFe)return ose;nFe=!0;var e=kv(),t=Kg(),r=t.assert;function i(y,_){if(y instanceof i)return y;this._importDER(y,_)||(r(y.r&&y.s,"Signature without r or s"),this.r=new e(y.r,16),this.s=new e(y.s,16),y.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=y.recoveryParam)}ose=i;function n(){this.place=0}function o(y,_){var I=y[_.place++];if(!(I&128))return I;var N=I&15;if(N===0||N>4)return!1;for(var T=0,M=0,D=_.place;M<N;M++,D++)T<<=8,T|=y[D],T>>>=0;return T<=127?!1:(_.place=D,T)}function d(y){for(var _=0,I=y.length-1;!y[_]&&!(y[_+1]&128)&&_<I;)_++;return _===0?y:y.slice(_)}i.prototype._importDER=function(_,I){_=t.toArray(_,I);var N=new n;if(_[N.place++]!==48)return!1;var T=o(_,N);if(T===!1||T+N.place!==_.length||_[N.place++]!==2)return!1;var M=o(_,N);if(M===!1)return!1;var D=_.slice(N.place,M+N.place);if(N.place+=M,_[N.place++]!==2)return!1;var P=o(_,N);if(P===!1||_.length!==P+N.place)return!1;var G=_.slice(N.place,P+N.place);if(D[0]===0)if(D[1]&128)D=D.slice(1);else return!1;if(G[0]===0)if(G[1]&128)G=G.slice(1);else return!1;return this.r=new e(D),this.s=new e(G),this.recoveryParam=null,!0};function g(y,_){if(_<128){y.push(_);return}var I=1+(Math.log(_)/Math.LN2>>>3);for(y.push(I|128);--I;)y.push(_>>>(I<<3)&255);y.push(_)}return i.prototype.toDER=function(_){var I=this.r.toArray(),N=this.s.toArray();for(I[0]&128&&(I=[0].concat(I)),N[0]&128&&(N=[0].concat(N)),I=d(I),N=d(N);!N[0]&&!(N[1]&128);)N=N.slice(1);var T=[2];g(T,I.length),T=T.concat(I),T.push(2),g(T,N.length);var M=T.concat(N),D=[48];return g(D,M.length),D=D.concat(M),t.encode(D,_)},ose}function g5t(){if(iFe)return ase;iFe=!0;var e=kv(),t=h5t(),r=Kg(),i=Vue(),n=Que(),o=r.assert,d=A5t(),g=p5t();function y(_){if(!(this instanceof y))return new y(_);typeof _=="string"&&(o(Object.prototype.hasOwnProperty.call(i,_),"Unknown curve "+_),_=i[_]),_ instanceof i.PresetCurve&&(_={curve:_}),this.curve=_.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=_.curve.g,this.g.precompute(_.curve.n.bitLength()+1),this.hash=_.hash||_.curve.hash}return ase=y,y.prototype.keyPair=function(I){return new d(this,I)},y.prototype.keyFromPrivate=function(I,N){return d.fromPrivate(this,I,N)},y.prototype.keyFromPublic=function(I,N){return d.fromPublic(this,I,N)},y.prototype.genKeyPair=function(I){I||(I={});for(var N=new t({hash:this.hash,pers:I.pers,persEnc:I.persEnc||"utf8",entropy:I.entropy||n(this.hash.hmacStrength),entropyEnc:I.entropy&&I.entropyEnc||"utf8",nonce:this.n.toArray()}),T=this.n.byteLength(),M=this.n.sub(new e(2));;){var D=new e(N.generate(T));if(!(D.cmp(M)>0))return D.iaddn(1),this.keyFromPrivate(D)}},y.prototype._truncateToN=function(I,N){var T=I.byteLength()*8-this.n.bitLength();return T>0&&(I=I.ushrn(T)),!N&&I.cmp(this.n)>=0?I.sub(this.n):I},y.prototype.sign=function(I,N,T,M){typeof T=="object"&&(M=T,T=null),M||(M={}),N=this.keyFromPrivate(N,T),I=this._truncateToN(new e(I,16));for(var D=this.n.byteLength(),P=N.getPrivate().toArray("be",D),G=I.toArray("be",D),q=new t({hash:this.hash,entropy:P,nonce:G,pers:M.pers,persEnc:M.persEnc||"utf8"}),Y=this.n.sub(new e(1)),ne=0;;ne++){var ce=M.k?M.k(ne):new e(q.generate(this.n.byteLength()));if(ce=this._truncateToN(ce,!0),!(ce.cmpn(1)<=0||ce.cmp(Y)>=0)){var le=this.g.mul(ce);if(!le.isInfinity()){var pe=le.getX(),ae=pe.umod(this.n);if(ae.cmpn(0)!==0){var W=ce.invm(this.n).mul(ae.mul(N.getPrivate()).iadd(I));if(W=W.umod(this.n),W.cmpn(0)!==0){var se=(le.getY().isOdd()?1:0)|(pe.cmp(ae)!==0?2:0);return M.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),se^=1),new g({r:ae,s:W,recoveryParam:se})}}}}}},y.prototype.verify=function(I,N,T,M){I=this._truncateToN(new e(I,16)),T=this.keyFromPublic(T,M),N=new g(N,"hex");var D=N.r,P=N.s;if(D.cmpn(1)<0||D.cmp(this.n)>=0||P.cmpn(1)<0||P.cmp(this.n)>=0)return!1;var G=P.invm(this.n),q=G.mul(I).umod(this.n),Y=G.mul(D).umod(this.n),ne;return this.curve._maxwellTrick?(ne=this.g.jmulAdd(q,T.getPublic(),Y),ne.isInfinity()?!1:ne.eqXToP(D)):(ne=this.g.mulAdd(q,T.getPublic(),Y),ne.isInfinity()?!1:ne.getX().umod(this.n).cmp(D)===0)},y.prototype.recoverPubKey=function(_,I,N,T){o((3&N)===N,"The recovery param is more than two bits"),I=new g(I,T);var M=this.n,D=new e(_),P=I.r,G=I.s,q=N&1,Y=N>>1;if(P.cmp(this.curve.p.umod(this.curve.n))>=0&&Y)throw new Error("Unable to find sencond key candinate");Y?P=this.curve.pointFromX(P.add(this.curve.n),q):P=this.curve.pointFromX(P,q);var ne=I.r.invm(M),ce=M.sub(D).mul(ne).umod(M),le=G.mul(ne).umod(M);return this.g.mulAdd(ce,P,le)},y.prototype.getKeyRecoveryParam=function(_,I,N,T){if(I=new g(I,T),I.recoveryParam!==null)return I.recoveryParam;for(var M=0;M<4;M++){var D;try{D=this.recoverPubKey(_,I,M)}catch{continue}if(D.eq(N))return M}throw new Error("Unable to find valid recovery factor")},ase}function _5t(){if(oFe)return sse;oFe=!0;var e=Kg(),t=e.assert,r=e.parseBytes,i=e.cachedProperty;function n(o,d){this.eddsa=o,this._secret=r(d.secret),o.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=r(d.pub)}return n.fromPublic=function(d,g){return g instanceof n?g:new n(d,{pub:g})},n.fromSecret=function(d,g){return g instanceof n?g:new n(d,{secret:g})},n.prototype.secret=function(){return this._secret},i(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(n,"privBytes",function(){var d=this.eddsa,g=this.hash(),y=d.encodingLength-1,_=g.slice(0,d.encodingLength);return _[0]&=248,_[y]&=127,_[y]|=64,_}),i(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(d){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},n.prototype.verify=function(d,g){return this.eddsa.verify(d,g,this)},n.prototype.getSecret=function(d){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),d)},n.prototype.getPublic=function(d){return e.encode(this.pubBytes(),d)},sse=n,sse}function m5t(){if(aFe)return cse;aFe=!0;var e=kv(),t=Kg(),r=t.assert,i=t.cachedProperty,n=t.parseBytes;function o(d,g){this.eddsa=d,typeof g!="object"&&(g=n(g)),Array.isArray(g)&&(g={R:g.slice(0,d.encodingLength),S:g.slice(d.encodingLength)}),r(g.R&&g.S,"Signature without R or S"),d.isPoint(g.R)&&(this._R=g.R),g.S instanceof e&&(this._S=g.S),this._Rencoded=Array.isArray(g.R)?g.R:g.Rencoded,this._Sencoded=Array.isArray(g.S)?g.S:g.Sencoded}return i(o,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i(o,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i(o,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i(o,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),o.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},o.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},cse=o,cse}function y5t(){if(sFe)return use;sFe=!0;var e=que(),t=Vue(),r=Kg(),i=r.assert,n=r.parseBytes,o=_5t(),d=m5t();function g(y){if(i(y==="ed25519","only tested with ed25519 so far"),!(this instanceof g))return new g(y);y=t[y].curve,this.curve=y,this.g=y.g,this.g.precompute(y.n.bitLength()+1),this.pointClass=y.point().constructor,this.encodingLength=Math.ceil(y.n.bitLength()/8),this.hash=e.sha512}return use=g,g.prototype.sign=function(_,I){_=n(_);var N=this.keyFromSecret(I),T=this.hashInt(N.messagePrefix(),_),M=this.g.mul(T),D=this.encodePoint(M),P=this.hashInt(D,N.pubBytes(),_).mul(N.priv()),G=T.add(P).umod(this.curve.n);return this.makeSignature({R:M,S:G,Rencoded:D})},g.prototype.verify=function(_,I,N){_=n(_),I=this.makeSignature(I);var T=this.keyFromPublic(N),M=this.hashInt(I.Rencoded(),T.pubBytes(),_),D=this.g.mul(I.S()),P=I.R().add(T.pub().mul(M));return P.eq(D)},g.prototype.hashInt=function(){for(var _=this.hash(),I=0;I<arguments.length;I++)_.update(arguments[I]);return r.intFromLE(_.digest()).umod(this.curve.n)},g.prototype.keyFromPublic=function(_){return o.fromPublic(this,_)},g.prototype.keyFromSecret=function(_){return o.fromSecret(this,_)},g.prototype.makeSignature=function(_){return _ instanceof d?_:new d(this,_)},g.prototype.encodePoint=function(_){var I=_.getY().toArray("le",this.encodingLength);return I[this.encodingLength-1]|=_.getX().isOdd()?128:0,I},g.prototype.decodePoint=function(_){_=r.parseBytes(_);var I=_.length-1,N=_.slice(0,I).concat(_[I]&-129),T=(_[I]&128)!==0,M=r.intFromLE(N);return this.curve.pointFromY(M,T)},g.prototype.encodeInt=function(_){return _.toArray("le",this.encodingLength)},g.prototype.decodeInt=function(_){return r.intFromLE(_)},g.prototype.isPoint=function(_){return _ instanceof this.pointClass},use}function Jue(){if(cFe)return dse;cFe=!0;var e=dse;return e.version=o5t.version,e.utils=Kg(),e.rand=Que(),e.curve=hVe(),e.curves=Vue(),e.ec=g5t(),e.eddsa=y5t(),dse}function gVe(){return uFe||(uFe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Bt).negative=0,(this||Bt).words=null,(this||Bt).length=0,(this||Bt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Bt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Bt).negative=1,s=-s),s<67108864?((this||Bt).words=[s&67108863],(this||Bt).length=1):s<4503599627370496?((this||Bt).words=[s&67108863,s/67108864&67108863],(this||Bt).length=2):(r(s<9007199254740992),(this||Bt).words=[s&67108863,s/67108864&67108863,1],(this||Bt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Bt).words=[0],(this||Bt).length=1,this||Bt;(this||Bt).length=Math.ceil(s.length/3),(this||Bt).words=new Array((this||Bt).length);for(var m=0;m<(this||Bt).length;m++)(this||Bt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Bt).words[E]|=w<<x&67108863,(this||Bt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Bt).words[E]|=w<<x&67108863,(this||Bt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Bt).length=Math.ceil((s.length-l)/6),(this||Bt).words=new Array((this||Bt).length);for(var m=0;m<(this||Bt).length;m++)(this||Bt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Bt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Bt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Bt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Bt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Bt).words=[0],(this||Bt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Bt).words[0]+u<67108864?(this||Bt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Bt).words[0]+u<67108864?(this||Bt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Bt).length);for(var l=0;l<(this||Bt).length;l++)s.words[l]=(this||Bt).words[l];s.length=(this||Bt).length,s.negative=(this||Bt).negative,s.red=(this||Bt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Bt).length<s;)(this||Bt).words[(this||Bt).length++]=0;return this||Bt},n.prototype.strip=function(){for(;(this||Bt).length>1&&(this||Bt).words[(this||Bt).length-1]===0;)(this||Bt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Bt).length===1&&(this||Bt).words[0]===0&&((this||Bt).negative=0),this||Bt},n.prototype.inspect=function(){return((this||Bt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Bt).length;w++){var x=(this||Bt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Bt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Bt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Bt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Bt).words[0];return(this||Bt).length===2?s+=(this||Bt).words[1]*67108864:(this||Bt).length===3&&(this||Bt).words[2]===1?s+=4503599627370496+(this||Bt).words[1]*67108864:(this||Bt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Bt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Bt).words[(this||Bt).length-1],l=this._countBits(s);return((this||Bt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Bt).length;l++){var A=this._zeroBits((this||Bt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Bt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Bt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Bt).negative^=1),this||Bt},n.prototype.iuor=function(s){for(;(this||Bt).length<s.length;)(this||Bt).words[(this||Bt).length++]=0;for(var l=0;l<s.length;l++)(this||Bt).words[l]=(this||Bt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Bt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Bt).length>s.length?this.clone().ior(s):s.clone().ior(this||Bt)},n.prototype.uor=function(s){return(this||Bt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Bt)},n.prototype.iuand=function(s){var l;(this||Bt).length>s.length?l=s:l=this||Bt;for(var A=0;A<l.length;A++)(this||Bt).words[A]=(this||Bt).words[A]&s.words[A];return(this||Bt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Bt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Bt).length>s.length?this.clone().iand(s):s.clone().iand(this||Bt)},n.prototype.uand=function(s){return(this||Bt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Bt)},n.prototype.iuxor=function(s){var l,A;(this||Bt).length>s.length?(l=this||Bt,A=s):(l=s,A=this||Bt);for(var m=0;m<A.length;m++)(this||Bt).words[m]=l.words[m]^A.words[m];if((this||Bt)!==l)for(;m<l.length;m++)(this||Bt).words[m]=l.words[m];return(this||Bt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Bt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Bt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Bt)},n.prototype.uxor=function(s){return(this||Bt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Bt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Bt).words[m]=~(this||Bt).words[m]&67108863;return A>0&&((this||Bt).words[m]=~(this||Bt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Bt).words[A]=(this||Bt).words[A]|1<<m:(this||Bt).words[A]=(this||Bt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Bt).negative!==0&&s.negative===0)return(this||Bt).negative=0,l=this.isub(s),(this||Bt).negative^=1,this._normSign();if((this||Bt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Bt).length>s.length?(A=this||Bt,m=s):(A=s,m=this||Bt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Bt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Bt).words[w]=l&67108863,E=l>>>26;if((this||Bt).length=A.length,E!==0)(this||Bt).words[(this||Bt).length]=E,(this||Bt).length++;else if(A!==(this||Bt))for(;w<A.length;w++)(this||Bt).words[w]=A.words[w];return this||Bt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Bt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Bt).negative!==0?((this||Bt).negative=0,l=s.sub(this||Bt),(this||Bt).negative=1,l):(this||Bt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Bt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Bt).negative!==0)return(this||Bt).negative=0,this.iadd(s),(this||Bt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Bt).negative=0,(this||Bt).length=1,(this||Bt).words[0]=0,this||Bt;var m,E;A>0?(m=this||Bt,E=s):(m=s,E=this||Bt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Bt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Bt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Bt))for(;x<m.length;x++)(this||Bt).words[x]=m.words[x];return(this||Bt).length=Math.max((this||Bt).length,x),m!==(this||Bt)&&((this||Bt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Bt).length+s.length;return(this||Bt).length===10&&s.length===10?A=D(this||Bt,s,l):m<63?A=M(this||Bt,s,l):m<1024?A=P(this||Bt,s,l):A=G(this||Bt,s,l),A};function q(O,s){(this||Bt).x=O,(this||Bt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Bt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Bt).length+s.length),G(this||Bt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Bt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Bt).length;A++){var m=((this||Bt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Bt).words[A]=E&67108863}return l!==0&&((this||Bt).words[A]=l,(this||Bt).length++),this||Bt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Bt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Bt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Bt).length;E++){var x=(this||Bt).words[E]&m,R=((this||Bt).words[E]|0)-x<<l;(this||Bt).words[E]=R|w,w=x>>>26-l}w&&((this||Bt).words[E]=w,(this||Bt).length++)}if(A!==0){for(E=(this||Bt).length-1;E>=0;E--)(this||Bt).words[E+A]=(this||Bt).words[E];for(E=0;E<A;E++)(this||Bt).words[E]=0;(this||Bt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Bt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Bt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Bt).words[u];R.length=w}if(w!==0)if((this||Bt).length>w)for((this||Bt).length-=w,u=0;u<(this||Bt).length;u++)(this||Bt).words[u]=(this||Bt).words[u+w];else(this||Bt).words[0]=0,(this||Bt).length=1;var C=0;for(u=(this||Bt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Bt).words[u]|0;(this||Bt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Bt).length===0&&((this||Bt).words[0]=0,(this||Bt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Bt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Bt).length<=A)return!1;var E=(this||Bt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Bt).negative===0,"imaskn works only with positive numbers"),(this||Bt).length<=A)return this||Bt;if(l!==0&&A++,(this||Bt).length=Math.min(A,(this||Bt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Bt).words[(this||Bt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Bt).negative!==0?(this||Bt).length===1&&((this||Bt).words[0]|0)<s?((this||Bt).words[0]=s-((this||Bt).words[0]|0),(this||Bt).negative=0,this||Bt):((this||Bt).negative=0,this.isubn(s),(this||Bt).negative=1,this||Bt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Bt).words[0]+=s;for(var l=0;l<(this||Bt).length&&(this||Bt).words[l]>=67108864;l++)(this||Bt).words[l]-=67108864,l===(this||Bt).length-1?(this||Bt).words[l+1]=1:(this||Bt).words[l+1]++;return(this||Bt).length=Math.max((this||Bt).length,l+1),this||Bt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Bt).negative!==0)return(this||Bt).negative=0,this.iaddn(s),(this||Bt).negative=1,this||Bt;if((this||Bt).words[0]-=s,(this||Bt).length===1&&(this||Bt).words[0]<0)(this||Bt).words[0]=-(this||Bt).words[0],(this||Bt).negative=1;else for(var l=0;l<(this||Bt).length&&(this||Bt).words[l]<0;l++)(this||Bt).words[l]+=67108864,(this||Bt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Bt).negative=0,this||Bt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Bt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Bt).words[E+A]=w&67108863}for(;E<(this||Bt).length-A;E++)w=((this||Bt).words[E+A]|0)+x,x=w>>26,(this||Bt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Bt).length;E++)w=-((this||Bt).words[E]|0)+x,x=w>>26,(this||Bt).words[E]=w&67108863;return(this||Bt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Bt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Bt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Bt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Bt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Bt).length||this.cmp(s)<0?{div:new n(0),mod:this||Bt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Bt).length-1;m>=0;m--)A=(l*A+((this||Bt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Bt).length-1;A>=0;A--){var m=((this||Bt).words[A]|0)+l*67108864;(this||Bt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Bt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Bt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Bt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Bt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Bt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Bt).length<=A)return this._expand(A+1),(this||Bt).words[A]|=m,this||Bt;for(var E=m,w=A;E!==0&&w<(this||Bt).length;w++){var x=(this||Bt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Bt).words[w]=x}return E!==0&&((this||Bt).words[w]=E,(this||Bt).length++),this||Bt},n.prototype.isZero=function(){return(this||Bt).length===1&&(this||Bt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Bt).negative!==0&&!l)return-1;if((this||Bt).negative===0&&l)return 1;this.strip();var A;if((this||Bt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Bt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Bt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Bt).negative!==0&&s.negative===0)return-1;if((this||Bt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Bt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Bt).length>s.length)return 1;if((this||Bt).length<s.length)return-1;for(var l=0,A=(this||Bt).length-1;A>=0;A--){var m=(this||Bt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Bt).red,"Already a number in reduction context"),r((this||Bt).negative===0,"red works only with positives"),s.convertTo(this||Bt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Bt).red,"fromRed works only with numbers in reduction context"),(this||Bt).red.convertFrom(this||Bt)},n.prototype._forceRed=function(s){return(this||Bt).red=s,this||Bt},n.prototype.forceRed=function(s){return r(!(this||Bt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Bt).red,"redAdd works only with red numbers"),(this||Bt).red.add(this||Bt,s)},n.prototype.redIAdd=function(s){return r((this||Bt).red,"redIAdd works only with red numbers"),(this||Bt).red.iadd(this||Bt,s)},n.prototype.redSub=function(s){return r((this||Bt).red,"redSub works only with red numbers"),(this||Bt).red.sub(this||Bt,s)},n.prototype.redISub=function(s){return r((this||Bt).red,"redISub works only with red numbers"),(this||Bt).red.isub(this||Bt,s)},n.prototype.redShl=function(s){return r((this||Bt).red,"redShl works only with red numbers"),(this||Bt).red.shl(this||Bt,s)},n.prototype.redMul=function(s){return r((this||Bt).red,"redMul works only with red numbers"),(this||Bt).red._verify2(this||Bt,s),(this||Bt).red.mul(this||Bt,s)},n.prototype.redIMul=function(s){return r((this||Bt).red,"redMul works only with red numbers"),(this||Bt).red._verify2(this||Bt,s),(this||Bt).red.imul(this||Bt,s)},n.prototype.redSqr=function(){return r((this||Bt).red,"redSqr works only with red numbers"),(this||Bt).red._verify1(this||Bt),(this||Bt).red.sqr(this||Bt)},n.prototype.redISqr=function(){return r((this||Bt).red,"redISqr works only with red numbers"),(this||Bt).red._verify1(this||Bt),(this||Bt).red.isqr(this||Bt)},n.prototype.redSqrt=function(){return r((this||Bt).red,"redSqrt works only with red numbers"),(this||Bt).red._verify1(this||Bt),(this||Bt).red.sqrt(this||Bt)},n.prototype.redInvm=function(){return r((this||Bt).red,"redInvm works only with red numbers"),(this||Bt).red._verify1(this||Bt),(this||Bt).red.invm(this||Bt)},n.prototype.redNeg=function(){return r((this||Bt).red,"redNeg works only with red numbers"),(this||Bt).red._verify1(this||Bt),(this||Bt).red.neg(this||Bt)},n.prototype.redPow=function(s){return r((this||Bt).red&&!s.red,"redPow(normalNum)"),(this||Bt).red._verify1(this||Bt),(this||Bt).red.pow(this||Bt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Bt).name=O,(this||Bt).p=new n(s,16),(this||Bt).n=(this||Bt).p.bitLength(),(this||Bt).k=new n(1).iushln((this||Bt).n).isub((this||Bt).p),(this||Bt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Bt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Bt).tmp),l=this.imulK(l),l=l.iadd((this||Bt).tmp),A=l.bitLength();while(A>(this||Bt).n);var m=A<(this||Bt).n?-1:l.ucmp((this||Bt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Bt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Bt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Bt).k)};function ce(){ne.call(this||Bt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Bt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Bt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Bt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Bt).m=s.p,(this||Bt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Bt).m=O,(this||Bt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Bt).prime?(this||Bt).prime.ireduce(s)._forceRed(this||Bt):s.umod((this||Bt).m)._forceRed(this||Bt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Bt).m.sub(s)._forceRed(this||Bt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Bt).m)>=0&&A.isub((this||Bt).m),A._forceRed(this||Bt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Bt).m)>=0&&A.isub((this||Bt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Bt).m),A._forceRed(this||Bt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Bt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Bt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Bt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Bt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Bt),x=w.redNeg(),R=(this||Bt).m.subn(1).iushrn(1),u=(this||Bt).m.bitLength();for(u=new n(2*u*u).toRed(this||Bt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Bt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Bt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Bt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Bt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Bt,O),(this||Bt).shift=(this||Bt).m.bitLength(),(this||Bt).shift%26!==0&&((this||Bt).shift+=26-(this||Bt).shift%26),(this||Bt).r=new n(1).iushln((this||Bt).shift),(this||Bt).r2=this.imod((this||Bt).r.sqr()),(this||Bt).rinv=(this||Bt).r._invmp((this||Bt).m),(this||Bt).minv=(this||Bt).rinv.mul((this||Bt).r).isubn(1).div((this||Bt).m),(this||Bt).minv=(this||Bt).minv.umod((this||Bt).r),(this||Bt).minv=(this||Bt).r.sub((this||Bt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Bt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Bt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Bt).shift).mul((this||Bt).minv).imaskn((this||Bt).shift).mul((this||Bt).m),E=A.isub(m).iushrn((this||Bt).shift),w=E;return E.cmp((this||Bt).m)>=0?w=E.isub((this||Bt).m):E.cmpn(0)<0&&(w=E.iadd((this||Bt).m)),w._forceRed(this||Bt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Bt);var A=s.mul(l),m=A.maskn((this||Bt).shift).mul((this||Bt).minv).imaskn((this||Bt).shift).mul((this||Bt).m),E=A.isub(m).iushrn((this||Bt).shift),w=E;return E.cmp((this||Bt).m)>=0?w=E.isub((this||Bt).m):E.cmpn(0)<0&&(w=E.iadd((this||Bt).m)),w._forceRed(this||Bt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Bt).m).mul((this||Bt).r2));return l._forceRed(this||Bt)}})(fse,pVe)),fse.exports}function zue(){if(dFe)return lse;dFe=!0;var e=Mo,t=Vo,r=t.Buffer,i={},n;for(n in t)t.hasOwnProperty(n)&&(n==="SlowBuffer"||n==="Buffer"||(i[n]=t[n]));var o=i.Buffer={};for(n in r)r.hasOwnProperty(n)&&(n==="allocUnsafe"||n==="allocUnsafeSlow"||(o[n]=r[n]));if(i.Buffer.prototype=r.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(d,g,y){if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof d);if(d&&typeof d.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);return r(d,g,y)}),o.alloc||(o.alloc=function(d,g,y){if(typeof d!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof d);if(d<0||d>=2*(1<<30))throw new RangeError('The value "'+d+'" is invalid for option "size"');var _=r(d);return!g||g.length===0?_.fill(0):typeof y=="string"?_.fill(g,y):_.fill(g),_}),!i.kStringMaxLength)try{i.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch{}return i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),lse=i,lse}function Kue(){if(fFe)return hse;fFe=!0;let e=rs();function t(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}hse.Reporter=t,t.prototype.isError=function(n){return n instanceof r},t.prototype.save=function(){let n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},t.prototype.restore=function(n){let o=this._reporterState;o.obj=n.obj,o.path=o.path.slice(0,n.pathLen)},t.prototype.enterKey=function(n){return this._reporterState.path.push(n)},t.prototype.exitKey=function(n){let o=this._reporterState;o.path=o.path.slice(0,n-1)},t.prototype.leaveKey=function(n,o,d){let g=this._reporterState;this.exitKey(n),g.obj!==null&&(g.obj[o]=d)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){let n=this._reporterState,o=n.obj;return n.obj={},o},t.prototype.leaveObject=function(n){let o=this._reporterState,d=o.obj;return o.obj=n,d},t.prototype.error=function(n){let o,d=this._reporterState,g=n instanceof r;if(g?o=n:o=new r(d.path.map(function(y){return"["+JSON.stringify(y)+"]"}).join(""),n.message||n,n.stack),!d.options.partial)throw o;return g||d.errors.push(o),o},t.prototype.wrapResult=function(n){let o=this._reporterState;return o.options.partial?{result:this.isError(n)?null:n,errors:o.errors}:n};function r(i,n){this.path=i,this.rethrow(n)}return e(r,Error),r.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw new Error(this.message)}catch(o){this.stack=o.stack}return this},hse}function ND(){if(lFe)return sq;lFe=!0;let e=rs(),t=Kue().Reporter,r=zue().Buffer;function i(o,d){if(t.call(this,d),!r.isBuffer(o)){this.error("Input not Buffer");return}this.base=o,this.offset=0,this.length=o.length}e(i,t),sq.DecoderBuffer=i,i.isDecoderBuffer=function(d){return d instanceof i?!0:typeof d=="object"&&r.isBuffer(d.base)&&d.constructor.name==="DecoderBuffer"&&typeof d.offset=="number"&&typeof d.length=="number"&&typeof d.save=="function"&&typeof d.restore=="function"&&typeof d.isEmpty=="function"&&typeof d.readUInt8=="function"&&typeof d.skip=="function"&&typeof d.raw=="function"},i.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},i.prototype.restore=function(d){let g=new i(this.base);return g.offset=d.offset,g.length=this.offset,this.offset=d.offset,t.prototype.restore.call(this,d.reporter),g},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},i.prototype.skip=function(d,g){if(!(this.offset+d<=this.length))return this.error(g||"DecoderBuffer overrun");let y=new i(this.base);return y._reporterState=this._reporterState,y.offset=this.offset,y.length=this.offset+d,this.offset+=d,y},i.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)};function n(o,d){if(Array.isArray(o))this.length=0,this.value=o.map(function(g){return n.isEncoderBuffer(g)||(g=new n(g,d)),this.length+=g.length,g},this);else if(typeof o=="number"){if(!(0<=o&&o<=255))return d.error("non-byte EncoderBuffer value");this.value=o,this.length=1}else if(typeof o=="string")this.value=o,this.length=r.byteLength(o);else if(r.isBuffer(o))this.value=o,this.length=o.length;else return d.error("Unsupported type: "+typeof o)}return sq.EncoderBuffer=n,n.isEncoderBuffer=function(d){return d instanceof n?!0:typeof d=="object"&&d.constructor.name==="EncoderBuffer"&&typeof d.length=="number"&&typeof d.join=="function"},n.prototype.join=function(d,g){return d||(d=r.alloc(this.length)),g||(g=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(y){y.join(d,g),g+=y.length}):(typeof this.value=="number"?d[g]=this.value:typeof this.value=="string"?d.write(this.value,g):r.isBuffer(this.value)&&this.value.copy(d,g),g+=this.length)),d},sq}function $ue(){if(hFe)return Ase;hFe=!0;let e=Kue().Reporter,t=ND().EncoderBuffer,r=ND().DecoderBuffer,i=jy(),n=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],o=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(n),d=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function g(_,I,N){let T={};this._baseState=T,T.name=N,T.enc=_,T.parent=I||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}Ase=g;let y=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return g.prototype.clone=function(){let I=this._baseState,N={};y.forEach(function(M){N[M]=I[M]});let T=new this.constructor(N.parent);return T._baseState=N,T},g.prototype._wrap=function(){let I=this._baseState;o.forEach(function(N){this[N]=function(){let M=new this.constructor(this);return I.children.push(M),M[N].apply(M,arguments)}},this)},g.prototype._init=function(I){let N=this._baseState;i(N.parent===null),I.call(this),N.children=N.children.filter(function(T){return T._baseState.parent===this},this),i.equal(N.children.length,1,"Root node can have only one child")},g.prototype._useArgs=function(I){let N=this._baseState,T=I.filter(function(M){return M instanceof this.constructor},this);I=I.filter(function(M){return!(M instanceof this.constructor)},this),T.length!==0&&(i(N.children===null),N.children=T,T.forEach(function(M){M._baseState.parent=this},this)),I.length!==0&&(i(N.args===null),N.args=I,N.reverseArgs=I.map(function(M){if(typeof M!="object"||M.constructor!==Object)return M;let D={};return Object.keys(M).forEach(function(P){P==(P|0)&&(P|=0);let G=M[P];D[G]=P}),D}))},d.forEach(function(_){g.prototype[_]=function(){let N=this._baseState;throw new Error(_+" not implemented for encoding: "+N.enc)}}),n.forEach(function(_){g.prototype[_]=function(){let N=this._baseState,T=Array.prototype.slice.call(arguments);return i(N.tag===null),N.tag=_,this._useArgs(T),this}}),g.prototype.use=function(I){i(I);let N=this._baseState;return i(N.use===null),N.use=I,this},g.prototype.optional=function(){let I=this._baseState;return I.optional=!0,this},g.prototype.def=function(I){let N=this._baseState;return i(N.default===null),N.default=I,N.optional=!0,this},g.prototype.explicit=function(I){let N=this._baseState;return i(N.explicit===null&&N.implicit===null),N.explicit=I,this},g.prototype.implicit=function(I){let N=this._baseState;return i(N.explicit===null&&N.implicit===null),N.implicit=I,this},g.prototype.obj=function(){let I=this._baseState,N=Array.prototype.slice.call(arguments);return I.obj=!0,N.length!==0&&this._useArgs(N),this},g.prototype.key=function(I){let N=this._baseState;return i(N.key===null),N.key=I,this},g.prototype.any=function(){let I=this._baseState;return I.any=!0,this},g.prototype.choice=function(I){let N=this._baseState;return i(N.choice===null),N.choice=I,this._useArgs(Object.keys(I).map(function(T){return I[T]})),this},g.prototype.contains=function(I){let N=this._baseState;return i(N.use===null),N.contains=I,this},g.prototype._decode=function(I,N){let T=this._baseState;if(T.parent===null)return I.wrapResult(T.children[0]._decode(I,N));let M=T.default,D=!0,P=null;if(T.key!==null&&(P=I.enterKey(T.key)),T.optional){let q=null;if(T.explicit!==null?q=T.explicit:T.implicit!==null?q=T.implicit:T.tag!==null&&(q=T.tag),q===null&&!T.any){let Y=I.save();try{T.choice===null?this._decodeGeneric(T.tag,I,N):this._decodeChoice(I,N),D=!0}catch{D=!1}I.restore(Y)}else if(D=this._peekTag(I,q,T.any),I.isError(D))return D}let G;if(T.obj&&D&&(G=I.enterObject()),D){if(T.explicit!==null){let Y=this._decodeTag(I,T.explicit);if(I.isError(Y))return Y;I=Y}let q=I.offset;if(T.use===null&&T.choice===null){let Y;T.any&&(Y=I.save());let ne=this._decodeTag(I,T.implicit!==null?T.implicit:T.tag,T.any);if(I.isError(ne))return ne;T.any?M=I.raw(Y):I=ne}if(N&&N.track&&T.tag!==null&&N.track(I.path(),q,I.length,"tagged"),N&&N.track&&T.tag!==null&&N.track(I.path(),I.offset,I.length,"content"),T.any||(T.choice===null?M=this._decodeGeneric(T.tag,I,N):M=this._decodeChoice(I,N)),I.isError(M))return M;if(!T.any&&T.choice===null&&T.children!==null&&T.children.forEach(function(ne){ne._decode(I,N)}),T.contains&&(T.tag==="octstr"||T.tag==="bitstr")){let Y=new r(M);M=this._getUse(T.contains,I._reporterState.obj)._decode(Y,N)}}return T.obj&&D&&(M=I.leaveObject(G)),T.key!==null&&(M!==null||D===!0)?I.leaveKey(P,T.key,M):P!==null&&I.exitKey(P),M},g.prototype._decodeGeneric=function(I,N,T){let M=this._baseState;return I==="seq"||I==="set"?null:I==="seqof"||I==="setof"?this._decodeList(N,I,M.args[0],T):/str$/.test(I)?this._decodeStr(N,I,T):I==="objid"&&M.args?this._decodeObjid(N,M.args[0],M.args[1],T):I==="objid"?this._decodeObjid(N,null,null,T):I==="gentime"||I==="utctime"?this._decodeTime(N,I,T):I==="null_"?this._decodeNull(N,T):I==="bool"?this._decodeBool(N,T):I==="objDesc"?this._decodeStr(N,I,T):I==="int"||I==="enum"?this._decodeInt(N,M.args&&M.args[0],T):M.use!==null?this._getUse(M.use,N._reporterState.obj)._decode(N,T):N.error("unknown tag: "+I)},g.prototype._getUse=function(I,N){let T=this._baseState;return T.useDecoder=this._use(I,N),i(T.useDecoder._baseState.parent===null),T.useDecoder=T.useDecoder._baseState.children[0],T.implicit!==T.useDecoder._baseState.implicit&&(T.useDecoder=T.useDecoder.clone(),T.useDecoder._baseState.implicit=T.implicit),T.useDecoder},g.prototype._decodeChoice=function(I,N){let T=this._baseState,M=null,D=!1;return Object.keys(T.choice).some(function(P){let G=I.save(),q=T.choice[P];try{let Y=q._decode(I,N);if(I.isError(Y))return!1;M={type:P,value:Y},D=!0}catch{return I.restore(G),!1}return!0},this),D?M:I.error("Choice not matched")},g.prototype._createEncoderBuffer=function(I){return new t(I,this.reporter)},g.prototype._encode=function(I,N,T){let M=this._baseState;if(M.default!==null&&M.default===I)return;let D=this._encodeValue(I,N,T);if(D!==void 0&&!this._skipDefault(D,N,T))return D},g.prototype._encodeValue=function(I,N,T){let M=this._baseState;if(M.parent===null)return M.children[0]._encode(I,N||new e);let D=null;if(this.reporter=N,M.optional&&I===void 0)if(M.default!==null)I=M.default;else return;let P=null,G=!1;if(M.any)D=this._createEncoderBuffer(I);else if(M.choice)D=this._encodeChoice(I,N);else if(M.contains)P=this._getUse(M.contains,T)._encode(I,N),G=!0;else if(M.children)P=M.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,N,I);if(q._baseState.key===null)return N.error("Child should have a key");let Y=N.enterKey(q._baseState.key);if(typeof I!="object")return N.error("Child expected, but input is not object");let ne=q._encode(I[q._baseState.key],N,I);return N.leaveKey(Y),ne},this).filter(function(q){return q}),P=this._createEncoderBuffer(P);else if(M.tag==="seqof"||M.tag==="setof"){if(!(M.args&&M.args.length===1))return N.error("Too many args for : "+M.tag);if(!Array.isArray(I))return N.error("seqof/setof, but data is not Array");let q=this.clone();q._baseState.implicit=null,P=this._createEncoderBuffer(I.map(function(Y){let ne=this._baseState;return this._getUse(ne.args[0],I)._encode(Y,N)},q))}else M.use!==null?D=this._getUse(M.use,T)._encode(I,N):(P=this._encodePrimitive(M.tag,I),G=!0);if(!M.any&&M.choice===null){let q=M.implicit!==null?M.implicit:M.tag,Y=M.implicit===null?"universal":"context";q===null?M.use===null&&N.error("Tag could be omitted only for .use()"):M.use===null&&(D=this._encodeComposite(q,G,Y,P))}return M.explicit!==null&&(D=this._encodeComposite(M.explicit,!1,"context",D)),D},g.prototype._encodeChoice=function(I,N){let T=this._baseState,M=T.choice[I.type];return M||i(!1,I.type+" not found in "+JSON.stringify(Object.keys(T.choice))),M._encode(I.value,N)},g.prototype._encodePrimitive=function(I,N){let T=this._baseState;if(/str$/.test(I))return this._encodeStr(N,I);if(I==="objid"&&T.args)return this._encodeObjid(N,T.reverseArgs[0],T.args[1]);if(I==="objid")return this._encodeObjid(N,null,null);if(I==="gentime"||I==="utctime")return this._encodeTime(N,I);if(I==="null_")return this._encodeNull();if(I==="int"||I==="enum")return this._encodeInt(N,T.args&&T.reverseArgs[0]);if(I==="bool")return this._encodeBool(N);if(I==="objDesc")return this._encodeStr(N,I);throw new Error("Unsupported tag: "+I)},g.prototype._isNumstr=function(I){return/^[0-9 ]*$/.test(I)},g.prototype._isPrintstr=function(I){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(I)},Ase}function Yue(){if(AFe)return i6;AFe=!0;function e(t){let r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);let n=t[i];r[n]=i}),r}return i6.tagClass={0:"universal",1:"application",2:"context",3:"private"},i6.tagClassByName=e(i6.tagClass),i6.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i6.tagByName=e(i6.tag),i6}function _Ve(){if(pFe)return pse;pFe=!0;let e=rs(),t=zue().Buffer,r=$ue(),i=Yue();function n(y){this.enc="der",this.name=y.name,this.entity=y,this.tree=new o,this.tree._init(y.body)}pse=n,n.prototype.encode=function(_,I){return this.tree._encode(_,I).join()};function o(y){r.call(this,"der",y)}e(o,r),o.prototype._encodeComposite=function(_,I,N,T){let M=g(_,I,N,this.reporter);if(T.length<128){let G=t.alloc(2);return G[0]=M,G[1]=T.length,this._createEncoderBuffer([G,T])}let D=1;for(let G=T.length;G>=256;G>>=8)D++;let P=t.alloc(2+D);P[0]=M,P[1]=128|D;for(let G=1+D,q=T.length;q>0;G--,q>>=8)P[G]=q&255;return this._createEncoderBuffer([P,T])},o.prototype._encodeStr=function(_,I){if(I==="bitstr")return this._createEncoderBuffer([_.unused|0,_.data]);if(I==="bmpstr"){let N=t.alloc(_.length*2);for(let T=0;T<_.length;T++)N.writeUInt16BE(_.charCodeAt(T),T*2);return this._createEncoderBuffer(N)}else return I==="numstr"?this._isNumstr(_)?this._createEncoderBuffer(_):this.reporter.error("Encoding of string type: numstr supports only digits and space"):I==="printstr"?this._isPrintstr(_)?this._createEncoderBuffer(_):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(I)?this._createEncoderBuffer(_):I==="objDesc"?this._createEncoderBuffer(_):this.reporter.error("Encoding of string type: "+I+" unsupported")},o.prototype._encodeObjid=function(_,I,N){if(typeof _=="string"){if(!I)return this.reporter.error("string objid given, but no values map found");if(!I.hasOwnProperty(_))return this.reporter.error("objid not found in values map");_=I[_].split(/[\s.]+/g);for(let P=0;P<_.length;P++)_[P]|=0}else if(Array.isArray(_)){_=_.slice();for(let P=0;P<_.length;P++)_[P]|=0}if(!Array.isArray(_))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(_));if(!N){if(_[1]>=40)return this.reporter.error("Second objid identifier OOB");_.splice(0,2,_[0]*40+_[1])}let T=0;for(let P=0;P<_.length;P++){let G=_[P];for(T++;G>=128;G>>=7)T++}let M=t.alloc(T),D=M.length-1;for(let P=_.length-1;P>=0;P--){let G=_[P];for(M[D--]=G&127;(G>>=7)>0;)M[D--]=128|G&127}return this._createEncoderBuffer(M)};function d(y){return y<10?"0"+y:y}o.prototype._encodeTime=function(_,I){let N,T=new Date(_);return I==="gentime"?N=[d(T.getUTCFullYear()),d(T.getUTCMonth()+1),d(T.getUTCDate()),d(T.getUTCHours()),d(T.getUTCMinutes()),d(T.getUTCSeconds()),"Z"].join(""):I==="utctime"?N=[d(T.getUTCFullYear()%100),d(T.getUTCMonth()+1),d(T.getUTCDate()),d(T.getUTCHours()),d(T.getUTCMinutes()),d(T.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+I+" time is not supported yet"),this._encodeStr(N,"octstr")},o.prototype._encodeNull=function(){return this._createEncoderBuffer("")},o.prototype._encodeInt=function(_,I){if(typeof _=="string"){if(!I)return this.reporter.error("String int or enum given, but no values map");if(!I.hasOwnProperty(_))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(_));_=I[_]}if(typeof _!="number"&&!t.isBuffer(_)){let M=_.toArray();!_.sign&&M[0]&128&&M.unshift(0),_=t.from(M)}if(t.isBuffer(_)){let M=_.length;_.length===0&&M++;let D=t.alloc(M);return _.copy(D),_.length===0&&(D[0]=0),this._createEncoderBuffer(D)}if(_<128)return this._createEncoderBuffer(_);if(_<256)return this._createEncoderBuffer([0,_]);let N=1;for(let M=_;M>=256;M>>=8)N++;let T=new Array(N);for(let M=T.length-1;M>=0;M--)T[M]=_&255,_>>=8;return T[0]&128&&T.unshift(0),this._createEncoderBuffer(t.from(T))},o.prototype._encodeBool=function(_){return this._createEncoderBuffer(_?255:0)},o.prototype._use=function(_,I){return typeof _=="function"&&(_=_(I)),_._getEncoder("der").tree},o.prototype._skipDefault=function(_,I,N){let T=this._baseState,M;if(T.default===null)return!1;let D=_.join();if(T.defaultBuffer===void 0&&(T.defaultBuffer=this._encodeValue(T.default,I,N).join()),D.length!==T.defaultBuffer.length)return!1;for(M=0;M<D.length;M++)if(D[M]!==T.defaultBuffer[M])return!1;return!0};function g(y,_,I,N){let T;if(y==="seqof"?y="seq":y==="setof"&&(y="set"),i.tagByName.hasOwnProperty(y))T=i.tagByName[y];else if(typeof y=="number"&&(y|0)===y)T=y;else return N.error("Unknown tag: "+y);return T>=31?N.error("Multi-octet tag encoding unsupported"):(_||(T|=32),T|=i.tagClassByName[I||"universal"]<<6,T)}return pse}function b5t(){if(gFe)return gse;gFe=!0;let e=rs(),t=_Ve();function r(i){t.call(this,i),this.enc="pem"}return e(r,t),gse=r,r.prototype.encode=function(n,o){let g=t.prototype.encode.call(this,n).toString("base64"),y=["-----BEGIN "+o.label+"-----"];for(let _=0;_<g.length;_+=64)y.push(g.slice(_,_+64));return y.push("-----END "+o.label+"-----"),y.join(`
|
|
`)},gse}function mVe(){if(_Fe)return _se;_Fe=!0;let e=_se;return e.der=_Ve(),e.pem=b5t(),_se}function yVe(){if(mFe)return mse;mFe=!0;let e=rs(),t=gVe(),r=ND().DecoderBuffer,i=$ue(),n=Yue();function o(_){this.enc="der",this.name=_.name,this.entity=_,this.tree=new d,this.tree._init(_.body)}mse=o,o.prototype.decode=function(I,N){return r.isDecoderBuffer(I)||(I=new r(I,N)),this.tree._decode(I,N)};function d(_){i.call(this,"der",_)}e(d,i),d.prototype._peekTag=function(I,N,T){if(I.isEmpty())return!1;let M=I.save(),D=g(I,'Failed to peek tag: "'+N+'"');return I.isError(D)?D:(I.restore(M),D.tag===N||D.tagStr===N||D.tagStr+"of"===N||T)},d.prototype._decodeTag=function(I,N,T){let M=g(I,'Failed to decode tag of "'+N+'"');if(I.isError(M))return M;let D=y(I,M.primitive,'Failed to get length of "'+N+'"');if(I.isError(D))return D;if(!T&&M.tag!==N&&M.tagStr!==N&&M.tagStr+"of"!==N)return I.error('Failed to match tag: "'+N+'"');if(M.primitive||D!==null)return I.skip(D,'Failed to match body of: "'+N+'"');let P=I.save(),G=this._skipUntilEnd(I,'Failed to skip indefinite length body: "'+this.tag+'"');return I.isError(G)?G:(D=I.offset-P.offset,I.restore(P),I.skip(D,'Failed to match body of: "'+N+'"'))},d.prototype._skipUntilEnd=function(I,N){for(;;){let T=g(I,N);if(I.isError(T))return T;let M=y(I,T.primitive,N);if(I.isError(M))return M;let D;if(T.primitive||M!==null?D=I.skip(M):D=this._skipUntilEnd(I,N),I.isError(D))return D;if(T.tagStr==="end")break}},d.prototype._decodeList=function(I,N,T,M){let D=[];for(;!I.isEmpty();){let P=this._peekTag(I,"end");if(I.isError(P))return P;let G=T.decode(I,"der",M);if(I.isError(G)&&P)break;D.push(G)}return D},d.prototype._decodeStr=function(I,N){if(N==="bitstr"){let T=I.readUInt8();return I.isError(T)?T:{unused:T,data:I.raw()}}else if(N==="bmpstr"){let T=I.raw();if(T.length%2===1)return I.error("Decoding of string type: bmpstr length mismatch");let M="";for(let D=0;D<T.length/2;D++)M+=String.fromCharCode(T.readUInt16BE(D*2));return M}else if(N==="numstr"){let T=I.raw().toString("ascii");return this._isNumstr(T)?T:I.error("Decoding of string type: numstr unsupported characters")}else{if(N==="octstr")return I.raw();if(N==="objDesc")return I.raw();if(N==="printstr"){let T=I.raw().toString("ascii");return this._isPrintstr(T)?T:I.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(N)?I.raw().toString():I.error("Decoding of string type: "+N+" unsupported")}},d.prototype._decodeObjid=function(I,N,T){let M,D=[],P=0,G=0;for(;!I.isEmpty();)G=I.readUInt8(),P<<=7,P|=G&127,(G&128)===0&&(D.push(P),P=0);G&128&&D.push(P);let q=D[0]/40|0,Y=D[0]%40;if(T?M=D:M=[q,Y].concat(D.slice(1)),N){let ne=N[M.join(" ")];ne===void 0&&(ne=N[M.join(".")]),ne!==void 0&&(M=ne)}return M},d.prototype._decodeTime=function(I,N){let T=I.raw().toString(),M,D,P,G,q,Y;if(N==="gentime")M=T.slice(0,4)|0,D=T.slice(4,6)|0,P=T.slice(6,8)|0,G=T.slice(8,10)|0,q=T.slice(10,12)|0,Y=T.slice(12,14)|0;else if(N==="utctime")M=T.slice(0,2)|0,D=T.slice(2,4)|0,P=T.slice(4,6)|0,G=T.slice(6,8)|0,q=T.slice(8,10)|0,Y=T.slice(10,12)|0,M<70?M=2e3+M:M=1900+M;else return I.error("Decoding "+N+" time is not supported yet");return Date.UTC(M,D-1,P,G,q,Y,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(I){let N=I.readUInt8();return I.isError(N)?N:N!==0},d.prototype._decodeInt=function(I,N){let T=I.raw(),M=new t(T);return N&&(M=N[M.toString(10)]||M),M},d.prototype._use=function(I,N){return typeof I=="function"&&(I=I(N)),I._getDecoder("der").tree};function g(_,I){let N=_.readUInt8(I);if(_.isError(N))return N;let T=n.tagClass[N>>6],M=(N&32)===0;if((N&31)===31){let P=N;for(N=0;(P&128)===128;){if(P=_.readUInt8(I),_.isError(P))return P;N<<=7,N|=P&127}}else N&=31;let D=n.tag[N];return{cls:T,primitive:M,tag:N,tagStr:D}}function y(_,I,N){let T=_.readUInt8(N);if(_.isError(T))return T;if(!I&&T===128)return null;if((T&128)===0)return T;let M=T&127;if(M>4)return _.error("length octect is too long");T=0;for(let D=0;D<M;D++){T<<=8;let P=_.readUInt8(N);if(_.isError(P))return P;T|=P}return T}return mse}function E5t(){if(yFe)return yse;yFe=!0;let e=rs(),t=zue().Buffer,r=yVe();function i(n){r.call(this,n),this.enc="pem"}return e(i,r),yse=i,i.prototype.decode=function(o,d){let g=o.toString().split(/[\r\n]+/g),y=d.label.toUpperCase(),_=/^-----(BEGIN|END) ([^-]+)-----$/,I=-1,N=-1;for(let D=0;D<g.length;D++){let P=g[D].match(_);if(P!==null&&P[2]===y)if(I===-1){if(P[1]!=="BEGIN")break;I=D}else{if(P[1]!=="END")break;N=D;break}}if(I===-1||N===-1)throw new Error("PEM section not found for: "+y);let T=g.slice(I+1,N).join("");T.replace(/[^a-z0-9+/=]+/gi,"");let M=t.from(T,"base64");return r.prototype.decode.call(this,M,d)},yse}function bVe(){if(bFe)return bse;bFe=!0;let e=bse;return e.der=yVe(),e.pem=E5t(),bse}function v5t(){if(EFe)return Ese;EFe=!0;let e=mVe(),t=bVe(),r=rs(),i=Ese;i.define=function(d,g){return new n(d,g)};function n(o,d){this.name=o,this.body=d,this.decoders={},this.encoders={}}return n.prototype._createNamed=function(d){let g=this.name;function y(_){this._initNamed(_,g)}return r(y,d),y.prototype._initNamed=function(I,N){d.call(this,I,N)},new y(this)},n.prototype._getDecoder=function(d){return d=d||"der",this.decoders.hasOwnProperty(d)||(this.decoders[d]=this._createNamed(t[d])),this.decoders[d]},n.prototype.decode=function(d,g,y){return this._getDecoder(g).decode(d,y)},n.prototype._getEncoder=function(d){return d=d||"der",this.encoders.hasOwnProperty(d)||(this.encoders[d]=this._createNamed(e[d])),this.encoders[d]},n.prototype.encode=function(d,g,y){return this._getEncoder(g).encode(d,y)},Ese}function R5t(){if(vFe)return vse;vFe=!0;let e=vse;return e.Reporter=Kue().Reporter,e.DecoderBuffer=ND().DecoderBuffer,e.EncoderBuffer=ND().EncoderBuffer,e.Node=$ue(),vse}function S5t(){if(RFe)return Rse;RFe=!0;let e=Rse;return e._reverse=function(r){let i={};return Object.keys(r).forEach(function(n){(n|0)==n&&(n=n|0);let o=r[n];i[o]=n}),i},e.der=Yue(),Rse}function EVe(){if(SFe)return Sse;SFe=!0;let e=Sse;return e.bignum=gVe(),e.define=v5t().define,e.base=R5t(),e.constants=S5t(),e.decoders=bVe(),e.encoders=mVe(),Sse}function I5t(){if(IFe)return Ise;IFe=!0;var e=EVe(),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),r=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),i=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),n=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())}),o=e.define("RelativeDistinguishedName",function(){this.setof(r)}),d=e.define("RDNSequence",function(){this.seqof(o)}),g=e.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),y=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),_=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),I=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(g),this.key("validity").use(y),this.key("subject").use(g),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(_).optional())}),N=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(I),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())});return Ise=N,Ise}function C5t(){if(CFe)return Fg;CFe=!0;var e=EVe();Fg.certificate=I5t();var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Fg.RSAPrivateKey=t;var r=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Fg.RSAPublicKey=r;var i=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});Fg.PublicKey=i;var n=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),o=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});Fg.PrivateKey=o;var d=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Fg.EncryptedPrivateKey=d;var g=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Fg.DSAPrivateKey=g,Fg.DSAparam=e.define("DSAparam",function(){this.int()});var y=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(_),this.key("publicKey").optional().explicit(1).bitstr())});Fg.ECPrivateKey=y;var _=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});return Fg.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),Fg}function O5t(){if(wFe)return Cse;wFe=!0;var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=Zq(),n=wue(),o=cs().Buffer;return Cse=function(d,g){var y=d.toString(),_=y.match(e),I;if(_){var T="aes"+_[1],M=o.from(_[2],"hex"),D=o.from(_[3].replace(/[\r\n]/g,""),"base64"),P=i(g,M.slice(0,8),parseInt(_[1],10)).key,G=[],q=n.createDecipheriv(T,P,M);G.push(q.update(D)),G.push(q.final()),I=o.concat(G)}else{var N=y.match(r);I=o.from(N[2].replace(/[\r\n]/g,""),"base64")}var Y=y.match(t)[1];return{tag:Y,data:I}},Cse}function dV(){if(OFe)return wse;OFe=!0;var e=C5t(),t=w5t,r=O5t(),i=wue(),n=nGe(),o=cs().Buffer;wse=d;function d(y){var _;typeof y=="object"&&!o.isBuffer(y)&&(_=y.passphrase,y=y.key),typeof y=="string"&&(y=o.from(y));var I=r(y,_),N=I.tag,T=I.data,M,D;switch(N){case"CERTIFICATE":D=e.certificate.decode(T,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(D||(D=e.PublicKey.decode(T,"der")),M=D.algorithm.algorithm.join("."),M){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(D.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return D.subjectPrivateKey=D.subjectPublicKey,{type:"ec",data:D};case"1.2.840.10040.4.1":return D.algorithm.params.pub_key=e.DSAparam.decode(D.subjectPublicKey.data,"der"),{type:"dsa",data:D.algorithm.params};default:throw new Error("unknown key id "+M)}case"ENCRYPTED PRIVATE KEY":T=e.EncryptedPrivateKey.decode(T,"der"),T=g(T,_);case"PRIVATE KEY":switch(D=e.PrivateKey.decode(T,"der"),M=D.algorithm.algorithm.join("."),M){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(D.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:D.algorithm.curve,privateKey:e.ECPrivateKey.decode(D.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return D.algorithm.params.priv_key=e.DSAparam.decode(D.subjectPrivateKey,"der"),{type:"dsa",params:D.algorithm.params};default:throw new Error("unknown key id "+M)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(T,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(T,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(T,"der")};case"EC PRIVATE KEY":return T=e.ECPrivateKey.decode(T,"der"),{curve:T.parameters.value,privateKey:T.privateKey};default:throw new Error("unknown key type "+N)}}d.signature=e.signature;function g(y,_){var I=y.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(y.algorithm.decrypt.kde.kdeparams.iters.toString(),10),T=t[y.algorithm.decrypt.cipher.algo.join(".")],M=y.algorithm.decrypt.cipher.iv,D=y.subjectPrivateKey,P=parseInt(T.split("-")[1],10)/8,G=n.pbkdf2Sync(_,I,N,P,"sha1"),q=i.createDecipheriv(T,G,M),Y=[];return Y.push(q.update(D)),Y.push(q.final()),o.concat(Y)}return wse}function N5t(){if(NFe)return nD;NFe=!0;var e=cs().Buffer,t=XHe(),r=Gue(),i=Jue().ec,n=Hue(),o=dV(),d=vVe;function g(G,q,Y,ne,ce){var le=o(q);if(le.curve){if(ne!=="ecdsa"&&ne!=="ecdsa/rsa")throw new Error("wrong private key type");return y(G,le)}else if(le.type==="dsa"){if(ne!=="dsa")throw new Error("wrong private key type");return _(G,le,Y)}else if(ne!=="rsa"&&ne!=="ecdsa/rsa")throw new Error("wrong private key type");G=e.concat([ce,G]);for(var pe=le.modulus.byteLength(),ae=[0,1];G.length+ae.length+1<pe;)ae.push(255);ae.push(0);for(var W=-1;++W<G.length;)ae.push(G[W]);var se=r(ae,le);return se}function y(G,q){var Y=d[q.curve.join(".")];if(!Y)throw new Error("unknown curve "+q.curve.join("."));var ne=new i(Y),ce=ne.keyFromPrivate(q.privateKey),le=ce.sign(G);return e.from(le.toDER())}function _(G,q,Y){for(var ne=q.params.priv_key,ce=q.params.p,le=q.params.q,pe=q.params.g,ae=new n(0),W,se=T(G,le).mod(le),O=!1,s=N(ne,le,G,Y);O===!1;)W=D(le,s,Y),ae=P(pe,W,ce,le),O=W.invm(le).imul(se.add(ne.mul(ae))).mod(le),O.cmpn(0)===0&&(O=!1,ae=new n(0));return I(ae,O)}function I(G,q){G=G.toArray(),q=q.toArray(),G[0]&128&&(G=[0].concat(G)),q[0]&128&&(q=[0].concat(q));var Y=G.length+q.length+4,ne=[48,Y,2,G.length];return ne=ne.concat(G,[2,q.length],q),e.from(ne)}function N(G,q,Y,ne){if(G=e.from(G.toArray()),G.length<q.byteLength()){var ce=e.alloc(q.byteLength()-G.length);G=e.concat([ce,G])}var le=Y.length,pe=M(Y,q),ae=e.alloc(le);ae.fill(1);var W=e.alloc(le);return W=t(ne,W).update(ae).update(e.from([0])).update(G).update(pe).digest(),ae=t(ne,W).update(ae).digest(),W=t(ne,W).update(ae).update(e.from([1])).update(G).update(pe).digest(),ae=t(ne,W).update(ae).digest(),{k:W,v:ae}}function T(G,q){var Y=new n(G),ne=(G.length<<3)-q.bitLength();return ne>0&&Y.ishrn(ne),Y}function M(G,q){G=T(G,q),G=G.mod(q);var Y=e.from(G.toArray());if(Y.length<q.byteLength()){var ne=e.alloc(q.byteLength()-Y.length);Y=e.concat([ne,Y])}return Y}function D(G,q,Y){var ne,ce;do{for(ne=e.alloc(0);ne.length*8<G.bitLength();)q.v=t(Y,q.k).update(q.v).digest(),ne=e.concat([ne,q.v]);ce=T(ne,G),q.k=t(Y,q.k).update(q.v).update(e.from([0])).digest(),q.v=t(Y,q.k).update(q.v).digest()}while(ce.cmp(G)!==-1);return ce}function P(G,q,Y,ne){return G.toRed(n.mont(Y)).redPow(q).fromRed().mod(ne)}return nD=g,nD.getKey=N,nD.makeKey=D,nD}function x5t(){if(xFe)return Ose;xFe=!0;var e=cs().Buffer,t=Hue(),r=Jue().ec,i=dV(),n=vVe;function o(_,I,N,T,M){var D=i(N);if(D.type==="ec"){if(T!=="ecdsa"&&T!=="ecdsa/rsa")throw new Error("wrong public key type");return d(_,I,D)}else if(D.type==="dsa"){if(T!=="dsa")throw new Error("wrong public key type");return g(_,I,D)}else if(T!=="rsa"&&T!=="ecdsa/rsa")throw new Error("wrong public key type");I=e.concat([M,I]);for(var P=D.modulus.byteLength(),G=[1],q=0;I.length+G.length+2<P;)G.push(255),q++;G.push(0);for(var Y=-1;++Y<I.length;)G.push(I[Y]);G=e.from(G);var ne=t.mont(D.modulus);_=new t(_).toRed(ne),_=_.redPow(new t(D.publicExponent)),_=e.from(_.fromRed().toArray());var ce=q<8?1:0;for(P=Math.min(_.length,G.length),_.length!==G.length&&(ce=1),Y=-1;++Y<P;)ce|=_[Y]^G[Y];return ce===0}function d(_,I,N){var T=n[N.data.algorithm.curve.join(".")];if(!T)throw new Error("unknown curve "+N.data.algorithm.curve.join("."));var M=new r(T),D=N.data.subjectPrivateKey.data;return M.verify(I,_,D)}function g(_,I,N){var T=N.data.p,M=N.data.q,D=N.data.g,P=N.data.pub_key,G=i.signature.decode(_,"der"),q=G.s,Y=G.r;y(q,M),y(Y,M);var ne=t.mont(T),ce=q.invm(M),le=D.toRed(ne).redPow(new t(I).mul(ce).mod(M)).fromRed().mul(P.toRed(ne).redPow(Y.mul(ce).mod(M)).fromRed()).mod(T).mod(M);return le.cmp(Y)===0}function y(_,I){if(_.cmpn(0)<=0)throw new Error("invalid sig");if(_.cmp(I)>=I)throw new Error("invalid sig")}return Ose=o,Ose}function T5t(){if(TFe)return Nse;TFe=!0;var e=cs().Buffer,t=MD(),r=OHe(),i=rs(),n=N5t(),o=x5t(),d=ZHe;Object.keys(d).forEach(function(N){d[N].id=e.from(d[N].id,"hex"),d[N.toLowerCase()]=d[N]});function g(N){r.Writable.call(this||id);var T=d[N];if(!T)throw new Error("Unknown message digest");(this||id)._hashType=T.hash,(this||id)._hash=t(T.hash),(this||id)._tag=T.id,(this||id)._signType=T.sign}i(g,r.Writable),g.prototype._write=function(T,M,D){(this||id)._hash.update(T),D()},g.prototype.update=function(T,M){return typeof T=="string"&&(T=e.from(T,M)),(this||id)._hash.update(T),this||id},g.prototype.sign=function(T,M){this.end();var D=(this||id)._hash.digest(),P=n(D,T,(this||id)._hashType,(this||id)._signType,(this||id)._tag);return M?P.toString(M):P};function y(N){r.Writable.call(this||id);var T=d[N];if(!T)throw new Error("Unknown message digest");(this||id)._hash=t(T.hash),(this||id)._tag=T.id,(this||id)._signType=T.sign}i(y,r.Writable),y.prototype._write=function(T,M,D){(this||id)._hash.update(T),D()},y.prototype.update=function(T,M){return typeof T=="string"&&(T=e.from(T,M)),(this||id)._hash.update(T),this||id},y.prototype.verify=function(T,M,D){typeof M=="string"&&(M=e.from(M,D)),this.end();var P=(this||id)._hash.digest();return o(M,P,T,(this||id)._signType,(this||id)._tag)};function _(N){return new g(N)}function I(N){return new y(N)}return Nse={Sign:_,Verify:I,createSign:_,createVerify:I},Nse}function B5t(){return BFe||(BFe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Mt).negative=0,(this||Mt).words=null,(this||Mt).length=0,(this||Mt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Mt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Mt).negative=1,s=-s),s<67108864?((this||Mt).words=[s&67108863],(this||Mt).length=1):s<4503599627370496?((this||Mt).words=[s&67108863,s/67108864&67108863],(this||Mt).length=2):(r(s<9007199254740992),(this||Mt).words=[s&67108863,s/67108864&67108863,1],(this||Mt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Mt).words=[0],(this||Mt).length=1,this||Mt;(this||Mt).length=Math.ceil(s.length/3),(this||Mt).words=new Array((this||Mt).length);for(var m=0;m<(this||Mt).length;m++)(this||Mt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Mt).words[E]|=w<<x&67108863,(this||Mt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Mt).words[E]|=w<<x&67108863,(this||Mt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Mt).length=Math.ceil((s.length-l)/6),(this||Mt).words=new Array((this||Mt).length);for(var m=0;m<(this||Mt).length;m++)(this||Mt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Mt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Mt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Mt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Mt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Mt).words=[0],(this||Mt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Mt).words[0]+u<67108864?(this||Mt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Mt).words[0]+u<67108864?(this||Mt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Mt).length);for(var l=0;l<(this||Mt).length;l++)s.words[l]=(this||Mt).words[l];s.length=(this||Mt).length,s.negative=(this||Mt).negative,s.red=(this||Mt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Mt).length<s;)(this||Mt).words[(this||Mt).length++]=0;return this||Mt},n.prototype.strip=function(){for(;(this||Mt).length>1&&(this||Mt).words[(this||Mt).length-1]===0;)(this||Mt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Mt).length===1&&(this||Mt).words[0]===0&&((this||Mt).negative=0),this||Mt},n.prototype.inspect=function(){return((this||Mt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Mt).length;w++){var x=(this||Mt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Mt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Mt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Mt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Mt).words[0];return(this||Mt).length===2?s+=(this||Mt).words[1]*67108864:(this||Mt).length===3&&(this||Mt).words[2]===1?s+=4503599627370496+(this||Mt).words[1]*67108864:(this||Mt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Mt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Mt).words[(this||Mt).length-1],l=this._countBits(s);return((this||Mt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Mt).length;l++){var A=this._zeroBits((this||Mt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Mt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Mt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Mt).negative^=1),this||Mt},n.prototype.iuor=function(s){for(;(this||Mt).length<s.length;)(this||Mt).words[(this||Mt).length++]=0;for(var l=0;l<s.length;l++)(this||Mt).words[l]=(this||Mt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Mt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Mt).length>s.length?this.clone().ior(s):s.clone().ior(this||Mt)},n.prototype.uor=function(s){return(this||Mt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Mt)},n.prototype.iuand=function(s){var l;(this||Mt).length>s.length?l=s:l=this||Mt;for(var A=0;A<l.length;A++)(this||Mt).words[A]=(this||Mt).words[A]&s.words[A];return(this||Mt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Mt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Mt).length>s.length?this.clone().iand(s):s.clone().iand(this||Mt)},n.prototype.uand=function(s){return(this||Mt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Mt)},n.prototype.iuxor=function(s){var l,A;(this||Mt).length>s.length?(l=this||Mt,A=s):(l=s,A=this||Mt);for(var m=0;m<A.length;m++)(this||Mt).words[m]=l.words[m]^A.words[m];if((this||Mt)!==l)for(;m<l.length;m++)(this||Mt).words[m]=l.words[m];return(this||Mt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Mt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Mt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Mt)},n.prototype.uxor=function(s){return(this||Mt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Mt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Mt).words[m]=~(this||Mt).words[m]&67108863;return A>0&&((this||Mt).words[m]=~(this||Mt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Mt).words[A]=(this||Mt).words[A]|1<<m:(this||Mt).words[A]=(this||Mt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Mt).negative!==0&&s.negative===0)return(this||Mt).negative=0,l=this.isub(s),(this||Mt).negative^=1,this._normSign();if((this||Mt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Mt).length>s.length?(A=this||Mt,m=s):(A=s,m=this||Mt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Mt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Mt).words[w]=l&67108863,E=l>>>26;if((this||Mt).length=A.length,E!==0)(this||Mt).words[(this||Mt).length]=E,(this||Mt).length++;else if(A!==(this||Mt))for(;w<A.length;w++)(this||Mt).words[w]=A.words[w];return this||Mt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Mt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Mt).negative!==0?((this||Mt).negative=0,l=s.sub(this||Mt),(this||Mt).negative=1,l):(this||Mt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Mt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Mt).negative!==0)return(this||Mt).negative=0,this.iadd(s),(this||Mt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Mt).negative=0,(this||Mt).length=1,(this||Mt).words[0]=0,this||Mt;var m,E;A>0?(m=this||Mt,E=s):(m=s,E=this||Mt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Mt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Mt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Mt))for(;x<m.length;x++)(this||Mt).words[x]=m.words[x];return(this||Mt).length=Math.max((this||Mt).length,x),m!==(this||Mt)&&((this||Mt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Mt).length+s.length;return(this||Mt).length===10&&s.length===10?A=D(this||Mt,s,l):m<63?A=M(this||Mt,s,l):m<1024?A=P(this||Mt,s,l):A=G(this||Mt,s,l),A};function q(O,s){(this||Mt).x=O,(this||Mt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Mt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Mt).length+s.length),G(this||Mt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Mt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Mt).length;A++){var m=((this||Mt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Mt).words[A]=E&67108863}return l!==0&&((this||Mt).words[A]=l,(this||Mt).length++),this||Mt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Mt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Mt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Mt).length;E++){var x=(this||Mt).words[E]&m,R=((this||Mt).words[E]|0)-x<<l;(this||Mt).words[E]=R|w,w=x>>>26-l}w&&((this||Mt).words[E]=w,(this||Mt).length++)}if(A!==0){for(E=(this||Mt).length-1;E>=0;E--)(this||Mt).words[E+A]=(this||Mt).words[E];for(E=0;E<A;E++)(this||Mt).words[E]=0;(this||Mt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Mt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Mt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Mt).words[u];R.length=w}if(w!==0)if((this||Mt).length>w)for((this||Mt).length-=w,u=0;u<(this||Mt).length;u++)(this||Mt).words[u]=(this||Mt).words[u+w];else(this||Mt).words[0]=0,(this||Mt).length=1;var C=0;for(u=(this||Mt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Mt).words[u]|0;(this||Mt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Mt).length===0&&((this||Mt).words[0]=0,(this||Mt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Mt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Mt).length<=A)return!1;var E=(this||Mt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Mt).negative===0,"imaskn works only with positive numbers"),(this||Mt).length<=A)return this||Mt;if(l!==0&&A++,(this||Mt).length=Math.min(A,(this||Mt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Mt).words[(this||Mt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Mt).negative!==0?(this||Mt).length===1&&((this||Mt).words[0]|0)<s?((this||Mt).words[0]=s-((this||Mt).words[0]|0),(this||Mt).negative=0,this||Mt):((this||Mt).negative=0,this.isubn(s),(this||Mt).negative=1,this||Mt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Mt).words[0]+=s;for(var l=0;l<(this||Mt).length&&(this||Mt).words[l]>=67108864;l++)(this||Mt).words[l]-=67108864,l===(this||Mt).length-1?(this||Mt).words[l+1]=1:(this||Mt).words[l+1]++;return(this||Mt).length=Math.max((this||Mt).length,l+1),this||Mt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Mt).negative!==0)return(this||Mt).negative=0,this.iaddn(s),(this||Mt).negative=1,this||Mt;if((this||Mt).words[0]-=s,(this||Mt).length===1&&(this||Mt).words[0]<0)(this||Mt).words[0]=-(this||Mt).words[0],(this||Mt).negative=1;else for(var l=0;l<(this||Mt).length&&(this||Mt).words[l]<0;l++)(this||Mt).words[l]+=67108864,(this||Mt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Mt).negative=0,this||Mt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Mt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Mt).words[E+A]=w&67108863}for(;E<(this||Mt).length-A;E++)w=((this||Mt).words[E+A]|0)+x,x=w>>26,(this||Mt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Mt).length;E++)w=-((this||Mt).words[E]|0)+x,x=w>>26,(this||Mt).words[E]=w&67108863;return(this||Mt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Mt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Mt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Mt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Mt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Mt).length||this.cmp(s)<0?{div:new n(0),mod:this||Mt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Mt).length-1;m>=0;m--)A=(l*A+((this||Mt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Mt).length-1;A>=0;A--){var m=((this||Mt).words[A]|0)+l*67108864;(this||Mt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Mt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Mt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Mt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Mt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Mt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Mt).length<=A)return this._expand(A+1),(this||Mt).words[A]|=m,this||Mt;for(var E=m,w=A;E!==0&&w<(this||Mt).length;w++){var x=(this||Mt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Mt).words[w]=x}return E!==0&&((this||Mt).words[w]=E,(this||Mt).length++),this||Mt},n.prototype.isZero=function(){return(this||Mt).length===1&&(this||Mt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Mt).negative!==0&&!l)return-1;if((this||Mt).negative===0&&l)return 1;this.strip();var A;if((this||Mt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Mt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Mt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Mt).negative!==0&&s.negative===0)return-1;if((this||Mt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Mt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Mt).length>s.length)return 1;if((this||Mt).length<s.length)return-1;for(var l=0,A=(this||Mt).length-1;A>=0;A--){var m=(this||Mt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Mt).red,"Already a number in reduction context"),r((this||Mt).negative===0,"red works only with positives"),s.convertTo(this||Mt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Mt).red,"fromRed works only with numbers in reduction context"),(this||Mt).red.convertFrom(this||Mt)},n.prototype._forceRed=function(s){return(this||Mt).red=s,this||Mt},n.prototype.forceRed=function(s){return r(!(this||Mt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Mt).red,"redAdd works only with red numbers"),(this||Mt).red.add(this||Mt,s)},n.prototype.redIAdd=function(s){return r((this||Mt).red,"redIAdd works only with red numbers"),(this||Mt).red.iadd(this||Mt,s)},n.prototype.redSub=function(s){return r((this||Mt).red,"redSub works only with red numbers"),(this||Mt).red.sub(this||Mt,s)},n.prototype.redISub=function(s){return r((this||Mt).red,"redISub works only with red numbers"),(this||Mt).red.isub(this||Mt,s)},n.prototype.redShl=function(s){return r((this||Mt).red,"redShl works only with red numbers"),(this||Mt).red.shl(this||Mt,s)},n.prototype.redMul=function(s){return r((this||Mt).red,"redMul works only with red numbers"),(this||Mt).red._verify2(this||Mt,s),(this||Mt).red.mul(this||Mt,s)},n.prototype.redIMul=function(s){return r((this||Mt).red,"redMul works only with red numbers"),(this||Mt).red._verify2(this||Mt,s),(this||Mt).red.imul(this||Mt,s)},n.prototype.redSqr=function(){return r((this||Mt).red,"redSqr works only with red numbers"),(this||Mt).red._verify1(this||Mt),(this||Mt).red.sqr(this||Mt)},n.prototype.redISqr=function(){return r((this||Mt).red,"redISqr works only with red numbers"),(this||Mt).red._verify1(this||Mt),(this||Mt).red.isqr(this||Mt)},n.prototype.redSqrt=function(){return r((this||Mt).red,"redSqrt works only with red numbers"),(this||Mt).red._verify1(this||Mt),(this||Mt).red.sqrt(this||Mt)},n.prototype.redInvm=function(){return r((this||Mt).red,"redInvm works only with red numbers"),(this||Mt).red._verify1(this||Mt),(this||Mt).red.invm(this||Mt)},n.prototype.redNeg=function(){return r((this||Mt).red,"redNeg works only with red numbers"),(this||Mt).red._verify1(this||Mt),(this||Mt).red.neg(this||Mt)},n.prototype.redPow=function(s){return r((this||Mt).red&&!s.red,"redPow(normalNum)"),(this||Mt).red._verify1(this||Mt),(this||Mt).red.pow(this||Mt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Mt).name=O,(this||Mt).p=new n(s,16),(this||Mt).n=(this||Mt).p.bitLength(),(this||Mt).k=new n(1).iushln((this||Mt).n).isub((this||Mt).p),(this||Mt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Mt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Mt).tmp),l=this.imulK(l),l=l.iadd((this||Mt).tmp),A=l.bitLength();while(A>(this||Mt).n);var m=A<(this||Mt).n?-1:l.ucmp((this||Mt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Mt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Mt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Mt).k)};function ce(){ne.call(this||Mt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Mt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Mt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Mt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Mt).m=s.p,(this||Mt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Mt).m=O,(this||Mt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Mt).prime?(this||Mt).prime.ireduce(s)._forceRed(this||Mt):s.umod((this||Mt).m)._forceRed(this||Mt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Mt).m.sub(s)._forceRed(this||Mt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Mt).m)>=0&&A.isub((this||Mt).m),A._forceRed(this||Mt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Mt).m)>=0&&A.isub((this||Mt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Mt).m),A._forceRed(this||Mt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Mt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Mt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Mt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Mt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Mt),x=w.redNeg(),R=(this||Mt).m.subn(1).iushrn(1),u=(this||Mt).m.bitLength();for(u=new n(2*u*u).toRed(this||Mt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Mt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Mt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Mt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Mt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Mt,O),(this||Mt).shift=(this||Mt).m.bitLength(),(this||Mt).shift%26!==0&&((this||Mt).shift+=26-(this||Mt).shift%26),(this||Mt).r=new n(1).iushln((this||Mt).shift),(this||Mt).r2=this.imod((this||Mt).r.sqr()),(this||Mt).rinv=(this||Mt).r._invmp((this||Mt).m),(this||Mt).minv=(this||Mt).rinv.mul((this||Mt).r).isubn(1).div((this||Mt).m),(this||Mt).minv=(this||Mt).minv.umod((this||Mt).r),(this||Mt).minv=(this||Mt).r.sub((this||Mt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Mt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Mt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Mt).shift).mul((this||Mt).minv).imaskn((this||Mt).shift).mul((this||Mt).m),E=A.isub(m).iushrn((this||Mt).shift),w=E;return E.cmp((this||Mt).m)>=0?w=E.isub((this||Mt).m):E.cmpn(0)<0&&(w=E.iadd((this||Mt).m)),w._forceRed(this||Mt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Mt);var A=s.mul(l),m=A.maskn((this||Mt).shift).mul((this||Mt).minv).imaskn((this||Mt).shift).mul((this||Mt).m),E=A.isub(m).iushrn((this||Mt).shift),w=E;return E.cmp((this||Mt).m)>=0?w=E.isub((this||Mt).m):E.cmpn(0)<0&&(w=E.iadd((this||Mt).m)),w._forceRed(this||Mt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Mt).m).mul((this||Mt).r2));return l._forceRed(this||Mt)}})(xse,RVe)),xse.exports}function M5t(){if(MFe)return Tse;MFe=!0;var e=Vo.Buffer,t=Jue(),r=B5t();Tse=function(g){return new n(g)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1;function n(d){(this||Tf).curveType=i[d],(this||Tf).curveType||((this||Tf).curveType={name:d}),(this||Tf).curve=new t.ec((this||Tf).curveType.name),(this||Tf).keys=void 0}n.prototype.generateKeys=function(d,g){return(this||Tf).keys=(this||Tf).curve.genKeyPair(),this.getPublicKey(d,g)},n.prototype.computeSecret=function(d,g,y){g=g||"utf8",e.isBuffer(d)||(d=new e(d,g));var _=(this||Tf).curve.keyFromPublic(d).getPublic(),I=_.mul((this||Tf).keys.getPrivate()).getX();return o(I,y,(this||Tf).curveType.byteLength)},n.prototype.getPublicKey=function(d,g){var y=(this||Tf).keys.getPublic(g==="compressed",!0);return g==="hybrid"&&(y[y.length-1]%2?y[0]=7:y[0]=6),o(y,d)},n.prototype.getPrivateKey=function(d){return o((this||Tf).keys.getPrivate(),d)},n.prototype.setPublicKey=function(d,g){return g=g||"utf8",e.isBuffer(d)||(d=new e(d,g)),(this||Tf).keys._importPublic(d),this||Tf},n.prototype.setPrivateKey=function(d,g){g=g||"utf8",e.isBuffer(d)||(d=new e(d,g));var y=new r(d);return y=y.toString(16),(this||Tf).keys=(this||Tf).curve.genKeyPair(),(this||Tf).keys._importPrivate(y),this||Tf};function o(d,g,y){Array.isArray(d)||(d=d.toArray());var _=new e(d);if(y&&_.length<y){var I=new e(y-_.length);I.fill(0),_=e.concat([I,_])}return g?_.toString(g):_}return Tse}function SVe(){if(DFe)return Bse;DFe=!0;var e=MD(),t=cs().Buffer;Bse=function(i,n){for(var o=t.alloc(0),d=0,g;o.length<n;)g=r(d++),o=t.concat([o,e("sha1").update(i).update(g).digest()]);return o.slice(0,n)};function r(i){var n=t.allocUnsafe(4);return n.writeUInt32BE(i,0),n}return Bse}function IVe(){return kFe||(kFe=!0,Mse=function(t,r){for(var i=t.length,n=-1;++n<i;)t[n]^=r[n];return t}),Mse}function Wue(){return PFe||(PFe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Dt).negative=0,(this||Dt).words=null,(this||Dt).length=0,(this||Dt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Vo.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Dt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Dt).negative=1,s=-s),s<67108864?((this||Dt).words=[s&67108863],(this||Dt).length=1):s<4503599627370496?((this||Dt).words=[s&67108863,s/67108864&67108863],(this||Dt).length=2):(r(s<9007199254740992),(this||Dt).words=[s&67108863,s/67108864&67108863,1],(this||Dt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Dt).words=[0],(this||Dt).length=1,this||Dt;(this||Dt).length=Math.ceil(s.length/3),(this||Dt).words=new Array((this||Dt).length);for(var m=0;m<(this||Dt).length;m++)(this||Dt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Dt).words[E]|=w<<x&67108863,(this||Dt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Dt).words[E]|=w<<x&67108863,(this||Dt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Dt).length=Math.ceil((s.length-l)/6),(this||Dt).words=new Array((this||Dt).length);for(var m=0;m<(this||Dt).length;m++)(this||Dt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Dt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Dt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Dt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Dt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Dt).words=[0],(this||Dt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Dt).words[0]+u<67108864?(this||Dt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Dt).words[0]+u<67108864?(this||Dt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Dt).length);for(var l=0;l<(this||Dt).length;l++)s.words[l]=(this||Dt).words[l];s.length=(this||Dt).length,s.negative=(this||Dt).negative,s.red=(this||Dt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Dt).length<s;)(this||Dt).words[(this||Dt).length++]=0;return this||Dt},n.prototype.strip=function(){for(;(this||Dt).length>1&&(this||Dt).words[(this||Dt).length-1]===0;)(this||Dt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Dt).length===1&&(this||Dt).words[0]===0&&((this||Dt).negative=0),this||Dt},n.prototype.inspect=function(){return((this||Dt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Dt).length;w++){var x=(this||Dt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Dt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Dt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Dt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Dt).words[0];return(this||Dt).length===2?s+=(this||Dt).words[1]*67108864:(this||Dt).length===3&&(this||Dt).words[2]===1?s+=4503599627370496+(this||Dt).words[1]*67108864:(this||Dt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Dt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Dt).words[(this||Dt).length-1],l=this._countBits(s);return((this||Dt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Dt).length;l++){var A=this._zeroBits((this||Dt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Dt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Dt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Dt).negative^=1),this||Dt},n.prototype.iuor=function(s){for(;(this||Dt).length<s.length;)(this||Dt).words[(this||Dt).length++]=0;for(var l=0;l<s.length;l++)(this||Dt).words[l]=(this||Dt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Dt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Dt).length>s.length?this.clone().ior(s):s.clone().ior(this||Dt)},n.prototype.uor=function(s){return(this||Dt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Dt)},n.prototype.iuand=function(s){var l;(this||Dt).length>s.length?l=s:l=this||Dt;for(var A=0;A<l.length;A++)(this||Dt).words[A]=(this||Dt).words[A]&s.words[A];return(this||Dt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Dt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Dt).length>s.length?this.clone().iand(s):s.clone().iand(this||Dt)},n.prototype.uand=function(s){return(this||Dt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Dt)},n.prototype.iuxor=function(s){var l,A;(this||Dt).length>s.length?(l=this||Dt,A=s):(l=s,A=this||Dt);for(var m=0;m<A.length;m++)(this||Dt).words[m]=l.words[m]^A.words[m];if((this||Dt)!==l)for(;m<l.length;m++)(this||Dt).words[m]=l.words[m];return(this||Dt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Dt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Dt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Dt)},n.prototype.uxor=function(s){return(this||Dt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Dt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Dt).words[m]=~(this||Dt).words[m]&67108863;return A>0&&((this||Dt).words[m]=~(this||Dt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Dt).words[A]=(this||Dt).words[A]|1<<m:(this||Dt).words[A]=(this||Dt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Dt).negative!==0&&s.negative===0)return(this||Dt).negative=0,l=this.isub(s),(this||Dt).negative^=1,this._normSign();if((this||Dt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Dt).length>s.length?(A=this||Dt,m=s):(A=s,m=this||Dt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Dt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Dt).words[w]=l&67108863,E=l>>>26;if((this||Dt).length=A.length,E!==0)(this||Dt).words[(this||Dt).length]=E,(this||Dt).length++;else if(A!==(this||Dt))for(;w<A.length;w++)(this||Dt).words[w]=A.words[w];return this||Dt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Dt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Dt).negative!==0?((this||Dt).negative=0,l=s.sub(this||Dt),(this||Dt).negative=1,l):(this||Dt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Dt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Dt).negative!==0)return(this||Dt).negative=0,this.iadd(s),(this||Dt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Dt).negative=0,(this||Dt).length=1,(this||Dt).words[0]=0,this||Dt;var m,E;A>0?(m=this||Dt,E=s):(m=s,E=this||Dt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Dt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Dt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Dt))for(;x<m.length;x++)(this||Dt).words[x]=m.words[x];return(this||Dt).length=Math.max((this||Dt).length,x),m!==(this||Dt)&&((this||Dt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Dt).length+s.length;return(this||Dt).length===10&&s.length===10?A=D(this||Dt,s,l):m<63?A=M(this||Dt,s,l):m<1024?A=P(this||Dt,s,l):A=G(this||Dt,s,l),A};function q(O,s){(this||Dt).x=O,(this||Dt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Dt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Dt).length+s.length),G(this||Dt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Dt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Dt).length;A++){var m=((this||Dt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Dt).words[A]=E&67108863}return l!==0&&((this||Dt).words[A]=l,(this||Dt).length++),this||Dt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Dt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Dt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Dt).length;E++){var x=(this||Dt).words[E]&m,R=((this||Dt).words[E]|0)-x<<l;(this||Dt).words[E]=R|w,w=x>>>26-l}w&&((this||Dt).words[E]=w,(this||Dt).length++)}if(A!==0){for(E=(this||Dt).length-1;E>=0;E--)(this||Dt).words[E+A]=(this||Dt).words[E];for(E=0;E<A;E++)(this||Dt).words[E]=0;(this||Dt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Dt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Dt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Dt).words[u];R.length=w}if(w!==0)if((this||Dt).length>w)for((this||Dt).length-=w,u=0;u<(this||Dt).length;u++)(this||Dt).words[u]=(this||Dt).words[u+w];else(this||Dt).words[0]=0,(this||Dt).length=1;var C=0;for(u=(this||Dt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Dt).words[u]|0;(this||Dt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Dt).length===0&&((this||Dt).words[0]=0,(this||Dt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Dt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Dt).length<=A)return!1;var E=(this||Dt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Dt).negative===0,"imaskn works only with positive numbers"),(this||Dt).length<=A)return this||Dt;if(l!==0&&A++,(this||Dt).length=Math.min(A,(this||Dt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Dt).words[(this||Dt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Dt).negative!==0?(this||Dt).length===1&&((this||Dt).words[0]|0)<s?((this||Dt).words[0]=s-((this||Dt).words[0]|0),(this||Dt).negative=0,this||Dt):((this||Dt).negative=0,this.isubn(s),(this||Dt).negative=1,this||Dt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Dt).words[0]+=s;for(var l=0;l<(this||Dt).length&&(this||Dt).words[l]>=67108864;l++)(this||Dt).words[l]-=67108864,l===(this||Dt).length-1?(this||Dt).words[l+1]=1:(this||Dt).words[l+1]++;return(this||Dt).length=Math.max((this||Dt).length,l+1),this||Dt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Dt).negative!==0)return(this||Dt).negative=0,this.iaddn(s),(this||Dt).negative=1,this||Dt;if((this||Dt).words[0]-=s,(this||Dt).length===1&&(this||Dt).words[0]<0)(this||Dt).words[0]=-(this||Dt).words[0],(this||Dt).negative=1;else for(var l=0;l<(this||Dt).length&&(this||Dt).words[l]<0;l++)(this||Dt).words[l]+=67108864,(this||Dt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Dt).negative=0,this||Dt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Dt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Dt).words[E+A]=w&67108863}for(;E<(this||Dt).length-A;E++)w=((this||Dt).words[E+A]|0)+x,x=w>>26,(this||Dt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Dt).length;E++)w=-((this||Dt).words[E]|0)+x,x=w>>26,(this||Dt).words[E]=w&67108863;return(this||Dt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Dt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Dt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Dt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Dt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Dt).length||this.cmp(s)<0?{div:new n(0),mod:this||Dt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Dt).length-1;m>=0;m--)A=(l*A+((this||Dt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Dt).length-1;A>=0;A--){var m=((this||Dt).words[A]|0)+l*67108864;(this||Dt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Dt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Dt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Dt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Dt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Dt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Dt).length<=A)return this._expand(A+1),(this||Dt).words[A]|=m,this||Dt;for(var E=m,w=A;E!==0&&w<(this||Dt).length;w++){var x=(this||Dt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Dt).words[w]=x}return E!==0&&((this||Dt).words[w]=E,(this||Dt).length++),this||Dt},n.prototype.isZero=function(){return(this||Dt).length===1&&(this||Dt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Dt).negative!==0&&!l)return-1;if((this||Dt).negative===0&&l)return 1;this.strip();var A;if((this||Dt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Dt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Dt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Dt).negative!==0&&s.negative===0)return-1;if((this||Dt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Dt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Dt).length>s.length)return 1;if((this||Dt).length<s.length)return-1;for(var l=0,A=(this||Dt).length-1;A>=0;A--){var m=(this||Dt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Dt).red,"Already a number in reduction context"),r((this||Dt).negative===0,"red works only with positives"),s.convertTo(this||Dt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Dt).red,"fromRed works only with numbers in reduction context"),(this||Dt).red.convertFrom(this||Dt)},n.prototype._forceRed=function(s){return(this||Dt).red=s,this||Dt},n.prototype.forceRed=function(s){return r(!(this||Dt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Dt).red,"redAdd works only with red numbers"),(this||Dt).red.add(this||Dt,s)},n.prototype.redIAdd=function(s){return r((this||Dt).red,"redIAdd works only with red numbers"),(this||Dt).red.iadd(this||Dt,s)},n.prototype.redSub=function(s){return r((this||Dt).red,"redSub works only with red numbers"),(this||Dt).red.sub(this||Dt,s)},n.prototype.redISub=function(s){return r((this||Dt).red,"redISub works only with red numbers"),(this||Dt).red.isub(this||Dt,s)},n.prototype.redShl=function(s){return r((this||Dt).red,"redShl works only with red numbers"),(this||Dt).red.shl(this||Dt,s)},n.prototype.redMul=function(s){return r((this||Dt).red,"redMul works only with red numbers"),(this||Dt).red._verify2(this||Dt,s),(this||Dt).red.mul(this||Dt,s)},n.prototype.redIMul=function(s){return r((this||Dt).red,"redMul works only with red numbers"),(this||Dt).red._verify2(this||Dt,s),(this||Dt).red.imul(this||Dt,s)},n.prototype.redSqr=function(){return r((this||Dt).red,"redSqr works only with red numbers"),(this||Dt).red._verify1(this||Dt),(this||Dt).red.sqr(this||Dt)},n.prototype.redISqr=function(){return r((this||Dt).red,"redISqr works only with red numbers"),(this||Dt).red._verify1(this||Dt),(this||Dt).red.isqr(this||Dt)},n.prototype.redSqrt=function(){return r((this||Dt).red,"redSqrt works only with red numbers"),(this||Dt).red._verify1(this||Dt),(this||Dt).red.sqrt(this||Dt)},n.prototype.redInvm=function(){return r((this||Dt).red,"redInvm works only with red numbers"),(this||Dt).red._verify1(this||Dt),(this||Dt).red.invm(this||Dt)},n.prototype.redNeg=function(){return r((this||Dt).red,"redNeg works only with red numbers"),(this||Dt).red._verify1(this||Dt),(this||Dt).red.neg(this||Dt)},n.prototype.redPow=function(s){return r((this||Dt).red&&!s.red,"redPow(normalNum)"),(this||Dt).red._verify1(this||Dt),(this||Dt).red.pow(this||Dt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Dt).name=O,(this||Dt).p=new n(s,16),(this||Dt).n=(this||Dt).p.bitLength(),(this||Dt).k=new n(1).iushln((this||Dt).n).isub((this||Dt).p),(this||Dt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Dt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Dt).tmp),l=this.imulK(l),l=l.iadd((this||Dt).tmp),A=l.bitLength();while(A>(this||Dt).n);var m=A<(this||Dt).n?-1:l.ucmp((this||Dt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Dt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Dt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Dt).k)};function ce(){ne.call(this||Dt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Dt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Dt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Dt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Dt).m=s.p,(this||Dt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Dt).m=O,(this||Dt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Dt).prime?(this||Dt).prime.ireduce(s)._forceRed(this||Dt):s.umod((this||Dt).m)._forceRed(this||Dt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Dt).m.sub(s)._forceRed(this||Dt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Dt).m)>=0&&A.isub((this||Dt).m),A._forceRed(this||Dt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Dt).m)>=0&&A.isub((this||Dt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Dt).m),A._forceRed(this||Dt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Dt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Dt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Dt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Dt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Dt),x=w.redNeg(),R=(this||Dt).m.subn(1).iushrn(1),u=(this||Dt).m.bitLength();for(u=new n(2*u*u).toRed(this||Dt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Dt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Dt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Dt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Dt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Dt,O),(this||Dt).shift=(this||Dt).m.bitLength(),(this||Dt).shift%26!==0&&((this||Dt).shift+=26-(this||Dt).shift%26),(this||Dt).r=new n(1).iushln((this||Dt).shift),(this||Dt).r2=this.imod((this||Dt).r.sqr()),(this||Dt).rinv=(this||Dt).r._invmp((this||Dt).m),(this||Dt).minv=(this||Dt).rinv.mul((this||Dt).r).isubn(1).div((this||Dt).m),(this||Dt).minv=(this||Dt).minv.umod((this||Dt).r),(this||Dt).minv=(this||Dt).r.sub((this||Dt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Dt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Dt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Dt).shift).mul((this||Dt).minv).imaskn((this||Dt).shift).mul((this||Dt).m),E=A.isub(m).iushrn((this||Dt).shift),w=E;return E.cmp((this||Dt).m)>=0?w=E.isub((this||Dt).m):E.cmpn(0)<0&&(w=E.iadd((this||Dt).m)),w._forceRed(this||Dt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Dt);var A=s.mul(l),m=A.maskn((this||Dt).shift).mul((this||Dt).minv).imaskn((this||Dt).shift).mul((this||Dt).m),E=A.isub(m).iushrn((this||Dt).shift),w=E;return E.cmp((this||Dt).m)>=0?w=E.isub((this||Dt).m):E.cmpn(0)<0&&(w=E.iadd((this||Dt).m)),w._forceRed(this||Dt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Dt).m).mul((this||Dt).r2));return l._forceRed(this||Dt)}})(Dse,CVe)),Dse.exports}function wVe(){if(LFe)return kse;LFe=!0;var e=Wue(),t=cs().Buffer;function r(i,n){return t.from(i.toRed(e.mont(n.modulus)).redPow(new e(n.publicExponent)).fromRed().toArray())}return kse=r,kse}function D5t(){if(UFe)return Pse;UFe=!0;var e=dV(),t=DO(),r=MD(),i=SVe(),n=IVe(),o=Wue(),d=wVe(),g=Gue(),y=cs().Buffer;Pse=function(M,D,P){var G;M.padding?G=M.padding:P?G=1:G=4;var q=e(M),Y;if(G===4)Y=_(q,D);else if(G===1)Y=I(q,D,P);else if(G===3){if(Y=new o(D),Y.cmp(q.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return P?g(Y,q):d(Y,q)};function _(T,M){var D=T.modulus.byteLength(),P=M.length,G=r("sha1").update(y.alloc(0)).digest(),q=G.length,Y=2*q;if(P>D-Y-2)throw new Error("message too long");var ne=y.alloc(D-P-Y-2),ce=D-q-1,le=t(q),pe=n(y.concat([G,ne,y.alloc(1,1),M],ce),i(le,ce)),ae=n(le,i(pe,q));return new o(y.concat([y.alloc(1),ae,pe],D))}function I(T,M,D){var P=M.length,G=T.modulus.byteLength();if(P>G-11)throw new Error("message too long");var q;return D?q=y.alloc(G-P-3,255):q=N(G-P-3),new o(y.concat([y.from([0,D?1:2]),q,y.alloc(1),M],G))}function N(T){for(var M=y.allocUnsafe(T),D=0,P=t(T*2),G=0,q;D<T;)G===P.length&&(P=t(T*2),G=0),q=P[G++],q&&(M[D++]=q);return M}return Pse}function k5t(){if(FFe)return Lse;FFe=!0;var e=dV(),t=SVe(),r=IVe(),i=Wue(),n=Gue(),o=MD(),d=wVe(),g=cs().Buffer;Lse=function(T,M,D){var P;T.padding?P=T.padding:D?P=1:P=4;var G=e(T),q=G.modulus.byteLength();if(M.length>q||new i(M).cmp(G.modulus)>=0)throw new Error("decryption error");var Y;D?Y=d(new i(M),G):Y=n(M,G);var ne=g.alloc(q-Y.length);if(Y=g.concat([ne,Y],q),P===4)return y(G,Y);if(P===1)return _(G,Y,D);if(P===3)return Y;throw new Error("unknown padding")};function y(N,T){var M=N.modulus.byteLength(),D=o("sha1").update(g.alloc(0)).digest(),P=D.length;if(T[0]!==0)throw new Error("decryption error");var G=T.slice(1,P+1),q=T.slice(P+1),Y=r(G,t(q,P)),ne=r(q,t(Y,M-P-1));if(I(D,ne.slice(0,P)))throw new Error("decryption error");for(var ce=P;ne[ce]===0;)ce++;if(ne[ce++]!==1)throw new Error("decryption error");return ne.slice(ce)}function _(N,T,M){for(var D=T.slice(0,2),P=2,G=0;T[P++]!==0;)if(P>=T.length){G++;break}var q=T.slice(2,P-1);if((D.toString("hex")!=="0002"&&!M||D.toString("hex")!=="0001"&&M)&&G++,q.length<8&&G++,G)throw new Error("decryption error");return T.slice(P)}function I(N,T){N=g.from(N),T=g.from(T);var M=0,D=N.length;N.length!==T.length&&(M++,D=Math.min(N.length,T.length));for(var P=-1;++P<D;)M+=N[P]^T[P];return M}return Lse}function P5t(){return QFe||(QFe=!0,o6.publicEncrypt=D5t(),o6.privateDecrypt=k5t(),o6.privateEncrypt=function(t,r){return o6.publicEncrypt(t,r,!0)},o6.publicDecrypt=function(t,r){return o6.privateDecrypt(t,r,!0)}),o6}function L5t(){if(HFe)return _O;HFe=!0;var e=Mo;function t(){throw new Error(`secure random number generation not supported by this browser
|
|
use chrome, FireFox or Internet Explorer 11`)}var r=cs(),i=DO(),n=r.Buffer,o=r.kMaxLength,d=cq.crypto||cq.msCrypto,g=Math.pow(2,32)-1;function y(M,D){if(typeof M!="number"||M!==M)throw new TypeError("offset must be a number");if(M>g||M<0)throw new TypeError("offset must be a uint32");if(M>o||M>D)throw new RangeError("offset out of range")}function _(M,D,P){if(typeof M!="number"||M!==M)throw new TypeError("size must be a number");if(M>g||M<0)throw new TypeError("size must be a uint32");if(M+D>P||M>o)throw new RangeError("buffer too small")}d&&d.getRandomValues||!e.browser?(_O.randomFill=I,_O.randomFillSync=T):(_O.randomFill=t,_O.randomFillSync=t);function I(M,D,P,G){if(!n.isBuffer(M)&&!(M instanceof cq.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof D=="function")G=D,D=0,P=M.length;else if(typeof P=="function")G=P,P=M.length-D;else if(typeof G!="function")throw new TypeError('"cb" argument must be a function');return y(D,M.length),_(P,D,M.length),N(M,D,P,G)}function N(M,D,P,G){if(e.browser){var q=M.buffer,Y=new Uint8Array(q,D,P);if(d.getRandomValues(Y),G){e.nextTick(function(){G(null,M)});return}return M}if(G){i(P,function(ce,le){if(ce)return G(ce);le.copy(M,D),G(null,M)});return}var ne=i(P);return ne.copy(M,D),M}function T(M,D,P){if(typeof D>"u"&&(D=0),!n.isBuffer(M)&&!(M instanceof cq.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return y(D,M.length),P===void 0&&(P=M.length-D),_(P,D,M.length),N(M,D,P)}return _O}function U5t(){if(GFe)return Ua;GFe=!0,Ua.randomBytes=Ua.rng=Ua.pseudoRandomBytes=Ua.prng=DO(),Ua.createHash=Ua.Hash=MD(),Ua.createHmac=Ua.Hmac=XHe();var e=TIt(),t=Object.keys(e),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Ua.getHashes=function(){return r};var i=nGe();Ua.pbkdf2=i.pbkdf2,Ua.pbkdf2Sync=i.pbkdf2Sync;var n=KIt();Ua.Cipher=n.Cipher,Ua.createCipher=n.createCipher,Ua.Cipheriv=n.Cipheriv,Ua.createCipheriv=n.createCipheriv,Ua.Decipher=n.Decipher,Ua.createDecipher=n.createDecipher,Ua.Decipheriv=n.Decipheriv,Ua.createDecipheriv=n.createDecipheriv,Ua.getCiphers=n.getCiphers,Ua.listCiphers=n.listCiphers;var o=i5t();Ua.DiffieHellmanGroup=o.DiffieHellmanGroup,Ua.createDiffieHellmanGroup=o.createDiffieHellmanGroup,Ua.getDiffieHellman=o.getDiffieHellman,Ua.createDiffieHellman=o.createDiffieHellman,Ua.DiffieHellman=o.DiffieHellman;var d=T5t();Ua.createSign=d.createSign,Ua.Sign=d.Sign,Ua.createVerify=d.createVerify,Ua.Verify=d.Verify,Ua.createECDH=M5t();var g=P5t();Ua.publicEncrypt=g.publicEncrypt,Ua.privateEncrypt=g.privateEncrypt,Ua.publicDecrypt=g.publicDecrypt,Ua.privateDecrypt=g.privateDecrypt;var y=L5t();return Ua.randomFill=y.randomFill,Ua.randomFillSync=y.randomFillSync,Ua.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
`))},Ua.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Ua}function Xue(){if(qFe)return uq;qFe=!0;var e;uq=function(n){return e||(e=new t(null)),e.generate(n)};function t(i){(this||dq).rand=i}if(uq.Rand=t,t.prototype.generate=function(n){return this._rand(n)},t.prototype._rand=function(n){if((this||dq).rand.getBytes)return(this||dq).rand.getBytes(n);for(var o=new Uint8Array(n),d=0;d<o.length;d++)o[d]=(this||dq).rand.getByte();return o},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(n){var o=new Uint8Array(n);return self.crypto.getRandomValues(o),o}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(n){var o=new Uint8Array(n);return self.msCrypto.getRandomValues(o),o}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=$a;if(typeof r.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(n){return r.randomBytes(n)}}catch{}return uq}function OVe(){if(VFe)return Use;VFe=!0;var e=B6t(),t=Xue();function r(i){(this||JFe).rand=i||new t.Rand}return Use=r,r.create=function(n){return new r(n)},r.prototype._randbelow=function(n){var o=n.bitLength(),d=Math.ceil(o/8);do var g=new e((this||JFe).rand.generate(d));while(g.cmp(n)>=0);return g},r.prototype._randrange=function(n,o){var d=o.sub(n);return n.add(this._randbelow(d))},r.prototype.test=function(n,o,d){var g=n.bitLength(),y=e.mont(n),_=new e(1).toRed(y);o||(o=Math.max(1,g/48|0));for(var I=n.subn(1),N=0;!I.testn(N);N++);for(var T=n.shrn(N),M=I.toRed(y),D=!0;o>0;o--){var P=this._randrange(new e(2),I);d&&d(P);var G=P.toRed(y).redPow(T);if(!(G.cmp(_)===0||G.cmp(M)===0)){for(var q=1;q<N;q++){if(G=G.redSqr(),G.cmp(_)===0)return!1;if(G.cmp(M)===0)break}if(q===N)return!1}}return D},r.prototype.getDivisor=function(n,o){var d=n.bitLength(),g=e.mont(n),y=new e(1).toRed(g);o||(o=Math.max(1,d/48|0));for(var _=n.subn(1),I=0;!_.testn(I);I++);for(var N=n.shrn(I),T=_.toRed(g);o>0;o--){var M=this._randrange(new e(2),_),D=n.gcd(M);if(D.cmpn(1)!==0)return D;var P=M.toRed(g).redPow(N);if(!(P.cmp(y)===0||P.cmp(T)===0)){for(var G=1;G<I;G++){if(P=P.redSqr(),P.cmp(y)===0)return P.fromRed().subn(1).gcd(n);if(P.cmp(T)===0)break}if(G===I)return P=P.redSqr(),P.fromRed().subn(1).gcd(n)}}return!1},Use}function NVe(){if(zFe)return Fse;zFe=!0;var e=TO();Fse=G,G.simpleSieve=D,G.fermatTest=P;var t=CHe(),r=new t(24),i=OVe(),n=new i,o=new t(1),d=new t(2),g=new t(5);new t(16),new t(8);var y=new t(10),_=new t(3);new t(7);var I=new t(11),N=new t(4);new t(12);var T=null;function M(){if(T!==null)return T;var q=1048576,Y=[];Y[0]=2;for(var ne=1,ce=3;ce<q;ce+=2){for(var le=Math.ceil(Math.sqrt(ce)),pe=0;pe<ne&&Y[pe]<=le&&ce%Y[pe]!==0;pe++);ne!==pe&&Y[pe]<=le||(Y[ne++]=ce)}return T=Y,Y}function D(q){for(var Y=M(),ne=0;ne<Y.length;ne++)if(q.modn(Y[ne])===0)return q.cmpn(Y[ne])===0;return!0}function P(q){var Y=t.mont(q);return d.toRed(Y).redPow(q.subn(1)).fromRed().cmpn(1)===0}function G(q,Y){if(q<16)return Y===2||Y===5?new t([140,123]):new t([140,39]);Y=new t(Y);for(var ne,ce;;){for(ne=new t(e(Math.ceil(q/8)));ne.bitLength()>q;)ne.ishrn(1);if(ne.isEven()&&ne.iadd(o),ne.testn(1)||ne.iadd(d),Y.cmp(d)){if(!Y.cmp(g))for(;ne.mod(y).cmp(_);)ne.iadd(N)}else for(;ne.mod(r).cmp(I);)ne.iadd(N);if(ce=ne.shrn(1),D(ce)&&D(ne)&&P(ce)&&P(ne)&&n.test(ce)&&n.test(ne))return ne}}return Fse}function Q5t(){if(KFe)return Qse;KFe=!0;var e=Nu.Buffer,t=CHe(),r=OVe(),i=new r,n=new t(24),o=new t(11),d=new t(10),g=new t(3),y=new t(7),_=NVe(),I=TO();Qse=P;function N(q,Y){return Y=Y||"utf8",e.isBuffer(q)||(q=new e(q,Y)),(this||Ds)._pub=new t(q),this||Ds}function T(q,Y){return Y=Y||"utf8",e.isBuffer(q)||(q=new e(q,Y)),(this||Ds)._priv=new t(q),this||Ds}var M={};function D(q,Y){var ne=Y.toString("hex"),ce=[ne,q.toString(16)].join("_");if(ce in M)return M[ce];var le=0;if(q.isEven()||!_.simpleSieve||!_.fermatTest(q)||!i.test(q))return le+=1,ne==="02"||ne==="05"?le+=8:le+=4,M[ce]=le,le;i.test(q.shrn(1))||(le+=2);var pe;switch(ne){case"02":q.mod(n).cmp(o)&&(le+=8);break;case"05":pe=q.mod(d),pe.cmp(g)&&pe.cmp(y)&&(le+=8);break;default:le+=4}return M[ce]=le,le}function P(q,Y,ne){this.setGenerator(Y),(this||Ds).__prime=new t(q),(this||Ds)._prime=t.mont((this||Ds).__prime),(this||Ds)._primeLen=q.length,(this||Ds)._pub=void 0,(this||Ds)._priv=void 0,(this||Ds)._primeCode=void 0,ne?((this||Ds).setPublicKey=N,(this||Ds).setPrivateKey=T):(this||Ds)._primeCode=8}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||Ds)._primeCode!="number"&&((this||Ds)._primeCode=D((this||Ds).__prime,(this||Ds).__gen)),(this||Ds)._primeCode}}),P.prototype.generateKeys=function(){return(this||Ds)._priv||((this||Ds)._priv=new t(I((this||Ds)._primeLen))),(this||Ds)._pub=(this||Ds)._gen.toRed((this||Ds)._prime).redPow((this||Ds)._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(q){q=new t(q),q=q.toRed((this||Ds)._prime);var Y=q.redPow((this||Ds)._priv).fromRed(),ne=new e(Y.toArray()),ce=this.getPrime();if(ne.length<ce.length){var le=new e(ce.length-ne.length);le.fill(0),ne=e.concat([le,ne])}return ne},P.prototype.getPublicKey=function(Y){return G((this||Ds)._pub,Y)},P.prototype.getPrivateKey=function(Y){return G((this||Ds)._priv,Y)},P.prototype.getPrime=function(q){return G((this||Ds).__prime,q)},P.prototype.getGenerator=function(q){return G((this||Ds)._gen,q)},P.prototype.setGenerator=function(q,Y){return Y=Y||"utf8",e.isBuffer(q)||(q=new e(q,Y)),(this||Ds).__gen=q,(this||Ds)._gen=new t(q),this||Ds};function G(q,Y){var ne=new e(q.toArray());return Y?ne.toString(Y):ne}return Qse}function H5t(){if($Fe)return n4;$Fe=!0;var e=Nu.Buffer,t=NVe(),r=F5t,i=Q5t();function n(g){var y=new e(r[g].prime,"hex"),_=new e(r[g].gen,"hex");return new i(y,_)}var o={binary:!0,hex:!0,base64:!0};function d(g,y,_,I){return e.isBuffer(y)||o[y]===void 0?d(g,"binary",y,_):(y=y||"binary",I=I||"binary",_=_||new e([2]),e.isBuffer(_)||(_=new e(_,I)),typeof g=="number"?new i(t(g,_),_,!0):(e.isBuffer(g)||(g=new e(g,y)),new i(g,_,!0)))}return n4.DiffieHellmanGroup=n4.createDiffieHellmanGroup=n4.getDiffieHellman=n,n4.createDiffieHellman=n4.DiffieHellman=d,n4}function Zue(){if(YFe)return iD;YFe=!0;var e=Nu,t=e.Buffer;function r(n,o){for(var d in n)o[d]=n[d]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?iD=e:(r(e,iD),iD.Buffer=i);function i(n,o,d){return t(n,o,d)}return i.prototype=Object.create(t.prototype),r(t,i),i.from=function(n,o,d){if(typeof n=="number")throw new TypeError("Argument must not be a number");return t(n,o,d)},i.alloc=function(n,o,d){if(typeof n!="number")throw new TypeError("Argument must be a number");var g=t(n);return o!==void 0?typeof d=="string"?g.fill(o,d):g.fill(o):g.fill(0),g},i.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return t(n)},i.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(n)},iD}function jue(){return WFe||(WFe=!0,(function(e,t){function r(l,A){if(!l)throw new Error(A||"Assertion failed")}function i(l,A){l.super_=A;var m=function(){};m.prototype=A.prototype,l.prototype=new m,l.prototype.constructor=l}function n(l,A,m){if(n.isBN(l))return l;(this||Ct).negative=0,(this||Ct).words=null,(this||Ct).length=0,(this||Ct).red=null,l!==null&&((A==="le"||A==="be")&&(m=A,A=10),this._init(l||0,A||10,m||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(A){return A instanceof n?!0:A!==null&&typeof A=="object"&&A.constructor.wordSize===n.wordSize&&Array.isArray(A.words)},n.max=function(A,m){return A.cmp(m)>0?A:m},n.min=function(A,m){return A.cmp(m)<0?A:m},n.prototype._init=function(A,m,E){if(typeof A=="number")return this._initNumber(A,m,E);if(typeof A=="object")return this._initArray(A,m,E);m==="hex"&&(m=16),r(m===(m|0)&&m>=2&&m<=36),A=A.toString().replace(/\s+/g,"");var w=0;A[0]==="-"&&(w++,(this||Ct).negative=1),w<A.length&&(m===16?this._parseHex(A,w,E):(this._parseBase(A,m,w),E==="le"&&this._initArray(this.toArray(),m,E)))},n.prototype._initNumber=function(A,m,E){A<0&&((this||Ct).negative=1,A=-A),A<67108864?((this||Ct).words=[A&67108863],(this||Ct).length=1):A<4503599627370496?((this||Ct).words=[A&67108863,A/67108864&67108863],(this||Ct).length=2):(r(A<9007199254740992),(this||Ct).words=[A&67108863,A/67108864&67108863,1],(this||Ct).length=3),E==="le"&&this._initArray(this.toArray(),m,E)},n.prototype._initArray=function(A,m,E){if(r(typeof A.length=="number"),A.length<=0)return(this||Ct).words=[0],(this||Ct).length=1,this||Ct;(this||Ct).length=Math.ceil(A.length/3),(this||Ct).words=new Array((this||Ct).length);for(var w=0;w<(this||Ct).length;w++)(this||Ct).words[w]=0;var x,R,u=0;if(E==="be")for(w=A.length-1,x=0;w>=0;w-=3)R=A[w]|A[w-1]<<8|A[w-2]<<16,(this||Ct).words[x]|=R<<u&67108863,(this||Ct).words[x+1]=R>>>26-u&67108863,u+=24,u>=26&&(u-=26,x++);else if(E==="le")for(w=0,x=0;w<A.length;w+=3)R=A[w]|A[w+1]<<8|A[w+2]<<16,(this||Ct).words[x]|=R<<u&67108863,(this||Ct).words[x+1]=R>>>26-u&67108863,u+=24,u>=26&&(u-=26,x++);return this._strip()};function d(l,A){var m=l.charCodeAt(A);if(m>=48&&m<=57)return m-48;if(m>=65&&m<=70)return m-55;if(m>=97&&m<=102)return m-87;r(!1,"Invalid character in "+l)}function g(l,A,m){var E=d(l,m);return m-1>=A&&(E|=d(l,m-1)<<4),E}n.prototype._parseHex=function(A,m,E){(this||Ct).length=Math.ceil((A.length-m)/6),(this||Ct).words=new Array((this||Ct).length);for(var w=0;w<(this||Ct).length;w++)(this||Ct).words[w]=0;var x=0,R=0,u;if(E==="be")for(w=A.length-1;w>=m;w-=2)u=g(A,m,w)<<x,(this||Ct).words[R]|=u&67108863,x>=18?(x-=18,R+=1,(this||Ct).words[R]|=u>>>26):x+=8;else{var C=A.length-m;for(w=C%2===0?m+1:m;w<A.length;w+=2)u=g(A,m,w)<<x,(this||Ct).words[R]|=u&67108863,x>=18?(x-=18,R+=1,(this||Ct).words[R]|=u>>>26):x+=8}this._strip()};function y(l,A,m,E){for(var w=0,x=0,R=Math.min(l.length,m),u=A;u<R;u++){var C=l.charCodeAt(u)-48;w*=E,C>=49?x=C-49+10:C>=17?x=C-17+10:x=C,r(C>=0&&x<E,"Invalid character"),w+=x}return w}n.prototype._parseBase=function(A,m,E){(this||Ct).words=[0],(this||Ct).length=1;for(var w=0,x=1;x<=67108863;x*=m)w++;w--,x=x/m|0;for(var R=A.length-E,u=R%w,C=Math.min(R,R-u)+E,U=0,F=E;F<C;F+=w)U=y(A,F,F+w,m),this.imuln(x),(this||Ct).words[0]+U<67108864?(this||Ct).words[0]+=U:this._iaddn(U);if(u!==0){var X=1;for(U=y(A,F,A.length,m),F=0;F<u;F++)X*=m;this.imuln(X),(this||Ct).words[0]+U<67108864?(this||Ct).words[0]+=U:this._iaddn(U)}this._strip()},n.prototype.copy=function(A){A.words=new Array((this||Ct).length);for(var m=0;m<(this||Ct).length;m++)A.words[m]=(this||Ct).words[m];A.length=(this||Ct).length,A.negative=(this||Ct).negative,A.red=(this||Ct).red};function _(l,A){l.words=A.words,l.length=A.length,l.negative=A.negative,l.red=A.red}if(n.prototype._move=function(A){_(A,this||Ct)},n.prototype.clone=function(){var A=new n(null);return this.copy(A),A},n.prototype._expand=function(A){for(;(this||Ct).length<A;)(this||Ct).words[(this||Ct).length++]=0;return this||Ct},n.prototype._strip=function(){for(;(this||Ct).length>1&&(this||Ct).words[(this||Ct).length-1]===0;)(this||Ct).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Ct).length===1&&(this||Ct).words[0]===0&&((this||Ct).negative=0),this||Ct},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=I}catch{n.prototype.inspect=I}else n.prototype.inspect=I;function I(){return((this||Ct).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(A,m){A=A||10,m=m|0||1;var E;if(A===16||A==="hex"){E="";for(var w=0,x=0,R=0;R<(this||Ct).length;R++){var u=(this||Ct).words[R],C=((u<<w|x)&16777215).toString(16);x=u>>>24-w&16777215,x!==0||R!==(this||Ct).length-1?E=N[6-C.length]+C+E:E=C+E,w+=2,w>=26&&(w-=26,R--)}for(x!==0&&(E=x.toString(16)+E);E.length%m!==0;)E="0"+E;return(this||Ct).negative!==0&&(E="-"+E),E}if(A===(A|0)&&A>=2&&A<=36){var U=T[A],F=M[A];E="";var X=this.clone();for(X.negative=0;!X.isZero();){var Ae=X.modrn(F).toString(A);X=X.idivn(F),X.isZero()?E=Ae+E:E=N[U-Ae.length]+Ae+E}for(this.isZero()&&(E="0"+E);E.length%m!==0;)E="0"+E;return(this||Ct).negative!==0&&(E="-"+E),E}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var A=(this||Ct).words[0];return(this||Ct).length===2?A+=(this||Ct).words[1]*67108864:(this||Ct).length===3&&(this||Ct).words[2]===1?A+=4503599627370496+(this||Ct).words[1]*67108864:(this||Ct).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Ct).negative!==0?-A:A},n.prototype.toJSON=function(){return this.toString(16,2)},o&&(n.prototype.toBuffer=function(A,m){return this.toArrayLike(o,A,m)}),n.prototype.toArray=function(A,m){return this.toArrayLike(Array,A,m)};var D=function(A,m){return A.allocUnsafe?A.allocUnsafe(m):new A(m)};n.prototype.toArrayLike=function(A,m,E){this._strip();var w=this.byteLength(),x=E||Math.max(1,w);r(w<=x,"byte array longer than desired length"),r(x>0,"Requested array length <= 0");var R=D(A,x),u=m==="le"?"LE":"BE";return this["_toArrayLike"+u](R,w),R},n.prototype._toArrayLikeLE=function(A,m){for(var E=0,w=0,x=0,R=0;x<(this||Ct).length;x++){var u=(this||Ct).words[x]<<R|w;A[E++]=u&255,E<A.length&&(A[E++]=u>>8&255),E<A.length&&(A[E++]=u>>16&255),R===6?(E<A.length&&(A[E++]=u>>24&255),w=0,R=0):(w=u>>>24,R+=2)}if(E<A.length)for(A[E++]=w;E<A.length;)A[E++]=0},n.prototype._toArrayLikeBE=function(A,m){for(var E=A.length-1,w=0,x=0,R=0;x<(this||Ct).length;x++){var u=(this||Ct).words[x]<<R|w;A[E--]=u&255,E>=0&&(A[E--]=u>>8&255),E>=0&&(A[E--]=u>>16&255),R===6?(E>=0&&(A[E--]=u>>24&255),w=0,R=0):(w=u>>>24,R+=2)}if(E>=0)for(A[E--]=w;E>=0;)A[E--]=0},Math.clz32?n.prototype._countBits=function(A){return 32-Math.clz32(A)}:n.prototype._countBits=function(A){var m=A,E=0;return m>=4096&&(E+=13,m>>>=13),m>=64&&(E+=7,m>>>=7),m>=8&&(E+=4,m>>>=4),m>=2&&(E+=2,m>>>=2),E+m},n.prototype._zeroBits=function(A){if(A===0)return 26;var m=A,E=0;return(m&8191)===0&&(E+=13,m>>>=13),(m&127)===0&&(E+=7,m>>>=7),(m&15)===0&&(E+=4,m>>>=4),(m&3)===0&&(E+=2,m>>>=2),(m&1)===0&&E++,E},n.prototype.bitLength=function(){var A=(this||Ct).words[(this||Ct).length-1],m=this._countBits(A);return((this||Ct).length-1)*26+m};function P(l){for(var A=new Array(l.bitLength()),m=0;m<A.length;m++){var E=m/26|0,w=m%26;A[m]=l.words[E]>>>w&1}return A}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,m=0;m<(this||Ct).length;m++){var E=this._zeroBits((this||Ct).words[m]);if(A+=E,E!==26)break}return A},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(A){return(this||Ct).negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},n.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Ct).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Ct).negative^=1),this||Ct},n.prototype.iuor=function(A){for(;(this||Ct).length<A.length;)(this||Ct).words[(this||Ct).length++]=0;for(var m=0;m<A.length;m++)(this||Ct).words[m]=(this||Ct).words[m]|A.words[m];return this._strip()},n.prototype.ior=function(A){return r(((this||Ct).negative|A.negative)===0),this.iuor(A)},n.prototype.or=function(A){return(this||Ct).length>A.length?this.clone().ior(A):A.clone().ior(this||Ct)},n.prototype.uor=function(A){return(this||Ct).length>A.length?this.clone().iuor(A):A.clone().iuor(this||Ct)},n.prototype.iuand=function(A){var m;(this||Ct).length>A.length?m=A:m=this||Ct;for(var E=0;E<m.length;E++)(this||Ct).words[E]=(this||Ct).words[E]&A.words[E];return(this||Ct).length=m.length,this._strip()},n.prototype.iand=function(A){return r(((this||Ct).negative|A.negative)===0),this.iuand(A)},n.prototype.and=function(A){return(this||Ct).length>A.length?this.clone().iand(A):A.clone().iand(this||Ct)},n.prototype.uand=function(A){return(this||Ct).length>A.length?this.clone().iuand(A):A.clone().iuand(this||Ct)},n.prototype.iuxor=function(A){var m,E;(this||Ct).length>A.length?(m=this||Ct,E=A):(m=A,E=this||Ct);for(var w=0;w<E.length;w++)(this||Ct).words[w]=m.words[w]^E.words[w];if((this||Ct)!==m)for(;w<m.length;w++)(this||Ct).words[w]=m.words[w];return(this||Ct).length=m.length,this._strip()},n.prototype.ixor=function(A){return r(((this||Ct).negative|A.negative)===0),this.iuxor(A)},n.prototype.xor=function(A){return(this||Ct).length>A.length?this.clone().ixor(A):A.clone().ixor(this||Ct)},n.prototype.uxor=function(A){return(this||Ct).length>A.length?this.clone().iuxor(A):A.clone().iuxor(this||Ct)},n.prototype.inotn=function(A){r(typeof A=="number"&&A>=0);var m=Math.ceil(A/26)|0,E=A%26;this._expand(m),E>0&&m--;for(var w=0;w<m;w++)(this||Ct).words[w]=~(this||Ct).words[w]&67108863;return E>0&&((this||Ct).words[w]=~(this||Ct).words[w]&67108863>>26-E),this._strip()},n.prototype.notn=function(A){return this.clone().inotn(A)},n.prototype.setn=function(A,m){r(typeof A=="number"&&A>=0);var E=A/26|0,w=A%26;return this._expand(E+1),m?(this||Ct).words[E]=(this||Ct).words[E]|1<<w:(this||Ct).words[E]=(this||Ct).words[E]&~(1<<w),this._strip()},n.prototype.iadd=function(A){var m;if((this||Ct).negative!==0&&A.negative===0)return(this||Ct).negative=0,m=this.isub(A),(this||Ct).negative^=1,this._normSign();if((this||Ct).negative===0&&A.negative!==0)return A.negative=0,m=this.isub(A),A.negative=1,m._normSign();var E,w;(this||Ct).length>A.length?(E=this||Ct,w=A):(E=A,w=this||Ct);for(var x=0,R=0;R<w.length;R++)m=(E.words[R]|0)+(w.words[R]|0)+x,(this||Ct).words[R]=m&67108863,x=m>>>26;for(;x!==0&&R<E.length;R++)m=(E.words[R]|0)+x,(this||Ct).words[R]=m&67108863,x=m>>>26;if((this||Ct).length=E.length,x!==0)(this||Ct).words[(this||Ct).length]=x,(this||Ct).length++;else if(E!==(this||Ct))for(;R<E.length;R++)(this||Ct).words[R]=E.words[R];return this||Ct},n.prototype.add=function(A){var m;return A.negative!==0&&(this||Ct).negative===0?(A.negative=0,m=this.sub(A),A.negative^=1,m):A.negative===0&&(this||Ct).negative!==0?((this||Ct).negative=0,m=A.sub(this||Ct),(this||Ct).negative=1,m):(this||Ct).length>A.length?this.clone().iadd(A):A.clone().iadd(this||Ct)},n.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var m=this.iadd(A);return A.negative=1,m._normSign()}else if((this||Ct).negative!==0)return(this||Ct).negative=0,this.iadd(A),(this||Ct).negative=1,this._normSign();var E=this.cmp(A);if(E===0)return(this||Ct).negative=0,(this||Ct).length=1,(this||Ct).words[0]=0,this||Ct;var w,x;E>0?(w=this||Ct,x=A):(w=A,x=this||Ct);for(var R=0,u=0;u<x.length;u++)m=(w.words[u]|0)-(x.words[u]|0)+R,R=m>>26,(this||Ct).words[u]=m&67108863;for(;R!==0&&u<w.length;u++)m=(w.words[u]|0)+R,R=m>>26,(this||Ct).words[u]=m&67108863;if(R===0&&u<w.length&&w!==(this||Ct))for(;u<w.length;u++)(this||Ct).words[u]=w.words[u];return(this||Ct).length=Math.max((this||Ct).length,u),w!==(this||Ct)&&((this||Ct).negative=1),this._strip()},n.prototype.sub=function(A){return this.clone().isub(A)};function G(l,A,m){m.negative=A.negative^l.negative;var E=l.length+A.length|0;m.length=E,E=E-1|0;var w=l.words[0]|0,x=A.words[0]|0,R=w*x,u=R&67108863,C=R/67108864|0;m.words[0]=u;for(var U=1;U<E;U++){for(var F=C>>>26,X=C&67108863,Ae=Math.min(U,A.length-1),he=Math.max(0,U-l.length+1);he<=Ae;he++){var $e=U-he|0;w=l.words[$e]|0,x=A.words[he]|0,R=w*x+X,F+=R/67108864|0,X=R&67108863}m.words[U]=X|0,C=F|0}return C!==0?m.words[U]=C|0:m.length--,m._strip()}var q=function(A,m,E){var w=A.words,x=m.words,R=E.words,u=0,C,U,F,X=w[0]|0,Ae=X&8191,he=X>>>13,$e=w[1]|0,Ge=$e&8191,Re=$e>>>13,Se=w[2]|0,ct=Se&8191,ze=Se>>>13,te=w[3]|0,Ue=te&8191,oe=te>>>13,ge=w[4]|0,Le=ge&8191,V=ge>>>13,Qe=w[5]|0,_t=Qe&8191,rt=Qe>>>13,At=w[6]|0,Er=At&8191,mt=At>>>13,Ht=w[7]|0,zr=Ht&8191,ve=Ht>>>13,ie=w[8]|0,_e=ie&8191,Be=ie>>>13,Ze=w[9]|0,$t=Ze&8191,at=Ze>>>13,zt=x[0]|0,Hr=zt&8191,St=zt>>>13,Yt=x[1]|0,qr=Yt&8191,tr=Yt>>>13,hr=x[2]|0,Cn=hr&8191,er=hr>>>13,pr=x[3]|0,mn=pr&8191,Xt=pr>>>13,dr=x[4]|0,wn=dr&8191,Qt=dr>>>13,fr=x[5]|0,In=fr&8191,jt=fr>>>13,ar=x[6]|0,ht=ar&8191,Xe=ar>>>13,et=x[7]|0,ue=et&8191,je=et>>>13,be=x[8]|0,qe=be&8191,De=be>>>13,Je=x[9]|0,Rt=Je&8191,Vt=Je>>>13;E.negative=A.negative^m.negative,E.length=19,C=Math.imul(Ae,Hr),U=Math.imul(Ae,St),U=U+Math.imul(he,Hr)|0,F=Math.imul(he,St);var br=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(br>>>26)|0,br&=67108863,C=Math.imul(Ge,Hr),U=Math.imul(Ge,St),U=U+Math.imul(Re,Hr)|0,F=Math.imul(Re,St),C=C+Math.imul(Ae,qr)|0,U=U+Math.imul(Ae,tr)|0,U=U+Math.imul(he,qr)|0,F=F+Math.imul(he,tr)|0;var Rr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,C=Math.imul(ct,Hr),U=Math.imul(ct,St),U=U+Math.imul(ze,Hr)|0,F=Math.imul(ze,St),C=C+Math.imul(Ge,qr)|0,U=U+Math.imul(Ge,tr)|0,U=U+Math.imul(Re,qr)|0,F=F+Math.imul(Re,tr)|0,C=C+Math.imul(Ae,Cn)|0,U=U+Math.imul(Ae,er)|0,U=U+Math.imul(he,Cn)|0,F=F+Math.imul(he,er)|0;var Dr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,C=Math.imul(Ue,Hr),U=Math.imul(Ue,St),U=U+Math.imul(oe,Hr)|0,F=Math.imul(oe,St),C=C+Math.imul(ct,qr)|0,U=U+Math.imul(ct,tr)|0,U=U+Math.imul(ze,qr)|0,F=F+Math.imul(ze,tr)|0,C=C+Math.imul(Ge,Cn)|0,U=U+Math.imul(Ge,er)|0,U=U+Math.imul(Re,Cn)|0,F=F+Math.imul(Re,er)|0,C=C+Math.imul(Ae,mn)|0,U=U+Math.imul(Ae,Xt)|0,U=U+Math.imul(he,mn)|0,F=F+Math.imul(he,Xt)|0;var Pr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,C=Math.imul(Le,Hr),U=Math.imul(Le,St),U=U+Math.imul(V,Hr)|0,F=Math.imul(V,St),C=C+Math.imul(Ue,qr)|0,U=U+Math.imul(Ue,tr)|0,U=U+Math.imul(oe,qr)|0,F=F+Math.imul(oe,tr)|0,C=C+Math.imul(ct,Cn)|0,U=U+Math.imul(ct,er)|0,U=U+Math.imul(ze,Cn)|0,F=F+Math.imul(ze,er)|0,C=C+Math.imul(Ge,mn)|0,U=U+Math.imul(Ge,Xt)|0,U=U+Math.imul(Re,mn)|0,F=F+Math.imul(Re,Xt)|0,C=C+Math.imul(Ae,wn)|0,U=U+Math.imul(Ae,Qt)|0,U=U+Math.imul(he,wn)|0,F=F+Math.imul(he,Qt)|0;var k=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(k>>>26)|0,k&=67108863,C=Math.imul(_t,Hr),U=Math.imul(_t,St),U=U+Math.imul(rt,Hr)|0,F=Math.imul(rt,St),C=C+Math.imul(Le,qr)|0,U=U+Math.imul(Le,tr)|0,U=U+Math.imul(V,qr)|0,F=F+Math.imul(V,tr)|0,C=C+Math.imul(Ue,Cn)|0,U=U+Math.imul(Ue,er)|0,U=U+Math.imul(oe,Cn)|0,F=F+Math.imul(oe,er)|0,C=C+Math.imul(ct,mn)|0,U=U+Math.imul(ct,Xt)|0,U=U+Math.imul(ze,mn)|0,F=F+Math.imul(ze,Xt)|0,C=C+Math.imul(Ge,wn)|0,U=U+Math.imul(Ge,Qt)|0,U=U+Math.imul(Re,wn)|0,F=F+Math.imul(Re,Qt)|0,C=C+Math.imul(Ae,In)|0,U=U+Math.imul(Ae,jt)|0,U=U+Math.imul(he,In)|0,F=F+Math.imul(he,jt)|0;var a=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(a>>>26)|0,a&=67108863,C=Math.imul(Er,Hr),U=Math.imul(Er,St),U=U+Math.imul(mt,Hr)|0,F=Math.imul(mt,St),C=C+Math.imul(_t,qr)|0,U=U+Math.imul(_t,tr)|0,U=U+Math.imul(rt,qr)|0,F=F+Math.imul(rt,tr)|0,C=C+Math.imul(Le,Cn)|0,U=U+Math.imul(Le,er)|0,U=U+Math.imul(V,Cn)|0,F=F+Math.imul(V,er)|0,C=C+Math.imul(Ue,mn)|0,U=U+Math.imul(Ue,Xt)|0,U=U+Math.imul(oe,mn)|0,F=F+Math.imul(oe,Xt)|0,C=C+Math.imul(ct,wn)|0,U=U+Math.imul(ct,Qt)|0,U=U+Math.imul(ze,wn)|0,F=F+Math.imul(ze,Qt)|0,C=C+Math.imul(Ge,In)|0,U=U+Math.imul(Ge,jt)|0,U=U+Math.imul(Re,In)|0,F=F+Math.imul(Re,jt)|0,C=C+Math.imul(Ae,ht)|0,U=U+Math.imul(Ae,Xe)|0,U=U+Math.imul(he,ht)|0,F=F+Math.imul(he,Xe)|0;var S=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(S>>>26)|0,S&=67108863,C=Math.imul(zr,Hr),U=Math.imul(zr,St),U=U+Math.imul(ve,Hr)|0,F=Math.imul(ve,St),C=C+Math.imul(Er,qr)|0,U=U+Math.imul(Er,tr)|0,U=U+Math.imul(mt,qr)|0,F=F+Math.imul(mt,tr)|0,C=C+Math.imul(_t,Cn)|0,U=U+Math.imul(_t,er)|0,U=U+Math.imul(rt,Cn)|0,F=F+Math.imul(rt,er)|0,C=C+Math.imul(Le,mn)|0,U=U+Math.imul(Le,Xt)|0,U=U+Math.imul(V,mn)|0,F=F+Math.imul(V,Xt)|0,C=C+Math.imul(Ue,wn)|0,U=U+Math.imul(Ue,Qt)|0,U=U+Math.imul(oe,wn)|0,F=F+Math.imul(oe,Qt)|0,C=C+Math.imul(ct,In)|0,U=U+Math.imul(ct,jt)|0,U=U+Math.imul(ze,In)|0,F=F+Math.imul(ze,jt)|0,C=C+Math.imul(Ge,ht)|0,U=U+Math.imul(Ge,Xe)|0,U=U+Math.imul(Re,ht)|0,F=F+Math.imul(Re,Xe)|0,C=C+Math.imul(Ae,ue)|0,U=U+Math.imul(Ae,je)|0,U=U+Math.imul(he,ue)|0,F=F+Math.imul(he,je)|0;var sn=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(sn>>>26)|0,sn&=67108863,C=Math.imul(_e,Hr),U=Math.imul(_e,St),U=U+Math.imul(Be,Hr)|0,F=Math.imul(Be,St),C=C+Math.imul(zr,qr)|0,U=U+Math.imul(zr,tr)|0,U=U+Math.imul(ve,qr)|0,F=F+Math.imul(ve,tr)|0,C=C+Math.imul(Er,Cn)|0,U=U+Math.imul(Er,er)|0,U=U+Math.imul(mt,Cn)|0,F=F+Math.imul(mt,er)|0,C=C+Math.imul(_t,mn)|0,U=U+Math.imul(_t,Xt)|0,U=U+Math.imul(rt,mn)|0,F=F+Math.imul(rt,Xt)|0,C=C+Math.imul(Le,wn)|0,U=U+Math.imul(Le,Qt)|0,U=U+Math.imul(V,wn)|0,F=F+Math.imul(V,Qt)|0,C=C+Math.imul(Ue,In)|0,U=U+Math.imul(Ue,jt)|0,U=U+Math.imul(oe,In)|0,F=F+Math.imul(oe,jt)|0,C=C+Math.imul(ct,ht)|0,U=U+Math.imul(ct,Xe)|0,U=U+Math.imul(ze,ht)|0,F=F+Math.imul(ze,Xe)|0,C=C+Math.imul(Ge,ue)|0,U=U+Math.imul(Ge,je)|0,U=U+Math.imul(Re,ue)|0,F=F+Math.imul(Re,je)|0,C=C+Math.imul(Ae,qe)|0,U=U+Math.imul(Ae,De)|0,U=U+Math.imul(he,qe)|0,F=F+Math.imul(he,De)|0;var Lr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,C=Math.imul($t,Hr),U=Math.imul($t,St),U=U+Math.imul(at,Hr)|0,F=Math.imul(at,St),C=C+Math.imul(_e,qr)|0,U=U+Math.imul(_e,tr)|0,U=U+Math.imul(Be,qr)|0,F=F+Math.imul(Be,tr)|0,C=C+Math.imul(zr,Cn)|0,U=U+Math.imul(zr,er)|0,U=U+Math.imul(ve,Cn)|0,F=F+Math.imul(ve,er)|0,C=C+Math.imul(Er,mn)|0,U=U+Math.imul(Er,Xt)|0,U=U+Math.imul(mt,mn)|0,F=F+Math.imul(mt,Xt)|0,C=C+Math.imul(_t,wn)|0,U=U+Math.imul(_t,Qt)|0,U=U+Math.imul(rt,wn)|0,F=F+Math.imul(rt,Qt)|0,C=C+Math.imul(Le,In)|0,U=U+Math.imul(Le,jt)|0,U=U+Math.imul(V,In)|0,F=F+Math.imul(V,jt)|0,C=C+Math.imul(Ue,ht)|0,U=U+Math.imul(Ue,Xe)|0,U=U+Math.imul(oe,ht)|0,F=F+Math.imul(oe,Xe)|0,C=C+Math.imul(ct,ue)|0,U=U+Math.imul(ct,je)|0,U=U+Math.imul(ze,ue)|0,F=F+Math.imul(ze,je)|0,C=C+Math.imul(Ge,qe)|0,U=U+Math.imul(Ge,De)|0,U=U+Math.imul(Re,qe)|0,F=F+Math.imul(Re,De)|0,C=C+Math.imul(Ae,Rt)|0,U=U+Math.imul(Ae,Vt)|0,U=U+Math.imul(he,Rt)|0,F=F+Math.imul(he,Vt)|0;var Wr=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,C=Math.imul($t,qr),U=Math.imul($t,tr),U=U+Math.imul(at,qr)|0,F=Math.imul(at,tr),C=C+Math.imul(_e,Cn)|0,U=U+Math.imul(_e,er)|0,U=U+Math.imul(Be,Cn)|0,F=F+Math.imul(Be,er)|0,C=C+Math.imul(zr,mn)|0,U=U+Math.imul(zr,Xt)|0,U=U+Math.imul(ve,mn)|0,F=F+Math.imul(ve,Xt)|0,C=C+Math.imul(Er,wn)|0,U=U+Math.imul(Er,Qt)|0,U=U+Math.imul(mt,wn)|0,F=F+Math.imul(mt,Qt)|0,C=C+Math.imul(_t,In)|0,U=U+Math.imul(_t,jt)|0,U=U+Math.imul(rt,In)|0,F=F+Math.imul(rt,jt)|0,C=C+Math.imul(Le,ht)|0,U=U+Math.imul(Le,Xe)|0,U=U+Math.imul(V,ht)|0,F=F+Math.imul(V,Xe)|0,C=C+Math.imul(Ue,ue)|0,U=U+Math.imul(Ue,je)|0,U=U+Math.imul(oe,ue)|0,F=F+Math.imul(oe,je)|0,C=C+Math.imul(ct,qe)|0,U=U+Math.imul(ct,De)|0,U=U+Math.imul(ze,qe)|0,F=F+Math.imul(ze,De)|0,C=C+Math.imul(Ge,Rt)|0,U=U+Math.imul(Ge,Vt)|0,U=U+Math.imul(Re,Rt)|0,F=F+Math.imul(Re,Vt)|0;var ln=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(ln>>>26)|0,ln&=67108863,C=Math.imul($t,Cn),U=Math.imul($t,er),U=U+Math.imul(at,Cn)|0,F=Math.imul(at,er),C=C+Math.imul(_e,mn)|0,U=U+Math.imul(_e,Xt)|0,U=U+Math.imul(Be,mn)|0,F=F+Math.imul(Be,Xt)|0,C=C+Math.imul(zr,wn)|0,U=U+Math.imul(zr,Qt)|0,U=U+Math.imul(ve,wn)|0,F=F+Math.imul(ve,Qt)|0,C=C+Math.imul(Er,In)|0,U=U+Math.imul(Er,jt)|0,U=U+Math.imul(mt,In)|0,F=F+Math.imul(mt,jt)|0,C=C+Math.imul(_t,ht)|0,U=U+Math.imul(_t,Xe)|0,U=U+Math.imul(rt,ht)|0,F=F+Math.imul(rt,Xe)|0,C=C+Math.imul(Le,ue)|0,U=U+Math.imul(Le,je)|0,U=U+Math.imul(V,ue)|0,F=F+Math.imul(V,je)|0,C=C+Math.imul(Ue,qe)|0,U=U+Math.imul(Ue,De)|0,U=U+Math.imul(oe,qe)|0,F=F+Math.imul(oe,De)|0,C=C+Math.imul(ct,Rt)|0,U=U+Math.imul(ct,Vt)|0,U=U+Math.imul(ze,Rt)|0,F=F+Math.imul(ze,Vt)|0;var yt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(yt>>>26)|0,yt&=67108863,C=Math.imul($t,mn),U=Math.imul($t,Xt),U=U+Math.imul(at,mn)|0,F=Math.imul(at,Xt),C=C+Math.imul(_e,wn)|0,U=U+Math.imul(_e,Qt)|0,U=U+Math.imul(Be,wn)|0,F=F+Math.imul(Be,Qt)|0,C=C+Math.imul(zr,In)|0,U=U+Math.imul(zr,jt)|0,U=U+Math.imul(ve,In)|0,F=F+Math.imul(ve,jt)|0,C=C+Math.imul(Er,ht)|0,U=U+Math.imul(Er,Xe)|0,U=U+Math.imul(mt,ht)|0,F=F+Math.imul(mt,Xe)|0,C=C+Math.imul(_t,ue)|0,U=U+Math.imul(_t,je)|0,U=U+Math.imul(rt,ue)|0,F=F+Math.imul(rt,je)|0,C=C+Math.imul(Le,qe)|0,U=U+Math.imul(Le,De)|0,U=U+Math.imul(V,qe)|0,F=F+Math.imul(V,De)|0,C=C+Math.imul(Ue,Rt)|0,U=U+Math.imul(Ue,Vt)|0,U=U+Math.imul(oe,Rt)|0,F=F+Math.imul(oe,Vt)|0;var ot=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(ot>>>26)|0,ot&=67108863,C=Math.imul($t,wn),U=Math.imul($t,Qt),U=U+Math.imul(at,wn)|0,F=Math.imul(at,Qt),C=C+Math.imul(_e,In)|0,U=U+Math.imul(_e,jt)|0,U=U+Math.imul(Be,In)|0,F=F+Math.imul(Be,jt)|0,C=C+Math.imul(zr,ht)|0,U=U+Math.imul(zr,Xe)|0,U=U+Math.imul(ve,ht)|0,F=F+Math.imul(ve,Xe)|0,C=C+Math.imul(Er,ue)|0,U=U+Math.imul(Er,je)|0,U=U+Math.imul(mt,ue)|0,F=F+Math.imul(mt,je)|0,C=C+Math.imul(_t,qe)|0,U=U+Math.imul(_t,De)|0,U=U+Math.imul(rt,qe)|0,F=F+Math.imul(rt,De)|0,C=C+Math.imul(Le,Rt)|0,U=U+Math.imul(Le,Vt)|0,U=U+Math.imul(V,Rt)|0,F=F+Math.imul(V,Vt)|0;var lt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(lt>>>26)|0,lt&=67108863,C=Math.imul($t,In),U=Math.imul($t,jt),U=U+Math.imul(at,In)|0,F=Math.imul(at,jt),C=C+Math.imul(_e,ht)|0,U=U+Math.imul(_e,Xe)|0,U=U+Math.imul(Be,ht)|0,F=F+Math.imul(Be,Xe)|0,C=C+Math.imul(zr,ue)|0,U=U+Math.imul(zr,je)|0,U=U+Math.imul(ve,ue)|0,F=F+Math.imul(ve,je)|0,C=C+Math.imul(Er,qe)|0,U=U+Math.imul(Er,De)|0,U=U+Math.imul(mt,qe)|0,F=F+Math.imul(mt,De)|0,C=C+Math.imul(_t,Rt)|0,U=U+Math.imul(_t,Vt)|0,U=U+Math.imul(rt,Rt)|0,F=F+Math.imul(rt,Vt)|0;var gt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(gt>>>26)|0,gt&=67108863,C=Math.imul($t,ht),U=Math.imul($t,Xe),U=U+Math.imul(at,ht)|0,F=Math.imul(at,Xe),C=C+Math.imul(_e,ue)|0,U=U+Math.imul(_e,je)|0,U=U+Math.imul(Be,ue)|0,F=F+Math.imul(Be,je)|0,C=C+Math.imul(zr,qe)|0,U=U+Math.imul(zr,De)|0,U=U+Math.imul(ve,qe)|0,F=F+Math.imul(ve,De)|0,C=C+Math.imul(Er,Rt)|0,U=U+Math.imul(Er,Vt)|0,U=U+Math.imul(mt,Rt)|0,F=F+Math.imul(mt,Vt)|0;var Ie=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,C=Math.imul($t,ue),U=Math.imul($t,je),U=U+Math.imul(at,ue)|0,F=Math.imul(at,je),C=C+Math.imul(_e,qe)|0,U=U+Math.imul(_e,De)|0,U=U+Math.imul(Be,qe)|0,F=F+Math.imul(Be,De)|0,C=C+Math.imul(zr,Rt)|0,U=U+Math.imul(zr,Vt)|0,U=U+Math.imul(ve,Rt)|0,F=F+Math.imul(ve,Vt)|0;var Zt=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,C=Math.imul($t,qe),U=Math.imul($t,De),U=U+Math.imul(at,qe)|0,F=Math.imul(at,De),C=C+Math.imul(_e,Rt)|0,U=U+Math.imul(_e,Vt)|0,U=U+Math.imul(Be,Rt)|0,F=F+Math.imul(Be,Vt)|0;var Ir=(u+C|0)+((U&8191)<<13)|0;u=(F+(U>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,C=Math.imul($t,Rt),U=Math.imul($t,Vt),U=U+Math.imul(at,Rt)|0,F=Math.imul(at,Vt);var $=(u+C|0)+((U&8191)<<13)|0;return u=(F+(U>>>13)|0)+($>>>26)|0,$&=67108863,R[0]=br,R[1]=Rr,R[2]=Dr,R[3]=Pr,R[4]=k,R[5]=a,R[6]=S,R[7]=sn,R[8]=Lr,R[9]=Wr,R[10]=ln,R[11]=yt,R[12]=ot,R[13]=lt,R[14]=gt,R[15]=Ie,R[16]=Zt,R[17]=Ir,R[18]=$,u!==0&&(R[19]=u,E.length++),E};Math.imul||(q=G);function Y(l,A,m){m.negative=A.negative^l.negative,m.length=l.length+A.length;for(var E=0,w=0,x=0;x<m.length-1;x++){var R=w;w=0;for(var u=E&67108863,C=Math.min(x,A.length-1),U=Math.max(0,x-l.length+1);U<=C;U++){var F=x-U,X=l.words[F]|0,Ae=A.words[U]|0,he=X*Ae,$e=he&67108863;R=R+(he/67108864|0)|0,$e=$e+u|0,u=$e&67108863,R=R+($e>>>26)|0,w+=R>>>26,R&=67108863}m.words[x]=u,E=R,R=w}return E!==0?m.words[x]=E:m.length--,m._strip()}function ne(l,A,m){return Y(l,A,m)}n.prototype.mulTo=function(A,m){var E,w=(this||Ct).length+A.length;return(this||Ct).length===10&&A.length===10?E=q(this||Ct,A,m):w<63?E=G(this||Ct,A,m):w<1024?E=Y(this||Ct,A,m):E=ne(this||Ct,A,m),E},n.prototype.mul=function(A){var m=new n(null);return m.words=new Array((this||Ct).length+A.length),this.mulTo(A,m)},n.prototype.mulf=function(A){var m=new n(null);return m.words=new Array((this||Ct).length+A.length),ne(this||Ct,A,m)},n.prototype.imul=function(A){return this.clone().mulTo(A,this||Ct)},n.prototype.imuln=function(A){var m=A<0;m&&(A=-A),r(typeof A=="number"),r(A<67108864);for(var E=0,w=0;w<(this||Ct).length;w++){var x=((this||Ct).words[w]|0)*A,R=(x&67108863)+(E&67108863);E>>=26,E+=x/67108864|0,E+=R>>>26,(this||Ct).words[w]=R&67108863}return E!==0&&((this||Ct).words[w]=E,(this||Ct).length++),m?this.ineg():this||Ct},n.prototype.muln=function(A){return this.clone().imuln(A)},n.prototype.sqr=function(){return this.mul(this||Ct)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(A){var m=P(A);if(m.length===0)return new n(1);for(var E=this||Ct,w=0;w<m.length&&m[w]===0;w++,E=E.sqr());if(++w<m.length)for(var x=E.sqr();w<m.length;w++,x=x.sqr())m[w]!==0&&(E=E.mul(x));return E},n.prototype.iushln=function(A){r(typeof A=="number"&&A>=0);var m=A%26,E=(A-m)/26,w=67108863>>>26-m<<26-m,x;if(m!==0){var R=0;for(x=0;x<(this||Ct).length;x++){var u=(this||Ct).words[x]&w,C=((this||Ct).words[x]|0)-u<<m;(this||Ct).words[x]=C|R,R=u>>>26-m}R&&((this||Ct).words[x]=R,(this||Ct).length++)}if(E!==0){for(x=(this||Ct).length-1;x>=0;x--)(this||Ct).words[x+E]=(this||Ct).words[x];for(x=0;x<E;x++)(this||Ct).words[x]=0;(this||Ct).length+=E}return this._strip()},n.prototype.ishln=function(A){return r((this||Ct).negative===0),this.iushln(A)},n.prototype.iushrn=function(A,m,E){r(typeof A=="number"&&A>=0);var w;m?w=(m-m%26)/26:w=0;var x=A%26,R=Math.min((A-x)/26,(this||Ct).length),u=67108863^67108863>>>x<<x,C=E;if(w-=R,w=Math.max(0,w),C){for(var U=0;U<R;U++)C.words[U]=(this||Ct).words[U];C.length=R}if(R!==0)if((this||Ct).length>R)for((this||Ct).length-=R,U=0;U<(this||Ct).length;U++)(this||Ct).words[U]=(this||Ct).words[U+R];else(this||Ct).words[0]=0,(this||Ct).length=1;var F=0;for(U=(this||Ct).length-1;U>=0&&(F!==0||U>=w);U--){var X=(this||Ct).words[U]|0;(this||Ct).words[U]=F<<26-x|X>>>x,F=X&u}return C&&F!==0&&(C.words[C.length++]=F),(this||Ct).length===0&&((this||Ct).words[0]=0,(this||Ct).length=1),this._strip()},n.prototype.ishrn=function(A,m,E){return r((this||Ct).negative===0),this.iushrn(A,m,E)},n.prototype.shln=function(A){return this.clone().ishln(A)},n.prototype.ushln=function(A){return this.clone().iushln(A)},n.prototype.shrn=function(A){return this.clone().ishrn(A)},n.prototype.ushrn=function(A){return this.clone().iushrn(A)},n.prototype.testn=function(A){r(typeof A=="number"&&A>=0);var m=A%26,E=(A-m)/26,w=1<<m;if((this||Ct).length<=E)return!1;var x=(this||Ct).words[E];return!!(x&w)},n.prototype.imaskn=function(A){r(typeof A=="number"&&A>=0);var m=A%26,E=(A-m)/26;if(r((this||Ct).negative===0,"imaskn works only with positive numbers"),(this||Ct).length<=E)return this||Ct;if(m!==0&&E++,(this||Ct).length=Math.min(E,(this||Ct).length),m!==0){var w=67108863^67108863>>>m<<m;(this||Ct).words[(this||Ct).length-1]&=w}return this._strip()},n.prototype.maskn=function(A){return this.clone().imaskn(A)},n.prototype.iaddn=function(A){return r(typeof A=="number"),r(A<67108864),A<0?this.isubn(-A):(this||Ct).negative!==0?(this||Ct).length===1&&((this||Ct).words[0]|0)<=A?((this||Ct).words[0]=A-((this||Ct).words[0]|0),(this||Ct).negative=0,this||Ct):((this||Ct).negative=0,this.isubn(A),(this||Ct).negative=1,this||Ct):this._iaddn(A)},n.prototype._iaddn=function(A){(this||Ct).words[0]+=A;for(var m=0;m<(this||Ct).length&&(this||Ct).words[m]>=67108864;m++)(this||Ct).words[m]-=67108864,m===(this||Ct).length-1?(this||Ct).words[m+1]=1:(this||Ct).words[m+1]++;return(this||Ct).length=Math.max((this||Ct).length,m+1),this||Ct},n.prototype.isubn=function(A){if(r(typeof A=="number"),r(A<67108864),A<0)return this.iaddn(-A);if((this||Ct).negative!==0)return(this||Ct).negative=0,this.iaddn(A),(this||Ct).negative=1,this||Ct;if((this||Ct).words[0]-=A,(this||Ct).length===1&&(this||Ct).words[0]<0)(this||Ct).words[0]=-(this||Ct).words[0],(this||Ct).negative=1;else for(var m=0;m<(this||Ct).length&&(this||Ct).words[m]<0;m++)(this||Ct).words[m]+=67108864,(this||Ct).words[m+1]-=1;return this._strip()},n.prototype.addn=function(A){return this.clone().iaddn(A)},n.prototype.subn=function(A){return this.clone().isubn(A)},n.prototype.iabs=function(){return(this||Ct).negative=0,this||Ct},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(A,m,E){var w=A.length+E,x;this._expand(w);var R,u=0;for(x=0;x<A.length;x++){R=((this||Ct).words[x+E]|0)+u;var C=(A.words[x]|0)*m;R-=C&67108863,u=(R>>26)-(C/67108864|0),(this||Ct).words[x+E]=R&67108863}for(;x<(this||Ct).length-E;x++)R=((this||Ct).words[x+E]|0)+u,u=R>>26,(this||Ct).words[x+E]=R&67108863;if(u===0)return this._strip();for(r(u===-1),u=0,x=0;x<(this||Ct).length;x++)R=-((this||Ct).words[x]|0)+u,u=R>>26,(this||Ct).words[x]=R&67108863;return(this||Ct).negative=1,this._strip()},n.prototype._wordDiv=function(A,m){var E=(this||Ct).length-A.length,w=this.clone(),x=A,R=x.words[x.length-1]|0,u=this._countBits(R);E=26-u,E!==0&&(x=x.ushln(E),w.iushln(E),R=x.words[x.length-1]|0);var C=w.length-x.length,U;if(m!=="mod"){U=new n(null),U.length=C+1,U.words=new Array(U.length);for(var F=0;F<U.length;F++)U.words[F]=0}var X=w.clone()._ishlnsubmul(x,1,C);X.negative===0&&(w=X,U&&(U.words[C]=1));for(var Ae=C-1;Ae>=0;Ae--){var he=(w.words[x.length+Ae]|0)*67108864+(w.words[x.length+Ae-1]|0);for(he=Math.min(he/R|0,67108863),w._ishlnsubmul(x,he,Ae);w.negative!==0;)he--,w.negative=0,w._ishlnsubmul(x,1,Ae),w.isZero()||(w.negative^=1);U&&(U.words[Ae]=he)}return U&&U._strip(),w._strip(),m!=="div"&&E!==0&&w.iushrn(E),{div:U||null,mod:w}},n.prototype.divmod=function(A,m,E){if(r(!A.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var w,x,R;return(this||Ct).negative!==0&&A.negative===0?(R=this.neg().divmod(A,m),m!=="mod"&&(w=R.div.neg()),m!=="div"&&(x=R.mod.neg(),E&&x.negative!==0&&x.iadd(A)),{div:w,mod:x}):(this||Ct).negative===0&&A.negative!==0?(R=this.divmod(A.neg(),m),m!=="mod"&&(w=R.div.neg()),{div:w,mod:R.mod}):((this||Ct).negative&A.negative)!==0?(R=this.neg().divmod(A.neg(),m),m!=="div"&&(x=R.mod.neg(),E&&x.negative!==0&&x.isub(A)),{div:R.div,mod:x}):A.length>(this||Ct).length||this.cmp(A)<0?{div:new n(0),mod:this||Ct}:A.length===1?m==="div"?{div:this.divn(A.words[0]),mod:null}:m==="mod"?{div:null,mod:new n(this.modrn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new n(this.modrn(A.words[0]))}:this._wordDiv(A,m)},n.prototype.div=function(A){return this.divmod(A,"div",!1).div},n.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},n.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},n.prototype.divRound=function(A){var m=this.divmod(A);if(m.mod.isZero())return m.div;var E=m.div.negative!==0?m.mod.isub(A):m.mod,w=A.ushrn(1),x=A.andln(1),R=E.cmp(w);return R<0||x===1&&R===0?m.div:m.div.negative!==0?m.div.isubn(1):m.div.iaddn(1)},n.prototype.modrn=function(A){var m=A<0;m&&(A=-A),r(A<=67108863);for(var E=(1<<26)%A,w=0,x=(this||Ct).length-1;x>=0;x--)w=(E*w+((this||Ct).words[x]|0))%A;return m?-w:w},n.prototype.modn=function(A){return this.modrn(A)},n.prototype.idivn=function(A){var m=A<0;m&&(A=-A),r(A<=67108863);for(var E=0,w=(this||Ct).length-1;w>=0;w--){var x=((this||Ct).words[w]|0)+E*67108864;(this||Ct).words[w]=x/A|0,E=x%A}return this._strip(),m?this.ineg():this||Ct},n.prototype.divn=function(A){return this.clone().idivn(A)},n.prototype.egcd=function(A){r(A.negative===0),r(!A.isZero());var m=this||Ct,E=A.clone();m.negative!==0?m=m.umod(A):m=m.clone();for(var w=new n(1),x=new n(0),R=new n(0),u=new n(1),C=0;m.isEven()&&E.isEven();)m.iushrn(1),E.iushrn(1),++C;for(var U=E.clone(),F=m.clone();!m.isZero();){for(var X=0,Ae=1;(m.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(m.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(U),x.isub(F)),w.iushrn(1),x.iushrn(1);for(var he=0,$e=1;(E.words[0]&$e)===0&&he<26;++he,$e<<=1);if(he>0)for(E.iushrn(he);he-- >0;)(R.isOdd()||u.isOdd())&&(R.iadd(U),u.isub(F)),R.iushrn(1),u.iushrn(1);m.cmp(E)>=0?(m.isub(E),w.isub(R),x.isub(u)):(E.isub(m),R.isub(w),u.isub(x))}return{a:R,b:u,gcd:E.iushln(C)}},n.prototype._invmp=function(A){r(A.negative===0),r(!A.isZero());var m=this||Ct,E=A.clone();m.negative!==0?m=m.umod(A):m=m.clone();for(var w=new n(1),x=new n(0),R=E.clone();m.cmpn(1)>0&&E.cmpn(1)>0;){for(var u=0,C=1;(m.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(m.iushrn(u);u-- >0;)w.isOdd()&&w.iadd(R),w.iushrn(1);for(var U=0,F=1;(E.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(E.iushrn(U);U-- >0;)x.isOdd()&&x.iadd(R),x.iushrn(1);m.cmp(E)>=0?(m.isub(E),w.isub(x)):(E.isub(m),x.isub(w))}var X;return m.cmpn(1)===0?X=w:X=x,X.cmpn(0)<0&&X.iadd(A),X},n.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var m=this.clone(),E=A.clone();m.negative=0,E.negative=0;for(var w=0;m.isEven()&&E.isEven();w++)m.iushrn(1),E.iushrn(1);do{for(;m.isEven();)m.iushrn(1);for(;E.isEven();)E.iushrn(1);var x=m.cmp(E);if(x<0){var R=m;m=E,E=R}else if(x===0||E.cmpn(1)===0)break;m.isub(E)}while(!0);return E.iushln(w)},n.prototype.invm=function(A){return this.egcd(A).a.umod(A)},n.prototype.isEven=function(){return((this||Ct).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Ct).words[0]&1)===1},n.prototype.andln=function(A){return(this||Ct).words[0]&A},n.prototype.bincn=function(A){r(typeof A=="number");var m=A%26,E=(A-m)/26,w=1<<m;if((this||Ct).length<=E)return this._expand(E+1),(this||Ct).words[E]|=w,this||Ct;for(var x=w,R=E;x!==0&&R<(this||Ct).length;R++){var u=(this||Ct).words[R]|0;u+=x,x=u>>>26,u&=67108863,(this||Ct).words[R]=u}return x!==0&&((this||Ct).words[R]=x,(this||Ct).length++),this||Ct},n.prototype.isZero=function(){return(this||Ct).length===1&&(this||Ct).words[0]===0},n.prototype.cmpn=function(A){var m=A<0;if((this||Ct).negative!==0&&!m)return-1;if((this||Ct).negative===0&&m)return 1;this._strip();var E;if((this||Ct).length>1)E=1;else{m&&(A=-A),r(A<=67108863,"Number is too big");var w=(this||Ct).words[0]|0;E=w===A?0:w<A?-1:1}return(this||Ct).negative!==0?-E|0:E},n.prototype.cmp=function(A){if((this||Ct).negative!==0&&A.negative===0)return-1;if((this||Ct).negative===0&&A.negative!==0)return 1;var m=this.ucmp(A);return(this||Ct).negative!==0?-m|0:m},n.prototype.ucmp=function(A){if((this||Ct).length>A.length)return 1;if((this||Ct).length<A.length)return-1;for(var m=0,E=(this||Ct).length-1;E>=0;E--){var w=(this||Ct).words[E]|0,x=A.words[E]|0;if(w!==x){w<x?m=-1:w>x&&(m=1);break}}return m},n.prototype.gtn=function(A){return this.cmpn(A)===1},n.prototype.gt=function(A){return this.cmp(A)===1},n.prototype.gten=function(A){return this.cmpn(A)>=0},n.prototype.gte=function(A){return this.cmp(A)>=0},n.prototype.ltn=function(A){return this.cmpn(A)===-1},n.prototype.lt=function(A){return this.cmp(A)===-1},n.prototype.lten=function(A){return this.cmpn(A)<=0},n.prototype.lte=function(A){return this.cmp(A)<=0},n.prototype.eqn=function(A){return this.cmpn(A)===0},n.prototype.eq=function(A){return this.cmp(A)===0},n.red=function(A){return new O(A)},n.prototype.toRed=function(A){return r(!(this||Ct).red,"Already a number in reduction context"),r((this||Ct).negative===0,"red works only with positives"),A.convertTo(this||Ct)._forceRed(A)},n.prototype.fromRed=function(){return r((this||Ct).red,"fromRed works only with numbers in reduction context"),(this||Ct).red.convertFrom(this||Ct)},n.prototype._forceRed=function(A){return(this||Ct).red=A,this||Ct},n.prototype.forceRed=function(A){return r(!(this||Ct).red,"Already a number in reduction context"),this._forceRed(A)},n.prototype.redAdd=function(A){return r((this||Ct).red,"redAdd works only with red numbers"),(this||Ct).red.add(this||Ct,A)},n.prototype.redIAdd=function(A){return r((this||Ct).red,"redIAdd works only with red numbers"),(this||Ct).red.iadd(this||Ct,A)},n.prototype.redSub=function(A){return r((this||Ct).red,"redSub works only with red numbers"),(this||Ct).red.sub(this||Ct,A)},n.prototype.redISub=function(A){return r((this||Ct).red,"redISub works only with red numbers"),(this||Ct).red.isub(this||Ct,A)},n.prototype.redShl=function(A){return r((this||Ct).red,"redShl works only with red numbers"),(this||Ct).red.shl(this||Ct,A)},n.prototype.redMul=function(A){return r((this||Ct).red,"redMul works only with red numbers"),(this||Ct).red._verify2(this||Ct,A),(this||Ct).red.mul(this||Ct,A)},n.prototype.redIMul=function(A){return r((this||Ct).red,"redMul works only with red numbers"),(this||Ct).red._verify2(this||Ct,A),(this||Ct).red.imul(this||Ct,A)},n.prototype.redSqr=function(){return r((this||Ct).red,"redSqr works only with red numbers"),(this||Ct).red._verify1(this||Ct),(this||Ct).red.sqr(this||Ct)},n.prototype.redISqr=function(){return r((this||Ct).red,"redISqr works only with red numbers"),(this||Ct).red._verify1(this||Ct),(this||Ct).red.isqr(this||Ct)},n.prototype.redSqrt=function(){return r((this||Ct).red,"redSqrt works only with red numbers"),(this||Ct).red._verify1(this||Ct),(this||Ct).red.sqrt(this||Ct)},n.prototype.redInvm=function(){return r((this||Ct).red,"redInvm works only with red numbers"),(this||Ct).red._verify1(this||Ct),(this||Ct).red.invm(this||Ct)},n.prototype.redNeg=function(){return r((this||Ct).red,"redNeg works only with red numbers"),(this||Ct).red._verify1(this||Ct),(this||Ct).red.neg(this||Ct)},n.prototype.redPow=function(A){return r((this||Ct).red&&!A.red,"redPow(normalNum)"),(this||Ct).red._verify1(this||Ct),(this||Ct).red.pow(this||Ct,A)};var ce={k256:null,p224:null,p192:null,p25519:null};function le(l,A){(this||Ct).name=l,(this||Ct).p=new n(A,16),(this||Ct).n=(this||Ct).p.bitLength(),(this||Ct).k=new n(1).iushln((this||Ct).n).isub((this||Ct).p),(this||Ct).tmp=this._tmp()}le.prototype._tmp=function(){var A=new n(null);return A.words=new Array(Math.ceil((this||Ct).n/13)),A},le.prototype.ireduce=function(A){var m=A,E;do this.split(m,(this||Ct).tmp),m=this.imulK(m),m=m.iadd((this||Ct).tmp),E=m.bitLength();while(E>(this||Ct).n);var w=E<(this||Ct).n?-1:m.ucmp((this||Ct).p);return w===0?(m.words[0]=0,m.length=1):w>0?m.isub((this||Ct).p):m.strip!==void 0?m.strip():m._strip(),m},le.prototype.split=function(A,m){A.iushrn((this||Ct).n,0,m)},le.prototype.imulK=function(A){return A.imul((this||Ct).k)};function pe(){le.call(this||Ct,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(pe,le),pe.prototype.split=function(A,m){for(var E=4194303,w=Math.min(A.length,9),x=0;x<w;x++)m.words[x]=A.words[x];if(m.length=w,A.length<=9){A.words[0]=0,A.length=1;return}var R=A.words[9];for(m.words[m.length++]=R&E,x=10;x<A.length;x++){var u=A.words[x]|0;A.words[x-10]=(u&E)<<4|R>>>22,R=u}R>>>=22,A.words[x-10]=R,R===0&&A.length>10?A.length-=10:A.length-=9},pe.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var m=0,E=0;E<A.length;E++){var w=A.words[E]|0;m+=w*977,A.words[E]=m&67108863,m=w*64+(m/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A};function ae(){le.call(this||Ct,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(ae,le);function W(){le.call(this||Ct,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(W,le);function se(){le.call(this||Ct,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(se,le),se.prototype.imulK=function(A){for(var m=0,E=0;E<A.length;E++){var w=(A.words[E]|0)*19+m,x=w&67108863;w>>>=26,A.words[E]=x,m=w}return m!==0&&(A.words[A.length++]=m),A},n._prime=function(A){if(ce[A])return ce[A];var m;if(A==="k256")m=new pe;else if(A==="p224")m=new ae;else if(A==="p192")m=new W;else if(A==="p25519")m=new se;else throw new Error("Unknown prime "+A);return ce[A]=m,m};function O(l){if(typeof l=="string"){var A=n._prime(l);(this||Ct).m=A.p,(this||Ct).prime=A}else r(l.gtn(1),"modulus must be greater than 1"),(this||Ct).m=l,(this||Ct).prime=null}O.prototype._verify1=function(A){r(A.negative===0,"red works only with positives"),r(A.red,"red works only with red numbers")},O.prototype._verify2=function(A,m){r((A.negative|m.negative)===0,"red works only with positives"),r(A.red&&A.red===m.red,"red works only with red numbers")},O.prototype.imod=function(A){return(this||Ct).prime?(this||Ct).prime.ireduce(A)._forceRed(this||Ct):(_(A,A.umod((this||Ct).m)._forceRed(this||Ct)),A)},O.prototype.neg=function(A){return A.isZero()?A.clone():(this||Ct).m.sub(A)._forceRed(this||Ct)},O.prototype.add=function(A,m){this._verify2(A,m);var E=A.add(m);return E.cmp((this||Ct).m)>=0&&E.isub((this||Ct).m),E._forceRed(this||Ct)},O.prototype.iadd=function(A,m){this._verify2(A,m);var E=A.iadd(m);return E.cmp((this||Ct).m)>=0&&E.isub((this||Ct).m),E},O.prototype.sub=function(A,m){this._verify2(A,m);var E=A.sub(m);return E.cmpn(0)<0&&E.iadd((this||Ct).m),E._forceRed(this||Ct)},O.prototype.isub=function(A,m){this._verify2(A,m);var E=A.isub(m);return E.cmpn(0)<0&&E.iadd((this||Ct).m),E},O.prototype.shl=function(A,m){return this._verify1(A),this.imod(A.ushln(m))},O.prototype.imul=function(A,m){return this._verify2(A,m),this.imod(A.imul(m))},O.prototype.mul=function(A,m){return this._verify2(A,m),this.imod(A.mul(m))},O.prototype.isqr=function(A){return this.imul(A,A.clone())},O.prototype.sqr=function(A){return this.mul(A,A)},O.prototype.sqrt=function(A){if(A.isZero())return A.clone();var m=(this||Ct).m.andln(3);if(r(m%2===1),m===3){var E=(this||Ct).m.add(new n(1)).iushrn(2);return this.pow(A,E)}for(var w=(this||Ct).m.subn(1),x=0;!w.isZero()&&w.andln(1)===0;)x++,w.iushrn(1);r(!w.isZero());var R=new n(1).toRed(this||Ct),u=R.redNeg(),C=(this||Ct).m.subn(1).iushrn(1),U=(this||Ct).m.bitLength();for(U=new n(2*U*U).toRed(this||Ct);this.pow(U,C).cmp(u)!==0;)U.redIAdd(u);for(var F=this.pow(U,w),X=this.pow(A,w.addn(1).iushrn(1)),Ae=this.pow(A,w),he=x;Ae.cmp(R)!==0;){for(var $e=Ae,Ge=0;$e.cmp(R)!==0;Ge++)$e=$e.redSqr();r(Ge<he);var Re=this.pow(F,new n(1).iushln(he-Ge-1));X=X.redMul(Re),F=Re.redSqr(),Ae=Ae.redMul(F),he=Ge}return X},O.prototype.invm=function(A){var m=A._invmp((this||Ct).m);return m.negative!==0?(m.negative=0,this.imod(m).redNeg()):this.imod(m)},O.prototype.pow=function(A,m){if(m.isZero())return new n(1).toRed(this||Ct);if(m.cmpn(1)===0)return A.clone();var E=4,w=new Array(1<<E);w[0]=new n(1).toRed(this||Ct),w[1]=A;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],A);var R=w[0],u=0,C=0,U=m.bitLength()%26;for(U===0&&(U=26),x=m.length-1;x>=0;x--){for(var F=m.words[x],X=U-1;X>=0;X--){var Ae=F>>X&1;if(R!==w[0]&&(R=this.sqr(R)),Ae===0&&u===0){C=0;continue}u<<=1,u|=Ae,C++,!(C!==E&&(x!==0||X!==0))&&(R=this.mul(R,w[u]),C=0,u=0)}U=26}return R},O.prototype.convertTo=function(A){var m=A.umod((this||Ct).m);return m===A?m.clone():m},O.prototype.convertFrom=function(A){var m=A.clone();return m.red=null,m},n.mont=function(A){return new s(A)};function s(l){O.call(this||Ct,l),(this||Ct).shift=(this||Ct).m.bitLength(),(this||Ct).shift%26!==0&&((this||Ct).shift+=26-(this||Ct).shift%26),(this||Ct).r=new n(1).iushln((this||Ct).shift),(this||Ct).r2=this.imod((this||Ct).r.sqr()),(this||Ct).rinv=(this||Ct).r._invmp((this||Ct).m),(this||Ct).minv=(this||Ct).rinv.mul((this||Ct).r).isubn(1).div((this||Ct).m),(this||Ct).minv=(this||Ct).minv.umod((this||Ct).r),(this||Ct).minv=(this||Ct).r.sub((this||Ct).minv)}i(s,O),s.prototype.convertTo=function(A){return this.imod(A.ushln((this||Ct).shift))},s.prototype.convertFrom=function(A){var m=this.imod(A.mul((this||Ct).rinv));return m.red=null,m},s.prototype.imul=function(A,m){if(A.isZero()||m.isZero())return A.words[0]=0,A.length=1,A;var E=A.imul(m),w=E.maskn((this||Ct).shift).mul((this||Ct).minv).imaskn((this||Ct).shift).mul((this||Ct).m),x=E.isub(w).iushrn((this||Ct).shift),R=x;return x.cmp((this||Ct).m)>=0?R=x.isub((this||Ct).m):x.cmpn(0)<0&&(R=x.iadd((this||Ct).m)),R._forceRed(this||Ct)},s.prototype.mul=function(A,m){if(A.isZero()||m.isZero())return new n(0)._forceRed(this||Ct);var E=A.mul(m),w=E.maskn((this||Ct).shift).mul((this||Ct).minv).imaskn((this||Ct).shift).mul((this||Ct).m),x=E.isub(w).iushrn((this||Ct).shift),R=x;return x.cmp((this||Ct).m)>=0?R=x.isub((this||Ct).m):x.cmpn(0)<0&&(R=x.iadd((this||Ct).m)),R._forceRed(this||Ct)},s.prototype.invm=function(A){var m=this.imod(A._invmp((this||Ct).m).mul((this||Ct).r2));return m._forceRed(this||Ct)}})(Hse,xVe)),Hse.exports}function e0e(){if(XFe)return Gse;XFe=!0;var e=Nu.Buffer,t=jue(),r=TO();function i(d){var g=n(d),y=g.toRed(t.mont(d.modulus)).redPow(new t(d.publicExponent)).fromRed();return{blinder:y,unblinder:g.invm(d.modulus)}}function n(d){var g=d.modulus.byteLength(),y;do y=new t(r(g));while(y.cmp(d.modulus)>=0||!y.umod(d.prime1)||!y.umod(d.prime2));return y}function o(d,g){var y=i(g),_=g.modulus.byteLength(),I=new t(d).mul(y.blinder).umod(g.modulus),N=I.toRed(t.mont(g.prime1)),T=I.toRed(t.mont(g.prime2)),M=g.coefficient,D=g.prime1,P=g.prime2,G=N.redPow(g.exponent1).fromRed(),q=T.redPow(g.exponent2).fromRed(),Y=G.isub(q).imul(M).umod(D).imul(P);return q.iadd(Y).imul(y.unblinder).umod(g.modulus).toArrayLike(e,"be",_)}return o.getr=n,Gse=o,Gse}function Pv(){return ZFe||(ZFe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||kt).negative=0,(this||kt).words=null,(this||kt).length=0,(this||kt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||kt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||kt).negative=1,s=-s),s<67108864?((this||kt).words=[s&67108863],(this||kt).length=1):s<4503599627370496?((this||kt).words=[s&67108863,s/67108864&67108863],(this||kt).length=2):(r(s<9007199254740992),(this||kt).words=[s&67108863,s/67108864&67108863,1],(this||kt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||kt).words=[0],(this||kt).length=1,this||kt;(this||kt).length=Math.ceil(s.length/3),(this||kt).words=new Array((this||kt).length);for(var m=0;m<(this||kt).length;m++)(this||kt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||kt).words[E]|=w<<x&67108863,(this||kt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||kt).words[E]|=w<<x&67108863,(this||kt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||kt).length=Math.ceil((s.length-l)/6),(this||kt).words=new Array((this||kt).length);for(var m=0;m<(this||kt).length;m++)(this||kt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||kt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||kt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||kt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||kt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||kt).words=[0],(this||kt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||kt).words[0]+u<67108864?(this||kt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||kt).words[0]+u<67108864?(this||kt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||kt).length);for(var l=0;l<(this||kt).length;l++)s.words[l]=(this||kt).words[l];s.length=(this||kt).length,s.negative=(this||kt).negative,s.red=(this||kt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||kt).length<s;)(this||kt).words[(this||kt).length++]=0;return this||kt},n.prototype.strip=function(){for(;(this||kt).length>1&&(this||kt).words[(this||kt).length-1]===0;)(this||kt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||kt).length===1&&(this||kt).words[0]===0&&((this||kt).negative=0),this||kt},n.prototype.inspect=function(){return((this||kt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||kt).length;w++){var x=(this||kt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||kt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||kt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||kt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||kt).words[0];return(this||kt).length===2?s+=(this||kt).words[1]*67108864:(this||kt).length===3&&(this||kt).words[2]===1?s+=4503599627370496+(this||kt).words[1]*67108864:(this||kt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||kt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||kt).words[(this||kt).length-1],l=this._countBits(s);return((this||kt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||kt).length;l++){var A=this._zeroBits((this||kt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||kt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||kt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||kt).negative^=1),this||kt},n.prototype.iuor=function(s){for(;(this||kt).length<s.length;)(this||kt).words[(this||kt).length++]=0;for(var l=0;l<s.length;l++)(this||kt).words[l]=(this||kt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||kt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||kt).length>s.length?this.clone().ior(s):s.clone().ior(this||kt)},n.prototype.uor=function(s){return(this||kt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||kt)},n.prototype.iuand=function(s){var l;(this||kt).length>s.length?l=s:l=this||kt;for(var A=0;A<l.length;A++)(this||kt).words[A]=(this||kt).words[A]&s.words[A];return(this||kt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||kt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||kt).length>s.length?this.clone().iand(s):s.clone().iand(this||kt)},n.prototype.uand=function(s){return(this||kt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||kt)},n.prototype.iuxor=function(s){var l,A;(this||kt).length>s.length?(l=this||kt,A=s):(l=s,A=this||kt);for(var m=0;m<A.length;m++)(this||kt).words[m]=l.words[m]^A.words[m];if((this||kt)!==l)for(;m<l.length;m++)(this||kt).words[m]=l.words[m];return(this||kt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||kt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||kt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||kt)},n.prototype.uxor=function(s){return(this||kt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||kt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||kt).words[m]=~(this||kt).words[m]&67108863;return A>0&&((this||kt).words[m]=~(this||kt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||kt).words[A]=(this||kt).words[A]|1<<m:(this||kt).words[A]=(this||kt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||kt).negative!==0&&s.negative===0)return(this||kt).negative=0,l=this.isub(s),(this||kt).negative^=1,this._normSign();if((this||kt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||kt).length>s.length?(A=this||kt,m=s):(A=s,m=this||kt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||kt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||kt).words[w]=l&67108863,E=l>>>26;if((this||kt).length=A.length,E!==0)(this||kt).words[(this||kt).length]=E,(this||kt).length++;else if(A!==(this||kt))for(;w<A.length;w++)(this||kt).words[w]=A.words[w];return this||kt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||kt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||kt).negative!==0?((this||kt).negative=0,l=s.sub(this||kt),(this||kt).negative=1,l):(this||kt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||kt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||kt).negative!==0)return(this||kt).negative=0,this.iadd(s),(this||kt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||kt).negative=0,(this||kt).length=1,(this||kt).words[0]=0,this||kt;var m,E;A>0?(m=this||kt,E=s):(m=s,E=this||kt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||kt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||kt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||kt))for(;x<m.length;x++)(this||kt).words[x]=m.words[x];return(this||kt).length=Math.max((this||kt).length,x),m!==(this||kt)&&((this||kt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||kt).length+s.length;return(this||kt).length===10&&s.length===10?A=D(this||kt,s,l):m<63?A=M(this||kt,s,l):m<1024?A=P(this||kt,s,l):A=G(this||kt,s,l),A};function q(O,s){(this||kt).x=O,(this||kt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||kt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||kt).length+s.length),G(this||kt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||kt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||kt).length;A++){var m=((this||kt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||kt).words[A]=E&67108863}return l!==0&&((this||kt).words[A]=l,(this||kt).length++),this||kt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||kt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||kt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||kt).length;E++){var x=(this||kt).words[E]&m,R=((this||kt).words[E]|0)-x<<l;(this||kt).words[E]=R|w,w=x>>>26-l}w&&((this||kt).words[E]=w,(this||kt).length++)}if(A!==0){for(E=(this||kt).length-1;E>=0;E--)(this||kt).words[E+A]=(this||kt).words[E];for(E=0;E<A;E++)(this||kt).words[E]=0;(this||kt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||kt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||kt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||kt).words[u];R.length=w}if(w!==0)if((this||kt).length>w)for((this||kt).length-=w,u=0;u<(this||kt).length;u++)(this||kt).words[u]=(this||kt).words[u+w];else(this||kt).words[0]=0,(this||kt).length=1;var C=0;for(u=(this||kt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||kt).words[u]|0;(this||kt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||kt).length===0&&((this||kt).words[0]=0,(this||kt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||kt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||kt).length<=A)return!1;var E=(this||kt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||kt).negative===0,"imaskn works only with positive numbers"),(this||kt).length<=A)return this||kt;if(l!==0&&A++,(this||kt).length=Math.min(A,(this||kt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||kt).words[(this||kt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||kt).negative!==0?(this||kt).length===1&&((this||kt).words[0]|0)<s?((this||kt).words[0]=s-((this||kt).words[0]|0),(this||kt).negative=0,this||kt):((this||kt).negative=0,this.isubn(s),(this||kt).negative=1,this||kt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||kt).words[0]+=s;for(var l=0;l<(this||kt).length&&(this||kt).words[l]>=67108864;l++)(this||kt).words[l]-=67108864,l===(this||kt).length-1?(this||kt).words[l+1]=1:(this||kt).words[l+1]++;return(this||kt).length=Math.max((this||kt).length,l+1),this||kt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||kt).negative!==0)return(this||kt).negative=0,this.iaddn(s),(this||kt).negative=1,this||kt;if((this||kt).words[0]-=s,(this||kt).length===1&&(this||kt).words[0]<0)(this||kt).words[0]=-(this||kt).words[0],(this||kt).negative=1;else for(var l=0;l<(this||kt).length&&(this||kt).words[l]<0;l++)(this||kt).words[l]+=67108864,(this||kt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||kt).negative=0,this||kt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||kt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||kt).words[E+A]=w&67108863}for(;E<(this||kt).length-A;E++)w=((this||kt).words[E+A]|0)+x,x=w>>26,(this||kt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||kt).length;E++)w=-((this||kt).words[E]|0)+x,x=w>>26,(this||kt).words[E]=w&67108863;return(this||kt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||kt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||kt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||kt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||kt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||kt).length||this.cmp(s)<0?{div:new n(0),mod:this||kt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||kt).length-1;m>=0;m--)A=(l*A+((this||kt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||kt).length-1;A>=0;A--){var m=((this||kt).words[A]|0)+l*67108864;(this||kt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||kt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||kt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||kt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||kt).words[0]&1)===1},n.prototype.andln=function(s){return(this||kt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||kt).length<=A)return this._expand(A+1),(this||kt).words[A]|=m,this||kt;for(var E=m,w=A;E!==0&&w<(this||kt).length;w++){var x=(this||kt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||kt).words[w]=x}return E!==0&&((this||kt).words[w]=E,(this||kt).length++),this||kt},n.prototype.isZero=function(){return(this||kt).length===1&&(this||kt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||kt).negative!==0&&!l)return-1;if((this||kt).negative===0&&l)return 1;this.strip();var A;if((this||kt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||kt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||kt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||kt).negative!==0&&s.negative===0)return-1;if((this||kt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||kt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||kt).length>s.length)return 1;if((this||kt).length<s.length)return-1;for(var l=0,A=(this||kt).length-1;A>=0;A--){var m=(this||kt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||kt).red,"Already a number in reduction context"),r((this||kt).negative===0,"red works only with positives"),s.convertTo(this||kt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||kt).red,"fromRed works only with numbers in reduction context"),(this||kt).red.convertFrom(this||kt)},n.prototype._forceRed=function(s){return(this||kt).red=s,this||kt},n.prototype.forceRed=function(s){return r(!(this||kt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||kt).red,"redAdd works only with red numbers"),(this||kt).red.add(this||kt,s)},n.prototype.redIAdd=function(s){return r((this||kt).red,"redIAdd works only with red numbers"),(this||kt).red.iadd(this||kt,s)},n.prototype.redSub=function(s){return r((this||kt).red,"redSub works only with red numbers"),(this||kt).red.sub(this||kt,s)},n.prototype.redISub=function(s){return r((this||kt).red,"redISub works only with red numbers"),(this||kt).red.isub(this||kt,s)},n.prototype.redShl=function(s){return r((this||kt).red,"redShl works only with red numbers"),(this||kt).red.shl(this||kt,s)},n.prototype.redMul=function(s){return r((this||kt).red,"redMul works only with red numbers"),(this||kt).red._verify2(this||kt,s),(this||kt).red.mul(this||kt,s)},n.prototype.redIMul=function(s){return r((this||kt).red,"redMul works only with red numbers"),(this||kt).red._verify2(this||kt,s),(this||kt).red.imul(this||kt,s)},n.prototype.redSqr=function(){return r((this||kt).red,"redSqr works only with red numbers"),(this||kt).red._verify1(this||kt),(this||kt).red.sqr(this||kt)},n.prototype.redISqr=function(){return r((this||kt).red,"redISqr works only with red numbers"),(this||kt).red._verify1(this||kt),(this||kt).red.isqr(this||kt)},n.prototype.redSqrt=function(){return r((this||kt).red,"redSqrt works only with red numbers"),(this||kt).red._verify1(this||kt),(this||kt).red.sqrt(this||kt)},n.prototype.redInvm=function(){return r((this||kt).red,"redInvm works only with red numbers"),(this||kt).red._verify1(this||kt),(this||kt).red.invm(this||kt)},n.prototype.redNeg=function(){return r((this||kt).red,"redNeg works only with red numbers"),(this||kt).red._verify1(this||kt),(this||kt).red.neg(this||kt)},n.prototype.redPow=function(s){return r((this||kt).red&&!s.red,"redPow(normalNum)"),(this||kt).red._verify1(this||kt),(this||kt).red.pow(this||kt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||kt).name=O,(this||kt).p=new n(s,16),(this||kt).n=(this||kt).p.bitLength(),(this||kt).k=new n(1).iushln((this||kt).n).isub((this||kt).p),(this||kt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||kt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||kt).tmp),l=this.imulK(l),l=l.iadd((this||kt).tmp),A=l.bitLength();while(A>(this||kt).n);var m=A<(this||kt).n?-1:l.ucmp((this||kt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||kt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||kt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||kt).k)};function ce(){ne.call(this||kt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||kt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||kt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||kt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||kt).m=s.p,(this||kt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||kt).m=O,(this||kt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||kt).prime?(this||kt).prime.ireduce(s)._forceRed(this||kt):s.umod((this||kt).m)._forceRed(this||kt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||kt).m.sub(s)._forceRed(this||kt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||kt).m)>=0&&A.isub((this||kt).m),A._forceRed(this||kt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||kt).m)>=0&&A.isub((this||kt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||kt).m),A._forceRed(this||kt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||kt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||kt).m.andln(3);if(r(l%2===1),l===3){var A=(this||kt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||kt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||kt),x=w.redNeg(),R=(this||kt).m.subn(1).iushrn(1),u=(this||kt).m.bitLength();for(u=new n(2*u*u).toRed(this||kt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||kt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||kt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||kt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||kt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||kt,O),(this||kt).shift=(this||kt).m.bitLength(),(this||kt).shift%26!==0&&((this||kt).shift+=26-(this||kt).shift%26),(this||kt).r=new n(1).iushln((this||kt).shift),(this||kt).r2=this.imod((this||kt).r.sqr()),(this||kt).rinv=(this||kt).r._invmp((this||kt).m),(this||kt).minv=(this||kt).rinv.mul((this||kt).r).isubn(1).div((this||kt).m),(this||kt).minv=(this||kt).minv.umod((this||kt).r),(this||kt).minv=(this||kt).r.sub((this||kt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||kt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||kt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||kt).shift).mul((this||kt).minv).imaskn((this||kt).shift).mul((this||kt).m),E=A.isub(m).iushrn((this||kt).shift),w=E;return E.cmp((this||kt).m)>=0?w=E.isub((this||kt).m):E.cmpn(0)<0&&(w=E.iadd((this||kt).m)),w._forceRed(this||kt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||kt);var A=s.mul(l),m=A.maskn((this||kt).shift).mul((this||kt).minv).imaskn((this||kt).shift).mul((this||kt).m),E=A.isub(m).iushrn((this||kt).shift),w=E;return E.cmp((this||kt).m)>=0?w=E.isub((this||kt).m):E.cmpn(0)<0&&(w=E.iadd((this||kt).m)),w._forceRed(this||kt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||kt).m).mul((this||kt).r2));return l._forceRed(this||kt)}})(qse,TVe)),qse.exports}function BVe(){if(jFe)return Vse;jFe=!0;var e=Vse;function t(n,o){if(Array.isArray(n))return n.slice();if(!n)return[];var d=[];if(typeof n!="string"){for(var g=0;g<n.length;g++)d[g]=n[g]|0;return d}if(o==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var g=0;g<n.length;g+=2)d.push(parseInt(n[g]+n[g+1],16))}else for(var g=0;g<n.length;g++){var y=n.charCodeAt(g),_=y>>8,I=y&255;_?d.push(_,I):d.push(I)}return d}e.toArray=t;function r(n){return n.length===1?"0"+n:n}e.zero2=r;function i(n){for(var o="",d=0;d<n.length;d++)o+=r(n[d].toString(16));return o}return e.toHex=i,e.encode=function(o,d){return d==="hex"?i(o):o},Vse}function $g(){if(eQe)return Jse;eQe=!0;var e=Jse,t=Pv(),r=Zy(),i=BVe();e.assert=r,e.toArray=i.toArray,e.zero2=i.zero2,e.toHex=i.toHex,e.encode=i.encode;function n(_,I,N){var T=new Array(Math.max(_.bitLength(),N)+1);T.fill(0);for(var M=1<<I+1,D=_.clone(),P=0;P<T.length;P++){var G,q=D.andln(M-1);D.isOdd()?(q>(M>>1)-1?G=(M>>1)-q:G=q,D.isubn(G)):G=0,T[P]=G,D.iushrn(1)}return T}e.getNAF=n;function o(_,I){var N=[[],[]];_=_.clone(),I=I.clone();for(var T=0,M=0,D;_.cmpn(-T)>0||I.cmpn(-M)>0;){var P=_.andln(3)+T&3,G=I.andln(3)+M&3;P===3&&(P=-1),G===3&&(G=-1);var q;(P&1)===0?q=0:(D=_.andln(7)+T&7,(D===3||D===5)&&G===2?q=-P:q=P),N[0].push(q);var Y;(G&1)===0?Y=0:(D=I.andln(7)+M&7,(D===3||D===5)&&P===2?Y=-G:Y=G),N[1].push(Y),2*T===q+1&&(T=1-T),2*M===Y+1&&(M=1-M),_.iushrn(1),I.iushrn(1)}return N}e.getJSF=o;function d(_,I,N){var T="_"+I;_.prototype[I]=function(){return this[T]!==void 0?this[T]:this[T]=N.call(this)}}e.cachedProperty=d;function g(_){return typeof _=="string"?e.toArray(_,"hex"):_}e.parseBytes=g;function y(_){return new t(_,"hex","le")}return e.intFromLE=y,Jse}function fV(){if(tQe)return zse;tQe=!0;var e=Pv(),t=$g(),r=t.getNAF,i=t.getJSF,n=t.assert;function o(g,y){this.type=g,this.p=new e(y.p,16),this.red=y.prime?e.red(y.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=y.n&&new e(y.n,16),this.g=y.g&&this.pointFromJSON(y.g,y.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var _=this.n&&this.p.div(this.n);!_||_.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}zse=o,o.prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(y,_){n(y.precomputed);var I=y._getDoubles(),N=r(_,1,this._bitLength),T=(1<<I.step+1)-(I.step%2===0?2:1);T/=3;var M=[],D,P;for(D=0;D<N.length;D+=I.step){P=0;for(var G=D+I.step-1;G>=D;G--)P=(P<<1)+N[G];M.push(P)}for(var q=this.jpoint(null,null,null),Y=this.jpoint(null,null,null),ne=T;ne>0;ne--){for(D=0;D<M.length;D++)P=M[D],P===ne?Y=Y.mixedAdd(I.points[D]):P===-ne&&(Y=Y.mixedAdd(I.points[D].neg()));q=q.add(Y)}return q.toP()},o.prototype._wnafMul=function(y,_){var I=4,N=y._getNAFPoints(I);I=N.wnd;for(var T=N.points,M=r(_,I,this._bitLength),D=this.jpoint(null,null,null),P=M.length-1;P>=0;P--){for(var G=0;P>=0&&M[P]===0;P--)G++;if(P>=0&&G++,D=D.dblp(G),P<0)break;var q=M[P];n(q!==0),y.type==="affine"?q>0?D=D.mixedAdd(T[q-1>>1]):D=D.mixedAdd(T[-q-1>>1].neg()):q>0?D=D.add(T[q-1>>1]):D=D.add(T[-q-1>>1].neg())}return y.type==="affine"?D.toP():D},o.prototype._wnafMulAdd=function(y,_,I,N,T){var M=this._wnafT1,D=this._wnafT2,P=this._wnafT3,G=0,q,Y,ne;for(q=0;q<N;q++){ne=_[q];var ce=ne._getNAFPoints(y);M[q]=ce.wnd,D[q]=ce.points}for(q=N-1;q>=1;q-=2){var le=q-1,pe=q;if(M[le]!==1||M[pe]!==1){P[le]=r(I[le],M[le],this._bitLength),P[pe]=r(I[pe],M[pe],this._bitLength),G=Math.max(P[le].length,G),G=Math.max(P[pe].length,G);continue}var ae=[_[le],null,null,_[pe]];_[le].y.cmp(_[pe].y)===0?(ae[1]=_[le].add(_[pe]),ae[2]=_[le].toJ().mixedAdd(_[pe].neg())):_[le].y.cmp(_[pe].y.redNeg())===0?(ae[1]=_[le].toJ().mixedAdd(_[pe]),ae[2]=_[le].add(_[pe].neg())):(ae[1]=_[le].toJ().mixedAdd(_[pe]),ae[2]=_[le].toJ().mixedAdd(_[pe].neg()));var W=[-3,-1,-5,-7,0,7,5,1,3],se=i(I[le],I[pe]);for(G=Math.max(se[0].length,G),P[le]=new Array(G),P[pe]=new Array(G),Y=0;Y<G;Y++){var O=se[0][Y]|0,s=se[1][Y]|0;P[le][Y]=W[(O+1)*3+(s+1)],P[pe][Y]=0,D[le]=ae}}var l=this.jpoint(null,null,null),A=this._wnafT4;for(q=G;q>=0;q--){for(var m=0;q>=0;){var E=!0;for(Y=0;Y<N;Y++)A[Y]=P[Y][q]|0,A[Y]!==0&&(E=!1);if(!E)break;m++,q--}if(q>=0&&m++,l=l.dblp(m),q<0)break;for(Y=0;Y<N;Y++){var w=A[Y];w!==0&&(w>0?ne=D[Y][w-1>>1]:w<0&&(ne=D[Y][-w-1>>1].neg()),ne.type==="affine"?l=l.mixedAdd(ne):l=l.add(ne))}}for(q=0;q<N;q++)D[q]=null;return T?l:l.toP()};function d(g,y){this.curve=g,this.type=y,this.precomputed=null}return o.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(y,_){y=t.toArray(y,_);var I=this.p.byteLength();if((y[0]===4||y[0]===6||y[0]===7)&&y.length-1===2*I){y[0]===6?n(y[y.length-1]%2===0):y[0]===7&&n(y[y.length-1]%2===1);var N=this.point(y.slice(1,1+I),y.slice(1+I,1+2*I));return N}else if((y[0]===2||y[0]===3)&&y.length-1===I)return this.pointFromX(y.slice(1,1+I),y[0]===3);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(y){return this.encode(y,!0)},d.prototype._encode=function(y){var _=this.curve.p.byteLength(),I=this.getX().toArray("be",_);return y?[this.getY().isEven()?2:3].concat(I):[4].concat(I,this.getY().toArray("be",_))},d.prototype.encode=function(y,_){return t.encode(this._encode(_),y)},d.prototype.precompute=function(y){if(this.precomputed)return this;var _={doubles:null,naf:null,beta:null};return _.naf=this._getNAFPoints(8),_.doubles=this._getDoubles(4,y),_.beta=this._getBeta(),this.precomputed=_,this},d.prototype._hasDoubles=function(y){if(!this.precomputed)return!1;var _=this.precomputed.doubles;return _?_.points.length>=Math.ceil((y.bitLength()+1)/_.step):!1},d.prototype._getDoubles=function(y,_){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var I=[this],N=this,T=0;T<_;T+=y){for(var M=0;M<y;M++)N=N.dbl();I.push(N)}return{step:y,points:I}},d.prototype._getNAFPoints=function(y){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var _=[this],I=(1<<y)-1,N=I===1?null:this.dbl(),T=1;T<I;T++)_[T]=_[T-1].add(N);return{wnd:y,points:_}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(y){for(var _=this,I=0;I<y;I++)_=_.dbl();return _},zse}function q5t(){if(rQe)return Kse;rQe=!0;var e=$g(),t=Pv(),r=La(),i=fV(),n=e.assert;function o(y){i.call(this,"short",y),this.a=new t(y.a,16).toRed(this.red),this.b=new t(y.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(y),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(o,i),Kse=o,o.prototype._getEndomorphism=function(_){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var I,N;if(_.beta)I=new t(_.beta,16).toRed(this.red);else{var T=this._getEndoRoots(this.p);I=T[0].cmp(T[1])<0?T[0]:T[1],I=I.toRed(this.red)}if(_.lambda)N=new t(_.lambda,16);else{var M=this._getEndoRoots(this.n);this.g.mul(M[0]).x.cmp(this.g.x.redMul(I))===0?N=M[0]:(N=M[1],n(this.g.mul(N).x.cmp(this.g.x.redMul(I))===0))}var D;return _.basis?D=_.basis.map(function(P){return{a:new t(P.a,16),b:new t(P.b,16)}}):D=this._getEndoBasis(N),{beta:I,lambda:N,basis:D}}},o.prototype._getEndoRoots=function(_){var I=_===this.p?this.red:t.mont(_),N=new t(2).toRed(I).redInvm(),T=N.redNeg(),M=new t(3).toRed(I).redNeg().redSqrt().redMul(N),D=T.redAdd(M).fromRed(),P=T.redSub(M).fromRed();return[D,P]},o.prototype._getEndoBasis=function(_){for(var I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),N=_,T=this.n.clone(),M=new t(1),D=new t(0),P=new t(0),G=new t(1),q,Y,ne,ce,le,pe,ae,W=0,se,O;N.cmpn(0)!==0;){var s=T.div(N);se=T.sub(s.mul(N)),O=P.sub(s.mul(M));var l=G.sub(s.mul(D));if(!ne&&se.cmp(I)<0)q=ae.neg(),Y=M,ne=se.neg(),ce=O;else if(ne&&++W===2)break;ae=se,T=N,N=se,P=M,M=O,G=D,D=l}le=se.neg(),pe=O;var A=ne.sqr().add(ce.sqr()),m=le.sqr().add(pe.sqr());return m.cmp(A)>=0&&(le=q,pe=Y),ne.negative&&(ne=ne.neg(),ce=ce.neg()),le.negative&&(le=le.neg(),pe=pe.neg()),[{a:ne,b:ce},{a:le,b:pe}]},o.prototype._endoSplit=function(_){var I=this.endo.basis,N=I[0],T=I[1],M=T.b.mul(_).divRound(this.n),D=N.b.neg().mul(_).divRound(this.n),P=M.mul(N.a),G=D.mul(T.a),q=M.mul(N.b),Y=D.mul(T.b),ne=_.sub(P).sub(G),ce=q.add(Y).neg();return{k1:ne,k2:ce}},o.prototype.pointFromX=function(_,I){_=new t(_,16),_.red||(_=_.toRed(this.red));var N=_.redSqr().redMul(_).redIAdd(_.redMul(this.a)).redIAdd(this.b),T=N.redSqrt();if(T.redSqr().redSub(N).cmp(this.zero)!==0)throw new Error("invalid point");var M=T.fromRed().isOdd();return(I&&!M||!I&&M)&&(T=T.redNeg()),this.point(_,T)},o.prototype.validate=function(_){if(_.inf)return!0;var I=_.x,N=_.y,T=this.a.redMul(I),M=I.redSqr().redMul(I).redIAdd(T).redIAdd(this.b);return N.redSqr().redISub(M).cmpn(0)===0},o.prototype._endoWnafMulAdd=function(_,I,N){for(var T=this._endoWnafT1,M=this._endoWnafT2,D=0;D<_.length;D++){var P=this._endoSplit(I[D]),G=_[D],q=G._getBeta();P.k1.negative&&(P.k1.ineg(),G=G.neg(!0)),P.k2.negative&&(P.k2.ineg(),q=q.neg(!0)),T[D*2]=G,T[D*2+1]=q,M[D*2]=P.k1,M[D*2+1]=P.k2}for(var Y=this._wnafMulAdd(1,T,M,D*2,N),ne=0;ne<D*2;ne++)T[ne]=null,M[ne]=null;return Y};function d(y,_,I,N){i.BasePoint.call(this,y,"affine"),_===null&&I===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(_,16),this.y=new t(I,16),N&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(d,i.BasePoint),o.prototype.point=function(_,I,N){return new d(this,_,I,N)},o.prototype.pointFromJSON=function(_,I){return d.fromJSON(this,_,I)},d.prototype._getBeta=function(){if(this.curve.endo){var _=this.precomputed;if(_&&_.beta)return _.beta;var I=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(_){var N=this.curve,T=function(M){return N.point(M.x.redMul(N.endo.beta),M.y)};_.beta=I,I.precomputed={beta:null,naf:_.naf&&{wnd:_.naf.wnd,points:_.naf.points.map(T)},doubles:_.doubles&&{step:_.doubles.step,points:_.doubles.points.map(T)}}}return I}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(_,I,N){typeof I=="string"&&(I=JSON.parse(I));var T=_.point(I[0],I[1],N);if(!I[2])return T;function M(P){return _.point(P[0],P[1],N)}var D=I[2];return T.precomputed={beta:null,doubles:D.doubles&&{step:D.doubles.step,points:[T].concat(D.doubles.points.map(M))},naf:D.naf&&{wnd:D.naf.wnd,points:[T].concat(D.naf.points.map(M))}},T},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(_){if(this.inf)return _;if(_.inf)return this;if(this.eq(_))return this.dbl();if(this.neg().eq(_))return this.curve.point(null,null);if(this.x.cmp(_.x)===0)return this.curve.point(null,null);var I=this.y.redSub(_.y);I.cmpn(0)!==0&&(I=I.redMul(this.x.redSub(_.x).redInvm()));var N=I.redSqr().redISub(this.x).redISub(_.x),T=I.redMul(this.x.redSub(N)).redISub(this.y);return this.curve.point(N,T)},d.prototype.dbl=function(){if(this.inf)return this;var _=this.y.redAdd(this.y);if(_.cmpn(0)===0)return this.curve.point(null,null);var I=this.curve.a,N=this.x.redSqr(),T=_.redInvm(),M=N.redAdd(N).redIAdd(N).redIAdd(I).redMul(T),D=M.redSqr().redISub(this.x.redAdd(this.x)),P=M.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,P)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(_){return _=new t(_,16),this.isInfinity()?this:this._hasDoubles(_)?this.curve._fixedNafMul(this,_):this.curve.endo?this.curve._endoWnafMulAdd([this],[_]):this.curve._wnafMul(this,_)},d.prototype.mulAdd=function(_,I,N){var T=[this,I],M=[_,N];return this.curve.endo?this.curve._endoWnafMulAdd(T,M):this.curve._wnafMulAdd(1,T,M,2)},d.prototype.jmulAdd=function(_,I,N){var T=[this,I],M=[_,N];return this.curve.endo?this.curve._endoWnafMulAdd(T,M,!0):this.curve._wnafMulAdd(1,T,M,2,!0)},d.prototype.eq=function(_){return this===_||this.inf===_.inf&&(this.inf||this.x.cmp(_.x)===0&&this.y.cmp(_.y)===0)},d.prototype.neg=function(_){if(this.inf)return this;var I=this.curve.point(this.x,this.y.redNeg());if(_&&this.precomputed){var N=this.precomputed,T=function(M){return M.neg()};I.precomputed={naf:N.naf&&{wnd:N.naf.wnd,points:N.naf.points.map(T)},doubles:N.doubles&&{step:N.doubles.step,points:N.doubles.points.map(T)}}}return I},d.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var _=this.curve.jpoint(this.x,this.y,this.curve.one);return _};function g(y,_,I,N){i.BasePoint.call(this,y,"jacobian"),_===null&&I===null&&N===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(_,16),this.y=new t(I,16),this.z=new t(N,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return r(g,i.BasePoint),o.prototype.jpoint=function(_,I,N){return new g(this,_,I,N)},g.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var _=this.z.redInvm(),I=_.redSqr(),N=this.x.redMul(I),T=this.y.redMul(I).redMul(_);return this.curve.point(N,T)},g.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},g.prototype.add=function(_){if(this.isInfinity())return _;if(_.isInfinity())return this;var I=_.z.redSqr(),N=this.z.redSqr(),T=this.x.redMul(I),M=_.x.redMul(N),D=this.y.redMul(I.redMul(_.z)),P=_.y.redMul(N.redMul(this.z)),G=T.redSub(M),q=D.redSub(P);if(G.cmpn(0)===0)return q.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Y=G.redSqr(),ne=Y.redMul(G),ce=T.redMul(Y),le=q.redSqr().redIAdd(ne).redISub(ce).redISub(ce),pe=q.redMul(ce.redISub(le)).redISub(D.redMul(ne)),ae=this.z.redMul(_.z).redMul(G);return this.curve.jpoint(le,pe,ae)},g.prototype.mixedAdd=function(_){if(this.isInfinity())return _.toJ();if(_.isInfinity())return this;var I=this.z.redSqr(),N=this.x,T=_.x.redMul(I),M=this.y,D=_.y.redMul(I).redMul(this.z),P=N.redSub(T),G=M.redSub(D);if(P.cmpn(0)===0)return G.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var q=P.redSqr(),Y=q.redMul(P),ne=N.redMul(q),ce=G.redSqr().redIAdd(Y).redISub(ne).redISub(ne),le=G.redMul(ne.redISub(ce)).redISub(M.redMul(Y)),pe=this.z.redMul(P);return this.curve.jpoint(ce,le,pe)},g.prototype.dblp=function(_){if(_===0)return this;if(this.isInfinity())return this;if(!_)return this.dbl();var I;if(this.curve.zeroA||this.curve.threeA){var N=this;for(I=0;I<_;I++)N=N.dbl();return N}var T=this.curve.a,M=this.curve.tinv,D=this.x,P=this.y,G=this.z,q=G.redSqr().redSqr(),Y=P.redAdd(P);for(I=0;I<_;I++){var ne=D.redSqr(),ce=Y.redSqr(),le=ce.redSqr(),pe=ne.redAdd(ne).redIAdd(ne).redIAdd(T.redMul(q)),ae=D.redMul(ce),W=pe.redSqr().redISub(ae.redAdd(ae)),se=ae.redISub(W),O=pe.redMul(se);O=O.redIAdd(O).redISub(le);var s=Y.redMul(G);I+1<_&&(q=q.redMul(le)),D=W,G=s,Y=O}return this.curve.jpoint(D,Y.redMul(M),G)},g.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},g.prototype._zeroDbl=function(){var _,I,N;if(this.zOne){var T=this.x.redSqr(),M=this.y.redSqr(),D=M.redSqr(),P=this.x.redAdd(M).redSqr().redISub(T).redISub(D);P=P.redIAdd(P);var G=T.redAdd(T).redIAdd(T),q=G.redSqr().redISub(P).redISub(P),Y=D.redIAdd(D);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),_=q,I=G.redMul(P.redISub(q)).redISub(Y),N=this.y.redAdd(this.y)}else{var ne=this.x.redSqr(),ce=this.y.redSqr(),le=ce.redSqr(),pe=this.x.redAdd(ce).redSqr().redISub(ne).redISub(le);pe=pe.redIAdd(pe);var ae=ne.redAdd(ne).redIAdd(ne),W=ae.redSqr(),se=le.redIAdd(le);se=se.redIAdd(se),se=se.redIAdd(se),_=W.redISub(pe).redISub(pe),I=ae.redMul(pe.redISub(_)).redISub(se),N=this.y.redMul(this.z),N=N.redIAdd(N)}return this.curve.jpoint(_,I,N)},g.prototype._threeDbl=function(){var _,I,N;if(this.zOne){var T=this.x.redSqr(),M=this.y.redSqr(),D=M.redSqr(),P=this.x.redAdd(M).redSqr().redISub(T).redISub(D);P=P.redIAdd(P);var G=T.redAdd(T).redIAdd(T).redIAdd(this.curve.a),q=G.redSqr().redISub(P).redISub(P);_=q;var Y=D.redIAdd(D);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),I=G.redMul(P.redISub(q)).redISub(Y),N=this.y.redAdd(this.y)}else{var ne=this.z.redSqr(),ce=this.y.redSqr(),le=this.x.redMul(ce),pe=this.x.redSub(ne).redMul(this.x.redAdd(ne));pe=pe.redAdd(pe).redIAdd(pe);var ae=le.redIAdd(le);ae=ae.redIAdd(ae);var W=ae.redAdd(ae);_=pe.redSqr().redISub(W),N=this.y.redAdd(this.z).redSqr().redISub(ce).redISub(ne);var se=ce.redSqr();se=se.redIAdd(se),se=se.redIAdd(se),se=se.redIAdd(se),I=pe.redMul(ae.redISub(_)).redISub(se)}return this.curve.jpoint(_,I,N)},g.prototype._dbl=function(){var _=this.curve.a,I=this.x,N=this.y,T=this.z,M=T.redSqr().redSqr(),D=I.redSqr(),P=N.redSqr(),G=D.redAdd(D).redIAdd(D).redIAdd(_.redMul(M)),q=I.redAdd(I);q=q.redIAdd(q);var Y=q.redMul(P),ne=G.redSqr().redISub(Y.redAdd(Y)),ce=Y.redISub(ne),le=P.redSqr();le=le.redIAdd(le),le=le.redIAdd(le),le=le.redIAdd(le);var pe=G.redMul(ce).redISub(le),ae=N.redAdd(N).redMul(T);return this.curve.jpoint(ne,pe,ae)},g.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var _=this.x.redSqr(),I=this.y.redSqr(),N=this.z.redSqr(),T=I.redSqr(),M=_.redAdd(_).redIAdd(_),D=M.redSqr(),P=this.x.redAdd(I).redSqr().redISub(_).redISub(T);P=P.redIAdd(P),P=P.redAdd(P).redIAdd(P),P=P.redISub(D);var G=P.redSqr(),q=T.redIAdd(T);q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var Y=M.redIAdd(P).redSqr().redISub(D).redISub(G).redISub(q),ne=I.redMul(Y);ne=ne.redIAdd(ne),ne=ne.redIAdd(ne);var ce=this.x.redMul(G).redISub(ne);ce=ce.redIAdd(ce),ce=ce.redIAdd(ce);var le=this.y.redMul(Y.redMul(q.redISub(Y)).redISub(P.redMul(G)));le=le.redIAdd(le),le=le.redIAdd(le),le=le.redIAdd(le);var pe=this.z.redAdd(P).redSqr().redISub(N).redISub(G);return this.curve.jpoint(ce,le,pe)},g.prototype.mul=function(_,I){return _=new t(_,I),this.curve._wnafMul(this,_)},g.prototype.eq=function(_){if(_.type==="affine")return this.eq(_.toJ());if(this===_)return!0;var I=this.z.redSqr(),N=_.z.redSqr();if(this.x.redMul(N).redISub(_.x.redMul(I)).cmpn(0)!==0)return!1;var T=I.redMul(this.z),M=N.redMul(_.z);return this.y.redMul(M).redISub(_.y.redMul(T)).cmpn(0)===0},g.prototype.eqXToP=function(_){var I=this.z.redSqr(),N=_.toRed(this.curve.red).redMul(I);if(this.x.cmp(N)===0)return!0;for(var T=_.clone(),M=this.curve.redN.redMul(I);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(N.redIAdd(M),this.x.cmp(N)===0)return!0}},g.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},g.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Kse}function V5t(){if(nQe)return $se;nQe=!0;var e=Pv(),t=La(),r=fV(),i=$g();function n(d){r.call(this,"mont",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}t(n,r),$se=n,n.prototype.validate=function(g){var y=g.normalize().x,_=y.redSqr(),I=_.redMul(y).redAdd(_.redMul(this.a)).redAdd(y),N=I.redSqrt();return N.redSqr().cmp(I)===0};function o(d,g,y){r.BasePoint.call(this,d,"projective"),g===null&&y===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(g,16),this.z=new e(y,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return t(o,r.BasePoint),n.prototype.decodePoint=function(g,y){return this.point(i.toArray(g,y),1)},n.prototype.point=function(g,y){return new o(this,g,y)},n.prototype.pointFromJSON=function(g){return o.fromJSON(this,g)},o.prototype.precompute=function(){},o.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},o.fromJSON=function(g,y){return new o(g,y[0],y[1]||g.one)},o.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},o.prototype.isInfinity=function(){return this.z.cmpn(0)===0},o.prototype.dbl=function(){var g=this.x.redAdd(this.z),y=g.redSqr(),_=this.x.redSub(this.z),I=_.redSqr(),N=y.redSub(I),T=y.redMul(I),M=N.redMul(I.redAdd(this.curve.a24.redMul(N)));return this.curve.point(T,M)},o.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.diffAdd=function(g,y){var _=this.x.redAdd(this.z),I=this.x.redSub(this.z),N=g.x.redAdd(g.z),T=g.x.redSub(g.z),M=T.redMul(_),D=N.redMul(I),P=y.z.redMul(M.redAdd(D).redSqr()),G=y.x.redMul(M.redISub(D).redSqr());return this.curve.point(P,G)},o.prototype.mul=function(g){for(var y=g.clone(),_=this,I=this.curve.point(null,null),N=this,T=[];y.cmpn(0)!==0;y.iushrn(1))T.push(y.andln(1));for(var M=T.length-1;M>=0;M--)T[M]===0?(_=_.diffAdd(I,N),I=I.dbl()):(I=_.diffAdd(I,N),_=_.dbl());return I},o.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.eq=function(g){return this.getX().cmp(g.getX())===0},o.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()},$se}function J5t(){if(iQe)return Yse;iQe=!0;var e=$g(),t=Pv(),r=La(),i=fV(),n=e.assert;function o(g){this.twisted=(g.a|0)!==1,this.mOneA=this.twisted&&(g.a|0)===-1,this.extended=this.mOneA,i.call(this,"edwards",g),this.a=new t(g.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(g.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(g.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),n(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(g.c|0)===1}r(o,i),Yse=o,o.prototype._mulA=function(y){return this.mOneA?y.redNeg():this.a.redMul(y)},o.prototype._mulC=function(y){return this.oneC?y:this.c.redMul(y)},o.prototype.jpoint=function(y,_,I,N){return this.point(y,_,I,N)},o.prototype.pointFromX=function(y,_){y=new t(y,16),y.red||(y=y.toRed(this.red));var I=y.redSqr(),N=this.c2.redSub(this.a.redMul(I)),T=this.one.redSub(this.c2.redMul(this.d).redMul(I)),M=N.redMul(T.redInvm()),D=M.redSqrt();if(D.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");var P=D.fromRed().isOdd();return(_&&!P||!_&&P)&&(D=D.redNeg()),this.point(y,D)},o.prototype.pointFromY=function(y,_){y=new t(y,16),y.red||(y=y.toRed(this.red));var I=y.redSqr(),N=I.redSub(this.c2),T=I.redMul(this.d).redMul(this.c2).redSub(this.a),M=N.redMul(T.redInvm());if(M.cmp(this.zero)===0){if(_)throw new Error("invalid point");return this.point(this.zero,y)}var D=M.redSqrt();if(D.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");return D.fromRed().isOdd()!==_&&(D=D.redNeg()),this.point(D,y)},o.prototype.validate=function(y){if(y.isInfinity())return!0;y.normalize();var _=y.x.redSqr(),I=y.y.redSqr(),N=_.redMul(this.a).redAdd(I),T=this.c2.redMul(this.one.redAdd(this.d.redMul(_).redMul(I)));return N.cmp(T)===0};function d(g,y,_,I,N){i.BasePoint.call(this,g,"projective"),y===null&&_===null&&I===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(y,16),this.y=new t(_,16),this.z=I?new t(I,16):this.curve.one,this.t=N&&new t(N,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return r(d,i.BasePoint),o.prototype.pointFromJSON=function(y){return d.fromJSON(this,y)},o.prototype.point=function(y,_,I,N){return new d(this,y,_,I,N)},d.fromJSON=function(y,_){return new d(y,_[0],_[1],_[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},d.prototype._extDbl=function(){var y=this.x.redSqr(),_=this.y.redSqr(),I=this.z.redSqr();I=I.redIAdd(I);var N=this.curve._mulA(y),T=this.x.redAdd(this.y).redSqr().redISub(y).redISub(_),M=N.redAdd(_),D=M.redSub(I),P=N.redSub(_),G=T.redMul(D),q=M.redMul(P),Y=T.redMul(P),ne=D.redMul(M);return this.curve.point(G,q,ne,Y)},d.prototype._projDbl=function(){var y=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),I=this.y.redSqr(),N,T,M,D,P,G;if(this.curve.twisted){D=this.curve._mulA(_);var q=D.redAdd(I);this.zOne?(N=y.redSub(_).redSub(I).redMul(q.redSub(this.curve.two)),T=q.redMul(D.redSub(I)),M=q.redSqr().redSub(q).redSub(q)):(P=this.z.redSqr(),G=q.redSub(P).redISub(P),N=y.redSub(_).redISub(I).redMul(G),T=q.redMul(D.redSub(I)),M=q.redMul(G))}else D=_.redAdd(I),P=this.curve._mulC(this.z).redSqr(),G=D.redSub(P).redSub(P),N=this.curve._mulC(y.redISub(D)).redMul(G),T=this.curve._mulC(D).redMul(_.redISub(I)),M=D.redMul(G);return this.curve.point(N,T,M)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(y){var _=this.y.redSub(this.x).redMul(y.y.redSub(y.x)),I=this.y.redAdd(this.x).redMul(y.y.redAdd(y.x)),N=this.t.redMul(this.curve.dd).redMul(y.t),T=this.z.redMul(y.z.redAdd(y.z)),M=I.redSub(_),D=T.redSub(N),P=T.redAdd(N),G=I.redAdd(_),q=M.redMul(D),Y=P.redMul(G),ne=M.redMul(G),ce=D.redMul(P);return this.curve.point(q,Y,ce,ne)},d.prototype._projAdd=function(y){var _=this.z.redMul(y.z),I=_.redSqr(),N=this.x.redMul(y.x),T=this.y.redMul(y.y),M=this.curve.d.redMul(N).redMul(T),D=I.redSub(M),P=I.redAdd(M),G=this.x.redAdd(this.y).redMul(y.x.redAdd(y.y)).redISub(N).redISub(T),q=_.redMul(D).redMul(G),Y,ne;return this.curve.twisted?(Y=_.redMul(P).redMul(T.redSub(this.curve._mulA(N))),ne=D.redMul(P)):(Y=_.redMul(P).redMul(T.redSub(N)),ne=this.curve._mulC(D).redMul(P)),this.curve.point(q,Y,ne)},d.prototype.add=function(y){return this.isInfinity()?y:y.isInfinity()?this:this.curve.extended?this._extAdd(y):this._projAdd(y)},d.prototype.mul=function(y){return this._hasDoubles(y)?this.curve._fixedNafMul(this,y):this.curve._wnafMul(this,y)},d.prototype.mulAdd=function(y,_,I){return this.curve._wnafMulAdd(1,[this,_],[y,I],2,!1)},d.prototype.jmulAdd=function(y,_,I){return this.curve._wnafMulAdd(1,[this,_],[y,I],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var y=this.z.redInvm();return this.x=this.x.redMul(y),this.y=this.y.redMul(y),this.t&&(this.t=this.t.redMul(y)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(y){return this===y||this.getX().cmp(y.getX())===0&&this.getY().cmp(y.getY())===0},d.prototype.eqXToP=function(y){var _=y.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(_)===0)return!0;for(var I=y.clone(),N=this.curve.redN.redMul(this.z);;){if(I.iadd(this.curve.n),I.cmp(this.curve.p)>=0)return!1;if(_.redIAdd(N),this.x.cmp(_)===0)return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add,Yse}function MVe(){if(oQe)return Wse;oQe=!0;var e=Wse;return e.base=fV(),e.short=q5t(),e.mont=V5t(),e.edwards=J5t(),Wse}function lV(){if(aQe)return au;aQe=!0;var e=Zy(),t=La();au.inherits=t;function r(l,A){return(l.charCodeAt(A)&64512)!==55296||A<0||A+1>=l.length?!1:(l.charCodeAt(A+1)&64512)===56320}function i(l,A){if(Array.isArray(l))return l.slice();if(!l)return[];var m=[];if(typeof l=="string")if(A){if(A==="hex")for(l=l.replace(/[^a-z0-9]+/ig,""),l.length%2!==0&&(l="0"+l),w=0;w<l.length;w+=2)m.push(parseInt(l[w]+l[w+1],16))}else for(var E=0,w=0;w<l.length;w++){var x=l.charCodeAt(w);x<128?m[E++]=x:x<2048?(m[E++]=x>>6|192,m[E++]=x&63|128):r(l,w)?(x=65536+((x&1023)<<10)+(l.charCodeAt(++w)&1023),m[E++]=x>>18|240,m[E++]=x>>12&63|128,m[E++]=x>>6&63|128,m[E++]=x&63|128):(m[E++]=x>>12|224,m[E++]=x>>6&63|128,m[E++]=x&63|128)}else for(w=0;w<l.length;w++)m[w]=l[w]|0;return m}au.toArray=i;function n(l){for(var A="",m=0;m<l.length;m++)A+=g(l[m].toString(16));return A}au.toHex=n;function o(l){var A=l>>>24|l>>>8&65280|l<<8&16711680|(l&255)<<24;return A>>>0}au.htonl=o;function d(l,A){for(var m="",E=0;E<l.length;E++){var w=l[E];A==="little"&&(w=o(w)),m+=y(w.toString(16))}return m}au.toHex32=d;function g(l){return l.length===1?"0"+l:l}au.zero2=g;function y(l){return l.length===7?"0"+l:l.length===6?"00"+l:l.length===5?"000"+l:l.length===4?"0000"+l:l.length===3?"00000"+l:l.length===2?"000000"+l:l.length===1?"0000000"+l:l}au.zero8=y;function _(l,A,m,E){var w=m-A;e(w%4===0);for(var x=new Array(w/4),R=0,u=A;R<x.length;R++,u+=4){var C;E==="big"?C=l[u]<<24|l[u+1]<<16|l[u+2]<<8|l[u+3]:C=l[u+3]<<24|l[u+2]<<16|l[u+1]<<8|l[u],x[R]=C>>>0}return x}au.join32=_;function I(l,A){for(var m=new Array(l.length*4),E=0,w=0;E<l.length;E++,w+=4){var x=l[E];A==="big"?(m[w]=x>>>24,m[w+1]=x>>>16&255,m[w+2]=x>>>8&255,m[w+3]=x&255):(m[w+3]=x>>>24,m[w+2]=x>>>16&255,m[w+1]=x>>>8&255,m[w]=x&255)}return m}au.split32=I;function N(l,A){return l>>>A|l<<32-A}au.rotr32=N;function T(l,A){return l<<A|l>>>32-A}au.rotl32=T;function M(l,A){return l+A>>>0}au.sum32=M;function D(l,A,m){return l+A+m>>>0}au.sum32_3=D;function P(l,A,m,E){return l+A+m+E>>>0}au.sum32_4=P;function G(l,A,m,E,w){return l+A+m+E+w>>>0}au.sum32_5=G;function q(l,A,m,E){var w=l[A],x=l[A+1],R=E+x>>>0,u=(R<E?1:0)+m+w;l[A]=u>>>0,l[A+1]=R}au.sum64=q;function Y(l,A,m,E){var w=A+E>>>0,x=(w<A?1:0)+l+m;return x>>>0}au.sum64_hi=Y;function ne(l,A,m,E){var w=A+E;return w>>>0}au.sum64_lo=ne;function ce(l,A,m,E,w,x,R,u){var C=0,U=A;U=U+E>>>0,C+=U<A?1:0,U=U+x>>>0,C+=U<x?1:0,U=U+u>>>0,C+=U<u?1:0;var F=l+m+w+R+C;return F>>>0}au.sum64_4_hi=ce;function le(l,A,m,E,w,x,R,u){var C=A+E+x+u;return C>>>0}au.sum64_4_lo=le;function pe(l,A,m,E,w,x,R,u,C,U){var F=0,X=A;X=X+E>>>0,F+=X<A?1:0,X=X+x>>>0,F+=X<x?1:0,X=X+u>>>0,F+=X<u?1:0,X=X+U>>>0,F+=X<U?1:0;var Ae=l+m+w+R+C+F;return Ae>>>0}au.sum64_5_hi=pe;function ae(l,A,m,E,w,x,R,u,C,U){var F=A+E+x+u+U;return F>>>0}au.sum64_5_lo=ae;function W(l,A,m){var E=A<<32-m|l>>>m;return E>>>0}au.rotr64_hi=W;function se(l,A,m){var E=l<<32-m|A>>>m;return E>>>0}au.rotr64_lo=se;function O(l,A,m){return l>>>m}au.shr64_hi=O;function s(l,A,m){var E=l<<32-m|A>>>m;return E>>>0}return au.shr64_lo=s,au}function DVe(){if(sQe)return Xse;sQe=!0;var e=lV(),t=Zy();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Xse.BlockHash=r,r.prototype.update=function(n,o){if(n=e.toArray(n,o),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var d=n.length%this._delta8;this.pending=n.slice(n.length-d,n.length),this.pending.length===0&&(this.pending=null),n=e.join32(n,0,n.length-d,this.endian);for(var g=0;g<n.length;g+=this._delta32)this._update(n,g,g+this._delta32)}return this},r.prototype.digest=function(n){return this.update(this._pad()),t(this.pending===null),this._digest(n)},r.prototype._pad=function(){var n=this.pendingTotal,o=this._delta8,d=o-(n+this.padLength)%o,g=new Array(d+this.padLength);g[0]=128;for(var y=1;y<d;y++)g[y]=0;if(n<<=3,this.endian==="big"){for(var _=8;_<this.padLength;_++)g[y++]=0;g[y++]=0,g[y++]=0,g[y++]=0,g[y++]=0,g[y++]=n>>>24&255,g[y++]=n>>>16&255,g[y++]=n>>>8&255,g[y++]=n&255}else for(g[y++]=n&255,g[y++]=n>>>8&255,g[y++]=n>>>16&255,g[y++]=n>>>24&255,g[y++]=0,g[y++]=0,g[y++]=0,g[y++]=0,_=8;_<this.padLength;_++)g[y++]=0;return g},Xse}function z5t(){return uQe||(uQe=!0),cQe}function K5t(){if(dQe)return Zse;dQe=!0;var e=lV(),t=DVe(),r=e.rotl32,i=e.sum32,n=e.sum32_3,o=e.sum32_4,d=t.BlockHash;function g(){if(!(this instanceof g))return new g;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(g,d),Zse.ripemd160=g,g.blockSize=512,g.outSize=160,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(G,q){for(var Y=this.h[0],ne=this.h[1],ce=this.h[2],le=this.h[3],pe=this.h[4],ae=Y,W=ne,se=ce,O=le,s=pe,l=0;l<80;l++){var A=i(r(o(Y,y(l,ne,ce,le),G[N[l]+q],_(l)),M[l]),pe);Y=pe,pe=le,le=r(ce,10),ce=ne,ne=A,A=i(r(o(ae,y(79-l,W,se,O),G[T[l]+q],I(l)),D[l]),s),ae=s,s=O,O=r(se,10),se=W,W=A}A=n(this.h[1],ce,O),this.h[1]=n(this.h[2],le,s),this.h[2]=n(this.h[3],pe,ae),this.h[3]=n(this.h[4],Y,W),this.h[4]=n(this.h[0],ne,se),this.h[0]=A},g.prototype._digest=function(G){return G==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function y(P,G,q,Y){return P<=15?G^q^Y:P<=31?G&q|~G&Y:P<=47?(G|~q)^Y:P<=63?G&Y|q&~Y:G^(q|~Y)}function _(P){return P<=15?0:P<=31?1518500249:P<=47?1859775393:P<=63?2400959708:2840853838}function I(P){return P<=15?1352829926:P<=31?1548603684:P<=47?1836072691:P<=63?2053994217:0}var N=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],T=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],M=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],D=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Zse}function $5t(){if(fQe)return jse;fQe=!0;var e=lV(),t=Zy();function r(i,n,o){if(!(this instanceof r))return new r(i,n,o);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(n,o))}return jse=r,r.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),t(n.length<=this.blockSize);for(var o=n.length;o<this.blockSize;o++)n.push(0);for(o=0;o<n.length;o++)n[o]^=54;for(this.inner=new this.Hash().update(n),o=0;o<n.length;o++)n[o]^=106;this.outer=new this.Hash().update(n)},r.prototype.update=function(n,o){return this.inner.update(n,o),this},r.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)},jse}function t0e(){if(lQe)return ece;lQe=!0;var e=ece;return e.utils=lV(),e.common=DVe(),e.sha=z5t(),e.ripemd=K5t(),e.hmac=$5t(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160,ece}function Y5t(){return hQe||(hQe=!0,tce={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),tce}function r0e(){if(AQe)return rce;AQe=!0;var e=rce,t=t0e(),r=MVe(),i=$g(),n=i.assert;function o(y){y.type==="short"?this.curve=new r.short(y):y.type==="edwards"?this.curve=new r.edwards(y):this.curve=new r.mont(y),this.g=this.curve.g,this.n=this.curve.n,this.hash=y.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=o;function d(y,_){Object.defineProperty(e,y,{configurable:!0,enumerable:!0,get:function(){var I=new o(_);return Object.defineProperty(e,y,{configurable:!0,enumerable:!0,value:I}),I}})}d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var g;try{g=Y5t()}catch{g=void 0}return d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",g]}),rce}function W5t(){if(pQe)return nce;pQe=!0;var e=t0e(),t=BVe(),r=Zy();function i(n){if(!(this instanceof i))return new i(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var o=t.toArray(n.entropy,n.entropyEnc||"hex"),d=t.toArray(n.nonce,n.nonceEnc||"hex"),g=t.toArray(n.pers,n.persEnc||"hex");r(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,d,g)}return nce=i,i.prototype._init=function(o,d,g){var y=o.concat(d).concat(g);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var _=0;_<this.V.length;_++)this.K[_]=0,this.V[_]=1;this._update(y),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},i.prototype._update=function(o){var d=this._hmac().update(this.V).update([0]);o&&(d=d.update(o)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),o&&(this.K=this._hmac().update(this.V).update([1]).update(o).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(o,d,g,y){typeof d!="string"&&(y=g,g=d,d=null),o=t.toArray(o,d),g=t.toArray(g,y),r(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(o.concat(g||[])),this._reseed=1},i.prototype.generate=function(o,d,g,y){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof d!="string"&&(y=g,g=d,d=null),g&&(g=t.toArray(g,y||"hex"),this._update(g));for(var _=[];_.length<o;)this.V=this._hmac().update(this.V).digest(),_=_.concat(this.V);var I=_.slice(0,o);return this._update(g),this._reseed++,t.encode(I,d)},nce}function X5t(){if(gQe)return ice;gQe=!0;var e=Pv(),t=$g(),r=t.assert;function i(n,o){this.ec=n,this.priv=null,this.pub=null,o.priv&&this._importPrivate(o.priv,o.privEnc),o.pub&&this._importPublic(o.pub,o.pubEnc)}return ice=i,i.fromPublic=function(o,d,g){return d instanceof i?d:new i(o,{pub:d,pubEnc:g})},i.fromPrivate=function(o,d,g){return d instanceof i?d:new i(o,{priv:d,privEnc:g})},i.prototype.validate=function(){var o=this.getPublic();return o.isInfinity()?{result:!1,reason:"Invalid public key"}:o.validate()?o.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(o,d){return typeof o=="string"&&(d=o,o=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,o):this.pub},i.prototype.getPrivate=function(o){return o==="hex"?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(o,d){this.priv=new e(o,d||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(o,d){if(o.x||o.y){this.ec.curve.type==="mont"?r(o.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&r(o.x&&o.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(o.x,o.y);return}this.pub=this.ec.curve.decodePoint(o,d)},i.prototype.derive=function(o){return o.validate()||r(o.validate(),"public point not validated"),o.mul(this.priv).getX()},i.prototype.sign=function(o,d,g){return this.ec.sign(o,this,d,g)},i.prototype.verify=function(o,d){return this.ec.verify(o,d,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},ice}function Z5t(){if(_Qe)return oce;_Qe=!0;var e=Pv(),t=$g(),r=t.assert;function i(y,_){if(y instanceof i)return y;this._importDER(y,_)||(r(y.r&&y.s,"Signature without r or s"),this.r=new e(y.r,16),this.s=new e(y.s,16),y.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=y.recoveryParam)}oce=i;function n(){this.place=0}function o(y,_){var I=y[_.place++];if(!(I&128))return I;var N=I&15;if(N===0||N>4)return!1;for(var T=0,M=0,D=_.place;M<N;M++,D++)T<<=8,T|=y[D],T>>>=0;return T<=127?!1:(_.place=D,T)}function d(y){for(var _=0,I=y.length-1;!y[_]&&!(y[_+1]&128)&&_<I;)_++;return _===0?y:y.slice(_)}i.prototype._importDER=function(_,I){_=t.toArray(_,I);var N=new n;if(_[N.place++]!==48)return!1;var T=o(_,N);if(T===!1||T+N.place!==_.length||_[N.place++]!==2)return!1;var M=o(_,N);if(M===!1)return!1;var D=_.slice(N.place,M+N.place);if(N.place+=M,_[N.place++]!==2)return!1;var P=o(_,N);if(P===!1||_.length!==P+N.place)return!1;var G=_.slice(N.place,P+N.place);if(D[0]===0)if(D[1]&128)D=D.slice(1);else return!1;if(G[0]===0)if(G[1]&128)G=G.slice(1);else return!1;return this.r=new e(D),this.s=new e(G),this.recoveryParam=null,!0};function g(y,_){if(_<128){y.push(_);return}var I=1+(Math.log(_)/Math.LN2>>>3);for(y.push(I|128);--I;)y.push(_>>>(I<<3)&255);y.push(_)}return i.prototype.toDER=function(_){var I=this.r.toArray(),N=this.s.toArray();for(I[0]&128&&(I=[0].concat(I)),N[0]&128&&(N=[0].concat(N)),I=d(I),N=d(N);!N[0]&&!(N[1]&128);)N=N.slice(1);var T=[2];g(T,I.length),T=T.concat(I),T.push(2),g(T,N.length);var M=T.concat(N),D=[48];return g(D,M.length),D=D.concat(M),t.encode(D,_)},oce}function j5t(){if(mQe)return ace;mQe=!0;var e=Pv(),t=W5t(),r=$g(),i=r0e(),n=Xue(),o=r.assert,d=X5t(),g=Z5t();function y(_){if(!(this instanceof y))return new y(_);typeof _=="string"&&(o(Object.prototype.hasOwnProperty.call(i,_),"Unknown curve "+_),_=i[_]),_ instanceof i.PresetCurve&&(_={curve:_}),this.curve=_.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=_.curve.g,this.g.precompute(_.curve.n.bitLength()+1),this.hash=_.hash||_.curve.hash}return ace=y,y.prototype.keyPair=function(I){return new d(this,I)},y.prototype.keyFromPrivate=function(I,N){return d.fromPrivate(this,I,N)},y.prototype.keyFromPublic=function(I,N){return d.fromPublic(this,I,N)},y.prototype.genKeyPair=function(I){I||(I={});for(var N=new t({hash:this.hash,pers:I.pers,persEnc:I.persEnc||"utf8",entropy:I.entropy||n(this.hash.hmacStrength),entropyEnc:I.entropy&&I.entropyEnc||"utf8",nonce:this.n.toArray()}),T=this.n.byteLength(),M=this.n.sub(new e(2));;){var D=new e(N.generate(T));if(!(D.cmp(M)>0))return D.iaddn(1),this.keyFromPrivate(D)}},y.prototype._truncateToN=function(I,N){var T=I.byteLength()*8-this.n.bitLength();return T>0&&(I=I.ushrn(T)),!N&&I.cmp(this.n)>=0?I.sub(this.n):I},y.prototype.sign=function(I,N,T,M){typeof T=="object"&&(M=T,T=null),M||(M={}),N=this.keyFromPrivate(N,T),I=this._truncateToN(new e(I,16));for(var D=this.n.byteLength(),P=N.getPrivate().toArray("be",D),G=I.toArray("be",D),q=new t({hash:this.hash,entropy:P,nonce:G,pers:M.pers,persEnc:M.persEnc||"utf8"}),Y=this.n.sub(new e(1)),ne=0;;ne++){var ce=M.k?M.k(ne):new e(q.generate(this.n.byteLength()));if(ce=this._truncateToN(ce,!0),!(ce.cmpn(1)<=0||ce.cmp(Y)>=0)){var le=this.g.mul(ce);if(!le.isInfinity()){var pe=le.getX(),ae=pe.umod(this.n);if(ae.cmpn(0)!==0){var W=ce.invm(this.n).mul(ae.mul(N.getPrivate()).iadd(I));if(W=W.umod(this.n),W.cmpn(0)!==0){var se=(le.getY().isOdd()?1:0)|(pe.cmp(ae)!==0?2:0);return M.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),se^=1),new g({r:ae,s:W,recoveryParam:se})}}}}}},y.prototype.verify=function(I,N,T,M){I=this._truncateToN(new e(I,16)),T=this.keyFromPublic(T,M),N=new g(N,"hex");var D=N.r,P=N.s;if(D.cmpn(1)<0||D.cmp(this.n)>=0||P.cmpn(1)<0||P.cmp(this.n)>=0)return!1;var G=P.invm(this.n),q=G.mul(I).umod(this.n),Y=G.mul(D).umod(this.n),ne;return this.curve._maxwellTrick?(ne=this.g.jmulAdd(q,T.getPublic(),Y),ne.isInfinity()?!1:ne.eqXToP(D)):(ne=this.g.mulAdd(q,T.getPublic(),Y),ne.isInfinity()?!1:ne.getX().umod(this.n).cmp(D)===0)},y.prototype.recoverPubKey=function(_,I,N,T){o((3&N)===N,"The recovery param is more than two bits"),I=new g(I,T);var M=this.n,D=new e(_),P=I.r,G=I.s,q=N&1,Y=N>>1;if(P.cmp(this.curve.p.umod(this.curve.n))>=0&&Y)throw new Error("Unable to find sencond key candinate");Y?P=this.curve.pointFromX(P.add(this.curve.n),q):P=this.curve.pointFromX(P,q);var ne=I.r.invm(M),ce=M.sub(D).mul(ne).umod(M),le=G.mul(ne).umod(M);return this.g.mulAdd(ce,P,le)},y.prototype.getKeyRecoveryParam=function(_,I,N,T){if(I=new g(I,T),I.recoveryParam!==null)return I.recoveryParam;for(var M=0;M<4;M++){var D;try{D=this.recoverPubKey(_,I,M)}catch{continue}if(D.eq(N))return M}throw new Error("Unable to find valid recovery factor")},ace}function eOt(){if(yQe)return sce;yQe=!0;var e=$g(),t=e.assert,r=e.parseBytes,i=e.cachedProperty;function n(o,d){this.eddsa=o,this._secret=r(d.secret),o.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=r(d.pub)}return n.fromPublic=function(d,g){return g instanceof n?g:new n(d,{pub:g})},n.fromSecret=function(d,g){return g instanceof n?g:new n(d,{secret:g})},n.prototype.secret=function(){return this._secret},i(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(n,"privBytes",function(){var d=this.eddsa,g=this.hash(),y=d.encodingLength-1,_=g.slice(0,d.encodingLength);return _[0]&=248,_[y]&=127,_[y]|=64,_}),i(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(d){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},n.prototype.verify=function(d,g){return this.eddsa.verify(d,g,this)},n.prototype.getSecret=function(d){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),d)},n.prototype.getPublic=function(d){return e.encode(this.pubBytes(),d)},sce=n,sce}function tOt(){if(bQe)return cce;bQe=!0;var e=Pv(),t=$g(),r=t.assert,i=t.cachedProperty,n=t.parseBytes;function o(d,g){this.eddsa=d,typeof g!="object"&&(g=n(g)),Array.isArray(g)&&(g={R:g.slice(0,d.encodingLength),S:g.slice(d.encodingLength)}),r(g.R&&g.S,"Signature without R or S"),d.isPoint(g.R)&&(this._R=g.R),g.S instanceof e&&(this._S=g.S),this._Rencoded=Array.isArray(g.R)?g.R:g.Rencoded,this._Sencoded=Array.isArray(g.S)?g.S:g.Sencoded}return i(o,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i(o,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i(o,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i(o,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),o.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},o.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},cce=o,cce}function rOt(){if(EQe)return uce;EQe=!0;var e=t0e(),t=r0e(),r=$g(),i=r.assert,n=r.parseBytes,o=eOt(),d=tOt();function g(y){if(i(y==="ed25519","only tested with ed25519 so far"),!(this instanceof g))return new g(y);y=t[y].curve,this.curve=y,this.g=y.g,this.g.precompute(y.n.bitLength()+1),this.pointClass=y.point().constructor,this.encodingLength=Math.ceil(y.n.bitLength()/8),this.hash=e.sha512}return uce=g,g.prototype.sign=function(_,I){_=n(_);var N=this.keyFromSecret(I),T=this.hashInt(N.messagePrefix(),_),M=this.g.mul(T),D=this.encodePoint(M),P=this.hashInt(D,N.pubBytes(),_).mul(N.priv()),G=T.add(P).umod(this.curve.n);return this.makeSignature({R:M,S:G,Rencoded:D})},g.prototype.verify=function(_,I,N){_=n(_),I=this.makeSignature(I);var T=this.keyFromPublic(N),M=this.hashInt(I.Rencoded(),T.pubBytes(),_),D=this.g.mul(I.S()),P=I.R().add(T.pub().mul(M));return P.eq(D)},g.prototype.hashInt=function(){for(var _=this.hash(),I=0;I<arguments.length;I++)_.update(arguments[I]);return r.intFromLE(_.digest()).umod(this.curve.n)},g.prototype.keyFromPublic=function(_){return o.fromPublic(this,_)},g.prototype.keyFromSecret=function(_){return o.fromSecret(this,_)},g.prototype.makeSignature=function(_){return _ instanceof d?_:new d(this,_)},g.prototype.encodePoint=function(_){var I=_.getY().toArray("le",this.encodingLength);return I[this.encodingLength-1]|=_.getX().isOdd()?128:0,I},g.prototype.decodePoint=function(_){_=r.parseBytes(_);var I=_.length-1,N=_.slice(0,I).concat(_[I]&-129),T=(_[I]&128)!==0,M=r.intFromLE(N);return this.curve.pointFromY(M,T)},g.prototype.encodeInt=function(_){return _.toArray("le",this.encodingLength)},g.prototype.decodeInt=function(_){return r.intFromLE(_)},g.prototype.isPoint=function(_){return _ instanceof this.pointClass},uce}function n0e(){if(vQe)return dce;vQe=!0;var e=dce;return e.version=G5t.version,e.utils=$g(),e.rand=Xue(),e.curve=MVe(),e.curves=r0e(),e.ec=j5t(),e.eddsa=rOt(),dce}function PVe(){return RQe||(RQe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Pt).negative=0,(this||Pt).words=null,(this||Pt).length=0,(this||Pt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Pt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Pt).negative=1,s=-s),s<67108864?((this||Pt).words=[s&67108863],(this||Pt).length=1):s<4503599627370496?((this||Pt).words=[s&67108863,s/67108864&67108863],(this||Pt).length=2):(r(s<9007199254740992),(this||Pt).words=[s&67108863,s/67108864&67108863,1],(this||Pt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Pt).words=[0],(this||Pt).length=1,this||Pt;(this||Pt).length=Math.ceil(s.length/3),(this||Pt).words=new Array((this||Pt).length);for(var m=0;m<(this||Pt).length;m++)(this||Pt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Pt).words[E]|=w<<x&67108863,(this||Pt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Pt).words[E]|=w<<x&67108863,(this||Pt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Pt).length=Math.ceil((s.length-l)/6),(this||Pt).words=new Array((this||Pt).length);for(var m=0;m<(this||Pt).length;m++)(this||Pt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Pt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Pt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Pt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Pt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Pt).words=[0],(this||Pt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Pt).words[0]+u<67108864?(this||Pt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Pt).words[0]+u<67108864?(this||Pt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Pt).length);for(var l=0;l<(this||Pt).length;l++)s.words[l]=(this||Pt).words[l];s.length=(this||Pt).length,s.negative=(this||Pt).negative,s.red=(this||Pt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Pt).length<s;)(this||Pt).words[(this||Pt).length++]=0;return this||Pt},n.prototype.strip=function(){for(;(this||Pt).length>1&&(this||Pt).words[(this||Pt).length-1]===0;)(this||Pt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Pt).length===1&&(this||Pt).words[0]===0&&((this||Pt).negative=0),this||Pt},n.prototype.inspect=function(){return((this||Pt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Pt).length;w++){var x=(this||Pt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Pt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Pt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Pt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Pt).words[0];return(this||Pt).length===2?s+=(this||Pt).words[1]*67108864:(this||Pt).length===3&&(this||Pt).words[2]===1?s+=4503599627370496+(this||Pt).words[1]*67108864:(this||Pt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Pt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Pt).words[(this||Pt).length-1],l=this._countBits(s);return((this||Pt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Pt).length;l++){var A=this._zeroBits((this||Pt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Pt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Pt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Pt).negative^=1),this||Pt},n.prototype.iuor=function(s){for(;(this||Pt).length<s.length;)(this||Pt).words[(this||Pt).length++]=0;for(var l=0;l<s.length;l++)(this||Pt).words[l]=(this||Pt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Pt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Pt).length>s.length?this.clone().ior(s):s.clone().ior(this||Pt)},n.prototype.uor=function(s){return(this||Pt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Pt)},n.prototype.iuand=function(s){var l;(this||Pt).length>s.length?l=s:l=this||Pt;for(var A=0;A<l.length;A++)(this||Pt).words[A]=(this||Pt).words[A]&s.words[A];return(this||Pt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Pt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Pt).length>s.length?this.clone().iand(s):s.clone().iand(this||Pt)},n.prototype.uand=function(s){return(this||Pt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Pt)},n.prototype.iuxor=function(s){var l,A;(this||Pt).length>s.length?(l=this||Pt,A=s):(l=s,A=this||Pt);for(var m=0;m<A.length;m++)(this||Pt).words[m]=l.words[m]^A.words[m];if((this||Pt)!==l)for(;m<l.length;m++)(this||Pt).words[m]=l.words[m];return(this||Pt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Pt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Pt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Pt)},n.prototype.uxor=function(s){return(this||Pt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Pt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Pt).words[m]=~(this||Pt).words[m]&67108863;return A>0&&((this||Pt).words[m]=~(this||Pt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Pt).words[A]=(this||Pt).words[A]|1<<m:(this||Pt).words[A]=(this||Pt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Pt).negative!==0&&s.negative===0)return(this||Pt).negative=0,l=this.isub(s),(this||Pt).negative^=1,this._normSign();if((this||Pt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Pt).length>s.length?(A=this||Pt,m=s):(A=s,m=this||Pt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Pt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Pt).words[w]=l&67108863,E=l>>>26;if((this||Pt).length=A.length,E!==0)(this||Pt).words[(this||Pt).length]=E,(this||Pt).length++;else if(A!==(this||Pt))for(;w<A.length;w++)(this||Pt).words[w]=A.words[w];return this||Pt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Pt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Pt).negative!==0?((this||Pt).negative=0,l=s.sub(this||Pt),(this||Pt).negative=1,l):(this||Pt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Pt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Pt).negative!==0)return(this||Pt).negative=0,this.iadd(s),(this||Pt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Pt).negative=0,(this||Pt).length=1,(this||Pt).words[0]=0,this||Pt;var m,E;A>0?(m=this||Pt,E=s):(m=s,E=this||Pt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Pt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Pt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Pt))for(;x<m.length;x++)(this||Pt).words[x]=m.words[x];return(this||Pt).length=Math.max((this||Pt).length,x),m!==(this||Pt)&&((this||Pt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Pt).length+s.length;return(this||Pt).length===10&&s.length===10?A=D(this||Pt,s,l):m<63?A=M(this||Pt,s,l):m<1024?A=P(this||Pt,s,l):A=G(this||Pt,s,l),A};function q(O,s){(this||Pt).x=O,(this||Pt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Pt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Pt).length+s.length),G(this||Pt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Pt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Pt).length;A++){var m=((this||Pt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Pt).words[A]=E&67108863}return l!==0&&((this||Pt).words[A]=l,(this||Pt).length++),this||Pt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Pt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Pt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Pt).length;E++){var x=(this||Pt).words[E]&m,R=((this||Pt).words[E]|0)-x<<l;(this||Pt).words[E]=R|w,w=x>>>26-l}w&&((this||Pt).words[E]=w,(this||Pt).length++)}if(A!==0){for(E=(this||Pt).length-1;E>=0;E--)(this||Pt).words[E+A]=(this||Pt).words[E];for(E=0;E<A;E++)(this||Pt).words[E]=0;(this||Pt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Pt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Pt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Pt).words[u];R.length=w}if(w!==0)if((this||Pt).length>w)for((this||Pt).length-=w,u=0;u<(this||Pt).length;u++)(this||Pt).words[u]=(this||Pt).words[u+w];else(this||Pt).words[0]=0,(this||Pt).length=1;var C=0;for(u=(this||Pt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Pt).words[u]|0;(this||Pt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Pt).length===0&&((this||Pt).words[0]=0,(this||Pt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Pt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Pt).length<=A)return!1;var E=(this||Pt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Pt).negative===0,"imaskn works only with positive numbers"),(this||Pt).length<=A)return this||Pt;if(l!==0&&A++,(this||Pt).length=Math.min(A,(this||Pt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Pt).words[(this||Pt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Pt).negative!==0?(this||Pt).length===1&&((this||Pt).words[0]|0)<s?((this||Pt).words[0]=s-((this||Pt).words[0]|0),(this||Pt).negative=0,this||Pt):((this||Pt).negative=0,this.isubn(s),(this||Pt).negative=1,this||Pt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Pt).words[0]+=s;for(var l=0;l<(this||Pt).length&&(this||Pt).words[l]>=67108864;l++)(this||Pt).words[l]-=67108864,l===(this||Pt).length-1?(this||Pt).words[l+1]=1:(this||Pt).words[l+1]++;return(this||Pt).length=Math.max((this||Pt).length,l+1),this||Pt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Pt).negative!==0)return(this||Pt).negative=0,this.iaddn(s),(this||Pt).negative=1,this||Pt;if((this||Pt).words[0]-=s,(this||Pt).length===1&&(this||Pt).words[0]<0)(this||Pt).words[0]=-(this||Pt).words[0],(this||Pt).negative=1;else for(var l=0;l<(this||Pt).length&&(this||Pt).words[l]<0;l++)(this||Pt).words[l]+=67108864,(this||Pt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Pt).negative=0,this||Pt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Pt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Pt).words[E+A]=w&67108863}for(;E<(this||Pt).length-A;E++)w=((this||Pt).words[E+A]|0)+x,x=w>>26,(this||Pt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Pt).length;E++)w=-((this||Pt).words[E]|0)+x,x=w>>26,(this||Pt).words[E]=w&67108863;return(this||Pt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Pt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Pt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Pt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Pt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Pt).length||this.cmp(s)<0?{div:new n(0),mod:this||Pt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Pt).length-1;m>=0;m--)A=(l*A+((this||Pt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Pt).length-1;A>=0;A--){var m=((this||Pt).words[A]|0)+l*67108864;(this||Pt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Pt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Pt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Pt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Pt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Pt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Pt).length<=A)return this._expand(A+1),(this||Pt).words[A]|=m,this||Pt;for(var E=m,w=A;E!==0&&w<(this||Pt).length;w++){var x=(this||Pt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Pt).words[w]=x}return E!==0&&((this||Pt).words[w]=E,(this||Pt).length++),this||Pt},n.prototype.isZero=function(){return(this||Pt).length===1&&(this||Pt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Pt).negative!==0&&!l)return-1;if((this||Pt).negative===0&&l)return 1;this.strip();var A;if((this||Pt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Pt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Pt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Pt).negative!==0&&s.negative===0)return-1;if((this||Pt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Pt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Pt).length>s.length)return 1;if((this||Pt).length<s.length)return-1;for(var l=0,A=(this||Pt).length-1;A>=0;A--){var m=(this||Pt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Pt).red,"Already a number in reduction context"),r((this||Pt).negative===0,"red works only with positives"),s.convertTo(this||Pt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Pt).red,"fromRed works only with numbers in reduction context"),(this||Pt).red.convertFrom(this||Pt)},n.prototype._forceRed=function(s){return(this||Pt).red=s,this||Pt},n.prototype.forceRed=function(s){return r(!(this||Pt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Pt).red,"redAdd works only with red numbers"),(this||Pt).red.add(this||Pt,s)},n.prototype.redIAdd=function(s){return r((this||Pt).red,"redIAdd works only with red numbers"),(this||Pt).red.iadd(this||Pt,s)},n.prototype.redSub=function(s){return r((this||Pt).red,"redSub works only with red numbers"),(this||Pt).red.sub(this||Pt,s)},n.prototype.redISub=function(s){return r((this||Pt).red,"redISub works only with red numbers"),(this||Pt).red.isub(this||Pt,s)},n.prototype.redShl=function(s){return r((this||Pt).red,"redShl works only with red numbers"),(this||Pt).red.shl(this||Pt,s)},n.prototype.redMul=function(s){return r((this||Pt).red,"redMul works only with red numbers"),(this||Pt).red._verify2(this||Pt,s),(this||Pt).red.mul(this||Pt,s)},n.prototype.redIMul=function(s){return r((this||Pt).red,"redMul works only with red numbers"),(this||Pt).red._verify2(this||Pt,s),(this||Pt).red.imul(this||Pt,s)},n.prototype.redSqr=function(){return r((this||Pt).red,"redSqr works only with red numbers"),(this||Pt).red._verify1(this||Pt),(this||Pt).red.sqr(this||Pt)},n.prototype.redISqr=function(){return r((this||Pt).red,"redISqr works only with red numbers"),(this||Pt).red._verify1(this||Pt),(this||Pt).red.isqr(this||Pt)},n.prototype.redSqrt=function(){return r((this||Pt).red,"redSqrt works only with red numbers"),(this||Pt).red._verify1(this||Pt),(this||Pt).red.sqrt(this||Pt)},n.prototype.redInvm=function(){return r((this||Pt).red,"redInvm works only with red numbers"),(this||Pt).red._verify1(this||Pt),(this||Pt).red.invm(this||Pt)},n.prototype.redNeg=function(){return r((this||Pt).red,"redNeg works only with red numbers"),(this||Pt).red._verify1(this||Pt),(this||Pt).red.neg(this||Pt)},n.prototype.redPow=function(s){return r((this||Pt).red&&!s.red,"redPow(normalNum)"),(this||Pt).red._verify1(this||Pt),(this||Pt).red.pow(this||Pt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Pt).name=O,(this||Pt).p=new n(s,16),(this||Pt).n=(this||Pt).p.bitLength(),(this||Pt).k=new n(1).iushln((this||Pt).n).isub((this||Pt).p),(this||Pt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Pt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Pt).tmp),l=this.imulK(l),l=l.iadd((this||Pt).tmp),A=l.bitLength();while(A>(this||Pt).n);var m=A<(this||Pt).n?-1:l.ucmp((this||Pt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Pt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Pt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Pt).k)};function ce(){ne.call(this||Pt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Pt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Pt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Pt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Pt).m=s.p,(this||Pt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Pt).m=O,(this||Pt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Pt).prime?(this||Pt).prime.ireduce(s)._forceRed(this||Pt):s.umod((this||Pt).m)._forceRed(this||Pt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Pt).m.sub(s)._forceRed(this||Pt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Pt).m)>=0&&A.isub((this||Pt).m),A._forceRed(this||Pt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Pt).m)>=0&&A.isub((this||Pt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Pt).m),A._forceRed(this||Pt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Pt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Pt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Pt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Pt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Pt),x=w.redNeg(),R=(this||Pt).m.subn(1).iushrn(1),u=(this||Pt).m.bitLength();for(u=new n(2*u*u).toRed(this||Pt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Pt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Pt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Pt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Pt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Pt,O),(this||Pt).shift=(this||Pt).m.bitLength(),(this||Pt).shift%26!==0&&((this||Pt).shift+=26-(this||Pt).shift%26),(this||Pt).r=new n(1).iushln((this||Pt).shift),(this||Pt).r2=this.imod((this||Pt).r.sqr()),(this||Pt).rinv=(this||Pt).r._invmp((this||Pt).m),(this||Pt).minv=(this||Pt).rinv.mul((this||Pt).r).isubn(1).div((this||Pt).m),(this||Pt).minv=(this||Pt).minv.umod((this||Pt).r),(this||Pt).minv=(this||Pt).r.sub((this||Pt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Pt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Pt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Pt).shift).mul((this||Pt).minv).imaskn((this||Pt).shift).mul((this||Pt).m),E=A.isub(m).iushrn((this||Pt).shift),w=E;return E.cmp((this||Pt).m)>=0?w=E.isub((this||Pt).m):E.cmpn(0)<0&&(w=E.iadd((this||Pt).m)),w._forceRed(this||Pt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Pt);var A=s.mul(l),m=A.maskn((this||Pt).shift).mul((this||Pt).minv).imaskn((this||Pt).shift).mul((this||Pt).m),E=A.isub(m).iushrn((this||Pt).shift),w=E;return E.cmp((this||Pt).m)>=0?w=E.isub((this||Pt).m):E.cmpn(0)<0&&(w=E.iadd((this||Pt).m)),w._forceRed(this||Pt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Pt).m).mul((this||Pt).r2));return l._forceRed(this||Pt)}})(fce,kVe)),fce.exports}function i0e(){if(SQe)return lce;SQe=!0;var e=za,t=Nu,r=t.Buffer,i={},n;for(n in t)t.hasOwnProperty(n)&&(n==="SlowBuffer"||n==="Buffer"||(i[n]=t[n]));var o=i.Buffer={};for(n in r)r.hasOwnProperty(n)&&(n==="allocUnsafe"||n==="allocUnsafeSlow"||(o[n]=r[n]));if(i.Buffer.prototype=r.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(d,g,y){if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof d);if(d&&typeof d.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);return r(d,g,y)}),o.alloc||(o.alloc=function(d,g,y){if(typeof d!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof d);if(d<0||d>=2*(1<<30))throw new RangeError('The value "'+d+'" is invalid for option "size"');var _=r(d);return!g||g.length===0?_.fill(0):typeof y=="string"?_.fill(g,y):_.fill(g),_}),!i.kStringMaxLength)try{i.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch{}return i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),lce=i,lce}function o0e(){if(IQe)return hce;IQe=!0;let e=La();function t(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}hce.Reporter=t,t.prototype.isError=function(n){return n instanceof r},t.prototype.save=function(){let n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},t.prototype.restore=function(n){let o=this._reporterState;o.obj=n.obj,o.path=o.path.slice(0,n.pathLen)},t.prototype.enterKey=function(n){return this._reporterState.path.push(n)},t.prototype.exitKey=function(n){let o=this._reporterState;o.path=o.path.slice(0,n-1)},t.prototype.leaveKey=function(n,o,d){let g=this._reporterState;this.exitKey(n),g.obj!==null&&(g.obj[o]=d)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){let n=this._reporterState,o=n.obj;return n.obj={},o},t.prototype.leaveObject=function(n){let o=this._reporterState,d=o.obj;return o.obj=n,d},t.prototype.error=function(n){let o,d=this._reporterState,g=n instanceof r;if(g?o=n:o=new r(d.path.map(function(y){return"["+JSON.stringify(y)+"]"}).join(""),n.message||n,n.stack),!d.options.partial)throw o;return g||d.errors.push(o),o},t.prototype.wrapResult=function(n){let o=this._reporterState;return o.options.partial?{result:this.isError(n)?null:n,errors:o.errors}:n};function r(i,n){this.path=i,this.rethrow(n)}return e(r,Error),r.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw new Error(this.message)}catch(o){this.stack=o.stack}return this},hce}function xD(){if(CQe)return fq;CQe=!0;let e=La(),t=o0e().Reporter,r=i0e().Buffer;function i(o,d){if(t.call(this,d),!r.isBuffer(o)){this.error("Input not Buffer");return}this.base=o,this.offset=0,this.length=o.length}e(i,t),fq.DecoderBuffer=i,i.isDecoderBuffer=function(d){return d instanceof i?!0:typeof d=="object"&&r.isBuffer(d.base)&&d.constructor.name==="DecoderBuffer"&&typeof d.offset=="number"&&typeof d.length=="number"&&typeof d.save=="function"&&typeof d.restore=="function"&&typeof d.isEmpty=="function"&&typeof d.readUInt8=="function"&&typeof d.skip=="function"&&typeof d.raw=="function"},i.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},i.prototype.restore=function(d){let g=new i(this.base);return g.offset=d.offset,g.length=this.offset,this.offset=d.offset,t.prototype.restore.call(this,d.reporter),g},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},i.prototype.skip=function(d,g){if(!(this.offset+d<=this.length))return this.error(g||"DecoderBuffer overrun");let y=new i(this.base);return y._reporterState=this._reporterState,y.offset=this.offset,y.length=this.offset+d,this.offset+=d,y},i.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)};function n(o,d){if(Array.isArray(o))this.length=0,this.value=o.map(function(g){return n.isEncoderBuffer(g)||(g=new n(g,d)),this.length+=g.length,g},this);else if(typeof o=="number"){if(!(0<=o&&o<=255))return d.error("non-byte EncoderBuffer value");this.value=o,this.length=1}else if(typeof o=="string")this.value=o,this.length=r.byteLength(o);else if(r.isBuffer(o))this.value=o,this.length=o.length;else return d.error("Unsupported type: "+typeof o)}return fq.EncoderBuffer=n,n.isEncoderBuffer=function(d){return d instanceof n?!0:typeof d=="object"&&d.constructor.name==="EncoderBuffer"&&typeof d.length=="number"&&typeof d.join=="function"},n.prototype.join=function(d,g){return d||(d=r.alloc(this.length)),g||(g=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(y){y.join(d,g),g+=y.length}):(typeof this.value=="number"?d[g]=this.value:typeof this.value=="string"?d.write(this.value,g):r.isBuffer(this.value)&&this.value.copy(d,g),g+=this.length)),d},fq}function a0e(){if(wQe)return Ace;wQe=!0;let e=o0e().Reporter,t=xD().EncoderBuffer,r=xD().DecoderBuffer,i=Zy(),n=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],o=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(n),d=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function g(_,I,N){let T={};this._baseState=T,T.name=N,T.enc=_,T.parent=I||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}Ace=g;let y=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return g.prototype.clone=function(){let I=this._baseState,N={};y.forEach(function(M){N[M]=I[M]});let T=new this.constructor(N.parent);return T._baseState=N,T},g.prototype._wrap=function(){let I=this._baseState;o.forEach(function(N){this[N]=function(){let M=new this.constructor(this);return I.children.push(M),M[N].apply(M,arguments)}},this)},g.prototype._init=function(I){let N=this._baseState;i(N.parent===null),I.call(this),N.children=N.children.filter(function(T){return T._baseState.parent===this},this),i.equal(N.children.length,1,"Root node can have only one child")},g.prototype._useArgs=function(I){let N=this._baseState,T=I.filter(function(M){return M instanceof this.constructor},this);I=I.filter(function(M){return!(M instanceof this.constructor)},this),T.length!==0&&(i(N.children===null),N.children=T,T.forEach(function(M){M._baseState.parent=this},this)),I.length!==0&&(i(N.args===null),N.args=I,N.reverseArgs=I.map(function(M){if(typeof M!="object"||M.constructor!==Object)return M;let D={};return Object.keys(M).forEach(function(P){P==(P|0)&&(P|=0);let G=M[P];D[G]=P}),D}))},d.forEach(function(_){g.prototype[_]=function(){let N=this._baseState;throw new Error(_+" not implemented for encoding: "+N.enc)}}),n.forEach(function(_){g.prototype[_]=function(){let N=this._baseState,T=Array.prototype.slice.call(arguments);return i(N.tag===null),N.tag=_,this._useArgs(T),this}}),g.prototype.use=function(I){i(I);let N=this._baseState;return i(N.use===null),N.use=I,this},g.prototype.optional=function(){let I=this._baseState;return I.optional=!0,this},g.prototype.def=function(I){let N=this._baseState;return i(N.default===null),N.default=I,N.optional=!0,this},g.prototype.explicit=function(I){let N=this._baseState;return i(N.explicit===null&&N.implicit===null),N.explicit=I,this},g.prototype.implicit=function(I){let N=this._baseState;return i(N.explicit===null&&N.implicit===null),N.implicit=I,this},g.prototype.obj=function(){let I=this._baseState,N=Array.prototype.slice.call(arguments);return I.obj=!0,N.length!==0&&this._useArgs(N),this},g.prototype.key=function(I){let N=this._baseState;return i(N.key===null),N.key=I,this},g.prototype.any=function(){let I=this._baseState;return I.any=!0,this},g.prototype.choice=function(I){let N=this._baseState;return i(N.choice===null),N.choice=I,this._useArgs(Object.keys(I).map(function(T){return I[T]})),this},g.prototype.contains=function(I){let N=this._baseState;return i(N.use===null),N.contains=I,this},g.prototype._decode=function(I,N){let T=this._baseState;if(T.parent===null)return I.wrapResult(T.children[0]._decode(I,N));let M=T.default,D=!0,P=null;if(T.key!==null&&(P=I.enterKey(T.key)),T.optional){let q=null;if(T.explicit!==null?q=T.explicit:T.implicit!==null?q=T.implicit:T.tag!==null&&(q=T.tag),q===null&&!T.any){let Y=I.save();try{T.choice===null?this._decodeGeneric(T.tag,I,N):this._decodeChoice(I,N),D=!0}catch{D=!1}I.restore(Y)}else if(D=this._peekTag(I,q,T.any),I.isError(D))return D}let G;if(T.obj&&D&&(G=I.enterObject()),D){if(T.explicit!==null){let Y=this._decodeTag(I,T.explicit);if(I.isError(Y))return Y;I=Y}let q=I.offset;if(T.use===null&&T.choice===null){let Y;T.any&&(Y=I.save());let ne=this._decodeTag(I,T.implicit!==null?T.implicit:T.tag,T.any);if(I.isError(ne))return ne;T.any?M=I.raw(Y):I=ne}if(N&&N.track&&T.tag!==null&&N.track(I.path(),q,I.length,"tagged"),N&&N.track&&T.tag!==null&&N.track(I.path(),I.offset,I.length,"content"),T.any||(T.choice===null?M=this._decodeGeneric(T.tag,I,N):M=this._decodeChoice(I,N)),I.isError(M))return M;if(!T.any&&T.choice===null&&T.children!==null&&T.children.forEach(function(ne){ne._decode(I,N)}),T.contains&&(T.tag==="octstr"||T.tag==="bitstr")){let Y=new r(M);M=this._getUse(T.contains,I._reporterState.obj)._decode(Y,N)}}return T.obj&&D&&(M=I.leaveObject(G)),T.key!==null&&(M!==null||D===!0)?I.leaveKey(P,T.key,M):P!==null&&I.exitKey(P),M},g.prototype._decodeGeneric=function(I,N,T){let M=this._baseState;return I==="seq"||I==="set"?null:I==="seqof"||I==="setof"?this._decodeList(N,I,M.args[0],T):/str$/.test(I)?this._decodeStr(N,I,T):I==="objid"&&M.args?this._decodeObjid(N,M.args[0],M.args[1],T):I==="objid"?this._decodeObjid(N,null,null,T):I==="gentime"||I==="utctime"?this._decodeTime(N,I,T):I==="null_"?this._decodeNull(N,T):I==="bool"?this._decodeBool(N,T):I==="objDesc"?this._decodeStr(N,I,T):I==="int"||I==="enum"?this._decodeInt(N,M.args&&M.args[0],T):M.use!==null?this._getUse(M.use,N._reporterState.obj)._decode(N,T):N.error("unknown tag: "+I)},g.prototype._getUse=function(I,N){let T=this._baseState;return T.useDecoder=this._use(I,N),i(T.useDecoder._baseState.parent===null),T.useDecoder=T.useDecoder._baseState.children[0],T.implicit!==T.useDecoder._baseState.implicit&&(T.useDecoder=T.useDecoder.clone(),T.useDecoder._baseState.implicit=T.implicit),T.useDecoder},g.prototype._decodeChoice=function(I,N){let T=this._baseState,M=null,D=!1;return Object.keys(T.choice).some(function(P){let G=I.save(),q=T.choice[P];try{let Y=q._decode(I,N);if(I.isError(Y))return!1;M={type:P,value:Y},D=!0}catch{return I.restore(G),!1}return!0},this),D?M:I.error("Choice not matched")},g.prototype._createEncoderBuffer=function(I){return new t(I,this.reporter)},g.prototype._encode=function(I,N,T){let M=this._baseState;if(M.default!==null&&M.default===I)return;let D=this._encodeValue(I,N,T);if(D!==void 0&&!this._skipDefault(D,N,T))return D},g.prototype._encodeValue=function(I,N,T){let M=this._baseState;if(M.parent===null)return M.children[0]._encode(I,N||new e);let D=null;if(this.reporter=N,M.optional&&I===void 0)if(M.default!==null)I=M.default;else return;let P=null,G=!1;if(M.any)D=this._createEncoderBuffer(I);else if(M.choice)D=this._encodeChoice(I,N);else if(M.contains)P=this._getUse(M.contains,T)._encode(I,N),G=!0;else if(M.children)P=M.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,N,I);if(q._baseState.key===null)return N.error("Child should have a key");let Y=N.enterKey(q._baseState.key);if(typeof I!="object")return N.error("Child expected, but input is not object");let ne=q._encode(I[q._baseState.key],N,I);return N.leaveKey(Y),ne},this).filter(function(q){return q}),P=this._createEncoderBuffer(P);else if(M.tag==="seqof"||M.tag==="setof"){if(!(M.args&&M.args.length===1))return N.error("Too many args for : "+M.tag);if(!Array.isArray(I))return N.error("seqof/setof, but data is not Array");let q=this.clone();q._baseState.implicit=null,P=this._createEncoderBuffer(I.map(function(Y){let ne=this._baseState;return this._getUse(ne.args[0],I)._encode(Y,N)},q))}else M.use!==null?D=this._getUse(M.use,T)._encode(I,N):(P=this._encodePrimitive(M.tag,I),G=!0);if(!M.any&&M.choice===null){let q=M.implicit!==null?M.implicit:M.tag,Y=M.implicit===null?"universal":"context";q===null?M.use===null&&N.error("Tag could be omitted only for .use()"):M.use===null&&(D=this._encodeComposite(q,G,Y,P))}return M.explicit!==null&&(D=this._encodeComposite(M.explicit,!1,"context",D)),D},g.prototype._encodeChoice=function(I,N){let T=this._baseState,M=T.choice[I.type];return M||i(!1,I.type+" not found in "+JSON.stringify(Object.keys(T.choice))),M._encode(I.value,N)},g.prototype._encodePrimitive=function(I,N){let T=this._baseState;if(/str$/.test(I))return this._encodeStr(N,I);if(I==="objid"&&T.args)return this._encodeObjid(N,T.reverseArgs[0],T.args[1]);if(I==="objid")return this._encodeObjid(N,null,null);if(I==="gentime"||I==="utctime")return this._encodeTime(N,I);if(I==="null_")return this._encodeNull();if(I==="int"||I==="enum")return this._encodeInt(N,T.args&&T.reverseArgs[0]);if(I==="bool")return this._encodeBool(N);if(I==="objDesc")return this._encodeStr(N,I);throw new Error("Unsupported tag: "+I)},g.prototype._isNumstr=function(I){return/^[0-9 ]*$/.test(I)},g.prototype._isPrintstr=function(I){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(I)},Ace}function s0e(){if(OQe)return a6;OQe=!0;function e(t){let r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);let n=t[i];r[n]=i}),r}return a6.tagClass={0:"universal",1:"application",2:"context",3:"private"},a6.tagClassByName=e(a6.tagClass),a6.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},a6.tagByName=e(a6.tag),a6}function LVe(){if(NQe)return pce;NQe=!0;let e=La(),t=i0e().Buffer,r=a0e(),i=s0e();function n(y){this.enc="der",this.name=y.name,this.entity=y,this.tree=new o,this.tree._init(y.body)}pce=n,n.prototype.encode=function(_,I){return this.tree._encode(_,I).join()};function o(y){r.call(this,"der",y)}e(o,r),o.prototype._encodeComposite=function(_,I,N,T){let M=g(_,I,N,this.reporter);if(T.length<128){let G=t.alloc(2);return G[0]=M,G[1]=T.length,this._createEncoderBuffer([G,T])}let D=1;for(let G=T.length;G>=256;G>>=8)D++;let P=t.alloc(2+D);P[0]=M,P[1]=128|D;for(let G=1+D,q=T.length;q>0;G--,q>>=8)P[G]=q&255;return this._createEncoderBuffer([P,T])},o.prototype._encodeStr=function(_,I){if(I==="bitstr")return this._createEncoderBuffer([_.unused|0,_.data]);if(I==="bmpstr"){let N=t.alloc(_.length*2);for(let T=0;T<_.length;T++)N.writeUInt16BE(_.charCodeAt(T),T*2);return this._createEncoderBuffer(N)}else return I==="numstr"?this._isNumstr(_)?this._createEncoderBuffer(_):this.reporter.error("Encoding of string type: numstr supports only digits and space"):I==="printstr"?this._isPrintstr(_)?this._createEncoderBuffer(_):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(I)?this._createEncoderBuffer(_):I==="objDesc"?this._createEncoderBuffer(_):this.reporter.error("Encoding of string type: "+I+" unsupported")},o.prototype._encodeObjid=function(_,I,N){if(typeof _=="string"){if(!I)return this.reporter.error("string objid given, but no values map found");if(!I.hasOwnProperty(_))return this.reporter.error("objid not found in values map");_=I[_].split(/[\s.]+/g);for(let P=0;P<_.length;P++)_[P]|=0}else if(Array.isArray(_)){_=_.slice();for(let P=0;P<_.length;P++)_[P]|=0}if(!Array.isArray(_))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(_));if(!N){if(_[1]>=40)return this.reporter.error("Second objid identifier OOB");_.splice(0,2,_[0]*40+_[1])}let T=0;for(let P=0;P<_.length;P++){let G=_[P];for(T++;G>=128;G>>=7)T++}let M=t.alloc(T),D=M.length-1;for(let P=_.length-1;P>=0;P--){let G=_[P];for(M[D--]=G&127;(G>>=7)>0;)M[D--]=128|G&127}return this._createEncoderBuffer(M)};function d(y){return y<10?"0"+y:y}o.prototype._encodeTime=function(_,I){let N,T=new Date(_);return I==="gentime"?N=[d(T.getUTCFullYear()),d(T.getUTCMonth()+1),d(T.getUTCDate()),d(T.getUTCHours()),d(T.getUTCMinutes()),d(T.getUTCSeconds()),"Z"].join(""):I==="utctime"?N=[d(T.getUTCFullYear()%100),d(T.getUTCMonth()+1),d(T.getUTCDate()),d(T.getUTCHours()),d(T.getUTCMinutes()),d(T.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+I+" time is not supported yet"),this._encodeStr(N,"octstr")},o.prototype._encodeNull=function(){return this._createEncoderBuffer("")},o.prototype._encodeInt=function(_,I){if(typeof _=="string"){if(!I)return this.reporter.error("String int or enum given, but no values map");if(!I.hasOwnProperty(_))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(_));_=I[_]}if(typeof _!="number"&&!t.isBuffer(_)){let M=_.toArray();!_.sign&&M[0]&128&&M.unshift(0),_=t.from(M)}if(t.isBuffer(_)){let M=_.length;_.length===0&&M++;let D=t.alloc(M);return _.copy(D),_.length===0&&(D[0]=0),this._createEncoderBuffer(D)}if(_<128)return this._createEncoderBuffer(_);if(_<256)return this._createEncoderBuffer([0,_]);let N=1;for(let M=_;M>=256;M>>=8)N++;let T=new Array(N);for(let M=T.length-1;M>=0;M--)T[M]=_&255,_>>=8;return T[0]&128&&T.unshift(0),this._createEncoderBuffer(t.from(T))},o.prototype._encodeBool=function(_){return this._createEncoderBuffer(_?255:0)},o.prototype._use=function(_,I){return typeof _=="function"&&(_=_(I)),_._getEncoder("der").tree},o.prototype._skipDefault=function(_,I,N){let T=this._baseState,M;if(T.default===null)return!1;let D=_.join();if(T.defaultBuffer===void 0&&(T.defaultBuffer=this._encodeValue(T.default,I,N).join()),D.length!==T.defaultBuffer.length)return!1;for(M=0;M<D.length;M++)if(D[M]!==T.defaultBuffer[M])return!1;return!0};function g(y,_,I,N){let T;if(y==="seqof"?y="seq":y==="setof"&&(y="set"),i.tagByName.hasOwnProperty(y))T=i.tagByName[y];else if(typeof y=="number"&&(y|0)===y)T=y;else return N.error("Unknown tag: "+y);return T>=31?N.error("Multi-octet tag encoding unsupported"):(_||(T|=32),T|=i.tagClassByName[I||"universal"]<<6,T)}return pce}function nOt(){if(xQe)return gce;xQe=!0;let e=La(),t=LVe();function r(i){t.call(this,i),this.enc="pem"}return e(r,t),gce=r,r.prototype.encode=function(n,o){let g=t.prototype.encode.call(this,n).toString("base64"),y=["-----BEGIN "+o.label+"-----"];for(let _=0;_<g.length;_+=64)y.push(g.slice(_,_+64));return y.push("-----END "+o.label+"-----"),y.join(`
|
|
`)},gce}function UVe(){if(TQe)return _ce;TQe=!0;let e=_ce;return e.der=LVe(),e.pem=nOt(),_ce}function FVe(){if(BQe)return mce;BQe=!0;let e=La(),t=PVe(),r=xD().DecoderBuffer,i=a0e(),n=s0e();function o(_){this.enc="der",this.name=_.name,this.entity=_,this.tree=new d,this.tree._init(_.body)}mce=o,o.prototype.decode=function(I,N){return r.isDecoderBuffer(I)||(I=new r(I,N)),this.tree._decode(I,N)};function d(_){i.call(this,"der",_)}e(d,i),d.prototype._peekTag=function(I,N,T){if(I.isEmpty())return!1;let M=I.save(),D=g(I,'Failed to peek tag: "'+N+'"');return I.isError(D)?D:(I.restore(M),D.tag===N||D.tagStr===N||D.tagStr+"of"===N||T)},d.prototype._decodeTag=function(I,N,T){let M=g(I,'Failed to decode tag of "'+N+'"');if(I.isError(M))return M;let D=y(I,M.primitive,'Failed to get length of "'+N+'"');if(I.isError(D))return D;if(!T&&M.tag!==N&&M.tagStr!==N&&M.tagStr+"of"!==N)return I.error('Failed to match tag: "'+N+'"');if(M.primitive||D!==null)return I.skip(D,'Failed to match body of: "'+N+'"');let P=I.save(),G=this._skipUntilEnd(I,'Failed to skip indefinite length body: "'+this.tag+'"');return I.isError(G)?G:(D=I.offset-P.offset,I.restore(P),I.skip(D,'Failed to match body of: "'+N+'"'))},d.prototype._skipUntilEnd=function(I,N){for(;;){let T=g(I,N);if(I.isError(T))return T;let M=y(I,T.primitive,N);if(I.isError(M))return M;let D;if(T.primitive||M!==null?D=I.skip(M):D=this._skipUntilEnd(I,N),I.isError(D))return D;if(T.tagStr==="end")break}},d.prototype._decodeList=function(I,N,T,M){let D=[];for(;!I.isEmpty();){let P=this._peekTag(I,"end");if(I.isError(P))return P;let G=T.decode(I,"der",M);if(I.isError(G)&&P)break;D.push(G)}return D},d.prototype._decodeStr=function(I,N){if(N==="bitstr"){let T=I.readUInt8();return I.isError(T)?T:{unused:T,data:I.raw()}}else if(N==="bmpstr"){let T=I.raw();if(T.length%2===1)return I.error("Decoding of string type: bmpstr length mismatch");let M="";for(let D=0;D<T.length/2;D++)M+=String.fromCharCode(T.readUInt16BE(D*2));return M}else if(N==="numstr"){let T=I.raw().toString("ascii");return this._isNumstr(T)?T:I.error("Decoding of string type: numstr unsupported characters")}else{if(N==="octstr")return I.raw();if(N==="objDesc")return I.raw();if(N==="printstr"){let T=I.raw().toString("ascii");return this._isPrintstr(T)?T:I.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(N)?I.raw().toString():I.error("Decoding of string type: "+N+" unsupported")}},d.prototype._decodeObjid=function(I,N,T){let M,D=[],P=0,G=0;for(;!I.isEmpty();)G=I.readUInt8(),P<<=7,P|=G&127,(G&128)===0&&(D.push(P),P=0);G&128&&D.push(P);let q=D[0]/40|0,Y=D[0]%40;if(T?M=D:M=[q,Y].concat(D.slice(1)),N){let ne=N[M.join(" ")];ne===void 0&&(ne=N[M.join(".")]),ne!==void 0&&(M=ne)}return M},d.prototype._decodeTime=function(I,N){let T=I.raw().toString(),M,D,P,G,q,Y;if(N==="gentime")M=T.slice(0,4)|0,D=T.slice(4,6)|0,P=T.slice(6,8)|0,G=T.slice(8,10)|0,q=T.slice(10,12)|0,Y=T.slice(12,14)|0;else if(N==="utctime")M=T.slice(0,2)|0,D=T.slice(2,4)|0,P=T.slice(4,6)|0,G=T.slice(6,8)|0,q=T.slice(8,10)|0,Y=T.slice(10,12)|0,M<70?M=2e3+M:M=1900+M;else return I.error("Decoding "+N+" time is not supported yet");return Date.UTC(M,D-1,P,G,q,Y,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(I){let N=I.readUInt8();return I.isError(N)?N:N!==0},d.prototype._decodeInt=function(I,N){let T=I.raw(),M=new t(T);return N&&(M=N[M.toString(10)]||M),M},d.prototype._use=function(I,N){return typeof I=="function"&&(I=I(N)),I._getDecoder("der").tree};function g(_,I){let N=_.readUInt8(I);if(_.isError(N))return N;let T=n.tagClass[N>>6],M=(N&32)===0;if((N&31)===31){let P=N;for(N=0;(P&128)===128;){if(P=_.readUInt8(I),_.isError(P))return P;N<<=7,N|=P&127}}else N&=31;let D=n.tag[N];return{cls:T,primitive:M,tag:N,tagStr:D}}function y(_,I,N){let T=_.readUInt8(N);if(_.isError(T))return T;if(!I&&T===128)return null;if((T&128)===0)return T;let M=T&127;if(M>4)return _.error("length octect is too long");T=0;for(let D=0;D<M;D++){T<<=8;let P=_.readUInt8(N);if(_.isError(P))return P;T|=P}return T}return mce}function iOt(){if(MQe)return yce;MQe=!0;let e=La(),t=i0e().Buffer,r=FVe();function i(n){r.call(this,n),this.enc="pem"}return e(i,r),yce=i,i.prototype.decode=function(o,d){let g=o.toString().split(/[\r\n]+/g),y=d.label.toUpperCase(),_=/^-----(BEGIN|END) ([^-]+)-----$/,I=-1,N=-1;for(let D=0;D<g.length;D++){let P=g[D].match(_);if(P!==null&&P[2]===y)if(I===-1){if(P[1]!=="BEGIN")break;I=D}else{if(P[1]!=="END")break;N=D;break}}if(I===-1||N===-1)throw new Error("PEM section not found for: "+y);let T=g.slice(I+1,N).join("");T.replace(/[^a-z0-9+/=]+/gi,"");let M=t.from(T,"base64");return r.prototype.decode.call(this,M,d)},yce}function QVe(){if(DQe)return bce;DQe=!0;let e=bce;return e.der=FVe(),e.pem=iOt(),bce}function oOt(){if(kQe)return Ece;kQe=!0;let e=UVe(),t=QVe(),r=La(),i=Ece;i.define=function(d,g){return new n(d,g)};function n(o,d){this.name=o,this.body=d,this.decoders={},this.encoders={}}return n.prototype._createNamed=function(d){let g=this.name;function y(_){this._initNamed(_,g)}return r(y,d),y.prototype._initNamed=function(I,N){d.call(this,I,N)},new y(this)},n.prototype._getDecoder=function(d){return d=d||"der",this.decoders.hasOwnProperty(d)||(this.decoders[d]=this._createNamed(t[d])),this.decoders[d]},n.prototype.decode=function(d,g,y){return this._getDecoder(g).decode(d,y)},n.prototype._getEncoder=function(d){return d=d||"der",this.encoders.hasOwnProperty(d)||(this.encoders[d]=this._createNamed(e[d])),this.encoders[d]},n.prototype.encode=function(d,g,y){return this._getEncoder(g).encode(d,y)},Ece}function aOt(){if(PQe)return vce;PQe=!0;let e=vce;return e.Reporter=o0e().Reporter,e.DecoderBuffer=xD().DecoderBuffer,e.EncoderBuffer=xD().EncoderBuffer,e.Node=a0e(),vce}function sOt(){if(LQe)return Rce;LQe=!0;let e=Rce;return e._reverse=function(r){let i={};return Object.keys(r).forEach(function(n){(n|0)==n&&(n=n|0);let o=r[n];i[o]=n}),i},e.der=s0e(),Rce}function HVe(){if(UQe)return Sce;UQe=!0;let e=Sce;return e.bignum=PVe(),e.define=oOt().define,e.base=aOt(),e.constants=sOt(),e.decoders=QVe(),e.encoders=UVe(),Sce}function cOt(){if(FQe)return Ice;FQe=!0;var e=HVe(),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),r=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),i=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),n=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())}),o=e.define("RelativeDistinguishedName",function(){this.setof(r)}),d=e.define("RDNSequence",function(){this.seqof(o)}),g=e.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),y=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),_=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),I=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(g),this.key("validity").use(y),this.key("subject").use(g),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(_).optional())}),N=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(I),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())});return Ice=N,Ice}function uOt(){if(QQe)return Qg;QQe=!0;var e=HVe();Qg.certificate=cOt();var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Qg.RSAPrivateKey=t;var r=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Qg.RSAPublicKey=r;var i=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});Qg.PublicKey=i;var n=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),o=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});Qg.PrivateKey=o;var d=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Qg.EncryptedPrivateKey=d;var g=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Qg.DSAPrivateKey=g,Qg.DSAparam=e.define("DSAparam",function(){this.int()});var y=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(_),this.key("publicKey").optional().explicit(1).bitstr())});Qg.ECPrivateKey=y;var _=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});return Qg.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),Qg}function fOt(){if(HQe)return Cce;HQe=!0;var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=$q(),n=bue(),o=Vs().Buffer;return Cce=function(d,g){var y=d.toString(),_=y.match(e),I;if(_){var T="aes"+_[1],M=o.from(_[2],"hex"),D=o.from(_[3].replace(/[\r\n]/g,""),"base64"),P=i(g,M.slice(0,8),parseInt(_[1],10)).key,G=[],q=n.createDecipheriv(T,P,M);G.push(q.update(D)),G.push(q.final()),I=o.concat(G)}else{var N=y.match(r);I=o.from(N[2].replace(/[\r\n]/g,""),"base64")}var Y=y.match(t)[1];return{tag:Y,data:I}},Cce}function hV(){if(GQe)return wce;GQe=!0;var e=uOt(),t=dOt,r=fOt(),i=bue(),n=mHe(),o=Vs().Buffer;wce=d;function d(y){var _;typeof y=="object"&&!o.isBuffer(y)&&(_=y.passphrase,y=y.key),typeof y=="string"&&(y=o.from(y));var I=r(y,_),N=I.tag,T=I.data,M,D;switch(N){case"CERTIFICATE":D=e.certificate.decode(T,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(D||(D=e.PublicKey.decode(T,"der")),M=D.algorithm.algorithm.join("."),M){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(D.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return D.subjectPrivateKey=D.subjectPublicKey,{type:"ec",data:D};case"1.2.840.10040.4.1":return D.algorithm.params.pub_key=e.DSAparam.decode(D.subjectPublicKey.data,"der"),{type:"dsa",data:D.algorithm.params};default:throw new Error("unknown key id "+M)}case"ENCRYPTED PRIVATE KEY":T=e.EncryptedPrivateKey.decode(T,"der"),T=g(T,_);case"PRIVATE KEY":switch(D=e.PrivateKey.decode(T,"der"),M=D.algorithm.algorithm.join("."),M){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(D.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:D.algorithm.curve,privateKey:e.ECPrivateKey.decode(D.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return D.algorithm.params.priv_key=e.DSAparam.decode(D.subjectPrivateKey,"der"),{type:"dsa",params:D.algorithm.params};default:throw new Error("unknown key id "+M)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(T,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(T,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(T,"der")};case"EC PRIVATE KEY":return T=e.ECPrivateKey.decode(T,"der"),{curve:T.parameters.value,privateKey:T.privateKey};default:throw new Error("unknown key type "+N)}}d.signature=e.signature;function g(y,_){var I=y.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(y.algorithm.decrypt.kde.kdeparams.iters.toString(),10),T=t[y.algorithm.decrypt.cipher.algo.join(".")],M=y.algorithm.decrypt.cipher.iv,D=y.subjectPrivateKey,P=parseInt(T.split("-")[1],10)/8,G=n.pbkdf2Sync(_,I,N,P,"sha1"),q=i.createDecipheriv(T,G,M),Y=[];return Y.push(q.update(D)),Y.push(q.final()),o.concat(Y)}return wce}function lOt(){if(qQe)return oD;qQe=!0;var e=Zue().Buffer,t=lHe(),r=e0e(),i=n0e().ec,n=jue(),o=hV(),d=GVe;function g(G,q,Y,ne,ce){var le=o(q);if(le.curve){if(ne!=="ecdsa"&&ne!=="ecdsa/rsa")throw new Error("wrong private key type");return y(G,le)}else if(le.type==="dsa"){if(ne!=="dsa")throw new Error("wrong private key type");return _(G,le,Y)}else if(ne!=="rsa"&&ne!=="ecdsa/rsa")throw new Error("wrong private key type");G=e.concat([ce,G]);for(var pe=le.modulus.byteLength(),ae=[0,1];G.length+ae.length+1<pe;)ae.push(255);ae.push(0);for(var W=-1;++W<G.length;)ae.push(G[W]);var se=r(ae,le);return se}function y(G,q){var Y=d[q.curve.join(".")];if(!Y)throw new Error("unknown curve "+q.curve.join("."));var ne=new i(Y),ce=ne.keyFromPrivate(q.privateKey),le=ce.sign(G);return e.from(le.toDER())}function _(G,q,Y){for(var ne=q.params.priv_key,ce=q.params.p,le=q.params.q,pe=q.params.g,ae=new n(0),W,se=T(G,le).mod(le),O=!1,s=N(ne,le,G,Y);O===!1;)W=D(le,s,Y),ae=P(pe,W,ce,le),O=W.invm(le).imul(se.add(ne.mul(ae))).mod(le),O.cmpn(0)===0&&(O=!1,ae=new n(0));return I(ae,O)}function I(G,q){G=G.toArray(),q=q.toArray(),G[0]&128&&(G=[0].concat(G)),q[0]&128&&(q=[0].concat(q));var Y=G.length+q.length+4,ne=[48,Y,2,G.length];return ne=ne.concat(G,[2,q.length],q),e.from(ne)}function N(G,q,Y,ne){if(G=e.from(G.toArray()),G.length<q.byteLength()){var ce=e.alloc(q.byteLength()-G.length);G=e.concat([ce,G])}var le=Y.length,pe=M(Y,q),ae=e.alloc(le);ae.fill(1);var W=e.alloc(le);return W=t(ne,W).update(ae).update(e.from([0])).update(G).update(pe).digest(),ae=t(ne,W).update(ae).digest(),W=t(ne,W).update(ae).update(e.from([1])).update(G).update(pe).digest(),ae=t(ne,W).update(ae).digest(),{k:W,v:ae}}function T(G,q){var Y=new n(G),ne=(G.length<<3)-q.bitLength();return ne>0&&Y.ishrn(ne),Y}function M(G,q){G=T(G,q),G=G.mod(q);var Y=e.from(G.toArray());if(Y.length<q.byteLength()){var ne=e.alloc(q.byteLength()-Y.length);Y=e.concat([ne,Y])}return Y}function D(G,q,Y){var ne,ce;do{for(ne=e.alloc(0);ne.length*8<G.bitLength();)q.v=t(Y,q.k).update(q.v).digest(),ne=e.concat([ne,q.v]);ce=T(ne,G),q.k=t(Y,q.k).update(q.v).update(e.from([0])).digest(),q.v=t(Y,q.k).update(q.v).digest()}while(ce.cmp(G)!==-1);return ce}function P(G,q,Y,ne){return G.toRed(n.mont(Y)).redPow(q).fromRed().mod(ne)}return oD=g,oD.getKey=N,oD.makeKey=D,oD}function hOt(){if(VQe)return Oce;VQe=!0;var e=Zue().Buffer,t=jue(),r=n0e().ec,i=hV(),n=GVe;function o(_,I,N,T,M){var D=i(N);if(D.type==="ec"){if(T!=="ecdsa"&&T!=="ecdsa/rsa")throw new Error("wrong public key type");return d(_,I,D)}else if(D.type==="dsa"){if(T!=="dsa")throw new Error("wrong public key type");return g(_,I,D)}else if(T!=="rsa"&&T!=="ecdsa/rsa")throw new Error("wrong public key type");I=e.concat([M,I]);for(var P=D.modulus.byteLength(),G=[1],q=0;I.length+G.length+2<P;)G.push(255),q++;G.push(0);for(var Y=-1;++Y<I.length;)G.push(I[Y]);G=e.from(G);var ne=t.mont(D.modulus);_=new t(_).toRed(ne),_=_.redPow(new t(D.publicExponent)),_=e.from(_.fromRed().toArray());var ce=q<8?1:0;for(P=Math.min(_.length,G.length),_.length!==G.length&&(ce=1),Y=-1;++Y<P;)ce|=_[Y]^G[Y];return ce===0}function d(_,I,N){var T=n[N.data.algorithm.curve.join(".")];if(!T)throw new Error("unknown curve "+N.data.algorithm.curve.join("."));var M=new r(T),D=N.data.subjectPrivateKey.data;return M.verify(I,_,D)}function g(_,I,N){var T=N.data.p,M=N.data.q,D=N.data.g,P=N.data.pub_key,G=i.signature.decode(_,"der"),q=G.s,Y=G.r;y(q,M),y(Y,M);var ne=t.mont(T),ce=q.invm(M),le=D.toRed(ne).redPow(new t(I).mul(ce).mod(M)).fromRed().mul(P.toRed(ne).redPow(Y.mul(ce).mod(M)).fromRed()).mod(T).mod(M);return le.cmp(Y)===0}function y(_,I){if(_.cmpn(0)<=0)throw new Error("invalid sig");if(_.cmp(I)>=I)throw new Error("invalid sig")}return Oce=o,Oce}function AOt(){if(JQe)return Nce;JQe=!0;var e=Zue().Buffer,t=TD(),r=Vne(),i=La(),n=lOt(),o=hOt(),d=hHe;Object.keys(d).forEach(function(N){d[N].id=e.from(d[N].id,"hex"),d[N.toLowerCase()]=d[N]});function g(N){r.Writable.call(this||od);var T=d[N];if(!T)throw new Error("Unknown message digest");(this||od)._hashType=T.hash,(this||od)._hash=t(T.hash),(this||od)._tag=T.id,(this||od)._signType=T.sign}i(g,r.Writable),g.prototype._write=function(T,M,D){(this||od)._hash.update(T),D()},g.prototype.update=function(T,M){return typeof T=="string"&&(T=e.from(T,M)),(this||od)._hash.update(T),this||od},g.prototype.sign=function(T,M){this.end();var D=(this||od)._hash.digest(),P=n(D,T,(this||od)._hashType,(this||od)._signType,(this||od)._tag);return M?P.toString(M):P};function y(N){r.Writable.call(this||od);var T=d[N];if(!T)throw new Error("Unknown message digest");(this||od)._hash=t(T.hash),(this||od)._tag=T.id,(this||od)._signType=T.sign}i(y,r.Writable),y.prototype._write=function(T,M,D){(this||od)._hash.update(T),D()},y.prototype.update=function(T,M){return typeof T=="string"&&(T=e.from(T,M)),(this||od)._hash.update(T),this||od},y.prototype.verify=function(T,M,D){typeof M=="string"&&(M=e.from(M,D)),this.end();var P=(this||od)._hash.digest();return o(M,P,T,(this||od)._signType,(this||od)._tag)};function _(N){return new g(N)}function I(N){return new y(N)}return Nce={Sign:_,Verify:I,createSign:_,createVerify:I},Nce}function pOt(){return zQe||(zQe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Lt).negative=0,(this||Lt).words=null,(this||Lt).length=0,(this||Lt).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Lt).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Lt).negative=1,s=-s),s<67108864?((this||Lt).words=[s&67108863],(this||Lt).length=1):s<4503599627370496?((this||Lt).words=[s&67108863,s/67108864&67108863],(this||Lt).length=2):(r(s<9007199254740992),(this||Lt).words=[s&67108863,s/67108864&67108863,1],(this||Lt).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Lt).words=[0],(this||Lt).length=1,this||Lt;(this||Lt).length=Math.ceil(s.length/3),(this||Lt).words=new Array((this||Lt).length);for(var m=0;m<(this||Lt).length;m++)(this||Lt).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Lt).words[E]|=w<<x&67108863,(this||Lt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Lt).words[E]|=w<<x&67108863,(this||Lt).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Lt).length=Math.ceil((s.length-l)/6),(this||Lt).words=new Array((this||Lt).length);for(var m=0;m<(this||Lt).length;m++)(this||Lt).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Lt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Lt).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Lt).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Lt).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Lt).words=[0],(this||Lt).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Lt).words[0]+u<67108864?(this||Lt).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Lt).words[0]+u<67108864?(this||Lt).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Lt).length);for(var l=0;l<(this||Lt).length;l++)s.words[l]=(this||Lt).words[l];s.length=(this||Lt).length,s.negative=(this||Lt).negative,s.red=(this||Lt).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Lt).length<s;)(this||Lt).words[(this||Lt).length++]=0;return this||Lt},n.prototype.strip=function(){for(;(this||Lt).length>1&&(this||Lt).words[(this||Lt).length-1]===0;)(this||Lt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Lt).length===1&&(this||Lt).words[0]===0&&((this||Lt).negative=0),this||Lt},n.prototype.inspect=function(){return((this||Lt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Lt).length;w++){var x=(this||Lt).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Lt).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Lt).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Lt).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Lt).words[0];return(this||Lt).length===2?s+=(this||Lt).words[1]*67108864:(this||Lt).length===3&&(this||Lt).words[2]===1?s+=4503599627370496+(this||Lt).words[1]*67108864:(this||Lt).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Lt).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Lt).words[(this||Lt).length-1],l=this._countBits(s);return((this||Lt).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Lt).length;l++){var A=this._zeroBits((this||Lt).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Lt).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Lt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Lt).negative^=1),this||Lt},n.prototype.iuor=function(s){for(;(this||Lt).length<s.length;)(this||Lt).words[(this||Lt).length++]=0;for(var l=0;l<s.length;l++)(this||Lt).words[l]=(this||Lt).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Lt).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Lt).length>s.length?this.clone().ior(s):s.clone().ior(this||Lt)},n.prototype.uor=function(s){return(this||Lt).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Lt)},n.prototype.iuand=function(s){var l;(this||Lt).length>s.length?l=s:l=this||Lt;for(var A=0;A<l.length;A++)(this||Lt).words[A]=(this||Lt).words[A]&s.words[A];return(this||Lt).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Lt).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Lt).length>s.length?this.clone().iand(s):s.clone().iand(this||Lt)},n.prototype.uand=function(s){return(this||Lt).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Lt)},n.prototype.iuxor=function(s){var l,A;(this||Lt).length>s.length?(l=this||Lt,A=s):(l=s,A=this||Lt);for(var m=0;m<A.length;m++)(this||Lt).words[m]=l.words[m]^A.words[m];if((this||Lt)!==l)for(;m<l.length;m++)(this||Lt).words[m]=l.words[m];return(this||Lt).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Lt).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Lt).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Lt)},n.prototype.uxor=function(s){return(this||Lt).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Lt)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Lt).words[m]=~(this||Lt).words[m]&67108863;return A>0&&((this||Lt).words[m]=~(this||Lt).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Lt).words[A]=(this||Lt).words[A]|1<<m:(this||Lt).words[A]=(this||Lt).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Lt).negative!==0&&s.negative===0)return(this||Lt).negative=0,l=this.isub(s),(this||Lt).negative^=1,this._normSign();if((this||Lt).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Lt).length>s.length?(A=this||Lt,m=s):(A=s,m=this||Lt);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Lt).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Lt).words[w]=l&67108863,E=l>>>26;if((this||Lt).length=A.length,E!==0)(this||Lt).words[(this||Lt).length]=E,(this||Lt).length++;else if(A!==(this||Lt))for(;w<A.length;w++)(this||Lt).words[w]=A.words[w];return this||Lt},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Lt).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Lt).negative!==0?((this||Lt).negative=0,l=s.sub(this||Lt),(this||Lt).negative=1,l):(this||Lt).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Lt)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Lt).negative!==0)return(this||Lt).negative=0,this.iadd(s),(this||Lt).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Lt).negative=0,(this||Lt).length=1,(this||Lt).words[0]=0,this||Lt;var m,E;A>0?(m=this||Lt,E=s):(m=s,E=this||Lt);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Lt).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Lt).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Lt))for(;x<m.length;x++)(this||Lt).words[x]=m.words[x];return(this||Lt).length=Math.max((this||Lt).length,x),m!==(this||Lt)&&((this||Lt).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Lt).length+s.length;return(this||Lt).length===10&&s.length===10?A=D(this||Lt,s,l):m<63?A=M(this||Lt,s,l):m<1024?A=P(this||Lt,s,l):A=G(this||Lt,s,l),A};function q(O,s){(this||Lt).x=O,(this||Lt).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Lt).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Lt).length+s.length),G(this||Lt,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Lt)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Lt).length;A++){var m=((this||Lt).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Lt).words[A]=E&67108863}return l!==0&&((this||Lt).words[A]=l,(this||Lt).length++),this||Lt},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Lt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Lt,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Lt).length;E++){var x=(this||Lt).words[E]&m,R=((this||Lt).words[E]|0)-x<<l;(this||Lt).words[E]=R|w,w=x>>>26-l}w&&((this||Lt).words[E]=w,(this||Lt).length++)}if(A!==0){for(E=(this||Lt).length-1;E>=0;E--)(this||Lt).words[E+A]=(this||Lt).words[E];for(E=0;E<A;E++)(this||Lt).words[E]=0;(this||Lt).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Lt).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Lt).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Lt).words[u];R.length=w}if(w!==0)if((this||Lt).length>w)for((this||Lt).length-=w,u=0;u<(this||Lt).length;u++)(this||Lt).words[u]=(this||Lt).words[u+w];else(this||Lt).words[0]=0,(this||Lt).length=1;var C=0;for(u=(this||Lt).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Lt).words[u]|0;(this||Lt).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Lt).length===0&&((this||Lt).words[0]=0,(this||Lt).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Lt).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Lt).length<=A)return!1;var E=(this||Lt).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Lt).negative===0,"imaskn works only with positive numbers"),(this||Lt).length<=A)return this||Lt;if(l!==0&&A++,(this||Lt).length=Math.min(A,(this||Lt).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Lt).words[(this||Lt).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Lt).negative!==0?(this||Lt).length===1&&((this||Lt).words[0]|0)<s?((this||Lt).words[0]=s-((this||Lt).words[0]|0),(this||Lt).negative=0,this||Lt):((this||Lt).negative=0,this.isubn(s),(this||Lt).negative=1,this||Lt):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Lt).words[0]+=s;for(var l=0;l<(this||Lt).length&&(this||Lt).words[l]>=67108864;l++)(this||Lt).words[l]-=67108864,l===(this||Lt).length-1?(this||Lt).words[l+1]=1:(this||Lt).words[l+1]++;return(this||Lt).length=Math.max((this||Lt).length,l+1),this||Lt},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Lt).negative!==0)return(this||Lt).negative=0,this.iaddn(s),(this||Lt).negative=1,this||Lt;if((this||Lt).words[0]-=s,(this||Lt).length===1&&(this||Lt).words[0]<0)(this||Lt).words[0]=-(this||Lt).words[0],(this||Lt).negative=1;else for(var l=0;l<(this||Lt).length&&(this||Lt).words[l]<0;l++)(this||Lt).words[l]+=67108864,(this||Lt).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Lt).negative=0,this||Lt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Lt).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Lt).words[E+A]=w&67108863}for(;E<(this||Lt).length-A;E++)w=((this||Lt).words[E+A]|0)+x,x=w>>26,(this||Lt).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Lt).length;E++)w=-((this||Lt).words[E]|0)+x,x=w>>26,(this||Lt).words[E]=w&67108863;return(this||Lt).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Lt).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Lt).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Lt).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Lt).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Lt).length||this.cmp(s)<0?{div:new n(0),mod:this||Lt}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Lt).length-1;m>=0;m--)A=(l*A+((this||Lt).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Lt).length-1;A>=0;A--){var m=((this||Lt).words[A]|0)+l*67108864;(this||Lt).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Lt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Lt,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Lt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Lt).words[0]&1)===1},n.prototype.andln=function(s){return(this||Lt).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Lt).length<=A)return this._expand(A+1),(this||Lt).words[A]|=m,this||Lt;for(var E=m,w=A;E!==0&&w<(this||Lt).length;w++){var x=(this||Lt).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Lt).words[w]=x}return E!==0&&((this||Lt).words[w]=E,(this||Lt).length++),this||Lt},n.prototype.isZero=function(){return(this||Lt).length===1&&(this||Lt).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Lt).negative!==0&&!l)return-1;if((this||Lt).negative===0&&l)return 1;this.strip();var A;if((this||Lt).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Lt).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Lt).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Lt).negative!==0&&s.negative===0)return-1;if((this||Lt).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Lt).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Lt).length>s.length)return 1;if((this||Lt).length<s.length)return-1;for(var l=0,A=(this||Lt).length-1;A>=0;A--){var m=(this||Lt).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Lt).red,"Already a number in reduction context"),r((this||Lt).negative===0,"red works only with positives"),s.convertTo(this||Lt)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Lt).red,"fromRed works only with numbers in reduction context"),(this||Lt).red.convertFrom(this||Lt)},n.prototype._forceRed=function(s){return(this||Lt).red=s,this||Lt},n.prototype.forceRed=function(s){return r(!(this||Lt).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Lt).red,"redAdd works only with red numbers"),(this||Lt).red.add(this||Lt,s)},n.prototype.redIAdd=function(s){return r((this||Lt).red,"redIAdd works only with red numbers"),(this||Lt).red.iadd(this||Lt,s)},n.prototype.redSub=function(s){return r((this||Lt).red,"redSub works only with red numbers"),(this||Lt).red.sub(this||Lt,s)},n.prototype.redISub=function(s){return r((this||Lt).red,"redISub works only with red numbers"),(this||Lt).red.isub(this||Lt,s)},n.prototype.redShl=function(s){return r((this||Lt).red,"redShl works only with red numbers"),(this||Lt).red.shl(this||Lt,s)},n.prototype.redMul=function(s){return r((this||Lt).red,"redMul works only with red numbers"),(this||Lt).red._verify2(this||Lt,s),(this||Lt).red.mul(this||Lt,s)},n.prototype.redIMul=function(s){return r((this||Lt).red,"redMul works only with red numbers"),(this||Lt).red._verify2(this||Lt,s),(this||Lt).red.imul(this||Lt,s)},n.prototype.redSqr=function(){return r((this||Lt).red,"redSqr works only with red numbers"),(this||Lt).red._verify1(this||Lt),(this||Lt).red.sqr(this||Lt)},n.prototype.redISqr=function(){return r((this||Lt).red,"redISqr works only with red numbers"),(this||Lt).red._verify1(this||Lt),(this||Lt).red.isqr(this||Lt)},n.prototype.redSqrt=function(){return r((this||Lt).red,"redSqrt works only with red numbers"),(this||Lt).red._verify1(this||Lt),(this||Lt).red.sqrt(this||Lt)},n.prototype.redInvm=function(){return r((this||Lt).red,"redInvm works only with red numbers"),(this||Lt).red._verify1(this||Lt),(this||Lt).red.invm(this||Lt)},n.prototype.redNeg=function(){return r((this||Lt).red,"redNeg works only with red numbers"),(this||Lt).red._verify1(this||Lt),(this||Lt).red.neg(this||Lt)},n.prototype.redPow=function(s){return r((this||Lt).red&&!s.red,"redPow(normalNum)"),(this||Lt).red._verify1(this||Lt),(this||Lt).red.pow(this||Lt,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Lt).name=O,(this||Lt).p=new n(s,16),(this||Lt).n=(this||Lt).p.bitLength(),(this||Lt).k=new n(1).iushln((this||Lt).n).isub((this||Lt).p),(this||Lt).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Lt).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Lt).tmp),l=this.imulK(l),l=l.iadd((this||Lt).tmp),A=l.bitLength();while(A>(this||Lt).n);var m=A<(this||Lt).n?-1:l.ucmp((this||Lt).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Lt).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Lt).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Lt).k)};function ce(){ne.call(this||Lt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Lt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Lt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Lt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Lt).m=s.p,(this||Lt).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Lt).m=O,(this||Lt).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Lt).prime?(this||Lt).prime.ireduce(s)._forceRed(this||Lt):s.umod((this||Lt).m)._forceRed(this||Lt)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Lt).m.sub(s)._forceRed(this||Lt)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Lt).m)>=0&&A.isub((this||Lt).m),A._forceRed(this||Lt)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Lt).m)>=0&&A.isub((this||Lt).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Lt).m),A._forceRed(this||Lt)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Lt).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Lt).m.andln(3);if(r(l%2===1),l===3){var A=(this||Lt).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Lt).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Lt),x=w.redNeg(),R=(this||Lt).m.subn(1).iushrn(1),u=(this||Lt).m.bitLength();for(u=new n(2*u*u).toRed(this||Lt);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Lt).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Lt);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Lt),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Lt).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Lt,O),(this||Lt).shift=(this||Lt).m.bitLength(),(this||Lt).shift%26!==0&&((this||Lt).shift+=26-(this||Lt).shift%26),(this||Lt).r=new n(1).iushln((this||Lt).shift),(this||Lt).r2=this.imod((this||Lt).r.sqr()),(this||Lt).rinv=(this||Lt).r._invmp((this||Lt).m),(this||Lt).minv=(this||Lt).rinv.mul((this||Lt).r).isubn(1).div((this||Lt).m),(this||Lt).minv=(this||Lt).minv.umod((this||Lt).r),(this||Lt).minv=(this||Lt).r.sub((this||Lt).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Lt).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Lt).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Lt).shift).mul((this||Lt).minv).imaskn((this||Lt).shift).mul((this||Lt).m),E=A.isub(m).iushrn((this||Lt).shift),w=E;return E.cmp((this||Lt).m)>=0?w=E.isub((this||Lt).m):E.cmpn(0)<0&&(w=E.iadd((this||Lt).m)),w._forceRed(this||Lt)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Lt);var A=s.mul(l),m=A.maskn((this||Lt).shift).mul((this||Lt).minv).imaskn((this||Lt).shift).mul((this||Lt).m),E=A.isub(m).iushrn((this||Lt).shift),w=E;return E.cmp((this||Lt).m)>=0?w=E.isub((this||Lt).m):E.cmpn(0)<0&&(w=E.iadd((this||Lt).m)),w._forceRed(this||Lt)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Lt).m).mul((this||Lt).r2));return l._forceRed(this||Lt)}})(xce,qVe)),xce.exports}function gOt(){if(KQe)return Tce;KQe=!0;var e=Nu.Buffer,t=n0e(),r=pOt();Tce=function(g){return new n(g)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1;function n(d){(this||Bf).curveType=i[d],(this||Bf).curveType||((this||Bf).curveType={name:d}),(this||Bf).curve=new t.ec((this||Bf).curveType.name),(this||Bf).keys=void 0}n.prototype.generateKeys=function(d,g){return(this||Bf).keys=(this||Bf).curve.genKeyPair(),this.getPublicKey(d,g)},n.prototype.computeSecret=function(d,g,y){g=g||"utf8",e.isBuffer(d)||(d=new e(d,g));var _=(this||Bf).curve.keyFromPublic(d).getPublic(),I=_.mul((this||Bf).keys.getPrivate()).getX();return o(I,y,(this||Bf).curveType.byteLength)},n.prototype.getPublicKey=function(d,g){var y=(this||Bf).keys.getPublic(g==="compressed",!0);return g==="hybrid"&&(y[y.length-1]%2?y[0]=7:y[0]=6),o(y,d)},n.prototype.getPrivateKey=function(d){return o((this||Bf).keys.getPrivate(),d)},n.prototype.setPublicKey=function(d,g){return g=g||"utf8",e.isBuffer(d)||(d=new e(d,g)),(this||Bf).keys._importPublic(d),this||Bf},n.prototype.setPrivateKey=function(d,g){g=g||"utf8",e.isBuffer(d)||(d=new e(d,g));var y=new r(d);return y=y.toString(16),(this||Bf).keys=(this||Bf).curve.genKeyPair(),(this||Bf).keys._importPrivate(y),this||Bf};function o(d,g,y){Array.isArray(d)||(d=d.toArray());var _=new e(d);if(y&&_.length<y){var I=new e(y-_.length);I.fill(0),_=e.concat([I,_])}return g?_.toString(g):_}return Tce}function VVe(){if($Qe)return Bce;$Qe=!0;var e=TD(),t=Vs().Buffer;Bce=function(i,n){for(var o=t.alloc(0),d=0,g;o.length<n;)g=r(d++),o=t.concat([o,e("sha1").update(i).update(g).digest()]);return o.slice(0,n)};function r(i){var n=t.allocUnsafe(4);return n.writeUInt32BE(i,0),n}return Bce}function JVe(){return YQe||(YQe=!0,Mce=function(t,r){for(var i=t.length,n=-1;++n<i;)t[n]^=r[n];return t}),Mce}function c0e(){return WQe||(WQe=!0,(function(e,t){function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;(this||Ut).negative=0,(this||Ut).words=null,(this||Ut).length=0,(this||Ut).red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Nu.Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,(this||Ut).negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&((this||Ut).negative=1,s=-s),s<67108864?((this||Ut).words=[s&67108863],(this||Ut).length=1):s<4503599627370496?((this||Ut).words=[s&67108863,s/67108864&67108863],(this||Ut).length=2):(r(s<9007199254740992),(this||Ut).words=[s&67108863,s/67108864&67108863,1],(this||Ut).length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return(this||Ut).words=[0],(this||Ut).length=1,this||Ut;(this||Ut).length=Math.ceil(s.length/3),(this||Ut).words=new Array((this||Ut).length);for(var m=0;m<(this||Ut).length;m++)(this||Ut).words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,(this||Ut).words[E]|=w<<x&67108863,(this||Ut).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,(this||Ut).words[E]|=w<<x&67108863,(this||Ut).words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){(this||Ut).length=Math.ceil((s.length-l)/6),(this||Ut).words=new Array((this||Ut).length);for(var m=0;m<(this||Ut).length;m++)(this||Ut).words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,(this||Ut).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Ut).words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,(this||Ut).words[w]|=x&67108863,E>=18?(E-=18,w+=1,(this||Ut).words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){(this||Ut).words=[0],(this||Ut).length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),(this||Ut).words[0]+u<67108864?(this||Ut).words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),(this||Ut).words[0]+u<67108864?(this||Ut).words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array((this||Ut).length);for(var l=0;l<(this||Ut).length;l++)s.words[l]=(this||Ut).words[l];s.length=(this||Ut).length,s.negative=(this||Ut).negative,s.red=(this||Ut).red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;(this||Ut).length<s;)(this||Ut).words[(this||Ut).length++]=0;return this||Ut},n.prototype.strip=function(){for(;(this||Ut).length>1&&(this||Ut).words[(this||Ut).length-1]===0;)(this||Ut).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Ut).length===1&&(this||Ut).words[0]===0&&((this||Ut).negative=0),this||Ut},n.prototype.inspect=function(){return((this||Ut).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<(this||Ut).length;w++){var x=(this||Ut).words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==(this||Ut).length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return(this||Ut).negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return(this||Ut).negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=(this||Ut).words[0];return(this||Ut).length===2?s+=(this||Ut).words[1]*67108864:(this||Ut).length===3&&(this||Ut).words[2]===1?s+=4503599627370496+(this||Ut).words[1]*67108864:(this||Ut).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Ut).negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=(this||Ut).words[(this||Ut).length-1],l=this._countBits(s);return((this||Ut).length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<(this||Ut).length;l++){var A=this._zeroBits((this||Ut).words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return(this||Ut).negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Ut).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Ut).negative^=1),this||Ut},n.prototype.iuor=function(s){for(;(this||Ut).length<s.length;)(this||Ut).words[(this||Ut).length++]=0;for(var l=0;l<s.length;l++)(this||Ut).words[l]=(this||Ut).words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r(((this||Ut).negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return(this||Ut).length>s.length?this.clone().ior(s):s.clone().ior(this||Ut)},n.prototype.uor=function(s){return(this||Ut).length>s.length?this.clone().iuor(s):s.clone().iuor(this||Ut)},n.prototype.iuand=function(s){var l;(this||Ut).length>s.length?l=s:l=this||Ut;for(var A=0;A<l.length;A++)(this||Ut).words[A]=(this||Ut).words[A]&s.words[A];return(this||Ut).length=l.length,this.strip()},n.prototype.iand=function(s){return r(((this||Ut).negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return(this||Ut).length>s.length?this.clone().iand(s):s.clone().iand(this||Ut)},n.prototype.uand=function(s){return(this||Ut).length>s.length?this.clone().iuand(s):s.clone().iuand(this||Ut)},n.prototype.iuxor=function(s){var l,A;(this||Ut).length>s.length?(l=this||Ut,A=s):(l=s,A=this||Ut);for(var m=0;m<A.length;m++)(this||Ut).words[m]=l.words[m]^A.words[m];if((this||Ut)!==l)for(;m<l.length;m++)(this||Ut).words[m]=l.words[m];return(this||Ut).length=l.length,this.strip()},n.prototype.ixor=function(s){return r(((this||Ut).negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return(this||Ut).length>s.length?this.clone().ixor(s):s.clone().ixor(this||Ut)},n.prototype.uxor=function(s){return(this||Ut).length>s.length?this.clone().iuxor(s):s.clone().iuxor(this||Ut)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)(this||Ut).words[m]=~(this||Ut).words[m]&67108863;return A>0&&((this||Ut).words[m]=~(this||Ut).words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?(this||Ut).words[A]=(this||Ut).words[A]|1<<m:(this||Ut).words[A]=(this||Ut).words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if((this||Ut).negative!==0&&s.negative===0)return(this||Ut).negative=0,l=this.isub(s),(this||Ut).negative^=1,this._normSign();if((this||Ut).negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;(this||Ut).length>s.length?(A=this||Ut,m=s):(A=s,m=this||Ut);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,(this||Ut).words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,(this||Ut).words[w]=l&67108863,E=l>>>26;if((this||Ut).length=A.length,E!==0)(this||Ut).words[(this||Ut).length]=E,(this||Ut).length++;else if(A!==(this||Ut))for(;w<A.length;w++)(this||Ut).words[w]=A.words[w];return this||Ut},n.prototype.add=function(s){var l;return s.negative!==0&&(this||Ut).negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&(this||Ut).negative!==0?((this||Ut).negative=0,l=s.sub(this||Ut),(this||Ut).negative=1,l):(this||Ut).length>s.length?this.clone().iadd(s):s.clone().iadd(this||Ut)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if((this||Ut).negative!==0)return(this||Ut).negative=0,this.iadd(s),(this||Ut).negative=1,this._normSign();var A=this.cmp(s);if(A===0)return(this||Ut).negative=0,(this||Ut).length=1,(this||Ut).words[0]=0,this||Ut;var m,E;A>0?(m=this||Ut,E=s):(m=s,E=this||Ut);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,(this||Ut).words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,(this||Ut).words[x]=l&67108863;if(w===0&&x<m.length&&m!==(this||Ut))for(;x<m.length;x++)(this||Ut).words[x]=m.words[x];return(this||Ut).length=Math.max((this||Ut).length,x),m!==(this||Ut)&&((this||Ut).negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=(this||Ut).length+s.length;return(this||Ut).length===10&&s.length===10?A=D(this||Ut,s,l):m<63?A=M(this||Ut,s,l):m<1024?A=P(this||Ut,s,l):A=G(this||Ut,s,l),A};function q(O,s){(this||Ut).x=O,(this||Ut).y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array((this||Ut).length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array((this||Ut).length+s.length),G(this||Ut,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this||Ut)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<(this||Ut).length;A++){var m=((this||Ut).words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,(this||Ut).words[A]=E&67108863}return l!==0&&((this||Ut).words[A]=l,(this||Ut).length++),this||Ut},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this||Ut)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this||Ut,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<(this||Ut).length;E++){var x=(this||Ut).words[E]&m,R=((this||Ut).words[E]|0)-x<<l;(this||Ut).words[E]=R|w,w=x>>>26-l}w&&((this||Ut).words[E]=w,(this||Ut).length++)}if(A!==0){for(E=(this||Ut).length-1;E>=0;E--)(this||Ut).words[E+A]=(this||Ut).words[E];for(E=0;E<A;E++)(this||Ut).words[E]=0;(this||Ut).length+=A}return this.strip()},n.prototype.ishln=function(s){return r((this||Ut).negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,(this||Ut).length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=(this||Ut).words[u];R.length=w}if(w!==0)if((this||Ut).length>w)for((this||Ut).length-=w,u=0;u<(this||Ut).length;u++)(this||Ut).words[u]=(this||Ut).words[u+w];else(this||Ut).words[0]=0,(this||Ut).length=1;var C=0;for(u=(this||Ut).length-1;u>=0&&(C!==0||u>=m);u--){var U=(this||Ut).words[u]|0;(this||Ut).words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),(this||Ut).length===0&&((this||Ut).words[0]=0,(this||Ut).length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r((this||Ut).negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if((this||Ut).length<=A)return!1;var E=(this||Ut).words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r((this||Ut).negative===0,"imaskn works only with positive numbers"),(this||Ut).length<=A)return this||Ut;if(l!==0&&A++,(this||Ut).length=Math.min(A,(this||Ut).length),l!==0){var m=67108863^67108863>>>l<<l;(this||Ut).words[(this||Ut).length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):(this||Ut).negative!==0?(this||Ut).length===1&&((this||Ut).words[0]|0)<s?((this||Ut).words[0]=s-((this||Ut).words[0]|0),(this||Ut).negative=0,this||Ut):((this||Ut).negative=0,this.isubn(s),(this||Ut).negative=1,this||Ut):this._iaddn(s)},n.prototype._iaddn=function(s){(this||Ut).words[0]+=s;for(var l=0;l<(this||Ut).length&&(this||Ut).words[l]>=67108864;l++)(this||Ut).words[l]-=67108864,l===(this||Ut).length-1?(this||Ut).words[l+1]=1:(this||Ut).words[l+1]++;return(this||Ut).length=Math.max((this||Ut).length,l+1),this||Ut},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if((this||Ut).negative!==0)return(this||Ut).negative=0,this.iaddn(s),(this||Ut).negative=1,this||Ut;if((this||Ut).words[0]-=s,(this||Ut).length===1&&(this||Ut).words[0]<0)(this||Ut).words[0]=-(this||Ut).words[0],(this||Ut).negative=1;else for(var l=0;l<(this||Ut).length&&(this||Ut).words[l]<0;l++)(this||Ut).words[l]+=67108864,(this||Ut).words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return(this||Ut).negative=0,this||Ut},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=((this||Ut).words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),(this||Ut).words[E+A]=w&67108863}for(;E<(this||Ut).length-A;E++)w=((this||Ut).words[E+A]|0)+x,x=w>>26,(this||Ut).words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<(this||Ut).length;E++)w=-((this||Ut).words[E]|0)+x,x=w>>26,(this||Ut).words[E]=w&67108863;return(this||Ut).negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=(this||Ut).length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return(this||Ut).negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):(this||Ut).negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):((this||Ut).negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>(this||Ut).length||this.cmp(s)<0?{div:new n(0),mod:this||Ut}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=(this||Ut).length-1;m>=0;m--)A=(l*A+((this||Ut).words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=(this||Ut).length-1;A>=0;A--){var m=((this||Ut).words[A]|0)+l*67108864;(this||Ut).words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this||Ut,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this||Ut,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return((this||Ut).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Ut).words[0]&1)===1},n.prototype.andln=function(s){return(this||Ut).words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if((this||Ut).length<=A)return this._expand(A+1),(this||Ut).words[A]|=m,this||Ut;for(var E=m,w=A;E!==0&&w<(this||Ut).length;w++){var x=(this||Ut).words[w]|0;x+=E,E=x>>>26,x&=67108863,(this||Ut).words[w]=x}return E!==0&&((this||Ut).words[w]=E,(this||Ut).length++),this||Ut},n.prototype.isZero=function(){return(this||Ut).length===1&&(this||Ut).words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if((this||Ut).negative!==0&&!l)return-1;if((this||Ut).negative===0&&l)return 1;this.strip();var A;if((this||Ut).length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=(this||Ut).words[0]|0;A=m===s?0:m<s?-1:1}return(this||Ut).negative!==0?-A|0:A},n.prototype.cmp=function(s){if((this||Ut).negative!==0&&s.negative===0)return-1;if((this||Ut).negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return(this||Ut).negative!==0?-l|0:l},n.prototype.ucmp=function(s){if((this||Ut).length>s.length)return 1;if((this||Ut).length<s.length)return-1;for(var l=0,A=(this||Ut).length-1;A>=0;A--){var m=(this||Ut).words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!(this||Ut).red,"Already a number in reduction context"),r((this||Ut).negative===0,"red works only with positives"),s.convertTo(this||Ut)._forceRed(s)},n.prototype.fromRed=function(){return r((this||Ut).red,"fromRed works only with numbers in reduction context"),(this||Ut).red.convertFrom(this||Ut)},n.prototype._forceRed=function(s){return(this||Ut).red=s,this||Ut},n.prototype.forceRed=function(s){return r(!(this||Ut).red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r((this||Ut).red,"redAdd works only with red numbers"),(this||Ut).red.add(this||Ut,s)},n.prototype.redIAdd=function(s){return r((this||Ut).red,"redIAdd works only with red numbers"),(this||Ut).red.iadd(this||Ut,s)},n.prototype.redSub=function(s){return r((this||Ut).red,"redSub works only with red numbers"),(this||Ut).red.sub(this||Ut,s)},n.prototype.redISub=function(s){return r((this||Ut).red,"redISub works only with red numbers"),(this||Ut).red.isub(this||Ut,s)},n.prototype.redShl=function(s){return r((this||Ut).red,"redShl works only with red numbers"),(this||Ut).red.shl(this||Ut,s)},n.prototype.redMul=function(s){return r((this||Ut).red,"redMul works only with red numbers"),(this||Ut).red._verify2(this||Ut,s),(this||Ut).red.mul(this||Ut,s)},n.prototype.redIMul=function(s){return r((this||Ut).red,"redMul works only with red numbers"),(this||Ut).red._verify2(this||Ut,s),(this||Ut).red.imul(this||Ut,s)},n.prototype.redSqr=function(){return r((this||Ut).red,"redSqr works only with red numbers"),(this||Ut).red._verify1(this||Ut),(this||Ut).red.sqr(this||Ut)},n.prototype.redISqr=function(){return r((this||Ut).red,"redISqr works only with red numbers"),(this||Ut).red._verify1(this||Ut),(this||Ut).red.isqr(this||Ut)},n.prototype.redSqrt=function(){return r((this||Ut).red,"redSqrt works only with red numbers"),(this||Ut).red._verify1(this||Ut),(this||Ut).red.sqrt(this||Ut)},n.prototype.redInvm=function(){return r((this||Ut).red,"redInvm works only with red numbers"),(this||Ut).red._verify1(this||Ut),(this||Ut).red.invm(this||Ut)},n.prototype.redNeg=function(){return r((this||Ut).red,"redNeg works only with red numbers"),(this||Ut).red._verify1(this||Ut),(this||Ut).red.neg(this||Ut)},n.prototype.redPow=function(s){return r((this||Ut).red&&!s.red,"redPow(normalNum)"),(this||Ut).red._verify1(this||Ut),(this||Ut).red.pow(this||Ut,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){(this||Ut).name=O,(this||Ut).p=new n(s,16),(this||Ut).n=(this||Ut).p.bitLength(),(this||Ut).k=new n(1).iushln((this||Ut).n).isub((this||Ut).p),(this||Ut).tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil((this||Ut).n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,(this||Ut).tmp),l=this.imulK(l),l=l.iadd((this||Ut).tmp),A=l.bitLength();while(A>(this||Ut).n);var m=A<(this||Ut).n?-1:l.ucmp((this||Ut).p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub((this||Ut).p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn((this||Ut).n,0,l)},ne.prototype.imulK=function(s){return s.imul((this||Ut).k)};function ce(){ne.call(this||Ut,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this||Ut,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this||Ut,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this||Ut,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);(this||Ut).m=s.p,(this||Ut).prime=s}else r(O.gtn(1),"modulus must be greater than 1"),(this||Ut).m=O,(this||Ut).prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return(this||Ut).prime?(this||Ut).prime.ireduce(s)._forceRed(this||Ut):s.umod((this||Ut).m)._forceRed(this||Ut)},W.prototype.neg=function(s){return s.isZero()?s.clone():(this||Ut).m.sub(s)._forceRed(this||Ut)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp((this||Ut).m)>=0&&A.isub((this||Ut).m),A._forceRed(this||Ut)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp((this||Ut).m)>=0&&A.isub((this||Ut).m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd((this||Ut).m),A._forceRed(this||Ut)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd((this||Ut).m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=(this||Ut).m.andln(3);if(r(l%2===1),l===3){var A=(this||Ut).m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=(this||Ut).m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this||Ut),x=w.redNeg(),R=(this||Ut).m.subn(1).iushrn(1),u=(this||Ut).m.bitLength();for(u=new n(2*u*u).toRed(this||Ut);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp((this||Ut).m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this||Ut);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this||Ut),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod((this||Ut).m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this||Ut,O),(this||Ut).shift=(this||Ut).m.bitLength(),(this||Ut).shift%26!==0&&((this||Ut).shift+=26-(this||Ut).shift%26),(this||Ut).r=new n(1).iushln((this||Ut).shift),(this||Ut).r2=this.imod((this||Ut).r.sqr()),(this||Ut).rinv=(this||Ut).r._invmp((this||Ut).m),(this||Ut).minv=(this||Ut).rinv.mul((this||Ut).r).isubn(1).div((this||Ut).m),(this||Ut).minv=(this||Ut).minv.umod((this||Ut).r),(this||Ut).minv=(this||Ut).r.sub((this||Ut).minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln((this||Ut).shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul((this||Ut).rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn((this||Ut).shift).mul((this||Ut).minv).imaskn((this||Ut).shift).mul((this||Ut).m),E=A.isub(m).iushrn((this||Ut).shift),w=E;return E.cmp((this||Ut).m)>=0?w=E.isub((this||Ut).m):E.cmpn(0)<0&&(w=E.iadd((this||Ut).m)),w._forceRed(this||Ut)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this||Ut);var A=s.mul(l),m=A.maskn((this||Ut).shift).mul((this||Ut).minv).imaskn((this||Ut).shift).mul((this||Ut).m),E=A.isub(m).iushrn((this||Ut).shift),w=E;return E.cmp((this||Ut).m)>=0?w=E.isub((this||Ut).m):E.cmpn(0)<0&&(w=E.iadd((this||Ut).m)),w._forceRed(this||Ut)},se.prototype.invm=function(s){var l=this.imod(s._invmp((this||Ut).m).mul((this||Ut).r2));return l._forceRed(this||Ut)}})(Dce,zVe)),Dce.exports}function KVe(){if(XQe)return kce;XQe=!0;var e=c0e(),t=Vs().Buffer;function r(i,n){return t.from(i.toRed(e.mont(n.modulus)).redPow(new e(n.publicExponent)).fromRed().toArray())}return kce=r,kce}function _Ot(){if(ZQe)return Pce;ZQe=!0;var e=hV(),t=TO(),r=TD(),i=VVe(),n=JVe(),o=c0e(),d=KVe(),g=e0e(),y=Vs().Buffer;Pce=function(M,D,P){var G;M.padding?G=M.padding:P?G=1:G=4;var q=e(M),Y;if(G===4)Y=_(q,D);else if(G===1)Y=I(q,D,P);else if(G===3){if(Y=new o(D),Y.cmp(q.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return P?g(Y,q):d(Y,q)};function _(T,M){var D=T.modulus.byteLength(),P=M.length,G=r("sha1").update(y.alloc(0)).digest(),q=G.length,Y=2*q;if(P>D-Y-2)throw new Error("message too long");var ne=y.alloc(D-P-Y-2),ce=D-q-1,le=t(q),pe=n(y.concat([G,ne,y.alloc(1,1),M],ce),i(le,ce)),ae=n(le,i(pe,q));return new o(y.concat([y.alloc(1),ae,pe],D))}function I(T,M,D){var P=M.length,G=T.modulus.byteLength();if(P>G-11)throw new Error("message too long");var q;return D?q=y.alloc(G-P-3,255):q=N(G-P-3),new o(y.concat([y.from([0,D?1:2]),q,y.alloc(1),M],G))}function N(T){for(var M=y.allocUnsafe(T),D=0,P=t(T*2),G=0,q;D<T;)G===P.length&&(P=t(T*2),G=0),q=P[G++],q&&(M[D++]=q);return M}return Pce}function mOt(){if(jQe)return Lce;jQe=!0;var e=hV(),t=VVe(),r=JVe(),i=c0e(),n=e0e(),o=TD(),d=KVe(),g=Vs().Buffer;Lce=function(T,M,D){var P;T.padding?P=T.padding:D?P=1:P=4;var G=e(T),q=G.modulus.byteLength();if(M.length>q||new i(M).cmp(G.modulus)>=0)throw new Error("decryption error");var Y;D?Y=d(new i(M),G):Y=n(M,G);var ne=g.alloc(q-Y.length);if(Y=g.concat([ne,Y],q),P===4)return y(G,Y);if(P===1)return _(G,Y,D);if(P===3)return Y;throw new Error("unknown padding")};function y(N,T){var M=N.modulus.byteLength(),D=o("sha1").update(g.alloc(0)).digest(),P=D.length;if(T[0]!==0)throw new Error("decryption error");var G=T.slice(1,P+1),q=T.slice(P+1),Y=r(G,t(q,P)),ne=r(q,t(Y,M-P-1));if(I(D,ne.slice(0,P)))throw new Error("decryption error");for(var ce=P;ne[ce]===0;)ce++;if(ne[ce++]!==1)throw new Error("decryption error");return ne.slice(ce)}function _(N,T,M){for(var D=T.slice(0,2),P=2,G=0;T[P++]!==0;)if(P>=T.length){G++;break}var q=T.slice(2,P-1);if((D.toString("hex")!=="0002"&&!M||D.toString("hex")!=="0001"&&M)&&G++,q.length<8&&G++,G)throw new Error("decryption error");return T.slice(P)}function I(N,T){N=g.from(N),T=g.from(T);var M=0,D=N.length;N.length!==T.length&&(M++,D=Math.min(N.length,T.length));for(var P=-1;++P<D;)M+=N[P]^T[P];return M}return Lce}function yOt(){return eHe||(eHe=!0,s6.publicEncrypt=_Ot(),s6.privateDecrypt=mOt(),s6.privateEncrypt=function(t,r){return s6.publicEncrypt(t,r,!0)},s6.publicDecrypt=function(t,r){return s6.privateDecrypt(t,r,!0)}),s6}function bOt(){if(tHe)return mO;tHe=!0;var e=za;function t(){throw new Error(`secure random number generation not supported by this browser
|
|
use chrome, FireFox or Internet Explorer 11`)}var r=Vs(),i=TO(),n=r.Buffer,o=r.kMaxLength,d=lq.crypto||lq.msCrypto,g=Math.pow(2,32)-1;function y(M,D){if(typeof M!="number"||M!==M)throw new TypeError("offset must be a number");if(M>g||M<0)throw new TypeError("offset must be a uint32");if(M>o||M>D)throw new RangeError("offset out of range")}function _(M,D,P){if(typeof M!="number"||M!==M)throw new TypeError("size must be a number");if(M>g||M<0)throw new TypeError("size must be a uint32");if(M+D>P||M>o)throw new RangeError("buffer too small")}d&&d.getRandomValues||!e.browser?(mO.randomFill=I,mO.randomFillSync=T):(mO.randomFill=t,mO.randomFillSync=t);function I(M,D,P,G){if(!n.isBuffer(M)&&!(M instanceof lq.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof D=="function")G=D,D=0,P=M.length;else if(typeof P=="function")G=P,P=M.length-D;else if(typeof G!="function")throw new TypeError('"cb" argument must be a function');return y(D,M.length),_(P,D,M.length),N(M,D,P,G)}function N(M,D,P,G){if(e.browser){var q=M.buffer,Y=new Uint8Array(q,D,P);if(d.getRandomValues(Y),G){e.nextTick(function(){G(null,M)});return}return M}if(G){i(P,function(ce,le){if(ce)return G(ce);le.copy(M,D),G(null,M)});return}var ne=i(P);return ne.copy(M,D),M}function T(M,D,P){if(typeof D>"u"&&(D=0),!n.isBuffer(M)&&!(M instanceof lq.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return y(D,M.length),P===void 0&&(P=M.length-D),_(P,D,M.length),N(M,D,P)}return mO}function EOt(){if(rHe)return Fa;rHe=!0,Fa.randomBytes=Fa.rng=Fa.pseudoRandomBytes=Fa.prng=TO(),Fa.createHash=Fa.Hash=TD(),Fa.createHmac=Fa.Hmac=lHe();var e=p6t(),t=Object.keys(e),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Fa.getHashes=function(){return r};var i=mHe();Fa.pbkdf2=i.pbkdf2,Fa.pbkdf2Sync=i.pbkdf2Sync;var n=T6t();Fa.Cipher=n.Cipher,Fa.createCipher=n.createCipher,Fa.Cipheriv=n.Cipheriv,Fa.createCipheriv=n.createCipheriv,Fa.Decipher=n.Decipher,Fa.createDecipher=n.createDecipher,Fa.Decipheriv=n.Decipheriv,Fa.createDecipheriv=n.createDecipheriv,Fa.getCiphers=n.getCiphers,Fa.listCiphers=n.listCiphers;var o=H5t();Fa.DiffieHellmanGroup=o.DiffieHellmanGroup,Fa.createDiffieHellmanGroup=o.createDiffieHellmanGroup,Fa.getDiffieHellman=o.getDiffieHellman,Fa.createDiffieHellman=o.createDiffieHellman,Fa.DiffieHellman=o.DiffieHellman;var d=AOt();Fa.createSign=d.createSign,Fa.Sign=d.Sign,Fa.createVerify=d.createVerify,Fa.Verify=d.Verify,Fa.createECDH=gOt();var g=yOt();Fa.publicEncrypt=g.publicEncrypt,Fa.privateEncrypt=g.privateEncrypt,Fa.publicDecrypt=g.publicDecrypt,Fa.privateDecrypt=g.privateDecrypt;var y=bOt();return Fa.randomFill=y.randomFill,Fa.randomFillSync=y.randomFillSync,Fa.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
`))},Fa.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Fa}var qM,zMe,bG,KMe,$Me,VM,YMe,Jne,WMe,zne,XMe,Kne,ZMe,$ne,jMe,p0,Yne,eDe,Kc,Wne,tDe,$c,Xne,rDe,ua,Zne,nDe,Xf,jne,iDe,ti,eie,oDe,bc,a6t,aDe,tie,EG,sDe,rie,cDe,nie,uDe,iie,dDe,oie,fDe,aie,lDe,sie,hDe,cie,uie,ADe,u6t,die,pDe,fie,gDe,lie,_De,hie,mDe,Aie,yDe,l6t,pie,bDe,gie,EDe,_ie,vDe,mie,RDe,yie,_m,bie,SDe,rd,Eie,IDe,vie,CDe,Rie,wDe,Sie,ODe,hHe,Iie,NDe,Cie,xDe,wie,TDe,vG,Oie,BDe,Nie,MDe,im,xie,DDe,M1,RG,kDe,D1,PDe,Tie,LDe,Bie,UDe,Mie,FDe,Die,QDe,kie,H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ct,Gse,XFe,G5t,TVe,ZFe,qse,kt,Vse,jFe,Jse,eQe,zse,tQe,Kse,rQe,$se,nQe,Yse,iQe,Wse,oQe,au,aQe,Xse,sQe,cQe,uQe,Zse,dQe,jse,fQe,ece,lQe,tce,hQe,rce,AQe,nce,pQe,ice,gQe,oce,_Qe,ace,mQe,sce,yQe,cce,bQe,uce,EQe,dce,vQe,kVe,RQe,fce,Pt,lce,SQe,hce,IQe,fq,CQe,Ace,wQe,a6,OQe,pce,NQe,gce,xQe,_ce,TQe,mce,BQe,yce,MQe,bce,DQe,Ece,kQe,vce,PQe,Rce,LQe,Sce,UQe,Ice,FQe,Qg,QQe,dOt,Cce,HQe,wce,GQe,GVe,oD,qQe,Oce,VQe,Nce,JQe,od,qVe,zQe,xce,Lt,Tce,KQe,Bf,Bce,$Qe,Mce,YQe,zVe,WQe,Dce,Ut,kce,XQe,Pce,ZQe,Lce,jQe,s6,eHe,mO,tHe,lq,Fa,rHe,yi,vOt,ROt,SOt,IOt,COt,wOt,OOt,NOt,xOt,TOt,u0e,BOt,MOt,DOt,kOt,POt,LOt,UOt,FOt,vm,QOt,d0e,HOt,GOt,qOt,VOt,JOt,zOt,KOt,$Ot,YOt,WOt,XOt,ZOt,jOt,f0e,eNt,tNt,rNt,nNt,IA=tn(()=>{"use strict";J();K();z();lO();XS();JMe();YS();UM();sO();vv();Ev();qM={},zMe=!1;bG={},KMe=!1,$Me=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;VM={},YMe=!1;Jne={},WMe=!1;zne={},XMe=!1;Kne={},ZMe=!1;$ne={},jMe=!1,p0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Yne={},eDe=!1,Kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Wne={},tDe=!1,$c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Xne={},rDe=!1,ua=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Zne={},nDe=!1,Xf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;jne={},iDe=!1,ti=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;eie={},oDe=!1,bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;a6t={},aDe=!1,tie={exports:a6t};EG={},sDe=!1;rie={},cDe=!1;nie={},uDe=!1;iie={},dDe=!1;oie={},fDe=!1;aie={},lDe=!1;sie={},hDe=!1,cie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;uie={},ADe=!1,u6t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;die={},pDe=!1;fie={},gDe=!1;lie={},_De=!1;hie={},mDe=!1;Aie={},yDe=!1,l6t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;pie={},bDe=!1;gie={},EDe=!1;_ie={},vDe=!1;mie={},RDe=!1,yie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;_m=h6t();_m.Readable;_m.Writable;_m.Duplex;_m.Transform;_m.PassThrough;_m.finished;_m.pipeline;_m.Stream;mne(_m.finished),mne(_m.pipeline);bie={},SDe=!1,rd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Eie={},IDe=!1;vie={},CDe=!1;Rie={},wDe=!1;Sie={},ODe=!1;hHe={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},Iie={},NDe=!1;Cie={},xDe=!1;wie={},TDe=!1,vG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Oie={},BDe=!1;Nie={},MDe=!1,im=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;xie={},DDe=!1,M1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;RG={},kDe=!1;D1={},PDe=!1;Tie={},LDe=!1;Bie={},UDe=!1;Mie={},FDe=!1;Die={},QDe=!1;kie={},HDe=!1;V8={},GDe=!1;Pie={},qDe=!1,SG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;IG={},VDe=!1;Lie={},JDe=!1;CG={},zDe=!1;Uie={},KDe=!1;Fie={},$De=!1;Qie={},YDe=!1;Hie={},WDe=!1;Gie={},XDe=!1;qie={},ZDe=!1;vHe={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},Vie={},eke=!1;Jie={},tke=!1,wg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;zie={},rke=!1,bh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Kie={},nke=!1,da=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;$ie={},ike=!1,om=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Yie={},oke=!1;wG={},ake=!1,xu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;OG={},ske=!1,Ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Og={},cke=!1;Uy={},uke=!1;Ng={},dke=!1;IHe={},fke=!1,Wie={exports:IHe},wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;wHe={},lke=!1,Xie={exports:wHe},Ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;vp={},hke=!1;JM={},Ake=!1;NG={},pke=!1,gke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Zie={},_ke=!1;jie={},mke=!1;eoe={},yke=!1;toe={},bke=!1,g0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;roe={},Eke=!1,Yc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;noe={},vke=!1,Wc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ioe={},Rke=!1,fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ooe={},Ske=!1,Zf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;aoe={},Ike=!1,ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;soe={},Cke=!1,vc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;L6t={},wke=!1,coe={exports:L6t};Yq=xc.EventEmitter,ym={},BHe={};xg("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),xg("ERR_INVALID_ARG_TYPE",(function(e,t,r){let i;var n;let o;return typeof t=="string"&&(n="not ",t.substr(0,n.length)===n)?(i="must not be",t=t.replace(/^not /,"")):i="must be",(function(d,g,y){return(y===void 0||y>d.length)&&(y=d.length),d.substring(y-g.length,y)===g})(e," argument")?o=`The ${e} ${i} ${Oke(t,"type")}`:o=`The "${e}" ${(function(d,g,y){return typeof y!="number"&&(y=0),!(y+g.length>d.length)&&d.indexOf(g,y)!==-1})(e,".")?"property":"argument"} ${i} ${Oke(t,"type")}`,o+=`. Received type ${typeof r}`,o}),TypeError),xg("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),xg("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),xg("ERR_STREAM_PREMATURE_CLOSE","Premature close"),xg("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),xg("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),xg("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),xg("ERR_STREAM_WRITE_AFTER_END","write after end"),xg("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),xg("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),xg("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ym.codes=BHe;MHe=function(){throw new Error("Readable.from is not available in the browser")},Uce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;DHe=function(e,t){if(uoe("noDeprecation"))return e;var r=!1;return function(){if(!r){if(uoe("throwDeprecation"))throw new Error(t);uoe("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this||Uce,arguments)}};xG=Vo.Buffer,Fce=yn.inspect,Q6t=Fce&&Fce.custom||"inspect",H6t=(function(){function e(){(function(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(i){var n={data:i,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,o=""+n.data;n=n.next;)o+=i+n.data;return o}},{key:"concat",value:function(i){if(this.length===0)return xG.alloc(0);for(var n,o,d,g=xG.allocUnsafe(i>>>0),y=this.head,_=0;y;)n=y.data,o=g,d=_,xG.prototype.copy.call(n,o,d),_+=y.data.length,y=y.next;return g}},{key:"consume",value:function(i,n){var o;return i<this.head.data.length?(o=this.head.data.slice(0,i),this.head.data=this.head.data.slice(i)):o=i===this.head.data.length?this.shift():n?this._getString(i):this._getBuffer(i),o}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(i){var n=this.head,o=1,d=n.data;for(i-=d.length;n=n.next;){var g=n.data,y=i>g.length?g.length:i;if(y===g.length?d+=g:d+=g.slice(0,i),(i-=y)==0){y===g.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=g.slice(y));break}++o}return this.length-=o,d}},{key:"_getBuffer",value:function(i){var n=xG.allocUnsafe(i),o=this.head,d=1;for(o.data.copy(n),i-=o.data.length;o=o.next;){var g=o.data,y=i>g.length?g.length:i;if(g.copy(n,n.length-i,0,y),(i-=y)==0){y===g.length?(++d,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=g.slice(y));break}++d}return this.length-=d,n}},{key:Q6t,value:function(i,n){return Fce(this,(function(o){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?Nke(Object(g),!0).forEach((function(y){U6t(o,y,g[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(g)):Nke(Object(g)).forEach((function(y){Object.defineProperty(o,y,Object.getOwnPropertyDescriptor(g,y))}))}return o})({},n,{depth:0,customInspect:!1}))}}])&&F6t(t.prototype,r),e})(),J8=Mo;kHe={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,J8.nextTick(Qce,this,e)):J8.nextTick(Qce,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(o){!t&&o?r._writableState?r._writableState.errorEmitted?J8.nextTick(hq,r):(r._writableState.errorEmitted=!0,J8.nextTick(xke,r,o)):J8.nextTick(xke,r,o):t?(J8.nextTick(hq,r),t(o)):J8.nextTick(hq,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}},G6t=ym.codes.ERR_INVALID_OPT_VALUE,PHe={getHighWaterMark:function(e,t,r,i){var n=(function(o,d,g){return o.highWaterMark!=null?o.highWaterMark:d?o[g]:null})(t,i,r);if(n!=null){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new G6t(i?r:"highWaterMark",n);return Math.floor(n)}return e.objectMode?16:16384}},Tke=ym.codes.ERR_STREAM_PREMATURE_CLOSE;V6t=function e(t,r,i){if(typeof r=="function")return e(t,null,r);r||(r={}),i=(function(D){var P=!1;return function(){if(!P){P=!0;for(var G=arguments.length,q=new Array(G),Y=0;Y<G;Y++)q[Y]=arguments[Y];D.apply(this,q)}}})(i||q6t);var n=r.readable||r.readable!==!1&&t.readable,o=r.writable||r.writable!==!1&&t.writable,d=function(){t.writable||y()},g=t._writableState&&t._writableState.finished,y=function(){o=!1,g=!0,n||i.call(t)},_=t._readableState&&t._readableState.endEmitted,I=function(){n=!1,_=!0,o||i.call(t)},N=function(D){i.call(t,D)},T=function(){var D;return n&&!_?(t._readableState&&t._readableState.ended||(D=new Tke),i.call(t,D)):o&&!g?(t._writableState&&t._writableState.ended||(D=new Tke),i.call(t,D)):void 0},M=function(){t.req.on("finish",y)};return(function(D){return D.setHeader&&typeof D.abort=="function"})(t)?(t.on("complete",y),t.on("abort",T),t.req?M():t.on("request",M)):o&&!t._writableState&&(t.on("end",d),t.on("close",d)),t.on("end",I),t.on("finish",y),r.error!==!1&&t.on("error",N),t.on("close",T),function(){t.removeListener("complete",y),t.removeListener("abort",T),t.removeListener("request",M),t.req&&t.req.removeListener("finish",y),t.removeListener("end",d),t.removeListener("close",d),t.removeListener("finish",y),t.removeListener("end",I),t.removeListener("error",N),t.removeListener("close",T)}},LHe=Mo;J6t=V6t,A6=Symbol("lastResolve"),i4=Symbol("lastReject"),mD=Symbol("error"),Mq=Symbol("ended"),l4=Symbol("lastPromise"),Hce=Symbol("handlePromise"),h4=Symbol("stream");$6t=Object.getPrototypeOf((function(){})),Y6t=Object.setPrototypeOf((h6(doe={get stream(){return this[h4]},next:function(){var e=this,t=this[mD];if(t!==null)return Promise.reject(t);if(this[Mq])return Promise.resolve(E6(void 0,!0));if(this[h4].destroyed)return new Promise((function(o,d){LHe.nextTick((function(){e[mD]?d(e[mD]):o(E6(void 0,!0))}))}));var r,i=this[l4];if(i)r=new Promise((function(o,d){return function(g,y){o.then((function(){if(d[Mq])return g(E6(void 0,!0)),void 0;d[Hce](g,y)}),y)}})(i,this));else{var n=this[h4].read();if(n!==null)return Promise.resolve(E6(n,!1));r=new Promise(this[Hce])}return this[l4]=r,r}},Symbol.asyncIterator,(function(){return this})),h6(doe,"return",(function(){var e=this;return new Promise((function(t,r){e[h4].destroy(null,(function(i){if(i)return r(i),void 0;t(E6(void 0,!0))}))}))})),doe),$6t),W6t=function(e){var t,r=Object.create(Y6t,(h6(t={},h4,{value:e,writable:!0}),h6(t,A6,{value:null,writable:!0}),h6(t,i4,{value:null,writable:!0}),h6(t,mD,{value:null,writable:!0}),h6(t,Mq,{value:e._readableState.endEmitted,writable:!0}),h6(t,Hce,{value:function(i,n){var o=r[h4].read();o?(r[l4]=null,r[A6]=null,r[i4]=null,i(E6(o,!1))):(r[A6]=i,r[i4]=n)},writable:!0}),t));return r[l4]=null,J6t(e,(function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=r[i4];return n!==null&&(r[l4]=null,r[A6]=null,r[i4]=null,n(i)),r[mD]=i,void 0}var o=r[A6];o!==null&&(r[l4]=null,r[A6]=null,r[i4]=null,o(E6(void 0,!0))),r[Mq]=!0})),e.on("readable",K6t.bind(null,r)),r},foe={},Bke=!1,X6t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;loe={},Mke=!1,Z6t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;hoe={},Dke=!1;eIt=UHe(),kke=ym.codes.ERR_STREAM_PREMATURE_CLOSE;Sue=function e(t,r,i){if(typeof r=="function")return e(t,null,r);r||(r={}),i=(function(D){var P=!1;return function(){if(!P){P=!0;for(var G=arguments.length,q=new Array(G),Y=0;Y<G;Y++)q[Y]=arguments[Y];D.apply(this,q)}}})(i||tIt);var n=r.readable||r.readable!==!1&&t.readable,o=r.writable||r.writable!==!1&&t.writable,d=function(){t.writable||y()},g=t._writableState&&t._writableState.finished,y=function(){o=!1,g=!0,n||i.call(t)},_=t._readableState&&t._readableState.endEmitted,I=function(){n=!1,_=!0,o||i.call(t)},N=function(D){i.call(t,D)},T=function(){var D;return n&&!_?(t._readableState&&t._readableState.ended||(D=new kke),i.call(t,D)):o&&!g?(t._writableState&&t._writableState.ended||(D=new kke),i.call(t,D)):void 0},M=function(){t.req.on("finish",y)};return(function(D){return D.setHeader&&typeof D.abort=="function"})(t)?(t.on("complete",y),t.on("abort",T),t.req?M():t.on("request",M)):o&&!t._writableState&&(t.on("end",d),t.on("close",d)),t.on("end",I),t.on("finish",y),r.error!==!1&&t.on("error",N),t.on("close",T),function(){t.removeListener("complete",y),t.removeListener("abort",T),t.removeListener("request",M),t.req&&t.req.removeListener("finish",y),t.removeListener("end",d),t.removeListener("close",d),t.removeListener("finish",y),t.removeListener("end",I),t.removeListener("error",N),t.removeListener("close",T)}};TG=Vo.Buffer,Gce=yn.inspect,iIt=Gce&&Gce.custom||"inspect",oIt=(function(){function e(){(function(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(i){var n={data:i,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,o=""+n.data;n=n.next;)o+=i+n.data;return o}},{key:"concat",value:function(i){if(this.length===0)return TG.alloc(0);for(var n,o,d,g=TG.allocUnsafe(i>>>0),y=this.head,_=0;y;)n=y.data,o=g,d=_,TG.prototype.copy.call(n,o,d),_+=y.data.length,y=y.next;return g}},{key:"consume",value:function(i,n){var o;return i<this.head.data.length?(o=this.head.data.slice(0,i),this.head.data=this.head.data.slice(i)):o=i===this.head.data.length?this.shift():n?this._getString(i):this._getBuffer(i),o}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(i){var n=this.head,o=1,d=n.data;for(i-=d.length;n=n.next;){var g=n.data,y=i>g.length?g.length:i;if(y===g.length?d+=g:d+=g.slice(0,i),(i-=y)==0){y===g.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=g.slice(y));break}++o}return this.length-=o,d}},{key:"_getBuffer",value:function(i){var n=TG.allocUnsafe(i),o=this.head,d=1;for(o.data.copy(n),i-=o.data.length;o=o.next;){var g=o.data,y=i>g.length?g.length:i;if(g.copy(n,n.length-i,0,y),(i-=y)==0){y===g.length?(++d,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=g.slice(y));break}++d}return this.length-=d,n}},{key:iIt,value:function(i,n){return Gce(this,(function(o){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?Pke(Object(g),!0).forEach((function(y){rIt(o,y,g[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(g)):Pke(Object(g)).forEach((function(y){Object.defineProperty(o,y,Object.getOwnPropertyDescriptor(g,y))}))}return o})({},n,{depth:0,customInspect:!1}))}}])&&nIt(t.prototype,r),e})(),z8=Mo;FHe={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,z8.nextTick(qce,this,e)):z8.nextTick(qce,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(o){!t&&o?r._writableState?r._writableState.errorEmitted?z8.nextTick(Aq,r):(r._writableState.errorEmitted=!0,z8.nextTick(Lke,r,o)):z8.nextTick(Lke,r,o):t?(z8.nextTick(Aq,r),t(o)):z8.nextTick(Aq,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}},aIt=ym.codes.ERR_INVALID_OPT_VALUE,QHe={getHighWaterMark:function(e,t,r,i){var n=(function(o,d,g){return o.highWaterMark!=null?o.highWaterMark:d?o[g]:null})(t,i,r);if(n!=null){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new aIt(i?r:"highWaterMark",n);return Math.floor(n)}return e.objectMode?16:16384}},HHe=Mo;sIt=Sue,g6=Symbol("lastResolve"),o4=Symbol("lastReject"),yD=Symbol("error"),Dq=Symbol("ended"),A4=Symbol("lastPromise"),Vce=Symbol("handlePromise"),p4=Symbol("stream");dIt=Object.getPrototypeOf((function(){})),fIt=Object.setPrototypeOf((p6(Aoe={get stream(){return this[p4]},next:function(){var e=this,t=this[yD];if(t!==null)return Promise.reject(t);if(this[Dq])return Promise.resolve(v6(void 0,!0));if(this[p4].destroyed)return new Promise((function(o,d){HHe.nextTick((function(){e[yD]?d(e[yD]):o(v6(void 0,!0))}))}));var r,i=this[A4];if(i)r=new Promise((function(o,d){return function(g,y){o.then((function(){if(d[Dq])return g(v6(void 0,!0)),void 0;d[Vce](g,y)}),y)}})(i,this));else{var n=this[p4].read();if(n!==null)return Promise.resolve(v6(n,!1));r=new Promise(this[Vce])}return this[A4]=r,r}},Symbol.asyncIterator,(function(){return this})),p6(Aoe,"return",(function(){var e=this;return new Promise((function(t,r){e[p4].destroy(null,(function(i){if(i)return r(i),void 0;t(v6(void 0,!0))}))}))})),Aoe),dIt),lIt=function(e){var t,r=Object.create(fIt,(p6(t={},p4,{value:e,writable:!0}),p6(t,g6,{value:null,writable:!0}),p6(t,o4,{value:null,writable:!0}),p6(t,yD,{value:null,writable:!0}),p6(t,Dq,{value:e._readableState.endEmitted,writable:!0}),p6(t,Vce,{value:function(i,n){var o=r[p4].read();o?(r[A4]=null,r[g6]=null,r[o4]=null,i(v6(o,!1))):(r[g6]=i,r[o4]=n)},writable:!0}),t));return r[A4]=null,sIt(e,(function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=r[o4];return n!==null&&(r[A4]=null,r[g6]=null,r[o4]=null,n(i)),r[yD]=i,void 0}var o=r[g6];o!==null&&(r[A4]=null,r[g6]=null,r[o4]=null,o(v6(void 0,!0))),r[Dq]=!0})),e.on("readable",uIt.bind(null,r)),r},poe={},Uke=!1,hIt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;goe={},Fke=!1,pIt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;_oe={},Qke=!1;gIt=GHe(),qHe=SD();VHe=Tv;Wq=ym.codes,_It=Wq.ERR_METHOD_NOT_IMPLEMENTED,mIt=Wq.ERR_MULTIPLE_CALLBACK,yIt=Wq.ERR_TRANSFORM_ALREADY_TRANSFORMING,bIt=Wq.ERR_TRANSFORM_WITH_LENGTH_0,pq=qHe;ca(Tv,pq),Tv.prototype.push=function(e,t){return this._transformState.needTransform=!1,pq.prototype.push.call(this,e,t)},Tv.prototype._transform=function(e,t,r){r(new _It("_transform()"))},Tv.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},Tv.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Tv.prototype._destroy=function(e,t){pq.prototype._destroy.call(this,e,(function(r){t(r)}))};JHe=VHe;zHe=ID;KHe=JHe;ca(ID,KHe),ID.prototype._transform=function(e,t,r){r(null,e)};RIt=zHe,$He=ym.codes,SIt=$He.ERR_MISSING_ARGS,IIt=$He.ERR_STREAM_DESTROYED;NIt=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n=OIt(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new SIt("streams");var o=t.map((function(d,g){var y=g<t.length-1;return CIt(d,y,g>0,(function(_){i||(i=_),_&&o.forEach(qke),y||(o.forEach(qke),n(i))}))}));return t.reduce(wIt)},Jce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;YHe=Hg;zce=xc.EventEmitter;ca(Hg,zce),Hg.Readable=eIt,Hg.Writable=gIt,Hg.Duplex=qHe,Hg.Transform=JHe,Hg.PassThrough=RIt,Hg.finished=Sue,Hg.pipeline=NIt,Hg.Stream=Hg,Hg.prototype.pipe=function(e,t){var r=this||Jce;function i(I){e.writable&&e.write(I)===!1&&r.pause&&r.pause()}function n(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",n),e._isStdio||t&&t.end===!1||(r.on("end",d),r.on("close",g));var o=!1;function d(){o||(o=!0,e.end())}function g(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function y(I){if(_(),zce.listenerCount(this||Jce,"error")===0)throw I}function _(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",d),r.removeListener("close",g),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",_),r.removeListener("close",_),e.removeListener("close",_)}return r.on("error",y),e.on("error",y),r.on("end",_),r.on("close",_),e.on("close",_),e.emit("pipe",r),e};Jg=YHe;Jg.Readable;Jg.Writable;Jg.Duplex;Jg.Transform;Jg.PassThrough;Jg.finished;Jg.pipeline;Jg.Stream;yoe={},Vke=!1,nd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;boe={},Jke=!1;Eoe={},zke=!1;voe={},Kke=!1;Roe={},$ke=!1;ZHe={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},Soe={},Yke=!1;Ioe={},Wke=!1;Coe={},Xke=!1,BG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;woe={},Zke=!1;Ooe={},jke=!1,am=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Noe={},ePe=!1,k1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;MG={},tPe=!1;P1={},rPe=!1;xoe={},nPe=!1;Toe={},iPe=!1;Boe={},oPe=!1;Moe={},aPe=!1;Doe={},sPe=!1;K8={},cPe=!1;koe={},uPe=!1,DG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kG={},dPe=!1;Poe={},fPe=!1;PG={},lPe=!1;Loe={},hPe=!1;Uoe={},APe=!1;Foe={},pPe=!1;Qoe={},gPe=!1;Hoe={},_Pe=!1;Goe={},mPe=!1;sGe={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},qoe={},bPe=!1;Voe={},EPe=!1,Tg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Joe={},vPe=!1,Eh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;zoe={},RPe=!1,la=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Koe={},SPe=!1,sm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;$oe={},IPe=!1;LG={},CPe=!1,Tu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;UG={},wPe=!1,Rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Bg={},OPe=!1;Fy={},NPe=!1;Mg={},xPe=!1;dGe={},TPe=!1,Yoe={exports:dGe},Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;lGe={},BPe=!1,Woe={exports:lGe},xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Pq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Cp={},YIt=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},hO=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},$8=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},WIt=(function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(t,r,i){t[r]=i}}})(),MPe=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];gq.prototype={};qy=Cp.Script=function(e){if(!((this||Pq)instanceof qy))return new qy(e);(this||Pq).code=e};qy.prototype.runInContext=function(e){if(!(e instanceof gq))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),$8(hO(e),(function(g){r[g]=e[g]})),$8(MPe,(function(g){e[g]&&(r[g]=e[g])}));var o=hO(r),d=i.call(r,(this||Pq).code);return $8(hO(r),(function(g){(g in e||YIt(o,g)===-1)&&(e[g]=r[g])})),$8(MPe,(function(g){g in e||WIt(e,g,r[g])})),document.body.removeChild(t),d},qy.prototype.runInThisContext=function(){return eval((this||Pq).code)},qy.prototype.runInNewContext=function(e){var t=qy.createContext(e),r=this.runInContext(t);return e&&$8(hO(t),(function(i){e[i]=t[i]})),r},$8(hO(qy.prototype),(function(e){Cp[e]=qy[e]=function(t){var r=qy(t);return r[e].apply(r,[].slice.call(arguments,1))}})),Cp.isContext=function(e){return e instanceof gq},Cp.createScript=function(e){return Cp.Script(e)},Cp.createContext=qy.createContext=function(e){var t=new gq;return typeof e=="object"&&$8(hO(e),(function(r){t[r]=e[r]})),t};Cp.Script;Cp.createContext;Cp.createScript;Cp.isContext;Cp.runInContext;Cp.runInNewContext;Cp.runInThisContext;DPe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,XIt=Mo,ZIt=Rs.Buffer,FG=DPe.crypto||DPe.msCrypto,PO=FG&&FG.getRandomValues?function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=ZIt.allocUnsafe(e);if(e>0)if(e>65536)for(var i=0;i<e;i+=65536)FG.getRandomValues(r.slice(i,i+65536));else FG.getRandomValues(r);return typeof t=="function"?XIt.nextTick((function(){t(null,r)})):r}:function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
Use Chrome, Firefox or Internet Explorer 11`)},_q=Rs.Buffer,hGe=Jg.Transform;ca(c6,hGe),c6.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)},c6.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},c6.prototype.update=function(e,t){if((function(g,y){if(!_q.isBuffer(g)&&typeof g!="string")throw new TypeError(y+" must be a string or a buffer")})(e,"Data"),this._finalized)throw new Error("Digest already called");_q.isBuffer(e)||(e=_q.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var o=0,d=8*e.length;d>0;++o)this._length[o]+=d,(d=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*d);return this},c6.prototype._update=function(){throw new Error("_update is not implemented")},c6.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},c6.prototype._digest=function(){throw new Error("_digest is not implemented")};AGe=c6,jIt=ca,pGe=AGe,e3t=Rs.Buffer,t3t=new Array(16);jIt(mq,pGe),mq.prototype._update=function(){for(var e=t3t,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,o=this._d;r=vh(r,i,n,o,e[0],3614090360,7),o=vh(o,r,i,n,e[1],3905402710,12),n=vh(n,o,r,i,e[2],606105819,17),i=vh(i,n,o,r,e[3],3250441966,22),r=vh(r,i,n,o,e[4],4118548399,7),o=vh(o,r,i,n,e[5],1200080426,12),n=vh(n,o,r,i,e[6],2821735955,17),i=vh(i,n,o,r,e[7],4249261313,22),r=vh(r,i,n,o,e[8],1770035416,7),o=vh(o,r,i,n,e[9],2336552879,12),n=vh(n,o,r,i,e[10],4294925233,17),i=vh(i,n,o,r,e[11],2304563134,22),r=vh(r,i,n,o,e[12],1804603682,7),o=vh(o,r,i,n,e[13],4254626195,12),n=vh(n,o,r,i,e[14],2792965006,17),r=Rh(r,i=vh(i,n,o,r,e[15],1236535329,22),n,o,e[1],4129170786,5),o=Rh(o,r,i,n,e[6],3225465664,9),n=Rh(n,o,r,i,e[11],643717713,14),i=Rh(i,n,o,r,e[0],3921069994,20),r=Rh(r,i,n,o,e[5],3593408605,5),o=Rh(o,r,i,n,e[10],38016083,9),n=Rh(n,o,r,i,e[15],3634488961,14),i=Rh(i,n,o,r,e[4],3889429448,20),r=Rh(r,i,n,o,e[9],568446438,5),o=Rh(o,r,i,n,e[14],3275163606,9),n=Rh(n,o,r,i,e[3],4107603335,14),i=Rh(i,n,o,r,e[8],1163531501,20),r=Rh(r,i,n,o,e[13],2850285829,5),o=Rh(o,r,i,n,e[2],4243563512,9),n=Rh(n,o,r,i,e[7],1735328473,14),r=Sh(r,i=Rh(i,n,o,r,e[12],2368359562,20),n,o,e[5],4294588738,4),o=Sh(o,r,i,n,e[8],2272392833,11),n=Sh(n,o,r,i,e[11],1839030562,16),i=Sh(i,n,o,r,e[14],4259657740,23),r=Sh(r,i,n,o,e[1],2763975236,4),o=Sh(o,r,i,n,e[4],1272893353,11),n=Sh(n,o,r,i,e[7],4139469664,16),i=Sh(i,n,o,r,e[10],3200236656,23),r=Sh(r,i,n,o,e[13],681279174,4),o=Sh(o,r,i,n,e[0],3936430074,11),n=Sh(n,o,r,i,e[3],3572445317,16),i=Sh(i,n,o,r,e[6],76029189,23),r=Sh(r,i,n,o,e[9],3654602809,4),o=Sh(o,r,i,n,e[12],3873151461,11),n=Sh(n,o,r,i,e[15],530742520,16),r=Ih(r,i=Sh(i,n,o,r,e[2],3299628645,23),n,o,e[0],4096336452,6),o=Ih(o,r,i,n,e[7],1126891415,10),n=Ih(n,o,r,i,e[14],2878612391,15),i=Ih(i,n,o,r,e[5],4237533241,21),r=Ih(r,i,n,o,e[12],1700485571,6),o=Ih(o,r,i,n,e[3],2399980690,10),n=Ih(n,o,r,i,e[10],4293915773,15),i=Ih(i,n,o,r,e[1],2240044497,21),r=Ih(r,i,n,o,e[8],1873313359,6),o=Ih(o,r,i,n,e[15],4264355552,10),n=Ih(n,o,r,i,e[6],2734768916,15),i=Ih(i,n,o,r,e[13],1309151649,21),r=Ih(r,i,n,o,e[4],4149444226,6),o=Ih(o,r,i,n,e[11],3174756917,10),n=Ih(n,o,r,i,e[2],718787259,15),i=Ih(i,n,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|0},mq.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=e3t.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};Oue=mq,Xoe=Vo.Buffer,r3t=ca,gGe=AGe,n3t=new Array(16),zM=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],KM=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],$M=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],YM=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],WM=[0,1518500249,1859775393,2400959708,2840853838],XM=[1352829926,1548603684,1836072691,2053994217,0];r3t(yq,gGe),yq.prototype._update=function(){for(var e=n3t,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,d=0|this._e,g=0|this._a,y=0|this._b,_=0|this._c,I=0|this._d,N=0|this._e,T=0;T<80;T+=1){var M,D;T<16?(M=kPe(r,i,n,o,d,e[zM[T]],WM[0],$M[T]),D=FPe(g,y,_,I,N,e[KM[T]],XM[0],YM[T])):T<32?(M=PPe(r,i,n,o,d,e[zM[T]],WM[1],$M[T]),D=UPe(g,y,_,I,N,e[KM[T]],XM[1],YM[T])):T<48?(M=LPe(r,i,n,o,d,e[zM[T]],WM[2],$M[T]),D=LPe(g,y,_,I,N,e[KM[T]],XM[2],YM[T])):T<64?(M=UPe(r,i,n,o,d,e[zM[T]],WM[3],$M[T]),D=PPe(g,y,_,I,N,e[KM[T]],XM[3],YM[T])):(M=FPe(r,i,n,o,d,e[zM[T]],WM[4],$M[T]),D=kPe(g,y,_,I,N,e[KM[T]],XM[4],YM[T])),r=d,d=o,o=E4(n,10),n=i,i=M,g=N,N=I,I=E4(_,10),_=y,y=D}var P=this._b+n+I|0;this._b=this._c+o+N|0,this._c=this._d+d+g|0,this._d=this._e+r+y|0,this._e=this._a+i+_|0,this._a=P},yq.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Xoe.alloc?Xoe.alloc(20):new Xoe(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};Nue=yq,_0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,_Ge=Rs.Buffer;bq.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=_Ge.from(e,t));for(var r=(this||_0)._block,i=(this||_0)._blockSize,n=e.length,o=(this||_0)._len,d=0;d<n;){for(var g=o%i,y=Math.min(n-d,i-g),_=0;_<y;_++)r[g+_]=e[d+_];d+=y,(o+=y)%i==0&&this._update(r)}return(this||_0)._len+=n,this||_0},bq.prototype.digest=function(e){var t=(this||_0)._len%(this||_0)._blockSize;(this||_0)._block[t]=128,(this||_0)._block.fill(0,t+1),t>=(this||_0)._finalSize&&(this._update((this||_0)._block),(this||_0)._block.fill(0));var r=8*(this||_0)._len;if(r<=4294967295)(this||_0)._block.writeUInt32BE(r,(this||_0)._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;(this||_0)._block.writeUInt32BE(n,(this||_0)._blockSize-8),(this||_0)._block.writeUInt32BE(i,(this||_0)._blockSize-4)}this._update((this||_0)._block);var o=this._hash();return e?o.toString(e):o},bq.prototype._update=function(){throw new Error("_update must be implemented by subclass")};LO=bq,ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,i3t=ca,mGe=LO,o3t=Rs.Buffer,a3t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s3t=new Array(64);i3t(aD,mGe),aD.prototype.init=function(){return(this||ha)._a=1779033703,(this||ha)._b=3144134277,(this||ha)._c=1013904242,(this||ha)._d=2773480762,(this||ha)._e=1359893119,(this||ha)._f=2600822924,(this||ha)._g=528734635,(this||ha)._h=1541459225,this||ha},aD.prototype._update=function(e){for(var t,r=(this||ha)._w,i=0|(this||ha)._a,n=0|(this||ha)._b,o=0|(this||ha)._c,d=0|(this||ha)._d,g=0|(this||ha)._e,y=0|(this||ha)._f,_=0|(this||ha)._g,I=0|(this||ha)._h,N=0;N<16;++N)r[N]=e.readInt32BE(4*N);for(;N<64;++N)r[N]=0|(((t=r[N-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[N-7]+l3t(r[N-15])+r[N-16];for(var T=0;T<64;++T){var M=I+f3t(g)+c3t(g,y,_)+a3t[T]+r[T]|0,D=d3t(i)+u3t(i,n,o)|0;I=_,_=y,y=g,g=d+M|0,d=o,o=n,n=i,i=M+D|0}(this||ha)._a=i+(this||ha)._a|0,(this||ha)._b=n+(this||ha)._b|0,(this||ha)._c=o+(this||ha)._c|0,(this||ha)._d=d+(this||ha)._d|0,(this||ha)._e=g+(this||ha)._e|0,(this||ha)._f=y+(this||ha)._f|0,(this||ha)._g=_+(this||ha)._g|0,(this||ha)._h=I+(this||ha)._h|0},aD.prototype._hash=function(){var e=o3t.allocUnsafe(32);return e.writeInt32BE((this||ha)._a,0),e.writeInt32BE((this||ha)._b,4),e.writeInt32BE((this||ha)._c,8),e.writeInt32BE((this||ha)._d,12),e.writeInt32BE((this||ha)._e,16),e.writeInt32BE((this||ha)._f,20),e.writeInt32BE((this||ha)._g,24),e.writeInt32BE((this||ha)._h,28),e};yGe=aD,Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,h3t=ca,bGe=LO,A3t=Rs.Buffer,p3t=[1518500249,1859775393,-1894007588,-899497514],g3t=new Array(80);h3t(sD,bGe),sD.prototype.init=function(){return(this||Xc)._a=1732584193,(this||Xc)._b=4023233417,(this||Xc)._c=2562383102,(this||Xc)._d=271733878,(this||Xc)._e=3285377520,this||Xc},sD.prototype._update=function(e){for(var t,r=(this||Xc)._w,i=0|(this||Xc)._a,n=0|(this||Xc)._b,o=0|(this||Xc)._c,d=0|(this||Xc)._d,g=0|(this||Xc)._e,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<80;++y)r[y]=r[y-3]^r[y-8]^r[y-14]^r[y-16];for(var _=0;_<80;++_){var I=~~(_/20),N=0|((t=i)<<5|t>>>27)+m3t(I,n,o,d)+g+r[_]+p3t[I];g=d,d=o,o=_3t(n),n=i,i=N}(this||Xc)._a=i+(this||Xc)._a|0,(this||Xc)._b=n+(this||Xc)._b|0,(this||Xc)._c=o+(this||Xc)._c|0,(this||Xc)._d=d+(this||Xc)._d|0,(this||Xc)._e=g+(this||Xc)._e|0},sD.prototype._hash=function(){var e=A3t.allocUnsafe(20);return e.writeInt32BE(0|(this||Xc)._a,0),e.writeInt32BE(0|(this||Xc)._b,4),e.writeInt32BE(0|(this||Xc)._c,8),e.writeInt32BE(0|(this||Xc)._d,12),e.writeInt32BE(0|(this||Xc)._e,16),e};y3t=sD,Zc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,b3t=ca,EGe=LO,E3t=Rs.Buffer,v3t=[1518500249,1859775393,-1894007588,-899497514],R3t=new Array(80);b3t(cD,EGe),cD.prototype.init=function(){return(this||Zc)._a=1732584193,(this||Zc)._b=4023233417,(this||Zc)._c=2562383102,(this||Zc)._d=271733878,(this||Zc)._e=3285377520,this||Zc},cD.prototype._update=function(e){for(var t,r=(this||Zc)._w,i=0|(this||Zc)._a,n=0|(this||Zc)._b,o=0|(this||Zc)._c,d=0|(this||Zc)._d,g=0|(this||Zc)._e,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<80;++y)r[y]=(t=r[y-3]^r[y-8]^r[y-14]^r[y-16])<<1|t>>>31;for(var _=0;_<80;++_){var I=~~(_/20),N=S3t(i)+C3t(I,n,o,d)+g+r[_]+v3t[I]|0;g=d,d=o,o=I3t(n),n=i,i=N}(this||Zc)._a=i+(this||Zc)._a|0,(this||Zc)._b=n+(this||Zc)._b|0,(this||Zc)._c=o+(this||Zc)._c|0,(this||Zc)._d=d+(this||Zc)._d|0,(this||Zc)._e=g+(this||Zc)._e|0},cD.prototype._hash=function(){var e=E3t.allocUnsafe(20);return e.writeInt32BE(0|(this||Zc)._a,0),e.writeInt32BE(0|(this||Zc)._b,4),e.writeInt32BE(0|(this||Zc)._c,8),e.writeInt32BE(0|(this||Zc)._d,12),e.writeInt32BE(0|(this||Zc)._e,16),e};w3t=cD,nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,O3t=ca,N3t=yGe,x3t=LO,T3t=Rs.Buffer,B3t=new Array(64);O3t(Eq,N3t),Eq.prototype.init=function(){return(this||nl)._a=3238371032,(this||nl)._b=914150663,(this||nl)._c=812702999,(this||nl)._d=4144912697,(this||nl)._e=4290775857,(this||nl)._f=1750603025,(this||nl)._g=1694076839,(this||nl)._h=3204075428,this||nl},Eq.prototype._hash=function(){var e=T3t.allocUnsafe(28);return e.writeInt32BE((this||nl)._a,0),e.writeInt32BE((this||nl)._b,4),e.writeInt32BE((this||nl)._c,8),e.writeInt32BE((this||nl)._d,12),e.writeInt32BE((this||nl)._e,16),e.writeInt32BE((this||nl)._f,20),e.writeInt32BE((this||nl)._g,24),e};M3t=Eq,ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,D3t=ca,vGe=LO,k3t=Rs.Buffer,QPe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],P3t=new Array(160);D3t(uD,vGe),uD.prototype.init=function(){return(this||ni)._ah=1779033703,(this||ni)._bh=3144134277,(this||ni)._ch=1013904242,(this||ni)._dh=2773480762,(this||ni)._eh=1359893119,(this||ni)._fh=2600822924,(this||ni)._gh=528734635,(this||ni)._hh=1541459225,(this||ni)._al=4089235720,(this||ni)._bl=2227873595,(this||ni)._cl=4271175723,(this||ni)._dl=1595750129,(this||ni)._el=2917565137,(this||ni)._fl=725511199,(this||ni)._gl=4215389547,(this||ni)._hl=327033209,this||ni},uD.prototype._update=function(e){for(var t=(this||ni)._w,r=0|(this||ni)._ah,i=0|(this||ni)._bh,n=0|(this||ni)._ch,o=0|(this||ni)._dh,d=0|(this||ni)._eh,g=0|(this||ni)._fh,y=0|(this||ni)._gh,_=0|(this||ni)._hh,I=0|(this||ni)._al,N=0|(this||ni)._bl,T=0|(this||ni)._cl,M=0|(this||ni)._dl,D=0|(this||ni)._el,P=0|(this||ni)._fl,G=0|(this||ni)._gl,q=0|(this||ni)._hl,Y=0;Y<32;Y+=2)t[Y]=e.readInt32BE(4*Y),t[Y+1]=e.readInt32BE(4*Y+4);for(;Y<160;Y+=2){var ne=t[Y-30],ce=t[Y-30+1],le=L3t(ne,ce),pe=U3t(ce,ne),ae=F3t(ne=t[Y-4],ce=t[Y-4+1]),W=Q3t(ce,ne),se=t[Y-14],O=t[Y-14+1],s=t[Y-32],l=t[Y-32+1],A=pe+O|0,m=le+se+jf(A,pe)|0;m=(m=m+ae+jf(A=A+W|0,W)|0)+s+jf(A=A+l|0,l)|0,t[Y]=m,t[Y+1]=A}for(var E=0;E<160;E+=2){m=t[E],A=t[E+1];var w=GPe(r,i,n),x=GPe(I,N,T),R=qPe(r,I),u=qPe(I,r),C=VPe(d,D),U=VPe(D,d),F=QPe[E],X=QPe[E+1],Ae=HPe(d,g,y),he=HPe(D,P,G),$e=q+U|0,Ge=_+C+jf($e,q)|0;Ge=(Ge=(Ge=Ge+Ae+jf($e=$e+he|0,he)|0)+F+jf($e=$e+X|0,X)|0)+m+jf($e=$e+A|0,A)|0;var Re=u+x|0,Se=R+w+jf(Re,u)|0;_=y,q=G,y=g,G=P,g=d,P=D,d=o+Ge+jf(D=M+$e|0,M)|0,o=n,M=T,n=i,T=N,i=r,N=I,r=Ge+Se+jf(I=$e+Re|0,$e)|0}(this||ni)._al=(this||ni)._al+I|0,(this||ni)._bl=(this||ni)._bl+N|0,(this||ni)._cl=(this||ni)._cl+T|0,(this||ni)._dl=(this||ni)._dl+M|0,(this||ni)._el=(this||ni)._el+D|0,(this||ni)._fl=(this||ni)._fl+P|0,(this||ni)._gl=(this||ni)._gl+G|0,(this||ni)._hl=(this||ni)._hl+q|0,(this||ni)._ah=(this||ni)._ah+r+jf((this||ni)._al,I)|0,(this||ni)._bh=(this||ni)._bh+i+jf((this||ni)._bl,N)|0,(this||ni)._ch=(this||ni)._ch+n+jf((this||ni)._cl,T)|0,(this||ni)._dh=(this||ni)._dh+o+jf((this||ni)._dl,M)|0,(this||ni)._eh=(this||ni)._eh+d+jf((this||ni)._el,D)|0,(this||ni)._fh=(this||ni)._fh+g+jf((this||ni)._fl,P)|0,(this||ni)._gh=(this||ni)._gh+y+jf((this||ni)._gl,G)|0,(this||ni)._hh=(this||ni)._hh+_+jf((this||ni)._hl,q)|0},uD.prototype._hash=function(){var e=k3t.allocUnsafe(64);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t((this||ni)._ah,(this||ni)._al,0),t((this||ni)._bh,(this||ni)._bl,8),t((this||ni)._ch,(this||ni)._cl,16),t((this||ni)._dh,(this||ni)._dl,24),t((this||ni)._eh,(this||ni)._el,32),t((this||ni)._fh,(this||ni)._fl,40),t((this||ni)._gh,(this||ni)._gl,48),t((this||ni)._hh,(this||ni)._hl,56),e};RGe=uD,Sc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,H3t=ca,G3t=RGe,q3t=LO,V3t=Rs.Buffer,J3t=new Array(160);H3t(vq,G3t),vq.prototype.init=function(){return(this||Sc)._ah=3418070365,(this||Sc)._bh=1654270250,(this||Sc)._ch=2438529370,(this||Sc)._dh=355462360,(this||Sc)._eh=1731405415,(this||Sc)._fh=2394180231,(this||Sc)._gh=3675008525,(this||Sc)._hh=1203062813,(this||Sc)._al=3238371032,(this||Sc)._bl=914150663,(this||Sc)._cl=812702999,(this||Sc)._dl=4144912697,(this||Sc)._el=4290775857,(this||Sc)._fl=1750603025,(this||Sc)._gl=1694076839,(this||Sc)._hl=3204075428,this||Sc},vq.prototype._hash=function(){var e=V3t.allocUnsafe(48);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t((this||Sc)._ah,(this||Sc)._al,0),t((this||Sc)._bh,(this||Sc)._bl,8),t((this||Sc)._ch,(this||Sc)._cl,16),t((this||Sc)._dh,(this||Sc)._dl,24),t((this||Sc)._eh,(this||Sc)._el,32),t((this||Sc)._fh,(this||Sc)._fl,40),e};z3t=vq,SGe={exports:u6={}};(u6=SGe.exports=function(e){e=e.toLowerCase();var t=u6[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=y3t,u6.sha1=w3t,u6.sha224=M3t,u6.sha256=yGe,u6.sha384=z3t,u6.sha512=RGe;xue=SGe.exports,sd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,JPe=Rs.Buffer,IGe=Jg.Transform,K3t=yh.StringDecoder;ca(fm,IGe),fm.prototype.update=function(e,t,r){typeof e=="string"&&(e=JPe.from(e,t));var i=this._update(e);return(this||sd).hashMode?this||sd:(r&&(i=this._toString(i,r)),i)},fm.prototype.setAutoPadding=function(){},fm.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},fm.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},fm.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},fm.prototype._transform=function(e,t,r){var i;try{(this||sd).hashMode?this._update(e):this.push(this._update(e))}catch(n){i=n}finally{r(i)}},fm.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},fm.prototype._finalOrDigest=function(e){var t=this.__final()||JPe.alloc(0);return e&&(t=this._toString(t,e,!0)),t},fm.prototype._toString=function(e,t,r){if((this||sd)._decoder||((this||sd)._decoder=new K3t(t),(this||sd)._encoding=t),(this||sd)._encoding!==t)throw new Error("can't switch encodings");var i=(this||sd)._decoder.write(e);return r&&(i+=(this||sd)._decoder.end()),i};I6=fm,$3t=Oue,Y3t=Nue,W3t=xue,CGe=I6;ca(Rq,CGe),Rq.prototype._update=function(e){this._hash.update(e)},Rq.prototype._final=function(){return this._hash.digest()};kD=function(e){return(e=e.toLowerCase())==="md5"?new $3t:e==="rmd160"||e==="ripemd160"?new Y3t:new Rq(W3t(e))},X3t=Oue,wGe=function(e){return new X3t().update(e).digest()},Z3t=ca,g4=Rs.Buffer,OGe=I6,j3t=g4.alloc(128);Z3t(Sq,OGe),Sq.prototype._update=function(e){this._hash.push(e)},Sq.prototype._final=function(){var e=this._alg(g4.concat(this._hash));return this._alg(g4.concat([this._opad,e]))};e8t=ca,t8t=Sq,NGe=I6,dD=Rs.Buffer,r8t=wGe,Kce=Nue,$ce=xue,n8t=dD.alloc(128);e8t(bD,NGe),bD.prototype._update=function(e){this._hash.update(e)},bD.prototype._final=function(){var e=this._hash.digest();return(this._alg==="rmd160"?new Kce:$ce(this._alg)).update(this._opad).update(e).digest()};xGe=function(e,t){return(e=e.toLowerCase())==="rmd160"||e==="ripemd160"?new bD("rmd160",t):e==="md5"?new t8t(r8t,t):new bD(e,t)},TGe={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},i8t=Vo.Buffer,o8t=Math.pow(2,30)-1;BGe=function(e,t,r,i){if(zPe(e,"Password"),zPe(t,"Salt"),typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof i!="number")throw new TypeError("Key length not a number");if(i<0||i>o8t||i!=i)throw new TypeError("Bad key length")},KPe=Mo;KPe.browser?Yce="utf-8":Yce=parseInt(KPe.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";MGe=Yce,Am=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,a8t=wGe,s8t=Nue,c8t=xue,u8t=BGe,$Pe=MGe,gm=Rs.Buffer,d8t=gm.alloc(128),Iq={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};DGe.prototype.run=function(e,t){return e.copy(t,(this||Am).blocksize),this.hash(t).copy((this||Am).opad,(this||Am).blocksize),this.hash((this||Am).opad)};kGe=function(e,t,r,i,n){u8t(e,t,r,i),gm.isBuffer(e)||(e=gm.from(e,$Pe)),gm.isBuffer(t)||(t=gm.from(t,$Pe));var o=new DGe(n=n||"sha1",e,t.length),d=gm.allocUnsafe(i),g=gm.allocUnsafe(t.length+4);t.copy(g,0,0,t.length);for(var y=0,_=Iq[n],I=Math.ceil(i/_),N=1;N<=I;N++){g.writeUInt32BE(N,t.length);for(var T=o.run(g,o.ipad1),M=T,D=1;D<r;D++){M=o.run(M,o.ipad2);for(var P=0;P<_;P++)T[P]^=M[P]}T.copy(d,y),y+=_}return d},ED=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,joe=Mo,f8t=BGe,YPe=MGe,WPe=kGe,yO=Rs.Buffer,vD=ED.crypto&&ED.crypto.subtle,l8t={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},eae=[];h8t=function(e,t,r,i,n,o){typeof n=="function"&&(o=n,n=void 0);var d=l8t[(n=n||"sha1").toLowerCase()];if(!d||typeof ED.Promise!="function")return joe.nextTick((function(){var g;try{g=WPe(e,t,r,i,n)}catch(y){return o(y)}o(null,g)}));if(f8t(e,t,r,i),typeof o!="function")throw new Error("No callback provided to pbkdf2");yO.isBuffer(e)||(e=yO.from(e,YPe)),yO.isBuffer(t)||(t=yO.from(t,YPe)),(function(g,y){g.then((function(_){joe.nextTick((function(){y(null,_)}))}),(function(_){joe.nextTick((function(){y(_)}))}))})((function(g){if(ED.process&&!ED.process.browser||!vD||!vD.importKey||!vD.deriveBits)return Promise.resolve(!1);if(eae[g]!==void 0)return eae[g];var y=XPe(Zoe=Zoe||yO.alloc(8),Zoe,10,128,g).then((function(){return!0})).catch((function(){return!1}));return eae[g]=y,y})(d).then((function(g){return g?XPe(e,t,r,i,d):WPe(e,t,r,i,n)})),o)},Lq={};Lq.pbkdf2=h8t,Lq.pbkdf2Sync=kGe;PGe=ZPe,ZPe.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};zg=PGe,v4={readUInt32BE:function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},writeUInt32BE:function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},ip:function(e,t,r,i){for(var n=0,o=0,d=6;d>=0;d-=2){for(var g=0;g<=24;g+=8)n<<=1,n|=t>>>g+d&1;for(g=0;g<=24;g+=8)n<<=1,n|=e>>>g+d&1}for(d=6;d>=0;d-=2){for(g=1;g<=25;g+=8)o<<=1,o|=t>>>g+d&1;for(g=1;g<=25;g+=8)o<<=1,o|=e>>>g+d&1}r[i+0]=n>>>0,r[i+1]=o>>>0},rip:function(e,t,r,i){for(var n=0,o=0,d=0;d<4;d++)for(var g=24;g>=0;g-=8)n<<=1,n|=t>>>g+d&1,n<<=1,n|=e>>>g+d&1;for(d=4;d<8;d++)for(g=24;g>=0;g-=8)o<<=1,o|=t>>>g+d&1,o<<=1,o|=e>>>g+d&1;r[i+0]=n>>>0,r[i+1]=o>>>0},pc1:function(e,t,r,i){for(var n=0,o=0,d=7;d>=5;d--){for(var g=0;g<=24;g+=8)n<<=1,n|=t>>g+d&1;for(g=0;g<=24;g+=8)n<<=1,n|=e>>g+d&1}for(g=0;g<=24;g+=8)n<<=1,n|=t>>g+d&1;for(d=1;d<=3;d++){for(g=0;g<=24;g+=8)o<<=1,o|=t>>g+d&1;for(g=0;g<=24;g+=8)o<<=1,o|=e>>g+d&1}for(g=0;g<=24;g+=8)o<<=1,o|=e>>g+d&1;r[i+0]=n>>>0,r[i+1]=o>>>0},r28shl:function(e,t){return e<<t&268435455|e>>>28-t}},QG=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];v4.pc2=function(e,t,r,i){for(var n=0,o=0,d=QG.length>>>1,g=0;g<d;g++)n<<=1,n|=e>>>QG[g]&1;for(g=d;g<QG.length;g++)o<<=1,o|=t>>>QG[g]&1;r[i+0]=n>>>0,r[i+1]=o>>>0},v4.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=e>>>o&63;for(o=11;o>=3;o-=4)n|=e>>>o&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};jPe=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];v4.substitute=function(e,t){for(var r=0,i=0;i<4;i++)r<<=4,r|=jPe[64*i+(e>>>18-6*i&63)];for(i=0;i<4;i++)r<<=4,r|=jPe[256+64*i+(t>>>18-6*i&63)];return r>>>0};eLe=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];v4.permute=function(e){for(var t=0,r=0;r<eLe.length;r++)t<<=1,t|=e>>>eLe[r]&1;return t>>>0},v4.padSplit=function(e,t,r){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var n=[],o=0;o<t;o+=r)n.push(i.slice(o,o+r));return n.join(" ")};A8t=zg;LGe=Dg,Dg.prototype._init=function(){},Dg.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)},Dg.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},Dg.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},Dg.prototype._updateEncrypt=function(e){var t=0,r=0,i=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(i*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},Dg.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},Dg.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},Dg.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0},Dg.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},Dg.prototype._unpad=function(e){return e},Dg.prototype._finalDecrypt=function(){A8t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)};Tue=LGe,tLe=zg,Nf=v4,FGe=Tue;ca($y,FGe),UGe=$y,$y.create=function(e){return new $y(e)};g8t=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];$y.prototype.deriveKeys=function(e,t){e.keys=new Array(32),tLe.equal(t.length,this.blockSize,"Invalid key length");var r=Nf.readUInt32BE(t,0),i=Nf.readUInt32BE(t,4);Nf.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var n=0;n<e.keys.length;n+=2){var o=g8t[n>>>1];r=Nf.r28shl(r,o),i=Nf.r28shl(i,o),Nf.pc2(r,i,e.keys,n)}},$y.prototype._update=function(e,t,r,i){var n=this._desState,o=Nf.readUInt32BE(e,t),d=Nf.readUInt32BE(e,t+4);Nf.ip(o,d,n.tmp,0),o=n.tmp[0],d=n.tmp[1],this.type==="encrypt"?this._encrypt(n,o,d,n.tmp,0):this._decrypt(n,o,d,n.tmp,0),o=n.tmp[0],d=n.tmp[1],Nf.writeUInt32BE(r,o,i),Nf.writeUInt32BE(r,d,i+4)},$y.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},$y.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)tLe.equal(e[r],t);return e.slice(0,e.length-t)},$y.prototype._encrypt=function(e,t,r,i,n){for(var o=t,d=r,g=0;g<e.keys.length;g+=2){var y=e.keys[g],_=e.keys[g+1];Nf.expand(d,e.tmp,0),y^=e.tmp[0],_^=e.tmp[1];var I=Nf.substitute(y,_),N=d;d=(o^Nf.permute(I))>>>0,o=N}Nf.rip(d,o,i,n)},$y.prototype._decrypt=function(e,t,r,i,n){for(var o=r,d=t,g=e.keys.length-2;g>=0;g-=2){var y=e.keys[g],_=e.keys[g+1];Nf.expand(o,e.tmp,0),y^=e.tmp[0],_^=e.tmp[1];var I=Nf.substitute(y,_),N=o;o=(d^Nf.permute(I))>>>0,d=N}Nf.rip(o,d,i,n)};QGe=UGe,HGe={},_8t=zg,m8t=ca,HG={};HGe.instantiate=function(e){function t(o){e.call(this,o),this._cbcInit()}m8t(t,e);for(var r=Object.keys(HG),i=0;i<r.length;i++){var n=r[i];t.prototype[n]=HG[n]}return t.create=function(o){return new t(o)},t},HG._cbcInit=function(){var e=new y8t(this.options.iv);this._cbcState=e},HG._update=function(e,t,r,i){var n=this._cbcState,o=this.constructor.super_.prototype,d=n.iv;if(this.type==="encrypt"){for(var g=0;g<this.blockSize;g++)d[g]^=e[t+g];for(o._update.call(this,d,0,r,i),g=0;g<this.blockSize;g++)d[g]=r[i+g]}else{for(o._update.call(this,e,t,r,i),g=0;g<this.blockSize;g++)r[i+g]^=d[g];for(g=0;g<this.blockSize;g++)d[g]=e[t+g]}};b8t=zg,qGe=Tue,_6=QGe;ca(Y8,qGe),GGe=Y8,Y8.create=function(e){return new Y8(e)},Y8.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},Y8.prototype._pad=_6.prototype._pad,Y8.prototype._unpad=_6.prototype._unpad;v8t=GGe,bO={};bO.utils=v4,bO.Cipher=Tue,bO.DES=QGe,bO.CBC=HGe,bO.EDE=v8t;Uq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,JGe=I6,Cv=bO,R8t=ca,d4=Rs.Buffer,fD={"des-ede3-cbc":Cv.CBC.instantiate(Cv.EDE),"des-ede3":Cv.EDE,"des-ede-cbc":Cv.CBC.instantiate(Cv.EDE),"des-ede":Cv.EDE,"des-cbc":Cv.CBC.instantiate(Cv.DES),"des-ecb":Cv.DES};fD.des=fD["des-cbc"],fD.des3=fD["des-ede3-cbc"],VGe=GG,R8t(GG,JGe),GG.prototype._update=function(e){return d4.from((this||Uq)._des.update(e))},GG.prototype._final=function(){return d4.from((this||Uq)._des.final())};S8t=VGe,I8t=Vo.Buffer,PD=function(e,t){for(var r=Math.min(e.length,t.length),i=new I8t(r),n=0;n<r;++n)i[n]=e[n]^t[n];return i},zGe=function(e){for(var t,r=e.length;r--;){if((t=e.readUInt8(r))!==255){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}},C8t={encrypt:function(e,t){return e._cipher.encryptBlock(t)},decrypt:function(e,t){return e._cipher.decryptBlock(t)}},Wce={},rLe=PD;Wce.encrypt=function(e,t){var r=rLe(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},Wce.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return rLe(i,r)};KGe={},lD=Rs.Buffer,w8t=PD;KGe.encrypt=function(e,t,r){for(var i,n=lD.allocUnsafe(0);t.length;){if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=lD.allocUnsafe(0)),!(e._cache.length<=t.length)){n=lD.concat([n,nLe(e,t,r)]);break}i=e._cache.length,n=lD.concat([n,nLe(e,t.slice(0,i),r)]),t=t.slice(i)}return n};$Ge={},Xce=Rs.Buffer;$Ge.encrypt=function(e,t,r){for(var i=t.length,n=Xce.allocUnsafe(i),o=-1;++o<i;)n[o]=O8t(e,t[o],r);return n};YGe={},Cq=Rs.Buffer;YGe.encrypt=function(e,t,r){for(var i=t.length,n=Cq.allocUnsafe(i),o=-1;++o<i;)n[o]=N8t(e,t[o],r);return n};WGe={},T8t=Vo.Buffer,B8t=PD;WGe.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=T8t.concat([e._cache,M8t(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),B8t(t,r)};Zce={},D8t=PD,iLe=Rs.Buffer,k8t=zGe;Zce.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=iLe.concat([e._cache,iLe.allocUnsafe(16*r)]);for(var n=0;n<r;n++){var o=P8t(e),d=i+16*n;e._cache.writeUInt32BE(o[0],d+0),e._cache.writeUInt32BE(o[1],d+4),e._cache.writeUInt32BE(o[2],d+8),e._cache.writeUInt32BE(o[3],d+12)}var g=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),D8t(t,g)};XGe={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},L8t={ECB:C8t,CBC:Wce,CFB:KGe,CFB8:$Ge,CFB1:YGe,OFB:WGe,CTR:Zce,GCM:Zce},wq=XGe;for(tae in wq)wq[tae].module=L8t[wq[tae].mode];Bue=wq,Gg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,LD={},Fq=Rs.Buffer;U8t=[0,1,2,4,8,16,32,64,128,27,54],jd=(function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],d=0,g=0,y=0;y<256;++y){var _=g^g<<1^g<<2^g<<3^g<<4;_=_>>>8^255&_^99,r[d]=_,i[_]=d;var I=e[d],N=e[I],T=e[N],M=257*e[_]^16843008*_;n[0][d]=M<<24|M>>>8,n[1][d]=M<<16|M>>>16,n[2][d]=M<<8|M>>>24,n[3][d]=M,M=16843009*T^65537*N^257*I^16843008*d,o[0][_]=M<<24|M>>>8,o[1][_]=M<<16|M>>>16,o[2][_]=M<<8|M>>>24,o[3][_]=M,d===0?d=g=1:(d=I^e[e[e[T^I]]],g^=e[e[g]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}})();kg.blockSize=16,kg.keySize=32,kg.prototype.blockSize=kg.blockSize,kg.prototype.keySize=kg.keySize,kg.prototype._reset=function(){for(var e=(this||Gg)._key,t=e.length,r=t+6,i=4*(r+1),n=[],o=0;o<t;o++)n[o]=e[o];for(o=t;o<i;o++){var d=n[o-1];o%t==0?(d=d<<8|d>>>24,d=jd.SBOX[d>>>24]<<24|jd.SBOX[d>>>16&255]<<16|jd.SBOX[d>>>8&255]<<8|jd.SBOX[255&d],d^=U8t[o/t|0]<<24):t>6&&o%t==4&&(d=jd.SBOX[d>>>24]<<24|jd.SBOX[d>>>16&255]<<16|jd.SBOX[d>>>8&255]<<8|jd.SBOX[255&d]),n[o]=n[o-t]^d}for(var g=[],y=0;y<i;y++){var _=i-y,I=n[_-(y%4?0:4)];g[y]=y<4||_<=4?I:jd.INV_SUB_MIX[0][jd.SBOX[I>>>24]]^jd.INV_SUB_MIX[1][jd.SBOX[I>>>16&255]]^jd.INV_SUB_MIX[2][jd.SBOX[I>>>8&255]]^jd.INV_SUB_MIX[3][jd.SBOX[255&I]]}(this||Gg)._nRounds=r,(this||Gg)._keySchedule=n,(this||Gg)._invKeySchedule=g},kg.prototype.encryptBlockRaw=function(e){return oLe(e=jce(e),(this||Gg)._keySchedule,jd.SUB_MIX,jd.SBOX,(this||Gg)._nRounds)},kg.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Fq.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},kg.prototype.decryptBlock=function(e){var t=(e=jce(e))[1];e[1]=e[3],e[3]=t;var r=oLe(e,(this||Gg)._invKeySchedule,jd.INV_SUB_MIX,jd.INV_SBOX,(this||Gg)._nRounds),i=Fq.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},kg.prototype.scrub=function(){rae((this||Gg)._keySchedule),rae((this||Gg)._invKeySchedule),rae((this||Gg)._key)},LD.AES=kg;wh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,NO=Rs.Buffer,F8t=NO.alloc(16,0);hD.prototype.ghash=function(e){for(var t=-1;++t<e.length;)(this||wh).state[t]^=e[t];this._multiply()},hD.prototype._multiply=function(){for(var e,t,r,i=[(e=(this||wh).h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],n=[0,0,0,0],o=-1;++o<128;){for(((this||wh).state[~~(o/8)]&1<<7-o%8)!=0&&(n[0]^=i[0],n[1]^=i[1],n[2]^=i[2],n[3]^=i[3]),r=(1&i[3])!=0,t=3;t>0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}(this||wh).state=aLe(n)},hD.prototype.update=function(e){var t;for((this||wh).cache=NO.concat([(this||wh).cache,e]);(this||wh).cache.length>=16;)t=(this||wh).cache.slice(0,16),(this||wh).cache=(this||wh).cache.slice(16),this.ghash(t)},hD.prototype.final=function(e,t){return(this||wh).cache.length&&this.ghash(NO.concat([(this||wh).cache,F8t],16)),this.ghash(aLe([0,e,0,t])),(this||wh).state};Q8t=hD,Aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,H8t=LD,Sp=Rs.Buffer,ZGe=I6,sLe=Q8t,G8t=PD,q8t=zGe;ca(a4,ZGe),a4.prototype._update=function(e){if(!(this||Aa)._called&&(this||Aa)._alen){var t=16-(this||Aa)._alen%16;t<16&&(t=Sp.alloc(t,0),(this||Aa)._ghash.update(t))}(this||Aa)._called=!0;var r=(this||Aa)._mode.encrypt(this||Aa,e);return(this||Aa)._decrypt?(this||Aa)._ghash.update(e):(this||Aa)._ghash.update(r),(this||Aa)._len+=e.length,r},a4.prototype._final=function(){if((this||Aa)._decrypt&&!(this||Aa)._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=G8t((this||Aa)._ghash.final(8*(this||Aa)._alen,8*(this||Aa)._len),(this||Aa)._cipher.encryptBlock((this||Aa)._finID));if((this||Aa)._decrypt&&(function(t,r){var i=0;t.length!==r.length&&i++;for(var n=Math.min(t.length,r.length),o=0;o<n;++o)i+=t[o]^r[o];return i})(e,(this||Aa)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||Aa)._authTag=e,(this||Aa)._cipher.scrub()},a4.prototype.getAuthTag=function(){if((this||Aa)._decrypt||!Sp.isBuffer((this||Aa)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||Aa)._authTag},a4.prototype.setAuthTag=function(e){if(!(this||Aa)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||Aa)._authTag=e},a4.prototype.setAAD=function(e){if((this||Aa)._called)throw new Error("Attempting to set AAD in unsupported state");(this||Aa)._ghash.update(e),(this||Aa)._alen+=e.length};jGe=a4,pm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,V8t=LD,nae=Rs.Buffer,eqe=I6;ca(Oq,eqe),Oq.prototype._update=function(e){return(this||pm)._mode.encrypt(this||pm,e,(this||pm)._decrypt)},Oq.prototype._final=function(){(this||pm)._cipher.scrub()};tqe=Oq,W8=Rs.Buffer,J8t=Oue,eV=function(e,t,r,i){if(W8.isBuffer(e)||(e=W8.from(e,"binary")),t&&(W8.isBuffer(t)||(t=W8.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,o=W8.alloc(n),d=W8.alloc(i||0),g=W8.alloc(0);n>0||i>0;){var y=new J8t;y.update(g),y.update(e),t&&y.update(t),g=y.digest();var _=0;if(n>0){var I=o.length-n;_=Math.min(n,g.length),g.copy(o,I,0,_),n-=_}if(_<g.length&&i>0){var N=d.length-i,T=Math.min(i,g.length-_);g.copy(d,N,_,_+T),i-=T}}return g.fill(0),{key:o,iv:d}},Ic=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,eue={},z8t=jGe,xO=Rs.Buffer,rqe=Bue,K8t=tqe,nqe=I6,$8t=LD,Y8t=eV;ca(AD,nqe),AD.prototype._update=function(e){var t,r;(this||Ic)._cache.add(e);for(var i=[];t=(this||Ic)._cache.get((this||Ic)._autopadding);)r=(this||Ic)._mode.decrypt(this||Ic,t),i.push(r);return xO.concat(i)},AD.prototype._final=function(){var e=(this||Ic)._cache.flush();if((this||Ic)._autopadding)return(function(t){var r=t[15];if(r<1||r>16)throw new Error("unable to decrypt data");for(var i=-1;++i<r;)if(t[i+(16-r)]!==r)throw new Error("unable to decrypt data");if(r!==16)return t.slice(0,16-r)})((this||Ic)._mode.decrypt(this||Ic,e));if(e)throw new Error("data not multiple of block length")},AD.prototype.setAutoPadding=function(e){return(this||Ic)._autopadding=!!e,this||Ic},Nq.prototype.add=function(e){(this||Ic).cache=xO.concat([(this||Ic).cache,e])},Nq.prototype.get=function(e){var t;if(e){if((this||Ic).cache.length>16)return t=(this||Ic).cache.slice(0,16),(this||Ic).cache=(this||Ic).cache.slice(16),t}else if((this||Ic).cache.length>=16)return t=(this||Ic).cache.slice(0,16),(this||Ic).cache=(this||Ic).cache.slice(16),t;return null},Nq.prototype.flush=function(){if((this||Ic).cache.length)return(this||Ic).cache},eue.createDecipher=function(e,t){var r=rqe[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=Y8t(t,!1,r.key,r.iv);return cLe(e,i.key,i.iv)},eue.createDecipheriv=cLe;Bu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,tue={},iqe=Bue,W8t=jGe,Dv=Rs.Buffer,X8t=tqe,oqe=I6,Z8t=LD,j8t=eV;ca(CD,oqe),CD.prototype._update=function(e){var t,r;(this||Bu)._cache.add(e);for(var i=[];t=(this||Bu)._cache.get();)r=(this||Bu)._mode.encrypt(this||Bu,t),i.push(r);return Dv.concat(i)};e4t=Dv.alloc(16,16);CD.prototype._final=function(){var e=(this||Bu)._cache.flush();if((this||Bu)._autopadding)return e=(this||Bu)._mode.encrypt(this||Bu,e),(this||Bu)._cipher.scrub(),e;if(!e.equals(e4t))throw(this||Bu)._cipher.scrub(),new Error("data not multiple of block length")},CD.prototype.setAutoPadding=function(e){return(this||Bu)._autopadding=!!e,this||Bu},xq.prototype.add=function(e){(this||Bu).cache=Dv.concat([(this||Bu).cache,e])},xq.prototype.get=function(){if((this||Bu).cache.length>15){var e=(this||Bu).cache.slice(0,16);return(this||Bu).cache=(this||Bu).cache.slice(16),e}return null},xq.prototype.flush=function(){for(var e=16-(this||Bu).cache.length,t=Dv.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Dv.concat([(this||Bu).cache,t])},tue.createCipheriv=uLe,tue.createCipher=function(e,t){var r=iqe[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=j8t(t,!1,r.key,r.iv);return uLe(e,i.key,i.iv)};F1={},dLe=tue,fLe=eue,t4t=XGe;F1.createCipher=F1.Cipher=dLe.createCipher,F1.createCipheriv=F1.Cipheriv=dLe.createCipheriv,F1.createDecipher=F1.Decipher=fLe.createDecipher,F1.createDecipheriv=F1.Decipheriv=fLe.createDecipheriv,F1.listCiphers=F1.getCiphers=function(){return Object.keys(t4t)};d6={"des-ecb":{key:8,iv:0}};d6["des-cbc"]=d6.des={key:8,iv:8},d6["des-ede3-cbc"]=d6.des3={key:24,iv:8},d6["des-ede3"]={key:24,iv:0},d6["des-ede-cbc"]={key:16,iv:8},d6["des-ede"]={key:16,iv:0};lm={},aqe=S8t,Mue=F1,m6=Bue,Ov=d6,lLe=eV;lm.createCipher=lm.Cipher=function(e,t){var r,i;if(e=e.toLowerCase(),m6[e])r=m6[e].key,i=m6[e].iv;else{if(!Ov[e])throw new TypeError("invalid suite type");r=8*Ov[e].key,i=Ov[e].iv}var n=lLe(t,!1,r,i);return hLe(e,n.key,n.iv)},lm.createCipheriv=lm.Cipheriv=hLe,lm.createDecipher=lm.Decipher=function(e,t){var r,i;if(e=e.toLowerCase(),m6[e])r=m6[e].key,i=m6[e].iv;else{if(!Ov[e])throw new TypeError("invalid suite type");r=8*Ov[e].key,i=Ov[e].iv}var n=lLe(t,!1,r,i);return ALe(e,n.key,n.iv)},lm.createDecipheriv=lm.Decipheriv=ALe,lm.listCiphers=lm.getCiphers=function(){return Object.keys(Ov).concat(Mue.getCiphers())};r4t=Object.freeze({}),Ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,sqe={},cqe={exports:sqe};(function(e,t){function r(ae,W){if(!ae)throw new Error(W||"Assertion failed")}function i(ae,W){ae.super_=W;var se=function(){};se.prototype=W.prototype,ae.prototype=new se,ae.prototype.constructor=ae}function n(ae,W,se){if(n.isBN(ae))return ae;(this||Ft).negative=0,(this||Ft).words=null,(this||Ft).length=0,(this||Ft).red=null,ae!==null&&(W!=="le"&&W!=="be"||(se=W,W=10),this._init(ae||0,W||10,se||"be"))}var o;typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{o=r4t.Buffer}catch{}function d(ae,W,se){for(var O=0,s=Math.min(ae.length,se),l=W;l<s;l++){var A=ae.charCodeAt(l)-48;O<<=4,O|=A>=49&&A<=54?A-49+10:A>=17&&A<=22?A-17+10:15&A}return O}function g(ae,W,se,O){for(var s=0,l=Math.min(ae.length,se),A=W;A<l;A++){var m=ae.charCodeAt(A)-48;s*=O,s+=m>=49?m-49+10:m>=17?m-17+10:m}return s}n.isBN=function(ae){return ae instanceof n||ae!==null&&typeof ae=="object"&&ae.constructor.wordSize===n.wordSize&&Array.isArray(ae.words)},n.max=function(ae,W){return ae.cmp(W)>0?ae:W},n.min=function(ae,W){return ae.cmp(W)<0?ae:W},n.prototype._init=function(ae,W,se){if(typeof ae=="number")return this._initNumber(ae,W,se);if(typeof ae=="object")return this._initArray(ae,W,se);W==="hex"&&(W=16),r(W===(0|W)&&W>=2&&W<=36);var O=0;(ae=ae.toString().replace(/\s+/g,""))[0]==="-"&&O++,W===16?this._parseHex(ae,O):this._parseBase(ae,W,O),ae[0]==="-"&&((this||Ft).negative=1),this.strip(),se==="le"&&this._initArray(this.toArray(),W,se)},n.prototype._initNumber=function(ae,W,se){ae<0&&((this||Ft).negative=1,ae=-ae),ae<67108864?((this||Ft).words=[67108863&ae],(this||Ft).length=1):ae<4503599627370496?((this||Ft).words=[67108863&ae,ae/67108864&67108863],(this||Ft).length=2):(r(ae<9007199254740992),(this||Ft).words=[67108863&ae,ae/67108864&67108863,1],(this||Ft).length=3),se==="le"&&this._initArray(this.toArray(),W,se)},n.prototype._initArray=function(ae,W,se){if(r(typeof ae.length=="number"),ae.length<=0)return(this||Ft).words=[0],(this||Ft).length=1,this||Ft;(this||Ft).length=Math.ceil(ae.length/3),(this||Ft).words=new Array((this||Ft).length);for(var O=0;O<(this||Ft).length;O++)(this||Ft).words[O]=0;var s,l,A=0;if(se==="be")for(O=ae.length-1,s=0;O>=0;O-=3)l=ae[O]|ae[O-1]<<8|ae[O-2]<<16,(this||Ft).words[s]|=l<<A&67108863,(this||Ft).words[s+1]=l>>>26-A&67108863,(A+=24)>=26&&(A-=26,s++);else if(se==="le")for(O=0,s=0;O<ae.length;O+=3)l=ae[O]|ae[O+1]<<8|ae[O+2]<<16,(this||Ft).words[s]|=l<<A&67108863,(this||Ft).words[s+1]=l>>>26-A&67108863,(A+=24)>=26&&(A-=26,s++);return this.strip()},n.prototype._parseHex=function(ae,W){(this||Ft).length=Math.ceil((ae.length-W)/6),(this||Ft).words=new Array((this||Ft).length);for(var se=0;se<(this||Ft).length;se++)(this||Ft).words[se]=0;var O,s,l=0;for(se=ae.length-6,O=0;se>=W;se-=6)s=d(ae,se,se+6),(this||Ft).words[O]|=s<<l&67108863,(this||Ft).words[O+1]|=s>>>26-l&4194303,(l+=24)>=26&&(l-=26,O++);se+6!==W&&(s=d(ae,W,se+6),(this||Ft).words[O]|=s<<l&67108863,(this||Ft).words[O+1]|=s>>>26-l&4194303),this.strip()},n.prototype._parseBase=function(ae,W,se){(this||Ft).words=[0],(this||Ft).length=1;for(var O=0,s=1;s<=67108863;s*=W)O++;O--,s=s/W|0;for(var l=ae.length-se,A=l%O,m=Math.min(l,l-A)+se,E=0,w=se;w<m;w+=O)E=g(ae,w,w+O,W),this.imuln(s),(this||Ft).words[0]+E<67108864?(this||Ft).words[0]+=E:this._iaddn(E);if(A!==0){var x=1;for(E=g(ae,w,ae.length,W),w=0;w<A;w++)x*=W;this.imuln(x),(this||Ft).words[0]+E<67108864?(this||Ft).words[0]+=E:this._iaddn(E)}},n.prototype.copy=function(ae){ae.words=new Array((this||Ft).length);for(var W=0;W<(this||Ft).length;W++)ae.words[W]=(this||Ft).words[W];ae.length=(this||Ft).length,ae.negative=(this||Ft).negative,ae.red=(this||Ft).red},n.prototype.clone=function(){var ae=new n(null);return this.copy(ae),ae},n.prototype._expand=function(ae){for(;(this||Ft).length<ae;)(this||Ft).words[(this||Ft).length++]=0;return this||Ft},n.prototype.strip=function(){for(;(this||Ft).length>1&&(this||Ft).words[(this||Ft).length-1]===0;)(this||Ft).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Ft).length===1&&(this||Ft).words[0]===0&&((this||Ft).negative=0),this||Ft},n.prototype.inspect=function(){return((this||Ft).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var y=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function N(ae,W,se){se.negative=W.negative^ae.negative;var O=ae.length+W.length|0;se.length=O,O=O-1|0;var s=0|ae.words[0],l=0|W.words[0],A=s*l,m=67108863&A,E=A/67108864|0;se.words[0]=m;for(var w=1;w<O;w++){for(var x=E>>>26,R=67108863&E,u=Math.min(w,W.length-1),C=Math.max(0,w-ae.length+1);C<=u;C++){var U=w-C|0;x+=(A=(s=0|ae.words[U])*(l=0|W.words[C])+R)/67108864|0,R=67108863&A}se.words[w]=0|R,E=0|x}return E!==0?se.words[w]=0|E:se.length--,se.strip()}n.prototype.toString=function(ae,W){var se;if(W=0|W||1,(ae=ae||10)===16||ae==="hex"){se="";for(var O=0,s=0,l=0;l<(this||Ft).length;l++){var A=(this||Ft).words[l],m=(16777215&(A<<O|s)).toString(16);se=(s=A>>>24-O&16777215)!==0||l!==(this||Ft).length-1?y[6-m.length]+m+se:m+se,(O+=2)>=26&&(O-=26,l--)}for(s!==0&&(se=s.toString(16)+se);se.length%W!=0;)se="0"+se;return(this||Ft).negative!==0&&(se="-"+se),se}if(ae===(0|ae)&&ae>=2&&ae<=36){var E=_[ae],w=I[ae];se="";var x=this.clone();for(x.negative=0;!x.isZero();){var R=x.modn(w).toString(ae);se=(x=x.idivn(w)).isZero()?R+se:y[E-R.length]+R+se}for(this.isZero()&&(se="0"+se);se.length%W!=0;)se="0"+se;return(this||Ft).negative!==0&&(se="-"+se),se}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var ae=(this||Ft).words[0];return(this||Ft).length===2?ae+=67108864*(this||Ft).words[1]:(this||Ft).length===3&&(this||Ft).words[2]===1?ae+=4503599627370496+67108864*(this||Ft).words[1]:(this||Ft).length>2&&r(!1,"Number can only safely store up to 53 bits"),(this||Ft).negative!==0?-ae:ae},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(ae,W){return r(o!==void 0),this.toArrayLike(o,ae,W)},n.prototype.toArray=function(ae,W){return this.toArrayLike(Array,ae,W)},n.prototype.toArrayLike=function(ae,W,se){var O=this.byteLength(),s=se||Math.max(1,O);r(O<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var l,A,m=W==="le",E=new ae(s),w=this.clone();if(m){for(A=0;!w.isZero();A++)l=w.andln(255),w.iushrn(8),E[A]=l;for(;A<s;A++)E[A]=0}else{for(A=0;A<s-O;A++)E[A]=0;for(A=0;!w.isZero();A++)l=w.andln(255),w.iushrn(8),E[s-A-1]=l}return E},Math.clz32?n.prototype._countBits=function(ae){return 32-Math.clz32(ae)}:n.prototype._countBits=function(ae){var W=ae,se=0;return W>=4096&&(se+=13,W>>>=13),W>=64&&(se+=7,W>>>=7),W>=8&&(se+=4,W>>>=4),W>=2&&(se+=2,W>>>=2),se+W},n.prototype._zeroBits=function(ae){if(ae===0)return 26;var W=ae,se=0;return(8191&W)==0&&(se+=13,W>>>=13),(127&W)==0&&(se+=7,W>>>=7),(15&W)==0&&(se+=4,W>>>=4),(3&W)==0&&(se+=2,W>>>=2),(1&W)==0&&se++,se},n.prototype.bitLength=function(){var ae=(this||Ft).words[(this||Ft).length-1],W=this._countBits(ae);return 26*((this||Ft).length-1)+W},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ae=0,W=0;W<(this||Ft).length;W++){var se=this._zeroBits((this||Ft).words[W]);if(ae+=se,se!==26)break}return ae},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(ae){return(this||Ft).negative!==0?this.abs().inotn(ae).iaddn(1):this.clone()},n.prototype.fromTwos=function(ae){return this.testn(ae-1)?this.notn(ae).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Ft).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Ft).negative^=1),this||Ft},n.prototype.iuor=function(ae){for(;(this||Ft).length<ae.length;)(this||Ft).words[(this||Ft).length++]=0;for(var W=0;W<ae.length;W++)(this||Ft).words[W]=(this||Ft).words[W]|ae.words[W];return this.strip()},n.prototype.ior=function(ae){return r(((this||Ft).negative|ae.negative)==0),this.iuor(ae)},n.prototype.or=function(ae){return(this||Ft).length>ae.length?this.clone().ior(ae):ae.clone().ior(this||Ft)},n.prototype.uor=function(ae){return(this||Ft).length>ae.length?this.clone().iuor(ae):ae.clone().iuor(this||Ft)},n.prototype.iuand=function(ae){var W;W=(this||Ft).length>ae.length?ae:this||Ft;for(var se=0;se<W.length;se++)(this||Ft).words[se]=(this||Ft).words[se]&ae.words[se];return(this||Ft).length=W.length,this.strip()},n.prototype.iand=function(ae){return r(((this||Ft).negative|ae.negative)==0),this.iuand(ae)},n.prototype.and=function(ae){return(this||Ft).length>ae.length?this.clone().iand(ae):ae.clone().iand(this||Ft)},n.prototype.uand=function(ae){return(this||Ft).length>ae.length?this.clone().iuand(ae):ae.clone().iuand(this||Ft)},n.prototype.iuxor=function(ae){var W,se;(this||Ft).length>ae.length?(W=this||Ft,se=ae):(W=ae,se=this||Ft);for(var O=0;O<se.length;O++)(this||Ft).words[O]=W.words[O]^se.words[O];if((this||Ft)!==W)for(;O<W.length;O++)(this||Ft).words[O]=W.words[O];return(this||Ft).length=W.length,this.strip()},n.prototype.ixor=function(ae){return r(((this||Ft).negative|ae.negative)==0),this.iuxor(ae)},n.prototype.xor=function(ae){return(this||Ft).length>ae.length?this.clone().ixor(ae):ae.clone().ixor(this||Ft)},n.prototype.uxor=function(ae){return(this||Ft).length>ae.length?this.clone().iuxor(ae):ae.clone().iuxor(this||Ft)},n.prototype.inotn=function(ae){r(typeof ae=="number"&&ae>=0);var W=0|Math.ceil(ae/26),se=ae%26;this._expand(W),se>0&&W--;for(var O=0;O<W;O++)(this||Ft).words[O]=67108863&~(this||Ft).words[O];return se>0&&((this||Ft).words[O]=~(this||Ft).words[O]&67108863>>26-se),this.strip()},n.prototype.notn=function(ae){return this.clone().inotn(ae)},n.prototype.setn=function(ae,W){r(typeof ae=="number"&&ae>=0);var se=ae/26|0,O=ae%26;return this._expand(se+1),(this||Ft).words[se]=W?(this||Ft).words[se]|1<<O:(this||Ft).words[se]&~(1<<O),this.strip()},n.prototype.iadd=function(ae){var W,se,O;if((this||Ft).negative!==0&&ae.negative===0)return(this||Ft).negative=0,W=this.isub(ae),(this||Ft).negative^=1,this._normSign();if((this||Ft).negative===0&&ae.negative!==0)return ae.negative=0,W=this.isub(ae),ae.negative=1,W._normSign();(this||Ft).length>ae.length?(se=this||Ft,O=ae):(se=ae,O=this||Ft);for(var s=0,l=0;l<O.length;l++)W=(0|se.words[l])+(0|O.words[l])+s,(this||Ft).words[l]=67108863&W,s=W>>>26;for(;s!==0&&l<se.length;l++)W=(0|se.words[l])+s,(this||Ft).words[l]=67108863&W,s=W>>>26;if((this||Ft).length=se.length,s!==0)(this||Ft).words[(this||Ft).length]=s,(this||Ft).length++;else if(se!==(this||Ft))for(;l<se.length;l++)(this||Ft).words[l]=se.words[l];return this||Ft},n.prototype.add=function(ae){var W;return ae.negative!==0&&(this||Ft).negative===0?(ae.negative=0,W=this.sub(ae),ae.negative^=1,W):ae.negative===0&&(this||Ft).negative!==0?((this||Ft).negative=0,W=ae.sub(this||Ft),(this||Ft).negative=1,W):(this||Ft).length>ae.length?this.clone().iadd(ae):ae.clone().iadd(this||Ft)},n.prototype.isub=function(ae){if(ae.negative!==0){ae.negative=0;var W=this.iadd(ae);return ae.negative=1,W._normSign()}if((this||Ft).negative!==0)return(this||Ft).negative=0,this.iadd(ae),(this||Ft).negative=1,this._normSign();var se,O,s=this.cmp(ae);if(s===0)return(this||Ft).negative=0,(this||Ft).length=1,(this||Ft).words[0]=0,this||Ft;s>0?(se=this||Ft,O=ae):(se=ae,O=this||Ft);for(var l=0,A=0;A<O.length;A++)l=(W=(0|se.words[A])-(0|O.words[A])+l)>>26,(this||Ft).words[A]=67108863&W;for(;l!==0&&A<se.length;A++)l=(W=(0|se.words[A])+l)>>26,(this||Ft).words[A]=67108863&W;if(l===0&&A<se.length&&se!==(this||Ft))for(;A<se.length;A++)(this||Ft).words[A]=se.words[A];return(this||Ft).length=Math.max((this||Ft).length,A),se!==(this||Ft)&&((this||Ft).negative=1),this.strip()},n.prototype.sub=function(ae){return this.clone().isub(ae)};var T=function(ae,W,se){var O,s,l,A=ae.words,m=W.words,E=se.words,w=0,x=0|A[0],R=8191&x,u=x>>>13,C=0|A[1],U=8191&C,F=C>>>13,X=0|A[2],Ae=8191&X,he=X>>>13,$e=0|A[3],Ge=8191&$e,Re=$e>>>13,Se=0|A[4],ct=8191&Se,ze=Se>>>13,te=0|A[5],Ue=8191&te,oe=te>>>13,ge=0|A[6],Le=8191&ge,V=ge>>>13,Qe=0|A[7],_t=8191&Qe,rt=Qe>>>13,At=0|A[8],Er=8191&At,mt=At>>>13,Ht=0|A[9],zr=8191&Ht,ve=Ht>>>13,ie=0|m[0],_e=8191&ie,Be=ie>>>13,Ze=0|m[1],$t=8191&Ze,at=Ze>>>13,zt=0|m[2],Hr=8191&zt,St=zt>>>13,Yt=0|m[3],qr=8191&Yt,tr=Yt>>>13,hr=0|m[4],Cn=8191&hr,er=hr>>>13,pr=0|m[5],mn=8191&pr,Xt=pr>>>13,dr=0|m[6],wn=8191&dr,Qt=dr>>>13,fr=0|m[7],In=8191&fr,jt=fr>>>13,ar=0|m[8],ht=8191&ar,Xe=ar>>>13,et=0|m[9],ue=8191&et,je=et>>>13;se.negative=ae.negative^W.negative,se.length=19;var be=(w+(O=Math.imul(R,_e))|0)+((8191&(s=(s=Math.imul(R,Be))+Math.imul(u,_e)|0))<<13)|0;w=((l=Math.imul(u,Be))+(s>>>13)|0)+(be>>>26)|0,be&=67108863,O=Math.imul(U,_e),s=(s=Math.imul(U,Be))+Math.imul(F,_e)|0,l=Math.imul(F,Be);var qe=(w+(O=O+Math.imul(R,$t)|0)|0)+((8191&(s=(s=s+Math.imul(R,at)|0)+Math.imul(u,$t)|0))<<13)|0;w=((l=l+Math.imul(u,at)|0)+(s>>>13)|0)+(qe>>>26)|0,qe&=67108863,O=Math.imul(Ae,_e),s=(s=Math.imul(Ae,Be))+Math.imul(he,_e)|0,l=Math.imul(he,Be),O=O+Math.imul(U,$t)|0,s=(s=s+Math.imul(U,at)|0)+Math.imul(F,$t)|0,l=l+Math.imul(F,at)|0;var De=(w+(O=O+Math.imul(R,Hr)|0)|0)+((8191&(s=(s=s+Math.imul(R,St)|0)+Math.imul(u,Hr)|0))<<13)|0;w=((l=l+Math.imul(u,St)|0)+(s>>>13)|0)+(De>>>26)|0,De&=67108863,O=Math.imul(Ge,_e),s=(s=Math.imul(Ge,Be))+Math.imul(Re,_e)|0,l=Math.imul(Re,Be),O=O+Math.imul(Ae,$t)|0,s=(s=s+Math.imul(Ae,at)|0)+Math.imul(he,$t)|0,l=l+Math.imul(he,at)|0,O=O+Math.imul(U,Hr)|0,s=(s=s+Math.imul(U,St)|0)+Math.imul(F,Hr)|0,l=l+Math.imul(F,St)|0;var Je=(w+(O=O+Math.imul(R,qr)|0)|0)+((8191&(s=(s=s+Math.imul(R,tr)|0)+Math.imul(u,qr)|0))<<13)|0;w=((l=l+Math.imul(u,tr)|0)+(s>>>13)|0)+(Je>>>26)|0,Je&=67108863,O=Math.imul(ct,_e),s=(s=Math.imul(ct,Be))+Math.imul(ze,_e)|0,l=Math.imul(ze,Be),O=O+Math.imul(Ge,$t)|0,s=(s=s+Math.imul(Ge,at)|0)+Math.imul(Re,$t)|0,l=l+Math.imul(Re,at)|0,O=O+Math.imul(Ae,Hr)|0,s=(s=s+Math.imul(Ae,St)|0)+Math.imul(he,Hr)|0,l=l+Math.imul(he,St)|0,O=O+Math.imul(U,qr)|0,s=(s=s+Math.imul(U,tr)|0)+Math.imul(F,qr)|0,l=l+Math.imul(F,tr)|0;var Rt=(w+(O=O+Math.imul(R,Cn)|0)|0)+((8191&(s=(s=s+Math.imul(R,er)|0)+Math.imul(u,Cn)|0))<<13)|0;w=((l=l+Math.imul(u,er)|0)+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,O=Math.imul(Ue,_e),s=(s=Math.imul(Ue,Be))+Math.imul(oe,_e)|0,l=Math.imul(oe,Be),O=O+Math.imul(ct,$t)|0,s=(s=s+Math.imul(ct,at)|0)+Math.imul(ze,$t)|0,l=l+Math.imul(ze,at)|0,O=O+Math.imul(Ge,Hr)|0,s=(s=s+Math.imul(Ge,St)|0)+Math.imul(Re,Hr)|0,l=l+Math.imul(Re,St)|0,O=O+Math.imul(Ae,qr)|0,s=(s=s+Math.imul(Ae,tr)|0)+Math.imul(he,qr)|0,l=l+Math.imul(he,tr)|0,O=O+Math.imul(U,Cn)|0,s=(s=s+Math.imul(U,er)|0)+Math.imul(F,Cn)|0,l=l+Math.imul(F,er)|0;var Vt=(w+(O=O+Math.imul(R,mn)|0)|0)+((8191&(s=(s=s+Math.imul(R,Xt)|0)+Math.imul(u,mn)|0))<<13)|0;w=((l=l+Math.imul(u,Xt)|0)+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,O=Math.imul(Le,_e),s=(s=Math.imul(Le,Be))+Math.imul(V,_e)|0,l=Math.imul(V,Be),O=O+Math.imul(Ue,$t)|0,s=(s=s+Math.imul(Ue,at)|0)+Math.imul(oe,$t)|0,l=l+Math.imul(oe,at)|0,O=O+Math.imul(ct,Hr)|0,s=(s=s+Math.imul(ct,St)|0)+Math.imul(ze,Hr)|0,l=l+Math.imul(ze,St)|0,O=O+Math.imul(Ge,qr)|0,s=(s=s+Math.imul(Ge,tr)|0)+Math.imul(Re,qr)|0,l=l+Math.imul(Re,tr)|0,O=O+Math.imul(Ae,Cn)|0,s=(s=s+Math.imul(Ae,er)|0)+Math.imul(he,Cn)|0,l=l+Math.imul(he,er)|0,O=O+Math.imul(U,mn)|0,s=(s=s+Math.imul(U,Xt)|0)+Math.imul(F,mn)|0,l=l+Math.imul(F,Xt)|0;var br=(w+(O=O+Math.imul(R,wn)|0)|0)+((8191&(s=(s=s+Math.imul(R,Qt)|0)+Math.imul(u,wn)|0))<<13)|0;w=((l=l+Math.imul(u,Qt)|0)+(s>>>13)|0)+(br>>>26)|0,br&=67108863,O=Math.imul(_t,_e),s=(s=Math.imul(_t,Be))+Math.imul(rt,_e)|0,l=Math.imul(rt,Be),O=O+Math.imul(Le,$t)|0,s=(s=s+Math.imul(Le,at)|0)+Math.imul(V,$t)|0,l=l+Math.imul(V,at)|0,O=O+Math.imul(Ue,Hr)|0,s=(s=s+Math.imul(Ue,St)|0)+Math.imul(oe,Hr)|0,l=l+Math.imul(oe,St)|0,O=O+Math.imul(ct,qr)|0,s=(s=s+Math.imul(ct,tr)|0)+Math.imul(ze,qr)|0,l=l+Math.imul(ze,tr)|0,O=O+Math.imul(Ge,Cn)|0,s=(s=s+Math.imul(Ge,er)|0)+Math.imul(Re,Cn)|0,l=l+Math.imul(Re,er)|0,O=O+Math.imul(Ae,mn)|0,s=(s=s+Math.imul(Ae,Xt)|0)+Math.imul(he,mn)|0,l=l+Math.imul(he,Xt)|0,O=O+Math.imul(U,wn)|0,s=(s=s+Math.imul(U,Qt)|0)+Math.imul(F,wn)|0,l=l+Math.imul(F,Qt)|0;var Rr=(w+(O=O+Math.imul(R,In)|0)|0)+((8191&(s=(s=s+Math.imul(R,jt)|0)+Math.imul(u,In)|0))<<13)|0;w=((l=l+Math.imul(u,jt)|0)+(s>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,O=Math.imul(Er,_e),s=(s=Math.imul(Er,Be))+Math.imul(mt,_e)|0,l=Math.imul(mt,Be),O=O+Math.imul(_t,$t)|0,s=(s=s+Math.imul(_t,at)|0)+Math.imul(rt,$t)|0,l=l+Math.imul(rt,at)|0,O=O+Math.imul(Le,Hr)|0,s=(s=s+Math.imul(Le,St)|0)+Math.imul(V,Hr)|0,l=l+Math.imul(V,St)|0,O=O+Math.imul(Ue,qr)|0,s=(s=s+Math.imul(Ue,tr)|0)+Math.imul(oe,qr)|0,l=l+Math.imul(oe,tr)|0,O=O+Math.imul(ct,Cn)|0,s=(s=s+Math.imul(ct,er)|0)+Math.imul(ze,Cn)|0,l=l+Math.imul(ze,er)|0,O=O+Math.imul(Ge,mn)|0,s=(s=s+Math.imul(Ge,Xt)|0)+Math.imul(Re,mn)|0,l=l+Math.imul(Re,Xt)|0,O=O+Math.imul(Ae,wn)|0,s=(s=s+Math.imul(Ae,Qt)|0)+Math.imul(he,wn)|0,l=l+Math.imul(he,Qt)|0,O=O+Math.imul(U,In)|0,s=(s=s+Math.imul(U,jt)|0)+Math.imul(F,In)|0,l=l+Math.imul(F,jt)|0;var Dr=(w+(O=O+Math.imul(R,ht)|0)|0)+((8191&(s=(s=s+Math.imul(R,Xe)|0)+Math.imul(u,ht)|0))<<13)|0;w=((l=l+Math.imul(u,Xe)|0)+(s>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,O=Math.imul(zr,_e),s=(s=Math.imul(zr,Be))+Math.imul(ve,_e)|0,l=Math.imul(ve,Be),O=O+Math.imul(Er,$t)|0,s=(s=s+Math.imul(Er,at)|0)+Math.imul(mt,$t)|0,l=l+Math.imul(mt,at)|0,O=O+Math.imul(_t,Hr)|0,s=(s=s+Math.imul(_t,St)|0)+Math.imul(rt,Hr)|0,l=l+Math.imul(rt,St)|0,O=O+Math.imul(Le,qr)|0,s=(s=s+Math.imul(Le,tr)|0)+Math.imul(V,qr)|0,l=l+Math.imul(V,tr)|0,O=O+Math.imul(Ue,Cn)|0,s=(s=s+Math.imul(Ue,er)|0)+Math.imul(oe,Cn)|0,l=l+Math.imul(oe,er)|0,O=O+Math.imul(ct,mn)|0,s=(s=s+Math.imul(ct,Xt)|0)+Math.imul(ze,mn)|0,l=l+Math.imul(ze,Xt)|0,O=O+Math.imul(Ge,wn)|0,s=(s=s+Math.imul(Ge,Qt)|0)+Math.imul(Re,wn)|0,l=l+Math.imul(Re,Qt)|0,O=O+Math.imul(Ae,In)|0,s=(s=s+Math.imul(Ae,jt)|0)+Math.imul(he,In)|0,l=l+Math.imul(he,jt)|0,O=O+Math.imul(U,ht)|0,s=(s=s+Math.imul(U,Xe)|0)+Math.imul(F,ht)|0,l=l+Math.imul(F,Xe)|0;var Pr=(w+(O=O+Math.imul(R,ue)|0)|0)+((8191&(s=(s=s+Math.imul(R,je)|0)+Math.imul(u,ue)|0))<<13)|0;w=((l=l+Math.imul(u,je)|0)+(s>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,O=Math.imul(zr,$t),s=(s=Math.imul(zr,at))+Math.imul(ve,$t)|0,l=Math.imul(ve,at),O=O+Math.imul(Er,Hr)|0,s=(s=s+Math.imul(Er,St)|0)+Math.imul(mt,Hr)|0,l=l+Math.imul(mt,St)|0,O=O+Math.imul(_t,qr)|0,s=(s=s+Math.imul(_t,tr)|0)+Math.imul(rt,qr)|0,l=l+Math.imul(rt,tr)|0,O=O+Math.imul(Le,Cn)|0,s=(s=s+Math.imul(Le,er)|0)+Math.imul(V,Cn)|0,l=l+Math.imul(V,er)|0,O=O+Math.imul(Ue,mn)|0,s=(s=s+Math.imul(Ue,Xt)|0)+Math.imul(oe,mn)|0,l=l+Math.imul(oe,Xt)|0,O=O+Math.imul(ct,wn)|0,s=(s=s+Math.imul(ct,Qt)|0)+Math.imul(ze,wn)|0,l=l+Math.imul(ze,Qt)|0,O=O+Math.imul(Ge,In)|0,s=(s=s+Math.imul(Ge,jt)|0)+Math.imul(Re,In)|0,l=l+Math.imul(Re,jt)|0,O=O+Math.imul(Ae,ht)|0,s=(s=s+Math.imul(Ae,Xe)|0)+Math.imul(he,ht)|0,l=l+Math.imul(he,Xe)|0;var k=(w+(O=O+Math.imul(U,ue)|0)|0)+((8191&(s=(s=s+Math.imul(U,je)|0)+Math.imul(F,ue)|0))<<13)|0;w=((l=l+Math.imul(F,je)|0)+(s>>>13)|0)+(k>>>26)|0,k&=67108863,O=Math.imul(zr,Hr),s=(s=Math.imul(zr,St))+Math.imul(ve,Hr)|0,l=Math.imul(ve,St),O=O+Math.imul(Er,qr)|0,s=(s=s+Math.imul(Er,tr)|0)+Math.imul(mt,qr)|0,l=l+Math.imul(mt,tr)|0,O=O+Math.imul(_t,Cn)|0,s=(s=s+Math.imul(_t,er)|0)+Math.imul(rt,Cn)|0,l=l+Math.imul(rt,er)|0,O=O+Math.imul(Le,mn)|0,s=(s=s+Math.imul(Le,Xt)|0)+Math.imul(V,mn)|0,l=l+Math.imul(V,Xt)|0,O=O+Math.imul(Ue,wn)|0,s=(s=s+Math.imul(Ue,Qt)|0)+Math.imul(oe,wn)|0,l=l+Math.imul(oe,Qt)|0,O=O+Math.imul(ct,In)|0,s=(s=s+Math.imul(ct,jt)|0)+Math.imul(ze,In)|0,l=l+Math.imul(ze,jt)|0,O=O+Math.imul(Ge,ht)|0,s=(s=s+Math.imul(Ge,Xe)|0)+Math.imul(Re,ht)|0,l=l+Math.imul(Re,Xe)|0;var a=(w+(O=O+Math.imul(Ae,ue)|0)|0)+((8191&(s=(s=s+Math.imul(Ae,je)|0)+Math.imul(he,ue)|0))<<13)|0;w=((l=l+Math.imul(he,je)|0)+(s>>>13)|0)+(a>>>26)|0,a&=67108863,O=Math.imul(zr,qr),s=(s=Math.imul(zr,tr))+Math.imul(ve,qr)|0,l=Math.imul(ve,tr),O=O+Math.imul(Er,Cn)|0,s=(s=s+Math.imul(Er,er)|0)+Math.imul(mt,Cn)|0,l=l+Math.imul(mt,er)|0,O=O+Math.imul(_t,mn)|0,s=(s=s+Math.imul(_t,Xt)|0)+Math.imul(rt,mn)|0,l=l+Math.imul(rt,Xt)|0,O=O+Math.imul(Le,wn)|0,s=(s=s+Math.imul(Le,Qt)|0)+Math.imul(V,wn)|0,l=l+Math.imul(V,Qt)|0,O=O+Math.imul(Ue,In)|0,s=(s=s+Math.imul(Ue,jt)|0)+Math.imul(oe,In)|0,l=l+Math.imul(oe,jt)|0,O=O+Math.imul(ct,ht)|0,s=(s=s+Math.imul(ct,Xe)|0)+Math.imul(ze,ht)|0,l=l+Math.imul(ze,Xe)|0;var S=(w+(O=O+Math.imul(Ge,ue)|0)|0)+((8191&(s=(s=s+Math.imul(Ge,je)|0)+Math.imul(Re,ue)|0))<<13)|0;w=((l=l+Math.imul(Re,je)|0)+(s>>>13)|0)+(S>>>26)|0,S&=67108863,O=Math.imul(zr,Cn),s=(s=Math.imul(zr,er))+Math.imul(ve,Cn)|0,l=Math.imul(ve,er),O=O+Math.imul(Er,mn)|0,s=(s=s+Math.imul(Er,Xt)|0)+Math.imul(mt,mn)|0,l=l+Math.imul(mt,Xt)|0,O=O+Math.imul(_t,wn)|0,s=(s=s+Math.imul(_t,Qt)|0)+Math.imul(rt,wn)|0,l=l+Math.imul(rt,Qt)|0,O=O+Math.imul(Le,In)|0,s=(s=s+Math.imul(Le,jt)|0)+Math.imul(V,In)|0,l=l+Math.imul(V,jt)|0,O=O+Math.imul(Ue,ht)|0,s=(s=s+Math.imul(Ue,Xe)|0)+Math.imul(oe,ht)|0,l=l+Math.imul(oe,Xe)|0;var sn=(w+(O=O+Math.imul(ct,ue)|0)|0)+((8191&(s=(s=s+Math.imul(ct,je)|0)+Math.imul(ze,ue)|0))<<13)|0;w=((l=l+Math.imul(ze,je)|0)+(s>>>13)|0)+(sn>>>26)|0,sn&=67108863,O=Math.imul(zr,mn),s=(s=Math.imul(zr,Xt))+Math.imul(ve,mn)|0,l=Math.imul(ve,Xt),O=O+Math.imul(Er,wn)|0,s=(s=s+Math.imul(Er,Qt)|0)+Math.imul(mt,wn)|0,l=l+Math.imul(mt,Qt)|0,O=O+Math.imul(_t,In)|0,s=(s=s+Math.imul(_t,jt)|0)+Math.imul(rt,In)|0,l=l+Math.imul(rt,jt)|0,O=O+Math.imul(Le,ht)|0,s=(s=s+Math.imul(Le,Xe)|0)+Math.imul(V,ht)|0,l=l+Math.imul(V,Xe)|0;var Lr=(w+(O=O+Math.imul(Ue,ue)|0)|0)+((8191&(s=(s=s+Math.imul(Ue,je)|0)+Math.imul(oe,ue)|0))<<13)|0;w=((l=l+Math.imul(oe,je)|0)+(s>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,O=Math.imul(zr,wn),s=(s=Math.imul(zr,Qt))+Math.imul(ve,wn)|0,l=Math.imul(ve,Qt),O=O+Math.imul(Er,In)|0,s=(s=s+Math.imul(Er,jt)|0)+Math.imul(mt,In)|0,l=l+Math.imul(mt,jt)|0,O=O+Math.imul(_t,ht)|0,s=(s=s+Math.imul(_t,Xe)|0)+Math.imul(rt,ht)|0,l=l+Math.imul(rt,Xe)|0;var Wr=(w+(O=O+Math.imul(Le,ue)|0)|0)+((8191&(s=(s=s+Math.imul(Le,je)|0)+Math.imul(V,ue)|0))<<13)|0;w=((l=l+Math.imul(V,je)|0)+(s>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,O=Math.imul(zr,In),s=(s=Math.imul(zr,jt))+Math.imul(ve,In)|0,l=Math.imul(ve,jt),O=O+Math.imul(Er,ht)|0,s=(s=s+Math.imul(Er,Xe)|0)+Math.imul(mt,ht)|0,l=l+Math.imul(mt,Xe)|0;var ln=(w+(O=O+Math.imul(_t,ue)|0)|0)+((8191&(s=(s=s+Math.imul(_t,je)|0)+Math.imul(rt,ue)|0))<<13)|0;w=((l=l+Math.imul(rt,je)|0)+(s>>>13)|0)+(ln>>>26)|0,ln&=67108863,O=Math.imul(zr,ht),s=(s=Math.imul(zr,Xe))+Math.imul(ve,ht)|0,l=Math.imul(ve,Xe);var yt=(w+(O=O+Math.imul(Er,ue)|0)|0)+((8191&(s=(s=s+Math.imul(Er,je)|0)+Math.imul(mt,ue)|0))<<13)|0;w=((l=l+Math.imul(mt,je)|0)+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863;var ot=(w+(O=Math.imul(zr,ue))|0)+((8191&(s=(s=Math.imul(zr,je))+Math.imul(ve,ue)|0))<<13)|0;return w=((l=Math.imul(ve,je))+(s>>>13)|0)+(ot>>>26)|0,ot&=67108863,E[0]=be,E[1]=qe,E[2]=De,E[3]=Je,E[4]=Rt,E[5]=Vt,E[6]=br,E[7]=Rr,E[8]=Dr,E[9]=Pr,E[10]=k,E[11]=a,E[12]=S,E[13]=sn,E[14]=Lr,E[15]=Wr,E[16]=ln,E[17]=yt,E[18]=ot,w!==0&&(E[19]=w,se.length++),se};function M(ae,W,se){return new D().mulp(ae,W,se)}function D(ae,W){(this||Ft).x=ae,(this||Ft).y=W}Math.imul||(T=N),n.prototype.mulTo=function(ae,W){var se=(this||Ft).length+ae.length;return(this||Ft).length===10&&ae.length===10?T(this||Ft,ae,W):se<63?N(this||Ft,ae,W):se<1024?(function(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=67108863&A,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=(0|O.words[C])*(0|s.words[u]),F=67108863&U;x=67108863&(F=F+x|0),m+=(w=(w=w+(U/67108864|0)|0)+(F>>>26)|0)>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()})(this||Ft,ae,W):M(this||Ft,ae,W)},D.prototype.makeRBT=function(ae){for(var W=new Array(ae),se=n.prototype._countBits(ae)-1,O=0;O<ae;O++)W[O]=this.revBin(O,se,ae);return W},D.prototype.revBin=function(ae,W,se){if(ae===0||ae===se-1)return ae;for(var O=0,s=0;s<W;s++)O|=(1&ae)<<W-s-1,ae>>=1;return O},D.prototype.permute=function(ae,W,se,O,s,l){for(var A=0;A<l;A++)O[A]=W[ae[A]],s[A]=se[ae[A]]},D.prototype.transform=function(ae,W,se,O,s,l){this.permute(l,ae,W,se,O,s);for(var A=1;A<s;A<<=1)for(var m=A<<1,E=Math.cos(2*Math.PI/m),w=Math.sin(2*Math.PI/m),x=0;x<s;x+=m)for(var R=E,u=w,C=0;C<A;C++){var U=se[x+C],F=O[x+C],X=se[x+C+A],Ae=O[x+C+A],he=R*X-u*Ae;Ae=R*Ae+u*X,X=he,se[x+C]=U+X,O[x+C]=F+Ae,se[x+C+A]=U-X,O[x+C+A]=F-Ae,C!==m&&(he=E*R-w*u,u=E*u+w*R,R=he)}},D.prototype.guessLen13b=function(ae,W){var se=1|Math.max(W,ae),O=1&se,s=0;for(se=se/2|0;se;se>>>=1)s++;return 1<<s+1+O},D.prototype.conjugate=function(ae,W,se){if(!(se<=1))for(var O=0;O<se/2;O++){var s=ae[O];ae[O]=ae[se-O-1],ae[se-O-1]=s,s=W[O],W[O]=-W[se-O-1],W[se-O-1]=-s}},D.prototype.normalize13b=function(ae,W){for(var se=0,O=0;O<W/2;O++){var s=8192*Math.round(ae[2*O+1]/W)+Math.round(ae[2*O]/W)+se;ae[O]=67108863&s,se=s<67108864?0:s/67108864|0}return ae},D.prototype.convert13b=function(ae,W,se,O){for(var s=0,l=0;l<W;l++)s+=0|ae[l],se[2*l]=8191&s,s>>>=13,se[2*l+1]=8191&s,s>>>=13;for(l=2*W;l<O;++l)se[l]=0;r(s===0),r((-8192&s)==0)},D.prototype.stub=function(ae){for(var W=new Array(ae),se=0;se<ae;se++)W[se]=0;return W},D.prototype.mulp=function(ae,W,se){var O=2*this.guessLen13b(ae.length,W.length),s=this.makeRBT(O),l=this.stub(O),A=new Array(O),m=new Array(O),E=new Array(O),w=new Array(O),x=new Array(O),R=new Array(O),u=se.words;u.length=O,this.convert13b(ae.words,ae.length,A,O),this.convert13b(W.words,W.length,w,O),this.transform(A,l,m,E,O,s),this.transform(w,l,x,R,O,s);for(var C=0;C<O;C++){var U=m[C]*x[C]-E[C]*R[C];E[C]=m[C]*R[C]+E[C]*x[C],m[C]=U}return this.conjugate(m,E,O),this.transform(m,E,u,l,O,s),this.conjugate(u,l,O),this.normalize13b(u,O),se.negative=ae.negative^W.negative,se.length=ae.length+W.length,se.strip()},n.prototype.mul=function(ae){var W=new n(null);return W.words=new Array((this||Ft).length+ae.length),this.mulTo(ae,W)},n.prototype.mulf=function(ae){var W=new n(null);return W.words=new Array((this||Ft).length+ae.length),M(this||Ft,ae,W)},n.prototype.imul=function(ae){return this.clone().mulTo(ae,this||Ft)},n.prototype.imuln=function(ae){r(typeof ae=="number"),r(ae<67108864);for(var W=0,se=0;se<(this||Ft).length;se++){var O=(0|(this||Ft).words[se])*ae,s=(67108863&O)+(67108863&W);W>>=26,W+=O/67108864|0,W+=s>>>26,(this||Ft).words[se]=67108863&s}return W!==0&&((this||Ft).words[se]=W,(this||Ft).length++),this||Ft},n.prototype.muln=function(ae){return this.clone().imuln(ae)},n.prototype.sqr=function(){return this.mul(this||Ft)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(ae){var W=(function(l){for(var A=new Array(l.bitLength()),m=0;m<A.length;m++){var E=m/26|0,w=m%26;A[m]=(l.words[E]&1<<w)>>>w}return A})(ae);if(W.length===0)return new n(1);for(var se=this||Ft,O=0;O<W.length&&W[O]===0;O++,se=se.sqr());if(++O<W.length)for(var s=se.sqr();O<W.length;O++,s=s.sqr())W[O]!==0&&(se=se.mul(s));return se},n.prototype.iushln=function(ae){r(typeof ae=="number"&&ae>=0);var W,se=ae%26,O=(ae-se)/26,s=67108863>>>26-se<<26-se;if(se!==0){var l=0;for(W=0;W<(this||Ft).length;W++){var A=(this||Ft).words[W]&s,m=(0|(this||Ft).words[W])-A<<se;(this||Ft).words[W]=m|l,l=A>>>26-se}l&&((this||Ft).words[W]=l,(this||Ft).length++)}if(O!==0){for(W=(this||Ft).length-1;W>=0;W--)(this||Ft).words[W+O]=(this||Ft).words[W];for(W=0;W<O;W++)(this||Ft).words[W]=0;(this||Ft).length+=O}return this.strip()},n.prototype.ishln=function(ae){return r((this||Ft).negative===0),this.iushln(ae)},n.prototype.iushrn=function(ae,W,se){var O;r(typeof ae=="number"&&ae>=0),O=W?(W-W%26)/26:0;var s=ae%26,l=Math.min((ae-s)/26,(this||Ft).length),A=67108863^67108863>>>s<<s,m=se;if(O-=l,O=Math.max(0,O),m){for(var E=0;E<l;E++)m.words[E]=(this||Ft).words[E];m.length=l}if(l!==0)if((this||Ft).length>l)for((this||Ft).length-=l,E=0;E<(this||Ft).length;E++)(this||Ft).words[E]=(this||Ft).words[E+l];else(this||Ft).words[0]=0,(this||Ft).length=1;var w=0;for(E=(this||Ft).length-1;E>=0&&(w!==0||E>=O);E--){var x=0|(this||Ft).words[E];(this||Ft).words[E]=w<<26-s|x>>>s,w=x&A}return m&&w!==0&&(m.words[m.length++]=w),(this||Ft).length===0&&((this||Ft).words[0]=0,(this||Ft).length=1),this.strip()},n.prototype.ishrn=function(ae,W,se){return r((this||Ft).negative===0),this.iushrn(ae,W,se)},n.prototype.shln=function(ae){return this.clone().ishln(ae)},n.prototype.ushln=function(ae){return this.clone().iushln(ae)},n.prototype.shrn=function(ae){return this.clone().ishrn(ae)},n.prototype.ushrn=function(ae){return this.clone().iushrn(ae)},n.prototype.testn=function(ae){r(typeof ae=="number"&&ae>=0);var W=ae%26,se=(ae-W)/26,O=1<<W;return!((this||Ft).length<=se)&&!!((this||Ft).words[se]&O)},n.prototype.imaskn=function(ae){r(typeof ae=="number"&&ae>=0);var W=ae%26,se=(ae-W)/26;if(r((this||Ft).negative===0,"imaskn works only with positive numbers"),(this||Ft).length<=se)return this||Ft;if(W!==0&&se++,(this||Ft).length=Math.min(se,(this||Ft).length),W!==0){var O=67108863^67108863>>>W<<W;(this||Ft).words[(this||Ft).length-1]&=O}return this.strip()},n.prototype.maskn=function(ae){return this.clone().imaskn(ae)},n.prototype.iaddn=function(ae){return r(typeof ae=="number"),r(ae<67108864),ae<0?this.isubn(-ae):(this||Ft).negative!==0?(this||Ft).length===1&&(0|(this||Ft).words[0])<ae?((this||Ft).words[0]=ae-(0|(this||Ft).words[0]),(this||Ft).negative=0,this||Ft):((this||Ft).negative=0,this.isubn(ae),(this||Ft).negative=1,this||Ft):this._iaddn(ae)},n.prototype._iaddn=function(ae){(this||Ft).words[0]+=ae;for(var W=0;W<(this||Ft).length&&(this||Ft).words[W]>=67108864;W++)(this||Ft).words[W]-=67108864,W===(this||Ft).length-1?(this||Ft).words[W+1]=1:(this||Ft).words[W+1]++;return(this||Ft).length=Math.max((this||Ft).length,W+1),this||Ft},n.prototype.isubn=function(ae){if(r(typeof ae=="number"),r(ae<67108864),ae<0)return this.iaddn(-ae);if((this||Ft).negative!==0)return(this||Ft).negative=0,this.iaddn(ae),(this||Ft).negative=1,this||Ft;if((this||Ft).words[0]-=ae,(this||Ft).length===1&&(this||Ft).words[0]<0)(this||Ft).words[0]=-(this||Ft).words[0],(this||Ft).negative=1;else for(var W=0;W<(this||Ft).length&&(this||Ft).words[W]<0;W++)(this||Ft).words[W]+=67108864,(this||Ft).words[W+1]-=1;return this.strip()},n.prototype.addn=function(ae){return this.clone().iaddn(ae)},n.prototype.subn=function(ae){return this.clone().isubn(ae)},n.prototype.iabs=function(){return(this||Ft).negative=0,this||Ft},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(ae,W,se){var O,s,l=ae.length+se;this._expand(l);var A=0;for(O=0;O<ae.length;O++){s=(0|(this||Ft).words[O+se])+A;var m=(0|ae.words[O])*W;A=((s-=67108863&m)>>26)-(m/67108864|0),(this||Ft).words[O+se]=67108863&s}for(;O<(this||Ft).length-se;O++)A=(s=(0|(this||Ft).words[O+se])+A)>>26,(this||Ft).words[O+se]=67108863&s;if(A===0)return this.strip();for(r(A===-1),A=0,O=0;O<(this||Ft).length;O++)A=(s=-(0|(this||Ft).words[O])+A)>>26,(this||Ft).words[O]=67108863&s;return(this||Ft).negative=1,this.strip()},n.prototype._wordDiv=function(ae,W){var se=((this||Ft).length,ae.length),O=this.clone(),s=ae,l=0|s.words[s.length-1];(se=26-this._countBits(l))!==0&&(s=s.ushln(se),O.iushln(se),l=0|s.words[s.length-1]);var A,m=O.length-s.length;if(W!=="mod"){(A=new n(null)).length=m+1,A.words=new Array(A.length);for(var E=0;E<A.length;E++)A.words[E]=0}var w=O.clone()._ishlnsubmul(s,1,m);w.negative===0&&(O=w,A&&(A.words[m]=1));for(var x=m-1;x>=0;x--){var R=67108864*(0|O.words[s.length+x])+(0|O.words[s.length+x-1]);for(R=Math.min(R/l|0,67108863),O._ishlnsubmul(s,R,x);O.negative!==0;)R--,O.negative=0,O._ishlnsubmul(s,1,x),O.isZero()||(O.negative^=1);A&&(A.words[x]=R)}return A&&A.strip(),O.strip(),W!=="div"&&se!==0&&O.iushrn(se),{div:A||null,mod:O}},n.prototype.divmod=function(ae,W,se){return r(!ae.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:(this||Ft).negative!==0&&ae.negative===0?(l=this.neg().divmod(ae,W),W!=="mod"&&(O=l.div.neg()),W!=="div"&&(s=l.mod.neg(),se&&s.negative!==0&&s.iadd(ae)),{div:O,mod:s}):(this||Ft).negative===0&&ae.negative!==0?(l=this.divmod(ae.neg(),W),W!=="mod"&&(O=l.div.neg()),{div:O,mod:l.mod}):((this||Ft).negative&ae.negative)!=0?(l=this.neg().divmod(ae.neg(),W),W!=="div"&&(s=l.mod.neg(),se&&s.negative!==0&&s.isub(ae)),{div:l.div,mod:s}):ae.length>(this||Ft).length||this.cmp(ae)<0?{div:new n(0),mod:this||Ft}:ae.length===1?W==="div"?{div:this.divn(ae.words[0]),mod:null}:W==="mod"?{div:null,mod:new n(this.modn(ae.words[0]))}:{div:this.divn(ae.words[0]),mod:new n(this.modn(ae.words[0]))}:this._wordDiv(ae,W);var O,s,l},n.prototype.div=function(ae){return this.divmod(ae,"div",!1).div},n.prototype.mod=function(ae){return this.divmod(ae,"mod",!1).mod},n.prototype.umod=function(ae){return this.divmod(ae,"mod",!0).mod},n.prototype.divRound=function(ae){var W=this.divmod(ae);if(W.mod.isZero())return W.div;var se=W.div.negative!==0?W.mod.isub(ae):W.mod,O=ae.ushrn(1),s=ae.andln(1),l=se.cmp(O);return l<0||s===1&&l===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},n.prototype.modn=function(ae){r(ae<=67108863);for(var W=(1<<26)%ae,se=0,O=(this||Ft).length-1;O>=0;O--)se=(W*se+(0|(this||Ft).words[O]))%ae;return se},n.prototype.idivn=function(ae){r(ae<=67108863);for(var W=0,se=(this||Ft).length-1;se>=0;se--){var O=(0|(this||Ft).words[se])+67108864*W;(this||Ft).words[se]=O/ae|0,W=O%ae}return this.strip()},n.prototype.divn=function(ae){return this.clone().idivn(ae)},n.prototype.egcd=function(ae){r(ae.negative===0),r(!ae.isZero());var W=this||Ft,se=ae.clone();W=W.negative!==0?W.umod(ae):W.clone();for(var O=new n(1),s=new n(0),l=new n(0),A=new n(1),m=0;W.isEven()&&se.isEven();)W.iushrn(1),se.iushrn(1),++m;for(var E=se.clone(),w=W.clone();!W.isZero();){for(var x=0,R=1;(W.words[0]&R)==0&&x<26;++x,R<<=1);if(x>0)for(W.iushrn(x);x-- >0;)(O.isOdd()||s.isOdd())&&(O.iadd(E),s.isub(w)),O.iushrn(1),s.iushrn(1);for(var u=0,C=1;(se.words[0]&C)==0&&u<26;++u,C<<=1);if(u>0)for(se.iushrn(u);u-- >0;)(l.isOdd()||A.isOdd())&&(l.iadd(E),A.isub(w)),l.iushrn(1),A.iushrn(1);W.cmp(se)>=0?(W.isub(se),O.isub(l),s.isub(A)):(se.isub(W),l.isub(O),A.isub(s))}return{a:l,b:A,gcd:se.iushln(m)}},n.prototype._invmp=function(ae){r(ae.negative===0),r(!ae.isZero());var W=this||Ft,se=ae.clone();W=W.negative!==0?W.umod(ae):W.clone();for(var O,s=new n(1),l=new n(0),A=se.clone();W.cmpn(1)>0&&se.cmpn(1)>0;){for(var m=0,E=1;(W.words[0]&E)==0&&m<26;++m,E<<=1);if(m>0)for(W.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(A),s.iushrn(1);for(var w=0,x=1;(se.words[0]&x)==0&&w<26;++w,x<<=1);if(w>0)for(se.iushrn(w);w-- >0;)l.isOdd()&&l.iadd(A),l.iushrn(1);W.cmp(se)>=0?(W.isub(se),s.isub(l)):(se.isub(W),l.isub(s))}return(O=W.cmpn(1)===0?s:l).cmpn(0)<0&&O.iadd(ae),O},n.prototype.gcd=function(ae){if(this.isZero())return ae.abs();if(ae.isZero())return this.abs();var W=this.clone(),se=ae.clone();W.negative=0,se.negative=0;for(var O=0;W.isEven()&&se.isEven();O++)W.iushrn(1),se.iushrn(1);for(;;){for(;W.isEven();)W.iushrn(1);for(;se.isEven();)se.iushrn(1);var s=W.cmp(se);if(s<0){var l=W;W=se,se=l}else if(s===0||se.cmpn(1)===0)break;W.isub(se)}return se.iushln(O)},n.prototype.invm=function(ae){return this.egcd(ae).a.umod(ae)},n.prototype.isEven=function(){return(1&(this||Ft).words[0])==0},n.prototype.isOdd=function(){return(1&(this||Ft).words[0])==1},n.prototype.andln=function(ae){return(this||Ft).words[0]&ae},n.prototype.bincn=function(ae){r(typeof ae=="number");var W=ae%26,se=(ae-W)/26,O=1<<W;if((this||Ft).length<=se)return this._expand(se+1),(this||Ft).words[se]|=O,this||Ft;for(var s=O,l=se;s!==0&&l<(this||Ft).length;l++){var A=0|(this||Ft).words[l];s=(A+=s)>>>26,A&=67108863,(this||Ft).words[l]=A}return s!==0&&((this||Ft).words[l]=s,(this||Ft).length++),this||Ft},n.prototype.isZero=function(){return(this||Ft).length===1&&(this||Ft).words[0]===0},n.prototype.cmpn=function(ae){var W,se=ae<0;if((this||Ft).negative!==0&&!se)return-1;if((this||Ft).negative===0&&se)return 1;if(this.strip(),(this||Ft).length>1)W=1;else{se&&(ae=-ae),r(ae<=67108863,"Number is too big");var O=0|(this||Ft).words[0];W=O===ae?0:O<ae?-1:1}return(this||Ft).negative!==0?0|-W:W},n.prototype.cmp=function(ae){if((this||Ft).negative!==0&&ae.negative===0)return-1;if((this||Ft).negative===0&&ae.negative!==0)return 1;var W=this.ucmp(ae);return(this||Ft).negative!==0?0|-W:W},n.prototype.ucmp=function(ae){if((this||Ft).length>ae.length)return 1;if((this||Ft).length<ae.length)return-1;for(var W=0,se=(this||Ft).length-1;se>=0;se--){var O=0|(this||Ft).words[se],s=0|ae.words[se];if(O!==s){O<s?W=-1:O>s&&(W=1);break}}return W},n.prototype.gtn=function(ae){return this.cmpn(ae)===1},n.prototype.gt=function(ae){return this.cmp(ae)===1},n.prototype.gten=function(ae){return this.cmpn(ae)>=0},n.prototype.gte=function(ae){return this.cmp(ae)>=0},n.prototype.ltn=function(ae){return this.cmpn(ae)===-1},n.prototype.lt=function(ae){return this.cmp(ae)===-1},n.prototype.lten=function(ae){return this.cmpn(ae)<=0},n.prototype.lte=function(ae){return this.cmp(ae)<=0},n.prototype.eqn=function(ae){return this.cmpn(ae)===0},n.prototype.eq=function(ae){return this.cmp(ae)===0},n.red=function(ae){return new le(ae)},n.prototype.toRed=function(ae){return r(!(this||Ft).red,"Already a number in reduction context"),r((this||Ft).negative===0,"red works only with positives"),ae.convertTo(this||Ft)._forceRed(ae)},n.prototype.fromRed=function(){return r((this||Ft).red,"fromRed works only with numbers in reduction context"),(this||Ft).red.convertFrom(this||Ft)},n.prototype._forceRed=function(ae){return(this||Ft).red=ae,this||Ft},n.prototype.forceRed=function(ae){return r(!(this||Ft).red,"Already a number in reduction context"),this._forceRed(ae)},n.prototype.redAdd=function(ae){return r((this||Ft).red,"redAdd works only with red numbers"),(this||Ft).red.add(this||Ft,ae)},n.prototype.redIAdd=function(ae){return r((this||Ft).red,"redIAdd works only with red numbers"),(this||Ft).red.iadd(this||Ft,ae)},n.prototype.redSub=function(ae){return r((this||Ft).red,"redSub works only with red numbers"),(this||Ft).red.sub(this||Ft,ae)},n.prototype.redISub=function(ae){return r((this||Ft).red,"redISub works only with red numbers"),(this||Ft).red.isub(this||Ft,ae)},n.prototype.redShl=function(ae){return r((this||Ft).red,"redShl works only with red numbers"),(this||Ft).red.shl(this||Ft,ae)},n.prototype.redMul=function(ae){return r((this||Ft).red,"redMul works only with red numbers"),(this||Ft).red._verify2(this||Ft,ae),(this||Ft).red.mul(this||Ft,ae)},n.prototype.redIMul=function(ae){return r((this||Ft).red,"redMul works only with red numbers"),(this||Ft).red._verify2(this||Ft,ae),(this||Ft).red.imul(this||Ft,ae)},n.prototype.redSqr=function(){return r((this||Ft).red,"redSqr works only with red numbers"),(this||Ft).red._verify1(this||Ft),(this||Ft).red.sqr(this||Ft)},n.prototype.redISqr=function(){return r((this||Ft).red,"redISqr works only with red numbers"),(this||Ft).red._verify1(this||Ft),(this||Ft).red.isqr(this||Ft)},n.prototype.redSqrt=function(){return r((this||Ft).red,"redSqrt works only with red numbers"),(this||Ft).red._verify1(this||Ft),(this||Ft).red.sqrt(this||Ft)},n.prototype.redInvm=function(){return r((this||Ft).red,"redInvm works only with red numbers"),(this||Ft).red._verify1(this||Ft),(this||Ft).red.invm(this||Ft)},n.prototype.redNeg=function(){return r((this||Ft).red,"redNeg works only with red numbers"),(this||Ft).red._verify1(this||Ft),(this||Ft).red.neg(this||Ft)},n.prototype.redPow=function(ae){return r((this||Ft).red&&!ae.red,"redPow(normalNum)"),(this||Ft).red._verify1(this||Ft),(this||Ft).red.pow(this||Ft,ae)};var P={k256:null,p224:null,p192:null,p25519:null};function G(ae,W){(this||Ft).name=ae,(this||Ft).p=new n(W,16),(this||Ft).n=(this||Ft).p.bitLength(),(this||Ft).k=new n(1).iushln((this||Ft).n).isub((this||Ft).p),(this||Ft).tmp=this._tmp()}function q(){G.call(this||Ft,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Y(){G.call(this||Ft,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){G.call(this||Ft,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ce(){G.call(this||Ft,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(ae){if(typeof ae=="string"){var W=n._prime(ae);(this||Ft).m=W.p,(this||Ft).prime=W}else r(ae.gtn(1),"modulus must be greater than 1"),(this||Ft).m=ae,(this||Ft).prime=null}function pe(ae){le.call(this||Ft,ae),(this||Ft).shift=(this||Ft).m.bitLength(),(this||Ft).shift%26!=0&&((this||Ft).shift+=26-(this||Ft).shift%26),(this||Ft).r=new n(1).iushln((this||Ft).shift),(this||Ft).r2=this.imod((this||Ft).r.sqr()),(this||Ft).rinv=(this||Ft).r._invmp((this||Ft).m),(this||Ft).minv=(this||Ft).rinv.mul((this||Ft).r).isubn(1).div((this||Ft).m),(this||Ft).minv=(this||Ft).minv.umod((this||Ft).r),(this||Ft).minv=(this||Ft).r.sub((this||Ft).minv)}G.prototype._tmp=function(){var ae=new n(null);return ae.words=new Array(Math.ceil((this||Ft).n/13)),ae},G.prototype.ireduce=function(ae){var W,se=ae;do this.split(se,(this||Ft).tmp),W=(se=(se=this.imulK(se)).iadd((this||Ft).tmp)).bitLength();while(W>(this||Ft).n);var O=W<(this||Ft).n?-1:se.ucmp((this||Ft).p);return O===0?(se.words[0]=0,se.length=1):O>0?se.isub((this||Ft).p):se.strip(),se},G.prototype.split=function(ae,W){ae.iushrn((this||Ft).n,0,W)},G.prototype.imulK=function(ae){return ae.imul((this||Ft).k)},i(q,G),q.prototype.split=function(ae,W){for(var se=Math.min(ae.length,9),O=0;O<se;O++)W.words[O]=ae.words[O];if(W.length=se,ae.length<=9)return ae.words[0]=0,ae.length=1,void 0;var s=ae.words[9];for(W.words[W.length++]=4194303&s,O=10;O<ae.length;O++){var l=0|ae.words[O];ae.words[O-10]=(4194303&l)<<4|s>>>22,s=l}s>>>=22,ae.words[O-10]=s,s===0&&ae.length>10?ae.length-=10:ae.length-=9},q.prototype.imulK=function(ae){ae.words[ae.length]=0,ae.words[ae.length+1]=0,ae.length+=2;for(var W=0,se=0;se<ae.length;se++){var O=0|ae.words[se];W+=977*O,ae.words[se]=67108863&W,W=64*O+(W/67108864|0)}return ae.words[ae.length-1]===0&&(ae.length--,ae.words[ae.length-1]===0&&ae.length--),ae},i(Y,G),i(ne,G),i(ce,G),ce.prototype.imulK=function(ae){for(var W=0,se=0;se<ae.length;se++){var O=19*(0|ae.words[se])+W,s=67108863&O;O>>>=26,ae.words[se]=s,W=O}return W!==0&&(ae.words[ae.length++]=W),ae},n._prime=function(ae){if(P[ae])return P[ae];var W;if(ae==="k256")W=new q;else if(ae==="p224")W=new Y;else if(ae==="p192")W=new ne;else{if(ae!=="p25519")throw new Error("Unknown prime "+ae);W=new ce}return P[ae]=W,W},le.prototype._verify1=function(ae){r(ae.negative===0,"red works only with positives"),r(ae.red,"red works only with red numbers")},le.prototype._verify2=function(ae,W){r((ae.negative|W.negative)==0,"red works only with positives"),r(ae.red&&ae.red===W.red,"red works only with red numbers")},le.prototype.imod=function(ae){return(this||Ft).prime?(this||Ft).prime.ireduce(ae)._forceRed(this||Ft):ae.umod((this||Ft).m)._forceRed(this||Ft)},le.prototype.neg=function(ae){return ae.isZero()?ae.clone():(this||Ft).m.sub(ae)._forceRed(this||Ft)},le.prototype.add=function(ae,W){this._verify2(ae,W);var se=ae.add(W);return se.cmp((this||Ft).m)>=0&&se.isub((this||Ft).m),se._forceRed(this||Ft)},le.prototype.iadd=function(ae,W){this._verify2(ae,W);var se=ae.iadd(W);return se.cmp((this||Ft).m)>=0&&se.isub((this||Ft).m),se},le.prototype.sub=function(ae,W){this._verify2(ae,W);var se=ae.sub(W);return se.cmpn(0)<0&&se.iadd((this||Ft).m),se._forceRed(this||Ft)},le.prototype.isub=function(ae,W){this._verify2(ae,W);var se=ae.isub(W);return se.cmpn(0)<0&&se.iadd((this||Ft).m),se},le.prototype.shl=function(ae,W){return this._verify1(ae),this.imod(ae.ushln(W))},le.prototype.imul=function(ae,W){return this._verify2(ae,W),this.imod(ae.imul(W))},le.prototype.mul=function(ae,W){return this._verify2(ae,W),this.imod(ae.mul(W))},le.prototype.isqr=function(ae){return this.imul(ae,ae.clone())},le.prototype.sqr=function(ae){return this.mul(ae,ae)},le.prototype.sqrt=function(ae){if(ae.isZero())return ae.clone();var W=(this||Ft).m.andln(3);if(r(W%2==1),W===3){var se=(this||Ft).m.add(new n(1)).iushrn(2);return this.pow(ae,se)}for(var O=(this||Ft).m.subn(1),s=0;!O.isZero()&&O.andln(1)===0;)s++,O.iushrn(1);r(!O.isZero());var l=new n(1).toRed(this||Ft),A=l.redNeg(),m=(this||Ft).m.subn(1).iushrn(1),E=(this||Ft).m.bitLength();for(E=new n(2*E*E).toRed(this||Ft);this.pow(E,m).cmp(A)!==0;)E.redIAdd(A);for(var w=this.pow(E,O),x=this.pow(ae,O.addn(1).iushrn(1)),R=this.pow(ae,O),u=s;R.cmp(l)!==0;){for(var C=R,U=0;C.cmp(l)!==0;U++)C=C.redSqr();r(U<u);var F=this.pow(w,new n(1).iushln(u-U-1));x=x.redMul(F),w=F.redSqr(),R=R.redMul(w),u=U}return x},le.prototype.invm=function(ae){var W=ae._invmp((this||Ft).m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},le.prototype.pow=function(ae,W){if(W.isZero())return new n(1).toRed(this||Ft);if(W.cmpn(1)===0)return ae.clone();var se=new Array(16);se[0]=new n(1).toRed(this||Ft),se[1]=ae;for(var O=2;O<se.length;O++)se[O]=this.mul(se[O-1],ae);var s=se[0],l=0,A=0,m=W.bitLength()%26;for(m===0&&(m=26),O=W.length-1;O>=0;O--){for(var E=W.words[O],w=m-1;w>=0;w--){var x=E>>w&1;s!==se[0]&&(s=this.sqr(s)),x!==0||l!==0?(l<<=1,l|=x,(++A===4||O===0&&w===0)&&(s=this.mul(s,se[l]),A=0,l=0)):A=0}m=26}return s},le.prototype.convertTo=function(ae){var W=ae.umod((this||Ft).m);return W===ae?W.clone():W},le.prototype.convertFrom=function(ae){var W=ae.clone();return W.red=null,W},n.mont=function(ae){return new pe(ae)},i(pe,le),pe.prototype.convertTo=function(ae){return this.imod(ae.ushln((this||Ft).shift))},pe.prototype.convertFrom=function(ae){var W=this.imod(ae.mul((this||Ft).rinv));return W.red=null,W},pe.prototype.imul=function(ae,W){if(ae.isZero()||W.isZero())return ae.words[0]=0,ae.length=1,ae;var se=ae.imul(W),O=se.maskn((this||Ft).shift).mul((this||Ft).minv).imaskn((this||Ft).shift).mul((this||Ft).m),s=se.isub(O).iushrn((this||Ft).shift),l=s;return s.cmp((this||Ft).m)>=0?l=s.isub((this||Ft).m):s.cmpn(0)<0&&(l=s.iadd((this||Ft).m)),l._forceRed(this||Ft)},pe.prototype.mul=function(ae,W){if(ae.isZero()||W.isZero())return new n(0)._forceRed(this||Ft);var se=ae.mul(W),O=se.maskn((this||Ft).shift).mul((this||Ft).minv).imaskn((this||Ft).shift).mul((this||Ft).m),s=se.isub(O).iushrn((this||Ft).shift),l=s;return s.cmp((this||Ft).m)>=0?l=s.isub((this||Ft).m):s.cmpn(0)<0&&(l=s.iadd((this||Ft).m)),l._forceRed(this||Ft)},pe.prototype.invm=function(ae){return this.imod(ae._invmp((this||Ft).m).mul((this||Ft).r2))._forceRed(this||Ft)}})(cqe,sqe);ef=cqe.exports,n4t=Object.freeze({}),Tq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;if((uqe=function(e){return iae||(iae=new ZS(null)),iae.generate(e)}).Rand=ZS,ZS.prototype.generate=function(e){return this._rand(e)},ZS.prototype._rand=function(e){if((this||Tq).rand.getBytes)return(this||Tq).rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=(this||Tq).rand.getByte();return t},typeof self=="object")self.crypto&&self.crypto.getRandomValues?ZS.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?ZS.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(ZS.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(oae=n4t,typeof oae.randomBytes!="function")throw new Error("Not supported");ZS.prototype._rand=function(e){return oae.randomBytes(e)}}catch(e){}Due=uqe,fqe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,X8=ef,i4t=Due;dqe=Z8,Z8.create=function(e){return new Z8(e)},Z8.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do var i=new X8((this||fqe).rand.generate(r));while(i.cmp(e)>=0);return i},Z8.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},Z8.prototype.test=function(e,t,r){var i=e.bitLength(),n=X8.mont(e),o=new X8(1).toRed(n);t||(t=Math.max(1,i/48|0));for(var d=e.subn(1),g=0;!d.testn(g);g++);for(var y=e.shrn(g),_=d.toRed(n);t>0;t--){var I=this._randrange(new X8(2),d);r&&r(I);var N=I.toRed(n).redPow(y);if(N.cmp(o)!==0&&N.cmp(_)!==0){for(var T=1;T<g;T++){if((N=N.redSqr()).cmp(o)===0)return!1;if(N.cmp(_)===0)break}if(T===g)return!1}}return!0},Z8.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=X8.mont(e),n=new X8(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),d=0;!o.testn(d);d++);for(var g=e.shrn(d),y=o.toRed(i);t>0;t--){var _=this._randrange(new X8(2),o),I=e.gcd(_);if(I.cmpn(1)!==0)return I;var N=_.toRed(i).redPow(g);if(N.cmp(n)!==0&&N.cmp(y)!==0){for(var T=1;T<d;T++){if((N=N.redSqr()).cmp(n)===0)return N.fromRed().subn(1).gcd(e);if(N.cmp(y)===0)break}if(T===d)return(N=N.redSqr()).fromRed().subn(1).gcd(e)}}return!1};lqe=dqe,o4t=PO;hqe=sae,sae.simpleSieve=nue,sae.fermatTest=iue;Nh=ef,a4t=new Nh(24),pLe=new lqe,s4t=new Nh(1),rue=new Nh(2),c4t=new Nh(5),u4t=(new Nh(16),new Nh(8),new Nh(10)),d4t=new Nh(3),f4t=(new Nh(7),new Nh(11)),gLe=new Nh(4),aae=(new Nh(12),null);pqe=hqe,ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Yy=Vo.Buffer,Vg=ef,_Le=new lqe,h4t=new Vg(24),A4t=new Vg(11),p4t=new Vg(10),g4t=new Vg(3),_4t=new Vg(7),mLe=pqe,m4t=PO;Aqe=wv;qG={};Object.defineProperty(wv.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||ks)._primeCode!="number"&&((this||ks)._primeCode=(function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in qG)return qG[i];var n,o=0;if(e.isEven()||!mLe.simpleSieve||!mLe.fermatTest(e)||!_Le.test(e))return o+=1,o+=r==="02"||r==="05"?8:4,qG[i]=o,o;switch(_Le.test(e.shrn(1))||(o+=2),r){case"02":e.mod(h4t).cmp(A4t)&&(o+=8);break;case"05":(n=e.mod(p4t)).cmp(g4t)&&n.cmp(_4t)&&(o+=8);break;default:o+=4}return qG[i]=o,o})((this||ks).__prime,(this||ks).__gen)),(this||ks)._primeCode}}),wv.prototype.generateKeys=function(){return(this||ks)._priv||((this||ks)._priv=new Vg(m4t((this||ks)._primeLen))),(this||ks)._pub=(this||ks)._gen.toRed((this||ks)._prime).redPow((this||ks)._priv).fromRed(),this.getPublicKey()},wv.prototype.computeSecret=function(e){var t=(e=(e=new Vg(e)).toRed((this||ks)._prime)).redPow((this||ks)._priv).fromRed(),r=new Yy(t.toArray()),i=this.getPrime();if(r.length<i.length){var n=new Yy(i.length-r.length);n.fill(0),r=Yy.concat([n,r])}return r},wv.prototype.getPublicKey=function(e){return VG((this||ks)._pub,e)},wv.prototype.getPrivateKey=function(e){return VG((this||ks)._priv,e)},wv.prototype.getPrime=function(e){return VG((this||ks).__prime,e)},wv.prototype.getGenerator=function(e){return VG((this||ks)._gen,e)},wv.prototype.setGenerator=function(e,t){return t=t||"utf8",Yy.isBuffer(e)||(e=new Yy(e,t)),(this||ks).__gen=e,(this||ks)._gen=new Vg(e),this||ks};E4t=Aqe,EO={},jS=Vo.Buffer,v4t=pqe,yLe={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},cae=E4t,R4t={binary:!0,hex:!0,base64:!0};EO.DiffieHellmanGroup=EO.createDiffieHellmanGroup=EO.getDiffieHellman=function(e){var t=new jS(yLe[e].prime,"hex"),r=new jS(yLe[e].gen,"hex");return new cae(t,r)},EO.createDiffieHellman=EO.DiffieHellman=function e(t,r,i,n){return jS.isBuffer(r)||R4t[r]===void 0?e(t,"binary",r,i):(r=r||"binary",n=n||"binary",i=i||new jS([2]),jS.isBuffer(i)||(i=new jS(i,n)),typeof t=="number"?new cae(v4t(t,i),i,!0):(jS.isBuffer(t)||(t=new jS(t,r)),new cae(t,i,!0)))};S4t=Vo.Buffer,y6=ef,bLe=PO;gqe=ELe,ELe.getr=_qe;kue=gqe,Pue={},JG=Pue;JG.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e!="string"){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16));else for(i=0;i<e.length;i++){var n=e.charCodeAt(i),o=n>>8,d=255&n;o?r.push(o,d):r.push(d)}return r},JG.zero2=mqe,JG.toHex=vLe,JG.encode=function(e,t){return t==="hex"?vLe(e):e};Q1={},cm=Q1,I4t=ef,C4t=zg,zG=Pue;cm.assert=C4t,cm.toArray=zG.toArray,cm.zero2=zG.zero2,cm.toHex=zG.toHex,cm.encode=zG.encode,cm.getNAF=function(e,t,r){var i=new Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<<t+1,o=e.clone(),d=0;d<i.length;d++){var g,y=o.andln(n-1);o.isOdd()?(g=y>(n>>1)-1?(n>>1)-y:y,o.isubn(g)):g=0,i[d]=g,o.iushrn(1)}return i},cm.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var o,d,g,y=e.andln(3)+i&3,_=t.andln(3)+n&3;y===3&&(y=-1),_===3&&(_=-1),(1&y)==0?o=0:o=(g=e.andln(7)+i&7)!==3&&g!==5||_!==2?y:-y,r[0].push(o),(1&_)==0?d=0:d=(g=t.andln(7)+n&7)!==3&&g!==5||y!==2?_:-_,r[1].push(d),2*i===o+1&&(i=1-i),2*n===d+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},cm.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return this[i]!==void 0?this[i]:this[i]=r.call(this)}},cm.parseBytes=function(e){return typeof e=="string"?cm.toArray(e,"hex"):e},cm.intFromLE=function(e){return new I4t(e,"hex","le")};Qq=ef,oue=Q1,w4t=oue.assert;yqe=Bq,Bq.prototype._importDER=function(e,t){e=oue.toArray(e,t);var r=new O4t;if(e[r.place++]!==48||uae(e,r)+r.place!==e.length||e[r.place++]!==2)return!1;var i=uae(e,r),n=e.slice(r.place,i+r.place);if(r.place+=i,e[r.place++]!==2)return!1;var o=uae(e,r);if(e.length!==o+r.place)return!1;var d=e.slice(r.place,o+r.place);return n[0]===0&&128&n[1]&&(n=n.slice(1)),d[0]===0&&128&d[1]&&(d=d.slice(1)),this.r=new Qq(n),this.s=new Qq(d),this.recoveryParam=null,!0},Bq.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=RLe(t),r=RLe(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];dae(i,t.length),(i=i.concat(t)).push(2),dae(i,r.length);var n=i.concat(r),o=[48];return dae(o,n.length),o=o.concat(n),oue.encode(o,e)};N4t=yqe,Ss={},x4t=zg,T4t=ca;Ss.inherits=T4t,Ss.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var i=0,n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?r[i++]=o:o<2048?(r[i++]=o>>6|192,r[i++]=63&o|128):B4t(e,n)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++n)),r[i++]=o>>18|240,r[i++]=o>>12&63|128,r[i++]=o>>6&63|128,r[i++]=63&o|128):(r[i++]=o>>12|224,r[i++]=o>>6&63|128,r[i++]=63&o|128)}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r},Ss.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=ILe(e[r].toString(16));return t},Ss.htonl=SLe,Ss.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];t==="little"&&(n=SLe(n)),r+=CLe(n.toString(16))}return r},Ss.zero2=ILe,Ss.zero8=CLe,Ss.join32=function(e,t,r,i){var n=r-t;x4t(n%4==0);for(var o=new Array(n/4),d=0,g=t;d<o.length;d++,g+=4){var y;y=i==="big"?e[g]<<24|e[g+1]<<16|e[g+2]<<8|e[g+3]:e[g+3]<<24|e[g+2]<<16|e[g+1]<<8|e[g],o[d]=y>>>0}return o},Ss.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var o=e[i];t==="big"?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},Ss.rotr32=function(e,t){return e>>>t|e<<32-t},Ss.rotl32=function(e,t){return e<<t|e>>>32-t},Ss.sum32=function(e,t){return e+t>>>0},Ss.sum32_3=function(e,t,r){return e+t+r>>>0},Ss.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},Ss.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},Ss.sum64=function(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,d=(o<i?1:0)+r+n;e[t]=d>>>0,e[t+1]=o},Ss.sum64_hi=function(e,t,r,i){return(t+i>>>0<t?1:0)+e+r>>>0},Ss.sum64_lo=function(e,t,r,i){return t+i>>>0},Ss.sum64_4_hi=function(e,t,r,i,n,o,d,g){var y=0,_=t;return y+=(_=_+i>>>0)<t?1:0,y+=(_=_+o>>>0)<o?1:0,e+r+n+d+(y+=(_=_+g>>>0)<g?1:0)>>>0},Ss.sum64_4_lo=function(e,t,r,i,n,o,d,g){return t+i+o+g>>>0},Ss.sum64_5_hi=function(e,t,r,i,n,o,d,g,y,_){var I=0,N=t;return I+=(N=N+i>>>0)<t?1:0,I+=(N=N+o>>>0)<o?1:0,I+=(N=N+g>>>0)<g?1:0,e+r+n+d+y+(I+=(N=N+_>>>0)<_?1:0)>>>0},Ss.sum64_5_lo=function(e,t,r,i,n,o,d,g,y,_){return t+i+o+g+_>>>0},Ss.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},Ss.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},Ss.shr64_hi=function(e,t,r){return e>>>r},Ss.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0};UO={},wLe=Ss,M4t=zg;UO.BlockHash=KG,KG.prototype.update=function(e,t){if(e=wLe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=wLe.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},KG.prototype.digest=function(e){return this.update(this._pad()),M4t(this.pending===null),this._digest(e)},KG.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=new Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,o=8;o<this.padLength;o++)i[n++]=0;return i};wp=Ss,D4t=UO,k4t=zg,Wy=wp.rotr64_hi,Xy=wp.rotr64_lo,Eqe=wp.shr64_hi,vqe=wp.shr64_lo,e6=wp.sum64,fae=wp.sum64_hi,lae=wp.sum64_lo,P4t=wp.sum64_4_hi,L4t=wp.sum64_4_lo,U4t=wp.sum64_5_hi,F4t=wp.sum64_5_lo,Rqe=D4t.BlockHash,Q4t=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];wp.inherits(hm,Rqe),bqe=hm,hm.blockSize=1024,hm.outSize=512,hm.hmacStrength=192,hm.padLength=128,hm.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=X4t(r[i-4],r[i-3]),o=Z4t(r[i-4],r[i-3]),d=r[i-14],g=r[i-13],y=Y4t(r[i-30],r[i-29]),_=W4t(r[i-30],r[i-29]),I=r[i-32],N=r[i-31];r[i]=P4t(n,o,d,g,y,_,I,N),r[i+1]=L4t(n,o,d,g,y,_,I,N)}},hm.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],d=this.h[3],g=this.h[4],y=this.h[5],_=this.h[6],I=this.h[7],N=this.h[8],T=this.h[9],M=this.h[10],D=this.h[11],P=this.h[12],G=this.h[13],q=this.h[14],Y=this.h[15];k4t(this.k.length===r.length);for(var ne=0;ne<r.length;ne+=2){var ce=q,le=Y,pe=K4t(N,T),ae=$4t(N,T),W=H4t(N,T,M,D,P),se=G4t(N,T,M,D,P,G),O=this.k[ne],s=this.k[ne+1],l=r[ne],A=r[ne+1],m=U4t(ce,le,pe,ae,W,se,O,s,l,A),E=F4t(ce,le,pe,ae,W,se,O,s,l,A);ce=J4t(i,n),le=z4t(i,n),pe=q4t(i,n,o,d,g),ae=V4t(i,n,o,d,g,y);var w=fae(ce,le,pe,ae),x=lae(ce,le,pe,ae);q=P,Y=G,P=M,G=D,M=N,D=T,N=fae(_,I,m,E),T=lae(I,I,m,E),_=g,I=y,g=o,y=d,o=i,d=n,i=fae(m,E,w,x),n=lae(m,E,w,x)}e6(this.h,0,i,n),e6(this.h,2,o,d),e6(this.h,4,g,y),e6(this.h,6,_,I),e6(this.h,8,N,T),e6(this.h,10,M,D),e6(this.h,12,P,G),e6(this.h,14,q,Y)},hm.prototype._digest=function(e){return e==="hex"?wp.toHex32(this.h,"big"):wp.split32(this.h,"big")};Sqe=bqe,Vy={},Qy=Ss.rotr32;Vy.ft_1=function(e,t,r,i){return e===0?OLe(t,r,i):e===1||e===3?xLe(t,r,i):e===2?NLe(t,r,i):void 0},Vy.ch32=OLe,Vy.maj32=NLe,Vy.p32=xLe,Vy.s0_256=function(e){return Qy(e,2)^Qy(e,13)^Qy(e,22)},Vy.s1_256=function(e){return Qy(e,6)^Qy(e,11)^Qy(e,25)},Vy.g0_256=function(e){return Qy(e,7)^Qy(e,18)^e>>>3},Vy.g1_256=function(e){return Qy(e,17)^Qy(e,19)^e>>>10};CO=Ss,j4t=UO,FO=Vy,eCt=zg,um=CO.sum32,tCt=CO.sum32_4,rCt=CO.sum32_5,nCt=FO.ch32,iCt=FO.maj32,oCt=FO.s0_256,aCt=FO.s1_256,sCt=FO.g0_256,cCt=FO.g1_256,Cqe=j4t.BlockHash,uCt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];CO.inherits(Jy,Cqe),Iqe=Jy,Jy.blockSize=512,Jy.outSize=256,Jy.hmacStrength=192,Jy.padLength=64,Jy.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=tCt(cCt(r[i-2]),r[i-7],sCt(r[i-15]),r[i-16]);var n=this.h[0],o=this.h[1],d=this.h[2],g=this.h[3],y=this.h[4],_=this.h[5],I=this.h[6],N=this.h[7];for(eCt(this.k.length===r.length),i=0;i<r.length;i++){var T=rCt(N,aCt(y),nCt(y,_,I),this.k[i],r[i]),M=um(oCt(n),iCt(n,o,d));N=I,I=_,_=y,y=um(g,T),g=d,d=o,o=n,n=um(T,M)}this.h[0]=um(this.h[0],n),this.h[1]=um(this.h[1],o),this.h[2]=um(this.h[2],d),this.h[3]=um(this.h[3],g),this.h[4]=um(this.h[4],y),this.h[5]=um(this.h[5],_),this.h[6]=um(this.h[6],I),this.h[7]=um(this.h[7],N)},Jy.prototype._digest=function(e){return e==="hex"?CO.toHex32(this.h,"big"):CO.split32(this.h,"big")};wqe=Iqe,wO=Ss,dCt=UO,fCt=Vy,hae=wO.rotl32,ZM=wO.sum32,lCt=wO.sum32_5,hCt=fCt.ft_1,Nqe=dCt.BlockHash,ACt=[1518500249,1859775393,2400959708,3395469782];wO.inherits(zy,Nqe),Oqe=zy,zy.blockSize=512,zy.outSize=160,zy.hmacStrength=80,zy.padLength=64,zy.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=hae(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],o=this.h[1],d=this.h[2],g=this.h[3],y=this.h[4];for(i=0;i<r.length;i++){var _=~~(i/20),I=lCt(hae(n,5),hCt(_,o,d,g),y,r[i],ACt[_]);y=g,g=d,d=hae(o,30),o=n,n=I}this.h[0]=ZM(this.h[0],n),this.h[1]=ZM(this.h[1],o),this.h[2]=ZM(this.h[2],d),this.h[3]=ZM(this.h[3],g),this.h[4]=ZM(this.h[4],y)},zy.prototype._digest=function(e){return e==="hex"?wO.toHex32(this.h,"big"):wO.split32(this.h,"big")};pCt=Oqe,Aae=Ss,Tqe=wqe;Aae.inherits(Nv,Tqe),xqe=Nv,Nv.blockSize=512,Nv.outSize=224,Nv.hmacStrength=192,Nv.padLength=64,Nv.prototype._digest=function(e){return e==="hex"?Aae.toHex32(this.h.slice(0,7),"big"):Aae.split32(this.h.slice(0,7),"big")};gCt=xqe,pae=Ss,Mqe=Sqe;pae.inherits(xv,Mqe),Bqe=xv,xv.blockSize=1024,xv.outSize=384,xv.hmacStrength=192,xv.padLength=128,xv.prototype._digest=function(e){return e==="hex"?pae.toHex32(this.h.slice(0,12),"big"):pae.split32(this.h.slice(0,12),"big")};_Ct=Bqe,vO={};vO.sha1=pCt,vO.sha224=gCt,vO.sha256=wqe,vO.sha384=_Ct,vO.sha512=Sqe;Dqe={},y4=Ss,mCt=UO,$G=y4.rotl32,TLe=y4.sum32,jM=y4.sum32_3,BLe=y4.sum32_4,kqe=mCt.BlockHash;y4.inherits(Ky,kqe),Dqe.ripemd160=Ky,Ky.blockSize=512,Ky.outSize=160,Ky.hmacStrength=192,Ky.padLength=64,Ky.prototype._update=function(e,t){for(var r=this.h[0],i=this.h[1],n=this.h[2],o=this.h[3],d=this.h[4],g=r,y=i,_=n,I=o,N=d,T=0;T<80;T++){var M=TLe($G(BLe(r,MLe(T,i,n,o),e[ECt[T]+t],yCt(T)),RCt[T]),d);r=d,d=o,o=$G(n,10),n=i,i=M,M=TLe($G(BLe(g,MLe(79-T,y,_,I),e[vCt[T]+t],bCt(T)),SCt[T]),N),g=N,N=I,I=$G(_,10),_=y,y=M}M=jM(this.h[1],n,I),this.h[1]=jM(this.h[2],o,N),this.h[2]=jM(this.h[3],d,g),this.h[3]=jM(this.h[4],r,y),this.h[4]=jM(this.h[0],i,_),this.h[0]=M},Ky.prototype._digest=function(e){return e==="hex"?y4.toHex32(this.h,"little"):y4.split32(this.h,"little")};ECt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],vCt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],RCt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],SCt=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ICt=Ss,CCt=zg;Pqe=RO,RO.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),CCt(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},RO.prototype.update=function(e,t){return this.inner.update(e,t),this},RO.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};wCt=Pqe,tV={},Ql=tV;Ql.utils=Ss,Ql.common=UO,Ql.sha=vO,Ql.ripemd=Dqe,Ql.hmac=wCt,Ql.sha1=Ql.sha.sha1,Ql.sha256=Ql.sha.sha256,Ql.sha224=Ql.sha.sha224,Ql.sha384=Ql.sha.sha384,Ql.sha512=Ql.sha.sha512,Ql.ripemd160=Ql.ripemd.ripemd160;OCt=tV,_4=Pue,Uqe=zg;Lqe=b6,b6.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},b6.prototype._hmac=function(){return new OCt.hmac(this.hash,this.K)},b6.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},b6.prototype.reseed=function(e,t,r,i){typeof t!="string"&&(i=r,r=t,t=null),e=_4.toArray(e,t),r=_4.toArray(r,i),Uqe(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},b6.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(i=r,r=t,t=null),r&&(r=_4.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var o=n.slice(0,e);return this._update(r),this._reseed++,_4.encode(o,t)};NCt=Lqe,j8=ef,wD=Q1,YG=wD.getNAF,xCt=wD.getJSF,WG=wD.assert;Fqe=t6,t6.prototype.point=function(){throw new Error("Not implemented")},t6.prototype.validate=function(){throw new Error("Not implemented")},t6.prototype._fixedNafMul=function(e,t){WG(e.precomputed);var r=e._getDoubles(),i=YG(t,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;for(var o=[],d=0;d<i.length;d+=r.step){var g=0;for(t=d+r.step-1;t>=d;t--)g=(g<<1)+i[t];o.push(g)}for(var y=this.jpoint(null,null,null),_=this.jpoint(null,null,null),I=n;I>0;I--){for(d=0;d<o.length;d++)(g=o[d])===I?_=_.mixedAdd(r.points[d]):g===-I&&(_=_.mixedAdd(r.points[d].neg()));y=y.add(_)}return y.toP()},t6.prototype._wnafMul=function(e,t){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=YG(t,r,this._bitLength),d=this.jpoint(null,null,null),g=o.length-1;g>=0;g--){for(t=0;g>=0&&o[g]===0;g--)t++;if(g>=0&&t++,d=d.dblp(t),g<0)break;var y=o[g];WG(y!==0),d=e.type==="affine"?y>0?d.mixedAdd(n[y-1>>1]):d.mixedAdd(n[-y-1>>1].neg()):y>0?d.add(n[y-1>>1]):d.add(n[-y-1>>1].neg())}return e.type==="affine"?d.toP():d},t6.prototype._wnafMulAdd=function(e,t,r,i,n){for(var o=this._wnafT1,d=this._wnafT2,g=this._wnafT3,y=0,_=0;_<i;_++){var I=(ae=t[_])._getNAFPoints(e);o[_]=I.wnd,d[_]=I.points}for(_=i-1;_>=1;_-=2){var N=_-1,T=_;if(o[N]===1&&o[T]===1){var M=[t[N],null,null,t[T]];t[N].y.cmp(t[T].y)===0?(M[1]=t[N].add(t[T]),M[2]=t[N].toJ().mixedAdd(t[T].neg())):t[N].y.cmp(t[T].y.redNeg())===0?(M[1]=t[N].toJ().mixedAdd(t[T]),M[2]=t[N].add(t[T].neg())):(M[1]=t[N].toJ().mixedAdd(t[T]),M[2]=t[N].toJ().mixedAdd(t[T].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],P=xCt(r[N],r[T]);y=Math.max(P[0].length,y),g[N]=new Array(y),g[T]=new Array(y);for(var G=0;G<y;G++){var q=0|P[0][G],Y=0|P[1][G];g[N][G]=D[3*(q+1)+(Y+1)],g[T][G]=0,d[N]=M}}else g[N]=YG(r[N],o[N],this._bitLength),g[T]=YG(r[T],o[T],this._bitLength),y=Math.max(g[N].length,y),y=Math.max(g[T].length,y)}var ne=this.jpoint(null,null,null),ce=this._wnafT4;for(_=y;_>=0;_--){for(var le=0;_>=0;){var pe=!0;for(G=0;G<i;G++)ce[G]=0|g[G][_],ce[G]!==0&&(pe=!1);if(!pe)break;le++,_--}if(_>=0&&le++,ne=ne.dblp(le),_<0)break;for(G=0;G<i;G++){var ae,W=ce[G];W!==0&&(W>0?ae=d[G][W-1>>1]:W<0&&(ae=d[G][-W-1>>1].neg()),ne=ae.type==="affine"?ne.mixedAdd(ae):ne.add(ae))}}for(_=0;_<i;_++)d[_]=null;return n?ne:ne.toP()},t6.BasePoint=Pg,Pg.prototype.eq=function(){throw new Error("Not implemented")},Pg.prototype.validate=function(){return this.curve.validate(this)},t6.prototype.decodePoint=function(e,t){e=wD.toArray(e,t);var r=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*r)return e[0]===6?WG(e[e.length-1]%2==0):e[0]===7&&WG(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((e[0]===2||e[0]===3)&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),e[0]===3);throw new Error("Unknown point format")},Pg.prototype.encodeCompressed=function(e){return this.encode(e,!0)},Pg.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},Pg.prototype.encode=function(e,t){return wD.encode(this._encode(t),e)},Pg.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},Pg.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},Pg.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var o=0;o<e;o++)i=i.dbl();r.push(i)}return{step:e,points:r}},Pg.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=r===1?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},Pg.prototype._getBeta=function(){return null},Pg.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};rV=Fqe,ad=ef,gae=ca,OO=rV,TCt=Q1.assert;gae(Lg,OO),Qqe=Lg,Lg.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var t,r;if(e.beta)t=new ad(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=(t=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new ad(e.lambda,16);else{var n=this._getEndoRoots(this.n);this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))===0?r=n[0]:(r=n[1],TCt(this.g.mul(r).x.cmp(this.g.x.redMul(t))===0))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(o){return{a:new ad(o.a,16),b:new ad(o.b,16)}})):this._getEndoBasis(r)}}},Lg.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:ad.mont(e),r=new ad(2).toRed(t).redInvm(),i=r.redNeg(),n=new ad(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},Lg.prototype._getEndoBasis=function(e){for(var t,r,i,n,o,d,g,y,_,I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),N=e,T=this.n.clone(),M=new ad(1),D=new ad(0),P=new ad(0),G=new ad(1),q=0;N.cmpn(0)!==0;){var Y=T.div(N);y=T.sub(Y.mul(N)),_=P.sub(Y.mul(M));var ne=G.sub(Y.mul(D));if(!i&&y.cmp(I)<0)t=g.neg(),r=M,i=y.neg(),n=_;else if(i&&++q==2)break;g=y,T=N,N=y,P=M,M=_,G=D,D=ne}o=y.neg(),d=_;var ce=i.sqr().add(n.sqr());return o.sqr().add(d.sqr()).cmp(ce)>=0&&(o=t,d=r),i.negative&&(i=i.neg(),n=n.neg()),o.negative&&(o=o.neg(),d=d.neg()),[{a:i,b:n},{a:o,b:d}]},Lg.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),d=n.mul(r.a),g=o.mul(i.a),y=n.mul(r.b),_=o.mul(i.b);return{k1:e.sub(d).sub(g),k2:y.add(_).neg()}},Lg.prototype.pointFromX=function(e,t){(e=new ad(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(i.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},Lg.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return r.redSqr().redISub(n).cmpn(0)===0},Lg.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o<e.length;o++){var d=this._endoSplit(t[o]),g=e[o],y=g._getBeta();d.k1.negative&&(d.k1.ineg(),g=g.neg(!0)),d.k2.negative&&(d.k2.ineg(),y=y.neg(!0)),i[2*o]=g,i[2*o+1]=y,n[2*o]=d.k1,n[2*o+1]=d.k2}for(var _=this._wnafMulAdd(1,i,n,2*o,r),I=0;I<2*o;I++)i[I]=null,n[I]=null;return _},gae(el,OO.BasePoint),Lg.prototype.point=function(e,t,r){return new el(this,e,t,r)},Lg.prototype.pointFromJSON=function(e,t){return el.fromJSON(this,e,t)},el.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(n){return r.point(n.x.redMul(r.endo.beta),n.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},el.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},el.fromJSON=function(e,t,r){typeof t=="string"&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;function n(d){return e.point(d[0],d[1],r)}var o=t[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},el.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},el.prototype.isInfinity=function(){return this.inf},el.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},el.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),d=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,d)},el.prototype.getX=function(){return this.x.fromRed()},el.prototype.getY=function(){return this.y.fromRed()},el.prototype.mul=function(e){return e=new ad(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},el.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},el.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},el.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},el.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(n){return n.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},el.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},gae(Hl,OO.BasePoint),Lg.prototype.jpoint=function(e,t,r){return new Hl(this,e,t,r)},Hl.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},Hl.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Hl.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),d=e.y.redMul(r.redMul(this.z)),g=i.redSub(n),y=o.redSub(d);if(g.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=g.redSqr(),I=_.redMul(g),N=i.redMul(_),T=y.redSqr().redIAdd(I).redISub(N).redISub(N),M=y.redMul(N.redISub(T)).redISub(o.redMul(I)),D=this.z.redMul(e.z).redMul(g);return this.curve.jpoint(T,M,D)},Hl.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),d=r.redSub(i),g=n.redSub(o);if(d.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=d.redSqr(),_=y.redMul(d),I=r.redMul(y),N=g.redSqr().redIAdd(_).redISub(I).redISub(I),T=g.redMul(I.redISub(N)).redISub(n.redMul(_)),M=this.z.redMul(d);return this.curve.jpoint(N,T,M)},Hl.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var i=this.curve.a,n=this.curve.tinv,o=this.x,d=this.y,g=this.z,y=g.redSqr().redSqr(),_=d.redAdd(d);for(r=0;r<e;r++){var I=o.redSqr(),N=_.redSqr(),T=N.redSqr(),M=I.redAdd(I).redIAdd(I).redIAdd(i.redMul(y)),D=o.redMul(N),P=M.redSqr().redISub(D.redAdd(D)),G=D.redISub(P),q=M.redMul(G);q=q.redIAdd(q).redISub(T);var Y=_.redMul(g);r+1<e&&(y=y.redMul(T)),o=P,g=Y,_=q}return this.curve.jpoint(o,_.redMul(n),g)},Hl.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Hl.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),d=this.x.redAdd(n).redSqr().redISub(i).redISub(o);d=d.redIAdd(d);var g=i.redAdd(i).redIAdd(i),y=g.redSqr().redISub(d).redISub(d),_=o.redIAdd(o);_=(_=_.redIAdd(_)).redIAdd(_),e=y,t=g.redMul(d.redISub(y)).redISub(_),r=this.y.redAdd(this.y)}else{var I=this.x.redSqr(),N=this.y.redSqr(),T=N.redSqr(),M=this.x.redAdd(N).redSqr().redISub(I).redISub(T);M=M.redIAdd(M);var D=I.redAdd(I).redIAdd(I),P=D.redSqr(),G=T.redIAdd(T);G=(G=G.redIAdd(G)).redIAdd(G),e=P.redISub(M).redISub(M),t=D.redMul(M.redISub(e)).redISub(G),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},Hl.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),d=this.x.redAdd(n).redSqr().redISub(i).redISub(o);d=d.redIAdd(d);var g=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),y=g.redSqr().redISub(d).redISub(d);e=y;var _=o.redIAdd(o);_=(_=_.redIAdd(_)).redIAdd(_),t=g.redMul(d.redISub(y)).redISub(_),r=this.y.redAdd(this.y)}else{var I=this.z.redSqr(),N=this.y.redSqr(),T=this.x.redMul(N),M=this.x.redSub(I).redMul(this.x.redAdd(I));M=M.redAdd(M).redIAdd(M);var D=T.redIAdd(T),P=(D=D.redIAdd(D)).redAdd(D);e=M.redSqr().redISub(P),r=this.y.redAdd(this.z).redSqr().redISub(N).redISub(I);var G=N.redSqr();G=(G=(G=G.redIAdd(G)).redIAdd(G)).redIAdd(G),t=M.redMul(D.redISub(e)).redISub(G)}return this.curve.jpoint(e,t,r)},Hl.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),o=t.redSqr(),d=r.redSqr(),g=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(n)),y=t.redAdd(t),_=(y=y.redIAdd(y)).redMul(d),I=g.redSqr().redISub(_.redAdd(_)),N=_.redISub(I),T=d.redSqr();T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var M=g.redMul(N).redISub(T),D=r.redAdd(r).redMul(i);return this.curve.jpoint(I,M,D)},Hl.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),o=n.redSqr(),d=this.x.redAdd(t).redSqr().redISub(e).redISub(i),g=(d=(d=(d=d.redIAdd(d)).redAdd(d).redIAdd(d)).redISub(o)).redSqr(),y=i.redIAdd(i);y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var _=n.redIAdd(d).redSqr().redISub(o).redISub(g).redISub(y),I=t.redMul(_);I=(I=I.redIAdd(I)).redIAdd(I);var N=this.x.redMul(g).redISub(I);N=(N=N.redIAdd(N)).redIAdd(N);var T=this.y.redMul(_.redMul(y.redISub(_)).redISub(d.redMul(g)));T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var M=this.z.redAdd(d).redSqr().redISub(r).redISub(g);return this.curve.jpoint(N,T,M)},Hl.prototype.mul=function(e,t){return e=new ad(e,t),this.curve._wnafMul(this,e)},Hl.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var i=t.redMul(this.z),n=r.redMul(e.z);return this.y.redMul(n).redISub(e.y.redMul(i)).cmpn(0)===0},Hl.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(r)===0)return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),this.x.cmp(r)===0)return!0}},Hl.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Hl.prototype.isInfinity=function(){return this.z.cmpn(0)===0};BCt=Qqe,SO=ef,DLe=ca,Hq=rV,MCt=Q1;DLe(AO,Hq),Hqe=AO,AO.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return i.redSqrt().redSqr().cmp(i)===0},DLe(tl,Hq.BasePoint),AO.prototype.decodePoint=function(e,t){return this.point(MCt.toArray(e,t),1)},AO.prototype.point=function(e,t){return new tl(this,e,t)},AO.prototype.pointFromJSON=function(e){return tl.fromJSON(this,e)},tl.prototype.precompute=function(){},tl.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},tl.fromJSON=function(e,t){return new tl(e,t[0],t[1]||e.one)},tl.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},tl.prototype.isInfinity=function(){return this.z.cmpn(0)===0},tl.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},tl.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},tl.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),d=n.redMul(i),g=t.z.redMul(o.redAdd(d).redSqr()),y=t.x.redMul(o.redISub(d).redSqr());return this.curve.point(g,y)},tl.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];t.cmpn(0)!==0;t.iushrn(1))n.push(t.andln(1));for(var o=n.length-1;o>=0;o--)n[o]===0?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},tl.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},tl.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},tl.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},tl.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},tl.prototype.getX=function(){return this.normalize(),this.x.fromRed()};DCt=Hqe,Mv=ef,kLe=ca,Gq=rV,kCt=Q1.assert;kLe(Hy,Gq),Gqe=Hy,Hy.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},Hy.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},Hy.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},Hy.prototype.pointFromX=function(e,t){(e=new Mv(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=i.redMul(n.redInvm()),d=o.redSqrt();if(d.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var g=d.fromRed().isOdd();return(t&&!g||!t&&g)&&(d=d.redNeg()),this.point(e,d)},Hy.prototype.pointFromY=function(e,t){(e=new Mv(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(n.redInvm());if(o.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var d=o.redSqrt();if(d.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");return d.fromRed().isOdd()!==t&&(d=d.redNeg()),this.point(d,e)},Hy.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return i.cmp(n)===0},kLe(qu,Gq.BasePoint),Hy.prototype.pointFromJSON=function(e){return qu.fromJSON(this,e)},Hy.prototype.point=function(e,t,r,i){return new qu(this,e,t,r,i)},qu.fromJSON=function(e,t){return new qu(e,t[0],t[1],t[2])},qu.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},qu.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},qu.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),d=o.redSub(r),g=i.redSub(t),y=n.redMul(d),_=o.redMul(g),I=n.redMul(g),N=d.redMul(o);return this.curve.point(y,_,N,I)},qu.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var d=(_=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=i.redSub(n).redSub(o).redMul(d.redSub(this.curve.two)),t=d.redMul(_.redSub(o)),r=d.redSqr().redSub(d).redSub(d);else{var g=this.z.redSqr(),y=d.redSub(g).redISub(g);e=i.redSub(n).redISub(o).redMul(y),t=d.redMul(_.redSub(o)),r=d.redMul(y)}}else{var _=n.redAdd(o);g=this.curve._mulC(this.z).redSqr(),y=_.redSub(g).redSub(g),e=this.curve._mulC(i.redISub(_)).redMul(y),t=this.curve._mulC(_).redMul(n.redISub(o)),r=_.redMul(y)}return this.curve.point(e,t,r)},qu.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},qu.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),d=n.redSub(i),g=n.redAdd(i),y=r.redAdd(t),_=o.redMul(d),I=g.redMul(y),N=o.redMul(y),T=d.redMul(g);return this.curve.point(_,I,T,N)},qu.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),d=this.y.redMul(e.y),g=this.curve.d.redMul(o).redMul(d),y=n.redSub(g),_=n.redAdd(g),I=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(d),N=i.redMul(y).redMul(I);return this.curve.twisted?(t=i.redMul(_).redMul(d.redSub(this.curve._mulA(o))),r=y.redMul(_)):(t=i.redMul(_).redMul(d.redSub(o)),r=this.curve._mulC(y).redMul(_)),this.curve.point(N,t,r)},qu.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},qu.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},qu.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},qu.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},qu.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},qu.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},qu.prototype.getX=function(){return this.normalize(),this.x.fromRed()},qu.prototype.getY=function(){return this.normalize(),this.y.fromRed()},qu.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},qu.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),this.x.cmp(t)===0)return!0}},qu.prototype.toP=qu.prototype.normalize,qu.prototype.mixedAdd=qu.prototype.add;PCt=Gqe,Lue={},XG=Lue;XG.base=rV,XG.short=BCt,XG.mont=DCt,XG.edwards=PCt;LCt={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}},nV={},sue=nV,f6=tV,_ae=Lue,PLe=Q1.assert;sue.PresetCurve=qqe,l6("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:f6.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l6("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:f6.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l6("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:f6.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l6("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:f6.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l6("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:f6.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l6("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f6.sha256,gRed:!1,g:["9"]}),l6("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f6.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{aue=LCt}catch(e){aue=void 0}l6("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:f6.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",aue]});UCt=ef,LLe=Q1.assert;Vqe=Ch,Ch.fromPublic=function(e,t,r){return t instanceof Ch?t:new Ch(e,{pub:t,pubEnc:r})},Ch.fromPrivate=function(e,t,r){return t instanceof Ch?t:new Ch(e,{priv:t,privEnc:r})},Ch.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},Ch.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},Ch.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},Ch.prototype._importPrivate=function(e,t){this.priv=new UCt(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},Ch.prototype._importPublic=function(e,t){if(e.x||e.y)return this.ec.curve.type==="mont"?LLe(e.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||LLe(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y),void 0;this.pub=this.ec.curve.decodePoint(e,t)},Ch.prototype.derive=function(e){return e.mul(this.priv).getX()},Ch.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},Ch.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},Ch.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};FCt=Vqe,e4=ef,ULe=NCt,mae=nV,QCt=Due,zqe=Q1.assert,yae=FCt,ZG=N4t;Jqe=qg,qg.prototype.keyPair=function(e){return new yae(this,e)},qg.prototype.keyFromPrivate=function(e,t){return yae.fromPrivate(this,e,t)},qg.prototype.keyFromPublic=function(e,t){return yae.fromPublic(this,e,t)},qg.prototype.genKeyPair=function(e){e||(e={});for(var t=new ULe({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||QCt(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new e4(2));;){var n=new e4(t.generate(r));if(!(n.cmp(i)>0))return n.iaddn(1),this.keyFromPrivate(n)}},qg.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},qg.prototype.sign=function(e,t,r,i){typeof r=="object"&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new e4(e,16));for(var n=this.n.byteLength(),o=t.getPrivate().toArray("be",n),d=e.toArray("be",n),g=new ULe({hash:this.hash,entropy:o,nonce:d,pers:i.pers,persEnc:i.persEnc||"utf8"}),y=this.n.sub(new e4(1)),_=0;;_++){var I=i.k?i.k(_):new e4(g.generate(this.n.byteLength()));if(!((I=this._truncateToN(I,!0)).cmpn(1)<=0||I.cmp(y)>=0)){var N=this.g.mul(I);if(!N.isInfinity()){var T=N.getX(),M=T.umod(this.n);if(M.cmpn(0)!==0){var D=I.invm(this.n).mul(M.mul(t.getPrivate()).iadd(e));if((D=D.umod(this.n)).cmpn(0)!==0){var P=(N.getY().isOdd()?1:0)|(T.cmp(M)!==0?2:0);return i.canonical&&D.cmp(this.nh)>0&&(D=this.n.sub(D),P^=1),new ZG({r:M,s:D,recoveryParam:P})}}}}}},qg.prototype.verify=function(e,t,r,i){e=this._truncateToN(new e4(e,16)),r=this.keyFromPublic(r,i);var n=(t=new ZG(t,"hex")).r,o=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var d,g=o.invm(this.n),y=g.mul(e).umod(this.n),_=g.mul(n).umod(this.n);return this.curve._maxwellTrick?!(d=this.g.jmulAdd(y,r.getPublic(),_)).isInfinity()&&d.eqXToP(n):!(d=this.g.mulAdd(y,r.getPublic(),_)).isInfinity()&&d.getX().umod(this.n).cmp(n)===0},qg.prototype.recoverPubKey=function(e,t,r,i){zqe((3&r)===r,"The recovery param is more than two bits"),t=new ZG(t,i);var n=this.n,o=new e4(e),d=t.r,g=t.s,y=1&r,_=r>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&_)throw new Error("Unable to find sencond key candinate");d=_?this.curve.pointFromX(d.add(this.curve.n),y):this.curve.pointFromX(d,y);var I=t.r.invm(n),N=n.sub(o).mul(I).umod(n),T=g.mul(I).umod(n);return this.g.mulAdd(N,d,T)},qg.prototype.getKeyRecoveryParam=function(e,t,r,i){if((t=new ZG(t,i)).recoveryParam!==null)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch{continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")};HCt=Jqe,OD=Q1,FLe=OD.assert,QLe=OD.parseBytes,pO=OD.cachedProperty;rl.fromPublic=function(e,t){return t instanceof rl?t:new rl(e,{pub:t})},rl.fromSecret=function(e,t){return t instanceof rl?t:new rl(e,{secret:t})},rl.prototype.secret=function(){return this._secret},pO(rl,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),pO(rl,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),pO(rl,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i})),pO(rl,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),pO(rl,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),pO(rl,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),rl.prototype.sign=function(e){return FLe(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},rl.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},rl.prototype.getSecret=function(e){return FLe(this._secret,"KeyPair is public only"),OD.encode(this.secret(),e)},rl.prototype.getPublic=function(e){return OD.encode(this.pubBytes(),e)};GCt=rl,qCt=ef,iV=Q1,VCt=iV.assert,jG=iV.cachedProperty,JCt=iV.parseBytes;jG(s4,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),jG(s4,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),jG(s4,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),jG(s4,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s4.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s4.prototype.toHex=function(){return iV.encode(this.toBytes(),"hex").toUpperCase()};zCt=s4,KCt=tV,$Ct=nV,IO=Q1,YCt=IO.assert,HLe=IO.parseBytes,GLe=GCt,qLe=zCt;Kqe=Ip,Ip.prototype.sign=function(e,t){e=HLe(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),d=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),g=i.add(d).umod(this.curve.n);return this.makeSignature({R:n,S:g,Rencoded:o})},Ip.prototype.verify=function(e,t,r){e=HLe(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},Ip.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return IO.intFromLE(e.digest()).umod(this.curve.n)},Ip.prototype.keyFromPublic=function(e){return GLe.fromPublic(this,e)},Ip.prototype.keyFromSecret=function(e){return GLe.fromSecret(this,e)},Ip.prototype.makeSignature=function(e){return e instanceof qLe?e:new qLe(this,e)},Ip.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},Ip.prototype.decodePoint=function(e){var t=(e=IO.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),i=(128&e[t])!=0,n=IO.intFromLE(r);return this.curve.pointFromY(n,i)},Ip.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},Ip.prototype.decodeInt=function(e){return IO.intFromLE(e)},Ip.prototype.isPoint=function(e){return e instanceof this.pointClass};WCt=Kqe,oV={},t4=oV;t4.version=["elliptic","6.5.2","EC cryptography","lib/elliptic.js",["lib"],{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},{type:"git",url:"git@github.com:indutny/elliptic"},["EC","Elliptic","curve","Cryptography"],"Fedor Indutny <fedor@indutny.com>","MIT",{url:"https://github.com/indutny/elliptic/issues"},"https://github.com/indutny/elliptic",{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}][1],t4.utils=Q1,t4.rand=Due,t4.curve=Lue,t4.curves=nV,t4.ec=HCt,t4.eddsa=WCt;bae={},VLe=!1,L1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Mf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,$qe={},XCt=ca;$qe.Reporter=Ug,Ug.prototype.isError=function(e){return e instanceof gO},Ug.prototype.save=function(){var e=(this||Mf)._reporterState;return{obj:e.obj,pathLen:e.path.length}},Ug.prototype.restore=function(e){var t=(this||Mf)._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},Ug.prototype.enterKey=function(e){return(this||Mf)._reporterState.path.push(e)},Ug.prototype.exitKey=function(e){var t=(this||Mf)._reporterState;t.path=t.path.slice(0,e-1)},Ug.prototype.leaveKey=function(e,t,r){var i=(this||Mf)._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[t]=r)},Ug.prototype.path=function(){return(this||Mf)._reporterState.path.join("/")},Ug.prototype.enterObject=function(){var e=(this||Mf)._reporterState,t=e.obj;return e.obj={},t},Ug.prototype.leaveObject=function(e){var t=(this||Mf)._reporterState,r=t.obj;return t.obj=e,r},Ug.prototype.error=function(e){var t,r=(this||Mf)._reporterState,i=e instanceof gO;if(t=i?e:new gO(r.path.map((function(n){return"["+JSON.stringify(n)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return i||r.errors.push(t),t},Ug.prototype.wrapResult=function(e){var t=(this||Mf)._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},XCt(gO,Error),gO.prototype.rethrow=function(e){if((this||Mf).message=e+" at: "+((this||Mf).path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this||Mf,gO),!(this||Mf).stack)try{throw new Error((this||Mf).message)}catch(t){(this||Mf).stack=t.stack}return this||Mf};eq={},JLe=!1,ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Eae={},KLe=!1,Ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,vae={},$Le=!1;r6={},YLe=!1,Rae={},WLe=!1;Sae={},XLe=!1,n6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Iae={},jLe=!1,Cae=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,wae={},eUe=!1;Oae={},tUe=!1,xf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Nae={},nUe=!1,xae=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Tae={},iUe=!1;Bae={},oUe=!1;Wqe=aV(),bm=Wqe,aUe=bm.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),ewt=bm.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),Uue=bm.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),twt=bm.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(Uue),this.key("subjectPublicKey").bitstr())})),rwt=bm.define("RelativeDistinguishedName",(function(){this.setof(ewt)})),nwt=bm.define("RDNSequence",(function(){this.seqof(rwt)})),sUe=bm.define("Name",(function(){this.choice({rdnSequence:this.use(nwt)})})),iwt=bm.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(aUe),this.key("notAfter").use(aUe))})),owt=bm.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),awt=bm.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Uue),this.key("issuer").use(sUe),this.key("validity").use(iwt),this.key("subject").use(sUe),this.key("subjectPublicKeyInfo").use(twt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(owt).optional())})),swt=bm.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(awt),this.key("signatureAlgorithm").use(Uue),this.key("signatureValue").bitstr())})),mm={},Em=Wqe;mm.certificate=swt;cwt=Em.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));mm.RSAPrivateKey=cwt;uwt=Em.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));mm.RSAPublicKey=uwt;dwt=Em.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(Xqe),this.key("subjectPublicKey").bitstr())}));mm.PublicKey=dwt;Xqe=Em.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),fwt=Em.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Xqe),this.key("subjectPrivateKey").octstr())}));mm.PrivateKey=fwt;lwt=Em.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));mm.EncryptedPrivateKey=lwt;hwt=Em.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));mm.DSAPrivateKey=hwt,mm.DSAparam=Em.define("DSAparam",(function(){this.int()}));Awt=Em.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(pwt),this.key("publicKey").optional().explicit(1).bitstr())}));mm.ECPrivateKey=Awt;pwt=Em.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));mm.signature=Em.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}));gwt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,_wt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,mwt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,ywt=eV,bwt=F1,tq=Rs.Buffer,Rp=mm,Ewt={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},vwt=function(e,t){var r,i=e.toString(),n=i.match(gwt);if(n){var o="aes"+n[1],d=tq.from(n[2],"hex"),g=tq.from(n[3].replace(/[\r\n]/g,""),"base64"),y=ywt(t,d.slice(0,8),parseInt(n[1],10)).key,_=[],I=bwt.createDecipheriv(o,y,d);_.push(I.update(g)),_.push(I.final()),r=tq.concat(_)}else{var N=i.match(mwt);r=new tq(N[2].replace(/[\r\n]/g,""),"base64")}return{tag:i.match(_wt)[1],data:r}},Rwt=F1,Swt=Lq,Mae=Rs.Buffer;Zqe=cUe,cUe.signature=Rp.signature;sV=Zqe,jqe={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},cue={},Oh=Vo.Buffer,m4=xGe,Iwt=kue,Cwt=oV.ec,qq=ef,wwt=sV,Owt=jqe;(cue=function(e,t,r,i,n){var o=wwt(t);if(o.curve){if(i!=="ecdsa"&&i!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(_,I){var N=Owt[I.curve.join(".")];if(!N)throw new Error("unknown curve "+I.curve.join("."));var T=new Cwt(N).keyFromPrivate(I.privateKey).sign(_);return new Oh(T.toDER())})(e,o)}if(o.type==="dsa"){if(i!=="dsa")throw new Error("wrong private key type");return(function(_,I,N){for(var T,M=I.params.priv_key,D=I.params.p,P=I.params.q,G=I.params.g,q=new qq(0),Y=Fue(_,P).mod(P),ne=!1,ce=uUe(M,P,_,N);ne===!1;)T=dUe(P,ce,N),q=Nwt(G,T,D,P),(ne=T.invm(P).imul(Y.add(M.mul(q))).mod(P)).cmpn(0)===0&&(ne=!1,q=new qq(0));return(function(le,pe){le=le.toArray(),pe=pe.toArray(),128&le[0]&&(le=[0].concat(le)),128&pe[0]&&(pe=[0].concat(pe));var ae=[48,le.length+pe.length+4,2,le.length];return ae=ae.concat(le,[2,pe.length],pe),new Oh(ae)})(q,ne)})(e,o,r)}if(i!=="rsa"&&i!=="ecdsa/rsa")throw new Error("wrong private key type");e=Oh.concat([n,e]);for(var d=o.modulus.byteLength(),g=[0,1];e.length+g.length+1<d;)g.push(255);g.push(0);for(var y=-1;++y<e.length;)g.push(e[y]);return Iwt(g,o)}).getKey=uUe,cue.makeKey=dUe;xwt=cue,Dae=Vo.Buffer,eD=ef,Twt=oV.ec,fUe=sV,Bwt=jqe;Mwt=function(e,t,r,i,n){var o=fUe(r);if(o.type==="ec"){if(i!=="ecdsa"&&i!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(T,M,D){var P=Bwt[D.data.algorithm.curve.join(".")];if(!P)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));var G=new Twt(P),q=D.data.subjectPrivateKey.data;return G.verify(M,T,q)})(e,t,o)}if(o.type==="dsa"){if(i!=="dsa")throw new Error("wrong public key type");return(function(T,M,D){var P=D.data.p,G=D.data.q,q=D.data.g,Y=D.data.pub_key,ne=fUe.signature.decode(T,"der"),ce=ne.s,le=ne.r;lUe(ce,G),lUe(le,G);var pe=eD.mont(P),ae=ce.invm(G);return q.toRed(pe).redPow(new eD(M).mul(ae).mod(G)).fromRed().mul(Y.toRed(pe).redPow(le.mul(ae).mod(G)).fromRed()).mod(P).mod(G).cmp(le)===0})(e,t,o)}if(i!=="rsa"&&i!=="ecdsa/rsa")throw new Error("wrong public key type");t=Dae.concat([n,t]);for(var d=o.modulus.byteLength(),g=[1],y=0;t.length+g.length+2<d;)g.push(255),y++;g.push(0);for(var _=-1;++_<t.length;)g.push(t[_]);g=new Dae(g);var I=eD.mont(o.modulus);e=(e=new eD(e).toRed(I)).redPow(new eD(o.publicExponent)),e=new Dae(e.fromRed().toArray());var N=y<8?1:0;for(d=Math.min(e.length,g.length),e.length!==g.length&&(N=1),_=-1;++_<d;)N|=e[_]^g[_];return N===0},cd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,rq=Vo.Buffer,eVe=kD,Vq=Jg,hUe=ca,Dwt=xwt,kwt=Mwt,f4=TGe;Object.keys(f4).forEach((function(e){f4[e].id=new rq(f4[e].id,"hex"),f4[e.toLowerCase()]=f4[e]})),hUe(pD,Vq.Writable),pD.prototype._write=function(e,t,r){(this||cd)._hash.update(e),r()},pD.prototype.update=function(e,t){return typeof e=="string"&&(e=new rq(e,t)),(this||cd)._hash.update(e),this||cd},pD.prototype.sign=function(e,t){this.end();var r=(this||cd)._hash.digest(),i=Dwt(r,e,(this||cd)._hashType,(this||cd)._signType,(this||cd)._tag);return t?i.toString(t):i},hUe(gD,Vq.Writable),gD.prototype._write=function(e,t,r){(this||cd)._hash.update(e),r()},gD.prototype.update=function(e,t){return typeof e=="string"&&(e=new rq(e,t)),(this||cd)._hash.update(e),this||cd},gD.prototype.verify=function(e,t,r){typeof t=="string"&&(t=new rq(t,r)),this.end();var i=(this||cd)._hash.digest();return kwt(t,i,e,(this||cd)._signType,(this||cd)._tag)};Pwt={Sign:AUe,Verify:pUe,createSign:AUe,createVerify:pUe},Df=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Bv=Vo.Buffer,Lwt=oV,Uwt=ef;tVe=function(e){return new c4(e)};U1={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};U1.p224=U1.secp224r1,U1.p256=U1.secp256r1=U1.prime256v1,U1.p192=U1.secp192r1=U1.prime192v1,U1.p384=U1.secp384r1,U1.p521=U1.secp521r1,c4.prototype.generateKeys=function(e,t){return(this||Df).keys=(this||Df).curve.genKeyPair(),this.getPublicKey(e,t)},c4.prototype.computeSecret=function(e,t,r){return t=t||"utf8",Bv.isBuffer(e)||(e=new Bv(e,t)),kae((this||Df).curve.keyFromPublic(e).getPublic().mul((this||Df).keys.getPrivate()).getX(),r,(this||Df).curveType.byteLength)},c4.prototype.getPublicKey=function(e,t){var r=(this||Df).keys.getPublic(t==="compressed",!0);return t==="hybrid"&&(r[r.length-1]%2?r[0]=7:r[0]=6),kae(r,e)},c4.prototype.getPrivateKey=function(e){return kae((this||Df).keys.getPrivate(),e)},c4.prototype.setPublicKey=function(e,t){return t=t||"utf8",Bv.isBuffer(e)||(e=new Bv(e,t)),(this||Df).keys._importPublic(e),this||Df},c4.prototype.setPrivateKey=function(e,t){t=t||"utf8",Bv.isBuffer(e)||(e=new Bv(e,t));var r=new Uwt(e);return r=r.toString(16),(this||Df).keys=(this||Df).curve.genKeyPair(),(this||Df).keys._importPrivate(r),this||Df};Fwt=tVe,Qwt=kD,uue=Rs.Buffer;rVe=function(e,t){for(var r,i=uue.alloc(0),n=0;i.length<t;)r=Hwt(n++),i=uue.concat([i,Qwt("sha1").update(e).update(r).digest()]);return i.slice(0,t)},nVe=function(e,t){for(var r=e.length,i=-1;++i<r;)e[i]^=t[i];return e},gUe=ef,Gwt=Rs.Buffer,iVe=function(e,t){return Gwt.from(e.toRed(gUe.mont(t.modulus)).redPow(new gUe(t.publicExponent)).fromRed().toArray())},qwt=sV,Pae=PO,Vwt=kD,_Ue=rVe,mUe=nVe,Lae=ef,Jwt=iVe,zwt=kue,dm=Rs.Buffer,Kwt=function(e,t,r){var i;i=e.padding?e.padding:r?1:4;var n,o=qwt(e);if(i===4)n=(function(d,g){var y=d.modulus.byteLength(),_=g.length,I=Vwt("sha1").update(dm.alloc(0)).digest(),N=I.length,T=2*N;if(_>y-T-2)throw new Error("message too long");var M=dm.alloc(y-_-T-2),D=y-N-1,P=Pae(N),G=mUe(dm.concat([I,M,dm.alloc(1,1),g],D),_Ue(P,D)),q=mUe(P,_Ue(G,N));return new Lae(dm.concat([dm.alloc(1),q,G],y))})(o,t);else if(i===1)n=(function(d,g,y){var _,I=g.length,N=d.modulus.byteLength();if(I>N-11)throw new Error("message too long");return _=y?dm.alloc(N-I-3,255):(function(T){for(var M,D=dm.allocUnsafe(T),P=0,G=Pae(2*T),q=0;P<T;)q===G.length&&(G=Pae(2*T),q=0),(M=G[q++])&&(D[P++]=M);return D})(N-I-3),new Lae(dm.concat([dm.from([0,y?1:2]),_,dm.alloc(1),g],N))})(o,t,r);else{if(i!==3)throw new Error("unknown padding");if((n=new Lae(t)).cmp(o.modulus)>=0)throw new Error("data too long for modulus")}return r?zwt(n,o):Jwt(n,o)},$wt=sV,yUe=rVe,bUe=nVe,EUe=ef,Ywt=kue,Wwt=kD,Xwt=iVe,tD=Rs.Buffer,Zwt=function(e,t,r){var i;i=e.padding?e.padding:r?1:4;var n,o=$wt(e),d=o.modulus.byteLength();if(t.length>d||new EUe(t).cmp(o.modulus)>=0)throw new Error("decryption error");n=r?Xwt(new EUe(t),o):Ywt(t,o);var g=tD.alloc(d-n.length);if(n=tD.concat([g,n],d),i===4)return(function(y,_){var I=y.modulus.byteLength(),N=Wwt("sha1").update(tD.alloc(0)).digest(),T=N.length;if(_[0]!==0)throw new Error("decryption error");var M=_.slice(1,T+1),D=_.slice(T+1),P=bUe(M,yUe(D,T)),G=bUe(D,yUe(P,I-T-1));if((function(Y,ne){Y=tD.from(Y),ne=tD.from(ne);var ce=0,le=Y.length;Y.length!==ne.length&&(ce++,le=Math.min(Y.length,ne.length));for(var pe=-1;++pe<le;)ce+=Y[pe]^ne[pe];return ce})(N,G.slice(0,T)))throw new Error("decryption error");for(var q=T;G[q]===0;)q++;if(G[q++]!==1)throw new Error("decryption error");return G.slice(q)})(o,n);if(i===1)return(function(y,_,I){for(var N=_.slice(0,2),T=2,M=0;_[T++]!==0;)if(T>=_.length){M++;break}var D=_.slice(2,T-1);if((N.toString("hex")!=="0002"&&!I||N.toString("hex")!=="0001"&&I)&&M++,D.length<8&&M++,M)throw new Error("decryption error");return _.slice(T)})(0,n,r);if(i===3)return n;throw new Error("unknown padding")},u4={};u4.publicEncrypt=Kwt,u4.privateDecrypt=Zwt,u4.privateEncrypt=function(e,t){return u4.publicEncrypt(e,t,!0)},u4.publicDecrypt=function(e,t){return u4.privateDecrypt(e,t,!0)};Jq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,_D={},due=Mo;oVe=Rs,RUe=PO,SUe=oVe.Buffer,aVe=oVe.kMaxLength,fue=Jq.crypto||Jq.msCrypto,sVe=Math.pow(2,32)-1;fue&&fue.getRandomValues||!due.browser?(_D.randomFill=function(e,t,r,i){if(!(SUe.isBuffer(e)||e instanceof Jq.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")i=t,t=0,r=e.length;else if(typeof r=="function")i=r,r=e.length-t;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return IUe(t,e.length),CUe(r,t,e.length),wUe(e,t,r,i)},_D.randomFillSync=function(e,t,r){if(t===void 0&&(t=0),!(SUe.isBuffer(e)||e instanceof Jq.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return IUe(t,e.length),r===void 0&&(r=e.length-t),CUe(r,t,e.length),wUe(e,t,r)}):(_D.randomFill=vUe,_D.randomFillSync=vUe);Ka={};Ka.randomBytes=Ka.rng=Ka.pseudoRandomBytes=Ka.prng=PO,Ka.createHash=Ka.Hash=kD,Ka.createHmac=Ka.Hmac=xGe;jwt=TGe,e5t=Object.keys(jwt),t5t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e5t);Ka.getHashes=function(){return t5t};OUe=Lq;Ka.pbkdf2=OUe.pbkdf2,Ka.pbkdf2Sync=OUe.pbkdf2Sync;Gy=lm;Ka.Cipher=Gy.Cipher,Ka.createCipher=Gy.createCipher,Ka.Cipheriv=Gy.Cipheriv,Ka.createCipheriv=Gy.createCipheriv,Ka.Decipher=Gy.Decipher,Ka.createDecipher=Gy.createDecipher,Ka.Decipheriv=Gy.Decipheriv,Ka.createDecipheriv=Gy.createDecipheriv,Ka.getCiphers=Gy.getCiphers,Ka.listCiphers=Gy.listCiphers;rD=EO;Ka.DiffieHellmanGroup=rD.DiffieHellmanGroup,Ka.createDiffieHellmanGroup=rD.createDiffieHellmanGroup,Ka.getDiffieHellman=rD.getDiffieHellman,Ka.createDiffieHellman=rD.createDiffieHellman,Ka.DiffieHellman=rD.DiffieHellman;nq=Pwt;Ka.createSign=nq.createSign,Ka.Sign=nq.Sign,Ka.createVerify=nq.createVerify,Ka.Verify=nq.Verify,Ka.createECDH=Fwt;iq=u4;Ka.publicEncrypt=iq.publicEncrypt,Ka.privateEncrypt=iq.privateEncrypt,Ka.publicDecrypt=iq.publicDecrypt,Ka.privateDecrypt=iq.privateDecrypt;NUe=_D;Ka.randomFill=NUe.randomFill,Ka.randomFillSync=NUe.randomFillSync,Ka.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
`))},Ka.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6};oq={},xUe=!1,aq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Uae={},TUe=!1,BUe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Fae={},MUe=!1;r5t={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},Qae={},DUe=!1,Ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;r4={},kUe=!1;dVe={},PUe=!1,Hae={exports:dVe},It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Gae={},LUe=!1;o5t={_args:[["elliptic@6.5.4","C:\\Users\\guybe\\Projects\\rollup-plugin-jspm"]],_from:"elliptic@6.5.4",_id:"elliptic@6.5.4",_inBundle:!1,_integrity:"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",_location:"/@jspm/core/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.5.4",name:"elliptic",escapedName:"elliptic",rawSpec:"6.5.4",saveSpec:null,fetchSpec:"6.5.4"},_requiredBy:["/@jspm/core/browserify-sign","/@jspm/core/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",_spec:"6.5.4",_where:"C:\\Users\\guybe\\Projects\\rollup-plugin-jspm",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},description:"EC cryptography",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.4"},fVe={},UUe=!1,qae={exports:fVe},Tt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Vae={},FUe=!1;Jae={},QUe=!1;zae={},HUe=!1;Kae={},GUe=!1;$ae={},qUe=!1;Yae={},VUe=!1;Wae={},JUe=!1;ou={},zUe=!1;Xae={},KUe=!1;$Ue={},YUe=!1;Zae={},WUe=!1;jae={},XUe=!1;ese={},ZUe=!1;tse={},jUe=!1;rse={},eFe=!1;nse={},tFe=!1;ise={},rFe=!1;ose={},nFe=!1;ase={},iFe=!1;sse={},oFe=!1;cse={},aFe=!1;use={},sFe=!1;dse={},cFe=!1;pVe={},uFe=!1,fse={exports:pVe},Bt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;lse={},dFe=!1;hse={},fFe=!1;sq={},lFe=!1;Ase={},hFe=!1;i6={},AFe=!1;pse={},pFe=!1;gse={},gFe=!1;_se={},_Fe=!1;mse={},mFe=!1;yse={},yFe=!1;bse={},bFe=!1;Ese={},EFe=!1;vse={},vFe=!1;Rse={},RFe=!1;Sse={},SFe=!1;Ise={},IFe=!1;Fg={},CFe=!1;w5t={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},Cse={},wFe=!1;wse={},OFe=!1;vVe={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},nD={},NFe=!1;Ose={},xFe=!1;Nse={},TFe=!1,id=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;RVe={},BFe=!1,xse={exports:RVe},Mt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Tse={},MFe=!1,Tf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Bse={},DFe=!1;Mse={},kFe=!1;CVe={},PFe=!1,Dse={exports:CVe},Dt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kse={},LFe=!1;Pse={},UFe=!1;Lse={},FFe=!1;o6={},QFe=!1;_O={},HFe=!1,cq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Ua={},GFe=!1;$a=U5t();$a.Cipher;$a.Cipheriv;$a.Decipher;$a.Decipheriv;$a.DiffieHellman;$a.DiffieHellmanGroup;$a.Hash;$a.Hmac;$a.Sign;$a.Verify;$a.constants;$a.createCipher;$a.createCipheriv;$a.createCredentials;$a.createDecipher;$a.createDecipheriv;$a.createDiffieHellman;$a.createDiffieHellmanGroup;$a.createECDH;$a.createHash;$a.createHmac;$a.createSign;$a.createVerify;$a.getCiphers;$a.getDiffieHellman;$a.getHashes;$a.listCiphers;$a.pbkdf2;$a.pbkdf2Sync;$a.privateDecrypt;$a.privateEncrypt;$a.prng;$a.pseudoRandomBytes;$a.publicDecrypt;$a.publicEncrypt;$a.randomBytes;$a.randomFill;$a.randomFillSync;$a.rng;uq={},qFe=!1,dq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Use={},VFe=!1,JFe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Fse={},zFe=!1;F5t={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},Qse={},KFe=!1,Ds=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;n4={},$Fe=!1;iD={},YFe=!1;xVe={},WFe=!1,Hse={exports:xVe},Ct=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Gse={},XFe=!1;G5t={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},TVe={},ZFe=!1,qse={exports:TVe},kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Vse={},jFe=!1;Jse={},eQe=!1;zse={},tQe=!1;Kse={},rQe=!1;$se={},nQe=!1;Yse={},iQe=!1;Wse={},oQe=!1;au={},aQe=!1;Xse={},sQe=!1;cQe={},uQe=!1;Zse={},dQe=!1;jse={},fQe=!1;ece={},lQe=!1;tce={},hQe=!1;rce={},AQe=!1;nce={},pQe=!1;ice={},gQe=!1;oce={},_Qe=!1;ace={},mQe=!1;sce={},yQe=!1;cce={},bQe=!1;uce={},EQe=!1;dce={},vQe=!1;kVe={},RQe=!1,fce={exports:kVe},Pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;lce={},SQe=!1;hce={},IQe=!1;fq={},CQe=!1;Ace={},wQe=!1;a6={},OQe=!1;pce={},NQe=!1;gce={},xQe=!1;_ce={},TQe=!1;mce={},BQe=!1;yce={},MQe=!1;bce={},DQe=!1;Ece={},kQe=!1;vce={},PQe=!1;Rce={},LQe=!1;Sce={},UQe=!1;Ice={},FQe=!1;Qg={},QQe=!1;dOt={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},Cce={},HQe=!1;wce={},GQe=!1;GVe={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},oD={},qQe=!1;Oce={},VQe=!1;Nce={},JQe=!1,od=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;qVe={},zQe=!1,xce={exports:qVe},Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Tce={},KQe=!1,Bf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Bce={},$Qe=!1;Mce={},YQe=!1;zVe={},WQe=!1,Dce={exports:zVe},Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kce={},XQe=!1;Pce={},ZQe=!1;Lce={},jQe=!1;s6={},eHe=!1;mO={},tHe=!1,lq=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Fa={},rHe=!1;yi=EOt();yi.randomBytes;yi.rng;yi.pseudoRandomBytes;yi.prng;yi.createHash;yi.Hash;yi.createHmac;yi.Hmac;yi.getHashes;yi.pbkdf2;yi.pbkdf2Sync;yi.Cipher;yi.createCipher;yi.Cipheriv;yi.createCipheriv;yi.Decipher;yi.createDecipher;yi.Decipheriv;yi.createDecipheriv;yi.getCiphers;yi.listCiphers;yi.DiffieHellmanGroup;yi.createDiffieHellmanGroup;yi.getDiffieHellman;yi.createDiffieHellman;yi.DiffieHellman;yi.createSign;yi.Sign;yi.createVerify;yi.Verify;yi.createECDH;yi.publicEncrypt;yi.privateEncrypt;yi.publicDecrypt;yi.privateDecrypt;yi.randomFill;yi.randomFillSync;yi.createCredentials;yi.constants;yi.webcrypto=globalThis.crypto;vOt=yi.Cipher,ROt=yi.Cipheriv,SOt=yi.Decipher,IOt=yi.Decipheriv,COt=yi.DiffieHellman,wOt=yi.DiffieHellmanGroup,OOt=yi.Hash,NOt=yi.Hmac,xOt=yi.Sign,TOt=yi.Verify,u0e=yi.constants,BOt=yi.createCipher,MOt=yi.createCipheriv,DOt=yi.createCredentials,kOt=yi.createDecipher,POt=yi.createDecipheriv,LOt=yi.createDiffieHellman,UOt=yi.createDiffieHellmanGroup,FOt=yi.createECDH,vm=yi.createHash,QOt=yi.createHmac,d0e=yi.createSign,HOt=yi.createVerify,GOt=yi.getCiphers,qOt=yi.getDiffieHellman,VOt=yi.getHashes,JOt=yi.listCiphers,zOt=yi.pbkdf2,KOt=yi.pbkdf2Sync,$Ot=yi.privateDecrypt,YOt=yi.privateEncrypt,WOt=yi.prng,XOt=yi.pseudoRandomBytes,ZOt=yi.publicDecrypt,jOt=yi.publicEncrypt,f0e=yi.randomBytes,eNt=yi.randomFill,tNt=yi.randomFillSync,rNt=yi.rng,nNt=yi.webcrypto});var mV=ir(_V=>{"use strict";J();K();z();_V.byteLength=bNt;_V.toByteArray=vNt;_V.fromByteArray=INt;var tb=[],Yg=[],yNt=typeof Uint8Array<"u"?Uint8Array:Array,b0e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S4=0,nJe=b0e.length;S4<nJe;++S4)tb[S4]=b0e[S4],Yg[b0e.charCodeAt(S4)]=S4;var S4,nJe;Yg[45]=62;Yg[95]=63;function iJe(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 i=r===t?0:4-r%4;return[r,i]}function bNt(e){var t=iJe(e),r=t[0],i=t[1];return(r+i)*3/4-i}function ENt(e,t,r){return(t+r)*3/4-r}function vNt(e){var t,r=iJe(e),i=r[0],n=r[1],o=new yNt(ENt(e,i,n)),d=0,g=n>0?i-4:i,y;for(y=0;y<g;y+=4)t=Yg[e.charCodeAt(y)]<<18|Yg[e.charCodeAt(y+1)]<<12|Yg[e.charCodeAt(y+2)]<<6|Yg[e.charCodeAt(y+3)],o[d++]=t>>16&255,o[d++]=t>>8&255,o[d++]=t&255;return n===2&&(t=Yg[e.charCodeAt(y)]<<2|Yg[e.charCodeAt(y+1)]>>4,o[d++]=t&255),n===1&&(t=Yg[e.charCodeAt(y)]<<10|Yg[e.charCodeAt(y+1)]<<4|Yg[e.charCodeAt(y+2)]>>2,o[d++]=t>>8&255,o[d++]=t&255),o}function RNt(e){return tb[e>>18&63]+tb[e>>12&63]+tb[e>>6&63]+tb[e&63]}function SNt(e,t,r){for(var i,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(RNt(i));return n.join("")}function INt(e){for(var t,r=e.length,i=r%3,n=[],o=16383,d=0,g=r-i;d<g;d+=o)n.push(SNt(e,d,d+o>g?g:d+o));return i===1?(t=e[r-1],n.push(tb[t>>2]+tb[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(tb[t>>10]+tb[t>>4&63]+tb[t<<2&63]+"=")),n.join("")}});var Rm=ir(ud=>{"use strict";J();K();z();Object.defineProperty(ud,"__esModule",{value:!0});ud.b64UrlDecode=ud.b64UrlEncode=ud.bufferTob64Url=ud.bufferTob64=ud.b64UrlToBuffer=ud.stringToB64Url=ud.stringToBuffer=ud.bufferToString=ud.b64UrlToString=ud.concatBuffers=void 0;var oJe=mV();function CNt(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n].byteLength;let r=new Uint8Array(t),i=0;r.set(new Uint8Array(e[0]),i),i+=e[0].byteLength;for(let n=1;n<e.length;n++)r.set(new Uint8Array(e[n]),i),i+=e[n].byteLength;return r}ud.concatBuffers=CNt;function wNt(e){let t=cJe(e);return aJe(t)}ud.b64UrlToString=wNt;function aJe(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}ud.bufferToString=aJe;function sJe(e){return new TextEncoder().encode(e)}ud.stringToBuffer=sJe;function ONt(e){return dJe(sJe(e))}ud.stringToB64Url=ONt;function cJe(e){return new Uint8Array(oJe.toByteArray(lJe(e)))}ud.b64UrlToBuffer=cJe;function uJe(e){return oJe.fromByteArray(new Uint8Array(e))}ud.bufferTob64=uJe;function dJe(e){return fJe(uJe(e))}ud.bufferTob64Url=dJe;function fJe(e){try{return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}catch(t){throw new Error("Failed to encode string",{cause:t})}}ud.b64UrlEncode=fJe;function lJe(e){try{e=e.replace(/\-/g,"+").replace(/\_/g,"/");let t;return e.length%4==0?t=0:t=4-e.length%4,e.concat("=".repeat(t))}catch(t){throw new Error("Failed to decode string",{cause:t})}}ud.b64UrlDecode=lJe});var R0e=ir(v0e=>{"use strict";J();K();z();Object.defineProperty(v0e,"__esModule",{value:!0});var T6=Rm(),E0e=class{keyLength=4096;publicExponent=65537;hashAlgorithm="sha256";driver;constructor(){if(!this.detectWebCrypto())throw new Error("SubtleCrypto not available!");this.driver=crypto.subtle}async generateJWK(){let t=await this.driver.generateKey({name:"RSA-PSS",modulusLength:4096,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign"]),r=await this.driver.exportKey("jwk",t.privateKey);return{kty:r.kty,e:r.e,n:r.n,d:r.d,p:r.p,q:r.q,dp:r.dp,dq:r.dq,qi:r.qi}}async sign(t,r,{saltLength:i}={}){let n=await this.driver.sign({name:"RSA-PSS",saltLength:32},await this.jwkToCryptoKey(t),r);return new Uint8Array(n)}async hash(t,r="SHA-256"){let i=await this.driver.digest(r,t);return new Uint8Array(i)}async verify(t,r,i){let n={kty:"RSA",e:"AQAB",n:t},o=await this.jwkToPublicCryptoKey(n),d=await this.driver.digest("SHA-256",r),g=await this.driver.verify({name:"RSA-PSS",saltLength:0},o,i,r),y=await this.driver.verify({name:"RSA-PSS",saltLength:32},o,i,r),_=await this.driver.verify({name:"RSA-PSS",saltLength:Math.ceil((o.algorithm.modulusLength-1)/8)-d.byteLength-2},o,i,r);return g||y||_}async jwkToCryptoKey(t){return this.driver.importKey("jwk",t,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["sign"])}async jwkToPublicCryptoKey(t){return this.driver.importKey("jwk",t,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["verify"])}detectWebCrypto(){if(typeof crypto>"u")return!1;let t=crypto?.subtle;return t===void 0?!1:["generateKey","importKey","exportKey","digest","sign"].every(i=>typeof t[i]=="function")}async encrypt(t,r,i){let n=await this.driver.importKey("raw",typeof r=="string"?T6.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),o=await this.driver.deriveKey({name:"PBKDF2",salt:i?T6.stringToBuffer(i):T6.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},n,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),d=new Uint8Array(16);crypto.getRandomValues(d);let g=await this.driver.encrypt({name:"AES-CBC",iv:d},o,t);return T6.concatBuffers([d,g])}async decrypt(t,r,i){let n=await this.driver.importKey("raw",typeof r=="string"?T6.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),o=await this.driver.deriveKey({name:"PBKDF2",salt:i?T6.stringToBuffer(i):T6.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},n,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),d=t.slice(0,16),g=await this.driver.decrypt({name:"AES-CBC",iv:d},o,t.slice(16));return T6.concatBuffers([g])}};v0e.default=E0e});var pJe=ir((AJe,yV)=>{"use strict";J();K();z();(function(e){"use strict";var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,n=Math.floor,o="[BigNumber Error] ",d=o+"Number primitive has more than 15 significant digits: ",g=1e14,y=14,_=9007199254740991,I=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,T=1e9;function M(le){var pe,ae,W,se=X.prototype={constructor:X,toString:null,valueOf:null},O=new X(1),s=20,l=4,A=-7,m=21,E=-1e7,w=1e7,x=!1,R=1,u=0,C={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",F=!0;function X(Se,ct){var ze,te,Ue,oe,ge,Le,V,Qe,_t=this;if(!(_t instanceof X))return new X(Se,ct);if(ct==null){if(Se&&Se._isBigNumber===!0){_t.s=Se.s,!Se.c||Se.e>w?_t.c=_t.e=null:Se.e<E?_t.c=[_t.e=0]:(_t.e=Se.e,_t.c=Se.c.slice());return}if((Le=typeof Se=="number")&&Se*0==0){if(_t.s=1/Se<0?(Se=-Se,-1):1,Se===~~Se){for(oe=0,ge=Se;ge>=10;ge/=10,oe++);oe>w?_t.c=_t.e=null:(_t.e=oe,_t.c=[Se]);return}Qe=String(Se)}else{if(!r.test(Qe=String(Se)))return W(_t,Qe,Le);_t.s=Qe.charCodeAt(0)==45?(Qe=Qe.slice(1),-1):1}(oe=Qe.indexOf("."))>-1&&(Qe=Qe.replace(".","")),(ge=Qe.search(/e/i))>0?(oe<0&&(oe=ge),oe+=+Qe.slice(ge+1),Qe=Qe.substring(0,ge)):oe<0&&(oe=Qe.length)}else{if(q(ct,2,U.length,"Base"),ct==10&&F)return _t=new X(Se),Ge(_t,s+_t.e+1,l);if(Qe=String(Se),Le=typeof Se=="number"){if(Se*0!=0)return W(_t,Qe,Le,ct);if(_t.s=1/Se<0?(Qe=Qe.slice(1),-1):1,X.DEBUG&&Qe.replace(/^0\.0*|\./,"").length>15)throw Error(d+Se)}else _t.s=Qe.charCodeAt(0)===45?(Qe=Qe.slice(1),-1):1;for(ze=U.slice(0,ct),oe=ge=0,V=Qe.length;ge<V;ge++)if(ze.indexOf(te=Qe.charAt(ge))<0){if(te=="."){if(ge>oe){oe=V;continue}}else if(!Ue&&(Qe==Qe.toUpperCase()&&(Qe=Qe.toLowerCase())||Qe==Qe.toLowerCase()&&(Qe=Qe.toUpperCase()))){Ue=!0,ge=-1,oe=0;continue}return W(_t,String(Se),Le,ct)}Le=!1,Qe=ae(Qe,ct,10,_t.s),(oe=Qe.indexOf("."))>-1?Qe=Qe.replace(".",""):oe=Qe.length}for(ge=0;Qe.charCodeAt(ge)===48;ge++);for(V=Qe.length;Qe.charCodeAt(--V)===48;);if(Qe=Qe.slice(ge,++V)){if(V-=ge,Le&&X.DEBUG&&V>15&&(Se>_||Se!==n(Se)))throw Error(d+_t.s*Se);if((oe=oe-ge-1)>w)_t.c=_t.e=null;else if(oe<E)_t.c=[_t.e=0];else{if(_t.e=oe,_t.c=[],ge=(oe+1)%y,oe<0&&(ge+=y),ge<V){for(ge&&_t.c.push(+Qe.slice(0,ge)),V-=y;ge<V;)_t.c.push(+Qe.slice(ge,ge+=y));ge=y-(Qe=Qe.slice(ge)).length}else ge-=V;for(;ge--;Qe+="0");_t.c.push(+Qe)}}else _t.c=[_t.e=0]}X.clone=M,X.ROUND_UP=0,X.ROUND_DOWN=1,X.ROUND_CEIL=2,X.ROUND_FLOOR=3,X.ROUND_HALF_UP=4,X.ROUND_HALF_DOWN=5,X.ROUND_HALF_EVEN=6,X.ROUND_HALF_CEIL=7,X.ROUND_HALF_FLOOR=8,X.EUCLID=9,X.config=X.set=function(Se){var ct,ze;if(Se!=null)if(typeof Se=="object"){if(Se.hasOwnProperty(ct="DECIMAL_PLACES")&&(ze=Se[ct],q(ze,0,T,ct),s=ze),Se.hasOwnProperty(ct="ROUNDING_MODE")&&(ze=Se[ct],q(ze,0,8,ct),l=ze),Se.hasOwnProperty(ct="EXPONENTIAL_AT")&&(ze=Se[ct],ze&&ze.pop?(q(ze[0],-T,0,ct),q(ze[1],0,T,ct),A=ze[0],m=ze[1]):(q(ze,-T,T,ct),A=-(m=ze<0?-ze:ze))),Se.hasOwnProperty(ct="RANGE"))if(ze=Se[ct],ze&&ze.pop)q(ze[0],-T,-1,ct),q(ze[1],1,T,ct),E=ze[0],w=ze[1];else if(q(ze,-T,T,ct),ze)E=-(w=ze<0?-ze:ze);else throw Error(o+ct+" cannot be zero: "+ze);if(Se.hasOwnProperty(ct="CRYPTO"))if(ze=Se[ct],ze===!!ze)if(ze)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))x=ze;else throw x=!ze,Error(o+"crypto unavailable");else x=ze;else throw Error(o+ct+" not true or false: "+ze);if(Se.hasOwnProperty(ct="MODULO_MODE")&&(ze=Se[ct],q(ze,0,9,ct),R=ze),Se.hasOwnProperty(ct="POW_PRECISION")&&(ze=Se[ct],q(ze,0,T,ct),u=ze),Se.hasOwnProperty(ct="FORMAT"))if(ze=Se[ct],typeof ze=="object")C=ze;else throw Error(o+ct+" not an object: "+ze);if(Se.hasOwnProperty(ct="ALPHABET"))if(ze=Se[ct],typeof ze=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(ze))F=ze.slice(0,10)=="0123456789",U=ze;else throw Error(o+ct+" invalid: "+ze)}else throw Error(o+"Object expected: "+Se);return{DECIMAL_PLACES:s,ROUNDING_MODE:l,EXPONENTIAL_AT:[A,m],RANGE:[E,w],CRYPTO:x,MODULO_MODE:R,POW_PRECISION:u,FORMAT:C,ALPHABET:U}},X.isBigNumber=function(Se){if(!Se||Se._isBigNumber!==!0)return!1;if(!X.DEBUG)return!0;var ct,ze,te=Se.c,Ue=Se.e,oe=Se.s;e:if({}.toString.call(te)=="[object Array]"){if((oe===1||oe===-1)&&Ue>=-T&&Ue<=T&&Ue===n(Ue)){if(te[0]===0){if(Ue===0&&te.length===1)return!0;break e}if(ct=(Ue+1)%y,ct<1&&(ct+=y),String(te[0]).length==ct){for(ct=0;ct<te.length;ct++)if(ze=te[ct],ze<0||ze>=g||ze!==n(ze))break e;if(ze!==0)return!0}}}else if(te===null&&Ue===null&&(oe===null||oe===1||oe===-1))return!0;throw Error(o+"Invalid BigNumber: "+Se)},X.maximum=X.max=function(){return he(arguments,-1)},X.minimum=X.min=function(){return he(arguments,1)},X.random=(function(){var Se=9007199254740992,ct=Math.random()*Se&2097151?function(){return n(Math.random()*Se)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(ze){var te,Ue,oe,ge,Le,V=0,Qe=[],_t=new X(O);if(ze==null?ze=s:q(ze,0,T),ge=i(ze/y),x)if(crypto.getRandomValues){for(te=crypto.getRandomValues(new Uint32Array(ge*=2));V<ge;)Le=te[V]*131072+(te[V+1]>>>11),Le>=9e15?(Ue=crypto.getRandomValues(new Uint32Array(2)),te[V]=Ue[0],te[V+1]=Ue[1]):(Qe.push(Le%1e14),V+=2);V=ge/2}else if(crypto.randomBytes){for(te=crypto.randomBytes(ge*=7);V<ge;)Le=(te[V]&31)*281474976710656+te[V+1]*1099511627776+te[V+2]*4294967296+te[V+3]*16777216+(te[V+4]<<16)+(te[V+5]<<8)+te[V+6],Le>=9e15?crypto.randomBytes(7).copy(te,V):(Qe.push(Le%1e14),V+=7);V=ge/7}else throw x=!1,Error(o+"crypto unavailable");if(!x)for(;V<ge;)Le=ct(),Le<9e15&&(Qe[V++]=Le%1e14);for(ge=Qe[--V],ze%=y,ge&&ze&&(Le=I[y-ze],Qe[V]=n(ge/Le)*Le);Qe[V]===0;Qe.pop(),V--);if(V<0)Qe=[oe=0];else{for(oe=-1;Qe[0]===0;Qe.splice(0,1),oe-=y);for(V=1,Le=Qe[0];Le>=10;Le/=10,V++);V<y&&(oe-=y-V)}return _t.e=oe,_t.c=Qe,_t}})(),X.sum=function(){for(var Se=1,ct=arguments,ze=new X(ct[0]);Se<ct.length;)ze=ze.plus(ct[Se++]);return ze},ae=(function(){var Se="0123456789";function ct(ze,te,Ue,oe){for(var ge,Le=[0],V,Qe=0,_t=ze.length;Qe<_t;){for(V=Le.length;V--;Le[V]*=te);for(Le[0]+=oe.indexOf(ze.charAt(Qe++)),ge=0;ge<Le.length;ge++)Le[ge]>Ue-1&&(Le[ge+1]==null&&(Le[ge+1]=0),Le[ge+1]+=Le[ge]/Ue|0,Le[ge]%=Ue)}return Le.reverse()}return function(ze,te,Ue,oe,ge){var Le,V,Qe,_t,rt,At,Er,mt,Ht=ze.indexOf("."),zr=s,ve=l;for(Ht>=0&&(_t=u,u=0,ze=ze.replace(".",""),mt=new X(te),At=mt.pow(ze.length-Ht),u=_t,mt.c=ct(ce(P(At.c),At.e,"0"),10,Ue,Se),mt.e=mt.c.length),Er=ct(ze,te,Ue,ge?(Le=U,Se):(Le=Se,U)),Qe=_t=Er.length;Er[--_t]==0;Er.pop());if(!Er[0])return Le.charAt(0);if(Ht<0?--Qe:(At.c=Er,At.e=Qe,At.s=oe,At=pe(At,mt,zr,ve,Ue),Er=At.c,rt=At.r,Qe=At.e),V=Qe+zr+1,Ht=Er[V],_t=Ue/2,rt=rt||V<0||Er[V+1]!=null,rt=ve<4?(Ht!=null||rt)&&(ve==0||ve==(At.s<0?3:2)):Ht>_t||Ht==_t&&(ve==4||rt||ve==6&&Er[V-1]&1||ve==(At.s<0?8:7)),V<1||!Er[0])ze=rt?ce(Le.charAt(1),-zr,Le.charAt(0)):Le.charAt(0);else{if(Er.length=V,rt)for(--Ue;++Er[--V]>Ue;)Er[V]=0,V||(++Qe,Er=[1].concat(Er));for(_t=Er.length;!Er[--_t];);for(Ht=0,ze="";Ht<=_t;ze+=Le.charAt(Er[Ht++]));ze=ce(ze,Qe,Le.charAt(0))}return ze}})(),pe=(function(){function Se(te,Ue,oe){var ge,Le,V,Qe,_t=0,rt=te.length,At=Ue%N,Er=Ue/N|0;for(te=te.slice();rt--;)V=te[rt]%N,Qe=te[rt]/N|0,ge=Er*V+Qe*At,Le=At*V+ge%N*N+_t,_t=(Le/oe|0)+(ge/N|0)+Er*Qe,te[rt]=Le%oe;return _t&&(te=[_t].concat(te)),te}function ct(te,Ue,oe,ge){var Le,V;if(oe!=ge)V=oe>ge?1:-1;else for(Le=V=0;Le<oe;Le++)if(te[Le]!=Ue[Le]){V=te[Le]>Ue[Le]?1:-1;break}return V}function ze(te,Ue,oe,ge){for(var Le=0;oe--;)te[oe]-=Le,Le=te[oe]<Ue[oe]?1:0,te[oe]=Le*ge+te[oe]-Ue[oe];for(;!te[0]&&te.length>1;te.splice(0,1));}return function(te,Ue,oe,ge,Le){var V,Qe,_t,rt,At,Er,mt,Ht,zr,ve,ie,_e,Be,Ze,$t,at,zt,Hr=te.s==Ue.s?1:-1,St=te.c,Yt=Ue.c;if(!St||!St[0]||!Yt||!Yt[0])return new X(!te.s||!Ue.s||(St?Yt&&St[0]==Yt[0]:!Yt)?NaN:St&&St[0]==0||!Yt?Hr*0:Hr/0);for(Ht=new X(Hr),zr=Ht.c=[],Qe=te.e-Ue.e,Hr=oe+Qe+1,Le||(Le=g,Qe=D(te.e/y)-D(Ue.e/y),Hr=Hr/y|0),_t=0;Yt[_t]==(St[_t]||0);_t++);if(Yt[_t]>(St[_t]||0)&&Qe--,Hr<0)zr.push(1),rt=!0;else{for(Ze=St.length,at=Yt.length,_t=0,Hr+=2,At=n(Le/(Yt[0]+1)),At>1&&(Yt=Se(Yt,At,Le),St=Se(St,At,Le),at=Yt.length,Ze=St.length),Be=at,ve=St.slice(0,at),ie=ve.length;ie<at;ve[ie++]=0);zt=Yt.slice(),zt=[0].concat(zt),$t=Yt[0],Yt[1]>=Le/2&&$t++;do{if(At=0,V=ct(Yt,ve,at,ie),V<0){if(_e=ve[0],at!=ie&&(_e=_e*Le+(ve[1]||0)),At=n(_e/$t),At>1)for(At>=Le&&(At=Le-1),Er=Se(Yt,At,Le),mt=Er.length,ie=ve.length;ct(Er,ve,mt,ie)==1;)At--,ze(Er,at<mt?zt:Yt,mt,Le),mt=Er.length,V=1;else At==0&&(V=At=1),Er=Yt.slice(),mt=Er.length;if(mt<ie&&(Er=[0].concat(Er)),ze(ve,Er,ie,Le),ie=ve.length,V==-1)for(;ct(Yt,ve,at,ie)<1;)At++,ze(ve,at<ie?zt:Yt,ie,Le),ie=ve.length}else V===0&&(At++,ve=[0]);zr[_t++]=At,ve[0]?ve[ie++]=St[Be]||0:(ve=[St[Be]],ie=1)}while((Be++<Ze||ve[0]!=null)&&Hr--);rt=ve[0]!=null,zr[0]||zr.splice(0,1)}if(Le==g){for(_t=1,Hr=zr[0];Hr>=10;Hr/=10,_t++);Ge(Ht,oe+(Ht.e=_t+Qe*y-1)+1,ge,rt)}else Ht.e=Qe,Ht.r=+rt;return Ht}})();function Ae(Se,ct,ze,te){var Ue,oe,ge,Le,V;if(ze==null?ze=l:q(ze,0,8),!Se.c)return Se.toString();if(Ue=Se.c[0],ge=Se.e,ct==null)V=P(Se.c),V=te==1||te==2&&(ge<=A||ge>=m)?ne(V,ge):ce(V,ge,"0");else if(Se=Ge(new X(Se),ct,ze),oe=Se.e,V=P(Se.c),Le=V.length,te==1||te==2&&(ct<=oe||oe<=A)){for(;Le<ct;V+="0",Le++);V=ne(V,oe)}else if(ct-=ge,V=ce(V,oe,"0"),oe+1>Le){if(--ct>0)for(V+=".";ct--;V+="0");}else if(ct+=oe-Le,ct>0)for(oe+1==Le&&(V+=".");ct--;V+="0");return Se.s<0&&Ue?"-"+V:V}function he(Se,ct){for(var ze,te,Ue=1,oe=new X(Se[0]);Ue<Se.length;Ue++)te=new X(Se[Ue]),(!te.s||(ze=G(oe,te))===ct||ze===0&&oe.s===ct)&&(oe=te);return oe}function $e(Se,ct,ze){for(var te=1,Ue=ct.length;!ct[--Ue];ct.pop());for(Ue=ct[0];Ue>=10;Ue/=10,te++);return(ze=te+ze*y-1)>w?Se.c=Se.e=null:ze<E?Se.c=[Se.e=0]:(Se.e=ze,Se.c=ct),Se}W=(function(){var Se=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ct=/^([^.]+)\.$/,ze=/^\.([^.]+)$/,te=/^-?(Infinity|NaN)$/,Ue=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(oe,ge,Le,V){var Qe,_t=Le?ge:ge.replace(Ue,"");if(te.test(_t))oe.s=isNaN(_t)?null:_t<0?-1:1;else{if(!Le&&(_t=_t.replace(Se,function(rt,At,Er){return Qe=(Er=Er.toLowerCase())=="x"?16:Er=="b"?2:8,!V||V==Qe?At:rt}),V&&(Qe=V,_t=_t.replace(ct,"$1").replace(ze,"0.$1")),ge!=_t))return new X(_t,Qe);if(X.DEBUG)throw Error(o+"Not a"+(V?" base "+V:"")+" number: "+ge);oe.s=null}oe.c=oe.e=null}})();function Ge(Se,ct,ze,te){var Ue,oe,ge,Le,V,Qe,_t,rt=Se.c,At=I;if(rt){e:{for(Ue=1,Le=rt[0];Le>=10;Le/=10,Ue++);if(oe=ct-Ue,oe<0)oe+=y,ge=ct,V=rt[Qe=0],_t=n(V/At[Ue-ge-1]%10);else if(Qe=i((oe+1)/y),Qe>=rt.length)if(te){for(;rt.length<=Qe;rt.push(0));V=_t=0,Ue=1,oe%=y,ge=oe-y+1}else break e;else{for(V=Le=rt[Qe],Ue=1;Le>=10;Le/=10,Ue++);oe%=y,ge=oe-y+Ue,_t=ge<0?0:n(V/At[Ue-ge-1]%10)}if(te=te||ct<0||rt[Qe+1]!=null||(ge<0?V:V%At[Ue-ge-1]),te=ze<4?(_t||te)&&(ze==0||ze==(Se.s<0?3:2)):_t>5||_t==5&&(ze==4||te||ze==6&&(oe>0?ge>0?V/At[Ue-ge]:0:rt[Qe-1])%10&1||ze==(Se.s<0?8:7)),ct<1||!rt[0])return rt.length=0,te?(ct-=Se.e+1,rt[0]=At[(y-ct%y)%y],Se.e=-ct||0):rt[0]=Se.e=0,Se;if(oe==0?(rt.length=Qe,Le=1,Qe--):(rt.length=Qe+1,Le=At[y-oe],rt[Qe]=ge>0?n(V/At[Ue-ge]%At[ge])*Le:0),te)for(;;)if(Qe==0){for(oe=1,ge=rt[0];ge>=10;ge/=10,oe++);for(ge=rt[0]+=Le,Le=1;ge>=10;ge/=10,Le++);oe!=Le&&(Se.e++,rt[0]==g&&(rt[0]=1));break}else{if(rt[Qe]+=Le,rt[Qe]!=g)break;rt[Qe--]=0,Le=1}for(oe=rt.length;rt[--oe]===0;rt.pop());}Se.e>w?Se.c=Se.e=null:Se.e<E&&(Se.c=[Se.e=0])}return Se}function Re(Se){var ct,ze=Se.e;return ze===null?Se.toString():(ct=P(Se.c),ct=ze<=A||ze>=m?ne(ct,ze):ce(ct,ze,"0"),Se.s<0?"-"+ct:ct)}return se.absoluteValue=se.abs=function(){var Se=new X(this);return Se.s<0&&(Se.s=1),Se},se.comparedTo=function(Se,ct){return G(this,new X(Se,ct))},se.decimalPlaces=se.dp=function(Se,ct){var ze,te,Ue,oe=this;if(Se!=null)return q(Se,0,T),ct==null?ct=l:q(ct,0,8),Ge(new X(oe),Se+oe.e+1,ct);if(!(ze=oe.c))return null;if(te=((Ue=ze.length-1)-D(this.e/y))*y,Ue=ze[Ue])for(;Ue%10==0;Ue/=10,te--);return te<0&&(te=0),te},se.dividedBy=se.div=function(Se,ct){return pe(this,new X(Se,ct),s,l)},se.dividedToIntegerBy=se.idiv=function(Se,ct){return pe(this,new X(Se,ct),0,1)},se.exponentiatedBy=se.pow=function(Se,ct){var ze,te,Ue,oe,ge,Le,V,Qe,_t,rt=this;if(Se=new X(Se),Se.c&&!Se.isInteger())throw Error(o+"Exponent not an integer: "+Re(Se));if(ct!=null&&(ct=new X(ct)),Le=Se.e>14,!rt.c||!rt.c[0]||rt.c[0]==1&&!rt.e&&rt.c.length==1||!Se.c||!Se.c[0])return _t=new X(Math.pow(+Re(rt),Le?Se.s*(2-Y(Se)):+Re(Se))),ct?_t.mod(ct):_t;if(V=Se.s<0,ct){if(ct.c?!ct.c[0]:!ct.s)return new X(NaN);te=!V&&rt.isInteger()&&ct.isInteger(),te&&(rt=rt.mod(ct))}else{if(Se.e>9&&(rt.e>0||rt.e<-1||(rt.e==0?rt.c[0]>1||Le&&rt.c[1]>=24e7:rt.c[0]<8e13||Le&&rt.c[0]<=9999975e7)))return oe=rt.s<0&&Y(Se)?-0:0,rt.e>-1&&(oe=1/oe),new X(V?1/oe:oe);u&&(oe=i(u/y+2))}for(Le?(ze=new X(.5),V&&(Se.s=1),Qe=Y(Se)):(Ue=Math.abs(+Re(Se)),Qe=Ue%2),_t=new X(O);;){if(Qe){if(_t=_t.times(rt),!_t.c)break;oe?_t.c.length>oe&&(_t.c.length=oe):te&&(_t=_t.mod(ct))}if(Ue){if(Ue=n(Ue/2),Ue===0)break;Qe=Ue%2}else if(Se=Se.times(ze),Ge(Se,Se.e+1,1),Se.e>14)Qe=Y(Se);else{if(Ue=+Re(Se),Ue===0)break;Qe=Ue%2}rt=rt.times(rt),oe?rt.c&&rt.c.length>oe&&(rt.c.length=oe):te&&(rt=rt.mod(ct))}return te?_t:(V&&(_t=O.div(_t)),ct?_t.mod(ct):oe?Ge(_t,u,l,ge):_t)},se.integerValue=function(Se){var ct=new X(this);return Se==null?Se=l:q(Se,0,8),Ge(ct,ct.e+1,Se)},se.isEqualTo=se.eq=function(Se,ct){return G(this,new X(Se,ct))===0},se.isFinite=function(){return!!this.c},se.isGreaterThan=se.gt=function(Se,ct){return G(this,new X(Se,ct))>0},se.isGreaterThanOrEqualTo=se.gte=function(Se,ct){return(ct=G(this,new X(Se,ct)))===1||ct===0},se.isInteger=function(){return!!this.c&&D(this.e/y)>this.c.length-2},se.isLessThan=se.lt=function(Se,ct){return G(this,new X(Se,ct))<0},se.isLessThanOrEqualTo=se.lte=function(Se,ct){return(ct=G(this,new X(Se,ct)))===-1||ct===0},se.isNaN=function(){return!this.s},se.isNegative=function(){return this.s<0},se.isPositive=function(){return this.s>0},se.isZero=function(){return!!this.c&&this.c[0]==0},se.minus=function(Se,ct){var ze,te,Ue,oe,ge=this,Le=ge.s;if(Se=new X(Se,ct),ct=Se.s,!Le||!ct)return new X(NaN);if(Le!=ct)return Se.s=-ct,ge.plus(Se);var V=ge.e/y,Qe=Se.e/y,_t=ge.c,rt=Se.c;if(!V||!Qe){if(!_t||!rt)return _t?(Se.s=-ct,Se):new X(rt?ge:NaN);if(!_t[0]||!rt[0])return rt[0]?(Se.s=-ct,Se):new X(_t[0]?ge:l==3?-0:0)}if(V=D(V),Qe=D(Qe),_t=_t.slice(),Le=V-Qe){for((oe=Le<0)?(Le=-Le,Ue=_t):(Qe=V,Ue=rt),Ue.reverse(),ct=Le;ct--;Ue.push(0));Ue.reverse()}else for(te=(oe=(Le=_t.length)<(ct=rt.length))?Le:ct,Le=ct=0;ct<te;ct++)if(_t[ct]!=rt[ct]){oe=_t[ct]<rt[ct];break}if(oe&&(Ue=_t,_t=rt,rt=Ue,Se.s=-Se.s),ct=(te=rt.length)-(ze=_t.length),ct>0)for(;ct--;_t[ze++]=0);for(ct=g-1;te>Le;){if(_t[--te]<rt[te]){for(ze=te;ze&&!_t[--ze];_t[ze]=ct);--_t[ze],_t[te]+=g}_t[te]-=rt[te]}for(;_t[0]==0;_t.splice(0,1),--Qe);return _t[0]?$e(Se,_t,Qe):(Se.s=l==3?-1:1,Se.c=[Se.e=0],Se)},se.modulo=se.mod=function(Se,ct){var ze,te,Ue=this;return Se=new X(Se,ct),!Ue.c||!Se.s||Se.c&&!Se.c[0]?new X(NaN):!Se.c||Ue.c&&!Ue.c[0]?new X(Ue):(R==9?(te=Se.s,Se.s=1,ze=pe(Ue,Se,0,3),Se.s=te,ze.s*=te):ze=pe(Ue,Se,0,R),Se=Ue.minus(ze.times(Se)),!Se.c[0]&&R==1&&(Se.s=Ue.s),Se)},se.multipliedBy=se.times=function(Se,ct){var ze,te,Ue,oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr,ve=this,ie=ve.c,_e=(Se=new X(Se,ct)).c;if(!ie||!_e||!ie[0]||!_e[0])return!ve.s||!Se.s||ie&&!ie[0]&&!_e||_e&&!_e[0]&&!ie?Se.c=Se.e=Se.s=null:(Se.s*=ve.s,!ie||!_e?Se.c=Se.e=null:(Se.c=[0],Se.e=0)),Se;for(te=D(ve.e/y)+D(Se.e/y),Se.s*=ve.s,V=ie.length,rt=_e.length,V<rt&&(mt=ie,ie=_e,_e=mt,Ue=V,V=rt,rt=Ue),Ue=V+rt,mt=[];Ue--;mt.push(0));for(Ht=g,zr=N,Ue=rt;--Ue>=0;){for(ze=0,At=_e[Ue]%zr,Er=_e[Ue]/zr|0,ge=V,oe=Ue+ge;oe>Ue;)Qe=ie[--ge]%zr,_t=ie[ge]/zr|0,Le=Er*Qe+_t*At,Qe=At*Qe+Le%zr*zr+mt[oe]+ze,ze=(Qe/Ht|0)+(Le/zr|0)+Er*_t,mt[oe--]=Qe%Ht;mt[oe]=ze}return ze?++te:mt.splice(0,1),$e(Se,mt,te)},se.negated=function(){var Se=new X(this);return Se.s=-Se.s||null,Se},se.plus=function(Se,ct){var ze,te=this,Ue=te.s;if(Se=new X(Se,ct),ct=Se.s,!Ue||!ct)return new X(NaN);if(Ue!=ct)return Se.s=-ct,te.minus(Se);var oe=te.e/y,ge=Se.e/y,Le=te.c,V=Se.c;if(!oe||!ge){if(!Le||!V)return new X(Ue/0);if(!Le[0]||!V[0])return V[0]?Se:new X(Le[0]?te:Ue*0)}if(oe=D(oe),ge=D(ge),Le=Le.slice(),Ue=oe-ge){for(Ue>0?(ge=oe,ze=V):(Ue=-Ue,ze=Le),ze.reverse();Ue--;ze.push(0));ze.reverse()}for(Ue=Le.length,ct=V.length,Ue-ct<0&&(ze=V,V=Le,Le=ze,ct=Ue),Ue=0;ct;)Ue=(Le[--ct]=Le[ct]+V[ct]+Ue)/g|0,Le[ct]=g===Le[ct]?0:Le[ct]%g;return Ue&&(Le=[Ue].concat(Le),++ge),$e(Se,Le,ge)},se.precision=se.sd=function(Se,ct){var ze,te,Ue,oe=this;if(Se!=null&&Se!==!!Se)return q(Se,1,T),ct==null?ct=l:q(ct,0,8),Ge(new X(oe),Se,ct);if(!(ze=oe.c))return null;if(Ue=ze.length-1,te=Ue*y+1,Ue=ze[Ue]){for(;Ue%10==0;Ue/=10,te--);for(Ue=ze[0];Ue>=10;Ue/=10,te++);}return Se&&oe.e+1>te&&(te=oe.e+1),te},se.shiftedBy=function(Se){return q(Se,-_,_),this.times("1e"+Se)},se.squareRoot=se.sqrt=function(){var Se,ct,ze,te,Ue,oe=this,ge=oe.c,Le=oe.s,V=oe.e,Qe=s+4,_t=new X("0.5");if(Le!==1||!ge||!ge[0])return new X(!Le||Le<0&&(!ge||ge[0])?NaN:ge?oe:1/0);if(Le=Math.sqrt(+Re(oe)),Le==0||Le==1/0?(ct=P(ge),(ct.length+V)%2==0&&(ct+="0"),Le=Math.sqrt(+ct),V=D((V+1)/2)-(V<0||V%2),Le==1/0?ct="5e"+V:(ct=Le.toExponential(),ct=ct.slice(0,ct.indexOf("e")+1)+V),ze=new X(ct)):ze=new X(Le+""),ze.c[0]){for(V=ze.e,Le=V+Qe,Le<3&&(Le=0);;)if(Ue=ze,ze=_t.times(Ue.plus(pe(oe,Ue,Qe,1))),P(Ue.c).slice(0,Le)===(ct=P(ze.c)).slice(0,Le))if(ze.e<V&&--Le,ct=ct.slice(Le-3,Le+1),ct=="9999"||!te&&ct=="4999"){if(!te&&(Ge(Ue,Ue.e+s+2,0),Ue.times(Ue).eq(oe))){ze=Ue;break}Qe+=4,Le+=4,te=1}else{(!+ct||!+ct.slice(1)&&ct.charAt(0)=="5")&&(Ge(ze,ze.e+s+2,1),Se=!ze.times(ze).eq(oe));break}}return Ge(ze,ze.e+s+1,l,Se)},se.toExponential=function(Se,ct){return Se!=null&&(q(Se,0,T),Se++),Ae(this,Se,ct,1)},se.toFixed=function(Se,ct){return Se!=null&&(q(Se,0,T),Se=Se+this.e+1),Ae(this,Se,ct)},se.toFormat=function(Se,ct,ze){var te,Ue=this;if(ze==null)Se!=null&&ct&&typeof ct=="object"?(ze=ct,ct=null):Se&&typeof Se=="object"?(ze=Se,Se=ct=null):ze=C;else if(typeof ze!="object")throw Error(o+"Argument not an object: "+ze);if(te=Ue.toFixed(Se,ct),Ue.c){var oe,ge=te.split("."),Le=+ze.groupSize,V=+ze.secondaryGroupSize,Qe=ze.groupSeparator||"",_t=ge[0],rt=ge[1],At=Ue.s<0,Er=At?_t.slice(1):_t,mt=Er.length;if(V&&(oe=Le,Le=V,V=oe,mt-=oe),Le>0&&mt>0){for(oe=mt%Le||Le,_t=Er.substr(0,oe);oe<mt;oe+=Le)_t+=Qe+Er.substr(oe,Le);V>0&&(_t+=Qe+Er.slice(oe)),At&&(_t="-"+_t)}te=rt?_t+(ze.decimalSeparator||"")+((V=+ze.fractionGroupSize)?rt.replace(new RegExp("\\d{"+V+"}\\B","g"),"$&"+(ze.fractionGroupSeparator||"")):rt):_t}return(ze.prefix||"")+te+(ze.suffix||"")},se.toFraction=function(Se){var ct,ze,te,Ue,oe,ge,Le,V,Qe,_t,rt,At,Er=this,mt=Er.c;if(Se!=null&&(Le=new X(Se),!Le.isInteger()&&(Le.c||Le.s!==1)||Le.lt(O)))throw Error(o+"Argument "+(Le.isInteger()?"out of range: ":"not an integer: ")+Re(Le));if(!mt)return new X(Er);for(ct=new X(O),Qe=ze=new X(O),te=V=new X(O),At=P(mt),oe=ct.e=At.length-Er.e-1,ct.c[0]=I[(ge=oe%y)<0?y+ge:ge],Se=!Se||Le.comparedTo(ct)>0?oe>0?ct:Qe:Le,ge=w,w=1/0,Le=new X(At),V.c[0]=0;_t=pe(Le,ct,0,1),Ue=ze.plus(_t.times(te)),Ue.comparedTo(Se)!=1;)ze=te,te=Ue,Qe=V.plus(_t.times(Ue=Qe)),V=Ue,ct=Le.minus(_t.times(Ue=ct)),Le=Ue;return Ue=pe(Se.minus(ze),te,0,1),V=V.plus(Ue.times(Qe)),ze=ze.plus(Ue.times(te)),V.s=Qe.s=Er.s,oe=oe*2,rt=pe(Qe,te,oe,l).minus(Er).abs().comparedTo(pe(V,ze,oe,l).minus(Er).abs())<1?[Qe,te]:[V,ze],w=ge,rt},se.toNumber=function(){return+Re(this)},se.toPrecision=function(Se,ct){return Se!=null&&q(Se,1,T),Ae(this,Se,ct,2)},se.toString=function(Se){var ct,ze=this,te=ze.s,Ue=ze.e;return Ue===null?te?(ct="Infinity",te<0&&(ct="-"+ct)):ct="NaN":(Se==null?ct=Ue<=A||Ue>=m?ne(P(ze.c),Ue):ce(P(ze.c),Ue,"0"):Se===10&&F?(ze=Ge(new X(ze),s+Ue+1,l),ct=ce(P(ze.c),ze.e,"0")):(q(Se,2,U.length,"Base"),ct=ae(ce(P(ze.c),Ue,"0"),10,Se,te,!0)),te<0&&ze.c[0]&&(ct="-"+ct)),ct},se.valueOf=se.toJSON=function(){return Re(this)},se._isBigNumber=!0,le!=null&&X.set(le),X}function D(le){var pe=le|0;return le>0||le===pe?pe:pe-1}function P(le){for(var pe,ae,W=1,se=le.length,O=le[0]+"";W<se;){for(pe=le[W++]+"",ae=y-pe.length;ae--;pe="0"+pe);O+=pe}for(se=O.length;O.charCodeAt(--se)===48;);return O.slice(0,se+1||1)}function G(le,pe){var ae,W,se=le.c,O=pe.c,s=le.s,l=pe.s,A=le.e,m=pe.e;if(!s||!l)return null;if(ae=se&&!se[0],W=O&&!O[0],ae||W)return ae?W?0:-l:s;if(s!=l)return s;if(ae=s<0,W=A==m,!se||!O)return W?0:!se^ae?1:-1;if(!W)return A>m^ae?1:-1;for(l=(A=se.length)<(m=O.length)?A:m,s=0;s<l;s++)if(se[s]!=O[s])return se[s]>O[s]^ae?1:-1;return A==m?0:A>m^ae?1:-1}function q(le,pe,ae,W){if(le<pe||le>ae||le!==n(le))throw Error(o+(W||"Argument")+(typeof le=="number"?le<pe||le>ae?" out of range: ":" not an integer: ":" not a primitive number: ")+String(le))}function Y(le){var pe=le.c.length-1;return D(le.e/y)==pe&&le.c[pe]%2!=0}function ne(le,pe){return(le.length>1?le.charAt(0)+"."+le.slice(1):le)+(pe<0?"e":"e+")+pe}function ce(le,pe,ae){var W,se;if(pe<0){for(se=ae+".";++pe;se+=ae);le=se+le}else if(W=le.length,++pe>W){for(se=ae,pe-=W;--pe;se+=ae);le+=se}else pe<W&&(le=le.slice(0,pe)+"."+le.slice(pe));return le}t=M(),t.default=t.BigNumber=t,typeof define=="function"&&define.amd?define(function(){return t}):typeof yV<"u"&&yV.exports?yV.exports=t:(e||(e=typeof self<"u"&&self?self:window),e.BigNumber=t)})(AJe)});var gJe=ir(I0e=>{"use strict";J();K();z();Object.defineProperty(I0e,"__esModule",{value:!0});var NNt=pJe(),S0e=class{BigNum;constructor(){this.BigNum=(t,r)=>{let i=NNt.BigNumber.clone({DECIMAL_PLACES:r});return new i(t)}}winstonToAr(t,{formatted:r=!1,decimals:i=12,trim:n=!0}={}){let o=this.stringToBigNum(t,i).shiftedBy(-12);return r?o.toFormat(i):o.toFixed(i)}arToWinston(t,{formatted:r=!1}={}){let i=this.stringToBigNum(t).shiftedBy(12);return r?i.toFormat():i.toFixed(0)}compare(t,r){let i=this.stringToBigNum(t),n=this.stringToBigNum(r);return i.comparedTo(n)}isEqual(t,r){return this.compare(t,r)===0}isLessThan(t,r){let i=this.stringToBigNum(t),n=this.stringToBigNum(r);return i.isLessThan(n)}isGreaterThan(t,r){let i=this.stringToBigNum(t),n=this.stringToBigNum(r);return i.isGreaterThan(n)}add(t,r){let i=this.stringToBigNum(t),n=this.stringToBigNum(r);return i.plus(r).toFixed(0)}sub(t,r){let i=this.stringToBigNum(t),n=this.stringToBigNum(r);return i.minus(r).toFixed(0)}stringToBigNum(t,r=12){return this.BigNum(t,r)}};I0e.default=S0e});var _Je=ir(w0e=>{"use strict";J();K();z();Object.defineProperty(w0e,"__esModule",{value:!0});var C0e=class{METHOD_GET="GET";METHOD_POST="POST";config;constructor(t){this.applyConfig(t)}applyConfig(t){this.config=this.mergeDefaults(t)}getConfig(){return this.config}mergeDefaults(t){let r=t.protocol||"http",i=t.port||(r==="https"?443:80);return{host:t.host||"127.0.0.1",protocol:r,port:i,timeout:t.timeout||2e4,logging:t.logging||!1,logger:t.logger||console.log,network:t.network}}async get(t,r){return await this.request(t,{...r,method:this.METHOD_GET})}async post(t,r,i){let n=new Headers(i?.headers||{});return n.get("content-type")?.includes("application/json")||n.append("content-type","application/json"),n.append("accept","application/json, text/plain, */*"),await this.request(t,{...i,method:this.METHOD_POST,body:typeof r!="string"?JSON.stringify(r):r,headers:n})}async request(t,r){let i=new Headers(r?.headers||{}),n=`${this.config.protocol}://${this.config.host}:${this.config.port}`,o=r?.responseType;delete r?.responseType,t.startsWith("/")&&(t=t.slice(1)),this.config.network&&i.append("x-network",this.config.network),this.config.logging&&this.config.logger(`Requesting: ${n}/${t}`);let d=await fetch(`${n}/${t}`,{...r||{},headers:i});this.config.logging&&this.config.logger(`Response: ${d.url} - ${d.status}`);let y=d.headers.get("content-type")?.match(/charset=([^()<>@,;:\"/[\]?.=\s]*)/i)?.[1],_=d,I=async()=>{if(y)try{_.data=new TextDecoder(y).decode(await d.arrayBuffer())}catch{_.data=await d.text()}else _.data=await d.text()};if(o==="arraybuffer")_.data=await d.arrayBuffer();else if(o==="text")await I();else if(o==="webstream")_.data=xNt(d.body);else try{let N=await d.clone().json();typeof N!="object"?await I():_.data=await d.json(),N=null}catch{await I()}return _}};w0e.default=C0e;var xNt=e=>{let t=e;return typeof t[Symbol.asyncIterator]>"u"?(t[Symbol.asyncIterator]=TNt(e),t):e},TNt=function(e){return async function*(){let r=e.getReader();try{for(;;){let{done:i,value:n}=await r.read();if(i)return;yield n}}finally{r.releaseLock()}}}});var mJe=ir(N0e=>{"use strict";J();K();z();Object.defineProperty(N0e,"__esModule",{value:!0});var O0e=class{api;constructor(t){this.api=t}getInfo(){return this.api.get("info").then(t=>t.data)}getPeers(){return this.api.get("peers").then(t=>t.data)}};N0e.default=O0e});var VD=ir(qD=>{"use strict";J();K();z();Object.defineProperty(qD,"__esModule",{value:!0});qD.getError=void 0;var x0e=class extends Error{type;response;constructor(t,r={}){r.message?super(r.message):super(),this.type=t,this.response=r.response}getType(){return this.type}};qD.default=x0e;function BNt(e){let t=e.data;if(typeof e.data=="string")try{t=JSON.parse(e.data)}catch{}if(e.data instanceof ArrayBuffer||e.data instanceof Uint8Array)try{t=JSON.parse(t.toString())}catch{}return t?t.error||t:e.statusText||"unknown"}qD.getError=BNt});var P0e=ir(us=>{"use strict";J();K();z();Object.defineProperty(us,"__esModule",{value:!0});us.debug=us.validatePath=us.arrayCompare=us.bufferToInt=us.intToBuffer=us.arrayFlatten=us.generateProofs=us.buildLayers=us.generateTransactionChunks=us.generateTree=us.computeRootHash=us.generateLeaves=us.chunkData=us.MIN_CHUNK_SIZE=us.MAX_CHUNK_SIZE=void 0;var bV=$D(),yJe=Rm();us.MAX_CHUNK_SIZE=256*1024;us.MIN_CHUNK_SIZE=32*1024;var zD=32,HO=32;async function B0e(e){let t=[],r=e,i=0;for(;r.byteLength>=us.MAX_CHUNK_SIZE;){let n=us.MAX_CHUNK_SIZE,o=r.byteLength-us.MAX_CHUNK_SIZE;o>0&&o<us.MIN_CHUNK_SIZE&&(n=Math.ceil(r.byteLength/2));let d=r.slice(0,n),g=await bV.default.crypto.hash(d);i+=d.byteLength,t.push({dataHash:g,minByteRange:i-d.byteLength,maxByteRange:i}),r=r.slice(n)}return t.push({dataHash:await bV.default.crypto.hash(r),minByteRange:i,maxByteRange:i+r.byteLength}),t}us.chunkData=B0e;async function M0e(e){return Promise.all(e.map(async({dataHash:t,minByteRange:r,maxByteRange:i})=>({type:"leaf",id:await ol(await Promise.all([ol(t),ol(KD(i))])),dataHash:t,minByteRange:r,maxByteRange:i})))}us.generateLeaves=M0e;async function MNt(e){return(await bJe(e)).id}us.computeRootHash=MNt;async function bJe(e){return await EV(await M0e(await B0e(e)))}us.generateTree=bJe;async function DNt(e){let t=await B0e(e),r=await M0e(t),i=await EV(r),n=await EJe(i),o=t.slice(-1)[0];return o.maxByteRange-o.minByteRange===0&&(t.splice(t.length-1,1),n.splice(n.length-1,1)),{data_root:i.id,chunks:t,proofs:n}}us.generateTransactionChunks=DNt;async function EV(e,t=0){if(e.length<2)return e[0];let r=[];for(let i=0;i<e.length;i+=2)r.push(await kNt(e[i],e[i+1]));return EV(r,t+1)}us.buildLayers=EV;function EJe(e){let t=T0e(e);return Array.isArray(t)?D0e(t):[t]}us.generateProofs=EJe;function T0e(e,t=new Uint8Array,r=0){if(e.type=="leaf")return{offset:e.maxByteRange-1,proof:(0,yJe.concatBuffers)([t,e.dataHash,KD(e.maxByteRange)])};if(e.type=="branch"){let i=(0,yJe.concatBuffers)([t,e.leftChild.id,e.rightChild.id,KD(e.byteRange)]);return[T0e(e.leftChild,i,r+1),T0e(e.rightChild,i,r+1)]}throw new Error("Unexpected node type")}function D0e(e){let t=[];return e.forEach(r=>{Array.isArray(r)?t.push(...D0e(r)):t.push(r)}),t}us.arrayFlatten=D0e;async function kNt(e,t){return t?{type:"branch",id:await ol([await ol(e.id),await ol(t.id),await ol(KD(e.maxByteRange))]),byteRange:e.maxByteRange,maxByteRange:t.maxByteRange,leftChild:e,rightChild:t}:e}async function ol(e){return Array.isArray(e)&&(e=bV.default.utils.concatBuffers(e)),new Uint8Array(await bV.default.crypto.hash(e))}function KD(e){let t=new Uint8Array(zD);for(var r=t.length-1;r>=0;r--){var i=e%256;t[r]=i,e=(e-i)/256}return t}us.intToBuffer=KD;function k0e(e){let t=0;for(var r=0;r<e.length;r++)t*=256,t+=e[r];return t}us.bufferToInt=k0e;var PNt=(e,t)=>e.every((r,i)=>t[i]===r);us.arrayCompare=PNt;async function JD(e,t,r,i,n){if(i<=0)return!1;if(t>=i)return JD(e,0,i-1,i,n);if(t<0)return JD(e,0,0,i,n);if(n.length==HO+zD){let N=n.slice(0,HO),T=n.slice(N.length,N.length+zD),M=await ol([await ol(N),await ol(T)]);return(0,us.arrayCompare)(e,M)?{offset:i-1,leftBound:r,rightBound:i,chunkSize:i-r}:!1}let o=n.slice(0,HO),d=n.slice(o.length,o.length+HO),g=n.slice(o.length+d.length,o.length+d.length+zD),y=k0e(g),_=n.slice(o.length+d.length+g.length),I=await ol([await ol(o),await ol(d),await ol(g)]);return(0,us.arrayCompare)(e,I)?t<y?await JD(o,t,r,Math.min(i,y),_):await JD(d,t,Math.max(r,y),i,_):!1}us.validatePath=JD;async function vJe(e,t=""){if(e.byteLength<1)return t;let r=e.slice(0,HO),i=e.slice(r.length,r.length+HO),n=e.slice(r.length+i.length,r.length+i.length+zD),o=k0e(n),d=e.slice(r.length+i.length+n.length),g=await ol([await ol(r),await ol(i),await ol(n)]),y=`${t}
|
|
${JSON.stringify(fe.from(r))},${JSON.stringify(fe.from(i))},${o} => ${JSON.stringify(g)}`;return vJe(d,y)}us.debug=vJe});var CJe=ir(vV=>{"use strict";J();K();z();Object.defineProperty(vV,"__esModule",{value:!0});vV.TransactionUploader=void 0;var RJe=YD(),LNt=Rm(),L0e=VD(),UNt=P0e(),SJe=1,FNt=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],IJe=1e3*40,U0e=class e{api;chunkIndex=0;txPosted=!1;transaction;lastRequestTimeEnd=0;totalErrors=0;data;lastResponseStatus=0;lastResponseError="";get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(t,r){if(this.api=t,!r.id)throw new Error("Transaction is not signed");if(!r.chunks)throw new Error("Transaction chunks not prepared");this.data=r.data,this.transaction=new RJe.default(Object.assign({},r,{data:new Uint8Array(0)}))}async uploadChunk(t){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let r=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+IJe-Date.now(),IJe);if(r>0&&(r=r-r*Math.random()*.3,await new Promise(d=>setTimeout(d,r))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}t&&(this.chunkIndex=t);let i=this.transaction.getChunk(t||this.chunkIndex,this.data);if(!await(0,UNt.validatePath)(this.transaction.chunks.data_root,parseInt(i.offset),0,parseInt(i.data_size),LNt.b64UrlToBuffer(i.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let o=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(d=>(console.error(d.message),{status:-1,data:{error:d.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=o.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,L0e.getError)(o),FNt.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(t,r,i){if(!r||typeof r.chunkIndex!="number"||typeof r.transaction!="object")throw new Error("Serialized object does not match expected format.");var n=new RJe.default(r.transaction);n.chunks||await n.prepareChunks(i);let o=new e(t,n);if(o.chunkIndex=r.chunkIndex,o.lastRequestTimeEnd=r.lastRequestTimeEnd,o.lastResponseError=r.lastResponseError,o.lastResponseStatus=r.lastResponseStatus,o.txPosted=r.txPosted,o.data=i,o.transaction.data_root!==r.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return o}static async fromTransactionId(t,r){let i=await t.get(`tx/${r}`);if(i.status!==200)throw new Error(`Tx ${r} not found: ${i.status}`);let n=i.data;return n.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:n}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=SJe){this.transaction.data=this.data;let i=await this.api.post("tx",this.transaction).catch(n=>(console.error(n),{status:-1,data:{error:n.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=i.status,this.transaction.data=new Uint8Array(0),i.status>=200&&i.status<300){this.txPosted=!0,this.chunkIndex=SJe;return}throw this.lastResponseError=(0,L0e.getError)(i),new Error(`Unable to upload transaction: ${i.status}, ${this.lastResponseError}`)}let r=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=r.status,!(r.status>=200&&r.status<300))throw this.lastResponseError=(0,L0e.getError)(r),new Error(`Unable to upload transaction: ${r.status}, ${this.lastResponseError}`);this.txPosted=!0}};vV.TransactionUploader=U0e});var RV=ir((c3n,wJe)=>{"use strict";J();K();z();wJe.exports={}});var OJe=ir(G0e=>{"use strict";J();K();z();Object.defineProperty(G0e,"__esModule",{value:!0});var F0e=VD(),Uv=YD(),WD=Rm(),Q0e=CJe();RV();var H0e=class{api;crypto;chunks;constructor(t,r,i){this.api=t,this.crypto=r,this.chunks=i}async getTransactionAnchor(){let t=await this.api.get("tx_anchor");if(!t.data.match(/^[a-z0-9_-]{43,}/i)||!t.ok)throw new Error(`Could not getTransactionAnchor. Received: ${t.data}. Status: ${t.status}, ${t.statusText}`);return t.data}async getPrice(t,r){let i=r?`price/${t}/${r}`:`price/${t}`,n=await this.api.get(i);if(!/^\d+$/.test(n.data)||!n.ok)throw new Error(`Could not getPrice. Received: ${n.data}. Status: ${n.status}, ${n.statusText}`);return n.data}async get(t){let r=await this.api.get(`tx/${t}`);if(r.status==200){let i=parseInt(r.data.data_size);if(r.data.format>=2&&i>0&&i<=1024*1024*12){let n=await this.getData(t);return new Uv.default({...r.data,data:n})}return new Uv.default({...r.data,format:r.data.format||1})}throw r.status==404?new F0e.default("TX_NOT_FOUND"):r.status==410?new F0e.default("TX_FAILED"):new F0e.default("TX_INVALID")}fromRaw(t){return new Uv.default(t)}async search(t,r){return this.api.post("arql",{op:"equals",expr1:t,expr2:r}).then(i=>i.data?i.data:[])}getStatus(t){return this.api.get(`tx/${t}/status`).then(r=>r.status==200?{status:200,confirmed:r.data}:{status:r.status,confirmed:null})}async getData(t,r){let i;try{i=await this.chunks.downloadChunkedData(t)}catch(n){console.error(`Error while trying to download chunked data for ${t}`),console.error(n)}if(!i){console.warn(`Falling back to gateway cache for ${t}`);try{let{data:n,ok:o,status:d,statusText:g}=await this.api.get(`/${t}`,{responseType:"arraybuffer"});if(!o)throw new Error("Bad http status code",{cause:{status:d,statusText:g}});i=n}catch(n){console.error(`Error while trying to download contiguous data from gateway cache for ${t}`),console.error(n)}}if(!i)throw new Error(`${t} data was not found!`);return r&&r.decode&&!r.string?i:r&&r.decode&&r.string?WD.bufferToString(i):WD.bufferTob64Url(i)}async sign(t,r,i){let o=typeof r=="object"&&(g=>{let y=!0;return["n","e","d","p","q","dp","dq","qi"].map(_=>!(_ in g)&&(y=!1)),y})(r),d=typeof arweaveWallet=="object";if(!o&&!d)throw new Error("No valid JWK or external wallet found to sign transaction.");if(o){t.setOwner(r.n);let g=await t.getSignatureData(),y=await this.crypto.sign(r,g,i),_=await this.crypto.hash(y);t.setSignature({id:WD.bufferTob64Url(_),owner:r.n,signature:WD.bufferTob64Url(y)})}else if(d){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let g=await arweaveWallet.sign(t,i);t.setSignature({id:g.id,owner:g.owner,reward:g.reward,tags:g.tags,signature:g.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(t){let r=await t.getSignatureData(),i=t.get("signature",{decode:!0,string:!1}),n=WD.bufferTob64Url(await this.crypto.hash(i));if(t.id!==n)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(t.owner,r,i)}async post(t){if(typeof t=="string"?t=new Uv.default(JSON.parse(t)):typeof t.readInt32BE=="function"?t=new Uv.default(JSON.parse(t.toString())):typeof t=="object"&&!(t instanceof Uv.default)&&(t=new Uv.default(t)),!(t instanceof Uv.default))throw new Error("Must be Transaction object");t.chunks||await t.prepareChunks(t.data);let r=await this.getUploader(t,t.data);try{for(;!r.isComplete;)await r.uploadChunk()}catch(i){if(r.lastResponseStatus>0)return{status:r.lastResponseStatus,statusText:r.lastResponseError,data:{error:r.lastResponseError}};throw i}return{status:200,statusText:"OK",data:{}}}async getUploader(t,r){let i;if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),t instanceof Uv.default){if(r||(r=t.data),!(r instanceof Uint8Array))throw new Error("Data format is invalid");t.chunks||await t.prepareChunks(r),i=new Q0e.TransactionUploader(this.api,t),(!i.data||i.data.length===0)&&(i.data=r)}else{if(typeof t=="string"&&(t=await Q0e.TransactionUploader.fromTransactionId(this.api,t)),!r||!(r instanceof Uint8Array))throw new Error("Must provide data when resuming upload");i=await Q0e.TransactionUploader.fromSerialized(this.api,t,r)}return i}async*upload(t,r){let i=await this.getUploader(t,r);for(;!i.isComplete;)await i.uploadChunk(),yield i;return i}};G0e.default=H0e});var xJe=ir(V0e=>{"use strict";J();K();z();Object.defineProperty(V0e,"__esModule",{value:!0});var NJe=Rm();RV();var q0e=class{api;crypto;constructor(t,r){this.api=t,this.crypto=r}getBalance(t){return this.api.get(`wallet/${t}/balance`).then(r=>r.data)}getLastTransactionID(t){return this.api.get(`wallet/${t}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(t){return!t||t==="use_wallet"?this.getAddress():this.getAddress(t)}async getAddress(t){if(!t||t==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(t.n)}async ownerToAddress(t){return NJe.bufferTob64Url(await this.crypto.hash(NJe.b64UrlToBuffer(t)))}};V0e.default=q0e});var BJe=ir(XD=>{"use strict";J();K();z();Object.defineProperty(XD,"__esModule",{value:!0});XD.SiloResource=void 0;var TJe=Rm(),J0e=class{api;crypto;transactions;constructor(t,r,i){this.api=t,this.crypto=r,this.transactions=i}async get(t){if(!t)throw new Error("No Silo URI specified");let r=await this.parseUri(t),i=await this.transactions.search("Silo-Name",r.getAccessKey());if(i.length==0)throw new Error(`No data could be found for the Silo URI: ${t}`);let n=await this.transactions.get(i[0]);if(!n)throw new Error(`No data could be found for the Silo URI: ${t}`);let o=n.get("data",{decode:!0,string:!1});return this.crypto.decrypt(o,r.getEncryptionKey())}async readTransactionData(t,r){if(!r)throw new Error("No Silo URI specified");let i=await this.parseUri(r),n=t.get("data",{decode:!0,string:!1});return this.crypto.decrypt(n,i.getEncryptionKey())}async parseUri(t){let r=t.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");let i=r[1],n=Math.pow(2,parseInt(r[2])),o=await this.hash(TJe.stringToBuffer(i),n),d=TJe.bufferTob64(o.slice(0,15)),g=await this.hash(o.slice(16,31),1);return new SV(t,d,g)}async hash(t,r){let i=await this.crypto.hash(t);for(let n=0;n<r-1;n++)i=await this.crypto.hash(i);return i}};XD.default=J0e;var SV=class{uri;accessKey;encryptionKey;constructor(t,r,i){this.uri=t,this.accessKey=r,this.encryptionKey=i}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};XD.SiloResource=SV});var DJe=ir(K0e=>{"use strict";J();K();z();Object.defineProperty(K0e,"__esModule",{value:!0});var MJe=VD(),QNt=Rm(),z0e=class{api;constructor(t){this.api=t}async getTransactionOffset(t){let r=await this.api.get(`tx/${t}/offset`);if(r.status===200)return r.data;throw new Error(`Unable to get transaction offset: ${(0,MJe.getError)(r)}`)}async getChunk(t){let r=await this.api.get(`chunk/${t}`);if(r.status===200)return r.data;throw new Error(`Unable to get chunk: ${(0,MJe.getError)(r)}`)}async getChunkData(t){let r=await this.getChunk(t);return QNt.b64UrlToBuffer(r.chunk)}firstChunkOffset(t){return parseInt(t.offset)-parseInt(t.size)+1}async downloadChunkedData(t){let r=await this.getTransactionOffset(t),i=parseInt(r.size),o=parseInt(r.offset)-i+1,d=new Uint8Array(i),g=0;for(;g<i;){this.api.config.logging&&console.log(`[chunk] ${g}/${i}`);let y;try{y=await this.getChunkData(o+g)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${o+g}`),console.error("[chunk] This could indicate that the chunk wasn't uploaded or hasn't yet seeded properly to a particular gateway/node")}if(y)d.set(y,g),g+=y.length;else throw new Error(`Couldn't complete data download at ${g}/${i}`)}return d}};K0e.default=z0e});var PJe=ir(Y0e=>{"use strict";J();K();z();Object.defineProperty(Y0e,"__esModule",{value:!0});var kJe=VD();RV();var $0e=class e{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(t,r){this.api=t,this.network=r}async get(t){let r=await this.api.get(`${e.HASH_ENDPOINT}${t}`);if(r.status===200)return r.data;throw r.status===404?new kJe.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${r}`)}async getByHeight(t){let r=await this.api.get(`${e.HEIGHT_ENDPOINT}${t}`);if(r.status===200)return r.data;throw r.status===404?new kJe.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${r}`)}async getCurrent(){let{current:t}=await this.network.getInfo();return await this.get(t)}};Y0e.default=$0e});var $D=ir(X0e=>{"use strict";J();K();z();Object.defineProperty(X0e,"__esModule",{value:!0});var HNt=gJe(),GNt=_Je(),qNt=R0e(),VNt=mJe(),JNt=OJe(),zNt=xJe(),LJe=YD(),ZD=Rm(),KNt=BJe(),$Nt=DJe(),YNt=PJe(),W0e=class e{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new qNt.default;static utils=ZD;constructor(t){this.api=new GNt.default(t),this.wallets=new zNt.default(this.api,e.crypto),this.chunks=new $Nt.default(this.api),this.transactions=new JNt.default(this.api,e.crypto,this.chunks),this.silo=new KNt.default(this.api,this.crypto,this.transactions),this.network=new VNt.default(this.api),this.blocks=new YNt.default(this.api,this.network),this.ar=new HNt.default}get crypto(){return e.crypto}get utils(){return e.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(t,r){let i={};if(Object.assign(i,t),!t.data&&!(t.target&&t.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(t.owner==null&&r&&r!=="use_wallet"&&(i.owner=r.n),t.last_tx==null&&(i.last_tx=await this.transactions.getTransactionAnchor()),typeof t.data=="string"&&(t.data=ZD.stringToBuffer(t.data)),t.data instanceof ArrayBuffer&&(t.data=new Uint8Array(t.data)),t.data&&!(t.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(t.reward==null){let o=t.data?t.data.byteLength:0;i.reward=await this.transactions.getPrice(o,i.target)}i.data_root="",i.data_size=t.data?t.data.byteLength.toString():"0",i.data=t.data||new Uint8Array(0);let n=new LJe.default(i);return await n.getSignatureData(),n}async createSiloTransaction(t,r,i){let n={};if(Object.assign(n,t),!t.data)throw new Error("Silo transactions must have a 'data' value");if(!i)throw new Error("No Silo URI specified.");if(t.target||t.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(t.owner==null){if(!r||!r.n)throw new Error("A new Arweave transaction must either have an 'owner' attribute, or you must provide the jwk parameter.");n.owner=r.n}t.last_tx==null&&(n.last_tx=await this.transactions.getTransactionAnchor());let o=await this.silo.parseUri(i);if(typeof t.data=="string"){let g=await this.crypto.encrypt(ZD.stringToBuffer(t.data),o.getEncryptionKey());n.reward=await this.transactions.getPrice(g.byteLength),n.data=ZD.bufferTob64Url(g)}if(t.data instanceof Uint8Array){let g=await this.crypto.encrypt(t.data,o.getEncryptionKey());n.reward=await this.transactions.getPrice(g.byteLength),n.data=ZD.bufferTob64Url(g)}let d=new LJe.default(n);return d.addTag("Silo-Name",o.getAccessKey()),d.addTag("Silo-Version","0.1.0"),d}arql(t){return this.api.post("/arql",t).then(r=>r.data||[])}};X0e.default=W0e});var QJe=ir(Z0e=>{"use strict";J();K();z();Object.defineProperty(Z0e,"__esModule",{value:!0});var G1=$D();async function UJe(e){if(Array.isArray(e)){let i=G1.default.utils.concatBuffers([G1.default.utils.stringToBuffer("list"),G1.default.utils.stringToBuffer(e.length.toString())]);return await FJe(e,await G1.default.crypto.hash(i,"SHA-384"))}let t=G1.default.utils.concatBuffers([G1.default.utils.stringToBuffer("blob"),G1.default.utils.stringToBuffer(e.byteLength.toString())]),r=G1.default.utils.concatBuffers([await G1.default.crypto.hash(t,"SHA-384"),await G1.default.crypto.hash(e,"SHA-384")]);return await G1.default.crypto.hash(r,"SHA-384")}Z0e.default=UJe;async function FJe(e,t){if(e.length<1)return t;let r=G1.default.utils.concatBuffers([t,await UJe(e[0])]),i=await G1.default.crypto.hash(r,"SHA-384");return await FJe(e.slice(1),i)}});var YD=ir(ek=>{"use strict";J();K();z();Object.defineProperty(ek,"__esModule",{value:!0});ek.Tag=void 0;var Pf=Rm(),WNt=QJe(),XNt=P0e(),IV=class{get(t,r){if(!Object.getOwnPropertyNames(this).includes(t))throw new Error(`Field "${t}" is not a property of the Arweave Transaction class.`);if(this[t]instanceof Uint8Array)return r&&r.decode&&r.string?Pf.bufferToString(this[t]):r&&r.decode&&!r.string?this[t]:Pf.bufferTob64Url(this[t]);if(this[t]instanceof Array){if(r?.decode!==void 0||r?.string!==void 0)throw t==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[t]}return r&&r.decode==!0?r&&r.string?Pf.b64UrlToString(this[t]):Pf.b64UrlToBuffer(this[t]):this[t]}},jD=class extends IV{name;value;constructor(t,r,i=!1){super(),this.name=t,this.value=r}};ek.Tag=jD;var j0e=class extends IV{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(t={}){super(),Object.assign(this,t),typeof this.data=="string"&&(this.data=Pf.b64UrlToBuffer(this.data)),t.tags&&(this.tags=t.tags.map(r=>new jD(r.name,r.value)))}addTag(t,r){this.tags.push(new jD(Pf.stringToB64Url(t),Pf.stringToB64Url(r)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:Pf.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(t){this.owner=t}setSignature({id:t,owner:r,reward:i,tags:n,signature:o}){this.id=t,this.owner=r,i&&(this.reward=i),n&&(this.tags=n),this.signature=o}async prepareChunks(t){!this.chunks&&t.byteLength>0&&(this.chunks=await(0,XNt.generateTransactionChunks)(t),this.data_root=Pf.bufferTob64Url(this.chunks.data_root)),!this.chunks&&t.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(t,r){if(!this.chunks)throw new Error("Chunks have not been prepared");let i=this.chunks.proofs[t],n=this.chunks.chunks[t];return{data_root:this.data_root,data_size:this.data_size,data_path:Pf.bufferTob64Url(i.proof),offset:i.offset.toString(),chunk:Pf.bufferTob64Url(r.slice(n.minByteRange,n.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let t=this.tags.reduce((i,n)=>Pf.concatBuffers([i,n.get("name",{decode:!0,string:!1}),n.get("value",{decode:!0,string:!1})]),new Uint8Array);return Pf.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),Pf.stringToBuffer(this.quantity),Pf.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),t]);case 2:this.data_root||await this.prepareChunks(this.data);let r=this.tags.map(i=>[i.get("name",{decode:!0,string:!1}),i.get("value",{decode:!0,string:!1})]);return await(0,WNt.default)([Pf.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),Pf.stringToBuffer(this.quantity),Pf.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),r,Pf.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};ek.default=j0e});var HJe=ir(CV=>{"use strict";J();K();z();Object.defineProperty(CV,"__esModule",{value:!0});CV.getDefaultConfig=void 0;var ZNt=(e,t)=>{let r=/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,i=t.split("."),n=i[i.length-1],o=["localhost","[::1]"];return o.includes(t)||e=="file"||o.includes(n)||!!t.match(r)||!!n.match(r)},jNt=e=>{let t=e.charAt(0)==="[",r=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;return!!e.match(r)||t},ext=(e,t)=>{if(ZNt(e,t))return{protocol:"https",host:"arweave.net",port:443};if(!jNt(t)){let r=t.split(".");if(r.length>=3){r.shift();let i=r.join(".");return{protocol:e,host:i}}}return{protocol:e,host:t}};CV.getDefaultConfig=ext});var ede=ir(B6=>{"use strict";J();K();z();var txt=B6&&B6.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),rxt=B6&&B6.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&txt(t,e,r)};Object.defineProperty(B6,"__esModule",{value:!0});var GO=$D(),nxt=HJe();GO.default.init=function(e={}){let t={host:"arweave.net",port:443,protocol:"https"};if(typeof location!="object"||!location.protocol||!location.hostname)return new GO.default({...e,...t});let r=location.protocol.replace(":",""),i=location.hostname,n=location.port?parseInt(location.port):r=="https"?443:80,o=(0,nxt.getDefaultConfig)(r,i),d=e.protocol||o.protocol,g=e.host||o.host,y=e.port||o.port||n;return new GO.default({...e,host:g,protocol:d,port:y})};typeof globalThis=="object"?globalThis.Arweave=GO.default:typeof self=="object"&&(self.Arweave=GO.default);rxt($D(),B6);B6.default=GO.default});var rde=ir((JJe,tde)=>{"use strict";J();K();z();(function(e,t){"use strict";function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=(mh(),Zu(ky)).Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,this.negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,this.words[E]|=w<<x&67108863,this.words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,this.words[E]|=w<<x&67108863,this.words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,this.words[w]|=x&67108863,E>=18?(E-=18,w+=1,this.words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,this.words[w]|=x&67108863,E>=18?(E-=18,w+=1,this.words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){this.words=[0],this.length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<this.length;w++){var x=this.words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==this.length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var A=this._zeroBits(this.words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},n.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},n.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var A=0;A<l.length;A++)this.words[A]=this.words[A]&s.words[A];return this.length=l.length,this.strip()},n.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},n.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},n.prototype.iuxor=function(s){var l,A;this.length>s.length?(l=this,A=s):(l=s,A=this);for(var m=0;m<A.length;m++)this.words[m]=l.words[m]^A.words[m];if(this!==l)for(;m<l.length;m++)this.words[m]=l.words[m];return this.length=l.length,this.strip()},n.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},n.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)this.words[m]=~this.words[m]&67108863;return A>0&&(this.words[m]=~this.words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?this.words[A]=this.words[A]|1<<m:this.words[A]=this.words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;this.length>s.length?(A=this,m=s):(A=s,m=this);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,this.words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,this.words[w]=l&67108863,E=l>>>26;if(this.length=A.length,E!==0)this.words[this.length]=E,this.length++;else if(A!==this)for(;w<A.length;w++)this.words[w]=A.words[w];return this},n.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var A=this.cmp(s);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,E;A>0?(m=this,E=s):(m=s,E=this);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,this.words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,this.words[x]=l&67108863;if(w===0&&x<m.length&&m!==this)for(;x<m.length;x++)this.words[x]=m.words[x];return this.length=Math.max(this.length,x),m!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=this.length+s.length;return this.length===10&&s.length===10?A=D(this,s,l):m<63?A=M(this,s,l):m<1024?A=P(this,s,l):A=G(this,s,l),A};function q(O,s){this.x=O,this.y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array(this.length+s.length),G(this,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<this.length;A++){var m=(this.words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,this.words[A]=E&67108863}return l!==0&&(this.words[A]=l,this.length++),this},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<this.length;E++){var x=this.words[E]&m,R=(this.words[E]|0)-x<<l;this.words[E]=R|w,w=x>>>26-l}w&&(this.words[E]=w,this.length++)}if(A!==0){for(E=this.length-1;E>=0;E--)this.words[E+A]=this.words[E];for(E=0;E<A;E++)this.words[E]=0;this.length+=A}return this.strip()},n.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,this.length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=this.words[u];R.length=w}if(w!==0)if(this.length>w)for(this.length-=w,u=0;u<this.length;u++)this.words[u]=this.words[u+w];else this.words[0]=0,this.length=1;var C=0;for(u=this.length-1;u>=0&&(C!==0||u>=m);u--){var U=this.words[u]|0;this.words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r(this.negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if(this.length<=A)return!1;var E=this.words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(l!==0&&A++,this.length=Math.min(A,this.length),l!==0){var m=67108863^67108863>>>l<<l;this.words[this.length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},n.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=(this.words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),this.words[E+A]=w&67108863}for(;E<this.length-A;E++)w=(this.words[E+A]|0)+x,x=w>>26,this.words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<this.length;E++)w=-(this.words[E]|0)+x,x=w>>26,this.words[E]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=this.length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return this.negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):this.negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):(this.negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>this.length||this.cmp(s)<0?{div:new n(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=this.length-1;m>=0;m--)A=(l*A+(this.words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=this.length-1;A>=0;A--){var m=(this.words[A]|0)+l*67108864;this.words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(s){return this.words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if(this.length<=A)return this._expand(A+1),this.words[A]|=m,this;for(var E=m,w=A;E!==0&&w<this.length;w++){var x=this.words[w]|0;x+=E,E=x>>>26,x&=67108863,this.words[w]=x}return E!==0&&(this.words[w]=E,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var A;if(this.length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=this.words[0]|0;A=m===s?0:m<s?-1:1}return this.negative!==0?-A|0:A},n.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,A=this.length-1;A>=0;A--){var m=this.words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(s){return this.red=s,this},n.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},n.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},n.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},n.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},n.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},n.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},n.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){this.name=O,this.p=new n(s,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil(this.n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),A=l.bitLength();while(A>this.n);var m=A<this.n?-1:l.ucmp(this.p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn(this.n,0,l)},ne.prototype.imulK=function(s){return s.imul(this.k)};function ce(){ne.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);this.m=s.p,this.prime=s}else r(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},W.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp(this.m)>=0&&A.isub(this.m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd(this.m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var A=this.m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=this.m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this),x=w.redNeg(),R=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new n(2*u*u).toRed(this);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=A.isub(m).iushrn(this.shift),w=E;return E.cmp(this.m)>=0?w=E.isub(this.m):E.cmpn(0)<0&&(w=E.iadd(this.m)),w._forceRed(this)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this);var A=s.mul(l),m=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=A.isub(m).iushrn(this.shift),w=E;return E.cmp(this.m)>=0?w=E.isub(this.m):E.cmpn(0)<0&&(w=E.iadd(this.m)),w._forceRed(this)},se.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof tde>"u"||tde,JJe)});var Gl=ir((h8n,nde)=>{"use strict";J();K();z();typeof Object.create=="function"?nde.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:nde.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var xV=ir((_8n,zJe)=>{"use strict";J();K();z();var NV=(mh(),Zu(ky)),qO=NV.Buffer,Wg={},Xg;for(Xg in NV)NV.hasOwnProperty(Xg)&&(Xg==="SlowBuffer"||Xg==="Buffer"||(Wg[Xg]=NV[Xg]));var VO=Wg.Buffer={};for(Xg in qO)qO.hasOwnProperty(Xg)&&(Xg==="allocUnsafe"||Xg==="allocUnsafeSlow"||(VO[Xg]=qO[Xg]));Wg.Buffer.prototype=qO.prototype;(!VO.from||VO.from===Uint8Array.from)&&(VO.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return qO(e,t,r)});VO.alloc||(VO.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=qO(e);return!t||t.length===0?i.fill(0):typeof r=="string"?i.fill(t,r):i.fill(t),i});if(!Wg.kStringMaxLength)try{Wg.kStringMaxLength=me.binding("buffer").kStringMaxLength}catch{}Wg.constants||(Wg.constants={MAX_LENGTH:Wg.kMaxLength},Wg.kStringMaxLength&&(Wg.constants.MAX_STRING_LENGTH=Wg.kStringMaxLength));zJe.exports=Wg});var TV=ir(KJe=>{"use strict";J();K();z();var axt=Gl();function Zg(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}KJe.Reporter=Zg;Zg.prototype.isError=function(t){return t instanceof JO};Zg.prototype.save=function(){let t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Zg.prototype.restore=function(t){let r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Zg.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Zg.prototype.exitKey=function(t){let r=this._reporterState;r.path=r.path.slice(0,t-1)};Zg.prototype.leaveKey=function(t,r,i){let n=this._reporterState;this.exitKey(t),n.obj!==null&&(n.obj[r]=i)};Zg.prototype.path=function(){return this._reporterState.path.join("/")};Zg.prototype.enterObject=function(){let t=this._reporterState,r=t.obj;return t.obj={},r};Zg.prototype.leaveObject=function(t){let r=this._reporterState,i=r.obj;return r.obj=t,i};Zg.prototype.error=function(t){let r,i=this._reporterState,n=t instanceof JO;if(n?r=t:r=new JO(i.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};Zg.prototype.wrapResult=function(t){let r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function JO(e,t){this.path=e,this.rethrow(t)}axt(JO,Error);JO.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,JO),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var $O=ir(ide=>{"use strict";J();K();z();var sxt=Gl(),BV=TV().Reporter,zO=xV().Buffer;function jg(e,t){if(BV.call(this,t),!zO.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}sxt(jg,BV);ide.DecoderBuffer=jg;jg.isDecoderBuffer=function(t){return t instanceof jg?!0:typeof t=="object"&&zO.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};jg.prototype.save=function(){return{offset:this.offset,reporter:BV.prototype.save.call(this)}};jg.prototype.restore=function(t){let r=new jg(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,BV.prototype.restore.call(this,t.reporter),r};jg.prototype.isEmpty=function(){return this.offset===this.length};jg.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};jg.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");let i=new jg(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};jg.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function KO(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return KO.isEncoderBuffer(r)||(r=new KO(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=zO.byteLength(e);else if(zO.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}ide.EncoderBuffer=KO;KO.isEncoderBuffer=function(t){return t instanceof KO?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};KO.prototype.join=function(t,r){return t||(t=zO.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):zO.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}});var Fv=ir((N8n,YJe)=>{"use strict";J();K();z();YJe.exports=$Je;function $Je(e,t){if(!e)throw new Error(t||"Assertion failed")}$Je.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)}});var MV=ir((M8n,XJe)=>{"use strict";J();K();z();var cxt=TV().Reporter,uxt=$O().EncoderBuffer,dxt=$O().DecoderBuffer,CA=Fv(),WJe=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],fxt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(WJe),lxt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function su(e,t,r){let i={};this._baseState=i,i.name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}XJe.exports=su;var hxt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];su.prototype.clone=function(){let t=this._baseState,r={};hxt.forEach(function(n){r[n]=t[n]});let i=new this.constructor(r.parent);return i._baseState=r,i};su.prototype._wrap=function(){let t=this._baseState;fxt.forEach(function(r){this[r]=function(){let n=new this.constructor(this);return t.children.push(n),n[r].apply(n,arguments)}},this)};su.prototype._init=function(t){let r=this._baseState;CA(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),CA.equal(r.children.length,1,"Root node can have only one child")};su.prototype._useArgs=function(t){let r=this._baseState,i=t.filter(function(n){return n instanceof this.constructor},this);t=t.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(CA(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),t.length!==0&&(CA(r.args===null),r.args=t,r.reverseArgs=t.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;let o={};return Object.keys(n).forEach(function(d){d==(d|0)&&(d|=0);let g=n[d];o[g]=d}),o}))};lxt.forEach(function(e){su.prototype[e]=function(){let r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});WJe.forEach(function(e){su.prototype[e]=function(){let r=this._baseState,i=Array.prototype.slice.call(arguments);return CA(r.tag===null),r.tag=e,this._useArgs(i),this}});su.prototype.use=function(t){CA(t);let r=this._baseState;return CA(r.use===null),r.use=t,this};su.prototype.optional=function(){let t=this._baseState;return t.optional=!0,this};su.prototype.def=function(t){let r=this._baseState;return CA(r.default===null),r.default=t,r.optional=!0,this};su.prototype.explicit=function(t){let r=this._baseState;return CA(r.explicit===null&&r.implicit===null),r.explicit=t,this};su.prototype.implicit=function(t){let r=this._baseState;return CA(r.explicit===null&&r.implicit===null),r.implicit=t,this};su.prototype.obj=function(){let t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};su.prototype.key=function(t){let r=this._baseState;return CA(r.key===null),r.key=t,this};su.prototype.any=function(){let t=this._baseState;return t.any=!0,this};su.prototype.choice=function(t){let r=this._baseState;return CA(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};su.prototype.contains=function(t){let r=this._baseState;return CA(r.use===null),r.contains=t,this};su.prototype._decode=function(t,r){let i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));let n=i.default,o=!0,d=null;if(i.key!==null&&(d=t.enterKey(i.key)),i.optional){let y=null;if(i.explicit!==null?y=i.explicit:i.implicit!==null?y=i.implicit:i.tag!==null&&(y=i.tag),y===null&&!i.any){let _=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),o=!0}catch{o=!1}t.restore(_)}else if(o=this._peekTag(t,y,i.any),t.isError(o))return o}let g;if(i.obj&&o&&(g=t.enterObject()),o){if(i.explicit!==null){let _=this._decodeTag(t,i.explicit);if(t.isError(_))return _;t=_}let y=t.offset;if(i.use===null&&i.choice===null){let _;i.any&&(_=t.save());let I=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(I))return I;i.any?n=t.raw(_):t=I}if(r&&r.track&&i.tag!==null&&r.track(t.path(),y,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any||(i.choice===null?n=this._decodeGeneric(i.tag,t,r):n=this._decodeChoice(t,r)),t.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(I){I._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){let _=new dxt(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(_,r)}}return i.obj&&o&&(n=t.leaveObject(g)),i.key!==null&&(n!==null||o===!0)?t.leaveKey(d,i.key,n):d!==null&&t.exitKey(d),n};su.prototype._decodeGeneric=function(t,r,i){let n=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,n.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+t)};su.prototype._getUse=function(t,r){let i=this._baseState;return i.useDecoder=this._use(t,r),CA(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};su.prototype._decodeChoice=function(t,r){let i=this._baseState,n=null,o=!1;return Object.keys(i.choice).some(function(d){let g=t.save(),y=i.choice[d];try{let _=y._decode(t,r);if(t.isError(_))return!1;n={type:d,value:_},o=!0}catch{return t.restore(g),!1}return!0},this),o?n:t.error("Choice not matched")};su.prototype._createEncoderBuffer=function(t){return new uxt(t,this.reporter)};su.prototype._encode=function(t,r,i){let n=this._baseState;if(n.default!==null&&n.default===t)return;let o=this._encodeValue(t,r,i);if(o!==void 0&&!this._skipDefault(o,r,i))return o};su.prototype._encodeValue=function(t,r,i){let n=this._baseState;if(n.parent===null)return n.children[0]._encode(t,r||new cxt);let o=null;if(this.reporter=r,n.optional&&t===void 0)if(n.default!==null)t=n.default;else return;let d=null,g=!1;if(n.any)o=this._createEncoderBuffer(t);else if(n.choice)o=this._encodeChoice(t,r);else if(n.contains)d=this._getUse(n.contains,i)._encode(t,r),g=!0;else if(n.children)d=n.children.map(function(y){if(y._baseState.tag==="null_")return y._encode(null,r,t);if(y._baseState.key===null)return r.error("Child should have a key");let _=r.enterKey(y._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");let I=y._encode(t[y._baseState.key],r,t);return r.leaveKey(_),I},this).filter(function(y){return y}),d=this._createEncoderBuffer(d);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");let y=this.clone();y._baseState.implicit=null,d=this._createEncoderBuffer(t.map(function(_){let I=this._baseState;return this._getUse(I.args[0],t)._encode(_,r)},y))}else n.use!==null?o=this._getUse(n.use,i)._encode(t,r):(d=this._encodePrimitive(n.tag,t),g=!0);if(!n.any&&n.choice===null){let y=n.implicit!==null?n.implicit:n.tag,_=n.implicit===null?"universal":"context";y===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(o=this._encodeComposite(y,g,_,d))}return n.explicit!==null&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o};su.prototype._encodeChoice=function(t,r){let i=this._baseState,n=i.choice[t.type];return n||CA(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,r)};su.prototype._encodePrimitive=function(t,r){let i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};su.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};su.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}});var DV=ir(C4=>{"use strict";J();K();z();function ZJe(e){let t={};return Object.keys(e).forEach(function(r){(r|0)==r&&(r=r|0);let i=e[r];t[i]=r}),t}C4.tagClass={0:"universal",1:"application",2:"context",3:"private"};C4.tagClassByName=ZJe(C4.tagClass);C4.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};C4.tagByName=ZJe(C4.tag)});var ade=ir((H8n,tze)=>{"use strict";J();K();z();var Axt=Gl(),Qv=xV().Buffer,jJe=MV(),ode=DV();function eze(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Sm,this.tree._init(e.body)}tze.exports=eze;eze.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Sm(e){jJe.call(this,"der",e)}Axt(Sm,jJe);Sm.prototype._encodeComposite=function(t,r,i,n){let o=pxt(t,r,i,this.reporter);if(n.length<128){let y=Qv.alloc(2);return y[0]=o,y[1]=n.length,this._createEncoderBuffer([y,n])}let d=1;for(let y=n.length;y>=256;y>>=8)d++;let g=Qv.alloc(2+d);g[0]=o,g[1]=128|d;for(let y=1+d,_=n.length;_>0;y--,_>>=8)g[y]=_&255;return this._createEncoderBuffer([g,n])};Sm.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){let i=Qv.alloc(t.length*2);for(let n=0;n<t.length;n++)i.writeUInt16BE(t.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};Sm.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s.]+/g);for(let g=0;g<t.length;g++)t[g]|=0}else if(Array.isArray(t)){t=t.slice();for(let g=0;g<t.length;g++)t[g]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let n=0;for(let g=0;g<t.length;g++){let y=t[g];for(n++;y>=128;y>>=7)n++}let o=Qv.alloc(n),d=o.length-1;for(let g=t.length-1;g>=0;g--){let y=t[g];for(o[d--]=y&127;(y>>=7)>0;)o[d--]=128|y&127}return this._createEncoderBuffer(o)};function e_(e){return e<10?"0"+e:e}Sm.prototype._encodeTime=function(t,r){let i,n=new Date(t);return r==="gentime"?i=[e_(n.getUTCFullYear()),e_(n.getUTCMonth()+1),e_(n.getUTCDate()),e_(n.getUTCHours()),e_(n.getUTCMinutes()),e_(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[e_(n.getUTCFullYear()%100),e_(n.getUTCMonth()+1),e_(n.getUTCDate()),e_(n.getUTCHours()),e_(n.getUTCMinutes()),e_(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};Sm.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Sm.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!Qv.isBuffer(t)){let o=t.toArray();!t.sign&&o[0]&128&&o.unshift(0),t=Qv.from(o)}if(Qv.isBuffer(t)){let o=t.length;t.length===0&&o++;let d=Qv.alloc(o);return t.copy(d),t.length===0&&(d[0]=0),this._createEncoderBuffer(d)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let o=t;o>=256;o>>=8)i++;let n=new Array(i);for(let o=n.length-1;o>=0;o--)n[o]=t&255,t>>=8;return n[0]&128&&n.unshift(0),this._createEncoderBuffer(Qv.from(n))};Sm.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Sm.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Sm.prototype._skipDefault=function(t,r,i){let n=this._baseState,o;if(n.default===null)return!1;let d=t.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),d.length!==n.defaultBuffer.length)return!1;for(o=0;o<d.length;o++)if(d[o]!==n.defaultBuffer[o])return!1;return!0};function pxt(e,t,r,i){let n;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),ode.tagByName.hasOwnProperty(e))n=ode.tagByName[e];else if(typeof e=="number"&&(e|0)===e)n=e;else return i.error("Unknown tag: "+e);return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=ode.tagClassByName[r||"universal"]<<6,n)}});var nze=ir((J8n,rze)=>{"use strict";J();K();z();var gxt=Gl(),sde=ade();function cde(e){sde.call(this,e),this.enc="pem"}gxt(cde,sde);rze.exports=cde;cde.prototype.encode=function(t,r){let n=sde.prototype.encode.call(this,t).toString("base64"),o=["-----BEGIN "+r.label+"-----"];for(let d=0;d<n.length;d+=64)o.push(n.slice(d,d+64));return o.push("-----END "+r.label+"-----"),o.join(`
|
|
`)}});var ude=ir(oze=>{"use strict";J();K();z();var ize=oze;ize.der=ade();ize.pem=nze()});var fde=ir((j8n,fze)=>{"use strict";J();K();z();var _xt=Gl(),mxt=rde(),aze=$O().DecoderBuffer,cze=MV(),sze=DV();function uze(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new q1,this.tree._init(e.body)}fze.exports=uze;uze.prototype.decode=function(t,r){return aze.isDecoderBuffer(t)||(t=new aze(t,r)),this.tree._decode(t,r)};function q1(e){cze.call(this,"der",e)}_xt(q1,cze);q1.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;let n=t.save(),o=dde(t,'Failed to peek tag: "'+r+'"');return t.isError(o)?o:(t.restore(n),o.tag===r||o.tagStr===r||o.tagStr+"of"===r||i)};q1.prototype._decodeTag=function(t,r,i){let n=dde(t,'Failed to decode tag of "'+r+'"');if(t.isError(n))return n;let o=dze(t,n.primitive,'Failed to get length of "'+r+'"');if(t.isError(o))return o;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(n.primitive||o!==null)return t.skip(o,'Failed to match body of: "'+r+'"');let d=t.save(),g=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(g)?g:(o=t.offset-d.offset,t.restore(d),t.skip(o,'Failed to match body of: "'+r+'"'))};q1.prototype._skipUntilEnd=function(t,r){for(;;){let i=dde(t,r);if(t.isError(i))return i;let n=dze(t,i.primitive,r);if(t.isError(n))return n;let o;if(i.primitive||n!==null?o=t.skip(n):o=this._skipUntilEnd(t,r),t.isError(o))return o;if(i.tagStr==="end")break}};q1.prototype._decodeList=function(t,r,i,n){let o=[];for(;!t.isEmpty();){let d=this._peekTag(t,"end");if(t.isError(d))return d;let g=i.decode(t,"der",n);if(t.isError(g)&&d)break;o.push(g)}return o};q1.prototype._decodeStr=function(t,r){if(r==="bitstr"){let i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){let i=t.raw();if(i.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");let n="";for(let o=0;o<i.length/2;o++)n+=String.fromCharCode(i.readUInt16BE(o*2));return n}else if(r==="numstr"){let i=t.raw().toString("ascii");return this._isNumstr(i)?i:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){let i=t.raw().toString("ascii");return this._isPrintstr(i)?i:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};q1.prototype._decodeObjid=function(t,r,i){let n,o=[],d=0,g=0;for(;!t.isEmpty();)g=t.readUInt8(),d<<=7,d|=g&127,(g&128)===0&&(o.push(d),d=0);g&128&&o.push(d);let y=o[0]/40|0,_=o[0]%40;if(i?n=o:n=[y,_].concat(o.slice(1)),r){let I=r[n.join(" ")];I===void 0&&(I=r[n.join(".")]),I!==void 0&&(n=I)}return n};q1.prototype._decodeTime=function(t,r){let i=t.raw().toString(),n,o,d,g,y,_;if(r==="gentime")n=i.slice(0,4)|0,o=i.slice(4,6)|0,d=i.slice(6,8)|0,g=i.slice(8,10)|0,y=i.slice(10,12)|0,_=i.slice(12,14)|0;else if(r==="utctime")n=i.slice(0,2)|0,o=i.slice(2,4)|0,d=i.slice(4,6)|0,g=i.slice(6,8)|0,y=i.slice(8,10)|0,_=i.slice(10,12)|0,n<70?n=2e3+n:n=1900+n;else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,o-1,d,g,y,_,0)};q1.prototype._decodeNull=function(){return null};q1.prototype._decodeBool=function(t){let r=t.readUInt8();return t.isError(r)?r:r!==0};q1.prototype._decodeInt=function(t,r){let i=t.raw(),n=new mxt(i);return r&&(n=r[n.toString(10)]||n),n};q1.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function dde(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;let i=sze.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){let d=r;for(r=0;(d&128)===128;){if(d=e.readUInt8(t),e.isError(d))return d;r<<=7,r|=d&127}}else r&=31;let o=sze.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function dze(e,t,r){let i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if((i&128)===0)return i;let n=i&127;if(n>4)return e.error("length octect is too long");i=0;for(let o=0;o<n;o++){i<<=8;let d=e.readUInt8(r);if(e.isError(d))return d;i|=d}return i}});var hze=ir((n4n,lze)=>{"use strict";J();K();z();var yxt=Gl(),bxt=xV().Buffer,lde=fde();function hde(e){lde.call(this,e),this.enc="pem"}yxt(hde,lde);lze.exports=hde;hde.prototype.decode=function(t,r){let i=t.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,d=-1,g=-1;for(let I=0;I<i.length;I++){let N=i[I].match(o);if(N!==null&&N[2]===n)if(d===-1){if(N[1]!=="BEGIN")break;d=I}else{if(N[1]!=="END")break;g=I;break}}if(d===-1||g===-1)throw new Error("PEM section not found for: "+n);let y=i.slice(d+1,g).join("");y.replace(/[^a-z0-9+/=]+/gi,"");let _=bxt.from(y,"base64");return lde.prototype.decode.call(this,_,r)}});var Ade=ir(pze=>{"use strict";J();K();z();var Aze=pze;Aze.der=fde();Aze.pem=hze()});var _ze=ir(gze=>{"use strict";J();K();z();var Ext=ude(),vxt=Ade(),Rxt=Gl(),Sxt=gze;Sxt.define=function(t,r){return new YO(t,r)};function YO(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}YO.prototype._createNamed=function(t){let r=this.name;function i(n){this._initNamed(n,r)}return Rxt(i,t),i.prototype._initNamed=function(o,d){t.call(this,o,d)},new i(this)};YO.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(vxt[t])),this.decoders[t]};YO.prototype.decode=function(t,r,i){return this._getDecoder(r).decode(t,i)};YO.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(Ext[t])),this.encoders[t]};YO.prototype.encode=function(t,r,i){return this._getEncoder(r).encode(t,i)}});var yze=ir(mze=>{"use strict";J();K();z();var kV=mze;kV.Reporter=TV().Reporter;kV.DecoderBuffer=$O().DecoderBuffer;kV.EncoderBuffer=$O().EncoderBuffer;kV.Node=MV()});var vze=ir(Eze=>{"use strict";J();K();z();var bze=Eze;bze._reverse=function(t){let r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);let n=t[i];r[n]=i}),r};bze.der=DV()});var Sze=ir(Rze=>{"use strict";J();K();z();var WO=Rze;WO.bignum=rde();WO.define=_ze().define;WO.base=yze();WO.constants=vze();WO.decoders=Ade();WO.encoders=ude()});var Bze=ir(t_=>{"use strict";J();K();z();var Ixt=t_&&t_.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),Cxt=t_&&t_.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),wxt=t_&&t_.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ixt(t,e,r);return Cxt(t,e),t};Object.defineProperty(t_,"__esModule",{value:!0});t_.jwkTopem=t_.pemTojwk=void 0;var Hv=wxt(Sze());function Oxt(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function pde(e){return Oxt(fe.from(e,"hex").toString("base64"))}var Ize=Hv.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),Cze=Hv.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),Nxt=Hv.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Cze),this.key("publicKey").bitstr())}),wze=Hv.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),xxt=Hv.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),Oze=Hv.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(wze),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(xxt))}),Txt=Hv.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(wze),this.key("algorithm").use(Cze),this.key("privateKey").bitstr())});function Nze(e,t){return t=t||{},Object.keys(t).forEach(function(r){e[r]=t[r]}),e}function gde(e){return e.length%2===1?"0"+e:e}function xze(e,t){var r=Ize.decode(e,"der"),i=gde(r.e.toString(16)),n={kty:"RSA",n:D6(r.n),e:pde(i)};return Nze(n,t)}function Tze(e,t){var r=Oze.decode(e,"der"),i=gde(r.e.toString(16)),n={kty:"RSA",n:D6(r.n),e:pde(i),d:D6(r.d),p:D6(r.p),q:D6(r.q),dp:D6(r.dp),dq:D6(r.dq),qi:D6(r.qi)};return Nze(n,t)}function Bxt(e,t){var r=Nxt.decode(e,"der");return xze(r.publicKey.data,t)}function Mxt(e,t){var r=Txt.decode(e,"der");return Tze(r.privateKey.data,t)}function Dxt(e){var t=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(e);if(!t)return null;var r=!!t[1],i=t[2]==="PRIVATE";return i?r?Tze:Mxt:r?xze:Bxt}function kxt(e){return{n:M6(e.n),e:M6(e.e),d:e.d&&M6(e.d),p:e.p&&M6(e.p),q:e.q&&M6(e.q),dp:e.dp&&M6(e.dp),dq:e.dq&&M6(e.dq),qi:e.qi&&M6(e.qi)}}function D6(e){return pde(gde(e.toString(16)))}function Pxt(e){return new Hv.bignum(fe.from(e,"base64"))}function M6(e){return/^[0-9]+$/.test(e)?new Hv.bignum(e,10):Pxt(e)}function Lxt(e,t){var r=e.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(n){return n.trim().length!==0});var i=Dxt(r[0]);return r=r.slice(1,-1).join(""),i(fe.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),t)}t_.pemTojwk=Lxt;function Uxt(e){var t=kxt(e),r=!!t.d,i=r?"PRIVATE":"PUBLIC",n="-----BEGIN RSA "+i+` KEY-----
|
|
`,o=`
|
|
-----END RSA `+i+` KEY-----
|
|
`,d=fe.alloc(0);r?(t.version="two-prime",d=Oze.encode(t,"der")):d=Ize.encode(t,"der");var g=d.toString("base64").match(/.{1,64}/g).join(`
|
|
`);return n+g+o}t_.jwkTopem=Uxt});var Pze=ir((q4n,PV)=>{"use strict";J();K();z();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_SHA3_NO_WINDOW&&(r=!1);var n=!r&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof me=="object"&&me.versions&&me.versions.node;o?i=global:n&&(i=self);var d=!i.JS_SHA3_NO_COMMON_JS&&typeof PV=="object"&&PV.exports,g=typeof define=="function"&&define.amd,y=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",_="0123456789abcdef".split(""),I=[31,7936,2031616,520093696],N=[4,1024,262144,67108864],T=[1,256,65536,16777216],M=[6,1536,393216,100663296],D=[0,8,16,24],P=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],G=[224,256,384,512],q=[128,256],Y=["hex","buffer","arrayBuffer","array","digest"],ne={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(he){return Object.prototype.toString.call(he)==="[object Array]"}),y&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(he){return typeof he=="object"&&he.buffer&&he.buffer.constructor===ArrayBuffer});for(var ce=function(he,$e,Ge){return function(Re){return new F(he,$e,he).update(Re)[Ge]()}},le=function(he,$e,Ge){return function(Re,Se){return new F(he,$e,Se).update(Re)[Ge]()}},pe=function(he,$e,Ge){return function(Re,Se,ct,ze){return m["cshake"+he].update(Re,Se,ct,ze)[Ge]()}},ae=function(he,$e,Ge){return function(Re,Se,ct,ze){return m["kmac"+he].update(Re,Se,ct,ze)[Ge]()}},W=function(he,$e,Ge,Re){for(var Se=0;Se<Y.length;++Se){var ct=Y[Se];he[ct]=$e(Ge,Re,ct)}return he},se=function(he,$e){var Ge=ce(he,$e,"hex");return Ge.create=function(){return new F(he,$e,he)},Ge.update=function(Re){return Ge.create().update(Re)},W(Ge,ce,he,$e)},O=function(he,$e){var Ge=le(he,$e,"hex");return Ge.create=function(Re){return new F(he,$e,Re)},Ge.update=function(Re,Se){return Ge.create(Se).update(Re)},W(Ge,le,he,$e)},s=function(he,$e){var Ge=ne[he],Re=pe(he,$e,"hex");return Re.create=function(Se,ct,ze){return!ct&&!ze?m["shake"+he].create(Se):new F(he,$e,Se).bytepad([ct,ze],Ge)},Re.update=function(Se,ct,ze,te){return Re.create(ct,ze,te).update(Se)},W(Re,pe,he,$e)},l=function(he,$e){var Ge=ne[he],Re=ae(he,$e,"hex");return Re.create=function(Se,ct,ze){return new X(he,$e,ct).bytepad(["KMAC",ze],Ge).bytepad([Se],Ge)},Re.update=function(Se,ct,ze,te){return Re.create(Se,ze,te).update(ct)},W(Re,ae,he,$e)},A=[{name:"keccak",padding:T,bits:G,createMethod:se},{name:"sha3",padding:M,bits:G,createMethod:se},{name:"shake",padding:I,bits:q,createMethod:O},{name:"cshake",padding:N,bits:q,createMethod:s},{name:"kmac",padding:N,bits:q,createMethod:l}],m={},E=[],w=0;w<A.length;++w)for(var x=A[w],R=x.bits,u=0;u<R.length;++u){var C=x.name+"_"+R[u];if(E.push(C),m[C]=x.createMethod(R[u],x.padding),x.name!=="sha3"){var U=x.name+R[u];E.push(U),m[U]=m[C]}}function F(he,$e,Ge){this.blocks=[],this.s=[],this.padding=$e,this.outputBits=Ge,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(he<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Ge>>5,this.extraBytes=(Ge&31)>>3;for(var Re=0;Re<50;++Re)this.s[Re]=0}F.prototype.update=function(he){if(this.finalized)throw new Error(t);var $e,Ge=typeof he;if(Ge!=="string"){if(Ge==="object"){if(he===null)throw new Error(e);if(y&&he.constructor===ArrayBuffer)he=new Uint8Array(he);else if(!Array.isArray(he)&&(!y||!ArrayBuffer.isView(he)))throw new Error(e)}else throw new Error(e);$e=!0}for(var Re=this.blocks,Se=this.byteCount,ct=he.length,ze=this.blockCount,te=0,Ue=this.s,oe,ge;te<ct;){if(this.reset)for(this.reset=!1,Re[0]=this.block,oe=1;oe<ze+1;++oe)Re[oe]=0;if($e)for(oe=this.start;te<ct&&oe<Se;++te)Re[oe>>2]|=he[te]<<D[oe++&3];else for(oe=this.start;te<ct&&oe<Se;++te)ge=he.charCodeAt(te),ge<128?Re[oe>>2]|=ge<<D[oe++&3]:ge<2048?(Re[oe>>2]|=(192|ge>>6)<<D[oe++&3],Re[oe>>2]|=(128|ge&63)<<D[oe++&3]):ge<55296||ge>=57344?(Re[oe>>2]|=(224|ge>>12)<<D[oe++&3],Re[oe>>2]|=(128|ge>>6&63)<<D[oe++&3],Re[oe>>2]|=(128|ge&63)<<D[oe++&3]):(ge=65536+((ge&1023)<<10|he.charCodeAt(++te)&1023),Re[oe>>2]|=(240|ge>>18)<<D[oe++&3],Re[oe>>2]|=(128|ge>>12&63)<<D[oe++&3],Re[oe>>2]|=(128|ge>>6&63)<<D[oe++&3],Re[oe>>2]|=(128|ge&63)<<D[oe++&3]);if(this.lastByteIndex=oe,oe>=Se){for(this.start=oe-Se,this.block=Re[ze],oe=0;oe<ze;++oe)Ue[oe]^=Re[oe];Ae(Ue),this.reset=!0}else this.start=oe}return this},F.prototype.encode=function(he,$e){var Ge=he&255,Re=1,Se=[Ge];for(he=he>>8,Ge=he&255;Ge>0;)Se.unshift(Ge),he=he>>8,Ge=he&255,++Re;return $e?Se.push(Re):Se.unshift(Re),this.update(Se),Se.length},F.prototype.encodeString=function(he){var $e,Ge=typeof he;if(Ge!=="string"){if(Ge==="object"){if(he===null)throw new Error(e);if(y&&he.constructor===ArrayBuffer)he=new Uint8Array(he);else if(!Array.isArray(he)&&(!y||!ArrayBuffer.isView(he)))throw new Error(e)}else throw new Error(e);$e=!0}var Re=0,Se=he.length;if($e)Re=Se;else for(var ct=0;ct<he.length;++ct){var ze=he.charCodeAt(ct);ze<128?Re+=1:ze<2048?Re+=2:ze<55296||ze>=57344?Re+=3:(ze=65536+((ze&1023)<<10|he.charCodeAt(++ct)&1023),Re+=4)}return Re+=this.encode(Re*8),this.update(he),Re},F.prototype.bytepad=function(he,$e){for(var Ge=this.encode($e),Re=0;Re<he.length;++Re)Ge+=this.encodeString(he[Re]);var Se=$e-Ge%$e,ct=[];return ct.length=Se,this.update(ct),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var he=this.blocks,$e=this.lastByteIndex,Ge=this.blockCount,Re=this.s;if(he[$e>>2]|=this.padding[$e&3],this.lastByteIndex===this.byteCount)for(he[0]=he[Ge],$e=1;$e<Ge+1;++$e)he[$e]=0;for(he[Ge-1]|=2147483648,$e=0;$e<Ge;++$e)Re[$e]^=he[$e];Ae(Re)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var he=this.blockCount,$e=this.s,Ge=this.outputBlocks,Re=this.extraBytes,Se=0,ct=0,ze="",te;ct<Ge;){for(Se=0;Se<he&&ct<Ge;++Se,++ct)te=$e[Se],ze+=_[te>>4&15]+_[te&15]+_[te>>12&15]+_[te>>8&15]+_[te>>20&15]+_[te>>16&15]+_[te>>28&15]+_[te>>24&15];ct%he===0&&(Ae($e),Se=0)}return Re&&(te=$e[Se],ze+=_[te>>4&15]+_[te&15],Re>1&&(ze+=_[te>>12&15]+_[te>>8&15]),Re>2&&(ze+=_[te>>20&15]+_[te>>16&15])),ze},F.prototype.arrayBuffer=function(){this.finalize();var he=this.blockCount,$e=this.s,Ge=this.outputBlocks,Re=this.extraBytes,Se=0,ct=0,ze=this.outputBits>>3,te;Re?te=new ArrayBuffer(Ge+1<<2):te=new ArrayBuffer(ze);for(var Ue=new Uint32Array(te);ct<Ge;){for(Se=0;Se<he&&ct<Ge;++Se,++ct)Ue[ct]=$e[Se];ct%he===0&&Ae($e)}return Re&&(Ue[Se]=$e[Se],te=te.slice(0,ze)),te},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var he=this.blockCount,$e=this.s,Ge=this.outputBlocks,Re=this.extraBytes,Se=0,ct=0,ze=[],te,Ue;ct<Ge;){for(Se=0;Se<he&&ct<Ge;++Se,++ct)te=ct<<2,Ue=$e[Se],ze[te]=Ue&255,ze[te+1]=Ue>>8&255,ze[te+2]=Ue>>16&255,ze[te+3]=Ue>>24&255;ct%he===0&&Ae($e)}return Re&&(te=ct<<2,Ue=$e[Se],ze[te]=Ue&255,Re>1&&(ze[te+1]=Ue>>8&255),Re>2&&(ze[te+2]=Ue>>16&255)),ze};function X(he,$e,Ge){F.call(this,he,$e,Ge)}X.prototype=new F,X.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var Ae=function(he){var $e,Ge,Re,Se,ct,ze,te,Ue,oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr,ve,ie,_e,Be,Ze,$t,at,zt,Hr,St,Yt,qr,tr,hr,Cn,er,pr,mn,Xt,dr,wn,Qt,fr,In,jt,ar,ht,Xe,et,ue,je,be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a;for(Re=0;Re<48;Re+=2)Se=he[0]^he[10]^he[20]^he[30]^he[40],ct=he[1]^he[11]^he[21]^he[31]^he[41],ze=he[2]^he[12]^he[22]^he[32]^he[42],te=he[3]^he[13]^he[23]^he[33]^he[43],Ue=he[4]^he[14]^he[24]^he[34]^he[44],oe=he[5]^he[15]^he[25]^he[35]^he[45],ge=he[6]^he[16]^he[26]^he[36]^he[46],Le=he[7]^he[17]^he[27]^he[37]^he[47],V=he[8]^he[18]^he[28]^he[38]^he[48],Qe=he[9]^he[19]^he[29]^he[39]^he[49],$e=V^(ze<<1|te>>>31),Ge=Qe^(te<<1|ze>>>31),he[0]^=$e,he[1]^=Ge,he[10]^=$e,he[11]^=Ge,he[20]^=$e,he[21]^=Ge,he[30]^=$e,he[31]^=Ge,he[40]^=$e,he[41]^=Ge,$e=Se^(Ue<<1|oe>>>31),Ge=ct^(oe<<1|Ue>>>31),he[2]^=$e,he[3]^=Ge,he[12]^=$e,he[13]^=Ge,he[22]^=$e,he[23]^=Ge,he[32]^=$e,he[33]^=Ge,he[42]^=$e,he[43]^=Ge,$e=ze^(ge<<1|Le>>>31),Ge=te^(Le<<1|ge>>>31),he[4]^=$e,he[5]^=Ge,he[14]^=$e,he[15]^=Ge,he[24]^=$e,he[25]^=Ge,he[34]^=$e,he[35]^=Ge,he[44]^=$e,he[45]^=Ge,$e=Ue^(V<<1|Qe>>>31),Ge=oe^(Qe<<1|V>>>31),he[6]^=$e,he[7]^=Ge,he[16]^=$e,he[17]^=Ge,he[26]^=$e,he[27]^=Ge,he[36]^=$e,he[37]^=Ge,he[46]^=$e,he[47]^=Ge,$e=ge^(Se<<1|ct>>>31),Ge=Le^(ct<<1|Se>>>31),he[8]^=$e,he[9]^=Ge,he[18]^=$e,he[19]^=Ge,he[28]^=$e,he[29]^=Ge,he[38]^=$e,he[39]^=Ge,he[48]^=$e,he[49]^=Ge,_t=he[0],rt=he[1],ar=he[11]<<4|he[10]>>>28,ht=he[10]<<4|he[11]>>>28,zt=he[20]<<3|he[21]>>>29,Hr=he[21]<<3|he[20]>>>29,Dr=he[31]<<9|he[30]>>>23,Pr=he[30]<<9|he[31]>>>23,Qt=he[40]<<18|he[41]>>>14,fr=he[41]<<18|he[40]>>>14,hr=he[2]<<1|he[3]>>>31,Cn=he[3]<<1|he[2]>>>31,At=he[13]<<12|he[12]>>>20,Er=he[12]<<12|he[13]>>>20,Xe=he[22]<<10|he[23]>>>22,et=he[23]<<10|he[22]>>>22,St=he[33]<<13|he[32]>>>19,Yt=he[32]<<13|he[33]>>>19,k=he[42]<<2|he[43]>>>30,a=he[43]<<2|he[42]>>>30,De=he[5]<<30|he[4]>>>2,Je=he[4]<<30|he[5]>>>2,er=he[14]<<6|he[15]>>>26,pr=he[15]<<6|he[14]>>>26,mt=he[25]<<11|he[24]>>>21,Ht=he[24]<<11|he[25]>>>21,ue=he[34]<<15|he[35]>>>17,je=he[35]<<15|he[34]>>>17,qr=he[45]<<29|he[44]>>>3,tr=he[44]<<29|he[45]>>>3,Be=he[6]<<28|he[7]>>>4,Ze=he[7]<<28|he[6]>>>4,Rt=he[17]<<23|he[16]>>>9,Vt=he[16]<<23|he[17]>>>9,mn=he[26]<<25|he[27]>>>7,Xt=he[27]<<25|he[26]>>>7,zr=he[36]<<21|he[37]>>>11,ve=he[37]<<21|he[36]>>>11,be=he[47]<<24|he[46]>>>8,qe=he[46]<<24|he[47]>>>8,In=he[8]<<27|he[9]>>>5,jt=he[9]<<27|he[8]>>>5,$t=he[18]<<20|he[19]>>>12,at=he[19]<<20|he[18]>>>12,br=he[29]<<7|he[28]>>>25,Rr=he[28]<<7|he[29]>>>25,dr=he[38]<<8|he[39]>>>24,wn=he[39]<<8|he[38]>>>24,ie=he[48]<<14|he[49]>>>18,_e=he[49]<<14|he[48]>>>18,he[0]=_t^~At&mt,he[1]=rt^~Er&Ht,he[10]=Be^~$t&zt,he[11]=Ze^~at&Hr,he[20]=hr^~er&mn,he[21]=Cn^~pr&Xt,he[30]=In^~ar&Xe,he[31]=jt^~ht&et,he[40]=De^~Rt&br,he[41]=Je^~Vt&Rr,he[2]=At^~mt&zr,he[3]=Er^~Ht&ve,he[12]=$t^~zt&St,he[13]=at^~Hr&Yt,he[22]=er^~mn&dr,he[23]=pr^~Xt&wn,he[32]=ar^~Xe&ue,he[33]=ht^~et&je,he[42]=Rt^~br&Dr,he[43]=Vt^~Rr&Pr,he[4]=mt^~zr&ie,he[5]=Ht^~ve&_e,he[14]=zt^~St&qr,he[15]=Hr^~Yt&tr,he[24]=mn^~dr&Qt,he[25]=Xt^~wn&fr,he[34]=Xe^~ue&be,he[35]=et^~je&qe,he[44]=br^~Dr&k,he[45]=Rr^~Pr&a,he[6]=zr^~ie&_t,he[7]=ve^~_e&rt,he[16]=St^~qr&Be,he[17]=Yt^~tr&Ze,he[26]=dr^~Qt&hr,he[27]=wn^~fr&Cn,he[36]=ue^~be&In,he[37]=je^~qe&jt,he[46]=Dr^~k&De,he[47]=Pr^~a&Je,he[8]=ie^~_t&At,he[9]=_e^~rt&Er,he[18]=qr^~Be&$t,he[19]=tr^~Ze&at,he[28]=Qt^~hr&er,he[29]=fr^~Cn&pr,he[38]=be^~In&ar,he[39]=qe^~jt&ht,he[48]=k^~De&Rt,he[49]=a^~Je&Vt,he[0]^=P[Re],he[1]^=P[Re+1]};if(d)PV.exports=m;else{for(w=0;w<E.length;++w)i[E[w]]=m[E[w]];g&&define(function(){return m})}})()});var qv=ir((Kze,Ede)=>{"use strict";J();K();z();(function(e,t){"use strict";function r(A,m){if(!A)throw new Error(m||"Assertion failed")}function i(A,m){A.super_=m;var E=function(){};E.prototype=m.prototype,A.prototype=new E,A.prototype.constructor=A}function n(A,m,E){if(n.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((m==="le"||m==="be")&&(E=m,m=10),this._init(A||0,m||10,E||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=(mh(),Zu(ky)).Buffer}catch{}n.isBN=function(m){return m instanceof n?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===n.wordSize&&Array.isArray(m.words)},n.max=function(m,E){return m.cmp(E)>0?m:E},n.min=function(m,E){return m.cmp(E)<0?m:E},n.prototype._init=function(m,E,w){if(typeof m=="number")return this._initNumber(m,E,w);if(typeof m=="object")return this._initArray(m,E,w);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var x=0;m[0]==="-"&&(x++,this.negative=1),x<m.length&&(E===16?this._parseHex(m,x,w):(this._parseBase(m,E,x),w==="le"&&this._initArray(this.toArray(),E,w)))},n.prototype._initNumber=function(m,E,w){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),E,w)},n.prototype._initArray=function(m,E,w){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var R,u,C=0;if(w==="be")for(x=m.length-1,R=0;x>=0;x-=3)u=m[x]|m[x-1]<<8|m[x-2]<<16,this.words[R]|=u<<C&67108863,this.words[R+1]=u>>>26-C&67108863,C+=24,C>=26&&(C-=26,R++);else if(w==="le")for(x=0,R=0;x<m.length;x+=3)u=m[x]|m[x+1]<<8|m[x+2]<<16,this.words[R]|=u<<C&67108863,this.words[R+1]=u>>>26-C&67108863,C+=24,C>=26&&(C-=26,R++);return this._strip()};function d(A,m){var E=A.charCodeAt(m);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,"Invalid character in "+A)}function g(A,m,E){var w=d(A,E);return E-1>=m&&(w|=d(A,E-1)<<4),w}n.prototype._parseHex=function(m,E,w){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var R=0,u=0,C;if(w==="be")for(x=m.length-1;x>=E;x-=2)C=g(m,E,x)<<R,this.words[u]|=C&67108863,R>=18?(R-=18,u+=1,this.words[u]|=C>>>26):R+=8;else{var U=m.length-E;for(x=U%2===0?E+1:E;x<m.length;x+=2)C=g(m,E,x)<<R,this.words[u]|=C&67108863,R>=18?(R-=18,u+=1,this.words[u]|=C>>>26):R+=8}this._strip()};function y(A,m,E,w){for(var x=0,R=0,u=Math.min(A.length,E),C=m;C<u;C++){var U=A.charCodeAt(C)-48;x*=w,U>=49?R=U-49+10:U>=17?R=U-17+10:R=U,r(U>=0&&R<w,"Invalid character"),x+=R}return x}n.prototype._parseBase=function(m,E,w){this.words=[0],this.length=1;for(var x=0,R=1;R<=67108863;R*=E)x++;x--,R=R/E|0;for(var u=m.length-w,C=u%x,U=Math.min(u,u-C)+w,F=0,X=w;X<U;X+=x)F=y(m,X,X+x,E),this.imuln(R),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(C!==0){var Ae=1;for(F=y(m,X,m.length,E),X=0;X<C;X++)Ae*=E;this.imuln(Ae),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}this._strip()},n.prototype.copy=function(m){m.words=new Array(this.length);for(var E=0;E<this.length;E++)m.words[E]=this.words[E];m.length=this.length,m.negative=this.negative,m.red=this.red};function _(A,m){A.words=m.words,A.length=m.length,A.negative=m.negative,A.red=m.red}if(n.prototype._move=function(m){_(m,this)},n.prototype.clone=function(){var m=new n(null);return this.copy(m),m},n.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=I}catch{n.prototype.inspect=I}else n.prototype.inspect=I;function I(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(m,E){m=m||10,E=E|0||1;var w;if(m===16||m==="hex"){w="";for(var x=0,R=0,u=0;u<this.length;u++){var C=this.words[u],U=((C<<x|R)&16777215).toString(16);R=C>>>24-x&16777215,x+=2,x>=26&&(x-=26,u--),R!==0||u!==this.length-1?w=N[6-U.length]+U+w:w=U+w}for(R!==0&&(w=R.toString(16)+w);w.length%E!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(m===(m|0)&&m>=2&&m<=36){var F=T[m],X=M[m];w="";var Ae=this.clone();for(Ae.negative=0;!Ae.isZero();){var he=Ae.modrn(X).toString(m);Ae=Ae.idivn(X),Ae.isZero()?w=he+w:w=N[F-he.length]+he+w}for(this.isZero()&&(w="0"+w);w.length%E!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},n.prototype.toJSON=function(){return this.toString(16,2)},o&&(n.prototype.toBuffer=function(m,E){return this.toArrayLike(o,m,E)}),n.prototype.toArray=function(m,E){return this.toArrayLike(Array,m,E)};var D=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};n.prototype.toArrayLike=function(m,E,w){this._strip();var x=this.byteLength(),R=w||Math.max(1,x);r(x<=R,"byte array longer than desired length"),r(R>0,"Requested array length <= 0");var u=D(m,R),C=E==="le"?"LE":"BE";return this["_toArrayLike"+C](u,x),u},n.prototype._toArrayLikeLE=function(m,E){for(var w=0,x=0,R=0,u=0;R<this.length;R++){var C=this.words[R]<<u|x;m[w++]=C&255,w<m.length&&(m[w++]=C>>8&255),w<m.length&&(m[w++]=C>>16&255),u===6?(w<m.length&&(m[w++]=C>>24&255),x=0,u=0):(x=C>>>24,u+=2)}if(w<m.length)for(m[w++]=x;w<m.length;)m[w++]=0},n.prototype._toArrayLikeBE=function(m,E){for(var w=m.length-1,x=0,R=0,u=0;R<this.length;R++){var C=this.words[R]<<u|x;m[w--]=C&255,w>=0&&(m[w--]=C>>8&255),w>=0&&(m[w--]=C>>16&255),u===6?(w>=0&&(m[w--]=C>>24&255),x=0,u=0):(x=C>>>24,u+=2)}if(w>=0)for(m[w--]=x;w>=0;)m[w--]=0},Math.clz32?n.prototype._countBits=function(m){return 32-Math.clz32(m)}:n.prototype._countBits=function(m){var E=m,w=0;return E>=4096&&(w+=13,E>>>=13),E>=64&&(w+=7,E>>>=7),E>=8&&(w+=4,E>>>=4),E>=2&&(w+=2,E>>>=2),w+E},n.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,w=0;return(E&8191)===0&&(w+=13,E>>>=13),(E&127)===0&&(w+=7,E>>>=7),(E&15)===0&&(w+=4,E>>>=4),(E&3)===0&&(w+=2,E>>>=2),(E&1)===0&&w++,w},n.prototype.bitLength=function(){var m=this.words[this.length-1],E=this._countBits(m);return(this.length-1)*26+E};function P(A){for(var m=new Array(A.bitLength()),E=0;E<m.length;E++){var w=E/26|0,x=E%26;m[E]=A.words[w]>>>x&1}return m}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var w=this._zeroBits(this.words[E]);if(m+=w,w!==26)break}return m},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},n.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var E=0;E<m.length;E++)this.words[E]=this.words[E]|m.words[E];return this._strip()},n.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},n.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},n.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},n.prototype.iuand=function(m){var E;this.length>m.length?E=m:E=this;for(var w=0;w<E.length;w++)this.words[w]=this.words[w]&m.words[w];return this.length=E.length,this._strip()},n.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},n.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},n.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},n.prototype.iuxor=function(m){var E,w;this.length>m.length?(E=this,w=m):(E=m,w=this);for(var x=0;x<w.length;x++)this.words[x]=E.words[x]^w.words[x];if(this!==E)for(;x<E.length;x++)this.words[x]=E.words[x];return this.length=E.length,this._strip()},n.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},n.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},n.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},n.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var E=Math.ceil(m/26)|0,w=m%26;this._expand(E),w>0&&E--;for(var x=0;x<E;x++)this.words[x]=~this.words[x]&67108863;return w>0&&(this.words[x]=~this.words[x]&67108863>>26-w),this._strip()},n.prototype.notn=function(m){return this.clone().inotn(m)},n.prototype.setn=function(m,E){r(typeof m=="number"&&m>=0);var w=m/26|0,x=m%26;return this._expand(w+1),E?this.words[w]=this.words[w]|1<<x:this.words[w]=this.words[w]&~(1<<x),this._strip()},n.prototype.iadd=function(m){var E;if(this.negative!==0&&m.negative===0)return this.negative=0,E=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,E=this.isub(m),m.negative=1,E._normSign();var w,x;this.length>m.length?(w=this,x=m):(w=m,x=this);for(var R=0,u=0;u<x.length;u++)E=(w.words[u]|0)+(x.words[u]|0)+R,this.words[u]=E&67108863,R=E>>>26;for(;R!==0&&u<w.length;u++)E=(w.words[u]|0)+R,this.words[u]=E&67108863,R=E>>>26;if(this.length=w.length,R!==0)this.words[this.length]=R,this.length++;else if(w!==this)for(;u<w.length;u++)this.words[u]=w.words[u];return this},n.prototype.add=function(m){var E;return m.negative!==0&&this.negative===0?(m.negative=0,E=this.sub(m),m.negative^=1,E):m.negative===0&&this.negative!==0?(this.negative=0,E=m.sub(this),this.negative=1,E):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},n.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var E=this.iadd(m);return m.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var w=this.cmp(m);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,R;w>0?(x=this,R=m):(x=m,R=this);for(var u=0,C=0;C<R.length;C++)E=(x.words[C]|0)-(R.words[C]|0)+u,u=E>>26,this.words[C]=E&67108863;for(;u!==0&&C<x.length;C++)E=(x.words[C]|0)+u,u=E>>26,this.words[C]=E&67108863;if(u===0&&C<x.length&&x!==this)for(;C<x.length;C++)this.words[C]=x.words[C];return this.length=Math.max(this.length,C),x!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(m){return this.clone().isub(m)};function G(A,m,E){E.negative=m.negative^A.negative;var w=A.length+m.length|0;E.length=w,w=w-1|0;var x=A.words[0]|0,R=m.words[0]|0,u=x*R,C=u&67108863,U=u/67108864|0;E.words[0]=C;for(var F=1;F<w;F++){for(var X=U>>>26,Ae=U&67108863,he=Math.min(F,m.length-1),$e=Math.max(0,F-A.length+1);$e<=he;$e++){var Ge=F-$e|0;x=A.words[Ge]|0,R=m.words[$e]|0,u=x*R+Ae,X+=u/67108864|0,Ae=u&67108863}E.words[F]=Ae|0,U=X|0}return U!==0?E.words[F]=U|0:E.length--,E._strip()}var q=function(m,E,w){var x=m.words,R=E.words,u=w.words,C=0,U,F,X,Ae=x[0]|0,he=Ae&8191,$e=Ae>>>13,Ge=x[1]|0,Re=Ge&8191,Se=Ge>>>13,ct=x[2]|0,ze=ct&8191,te=ct>>>13,Ue=x[3]|0,oe=Ue&8191,ge=Ue>>>13,Le=x[4]|0,V=Le&8191,Qe=Le>>>13,_t=x[5]|0,rt=_t&8191,At=_t>>>13,Er=x[6]|0,mt=Er&8191,Ht=Er>>>13,zr=x[7]|0,ve=zr&8191,ie=zr>>>13,_e=x[8]|0,Be=_e&8191,Ze=_e>>>13,$t=x[9]|0,at=$t&8191,zt=$t>>>13,Hr=R[0]|0,St=Hr&8191,Yt=Hr>>>13,qr=R[1]|0,tr=qr&8191,hr=qr>>>13,Cn=R[2]|0,er=Cn&8191,pr=Cn>>>13,mn=R[3]|0,Xt=mn&8191,dr=mn>>>13,wn=R[4]|0,Qt=wn&8191,fr=wn>>>13,In=R[5]|0,jt=In&8191,ar=In>>>13,ht=R[6]|0,Xe=ht&8191,et=ht>>>13,ue=R[7]|0,je=ue&8191,be=ue>>>13,qe=R[8]|0,De=qe&8191,Je=qe>>>13,Rt=R[9]|0,Vt=Rt&8191,br=Rt>>>13;w.negative=m.negative^E.negative,w.length=19,U=Math.imul(he,St),F=Math.imul(he,Yt),F=F+Math.imul($e,St)|0,X=Math.imul($e,Yt);var Rr=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,U=Math.imul(Re,St),F=Math.imul(Re,Yt),F=F+Math.imul(Se,St)|0,X=Math.imul(Se,Yt),U=U+Math.imul(he,tr)|0,F=F+Math.imul(he,hr)|0,F=F+Math.imul($e,tr)|0,X=X+Math.imul($e,hr)|0;var Dr=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,U=Math.imul(ze,St),F=Math.imul(ze,Yt),F=F+Math.imul(te,St)|0,X=Math.imul(te,Yt),U=U+Math.imul(Re,tr)|0,F=F+Math.imul(Re,hr)|0,F=F+Math.imul(Se,tr)|0,X=X+Math.imul(Se,hr)|0,U=U+Math.imul(he,er)|0,F=F+Math.imul(he,pr)|0,F=F+Math.imul($e,er)|0,X=X+Math.imul($e,pr)|0;var Pr=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,U=Math.imul(oe,St),F=Math.imul(oe,Yt),F=F+Math.imul(ge,St)|0,X=Math.imul(ge,Yt),U=U+Math.imul(ze,tr)|0,F=F+Math.imul(ze,hr)|0,F=F+Math.imul(te,tr)|0,X=X+Math.imul(te,hr)|0,U=U+Math.imul(Re,er)|0,F=F+Math.imul(Re,pr)|0,F=F+Math.imul(Se,er)|0,X=X+Math.imul(Se,pr)|0,U=U+Math.imul(he,Xt)|0,F=F+Math.imul(he,dr)|0,F=F+Math.imul($e,Xt)|0,X=X+Math.imul($e,dr)|0;var k=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(k>>>26)|0,k&=67108863,U=Math.imul(V,St),F=Math.imul(V,Yt),F=F+Math.imul(Qe,St)|0,X=Math.imul(Qe,Yt),U=U+Math.imul(oe,tr)|0,F=F+Math.imul(oe,hr)|0,F=F+Math.imul(ge,tr)|0,X=X+Math.imul(ge,hr)|0,U=U+Math.imul(ze,er)|0,F=F+Math.imul(ze,pr)|0,F=F+Math.imul(te,er)|0,X=X+Math.imul(te,pr)|0,U=U+Math.imul(Re,Xt)|0,F=F+Math.imul(Re,dr)|0,F=F+Math.imul(Se,Xt)|0,X=X+Math.imul(Se,dr)|0,U=U+Math.imul(he,Qt)|0,F=F+Math.imul(he,fr)|0,F=F+Math.imul($e,Qt)|0,X=X+Math.imul($e,fr)|0;var a=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(a>>>26)|0,a&=67108863,U=Math.imul(rt,St),F=Math.imul(rt,Yt),F=F+Math.imul(At,St)|0,X=Math.imul(At,Yt),U=U+Math.imul(V,tr)|0,F=F+Math.imul(V,hr)|0,F=F+Math.imul(Qe,tr)|0,X=X+Math.imul(Qe,hr)|0,U=U+Math.imul(oe,er)|0,F=F+Math.imul(oe,pr)|0,F=F+Math.imul(ge,er)|0,X=X+Math.imul(ge,pr)|0,U=U+Math.imul(ze,Xt)|0,F=F+Math.imul(ze,dr)|0,F=F+Math.imul(te,Xt)|0,X=X+Math.imul(te,dr)|0,U=U+Math.imul(Re,Qt)|0,F=F+Math.imul(Re,fr)|0,F=F+Math.imul(Se,Qt)|0,X=X+Math.imul(Se,fr)|0,U=U+Math.imul(he,jt)|0,F=F+Math.imul(he,ar)|0,F=F+Math.imul($e,jt)|0,X=X+Math.imul($e,ar)|0;var S=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(S>>>26)|0,S&=67108863,U=Math.imul(mt,St),F=Math.imul(mt,Yt),F=F+Math.imul(Ht,St)|0,X=Math.imul(Ht,Yt),U=U+Math.imul(rt,tr)|0,F=F+Math.imul(rt,hr)|0,F=F+Math.imul(At,tr)|0,X=X+Math.imul(At,hr)|0,U=U+Math.imul(V,er)|0,F=F+Math.imul(V,pr)|0,F=F+Math.imul(Qe,er)|0,X=X+Math.imul(Qe,pr)|0,U=U+Math.imul(oe,Xt)|0,F=F+Math.imul(oe,dr)|0,F=F+Math.imul(ge,Xt)|0,X=X+Math.imul(ge,dr)|0,U=U+Math.imul(ze,Qt)|0,F=F+Math.imul(ze,fr)|0,F=F+Math.imul(te,Qt)|0,X=X+Math.imul(te,fr)|0,U=U+Math.imul(Re,jt)|0,F=F+Math.imul(Re,ar)|0,F=F+Math.imul(Se,jt)|0,X=X+Math.imul(Se,ar)|0,U=U+Math.imul(he,Xe)|0,F=F+Math.imul(he,et)|0,F=F+Math.imul($e,Xe)|0,X=X+Math.imul($e,et)|0;var sn=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(sn>>>26)|0,sn&=67108863,U=Math.imul(ve,St),F=Math.imul(ve,Yt),F=F+Math.imul(ie,St)|0,X=Math.imul(ie,Yt),U=U+Math.imul(mt,tr)|0,F=F+Math.imul(mt,hr)|0,F=F+Math.imul(Ht,tr)|0,X=X+Math.imul(Ht,hr)|0,U=U+Math.imul(rt,er)|0,F=F+Math.imul(rt,pr)|0,F=F+Math.imul(At,er)|0,X=X+Math.imul(At,pr)|0,U=U+Math.imul(V,Xt)|0,F=F+Math.imul(V,dr)|0,F=F+Math.imul(Qe,Xt)|0,X=X+Math.imul(Qe,dr)|0,U=U+Math.imul(oe,Qt)|0,F=F+Math.imul(oe,fr)|0,F=F+Math.imul(ge,Qt)|0,X=X+Math.imul(ge,fr)|0,U=U+Math.imul(ze,jt)|0,F=F+Math.imul(ze,ar)|0,F=F+Math.imul(te,jt)|0,X=X+Math.imul(te,ar)|0,U=U+Math.imul(Re,Xe)|0,F=F+Math.imul(Re,et)|0,F=F+Math.imul(Se,Xe)|0,X=X+Math.imul(Se,et)|0,U=U+Math.imul(he,je)|0,F=F+Math.imul(he,be)|0,F=F+Math.imul($e,je)|0,X=X+Math.imul($e,be)|0;var Lr=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,U=Math.imul(Be,St),F=Math.imul(Be,Yt),F=F+Math.imul(Ze,St)|0,X=Math.imul(Ze,Yt),U=U+Math.imul(ve,tr)|0,F=F+Math.imul(ve,hr)|0,F=F+Math.imul(ie,tr)|0,X=X+Math.imul(ie,hr)|0,U=U+Math.imul(mt,er)|0,F=F+Math.imul(mt,pr)|0,F=F+Math.imul(Ht,er)|0,X=X+Math.imul(Ht,pr)|0,U=U+Math.imul(rt,Xt)|0,F=F+Math.imul(rt,dr)|0,F=F+Math.imul(At,Xt)|0,X=X+Math.imul(At,dr)|0,U=U+Math.imul(V,Qt)|0,F=F+Math.imul(V,fr)|0,F=F+Math.imul(Qe,Qt)|0,X=X+Math.imul(Qe,fr)|0,U=U+Math.imul(oe,jt)|0,F=F+Math.imul(oe,ar)|0,F=F+Math.imul(ge,jt)|0,X=X+Math.imul(ge,ar)|0,U=U+Math.imul(ze,Xe)|0,F=F+Math.imul(ze,et)|0,F=F+Math.imul(te,Xe)|0,X=X+Math.imul(te,et)|0,U=U+Math.imul(Re,je)|0,F=F+Math.imul(Re,be)|0,F=F+Math.imul(Se,je)|0,X=X+Math.imul(Se,be)|0,U=U+Math.imul(he,De)|0,F=F+Math.imul(he,Je)|0,F=F+Math.imul($e,De)|0,X=X+Math.imul($e,Je)|0;var Wr=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,U=Math.imul(at,St),F=Math.imul(at,Yt),F=F+Math.imul(zt,St)|0,X=Math.imul(zt,Yt),U=U+Math.imul(Be,tr)|0,F=F+Math.imul(Be,hr)|0,F=F+Math.imul(Ze,tr)|0,X=X+Math.imul(Ze,hr)|0,U=U+Math.imul(ve,er)|0,F=F+Math.imul(ve,pr)|0,F=F+Math.imul(ie,er)|0,X=X+Math.imul(ie,pr)|0,U=U+Math.imul(mt,Xt)|0,F=F+Math.imul(mt,dr)|0,F=F+Math.imul(Ht,Xt)|0,X=X+Math.imul(Ht,dr)|0,U=U+Math.imul(rt,Qt)|0,F=F+Math.imul(rt,fr)|0,F=F+Math.imul(At,Qt)|0,X=X+Math.imul(At,fr)|0,U=U+Math.imul(V,jt)|0,F=F+Math.imul(V,ar)|0,F=F+Math.imul(Qe,jt)|0,X=X+Math.imul(Qe,ar)|0,U=U+Math.imul(oe,Xe)|0,F=F+Math.imul(oe,et)|0,F=F+Math.imul(ge,Xe)|0,X=X+Math.imul(ge,et)|0,U=U+Math.imul(ze,je)|0,F=F+Math.imul(ze,be)|0,F=F+Math.imul(te,je)|0,X=X+Math.imul(te,be)|0,U=U+Math.imul(Re,De)|0,F=F+Math.imul(Re,Je)|0,F=F+Math.imul(Se,De)|0,X=X+Math.imul(Se,Je)|0,U=U+Math.imul(he,Vt)|0,F=F+Math.imul(he,br)|0,F=F+Math.imul($e,Vt)|0,X=X+Math.imul($e,br)|0;var ln=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(ln>>>26)|0,ln&=67108863,U=Math.imul(at,tr),F=Math.imul(at,hr),F=F+Math.imul(zt,tr)|0,X=Math.imul(zt,hr),U=U+Math.imul(Be,er)|0,F=F+Math.imul(Be,pr)|0,F=F+Math.imul(Ze,er)|0,X=X+Math.imul(Ze,pr)|0,U=U+Math.imul(ve,Xt)|0,F=F+Math.imul(ve,dr)|0,F=F+Math.imul(ie,Xt)|0,X=X+Math.imul(ie,dr)|0,U=U+Math.imul(mt,Qt)|0,F=F+Math.imul(mt,fr)|0,F=F+Math.imul(Ht,Qt)|0,X=X+Math.imul(Ht,fr)|0,U=U+Math.imul(rt,jt)|0,F=F+Math.imul(rt,ar)|0,F=F+Math.imul(At,jt)|0,X=X+Math.imul(At,ar)|0,U=U+Math.imul(V,Xe)|0,F=F+Math.imul(V,et)|0,F=F+Math.imul(Qe,Xe)|0,X=X+Math.imul(Qe,et)|0,U=U+Math.imul(oe,je)|0,F=F+Math.imul(oe,be)|0,F=F+Math.imul(ge,je)|0,X=X+Math.imul(ge,be)|0,U=U+Math.imul(ze,De)|0,F=F+Math.imul(ze,Je)|0,F=F+Math.imul(te,De)|0,X=X+Math.imul(te,Je)|0,U=U+Math.imul(Re,Vt)|0,F=F+Math.imul(Re,br)|0,F=F+Math.imul(Se,Vt)|0,X=X+Math.imul(Se,br)|0;var yt=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(yt>>>26)|0,yt&=67108863,U=Math.imul(at,er),F=Math.imul(at,pr),F=F+Math.imul(zt,er)|0,X=Math.imul(zt,pr),U=U+Math.imul(Be,Xt)|0,F=F+Math.imul(Be,dr)|0,F=F+Math.imul(Ze,Xt)|0,X=X+Math.imul(Ze,dr)|0,U=U+Math.imul(ve,Qt)|0,F=F+Math.imul(ve,fr)|0,F=F+Math.imul(ie,Qt)|0,X=X+Math.imul(ie,fr)|0,U=U+Math.imul(mt,jt)|0,F=F+Math.imul(mt,ar)|0,F=F+Math.imul(Ht,jt)|0,X=X+Math.imul(Ht,ar)|0,U=U+Math.imul(rt,Xe)|0,F=F+Math.imul(rt,et)|0,F=F+Math.imul(At,Xe)|0,X=X+Math.imul(At,et)|0,U=U+Math.imul(V,je)|0,F=F+Math.imul(V,be)|0,F=F+Math.imul(Qe,je)|0,X=X+Math.imul(Qe,be)|0,U=U+Math.imul(oe,De)|0,F=F+Math.imul(oe,Je)|0,F=F+Math.imul(ge,De)|0,X=X+Math.imul(ge,Je)|0,U=U+Math.imul(ze,Vt)|0,F=F+Math.imul(ze,br)|0,F=F+Math.imul(te,Vt)|0,X=X+Math.imul(te,br)|0;var ot=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(ot>>>26)|0,ot&=67108863,U=Math.imul(at,Xt),F=Math.imul(at,dr),F=F+Math.imul(zt,Xt)|0,X=Math.imul(zt,dr),U=U+Math.imul(Be,Qt)|0,F=F+Math.imul(Be,fr)|0,F=F+Math.imul(Ze,Qt)|0,X=X+Math.imul(Ze,fr)|0,U=U+Math.imul(ve,jt)|0,F=F+Math.imul(ve,ar)|0,F=F+Math.imul(ie,jt)|0,X=X+Math.imul(ie,ar)|0,U=U+Math.imul(mt,Xe)|0,F=F+Math.imul(mt,et)|0,F=F+Math.imul(Ht,Xe)|0,X=X+Math.imul(Ht,et)|0,U=U+Math.imul(rt,je)|0,F=F+Math.imul(rt,be)|0,F=F+Math.imul(At,je)|0,X=X+Math.imul(At,be)|0,U=U+Math.imul(V,De)|0,F=F+Math.imul(V,Je)|0,F=F+Math.imul(Qe,De)|0,X=X+Math.imul(Qe,Je)|0,U=U+Math.imul(oe,Vt)|0,F=F+Math.imul(oe,br)|0,F=F+Math.imul(ge,Vt)|0,X=X+Math.imul(ge,br)|0;var lt=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(lt>>>26)|0,lt&=67108863,U=Math.imul(at,Qt),F=Math.imul(at,fr),F=F+Math.imul(zt,Qt)|0,X=Math.imul(zt,fr),U=U+Math.imul(Be,jt)|0,F=F+Math.imul(Be,ar)|0,F=F+Math.imul(Ze,jt)|0,X=X+Math.imul(Ze,ar)|0,U=U+Math.imul(ve,Xe)|0,F=F+Math.imul(ve,et)|0,F=F+Math.imul(ie,Xe)|0,X=X+Math.imul(ie,et)|0,U=U+Math.imul(mt,je)|0,F=F+Math.imul(mt,be)|0,F=F+Math.imul(Ht,je)|0,X=X+Math.imul(Ht,be)|0,U=U+Math.imul(rt,De)|0,F=F+Math.imul(rt,Je)|0,F=F+Math.imul(At,De)|0,X=X+Math.imul(At,Je)|0,U=U+Math.imul(V,Vt)|0,F=F+Math.imul(V,br)|0,F=F+Math.imul(Qe,Vt)|0,X=X+Math.imul(Qe,br)|0;var gt=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(gt>>>26)|0,gt&=67108863,U=Math.imul(at,jt),F=Math.imul(at,ar),F=F+Math.imul(zt,jt)|0,X=Math.imul(zt,ar),U=U+Math.imul(Be,Xe)|0,F=F+Math.imul(Be,et)|0,F=F+Math.imul(Ze,Xe)|0,X=X+Math.imul(Ze,et)|0,U=U+Math.imul(ve,je)|0,F=F+Math.imul(ve,be)|0,F=F+Math.imul(ie,je)|0,X=X+Math.imul(ie,be)|0,U=U+Math.imul(mt,De)|0,F=F+Math.imul(mt,Je)|0,F=F+Math.imul(Ht,De)|0,X=X+Math.imul(Ht,Je)|0,U=U+Math.imul(rt,Vt)|0,F=F+Math.imul(rt,br)|0,F=F+Math.imul(At,Vt)|0,X=X+Math.imul(At,br)|0;var Ie=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,U=Math.imul(at,Xe),F=Math.imul(at,et),F=F+Math.imul(zt,Xe)|0,X=Math.imul(zt,et),U=U+Math.imul(Be,je)|0,F=F+Math.imul(Be,be)|0,F=F+Math.imul(Ze,je)|0,X=X+Math.imul(Ze,be)|0,U=U+Math.imul(ve,De)|0,F=F+Math.imul(ve,Je)|0,F=F+Math.imul(ie,De)|0,X=X+Math.imul(ie,Je)|0,U=U+Math.imul(mt,Vt)|0,F=F+Math.imul(mt,br)|0,F=F+Math.imul(Ht,Vt)|0,X=X+Math.imul(Ht,br)|0;var Zt=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,U=Math.imul(at,je),F=Math.imul(at,be),F=F+Math.imul(zt,je)|0,X=Math.imul(zt,be),U=U+Math.imul(Be,De)|0,F=F+Math.imul(Be,Je)|0,F=F+Math.imul(Ze,De)|0,X=X+Math.imul(Ze,Je)|0,U=U+Math.imul(ve,Vt)|0,F=F+Math.imul(ve,br)|0,F=F+Math.imul(ie,Vt)|0,X=X+Math.imul(ie,br)|0;var Ir=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,U=Math.imul(at,De),F=Math.imul(at,Je),F=F+Math.imul(zt,De)|0,X=Math.imul(zt,Je),U=U+Math.imul(Be,Vt)|0,F=F+Math.imul(Be,br)|0,F=F+Math.imul(Ze,Vt)|0,X=X+Math.imul(Ze,br)|0;var $=(C+U|0)+((F&8191)<<13)|0;C=(X+(F>>>13)|0)+($>>>26)|0,$&=67108863,U=Math.imul(at,Vt),F=Math.imul(at,br),F=F+Math.imul(zt,Vt)|0,X=Math.imul(zt,br);var Qr=(C+U|0)+((F&8191)<<13)|0;return C=(X+(F>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,u[0]=Rr,u[1]=Dr,u[2]=Pr,u[3]=k,u[4]=a,u[5]=S,u[6]=sn,u[7]=Lr,u[8]=Wr,u[9]=ln,u[10]=yt,u[11]=ot,u[12]=lt,u[13]=gt,u[14]=Ie,u[15]=Zt,u[16]=Ir,u[17]=$,u[18]=Qr,C!==0&&(u[19]=C,w.length++),w};Math.imul||(q=G);function Y(A,m,E){E.negative=m.negative^A.negative,E.length=A.length+m.length;for(var w=0,x=0,R=0;R<E.length-1;R++){var u=x;x=0;for(var C=w&67108863,U=Math.min(R,m.length-1),F=Math.max(0,R-A.length+1);F<=U;F++){var X=R-F,Ae=A.words[X]|0,he=m.words[F]|0,$e=Ae*he,Ge=$e&67108863;u=u+($e/67108864|0)|0,Ge=Ge+C|0,C=Ge&67108863,u=u+(Ge>>>26)|0,x+=u>>>26,u&=67108863}E.words[R]=C,w=u,u=x}return w!==0?E.words[R]=w:E.length--,E._strip()}function ne(A,m,E){return Y(A,m,E)}n.prototype.mulTo=function(m,E){var w,x=this.length+m.length;return this.length===10&&m.length===10?w=q(this,m,E):x<63?w=G(this,m,E):x<1024?w=Y(this,m,E):w=ne(this,m,E),w};function ce(A,m){this.x=A,this.y=m}ce.prototype.makeRBT=function(m){for(var E=new Array(m),w=n.prototype._countBits(m)-1,x=0;x<m;x++)E[x]=this.revBin(x,w,m);return E},ce.prototype.revBin=function(m,E,w){if(m===0||m===w-1)return m;for(var x=0,R=0;R<E;R++)x|=(m&1)<<E-R-1,m>>=1;return x},ce.prototype.permute=function(m,E,w,x,R,u){for(var C=0;C<u;C++)x[C]=E[m[C]],R[C]=w[m[C]]},ce.prototype.transform=function(m,E,w,x,R,u){this.permute(u,m,E,w,x,R);for(var C=1;C<R;C<<=1)for(var U=C<<1,F=Math.cos(2*Math.PI/U),X=Math.sin(2*Math.PI/U),Ae=0;Ae<R;Ae+=U)for(var he=F,$e=X,Ge=0;Ge<C;Ge++){var Re=w[Ae+Ge],Se=x[Ae+Ge],ct=w[Ae+Ge+C],ze=x[Ae+Ge+C],te=he*ct-$e*ze;ze=he*ze+$e*ct,ct=te,w[Ae+Ge]=Re+ct,x[Ae+Ge]=Se+ze,w[Ae+Ge+C]=Re-ct,x[Ae+Ge+C]=Se-ze,Ge!==U&&(te=F*he-X*$e,$e=F*$e+X*he,he=te)}},ce.prototype.guessLen13b=function(m,E){var w=Math.max(E,m)|1,x=w&1,R=0;for(w=w/2|0;w;w=w>>>1)R++;return 1<<R+1+x},ce.prototype.conjugate=function(m,E,w){if(!(w<=1))for(var x=0;x<w/2;x++){var R=m[x];m[x]=m[w-x-1],m[w-x-1]=R,R=E[x],E[x]=-E[w-x-1],E[w-x-1]=-R}},ce.prototype.normalize13b=function(m,E){for(var w=0,x=0;x<E/2;x++){var R=Math.round(m[2*x+1]/E)*8192+Math.round(m[2*x]/E)+w;m[x]=R&67108863,R<67108864?w=0:w=R/67108864|0}return m},ce.prototype.convert13b=function(m,E,w,x){for(var R=0,u=0;u<E;u++)R=R+(m[u]|0),w[2*u]=R&8191,R=R>>>13,w[2*u+1]=R&8191,R=R>>>13;for(u=2*E;u<x;++u)w[u]=0;r(R===0),r((R&-8192)===0)},ce.prototype.stub=function(m){for(var E=new Array(m),w=0;w<m;w++)E[w]=0;return E},ce.prototype.mulp=function(m,E,w){var x=2*this.guessLen13b(m.length,E.length),R=this.makeRBT(x),u=this.stub(x),C=new Array(x),U=new Array(x),F=new Array(x),X=new Array(x),Ae=new Array(x),he=new Array(x),$e=w.words;$e.length=x,this.convert13b(m.words,m.length,C,x),this.convert13b(E.words,E.length,X,x),this.transform(C,u,U,F,x,R),this.transform(X,u,Ae,he,x,R);for(var Ge=0;Ge<x;Ge++){var Re=U[Ge]*Ae[Ge]-F[Ge]*he[Ge];F[Ge]=U[Ge]*he[Ge]+F[Ge]*Ae[Ge],U[Ge]=Re}return this.conjugate(U,F,x),this.transform(U,F,$e,u,x,R),this.conjugate($e,u,x),this.normalize13b($e,x),w.negative=m.negative^E.negative,w.length=m.length+E.length,w._strip()},n.prototype.mul=function(m){var E=new n(null);return E.words=new Array(this.length+m.length),this.mulTo(m,E)},n.prototype.mulf=function(m){var E=new n(null);return E.words=new Array(this.length+m.length),ne(this,m,E)},n.prototype.imul=function(m){return this.clone().mulTo(m,this)},n.prototype.imuln=function(m){var E=m<0;E&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var w=0,x=0;x<this.length;x++){var R=(this.words[x]|0)*m,u=(R&67108863)+(w&67108863);w>>=26,w+=R/67108864|0,w+=u>>>26,this.words[x]=u&67108863}return w!==0&&(this.words[x]=w,this.length++),E?this.ineg():this},n.prototype.muln=function(m){return this.clone().imuln(m)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(m){var E=P(m);if(E.length===0)return new n(1);for(var w=this,x=0;x<E.length&&E[x]===0;x++,w=w.sqr());if(++x<E.length)for(var R=w.sqr();x<E.length;x++,R=R.sqr())E[x]!==0&&(w=w.mul(R));return w},n.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,w=(m-E)/26,x=67108863>>>26-E<<26-E,R;if(E!==0){var u=0;for(R=0;R<this.length;R++){var C=this.words[R]&x,U=(this.words[R]|0)-C<<E;this.words[R]=U|u,u=C>>>26-E}u&&(this.words[R]=u,this.length++)}if(w!==0){for(R=this.length-1;R>=0;R--)this.words[R+w]=this.words[R];for(R=0;R<w;R++)this.words[R]=0;this.length+=w}return this._strip()},n.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},n.prototype.iushrn=function(m,E,w){r(typeof m=="number"&&m>=0);var x;E?x=(E-E%26)/26:x=0;var R=m%26,u=Math.min((m-R)/26,this.length),C=67108863^67108863>>>R<<R,U=w;if(x-=u,x=Math.max(0,x),U){for(var F=0;F<u;F++)U.words[F]=this.words[F];U.length=u}if(u!==0)if(this.length>u)for(this.length-=u,F=0;F<this.length;F++)this.words[F]=this.words[F+u];else this.words[0]=0,this.length=1;var X=0;for(F=this.length-1;F>=0&&(X!==0||F>=x);F--){var Ae=this.words[F]|0;this.words[F]=X<<26-R|Ae>>>R,X=Ae&C}return U&&X!==0&&(U.words[U.length++]=X),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(m,E,w){return r(this.negative===0),this.iushrn(m,E,w)},n.prototype.shln=function(m){return this.clone().ishln(m)},n.prototype.ushln=function(m){return this.clone().iushln(m)},n.prototype.shrn=function(m){return this.clone().ishrn(m)},n.prototype.ushrn=function(m){return this.clone().iushrn(m)},n.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,w=(m-E)/26,x=1<<E;if(this.length<=w)return!1;var R=this.words[w];return!!(R&x)},n.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,w=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(E!==0&&w++,this.length=Math.min(w,this.length),E!==0){var x=67108863^67108863>>>E<<E;this.words[this.length-1]&=x}return this._strip()},n.prototype.maskn=function(m){return this.clone().imaskn(m)},n.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},n.prototype._iaddn=function(m){this.words[0]+=m;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},n.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},n.prototype.addn=function(m){return this.clone().iaddn(m)},n.prototype.subn=function(m){return this.clone().isubn(m)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(m,E,w){var x=m.length+w,R;this._expand(x);var u,C=0;for(R=0;R<m.length;R++){u=(this.words[R+w]|0)+C;var U=(m.words[R]|0)*E;u-=U&67108863,C=(u>>26)-(U/67108864|0),this.words[R+w]=u&67108863}for(;R<this.length-w;R++)u=(this.words[R+w]|0)+C,C=u>>26,this.words[R+w]=u&67108863;if(C===0)return this._strip();for(r(C===-1),C=0,R=0;R<this.length;R++)u=-(this.words[R]|0)+C,C=u>>26,this.words[R]=u&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(m,E){var w=this.length-m.length,x=this.clone(),R=m,u=R.words[R.length-1]|0,C=this._countBits(u);w=26-C,w!==0&&(R=R.ushln(w),x.iushln(w),u=R.words[R.length-1]|0);var U=x.length-R.length,F;if(E!=="mod"){F=new n(null),F.length=U+1,F.words=new Array(F.length);for(var X=0;X<F.length;X++)F.words[X]=0}var Ae=x.clone()._ishlnsubmul(R,1,U);Ae.negative===0&&(x=Ae,F&&(F.words[U]=1));for(var he=U-1;he>=0;he--){var $e=(x.words[R.length+he]|0)*67108864+(x.words[R.length+he-1]|0);for($e=Math.min($e/u|0,67108863),x._ishlnsubmul(R,$e,he);x.negative!==0;)$e--,x.negative=0,x._ishlnsubmul(R,1,he),x.isZero()||(x.negative^=1);F&&(F.words[he]=$e)}return F&&F._strip(),x._strip(),E!=="div"&&w!==0&&x.iushrn(w),{div:F||null,mod:x}},n.prototype.divmod=function(m,E,w){if(r(!m.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var x,R,u;return this.negative!==0&&m.negative===0?(u=this.neg().divmod(m,E),E!=="mod"&&(x=u.div.neg()),E!=="div"&&(R=u.mod.neg(),w&&R.negative!==0&&R.iadd(m)),{div:x,mod:R}):this.negative===0&&m.negative!==0?(u=this.divmod(m.neg(),E),E!=="mod"&&(x=u.div.neg()),{div:x,mod:u.mod}):(this.negative&m.negative)!==0?(u=this.neg().divmod(m.neg(),E),E!=="div"&&(R=u.mod.neg(),w&&R.negative!==0&&R.isub(m)),{div:u.div,mod:R}):m.length>this.length||this.cmp(m)<0?{div:new n(0),mod:this}:m.length===1?E==="div"?{div:this.divn(m.words[0]),mod:null}:E==="mod"?{div:null,mod:new n(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new n(this.modrn(m.words[0]))}:this._wordDiv(m,E)},n.prototype.div=function(m){return this.divmod(m,"div",!1).div},n.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},n.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},n.prototype.divRound=function(m){var E=this.divmod(m);if(E.mod.isZero())return E.div;var w=E.div.negative!==0?E.mod.isub(m):E.mod,x=m.ushrn(1),R=m.andln(1),u=w.cmp(x);return u<0||R===1&&u===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},n.prototype.modrn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var w=(1<<26)%m,x=0,R=this.length-1;R>=0;R--)x=(w*x+(this.words[R]|0))%m;return E?-x:x},n.prototype.modn=function(m){return this.modrn(m)},n.prototype.idivn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var w=0,x=this.length-1;x>=0;x--){var R=(this.words[x]|0)+w*67108864;this.words[x]=R/m|0,w=R%m}return this._strip(),E?this.ineg():this},n.prototype.divn=function(m){return this.clone().idivn(m)},n.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var E=this,w=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var x=new n(1),R=new n(0),u=new n(0),C=new n(1),U=0;E.isEven()&&w.isEven();)E.iushrn(1),w.iushrn(1),++U;for(var F=w.clone(),X=E.clone();!E.isZero();){for(var Ae=0,he=1;(E.words[0]&he)===0&&Ae<26;++Ae,he<<=1);if(Ae>0)for(E.iushrn(Ae);Ae-- >0;)(x.isOdd()||R.isOdd())&&(x.iadd(F),R.isub(X)),x.iushrn(1),R.iushrn(1);for(var $e=0,Ge=1;(w.words[0]&Ge)===0&&$e<26;++$e,Ge<<=1);if($e>0)for(w.iushrn($e);$e-- >0;)(u.isOdd()||C.isOdd())&&(u.iadd(F),C.isub(X)),u.iushrn(1),C.iushrn(1);E.cmp(w)>=0?(E.isub(w),x.isub(u),R.isub(C)):(w.isub(E),u.isub(x),C.isub(R))}return{a:u,b:C,gcd:w.iushln(U)}},n.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,w=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var x=new n(1),R=new n(0),u=w.clone();E.cmpn(1)>0&&w.cmpn(1)>0;){for(var C=0,U=1;(E.words[0]&U)===0&&C<26;++C,U<<=1);if(C>0)for(E.iushrn(C);C-- >0;)x.isOdd()&&x.iadd(u),x.iushrn(1);for(var F=0,X=1;(w.words[0]&X)===0&&F<26;++F,X<<=1);if(F>0)for(w.iushrn(F);F-- >0;)R.isOdd()&&R.iadd(u),R.iushrn(1);E.cmp(w)>=0?(E.isub(w),x.isub(R)):(w.isub(E),R.isub(x))}var Ae;return E.cmpn(1)===0?Ae=x:Ae=R,Ae.cmpn(0)<0&&Ae.iadd(m),Ae},n.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),w=m.clone();E.negative=0,w.negative=0;for(var x=0;E.isEven()&&w.isEven();x++)E.iushrn(1),w.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;w.isEven();)w.iushrn(1);var R=E.cmp(w);if(R<0){var u=E;E=w,w=u}else if(R===0||w.cmpn(1)===0)break;E.isub(w)}while(!0);return w.iushln(x)},n.prototype.invm=function(m){return this.egcd(m).a.umod(m)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(m){return this.words[0]&m},n.prototype.bincn=function(m){r(typeof m=="number");var E=m%26,w=(m-E)/26,x=1<<E;if(this.length<=w)return this._expand(w+1),this.words[w]|=x,this;for(var R=x,u=w;R!==0&&u<this.length;u++){var C=this.words[u]|0;C+=R,R=C>>>26,C&=67108863,this.words[u]=C}return R!==0&&(this.words[u]=R,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(m){var E=m<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var w;if(this.length>1)w=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var x=this.words[0]|0;w=x===m?0:x<m?-1:1}return this.negative!==0?-w|0:w},n.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var E=this.ucmp(m);return this.negative!==0?-E|0:E},n.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var E=0,w=this.length-1;w>=0;w--){var x=this.words[w]|0,R=m.words[w]|0;if(x!==R){x<R?E=-1:x>R&&(E=1);break}}return E},n.prototype.gtn=function(m){return this.cmpn(m)===1},n.prototype.gt=function(m){return this.cmp(m)===1},n.prototype.gten=function(m){return this.cmpn(m)>=0},n.prototype.gte=function(m){return this.cmp(m)>=0},n.prototype.ltn=function(m){return this.cmpn(m)===-1},n.prototype.lt=function(m){return this.cmp(m)===-1},n.prototype.lten=function(m){return this.cmpn(m)<=0},n.prototype.lte=function(m){return this.cmp(m)<=0},n.prototype.eqn=function(m){return this.cmpn(m)===0},n.prototype.eq=function(m){return this.cmp(m)===0},n.red=function(m){return new s(m)},n.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(m){return this.red=m,this},n.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},n.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},n.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},n.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},n.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},n.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},n.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},n.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var le={k256:null,p224:null,p192:null,p25519:null};function pe(A,m){this.name=A,this.p=new n(m,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}pe.prototype._tmp=function(){var m=new n(null);return m.words=new Array(Math.ceil(this.n/13)),m},pe.prototype.ireduce=function(m){var E=m,w;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),w=E.bitLength();while(w>this.n);var x=w<this.n?-1:E.ucmp(this.p);return x===0?(E.words[0]=0,E.length=1):x>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},pe.prototype.split=function(m,E){m.iushrn(this.n,0,E)},pe.prototype.imulK=function(m){return m.imul(this.k)};function ae(){pe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ae,pe),ae.prototype.split=function(m,E){for(var w=4194303,x=Math.min(m.length,9),R=0;R<x;R++)E.words[R]=m.words[R];if(E.length=x,m.length<=9){m.words[0]=0,m.length=1;return}var u=m.words[9];for(E.words[E.length++]=u&w,R=10;R<m.length;R++){var C=m.words[R]|0;m.words[R-10]=(C&w)<<4|u>>>22,u=C}u>>>=22,m.words[R-10]=u,u===0&&m.length>10?m.length-=10:m.length-=9},ae.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var E=0,w=0;w<m.length;w++){var x=m.words[w]|0;E+=x*977,m.words[w]=E&67108863,E=x*64+(E/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function W(){pe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(W,pe);function se(){pe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(se,pe);function O(){pe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(O,pe),O.prototype.imulK=function(m){for(var E=0,w=0;w<m.length;w++){var x=(m.words[w]|0)*19+E,R=x&67108863;x>>>=26,m.words[w]=R,E=x}return E!==0&&(m.words[m.length++]=E),m},n._prime=function(m){if(le[m])return le[m];var E;if(m==="k256")E=new ae;else if(m==="p224")E=new W;else if(m==="p192")E=new se;else if(m==="p25519")E=new O;else throw new Error("Unknown prime "+m);return le[m]=E,E};function s(A){if(typeof A=="string"){var m=n._prime(A);this.m=m.p,this.prime=m}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}s.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},s.prototype._verify2=function(m,E){r((m.negative|E.negative)===0,"red works only with positives"),r(m.red&&m.red===E.red,"red works only with red numbers")},s.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(_(m,m.umod(this.m)._forceRed(this)),m)},s.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},s.prototype.add=function(m,E){this._verify2(m,E);var w=m.add(E);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},s.prototype.iadd=function(m,E){this._verify2(m,E);var w=m.iadd(E);return w.cmp(this.m)>=0&&w.isub(this.m),w},s.prototype.sub=function(m,E){this._verify2(m,E);var w=m.sub(E);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},s.prototype.isub=function(m,E){this._verify2(m,E);var w=m.isub(E);return w.cmpn(0)<0&&w.iadd(this.m),w},s.prototype.shl=function(m,E){return this._verify1(m),this.imod(m.ushln(E))},s.prototype.imul=function(m,E){return this._verify2(m,E),this.imod(m.imul(E))},s.prototype.mul=function(m,E){return this._verify2(m,E),this.imod(m.mul(E))},s.prototype.isqr=function(m){return this.imul(m,m.clone())},s.prototype.sqr=function(m){return this.mul(m,m)},s.prototype.sqrt=function(m){if(m.isZero())return m.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var w=this.m.add(new n(1)).iushrn(2);return this.pow(m,w)}for(var x=this.m.subn(1),R=0;!x.isZero()&&x.andln(1)===0;)R++,x.iushrn(1);r(!x.isZero());var u=new n(1).toRed(this),C=u.redNeg(),U=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new n(2*F*F).toRed(this);this.pow(F,U).cmp(C)!==0;)F.redIAdd(C);for(var X=this.pow(F,x),Ae=this.pow(m,x.addn(1).iushrn(1)),he=this.pow(m,x),$e=R;he.cmp(u)!==0;){for(var Ge=he,Re=0;Ge.cmp(u)!==0;Re++)Ge=Ge.redSqr();r(Re<$e);var Se=this.pow(X,new n(1).iushln($e-Re-1));Ae=Ae.redMul(Se),X=Se.redSqr(),he=he.redMul(X),$e=Re}return Ae},s.prototype.invm=function(m){var E=m._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},s.prototype.pow=function(m,E){if(E.isZero())return new n(1).toRed(this);if(E.cmpn(1)===0)return m.clone();var w=4,x=new Array(1<<w);x[0]=new n(1).toRed(this),x[1]=m;for(var R=2;R<x.length;R++)x[R]=this.mul(x[R-1],m);var u=x[0],C=0,U=0,F=E.bitLength()%26;for(F===0&&(F=26),R=E.length-1;R>=0;R--){for(var X=E.words[R],Ae=F-1;Ae>=0;Ae--){var he=X>>Ae&1;if(u!==x[0]&&(u=this.sqr(u)),he===0&&C===0){U=0;continue}C<<=1,C|=he,U++,!(U!==w&&(R!==0||Ae!==0))&&(u=this.mul(u,x[C]),U=0,C=0)}F=26}return u},s.prototype.convertTo=function(m){var E=m.umod(this.m);return E===m?E.clone():E},s.prototype.convertFrom=function(m){var E=m.clone();return E.red=null,E},n.mont=function(m){return new l(m)};function l(A){s.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(l,s),l.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},l.prototype.convertFrom=function(m){var E=this.imod(m.mul(this.rinv));return E.red=null,E},l.prototype.imul=function(m,E){if(m.isZero()||E.isZero())return m.words[0]=0,m.length=1,m;var w=m.imul(E),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=w.isub(x).iushrn(this.shift),u=R;return R.cmp(this.m)>=0?u=R.isub(this.m):R.cmpn(0)<0&&(u=R.iadd(this.m)),u._forceRed(this)},l.prototype.mul=function(m,E){if(m.isZero()||E.isZero())return new n(0)._forceRed(this);var w=m.mul(E),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=w.isub(x).iushrn(this.shift),u=R;return R.cmp(this.m)>=0?u=R.isub(this.m):R.cmpn(0)<0&&(u=R.iadd(this.m)),u._forceRed(this)},l.prototype.invm=function(m){var E=this.imod(m._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof Ede>"u"||Ede,Kze)});var Cm=ir(Mu=>{"use strict";J();K();z();var aTt=Fv(),sTt=Gl();Mu.inherits=sTt;function cTt(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function uTt(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var i=0,n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?r[i++]=o:o<2048?(r[i++]=o>>6|192,r[i++]=o&63|128):cTt(e,n)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++n)&1023),r[i++]=o>>18|240,r[i++]=o>>12&63|128,r[i++]=o>>6&63|128,r[i++]=o&63|128):(r[i++]=o>>12|224,r[i++]=o>>6&63|128,r[i++]=o&63|128)}else for(n=0;n<e.length;n++)r[n]=e[n]|0;return r}Mu.toArray=uTt;function dTt(e){for(var t="",r=0;r<e.length;r++)t+=yKe(e[r].toString(16));return t}Mu.toHex=dTt;function mKe(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}Mu.htonl=mKe;function fTt(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];t==="little"&&(n=mKe(n)),r+=bKe(n.toString(16))}return r}Mu.toHex32=fTt;function yKe(e){return e.length===1?"0"+e:e}Mu.zero2=yKe;function bKe(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}Mu.zero8=bKe;function lTt(e,t,r,i){var n=r-t;aTt(n%4===0);for(var o=new Array(n/4),d=0,g=t;d<o.length;d++,g+=4){var y;i==="big"?y=e[g]<<24|e[g+1]<<16|e[g+2]<<8|e[g+3]:y=e[g+3]<<24|e[g+2]<<16|e[g+1]<<8|e[g],o[d]=y>>>0}return o}Mu.join32=lTt;function hTt(e,t){for(var r=new Array(e.length*4),i=0,n=0;i<e.length;i++,n+=4){var o=e[i];t==="big"?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=o&255):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=o&255)}return r}Mu.split32=hTt;function ATt(e,t){return e>>>t|e<<32-t}Mu.rotr32=ATt;function pTt(e,t){return e<<t|e>>>32-t}Mu.rotl32=pTt;function gTt(e,t){return e+t>>>0}Mu.sum32=gTt;function _Tt(e,t,r){return e+t+r>>>0}Mu.sum32_3=_Tt;function mTt(e,t,r,i){return e+t+r+i>>>0}Mu.sum32_4=mTt;function yTt(e,t,r,i,n){return e+t+r+i+n>>>0}Mu.sum32_5=yTt;function bTt(e,t,r,i){var n=e[t],o=e[t+1],d=i+o>>>0,g=(d<i?1:0)+r+n;e[t]=g>>>0,e[t+1]=d}Mu.sum64=bTt;function ETt(e,t,r,i){var n=t+i>>>0,o=(n<t?1:0)+e+r;return o>>>0}Mu.sum64_hi=ETt;function vTt(e,t,r,i){var n=t+i;return n>>>0}Mu.sum64_lo=vTt;function RTt(e,t,r,i,n,o,d,g){var y=0,_=t;_=_+i>>>0,y+=_<t?1:0,_=_+o>>>0,y+=_<o?1:0,_=_+g>>>0,y+=_<g?1:0;var I=e+r+n+d+y;return I>>>0}Mu.sum64_4_hi=RTt;function STt(e,t,r,i,n,o,d,g){var y=t+i+o+g;return y>>>0}Mu.sum64_4_lo=STt;function ITt(e,t,r,i,n,o,d,g,y,_){var I=0,N=t;N=N+i>>>0,I+=N<t?1:0,N=N+o>>>0,I+=N<o?1:0,N=N+g>>>0,I+=N<g?1:0,N=N+_>>>0,I+=N<_?1:0;var T=e+r+n+d+y+I;return T>>>0}Mu.sum64_5_hi=ITt;function CTt(e,t,r,i,n,o,d,g,y,_){var I=t+i+o+g+_;return I>>>0}Mu.sum64_5_lo=CTt;function wTt(e,t,r){var i=t<<32-r|e>>>r;return i>>>0}Mu.rotr64_hi=wTt;function OTt(e,t,r){var i=e<<32-r|t>>>r;return i>>>0}Mu.rotr64_lo=OTt;function NTt(e,t,r){return e>>>r}Mu.shr64_hi=NTt;function xTt(e,t,r){var i=e<<32-r|t>>>r;return i>>>0}Mu.shr64_lo=xTt});var jO=ir(vKe=>{"use strict";J();K();z();var EKe=Cm(),TTt=Fv();function QV(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}vKe.BlockHash=QV;QV.prototype.update=function(t,r){if(t=EKe.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var i=t.length%this._delta8;this.pending=t.slice(t.length-i,t.length),this.pending.length===0&&(this.pending=null),t=EKe.join32(t,0,t.length-i,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this};QV.prototype.digest=function(t){return this.update(this._pad()),TTt(this.pending===null),this._digest(t)};QV.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,i=r-(t+this.padLength)%r,n=new Array(i+this.padLength);n[0]=128;for(var o=1;o<i;o++)n[o]=0;if(t<<=3,this.endian==="big"){for(var d=8;d<this.padLength;d++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=t>>>24&255,n[o++]=t>>>16&255,n[o++]=t>>>8&255,n[o++]=t&255}else for(n[o++]=t&255,n[o++]=t>>>8&255,n[o++]=t>>>16&255,n[o++]=t>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,d=8;d<this.padLength;d++)n[o++]=0;return n}});var wde=ir(zv=>{"use strict";J();K();z();var BTt=Cm(),ab=BTt.rotr32;function MTt(e,t,r,i){if(e===0)return RKe(t,r,i);if(e===1||e===3)return IKe(t,r,i);if(e===2)return SKe(t,r,i)}zv.ft_1=MTt;function RKe(e,t,r){return e&t^~e&r}zv.ch32=RKe;function SKe(e,t,r){return e&t^e&r^t&r}zv.maj32=SKe;function IKe(e,t,r){return e^t^r}zv.p32=IKe;function DTt(e){return ab(e,2)^ab(e,13)^ab(e,22)}zv.s0_256=DTt;function kTt(e){return ab(e,6)^ab(e,11)^ab(e,25)}zv.s1_256=kTt;function PTt(e){return ab(e,7)^ab(e,18)^e>>>3}zv.g0_256=PTt;function LTt(e){return ab(e,17)^ab(e,19)^e>>>10}zv.g1_256=LTt});var OKe=ir((N5n,wKe)=>{"use strict";J();K();z();var eN=Cm(),UTt=jO(),FTt=wde(),Ode=eN.rotl32,uk=eN.sum32,QTt=eN.sum32_5,HTt=FTt.ft_1,CKe=UTt.BlockHash,GTt=[1518500249,1859775393,2400959708,3395469782];function sb(){if(!(this instanceof sb))return new sb;CKe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}eN.inherits(sb,CKe);wKe.exports=sb;sb.blockSize=512;sb.outSize=160;sb.hmacStrength=80;sb.padLength=64;sb.prototype._update=function(t,r){for(var i=this.W,n=0;n<16;n++)i[n]=t[r+n];for(;n<i.length;n++)i[n]=Ode(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var o=this.h[0],d=this.h[1],g=this.h[2],y=this.h[3],_=this.h[4];for(n=0;n<i.length;n++){var I=~~(n/20),N=QTt(Ode(o,5),HTt(I,d,g,y),_,i[n],GTt[I]);_=y,y=g,g=Ode(d,30),d=o,o=N}this.h[0]=uk(this.h[0],o),this.h[1]=uk(this.h[1],d),this.h[2]=uk(this.h[2],g),this.h[3]=uk(this.h[3],y),this.h[4]=uk(this.h[4],_)};sb.prototype._digest=function(t){return t==="hex"?eN.toHex32(this.h,"big"):eN.split32(this.h,"big")}});var Nde=ir((M5n,xKe)=>{"use strict";J();K();z();var tN=Cm(),qTt=jO(),rN=wde(),VTt=Fv(),wm=tN.sum32,JTt=tN.sum32_4,zTt=tN.sum32_5,KTt=rN.ch32,$Tt=rN.maj32,YTt=rN.s0_256,WTt=rN.s1_256,XTt=rN.g0_256,ZTt=rN.g1_256,NKe=qTt.BlockHash,jTt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function cb(){if(!(this instanceof cb))return new cb;NKe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=jTt,this.W=new Array(64)}tN.inherits(cb,NKe);xKe.exports=cb;cb.blockSize=512;cb.outSize=256;cb.hmacStrength=192;cb.padLength=64;cb.prototype._update=function(t,r){for(var i=this.W,n=0;n<16;n++)i[n]=t[r+n];for(;n<i.length;n++)i[n]=JTt(ZTt(i[n-2]),i[n-7],XTt(i[n-15]),i[n-16]);var o=this.h[0],d=this.h[1],g=this.h[2],y=this.h[3],_=this.h[4],I=this.h[5],N=this.h[6],T=this.h[7];for(VTt(this.k.length===i.length),n=0;n<i.length;n++){var M=zTt(T,WTt(_),KTt(_,I,N),this.k[n],i[n]),D=wm(YTt(o),$Tt(o,d,g));T=N,N=I,I=_,_=wm(y,M),y=g,g=d,d=o,o=wm(M,D)}this.h[0]=wm(this.h[0],o),this.h[1]=wm(this.h[1],d),this.h[2]=wm(this.h[2],g),this.h[3]=wm(this.h[3],y),this.h[4]=wm(this.h[4],_),this.h[5]=wm(this.h[5],I),this.h[6]=wm(this.h[6],N),this.h[7]=wm(this.h[7],T)};cb.prototype._digest=function(t){return t==="hex"?tN.toHex32(this.h,"big"):tN.split32(this.h,"big")}});var MKe=ir((L5n,BKe)=>{"use strict";J();K();z();var xde=Cm(),TKe=Nde();function Kv(){if(!(this instanceof Kv))return new Kv;TKe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}xde.inherits(Kv,TKe);BKe.exports=Kv;Kv.blockSize=512;Kv.outSize=224;Kv.hmacStrength=192;Kv.padLength=64;Kv.prototype._digest=function(t){return t==="hex"?xde.toHex32(this.h.slice(0,7),"big"):xde.split32(this.h.slice(0,7),"big")}});var Mde=ir((H5n,LKe)=>{"use strict";J();K();z();var Np=Cm(),eBt=jO(),tBt=Fv(),ub=Np.rotr64_hi,db=Np.rotr64_lo,DKe=Np.shr64_hi,kKe=Np.shr64_lo,U6=Np.sum64,Tde=Np.sum64_hi,Bde=Np.sum64_lo,rBt=Np.sum64_4_hi,nBt=Np.sum64_4_lo,iBt=Np.sum64_5_hi,oBt=Np.sum64_5_lo,PKe=eBt.BlockHash,aBt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Om(){if(!(this instanceof Om))return new Om;PKe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=aBt,this.W=new Array(160)}Np.inherits(Om,PKe);LKe.exports=Om;Om.blockSize=1024;Om.outSize=512;Om.hmacStrength=192;Om.padLength=128;Om.prototype._prepareBlock=function(t,r){for(var i=this.W,n=0;n<32;n++)i[n]=t[r+n];for(;n<i.length;n+=2){var o=_Bt(i[n-4],i[n-3]),d=mBt(i[n-4],i[n-3]),g=i[n-14],y=i[n-13],_=pBt(i[n-30],i[n-29]),I=gBt(i[n-30],i[n-29]),N=i[n-32],T=i[n-31];i[n]=rBt(o,d,g,y,_,I,N,T),i[n+1]=nBt(o,d,g,y,_,I,N,T)}};Om.prototype._update=function(t,r){this._prepareBlock(t,r);var i=this.W,n=this.h[0],o=this.h[1],d=this.h[2],g=this.h[3],y=this.h[4],_=this.h[5],I=this.h[6],N=this.h[7],T=this.h[8],M=this.h[9],D=this.h[10],P=this.h[11],G=this.h[12],q=this.h[13],Y=this.h[14],ne=this.h[15];tBt(this.k.length===i.length);for(var ce=0;ce<i.length;ce+=2){var le=Y,pe=ne,ae=hBt(T,M),W=ABt(T,M),se=sBt(T,M,D,P,G,q),O=cBt(T,M,D,P,G,q),s=this.k[ce],l=this.k[ce+1],A=i[ce],m=i[ce+1],E=iBt(le,pe,ae,W,se,O,s,l,A,m),w=oBt(le,pe,ae,W,se,O,s,l,A,m);le=fBt(n,o),pe=lBt(n,o),ae=uBt(n,o,d,g,y,_),W=dBt(n,o,d,g,y,_);var x=Tde(le,pe,ae,W),R=Bde(le,pe,ae,W);Y=G,ne=q,G=D,q=P,D=T,P=M,T=Tde(I,N,E,w),M=Bde(N,N,E,w),I=y,N=_,y=d,_=g,d=n,g=o,n=Tde(E,w,x,R),o=Bde(E,w,x,R)}U6(this.h,0,n,o),U6(this.h,2,d,g),U6(this.h,4,y,_),U6(this.h,6,I,N),U6(this.h,8,T,M),U6(this.h,10,D,P),U6(this.h,12,G,q),U6(this.h,14,Y,ne)};Om.prototype._digest=function(t){return t==="hex"?Np.toHex32(this.h,"big"):Np.split32(this.h,"big")};function sBt(e,t,r,i,n){var o=e&r^~e&n;return o<0&&(o+=4294967296),o}function cBt(e,t,r,i,n,o){var d=t&i^~t&o;return d<0&&(d+=4294967296),d}function uBt(e,t,r,i,n){var o=e&r^e&n^r&n;return o<0&&(o+=4294967296),o}function dBt(e,t,r,i,n,o){var d=t&i^t&o^i&o;return d<0&&(d+=4294967296),d}function fBt(e,t){var r=ub(e,t,28),i=ub(t,e,2),n=ub(t,e,7),o=r^i^n;return o<0&&(o+=4294967296),o}function lBt(e,t){var r=db(e,t,28),i=db(t,e,2),n=db(t,e,7),o=r^i^n;return o<0&&(o+=4294967296),o}function hBt(e,t){var r=ub(e,t,14),i=ub(e,t,18),n=ub(t,e,9),o=r^i^n;return o<0&&(o+=4294967296),o}function ABt(e,t){var r=db(e,t,14),i=db(e,t,18),n=db(t,e,9),o=r^i^n;return o<0&&(o+=4294967296),o}function pBt(e,t){var r=ub(e,t,1),i=ub(e,t,8),n=DKe(e,t,7),o=r^i^n;return o<0&&(o+=4294967296),o}function gBt(e,t){var r=db(e,t,1),i=db(e,t,8),n=kKe(e,t,7),o=r^i^n;return o<0&&(o+=4294967296),o}function _Bt(e,t){var r=ub(e,t,19),i=ub(t,e,29),n=DKe(e,t,6),o=r^i^n;return o<0&&(o+=4294967296),o}function mBt(e,t){var r=db(e,t,19),i=db(t,e,29),n=kKe(e,t,6),o=r^i^n;return o<0&&(o+=4294967296),o}});var QKe=ir((J5n,FKe)=>{"use strict";J();K();z();var Dde=Cm(),UKe=Mde();function $v(){if(!(this instanceof $v))return new $v;UKe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Dde.inherits($v,UKe);FKe.exports=$v;$v.blockSize=1024;$v.outSize=384;$v.hmacStrength=192;$v.padLength=128;$v.prototype._digest=function(t){return t==="hex"?Dde.toHex32(this.h.slice(0,12),"big"):Dde.split32(this.h.slice(0,12),"big")}});var HKe=ir(nN=>{"use strict";J();K();z();nN.sha1=OKe();nN.sha224=MKe();nN.sha256=Nde();nN.sha384=QKe();nN.sha512=Mde()});var KKe=ir(zKe=>{"use strict";J();K();z();var T4=Cm(),yBt=jO(),HV=T4.rotl32,GKe=T4.sum32,dk=T4.sum32_3,qKe=T4.sum32_4,JKe=yBt.BlockHash;function fb(){if(!(this instanceof fb))return new fb;JKe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}T4.inherits(fb,JKe);zKe.ripemd160=fb;fb.blockSize=512;fb.outSize=160;fb.hmacStrength=192;fb.padLength=64;fb.prototype._update=function(t,r){for(var i=this.h[0],n=this.h[1],o=this.h[2],d=this.h[3],g=this.h[4],y=i,_=n,I=o,N=d,T=g,M=0;M<80;M++){var D=GKe(HV(qKe(i,VKe(M,n,o,d),t[vBt[M]+r],bBt(M)),SBt[M]),g);i=g,g=d,d=HV(o,10),o=n,n=D,D=GKe(HV(qKe(y,VKe(79-M,_,I,N),t[RBt[M]+r],EBt(M)),IBt[M]),T),y=T,T=N,N=HV(I,10),I=_,_=D}D=dk(this.h[1],o,N),this.h[1]=dk(this.h[2],d,T),this.h[2]=dk(this.h[3],g,y),this.h[3]=dk(this.h[4],i,_),this.h[4]=dk(this.h[0],n,I),this.h[0]=D};fb.prototype._digest=function(t){return t==="hex"?T4.toHex32(this.h,"little"):T4.split32(this.h,"little")};function VKe(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function bBt(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function EBt(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var vBt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],RBt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],SBt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],IBt=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var YKe=ir((nOn,$Ke)=>{"use strict";J();K();z();var CBt=Cm(),wBt=Fv();function iN(e,t,r){if(!(this instanceof iN))return new iN(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(CBt.toArray(t,r))}$Ke.exports=iN;iN.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),wBt(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};iN.prototype.update=function(t,r){return this.inner.update(t,r),this};iN.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}});var oN=ir(WKe=>{"use strict";J();K();z();var ql=WKe;ql.utils=Cm();ql.common=jO();ql.sha=HKe();ql.ripemd=KKe();ql.hmac=YKe();ql.sha1=ql.sha.sha1;ql.sha256=ql.sha.sha256;ql.sha224=ql.sha.sha224;ql.sha384=ql.sha.sha384;ql.sha512=ql.sha.sha512;ql.ripemd160=ql.ripemd.ripemd160});var efe=ir((jde,g$e)=>{"use strict";J();K();z();(function(e){function t(u){return parseInt(u)===u}function r(u){if(!t(u.length))return!1;for(var C=0;C<u.length;C++)if(!t(u[C])||u[C]<0||u[C]>255)return!1;return!0}function i(u,C){if(u.buffer&&ArrayBuffer.isView(u)&&u.name==="Uint8Array")return C&&(u.slice?u=u.slice():u=Array.prototype.slice.call(u)),u;if(Array.isArray(u)){if(!r(u))throw new Error("Array contains invalid value: "+u);return new Uint8Array(u)}if(t(u.length)&&r(u))return new Uint8Array(u);throw new Error("unsupported array-like object")}function n(u){return new Uint8Array(u)}function o(u,C,U,F,X){(F!=null||X!=null)&&(u.slice?u=u.slice(F,X):u=Array.prototype.slice.call(u,F,X)),C.set(u,U)}var d=(function(){function u(U){var F=[],X=0;for(U=encodeURI(U);X<U.length;){var Ae=U.charCodeAt(X++);Ae===37?(F.push(parseInt(U.substr(X,2),16)),X+=2):F.push(Ae)}return i(F)}function C(U){for(var F=[],X=0;X<U.length;){var Ae=U[X];Ae<128?(F.push(String.fromCharCode(Ae)),X++):Ae>191&&Ae<224?(F.push(String.fromCharCode((Ae&31)<<6|U[X+1]&63)),X+=2):(F.push(String.fromCharCode((Ae&15)<<12|(U[X+1]&63)<<6|U[X+2]&63)),X+=3)}return F.join("")}return{toBytes:u,fromBytes:C}})(),g=(function(){function u(F){for(var X=[],Ae=0;Ae<F.length;Ae+=2)X.push(parseInt(F.substr(Ae,2),16));return X}var C="0123456789abcdef";function U(F){for(var X=[],Ae=0;Ae<F.length;Ae++){var he=F[Ae];X.push(C[(he&240)>>4]+C[he&15])}return X.join("")}return{toBytes:u,fromBytes:U}})(),y={16:10,24:12,32:14},_=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],I=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],N=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],T=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],M=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],D=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],P=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],G=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],q=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],ne=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],ce=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],le=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],pe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],ae=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function W(u){for(var C=[],U=0;U<u.length;U+=4)C.push(u[U]<<24|u[U+1]<<16|u[U+2]<<8|u[U+3]);return C}var se=function(u){if(!(this instanceof se))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(u,!0)}),this._prepare()};se.prototype._prepare=function(){var u=y[this.key.length];if(u==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var C=0;C<=u;C++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var U=(u+1)*4,F=this.key.length/4,X=W(this.key),Ae,C=0;C<F;C++)Ae=C>>2,this._Ke[Ae][C%4]=X[C],this._Kd[u-Ae][C%4]=X[C];for(var he=0,$e=F,Ge;$e<U;){if(Ge=X[F-1],X[0]^=I[Ge>>16&255]<<24^I[Ge>>8&255]<<16^I[Ge&255]<<8^I[Ge>>24&255]^_[he]<<24,he+=1,F!=8)for(var C=1;C<F;C++)X[C]^=X[C-1];else{for(var C=1;C<F/2;C++)X[C]^=X[C-1];Ge=X[F/2-1],X[F/2]^=I[Ge&255]^I[Ge>>8&255]<<8^I[Ge>>16&255]<<16^I[Ge>>24&255]<<24;for(var C=F/2+1;C<F;C++)X[C]^=X[C-1]}for(var C=0,Re,Se;C<F&&$e<U;)Re=$e>>2,Se=$e%4,this._Ke[Re][Se]=X[C],this._Kd[u-Re][Se]=X[C++],$e++}for(var Re=1;Re<u;Re++)for(var Se=0;Se<4;Se++)Ge=this._Kd[Re][Se],this._Kd[Re][Se]=ce[Ge>>24&255]^le[Ge>>16&255]^pe[Ge>>8&255]^ae[Ge&255]},se.prototype.encrypt=function(u){if(u.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var C=this._Ke.length-1,U=[0,0,0,0],F=W(u),X=0;X<4;X++)F[X]^=this._Ke[0][X];for(var Ae=1;Ae<C;Ae++){for(var X=0;X<4;X++)U[X]=T[F[X]>>24&255]^M[F[(X+1)%4]>>16&255]^D[F[(X+2)%4]>>8&255]^P[F[(X+3)%4]&255]^this._Ke[Ae][X];F=U.slice()}for(var he=n(16),$e,X=0;X<4;X++)$e=this._Ke[C][X],he[4*X]=(I[F[X]>>24&255]^$e>>24)&255,he[4*X+1]=(I[F[(X+1)%4]>>16&255]^$e>>16)&255,he[4*X+2]=(I[F[(X+2)%4]>>8&255]^$e>>8)&255,he[4*X+3]=(I[F[(X+3)%4]&255]^$e)&255;return he},se.prototype.decrypt=function(u){if(u.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var C=this._Kd.length-1,U=[0,0,0,0],F=W(u),X=0;X<4;X++)F[X]^=this._Kd[0][X];for(var Ae=1;Ae<C;Ae++){for(var X=0;X<4;X++)U[X]=G[F[X]>>24&255]^q[F[(X+3)%4]>>16&255]^Y[F[(X+2)%4]>>8&255]^ne[F[(X+1)%4]&255]^this._Kd[Ae][X];F=U.slice()}for(var he=n(16),$e,X=0;X<4;X++)$e=this._Kd[C][X],he[4*X]=(N[F[X]>>24&255]^$e>>24)&255,he[4*X+1]=(N[F[(X+3)%4]>>16&255]^$e>>16)&255,he[4*X+2]=(N[F[(X+2)%4]>>8&255]^$e>>8)&255,he[4*X+3]=(N[F[(X+1)%4]&255]^$e)&255;return he};var O=function(u){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new se(u)};O.prototype.encrypt=function(u){if(u=i(u),u.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var C=n(u.length),U=n(16),F=0;F<u.length;F+=16)o(u,U,0,F,F+16),U=this._aes.encrypt(U),o(U,C,F);return C},O.prototype.decrypt=function(u){if(u=i(u),u.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var C=n(u.length),U=n(16),F=0;F<u.length;F+=16)o(u,U,0,F,F+16),U=this._aes.decrypt(U),o(U,C,F);return C};var s=function(u,C){if(!(this instanceof s))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!C)C=n(16);else if(C.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=i(C,!0),this._aes=new se(u)};s.prototype.encrypt=function(u){if(u=i(u),u.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var C=n(u.length),U=n(16),F=0;F<u.length;F+=16){o(u,U,0,F,F+16);for(var X=0;X<16;X++)U[X]^=this._lastCipherblock[X];this._lastCipherblock=this._aes.encrypt(U),o(this._lastCipherblock,C,F)}return C},s.prototype.decrypt=function(u){if(u=i(u),u.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var C=n(u.length),U=n(16),F=0;F<u.length;F+=16){o(u,U,0,F,F+16),U=this._aes.decrypt(U);for(var X=0;X<16;X++)C[F+X]=U[X]^this._lastCipherblock[X];o(u,this._lastCipherblock,0,F,F+16)}return C};var l=function(u,C,U){if(!(this instanceof l))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!C)C=n(16);else if(C.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");U||(U=1),this.segmentSize=U,this._shiftRegister=i(C,!0),this._aes=new se(u)};l.prototype.encrypt=function(u){if(u.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var C=i(u,!0),U,F=0;F<C.length;F+=this.segmentSize){U=this._aes.encrypt(this._shiftRegister);for(var X=0;X<this.segmentSize;X++)C[F+X]^=U[X];o(this._shiftRegister,this._shiftRegister,0,this.segmentSize),o(C,this._shiftRegister,16-this.segmentSize,F,F+this.segmentSize)}return C},l.prototype.decrypt=function(u){if(u.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var C=i(u,!0),U,F=0;F<C.length;F+=this.segmentSize){U=this._aes.encrypt(this._shiftRegister);for(var X=0;X<this.segmentSize;X++)C[F+X]^=U[X];o(this._shiftRegister,this._shiftRegister,0,this.segmentSize),o(u,this._shiftRegister,16-this.segmentSize,F,F+this.segmentSize)}return C};var A=function(u,C){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!C)C=n(16);else if(C.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=i(C,!0),this._lastPrecipherIndex=16,this._aes=new se(u)};A.prototype.encrypt=function(u){for(var C=i(u,!0),U=0;U<C.length;U++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),C[U]^=this._lastPrecipher[this._lastPrecipherIndex++];return C},A.prototype.decrypt=A.prototype.encrypt;var m=function(u){if(!(this instanceof m))throw Error("Counter must be instanitated with `new`");u!==0&&!u&&(u=1),typeof u=="number"?(this._counter=n(16),this.setValue(u)):this.setBytes(u)};m.prototype.setValue=function(u){if(typeof u!="number"||parseInt(u)!=u)throw new Error("invalid counter value (must be an integer)");for(var C=15;C>=0;--C)this._counter[C]=u%256,u=u>>8},m.prototype.setBytes=function(u){if(u=i(u,!0),u.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=u},m.prototype.increment=function(){for(var u=15;u>=0;u--)if(this._counter[u]===255)this._counter[u]=0;else{this._counter[u]++;break}};var E=function(u,C){if(!(this instanceof E))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",C instanceof m||(C=new m(C)),this._counter=C,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new se(u)};E.prototype.encrypt=function(u){for(var C=i(u,!0),U=0;U<C.length;U++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),C[U]^=this._remainingCounter[this._remainingCounterIndex++];return C},E.prototype.decrypt=E.prototype.encrypt;function w(u){u=i(u,!0);var C=16-u.length%16,U=n(u.length+C);o(u,U);for(var F=u.length;F<U.length;F++)U[F]=C;return U}function x(u){if(u=i(u,!0),u.length<16)throw new Error("PKCS#7 invalid length");var C=u[u.length-1];if(C>16)throw new Error("PKCS#7 padding byte out of range");for(var U=u.length-C,F=0;F<C;F++)if(u[U+F]!==C)throw new Error("PKCS#7 invalid padding byte");var X=n(U);return o(u,X,0,0,U),X}var R={AES:se,Counter:m,ModeOfOperation:{ecb:O,cbc:s,cfb:l,ofb:A,ctr:E},utils:{hex:g,utf8:d},padding:{pkcs7:{pad:w,strip:x}},_arrayTest:{coerceArray:i,createArray:n,copyArray:o}};typeof jde<"u"?g$e.exports=R:typeof define=="function"&&define.amd?define(R):(e.aesjs&&(R._aesjs=e.aesjs),e.aesjs=R)})(jde)});var y$e=ir((afe,m$e)=>{"use strict";J();K();z();(function(e){function r(M){let D=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),P=1779033703,G=3144134277,q=1013904242,Y=2773480762,ne=1359893119,ce=2600822924,le=528734635,pe=1541459225,ae=new Uint32Array(64);function W(E){let w=0,x=E.length;for(;x>=64;){let R=P,u=G,C=q,U=Y,F=ne,X=ce,Ae=le,he=pe,$e,Ge,Re,Se,ct;for(Ge=0;Ge<16;Ge++)Re=w+Ge*4,ae[Ge]=(E[Re]&255)<<24|(E[Re+1]&255)<<16|(E[Re+2]&255)<<8|E[Re+3]&255;for(Ge=16;Ge<64;Ge++)$e=ae[Ge-2],Se=($e>>>17|$e<<15)^($e>>>19|$e<<13)^$e>>>10,$e=ae[Ge-15],ct=($e>>>7|$e<<25)^($e>>>18|$e<<14)^$e>>>3,ae[Ge]=(Se+ae[Ge-7]|0)+(ct+ae[Ge-16]|0)|0;for(Ge=0;Ge<64;Ge++)Se=(((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&X^~F&Ae)|0)+(he+(D[Ge]+ae[Ge]|0)|0)|0,ct=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&u^R&C^u&C)|0,he=Ae,Ae=X,X=F,F=U+Se|0,U=C,C=u,u=R,R=Se+ct|0;P=P+R|0,G=G+u|0,q=q+C|0,Y=Y+U|0,ne=ne+F|0,ce=ce+X|0,le=le+Ae|0,pe=pe+he|0,w+=64,x-=64}}W(M);let se,O=M.length%64,s=M.length/536870912|0,l=M.length<<3,A=O<56?56:120,m=M.slice(M.length-O,M.length);for(m.push(128),se=O+1;se<A;se++)m.push(0);return m.push(s>>>24&255),m.push(s>>>16&255),m.push(s>>>8&255),m.push(s>>>0&255),m.push(l>>>24&255),m.push(l>>>16&255),m.push(l>>>8&255),m.push(l>>>0&255),W(m),[P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,q>>>24&255,q>>>16&255,q>>>8&255,q>>>0&255,Y>>>24&255,Y>>>16&255,Y>>>8&255,Y>>>0&255,ne>>>24&255,ne>>>16&255,ne>>>8&255,ne>>>0&255,ce>>>24&255,ce>>>16&255,ce>>>8&255,ce>>>0&255,le>>>24&255,le>>>16&255,le>>>8&255,le>>>0&255,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe>>>0&255]}function i(M,D,P){M=M.length<=64?M:r(M);let G=64+D.length+4,q=new Array(G),Y=new Array(64),ne,ce=[];for(ne=0;ne<64;ne++)q[ne]=54;for(ne=0;ne<M.length;ne++)q[ne]^=M[ne];for(ne=0;ne<D.length;ne++)q[64+ne]=D[ne];for(ne=G-4;ne<G;ne++)q[ne]=0;for(ne=0;ne<64;ne++)Y[ne]=92;for(ne=0;ne<M.length;ne++)Y[ne]^=M[ne];function le(){for(let pe=G-1;pe>=G-4;pe--){if(q[pe]++,q[pe]<=255)return;q[pe]=0}}for(;P>=32;)le(),ce=ce.concat(r(Y.concat(r(q)))),P-=32;return P>0&&(le(),ce=ce.concat(r(Y.concat(r(q))).slice(0,P))),ce}function n(M,D,P,G,q){let Y;for(y(M,(2*P-1)*16,q,0,16),Y=0;Y<2*P;Y++)g(M,Y*16,q,16),d(q,G),y(q,0,M,D+Y*16,16);for(Y=0;Y<P;Y++)y(M,D+Y*2*16,M,Y*16,16);for(Y=0;Y<P;Y++)y(M,D+(Y*2+1)*16,M,(Y+P)*16,16)}function o(M,D){return M<<D|M>>>32-D}function d(M,D){y(M,0,D,0,16);for(let P=8;P>0;P-=2)D[4]^=o(D[0]+D[12],7),D[8]^=o(D[4]+D[0],9),D[12]^=o(D[8]+D[4],13),D[0]^=o(D[12]+D[8],18),D[9]^=o(D[5]+D[1],7),D[13]^=o(D[9]+D[5],9),D[1]^=o(D[13]+D[9],13),D[5]^=o(D[1]+D[13],18),D[14]^=o(D[10]+D[6],7),D[2]^=o(D[14]+D[10],9),D[6]^=o(D[2]+D[14],13),D[10]^=o(D[6]+D[2],18),D[3]^=o(D[15]+D[11],7),D[7]^=o(D[3]+D[15],9),D[11]^=o(D[7]+D[3],13),D[15]^=o(D[11]+D[7],18),D[1]^=o(D[0]+D[3],7),D[2]^=o(D[1]+D[0],9),D[3]^=o(D[2]+D[1],13),D[0]^=o(D[3]+D[2],18),D[6]^=o(D[5]+D[4],7),D[7]^=o(D[6]+D[5],9),D[4]^=o(D[7]+D[6],13),D[5]^=o(D[4]+D[7],18),D[11]^=o(D[10]+D[9],7),D[8]^=o(D[11]+D[10],9),D[9]^=o(D[8]+D[11],13),D[10]^=o(D[9]+D[8],18),D[12]^=o(D[15]+D[14],7),D[13]^=o(D[12]+D[15],9),D[14]^=o(D[13]+D[12],13),D[15]^=o(D[14]+D[13],18);for(let P=0;P<16;++P)M[P]+=D[P]}function g(M,D,P,G){for(let q=0;q<G;q++)P[q]^=M[D+q]}function y(M,D,P,G,q){for(;q--;)P[G++]=M[D++]}function _(M){if(!M||typeof M.length!="number")return!1;for(let D=0;D<M.length;D++){let P=M[D];if(typeof P!="number"||P%1||P<0||P>=256)return!1}return!0}function I(M,D){if(typeof M!="number"||M%1)throw new Error("invalid "+D);return M}function N(M,D,P,G,q,Y,ne){if(P=I(P,"N"),G=I(G,"r"),q=I(q,"p"),Y=I(Y,"dkLen"),P===0||(P&P-1)!==0)throw new Error("N must be power of 2");if(P>2147483647/128/G)throw new Error("N too large");if(G>2147483647/128/q)throw new Error("r too large");if(!_(M))throw new Error("password must be an array or buffer");if(M=Array.prototype.slice.call(M),!_(D))throw new Error("salt must be an array or buffer");D=Array.prototype.slice.call(D);let ce=i(M,D,q*128*G),le=new Uint32Array(q*32*G);for(let F=0;F<le.length;F++){let X=F*4;le[F]=(ce[X+3]&255)<<24|(ce[X+2]&255)<<16|(ce[X+1]&255)<<8|(ce[X+0]&255)<<0}let pe=new Uint32Array(64*G),ae=new Uint32Array(32*G*P),W=32*G,se=new Uint32Array(16),O=new Uint32Array(16),s=q*P*2,l=0,A=null,m=!1,E=0,w=0,x,R,u=ne?parseInt(1e3/G):4294967295,C=typeof setImmediate<"u"?setImmediate:setTimeout,U=function(){if(m)return ne(new Error("cancelled"),l/s);let F;switch(E){case 0:R=w*32*G,y(le,R,pe,0,W),E=1,x=0;case 1:F=P-x,F>u&&(F=u);for(let Ae=0;Ae<F;Ae++)y(pe,0,ae,(x+Ae)*W,W),n(pe,W,G,se,O);if(x+=F,l+=F,ne){let Ae=parseInt(1e3*l/s);if(Ae!==A){if(m=ne(null,l/s),m)break;A=Ae}}if(x<P)break;x=0,E=2;case 2:F=P-x,F>u&&(F=u);for(let Ae=0;Ae<F;Ae++){let he=(2*G-1)*16,$e=pe[he]&P-1;g(ae,$e*W,pe,W),n(pe,W,G,se,O)}if(x+=F,l+=F,ne){let Ae=parseInt(1e3*l/s);if(Ae!==A){if(m=ne(null,l/s),m)break;A=Ae}}if(x<P)break;if(y(pe,0,le,R,W),w++,w<q){E=0;break}ce=[];for(let Ae=0;Ae<le.length;Ae++)ce.push(le[Ae]>>0&255),ce.push(le[Ae]>>8&255),ce.push(le[Ae]>>16&255),ce.push(le[Ae]>>24&255);let X=i(M,ce,Y);return ne&&ne(null,1,X),X}ne&&C(U)};if(!ne)for(;;){let F=U();if(F!=null)return F}U()}let T={scrypt:function(M,D,P,G,q,Y,ne){return new Promise(function(ce,le){let pe=0;ne&&ne(0),N(M,D,P,G,q,Y,function(ae,W,se){if(ae)le(ae);else if(se)ne&&pe!==1&&ne(1),ce(new Uint8Array(se));else if(ne&&W!==pe)return pe=W,ne(W)})})},syncScrypt:function(M,D,P,G,q,Y){return new Uint8Array(N(M,D,P,G,q,Y))}};typeof afe<"u"?m$e.exports=T:typeof define=="function"&&define.amd?define(T):e&&(e.scrypt&&(e._scrypt=e.scrypt),e.scrypt=T)})(afe)});var _k=ir((VBn,T$e)=>{"use strict";J();K();z();function c7t(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var n=e.charAt(i),o=n.charCodeAt(0);if(t[o]!==255)throw new TypeError(n+" is ambiguous");t[o]=i}var d=e.length,g=e.charAt(0),y=Math.log(d)/Math.log(256),_=Math.log(256)/Math.log(d);function I(M){if(M instanceof Uint8Array||(ArrayBuffer.isView(M)?M=new Uint8Array(M.buffer,M.byteOffset,M.byteLength):Array.isArray(M)&&(M=Uint8Array.from(M))),!(M instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(M.length===0)return"";for(var D=0,P=0,G=0,q=M.length;G!==q&&M[G]===0;)G++,D++;for(var Y=(q-G)*_+1>>>0,ne=new Uint8Array(Y);G!==q;){for(var ce=M[G],le=0,pe=Y-1;(ce!==0||le<P)&&pe!==-1;pe--,le++)ce+=256*ne[pe]>>>0,ne[pe]=ce%d>>>0,ce=ce/d>>>0;if(ce!==0)throw new Error("Non-zero carry");P=le,G++}for(var ae=Y-P;ae!==Y&&ne[ae]===0;)ae++;for(var W=g.repeat(D);ae<Y;++ae)W+=e.charAt(ne[ae]);return W}function N(M){if(typeof M!="string")throw new TypeError("Expected String");if(M.length===0)return new Uint8Array;for(var D=0,P=0,G=0;M[D]===g;)P++,D++;for(var q=(M.length-D)*y+1>>>0,Y=new Uint8Array(q);M[D];){var ne=M.charCodeAt(D);if(ne>255)return;var ce=t[ne];if(ce===255)return;for(var le=0,pe=q-1;(ce!==0||le<G)&&pe!==-1;pe--,le++)ce+=d*Y[pe]>>>0,Y[pe]=ce%256>>>0,ce=ce/256>>>0;if(ce!==0)throw new Error("Non-zero carry");G=le,D++}for(var ae=q-G;ae!==q&&Y[ae]===0;)ae++;for(var W=new Uint8Array(P+(q-ae)),se=P;ae!==q;)W[se++]=Y[ae++];return W}function T(M){var D=N(M);if(D)return D;throw new Error("Non-base"+d+" character")}return{encode:I,decodeUnsafe:N,decode:T}}T$e.exports=c7t});var M$e=ir(($Bn,B$e)=>{"use strict";J();K();z();var u7t=_k(),d7t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";B$e.exports=u7t(d7t)});var k$e=ir((n7n,D$e)=>{"use strict";J();K();z();var cc={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function s_(e,t){if(!e)throw new Error(t)}function zs(e,t,r){if(s_(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),r!==void 0)if(Array.isArray(r)){let i=r.join(", "),n=`Expected ${e} to be an Uint8Array with length [${i}]`;s_(r.includes(t.length),n)}else{let i=`Expected ${e} to be an Uint8Array with length ${r}`;s_(t.length===r,i)}}function L4(e){s_(AN(e)==="Boolean","Expected compressed to be a Boolean")}function Mm(e=r=>new Uint8Array(r),t){return typeof e=="function"&&(e=e(t)),zs("output",e,t),e}function AN(e){return Object.prototype.toString.call(e).slice(8,-1)}D$e.exports=e=>({contextRandomize(t){if(s_(t===null||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),t!==null&&zs("seed",t,32),e.contextRandomize(t)===1)throw new Error(cc.CONTEXT_RANDOMIZE_UNKNOW)},privateKeyVerify(t){return zs("private key",t,32),e.privateKeyVerify(t)===0},privateKeyNegate(t){switch(zs("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(cc.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(zs("private key",t,32),zs("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(cc.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(zs("private key",t,32),zs("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(cc.TWEAK_MUL)}},publicKeyVerify(t){return zs("public key",t,[33,65]),e.publicKeyVerify(t)===0},publicKeyCreate(t,r=!0,i){switch(zs("private key",t,32),L4(r),i=Mm(i,r?33:65),e.publicKeyCreate(i,t)){case 0:return i;case 1:throw new Error(cc.SECKEY_INVALID);case 2:throw new Error(cc.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,i){switch(zs("public key",t,[33,65]),L4(r),i=Mm(i,r?33:65),e.publicKeyConvert(i,t)){case 0:return i;case 1:throw new Error(cc.PUBKEY_PARSE);case 2:throw new Error(cc.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,i){switch(zs("public key",t,[33,65]),L4(r),i=Mm(i,r?33:65),e.publicKeyNegate(i,t)){case 0:return i;case 1:throw new Error(cc.PUBKEY_PARSE);case 2:throw new Error(cc.IMPOSSIBLE_CASE);case 3:throw new Error(cc.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,i){s_(Array.isArray(t),"Expected public keys to be an Array"),s_(t.length>0,"Expected public keys array will have more than zero items");for(let n of t)zs("public key",n,[33,65]);switch(L4(r),i=Mm(i,r?33:65),e.publicKeyCombine(i,t)){case 0:return i;case 1:throw new Error(cc.PUBKEY_PARSE);case 2:throw new Error(cc.PUBKEY_COMBINE);case 3:throw new Error(cc.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,i=!0,n){switch(zs("public key",t,[33,65]),zs("tweak",r,32),L4(i),n=Mm(n,i?33:65),e.publicKeyTweakAdd(n,t,r)){case 0:return n;case 1:throw new Error(cc.PUBKEY_PARSE);case 2:throw new Error(cc.TWEAK_ADD)}},publicKeyTweakMul(t,r,i=!0,n){switch(zs("public key",t,[33,65]),zs("tweak",r,32),L4(i),n=Mm(n,i?33:65),e.publicKeyTweakMul(n,t,r)){case 0:return n;case 1:throw new Error(cc.PUBKEY_PARSE);case 2:throw new Error(cc.TWEAK_MUL)}},signatureNormalize(t){switch(zs("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(cc.SIG_PARSE)}},signatureExport(t,r){zs("signature",t,64),r=Mm(r,72);let i={output:r,outputlen:72};switch(e.signatureExport(i,t)){case 0:return r.slice(0,i.outputlen);case 1:throw new Error(cc.SIG_PARSE);case 2:throw new Error(cc.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(zs("signature",t),r=Mm(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(cc.SIG_PARSE);case 2:throw new Error(cc.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,i={},n){zs("message",t,32),zs("private key",r,32),s_(AN(i)==="Object","Expected options to be an Object"),i.data!==void 0&&zs("options.data",i.data),i.noncefn!==void 0&&s_(AN(i.noncefn)==="Function","Expected options.noncefn to be a Function"),n=Mm(n,64);let o={signature:n,recid:null};switch(e.ecdsaSign(o,t,r,i.data,i.noncefn)){case 0:return o;case 1:throw new Error(cc.SIGN);case 2:throw new Error(cc.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,i){switch(zs("signature",t,64),zs("message",r,32),zs("public key",i,[33,65]),e.ecdsaVerify(t,r,i)){case 0:return!0;case 3:return!1;case 1:throw new Error(cc.SIG_PARSE);case 2:throw new Error(cc.PUBKEY_PARSE)}},ecdsaRecover(t,r,i,n=!0,o){switch(zs("signature",t,64),s_(AN(r)==="Number"&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),zs("message",i,32),L4(n),o=Mm(o,n?33:65),e.ecdsaRecover(o,t,r,i)){case 0:return o;case 1:throw new Error(cc.SIG_PARSE);case 2:throw new Error(cc.RECOVER);case 3:throw new Error(cc.IMPOSSIBLE_CASE)}},ecdh(t,r,i={},n){switch(zs("public key",t,[33,65]),zs("private key",r,32),s_(AN(i)==="Object","Expected options to be an Object"),i.data!==void 0&&zs("options.data",i.data),i.hashfn!==void 0?(s_(AN(i.hashfn)==="Function","Expected options.hashfn to be a Function"),i.xbuf!==void 0&&zs("options.xbuf",i.xbuf,32),i.ybuf!==void 0&&zs("options.ybuf",i.ybuf,32),zs("output",n)):n=Mm(n,32),e.ecdh(n,t,r,i.data,i.hashfn,i.xbuf,i.ybuf)){case 0:return n;case 1:throw new Error(cc.PUBKEY_PARSE);case 2:throw new Error(cc.ECDH)}}})});var P$e=ir((s7n,f7t)=>{f7t.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var pb=ir((L$e,dfe)=>{"use strict";J();K();z();(function(e,t){"use strict";function r(O,s){if(!O)throw new Error(s||"Assertion failed")}function i(O,s){O.super_=s;var l=function(){};l.prototype=s.prototype,O.prototype=new l,O.prototype.constructor=O}function n(O,s,l){if(n.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(O||0,s||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=(mh(),Zu(ky)).Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,l){return s.cmp(l)>0?s:l},n.min=function(s,l){return s.cmp(l)<0?s:l},n.prototype._init=function(s,l,A){if(typeof s=="number")return this._initNumber(s,l,A);if(typeof s=="object")return this._initArray(s,l,A);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,this.negative=1),m<s.length&&(l===16?this._parseHex(s,m,A):(this._parseBase(s,l,m),A==="le"&&this._initArray(this.toArray(),l,A)))},n.prototype._initNumber=function(s,l,A){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),A==="le"&&this._initArray(this.toArray(),l,A)},n.prototype._initArray=function(s,l,A){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var E,w,x=0;if(A==="be")for(m=s.length-1,E=0;m>=0;m-=3)w=s[m]|s[m-1]<<8|s[m-2]<<16,this.words[E]|=w<<x&67108863,this.words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(A==="le")for(m=0,E=0;m<s.length;m+=3)w=s[m]|s[m+1]<<8|s[m+2]<<16,this.words[E]|=w<<x&67108863,this.words[E+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this.strip()};function d(O,s){var l=O.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(O,s,l){var A=d(O,l);return l-1>=s&&(A|=d(O,l-1)<<4),A}n.prototype._parseHex=function(s,l,A){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var E=0,w=0,x;if(A==="be")for(m=s.length-1;m>=l;m-=2)x=g(s,l,m)<<E,this.words[w]|=x&67108863,E>=18?(E-=18,w+=1,this.words[w]|=x>>>26):E+=8;else{var R=s.length-l;for(m=R%2===0?l+1:l;m<s.length;m+=2)x=g(s,l,m)<<E,this.words[w]|=x&67108863,E>=18?(E-=18,w+=1,this.words[w]|=x>>>26):E+=8}this.strip()};function y(O,s,l,A){for(var m=0,E=Math.min(O.length,l),w=s;w<E;w++){var x=O.charCodeAt(w)-48;m*=A,x>=49?m+=x-49+10:x>=17?m+=x-17+10:m+=x}return m}n.prototype._parseBase=function(s,l,A){this.words=[0],this.length=1;for(var m=0,E=1;E<=67108863;E*=l)m++;m--,E=E/l|0;for(var w=s.length-A,x=w%m,R=Math.min(w,w-x)+A,u=0,C=A;C<R;C+=m)u=y(s,C,C+m,l),this.imuln(E),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(x!==0){var U=1;for(u=y(s,C,s.length,l),C=0;C<x;C++)U*=l;this.imuln(U),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(s,l){s=s||10,l=l|0||1;var A;if(s===16||s==="hex"){A="";for(var m=0,E=0,w=0;w<this.length;w++){var x=this.words[w],R=((x<<m|E)&16777215).toString(16);E=x>>>24-m&16777215,E!==0||w!==this.length-1?A=_[6-R.length]+R+A:A=R+A,m+=2,m>=26&&(m-=26,w--)}for(E!==0&&(A=E.toString(16)+A);A.length%l!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(s===(s|0)&&s>=2&&s<=36){var u=I[s],C=N[s];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var F=U.modn(C).toString(s);U=U.idivn(C),U.isZero()?A=F+A:A=_[u-F.length]+F+A}for(this.isZero()&&(A="0"+A);A.length%l!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},n.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},n.prototype.toArrayLike=function(s,l,A){var m=this.byteLength(),E=A||Math.max(1,m);r(m<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var w=l==="le",x=new s(E),R,u,C=this.clone();if(w){for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[u]=R;for(;u<E;u++)x[u]=0}else{for(u=0;u<E-m;u++)x[u]=0;for(u=0;!C.isZero();u++)R=C.andln(255),C.iushrn(8),x[E-u-1]=R}return x},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var l=s,A=0;return l>=4096&&(A+=13,l>>>=13),l>=64&&(A+=7,l>>>=7),l>=8&&(A+=4,l>>>=4),l>=2&&(A+=2,l>>>=2),A+l},n.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,A=0;return(l&8191)===0&&(A+=13,l>>>=13),(l&127)===0&&(A+=7,l>>>=7),(l&15)===0&&(A+=4,l>>>=4),(l&3)===0&&(A+=2,l>>>=2),(l&1)===0&&A++,A},n.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function T(O){for(var s=new Array(O.bitLength()),l=0;l<s.length;l++){var A=l/26|0,m=l%26;s[l]=(O.words[A]&1<<m)>>>m}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var A=this._zeroBits(this.words[l]);if(s+=A,A!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},n.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},n.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},n.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var A=0;A<l.length;A++)this.words[A]=this.words[A]&s.words[A];return this.length=l.length,this.strip()},n.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},n.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},n.prototype.iuxor=function(s){var l,A;this.length>s.length?(l=this,A=s):(l=s,A=this);for(var m=0;m<A.length;m++)this.words[m]=l.words[m]^A.words[m];if(this!==l)for(;m<l.length;m++)this.words[m]=l.words[m];return this.length=l.length,this.strip()},n.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},n.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},n.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,A=s%26;this._expand(l),A>0&&l--;for(var m=0;m<l;m++)this.words[m]=~this.words[m]&67108863;return A>0&&(this.words[m]=~this.words[m]&67108863>>26-A),this.strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var A=s/26|0,m=s%26;return this._expand(A+1),l?this.words[A]=this.words[A]|1<<m:this.words[A]=this.words[A]&~(1<<m),this.strip()},n.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var A,m;this.length>s.length?(A=this,m=s):(A=s,m=this);for(var E=0,w=0;w<m.length;w++)l=(A.words[w]|0)+(m.words[w]|0)+E,this.words[w]=l&67108863,E=l>>>26;for(;E!==0&&w<A.length;w++)l=(A.words[w]|0)+E,this.words[w]=l&67108863,E=l>>>26;if(this.length=A.length,E!==0)this.words[this.length]=E,this.length++;else if(A!==this)for(;w<A.length;w++)this.words[w]=A.words[w];return this},n.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var A=this.cmp(s);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,E;A>0?(m=this,E=s):(m=s,E=this);for(var w=0,x=0;x<E.length;x++)l=(m.words[x]|0)-(E.words[x]|0)+w,w=l>>26,this.words[x]=l&67108863;for(;w!==0&&x<m.length;x++)l=(m.words[x]|0)+w,w=l>>26,this.words[x]=l&67108863;if(w===0&&x<m.length&&m!==this)for(;x<m.length;x++)this.words[x]=m.words[x];return this.length=Math.max(this.length,x),m!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function M(O,s,l){l.negative=s.negative^O.negative;var A=O.length+s.length|0;l.length=A,A=A-1|0;var m=O.words[0]|0,E=s.words[0]|0,w=m*E,x=w&67108863,R=w/67108864|0;l.words[0]=x;for(var u=1;u<A;u++){for(var C=R>>>26,U=R&67108863,F=Math.min(u,s.length-1),X=Math.max(0,u-O.length+1);X<=F;X++){var Ae=u-X|0;m=O.words[Ae]|0,E=s.words[X]|0,w=m*E+U,C+=w/67108864|0,U=w&67108863}l.words[u]=U|0,R=C|0}return R!==0?l.words[u]=R|0:l.length--,l.strip()}var D=function(s,l,A){var m=s.words,E=l.words,w=A.words,x=0,R,u,C,U=m[0]|0,F=U&8191,X=U>>>13,Ae=m[1]|0,he=Ae&8191,$e=Ae>>>13,Ge=m[2]|0,Re=Ge&8191,Se=Ge>>>13,ct=m[3]|0,ze=ct&8191,te=ct>>>13,Ue=m[4]|0,oe=Ue&8191,ge=Ue>>>13,Le=m[5]|0,V=Le&8191,Qe=Le>>>13,_t=m[6]|0,rt=_t&8191,At=_t>>>13,Er=m[7]|0,mt=Er&8191,Ht=Er>>>13,zr=m[8]|0,ve=zr&8191,ie=zr>>>13,_e=m[9]|0,Be=_e&8191,Ze=_e>>>13,$t=E[0]|0,at=$t&8191,zt=$t>>>13,Hr=E[1]|0,St=Hr&8191,Yt=Hr>>>13,qr=E[2]|0,tr=qr&8191,hr=qr>>>13,Cn=E[3]|0,er=Cn&8191,pr=Cn>>>13,mn=E[4]|0,Xt=mn&8191,dr=mn>>>13,wn=E[5]|0,Qt=wn&8191,fr=wn>>>13,In=E[6]|0,jt=In&8191,ar=In>>>13,ht=E[7]|0,Xe=ht&8191,et=ht>>>13,ue=E[8]|0,je=ue&8191,be=ue>>>13,qe=E[9]|0,De=qe&8191,Je=qe>>>13;A.negative=s.negative^l.negative,A.length=19,R=Math.imul(F,at),u=Math.imul(F,zt),u=u+Math.imul(X,at)|0,C=Math.imul(X,zt);var Rt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(he,at),u=Math.imul(he,zt),u=u+Math.imul($e,at)|0,C=Math.imul($e,zt),R=R+Math.imul(F,St)|0,u=u+Math.imul(F,Yt)|0,u=u+Math.imul(X,St)|0,C=C+Math.imul(X,Yt)|0;var Vt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,R=Math.imul(Re,at),u=Math.imul(Re,zt),u=u+Math.imul(Se,at)|0,C=Math.imul(Se,zt),R=R+Math.imul(he,St)|0,u=u+Math.imul(he,Yt)|0,u=u+Math.imul($e,St)|0,C=C+Math.imul($e,Yt)|0,R=R+Math.imul(F,tr)|0,u=u+Math.imul(F,hr)|0,u=u+Math.imul(X,tr)|0,C=C+Math.imul(X,hr)|0;var br=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul(ze,at),u=Math.imul(ze,zt),u=u+Math.imul(te,at)|0,C=Math.imul(te,zt),R=R+Math.imul(Re,St)|0,u=u+Math.imul(Re,Yt)|0,u=u+Math.imul(Se,St)|0,C=C+Math.imul(Se,Yt)|0,R=R+Math.imul(he,tr)|0,u=u+Math.imul(he,hr)|0,u=u+Math.imul($e,tr)|0,C=C+Math.imul($e,hr)|0,R=R+Math.imul(F,er)|0,u=u+Math.imul(F,pr)|0,u=u+Math.imul(X,er)|0,C=C+Math.imul(X,pr)|0;var Rr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(oe,at),u=Math.imul(oe,zt),u=u+Math.imul(ge,at)|0,C=Math.imul(ge,zt),R=R+Math.imul(ze,St)|0,u=u+Math.imul(ze,Yt)|0,u=u+Math.imul(te,St)|0,C=C+Math.imul(te,Yt)|0,R=R+Math.imul(Re,tr)|0,u=u+Math.imul(Re,hr)|0,u=u+Math.imul(Se,tr)|0,C=C+Math.imul(Se,hr)|0,R=R+Math.imul(he,er)|0,u=u+Math.imul(he,pr)|0,u=u+Math.imul($e,er)|0,C=C+Math.imul($e,pr)|0,R=R+Math.imul(F,Xt)|0,u=u+Math.imul(F,dr)|0,u=u+Math.imul(X,Xt)|0,C=C+Math.imul(X,dr)|0;var Dr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(V,at),u=Math.imul(V,zt),u=u+Math.imul(Qe,at)|0,C=Math.imul(Qe,zt),R=R+Math.imul(oe,St)|0,u=u+Math.imul(oe,Yt)|0,u=u+Math.imul(ge,St)|0,C=C+Math.imul(ge,Yt)|0,R=R+Math.imul(ze,tr)|0,u=u+Math.imul(ze,hr)|0,u=u+Math.imul(te,tr)|0,C=C+Math.imul(te,hr)|0,R=R+Math.imul(Re,er)|0,u=u+Math.imul(Re,pr)|0,u=u+Math.imul(Se,er)|0,C=C+Math.imul(Se,pr)|0,R=R+Math.imul(he,Xt)|0,u=u+Math.imul(he,dr)|0,u=u+Math.imul($e,Xt)|0,C=C+Math.imul($e,dr)|0,R=R+Math.imul(F,Qt)|0,u=u+Math.imul(F,fr)|0,u=u+Math.imul(X,Qt)|0,C=C+Math.imul(X,fr)|0;var Pr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,R=Math.imul(rt,at),u=Math.imul(rt,zt),u=u+Math.imul(At,at)|0,C=Math.imul(At,zt),R=R+Math.imul(V,St)|0,u=u+Math.imul(V,Yt)|0,u=u+Math.imul(Qe,St)|0,C=C+Math.imul(Qe,Yt)|0,R=R+Math.imul(oe,tr)|0,u=u+Math.imul(oe,hr)|0,u=u+Math.imul(ge,tr)|0,C=C+Math.imul(ge,hr)|0,R=R+Math.imul(ze,er)|0,u=u+Math.imul(ze,pr)|0,u=u+Math.imul(te,er)|0,C=C+Math.imul(te,pr)|0,R=R+Math.imul(Re,Xt)|0,u=u+Math.imul(Re,dr)|0,u=u+Math.imul(Se,Xt)|0,C=C+Math.imul(Se,dr)|0,R=R+Math.imul(he,Qt)|0,u=u+Math.imul(he,fr)|0,u=u+Math.imul($e,Qt)|0,C=C+Math.imul($e,fr)|0,R=R+Math.imul(F,jt)|0,u=u+Math.imul(F,ar)|0,u=u+Math.imul(X,jt)|0,C=C+Math.imul(X,ar)|0;var k=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(k>>>26)|0,k&=67108863,R=Math.imul(mt,at),u=Math.imul(mt,zt),u=u+Math.imul(Ht,at)|0,C=Math.imul(Ht,zt),R=R+Math.imul(rt,St)|0,u=u+Math.imul(rt,Yt)|0,u=u+Math.imul(At,St)|0,C=C+Math.imul(At,Yt)|0,R=R+Math.imul(V,tr)|0,u=u+Math.imul(V,hr)|0,u=u+Math.imul(Qe,tr)|0,C=C+Math.imul(Qe,hr)|0,R=R+Math.imul(oe,er)|0,u=u+Math.imul(oe,pr)|0,u=u+Math.imul(ge,er)|0,C=C+Math.imul(ge,pr)|0,R=R+Math.imul(ze,Xt)|0,u=u+Math.imul(ze,dr)|0,u=u+Math.imul(te,Xt)|0,C=C+Math.imul(te,dr)|0,R=R+Math.imul(Re,Qt)|0,u=u+Math.imul(Re,fr)|0,u=u+Math.imul(Se,Qt)|0,C=C+Math.imul(Se,fr)|0,R=R+Math.imul(he,jt)|0,u=u+Math.imul(he,ar)|0,u=u+Math.imul($e,jt)|0,C=C+Math.imul($e,ar)|0,R=R+Math.imul(F,Xe)|0,u=u+Math.imul(F,et)|0,u=u+Math.imul(X,Xe)|0,C=C+Math.imul(X,et)|0;var a=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(a>>>26)|0,a&=67108863,R=Math.imul(ve,at),u=Math.imul(ve,zt),u=u+Math.imul(ie,at)|0,C=Math.imul(ie,zt),R=R+Math.imul(mt,St)|0,u=u+Math.imul(mt,Yt)|0,u=u+Math.imul(Ht,St)|0,C=C+Math.imul(Ht,Yt)|0,R=R+Math.imul(rt,tr)|0,u=u+Math.imul(rt,hr)|0,u=u+Math.imul(At,tr)|0,C=C+Math.imul(At,hr)|0,R=R+Math.imul(V,er)|0,u=u+Math.imul(V,pr)|0,u=u+Math.imul(Qe,er)|0,C=C+Math.imul(Qe,pr)|0,R=R+Math.imul(oe,Xt)|0,u=u+Math.imul(oe,dr)|0,u=u+Math.imul(ge,Xt)|0,C=C+Math.imul(ge,dr)|0,R=R+Math.imul(ze,Qt)|0,u=u+Math.imul(ze,fr)|0,u=u+Math.imul(te,Qt)|0,C=C+Math.imul(te,fr)|0,R=R+Math.imul(Re,jt)|0,u=u+Math.imul(Re,ar)|0,u=u+Math.imul(Se,jt)|0,C=C+Math.imul(Se,ar)|0,R=R+Math.imul(he,Xe)|0,u=u+Math.imul(he,et)|0,u=u+Math.imul($e,Xe)|0,C=C+Math.imul($e,et)|0,R=R+Math.imul(F,je)|0,u=u+Math.imul(F,be)|0,u=u+Math.imul(X,je)|0,C=C+Math.imul(X,be)|0;var S=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(S>>>26)|0,S&=67108863,R=Math.imul(Be,at),u=Math.imul(Be,zt),u=u+Math.imul(Ze,at)|0,C=Math.imul(Ze,zt),R=R+Math.imul(ve,St)|0,u=u+Math.imul(ve,Yt)|0,u=u+Math.imul(ie,St)|0,C=C+Math.imul(ie,Yt)|0,R=R+Math.imul(mt,tr)|0,u=u+Math.imul(mt,hr)|0,u=u+Math.imul(Ht,tr)|0,C=C+Math.imul(Ht,hr)|0,R=R+Math.imul(rt,er)|0,u=u+Math.imul(rt,pr)|0,u=u+Math.imul(At,er)|0,C=C+Math.imul(At,pr)|0,R=R+Math.imul(V,Xt)|0,u=u+Math.imul(V,dr)|0,u=u+Math.imul(Qe,Xt)|0,C=C+Math.imul(Qe,dr)|0,R=R+Math.imul(oe,Qt)|0,u=u+Math.imul(oe,fr)|0,u=u+Math.imul(ge,Qt)|0,C=C+Math.imul(ge,fr)|0,R=R+Math.imul(ze,jt)|0,u=u+Math.imul(ze,ar)|0,u=u+Math.imul(te,jt)|0,C=C+Math.imul(te,ar)|0,R=R+Math.imul(Re,Xe)|0,u=u+Math.imul(Re,et)|0,u=u+Math.imul(Se,Xe)|0,C=C+Math.imul(Se,et)|0,R=R+Math.imul(he,je)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul($e,je)|0,C=C+Math.imul($e,be)|0,R=R+Math.imul(F,De)|0,u=u+Math.imul(F,Je)|0,u=u+Math.imul(X,De)|0,C=C+Math.imul(X,Je)|0;var sn=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(sn>>>26)|0,sn&=67108863,R=Math.imul(Be,St),u=Math.imul(Be,Yt),u=u+Math.imul(Ze,St)|0,C=Math.imul(Ze,Yt),R=R+Math.imul(ve,tr)|0,u=u+Math.imul(ve,hr)|0,u=u+Math.imul(ie,tr)|0,C=C+Math.imul(ie,hr)|0,R=R+Math.imul(mt,er)|0,u=u+Math.imul(mt,pr)|0,u=u+Math.imul(Ht,er)|0,C=C+Math.imul(Ht,pr)|0,R=R+Math.imul(rt,Xt)|0,u=u+Math.imul(rt,dr)|0,u=u+Math.imul(At,Xt)|0,C=C+Math.imul(At,dr)|0,R=R+Math.imul(V,Qt)|0,u=u+Math.imul(V,fr)|0,u=u+Math.imul(Qe,Qt)|0,C=C+Math.imul(Qe,fr)|0,R=R+Math.imul(oe,jt)|0,u=u+Math.imul(oe,ar)|0,u=u+Math.imul(ge,jt)|0,C=C+Math.imul(ge,ar)|0,R=R+Math.imul(ze,Xe)|0,u=u+Math.imul(ze,et)|0,u=u+Math.imul(te,Xe)|0,C=C+Math.imul(te,et)|0,R=R+Math.imul(Re,je)|0,u=u+Math.imul(Re,be)|0,u=u+Math.imul(Se,je)|0,C=C+Math.imul(Se,be)|0,R=R+Math.imul(he,De)|0,u=u+Math.imul(he,Je)|0,u=u+Math.imul($e,De)|0,C=C+Math.imul($e,Je)|0;var Lr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,R=Math.imul(Be,tr),u=Math.imul(Be,hr),u=u+Math.imul(Ze,tr)|0,C=Math.imul(Ze,hr),R=R+Math.imul(ve,er)|0,u=u+Math.imul(ve,pr)|0,u=u+Math.imul(ie,er)|0,C=C+Math.imul(ie,pr)|0,R=R+Math.imul(mt,Xt)|0,u=u+Math.imul(mt,dr)|0,u=u+Math.imul(Ht,Xt)|0,C=C+Math.imul(Ht,dr)|0,R=R+Math.imul(rt,Qt)|0,u=u+Math.imul(rt,fr)|0,u=u+Math.imul(At,Qt)|0,C=C+Math.imul(At,fr)|0,R=R+Math.imul(V,jt)|0,u=u+Math.imul(V,ar)|0,u=u+Math.imul(Qe,jt)|0,C=C+Math.imul(Qe,ar)|0,R=R+Math.imul(oe,Xe)|0,u=u+Math.imul(oe,et)|0,u=u+Math.imul(ge,Xe)|0,C=C+Math.imul(ge,et)|0,R=R+Math.imul(ze,je)|0,u=u+Math.imul(ze,be)|0,u=u+Math.imul(te,je)|0,C=C+Math.imul(te,be)|0,R=R+Math.imul(Re,De)|0,u=u+Math.imul(Re,Je)|0,u=u+Math.imul(Se,De)|0,C=C+Math.imul(Se,Je)|0;var Wr=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Be,er),u=Math.imul(Be,pr),u=u+Math.imul(Ze,er)|0,C=Math.imul(Ze,pr),R=R+Math.imul(ve,Xt)|0,u=u+Math.imul(ve,dr)|0,u=u+Math.imul(ie,Xt)|0,C=C+Math.imul(ie,dr)|0,R=R+Math.imul(mt,Qt)|0,u=u+Math.imul(mt,fr)|0,u=u+Math.imul(Ht,Qt)|0,C=C+Math.imul(Ht,fr)|0,R=R+Math.imul(rt,jt)|0,u=u+Math.imul(rt,ar)|0,u=u+Math.imul(At,jt)|0,C=C+Math.imul(At,ar)|0,R=R+Math.imul(V,Xe)|0,u=u+Math.imul(V,et)|0,u=u+Math.imul(Qe,Xe)|0,C=C+Math.imul(Qe,et)|0,R=R+Math.imul(oe,je)|0,u=u+Math.imul(oe,be)|0,u=u+Math.imul(ge,je)|0,C=C+Math.imul(ge,be)|0,R=R+Math.imul(ze,De)|0,u=u+Math.imul(ze,Je)|0,u=u+Math.imul(te,De)|0,C=C+Math.imul(te,Je)|0;var ln=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ln>>>26)|0,ln&=67108863,R=Math.imul(Be,Xt),u=Math.imul(Be,dr),u=u+Math.imul(Ze,Xt)|0,C=Math.imul(Ze,dr),R=R+Math.imul(ve,Qt)|0,u=u+Math.imul(ve,fr)|0,u=u+Math.imul(ie,Qt)|0,C=C+Math.imul(ie,fr)|0,R=R+Math.imul(mt,jt)|0,u=u+Math.imul(mt,ar)|0,u=u+Math.imul(Ht,jt)|0,C=C+Math.imul(Ht,ar)|0,R=R+Math.imul(rt,Xe)|0,u=u+Math.imul(rt,et)|0,u=u+Math.imul(At,Xe)|0,C=C+Math.imul(At,et)|0,R=R+Math.imul(V,je)|0,u=u+Math.imul(V,be)|0,u=u+Math.imul(Qe,je)|0,C=C+Math.imul(Qe,be)|0,R=R+Math.imul(oe,De)|0,u=u+Math.imul(oe,Je)|0,u=u+Math.imul(ge,De)|0,C=C+Math.imul(ge,Je)|0;var yt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(Be,Qt),u=Math.imul(Be,fr),u=u+Math.imul(Ze,Qt)|0,C=Math.imul(Ze,fr),R=R+Math.imul(ve,jt)|0,u=u+Math.imul(ve,ar)|0,u=u+Math.imul(ie,jt)|0,C=C+Math.imul(ie,ar)|0,R=R+Math.imul(mt,Xe)|0,u=u+Math.imul(mt,et)|0,u=u+Math.imul(Ht,Xe)|0,C=C+Math.imul(Ht,et)|0,R=R+Math.imul(rt,je)|0,u=u+Math.imul(rt,be)|0,u=u+Math.imul(At,je)|0,C=C+Math.imul(At,be)|0,R=R+Math.imul(V,De)|0,u=u+Math.imul(V,Je)|0,u=u+Math.imul(Qe,De)|0,C=C+Math.imul(Qe,Je)|0;var ot=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,R=Math.imul(Be,jt),u=Math.imul(Be,ar),u=u+Math.imul(Ze,jt)|0,C=Math.imul(Ze,ar),R=R+Math.imul(ve,Xe)|0,u=u+Math.imul(ve,et)|0,u=u+Math.imul(ie,Xe)|0,C=C+Math.imul(ie,et)|0,R=R+Math.imul(mt,je)|0,u=u+Math.imul(mt,be)|0,u=u+Math.imul(Ht,je)|0,C=C+Math.imul(Ht,be)|0,R=R+Math.imul(rt,De)|0,u=u+Math.imul(rt,Je)|0,u=u+Math.imul(At,De)|0,C=C+Math.imul(At,Je)|0;var lt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(Be,Xe),u=Math.imul(Be,et),u=u+Math.imul(Ze,Xe)|0,C=Math.imul(Ze,et),R=R+Math.imul(ve,je)|0,u=u+Math.imul(ve,be)|0,u=u+Math.imul(ie,je)|0,C=C+Math.imul(ie,be)|0,R=R+Math.imul(mt,De)|0,u=u+Math.imul(mt,Je)|0,u=u+Math.imul(Ht,De)|0,C=C+Math.imul(Ht,Je)|0;var gt=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Be,je),u=Math.imul(Be,be),u=u+Math.imul(Ze,je)|0,C=Math.imul(Ze,be),R=R+Math.imul(ve,De)|0,u=u+Math.imul(ve,Je)|0,u=u+Math.imul(ie,De)|0,C=C+Math.imul(ie,Je)|0;var Ie=(x+R|0)+((u&8191)<<13)|0;x=(C+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,R=Math.imul(Be,De),u=Math.imul(Be,Je),u=u+Math.imul(Ze,De)|0,C=Math.imul(Ze,Je);var Zt=(x+R|0)+((u&8191)<<13)|0;return x=(C+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w[0]=Rt,w[1]=Vt,w[2]=br,w[3]=Rr,w[4]=Dr,w[5]=Pr,w[6]=k,w[7]=a,w[8]=S,w[9]=sn,w[10]=Lr,w[11]=Wr,w[12]=ln,w[13]=yt,w[14]=ot,w[15]=lt,w[16]=gt,w[17]=Ie,w[18]=Zt,x!==0&&(w[19]=x,A.length++),A};Math.imul||(D=M);function P(O,s,l){l.negative=s.negative^O.negative,l.length=O.length+s.length;for(var A=0,m=0,E=0;E<l.length-1;E++){var w=m;m=0;for(var x=A&67108863,R=Math.min(E,s.length-1),u=Math.max(0,E-O.length+1);u<=R;u++){var C=E-u,U=O.words[C]|0,F=s.words[u]|0,X=U*F,Ae=X&67108863;w=w+(X/67108864|0)|0,Ae=Ae+x|0,x=Ae&67108863,w=w+(Ae>>>26)|0,m+=w>>>26,w&=67108863}l.words[E]=x,A=w,w=m}return A!==0?l.words[E]=A:l.length--,l.strip()}function G(O,s,l){var A=new q;return A.mulp(O,s,l)}n.prototype.mulTo=function(s,l){var A,m=this.length+s.length;return this.length===10&&s.length===10?A=D(this,s,l):m<63?A=M(this,s,l):m<1024?A=P(this,s,l):A=G(this,s,l),A};function q(O,s){this.x=O,this.y=s}q.prototype.makeRBT=function(s){for(var l=new Array(s),A=n.prototype._countBits(s)-1,m=0;m<s;m++)l[m]=this.revBin(m,A,s);return l},q.prototype.revBin=function(s,l,A){if(s===0||s===A-1)return s;for(var m=0,E=0;E<l;E++)m|=(s&1)<<l-E-1,s>>=1;return m},q.prototype.permute=function(s,l,A,m,E,w){for(var x=0;x<w;x++)m[x]=l[s[x]],E[x]=A[s[x]]},q.prototype.transform=function(s,l,A,m,E,w){this.permute(w,s,l,A,m,E);for(var x=1;x<E;x<<=1)for(var R=x<<1,u=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),U=0;U<E;U+=R)for(var F=u,X=C,Ae=0;Ae<x;Ae++){var he=A[U+Ae],$e=m[U+Ae],Ge=A[U+Ae+x],Re=m[U+Ae+x],Se=F*Ge-X*Re;Re=F*Re+X*Ge,Ge=Se,A[U+Ae]=he+Ge,m[U+Ae]=$e+Re,A[U+Ae+x]=he-Ge,m[U+Ae+x]=$e-Re,Ae!==R&&(Se=u*F-C*X,X=u*X+C*F,F=Se)}},q.prototype.guessLen13b=function(s,l){var A=Math.max(l,s)|1,m=A&1,E=0;for(A=A/2|0;A;A=A>>>1)E++;return 1<<E+1+m},q.prototype.conjugate=function(s,l,A){if(!(A<=1))for(var m=0;m<A/2;m++){var E=s[m];s[m]=s[A-m-1],s[A-m-1]=E,E=l[m],l[m]=-l[A-m-1],l[A-m-1]=-E}},q.prototype.normalize13b=function(s,l){for(var A=0,m=0;m<l/2;m++){var E=Math.round(s[2*m+1]/l)*8192+Math.round(s[2*m]/l)+A;s[m]=E&67108863,E<67108864?A=0:A=E/67108864|0}return s},q.prototype.convert13b=function(s,l,A,m){for(var E=0,w=0;w<l;w++)E=E+(s[w]|0),A[2*w]=E&8191,E=E>>>13,A[2*w+1]=E&8191,E=E>>>13;for(w=2*l;w<m;++w)A[w]=0;r(E===0),r((E&-8192)===0)},q.prototype.stub=function(s){for(var l=new Array(s),A=0;A<s;A++)l[A]=0;return l},q.prototype.mulp=function(s,l,A){var m=2*this.guessLen13b(s.length,l.length),E=this.makeRBT(m),w=this.stub(m),x=new Array(m),R=new Array(m),u=new Array(m),C=new Array(m),U=new Array(m),F=new Array(m),X=A.words;X.length=m,this.convert13b(s.words,s.length,x,m),this.convert13b(l.words,l.length,C,m),this.transform(x,w,R,u,m,E),this.transform(C,w,U,F,m,E);for(var Ae=0;Ae<m;Ae++){var he=R[Ae]*U[Ae]-u[Ae]*F[Ae];u[Ae]=R[Ae]*F[Ae]+u[Ae]*U[Ae],R[Ae]=he}return this.conjugate(R,u,m),this.transform(R,u,X,w,m,E),this.conjugate(X,w,m),this.normalize13b(X,m),A.negative=s.negative^l.negative,A.length=s.length+l.length,A.strip()},n.prototype.mul=function(s){var l=new n(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},n.prototype.mulf=function(s){var l=new n(null);return l.words=new Array(this.length+s.length),G(this,s,l)},n.prototype.imul=function(s){return this.clone().mulTo(s,this)},n.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,A=0;A<this.length;A++){var m=(this.words[A]|0)*s,E=(m&67108863)+(l&67108863);l>>=26,l+=m/67108864|0,l+=E>>>26,this.words[A]=E&67108863}return l!==0&&(this.words[A]=l,this.length++),this},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var l=T(s);if(l.length===0)return new n(1);for(var A=this,m=0;m<l.length&&l[m]===0;m++,A=A.sqr());if(++m<l.length)for(var E=A.sqr();m<l.length;m++,E=E.sqr())l[m]!==0&&(A=A.mul(E));return A},n.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=67108863>>>26-l<<26-l,E;if(l!==0){var w=0;for(E=0;E<this.length;E++){var x=this.words[E]&m,R=(this.words[E]|0)-x<<l;this.words[E]=R|w,w=x>>>26-l}w&&(this.words[E]=w,this.length++)}if(A!==0){for(E=this.length-1;E>=0;E--)this.words[E+A]=this.words[E];for(E=0;E<A;E++)this.words[E]=0;this.length+=A}return this.strip()},n.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},n.prototype.iushrn=function(s,l,A){r(typeof s=="number"&&s>=0);var m;l?m=(l-l%26)/26:m=0;var E=s%26,w=Math.min((s-E)/26,this.length),x=67108863^67108863>>>E<<E,R=A;if(m-=w,m=Math.max(0,m),R){for(var u=0;u<w;u++)R.words[u]=this.words[u];R.length=w}if(w!==0)if(this.length>w)for(this.length-=w,u=0;u<this.length;u++)this.words[u]=this.words[u+w];else this.words[0]=0,this.length=1;var C=0;for(u=this.length-1;u>=0&&(C!==0||u>=m);u--){var U=this.words[u]|0;this.words[u]=C<<26-E|U>>>E,C=U&x}return R&&C!==0&&(R.words[R.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(s,l,A){return r(this.negative===0),this.iushrn(s,l,A)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26,m=1<<l;if(this.length<=A)return!1;var E=this.words[A];return!!(E&m)},n.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,A=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(l!==0&&A++,this.length=Math.min(A,this.length),l!==0){var m=67108863^67108863>>>l<<l;this.words[this.length-1]&=m}return this.strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},n.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,l,A){var m=s.length+A,E;this._expand(m);var w,x=0;for(E=0;E<s.length;E++){w=(this.words[E+A]|0)+x;var R=(s.words[E]|0)*l;w-=R&67108863,x=(w>>26)-(R/67108864|0),this.words[E+A]=w&67108863}for(;E<this.length-A;E++)w=(this.words[E+A]|0)+x,x=w>>26,this.words[E+A]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,E=0;E<this.length;E++)w=-(this.words[E]|0)+x,x=w>>26,this.words[E]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(s,l){var A=this.length-s.length,m=this.clone(),E=s,w=E.words[E.length-1]|0,x=this._countBits(w);A=26-x,A!==0&&(E=E.ushln(A),m.iushln(A),w=E.words[E.length-1]|0);var R=m.length-E.length,u;if(l!=="mod"){u=new n(null),u.length=R+1,u.words=new Array(u.length);for(var C=0;C<u.length;C++)u.words[C]=0}var U=m.clone()._ishlnsubmul(E,1,R);U.negative===0&&(m=U,u&&(u.words[R]=1));for(var F=R-1;F>=0;F--){var X=(m.words[E.length+F]|0)*67108864+(m.words[E.length+F-1]|0);for(X=Math.min(X/w|0,67108863),m._ishlnsubmul(E,X,F);m.negative!==0;)X--,m.negative=0,m._ishlnsubmul(E,1,F),m.isZero()||(m.negative^=1);u&&(u.words[F]=X)}return u&&u.strip(),m.strip(),l!=="div"&&A!==0&&m.iushrn(A),{div:u||null,mod:m}},n.prototype.divmod=function(s,l,A){if(r(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,E,w;return this.negative!==0&&s.negative===0?(w=this.neg().divmod(s,l),l!=="mod"&&(m=w.div.neg()),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.iadd(s)),{div:m,mod:E}):this.negative===0&&s.negative!==0?(w=this.divmod(s.neg(),l),l!=="mod"&&(m=w.div.neg()),{div:m,mod:w.mod}):(this.negative&s.negative)!==0?(w=this.neg().divmod(s.neg(),l),l!=="div"&&(E=w.mod.neg(),A&&E.negative!==0&&E.isub(s)),{div:w.div,mod:E}):s.length>this.length||this.cmp(s)<0?{div:new n(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modn(s.words[0]))}:this._wordDiv(s,l)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var A=l.div.negative!==0?l.mod.isub(s):l.mod,m=s.ushrn(1),E=s.andln(1),w=A.cmp(m);return w<0||E===1&&w===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,A=0,m=this.length-1;m>=0;m--)A=(l*A+(this.words[m]|0))%s;return A},n.prototype.idivn=function(s){r(s<=67108863);for(var l=0,A=this.length-1;A>=0;A--){var m=(this.words[A]|0)+l*67108864;this.words[A]=m/s|0,l=m%s}return this.strip()},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=new n(0),x=new n(1),R=0;l.isEven()&&A.isEven();)l.iushrn(1),A.iushrn(1),++R;for(var u=A.clone(),C=l.clone();!l.isZero();){for(var U=0,F=1;(l.words[0]&F)===0&&U<26;++U,F<<=1);if(U>0)for(l.iushrn(U);U-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(u),E.isub(C)),m.iushrn(1),E.iushrn(1);for(var X=0,Ae=1;(A.words[0]&Ae)===0&&X<26;++X,Ae<<=1);if(X>0)for(A.iushrn(X);X-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(u),x.isub(C)),w.iushrn(1),x.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(w),E.isub(x)):(A.isub(l),w.isub(m),x.isub(E))}return{a:w,b:x,gcd:A.iushln(R)}},n.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,A=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var m=new n(1),E=new n(0),w=A.clone();l.cmpn(1)>0&&A.cmpn(1)>0;){for(var x=0,R=1;(l.words[0]&R)===0&&x<26;++x,R<<=1);if(x>0)for(l.iushrn(x);x-- >0;)m.isOdd()&&m.iadd(w),m.iushrn(1);for(var u=0,C=1;(A.words[0]&C)===0&&u<26;++u,C<<=1);if(u>0)for(A.iushrn(u);u-- >0;)E.isOdd()&&E.iadd(w),E.iushrn(1);l.cmp(A)>=0?(l.isub(A),m.isub(E)):(A.isub(l),E.isub(m))}var U;return l.cmpn(1)===0?U=m:U=E,U.cmpn(0)<0&&U.iadd(s),U},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),A=s.clone();l.negative=0,A.negative=0;for(var m=0;l.isEven()&&A.isEven();m++)l.iushrn(1),A.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;A.isEven();)A.iushrn(1);var E=l.cmp(A);if(E<0){var w=l;l=A,A=w}else if(E===0||A.cmpn(1)===0)break;l.isub(A)}while(!0);return A.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(s){return this.words[0]&s},n.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,A=(s-l)/26,m=1<<l;if(this.length<=A)return this._expand(A+1),this.words[A]|=m,this;for(var E=m,w=A;E!==0&&w<this.length;w++){var x=this.words[w]|0;x+=E,E=x>>>26,x&=67108863,this.words[w]=x}return E!==0&&(this.words[w]=E,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var A;if(this.length>1)A=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var m=this.words[0]|0;A=m===s?0:m<s?-1:1}return this.negative!==0?-A|0:A},n.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,A=this.length-1;A>=0;A--){var m=this.words[A]|0,E=s.words[A]|0;if(m!==E){m<E?l=-1:m>E&&(l=1);break}}return l},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new W(s)},n.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(s){return this.red=s,this},n.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},n.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},n.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},n.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},n.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},n.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},n.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var Y={k256:null,p224:null,p192:null,p25519:null};function ne(O,s){this.name=O,this.p=new n(s,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ne.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil(this.n/13)),s},ne.prototype.ireduce=function(s){var l=s,A;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),A=l.bitLength();while(A>this.n);var m=A<this.n?-1:l.ucmp(this.p);return m===0?(l.words[0]=0,l.length=1):m>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},ne.prototype.split=function(s,l){s.iushrn(this.n,0,l)},ne.prototype.imulK=function(s){return s.imul(this.k)};function ce(){ne.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ce,ne),ce.prototype.split=function(s,l){for(var A=4194303,m=Math.min(s.length,9),E=0;E<m;E++)l.words[E]=s.words[E];if(l.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var w=s.words[9];for(l.words[l.length++]=w&A,E=10;E<s.length;E++){var x=s.words[E]|0;s.words[E-10]=(x&A)<<4|w>>>22,w=x}w>>>=22,s.words[E-10]=w,w===0&&s.length>10?s.length-=10:s.length-=9},ce.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,A=0;A<s.length;A++){var m=s.words[A]|0;l+=m*977,s.words[A]=l&67108863,l=m*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function le(){ne.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(le,ne);function pe(){ne.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(pe,ne);function ae(){ne.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ae,ne),ae.prototype.imulK=function(s){for(var l=0,A=0;A<s.length;A++){var m=(s.words[A]|0)*19+l,E=m&67108863;m>>>=26,s.words[A]=E,l=m}return l!==0&&(s.words[s.length++]=l),s},n._prime=function(s){if(Y[s])return Y[s];var l;if(s==="k256")l=new ce;else if(s==="p224")l=new le;else if(s==="p192")l=new pe;else if(s==="p25519")l=new ae;else throw new Error("Unknown prime "+s);return Y[s]=l,l};function W(O){if(typeof O=="string"){var s=n._prime(O);this.m=s.p,this.prime=s}else r(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}W.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},W.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},W.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},W.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},W.prototype.add=function(s,l){this._verify2(s,l);var A=s.add(l);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},W.prototype.iadd=function(s,l){this._verify2(s,l);var A=s.iadd(l);return A.cmp(this.m)>=0&&A.isub(this.m),A},W.prototype.sub=function(s,l){this._verify2(s,l);var A=s.sub(l);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},W.prototype.isub=function(s,l){this._verify2(s,l);var A=s.isub(l);return A.cmpn(0)<0&&A.iadd(this.m),A},W.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},W.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},W.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},W.prototype.isqr=function(s){return this.imul(s,s.clone())},W.prototype.sqr=function(s){return this.mul(s,s)},W.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var A=this.m.add(new n(1)).iushrn(2);return this.pow(s,A)}for(var m=this.m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);r(!m.isZero());var w=new n(1).toRed(this),x=w.redNeg(),R=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new n(2*u*u).toRed(this);this.pow(u,R).cmp(x)!==0;)u.redIAdd(x);for(var C=this.pow(u,m),U=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),X=E;F.cmp(w)!==0;){for(var Ae=F,he=0;Ae.cmp(w)!==0;he++)Ae=Ae.redSqr();r(he<X);var $e=this.pow(C,new n(1).iushln(X-he-1));U=U.redMul($e),C=$e.redSqr(),F=F.redMul(C),X=he}return U},W.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},W.prototype.pow=function(s,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var A=4,m=new Array(1<<A);m[0]=new n(1).toRed(this),m[1]=s;for(var E=2;E<m.length;E++)m[E]=this.mul(m[E-1],s);var w=m[0],x=0,R=0,u=l.bitLength()%26;for(u===0&&(u=26),E=l.length-1;E>=0;E--){for(var C=l.words[E],U=u-1;U>=0;U--){var F=C>>U&1;if(w!==m[0]&&(w=this.sqr(w)),F===0&&x===0){R=0;continue}x<<=1,x|=F,R++,!(R!==A&&(E!==0||U!==0))&&(w=this.mul(w,m[x]),R=0,x=0)}u=26}return w},W.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},W.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},n.mont=function(s){return new se(s)};function se(O){W.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(se,W),se.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},se.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},se.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var A=s.imul(l),m=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=A.isub(m).iushrn(this.shift),w=E;return E.cmp(this.m)>=0?w=E.isub(this.m):E.cmpn(0)<0&&(w=E.iadd(this.m)),w._forceRed(this)},se.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new n(0)._forceRed(this);var A=s.mul(l),m=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=A.isub(m).iushrn(this.shift),w=E;return E.cmp(this.m)>=0?w=E.isub(this.m):E.cmpn(0)<0&&(w=E.iadd(this.m)),w._forceRed(this)},se.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof dfe>"u"||dfe,L$e)});var ffe=ir(Q$e=>{"use strict";J();K();z();var iJ=Q$e;function l7t(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e!="string"){for(var i=0;i<e.length;i++)r[i]=e[i]|0;return r}if(t==="hex"){e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var n=e.charCodeAt(i),o=n>>8,d=n&255;o?r.push(o,d):r.push(d)}return r}iJ.toArray=l7t;function U$e(e){return e.length===1?"0"+e:e}iJ.zero2=U$e;function F$e(e){for(var t="",r=0;r<e.length;r++)t+=U$e(e[r].toString(16));return t}iJ.toHex=F$e;iJ.encode=function(t,r){return r==="hex"?F$e(t):t}});var K1=ir(H$e=>{"use strict";J();K();z();var Dm=H$e,h7t=pb(),A7t=Fv(),oJ=ffe();Dm.assert=A7t;Dm.toArray=oJ.toArray;Dm.zero2=oJ.zero2;Dm.toHex=oJ.toHex;Dm.encode=oJ.encode;function p7t(e,t,r){var i=new Array(Math.max(e.bitLength(),r)+1),n;for(n=0;n<i.length;n+=1)i[n]=0;var o=1<<t+1,d=e.clone();for(n=0;n<i.length;n++){var g,y=d.andln(o-1);d.isOdd()?(y>(o>>1)-1?g=(o>>1)-y:g=y,d.isubn(g)):g=0,i[n]=g,d.iushrn(1)}return i}Dm.getNAF=p7t;function g7t(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0,o;e.cmpn(-i)>0||t.cmpn(-n)>0;){var d=e.andln(3)+i&3,g=t.andln(3)+n&3;d===3&&(d=-1),g===3&&(g=-1);var y;(d&1)===0?y=0:(o=e.andln(7)+i&7,(o===3||o===5)&&g===2?y=-d:y=d),r[0].push(y);var _;(g&1)===0?_=0:(o=t.andln(7)+n&7,(o===3||o===5)&&d===2?_=-g:_=g),r[1].push(_),2*i===y+1&&(i=1-i),2*n===_+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r}Dm.getJSF=g7t;function _7t(e,t,r){var i="_"+t;e.prototype[t]=function(){return this[i]!==void 0?this[i]:this[i]=r.call(this)}}Dm.cachedProperty=_7t;function m7t(e){return typeof e=="string"?Dm.toArray(e,"hex"):e}Dm.parseBytes=m7t;function y7t(e){return new h7t(e,"hex","le")}Dm.intFromLE=y7t});var pfe=ir((y7n,Afe)=>{"use strict";J();K();z();var lfe;Afe.exports=function(t){return lfe||(lfe=new V6(null)),lfe.generate(t)};function V6(e){this.rand=e}Afe.exports.Rand=V6;V6.prototype.generate=function(t){return this._rand(t)};V6.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?V6.prototype._rand=function(t){var r=new Uint8Array(t);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?V6.prototype._rand=function(t){var r=new Uint8Array(t);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(V6.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(hfe=(IA(),Zu(Lv)),typeof hfe.randomBytes!="function")throw new Error("Not supported");V6.prototype._rand=function(t){return hfe.randomBytes(t)}}catch{}var hfe});var yk=ir((R7n,G$e)=>{"use strict";J();K();z();var U4=pb(),mk=K1(),aJ=mk.getNAF,b7t=mk.getJSF,sJ=mk.assert;function J6(e,t){this.type=e,this.p=new U4(t.p,16),this.red=t.prime?U4.red(t.prime):U4.mont(this.p),this.zero=new U4(0).toRed(this.red),this.one=new U4(1).toRed(this.red),this.two=new U4(2).toRed(this.red),this.n=t.n&&new U4(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}G$e.exports=J6;J6.prototype.point=function(){throw new Error("Not implemented")};J6.prototype.validate=function(){throw new Error("Not implemented")};J6.prototype._fixedNafMul=function(t,r){sJ(t.precomputed);var i=t._getDoubles(),n=aJ(r,1,this._bitLength),o=(1<<i.step+1)-(i.step%2===0?2:1);o/=3;var d=[],g,y;for(g=0;g<n.length;g+=i.step){y=0;for(var _=g+i.step-1;_>=g;_--)y=(y<<1)+n[_];d.push(y)}for(var I=this.jpoint(null,null,null),N=this.jpoint(null,null,null),T=o;T>0;T--){for(g=0;g<d.length;g++)y=d[g],y===T?N=N.mixedAdd(i.points[g]):y===-T&&(N=N.mixedAdd(i.points[g].neg()));I=I.add(N)}return I.toP()};J6.prototype._wnafMul=function(t,r){var i=4,n=t._getNAFPoints(i);i=n.wnd;for(var o=n.points,d=aJ(r,i,this._bitLength),g=this.jpoint(null,null,null),y=d.length-1;y>=0;y--){for(var _=0;y>=0&&d[y]===0;y--)_++;if(y>=0&&_++,g=g.dblp(_),y<0)break;var I=d[y];sJ(I!==0),t.type==="affine"?I>0?g=g.mixedAdd(o[I-1>>1]):g=g.mixedAdd(o[-I-1>>1].neg()):I>0?g=g.add(o[I-1>>1]):g=g.add(o[-I-1>>1].neg())}return t.type==="affine"?g.toP():g};J6.prototype._wnafMulAdd=function(t,r,i,n,o){var d=this._wnafT1,g=this._wnafT2,y=this._wnafT3,_=0,I,N,T;for(I=0;I<n;I++){T=r[I];var M=T._getNAFPoints(t);d[I]=M.wnd,g[I]=M.points}for(I=n-1;I>=1;I-=2){var D=I-1,P=I;if(d[D]!==1||d[P]!==1){y[D]=aJ(i[D],d[D],this._bitLength),y[P]=aJ(i[P],d[P],this._bitLength),_=Math.max(y[D].length,_),_=Math.max(y[P].length,_);continue}var G=[r[D],null,null,r[P]];r[D].y.cmp(r[P].y)===0?(G[1]=r[D].add(r[P]),G[2]=r[D].toJ().mixedAdd(r[P].neg())):r[D].y.cmp(r[P].y.redNeg())===0?(G[1]=r[D].toJ().mixedAdd(r[P]),G[2]=r[D].add(r[P].neg())):(G[1]=r[D].toJ().mixedAdd(r[P]),G[2]=r[D].toJ().mixedAdd(r[P].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],Y=b7t(i[D],i[P]);for(_=Math.max(Y[0].length,_),y[D]=new Array(_),y[P]=new Array(_),N=0;N<_;N++){var ne=Y[0][N]|0,ce=Y[1][N]|0;y[D][N]=q[(ne+1)*3+(ce+1)],y[P][N]=0,g[D]=G}}var le=this.jpoint(null,null,null),pe=this._wnafT4;for(I=_;I>=0;I--){for(var ae=0;I>=0;){var W=!0;for(N=0;N<n;N++)pe[N]=y[N][I]|0,pe[N]!==0&&(W=!1);if(!W)break;ae++,I--}if(I>=0&&ae++,le=le.dblp(ae),I<0)break;for(N=0;N<n;N++){var se=pe[N];se!==0&&(se>0?T=g[N][se-1>>1]:se<0&&(T=g[N][-se-1>>1].neg()),T.type==="affine"?le=le.mixedAdd(T):le=le.add(T))}}for(I=0;I<n;I++)g[I]=null;return o?le:le.toP()};function c_(e,t){this.curve=e,this.type=t,this.precomputed=null}J6.BasePoint=c_;c_.prototype.eq=function(){throw new Error("Not implemented")};c_.prototype.validate=function(){return this.curve.validate(this)};J6.prototype.decodePoint=function(t,r){t=mk.toArray(t,r);var i=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1===2*i){t[0]===6?sJ(t[t.length-1]%2===0):t[0]===7&&sJ(t[t.length-1]%2===1);var n=this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));return n}else if((t[0]===2||t[0]===3)&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),t[0]===3);throw new Error("Unknown point format")};c_.prototype.encodeCompressed=function(t){return this.encode(t,!0)};c_.prototype._encode=function(t){var r=this.curve.p.byteLength(),i=this.getX().toArray("be",r);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",r))};c_.prototype.encode=function(t,r){return mk.encode(this._encode(r),t)};c_.prototype.precompute=function(t){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,t),r.beta=this._getBeta(),this.precomputed=r,this};c_.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((t.bitLength()+1)/r.step):!1};c_.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,o=0;o<r;o+=t){for(var d=0;d<t;d++)n=n.dbl();i.push(n)}return{step:t,points:i}};c_.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],i=(1<<t)-1,n=i===1?null:this.dbl(),o=1;o<i;o++)r[o]=r[o-1].add(n);return{wnd:t,points:r}};c_.prototype._getBeta=function(){return null};c_.prototype.dblp=function(t){for(var r=this,i=0;i<t;i++)r=r.dbl();return r}});var V$e=ir((w7n,q$e)=>{"use strict";J();K();z();var E7t=K1(),dd=pb(),gfe=Gl(),pN=yk(),v7t=E7t.assert;function u_(e){pN.call(this,"short",e),this.a=new dd(e.a,16).toRed(this.red),this.b=new dd(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}gfe(u_,pN);q$e.exports=u_;u_.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,i;if(t.beta)r=new dd(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);r=n[0].cmp(n[1])<0?n[0]:n[1],r=r.toRed(this.red)}if(t.lambda)i=new dd(t.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(r))===0?i=o[0]:(i=o[1],v7t(this.g.mul(i).x.cmp(this.g.x.redMul(r))===0))}var d;return t.basis?d=t.basis.map(function(g){return{a:new dd(g.a,16),b:new dd(g.b,16)}}):d=this._getEndoBasis(i),{beta:r,lambda:i,basis:d}}};u_.prototype._getEndoRoots=function(t){var r=t===this.p?this.red:dd.mont(t),i=new dd(2).toRed(r).redInvm(),n=i.redNeg(),o=new dd(3).toRed(r).redNeg().redSqrt().redMul(i),d=n.redAdd(o).fromRed(),g=n.redSub(o).fromRed();return[d,g]};u_.prototype._getEndoBasis=function(t){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=t,n=this.n.clone(),o=new dd(1),d=new dd(0),g=new dd(0),y=new dd(1),_,I,N,T,M,D,P,G=0,q,Y;i.cmpn(0)!==0;){var ne=n.div(i);q=n.sub(ne.mul(i)),Y=g.sub(ne.mul(o));var ce=y.sub(ne.mul(d));if(!N&&q.cmp(r)<0)_=P.neg(),I=o,N=q.neg(),T=Y;else if(N&&++G===2)break;P=q,n=i,i=q,g=o,o=Y,y=d,d=ce}M=q.neg(),D=Y;var le=N.sqr().add(T.sqr()),pe=M.sqr().add(D.sqr());return pe.cmp(le)>=0&&(M=_,D=I),N.negative&&(N=N.neg(),T=T.neg()),M.negative&&(M=M.neg(),D=D.neg()),[{a:N,b:T},{a:M,b:D}]};u_.prototype._endoSplit=function(t){var r=this.endo.basis,i=r[0],n=r[1],o=n.b.mul(t).divRound(this.n),d=i.b.neg().mul(t).divRound(this.n),g=o.mul(i.a),y=d.mul(n.a),_=o.mul(i.b),I=d.mul(n.b),N=t.sub(g).sub(y),T=_.add(I).neg();return{k1:N,k2:T}};u_.prototype.pointFromX=function(t,r){t=new dd(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(n.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var o=n.fromRed().isOdd();return(r&&!o||!r&&o)&&(n=n.redNeg()),this.point(t,n)};u_.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,i=t.y,n=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(n).redIAdd(this.b);return i.redSqr().redISub(o).cmpn(0)===0};u_.prototype._endoWnafMulAdd=function(t,r,i){for(var n=this._endoWnafT1,o=this._endoWnafT2,d=0;d<t.length;d++){var g=this._endoSplit(r[d]),y=t[d],_=y._getBeta();g.k1.negative&&(g.k1.ineg(),y=y.neg(!0)),g.k2.negative&&(g.k2.ineg(),_=_.neg(!0)),n[d*2]=y,n[d*2+1]=_,o[d*2]=g.k1,o[d*2+1]=g.k2}for(var I=this._wnafMulAdd(1,n,o,d*2,i),N=0;N<d*2;N++)n[N]=null,o[N]=null;return I};function sl(e,t,r,i){pN.BasePoint.call(this,e,"affine"),t===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new dd(t,16),this.y=new dd(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}gfe(sl,pN.BasePoint);u_.prototype.point=function(t,r,i){return new sl(this,t,r,i)};u_.prototype.pointFromJSON=function(t,r){return sl.fromJSON(this,t,r)};sl.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,n=function(o){return i.point(o.x.redMul(i.endo.beta),o.y)};t.beta=r,r.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return r}};sl.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};sl.fromJSON=function(t,r,i){typeof r=="string"&&(r=JSON.parse(r));var n=t.point(r[0],r[1],i);if(!r[2])return n;function o(g){return t.point(g[0],g[1],i)}var d=r[2];return n.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[n].concat(d.doubles.points.map(o))},naf:d.naf&&{wnd:d.naf.wnd,points:[n].concat(d.naf.points.map(o))}},n};sl.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};sl.prototype.isInfinity=function(){return this.inf};sl.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var i=r.redSqr().redISub(this.x).redISub(t.x),n=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)};sl.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),o=i.redAdd(i).redIAdd(i).redIAdd(r).redMul(n),d=o.redSqr().redISub(this.x.redAdd(this.x)),g=o.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,g)};sl.prototype.getX=function(){return this.x.fromRed()};sl.prototype.getY=function(){return this.y.fromRed()};sl.prototype.mul=function(t){return t=new dd(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};sl.prototype.mulAdd=function(t,r,i){var n=[this,r],o=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)};sl.prototype.jmulAdd=function(t,r,i){var n=[this,r],o=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)};sl.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};sl.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(o){return o.neg()};r.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return r};sl.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function Jl(e,t,r,i){pN.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new dd(0)):(this.x=new dd(t,16),this.y=new dd(r,16),this.z=new dd(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}gfe(Jl,pN.BasePoint);u_.prototype.jpoint=function(t,r,i){return new Jl(this,t,r,i)};Jl.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),i=this.x.redMul(r),n=this.y.redMul(r).redMul(t);return this.curve.point(i,n)};Jl.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Jl.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(r),o=t.x.redMul(i),d=this.y.redMul(r.redMul(t.z)),g=t.y.redMul(i.redMul(this.z)),y=n.redSub(o),_=d.redSub(g);if(y.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=y.redSqr(),N=I.redMul(y),T=n.redMul(I),M=_.redSqr().redIAdd(N).redISub(T).redISub(T),D=_.redMul(T.redISub(M)).redISub(d.redMul(N)),P=this.z.redMul(t.z).redMul(y);return this.curve.jpoint(M,D,P)};Jl.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),i=this.x,n=t.x.redMul(r),o=this.y,d=t.y.redMul(r).redMul(this.z),g=i.redSub(n),y=o.redSub(d);if(g.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=g.redSqr(),I=_.redMul(g),N=i.redMul(_),T=y.redSqr().redIAdd(I).redISub(N).redISub(N),M=y.redMul(N.redISub(T)).redISub(o.redMul(I)),D=this.z.redMul(g);return this.curve.jpoint(T,M,D)};Jl.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var i=this;for(r=0;r<t;r++)i=i.dbl();return i}var n=this.curve.a,o=this.curve.tinv,d=this.x,g=this.y,y=this.z,_=y.redSqr().redSqr(),I=g.redAdd(g);for(r=0;r<t;r++){var N=d.redSqr(),T=I.redSqr(),M=T.redSqr(),D=N.redAdd(N).redIAdd(N).redIAdd(n.redMul(_)),P=d.redMul(T),G=D.redSqr().redISub(P.redAdd(P)),q=P.redISub(G),Y=D.redMul(q);Y=Y.redIAdd(Y).redISub(M);var ne=I.redMul(y);r+1<t&&(_=_.redMul(M)),d=G,y=ne,I=Y}return this.curve.jpoint(d,I.redMul(o),y)};Jl.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Jl.prototype._zeroDbl=function(){var t,r,i;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),d=o.redSqr(),g=this.x.redAdd(o).redSqr().redISub(n).redISub(d);g=g.redIAdd(g);var y=n.redAdd(n).redIAdd(n),_=y.redSqr().redISub(g).redISub(g),I=d.redIAdd(d);I=I.redIAdd(I),I=I.redIAdd(I),t=_,r=y.redMul(g.redISub(_)).redISub(I),i=this.y.redAdd(this.y)}else{var N=this.x.redSqr(),T=this.y.redSqr(),M=T.redSqr(),D=this.x.redAdd(T).redSqr().redISub(N).redISub(M);D=D.redIAdd(D);var P=N.redAdd(N).redIAdd(N),G=P.redSqr(),q=M.redIAdd(M);q=q.redIAdd(q),q=q.redIAdd(q),t=G.redISub(D).redISub(D),r=P.redMul(D.redISub(t)).redISub(q),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(t,r,i)};Jl.prototype._threeDbl=function(){var t,r,i;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),d=o.redSqr(),g=this.x.redAdd(o).redSqr().redISub(n).redISub(d);g=g.redIAdd(g);var y=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),_=y.redSqr().redISub(g).redISub(g);t=_;var I=d.redIAdd(d);I=I.redIAdd(I),I=I.redIAdd(I),r=y.redMul(g.redISub(_)).redISub(I),i=this.y.redAdd(this.y)}else{var N=this.z.redSqr(),T=this.y.redSqr(),M=this.x.redMul(T),D=this.x.redSub(N).redMul(this.x.redAdd(N));D=D.redAdd(D).redIAdd(D);var P=M.redIAdd(M);P=P.redIAdd(P);var G=P.redAdd(P);t=D.redSqr().redISub(G),i=this.y.redAdd(this.z).redSqr().redISub(T).redISub(N);var q=T.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q),r=D.redMul(P.redISub(t)).redISub(q)}return this.curve.jpoint(t,r,i)};Jl.prototype._dbl=function(){var t=this.curve.a,r=this.x,i=this.y,n=this.z,o=n.redSqr().redSqr(),d=r.redSqr(),g=i.redSqr(),y=d.redAdd(d).redIAdd(d).redIAdd(t.redMul(o)),_=r.redAdd(r);_=_.redIAdd(_);var I=_.redMul(g),N=y.redSqr().redISub(I.redAdd(I)),T=I.redISub(N),M=g.redSqr();M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var D=y.redMul(T).redISub(M),P=i.redAdd(i).redMul(n);return this.curve.jpoint(N,D,P)};Jl.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr(),n=r.redSqr(),o=t.redAdd(t).redIAdd(t),d=o.redSqr(),g=this.x.redAdd(r).redSqr().redISub(t).redISub(n);g=g.redIAdd(g),g=g.redAdd(g).redIAdd(g),g=g.redISub(d);var y=g.redSqr(),_=n.redIAdd(n);_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var I=o.redIAdd(g).redSqr().redISub(d).redISub(y).redISub(_),N=r.redMul(I);N=N.redIAdd(N),N=N.redIAdd(N);var T=this.x.redMul(y).redISub(N);T=T.redIAdd(T),T=T.redIAdd(T);var M=this.y.redMul(I.redMul(_.redISub(I)).redISub(g.redMul(y)));M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var D=this.z.redAdd(g).redSqr().redISub(i).redISub(y);return this.curve.jpoint(T,M,D)};Jl.prototype.mul=function(t,r){return t=new dd(t,r),this.curve._wnafMul(this,t)};Jl.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var r=this.z.redSqr(),i=t.z.redSqr();if(this.x.redMul(i).redISub(t.x.redMul(r)).cmpn(0)!==0)return!1;var n=r.redMul(this.z),o=i.redMul(t.z);return this.y.redMul(o).redISub(t.y.redMul(n)).cmpn(0)===0};Jl.prototype.eqXToP=function(t){var r=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(r);if(this.x.cmp(i)===0)return!0;for(var n=t.clone(),o=this.curve.redN.redMul(r);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(o),this.x.cmp(i)===0)return!0}};Jl.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};Jl.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var K$e=ir((T7n,z$e)=>{"use strict";J();K();z();var gN=pb(),J$e=Gl(),cJ=yk(),R7t=K1();function _N(e){cJ.call(this,"mont",e),this.a=new gN(e.a,16).toRed(this.red),this.b=new gN(e.b,16).toRed(this.red),this.i4=new gN(4).toRed(this.red).redInvm(),this.two=new gN(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}J$e(_N,cJ);z$e.exports=_N;_N.prototype.validate=function(t){var r=t.normalize().x,i=r.redSqr(),n=i.redMul(r).redAdd(i.redMul(this.a)).redAdd(r),o=n.redSqrt();return o.redSqr().cmp(n)===0};function cl(e,t,r){cJ.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new gN(t,16),this.z=new gN(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}J$e(cl,cJ.BasePoint);_N.prototype.decodePoint=function(t,r){return this.point(R7t.toArray(t,r),1)};_N.prototype.point=function(t,r){return new cl(this,t,r)};_N.prototype.pointFromJSON=function(t){return cl.fromJSON(this,t)};cl.prototype.precompute=function(){};cl.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};cl.fromJSON=function(t,r){return new cl(t,r[0],r[1]||t.one)};cl.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};cl.prototype.isInfinity=function(){return this.z.cmpn(0)===0};cl.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),i=this.x.redSub(this.z),n=i.redSqr(),o=r.redSub(n),d=r.redMul(n),g=o.redMul(n.redAdd(this.curve.a24.redMul(o)));return this.curve.point(d,g)};cl.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};cl.prototype.diffAdd=function(t,r){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),o=t.x.redAdd(t.z),d=t.x.redSub(t.z),g=d.redMul(i),y=o.redMul(n),_=r.z.redMul(g.redAdd(y).redSqr()),I=r.x.redMul(g.redISub(y).redSqr());return this.curve.point(_,I)};cl.prototype.mul=function(t){for(var r=t.clone(),i=this,n=this.curve.point(null,null),o=this,d=[];r.cmpn(0)!==0;r.iushrn(1))d.push(r.andln(1));for(var g=d.length-1;g>=0;g--)d[g]===0?(i=i.diffAdd(n,o),n=n.dbl()):(n=i.diffAdd(n,o),i=i.dbl());return n};cl.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};cl.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};cl.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};cl.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};cl.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var W$e=ir((k7n,Y$e)=>{"use strict";J();K();z();var S7t=K1(),jv=pb(),$$e=Gl(),uJ=yk(),I7t=S7t.assert;function gb(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,uJ.call(this,"edwards",e),this.a=new jv(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new jv(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new jv(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),I7t(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}$$e(gb,uJ);Y$e.exports=gb;gb.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};gb.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};gb.prototype.jpoint=function(t,r,i,n){return this.point(t,r,i,n)};gb.prototype.pointFromX=function(t,r){t=new jv(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),n=this.c2.redSub(this.a.redMul(i)),o=this.one.redSub(this.c2.redMul(this.d).redMul(i)),d=n.redMul(o.redInvm()),g=d.redSqrt();if(g.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var y=g.fromRed().isOdd();return(r&&!y||!r&&y)&&(g=g.redNeg()),this.point(t,g)};gb.prototype.pointFromY=function(t,r){t=new jv(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),n=i.redSub(this.c2),o=i.redMul(this.d).redMul(this.c2).redSub(this.a),d=n.redMul(o.redInvm());if(d.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var g=d.redSqrt();if(g.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return g.fromRed().isOdd()!==r&&(g=g.redNeg()),this.point(g,t)};gb.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),i=t.y.redSqr(),n=r.redMul(this.a).redAdd(i),o=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(i)));return n.cmp(o)===0};function Vu(e,t,r,i,n){uJ.BasePoint.call(this,e,"projective"),t===null&&r===null&&i===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new jv(t,16),this.y=new jv(r,16),this.z=i?new jv(i,16):this.curve.one,this.t=n&&new jv(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}$$e(Vu,uJ.BasePoint);gb.prototype.pointFromJSON=function(t){return Vu.fromJSON(this,t)};gb.prototype.point=function(t,r,i,n){return new Vu(this,t,r,i,n)};Vu.fromJSON=function(t,r){return new Vu(t,r[0],r[1],r[2])};Vu.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Vu.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Vu.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(t),o=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),d=n.redAdd(r),g=d.redSub(i),y=n.redSub(r),_=o.redMul(g),I=d.redMul(y),N=o.redMul(y),T=g.redMul(d);return this.curve.point(_,I,T,N)};Vu.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),i=this.y.redSqr(),n,o,d,g,y,_;if(this.curve.twisted){g=this.curve._mulA(r);var I=g.redAdd(i);this.zOne?(n=t.redSub(r).redSub(i).redMul(I.redSub(this.curve.two)),o=I.redMul(g.redSub(i)),d=I.redSqr().redSub(I).redSub(I)):(y=this.z.redSqr(),_=I.redSub(y).redISub(y),n=t.redSub(r).redISub(i).redMul(_),o=I.redMul(g.redSub(i)),d=I.redMul(_))}else g=r.redAdd(i),y=this.curve._mulC(this.z).redSqr(),_=g.redSub(y).redSub(y),n=this.curve._mulC(t.redISub(g)).redMul(_),o=this.curve._mulC(g).redMul(r.redISub(i)),d=g.redMul(_);return this.curve.point(n,o,d)};Vu.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Vu.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),o=this.z.redMul(t.z.redAdd(t.z)),d=i.redSub(r),g=o.redSub(n),y=o.redAdd(n),_=i.redAdd(r),I=d.redMul(g),N=y.redMul(_),T=d.redMul(_),M=g.redMul(y);return this.curve.point(I,N,M,T)};Vu.prototype._projAdd=function(t){var r=this.z.redMul(t.z),i=r.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),d=this.curve.d.redMul(n).redMul(o),g=i.redSub(d),y=i.redAdd(d),_=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),I=r.redMul(g).redMul(_),N,T;return this.curve.twisted?(N=r.redMul(y).redMul(o.redSub(this.curve._mulA(n))),T=g.redMul(y)):(N=r.redMul(y).redMul(o.redSub(n)),T=this.curve._mulC(g).redMul(y)),this.curve.point(I,N,T)};Vu.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Vu.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Vu.prototype.mulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!1)};Vu.prototype.jmulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!0)};Vu.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Vu.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Vu.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Vu.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Vu.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Vu.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),this.x.cmp(r)===0)return!0}};Vu.prototype.toP=Vu.prototype.normalize;Vu.prototype.mixedAdd=Vu.prototype.add});var _fe=ir(X$e=>{"use strict";J();K();z();var dJ=X$e;dJ.base=yk();dJ.short=V$e();dJ.mont=K$e();dJ.edwards=W$e()});var j$e=ir((q7n,Z$e)=>{"use strict";J();K();z();Z$e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var fJ=ir(rYe=>{"use strict";J();K();z();var yfe=rYe,z6=oN(),mfe=_fe(),C7t=K1(),eYe=C7t.assert;function tYe(e){e.type==="short"?this.curve=new mfe.short(e):e.type==="edwards"?this.curve=new mfe.edwards(e):this.curve=new mfe.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,eYe(this.g.validate(),"Invalid curve"),eYe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}yfe.PresetCurve=tYe;function K6(e,t){Object.defineProperty(yfe,e,{configurable:!0,enumerable:!0,get:function(){var r=new tYe(t);return Object.defineProperty(yfe,e,{configurable:!0,enumerable:!0,value:r}),r}})}K6("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:z6.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});K6("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:z6.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});K6("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:z6.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});K6("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:z6.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});K6("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:z6.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});K6("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:z6.sha256,gRed:!1,g:["9"]});K6("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:z6.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var bfe;try{bfe=j$e()}catch{bfe=void 0}K6("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:z6.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",bfe]})});var oYe=ir((X7n,iYe)=>{"use strict";J();K();z();var w7t=oN(),F4=ffe(),nYe=Fv();function $6(e){if(!(this instanceof $6))return new $6(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=F4.toArray(e.entropy,e.entropyEnc||"hex"),r=F4.toArray(e.nonce,e.nonceEnc||"hex"),i=F4.toArray(e.pers,e.persEnc||"hex");nYe(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}iYe.exports=$6;$6.prototype._init=function(t,r,i){var n=t.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656};$6.prototype._hmac=function(){return new w7t.hmac(this.hash,this.K)};$6.prototype._update=function(t){var r=this._hmac().update(this.V).update([0]);t&&(r=r.update(t)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())};$6.prototype.reseed=function(t,r,i,n){typeof r!="string"&&(n=i,i=r,r=null),t=F4.toArray(t,r),i=F4.toArray(i,n),nYe(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1};$6.prototype.generate=function(t,r,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(n=i,i=r,r=null),i&&(i=F4.toArray(i,n||"hex"),this._update(i));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var d=o.slice(0,t);return this._update(i),this._reseed++,F4.encode(d,r)}});var sYe=ir((t9n,aYe)=>{"use strict";J();K();z();var O7t=pb(),N7t=K1(),Efe=N7t.assert;function Mh(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}aYe.exports=Mh;Mh.fromPublic=function(t,r,i){return r instanceof Mh?r:new Mh(t,{pub:r,pubEnc:i})};Mh.fromPrivate=function(t,r,i){return r instanceof Mh?r:new Mh(t,{priv:r,privEnc:i})};Mh.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Mh.prototype.getPublic=function(t,r){return typeof t=="string"&&(r=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,t):this.pub};Mh.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv};Mh.prototype._importPrivate=function(t,r){this.priv=new O7t(t,r||16),this.priv=this.priv.umod(this.ec.curve.n)};Mh.prototype._importPublic=function(t,r){if(t.x||t.y){this.ec.curve.type==="mont"?Efe(t.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Efe(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,r)};Mh.prototype.derive=function(t){return t.validate()||Efe(t.validate(),"public point not validated"),t.mul(this.priv).getX()};Mh.prototype.sign=function(t,r,i){return this.ec.sign(t,this,r,i)};Mh.prototype.verify=function(t,r,i){return this.ec.verify(t,r,this,void 0,i)};Mh.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var dYe=ir((o9n,uYe)=>{"use strict";J();K();z();var lJ=pb(),Sfe=K1(),x7t=Sfe.assert;function hJ(e,t){if(e instanceof hJ)return e;this._importDER(e,t)||(x7t(e.r&&e.s,"Signature without r or s"),this.r=new lJ(e.r,16),this.s=new lJ(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}uYe.exports=hJ;function T7t(){this.place=0}function vfe(e,t){var r=e[t.place++];if(!(r&128))return r;var i=r&15;if(i===0||i>4||e[t.place]===0)return!1;for(var n=0,o=0,d=t.place;o<i;o++,d++)n<<=8,n|=e[d],n>>>=0;return n<=127?!1:(t.place=d,n)}function cYe(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t<r;)t++;return t===0?e:e.slice(t)}hJ.prototype._importDER=function(t,r){t=Sfe.toArray(t,r);var i=new T7t;if(t[i.place++]!==48)return!1;var n=vfe(t,i);if(n===!1||n+i.place!==t.length||t[i.place++]!==2)return!1;var o=vfe(t,i);if(o===!1||(t[i.place]&128)!==0)return!1;var d=t.slice(i.place,o+i.place);if(i.place+=o,t[i.place++]!==2)return!1;var g=vfe(t,i);if(g===!1||t.length!==g+i.place||(t[i.place]&128)!==0)return!1;var y=t.slice(i.place,g+i.place);if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new lJ(d),this.s=new lJ(y),this.recoveryParam=null,!0};function Rfe(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}hJ.prototype.toDER=function(t){var r=this.r.toArray(),i=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),i[0]&128&&(i=[0].concat(i)),r=cYe(r),i=cYe(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var n=[2];Rfe(n,r.length),n=n.concat(r),n.push(2),Rfe(n,i.length);var o=n.concat(i),d=[48];return Rfe(d,o.length),d=d.concat(o),Sfe.encode(d,t)}});var hYe=ir((u9n,lYe)=>{"use strict";J();K();z();var km=pb(),fYe=oYe(),B7t=K1(),Ife=fJ(),M7t=pfe(),Q4=B7t.assert,Cfe=sYe(),AJ=dYe();function d_(e){if(!(this instanceof d_))return new d_(e);typeof e=="string"&&(Q4(Object.prototype.hasOwnProperty.call(Ife,e),"Unknown curve "+e),e=Ife[e]),e instanceof Ife.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}lYe.exports=d_;d_.prototype.keyPair=function(t){return new Cfe(this,t)};d_.prototype.keyFromPrivate=function(t,r){return Cfe.fromPrivate(this,t,r)};d_.prototype.keyFromPublic=function(t,r){return Cfe.fromPublic(this,t,r)};d_.prototype.genKeyPair=function(t){t||(t={});for(var r=new fYe({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||M7t(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new km(2));;){var o=new km(r.generate(i));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}};d_.prototype._truncateToN=function(t,r,i){var n;if(km.isBN(t)||typeof t=="number")t=new km(t,16),n=t.byteLength();else if(typeof t=="object")n=t.length,t=new km(t,16);else{var o=t.toString();n=o.length+1>>>1,t=new km(o,16)}typeof i!="number"&&(i=n*8);var d=i-this.n.bitLength();return d>0&&(t=t.ushrn(d)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};d_.prototype.sign=function(t,r,i,n){if(typeof i=="object"&&(n=i,i=null),n||(n={}),typeof t!="string"&&typeof t!="number"&&!km.isBN(t)){Q4(typeof t=="object"&&t&&typeof t.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),Q4(t.length>>>0===t.length);for(var o=0;o<t.length;o++)Q4((t[o]&255)===t[o])}r=this.keyFromPrivate(r,i),t=this._truncateToN(t,!1,n.msgBitLength),Q4(!t.isNeg(),"Can not sign a negative message");var d=this.n.byteLength(),g=r.getPrivate().toArray("be",d),y=t.toArray("be",d);Q4(new km(y).eq(t),"Can not sign message");for(var _=new fYe({hash:this.hash,entropy:g,nonce:y,pers:n.pers,persEnc:n.persEnc||"utf8"}),I=this.n.sub(new km(1)),N=0;;N++){var T=n.k?n.k(N):new km(_.generate(this.n.byteLength()));if(T=this._truncateToN(T,!0),!(T.cmpn(1)<=0||T.cmp(I)>=0)){var M=this.g.mul(T);if(!M.isInfinity()){var D=M.getX(),P=D.umod(this.n);if(P.cmpn(0)!==0){var G=T.invm(this.n).mul(P.mul(r.getPrivate()).iadd(t));if(G=G.umod(this.n),G.cmpn(0)!==0){var q=(M.getY().isOdd()?1:0)|(D.cmp(P)!==0?2:0);return n.canonical&&G.cmp(this.nh)>0&&(G=this.n.sub(G),q^=1),new AJ({r:P,s:G,recoveryParam:q})}}}}}};d_.prototype.verify=function(t,r,i,n,o){o||(o={}),t=this._truncateToN(t,!1,o.msgBitLength),i=this.keyFromPublic(i,n),r=new AJ(r,"hex");var d=r.r,g=r.s;if(d.cmpn(1)<0||d.cmp(this.n)>=0||g.cmpn(1)<0||g.cmp(this.n)>=0)return!1;var y=g.invm(this.n),_=y.mul(t).umod(this.n),I=y.mul(d).umod(this.n),N;return this.curve._maxwellTrick?(N=this.g.jmulAdd(_,i.getPublic(),I),N.isInfinity()?!1:N.eqXToP(d)):(N=this.g.mulAdd(_,i.getPublic(),I),N.isInfinity()?!1:N.getX().umod(this.n).cmp(d)===0)};d_.prototype.recoverPubKey=function(e,t,r,i){Q4((3&r)===r,"The recovery param is more than two bits"),t=new AJ(t,i);var n=this.n,o=new km(e),d=t.r,g=t.s,y=r&1,_=r>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&_)throw new Error("Unable to find sencond key candinate");_?d=this.curve.pointFromX(d.add(this.curve.n),y):d=this.curve.pointFromX(d,y);var I=t.r.invm(n),N=n.sub(o).mul(I).umod(n),T=g.mul(I).umod(n);return this.g.mulAdd(N,d,T)};d_.prototype.getKeyRecoveryParam=function(e,t,r,i){if(t=new AJ(t,i),t.recoveryParam!==null)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch{continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")}});var _Ye=ir((h9n,gYe)=>{"use strict";J();K();z();var bk=K1(),pYe=bk.assert,AYe=bk.parseBytes,mN=bk.cachedProperty;function ul(e,t){this.eddsa=e,this._secret=AYe(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=AYe(t.pub)}ul.fromPublic=function(t,r){return r instanceof ul?r:new ul(t,{pub:r})};ul.fromSecret=function(t,r){return r instanceof ul?r:new ul(t,{secret:r})};ul.prototype.secret=function(){return this._secret};mN(ul,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});mN(ul,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});mN(ul,"privBytes",function(){var t=this.eddsa,r=this.hash(),i=t.encodingLength-1,n=r.slice(0,t.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n});mN(ul,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});mN(ul,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});mN(ul,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});ul.prototype.sign=function(t){return pYe(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};ul.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};ul.prototype.getSecret=function(t){return pYe(this._secret,"KeyPair is public only"),bk.encode(this.secret(),t)};ul.prototype.getPublic=function(t){return bk.encode(this.pubBytes(),t)};gYe.exports=ul});var bYe=ir((_9n,yYe)=>{"use strict";J();K();z();var D7t=pb(),pJ=K1(),mYe=pJ.assert,gJ=pJ.cachedProperty,k7t=pJ.parseBytes;function H4(e,t){this.eddsa=e,typeof t!="object"&&(t=k7t(t)),Array.isArray(t)&&(mYe(t.length===e.encodingLength*2,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),mYe(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof D7t&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}gJ(H4,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});gJ(H4,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});gJ(H4,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});gJ(H4,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});H4.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};H4.prototype.toHex=function(){return pJ.encode(this.toBytes(),"hex").toUpperCase()};yYe.exports=H4});var IYe=ir((E9n,SYe)=>{"use strict";J();K();z();var P7t=oN(),L7t=fJ(),yN=K1(),U7t=yN.assert,vYe=yN.parseBytes,RYe=_Ye(),EYe=bYe();function xp(e){if(U7t(e==="ed25519","only tested with ed25519 so far"),!(this instanceof xp))return new xp(e);e=L7t[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=P7t.sha512}SYe.exports=xp;xp.prototype.sign=function(t,r){t=vYe(t);var i=this.keyFromSecret(r),n=this.hashInt(i.messagePrefix(),t),o=this.g.mul(n),d=this.encodePoint(o),g=this.hashInt(d,i.pubBytes(),t).mul(i.priv()),y=n.add(g).umod(this.curve.n);return this.makeSignature({R:o,S:y,Rencoded:d})};xp.prototype.verify=function(t,r,i){if(t=vYe(t),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var n=this.keyFromPublic(i),o=this.hashInt(r.Rencoded(),n.pubBytes(),t),d=this.g.mul(r.S()),g=r.R().add(n.pub().mul(o));return g.eq(d)};xp.prototype.hashInt=function(){for(var t=this.hash(),r=0;r<arguments.length;r++)t.update(arguments[r]);return yN.intFromLE(t.digest()).umod(this.curve.n)};xp.prototype.keyFromPublic=function(t){return RYe.fromPublic(this,t)};xp.prototype.keyFromSecret=function(t){return RYe.fromSecret(this,t)};xp.prototype.makeSignature=function(t){return t instanceof EYe?t:new EYe(this,t)};xp.prototype.encodePoint=function(t){var r=t.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=t.getX().isOdd()?128:0,r};xp.prototype.decodePoint=function(t){t=yN.parseBytes(t);var r=t.length-1,i=t.slice(0,r).concat(t[r]&-129),n=(t[r]&128)!==0,o=yN.intFromLE(i);return this.curve.pointFromY(o,n)};xp.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)};xp.prototype.decodeInt=function(t){return yN.intFromLE(t)};xp.prototype.isPoint=function(t){return t instanceof this.pointClass}});var _J=ir(CYe=>{"use strict";J();K();z();var G4=CYe;G4.version=P$e().version;G4.utils=K1();G4.rand=pfe();G4.curve=_fe();G4.curves=fJ();G4.ec=hYe();G4.eddsa=IYe()});var OYe=ir((N9n,wYe)=>{"use strict";J();K();z();var F7t=_J().ec,_b=new F7t("secp256k1"),Cs=_b.curve,Du=Cs.n.constructor;function Q7t(e,t){let r=new Du(t);if(r.cmp(Cs.p)>=0)return null;r=r.toRed(Cs.red);let i=r.redSqr().redIMul(r).redIAdd(Cs.b).redSqrt();e===3!==i.isOdd()&&(i=i.redNeg());let n=r.redSqr().redIMul(r);return i.redSqr().redISub(n.redIAdd(Cs.b)).isZero()?_b.keyPair({pub:{x:r,y:i}}):null}function H7t(e,t,r){let i=new Du(t),n=new Du(r);if(i.cmp(Cs.p)>=0||n.cmp(Cs.p)>=0||(i=i.toRed(Cs.red),n=n.toRed(Cs.red),(e===6||e===7)&&n.isOdd()!==(e===7)))return null;let o=i.redSqr().redIMul(i);return n.redSqr().redISub(o.redIAdd(Cs.b)).isZero()?_b.keyPair({pub:{x:i,y:n}}):null}function Y6(e){let t=e[0];switch(t){case 2:case 3:return e.length!==33?null:Q7t(t,e.subarray(1,33));case 4:case 6:case 7:return e.length!==65?null:H7t(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function q4(e,t){let r=t.encode(null,e.length===33);for(let i=0;i<e.length;++i)e[i]=r[i]}wYe.exports={contextRandomize(){return 0},privateKeyVerify(e){let t=new Du(e);return t.cmp(Cs.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){let t=new Du(e),r=Cs.n.sub(t).umod(Cs.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){let r=new Du(t);if(r.cmp(Cs.n)>=0||(r.iadd(new Du(e)),r.cmp(Cs.n)>=0&&r.isub(Cs.n),r.isZero()))return 1;let i=r.toArrayLike(Uint8Array,"be",32);return e.set(i),0},privateKeyTweakMul(e,t){let r=new Du(t);if(r.cmp(Cs.n)>=0||r.isZero())return 1;r.imul(new Du(e)),r.cmp(Cs.n)>=0&&(r=r.umod(Cs.n));let i=r.toArrayLike(Uint8Array,"be",32);return e.set(i),0},publicKeyVerify(e){return Y6(e)===null?1:0},publicKeyCreate(e,t){let r=new Du(t);if(r.cmp(Cs.n)>=0||r.isZero())return 1;let i=_b.keyFromPrivate(t).getPublic();return q4(e,i),0},publicKeyConvert(e,t){let r=Y6(t);if(r===null)return 1;let i=r.getPublic();return q4(e,i),0},publicKeyNegate(e,t){let r=Y6(t);if(r===null)return 1;let i=r.getPublic();return i.y=i.y.redNeg(),q4(e,i),0},publicKeyCombine(e,t){let r=new Array(t.length);for(let n=0;n<t.length;++n)if(r[n]=Y6(t[n]),r[n]===null)return 1;let i=r[0].getPublic();for(let n=1;n<r.length;++n)i=i.add(r[n].pub);return i.isInfinity()?2:(q4(e,i),0)},publicKeyTweakAdd(e,t,r){let i=Y6(t);if(i===null)return 1;if(r=new Du(r),r.cmp(Cs.n)>=0)return 2;let n=i.getPublic().add(Cs.g.mul(r));return n.isInfinity()?2:(q4(e,n),0)},publicKeyTweakMul(e,t,r){let i=Y6(t);if(i===null)return 1;if(r=new Du(r),r.cmp(Cs.n)>=0||r.isZero())return 2;let n=i.getPublic().mul(r);return q4(e,n),0},signatureNormalize(e){let t=new Du(e.subarray(0,32)),r=new Du(e.subarray(32,64));return t.cmp(Cs.n)>=0||r.cmp(Cs.n)>=0?1:(r.cmp(_b.nh)===1&&e.set(Cs.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){let r=t.subarray(0,32),i=t.subarray(32,64);if(new Du(r).cmp(Cs.n)>=0||new Du(i).cmp(Cs.n)>=0)return 1;let{output:n}=e,o=n.subarray(4,37);o[0]=0,o.set(r,1);let d=33,g=0;for(;d>1&&o[g]===0&&!(o[g+1]&128);--d,++g);if(o=o.subarray(g),o[0]&128||d>1&&o[0]===0&&!(o[1]&128))return 1;let y=n.subarray(39,72);y[0]=0,y.set(i,1);let _=33,I=0;for(;_>1&&y[I]===0&&!(y[I+1]&128);--_,++I);return y=y.subarray(I),y[0]&128||_>1&&y[0]===0&&!(y[1]&128)?1:(e.outputlen=6+d+_,n[0]=48,n[1]=e.outputlen-2,n[2]=2,n[3]=o.length,n.set(o,4),n[4+d]=2,n[5+d]=y.length,n.set(y,6+d),0)},signatureImport(e,t){if(t.length<8||t.length>72||t[0]!==48||t[1]!==t.length-2||t[2]!==2)return 1;let r=t[3];if(r===0||5+r>=t.length||t[4+r]!==2)return 1;let i=t[5+r];if(i===0||6+r+i!==t.length||t[4]&128||r>1&&t[4]===0&&!(t[5]&128)||t[r+6]&128||i>1&&t[r+6]===0&&!(t[r+7]&128))return 1;let n=t.subarray(4,4+r);if(n.length===33&&n[0]===0&&(n=n.subarray(1)),n.length>32)return 1;let o=t.subarray(6+r);if(o.length===33&&o[0]===0&&(o=o.slice(1)),o.length>32)throw new Error("S length is too long");let d=new Du(n);d.cmp(Cs.n)>=0&&(d=new Du(0));let g=new Du(t.subarray(6+r));return g.cmp(Cs.n)>=0&&(g=new Du(0)),e.set(d.toArrayLike(Uint8Array,"be",32),0),e.set(g.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,i,n){if(n){let g=n;n=y=>{let _=g(t,r,null,i,y);if(!(_ instanceof Uint8Array&&_.length===32))throw new Error("This is the way");return new Du(_)}}let o=new Du(r);if(o.cmp(Cs.n)>=0||o.isZero())return 1;let d;try{d=_b.sign(t,r,{canonical:!0,k:n,pers:i})}catch{return 1}return e.signature.set(d.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(d.s.toArrayLike(Uint8Array,"be",32),32),e.recid=d.recoveryParam,0},ecdsaVerify(e,t,r){let i={r:e.subarray(0,32),s:e.subarray(32,64)},n=new Du(i.r),o=new Du(i.s);if(n.cmp(Cs.n)>=0||o.cmp(Cs.n)>=0)return 1;if(o.cmp(_b.nh)===1||n.isZero()||o.isZero())return 3;let d=Y6(r);if(d===null)return 2;let g=d.getPublic();return _b.verify(t,i,g)?0:3},ecdsaRecover(e,t,r,i){let n={r:t.slice(0,32),s:t.slice(32,64)},o=new Du(n.r),d=new Du(n.s);if(o.cmp(Cs.n)>=0||d.cmp(Cs.n)>=0)return 1;if(o.isZero()||d.isZero())return 2;let g;try{g=_b.recoverPubKey(i,n,r)}catch{return 2}return q4(e,g),0},ecdh(e,t,r,i,n,o,d){let g=Y6(t);if(g===null)return 1;let y=new Du(r);if(y.cmp(Cs.n)>=0||y.isZero())return 2;let _=g.getPublic().mul(y);if(n===void 0){let I=_.encode(null,!0),N=_b.hash().update(I).digest();for(let T=0;T<32;++T)e[T]=N[T]}else{o||(o=new Uint8Array(32));let I=_.getX().toArray("be",32);for(let D=0;D<32;++D)o[D]=I[D];d||(d=new Uint8Array(32));let N=_.getY().toArray("be",32);for(let D=0;D<32;++D)d[D]=N[D];let T=n(o,d,i);if(!(T instanceof Uint8Array&&T.length===e.length))return 2;e.set(T)}return 0}}});var wfe=ir((M9n,NYe)=>{"use strict";J();K();z();NYe.exports=k$e()(OYe())});var Ofe={};gh(Ofe,{EventEmitter:()=>G7t,default:()=>xc,defaultMaxListeners:()=>q7t,init:()=>V7t,listenerCount:()=>J7t,on:()=>z7t,once:()=>K7t});var G7t,q7t,V7t,J7t,z7t,K7t,bN=tn(()=>{"use strict";J();K();z();YS();YS();xc.once=function(e,t){return new Promise((r,i)=>{function n(...d){o!==void 0&&e.removeListener("error",o),r(d)}let o;t!=="error"&&(o=d=>{e.removeListener(name,n),i(d)},e.once("error",o)),e.once(t,n)})};xc.on=function(e,t){let r=[],i=[],n=null,o=!1,d={async next(){let _=r.shift();if(_)return createIterResult(_,!1);if(n){let I=Promise.reject(n);return n=null,I}return o?createIterResult(void 0,!0):new Promise((I,N)=>i.push({resolve:I,reject:N}))},async return(){e.removeListener(t,g),e.removeListener("error",y),o=!0;for(let _ of i)_.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(_){n=_,e.removeListener(t,g),e.removeListener("error",y)},[Symbol.asyncIterator](){return this}};return e.on(t,g),e.on("error",y),d;function g(..._){let I=i.shift();I?I.resolve(createIterResult(_,!1)):r.push(_)}function y(_){o=!0;let I=i.shift();I?I.reject(_):n=_,d.return()}};({EventEmitter:G7t,defaultMaxListeners:q7t,init:V7t,listenerCount:J7t,on:z7t,once:K7t}=xc)});var Nfe=ir((G9n,xYe)=>{"use strict";J();K();z();xYe.exports=(bN(),Zu(Ofe)).EventEmitter});var xfe={};gh(xfe,{TextDecoder:()=>y9t,TextEncoder:()=>m9t,_extend:()=>$7t,callbackify:()=>Y7t,debuglog:()=>W7t,default:()=>yn,deprecate:()=>X7t,format:()=>Z7t,inherits:()=>j7t,inspect:()=>e9t,isArray:()=>t9t,isBoolean:()=>r9t,isBuffer:()=>n9t,isDate:()=>i9t,isError:()=>o9t,isFunction:()=>a9t,isNull:()=>s9t,isNullOrUndefined:()=>c9t,isNumber:()=>u9t,isObject:()=>d9t,isPrimitive:()=>f9t,isRegExp:()=>l9t,isString:()=>h9t,isSymbol:()=>A9t,isUndefined:()=>p9t,log:()=>g9t,promisify:()=>mJ,types:()=>_9t});var $7t,Y7t,W7t,X7t,Z7t,j7t,e9t,t9t,r9t,n9t,i9t,o9t,a9t,s9t,c9t,u9t,d9t,f9t,l9t,h9t,A9t,p9t,g9t,mJ,_9t,m9t,y9t,Ek=tn(()=>{"use strict";J();K();z();sO();vv();vv();Ev();$7t=yn._extend,Y7t=yn.callbackify,W7t=yn.debuglog,X7t=yn.deprecate,Z7t=yn.format,j7t=yn.inherits,e9t=yn.inspect,t9t=yn.isArray,r9t=yn.isBoolean,n9t=yn.isBuffer,i9t=yn.isDate,o9t=yn.isError,a9t=yn.isFunction,s9t=yn.isNull,c9t=yn.isNullOrUndefined,u9t=yn.isNumber,d9t=yn.isObject,f9t=yn.isPrimitive,l9t=yn.isRegExp,h9t=yn.isString,A9t=yn.isSymbol,p9t=yn.isUndefined,g9t=yn.log,mJ=yn.promisify,_9t=yn.types,m9t=yn.TextEncoder=globalThis.TextEncoder,y9t=yn.TextDecoder=globalThis.TextDecoder});var PYe=ir((j9n,kYe)=>{"use strict";J();K();z();function TYe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function BYe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TYe(Object(r),!0).forEach(function(i){b9t(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TYe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function b9t(e,t,r){return t=DYe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E9t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MYe(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,DYe(i.key),i)}}function v9t(e,t,r){return t&&MYe(e.prototype,t),r&&MYe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DYe(e){var t=R9t(e,"string");return typeof t=="symbol"?t:String(t)}function R9t(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S9t=(mh(),Zu(ky)),yJ=S9t.Buffer,I9t=(Ek(),Zu(xfe)),Tfe=I9t.inspect,C9t=Tfe&&Tfe.custom||"inspect";function w9t(e,t,r){yJ.prototype.copy.call(e,t,r)}kYe.exports=(function(){function e(){E9t(this,e),this.head=null,this.tail=null,this.length=0}return v9t(e,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return yJ.alloc(0);for(var i=yJ.allocUnsafe(r>>>0),n=this.head,o=0;n;)w9t(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var d=i.data,g=r>d.length?d.length:r;if(g===d.length?o+=d:o+=d.slice(0,r),r-=g,r===0){g===d.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=d.slice(g));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=yJ.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var d=n.data,g=r>d.length?d.length:r;if(d.copy(i,i.length-r,0,g),r-=g,r===0){g===d.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=d.slice(g));break}++o}return this.length-=o,i}},{key:C9t,value:function(r,i){return Tfe(this,BYe(BYe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var Mfe=ir((nMn,UYe)=>{"use strict";J();K();z();function O9t(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(Bfe,this,e)):me.nextTick(Bfe,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?me.nextTick(bJ,r):(r._writableState.errorEmitted=!0,me.nextTick(LYe,r,o)):me.nextTick(LYe,r,o):t?(me.nextTick(bJ,r),t(o)):me.nextTick(bJ,r)}),this)}function LYe(e,t){Bfe(e,t),bJ(e)}function bJ(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function N9t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Bfe(e,t){e.emit("error",t)}function x9t(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}UYe.exports={destroy:O9t,undestroy:N9t,errorOrDestroy:x9t}});var V4=ir((sMn,HYe)=>{"use strict";J();K();z();function T9t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var QYe={};function f_(e,t,r){r||(r=Error);function i(o,d,g){return typeof t=="string"?t:t(o,d,g)}var n=(function(o){T9t(d,o);function d(g,y,_){return o.call(this,i(g,y,_))||this}return d})(r);n.prototype.name=r.name,n.prototype.code=e,QYe[e]=n}function FYe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function B9t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function M9t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function D9t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}f_("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);f_("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&B9t(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(M9t(e," argument"))n="The ".concat(e," ").concat(i," ").concat(FYe(t,"type"));else{var o=D9t(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(FYe(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);f_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");f_("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});f_("ERR_STREAM_PREMATURE_CLOSE","Premature close");f_("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});f_("ERR_MULTIPLE_CALLBACK","Callback called multiple times");f_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");f_("ERR_STREAM_WRITE_AFTER_END","write after end");f_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);f_("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);f_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");HYe.exports.codes=QYe});var Dfe=ir((fMn,GYe)=>{"use strict";J();K();z();var k9t=V4().codes.ERR_INVALID_OPT_VALUE;function P9t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function L9t(e,t,r,i){var n=P9t(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new k9t(o,n)}return Math.floor(n)}return e.objectMode?16:16*1024}GYe.exports={getHighWaterMark:L9t}});var VYe=ir((pMn,qYe)=>{"use strict";J();K();z();qYe.exports=U9t;function U9t(e,t){if(kfe("noDeprecation"))return e;var r=!1;function i(){if(!r){if(kfe("throwDeprecation"))throw new Error(t);kfe("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function kfe(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Ufe=ir((yMn,WYe)=>{"use strict";J();K();z();WYe.exports=fd;function zYe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){fMt(t,e)}}var EN;fd.WritableState=Rk;var F9t={deprecate:VYe()},KYe=Nfe(),vJ=(mh(),Zu(ky)).Buffer,Q9t=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function H9t(e){return vJ.from(e)}function G9t(e){return vJ.isBuffer(e)||e instanceof Q9t}var Lfe=Mfe(),q9t=Dfe(),V9t=q9t.getHighWaterMark,W6=V4().codes,J9t=W6.ERR_INVALID_ARG_TYPE,z9t=W6.ERR_METHOD_NOT_IMPLEMENTED,K9t=W6.ERR_MULTIPLE_CALLBACK,$9t=W6.ERR_STREAM_CANNOT_PIPE,Y9t=W6.ERR_STREAM_DESTROYED,W9t=W6.ERR_STREAM_NULL_VALUES,X9t=W6.ERR_STREAM_WRITE_AFTER_END,Z9t=W6.ERR_UNKNOWN_ENCODING,vN=Lfe.errorOrDestroy;Gl()(fd,KYe);function j9t(){}function Rk(e,t,r){EN=EN||J4(),e=e||{},typeof r!="boolean"&&(r=t instanceof EN),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=V9t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){aMt(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zYe(this)}Rk.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Rk.prototype,"buffer",{get:F9t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var EJ;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(EJ=Function.prototype[Symbol.hasInstance],Object.defineProperty(fd,Symbol.hasInstance,{value:function(t){return EJ.call(this,t)?!0:this!==fd?!1:t&&t._writableState instanceof Rk}})):EJ=function(t){return t instanceof this};function fd(e){EN=EN||J4();var t=this instanceof EN;if(!t&&!EJ.call(fd,this))return new fd(e);this._writableState=new Rk(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),KYe.call(this)}fd.prototype.pipe=function(){vN(this,new $9t)};function eMt(e,t){var r=new X9t;vN(e,r),me.nextTick(t,r)}function tMt(e,t,r,i){var n;return r===null?n=new W9t:typeof r!="string"&&!t.objectMode&&(n=new J9t("chunk",["string","Buffer"],r)),n?(vN(e,n),me.nextTick(i,n),!1):!0}fd.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&G9t(e);return o&&!vJ.isBuffer(e)&&(e=H9t(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=j9t),i.ending?eMt(this,r):(o||tMt(this,i,e,r))&&(i.pendingcb++,n=nMt(this,i,o,e,t,r)),n};fd.prototype.cork=function(){this._writableState.corked++};fd.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&$Ye(this,e))};fd.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Z9t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(fd.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function rMt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=vJ.from(t,r)),t}Object.defineProperty(fd.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function nMt(e,t,r,i,n,o){if(!r){var d=rMt(t,i,n);i!==d&&(r=!0,n="buffer",i=d)}var g=t.objectMode?1:i.length;t.length+=g;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var _=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},_?_.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Pfe(e,t,!1,g,i,n,o);return y}function Pfe(e,t,r,i,n,o,d){t.writelen=i,t.writecb=d,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Y9t("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function iMt(e,t,r,i,n){--t.pendingcb,r?(me.nextTick(n,i),me.nextTick(vk,e,t),e._writableState.errorEmitted=!0,vN(e,i)):(n(i),e._writableState.errorEmitted=!0,vN(e,i),vk(e,t))}function oMt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function aMt(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new K9t;if(oMt(r),t)iMt(e,r,i,t,n);else{var o=YYe(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&$Ye(e,r),i?me.nextTick(JYe,e,r,o,n):JYe(e,r,o,n)}}function JYe(e,t,r,i){r||sMt(e,t),t.pendingcb--,i(),vk(e,t)}function sMt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function $Ye(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var d=0,g=!0;r;)n[d]=r,r.isBuf||(g=!1),r=r.next,d+=1;n.allBuffers=g,Pfe(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new zYe(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,_=r.encoding,I=r.callback,N=t.objectMode?1:y.length;if(Pfe(e,t,!1,N,y,_,I),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}fd.prototype._write=function(e,t,r){r(new z9t("_write()"))};fd.prototype._writev=null;fd.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||dMt(this,i,r),this};Object.defineProperty(fd.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function YYe(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function cMt(e,t){e._final(function(r){t.pendingcb--,r&&vN(e,r),t.prefinished=!0,e.emit("prefinish"),vk(e,t)})}function uMt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,me.nextTick(cMt,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function vk(e,t){var r=YYe(t);if(r&&(uMt(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function dMt(e,t,r){t.ending=!0,vk(e,t),r&&(t.finished?me.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function fMt(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(fd.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fd.prototype.destroy=Lfe.destroy;fd.prototype._undestroy=Lfe.undestroy;fd.prototype._destroy=function(e,t){t(e)}});var J4=ir((RMn,ZYe)=>{"use strict";J();K();z();var lMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ZYe.exports=mb;var XYe=Hfe(),Qfe=Ufe();Gl()(mb,XYe);for(Ffe=lMt(Qfe.prototype),RJ=0;RJ<Ffe.length;RJ++)SJ=Ffe[RJ],mb.prototype[SJ]||(mb.prototype[SJ]=Qfe.prototype[SJ]);var Ffe,SJ,RJ;function mb(e){if(!(this instanceof mb))return new mb(e);XYe.call(this,e),Qfe.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",hMt)))}Object.defineProperty(mb.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(mb.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(mb.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hMt(){this._writableState.ended||me.nextTick(AMt,this)}function AMt(e){e.end()}Object.defineProperty(mb.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var tWe=ir((Gfe,eWe)=>{"use strict";J();K();z();var IJ=(mh(),Zu(ky)),yb=IJ.Buffer;function jYe(e,t){for(var r in e)t[r]=e[r]}yb.from&&yb.alloc&&yb.allocUnsafe&&yb.allocUnsafeSlow?eWe.exports=IJ:(jYe(IJ,Gfe),Gfe.Buffer=z4);function z4(e,t,r){return yb(e,t,r)}z4.prototype=Object.create(yb.prototype);jYe(yb,z4);z4.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return yb(e,t,r)};z4.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=yb(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};z4.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return yb(e)};z4.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return IJ.SlowBuffer(e)}});var Jfe=ir(nWe=>{"use strict";J();K();z();var Vfe=tWe().Buffer,rWe=Vfe.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function pMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function gMt(e){var t=pMt(e);if(typeof t!="string"&&(Vfe.isEncoding===rWe||!rWe(e)))throw new Error("Unknown encoding: "+e);return t||e}nWe.StringDecoder=Sk;function Sk(e){this.encoding=gMt(e);var t;switch(this.encoding){case"utf16le":this.text=vMt,this.end=RMt,t=4;break;case"utf8":this.fillLast=yMt,t=4;break;case"base64":this.text=SMt,this.end=IMt,t=3;break;default:this.write=CMt,this.end=wMt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Vfe.allocUnsafe(t)}Sk.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Sk.prototype.end=EMt;Sk.prototype.text=bMt;Sk.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function qfe(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function _Mt(e,t,r){var i=t.length-1;if(i<r)return 0;var n=qfe(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=qfe(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=qfe(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function mMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function yMt(e){var t=this.lastTotal-this.lastNeed,r=mMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function bMt(e,t){var r=_Mt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function EMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function vMt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function RMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function SMt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function IMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function CMt(e){return e.toString(this.encoding)}function wMt(e){return e&&e.length?this.write(e):""}});var CJ=ir((DMn,aWe)=>{"use strict";J();K();z();var iWe=V4().codes.ERR_STREAM_PREMATURE_CLOSE;function OMt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function NMt(){}function xMt(e){return e.setHeader&&typeof e.abort=="function"}function oWe(e,t,r){if(typeof t=="function")return oWe(e,null,t);t||(t={}),r=OMt(r||NMt);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||g()},d=e._writableState&&e._writableState.finished,g=function(){n=!1,d=!0,i||r.call(e)},y=e._readableState&&e._readableState.endEmitted,_=function(){i=!1,y=!0,n||r.call(e)},I=function(D){r.call(e,D)},N=function(){var D;if(i&&!y)return(!e._readableState||!e._readableState.ended)&&(D=new iWe),r.call(e,D);if(n&&!d)return(!e._writableState||!e._writableState.ended)&&(D=new iWe),r.call(e,D)},T=function(){e.req.on("finish",g)};return xMt(e)?(e.on("complete",g),e.on("abort",N),e.req?T():e.on("request",T)):n&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",_),e.on("finish",g),t.error!==!1&&e.on("error",I),e.on("close",N),function(){e.removeListener("complete",g),e.removeListener("abort",N),e.removeListener("request",T),e.req&&e.req.removeListener("finish",g),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",g),e.removeListener("end",_),e.removeListener("error",I),e.removeListener("close",N)}}aWe.exports=oWe});var cWe=ir((UMn,sWe)=>{"use strict";J();K();z();var wJ;function X6(e,t,r){return t=TMt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TMt(e){var t=BMt(e,"string");return typeof t=="symbol"?t:String(t)}function BMt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MMt=CJ(),Z6=Symbol("lastResolve"),K4=Symbol("lastReject"),Ik=Symbol("error"),OJ=Symbol("ended"),$4=Symbol("lastPromise"),zfe=Symbol("handlePromise"),Y4=Symbol("stream");function j6(e,t){return{value:e,done:t}}function DMt(e){var t=e[Z6];if(t!==null){var r=e[Y4].read();r!==null&&(e[$4]=null,e[Z6]=null,e[K4]=null,t(j6(r,!1)))}}function kMt(e){me.nextTick(DMt,e)}function PMt(e,t){return function(r,i){e.then(function(){if(t[OJ]){r(j6(void 0,!0));return}t[zfe](r,i)},i)}}var LMt=Object.getPrototypeOf(function(){}),UMt=Object.setPrototypeOf((wJ={get stream(){return this[Y4]},next:function(){var t=this,r=this[Ik];if(r!==null)return Promise.reject(r);if(this[OJ])return Promise.resolve(j6(void 0,!0));if(this[Y4].destroyed)return new Promise(function(d,g){me.nextTick(function(){t[Ik]?g(t[Ik]):d(j6(void 0,!0))})});var i=this[$4],n;if(i)n=new Promise(PMt(i,this));else{var o=this[Y4].read();if(o!==null)return Promise.resolve(j6(o,!1));n=new Promise(this[zfe])}return this[$4]=n,n}},X6(wJ,Symbol.asyncIterator,function(){return this}),X6(wJ,"return",function(){var t=this;return new Promise(function(r,i){t[Y4].destroy(null,function(n){if(n){i(n);return}r(j6(void 0,!0))})})}),wJ),LMt),FMt=function(t){var r,i=Object.create(UMt,(r={},X6(r,Y4,{value:t,writable:!0}),X6(r,Z6,{value:null,writable:!0}),X6(r,K4,{value:null,writable:!0}),X6(r,Ik,{value:null,writable:!0}),X6(r,OJ,{value:t._readableState.endEmitted,writable:!0}),X6(r,zfe,{value:function(o,d){var g=i[Y4].read();g?(i[$4]=null,i[Z6]=null,i[K4]=null,o(j6(g,!1))):(i[Z6]=o,i[K4]=d)},writable:!0}),r));return i[$4]=null,MMt(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[K4];o!==null&&(i[$4]=null,i[Z6]=null,i[K4]=null,o(n)),i[Ik]=n;return}var d=i[Z6];d!==null&&(i[$4]=null,i[Z6]=null,i[K4]=null,d(j6(void 0,!0))),i[OJ]=!0}),t.on("readable",kMt.bind(null,i)),i};sWe.exports=FMt});var dWe=ir((GMn,uWe)=>{"use strict";J();K();z();uWe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Hfe=ir((KMn,bWe)=>{"use strict";J();K();z();bWe.exports=ec;var RN;ec.ReadableState=AWe;var zMn=(bN(),Zu(Ofe)).EventEmitter,hWe=function(t,r){return t.listeners(r).length},wk=Nfe(),NJ=(mh(),Zu(ky)).Buffer,QMt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function HMt(e){return NJ.from(e)}function GMt(e){return NJ.isBuffer(e)||e instanceof QMt}var Kfe=(Ek(),Zu(xfe)),ds;Kfe&&Kfe.debuglog?ds=Kfe.debuglog("stream"):ds=function(){};var qMt=PYe(),ele=Mfe(),VMt=Dfe(),JMt=VMt.getHighWaterMark,xJ=V4().codes,zMt=xJ.ERR_INVALID_ARG_TYPE,KMt=xJ.ERR_STREAM_PUSH_AFTER_EOF,$Mt=xJ.ERR_METHOD_NOT_IMPLEMENTED,YMt=xJ.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,SN,$fe,Yfe;Gl()(ec,wk);var Ck=ele.errorOrDestroy,Wfe=["error","close","destroy","pause","resume"];function WMt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function AWe(e,t,r){RN=RN||J4(),e=e||{},typeof r!="boolean"&&(r=t instanceof RN),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=JMt(this,e,"readableHighWaterMark",r),this.buffer=new qMt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(SN||(SN=Jfe().StringDecoder),this.decoder=new SN(e.encoding),this.encoding=e.encoding)}function ec(e){if(RN=RN||J4(),!(this instanceof ec))return new ec(e);var t=this instanceof RN;this._readableState=new AWe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),wk.call(this)}Object.defineProperty(ec.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ec.prototype.destroy=ele.destroy;ec.prototype._undestroy=ele.undestroy;ec.prototype._destroy=function(e,t){t(e)};ec.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=NJ.from(e,t),t=""),i=!0),pWe(this,e,t,!1,i)};ec.prototype.unshift=function(e){return pWe(this,e,null,!0,!1)};function pWe(e,t,r,i,n){ds("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,jMt(e,o);else{var d;if(n||(d=XMt(o,t)),d)Ck(e,d);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==NJ.prototype&&(t=HMt(t)),i)o.endEmitted?Ck(e,new YMt):Xfe(e,o,t,!0);else if(o.ended)Ck(e,new KMt);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?Xfe(e,o,t,!1):jfe(e,o)):Xfe(e,o,t,!1)}else i||(o.reading=!1,jfe(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Xfe(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&TJ(e)),jfe(e,t)}function XMt(e,t){var r;return!GMt(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new zMt("chunk",["string","Buffer","Uint8Array"],t)),r}ec.prototype.isPaused=function(){return this._readableState.flowing===!1};ec.prototype.setEncoding=function(e){SN||(SN=Jfe().StringDecoder);var t=new SN(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var fWe=1073741824;function ZMt(e){return e>=fWe?e=fWe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function lWe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=ZMt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ec.prototype.read=function(e){ds("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ds("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Zfe(this):TJ(this),null;if(e=lWe(e,t),e===0&&t.ended)return t.length===0&&Zfe(this),null;var i=t.needReadable;ds("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,ds("length less than watermark",i)),t.ended||t.reading?(i=!1,ds("reading or ended",i)):i&&(ds("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=lWe(r,t)));var n;return e>0?n=mWe(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Zfe(this)),n!==null&&this.emit("data",n),n};function jMt(e,t){if(ds("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?TJ(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,gWe(e)))}}function TJ(e){var t=e._readableState;ds("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ds("emitReadable",t.flowing),t.emittedReadable=!0,me.nextTick(gWe,e))}function gWe(e){var t=e._readableState;ds("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,tle(e)}function jfe(e,t){t.readingMore||(t.readingMore=!0,me.nextTick(eDt,e,t))}function eDt(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(ds("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ec.prototype._read=function(e){Ck(this,new $Mt("_read()"))};ec.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,ds("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==me.stdout&&e!==me.stderr,o=n?g:P;i.endEmitted?me.nextTick(o):r.once("end",o),e.on("unpipe",d);function d(G,q){ds("onunpipe"),G===r&&q&&q.hasUnpiped===!1&&(q.hasUnpiped=!0,I())}function g(){ds("onend"),e.end()}var y=tDt(r);e.on("drain",y);var _=!1;function I(){ds("cleanup"),e.removeListener("close",M),e.removeListener("finish",D),e.removeListener("drain",y),e.removeListener("error",T),e.removeListener("unpipe",d),r.removeListener("end",g),r.removeListener("end",P),r.removeListener("data",N),_=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}r.on("data",N);function N(G){ds("ondata");var q=e.write(G);ds("dest.write",q),q===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&yWe(i.pipes,e)!==-1)&&!_&&(ds("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function T(G){ds("onerror",G),P(),e.removeListener("error",T),hWe(e,"error")===0&&Ck(e,G)}WMt(e,"error",T);function M(){e.removeListener("finish",D),P()}e.once("close",M);function D(){ds("onfinish"),e.removeListener("close",M),P()}e.once("finish",D);function P(){ds("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(ds("pipe resume"),r.resume()),e};function tDt(e){return function(){var r=e._readableState;ds("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&hWe(e,"data")&&(r.flowing=!0,tle(e))}}ec.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var d=yWe(t.pipes,e);return d===-1?this:(t.pipes.splice(d,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ec.prototype.on=function(e,t){var r=wk.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,ds("on readable",i.length,i.reading),i.length?TJ(this):i.reading||me.nextTick(rDt,this)),r};ec.prototype.addListener=ec.prototype.on;ec.prototype.removeListener=function(e,t){var r=wk.prototype.removeListener.call(this,e,t);return e==="readable"&&me.nextTick(_We,this),r};ec.prototype.removeAllListeners=function(e){var t=wk.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&me.nextTick(_We,this),t};function _We(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function rDt(e){ds("readable nexttick read 0"),e.read(0)}ec.prototype.resume=function(){var e=this._readableState;return e.flowing||(ds("resume"),e.flowing=!e.readableListening,nDt(this,e)),e.paused=!1,this};function nDt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,me.nextTick(iDt,e,t))}function iDt(e,t){ds("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),tle(e),t.flowing&&!t.reading&&e.read(0)}ec.prototype.pause=function(){return ds("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ds("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function tle(e){var t=e._readableState;for(ds("flow",t.flowing);t.flowing&&e.read()!==null;);}ec.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(ds("wrapped end"),r.decoder&&!r.ended){var d=r.decoder.end();d&&d.length&&t.push(d)}t.push(null)}),e.on("data",function(d){if(ds("wrapped data"),r.decoder&&(d=r.decoder.write(d)),!(r.objectMode&&d==null)&&!(!r.objectMode&&(!d||!d.length))){var g=t.push(d);g||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(g){return function(){return e[g].apply(e,arguments)}})(n));for(var o=0;o<Wfe.length;o++)e.on(Wfe[o],this.emit.bind(this,Wfe[o]));return this._read=function(d){ds("wrapped _read",d),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(ec.prototype[Symbol.asyncIterator]=function(){return $fe===void 0&&($fe=cWe()),$fe(this)});Object.defineProperty(ec.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ec.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ec.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ec._fromList=mWe;Object.defineProperty(ec.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function mWe(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Zfe(e){var t=e._readableState;ds("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,me.nextTick(oDt,t,e))}function oDt(e,t){if(ds("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(ec.from=function(e,t){return Yfe===void 0&&(Yfe=dWe()),Yfe(ec,e,t)});function yWe(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var rle=ir((XMn,vWe)=>{"use strict";J();K();z();vWe.exports=eR;var BJ=V4().codes,aDt=BJ.ERR_METHOD_NOT_IMPLEMENTED,sDt=BJ.ERR_MULTIPLE_CALLBACK,cDt=BJ.ERR_TRANSFORM_ALREADY_TRANSFORMING,uDt=BJ.ERR_TRANSFORM_WITH_LENGTH_0,MJ=J4();Gl()(eR,MJ);function dDt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new sDt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function eR(e){if(!(this instanceof eR))return new eR(e);MJ.call(this,e),this._transformState={afterTransform:dDt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",fDt)}function fDt(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){EWe(e,t,r)}):EWe(this,null,null)}eR.prototype.push=function(e,t){return this._transformState.needTransform=!1,MJ.prototype.push.call(this,e,t)};eR.prototype._transform=function(e,t,r){r(new aDt("_transform()"))};eR.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};eR.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};eR.prototype._destroy=function(e,t){MJ.prototype._destroy.call(this,e,function(r){t(r)})};function EWe(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new uDt;if(e._transformState.transforming)throw new cDt;return e.push(null)}});var IWe=ir((tDn,SWe)=>{"use strict";J();K();z();SWe.exports=Ok;var RWe=rle();Gl()(Ok,RWe);function Ok(e){if(!(this instanceof Ok))return new Ok(e);RWe.call(this,e)}Ok.prototype._transform=function(e,t,r){r(null,e)}});var xWe=ir((oDn,NWe)=>{"use strict";J();K();z();var nle;function lDt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var OWe=V4().codes,hDt=OWe.ERR_MISSING_ARGS,ADt=OWe.ERR_STREAM_DESTROYED;function CWe(e){if(e)throw e}function pDt(e){return e.setHeader&&typeof e.abort=="function"}function gDt(e,t,r,i){i=lDt(i);var n=!1;e.on("close",function(){n=!0}),nle===void 0&&(nle=CJ()),nle(e,{readable:t,writable:r},function(d){if(d)return i(d);n=!0,i()});var o=!1;return function(d){if(!n&&!o){if(o=!0,pDt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(d||new ADt("pipe"))}}}function wWe(e){e()}function _Dt(e,t){return e.pipe(t)}function mDt(e){return!e.length||typeof e[e.length-1]!="function"?CWe:e.pop()}function yDt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=mDt(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new hDt("streams");var n,o=t.map(function(d,g){var y=g<t.length-1,_=g>0;return gDt(d,y,_,function(I){n||(n=I),I&&o.forEach(wWe),!y&&(o.forEach(wWe),i(n))})});return t.reduce(_Dt)}NWe.exports=yDt});var ile=ir((l_,TWe)=>{"use strict";J();K();z();l_=TWe.exports=Hfe();l_.Stream=l_;l_.Readable=l_;l_.Writable=Ufe();l_.Duplex=J4();l_.Transform=rle();l_.PassThrough=IWe();l_.finished=CJ();l_.pipeline=xWe()});var DWe=ir((lDn,MWe)=>{"use strict";J();K();z();var{Transform:bDt}=ile();MWe.exports=e=>class BWe extends bDt{constructor(r,i,n,o,d){super(d),this._rate=r,this._capacity=i,this._delimitedSuffix=n,this._hashBitLength=o,this._options=d,this._state=new e,this._state.initialize(r,i),this._finalized=!1}_transform(r,i,n){let o=null;try{this.update(r,i)}catch(d){o=d}n(o)}_flush(r){let i=null;try{this.push(this.digest())}catch(n){i=n}r(i)}update(r,i){if(!fe.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return fe.isBuffer(r)||(r=fe.from(r,i)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let i=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(i=i.toString(r)),this._resetState(),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new BWe(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var LWe=ir((gDn,PWe)=>{"use strict";J();K();z();var{Transform:EDt}=ile();PWe.exports=e=>class kWe extends EDt{constructor(r,i,n,o){super(o),this._rate=r,this._capacity=i,this._delimitedSuffix=n,this._options=o,this._state=new e,this._state.initialize(r,i),this._finalized=!1}_transform(r,i,n){let o=null;try{this.update(r,i)}catch(d){o=d}n(o)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,i){if(!fe.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return fe.isBuffer(r)||(r=fe.from(r,i)),this._state.absorb(r),this}squeeze(r,i){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(r);return i!==void 0&&(n=n.toString(i)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new kWe(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var FWe=ir((bDn,UWe)=>{"use strict";J();K();z();var vDt=DWe(),RDt=LWe();UWe.exports=function(e){let t=vDt(e),r=RDt(e);return function(i,n){switch(typeof i=="string"?i.toLowerCase():i){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+i)}}}});var GWe=ir(HWe=>{"use strict";J();K();z();var QWe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];HWe.p1600=function(e){for(let t=0;t<24;++t){let r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],n=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],d=e[4]^e[14]^e[24]^e[34]^e[44],g=e[5]^e[15]^e[25]^e[35]^e[45],y=e[6]^e[16]^e[26]^e[36]^e[46],_=e[7]^e[17]^e[27]^e[37]^e[47],I=e[8]^e[18]^e[28]^e[38]^e[48],N=e[9]^e[19]^e[29]^e[39]^e[49],T=I^(n<<1|o>>>31),M=N^(o<<1|n>>>31),D=e[0]^T,P=e[1]^M,G=e[10]^T,q=e[11]^M,Y=e[20]^T,ne=e[21]^M,ce=e[30]^T,le=e[31]^M,pe=e[40]^T,ae=e[41]^M;T=r^(d<<1|g>>>31),M=i^(g<<1|d>>>31);let W=e[2]^T,se=e[3]^M,O=e[12]^T,s=e[13]^M,l=e[22]^T,A=e[23]^M,m=e[32]^T,E=e[33]^M,w=e[42]^T,x=e[43]^M;T=n^(y<<1|_>>>31),M=o^(_<<1|y>>>31);let R=e[4]^T,u=e[5]^M,C=e[14]^T,U=e[15]^M,F=e[24]^T,X=e[25]^M,Ae=e[34]^T,he=e[35]^M,$e=e[44]^T,Ge=e[45]^M;T=d^(I<<1|N>>>31),M=g^(N<<1|I>>>31);let Re=e[6]^T,Se=e[7]^M,ct=e[16]^T,ze=e[17]^M,te=e[26]^T,Ue=e[27]^M,oe=e[36]^T,ge=e[37]^M,Le=e[46]^T,V=e[47]^M;T=y^(r<<1|i>>>31),M=_^(i<<1|r>>>31);let Qe=e[8]^T,_t=e[9]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,e[13]=Lr^~zt&dr,e[22]=jt^~Vt&yt,e[23]=ar^~br&ot,e[32]=Ze^~pr&et,e[33]=$t^~mn&ue,e[42]=Je^~Wr&Hr,e[43]=Rt^~ln&St,e[4]=ht^~Rr<,e[5]=Xe^~Dr>,e[14]=at^~Xt&je,e[15]=zt^~dr&be,e[24]=Vt^~yt&Yt,e[25]=br^~ot&qr,e[34]=pr^~et&Pr,e[35]=mn^~ue&k,e[44]=Wr^~Hr&wn,e[45]=ln^~St&Qt,e[6]=Rr^~lt&_e,e[7]=Dr^~gt&Be,e[16]=Xt^~je&qe,e[17]=dr^~be&De,e[26]=yt^~Yt&tr,e[27]=ot^~qr&hr,e[36]=et^~Pr&a,e[37]=ue^~k&S,e[46]=Hr^~wn&fr,e[47]=St^~Qt&In,e[8]=lt^~_e&Cn,e[9]=gt^~Be&er,e[18]=je^~qe&sn,e[19]=be^~De&Lr,e[28]=Yt^~tr&jt,e[29]=qr^~hr&ar,e[38]=Pr^~a&Ze,e[39]=k^~S&$t,e[48]=wn^~fr&Je,e[49]=Qt^~In&Rt,e[0]^=QWe[t*2],e[1]^=QWe[t*2+1]}}});var VWe=ir((ODn,qWe)=>{"use strict";J();K();z();var DJ=GWe();function IN(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}IN.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};IN.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(DJ.p1600(this.state),this.count=0)};IN.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&DJ.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),DJ.p1600(this.state),this.count=0,this.squeezing=!0};IN.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=fe.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(DJ.p1600(this.state),this.count=0);return t};IN.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};qWe.exports=IN});var zWe=ir((BDn,JWe)=>{"use strict";J();K();z();JWe.exports=FWe()(VWe())});function xDt(){if(oXe)return Ale;oXe=!0,Ale=r;var e=xc.EventEmitter,t=La();t(r,e),r.Readable=HM(),r.Writable=QM(),r.Duplex=Iv(),r.Transform=GM(),r.PassThrough=mG(),r.finished=fO(),r.pipeline=yG(),r.Stream=r;function r(){e.call(this||ple)}return r.prototype.pipe=function(i,n){var o=this||ple;function d(M){i.writable&&i.write(M)===!1&&o.pause&&o.pause()}o.on("data",d);function g(){o.readable&&o.resume&&o.resume()}i.on("drain",g),!i._isStdio&&(!n||n.end!==!1)&&(o.on("end",_),o.on("close",I));var y=!1;function _(){y||(y=!0,i.end())}function I(){y||(y=!0,typeof i.destroy=="function"&&i.destroy())}function N(M){if(T(),e.listenerCount(this||ple,"error")===0)throw M}o.on("error",N),i.on("error",N);function T(){o.removeListener("data",d),i.removeListener("drain",g),o.removeListener("end",_),o.removeListener("close",I),o.removeListener("error",N),i.removeListener("error",N),o.removeListener("end",T),o.removeListener("close",T),i.removeListener("close",T)}return o.on("end",T),o.on("close",T),i.on("close",T),i.emit("pipe",o),i},Ale}var Ale,oXe,ple,Tp,qJ=tn(()=>{"use strict";J();K();z();bN();lO();YS();Ale={},oXe=!1,ple=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Tp=xDt()});var eI,$Un,YUn,aXe,VJ,WUn,XUn,ZUn,jUn,qk=tn(()=>{"use strict";J();K();z();qJ();qJ();Ek();bN();YS();lO();sO();vv();Ev();XS();UM();eI=Tp.Readable;eI.wrap=function(e,t){return t=Object.assign({objectMode:e.readableObjectMode!=null||e.objectMode!=null||!0},t),t.destroy=function(r,i){e.destroy(r),i(r)},new eI(t).wrap(e)};$Un=Tp.Writable,YUn=Tp.Duplex,aXe=Tp.Transform,VJ=Tp.PassThrough,WUn=Tp.finished,XUn=Tp.pipeline,ZUn=Tp.Stream,jUn={finished:mJ(Tp.finished),pipeline:mJ(Tp.pipeline)}});var mXe=ir(NN=>{"use strict";J();K();z();Object.defineProperty(NN,"__esModule",{value:!0});NN.fromAscii=NN.toAscii=void 0;function LDt(e){return Uint8Array.from((r=>r.split("").map(i=>{let n=i.charCodeAt(0);if(n<32||n>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+n);return n}))(e))}NN.toAscii=LDt;function UDt(e){return(r=>r.map(i=>{if(i<32||i>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+i);return String.fromCharCode(i)}))(Array.from(e)).join("")}NN.fromAscii=UDt});var bXe=ir(__=>{"use strict";J();K();z();var FDt=__&&__.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),QDt=__&&__.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),HDt=__&&__.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&FDt(t,e,r);return QDt(t,e),t};Object.defineProperty(__,"__esModule",{value:!0});__.fromBase64=__.toBase64=void 0;var yXe=HDt(mV());function GDt(e){return yXe.fromByteArray(e)}__.toBase64=GDt;function qDt(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return yXe.toByteArray(e)}__.fromBase64=qDt});var SXe=ir((jFn,RXe)=>{"use strict";J();K();z();var WJ="qpzry9x8gf2tvdw0s3jn54khce6mua7l",Ele={};for(Kk=0;Kk<WJ.length;Kk++){if(YJ=WJ.charAt(Kk),Ele[YJ]!==void 0)throw new TypeError(YJ+" is ambiguous");Ele[YJ]=Kk}var YJ,Kk;function xN(e){var t=e>>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function EXe(e){for(var t=1,r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<33||i>126)return"Invalid prefix ("+e+")";t=xN(t)^i>>5}for(t=xN(t),r=0;r<e.length;++r){var n=e.charCodeAt(r);t=xN(t)^n&31}return t}function VDt(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");e=e.toLowerCase();var i=EXe(e);if(typeof i=="string")throw new Error(i);for(var n=e+"1",o=0;o<t.length;++o){var d=t[o];if(d>>5!==0)throw new Error("Non 5-bit word");i=xN(i)^d,n+=WJ.charAt(d)}for(o=0;o<6;++o)i=xN(i);for(i^=1,o=0;o<6;++o){var g=i>>(5-o)*5&31;n+=WJ.charAt(g)}return n}function vXe(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),i=e.toUpperCase();if(e!==r&&e!==i)return"Mixed-case string "+e;e=r;var n=e.lastIndexOf("1");if(n===-1)return"No separator character for "+e;if(n===0)return"Missing prefix for "+e;var o=e.slice(0,n),d=e.slice(n+1);if(d.length<6)return"Data too short";var g=EXe(o);if(typeof g=="string")return g;for(var y=[],_=0;_<d.length;++_){var I=d.charAt(_),N=Ele[I];if(N===void 0)return"Unknown character "+I;g=xN(g)^N,!(_+6>=d.length)&&y.push(N)}return g!==1?"Invalid checksum for "+e:{prefix:o,words:y}}function JDt(){var e=vXe.apply(null,arguments);if(typeof e=="object")return e}function zDt(e){var t=vXe.apply(null,arguments);if(typeof t=="object")return t;throw new Error(t)}function XJ(e,t,r,i){for(var n=0,o=0,d=(1<<r)-1,g=[],y=0;y<e.length;++y)for(n=n<<t|e[y],o+=t;o>=r;)o-=r,g.push(n>>o&d);if(i)o>0&&g.push(n<<r-o&d);else{if(o>=t)return"Excess padding";if(n<<r-o&d)return"Non-zero padding"}return g}function KDt(e){var t=XJ(e,8,5,!0);if(Array.isArray(t))return t}function $Dt(e){var t=XJ(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)}function YDt(e){var t=XJ(e,5,8,!1);if(Array.isArray(t))return t}function WDt(e){var t=XJ(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}RXe.exports={decodeUnsafe:JDt,decode:zDt,encode:VDt,toWordsUnsafe:KDt,toWords:$Dt,fromWordsUnsafe:YDt,fromWords:WDt}});var wXe=ir(Mp=>{"use strict";J();K();z();var XDt=Mp&&Mp.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),ZDt=Mp&&Mp.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),jDt=Mp&&Mp.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&XDt(t,e,r);return ZDt(t,e),t};Object.defineProperty(Mp,"__esModule",{value:!0});Mp.normalizeBech32=Mp.fromBech32=Mp.toBech32=void 0;var ZJ=jDt(SXe());function IXe(e,t,r){return ZJ.encode(e,ZJ.toWords(t),r)}Mp.toBech32=IXe;function CXe(e,t=1/0){let r=ZJ.decode(e,t);return{prefix:r.prefix,data:new Uint8Array(ZJ.fromWords(r.words))}}Mp.fromBech32=CXe;function ekt(e){let{prefix:t,data:r}=CXe(e);return IXe(t,r)}Mp.normalizeBech32=ekt});var OXe=ir(TN=>{"use strict";J();K();z();Object.defineProperty(TN,"__esModule",{value:!0});TN.fromHex=TN.toHex=void 0;function tkt(e){let t="";for(let r of e)t+=("0"+r.toString(16)).slice(-2);return t}TN.toHex=tkt;function rkt(e){if(e.length%2!==0)throw new Error("hex string length must be a multiple of 2");let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let i=2*r,n=e.slice(i,i+2);if(!n.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t[r]=parseInt(n,16)}return t}TN.fromHex=rkt});var NXe=ir(MN=>{"use strict";J();K();z();Object.defineProperty(MN,"__esModule",{value:!0});MN.toRfc3339=MN.fromRfc3339=void 0;var nkt=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function BN(e,t=2){return e.toString().padStart(t,"0")}function ikt(e){let t=nkt.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");let r=+t[1],i=+t[2],n=+t[3],o=+t[4],d=+t[5],g=+t[6],y=t[7]?Math.floor(+t[7]*1e3):0,_,I,N;t[8]==="Z"?(_=1,I=0,N=0):(_=t[8].substring(0,1)==="-"?-1:1,I=+t[8].substring(1,3),N=+t[8].substring(4,6));let T=_*(I*60+N)*60,M=new Date;return M.setUTCFullYear(r,i-1,n),M.setUTCHours(o,d,g,y),new Date(M.getTime()-T*1e3)}MN.fromRfc3339=ikt;function okt(e){let t=e.getUTCFullYear(),r=BN(e.getUTCMonth()+1),i=BN(e.getUTCDate()),n=BN(e.getUTCHours()),o=BN(e.getUTCMinutes()),d=BN(e.getUTCSeconds()),g=BN(e.getUTCMilliseconds(),3);return`${t}-${r}-${i}T${n}:${o}:${d}.${g}Z`}MN.toRfc3339=okt});var xXe=ir(DN=>{"use strict";J();K();z();Object.defineProperty(DN,"__esModule",{value:!0});DN.fromUtf8=DN.toUtf8=void 0;function akt(e){return new TextEncoder().encode(e)}DN.toUtf8=akt;function skt(e,t=!1){let r=!t;return new TextDecoder("utf-8",{fatal:r}).decode(e)}DN.fromUtf8=skt});var Ps=ir(cu=>{"use strict";J();K();z();Object.defineProperty(cu,"__esModule",{value:!0});cu.toUtf8=cu.fromUtf8=cu.toRfc3339=cu.fromRfc3339=cu.toHex=cu.fromHex=cu.toBech32=cu.normalizeBech32=cu.fromBech32=cu.toBase64=cu.fromBase64=cu.toAscii=cu.fromAscii=void 0;var TXe=mXe();Object.defineProperty(cu,"fromAscii",{enumerable:!0,get:function(){return TXe.fromAscii}});Object.defineProperty(cu,"toAscii",{enumerable:!0,get:function(){return TXe.toAscii}});var BXe=bXe();Object.defineProperty(cu,"fromBase64",{enumerable:!0,get:function(){return BXe.fromBase64}});Object.defineProperty(cu,"toBase64",{enumerable:!0,get:function(){return BXe.toBase64}});var vle=wXe();Object.defineProperty(cu,"fromBech32",{enumerable:!0,get:function(){return vle.fromBech32}});Object.defineProperty(cu,"normalizeBech32",{enumerable:!0,get:function(){return vle.normalizeBech32}});Object.defineProperty(cu,"toBech32",{enumerable:!0,get:function(){return vle.toBech32}});var MXe=OXe();Object.defineProperty(cu,"fromHex",{enumerable:!0,get:function(){return MXe.fromHex}});Object.defineProperty(cu,"toHex",{enumerable:!0,get:function(){return MXe.toHex}});var DXe=NXe();Object.defineProperty(cu,"fromRfc3339",{enumerable:!0,get:function(){return DXe.fromRfc3339}});Object.defineProperty(cu,"toRfc3339",{enumerable:!0,get:function(){return DXe.toRfc3339}});var kXe=xXe();Object.defineProperty(cu,"fromUtf8",{enumerable:!0,get:function(){return kXe.fromUtf8}});Object.defineProperty(cu,"toUtf8",{enumerable:!0,get:function(){return kXe.toUtf8}})});var PXe=ir(kN=>{"use strict";J();K();z();Object.defineProperty(kN,"__esModule",{value:!0});kN.arrayContentStartsWith=kN.arrayContentEquals=void 0;function ckt(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}kN.arrayContentEquals=ckt;function ukt(e,t){if(e.length<t.length)return!1;for(let r=0;r<t.length;++r)if(e[r]!==t[r])return!1;return!0}kN.arrayContentStartsWith=ukt});var LXe=ir(rI=>{"use strict";J();K();z();Object.defineProperty(rI,"__esModule",{value:!0});rI.assertDefinedAndNotNull=rI.assertDefined=rI.assert=void 0;function dkt(e,t){if(!e)throw new Error(t||"condition is not truthy")}rI.assert=dkt;function fkt(e,t){if(e===void 0)throw new Error(t??"value is undefined")}rI.assertDefined=fkt;function lkt(e,t){if(e==null)throw new Error(t??"value is undefined or null")}rI.assertDefinedAndNotNull=lkt});var UXe=ir(jJ=>{"use strict";J();K();z();Object.defineProperty(jJ,"__esModule",{value:!0});jJ.sleep=void 0;async function hkt(e){return new Promise(t=>setTimeout(t,e))}jJ.sleep=hkt});var QXe=ir(nI=>{"use strict";J();K();z();Object.defineProperty(nI,"__esModule",{value:!0});nI.isDefined=nI.isUint8Array=nI.isNonNullObject=void 0;function FXe(e){return typeof e=="object"&&e!==null}nI.isNonNullObject=FXe;function Akt(e){return!(!FXe(e)||Object.prototype.toString.call(e)!=="[object Uint8Array]"||typeof fe<"u"&&typeof fe.isBuffer<"u"&&fe.isBuffer(e))}nI.isUint8Array=Akt;function pkt(e){return e!==void 0}nI.isDefined=pkt});var Uf=ir(tf=>{"use strict";J();K();z();Object.defineProperty(tf,"__esModule",{value:!0});tf.isUint8Array=tf.isNonNullObject=tf.isDefined=tf.sleep=tf.assertDefinedAndNotNull=tf.assertDefined=tf.assert=tf.arrayContentStartsWith=tf.arrayContentEquals=void 0;var HXe=PXe();Object.defineProperty(tf,"arrayContentEquals",{enumerable:!0,get:function(){return HXe.arrayContentEquals}});Object.defineProperty(tf,"arrayContentStartsWith",{enumerable:!0,get:function(){return HXe.arrayContentStartsWith}});var Rle=LXe();Object.defineProperty(tf,"assert",{enumerable:!0,get:function(){return Rle.assert}});Object.defineProperty(tf,"assertDefined",{enumerable:!0,get:function(){return Rle.assertDefined}});Object.defineProperty(tf,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return Rle.assertDefinedAndNotNull}});var gkt=UXe();Object.defineProperty(tf,"sleep",{enumerable:!0,get:function(){return gkt.sleep}});var Sle=QXe();Object.defineProperty(tf,"isDefined",{enumerable:!0,get:function(){return Sle.isDefined}});Object.defineProperty(tf,"isNonNullObject",{enumerable:!0,get:function(){return Sle.isNonNullObject}});Object.defineProperty(tf,"isUint8Array",{enumerable:!0,get:function(){return Sle.isUint8Array}})});var GXe=ir(ez=>{"use strict";J();K();z();Object.defineProperty(ez,"__esModule",{value:!0});ez.crypto=void 0;ez.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var iC=ir(Lo=>{"use strict";J();K();z();Object.defineProperty(Lo,"__esModule",{value:!0});Lo.wrapXOFConstructorWithOpts=Lo.wrapConstructorWithOpts=Lo.wrapConstructor=Lo.Hash=Lo.nextTick=Lo.swap32IfBE=Lo.byteSwapIfBE=Lo.swap8IfBE=Lo.isLE=void 0;Lo.isBytes=VXe;Lo.anumber=Ile;Lo.abytes=LN;Lo.ahash=_kt;Lo.aexists=mkt;Lo.aoutput=ykt;Lo.u8=bkt;Lo.u32=Ekt;Lo.clean=vkt;Lo.createView=Rkt;Lo.rotr=Skt;Lo.rotl=Ikt;Lo.byteSwap=wle;Lo.byteSwap32=JXe;Lo.bytesToHex=wkt;Lo.hexToBytes=Okt;Lo.asyncLoop=xkt;Lo.utf8ToBytes=Ole;Lo.bytesToUtf8=Tkt;Lo.toBytes=tz;Lo.kdfInputToBytes=Bkt;Lo.concatBytes=Mkt;Lo.checkOpts=Dkt;Lo.createHasher=KXe;Lo.createOptHasher=$Xe;Lo.createXOFer=YXe;Lo.randomBytes=kkt;var PN=GXe();function VXe(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Ile(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function LN(e,...t){if(!VXe(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function _kt(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Ile(e.outputLen),Ile(e.blockLen)}function mkt(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ykt(e,t){LN(e);let r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function bkt(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function Ekt(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function vkt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Rkt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Skt(e,t){return e<<32-t|e>>>t}function Ikt(e,t){return e<<t|e>>>32-t>>>0}Lo.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function wle(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}Lo.swap8IfBE=Lo.isLE?e=>e:e=>wle(e);Lo.byteSwapIfBE=Lo.swap8IfBE;function JXe(e){for(let t=0;t<e.length;t++)e[t]=wle(e[t]);return e}Lo.swap32IfBE=Lo.isLE?e=>e:JXe;var zXe=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Ckt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function wkt(e){if(LN(e),zXe)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Ckt[e[r]];return t}var rR={_0:48,_9:57,A:65,F:70,a:97,f:102};function qXe(e){if(e>=rR._0&&e<=rR._9)return e-rR._0;if(e>=rR.A&&e<=rR.F)return e-(rR.A-10);if(e>=rR.a&&e<=rR.f)return e-(rR.a-10)}function Okt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(zXe)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let n=0,o=0;n<r;n++,o+=2){let d=qXe(e.charCodeAt(o)),g=qXe(e.charCodeAt(o+1));if(d===void 0||g===void 0){let y=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+o)}i[n]=d*16+g}return i}var Nkt=async()=>{};Lo.nextTick=Nkt;async function xkt(e,t,r){let i=Date.now();for(let n=0;n<e;n++){r(n);let o=Date.now()-i;o>=0&&o<t||(await(0,Lo.nextTick)(),i+=o)}}function Ole(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Tkt(e){return new TextDecoder().decode(e)}function tz(e){return typeof e=="string"&&(e=Ole(e)),LN(e),e}function Bkt(e){return typeof e=="string"&&(e=Ole(e)),LN(e),e}function Mkt(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];LN(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function Dkt(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}var Cle=class{};Lo.Hash=Cle;function KXe(e){let t=i=>e().update(tz(i)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function $Xe(e){let t=(i,n)=>e(n).update(tz(i)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=i=>e(i),t}function YXe(e){let t=(i,n)=>e(n).update(tz(i)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=i=>e(i),t}Lo.wrapConstructor=KXe;Lo.wrapConstructorWithOpts=$Xe;Lo.wrapXOFConstructorWithOpts=YXe;function kkt(e=32){if(PN.crypto&&typeof PN.crypto.getRandomValues=="function")return PN.crypto.getRandomValues(new Uint8Array(e));if(PN.crypto&&typeof PN.crypto.randomBytes=="function")return Uint8Array.from(PN.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}});var WXe=ir(aC=>{"use strict";J();K();z();Object.defineProperty(aC,"__esModule",{value:!0});aC.hmac=aC.HMAC=void 0;var oC=iC(),$k=class extends oC.Hash{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,(0,oC.ahash)(t);let i=(0,oC.toBytes)(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,o=new Uint8Array(n);o.set(i.length>n?t.create().update(i).digest():i);for(let d=0;d<o.length;d++)o[d]^=54;this.iHash.update(o),this.oHash=t.create();for(let d=0;d<o.length;d++)o[d]^=106;this.oHash.update(o),(0,oC.clean)(o)}update(t){return(0,oC.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,oC.aexists)(this),(0,oC.abytes)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:i,finished:n,destroyed:o,blockLen:d,outputLen:g}=this;return t=t,t.finished=n,t.destroyed=o,t.blockLen=d,t.outputLen=g,t.oHash=r._cloneInto(t.oHash),t.iHash=i._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};aC.HMAC=$k;var Pkt=(e,t,r)=>new $k(e,t).update(r).digest();aC.hmac=Pkt;aC.hmac.create=(e,t)=>new $k(e,t)});var jXe=ir(rz=>{"use strict";J();K();z();Object.defineProperty(rz,"__esModule",{value:!0});rz.pbkdf2=Ukt;rz.pbkdf2Async=Fkt;var Lkt=WXe(),Um=iC();function XXe(e,t,r,i){(0,Um.ahash)(e);let n=(0,Um.checkOpts)({dkLen:32,asyncTick:10},i),{c:o,dkLen:d,asyncTick:g}=n;if((0,Um.anumber)(o),(0,Um.anumber)(d),(0,Um.anumber)(g),o<1)throw new Error("iterations (c) should be >= 1");let y=(0,Um.kdfInputToBytes)(t),_=(0,Um.kdfInputToBytes)(r),I=new Uint8Array(d),N=Lkt.hmac.create(e,y),T=N._cloneInto().update(_);return{c:o,dkLen:d,asyncTick:g,DK:I,PRF:N,PRFSalt:T}}function ZXe(e,t,r,i,n){return e.destroy(),t.destroy(),i&&i.destroy(),(0,Um.clean)(n),r}function Ukt(e,t,r,i){let{c:n,dkLen:o,DK:d,PRF:g,PRFSalt:y}=XXe(e,t,r,i),_,I=new Uint8Array(4),N=(0,Um.createView)(I),T=new Uint8Array(g.outputLen);for(let M=1,D=0;D<o;M++,D+=g.outputLen){let P=d.subarray(D,D+g.outputLen);N.setInt32(0,M,!1),(_=y._cloneInto(_)).update(I).digestInto(T),P.set(T.subarray(0,P.length));for(let G=1;G<n;G++){g._cloneInto(_).update(T).digestInto(T);for(let q=0;q<P.length;q++)P[q]^=T[q]}}return ZXe(g,y,d,_,T)}async function Fkt(e,t,r,i){let{c:n,dkLen:o,asyncTick:d,DK:g,PRF:y,PRFSalt:_}=XXe(e,t,r,i),I,N=new Uint8Array(4),T=(0,Um.createView)(N),M=new Uint8Array(y.outputLen);for(let D=1,P=0;P<o;D++,P+=y.outputLen){let G=g.subarray(P,P+y.outputLen);T.setInt32(0,D,!1),(I=_._cloneInto(I)).update(N).digestInto(M),G.set(M.subarray(0,G.length)),await(0,Um.asyncLoop)(n-1,d,()=>{y._cloneInto(I).update(M).digestInto(M);for(let q=0;q<G.length;q++)G[q]^=M[q]})}return ZXe(y,_,g,I,M)}});var xle=ir(NA=>{"use strict";J();K();z();Object.defineProperty(NA,"__esModule",{value:!0});NA.SHA512_IV=NA.SHA384_IV=NA.SHA224_IV=NA.SHA256_IV=NA.HashMD=void 0;NA.setBigUint64=eZe;NA.Chi=Qkt;NA.Maj=Hkt;var vb=iC();function eZe(e,t,r,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,i);let n=BigInt(32),o=BigInt(4294967295),d=Number(r>>n&o),g=Number(r&o),y=i?4:0,_=i?0:4;e.setUint32(t+y,d,i),e.setUint32(t+_,g,i)}function Qkt(e,t,r){return e&t^~e&r}function Hkt(e,t,r){return e&t^e&r^t&r}var Nle=class extends vb.Hash{constructor(t,r,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=(0,vb.createView)(this.buffer)}update(t){(0,vb.aexists)(this),t=(0,vb.toBytes)(t),(0,vb.abytes)(t);let{view:r,buffer:i,blockLen:n}=this,o=t.length;for(let d=0;d<o;){let g=Math.min(n-this.pos,o-d);if(g===n){let y=(0,vb.createView)(t);for(;n<=o-d;d+=n)this.process(y,d);continue}i.set(t.subarray(d,d+g),this.pos),this.pos+=g,d+=g,this.pos===n&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,vb.aexists)(this),(0,vb.aoutput)(t,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:o}=this,{pos:d}=this;r[d++]=128,(0,vb.clean)(this.buffer.subarray(d)),this.padOffset>n-d&&(this.process(i,0),d=0);for(let N=d;N<n;N++)r[N]=0;eZe(i,n-8,BigInt(this.length*8),o),this.process(i,0);let g=(0,vb.createView)(t),y=this.outputLen;if(y%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let _=y/4,I=this.get();if(_>I.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<_;N++)g.setUint32(4*N,I[N],o)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let i=t.slice(0,r);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:r,buffer:i,length:n,finished:o,destroyed:d,pos:g}=this;return t.destroyed=d,t.finished=o,t.length=n,t.pos=g,n%r&&t.buffer.set(i),t}clone(){return this._cloneInto()}};NA.HashMD=Nle;NA.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);NA.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);NA.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]);NA.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var Mle=ir(pa=>{"use strict";J();K();z();Object.defineProperty(pa,"__esModule",{value:!0});pa.toBig=pa.shrSL=pa.shrSH=pa.rotrSL=pa.rotrSH=pa.rotrBL=pa.rotrBH=pa.rotr32L=pa.rotr32H=pa.rotlSL=pa.rotlSH=pa.rotlBL=pa.rotlBH=pa.add5L=pa.add5H=pa.add4L=pa.add4H=pa.add3L=pa.add3H=void 0;pa.add=pZe;pa.fromBig=Ble;pa.split=tZe;var nz=BigInt(2**32-1),Tle=BigInt(32);function Ble(e,t=!1){return t?{h:Number(e&nz),l:Number(e>>Tle&nz)}:{h:Number(e>>Tle&nz)|0,l:Number(e&nz)|0}}function tZe(e,t=!1){let r=e.length,i=new Uint32Array(r),n=new Uint32Array(r);for(let o=0;o<r;o++){let{h:d,l:g}=Ble(e[o],t);[i[o],n[o]]=[d,g]}return[i,n]}var rZe=(e,t)=>BigInt(e>>>0)<<Tle|BigInt(t>>>0);pa.toBig=rZe;var nZe=(e,t,r)=>e>>>r;pa.shrSH=nZe;var iZe=(e,t,r)=>e<<32-r|t>>>r;pa.shrSL=iZe;var oZe=(e,t,r)=>e>>>r|t<<32-r;pa.rotrSH=oZe;var aZe=(e,t,r)=>e<<32-r|t>>>r;pa.rotrSL=aZe;var sZe=(e,t,r)=>e<<64-r|t>>>r-32;pa.rotrBH=sZe;var cZe=(e,t,r)=>e>>>r-32|t<<64-r;pa.rotrBL=cZe;var uZe=(e,t)=>t;pa.rotr32H=uZe;var dZe=(e,t)=>e;pa.rotr32L=dZe;var fZe=(e,t,r)=>e<<r|t>>>32-r;pa.rotlSH=fZe;var lZe=(e,t,r)=>t<<r|e>>>32-r;pa.rotlSL=lZe;var hZe=(e,t,r)=>t<<r-32|e>>>64-r;pa.rotlBH=hZe;var AZe=(e,t,r)=>e<<r-32|t>>>64-r;pa.rotlBL=AZe;function pZe(e,t,r,i){let n=(t>>>0)+(i>>>0);return{h:e+r+(n/2**32|0)|0,l:n|0}}var gZe=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);pa.add3L=gZe;var _Ze=(e,t,r,i)=>t+r+i+(e/2**32|0)|0;pa.add3H=_Ze;var mZe=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0);pa.add4L=mZe;var yZe=(e,t,r,i,n)=>t+r+i+n+(e/2**32|0)|0;pa.add4H=yZe;var bZe=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0);pa.add5L=bZe;var EZe=(e,t,r,i,n,o)=>t+r+i+n+o+(e/2**32|0)|0;pa.add5H=EZe;var Gkt={fromBig:Ble,split:tZe,toBig:rZe,shrSH:nZe,shrSL:iZe,rotrSH:oZe,rotrSL:aZe,rotrBH:sZe,rotrBL:cZe,rotr32H:uZe,rotr32L:dZe,rotlSH:fZe,rotlSL:lZe,rotlBH:hZe,rotlBL:AZe,add:pZe,add3L:gZe,add3H:_Ze,add4L:mZe,add4H:yZe,add5H:EZe,add5L:bZe};pa.default=Gkt});var Dle=ir(Ju=>{"use strict";J();K();z();Object.defineProperty(Ju,"__esModule",{value:!0});Ju.sha512_224=Ju.sha512_256=Ju.sha384=Ju.sha512=Ju.sha224=Ju.sha256=Ju.SHA512_256=Ju.SHA512_224=Ju.SHA384=Ju.SHA512=Ju.SHA224=Ju.SHA256=void 0;var Do=xle(),Ya=Mle(),rf=iC(),qkt=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),iI=new Uint32Array(64),Yk=class extends Do.HashMD{constructor(t=32){super(64,t,8,!1),this.A=Do.SHA256_IV[0]|0,this.B=Do.SHA256_IV[1]|0,this.C=Do.SHA256_IV[2]|0,this.D=Do.SHA256_IV[3]|0,this.E=Do.SHA256_IV[4]|0,this.F=Do.SHA256_IV[5]|0,this.G=Do.SHA256_IV[6]|0,this.H=Do.SHA256_IV[7]|0}get(){let{A:t,B:r,C:i,D:n,E:o,F:d,G:g,H:y}=this;return[t,r,i,n,o,d,g,y]}set(t,r,i,n,o,d,g,y){this.A=t|0,this.B=r|0,this.C=i|0,this.D=n|0,this.E=o|0,this.F=d|0,this.G=g|0,this.H=y|0}process(t,r){for(let N=0;N<16;N++,r+=4)iI[N]=t.getUint32(r,!1);for(let N=16;N<64;N++){let T=iI[N-15],M=iI[N-2],D=(0,rf.rotr)(T,7)^(0,rf.rotr)(T,18)^T>>>3,P=(0,rf.rotr)(M,17)^(0,rf.rotr)(M,19)^M>>>10;iI[N]=P+iI[N-7]+D+iI[N-16]|0}let{A:i,B:n,C:o,D:d,E:g,F:y,G:_,H:I}=this;for(let N=0;N<64;N++){let T=(0,rf.rotr)(g,6)^(0,rf.rotr)(g,11)^(0,rf.rotr)(g,25),M=I+T+(0,Do.Chi)(g,y,_)+qkt[N]+iI[N]|0,P=((0,rf.rotr)(i,2)^(0,rf.rotr)(i,13)^(0,rf.rotr)(i,22))+(0,Do.Maj)(i,n,o)|0;I=_,_=y,y=g,g=d+M|0,d=o,o=n,n=i,i=M+P|0}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,d=d+this.D|0,g=g+this.E|0,y=y+this.F|0,_=_+this.G|0,I=I+this.H|0,this.set(i,n,o,d,g,y,_,I)}roundClean(){(0,rf.clean)(iI)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,rf.clean)(this.buffer)}};Ju.SHA256=Yk;var iz=class extends Yk{constructor(){super(28),this.A=Do.SHA224_IV[0]|0,this.B=Do.SHA224_IV[1]|0,this.C=Do.SHA224_IV[2]|0,this.D=Do.SHA224_IV[3]|0,this.E=Do.SHA224_IV[4]|0,this.F=Do.SHA224_IV[5]|0,this.G=Do.SHA224_IV[6]|0,this.H=Do.SHA224_IV[7]|0}};Ju.SHA224=iz;var vZe=Ya.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Vkt=vZe[0],Jkt=vZe[1],oI=new Uint32Array(80),aI=new Uint32Array(80),sC=class extends Do.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=Do.SHA512_IV[0]|0,this.Al=Do.SHA512_IV[1]|0,this.Bh=Do.SHA512_IV[2]|0,this.Bl=Do.SHA512_IV[3]|0,this.Ch=Do.SHA512_IV[4]|0,this.Cl=Do.SHA512_IV[5]|0,this.Dh=Do.SHA512_IV[6]|0,this.Dl=Do.SHA512_IV[7]|0,this.Eh=Do.SHA512_IV[8]|0,this.El=Do.SHA512_IV[9]|0,this.Fh=Do.SHA512_IV[10]|0,this.Fl=Do.SHA512_IV[11]|0,this.Gh=Do.SHA512_IV[12]|0,this.Gl=Do.SHA512_IV[13]|0,this.Hh=Do.SHA512_IV[14]|0,this.Hl=Do.SHA512_IV[15]|0}get(){let{Ah:t,Al:r,Bh:i,Bl:n,Ch:o,Cl:d,Dh:g,Dl:y,Eh:_,El:I,Fh:N,Fl:T,Gh:M,Gl:D,Hh:P,Hl:G}=this;return[t,r,i,n,o,d,g,y,_,I,N,T,M,D,P,G]}set(t,r,i,n,o,d,g,y,_,I,N,T,M,D,P,G){this.Ah=t|0,this.Al=r|0,this.Bh=i|0,this.Bl=n|0,this.Ch=o|0,this.Cl=d|0,this.Dh=g|0,this.Dl=y|0,this.Eh=_|0,this.El=I|0,this.Fh=N|0,this.Fl=T|0,this.Gh=M|0,this.Gl=D|0,this.Hh=P|0,this.Hl=G|0}process(t,r){for(let ne=0;ne<16;ne++,r+=4)oI[ne]=t.getUint32(r),aI[ne]=t.getUint32(r+=4);for(let ne=16;ne<80;ne++){let ce=oI[ne-15]|0,le=aI[ne-15]|0,pe=Ya.rotrSH(ce,le,1)^Ya.rotrSH(ce,le,8)^Ya.shrSH(ce,le,7),ae=Ya.rotrSL(ce,le,1)^Ya.rotrSL(ce,le,8)^Ya.shrSL(ce,le,7),W=oI[ne-2]|0,se=aI[ne-2]|0,O=Ya.rotrSH(W,se,19)^Ya.rotrBH(W,se,61)^Ya.shrSH(W,se,6),s=Ya.rotrSL(W,se,19)^Ya.rotrBL(W,se,61)^Ya.shrSL(W,se,6),l=Ya.add4L(ae,s,aI[ne-7],aI[ne-16]),A=Ya.add4H(l,pe,O,oI[ne-7],oI[ne-16]);oI[ne]=A|0,aI[ne]=l|0}let{Ah:i,Al:n,Bh:o,Bl:d,Ch:g,Cl:y,Dh:_,Dl:I,Eh:N,El:T,Fh:M,Fl:D,Gh:P,Gl:G,Hh:q,Hl:Y}=this;for(let ne=0;ne<80;ne++){let ce=Ya.rotrSH(N,T,14)^Ya.rotrSH(N,T,18)^Ya.rotrBH(N,T,41),le=Ya.rotrSL(N,T,14)^Ya.rotrSL(N,T,18)^Ya.rotrBL(N,T,41),pe=N&M^~N&P,ae=T&D^~T&G,W=Ya.add5L(Y,le,ae,Jkt[ne],aI[ne]),se=Ya.add5H(W,q,ce,pe,Vkt[ne],oI[ne]),O=W|0,s=Ya.rotrSH(i,n,28)^Ya.rotrBH(i,n,34)^Ya.rotrBH(i,n,39),l=Ya.rotrSL(i,n,28)^Ya.rotrBL(i,n,34)^Ya.rotrBL(i,n,39),A=i&o^i&g^o&g,m=n&d^n&y^d&y;q=P|0,Y=G|0,P=M|0,G=D|0,M=N|0,D=T|0,{h:N,l:T}=Ya.add(_|0,I|0,se|0,O|0),_=g|0,I=y|0,g=o|0,y=d|0,o=i|0,d=n|0;let E=Ya.add3L(O,l,m);i=Ya.add3H(E,se,s,A),n=E|0}({h:i,l:n}=Ya.add(this.Ah|0,this.Al|0,i|0,n|0)),{h:o,l:d}=Ya.add(this.Bh|0,this.Bl|0,o|0,d|0),{h:g,l:y}=Ya.add(this.Ch|0,this.Cl|0,g|0,y|0),{h:_,l:I}=Ya.add(this.Dh|0,this.Dl|0,_|0,I|0),{h:N,l:T}=Ya.add(this.Eh|0,this.El|0,N|0,T|0),{h:M,l:D}=Ya.add(this.Fh|0,this.Fl|0,M|0,D|0),{h:P,l:G}=Ya.add(this.Gh|0,this.Gl|0,P|0,G|0),{h:q,l:Y}=Ya.add(this.Hh|0,this.Hl|0,q|0,Y|0),this.set(i,n,o,d,g,y,_,I,N,T,M,D,P,G,q,Y)}roundClean(){(0,rf.clean)(oI,aI)}destroy(){(0,rf.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};Ju.SHA512=sC;var oz=class extends sC{constructor(){super(48),this.Ah=Do.SHA384_IV[0]|0,this.Al=Do.SHA384_IV[1]|0,this.Bh=Do.SHA384_IV[2]|0,this.Bl=Do.SHA384_IV[3]|0,this.Ch=Do.SHA384_IV[4]|0,this.Cl=Do.SHA384_IV[5]|0,this.Dh=Do.SHA384_IV[6]|0,this.Dl=Do.SHA384_IV[7]|0,this.Eh=Do.SHA384_IV[8]|0,this.El=Do.SHA384_IV[9]|0,this.Fh=Do.SHA384_IV[10]|0,this.Fl=Do.SHA384_IV[11]|0,this.Gh=Do.SHA384_IV[12]|0,this.Gl=Do.SHA384_IV[13]|0,this.Hh=Do.SHA384_IV[14]|0,this.Hl=Do.SHA384_IV[15]|0}};Ju.SHA384=oz;var Dh=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),kh=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),az=class extends sC{constructor(){super(28),this.Ah=Dh[0]|0,this.Al=Dh[1]|0,this.Bh=Dh[2]|0,this.Bl=Dh[3]|0,this.Ch=Dh[4]|0,this.Cl=Dh[5]|0,this.Dh=Dh[6]|0,this.Dl=Dh[7]|0,this.Eh=Dh[8]|0,this.El=Dh[9]|0,this.Fh=Dh[10]|0,this.Fl=Dh[11]|0,this.Gh=Dh[12]|0,this.Gl=Dh[13]|0,this.Hh=Dh[14]|0,this.Hl=Dh[15]|0}};Ju.SHA512_224=az;var sz=class extends sC{constructor(){super(32),this.Ah=kh[0]|0,this.Al=kh[1]|0,this.Bh=kh[2]|0,this.Bl=kh[3]|0,this.Ch=kh[4]|0,this.Cl=kh[5]|0,this.Dh=kh[6]|0,this.Dl=kh[7]|0,this.Eh=kh[8]|0,this.El=kh[9]|0,this.Fh=kh[10]|0,this.Fl=kh[11]|0,this.Gh=kh[12]|0,this.Gl=kh[13]|0,this.Hh=kh[14]|0,this.Hl=kh[15]|0}};Ju.SHA512_256=sz;Ju.sha256=(0,rf.createHasher)(()=>new Yk);Ju.sha224=(0,rf.createHasher)(()=>new iz);Ju.sha512=(0,rf.createHasher)(()=>new sC);Ju.sha384=(0,rf.createHasher)(()=>new oz);Ju.sha512_256=(0,rf.createHasher)(()=>new sz);Ju.sha512_224=(0,rf.createHasher)(()=>new az)});var kle=ir(fl=>{"use strict";J();K();z();Object.defineProperty(fl,"__esModule",{value:!0});fl.sha512_256=fl.SHA512_256=fl.sha512_224=fl.SHA512_224=fl.sha384=fl.SHA384=fl.sha512=fl.SHA512=void 0;var sI=Dle();fl.SHA512=sI.SHA512;fl.sha512=sI.sha512;fl.SHA384=sI.SHA384;fl.sha384=sI.sha384;fl.SHA512_224=sI.SHA512_224;fl.sha512_224=sI.sha512_224;fl.SHA512_256=sI.SHA512_256;fl.sha512_256=sI.sha512_256});var OZe=ir(nf=>{"use strict";J();K();z();var zkt=nf&&nf.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),Kkt=nf&&nf.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),$kt=nf&&nf.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&zkt(t,e,r);return Kkt(t,e),t};Object.defineProperty(nf,"__esModule",{value:!0});nf.pbkdf2Sha512=nf.pbkdf2Sha512Noble=nf.pbkdf2Sha512NodeCrypto=nf.pbkdf2Sha512Subtle=nf.getSubtle=nf.getNodeCrypto=void 0;var cC=Uf(),Ykt=jXe(),Wkt=kle();async function RZe(){try{let e=await Promise.resolve().then(()=>$kt((IA(),Zu(Lv))));return typeof e=="object"&&Object.keys(e).length<=1?void 0:e}catch{return}}nf.getNodeCrypto=RZe;async function SZe(){let e=globalThis?.crypto?.subtle;return e||(e=globalThis?.crypto?.webcrypto?.subtle),e}nf.getSubtle=SZe;async function IZe(e,t,r,i,n){return(0,cC.assert)(e,"Argument subtle is falsy"),(0,cC.assert)(typeof e=="object","Argument subtle is not of type object"),(0,cC.assert)(typeof e.importKey=="function","subtle.importKey is not a function"),(0,cC.assert)(typeof e.deriveBits=="function","subtle.deriveBits is not a function"),e.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(o=>e.deriveBits({name:"PBKDF2",salt:r,iterations:i,hash:{name:"SHA-512"}},o,n*8).then(d=>new Uint8Array(d)))}nf.pbkdf2Sha512Subtle=IZe;async function CZe(e,t,r,i,n){return(0,cC.assert)(e,"Argument nodeCrypto is falsy"),(0,cC.assert)(typeof e=="object","Argument nodeCrypto is not of type object"),(0,cC.assert)(typeof e.pbkdf2=="function","nodeCrypto.pbkdf2 is not a function"),new Promise((o,d)=>{e.pbkdf2(t,r,i,n,"sha512",(g,y)=>{g?d(g):o(Uint8Array.from(y))})})}nf.pbkdf2Sha512NodeCrypto=CZe;async function wZe(e,t,r,i){return(0,Ykt.pbkdf2Async)(Wkt.sha512,e,t,{c:r,dkLen:i})}nf.pbkdf2Sha512Noble=wZe;async function Xkt(e,t,r,i){let n=await SZe();if(n)return IZe(n,e,t,r,i);{let o=await RZe();return o?CZe(o,e,t,r,i):wZe(e,t,r,i)}}nf.pbkdf2Sha512=Xkt});var NZe=ir(Rb=>{"use strict";J();K();z();Object.defineProperty(Rb,"__esModule",{value:!0});Rb.sha224=Rb.SHA224=Rb.sha256=Rb.SHA256=void 0;var cz=Dle();Rb.SHA256=cz.SHA256;Rb.sha256=cz.sha256;Rb.SHA224=cz.SHA224;Rb.sha224=cz.sha224});var dz=ir(uz=>{"use strict";J();K();z();Object.defineProperty(uz,"__esModule",{value:!0});uz.toRealUint8Array=void 0;function Zkt(e){return e instanceof Uint8Array?e:Uint8Array.from(e)}uz.toRealUint8Array=Zkt});var hz=ir(Sb=>{"use strict";J();K();z();Object.defineProperty(Sb,"__esModule",{value:!0});Sb.sha512=Sb.Sha512=Sb.sha256=Sb.Sha256=void 0;var jkt=NZe(),ePt=kle(),xZe=dz(),fz=class{constructor(t){this.blockSize=512/8,this.impl=jkt.sha256.create(),t&&this.update(t)}update(t){return this.impl.update((0,xZe.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}};Sb.Sha256=fz;function tPt(e){return new fz(e).digest()}Sb.sha256=tPt;var lz=class{constructor(t){this.blockSize=1024/8,this.impl=ePt.sha512.create(),t&&this.update(t)}update(t){return this.impl.update((0,xZe.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}};Sb.Sha512=lz;function rPt(e){return new lz(e).digest()}Sb.sha512=rPt});var PZe=ir(Ib=>{"use strict";J();K();z();Object.defineProperty(Ib,"__esModule",{value:!0});Ib.Bip39=Ib.EnglishMnemonic=Ib.mnemonicToEntropy=Ib.entropyToMnemonic=void 0;var TZe=Ps(),nPt=OZe(),iPt=hz(),Ule=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function BZe(e){return Array.from(e).map(t=>t.toString(2).padStart(8,"0")).join("")}function MZe(e){let r=e.length*8/32,i=(0,iPt.sha256)(e);return BZe(i).slice(0,r)}function DZe(e){return parseInt(e,2)}var oPt=[16,20,24,28,32],aPt=[12,15,18,21,24];function kZe(e){if(oPt.indexOf(e.length)===-1)throw new Error("invalid input length");let t=BZe(e),r=MZe(e);return(t+r).match(/(.{11})/g).map(d=>{let g=DZe(d);return Ule[g]}).join(" ")}Ib.entropyToMnemonic=kZe;var sPt="Invalid number of words",cPt="Found word that is not in the wordlist",uPt="Invalid entropy",dPt="Invalid mnemonic checksum";function Ple(e){return e.normalize("NFKD")}function Fle(e){let t=Ple(e).split(" ");if(!aPt.includes(t.length))throw new Error(sPt);let r=t.map(_=>{let I=Ule.indexOf(_);if(I===-1)throw new Error(cPt);return I.toString(2).padStart(11,"0")}).join(""),i=Math.floor(r.length/33)*32,n=r.slice(0,i),o=r.slice(i),d=n.match(/(.{1,8})/g).map(DZe);if(d.length<16||d.length>32||d.length%4!==0)throw new Error(uPt);let g=Uint8Array.from(d);if(MZe(g)!==o)throw new Error(dPt);return g}Ib.mnemonicToEntropy=Fle;var UN=class e{constructor(t){if(!e.mnemonicMatcher.test(t))throw new Error("Invalid mnemonic format");let r=t.split(" "),i=[12,15,18,21,24];if(i.indexOf(r.length)===-1)throw new Error(`Invalid word count in mnemonic (allowed: ${i} got: ${r.length})`);for(let n of r)if(e.wordlist.indexOf(n)===-1)throw new Error("Mnemonic contains invalid word");Fle(t),this.data=t}toString(){return this.data}};Ib.EnglishMnemonic=UN;UN.wordlist=Ule;UN.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;var Lle=class{static encode(t){return new UN(kZe(t))}static decode(t){return Fle(t.toString())}static async mnemonicToSeed(t,r){let i=(0,TZe.toUtf8)(Ple(t.toString())),n="mnemonic"+(r?Ple(r):""),o=(0,TZe.toUtf8)(n);return(0,nPt.pbkdf2Sha512)(i,o,2048,64)}};Ib.Bip39=Lle});var Hle=ir(Az=>{"use strict";J();K();z();Object.defineProperty(Az,"__esModule",{value:!0});Az.Hmac=void 0;var Qle=class{constructor(t,r){let i=new t().blockSize;this.hash=o=>new t().update(o).digest();let n=r;if(n.length>i&&(n=this.hash(n)),n.length<i){let o=new Uint8Array(i-n.length);n=new Uint8Array([...n,...o])}this.oKeyPad=n.map(o=>o^92),this.iKeyPad=n.map(o=>o^54),this.messageHasher=new t,this.blockSize=i,this.update(this.iKeyPad)}update(t){return this.messageHasher.update(t),this}digest(){let t=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...t]))}};Az.Hmac=Qle});var JZe=ir(e0=>{"use strict";J();K();z();Object.defineProperty(e0,"__esModule",{value:!0});e0.shake256=e0.shake128=e0.keccak_512=e0.keccak_384=e0.keccak_256=e0.keccak_224=e0.sha3_512=e0.sha3_384=e0.sha3_256=e0.sha3_224=e0.Keccak=void 0;e0.keccakP=qZe;var Xk=Mle(),Ph=iC(),fPt=BigInt(0),Wk=BigInt(1),lPt=BigInt(2),hPt=BigInt(7),APt=BigInt(256),pPt=BigInt(113),FZe=[],QZe=[],HZe=[];for(let e=0,t=Wk,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],FZe.push(2*(5*i+r)),QZe.push((e+1)*(e+2)/2%64);let n=fPt;for(let o=0;o<7;o++)t=(t<<Wk^(t>>hPt)*pPt)%APt,t&lPt&&(n^=Wk<<(Wk<<BigInt(o))-Wk);HZe.push(n)}var GZe=(0,Xk.split)(HZe,!0),gPt=GZe[0],_Pt=GZe[1],LZe=(e,t,r)=>r>32?(0,Xk.rotlBH)(e,t,r):(0,Xk.rotlSH)(e,t,r),UZe=(e,t,r)=>r>32?(0,Xk.rotlBL)(e,t,r):(0,Xk.rotlSL)(e,t,r);function qZe(e,t=24){let r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let d=0;d<10;d++)r[d]=e[d]^e[d+10]^e[d+20]^e[d+30]^e[d+40];for(let d=0;d<10;d+=2){let g=(d+8)%10,y=(d+2)%10,_=r[y],I=r[y+1],N=LZe(_,I,1)^r[g],T=UZe(_,I,1)^r[g+1];for(let M=0;M<50;M+=10)e[d+M]^=N,e[d+M+1]^=T}let n=e[2],o=e[3];for(let d=0;d<24;d++){let g=QZe[d],y=LZe(n,o,g),_=UZe(n,o,g),I=FZe[d];n=e[I],o=e[I+1],e[I]=y,e[I+1]=_}for(let d=0;d<50;d+=10){for(let g=0;g<10;g++)r[g]=e[d+g];for(let g=0;g<10;g++)e[d+g]^=~r[(g+2)%10]&r[(g+4)%10]}e[0]^=gPt[i],e[1]^=_Pt[i]}(0,Ph.clean)(r)}var Zk=class e extends Ph.Hash{constructor(t,r,i,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=i,this.enableXOF=n,this.rounds=o,(0,Ph.anumber)(i),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,Ph.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,Ph.swap32IfBE)(this.state32),qZe(this.state32,this.rounds),(0,Ph.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(t){(0,Ph.aexists)(this),t=(0,Ph.toBytes)(t),(0,Ph.abytes)(t);let{blockLen:r,state:i}=this,n=t.length;for(let o=0;o<n;){let d=Math.min(r-this.pos,n-o);for(let g=0;g<d;g++)i[this.pos++]^=t[o++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:i,blockLen:n}=this;t[i]^=r,(r&128)!==0&&i===n-1&&this.keccak(),t[n-1]^=128,this.keccak()}writeInto(t){(0,Ph.aexists)(this,!1),(0,Ph.abytes)(t),this.finish();let r=this.state,{blockLen:i}=this;for(let n=0,o=t.length;n<o;){this.posOut>=i&&this.keccak();let d=Math.min(i-this.posOut,o-n);t.set(r.subarray(this.posOut,this.posOut+d),n),this.posOut+=d,n+=d}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,Ph.anumber)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,Ph.aoutput)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,Ph.clean)(this.state)}_cloneInto(t){let{blockLen:r,suffix:i,outputLen:n,rounds:o,enableXOF:d}=this;return t||(t=new e(r,i,n,d,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=i,t.outputLen=n,t.enableXOF=d,t.destroyed=this.destroyed,t}};e0.Keccak=Zk;var cI=(e,t,r)=>(0,Ph.createHasher)(()=>new Zk(t,e,r));e0.sha3_224=cI(6,144,224/8);e0.sha3_256=cI(6,136,256/8);e0.sha3_384=cI(6,104,384/8);e0.sha3_512=cI(6,72,512/8);e0.keccak_224=cI(1,144,224/8);e0.keccak_256=cI(1,136,256/8);e0.keccak_384=cI(1,104,384/8);e0.keccak_512=cI(1,72,512/8);var VZe=(e,t,r)=>(0,Ph.createXOFer)((i={})=>new Zk(t,e,i.dkLen===void 0?r:i.dkLen,!0));e0.shake128=VZe(31,168,128/8);e0.shake256=VZe(31,136,256/8)});var zZe=ir(FN=>{"use strict";J();K();z();Object.defineProperty(FN,"__esModule",{value:!0});FN.keccak256=FN.Keccak256=void 0;var mPt=JZe(),yPt=dz(),pz=class{constructor(t){this.blockSize=512/8,this.impl=mPt.keccak_256.create(),t&&this.update(t)}update(t){return this.impl.update((0,yPt.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}};FN.Keccak256=pz;function bPt(e){return new pz(e).digest()}FN.keccak256=bPt});function KZe(e,t){if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var o=Object.keys(Object(n)),d=0,g=o.length;d<g;d++){var y=o[d],_=Object.getOwnPropertyDescriptor(n,y);_!==void 0&&_.enumerable&&(r[y]=n[y])}}return r}function Lje(){if(aje)return $le;function e(_){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(_)}function t(_,I){return!I||e(I)!=="object"&&typeof I!="function"?(function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N})(_):I}function r(_){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)})(_)}function i(_,I){return(i=Object.setPrototypeOf||function(N,T){return N.__proto__=T,N})(_,I)}aje=!0;var n,o,d={};function g(_,I,N){N||(N=Error);var T=(function(M){function D(P,G,q){var Y;return(function(ne,ce){if(!(ne instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,D),(Y=t(this,r(D).call(this,(function(ne,ce,le){return typeof I=="string"?I:I(ne,ce,le)})(P,G,q)))).code=_,Y}return(function(P,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(G&&G.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),G&&i(P,G)})(D,M),D})(N);d[_]=T}function y(_,I){if(Array.isArray(_)){var N=_.length;return _=_.map((function(T){return String(T)})),N>2?"one of ".concat(I," ").concat(_.slice(0,N-1).join(", "),", or ")+_[N-1]:N===2?"one of ".concat(I," ").concat(_[0]," or ").concat(_[1]):"of ".concat(I," ").concat(_[0])}return"of ".concat(I," ").concat(String(_))}return g("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),g("ERR_INVALID_ARG_TYPE",(function(_,I,N){var T,M,D;if(n===void 0&&(n=ehe()),n(typeof _=="string","'name' must be a string"),typeof I=="string"&&(M="not ",I.substr(0,M.length)===M)?(T="must not be",I=I.replace(/^not /,"")):T="must be",(function(G,q,Y){return(Y===void 0||Y>G.length)&&(Y=G.length),G.substring(Y-q.length,Y)===q})(_," argument"))D="The ".concat(_," ").concat(T," ").concat(y(I,"type"));else{var P=(function(G,q,Y){return typeof Y!="number"&&(Y=0),!(Y+q.length>G.length)&&G.indexOf(q,Y)!==-1})(_,".")?"property":"argument";D='The "'.concat(_,'" ').concat(P," ").concat(T," ").concat(y(I,"type"))}return D+=". Received type ".concat(e(N))}),TypeError),g("ERR_INVALID_ARG_VALUE",(function(_,I){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";o===void 0&&(o=yn);var T=o.inspect(I);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(N,". Received ").concat(T)}),TypeError),g("ERR_INVALID_RETURN_VALUE",(function(_,I,N){var T;return T=N&&N.constructor&&N.constructor.name?"instance of ".concat(N.constructor.name):"type ".concat(e(N)),"Expected ".concat(_,' to be returned from the "').concat(I,'"')+" function but got ".concat(T,".")}),TypeError),g("ERR_MISSING_ARGS",(function(){for(var _=arguments.length,I=new Array(_),N=0;N<_;N++)I[N]=arguments[N];n===void 0&&(n=ehe()),n(I.length>0,"At least one arg needs to be specified");var T="The ",M=I.length;switch(I=I.map((function(D){return'"'.concat(D,'"')})),M){case 1:T+="".concat(I[0]," argument");break;case 2:T+="".concat(I[0]," and ").concat(I[1]," arguments");break;default:T+=I.slice(0,M-1).join(", "),T+=", and ".concat(I[M-1]," arguments")}return"".concat(T," must be specified")}),TypeError),$le.codes=d,$le}function oLt(){if(cje)return sje;cje=!0;var e=Mo;function t(ae,W,se){return W in ae?Object.defineProperty(ae,W,{value:se,enumerable:!0,configurable:!0,writable:!0}):ae[W]=se,ae}function r(ae,W){for(var se=0;se<W.length;se++){var O=W[se];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(ae,O.key,O)}}function i(ae,W){return!W||I(W)!=="object"&&typeof W!="function"?n(ae):W}function n(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function o(ae){var W=typeof Map=="function"?new Map:void 0;return(o=function(se){if(se===null||(O=se,Function.toString.call(O).indexOf("[native code]")===-1))return se;var O;if(typeof se!="function")throw new TypeError("Super expression must either be null or a function");if(W!==void 0){if(W.has(se))return W.get(se);W.set(se,s)}function s(){return g(se,arguments,_(this).constructor)}return s.prototype=Object.create(se.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),y(s,se)})(ae)}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function g(ae,W,se){return(g=d()?Reflect.construct:function(O,s,l){var A=[null];A.push.apply(A,s);var m=new(Function.bind.apply(O,A));return l&&y(m,l.prototype),m}).apply(null,arguments)}function y(ae,W){return(y=Object.setPrototypeOf||function(se,O){return se.__proto__=O,se})(ae,W)}function _(ae){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)})(ae)}function I(ae){return(I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(ae)}var N=yn.inspect,T=Lje().codes.ERR_INVALID_ARG_TYPE;function M(ae,W,se){return(se===void 0||se>ae.length)&&(se=ae.length),ae.substring(se-W.length,se)===W}var D="",P="",G="",q="",Y={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function ne(ae){var W=Object.keys(ae),se=Object.create(Object.getPrototypeOf(ae));return W.forEach((function(O){se[O]=ae[O]})),Object.defineProperty(se,"message",{value:ae.message}),se}function ce(ae){return N(ae,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function le(ae,W,se){var O="",s="",l=0,A="",m=!1,E=ce(ae),w=E.split(`
|
|
`),x=ce(W).split(`
|
|
`),R=0,u="";if(se==="strictEqual"&&I(ae)==="object"&&I(W)==="object"&&ae!==null&&W!==null&&(se="strictEqualObject"),w.length===1&&x.length===1&&w[0]!==x[0]){var C=w[0].length+x[0].length;if(C<=10){if(!(I(ae)==="object"&&ae!==null||I(W)==="object"&&W!==null||ae===0&&W===0))return"".concat(Y[se],`
|
|
|
|
`)+"".concat(w[0]," !== ").concat(x[0],`
|
|
`)}else if(se!=="strictEqualObject"&&C<(e.stderr&&e.stderr.isTTY?e.stderr.columns:80)){for(;w[0][R]===x[0][R];)R++;R>2&&(u=`
|
|
`.concat((function(te,Ue){if(Ue=Math.floor(Ue),te.length==0||Ue==0)return"";var oe=te.length*Ue;for(Ue=Math.floor(Math.log(Ue)/Math.log(2));Ue;)te+=te,Ue--;return te+=te.substring(0,oe-te.length)})(" ",R),"^"),R=0)}}for(var U=w[w.length-1],F=x[x.length-1];U===F&&(R++<2?A=`
|
|
`.concat(U).concat(A):O=U,w.pop(),x.pop(),w.length!==0&&x.length!==0);)U=w[w.length-1],F=x[x.length-1];var X=Math.max(w.length,x.length);if(X===0){var Ae=E.split(`
|
|
`);if(Ae.length>30)for(Ae[26]="".concat(D,"...").concat(q);Ae.length>27;)Ae.pop();return"".concat(Y.notIdentical,`
|
|
|
|
`).concat(Ae.join(`
|
|
`),`
|
|
`)}R>3&&(A=`
|
|
`.concat(D,"...").concat(q).concat(A),m=!0),O!==""&&(A=`
|
|
`.concat(O).concat(A),O="");var he=0,$e=Y[se]+`
|
|
`.concat(P,"+ actual").concat(q," ").concat(G,"- expected").concat(q),Ge=" ".concat(D,"...").concat(q," Lines skipped");for(R=0;R<X;R++){var Re=R-l;if(w.length<R+1)Re>1&&R>2&&(Re>4?(s+=`
|
|
`.concat(D,"...").concat(q),m=!0):Re>3&&(s+=`
|
|
`.concat(x[R-2]),he++),s+=`
|
|
`.concat(x[R-1]),he++),l=R,O+=`
|
|
`.concat(G,"-").concat(q," ").concat(x[R]),he++;else if(x.length<R+1)Re>1&&R>2&&(Re>4?(s+=`
|
|
`.concat(D,"...").concat(q),m=!0):Re>3&&(s+=`
|
|
`.concat(w[R-2]),he++),s+=`
|
|
`.concat(w[R-1]),he++),l=R,s+=`
|
|
`.concat(P,"+").concat(q," ").concat(w[R]),he++;else{var Se=x[R],ct=w[R],ze=ct!==Se&&(!M(ct,",")||ct.slice(0,-1)!==Se);ze&&M(Se,",")&&Se.slice(0,-1)===ct&&(ze=!1,ct+=","),ze?(Re>1&&R>2&&(Re>4?(s+=`
|
|
`.concat(D,"...").concat(q),m=!0):Re>3&&(s+=`
|
|
`.concat(w[R-2]),he++),s+=`
|
|
`.concat(w[R-1]),he++),l=R,s+=`
|
|
`.concat(P,"+").concat(q," ").concat(ct),O+=`
|
|
`.concat(G,"-").concat(q," ").concat(Se),he+=2):(s+=O,O="",Re!==1&&R!==0||(s+=`
|
|
`.concat(ct),he++))}if(he>20&&R<X-2)return"".concat($e).concat(Ge,`
|
|
`).concat(s,`
|
|
`).concat(D,"...").concat(q).concat(O,`
|
|
`)+"".concat(D,"...").concat(q)}return"".concat($e).concat(m?Ge:"",`
|
|
`).concat(s).concat(O).concat(A).concat(u)}var pe=(function(ae){function W(s){var l;if((function(Ae,he){if(!(Ae instanceof he))throw new TypeError("Cannot call a class as a function")})(this,W),I(s)!=="object"||s===null)throw new T("options","Object",s);var A=s.message,m=s.operator,E=s.stackStartFn,w=s.actual,x=s.expected,R=Error.stackTraceLimit;if(Error.stackTraceLimit=0,A!=null)l=i(this,_(W).call(this,String(A)));else if(e.stderr&&e.stderr.isTTY&&(e.stderr&&e.stderr.getColorDepth&&e.stderr.getColorDepth()!==1?(D="\x1B[34m",P="\x1B[32m",q="\x1B[39m",G="\x1B[31m"):(D="",P="",q="",G="")),I(w)==="object"&&w!==null&&I(x)==="object"&&x!==null&&"stack"in w&&w instanceof Error&&"stack"in x&&x instanceof Error&&(w=ne(w),x=ne(x)),m==="deepStrictEqual"||m==="strictEqual")l=i(this,_(W).call(this,le(w,x,m)));else if(m==="notDeepStrictEqual"||m==="notStrictEqual"){var u=Y[m],C=ce(w).split(`
|
|
`);if(m==="notStrictEqual"&&I(w)==="object"&&w!==null&&(u=Y.notStrictEqualObject),C.length>30)for(C[26]="".concat(D,"...").concat(q);C.length>27;)C.pop();l=C.length===1?i(this,_(W).call(this,"".concat(u," ").concat(C[0]))):i(this,_(W).call(this,"".concat(u,`
|
|
|
|
`).concat(C.join(`
|
|
`),`
|
|
`)))}else{var U=ce(w),F="",X=Y[m];m==="notDeepEqual"||m==="notEqual"?(U="".concat(Y[m],`
|
|
|
|
`).concat(U)).length>1024&&(U="".concat(U.slice(0,1021),"...")):(F="".concat(ce(x)),U.length>512&&(U="".concat(U.slice(0,509),"...")),F.length>512&&(F="".concat(F.slice(0,509),"...")),m==="deepEqual"||m==="equal"?U="".concat(X,`
|
|
|
|
`).concat(U,`
|
|
|
|
should equal
|
|
|
|
`):F=" ".concat(m," ").concat(F)),l=i(this,_(W).call(this,"".concat(U).concat(F)))}return Error.stackTraceLimit=R,l.generatedMessage=!A,Object.defineProperty(n(l),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),l.code="ERR_ASSERTION",l.actual=w,l.expected=x,l.operator=m,Error.captureStackTrace&&Error.captureStackTrace(n(l),E),l.stack,l.name="AssertionError",i(l)}var se,O;return(function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),l&&y(s,l)})(W,ae),se=W,(O=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:N.custom,value:function(s,l){return N(this,(function(A){for(var m=1;m<arguments.length;m++){var E=arguments[m]!=null?arguments[m]:{},w=Object.keys(E);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(E).filter((function(x){return Object.getOwnPropertyDescriptor(E,x).enumerable})))),w.forEach((function(x){t(A,x,E[x])}))}return A})({},l,{customInspect:!1,depth:0}))}}])&&r(se.prototype,O),W})(o(Error));return sje=pe}function uje(e,t){return(function(r){if(Array.isArray(r))return r})(e)||(function(r,i){var n=[],o=!0,d=!1,g=void 0;try{for(var y,_=r[Symbol.iterator]();!(o=(y=_.next()).done)&&(n.push(y.value),!i||n.length!==i);o=!0);}catch(I){d=!0,g=I}finally{try{o||_.return==null||_.return()}finally{if(d)throw g}}return n})(e,t)||(function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")})()}function Fm(e){return(Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function nhe(e){return e.call.bind(e)}function ALt(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function yz(e){return Object.keys(e).filter(ALt).concat(Ez(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function yje(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0}function m_(e,t,r,i){if(e===t)return e!==0||!r||fje(e,t);if(r){if(Fm(e)!=="object")return typeof e=="number"&&jle(e)&&jle(t);if(Fm(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Fm(e)!=="object")return(t===null||Fm(t)!=="object")&&e==t;if(t===null||Fm(t)!=="object")return!1}var n,o,d,g,y=lje(e);if(y!==lje(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var _=yz(e),I=yz(t);return _.length===I.length&&tP(e,t,r,i,1,_)}if(y==="[object Object]"&&(!_z(e)&&_z(t)||!mz(e)&&mz(t)))return!1;if(hje(e)){if(!hje(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(Aje(e)){if(!Aje(t)||(d=e,g=t,!(aLt?d.source===g.source&&d.flags===g.flags:RegExp.prototype.toString.call(d)===RegExp.prototype.toString.call(g))))return!1}else if(uLt(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(cLt(e)){if(r||!lLt(e)&&!hLt(e)){if(!(function(M,D){return M.byteLength===D.byteLength&&yje(new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new Uint8Array(D.buffer,D.byteOffset,D.byteLength))===0})(e,t))return!1}else if(!(function(M,D){if(M.byteLength!==D.byteLength)return!1;for(var P=0;P<M.byteLength;P++)if(M[P]!==D[P])return!1;return!0})(e,t))return!1;var N=yz(e),T=yz(t);return N.length===T.length&&tP(e,t,r,i,0,N)}if(mz(e))return!(!mz(t)||e.size!==t.size)&&tP(e,t,r,i,2);if(_z(e))return!(!_z(t)||e.size!==t.size)&&tP(e,t,r,i,3);if(sLt(e)){if(o=t,(n=e).byteLength!==o.byteLength||yje(new Uint8Array(n),new Uint8Array(o))!==0)return!1}else if(dLt(e)&&!(function(M,D){return pje(M)?pje(D)&&fje(Number.prototype.valueOf.call(M),Number.prototype.valueOf.call(D)):gje(M)?gje(D)&&String.prototype.valueOf.call(M)===String.prototype.valueOf.call(D):_je(M)?_je(D)&&Boolean.prototype.valueOf.call(M)===Boolean.prototype.valueOf.call(D):mje(M)?mje(D)&&BigInt.prototype.valueOf.call(M)===BigInt.prototype.valueOf.call(D):fLt(D)&&Symbol.prototype.valueOf.call(M)===Symbol.prototype.valueOf.call(D)})(e,t))return!1}return tP(e,t,r,i,0)}function bje(e,t){return t.filter((function(r){return vz(e,r)}))}function tP(e,t,r,i,n,o){if(arguments.length===5){o=Object.keys(e);var d=Object.keys(t);if(o.length!==d.length)return!1}for(var g=0;g<o.length;g++)if(!rP(t,o[g]))return!1;if(r&&arguments.length===5){var y=Ez(e);if(y.length!==0){var _=0;for(g=0;g<y.length;g++){var I=y[g];if(vz(e,I)){if(!vz(t,I))return!1;o.push(I),_++}else if(vz(t,I))return!1}var N=Ez(t);if(y.length!==N.length&&bje(t,N).length!==_)return!1}else{var T=Ez(t);if(T.length!==0&&bje(t,T).length!==0)return!1}}if(o.length===0&&(n===0||n===1&&e.length===0||e.size===0))return!0;if(i===void 0)i={val1:new Map,val2:new Map,position:0};else{var M=i.val1.get(e);if(M!==void 0){var D=i.val2.get(t);if(D!==void 0)return M===D}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var P=_Lt(e,t,r,o,i,n);return i.val1.delete(e),i.val2.delete(t),P}function Eje(e,t,r,i){for(var n=Rz(e),o=0;o<n.length;o++){var d=n[o];if(m_(t,d,r,i))return e.delete(d),!0}return!1}function Uje(e){switch(Fm(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(jle(e))return!1}return!0}function pLt(e,t,r){var i=Uje(r);return i??(t.has(i)&&!e.has(i))}function gLt(e,t,r,i,n){var o=Uje(r);if(o!=null)return o;var d=t.get(o);return!(d===void 0&&!t.has(o)||!m_(i,d,!1,n))&&!e.has(o)&&m_(i,d,!1,n)}function vje(e,t,r,i,n,o){for(var d=Rz(e),g=0;g<d.length;g++){var y=d[g];if(m_(r,y,n,o)&&m_(i,t.get(y),n,o))return e.delete(y),!0}return!1}function _Lt(e,t,r,i,n,o){var d=0;if(o===2){if(!(function(I,N,T,M){for(var D=null,P=Rz(I),G=0;G<P.length;G++){var q=P[G];if(Fm(q)==="object"&&q!==null)D===null&&(D=new Set),D.add(q);else if(!N.has(q)){if(T||!pLt(I,N,q))return!1;D===null&&(D=new Set),D.add(q)}}if(D!==null){for(var Y=Rz(N),ne=0;ne<Y.length;ne++){var ce=Y[ne];if(Fm(ce)==="object"&&ce!==null){if(!Eje(D,ce,T,M))return!1}else if(!T&&!I.has(ce)&&!Eje(D,ce,T,M))return!1}return D.size===0}return!0})(e,t,r,n))return!1}else if(o===3){if(!(function(I,N,T,M){for(var D=null,P=dje(I),G=0;G<P.length;G++){var q=uje(P[G],2),Y=q[0],ne=q[1];if(Fm(Y)==="object"&&Y!==null)D===null&&(D=new Set),D.add(Y);else{var ce=N.get(Y);if(ce===void 0&&!N.has(Y)||!m_(ne,ce,T,M)){if(T||!gLt(I,N,Y,ne,M))return!1;D===null&&(D=new Set),D.add(Y)}}}if(D!==null){for(var le=dje(N),pe=0;pe<le.length;pe++){var ae=uje(le[pe],2),W=(Y=ae[0],ae[1]);if(Fm(Y)==="object"&&Y!==null){if(!vje(D,I,Y,W,T,M))return!1}else if(!(T||I.has(Y)&&m_(I.get(Y),W,!1,M)||vje(D,I,Y,W,!1,M)))return!1}return D.size===0}return!0})(e,t,r,n))return!1}else if(o===1)for(;d<e.length;d++){if(!rP(e,d)){if(rP(t,d))return!1;for(var g=Object.keys(e);d<g.length;d++){var y=g[d];if(!rP(t,y)||!m_(e[y],t[y],r,n))return!1}return g.length===Object.keys(t).length}if(!rP(t,d)||!m_(e[d],t[d],r,n))return!1}for(d=0;d<i.length;d++){var _=i[d];if(!m_(e[_],t[_],r,n))return!1}return!0}function ehe(){if(Sje)return Yle;Sje=!0;var e=Mo;function t(x){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(x)}var r,i,n=Lje().codes,o=n.ERR_AMBIGUOUS_ARGUMENT,d=n.ERR_INVALID_ARG_TYPE,g=n.ERR_INVALID_ARG_VALUE,y=n.ERR_INVALID_RETURN_VALUE,_=n.ERR_MISSING_ARGS,I=oLt(),N=yn.inspect,T=yn.types,M=T.isPromise,D=T.isRegExp,P=Object.assign?Object.assign:EPt.assign,G=Object.is?Object.is:Dje;function q(){r=Rje.isDeepEqual,i=Rje.isDeepStrictEqual}var Y=!1,ne=Yle=ae,ce={};function le(x){throw x.message instanceof Error?x.message:new I(x)}function pe(x,R,u,C){if(!u){var U=!1;if(R===0)U=!0,C="No value argument passed to `assert.ok()`";else if(C instanceof Error)throw C;var F=new I({actual:u,expected:!0,message:C,operator:"==",stackStartFn:x});throw F.generatedMessage=U,F}}function ae(){for(var x=arguments.length,R=new Array(x),u=0;u<x;u++)R[u]=arguments[u];pe.apply(void 0,[ae,R.length].concat(R))}ne.fail=function x(R,u,C,U,F){var X,Ae=arguments.length;if(Ae===0)X="Failed";else if(Ae===1)C=R,R=void 0;else{if(Y===!1){Y=!0;var he=e.emitWarning?e.emitWarning:console.warn.bind(console);he("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Ae===2&&(U="!=")}if(C instanceof Error)throw C;var $e={actual:R,expected:u,operator:U===void 0?"fail":U,stackStartFn:F||x};C!==void 0&&($e.message=C);var Ge=new I($e);throw X&&(Ge.message=X,Ge.generatedMessage=!0),Ge},ne.AssertionError=I,ne.ok=ae,ne.equal=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");R!=u&&le({actual:R,expected:u,message:C,operator:"==",stackStartFn:x})},ne.notEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");R==u&&le({actual:R,expected:u,message:C,operator:"!=",stackStartFn:x})},ne.deepEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");r===void 0&&q(),r(R,u)||le({actual:R,expected:u,message:C,operator:"deepEqual",stackStartFn:x})},ne.notDeepEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");r===void 0&&q(),r(R,u)&&le({actual:R,expected:u,message:C,operator:"notDeepEqual",stackStartFn:x})},ne.deepStrictEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");r===void 0&&q(),i(R,u)||le({actual:R,expected:u,message:C,operator:"deepStrictEqual",stackStartFn:x})},ne.notDeepStrictEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");r===void 0&&q(),i(R,u)&&le({actual:R,expected:u,message:C,operator:"notDeepStrictEqual",stackStartFn:x})},ne.strictEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");G(R,u)||le({actual:R,expected:u,message:C,operator:"strictEqual",stackStartFn:x})},ne.notStrictEqual=function x(R,u,C){if(arguments.length<2)throw new _("actual","expected");G(R,u)&&le({actual:R,expected:u,message:C,operator:"notStrictEqual",stackStartFn:x})};var W=function x(R,u,C){var U=this;(function(F,X){if(!(F instanceof X))throw new TypeError("Cannot call a class as a function")})(this,x),u.forEach((function(F){F in R&&(C!==void 0&&typeof C[F]=="string"&&D(R[F])&&R[F].test(C[F])?U[F]=C[F]:U[F]=R[F])}))};function se(x,R,u,C,U,F){if(!(u in x)||!i(x[u],R[u])){if(!C){var X=new W(x,U),Ae=new W(R,U,x),he=new I({actual:X,expected:Ae,operator:"deepStrictEqual",stackStartFn:F});throw he.actual=x,he.expected=R,he.operator=F.name,he}le({actual:x,expected:R,message:C,operator:F.name,stackStartFn:F})}}function O(x,R,u,C){if(typeof R!="function"){if(D(R))return R.test(x);if(arguments.length===2)throw new d("expected",["Function","RegExp"],R);if(t(x)!=="object"||x===null){var U=new I({actual:x,expected:R,message:u,operator:"deepStrictEqual",stackStartFn:C});throw U.operator=C.name,U}var F=Object.keys(R);if(R instanceof Error)F.push("name","message");else if(F.length===0)throw new g("error",R,"may not be an empty object");return r===void 0&&q(),F.forEach((function(X){typeof x[X]=="string"&&D(R[X])&&R[X].test(x[X])||se(x,R,X,u,F,C)})),!0}return R.prototype!==void 0&&x instanceof R||!Error.isPrototypeOf(R)&&R.call({},x)===!0}function s(x){if(typeof x!="function")throw new d("fn","Function",x);try{x()}catch(R){return R}return ce}function l(x){return M(x)||x!==null&&t(x)==="object"&&typeof x.then=="function"&&typeof x.catch=="function"}function A(x){return Promise.resolve().then((function(){var R;if(typeof x=="function"){if(!l(R=x()))throw new y("instance of Promise","promiseFn",R)}else{if(!l(x))throw new d("promiseFn",["Function","Promise"],x);R=x}return Promise.resolve().then((function(){return R})).then((function(){return ce})).catch((function(u){return u}))}))}function m(x,R,u,C){if(typeof u=="string"){if(arguments.length===4)throw new d("error",["Object","Error","Function","RegExp"],u);if(t(R)==="object"&&R!==null){if(R.message===u)throw new o("error/message",'The error message "'.concat(R.message,'" is identical to the message.'))}else if(R===u)throw new o("error/message",'The error "'.concat(R,'" is identical to the message.'));C=u,u=void 0}else if(u!=null&&t(u)!=="object"&&typeof u!="function")throw new d("error",["Object","Error","Function","RegExp"],u);if(R===ce){var U="";u&&u.name&&(U+=" (".concat(u.name,")")),U+=C?": ".concat(C):".";var F=x.name==="rejects"?"rejection":"exception";le({actual:void 0,expected:u,operator:x.name,message:"Missing expected ".concat(F).concat(U),stackStartFn:x})}if(u&&!O(R,u,C,x))throw R}function E(x,R,u,C){if(R!==ce){if(typeof u=="string"&&(C=u,u=void 0),!u||O(R,u)){var U=C?": ".concat(C):".",F=x.name==="doesNotReject"?"rejection":"exception";le({actual:R,expected:u,operator:x.name,message:"Got unwanted ".concat(F).concat(U,`
|
|
`)+'Actual message: "'.concat(R&&R.message,'"'),stackStartFn:x})}throw R}}function w(){for(var x=arguments.length,R=new Array(x),u=0;u<x;u++)R[u]=arguments[u];pe.apply(void 0,[w,R.length].concat(R))}return ne.throws=function x(R){for(var u=arguments.length,C=new Array(u>1?u-1:0),U=1;U<u;U++)C[U-1]=arguments[U];m.apply(void 0,[x,s(R)].concat(C))},ne.rejects=function x(R){for(var u=arguments.length,C=new Array(u>1?u-1:0),U=1;U<u;U++)C[U-1]=arguments[U];return A(R).then((function(F){return m.apply(void 0,[x,F].concat(C))}))},ne.doesNotThrow=function x(R){for(var u=arguments.length,C=new Array(u>1?u-1:0),U=1;U<u;U++)C[U-1]=arguments[U];E.apply(void 0,[x,s(R)].concat(C))},ne.doesNotReject=function x(R){for(var u=arguments.length,C=new Array(u>1?u-1:0),U=1;U<u;U++)C[U-1]=arguments[U];return A(R).then((function(F){return E.apply(void 0,[x,F].concat(C))}))},ne.ifError=function x(R){if(R!=null){var u="ifError got unwanted exception: ";t(R)==="object"&&typeof R.message=="string"?R.message.length===0&&R.constructor?u+=R.constructor.name:u+=R.message:u+=N(R);var C=new I({actual:R,expected:null,operator:"ifError",message:u,stackStartFn:x}),U=R.stack;if(typeof U=="string"){var F=U.split(`
|
|
`);F.shift();for(var X=C.stack.split(`
|
|
`),Ae=0;Ae<F.length;Ae++){var he=X.indexOf(F[Ae]);if(he!==-1){X=X.slice(0,he);break}}C.stack="".concat(X.join(`
|
|
`),`
|
|
`).concat(F.join(`
|
|
`))}throw C}},ne.strict=P(w,ne,{equal:ne.strictEqual,deepEqual:ne.deepStrictEqual,notEqual:ne.notStrictEqual,notDeepEqual:ne.notDeepStrictEqual}),ne.strict.strict=ne.strict,Yle}var EPt,Ije,$Ze,Cje,jk,Gle,YZe,qle,WZe,XZe,eP,gz,ZZe,jZe,vPt,RPt,SPt,eje,bz,tje,IPt,CPt,wPt,OPt,NPt,Wle,wje,xPt,Oje,Sz,TPt,rje,BPt,MPt,DPt,Vle,kPt,PPt,Nje,nP,fC,Jle,LPt,uC,dC,zle,Kle,nje,UPt,FPt,QPt,HPt,GPt,xje,ije,Tje,qPt,VPt,JPt,Xle,Zle,oje,zPt,KPt,$Pt,YPt,WPt,Bje,XPt,Mje,Dje,the,rhe,ZPt,jPt,eLt,tLt,rLt,kje,nLt,Pje,iLt,$le,aje,sje,cje,aLt,Rz,dje,fje,Ez,jle,rP,vz,lje,xA,sLt,cLt,hje,_z,Aje,mz,uLt,dLt,pje,gje,_je,mje,fLt,lLt,hLt,Rje,Yle,Sje,To,tGn,rGn,nGn,iGn,oGn,aGn,sGn,cGn,uGn,dGn,fGn,lGn,hGn,AGn,pGn,gGn,_Gn,Fje=tn(()=>{"use strict";J();K();z();vv();Ev();EPt={assign:KZe,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:KZe})}},$Ze=Object.prototype.toString,Cje=function(e){var t=$Ze.call(e),r=t==="[object Arguments]";return r||(r=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&$Ze.call(e.callee)==="[object Function]"),r};Object.keys||(jk=Object.prototype.hasOwnProperty,Gle=Object.prototype.toString,YZe=Cje,qle=Object.prototype.propertyIsEnumerable,WZe=!qle.call({toString:null},"toString"),XZe=qle.call((function(){}),"prototype"),eP=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],gz=function(e){var t=e.constructor;return t&&t.prototype===e},ZZe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},jZe=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!ZZe["$"+e]&&jk.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{gz(window[e])}catch{return!0}}catch{return!0}return!1})(),Ije=function(e){var t=e!==null&&typeof e=="object",r=Gle.call(e)==="[object Function]",i=YZe(e),n=t&&Gle.call(e)==="[object String]",o=[];if(!t&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var d=XZe&&r;if(n&&e.length>0&&!jk.call(e,0))for(var g=0;g<e.length;++g)o.push(String(g));if(i&&e.length>0)for(var y=0;y<e.length;++y)o.push(String(y));else for(var _ in e)d&&_==="prototype"||!jk.call(e,_)||o.push(String(_));if(WZe)for(var I=(function(T){if(typeof window>"u"||!jZe)return gz(T);try{return gz(T)}catch{return!1}})(e),N=0;N<eP.length;++N)I&&eP[N]==="constructor"||!jk.call(e,eP[N])||o.push(eP[N]);return o});vPt=Ije,RPt=Array.prototype.slice,SPt=Cje,eje=Object.keys,bz=eje?function(e){return eje(e)}:vPt,tje=Object.keys;bz.shim=function(){return Object.keys?(function(){var e=Object.keys(arguments);return e&&e.length===arguments.length})(1,2)||(Object.keys=function(e){return SPt(e)?tje(RPt.call(e)):tje(e)}):Object.keys=bz,Object.keys||bz};IPt=bz,CPt=IPt,wPt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",OPt=Object.prototype.toString,NPt=Array.prototype.concat,Wle=Object.defineProperty,wje=Wle&&(function(){var e={};try{for(var t in Wle(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch{return!1}})(),xPt=function(e,t,r,i){var n;(!(t in e)||typeof(n=i)=="function"&&OPt.call(n)==="[object Function]"&&i())&&(wje?Wle(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},Oje=function(e,t){var r=arguments.length>2?arguments[2]:{},i=CPt(t);wPt&&(i=NPt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n<i.length;n+=1)xPt(e,i[n],t[i[n]],r[i[n]])};Oje.supportsDescriptors=!!wje;Sz=Oje,TPt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;for(t in e[t]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(e,t);if(n.value!==42||n.enumerable!==!0)return!1}return!0},rje=(typeof globalThis<"u"?globalThis:typeof self<"u"?self:global).Symbol,BPt=TPt,MPt=function(){return typeof rje=="function"&&typeof Symbol=="function"&&typeof rje("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&BPt()},DPt="Function.prototype.bind called on incompatible ",Vle=Array.prototype.slice,kPt=Object.prototype.toString,PPt=function(e){var t=this;if(typeof t!="function"||kPt.call(t)!=="[object Function]")throw new TypeError(DPt+t);for(var r,i=Vle.call(arguments,1),n=function(){if(this instanceof r){var _=t.apply(this,i.concat(Vle.call(arguments)));return Object(_)===_?_:this}return t.apply(e,i.concat(Vle.call(arguments)))},o=Math.max(0,t.length-i.length),d=[],g=0;g<o;g++)d.push("$"+g);if(r=Function("binder","return function ("+d.join(",")+"){ return binder.apply(this,arguments); }")(n),t.prototype){var y=function(){};y.prototype=t.prototype,r.prototype=new y,y.prototype=null}return r},Nje=Function.prototype.bind||PPt,nP=TypeError,fC=Object.getOwnPropertyDescriptor;if(fC)try{fC({},"")}catch{fC=null}Jle=function(){throw new nP},LPt=fC?(function(){try{return arguments.callee,Jle}catch{try{return fC(arguments,"callee").get}catch{return Jle}}})():Jle,uC=MPt(),dC=Object.getPrototypeOf||function(e){return e.__proto__},zle=typeof Uint8Array>"u"?void 0:dC(Uint8Array),Kle={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":uC?dC([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":void 0,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView>"u"?void 0:DataView,"%DataViewPrototype%":typeof DataView>"u"?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array>"u"?void 0:Float32Array.prototype,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array>"u"?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array>"u"?void 0:Int8Array.prototype,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array>"u"?void 0:Int8Array.prototype,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array>"u"?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uC?dC(dC([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%JSONParse%":typeof JSON=="object"?JSON.parse:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&uC?dC(new Map()[Symbol.iterator]()):void 0,"%MapPrototype%":typeof Map>"u"?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%PromisePrototype%":typeof Promise>"u"?void 0:Promise.prototype,"%PromiseProto_then%":typeof Promise>"u"?void 0:Promise.prototype.then,"%Promise_all%":typeof Promise>"u"?void 0:Promise.all,"%Promise_reject%":typeof Promise>"u"?void 0:Promise.reject,"%Promise_resolve%":typeof Promise>"u"?void 0:Promise.resolve,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&uC?dC(new Set()[Symbol.iterator]()):void 0,"%SetPrototype%":typeof Set>"u"?void 0:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":uC?dC(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":uC?Symbol:void 0,"%SymbolPrototype%":uC?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":LPt,"%TypedArray%":zle,"%TypedArrayPrototype%":zle?zle.prototype:void 0,"%TypeError%":nP,"%TypeErrorPrototype%":nP.prototype,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array>"u"?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array>"u"?void 0:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array>"u"?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakMapPrototype%":typeof WeakMap>"u"?void 0:WeakMap.prototype,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%WeakSetPrototype%":typeof WeakSet>"u"?void 0:WeakSet.prototype},nje=Nje.call(Function.call,String.prototype.replace),UPt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,FPt=/\\(\\)?/g,QPt=function(e){var t=[];return nje(e,UPt,(function(r,i,n,o){t[t.length]=n?nje(o,FPt,"$1"):i||r})),t},HPt=function(e,t){if(!(e in Kle))throw new SyntaxError("intrinsic "+e+" does not exist!");if(Kle[e]===void 0&&!t)throw new nP("intrinsic "+e+" exists, but is not available. Please file an issue!");return Kle[e]},GPt=function(e,t){if(typeof e!="string"||e.length===0)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');for(var r=QPt(e),i=HPt("%"+(r.length>0?r[0]:"")+"%",t),n=1;n<r.length;n+=1)if(i!=null)if(fC&&n+1>=r.length){var o=fC(i,r[n]);if(!t&&!(r[n]in i))throw new nP("base intrinsic for "+e+" exists, but the property is not available.");i=o?o.get||o.value:i[r[n]]}else i=i[r[n]];return i},ije=Nje,Tje=GPt("%Function%"),qPt=Tje.apply,VPt=Tje.call;(xje=function(){return ije.apply(VPt,arguments)}).apply=function(){return ije.apply(qPt,arguments)};JPt=xje,oje=function(e){return e!=e},zPt=(Xle=function(e,t){return e===0&&t===0?1/e==1/t:e===t||!(!oje(e)||!oje(t))},Xle),KPt=(Zle=function(){return typeof Object.is=="function"?Object.is:zPt},Zle),$Pt=Sz,YPt=Sz,WPt=Xle,Bje=Zle,XPt=function(){var e=KPt();return $Pt(Object,{is:e},{is:function(){return Object.is!==e}}),e},Mje=JPt(Bje(),Object);YPt(Mje,{getPolyfill:Bje,implementation:WPt,shim:XPt});Dje=Mje;the=function(e){return e!=e};ZPt=the,jPt=(rhe=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:ZPt},Sz),eLt=rhe,tLt=Sz,rLt=the,kje=rhe,nLt=function(){var e=eLt();return jPt(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e},Pje=kje();tLt(Pje,{getPolyfill:kje,implementation:rLt,shim:nLt});iLt=Pje,$le={},aje=!1;sje={},cje=!1;aLt=/a/g.flags!==void 0,Rz=function(e){var t=[];return e.forEach((function(r){return t.push(r)})),t},dje=function(e){var t=[];return e.forEach((function(r,i){return t.push([i,r])})),t},fje=Object.is?Object.is:Dje,Ez=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},jle=Number.isNaN?Number.isNaN:iLt;rP=nhe(Object.prototype.hasOwnProperty),vz=nhe(Object.prototype.propertyIsEnumerable),lje=nhe(Object.prototype.toString),xA=yn.types,sLt=xA.isAnyArrayBuffer,cLt=xA.isArrayBufferView,hje=xA.isDate,_z=xA.isMap,Aje=xA.isRegExp,mz=xA.isSet,uLt=xA.isNativeError,dLt=xA.isBoxedPrimitive,pje=xA.isNumberObject,gje=xA.isStringObject,_je=xA.isBooleanObject,mje=xA.isBigIntObject,fLt=xA.isSymbolObject,lLt=xA.isFloat32Array,hLt=xA.isFloat64Array;Rje={isDeepEqual:function(e,t){return m_(e,t,!1)},isDeepStrictEqual:function(e,t){return m_(e,t,!0)}},Yle={},Sje=!1;To=ehe();To.AssertionError;To.deepEqual;To.deepStrictEqual;To.doesNotReject;To.doesNotThrow;To.equal;To.fail;To.ifError;To.notDeepEqual;To.notDeepStrictEqual;To.notEqual;To.notStrictEqual;To.ok;To.rejects;To.strict;To.strictEqual;To.throws;To.AssertionError;To.deepEqual;To.deepStrictEqual;To.doesNotReject;To.doesNotThrow;To.equal;To.fail;To.ifError;To.notDeepEqual;To.notDeepStrictEqual;To.notEqual;To.notStrictEqual;To.ok;To.rejects;To.strict;To.strictEqual;To.throws;tGn=To.AssertionError,rGn=To.deepEqual,nGn=To.deepStrictEqual,iGn=To.doesNotReject,oGn=To.doesNotThrow,aGn=To.equal,sGn=To.fail,cGn=To.ifError,uGn=To.notDeepEqual,dGn=To.notDeepStrictEqual,fGn=To.notEqual,lGn=To.notStrictEqual,hGn=To.ok,AGn=To.rejects,pGn=To.strict,gGn=To.strictEqual,_Gn=To.throws});function mLt(){if(Qje)return ihe;Qje=!0;var e=za;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function r(o,d){for(var g="",y=0,_=-1,I=0,N,T=0;T<=o.length;++T){if(T<o.length)N=o.charCodeAt(T);else{if(N===47)break;N=47}if(N===47){if(!(_===T-1||I===1))if(_!==T-1&&I===2){if(g.length<2||y!==2||g.charCodeAt(g.length-1)!==46||g.charCodeAt(g.length-2)!==46){if(g.length>2){var M=g.lastIndexOf("/");if(M!==g.length-1){M===-1?(g="",y=0):(g=g.slice(0,M),y=g.length-1-g.lastIndexOf("/")),_=T,I=0;continue}}else if(g.length===2||g.length===1){g="",y=0,_=T,I=0;continue}}d&&(g.length>0?g+="/..":g="..",y=2)}else g.length>0?g+="/"+o.slice(_+1,T):g=o.slice(_+1,T),y=T-_-1;_=T,I=0}else N===46&&I!==-1?++I:I=-1}return g}function i(o,d){var g=d.dir||d.root,y=d.base||(d.name||"")+(d.ext||"");return g?g===d.root?g+y:g+o+y:y}var n={resolve:function(){for(var d="",g=!1,y,_=arguments.length-1;_>=-1&&!g;_--){var I;_>=0?I=arguments[_]:(y===void 0&&(y=e.cwd()),I=y),t(I),I.length!==0&&(d=I+"/"+d,g=I.charCodeAt(0)===47)}return d=r(d,!g),g?d.length>0?"/"+d:"/":d.length>0?d:"."},normalize:function(d){if(t(d),d.length===0)return".";var g=d.charCodeAt(0)===47,y=d.charCodeAt(d.length-1)===47;return d=r(d,!g),d.length===0&&!g&&(d="."),d.length>0&&y&&(d+="/"),g?"/"+d:d},isAbsolute:function(d){return t(d),d.length>0&&d.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var d,g=0;g<arguments.length;++g){var y=arguments[g];t(y),y.length>0&&(d===void 0?d=y:d+="/"+y)}return d===void 0?".":n.normalize(d)},relative:function(d,g){if(t(d),t(g),d===g||(d=n.resolve(d),g=n.resolve(g),d===g))return"";for(var y=1;y<d.length&&d.charCodeAt(y)===47;++y);for(var _=d.length,I=_-y,N=1;N<g.length&&g.charCodeAt(N)===47;++N);for(var T=g.length,M=T-N,D=I<M?I:M,P=-1,G=0;G<=D;++G){if(G===D){if(M>D){if(g.charCodeAt(N+G)===47)return g.slice(N+G+1);if(G===0)return g.slice(N+G)}else I>D&&(d.charCodeAt(y+G)===47?P=G:G===0&&(P=0));break}var q=d.charCodeAt(y+G),Y=g.charCodeAt(N+G);if(q!==Y)break;q===47&&(P=G)}var ne="";for(G=y+P+1;G<=_;++G)(G===_||d.charCodeAt(G)===47)&&(ne.length===0?ne+="..":ne+="/..");return ne.length>0?ne+g.slice(N+P):(N+=P,g.charCodeAt(N)===47&&++N,g.slice(N))},_makeLong:function(d){return d},dirname:function(d){if(t(d),d.length===0)return".";for(var g=d.charCodeAt(0),y=g===47,_=-1,I=!0,N=d.length-1;N>=1;--N)if(g=d.charCodeAt(N),g===47){if(!I){_=N;break}}else I=!1;return _===-1?y?"/":".":y&&_===1?"//":d.slice(0,_)},basename:function(d,g){if(g!==void 0&&typeof g!="string")throw new TypeError('"ext" argument must be a string');t(d);var y=0,_=-1,I=!0,N;if(g!==void 0&&g.length>0&&g.length<=d.length){if(g.length===d.length&&g===d)return"";var T=g.length-1,M=-1;for(N=d.length-1;N>=0;--N){var D=d.charCodeAt(N);if(D===47){if(!I){y=N+1;break}}else M===-1&&(I=!1,M=N+1),T>=0&&(D===g.charCodeAt(T)?--T===-1&&(_=N):(T=-1,_=M))}return y===_?_=M:_===-1&&(_=d.length),d.slice(y,_)}else{for(N=d.length-1;N>=0;--N)if(d.charCodeAt(N)===47){if(!I){y=N+1;break}}else _===-1&&(I=!1,_=N+1);return _===-1?"":d.slice(y,_)}},extname:function(d){t(d);for(var g=-1,y=0,_=-1,I=!0,N=0,T=d.length-1;T>=0;--T){var M=d.charCodeAt(T);if(M===47){if(!I){y=T+1;break}continue}_===-1&&(I=!1,_=T+1),M===46?g===-1?g=T:N!==1&&(N=1):g!==-1&&(N=-1)}return g===-1||_===-1||N===0||N===1&&g===_-1&&g===y+1?"":d.slice(g,_)},format:function(d){if(d===null||typeof d!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof d);return i("/",d)},parse:function(d){t(d);var g={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return g;var y=d.charCodeAt(0),_=y===47,I;_?(g.root="/",I=1):I=0;for(var N=-1,T=0,M=-1,D=!0,P=d.length-1,G=0;P>=I;--P){if(y=d.charCodeAt(P),y===47){if(!D){T=P+1;break}continue}M===-1&&(D=!1,M=P+1),y===46?N===-1?N=P:G!==1&&(G=1):N!==-1&&(G=-1)}return N===-1||M===-1||G===0||G===1&&N===M-1&&N===T+1?M!==-1&&(T===0&&_?g.base=g.name=d.slice(1,M):g.base=g.name=d.slice(T,M)):(T===0&&_?(g.name=d.slice(1,N),g.base=d.slice(1,M)):(g.name=d.slice(T,N),g.base=d.slice(T,M)),g.ext=d.slice(N,M)),T>0?g.dir=d.slice(0,T-1):_&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,ihe=n,ihe}var ihe,Qje,z0,iP=tn(()=>{"use strict";J();K();z();XS();ihe={},Qje=!1;z0=mLt()});var ohe={};gh(ohe,{_makeLong:()=>yLt,basename:()=>bLt,default:()=>z0,delimiter:()=>ELt,dirname:()=>vLt,extname:()=>RLt,format:()=>SLt,isAbsolute:()=>ILt,join:()=>CLt,normalize:()=>wLt,parse:()=>OLt,posix:()=>NLt,relative:()=>xLt,resolve:()=>TLt,sep:()=>BLt,win32:()=>MLt});var yLt,bLt,ELt,vLt,RLt,SLt,ILt,CLt,wLt,OLt,NLt,xLt,TLt,BLt,MLt,Iz=tn(()=>{"use strict";J();K();z();iP();iP();XS();yLt=z0._makeLong,bLt=z0.basename,ELt=z0.delimiter,vLt=z0.dirname,RLt=z0.extname,SLt=z0.format,ILt=z0.isAbsolute,CLt=z0.join,wLt=z0.normalize,OLt=z0.parse,NLt=z0.posix,xLt=z0.relative,TLt=z0.resolve,BLt=z0.sep,MLt=z0.win32});function lC(e){throw new RangeError(LLt[e])}function Hje(e,t){let r=e.split("@"),i="";r.length>1&&(i=r[0]+"@",e=r[1]);let n=(function(o,d){let g=[],y=o.length;for(;y--;)g[y]=d(o[y]);return g})((e=e.replace(PLt,".")).split("."),t).join(".");return i+n}function Jje(e){let t=[],r=0,i=e.length;for(;r<i;){let n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<i){let o=e.charCodeAt(r++);(64512&o)==56320?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),r--)}else t.push(n)}return t}var DLt,kLt,PLt,LLt,Cb,ahe,Gje,zje,qje,Vje,uI,she=tn(()=>{"use strict";J();K();z();DLt=/^xn--/,kLt=/[^\0-\x7E]/,PLt=/[\x2E\u3002\uFF0E\uFF61]/g,LLt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Cb=Math.floor,ahe=String.fromCharCode;Gje=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},zje=function(e,t,r){let i=0;for(e=r?Cb(e/700):e>>1,e+=Cb(e/t);e>455;i+=36)e=Cb(e/35);return Cb(i+36*e/(e+38))},qje=function(e){let t=[],r=e.length,i=0,n=128,o=72,d=e.lastIndexOf("-");d<0&&(d=0);for(let y=0;y<d;++y)e.charCodeAt(y)>=128&&lC("not-basic"),t.push(e.charCodeAt(y));for(let y=d>0?d+1:0;y<r;){let _=i;for(let N=1,T=36;;T+=36){y>=r&&lC("invalid-input");let M=(g=e.charCodeAt(y++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:36;(M>=36||M>Cb((2147483647-i)/N))&&lC("overflow"),i+=M*N;let D=T<=o?1:T>=o+26?26:T-o;if(M<D)break;let P=36-D;N>Cb(2147483647/P)&&lC("overflow"),N*=P}let I=t.length+1;o=zje(i-_,I,_==0),Cb(i/I)>2147483647-n&&lC("overflow"),n+=Cb(i/I),i%=I,t.splice(i++,0,n)}var g;return String.fromCodePoint(...t)},Vje=function(e){let t=[],r=(e=Jje(e)).length,i=128,n=0,o=72;for(let y of e)y<128&&t.push(ahe(y));let d=t.length,g=d;for(d&&t.push("-");g<r;){let y=2147483647;for(let I of e)I>=i&&I<y&&(y=I);let _=g+1;y-i>Cb((2147483647-n)/_)&&lC("overflow"),n+=(y-i)*_,i=y;for(let I of e)if(I<i&&++n>2147483647&&lC("overflow"),I==i){let N=n;for(let T=36;;T+=36){let M=T<=o?1:T>=o+26?26:T-o;if(N<M)break;let D=N-M,P=36-M;t.push(ahe(Gje(M+D%P,0))),N=Cb(D/P)}t.push(ahe(Gje(N,0))),o=zje(n,_,g==d),n=0,++g}++n,++i}return t.join("")},uI={version:"2.1.0",ucs2:{decode:Jje,encode:e=>String.fromCodePoint(...e)},decode:qje,encode:Vje,toASCII:function(e){return Hje(e,(function(t){return kLt.test(t)?"xn--"+Vje(t):t}))},toUnicode:function(e){return Hje(e,(function(t){return DLt.test(t)?qje(t.slice(4).toLowerCase()):t}))}};uI.decode;uI.encode;uI.toASCII;uI.toUnicode;uI.ucs2;uI.version});function ULt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var FLt,oP,QLt,wb,che=tn(()=>{"use strict";J();K();z();FLt=function(e,t,r,i){t=t||"&",r=r||"=";var n={};if(typeof e!="string"||e.length===0)return n;var o=/\+/g;e=e.split(t);var d=1e3;i&&typeof i.maxKeys=="number"&&(d=i.maxKeys);var g=e.length;d>0&&g>d&&(g=d);for(var y=0;y<g;++y){var _,I,N,T,M=e[y].replace(o,"%20"),D=M.indexOf(r);D>=0?(_=M.substr(0,D),I=M.substr(D+1)):(_=M,I=""),N=decodeURIComponent(_),T=decodeURIComponent(I),ULt(n,N)?Array.isArray(n[N])?n[N].push(T):n[N]=[n[N],T]:n[N]=T}return n},oP=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},QLt=function(e,t,r,i){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map((function(n){var o=encodeURIComponent(oP(n))+r;return Array.isArray(e[n])?e[n].map((function(d){return o+encodeURIComponent(oP(d))})).join(t):o+encodeURIComponent(oP(e[n]))})).join(t):i?encodeURIComponent(oP(i))+r+encodeURIComponent(oP(e)):""},wb={};wb.decode=wb.parse=FLt,wb.encode=wb.stringify=QLt;wb.decode;wb.encode;wb.parse;wb.stringify});function y_(){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}function aP(e,t,r){if(e&&Ob.isObject(e)&&e instanceof y_)return e;var i=new y_;return i.parse(e,t,r),i}function $Lt(){if(Wje)return fhe;Wje=!0;var e=Mo;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function r(o,d){for(var g="",y=0,_=-1,I=0,N,T=0;T<=o.length;++T){if(T<o.length)N=o.charCodeAt(T);else{if(N===47)break;N=47}if(N===47){if(!(_===T-1||I===1))if(_!==T-1&&I===2){if(g.length<2||y!==2||g.charCodeAt(g.length-1)!==46||g.charCodeAt(g.length-2)!==46){if(g.length>2){var M=g.lastIndexOf("/");if(M!==g.length-1){M===-1?(g="",y=0):(g=g.slice(0,M),y=g.length-1-g.lastIndexOf("/")),_=T,I=0;continue}}else if(g.length===2||g.length===1){g="",y=0,_=T,I=0;continue}}d&&(g.length>0?g+="/..":g="..",y=2)}else g.length>0?g+="/"+o.slice(_+1,T):g=o.slice(_+1,T),y=T-_-1;_=T,I=0}else N===46&&I!==-1?++I:I=-1}return g}function i(o,d){var g=d.dir||d.root,y=d.base||(d.name||"")+(d.ext||"");return g?g===d.root?g+y:g+o+y:y}var n={resolve:function(){for(var d="",g=!1,y,_=arguments.length-1;_>=-1&&!g;_--){var I;_>=0?I=arguments[_]:(y===void 0&&(y=e.cwd()),I=y),t(I),I.length!==0&&(d=I+"/"+d,g=I.charCodeAt(0)===47)}return d=r(d,!g),g?d.length>0?"/"+d:"/":d.length>0?d:"."},normalize:function(d){if(t(d),d.length===0)return".";var g=d.charCodeAt(0)===47,y=d.charCodeAt(d.length-1)===47;return d=r(d,!g),d.length===0&&!g&&(d="."),d.length>0&&y&&(d+="/"),g?"/"+d:d},isAbsolute:function(d){return t(d),d.length>0&&d.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var d,g=0;g<arguments.length;++g){var y=arguments[g];t(y),y.length>0&&(d===void 0?d=y:d+="/"+y)}return d===void 0?".":n.normalize(d)},relative:function(d,g){if(t(d),t(g),d===g||(d=n.resolve(d),g=n.resolve(g),d===g))return"";for(var y=1;y<d.length&&d.charCodeAt(y)===47;++y);for(var _=d.length,I=_-y,N=1;N<g.length&&g.charCodeAt(N)===47;++N);for(var T=g.length,M=T-N,D=I<M?I:M,P=-1,G=0;G<=D;++G){if(G===D){if(M>D){if(g.charCodeAt(N+G)===47)return g.slice(N+G+1);if(G===0)return g.slice(N+G)}else I>D&&(d.charCodeAt(y+G)===47?P=G:G===0&&(P=0));break}var q=d.charCodeAt(y+G),Y=g.charCodeAt(N+G);if(q!==Y)break;q===47&&(P=G)}var ne="";for(G=y+P+1;G<=_;++G)(G===_||d.charCodeAt(G)===47)&&(ne.length===0?ne+="..":ne+="/..");return ne.length>0?ne+g.slice(N+P):(N+=P,g.charCodeAt(N)===47&&++N,g.slice(N))},_makeLong:function(d){return d},dirname:function(d){if(t(d),d.length===0)return".";for(var g=d.charCodeAt(0),y=g===47,_=-1,I=!0,N=d.length-1;N>=1;--N)if(g=d.charCodeAt(N),g===47){if(!I){_=N;break}}else I=!1;return _===-1?y?"/":".":y&&_===1?"//":d.slice(0,_)},basename:function(d,g){if(g!==void 0&&typeof g!="string")throw new TypeError('"ext" argument must be a string');t(d);var y=0,_=-1,I=!0,N;if(g!==void 0&&g.length>0&&g.length<=d.length){if(g.length===d.length&&g===d)return"";var T=g.length-1,M=-1;for(N=d.length-1;N>=0;--N){var D=d.charCodeAt(N);if(D===47){if(!I){y=N+1;break}}else M===-1&&(I=!1,M=N+1),T>=0&&(D===g.charCodeAt(T)?--T===-1&&(_=N):(T=-1,_=M))}return y===_?_=M:_===-1&&(_=d.length),d.slice(y,_)}else{for(N=d.length-1;N>=0;--N)if(d.charCodeAt(N)===47){if(!I){y=N+1;break}}else _===-1&&(I=!1,_=N+1);return _===-1?"":d.slice(y,_)}},extname:function(d){t(d);for(var g=-1,y=0,_=-1,I=!0,N=0,T=d.length-1;T>=0;--T){var M=d.charCodeAt(T);if(M===47){if(!I){y=T+1;break}continue}_===-1&&(I=!1,_=T+1),M===46?g===-1?g=T:N!==1&&(N=1):g!==-1&&(N=-1)}return g===-1||_===-1||N===0||N===1&&g===_-1&&g===y+1?"":d.slice(g,_)},format:function(d){if(d===null||typeof d!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof d);return i("/",d)},parse:function(d){t(d);var g={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return g;var y=d.charCodeAt(0),_=y===47,I;_?(g.root="/",I=1):I=0;for(var N=-1,T=0,M=-1,D=!0,P=d.length-1,G=0;P>=I;--P){if(y=d.charCodeAt(P),y===47){if(!D){T=P+1;break}continue}M===-1&&(D=!1,M=P+1),y===46?N===-1?N=P:G!==1&&(G=1):N!==-1&&(G=-1)}return N===-1||M===-1||G===0||G===1&&N===M-1&&N===T+1?M!==-1&&(T===0&&_?g.base=g.name=d.slice(1,M):g.base=g.name=d.slice(T,M)):(T===0&&_?(g.name=d.slice(1,N),g.base=d.slice(1,M)):(g.name=d.slice(T,N),g.base=d.slice(T,M)),g.ext=d.slice(N,M)),T>0?g.dir=d.slice(0,T-1):_&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,fhe=n,fhe}function aUt(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return hhe?sUt(e):cUt(e)}function sUt(e){let t=e.hostname,r=e.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let n=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&n===102||r[i+1]==="5"&&n===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(eUt,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let i=r.codePointAt(1)|32,n=r[2];if(i<ZLt||i>jLt||n!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function cUt(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let i=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&i===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function uUt(e){let t=Xje.resolve(e),r=e.charCodeAt(e.length-1);(r===XLt||hhe&&r===WLt)&&t[t.length-1]!==Xje.sep&&(t+="/");let i=new URL("file://");return t.includes("%")&&(t=t.replace(tUt,"%25")),!hhe&&t.includes("\\")&&(t=t.replace(rUt,"%5C")),t.includes(`
|
|
`)&&(t=t.replace(nUt,"%0A")),t.includes("\r")&&(t=t.replace(iUt,"%0D")),t.includes(" ")&&(t=t.replace(oUt,"%09")),i.pathname=t,i}function phe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Ahe?EUt(e):vUt(e)}function EUt(e){let t=e.hostname,r=e.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let n=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&n===102||r[i+1]==="5"&&n===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(pUt,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let i=r.codePointAt(1)|32,n=r[2];if(i<hUt||i>AUt||n!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function vUt(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let i=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&i===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function RUt(e){let t=z0.resolve(e),r=e.charCodeAt(e.length-1);(r===lUt||Ahe&&r===fUt)&&t[t.length-1]!==z0.sep&&(t+="/");let i=new URL("file://");return t.includes("%")&&(t=t.replace(gUt,"%25")),!Ahe&&t.includes("\\")&&(t=t.replace(_Ut,"%5C")),t.includes(`
|
|
`)&&(t=t.replace(mUt,"%0A")),t.includes("\r")&&(t=t.replace(yUt,"%0D")),t.includes(" ")&&(t=t.replace(bUt,"%09")),i.pathname=t,i}var uu,HLt,Ob,GLt,qLt,VLt,JLt,lhe,Kje,$je,Yje,zLt,KLt,uhe,QN,dhe,fhe,Wje,Xje,YLt,WLt,XLt,ZLt,jLt,hhe,eUt,tUt,rUt,nUt,iUt,oUt,dUt,zGn,KGn,$Gn,YGn,WGn,XGn,fUt,lUt,hUt,AUt,Ahe,pUt,gUt,_Ut,mUt,yUt,bUt,Zje=tn(()=>{"use strict";J();K();z();she();che();Ev();iP();XS();uu={},HLt=uI,Ob={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}};uu.parse=aP,uu.resolve=function(e,t){return aP(e,!1,!0).resolve(t)},uu.resolveObject=function(e,t){return e?aP(e,!1,!0).resolveObject(t):t},uu.format=function(e){return Ob.isString(e)&&(e=aP(e)),e instanceof y_?e.format():y_.prototype.format.call(e)},uu.Url=y_;GLt=/^([a-z0-9.+-]+:)/i,qLt=/:[0-9]*$/,VLt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,JLt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
`," "]),lhe=["'"].concat(JLt),Kje=["%","/","?",";","#"].concat(lhe),$je=["/","?","#"],Yje=/^[+a-z0-9A-Z_-]{0,63}$/,zLt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,KLt={javascript:!0,"javascript:":!0},uhe={javascript:!0,"javascript:":!0},QN={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},dhe=wb;y_.prototype.parse=function(e,t,r){if(!Ob.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),n=i!==-1&&i<e.indexOf("#")?"?":"#",o=e.split(n);o[0]=o[0].replace(/\\/g,"/");var d=e=o.join(n);if(d=d.trim(),!r&&e.split("#").length===1){var g=VLt.exec(d);if(g)return this.path=d,this.href=d,this.pathname=g[1],g[2]?(this.search=g[2],this.query=t?dhe.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=GLt.exec(d);if(y){var _=(y=y[0]).toLowerCase();this.protocol=_,d=d.substr(y.length)}if(r||y||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var I=d.substr(0,2)==="//";!I||y&&uhe[y]||(d=d.substr(2),this.slashes=!0)}if(!uhe[y]&&(I||y&&!QN[y])){for(var N,T,M=-1,D=0;D<$je.length;D++)(P=d.indexOf($je[D]))!==-1&&(M===-1||P<M)&&(M=P);for((T=M===-1?d.lastIndexOf("@"):d.lastIndexOf("@",M))!==-1&&(N=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(N)),M=-1,D=0;D<Kje.length;D++){var P;(P=d.indexOf(Kje[D]))!==-1&&(M===-1||P<M)&&(M=P)}M===-1&&(M=d.length),this.host=d.slice(0,M),d=d.slice(M),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var q=this.hostname.split(/\./),Y=(D=0,q.length);D<Y;D++){var ne=q[D];if(ne&&!ne.match(Yje)){for(var ce="",le=0,pe=ne.length;le<pe;le++)ne.charCodeAt(le)>127?ce+="x":ce+=ne[le];if(!ce.match(Yje)){var ae=q.slice(0,D),W=q.slice(D+1),se=ne.match(zLt);se&&(ae.push(se[1]),W.unshift(se[2])),W.length&&(d="/"+W.join(".")+d),this.hostname=ae.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=HLt.toASCII(this.hostname));var O=this.port?":"+this.port:"",s=this.hostname||"";this.host=s+O,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!KLt[_])for(D=0,Y=lhe.length;D<Y;D++){var l=lhe[D];if(d.indexOf(l)!==-1){var A=encodeURIComponent(l);A===l&&(A=escape(l)),d=d.split(l).join(A)}}var m=d.indexOf("#");m!==-1&&(this.hash=d.substr(m),d=d.slice(0,m));var E=d.indexOf("?");if(E!==-1?(this.search=d.substr(E),this.query=d.substr(E+1),t&&(this.query=dhe.parse(this.query)),d=d.slice(0,E)):t&&(this.search="",this.query={}),d&&(this.pathname=d),QN[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){O=this.pathname||"";var w=this.search||"";this.path=O+w}return this.href=this.format(),this},y_.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",n=!1,o="";this.host?n=e+this.host:this.hostname&&(n=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&Ob.isObject(this.query)&&Object.keys(this.query).length&&(o=dhe.stringify(this.query));var d=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||QN[t])&&n!==!1?(n="//"+(n||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):n||(n=""),i&&i.charAt(0)!=="#"&&(i="#"+i),d&&d.charAt(0)!=="?"&&(d="?"+d),t+n+(r=r.replace(/[?#]/g,(function(g){return encodeURIComponent(g)})))+(d=d.replace("#","%23"))+i},y_.prototype.resolve=function(e){return this.resolveObject(aP(e,!1,!0)).format()},y_.prototype.resolveObject=function(e){if(Ob.isString(e)){var t=new y_;t.parse(e,!1,!0),e=t}for(var r=new y_,i=Object.keys(this),n=0;n<i.length;n++){var o=i[n];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var d=Object.keys(e),g=0;g<d.length;g++){var y=d[g];y!=="protocol"&&(r[y]=e[y])}return QN[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!QN[e.protocol]){for(var _=Object.keys(e),I=0;I<_.length;I++){var N=_[I];r[N]=e[N]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||uhe[e.protocol])r.pathname=e.pathname;else{for(var T=(e.pathname||"").split("/");T.length&&!(e.host=T.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}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 M=r.pathname||"",D=r.search||"";r.path=M+D}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var P=r.pathname&&r.pathname.charAt(0)==="/",G=e.host||e.pathname&&e.pathname.charAt(0)==="/",q=G||P||r.host&&e.pathname,Y=q,ne=r.pathname&&r.pathname.split("/")||[],ce=(T=e.pathname&&e.pathname.split("/")||[],r.protocol&&!QN[r.protocol]);if(ce&&(r.hostname="",r.port=null,r.host&&(ne[0]===""?ne[0]=r.host:ne.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(T[0]===""?T[0]=e.host:T.unshift(e.host)),e.host=null),q=q&&(T[0]===""||ne[0]==="")),G)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,ne=T;else if(T.length)ne||(ne=[]),ne.pop(),ne=ne.concat(T),r.search=e.search,r.query=e.query;else if(!Ob.isNullOrUndefined(e.search))return ce&&(r.hostname=r.host=ne.shift(),(se=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=se.shift(),r.host=r.hostname=se.shift())),r.search=e.search,r.query=e.query,Ob.isNull(r.pathname)&&Ob.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!ne.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var le=ne.slice(-1)[0],pe=(r.host||e.host||ne.length>1)&&(le==="."||le==="..")||le==="",ae=0,W=ne.length;W>=0;W--)(le=ne[W])==="."?ne.splice(W,1):le===".."?(ne.splice(W,1),ae++):ae&&(ne.splice(W,1),ae--);if(!q&&!Y)for(;ae--;ae)ne.unshift("..");!q||ne[0]===""||ne[0]&&ne[0].charAt(0)==="/"||ne.unshift(""),pe&&ne.join("/").substr(-1)!=="/"&&ne.push("");var se,O=ne[0]===""||ne[0]&&ne[0].charAt(0)==="/";return ce&&(r.hostname=r.host=O?"":ne.length?ne.shift():"",(se=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=se.shift(),r.host=r.hostname=se.shift())),(q=q||r.host&&ne.length)&&!O&&ne.unshift(""),ne.length?r.pathname=ne.join("/"):(r.pathname=null,r.path=null),Ob.isNull(r.pathname)&&Ob.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},y_.prototype.parseHost=function(){var e=this.host,t=qLt.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};uu.Url;uu.format;uu.resolve;uu.resolveObject;fhe={},Wje=!1;Xje=$Lt(),YLt=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;uu.URL=typeof URL<"u"?URL:null;uu.pathToFileURL=uUt;uu.fileURLToPath=aUt;uu.Url;uu.format;uu.resolve;uu.resolveObject;uu.URL;WLt=92,XLt=47,ZLt=97,jLt=122,hhe=YLt==="win32",eUt=/\//g,tUt=/%/g,rUt=/\\/g,nUt=/\n/g,iUt=/\r/g,oUt=/\t/g;dUt=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;uu.URL=typeof URL<"u"?URL:null;uu.pathToFileURL=RUt;uu.fileURLToPath=phe;zGn=uu.Url,KGn=uu.format,$Gn=uu.resolve,YGn=uu.resolveObject,WGn=uu.parse,XGn=uu.URL,fUt=92,lUt=47,hUt=97,AUt=122,Ahe=dUt==="win32",pUt=/\//g,gUt=/%/g,_Ut=/\\/g,mUt=/\n/g,yUt=/\r/g,bUt=/\t/g});var yhe={};gh(yhe,{Dir:()=>hQt,Dirent:()=>AQt,F_OK:()=>EQt,FileReadStream:()=>mQt,FileWriteStream:()=>yQt,R_OK:()=>vQt,ReadStream:()=>gQt,Stats:()=>pQt,W_OK:()=>RQt,WriteStream:()=>_Qt,X_OK:()=>SQt,_toUnixTimestamp:()=>bQt,access:()=>QUt,accessSync:()=>HUt,appendFile:()=>UUt,appendFileSync:()=>FUt,chmod:()=>VUt,chmodSync:()=>JUt,chown:()=>GUt,chownSync:()=>qUt,close:()=>zUt,closeSync:()=>KUt,constants:()=>IQt,copyFile:()=>$Ut,copyFileSync:()=>YUt,cp:()=>WUt,cpSync:()=>XUt,createReadStream:()=>ZUt,createWriteStream:()=>jUt,default:()=>t0,exists:()=>eFt,existsSync:()=>Iet,fchmod:()=>nFt,fchmodSync:()=>iFt,fchown:()=>tFt,fchownSync:()=>rFt,fdatasync:()=>oFt,fdatasyncSync:()=>aFt,fstat:()=>sFt,fstatSync:()=>cFt,fsync:()=>uFt,fsyncSync:()=>dFt,ftruncate:()=>fFt,ftruncateSync:()=>lFt,futimes:()=>hFt,futimesSync:()=>AFt,lchmod:()=>_Ft,lchmodSync:()=>mFt,lchown:()=>pFt,lchownSync:()=>gFt,link:()=>yFt,linkSync:()=>bFt,lstat:()=>EFt,lstatSync:()=>vFt,mkdir:()=>RFt,mkdirSync:()=>SFt,mkdtemp:()=>IFt,mkdtempSync:()=>CFt,open:()=>wFt,openSync:()=>OFt,opendir:()=>NFt,opendirSync:()=>xFt,promises:()=>CQt,read:()=>MFt,readFile:()=>LFt,readFileSync:()=>UFt,readSync:()=>DFt,readdir:()=>TFt,readdirSync:()=>BFt,readlink:()=>FFt,readlinkSync:()=>QFt,readv:()=>kFt,readvSync:()=>PFt,realpath:()=>HFt,realpathSync:()=>GFt,rename:()=>qFt,renameSync:()=>VFt,rm:()=>JFt,rmSync:()=>zFt,rmdir:()=>KFt,rmdirSync:()=>$Ft,stat:()=>YFt,statSync:()=>WFt,symlink:()=>XFt,symlinkSync:()=>ZFt,truncate:()=>jFt,truncateSync:()=>eQt,unlink:()=>rQt,unlinkSync:()=>nQt,unwatchFile:()=>tQt,utimes:()=>iQt,utimesSync:()=>oQt,watch:()=>aQt,watchFile:()=>sQt,write:()=>uQt,writeFile:()=>cQt,writeFileSync:()=>Cet,writeSync:()=>dQt,writev:()=>fQt,writevSync:()=>lQt});function uP(){return jje||(jje=!0,Object.defineProperty(sP,"__esModule",{value:!0}),sP.constants=void 0,sP.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}),sP}function SUt(){return eet||(eet=!0,typeof BigInt=="function"?Cz.default=BigInt:Cz.default=function(){throw new Error("BigInt is not supported in this environment.")}),Cz}function ghe(){if(tet)return HN;tet=!0,Object.defineProperty(HN,"__esModule",{value:!0}),HN.Stats=void 0;var e=uP(),t=SUt(),r=e.constants.S_IFMT,i=e.constants.S_IFDIR,n=e.constants.S_IFREG,o=e.constants.S_IFBLK,d=e.constants.S_IFCHR,g=e.constants.S_IFLNK,y=e.constants.S_IFIFO,_=e.constants.S_IFSOCK,I=(function(){function N(){}return N.build=function(T,M){M===void 0&&(M=!1);var D=new N,P=T.uid,G=T.gid,q=T.atime,Y=T.mtime,ne=T.ctime,ce=M?t.default:function(pe){return pe};D.uid=ce(P),D.gid=ce(G),D.rdev=ce(0),D.blksize=ce(4096),D.ino=ce(T.ino),D.size=ce(T.getSize()),D.blocks=ce(1),D.atime=q,D.mtime=Y,D.ctime=ne,D.birthtime=ne,D.atimeMs=ce(q.getTime()),D.mtimeMs=ce(Y.getTime());var le=ce(ne.getTime());return D.ctimeMs=le,D.birthtimeMs=le,D.dev=ce(0),D.mode=ce(T.mode),D.nlink=ce(T.nlink),D},N.prototype._checkModeProperty=function(T){return(Number(this.mode)&r)===T},N.prototype.isDirectory=function(){return this._checkModeProperty(i)},N.prototype.isFile=function(){return this._checkModeProperty(n)},N.prototype.isBlockDevice=function(){return this._checkModeProperty(o)},N.prototype.isCharacterDevice=function(){return this._checkModeProperty(d)},N.prototype.isSymbolicLink=function(){return this._checkModeProperty(g)},N.prototype.isFIFO=function(){return this._checkModeProperty(y)},N.prototype.isSocket=function(){return this._checkModeProperty(_)},N})();return HN.Stats=I,HN.default=I,HN}function _he(){if(ret)return Qm;ret=!0;var e=Qm&&Qm.__spreadArray||function(o,d,g){if(g||arguments.length===2)for(var y=0,_=d.length,I;y<_;y++)(I||!(y in d))&&(I||(I=Array.prototype.slice.call(d,0,y)),I[y]=d[y]);return o.concat(I||Array.prototype.slice.call(d))};Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.bufferFrom=Qm.bufferAllocUnsafe=Qm.Buffer=void 0;var t=Nu;Object.defineProperty(Qm,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});function r(o){for(var d=[],g=1;g<arguments.length;g++)d[g-1]=arguments[g];return new(t.Buffer.bind.apply(t.Buffer,e([void 0,o],d,!1)))}var i=t.Buffer.allocUnsafe||r;Qm.bufferAllocUnsafe=i;var n=t.Buffer.from||r;return Qm.bufferFrom=n,Qm}function _et(){if(net)return Ff;net=!0;var e=Ff&&Ff.__extends||(function(){var D=function(P,G){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,Y){q.__proto__=Y}||function(q,Y){for(var ne in Y)Object.prototype.hasOwnProperty.call(Y,ne)&&(q[ne]=Y[ne])},D(P,G)};return function(P,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");D(P,G);function q(){this.constructor=P}P.prototype=G===null?Object.create(G):(q.prototype=G.prototype,new q)}})();Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.E=Ff.AssertionError=Ff.message=Ff.RangeError=Ff.TypeError=Ff.Error=void 0;var t=To,r=yn,i=typeof Symbol>"u"?"_kCode":Symbol("code"),n={};function o(D){return(function(P){e(G,P);function G(q){for(var Y=[],ne=1;ne<arguments.length;ne++)Y[ne-1]=arguments[ne];var ce=P.call(this,y(q,Y))||this;return ce.code=q,ce[i]=q,ce.name=P.prototype.name+" ["+ce[i]+"]",ce}return G})(D)}var d=typeof globalThis<"u"?globalThis:IUt,g=(function(D){e(P,D);function P(G){var q=this;if(typeof G!="object"||G===null)throw new Ff.TypeError("ERR_INVALID_ARG_TYPE","options","object");return G.message?q=D.call(this,G.message)||this:q=D.call(this,r.inspect(G.actual).slice(0,128)+" "+(G.operator+" "+r.inspect(G.expected).slice(0,128)))||this,q.generatedMessage=!G.message,q.name="AssertionError [ERR_ASSERTION]",q.code="ERR_ASSERTION",q.actual=G.actual,q.expected=G.expected,q.operator=G.operator,Ff.Error.captureStackTrace(q,G.stackStartFunction),q}return P})(d.Error);Ff.AssertionError=g;function y(D,P){t.strictEqual(typeof D,"string");var G=n[D];t(G,"An invalid error message key was used: "+D+".");var q;if(typeof G=="function")q=G;else{if(q=r.format,P===void 0||P.length===0)return G;P.unshift(G)}return String(q.apply(null,P))}Ff.message=y;function _(D,P){n[D]=typeof P=="function"?P:String(P)}Ff.E=_,Ff.Error=o(d.Error),Ff.TypeError=o(d.TypeError),Ff.RangeError=o(d.RangeError),_("ERR_ARG_NOT_ITERABLE","%s must be iterable"),_("ERR_ASSERTION","%s"),_("ERR_BUFFER_OUT_OF_BOUNDS",M),_("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),_("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),_("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),_("ERR_DNS_SET_SERVERS_FAILED",function(D,P){return'c-ares failed to set servers: "'+D+'" ['+P+"]"}),_("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),_("ERR_ENCODING_NOT_SUPPORTED",function(D){return'The "'+D+'" encoding is not supported'}),_("ERR_ENCODING_INVALID_ENCODED_DATA",function(D){return"The encoded data was not valid for encoding "+D}),_("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),_("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),_("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),_("ERR_INDEX_OUT_OF_RANGE","Index out of range"),_("ERR_INVALID_ARG_TYPE",I),_("ERR_INVALID_ARRAY_LENGTH",function(D,P,G){return t.strictEqual(typeof G,"number"),'The array "'+D+'" (length '+G+") must be of length "+P+"."}),_("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),_("ERR_INVALID_CALLBACK","Callback must be a function"),_("ERR_INVALID_CHAR","Invalid character in %s"),_("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),_("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),_("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),_("ERR_INVALID_FILE_URL_PATH","File URL path %s"),_("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),_("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),_("ERR_INVALID_OPT_VALUE",function(D,P){return'The value "'+String(P)+'" is invalid for option "'+D+'"'}),_("ERR_INVALID_OPT_VALUE_ENCODING",function(D){return'The value "'+String(D)+'" is invalid for option "encoding"'}),_("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),_("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),_("ERR_INVALID_THIS",'Value of "this" must be of type %s'),_("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),_("ERR_INVALID_URL","Invalid URL: %s"),_("ERR_INVALID_URL_SCHEME",function(D){return"The URL must be "+T(D,"scheme")}),_("ERR_IPC_CHANNEL_CLOSED","Channel closed"),_("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),_("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),_("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),_("ERR_MISSING_ARGS",N),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),_("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),_("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),_("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),_("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),_("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),_("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),_("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),_("ERR_SOCKET_CANNOT_SEND","Unable to send data"),_("ERR_SOCKET_CLOSED","Socket is closed"),_("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),_("ERR_STDERR_CLOSE","process.stderr cannot be closed"),_("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),_("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),_("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),_("ERR_TLS_DH_PARAM_SIZE",function(D){return"DH parameter size "+D+" is less than 2048"}),_("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),_("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),_("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),_("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),_("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),_("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),_("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),_("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),_("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),_("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),_("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl");function I(D,P,G){t(D,"name is required");var q;P.includes("not ")?(q="must not be",P=P.split("not ")[1]):q="must be";var Y;if(Array.isArray(D)){var ne=D.map(function(le){return'"'+le+'"'}).join(", ");Y="The "+ne+" arguments "+q+" "+T(P,"type")}else if(D.includes(" argument"))Y="The "+D+" "+q+" "+T(P,"type");else{var ce=D.includes(".")?"property":"argument";Y='The "'+D+'" '+ce+" "+q+" "+T(P,"type")}return arguments.length>=3&&(Y+=". Received type "+(G!==null?typeof G:"null")),Y}function N(){for(var D=[],P=0;P<arguments.length;P++)D[P]=arguments[P];t(D.length>0,"At least one arg needs to be specified");var G="The ",q=D.length;switch(D=D.map(function(Y){return'"'+Y+'"'}),q){case 1:G+=D[0]+" argument";break;case 2:G+=D[0]+" and "+D[1]+" arguments";break;default:G+=D.slice(0,q-1).join(", "),G+=", and "+D[q-1]+" arguments";break}return G+" must be specified"}function T(D,P){if(t(D,"expected is required"),t(typeof P=="string","thing is required"),Array.isArray(D)){var G=D.length;return t(G>0,"At least one expected value needs to be specified"),D=D.map(function(q){return String(q)}),G>2?"one of "+P+" "+D.slice(0,G-1).join(", ")+", or "+D[G-1]:G===2?"one of "+P+" "+D[0]+" or "+D[1]:"of "+P+" "+D[0]}else return"of "+P+" "+String(D)}function M(D,P){return P?"Attempt to write outside buffer bounds":'"'+D+'" is outside of buffer bounds'}return Ff}function met(){if(iet)return Nb;iet=!0,Object.defineProperty(Nb,"__esModule",{value:!0}),Nb.strToEncoding=Nb.assertEncoding=Nb.ENCODING_UTF8=void 0;var e=_he(),t=_et();Nb.ENCODING_UTF8="utf8";function r(n){if(n&&!e.Buffer.isEncoding(n))throw new t.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",n)}Nb.assertEncoding=r;function i(n,o){return!o||o===Nb.ENCODING_UTF8?n:o==="buffer"?new e.Buffer(n):new e.Buffer(n).toString(o)}return Nb.strToEncoding=i,Nb}function yet(){if(oet)return GN;oet=!0,Object.defineProperty(GN,"__esModule",{value:!0}),GN.Dirent=void 0;var e=uP(),t=met(),r=e.constants.S_IFMT,i=e.constants.S_IFDIR,n=e.constants.S_IFREG,o=e.constants.S_IFBLK,d=e.constants.S_IFCHR,g=e.constants.S_IFLNK,y=e.constants.S_IFIFO,_=e.constants.S_IFSOCK,I=(function(){function N(){this.name="",this.mode=0}return N.build=function(T,M){var D=new N,P=T.getNode().mode;return D.name=(0,t.strToEncoding)(T.getName(),M),D.mode=P,D},N.prototype._checkModeProperty=function(T){return(this.mode&r)===T},N.prototype.isDirectory=function(){return this._checkModeProperty(i)},N.prototype.isFile=function(){return this._checkModeProperty(n)},N.prototype.isBlockDevice=function(){return this._checkModeProperty(o)},N.prototype.isCharacterDevice=function(){return this._checkModeProperty(d)},N.prototype.isSymbolicLink=function(){return this._checkModeProperty(g)},N.prototype.isFIFO=function(){return this._checkModeProperty(y)},N.prototype.isSocket=function(){return this._checkModeProperty(_)},N})();return GN.Dirent=I,GN.default=I,GN}function bet(){if(aet)return wz;aet=!0;var e=za;Object.defineProperty(wz,"__esModule",{value:!0});var t;return typeof e.nextTick=="function"?t=e.nextTick.bind(typeof globalThis<"u"?globalThis:set):t=setTimeout.bind(typeof globalThis<"u"?globalThis:set),wz.default=t,wz}function Eet(){if(cet)return qN;cet=!0;var e=za;Object.defineProperty(qN,"__esModule",{value:!0}),qN.createProcess=void 0;var t=function(){if(typeof e<"u")return e;try{return za}catch{return}};function r(){var i=t()||{};return i.getuid||(i.getuid=function(){return 0}),i.getgid||(i.getgid=function(){return 0}),i.cwd||(i.cwd=function(){return"/"}),i.nextTick||(i.nextTick=bet().default),i.emitWarning||(i.emitWarning=function(n,o){console.warn(""+o+(o?": ":"")+n)}),i.env||(i.env={}),i}return qN.createProcess=r,qN.default=r(),qN}function CUt(){if(uet)return Dp;uet=!0;var e=Dp&&Dp.__extends||(function(){var D=function(P,G){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,Y){q.__proto__=Y}||function(q,Y){for(var ne in Y)Object.prototype.hasOwnProperty.call(Y,ne)&&(q[ne]=Y[ne])},D(P,G)};return function(P,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");D(P,G);function q(){this.constructor=P}P.prototype=G===null?Object.create(G):(q.prototype=G.prototype,new q)}})();Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.File=Dp.Link=Dp.Node=Dp.SEP=void 0;var t=Eet(),r=_he(),i=uP(),n=xc,o=ghe(),d=i.constants.S_IFMT,g=i.constants.S_IFDIR,y=i.constants.S_IFREG,_=i.constants.S_IFLNK,I=i.constants.O_APPEND;Dp.SEP="/";var N=(function(D){e(P,D);function P(G,q){q===void 0&&(q=438);var Y=D.call(this)||this;return Y.uid=t.default.getuid(),Y.gid=t.default.getgid(),Y.atime=new Date,Y.mtime=new Date,Y.ctime=new Date,Y.perm=438,Y.mode=y,Y.nlink=1,Y.perm=q,Y.mode|=q,Y.ino=G,Y}return P.prototype.getString=function(G){return G===void 0&&(G="utf8"),this.getBuffer().toString(G)},P.prototype.setString=function(G){this.buf=(0,r.bufferFrom)(G,"utf8"),this.touch()},P.prototype.getBuffer=function(){return this.buf||this.setBuffer((0,r.bufferAllocUnsafe)(0)),(0,r.bufferFrom)(this.buf)},P.prototype.setBuffer=function(G){this.buf=(0,r.bufferFrom)(G),this.touch()},P.prototype.getSize=function(){return this.buf?this.buf.length:0},P.prototype.setModeProperty=function(G){this.mode=this.mode&~d|G},P.prototype.setIsFile=function(){this.setModeProperty(y)},P.prototype.setIsDirectory=function(){this.setModeProperty(g)},P.prototype.setIsSymlink=function(){this.setModeProperty(_)},P.prototype.isFile=function(){return(this.mode&d)===y},P.prototype.isDirectory=function(){return(this.mode&d)===g},P.prototype.isSymlink=function(){return(this.mode&d)===_},P.prototype.makeSymlink=function(G){this.symlink=G,this.setIsSymlink()},P.prototype.write=function(G,q,Y,ne){if(q===void 0&&(q=0),Y===void 0&&(Y=G.length),ne===void 0&&(ne=0),this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),ne+Y>this.buf.length){var ce=(0,r.bufferAllocUnsafe)(ne+Y);this.buf.copy(ce,0,0,this.buf.length),this.buf=ce}return G.copy(this.buf,ne,q,q+Y),this.touch(),Y},P.prototype.read=function(G,q,Y,ne){q===void 0&&(q=0),Y===void 0&&(Y=G.byteLength),ne===void 0&&(ne=0),this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0));var ce=Y;return ce>G.byteLength&&(ce=G.byteLength),ce+ne>this.buf.length&&(ce=this.buf.length-ne),this.buf.copy(G,q,ne,ne+ce),ce},P.prototype.truncate=function(G){if(G===void 0&&(G=0),!G)this.buf=(0,r.bufferAllocUnsafe)(0);else if(this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),G<=this.buf.length)this.buf=this.buf.slice(0,G);else{var q=(0,r.bufferAllocUnsafe)(0);this.buf.copy(q),q.fill(0,G)}this.touch()},P.prototype.chmod=function(G){this.perm=G,this.mode=this.mode&-512|G,this.touch()},P.prototype.chown=function(G,q){this.uid=G,this.gid=q,this.touch()},P.prototype.touch=function(){this.mtime=new Date,this.emit("change",this)},P.prototype.canRead=function(G,q){return G===void 0&&(G=t.default.getuid()),q===void 0&&(q=t.default.getgid()),!!(this.perm&4||q===this.gid&&this.perm&32||G===this.uid&&this.perm&256)},P.prototype.canWrite=function(G,q){return G===void 0&&(G=t.default.getuid()),q===void 0&&(q=t.default.getgid()),!!(this.perm&2||q===this.gid&&this.perm&16||G===this.uid&&this.perm&128)},P.prototype.del=function(){this.emit("delete",this)},P.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}},P})(n.EventEmitter);Dp.Node=N;var T=(function(D){e(P,D);function P(G,q,Y){var ne=D.call(this)||this;return ne.children={},ne.steps=[],ne.ino=0,ne.length=0,ne.vol=G,ne.parent=q,ne.steps=q?q.steps.concat([Y]):[Y],ne}return P.prototype.setNode=function(G){this.node=G,this.ino=G.ino},P.prototype.getNode=function(){return this.node},P.prototype.createChild=function(G,q){q===void 0&&(q=this.vol.createNode());var Y=new P(this.vol,this,G);return Y.setNode(q),q.isDirectory(),this.setChild(G,Y),Y},P.prototype.setChild=function(G,q){return q===void 0&&(q=new P(this.vol,this,G)),this.children[G]=q,q.parent=this,this.length++,this.emit("child:add",q,this),q},P.prototype.deleteChild=function(G){delete this.children[G.getName()],this.length--,this.emit("child:delete",G,this)},P.prototype.getChild=function(G){if(Object.hasOwnProperty.call(this.children,G))return this.children[G]},P.prototype.getPath=function(){return this.steps.join(Dp.SEP)},P.prototype.getName=function(){return this.steps[this.steps.length-1]},P.prototype.walk=function(G,q,Y){if(q===void 0&&(q=G.length),Y===void 0&&(Y=0),Y>=G.length)return this;if(Y>=q)return this;var ne=G[Y],ce=this.getChild(ne);return ce?ce.walk(G,q,Y+1):null},P.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}},P})(n.EventEmitter);Dp.Link=T;var M=(function(){function D(P,G,q,Y){this.position=0,this.link=P,this.node=G,this.flags=q,this.fd=Y}return D.prototype.getString=function(P){return this.node.getString()},D.prototype.setString=function(P){this.node.setString(P)},D.prototype.getBuffer=function(){return this.node.getBuffer()},D.prototype.setBuffer=function(P){this.node.setBuffer(P)},D.prototype.getSize=function(){return this.node.getSize()},D.prototype.truncate=function(P){this.node.truncate(P)},D.prototype.seekTo=function(P){this.position=P},D.prototype.stats=function(){return o.default.build(this.node)},D.prototype.write=function(P,G,q,Y){G===void 0&&(G=0),q===void 0&&(q=P.length),typeof Y!="number"&&(Y=this.position),this.flags&I&&(Y=this.getSize());var ne=this.node.write(P,G,q,Y);return this.position=Y+ne,ne},D.prototype.read=function(P,G,q,Y){G===void 0&&(G=0),q===void 0&&(q=P.byteLength),typeof Y!="number"&&(Y=this.position);var ne=this.node.read(P,G,q,Y);return this.position=Y+ne,ne},D.prototype.chmod=function(P){this.node.chmod(P)},D.prototype.chown=function(P,G){this.node.chown(P,G)},D})();return Dp.File=M,Dp}function OUt(){if(det)return Oz;det=!0,Object.defineProperty(Oz,"__esModule",{value:!0});function e(t,r,i){var n=setTimeout.apply(typeof globalThis<"u"?globalThis:wUt,arguments);return n&&typeof n=="object"&&typeof n.unref=="function"&&n.unref(),n}return Oz.default=e,Oz}function NUt(){if(fet)return dI;fet=!0;var e=dI&&dI.__spreadArray||function(n,o,d){if(d||arguments.length===2)for(var g=0,y=o.length,_;g<y;g++)(_||!(g in o))&&(_||(_=Array.prototype.slice.call(o,0,g)),_[g]=o[g]);return n.concat(_||Array.prototype.slice.call(o))};Object.defineProperty(dI,"__esModule",{value:!0}),dI.FileHandle=void 0;function t(n,o,d){return d===void 0&&(d=function(g){return g}),function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return new Promise(function(_,I){n[o].bind(n).apply(void 0,e(e([],g,!1),[function(N,T){return N?I(N):_(d(T))}],!1))})}}var r=(function(){function n(o,d){this.vol=o,this.fd=d}return n.prototype.appendFile=function(o,d){return t(this.vol,"appendFile")(this.fd,o,d)},n.prototype.chmod=function(o){return t(this.vol,"fchmod")(this.fd,o)},n.prototype.chown=function(o,d){return t(this.vol,"fchown")(this.fd,o,d)},n.prototype.close=function(){return t(this.vol,"close")(this.fd)},n.prototype.datasync=function(){return t(this.vol,"fdatasync")(this.fd)},n.prototype.read=function(o,d,g,y){return t(this.vol,"read",function(_){return{bytesRead:_,buffer:o}})(this.fd,o,d,g,y)},n.prototype.readFile=function(o){return t(this.vol,"readFile")(this.fd,o)},n.prototype.stat=function(o){return t(this.vol,"fstat")(this.fd,o)},n.prototype.sync=function(){return t(this.vol,"fsync")(this.fd)},n.prototype.truncate=function(o){return t(this.vol,"ftruncate")(this.fd,o)},n.prototype.utimes=function(o,d){return t(this.vol,"futimes")(this.fd,o,d)},n.prototype.write=function(o,d,g,y){return t(this.vol,"write",function(_){return{bytesWritten:_,buffer:o}})(this.fd,o,d,g,y)},n.prototype.writeFile=function(o,d){return t(this.vol,"writeFile")(this.fd,o,d)},n})();dI.FileHandle=r;function i(n){return typeof Promise>"u"?null:{FileHandle:r,access:function(o,d){return t(n,"access")(o,d)},appendFile:function(o,d,g){return t(n,"appendFile")(o instanceof r?o.fd:o,d,g)},chmod:function(o,d){return t(n,"chmod")(o,d)},chown:function(o,d,g){return t(n,"chown")(o,d,g)},copyFile:function(o,d,g){return t(n,"copyFile")(o,d,g)},lchmod:function(o,d){return t(n,"lchmod")(o,d)},lchown:function(o,d,g){return t(n,"lchown")(o,d,g)},link:function(o,d){return t(n,"link")(o,d)},lstat:function(o,d){return t(n,"lstat")(o,d)},mkdir:function(o,d){return t(n,"mkdir")(o,d)},mkdtemp:function(o,d){return t(n,"mkdtemp")(o,d)},open:function(o,d,g){return t(n,"open",function(y){return new r(n,y)})(o,d,g)},readdir:function(o,d){return t(n,"readdir")(o,d)},readFile:function(o,d){return t(n,"readFile")(o instanceof r?o.fd:o,d)},readlink:function(o,d){return t(n,"readlink")(o,d)},realpath:function(o,d){return t(n,"realpath")(o,d)},rename:function(o,d){return t(n,"rename")(o,d)},rmdir:function(o){return t(n,"rmdir")(o)},stat:function(o,d){return t(n,"stat")(o,d)},symlink:function(o,d,g){return t(n,"symlink")(o,d,g)},truncate:function(o,d){return t(n,"truncate")(o,d)},unlink:function(o){return t(n,"unlink")(o)},utimes:function(o,d,g){return t(n,"utimes")(o,d,g)},writeFile:function(o,d,g){return t(n,"writeFile")(o instanceof r?o.fd:o,d,g)}}}return dI.default=i,dI}function xUt(){if(het)return cP;het=!0;var e=za;Object.defineProperty(cP,"__esModule",{value:!0}),cP.unixify=o,cP.correctPath=d;var t=e.platform==="win32";function r(g){var y=g.length-1;if(y<2)return g;for(;i(g,y);)y--;return g.substr(0,y+1)}function i(g,y){var _=g[y];return y>0&&(_==="/"||t&&_==="\\")}function n(g,y){if(typeof g!="string")throw new TypeError("expected a string");return g=g.replace(/[\\\/]+/g,"/"),y!==!1&&(g=r(g)),g}function o(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t?(g=n(g,y),g.replace(/^([a-zA-Z]+:|\.\/)/,"")):g}function d(g){return o(g.replace(/^\\\\\?\\.:\\/,"\\"))}return cP}function vet(){if(Aet)return Ks;Aet=!0;var e=Ks&&Ks.__extends||(function(){var yt=function(ot,lt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,Ie){gt.__proto__=Ie}||function(gt,Ie){for(var Zt in Ie)Object.prototype.hasOwnProperty.call(Ie,Zt)&&(gt[Zt]=Ie[Zt])},yt(ot,lt)};return function(ot,lt){if(typeof lt!="function"&<!==null)throw new TypeError("Class extends value "+String(lt)+" is not a constructor or null");yt(ot,lt);function gt(){this.constructor=ot}ot.prototype=lt===null?Object.create(lt):(gt.prototype=lt.prototype,new gt)}})(),t=Ks&&Ks.__spreadArray||function(yt,ot,lt){if(lt||arguments.length===2)for(var gt=0,Ie=ot.length,Zt;gt<Ie;gt++)(Zt||!(gt in ot))&&(Zt||(Zt=Array.prototype.slice.call(ot,0,gt)),Zt[gt]=ot[gt]);return yt.concat(Zt||Array.prototype.slice.call(ot))};Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.FSWatcher=Ks.StatWatcher=Ks.Volume=Ks.toUnixTimestamp=Ks.bufferToEncoding=Ks.dataToBuffer=Ks.dataToStr=Ks.pathToSteps=Ks.filenameToSteps=Ks.pathToFilename=Ks.flagsToNumber=Ks.FLAGS=void 0;var r=z0,i=CUt(),n=ghe(),o=yet(),d=_he(),g=bet(),y=Eet(),_=OUt(),I=Tp,N=uP(),T=xc,M=met(),D=_et(),P=yn,G=NUt(),q=r.resolve,Y=N.constants.O_RDONLY,ne=N.constants.O_WRONLY,ce=N.constants.O_RDWR,le=N.constants.O_CREAT,pe=N.constants.O_EXCL,ae=N.constants.O_TRUNC,W=N.constants.O_APPEND,se=N.constants.O_SYNC,O=N.constants.O_DIRECTORY,s=N.constants.F_OK,l=N.constants.COPYFILE_EXCL,A=N.constants.COPYFILE_FICLONE_FORCE,m=r.posix?r.posix:r,E=m.sep,w=m.relative,x=m.join,R=m.dirname,u=y.default.platform==="win32",C=128,U={PATH_STR:"path must be a string or Buffer",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"},F=function(yt){return"Expected options to be either an object or a string, but got "+yt+" instead"},X="ENOENT",Ae="EBADF",he="EINVAL",$e="EPERM",Ge="EPROTO",Re="EEXIST",Se="ENOTDIR",ct="EMFILE",ze="EACCES",te="EISDIR",Ue="ENOTEMPTY",oe="ENOSYS";function ge(yt,ot,lt,gt){ot===void 0&&(ot=""),lt===void 0&&(lt=""),gt===void 0&&(gt="");var Ie="";switch(lt&&(Ie=" '"+lt+"'"),gt&&(Ie+=" -> '"+gt+"'"),yt){case X:return"ENOENT: no such file or directory, "+ot+Ie;case Ae:return"EBADF: bad file descriptor, "+ot+Ie;case he:return"EINVAL: invalid argument, "+ot+Ie;case $e:return"EPERM: operation not permitted, "+ot+Ie;case Ge:return"EPROTO: protocol error, "+ot+Ie;case Re:return"EEXIST: file already exists, "+ot+Ie;case Se:return"ENOTDIR: not a directory, "+ot+Ie;case te:return"EISDIR: illegal operation on a directory, "+ot+Ie;case ze:return"EACCES: permission denied, "+ot+Ie;case Ue:return"ENOTEMPTY: directory not empty, "+ot+Ie;case ct:return"EMFILE: too many open files, "+ot+Ie;case oe:return"ENOSYS: function not implemented, "+ot+Ie;default:return yt+": error occurred, "+ot+Ie}}function Le(yt,ot,lt,gt,Ie){ot===void 0&&(ot=""),lt===void 0&&(lt=""),gt===void 0&&(gt=""),Ie===void 0&&(Ie=Error);var Zt=new Ie(ge(yt,ot,lt,gt));return Zt.code=yt,Zt}var V;(function(yt){yt[yt.r=Y]="r",yt[yt["r+"]=ce]="r+",yt[yt.rs=Y|se]="rs",yt[yt.sr=yt.rs]="sr",yt[yt["rs+"]=ce|se]="rs+",yt[yt["sr+"]=yt["rs+"]]="sr+",yt[yt.w=ne|le|ae]="w",yt[yt.wx=ne|le|ae|pe]="wx",yt[yt.xw=yt.wx]="xw",yt[yt["w+"]=ce|le|ae]="w+",yt[yt["wx+"]=ce|le|ae|pe]="wx+",yt[yt["xw+"]=yt["wx+"]]="xw+",yt[yt.a=ne|W|le]="a",yt[yt.ax=ne|W|le|pe]="ax",yt[yt.xa=yt.ax]="xa",yt[yt["a+"]=ce|W|le]="a+",yt[yt["ax+"]=ce|W|le|pe]="ax+",yt[yt["xa+"]=yt["ax+"]]="xa+"})(V=Ks.FLAGS||(Ks.FLAGS={}));function Qe(yt){if(typeof yt=="number")return yt;if(typeof yt=="string"){var ot=V[yt];if(typeof ot<"u")return ot}throw new D.TypeError("ERR_INVALID_OPT_VALUE","flags",yt)}Ks.flagsToNumber=Qe;function _t(yt,ot){var lt;if(ot){var gt=typeof ot;switch(gt){case"string":lt=Object.assign({},yt,{encoding:ot});break;case"object":lt=Object.assign({},yt,ot);break;default:throw TypeError(F(gt))}}else return yt;return lt.encoding!=="buffer"&&(0,M.assertEncoding)(lt.encoding),lt}function rt(yt){return function(ot){return _t(yt,ot)}}function At(yt){if(typeof yt!="function")throw TypeError(U.CB);return yt}function Er(yt){return function(ot,lt){return typeof ot=="function"?[yt(),ot]:[yt(ot),At(lt)]}}var mt={encoding:"utf8"},Ht=rt(mt),zr=Er(Ht),ve={flag:"r"},ie=rt(ve),_e={encoding:"utf8",mode:438,flag:V[V.w]},Be=rt(_e),Ze={encoding:"utf8",mode:438,flag:V[V.a]},$t=rt(Ze),at=Er($t),zt=mt,Hr=rt(zt),St=Er(Hr),Yt={mode:511,recursive:!1},qr=function(yt){return typeof yt=="number"?Object.assign({},Yt,{mode:yt}):Object.assign({},Yt,yt)},tr={recursive:!1},hr=function(yt){return Object.assign({},tr,yt)},Cn={encoding:"utf8",withFileTypes:!1},er=rt(Cn),pr=Er(er),mn={bigint:!1},Xt=function(yt){return yt===void 0&&(yt={}),Object.assign({},mn,yt)},dr=function(yt,ot){return typeof yt=="function"?[Xt(),yt]:[Xt(yt),At(ot)]};function wn(yt){if(yt.hostname!=="")throw new D.TypeError("ERR_INVALID_FILE_URL_HOST",y.default.platform);for(var ot=yt.pathname,lt=0;lt<ot.length;lt++)if(ot[lt]==="%"){var gt=ot.codePointAt(lt+2)|32;if(ot[lt+1]==="2"&>===102)throw new D.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(ot)}function Qt(yt){if(typeof yt!="string"&&!d.Buffer.isBuffer(yt)){try{if(!(yt instanceof uu.URL))throw new TypeError(U.PATH_STR)}catch{throw new TypeError(U.PATH_STR)}yt=wn(yt)}var ot=String(yt);return je(ot),ot}Ks.pathToFilename=Qt;var fr=function(yt,ot){return ot===void 0&&(ot=y.default.cwd()),q(ot,yt)};if(u){var In=fr,jt=xUt().unixify;fr=function(yt,ot){return jt(In(yt,ot))}}function ar(yt,ot){var lt=fr(yt,ot),gt=lt.substr(1);return gt?gt.split(E):[]}Ks.filenameToSteps=ar;function ht(yt){return ar(Qt(yt))}Ks.pathToSteps=ht;function Xe(yt,ot){return ot===void 0&&(ot=M.ENCODING_UTF8),d.Buffer.isBuffer(yt)?yt.toString(ot):yt instanceof Uint8Array?(0,d.bufferFrom)(yt).toString(ot):String(yt)}Ks.dataToStr=Xe;function et(yt,ot){return ot===void 0&&(ot=M.ENCODING_UTF8),d.Buffer.isBuffer(yt)?yt:yt instanceof Uint8Array?(0,d.bufferFrom)(yt):(0,d.bufferFrom)(String(yt),ot)}Ks.dataToBuffer=et;function ue(yt,ot){return!ot||ot==="buffer"?yt:yt.toString(ot)}Ks.bufferToEncoding=ue;function je(yt,ot){if((""+yt).indexOf("\0")!==-1){var lt=new Error("Path must be a string without null bytes");if(lt.code=X,typeof ot!="function")throw lt;return y.default.nextTick(ot,lt),!1}return!0}function be(yt,ot){if(typeof yt=="number")return yt;if(typeof yt=="string")return parseInt(yt,8);if(ot)return qe(ot)}function qe(yt,ot){var lt=be(yt,ot);if(typeof lt!="number"||isNaN(lt))throw new TypeError(U.MODE_INT);return lt}function De(yt){return yt>>>0===yt}function Je(yt){if(!De(yt))throw TypeError(U.FD)}function Rt(yt){if(typeof yt=="string"&&+yt==yt)return+yt;if(yt instanceof Date)return yt.getTime()/1e3;if(isFinite(yt))return yt<0?Date.now()/1e3:yt;throw new Error("Cannot parse time: "+yt)}Ks.toUnixTimestamp=Rt;function Vt(yt){if(typeof yt!="number")throw TypeError(U.UID)}function br(yt){if(typeof yt!="number")throw TypeError(U.GID)}function Rr(yt){var ot={};function lt(gt,Ie){for(var Zt in Ie){var Ir=Ie[Zt],$=x(gt,Zt);typeof Ir=="string"?ot[$]=Ir:typeof Ir=="object"&&Ir!==null&&Object.keys(Ir).length>0?lt($,Ir):ot[$]=null}}return lt("",yt),ot}var Dr=(function(){function yt(ot){ot===void 0&&(ot={}),this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=(0,G.default)(this),this.statWatchers={},this.props=Object.assign({Node:i.Node,Link:i.Link,File:i.File},ot);var lt=this.createLink();lt.setNode(this.createNode(!0));var gt=this;this.StatWatcher=(function(Ir){e($,Ir);function $(){return Ir.call(this,gt)||this}return $})(k);var Ie=sn;this.ReadStream=(function(Ir){e($,Ir);function $(){for(var Qr=[],en=0;en<arguments.length;en++)Qr[en]=arguments[en];return Ir.apply(this,t([gt],Qr,!1))||this}return $})(Ie);var Zt=Wr;this.WriteStream=(function(Ir){e($,Ir);function $(){for(var Qr=[],en=0;en<arguments.length;en++)Qr[en]=arguments[en];return Ir.apply(this,t([gt],Qr,!1))||this}return $})(Zt),this.FSWatcher=(function(Ir){e($,Ir);function $(){return Ir.call(this,gt)||this}return $})(ln),this.root=lt}return yt.fromJSON=function(ot,lt){var gt=new yt;return gt.fromJSON(ot,lt),gt},yt.fromNestedJSON=function(ot,lt){var gt=new yt;return gt.fromNestedJSON(ot,lt),gt},Object.defineProperty(yt.prototype,"promises",{get:function(){if(this.promisesApi===null)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:!1,configurable:!0}),yt.prototype.createLink=function(ot,lt,gt,Ie){if(gt===void 0&&(gt=!1),!ot)return new this.props.Link(this,null,"");if(!lt)throw new Error("createLink: name cannot be empty");return ot.createChild(lt,this.createNode(gt,Ie))},yt.prototype.deleteLink=function(ot){var lt=ot.parent;return lt?(lt.deleteChild(ot),!0):!1},yt.prototype.newInoNumber=function(){var ot=this.releasedInos.pop();return ot||(this.ino=(this.ino+1)%4294967295,this.ino)},yt.prototype.newFdNumber=function(){var ot=this.releasedFds.pop();return typeof ot=="number"?ot:yt.fd--},yt.prototype.createNode=function(ot,lt){ot===void 0&&(ot=!1);var gt=new this.props.Node(this.newInoNumber(),lt);return ot&>.setIsDirectory(),this.inodes[gt.ino]=gt,gt},yt.prototype.getNode=function(ot){return this.inodes[ot]},yt.prototype.deleteNode=function(ot){ot.del(),delete this.inodes[ot.ino],this.releasedInos.push(ot.ino)},yt.prototype.genRndStr=function(){var ot=(Math.random()+1).toString(36).substr(2,6);return ot.length===6?ot:this.genRndStr()},yt.prototype.getLink=function(ot){return this.root.walk(ot)},yt.prototype.getLinkOrThrow=function(ot,lt){var gt=ar(ot),Ie=this.getLink(gt);if(!Ie)throw Le(X,lt,ot);return Ie},yt.prototype.getResolvedLink=function(ot){for(var lt=typeof ot=="string"?ar(ot):ot,gt=this.root,Ie=0;Ie<lt.length;){var Zt=lt[Ie];if(gt=gt.getChild(Zt),!gt)return null;var Ir=gt.getNode();if(Ir.isSymlink()){lt=Ir.symlink.concat(lt.slice(Ie+1)),gt=this.root,Ie=0;continue}Ie++}return gt},yt.prototype.getResolvedLinkOrThrow=function(ot,lt){var gt=this.getResolvedLink(ot);if(!gt)throw Le(X,lt,ot);return gt},yt.prototype.resolveSymlinks=function(ot){return this.getResolvedLink(ot.steps.slice(1))},yt.prototype.getLinkAsDirOrThrow=function(ot,lt){var gt=this.getLinkOrThrow(ot,lt);if(!gt.getNode().isDirectory())throw Le(Se,lt,ot);return gt},yt.prototype.getLinkParent=function(ot){return this.root.walk(ot,ot.length-1)},yt.prototype.getLinkParentAsDirOrThrow=function(ot,lt){var gt=ot instanceof Array?ot:ar(ot),Ie=this.getLinkParent(gt);if(!Ie)throw Le(X,lt,E+gt.join(E));if(!Ie.getNode().isDirectory())throw Le(Se,lt,E+gt.join(E));return Ie},yt.prototype.getFileByFd=function(ot){return this.fds[String(ot)]},yt.prototype.getFileByFdOrThrow=function(ot,lt){if(!De(ot))throw TypeError(U.FD);var gt=this.getFileByFd(ot);if(!gt)throw Le(Ae,lt);return gt},yt.prototype.getNodeByIdOrCreate=function(ot,lt,gt){if(typeof ot=="number"){var Ie=this.getFileByFd(ot);if(!Ie)throw Error("File nto found");return Ie.node}else{var Zt=ht(ot),Ir=this.getLink(Zt);if(Ir)return Ir.getNode();if(lt&le){var $=this.getLinkParent(Zt);if($){var Qr=Zt[Zt.length-1];return Ir=this.createLink($,Qr,!1,gt),Ir.getNode()}}throw Le(X,"getNodeByIdOrCreate",Qt(ot))}},yt.prototype.wrapAsync=function(ot,lt,gt){var Ie=this;At(gt),(0,g.default)(function(){var Zt;try{Zt=ot.apply(Ie,lt)}catch(Ir){gt(Ir);return}gt(null,Zt)})},yt.prototype._toJSON=function(ot,lt,gt){var Ie;ot===void 0&&(ot=this.root),lt===void 0&&(lt={});var Zt=!0,Ir=ot.children;ot.getNode().isFile()&&(Ir=(Ie={},Ie[ot.getName()]=ot.parent.getChild(ot.getName()),Ie),ot=ot.parent);for(var $ in Ir){Zt=!1;var Qr=ot.getChild($);if(!Qr)throw new Error("_toJSON: unexpected undefined");var en=Qr.getNode();if(en.isFile()){var xr=Qr.getPath();gt&&(xr=w(gt,xr)),lt[xr]=en.getString()}else en.isDirectory()&&this._toJSON(Qr,lt,gt)}var Mi=ot.getPath();return gt&&(Mi=w(gt,Mi)),Mi&&Zt&&(lt[Mi]=null),lt},yt.prototype.toJSON=function(ot,lt,gt){lt===void 0&&(lt={}),gt===void 0&&(gt=!1);var Ie=[];if(ot){ot instanceof Array||(ot=[ot]);for(var Zt=0,Ir=ot;Zt<Ir.length;Zt++){var $=Ir[Zt],Qr=Qt($),en=this.getResolvedLink(Qr);en&&Ie.push(en)}}else Ie.push(this.root);if(!Ie.length)return lt;for(var xr=0,Mi=Ie;xr<Mi.length;xr++){var en=Mi[xr];this._toJSON(en,lt,gt?en.getPath():"")}return lt},yt.prototype.fromJSON=function(ot,lt){lt===void 0&&(lt=y.default.cwd());for(var gt in ot){var Ie=ot[gt];if(gt=fr(gt,lt),typeof Ie=="string"){var Zt=R(gt);this.mkdirpBase(Zt,511),this.writeFileSync(gt,Ie)}else this.mkdirpBase(gt,511)}},yt.prototype.fromNestedJSON=function(ot,lt){this.fromJSON(Rr(ot),lt)},yt.prototype.reset=function(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))},yt.prototype.mountSync=function(ot,lt){this.fromJSON(lt,ot)},yt.prototype.openLink=function(ot,lt,gt){if(gt===void 0&&(gt=!0),this.openFiles>=this.maxFiles)throw Le(ct,"open",ot.getPath());var Ie=ot;if(gt&&(Ie=this.resolveSymlinks(ot)),!Ie)throw Le(X,"open",ot.getPath());var Zt=Ie.getNode();if(Zt.isDirectory()){if((lt&(Y|ce|ne))!==Y)throw Le(te,"open",ot.getPath())}else if(lt&O)throw Le(Se,"open",ot.getPath());if(!(lt&ne)&&!Zt.canRead())throw Le(ze,"open",ot.getPath());var Ir=new this.props.File(ot,Zt,lt,this.newFdNumber());return this.fds[Ir.fd]=Ir,this.openFiles++,lt&ae&&Ir.truncate(),Ir},yt.prototype.openFile=function(ot,lt,gt,Ie){Ie===void 0&&(Ie=!0);var Zt=ar(ot),Ir=Ie?this.getResolvedLink(Zt):this.getLink(Zt);if(!Ir&<&le){var $=this.getResolvedLink(Zt.slice(0,Zt.length-1));if(!$)throw Le(X,"open",E+Zt.join(E));lt&le&&typeof gt=="number"&&(Ir=this.createLink($,Zt[Zt.length-1],!1,gt))}if(Ir)return this.openLink(Ir,lt,Ie);throw Le(X,"open",ot)},yt.prototype.openBase=function(ot,lt,gt,Ie){Ie===void 0&&(Ie=!0);var Zt=this.openFile(ot,lt,gt,Ie);if(!Zt)throw Le(X,"open",ot);return Zt.fd},yt.prototype.openSync=function(ot,lt,gt){gt===void 0&&(gt=438);var Ie=qe(gt),Zt=Qt(ot),Ir=Qe(lt);return this.openBase(Zt,Ir,Ie)},yt.prototype.open=function(ot,lt,gt,Ie){var Zt=gt,Ir=Ie;typeof gt=="function"&&(Zt=438,Ir=gt),Zt=Zt||438;var $=qe(Zt),Qr=Qt(ot),en=Qe(lt);this.wrapAsync(this.openBase,[Qr,en,$],Ir)},yt.prototype.closeFile=function(ot){this.fds[ot.fd]&&(this.openFiles--,delete this.fds[ot.fd],this.releasedFds.push(ot.fd))},yt.prototype.closeSync=function(ot){Je(ot);var lt=this.getFileByFdOrThrow(ot,"close");this.closeFile(lt)},yt.prototype.close=function(ot,lt){Je(ot),this.wrapAsync(this.closeSync,[ot],lt)},yt.prototype.openFileOrGetById=function(ot,lt,gt){if(typeof ot=="number"){var Ie=this.fds[ot];if(!Ie)throw Le(X);return Ie}else return this.openFile(Qt(ot),lt,gt)},yt.prototype.readBase=function(ot,lt,gt,Ie,Zt){var Ir=this.getFileByFdOrThrow(ot);return Ir.read(lt,Number(gt),Number(Ie),Zt)},yt.prototype.readSync=function(ot,lt,gt,Ie,Zt){return Je(ot),this.readBase(ot,lt,gt,Ie,Zt)},yt.prototype.read=function(ot,lt,gt,Ie,Zt,Ir){var $=this;if(At(Ir),Ie===0)return y.default.nextTick(function(){Ir&&Ir(null,0,lt)});(0,g.default)(function(){try{var Qr=$.readBase(ot,lt,gt,Ie,Zt);Ir(null,Qr,lt)}catch(en){Ir(en)}})},yt.prototype.readFileBase=function(ot,lt,gt){var Ie,Zt=typeof ot=="number",Ir=Zt&&De(ot),$;if(Ir)$=ot;else{var Qr=Qt(ot),en=ar(Qr),xr=this.getResolvedLink(en);if(xr){var Mi=xr.getNode();if(Mi.isDirectory())throw Le(te,"open",xr.getPath())}$=this.openSync(ot,lt)}try{Ie=ue(this.getFileByFdOrThrow($).getBuffer(),gt)}finally{Ir||this.closeSync($)}return Ie},yt.prototype.readFileSync=function(ot,lt){var gt=ie(lt),Ie=Qe(gt.flag);return this.readFileBase(ot,Ie,gt.encoding)},yt.prototype.readFile=function(ot,lt,gt){var Ie=Er(ie)(lt,gt),Zt=Ie[0],Ir=Ie[1],$=Qe(Zt.flag);this.wrapAsync(this.readFileBase,[ot,$,Zt.encoding],Ir)},yt.prototype.writeBase=function(ot,lt,gt,Ie,Zt){var Ir=this.getFileByFdOrThrow(ot,"write");return Ir.write(lt,gt,Ie,Zt)},yt.prototype.writeSync=function(ot,lt,gt,Ie,Zt){Je(ot);var Ir,$,Qr,en,xr=typeof lt!="string";xr?($=(gt||0)|0,Qr=Ie,en=Zt):(en=gt,Ir=Ie);var Mi=et(lt,Ir);return xr?typeof Qr>"u"&&(Qr=Mi.length):($=0,Qr=Mi.length),this.writeBase(ot,Mi,$,Qr,en)},yt.prototype.write=function(ot,lt,gt,Ie,Zt,Ir){var $=this;Je(ot);var Qr,en,xr,Mi,oo,ho=typeof lt,Tr=typeof gt,jo=typeof Ie,ka=typeof Zt;ho!=="string"?Tr==="function"?oo=gt:jo==="function"?(Qr=gt|0,oo=Ie):ka==="function"?(Qr=gt|0,en=Ie,oo=Zt):(Qr=gt|0,en=Ie,xr=Zt,oo=Ir):Tr==="function"?oo=gt:jo==="function"?(xr=gt,oo=Ie):ka==="function"&&(xr=gt,Mi=Ie,oo=Zt);var wo=et(lt,Mi);ho!=="string"?typeof en>"u"&&(en=wo.length):(Qr=0,en=wo.length);var Fo=At(oo);(0,g.default)(function(){try{var Ar=$.writeBase(ot,wo,Qr,en,xr);ho!=="string"?Fo(null,Ar,wo):Fo(null,Ar,lt)}catch(Pa){Fo(Pa)}})},yt.prototype.writeFileBase=function(ot,lt,gt,Ie){var Zt=typeof ot=="number",Ir;Zt?Ir=ot:Ir=this.openBase(Qt(ot),gt,Ie);var $=0,Qr=lt.length,en=gt&W?void 0:0;try{for(;Qr>0;){var xr=this.writeSync(Ir,lt,$,Qr,en);$+=xr,Qr-=xr,en!==void 0&&(en+=xr)}}finally{Zt||this.closeSync(Ir)}},yt.prototype.writeFileSync=function(ot,lt,gt){var Ie=Be(gt),Zt=Qe(Ie.flag),Ir=qe(Ie.mode),$=et(lt,Ie.encoding);this.writeFileBase(ot,$,Zt,Ir)},yt.prototype.writeFile=function(ot,lt,gt,Ie){var Zt=gt,Ir=Ie;typeof gt=="function"&&(Zt=_e,Ir=gt);var $=At(Ir),Qr=Be(Zt),en=Qe(Qr.flag),xr=qe(Qr.mode),Mi=et(lt,Qr.encoding);this.wrapAsync(this.writeFileBase,[ot,Mi,en,xr],$)},yt.prototype.linkBase=function(ot,lt){var gt=ar(ot),Ie=this.getLink(gt);if(!Ie)throw Le(X,"link",ot,lt);var Zt=ar(lt),Ir=this.getLinkParent(Zt);if(!Ir)throw Le(X,"link",ot,lt);var $=Zt[Zt.length-1];if(Ir.getChild($))throw Le(Re,"link",ot,lt);var Qr=Ie.getNode();Qr.nlink++,Ir.createChild($,Qr)},yt.prototype.copyFileBase=function(ot,lt,gt){var Ie=this.readFileSync(ot);if(gt&l&&this.existsSync(lt))throw Le(Re,"copyFile",ot,lt);if(gt&A)throw Le(oe,"copyFile",ot,lt);this.writeFileBase(lt,Ie,V.w,438)},yt.prototype.copyFileSync=function(ot,lt,gt){var Ie=Qt(ot),Zt=Qt(lt);return this.copyFileBase(Ie,Zt,(gt||0)|0)},yt.prototype.copyFile=function(ot,lt,gt,Ie){var Zt=Qt(ot),Ir=Qt(lt),$,Qr;typeof gt=="function"?($=0,Qr=gt):($=gt,Qr=Ie),At(Qr),this.wrapAsync(this.copyFileBase,[Zt,Ir,$],Qr)},yt.prototype.linkSync=function(ot,lt){var gt=Qt(ot),Ie=Qt(lt);this.linkBase(gt,Ie)},yt.prototype.link=function(ot,lt,gt){var Ie=Qt(ot),Zt=Qt(lt);this.wrapAsync(this.linkBase,[Ie,Zt],gt)},yt.prototype.unlinkBase=function(ot){var lt=ar(ot),gt=this.getLink(lt);if(!gt)throw Le(X,"unlink",ot);if(gt.length)throw Error("Dir not empty...");this.deleteLink(gt);var Ie=gt.getNode();Ie.nlink--,Ie.nlink<=0&&this.deleteNode(Ie)},yt.prototype.unlinkSync=function(ot){var lt=Qt(ot);this.unlinkBase(lt)},yt.prototype.unlink=function(ot,lt){var gt=Qt(ot);this.wrapAsync(this.unlinkBase,[gt],lt)},yt.prototype.symlinkBase=function(ot,lt){var gt=ar(lt),Ie=this.getLinkParent(gt);if(!Ie)throw Le(X,"symlink",ot,lt);var Zt=gt[gt.length-1];if(Ie.getChild(Zt))throw Le(Re,"symlink",ot,lt);var Ir=Ie.createChild(Zt);return Ir.getNode().makeSymlink(ar(ot)),Ir},yt.prototype.symlinkSync=function(ot,lt,gt){var Ie=Qt(ot),Zt=Qt(lt);this.symlinkBase(Ie,Zt)},yt.prototype.symlink=function(ot,lt,gt,Ie){var Zt=At(typeof gt=="function"?gt:Ie),Ir=Qt(ot),$=Qt(lt);this.wrapAsync(this.symlinkBase,[Ir,$],Zt)},yt.prototype.realpathBase=function(ot,lt){var gt=ar(ot),Ie=this.getResolvedLink(gt);if(!Ie)throw Le(X,"realpath",ot);return(0,M.strToEncoding)(Ie.getPath(),lt)},yt.prototype.realpathSync=function(ot,lt){return this.realpathBase(Qt(ot),Hr(lt).encoding)},yt.prototype.realpath=function(ot,lt,gt){var Ie=St(lt,gt),Zt=Ie[0],Ir=Ie[1],$=Qt(ot);this.wrapAsync(this.realpathBase,[$,Zt.encoding],Ir)},yt.prototype.lstatBase=function(ot,lt){lt===void 0&&(lt=!1);var gt=this.getLink(ar(ot));if(!gt)throw Le(X,"lstat",ot);return n.default.build(gt.getNode(),lt)},yt.prototype.lstatSync=function(ot,lt){return this.lstatBase(Qt(ot),Xt(lt).bigint)},yt.prototype.lstat=function(ot,lt,gt){var Ie=dr(lt,gt),Zt=Ie[0],Ir=Ie[1];this.wrapAsync(this.lstatBase,[Qt(ot),Zt.bigint],Ir)},yt.prototype.statBase=function(ot,lt){lt===void 0&&(lt=!1);var gt=this.getResolvedLink(ar(ot));if(!gt)throw Le(X,"stat",ot);return n.default.build(gt.getNode(),lt)},yt.prototype.statSync=function(ot,lt){return this.statBase(Qt(ot),Xt(lt).bigint)},yt.prototype.stat=function(ot,lt,gt){var Ie=dr(lt,gt),Zt=Ie[0],Ir=Ie[1];this.wrapAsync(this.statBase,[Qt(ot),Zt.bigint],Ir)},yt.prototype.fstatBase=function(ot,lt){lt===void 0&&(lt=!1);var gt=this.getFileByFd(ot);if(!gt)throw Le(Ae,"fstat");return n.default.build(gt.node,lt)},yt.prototype.fstatSync=function(ot,lt){return this.fstatBase(ot,Xt(lt).bigint)},yt.prototype.fstat=function(ot,lt,gt){var Ie=dr(lt,gt),Zt=Ie[0],Ir=Ie[1];this.wrapAsync(this.fstatBase,[ot,Zt.bigint],Ir)},yt.prototype.renameBase=function(ot,lt){var gt=this.getLink(ar(ot));if(!gt)throw Le(X,"rename",ot,lt);var Ie=ar(lt),Zt=this.getLinkParent(Ie);if(!Zt)throw Le(X,"rename",ot,lt);var Ir=gt.parent;Ir&&Ir.deleteChild(gt);var $=Ie[Ie.length-1];gt.steps=t(t([],Zt.steps,!0),[$],!1),Zt.setChild(gt.getName(),gt)},yt.prototype.renameSync=function(ot,lt){var gt=Qt(ot),Ie=Qt(lt);this.renameBase(gt,Ie)},yt.prototype.rename=function(ot,lt,gt){var Ie=Qt(ot),Zt=Qt(lt);this.wrapAsync(this.renameBase,[Ie,Zt],gt)},yt.prototype.existsBase=function(ot){return!!this.statBase(ot)},yt.prototype.existsSync=function(ot){try{return this.existsBase(Qt(ot))}catch{return!1}},yt.prototype.exists=function(ot,lt){var gt=this,Ie=Qt(ot);if(typeof lt!="function")throw Error(U.CB);(0,g.default)(function(){try{lt(gt.existsBase(Ie))}catch{lt(!1)}})},yt.prototype.accessBase=function(ot,lt){this.getLinkOrThrow(ot,"access")},yt.prototype.accessSync=function(ot,lt){lt===void 0&&(lt=s);var gt=Qt(ot);lt=lt|0,this.accessBase(gt,lt)},yt.prototype.access=function(ot,lt,gt){var Ie=s,Zt;typeof lt!="function"?(Ie=lt|0,Zt=At(gt)):Zt=lt;var Ir=Qt(ot);this.wrapAsync(this.accessBase,[Ir,Ie],Zt)},yt.prototype.appendFileSync=function(ot,lt,gt){gt===void 0&&(gt=Ze);var Ie=$t(gt);(!Ie.flag||De(ot))&&(Ie.flag="a"),this.writeFileSync(ot,lt,Ie)},yt.prototype.appendFile=function(ot,lt,gt,Ie){var Zt=at(gt,Ie),Ir=Zt[0],$=Zt[1];(!Ir.flag||De(ot))&&(Ir.flag="a"),this.writeFile(ot,lt,Ir,$)},yt.prototype.readdirBase=function(ot,lt){var gt=ar(ot),Ie=this.getResolvedLink(gt);if(!Ie)throw Le(X,"readdir",ot);var Zt=Ie.getNode();if(!Zt.isDirectory())throw Le(Se,"scandir",ot);if(lt.withFileTypes){var Ir=[];for(var $ in Ie.children){var Qr=Ie.getChild($);Qr&&Ir.push(o.default.build(Qr,lt.encoding))}return!u&<.encoding!=="buffer"&&Ir.sort(function(Mi,oo){return Mi.name<oo.name?-1:Mi.name>oo.name?1:0}),Ir}var en=[];for(var xr in Ie.children)en.push((0,M.strToEncoding)(xr,lt.encoding));return!u&<.encoding!=="buffer"&&en.sort(),en},yt.prototype.readdirSync=function(ot,lt){var gt=er(lt),Ie=Qt(ot);return this.readdirBase(Ie,gt)},yt.prototype.readdir=function(ot,lt,gt){var Ie=pr(lt,gt),Zt=Ie[0],Ir=Ie[1],$=Qt(ot);this.wrapAsync(this.readdirBase,[$,Zt],Ir)},yt.prototype.readlinkBase=function(ot,lt){var gt=this.getLinkOrThrow(ot,"readlink"),Ie=gt.getNode();if(!Ie.isSymlink())throw Le(he,"readlink",ot);var Zt=E+Ie.symlink.join(E);return(0,M.strToEncoding)(Zt,lt)},yt.prototype.readlinkSync=function(ot,lt){var gt=Ht(lt),Ie=Qt(ot);return this.readlinkBase(Ie,gt.encoding)},yt.prototype.readlink=function(ot,lt,gt){var Ie=zr(lt,gt),Zt=Ie[0],Ir=Ie[1],$=Qt(ot);this.wrapAsync(this.readlinkBase,[$,Zt.encoding],Ir)},yt.prototype.fsyncBase=function(ot){this.getFileByFdOrThrow(ot,"fsync")},yt.prototype.fsyncSync=function(ot){this.fsyncBase(ot)},yt.prototype.fsync=function(ot,lt){this.wrapAsync(this.fsyncBase,[ot],lt)},yt.prototype.fdatasyncBase=function(ot){this.getFileByFdOrThrow(ot,"fdatasync")},yt.prototype.fdatasyncSync=function(ot){this.fdatasyncBase(ot)},yt.prototype.fdatasync=function(ot,lt){this.wrapAsync(this.fdatasyncBase,[ot],lt)},yt.prototype.ftruncateBase=function(ot,lt){var gt=this.getFileByFdOrThrow(ot,"ftruncate");gt.truncate(lt)},yt.prototype.ftruncateSync=function(ot,lt){this.ftruncateBase(ot,lt)},yt.prototype.ftruncate=function(ot,lt,gt){var Ie=typeof lt=="number"?lt:0,Zt=At(typeof lt=="number"?gt:lt);this.wrapAsync(this.ftruncateBase,[ot,Ie],Zt)},yt.prototype.truncateBase=function(ot,lt){var gt=this.openSync(ot,"r+");try{this.ftruncateSync(gt,lt)}finally{this.closeSync(gt)}},yt.prototype.truncateSync=function(ot,lt){if(De(ot))return this.ftruncateSync(ot,lt);this.truncateBase(ot,lt)},yt.prototype.truncate=function(ot,lt,gt){var Ie=typeof lt=="number"?lt:0,Zt=At(typeof lt=="number"?gt:lt);if(De(ot))return this.ftruncate(ot,Ie,Zt);this.wrapAsync(this.truncateBase,[ot,Ie],Zt)},yt.prototype.futimesBase=function(ot,lt,gt){var Ie=this.getFileByFdOrThrow(ot,"futimes"),Zt=Ie.node;Zt.atime=new Date(lt*1e3),Zt.mtime=new Date(gt*1e3)},yt.prototype.futimesSync=function(ot,lt,gt){this.futimesBase(ot,Rt(lt),Rt(gt))},yt.prototype.futimes=function(ot,lt,gt,Ie){this.wrapAsync(this.futimesBase,[ot,Rt(lt),Rt(gt)],Ie)},yt.prototype.utimesBase=function(ot,lt,gt){var Ie=this.openSync(ot,"r+");try{this.futimesBase(Ie,lt,gt)}finally{this.closeSync(Ie)}},yt.prototype.utimesSync=function(ot,lt,gt){this.utimesBase(Qt(ot),Rt(lt),Rt(gt))},yt.prototype.utimes=function(ot,lt,gt,Ie){this.wrapAsync(this.utimesBase,[Qt(ot),Rt(lt),Rt(gt)],Ie)},yt.prototype.mkdirBase=function(ot,lt){var gt=ar(ot);if(!gt.length)throw Le(Re,"mkdir",ot);var Ie=this.getLinkParentAsDirOrThrow(ot,"mkdir"),Zt=gt[gt.length-1];if(Ie.getChild(Zt))throw Le(Re,"mkdir",ot);Ie.createChild(Zt,this.createNode(!0,lt))},yt.prototype.mkdirpBase=function(ot,lt){for(var gt=ar(ot),Ie=this.root,Zt=0;Zt<gt.length;Zt++){var Ir=gt[Zt];if(!Ie.getNode().isDirectory())throw Le(Se,"mkdir",Ie.getPath());var $=Ie.getChild(Ir);if($)if($.getNode().isDirectory())Ie=$;else throw Le(Se,"mkdir",$.getPath());else Ie=Ie.createChild(Ir,this.createNode(!0,lt))}},yt.prototype.mkdirSync=function(ot,lt){var gt=qr(lt),Ie=qe(gt.mode,511),Zt=Qt(ot);gt.recursive?this.mkdirpBase(Zt,Ie):this.mkdirBase(Zt,Ie)},yt.prototype.mkdir=function(ot,lt,gt){var Ie=qr(lt),Zt=At(typeof lt=="function"?lt:gt),Ir=qe(Ie.mode,511),$=Qt(ot);Ie.recursive?this.wrapAsync(this.mkdirpBase,[$,Ir],Zt):this.wrapAsync(this.mkdirBase,[$,Ir],Zt)},yt.prototype.mkdirpSync=function(ot,lt){this.mkdirSync(ot,{mode:lt,recursive:!0})},yt.prototype.mkdirp=function(ot,lt,gt){var Ie=typeof lt=="function"?void 0:lt,Zt=At(typeof lt=="function"?lt:gt);this.mkdir(ot,{mode:Ie,recursive:!0},Zt)},yt.prototype.mkdtempBase=function(ot,lt,gt){gt===void 0&&(gt=5);var Ie=ot+this.genRndStr();try{return this.mkdirBase(Ie,511),(0,M.strToEncoding)(Ie,lt)}catch(Zt){if(Zt.code===Re){if(gt>1)return this.mkdtempBase(ot,lt,gt-1);throw Error("Could not create temp dir.")}else throw Zt}},yt.prototype.mkdtempSync=function(ot,lt){var gt=Ht(lt).encoding;if(!ot||typeof ot!="string")throw new TypeError("filename prefix is required");return je(ot),this.mkdtempBase(ot,gt)},yt.prototype.mkdtemp=function(ot,lt,gt){var Ie=zr(lt,gt),Zt=Ie[0].encoding,Ir=Ie[1];if(!ot||typeof ot!="string")throw new TypeError("filename prefix is required");je(ot)&&this.wrapAsync(this.mkdtempBase,[ot,Zt],Ir)},yt.prototype.rmdirBase=function(ot,lt){var gt=hr(lt),Ie=this.getLinkAsDirOrThrow(ot,"rmdir");if(Ie.length&&!gt.recursive)throw Le(Ue,"rmdir",ot);this.deleteLink(Ie)},yt.prototype.rmdirSync=function(ot,lt){this.rmdirBase(Qt(ot),lt)},yt.prototype.rmdir=function(ot,lt,gt){var Ie=hr(lt),Zt=At(typeof lt=="function"?lt:gt);this.wrapAsync(this.rmdirBase,[Qt(ot),Ie],Zt)},yt.prototype.fchmodBase=function(ot,lt){var gt=this.getFileByFdOrThrow(ot,"fchmod");gt.chmod(lt)},yt.prototype.fchmodSync=function(ot,lt){this.fchmodBase(ot,qe(lt))},yt.prototype.fchmod=function(ot,lt,gt){this.wrapAsync(this.fchmodBase,[ot,qe(lt)],gt)},yt.prototype.chmodBase=function(ot,lt){var gt=this.openSync(ot,"r+");try{this.fchmodBase(gt,lt)}finally{this.closeSync(gt)}},yt.prototype.chmodSync=function(ot,lt){var gt=qe(lt),Ie=Qt(ot);this.chmodBase(Ie,gt)},yt.prototype.chmod=function(ot,lt,gt){var Ie=qe(lt),Zt=Qt(ot);this.wrapAsync(this.chmodBase,[Zt,Ie],gt)},yt.prototype.lchmodBase=function(ot,lt){var gt=this.openBase(ot,ce,0,!1);try{this.fchmodBase(gt,lt)}finally{this.closeSync(gt)}},yt.prototype.lchmodSync=function(ot,lt){var gt=qe(lt),Ie=Qt(ot);this.lchmodBase(Ie,gt)},yt.prototype.lchmod=function(ot,lt,gt){var Ie=qe(lt),Zt=Qt(ot);this.wrapAsync(this.lchmodBase,[Zt,Ie],gt)},yt.prototype.fchownBase=function(ot,lt,gt){this.getFileByFdOrThrow(ot,"fchown").chown(lt,gt)},yt.prototype.fchownSync=function(ot,lt,gt){Vt(lt),br(gt),this.fchownBase(ot,lt,gt)},yt.prototype.fchown=function(ot,lt,gt,Ie){Vt(lt),br(gt),this.wrapAsync(this.fchownBase,[ot,lt,gt],Ie)},yt.prototype.chownBase=function(ot,lt,gt){var Ie=this.getResolvedLinkOrThrow(ot,"chown"),Zt=Ie.getNode();Zt.chown(lt,gt)},yt.prototype.chownSync=function(ot,lt,gt){Vt(lt),br(gt),this.chownBase(Qt(ot),lt,gt)},yt.prototype.chown=function(ot,lt,gt,Ie){Vt(lt),br(gt),this.wrapAsync(this.chownBase,[Qt(ot),lt,gt],Ie)},yt.prototype.lchownBase=function(ot,lt,gt){this.getLinkOrThrow(ot,"lchown").getNode().chown(lt,gt)},yt.prototype.lchownSync=function(ot,lt,gt){Vt(lt),br(gt),this.lchownBase(Qt(ot),lt,gt)},yt.prototype.lchown=function(ot,lt,gt,Ie){Vt(lt),br(gt),this.wrapAsync(this.lchownBase,[Qt(ot),lt,gt],Ie)},yt.prototype.watchFile=function(ot,lt,gt){var Ie=Qt(ot),Zt=lt,Ir=gt;if(typeof Zt=="function"&&(Ir=lt,Zt=null),typeof Ir!="function")throw Error('"watchFile()" requires a listener function');var $=5007,Qr=!0;Zt&&typeof Zt=="object"&&(typeof Zt.interval=="number"&&($=Zt.interval),typeof Zt.persistent=="boolean"&&(Qr=Zt.persistent));var en=this.statWatchers[Ie];return en||(en=new this.StatWatcher,en.start(Ie,Qr,$),this.statWatchers[Ie]=en),en.addListener("change",Ir),en},yt.prototype.unwatchFile=function(ot,lt){var gt=Qt(ot),Ie=this.statWatchers[gt];Ie&&(typeof lt=="function"?Ie.removeListener("change",lt):Ie.removeAllListeners("change"),Ie.listenerCount("change")===0&&(Ie.stop(),delete this.statWatchers[gt]))},yt.prototype.createReadStream=function(ot,lt){return new this.ReadStream(ot,lt)},yt.prototype.createWriteStream=function(ot,lt){return new this.WriteStream(ot,lt)},yt.prototype.watch=function(ot,lt,gt){var Ie=Qt(ot),Zt=lt;typeof lt=="function"&&(gt=lt,Zt=null);var Ir=Ht(Zt),$=Ir.persistent,Qr=Ir.recursive,en=Ir.encoding;$===void 0&&($=!0),Qr===void 0&&(Qr=!1);var xr=new this.FSWatcher;return xr.start(Ie,$,Qr,en),gt&&xr.addListener("change",gt),xr},yt.fd=2147483647,yt})();Ks.Volume=Dr;function Pr(yt){yt.emit("stop")}var k=(function(yt){e(ot,yt);function ot(lt){var gt=yt.call(this)||this;return gt.onInterval=function(){try{var Ie=gt.vol.statSync(gt.filename);gt.hasChanged(Ie)&&(gt.emit("change",Ie,gt.prev),gt.prev=Ie)}finally{gt.loop()}},gt.vol=lt,gt}return ot.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)},ot.prototype.hasChanged=function(lt){return lt.mtimeMs>this.prev.mtimeMs||lt.nlink!==this.prev.nlink},ot.prototype.start=function(lt,gt,Ie){gt===void 0&&(gt=!0),Ie===void 0&&(Ie=5007),this.filename=Qt(lt),this.setTimeout=gt?setTimeout.bind(typeof globalThis<"u"?globalThis:TUt):_.default,this.interval=Ie,this.prev=this.vol.statSync(this.filename),this.loop()},ot.prototype.stop=function(){clearTimeout(this.timeoutRef),y.default.nextTick(Pr,this)},ot})(T.EventEmitter);Ks.StatWatcher=k;var a;function S(yt){a=(0,d.bufferAllocUnsafe)(yt),a.used=0}P.inherits(sn,I.Readable),Ks.ReadStream=sn;function sn(yt,ot,lt){if(!(this instanceof sn))return new sn(yt,ot,lt);if(this._vol=yt,lt=Object.assign({},_t(lt,{})),lt.highWaterMark===void 0&&(lt.highWaterMark=64*1024),I.Readable.call(this,lt),this.path=Qt(ot),this.fd=lt.fd===void 0?null:lt.fd,this.flags=lt.flags===void 0?"r":lt.flags,this.mode=lt.mode===void 0?438:lt.mode,this.start=lt.start,this.end=lt.end,this.autoClose=lt.autoClose===void 0?!0:lt.autoClose,this.pos=void 0,this.bytesRead=0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}typeof this.fd!="number"&&this.open(),this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}sn.prototype.open=function(){var yt=this;this._vol.open(this.path,this.flags,this.mode,function(ot,lt){if(ot){yt.autoClose&&yt.destroy&&yt.destroy(),yt.emit("error",ot);return}yt.fd=lt,yt.emit("open",lt),yt.read()})},sn.prototype._read=function(yt){if(typeof this.fd!="number")return this.once("open",function(){this._read(yt)});if(this.destroyed)return;(!a||a.length-a.used<C)&&S(this._readableState.highWaterMark);var ot=a,lt=Math.min(a.length-a.used,yt),gt=a.used;if(this.pos!==void 0&&(lt=Math.min(this.end-this.pos+1,lt)),lt<=0)return this.push(null);var Ie=this;this._vol.read(this.fd,a,a.used,lt,this.pos,Zt),this.pos!==void 0&&(this.pos+=lt),a.used+=lt;function Zt(Ir,$){if(Ir)Ie.autoClose&&Ie.destroy&&Ie.destroy(),Ie.emit("error",Ir);else{var Qr=null;$>0&&(Ie.bytesRead+=$,Qr=ot.slice(gt,gt+$)),Ie.push(Qr)}}},sn.prototype._destroy=function(yt,ot){this.close(function(lt){ot(yt||lt)})},sn.prototype.close=function(yt){var ot=this;if(yt&&this.once("close",yt),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",Lr);return}return y.default.nextTick(function(){return ot.emit("close")})}this.closed=!0,this._vol.close(this.fd,function(lt){lt?ot.emit("error",lt):ot.emit("close")}),this.fd=null};function Lr(yt){this.close()}P.inherits(Wr,I.Writable),Ks.WriteStream=Wr;function Wr(yt,ot,lt){if(!(this instanceof Wr))return new Wr(yt,ot,lt);if(this._vol=yt,lt=Object.assign({},_t(lt,{})),I.Writable.call(this,lt),this.path=Qt(ot),this.fd=lt.fd===void 0?null:lt.fd,this.flags=lt.flags===void 0?"w":lt.flags,this.mode=lt.mode===void 0?438:lt.mode,this.start=lt.start,this.autoClose=lt.autoClose===void 0?!0:!!lt.autoClose,this.pos=void 0,this.bytesWritten=0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}lt.encoding&&this.setDefaultEncoding(lt.encoding),typeof this.fd!="number"&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}Wr.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(yt,ot){if(yt){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",yt);return}this.fd=ot,this.emit("open",ot)}.bind(this))},Wr.prototype._write=function(yt,ot,lt){if(!(yt instanceof d.Buffer))return this.emit("error",new Error("Invalid data"));if(typeof this.fd!="number")return this.once("open",function(){this._write(yt,ot,lt)});var gt=this;this._vol.write(this.fd,yt,0,yt.length,this.pos,function(Ie,Zt){if(Ie)return gt.autoClose&>.destroy&>.destroy(),lt(Ie);gt.bytesWritten+=Zt,lt()}),this.pos!==void 0&&(this.pos+=yt.length)},Wr.prototype._writev=function(yt,ot){if(typeof this.fd!="number")return this.once("open",function(){this._writev(yt,ot)});for(var lt=this,gt=yt.length,Ie=new Array(gt),Zt=0,Ir=0;Ir<gt;Ir++){var $=yt[Ir].chunk;Ie[Ir]=$,Zt+=$.length}var Qr=d.Buffer.concat(Ie);this._vol.write(this.fd,Qr,0,Qr.length,this.pos,function(en,xr){if(en)return lt.destroy&<.destroy(),ot(en);lt.bytesWritten+=xr,ot()}),this.pos!==void 0&&(this.pos+=Zt)},Wr.prototype._destroy=sn.prototype._destroy,Wr.prototype.close=sn.prototype.close,Wr.prototype.destroySoon=Wr.prototype.end;var ln=(function(yt){e(ot,yt);function ot(lt){var gt=yt.call(this)||this;return gt._filename="",gt._filenameEncoded="",gt._recursive=!1,gt._encoding=M.ENCODING_UTF8,gt._onNodeChange=function(){gt._emit("change")},gt._onParentChild=function(Ie){Ie.getName()===gt._getName()&>._emit("rename")},gt._emit=function(Ie){gt.emit("change",Ie,gt._filenameEncoded)},gt._persist=function(){gt._timer=setTimeout(gt._persist,1e6)},gt._vol=lt,gt}return ot.prototype._getName=function(){return this._steps[this._steps.length-1]},ot.prototype.start=function(lt,gt,Ie,Zt){gt===void 0&&(gt=!0),Ie===void 0&&(Ie=!1),Zt===void 0&&(Zt=M.ENCODING_UTF8),this._filename=Qt(lt),this._steps=ar(this._filename),this._filenameEncoded=(0,M.strToEncoding)(this._filename),this._recursive=Ie,this._encoding=Zt;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(Qr){var Ir=new Error("watch "+this._filename+" "+Qr.code);throw Ir.code=Qr.code,Ir.errno=Qr.code,Ir}this._link.getNode().on("change",this._onNodeChange),this._link.on("child:add",this._onNodeChange),this._link.on("child:delete",this._onNodeChange);var $=this._link.parent;$&&($.setMaxListeners($.getMaxListeners()+1),$.on("child:delete",this._onParentChild)),gt&&this._persist()},ot.prototype.close=function(){clearTimeout(this._timer),this._link.getNode().removeListener("change",this._onNodeChange);var lt=this._link.parent;lt&<.removeListener("child:delete",this._onParentChild)},ot})(T.EventEmitter);return Ks.FSWatcher=ln,Ks}function BUt(){if(pet)return nR;pet=!0,Object.defineProperty(nR,"__esModule",{value:!0}),nR.fsAsyncMethods=nR.fsSyncMethods=nR.fsProps=void 0;var e=["constants","F_OK","R_OK","W_OK","X_OK","Stats"];nR.fsProps=e;var t=["renameSync","ftruncateSync","truncateSync","chownSync","fchownSync","lchownSync","chmodSync","fchmodSync","lchmodSync","statSync","lstatSync","fstatSync","linkSync","symlinkSync","readlinkSync","realpathSync","unlinkSync","rmdirSync","mkdirSync","mkdirpSync","readdirSync","closeSync","openSync","utimesSync","futimesSync","fsyncSync","writeSync","readSync","readFileSync","writeFileSync","appendFileSync","existsSync","accessSync","fdatasyncSync","mkdtempSync","copyFileSync","createReadStream","createWriteStream"];nR.fsSyncMethods=t;var r=["rename","ftruncate","truncate","chown","fchown","lchown","chmod","fchmod","lchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","mkdirp","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","exists","access","fdatasync","mkdtemp","copyFile","watchFile","unwatchFile","watch"];return nR.fsAsyncMethods=r,nR}function MUt(){if(get)return ll;get=!0;var e=ll&&ll.__assign||function(){return e=Object.assign||function(M){for(var D,P=1,G=arguments.length;P<G;P++){D=arguments[P];for(var q in D)Object.prototype.hasOwnProperty.call(D,q)&&(M[q]=D[q])}return M},e.apply(this,arguments)};Object.defineProperty(ll,"__esModule",{value:!0}),ll.fs=ll.createFsFromVolume=ll.vol=ll.Volume=void 0;var t=ghe(),r=yet(),i=vet(),n=BUt(),o=n.fsSyncMethods,d=n.fsAsyncMethods,g=uP(),y=g.constants.F_OK,_=g.constants.R_OK,I=g.constants.W_OK,N=g.constants.X_OK;ll.Volume=i.Volume,ll.vol=new i.Volume;function T(M){for(var D={F_OK:y,R_OK:_,W_OK:I,X_OK:N,constants:g.constants,Stats:t.default,Dirent:r.default},P=0,G=o;P<G.length;P++){var q=G[P];typeof M[q]=="function"&&(D[q]=M[q].bind(M))}for(var Y=0,ne=d;Y<ne.length;Y++){var q=ne[Y];typeof M[q]=="function"&&(D[q]=M[q].bind(M))}return D.StatWatcher=M.StatWatcher,D.FSWatcher=M.FSWatcher,D.WriteStream=M.WriteStream,D.ReadStream=M.ReadStream,D.promises=M.promises,D._toUnixTimestamp=i.toUnixTimestamp,D}return ll.createFsFromVolume=T,ll.fs=T(ll.vol),ll=e(e({},ll),ll.fs),ll.semantic=!0,ll}function $1(e){throw new Error(`Node.js fs ${e} is not supported by JSPM core in the browser`)}function Ret(e,t,r){let i=0,n=new TextDecoder;iR.watch(e,"utf8",()=>{let{size:o}=iR.fstatSync(t),d=fe.alloc(o-i);iR.readSync(t,d,0,d.length,i),i=o,r(n.decode(d,{stream:!0}))})}function mhe(e,t){if(e.protocol==="file:")return phe(e);if(e.protocol==="https:"||e.protocol==="http:"){let r="\\\\url\\"+e.href.replaceAll(/\//g,"\\\\");if(Iet(r))return r;if(t)throw new Error(`Cannot sync request URL ${e} via FS. JSPM FS support for network URLs requires using async FS methods or priming the MemFS cache first with an async request before a sync request.`);return(async()=>{let i=await fetch(e);if(!i.ok)throw new Error(`Unable to fetch ${e.href}, ${i.status}`);let n=await i.arrayBuffer();return Cet(r,fe.from(n)),r})()}throw new Error("URL "+e+" not supported in JSPM FS implementation.")}function kUt(e){return function(t,...r){return t instanceof URL?e(mhe(t,!0),...r):e(t,...r)}}function PUt(e){return async function(t,...r){return t instanceof URL?e(await mhe(t),...r):e(t,...r)}}function LUt(e){return function(t,...r){let i=r[r.length-1];t instanceof URL&&typeof i=="function"?mhe(t).then(n=>{e(n,...r)},i):e(t,...r)}}var sP,jje,Cz,eet,HN,tet,Qm,ret,Ff,net,IUt,Nb,iet,GN,oet,wz,aet,set,qN,cet,Dp,uet,Oz,det,wUt,dI,fet,cP,het,Ks,Aet,TUt,nR,pet,ll,get,hC,TA,iR,DUt,t0,UUt,FUt,QUt,HUt,GUt,qUt,VUt,JUt,zUt,KUt,$Ut,YUt,WUt,XUt,ZUt,jUt,eFt,Iet,tFt,rFt,nFt,iFt,oFt,aFt,sFt,cFt,uFt,dFt,fFt,lFt,hFt,AFt,pFt,gFt,_Ft,mFt,yFt,bFt,EFt,vFt,RFt,SFt,IFt,CFt,wFt,OFt,NFt,xFt,TFt,BFt,MFt,DFt,kFt,PFt,LFt,UFt,FFt,QFt,HFt,GFt,qFt,VFt,JFt,zFt,KFt,$Ft,YFt,WFt,XFt,ZFt,jFt,eQt,tQt,rQt,nQt,iQt,oQt,aQt,sQt,cQt,Cet,uQt,dQt,fQt,lQt,hQt,AQt,pQt,gQt,_Qt,mQt,yQt,bQt,EQt,vQt,RQt,SQt,IQt,CQt,bhe=tn(()=>{"use strict";J();K();z();lO();Fje();Ek();vv();Iz();XS();bN();YS();qk();Zje();iP();qJ();mh();sO();Ev();UM();she();che();sP={},jje=!1;Cz={},eet=!1;HN={},tet=!1;Qm={},ret=!1;Ff={},net=!1,IUt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Nb={},iet=!1;GN={},oet=!1;wz={},aet=!1,set=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;qN={},cet=!1;Dp={},uet=!1;Oz={},det=!1,wUt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;dI={},fet=!1;cP={},het=!1;Ks={},Aet=!1,TUt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;nR={},pet=!1;ll={},get=!1;hC=MUt();hC.__esModule;hC.fs;hC.createFsFromVolume;hC.vol;hC.Volume;hC.semantic;TA=vet();TA.__esModule;TA.FSWatcher;TA.StatWatcher;TA.Volume;TA.toUnixTimestamp;TA.bufferToEncoding;TA.dataToBuffer;TA.dataToStr;TA.pathToSteps;TA.filenameToSteps;TA.pathToFilename;TA.flagsToNumber;TA.FLAGS;TA.ReadStream;TA.WriteStream;({vol:iR,createFsFromVolume:DUt}=hC);iR.fromNestedJSON({"/dev":{stdin:"",stdout:"",stderr:""},"/usr/bin":{},"/home":{},"/tmp":{}});iR.releasedFds=[2,1,0];iR.openSync("/dev/stdin","w");iR.openSync("/dev/stdout","r");iR.openSync("/dev/stderr","r");Ret("/dev/stdout",1,console.log);Ret("/dev/stderr",2,console.error);t0=DUt(iR);t0.opendir=()=>$1("opendir");t0.opendirSync=()=>$1("opendirSync");t0.promises.opendir=()=>$1("promises.opendir");t0.cp=()=>$1("cp");t0.cpSync=()=>$1("cpSync");t0.promises.cp=()=>$1("promises.cp");t0.readv=()=>$1("readv");t0.readvSync=()=>$1("readvSync");t0.rm=()=>$1("rm");t0.rmSync=()=>$1("rmSync");t0.promises.rm=()=>$1("promises.rm");t0.Dir=()=>$1("Dir");t0.promises.watch=()=>$1("promises.watch");t0.FileReadStream=t0.ReadStream;t0.FileWriteStream=t0.WriteStream;t0.promises.readFile=PUt(t0.promises.readFile);t0.readFile=LUt(t0.readFile);t0.readFileSync=kUt(t0.readFileSync);({appendFile:UUt,appendFileSync:FUt,access:QUt,accessSync:HUt,chown:GUt,chownSync:qUt,chmod:VUt,chmodSync:JUt,close:zUt,closeSync:KUt,copyFile:$Ut,copyFileSync:YUt,cp:WUt,cpSync:XUt,createReadStream:ZUt,createWriteStream:jUt,exists:eFt,existsSync:Iet,fchown:tFt,fchownSync:rFt,fchmod:nFt,fchmodSync:iFt,fdatasync:oFt,fdatasyncSync:aFt,fstat:sFt,fstatSync:cFt,fsync:uFt,fsyncSync:dFt,ftruncate:fFt,ftruncateSync:lFt,futimes:hFt,futimesSync:AFt,lchown:pFt,lchownSync:gFt,lchmod:_Ft,lchmodSync:mFt,link:yFt,linkSync:bFt,lstat:EFt,lstatSync:vFt,mkdir:RFt,mkdirSync:SFt,mkdtemp:IFt,mkdtempSync:CFt,open:wFt,openSync:OFt,opendir:NFt,opendirSync:xFt,readdir:TFt,readdirSync:BFt,read:MFt,readSync:DFt,readv:kFt,readvSync:PFt,readFile:LFt,readFileSync:UFt,readlink:FFt,readlinkSync:QFt,realpath:HFt,realpathSync:GFt,rename:qFt,renameSync:VFt,rm:JFt,rmSync:zFt,rmdir:KFt,rmdirSync:$Ft,stat:YFt,statSync:WFt,symlink:XFt,symlinkSync:ZFt,truncate:jFt,truncateSync:eQt,unwatchFile:tQt,unlink:rQt,unlinkSync:nQt,utimes:iQt,utimesSync:oQt,watch:aQt,watchFile:sQt,writeFile:cQt,writeFileSync:Cet,write:uQt,writeSync:dQt,writev:fQt,writevSync:lQt,Dir:hQt,Dirent:AQt,Stats:pQt,ReadStream:gQt,WriteStream:_Qt,FileReadStream:mQt,FileWriteStream:yQt,_toUnixTimestamp:bQt,constants:{F_OK:EQt,R_OK:vQt,W_OK:RQt,X_OK:SQt},constants:IQt,promises:CQt}=t0)});var wet=ir((dP,fP)=>{"use strict";J();K();z();(function(e){function t(r){"use strict";var i;(i=r)===void 0&&(i={});var n=i;typeof n.sodium!="object"&&(typeof global=="object"?n=global:typeof window=="object"&&(n=window));var o=i;return i.ready=new Promise((function(d,g){(_=o).onAbort=g,_.print=function(oe){},_.printErr=function(oe){},_.onRuntimeInitialized=function(){try{_._crypto_secretbox_keybytes(),d()}catch(oe){g(oe)}},_.useBackupModule=function(){return new Promise((function(oe,ge){(V={}).onAbort=ge,V.onRuntimeInitialized=function(){Object.keys(o).forEach((function(be){be!=="getRandomValue"&&delete o[be]})),Object.keys(V).forEach((function(be){o[be]=V[be]})),oe()};var Le,V=V!==void 0?V:{},Qe=typeof window=="object",_t=typeof importScripts=="function",rt=typeof me=="object"&&typeof me.versions=="object"&&typeof me.versions.node=="string",At=Object.assign({},V),Er="";if(rt){var mt=(bhe(),Zu(yhe)),Ht=(Iz(),Zu(ohe));Er="//",Le=be=>(be=wn(be)?new URL(be):Ht.normalize(be),mt.readFileSync(be)),!V.thisProgram&&me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2),typeof fP<"u"&&(fP.exports=V)}else(Qe||_t)&&(_t?Er=self.location.href:typeof document<"u"&&document.currentScript&&(Er=document.currentScript.src),Er=Er.startsWith("blob:")?"":Er.substr(0,Er.replace(/[?#].*/,"").lastIndexOf("/")+1),_t&&(Le=be=>{var qe=new XMLHttpRequest;return qe.open("GET",be,!1),qe.responseType="arraybuffer",qe.send(null),new Uint8Array(qe.response)}));V.print;var zr,ve=V.printErr||void 0;Object.assign(V,At),At=null,V.arguments&&V.arguments,V.thisProgram&&V.thisProgram,V.quit&&V.quit,V.wasmBinary&&(zr=V.wasmBinary);var ie,_e={Memory:function(be){this.buffer=new ArrayBuffer(65536*be.initial)},Module:function(be){},Instance:function(be,qe){this.exports=(function(De){for(var Je,Rt=new Uint8Array(123),Vt=25;Vt>=0;--Vt)Rt[48+Vt]=52+Vt,Rt[65+Vt]=Vt,Rt[97+Vt]=26+Vt;function br(Dr,Pr,k){for(var a,S,sn=0,Lr=Pr,Wr=k.length,ln=Pr+(3*Wr>>2)-(k[Wr-2]=="=")-(k[Wr-1]=="=");sn<Wr;sn+=4)a=Rt[k.charCodeAt(sn+1)],S=Rt[k.charCodeAt(sn+2)],Dr[Lr++]=Rt[k.charCodeAt(sn)]<<2|a>>4,Lr<ln&&(Dr[Lr++]=a<<4|S>>2),Lr<ln&&(Dr[Lr++]=S<<6|Rt[k.charCodeAt(sn+3)])}function Rr(){throw new Error("abort")}return Rt[43]=62,Rt[47]=63,(function(Dr){var Pr=new ArrayBuffer(50331648),k=new Int8Array(Pr),a=(new Int16Array(Pr),new Int32Array(Pr)),S=new Uint8Array(Pr),sn=(new Uint16Array(Pr),new Uint32Array(Pr)),Lr=(new Float32Array(Pr),new Float64Array(Pr),Math.imul),Wr=Math.clz32,ln=Dr.a,yt=ln.a,ot=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S[f+38|0]<<16|S[f+39|0]<<24)|0,v=B+((jr=S[f+32|0]|S[f+33|0]<<8|S[f+34|0]<<16|S[f+35|0]<<24)>>>0>(j=jr+(ft=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24)|0)>>>0?v+1|0:v)|0,v=(Bn=(fn=j+fn|0)>>>0<j>>>0?v+1|0:v)+Mr|0,mi=j=fn+rn|0,j=v=j>>>0<fn>>>0?v+1|0:v,ee=jr,jr=Ke(fn^(S[f+64|0]|S[f+65|0]<<8|S[f+66|0]<<16|S[f+67|0]<<24)^-1377402159,Bn^(S[f+68|0]|S[f+69|0]<<8|S[f+70|0]<<16|S[f+71|0]<<24)^1359893119,32),Bn=v=$,v=v+1779033703|0,fn=jr,Wt=v=(jr=jr-205731576|0)>>>0<4089235720?v+1|0:v,re=Ke(ee^(pt=jr),v^re,40),v=(yr=$)+j|0,ee=Ke(fn^(j=jr=re+mi|0),Bn^(Ye=re>>>0>j>>>0?v+1|0:v),48),v=Ke(ee^nt,(Yr=$)^Gt,32),xe=jr=$,or=v,p=v=S[c+60|0]|S[c+61|0]<<8|S[c+62|0]<<16|S[c+63|0]<<24,Bn=mi=S[c+56|0]|S[c+57|0]<<8|S[c+58|0]<<16|S[c+59|0]<<24,dt=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,jr=(Gt=S[c+48|0]|S[c+49|0]<<8|S[c+50|0]<<16|S[c+51|0]<<24)+(fn=S[f+56|0]|S[f+57|0]<<8|S[f+58|0]<<16|S[f+59|0]<<24)|0,v=(Oo=S[c+52|0]|S[c+53|0]<<8|S[c+54|0]<<16|S[c+55|0]<<24)+(Sr=S[f+60|0]|S[f+61|0]<<8|S[f+62|0]<<16|S[f+63|0]<<24)|0,v=(S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24)+(jr>>>0<fn>>>0?v+1|0:v)|0,v=p+(nt=(it=jr)>>>0>(jr=dt+jr|0)>>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>>0>Tn>>>0?f+1|0:f,h=Ce(cr,0,vr,0),p=$+f|0,f=h>>>0>(Tn=h+Tn|0)>>>0?p+1|0:p,_n=f=(Yf=Gt+Tn|0)>>>0<Tn>>>0?f+1|0:f,pn=f=f-((Yf>>>0<4293918720)-1|0)|0,h=(p=f>>>21|0)+b|0,ui=h=(f=(2097151&f)<<11|(Bn=Yf- -1048576|0)>>>21)>>>0>(_p=f+ft|0)>>>0?h+1|0:h,En=f=h-((_p>>>0<4293918720)-1|0)|0,h=(2097151&f)<<11|(rn=_p- -1048576|0)>>>21,f=(f>>>21|0)+zn|0,Tn=f=h>>>0>(Jr=h+Jr|0)>>>0?f+1|0:f,Mn=f=f-((Jr>>>0<4293918720)-1|0)|0,h=(p=f>>21)+Q|0,FH=h=(h=(f=(2097151&f)<<11|(ft=Jr- -1048576|0)>>>21)>>>0>(b=f+Vi|0)>>>0?h+1|0:h)-(((p=-2097152&U0)>>>0>b>>>0)+QH|0)|0,U0=f=b-p|0,Gt=f- -1048576|0,QH=f=h-((f>>>0<4293918720)-1|0)|0,p=(h=f>>21)+Nr|0,h=((f=(2097151&f)<<11|Gt>>>21)>>>0>(b=f+rm|0)>>>0?p+1|0:p)+rr|0,Ou=h=(h=(f=b)>>>0>(b=b+Nn|0)>>>0?h+1|0:h)-(((p=-2097152&td)>>>0>b>>>0)+HH|0)|0,rr=f=b-p|0,Q=f- -1048576|0,Fl=f=h-((f>>>0<4293918720)-1|0)|0,p=(h=f>>21)+qH|0,td=f=(p=(f=(2097151&f)<<11|Q>>>21)>>>0>(Nr=f+GH|0)>>>0?p+1|0:p)-((Nr>>>0<4293918720)-1|0)|0,Vi=ss- -1048576|0,zn=Ci-((ss>>>0<4293918720)-1|0)|0,Nn=(2097151&f)<<11|(b=Nr- -1048576|0)>>>21,f=(f>>21)+Ci|0,HH=(ss=Nn+ss|0)-(h=-2097152&Vi)|0,GH=(Nn>>>0>ss>>>0?f+1|0:f)-((h>>>0>ss>>>0)+zn|0)|0,qH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,nt=Ce(Bn,ft,-683901,-1)+c|0,xe=$,xe=c>>>0>nt>>>0?xe+1|0:xe,c=Ne,Ne=xe+(Ne>>=21)|0,Ne=(c=(Cr=nt)+(nt=(2097151&c)<<11|h>>>21)|0)>>>0<nt>>>0?Ne+1|0:Ne,k[f+14|0]=(127&Ne)<<25|c>>>7,xe=0,k[f+13|0]=xe<<12|(1048576&h)>>>20|c<<1,xe=Ne>>21,xe=(h=(Ne=(2097151&Ne)<<11|c>>>21)+(2097151&hn)|0)>>>0<Ne>>>0?xe+1|0:xe,k[f+17|0]=(1023&xe)<<22|h>>>10,k[f+16|0]=(3&xe)<<30|h>>>2,Ne=0,k[f+15|0]=Ne<<17|(2064384&c)>>>15|h<<6,c=xe,xe>>=21,nt=(c=(Ne=(2097151&c)<<11|h>>>21)+(2097151&Mn)|0)>>>0<Ne>>>0?xe+1|0:xe,k[f+20|0]=(8191&nt)<<19|c>>>13,k[f+19|0]=(31&nt)<<27|c>>>5,Ne=nt>>21,Ne=(xe=(Cr=(2097151&nt)<<11|c>>>21)+(2097151&Yr)|0)>>>0<Cr>>>0?Ne+1|0:Ne,Cr=xe,k[f+21|0]=xe,xe=0,k[f+18|0]=xe<<14|(1835008&h)>>>18|c<<3,k[f+22|0]=(255&Ne)<<24|Cr>>>8,xe=Ne>>21,xe=(c=(h=(2097151&Ne)<<11|Cr>>>21)+(2097151&pn)|0)>>>0<h>>>0?xe+1|0:xe,k[f+25|0]=(2047&xe)<<21|c>>>11,k[f+24|0]=(7&xe)<<29|c>>>3,k[f+23|0]=31&((65535&Ne)<<16|Cr>>>16)|c<<5,Ne=(2097151&xe)<<11|c>>>21,xe>>=21,xe=(h=Ne+(2097151&An)|0)>>>0<Ne>>>0?xe+1|0:xe,k[f+27|0]=(63&xe)<<26|h>>>6,Ne=0,k[f+26|0]=Ne<<13|(1572864&c)>>>19|h<<2,c=xe,Ne=xe>>=21,Ne=(c=(Cr=(2097151&c)<<11|h>>>21)+(nt=2097151&Gt)|0)>>>0<nt>>>0?Ne+1|0:Ne,k[f+31|0]=(131071&Ne)<<15|c>>>17,k[f+30|0]=(511&Ne)<<23|c>>>9,xe=0,k[f+28|0]=xe<<18|(2080768&h)>>>14|c<<7,k[f+29|0]=Cr+Gt>>>1}function Mi(f,c,h,p){for(var b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0,Jt=0,ur=0,Mr=0;Q=(b=L<<3)+h|0,B=S[0|(b=c+b|0)]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,Ye=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,H=B<<24|(65280&B)<<8,j=(v=16711680&B)<<24,v=v>>>8|0,b=(Z=-16777216&B)>>>24|0,a[Q>>2]=j|Z<<8|-16777216&((255&Ye)<<24|B>>>8)|16711680&((16777215&Ye)<<8|B>>>24)|Ye>>>8&65280|Ye>>>24,B=b|v|H,b=0,a[Q+4>>2]=B|b,(0|(L=L+1|0))!=16;);for(c=a[f+4>>2],a[p>>2]=a[f>>2],a[p+4>>2]=c,c=a[f+60>>2],a[p+56>>2]=a[f+56>>2],a[p+60>>2]=c,c=a[f+52>>2],a[p+48>>2]=a[f+48>>2],a[p+52>>2]=c,c=a[f+44>>2],a[p+40>>2]=a[f+40>>2],a[p+44>>2]=c,c=a[f+36>>2],a[p+32>>2]=a[f+32>>2],a[p+36>>2]=c,c=a[f+28>>2],a[p+24>>2]=a[f+24>>2],a[p+28>>2]=c,c=a[f+20>>2],a[p+16>>2]=a[f+16>>2],a[p+20>>2]=c,c=a[f+12>>2],a[p+8>>2]=a[f+8>>2],a[p+12>>2]=c;Q=a[p+56>>2],v=a[p+60>>2],b=a[(c=Ye=(it=Mr<<3)+h|0)>>2],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{t:{if((0|(Q=a[f+36>>2]))==2){if(pn=a[f+4>>2],(xe=a[c>>2])|(Gr=S[c+8|0])>>>0>=2)break t;xe=0}else Gr=S[c+8|0],pn=a[f+4>>2],xe=a[c>>2];if(yo(h+3072|0,0,1024),yo(h+2104|0,0,968),a[h+2048>>2]=xe,a[h+2052>>2]=0,cr=a[c+4>>2],a[h+2064>>2]=Gr,a[h+2068>>2]=0,a[h+2056>>2]=cr,a[h+2060>>2]=0,a[h+2072>>2]=a[f+16>>2],a[h+2076>>2]=0,cr=a[f+8>>2],a[h+2088>>2]=Q,a[h+2092>>2]=0,a[h+2080>>2]=cr,a[h+2084>>2]=0,!a[f+20>>2])break e;for(cr=0;(ye=127&H)||(cr=(Or=Or+1|0)?cr:cr+1|0,a[h+2096>>2]=Or,a[h+2100>>2]=cr,Q=yo(h,0,1024),yo(Q+1024|0,0,1024),Tr(p=Q+3072|0,Q+2048|0,Q),Tr(p,Q,Q+1024|0)),ye=a[4+(Q=(h+1024|0)+(ye<<3)|0)>>2],a[(p=(H<<3)+pn|0)>>2]=a[Q>>2],a[p+4>>2]=ye,(ye=a[f+20>>2])>>>0>(H=H+1|0)>>>0;);break e}ye=a[f+20>>2],ft=1}if(!((cr=(Mn=!(Gr|xe))<<1)>>>0>=ye>>>0))for(Q=a[f+24>>2],hn=a[c+4>>2],H=(Or=(Lr(Q,hn)+cr|0)+Lr(ye,Gr)|0)+((Or>>>0)%(Q>>>0)|0?-1:Q-1|0)|0,Gt=Gr+1|0;;){p=a[f+28>>2],En=((Or>>>0)%((Q=a[f+24>>2])>>>0)|0)==1?Or-1|0:H,H=ft?a[a[f>>2]+4>>2]+(En<<10)|0:(cr<<3)+pn|0,b=a[H>>2],H=a[H+4>>2],a[c+12>>2]=cr,p=Mn?hn:(H>>>0)%(p>>>0)|0;e:if(xe)H=Q+((0|p)==(0|hn)?~ye+cr|0:(cr?0:-1)-ye|0)|0,B=0,(0|Gr)!=3&&(B=Lr(ye,Gt));else{if(!Gr){H=cr-1|0,B=0;break e}if(H=Lr(ye,Gr),(0|p)==(0|hn)){H=(H+cr|0)-1|0,B=0;break e}H=H-!cr|0,B=0}ye=B,v=(Z=a[a[f>>2]+4>>2])+(Lr(p,Q)<<10)|0,re=(p=H-1|0)>>>0>(B=p+ye|0)>>>0,Ce(b,0,b,0),Ce(H,0,$,0),ye=B-(H=$)|0,p=0,j=0;e:{t:{r:{n:{i:{c:{s:{o:{d:{a:{if(H=re-(B>>>0<H>>>0)|0){if(!Q)break a;break d}Zt=ye-Lr((ye>>>0)/(Q>>>0)|0,Q)|0,Ir=0,$=0;break e}if(!ye)break o;break s}if(!((b=Q-1|0)&Q))break c;L=0-(b=(Wr(Q)+33|0)-Wr(H)|0)|0;break n}Zt=0,Ir=H,$=0;break e}if((p=32-Wr(H)|0)>>>0<31)break i;break r}if(Zt=b&ye,Ir=0,(0|Q)==1)break t;Q=31&(ye=LH(Q)),(63&ye)>>>0>=32?b=H>>>Q|0:(p=H>>>Q|0,b=0),$=p;break e}b=p+1|0,L=63-p|0}if(B=31&(p=63&b),p>>>0>=32?(p=0,re=H>>>B|0):(p=H>>>B|0,re=((1<<B)-1&H)<<32-B|ye>>>B),B=31&(L&=63),L>>>0>=32?(H=ye<<B,ye=0):(H=(1<<B)-1&ye>>>32-B|H<<B,ye<<=B),b)for(ke=(0|(L=Q-1|0))==-1?-1:0;dt=p<<1|re>>>31,re=(p=re<<1|H>>>31)-(pt=Q&(B=ke-(dt+(p>>>0>L>>>0)|0)>>31))|0,p=dt-(p>>>0<pt>>>0)|0,H=H<<1|ye>>>31,ye=j|ye<<1,j=1&B,b=b-1|0;);Zt=re,Ir=p,$=H<<1|ye>>>31;break e}Zt=ye,Ir=H,H=0}$=H}if($=Ir,H=(Zt<<10)+v|0,Q=Z+(En<<10)|0,Nr=Z+(Or<<10)|0,xe)Tr(Q,H,Nr);else{for(Di(h+3072|0,H,1024),H=0;B=a[(b=(ye=H<<3)+(p=h+3072|0)|0)>>2],Z=a[(re=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[f+42|0]|S[f+43|0]<<8,Z=$,Ve=Z=ee>>>0>(ut=de+ee|0)>>>0?Z+1|0:Z,it=Z=Z-((ut>>>0<4293918720)-1|0)|0,de=Z>>21,Z=(ee=we)+(we=(2097151&Z)<<11|(ye=ut- -1048576|0)>>>21)|0,ee=de,yr=ee=Z>>>0<we>>>0?ee+1|0:ee,jr=Z,Ye=Ce(Z,ee,-683901,-1),We=$,Me=Ce(h=(S[f+49|0]|S[f+50|0]<<8|S[f+51|0]<<16|S[f+52|0]<<24)>>>7&2097151,0,-997805,-1),de=(Z=S[f+27|0])>>>24|0,we=Z<<8|(dt=S[f+23|0]|S[f+24|0]<<8|S[f+25|0]<<16|S[f+26|0]<<24)>>>24,ee=(Z=S[f+28|0])>>>16|0,ee=2097151&((3&(ee|=de))<<30|(Z=we|Z<<16)>>>2),Z=$,Z=ee>>>0>(de=ee+Me|0)>>>0?Z+1|0:Z,ee=Ce(Mr=(pt=S[f+52|0]|S[f+53|0]<<8|S[f+54|0]<<16|S[f+55|0]<<24)>>>4&2097151,0,654183,0),Z=$+Z|0,Me=de=ee+de|0,de=ee>>>0>de>>>0?Z+1|0:Z,ke=(ee=S[f+48|0])<<8|Wt>>>24,ee=Z=ee>>>24|0,Z=Ce(p=2097151&((3&(Wt=(Z=(we=S[f+49|0])>>>16|0)|ee))<<30|(ee=(we<<=16)|ke)>>>2),0,136657,0),de=$+de|0,de=Z>>>0>(ee=Z+Me|0)>>>0?de+1|0:de,we=(Z=Ce(b=(S[f+57|0]|S[f+58|0]<<8|S[f+59|0]<<16|S[f+60|0]<<24)>>>6&2097151,0,666643,0))+ee|0,ee=$+de|0,Me=we,de=Z>>>0>we>>>0?ee+1|0:ee,ee=(Z=S[f+56|0])>>>24|0,ke=Z<<8|pt>>>24,ee=Ce(B=2097151&((1&(pt=(Z=(we=S[f+57|0])>>>16|0)|ee))<<31|(ee=(we<<=16)|ke)>>>1),0,470296,0),Z=$+de|0,ee=(Z=(de=we=ee+Me|0)>>>0<ee>>>0?Z+1|0:Z)+We|0,ee=de>>>0>(we=de+Ye|0)>>>0?ee+1|0:ee,nr=de- -1048576|0,Kt=de=Z-((de>>>0<4293918720)-1|0)|0,We=we-(Z=-2097152&nr)|0,Ye=ee-((Z>>>0>we>>>0)+de|0)|0,ee=Ce(h,0,654183,0),Z=$,Z=ee>>>0>(de=ee+(dt>>>5&2097151)|0)>>>0?Z+1|0:Z,we=(ee=de)+(de=Ce(Mr,0,470296,0))|0,ee=$+Z|0,ee=de>>>0>we>>>0?ee+1|0:ee,Z=Ce(p,nn,-997805,-1),ee=$+ee|0,ee=Z>>>0>(de=Z+we|0)>>>0?ee+1|0:ee,we=(Z=de)+(de=Ce(B,fn,666643,0))|0,Z=$+ee|0,ke=we,we=de>>>0>we>>>0?Z+1|0:Z,Me=(de=Ce(h,0,470296,0))+(Z=(Z=S[f+23|0])<<16&2031616|S[f+21|0]|S[f+22|0]<<8)|0,de=$,de=Z>>>0>Me>>>0?de+1|0:de,Me=(ee=Ce(Mr,0,666643,0))+Me|0,Z=$+de|0,de=Ce(p,nn,654183,0),ee=$+(ee>>>0>Me>>>0?Z+1|0:Z)|0,pt=ee=de>>>0>(dt=de+Me|0)>>>0?ee+1|0:ee,ur=ee=ee-((dt>>>0<4293918720)-1|0)|0,Z=(Z=ee>>>21|0)+we|0,de=Z=(ee=(2097151&ee)<<11|(Me=dt- -1048576|0)>>>21)>>>0>(ke=ee+ke|0)>>>0?Z+1|0:Z,bt=ee=Z-((ke>>>0<4293918720)-1|0)|0,Z=We,We=(2097151&ee)<<11|(we=ke- -1048576|0)>>>21,ee=(ee>>21)+Ye|0,Wt=We=(ee=We>>>0>(cr=Z+We|0)>>>0?ee+1|0:ee)-((cr>>>0<4293918720)-1|0)|0,Gr=cr-(Z=-2097152&(Ye=cr- -1048576|0))|0,Ne=ee-((Z>>>0>cr>>>0)+We|0)|0,Z=Ce(jr,yr,136657,0),de=$+de|0,de=Z>>>0>(ee=Z+ke|0)>>>0?de+1|0:de,Sr=ee-(Z=-2097152&we)|0,gr=de-((Z>>>0>ee>>>0)+bt|0)|0,cr=ut-(Z=-2097152&ye)|0,it=Ve-((Z>>>0>ut>>>0)+it|0)|0,Ve=Ce(c,0,136657,0),ee=(Z=S[f+40|0])>>>24|0,we=Z<<8|(ye=S[f+36|0]|S[f+37|0]<<8|S[f+38|0]<<16|S[f+39|0]<<24)>>>24,de=(Z=S[f+41|0])>>>16|0,ee=(de|=ee)>>>3|0,de=(7&de)<<29|(Z=we|Z<<16)>>>3,Z=ee+$|0,Z=de>>>0>(we=de+Ve|0)>>>0?Z+1|0:Z,ee=Ce(b,0,-683901,-1),Z=$+Z|0,Z=ee>>>0>(de=ee+we|0)>>>0?Z+1|0:Z,ke=de,ee=Ce(c,0,-997805,-1),de=$,de=ee>>>0>(we=ee+(ye>>>6&2097151)|0)>>>0?de+1|0:de,ye=(ee=we)+(we=Ce(b,0,136657,0))|0,ee=$+de|0,de=Ce(B,fn,-683901,-1),ee=$+(we>>>0>ye>>>0?ee+1|0:ee)|0,We=ee=de>>>0>(or=de+ye|0)>>>0?ee+1|0:ee,xe=de=ee-((or>>>0<4293918720)-1|0)|0,Z=Z+(ee=de>>21)|0,ye=Z=(de=(2097151&de)<<11|(ut=or- -1048576|0)>>>21)>>>0>(bt=de+ke|0)>>>0?Z+1|0:Z,Or=Z=Z-((bt>>>0<4293918720)-1|0)|0,ee=(ee=Z>>21)+it|0,Jt=ee=(Z=(de=(2097151&Z)<<11|(ke=bt- -1048576|0)>>>21)+cr|0)>>>0<de>>>0?ee+1|0:ee,kr=Z,ee=Ce(Z,ee,-683901,-1),Z=$+gr|0,vr=de=ee+Sr|0,we=ee>>>0>de>>>0?Z+1|0:Z,cr=dt-(Z=-2097152&Me)|0,it=pt-((4095&ur)+(Z>>>0>dt>>>0)|0)|0,dt=Ce(h,0,666643,0),Z=(ee=S[f+19|0])>>>24|0,Me=ee<<8|(pt=S[f+15|0]|S[f+16|0]<<8|S[f+17|0]<<16|S[f+18|0]<<24)>>>24,de=Z,ee=(7&(de|=ee=(Z=S[f+20|0])>>>16|0))<<29|(ee=(Z<<=16)|Me)>>>3,de=$+(de>>>3|0)|0,de=ee>>>0>(Me=ee+dt|0)>>>0?de+1|0:de,Z=Ce(p,nn,470296,0),ee=$+de|0,Z=Z>>>0>(Me=Z+Me|0)>>>0?ee+1|0:ee,de=Ce(p,nn,666643,0),ee=$,dt=ee=de>>>0>(Sr=de+(pt>>>6&2097151)|0)>>>0?ee+1|0:ee,nt=de=ee-((Sr>>>0<4293918720)-1|0)|0,Z=Z+(ee=de>>>21|0)|0,pt=Z=(de=(2097151&de)<<11|(Ve=Sr- -1048576|0)>>>21)>>>0>(gr=de+Me|0)>>>0?Z+1|0:Z,Cr=Z=Z-((gr>>>0<4293918720)-1|0)|0,ee=(ee=Z>>>21|0)+it|0,ee=(Z=(2097151&Z)<<11|(Me=gr- -1048576|0)>>>21)>>>0>(de=Z+cr|0)>>>0?ee+1|0:ee,it=(Z=de)+(de=Ce(jr,yr,-997805,-1))|0,Z=$+ee|0,Z=de>>>0>it>>>0?Z+1|0:Z,ur=ee=bt-(de=-2097152&ke)|0,Q=ke=ye-((de>>>0>bt>>>0)+Or|0)|0,de=Ce(kr,Jt,136657,0),Z=$+Z|0,Z=de>>>0>(ye=de+it|0)>>>0?Z+1|0:Z,de=Ce(ee,ke,-683901,-1),ee=$+Z|0,ye=ee=de>>>0>(it=de+ye|0)>>>0?ee+1|0:ee,Or=Z=ee-((it>>>0<4293918720)-1|0)|0,ee=(2097151&Z)<<11|(ke=it- -1048576|0)>>>21,Z=(Z>>21)+we|0,vr=ee=(Z=ee>>>0>(bt=ee+vr|0)>>>0?Z+1|0:Z)-((bt>>>0<4293918720)-1|0)|0,cr=(2097151&ee)<<11|(we=bt- -1048576|0)>>>21,ee=(ee>>21)+Ne|0,L=Gr=cr+Gr|0,cr=cr>>>0>Gr>>>0?ee+1|0:ee,H=bt-(ee=-2097152&we)|0,j=Z-((ee>>>0>bt>>>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+1|0]=(255&Z)<<24|nr>>>8,Z=2097151&Wt,ee=Ce(cr,bt,470296,0)+Z|0,de=$,Z=(we>>21)+(Z>>>0>ee>>>0?de+1|0:de)|0,Z=(it=(2097151&we)<<11|nr>>>21)>>>0>(Wt=it+ee|0)>>>0?Z+1|0:Z,k[f+4|0]=(2047&Z)<<21|Wt>>>11,ee=Z,de=Wt,k[f+3|0]=(7&Z)<<29|de>>>3,k[f+2|0]=31&((65535&we)<<16|nr>>>16)|de<<5,we=2097151&Ye,Ye=Ce(cr,bt,654183,0)+we|0,Z=$,Wt=(2097151&ee)<<11|de>>>21,ee=(ee>>21)+(we=we>>>0>Ye>>>0?Z+1|0:Z)|0,Z=ee=(Ye=Wt+Ye|0)>>>0<Wt>>>0?ee+1|0:ee,k[f+6|0]=(63&Z)<<26|Ye>>>6,we=Ye,Ye=0,k[f+5|0]=Ye<<13|(1572864&de)>>>19|we<<2,de=2097151&ke,ke=Ce(cr,bt,-997805,-1)+de|0,ee=$,ee=de>>>0>ke>>>0?ee+1|0:ee,Ye=(2097151&(de=Z))<<11|we>>>21,de=(Z>>=21)+ee|0,de=(ke=Ye+ke|0)>>>0<Ye>>>0?de+1|0:de,k[f+9|0]=(511&de)<<23|ke>>>9,k[f+8|0]=(1&de)<<31|ke>>>1,ee=0,k[f+7|0]=ee<<18|(2080768&we)>>>14|ke<<7,ee=2097151&We,we=Ce(cr,bt,136657,0)+ee|0,Z=$,Z=ee>>>0>we>>>0?Z+1|0:Z,We=(2097151&(ee=de))<<11|ke>>>21,ee=Z+(de=ee>>21)|0,ee=(we=We+we|0)>>>0<We>>>0?ee+1|0:ee,k[f+12|0]=(4095&ee)<<20|we>>>12,de=we,k[f+11|0]=(15&ee)<<28|de>>>4,we=0,k[f+10|0]=we<<15|(1966080&ke)>>>17|de<<4,we=2097151&ut,ke=Ce(cr,bt,-683901,-1)+we|0,Z=$,Z=we>>>0>ke>>>0?Z+1|0:Z,we=ee,ee=Z+(ee>>=21)|0,ee=(we=(vr=ke)+(ke=(2097151&we)<<11|de>>>21)|0)>>>0<ke>>>0?ee+1|0:ee,k[f+14|0]=(127&ee)<<25|we>>>7,ke=0,k[f+13|0]=ke<<12|(1048576&de)>>>20|we<<1,Z=ee>>21,de=(ee=(2097151&ee)<<11|we>>>21)>>>0>(ke=ee+(2097151&dt)|0)>>>0?Z+1|0:Z,k[f+17|0]=(1023&de)<<22|ke>>>10,k[f+16|0]=(3&de)<<30|ke>>>2,ee=0,k[f+15|0]=ee<<17|(2064384&we)>>>15|ke<<6,Z=de>>21,Z=(ee=(2097151&de)<<11|ke>>>21)>>>0>(de=ee+(2097151&Ve)|0)>>>0?Z+1|0:Z,k[f+20|0]=(8191&Z)<<19|de>>>13,k[f+19|0]=(31&Z)<<27|de>>>5,we=(ee=2097151&pt)+(pt=(2097151&Z)<<11|de>>>21)|0,ee=Z>>21,ee=we>>>0<pt>>>0?ee+1|0:ee,pt=we,k[f+21|0]=we,Ve=0,k[f+18|0]=Ve<<14|(1835008&ke)>>>18|de<<3,k[f+22|0]=(255&ee)<<24|we>>>8,de=ee>>21,de=(we=(ke=(2097151&ee)<<11|we>>>21)+(2097151&Me)|0)>>>0<ke>>>0?de+1|0:de,k[f+25|0]=(2047&de)<<21|we>>>11,k[f+24|0]=(7&de)<<29|we>>>3,k[f+23|0]=31&((65535&ee)<<16|pt>>>16)|we<<5,Z=de>>21,Z=(ee=(2097151&de)<<11|we>>>21)>>>0>(de=ee+(2097151&ye)|0)>>>0?Z+1|0:Z,k[f+27|0]=(63&Z)<<26|de>>>6,ke=0,k[f+26|0]=ke<<13|(1572864&we)>>>19|de<<2,ee=Z,Z>>=21,ee=(we=(ye=(2097151&ee)<<11|de>>>21)+(ke=2097151&Kt)|0)>>>0<ke>>>0?Z+1|0:Z,k[f+31|0]=(131071&ee)<<15|we>>>17,Z=we,k[f+30|0]=(511&ee)<<23|Z>>>9,we=0,k[f+28|0]=we<<18|(2080768&de)>>>14|Z<<7,k[f+29|0]=ye+Kt>>>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S[c+14|0]<<16|S[c+15|0]<<24,it=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,Me=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,dt=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,Wt=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,B=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,Q=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,v=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,L=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,H=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,j=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,re=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,Ve=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=h- -64|0,Z=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,a[c>>2]=33620224^Z,a[h+56>>2]=1496785429,a[h+60>>2]=1652156816,a[(f=h+48|0)>>2]=33620224,a[f+4>>2]=218629379,a[h+40>>2]=1110511904,a[h+44>>2]=-584534669,a[(b=h+32|0)>>2]=1427652059,a[b+4>>2]=-248528275,ee=Ve^Z,a[h>>2]=ee,a[h+92>>2]=-584534669^re,a[h+88>>2]=1110511904^j,a[h+84>>2]=-248528275^H,a[(Ve=h+80|0)>>2]=1427652059^L,a[h+76>>2]=1652156816^v,a[h+72>>2]=1496785429^Q,a[h+68>>2]=218629379^B,Wt^=re,a[h+28>>2]=Wt,dt^=j,a[h+24>>2]=dt,de=Me^H,a[h+20>>2]=de,it^=L,a[(Me=h+16|0)>>2]=it,Ye^=v,a[h+12>>2]=Ye,we=pt^Q,a[h+8>>2]=we,ke=We^B,a[h+4>>2]=ke,pt=0;We=a[Ve+12>>2],a[p+792>>2]=a[Ve+8>>2],a[p+796>>2]=We,We=a[Ve+4>>2],a[p+784>>2]=a[Ve>>2],a[p+788>>2]=We,We=a[c+12>>2],a[p+760>>2]=a[c+8>>2],a[p+764>>2]=We,We=a[c+4>>2],a[p+752>>2]=a[c>>2],a[p+756>>2]=We,We=a[Ve+12>>2],a[p+744>>2]=a[Ve+8>>2],a[p+748>>2]=We,We=a[Ve+4>>2],a[p+736>>2]=a[Ve>>2],a[p+740>>2]=We,un(We=p+768|0,p+752|0,p+736|0),ye=a[p+780>>2],a[Ve+8>>2]=a[p+776>>2],a[Ve+12>>2]=ye,ye=a[p+772>>2],a[Ve>>2]=a[p+768>>2],a[Ve+4>>2]=ye,ye=a[f+12>>2],a[p+728>>2]=a[f+8>>2],a[p+732>>2]=ye,ye=a[f+4>>2],a[p+720>>2]=a[f>>2],a[p+724>>2]=ye,ye=a[c+12>>2],a[p+712>>2]=a[c+8>>2],a[p+716>>2]=ye,ye=a[c+4>>2],a[p+704>>2]=a[c>>2],a[p+708>>2]=ye,un(We,p+720|0,p+704|0),ye=a[p+780>>2],a[c+8>>2]=a[p+776>>2],a[c+12>>2]=ye,ye=a[p+772>>2],a[c>>2]=a[p+768>>2],a[c+4>>2]=ye,ye=a[b+12>>2],a[p+696>>2]=a[b+8>>2],a[p+700>>2]=ye,ye=a[b+4>>2],a[p+688>>2]=a[b>>2],a[p+692>>2]=ye,ye=a[f+12>>2],a[p+680>>2]=a[f+8>>2],a[p+684>>2]=ye,ye=a[f+4>>2],a[p+672>>2]=a[f>>2],a[p+676>>2]=ye,un(We,p+688|0,p+672|0),ye=a[p+780>>2],a[f+8>>2]=a[p+776>>2],a[f+12>>2]=ye,ye=a[p+772>>2],a[f>>2]=a[p+768>>2],a[f+4>>2]=ye,ye=a[Me+12>>2],a[p+664>>2]=a[Me+8>>2],a[p+668>>2]=ye,ye=a[Me+4>>2],a[p+656>>2]=a[Me>>2],a[p+660>>2]=ye,ye=a[b+12>>2],a[p+648>>2]=a[b+8>>2],a[p+652>>2]=ye,ye=a[b+4>>2],a[p+640>>2]=a[b>>2],a[p+644>>2]=ye,un(We,p+656|0,p+640|0),ye=a[p+780>>2],a[b+8>>2]=a[p+776>>2],a[b+12>>2]=ye,ye=a[p+772>>2],a[b>>2]=a[p+768>>2],a[b+4>>2]=ye,ye=a[h+12>>2],a[p+632>>2]=a[h+8>>2],a[p+636>>2]=ye,ye=a[h+4>>2],a[p+624>>2]=a[h>>2],a[p+628>>2]=ye,ye=a[Me+12>>2],a[p+616>>2]=a[Me+8>>2],a[p+620>>2]=ye,ye=a[Me+4>>2],a[p+608>>2]=a[Me>>2],a[p+612>>2]=ye,un(We,p+624|0,p+608|0),ye=a[p+780>>2],a[Me+8>>2]=a[p+776>>2],a[Me+12>>2]=ye,ye=a[p+772>>2],a[Me>>2]=a[p+768>>2],a[Me+4>>2]=ye,ye=a[p+796>>2],a[p+600>>2]=a[p+792>>2],a[p+604>>2]=ye,ye=a[p+788>>2],a[p+592>>2]=a[p+784>>2],a[p+596>>2]=ye,ye=a[h+12>>2],a[p+584>>2]=a[h+8>>2],a[p+588>>2]=ye,ye=a[h+4>>2],a[p+576>>2]=a[h>>2],a[p+580>>2]=ye,un(We,p+592|0,p+576|0),ye=a[p+768>>2],ut=a[p+772>>2],bt=a[p+776>>2],a[h+12>>2]=a[p+780>>2]^v,a[h+8>>2]=bt^Q,a[h+4>>2]=ut^B,a[h>>2]=ye^Z,ye=a[Ve+12>>2],a[p+792>>2]=a[Ve+8>>2],a[p+796>>2]=ye,ye=a[Ve+4>>2],a[p+784>>2]=a[Ve>>2],a[p+788>>2]=ye,ye=a[c+12>>2],a[p+568>>2]=a[c+8>>2],a[p+572>>2]=ye,ye=a[c+4>>2],a[p+560>>2]=a[c>>2],a[p+564>>2]=ye,ye=a[Ve+12>>2],a[p+552>>2]=a[Ve+8>>2],a[p+556>>2]=ye,ye=a[Ve+4>>2],a[p+544>>2]=a[Ve>>2],a[p+548>>2]=ye,un(We,p+560|0,p+544|0),ye=a[p+780>>2],a[Ve+8>>2]=a[p+776>>2],a[Ve+12>>2]=ye,ye=a[p+772>>2],a[Ve>>2]=a[p+768>>2],a[Ve+4>>2]=ye,ye=a[f+12>>2],a[p+536>>2]=a[f+8>>2],a[p+540>>2]=ye,ye=a[f+4>>2],a[p+528>>2]=a[f>>2],a[p+532>>2]=ye,ye=a[c+12>>2],a[p+520>>2]=a[c+8>>2],a[p+524>>2]=ye,ye=a[c+4>>2],a[p+512>>2]=a[c>>2],a[p+516>>2]=ye,un(We,p+528|0,p+512|0),ye=a[p+780>>2],a[c+8>>2]=a[p+776>>2],a[c+12>>2]=ye,ye=a[p+772>>2],a[c>>2]=a[p+768>>2],a[c+4>>2]=ye,ye=a[b+12>>2],a[p+504>>2]=a[b+8>>2],a[p+508>>2]=ye,ye=a[b+4>>2],a[p+496>>2]=a[b>>2],a[p+500>>2]=ye,ye=a[f+12>>2],a[p+488>>2]=a[f+8>>2],a[p+492>>2]=ye,ye=a[f+4>>2],a[p+480>>2]=a[f>>2],a[p+484>>2]=ye,un(We,p+496|0,p+480|0),ye=a[p+780>>2],a[f+8>>2]=a[p+776>>2],a[f+12>>2]=ye,ye=a[p+772>>2],a[f>>2]=a[p+768>>2],a[f+4>>2]=ye,ye=a[Me+12>>2],a[p+472>>2]=a[Me+8>>2],a[p+476>>2]=ye,ye=a[Me+4>>2],a[p+464>>2]=a[Me>>2],a[p+468>>2]=ye,ye=a[b+12>>2],a[p+456>>2]=a[b+8>>2],a[p+460>>2]=ye,ye=a[b+4>>2],a[p+448>>2]=a[b>>2],a[p+452>>2]=ye,un(We,p+464|0,p+448|0),ye=a[p+780>>2],a[b+8>>2]=a[p+776>>2],a[b+12>>2]=ye,ye=a[p+772>>2],a[b>>2]=a[p+768>>2],a[b+4>>2]=ye,ye=a[h+12>>2],a[p+440>>2]=a[h+8>>2],a[p+444>>2]=ye,ye=a[h+4>>2],a[p+432>>2]=a[h>>2],a[p+436>>2]=ye,ye=a[Me+12>>2],a[p+424>>2]=a[Me+8>>2],a[p+428>>2]=ye,ye=a[Me+4>>2],a[p+416>>2]=a[Me>>2],a[p+420>>2]=ye,un(We,p+432|0,p+416|0),ye=a[p+780>>2],a[Me+8>>2]=a[p+776>>2],a[Me+12>>2]=ye,ye=a[p+772>>2],a[Me>>2]=a[p+768>>2],a[Me+4>>2]=ye,ye=a[p+796>>2],a[p+408>>2]=a[p+792>>2],a[p+412>>2]=ye,ye=a[p+788>>2],a[p+400>>2]=a[p+784>>2],a[p+404>>2]=ye,ye=a[h+12>>2],a[p+392>>2]=a[h+8>>2],a[p+396>>2]=ye,ye=a[h+4>>2],a[p+384>>2]=a[h>>2],a[p+388>>2]=ye,un(We,p+400|0,p+384|0),ye=a[p+768>>2],ut=a[p+772>>2],bt=a[p+776>>2],a[h+12>>2]=a[p+780>>2]^re,a[h+8>>2]=bt^j,a[h+4>>2]=ut^H,a[h>>2]=ye^L,ye=a[Ve+12>>2],a[p+792>>2]=a[Ve+8>>2],a[p+796>>2]=ye,ye=a[Ve+4>>2],a[p+784>>2]=a[Ve>>2],a[p+788>>2]=ye,ye=a[c+12>>2],a[p+376>>2]=a[c+8>>2],a[p+380>>2]=ye,ye=a[c+4>>2],a[p+368>>2]=a[c>>2],a[p+372>>2]=ye,ye=a[Ve+12>>2],a[p+360>>2]=a[Ve+8>>2],a[p+364>>2]=ye,ye=a[Ve+4>>2],a[p+352>>2]=a[Ve>>2],a[p+356>>2]=ye,un(We,p+368|0,p+352|0),ye=a[p+780>>2],a[Ve+8>>2]=a[p+776>>2],a[Ve+12>>2]=ye,ye=a[p+772>>2],a[Ve>>2]=a[p+768>>2],a[Ve+4>>2]=ye,ye=a[f+12>>2],a[p+344>>2]=a[f+8>>2],a[p+348>>2]=ye,ye=a[f+4>>2],a[p+336>>2]=a[f>>2],a[p+340>>2]=ye,ye=a[c+12>>2],a[p+328>>2]=a[c+8>>2],a[p+332>>2]=ye,ye=a[c+4>>2],a[p+320>>2]=a[c>>2],a[p+324>>2]=ye,un(We,p+336|0,p+320|0),ye=a[p+780>>2],a[c+8>>2]=a[p+776>>2],a[c+12>>2]=ye,ye=a[p+772>>2],a[c>>2]=a[p+768>>2],a[c+4>>2]=ye,ye=a[b+12>>2],a[p+312>>2]=a[b+8>>2],a[p+316>>2]=ye,ye=a[b+4>>2],a[p+304>>2]=a[b>>2],a[p+308>>2]=ye,ye=a[f+12>>2],a[p+296>>2]=a[f+8>>2],a[p+300>>2]=ye,ye=a[f+4>>2],a[p+288>>2]=a[f>>2],a[p+292>>2]=ye,un(We,p+304|0,p+288|0),ye=a[p+780>>2],a[f+8>>2]=a[p+776>>2],a[f+12>>2]=ye,ye=a[p+772>>2],a[f>>2]=a[p+768>>2],a[f+4>>2]=ye,ye=a[Me+12>>2],a[p+280>>2]=a[Me+8>>2],a[p+284>>2]=ye,ye=a[Me+4>>2],a[p+272>>2]=a[Me>>2],a[p+276>>2]=ye,ye=a[b+12>>2],a[p+264>>2]=a[b+8>>2],a[p+268>>2]=ye,ye=a[b+4>>2],a[p+256>>2]=a[b>>2],a[p+260>>2]=ye,un(We,p+272|0,p+256|0),ye=a[p+780>>2],a[b+8>>2]=a[p+776>>2],a[b+12>>2]=ye,ye=a[p+772>>2],a[b>>2]=a[p+768>>2],a[b+4>>2]=ye,ye=a[h+12>>2],a[p+248>>2]=a[h+8>>2],a[p+252>>2]=ye,ye=a[h+4>>2],a[p+240>>2]=a[h>>2],a[p+244>>2]=ye,ye=a[Me+12>>2],a[p+232>>2]=a[Me+8>>2],a[p+236>>2]=ye,ye=a[Me+4>>2],a[p+224>>2]=a[Me>>2],a[p+228>>2]=ye,un(We,p+240|0,p+224|0),ye=a[p+780>>2],a[Me+8>>2]=a[p+776>>2],a[Me+12>>2]=ye,ye=a[p+772>>2],a[Me>>2]=a[p+768>>2],a[Me+4>>2]=ye,ye=a[p+796>>2],a[p+216>>2]=a[p+792>>2],a[p+220>>2]=ye,ye=a[p+788>>2],a[p+208>>2]=a[p+784>>2],a[p+212>>2]=ye,ye=a[h+12>>2],a[p+200>>2]=a[h+8>>2],a[p+204>>2]=ye,ye=a[h+4>>2],a[p+192>>2]=a[h>>2],a[p+196>>2]=ye,un(We,p+208|0,p+192|0),ye=a[p+768>>2],ut=a[p+772>>2],bt=a[p+776>>2],a[h+12>>2]=Ye^a[p+780>>2],a[h+8>>2]=bt^we,a[h+4>>2]=ut^ke,a[h>>2]=ye^ee,ye=a[Ve+12>>2],a[p+792>>2]=a[Ve+8>>2],a[p+796>>2]=ye,ye=a[Ve+4>>2],a[p+784>>2]=a[Ve>>2],a[p+788>>2]=ye,ye=a[c+12>>2],a[p+184>>2]=a[c+8>>2],a[p+188>>2]=ye,ye=a[c+4>>2],a[p+176>>2]=a[c>>2],a[p+180>>2]=ye,ye=a[Ve+12>>2],a[p+168>>2]=a[Ve+8>>2],a[p+172>>2]=ye,ye=a[Ve+4>>2],a[p+160>>2]=a[Ve>>2],a[p+164>>2]=ye,un(We,p+176|0,p+160|0),ye=a[p+780>>2],a[Ve+8>>2]=a[p+776>>2],a[Ve+12>>2]=ye,ye=a[p+772>>2],a[Ve>>2]=a[p+768>>2],a[Ve+4>>2]=ye,ye=a[f+12>>2],a[p+152>>2]=a[f+8>>2],a[p+156>>2]=ye,ye=a[f+4>>2],a[p+144>>2]=a[f>>2],a[p+148>>2]=ye,ye=a[c+12>>2],a[p+136>>2]=a[c+8>>2],a[p+140>>2]=ye,ye=a[c+4>>2],a[p+128>>2]=a[c>>2],a[p+132>>2]=ye,un(We,p+144|0,p+128|0),ye=a[p+780>>2],a[c+8>>2]=a[p+776>>2],a[c+12>>2]=ye,ye=a[p+772>>2],a[c>>2]=a[p+768>>2],a[c+4>>2]=ye,ye=a[b+12>>2],a[p+120>>2]=a[b+8>>2],a[p+124>>2]=ye,ye=a[b+4>>2],a[p+112>>2]=a[b>>2],a[p+116>>2]=ye,ye=a[f+12>>2],a[p+104>>2]=a[f+8>>2],a[p+108>>2]=ye,ye=a[f+4>>2],a[p+96>>2]=a[f>>2],a[p+100>>2]=ye,un(We,p+112|0,p+96|0),ye=a[p+780>>2],a[f+8>>2]=a[p+776>>2],a[f+12>>2]=ye,ye=a[p+772>>2],a[f>>2]=a[p+768>>2],a[f+4>>2]=ye,ye=a[Me+12>>2],a[p+88>>2]=a[Me+8>>2],a[p+92>>2]=ye,ye=a[Me+4>>2],a[p+80>>2]=a[Me>>2],a[p+84>>2]=ye,ye=a[b+12>>2],a[p+72>>2]=a[b+8>>2],a[p+76>>2]=ye,ye=a[b+4>>2],a[p+64>>2]=a[b>>2],a[p+68>>2]=ye,un(We,p+80|0,p- -64|0),ye=a[p+780>>2],a[b+8>>2]=a[p+776>>2],a[b+12>>2]=ye,ye=a[p+772>>2],a[b>>2]=a[p+768>>2],a[b+4>>2]=ye,ye=a[h+12>>2],a[p+56>>2]=a[h+8>>2],a[p+60>>2]=ye,ye=a[h+4>>2],a[p+48>>2]=a[h>>2],a[p+52>>2]=ye,ye=a[Me+12>>2],a[p+40>>2]=a[Me+8>>2],a[p+44>>2]=ye,ye=a[Me+4>>2],a[p+32>>2]=a[Me>>2],a[p+36>>2]=ye,un(We,p+48|0,p+32|0),ye=a[p+780>>2],a[Me+8>>2]=a[p+776>>2],a[Me+12>>2]=ye,ye=a[p+772>>2],a[Me>>2]=a[p+768>>2],a[Me+4>>2]=ye,ye=a[p+796>>2],a[p+24>>2]=a[p+792>>2],a[p+28>>2]=ye,ye=a[p+788>>2],a[p+16>>2]=a[p+784>>2],a[p+20>>2]=ye,ye=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=ye,ye=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=ye,un(We,p+16|0,p),We=a[p+768>>2],ye=a[p+772>>2],ut=a[p+776>>2],a[h+12>>2]=Wt^a[p+780>>2],a[h+8>>2]=ut^dt,a[h+4>>2]=ye^de,a[h>>2]=We^it,(0|(pt=pt+1|0))!=4;);Ie=p+800|0}function ka(f,c){var h,p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut,pt,bt,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0,Jt=0,ur=0,Mr=0,Gr=0;for(Ie=h=Ie-48|0,dt=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,it=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,k[f+24|0]=it,k[f+25|0]=it>>>8,k[f+26|0]=it>>>16,k[f+27|0]=it>>>24,k[f+28|0]=dt,k[f+29|0]=dt>>>8,k[f+30|0]=dt>>>16,k[f+31|0]=dt>>>24,dt=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,it=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,k[0|f]=it,k[f+1|0]=it>>>8,k[f+2|0]=it>>>16,k[f+3|0]=it>>>24,k[f+4|0]=dt,k[f+5|0]=dt>>>8,k[f+6|0]=dt>>>16,k[f+7|0]=dt>>>24,dt=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,it=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,k[f+16|0]=it,k[f+17|0]=it>>>8,k[f+18|0]=it>>>16,k[f+19|0]=it>>>24,k[f+20|0]=dt,k[f+21|0]=dt>>>8,k[f+22|0]=dt>>>16,k[f+23|0]=dt>>>24,it=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,c=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,k[f+12|0]=it,k[f+13|0]=it>>>8,k[f+14|0]=it>>>16,k[f+15|0]=it>>>24,c=S[f+31|0],k[f+31|0]=127&c,dv(h,f),re=128&c,Ie=c=Ie-960|0,vd(it=c+304|0,h),a[c+304>>2]=a[c+304>>2]+1,lv(it,it),dt=Ce(it=a[c+340>>2],it>>31,486662,0),it=$,gr=(Kt=dt+16777216|0)>>>0<16777216?it+1|0:it,Sr=dt-(-33554432&Kt)|0,Ye=Ce(it=a[c+336>>2],it>>31,486662,0),dt=$,Wt=Ce(it=a[c+332>>2],it>>31,486662,0),it=$,vr=Ye,Ye=(Ye=(it=(cr=Wt+16777216|0)>>>0<16777216?it+1|0:it)>>25)+dt|0,it=(it=(33554431&it)<<7|cr>>>25)>>>0>(nr=vr+it|0)>>>0?Ye+1|0:Ye,p=((67108863&(it=(dt=nr+33554432|0)>>>0<33554432?it+1|0:it))<<6|dt>>>26)+Sr|0,a[c+292>>2]=0-p,Mr=nr-(-67108864&dt)|0,a[c+288>>2]=0-Mr,Sr=Wt-(-33554432&cr)|0,dt=Ce(it=a[c+328>>2],it>>31,486662,0),it=$,cr=Ce(Ye=a[c+324>>2],Ye>>31,486662,0),Ye=$,vr=dt,it=it+(dt=(Ye=(nr=cr+16777216|0)>>>0<16777216?Ye+1|0:Ye)>>25)|0,it=(Ye=vr+(Wt=(33554431&Ye)<<7|nr>>>25)|0)>>>0<Wt>>>0?it+1|0:it,b=((67108863&(it=(dt=Ye+33554432|0)>>>0<33554432?it+1|0:it))<<6|dt>>>26)+Sr|0,a[c+284>>2]=0-b,B=Ye-(-67108864&dt)|0,a[c+280>>2]=0-B,Sr=cr-(-33554432&nr)|0,Ye=Ce(it=a[c+320>>2],it>>31,486662,0),it=$,cr=Ce(dt=a[c+316>>2],dt>>31,486662,0),dt=$,vr=Ye,it=(Ye=(dt=(nr=cr+16777216|0)>>>0<16777216?dt+1|0:dt)>>25)+it|0,Ye=it=(dt=vr+(Wt=(33554431&dt)<<7|nr>>>25)|0)>>>0<Wt>>>0?it+1|0:it,Q=((67108863&(Ye=(Wt=dt+33554432|0)>>>0<33554432?Ye+1|0:Ye))<<6|Wt>>>26)+Sr|0,a[c+276>>2]=0-Q,v=dt-(-67108864&Wt)|0,a[c+272>>2]=0-v,vr=cr-(-33554432&nr)|0,it=Ce(it=a[c+312>>2],it>>31,486662,0),Sr=$,Wt=Ce(dt=a[c+308>>2],dt>>31,486662,0),Ye=$,dt=(33554431&(Ye=(cr=Wt+16777216|0)>>>0<16777216?Ye+1|0:Ye))<<7|cr>>>25,Ye=(Ye>>25)+Sr|0,dt=dt>>>0>(nr=dt+it|0)>>>0?Ye+1|0:Ye,L=((67108863&(dt=(it=nr+33554432|0)>>>0<33554432?dt+1|0:dt))<<6|it>>>26)+vr|0,a[c+268>>2]=0-L,H=nr-(-67108864&it)|0,a[c+264>>2]=0-H,nr=Wt-(-33554432&cr)|0,dt=Ce((33554431&gr)<<7|Kt>>>25,gr>>25,19,0),it=$,Wt=dt,dt=Ce(Ye=a[c+304>>2],Ye>>31,486662,0),it=$+it|0,dt=(Ye=Wt+dt|0)>>>0<dt>>>0?it+1|0:it,j=((67108863&(dt=(it=Ye+33554432|0)>>>0<33554432?dt+1|0:dt))<<6|it>>>26)+nr|0,a[c+260>>2]=0-j,yr=Ye-(-67108864&it)|0,a[c+256>>2]=0-yr,Et(dt=c+208|0,it=c+256|0),Ar(c+160|0,it,dt),Z=a[c+196>>2],ee=a[c+160>>2],or=a[c+208>>2],de=a[c+164>>2],we=a[c+168>>2],Or=a[c+212>>2],kr=a[c+216>>2],ke=a[c+172>>2],ye=a[c+176>>2],Jt=a[c+220>>2],ur=a[c+224>>2],Me=a[c+180>>2],Ve=a[c+184>>2],vr=a[c+228>>2],Sr=a[c+232>>2],We=a[c+188>>2],ut=a[c+192>>2],dt=Ce(it=a[c+244>>2],it>>31,486662,0),it=$,gr=(Kt=dt+16777216|0)>>>0<16777216?it+1|0:it,pt=dt-(-33554432&Kt)|0,it=Ce(it=a[c+240>>2],it>>31,486662,0),bt=$,Wt=Ce(dt=a[c+236>>2],dt>>31,486662,0),Ye=$,dt=it,it=(33554431&(Ye=(cr=Wt+16777216|0)>>>0<16777216?Ye+1|0:Ye))<<7|cr>>>25,Ye=(Ye>>25)+bt|0,it=it>>>0>(nr=dt+it|0)>>>0?Ye+1|0:Ye,Ye=((67108863&(it=(dt=nr+33554432|0)>>>0<33554432?it+1|0:it))<<6|dt>>>26)+pt|0,a[c+244>>2]=Ye,a[c+388>>2]=Ye+(Z-p|0),it=nr-(-67108864&dt)|0,a[c+240>>2]=it,a[c+384>>2]=it+(ut-Mr|0),Mr=Wt-(-33554432&cr)|0,it=Ce(Sr,Sr>>31,486662,0),Wt=$,cr=Ce(vr,vr>>31,486662,0),dt=$,vr=it,it=(it=(dt=(nr=cr+16777216|0)>>>0<16777216?dt+1|0:dt)>>25)+Wt|0,Ye=it=(Ye=(33554431&dt)<<7|nr>>>25)>>>0>(dt=vr+Ye|0)>>>0?it+1|0:it,Wt=((67108863&(Ye=(Wt=dt+33554432|0)>>>0<33554432?Ye+1|0:Ye))<<6|(it=Wt)>>>26)+Mr|0,a[c+236>>2]=Wt,a[c+380>>2]=Wt+(We-b|0),it=dt-(-67108864&it)|0,a[c+232>>2]=it,a[c+376>>2]=it+(Ve-B|0),Sr=cr-(-33554432&nr)|0,Ye=Ce(ur,ur>>31,486662,0),dt=$,Wt=Ce(Jt,Jt>>31,486662,0),it=$,vr=Ye,Ye=(Ye=(it=(cr=Wt+16777216|0)>>>0<16777216?it+1|0:it)>>25)+dt|0,dt=(it=(33554431&it)<<7|cr>>>25)>>>0>(nr=vr+it|0)>>>0?Ye+1|0:Ye,Ye=((67108863&(dt=(it=nr+33554432|0)>>>0<33554432?dt+1|0:dt))<<6|it>>>26)+Sr|0,a[c+228>>2]=Ye,a[c+372>>2]=Ye+(Me-Q|0),it=nr-(-67108864&it)|0,a[c+224>>2]=it,a[c+368>>2]=it+(ye-v|0),Sr=Wt-(-33554432&cr)|0,it=Ce(kr,kr>>31,486662,0),dt=$,cr=Ce(Or,Or>>31,486662,0),Ye=$,vr=it,dt=(it=(Ye=(nr=cr+16777216|0)>>>0<16777216?Ye+1|0:Ye)>>25)+dt|0,it=dt=(Ye=vr+(Wt=(33554431&Ye)<<7|nr>>>25)|0)>>>0<Wt>>>0?dt+1|0:dt,Wt=((67108863&(it=(Wt=Ye+33554432|0)>>>0<33554432?it+1|0:it))<<6|(dt=Wt)>>>26)+Sr|0,a[c+220>>2]=Wt,a[c+364>>2]=Wt+(ke-L|0),it=Ye-(-67108864&dt)|0,a[c+216>>2]=it,a[c+360>>2]=it+(we-H|0),nr=cr-(-33554432&nr)|0,dt=Ce((33554431&gr)<<7|Kt>>>25,gr>>25,19,0),it=$,Ye=dt,dt=Ce(or,or>>31,486662,0),it=$+it|0,it=(Ye=Ye+dt|0)>>>0<dt>>>0?it+1|0:it,gr=((67108863&(it=(dt=Ye+33554432|0)>>>0<33554432?it+1|0:it))<<6|dt>>>26)+nr|0,a[c+212>>2]=gr,a[c+356>>2]=gr+(de-j|0),it=Ye-(-67108864&dt)|0,a[c+208>>2]=it,a[c+352>>2]=it+(ee-yr|0),Ar(it=c+624|0,dt=c+352|0,dt),Ar(c,dt,it),Et(dt=c+784|0,c),Et(dt,dt),Ar(it=c+912|0,c,dt),Et(dt=c+576|0,it),Et(dt,dt),Et(dt,dt),Et(dt,dt),Ar(Ye=c+528|0,it,dt),Et(Ye,Ye),Et(Ye,Ye),Ar(Ye,Ye,c),it=a[c+564>>2],a[c+512>>2]=a[c+560>>2],a[c+516>>2]=it,it=a[c+556>>2],a[c+504>>2]=a[c+552>>2],a[c+508>>2]=it,it=a[c+548>>2],a[c+496>>2]=a[c+544>>2],a[c+500>>2]=it,it=a[c+540>>2],a[c+488>>2]=a[c+536>>2],a[c+492>>2]=it,it=a[c+532>>2],a[c+480>>2]=a[c+528>>2],a[c+484>>2]=it,Et(Ye,Ye),Et(Ye,Ye),Et(Ye,Ye),Et(Ye,Ye),Et(Ye,Ye),Et(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[c+260>>2],kr=a[c+264>>2],Jt=a[c+268>>2],ur=a[c+272>>2],nr=a[c+276>>2],gr=a[c+280>>2],Ye=a[c+284>>2],dt=a[c+288>>2],vr=(yr=0-(1&k[c+401|0])|0)&(0-(it=a[c+292>>2])^it)^it,a[c+660>>2]=vr,Sr=dt^yr&(dt^0-dt),a[c+656>>2]=Sr,Kt=Ye^yr&(Ye^0-Ye),a[c+652>>2]=Kt,Wt=gr^yr&(gr^0-gr),a[c+648>>2]=Wt,cr=nr^yr&(nr^0-nr),a[c+644>>2]=cr,nr=ur^yr&(ur^0-ur),a[c+640>>2]=nr,gr=Jt^yr&(Jt^0-Jt),a[c+636>>2]=gr,Ye=kr^yr&(kr^0-kr),a[c+632>>2]=Ye,dt=Or^yr&(Or^0-Or),a[c+628>>2]=dt,it=(or^yr&(or^0-or))-(486662&yr)|0,a[c+624>>2]=it+1,a[c+820>>2]=vr,a[c+816>>2]=Sr,a[c+812>>2]=Kt,a[c+808>>2]=Wt,a[c+804>>2]=cr,a[c+800>>2]=nr,a[c+796>>2]=gr,a[c+792>>2]=Ye,a[c+788>>2]=dt,a[c+784>>2]=it-1,lv(c,c+624|0),Ar(it=c+912|0,c+784|0,c),yc(f,it),k[f+31|0]=S[f+31|0]|re,fv(c,f)&&(PBe(),Rr()),it=a[c+36>>2],a[c+816>>2]=a[c+32>>2],a[c+820>>2]=it,it=a[c+28>>2],a[c+808>>2]=a[c+24>>2],a[c+812>>2]=it,it=a[c+20>>2],a[c+800>>2]=a[c+16>>2],a[c+804>>2]=it,it=a[c+12>>2],a[c+792>>2]=a[c+8>>2],a[c+796>>2]=it,it=a[c+52>>2],a[c+832>>2]=a[c+48>>2],a[c+836>>2]=it,it=a[c+60>>2],a[c+840>>2]=a[c+56>>2],a[c+844>>2]=it,it=a[4+(dt=c- -64|0)>>2],a[c+848>>2]=a[dt>>2],a[c+852>>2]=it,it=a[c+76>>2],a[c+856>>2]=a[c+72>>2],a[c+860>>2]=it,it=a[c+4>>2],a[c+784>>2]=a[c>>2],a[c+788>>2]=it,it=a[c+44>>2],a[c+824>>2]=a[c+40>>2],a[c+828>>2]=it,it=a[c+116>>2],a[c+896>>2]=a[c+112>>2],a[c+900>>2]=it,it=a[c+108>>2],a[c+888>>2]=a[c+104>>2],a[c+892>>2]=it,it=a[c+100>>2],a[c+880>>2]=a[c+96>>2],a[c+884>>2]=it,it=a[c+92>>2],a[c+872>>2]=a[c+88>>2],a[c+876>>2]=it,it=a[c+84>>2],a[c+864>>2]=a[c+80>>2],a[c+868>>2]=it,Rd(Wt=c+624|0,cr=c+784|0),Ar(cr,Wt,nr=c+744|0),Ar(dt=c+824|0,Ye=c+664|0,gr=c+704|0),Ar(it=c+864|0,gr,nr),Rd(Wt,cr),Ar(cr,Wt,nr),Ar(dt,Ye,gr),Ar(it,gr,nr),Rd(Wt,cr),Ar(c,Wt,nr),Ar(dt=c+40|0,Ye,gr),Ar(it=c+80|0,gr,nr),Ar(c+120|0,Wt,Ye),lv(Wt,it),Ar(cr,c,Wt),Ar(it=c+912|0,dt,Wt),yc(f,it),yc(c+576|0,cr),k[f+31|0]=S[f+31|0]^S[c+576|0]<<7,Ie=c+960|0,Ie=h+48|0}function wo(f){var c,h=0,p=0,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0;Ie=c=Ie-16|0;e:{t:{r:{n:{i:{c:{s:{o:{d:{a:{if((f|=0)>>>0<=244){if(3&(h=(B=a[9405])>>>(f=(L=f>>>0<11?16:f+11&504)>>>3|0)|0)){f=37660+(h=(p=f+(1&~h)|0)<<3)|0,h=a[h+37668>>2],(0|f)!=(0|(b=a[h+8>>2]))?(a[b+12>>2]=f,a[f+8>>2]=b):(Z=37620,ee=lr(-2,p)&B,a[Z>>2]=ee),f=h+8|0,p<<=3,a[h+4>>2]=3|p,a[4+(h=h+p|0)>>2]=1|a[h+4>>2];break e}if((H=a[9407])>>>0>=L>>>0)break a;if(h){h=37660+(p=(f=LH((0-(p=2<<f)|p)&h<<f))<<3)|0,p=a[p+37668>>2],(0|h)!=(0|(b=a[p+8>>2]))?(a[b+12>>2]=h,a[h+8>>2]=b):(B=lr(-2,f)&B,a[9405]=B),a[p+4>>2]=3|L,Q=(f<<=3)-L|0,a[4+(v=p+L|0)>>2]=1|Q,a[f+p>>2]=Q,H&&(f=37660+(-8&H)|0,b=a[9410],(h=1<<(H>>>3))&B?h=a[f+8>>2]:(a[9405]=h|B,h=f),a[f+8>>2]=b,a[h+12>>2]=b,a[b+12>>2]=f,a[b+8>>2]=h),f=p+8|0,a[9410]=v,a[9407]=Q;break e}if(!(re=a[9406]))break a;for(p=a[37924+(LH(re)<<2)>>2],Q=(-8&a[p+4>>2])-L|0,h=p;(f=a[h+16>>2])||(f=a[h+20>>2]);)Q=(h=(b=(-8&a[f+4>>2])-L|0)>>>0<Q>>>0)?b:Q,p=h?f:p,h=f;if(j=a[p+24>>2],(0|p)!=(0|(f=a[p+12>>2]))){h=a[p+8>>2],a[h+12>>2]=f,a[f+8>>2]=h;break t}if(h=a[p+20>>2])b=p+20|0;else{if(!(h=a[p+16>>2]))break d;b=p+16|0}for(;v=b,b=(f=h)+20|0,(h=a[f+20>>2])||(b=f+16|0,h=a[f+16>>2]););a[v>>2]=0;break t}if(L=-1,!(f>>>0>4294967231)&&(L=-8&(h=f+11|0),v=a[9406])){H=31,Q=0-L|0,f>>>0<=16777204&&(H=62+((L>>>38-(f=Wr(h>>>8|0))&1)-(f<<1)|0)|0);u:{f:{if(h=a[37924+(H<<2)>>2])for(f=0,p=L<<((0|H)!=31?25-(H>>>1|0):0);;){if(!((B=(-8&a[h+4>>2])-L|0)>>>0>=Q>>>0||(b=h,Q=B))){Q=0,f=h;break f}if(B=a[h+20>>2],h=a[16+((p>>>29&4)+h|0)>>2],f=B?(0|B)==(0|h)?f:B:f,p<<=1,!h)break}else f=0;if(!(f|b)){if(b=0,!(f=(0-(f=2<<H)|f)&v))break a;f=a[37924+(LH(f)<<2)>>2]}if(!f)break u}for(;Q=(h=(p=(-8&a[f+4>>2])-L|0)>>>0<Q>>>0)?p:Q,b=h?f:b,f=(h=a[f+16>>2])||a[f+20>>2];);}if(!(!b|a[9407]-L>>>0<=Q>>>0)){if(H=a[b+24>>2],(0|b)!=(0|(f=a[b+12>>2]))){h=a[b+8>>2],a[h+12>>2]=f,a[f+8>>2]=h;break r}if(h=a[b+20>>2])p=b+20|0;else{if(!(h=a[b+16>>2]))break o;p=b+16|0}for(;B=p,p=(f=h)+20|0,(h=a[f+20>>2])||(p=f+16|0,h=a[f+16>>2]););a[B>>2]=0;break r}}}if((b=a[9407])>>>0>=L>>>0){f=a[9410],(h=b-L|0)>>>0>=16?(a[4+(p=f+L|0)>>2]=1|h,a[f+b>>2]=h,a[f+4>>2]=3|L):(a[f+4>>2]=3|b,a[4+(h=f+b|0)>>2]=1|a[h+4>>2],p=0,h=0),a[9407]=h,a[9410]=p,f=f+8|0;break e}if((p=a[9408])>>>0>L>>>0){h=p-L|0,a[9408]=h,p=(f=a[9411])+L|0,a[9411]=p,a[p+4>>2]=1|h,a[f+4>>2]=3|L,f=f+8|0;break e}if(f=0,Q=L+47|0,a[9523]?h=a[9525]:(a[9526]=-1,a[9527]=-1,a[9524]=4096,a[9525]=4096,a[9523]=c+12&-16^1431655768,a[9528]=0,a[9516]=0,h=4096),(h=(B=Q+h|0)&(v=0-h|0))>>>0<=L>>>0||(H=a[9515])&&(b=(j=a[9513])+h|0)>>>0<=j>>>0|b>>>0>H>>>0)break e;a:{if(!(4&S[38064])){u:{f:{l:{h:{if(b=a[9411])for(f=38068;;){if((H=a[f>>2])>>>0<=b>>>0&b>>>0<H+a[f+4>>2]>>>0)break h;if(!(f=a[f+8>>2]))break}if((0|(p=X5(0)))==-1||(B=h,(b=(f=a[9524])-1|0)&p&&(B=(h-p|0)+(p+b&0-f)|0),B>>>0<=L>>>0)||(b=a[9515])&&(f=(v=a[9513])+B|0)>>>0<=v>>>0|f>>>0>b>>>0)break u;if((0|p)!=(0|(f=X5(B))))break l;break a}if((0|(p=X5(B=v&B-p)))==(a[f>>2]+a[f+4>>2]|0))break f;f=p}if((0|f)==-1)break u;if(L+48>>>0<=B>>>0){p=f;break a}if((0|X5(p=(p=a[9525])+(Q-B|0)&0-p))==-1)break u;B=p+B|0,p=f;break a}if((0|p)!=-1)break a}a[9516]=4|a[9516]}if((0|(p=X5(h)))==-1|(0|(f=X5(0)))==-1|f>>>0<=p>>>0||(B=f-p|0)>>>0<=L+40>>>0)break i}f=a[9513]+B|0,a[9513]=f,f>>>0>sn[9514]&&(a[9514]=f);a:{if(Q=a[9411]){for(f=38068;;){if(((h=a[f>>2])+(b=a[f+4>>2])|0)==(0|p))break a;if(!(f=a[f+8>>2]))break}break s}for((f=a[9409])>>>0<=p>>>0&&f||(a[9409]=p),f=0,a[9518]=B,a[9517]=p,a[9413]=-1,a[9414]=a[9523],a[9520]=0;b=37660+(h=f<<3)|0,a[h+37668>>2]=b,a[h+37672>>2]=b,(0|(f=f+1|0))!=32;);b=(f=B-40|0)-(h=-8-p&7)|0,a[9408]=b,h=h+p|0,a[9411]=h,a[h+4>>2]=1|b,a[4+(f+p|0)>>2]=40,a[9412]=a[9527];break c}if(8&a[f+12>>2]|p>>>0<=Q>>>0|h>>>0>Q>>>0)break s;a[f+4>>2]=b+B,h=(f=-8-Q&7)+Q|0,a[9411]=h,f=(p=a[9408]+B|0)-f|0,a[9408]=f,a[h+4>>2]=1|f,a[4+(p+Q|0)>>2]=40,a[9412]=a[9527];break c}f=0;break t}f=0;break r}sn[9409]>p>>>0&&(a[9409]=p),b=p+B|0,f=38068;s:{for(;;){if((0|(h=a[f>>2]))!=(0|b)){if(f=a[f+8>>2])continue;break s}break}if(!(8&S[f+12|0]))break n}for(f=38068;!((h=a[f>>2])>>>0<=Q>>>0&&(b=h+a[f+4>>2]|0)>>>0>Q>>>0);)f=a[f+8>>2];for(v=(f=B-40|0)-(h=-8-p&7)|0,a[9408]=v,h=h+p|0,a[9411]=h,a[h+4>>2]=1|v,a[4+(f+p|0)>>2]=40,a[9412]=a[9527],a[(h=(f=(b+(39-b&7)|0)-47|0)>>>0<Q+16>>>0?Q:f)+4>>2]=27,f=a[9520],a[h+16>>2]=a[9519],a[h+20>>2]=f,f=a[9518],a[h+8>>2]=a[9517],a[h+12>>2]=f,a[9519]=h+8,a[9518]=B,a[9517]=p,a[9520]=0,f=h+24|0;a[f+4>>2]=7,p=f+8|0,f=f+4|0,p>>>0<b>>>0;);if((0|h)!=(0|Q)){a[h+4>>2]=-2&a[h+4>>2],p=h-Q|0,a[Q+4>>2]=1|p,a[h>>2]=p;s:if(p>>>0<=255)f=37660+(-8&p)|0,(h=a[9405])&(p=1<<(p>>>3))?h=a[f+8>>2]:(a[9405]=h|p,h=f),a[f+8>>2]=Q,a[h+12>>2]=Q,b=8,p=12;else{f=31,p>>>0<=16777215&&(f=62+((p>>>38-(f=Wr(p>>>8|0))&1)-(f<<1)|0)|0),a[Q+28>>2]=f,a[Q+16>>2]=0,a[Q+20>>2]=0,h=37924+(f<<2)|0;o:{if((b=a[9406])&(B=1<<f)){for(f=p<<((0|f)!=31?25-(f>>>1|0):0),b=a[h>>2];;){if((0|p)==(-8&a[(h=b)+4>>2]))break o;if(b=f>>>29|0,f<<=1,!(b=a[16+(B=(4&b)+h|0)>>2]))break}a[B+16>>2]=Q}else a[9406]=b|B,a[h>>2]=Q;a[Q+24>>2]=h,f=h=Q,b=12,p=8;break s}f=a[h+8>>2],a[f+12>>2]=Q,a[h+8>>2]=Q,a[Q+8>>2]=f,f=0,b=12,p=24}a[b+Q>>2]=h,a[p+Q>>2]=f}}if(!((f=a[9408])>>>0<=L>>>0)){h=f-L|0,a[9408]=h,p=(f=a[9411])+L|0,a[9411]=p,a[p+4>>2]=1|h,a[f+4>>2]=3|L,f=f+8|0;break e}}a[9404]=48,f=0;break e}a[f>>2]=p,a[f+4>>2]=a[f+4>>2]+B,a[4+(H=(-8-p&7)+p|0)>>2]=3|L,v=(B=h+(-8-h&7)|0)-(Q=L+H|0)|0;n:if(a[9411]!=(0|B))if(a[9410]!=(0|B)){if((3&(f=a[B+4>>2]))==1){j=-8&f,p=a[B+12>>2];i:if(f>>>0<=255){if((0|(h=a[B+8>>2]))==(0|p)){Z=37620,ee=a[9405]&lr(-2,f>>>3|0),a[Z>>2]=ee;break i}a[h+12>>2]=p,a[p+8>>2]=h}else{L=a[B+24>>2];c:if((0|p)==(0|B)){s:{if(f=a[B+20>>2])h=B+20|0;else{if(!(f=a[B+16>>2]))break s;h=B+16|0}for(;b=h,p=f,h=f+20|0,(f=a[f+20>>2])||(h=p+16|0,f=a[p+16>>2]););a[b>>2]=0;break c}p=0}else f=a[B+8>>2],a[f+12>>2]=p,a[p+8>>2]=f;if(L){f=a[B+28>>2];c:{if(a[(h=37924+(f<<2)|0)>>2]==(0|B)){if(a[h>>2]=p,p)break c;Z=37624,ee=a[9406]&lr(-2,f),a[Z>>2]=ee;break i}if(a[L+(a[L+16>>2]==(0|B)?16:20)>>2]=p,!p)break i}a[p+24>>2]=L,(f=a[B+16>>2])&&(a[p+16>>2]=f,a[f+24>>2]=p),(f=a[B+20>>2])&&(a[p+20>>2]=f,a[f+24>>2]=p)}}v=v+j|0,f=a[4+(B=B+j|0)>>2]}if(a[B+4>>2]=-2&f,a[Q+4>>2]=1|v,a[Q+v>>2]=v,v>>>0<=255)f=37660+(-8&v)|0,(h=a[9405])&(p=1<<(v>>>3))?h=a[f+8>>2]:(a[9405]=h|p,h=f),a[f+8>>2]=Q,a[h+12>>2]=Q,a[Q+12>>2]=f,a[Q+8>>2]=h;else{p=31,v>>>0<=16777215&&(p=62+((v>>>38-(f=Wr(v>>>8|0))&1)-(f<<1)|0)|0),a[Q+28>>2]=p,a[Q+16>>2]=0,a[Q+20>>2]=0,f=37924+(p<<2)|0;i:{if((h=a[9406])&(b=1<<p)){for(p=v<<((0|p)!=31?25-(p>>>1|0):0),h=a[f>>2];;){if((-8&a[(f=h)+4>>2])==(0|v))break i;if(h=p>>>29|0,p<<=1,!(h=a[16+(b=(4&h)+f|0)>>2]))break}a[b+16>>2]=Q}else a[9406]=h|b,a[f>>2]=Q;a[Q+24>>2]=f,a[Q+12>>2]=Q,a[Q+8>>2]=Q;break n}h=a[f+8>>2],a[h+12>>2]=Q,a[f+8>>2]=Q,a[Q+24>>2]=0,a[Q+12>>2]=f,a[Q+8>>2]=h}}else a[9410]=Q,f=a[9407]+v|0,a[9407]=f,a[Q+4>>2]=1|f,a[f+Q>>2]=f;else a[9411]=Q,f=a[9408]+v|0,a[9408]=f,a[Q+4>>2]=1|f;f=H+8|0;break e}r:if(H){h=a[b+28>>2];n:{if(a[(p=37924+(h<<2)|0)>>2]==(0|b)){if(a[p>>2]=f,f)break n;v=lr(-2,h)&v,a[9406]=v;break r}if(a[H+(a[H+16>>2]==(0|b)?16:20)>>2]=f,!f)break r}a[f+24>>2]=H,(h=a[b+16>>2])&&(a[f+16>>2]=h,a[h+24>>2]=f),(h=a[b+20>>2])&&(a[f+20>>2]=h,a[h+24>>2]=f)}r:if(Q>>>0<=15)f=Q+L|0,a[b+4>>2]=3|f,a[4+(f=f+b|0)>>2]=1|a[f+4>>2];else if(a[b+4>>2]=3|L,a[4+(B=b+L|0)>>2]=1|Q,a[Q+B>>2]=Q,Q>>>0<=255)f=37660+(-8&Q)|0,(h=a[9405])&(p=1<<(Q>>>3))?h=a[f+8>>2]:(a[9405]=h|p,h=f),a[f+8>>2]=B,a[h+12>>2]=B,a[B+12>>2]=f,a[B+8>>2]=h;else{f=31,Q>>>0<=16777215&&(f=62+((Q>>>38-(f=Wr(Q>>>8|0))&1)-(f<<1)|0)|0),a[B+28>>2]=f,a[B+16>>2]=0,a[B+20>>2]=0,h=37924+(f<<2)|0;n:{if((p=1<<f)&v){for(f=Q<<((0|f)!=31?25-(f>>>1|0):0),h=a[h>>2];;){if(p=h,(-8&a[h+4>>2])==(0|Q))break n;if(v=f>>>29|0,f<<=1,!(h=a[16+(v=h+(4&v)|0)>>2]))break}a[v+16>>2]=B,a[B+24>>2]=p}else a[9406]=p|v,a[h>>2]=B,a[B+24>>2]=h;a[B+12>>2]=B,a[B+8>>2]=B;break r}f=a[p+8>>2],a[f+12>>2]=B,a[p+8>>2]=B,a[B+24>>2]=0,a[B+12>>2]=p,a[B+8>>2]=f}f=b+8|0;break e}t:if(j){h=a[p+28>>2];r:{if(a[(b=37924+(h<<2)|0)>>2]==(0|p)){if(a[b>>2]=f,f)break r;Z=37624,ee=lr(-2,h)&re,a[Z>>2]=ee;break t}if(a[j+(a[j+16>>2]==(0|p)?16:20)>>2]=f,!f)break t}a[f+24>>2]=j,(h=a[p+16>>2])&&(a[f+16>>2]=h,a[h+24>>2]=f),(h=a[p+20>>2])&&(a[f+20>>2]=h,a[h+24>>2]=f)}Q>>>0<=15?(f=Q+L|0,a[p+4>>2]=3|f,a[4+(f=f+p|0)>>2]=1|a[f+4>>2]):(a[p+4>>2]=3|L,a[4+(v=p+L|0)>>2]=1|Q,a[Q+v>>2]=Q,H&&(f=37660+(-8&H)|0,b=a[9410],(h=1<<(H>>>3))&B?h=a[f+8>>2]:(a[9405]=h|B,h=f),a[f+8>>2]=b,a[h+12>>2]=b,a[b+12>>2]=f,a[b+8>>2]=h),a[9410]=v,a[9407]=Q),f=p+8|0}return Ie=c+16|0,0|f}function Fo(f,c,h,p,b,B){var Q,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0,Jt=0,ur=0,Mr=0,Gr=0,jr=0,nn=0,fn=0;if(Ie=Q=Ie-592|0,H=-1,BTe(L=f+32|0)&&!EM(f)&&ea(b)&&!EM(b)&&!_H(re=Q+128|0,b)){for(qi(H=Q+384|0),B&&L0(H,35600,34,0),L0(H,f,32,0),L0(H,b,32,0),L0(H,c,h,p),Ah(c=H,H=Q+320|0),ho(H),p=Q+8|0,h=L,b=0,c=0,Ie=v=Ie-2272|0;B=v+2016|0,L=S[H+(b>>>3|0)|0],k[B+b|0]=L>>>(6&b)&1,k[(j=B)+(B=1|b)|0]=L>>>(7&B)&1,(0|(b=b+2|0))!=256;);for(;;){c=(B=c)+1|0;e:if(!(B>>>0>254)&&S[0|(ee=(b=v+2016|0)+B|0)]){t:if(b=k[0|(Z=c+b|0)])if((0|(b=(H=b<<1)+(L=k[0|ee])|0))<=15)k[0|ee]=b,k[0|Z]=0;else{if((0|(b=L-H|0))<-15)break e;for(k[0|ee]=b,b=c;;){if(!S[0|(L=(v+2016|0)+b|0)]){k[0|L]=1;break t}if(k[0|L]=0,L=b>>>0<255,b=b+1|0,!L)break}}if(!(B>>>0>253)){t:if(L=k[0|(j=(b=B+2|0)+(v+2016|0)|0)])if((0|(L=(Z=L<<2)+(H=k[0|ee])|0))>=16){if((0|(L=H-Z|0))<-15)break e;for(k[0|ee]=L;;){if(S[0|(L=(v+2016|0)+b|0)]){if(k[0|L]=0,L=b>>>0<255,b=b+1|0,L)continue;break t}break}k[0|L]=1}else k[0|ee]=L,k[0|j]=0;if((0|B)!=253){t:if(L=k[0|(j=(b=B+3|0)+(v+2016|0)|0)])if((0|(L=(Z=L<<3)+(H=k[0|ee])|0))>=16){if((0|(L=H-Z|0))<-15)break e;for(k[0|ee]=L;;){if(S[0|(L=(v+2016|0)+b|0)]){if(k[0|L]=0,L=b>>>0<255,b=b+1|0,L)continue;break t}break}k[0|L]=1}else k[0|ee]=L,k[0|j]=0;if(!(B>>>0>251)){t:if(L=k[0|(j=(b=B+4|0)+(v+2016|0)|0)])if((0|(L=(Z=L<<4)+(H=k[0|ee])|0))>=16){if((0|(L=H-Z|0))<-15)break e;for(k[0|ee]=L;;){if(S[0|(L=(v+2016|0)+b|0)]){if(k[0|L]=0,L=b>>>0<255,b=b+1|0,L)continue;break t}break}k[0|L]=1}else k[0|ee]=L,k[0|j]=0;if((0|B)!=251){t:if(L=k[0|(j=(b=B+5|0)+(v+2016|0)|0)])if((0|(L=(Z=L<<5)+(H=k[0|ee])|0))>=16){if((0|(L=H-Z|0))<-15)break e;for(k[0|ee]=L;;){if(S[0|(L=(v+2016|0)+b|0)]){if(k[0|L]=0,L=b>>>0<255,b=b+1|0,L)continue;break t}break}k[0|L]=1}else k[0|ee]=L,k[0|j]=0;if(!(B>>>0>249)&&(B=k[0|(Z=(b=B+6|0)+(v+2016|0)|0)]))if((0|(B=(H=B<<6)+(L=k[0|ee])|0))>=16){if((0|(B=L-H|0))<-15)break e;for(k[0|ee]=B;;){if(S[0|(B=(v+2016|0)+b|0)]){if(k[0|B]=0,B=b>>>0<255,b=b+1|0,B)continue;break e}break}k[0|B]=1}else k[0|ee]=B,k[0|Z]=0}}}}}if((0|c)==256)break}for(b=0;c=v+1760|0,B=S[h+(b>>>3|0)|0],k[c+b|0]=B>>>(6&b)&1,k[(L=c)+(c=1|b)|0]=B>>>(7&c)&1,(0|(b=b+2|0))!=256;);for(c=0;;){h=c,c=c+1|0;e:if(!(h>>>0>254)&&S[0|(j=(b=v+1760|0)+h|0)]){t:if(b=k[0|(H=c+b|0)])if((0|(b=(L=b<<1)+(B=k[0|j])|0))<=15)k[0|j]=b,k[0|H]=0;else{if((0|(b=B-L|0))<-15)break e;for(k[0|j]=b,b=c;;){if(!S[0|(B=(v+1760|0)+b|0)]){k[0|B]=1;break t}if(k[0|B]=0,B=b>>>0<255,b=b+1|0,!B)break}}if(!(h>>>0>253)){t:if(B=k[0|(Z=(b=h+2|0)+(v+1760|0)|0)])if((0|(B=(H=B<<2)+(L=k[0|j])|0))>=16){if((0|(B=L-H|0))<-15)break e;for(k[0|j]=B;;){if(S[0|(B=(v+1760|0)+b|0)]){if(k[0|B]=0,B=b>>>0<255,b=b+1|0,B)continue;break t}break}k[0|B]=1}else k[0|j]=B,k[0|Z]=0;if((0|h)!=253){t:if(B=k[0|(Z=(b=h+3|0)+(v+1760|0)|0)])if((0|(B=(H=B<<3)+(L=k[0|j])|0))>=16){if((0|(B=L-H|0))<-15)break e;for(k[0|j]=B;;){if(S[0|(B=(v+1760|0)+b|0)]){if(k[0|B]=0,B=b>>>0<255,b=b+1|0,B)continue;break t}break}k[0|B]=1}else k[0|j]=B,k[0|Z]=0;if(!(h>>>0>251)){t:if(B=k[0|(Z=(b=h+4|0)+(v+1760|0)|0)])if((0|(B=(H=B<<4)+(L=k[0|j])|0))>=16){if((0|(B=L-H|0))<-15)break e;for(k[0|j]=B;;){if(S[0|(B=(v+1760|0)+b|0)]){if(k[0|B]=0,B=b>>>0<255,b=b+1|0,B)continue;break t}break}k[0|B]=1}else k[0|j]=B,k[0|Z]=0;if((0|h)!=251){t:if(B=k[0|(Z=(b=h+5|0)+(v+1760|0)|0)])if((0|(B=(H=B<<5)+(L=k[0|j])|0))>=16){if((0|(B=L-H|0))<-15)break e;for(k[0|j]=B;;){if(S[0|(B=(v+1760|0)+b|0)]){if(k[0|B]=0,B=b>>>0<255,b=b+1|0,B)continue;break t}break}k[0|B]=1}else k[0|j]=B,k[0|Z]=0;if(!(h>>>0>249)&&(h=k[0|(H=(b=h+6|0)+(v+1760|0)|0)]))if((0|(h=(L=h<<6)+(B=k[0|j])|0))>=16){if((0|(h=B-L|0))<-15)break e;for(k[0|j]=h;;){if(S[0|(h=(v+1760|0)+b|0)]){if(k[0|h]=0,h=b>>>0<255,b=b+1|0,h)continue;break e}break}k[0|h]=1}else k[0|j]=h,k[0|H]=0}}}}}if((0|c)==256)break}for(mc(b=v+480|0,re),c=a[re+36>>2],a[v+192>>2]=a[re+32>>2],a[v+196>>2]=c,c=a[re+28>>2],a[v+184>>2]=a[re+24>>2],a[v+188>>2]=c,c=a[re+20>>2],a[v+176>>2]=a[re+16>>2],a[v+180>>2]=c,c=a[re+12>>2],a[v+168>>2]=a[re+8>>2],a[v+172>>2]=c,c=a[re+4>>2],a[v+160>>2]=a[re>>2],a[v+164>>2]=c,c=a[re+52>>2],a[v+208>>2]=a[re+48>>2],a[v+212>>2]=c,c=a[re+60>>2],a[v+216>>2]=a[re+56>>2],a[v+220>>2]=c,c=a[4+(h=re- -64|0)>>2],a[v+224>>2]=a[h>>2],a[v+228>>2]=c,c=a[re+76>>2],a[v+232>>2]=a[re+72>>2],a[v+236>>2]=c,c=a[re+44>>2],a[v+200>>2]=a[re+40>>2],a[v+204>>2]=c,c=a[re+92>>2],a[v+248>>2]=a[re+88>>2],a[v+252>>2]=c,c=a[re+100>>2],a[v+256>>2]=a[re+96>>2],a[v+260>>2]=c,c=a[re+108>>2],a[v+264>>2]=a[re+104>>2],a[v+268>>2]=c,c=a[re+116>>2],a[v+272>>2]=a[re+112>>2],a[v+276>>2]=c,c=a[re+84>>2],a[v+240>>2]=a[re+80>>2],a[v+244>>2]=c,Rd(B=v+320|0,h=v+160|0),Ar(v,B,de=v+440|0),Ar(v+40|0,we=v+360|0,ke=v+400|0),Ar(v+80|0,ke,de),Ar(v+120|0,B,we),Gu(B,v,b),Ar(h,B,de),Ar(Me=v+200|0,we,ke),Ar(Ve=v+240|0,ke,de),Ar(ye=v+280|0,B,we),mc(c=v+640|0,h),Gu(B,v,c),Ar(h,B,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,B,we),mc(c=v+800|0,h),Gu(B,v,c),Ar(h,B,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,B,we),mc(c=v+960|0,h),Gu(B,v,c),Ar(h,B,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,B,we),mc(c=v+1120|0,h),Gu(B,v,c),Ar(h,B,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,B,we),mc(c=v+1280|0,h),Gu(B,v,c),Ar(h,B,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,B,we),mc(c=v+1440|0,h),Gu(B,v,c),Ar(h,B,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,B,we),mc(v+1600|0,h),a[p+32>>2]=0,a[p+36>>2]=0,a[p+24>>2]=0,a[p+28>>2]=0,a[p+16>>2]=0,a[p+20>>2]=0,a[p+8>>2]=0,a[p+12>>2]=0,a[p>>2]=0,a[p+4>>2]=0,a[p+44>>2]=0,a[p+48>>2]=0,a[p+40>>2]=1,a[p+52>>2]=0,a[p+56>>2]=0,a[p+60>>2]=0,a[p+64>>2]=0,a[p+68>>2]=0,a[p+72>>2]=0,a[p+84>>2]=0,a[p+88>>2]=0,a[p+76>>2]=0,a[p+80>>2]=1,a[p+92>>2]=0,a[p+96>>2]=0,a[p+100>>2]=0,a[p+104>>2]=0,a[p+108>>2]=0,a[p+112>>2]=0,a[p+116>>2]=0,ur=p+80|0,Mr=p+40|0,c=255;;){e:{t:{if(!S[(h=v+2016|0)+c|0]&&!S[(b=v+1760|0)+c|0]){if(!(S[(B=h)+(h=c-1|0)|0]|S[h+b|0]))break t;c=h}if((0|c)<0)break e;for(;Rd(b=v+320|0,p),h=c,(0|(B=k[c+(v+2016|0)|0]))>0?(Ar(c=v+160|0,b,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,b,we),Gu(b,c,(v+480|0)+Lr((254&B)>>>1|0,160)|0)):(0|B)>=0||(Ar(c=v+160|0,b=v+320|0,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,b,we),Y5(b,c,(v+480|0)+Lr((0-B&254)>>>1|0,160)|0)),(0|(vr=k[h+(v+1760|0)|0]))>0?(Ar(c=v+160|0,b=v+320|0,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,b,we),lM(b,c,Lr((254&vr)>>>1|0,120)+1728|0)):(0|vr)>=0||(Ar(v+160|0,Sr=v+320|0,de),Ar(Me,we,ke),Ar(Ve,ke,de),Ar(ye,Sr,we),We=a[v+160>>2],ut=a[v+200>>2],pt=a[v+164>>2],bt=a[v+204>>2],Ye=a[v+168>>2],it=a[v+208>>2],dt=a[v+172>>2],Wt=a[v+212>>2],nr=a[v+176>>2],cr=a[v+216>>2],gr=a[v+180>>2],ee=a[v+220>>2],j=a[v+184>>2],Z=a[v+224>>2],H=a[v+188>>2],re=a[v+228>>2],L=a[v+192>>2],B=a[v+232>>2],b=a[v+236>>2],c=a[v+196>>2],a[v+396>>2]=b-c,a[v+392>>2]=B-L,a[v+388>>2]=re-H,a[v+384>>2]=Z-j,a[v+380>>2]=ee-gr,a[v+376>>2]=cr-nr,a[v+372>>2]=Wt-dt,a[v+368>>2]=it-Ye,a[v+364>>2]=bt-pt,a[v+360>>2]=ut-We,a[v+356>>2]=c+b,a[v+352>>2]=B+L,a[v+348>>2]=H+re,a[v+344>>2]=j+Z,a[v+340>>2]=ee+gr,a[v+336>>2]=nr+cr,a[v+332>>2]=dt+Wt,a[v+328>>2]=Ye+it,a[v+324>>2]=pt+bt,a[v+320>>2]=We+ut,Ar(ke,Sr,40+(c=Lr((0-vr&254)>>>1|0,120)+1728|0)|0),Ar(we,we,c),Ar(de,c+80|0,ye),Gr=a[v+276>>2],jr=a[v+272>>2],vr=a[v+268>>2],Sr=a[v+264>>2],j=a[v+260>>2],Z=a[v+256>>2],H=a[v+252>>2],re=a[v+248>>2],L=a[v+244>>2],B=a[v+240>>2],yr=a[v+360>>2],Kt=a[v+400>>2],or=a[v+364>>2],Or=a[v+404>>2],kr=a[v+368>>2],Jt=a[v+408>>2],We=a[v+372>>2],ut=a[v+412>>2],pt=a[v+376>>2],bt=a[v+416>>2],Ye=a[v+380>>2],it=a[v+420>>2],dt=a[v+384>>2],Wt=a[v+424>>2],nr=a[v+388>>2],cr=a[v+428>>2],gr=a[v+392>>2],ee=a[v+432>>2],b=a[v+396>>2],c=a[v+436>>2],a[v+396>>2]=b+c,a[v+392>>2]=ee+gr,a[v+388>>2]=nr+cr,a[v+384>>2]=dt+Wt,a[v+380>>2]=Ye+it,a[v+376>>2]=pt+bt,a[v+372>>2]=We+ut,a[v+368>>2]=kr+Jt,a[v+364>>2]=or+Or,a[v+360>>2]=yr+Kt,a[v+356>>2]=c-b,a[v+352>>2]=ee-gr,a[v+348>>2]=cr-nr,a[v+344>>2]=Wt-dt,a[v+340>>2]=it-Ye,a[v+336>>2]=bt-pt,a[v+332>>2]=ut-We,a[v+328>>2]=Jt-kr,a[v+324>>2]=Or-or,a[v+320>>2]=Kt-yr,We=B<<1,ut=a[v+440>>2],a[v+400>>2]=We-ut,pt=L<<1,bt=a[v+444>>2],a[v+404>>2]=pt-bt,Ye=re<<1,it=a[v+448>>2],a[v+408>>2]=Ye-it,dt=H<<1,Wt=a[v+452>>2],a[v+412>>2]=dt-Wt,nr=Z<<1,cr=a[v+456>>2],a[v+416>>2]=nr-cr,gr=j<<1,ee=a[v+460>>2],a[v+420>>2]=gr-ee,j=Sr<<1,Z=a[v+464>>2],a[v+424>>2]=j-Z,H=vr<<1,re=a[v+468>>2],a[v+428>>2]=H-re,L=jr<<1,B=a[v+472>>2],a[v+432>>2]=L-B,b=Gr<<1,c=a[v+476>>2],a[v+436>>2]=b-c,a[v+440>>2]=We+ut,a[v+444>>2]=pt+bt,a[v+448>>2]=Ye+it,a[v+452>>2]=dt+Wt,a[v+456>>2]=nr+cr,a[v+460>>2]=ee+gr,a[v+464>>2]=j+Z,a[v+468>>2]=H+re,a[v+472>>2]=B+L,a[v+476>>2]=c+b),Ar(p,v+320|0,de),Ar(Mr,we,ke),Ar(ur,ke,de),c=h-1|0,(0|h)>0;);break e}if(c=c-2|0,h)continue}break}Ie=v+2272|0,VS(c=Q+288|0,p),nn=-1,fn=eO(c,f),H=((0|f)==(0|c)?nn:fn)|Ul(f,c,32)}return Ie=Q+592|0,H}function Ar(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut,pt,bt,Ye,it,dt,Wt,nr,cr,gr,vr,Sr,yr,Kt,or,Or,kr,Jt,ur,Mr,Gr,jr,nn,fn,Ne,xe,nt,Cr,Yr,An,hn,pn,En,Mn,Nr,ft=0,Gt=0,rr=0,Jr=0,rn=0,_n=0,Tn=0,Bn=0,Nn=0,kn=0,Kn=0,zn=0,ui=0,di=0,mi=0,Ci=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ft>>>0?rr+1|0:rr,Gt=Ce(di,j,Yr,Yr>>31),ft=$+rr|0,ft=(ft=(h=Gt+h|0)>>>0<Gt>>>0?ft+1|0:ft)+(Gt=c>>26)|0,ft=(c=(rr=h)+(h=(67108863&c)<<6|Bn>>>26)|0)>>>0<h>>>0?ft+1|0:ft,ft=(c=(h=c)+16777216|0)>>>0<16777216?ft+1|0:ft,a[f+36>>2]=h-(-33554432&c),rr=_n-(-33554432&ss)|0,Gt=rn-(h=-67108864&xo)|0,mi=Ao-((h>>>0>rn>>>0)+Nr|0)|0,c=(h=Ce((33554431&(h=ft))<<7|c>>>25,ft>>=25,19,0))+Gt|0,Gt=$+mi|0,ft=c>>>0<h>>>0?Gt+1|0:Gt,ft=((67108863&(ft=(c=(h=c)+33554432|0)>>>0<33554432?ft+1|0:ft))<<6|c>>>26)+rr|0,a[f+4>>2]=ft,a[f>>2]=h-(-67108864&c)}function Pa(f,c){var h,p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me=0,Ve=0,We=0;Ie=h=Ie-544|0,p=S[f+60|0]|S[f+61|0]<<8|S[f+62|0]<<16|S[f+63|0]<<24,b=S[f+56|0]|S[f+57|0]<<8|S[f+58|0]<<16|S[f+59|0]<<24,B=S[f+52|0]|S[f+53|0]<<8|S[f+54|0]<<16|S[f+55|0]<<24,Q=S[f+48|0]|S[f+49|0]<<8|S[f+50|0]<<16|S[f+51|0]<<24,v=S[f+32|0]|S[f+33|0]<<8|S[f+34|0]<<16|S[f+35|0]<<24,L=S[f+36|0]|S[f+37|0]<<8|S[f+38|0]<<16|S[f+39|0]<<24,H=S[f+40|0]|S[f+41|0]<<8|S[f+42|0]<<16|S[f+43|0]<<24,j=S[f+44|0]|S[f+45|0]<<8|S[f+46|0]<<16|S[f+47|0]<<24,Me=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,re=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,Z=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,ee=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,de=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,we=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,ke=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,ye=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,f=a[c+124>>2],a[h+536>>2]=a[c+120>>2],a[h+540>>2]=f,f=a[c+116>>2],a[h+528>>2]=a[c+112>>2],a[h+532>>2]=f,f=a[c+108>>2],a[h+504>>2]=a[c+104>>2],a[h+508>>2]=f,f=a[c+100>>2],a[h+496>>2]=a[c+96>>2],a[h+500>>2]=f,f=a[c+124>>2],a[h+488>>2]=a[c+120>>2],a[h+492>>2]=f,f=a[c+116>>2],a[h+480>>2]=a[c+112>>2],a[h+484>>2]=f,un(We=h+512|0,h+496|0,h+480|0),f=a[h+524>>2],a[c+120>>2]=a[h+520>>2],a[c+124>>2]=f,f=a[h+516>>2],a[c+112>>2]=a[h+512>>2],a[c+116>>2]=f,f=a[c+92>>2],a[h+472>>2]=a[c+88>>2],a[h+476>>2]=f,f=a[c+84>>2],a[h+464>>2]=a[c+80>>2],a[h+468>>2]=f,f=a[c+108>>2],a[h+456>>2]=a[c+104>>2],a[h+460>>2]=f,f=a[c+100>>2],a[h+448>>2]=a[c+96>>2],a[h+452>>2]=f,un(We,h+464|0,h+448|0),f=a[h+524>>2],a[c+104>>2]=a[h+520>>2],a[c+108>>2]=f,f=a[h+516>>2],a[c+96>>2]=a[h+512>>2],a[c+100>>2]=f,f=a[c+76>>2],a[h+440>>2]=a[c+72>>2],a[h+444>>2]=f,Ve=a[4+(f=c- -64|0)>>2],a[h+432>>2]=a[f>>2],a[h+436>>2]=Ve,Ve=a[c+92>>2],a[h+424>>2]=a[c+88>>2],a[h+428>>2]=Ve,Ve=a[c+84>>2],a[h+416>>2]=a[c+80>>2],a[h+420>>2]=Ve,un(We,h+432|0,h+416|0),Ve=a[h+524>>2],a[c+88>>2]=a[h+520>>2],a[c+92>>2]=Ve,Ve=a[h+516>>2],a[c+80>>2]=a[h+512>>2],a[c+84>>2]=Ve,Ve=a[c+60>>2],a[h+408>>2]=a[c+56>>2],a[h+412>>2]=Ve,Ve=a[c+52>>2],a[h+400>>2]=a[c+48>>2],a[h+404>>2]=Ve,Ve=a[c+76>>2],a[h+392>>2]=a[c+72>>2],a[h+396>>2]=Ve,Ve=a[f+4>>2],a[h+384>>2]=a[f>>2],a[h+388>>2]=Ve,un(We,h+400|0,h+384|0),Ve=a[h+524>>2],a[c+72>>2]=a[h+520>>2],a[c+76>>2]=Ve,Ve=a[h+516>>2],a[f>>2]=a[h+512>>2],a[f+4>>2]=Ve,Ve=a[c+44>>2],a[h+376>>2]=a[c+40>>2],a[h+380>>2]=Ve,Ve=a[c+36>>2],a[h+368>>2]=a[c+32>>2],a[h+372>>2]=Ve,Ve=a[c+60>>2],a[h+360>>2]=a[c+56>>2],a[h+364>>2]=Ve,Ve=a[c+52>>2],a[h+352>>2]=a[c+48>>2],a[h+356>>2]=Ve,un(We,h+368|0,h+352|0),Ve=a[h+524>>2],a[c+56>>2]=a[h+520>>2],a[c+60>>2]=Ve,Ve=a[h+516>>2],a[c+48>>2]=a[h+512>>2],a[c+52>>2]=Ve,Ve=a[c+28>>2],a[h+344>>2]=a[c+24>>2],a[h+348>>2]=Ve,Ve=a[c+20>>2],a[h+336>>2]=a[c+16>>2],a[h+340>>2]=Ve,Ve=a[c+44>>2],a[h+328>>2]=a[c+40>>2],a[h+332>>2]=Ve,Ve=a[c+36>>2],a[h+320>>2]=a[c+32>>2],a[h+324>>2]=Ve,un(We,h+336|0,h+320|0),Ve=a[h+524>>2],a[c+40>>2]=a[h+520>>2],a[c+44>>2]=Ve,Ve=a[h+516>>2],a[c+32>>2]=a[h+512>>2],a[c+36>>2]=Ve,Ve=a[c+12>>2],a[h+312>>2]=a[c+8>>2],a[h+316>>2]=Ve,Ve=a[c+4>>2],a[h+304>>2]=a[c>>2],a[h+308>>2]=Ve,Ve=a[c+28>>2],a[h+296>>2]=a[c+24>>2],a[h+300>>2]=Ve,Ve=a[c+20>>2],a[h+288>>2]=a[c+16>>2],a[h+292>>2]=Ve,un(We,h+304|0,h+288|0),Ve=a[h+524>>2],a[c+24>>2]=a[h+520>>2],a[c+28>>2]=Ve,Ve=a[h+516>>2],a[c+16>>2]=a[h+512>>2],a[c+20>>2]=Ve,Ve=a[h+540>>2],a[h+280>>2]=a[h+536>>2],a[h+284>>2]=Ve,Ve=a[h+532>>2],a[h+272>>2]=a[h+528>>2],a[h+276>>2]=Ve,Ve=a[c+12>>2],a[h+264>>2]=a[c+8>>2],a[h+268>>2]=Ve,Ve=a[c+4>>2],a[h+256>>2]=a[c>>2],a[h+260>>2]=Ve,un(We,h+272|0,h+256|0),Ve=a[h+524>>2],a[c+8>>2]=a[h+520>>2],a[c+12>>2]=Ve,Ve=a[h+516>>2],a[c>>2]=a[h+512>>2],a[c+4>>2]=Ve,a[c+12>>2]=(S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24)^ke,a[c+8>>2]=(S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24)^we,a[c+4>>2]=(S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24)^de,a[c>>2]=(S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24)^ye,a[f>>2]=(S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24)^ee,a[c+68>>2]=(S[c+68|0]|S[c+69|0]<<8|S[c+70|0]<<16|S[c+71|0]<<24)^Z,a[c+72>>2]=(S[c+72|0]|S[c+73|0]<<8|S[c+74|0]<<16|S[c+75|0]<<24)^re,a[c+76>>2]=(S[c+76|0]|S[c+77|0]<<8|S[c+78|0]<<16|S[c+79|0]<<24)^Me,Me=a[c+124>>2],a[h+536>>2]=a[c+120>>2],a[h+540>>2]=Me,Me=a[c+116>>2],a[h+528>>2]=a[c+112>>2],a[h+532>>2]=Me,Me=a[c+108>>2],a[h+248>>2]=a[c+104>>2],a[h+252>>2]=Me,Me=a[c+100>>2],a[h+240>>2]=a[c+96>>2],a[h+244>>2]=Me,Me=a[c+124>>2],a[h+232>>2]=a[c+120>>2],a[h+236>>2]=Me,Me=a[c+116>>2],a[h+224>>2]=a[c+112>>2],a[h+228>>2]=Me,un(We,h+240|0,h+224|0),Me=a[h+524>>2],a[c+120>>2]=a[h+520>>2],a[c+124>>2]=Me,Me=a[h+516>>2],a[c+112>>2]=a[h+512>>2],a[c+116>>2]=Me,Me=a[c+92>>2],a[h+216>>2]=a[c+88>>2],a[h+220>>2]=Me,Me=a[c+84>>2],a[h+208>>2]=a[c+80>>2],a[h+212>>2]=Me,Me=a[c+108>>2],a[h+200>>2]=a[c+104>>2],a[h+204>>2]=Me,Me=a[c+100>>2],a[h+192>>2]=a[c+96>>2],a[h+196>>2]=Me,un(We,h+208|0,h+192|0),Me=a[h+524>>2],a[c+104>>2]=a[h+520>>2],a[c+108>>2]=Me,Me=a[h+516>>2],a[c+96>>2]=a[h+512>>2],a[c+100>>2]=Me,Me=a[c+76>>2],a[h+184>>2]=a[c+72>>2],a[h+188>>2]=Me,Me=a[f+4>>2],a[h+176>>2]=a[f>>2],a[h+180>>2]=Me,Me=a[c+92>>2],a[h+168>>2]=a[c+88>>2],a[h+172>>2]=Me,Me=a[c+84>>2],a[h+160>>2]=a[c+80>>2],a[h+164>>2]=Me,un(We,h+176|0,h+160|0),Me=a[h+524>>2],a[c+88>>2]=a[h+520>>2],a[c+92>>2]=Me,Me=a[h+516>>2],a[c+80>>2]=a[h+512>>2],a[c+84>>2]=Me,Me=a[c+60>>2],a[h+152>>2]=a[c+56>>2],a[h+156>>2]=Me,Me=a[c+52>>2],a[h+144>>2]=a[c+48>>2],a[h+148>>2]=Me,Me=a[c+76>>2],a[h+136>>2]=a[c+72>>2],a[h+140>>2]=Me,Me=a[f+4>>2],a[h+128>>2]=a[f>>2],a[h+132>>2]=Me,un(We,h+144|0,h+128|0),Me=a[h+524>>2],a[c+72>>2]=a[h+520>>2],a[c+76>>2]=Me,Me=a[h+516>>2],a[f>>2]=a[h+512>>2],a[f+4>>2]=Me,Me=a[c+44>>2],a[h+120>>2]=a[c+40>>2],a[h+124>>2]=Me,Me=a[c+36>>2],a[h+112>>2]=a[c+32>>2],a[h+116>>2]=Me,Me=a[c+60>>2],a[h+104>>2]=a[c+56>>2],a[h+108>>2]=Me,Me=a[c+52>>2],a[h+96>>2]=a[c+48>>2],a[h+100>>2]=Me,un(We,h+112|0,h+96|0),Me=a[h+524>>2],a[c+56>>2]=a[h+520>>2],a[c+60>>2]=Me,Me=a[h+516>>2],a[c+48>>2]=a[h+512>>2],a[c+52>>2]=Me,Me=a[c+28>>2],a[h+88>>2]=a[c+24>>2],a[h+92>>2]=Me,Me=a[c+20>>2],a[h+80>>2]=a[c+16>>2],a[h+84>>2]=Me,Me=a[c+44>>2],a[h+72>>2]=a[c+40>>2],a[h+76>>2]=Me,Me=a[c+36>>2],a[h+64>>2]=a[c+32>>2],a[h+68>>2]=Me,un(We,h+80|0,h- -64|0),Me=a[h+524>>2],a[c+40>>2]=a[h+520>>2],a[c+44>>2]=Me,Me=a[h+516>>2],a[c+32>>2]=a[h+512>>2],a[c+36>>2]=Me,Me=a[c+12>>2],a[h+56>>2]=a[c+8>>2],a[h+60>>2]=Me,Me=a[c+4>>2],a[h+48>>2]=a[c>>2],a[h+52>>2]=Me,Me=a[c+28>>2],a[h+40>>2]=a[c+24>>2],a[h+44>>2]=Me,Me=a[c+20>>2],a[h+32>>2]=a[c+16>>2],a[h+36>>2]=Me,un(We,h+48|0,h+32|0),Me=a[h+524>>2],a[c+24>>2]=a[h+520>>2],a[c+28>>2]=Me,Me=a[h+516>>2],a[c+16>>2]=a[h+512>>2],a[c+20>>2]=Me,Me=a[h+540>>2],a[h+24>>2]=a[h+536>>2],a[h+28>>2]=Me,Me=a[h+532>>2],a[h+16>>2]=a[h+528>>2],a[h+20>>2]=Me,Me=a[c+12>>2],a[h+8>>2]=a[c+8>>2],a[h+12>>2]=Me,Me=a[c+4>>2],a[h>>2]=a[c>>2],a[h+4>>2]=Me,un(We,h+16|0,h),We=a[h+524>>2],a[c+8>>2]=a[h+520>>2],a[c+12>>2]=We,We=a[h+516>>2],a[c>>2]=a[h+512>>2],a[c+4>>2]=We,a[c+12>>2]=(S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24)^j,a[c+8>>2]=(S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24)^H,a[c+4>>2]=(S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24)^L,a[c>>2]=(S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24)^v,a[f>>2]=(S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24)^Q,a[c+68>>2]=(S[c+68|0]|S[c+69|0]<<8|S[c+70|0]<<16|S[c+71|0]<<24)^B,a[c+72>>2]=(S[c+72|0]|S[c+73|0]<<8|S[c+74|0]<<16|S[c+75|0]<<24)^b,a[c+76>>2]=(S[c+76|0]|S[c+77|0]<<8|S[c+78|0]<<16|S[c+79|0]<<24)^p,Ie=h+544|0}function Hu(f,c,h,p,b){var B,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0;for(Ie=B=Ie-288|0,de=(S[b+44|0]|S[b+45|0]<<8|S[b+46|0]<<16|S[b+47|0]<<24)^p>>>29,we=(S[b+40|0]|S[b+41|0]<<8|S[b+42|0]<<16|S[b+43|0]<<24)^p<<3,ke=(S[b+36|0]|S[b+37|0]<<8|S[b+38|0]<<16|S[b+39|0]<<24)^h>>>29,p=(S[0|(L=b+32|0)]|S[L+1|0]<<8|S[L+2|0]<<16|S[L+3|0]<<24)^h<<3,Z=b+16|0,j=b+48|0,v=b- -64|0,re=b+80|0,Q=b+96|0,H=b+112|0;h=a[H+12>>2],a[B+280>>2]=a[H+8>>2],a[B+284>>2]=h,h=a[H+4>>2],a[B+272>>2]=a[H>>2],a[B+276>>2]=h,h=a[Q+12>>2],a[B+248>>2]=a[Q+8>>2],a[B+252>>2]=h,h=a[Q+4>>2],a[B+240>>2]=a[Q>>2],a[B+244>>2]=h,h=a[H+12>>2],a[B+232>>2]=a[H+8>>2],a[B+236>>2]=h,h=a[H+4>>2],a[B+224>>2]=a[H>>2],a[B+228>>2]=h,un(ee=B+256|0,B+240|0,B+224|0),h=a[B+268>>2],a[H+8>>2]=a[B+264>>2],a[H+12>>2]=h,h=a[B+260>>2],a[H>>2]=a[B+256>>2],a[H+4>>2]=h,h=a[re+12>>2],a[B+216>>2]=a[re+8>>2],a[B+220>>2]=h,h=a[re+4>>2],a[B+208>>2]=a[re>>2],a[B+212>>2]=h,h=a[Q+12>>2],a[B+200>>2]=a[Q+8>>2],a[B+204>>2]=h,h=a[Q+4>>2],a[B+192>>2]=a[Q>>2],a[B+196>>2]=h,un(ee,B+208|0,B+192|0),h=a[B+268>>2],a[Q+8>>2]=a[B+264>>2],a[Q+12>>2]=h,h=a[B+260>>2],a[Q>>2]=a[B+256>>2],a[Q+4>>2]=h,h=a[v+12>>2],a[B+184>>2]=a[v+8>>2],a[B+188>>2]=h,h=a[v+4>>2],a[B+176>>2]=a[v>>2],a[B+180>>2]=h,h=a[re+12>>2],a[B+168>>2]=a[re+8>>2],a[B+172>>2]=h,h=a[re+4>>2],a[B+160>>2]=a[re>>2],a[B+164>>2]=h,un(ee,B+176|0,B+160|0),h=a[B+268>>2],a[re+8>>2]=a[B+264>>2],a[re+12>>2]=h,h=a[B+260>>2],a[re>>2]=a[B+256>>2],a[re+4>>2]=h,h=a[j+12>>2],a[B+152>>2]=a[j+8>>2],a[B+156>>2]=h,h=a[j+4>>2],a[B+144>>2]=a[j>>2],a[B+148>>2]=h,h=a[v+12>>2],a[B+136>>2]=a[v+8>>2],a[B+140>>2]=h,h=a[v+4>>2],a[B+128>>2]=a[v>>2],a[B+132>>2]=h,un(ee,B+144|0,B+128|0),h=a[B+268>>2],a[v+8>>2]=a[B+264>>2],a[v+12>>2]=h,h=a[B+260>>2],a[v>>2]=a[B+256>>2],a[v+4>>2]=h,h=a[L+12>>2],a[B+120>>2]=a[L+8>>2],a[B+124>>2]=h,h=a[L+4>>2],a[B+112>>2]=a[L>>2],a[B+116>>2]=h,h=a[j+12>>2],a[B+104>>2]=a[j+8>>2],a[B+108>>2]=h,h=a[j+4>>2],a[B+96>>2]=a[j>>2],a[B+100>>2]=h,un(ee,B+112|0,B+96|0),h=a[B+268>>2],a[j+8>>2]=a[B+264>>2],a[j+12>>2]=h,h=a[B+260>>2],a[j>>2]=a[B+256>>2],a[j+4>>2]=h,h=a[Z+12>>2],a[B+88>>2]=a[Z+8>>2],a[B+92>>2]=h,h=a[Z+4>>2],a[B+80>>2]=a[Z>>2],a[B+84>>2]=h,h=a[L+12>>2],a[B+72>>2]=a[L+8>>2],a[B+76>>2]=h,h=a[L+4>>2],a[B+64>>2]=a[L>>2],a[B+68>>2]=h,un(ee,B+80|0,B- -64|0),h=a[B+268>>2],a[L+8>>2]=a[B+264>>2],a[L+12>>2]=h,h=a[B+260>>2],a[L>>2]=a[B+256>>2],a[L+4>>2]=h,h=a[b+12>>2],a[B+56>>2]=a[b+8>>2],a[B+60>>2]=h,h=a[b+4>>2],a[B+48>>2]=a[b>>2],a[B+52>>2]=h,h=a[Z+12>>2],a[B+40>>2]=a[Z+8>>2],a[B+44>>2]=h,h=a[Z+4>>2],a[B+32>>2]=a[Z>>2],a[B+36>>2]=h,un(ee,B+48|0,B+32|0),h=a[B+268>>2],a[Z+8>>2]=a[B+264>>2],a[Z+12>>2]=h,h=a[B+260>>2],a[Z>>2]=a[B+256>>2],a[Z+4>>2]=h,h=a[B+284>>2],a[B+24>>2]=a[B+280>>2],a[B+28>>2]=h,h=a[B+276>>2],a[B+16>>2]=a[B+272>>2],a[B+20>>2]=h,h=a[b+12>>2],a[B+8>>2]=a[b+8>>2],a[B+12>>2]=h,h=a[b+4>>2],a[B>>2]=a[b>>2],a[B+4>>2]=h,un(ee,B+16|0,B),h=a[B+268>>2],a[b+8>>2]=a[B+264>>2],a[b+12>>2]=h,h=a[B+260>>2],a[b>>2]=a[B+256>>2],a[b+4>>2]=h,Me=de^(S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24),a[b+12>>2]=Me,Ve=we^(S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24),a[b+8>>2]=Ve,We=ke^(S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24),a[b+4>>2]=We,ut=p^(S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),a[b>>2]=ut,pt=p^(S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24),a[v>>2]=pt,bt=ke^(S[b+68|0]|S[b+69|0]<<8|S[b+70|0]<<16|S[b+71|0]<<24),a[b+68>>2]=bt,Ye=we^(S[b+72|0]|S[b+73|0]<<8|S[b+74|0]<<16|S[b+75|0]<<24),a[b+72>>2]=Ye,it=de^(S[b+76|0]|S[b+77|0]<<8|S[b+78|0]<<16|S[b+79|0]<<24),a[b+76>>2]=it,(0|(ye=ye+1|0))!=7;);e:{t:{r:{if(h=c-16|0){if((0|h)==16)break r;break t}v=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,L=S[b+48|0]|S[b+49|0]<<8|S[b+50|0]<<16|S[b+51|0]<<24,Z=S[b+32|0]|S[b+33|0]<<8|S[b+34|0]<<16|S[b+35|0]<<24,j=S[b+96|0]|S[b+97|0]<<8|S[b+98|0]<<16|S[b+99|0]<<24,re=S[b+80|0]|S[b+81|0]<<8|S[b+82|0]<<16|S[b+83|0]<<24,Q=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,H=S[b+52|0]|S[b+53|0]<<8|S[b+54|0]<<16|S[b+55|0]<<24,ee=S[b+36|0]|S[b+37|0]<<8|S[b+38|0]<<16|S[b+39|0]<<24,de=S[b+100|0]|S[b+101|0]<<8|S[b+102|0]<<16|S[b+103|0]<<24,we=S[b+84|0]|S[b+85|0]<<8|S[b+86|0]<<16|S[b+87|0]<<24,ke=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,ye=S[b+56|0]|S[b+57|0]<<8|S[b+58|0]<<16|S[b+59|0]<<24,p=S[b+40|0]|S[b+41|0]<<8|S[b+42|0]<<16|S[b+43|0]<<24,h=S[b+104|0]|S[b+105|0]<<8|S[b+106|0]<<16|S[b+107|0]<<24,c=S[b+88|0]|S[b+89|0]<<8|S[b+90|0]<<16|S[b+91|0]<<24,b=Me^(S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24)^(S[b+60|0]|S[b+61|0]<<8|S[b+62|0]<<16|S[b+63|0]<<24)^(S[b+44|0]|S[b+45|0]<<8|S[b+46|0]<<16|S[b+47|0]<<24)^(S[b+92|0]|S[b+93|0]<<8|S[b+94|0]<<16|S[b+95|0]<<24)^(S[b+108|0]|S[b+109|0]<<8|S[b+110|0]<<16|S[b+111|0]<<24)^it,k[f+12|0]=b,k[f+13|0]=b>>>8,k[f+14|0]=b>>>16,k[f+15|0]=b>>>24,c=ke^ye^p^c^h^Ye^Ve,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=Q^H^ee^de^we^bt^We,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=v^L^Z^j^re^pt^ut,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24;break e}H=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,ee=S[b+48|0]|S[b+49|0]<<8|S[b+50|0]<<16|S[b+51|0]<<24,de=S[b+32|0]|S[b+33|0]<<8|S[b+34|0]<<16|S[b+35|0]<<24,we=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,ke=S[b+52|0]|S[b+53|0]<<8|S[b+54|0]<<16|S[b+55|0]<<24,ye=S[b+36|0]|S[b+37|0]<<8|S[b+38|0]<<16|S[b+39|0]<<24,p=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,h=S[b+56|0]|S[b+57|0]<<8|S[b+58|0]<<16|S[b+59|0]<<24,c=S[b+40|0]|S[b+41|0]<<8|S[b+42|0]<<16|S[b+43|0]<<24,Q=Me^(S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24)^(S[b+60|0]|S[b+61|0]<<8|S[b+62|0]<<16|S[b+63|0]<<24)^(S[b+44|0]|S[b+45|0]<<8|S[b+46|0]<<16|S[b+47|0]<<24),k[f+12|0]=Q,k[f+13|0]=Q>>>8,k[f+14|0]=Q>>>16,k[f+15|0]=Q>>>24,c=p^c^h^Ve,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=we^ke^ye^We,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=H^ee^de^ut,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,j=S[b+80|0]|S[b+81|0]<<8|S[b+82|0]<<16|S[b+83|0]<<24,re=S[0|(c=b- -64|0)]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,Q=S[b+112|0]|S[b+113|0]<<8|S[b+114|0]<<16|S[b+115|0]<<24,H=S[b+96|0]|S[b+97|0]<<8|S[b+98|0]<<16|S[b+99|0]<<24,ee=S[b+84|0]|S[b+85|0]<<8|S[b+86|0]<<16|S[b+87|0]<<24,de=S[b+68|0]|S[b+69|0]<<8|S[b+70|0]<<16|S[b+71|0]<<24,we=S[b+116|0]|S[b+117|0]<<8|S[b+118|0]<<16|S[b+119|0]<<24,ke=S[b+100|0]|S[b+101|0]<<8|S[b+102|0]<<16|S[b+103|0]<<24,ye=S[b+88|0]|S[b+89|0]<<8|S[b+90|0]<<16|S[b+91|0]<<24,p=S[b+72|0]|S[b+73|0]<<8|S[b+74|0]<<16|S[b+75|0]<<24,h=S[b+120|0]|S[b+121|0]<<8|S[b+122|0]<<16|S[b+123|0]<<24,c=S[b+104|0]|S[b+105|0]<<8|S[b+106|0]<<16|S[b+107|0]<<24,b=(S[b+92|0]|S[b+93|0]<<8|S[b+94|0]<<16|S[b+95|0]<<24)^(S[b+76|0]|S[b+77|0]<<8|S[b+78|0]<<16|S[b+79|0]<<24)^(S[b+124|0]|S[b+125|0]<<8|S[b+126|0]<<16|S[b+127|0]<<24)^(S[b+108|0]|S[b+109|0]<<8|S[b+110|0]<<16|S[b+111|0]<<24),k[f+28|0]=b,k[f+29|0]=b>>>8,k[f+30|0]=b>>>16,k[f+31|0]=b>>>24,c=ye^p^c^h,k[f+24|0]=c,k[f+25|0]=c>>>8,k[f+26|0]=c>>>16,k[f+27|0]=c>>>24,c=ee^de^we^ke,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=j^re^Q^H,k[f+16|0]=c,k[f+17|0]=c>>>8,k[f+18|0]=c>>>16,k[f+19|0]=c>>>24;break e}yo(f,0,c)}Ie=B+288|0}function vs(f,c,h,p){var b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0;for(b=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,a[h>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,a[h+4>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,a[h+8>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,a[h+12>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[h+16>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[h+20>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,a[h+24>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[h+28>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+32|0]|S[c+33|0]<<8|S[c+34|0]<<16|S[c+35|0]<<24,a[h+32>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+36|0]|S[c+37|0]<<8|S[c+38|0]<<16|S[c+39|0]<<24,a[h+36>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+40|0]|S[c+41|0]<<8|S[c+42|0]<<16|S[c+43|0]<<24,a[h+40>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+44|0]|S[c+45|0]<<8|S[c+46|0]<<16|S[c+47|0]<<24,a[h+44>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+48|0]|S[c+49|0]<<8|S[c+50|0]<<16|S[c+51|0]<<24,a[h+48>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+52|0]|S[c+53|0]<<8|S[c+54|0]<<16|S[c+55|0]<<24,a[h+52>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,b=S[c+56|0]|S[c+57|0]<<8|S[c+58|0]<<16|S[c+59|0]<<24,a[h+56>>2]=b<<24|(65280&b)<<8|b>>>8&65280|b>>>24,c=S[c+60|0]|S[c+61|0]<<8|S[c+62|0]<<16|S[c+63|0]<<24,a[h+60>>2]=c<<24|(65280&c)<<8|c>>>8&65280|c>>>24,c=a[f+28>>2],a[p+24>>2]=a[f+24>>2],a[p+28>>2]=c,c=a[f+20>>2],a[p+16>>2]=a[f+16>>2],a[p+20>>2]=c,c=a[f+12>>2],a[p+8>>2]=a[f+8>>2],a[p+12>>2]=c,c=a[f+4>>2],a[p>>2]=a[f>>2],a[p+4>>2]=c;L=a[p+28>>2],b=(c=We<<2)+h|0,Q=a[p+16>>2],H=a[b>>2]+(lr(Q,26)^lr(Q,21)^lr(Q,7))|0,re=(L=((B=a[c+35264>>2]+H|0)+(Q&((H=a[p+24>>2])^(Z=a[p+20>>2]))^H)|0)+L|0)+a[p+12>>2]|0,a[p+12>>2]=re,L=(de=L+(lr(j=a[p>>2],30)^lr(j,19)^lr(j,10))|0)+(j&((B=a[p+8>>2])|(v=a[p+4>>2]))|B&v)|0,a[p+28>>2]=L,B=(de=B)+(H=(a[(ke=(B=4|c)+h|0)>>2]+((H+(Z^re&(Q^Z))|0)+(lr(re,26)^lr(re,21)^lr(re,7))|0)|0)+a[B+35264>>2]|0)|0,a[p+8>>2]=B,H=(H+(L&(v|j)|v&j)|0)+(lr(L,30)^lr(L,19)^lr(L,10))|0,a[p+24>>2]=H,Z=(de=v)+(v=(((Z+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>2],a[f+28>>2]=a[f+28>>2]+a[p+28>>2]}function Iu(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut,pt,bt,Ye,it,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0;Ie=p=Ie-288|0,H=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,j=S[h+48|0]|S[h+49|0]<<8|S[h+50|0]<<16|S[h+51|0]<<24,re=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,Z=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,ee=S[h+52|0]|S[h+53|0]<<8|S[h+54|0]<<16|S[h+55|0]<<24,de=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,we=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,ke=S[h+56|0]|S[h+57|0]<<8|S[h+58|0]<<16|S[h+59|0]<<24,gr=S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24,ye=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,Me=S[h+60|0]|S[h+61|0]<<8|S[h+62|0]<<16|S[h+63|0]<<24,Wt=S[h+32|0]|S[h+33|0]<<8|S[h+34|0]<<16|S[h+35|0]<<24,vr=S[h+80|0]|S[h+81|0]<<8|S[h+82|0]<<16|S[h+83|0]<<24,Ve=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,We=S[h+112|0]|S[h+113|0]<<8|S[h+114|0]<<16|S[h+115|0]<<24,dt=S[h+96|0]|S[h+97|0]<<8|S[h+98|0]<<16|S[h+99|0]<<24,nr=S[h+36|0]|S[h+37|0]<<8|S[h+38|0]<<16|S[h+39|0]<<24,Sr=S[h+84|0]|S[h+85|0]<<8|S[h+86|0]<<16|S[h+87|0]<<24,ut=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,pt=S[h+116|0]|S[h+117|0]<<8|S[h+118|0]<<16|S[h+119|0]<<24,B=S[h+100|0]|S[h+101|0]<<8|S[h+102|0]<<16|S[h+103|0]<<24,cr=S[h+40|0]|S[h+41|0]<<8|S[h+42|0]<<16|S[h+43|0]<<24,yr=S[h+88|0]|S[h+89|0]<<8|S[h+90|0]<<16|S[h+91|0]<<24,bt=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,Ye=S[h+120|0]|S[h+121|0]<<8|S[h+122|0]<<16|S[h+123|0]<<24,Q=S[h+104|0]|S[h+105|0]<<8|S[h+106|0]<<16|S[h+107|0]<<24,it=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,b=(v=S[h+44|0]|S[h+45|0]<<8|S[h+46|0]<<16|S[h+47|0]<<24)^(L=S[h+108|0]|S[h+109|0]<<8|S[h+110|0]<<16|S[h+111|0]<<24)&(S[h+124|0]|S[h+125|0]<<8|S[h+126|0]<<16|S[h+127|0]<<24)^(S[h+92|0]|S[h+93|0]<<8|S[h+94|0]<<16|S[h+95|0]<<24)^(S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24),k[f+28|0]=b,k[f+29|0]=b>>>8,k[f+30|0]=b>>>16,k[f+31|0]=b>>>24,yr=cr^Q&Ye^yr^bt,k[f+24|0]=yr,k[f+25|0]=yr>>>8,k[f+26|0]=yr>>>16,k[f+27|0]=yr>>>24,Sr=nr^B&pt^Sr^ut,k[f+20|0]=Sr,k[f+21|0]=Sr>>>8,k[f+22|0]=Sr>>>16,k[f+23|0]=Sr>>>24,vr=Wt^dt&We^vr^Ve,k[f+16|0]=vr,k[f+17|0]=vr>>>8,k[f+18|0]=vr>>>16,k[f+19|0]=vr>>>24,gr=Me&v^gr^ye^L,k[f+12|0]=gr,k[f+13|0]=gr>>>8,k[f+14|0]=gr>>>16,k[f+15|0]=gr>>>24,cr=cr&ke^de^we^Q,k[f+8|0]=cr,k[f+9|0]=cr>>>8,k[f+10|0]=cr>>>16,k[f+11|0]=cr>>>24,nr=nr&ee^re^Z^B,k[f+4|0]=nr,k[f+5|0]=nr>>>8,k[f+6|0]=nr>>>16,k[f+7|0]=nr>>>24,Wt=dt^Wt&j^H^it,k[0|f]=Wt,k[f+1|0]=Wt>>>8,k[f+2|0]=Wt>>>16,k[f+3|0]=Wt>>>24,f=a[h+124>>2],a[p+280>>2]=a[h+120>>2],a[p+284>>2]=f,f=a[h+116>>2],a[p+272>>2]=a[h+112>>2],a[p+276>>2]=f,f=a[h+108>>2],a[p+248>>2]=a[h+104>>2],a[p+252>>2]=f,f=a[h+100>>2],a[p+240>>2]=a[h+96>>2],a[p+244>>2]=f,f=a[h+124>>2],a[p+232>>2]=a[h+120>>2],a[p+236>>2]=f,f=a[h+116>>2],a[p+224>>2]=a[h+112>>2],a[p+228>>2]=f,un(c=p+256|0,p+240|0,p+224|0),f=a[p+268>>2],a[h+120>>2]=a[p+264>>2],a[h+124>>2]=f,f=a[p+260>>2],a[h+112>>2]=a[p+256>>2],a[h+116>>2]=f,f=a[h+92>>2],a[p+216>>2]=a[h+88>>2],a[p+220>>2]=f,f=a[h+84>>2],a[p+208>>2]=a[h+80>>2],a[p+212>>2]=f,f=a[h+108>>2],a[p+200>>2]=a[h+104>>2],a[p+204>>2]=f,f=a[h+100>>2],a[p+192>>2]=a[h+96>>2],a[p+196>>2]=f,un(c,p+208|0,p+192|0),f=a[p+268>>2],a[h+104>>2]=a[p+264>>2],a[h+108>>2]=f,f=a[p+260>>2],a[h+96>>2]=a[p+256>>2],a[h+100>>2]=f,f=a[h+76>>2],a[p+184>>2]=a[h+72>>2],a[p+188>>2]=f,dt=a[4+(f=h- -64|0)>>2],a[p+176>>2]=a[f>>2],a[p+180>>2]=dt,dt=a[h+92>>2],a[p+168>>2]=a[h+88>>2],a[p+172>>2]=dt,dt=a[h+84>>2],a[p+160>>2]=a[h+80>>2],a[p+164>>2]=dt,un(c,p+176|0,p+160|0),dt=a[p+268>>2],a[h+88>>2]=a[p+264>>2],a[h+92>>2]=dt,dt=a[p+260>>2],a[h+80>>2]=a[p+256>>2],a[h+84>>2]=dt,dt=a[h+60>>2],a[p+152>>2]=a[h+56>>2],a[p+156>>2]=dt,dt=a[h+52>>2],a[p+144>>2]=a[h+48>>2],a[p+148>>2]=dt,dt=a[h+76>>2],a[p+136>>2]=a[h+72>>2],a[p+140>>2]=dt,dt=a[f+4>>2],a[p+128>>2]=a[f>>2],a[p+132>>2]=dt,un(c,p+144|0,p+128|0),dt=a[p+268>>2],a[h+72>>2]=a[p+264>>2],a[h+76>>2]=dt,dt=a[p+260>>2],a[f>>2]=a[p+256>>2],a[f+4>>2]=dt,dt=a[h+44>>2],a[p+120>>2]=a[h+40>>2],a[p+124>>2]=dt,dt=a[h+36>>2],a[p+112>>2]=a[h+32>>2],a[p+116>>2]=dt,dt=a[h+60>>2],a[p+104>>2]=a[h+56>>2],a[p+108>>2]=dt,dt=a[h+52>>2],a[p+96>>2]=a[h+48>>2],a[p+100>>2]=dt,un(c,p+112|0,p+96|0),dt=a[p+268>>2],a[h+56>>2]=a[p+264>>2],a[h+60>>2]=dt,dt=a[p+260>>2],a[h+48>>2]=a[p+256>>2],a[h+52>>2]=dt,dt=a[h+28>>2],a[p+88>>2]=a[h+24>>2],a[p+92>>2]=dt,dt=a[h+20>>2],a[p+80>>2]=a[h+16>>2],a[p+84>>2]=dt,dt=a[h+44>>2],a[p+72>>2]=a[h+40>>2],a[p+76>>2]=dt,dt=a[h+36>>2],a[p+64>>2]=a[h+32>>2],a[p+68>>2]=dt,un(c,p+80|0,p- -64|0),dt=a[p+268>>2],a[h+40>>2]=a[p+264>>2],a[h+44>>2]=dt,dt=a[p+260>>2],a[h+32>>2]=a[p+256>>2],a[h+36>>2]=dt,dt=a[h+12>>2],a[p+56>>2]=a[h+8>>2],a[p+60>>2]=dt,dt=a[h+4>>2],a[p+48>>2]=a[h>>2],a[p+52>>2]=dt,dt=a[h+28>>2],a[p+40>>2]=a[h+24>>2],a[p+44>>2]=dt,dt=a[h+20>>2],a[p+32>>2]=a[h+16>>2],a[p+36>>2]=dt,un(c,p+48|0,p+32|0),dt=a[p+268>>2],a[h+24>>2]=a[p+264>>2],a[h+28>>2]=dt,dt=a[p+260>>2],a[h+16>>2]=a[p+256>>2],a[h+20>>2]=dt,dt=a[p+284>>2],a[p+24>>2]=a[p+280>>2],a[p+28>>2]=dt,dt=a[p+276>>2],a[p+16>>2]=a[p+272>>2],a[p+20>>2]=dt,dt=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=dt,dt=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=dt,un(c,p+16|0,p),c=a[p+268>>2],a[h+8>>2]=a[p+264>>2],a[h+12>>2]=c,c=a[p+260>>2],a[h>>2]=a[p+256>>2],a[h+4>>2]=c,a[h+12>>2]=gr^(S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24),a[h+8>>2]=cr^(S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24),a[h+4>>2]=nr^(S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24),a[h>>2]=Wt^(S[0|h]|S[h+1|0]<<8|S[h+2|0]<<16|S[h+3|0]<<24),a[f>>2]=vr^(S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24),a[h+68>>2]=Sr^(S[h+68|0]|S[h+69|0]<<8|S[h+70|0]<<16|S[h+71|0]<<24),a[h+72>>2]=yr^(S[h+72|0]|S[h+73|0]<<8|S[h+74|0]<<16|S[h+75|0]<<24),a[h+76>>2]=b^(S[h+76|0]|S[h+77|0]<<8|S[h+78|0]<<16|S[h+79|0]<<24),Ie=p+288|0}function Cu(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut,pt,bt,Ye,it,dt,Wt,nr,cr,gr,vr,Sr,yr=0;Ie=p=Ie-288|0,Ve=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,We=S[h+48|0]|S[h+49|0]<<8|S[h+50|0]<<16|S[h+51|0]<<24,b=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,ut=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,pt=S[h+52|0]|S[h+53|0]<<8|S[h+54|0]<<16|S[h+55|0]<<24,B=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,bt=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,Ye=S[h+56|0]|S[h+57|0]<<8|S[h+58|0]<<16|S[h+59|0]<<24,Q=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,it=S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24,dt=S[h+60|0]|S[h+61|0]<<8|S[h+62|0]<<16|S[h+63|0]<<24,yr=S[h+32|0]|S[h+33|0]<<8|S[h+34|0]<<16|S[h+35|0]<<24,v=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,Wt=S[h+80|0]|S[h+81|0]<<8|S[h+82|0]<<16|S[h+83|0]<<24,nr=S[h+112|0]|S[h+113|0]<<8|S[h+114|0]<<16|S[h+115|0]<<24,L=S[h+96|0]|S[h+97|0]<<8|S[h+98|0]<<16|S[h+99|0]<<24,H=S[h+36|0]|S[h+37|0]<<8|S[h+38|0]<<16|S[h+39|0]<<24,j=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,cr=S[h+84|0]|S[h+85|0]<<8|S[h+86|0]<<16|S[h+87|0]<<24,gr=S[h+116|0]|S[h+117|0]<<8|S[h+118|0]<<16|S[h+119|0]<<24,re=S[h+100|0]|S[h+101|0]<<8|S[h+102|0]<<16|S[h+103|0]<<24,Z=S[h+40|0]|S[h+41|0]<<8|S[h+42|0]<<16|S[h+43|0]<<24,ee=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,vr=S[h+88|0]|S[h+89|0]<<8|S[h+90|0]<<16|S[h+91|0]<<24,Sr=S[h+120|0]|S[h+121|0]<<8|S[h+122|0]<<16|S[h+123|0]<<24,de=S[h+104|0]|S[h+105|0]<<8|S[h+106|0]<<16|S[h+107|0]<<24,we=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=(ke=S[h+44|0]|S[h+45|0]<<8|S[h+46|0]<<16|S[h+47|0]<<24)^(ye=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24)^(Me=S[h+108|0]|S[h+109|0]<<8|S[h+110|0]<<16|S[h+111|0]<<24)&(S[h+124|0]|S[h+125|0]<<8|S[h+126|0]<<16|S[h+127|0]<<24)^(S[h+92|0]|S[h+93|0]<<8|S[h+94|0]<<16|S[h+95|0]<<24),k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=de&Sr^vr^ee^Z,k[f+24|0]=c,k[f+25|0]=c>>>8,k[f+26|0]=c>>>16,k[f+27|0]=c>>>24,c=re&gr^cr^j^H,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=yr^L&nr^Wt^v,k[f+16|0]=c,k[f+17|0]=c>>>8,k[f+18|0]=c>>>16,k[f+19|0]=c>>>24,c=dt&ke^it^Q^Me,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=Z&Ye^bt^B^de,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=H&pt^ut^b^re,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=yr&We^Ve^we^L,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,f=a[h+124>>2],a[p+280>>2]=a[h+120>>2],a[p+284>>2]=f,f=a[h+116>>2],a[p+272>>2]=a[h+112>>2],a[p+276>>2]=f,f=a[h+108>>2],a[p+248>>2]=a[h+104>>2],a[p+252>>2]=f,f=a[h+100>>2],a[p+240>>2]=a[h+96>>2],a[p+244>>2]=f,f=a[h+124>>2],a[p+232>>2]=a[h+120>>2],a[p+236>>2]=f,f=a[h+116>>2],a[p+224>>2]=a[h+112>>2],a[p+228>>2]=f,un(c=p+256|0,p+240|0,p+224|0),f=a[p+268>>2],a[h+120>>2]=a[p+264>>2],a[h+124>>2]=f,f=a[p+260>>2],a[h+112>>2]=a[p+256>>2],a[h+116>>2]=f,f=a[h+92>>2],a[p+216>>2]=a[h+88>>2],a[p+220>>2]=f,f=a[h+84>>2],a[p+208>>2]=a[h+80>>2],a[p+212>>2]=f,f=a[h+108>>2],a[p+200>>2]=a[h+104>>2],a[p+204>>2]=f,f=a[h+100>>2],a[p+192>>2]=a[h+96>>2],a[p+196>>2]=f,un(c,p+208|0,p+192|0),f=a[p+268>>2],a[h+104>>2]=a[p+264>>2],a[h+108>>2]=f,f=a[p+260>>2],a[h+96>>2]=a[p+256>>2],a[h+100>>2]=f,f=a[h+76>>2],a[p+184>>2]=a[h+72>>2],a[p+188>>2]=f,yr=a[4+(f=h- -64|0)>>2],a[p+176>>2]=a[f>>2],a[p+180>>2]=yr,yr=a[h+92>>2],a[p+168>>2]=a[h+88>>2],a[p+172>>2]=yr,yr=a[h+84>>2],a[p+160>>2]=a[h+80>>2],a[p+164>>2]=yr,un(c,p+176|0,p+160|0),yr=a[p+268>>2],a[h+88>>2]=a[p+264>>2],a[h+92>>2]=yr,yr=a[p+260>>2],a[h+80>>2]=a[p+256>>2],a[h+84>>2]=yr,yr=a[h+60>>2],a[p+152>>2]=a[h+56>>2],a[p+156>>2]=yr,yr=a[h+52>>2],a[p+144>>2]=a[h+48>>2],a[p+148>>2]=yr,yr=a[h+76>>2],a[p+136>>2]=a[h+72>>2],a[p+140>>2]=yr,yr=a[f+4>>2],a[p+128>>2]=a[f>>2],a[p+132>>2]=yr,un(c,p+144|0,p+128|0),yr=a[p+268>>2],a[h+72>>2]=a[p+264>>2],a[h+76>>2]=yr,yr=a[p+260>>2],a[f>>2]=a[p+256>>2],a[f+4>>2]=yr,yr=a[h+44>>2],a[p+120>>2]=a[h+40>>2],a[p+124>>2]=yr,yr=a[h+36>>2],a[p+112>>2]=a[h+32>>2],a[p+116>>2]=yr,yr=a[h+60>>2],a[p+104>>2]=a[h+56>>2],a[p+108>>2]=yr,yr=a[h+52>>2],a[p+96>>2]=a[h+48>>2],a[p+100>>2]=yr,un(c,p+112|0,p+96|0),yr=a[p+268>>2],a[h+56>>2]=a[p+264>>2],a[h+60>>2]=yr,yr=a[p+260>>2],a[h+48>>2]=a[p+256>>2],a[h+52>>2]=yr,yr=a[h+28>>2],a[p+88>>2]=a[h+24>>2],a[p+92>>2]=yr,yr=a[h+20>>2],a[p+80>>2]=a[h+16>>2],a[p+84>>2]=yr,yr=a[h+44>>2],a[p+72>>2]=a[h+40>>2],a[p+76>>2]=yr,yr=a[h+36>>2],a[p+64>>2]=a[h+32>>2],a[p+68>>2]=yr,un(c,p+80|0,p- -64|0),yr=a[p+268>>2],a[h+40>>2]=a[p+264>>2],a[h+44>>2]=yr,yr=a[p+260>>2],a[h+32>>2]=a[p+256>>2],a[h+36>>2]=yr,yr=a[h+12>>2],a[p+56>>2]=a[h+8>>2],a[p+60>>2]=yr,yr=a[h+4>>2],a[p+48>>2]=a[h>>2],a[p+52>>2]=yr,yr=a[h+28>>2],a[p+40>>2]=a[h+24>>2],a[p+44>>2]=yr,yr=a[h+20>>2],a[p+32>>2]=a[h+16>>2],a[p+36>>2]=yr,un(c,p+48|0,p+32|0),yr=a[p+268>>2],a[h+24>>2]=a[p+264>>2],a[h+28>>2]=yr,yr=a[p+260>>2],a[h+16>>2]=a[p+256>>2],a[h+20>>2]=yr,yr=a[p+284>>2],a[p+24>>2]=a[p+280>>2],a[p+28>>2]=yr,yr=a[p+276>>2],a[p+16>>2]=a[p+272>>2],a[p+20>>2]=yr,yr=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=yr,yr=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=yr,un(c,p+16|0,p),c=a[p+268>>2],a[h+8>>2]=a[p+264>>2],a[h+12>>2]=c,c=a[p+260>>2],a[h>>2]=a[p+256>>2],a[h+4>>2]=c,a[h+12>>2]=(S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24)^Q,a[h+8>>2]=(S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24)^B,a[h+4>>2]=(S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24)^b,a[h>>2]=(S[0|h]|S[h+1|0]<<8|S[h+2|0]<<16|S[h+3|0]<<24)^we,a[f>>2]=(S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24)^v,a[h+68>>2]=(S[h+68|0]|S[h+69|0]<<8|S[h+70|0]<<16|S[h+71|0]<<24)^j,a[h+72>>2]=(S[h+72|0]|S[h+73|0]<<8|S[h+74|0]<<16|S[h+75|0]<<24)^ee,a[h+76>>2]=ye^(S[h+76|0]|S[h+77|0]<<8|S[h+78|0]<<16|S[h+79|0]<<24),Ie=p+288|0}function wu(f,c,h,p,b){var B,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0;for(Ie=B=Ie-224|0,we=(S[b+60|0]|S[b+61|0]<<8|S[b+62|0]<<16|S[b+63|0]<<24)^p>>>29,ke=(S[b+56|0]|S[b+57|0]<<8|S[b+58|0]<<16|S[b+59|0]<<24)^p<<3,re=(S[b+52|0]|S[b+53|0]<<8|S[b+54|0]<<16|S[b+55|0]<<24)^h>>>29,ee=(S[0|(Q=b+48|0)]|S[Q+1|0]<<8|S[Q+2|0]<<16|S[Q+3|0]<<24)^h<<3,v=b+16|0,L=b+32|0,H=b- -64|0,j=b+80|0;h=a[j+12>>2],a[B+216>>2]=a[j+8>>2],a[B+220>>2]=h,h=a[j+4>>2],a[B+208>>2]=a[j>>2],a[B+212>>2]=h,h=a[H+12>>2],a[B+184>>2]=a[H+8>>2],a[B+188>>2]=h,h=a[H+4>>2],a[B+176>>2]=a[H>>2],a[B+180>>2]=h,h=a[j+12>>2],a[B+168>>2]=a[j+8>>2],a[B+172>>2]=h,h=a[j+4>>2],a[B+160>>2]=a[j>>2],a[B+164>>2]=h,un(p=B+192|0,B+176|0,B+160|0),h=a[B+204>>2],a[j+8>>2]=a[B+200>>2],a[j+12>>2]=h,h=a[B+196>>2],a[j>>2]=a[B+192>>2],a[j+4>>2]=h,h=a[Q+12>>2],a[B+152>>2]=a[Q+8>>2],a[B+156>>2]=h,h=a[Q+4>>2],a[B+144>>2]=a[Q>>2],a[B+148>>2]=h,h=a[H+12>>2],a[B+136>>2]=a[H+8>>2],a[B+140>>2]=h,h=a[H+4>>2],a[B+128>>2]=a[H>>2],a[B+132>>2]=h,un(p,B+144|0,B+128|0),h=a[B+204>>2],a[H+8>>2]=a[B+200>>2],a[H+12>>2]=h,h=a[B+196>>2],a[H>>2]=a[B+192>>2],a[H+4>>2]=h,h=a[L+12>>2],a[B+120>>2]=a[L+8>>2],a[B+124>>2]=h,h=a[L+4>>2],a[B+112>>2]=a[L>>2],a[B+116>>2]=h,h=a[Q+12>>2],a[B+104>>2]=a[Q+8>>2],a[B+108>>2]=h,h=a[Q+4>>2],a[B+96>>2]=a[Q>>2],a[B+100>>2]=h,un(p,B+112|0,B+96|0),h=a[B+204>>2],a[Q+8>>2]=a[B+200>>2],a[Q+12>>2]=h,h=a[B+196>>2],a[Q>>2]=a[B+192>>2],a[Q+4>>2]=h,h=a[v+12>>2],a[B+88>>2]=a[v+8>>2],a[B+92>>2]=h,h=a[v+4>>2],a[B+80>>2]=a[v>>2],a[B+84>>2]=h,h=a[L+12>>2],a[B+72>>2]=a[L+8>>2],a[B+76>>2]=h,h=a[L+4>>2],a[B+64>>2]=a[L>>2],a[B+68>>2]=h,un(p,B+80|0,B- -64|0),h=a[B+204>>2],a[L+8>>2]=a[B+200>>2],a[L+12>>2]=h,h=a[B+196>>2],a[L>>2]=a[B+192>>2],a[L+4>>2]=h,h=a[b+12>>2],a[B+56>>2]=a[b+8>>2],a[B+60>>2]=h,h=a[b+4>>2],a[B+48>>2]=a[b>>2],a[B+52>>2]=h,h=a[v+12>>2],a[B+40>>2]=a[v+8>>2],a[B+44>>2]=h,h=a[v+4>>2],a[B+32>>2]=a[v>>2],a[B+36>>2]=h,un(p,B+48|0,B+32|0),h=a[B+204>>2],a[v+8>>2]=a[B+200>>2],a[v+12>>2]=h,h=a[B+196>>2],a[v>>2]=a[B+192>>2],a[v+4>>2]=h,h=a[B+220>>2],a[B+24>>2]=a[B+216>>2],a[B+28>>2]=h,h=a[B+212>>2],a[B+16>>2]=a[B+208>>2],a[B+20>>2]=h,h=a[b+12>>2],a[B+8>>2]=a[b+8>>2],a[B+12>>2]=h,h=a[b+4>>2],a[B>>2]=a[b>>2],a[B+4>>2]=h,un(p,B+16|0,B),de=a[B+192>>2],p=a[B+196>>2],h=a[B+200>>2],ye=we^a[B+204>>2],a[b+12>>2]=ye,Me=h^ke,a[b+8>>2]=Me,Ve=p^re,a[b+4>>2]=Ve,We=ee^de,a[b>>2]=We,(0|(Z=Z+1|0))!=7;);e:{t:{r:{if(h=c-16|0){if((0|h)==16)break r;break t}ut=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,Q=S[b+48|0]|S[b+49|0]<<8|S[b+50|0]<<16|S[b+51|0]<<24,v=S[b+32|0]|S[b+33|0]<<8|S[b+34|0]<<16|S[b+35|0]<<24,L=S[b+80|0]|S[b+81|0]<<8|S[b+82|0]<<16|S[b+83|0]<<24,H=S[0|(c=b- -64|0)]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,j=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,we=S[b+52|0]|S[b+53|0]<<8|S[b+54|0]<<16|S[b+55|0]<<24,ke=S[b+36|0]|S[b+37|0]<<8|S[b+38|0]<<16|S[b+39|0]<<24,re=S[b+84|0]|S[b+85|0]<<8|S[b+86|0]<<16|S[b+87|0]<<24,ee=S[b+68|0]|S[b+69|0]<<8|S[b+70|0]<<16|S[b+71|0]<<24,de=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,Z=S[b+56|0]|S[b+57|0]<<8|S[b+58|0]<<16|S[b+59|0]<<24,p=S[b+40|0]|S[b+41|0]<<8|S[b+42|0]<<16|S[b+43|0]<<24,h=S[b+88|0]|S[b+89|0]<<8|S[b+90|0]<<16|S[b+91|0]<<24,c=S[b+72|0]|S[b+73|0]<<8|S[b+74|0]<<16|S[b+75|0]<<24,b=ye^(S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24)^(S[b+60|0]|S[b+61|0]<<8|S[b+62|0]<<16|S[b+63|0]<<24)^(S[b+44|0]|S[b+45|0]<<8|S[b+46|0]<<16|S[b+47|0]<<24)^(S[b+92|0]|S[b+93|0]<<8|S[b+94|0]<<16|S[b+95|0]<<24)^(S[b+76|0]|S[b+77|0]<<8|S[b+78|0]<<16|S[b+79|0]<<24),k[f+12|0]=b,k[f+13|0]=b>>>8,k[f+14|0]=b>>>16,k[f+15|0]=b>>>24,c=Me^de^c^h^p^Z,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=Ve^j^we^ke^re^ee,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=We^ut^Q^v^L^H,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24;break e}ee=S[b+32|0]|S[b+33|0]<<8|S[b+34|0]<<16|S[b+35|0]<<24,de=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,Z=S[b+36|0]|S[b+37|0]<<8|S[b+38|0]<<16|S[b+39|0]<<24,p=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,h=S[b+40|0]|S[b+41|0]<<8|S[b+42|0]<<16|S[b+43|0]<<24,c=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,re=ye^(S[b+44|0]|S[b+45|0]<<8|S[b+46|0]<<16|S[b+47|0]<<24)^(S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24),k[f+12|0]=re,k[f+13|0]=re>>>8,k[f+14|0]=re>>>16,k[f+15|0]=re>>>24,c=Me^c^h,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=Ve^p^Z,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=We^ee^de,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,we=S[b+48|0]|S[b+49|0]<<8|S[b+50|0]<<16|S[b+51|0]<<24,ke=S[b+80|0]|S[b+81|0]<<8|S[b+82|0]<<16|S[b+83|0]<<24,re=S[0|(c=b- -64|0)]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,ee=S[b+52|0]|S[b+53|0]<<8|S[b+54|0]<<16|S[b+55|0]<<24,de=S[b+84|0]|S[b+85|0]<<8|S[b+86|0]<<16|S[b+87|0]<<24,Z=S[b+68|0]|S[b+69|0]<<8|S[b+70|0]<<16|S[b+71|0]<<24,p=S[b+56|0]|S[b+57|0]<<8|S[b+58|0]<<16|S[b+59|0]<<24,h=S[b+88|0]|S[b+89|0]<<8|S[b+90|0]<<16|S[b+91|0]<<24,c=S[b+72|0]|S[b+73|0]<<8|S[b+74|0]<<16|S[b+75|0]<<24,b=(S[b+60|0]|S[b+61|0]<<8|S[b+62|0]<<16|S[b+63|0]<<24)^(S[b+92|0]|S[b+93|0]<<8|S[b+94|0]<<16|S[b+95|0]<<24)^(S[b+76|0]|S[b+77|0]<<8|S[b+78|0]<<16|S[b+79|0]<<24),k[f+28|0]=b,k[f+29|0]=b>>>8,k[f+30|0]=b>>>16,k[f+31|0]=b>>>24,c=p^c^h,k[f+24|0]=c,k[f+25|0]=c>>>8,k[f+26|0]=c>>>16,k[f+27|0]=c>>>24,c=ee^de^Z,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=we^re^ke,k[f+16|0]=c,k[f+17|0]=c>>>8,k[f+18|0]=c>>>16,k[f+19|0]=c>>>24;break e}yo(f,0,c)}Ie=B+224|0}function l0(f,c,h){var p,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0;for(Ie=p=Ie-4032|0,mc(p+160|0,h),v=a[h+36>>2],a[(Q=p+3840|0)>>2]=a[h+32>>2],a[Q+4>>2]=v,L=a[h+28>>2],a[(v=p+3832|0)>>2]=a[h+24>>2],a[v+4>>2]=L,j=a[h+20>>2],a[(L=p+3824|0)>>2]=a[h+16>>2],a[L+4>>2]=j,re=a[h+12>>2],a[(j=p+3816|0)>>2]=a[h+8>>2],a[j+4>>2]=re,re=a[h+4>>2],a[p+3808>>2]=a[h>>2],a[p+3812>>2]=re,de=a[h+52>>2],a[(re=p+3856|0)>>2]=a[h+48>>2],a[re+4>>2]=de,ye=a[h+60>>2],a[(de=p+3864|0)>>2]=a[h+56>>2],a[de+4>>2]=ye,Z=a[4+(we=h- -64|0)>>2],a[(ye=p+3872|0)>>2]=a[we>>2],a[ye+4>>2]=Z,Z=a[h+76>>2],a[(we=p+3880|0)>>2]=a[h+72>>2],a[we+4>>2]=Z,Z=a[h+44>>2],a[p+3848>>2]=a[h+40>>2],a[p+3852>>2]=Z,Me=a[h+92>>2],a[(Z=p+3896|0)>>2]=a[h+88>>2],a[Z+4>>2]=Me,Ve=a[h+100>>2],a[(Me=p+3904|0)>>2]=a[h+96>>2],a[Me+4>>2]=Ve,We=a[h+108>>2],a[(Ve=p+3912|0)>>2]=a[h+104>>2],a[Ve+4>>2]=We,ut=a[h+116>>2],a[(We=p+3920|0)>>2]=a[h+112>>2],a[We+4>>2]=ut,ut=a[h+84>>2],a[p+3888>>2]=a[h+80>>2],a[p+3892>>2]=ut,Rd(b=p+3528|0,ut=p+3808|0),Ar(B=p+2408|0,b,H=p+3648|0),Ar(p+2448|0,ee=p+3568|0,ke=p+3608|0),Ar(p+2488|0,ke,H),Ar(p+2528|0,b,ee),mc(H=p+320|0,B),Gu(b=p+3368|0,h,H),Ar(B=p+2248|0,b,H=p+3488|0),Ar(p+2288|0,ee=p+3408|0,ke=p+3448|0),Ar(p+2328|0,ke,H),Ar(p+2368|0,b,ee),mc(p+480|0,B),B=a[4+(b=p+2440|0)>>2],a[Q>>2]=a[b>>2],a[Q+4>>2]=B,B=a[4+(b=p+2432|0)>>2],a[v>>2]=a[b>>2],a[v+4>>2]=B,B=a[4+(b=p+2424|0)>>2],a[L>>2]=a[b>>2],a[L+4>>2]=B,B=a[4+(b=p+2416|0)>>2],a[j>>2]=a[b>>2],a[j+4>>2]=B,B=a[4+(b=p+2456|0)>>2],a[re>>2]=a[b>>2],a[re+4>>2]=B,B=a[4+(b=p+2464|0)>>2],a[de>>2]=a[b>>2],a[de+4>>2]=B,B=a[4+(b=p+2472|0)>>2],a[ye>>2]=a[b>>2],a[ye+4>>2]=B,B=a[4+(b=p+2480|0)>>2],a[we>>2]=a[b>>2],a[we+4>>2]=B,b=a[p+2412>>2],a[p+3808>>2]=a[p+2408>>2],a[p+3812>>2]=b,b=a[p+2452>>2],a[p+3848>>2]=a[p+2448>>2],a[p+3852>>2]=b,B=a[4+(b=p+2520|0)>>2],a[We>>2]=a[b>>2],a[We+4>>2]=B,B=a[4+(b=p+2512|0)>>2],a[Ve>>2]=a[b>>2],a[Ve+4>>2]=B,B=a[4+(b=p+2504|0)>>2],a[Me>>2]=a[b>>2],a[Me+4>>2]=B,B=a[4+(b=p+2496|0)>>2],a[Z>>2]=a[b>>2],a[Z+4>>2]=B,b=a[p+2492>>2],a[p+3888>>2]=a[p+2488>>2],a[p+3892>>2]=b,Rd(b=p+3208|0,ut),Ar(B=p+2088|0,b,H=p+3328|0),Ar(p+2128|0,ee=p+3248|0,ke=p+3288|0),Ar(p+2168|0,ke,H),Ar(p+2208|0,b,ee),mc(H=p+640|0,B),Gu(b=p+3048|0,h,H),Ar(B=p+1928|0,b,H=p+3168|0),Ar(p+1968|0,ee=p+3088|0,ke=p+3128|0),Ar(p+2008|0,ke,H),Ar(p+2048|0,b,ee),mc(p+800|0,B),B=a[4+(b=p+2280|0)>>2],a[Q>>2]=a[b>>2],a[Q+4>>2]=B,B=a[4+(b=p+2272|0)>>2],a[v>>2]=a[b>>2],a[v+4>>2]=B,B=a[4+(b=p+2264|0)>>2],a[L>>2]=a[b>>2],a[L+4>>2]=B,B=a[4+(b=p+2256|0)>>2],a[j>>2]=a[b>>2],a[j+4>>2]=B,B=a[4+(b=p+2296|0)>>2],a[re>>2]=a[b>>2],a[re+4>>2]=B,B=a[4+(b=p+2304|0)>>2],a[de>>2]=a[b>>2],a[de+4>>2]=B,B=a[4+(b=p+2312|0)>>2],a[ye>>2]=a[b>>2],a[ye+4>>2]=B,B=a[4+(b=p+2320|0)>>2],a[we>>2]=a[b>>2],a[we+4>>2]=B,b=a[p+2252>>2],a[p+3808>>2]=a[p+2248>>2],a[p+3812>>2]=b,b=a[p+2292>>2],a[p+3848>>2]=a[p+2288>>2],a[p+3852>>2]=b,B=a[4+(b=p+2360|0)>>2],a[We>>2]=a[b>>2],a[We+4>>2]=B,B=a[4+(b=p+2352|0)>>2],a[Ve>>2]=a[b>>2],a[Ve+4>>2]=B,B=a[4+(b=p+2344|0)>>2],a[Me>>2]=a[b>>2],a[Me+4>>2]=B,B=a[4+(b=p+2336|0)>>2],a[Z>>2]=a[b>>2],a[Z+4>>2]=B,b=a[p+2332>>2],a[p+3888>>2]=a[p+2328>>2],a[p+3892>>2]=b,Rd(b=p+2888|0,ut),Ar(B=p+1768|0,b,H=p+3008|0),Ar(p+1808|0,ee=p+2928|0,ke=p+2968|0),Ar(p+1848|0,ke,H),Ar(p+1888|0,b,ee),mc(H=p+960|0,B),Gu(b=p+2728|0,h,H),Ar(h=p+1608|0,b,B=p+2848|0),Ar(p+1648|0,H=p+2768|0,ee=p+2808|0),Ar(p+1688|0,ee,B),Ar(p+1728|0,b,H),mc(p+1120|0,h),b=a[4+(h=p+2120|0)>>2],a[Q>>2]=a[h>>2],a[Q+4>>2]=b,Q=a[4+(h=p+2112|0)>>2],a[v>>2]=a[h>>2],a[v+4>>2]=Q,Q=a[4+(h=p+2104|0)>>2],a[L>>2]=a[h>>2],a[L+4>>2]=Q,Q=a[4+(h=p+2096|0)>>2],a[j>>2]=a[h>>2],a[j+4>>2]=Q,Q=a[4+(h=p+2136|0)>>2],a[re>>2]=a[h>>2],a[re+4>>2]=Q,Q=a[4+(h=p+2144|0)>>2],a[de>>2]=a[h>>2],a[de+4>>2]=Q,Q=a[4+(h=p+2152|0)>>2],a[ye>>2]=a[h>>2],a[ye+4>>2]=Q,Q=a[4+(h=p+2160|0)>>2],a[we>>2]=a[h>>2],a[we+4>>2]=Q,h=a[p+2092>>2],a[p+3808>>2]=a[p+2088>>2],a[p+3812>>2]=h,h=a[p+2132>>2],a[p+3848>>2]=a[p+2128>>2],a[p+3852>>2]=h,Q=a[4+(h=p+2200|0)>>2],a[We>>2]=a[h>>2],a[We+4>>2]=Q,Q=a[4+(h=p+2192|0)>>2],a[Ve>>2]=a[h>>2],a[Ve+4>>2]=Q,Q=a[4+(h=p+2184|0)>>2],a[Me>>2]=a[h>>2],a[Me+4>>2]=Q,Q=a[4+(h=p+2176|0)>>2],a[Z>>2]=a[h>>2],a[Z+4>>2]=Q,h=a[p+2172>>2],a[p+3888>>2]=a[p+2168>>2],a[p+3892>>2]=h,Rd(h=p+2568|0,ut),Ar(Q=p+1448|0,h,v=p+2688|0),Ar(p+1488|0,L=p+2608|0,j=p+2648|0),Ar(p+1528|0,j,v),Ar(p+1568|0,h,L),mc(p+1280|0,Q),Q=0,h=0;L=(v=p+3968|0)+(h<<1)|0,j=S[c+h|0],k[L+1|0]=j>>>4,k[0|L]=15&j,v=v+((L=1|h)<<1)|0,L=S[c+L|0],k[v+1|0]=L>>>4,k[0|v]=15&L,(0|(h=h+2|0))!=32;);for(c=0;h=8+(v=(h=c)+S[0|(c=(p+3968|0)+Q|0)]|0)|0,k[0|c]=v-(240&h),h=8+(v=S[c+1|0]+(h<<24>>24>>4)|0)|0,k[c+1|0]=v-(240&h),h=8+(v=S[c+2|0]+(h<<24>>24>>4)|0)|0,k[c+2|0]=v-(240&h),c=h<<24>>24>>4,(0|(Q=Q+3|0))!=63;);for(k[p+4031|0]=S[p+4031|0]+c,a[f+32>>2]=0,a[f+36>>2]=0,a[f+24>>2]=0,a[f+28>>2]=0,a[f+16>>2]=0,a[f+20>>2]=0,a[f+8>>2]=0,a[f+12>>2]=0,a[f>>2]=0,a[f+4>>2]=0,a[f+44>>2]=0,a[f+48>>2]=0,a[f+40>>2]=1,a[f+52>>2]=0,a[f+56>>2]=0,a[f+60>>2]=0,a[f+64>>2]=0,a[f+68>>2]=0,a[f+72>>2]=0,a[f+76>>2]=0,a[f+80>>2]=1,yo(f+84|0,0,76),ye=f+120|0,we=f+80|0,Z=f+40|0,j=p+3768|0,h=p+3888|0,v=p+3848|0,re=p+3728|0,Q=p+3928|0,de=63;lH(p,Me=p+160|0,k[(p+3968|0)+de|0]),Gu(c=p+3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,de=S[p+116|0]|S[p+117|0]<<8|S[p+118|0]<<16|S[p+119|0]<<24,nr=S[p+100|0]|S[p+101|0]<<8|S[p+102|0]<<16|S[p+103|0]<<24,cr=S[p+44|0]|S[p+45|0]<<8|S[p+46|0]<<16|S[p+47|0]<<24,we=S[p+92|0]|S[p+93|0]<<8|S[p+94|0]<<16|S[p+95|0]<<24,ke=S[p+124|0]|S[p+125|0]<<8|S[p+126|0]<<16|S[p+127|0]<<24,gr=S[p+108|0]|S[p+109|0]<<8|S[p+110|0]<<16|S[p+111|0]<<24,vr=S[p+32|0]|S[p+33|0]<<8|S[p+34|0]<<16|S[p+35|0]<<24,ye=S[p+80|0]|S[p+81|0]<<8|S[p+82|0]<<16|S[p+83|0]<<24,Me=S[p+112|0]|S[p+113|0]<<8|S[p+114|0]<<16|S[p+115|0]<<24,Sr=S[p+96|0]|S[p+97|0]<<8|S[p+98|0]<<16|S[p+99|0]<<24,Ve=a[b+272>>2],We=a[b+256>>2],ut=a[b+260>>2],pt=a[b+264>>2],bt=a[b+268>>2],Ye=a[b+276>>2],it=a[b+284>>2],B=S[p+40|0]|S[p+41|0]<<8|S[p+42|0]<<16|S[p+43|0]<<24,Q=S[p+104|0]|S[p+105|0]<<8|S[p+106|0]<<16|S[p+107|0]<<24,a[b+280>>2]=B^Q&(S[p+120|0]|S[p+121|0]<<8|S[p+122|0]<<16|S[p+123|0]<<24)^a[b+280>>2]^(S[p+88|0]|S[p+89|0]<<8|S[p+90|0]<<16|S[p+91|0]<<24),a[b+272>>2]=vr^Sr&Me^ye^Ve,a[b+284>>2]=cr^gr&ke^we^it,a[b+276>>2]=c^nr&de^ee^Ye,a[b+268>>2]=gr^cr&Z^re^bt,a[b+264>>2]=j&B^H^pt^Q,a[b+260>>2]=nr^c&L^v^ut,a[b+256>>2]=Sr^dt&vr^yr^We,yo(h+Wt|0,0,32-h|0),Di(f,Wt,h),h=a[b+280>>2],Wt=a[b+272>>2],nr=a[b+284>>2],cr=a[b+276>>2],gr=a[b+256>>2],vr=a[b+260>>2],Sr=a[b+264>>2],yr=a[b+268>>2],f=a[p+124>>2],a[b+312>>2]=a[p+120>>2],a[b+316>>2]=f,f=a[p+116>>2],a[b+304>>2]=a[p+112>>2],a[b+308>>2]=f,f=a[p+108>>2],a[b+248>>2]=a[p+104>>2],a[b+252>>2]=f,f=a[p+100>>2],a[b+240>>2]=a[p+96>>2],a[b+244>>2]=f,f=a[p+124>>2],a[b+232>>2]=a[p+120>>2],a[b+236>>2]=f,f=a[p+116>>2],a[b+224>>2]=a[p+112>>2],a[b+228>>2]=f,un(c=b+288|0,b+240|0,b+224|0),f=a[b+300>>2],a[p+120>>2]=a[b+296>>2],a[p+124>>2]=f,f=a[b+292>>2],a[p+112>>2]=a[b+288>>2],a[p+116>>2]=f,f=a[p+92>>2],a[b+216>>2]=a[p+88>>2],a[b+220>>2]=f,f=a[p+84>>2],a[b+208>>2]=a[p+80>>2],a[b+212>>2]=f,f=a[p+108>>2],a[b+200>>2]=a[p+104>>2],a[b+204>>2]=f,f=a[p+100>>2],a[b+192>>2]=a[p+96>>2],a[b+196>>2]=f,un(c,b+208|0,b+192|0),f=a[b+300>>2],a[p+104>>2]=a[b+296>>2],a[p+108>>2]=f,f=a[b+292>>2],a[p+96>>2]=a[b+288>>2],a[p+100>>2]=f,f=a[p+76>>2],a[b+184>>2]=a[p+72>>2],a[b+188>>2]=f,dt=a[4+(f=p- -64|0)>>2],a[b+176>>2]=a[f>>2],a[b+180>>2]=dt,dt=a[p+92>>2],a[b+168>>2]=a[p+88>>2],a[b+172>>2]=dt,dt=a[p+84>>2],a[b+160>>2]=a[p+80>>2],a[b+164>>2]=dt,un(c,b+176|0,b+160|0),dt=a[b+300>>2],a[p+88>>2]=a[b+296>>2],a[p+92>>2]=dt,dt=a[b+292>>2],a[p+80>>2]=a[b+288>>2],a[p+84>>2]=dt,dt=a[p+60>>2],a[b+152>>2]=a[p+56>>2],a[b+156>>2]=dt,dt=a[p+52>>2],a[b+144>>2]=a[p+48>>2],a[b+148>>2]=dt,dt=a[p+76>>2],a[b+136>>2]=a[p+72>>2],a[b+140>>2]=dt,dt=a[f+4>>2],a[b+128>>2]=a[f>>2],a[b+132>>2]=dt,un(c,b+144|0,b+128|0),dt=a[b+300>>2],a[p+72>>2]=a[b+296>>2],a[p+76>>2]=dt,dt=a[b+292>>2],a[f>>2]=a[b+288>>2],a[f+4>>2]=dt,dt=a[p+44>>2],a[b+120>>2]=a[p+40>>2],a[b+124>>2]=dt,dt=a[p+36>>2],a[b+112>>2]=a[p+32>>2],a[b+116>>2]=dt,dt=a[p+60>>2],a[b+104>>2]=a[p+56>>2],a[b+108>>2]=dt,dt=a[p+52>>2],a[b+96>>2]=a[p+48>>2],a[b+100>>2]=dt,un(c,b+112|0,b+96|0),dt=a[b+300>>2],a[p+56>>2]=a[b+296>>2],a[p+60>>2]=dt,dt=a[b+292>>2],a[p+48>>2]=a[b+288>>2],a[p+52>>2]=dt,dt=a[p+28>>2],a[b+88>>2]=a[p+24>>2],a[b+92>>2]=dt,dt=a[p+20>>2],a[b+80>>2]=a[p+16>>2],a[b+84>>2]=dt,dt=a[p+44>>2],a[b+72>>2]=a[p+40>>2],a[b+76>>2]=dt,dt=a[p+36>>2],a[b+64>>2]=a[p+32>>2],a[b+68>>2]=dt,un(c,b+80|0,b- -64|0),dt=a[b+300>>2],a[p+40>>2]=a[b+296>>2],a[p+44>>2]=dt,dt=a[b+292>>2],a[p+32>>2]=a[b+288>>2],a[p+36>>2]=dt,dt=a[p+12>>2],a[b+56>>2]=a[p+8>>2],a[b+60>>2]=dt,dt=a[p+4>>2],a[b+48>>2]=a[p>>2],a[b+52>>2]=dt,dt=a[p+28>>2],a[b+40>>2]=a[p+24>>2],a[b+44>>2]=dt,dt=a[p+20>>2],a[b+32>>2]=a[p+16>>2],a[b+36>>2]=dt,un(c,b+48|0,b+32|0),dt=a[b+300>>2],a[p+24>>2]=a[b+296>>2],a[p+28>>2]=dt,dt=a[b+292>>2],a[p+16>>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re),or=$,Kt=(Or=Ce(j,ut,Ne,dt))+c|0,c=$+or|0,c=Kt>>>0<Or>>>0?c+1|0:c,or=(Or=Ce(H,ee,ke,it))+Kt|0,Kt=$+c|0,Kt=or>>>0<Or>>>0?Kt+1|0:Kt,c=(Or=Ce(jr,b,we,Ve))+or|0,or=$+Kt|0,or=c>>>0<Or>>>0?or+1|0:or,Or=(Kt=c)+(c=Ce(nn,B,Mr,xe))|0,Kt=$+or|0,Kt=(c=c>>>0>Or>>>0?Kt+1|0:Kt)+(Kt=kr>>26)|0,c=(or=(kr=(67108863&kr)<<6|Jt>>>26)+Or|0)>>>0<kr>>>0?Kt+1|0:Kt,c=(Kt=or+16777216|0)>>>0<16777216?c+1|0:c,a[f+36>>2]=or-(-33554432&Kt),kr=An-(-33554432&Nr)|0,Or=ur-(or=-67108864&En)|0,jr=Yr-((or>>>0>ur>>>0)+yr|0)|0,c=Ce((33554431&c)<<7|Kt>>>25,c>>25,19,0),Kt=$+jr|0,c=c>>>0>(or=c+Or|0)>>>0?Kt+1|0:Kt,c=((67108863&(c=(Kt=or+33554432|0)>>>0<33554432?c+1|0:c))<<6|Kt>>>26)+kr|0,a[f+4>>2]=c,a[f>>2]=or-(-67108864&Kt)}function XQ(f,c){var h,p,b,B,Q,v,L,H,j,re,Z=0,ee=0,de=0;Ie=h=Ie-416|0,p=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,b=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,B=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,Q=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,de=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,v=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,L=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,H=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,f=a[c+92>>2],a[h+408>>2]=a[c+88>>2],a[h+412>>2]=f,f=a[c+84>>2],a[h+400>>2]=a[c+80>>2],a[h+404>>2]=f,f=a[c+76>>2],a[h+376>>2]=a[c+72>>2],a[h+380>>2]=f,Z=a[4+(f=ee=c- -64|0)>>2],a[h+368>>2]=a[f>>2],a[h+372>>2]=Z,f=a[c+92>>2],a[h+360>>2]=a[c+88>>2],a[h+364>>2]=f,f=a[c+84>>2],a[h+352>>2]=a[c+80>>2],a[h+356>>2]=f,un(f=h+384|0,h+368|0,h+352|0),Z=a[h+396>>2],a[c+88>>2]=a[h+392>>2],a[c+92>>2]=Z,Z=a[h+388>>2],a[c+80>>2]=a[h+384>>2],a[c+84>>2]=Z,Z=a[c+60>>2],a[h+344>>2]=a[c+56>>2],a[h+348>>2]=Z,Z=a[c+52>>2],a[h+336>>2]=a[c+48>>2],a[h+340>>2]=Z,Z=a[c+76>>2],a[h+328>>2]=a[c+72>>2],a[h+332>>2]=Z,Z=a[ee+4>>2],a[h+320>>2]=a[ee>>2],a[h+324>>2]=Z,un(f,h+336|0,h+320|0),Z=a[h+396>>2],a[c+72>>2]=a[h+392>>2],a[c+76>>2]=Z,Z=a[h+388>>2],a[ee>>2]=a[h+384>>2],a[ee+4>>2]=Z,Z=a[c+44>>2],a[h+312>>2]=a[c+40>>2],a[h+316>>2]=Z,Z=a[c+36>>2],a[h+304>>2]=a[c+32>>2],a[h+308>>2]=Z,Z=a[c+60>>2],a[h+296>>2]=a[c+56>>2],a[h+300>>2]=Z,Z=a[c+52>>2],a[h+288>>2]=a[c+48>>2],a[h+292>>2]=Z,un(f,h+304|0,h+288|0),Z=a[h+396>>2],a[c+56>>2]=a[h+392>>2],a[c+60>>2]=Z,Z=a[h+388>>2],a[c+48>>2]=a[h+384>>2],a[c+52>>2]=Z,Z=a[c+28>>2],a[h+280>>2]=a[c+24>>2],a[h+284>>2]=Z,Z=a[c+20>>2],a[h+272>>2]=a[c+16>>2],a[h+276>>2]=Z,Z=a[c+44>>2],a[h+264>>2]=a[c+40>>2],a[h+268>>2]=Z,Z=a[c+36>>2],a[h+256>>2]=a[c+32>>2],a[h+260>>2]=Z,un(f,h+272|0,h+256|0),Z=a[h+396>>2],a[c+40>>2]=a[h+392>>2],a[c+44>>2]=Z,Z=a[h+388>>2],a[c+32>>2]=a[h+384>>2],a[c+36>>2]=Z,Z=a[c+12>>2],a[h+248>>2]=a[c+8>>2],a[h+252>>2]=Z,Z=a[c+4>>2],a[h+240>>2]=a[c>>2],a[h+244>>2]=Z,Z=a[c+28>>2],a[h+232>>2]=a[c+24>>2],a[h+236>>2]=Z,Z=a[c+20>>2],a[h+224>>2]=a[c+16>>2],a[h+228>>2]=Z,un(f,h+240|0,h+224|0),Z=a[h+396>>2],a[c+24>>2]=a[h+392>>2],a[c+28>>2]=Z,Z=a[h+388>>2],a[c+16>>2]=a[h+384>>2],a[c+20>>2]=Z,Z=a[h+412>>2],a[h+216>>2]=a[h+408>>2],a[h+220>>2]=Z,Z=a[h+404>>2],a[h+208>>2]=a[h+400>>2],a[h+212>>2]=Z,Z=a[c+12>>2],a[h+200>>2]=a[c+8>>2],a[h+204>>2]=Z,Z=a[c+4>>2],a[h+192>>2]=a[c>>2],a[h+196>>2]=Z,un(f,h+208|0,h+192|0),Z=a[h+384>>2],j=a[h+388>>2],re=a[h+392>>2],a[c+12>>2]=a[h+396>>2]^L,a[c+8>>2]=v^re,a[c+4>>2]=de^j,a[c>>2]=Z^H,de=a[c+92>>2],a[h+408>>2]=a[c+88>>2],a[h+412>>2]=de,de=a[c+84>>2],a[h+400>>2]=a[c+80>>2],a[h+404>>2]=de,de=a[c+76>>2],a[h+184>>2]=a[c+72>>2],a[h+188>>2]=de,de=a[ee+4>>2],a[h+176>>2]=a[ee>>2],a[h+180>>2]=de,de=a[c+92>>2],a[h+168>>2]=a[c+88>>2],a[h+172>>2]=de,de=a[c+84>>2],a[h+160>>2]=a[c+80>>2],a[h+164>>2]=de,un(f,h+176|0,h+160|0),de=a[h+396>>2],a[c+88>>2]=a[h+392>>2],a[c+92>>2]=de,de=a[h+388>>2],a[c+80>>2]=a[h+384>>2],a[c+84>>2]=de,de=a[c+60>>2],a[h+152>>2]=a[c+56>>2],a[h+156>>2]=de,de=a[c+52>>2],a[h+144>>2]=a[c+48>>2],a[h+148>>2]=de,de=a[c+76>>2],a[h+136>>2]=a[c+72>>2],a[h+140>>2]=de,de=a[ee+4>>2],a[h+128>>2]=a[ee>>2],a[h+132>>2]=de,un(f,h+144|0,h+128|0),de=a[h+396>>2],a[c+72>>2]=a[h+392>>2],a[c+76>>2]=de,de=a[h+388>>2],a[ee>>2]=a[h+384>>2],a[ee+4>>2]=de,ee=a[c+44>>2],a[h+120>>2]=a[c+40>>2],a[h+124>>2]=ee,ee=a[c+36>>2],a[h+112>>2]=a[c+32>>2],a[h+116>>2]=ee,ee=a[c+60>>2],a[h+104>>2]=a[c+56>>2],a[h+108>>2]=ee,ee=a[c+52>>2],a[h+96>>2]=a[c+48>>2],a[h+100>>2]=ee,un(f,h+112|0,h+96|0),ee=a[h+396>>2],a[c+56>>2]=a[h+392>>2],a[c+60>>2]=ee,ee=a[h+388>>2],a[c+48>>2]=a[h+384>>2],a[c+52>>2]=ee,ee=a[c+28>>2],a[h+88>>2]=a[c+24>>2],a[h+92>>2]=ee,ee=a[c+20>>2],a[h+80>>2]=a[c+16>>2],a[h+84>>2]=ee,ee=a[c+44>>2],a[h+72>>2]=a[c+40>>2],a[h+76>>2]=ee,ee=a[c+36>>2],a[h+64>>2]=a[c+32>>2],a[h+68>>2]=ee,un(f,h+80|0,h- -64|0),ee=a[h+396>>2],a[c+40>>2]=a[h+392>>2],a[c+44>>2]=ee,ee=a[h+388>>2],a[c+32>>2]=a[h+384>>2],a[c+36>>2]=ee,ee=a[c+12>>2],a[h+56>>2]=a[c+8>>2],a[h+60>>2]=ee,ee=a[c+4>>2],a[h+48>>2]=a[c>>2],a[h+52>>2]=ee,ee=a[c+28>>2],a[h+40>>2]=a[c+24>>2],a[h+44>>2]=ee,ee=a[c+20>>2],a[h+32>>2]=a[c+16>>2],a[h+36>>2]=ee,un(f,h+48|0,h+32|0),ee=a[h+396>>2],a[c+24>>2]=a[h+392>>2],a[c+28>>2]=ee,ee=a[h+388>>2],a[c+16>>2]=a[h+384>>2],a[c+20>>2]=ee,ee=a[h+412>>2],a[h+24>>2]=a[h+408>>2],a[h+28>>2]=ee,ee=a[h+404>>2],a[h+16>>2]=a[h+400>>2],a[h+20>>2]=ee,ee=a[c+12>>2],a[h+8>>2]=a[c+8>>2],a[h+12>>2]=ee,ee=a[c+4>>2],a[h>>2]=a[c>>2],a[h+4>>2]=ee,un(f,h+16|0,h),f=a[h+384>>2],ee=a[h+388>>2],de=a[h+392>>2],a[c+12>>2]=a[h+396>>2]^Q,a[c+8>>2]=de^B,a[c+4>>2]=ee^b,a[c>>2]=f^p,Ie=h+416|0}function ZQ(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye=0,Me=0,Ve=0;for(Ie=p=Ie-288|0,ee=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,de=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,we=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,H=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,j=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,re=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,ke=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=h+112|0,f=33620224^(Z=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24),a[c>>2]=f,a[(v=h+96|0)>>2]=1427652059^Z,a[(L=h+80|0)>>2]=f,Me=Z^ke,a[(f=h- -64|0)>>2]=Me,a[h+56>>2]=1110511904,a[h+60>>2]=-584534669,a[(b=h+48|0)>>2]=1427652059,a[b+4>>2]=-248528275,a[h+40>>2]=1496785429,a[h+44>>2]=1652156816,a[(B=h+32|0)>>2]=33620224,a[B+4>>2]=218629379,a[h+24>>2]=1110511904,a[h+28>>2]=-584534669,a[(Q=h+16|0)>>2]=1427652059,a[Q+4>>2]=-248528275,a[h>>2]=Me,Me=1652156816^re,a[h+124>>2]=Me,Ve=1496785429^j,a[h+120>>2]=Ve,ye=218629379^H,a[h+116>>2]=ye,a[h+108>>2]=-584534669^re,a[h+104>>2]=1110511904^j,a[h+100>>2]=-248528275^H,a[h+92>>2]=Me,a[h+88>>2]=Ve,a[h+84>>2]=ye,Me=re^we,a[h+76>>2]=Me,Ve=j^de,a[h+72>>2]=Ve,ye=H^ee,a[h+68>>2]=ye,a[h+12>>2]=Me,a[h+8>>2]=Ve,a[h+4>>2]=ye,Ve=0;Me=a[c+12>>2],a[p+280>>2]=a[c+8>>2],a[p+284>>2]=Me,Me=a[c+4>>2],a[p+272>>2]=a[c>>2],a[p+276>>2]=Me,Me=a[v+12>>2],a[p+248>>2]=a[v+8>>2],a[p+252>>2]=Me,Me=a[v+4>>2],a[p+240>>2]=a[v>>2],a[p+244>>2]=Me,Me=a[c+12>>2],a[p+232>>2]=a[c+8>>2],a[p+236>>2]=Me,Me=a[c+4>>2],a[p+224>>2]=a[c>>2],a[p+228>>2]=Me,un(Me=p+256|0,p+240|0,p+224|0),ye=a[p+268>>2],a[c+8>>2]=a[p+264>>2],a[c+12>>2]=ye,ye=a[p+260>>2],a[c>>2]=a[p+256>>2],a[c+4>>2]=ye,ye=a[L+12>>2],a[p+216>>2]=a[L+8>>2],a[p+220>>2]=ye,ye=a[L+4>>2],a[p+208>>2]=a[L>>2],a[p+212>>2]=ye,ye=a[v+12>>2],a[p+200>>2]=a[v+8>>2],a[p+204>>2]=ye,ye=a[v+4>>2],a[p+192>>2]=a[v>>2],a[p+196>>2]=ye,un(Me,p+208|0,p+192|0),ye=a[p+268>>2],a[v+8>>2]=a[p+264>>2],a[v+12>>2]=ye,ye=a[p+260>>2],a[v>>2]=a[p+256>>2],a[v+4>>2]=ye,ye=a[f+12>>2],a[p+184>>2]=a[f+8>>2],a[p+188>>2]=ye,ye=a[f+4>>2],a[p+176>>2]=a[f>>2],a[p+180>>2]=ye,ye=a[L+12>>2],a[p+168>>2]=a[L+8>>2],a[p+172>>2]=ye,ye=a[L+4>>2],a[p+160>>2]=a[L>>2],a[p+164>>2]=ye,un(Me,p+176|0,p+160|0),ye=a[p+268>>2],a[L+8>>2]=a[p+264>>2],a[L+12>>2]=ye,ye=a[p+260>>2],a[L>>2]=a[p+256>>2],a[L+4>>2]=ye,ye=a[b+12>>2],a[p+152>>2]=a[b+8>>2],a[p+156>>2]=ye,ye=a[b+4>>2],a[p+144>>2]=a[b>>2],a[p+148>>2]=ye,ye=a[f+12>>2],a[p+136>>2]=a[f+8>>2],a[p+140>>2]=ye,ye=a[f+4>>2],a[p+128>>2]=a[f>>2],a[p+132>>2]=ye,un(Me,p+144|0,p+128|0),ye=a[p+268>>2],a[f+8>>2]=a[p+264>>2],a[f+12>>2]=ye,ye=a[p+260>>2],a[f>>2]=a[p+256>>2],a[f+4>>2]=ye,ye=a[B+12>>2],a[p+120>>2]=a[B+8>>2],a[p+124>>2]=ye,ye=a[B+4>>2],a[p+112>>2]=a[B>>2],a[p+116>>2]=ye,ye=a[b+12>>2],a[p+104>>2]=a[b+8>>2],a[p+108>>2]=ye,ye=a[b+4>>2],a[p+96>>2]=a[b>>2],a[p+100>>2]=ye,un(Me,p+112|0,p+96|0),ye=a[p+268>>2],a[b+8>>2]=a[p+264>>2],a[b+12>>2]=ye,ye=a[p+260>>2],a[b>>2]=a[p+256>>2],a[b+4>>2]=ye,ye=a[Q+12>>2],a[p+88>>2]=a[Q+8>>2],a[p+92>>2]=ye,ye=a[Q+4>>2],a[p+80>>2]=a[Q>>2],a[p+84>>2]=ye,ye=a[B+12>>2],a[p+72>>2]=a[B+8>>2],a[p+76>>2]=ye,ye=a[B+4>>2],a[p+64>>2]=a[B>>2],a[p+68>>2]=ye,un(Me,p+80|0,p- -64|0),ye=a[p+268>>2],a[B+8>>2]=a[p+264>>2],a[B+12>>2]=ye,ye=a[p+260>>2],a[B>>2]=a[p+256>>2],a[B+4>>2]=ye,ye=a[h+12>>2],a[p+56>>2]=a[h+8>>2],a[p+60>>2]=ye,ye=a[h+4>>2],a[p+48>>2]=a[h>>2],a[p+52>>2]=ye,ye=a[Q+12>>2],a[p+40>>2]=a[Q+8>>2],a[p+44>>2]=ye,ye=a[Q+4>>2],a[p+32>>2]=a[Q>>2],a[p+36>>2]=ye,un(Me,p+48|0,p+32|0),ye=a[p+268>>2],a[Q+8>>2]=a[p+264>>2],a[Q+12>>2]=ye,ye=a[p+260>>2],a[Q>>2]=a[p+256>>2],a[Q+4>>2]=ye,ye=a[p+284>>2],a[p+24>>2]=a[p+280>>2],a[p+28>>2]=ye,ye=a[p+276>>2],a[p+16>>2]=a[p+272>>2],a[p+20>>2]=ye,ye=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=ye,ye=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=ye,un(Me,p+16|0,p),Me=a[p+268>>2],a[h+8>>2]=a[p+264>>2],a[h+12>>2]=Me,Me=a[p+260>>2],a[h>>2]=a[p+256>>2],a[h+4>>2]=Me,a[h+12>>2]=(S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24)^we,a[h+8>>2]=(S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24)^de,a[h+4>>2]=(S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24)^ee,a[h>>2]=(S[0|h]|S[h+1|0]<<8|S[h+2|0]<<16|S[h+3|0]<<24)^ke,a[f>>2]=(S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24)^Z,a[h+68>>2]=(S[h+68|0]|S[h+69|0]<<8|S[h+70|0]<<16|S[h+71|0]<<24)^H,a[h+72>>2]=(S[h+72|0]|S[h+73|0]<<8|S[h+74|0]<<16|S[h+75|0]<<24)^j,a[h+76>>2]=(S[h+76|0]|S[h+77|0]<<8|S[h+78|0]<<16|S[h+79|0]<<24)^re,(0|(Ve=Ve+1|0))!=10;);Ie=p+288|0}function J5(f,c){var h,p=0,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0;if(Ie=h=Ie-48|0,!((p=Qn(f))||(p=-26,c-3>>>0<4294967294))){B=a[f+44>>2],p=a[f+48>>2],a[h+4>>2]=0,b=a[f+40>>2],a[h+32>>2]=p,a[h+16>>2]=-1,a[h+12>>2]=b,p=((H=(b=p<<3)>>>0<B>>>0?B:b)>>>0)/((B=p<<2)>>>0)|0,a[h+24>>2]=p,a[h+28>>2]=p<<2,a[h+20>>2]=Lr(p,B),p=a[f+52>>2],a[h+40>>2]=c,a[h+36>>2]=p,re=c=Ie,Ie=p=c-1152&-64,c=-25;e:{if(!(!(B=h+4|0)|!f)&&(b=wo(a[B+20>>2]<<3),a[B+4>>2]=b,c=-22,b)){t:{if((c=a[B+16>>2])&&(((b=c<<10)>>>0)/(c>>>0)|0)==1024&&(c=wo(12),a[B>>2]=c,c)){if(a[c>>2]=0,a[c+4>>2]=0,c=st(p+128|0,b),a[9404]=c,c)a[p+128>>2]=0;else if(c=a[p+128>>2])break t;h0(a[B>>2]),a[B>>2]=0}xTe(B,a[f+56>>2]),Ie=re,c=-22;break e}if(a[a[B>>2]>>2]=c,a[a[B>>2]+4>>2]=c,a[a[B>>2]+8>>2]=b,Z=a[B+36>>2],C8(c=p+128|0,0,0,64),a[p+124>>2]=a[f+48>>2],Sd(c,b=p+124|0,4,0),a[p+124>>2]=a[f+4>>2],Sd(c,b,4,0),a[p+124>>2]=a[f+44>>2],Sd(c,b,4,0),a[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],a[Q+4>>2]=v,j=(Q=8|L)+Z|0,v=a[4+(Q=Q+H|0)>>2],a[j>>2]=a[Q>>2],a[j+4>>2]=v,j=(Q=16|L)+Z|0,v=a[4+(Q=Q+H|0)>>2],a[j>>2]=a[Q>>2],a[j+4>>2]=v,Q=(L|=24)+Z|0,H=a[4+(L=L+H|0)>>2],a[Q>>2]=a[L>>2],a[Q+4>>2]=H,(0|(c=c+4|0))!=128;);if(!((b=b+1|0)>>>0<sn[B+28>>2]))break}bn(p+128|0,1024),bn(p+48|0,72),c=0}Ie=re}if(p=c,!c){if(a[h+12>>2])for(;;){if(Ie=c=Ie-80|0,!(!(B=h+4|0)|!a[B+28>>2])){for(k[c+72|0]=0,a[c+64>>2]=de,p=0;a[c+76>>2]=0,b=a[c+76>>2],a[c+56>>2]=a[c+72>>2],a[c+60>>2]=b,a[c+68>>2]=p,b=a[c+68>>2],a[c+48>>2]=a[c+64>>2],a[c+52>>2]=b,oo(B,c+48|0),(p=p+1|0)>>>0<(b=a[B+28>>2])>>>0;);if(k[c+72|0]=1,b){for(p=0;a[c+76>>2]=0,b=a[c+76>>2],a[c+40>>2]=a[c+72>>2],a[c+44>>2]=b,a[c+68>>2]=p,b=a[c+68>>2],a[c+32>>2]=a[c+64>>2],a[c+36>>2]=b,oo(B,c+32|0),(p=p+1|0)>>>0<(b=a[B+28>>2])>>>0;);if(k[c+72|0]=2,b){for(p=0;a[c+76>>2]=0,b=a[c+76>>2],a[c+24>>2]=a[c+72>>2],a[c+28>>2]=b,a[c+68>>2]=p,b=a[c+68>>2],a[c+16>>2]=a[c+64>>2],a[c+20>>2]=b,oo(B,c+16|0),(p=p+1|0)>>>0<(b=a[B+28>>2])>>>0;);if(k[c+72|0]=3,b)for(p=0;a[c+76>>2]=0,b=a[c+76>>2],a[c+8>>2]=a[c+72>>2],a[c+12>>2]=b,a[c+68>>2]=p,b=a[c+68>>2],a[c>>2]=a[c+64>>2],a[c+4>>2]=b,oo(B,c),(p=p+1|0)>>>0<sn[B+28>>2];);}}}if(Ie=c+80|0,!((de=de+1|0)>>>0<sn[h+12>>2]))break}if(Ie=c=Ie-2048|0,!(!f|!(p=h+4|0))){if(de=a[p+24>>2],Di(c+1024|0,Q=(a[a[p>>2]+4>>2]+(de<<10)|0)-1024|0,1024),(j=a[p+28>>2])>>>0>=2)for(Z=1;;){for(B=Q+(Lr(Z,de)<<10)|0,L=0;v=a[(re=(b=L<<3)+(H=c+1024|0)|0)>>2],we=a[(ee=b+B|0)>>2],ee=a[re+4>>2]^a[ee+4>>2],a[re>>2]=v^we,a[re+4>>2]=ee,ee=a[(re=(v=8|b)+H|0)>>2],we=a[(v=B+v|0)>>2],v=a[re+4>>2]^a[v+4>>2],a[re>>2]=ee^we,a[re+4>>2]=v,ee=a[(re=(v=16|b)+H|0)>>2],we=a[(v=B+v|0)>>2],v=a[re+4>>2]^a[v+4>>2],a[re>>2]=ee^we,a[re+4>>2]=v,re=a[(b=(re=H)+(H=24|b)|0)>>2],v=a[(H=B+H|0)>>2],H=a[b+4>>2]^a[H+4>>2],a[b>>2]=v^re,a[b+4>>2]=H,(0|(L=L+4|0))!=128;);if((0|j)==(0|(Z=Z+1|0)))break}B=Di(c,c+1024|0,1024),dM(a[f>>2],a[f+4>>2],B,1024),bn(B+1024|0,1024),bn(B,1024),xTe(p,a[f+56>>2])}Ie=c+2048|0,p=0}}return Ie=h+48|0,p}function z5(f,c,h,p,b){var B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0,Jt=0,ur=0,Mr=0,Gr=0,jr=0,nn=0,fn=0,Ne=0,xe=0,nt=0,Cr=0,Yr=0,An=0,hn=0,pn=0,En=0;for(B=Ie+-64|0,Q=a[f+60>>2],v=a[f+56>>2],ur=a[f+52>>2],Jt=a[f+48>>2],L=a[f+44>>2],H=a[f+40>>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[c+63|0]<<24,ut=ut+Ve^(S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24),k[0|We]=ut,k[We+1|0]=ut>>>8,k[We+2|0]=ut>>>16,k[We+3|0]=ut>>>24,ut=bt+Q^En,k[We+60|0]=ut,k[We+61|0]=ut>>>8,k[We+62|0]=ut>>>16,k[We+63|0]=ut>>>24,ut=Or+v^pn,k[We+56|0]=ut,k[We+57|0]=ut>>>8,k[We+58|0]=ut>>>16,k[We+59|0]=ut>>>24,ut=Kt+ur^hn,k[We+52|0]=ut,k[We+53|0]=ut>>>8,k[We+54|0]=ut>>>16,k[We+55|0]=ut>>>24,ut=Sr+Jt^An,k[We+48|0]=ut,k[We+49|0]=ut>>>8,k[We+50|0]=ut>>>16,k[We+51|0]=ut>>>24,ut=Wt+L^Yr,k[We+44|0]=ut,k[We+45|0]=ut>>>8,k[We+46|0]=ut>>>16,k[We+47|0]=ut>>>24,ut=vr+H^Cr,k[We+40|0]=ut,k[We+41|0]=ut>>>8,k[We+42|0]=ut>>>16,k[We+43|0]=ut>>>24,ut=or+j^nt,k[We+36|0]=ut,k[We+37|0]=ut>>>8,k[We+38|0]=ut>>>16,k[We+39|0]=ut>>>24,ut=dt+re^xe,k[We+32|0]=ut,k[We+33|0]=ut>>>8,k[We+34|0]=ut>>>16,k[We+35|0]=ut>>>24,it=it+Z^Ne,k[We+28|0]=it,k[We+29|0]=it>>>8,k[We+30|0]=it>>>16,k[We+31|0]=it>>>24,Ye=nr^Ye+ee,k[We+24|0]=Ye,k[We+25|0]=Ye>>>8,k[We+26|0]=Ye>>>16,k[We+27|0]=Ye>>>24,h=nn^h+de,k[We+20|0]=h,k[We+21|0]=h>>>8,k[We+22|0]=h>>>16,k[We+23|0]=h>>>24,h=jr^pt+we,k[We+16|0]=h,k[We+17|0]=h>>>8,k[We+18|0]=h>>>16,k[We+19|0]=h>>>24,h=Gr^yr+ke,k[We+12|0]=h,k[We+13|0]=h>>>8,k[We+14|0]=h>>>16,k[We+15|0]=h>>>24,h=kr^gr+ye,k[We+8|0]=h,k[We+9|0]=h>>>8,k[We+10|0]=h>>>16,k[We+11|0]=h>>>24,h=Mr^cr+Me,k[We+4|0]=h,k[We+5|0]=h>>>8,k[We+6|0]=h>>>16,k[We+7|0]=h>>>24,ur=!(Jt=Jt+1|0)+ur|0,!b&p>>>0<=64){if(!(!(p|b)|!b&p>>>0>63|!!(0|b)))for(pt=0;k[pt+fn|0]=S[We+pt|0],p>>>0>(pt=pt+1|0)>>>0;);a[f+52>>2]=ur,a[f+48>>2]=Jt;break}c=c- -64|0,h=We- -64|0,b=b-1|0,b=(p=p+-64|0)>>>0<4294967232?b+1|0:b}}function Ah(f,c){c|=0;var h,p=0,b=0,B=0,Q=0,v=0,L=0,H=0;return Ie=h=Ie-704|0,p=80+((b=a[72+(f|=0)>>2]>>>3&127)+f|0)|0,b>>>0>=112?(Di(p,35056,128-b|0),Mi(f,b=f+80|0,h,h+640|0),yo(b,0,112)):Di(p,35056,112-b|0),L=(B=a[f+64>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+68>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[f+192|0]=p,k[f+193|0]=p>>>8,k[f+194|0]=p>>>16,k[f+195|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[f+196|0]=b,k[f+197|0]=b>>>8,k[f+198|0]=b>>>16,k[f+199|0]=b>>>24,L=(B=a[f+72>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+76>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[f+200|0]=p,k[f+201|0]=p>>>8,k[f+202|0]=p>>>16,k[f+203|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[f+204|0]=b,k[f+205|0]=b>>>8,k[f+206|0]=b>>>16,k[f+207|0]=b>>>24,Mi(f,f+80|0,h,h+640|0),L=(B=a[f>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+4>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[0|c]=p,k[c+1|0]=p>>>8,k[c+2|0]=p>>>16,k[c+3|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+4|0]=b,k[c+5|0]=b>>>8,k[c+6|0]=b>>>16,k[c+7|0]=b>>>24,L=(B=a[f+8>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+12>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[c+8|0]=p,k[c+9|0]=p>>>8,k[c+10|0]=p>>>16,k[c+11|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+12|0]=b,k[c+13|0]=b>>>8,k[c+14|0]=b>>>16,k[c+15|0]=b>>>24,L=(B=a[f+16>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+20>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[c+16|0]=p,k[c+17|0]=p>>>8,k[c+18|0]=p>>>16,k[c+19|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+20|0]=b,k[c+21|0]=b>>>8,k[c+22|0]=b>>>16,k[c+23|0]=b>>>24,L=(B=a[f+24>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+28>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[c+24|0]=p,k[c+25|0]=p>>>8,k[c+26|0]=p>>>16,k[c+27|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+28|0]=b,k[c+29|0]=b>>>8,k[c+30|0]=b>>>16,k[c+31|0]=b>>>24,L=(B=a[f+32>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+36>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[c+32|0]=p,k[c+33|0]=p>>>8,k[c+34|0]=p>>>16,k[c+35|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+36|0]=b,k[c+37|0]=b>>>8,k[c+38|0]=b>>>16,k[c+39|0]=b>>>24,L=(B=a[f+40>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+44>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[c+40|0]=p,k[c+41|0]=p>>>8,k[c+42|0]=p>>>16,k[c+43|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+44|0]=b,k[c+45|0]=b>>>8,k[c+46|0]=b>>>16,k[c+47|0]=b>>>24,L=(B=a[f+48>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,H=Q<<24,Q=(v=-16777216&B)>>>24|0,p=H|v<<8|-16777216&((255&(p=a[f+52>>2]))<<24|B>>>8)|16711680&((16777215&p)<<8|B>>>24)|p>>>8&65280|p>>>24,k[c+48|0]=p,k[c+49|0]=p>>>8,k[c+50|0]=p>>>16,k[c+51|0]=p>>>24,p=b|Q|L,b=0,b|=p,k[c+52|0]=b,k[c+53|0]=b>>>8,k[c+54|0]=b>>>16,k[c+55|0]=b>>>24,L=(B=a[f+56>>2])<<24|(65280&B)<<8,b=(Q=16711680&B)>>>8|0,p=c,H=Q<<24,Q=(v=-16777216&B)>>>24|0,c=H|v<<8|-16777216&((255&(c=a[f+60>>2]))<<24|B>>>8)|16711680&((16777215&c)<<8|B>>>24)|c>>>8&65280|c>>>24,k[p+56|0]=c,k[p+57|0]=c>>>8,k[p+58|0]=c>>>16,k[p+59|0]=c>>>24,c=b|Q|L,c|=b=0,k[p+60|0]=c,k[p+61|0]=c>>>8,k[p+62|0]=c>>>16,k[p+63|0]=c>>>24,bn(h,704),bn(f,208),Ie=h+704|0,0}function jQ(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut,pt,bt=0;Ie=p=Ie-224|0,L=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,H=S[0|(bt=h- -64|0)]|S[bt+1|0]<<8|S[bt+2|0]<<16|S[bt+3|0]<<24,j=S[h+80|0]|S[h+81|0]<<8|S[h+82|0]<<16|S[h+83|0]<<24,re=S[h+32|0]|S[h+33|0]<<8|S[h+34|0]<<16|S[h+35|0]<<24,Z=S[h+48|0]|S[h+49|0]<<8|S[h+50|0]<<16|S[h+51|0]<<24,b=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,ee=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,de=S[h+68|0]|S[h+69|0]<<8|S[h+70|0]<<16|S[h+71|0]<<24,we=S[h+84|0]|S[h+85|0]<<8|S[h+86|0]<<16|S[h+87|0]<<24,ke=S[h+36|0]|S[h+37|0]<<8|S[h+38|0]<<16|S[h+39|0]<<24,ye=S[h+52|0]|S[h+53|0]<<8|S[h+54|0]<<16|S[h+55|0]<<24,B=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,Me=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,Ve=S[h+72|0]|S[h+73|0]<<8|S[h+74|0]<<16|S[h+75|0]<<24,We=S[h+88|0]|S[h+89|0]<<8|S[h+90|0]<<16|S[h+91|0]<<24,ut=S[h+40|0]|S[h+41|0]<<8|S[h+42|0]<<16|S[h+43|0]<<24,pt=S[h+56|0]|S[h+57|0]<<8|S[h+58|0]<<16|S[h+59|0]<<24,Q=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=(v=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24)^(S[h+44|0]|S[h+45|0]<<8|S[h+46|0]<<16|S[h+47|0]<<24)&(S[h+60|0]|S[h+61|0]<<8|S[h+62|0]<<16|S[h+63|0]<<24)^(S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24)^(S[h+92|0]|S[h+93|0]<<8|S[h+94|0]<<16|S[h+95|0]<<24)^(S[h+76|0]|S[h+77|0]<<8|S[h+78|0]<<16|S[h+79|0]<<24),k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=ut&pt^Ve^We^Me^B,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=ke&ye^de^we^ee^b,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=re&Z^L^H^j^Q,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,f=a[h+92>>2],a[p+216>>2]=a[h+88>>2],a[p+220>>2]=f,f=a[h+84>>2],a[p+208>>2]=a[h+80>>2],a[p+212>>2]=f,f=a[h+76>>2],a[p+184>>2]=a[h+72>>2],a[p+188>>2]=f,f=a[bt+4>>2],a[p+176>>2]=a[bt>>2],a[p+180>>2]=f,f=a[h+92>>2],a[p+168>>2]=a[h+88>>2],a[p+172>>2]=f,f=a[h+84>>2],a[p+160>>2]=a[h+80>>2],a[p+164>>2]=f,un(f=p+192|0,p+176|0,p+160|0),c=a[p+204>>2],a[h+88>>2]=a[p+200>>2],a[h+92>>2]=c,c=a[p+196>>2],a[h+80>>2]=a[p+192>>2],a[h+84>>2]=c,c=a[h+60>>2],a[p+152>>2]=a[h+56>>2],a[p+156>>2]=c,c=a[h+52>>2],a[p+144>>2]=a[h+48>>2],a[p+148>>2]=c,c=a[h+76>>2],a[p+136>>2]=a[h+72>>2],a[p+140>>2]=c,c=a[bt+4>>2],a[p+128>>2]=a[bt>>2],a[p+132>>2]=c,un(f,p+144|0,p+128|0),c=a[p+204>>2],a[h+72>>2]=a[p+200>>2],a[h+76>>2]=c,c=a[p+196>>2],a[bt>>2]=a[p+192>>2],a[bt+4>>2]=c,c=a[h+44>>2],a[p+120>>2]=a[h+40>>2],a[p+124>>2]=c,c=a[h+36>>2],a[p+112>>2]=a[h+32>>2],a[p+116>>2]=c,c=a[h+60>>2],a[p+104>>2]=a[h+56>>2],a[p+108>>2]=c,c=a[h+52>>2],a[p+96>>2]=a[h+48>>2],a[p+100>>2]=c,un(f,p+112|0,p+96|0),c=a[p+204>>2],a[h+56>>2]=a[p+200>>2],a[h+60>>2]=c,c=a[p+196>>2],a[h+48>>2]=a[p+192>>2],a[h+52>>2]=c,c=a[h+28>>2],a[p+88>>2]=a[h+24>>2],a[p+92>>2]=c,c=a[h+20>>2],a[p+80>>2]=a[h+16>>2],a[p+84>>2]=c,c=a[h+44>>2],a[p+72>>2]=a[h+40>>2],a[p+76>>2]=c,c=a[h+36>>2],a[p+64>>2]=a[h+32>>2],a[p+68>>2]=c,un(f,p+80|0,p- -64|0),c=a[p+204>>2],a[h+40>>2]=a[p+200>>2],a[h+44>>2]=c,c=a[p+196>>2],a[h+32>>2]=a[p+192>>2],a[h+36>>2]=c,c=a[h+12>>2],a[p+56>>2]=a[h+8>>2],a[p+60>>2]=c,c=a[h+4>>2],a[p+48>>2]=a[h>>2],a[p+52>>2]=c,c=a[h+28>>2],a[p+40>>2]=a[h+24>>2],a[p+44>>2]=c,c=a[h+20>>2],a[p+32>>2]=a[h+16>>2],a[p+36>>2]=c,un(f,p+48|0,p+32|0),c=a[p+204>>2],a[h+24>>2]=a[p+200>>2],a[h+28>>2]=c,c=a[p+196>>2],a[h+16>>2]=a[p+192>>2],a[h+20>>2]=c,c=a[p+220>>2],a[p+24>>2]=a[p+216>>2],a[p+28>>2]=c,c=a[p+212>>2],a[p+16>>2]=a[p+208>>2],a[p+20>>2]=c,c=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=c,c=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=c,un(f,p+16|0,p),f=a[p+192>>2],c=a[p+196>>2],bt=a[p+200>>2],a[h+12>>2]=v^a[p+204>>2],a[h+8>>2]=bt^B,a[h+4>>2]=c^b,a[h>>2]=f^Q,Ie=p+224|0}function eH(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me=0,Ve=0,We=0,ut=0,pt=0;Ie=p=Ie-224|0,We=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,Ve=S[0|(Me=h- -64|0)]|S[Me+1|0]<<8|S[Me+2|0]<<16|S[Me+3|0]<<24,b=S[h+80|0]|S[h+81|0]<<8|S[h+82|0]<<16|S[h+83|0]<<24,B=S[h+32|0]|S[h+33|0]<<8|S[h+34|0]<<16|S[h+35|0]<<24,Q=S[h+48|0]|S[h+49|0]<<8|S[h+50|0]<<16|S[h+51|0]<<24,ut=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,v=S[h+68|0]|S[h+69|0]<<8|S[h+70|0]<<16|S[h+71|0]<<24,L=S[h+84|0]|S[h+85|0]<<8|S[h+86|0]<<16|S[h+87|0]<<24,H=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,j=S[h+36|0]|S[h+37|0]<<8|S[h+38|0]<<16|S[h+39|0]<<24,re=S[h+52|0]|S[h+53|0]<<8|S[h+54|0]<<16|S[h+55|0]<<24,pt=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,Z=S[h+72|0]|S[h+73|0]<<8|S[h+74|0]<<16|S[h+75|0]<<24,ee=S[h+88|0]|S[h+89|0]<<8|S[h+90|0]<<16|S[h+91|0]<<24,de=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,we=S[h+40|0]|S[h+41|0]<<8|S[h+42|0]<<16|S[h+43|0]<<24,ke=S[h+56|0]|S[h+57|0]<<8|S[h+58|0]<<16|S[h+59|0]<<24,ye=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=(S[h+44|0]|S[h+45|0]<<8|S[h+46|0]<<16|S[h+47|0]<<24)&(S[h+60|0]|S[h+61|0]<<8|S[h+62|0]<<16|S[h+63|0]<<24)^(S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24)^(S[h+76|0]|S[h+77|0]<<8|S[h+78|0]<<16|S[h+79|0]<<24)^(S[h+92|0]|S[h+93|0]<<8|S[h+94|0]<<16|S[h+95|0]<<24)^(S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24),k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,pt=we&ke^pt^ee^de^Z,k[f+8|0]=pt,k[f+9|0]=pt>>>8,k[f+10|0]=pt>>>16,k[f+11|0]=pt>>>24,ut=j&re^ut^L^H^v,k[f+4|0]=ut,k[f+5|0]=ut>>>8,k[f+6|0]=ut>>>16,k[f+7|0]=ut>>>24,We=B&Q^We^Ve^b^ye,k[0|f]=We,k[f+1|0]=We>>>8,k[f+2|0]=We>>>16,k[f+3|0]=We>>>24,f=a[h+92>>2],a[p+216>>2]=a[h+88>>2],a[p+220>>2]=f,f=a[h+84>>2],a[p+208>>2]=a[h+80>>2],a[p+212>>2]=f,f=a[h+76>>2],a[p+184>>2]=a[h+72>>2],a[p+188>>2]=f,f=a[Me+4>>2],a[p+176>>2]=a[Me>>2],a[p+180>>2]=f,f=a[h+92>>2],a[p+168>>2]=a[h+88>>2],a[p+172>>2]=f,f=a[h+84>>2],a[p+160>>2]=a[h+80>>2],a[p+164>>2]=f,un(f=p+192|0,p+176|0,p+160|0),Ve=a[p+204>>2],a[h+88>>2]=a[p+200>>2],a[h+92>>2]=Ve,Ve=a[p+196>>2],a[h+80>>2]=a[p+192>>2],a[h+84>>2]=Ve,Ve=a[h+60>>2],a[p+152>>2]=a[h+56>>2],a[p+156>>2]=Ve,Ve=a[h+52>>2],a[p+144>>2]=a[h+48>>2],a[p+148>>2]=Ve,Ve=a[h+76>>2],a[p+136>>2]=a[h+72>>2],a[p+140>>2]=Ve,Ve=a[Me+4>>2],a[p+128>>2]=a[Me>>2],a[p+132>>2]=Ve,un(f,p+144|0,p+128|0),Ve=a[p+204>>2],a[h+72>>2]=a[p+200>>2],a[h+76>>2]=Ve,Ve=a[p+196>>2],a[Me>>2]=a[p+192>>2],a[Me+4>>2]=Ve,Me=a[h+44>>2],a[p+120>>2]=a[h+40>>2],a[p+124>>2]=Me,Me=a[h+36>>2],a[p+112>>2]=a[h+32>>2],a[p+116>>2]=Me,Me=a[h+60>>2],a[p+104>>2]=a[h+56>>2],a[p+108>>2]=Me,Me=a[h+52>>2],a[p+96>>2]=a[h+48>>2],a[p+100>>2]=Me,un(f,p+112|0,p+96|0),Me=a[p+204>>2],a[h+56>>2]=a[p+200>>2],a[h+60>>2]=Me,Me=a[p+196>>2],a[h+48>>2]=a[p+192>>2],a[h+52>>2]=Me,Me=a[h+28>>2],a[p+88>>2]=a[h+24>>2],a[p+92>>2]=Me,Me=a[h+20>>2],a[p+80>>2]=a[h+16>>2],a[p+84>>2]=Me,Me=a[h+44>>2],a[p+72>>2]=a[h+40>>2],a[p+76>>2]=Me,Me=a[h+36>>2],a[p+64>>2]=a[h+32>>2],a[p+68>>2]=Me,un(f,p+80|0,p- -64|0),Me=a[p+204>>2],a[h+40>>2]=a[p+200>>2],a[h+44>>2]=Me,Me=a[p+196>>2],a[h+32>>2]=a[p+192>>2],a[h+36>>2]=Me,Me=a[h+12>>2],a[p+56>>2]=a[h+8>>2],a[p+60>>2]=Me,Me=a[h+4>>2],a[p+48>>2]=a[h>>2],a[p+52>>2]=Me,Me=a[h+28>>2],a[p+40>>2]=a[h+24>>2],a[p+44>>2]=Me,Me=a[h+20>>2],a[p+32>>2]=a[h+16>>2],a[p+36>>2]=Me,un(f,p+48|0,p+32|0),Me=a[p+204>>2],a[h+24>>2]=a[p+200>>2],a[h+28>>2]=Me,Me=a[p+196>>2],a[h+16>>2]=a[p+192>>2],a[h+20>>2]=Me,Me=a[p+220>>2],a[p+24>>2]=a[p+216>>2],a[p+28>>2]=Me,Me=a[p+212>>2],a[p+16>>2]=a[p+208>>2],a[p+20>>2]=Me,Me=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=Me,Me=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=Me,un(f,p+16|0,p),f=a[p+192>>2],Me=a[p+196>>2],Ve=a[p+200>>2],a[h+12>>2]=c^a[p+204>>2],a[h+8>>2]=Ve^pt,a[h+4>>2]=Me^ut,a[h>>2]=f^We,Ie=p+224|0}function I8(f,c){var h,p,b,B,Q,v,L,H,j,re,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0,Jt=0,ur=0,Mr=0,Gr=0,jr=0,nn=0,fn=0,Ne=0;Ie=h=Ie-800|0,Z=a[c+44>>2],de=a[c+84>>2],we=a[c+48>>2],ke=a[c+88>>2],ye=a[c+52>>2],ee=a[c+92>>2],ut=a[c+56>>2],Me=a[c+96>>2],it=a[c+60>>2],pt=a[c+100>>2],Wt=a[(dt=c- -64|0)>>2],nr=a[c+104>>2],cr=a[c+68>>2],gr=a[c+108>>2],vr=a[c+72>>2],Sr=a[c+112>>2],yr=a[c+40>>2],Kt=a[c+80>>2],Ve=a[c+76>>2],We=a[c+116>>2],a[h+324>>2]=Ve+We,a[h+320>>2]=vr+Sr,a[h+316>>2]=cr+gr,a[h+312>>2]=Wt+nr,a[h+308>>2]=pt+it,a[h+304>>2]=Me+ut,a[h+300>>2]=ee+ye,a[h+296>>2]=we+ke,a[h+292>>2]=Z+de,a[h+288>>2]=yr+Kt,a[h+36>>2]=We-Ve,a[h+32>>2]=Sr-vr,a[h+28>>2]=gr-cr,a[h+24>>2]=nr-Wt,a[h+20>>2]=pt-it,a[h+16>>2]=Me-ut,a[h+12>>2]=ee-ye,a[h+8>>2]=ke-we,a[h+4>>2]=de-Z,a[h>>2]=Kt-yr,Ar(Z=h+288|0,Z,h),Ar(we=h+240|0,c,ye=c+40|0),Et(de=h+192|0,we),Ar(de,Z,de),a[h+452>>2]=0,a[h+456>>2]=0,a[h+460>>2]=0,a[h+464>>2]=0,a[h+468>>2]=0,a[h+436>>2]=0,a[h+440>>2]=0,a[h+444>>2]=0,a[h+448>>2]=0,a[h+432>>2]=1,AM(ke=h+576|0,h+432|0,de),Ar(de=h+720|0,ke,Z),Ar(it=h+672|0,ke,we),Ar(Me=h+48|0,de,it),Ar(Me,Me,Z=c+120|0),Ar(h+528|0,c,1632),Ar(h+480|0,ye,1632),Ar(h+624|0,de,2944),Ar(de=h+336|0,Z,Me),yc(ut=h+384|0,de),ee=S[h+384|0],de=a[c+36>>2],Z=a[c+32>>2],a[h+176>>2]=Z,a[h+180>>2]=de,we=a[c+28>>2],de=a[c+24>>2],a[h+168>>2]=de,a[h+172>>2]=we,ke=a[c+20>>2],we=a[c+16>>2],a[h+160>>2]=we,a[h+164>>2]=ke,ye=a[c+12>>2],ke=a[c+8>>2],a[h+152>>2]=ke,a[h+156>>2]=ye,pt=a[c+4>>2],ye=a[c>>2],a[h+144>>2]=ye,a[h+148>>2]=pt,pt=a[c+44>>2],Wt=a[c+48>>2],nr=a[c+52>>2],cr=a[c+56>>2],gr=a[c+60>>2],vr=a[dt>>2],Sr=a[c+68>>2],yr=a[c+72>>2],Kt=a[c+76>>2],dt=a[c+40>>2],kr=a[h+484>>2],Ve=a[h+148>>2],Jt=a[h+492>>2],We=a[h+156>>2],ur=a[h+500>>2],bt=a[h+164>>2],Mr=a[h+508>>2],Ye=a[h+172>>2],Gr=a[h+516>>2],or=a[h+180>>2],jr=a[h+480>>2],nn=a[h+488>>2],fn=a[h+496>>2],Ne=a[h+504>>2],ee=0-(1&ee)|0,a[h+176>>2]=Z^ee&(Z^a[h+512>>2]),a[h+168>>2]=de^ee&(de^Ne),a[h+160>>2]=we^ee&(we^fn),a[h+152>>2]=ke^ee&(ke^nn),a[h+144>>2]=ye^ee&(ye^jr),a[h+180>>2]=or^ee&(or^Gr),a[h+172>>2]=Ye^ee&(Ye^Mr),a[h+164>>2]=bt^ee&(bt^ur),a[h+156>>2]=We^ee&(We^Jt),a[h+148>>2]=Ve^ee&(Ve^kr),or=a[h+528>>2],kr=a[h+532>>2],Jt=a[h+536>>2],ur=a[h+540>>2],Mr=a[h+544>>2],Gr=a[h+548>>2],jr=a[h+552>>2],nn=a[h+556>>2],fn=a[h+560>>2],Ne=a[h+564>>2],Z=a[h+672>>2],p=a[h+624>>2],de=a[h+676>>2],b=a[h+628>>2],we=a[h+680>>2],B=a[h+632>>2],ke=a[h+684>>2],Q=a[h+636>>2],ye=a[h+688>>2],v=a[h+640>>2],Ve=a[h+692>>2],L=a[h+644>>2],We=a[h+696>>2],H=a[h+648>>2],bt=a[h+700>>2],j=a[h+652>>2],Ye=a[h+704>>2],re=a[h+656>>2],Or=a[h+708>>2],a[h+708>>2]=Or^ee&(a[h+660>>2]^Or),a[h+704>>2]=Ye^ee&(Ye^re),a[h+700>>2]=bt^ee&(bt^j),a[h+696>>2]=We^ee&(We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z,Z=a[h+408>>2],a[h+408>>2]=c&(0-Z^Z)^Z,Z=a[h+412>>2],a[h+412>>2]=c&(0-Z^Z)^Z,Z=a[h+416>>2],a[h+416>>2]=c&(0-Z^Z)^Z,Z=c,c=a[h+420>>2],a[h+420>>2]=Z&(0-c^c)^c,yc(f,ut),Ie=h+800|0}function K5(f,c){var h,p,b,B,Q,v,L,H,j,re=0,Z=0;Ie=h=Ie-288|0,p=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,b=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,B=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,Q=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,v=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,L=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,H=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,j=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,f=a[c+124>>2],a[h+280>>2]=a[c+120>>2],a[h+284>>2]=f,f=a[c+116>>2],a[h+272>>2]=a[c+112>>2],a[h+276>>2]=f,f=a[c+108>>2],a[h+248>>2]=a[c+104>>2],a[h+252>>2]=f,f=a[c+100>>2],a[h+240>>2]=a[c+96>>2],a[h+244>>2]=f,f=a[c+124>>2],a[h+232>>2]=a[c+120>>2],a[h+236>>2]=f,f=a[c+116>>2],a[h+224>>2]=a[c+112>>2],a[h+228>>2]=f,un(Z=h+256|0,h+240|0,h+224|0),f=a[h+268>>2],a[c+120>>2]=a[h+264>>2],a[c+124>>2]=f,f=a[h+260>>2],a[c+112>>2]=a[h+256>>2],a[c+116>>2]=f,f=a[c+92>>2],a[h+216>>2]=a[c+88>>2],a[h+220>>2]=f,f=a[c+84>>2],a[h+208>>2]=a[c+80>>2],a[h+212>>2]=f,f=a[c+108>>2],a[h+200>>2]=a[c+104>>2],a[h+204>>2]=f,f=a[c+100>>2],a[h+192>>2]=a[c+96>>2],a[h+196>>2]=f,un(Z,h+208|0,h+192|0),f=a[h+268>>2],a[c+104>>2]=a[h+264>>2],a[c+108>>2]=f,f=a[h+260>>2],a[c+96>>2]=a[h+256>>2],a[c+100>>2]=f,f=a[c+76>>2],a[h+184>>2]=a[c+72>>2],a[h+188>>2]=f,re=a[4+(f=c- -64|0)>>2],a[h+176>>2]=a[f>>2],a[h+180>>2]=re,re=a[c+92>>2],a[h+168>>2]=a[c+88>>2],a[h+172>>2]=re,re=a[c+84>>2],a[h+160>>2]=a[c+80>>2],a[h+164>>2]=re,un(Z,h+176|0,h+160|0),re=a[h+268>>2],a[c+88>>2]=a[h+264>>2],a[c+92>>2]=re,re=a[h+260>>2],a[c+80>>2]=a[h+256>>2],a[c+84>>2]=re,re=a[c+60>>2],a[h+152>>2]=a[c+56>>2],a[h+156>>2]=re,re=a[c+52>>2],a[h+144>>2]=a[c+48>>2],a[h+148>>2]=re,re=a[c+76>>2],a[h+136>>2]=a[c+72>>2],a[h+140>>2]=re,re=a[f+4>>2],a[h+128>>2]=a[f>>2],a[h+132>>2]=re,un(Z,h+144|0,h+128|0),re=a[h+268>>2],a[c+72>>2]=a[h+264>>2],a[c+76>>2]=re,re=a[h+260>>2],a[f>>2]=a[h+256>>2],a[f+4>>2]=re,re=a[c+44>>2],a[h+120>>2]=a[c+40>>2],a[h+124>>2]=re,re=a[c+36>>2],a[h+112>>2]=a[c+32>>2],a[h+116>>2]=re,re=a[c+60>>2],a[h+104>>2]=a[c+56>>2],a[h+108>>2]=re,re=a[c+52>>2],a[h+96>>2]=a[c+48>>2],a[h+100>>2]=re,un(Z,h+112|0,h+96|0),re=a[h+268>>2],a[c+56>>2]=a[h+264>>2],a[c+60>>2]=re,re=a[h+260>>2],a[c+48>>2]=a[h+256>>2],a[c+52>>2]=re,re=a[c+28>>2],a[h+88>>2]=a[c+24>>2],a[h+92>>2]=re,re=a[c+20>>2],a[h+80>>2]=a[c+16>>2],a[h+84>>2]=re,re=a[c+44>>2],a[h+72>>2]=a[c+40>>2],a[h+76>>2]=re,re=a[c+36>>2],a[h+64>>2]=a[c+32>>2],a[h+68>>2]=re,un(Z,h+80|0,h- -64|0),re=a[h+268>>2],a[c+40>>2]=a[h+264>>2],a[c+44>>2]=re,re=a[h+260>>2],a[c+32>>2]=a[h+256>>2],a[c+36>>2]=re,re=a[c+12>>2],a[h+56>>2]=a[c+8>>2],a[h+60>>2]=re,re=a[c+4>>2],a[h+48>>2]=a[c>>2],a[h+52>>2]=re,re=a[c+28>>2],a[h+40>>2]=a[c+24>>2],a[h+44>>2]=re,re=a[c+20>>2],a[h+32>>2]=a[c+16>>2],a[h+36>>2]=re,un(Z,h+48|0,h+32|0),re=a[h+268>>2],a[c+24>>2]=a[h+264>>2],a[c+28>>2]=re,re=a[h+260>>2],a[c+16>>2]=a[h+256>>2],a[c+20>>2]=re,re=a[h+284>>2],a[h+24>>2]=a[h+280>>2],a[h+28>>2]=re,re=a[h+276>>2],a[h+16>>2]=a[h+272>>2],a[h+20>>2]=re,re=a[c+12>>2],a[h+8>>2]=a[c+8>>2],a[h+12>>2]=re,re=a[c+4>>2],a[h>>2]=a[c>>2],a[h+4>>2]=re,un(Z,h+16|0,h),Z=a[h+268>>2],a[c+8>>2]=a[h+264>>2],a[c+12>>2]=Z,Z=a[h+260>>2],a[c>>2]=a[h+256>>2],a[c+4>>2]=Z,a[c+12>>2]=(S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24)^H,a[c+8>>2]=(S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24)^L,a[c+4>>2]=(S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24)^v,a[c>>2]=(S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24)^j,a[f>>2]=(S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24)^Q,a[c+68>>2]=(S[c+68|0]|S[c+69|0]<<8|S[c+70|0]<<16|S[c+71|0]<<24)^B,a[c+72>>2]=(S[c+72|0]|S[c+73|0]<<8|S[c+74|0]<<16|S[c+75|0]<<24)^b,a[c+76>>2]=(S[c+76|0]|S[c+77|0]<<8|S[c+78|0]<<16|S[c+79|0]<<24)^p,Ie=h+288|0}function tH(f,c,h,p){var b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We=0,ut=0,pt=0,bt=0;Ie=b=Ie-240|0,a[b+200>>2]=0,a[b+204>>2]=0,a[b+192>>2]=0,a[b+196>>2]=0,Di(ut=b+192|0,c,h),pt=S[p+16|0]|S[p+17|0]<<8|S[p+18|0]<<16|S[p+19|0]<<24,bt=S[0|(c=p- -64|0)]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,We=S[p+80|0]|S[p+81|0]<<8|S[p+82|0]<<16|S[p+83|0]<<24,B=S[p+32|0]|S[p+33|0]<<8|S[p+34|0]<<16|S[p+35|0]<<24,Q=S[p+48|0]|S[p+49|0]<<8|S[p+50|0]<<16|S[p+51|0]<<24,v=S[p+20|0]|S[p+21|0]<<8|S[p+22|0]<<16|S[p+23|0]<<24,L=S[p+68|0]|S[p+69|0]<<8|S[p+70|0]<<16|S[p+71|0]<<24,H=S[p+84|0]|S[p+85|0]<<8|S[p+86|0]<<16|S[p+87|0]<<24,j=S[p+36|0]|S[p+37|0]<<8|S[p+38|0]<<16|S[p+39|0]<<24,re=S[p+52|0]|S[p+53|0]<<8|S[p+54|0]<<16|S[p+55|0]<<24,Z=S[p+24|0]|S[p+25|0]<<8|S[p+26|0]<<16|S[p+27|0]<<24,ee=S[p+72|0]|S[p+73|0]<<8|S[p+74|0]<<16|S[p+75|0]<<24,de=S[p+88|0]|S[p+89|0]<<8|S[p+90|0]<<16|S[p+91|0]<<24,we=S[p+40|0]|S[p+41|0]<<8|S[p+42|0]<<16|S[p+43|0]<<24,ke=S[p+56|0]|S[p+57|0]<<8|S[p+58|0]<<16|S[p+59|0]<<24,ye=a[b+192>>2],Me=a[b+196>>2],Ve=a[b+200>>2],a[b+204>>2]=(S[p+44|0]|S[p+45|0]<<8|S[p+46|0]<<16|S[p+47|0]<<24)&(S[p+60|0]|S[p+61|0]<<8|S[p+62|0]<<16|S[p+63|0]<<24)^(S[p+28|0]|S[p+29|0]<<8|S[p+30|0]<<16|S[p+31|0]<<24)^(S[p+76|0]|S[p+77|0]<<8|S[p+78|0]<<16|S[p+79|0]<<24)^a[b+204>>2]^(S[p+92|0]|S[p+93|0]<<8|S[p+94|0]<<16|S[p+95|0]<<24),a[b+200>>2]=we&ke^de^Ve^ee^Z,a[b+196>>2]=j&re^H^Me^L^v,a[b+192>>2]=B&Q^pt^bt^We^ye,yo(h+ut|0,0,16-h|0),Di(f,ut,h),h=a[b+192>>2],ut=a[b+196>>2],pt=a[b+200>>2],bt=a[b+204>>2],f=a[p+92>>2],a[b+232>>2]=a[p+88>>2],a[b+236>>2]=f,f=a[p+84>>2],a[b+224>>2]=a[p+80>>2],a[b+228>>2]=f,f=a[p+76>>2],a[b+184>>2]=a[p+72>>2],a[b+188>>2]=f,f=a[c+4>>2],a[b+176>>2]=a[c>>2],a[b+180>>2]=f,f=a[p+92>>2],a[b+168>>2]=a[p+88>>2],a[b+172>>2]=f,f=a[p+84>>2],a[b+160>>2]=a[p+80>>2],a[b+164>>2]=f,un(f=b+208|0,b+176|0,b+160|0),We=a[b+220>>2],a[p+88>>2]=a[b+216>>2],a[p+92>>2]=We,We=a[b+212>>2],a[p+80>>2]=a[b+208>>2],a[p+84>>2]=We,We=a[p+60>>2],a[b+152>>2]=a[p+56>>2],a[b+156>>2]=We,We=a[p+52>>2],a[b+144>>2]=a[p+48>>2],a[b+148>>2]=We,We=a[p+76>>2],a[b+136>>2]=a[p+72>>2],a[b+140>>2]=We,We=a[c+4>>2],a[b+128>>2]=a[c>>2],a[b+132>>2]=We,un(f,b+144|0,b+128|0),We=a[b+220>>2],a[p+72>>2]=a[b+216>>2],a[p+76>>2]=We,We=a[b+212>>2],a[c>>2]=a[b+208>>2],a[c+4>>2]=We,c=a[p+44>>2],a[b+120>>2]=a[p+40>>2],a[b+124>>2]=c,c=a[p+36>>2],a[b+112>>2]=a[p+32>>2],a[b+116>>2]=c,c=a[p+60>>2],a[b+104>>2]=a[p+56>>2],a[b+108>>2]=c,c=a[p+52>>2],a[b+96>>2]=a[p+48>>2],a[b+100>>2]=c,un(f,b+112|0,b+96|0),c=a[b+220>>2],a[p+56>>2]=a[b+216>>2],a[p+60>>2]=c,c=a[b+212>>2],a[p+48>>2]=a[b+208>>2],a[p+52>>2]=c,c=a[p+28>>2],a[b+88>>2]=a[p+24>>2],a[b+92>>2]=c,c=a[p+20>>2],a[b+80>>2]=a[p+16>>2],a[b+84>>2]=c,c=a[p+44>>2],a[b+72>>2]=a[p+40>>2],a[b+76>>2]=c,c=a[p+36>>2],a[b+64>>2]=a[p+32>>2],a[b+68>>2]=c,un(f,b+80|0,b- -64|0),c=a[b+220>>2],a[p+40>>2]=a[b+216>>2],a[p+44>>2]=c,c=a[b+212>>2],a[p+32>>2]=a[b+208>>2],a[p+36>>2]=c,c=a[p+12>>2],a[b+56>>2]=a[p+8>>2],a[b+60>>2]=c,c=a[p+4>>2],a[b+48>>2]=a[p>>2],a[b+52>>2]=c,c=a[p+28>>2],a[b+40>>2]=a[p+24>>2],a[b+44>>2]=c,c=a[p+20>>2],a[b+32>>2]=a[p+16>>2],a[b+36>>2]=c,un(f,b+48|0,b+32|0),c=a[b+220>>2],a[p+24>>2]=a[b+216>>2],a[p+28>>2]=c,c=a[b+212>>2],a[p+16>>2]=a[b+208>>2],a[p+20>>2]=c,c=a[b+236>>2],a[b+24>>2]=a[b+232>>2],a[b+28>>2]=c,c=a[b+228>>2],a[b+16>>2]=a[b+224>>2],a[b+20>>2]=c,c=a[p+12>>2],a[b+8>>2]=a[p+8>>2],a[b+12>>2]=c,c=a[p+4>>2],a[b>>2]=a[p>>2],a[b+4>>2]=c,un(f,b+16|0,b),f=a[b+208>>2],c=a[b+212>>2],We=a[b+216>>2],a[p+12>>2]=bt^a[b+220>>2],a[p+8>>2]=We^pt,a[p+4>>2]=c^ut,a[p>>2]=f^h,Ie=b+240|0}function rH(f,c,h,p,b){f|=0,c|=0,h|=0,p|=0;var B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0;if(v=1886610805^(p=S[0|(b|=0)]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),Q=1936682341^(B=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24),H=1852142177^p,L=1819895653^B,B=1852075885^(p=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24),b=1685025377^(re=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24),j=2037671283^p,re^=1952801890,(0|(we=(c+h|0)-(ee=7&h)|0))!=(0|c))for(;j=H=H+(p=j^(Me=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24))|0,L=L+(re^=Ve=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24)|0,L=p>>>0>H>>>0?L+1|0:L,Q=b+Q|0,Q=(de=v)>>>0>(v=B+v|0)>>>0?Q+1|0:Q,b=H+(B=Ke(B,b,13)^v)|0,H=L+(Z=$^Q)|0,Z=Ke(B,Z,17)^b,ke=Ke(Z,H=(de=b>>>0<B>>>0?H+1|0:H)^$,13),ye=$,p=Ke(p,re,16),B=L^$,L=p^j,v=Ke(v,Q,32),j=H,H=$+B|0,j=1+(v=j+(Q=(p=L+v|0)>>>0<v>>>0?H+1|0:H)|0)|0,H=v,H=(v=p+Z|0)>>>0<p>>>0?j:H,ke=Ke(j=v^ke,re=H^ye,17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)^p,Q=Ke(p,B=L^$,13),B=B+j|0,c=$^(c>>>0>(p=c+p|0)>>>0?B+1:B),v=Ke(p^=Q,c,17)^v,B=$^H,L=1+(c=c+b|0)|0,b=c,c=Ke(c=h+p|0,h=h>>>0>c>>>0?L:b,32)^v^c,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,c=h^$^B,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,0}function nH(f,c){var h,p,b,B,Q,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0;Ie=h=Ie-624|0,Et(v=h+480|0,c),Ar(v,1632,v),H=a[h+516>>2],a[h+276>>2]=H,j=a[h+512>>2],a[h+272>>2]=j,re=a[h+508>>2],a[h+268>>2]=re,Z=a[h+504>>2],a[h+264>>2]=Z,ee=a[h+500>>2],a[h+260>>2]=ee,de=a[h+496>>2],a[h+256>>2]=de,we=a[h+492>>2],a[h+252>>2]=we,ke=a[h+488>>2],a[h+248>>2]=ke,ye=a[h+484>>2],a[h+244>>2]=ye,Ve=a[h+480>>2],a[h+240>>2]=Ve+1,Ar(L=h+240|0,L,33968),a[h+468>>2]=H-12055116,a[h+464>>2]=j-18696448,a[h+460>>2]=re-3247719,a[h+456>>2]=Z-6275908,a[h+452>>2]=ee-8787816,a[h+448>>2]=de+114729,a[h+444>>2]=we+6949391,a[h+440>>2]=ke-15372611,a[h+436>>2]=ye+13857413,a[h+432>>2]=Ve-10913610,Ar(Me=h+192|0,v,1584),a[h+228>>2]=0-a[h+228>>2],a[h+224>>2]=0-a[h+224>>2],a[h+220>>2]=0-a[h+220>>2],a[h+216>>2]=0-a[h+216>>2],a[h+212>>2]=0-a[h+212>>2],a[h+208>>2]=0-a[h+208>>2],a[h+204>>2]=0-a[h+204>>2],a[h+200>>2]=0-a[h+200>>2],a[h+196>>2]=0-a[h+196>>2],a[h+192>>2]=~a[h+192>>2],Ar(Me,Me,h+432|0),v=AM(p=h+384|0,L,Me),Ar(L=h+336|0,p,c),yc(b=h+576|0,L),Q=S[h+576|0],cr=a[h+420>>2],L=a[h+372>>2],gr=a[h+416>>2],We=a[h+368>>2],vr=a[h+412>>2],ut=a[h+364>>2],Sr=a[h+408>>2],pt=a[h+360>>2],yr=a[h+404>>2],bt=a[h+356>>2],Kt=a[h+400>>2],Ye=a[h+352>>2],or=a[h+396>>2],it=a[h+348>>2],Or=a[h+392>>2],dt=a[h+344>>2],kr=a[h+388>>2],Wt=a[h+340>>2],B=a[h+384>>2],nr=a[h+336>>2],c=v-1|0,a[h+612>>2]=c&H,a[h+608>>2]=c&j,a[h+604>>2]=c&re,a[h+600>>2]=c&Z,a[h+596>>2]=c&ee,a[h+592>>2]=c&de,a[h+588>>2]=c&we,a[h+584>>2]=c&ke,a[h+580>>2]=c&ye,a[h+576>>2]=Ve|0-v,nr=c&(0-(nr^(v=0-(1&Q)|0)&(nr^0-nr))^B)^B,a[h+384>>2]=nr,Wt=kr^c&(kr^0-(Wt^v&(Wt^0-Wt))),a[h+388>>2]=Wt,dt=Or^c&(Or^0-(dt^v&(dt^0-dt))),a[h+392>>2]=dt,it=or^c&(or^0-(it^v&(it^0-it))),a[h+396>>2]=it,Ye=Kt^c&(Kt^0-(Ye^v&(Ye^0-Ye))),a[h+400>>2]=Ye,bt=yr^c&(yr^0-(bt^v&(bt^0-bt))),a[h+404>>2]=bt,pt=Sr^c&(Sr^0-(pt^v&(pt^0-pt))),a[h+408>>2]=pt,ut=vr^c&(vr^0-(ut^v&(ut^0-ut))),a[h+412>>2]=ut,We=gr^c&(gr^0-(We^v&(We^0-We))),a[h+416>>2]=We,v=cr^c&(cr^0-(L^v&(L^0-L))),a[h+420>>2]=v,a[h+564>>2]=H,a[h+560>>2]=j,a[h+556>>2]=re,a[h+552>>2]=Z,a[h+548>>2]=ee,a[h+544>>2]=de,a[h+540>>2]=we,a[h+536>>2]=ke,a[h+532>>2]=ye,a[h+528>>2]=Ve-1,Ar(c=h+528|0,c,b),Ar(c,c,34016),H=a[h+192>>2],j=a[h+528>>2],re=a[h+196>>2],Z=a[h+532>>2],ee=a[h+200>>2],de=a[h+536>>2],we=a[h+204>>2],ke=a[h+540>>2],ye=a[h+208>>2],Ve=a[h+544>>2],L=a[h+212>>2],cr=a[h+548>>2],gr=a[h+216>>2],vr=a[h+552>>2],Sr=a[h+220>>2],yr=a[h+556>>2],Kt=a[h+224>>2],or=a[h+560>>2],Or=a[h+228>>2],kr=a[h+564>>2],a[h+180>>2]=v<<1,a[h+176>>2]=We<<1,a[h+172>>2]=ut<<1,a[h+168>>2]=pt<<1,a[h+164>>2]=bt<<1,a[h+160>>2]=Ye<<1,a[h+156>>2]=it<<1,a[h+152>>2]=dt<<1,a[h+148>>2]=Wt<<1,a[h+144>>2]=nr<<1,a[h+564>>2]=kr-Or,a[h+560>>2]=or-Kt,a[h+556>>2]=yr-Sr,a[h+552>>2]=vr-gr,a[h+548>>2]=cr-L,a[h+544>>2]=Ve-ye,a[h+540>>2]=ke-we,a[h+536>>2]=de-ee,a[h+532>>2]=Z-re,a[h+528>>2]=j-H,Ar(v=h+144|0,v,Me),Ar(Me=h+96|0,c,34064),Et(h+288|0,p),c=a[h+324>>2],a[h+84>>2]=0-c,H=a[h+320>>2],a[h+80>>2]=0-H,j=a[h+316>>2],a[h+76>>2]=0-j,re=a[h+312>>2],a[h+72>>2]=0-re,Z=a[h+308>>2],a[h+68>>2]=0-Z,ee=a[h+304>>2],a[h+64>>2]=0-ee,de=a[h+300>>2],a[h+60>>2]=0-de,we=a[h+296>>2],a[h+56>>2]=0-we,ke=a[h+292>>2],a[h+52>>2]=0-ke,ye=a[h+288>>2],a[h+48>>2]=1-ye,a[h+36>>2]=c,a[h+32>>2]=H,a[h+28>>2]=j,a[h+24>>2]=re,a[h+20>>2]=Z,a[h+16>>2]=ee,a[h+12>>2]=de,a[h+8>>2]=we,a[h+4>>2]=ke,a[h>>2]=ye+1,Ar(f,v,h),Ar(f+40|0,c=h+48|0,Me),Ar(f+80|0,Me,h),Ar(f+120|0,v,c),Ie=h+624|0}function sM(f,c,h){var p,b=0,B=0,Q=0,v=0,L=0;Ie=p=Ie+-64|0;e:{if((h-65&255)>>>0>191){if(B=-1,!(S[f+80|0]|S[f+81|0]<<8|S[f+82|0]<<16|S[f+83|0]<<24|S[f+84|0]|S[f+85|0]<<8|S[f+86|0]<<16|S[f+87|0]<<24)){if((Q=S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24)>>>0>=129){if(v=b=S[f+68|0]|S[f+69|0]<<8|S[f+70|0]<<16|S[f+71|0]<<24,b=(Q=128+(B=S[f+64|0]|S[f+65|0]<<8|S[f+66|0]<<16|S[f+67|0]<<24)|0)>>>0<128?b+1|0:b,k[f+64|0]=Q,k[f+65|0]=Q>>>8,k[f+66|0]=Q>>>16,k[f+67|0]=Q>>>24,k[f+68|0]=b,k[f+69|0]=b>>>8,k[f+70|0]=b>>>16,k[f+71|0]=b>>>24,b=S[f+76|0]|S[f+77|0]<<8|S[f+78|0]<<16|S[f+79|0]<<24,b=(L=B=(0|v)==-1&B>>>0>4294967167)>>>0>(B=B+(S[f+72|0]|S[f+73|0]<<8|S[f+74|0]<<16|S[f+75|0]<<24)|0)>>>0?b+1|0:b,k[f+72|0]=B,k[f+73|0]=B>>>8,k[f+74|0]=B>>>16,k[f+75|0]=B>>>24,k[f+76|0]=b,k[f+77|0]=b>>>8,k[f+78|0]=b>>>16,k[f+79|0]=b>>>24,Qr(f,b=f+96|0),B=(S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24)-128|0,k[f+352|0]=B,k[f+353|0]=B>>>8,k[f+354|0]=B>>>16,k[f+355|0]=B>>>24,B>>>0>=129)break e;Di(b,f+224|0,B),Q=S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24}B=L=S[f+68|0]|S[f+69|0]<<8|S[f+70|0]<<16|S[f+71|0]<<24,B=(v=Q+(b=S[f+64|0]|S[f+65|0]<<8|S[f+66|0]<<16|S[f+67|0]<<24)|0)>>>0<Q>>>0?B+1|0:B,k[f+64|0]=v,k[f+65|0]=v>>>8,k[f+66|0]=v>>>16,k[f+67|0]=v>>>24,k[f+68|0]=B,k[f+69|0]=B>>>8,k[f+70|0]=B>>>16,k[f+71|0]=B>>>24,B=(0|B)==(0|L)&b>>>0>v>>>0|B>>>0<L>>>0,b=S[f+76|0]|S[f+77|0]<<8|S[f+78|0]<<16|S[f+79|0]<<24,b=(L=B)>>>0>(B=B+(S[f+72|0]|S[f+73|0]<<8|S[f+74|0]<<16|S[f+75|0]<<24)|0)>>>0?b+1|0:b,k[f+72|0]=B,k[f+73|0]=B>>>8,k[f+74|0]=B>>>16,k[f+75|0]=B>>>24,k[f+76|0]=b,k[f+77|0]=b>>>8,k[f+78|0]=b>>>16,k[f+79|0]=b>>>24,S[f+356|0]&&(k[f+88|0]=255,k[f+89|0]=255,k[f+90|0]=255,k[f+91|0]=255,k[f+92|0]=255,k[f+93|0]=255,k[f+94|0]=255,k[f+95|0]=255),k[f+80|0]=255,k[f+81|0]=255,k[f+82|0]=255,k[f+83|0]=255,k[f+84|0]=255,k[f+85|0]=255,k[f+86|0]=255,k[f+87|0]=255,yo((B=f+96|0)+Q|0,0,256-Q|0),Qr(f,B),b=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,a[p>>2]=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,a[p+4>>2]=b,b=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,a[p+8>>2]=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,a[p+12>>2]=b,b=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,a[p+16>>2]=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,a[p+20>>2]=b,b=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,a[p+24>>2]=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,a[p+28>>2]=b,b=S[f+36|0]|S[f+37|0]<<8|S[f+38|0]<<16|S[f+39|0]<<24,a[p+32>>2]=S[f+32|0]|S[f+33|0]<<8|S[f+34|0]<<16|S[f+35|0]<<24,a[p+36>>2]=b,b=S[f+44|0]|S[f+45|0]<<8|S[f+46|0]<<16|S[f+47|0]<<24,a[p+40>>2]=S[f+40|0]|S[f+41|0]<<8|S[f+42|0]<<16|S[f+43|0]<<24,a[p+44>>2]=b,b=S[f+52|0]|S[f+53|0]<<8|S[f+54|0]<<16|S[f+55|0]<<24,a[p+48>>2]=S[f+48|0]|S[f+49|0]<<8|S[f+50|0]<<16|S[f+51|0]<<24,a[p+52>>2]=b,b=S[f+60|0]|S[f+61|0]<<8|S[f+62|0]<<16|S[f+63|0]<<24,a[p+56>>2]=S[f+56|0]|S[f+57|0]<<8|S[f+58|0]<<16|S[f+59|0]<<24,a[p+60>>2]=b,Di(c,p,h),bn(f,64),bn(B,256),B=0}return Ie=p- -64|0,B}Bs(),Rr()}ot(1386,1234,306,1142),Rr()}function iH(f,c,h){f|=0,c|=0,h|=0;var p,b,B,Q=0,v=0;Ie=p=Ie-192|0,a[p+144>>2]=0,a[p+148>>2]=0,a[p+152>>2]=0,a[p+156>>2]=0,a[p+104>>2]=0,a[p+108>>2]=0,a[p+112>>2]=0,a[p+116>>2]=0,a[p+120>>2]=0,a[p+124>>2]=0,Q=a[8799],a[p+168>>2]=a[8798],a[p+172>>2]=Q,Q=a[8801],a[p+176>>2]=a[8800],a[p+180>>2]=Q,Q=a[8803],a[p+184>>2]=a[8802],a[p+188>>2]=Q,a[p+128>>2]=0,a[p+132>>2]=0,a[p+136>>2]=0,a[p+140>>2]=0,a[p+96>>2]=0,a[p+100>>2]=0,Q=a[8797],a[p+160>>2]=a[8796],a[p+164>>2]=Q,Q=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,a[p+80>>2]=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,a[p+84>>2]=Q,Q=S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24,a[p+88>>2]=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,a[p+92>>2]=Q,Q=S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24,a[p+64>>2]=S[0|h]|S[h+1|0]<<8|S[h+2|0]<<16|S[h+3|0]<<24,a[p+68>>2]=Q,Q=S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24,a[p+72>>2]=S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24,a[p+76>>2]=Q,Qre(h=p+128|0,Q=p- -64|0),ho(h),v=a[p+156>>2],a[p+24>>2]=a[p+152>>2],a[p+28>>2]=v,v=a[p+148>>2],a[p+16>>2]=a[p+144>>2],a[p+20>>2]=v,v=a[p+140>>2],a[p+8>>2]=a[p+136>>2],a[p+12>>2]=v,v=a[p+132>>2],a[p>>2]=a[p+128>>2],a[p+4>>2]=v,a[p+120>>2]=0,a[p+124>>2]=0,a[p+112>>2]=0,a[p+116>>2]=0,a[p+104>>2]=0,a[p+108>>2]=0,a[p+96>>2]=0,a[p+100>>2]=0,v=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[p+80>>2]=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[p+84>>2]=v,v=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[p+88>>2]=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,a[p+92>>2]=v,v=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,b=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,B=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,a[p+56>>2]=0,a[p+60>>2]=0,a[p+48>>2]=0,a[p+52>>2]=0,a[p+40>>2]=0,a[p+44>>2]=0,a[p+64>>2]=B,a[p+68>>2]=c,a[p+72>>2]=v,a[p+76>>2]=b,a[p+32>>2]=0,a[p+36>>2]=0,UTe(Q,p),c=a[p+124>>2],a[p+184>>2]=a[p+120>>2],a[p+188>>2]=c,c=a[p+116>>2],a[p+176>>2]=a[p+112>>2],a[p+180>>2]=c,c=a[p+108>>2],a[p+168>>2]=a[p+104>>2],a[p+172>>2]=c,c=a[p+100>>2],a[p+160>>2]=a[p+96>>2],a[p+164>>2]=c,c=a[p+92>>2],a[p+152>>2]=a[p+88>>2],a[p+156>>2]=c,c=a[p+84>>2],a[p+144>>2]=a[p+80>>2],a[p+148>>2]=c,c=a[p+76>>2],a[p+136>>2]=a[p+72>>2],a[p+140>>2]=c,c=a[p+68>>2],a[p+128>>2]=a[p+64>>2],a[p+132>>2]=c,ho(h),c=a[p+156>>2],Q=a[p+152>>2],k[f+24|0]=Q,k[f+25|0]=Q>>>8,k[f+26|0]=Q>>>16,k[f+27|0]=Q>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[p+148>>2],Q=a[p+144>>2],k[f+16|0]=Q,k[f+17|0]=Q>>>8,k[f+18|0]=Q>>>16,k[f+19|0]=Q>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[p+140>>2],Q=a[p+136>>2],k[f+8|0]=Q,k[f+9|0]=Q>>>8,k[f+10|0]=Q>>>16,k[f+11|0]=Q>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[p+132>>2],Q=a[p+128>>2],k[0|f]=Q,k[f+1|0]=Q>>>8,k[f+2|0]=Q>>>16,k[f+3|0]=Q>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,bn(h,64),Ie=p+192|0}function cM(f){var c,h,p,b,B,Q,v,L,H,j,re=0,Z=0,ee=0,de=0,we=0;for(Ie=c=Ie-2048|0,mc(de=c+640|0,f),re=a[f+36>>2],a[c+352>>2]=a[f+32>>2],a[c+356>>2]=re,re=a[f+28>>2],a[c+344>>2]=a[f+24>>2],a[c+348>>2]=re,re=a[f+20>>2],a[c+336>>2]=a[f+16>>2],a[c+340>>2]=re,re=a[f+12>>2],a[c+328>>2]=a[f+8>>2],a[c+332>>2]=re,re=a[f+4>>2],a[c+320>>2]=a[f>>2],a[c+324>>2]=re,re=a[f+52>>2],a[c+368>>2]=a[f+48>>2],a[c+372>>2]=re,re=a[f+60>>2],a[c+376>>2]=a[f+56>>2],a[c+380>>2]=re,re=a[4+(ee=f- -64|0)>>2],a[c+384>>2]=a[ee>>2],a[c+388>>2]=re,re=a[f+76>>2],a[c+392>>2]=a[f+72>>2],a[c+396>>2]=re,re=a[f+44>>2],a[c+360>>2]=a[f+40>>2],a[c+364>>2]=re,re=a[f+92>>2],a[c+408>>2]=a[f+88>>2],a[c+412>>2]=re,re=a[f+100>>2],a[c+416>>2]=a[f+96>>2],a[c+420>>2]=re,re=a[f+108>>2],a[c+424>>2]=a[f+104>>2],a[c+428>>2]=re,re=a[f+116>>2],a[c+432>>2]=a[f+112>>2],a[c+436>>2]=re,re=a[f+84>>2],a[c+400>>2]=a[f+80>>2],a[c+404>>2]=re,Rd(Z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944|0)>>2]=a[c+16>>2],a[Z+4>>2]=re,re=a[c+12>>2],a[(Z=c+1936|0)>>2]=a[c+8>>2],a[Z+4>>2]=re,re=a[c+4>>2],a[c+1928>>2]=a[c>>2],a[c+1932>>2]=re,re=a[ee+36>>2],a[Q+32>>2]=a[ee+32>>2],a[Q+36>>2]=re,re=a[ee+28>>2],a[Q+24>>2]=a[ee+24>>2],a[Q+28>>2]=re,re=a[ee+20>>2],a[Q+16>>2]=a[ee+16>>2],a[Q+20>>2]=re,re=a[ee+12>>2],a[Q+8>>2]=a[ee+8>>2],a[Q+12>>2]=re,re=a[ee+4>>2],a[Q>>2]=a[ee>>2],a[Q+4>>2]=re,re=a[de+36>>2],a[B+32>>2]=a[de+32>>2],a[B+36>>2]=re,re=a[de+28>>2],a[B+24>>2]=a[de+24>>2],a[B+28>>2]=re,re=a[de+20>>2],a[B+16>>2]=a[de+16>>2],a[B+20>>2]=re,re=a[de+12>>2],a[B+8>>2]=a[de+8>>2],a[B+12>>2]=re,re=a[de+4>>2],a[B>>2]=a[de>>2],a[B+4>>2]=re,re=f,we=k[f+33712|0],Rd(Z=c+480|0,c+1928|0),(0|we)>0?(Ar(f=c+320|0,Z,h),Ar(v,p,b),Ar(L,b,h),Ar(H,Z,p),Gu(Z,f,(c+640|0)+Lr((254&we)>>>1|0,160)|0)):(0|we)>=0||(Ar(f=c+320|0,Z=c+480|0,h),Ar(v,p,b),Ar(L,b,h),Ar(H,Z,p),Y5(Z,f,(c+640|0)+Lr((0-we&254)>>>1|0,160)|0)),Ar(c,f=c+480|0,h),Ar(ee,p,b),Ar(de,b,h),Ar(j,f,p),f=re-1|0,re;);return yc(f=c+640|0,c),f=ya(f,32),Ie=c+2048|0,f}function uM(f,c,h,p,b){var B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,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f+35|0]=p>>>24,p=We+re|0,k[f+28|0]=p,k[f+29|0]=p>>>8,k[f+30|0]=p>>>16,k[f+31|0]=p>>>24,c=c+Z|0,k[f+24|0]=c,k[f+25|0]=c>>>8,k[f+26|0]=c>>>16,k[f+27|0]=c>>>24,c=Wt+Or|0,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=ye+ee|0,k[f+16|0]=c,k[f+17|0]=c>>>8,k[f+18|0]=c>>>16,k[f+19|0]=c>>>24,c=Me+de|0,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=ut+we|0,k[f+8|0]=c,k[f+9|0]=c>>>8,k[f+10|0]=c>>>16,k[f+11|0]=c>>>24,c=h+ke|0,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=pt+Kt|0,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24}function h0(f){var c=0,h=0,p=0,b=0,B=0,Q=0,v=0,L=0,H=0;e:if(f|=0){B=(p=f-8|0)+(f=-8&(c=a[f-4>>2]))|0;t:if(!(1&c)){if(!(2&c)||(p=p-(c=a[p>>2])|0)>>>0<sn[9409])break e;f=f+c|0;r:{n:{i:{if(a[9410]!=(0|p)){if(h=a[p+12>>2],c>>>0<=255){if((0|(b=a[p+8>>2]))!=(0|h))break i;L=37620,H=a[9405]&lr(-2,c>>>3|0),a[L>>2]=H;break t}if(v=a[p+24>>2],(0|h)!=(0|p)){c=a[p+8>>2],a[c+12>>2]=h,a[h+8>>2]=c;break r}if(b=a[p+20>>2])c=p+20|0;else{if(!(b=a[p+16>>2]))break n;c=p+16|0}for(;Q=c,c=(h=b)+20|0,(b=a[h+20>>2])||(c=h+16|0,b=a[h+16>>2]););a[Q>>2]=0;break r}if(3&~(c=a[B+4>>2]))break t;return a[9407]=f,a[B+4>>2]=-2&c,a[p+4>>2]=1|f,void(a[B>>2]=f)}a[b+12>>2]=h,a[h+8>>2]=b;break t}h=0}if(v){c=a[p+28>>2];r:{if(a[(b=37924+(c<<2)|0)>>2]==(0|p)){if(a[b>>2]=h,h)break r;L=37624,H=a[9406]&lr(-2,c),a[L>>2]=H;break t}if(a[v+(a[v+16>>2]==(0|p)?16:20)>>2]=h,!h)break t}a[h+24>>2]=v,(c=a[p+16>>2])&&(a[h+16>>2]=c,a[c+24>>2]=h),(c=a[p+20>>2])&&(a[h+20>>2]=c,a[c+24>>2]=h)}}if(!(p>>>0>=B>>>0)&&1&(c=a[B+4>>2])){t:{r:{n:{i:{if(!(2&c)){if((0|B)==a[9411]){if(a[9411]=p,f=a[9408]+f|0,a[9408]=f,a[p+4>>2]=1|f,a[9410]!=(0|p))break e;return a[9407]=0,void(a[9410]=0)}if((0|B)==a[9410])return a[9410]=p,f=a[9407]+f|0,a[9407]=f,a[p+4>>2]=1|f,void(a[f+p>>2]=f);if(f=(-8&c)+f|0,h=a[B+12>>2],c>>>0<=255){if((0|(b=a[B+8>>2]))==(0|h)){L=37620,H=a[9405]&lr(-2,c>>>3|0),a[L>>2]=H;break r}a[b+12>>2]=h,a[h+8>>2]=b;break r}if(v=a[B+24>>2],(0|h)!=(0|B)){c=a[B+8>>2],a[c+12>>2]=h,a[h+8>>2]=c;break n}if(b=a[B+20>>2])c=B+20|0;else{if(!(b=a[B+16>>2]))break i;c=B+16|0}for(;Q=c,c=(h=b)+20|0,(b=a[h+20>>2])||(c=h+16|0,b=a[h+16>>2]););a[Q>>2]=0;break n}a[B+4>>2]=-2&c,a[p+4>>2]=1|f,a[f+p>>2]=f;break t}h=0}if(v){c=a[B+28>>2];n:{if((0|B)==a[(b=37924+(c<<2)|0)>>2]){if(a[b>>2]=h,h)break n;L=37624,H=a[9406]&lr(-2,c),a[L>>2]=H;break r}if(a[v+((0|B)==a[v+16>>2]?16:20)>>2]=h,!h)break r}a[h+24>>2]=v,(c=a[B+16>>2])&&(a[h+16>>2]=c,a[c+24>>2]=h),(c=a[B+20>>2])&&(a[h+20>>2]=c,a[c+24>>2]=h)}}if(a[p+4>>2]=1|f,a[f+p>>2]=f,a[9410]==(0|p))return void(a[9407]=f)}if(f>>>0<=255)return c=37660+(-8&f)|0,(b=a[9405])&(f=1<<(f>>>3))?f=a[c+8>>2]:(a[9405]=f|b,f=c),a[c+8>>2]=p,a[f+12>>2]=p,a[p+12>>2]=c,void(a[p+8>>2]=f);h=31,f>>>0<=16777215&&(h=62+((f>>>38-(c=Wr(f>>>8|0))&1)-(c<<1)|0)|0),a[p+28>>2]=h,a[p+16>>2]=0,a[p+20>>2]=0,Q=37924+(h<<2)|0;t:{r:{if((c=a[9406])&(b=1<<h)){for(h=f<<((0|h)!=31?25-(h>>>1|0):0),c=a[Q>>2];;){if(b=c,(-8&a[c+4>>2])==(0|f))break r;if(c=h>>>29|0,h<<=1,!(c=a[(Q=16+((4&c)+b|0)|0)>>2]))break}h=24,c=b}else a[9406]=c|b,h=24,c=Q;b=p,B=p,f=8;break t}c=a[b+8>>2],a[c+12>>2]=p,h=8,Q=b+8|0,B=0,f=24}a[Q>>2]=p,a[h+p>>2]=c,a[p+12>>2]=b,a[f+p>>2]=B,f=a[9413]-1|0,a[9413]=f||-1}}}function oH(f,c,h,p,b,B,Q,v,L){var H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0;if(c-65>>>0<4294967232|Q>>>0>64)f=-1;else{ke=H=Ie,Ie=H=H-512&-64;e:{t:if(!(!(!(p|b)|h)|!f|((de=255&c)-65&255)>>>0<=191|!(!(c=255&Q)||B)|c>>>0>=65)){if(c){if(!B)break t;v?(j=725511199^(S[v+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24),re=-1694144372^(S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24),Q=-1377402159^(S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24),v=1359893119^(S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24)):(j=725511199,re=-1694144372,Q=-1377402159,v=1359893119),L?(Z=327033209^(S[L+8|0]|S[L+9|0]<<8|S[L+10|0]<<16|S[L+11|0]<<24),ee=1541459225^(S[L+12|0]|S[L+13|0]<<8|S[L+14|0]<<16|S[L+15|0]<<24),we=-79577749^(S[0|L]|S[L+1|0]<<8|S[L+2|0]<<16|S[L+3|0]<<24),L=528734635^(S[L+4|0]|S[L+5|0]<<8|S[L+6|0]<<16|S[L+7|0]<<24)):(Z=327033209,ee=1541459225,we=-79577749,L=528734635),yo(H- -64|0,0,293),a[H+56>>2]=Z,a[H+60>>2]=ee,a[H+48>>2]=we,a[H+52>>2]=L,a[H+40>>2]=j,a[H+44>>2]=re,a[H+32>>2]=Q,a[H+36>>2]=v,a[H+24>>2]=1595750129,a[H+28>>2]=-1521486534,a[H+16>>2]=-23791573,a[H+20>>2]=1013904242,a[H+8>>2]=-2067093701,a[H+12>>2]=-1150833019,a[H>>2]=-222443256^(c<<8|de),a[H+4>>2]=c>>>24^1779033703,yo((Q=H+384|0)+c|0,0,128-c|0),Di(Q,B,c),Di(H+96|0,Q,128),a[H+352>>2]=128,bn(Q,128),c=128}else v?(j=725511199^(S[v+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24),re=-1694144372^(S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24),B=1359893119^(S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24),c=-1377402159^(S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24)):(j=725511199,re=-1694144372,B=1359893119,c=-1377402159),L?(Z=327033209^(S[L+8|0]|S[L+9|0]<<8|S[L+10|0]<<16|S[L+11|0]<<24),ee=1541459225^(S[L+12|0]|S[L+13|0]<<8|S[L+14|0]<<16|S[L+15|0]<<24),v=528734635^(S[L+4|0]|S[L+5|0]<<8|S[L+6|0]<<16|S[L+7|0]<<24),Q=-79577749^(S[0|L]|S[L+1|0]<<8|S[L+2|0]<<16|S[L+3|0]<<24)):(Z=327033209,ee=1541459225,v=528734635,Q=-79577749),yo(H- -64|0,0,293),a[H+56>>2]=Z,a[H+60>>2]=ee,a[H+48>>2]=Q,a[H+52>>2]=v,a[H+40>>2]=j,a[H+44>>2]=re,a[H+32>>2]=c,a[H+36>>2]=B,a[H+24>>2]=1595750129,a[H+28>>2]=-1521486534,a[H+16>>2]=-23791573,a[H+20>>2]=1013904242,a[H+8>>2]=-2067093701,a[H+12>>2]=-1150833019,a[H>>2]=-222443256^de,a[H+4>>2]=1779033703,c=0;r:if(p|b)for(L=H+224|0,v=H+96|0;;){if(Q=c+v|0,!b&p>>>0<=(B=256-c|0)>>>0){Di(Q,h,p),a[H+352>>2]=p+a[H+352>>2];break r}if(Di(Q,h,B),a[H+352>>2]=B+a[H+352>>2],j=c=a[H+68>>2],c=(re=(Q=a[H+64>>2])+128|0)>>>0<128?c+1|0:c,a[H+64>>2]=re,a[H+68>>2]=c,c=a[H+76>>2],c=(j=Q=(0|j)==-1&Q>>>0>4294967167)>>>0>(Q=Q+a[H+72>>2]|0)>>>0?c+1|0:c,a[H+72>>2]=Q,a[H+76>>2]=c,Qr(H,v),Di(v,L,128),c=a[H+352>>2]-128|0,a[H+352>>2]=c,h=h+B|0,!((b=b-(p>>>0<B>>>0)|0)|(p=p-B|0)))break}sM(H,f,de),Ie=ke;break e}Bs(),Rr()}f=0}return f}function aH(f,c,h,p,b,B,Q){var v,L,H=0,j=0,re=0;if(Ie=v=Ie+-64|0,L=wo(32)){a[v+36>>2]=0,a[v+40>>2]=0,a[v+28>>2]=0,a[v+32>>2]=0,a[v+24>>2]=16,a[v+20>>2]=b,a[v+16>>2]=p,a[v+12>>2]=h,a[v+8>>2]=32,a[v+4>>2]=L,a[v+60>>2]=0,a[v+56>>2]=1,a[v+52>>2]=1,a[v+48>>2]=c,a[v+44>>2]=f;e:if(f=J5(v+4|0,Q))bn(L,32);else{if(B){H=v+4|0,Ie=b=Ie-32|0,f=-31;t:{r:{n:switch(Q-1|0){case 1:f=S[1434]|S[1435]<<8|S[1436]<<16|S[1437]<<24,c=S[1430]|S[1431]<<8|S[1432]<<16|S[1433]<<24,k[0|B]=c,k[B+1|0]=c>>>8,k[B+2|0]=c>>>16,k[B+3|0]=c>>>24,k[B+4|0]=f,k[B+5|0]=f>>>8,k[B+6|0]=f>>>16,k[B+7|0]=f>>>24,f=S[1439]|S[1440]<<8|S[1441]<<16|S[1442]<<24,c=S[1435]|S[1436]<<8|S[1437]<<16|S[1438]<<24,k[B+5|0]=c,k[B+6|0]=c>>>8,k[B+7|0]=c>>>16,k[B+8|0]=c>>>24,k[B+9|0]=f,k[B+10|0]=f>>>8,k[B+11|0]=f>>>16,k[B+12|0]=f>>>24,h=-12,c=12;break r;case 0:break n;default:break t}f=S[1422]|S[1423]<<8|S[1424]<<16|S[1425]<<24,c=S[1418]|S[1419]<<8|S[1420]<<16|S[1421]<<24,k[0|B]=c,k[B+1|0]=c>>>8,k[B+2|0]=c>>>16,k[B+3|0]=c>>>24,k[B+4|0]=f,k[B+5|0]=f>>>8,k[B+6|0]=f>>>16,k[B+7|0]=f>>>24,f=S[1426]|S[1427]<<8|S[1428]<<16|S[1429]<<24,k[B+8|0]=f,k[B+9|0]=f>>>8,k[B+10|0]=f>>>16,k[B+11|0]=f>>>24,h=-11,c=11}if(!(f=Qn(H)))if(k[b+13|0]=0,k[b+11|0]=49,k[b+12|0]=57,(h=h+128|0)>>>0<=(f=Rg(b+11|0))>>>0)f=-31;else if(c=Di(c+B|0,b+11|0,f+1|0),(j=h-f|0)>>>0<4)f=-31;else{for(k[0|(Q=f+c|0)]=36,k[Q+1|0]=109,k[Q+2|0]=61,k[Q+3|0]=0,f=a[H+44>>2],c=10;h=c,p=(f>>>0)/10|0,k[0|(re=(c=c-1|0)+(b+22|0)|0)]=f-Lr(p,10)|48,!(f>>>0<10)&&(f=p,c););if(Di(f=b+11|0,re,c=11-h|0),k[f+c|0]=0,(c=j-3|0)>>>0<=(f=Rg(f))>>>0)f=-31;else if(h=Di(Q+3|0,b+11|0,f+1|0),(j=c-f|0)>>>0<4)f=-31;else{for(k[0|(Q=f+h|0)]=44,k[Q+1|0]=116,k[Q+2|0]=61,k[Q+3|0]=0,f=a[H+40>>2],c=10;h=c,p=(f>>>0)/10|0,k[0|(re=(c=c-1|0)+(b+22|0)|0)]=f-Lr(p,10)|48,!(f>>>0<10)&&(f=p,c););if(Di(f=b+11|0,re,c=11-h|0),k[f+c|0]=0,(c=j-3|0)>>>0<=(f=Rg(f))>>>0)f=-31;else if(h=Di(Q+3|0,b+11|0,f+1|0),(j=c-f|0)>>>0<4)f=-31;else{for(k[0|(Q=f+h|0)]=44,k[Q+1|0]=112,k[Q+2|0]=61,k[Q+3|0]=0,f=a[H+48>>2],c=10;h=c,p=(f>>>0)/10|0,k[0|(re=(c=c-1|0)+(b+22|0)|0)]=f-Lr(p,10)|48,!(f>>>0<10)&&(f=p,c););Di(f=b+11|0,re,c=11-h|0),k[f+c|0]=0,(c=j-3|0)>>>0<=(f=Rg(f))>>>0?f=-31:(h=Di(Q+3|0,b+11|0,f+1|0),(p=c-f|0)>>>0<2?f=-31:(k[0|(f=f+h|0)]=36,k[f+1|0]=0,yM(c=f+1|0,h=p-1|0,a[H+16>>2],a[H+20>>2],3)?(f=-31,(p=(p=h)-(h=Rg(c))|0)>>>0<2||(k[0|(f=c+h|0)]=36,k[f+1|0]=0,f=yM(f+1|0,p-1|0,a[H>>2],a[H+4>>2],3)?0:-31)):f=-31))}}}}if(Ie=b+32|0,f){bn(L,32),bn(B,128),f=-31;break e}}bn(L,32),f=0}h0(L)}else f=-22;return Ie=v- -64|0,f}function sH(f,c){var h,p=0,b=0,B=0,Q=0,v=0,L=0,H=0;h=f+c|0;e:{t:if(!(1&(p=a[f+4>>2]))){if(!(2&p))break e;c=(p=a[f>>2])+c|0;r:{n:{i:{if((0|(f=f-p|0))!=a[9410]){if(b=a[f+12>>2],p>>>0<=255){if((0|(B=a[f+8>>2]))!=(0|b))break i;L=37620,H=a[9405]&lr(-2,p>>>3|0),a[L>>2]=H;break t}if(Q=a[f+24>>2],(0|f)!=(0|b)){p=a[f+8>>2],a[p+12>>2]=b,a[b+8>>2]=p;break r}if(B=a[f+20>>2])p=f+20|0;else{if(!(B=a[f+16>>2]))break n;p=f+16|0}for(;v=p,p=(b=B)+20|0,(B=a[b+20>>2])||(p=b+16|0,B=a[b+16>>2]););a[v>>2]=0;break r}if(3&~(p=a[h+4>>2]))break t;return a[9407]=c,a[h+4>>2]=-2&p,a[f+4>>2]=1|c,void(a[h>>2]=c)}a[B+12>>2]=b,a[b+8>>2]=B;break t}b=0}if(Q){p=a[f+28>>2];r:{if(a[(B=37924+(p<<2)|0)>>2]==(0|f)){if(a[B>>2]=b,b)break r;L=37624,H=a[9406]&lr(-2,p),a[L>>2]=H;break t}if(a[Q+(a[Q+16>>2]==(0|f)?16:20)>>2]=b,!b)break t}a[b+24>>2]=Q,(p=a[f+16>>2])&&(a[b+16>>2]=p,a[p+24>>2]=b),(p=a[f+20>>2])&&(a[b+20>>2]=p,a[p+24>>2]=b)}}t:{r:{n:{i:{if(!(2&(p=a[h+4>>2]))){if(a[9411]==(0|h)){if(a[9411]=f,c=a[9408]+c|0,a[9408]=c,a[f+4>>2]=1|c,a[9410]!=(0|f))break e;return a[9407]=0,void(a[9410]=0)}if(a[9410]==(0|h))return a[9410]=f,c=a[9407]+c|0,a[9407]=c,a[f+4>>2]=1|c,void(a[f+c>>2]=c);if(c=(-8&p)+c|0,b=a[h+12>>2],p>>>0<=255){if((0|(B=a[h+8>>2]))==(0|b)){L=37620,H=a[9405]&lr(-2,p>>>3|0),a[L>>2]=H;break r}a[B+12>>2]=b,a[b+8>>2]=B;break r}if(Q=a[h+24>>2],(0|b)!=(0|h)){p=a[h+8>>2],a[p+12>>2]=b,a[b+8>>2]=p;break n}if(B=a[h+20>>2])p=h+20|0;else{if(!(B=a[h+16>>2]))break i;p=h+16|0}for(;v=p,p=(b=B)+20|0,(B=a[b+20>>2])||(p=b+16|0,B=a[b+16>>2]););a[v>>2]=0;break n}a[h+4>>2]=-2&p,a[f+4>>2]=1|c,a[f+c>>2]=c;break t}b=0}if(Q){p=a[h+28>>2];n:{if(a[(B=37924+(p<<2)|0)>>2]==(0|h)){if(a[B>>2]=b,b)break n;L=37624,H=a[9406]&lr(-2,p),a[L>>2]=H;break r}if(a[Q+(a[Q+16>>2]==(0|h)?16:20)>>2]=b,!b)break r}a[b+24>>2]=Q,(p=a[h+16>>2])&&(a[b+16>>2]=p,a[p+24>>2]=b),(p=a[h+20>>2])&&(a[b+20>>2]=p,a[p+24>>2]=b)}}if(a[f+4>>2]=1|c,a[f+c>>2]=c,a[9410]==(0|f))return void(a[9407]=c)}if(c>>>0<=255)return p=37660+(-8&c)|0,(b=a[9405])&(c=1<<(c>>>3))?c=a[p+8>>2]:(a[9405]=c|b,c=p),a[p+8>>2]=f,a[c+12>>2]=f,a[f+12>>2]=p,void(a[f+8>>2]=c);b=31,c>>>0<=16777215&&(b=62+((c>>>38-(p=Wr(c>>>8|0))&1)-(p<<1)|0)|0),a[f+28>>2]=b,a[f+16>>2]=0,a[f+20>>2]=0,p=37924+(b<<2)|0;t:{if((B=a[9406])&(v=1<<b)){for(b=c<<((0|b)!=31?25-(b>>>1|0):0),p=a[p>>2];;){if(B=p,(-8&a[p+4>>2])==(0|c))break t;if(p=b>>>29|0,b<<=1,!(p=a[16+(v=B+(4&p)|0)>>2]))break}a[v+16>>2]=f,a[f+24>>2]=B}else a[9406]=B|v,a[p>>2]=f,a[f+24>>2]=p;return a[f+12>>2]=f,void(a[f+8>>2]=f)}c=a[B+8>>2],a[c+12>>2]=f,a[B+8>>2]=f,a[f+24>>2]=0,a[f+12>>2]=B,a[f+8>>2]=c}}function GS(f,c){var h,p=0,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0;return Ie=h=Ie-512|0,p=-1,B=S[c+31|0],b=S[0|c],1&(((255&(127&~B|~(S[c+1|0]&S[c+2|0]&S[c+3|0]&S[c+4|0]&S[c+5|0]&S[c+6|0]&S[c+7|0]&S[c+8|0]&S[c+9|0]&S[c+10|0]&S[c+11|0]&S[c+12|0]&S[c+13|0]&S[c+14|0]&S[c+15|0]&S[c+16|0]&S[c+17|0]&S[c+18|0]&S[c+19|0]&S[c+20|0]&S[c+21|0]&S[c+22|0]&S[c+23|0]&S[c+24|0]&S[c+25|0]&S[c+26|0]&S[c+27|0]&S[c+28|0]&S[c+29|0]&S[c+30|0])))-1&236-b)>>>8|b|B>>>7)||(dv(B=h+336|0,c),Et(h+288|0,B),c=a[h+324>>2],a[h+276>>2]=0-c,p=a[h+320>>2],a[h+272>>2]=0-p,b=a[h+316>>2],a[h+268>>2]=0-b,Q=a[h+312>>2],a[h+264>>2]=0-Q,v=a[h+308>>2],a[h+260>>2]=0-v,L=a[h+304>>2],a[h+256>>2]=0-L,H=a[h+300>>2],a[h+252>>2]=0-H,j=a[h+296>>2],a[h+248>>2]=0-j,re=a[h+292>>2],a[h+244>>2]=0-re,Z=a[h+288>>2],a[h+240>>2]=1-Z,Et(ee=h+144|0,ke=h+240|0),a[h+228>>2]=c,a[h+224>>2]=p,a[h+220>>2]=b,a[h+216>>2]=Q,a[h+212>>2]=v,a[h+208>>2]=L,a[h+204>>2]=H,a[h+200>>2]=j,a[h+196>>2]=re,a[h+192>>2]=Z+1,Et(p=h+96|0,Q=h+192|0),Ar(c=h+48|0,1584,ee),b=a[h+96>>2],v=a[h+48>>2],L=a[h+100>>2],H=a[h+52>>2],j=a[h+104>>2],re=a[h+56>>2],Z=a[h+108>>2],ee=a[h+60>>2],de=a[h+112>>2],we=a[h+64>>2],ye=a[h+116>>2],Me=a[h+68>>2],Ve=a[h+120>>2],We=a[h+72>>2],ut=a[h+124>>2],pt=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]=0,a[f+96>>2]=0,a[f+100>>2]=0,a[f+104>>2]=0,a[f+108>>2]=0,a[f+112>>2]=0,a[f+116>>2]=0,Ar(c=f+120|0,f,p),yc(de,c),f=S[h+480|0],yc(de,p),p=0-(ya(de,32)|1-we|1&f)|0),Ie=h+512|0,p}function dM(f,c,h,p){var b,B=0,Q=0;b=B=Ie,Ie=B=B-576&-64,a[B+188>>2]=c;e:if(c>>>0<=64){if((0|C8(Q=B+192|0,0,0,c))<0||(0|Sd(Q,B+188|0,4,0))<0||(0|Sd(Q,h,p,0))<0)break e;vM(Q,f,c)}else if(!((0|C8(Q=B+192|0,0,0,64))<0||(0|Sd(Q,B+188|0,4,0))<0||(0|Sd(Q,h,p,0))<0||(0|vM(Q,B+112|0,64))<0)){if(h=a[B+116>>2],p=a[B+112>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=h,k[f+5|0]=h>>>8,k[f+6|0]=h>>>16,k[f+7|0]=h>>>24,h=a[B+124>>2],p=a[B+120>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=h,k[f+13|0]=h>>>8,k[f+14|0]=h>>>16,k[f+15|0]=h>>>24,h=a[B+140>>2],p=a[B+136>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=h,k[f+29|0]=h>>>8,k[f+30|0]=h>>>16,k[f+31|0]=h>>>24,h=a[B+132>>2],p=a[B+128>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=h,k[f+21|0]=h>>>8,k[f+22|0]=h>>>16,k[f+23|0]=h>>>24,f=f+32|0,(c=c-32|0)>>>0>=65)for(;;){if(h=a[B+172>>2],a[B+104>>2]=a[B+168>>2],a[B+108>>2]=h,h=a[B+164>>2],a[B+96>>2]=a[B+160>>2],a[B+100>>2]=h,h=a[B+156>>2],a[B+88>>2]=a[B+152>>2],a[B+92>>2]=h,h=a[B+148>>2],a[B+80>>2]=a[B+144>>2],a[B+84>>2]=h,h=a[B+140>>2],a[B+72>>2]=a[B+136>>2],a[B+76>>2]=h,p=a[B+132>>2],a[(h=B- -64|0)>>2]=a[B+128>>2],a[h+4>>2]=p,h=a[B+124>>2],a[B+56>>2]=a[B+120>>2],a[B+60>>2]=h,h=a[B+116>>2],a[B+48>>2]=a[B+112>>2],a[B+52>>2]=h,(0|gM(B+112|0,64,B+48|0,64,0,0,0))<0)break e;if(h=a[B+116>>2],p=a[B+112>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=h,k[f+5|0]=h>>>8,k[f+6|0]=h>>>16,k[f+7|0]=h>>>24,h=a[B+124>>2],p=a[B+120>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=h,k[f+13|0]=h>>>8,k[f+14|0]=h>>>16,k[f+15|0]=h>>>24,h=a[B+140>>2],p=a[B+136>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=h,k[f+29|0]=h>>>8,k[f+30|0]=h>>>16,k[f+31|0]=h>>>24,h=a[B+132>>2],p=a[B+128>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=h,k[f+21|0]=h>>>8,k[f+22|0]=h>>>16,k[f+23|0]=h>>>24,f=f+32|0,!((c=c-32|0)>>>0>64))break}h=a[B+172>>2],a[B+104>>2]=a[B+168>>2],a[B+108>>2]=h,h=a[B+164>>2],a[B+96>>2]=a[B+160>>2],a[B+100>>2]=h,h=a[B+156>>2],a[B+88>>2]=a[B+152>>2],a[B+92>>2]=h,h=a[B+148>>2],a[B+80>>2]=a[B+144>>2],a[B+84>>2]=h,h=a[B+140>>2],a[B+72>>2]=a[B+136>>2],a[B+76>>2]=h,p=a[B+132>>2],a[(h=B- -64|0)>>2]=a[B+128>>2],a[h+4>>2]=p,h=a[B+124>>2],a[B+56>>2]=a[B+120>>2],a[B+60>>2]=h,h=a[B+116>>2],a[B+48>>2]=a[B+112>>2],a[B+52>>2]=h,(0|gM(h=B+112|0,c,B+48|0,64,0,0,0))<0||Di(f,h,c)}bn(B+192|0,384),Ie=b}function cH(f,c,h,p,b,B,Q,v,L,H,j){var re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0;if(re=Ce(L,0,v,0),!(we=$)&re>>>0>=1073741824|we||(0|Q)==1|Q>>>0>1)return a[9404]=22,-1;if(re=Q,!(!(B&(we=B-1|0)|Q&(re=(0|we)!=-1?re+1|0:re))&(!Q&B>>>0>=2|!!(0|Q)))||!L||!v)return a[9404]=28,-1;if(!(33554431/(L>>>0)>>>0<v>>>0|v>>>0>16777215)&&!Q&33554431/(v>>>0)>>>0>=B>>>0&&!((ut=Lr(We=v<<7,L))>>>0>(re=(ke=Lr(B,We))+ut|0)>>>0||(Z=re)>>>0>(re=((ye=v<<8)+re|0)- -64|0)>>>0)){e:{if(re>>>0>sn[f+8>>2]&&(de=-1,xH(f)||(Ie=we=Ie-16|0,Z=st(we+12|0,re),a[9404]=Z,Z=Z?0:a[we+12>>2],a[f+4>>2]=Z,a[f>>2]=Z,a[f+8>>2]=Z?re:0,Ie=we+16|0,!Z)))break e;for(Fr(c,h,p,b,bt=a[f+4>>2],ut),dt=((ke=(Z=(pt=ut+bt|0)+ke|0)+(v<<7)|0)+We|0)-64|0,b=B-1|0,Ve=v<<5,Ye=Z+ye|0,Wt=(Z+We|0)-64|0;;){for(ye=Lr(We,it)+bt|0,de=0;p=(f=de<<2)+ye|0,a[f+Z>>2]=S[0|p]|S[p+1|0]<<8|S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ye|0,re=a[f+Z>>2],k[0|p]=re,k[p+1|0]=re>>>8,k[p+2|0]=re>>>16,k[p+3|0]=re>>>24,p=(re=4|f)+ye|0,re=a[re+Z>>2],k[0|p]=re,k[p+1|0]=re>>>8,k[p+2|0]=re>>>16,k[p+3|0]=re>>>24,p=(re=8|f)+ye|0,re=a[re+Z>>2],k[0|p]=re,k[p+1|0]=re>>>8,k[p+2|0]=re>>>16,k[p+3|0]=re>>>24,f=(p=12|f)+ye|0,p=a[p+Z>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,(0|Ve)!=(0|(de=de+4|0)););if((0|(it=it+1|0))==(0|L))break}Fr(c,h,bt,ut,H,j),de=0}return de}return a[9404]=48,-1}function uH(f,c,h){f|=0,c|=0,h|=0;var p,b,B,Q=0;Ie=p=Ie-192|0,a[p+96>>2]=0,a[p+100>>2]=0,a[p+104>>2]=0,a[p+108>>2]=0,a[p+112>>2]=0,a[p+116>>2]=0,a[p+120>>2]=0,a[p+124>>2]=0,Q=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[p+80>>2]=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[p+84>>2]=Q,Q=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[p+88>>2]=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,a[p+92>>2]=Q,b=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,B=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,Q=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,c=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,a[p+40>>2]=0,a[p+44>>2]=0,a[p+48>>2]=0,a[p+52>>2]=0,a[p+56>>2]=0,a[p+60>>2]=0,a[p+64>>2]=Q,a[p+68>>2]=c,a[p+72>>2]=b,a[p+76>>2]=B,a[p+32>>2]=0,a[p+36>>2]=0,c=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,a[p+16>>2]=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,a[p+20>>2]=c,c=S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24,a[p+24>>2]=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,a[p+28>>2]=c,c=S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24,a[p>>2]=S[0|h]|S[h+1|0]<<8|S[h+2|0]<<16|S[h+3|0]<<24,a[p+4>>2]=c,c=S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24,a[p+8>>2]=S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24,a[p+12>>2]=c,UTe(p- -64|0,p),h=a[p+124>>2],a[p+184>>2]=a[p+120>>2],a[p+188>>2]=h,c=a[p+116>>2],a[p+176>>2]=a[p+112>>2],a[p+180>>2]=c,c=a[p+108>>2],a[p+168>>2]=a[p+104>>2],a[p+172>>2]=c,c=a[p+100>>2],a[p+160>>2]=a[p+96>>2],a[p+164>>2]=c,c=a[p+92>>2],a[p+152>>2]=a[p+88>>2],a[p+156>>2]=c,c=a[p+84>>2],a[p+144>>2]=a[p+80>>2],a[p+148>>2]=c,c=a[p+76>>2],a[p+136>>2]=a[p+72>>2],a[p+140>>2]=c,c=a[p+68>>2],a[p+128>>2]=a[p+64>>2],a[p+132>>2]=c,ho(c=p+128|0),Q=a[p+156>>2],h=a[p+152>>2],k[f+24|0]=h,k[f+25|0]=h>>>8,k[f+26|0]=h>>>16,k[f+27|0]=h>>>24,k[f+28|0]=Q,k[f+29|0]=Q>>>8,k[f+30|0]=Q>>>16,k[f+31|0]=Q>>>24,Q=a[p+148>>2],h=a[p+144>>2],k[f+16|0]=h,k[f+17|0]=h>>>8,k[f+18|0]=h>>>16,k[f+19|0]=h>>>24,k[f+20|0]=Q,k[f+21|0]=Q>>>8,k[f+22|0]=Q>>>16,k[f+23|0]=Q>>>24,Q=a[p+140>>2],h=a[p+136>>2],k[f+8|0]=h,k[f+9|0]=h>>>8,k[f+10|0]=h>>>16,k[f+11|0]=h>>>24,k[f+12|0]=Q,k[f+13|0]=Q>>>8,k[f+14|0]=Q>>>16,k[f+15|0]=Q>>>24,Q=a[p+132>>2],h=a[p+128>>2],k[0|f]=h,k[f+1|0]=h>>>8,k[f+2|0]=h>>>16,k[f+3|0]=h>>>24,k[f+4|0]=Q,k[f+5|0]=Q>>>8,k[f+6|0]=Q>>>16,k[f+7|0]=Q>>>24,bn(c,64),Ie=p+192|0}function $5(f,c,h,p){var b=0,B=0,Q=0,v=0,L=0;if(B=a[4+(b=((p<<7)+f|0)-64|0)>>2],a[h>>2]=a[b>>2],a[h+4>>2]=B,B=a[b+60>>2],a[h+56>>2]=a[b+56>>2],a[h+60>>2]=B,B=a[b+52>>2],a[h+48>>2]=a[b+48>>2],a[h+52>>2]=B,B=a[b+44>>2],a[h+40>>2]=a[b+40>>2],a[h+44>>2]=B,B=a[b+36>>2],a[h+32>>2]=a[b+32>>2],a[h+36>>2]=B,B=a[b+28>>2],a[h+24>>2]=a[b+24>>2],a[h+28>>2]=B,B=a[b+20>>2],a[h+16>>2]=a[b+16>>2],a[h+20>>2]=B,B=a[b+12>>2],a[h+8>>2]=a[b+8>>2],a[h+12>>2]=B,p)for(B=p<<1,L=p<<6;p=(v<<6)+f|0,a[h>>2]=a[h>>2]^a[p>>2],a[h+4>>2]=a[h+4>>2]^a[p+4>>2],a[h+8>>2]=a[h+8>>2]^a[p+8>>2],a[h+12>>2]=a[h+12>>2]^a[p+12>>2],a[h+16>>2]=a[h+16>>2]^a[p+16>>2],a[h+20>>2]=a[h+20>>2]^a[p+20>>2],a[h+24>>2]=a[h+24>>2]^a[p+24>>2],a[h+28>>2]=a[h+28>>2]^a[p+28>>2],a[h+32>>2]=a[h+32>>2]^a[p+32>>2],a[h+36>>2]=a[h+36>>2]^a[p+36>>2],a[h+40>>2]=a[h+40>>2]^a[p+40>>2],a[h+44>>2]=a[h+44>>2]^a[p+44>>2],a[h+48>>2]=a[h+48>>2]^a[p+48>>2],a[h+52>>2]=a[h+52>>2]^a[p+52>>2],a[h+56>>2]=a[h+56>>2]^a[p+56>>2],a[h+60>>2]=a[h+60>>2]^a[p+60>>2],bH(h),Q=a[h+60>>2],a[56+(b=(v<<5)+c|0)>>2]=a[h+56>>2],a[b+60>>2]=Q,Q=a[h+52>>2],a[b+48>>2]=a[h+48>>2],a[b+52>>2]=Q,Q=a[h+44>>2],a[b+40>>2]=a[h+40>>2],a[b+44>>2]=Q,Q=a[h+36>>2],a[b+32>>2]=a[h+32>>2],a[b+36>>2]=Q,Q=a[h+28>>2],a[b+24>>2]=a[h+24>>2],a[b+28>>2]=Q,Q=a[h+20>>2],a[b+16>>2]=a[h+16>>2],a[b+20>>2]=Q,Q=a[h+12>>2],a[b+8>>2]=a[h+8>>2],a[b+12>>2]=Q,Q=a[h+4>>2],a[b>>2]=a[h>>2],a[b+4>>2]=Q,a[h>>2]=a[h>>2]^a[p- -64>>2],a[h+4>>2]=a[h+4>>2]^a[p+68>>2],a[h+8>>2]=a[h+8>>2]^a[p+72>>2],a[h+12>>2]=a[h+12>>2]^a[p+76>>2],a[h+16>>2]=a[h+16>>2]^a[p+80>>2],a[h+20>>2]=a[h+20>>2]^a[p+84>>2],a[h+24>>2]=a[h+24>>2]^a[p+88>>2],a[h+28>>2]=a[h+28>>2]^a[p+92>>2],a[h+32>>2]=a[h+32>>2]^a[p+96>>2],a[h+36>>2]=a[h+36>>2]^a[p+100>>2],a[h+40>>2]=a[h+40>>2]^a[p+104>>2],a[h+44>>2]=a[h+44>>2]^a[p+108>>2],a[h+48>>2]=a[h+48>>2]^a[p+112>>2],a[h+52>>2]=a[h+52>>2]^a[p+116>>2],a[h+56>>2]=a[h+56>>2]^a[p+120>>2],a[h+60>>2]=a[h+60>>2]^a[p+124>>2],bH(h),p=b+L|0,b=a[h+60>>2],a[p+56>>2]=a[h+56>>2],a[p+60>>2]=b,b=a[h+52>>2],a[p+48>>2]=a[h+48>>2],a[p+52>>2]=b,b=a[h+44>>2],a[p+40>>2]=a[h+40>>2],a[p+44>>2]=b,b=a[h+36>>2],a[p+32>>2]=a[h+32>>2],a[p+36>>2]=b,b=a[h+28>>2],a[p+24>>2]=a[h+24>>2],a[p+28>>2]=b,b=a[h+20>>2],a[p+16>>2]=a[h+16>>2],a[p+20>>2]=b,b=a[h+12>>2],a[p+8>>2]=a[h+8>>2],a[p+12>>2]=b,b=a[h+4>>2],a[p>>2]=a[h>>2],a[p+4>>2]=b,B>>>0>(v=v+2|0)>>>0;);}function fM(f,c,h,p){var b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0;if(de=a[f+36>>2],Z=a[f+32>>2],ee=a[f+28>>2],j=a[f+24>>2],re=a[f+20>>2],!p&h>>>0>=16|p)for(Ye=!S[f+80|0]<<24,ke=a[f+4>>2],it=Lr(ke,5),Me=a[f+8>>2],pt=Lr(Me,5),We=a[f+12>>2],ut=Lr(We,5),bt=a[f+16>>2],Ve=Lr(bt,5),ye=a[f>>2];b=Ce(Q=((S[c+3|0]|S[c+4|0]<<8|S[c+5|0]<<16|S[c+6|0]<<24)>>>2&67108863)+j|0,0,We,0),L=$,re=(v=Ce(j=(67108863&(S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24))+re|0,0,bt,0))+b|0,b=$+L|0,b=v>>>0>re>>>0?b+1|0:b,L=Ce(ee=((S[c+6|0]|S[c+7|0]<<8|S[c+8|0]<<16|S[c+9|0]<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ve,0),B=$,Q=(j=Ce(j,0,ye,0))+b|0,b=$+B|0,b=Q>>>0<j>>>0?b+1|0:b,j=Ce(ee,0,ut,0),b=$+b|0,b=(Q=j+Q|0)>>>0<j>>>0?b+1|0:b,j=Ce(Z,0,pt,0),b=$+b|0,b=(Q=j+Q|0)>>>0<j>>>0?b+1|0:b,j=Ce(de,0,it,0),B=$+b|0,B=(Q=j+Q|0)>>>0<j>>>0?B+1|0:B,j=Q,b=H,b=(Q=(ee=(67108863&B)<<6|Q>>>26)+we|0)>>>0<ee>>>0?b+1|0:b,ee=Q,Z=(67108863&b)<<6|Q>>>26,b=v,b=(Q=Z+nr|0)>>>0<Z>>>0?b+1|0:b,Z=Q,B=L,de=b=(Q=(67108863&b)<<6|Q>>>26)+Wt|0,L=(67108863&(B=b>>>0<Q>>>0?B+1|0:B))<<6|b>>>26,b=re,j=(67108863&ee)+((b=Lr((67108863&((Q=L+dt|0)>>>0<L>>>0?b+1:b))<<6|Q>>>26,5)+(67108863&j)|0)>>>26|0)|0,ee=67108863&Z,Z=67108863&de,de=67108863&Q,re=67108863&b,c=c+16|0,!(p=p-(h>>>0<16)|0)&(h=h-16|0)>>>0>15|p;);a[f+20>>2]=re,a[f+36>>2]=de,a[f+32>>2]=Z,a[f+28>>2]=ee,a[f+24>>2]=j}function C8(f,c,h,p){f|=0,c|=0;var b=0;return b=-1,(p|=0)-65>>>0<4294967232|(h|=0)>>>0>64||(h&&c?(Ie=b=Ie-128|0,!c|((p&=255)-65&255)>>>0<=191|((h&=255)-65&255)>>>0<=191?(Bs(),Rr()):(yo(f- -64|0,0,293),k[f+56|0]=121,k[f+57|0]=33,k[f+58|0]=126,k[f+59|0]=19,k[f+60|0]=25,k[f+61|0]=205,k[f+62|0]=224,k[f+63|0]=91,k[f+48|0]=107,k[f+49|0]=189,k[f+50|0]=65,k[f+51|0]=251,k[f+52|0]=171,k[f+53|0]=217,k[f+54|0]=131,k[f+55|0]=31,k[f+40|0]=31,k[f+41|0]=108,k[f+42|0]=62,k[f+43|0]=43,k[f+44|0]=140,k[f+45|0]=104,k[f+46|0]=5,k[f+47|0]=155,k[f+32|0]=209,k[f+33|0]=130,k[f+34|0]=230,k[f+35|0]=173,k[f+36|0]=127,k[f+37|0]=82,k[f+38|0]=14,k[f+39|0]=81,k[f+24|0]=241,k[f+25|0]=54,k[f+26|0]=29,k[f+27|0]=95,k[f+28|0]=58,k[f+29|0]=245,k[f+30|0]=79,k[f+31|0]=165,k[f+16|0]=43,k[f+17|0]=248,k[f+18|0]=148,k[f+19|0]=254,k[f+20|0]=114,k[f+21|0]=243,k[f+22|0]=110,k[f+23|0]=60,k[f+8|0]=59,k[f+9|0]=167,k[f+10|0]=202,k[f+11|0]=132,k[f+12|0]=133,k[f+13|0]=174,k[f+14|0]=103,k[f+15|0]=187,p=-222443256^(h<<8|p),k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,p=h>>>24^1779033703,k[f+4|0]=p,k[f+5|0]=p>>>8,k[f+6|0]=p>>>16,k[f+7|0]=p>>>24,h=Di(yo(b,0,128),c,h),Di(f+96|0,h,128),c=128+(S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24)|0,k[f+352|0]=c,k[f+353|0]=c>>>8,k[f+354|0]=c>>>16,k[f+355|0]=c>>>24,bn(h,128),Ie=h+128|0)):(((c=255&p)-65&255)>>>0<=191&&(Bs(),Rr()),yo(f- -64|0,0,293),k[f+56|0]=121,k[f+57|0]=33,k[f+58|0]=126,k[f+59|0]=19,k[f+60|0]=25,k[f+61|0]=205,k[f+62|0]=224,k[f+63|0]=91,k[f+48|0]=107,k[f+49|0]=189,k[f+50|0]=65,k[f+51|0]=251,k[f+52|0]=171,k[f+53|0]=217,k[f+54|0]=131,k[f+55|0]=31,k[f+40|0]=31,k[f+41|0]=108,k[f+42|0]=62,k[f+43|0]=43,k[f+44|0]=140,k[f+45|0]=104,k[f+46|0]=5,k[f+47|0]=155,k[f+32|0]=209,k[f+33|0]=130,k[f+34|0]=230,k[f+35|0]=173,k[f+36|0]=127,k[f+37|0]=82,k[f+38|0]=14,k[f+39|0]=81,k[f+24|0]=241,k[f+25|0]=54,k[f+26|0]=29,k[f+27|0]=95,k[f+28|0]=58,k[f+29|0]=245,k[f+30|0]=79,k[f+31|0]=165,k[f+16|0]=43,k[f+17|0]=248,k[f+18|0]=148,k[f+19|0]=254,k[f+20|0]=114,k[f+21|0]=243,k[f+22|0]=110,k[f+23|0]=60,k[f+8|0]=59,k[f+9|0]=167,k[f+10|0]=202,k[f+11|0]=132,k[f+12|0]=133,k[f+13|0]=174,k[f+14|0]=103,k[f+15|0]=187,c^=-222443256,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,k[f+4|0]=103,k[f+5|0]=230,k[f+6|0]=9,k[f+7|0]=106),b=0),0|b}function Ll(f,c,h,p){f|=0,c|=0,h|=0;var b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0;for((p|=0)?(B=S[p+8|0]|S[p+9|0]<<8|S[p+10|0]<<16|S[p+11|0]<<24,Q=S[p+4|0]|S[p+5|0]<<8|S[p+6|0]<<16|S[p+7|0]<<24,b=S[0|p]|S[p+1|0]<<8|S[p+2|0]<<16|S[p+3|0]<<24,j=S[p+12|0]|S[p+13|0]<<8|S[p+14|0]<<16|S[p+15|0]<<24):(B=2036477234,Q=857760878,b=1634760805,j=1797285236),v=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,Z=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,L=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,ee=S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24,H=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,Ve=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,de=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,p=S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24,we=S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24,ke=S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24,c=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,h=S[0|h]|S[h+1|0]<<8|S[h+2|0]<<16|S[h+3|0]<<24;re=h,h=lr((ye=c)^(c=h+b|0),16),re=de=lr(re^(b=h+de|0),12),Me=lr((ye=c+de|0)^h,8),c=lr(re^(de=Me+b|0),7),v=lr((h=p+j|0)^v,16),p=lr((ee=v+ee|0)^p,12),re=we,B=lr((j=B+we|0)^Z,16),b=lr(re^(we=B+H|0),12),H=lr((H=B)^(B=b+j|0),8),h=lr(H^(j=(We=h+p|0)+c|0),16),Z=lr((Q=Q+ke|0)^L,16),ke=lr((L=Z+Ve|0)^ke,12),re=c,c=lr((Q=ke+Q|0)^Z,8),re=lr(re^(L=(ut=c+L|0)+h|0),12),Z=lr(h^(j=re+j|0),8),h=lr((Ve=Z+L|0)^re,7),v=lr(v^We,8),p=lr((ee=v+ee|0)^p,7),L=lr((B=p+B|0)^c,16),p=lr((c=L+de|0)^p,12),L=lr(L^(B=p+B|0),8),p=lr((de=c+L|0)^p,7),c=lr((H=H+we|0)^b,7),we=lr((Q=c+Q|0)^Me,16),Me=lr(c^(b=we+ee|0),12),c=lr(we^(Q=Me+Q|0),8),we=lr((ee=b+c|0)^Me,7),re=H,H=v,b=lr(ke^ut,7),H=lr(H^(v=b+ye|0),16),ye=lr(b^(ke=re+H|0),12),v=lr(H^(b=ye+v|0),8),ke=lr((H=ke+v|0)^ye,7),(0|(pt=pt+1|0))!=10;);return k[0|f]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c+12>>2],We=a[c+52>>2],ut=a[c+16>>2],pt=a[c+56>>2],bt=a[c+20>>2],Ye=a[c+60>>2],it=a[c+24>>2],we=a[we>>2],de=a[c+28>>2],dt=a[c+68>>2],Wt=a[c+32>>2],nr=a[c+72>>2],cr=a[c>>2],gr=a[c+40>>2],a[f+76>>2]=a[c+76>>2]-a[c+36>>2],a[f+72>>2]=nr-Wt,a[f+68>>2]=dt-de,a[(de=f- -64|0)>>2]=we-it,a[f+60>>2]=Ye-bt,a[f+56>>2]=pt-ut,a[f+52>>2]=We-Ve,a[f+48>>2]=Me-ye,a[f+44>>2]=ke-ee,a[f+40>>2]=gr-cr,Ar(f+80|0,f,h),Ar(ee=f+40|0,ee,h+40|0),Ar(f+120|0,h+120|0,c+120|0),Ar(f,c+80|0,h+80|0),gr=a[f+4>>2],vr=a[f+8>>2],B=a[f+12>>2],Q=a[f+16>>2],v=a[f+20>>2],L=a[f+24>>2],H=a[f+28>>2],j=a[f+32>>2],re=a[f+36>>2],c=a[f+44>>2],h=a[f+84>>2],ee=a[f+48>>2],ke=a[f+88>>2],ye=a[f+52>>2],Me=a[f+92>>2],Ve=a[f+56>>2],We=a[f+96>>2],ut=a[f+60>>2],pt=a[f+100>>2],bt=a[de>>2],Ye=a[f+104>>2],we=a[f+68>>2],it=a[f+108>>2],dt=a[f+72>>2],Wt=a[f+112>>2],Z=a[f>>2],nr=a[f+40>>2],cr=a[f+80>>2],p=a[f+76>>2],b=a[f+116>>2],a[f+76>>2]=p+b,a[f+72>>2]=dt+Wt,a[f+68>>2]=we+it,a[de>>2]=bt+Ye,a[f+60>>2]=ut+pt,a[f+56>>2]=Ve+We,a[f+52>>2]=ye+Me,a[f+48>>2]=ee+ke,a[f+44>>2]=c+h,a[f+40>>2]=nr+cr,a[f+36>>2]=b-p,a[f+32>>2]=Wt-dt,a[f+28>>2]=it-we,a[f+24>>2]=Ye-bt,a[f+20>>2]=pt-ut,a[f+16>>2]=We-Ve,a[f+12>>2]=Me-ye,a[f+8>>2]=ke-ee,a[f+4>>2]=h-c,a[f>>2]=cr-nr,c=re<<1,h=a[f+156>>2],a[f+156>>2]=c-h,de=j<<1,ee=a[f+152>>2],a[f+152>>2]=de-ee,ke=H<<1,ye=a[f+148>>2],a[f+148>>2]=ke-ye,Me=L<<1,Ve=a[f+144>>2],a[f+144>>2]=Me-Ve,We=v<<1,ut=a[f+140>>2],a[f+140>>2]=We-ut,pt=Q<<1,bt=a[f+136>>2],a[f+136>>2]=pt-bt,Ye=B<<1,we=a[f+132>>2],a[f+132>>2]=Ye-we,it=vr<<1,dt=a[f+128>>2],a[f+128>>2]=it-dt,Wt=gr<<1,nr=a[f+124>>2],a[f+124>>2]=Wt-nr,cr=Z<<1,gr=a[f+120>>2],a[f+120>>2]=cr-gr,a[f+112>>2]=ee+de,a[f+108>>2]=ke+ye,a[f+104>>2]=Me+Ve,a[f+100>>2]=We+ut,a[f+96>>2]=pt+bt,a[f+92>>2]=Ye+we,a[f+88>>2]=it+dt,a[f+84>>2]=Wt+nr,a[f+80>>2]=cr+gr,a[f+116>>2]=c+h}function Y5(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0;de=a[c+4>>2],ee=a[c+44>>2],ke=a[c+8>>2],ye=a[c+48>>2],Me=a[c+12>>2],Ve=a[c+52>>2],We=a[c+16>>2],ut=a[c+56>>2],pt=a[c+20>>2],bt=a[c+60>>2],Ye=a[c+24>>2],it=a[(we=c- -64|0)>>2],dt=a[c+28>>2],Wt=a[c+68>>2],nr=a[c+32>>2],cr=a[c+72>>2],gr=a[c+36>>2],vr=a[c+76>>2],a[f>>2]=a[c>>2]+a[c+40>>2],a[f+36>>2]=gr+vr,a[f+32>>2]=nr+cr,a[f+28>>2]=dt+Wt,a[f+24>>2]=Ye+it,a[f+20>>2]=pt+bt,a[f+16>>2]=We+ut,a[f+12>>2]=Me+Ve,a[f+8>>2]=ke+ye,a[f+4>>2]=ee+de,ee=a[c+4>>2],ke=a[c+44>>2],ye=a[c+8>>2],Me=a[c+48>>2],Ve=a[c+12>>2],We=a[c+52>>2],ut=a[c+16>>2],pt=a[c+56>>2],bt=a[c+20>>2],Ye=a[c+60>>2],it=a[c+24>>2],we=a[we>>2],de=a[c+28>>2],dt=a[c+68>>2],Wt=a[c+32>>2],nr=a[c+72>>2],cr=a[c>>2],gr=a[c+40>>2],a[f+76>>2]=a[c+76>>2]-a[c+36>>2],a[f+72>>2]=nr-Wt,a[f+68>>2]=dt-de,a[(de=f- -64|0)>>2]=we-it,a[f+60>>2]=Ye-bt,a[f+56>>2]=pt-ut,a[f+52>>2]=We-Ve,a[f+48>>2]=Me-ye,a[f+44>>2]=ke-ee,a[f+40>>2]=gr-cr,Ar(f+80|0,f,h+40|0),Ar(ee=f+40|0,ee,h),Ar(f+120|0,h+120|0,c+120|0),Ar(f,c+80|0,h+80|0),gr=a[f+4>>2],vr=a[f+8>>2],B=a[f+12>>2],Q=a[f+16>>2],v=a[f+20>>2],L=a[f+24>>2],H=a[f+28>>2],j=a[f+32>>2],re=a[f+36>>2],c=a[f+44>>2],h=a[f+84>>2],ee=a[f+48>>2],ke=a[f+88>>2],ye=a[f+52>>2],Me=a[f+92>>2],Ve=a[f+56>>2],We=a[f+96>>2],ut=a[f+60>>2],pt=a[f+100>>2],bt=a[de>>2],Ye=a[f+104>>2],we=a[f+68>>2],it=a[f+108>>2],dt=a[f+72>>2],Wt=a[f+112>>2],Z=a[f>>2],nr=a[f+40>>2],cr=a[f+80>>2],p=a[f+76>>2],b=a[f+116>>2],a[f+76>>2]=p+b,a[f+72>>2]=dt+Wt,a[f+68>>2]=we+it,a[de>>2]=bt+Ye,a[f+60>>2]=ut+pt,a[f+56>>2]=Ve+We,a[f+52>>2]=ye+Me,a[f+48>>2]=ee+ke,a[f+44>>2]=c+h,a[f+40>>2]=nr+cr,a[f+36>>2]=b-p,a[f+32>>2]=Wt-dt,a[f+28>>2]=it-we,a[f+24>>2]=Ye-bt,a[f+20>>2]=pt-ut,a[f+16>>2]=We-Ve,a[f+12>>2]=Me-ye,a[f+8>>2]=ke-ee,a[f+4>>2]=h-c,a[f>>2]=cr-nr,c=a[f+156>>2],h=re<<1,a[f+156>>2]=c+h,de=a[f+152>>2],ee=j<<1,a[f+152>>2]=de+ee,ke=a[f+148>>2],ye=H<<1,a[f+148>>2]=ke+ye,Me=a[f+144>>2],Ve=L<<1,a[f+144>>2]=Me+Ve,We=a[f+140>>2],ut=v<<1,a[f+140>>2]=We+ut,pt=a[f+136>>2],bt=Q<<1,a[f+136>>2]=pt+bt,Ye=a[f+132>>2],we=B<<1,a[f+132>>2]=Ye+we,it=a[f+128>>2],dt=vr<<1,a[f+128>>2]=it+dt,Wt=a[f+124>>2],nr=gr<<1,a[f+124>>2]=Wt+nr,cr=a[f+120>>2],gr=Z<<1,a[f+120>>2]=cr+gr,a[f+112>>2]=ee-de,a[f+108>>2]=ye-ke,a[f+104>>2]=Ve-Me,a[f+100>>2]=ut-We,a[f+96>>2]=bt-pt,a[f+92>>2]=we-Ye,a[f+88>>2]=dt-it,a[f+84>>2]=nr-Wt,a[f+80>>2]=gr-cr,a[f+116>>2]=h-c}function lM(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0;de=a[c+4>>2],ee=a[c+44>>2],ke=a[c+8>>2],ye=a[c+48>>2],Me=a[c+12>>2],Ve=a[c+52>>2],We=a[c+16>>2],ut=a[c+56>>2],pt=a[c+20>>2],bt=a[c+60>>2],Ye=a[c+24>>2],it=a[(we=c- -64|0)>>2],dt=a[c+28>>2],Wt=a[c+68>>2],nr=a[c+32>>2],cr=a[c+72>>2],gr=a[c+36>>2],vr=a[c+76>>2],a[f>>2]=a[c>>2]+a[c+40>>2],a[f+36>>2]=gr+vr,a[f+32>>2]=nr+cr,a[f+28>>2]=dt+Wt,a[f+24>>2]=Ye+it,a[f+20>>2]=pt+bt,a[f+16>>2]=We+ut,a[f+12>>2]=Me+Ve,a[f+8>>2]=ke+ye,a[f+4>>2]=ee+de,ee=a[c+4>>2],ke=a[c+44>>2],ye=a[c+8>>2],Me=a[c+48>>2],Ve=a[c+12>>2],We=a[c+52>>2],ut=a[c+16>>2],pt=a[c+56>>2],bt=a[c+20>>2],Ye=a[c+60>>2],it=a[c+24>>2],we=a[we>>2],de=a[c+28>>2],dt=a[c+68>>2],Wt=a[c+32>>2],nr=a[c+72>>2],cr=a[c>>2],gr=a[c+40>>2],a[f+76>>2]=a[c+76>>2]-a[c+36>>2],a[f+72>>2]=nr-Wt,a[f+68>>2]=dt-de,a[(de=f- -64|0)>>2]=we-it,a[f+60>>2]=Ye-bt,a[f+56>>2]=pt-ut,a[f+52>>2]=We-Ve,a[f+48>>2]=Me-ye,a[f+44>>2]=ke-ee,a[f+40>>2]=gr-cr,Ar(f+80|0,f,h),Ar(ee=f+40|0,ee,h+40|0),Ar(f+120|0,h+80|0,c+120|0),gr=a[c+84>>2],vr=a[c+88>>2],B=a[c+92>>2],Q=a[c+96>>2],v=a[c+100>>2],L=a[c+104>>2],H=a[c+108>>2],j=a[c+112>>2],re=a[c+116>>2],h=a[f+44>>2],ee=a[f+84>>2],ke=a[f+48>>2],ye=a[f+88>>2],Me=a[f+52>>2],Ve=a[f+92>>2],We=a[f+56>>2],ut=a[f+96>>2],pt=a[f+60>>2],bt=a[f+100>>2],Ye=a[de>>2],we=a[f+104>>2],it=a[f+68>>2],dt=a[f+108>>2],Wt=a[f+72>>2],nr=a[f+112>>2],Z=a[c+80>>2],c=a[f+40>>2],cr=a[f+80>>2],p=a[f+76>>2],b=a[f+116>>2],a[f+76>>2]=p+b,a[f+72>>2]=Wt+nr,a[f+68>>2]=it+dt,a[de>>2]=Ye+we,a[f+60>>2]=pt+bt,a[f+56>>2]=We+ut,a[f+52>>2]=Me+Ve,a[f+48>>2]=ke+ye,a[f+44>>2]=h+ee,a[f+40>>2]=c+cr,a[f+36>>2]=b-p,a[f+32>>2]=nr-Wt,a[f+28>>2]=dt-it,a[f+24>>2]=we-Ye,a[f+20>>2]=bt-pt,a[f+16>>2]=ut-We,a[f+12>>2]=Ve-Me,a[f+8>>2]=ye-ke,a[f+4>>2]=ee-h,a[f>>2]=cr-c,c=re<<1,h=a[f+156>>2],a[f+156>>2]=c-h,de=j<<1,ee=a[f+152>>2],a[f+152>>2]=de-ee,ke=H<<1,ye=a[f+148>>2],a[f+148>>2]=ke-ye,Me=L<<1,Ve=a[f+144>>2],a[f+144>>2]=Me-Ve,We=v<<1,ut=a[f+140>>2],a[f+140>>2]=We-ut,pt=Q<<1,bt=a[f+136>>2],a[f+136>>2]=pt-bt,Ye=B<<1,we=a[f+132>>2],a[f+132>>2]=Ye-we,it=vr<<1,dt=a[f+128>>2],a[f+128>>2]=it-dt,Wt=gr<<1,nr=a[f+124>>2],a[f+124>>2]=Wt-nr,cr=Z<<1,gr=a[f+120>>2],a[f+120>>2]=cr-gr,a[f+112>>2]=ee+de,a[f+108>>2]=ke+ye,a[f+104>>2]=Me+Ve,a[f+100>>2]=We+ut,a[f+96>>2]=pt+bt,a[f+92>>2]=Ye+we,a[f+88>>2]=it+dt,a[f+84>>2]=Wt+nr,a[f+80>>2]=cr+gr,a[f+116>>2]=c+h}function dv(f,c){var h,p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0;de=S[c+31|0],h=S[c+30|0],p=S[c+29|0],b=S[c+6|0],B=S[c+5|0],Q=S[c+4|0],v=S[c+9|0],L=S[c+8|0],H=S[c+7|0],j=S[c+12|0],dt=S[c+11|0],Wt=S[c+10|0],re=S[c+15|0],nr=S[c+14|0],Z=S[c+13|0],pt=S[c+28|0],it=S[c+27|0],bt=S[c+26|0],ut=S[c+25|0],Ve=S[c+24|0],Me=S[c+23|0],we=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,We=(ye=S[c+21|0])<<15,ye=ke=ye>>>17|0,Ye=We,Ye|=(We=S[c+20|0])<<7,We=(ke=We>>>25|0)|ye,ye=(ke=S[c+22|0])>>>9|0,ke=ke<<23|Ye,ye|=We,ee=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,c=0,We=ke,ke=(33554431&(c=(Ye=ee+16777216|0)>>>0<16777216?1:c))<<7|Ye>>>25,c=(c>>>25|0)+ye|0,ke=(ye=We=We+ke|0)>>>0<ke>>>0?c+1|0:c,c=(We=ye+33554432|0)>>>0<33554432?ke+1|0:ke,a[f+24>>2]=ye-(-67108864&We),ke=(ye=Me>>>27|0)|Ve>>>19|ut>>>11,ye=Me=(Ve=ut<<21|(Me=Ve<<13|Me<<5))+(ye=(67108863&(ye=c))<<6|We>>>26)|0,c=ke,ke=(Me=Ve+16777216|0)>>>0<16777216?c+1|0:c,a[f+28>>2]=ye-(1040187392&Me),ye=(ke=(c=ke)>>>25|0)+(ye=it>>>20|bt>>>28|pt>>>12)|0,c=ye=(ke=Me=(c=(33554431&c)<<7|Me>>>25)+(it<<12|bt<<4|pt<<20)|0)>>>0<c>>>0?ye+1|0:ye,Me=(pt=ke+33554432|0)>>>0<33554432?c+1|0:c,a[f+32>>2]=ke-(-67108864&pt),ye=j>>>13|(ke=dt>>>21|Wt>>>29),c=(ye=(it=16777216+(dt=dt<<11|Wt<<3|j<<19)|0)>>>0<16777216?ye+1|0:ye)>>>25|0,ye=(ke=Ve=nr<<10|Z<<2|re<<18)+(Ve=(33554431&ye)<<7|it>>>25)|0,ke=c+(ut=nr>>>22|Z>>>30|re>>>14)|0,c=ke=ye>>>0<Ve>>>0?ke+1|0:ke,Ve=((67108863&(c=(Ve=ye+33554432|0)>>>0<33554432?c+1|0:c))<<6|(ke=Ve)>>>26)+(bt=ee-(-33554432&Ye)|0)|0,a[f+20>>2]=Ve,a[f+16>>2]=ye-(-67108864&ke),ke=B>>>18|Q>>>26|b>>>10,ye=(ke=(bt=16777216+(Wt=B<<14|Q<<6|b<<22)|0)>>>0<16777216?ke+1|0:ke)>>>25|0,ke=(c=Ve=L<<13|H<<5|v<<21)+(Ve=(33554431&ke)<<7|bt>>>25)|0,c=ye+(ut=L>>>19|H>>>27|v>>>11)|0,c=ke>>>0<Ve>>>0?c+1|0:c,ye=(ut=ke+33554432|0)>>>0<33554432?c+1|0:c,a[f+8>>2]=ke-(-67108864&ut),pt=(Me=(67108863&Me)<<6|pt>>>26)+(nr=de<<18&33292288|h<<10|p<<2)|0,c=ke=h>>>22|p>>>30,ke=(Me=nr+16777216|0)>>>0<16777216?c+1|0:c,a[f+36>>2]=pt-(33554432&Me),ye=dt+((67108863&ye)<<6|ut>>>26)|0,a[f+12>>2]=ye-(234881024&it),Ve=Wt-(2113929216&bt)|0,ye=Ce((33554431&(c=ke))<<7|Me>>>25,ke=c>>>25|0,19,0),c=$,ye=(ke=ye+we|0)>>>0<ye>>>0?c+1|0:c,Me=((67108863&(ye=(c=ke+33554432|0)>>>0<33554432?ye+1|0:ye))<<6|c>>>26)+Ve|0,a[f+4>>2]=Me,a[f>>2]=ke-(-67108864&c)}function hM(f,c,h,p,b,B,Q,v){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0;var L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0;if((-7&(v|=0))==1){e:{t:{r:{n:{i:{c:{s:{if(p){o:{d:{if(v>>>0<=3){for(;;){re=H;a:{u:{f:{l:{for(;;){if(L=(L=(j=k[h+re|0])-65|0)&(~(90-j)&~L)>>>8&255|j+4&(~(j+65488)&~(57-j))>>>8&255|j+185&(~(j+65439)&~(122-j))>>>8&255|~(1+(16336^j))>>>8&63|~(1+(16340^j))>>>8&62,(0|(L|=(L-1&1+(65470^j))>>>8&255))!=255)break l;if(L=0,!b)break o;if(!bi(b,j))break;if((re=re+1|0)>>>0>=p>>>0)break f}H=re;break o}if(de=L+(de<<6)|0,Z>>>0>1)break u;Z=Z+6|0;break a}H=(f=H+1|0)>>>0<p>>>0?p:f;break o}if(Z=Z-2|0,c>>>0<=ee>>>0)break d;k[f+ee|0]=de>>>Z,ee=ee+1|0}if(L=0,!((H=re+1|0)>>>0<p>>>0))break}break o}for(;;){a:{if(L=(L=(j=k[h+re|0])-65|0)&(~(90-j)&~L)>>>8&255|j+4&(~(j+65488)&~(57-j))>>>8&255|j+185&(~(j+65439)&~(122-j))>>>8&255|~(1+(16288^j))>>>8&63|~(1+(16338^j))>>>8&62,(0|(L|=(L-1&1+(65470^j))>>>8&255))==255){if(L=0,!b)break o;if(bi(b,j)){if((re=re+1|0)>>>0>=p>>>0)break a;continue}H=re;break o}if(de=L+(de<<6)|0,Z>>>0<2)Z=Z+6|0;else{if(Z=Z-2|0,c>>>0<=ee>>>0)break d;k[f+ee|0]=de>>>Z,ee=ee+1|0}if(L=0,(H=re+1|0)>>>0>=p>>>0)break o;re=H;continue}break}H=(f=H+1|0)>>>0<p>>>0?p:f;break o}H=re,a[9404]=68,L=1}if(Z>>>0>4)break s;f=H}else f=0;if(c=-1,L){H=f;break e}if(~(-1<<Z)&de){H=f;break e}if(2&v){v=f;break i}if(Z>>>0<2){v=f;break i}if(H=f>>>0>p>>>0?f:p,re=Z>>>1|0,!b)break c;for(v=f;;){if((0|v)==(0|H)){L=68;break n}if((0|(f=k[h+v|0]))!=61){if(!bi(b,f)){L=28,H=v;break n}}else re=re-1|0;if(v=v+1|0,!re)break}break i}c=-1;break e}if(L=68,f>>>0>=p>>>0)break n;if(S[f+h|0]!=61){H=f,L=28;break n}if(v=f+re|0,(0|re)!=1){if((0|(Z=f+1|0))==(0|H))break n;if(S[h+Z|0]!=61){H=Z,L=28;break n}if((0|re)!=2&&((0|(f=f+2|0))==(0|H)||(L=28,H=f,S[f+h|0]!=61)))break n}}if(c=0,b)break r;break t}a[9404]=L;break e}if(!(p>>>0<=v>>>0)){for(;;){if(!bi(b,k[h+v|0]))break t;if((0|(v=v+1|0))==(0|p))break}v=p}}H=v,we=ee}return Q?a[Q>>2]=h+H:(0|p)!=(0|H)&&(a[9404]=28,c=-1),B&&(a[B>>2]=we),0|c}Bs(),Rr()}function $2(f,c,h,p){f|=0,c|=0,h|=0;var b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0;for((p|=0)?(b=S[p+12|0]|S[p+13|0]<<8|S[p+14|0]<<16|S[p+15|0]<<24,L=S[p+8|0]|S[p+9|0]<<8|S[p+10|0]<<16|S[p+11|0]<<24,H=S[p+4|0]|S[p+5|0]<<8|S[p+6|0]<<16|S[p+7|0]<<24,p=S[0|p]|S[p+1|0]<<8|S[p+2|0]<<16|S[p+3|0]<<24):(b=1797285236,L=2036477234,H=857760878,p=1634760805),B=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,v=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,Q=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,ye=S[h+28|0]|S[h+29|0]<<8|S[h+30|0]<<16|S[h+31|0]<<24,ke=S[h+24|0]|S[h+25|0]<<8|S[h+26|0]<<16|S[h+27|0]<<24,Me=20,de=S[h+20|0]|S[h+21|0]<<8|S[h+22|0]<<16|S[h+23|0]<<24,we=S[h+16|0]|S[h+17|0]<<8|S[h+18|0]<<16|S[h+19|0]<<24,re=S[h+12|0]|S[h+13|0]<<8|S[h+14|0]<<16|S[h+15|0]<<24,Z=S[h+8|0]|S[h+9|0]<<8|S[h+10|0]<<16|S[h+11|0]<<24,ee=S[h+4|0]|S[h+5|0]<<8|S[h+6|0]<<16|S[h+7|0]<<24,c=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S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>>2],a[h+380>>2]=Q,Q=a[f+12>>2],a[h+368>>2]=a[f+8>>2],a[h+372>>2]=Q,Q=a[f+4>>2],a[h+360>>2]=a[f>>2],a[h+364>>2]=Q,Q=a[c+12>>2],a[h+408>>2]=a[c+8>>2],a[h+412>>2]=Q,Q=a[c+20>>2],a[h+416>>2]=a[c+16>>2],a[h+420>>2]=Q,Q=a[c+28>>2],a[h+424>>2]=a[c+24>>2],a[h+428>>2]=Q,Q=a[c+36>>2],a[h+432>>2]=a[c+32>>2],a[h+436>>2]=Q,Q=a[c+4>>2],a[h+400>>2]=a[c>>2],a[h+404>>2]=Q,Q=a[j+12>>2],a[h+448>>2]=a[j+8>>2],a[h+452>>2]=Q,Q=a[j+20>>2],a[h+456>>2]=a[j+16>>2],a[h+460>>2]=Q,Q=a[j+28>>2],a[h+464>>2]=a[j+24>>2],a[h+468>>2]=Q,Q=a[j+36>>2],a[h+472>>2]=a[j+32>>2],a[h+476>>2]=Q,Q=a[j+4>>2],a[h+440>>2]=a[j>>2],a[h+444>>2]=Q,Rd(H,Q=h+360|0),Ar(Q,H,L),Ar(re=h+400|0,p,v),Ar(B=h+440|0,v,L),Rd(H,Q),Ar(Q,H,L),Ar(re,p,v),Ar(B,v,L),Rd(H,Q),Ar(Q,H,L),Ar(re,p,v),Ar(B,v,L),Rd(H,Q),Ar(f,H,L),Ar(c,p,v),Ar(j,v,L),Ar(b,H,p),Q=0;mH(re=h+8|0,Q>>>1|0,k[(h+288|0)+Q|0]),lM(H=h+128|0,f,re),Ar(f,H,L),Ar(c,p,v),Ar(j,v,L),Ar(b,H,p),H=Q>>>0<62,Q=Q+2|0,H;);Ie=h+480|0}function dH(f,c){f|=0;var h,p,b,B,Q,v=0,L=0,H=0,j=0,re=0,Z=0;for(Ie=h=Ie-736|0,xr(re=h+704|0,c|=0,c),xr(L=h+224|0,c,re),xr(j=h+672|0,c,L),xr(H=h+640|0,j,j),xr(p=h+416|0,re,H),xr(re=h+320|0,c,p),xr(v=h+608|0,H,H),xr(H=h+288|0,re,re),xr(Z=h+576|0,p,H),xr(Q=h+448|0,v,H),xr(b=h+544|0,Z,Z),xr(Z=h+384|0,v,b),xr(B=h+352|0,L,Z),xr(L=h+192|0,v,B),xr(v=h+160|0,j,L),xr(h+96|0,j,v),xr(L=h+512|0,b,B),xr(v=h+480|0,j,L),xr(L=h+256|0,Q,v),xr(h+128|0,H,L),xr(H=h- -64|0,Z,v),xr(v=h+32|0,j,H),xr(h,p,v),xr(f,re,h),j=0;xr(f,f,f),(0|(j=j+1|0))!=126;);return xr(f,f,h+352|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+704|0),xr(f,f,h),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+160|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+256|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h- -64|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+96|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+320|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+512|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+192|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+480|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+128|0),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,f),xr(f,f,h+32|0),Ie=h+736|0,0-ya(c,32)|0}function fH(f,c,h){f|=0;var p,b,B,Q,v=0,L=0,H=0,j=0,re=0;return Ie=B=Ie-160|0,ci(c|=0,h|=0,32,0),k[0|c]=248&S[0|c],k[c+31|0]=63&S[c+31|0]|64,qS(B,c),VS(f,B),L=S[(b=h)+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24,v=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,H=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,j=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,re=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,h=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,Q=S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24,p=c,c=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,k[p+24|0]=c,k[p+25|0]=c>>>8,k[p+26|0]=c>>>16,k[p+27|0]=c>>>24,k[p+28|0]=Q,k[p+29|0]=Q>>>8,k[p+30|0]=Q>>>16,k[p+31|0]=Q>>>24,k[p+16|0]=H,k[p+17|0]=H>>>8,k[p+18|0]=H>>>16,k[p+19|0]=H>>>24,k[p+20|0]=j,k[p+21|0]=j>>>8,k[p+22|0]=j>>>16,k[p+23|0]=j>>>24,k[p+8|0]=L,k[p+9|0]=L>>>8,k[p+10|0]=L>>>16,k[p+11|0]=L>>>24,k[p+12|0]=v,k[p+13|0]=v>>>8,k[p+14|0]=v>>>16,k[p+15|0]=v>>>24,k[0|p]=re,k[p+1|0]=re>>>8,k[p+2|0]=re>>>16,k[p+3|0]=re>>>24,k[p+4|0]=h,k[p+5|0]=h>>>8,k[p+6|0]=h>>>16,k[p+7|0]=h>>>24,H=S[(v=f)+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24,j=S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24,re=S[v+16|0]|S[v+17|0]<<8|S[v+18|0]<<16|S[v+19|0]<<24,h=S[v+20|0]|S[v+21|0]<<8|S[v+22|0]<<16|S[v+23|0]<<24,c=S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24,f=S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24,L=S[v+28|0]|S[v+29|0]<<8|S[v+30|0]<<16|S[v+31|0]<<24,v=S[v+24|0]|S[v+25|0]<<8|S[v+26|0]<<16|S[v+27|0]<<24,k[p+56|0]=v,k[p+57|0]=v>>>8,k[p+58|0]=v>>>16,k[p+59|0]=v>>>24,k[p+60|0]=L,k[p+61|0]=L>>>8,k[p+62|0]=L>>>16,k[p+63|0]=L>>>24,k[p+48|0]=re,k[p+49|0]=re>>>8,k[p+50|0]=re>>>16,k[p+51|0]=re>>>24,k[p+52|0]=h,k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0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0;we=a[c+4>>2],b=a[f+4>>2],ke=a[c+8>>2],B=a[f+8>>2],ye=a[c+12>>2],Q=a[f+12>>2],Me=a[c+16>>2],v=a[f+16>>2],Ve=a[c+20>>2],L=a[f+20>>2],de=a[c+24>>2],H=a[f+24>>2],We=a[c+28>>2],j=a[f+28>>2],ut=a[c+32>>2],re=a[f+32>>2],pt=a[c+36>>2],Z=a[f+36>>2],h=0-h|0,ee=a[f>>2],a[f>>2]=h&(ee^a[c>>2])^ee,a[f+36>>2]=Z^h&(Z^pt),a[f+32>>2]=re^h&(re^ut),a[f+28>>2]=j^h&(j^We),a[f+24>>2]=H^h&(H^de),a[f+20>>2]=L^h&(L^Ve),a[f+16>>2]=v^h&(v^Me),a[f+12>>2]=Q^h&(Q^ye),a[f+8>>2]=B^h&(B^ke),a[f+4>>2]=b^h&(b^we),b=a[f+44>>2],we=a[c+44>>2],B=a[f+48>>2],ke=a[c+48>>2],Q=a[f+52>>2],ye=a[c+52>>2],v=a[f+56>>2],Me=a[c+56>>2],L=a[f+60>>2],Ve=a[c+60>>2],H=a[(de=f- -64|0)>>2],We=a[c- -64>>2],j=a[f+68>>2],ut=a[c+68>>2],re=a[f+72>>2],pt=a[c+72>>2],Z=a[f+40>>2],ee=a[c+40>>2],p=a[f+76>>2],a[f+76>>2]=p^h&(a[c+76>>2]^p),a[f+72>>2]=re^h&(re^pt),a[f+68>>2]=j^h&(j^ut),a[de>>2]=H^h&(H^We),a[f+60>>2]=L^h&(L^Ve),a[f+56>>2]=v^h&(v^Me),a[f+52>>2]=Q^h&(Q^ye),a[f+48>>2]=B^h&(B^ke),a[f+44>>2]=b^h&(b^we),a[f+40>>2]=Z^h&(Z^ee),b=a[f+84>>2],we=a[c+84>>2],B=a[f+88>>2],ke=a[c+88>>2],Q=a[f+92>>2],ye=a[c+92>>2],v=a[f+96>>2],Me=a[c+96>>2],L=a[f+100>>2],Ve=a[c+100>>2],H=a[f+104>>2],de=a[c+104>>2],j=a[f+108>>2],We=a[c+108>>2],re=a[f+112>>2],ut=a[c+112>>2],Z=a[f+80>>2],pt=a[c+80>>2],ee=a[f+116>>2],a[f+116>>2]=h&(ee^a[c+116>>2])^ee,a[f+112>>2]=re^h&(re^ut),a[f+108>>2]=j^h&(j^We),a[f+104>>2]=H^h&(H^de),a[f+100>>2]=L^h&(L^Ve),a[f+96>>2]=v^h&(v^Me),a[f+92>>2]=Q^h&(Q^ye),a[f+88>>2]=B^h&(B^ke),a[f+84>>2]=b^h&(b^we),a[f+80>>2]=Z^h&(Z^pt),b=a[f+124>>2],we=a[c+124>>2],B=a[f+128>>2],ke=a[c+128>>2],Q=a[f+132>>2],ye=a[c+132>>2],v=a[f+136>>2],Me=a[c+136>>2],L=a[f+140>>2],Ve=a[c+140>>2],H=a[f+144>>2],de=a[c+144>>2],j=a[f+148>>2],We=a[c+148>>2],re=a[f+152>>2],ut=a[c+152>>2],Z=a[f+120>>2],pt=a[c+120>>2],ee=a[c+156>>2],c=a[f+156>>2],a[f+156>>2]=h&(ee^c)^c,a[f+152>>2]=re^h&(re^ut),a[f+148>>2]=j^h&(j^We),a[f+144>>2]=H^h&(H^de),a[f+140>>2]=L^h&(L^Ve),a[f+136>>2]=v^h&(v^Me),a[f+132>>2]=Q^h&(Q^ye),a[f+128>>2]=B^h&(B^ke),a[f+124>>2]=b^h&(b^we),a[f+120>>2]=Z^h&(Z^pt)}function AM(f,c,h){var p,b,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0;return Ie=p=Ie-320|0,Et(B=p+240|0,h),Ar(B,B,h),Et(f,B),Ar(f,f,h),Ar(f,f,c),mM(f,f),Ar(f,f,B),Ar(f,f,c),Et(B=p+192|0,f),Ar(B,B,h),Q=a[c+4>>2],de=a[c+8>>2],ke=a[c+12>>2],ye=a[c+16>>2],Me=a[c+20>>2],Ve=a[c+24>>2],We=a[c+28>>2],ut=a[c+32>>2],pt=a[c>>2],h=a[p+192>>2],B=a[p+196>>2],v=a[p+200>>2],L=a[p+204>>2],H=a[p+208>>2],j=a[p+212>>2],re=a[p+216>>2],Z=a[p+220>>2],ee=a[p+224>>2],we=a[p+228>>2],bt=a[c+36>>2],a[p+180>>2]=we-bt,a[p+176>>2]=ee-ut,a[p+172>>2]=Z-We,a[p+168>>2]=re-Ve,a[p+164>>2]=j-Me,a[p+160>>2]=H-ye,a[p+156>>2]=L-ke,a[p+152>>2]=v-de,a[p+148>>2]=B-Q,a[p+144>>2]=h-pt,a[p+132>>2]=we+bt,a[p+128>>2]=ee+ut,a[p+124>>2]=Z+We,a[p+120>>2]=re+Ve,a[p+116>>2]=j+Me,a[p+112>>2]=H+ye,a[p+108>>2]=L+ke,a[p+104>>2]=v+de,a[p+100>>2]=B+Q,a[p+96>>2]=h+pt,Ar(Q=p+48|0,c,1632),a[p+84>>2]=we+a[p+84>>2],a[p+80>>2]=ee+a[p+80>>2],a[p+76>>2]=Z+a[p+76>>2],a[p+72>>2]=re+a[p+72>>2],a[p+68>>2]=j+a[p+68>>2],a[p+64>>2]=H+a[p+64>>2],a[p+60>>2]=L+a[p+60>>2],a[p+56>>2]=v+a[p+56>>2],a[p+52>>2]=B+a[p+52>>2],a[p+48>>2]=h+a[p+48>>2],yc(p,p+144|0),ke=ya(p,32),yc(p,p+96|0),de=ya(p,32),yc(p,Q),c=ya(p,32),Ar(p,f,1632),ee=a[f+4>>2],Z=a[f+8>>2],re=a[f+12>>2],j=a[f+16>>2],H=a[f+20>>2],L=a[f+24>>2],v=a[f+28>>2],B=a[f+32>>2],Q=a[f>>2],ye=a[p>>2],Me=a[p+4>>2],Ve=a[p+8>>2],We=a[p+12>>2],ut=a[p+16>>2],pt=a[p+20>>2],we=a[p+24>>2],bt=a[p+28>>2],b=a[p+32>>2],h=(c=0-(c|de)|0)&((h=a[f+36>>2])^a[p+36>>2])^h,a[f+36>>2]=h,B^=c&(B^b),a[f+32>>2]=B,v^=c&(v^bt),a[f+28>>2]=v,L^=c&(L^we),a[f+24>>2]=L,H^=c&(H^pt),a[f+20>>2]=H,j^=c&(j^ut),a[f+16>>2]=j,re^=c&(re^We),a[f+12>>2]=re,Z^=c&(Z^Ve),a[f+8>>2]=Z,ee^=c&(ee^Me),a[f+4>>2]=ee,Q^=c&(Q^ye),a[f>>2]=Q,yc(p+288|0,f),c=0-(1&k[p+288|0])|0,a[f+36>>2]=h^c&(h^0-h),a[f+32>>2]=B^c&(B^0-B),a[f+28>>2]=v^c&(v^0-v),a[f+24>>2]=L^c&(L^0-L),a[f+20>>2]=H^c&(H^0-H),a[f+16>>2]=j^c&(j^0-j),a[f+12>>2]=re^c&(re^0-re),a[f+8>>2]=Z^c&(Z^0-Z),a[f+4>>2]=ee^c&(ee^0-ee),a[f>>2]=Q^c&(Q^0-Q),Ie=p+320|0,de|ke}function fv(f,c){var h,p,b,B,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0;return Ie=h=Ie-320|0,dv(p=f+40|0,c),a[f+84>>2]=0,a[f+88>>2]=0,a[f+80>>2]=1,a[f+92>>2]=0,a[f+96>>2]=0,a[f+100>>2]=0,a[f+104>>2]=0,a[f+108>>2]=0,a[f+112>>2]=0,a[f+116>>2]=0,Et(Q=h+240|0,p),Ar(v=h+192|0,Q,1584),a[h+192>>2]=a[h+192>>2]+1,L=a[h+240>>2]-1|0,a[h+240>>2]=L,H=a[h+244>>2],j=a[h+248>>2],re=a[h+252>>2],Z=a[h+256>>2],ee=a[h+260>>2],de=a[h+264>>2],we=a[h+268>>2],ke=a[h+272>>2],ye=a[h+276>>2],Ar(f,Q,v),mM(f,f),Ar(f,Q,f),Et(Q=h+144|0,f),Ar(Q,Q,v),Q=a[h+180>>2],a[h+132>>2]=Q-ye,v=a[h+176>>2],a[h+128>>2]=v-ke,Me=a[h+172>>2],a[h+124>>2]=Me-we,Ve=a[h+168>>2],a[h+120>>2]=Ve-de,We=a[h+164>>2],a[h+116>>2]=We-ee,ut=a[h+160>>2],a[h+112>>2]=ut-Z,pt=a[h+156>>2],a[h+108>>2]=pt-re,bt=a[h+152>>2],a[h+104>>2]=bt-j,Ye=a[h+148>>2],a[h+100>>2]=Ye-H,it=a[h+144>>2],a[h+96>>2]=it-L,a[h+84>>2]=Q+ye,a[h+80>>2]=v+ke,a[h+76>>2]=we+Me,a[h+72>>2]=de+Ve,a[h+68>>2]=ee+We,a[h+64>>2]=Z+ut,a[h+60>>2]=re+pt,a[h+56>>2]=j+bt,a[h+52>>2]=H+Ye,a[h+48>>2]=L+it,yc(h,h+96|0),ke=ya(h,32),yc(h,h+48|0),Me=ya(h,32),Ar(h,f,1632),we=a[f+4>>2],de=a[f+8>>2],ee=a[f+12>>2],Z=a[f+16>>2],re=a[f+20>>2],j=a[f+24>>2],H=a[f+28>>2],L=a[f+32>>2],ye=a[f>>2],Ve=a[h>>2],We=a[h+4>>2],ut=a[h+8>>2],pt=a[h+12>>2],bt=a[h+16>>2],Ye=a[h+20>>2],it=a[h+24>>2],b=a[h+28>>2],B=a[h+32>>2],v=(Q=ke-1|0)&((v=a[f+36>>2])^a[h+36>>2])^v,a[f+36>>2]=v,L^=Q&(L^B),a[f+32>>2]=L,H^=Q&(H^b),a[f+28>>2]=H,j^=Q&(j^it),a[f+24>>2]=j,re^=Q&(re^Ye),a[f+20>>2]=re,Z^=Q&(Z^bt),a[f+16>>2]=Z,ee^=Q&(ee^pt),a[f+12>>2]=ee,de^=Q&(de^ut),a[f+8>>2]=de,we^=Q&(we^We),a[f+4>>2]=we,Q=ye^Q&(ye^Ve),a[f>>2]=Q,yc(h+288|0,f),c=0-(1&k[h+288|0]^S[c+31|0]>>>7^S[38144]>>>2)|0,a[f+36>>2]=v^c&(v^0-v),a[f+32>>2]=L^c&(L^0-L),a[f+28>>2]=H^c&(H^0-H),a[f+24>>2]=j^c&(j^0-j),a[f+20>>2]=re^c&(re^0-re),a[f+16>>2]=Z^c&(Z^0-Z),a[f+12>>2]=ee^c&(ee^0-ee),a[f+8>>2]=de^c&(de^0-de),a[f+4>>2]=we^c&(we^0-we),a[f>>2]=Q^c&(Q^0-Q),Ar(f+120|0,f,p),Ie=h+320|0,(ke|Me)-1|0}function Rd(f,c){var h,p,b,B,Q,v,L,H,j,re,Z,ee,de,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0;Ie=h=Ie-48|0,Et(f,c),Et(f+80|0,c+40|0),vd(f+120|0,c+80|0),we=a[c+44>>2],ke=a[c+4>>2],We=a[c+48>>2],ye=a[c+8>>2],ut=a[c+52>>2],Me=a[c+12>>2],pt=a[c+56>>2],Ve=a[c+16>>2],Wt=a[c+60>>2],bt=a[c+20>>2],nr=a[c- -64>>2],Ye=a[c+24>>2],cr=a[c+68>>2],it=a[c+28>>2],gr=a[c+72>>2],vr=a[c+32>>2],Sr=a[c+40>>2],dt=a[c>>2],a[f+76>>2]=a[c+76>>2]+a[c+36>>2],a[f+72>>2]=gr+vr,a[f+68>>2]=cr+it,a[(p=f- -64|0)>>2]=nr+Ye,a[f+60>>2]=Wt+bt,a[f+56>>2]=pt+Ve,a[f+52>>2]=ut+Me,a[f+48>>2]=We+ye,a[f+44>>2]=we+ke,a[f+40>>2]=Sr+dt,Et(h,f+40|0),c=a[f+4>>2],we=a[f+84>>2],ke=a[f+8>>2],We=a[f+88>>2],ye=a[f+12>>2],ut=a[f+92>>2],Me=a[f+16>>2],pt=a[f+96>>2],Ve=a[f+20>>2],Wt=a[f+100>>2],bt=a[f+24>>2],nr=a[f+104>>2],Ye=a[f+28>>2],cr=a[f+108>>2],it=a[f+32>>2],gr=a[f+112>>2],vr=a[f>>2],Sr=a[f+80>>2],B=(dt=a[f+116>>2])-(b=a[f+36>>2])|0,a[f+116>>2]=B,Q=gr-it|0,a[f+112>>2]=Q,v=cr-Ye|0,a[f+108>>2]=v,L=nr-bt|0,a[f+104>>2]=L,H=Wt-Ve|0,a[f+100>>2]=H,j=pt-Me|0,a[f+96>>2]=j,re=ut-ye|0,a[f+92>>2]=re,Z=We-ke|0,a[f+88>>2]=Z,ee=we-c|0,a[f+84>>2]=ee,de=Sr-vr|0,a[f+80>>2]=de,dt=dt+b|0,a[f+76>>2]=dt,it=it+gr|0,a[f+72>>2]=it,Ye=Ye+cr|0,a[f+68>>2]=Ye,bt=bt+nr|0,a[p>>2]=bt,Ve=Ve+Wt|0,a[f+60>>2]=Ve,Me=Me+pt|0,a[f+56>>2]=Me,ye=ye+ut|0,a[f+52>>2]=ye,ke=ke+We|0,a[f+48>>2]=ke,c=c+we|0,a[f+44>>2]=c,we=vr+Sr|0,a[f+40>>2]=we,We=a[h>>2],ut=a[h+4>>2],pt=a[h+8>>2],Wt=a[h+12>>2],nr=a[h+16>>2],cr=a[h+20>>2],gr=a[h+24>>2],vr=a[h+28>>2],Sr=a[h+32>>2],a[f+36>>2]=a[h+36>>2]-dt,a[f+32>>2]=Sr-it,a[f+28>>2]=vr-Ye,a[f+24>>2]=gr-bt,a[f+20>>2]=cr-Ve,a[f+16>>2]=nr-Me,a[f+12>>2]=Wt-ye,a[f+8>>2]=pt-ke,a[f+4>>2]=ut-c,a[f>>2]=We-we,c=a[f+124>>2],we=a[f+128>>2],ke=a[f+132>>2],We=a[f+136>>2],ye=a[f+140>>2],ut=a[f+144>>2],Me=a[f+148>>2],pt=a[f+152>>2],Ve=a[f+120>>2],a[f+156>>2]=a[f+156>>2]-B,a[f+152>>2]=pt-Q,a[f+148>>2]=Me-v,a[f+144>>2]=ut-L,a[f+140>>2]=ye-H,a[f+136>>2]=We-j,a[f+132>>2]=ke-re,a[f+128>>2]=we-Z,a[f+124>>2]=c-ee,a[f+120>>2]=Ve-de,Ie=h+48|0}function w1(f,c,h,p){var b,B=0,Q=0,v=0,L=0,H=0,j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(f|ee)for(;k[Q+L|0]=S[c+Q|0],v=(Q=Q+1|0)?v:v+1|0,B=de,de=B=(Z=Z+1|0)?B:B+1|0,(0|f)!=(0|Z)|(0|ee)!=(0|B););}bn(b,288)}else{if(Q=0,v=0,!p&h>>>0>=4|p)for(f=-4&h;k[(B=Q+j|0)+L|0]=S[c+Q|0],k[L+(H=j+(B=1|Q)|0)|0]=S[c+B|0],k[L+(H=j+(B=2|Q)|0)|0]=S[c+B|0],k[L+(H=j+(B=3|Q)|0)|0]=S[c+B|0],B=v,v=(Q=Q+4|0)>>>0<4?B+1|0:B,B=ee,ee=B=(re=re+4|0)>>>0<4?B+1|0:B,(0|f)!=(0|re)|(0|p)!=(0|B););if((h&=3)|(f=0))for(;k[(p=Q+j|0)+L|0]=S[c+Q|0],v=(Q=Q+1|0)?v:v+1|0,B=de,de=B=(Z=Z+1|0)?B:B+1|0,(0|h)!=(0|Z)|(0|f)!=(0|B););}return Ie=b+288|0,0}function pM(f,c,h,p,b,B){var Q=0;a[B>>2]=8;e:{t:{Q=f,Q=(f=!c&f>>>0<=32768)?32768:Q;r:{n:{if(!(f=f?0:c)&h>>>5>>>0<=Q>>>0|f){if(h>>>0>=4096)break n;c=1;break r}if(a[b>>2]=1,f=1,(c=(Q>>>0)/(a[B>>2]<<2>>>0)|0)>>>0<4||(f=2,c>>>0<8))break e;if(c>>>0<16)return void(a[p>>2]=3);if(c>>>0<32)return void(a[p>>2]=4);if(c>>>0<64)return void(a[p>>2]=5);if(c>>>0<128)return void(a[p>>2]=6);if(c>>>0<256)return void(a[p>>2]=7);if(c>>>0<512)return void(a[p>>2]=8);if(c>>>0<1024)return void(a[p>>2]=9);if(c>>>0<2048)return void(a[p>>2]=10);if(c>>>0<4096)return void(a[p>>2]=11);if(c>>>0<8192)return void(a[p>>2]=12);if(c>>>0<16384)return void(a[p>>2]=13);if(c>>>0<32768)return void(a[p>>2]=14);if(c>>>0<65536)return void(a[p>>2]=15);if(c>>>0<131072)return void(a[p>>2]=16);if(c>>>0<262144)return void(a[p>>2]=17);if(c>>>0<524288)return void(a[p>>2]=18);if(c>>>0<1048576)return void(a[p>>2]=19);if(c>>>0<2097152)return void(a[p>>2]=20);if(c>>>0<4194304)return void(a[p>>2]=21);if(c>>>0<8388608)return void(a[p>>2]=22);if(c>>>0<16777216)return void(a[p>>2]=23);if(c>>>0>=33554432)break t;return void(a[p>>2]=24)}c=2,h>>>0<8192||(c=3,h>>>0<16384||(c=4,h>>>0<32768||(c=5,h>>>0<65536||(c=6,h>>>0<131072||(c=7,h>>>0<262144||(c=8,h>>>0<524288||(c=9,h>>>0<1048576||(c=10,h>>>0<2097152||(c=11,h>>>0<4194304||(c=12,h>>>0<8388608||(c=13,h>>>0<16777216||(c=14,h>>>0<33554432||(c=15,h>>>0<67108864||(c=16,h>>>0<134217728||(c=17,h>>>0<268435456||(c=18,h>>>0<536870912||(c=19,h>>>0<1073741824||(c=(0|h)>=0?20:21))))))))))))))))))}return h=c,a[p>>2]=h,f=(c=f)>>>2|0,c=(3&c)<<30|Q>>>2,p=31&h,(63&h)>>>0>=32?(h=0,f=f>>>p|0):(h=f>>>p|0,f=((1<<p)-1&f)<<32-p|c>>>p),void(a[b>>2]=((!h&f>>>0>=1073741823|h?1073741823:f)>>>0)/sn[B>>2])}f=c>>>0<67108864?25:26}a[p>>2]=f}function lH(f,c,h){var p,b,B,Q,v,L,H,j,re=0;Ie=p=Ie-160|0,a[f>>2]=1,a[f+4>>2]=0,a[f+8>>2]=0,a[f+12>>2]=0,a[f+16>>2]=0,a[f+20>>2]=0,a[f+24>>2]=0,a[f+28>>2]=0,a[f+32>>2]=0,a[f+44>>2]=0,a[f+48>>2]=0,a[f+36>>2]=0,a[f+40>>2]=1,a[f+52>>2]=0,a[f+56>>2]=0,a[f+60>>2]=0,a[f+64>>2]=0,a[f+68>>2]=0,a[f+72>>2]=0,a[f+76>>2]=0,a[f+80>>2]=1,yo(f+84|0,0,76),Y2(f,c,(255&(1^(re=h-((h>>31&h)<<1)|0)))-1>>>31|0),Y2(f,c+160|0,(255&(2^re))-1>>>31|0),Y2(f,c+320|0,(255&(3^re))-1>>>31|0),Y2(f,c+480|0,(255&(4^re))-1>>>31|0),Y2(f,c+640|0,(255&(5^re))-1>>>31|0),Y2(f,c+800|0,(255&(6^re))-1>>>31|0),Y2(f,c+960|0,(255&(7^re))-1>>>31|0),Y2(f,c+1120|0,(255&(8^re))-1>>>31|0),c=a[f+76>>2],a[p+32>>2]=a[f+72>>2],a[p+36>>2]=c,re=a[4+(c=f- -64|0)>>2],a[p+24>>2]=a[c>>2],a[p+28>>2]=re,c=a[f+60>>2],a[p+16>>2]=a[f+56>>2],a[p+20>>2]=c,c=a[f+52>>2],a[p+8>>2]=a[f+48>>2],a[p+12>>2]=c,c=a[f+44>>2],a[p>>2]=a[f+40>>2],a[p+4>>2]=c,c=a[f+36>>2],a[p+72>>2]=a[f+32>>2],a[p+76>>2]=c,re=a[f+28>>2],a[(c=p- -64|0)>>2]=a[f+24>>2],a[c+4>>2]=re,c=a[f+20>>2],a[p+56>>2]=a[f+16>>2],a[p+60>>2]=c,c=a[f+12>>2],a[p+48>>2]=a[f+8>>2],a[p+52>>2]=c,c=a[f+4>>2],a[p+40>>2]=a[f>>2],a[p+44>>2]=c,c=a[f+92>>2],a[p+88>>2]=a[f+88>>2],a[p+92>>2]=c,c=a[f+100>>2],a[p+96>>2]=a[f+96>>2],a[p+100>>2]=c,c=a[f+108>>2],a[p+104>>2]=a[f+104>>2],a[p+108>>2]=c,c=a[f+116>>2],a[p+112>>2]=a[f+112>>2],a[p+116>>2]=c,c=a[f+84>>2],a[p+80>>2]=a[f+80>>2],a[p+84>>2]=c,c=a[f+124>>2],re=a[f+128>>2],b=a[f+132>>2],B=a[f+136>>2],Q=a[f+140>>2],v=a[f+144>>2],L=a[f+148>>2],H=a[f+152>>2],j=a[f+120>>2],a[p+156>>2]=0-a[f+156>>2],a[p+152>>2]=0-H,a[p+148>>2]=0-L,a[p+144>>2]=0-v,a[p+140>>2]=0-Q,a[p+136>>2]=0-B,a[p+132>>2]=0-b,a[p+128>>2]=0-re,a[p+124>>2]=0-c,a[p+120>>2]=0-j,Y2(f,p,(128&h)>>>7|0),Ie=p+160|0}function hH(f,c){f|=0,c|=0;var h,p,b,B,Q,v=0,L=0,H=0;return Ie=L=Ie-192|0,wf(L,32),ci(c,L,32,0),k[0|c]=248&S[0|c],k[c+31|0]=63&S[c+31|0]|64,qS(H=L+32|0,c),VS(f,H),h=L,H=a[L+28>>2],L=a[L+24>>2],k[c+24|0]=L,k[c+25|0]=L>>>8,k[c+26|0]=L>>>16,k[c+27|0]=L>>>24,k[c+28|0]=H,k[c+29|0]=H>>>8,k[c+30|0]=H>>>16,k[c+31|0]=H>>>24,H=a[h+20>>2],L=a[h+16>>2],k[c+16|0]=L,k[c+17|0]=L>>>8,k[c+18|0]=L>>>16,k[c+19|0]=L>>>24,k[c+20|0]=H,k[c+21|0]=H>>>8,k[c+22|0]=H>>>16,k[c+23|0]=H>>>24,H=a[h+12>>2],L=a[h+8>>2],k[c+8|0]=L,k[c+9|0]=L>>>8,k[c+10|0]=L>>>16,k[c+11|0]=L>>>24,k[c+12|0]=H,k[c+13|0]=H>>>8,k[c+14|0]=H>>>16,k[c+15|0]=H>>>24,H=a[h+4>>2],L=a[h>>2],k[0|c]=L,k[c+1|0]=L>>>8,k[c+2|0]=L>>>16,k[c+3|0]=L>>>24,k[c+4|0]=H,k[c+5|0]=H>>>8,k[c+6|0]=H>>>16,k[c+7|0]=H>>>24,p=S[(v=f)+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24,b=S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24,B=S[v+16|0]|S[v+17|0]<<8|S[v+18|0]<<16|S[v+19|0]<<24,H=S[v+20|0]|S[v+21|0]<<8|S[v+22|0]<<16|S[v+23|0]<<24,L=S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24,f=S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24,Q=S[v+28|0]|S[v+29|0]<<8|S[v+30|0]<<16|S[v+31|0]<<24,v=S[v+24|0]|S[v+25|0]<<8|S[v+26|0]<<16|S[v+27|0]<<24,k[c+56|0]=v,k[c+57|0]=v>>>8,k[c+58|0]=v>>>16,k[c+59|0]=v>>>24,k[c+60|0]=Q,k[c+61|0]=Q>>>8,k[c+62|0]=Q>>>16,k[c+63|0]=Q>>>24,k[c+48|0]=B,k[c+49|0]=B>>>8,k[c+50|0]=B>>>16,k[c+51|0]=B>>>24,k[c+52|0]=H,k[c+53|0]=H>>>8,k[c+54|0]=H>>>16,k[c+55|0]=H>>>24,k[c+40|0]=p,k[c+41|0]=p>>>8,k[c+42|0]=p>>>16,k[c+43|0]=p>>>24,k[c+44|0]=b,k[c+45|0]=b>>>8,k[c+46|0]=b>>>16,k[c+47|0]=b>>>24,k[c+32|0]=L,k[c+33|0]=L>>>8,k[c+34|0]=L>>>16,k[c+35|0]=L>>>24,k[c+36|0]=f,k[c+37|0]=f>>>8,k[c+38|0]=f>>>16,k[c+39|0]=f>>>24,bn(h,32),Ie=h+192|0,0}function W2(f,c){c|=0;var h,p,b=0,B=0,Q=0,v=0;return Ie=h=Ie-288|0,B=40+((b=a[32+(f|=0)>>2]>>>3&63)+f|0)|0,b>>>0>=56?(Di(B,35520,64-b|0),vs(f,f+40|0,h,h+256|0),a[f+88>>2]=0,a[f+92>>2]=0,a[f+80>>2]=0,a[f+84>>2]=0,a[f+72>>2]=0,a[f+76>>2]=0,a[(b=f- -64|0)>>2]=0,a[b+4>>2]=0,a[f+56>>2]=0,a[f+60>>2]=0,a[f+48>>2]=0,a[f+52>>2]=0,a[f+40>>2]=0,a[f+44>>2]=0):Di(B,35520,56-b|0),Q=(b=16711680&(B=a[f+32>>2]))>>>8|0,v=b<<24,p=(b=-16777216&B)>>>24|0,b=(v|=b<<8)|-16777216&((255&(b=a[f+36>>2]))<<24|B>>>8)|16711680&((16777215&b)<<8|B>>>24)|b>>>8&65280|b>>>24,k[f+96|0]=b,k[f+97|0]=b>>>8,k[f+98|0]=b>>>16,k[f+99|0]=b>>>24,b=Q|p|B<<24|(65280&B)<<8,b|=Q=0,k[f+100|0]=b,k[f+101|0]=b>>>8,k[f+102|0]=b>>>16,k[f+103|0]=b>>>24,vs(f,f+40|0,h,h+256|0),b=(b=a[f>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[0|c]=b,k[c+1|0]=b>>>8,k[c+2|0]=b>>>16,k[c+3|0]=b>>>24,b=(b=a[f+4>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+4|0]=b,k[c+5|0]=b>>>8,k[c+6|0]=b>>>16,k[c+7|0]=b>>>24,b=(b=a[f+8>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+8|0]=b,k[c+9|0]=b>>>8,k[c+10|0]=b>>>16,k[c+11|0]=b>>>24,b=(b=a[f+12>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+12|0]=b,k[c+13|0]=b>>>8,k[c+14|0]=b>>>16,k[c+15|0]=b>>>24,b=(b=a[f+16>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+16|0]=b,k[c+17|0]=b>>>8,k[c+18|0]=b>>>16,k[c+19|0]=b>>>24,b=(b=a[f+20>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+20|0]=b,k[c+21|0]=b>>>8,k[c+22|0]=b>>>16,k[c+23|0]=b>>>24,b=(b=a[f+24>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+24|0]=b,k[c+25|0]=b>>>8,k[c+26|0]=b>>>16,k[c+27|0]=b>>>24,b=(b=a[f+28>>2])<<24|(65280&b)<<8|b>>>8&65280|b>>>24,k[c+28|0]=b,k[c+29|0]=b>>>8,k[c+30|0]=b>>>16,k[c+31|0]=b>>>24,bn(h,288),bn(f,104),Ie=h+288|0,0}function AH(f,c){f|=0;var h,p=0;Ie=h=Ie+-64|0,p=S[60+(c|=0)|0]|S[c+61|0]<<8|S[c+62|0]<<16|S[c+63|0]<<24,a[h+56>>2]=S[c+56|0]|S[c+57|0]<<8|S[c+58|0]<<16|S[c+59|0]<<24,a[h+60>>2]=p,p=S[c+52|0]|S[c+53|0]<<8|S[c+54|0]<<16|S[c+55|0]<<24,a[h+48>>2]=S[c+48|0]|S[c+49|0]<<8|S[c+50|0]<<16|S[c+51|0]<<24,a[h+52>>2]=p,p=S[c+44|0]|S[c+45|0]<<8|S[c+46|0]<<16|S[c+47|0]<<24,a[h+40>>2]=S[c+40|0]|S[c+41|0]<<8|S[c+42|0]<<16|S[c+43|0]<<24,a[h+44>>2]=p,p=S[c+36|0]|S[c+37|0]<<8|S[c+38|0]<<16|S[c+39|0]<<24,a[h+32>>2]=S[c+32|0]|S[c+33|0]<<8|S[c+34|0]<<16|S[c+35|0]<<24,a[h+36>>2]=p,p=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[h+24>>2]=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,a[h+28>>2]=p,p=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[h+16>>2]=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[h+20>>2]=p,p=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,a[h>>2]=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,a[h+4>>2]=p,p=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,a[h+8>>2]=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,a[h+12>>2]=p,ho(h),c=a[h+28>>2],p=a[h+24>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[h+20>>2],p=a[h+16>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[h+12>>2],p=a[h+8>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[h+4>>2],p=a[h>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,bn(h,64),Ie=h- -64|0}function My(f,c,h){f|=0,c|=0;var p,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0;if(Ie=p=Ie-96|0,(h|=0)>>>0>=65&&(CH(f),w1(f,c,h,0),W2(f,p),h=32,c=p),CH(f),a[p+88>>2]=909522486,a[p+92>>2]=909522486,a[p+80>>2]=909522486,a[p+84>>2]=909522486,a[p+72>>2]=909522486,a[p+76>>2]=909522486,a[(Q=j=p- -64|0)>>2]=909522486,a[Q+4>>2]=909522486,a[p+56>>2]=909522486,a[p+60>>2]=909522486,a[p+48>>2]=909522486,a[p+52>>2]=909522486,a[p+40>>2]=909522486,a[p+44>>2]=909522486,a[p+32>>2]=909522486,a[p+36>>2]=909522486,h){if(h>>>0>=4)for(v=124&h;k[0|(B=(Q=p+32|0)+b|0)]=S[0|B]^S[c+b|0],k[0|(re=(B=1|b)+Q|0)]=S[0|re]^S[c+B|0],k[0|(re=(B=2|b)+Q|0)]=S[0|re]^S[c+B|0],k[0|(B=(B=Q)+(Q=3|b)|0)]=S[0|B]^S[c+Q|0],b=b+4|0,(0|v)!=(0|(L=L+4|0)););if(L=3&h)for(;k[0|(Q=(p+32|0)+b|0)]=S[0|Q]^S[c+b|0],b=b+1|0,(0|L)!=(0|(H=H+1|0)););}if(w1(f,p+32|0,64,0),CH(Q=f+104|0),a[p+88>>2]=1549556828,a[p+92>>2]=1549556828,a[p+80>>2]=1549556828,a[p+84>>2]=1549556828,a[p+72>>2]=1549556828,a[p+76>>2]=1549556828,a[j>>2]=1549556828,a[j+4>>2]=1549556828,a[p+56>>2]=1549556828,a[p+60>>2]=1549556828,a[p+48>>2]=1549556828,a[p+52>>2]=1549556828,a[p+40>>2]=1549556828,a[p+44>>2]=1549556828,a[p+32>>2]=1549556828,a[p+36>>2]=1549556828,h){if(H=0,b=0,h>>>0>=4)for(j=124&h,L=0;k[0|(v=(f=p+32|0)+b|0)]=S[0|v]^S[c+b|0],k[0|(B=(v=1|b)+f|0)]=S[0|B]^S[c+v|0],k[0|(B=(v=2|b)+f|0)]=S[0|B]^S[c+v|0],k[0|(v=(B=f)+(f=3|b)|0)]=S[0|v]^S[f+c|0],b=b+4|0,(0|j)!=(0|(L=L+4|0)););if(f=3&h)for(;k[0|(h=(p+32|0)+b|0)]=S[0|h]^S[c+b|0],b=b+1|0,(0|f)!=(0|(H=H+1|0)););}return w1(Q,f=p+32|0,64,0),bn(f,64),bn(p,32),Ie=p+96|0,0}function gM(f,c,h,p,b,B,Q){var v=0,L=0,H=0,j=0,re=0,Z=0,ee=0;if(c-65>>>0<4294967232|Q>>>0>64)f=-1;else{Z=v=Ie,Ie=v=v-512&-64;e:{t:if(!(!(!(p|b)|h)|!f|((L=255&c)-65&255)>>>0<=191|!(!(c=255&Q)||B)|c>>>0>=65)){if(c){if(!B)break t;yo(v- -64|0,0,293),a[v+56>>2]=327033209,a[v+60>>2]=1541459225,a[v+48>>2]=-79577749,a[v+52>>2]=528734635,a[v+40>>2]=725511199,a[v+44>>2]=-1694144372,a[v+32>>2]=-1377402159,a[v+36>>2]=1359893119,a[v+24>>2]=1595750129,a[v+28>>2]=-1521486534,a[v+16>>2]=-23791573,a[v+20>>2]=1013904242,a[v+8>>2]=-2067093701,a[v+12>>2]=-1150833019,a[v>>2]=-222443256^(c<<8|L),a[v+4>>2]=c>>>24^1779033703,yo((Q=v+384|0)+c|0,0,128-c|0),Di(Q,B,c),Di(v+96|0,Q,128),a[v+352>>2]=128,bn(Q,128),c=128}else yo(v- -64|0,0,293),a[v+56>>2]=327033209,a[v+60>>2]=1541459225,a[v+48>>2]=-79577749,a[v+52>>2]=528734635,a[v+40>>2]=725511199,a[v+44>>2]=-1694144372,a[v+32>>2]=-1377402159,a[v+36>>2]=1359893119,a[v+24>>2]=1595750129,a[v+28>>2]=-1521486534,a[v+16>>2]=-23791573,a[v+20>>2]=1013904242,a[v+8>>2]=-2067093701,a[v+12>>2]=-1150833019,a[v>>2]=-222443256^L,a[v+4>>2]=1779033703,c=0;r:if(p|b)for(ee=v+224|0,H=v+96|0;;){if(Q=c+H|0,!b&p>>>0<=(B=256-c|0)>>>0){Di(Q,h,p),a[v+352>>2]=p+a[v+352>>2];break r}if(Di(Q,h,B),a[v+352>>2]=B+a[v+352>>2],j=c=a[v+68>>2],c=(re=(Q=a[v+64>>2])+128|0)>>>0<128?c+1|0:c,a[v+64>>2]=re,a[v+68>>2]=c,c=a[v+76>>2],c=(j=Q=(0|j)==-1&Q>>>0>4294967167)>>>0>(Q=Q+a[v+72>>2]|0)>>>0?c+1|0:c,a[v+72>>2]=Q,a[v+76>>2]=c,Qr(v,H),Di(H,ee,128),c=a[v+352>>2]-128|0,a[v+352>>2]=c,h=h+B|0,!((b=b-(p>>>0<B>>>0)|0)|(p=p-B|0)))break}sM(v,f,L),Ie=Z;break e}Bs(),Rr()}f=0}return f}function pH(f,c){f|=0,c|=0;var h,p=0;Ie=h=Ie-128|0,a[h+80>>2]=0,a[h+84>>2]=0,a[h+88>>2]=0,a[h+92>>2]=0,a[h+40>>2]=0,a[h+44>>2]=0,a[h+48>>2]=0,a[h+52>>2]=0,a[h+56>>2]=0,a[h+60>>2]=0,p=a[8799],a[h+104>>2]=a[8798],a[h+108>>2]=p,p=a[8801],a[h+112>>2]=a[8800],a[h+116>>2]=p,p=a[8803],a[h+120>>2]=a[8802],a[h+124>>2]=p,a[h+64>>2]=0,a[h+68>>2]=0,a[h+72>>2]=0,a[h+76>>2]=0,k[h+64|0]=1,a[h+32>>2]=0,a[h+36>>2]=0,p=a[8797],a[h+96>>2]=a[8796],a[h+100>>2]=p,p=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[h+24>>2]=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,a[h+28>>2]=p,p=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[h+16>>2]=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[h+20>>2]=p,p=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,a[h+8>>2]=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c+11|0]<<24,a[h+12>>2]=p,p=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,a[h>>2]=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,a[h+4>>2]=p,Qre(c=h- -64|0,h),ho(c),c=a[h+92>>2],p=a[h+88>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[h+84>>2],p=a[h+80>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[h+76>>2],p=a[h+72>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[h+68>>2],p=a[h+64>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,Ie=h+128|0}function gH(f,c){f|=0,c|=0;var h,p=0;Ie=h=Ie-128|0,a[h+80>>2]=0,a[h+84>>2]=0,a[h+88>>2]=0,a[h+92>>2]=0,a[h+40>>2]=0,a[h+44>>2]=0,a[h+48>>2]=0,a[h+52>>2]=0,a[h+56>>2]=0,a[h+60>>2]=0,p=a[8799],a[h+104>>2]=a[8798],a[h+108>>2]=p,p=a[8801],a[h+112>>2]=a[8800],a[h+116>>2]=p,p=a[8803],a[h+120>>2]=a[8802],a[h+124>>2]=p,a[h+64>>2]=0,a[h+68>>2]=0,a[h+72>>2]=0,a[h+76>>2]=0,a[h+32>>2]=0,a[h+36>>2]=0,p=a[8797],a[h+96>>2]=a[8796],a[h+100>>2]=p,p=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[h+16>>2]=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[h+20>>2]=p,p=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[h+24>>2]=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,a[h+28>>2]=p,p=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24,a[h>>2]=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24,a[h+4>>2]=p,p=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,a[h+8>>2]=S[c+8|0]|S[c+9|0]<<8|S[c+10|0]<<16|S[c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we=a[c+4>>2],b=a[f+4>>2],ke=a[c+8>>2],B=a[f+8>>2],ye=a[c+12>>2],Q=a[f+12>>2],Me=a[c+16>>2],v=a[f+16>>2],Ve=a[c+20>>2],L=a[f+20>>2],ee=a[c+24>>2],H=a[f+24>>2],We=a[c+28>>2],j=a[f+28>>2],ut=a[c+32>>2],re=a[f+32>>2],pt=a[c+36>>2],Z=a[f+36>>2],h=0-h|0,de=a[f>>2],a[f>>2]=h&(de^a[c>>2])^de,a[f+36>>2]=Z^h&(Z^pt),a[f+32>>2]=re^h&(re^ut),a[f+28>>2]=j^h&(j^We),a[f+24>>2]=H^h&(H^ee),a[f+20>>2]=L^h&(L^Ve),a[f+16>>2]=v^h&(v^Me),a[f+12>>2]=Q^h&(Q^ye),a[f+8>>2]=B^h&(B^ke),a[f+4>>2]=b^h&(b^we),b=a[f+44>>2],we=a[c+44>>2],B=a[f+48>>2],ke=a[c+48>>2],Q=a[f+52>>2],ye=a[c+52>>2],v=a[f+56>>2],Me=a[c+56>>2],L=a[f+60>>2],Ve=a[c+60>>2],H=a[(ee=f- -64|0)>>2],We=a[c- -64>>2],j=a[f+68>>2],ut=a[c+68>>2],re=a[f+72>>2],pt=a[c+72>>2],Z=a[f+40>>2],de=a[c+40>>2],p=a[f+76>>2],a[f+76>>2]=p^h&(a[c+76>>2]^p),a[f+72>>2]=re^h&(re^pt),a[f+68>>2]=j^h&(j^ut),a[ee>>2]=H^h&(H^We),a[f+60>>2]=L^h&(L^Ve),a[f+56>>2]=v^h&(v^Me),a[f+52>>2]=Q^h&(Q^ye),a[f+48>>2]=B^h&(B^ke),a[f+44>>2]=b^h&(b^we),a[f+40>>2]=Z^h&(Z^de),b=a[f+84>>2],we=a[c+84>>2],B=a[f+88>>2],ke=a[c+88>>2],Q=a[f+92>>2],ye=a[c+92>>2],v=a[f+96>>2],Me=a[c+96>>2],L=a[f+100>>2],Ve=a[c+100>>2],H=a[f+104>>2],ee=a[c+104>>2],j=a[f+108>>2],We=a[c+108>>2],re=a[f+112>>2],ut=a[c+112>>2],Z=a[f+80>>2],pt=a[c+80>>2],de=a[c+116>>2],c=a[f+116>>2],a[f+116>>2]=h&(de^c)^c,a[f+112>>2]=re^h&(re^ut),a[f+108>>2]=j^h&(j^We),a[f+104>>2]=H^h&(H^ee),a[f+100>>2]=L^h&(L^Ve),a[f+96>>2]=v^h&(v^Me),a[f+92>>2]=Q^h&(Q^ye),a[f+88>>2]=B^h&(B^ke),a[f+84>>2]=b^h&(b^we),a[f+80>>2]=Z^h&(Z^pt)}function lv(f,c){var h,p,b=0;for(Ie=h=Ie-192|0,Et(p=h+144|0,c),Et(b=h+96|0,p),Et(b,b),Ar(b,c,b),Ar(p,p,b),Et(c=h+48|0,p),Ar(b,b,c),Et(c,b),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Ar(b,c,b),Et(c,b),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Ar(c,c,b),Et(h,c),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Ar(c,h,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Ar(b,c,b),Et(c,b),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Ar(c,c,b),Et(h,c),c=1;Et(h,h),(0|(c=c+1|0))!=100;);Ar(c=h+48|0,h,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Et(c,c),Ar(b=h+96|0,c,b),Et(b,b),Et(b,b),Et(b,b),Et(b,b),Et(b,b),Ar(f,b,h+144|0),Ie=h+192|0}function mM(f,c){var h,p=0,b=0;for(Ie=h=Ie-144|0,Et(b=h+96|0,c),Et(p=h+48|0,b),Et(p,p),Ar(p,c,p),Ar(b,b,p),Et(b,b),Ar(b,p,b),Et(p,b),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Ar(b,p,b),Et(p,b),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Ar(p,p,b),Et(h,p),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Et(h,h),Ar(p,h,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Ar(b,p,b),Et(p,b),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Ar(p,p,b),Et(h,p),p=1;Et(h,h),(0|(p=p+1|0))!=100;);Ar(p=h+48|0,h,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Et(p,p),Ar(b=h+96|0,p,b),Et(b,b),Et(b,b),Ar(f,b,c),Ie=h+144|0}function _H(f,c){var h,p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut=0,pt=0,bt=0,Ye=0;Ie=h=Ie-320|0,dv(p=f+40|0,c),a[f+84>>2]=0,a[f+88>>2]=0,a[f+80>>2]=1,a[f+92>>2]=0,a[f+96>>2]=0,a[f+100>>2]=0,a[f+104>>2]=0,a[f+108>>2]=0,a[f+112>>2]=0,a[f+116>>2]=0,Et(bt=h+240|0,p),Ar(pt=h+192|0,bt,1584),Ye=-1,b=a[h+240>>2]-1|0,a[h+240>>2]=b,a[h+192>>2]=a[h+192>>2]+1,B=a[h+244>>2],Q=a[h+248>>2],v=a[h+252>>2],L=a[h+256>>2],H=a[h+260>>2],j=a[h+264>>2],re=a[h+268>>2],Z=a[h+272>>2],ee=a[h+276>>2],Et(ut=h+144|0,pt),Ar(ut,ut,pt),Et(f,ut),Ar(f,f,pt),Ar(f,f,bt),mM(f,f),Ar(f,f,ut),Ar(f,f,bt),Et(ut=h+96|0,f),Ar(ut,ut,pt),pt=a[h+132>>2],a[h+84>>2]=pt-ee,ut=a[h+128>>2],a[h+80>>2]=ut-Z,bt=a[h+124>>2],a[h+76>>2]=bt-re,de=a[h+120>>2],a[h+72>>2]=de-j,we=a[h+116>>2],a[h+68>>2]=we-H,ke=a[h+112>>2],a[h+64>>2]=ke-L,ye=a[h+108>>2],a[h+60>>2]=ye-v,Me=a[h+104>>2],a[h+56>>2]=Me-Q,Ve=a[h+100>>2],a[h+52>>2]=Ve-B,We=a[h+96>>2],a[h+48>>2]=We-b,yc(h,h+48|0);e:{if(!ya(h,32)){if(a[h+36>>2]=pt+ee,a[h+32>>2]=ut+Z,a[h+28>>2]=bt+re,a[h+24>>2]=j+de,a[h+20>>2]=H+we,a[h+16>>2]=L+ke,a[h+12>>2]=v+ye,a[h+8>>2]=Q+Me,a[h+4>>2]=B+Ve,a[h>>2]=b+We,yc(pt=h+288|0,h),!ya(pt,32))break e;Ar(f,f,1632)}yc(h+288|0,f),(1&k[h+288|0])==(S[c+31|0]>>>7|0)&&(a[f>>2]=0-a[f>>2],a[f+36>>2]=0-a[f+36>>2],a[f+32>>2]=0-a[f+32>>2],a[f+28>>2]=0-a[f+28>>2],a[f+24>>2]=0-a[f+24>>2],a[f+20>>2]=0-a[f+20>>2],a[f+16>>2]=0-a[f+16>>2],a[f+12>>2]=0-a[f+12>>2],a[f+8>>2]=0-a[f+8>>2],a[f+4>>2]=0-a[f+4>>2]),Ar(f+120|0,f,p),Ye=0}return Ie=h+320|0,Ye}function mH(f,c,h){var p,b,B,Q,v,L,H,j,re=0;Ie=p=Ie-128|0,a[f>>2]=1,a[f+4>>2]=0,a[f+8>>2]=0,a[f+12>>2]=0,a[f+16>>2]=0,a[f+20>>2]=0,a[f+24>>2]=0,a[f+28>>2]=0,a[f+32>>2]=0,a[f+36>>2]=0,a[f+40>>2]=1,yo(f+44|0,0,76),X2(f,c=Lr(c,960)+2992|0,(255&(1^(re=h-((h>>31&h)<<1)|0)))-1>>>31|0),X2(f,c+120|0,(255&(2^re))-1>>>31|0),X2(f,c+240|0,(255&(3^re))-1>>>31|0),X2(f,c+360|0,(255&(4^re))-1>>>31|0),X2(f,c+480|0,(255&(5^re))-1>>>31|0),X2(f,c+600|0,(255&(6^re))-1>>>31|0),X2(f,c+720|0,(255&(7^re))-1>>>31|0),X2(f,c+840|0,(255&(8^re))-1>>>31|0),c=a[f+76>>2],a[p+40>>2]=a[f+72>>2],a[p+44>>2]=c,re=a[4+(c=f- -64|0)>>2],a[p+32>>2]=a[c>>2],a[p+36>>2]=re,c=a[f+60>>2],a[p+24>>2]=a[f+56>>2],a[p+28>>2]=c,c=a[f+52>>2],a[p+16>>2]=a[f+48>>2],a[p+20>>2]=c,c=a[f+44>>2],a[p+8>>2]=a[f+40>>2],a[p+12>>2]=c,c=a[f+12>>2],a[p+56>>2]=a[f+8>>2],a[p+60>>2]=c,re=a[f+20>>2],a[(c=p- -64|0)>>2]=a[f+16>>2],a[c+4>>2]=re,c=a[f+28>>2],a[p+72>>2]=a[f+24>>2],a[p+76>>2]=c,c=a[f+36>>2],a[p+80>>2]=a[f+32>>2],a[p+84>>2]=c,c=a[f+4>>2],a[p+48>>2]=a[f>>2],a[p+52>>2]=c,c=a[f+84>>2],re=a[f+88>>2],b=a[f+92>>2],B=a[f+96>>2],Q=a[f+100>>2],v=a[f+104>>2],L=a[f+108>>2],H=a[f+112>>2],j=a[f+80>>2],a[p+124>>2]=0-a[f+116>>2],a[p+120>>2]=0-H,a[p+116>>2]=0-L,a[p+112>>2]=0-v,a[p+108>>2]=0-Q,a[p+104>>2]=0-B,a[p+100>>2]=0-b,a[p+96>>2]=0-re,a[p+92>>2]=0-c,a[p+88>>2]=0-j,X2(f,p+8|0,(128&h)>>>7|0),Ie=p+128|0}function w8(f){var c,h,p,b,B,Q,v,L,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0;return Ie=c=Ie-320|0,Et(j=c+240|0,f),Et(re=c+192|0,f+40|0),Et(H=c+144|0,f+80|0),f=a[c+240>>2],Z=a[c+192>>2],ee=a[c+244>>2],de=a[c+196>>2],we=a[c+248>>2],ke=a[c+200>>2],ye=a[c+252>>2],Me=a[c+204>>2],Ve=a[c+256>>2],We=a[c+208>>2],ut=a[c+260>>2],pt=a[c+212>>2],bt=a[c+264>>2],Ye=a[c+216>>2],it=a[c+268>>2],dt=a[c+220>>2],Wt=a[c+272>>2],nr=a[c+224>>2],a[c+84>>2]=a[c+228>>2]-a[c+276>>2],a[c+80>>2]=nr-Wt,a[c+76>>2]=dt-it,a[c+72>>2]=Ye-bt,a[c+68>>2]=pt-ut,a[c+64>>2]=We-Ve,a[c+60>>2]=Me-ye,a[c+56>>2]=ke-we,a[c+52>>2]=de-ee,a[c+48>>2]=Z-f,Ar(f=c+48|0,f,H),Ar(c,j,re),Ar(c,c,1584),Et(c+96|0,H),H=a[c+48>>2],j=a[c+96>>2],re=a[c>>2],Z=a[c+52>>2],ee=a[c+100>>2],de=a[c+4>>2],we=a[c+56>>2],ke=a[c+104>>2],ye=a[c+8>>2],Me=a[c+60>>2],Ve=a[c+108>>2],We=a[c+12>>2],ut=a[c+64>>2],pt=a[c+112>>2],bt=a[c+16>>2],Ye=a[c+68>>2],it=a[c+116>>2],dt=a[c+20>>2],Wt=a[c+72>>2],nr=a[c+120>>2],h=a[c+24>>2],p=a[c+76>>2],b=a[c+124>>2],B=a[c+28>>2],Q=a[c+80>>2],v=a[c+128>>2],L=a[c+32>>2],a[c+84>>2]=a[c+84>>2]-(a[c+132>>2]+a[c+36>>2]|0),a[c+80>>2]=Q-(v+L|0),a[c+76>>2]=p-(b+B|0),a[c+72>>2]=Wt-(nr+h|0),a[c+68>>2]=Ye-(it+dt|0),a[c+64>>2]=ut-(pt+bt|0),a[c+60>>2]=Me-(Ve+We|0),a[c+56>>2]=we-(ke+ye|0),a[c+52>>2]=Z-(ee+de|0),a[c+48>>2]=H-(j+re|0),yc(H=c+288|0,f),f=ya(H,32),Ie=c+320|0,f}function yM(f,c,h,p,b){f|=0,c|=0,h|=0,p|=0;var B=0,Q=0,v=0,L=0,H=0,j=0,re=0;e:{t:{r:{n:{i:{c:{s:{if((-7&(b|=0))==1&&(v=(B=(p>>>0)/3|0)<<2,(B=Lr(B,-3)+p|0)&&(v=2&b?2+((B>>>1|0)+v|0)|0:v+4|0),!(c>>>0<=v>>>0))){if(!(b>>>0>=4)){if(!p){b=0;break n}B=0,b=0;break s}if(!p){b=0;break n}for(B=0,b=0;;){for(H=S[h+L|0]|H<<8,B|=8;j=65510+(Q=H>>>(B=B-6|0)&63)>>>8|0,re=Q+65484>>>8|0,k[f+b|0]=~(1+(16321^Q))>>>8&45|Q+252&Q+65474>>>8&~re|~(Q+32705)>>>8&95|j&Q+65|re&Q+71&~j,b=b+1|0,B>>>0>5;);if((0|(L=L+1|0))==(0|p))break}if(!B)break i;L=45,Q=32705,p=95;break c}Bs(),Rr()}for(;;){for(H=S[h+L|0]|H<<8,B|=8;j=65510+(Q=H>>>(B=B-6|0)&63)>>>8|0,re=Q+65484>>>8|0,k[f+b|0]=~(1+(16321^Q))>>>8&43|Q+252&Q+65474>>>8&~re|~(Q+16321)>>>8&47|j&Q+65|re&Q+71&~j,b=b+1|0,B>>>0>5;);if((0|(L=L+1|0))==(0|p))break}if(!B)break i;L=43,Q=16321,p=47}Q=~((h=H<<6-B&63)+Q)>>>8&p|(B=h+65510>>>8|0)&h+65,p=h+65484>>>8|0,k[f+b|0]=~(1+(16321^h))>>>8&L|Q|h+252&h+65474>>>8&~p|p&h+71&~B,b=b+1|0}if(b>>>0>v>>>0)break r}if(b>>>0<v>>>0)break t;v=b;break e}ot(1104,1218,231,1503),Rr()}yo(f+b|0,61,v-b|0)}return yo(f+v|0,0,(c>>>0>(h=v+1|0)>>>0?c:h)-v|0),0|f}function yH(f,c,h){var p,b,B,Q=0,v=0,L=0,H=0,j=0;Ie=p=Ie-16|0,b=a[f+20>>2],a[f+20>>2]=0,B=a[f+4>>2],a[f+4>>2]=0,L=-26;e:{t:{r:{n:switch(h-1|0){case 1:if(W5(c,1182,9))break t;c=c+9|0;break r;case 0:break n;default:break e}if(W5(c,1173,8))break t;c=c+8|0}if(S[0|c]!=36|S[c+1|0]!=118||(Q=S[c+2|0]==61),Q&&!(((H=S[0|(h=c+3|0)])-58&255)>>>0<246)){for(j=Q?h:c,c=0,Q=H;;){if(v=h,c>>>0>429496729||(h=(255&Q)-48|0)>>>0>~(c=Lr(c,10))>>>0)break t;if(c=c+h|0,!(((Q=S[0|(h=v+1|0)])-58&255)>>>0>245))break}if(!((0|H)==48&(0|v)!=(0|j)|(0|h)==(0|j))){if((0|c)!=19)break e;if(!((255&Q)!=36|S[v+2|0]!=109|S[v+3|0]!=61)&&(h=Fre(v+4|0,c=p+12|0))&&(a[f+44>>2]=a[p+12>>2],!(S[0|h]!=44|S[h+1|0]!=116|S[h+2|0]!=61)&&(h=Fre(h+3|0,c))&&(a[f+40>>2]=a[p+12>>2],!(S[0|h]!=44|S[h+1|0]!=112|S[h+2|0]!=61)&&(h=Fre(h+3|0,c))&&(Q=a[p+12>>2],a[f+48>>2]=Q,a[f+52>>2]=Q,S[0|h]==36&&(a[p+12>>2]=b,!hM(v=a[f+16>>2],b,Q=h=h+1|0,H=Rg(h),0,c,h=p+8|0,3)&&(a[f+20>>2]=a[p+12>>2],Q=a[p+8>>2],S[0|Q]==36&&(a[p+12>>2]=B,Q=Q+1|0,!hM(a[f>>2],B,Q,Rg(Q),0,c,h,3)))))))){if(a[f+4>>2]=a[p+12>>2],c=a[p+8>>2],L=Qn(f))break e;L=S[0|c]?-32:0;break e}}}}L=-32}return Ie=p+16|0,L}function Sd(f,c,h,p){var b=0,B=0,Q=0,v=0,L=0,H=0,j=0;if(h|p)e:for(j=f+224|0,L=f+96|0,B=S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24;;){if(b=B+L|0,!p&h>>>0<=(Q=256-B|0)>>>0){Di(b,c,h),c=h+(S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24)|0,k[f+352|0]=c,k[f+353|0]=c>>>8,k[f+354|0]=c>>>16,k[f+355|0]=c>>>24;break e}if(Di(b,c,Q),b=(S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24)+Q|0,k[f+352|0]=b,k[f+353|0]=b>>>8,k[f+354|0]=b>>>16,k[f+355|0]=b>>>24,H=B=S[f+68|0]|S[f+69|0]<<8|S[f+70|0]<<16|S[f+71|0]<<24,B=(v=128+(b=S[f+64|0]|S[f+65|0]<<8|S[f+66|0]<<16|S[f+67|0]<<24)|0)>>>0<128?B+1|0:B,k[f+64|0]=v,k[f+65|0]=v>>>8,k[f+66|0]=v>>>16,k[f+67|0]=v>>>24,k[f+68|0]=B,k[f+69|0]=B>>>8,k[f+70|0]=B>>>16,k[f+71|0]=B>>>24,B=S[f+76|0]|S[f+77|0]<<8|S[f+78|0]<<16|S[f+79|0]<<24,B=(H=b=(0|H)==-1&b>>>0>4294967167)>>>0>(b=b+(S[f+72|0]|S[f+73|0]<<8|S[f+74|0]<<16|S[f+75|0]<<24)|0)>>>0?B+1|0:B,k[f+72|0]=b,k[f+73|0]=b>>>8,k[f+74|0]=b>>>16,k[f+75|0]=b>>>24,k[f+76|0]=B,k[f+77|0]=B>>>8,k[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L+H|0,18)^re,de=ut>>>0<6,ut=ut+2|0,de;);a[f>>2]=a[f>>2]+re,a[f+4>>2]=a[f+4>>2]+j,a[f+8>>2]=a[f+8>>2]+H,a[f+12>>2]=a[f+12>>2]+L,a[f+16>>2]=a[f+16>>2]+v,a[f+20>>2]=a[f+20>>2]+Q,a[f+24>>2]=a[f+24>>2]+B,a[f+28>>2]=a[f+28>>2]+b,a[f+32>>2]=a[f+32>>2]+Z,a[f+36>>2]=a[f+36>>2]+ye,a[f+40>>2]=a[f+40>>2]+p,a[f+44>>2]=a[f+44>>2]+c,a[f+48>>2]=a[f+48>>2]+ee,a[f+52>>2]=a[f+52>>2]+we,a[f+56>>2]=a[f+56>>2]+ke,a[f+60>>2]=a[f+60>>2]+h}function EH(f,c,h,p){var b,B=0;return Ie=b=Ie-320|0,B=-1,ea(h)&&(EM(h)||fv(b,h)||cM(b)&&(k[0|f]=S[0|c],k[f+1|0]=S[c+1|0],k[f+2|0]=S[c+2|0],k[f+3|0]=S[c+3|0],k[f+4|0]=S[c+4|0],k[f+5|0]=S[c+5|0],k[f+6|0]=S[c+6|0],k[f+7|0]=S[c+7|0],k[f+8|0]=S[c+8|0],k[f+9|0]=S[c+9|0],k[f+10|0]=S[c+10|0],k[f+11|0]=S[c+11|0],k[f+12|0]=S[c+12|0],k[f+13|0]=S[c+13|0],k[f+14|0]=S[c+14|0],k[f+15|0]=S[c+15|0],k[f+16|0]=S[c+16|0],k[f+17|0]=S[c+17|0],k[f+18|0]=S[c+18|0],k[f+19|0]=S[c+19|0],k[f+20|0]=S[c+20|0],k[f+21|0]=S[c+21|0],k[f+22|0]=S[c+22|0],k[f+23|0]=S[c+23|0],k[f+24|0]=S[c+24|0],k[f+25|0]=S[c+25|0],k[f+26|0]=S[c+26|0],k[f+27|0]=S[c+27|0],k[f+28|0]=S[c+28|0],k[f+29|0]=S[c+29|0],k[f+30|0]=S[c+30|0],h=S[c+31|0],p&&(k[0|f]=248&S[0|f],h|=64),k[f+31|0]=127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+1|0]=S[1024+(b>>>6&63)|0],Z=f+re|0,c=f+2|0,(0|h)!=(0|v)){if((0|re)==2)break e;if(k[f+2|0]=S[1024+(b>>>12&63)|0],c=f+3|0,H){if((0|re)==3)break e;k[f+3|0]=S[1024+(b>>>18|0)|0],c=f+4|0}}if(re=Z-(b=c)|0,b)continue}break}bn(B+16|0,32),re=0,!p|p>>>0>=L>>>0||(k[0|p]=0,re=Q)}}return Ie=B+48|0,re}function mc(f,c){var h,p=0,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0;p=a[c+4>>2],B=a[c+44>>2],Q=a[c+8>>2],v=a[c+48>>2],L=a[c+12>>2],H=a[c+52>>2],j=a[c+16>>2],re=a[c+56>>2],Z=a[c+20>>2],ee=a[c+60>>2],de=a[c+24>>2],we=a[(b=c- -64|0)>>2],ke=a[c+28>>2],ye=a[c+68>>2],Me=a[c+32>>2],Ve=a[c+72>>2],We=a[c+36>>2],h=a[c+76>>2],a[f>>2]=a[c>>2]+a[c+40>>2],a[f+36>>2]=We+h,a[f+32>>2]=Me+Ve,a[f+28>>2]=ke+ye,a[f+24>>2]=de+we,a[f+20>>2]=Z+ee,a[f+16>>2]=j+re,a[f+12>>2]=L+H,a[f+8>>2]=Q+v,a[f+4>>2]=p+B,p=a[c+4>>2],B=a[c+44>>2],Q=a[c+8>>2],v=a[c+48>>2],L=a[c+12>>2],H=a[c+52>>2],j=a[c+16>>2],re=a[c+56>>2],Z=a[c+20>>2],ee=a[c+60>>2],de=a[c+24>>2],b=a[b>>2],we=a[c+28>>2],ke=a[c+68>>2],ye=a[c+32>>2],Me=a[c+72>>2],Ve=a[c>>2],We=a[c+40>>2],a[f+76>>2]=a[c+76>>2]-a[c+36>>2],a[f+72>>2]=Me-ye,a[f+68>>2]=ke-we,a[f- -64>>2]=b-de,a[f+60>>2]=ee-Z,a[f+56>>2]=re-j,a[f+52>>2]=H-L,a[f+48>>2]=v-Q,a[f+44>>2]=B-p,a[f+40>>2]=We-Ve,p=a[c+84>>2],a[f+80>>2]=a[c+80>>2],a[f+84>>2]=p,p=a[c+92>>2],a[f+88>>2]=a[c+88>>2],a[f+92>>2]=p,p=a[c+100>>2],a[f+96>>2]=a[c+96>>2],a[f+100>>2]=p,p=a[c+108>>2],a[f+104>>2]=a[c+104>>2],a[f+108>>2]=p,p=a[c+116>>2],a[f+112>>2]=a[c+112>>2],a[f+116>>2]=p,Ar(f+120|0,c+120|0,1680)}function un(f,c,h){var p,b,B,Q,v,L,H,j,re,Z,ee,de,we=0,ke=0,ye=0,Me=0,Ve=0;we=a[c+12>>2],ke=a[c+8>>2],ye=a[c+4>>2],p=Ie+-64&-64,c=a[c>>2],a[p>>2]=a[35744+((255&c)<<2)>>2],a[p+4>>2]=a[35744+(ye>>>6&1020)>>2],a[p+8>>2]=a[35744+(ke>>>14&1020)>>2],a[p+12>>2]=a[35744+(we>>>22&1020)>>2],a[p+16>>2]=a[35744+((255&ye)<<2)>>2],a[p+20>>2]=a[35744+(ke>>>6&1020)>>2],a[p+24>>2]=a[35744+(we>>>14&1020)>>2],a[p+28>>2]=a[35744+(c>>>22&1020)>>2],a[p+32>>2]=a[35744+((255&ke)<<2)>>2],a[p+36>>2]=a[35744+(we>>>6&1020)>>2],a[p+40>>2]=a[35744+(c>>>14&1020)>>2],a[p+44>>2]=a[35744+(ye>>>22&1020)>>2],a[p+48>>2]=a[35744+((255&we)<<2)>>2],a[p+52>>2]=a[35744+(c>>>6&1020)>>2],a[p+56>>2]=a[35744+(ye>>>14&1020)>>2],a[p+60>>2]=a[35744+(ke>>>22&1020)>>2],c=a[p+12>>2],we=a[p>>2],ke=a[p+4>>2],ye=a[p+8>>2],b=a[p+28>>2],B=a[p+16>>2],Q=a[p+20>>2],v=a[p+24>>2],L=a[p+44>>2],H=a[p+32>>2],j=a[p+36>>2],re=a[p+40>>2],Z=a[h>>2],ee=a[h+4>>2],de=a[h+8>>2],Me=f,Ve=a[h+12>>2]^a[p+48>>2]^lr(a[p+52>>2],8)^lr(a[p+56>>2],16)^lr(a[p+60>>2],24),a[Me+12>>2]=Ve,Me=f,Ve=lr(j,8)^H^lr(re,16)^lr(L,24)^de,a[Me+8>>2]=Ve,Me=f,Ve=lr(Q,8)^B^lr(v,16)^lr(b,24)^ee,a[Me+4>>2]=Ve,Me=f,Ve=lr(ke,8)^we^lr(ye,16)^lr(c,24)^Z,a[Me>>2]=Ve}function RH(f,c,h){var p,b=0;return Ie=p=Ie-160|0,k[0|f]=S[0|c],k[f+1|0]=S[c+1|0],k[f+2|0]=S[c+2|0],k[f+3|0]=S[c+3|0],k[f+4|0]=S[c+4|0],k[f+5|0]=S[c+5|0],k[f+6|0]=S[c+6|0],k[f+7|0]=S[c+7|0],k[f+8|0]=S[c+8|0],k[f+9|0]=S[c+9|0],k[f+10|0]=S[c+10|0],k[f+11|0]=S[c+11|0],k[f+12|0]=S[c+12|0],k[f+13|0]=S[c+13|0],k[f+14|0]=S[c+14|0],k[f+15|0]=S[c+15|0],k[f+16|0]=S[c+16|0],k[f+17|0]=S[c+17|0],k[f+18|0]=S[c+18|0],k[f+19|0]=S[c+19|0],k[f+20|0]=S[c+20|0],k[f+21|0]=S[c+21|0],k[f+22|0]=S[c+22|0],k[f+23|0]=S[c+23|0],k[f+24|0]=S[c+24|0],k[f+25|0]=S[c+25|0],k[f+26|0]=S[c+26|0],k[f+27|0]=S[c+27|0],k[f+28|0]=S[c+28|0],k[f+29|0]=S[c+29|0],k[f+30|0]=S[c+30|0],b=S[c+31|0],h&&(k[0|f]=248&S[0|f],b|=64),k[f+31|0]=127&b,qS(p,f),VS(f,p),h=-1,(127&S[f+31|0]|S[f+30|0]|S[f+29|0]|S[f+28|0]|S[f+27|0]|S[f+26|0]|S[f+25|0]|S[f+24|0]|S[f+23|0]|S[f+22|0]|S[f+21|0]|S[f+20|0]|S[f+19|0]|S[f+18|0]|S[f+17|0]|S[f+16|0]|S[f+15|0]|S[f+14|0]|S[f+13|0]|S[f+12|0]|S[f+11|0]|S[f+10|0]|S[f+9|0]|S[f+8|0]|S[f+7|0]|S[f+6|0]|S[f+5|0]|S[f+4|0]|S[f+3|0]|S[f+2|0]|S[f+1|0]|1^S[0|f])-1&256||(h=ya(c,32)?-1:0),Ie=p+160|0,h}function bM(f,c){var h,p,b,B,Q,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0;(v=a[f+56>>2])|(L=a[f+60>>2])&&(k[(j=f- -64|0)+v|0]=1,!((ke=v+1|0)?L:L+1|0)&ke>>>0<=15&&yo(65+(f+v|0)|0,0,15-v|0),k[f+80|0]=1,fM(f,j,16,0)),ke=a[f+52>>2],de=a[f+48>>2],j=a[f+44>>2],v=a[f+24>>2],re=a[f+28>>2]+(v>>>26|0)|0,H=a[f+32>>2]+(re>>>26|0)|0,h=a[f+36>>2]+(H>>>26|0)|0,L=(ee=(v=(v=(67108863&v)+((Z=a[f+20>>2]+Lr(h>>>26|0,5)|0)>>>26|0)|0)&(re=(H=(Q=(67108863&h)+((B=(p=67108863&H)+((b=(we=67108863&re)+((Z=v+((L=5+(ee=67108863&Z)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)-67108864|0)>>31)|Z&(H=67108863&(Z=(H>>>31|0)-1|0)))<<26|L&H|re&ee)+a[f+40>>2]|0,k[0|c]=L,k[c+1|0]=L>>>8,k[c+2|0]=L>>>16,k[c+3|0]=L>>>24,ee=L>>>0<ee>>>0,L=0,L=(v=(we=re&we|H&b)<<20|v>>>6)>>>0>(v=v+j|0)>>>0?1:L,L=(j=v)>>>0>(v=v+ee|0)>>>0?L+1|0:L,k[c+4|0]=v,k[c+5|0]=v>>>8,k[c+6|0]=v>>>16,k[c+7|0]=v>>>24,v=0,j=(j=(H=re&p|H&B)<<14|we>>>12)>>>0>(de=j+de|0)>>>0?1:v,v=de,de=L,v=v+L|0,L=j,L=v>>>0<de>>>0?L+1|0:L,k[c+8|0]=v,k[c+9|0]=v>>>8,k[c+10|0]=v>>>16,k[c+11|0]=v>>>24,L=(v=(v=(Z&Q|re&h)<<8|H>>>18)+ke|0)+L|0,k[c+12|0]=L,k[c+13|0]=L>>>8,k[c+14|0]=L>>>16,k[c+15|0]=L>>>24,bn(f,88)}function vg(f,c,h){f|=0,c|=0,h|=0;var p,b=0;return Ie=p=Ie-16|0,k[p+15|0]=0,b=-1,0|A0[a[8930]](f,c,h)||(k[p+15|0]=S[0|f]|S[p+15|0],k[p+15|0]=S[f+1|0]|S[p+15|0],k[p+15|0]=S[f+2|0]|S[p+15|0],k[p+15|0]=S[f+3|0]|S[p+15|0],k[p+15|0]=S[f+4|0]|S[p+15|0],k[p+15|0]=S[f+5|0]|S[p+15|0],k[p+15|0]=S[f+6|0]|S[p+15|0],k[p+15|0]=S[f+7|0]|S[p+15|0],k[p+15|0]=S[f+8|0]|S[p+15|0],k[p+15|0]=S[f+9|0]|S[p+15|0],k[p+15|0]=S[f+10|0]|S[p+15|0],k[p+15|0]=S[f+11|0]|S[p+15|0],k[p+15|0]=S[f+12|0]|S[p+15|0],k[p+15|0]=S[f+13|0]|S[p+15|0],k[p+15|0]=S[f+14|0]|S[p+15|0],k[p+15|0]=S[f+15|0]|S[p+15|0],k[p+15|0]=S[f+16|0]|S[p+15|0],k[p+15|0]=S[f+17|0]|S[p+15|0],k[p+15|0]=S[f+18|0]|S[p+15|0],k[p+15|0]=S[f+19|0]|S[p+15|0],k[p+15|0]=S[f+20|0]|S[p+15|0],k[p+15|0]=S[f+21|0]|S[p+15|0],k[p+15|0]=S[f+22|0]|S[p+15|0],k[p+15|0]=S[f+23|0]|S[p+15|0],k[p+15|0]=S[f+24|0]|S[p+15|0],k[p+15|0]=S[f+25|0]|S[p+15|0],k[p+15|0]=S[f+26|0]|S[p+15|0],k[p+15|0]=S[f+27|0]|S[p+15|0],k[p+15|0]=S[f+28|0]|S[p+15|0],k[p+15|0]=S[f+29|0]|S[p+15|0],k[p+15|0]=S[f+30|0]|S[p+15|0],k[p+15|0]=S[f+31|0]|S[p+15|0],b=(S[p+15|0]<<23)-8388608>>31),Ie=p+16|0,0|b}function SH(f,c,h,p,b){var B=0,Q=0,v=0,L=0,H=0,j=0,re=0;e:{if((0|p)==1|p>>>0>1)a[9404]=22;else{Ie=p=Ie-128|0,a[p- -64>>2]=0,a[p+56>>2]=0,a[p+60>>2]=0,a[p+48>>2]=0,a[p+52>>2]=0,a[p+40>>2]=0,a[p+44>>2]=0,a[p+32>>2]=0,a[p+36>>2]=0,a[p+24>>2]=0,a[p+28>>2]=0,a[p+16>>2]=0,a[p+20>>2]=0,B=Rg(f),a[p+28>>2]=B,a[p+44>>2]=B,a[p+12>>2]=B,Q=wo(B),a[p+40>>2]=Q,v=wo(B),a[p+24>>2]=v,L=wo(B),a[p+8>>2]=L;t:if(!L|!Q|!v||!(B=wo(B)))h0(Q),h0(v),h0(L),f=-22;else{if(f=yH(p+8|0,f,b)){h0(a[p+40>>2]),h0(a[p+24>>2]),h0(a[p+8>>2]),h0(B);break t}L=a[p+28>>2],H=a[p+24>>2],f=a[p+60>>2],j=a[p+52>>2],re=a[p+48>>2],wf(B,Q=a[p+12>>2]),(v=wo(Q))?(a[p+100>>2]=0,a[p+104>>2]=0,a[p+92>>2]=0,a[p+96>>2]=0,a[p+88>>2]=L,a[p+84>>2]=H,a[p+80>>2]=h,a[p+76>>2]=c,a[p+72>>2]=Q,a[p+68>>2]=v,a[p+124>>2]=0,a[p+120>>2]=f,a[p+116>>2]=f,a[p+112>>2]=j,a[p+108>>2]=re,(f=J5(p+68|0,b))||Di(B,v,Q),bn(v,Q),h0(v)):f=-22,h0(a[p+40>>2]),h0(a[p+24>>2]),f||(f=Ul(B,a[p+8>>2],a[p+12>>2])?-35:0),h0(B),h0(a[p+8>>2])}if(Ie=p+128|0,c=f,!f)break e;(0|f)==-35&&(a[9404]=28)}c=-1}return c}function yc(f,c){var h,p,b,B,Q,v,L,H=0,j=0;p=a[c+32>>2],b=a[c+28>>2],B=a[c+24>>2],Q=a[c+20>>2],v=a[c+16>>2],L=a[c+12>>2],H=a[c+4>>2],j=a[c>>2],h=a[c+36>>2],c=a[c+8>>2],j=Lr((p+(b+(B+(Q+(v+(L+((H+(j+(Lr(h,19)+16777216>>>25|0)>>26)>>25)+c>>26)>>25)>>26)>>25)>>26)>>25)>>26)+h>>25,19)+j|0,k[0|f]=j,k[f+2|0]=j>>>16,k[f+1|0]=j>>>8,H=H+(j>>26)|0,k[f+5|0]=H>>>14,k[f+4|0]=H>>>6,k[f+3|0]=j>>>24&3|H<<2,c=c+(H>>25)|0,k[f+8|0]=c>>>13,k[f+7|0]=c>>>5,k[f+6|0]=c<<3|(29360128&H)>>>22,j=(c>>26)+L|0,k[f+11|0]=j>>>11,k[f+10|0]=j>>>3,k[f+9|0]=j<<5|(65011712&c)>>>21,H=(j>>25)+v|0,k[f+15|0]=H>>>18,k[f+14|0]=H>>>10,k[f+13|0]=H>>>2,c=(H>>26)+Q|0,k[f+16|0]=c,k[f+12|0]=H<<6|(33030144&j)>>>19,k[f+18|0]=c>>>16,k[f+17|0]=c>>>8,H=(c>>25)+B|0,k[f+21|0]=H>>>15,k[f+20|0]=H>>>7,k[f+19|0]=c>>>24&1|H<<1,c=(H>>26)+b|0,k[f+24|0]=c>>>13,k[f+23|0]=c>>>5,k[f+22|0]=c<<3|(58720256&H)>>>23,H=(c>>25)+p|0,k[f+27|0]=H>>>12,k[f+26|0]=H>>>4,k[f+25|0]=H<<4|(31457280&c)>>>21,c=h+(H>>26)|0,k[f+30|0]=c>>>10,k[f+29|0]=c>>>2,k[f+31|0]=(33292288&c)>>>18,k[f+28|0]=c<<6|(66060288&H)>>>20}function Z2(f,c,h){f|=0,c|=0;var p,b=0,B=0,Q=0,v=0,L=0,H=0,j=0;if(Ie=p=Ie-192|0,(h|=0)>>>0>=129&&(qi(f),L0(f,c,h,0),Ah(f,p),h=64,c=p),qi(f),yo(p- -64|0,54,128),h){if(h>>>0>=4)for(j=252&h;k[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b&p>>>0>32;Di(v- -64|0,h,re),ee=0}return j=Z,OH(L=v+32|0,L,H=re+32|0,j=H>>>0<32?j+1|0:j,j=B+16|0,v),Sg(v+96|0,L),ee||Di(f,v- -64|0,re),bn(v+32|0,64),Q&&x8(f+re|0,h+re|0,p-re|0,b-((p>>>0<re>>>0)+Z|0)|0,j,1,0,v),bn(v,32),qo(h=v+96|0,f,p,b),Ig(h,c),bn(h,256),Ie=v+352|0,0}function Pe(f,c,h,p,b,B,Q){var v,L,H,j=0,re=0,Z=0,ee=0;Ie=v=Ie-352|0,$2(v,B,Q,0);e:{if(!(((j=!!(0|b))|!b&p>>>0>f-h>>>0)&f>>>0>h>>>0)&(!b&h-f>>>0>=p>>>0|f>>>0>=h>>>0)){if(a[v+56>>2]=0,a[v+60>>2]=0,a[v+48>>2]=0,a[v+52>>2]=0,a[v+40>>2]=0,a[v+44>>2]=0,a[v+32>>2]=0,a[v+36>>2]=0,re=(Q=(j=!!(0|b))|!b&p>>>0>=32)?32:p,Z=Q?0:b,Q=j|!b&p>>>0>32,!(p|b)){ee=1;break e}}else h=Z5(f,h,p),a[v+56>>2]=0,a[v+60>>2]=0,a[v+48>>2]=0,a[v+52>>2]=0,a[v+40>>2]=0,a[v+44>>2]=0,a[v+32>>2]=0,a[v+36>>2]=0,re=(Q=j|!b&p>>>0>=32)?32:p,Z=Q?0:b,Q=j|!b&p>>>0>32;Di(v- -64|0,h,re),ee=0}return j=Z,MH(L=v+32|0,L,H=re+32|0,j=H>>>0<32?j+1|0:j,j=B+16|0,v),Sg(v+96|0,L),ee||Di(f,v- -64|0,re),bn(v+32|0,64),Q&&wM(f+re|0,h+re|0,p-re|0,b-((p>>>0<re>>>0)+Z|0)|0,j,1,0,v),bn(v,32),qo(h=v+96|0,f,p,b),Ig(h,c),bn(h,256),Ie=v+352|0,0}function Oe(f,c,h,p,b){var B;return f|=0,c|=0,h|=0,p|=0,Ie=B=Ie-480|0,Z2(B,b|=0,32),j2(B,c,h,p),JS(B,B+416|0),c=a[B+444>>2],h=a[B+440>>2],k[f+24|0]=h,k[f+25|0]=h>>>8,k[f+26|0]=h>>>16,k[f+27|0]=h>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[B+436>>2],h=a[B+432>>2],k[f+16|0]=h,k[f+17|0]=h>>>8,k[f+18|0]=h>>>16,k[f+19|0]=h>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[B+428>>2],h=a[B+424>>2],k[f+8|0]=h,k[f+9|0]=h>>>8,k[f+10|0]=h>>>16,k[f+11|0]=h>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[B+420>>2],h=a[B+416>>2],k[0|f]=h,k[f+1|0]=h>>>8,k[f+2|0]=h>>>16,k[f+3|0]=h>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,Ie=B+480|0,0}function He(f,c,h){f|=0,c|=0;var p,b=0;return Ie=p=Ie+-64|0,ci(p,h|=0,32,0),h=a[p+28>>2],b=a[p+24>>2],k[c+24|0]=b,k[c+25|0]=b>>>8,k[c+26|0]=b>>>16,k[c+27|0]=b>>>24,k[c+28|0]=h,k[c+29|0]=h>>>8,k[c+30|0]=h>>>16,k[c+31|0]=h>>>24,h=a[p+20>>2],b=a[p+16>>2],k[c+16|0]=b,k[c+17|0]=b>>>8,k[c+18|0]=b>>>16,k[c+19|0]=b>>>24,k[c+20|0]=h,k[c+21|0]=h>>>8,k[c+22|0]=h>>>16,k[c+23|0]=h>>>24,h=a[p+12>>2],b=a[p+8>>2],k[c+8|0]=b,k[c+9|0]=b>>>8,k[c+10|0]=b>>>16,k[c+11|0]=b>>>24,k[c+12|0]=h,k[c+13|0]=h>>>8,k[c+14|0]=h>>>16,k[c+15|0]=h>>>24,h=a[p+4>>2],b=a[p>>2],k[0|c]=b,k[c+1|0]=b>>>8,k[c+2|0]=b>>>16,k[c+3|0]=b>>>24,k[c+4|0]=h,k[c+5|0]=h>>>8,k[c+6|0]=h>>>16,k[c+7|0]=h>>>24,bn(p,64),f=PH(f,c),Ie=p- -64|0,0|f}function st(f,c){var h=0,p=0,b=0,B=0,Q=0,v=0;return c>>>0>4294967168?48:(c>>>0>=4294967168?(a[9404]=48,h=0):(h=0,(c=wo(76+(B=c>>>0<11?16:c+11&-8)|0))&&(h=c-8|0,63&c?(b=(-8&(v=a[(Q=c-4|0)>>2]))-(p=(c=((c=(c+63&-64)-8|0)-h>>>0<=15?64:0)+c|0)-h|0)|0,3&v?(a[c+4>>2]=b|1&a[c+4>>2]|2,a[4+(b=c+b|0)>>2]=1|a[b+4>>2],a[Q>>2]=p|1&a[Q>>2]|2,a[4+(b=h+p|0)>>2]=1|a[b+4>>2],sH(h,p)):(h=a[h>>2],a[c+4>>2]=b,a[c>>2]=h+p)):c=h,3&(h=a[c+4>>2])&&((p=-8&h)>>>0<=B+16>>>0||(a[c+4>>2]=B|1&h|2,h=c+B|0,B=p-B|0,a[h+4>>2]=3|B,a[4+(p=c+p|0)>>2]=1|a[p+4>>2],sH(h,B))),h=c+8|0)),h?(a[f>>2]=h,0):48)}function tt(f,c,h,p,b,B,Q,v,L,H,j){var re;if(re=yo(f,0,c),(0|h)==1|h>>>0>1)return a[9404]=22,-1;if(!(!h&c>>>0<=15)){if(!(!(B|L)&H>>>0<2147483649))return a[9404]=22,-1;if(!(!((!L&v>>>0>=3|!!(0|L))&H>>>0>8191)|(0|p)==(0|re)))return(0|j)==1?(B=H>>>10|0,Ie=f=Ie+-64|0,re&&wf(re,c),(h=wo(c))?(a[f+36>>2]=0,a[f+40>>2]=0,a[f+28>>2]=0,a[f+32>>2]=0,a[f+24>>2]=16,a[f+20>>2]=Q,a[f+16>>2]=b,a[f+12>>2]=p,a[f+8>>2]=c,a[f+4>>2]=h,a[f+60>>2]=0,a[f+56>>2]=1,a[f+52>>2]=1,a[f+48>>2]=B,a[f+44>>2]=v,(p=J5(f+4|0,1))|!re||Di(re,h,c),bn(h,c),h0(h)):p=-22,Ie=f- -64|0,p?-1:0):(a[9404]=28,-1)}return a[9404]=28,-1}function vt(f,c,h,p,b,B,Q){var v,L,H=0,j=0,re=0;Ie=v=Ie-96|0,$2(v,B,Q,0),Jre(Q=v+32|0,32,0,L=B+16|0,v),B=-1;e:{t:if(!kH(h,c,p,b,Q)){if(B=0,!f)break e;r:{if(!(((h=!!(0|b))|!b&p>>>0>c-f>>>0)&f>>>0<c>>>0)&(!b&p>>>0<=f-c>>>0|f>>>0<=c>>>0)){if(!(p|b))break r;h=(B=!b&p>>>0>=32|!!(0|b))?32:p,H=B?0:b}else c=Z5(f,c,p),h=(B=h|!b&p>>>0>=32)?32:p,H=B?0:b;if(B=H,re=Di(v- -64|0,c,h),MH(Q=v+32|0,Q,j=h+32|0,B=j>>>0<32?B+1|0:B,L,v),f=Di(f,re,h),bn(Q,64),B=0,!b&p>>>0<33)break t;wM(f+h|0,c+h|0,p-h|0,b-(H+(h>>>0>p>>>0)|0)|0,L,1,0,v);break t}MH(f=v+32|0,f,32,0,L,v),bn(f,64)}bn(v,32)}return Ie=v+96|0,B}function sr(f,c,h,p,b,B,Q,v,L,H,j){var re;if(re=yo(f,0,c),(0|h)==1|h>>>0>1)return a[9404]=22,-1;if(!(!h&c>>>0<=15)){if(!(!(B|L)&H>>>0<2147483649))return a[9404]=22,-1;if(!(!(!!(v|L)&H>>>0>8191)|(0|p)==(0|re)))return(0|j)==2?(B=H>>>10|0,Ie=f=Ie+-64|0,re&&wf(re,c),(h=wo(c))?(a[f+36>>2]=0,a[f+40>>2]=0,a[f+28>>2]=0,a[f+32>>2]=0,a[f+24>>2]=16,a[f+20>>2]=Q,a[f+16>>2]=b,a[f+12>>2]=p,a[f+8>>2]=c,a[f+4>>2]=h,a[f+60>>2]=0,a[f+56>>2]=1,a[f+52>>2]=1,a[f+48>>2]=B,a[f+44>>2]=v,(p=J5(f+4|0,2))|!re||Di(re,h,c),bn(h,c),h0(h)):p=-22,Ie=f- -64|0,p?-1:0):(a[9404]=28,-1)}return a[9404]=28,-1}function mr(f,c,h,p,b,B,Q){var v,L,H=0,j=0;Ie=v=Ie-96|0,Ll(v,B,Q,0),RM(Q=v+32|0,32,0,L=B+16|0,v),B=-1;e:{t:if(!kH(h,c,p,b,Q)){if(B=0,!f)break e;r:{if(!(((h=!!(0|b))|!b&p>>>0>c-f>>>0)&f>>>0<c>>>0)&(!b&p>>>0<=f-c>>>0|f>>>0<=c>>>0)){if(!(p|b))break r;h=(B=!b&p>>>0>=32|!!(0|b))?32:p,Q=B?0:b}else c=Z5(f,c,p),h=(B=h|!b&p>>>0>=32)?32:p,Q=B?0:b;if(H=h,j=Di(v- -64|0,c,h),OH(h=v+32|0,h,B=H+32|0,B>>>0<32?Q+1|0:Q,L,v),h=Di(f,j,H),B=0,!b&p>>>0<33)break t;x8(h+H|0,c+H|0,p-H|0,b-(Q+(p>>>0<H>>>0)|0)|0,L,1,0,v);break t}OH(f=v+32|0,f,32,0,L,v)}bn(v,32)}return Ie=v+96|0,B}function wr(f,c,h,p,b,B,Q,v,L,H){var j,re;return Ie=j=Ie-400|0,a[j+4>>2]=0,Ll(re=j+16|0,L,H,0),H=S[L+20|0]|S[L+21|0]<<8|S[L+22|0]<<16|S[L+23|0]<<24,a[j+8>>2]=S[L+16|0]|S[L+17|0]<<8|S[L+18|0]<<16|S[L+19|0]<<24,a[j+12>>2]=H,zS(H=j+80|0,64,0,j+4|0,re),Sg(L=j+144|0,H),bn(H,64),qo(L,B,Q,v),qo(L,35680,0-Q&15,0),qo(L,c,h,p),qo(L,35680,0-h&15,0),a[j+72>>2]=Q,a[j+76>>2]=v,qo(L,B=j+72|0,8,0),a[j+72>>2]=h,a[j+76>>2]=p,qo(L,B,8,0),Ig(L,B=j+48|0),bn(L,256),L=Te(B,b),bn(B,16),f&&(L?(yo(f,0,h),L=-1):(iBe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|0,L}function on(f,c,h,p,b,B,Q,v,L,H,j){var re,Z,ee;return Ie=re=Ie-384|0,a[re+4>>2]=0,Ll(Z=re+16|0,H,j,0),j=S[H+20|0]|S[H+21|0]<<8|S[H+22|0]<<16|S[H+23|0]<<24,a[re+8>>2]=S[H+16|0]|S[H+17|0]<<8|S[H+18|0]<<16|S[H+19|0]<<24,a[re+12>>2]=j,zS(j=re- -64|0,64,0,ee=re+4|0,Z),Sg(H=re+128|0,j),bn(j,64),qo(H,Q,v,L),qo(H,35680,0-v&15,0),iBe(f,p,b,B,ee,Z),qo(H,f,b,B),qo(H,35680,0-b&15,0),a[re+56>>2]=v,a[re+60>>2]=L,qo(H,f=re+56|0,8,0),a[re+56>>2]=b,a[re+60>>2]=B,qo(H,f,8,0),Ig(H,c),bn(H,256),h&&(a[h>>2]=16,a[h+4>>2]=0),bn(re+16|0,32),Ie=re+384|0,0}function On(f,c,h,p,b){var B,Q,v=0;return Ie=B=Ie+-64|0,!h&(Q=Rg(f))>>>0<128?(a[B+60>>2]=0,a[B+52>>2]=0,a[B+56>>2]=0,a[B+44>>2]=0,a[B+48>>2]=0,h=0,Q&&(h=Q,(1|Q)>>>0<65536||(h=Q)),!(v=wo(h))|!(3&S[v-4|0])||yo(v,0,h),v?(a[B+36>>2]=0,a[B+40>>2]=0,a[B+12>>2]=v,a[B+20>>2]=v,a[B+24>>2]=Q,a[B+4>>2]=v,a[B+16>>2]=Q,a[B+28>>2]=0,a[B+32>>2]=0,a[B+8>>2]=Q,yH(B+4|0,f,b)?(a[9404]=28,f=-1):f=a[B+44>>2]!=(0|c)|a[B+48>>2]!=(p>>>10|0),h0(v)):f=-1):(a[9404]=28,f=-1),Ie=B- -64|0,f}function Qn(f){var c,h=0,p=0;if(!f)return-25;if(!a[f>>2])return-1;if(sn[f+4>>2]<16)return-2;if(!(a[f+8>>2]|!a[f+12>>2]))return-18;if(h=a[f+20>>2],!a[f+16>>2])return h?-19:-6;if(h>>>0<8)return-6;if(!(a[f+24>>2]|!a[f+28>>2]))return-20;if(!(a[f+32>>2]|!a[f+36>>2]))return-21;if(!(h=a[f+48>>2]))return-16;if(h>>>0>16777215)return-17;if(p=-14,!((c=a[f+44>>2])>>>0<8)){if(c>>>0>2097152)return-15;if(!(h<<3>>>0>c>>>0)){if(!a[f+40>>2])return-12;if(!(f=a[f+52>>2]))return-28;p=f>>>0>16777215?-29:0}}return p}function bi(f,c){var h,p=0,b=0;h=c;e:{t:{r:{if(c&=255){if(3&f)for(;;){if(!(p=S[0|f])|(0|c)==(0|p))break e;if(!(3&(f=f+1|0)))break}if((-2139062144&((p=a[f>>2])|16843008-p))!=-2139062144)break r;for(b=Lr(c,16843009);;){if((-2139062144&(16843008-(c=p^b)|c))!=-2139062144)break r;if(p=a[f+4>>2],f=c=f+4|0,(-2139062144&(16843008-p|p))!=-2139062144)break}break t}f=Rg(f)+f|0;break e}c=f}for(;;){if(!(p=S[0|(f=c)]))break e;if(c=f+1|0,(0|p)==(255&h))break}}return S[0|f]==(255&h)?f:0}function ci(f,c,h,p){var b,B=0;return Ie=b=Ie-208|0,a[b+72>>2]=0,a[b+76>>2]=0,B=a[8591],a[b+8>>2]=a[8590],a[b+12>>2]=B,B=a[8593],a[b+16>>2]=a[8592],a[b+20>>2]=B,B=a[8595],a[b+24>>2]=a[8594],a[b+28>>2]=B,B=a[8597],a[b+32>>2]=a[8596],a[b+36>>2]=B,B=a[8599],a[b+40>>2]=a[8598],a[b+44>>2]=B,B=a[8601],a[b+48>>2]=a[8600],a[b+52>>2]=B,B=a[8603],a[b+56>>2]=a[8602],a[b+60>>2]=B,a[b+64>>2]=0,a[b+68>>2]=0,B=a[8589],a[b>>2]=a[8588],a[b+4>>2]=B,L0(b,c,h,p),Ah(b,f),Ie=b+208|0,0}function qi(f){var c=0;return a[64+(f|=0)>>2]=0,a[f+68>>2]=0,a[f+72>>2]=0,a[f+76>>2]=0,c=a[8589],a[f>>2]=a[8588],a[f+4>>2]=c,c=a[8591],a[f+8>>2]=a[8590],a[f+12>>2]=c,c=a[8593],a[f+16>>2]=a[8592],a[f+20>>2]=c,c=a[8595],a[f+24>>2]=a[8594],a[f+28>>2]=c,c=a[8597],a[f+32>>2]=a[8596],a[f+36>>2]=c,c=a[8599],a[f+40>>2]=a[8598],a[f+44>>2]=c,c=a[8601],a[f+48>>2]=a[8600],a[f+52>>2]=c,c=a[8603],a[f+56>>2]=a[8602],a[f+60>>2]=c,0}function ea(f){return~((127&~S[f+31|0]|S[f+1|0]&S[f+2|0]&S[f+3|0]&S[f+4|0]&S[f+5|0]&S[f+6|0]&S[f+7|0]&S[f+8|0]&S[f+9|0]&S[f+10|0]&S[f+11|0]&S[f+12|0]&S[f+13|0]&S[f+14|0]&S[f+15|0]&S[f+16|0]&S[f+17|0]&S[f+18|0]&S[f+19|0]&S[f+20|0]&S[f+21|0]&S[f+22|0]&S[f+23|0]&S[f+24|0]&S[f+25|0]&S[f+26|0]&S[f+27|0]&S[f+28|0]&S[f+30|0]&S[f+29|0]^255)-1&236-S[0|f])>>>8&1}function ya(f,c){var h,p=0,b=0,B=0,Q=0;if(k[15+(h=Ie-16|0)|0]=0,c){if(c>>>0>=4)for(Q=-4&c;p=f+b|0,k[h+15|0]=S[0|p]|S[h+15|0],k[h+15|0]=S[p+1|0]|S[h+15|0],k[h+15|0]=S[p+2|0]|S[h+15|0],k[h+15|0]=S[p+3|0]|S[h+15|0],b=b+4|0,(0|Q)!=(0|(B=B+4|0)););if(p=3&c)for(c=0;k[h+15|0]=S[f+b|0]|S[h+15|0],b=b+1|0,(0|p)!=(0|(c=c+1|0)););}return S[h+15|0]-1>>>8&1}function Ul(f,c,h){var p,b=0,B=0;if(a[12+(p=Ie-16|0)>>2]=f,a[p+8>>2]=c,f=0,k[p+7|0]=0,h){if(c=1&h,(0|h)!=1)for(B=-2&h,h=0;k[p+7|0]=S[p+7|0]|S[a[p+12>>2]+f|0]^S[a[p+8>>2]+f|0],b=1|f,k[p+7|0]=S[p+7|0]|S[b+a[p+12>>2]|0]^S[a[p+8>>2]+b|0],f=f+2|0,(0|B)!=(0|(h=h+2|0)););c&&(k[p+7|0]=S[p+7|0]|S[a[p+12>>2]+f|0]^S[a[p+8>>2]+f|0])}return(S[p+7|0]-1>>>8&1)-1|0}function EM(f){for(var c=0,h=0,p=0,b=0,B=0,Q=0,v=0,L=0,H=0,j=0;b=(h=S[f+p|0])^S[0|(c=p+2688|0)]|b,B=h^S[c+192|0]|B,Q=h^S[c+160|0]|Q,v=h^S[c+128|0]|v,L=h^S[c+96|0]|L,H=h^S[c- -64|0]|H,j=h^S[c+32|0]|j,(0|(p=p+1|0))!=31;);return((255&((c=127^(f=127&S[f+31|0]))|B))-1|(255&(c|Q))-1|(255&(c|v))-1|(255&(122^f|L))-1|(255&(5^f|H))-1|(255&(f|j))-1|(255&(f|b))-1)>>>8&1}function Ke(f,c,h){var p=0,b=0,B=0,Q=0;return b=31&(B=Q=63&h),B=B>>>0>=32?-1>>>b|0:(p=-1>>>b|0)|(1<<b)-1<<32-b,B&=f,p&=c,b=31&Q,Q>>>0>=32?(p=B<<b,Q=0):(p=(1<<b)-1&B>>>32-b|p<<b,Q=B<<b),B=p,p=31&(b=0-h&63),b>>>0>=32?(p=-1<<p,h=0):p=(h=-1<<p)|(1<<p)-1&-1>>>32-p,f&=h,c&=p,p=31&b,b>>>0>=32?(h=0,f=c>>>p|0):(h=c>>>p|0,f=((1<<p)-1&c)<<32-p|f>>>p),$=h|B,f|Q}function gTe(f,c,h,p,b,B){f|=0,c|=0,h|=0;var Q=0,v=0;e:t:{r:{if(!(!(b|=0)&(p|=0)>>>0<64||(v=1+(b=b-1|0)|0,Q=b,!(p=(b=p+-64|0)>>>0<4294967232?v:Q)&b>>>0>4294967231|p))){if(!Fo(Q=h,h=h- -64|0,b,p,B|=0,0))break r;f&&yo(f,0,b)}if(p=-1,!c)break t;a[c>>2]=0,a[c+4>>2]=0,p=-1;break e}c&&(a[c>>2]=b,a[c+4>>2]=p),p=0,f&&Z5(f,h,b)}return 0|p}function _Te(f,c,h,p,b,B,Q,v,L,H){var j,re,Z;return Ie=j=Ie-352|0,zS(Z=j+32|0,64,0,L,H),Sg(re=j+96|0,Z),bn(Z,64),qo(re,B,Q,v),qo(re,35648,0-Q&15,0),qo(re,c,h,p),qo(re,35648,0-h&15,0),a[j+24>>2]=Q,a[j+28>>2]=v,qo(re,B=j+24|0,8,0),a[j+24>>2]=h,a[j+28>>2]=p,qo(re,B,8,0),Ig(re,j),bn(re,256),B=Te(j,b),bn(j,16),f&&(B?(yo(f,0,h),B=-1):(N8(f,c,h,p,L,1,H),B=0)),Ie=j+352|0,B}function mTe(f,c,h,p,b,B){var Q,v;return f|=0,c|=0,h|=0,p|=0,B|=0,Ie=Q=Ie-32|0,v=S[0|(b|=0)]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,b=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,a[Q+24>>2]=0,a[Q+28>>2]=0,a[Q+16>>2]=v,a[Q+20>>2]=b,a[Q+8>>2]=0,a[Q+12>>2]=0,a[Q>>2]=h,a[Q+4>>2]=p,c-65>>>0<=4294967246?(a[9404]=28,f=-1):f=oH(f,c,0,0,0,B,32,Q,Q+16|0),Ie=Q+32|0,0|f}function yTe(f,c,h,p,b){var B,Q;return f|=0,c|=0,h|=0,p|=0,Ie=B=Ie-512|0,Z2(Q=B+32|0,b|=0,32),j2(Q,c,h,p),JS(Q,B+448|0),c=a[B+476>>2],a[B+24>>2]=a[B+472>>2],a[B+28>>2]=c,c=a[B+468>>2],a[B+16>>2]=a[B+464>>2],a[B+20>>2]=c,c=a[B+460>>2],a[B+8>>2]=a[B+456>>2],a[B+12>>2]=c,c=a[B+452>>2],a[B>>2]=a[B+448>>2],a[B+4>>2]=c,c=eO(f,B),h=Ul(B,f,32),Ie=B+512|0,((0|f)==(0|B)?-1:c)|h}function bTe(f,c,h,p,b,B,Q,v,L,H){var j,re,Z;return Ie=j=Ie-352|0,RM(Z=j+32|0,64,0,L,H),Sg(re=j+96|0,Z),bn(Z,64),qo(re,B,Q,v),a[j+24>>2]=Q,a[j+28>>2]=v,qo(re,B=j+24|0,8,0),qo(re,c,h,p),a[j+24>>2]=h,a[j+28>>2]=p,qo(re,B,8,0),Ig(re,j),bn(re,256),B=Te(j,b),bn(j,16),f&&(B?(yo(f,0,h),B=-1):(x8(f,c,h,p,L,1,0,H),B=0)),Ie=j+352|0,B}function ETe(f,c,h,p,b,B,Q,v,L,H,j){var re,Z,ee;return Ie=re=Ie-336|0,zS(ee=re+16|0,64,0,H,j),Sg(Z=re+80|0,ee),bn(ee,64),qo(Z,Q,v,L),qo(Z,35648,0-v&15,0),N8(f,p,b,B,H,1,j),qo(Z,f,b,B),qo(Z,35648,0-b&15,0),a[re+8>>2]=v,a[re+12>>2]=L,qo(Z,f=re+8|0,8,0),a[re+8>>2]=b,a[re+12>>2]=B,qo(Z,f,8,0),Ig(Z,c),bn(Z,256),h&&(a[h>>2]=16,a[h+4>>2]=0),Ie=re+336|0,0}function Fre(f,c){var h,p=0,b=0,B=0,Q=0,v=0;e:if(!(((h=S[0|f])-58&255)>>>0<246)){for(p=h,b=f;;){if(Q=b,B>>>0>429496729||(p=(255&p)-48|0)>>>0>~(B=Lr(B,10))>>>0)break e;if(B=B+p|0,!(((p=S[0|(b=b+1|0)])-58&255)>>>0>245))break}(0|h)==48&(0|f)!=(0|Q)|(0|f)==(0|b)||(a[c>>2]=B,v=b)}return v}function O8(f){var c=0,h=0,p=0,b=0;c=65,h=1024;e:{t:{if((0|(p=255&f))!=S[1024])for(p=Lr(p,16843009);;){if((-2139062144&((b=p^a[h>>2])|16843008-b))!=-2139062144)break t;if(h=h+4|0,!((c=c-4|0)>>>0>3))break}if(!c)break e}for(f&=255;;){if((0|f)==S[0|h])return h;if(h=h+1|0,!(c=c-1|0))break}}return 0}function vTe(f,c,h,p,b,B,Q,v,L,H,j){var re,Z,ee;return Ie=re=Ie-336|0,RM(ee=re+16|0,64,0,H,j),Sg(Z=re+80|0,ee),bn(ee,64),qo(Z,Q,v,L),a[re+8>>2]=v,a[re+12>>2]=L,qo(Z,Q=re+8|0,8,0),x8(f,p,b,B,H,1,0,j),qo(Z,f,b,B),a[re+8>>2]=b,a[re+12>>2]=B,qo(Z,Q,8,0),Ig(Z,c),bn(Z,256),h&&(a[h>>2]=16,a[h+4>>2]=0),Ie=re+336|0,0}function RTe(f,c,h,p,b,B){return!p&h>>>0>=32|p?(Hre(f,c,h,p,b,B),ABe(f+16|0,f+32|0,h-32|0,p-(h>>>0<32)|0,f),k[f+8|0]=0,k[f+9|0]=0,k[f+10|0]=0,k[f+11|0]=0,k[f+12|0]=0,k[f+13|0]=0,k[f+14|0]=0,k[f+15|0]=0,k[0|f]=0,k[f+1|0]=0,k[f+2|0]=0,k[f+3|0]=0,k[f+4|0]=0,k[f+5|0]=0,k[f+6|0]=0,k[f+7|0]=0,f=0):f=-1,f}function Rg(f){var c=0,h=0,p=0;e:{t:if(3&(c=f)){if(!S[0|c])return 0;for(;;){if(!(3&(c=c+1|0)))break t;if(!S[0|c])break}break e}for(;h=c,c=c+4|0,(-2139062144&((p=a[h>>2])|16843008-p))==-2139062144;);for(;h=(c=h)+1|0,S[0|c];);}return c-f|0}function STe(f,c,h,p,b,B){c|=0,b|=0,B|=0;var Q,v=0;return Ie=Q=Ie-16|0,en(f|=0,Q+8|0,Z5(f- -64|0,h|=0,p|=0),p,b,B,0),a[Q+12>>2]|a[Q+8>>2]!=64?(c&&(a[c>>2]=0,a[c+4>>2]=0),yo(f,0,p- -64|0),v=-1):c&&(a[c>>2]=p- -64,a[c+4>>2]=b-((p>>>0<4294967232)-1|0)),Ie=Q+16|0,0|v}function IH(f,c){var h,p=0,b=0,B=0,Q=0;return(h=O8(S[0|c]))&&(p=O8(S[c+1|0]))&&(b=O8(S[c+2|0]))&&(B=O8(S[c+3|0]))&&(Q=O8(S[c+4|0]))?(a[f>>2]=h-1024|p-1024<<6|b-1024<<12|B-1024<<18|Q-1024<<24,c+5|0):(a[f>>2]=0,0)}function ITe(f,c,h){var p;for(a[12+(p=Ie-16|0)>>2]=f,a[p+8>>2]=c,f=0,a[p+4>>2]=0;a[p+4>>2]=a[p+4>>2]|S[a[p+12>>2]+f|0]^S[a[p+8>>2]+f|0],c=1|f,a[p+4>>2]=a[p+4>>2]|S[c+a[p+12>>2]|0]^S[c+a[p+8>>2]|0],(0|h)!=(0|(f=f+2|0)););return(a[p+4>>2]-1>>>8&1)-1|0}function CTe(f,c,h,p,b,B,Q,v,L,H,j){var re=0,Z=0,ee=0;return Z=-1,(re=p>>>0<32)&!b||!(re=b-re|0)&(ee=p-32|0)>>>0>4294967263|re|!v&Q>>>0>4294967263|v||(Z=0|A0[a[j>>2]](f,h,ee,(h+p|0)-32|0,32,B,Q,L,H)),c&&(a[c>>2]=Z?0:p-32|0,a[c+4>>2]=Z?0:b-(p>>>0<32)|0),Z}function wTe(f,c){var h,p=0,b=0,B=0;Ie=h=Ie-896|0,dv(p=h+848|0,c),dv(b=h+800|0,c+32|0),nH(B=h+320|0,p),nH(c=h+160|0,b),mc(p=h+640|0,c),Gu(c=h+480|0,B,p),Ar(h,c,p=h+600|0),Ar(h+40|0,b=h+520|0,B=h+560|0),Ar(h+80|0,B,p),Ar(h+120|0,c,b),I8(f,h),Ie=h+896|0}function OTe(f){var c=0,h=0,p=0,b=0,B=0;for(c=1;h=(p=c)+S[0|(c=f+b|0)]|0,k[0|c]=h,h=S[c+1|0]+(h>>>8|0)|0,k[c+1|0]=h,h=S[c+2|0]+(h>>>8|0)|0,k[c+2|0]=h,p=c,c=S[c+3|0]+(h>>>8|0)|0,k[p+3|0]=c,c=c>>>8|0,b=b+4|0,(0|(B=B+4|0))!=4;);}function NTe(f,c,h,p,b,B,Q){var v;return Ie=v=Ie-16|0,f=yo(f,0,128),!(p|B)&Q>>>0<2147483649?(!B&b>>>0>=3|!!(0|B))&Q>>>0>8191?(wf(v,16),f=aH(b,Q>>>10|0,c,h,v,f,1)?-1:0):(a[9404]=28,f=-1):(a[9404]=22,f=-1),Ie=v+16|0,f}function xTe(f,c){var h=0;4&c&&((c=a[f>>2])&&bn(a[c+4>>2],a[f+16>>2]<<10),(c=a[f+4>>2])&&bn(c,a[f+20>>2]<<3)),h0(a[f+4>>2]),a[f+4>>2]=0,(c=a[f>>2])&&(h=a[c>>2])&&h0(h),h0(c),a[f>>2]=0}function TTe(f,c,h,p,b,B,Q,v,L,H,j){return!b&p>>>0>4294967263|!!(0|b)|!v&Q>>>0>=4294967264|!!(0|v)?(Bs(),Rr()):(f=0|A0[a[j>>2]](f,f+p|0,32,h,p,B,Q,L,H),c&&(p=(h=p+32|0)>>>0<32?b+1|0:b,a[c>>2]=f?0:h,a[c+4>>2]=f?0:p)),f}function BTe(f){var c=0,h=0,p=0,b=0,B=0,Q=0,v=0,L=0;for(c=32,h=1;L|=(b=S[(p=c-2|0)+f|0])-(B=S[p+2912|0])>>8&(c=((Q=S[2912+(c=c-1|0)|0])^(v=S[f+c|0]))-1>>8&h)|v-Q>>8&h,h=c&(b^B)-1>>8,c=p;);return!!(255&L)}function MTe(f,c,h,p,b,B,Q){var v;return Ie=v=Ie-16|0,f=yo(f,0,128),!(p|B)&Q>>>0<2147483649?!!(b|B)&Q>>>0>8191?(wf(v,16),f=aH(b,Q>>>10|0,c,h,v,f,2)?-1:0):(a[9404]=28,f=-1):(a[9404]=22,f=-1),Ie=v+16|0,f}function CH(f){var c=0;return a[32+(f|=0)>>2]=0,a[f+36>>2]=0,c=a[8809],a[f>>2]=a[8808],a[f+4>>2]=c,c=a[8811],a[f+8>>2]=a[8810],a[f+12>>2]=c,c=a[8813],a[f+16>>2]=a[8812],a[f+20>>2]=c,c=a[8815],a[f+24>>2]=a[8814],a[f+28>>2]=c,0}function DTe(f,c,h,p,b,B,Q){var v,L,H=0,j=0;return Ie=v=Ie+-64|0,H=-1,(L=h>>>0<16)&!p||vg(j=v+32|0,Q,B)||Ll(v,35584,j,0)||(H=mr(f,c+16|0,c,h-16|0,p-L|0,b,v),bn(v,32)),Ie=v- -64|0,H}function Ce(f,c,h,p){var b,B,Q,v,L=0,H=0;return v=Lr(L=h>>>16|0,H=f>>>16|0),L=(65535&(H=((Q=Lr(b=65535&h,B=65535&f))>>>16|0)+Lr(H,b)|0))+Lr(L,B)|0,$=(Lr(c,h)+v|0)+Lr(f,p)+(H>>>16)+(L>>>16)|0,65535&Q|L<<16}function W5(f,c,h){var p=0,b=0;if(!h)return 0;if(p=S[0|f])e:{for(;;){if((0|(b=S[0|c]))!=(0|p)|!b||!(h=h-1|0))break e;if(c=c+1|0,p=S[f+1|0],f=f+1|0,!p)break}p=0}else p=0;return p-S[0|c]|0}function N8(f,c,h,p,b,B,Q){var v=0,L=0;if(v=p,!((((v=(L=h+63|0)>>>0<63?v+1|0:v)>>>6|0)+!!(0|(v=(63&v)<<26|L>>>6))|0)==1&B>>>0>(L=0-v|0)>>>0|(0|p)==1|p>>>0>1))return 0|A0[a[9199]](f,c,h,p,b,B,Q);Bs(),Rr()}function kTe(f,c,h,p,b,B,Q){var v;return f|=0,c|=0,h|=0,p|=0,b|=0,Ie=v=Ie+-64|0,vg(v+32|0,Q|=0,B|=0)?B=-1:(B=-1,$2(v,35664,v+32|0,0)||(B=RTe(f,c,h,p,b,v),bn(v,32))),Ie=v- -64|0,0|B}function PTe(f,c,h,p,b,B,Q){var v;return f|=0,c|=0,h|=0,p|=0,b|=0,Ie=v=Ie+-64|0,vg(v+32|0,Q|=0,B|=0)?B=-1:(B=-1,$2(v,35664,v+32|0,0)||(B=Vr(f,c,h,p,b,v),bn(v,32))),Ie=v- -64|0,0|B}function LTe(f,c,h,p,b,B,Q){var v;if(Ie=v=Ie+-64|0,!p&h>>>0<4294967280)return vg(v+32|0,Q,B)?Q=-1:(Q=-1,Ll(v,35584,v+32|0,0)||(Q=Fe(f+16|0,f,c,h,p,b,v),bn(v,32))),Ie=v- -64|0,Q;Bs(),Rr()}function UTe(f,c){for(var h=0,p=0,b=0,B=0,Q=0;p=f+b|0,h=S[c+b|0]+(S[0|p]+h|0)|0,k[0|p]=h,B=(p=1|b)+f|0,h=S[c+p|0]+(S[0|B]+(h>>>8|0)|0)|0,k[0|B]=h,h=h>>>8|0,b=b+2|0,(0|(Q=Q+2|0))!=32;);}function Qre(f,c){for(var h=0,p=0,b=0,B=0,Q=0;h=(S[0|(p=f+b|0)]-S[c+b|0]|0)+h|0,k[0|p]=h,h=(S[0|(B=(p=1|b)+f|0)]-S[c+p|0]|0)+(h>>8)|0,k[0|B]=h,h>>=8,b=b+2|0,(0|(Q=Q+2|0))!=64;);}function wf(f,c){f|=0;var h,p=0,b=0,B=0;if(Ie=h=Ie-16|0,c|=0)for(;k[h+15|0]=0,b=f+p|0,B=0|yt(36800,h+15|0,0),k[0|b]=B,(0|(p=p+1|0))!=(0|c););Ie=h+16|0}function FTe(f,c,h,p,b,B,Q){var v,L,H=0;return Ie=v=Ie-32|0,H=-1,(L=h>>>0<16)&!p||OM(v,B,Q)||(H=vt(f,c+16|0,c,h-16|0,p-L|0,b,v),bn(v,32)),Ie=v+32|0,H}function X5(f){var c,h;e:{if(!((f=(c=a[8924])+(h=f+7&-8)|0)>>>0<=c>>>0&&h)&&(f>>>0<=LBe()<<16>>>0||0|gt(0|f)))break e;return a[9404]=48,-1}return a[8924]=f,c}function VS(f,c){var h,p,b;Ie=h=Ie-176|0,lv(p=h+96|0,c+80|0),Ar(b=h+48|0,c,p),Ar(h,c+40|0,p),yc(f,h),yc(h+144|0,b),k[f+31|0]=S[f+31|0]^S[h+144|0]<<7,Ie=h+176|0}function QTe(f,c,h,p,b,B,Q,v,L,H){var j,re,Z=0,ee=0,de=0;return Ie=j=Ie-16|0,Z=-1,qre(re=j+4|0)||(ee=-1,de=cH(re,f,c,h,p,b,B,Q,v,L,H),Z=xH(re)?ee:de),Ie=j+16|0,Z}function HTe(f,c,h,p,b,B,Q,v,L,H,j,re){return h&&(a[h>>2]=32,a[h+4>>2]=0),!L&v>>>0<4294967264&!B&b>>>0<=4294967263||(Bs(),Rr()),0|A0[a[re>>2]](f,c,32,p,b,Q,v,H,j)}function Z5(f,c,h){var p=0;if(f>>>0<c>>>0)return Di(f,c,h);if(h)for(p=f+h|0,c=c+h|0;c=c-1|0,k[0|(p=p-1|0)]=S[0|c],h=h-1|0;);return f}function GTe(f,c,h,p,b,B,Q){var v,L=0;if(Ie=v=Ie-32|0,!p&h>>>0<4294967280)return L=-1,OM(v,B,Q)||(L=Pe(f+16|0,f,c,h,p,b,v),bn(v,32)),Ie=v+32|0,L;Bs(),Rr()}function qTe(f,c,h,p,b,B){return c|=0,0|(!(p|=0)&(h|=0)>>>0>=16|p?vt(f|=0,c+16|0,c,h-16|0,p-(h>>>0<16)|0,b|=0,B|=0):-1)}function VTe(f,c,h,p,b,B){return c|=0,0|(!(p|=0)&(h|=0)>>>0>=16|p?mr(f|=0,c+16|0,c,h-16|0,p-(h>>>0<16)|0,b|=0,B|=0):-1)}function JTe(f,c,h,p,b,B,Q,v,L,H,j){return!p&h>>>0>4294967263|p|!v&Q>>>0>4294967263|v?-1:0|A0[a[j>>2]](f,c,h,b,32,B,Q,L,H)}function zTe(f,c,h){f|=0;var p,b=0;return Ie=p=Ie-32|0,b=-1,vg(p,h|=0,c|=0)||(b=$2(f,35664,p,0)),Ie=p+32|0,0|b}function JS(f,c){var h;return c|=0,Ie=h=Ie+-64|0,Ah(f|=0,h),L0(f=f+208|0,h,64,0),Ah(f,c),bn(h,64),Ie=h- -64|0,0}function KTe(f,c,h,p){var b;return c|=0,h|=0,p|=0,Ie=b=Ie+-64|0,Ah(f|=0,b),f=en(c,h,b,64,0,p,1),Ie=b- -64|0,0|f}function wH(f,c){var h,p,b;Ar(f,c,h=c+120|0),Ar(f+40|0,p=c+40|0,b=c+80|0),Ar(f+80|0,b,h),Ar(f+120|0,c,p)}function $Te(f,c,h,p,b,B,Q){return 0|MTe(f|=0,c|=0,(f=0)|(h|=0),p|=0,f|(b|=0),B|=0,Q|=0)}function j5(f,c){var h;return c|=0,Ie=h=Ie-32|0,W2(f|=0,h),w1(f=f+104|0,h,32,0),W2(f,c),bn(h,32),Ie=h+32|0,0}function Di(f,c,h){var p=0;if(h)for(p=f;k[0|p]=S[0|c],p=p+1|0,c=c+1|0,h=h-1|0;);return f}function Hre(f,c,h,p,b,B){var Q;return Ie=Q=Ie-32|0,$2(Q,b,B,0),f=wM(f,c,h,p,b+16|0,0,0,Q),bn(Q,32),Ie=Q+32|0,f}function YTe(f){for(f|=0;wf(f,32),k[f+31|0]=31&S[f+31|0],!BTe(f)||ya(f,32););}function WTe(f,c,h){var p;return c|=0,h|=0,Ie=p=Ie+-64|0,Ah(f|=0,p),f=Fo(c,p,64,0,h,1),Ie=p- -64|0,0|f}function XTe(f,c,h,p,b){var B;return Ie=B=Ie-32|0,$2(B,p,b,0),f=Jre(f,c,h,p+16|0,B),bn(B,32),Ie=B+32|0,f}function yo(f,c,h){var p=0;if(h)for(p=f;k[0|p]=c,p=p+1|0,h=h-1|0;);return f}function vM(f,c,h){return f|=0,c|=0,(h|=0)>>>0>=256&&(ot(1366,1279,107,1123),Rr()),0|sM(f,c,255&h)}function ZTe(f,c,h,p,b,B,Q){return 0|Pe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)}function jTe(f,c,h,p,b,B,Q){return 0|vt(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)}function eBe(f,c,h,p,b,B,Q){return 0|Fe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)}function x8(f,c,h,p,b,B,Q,v){return(0|p)==1|p>>>0>1&&(Bs(),Rr()),0|A0[a[9198]](f,c,h,p,b,B,Q,v)}function tBe(f,c,h,p,b,B,Q){return 0|mr(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)}function OH(f,c,h,p,b,B){return(0|p)==1|p>>>0>1&&(Bs(),Rr()),0|A0[a[9198]](f,c,h,p,b,0,0,B)}function NH(f,c,h,p,b,B){return(0|p)==1|p>>>0>1&&(Bs(),Rr()),0|A0[a[9199]](f,c,h,p,b,0,B)}function rBe(f,c,h,p,b,B){return en(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,0),0}function xH(f){var c;return(c=a[f>>2])&&h0(c),a[f+8>>2]=0,a[f>>2]=0,a[f+4>>2]=0,0}function lr(f,c){var h=0;return(-1>>>(h=31&c)&f)<<h|((h=f)&-1<<(f=0-c&31))>>>f}function TH(f,c,h,p,b,B){return 0|RTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0)}function BH(f,c,h,p,b,B){return 0|Vr(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0)}function nBe(f,c,h,p,b,B){return 0|Hre(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0)}function zS(f,c,h,p,b){return(0|h)==1|h>>>0>1&&(Bs(),Rr()),0|A0[a[9197]](f,c,h,p,b)}function RM(f,c,h,p,b){return(0|h)==1|h>>>0>1&&(Bs(),Rr()),0|A0[a[9196]](f,c,h,p,b)}function iBe(f,c,h,p,b,B){(0|p)==1|p>>>0>1&&(Bs(),Rr()),A0[a[9199]](f,c,h,p,b,1,B)}function oBe(f,c,h,p,b){return 0|Fo(f|=0,c|=0,h|=0,p|=0,b|=0,0)}function aBe(f,c,h,p,b){return 0|ABe(f|=0,c|=0,h|=0,p|=0,b|=0)}function sBe(f,c,h,p,b){return 0|kH(f|=0,c|=0,h|=0,p|=0,b|=0)}function cBe(f,c,h,p,b){return 0|XTe(f|=0,c|=0,h|=0,p|=0,b|=0)}function uBe(){var f;Ie=f=Ie-16|0,k[f+15|0]=0,yt(36836,f+15|0,0),Ie=f+16|0}function SM(f,c,h,p){return uM(f|=0,c|=0,h|=0,p|=0,20),0}function IM(f,c,h,p){return uM(f|=0,c|=0,h|=0,p|=0,12),0}function CM(f,c,h,p){return uM(f|=0,c|=0,h|=0,p|=0,8),0}function dBe(f,c,h,p){return 0|ci(f|=0,c|=0,h|=0,p|=0)}function fBe(f,c,h,p){return 0|qo(f|=0,c|=0,h|=0,p|=0)}function Gre(f,c,h,p){return 0|L0(f|=0,c|=0,h|=0,p|=0)}function T8(f,c,h,p){return 0|C8(f|=0,c|=0,h|=0,p|=0)}function wM(f,c,h,p,b,B,Q,v){return 0|A0[a[8933]](f,c,h,p,b,B,Q,v)}function lBe(f,c,h,p){return 0|j2(f|=0,c|=0,h|=0,p|=0)}function MH(f,c,h,p,b,B){return 0|A0[a[8933]](f,c,h,p,b,0,0,B)}function qre(f){return a[f+8>>2]=0,a[f>>2]=0,a[f+4>>2]=0,0}function OM(f,c,h){return 0|zTe(f|=0,c|=0,h|=0)}function Vre(f,c,h){return 0|vg(f|=0,c|=0,h|=0)}function Bs(){var f;(f=a[9538])&&A0[0|f](),PBe(),Rr()}function B8(f,c,h){return 0|vM(f|=0,c|=0,h|=0)}function hBe(f,c,h){return 0|Z2(f|=0,c|=0,h|=0)}function DH(f,c){return f|=0,wf(c|=0,32),0|PH(f,c)}function ABe(f,c,h,p,b){return 0|A0[a[8925]](f,c,h,p,b)}function Jre(f,c,h,p,b){return 0|A0[a[8932]](f,c,h,p,b)}function kH(f,c,h,p,b){return 0|A0[a[8926]](f,c,h,p,b)}function PH(f,c){return f|=0,c|=0,0|A0[a[8931]](f,c)}function Sg(f,c){return f|=0,c|=0,0|A0[a[8927]](f,c)}function Ig(f,c){return f|=0,c|=0,0|A0[a[8929]](f,c)}function zre(f,c,h,p,b,B,Q){return gM(f,c,h,p,b,B,Q)}function LH(f){return f?31-Wr(f-1^f)|0:32}function qo(f,c,h,p){return 0|A0[a[8928]](f,c,h,p)}function eO(f,c){return 0|ITe(f|=0,c|=0,32)}function pBe(f,c){return 0|ITe(f|=0,c|=0,64)}function gBe(f,c,h){xr(f|=0,c|=0,h|=0)}function Kre(f,c){return 0|PH(f|=0,c|=0)}function _Be(f,c){return 0|DH(f|=0,c|=0)}function mBe(f,c,h,p){return SH(f,c,h,p,1)}function yBe(f,c,h,p){return On(f,c,h,p,1)}function bBe(f,c,h,p){return On(f,c,h,p,2)}function EBe(f,c,h,p){return SH(f,c,h,p,2)}function j2(f,c,h,p){return L0(f,c,h,p),0}function em(f,c,h,p){return w1(f,c,h,p),0}function ph(f,c,h,p){return Sd(f,c,h,p)}function vBe(f){return qi(f|=0),0}function $re(){return-2147483648}function Yre(){return 1073741824}function RBe(){return 268435456}function SBe(){return 33554432}function Wu(f){wf(f|=0,32)}function IBe(){return 67108864}function CBe(f){wf(f|=0,16)}function wBe(){return 16777216}function bn(f,c){yo(f,0,c)}function OBe(){return 1564}function NBe(){return 1338}function Wre(){return 8192}function xBe(){return 384}function TBe(){return 256}function Xre(){return 416}function Zre(){return 128}function NM(){return 208}function ed(){return 64}function ta(){return 16}function Ai(){return 32}function BBe(){return-65}function MBe(){return-33}function DBe(){return 48}function hv(){return-17}function kBe(){return 12}function tm(){return 24}function Id(){return-1}function M8(){return 2}function UH(){return 3}function Dy(){return 8}function xM(){return 1}function jre(){return 4}function pp(){return 0}function PBe(){lt(),Rr()}br(Je=S,1024,"Li8wMTIzNDU2Nzg5QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5egBqcwByYW5kb21ieXRlcwBiNjRfcG9zIDw9IGI2NF9sZW4AY3J5cHRvX2dlbmVyaWNoYXNoX2JsYWtlMmJfZmluYWwAYXJnb24yaWQsYXJnb24yaQAkYXJnb24yaQAkYXJnb24yaWQAcmFuZG9tYnl0ZXMvcmFuZG9tYnl0ZXMuYwBzb2RpdW0vY29kZWNzLmMAY3J5cHRvX2dlbmVyaWNoYXNoL2JsYWtlMmIvcmVmL2JsYWtlMmItcmVmLmMAY3J5cHRvX2dlbmVyaWNoYXNoL2JsYWtlMmIvcmVmL2dlbmVyaWNoYXNoX2JsYWtlMmIuYwB4MjU1MTlibGFrZTJiAGJ1Zl9sZW4gPD0gU0laRV9NQVgAb3V0bGVuIDw9IFVJTlQ4X01BWABTLT5idWZsZW4gPD0gQkxBS0UyQl9CTE9DS0JZVEVT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4o16/3pCmf629YYA4+QZAdY56//YrTj/tefSAHeAnf+BX4j/bn4zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/"),br(Je,2720,"AQ=="),br(Je,2752,"JuiVj8KyJ7BFw/SJ8u+Y8NXfrAXTxjM5sTgCiG1T/AXHF2pwPU3YT7o8C3YNEGcPKiBT+iw5zMZOx/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),br(Je,2943,"EP1AXQCgaj8AOdNX/gzSugBYvHT+QdgBAP/IPQHYQpT/APtcACSy4f8AAAAAAAAAAIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+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+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQ=="),br(Je,33964,"AQAAAHbBXwBlcAL/UPyh/vJqxv+FBrIA5N9wAN/uVf4z8xoAPiuL/stBCg=="),br(Je,34016,"M03tAJGqVv82JjP/8YBl/yl5Sv/sTpsAqZdp/pwpSADCZq//zqJl/wAAAAAAAAAAGy57ARKo/f/Tr5f+w9tgADh2vv7+0fX/mWR+/uiBFf81uPL/x6Td"),br(Je,34144,"AQ=="),br(Je,34176,"4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f0xpYnNvZGl1bURSRwAAAAAIybzzZ+YJajunyoSFrme7K/iU/nLzbjzxNh1fOvVPpdGC5q1/Ug5RH2w+K4xoBZtrvUH7q9mDH3khfhMZzeBbIq4o15gvikLNZe8jkUQ3cS87TezP+8C1vNuJgaXbtek4tUjzW8JWORnQBbbxEfFZm08Zr6SCP5IYgW3a1V4cq0ICA6OYqgfYvm9wRQFbgxKMsuROvoUxJOK0/9XDfQxVb4l78nRdvnKxlhY7/rHegDUSxyWnBtyblCZpz3Txm8HSSvGewWmb5OMlTziGR77vtdWMi8adwQ9lnKx3zKEMJHUCK1lvLOktg+SmbqqEdErU+0G93KmwXLVTEYPaiPl2q99m7lJRPpgQMrQtbcYxqD8h+5jIJwOw5A7vvsd/Wb/Cj6g98wvgxiWnCpNHkafVb4ID4FFjygZwbg4KZykpFPwv0kaFCrcnJskmXDghGy7tKsRa/G0sTd+zlZ0TDThT3mOvi1RzCmWosnc8uwpqduau7U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cbW1xMxmZqqQSEjYBgMDBff29gEcDg4SwmFho2o1NV+uV1f5abm50BeGhpGZwcFYOh0dJyeenrnZ4eE46/j4EyuYmLMiEREz0mlpu6nZ2XAHjo6JM5SUpy2bm7Y8Hh4iFYeHksnp6SCHzs5JqlVV/1AoKHil3996A4yMj1mhofgJiYmAGg0NF2W/v9rX5uYxhEJCxtBoaLiCQUHDKZmZsFotLXceDw8Re7Cwy6hUVPxtu7vWLBYWOgoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAAAAR");var TM,A0=(TM=[null,function(f,c,h,p,b){var B,Q,v;return f|=0,c|=0,h|=0,p|=0,b|=0,Ie=B=(Q=Ie)-128&-64,a[B>>2]=67108863&(S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),a[B+4>>2]=(S[b+3|0]|S[b+4|0]<<8|S[b+5|0]<<16|S[b+6|0]<<24)>>>2&67108611,a[B+8>>2]=(S[b+6|0]|S[b+7|0]<<8|S[b+8|0]<<16|S[b+9|0]<<24)>>>4&67092735,a[B+12>>2]=(S[b+9|0]|S[b+10|0]<<8|S[b+11|0]<<16|S[b+12|0]<<24)>>>6&66076671,v=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,a[B+20>>2]=0,a[B+24>>2]=0,a[B+28>>2]=0,a[B+32>>2]=0,a[B+36>>2]=0,a[B+16>>2]=v>>>8&1048575,a[B+40>>2]=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,a[B+44>>2]=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,a[B+48>>2]=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,b=S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24,k[B+80|0]=0,a[B+56>>2]=0,a[B+60>>2]=0,a[B+52>>2]=b,_M(B,c,h,p),bM(B,f),Ie=Q,0},function(f,c,h,p,b){var B,Q,v;return f|=0,c|=0,h|=0,p|=0,b|=0,Ie=B=(Q=Ie)-192&-64,a[B+64>>2]=67108863&(S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),a[B+68>>2]=(S[b+3|0]|S[b+4|0]<<8|S[b+5|0]<<16|S[b+6|0]<<24)>>>2&67108611,a[B+72>>2]=(S[b+6|0]|S[b+7|0]<<8|S[b+8|0]<<16|S[b+9|0]<<24)>>>4&67092735,a[B+76>>2]=(S[b+9|0]|S[b+10|0]<<8|S[b+11|0]<<16|S[b+12|0]<<24)>>>6&66076671,v=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,a[B+84>>2]=0,a[B+88>>2]=0,a[B+92>>2]=0,a[B+96>>2]=0,a[B+100>>2]=0,a[B+80>>2]=v>>>8&1048575,a[B+104>>2]=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,a[B+108>>2]=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,a[B+112>>2]=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,b=S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24,k[B+144|0]=0,a[B+120>>2]=0,a[B+124>>2]=0,a[B+116>>2]=b,_M(b=B- -64|0,c,h,p),bM(b,c=B+48|0),f=Te(f,c),Ie=Q,0|f},function(f,c){var h;return c|=0,a[(f|=0)>>2]=67108863&(S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24),a[f+4>>2]=(S[c+3|0]|S[c+4|0]<<8|S[c+5|0]<<16|S[c+6|0]<<24)>>>2&67108611,a[f+8>>2]=(S[c+6|0]|S[c+7|0]<<8|S[c+8|0]<<16|S[c+9|0]<<24)>>>4&67092735,a[f+12>>2]=(S[c+9|0]|S[c+10|0]<<8|S[c+11|0]<<16|S[c+12|0]<<24)>>>6&66076671,h=S[c+12|0]|S[c+13|0]<<8|S[c+14|0]<<16|S[c+15|0]<<24,a[f+20>>2]=0,a[f+24>>2]=0,a[f+28>>2]=0,a[f+32>>2]=0,a[f+36>>2]=0,a[f+16>>2]=h>>>8&1048575,a[f+40>>2]=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,a[f+44>>2]=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,a[f+48>>2]=S[c+24|0]|S[c+25|0]<<8|S[c+26|0]<<16|S[c+27|0]<<24,c=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,k[f+80|0]=0,a[f+56>>2]=0,a[f+60>>2]=0,a[f+52>>2]=c,0},function(f,c,h,p){return _M(f|=0,c|=0,h|=0,p|=0),0},function(f,c){return bM(f|=0,c|=0),0},function(f,c,h){f|=0,c|=0,h|=0;var p,b=0,B=0,Q=0,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0,ut=0,pt=0,bt=0,Ye=0,it=0,dt=0,Wt=0,nr=0,cr=0,gr=0,vr=0,Sr=0,yr=0,Kt=0,or=0,Or=0,kr=0,Jt=0,ur=0,Mr=0,Gr=0,jr=0,nn=0,fn=0,Ne=0,xe=0,nt=0,Cr=0,Yr=0,An=0,hn=0,pn=0,En=0,Mn=0,Nr=0,ft=0,Gt=0,rr=0,Jr=0,rn=0,_n=0,Tn=0,Bn=0,Nn=0,kn=0,Kn=0,zn=0,ui=0,di=0;for(Ie=p=Ie-368|0;de=(Q=S[h+b|0])^S[0|(L=b+34112|0)]|de,ee=Q^S[L+192|0]|ee,Z=Q^S[L+160|0]|Z,re=Q^S[L+128|0]|re,v=Q^S[L+96|0]|v,H=Q^S[L- -64|0]|H,B=Q^S[L+32|0]|B,(0|(b=b+1|0))!=31;);if(b=-1,!(256&((255&((Q=127^(L=127&S[h+31|0]))|ee))-1|(255&(Q|Z))-1|(255&(Q|re))-1|(255&(87^L|v))-1|(255&(H|L))-1|(255&(B|L))-1|(255&(L|de))-1))){for(b=c,c=S[c+28|0]|S[c+29|0]<<8|S[c+30|0]<<16|S[c+31|0]<<24,a[p+360>>2]=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,a[p+364>>2]=c,c=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,a[p+352>>2]=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,a[p+356>>2]=c,B=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,c=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[p+336>>2]=c,a[p+340>>2]=B,B=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,a[p+344>>2]=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24,a[p+348>>2]=B,k[p+336|0]=248&c,k[p+367|0]=63&S[p+367|0]|64,dv(p+288|0,h),a[p+260>>2]=0,a[p+264>>2]=0,a[p+268>>2]=0,a[p+272>>2]=0,a[p+276>>2]=0,a[p+208>>2]=0,a[p+212>>2]=0,a[p+216>>2]=0,a[p+220>>2]=0,a[p+224>>2]=0,a[p+228>>2]=0,c=a[p+308>>2],a[p+160>>2]=a[p+304>>2],a[p+164>>2]=c,c=a[p+316>>2],a[p+168>>2]=a[p+312>>2],a[p+172>>2]=c,c=a[p+324>>2],a[p+176>>2]=a[p+320>>2],a[p+180>>2]=c,a[p+244>>2]=0,a[p+248>>2]=0,a[p+240>>2]=1,a[p+252>>2]=0,a[p+256>>2]=0,a[p+192>>2]=0,a[p+196>>2]=0,a[p+200>>2]=0,a[p+204>>2]=0,c=a[p+292>>2],a[p+144>>2]=a[p+288>>2],a[p+148>>2]=c,c=a[p+300>>2],a[p+152>>2]=a[p+296>>2],a[p+156>>2]=c,a[p+116>>2]=0,a[p+120>>2]=0,a[p+124>>2]=0,a[p+128>>2]=0,a[p+132>>2]=0,a[p+100>>2]=0,a[p+104>>2]=0,a[p+96>>2]=1,a[p+108>>2]=0,a[p+112>>2]=0,h=254;fn=a[p+276>>2],Q=a[p+180>>2],Ne=a[p+96>>2],xe=a[p+192>>2],nt=a[p+144>>2],Cr=a[p+240>>2],Yr=a[p+100>>2],An=a[p+196>>2],hn=a[p+148>>2],pn=a[p+244>>2],it=a[p+104>>2],En=a[p+200>>2],dt=a[p+152>>2],Mn=a[p+248>>2],cr=a[p+108>>2],Nr=a[p+204>>2],gr=a[p+156>>2],ft=a[p+252>>2],Wt=a[p+112>>2],Gt=a[p+208>>2],bt=a[p+160>>2],rr=a[p+256>>2],de=a[p+116>>2],Jr=a[p+212>>2],j=a[p+164>>2],rn=a[p+260>>2],ee=a[p+120>>2],_n=a[p+216>>2],Z=a[p+168>>2],Tn=a[p+264>>2],re=a[p+124>>2],Bn=a[p+220>>2],v=a[p+172>>2],Nn=a[p+268>>2],H=a[p+128>>2],kn=a[p+224>>2],B=a[p+176>>2],pt=a[p+272>>2],Kn=h,Ye=(Ve=(c=0-((c=nn)^(nn=S[(zn=p+336|0)+(h>>>3|0)|0]>>>(7&h)&1))|0)&((b=a[p+132>>2])^(ur=a[p+228>>2])))^b,a[p+132>>2]=Ye,Mr=Q^(We=c&(Q^fn)),a[p+84>>2]=Mr-Ye,nr=H^(ke=c&(H^kn)),a[p+128>>2]=nr,Gr=(ut=c&(B^pt))^B,a[p+80>>2]=Gr-nr,Sr=re^(ye=c&(re^Bn)),a[p+124>>2]=Sr,ui=v^(Me=c&(v^Nn)),a[p+76>>2]=ui-Sr,yr=ee^(we=c&(ee^_n)),a[p+120>>2]=yr,di=Z^(L=c&(Z^Tn)),a[p+72>>2]=di-yr,Kt=de^(Q=c&(de^Jr)),a[p+116>>2]=Kt,or=j^(de=c&(j^rn)),a[p+68>>2]=or-Kt,Or=Wt^(ee=c&(Wt^Gt)),a[p+112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>>2],ke=a[p+100>>2],ut=a[p+200>>2],ye=a[p+104>>2],Me=a[p+204>>2],we=a[p+108>>2],L=a[p+208>>2],Q=a[p+112>>2],de=a[p+212>>2],ee=a[p+116>>2],Z=a[p+216>>2],re=a[p+120>>2],v=a[p+220>>2],H=a[p+124>>2],B=a[p+224>>2],b=a[p+128>>2],h=a[p+228>>2],c=a[p+132>>2],a[p+180>>2]=h+c,a[p+176>>2]=b+B,a[p+172>>2]=v+H,a[p+168>>2]=re+Z,a[p+164>>2]=ee+de,a[p+160>>2]=Q+L,a[p+156>>2]=we+Me,a[p+152>>2]=ye+ut,a[p+148>>2]=We+ke,a[p+144>>2]=j+Ve,a[p+228>>2]=c-h,a[p+224>>2]=b-B,a[p+220>>2]=H-v,a[p+216>>2]=re-Z,a[p+212>>2]=ee-de,a[p+208>>2]=Q-L,a[p+204>>2]=we-Me,a[p+200>>2]=ye-ut,a[p+196>>2]=ke-We,a[p+192>>2]=Ve-j,Ar(Ye,p,nr),Sr=a[p+52>>2],we=a[p+4>>2],yr=a[p+56>>2],L=a[p+8>>2],Kt=a[p+64>>2],Z=a[p+16>>2],Or=a[p+60>>2],re=a[p+12>>2],kr=a[p+72>>2],v=a[p+24>>2],Jt=a[p+68>>2],H=a[p+20>>2],it=a[p+80>>2],B=a[p+32>>2],dt=a[p+76>>2],b=a[p+28>>2],ur=a[p+84>>2],c=a[p+36>>2],Gr=a[p+48>>2],h=a[p>>2]-Gr|0,a[p>>2]=h,c=c-ur|0,a[p+36>>2]=c,Wt=b-dt|0,a[p+28>>2]=Wt,bt=B-it|0,a[p+32>>2]=bt,Q=H-Jt|0,a[p+20>>2]=Q,de=v-kr|0,a[p+24>>2]=de,ee=re-Or|0,a[p+12>>2]=ee,Z=Z-Kt|0,a[p+16>>2]=Z,re=L-yr|0,a[p+8>>2]=re,B=we-Sr|0,a[p+4>>2]=B,Et(pt,pt),c=Ce(c,c>>31,121666,0),b=$,jr=c,c=Ce((33554431&(b=(j=c+16777216|0)>>>0<16777216?b+1|0:b))<<7|j>>>25,b>>25,19,0),H=$,b=c,c=Ce(h,h>>31,121666,0),vr=$+H|0,c=c>>>0>(b=b+c|0)>>>0?vr+1|0:vr,h=(v=b+33554432|0)>>>0<33554432?c+1|0:c,Ve=b-(-67108864&v)|0,a[p+96>>2]=Ve,H=Ce(B,B>>31,121666,0),b=$,b=(B=H+16777216|0)>>>0<16777216?b+1|0:b,We=(H-(-33554432&B)|0)+((67108863&h)<<6|v>>>26)|0,a[p+100>>2]=We,vr=(c=b)>>25,b=(33554431&c)<<7|B>>>25,h=Ce(re,re>>31,121666,0)+b|0,c=vr+$|0,c=h>>>0<b>>>0?c+1|0:c,H=(ke=h+33554432|0)>>>0<33554432?c+1|0:c,ut=h-(-67108864&ke)|0,a[p+104>>2]=ut,b=Ce(Z,Z>>31,121666,0),B=$,h=Ce(ee,ee>>31,121666,0),c=$,or=b,cr=h,b=(33554431&(c=(ye=h+16777216|0)>>>0<16777216?c+1|0:c))<<7|ye>>>25,c=(c>>25)+B|0,c=(h=or+b|0)>>>0<b>>>0?c+1|0:c,B=(Me=h+33554432|0)>>>0<33554432?c+1|0:c,we=h-(-67108864&Me)|0,a[p+112>>2]=we,b=Ce(de,de>>31,121666,0),v=$,h=Ce(Q,Q>>31,121666,0),c=$,or=b,gr=h,b=(33554431&(c=(L=h+16777216|0)>>>0<16777216?c+1|0:c))<<7|L>>>25,c=(c>>25)+v|0,c=(h=or+b|0)>>>0<b>>>0?c+1|0:c,b=(Q=h+33554432|0)>>>0<33554432?c+1|0:c,de=h-(-67108864&Q)|0,a[p+120>>2]=de,v=Ce(bt,bt>>31,121666,0),re=$,h=Ce(Wt,Wt>>31,121666,0),c=$,bt=h,h=(33554431&(c=(ee=h+16777216|0)>>>0<16777216?c+1|0:c))<<7|ee>>>25,c=(c>>25)+re|0,c=h>>>0>(v=h+v|0)>>>0?c+1|0:c,h=(Z=v+33554432|0)>>>0<33554432?c+1|0:c,re=v-(-67108864&Z)|0,a[p+128>>2]=re,v=(H=cr+((67108863&H)<<6|ke>>>26)|0)-(-33554432&ye)|0,a[p+108>>2]=v,H=(B=gr+((67108863&B)<<6|Me>>>26)|0)-(-33554432&L)|0,a[p+116>>2]=H,B=(c=bt+((67108863&b)<<6|Q>>>26)|0)-(-33554432&ee)|0,a[p+124>>2]=B,h=(h=jr+((67108863&h)<<6|Z>>>26)|0)-(-33554432&j)|0,a[p+132>>2]=h,Et(c=p+144|0,c),a[p+84>>2]=h+ur,a[p+80>>2]=re+it,a[p+76>>2]=B+dt,a[p+72>>2]=de+kr,a[p+68>>2]=H+Jt,a[p+64>>2]=we+Kt,a[p+60>>2]=v+Or,a[p+56>>2]=ut+yr,a[p+52>>2]=We+Sr,a[p+48>>2]=Ve+Gr,h=Kn-1|0,Ar(Mr,p+288|0,pt),Ar(pt,p,nr),Kn;);de=a[p+144>>2],Ve=a[p+240>>2],ee=a[p+148>>2],We=a[p+244>>2],Z=a[p+152>>2],ke=a[p+248>>2],re=a[p+156>>2],ut=a[p+252>>2],v=a[p+160>>2],ye=a[p+256>>2],H=a[p+164>>2],Me=a[p+260>>2],B=a[p+168>>2],we=a[p+264>>2],b=a[p+172>>2],L=a[p+268>>2],h=a[p+176>>2],Q=a[p+272>>2],j=0-nn|0,c=a[p+276>>2],a[p+276>>2]=j&(c^a[p+180>>2])^c,a[p+272>>2]=Q^j&(h^Q),a[p+268>>2]=L^j&(b^L),a[p+264>>2]=we^j&(B^we),a[p+260>>2]=Me^j&(H^Me),a[p+256>>2]=ye^j&(v^ye),a[p+252>>2]=ut^j&(re^ut),a[p+248>>2]=ke^j&(Z^ke),a[p+244>>2]=We^j&(ee^We),a[p+240>>2]=Ve^j&(de^Ve),Ve=a[p+192>>2],de=a[p+96>>2],We=a[p+196>>2],ee=a[p+100>>2],ke=a[p+200>>2],Z=a[p+104>>2],ut=a[p+204>>2],re=a[p+108>>2],ye=a[p+208>>2],v=a[p+112>>2],Me=a[p+212>>2],H=a[p+116>>2],we=a[p+216>>2],B=a[p+120>>2],L=a[p+220>>2],b=a[p+124>>2],Q=a[p+224>>2],h=a[p+128>>2],c=a[p+228>>2],a[p+228>>2]=j&(c^a[p+132>>2])^c,a[p+224>>2]=Q^j&(h^Q),a[p+220>>2]=L^j&(b^L),a[p+216>>2]=we^j&(B^we),a[p+212>>2]=Me^j&(H^Me),a[p+208>>2]=ye^j&(v^ye),a[p+204>>2]=ut^j&(re^ut),a[p+200>>2]=ke^j&(Z^ke),a[p+196>>2]=We^j&(ee^We),a[p+192>>2]=Ve^j&(de^Ve),lv(pt,pt),Ar(Ye,Ye,pt),yc(f,Ye),bn(zn,32),b=0}return Ie=p+368|0,0|b},function(f,c){var h,p,b,B,Q,v,L,H,j,re,Z,ee,de,we,ke,ye,Me,Ve,We,ut;return c|=0,Ie=h=Ie-304|0,k[0|(f|=0)]=S[0|c],k[f+1|0]=S[c+1|0],k[f+2|0]=S[c+2|0],k[f+3|0]=S[c+3|0],k[f+4|0]=S[c+4|0],k[f+5|0]=S[c+5|0],k[f+6|0]=S[c+6|0],k[f+7|0]=S[c+7|0],k[f+8|0]=S[c+8|0],k[f+9|0]=S[c+9|0],k[f+10|0]=S[c+10|0],k[f+11|0]=S[c+11|0],k[f+12|0]=S[c+12|0],k[f+13|0]=S[c+13|0],k[f+14|0]=S[c+14|0],k[f+15|0]=S[c+15|0],k[f+16|0]=S[c+16|0],k[f+17|0]=S[c+17|0],k[f+18|0]=S[c+18|0],k[f+19|0]=S[c+19|0],k[f+20|0]=S[c+20|0],k[f+21|0]=S[c+21|0],k[f+22|0]=S[c+22|0],k[f+23|0]=S[c+23|0],k[f+24|0]=S[c+24|0],k[f+25|0]=S[c+25|0],k[f+26|0]=S[c+26|0],k[f+27|0]=S[c+27|0],k[f+28|0]=S[c+28|0],k[f+29|0]=S[c+29|0],k[f+30|0]=S[c+30|0],c=S[c+31|0],k[0|f]=248&S[0|f],k[f+31|0]=63&c|64,qS(h+48|0,f),c=a[h+128>>2],p=a[h+88>>2],b=a[h+132>>2],B=a[h+92>>2],Q=a[h+136>>2],v=a[h+96>>2],L=a[h+140>>2],H=a[h+100>>2],j=a[h+144>>2],re=a[h+104>>2],Z=a[h+148>>2],ee=a[h+108>>2],de=a[h+152>>2],we=a[h+112>>2],ke=a[h+156>>2],ye=a[h+116>>2],Me=a[h+160>>2],Ve=a[h+120>>2],We=a[h+124>>2],ut=a[h+164>>2],a[h+292>>2]=We+ut,a[h+288>>2]=Me+Ve,a[h+284>>2]=ke+ye,a[h+280>>2]=de+we,a[h+276>>2]=Z+ee,a[h+272>>2]=j+re,a[h+268>>2]=L+H,a[h+264>>2]=Q+v,a[h+260>>2]=b+B,a[h+256>>2]=c+p,a[h+244>>2]=ut-We,a[h+240>>2]=Me-Ve,a[h+236>>2]=ke-ye,a[h+232>>2]=de-we,a[h+228>>2]=Z-ee,a[h+224>>2]=j-re,a[h+220>>2]=L-H,a[h+216>>2]=Q-v,a[h+212>>2]=b-B,a[h+208>>2]=c-p,lv(c=h+208|0,c),Ar(h,h+256|0,c),yc(f,h),Ie=h+304|0,0},function(f,c,h,p,b){f|=0,p|=0,b|=0;var B,Q=0,v=0,L=0,H=0;if(Ie=B=Ie-112|0,(c|=0)|(h|=0)){Q=S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24,a[B+24>>2]=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,a[B+28>>2]=Q,Q=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,a[B+16>>2]=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,a[B+20>>2]=Q,Q=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,a[B>>2]=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[B+4>>2]=Q,Q=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,a[B+8>>2]=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24,a[B+12>>2]=Q,b=S[0|p]|S[p+1|0]<<8|S[p+2|0]<<16|S[p+3|0]<<24,p=S[p+4|0]|S[p+5|0]<<8|S[p+6|0]<<16|S[p+7|0]<<24,a[B+104>>2]=0,a[B+108>>2]=0,a[B+96>>2]=b,a[B+100>>2]=p;e:{if(!h&c>>>0>=64|h){for(;SM(f,B+96|0,B,0),p=S[B+104|0]+1|0,k[B+104|0]=p,p=S[B+105|0]+(p>>>8|0)|0,k[B+105|0]=p,p=S[B+106|0]+(p>>>8|0)|0,k[B+106|0]=p,p=S[B+107|0]+(p>>>8|0)|0,k[B+107|0]=p,p=S[B+108|0]+(p>>>8|0)|0,k[B+108|0]=p,p=S[B+109|0]+(p>>>8|0)|0,k[B+109|0]=p,p=S[B+110|0]+(p>>>8|0)|0,k[B+110|0]=p,k[B+111|0]=S[B+111|0]+(p>>>8|0),f=f- -64|0,h=h-1|0,!(h=(c=c+-64|0)>>>0<4294967232?h+1|0:h)&c>>>0>63|h;);if(!(c|h))break e}if(p=0,SM(B+32|0,B+96|0,B,0),Q=3&c,b=0,!h&c>>>0>=4|h)for(h=60&c,c=0;v=L=B+32|0,k[f+b|0]=S[v+b|0],k[(H=1|b)+f|0]=S[v+H|0],k[(v=2|b)+f|0]=S[v+L|0],k[(v=3|b)+f|0]=S[v+(B+32|0)|0],b=b+4|0,(0|h)!=(0|(c=c+4|0)););if(Q)for(;k[f+b|0]=S[(B+32|0)+b|0],b=b+1|0,(0|Q)!=(0|(p=p+1|0)););}bn(B+32|0,64),bn(B,32)}return Ie=B+112|0,0},function(f,c,h,p,b,B,Q,v){f|=0,c|=0,b|=0,B|=0,Q|=0,v|=0;var L,H=0;if(Ie=L=Ie-112|0,(h|=0)|(p|=0)){H=S[v+28|0]|S[v+29|0]<<8|S[v+30|0]<<16|S[v+31|0]<<24,a[L+24>>2]=S[v+24|0]|S[v+25|0]<<8|S[v+26|0]<<16|S[v+27|0]<<24,a[L+28>>2]=H,H=S[v+20|0]|S[v+21|0]<<8|S[v+22|0]<<16|S[v+23|0]<<24,a[L+16>>2]=S[v+16|0]|S[v+17|0]<<8|S[v+18|0]<<16|S[v+19|0]<<24,a[L+20>>2]=H,H=S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24,a[L>>2]=S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24,a[L+4>>2]=H,H=S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24,a[L+8>>2]=S[v+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24,a[L+12>>2]=H,v=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,a[L+96>>2]=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[L+100>>2]=v,k[L+104|0]=B,k[L+111|0]=Q>>>24,k[L+110|0]=Q>>>16,k[L+109|0]=Q>>>8,k[L+108|0]=Q,k[L+107|0]=(16777215&Q)<<8|B>>>24,k[L+106|0]=(65535&Q)<<16|B>>>16,k[L+105|0]=(255&Q)<<24|B>>>8;e:{if(!p&h>>>0>=64|p){for(;;){for(v=0,SM(L+32|0,L+96|0,L,0);B=L+32|0,k[f+v|0]=S[B+v|0]^S[c+v|0],k[(b=1|v)+f|0]=S[b+B|0]^S[c+b|0],(0|(v=v+2|0))!=64;);if(b=S[L+104|0]+1|0,k[L+104|0]=b,b=S[L+105|0]+(b>>>8|0)|0,k[L+105|0]=b,b=S[L+106|0]+(b>>>8|0)|0,k[L+106|0]=b,b=S[L+107|0]+(b>>>8|0)|0,k[L+107|0]=b,b=S[L+108|0]+(b>>>8|0)|0,k[L+108|0]=b,b=S[L+109|0]+(b>>>8|0)|0,k[L+109|0]=b,b=S[L+110|0]+(b>>>8|0)|0,k[L+110|0]=b,k[L+111|0]=S[L+111|0]+(b>>>8|0),c=c- -64|0,f=f- -64|0,p=p-1|0,!(!(p=(h=h+-64|0)>>>0<4294967232?p+1|0:p)&h>>>0>63|p))break}if(!(h|p))break e}if(v=0,SM(L+32|0,L+96|0,L,0),B=1&h,(0|h)!=1|p)for(p=62&h,b=0;Q=L+32|0,k[f+v|0]=S[Q+v|0]^S[c+v|0],k[(h=1|v)+f|0]=S[h+Q|0]^S[c+h|0],v=v+2|0,(0|p)!=(0|(b=b+2|0)););B&&(k[f+v|0]=S[(L+32|0)+v|0]^S[c+v|0])}bn(L+32|0,64),bn(L,32)}return Ie=L+112|0,0},function(f,c,h,p,b,B,Q,v,L){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0;var H,j,re=0;if(j=re=Ie,Ie=H=re-192&-32,ZQ(L|=0,v|=0,H- -64|0),L=0,Q>>>0<=63)v=0;else for(re=64;Pa(B+L|0,H- -64|0),L=v=re,(re=v- -64|0)>>>0<=Q>>>0;);if((re=32|v)>>>0>Q>>>0)L=v;else for(;K5(B+v|0,H- -64|0),L=re,(re=(v=re)+32|0)>>>0<=Q>>>0;);if((v=31&Q)&&(yo((re=H+32|0)|v,0,32-v|0),Di(re,B+L|0,v),K5(re,H- -64|0)),L=32,v=0,b>>>0<32)B=0;else for(;Cu(f+v|0,p+v|0,H- -64|0),B=L,(L=(v=L)+32|0)>>>0<=b>>>0;);return(v=31&b)&&(yo((L=H+32|0)|v,0,32-v|0),Di(L,p+B|0,v),Cu(H,L,H- -64|0),Di(f+B|0,H,v)),Hu(c,h,Q,b,H- -64|0),Ie=j,0},function(f,c,h,p,b,B,Q,v,L){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0;var H,j,re=0;if(j=re=Ie,Ie=H=re-224&-32,ZQ(L|=0,v|=0,H+96|0),L=0,Q>>>0<=63)v=0;else for(re=64;Pa(B+L|0,H+96|0),L=v=re,(re=v- -64|0)>>>0<=Q>>>0;);if((re=32|v)>>>0>Q>>>0)L=v;else for(;K5(B+v|0,H+96|0),L=re,(re=(v=re)+32|0)>>>0<=Q>>>0;);(v=31&Q)&&(yo((re=H- -64|0)|v,0,32-v|0),Di(re,B+L|0,v),K5(re,H+96|0));e:{t:{r:{n:{i:{if(f){if(L=32,h>>>0<32)break i;for(B=0;Iu(f+B|0,c+B|0,H+96|0),B=v=L,(L=v+32|0)>>>0<=h>>>0;);}else{if(B=32,h>>>0<32)break r;for(L=0;Iu(H+32|0,c+L|0,H+96|0),L=v=B,(B=v+32|0)>>>0<=h>>>0;);}if(!(B=31&h))break e;if(f)break n;break t}if(v=0,B=h,!h)break e}Ed(f+v|0,c+v|0,B,H+96|0);break e}if(v=0,B=h,!h)break e}Ed(H+32|0,c+v|0,B,H+96|0)}Hu(H,b,Q,h,H+96|0),v=-1;e:{t:{if(c=b-16|0){if((0|c)==16)break t;break e}v=Te(H,p);break e}v=eO(H,p)}return!f|!v||yo(f,0,h),Ie=j,0|v},function(f,c,h,p,b,B,Q,v,L){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0;var H,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0;if(Ie=H=Ie-528|0,jo(L|=0,v|=0,H+400|0),L=0,Q>>>0<=31)v=0;else for(re=32;XQ(B+L|0,H+400|0),L=v=re,(re=v+32|0)>>>0<=Q>>>0;);if((L=16|v)>>>0<=Q>>>0)for(re=H+416|0,ee=H+432|0,de=H+448|0,Z=H+464|0,we=H+480|0;ke=S[0|(v=B+v|0)]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24,ye=S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24,Me=S[v+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24,Ve=S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24,v=a[we+12>>2],a[H+520>>2]=a[we+8>>2],a[H+524>>2]=v,v=a[we+4>>2],a[H+512>>2]=a[we>>2],a[H+516>>2]=v,v=a[Z+12>>2],a[H+376>>2]=a[Z+8>>2],a[H+380>>2]=v,v=a[Z+4>>2],a[H+368>>2]=a[Z>>2],a[H+372>>2]=v,v=a[we+12>>2],a[H+360>>2]=a[we+8>>2],a[H+364>>2]=v,v=a[we+4>>2],a[H+352>>2]=a[we>>2],a[H+356>>2]=v,un(v=H+496|0,H+368|0,H+352|0),j=a[H+508>>2],a[we+8>>2]=a[H+504>>2],a[we+12>>2]=j,j=a[H+500>>2],a[we>>2]=a[H+496>>2],a[we+4>>2]=j,j=a[de+12>>2],a[H+344>>2]=a[de+8>>2],a[H+348>>2]=j,j=a[de+4>>2],a[H+336>>2]=a[de>>2],a[H+340>>2]=j,j=a[Z+12>>2],a[H+328>>2]=a[Z+8>>2],a[H+332>>2]=j,j=a[Z+4>>2],a[H+320>>2]=a[Z>>2],a[H+324>>2]=j,un(v,H+336|0,H+320|0),j=a[H+508>>2],a[Z+8>>2]=a[H+504>>2],a[Z+12>>2]=j,j=a[H+500>>2],a[Z>>2]=a[H+496>>2],a[Z+4>>2]=j,j=a[ee+12>>2],a[H+312>>2]=a[ee+8>>2],a[H+316>>2]=j,j=a[ee+4>>2],a[H+304>>2]=a[ee>>2],a[H+308>>2]=j,j=a[de+12>>2],a[H+296>>2]=a[de+8>>2],a[H+300>>2]=j,j=a[de+4>>2],a[H+288>>2]=a[de>>2],a[H+292>>2]=j,un(v,H+304|0,H+288|0),j=a[H+508>>2],a[de+8>>2]=a[H+504>>2],a[de+12>>2]=j,j=a[H+500>>2],a[de>>2]=a[H+496>>2],a[de+4>>2]=j,j=a[re+12>>2],a[H+280>>2]=a[re+8>>2],a[H+284>>2]=j,j=a[re+4>>2],a[H+272>>2]=a[re>>2],a[H+276>>2]=j,j=a[ee+12>>2],a[H+264>>2]=a[ee+8>>2],a[H+268>>2]=j,j=a[ee+4>>2],a[H+256>>2]=a[ee>>2],a[H+260>>2]=j,un(v,H+272|0,H+256|0),j=a[H+508>>2],a[ee+8>>2]=a[H+504>>2],a[ee+12>>2]=j,j=a[H+500>>2],a[ee>>2]=a[H+496>>2],a[ee+4>>2]=j,j=a[H+412>>2],a[H+248>>2]=a[H+408>>2],a[H+252>>2]=j,j=a[H+404>>2],a[H+240>>2]=a[H+400>>2],a[H+244>>2]=j,j=a[re+12>>2],a[H+232>>2]=a[re+8>>2],a[H+236>>2]=j,j=a[re+4>>2],a[H+224>>2]=a[re>>2],a[H+228>>2]=j,un(v,H+240|0,H+224|0),j=a[H+508>>2],a[re+8>>2]=a[H+504>>2],a[re+12>>2]=j,j=a[H+500>>2],a[re>>2]=a[H+496>>2],a[re+4>>2]=j,j=a[H+524>>2],a[H+216>>2]=a[H+520>>2],a[H+220>>2]=j,j=a[H+412>>2],a[H+200>>2]=a[H+408>>2],a[H+204>>2]=j,j=a[H+516>>2],a[H+208>>2]=a[H+512>>2],a[H+212>>2]=j,j=a[H+404>>2],a[H+192>>2]=a[H+400>>2],a[H+196>>2]=j,un(v,H+208|0,H+192|0),a[H+412>>2]=Ve^a[H+508>>2],a[H+408>>2]=a[H+504>>2]^Me,a[H+404>>2]=a[H+500>>2]^ye,a[H+400>>2]=a[H+496>>2]^ke,(L=(v=L)+16|0)>>>0<=Q>>>0;);if((L=15&Q)&&(yo((re=H+384|0)|L,0,16-L|0),Di(re,B+v|0,L),L=a[H+384>>2],re=a[H+388>>2],ee=a[H+392>>2],de=a[H+396>>2],v=a[H+492>>2],B=a[H+488>>2],a[H+520>>2]=B,a[H+524>>2]=v,Z=a[H+476>>2],a[H+184>>2]=a[H+472>>2],a[H+188>>2]=Z,a[H+168>>2]=B,a[H+172>>2]=v,v=a[H+484>>2],B=a[H+480>>2],a[H+512>>2]=B,a[H+516>>2]=v,Z=a[H+468>>2],a[H+176>>2]=a[H+464>>2],a[H+180>>2]=Z,a[H+160>>2]=B,a[H+164>>2]=v,un(B=H+496|0,H+176|0,H+160|0),v=a[H+508>>2],a[H+488>>2]=a[H+504>>2],a[H+492>>2]=v,v=a[H+460>>2],a[H+152>>2]=a[H+456>>2],a[H+156>>2]=v,v=a[H+476>>2],a[H+136>>2]=a[H+472>>2],a[H+140>>2]=v,v=a[H+500>>2],a[H+480>>2]=a[H+496>>2],a[H+484>>2]=v,v=a[H+452>>2],a[H+144>>2]=a[H+448>>2],a[H+148>>2]=v,v=a[H+468>>2],a[H+128>>2]=a[H+464>>2],a[H+132>>2]=v,un(B,H+144|0,H+128|0),v=a[H+508>>2],a[H+472>>2]=a[H+504>>2],a[H+476>>2]=v,v=a[H+444>>2],a[H+120>>2]=a[H+440>>2],a[H+124>>2]=v,v=a[H+460>>2],a[H+104>>2]=a[H+456>>2],a[H+108>>2]=v,v=a[H+500>>2],a[H+464>>2]=a[H+496>>2],a[H+468>>2]=v,v=a[H+436>>2],a[H+112>>2]=a[H+432>>2],a[H+116>>2]=v,v=a[H+452>>2],a[H+96>>2]=a[H+448>>2],a[H+100>>2]=v,un(B,H+112|0,H+96|0),v=a[H+508>>2],a[H+456>>2]=a[H+504>>2],a[H+460>>2]=v,v=a[H+428>>2],a[H+88>>2]=a[H+424>>2],a[H+92>>2]=v,v=a[H+444>>2],a[H+72>>2]=a[H+440>>2],a[H+76>>2]=v,v=a[H+500>>2],a[H+448>>2]=a[H+496>>2],a[H+452>>2]=v,v=a[H+420>>2],a[H+80>>2]=a[H+416>>2],a[H+84>>2]=v,v=a[H+436>>2],a[H+64>>2]=a[H+432>>2],a[H+68>>2]=v,un(B,H+80|0,H- -64|0),v=a[H+508>>2],a[H+440>>2]=a[H+504>>2],a[H+444>>2]=v,v=a[H+412>>2],a[H+56>>2]=a[H+408>>2],a[H+60>>2]=v,v=a[H+428>>2],a[H+40>>2]=a[H+424>>2],a[H+44>>2]=v,v=a[H+500>>2],a[H+432>>2]=a[H+496>>2],a[H+436>>2]=v,v=a[H+404>>2],a[H+48>>2]=a[H+400>>2],a[H+52>>2]=v,v=a[H+420>>2],a[H+32>>2]=a[H+416>>2],a[H+36>>2]=v,un(B,H+48|0,H+32|0),v=a[H+508>>2],a[H+424>>2]=a[H+504>>2],a[H+428>>2]=v,v=a[H+524>>2],a[H+24>>2]=a[H+520>>2],a[H+28>>2]=v,v=a[H+412>>2],a[H+8>>2]=a[H+408>>2],a[H+12>>2]=v,v=a[H+500>>2],a[H+416>>2]=a[H+496>>2],a[H+420>>2]=v,v=a[H+516>>2],a[H+16>>2]=a[H+512>>2],a[H+20>>2]=v,v=a[H+404>>2],a[H>>2]=a[H+400>>2],a[H+4>>2]=v,un(B,H+16|0,H),a[H+412>>2]=de^a[H+508>>2],a[H+408>>2]=ee^a[H+504>>2],a[H+404>>2]=re^a[H+500>>2],a[H+400>>2]=L^a[H+496>>2]),re=16,v=0,b>>>0<16)L=0;else for(;jQ(f+v|0,p+v|0,H+400|0),L=re,(re=(v=re)+16|0)>>>0<=b>>>0;);return(B=15&b)&&(yo((v=H+384|0)|B,0,16-B|0),Di(v,p+L|0,B),jQ(p=H+512|0,v,H+400|0),Di(f+L|0,p,B)),wu(c,h,Q,b,H+400|0),Ie=H+528|0,0},function(f,c,h,p,b,B,Q,v,L){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0;var H,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0;if(Ie=H=Ie-544|0,jo(L|=0,v|=0,H+432|0),L=0,Q>>>0<=31)v=0;else for(re=32;XQ(B+L|0,H+432|0),L=v=re,(re=v+32|0)>>>0<=Q>>>0;);if((L=16|v)>>>0<=Q>>>0)for(re=H+448|0,ee=H+464|0,de=H+480|0,Z=H+496|0,we=H+512|0;ke=S[0|(v=B+v|0)]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24,ye=S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24,Me=S[v+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24,Ve=S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24,v=a[we+12>>2],a[H+392>>2]=a[we+8>>2],a[H+396>>2]=v,v=a[we+4>>2],a[H+384>>2]=a[we>>2],a[H+388>>2]=v,v=a[Z+12>>2],a[H+376>>2]=a[Z+8>>2],a[H+380>>2]=v,v=a[Z+4>>2],a[H+368>>2]=a[Z>>2],a[H+372>>2]=v,v=a[we+12>>2],a[H+360>>2]=a[we+8>>2],a[H+364>>2]=v,v=a[we+4>>2],a[H+352>>2]=a[we>>2],a[H+356>>2]=v,un(v=H+528|0,H+368|0,H+352|0),j=a[H+540>>2],a[we+8>>2]=a[H+536>>2],a[we+12>>2]=j,j=a[H+532>>2],a[we>>2]=a[H+528>>2],a[we+4>>2]=j,j=a[de+12>>2],a[H+344>>2]=a[de+8>>2],a[H+348>>2]=j,j=a[de+4>>2],a[H+336>>2]=a[de>>2],a[H+340>>2]=j,j=a[Z+12>>2],a[H+328>>2]=a[Z+8>>2],a[H+332>>2]=j,j=a[Z+4>>2],a[H+320>>2]=a[Z>>2],a[H+324>>2]=j,un(v,H+336|0,H+320|0),j=a[H+540>>2],a[Z+8>>2]=a[H+536>>2],a[Z+12>>2]=j,j=a[H+532>>2],a[Z>>2]=a[H+528>>2],a[Z+4>>2]=j,j=a[ee+12>>2],a[H+312>>2]=a[ee+8>>2],a[H+316>>2]=j,j=a[ee+4>>2],a[H+304>>2]=a[ee>>2],a[H+308>>2]=j,j=a[de+12>>2],a[H+296>>2]=a[de+8>>2],a[H+300>>2]=j,j=a[de+4>>2],a[H+288>>2]=a[de>>2],a[H+292>>2]=j,un(v,H+304|0,H+288|0),j=a[H+540>>2],a[de+8>>2]=a[H+536>>2],a[de+12>>2]=j,j=a[H+532>>2],a[de>>2]=a[H+528>>2],a[de+4>>2]=j,j=a[re+12>>2],a[H+280>>2]=a[re+8>>2],a[H+284>>2]=j,j=a[re+4>>2],a[H+272>>2]=a[re>>2],a[H+276>>2]=j,j=a[ee+12>>2],a[H+264>>2]=a[ee+8>>2],a[H+268>>2]=j,j=a[ee+4>>2],a[H+256>>2]=a[ee>>2],a[H+260>>2]=j,un(v,H+272|0,H+256|0),j=a[H+540>>2],a[ee+8>>2]=a[H+536>>2],a[ee+12>>2]=j,j=a[H+532>>2],a[ee>>2]=a[H+528>>2],a[ee+4>>2]=j,j=a[H+444>>2],a[H+248>>2]=a[H+440>>2],a[H+252>>2]=j,j=a[H+436>>2],a[H+240>>2]=a[H+432>>2],a[H+244>>2]=j,j=a[re+12>>2],a[H+232>>2]=a[re+8>>2],a[H+236>>2]=j,j=a[re+4>>2],a[H+224>>2]=a[re>>2],a[H+228>>2]=j,un(v,H+240|0,H+224|0),j=a[H+540>>2],a[re+8>>2]=a[H+536>>2],a[re+12>>2]=j,j=a[H+532>>2],a[re>>2]=a[H+528>>2],a[re+4>>2]=j,j=a[H+396>>2],a[H+216>>2]=a[H+392>>2],a[H+220>>2]=j,j=a[H+444>>2],a[H+200>>2]=a[H+440>>2],a[H+204>>2]=j,j=a[H+388>>2],a[H+208>>2]=a[H+384>>2],a[H+212>>2]=j,j=a[H+436>>2],a[H+192>>2]=a[H+432>>2],a[H+196>>2]=j,un(v,H+208|0,H+192|0),a[H+444>>2]=Ve^a[H+540>>2],a[H+440>>2]=a[H+536>>2]^Me,a[H+436>>2]=a[H+532>>2]^ye,a[H+432>>2]=a[H+528>>2]^ke,(L=(v=L)+16|0)>>>0<=Q>>>0;);(L=15&Q)&&(yo((re=H+416|0)|L,0,16-L|0),Di(re,B+v|0,L),L=a[H+416>>2],re=a[H+420>>2],ee=a[H+424>>2],de=a[H+428>>2],v=a[H+524>>2],B=a[H+520>>2],a[H+392>>2]=B,a[H+396>>2]=v,Z=a[H+508>>2],a[H+184>>2]=a[H+504>>2],a[H+188>>2]=Z,a[H+168>>2]=B,a[H+172>>2]=v,v=a[H+516>>2],B=a[H+512>>2],a[H+384>>2]=B,a[H+388>>2]=v,Z=a[H+500>>2],a[H+176>>2]=a[H+496>>2],a[H+180>>2]=Z,a[H+160>>2]=B,a[H+164>>2]=v,un(B=H+528|0,H+176|0,H+160|0),v=a[H+540>>2],a[H+520>>2]=a[H+536>>2],a[H+524>>2]=v,v=a[H+492>>2],a[H+152>>2]=a[H+488>>2],a[H+156>>2]=v,v=a[H+508>>2],a[H+136>>2]=a[H+504>>2],a[H+140>>2]=v,v=a[H+532>>2],a[H+512>>2]=a[H+528>>2],a[H+516>>2]=v,v=a[H+484>>2],a[H+144>>2]=a[H+480>>2],a[H+148>>2]=v,v=a[H+500>>2],a[H+128>>2]=a[H+496>>2],a[H+132>>2]=v,un(B,H+144|0,H+128|0),v=a[H+540>>2],a[H+504>>2]=a[H+536>>2],a[H+508>>2]=v,v=a[H+476>>2],a[H+120>>2]=a[H+472>>2],a[H+124>>2]=v,v=a[H+492>>2],a[H+104>>2]=a[H+488>>2],a[H+108>>2]=v,v=a[H+532>>2],a[H+496>>2]=a[H+528>>2],a[H+500>>2]=v,v=a[H+468>>2],a[H+112>>2]=a[H+464>>2],a[H+116>>2]=v,v=a[H+484>>2],a[H+96>>2]=a[H+480>>2],a[H+100>>2]=v,un(B,H+112|0,H+96|0),v=a[H+540>>2],a[H+488>>2]=a[H+536>>2],a[H+492>>2]=v,v=a[H+460>>2],a[H+88>>2]=a[H+456>>2],a[H+92>>2]=v,v=a[H+476>>2],a[H+72>>2]=a[H+472>>2],a[H+76>>2]=v,v=a[H+532>>2],a[H+480>>2]=a[H+528>>2],a[H+484>>2]=v,v=a[H+452>>2],a[H+80>>2]=a[H+448>>2],a[H+84>>2]=v,v=a[H+468>>2],a[H+64>>2]=a[H+464>>2],a[H+68>>2]=v,un(B,H+80|0,H- -64|0),v=a[H+540>>2],a[H+472>>2]=a[H+536>>2],a[H+476>>2]=v,v=a[H+444>>2],a[H+56>>2]=a[H+440>>2],a[H+60>>2]=v,v=a[H+460>>2],a[H+40>>2]=a[H+456>>2],a[H+44>>2]=v,v=a[H+532>>2],a[H+464>>2]=a[H+528>>2],a[H+468>>2]=v,v=a[H+436>>2],a[H+48>>2]=a[H+432>>2],a[H+52>>2]=v,v=a[H+452>>2],a[H+32>>2]=a[H+448>>2],a[H+36>>2]=v,un(B,H+48|0,H+32|0),v=a[H+540>>2],a[H+456>>2]=a[H+536>>2],a[H+460>>2]=v,v=a[H+396>>2],a[H+24>>2]=a[H+392>>2],a[H+28>>2]=v,v=a[H+444>>2],a[H+8>>2]=a[H+440>>2],a[H+12>>2]=v,v=a[H+532>>2],a[H+448>>2]=a[H+528>>2],a[H+452>>2]=v,v=a[H+388>>2],a[H+16>>2]=a[H+384>>2],a[H+20>>2]=v,v=a[H+436>>2],a[H>>2]=a[H+432>>2],a[H+4>>2]=v,un(B,H+16|0,H),a[H+444>>2]=de^a[H+540>>2],a[H+440>>2]=ee^a[H+536>>2],a[H+436>>2]=re^a[H+532>>2],a[H+432>>2]=L^a[H+528>>2]);e:{t:{r:{n:{i:{if(f){if(re=16,h>>>0<16)break i;for(L=0;eH(f+L|0,c+L|0,H+432|0),L=v=re,(re=v+16|0)>>>0<=h>>>0;);}else{if(L=16,h>>>0<16)break r;for(re=0;eH(H+528|0,c+re|0,H+432|0),re=v=L,(L=v+16|0)>>>0<=h>>>0;);}if(!(L=15&h))break e;if(f)break n;break t}if(v=0,!(L=h))break e}tH(f+v|0,c+v|0,L,H+432|0);break e}if(v=0,!(L=h))break e}tH(H+528|0,c+v|0,L,H+432|0)}wu(H+384|0,b,Q,h,H+432|0),v=-1;e:{t:{if(c=b-16|0){if((0|c)==16)break t;break e}v=Te(H+384|0,p);break e}v=eO(H+384|0,p)}return!f|!v||yo(f,0,h),Ie=H+544|0,0|v},function(f,c,h,p,b){var B;return f|=0,p|=0,b|=0,Ie=B=Ie+-64|0,(c|=0)|(h|=0)&&(a[B+8>>2]=2036477234,a[B+12>>2]=1797285236,a[B>>2]=1634760805,a[B+4>>2]=857760878,a[B+16>>2]=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[B+20>>2]=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,a[B+24>>2]=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24,a[B+28>>2]=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,a[B+32>>2]=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,a[B+36>>2]=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,a[B+40>>2]=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,b=S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24,a[B+48>>2]=0,a[B+52>>2]=0,a[B+44>>2]=b,a[B+56>>2]=S[0|p]|S[p+1|0]<<8|S[p+2|0]<<16|S[p+3|0]<<24,a[B+60>>2]=S[p+4|0]|S[p+5|0]<<8|S[p+6|0]<<16|S[p+7|0]<<24,z5(B,f=yo(f,0,c),f,c,h),bn(B,64)),Ie=B- -64|0,0},function(f,c,h,p,b){var B;return f|=0,p|=0,b|=0,Ie=B=Ie+-64|0,(c|=0)|(h|=0)&&(a[B+8>>2]=2036477234,a[B+12>>2]=1797285236,a[B>>2]=1634760805,a[B+4>>2]=857760878,a[B+16>>2]=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[B+20>>2]=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,a[B+24>>2]=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24,a[B+28>>2]=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24,a[B+32>>2]=S[b+16|0]|S[b+17|0]<<8|S[b+18|0]<<16|S[b+19|0]<<24,a[B+36>>2]=S[b+20|0]|S[b+21|0]<<8|S[b+22|0]<<16|S[b+23|0]<<24,a[B+40>>2]=S[b+24|0]|S[b+25|0]<<8|S[b+26|0]<<16|S[b+27|0]<<24,b=S[b+28|0]|S[b+29|0]<<8|S[b+30|0]<<16|S[b+31|0]<<24,a[B+48>>2]=0,a[B+44>>2]=b,a[B+52>>2]=S[0|p]|S[p+1|0]<<8|S[p+2|0]<<16|S[p+3|0]<<24,a[B+56>>2]=S[p+4|0]|S[p+5|0]<<8|S[p+6|0]<<16|S[p+7|0]<<24,a[B+60>>2]=S[p+8|0]|S[p+9|0]<<8|S[p+10|0]<<16|S[p+11|0]<<24,z5(B,f=yo(f,0,c),f,c,h),bn(B,64)),Ie=B- -64|0,0},function(f,c,h,p,b,B,Q,v){var L;return f|=0,c|=0,b|=0,B|=0,Q|=0,v|=0,Ie=L=Ie+-64|0,(h|=0)|(p|=0)&&(a[L+8>>2]=2036477234,a[L+12>>2]=1797285236,a[L>>2]=1634760805,a[L+4>>2]=857760878,a[L+16>>2]=S[0|v]|S[v+1|0]<<8|S[v+2|0]<<16|S[v+3|0]<<24,a[L+20>>2]=S[v+4|0]|S[v+5|0]<<8|S[v+6|0]<<16|S[v+7|0]<<24,a[L+24>>2]=S[v+8|0]|S[v+9|0]<<8|S[v+10|0]<<16|S[v+11|0]<<24,a[L+28>>2]=S[v+12|0]|S[v+13|0]<<8|S[v+14|0]<<16|S[v+15|0]<<24,a[L+32>>2]=S[v+16|0]|S[v+17|0]<<8|S[v+18|0]<<16|S[v+19|0]<<24,a[L+36>>2]=S[v+20|0]|S[v+21|0]<<8|S[v+22|0]<<16|S[v+23|0]<<24,a[L+40>>2]=S[v+24|0]|S[v+25|0]<<8|S[v+26|0]<<16|S[v+27|0]<<24,a[L+44>>2]=S[v+28|0]|S[v+29|0]<<8|S[v+30|0]<<16|S[v+31|0]<<24,a[L+48>>2]=B,a[L+52>>2]=Q,a[L+56>>2]=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[L+60>>2]=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,z5(L,c,f,h,p),bn(L,64)),Ie=L- -64|0,0},function(f,c,h,p,b,B,Q){var v;return f|=0,c|=0,b|=0,B|=0,Q|=0,Ie=v=Ie+-64|0,(h|=0)|(p|=0)&&(a[v+8>>2]=2036477234,a[v+12>>2]=1797285236,a[v>>2]=1634760805,a[v+4>>2]=857760878,a[v+16>>2]=S[0|Q]|S[Q+1|0]<<8|S[Q+2|0]<<16|S[Q+3|0]<<24,a[v+20>>2]=S[Q+4|0]|S[Q+5|0]<<8|S[Q+6|0]<<16|S[Q+7|0]<<24,a[v+24>>2]=S[Q+8|0]|S[Q+9|0]<<8|S[Q+10|0]<<16|S[Q+11|0]<<24,a[v+28>>2]=S[Q+12|0]|S[Q+13|0]<<8|S[Q+14|0]<<16|S[Q+15|0]<<24,a[v+32>>2]=S[Q+16|0]|S[Q+17|0]<<8|S[Q+18|0]<<16|S[Q+19|0]<<24,a[v+36>>2]=S[Q+20|0]|S[Q+21|0]<<8|S[Q+22|0]<<16|S[Q+23|0]<<24,a[v+40>>2]=S[Q+24|0]|S[Q+25|0]<<8|S[Q+26|0]<<16|S[Q+27|0]<<24,Q=S[Q+28|0]|S[Q+29|0]<<8|S[Q+30|0]<<16|S[Q+31|0]<<24,a[v+48>>2]=B,a[v+44>>2]=Q,a[v+52>>2]=S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24,a[v+56>>2]=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24,a[v+60>>2]=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24,z5(v,c,f,h,p),bn(v,64)),Ie=v- -64|0,0}],TM.grow=function(f){var c=this.length;return this.length=this.length+f,c},TM.set=function(f,c){this[f]=c},TM.get=function(f){return this[f]},TM);function LBe(){return Pr.byteLength/65536|0}return{e:Object.create(Object.prototype,{grow:{value:function(f){f|=0;var c=0|LBe(),h=c+f|0;if(c<h&&h<65536){var p=new ArrayBuffer(Lr(h,65536));new Int8Array(p).set(k),k=new Int8Array(p),new Int16Array(p),a=new Int32Array(p),S=new Uint8Array(p),new Uint16Array(p),sn=new Uint32Array(p),new Float32Array(p),new Float64Array(p),Pr=p,Je=S}return c}},buffer:{get:function(){return Pr}}}),f:function(){},g:ta,h:pp,i:ta,j:Ai,k:MBe,l:CBe,m:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|TTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,H|=0,j|=0,36768)},n:function(f,c,h,p,b,B,Q,v,L,H,j,re){return 0|HTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,j|=0,re|=0,36768)},o:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|CTe(f|=0,c|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,H|=0,j|=0,36772)},p:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|JTe(f|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,H|=0,j|=0,36772)},q:Ai,r:pp,s:Ai,t:Ai,u:MBe,v:Wu,w:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|TTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,H|=0,j|=0,36776)},x:function(f,c,h,p,b,B,Q,v,L,H,j,re){return 0|HTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,j|=0,re|=0,36776)},y:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|CTe(f|=0,c|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,H|=0,j|=0,36780)},z:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|JTe(f|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,H|=0,j|=0,36780)},A:pp,B:function(f,c,h,p,b,B,Q,v,L,H,j,re){return 0|vTe(f|=0,c|=0,h|=0,p|=0,(f=0)|(b|=0),B|=0,Q|=0,f|(v|=0),L|=0,j|=0,re|=0)},C:function(f,c,h,p,b,B,Q,v,L,H,j){return f|=0,c|=0,p|=0,Q|=0,L|=0,Q|=L=0,!(b|=0)&(p|=L)>>>0<4294967280?(vTe(f,f+p|0,0,h|=0,p,b,B|=0,Q,v|=0,H|=0,j|=0),c&&(b=(f=p+16|0)>>>0<16?b+1|0:b,a[c>>2]=f,a[c+4>>2]=b)):(Bs(),Rr()),0},D:function(f,c,h,p,b,B,Q,v,L,H,j,re){return 0|ETe(f|=0,c|=0,h|=0,p|=0,(f=0)|(b|=0),B|=0,Q|=0,f|(v|=0),L|=0,j|=0,re|=0)},E:function(f,c,h,p,b,B,Q,v,L,H,j){return f|=0,c|=0,p|=0,Q|=0,L|=0,Q|=L=0,!(b|=0)&(p|=L)>>>0<4294967280?(ETe(f,f+p|0,0,h|=0,p,b,B|=0,Q,v|=0,H|=0,j|=0),c&&(b=(f=p+16|0)>>>0<16?b+1|0:b,a[c>>2]=f,a[c+4>>2]=b)):(Bs(),Rr()),0},F:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|bTe(f|=0,h|=0,(f=0)|(p|=0),b|=0,B|=0,Q|=0,f|(v|=0),L|=0,H|=0,j|=0)},G:function(f,c,h,p,b,B,Q,v,L,H,j){return c|=0,h|=0,p|=0,b|=0,v|=0,v|=0,h=-1,!(B|=0)&(b|=0)>>>0>=16|B&&(h=bTe(f|=0,p,b-16|0,B-(b>>>0<16)|0,(p+b|0)-16|0,Q|=0,v,L|=0,H|=0,j|=0)),c&&(a[c>>2]=h?0:b-16|0,a[c+4>>2]=h?0:B-(b>>>0<16)|0),0|h},H:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|_Te(f|=0,h|=0,(f=0)|(p|=0),b|=0,B|=0,Q|=0,f|(v|=0),L|=0,H|=0,j|=0)},I:function(f,c,h,p,b,B,Q,v,L,H,j){return c|=0,h|=0,p|=0,b|=0,v|=0,v|=0,h=-1,!(B|=0)&(b|=0)>>>0>=16|B&&(h=_Te(f|=0,p,b-16|0,B-(b>>>0<16)|0,(p+b|0)-16|0,Q|=0,v,L|=0,H|=0,j|=0)),c&&(a[c>>2]=h?0:b-16|0,a[c+4>>2]=h?0:B-(b>>>0<16)|0),0|h},J:Ai,K:kBe,L:pp,M:ta,N:hv,O:Wu,P:Ai,Q:Dy,R:pp,S:ta,T:hv,U:Wu,V:function(f,c,h,p,b,B,Q,v,L,H,j,re){return 0|on(f|=0,c|=0,h|=0,p|=0,(f=0)|(b|=0),B|=0,Q|=0,f|(v|=0),L|=0,j|=0,re|=0)},W:function(f,c,h,p,b,B,Q,v,L,H,j){return f|=0,c|=0,p|=0,Q|=0,L|=0,Q|=L=0,!(b|=0)&(p|=L)>>>0<4294967280?(on(f,f+p|0,0,h|=0,p,b,B|=0,Q,v|=0,H|=0,j|=0),c&&(b=(f=p+16|0)>>>0<16?b+1|0:b,a[c>>2]=f,a[c+4>>2]=b)):(Bs(),Rr()),0},X:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|wr(f|=0,h|=0,(f=0)|(p|=0),b|=0,B|=0,Q|=0,f|(v|=0),L|=0,H|=0,j|=0)},Y:function(f,c,h,p,b,B,Q,v,L,H,j){return c|=0,h|=0,p|=0,b|=0,v|=0,v|=0,h=-1,!(B|=0)&(b|=0)>>>0>=16|B&&(h=wr(f|=0,p,b-16|0,B-(b>>>0<16)|0,(p+b|0)-16|0,Q|=0,v,L|=0,H|=0,j|=0)),c&&(a[c>>2]=h?0:b-16|0,a[c+4>>2]=h?0:B-(b>>>0<16)|0),0|h},Z:Ai,_:tm,$:pp,aa:ta,ba:hv,ca:Wu,da:Ai,ea:Ai,fa:function(){return 1462},ga:Oe,ha:yTe,ia:Wu,ja:Ai,ka:Ai,la:NM,ma:Wu,na:My,oa:function(f,c,h,p){return 0|em(f|=0,c|=0,h|=0,p|=0)},pa:j5,qa:function(f,c,h,p,b){var B;return f|=0,c|=0,h|=0,p|=0,Ie=B=Ie-240|0,My(B,b|=0,32),w1(B,c,h,p),W2(B,c=B+208|0),w1(h=B+104|0,c,32,0),W2(h,f),bn(c,32),Ie=B+240|0,0},ra:function(f,c,h,p,b){var B,Q;return f|=0,c|=0,h|=0,p|=0,Ie=B=Ie-272|0,My(Q=B+32|0,b|=0,32),w1(Q,c,h,p),W2(Q,c=B+240|0),w1(h=B+136|0,c,32,0),W2(h,B),bn(c,32),c=eO(f,B),h=Ul(B,f,32),Ie=B+272|0,((0|f)==(0|B)?-1:c)|h},sa:ed,ta:Ai,ua:Xre,va:Wu,wa:Z2,xa:lBe,ya:JS,za:function(f,c,h,p,b){var B;return f|=0,c|=0,h|=0,p|=0,Ie=B=Ie-480|0,Z2(B,b|=0,32),L0(B,c,h,p),Ah(B,c=B+416|0),L0(h=B+208|0,c,64,0),Ah(h,f),bn(c,64),Ie=B+480|0,0},Aa:function(f,c,h,p,b){var B,Q;return f|=0,c|=0,h|=0,p|=0,Ie=B=Ie-544|0,Z2(Q=B- -64|0,b|=0,32),L0(Q,c,h,p),Ah(Q,c=B+480|0),L0(h=B+272|0,c,64,0),Ah(h,B),bn(c,64),c=pBe(f,B),h=Ul(B,f,64),Ie=B+544|0,((0|f)==(0|B)?-1:c)|h},Ba:Ai,Ca:Ai,Da:Xre,Ea:Wu,Fa:hBe,Ga:lBe,Ha:function(f,c){c|=0;var h,p=0;return Ie=h=Ie+-64|0,JS(f|=0,h),p=a[h+28>>2],f=a[h+24>>2],k[c+24|0]=f,k[c+25|0]=f>>>8,k[c+26|0]=f>>>16,k[c+27|0]=f>>>24,k[c+28|0]=p,k[c+29|0]=p>>>8,k[c+30|0]=p>>>16,k[c+31|0]=p>>>24,p=a[h+20>>2],f=a[h+16>>2],k[c+16|0]=f,k[c+17|0]=f>>>8,k[c+18|0]=f>>>16,k[c+19|0]=f>>>24,k[c+20|0]=p,k[c+21|0]=p>>>8,k[c+22|0]=p>>>16,k[c+23|0]=p>>>24,p=a[h+12>>2],f=a[h+8>>2],k[c+8|0]=f,k[c+9|0]=f>>>8,k[c+10|0]=f>>>16,k[c+11|0]=f>>>24,k[c+12|0]=p,k[c+13|0]=p>>>8,k[c+14|0]=p>>>16,k[c+15|0]=p>>>24,p=a[h+4>>2],f=a[h>>2],k[0|c]=f,k[c+1|0]=f>>>8,k[c+2|0]=f>>>16,k[c+3|0]=f>>>24,k[c+4|0]=p,k[c+5|0]=p>>>8,k[c+6|0]=p>>>16,k[c+7|0]=p>>>24,Ie=h- -64|0,0},Ia:Oe,Ja:yTe,Ka:Ai,La:Ai,Ma:Ai,Na:Ai,Oa:tm,Pa:Ai,Qa:ta,Ra:ta,Sa:hv,Ta:function(){return 1476},Ua:function(f,c,h){return 0|He(f|=0,c|=0,h|=0)},Va:_Be,Wa:OM,Xa:TH,Ya:BH,Za:kTe,_a:PTe,$a:ZTe,ab:function(f,c,h,p,b,B,Q,v){f|=0,c|=0,h|=0,B|=0;var L,H=0;return H=p|=0,p=b|=0,L=0|H,Ie=H=Ie-32|0,b=-1,OM(H,Q|=0,v|=0)||(b=Pe(f,c,h,L,p,B,H),bn(H,32)),Ie=H+32|0,0|b},bb:function(f,c,h,p,b,B){return f|=0,c|=0,b|=0,B|=0,!(p|=0)&(h|=0)>>>0>=4294967280|p&&(Bs(),Rr()),0|Pe(f+16|0,f,c,h,p,b,B)},cb:function(f,c,h,p,b,B,Q){return 0|GTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)},db:jTe,eb:function(f,c,h,p,b,B,Q,v){f|=0,c|=0,h|=0,B|=0;var L,H=0;return H=p|=0,p=b|=0,L=0|H,Ie=H=Ie-32|0,b=-1,OM(H,Q|=0,v|=0)||(b=vt(f,c,h,L,p,B,H),bn(H,32)),Ie=H+32|0,0|b},fb:qTe,gb:function(f,c,h,p,b,B,Q){return 0|FTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)},hb:function(f,c,h,p,b){f|=0,c|=0,b|=0;var B,Q,v,L,H=0,j=0;return H=h|=0,h=p|=0,L=0|H,H=p=Ie,Ie=B=p-512&-64,p=-1,_Be(Q=B- -64|0,v=B+32|0)||(T8(p=B+128|0,0,0,24),ph(p,Q,32,0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,Mb:ta,Nb:Ai,Ob:ta,Pb:IM,Qb:ed,Rb:ta,Sb:Ai,Tb:ta,Ub:CM,Vb:ed,Wb:ta,Xb:Ai,Yb:ta,Zb:ta,_b:ed,$b:Ai,ac:ta,bc:ed,cc:Ai,dc:NBe,ec:xBe,fc:function(f,c,h,p,b,B,Q){return 0|zre(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)},gc:T8,hc:function(f,c,h,p){return 0|ph(f|=0,c|=0,h|=0,p|=0)},ic:B8,jc:Wu,kc:ta,lc:ed,mc:Ai,nc:ta,oc:ed,pc:Ai,qc:ta,rc:ta,sc:xBe,tc:Wu,uc:zre,vc:function(f,c,h,p,b,B,Q,v,L){return 0|oH(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0)},wc:C8,xc:function(f,c,h,p,b,B){f|=0,c|=0,b|=0,B|=0;var Q=0,v=0,L=0,H=0,j=0,re=0,Z=0;if(Q=-1,!((p|=0)-65>>>0<4294967232|(h|=0)>>>0>64)){e:{if(!h||!c){if(((H=255&p)-65&255)>>>0>191){b?(v=725511199^(S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24),h=-1694144372^(S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24),c=-1377402159^(S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),b=1359893119^(S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24)):(v=725511199,h=-1694144372,c=-1377402159,b=1359893119),B?(L=327033209^(S[B+8|0]|S[B+9|0]<<8|S[B+10|0]<<16|S[B+11|0]<<24),p=1541459225^(S[B+12|0]|S[B+13|0]<<8|S[B+14|0]<<16|S[B+15|0]<<24),Q=-79577749^(S[0|B]|S[B+1|0]<<8|S[B+2|0]<<16|S[B+3|0]<<24),B=528734635^(S[B+4|0]|S[B+5|0]<<8|S[B+6|0]<<16|S[B+7|0]<<24)):(L=327033209,p=1541459225,Q=-79577749,B=528734635),yo(f- -64|0,0,293),k[f+56|0]=L,k[f+57|0]=L>>>8,k[f+58|0]=L>>>16,k[f+59|0]=L>>>24,k[f+60|0]=p,k[f+61|0]=p>>>8,k[f+62|0]=p>>>16,k[f+63|0]=p>>>24,k[f+48|0]=Q,k[f+49|0]=Q>>>8,k[f+50|0]=Q>>>16,k[f+51|0]=Q>>>24,k[f+52|0]=B,k[f+53|0]=B>>>8,k[f+54|0]=B>>>16,k[f+55|0]=B>>>24,k[f+40|0]=v,k[f+41|0]=v>>>8,k[f+42|0]=v>>>16,k[f+43|0]=v>>>24,k[f+44|0]=h,k[f+45|0]=h>>>8,k[f+46|0]=h>>>16,k[f+47|0]=h>>>24,k[f+32|0]=c,k[f+33|0]=c>>>8,k[f+34|0]=c>>>16,k[f+35|0]=c>>>24,k[f+36|0]=b,k[f+37|0]=b>>>8,k[f+38|0]=b>>>16,k[f+39|0]=b>>>24,k[f+24|0]=241,k[f+25|0]=54,k[f+26|0]=29,k[f+27|0]=95,k[f+28|0]=58,k[f+29|0]=245,k[f+30|0]=79,k[f+31|0]=165,k[f+16|0]=43,k[f+17|0]=248,k[f+18|0]=148,k[f+19|0]=254,k[f+20|0]=114,k[f+21|0]=243,k[f+22|0]=110,k[f+23|0]=60,k[f+8|0]=59,k[f+9|0]=167,k[f+10|0]=202,k[f+11|0]=132,k[f+12|0]=133,k[f+13|0]=174,k[f+14|0]=103,k[f+15|0]=187,c=-222443256^H,k[0|f]=c,k[f+1|0]=c>>>8,k[f+2|0]=c>>>16,k[f+3|0]=c>>>24,k[f+4|0]=103,k[f+5|0]=230,k[f+6|0]=9,k[f+7|0]=106;break e}Bs(),Rr()}Ie=re=Ie-128|0,!c|((Z=255&p)-65&255)>>>0<=191|((H=255&h)-65&255)>>>0<=191?(Bs(),Rr()):(b?(v=725511199^(S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24),h=-1694144372^(S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24),Q=-1377402159^(S[0|b]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),b=1359893119^(S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24)):(v=725511199,h=-1694144372,Q=-1377402159,b=1359893119),B?(L=327033209^(S[B+8|0]|S[B+9|0]<<8|S[B+10|0]<<16|S[B+11|0]<<24),p=1541459225^(S[B+12|0]|S[B+13|0]<<8|S[B+14|0]<<16|S[B+15|0]<<24),j=-79577749^(S[0|B]|S[B+1|0]<<8|S[B+2|0]<<16|S[B+3|0]<<24),B=528734635^(S[B+4|0]|S[B+5|0]<<8|S[B+6|0]<<16|S[B+7|0]<<24)):(L=327033209,p=1541459225,j=-79577749,B=528734635),yo(f- -64|0,0,293),k[f+56|0]=L,k[f+57|0]=L>>>8,k[f+58|0]=L>>>16,k[f+59|0]=L>>>24,k[f+60|0]=p,k[f+61|0]=p>>>8,k[f+62|0]=p>>>16,k[f+63|0]=p>>>24,k[f+48|0]=j,k[f+49|0]=j>>>8,k[f+50|0]=j>>>16,k[f+51|0]=j>>>24,k[f+52|0]=B,k[f+53|0]=B>>>8,k[f+54|0]=B>>>16,k[f+55|0]=B>>>24,k[f+40|0]=v,k[f+41|0]=v>>>8,k[f+42|0]=v>>>16,k[f+43|0]=v>>>24,k[f+44|0]=h,k[f+45|0]=h>>>8,k[f+46|0]=h>>>16,k[f+47|0]=h>>>24,k[f+32|0]=Q,k[f+33|0]=Q>>>8,k[f+34|0]=Q>>>16,k[f+35|0]=Q>>>24,k[f+36|0]=b,k[f+37|0]=b>>>8,k[f+38|0]=b>>>16,k[f+39|0]=b>>>24,k[f+24|0]=241,k[f+25|0]=54,k[f+26|0]=29,k[f+27|0]=95,k[f+28|0]=58,k[f+29|0]=245,k[f+30|0]=79,k[f+31|0]=165,k[f+16|0]=43,k[f+17|0]=248,k[f+18|0]=148,k[f+19|0]=254,k[f+20|0]=114,k[f+21|0]=243,k[f+22|0]=110,k[f+23|0]=60,k[f+8|0]=59,k[f+9|0]=167,k[f+10|0]=202,k[f+11|0]=132,k[f+12|0]=133,k[f+13|0]=174,k[f+14|0]=103,k[f+15|0]=187,h=-222443256^(H<<8|Z),k[0|f]=h,k[f+1|0]=h>>>8,k[f+2|0]=h>>>16,k[f+3|0]=h>>>24,h=H>>>24^1779033703,k[f+4|0]=h,k[f+5|0]=h>>>8,k[f+6|0]=h>>>16,k[f+7|0]=h>>>24,h=Di(yo(re,0,128),c,H),Di(f+96|0,h,128),c=128+(S[f+352|0]|S[f+353|0]<<8|S[f+354|0]<<16|S[f+355|0]<<24)|0,k[f+352|0]=c,k[f+353|0]=c>>>8,k[f+354|0]=c>>>16,k[f+355|0]=c>>>24,bn(h,128),Ie=h+128|0)}Q=0}return 0|Q},yc:ph,zc:vM,Ac:ed,Bc:dBe,Cc:function(){return 1531},Dc:Ai,Ec:function(){return 104},Fc:CH,Gc:function(f,c,h,p){return 0|w1(f|=0,c|=0,h|=0,p|=0)},Hc:W2,Ic:function(f,c,h,p){f|=0,c|=0,h|=0,p|=0;var b,B=0;return Ie=b=Ie-112|0,B=a[8811],a[b+16>>2]=a[8810],a[b+20>>2]=B,B=a[8813],a[b+24>>2]=a[8812],a[b+28>>2]=B,B=a[8815],a[b+32>>2]=a[8814],a[b+36>>2]=B,a[b+40>>2]=0,a[b+44>>2]=0,B=a[8809],a[b+8>>2]=a[8808],a[b+12>>2]=B,w1(B=b+8|0,c,h,p),W2(B,f),Ie=b+112|0,0},Jc:ed,Kc:NM,Lc:qi,Mc:Gre,Nc:Ah,Oc:dBe,Pc:ta,Qc:ed,Rc:Dy,Sc:Ai,Tc:mTe,Uc:NBe,Vc:ta,Wc:ed,Xc:Dy,Yc:Ai,Zc:mTe,_c:Wu,$c:function(f,c,h){return 0|My(f|=0,c|=0,h|=0)},ad:function(f,c,h){return 0|em(f|=0,c|=0,h|=0,0)},bd:function(f,c){return j5(f|=0,c|=0),bn(f,4),0},cd:function(f,c,h,p,b){var B;return f|=0,p|=0,b|=0,Ie=B=Ie-208|0,My(B,c|=0,h|=0),em(B,p,b,0),j5(B,f),bn(B,4),Ie=B+208|0,0},dd:Wu,ed:function(f,c,h,p,b){f|=0,c|=0,h|=0,p|=0,b|=0;var B,Q=0,v=0,L=0,H=0;if(Ie=B=Ie-256|0,k[B+15|0]=1,c>>>0<=8160){if(c>>>0>=32)for(H=f-32|0,Q=32;L=Q,My(Q=B+48|0,b,32),v&&em(Q,v+H|0,32,0),em(Q=B+48|0,h,p,0),em(Q,B+15|0,1,0),j5(Q,f+v|0),k[B+15|0]=S[B+15|0]+1,(Q=(v=L)+32|0)>>>0<=c>>>0;);(v=31&c)&&(My(c=B+48|0,b,32),L&&em(c,(f+L|0)-32|0,32,0),em(c=B+48|0,h,p,0),em(c,B+15|0,1,0),j5(h=c,c=B+16|0),Di(f+L|0,c,v),bn(c,32)),bn(B+48|0,208),f=0}else a[9404]=28,f=-1;return Ie=B+256|0,0|f},fd:Ai,gd:pp,hd:function(){return 8160},id:NM,jd:hBe,kd:function(f,c,h){return 0|j2(f|=0,c|=0,h|=0,0)},ld:function(f,c){return JS(f|=0,c|=0),bn(f,4),0},md:function(f,c,h,p,b){var B;return f|=0,p|=0,b|=0,Ie=B=Ie-416|0,Z2(B,c|=0,h|=0),j2(B,p,b,0),JS(B,f),bn(B,4),Ie=B+416|0,0},nd:function(f){wf(f|=0,64)},od:function(f,c,h,p,b){f|=0,c|=0,h|=0,p|=0,b|=0;var B,Q=0,v=0,L=0,H=0;if(Ie=B=Ie-496|0,k[B+15|0]=1,c>>>0<=16320){if(c>>>0>=64)for(H=f+-64|0,Q=64;L=Q,Z2(Q=B+80|0,b,64),v&&j2(Q,v+H|0,64,0),j2(Q=B+80|0,h,p,0),j2(Q,B+15|0,1,0),JS(Q,f+v|0),k[B+15|0]=S[B+15|0]+1,(Q=(v=L)- -64|0)>>>0<=c>>>0;);(v=63&c)&&(Z2(c=B+80|0,b,64),L&&j2(c,(f+L|0)-64|0,64,0),j2(c=B+80|0,h,p,0),j2(c,B+15|0,1,0),JS(h=c,c=B+16|0),Di(f+L|0,c,v),bn(c,64)),bn(B+80|0,416),f=0}else a[9404]=28,f=-1;return Ie=B+496|0,0|f},pd:ed,qd:pp,rd:function(){return 16320},sd:Xre,td:function(f,c,h){return f|=0,zre(c|=0,32,h|=0,32,0,0,0),0|Kre(f,c)},ud:function(f,c){return f|=0,wf(c|=0,32),0|Kre(f,c)},vd:function(f,c,h,p,b){c|=0,h|=0,p|=0,b|=0;var B,Q,v=0,L=0,H=0;if(Q=v=Ie,Ie=v=v-512&-64,B=(f|=0)||c){if(H=-1,!Vre(L=v+96|0,p,b)){for(p=c||f,f=0,T8(c=v+128|0,0,0,64),ph(c,L,32,0),bn(L,32),ph(c,h,32,0),ph(c,b,32,0),B8(c,v+32|0,64),bn(c,384);h=(c=v+32|0)+f|0,k[f+B|0]=S[0|h],k[f+p|0]=S[h+32|0],k[(h=1|f)+B|0]=S[c+h|0],k[h+p|0]=S[c+(33|f)|0],(0|(f=f+2|0))!=32;);bn(c,64),H=0}return Ie=Q,0|H}Bs(),Rr()},wd:function(f,c,h,p,b){c|=0,h|=0,p|=0,b|=0;var B,Q,v=0,L=0,H=0;if(Q=v=Ie,Ie=v=v-512&-64,B=(f|=0)||c){if(H=-1,!Vre(L=v+96|0,p,b)){for(p=c||f,f=0,T8(c=v+128|0,0,0,64),ph(c,L,32,0),bn(L,32),ph(c,b,32,0),ph(c,h,32,0),B8(c,v+32|0,64),bn(c,384);h=(c=v+32|0)+f|0,k[f+p|0]=S[0|h],k[f+B|0]=S[h+32|0],k[(h=1|f)+p|0]=S[c+h|0],k[h+B|0]=S[c+(33|f)|0],(0|(f=f+2|0))!=32;);bn(c,64),H=0}return Ie=Q,0|H}Bs(),Rr()},xd:Ai,yd:Ai,zd:Ai,Ad:Ai,Bd:function(){return 1332},Cd:TBe,Dd:ta,Ed:Ai,Fd:aBe,Gd:sBe,Hd:function(f,c){return 0|Sg(f|=0,c|=0)},Id:fBe,Jd:function(f,c){return 0|Ig(f|=0,c|=0)},Kd:function(){return 1494},Ld:Wu,Md:aBe,Nd:sBe,Od:Sg,Pd:fBe,Qd:Ig,Rd:ta,Sd:Ai,Td:TBe,Ud:Wu,Vd:xM,Wd:ta,Xd:Id,Yd:pp,Zd:Id,_d:ta,$d:Zre,ae:function(){return 1554},be:UH,ce:Id,de:Wre,ee:$re,fe:jre,ge:SBe,he:function(){return 6},ie:function(){return 134217728},je:Dy,ke:function(){return 536870912},le:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|tt(f|=0,(f=0)|(c|=0),h|=0,p|=0,f|(b|=0),B|=0,Q|=0,f|(v|=0),L|=0,H|=0,j|=0)},me:function(f,c,h,p,b,B,Q){return 0|NTe(f|=0,c|=0,(f=0)|(h|=0),p|=0,f|(b|=0),B|=0,Q|=0)},ne:function(f,c,h,p){return 0|mBe(f|=0,c|=0,h|=0,p|=0)},oe:function(f,c,h,p){return 0|yBe(f|=0,c|=0,h|=0,p|=0)},pe:function(f,c,h,p){return 0|bBe(f|=0,c|=0,h|=0,p|=0)},qe:M8,re:ta,se:Id,te:pp,ue:Id,ve:ta,we:Zre,xe:OBe,ye:xM,ze:Id,Ae:Wre,Be:$re,Ce:M8,De:IBe,Ee:UH,Fe:RBe,Ge:jre,He:Yre,Ie:function(f,c,h,p,b,B,Q,v,L,H,j){return 0|sr(f|=0,(f=0)|(c|=0),h|=0,p|=0,f|(b|=0),B|=0,Q|=0,f|(v|=0),L|=0,H|=0,j|=0)},Je:$Te,Ke:function(f,c,h,p){return 0|EBe(f|=0,c|=0,h|=0,p|=0)},Le:xM,Me:M8,Ne:M8,Oe:ta,Pe:Id,Qe:pp,Re:Id,Se:ta,Te:Zre,Ue:OBe,Ve:xM,We:Id,Xe:Wre,Ye:$re,Ze:M8,_e:IBe,$e:UH,af:RBe,bf:jre,cf:Yre,df:function(f,c,h,p,b,B,Q,v,L,H,j){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,H|=0,c|=0,b|=0,v|=0;e:{switch((j|=0)-1|0){case 0:f=tt(f,c,h,p,b,B,Q,v,L,H,1);break e;case 1:f=sr(f,c,h,p,b,B,Q,v,L,H,2);break e}a[9404]=28,f=-1}return 0|f},ef:$Te,ff:function(f,c,h,p,b,B,Q,v){f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,h|=0,b|=0;e:{switch((v|=0)-1|0){case 1:f=MTe(f,c,h,p,b,B,Q);break e;default:Bs(),Rr();case 0:}f=NTe(f,c,h,p,b,B,Q)}return 0|f},gf:function(f,c,h,p){return c|=0,h|=0,p|=0,W5(f|=0,1564,10)?W5(f,1554,9)?(a[9404]=28,f=-1):f=mBe(f,c,h,p):f=EBe(f,c,h,p),0|f},hf:function(f,c,h,p){return c|=0,h|=0,p|=0,W5(f|=0,1564,10)?W5(f,1554,9)?(a[9404]=28,f=-1):f=yBe(f,c,h,p):f=bBe(f,c,h,p),0|f},jf:function(){return 1156},kf:function(){return 1443},lf:Kre,mf:Vre,nf:Ai,of:Ai,pf:vg,qf:PH,rf:Ai,sf:Ai,tf:Ai,uf:tm,vf:Ai,wf:ta,xf:ta,yf:hv,zf:function(){return 1486},Af:TH,Bf:BH,Cf:Wu,Df:ZTe,Ef:function(f,c,h,p,b,B){return f|=0,c|=0,b|=0,B|=0,!(p|=0)&(h|=0)>>>0>=4294967280|p&&(Bs(),Rr()),Pe(f+16|0,f,c,h,p,b,B),0},Ff:jTe,Gf:qTe,Hf:TH,If:BH,Jf:Ai,Kf:tm,Lf:Ai,Mf:ta,Nf:ta,Of:hv,Pf:Wu,Qf:Wu,Rf:function(f,c,h){return f|=0,h|=0,wf(c|=0,24),Ll(f,c,h,0),k[f+32|0]=1,k[f+33|0]=0,k[f+34|0]=0,k[f+35|0]=0,h=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,c=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,k[f+44|0]=0,k[f+45|0]=0,k[f+46|0]=0,k[f+47|0]=0,k[f+48|0]=0,k[f+49|0]=0,k[f+50|0]=0,k[f+51|0]=0,k[f+36|0]=h,k[f+37|0]=h>>>8,k[f+38|0]=h>>>16,k[f+39|0]=h>>>24,k[f+40|0]=c,k[f+41|0]=c>>>8,k[f+42|0]=c>>>16,k[f+43|0]=c>>>24,0},Sf:function(f,c,h){return Ll(f|=0,c|=0,h|=0,0),k[f+32|0]=1,k[f+33|0]=0,k[f+34|0]=0,k[f+35|0]=0,h=S[c+16|0]|S[c+17|0]<<8|S[c+18|0]<<16|S[c+19|0]<<24,c=S[c+20|0]|S[c+21|0]<<8|S[c+22|0]<<16|S[c+23|0]<<24,k[f+44|0]=0,k[f+45|0]=0,k[f+46|0]=0,k[f+47|0]=0,k[f+48|0]=0,k[f+49|0]=0,k[f+50|0]=0,k[f+51|0]=0,k[f+36|0]=h,k[f+37|0]=h>>>8,k[f+38|0]=h>>>16,k[f+39|0]=h>>>24,k[f+40|0]=c,k[f+41|0]=c>>>8,k[f+42|0]=c>>>16,k[f+43|0]=c>>>24,0},Tf:function(f){var c,h=0,p=0;Ie=c=Ie-48|0,h=S[28+(f|=0)|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,a[c+24>>2]=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,a[c+28>>2]=h,h=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,a[c+16>>2]=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,a[c+20>>2]=h,h=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,a[c>>2]=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,a[c+4>>2]=h,h=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,a[c+8>>2]=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,a[c+12>>2]=h,h=S[f+40|0]|S[f+41|0]<<8|S[f+42|0]<<16|S[f+43|0]<<24,a[c+32>>2]=S[f+36|0]|S[f+37|0]<<8|S[f+38|0]<<16|S[f+39|0]<<24,a[c+36>>2]=h,NH(c,c,40,0,f+32|0,f),h=a[c+28>>2],p=a[c+24>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=h,k[f+29|0]=h>>>8,k[f+30|0]=h>>>16,k[f+31|0]=h>>>24,h=a[c+20>>2],p=a[c+16>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=h,k[f+21|0]=h>>>8,k[f+22|0]=h>>>16,k[f+23|0]=h>>>24,h=a[c+12>>2],p=a[c+8>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=h,k[f+13|0]=h>>>8,k[f+14|0]=h>>>16,k[f+15|0]=h>>>24,h=a[c+4>>2],p=a[c>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=h,k[f+5|0]=h>>>8,k[f+6|0]=h>>>16,k[f+7|0]=h>>>24,p=a[c+36>>2],h=a[c+32>>2],k[f+32|0]=1,k[f+33|0]=0,k[f+34|0]=0,k[f+35|0]=0,k[f+36|0]=h,k[f+37|0]=h>>>8,k[f+38|0]=h>>>16,k[f+39|0]=h>>>24,k[f+40|0]=p,k[f+41|0]=p>>>8,k[f+42|0]=p>>>16,k[f+43|0]=p>>>24,Ie=c+48|0},Uf:function(f,c,h,p,b,B,Q,v,L,H){f|=0,c|=0,p|=0,B|=0,Q|=0,L|=0,H|=0;var j,re=0,Z=0,ee=0;return re=b|=0,re|=b=0,j=b|(v|=0),Ie=b=Ie-384|0,(h|=0)&&(a[h>>2]=0,a[h+4>>2]=0),!B&re>>>0<4294967279?(zS(Z=b+16|0,64,0,ee=f+32|0,f),Sg(v=b+80|0,Z),bn(Z,64),qo(v,Q,j,L),qo(v,35216,0-j&15,0),a[b+72>>2]=0,a[b+76>>2]=0,a[(Q=b- -64|0)>>2]=0,a[Q+4>>2]=0,a[b+56>>2]=0,a[b+60>>2]=0,a[b+48>>2]=0,a[b+52>>2]=0,a[b+40>>2]=0,a[b+44>>2]=0,a[b+32>>2]=0,a[b+36>>2]=0,a[b+16>>2]=0,a[b+20>>2]=0,a[b+24>>2]=0,a[b+28>>2]=0,k[b+16|0]=H,N8(Z,Z,64,0,ee,1,f),qo(v,Z,64,0),k[0|c]=S[b+16|0],N8(c=c+1|0,p,re,B,ee,2,f),qo(v,c,re,B),qo(v,35216,15&re,0),a[b+8>>2]=j,a[b+12>>2]=L,qo(v,p=b+8|0,8,0),a[b+8>>2]=re- -64,a[b+12>>2]=B-((re>>>0<4294967232)-1|0),qo(v,p,8,0),Ig(v,c=c+re|0),bn(v,256),k[f+36|0]=S[f+36|0]^S[0|c],k[f+37|0]=S[f+37|0]^S[c+1|0],k[f+38|0]=S[f+38|0]^S[c+2|0],k[f+39|0]=S[f+39|0]^S[c+3|0],k[f+40|0]=S[f+40|0]^S[c+4|0],k[f+41|0]=S[f+41|0]^S[c+5|0],k[f+42|0]=S[f+42|0]^S[c+6|0],k[f+43|0]=S[f+43|0]^S[c+7|0],OTe(ee),(2&H||ya(ee,4))&&(c=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,a[b+360>>2]=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,a[b+364>>2]=c,c=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,a[b+352>>2]=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,a[b+356>>2]=c,c=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,a[b+336>>2]=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,a[b+340>>2]=c,c=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,a[b+344>>2]=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,a[b+348>>2]=c,c=S[f+40|0]|S[f+41|0]<<8|S[f+42|0]<<16|S[f+43|0]<<24,a[b+368>>2]=S[f+36|0]|S[f+37|0]<<8|S[f+38|0]<<16|S[f+39|0]<<24,a[b+372>>2]=c,NH(c=b+336|0,c,40,0,ee,f),c=a[b+364>>2],p=a[b+360>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[b+356>>2],p=a[b+352>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[b+348>>2],p=a[b+344>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[b+340>>2],p=a[b+336>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=a[b+368>>2],p=a[b+372>>2],k[f+32|0]=1,k[f+33|0]=0,k[f+34|0]=0,k[f+35|0]=0,k[f+36|0]=c,k[f+37|0]=c>>>8,k[f+38|0]=c>>>16,k[f+39|0]=c>>>24,k[f+40|0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|0]=S[f+39|0]^S[Q+3|0],k[f+40|0]=S[f+40|0]^S[Q+4|0],k[f+41|0]=S[f+41|0]^S[Q+5|0],k[f+42|0]=S[f+42|0]^S[Q+6|0],k[f+43|0]=S[f+43|0]^S[Q+7|0],OTe(de),(2&v||ya(de,4))&&(c=S[f+28|0]|S[f+29|0]<<8|S[f+30|0]<<16|S[f+31|0]<<24,a[Q+376>>2]=S[f+24|0]|S[f+25|0]<<8|S[f+26|0]<<16|S[f+27|0]<<24,a[Q+380>>2]=c,c=S[f+20|0]|S[f+21|0]<<8|S[f+22|0]<<16|S[f+23|0]<<24,a[Q+368>>2]=S[f+16|0]|S[f+17|0]<<8|S[f+18|0]<<16|S[f+19|0]<<24,a[Q+372>>2]=c,c=S[f+4|0]|S[f+5|0]<<8|S[f+6|0]<<16|S[f+7|0]<<24,a[Q+352>>2]=S[0|f]|S[f+1|0]<<8|S[f+2|0]<<16|S[f+3|0]<<24,a[Q+356>>2]=c,c=S[f+12|0]|S[f+13|0]<<8|S[f+14|0]<<16|S[f+15|0]<<24,a[Q+360>>2]=S[f+8|0]|S[f+9|0]<<8|S[f+10|0]<<16|S[f+11|0]<<24,a[Q+364>>2]=c,c=S[f+40|0]|S[f+41|0]<<8|S[f+42|0]<<16|S[f+43|0]<<24,a[Q+384>>2]=S[f+36|0]|S[f+37|0]<<8|S[f+38|0]<<16|S[f+39|0]<<24,a[Q+388>>2]=c,NH(c=Q+352|0,c,40,0,de,f),c=a[Q+380>>2],b=a[Q+376>>2],k[f+24|0]=b,k[f+25|0]=b>>>8,k[f+26|0]=b>>>16,k[f+27|0]=b>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[Q+372>>2],b=a[Q+368>>2],k[f+16|0]=b,k[f+17|0]=b>>>8,k[f+18|0]=b>>>16,k[f+19|0]=b>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[Q+364>>2],b=a[Q+360>>2],k[f+8|0]=b,k[f+9|0]=b>>>8,k[f+10|0]=b>>>16,k[f+11|0]=b>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[Q+356>>2],b=a[Q+352>>2],k[0|f]=b,k[f+1|0]=b>>>8,k[f+2|0]=b>>>16,k[f+3|0]=b>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=a[Q+384>>2],b=a[Q+388>>2],k[f+32|0]=1,k[f+33|0]=0,k[f+34|0]=0,k[f+35|0]=0,k[f+36|0]=c,k[f+37|0]=c>>>8,k[f+38|0]=c>>>16,k[f+39|0]=c>>>24,k[f+40|0]=b,k[f+41|0]=b>>>8,k[f+42|0]=b>>>16,k[f+43|0]=b>>>24),h&&(a[h>>2]=L,a[h+4>>2]=we),ke=0,p&&(k[0|p]=v))}Ie=Q+400|0;break e}Bs(),Rr()}return 0|ke},Wf:function(){return 52},Xf:function(){return 17},Yf:tm,Zf:Ai,_f:function(){return-18},$f:pp,ag:xM,bg:M8,cg:UH,dg:Dy,eg:ta,fg:function(){return 1521},gg:rH,hg:CBe,ig:Dy,jg:ta,kg:rH,lg:NM,mg:ed,ng:Ai,og:Ai,pg:ed,qg:BBe,rg:function(){return 1454},sg:function(f,c,h){return 0|fH(f|=0,c|=0,h|=0)},tg:function(f,c){return 0|hH(f|=0,c|=0)},ug:STe,vg:gTe,wg:rBe,xg:oBe,yg:function(f){return 0|vBe(f|=0)},zg:Gre,Ag:function(f,c,h,p){return 0|KTe(f|=0,c|=0,h|=0,p|=0)},Bg:function(f,c,h){return 0|WTe(f|=0,c|=0,h|=0)},Cg:NM,Dg:ed,Eg:Ai,Fg:Ai,Gg:ed,Hg:BBe,Ig:function(f,c){f|=0;var h,p,b,B,Q,v,L=0;return h=S[8+(L=c|=0)|0]|S[L+9|0]<<8|S[L+10|0]<<16|S[L+11|0]<<24,p=S[L+12|0]|S[L+13|0]<<8|S[L+14|0]<<16|S[L+15|0]<<24,b=S[L+16|0]|S[L+17|0]<<8|S[L+18|0]<<16|S[L+19|0]<<24,B=S[L+20|0]|S[L+21|0]<<8|S[L+22|0]<<16|S[L+23|0]<<24,Q=S[0|L]|S[L+1|0]<<8|S[L+2|0]<<16|S[L+3|0]<<24,c=S[L+4|0]|S[L+5|0]<<8|S[L+6|0]<<16|S[L+7|0]<<24,v=S[L+28|0]|S[L+29|0]<<8|S[L+30|0]<<16|S[L+31|0]<<24,L=S[L+24|0]|S[L+25|0]<<8|S[L+26|0]<<16|S[L+27|0]<<24,k[f+24|0]=L,k[f+25|0]=L>>>8,k[f+26|0]=L>>>16,k[f+27|0]=L>>>24,k[f+28|0]=v,k[f+29|0]=v>>>8,k[f+30|0]=v>>>16,k[f+31|0]=v>>>24,k[f+16|0]=b,k[f+17|0]=b>>>8,k[f+18|0]=b>>>16,k[f+19|0]=b>>>24,k[f+20|0]=B,k[f+21|0]=B>>>8,k[f+22|0]=B>>>16,k[f+23|0]=B>>>24,k[f+8|0]=h,k[f+9|0]=h>>>8,k[f+10|0]=h>>>16,k[f+11|0]=h>>>24,k[f+12|0]=p,k[f+13|0]=p>>>8,k[f+14|0]=p>>>16,k[f+15|0]=p>>>24,k[0|f]=Q,k[f+1|0]=Q>>>8,k[f+2|0]=Q>>>16,k[f+3|0]=Q>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,0},Jg:function(f,c){f|=0;var h,p,b,B,Q,v,L=0;return h=S[32+(L=c|=0)|0]|S[L+33|0]<<8|S[L+34|0]<<16|S[L+35|0]<<24,p=S[L+36|0]|S[L+37|0]<<8|S[L+38|0]<<16|S[L+39|0]<<24,b=S[L+40|0]|S[L+41|0]<<8|S[L+42|0]<<16|S[L+43|0]<<24,B=S[L+44|0]|S[L+45|0]<<8|S[L+46|0]<<16|S[L+47|0]<<24,Q=S[L+48|0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0,c=(p=b+p|0)>>>0<b>>>0?c+1|0:c,b=(B=Ce(ut,nr,Nr,Yi))+p|0,p=$+c|0,p=b>>>0<B>>>0?p+1|0:p,B=(c=Ce(L,re,Jt,rn))+b|0,b=$+p|0,b=c>>>0>B>>>0?b+1|0:b,p=B,B=Ce(c=Oo,c>>31,de,cr),c=$+b|0,b=p=p+B|0,c=(c=p>>>0<B>>>0?c+1|0:c)+(p=Q>>26)|0,c=(b=b+(Q=(67108863&Q)<<6|ee>>>26)|0)>>>0<Q>>>0?c+1|0:c,c=(p=b+16777216|0)>>>0<16777216?c+1|0:c,a[h+84>>2]=b-(-33554432&p),Q=j-(-33554432&Vi)|0,B=H-(b=-67108864&zn)|0,ke=Nn-((b>>>0>H>>>0)+Ou|0)|0,c=Ce((33554431&(b=c))<<7|p>>>25,c>>=25,19,0),p=$+ke|0,c=c>>>0>(b=c+B|0)>>>0?p+1|0:p,c=((67108863&(c=(p=b+33554432|0)>>>0<33554432?c+1|0:c))<<6|p>>>26)+Q|0,a[h+52>>2]=c,a[h+48>>2]=b-(-67108864&p),yc(f,h+48|0)),Ie=h+256|0,0|ro},Rg:function(f,c){f|=0;var h,p=0;return Ie=h=Ie+-64|0,ci(h,c|=0,32,0),k[0|h]=248&S[0|h],k[h+31|0]=63&S[h+31|0]|64,c=a[h+20>>2],p=a[h+16>>2],k[f+16|0]=p,k[f+17|0]=p>>>8,k[f+18|0]=p>>>16,k[f+19|0]=p>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[h+12>>2],p=a[h+8>>2],k[f+8|0]=p,k[f+9|0]=p>>>8,k[f+10|0]=p>>>16,k[f+11|0]=p>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[h+4>>2],p=a[h>>2],k[0|f]=p,k[f+1|0]=p>>>8,k[f+2|0]=p>>>16,k[f+3|0]=p>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,c=a[h+28>>2],p=a[h+24>>2],k[f+24|0]=p,k[f+25|0]=p>>>8,k[f+26|0]=p>>>16,k[f+27|0]=p>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,bn(h,64),Ie=h- -64|0,0},Sg:oBe,Tg:gTe,Ug:rBe,Vg:STe,Wg:Ai,Xg:Dy,Yg:Id,Zg:Ai,_g:kBe,$g:Id,ah:function(f,c,h,p,b){return 0|RM(f|=0,c|=0,h|=0,p|=0,b|=0)},bh:function(f,c,h,p,b,B,Q,v){return 0|x8(f|=0,c|=0,(f=0)|(h|=0),p|=0,b|=0,f|(B|=0),Q|=0,v|=0)},ch:function(f,c,h,p,b,B){return 0|OH(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0)},dh:function(f,c,h,p,b){return 0|zS(f|=0,c|=0,h|=0,p|=0,b|=0)},eh:function(f,c,h,p,b,B,Q){return 0|N8(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)},fh:function(f,c,h,p,b,B){return 0|NH(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0)},gh:Wu,hh:Wu,ih:Ai,jh:tm,kh:Id,lh:function(){return 1538},mh:cBe,nh:nBe,oh:Wu,ph:Ai,qh:Dy,rh:Id,sh:function(f,c,h,p,b){return 0|Jre(f|=0,c|=0,h|=0,p|=0,b|=0)},th:function(f,c,h,p,b,B,Q,v){return 0|wM(f|=0,c|=0,(f=0)|(h|=0),p|=0,b|=0,f|(B|=0),Q|=0,v|=0)},uh:function(f,c,h,p,b,B){return 0|MH(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0)},vh:Wu,wh:cBe,xh:function(f,c,h,p,b,B,Q,v){var L;return f|=0,c|=0,h|=0,p|=0,B|=0,Q|=0,Ie=L=Ie-32|0,$2(L,b|=0,v|=0,0),f=wM(v=f,c,(f=0)|h,p,b+16|0,f|B,Q,L),bn(L,32),Ie=L+32|0,0|f},yh:nBe,zh:Ai,Ah:tm,Bh:Id,Ch:Wu,Dh:ta,Eh:Ai,Fh:ed,Gh:Te,Hh:eO,Ih:pBe,Jh:function(){return 1089},Kh:function(){var f,c;return Ie=f=Ie-16|0,k[f+15|0]=0,c=0|yt(36800,f+15|0,0),Ie=f+16|0,0|c},Lh:uBe,Mh:function(f){var c,h=0,p=0;if(Ie=c=Ie-16|0,(f|=0)>>>0>=2){for(h=(0-f>>>0)%(f>>>0)|0;k[c+15|0]=0,h>>>0>(p=0|yt(36800,c+15|0,0))>>>0;);h=(p>>>0)%(f>>>0)|0}return Ie=c+16|0,0|h},Nh:wf,Oh:function(f,c,h){zS(f|=0,c|=0,0,34336,h|=0)},Ph:Ai,Qh:function(){var f=0,c=0;return(f=a[9539])&&(f=a[f+20>>2])&&(c=0|A0[0|f]()),0|c},Rh:function(f,c,h){f|=0,c|=0;var p,b=0,B=0,Q=0;if(Ie=p=Ie-16|0,h|=0)ot(1346,1192,198,1092),Rr();else{if(c|h)for(;k[p+15|0]=0,B=f+b|0,Q=0|yt(36800,p+15|0,0),k[0|B]=Q,(0|c)!=(0|(b=b+1|0)););Ie=p+16|0}},Sh:function(f,c,h,p){f|=0,h|=0;var b=0,B=0,Q=0;if(!((p|=0)>>>0>2147483646|p<<1>>>0>=(c|=0)>>>0)){if(c=0,p){for(;b=(c<<1)+f|0,B=15&(Q=S[c+h|0]),k[b+1|0]=22272+((B<<8)+(B+65526&55552)|0)>>>8,B=b,b=Q>>>4|0,k[0|B]=87+((b+65526>>>8&217)+b|0),(0|p)!=(0|(c=c+1|0)););c=p<<1}else c=0;return k[c+f|0]=0,0|f}Bs(),Rr()},Th:function(f,c,h,p,b,B,Q){f|=0,c|=0,h|=0,b|=0,B|=0,Q|=0;var v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0;e:{t:{r:{n:{i:{c:{s:{o:{d:{if(p|=0){if(b)break d;for(L=1,b=0;;){if(!(255&((ee=(65526+(H=(223&(re=S[h+v|0]))-55&255)^H+65520)>>>8|0)|(de=65526+(re^=48)>>>8|0))))break s;if(c>>>0<=Z>>>0)break o;if(H=H&ee|re&de,255&j?(k[f+Z|0]=b|H,Z=Z+1|0):b=H<<4,j=~j,(0|(v=v+1|0))==(0|p))break}v=p;break s}if(f=0,!Q)break e;break r}for(;;){d:{a:{u:{f:{l:{if(!(255&((re=(65526+(L=(223&(H=S[h+v|0]))-55&255)^L+65520)>>>8|0)|(de=65526+(ee=48^H)>>>8|0)))){if(255&j)break c;if(L=0,!bi(b,H))break n;if((v=j=v+1|0)>>>0<p>>>0)break l;break n}if(c>>>0<=Z>>>0)break o;if(L=L&re|ee&de,!(255&j))break f;k[f+Z|0]=L|we,Z=Z+1|0;break d}for(;;){if(!(255&((ee=(65526+(re=(223&(H=S[h+v|0]))-55&255)^re+65520)>>>8|0)|(we=65526+(de=48^H)>>>8|0)))){if(!bi(b,H))break n;if((v=v+1|0)>>>0<p>>>0)continue;break u}break}if(c>>>0<=Z>>>0)break a;L=re&ee|de&we}we=L<<4,j=0;break d}v=p>>>0>j>>>0?p:j;break n}j=0;break o}if(j=~j,L=1,!((v=v+1|0)>>>0<p>>>0))break}break s}a[9404]=68,L=0}if(!(255&j))break i}a[9404]=28,L=-1,v=v-1|0,Z=0;break n}Z=L?Z:0,L=L-1|0}if(!Q){if((0|p)!=(0|v))break t;f=L;break e}}a[Q>>2]=h+v,f=L;break e}a[9404]=28,f=-1}return B&&(a[B>>2]=Z),0|f},Uh:function(f,c){f|=0;var h=0;return(-7&(c|=0))!=1&&(Bs(),Rr()),1+((3&(h=(h=f)+Lr(f=(f>>>0)/3|0,-3)|0)?2&c?h+1|0:4:0)+(f<<2)|0)|0},Vh:yM,Wh:hM,Xh:function(){var f=0;return a[9537]?f=1:(uBe(),wf(38128,16),a[9537]=1,f=0),0|f},Yh:function(f,c,h,p,b){f|=0,c|=0,h|=0,b|=0;var B,Q=0,v=0,L=0;Ie=B=Ie-16|0;e:{if(p|=0){if((Q=p-1|0)&p?(v=~h,Q=Q-((h>>>0)%(p>>>0)|0)|0):Q&=v=~h,Q>>>0>=v>>>0)break e;if((h=h+Q|0)>>>0>=b>>>0)c=-1;else for(f&&(a[f>>2]=h+1),f=c+h|0,c=0,k[B+15|0]=0,h=0;v=b=f-h|0,L=S[0|b]&S[B+15|0],b=(h^Q)-1>>>24|0,k[0|v]=L|128&b,k[B+15|0]=b|S[B+15|0],(0|p)!=(0|(h=h+1|0)););}else c=-1;return Ie=B+16|0,0|c}Bs(),Rr()},Zh:function(f,c,h,p){f|=0,c|=0,h|=0,p|=0;var b,B=0,Q=0,v=0,L=0,H=0;if(a[12+(b=Ie-16|0)>>2]=0,p-1>>>0<h>>>0){for(H=(B=h-1|0)+c|0,h=0,c=0;L=((128^(Q=S[H-h|0]))-1&a[b+12>>2]-1&v-1)>>>8&1,a[b+12>>2]=a[b+12>>2]|0-L&h,c|=L,v|=Q,(0|p)!=(0|(h=h+1|0)););a[f>>2]=B-a[b+12>>2],f=(255&c)-1|0}else f=-1;return 0|f},_h:function(){return 1547},$h:function(){return 26},ai:M8,bi:pp,ci:He,di:DH,ei:function(f,c,h){f|=0;var p,b=0;return Ie=p=Ie-32|0,b=-1,vg(p,h|=0,c|=0)||(b=Ll(f,35584,p,0)),Ie=p+32|0,0|b},fi:eBe,gi:function(f,c,h,p,b,B,Q,v){var L,H;return f|=0,c|=0,h|=0,B|=0,H=p|=0,p=b|=0,Ie=L=Ie+-64|0,vg(L+32|0,v|=0,Q|=0)?b=-1:(b=-1,Ll(L,35584,L+32|0,0)||(b=Fe(f,c,h,H,p,B,L),bn(L,32))),Ie=L- -64|0,0|b},hi:function(f,c,h,p,b,B){return f|=0,c|=0,b|=0,B|=0,!(p|=0)&(h|=0)>>>0>=4294967280|p&&(Bs(),Rr()),0|Fe(f+16|0,f,c,h,p,b,B)},ii:function(f,c,h,p,b,B,Q){return 0|LTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)},ji:tBe,ki:function(f,c,h,p,b,B,Q,v){var L,H;return f|=0,c|=0,h|=0,B|=0,H=p|=0,p=b|=0,Ie=L=Ie+-64|0,vg(L+32|0,v|=0,Q|=0)?b=-1:(b=-1,Ll(L,35584,L+32|0,0)||(b=mr(f,c,h,H,p,B,L),bn(L,32))),Ie=L- -64|0,0|b},li:VTe,mi:function(f,c,h,p,b,B,Q){return 0|DTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0)},ni:Ai,oi:Ai,pi:Ai,qi:Ai,ri:tm,si:ta,ti:hv,ui:function(f,c,h,p,b){f|=0,c|=0,b|=0;var B,Q,v,L,H=0,j=0;return H=h|=0,h=p|=0,L=0|H,H=p=Ie,Ie=B=p-512&-64,p=-1,DH(Q=B- -64|0,v=B+32|0)||(T8(p=B+128|0,0,0,24),ph(p,Q,32,0),ph(p,b,32,0),B8(p,j=B+96|0,24),p=LTe(f+32|0,c,L,h,j,b,v),c=a[B+92>>2],h=a[B+88>>2],k[f+24|0]=h,k[f+25|0]=h>>>8,k[f+26|0]=h>>>16,k[f+27|0]=h>>>24,k[f+28|0]=c,k[f+29|0]=c>>>8,k[f+30|0]=c>>>16,k[f+31|0]=c>>>24,c=a[B+84>>2],h=a[B+80>>2],k[f+16|0]=h,k[f+17|0]=h>>>8,k[f+18|0]=h>>>16,k[f+19|0]=h>>>24,k[f+20|0]=c,k[f+21|0]=c>>>8,k[f+22|0]=c>>>16,k[f+23|0]=c>>>24,c=a[B+76>>2],h=a[B+72>>2],k[f+8|0]=h,k[f+9|0]=h>>>8,k[f+10|0]=h>>>16,k[f+11|0]=h>>>24,k[f+12|0]=c,k[f+13|0]=c>>>8,k[f+14|0]=c>>>16,k[f+15|0]=c>>>24,c=a[B+68>>2],h=a[B+64>>2],k[0|f]=h,k[f+1|0]=h>>>8,k[f+2|0]=h>>>16,k[f+3|0]=h>>>24,k[f+4|0]=c,k[f+5|0]=c>>>8,k[f+6|0]=c>>>16,k[f+7|0]=c>>>24,bn(v,32),bn(Q,32),bn(j,24)),Ie=H,0|p},vi:function(f,c,h,p,b,B){f|=0,c|=0,b|=0,B|=0;var Q,v,L=0;return v=L=Ie,Ie=Q=L-448&-64,L=-1,!(p|=0)&(h|=0)>>>0>=48|p&&(T8(L=Q- -64|0,0,0,24),ph(L,c,32,0),ph(L,b,32,0),B8(L,b=Q+32|0,24),L=DTe(f,c+32|0,h-32|0,p-(h>>>0<32)|0,b,c,B)),Ie=v,0|L},wi:DBe,xi:function(f){var c,h=0;return Ie=c=Ie-160|0,ea(f|=0)&&(EM(f)||fv(c,f)||w8(c)&&(h=!!(0|cM(c)))),Ie=c+160|0,0|h},yi:function(f,c,h){f|=0,h|=0;var p,b,B=0;return Ie=p=Ie-800|0,B=-1,fv(b=p+640|0,c|=0)||w8(b)&&(fv(c=p+480|0,h)||w8(c)&&(mc(p,c),Gu(c=p+160|0,b,p),wH(h=p+320|0,c),VS(f,h),B=0)),Ie=p+800|0,0|B},zi:function(f,c,h){f|=0,h|=0;var p,b,B=0;return Ie=p=Ie-800|0,B=-1,fv(b=p+640|0,c|=0)||w8(b)&&(fv(c=p+480|0,h)||w8(c)&&(mc(p,c),Y5(c=p+160|0,b,p),wH(h=p+320|0,c),VS(f,h),B=0)),Ie=p+800|0,0|B},Ai:function(f,c){return ka(f|=0,c|=0),0},Bi:function(f){var c;f|=0,Ie=c=Ie-32|0,wf(c,32),ka(f,c),Ie=c+32|0},Ci:YTe,Di:dH,Ei:gH,Fi:pH,Gi:uH,Hi:AH,Ii:iH,Ji:gBe,Ki:Ai,Li:ed,Mi:Ai,Ni:ed,Oi:Ai,Pi:function(f){var c;return Ie=c=Ie-160|0,f=GS(c,f|=0),Ie=c+160|0,0|!f},Qi:function(f,c,h){f|=0,h|=0;var p,b,B=0;return Ie=p=Ie-800|0,B=-1,GS(b=p+640|0,c|=0)||GS(c=p+480|0,h)||(mc(p,c),Gu(c=p+160|0,b,p),wH(h=p+320|0,c),I8(f,h),B=0),Ie=p+800|0,0|B},Ri:function(f,c,h){f|=0,h|=0;var p,b,B=0;return Ie=p=Ie-800|0,B=-1,GS(b=p+640|0,c|=0)||GS(c=p+480|0,h)||(mc(p,c),Y5(c=p+160|0,b,p),wH(h=p+320|0,c),I8(f,h),B=0),Ie=p+800|0,0|B},Si:function(f,c){return wTe(f|=0,c|=0),0},Ti:function(f){var c;f|=0,Ie=c=Ie+-64|0,wf(c,64),wTe(f,c),Ie=c- -64|0},Ui:function(f){YTe(f|=0)},Vi:function(f,c){return 0|dH(f|=0,c|=0)},Wi:function(f,c){gH(f|=0,c|=0)},Xi:function(f,c){pH(f|=0,c|=0)},Yi:function(f,c,h){uH(f|=0,c|=0,h|=0)},Zi:function(f,c,h){iH(f|=0,c|=0,h|=0)},_i:gBe,$i:function(f,c){AH(f|=0,c|=0)},aj:Ai,bj:ed,cj:ed,dj:Ai,ej:function(f,c,h,p,b,B,Q,v,L,H){return 0|QTe(f|=0,c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,v|=0,L|=0,H|=0)},fj:ta,gj:Id,hj:pp,ij:Id,jj:Ai,kj:function(){return 102},lj:function(){return 1575},mj:function(){return 32768},nj:Id,oj:wBe,pj:Id,qj:function(){return 524288},rj:wBe,sj:SBe,tj:Yre,uj:function(f,c,h,p,b,B,Q,v,L,H){var j,re,Z;c|=0,h|=0,p|=0,b|=0,B|=0,Q|=0,L|=0,H|=0,re=0|(v|=0),Ie=v=Ie-16|0,Z=c|=0,j=yo(f|=0,0,c),f=0|b;e:if((0|(b=h|B))==1|b>>>0>1)a[9404]=22,f=-1;else if(!h&c>>>0>=16|h){if(pM(re,L,H,v+12|0,v+8|0,v+4|0),(0|p)==(0|j)){a[9404]=28,f=-1;break e}b=f,f=31&(c=a[v+12>>2]),(63&c)>>>0>=32?(c=1<<f,h=0):c=(h=1<<f)-1&1>>>32-f,f=QTe(p,b,Q,32,h,c,a[v+4>>2],a[v+8>>2],j,Z)}else a[9404]=28,f=-1;return Ie=v+16|0,0|f},vj:function(f,c,h,p,b,B,Q){c|=0,h|=0,p|=0,B|=0,Q|=0;var v,L,H,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0;j=b|=0,j|=b=0,Ie=v=Ie-128|0,L=yo(f|=0,0,102),de=22,H=h|b;e:{t:{if(!p){pM(j,B,Q,v+16|0,v+12|0,v+8|0),wf(re=v+96|0,32),de=28,h=v+32|0,B=a[v+16>>2],Q=Ce(f=a[v+12>>2],0,p=a[v+8>>2],0);r:if(!(!(j=$)&Q>>>0>1073741823|j|B>>>0>63)&&(k[0|h]=36,k[h+1|0]=55,k[h+2|0]=36,k[h+4|0]=S[1024+(63&p)|0],k[h+3|0]=S[B+1024|0],k[h+8|0]=S[1024+(p>>>24&63)|0],k[h+7|0]=S[1024+(p>>>18&63)|0],k[h+6|0]=S[1024+(p>>>12&63)|0],k[h+5|0]=S[1024+(p>>>6&63)|0],(p=h+9|0)&&(0|p)!=(0|(Z=h+58|0))&&(k[0|p]=S[1024+(63&f)|0],(0|(p=Z-p|0))!=1&&(k[h+10|0]=S[1024+(f>>>6&63)|0],(0|p)!=2&&(k[h+11|0]=S[1024+(f>>>12&63)|0],(0|p)!=3&&(k[h+12|0]=S[1024+(f>>>18&63)|0],(0|p)!=4&&(k[h+13|0]=S[1024+(f>>>24&63)|0],B=h+14|0))))))){for(j=Z-B|0,f=0;;){if(p=B,!(f>>>0>=32)){if(B=S[f+re|0],(we=(Q=f+1|0)>>>0>=32)?ee=0:(B=S[Q+re|0]<<8|B,(Q=f+2|0)>>>0>=32?ee=0:(B=S[Q+re|0]<<16|B,ee=1,Q=f+3|0)),f=Q,!j||(k[0|p]=S[1024+(63&B)|0],(0|j)==1))break r;if(k[p+1|0]=S[1024+(B>>>6&63)|0],ke=p+j|0,Q=p+2|0,!we){if((0|j)==2)break r;if(k[p+2|0]=S[1024+(B>>>12&63)|0],Q=p+3|0,ee){if((0|j)==3)break r;k[p+3|0]=S[1024+(B>>>18|0)|0],Q=p+4|0}}if(j=ke-(B=Q)|0,B)continue;break r}break}p>>>0>=Z>>>0||(k[0|p]=0,b=h)}if(b){if(qre(f=v+20|0))break t;if(c=vH(f,c,H,h,L),xH(f),c){f=0;break e}}}a[9404]=de}f=-1}return Ie=v+128|0,0|f},wj:function(f,c,h,p){c|=0,p|=0;var b,B,Q=0;b=f|=0,B=h|=0,h=0,Ie=p=Ie-128|0;e:{t:{for(;;){if(!S[h+b|0]){f=h;break t}if(!S[b+(f=h+1|0)|0]||!S[b+(f=h+2|0)|0])break t;if((0|(h=h+3|0))==102)break}h=-1;break e}h=-1,(0|f)==101&&(qre(Q=p+4|0)||(yo(f=p+16|0,0,102),c=vH(Q,c,B,b,f),xH(Q),c&&(h=Ul(f,b,102),bn(f,102))))}return Ie=p+128|0,0|h},xj:function(f,c,h,p){var b,B;B=f|=0,Ie=b=Ie-32|0,pM(c|=0,h|=0,p|=0,b+28|0,b+20|0,b+12|0),f=0;e:{t:{r:{for(;;){if(S[f+B|0]){if(S[B+(c=f+1|0)|0]&&S[B+(c=f+2|0)|0]){if((0|(f=f+3|0))!=102)continue;break r}}else c=f;break}if((0|c)==101){if(h=b+8|0,p=b+16|0,f=0,S[0|B]!=36|S[B+1|0]!=55|S[B+2|0]!=36||(c=O8(S[B+3|0]),a[b+24>>2]=c?c-1024|0:0,c&&(c=IH(h,B+4|0))&&(f=IH(p,c))),f)break t;a[9404]=28,f=-1;break e}}a[9404]=28,f=-1;break e}f=1,a[b+28>>2]!=a[b+24>>2]|a[b+12>>2]!=a[b+8>>2]||(f=a[b+20>>2]!=a[b+16>>2])}return Ie=b+32|0,0|f},yj:function(f,c,h){return 0|EH(f|=0,c|=0,h|=0,1)},zj:function(f,c,h){return 0|EH(f|=0,c|=0,h|=0,0)},Aj:function(f,c){return 0|RH(f|=0,c|=0,1)},Bj:function(f,c){return 0|RH(f|=0,c|=0,0)},Cj:Ai,Dj:Ai,Ej:function(f,c,h){f|=0,c|=0;var p,b=0;return Ie=p=Ie-320|0,b=-1,GS(p,h|=0)||(k[0|f]=S[0|c],k[f+1|0]=S[c+1|0],k[f+2|0]=S[c+2|0],k[f+3|0]=S[c+3|0],k[f+4|0]=S[c+4|0],k[f+5|0]=S[c+5|0],k[f+6|0]=S[c+6|0],k[f+7|0]=S[c+7|0],k[f+8|0]=S[c+8|0],k[f+9|0]=S[c+9|0],k[f+10|0]=S[c+10|0],k[f+11|0]=S[c+11|0],k[f+12|0]=S[c+12|0],k[f+13|0]=S[c+13|0],k[f+14|0]=S[c+14|0],k[f+15|0]=S[c+15|0],k[f+16|0]=S[c+16|0],k[f+17|0]=S[c+17|0],k[f+18|0]=S[c+18|0],k[f+19|0]=S[c+19|0],k[f+20|0]=S[c+20|0],k[f+21|0]=S[c+21|0],k[f+22|0]=S[c+22|0],k[f+23|0]=S[c+23|0],k[f+24|0]=S[c+24|0],k[f+25|0]=S[c+25|0],k[f+26|0]=S[c+26|0],k[f+27|0]=S[c+27|0],k[f+28|0]=S[c+28|0],k[f+29|0]=S[c+29|0],k[f+30|0]=S[c+30|0],k[f+31|0]=127&S[c+31|0],l0(c=p+160|0,f,p),I8(f,c),b=ya(f,32)?-1:0),Ie=p+320|0,0|b},Fj:function(f,c){var h;return c|=0,Ie=h=Ie-160|0,k[0|(f|=0)]=S[0|c],k[f+1|0]=S[c+1|0],k[f+2|0]=S[c+2|0],k[f+3|0]=S[c+3|0],k[f+4|0]=S[c+4|0],k[f+5|0]=S[c+5|0],k[f+6|0]=S[c+6|0],k[f+7|0]=S[c+7|0],k[f+8|0]=S[c+8|0],k[f+9|0]=S[c+9|0],k[f+10|0]=S[c+10|0],k[f+11|0]=S[c+11|0],k[f+12|0]=S[c+12|0],k[f+13|0]=S[c+13|0],k[f+14|0]=S[c+14|0],k[f+15|0]=S[c+15|0],k[f+16|0]=S[c+16|0],k[f+17|0]=S[c+17|0],k[f+18|0]=S[c+18|0],k[f+19|0]=S[c+19|0],k[f+20|0]=S[c+20|0],k[f+21|0]=S[c+21|0],k[f+22|0]=S[c+22|0],k[f+23|0]=S[c+23|0],k[f+24|0]=S[c+24|0],k[f+25|0]=S[c+25|0],k[f+26|0]=S[c+26|0],k[f+27|0]=S[c+27|0],k[f+28|0]=S[c+28|0],k[f+29|0]=S[c+29|0],k[f+30|0]=S[c+30|0],k[f+31|0]=127&S[c+31|0],qS(h,f),I8(f,h),f=ya(f,32),Ie=h+160|0,0|(f?-1:0)},Gj:Ai,Hj:Ai,Ij:eBe,Jj:function(f,c,h,p,b,B){return f|=0,c|=0,b|=0,B|=0,!(p|=0)&(h|=0)>>>0>=4294967280|p&&(Bs(),Rr()),Fe(f+16|0,f,c,h,p,b,B),0},Kj:tBe,Lj:VTe,Mj:Ai,Nj:tm,Oj:ta,Pj:hv,Qj:ta,Rj:ta,Sj:function(f,c,h,p,b){f|=0,c|=0,h|=0,p|=0;var B,Q,v=0,L=0,H=0,j=0,re=0,Z=0,ee=0,de=0,we=0,ke=0,ye=0,Me=0,Ve=0,We=0;if(ye=1886610805^(v=S[0|(b|=0)]|S[b+1|0]<<8|S[b+2|0]<<16|S[b+3|0]<<24),ke=1936682341^(L=S[b+4|0]|S[b+5|0]<<8|S[b+6|0]<<16|S[b+7|0]<<24),v^=1852142177,H=1819895653^L,Me=1852075907^(L=S[b+8|0]|S[b+9|0]<<8|S[b+10|0]<<16|S[b+11|0]<<24),Ve=1685025377^(b=S[b+12|0]|S[b+13|0]<<8|S[b+14|0]<<16|S[b+15|0]<<24),j=2037671283^L,L=1952801890^b,de=h,(0|(Q=(h+c|0)-(B=7&h)|0))!=(0|c))for(;h=(Z=L^(We=S[c+4|0]|S[c+5|0]<<8|S[c+6|0]<<16|S[c+7|0]<<24))+H|0,j=p=v+(b=j^(ee=S[0|c]|S[c+1|0]<<8|S[c+2|0]<<16|S[c+3|0]<<24))|0,re=h=p>>>0<b>>>0?h+1|0:h,v=p,p=h,h=ke+Ve|0,h=(L=ye+Me|0)>>>0<ye>>>0?h+1|0:h,we=(H=Ke(Me,Ve,13)^L)+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0]<<8|S[p+2|0]<<16|S[p+3|0]<<24,h=S[p+4|0]|S[p+5|0]<<8|S[p+6|0]<<16|S[p+7|0]<<24,a[B+104>>2]=0,a[B+108>>2]=0,a[B+96>>2]=c,a[B+100>>2]=h;e:{if(!v&Q>>>0>=64|v){for(;CM(f,B+96|0,B,0),c=S[B+104|0]+1|0,k[B+104|0]=c,c=S[B+105|0]+(c>>>8|0)|0,k[B+105|0]=c,c=S[B+106|0]+(c>>>8|0)|0,k[B+106|0]=c,c=S[B+107|0]+(c>>>8|0)|0,k[B+107|0]=c,c=S[B+108|0]+(c>>>8|0)|0,k[B+108|0]=c,c=S[B+109|0]+(c>>>8|0)|0,k[B+109|0]=c,c=S[B+110|0]+(c>>>8|0)|0,k[B+110|0]=c,k[B+111|0]=S[B+111|0]+(c>>>8|0),f=f- -64|0,v=v-1|0,!(v=(Q=Q+-64|0)>>>0<4294967232?v+1|0:v)&Q>>>0>63|v;);if(!(Q|v))break e}if(h=0,CM(B+32|0,B+96|0,B,0),p=3&Q,c=0,!v&Q>>>0>=4|v)for(v=60&Q,b=0;Q=H=B+32|0,k[f+c|0]=S[Q+c|0],k[(L=1|c)+f|0]=S[Q+L|0],k[(L=2|c)+f|0]=S[Q+L|0],k[(Q=3|c)+f|0]=S[Q+H|0],c=c+4|0,(0|v)!=(0|(b=b+4|0)););if(p)for(;k[f+c|0]=S[(B+32|0)+c|0],c=c+1|0,(0|p)!=(0|(h=h+1|0)););}bn(B+32|0,64),bn(B,32)}return Ie=B+112|0,0},_j:function(f,c,h,p,b,B){f|=0,c|=0,b|=0,B|=0;var Q,v=0,L=0;if(Ie=Q=Ie-112|0,v=h|=0,(p|=0)|h){h=S[B+28|0]|S[B+29|0]<<8|S[B+30|0]<<16|S[B+31|0]<<24,a[Q+24>>2]=S[B+24|0]|S[B+25|0]<<8|S[B+26|0]<<16|S[B+27|0]<<24,a[Q+28>>2]=h,h=S[B+20|0]|S[B+21|0]<<8|S[B+22|0]<<16|S[B+23|0]<<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+h|0],k[(b=1|h)+f|0]=S[b+L|0]^S[c+b|0],h=h+2|0,(0|v)!=(0|(p=p+2|0)););B&&(k[f+h|0]=S[(Q+32|0)+h|0]^S[c+h|0])}bn(Q+32|0,64),bn(Q,32)}return Ie=Q+112|0,0},$j:Ai,ak:Dy,bk:Id,ck:Wu,dk:Ai,ek:tm,fk:Id,gk:function(f,c,h,p,b){var B;return f|=0,c|=0,h|=0,Ie=B=Ie-32|0,Ll(B,p|=0,b|=0,0),f=RM(f,c,h,p+16|0,B),Ie=B+32|0,0|f},hk:function(f,c,h,p,b,B,Q,v){var L;return f|=0,c|=0,h|=0,p|=0,B|=0,Q|=0,Ie=L=Ie-32|0,Ll(L,b|=0,v|=0,0),f=x8(v=f,c,(f=0)|h,p,b+16|0,f|B,Q,L),Ie=L+32|0,0|f},ik:function(f,c,h,p,b,B){var Q;return f|=0,c|=0,h|=0,p|=0,Ie=Q=Ie-32|0,Ll(Q,b|=0,B|=0,0),f=x8(f,c,h,p,b+16|0,0,0,Q),Ie=Q+32|0,0|f},jk:Wu,kk:wo,lk:h0,mk:A0}})(De)})(qe)},instantiate:function(be,qe){return{then:function(De){var Je=new _e.Module(be);De({instance:new _e.Instance(Je,qe)})}}},RuntimeError:Error};zr=[];var Be,Ze,$t,at,zt,Hr,St,Yt=!1;function qr(){var be=ie.buffer;V.HEAP8=Be=new Int8Array(be),V.HEAP16=$t=new Int16Array(be),V.HEAPU8=Ze=new Uint8Array(be),V.HEAPU16=new Uint16Array(be),V.HEAP32=at=new Int32Array(be),V.HEAPU32=zt=new Uint32Array(be),V.HEAPF32=Hr=new Float32Array(be),V.HEAPF64=St=new Float64Array(be)}var tr=[],hr=[],Cn=[],er=0,pr=null,mn=null;function Xt(be){throw V.onAbort?.(be),ve(be="Aborted("+be+")"),Yt=!0,be+=". Build with -sASSERTIONS for more info.",new _e.RuntimeError(be)}var dr,wn=be=>be.startsWith("file://"),Qt={36800:()=>V.getRandomValue(),36836:()=>{if(V.getRandomValue===void 0)try{var be=typeof window=="object"?window:self,qe=be.crypto!==void 0?be.crypto:be.msCrypto;qe=qe===void 0?Je:qe;var De=function(){var Vt=new Uint32Array(1);return qe.getRandomValues(Vt),Vt[0]>>>0};De(),V.getRandomValue=De}catch{try{var Je=(IA(),Zu(Lv)),Rt=function(){var br=Je.randomBytes(4);return(br[0]<<24|br[1]<<16|br[2]<<8|br[3])>>>0};Rt(),V.getRandomValue=Rt}catch{throw"No secure random number generator found"}}}},fr=be=>{for(;be.length>0;)be.shift()(V)};V.noExitRuntime;var In,jt=typeof TextDecoder<"u"?new TextDecoder:void 0,ar=(be,qe)=>be?((De,Je,Rt)=>{for(var Vt=Je+Rt,br=Je;De[br]&&!(br>=Vt);)++br;if(br-Je>16&&De.buffer&&jt)return jt.decode(De.subarray(Je,br));for(var Rr="";Je<br;){var Dr=De[Je++];if(128&Dr){var Pr=63&De[Je++];if((224&Dr)!=192){var k=63&De[Je++];if((Dr=(240&Dr)==224?(15&Dr)<<12|Pr<<6|k:(7&Dr)<<18|Pr<<12|k<<6|63&De[Je++])<65536)Rr+=String.fromCharCode(Dr);else{var a=Dr-65536;Rr+=String.fromCharCode(55296|a>>10,56320|1023&a)}}else Rr+=String.fromCharCode((31&Dr)<<6|Pr)}else Rr+=String.fromCharCode(Dr)}return Rr})(Ze,be,qe):"",ht=[],Xe=be=>{var qe=(be-ie.buffer.byteLength+65535)/65536;try{return ie.grow(qe),qr(),1}catch{}},et={b:(be,qe,De,Je)=>{Xt(`Assertion failed: ${ar(be)}, at: `+[qe?ar(qe):"unknown filename",De,Je?ar(Je):"unknown function"])},c:()=>{Xt("")},a:(be,qe,De)=>((Je,Rt,Vt)=>{var br=((Rr,Dr)=>{var Pr;for(ht.length=0;Pr=Ze[Rr++];){var k=Pr!=105;Dr+=(k&=Pr!=112)&&Dr%8?4:0,ht.push(Pr==112?zt[Dr>>2]:Pr==105?at[Dr>>2]:St[Dr>>3]),Dr+=k?8:4}return ht})(Rt,Vt);return Qt[Je](...br)})(be,qe,De),d:be=>{var qe=Ze.length,De=2147483648;if((be>>>=0)>De)return!1;for(var Je,Rt=1;Rt<=4;Rt*=2){var Vt=qe*(1+.2/Rt);Vt=Math.min(Vt,be+100663296);var br=Math.min(De,(Je=Math.max(be,Vt))+(65536-Je%65536)%65536);if(Xe(br))return!0}return!1}},ue=(function(){var be={a:et};function qe(De,Je){var Rt;return ue=De.exports,ie=ue.e,qr(),Rt=ue.f,hr.unshift(Rt),(function(Vt){if(er--,V.monitorRunDependencies?.(er),er==0&&(pr!==null&&(clearInterval(pr),pr=null),mn)){var br=mn;mn=null,br()}})(),ue}if(er++,V.monitorRunDependencies?.(er),V.instantiateWasm)try{return V.instantiateWasm(be,qe)}catch(De){return ve(`Module.instantiateWasm callback failed with error: ${De}`),!1}return dr||(dr="<<< WASM_BINARY_FILE >>>"),(function(De,Je,Rt){(function(Vt){return Promise.resolve().then((()=>(function(br){if(br==dr&&zr)return new Uint8Array(zr);if(Le)return Le(br);throw"both async and sync fetching of the wasm failed"})(Vt)))})(De).then((Vt=>_e.instantiate(Vt,Je))).then(Rt,(Vt=>{ve(`failed to asynchronously prepare wasm: ${Vt}`),Xt(Vt)}))})(dr,be,(function(De){qe(De.instance)})),{}})();function je(){function be(){In||(In=!0,V.calledRun=!0,Yt||(fr(hr),V.onRuntimeInitialized?.(),(function(){if(V.postRun)for(typeof V.postRun=="function"&&(V.postRun=[V.postRun]);V.postRun.length;)qe=V.postRun.shift(),Cn.unshift(qe);var qe;fr(Cn)})()))}er>0||((function(){if(V.preRun)for(typeof V.preRun=="function"&&(V.preRun=[V.preRun]);V.preRun.length;)qe=V.preRun.shift(),tr.unshift(qe);var qe;fr(tr)})(),er>0||(V.setStatus?(V.setStatus("Running..."),setTimeout((function(){setTimeout((function(){V.setStatus("")}),1),be()}),1)):be()))}if(V._crypto_aead_aegis128l_keybytes=()=>(V._crypto_aead_aegis128l_keybytes=ue.g)(),V._crypto_aead_aegis128l_nsecbytes=()=>(V._crypto_aead_aegis128l_nsecbytes=ue.h)(),V._crypto_aead_aegis128l_npubbytes=()=>(V._crypto_aead_aegis128l_npubbytes=ue.i)(),V._crypto_aead_aegis128l_abytes=()=>(V._crypto_aead_aegis128l_abytes=ue.j)(),V._crypto_aead_aegis128l_messagebytes_max=()=>(V._crypto_aead_aegis128l_messagebytes_max=ue.k)(),V._crypto_aead_aegis128l_keygen=be=>(V._crypto_aead_aegis128l_keygen=ue.l)(be),V._crypto_aead_aegis128l_encrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_aegis128l_encrypt=ue.m)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_aegis128l_encrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a)=>(V._crypto_aead_aegis128l_encrypt_detached=ue.n)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a),V._crypto_aead_aegis128l_decrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_aegis128l_decrypt=ue.o)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_aegis128l_decrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_aegis128l_decrypt_detached=ue.p)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_aegis256_keybytes=()=>(V._crypto_aead_aegis256_keybytes=ue.q)(),V._crypto_aead_aegis256_nsecbytes=()=>(V._crypto_aead_aegis256_nsecbytes=ue.r)(),V._crypto_aead_aegis256_npubbytes=()=>(V._crypto_aead_aegis256_npubbytes=ue.s)(),V._crypto_aead_aegis256_abytes=()=>(V._crypto_aead_aegis256_abytes=ue.t)(),V._crypto_aead_aegis256_messagebytes_max=()=>(V._crypto_aead_aegis256_messagebytes_max=ue.u)(),V._crypto_aead_aegis256_keygen=be=>(V._crypto_aead_aegis256_keygen=ue.v)(be),V._crypto_aead_aegis256_encrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_aegis256_encrypt=ue.w)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_aegis256_encrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a)=>(V._crypto_aead_aegis256_encrypt_detached=ue.x)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a),V._crypto_aead_aegis256_decrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_aegis256_decrypt=ue.y)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_aegis256_decrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_aegis256_decrypt_detached=ue.z)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_aes256gcm_is_available=()=>(V._crypto_aead_aes256gcm_is_available=ue.A)(),V._crypto_aead_chacha20poly1305_encrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a)=>(V._crypto_aead_chacha20poly1305_encrypt_detached=ue.B)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a),V._crypto_aead_chacha20poly1305_encrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_chacha20poly1305_encrypt=ue.C)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_chacha20poly1305_ietf_encrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a)=>(V._crypto_aead_chacha20poly1305_ietf_encrypt_detached=ue.D)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a),V._crypto_aead_chacha20poly1305_ietf_encrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_chacha20poly1305_ietf_encrypt=ue.E)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_chacha20poly1305_decrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_chacha20poly1305_decrypt_detached=ue.F)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_chacha20poly1305_decrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_chacha20poly1305_decrypt=ue.G)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_chacha20poly1305_ietf_decrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_chacha20poly1305_ietf_decrypt_detached=ue.H)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_chacha20poly1305_ietf_decrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_chacha20poly1305_ietf_decrypt=ue.I)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_chacha20poly1305_ietf_keybytes=()=>(V._crypto_aead_chacha20poly1305_ietf_keybytes=ue.J)(),V._crypto_aead_chacha20poly1305_ietf_npubbytes=()=>(V._crypto_aead_chacha20poly1305_ietf_npubbytes=ue.K)(),V._crypto_aead_chacha20poly1305_ietf_nsecbytes=()=>(V._crypto_aead_chacha20poly1305_ietf_nsecbytes=ue.L)(),V._crypto_aead_chacha20poly1305_ietf_abytes=()=>(V._crypto_aead_chacha20poly1305_ietf_abytes=ue.M)(),V._crypto_aead_chacha20poly1305_ietf_messagebytes_max=()=>(V._crypto_aead_chacha20poly1305_ietf_messagebytes_max=ue.N)(),V._crypto_aead_chacha20poly1305_ietf_keygen=be=>(V._crypto_aead_chacha20poly1305_ietf_keygen=ue.O)(be),V._crypto_aead_chacha20poly1305_keybytes=()=>(V._crypto_aead_chacha20poly1305_keybytes=ue.P)(),V._crypto_aead_chacha20poly1305_npubbytes=()=>(V._crypto_aead_chacha20poly1305_npubbytes=ue.Q)(),V._crypto_aead_chacha20poly1305_nsecbytes=()=>(V._crypto_aead_chacha20poly1305_nsecbytes=ue.R)(),V._crypto_aead_chacha20poly1305_abytes=()=>(V._crypto_aead_chacha20poly1305_abytes=ue.S)(),V._crypto_aead_chacha20poly1305_messagebytes_max=()=>(V._crypto_aead_chacha20poly1305_messagebytes_max=ue.T)(),V._crypto_aead_chacha20poly1305_keygen=be=>(V._crypto_aead_chacha20poly1305_keygen=ue.U)(be),V._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a)=>(V._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=ue.V)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a),V._crypto_aead_xchacha20poly1305_ietf_encrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_xchacha20poly1305_ietf_encrypt=ue.W)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=ue.X)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_xchacha20poly1305_ietf_decrypt=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_aead_xchacha20poly1305_ietf_decrypt=ue.Y)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_aead_xchacha20poly1305_ietf_keybytes=()=>(V._crypto_aead_xchacha20poly1305_ietf_keybytes=ue.Z)(),V._crypto_aead_xchacha20poly1305_ietf_npubbytes=()=>(V._crypto_aead_xchacha20poly1305_ietf_npubbytes=ue._)(),V._crypto_aead_xchacha20poly1305_ietf_nsecbytes=()=>(V._crypto_aead_xchacha20poly1305_ietf_nsecbytes=ue.$)(),V._crypto_aead_xchacha20poly1305_ietf_abytes=()=>(V._crypto_aead_xchacha20poly1305_ietf_abytes=ue.aa)(),V._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=()=>(V._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=ue.ba)(),V._crypto_aead_xchacha20poly1305_ietf_keygen=be=>(V._crypto_aead_xchacha20poly1305_ietf_keygen=ue.ca)(be),V._crypto_auth_bytes=()=>(V._crypto_auth_bytes=ue.da)(),V._crypto_auth_keybytes=()=>(V._crypto_auth_keybytes=ue.ea)(),V._crypto_auth_primitive=()=>(V._crypto_auth_primitive=ue.fa)(),V._crypto_auth=(be,qe,De,Je,Rt)=>(V._crypto_auth=ue.ga)(be,qe,De,Je,Rt),V._crypto_auth_verify=(be,qe,De,Je,Rt)=>(V._crypto_auth_verify=ue.ha)(be,qe,De,Je,Rt),V._crypto_auth_keygen=be=>(V._crypto_auth_keygen=ue.ia)(be),V._crypto_auth_hmacsha256_bytes=()=>(V._crypto_auth_hmacsha256_bytes=ue.ja)(),V._crypto_auth_hmacsha256_keybytes=()=>(V._crypto_auth_hmacsha256_keybytes=ue.ka)(),V._crypto_auth_hmacsha256_statebytes=()=>(V._crypto_auth_hmacsha256_statebytes=ue.la)(),V._crypto_auth_hmacsha256_keygen=be=>(V._crypto_auth_hmacsha256_keygen=ue.ma)(be),V._crypto_auth_hmacsha256_init=(be,qe,De)=>(V._crypto_auth_hmacsha256_init=ue.na)(be,qe,De),V._crypto_auth_hmacsha256_update=(be,qe,De,Je)=>(V._crypto_auth_hmacsha256_update=ue.oa)(be,qe,De,Je),V._crypto_auth_hmacsha256_final=(be,qe)=>(V._crypto_auth_hmacsha256_final=ue.pa)(be,qe),V._crypto_auth_hmacsha256=(be,qe,De,Je,Rt)=>(V._crypto_auth_hmacsha256=ue.qa)(be,qe,De,Je,Rt),V._crypto_auth_hmacsha256_verify=(be,qe,De,Je,Rt)=>(V._crypto_auth_hmacsha256_verify=ue.ra)(be,qe,De,Je,Rt),V._crypto_auth_hmacsha512_bytes=()=>(V._crypto_auth_hmacsha512_bytes=ue.sa)(),V._crypto_auth_hmacsha512_keybytes=()=>(V._crypto_auth_hmacsha512_keybytes=ue.ta)(),V._crypto_auth_hmacsha512_statebytes=()=>(V._crypto_auth_hmacsha512_statebytes=ue.ua)(),V._crypto_auth_hmacsha512_keygen=be=>(V._crypto_auth_hmacsha512_keygen=ue.va)(be),V._crypto_auth_hmacsha512_init=(be,qe,De)=>(V._crypto_auth_hmacsha512_init=ue.wa)(be,qe,De),V._crypto_auth_hmacsha512_update=(be,qe,De,Je)=>(V._crypto_auth_hmacsha512_update=ue.xa)(be,qe,De,Je),V._crypto_auth_hmacsha512_final=(be,qe)=>(V._crypto_auth_hmacsha512_final=ue.ya)(be,qe),V._crypto_auth_hmacsha512=(be,qe,De,Je,Rt)=>(V._crypto_auth_hmacsha512=ue.za)(be,qe,De,Je,Rt),V._crypto_auth_hmacsha512_verify=(be,qe,De,Je,Rt)=>(V._crypto_auth_hmacsha512_verify=ue.Aa)(be,qe,De,Je,Rt),V._crypto_auth_hmacsha512256_bytes=()=>(V._crypto_auth_hmacsha512256_bytes=ue.Ba)(),V._crypto_auth_hmacsha512256_keybytes=()=>(V._crypto_auth_hmacsha512256_keybytes=ue.Ca)(),V._crypto_auth_hmacsha512256_statebytes=()=>(V._crypto_auth_hmacsha512256_statebytes=ue.Da)(),V._crypto_auth_hmacsha512256_keygen=be=>(V._crypto_auth_hmacsha512256_keygen=ue.Ea)(be),V._crypto_auth_hmacsha512256_init=(be,qe,De)=>(V._crypto_auth_hmacsha512256_init=ue.Fa)(be,qe,De),V._crypto_auth_hmacsha512256_update=(be,qe,De,Je)=>(V._crypto_auth_hmacsha512256_update=ue.Ga)(be,qe,De,Je),V._crypto_auth_hmacsha512256_final=(be,qe)=>(V._crypto_auth_hmacsha512256_final=ue.Ha)(be,qe),V._crypto_auth_hmacsha512256=(be,qe,De,Je,Rt)=>(V._crypto_auth_hmacsha512256=ue.Ia)(be,qe,De,Je,Rt),V._crypto_auth_hmacsha512256_verify=(be,qe,De,Je,Rt)=>(V._crypto_auth_hmacsha512256_verify=ue.Ja)(be,qe,De,Je,Rt),V._crypto_box_seedbytes=()=>(V._crypto_box_seedbytes=ue.Ka)(),V._crypto_box_publickeybytes=()=>(V._crypto_box_publickeybytes=ue.La)(),V._crypto_box_secretkeybytes=()=>(V._crypto_box_secretkeybytes=ue.Ma)(),V._crypto_box_beforenmbytes=()=>(V._crypto_box_beforenmbytes=ue.Na)(),V._crypto_box_noncebytes=()=>(V._crypto_box_noncebytes=ue.Oa)(),V._crypto_box_zerobytes=()=>(V._crypto_box_zerobytes=ue.Pa)(),V._crypto_box_boxzerobytes=()=>(V._crypto_box_boxzerobytes=ue.Qa)(),V._crypto_box_macbytes=()=>(V._crypto_box_macbytes=ue.Ra)(),V._crypto_box_messagebytes_max=()=>(V._crypto_box_messagebytes_max=ue.Sa)(),V._crypto_box_primitive=()=>(V._crypto_box_primitive=ue.Ta)(),V._crypto_box_seed_keypair=(be,qe,De)=>(V._crypto_box_seed_keypair=ue.Ua)(be,qe,De),V._crypto_box_keypair=(be,qe)=>(V._crypto_box_keypair=ue.Va)(be,qe),V._crypto_box_beforenm=(be,qe,De)=>(V._crypto_box_beforenm=ue.Wa)(be,qe,De),V._crypto_box_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_afternm=ue.Xa)(be,qe,De,Je,Rt,Vt),V._crypto_box_open_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_open_afternm=ue.Ya)(be,qe,De,Je,Rt,Vt),V._crypto_box=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box=ue.Za)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_open=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_open=ue._a)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_detached_afternm=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_detached_afternm=ue.$a)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_detached=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_box_detached=ue.ab)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_box_easy_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_easy_afternm=ue.bb)(be,qe,De,Je,Rt,Vt),V._crypto_box_easy=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_easy=ue.cb)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_open_detached_afternm=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_open_detached_afternm=ue.db)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_open_detached=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_box_open_detached=ue.eb)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_box_open_easy_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_open_easy_afternm=ue.fb)(be,qe,De,Je,Rt,Vt),V._crypto_box_open_easy=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_open_easy=ue.gb)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_seal=(be,qe,De,Je,Rt)=>(V._crypto_box_seal=ue.hb)(be,qe,De,Je,Rt),V._crypto_box_seal_open=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_seal_open=ue.ib)(be,qe,De,Je,Rt,Vt),V._crypto_box_sealbytes=()=>(V._crypto_box_sealbytes=ue.jb)(),V._crypto_box_curve25519xsalsa20poly1305_seed_keypair=(be,qe,De)=>(V._crypto_box_curve25519xsalsa20poly1305_seed_keypair=ue.kb)(be,qe,De),V._crypto_box_curve25519xsalsa20poly1305_keypair=(be,qe)=>(V._crypto_box_curve25519xsalsa20poly1305_keypair=ue.lb)(be,qe),V._crypto_box_curve25519xsalsa20poly1305_beforenm=(be,qe,De)=>(V._crypto_box_curve25519xsalsa20poly1305_beforenm=ue.mb)(be,qe,De),V._crypto_box_curve25519xsalsa20poly1305_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_curve25519xsalsa20poly1305_afternm=ue.nb)(be,qe,De,Je,Rt,Vt),V._crypto_box_curve25519xsalsa20poly1305_open_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_curve25519xsalsa20poly1305_open_afternm=ue.ob)(be,qe,De,Je,Rt,Vt),V._crypto_box_curve25519xsalsa20poly1305=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_curve25519xsalsa20poly1305=ue.pb)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_curve25519xsalsa20poly1305_open=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_curve25519xsalsa20poly1305_open=ue.qb)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_curve25519xsalsa20poly1305_seedbytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_seedbytes=ue.rb)(),V._crypto_box_curve25519xsalsa20poly1305_publickeybytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_publickeybytes=ue.sb)(),V._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=ue.tb)(),V._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=ue.ub)(),V._crypto_box_curve25519xsalsa20poly1305_noncebytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_noncebytes=ue.vb)(),V._crypto_box_curve25519xsalsa20poly1305_zerobytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_zerobytes=ue.wb)(),V._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=ue.xb)(),V._crypto_box_curve25519xsalsa20poly1305_macbytes=()=>(V._crypto_box_curve25519xsalsa20poly1305_macbytes=ue.yb)(),V._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=()=>(V._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=ue.zb)(),V._crypto_core_hchacha20=(be,qe,De,Je)=>(V._crypto_core_hchacha20=ue.Ab)(be,qe,De,Je),V._crypto_core_hchacha20_outputbytes=()=>(V._crypto_core_hchacha20_outputbytes=ue.Bb)(),V._crypto_core_hchacha20_inputbytes=()=>(V._crypto_core_hchacha20_inputbytes=ue.Cb)(),V._crypto_core_hchacha20_keybytes=()=>(V._crypto_core_hchacha20_keybytes=ue.Db)(),V._crypto_core_hchacha20_constbytes=()=>(V._crypto_core_hchacha20_constbytes=ue.Eb)(),V._crypto_core_hsalsa20=(be,qe,De,Je)=>(V._crypto_core_hsalsa20=ue.Fb)(be,qe,De,Je),V._crypto_core_hsalsa20_outputbytes=()=>(V._crypto_core_hsalsa20_outputbytes=ue.Gb)(),V._crypto_core_hsalsa20_inputbytes=()=>(V._crypto_core_hsalsa20_inputbytes=ue.Hb)(),V._crypto_core_hsalsa20_keybytes=()=>(V._crypto_core_hsalsa20_keybytes=ue.Ib)(),V._crypto_core_hsalsa20_constbytes=()=>(V._crypto_core_hsalsa20_constbytes=ue.Jb)(),V._crypto_core_salsa20=(be,qe,De,Je)=>(V._crypto_core_salsa20=ue.Kb)(be,qe,De,Je),V._crypto_core_salsa20_outputbytes=()=>(V._crypto_core_salsa20_outputbytes=ue.Lb)(),V._crypto_core_salsa20_inputbytes=()=>(V._crypto_core_salsa20_inputbytes=ue.Mb)(),V._crypto_core_salsa20_keybytes=()=>(V._crypto_core_salsa20_keybytes=ue.Nb)(),V._crypto_core_salsa20_constbytes=()=>(V._crypto_core_salsa20_constbytes=ue.Ob)(),V._crypto_core_salsa2012=(be,qe,De,Je)=>(V._crypto_core_salsa2012=ue.Pb)(be,qe,De,Je),V._crypto_core_salsa2012_outputbytes=()=>(V._crypto_core_salsa2012_outputbytes=ue.Qb)(),V._crypto_core_salsa2012_inputbytes=()=>(V._crypto_core_salsa2012_inputbytes=ue.Rb)(),V._crypto_core_salsa2012_keybytes=()=>(V._crypto_core_salsa2012_keybytes=ue.Sb)(),V._crypto_core_salsa2012_constbytes=()=>(V._crypto_core_salsa2012_constbytes=ue.Tb)(),V._crypto_core_salsa208=(be,qe,De,Je)=>(V._crypto_core_salsa208=ue.Ub)(be,qe,De,Je),V._crypto_core_salsa208_outputbytes=()=>(V._crypto_core_salsa208_outputbytes=ue.Vb)(),V._crypto_core_salsa208_inputbytes=()=>(V._crypto_core_salsa208_inputbytes=ue.Wb)(),V._crypto_core_salsa208_keybytes=()=>(V._crypto_core_salsa208_keybytes=ue.Xb)(),V._crypto_core_salsa208_constbytes=()=>(V._crypto_core_salsa208_constbytes=ue.Yb)(),V._crypto_generichash_bytes_min=()=>(V._crypto_generichash_bytes_min=ue.Zb)(),V._crypto_generichash_bytes_max=()=>(V._crypto_generichash_bytes_max=ue._b)(),V._crypto_generichash_bytes=()=>(V._crypto_generichash_bytes=ue.$b)(),V._crypto_generichash_keybytes_min=()=>(V._crypto_generichash_keybytes_min=ue.ac)(),V._crypto_generichash_keybytes_max=()=>(V._crypto_generichash_keybytes_max=ue.bc)(),V._crypto_generichash_keybytes=()=>(V._crypto_generichash_keybytes=ue.cc)(),V._crypto_generichash_primitive=()=>(V._crypto_generichash_primitive=ue.dc)(),V._crypto_generichash_statebytes=()=>(V._crypto_generichash_statebytes=ue.ec)(),V._crypto_generichash=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_generichash=ue.fc)(be,qe,De,Je,Rt,Vt,br),V._crypto_generichash_init=(be,qe,De,Je)=>(V._crypto_generichash_init=ue.gc)(be,qe,De,Je),V._crypto_generichash_update=(be,qe,De,Je)=>(V._crypto_generichash_update=ue.hc)(be,qe,De,Je),V._crypto_generichash_final=(be,qe,De)=>(V._crypto_generichash_final=ue.ic)(be,qe,De),V._crypto_generichash_keygen=be=>(V._crypto_generichash_keygen=ue.jc)(be),V._crypto_generichash_blake2b_bytes_min=()=>(V._crypto_generichash_blake2b_bytes_min=ue.kc)(),V._crypto_generichash_blake2b_bytes_max=()=>(V._crypto_generichash_blake2b_bytes_max=ue.lc)(),V._crypto_generichash_blake2b_bytes=()=>(V._crypto_generichash_blake2b_bytes=ue.mc)(),V._crypto_generichash_blake2b_keybytes_min=()=>(V._crypto_generichash_blake2b_keybytes_min=ue.nc)(),V._crypto_generichash_blake2b_keybytes_max=()=>(V._crypto_generichash_blake2b_keybytes_max=ue.oc)(),V._crypto_generichash_blake2b_keybytes=()=>(V._crypto_generichash_blake2b_keybytes=ue.pc)(),V._crypto_generichash_blake2b_saltbytes=()=>(V._crypto_generichash_blake2b_saltbytes=ue.qc)(),V._crypto_generichash_blake2b_personalbytes=()=>(V._crypto_generichash_blake2b_personalbytes=ue.rc)(),V._crypto_generichash_blake2b_statebytes=()=>(V._crypto_generichash_blake2b_statebytes=ue.sc)(),V._crypto_generichash_blake2b_keygen=be=>(V._crypto_generichash_blake2b_keygen=ue.tc)(be),V._crypto_generichash_blake2b=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_generichash_blake2b=ue.uc)(be,qe,De,Je,Rt,Vt,br),V._crypto_generichash_blake2b_salt_personal=(be,qe,De,Je,Rt,Vt,br,Rr,Dr)=>(V._crypto_generichash_blake2b_salt_personal=ue.vc)(be,qe,De,Je,Rt,Vt,br,Rr,Dr),V._crypto_generichash_blake2b_init=(be,qe,De,Je)=>(V._crypto_generichash_blake2b_init=ue.wc)(be,qe,De,Je),V._crypto_generichash_blake2b_init_salt_personal=(be,qe,De,Je,Rt,Vt)=>(V._crypto_generichash_blake2b_init_salt_personal=ue.xc)(be,qe,De,Je,Rt,Vt),V._crypto_generichash_blake2b_update=(be,qe,De,Je)=>(V._crypto_generichash_blake2b_update=ue.yc)(be,qe,De,Je),V._crypto_generichash_blake2b_final=(be,qe,De)=>(V._crypto_generichash_blake2b_final=ue.zc)(be,qe,De),V._crypto_hash_bytes=()=>(V._crypto_hash_bytes=ue.Ac)(),V._crypto_hash=(be,qe,De,Je)=>(V._crypto_hash=ue.Bc)(be,qe,De,Je),V._crypto_hash_primitive=()=>(V._crypto_hash_primitive=ue.Cc)(),V._crypto_hash_sha256_bytes=()=>(V._crypto_hash_sha256_bytes=ue.Dc)(),V._crypto_hash_sha256_statebytes=()=>(V._crypto_hash_sha256_statebytes=ue.Ec)(),V._crypto_hash_sha256_init=be=>(V._crypto_hash_sha256_init=ue.Fc)(be),V._crypto_hash_sha256_update=(be,qe,De,Je)=>(V._crypto_hash_sha256_update=ue.Gc)(be,qe,De,Je),V._crypto_hash_sha256_final=(be,qe)=>(V._crypto_hash_sha256_final=ue.Hc)(be,qe),V._crypto_hash_sha256=(be,qe,De,Je)=>(V._crypto_hash_sha256=ue.Ic)(be,qe,De,Je),V._crypto_hash_sha512_bytes=()=>(V._crypto_hash_sha512_bytes=ue.Jc)(),V._crypto_hash_sha512_statebytes=()=>(V._crypto_hash_sha512_statebytes=ue.Kc)(),V._crypto_hash_sha512_init=be=>(V._crypto_hash_sha512_init=ue.Lc)(be),V._crypto_hash_sha512_update=(be,qe,De,Je)=>(V._crypto_hash_sha512_update=ue.Mc)(be,qe,De,Je),V._crypto_hash_sha512_final=(be,qe)=>(V._crypto_hash_sha512_final=ue.Nc)(be,qe),V._crypto_hash_sha512=(be,qe,De,Je)=>(V._crypto_hash_sha512=ue.Oc)(be,qe,De,Je),V._crypto_kdf_blake2b_bytes_min=()=>(V._crypto_kdf_blake2b_bytes_min=ue.Pc)(),V._crypto_kdf_blake2b_bytes_max=()=>(V._crypto_kdf_blake2b_bytes_max=ue.Qc)(),V._crypto_kdf_blake2b_contextbytes=()=>(V._crypto_kdf_blake2b_contextbytes=ue.Rc)(),V._crypto_kdf_blake2b_keybytes=()=>(V._crypto_kdf_blake2b_keybytes=ue.Sc)(),V._crypto_kdf_blake2b_derive_from_key=(be,qe,De,Je,Rt,Vt)=>(V._crypto_kdf_blake2b_derive_from_key=ue.Tc)(be,qe,De,Je,Rt,Vt),V._crypto_kdf_primitive=()=>(V._crypto_kdf_primitive=ue.Uc)(),V._crypto_kdf_bytes_min=()=>(V._crypto_kdf_bytes_min=ue.Vc)(),V._crypto_kdf_bytes_max=()=>(V._crypto_kdf_bytes_max=ue.Wc)(),V._crypto_kdf_contextbytes=()=>(V._crypto_kdf_contextbytes=ue.Xc)(),V._crypto_kdf_keybytes=()=>(V._crypto_kdf_keybytes=ue.Yc)(),V._crypto_kdf_derive_from_key=(be,qe,De,Je,Rt,Vt)=>(V._crypto_kdf_derive_from_key=ue.Zc)(be,qe,De,Je,Rt,Vt),V._crypto_kdf_keygen=be=>(V._crypto_kdf_keygen=ue._c)(be),V._crypto_kdf_hkdf_sha256_extract_init=(be,qe,De)=>(V._crypto_kdf_hkdf_sha256_extract_init=ue.$c)(be,qe,De),V._crypto_kdf_hkdf_sha256_extract_update=(be,qe,De)=>(V._crypto_kdf_hkdf_sha256_extract_update=ue.ad)(be,qe,De),V._crypto_kdf_hkdf_sha256_extract_final=(be,qe)=>(V._crypto_kdf_hkdf_sha256_extract_final=ue.bd)(be,qe),V._crypto_kdf_hkdf_sha256_extract=(be,qe,De,Je,Rt)=>(V._crypto_kdf_hkdf_sha256_extract=ue.cd)(be,qe,De,Je,Rt),V._crypto_kdf_hkdf_sha256_keygen=be=>(V._crypto_kdf_hkdf_sha256_keygen=ue.dd)(be),V._crypto_kdf_hkdf_sha256_expand=(be,qe,De,Je,Rt)=>(V._crypto_kdf_hkdf_sha256_expand=ue.ed)(be,qe,De,Je,Rt),V._crypto_kdf_hkdf_sha256_keybytes=()=>(V._crypto_kdf_hkdf_sha256_keybytes=ue.fd)(),V._crypto_kdf_hkdf_sha256_bytes_min=()=>(V._crypto_kdf_hkdf_sha256_bytes_min=ue.gd)(),V._crypto_kdf_hkdf_sha256_bytes_max=()=>(V._crypto_kdf_hkdf_sha256_bytes_max=ue.hd)(),V._crypto_kdf_hkdf_sha256_statebytes=()=>(V._crypto_kdf_hkdf_sha256_statebytes=ue.id)(),V._crypto_kdf_hkdf_sha512_extract_init=(be,qe,De)=>(V._crypto_kdf_hkdf_sha512_extract_init=ue.jd)(be,qe,De),V._crypto_kdf_hkdf_sha512_extract_update=(be,qe,De)=>(V._crypto_kdf_hkdf_sha512_extract_update=ue.kd)(be,qe,De),V._crypto_kdf_hkdf_sha512_extract_final=(be,qe)=>(V._crypto_kdf_hkdf_sha512_extract_final=ue.ld)(be,qe),V._crypto_kdf_hkdf_sha512_extract=(be,qe,De,Je,Rt)=>(V._crypto_kdf_hkdf_sha512_extract=ue.md)(be,qe,De,Je,Rt),V._crypto_kdf_hkdf_sha512_keygen=be=>(V._crypto_kdf_hkdf_sha512_keygen=ue.nd)(be),V._crypto_kdf_hkdf_sha512_expand=(be,qe,De,Je,Rt)=>(V._crypto_kdf_hkdf_sha512_expand=ue.od)(be,qe,De,Je,Rt),V._crypto_kdf_hkdf_sha512_keybytes=()=>(V._crypto_kdf_hkdf_sha512_keybytes=ue.pd)(),V._crypto_kdf_hkdf_sha512_bytes_min=()=>(V._crypto_kdf_hkdf_sha512_bytes_min=ue.qd)(),V._crypto_kdf_hkdf_sha512_bytes_max=()=>(V._crypto_kdf_hkdf_sha512_bytes_max=ue.rd)(),V._crypto_kdf_hkdf_sha512_statebytes=()=>(V._crypto_kdf_hkdf_sha512_statebytes=ue.sd)(),V._crypto_kx_seed_keypair=(be,qe,De)=>(V._crypto_kx_seed_keypair=ue.td)(be,qe,De),V._crypto_kx_keypair=(be,qe)=>(V._crypto_kx_keypair=ue.ud)(be,qe),V._crypto_kx_client_session_keys=(be,qe,De,Je,Rt)=>(V._crypto_kx_client_session_keys=ue.vd)(be,qe,De,Je,Rt),V._crypto_kx_server_session_keys=(be,qe,De,Je,Rt)=>(V._crypto_kx_server_session_keys=ue.wd)(be,qe,De,Je,Rt),V._crypto_kx_publickeybytes=()=>(V._crypto_kx_publickeybytes=ue.xd)(),V._crypto_kx_secretkeybytes=()=>(V._crypto_kx_secretkeybytes=ue.yd)(),V._crypto_kx_seedbytes=()=>(V._crypto_kx_seedbytes=ue.zd)(),V._crypto_kx_sessionkeybytes=()=>(V._crypto_kx_sessionkeybytes=ue.Ad)(),V._crypto_kx_primitive=()=>(V._crypto_kx_primitive=ue.Bd)(),V._crypto_onetimeauth_statebytes=()=>(V._crypto_onetimeauth_statebytes=ue.Cd)(),V._crypto_onetimeauth_bytes=()=>(V._crypto_onetimeauth_bytes=ue.Dd)(),V._crypto_onetimeauth_keybytes=()=>(V._crypto_onetimeauth_keybytes=ue.Ed)(),V._crypto_onetimeauth=(be,qe,De,Je,Rt)=>(V._crypto_onetimeauth=ue.Fd)(be,qe,De,Je,Rt),V._crypto_onetimeauth_verify=(be,qe,De,Je,Rt)=>(V._crypto_onetimeauth_verify=ue.Gd)(be,qe,De,Je,Rt),V._crypto_onetimeauth_init=(be,qe)=>(V._crypto_onetimeauth_init=ue.Hd)(be,qe),V._crypto_onetimeauth_update=(be,qe,De,Je)=>(V._crypto_onetimeauth_update=ue.Id)(be,qe,De,Je),V._crypto_onetimeauth_final=(be,qe)=>(V._crypto_onetimeauth_final=ue.Jd)(be,qe),V._crypto_onetimeauth_primitive=()=>(V._crypto_onetimeauth_primitive=ue.Kd)(),V._crypto_onetimeauth_keygen=be=>(V._crypto_onetimeauth_keygen=ue.Ld)(be),V._crypto_onetimeauth_poly1305=(be,qe,De,Je,Rt)=>(V._crypto_onetimeauth_poly1305=ue.Md)(be,qe,De,Je,Rt),V._crypto_onetimeauth_poly1305_verify=(be,qe,De,Je,Rt)=>(V._crypto_onetimeauth_poly1305_verify=ue.Nd)(be,qe,De,Je,Rt),V._crypto_onetimeauth_poly1305_init=(be,qe)=>(V._crypto_onetimeauth_poly1305_init=ue.Od)(be,qe),V._crypto_onetimeauth_poly1305_update=(be,qe,De,Je)=>(V._crypto_onetimeauth_poly1305_update=ue.Pd)(be,qe,De,Je),V._crypto_onetimeauth_poly1305_final=(be,qe)=>(V._crypto_onetimeauth_poly1305_final=ue.Qd)(be,qe),V._crypto_onetimeauth_poly1305_bytes=()=>(V._crypto_onetimeauth_poly1305_bytes=ue.Rd)(),V._crypto_onetimeauth_poly1305_keybytes=()=>(V._crypto_onetimeauth_poly1305_keybytes=ue.Sd)(),V._crypto_onetimeauth_poly1305_statebytes=()=>(V._crypto_onetimeauth_poly1305_statebytes=ue.Td)(),V._crypto_onetimeauth_poly1305_keygen=be=>(V._crypto_onetimeauth_poly1305_keygen=ue.Ud)(be),V._crypto_pwhash_argon2i_alg_argon2i13=()=>(V._crypto_pwhash_argon2i_alg_argon2i13=ue.Vd)(),V._crypto_pwhash_argon2i_bytes_min=()=>(V._crypto_pwhash_argon2i_bytes_min=ue.Wd)(),V._crypto_pwhash_argon2i_bytes_max=()=>(V._crypto_pwhash_argon2i_bytes_max=ue.Xd)(),V._crypto_pwhash_argon2i_passwd_min=()=>(V._crypto_pwhash_argon2i_passwd_min=ue.Yd)(),V._crypto_pwhash_argon2i_passwd_max=()=>(V._crypto_pwhash_argon2i_passwd_max=ue.Zd)(),V._crypto_pwhash_argon2i_saltbytes=()=>(V._crypto_pwhash_argon2i_saltbytes=ue._d)(),V._crypto_pwhash_argon2i_strbytes=()=>(V._crypto_pwhash_argon2i_strbytes=ue.$d)(),V._crypto_pwhash_argon2i_strprefix=()=>(V._crypto_pwhash_argon2i_strprefix=ue.ae)(),V._crypto_pwhash_argon2i_opslimit_min=()=>(V._crypto_pwhash_argon2i_opslimit_min=ue.be)(),V._crypto_pwhash_argon2i_opslimit_max=()=>(V._crypto_pwhash_argon2i_opslimit_max=ue.ce)(),V._crypto_pwhash_argon2i_memlimit_min=()=>(V._crypto_pwhash_argon2i_memlimit_min=ue.de)(),V._crypto_pwhash_argon2i_memlimit_max=()=>(V._crypto_pwhash_argon2i_memlimit_max=ue.ee)(),V._crypto_pwhash_argon2i_opslimit_interactive=()=>(V._crypto_pwhash_argon2i_opslimit_interactive=ue.fe)(),V._crypto_pwhash_argon2i_memlimit_interactive=()=>(V._crypto_pwhash_argon2i_memlimit_interactive=ue.ge)(),V._crypto_pwhash_argon2i_opslimit_moderate=()=>(V._crypto_pwhash_argon2i_opslimit_moderate=ue.he)(),V._crypto_pwhash_argon2i_memlimit_moderate=()=>(V._crypto_pwhash_argon2i_memlimit_moderate=ue.ie)(),V._crypto_pwhash_argon2i_opslimit_sensitive=()=>(V._crypto_pwhash_argon2i_opslimit_sensitive=ue.je)(),V._crypto_pwhash_argon2i_memlimit_sensitive=()=>(V._crypto_pwhash_argon2i_memlimit_sensitive=ue.ke)(),V._crypto_pwhash_argon2i=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_pwhash_argon2i=ue.le)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_pwhash_argon2i_str=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_pwhash_argon2i_str=ue.me)(be,qe,De,Je,Rt,Vt,br),V._crypto_pwhash_argon2i_str_verify=(be,qe,De,Je)=>(V._crypto_pwhash_argon2i_str_verify=ue.ne)(be,qe,De,Je),V._crypto_pwhash_argon2i_str_needs_rehash=(be,qe,De,Je)=>(V._crypto_pwhash_argon2i_str_needs_rehash=ue.oe)(be,qe,De,Je),V._crypto_pwhash_argon2id_str_needs_rehash=(be,qe,De,Je)=>(V._crypto_pwhash_argon2id_str_needs_rehash=ue.pe)(be,qe,De,Je),V._crypto_pwhash_argon2id_alg_argon2id13=()=>(V._crypto_pwhash_argon2id_alg_argon2id13=ue.qe)(),V._crypto_pwhash_argon2id_bytes_min=()=>(V._crypto_pwhash_argon2id_bytes_min=ue.re)(),V._crypto_pwhash_argon2id_bytes_max=()=>(V._crypto_pwhash_argon2id_bytes_max=ue.se)(),V._crypto_pwhash_argon2id_passwd_min=()=>(V._crypto_pwhash_argon2id_passwd_min=ue.te)(),V._crypto_pwhash_argon2id_passwd_max=()=>(V._crypto_pwhash_argon2id_passwd_max=ue.ue)(),V._crypto_pwhash_argon2id_saltbytes=()=>(V._crypto_pwhash_argon2id_saltbytes=ue.ve)(),V._crypto_pwhash_argon2id_strbytes=()=>(V._crypto_pwhash_argon2id_strbytes=ue.we)(),V._crypto_pwhash_argon2id_strprefix=()=>(V._crypto_pwhash_argon2id_strprefix=ue.xe)(),V._crypto_pwhash_argon2id_opslimit_min=()=>(V._crypto_pwhash_argon2id_opslimit_min=ue.ye)(),V._crypto_pwhash_argon2id_opslimit_max=()=>(V._crypto_pwhash_argon2id_opslimit_max=ue.ze)(),V._crypto_pwhash_argon2id_memlimit_min=()=>(V._crypto_pwhash_argon2id_memlimit_min=ue.Ae)(),V._crypto_pwhash_argon2id_memlimit_max=()=>(V._crypto_pwhash_argon2id_memlimit_max=ue.Be)(),V._crypto_pwhash_argon2id_opslimit_interactive=()=>(V._crypto_pwhash_argon2id_opslimit_interactive=ue.Ce)(),V._crypto_pwhash_argon2id_memlimit_interactive=()=>(V._crypto_pwhash_argon2id_memlimit_interactive=ue.De)(),V._crypto_pwhash_argon2id_opslimit_moderate=()=>(V._crypto_pwhash_argon2id_opslimit_moderate=ue.Ee)(),V._crypto_pwhash_argon2id_memlimit_moderate=()=>(V._crypto_pwhash_argon2id_memlimit_moderate=ue.Fe)(),V._crypto_pwhash_argon2id_opslimit_sensitive=()=>(V._crypto_pwhash_argon2id_opslimit_sensitive=ue.Ge)(),V._crypto_pwhash_argon2id_memlimit_sensitive=()=>(V._crypto_pwhash_argon2id_memlimit_sensitive=ue.He)(),V._crypto_pwhash_argon2id=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_pwhash_argon2id=ue.Ie)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_pwhash_argon2id_str=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_pwhash_argon2id_str=ue.Je)(be,qe,De,Je,Rt,Vt,br),V._crypto_pwhash_argon2id_str_verify=(be,qe,De,Je)=>(V._crypto_pwhash_argon2id_str_verify=ue.Ke)(be,qe,De,Je),V._crypto_pwhash_alg_argon2i13=()=>(V._crypto_pwhash_alg_argon2i13=ue.Le)(),V._crypto_pwhash_alg_argon2id13=()=>(V._crypto_pwhash_alg_argon2id13=ue.Me)(),V._crypto_pwhash_alg_default=()=>(V._crypto_pwhash_alg_default=ue.Ne)(),V._crypto_pwhash_bytes_min=()=>(V._crypto_pwhash_bytes_min=ue.Oe)(),V._crypto_pwhash_bytes_max=()=>(V._crypto_pwhash_bytes_max=ue.Pe)(),V._crypto_pwhash_passwd_min=()=>(V._crypto_pwhash_passwd_min=ue.Qe)(),V._crypto_pwhash_passwd_max=()=>(V._crypto_pwhash_passwd_max=ue.Re)(),V._crypto_pwhash_saltbytes=()=>(V._crypto_pwhash_saltbytes=ue.Se)(),V._crypto_pwhash_strbytes=()=>(V._crypto_pwhash_strbytes=ue.Te)(),V._crypto_pwhash_strprefix=()=>(V._crypto_pwhash_strprefix=ue.Ue)(),V._crypto_pwhash_opslimit_min=()=>(V._crypto_pwhash_opslimit_min=ue.Ve)(),V._crypto_pwhash_opslimit_max=()=>(V._crypto_pwhash_opslimit_max=ue.We)(),V._crypto_pwhash_memlimit_min=()=>(V._crypto_pwhash_memlimit_min=ue.Xe)(),V._crypto_pwhash_memlimit_max=()=>(V._crypto_pwhash_memlimit_max=ue.Ye)(),V._crypto_pwhash_opslimit_interactive=()=>(V._crypto_pwhash_opslimit_interactive=ue.Ze)(),V._crypto_pwhash_memlimit_interactive=()=>(V._crypto_pwhash_memlimit_interactive=ue._e)(),V._crypto_pwhash_opslimit_moderate=()=>(V._crypto_pwhash_opslimit_moderate=ue.$e)(),V._crypto_pwhash_memlimit_moderate=()=>(V._crypto_pwhash_memlimit_moderate=ue.af)(),V._crypto_pwhash_opslimit_sensitive=()=>(V._crypto_pwhash_opslimit_sensitive=ue.bf)(),V._crypto_pwhash_memlimit_sensitive=()=>(V._crypto_pwhash_memlimit_sensitive=ue.cf)(),V._crypto_pwhash=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k)=>(V._crypto_pwhash=ue.df)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k),V._crypto_pwhash_str=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_pwhash_str=ue.ef)(be,qe,De,Je,Rt,Vt,br),V._crypto_pwhash_str_alg=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_pwhash_str_alg=ue.ff)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_pwhash_str_verify=(be,qe,De,Je)=>(V._crypto_pwhash_str_verify=ue.gf)(be,qe,De,Je),V._crypto_pwhash_str_needs_rehash=(be,qe,De,Je)=>(V._crypto_pwhash_str_needs_rehash=ue.hf)(be,qe,De,Je),V._crypto_pwhash_primitive=()=>(V._crypto_pwhash_primitive=ue.jf)(),V._crypto_scalarmult_primitive=()=>(V._crypto_scalarmult_primitive=ue.kf)(),V._crypto_scalarmult_base=(be,qe)=>(V._crypto_scalarmult_base=ue.lf)(be,qe),V._crypto_scalarmult=(be,qe,De)=>(V._crypto_scalarmult=ue.mf)(be,qe,De),V._crypto_scalarmult_bytes=()=>(V._crypto_scalarmult_bytes=ue.nf)(),V._crypto_scalarmult_scalarbytes=()=>(V._crypto_scalarmult_scalarbytes=ue.of)(),V._crypto_scalarmult_curve25519=(be,qe,De)=>(V._crypto_scalarmult_curve25519=ue.pf)(be,qe,De),V._crypto_scalarmult_curve25519_base=(be,qe)=>(V._crypto_scalarmult_curve25519_base=ue.qf)(be,qe),V._crypto_scalarmult_curve25519_bytes=()=>(V._crypto_scalarmult_curve25519_bytes=ue.rf)(),V._crypto_scalarmult_curve25519_scalarbytes=()=>(V._crypto_scalarmult_curve25519_scalarbytes=ue.sf)(),V._crypto_secretbox_keybytes=()=>(V._crypto_secretbox_keybytes=ue.tf)(),V._crypto_secretbox_noncebytes=()=>(V._crypto_secretbox_noncebytes=ue.uf)(),V._crypto_secretbox_zerobytes=()=>(V._crypto_secretbox_zerobytes=ue.vf)(),V._crypto_secretbox_boxzerobytes=()=>(V._crypto_secretbox_boxzerobytes=ue.wf)(),V._crypto_secretbox_macbytes=()=>(V._crypto_secretbox_macbytes=ue.xf)(),V._crypto_secretbox_messagebytes_max=()=>(V._crypto_secretbox_messagebytes_max=ue.yf)(),V._crypto_secretbox_primitive=()=>(V._crypto_secretbox_primitive=ue.zf)(),V._crypto_secretbox=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox=ue.Af)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_open=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_open=ue.Bf)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_keygen=be=>(V._crypto_secretbox_keygen=ue.Cf)(be),V._crypto_secretbox_detached=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_secretbox_detached=ue.Df)(be,qe,De,Je,Rt,Vt,br),V._crypto_secretbox_easy=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_easy=ue.Ef)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_open_detached=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_secretbox_open_detached=ue.Ff)(be,qe,De,Je,Rt,Vt,br),V._crypto_secretbox_open_easy=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_open_easy=ue.Gf)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_xsalsa20poly1305=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_xsalsa20poly1305=ue.Hf)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_xsalsa20poly1305_open=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_xsalsa20poly1305_open=ue.If)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_xsalsa20poly1305_keybytes=()=>(V._crypto_secretbox_xsalsa20poly1305_keybytes=ue.Jf)(),V._crypto_secretbox_xsalsa20poly1305_noncebytes=()=>(V._crypto_secretbox_xsalsa20poly1305_noncebytes=ue.Kf)(),V._crypto_secretbox_xsalsa20poly1305_zerobytes=()=>(V._crypto_secretbox_xsalsa20poly1305_zerobytes=ue.Lf)(),V._crypto_secretbox_xsalsa20poly1305_boxzerobytes=()=>(V._crypto_secretbox_xsalsa20poly1305_boxzerobytes=ue.Mf)(),V._crypto_secretbox_xsalsa20poly1305_macbytes=()=>(V._crypto_secretbox_xsalsa20poly1305_macbytes=ue.Nf)(),V._crypto_secretbox_xsalsa20poly1305_messagebytes_max=()=>(V._crypto_secretbox_xsalsa20poly1305_messagebytes_max=ue.Of)(),V._crypto_secretbox_xsalsa20poly1305_keygen=be=>(V._crypto_secretbox_xsalsa20poly1305_keygen=ue.Pf)(be),V._crypto_secretstream_xchacha20poly1305_keygen=be=>(V._crypto_secretstream_xchacha20poly1305_keygen=ue.Qf)(be),V._crypto_secretstream_xchacha20poly1305_init_push=(be,qe,De)=>(V._crypto_secretstream_xchacha20poly1305_init_push=ue.Rf)(be,qe,De),V._crypto_secretstream_xchacha20poly1305_init_pull=(be,qe,De)=>(V._crypto_secretstream_xchacha20poly1305_init_pull=ue.Sf)(be,qe,De),V._crypto_secretstream_xchacha20poly1305_rekey=be=>(V._crypto_secretstream_xchacha20poly1305_rekey=ue.Tf)(be),V._crypto_secretstream_xchacha20poly1305_push=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr)=>(V._crypto_secretstream_xchacha20poly1305_push=ue.Uf)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr),V._crypto_secretstream_xchacha20poly1305_pull=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr)=>(V._crypto_secretstream_xchacha20poly1305_pull=ue.Vf)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr),V._crypto_secretstream_xchacha20poly1305_statebytes=()=>(V._crypto_secretstream_xchacha20poly1305_statebytes=ue.Wf)(),V._crypto_secretstream_xchacha20poly1305_abytes=()=>(V._crypto_secretstream_xchacha20poly1305_abytes=ue.Xf)(),V._crypto_secretstream_xchacha20poly1305_headerbytes=()=>(V._crypto_secretstream_xchacha20poly1305_headerbytes=ue.Yf)(),V._crypto_secretstream_xchacha20poly1305_keybytes=()=>(V._crypto_secretstream_xchacha20poly1305_keybytes=ue.Zf)(),V._crypto_secretstream_xchacha20poly1305_messagebytes_max=()=>(V._crypto_secretstream_xchacha20poly1305_messagebytes_max=ue._f)(),V._crypto_secretstream_xchacha20poly1305_tag_message=()=>(V._crypto_secretstream_xchacha20poly1305_tag_message=ue.$f)(),V._crypto_secretstream_xchacha20poly1305_tag_push=()=>(V._crypto_secretstream_xchacha20poly1305_tag_push=ue.ag)(),V._crypto_secretstream_xchacha20poly1305_tag_rekey=()=>(V._crypto_secretstream_xchacha20poly1305_tag_rekey=ue.bg)(),V._crypto_secretstream_xchacha20poly1305_tag_final=()=>(V._crypto_secretstream_xchacha20poly1305_tag_final=ue.cg)(),V._crypto_shorthash_bytes=()=>(V._crypto_shorthash_bytes=ue.dg)(),V._crypto_shorthash_keybytes=()=>(V._crypto_shorthash_keybytes=ue.eg)(),V._crypto_shorthash_primitive=()=>(V._crypto_shorthash_primitive=ue.fg)(),V._crypto_shorthash=(be,qe,De,Je,Rt)=>(V._crypto_shorthash=ue.gg)(be,qe,De,Je,Rt),V._crypto_shorthash_keygen=be=>(V._crypto_shorthash_keygen=ue.hg)(be),V._crypto_shorthash_siphash24_bytes=()=>(V._crypto_shorthash_siphash24_bytes=ue.ig)(),V._crypto_shorthash_siphash24_keybytes=()=>(V._crypto_shorthash_siphash24_keybytes=ue.jg)(),V._crypto_shorthash_siphash24=(be,qe,De,Je,Rt)=>(V._crypto_shorthash_siphash24=ue.kg)(be,qe,De,Je,Rt),V._crypto_sign_statebytes=()=>(V._crypto_sign_statebytes=ue.lg)(),V._crypto_sign_bytes=()=>(V._crypto_sign_bytes=ue.mg)(),V._crypto_sign_seedbytes=()=>(V._crypto_sign_seedbytes=ue.ng)(),V._crypto_sign_publickeybytes=()=>(V._crypto_sign_publickeybytes=ue.og)(),V._crypto_sign_secretkeybytes=()=>(V._crypto_sign_secretkeybytes=ue.pg)(),V._crypto_sign_messagebytes_max=()=>(V._crypto_sign_messagebytes_max=ue.qg)(),V._crypto_sign_primitive=()=>(V._crypto_sign_primitive=ue.rg)(),V._crypto_sign_seed_keypair=(be,qe,De)=>(V._crypto_sign_seed_keypair=ue.sg)(be,qe,De),V._crypto_sign_keypair=(be,qe)=>(V._crypto_sign_keypair=ue.tg)(be,qe),V._crypto_sign=(be,qe,De,Je,Rt,Vt)=>(V._crypto_sign=ue.ug)(be,qe,De,Je,Rt,Vt),V._crypto_sign_open=(be,qe,De,Je,Rt,Vt)=>(V._crypto_sign_open=ue.vg)(be,qe,De,Je,Rt,Vt),V._crypto_sign_detached=(be,qe,De,Je,Rt,Vt)=>(V._crypto_sign_detached=ue.wg)(be,qe,De,Je,Rt,Vt),V._crypto_sign_verify_detached=(be,qe,De,Je,Rt)=>(V._crypto_sign_verify_detached=ue.xg)(be,qe,De,Je,Rt),V._crypto_sign_init=be=>(V._crypto_sign_init=ue.yg)(be),V._crypto_sign_update=(be,qe,De,Je)=>(V._crypto_sign_update=ue.zg)(be,qe,De,Je),V._crypto_sign_final_create=(be,qe,De,Je)=>(V._crypto_sign_final_create=ue.Ag)(be,qe,De,Je),V._crypto_sign_final_verify=(be,qe,De)=>(V._crypto_sign_final_verify=ue.Bg)(be,qe,De),V._crypto_sign_ed25519ph_statebytes=()=>(V._crypto_sign_ed25519ph_statebytes=ue.Cg)(),V._crypto_sign_ed25519_bytes=()=>(V._crypto_sign_ed25519_bytes=ue.Dg)(),V._crypto_sign_ed25519_seedbytes=()=>(V._crypto_sign_ed25519_seedbytes=ue.Eg)(),V._crypto_sign_ed25519_publickeybytes=()=>(V._crypto_sign_ed25519_publickeybytes=ue.Fg)(),V._crypto_sign_ed25519_secretkeybytes=()=>(V._crypto_sign_ed25519_secretkeybytes=ue.Gg)(),V._crypto_sign_ed25519_messagebytes_max=()=>(V._crypto_sign_ed25519_messagebytes_max=ue.Hg)(),V._crypto_sign_ed25519_sk_to_seed=(be,qe)=>(V._crypto_sign_ed25519_sk_to_seed=ue.Ig)(be,qe),V._crypto_sign_ed25519_sk_to_pk=(be,qe)=>(V._crypto_sign_ed25519_sk_to_pk=ue.Jg)(be,qe),V._crypto_sign_ed25519ph_init=be=>(V._crypto_sign_ed25519ph_init=ue.Kg)(be),V._crypto_sign_ed25519ph_update=(be,qe,De,Je)=>(V._crypto_sign_ed25519ph_update=ue.Lg)(be,qe,De,Je),V._crypto_sign_ed25519ph_final_create=(be,qe,De,Je)=>(V._crypto_sign_ed25519ph_final_create=ue.Mg)(be,qe,De,Je),V._crypto_sign_ed25519ph_final_verify=(be,qe,De)=>(V._crypto_sign_ed25519ph_final_verify=ue.Ng)(be,qe,De),V._crypto_sign_ed25519_seed_keypair=(be,qe,De)=>(V._crypto_sign_ed25519_seed_keypair=ue.Og)(be,qe,De),V._crypto_sign_ed25519_keypair=(be,qe)=>(V._crypto_sign_ed25519_keypair=ue.Pg)(be,qe),V._crypto_sign_ed25519_pk_to_curve25519=(be,qe)=>(V._crypto_sign_ed25519_pk_to_curve25519=ue.Qg)(be,qe),V._crypto_sign_ed25519_sk_to_curve25519=(be,qe)=>(V._crypto_sign_ed25519_sk_to_curve25519=ue.Rg)(be,qe),V._crypto_sign_ed25519_verify_detached=(be,qe,De,Je,Rt)=>(V._crypto_sign_ed25519_verify_detached=ue.Sg)(be,qe,De,Je,Rt),V._crypto_sign_ed25519_open=(be,qe,De,Je,Rt,Vt)=>(V._crypto_sign_ed25519_open=ue.Tg)(be,qe,De,Je,Rt,Vt),V._crypto_sign_ed25519_detached=(be,qe,De,Je,Rt,Vt)=>(V._crypto_sign_ed25519_detached=ue.Ug)(be,qe,De,Je,Rt,Vt),V._crypto_sign_ed25519=(be,qe,De,Je,Rt,Vt)=>(V._crypto_sign_ed25519=ue.Vg)(be,qe,De,Je,Rt,Vt),V._crypto_stream_chacha20_keybytes=()=>(V._crypto_stream_chacha20_keybytes=ue.Wg)(),V._crypto_stream_chacha20_noncebytes=()=>(V._crypto_stream_chacha20_noncebytes=ue.Xg)(),V._crypto_stream_chacha20_messagebytes_max=()=>(V._crypto_stream_chacha20_messagebytes_max=ue.Yg)(),V._crypto_stream_chacha20_ietf_keybytes=()=>(V._crypto_stream_chacha20_ietf_keybytes=ue.Zg)(),V._crypto_stream_chacha20_ietf_noncebytes=()=>(V._crypto_stream_chacha20_ietf_noncebytes=ue._g)(),V._crypto_stream_chacha20_ietf_messagebytes_max=()=>(V._crypto_stream_chacha20_ietf_messagebytes_max=ue.$g)(),V._crypto_stream_chacha20=(be,qe,De,Je,Rt)=>(V._crypto_stream_chacha20=ue.ah)(be,qe,De,Je,Rt),V._crypto_stream_chacha20_xor_ic=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_stream_chacha20_xor_ic=ue.bh)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_stream_chacha20_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_chacha20_xor=ue.ch)(be,qe,De,Je,Rt,Vt),V._crypto_stream_chacha20_ietf=(be,qe,De,Je,Rt)=>(V._crypto_stream_chacha20_ietf=ue.dh)(be,qe,De,Je,Rt),V._crypto_stream_chacha20_ietf_xor_ic=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_stream_chacha20_ietf_xor_ic=ue.eh)(be,qe,De,Je,Rt,Vt,br),V._crypto_stream_chacha20_ietf_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_chacha20_ietf_xor=ue.fh)(be,qe,De,Je,Rt,Vt),V._crypto_stream_chacha20_ietf_keygen=be=>(V._crypto_stream_chacha20_ietf_keygen=ue.gh)(be),V._crypto_stream_chacha20_keygen=be=>(V._crypto_stream_chacha20_keygen=ue.hh)(be),V._crypto_stream_keybytes=()=>(V._crypto_stream_keybytes=ue.ih)(),V._crypto_stream_noncebytes=()=>(V._crypto_stream_noncebytes=ue.jh)(),V._crypto_stream_messagebytes_max=()=>(V._crypto_stream_messagebytes_max=ue.kh)(),V._crypto_stream_primitive=()=>(V._crypto_stream_primitive=ue.lh)(),V._crypto_stream=(be,qe,De,Je,Rt)=>(V._crypto_stream=ue.mh)(be,qe,De,Je,Rt),V._crypto_stream_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_xor=ue.nh)(be,qe,De,Je,Rt,Vt),V._crypto_stream_keygen=be=>(V._crypto_stream_keygen=ue.oh)(be),V._crypto_stream_salsa20_keybytes=()=>(V._crypto_stream_salsa20_keybytes=ue.ph)(),V._crypto_stream_salsa20_noncebytes=()=>(V._crypto_stream_salsa20_noncebytes=ue.qh)(),V._crypto_stream_salsa20_messagebytes_max=()=>(V._crypto_stream_salsa20_messagebytes_max=ue.rh)(),V._crypto_stream_salsa20=(be,qe,De,Je,Rt)=>(V._crypto_stream_salsa20=ue.sh)(be,qe,De,Je,Rt),V._crypto_stream_salsa20_xor_ic=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_stream_salsa20_xor_ic=ue.th)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_stream_salsa20_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_salsa20_xor=ue.uh)(be,qe,De,Je,Rt,Vt),V._crypto_stream_salsa20_keygen=be=>(V._crypto_stream_salsa20_keygen=ue.vh)(be),V._crypto_stream_xsalsa20=(be,qe,De,Je,Rt)=>(V._crypto_stream_xsalsa20=ue.wh)(be,qe,De,Je,Rt),V._crypto_stream_xsalsa20_xor_ic=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_stream_xsalsa20_xor_ic=ue.xh)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_stream_xsalsa20_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_xsalsa20_xor=ue.yh)(be,qe,De,Je,Rt,Vt),V._crypto_stream_xsalsa20_keybytes=()=>(V._crypto_stream_xsalsa20_keybytes=ue.zh)(),V._crypto_stream_xsalsa20_noncebytes=()=>(V._crypto_stream_xsalsa20_noncebytes=ue.Ah)(),V._crypto_stream_xsalsa20_messagebytes_max=()=>(V._crypto_stream_xsalsa20_messagebytes_max=ue.Bh)(),V._crypto_stream_xsalsa20_keygen=be=>(V._crypto_stream_xsalsa20_keygen=ue.Ch)(be),V._crypto_verify_16_bytes=()=>(V._crypto_verify_16_bytes=ue.Dh)(),V._crypto_verify_32_bytes=()=>(V._crypto_verify_32_bytes=ue.Eh)(),V._crypto_verify_64_bytes=()=>(V._crypto_verify_64_bytes=ue.Fh)(),V._crypto_verify_16=(be,qe)=>(V._crypto_verify_16=ue.Gh)(be,qe),V._crypto_verify_32=(be,qe)=>(V._crypto_verify_32=ue.Hh)(be,qe),V._crypto_verify_64=(be,qe)=>(V._crypto_verify_64=ue.Ih)(be,qe),V._randombytes_implementation_name=()=>(V._randombytes_implementation_name=ue.Jh)(),V._randombytes_random=()=>(V._randombytes_random=ue.Kh)(),V._randombytes_stir=()=>(V._randombytes_stir=ue.Lh)(),V._randombytes_uniform=be=>(V._randombytes_uniform=ue.Mh)(be),V._randombytes_buf=(be,qe)=>(V._randombytes_buf=ue.Nh)(be,qe),V._randombytes_buf_deterministic=(be,qe,De)=>(V._randombytes_buf_deterministic=ue.Oh)(be,qe,De),V._randombytes_seedbytes=()=>(V._randombytes_seedbytes=ue.Ph)(),V._randombytes_close=()=>(V._randombytes_close=ue.Qh)(),V._randombytes=(be,qe,De)=>(V._randombytes=ue.Rh)(be,qe,De),V._sodium_bin2hex=(be,qe,De,Je)=>(V._sodium_bin2hex=ue.Sh)(be,qe,De,Je),V._sodium_hex2bin=(be,qe,De,Je,Rt,Vt,br)=>(V._sodium_hex2bin=ue.Th)(be,qe,De,Je,Rt,Vt,br),V._sodium_base64_encoded_len=(be,qe)=>(V._sodium_base64_encoded_len=ue.Uh)(be,qe),V._sodium_bin2base64=(be,qe,De,Je,Rt)=>(V._sodium_bin2base64=ue.Vh)(be,qe,De,Je,Rt),V._sodium_base642bin=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._sodium_base642bin=ue.Wh)(be,qe,De,Je,Rt,Vt,br,Rr),V._sodium_init=()=>(V._sodium_init=ue.Xh)(),V._sodium_pad=(be,qe,De,Je,Rt)=>(V._sodium_pad=ue.Yh)(be,qe,De,Je,Rt),V._sodium_unpad=(be,qe,De,Je)=>(V._sodium_unpad=ue.Zh)(be,qe,De,Je),V._sodium_version_string=()=>(V._sodium_version_string=ue._h)(),V._sodium_library_version_major=()=>(V._sodium_library_version_major=ue.$h)(),V._sodium_library_version_minor=()=>(V._sodium_library_version_minor=ue.ai)(),V._sodium_library_minimal=()=>(V._sodium_library_minimal=ue.bi)(),V._crypto_box_curve25519xchacha20poly1305_seed_keypair=(be,qe,De)=>(V._crypto_box_curve25519xchacha20poly1305_seed_keypair=ue.ci)(be,qe,De),V._crypto_box_curve25519xchacha20poly1305_keypair=(be,qe)=>(V._crypto_box_curve25519xchacha20poly1305_keypair=ue.di)(be,qe),V._crypto_box_curve25519xchacha20poly1305_beforenm=(be,qe,De)=>(V._crypto_box_curve25519xchacha20poly1305_beforenm=ue.ei)(be,qe,De),V._crypto_box_curve25519xchacha20poly1305_detached_afternm=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_curve25519xchacha20poly1305_detached_afternm=ue.fi)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_curve25519xchacha20poly1305_detached=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_box_curve25519xchacha20poly1305_detached=ue.gi)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_box_curve25519xchacha20poly1305_easy_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_curve25519xchacha20poly1305_easy_afternm=ue.hi)(be,qe,De,Je,Rt,Vt),V._crypto_box_curve25519xchacha20poly1305_easy=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_curve25519xchacha20poly1305_easy=ue.ii)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=ue.ji)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_curve25519xchacha20poly1305_open_detached=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_box_curve25519xchacha20poly1305_open_detached=ue.ki)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=ue.li)(be,qe,De,Je,Rt,Vt),V._crypto_box_curve25519xchacha20poly1305_open_easy=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_box_curve25519xchacha20poly1305_open_easy=ue.mi)(be,qe,De,Je,Rt,Vt,br),V._crypto_box_curve25519xchacha20poly1305_seedbytes=()=>(V._crypto_box_curve25519xchacha20poly1305_seedbytes=ue.ni)(),V._crypto_box_curve25519xchacha20poly1305_publickeybytes=()=>(V._crypto_box_curve25519xchacha20poly1305_publickeybytes=ue.oi)(),V._crypto_box_curve25519xchacha20poly1305_secretkeybytes=()=>(V._crypto_box_curve25519xchacha20poly1305_secretkeybytes=ue.pi)(),V._crypto_box_curve25519xchacha20poly1305_beforenmbytes=()=>(V._crypto_box_curve25519xchacha20poly1305_beforenmbytes=ue.qi)(),V._crypto_box_curve25519xchacha20poly1305_noncebytes=()=>(V._crypto_box_curve25519xchacha20poly1305_noncebytes=ue.ri)(),V._crypto_box_curve25519xchacha20poly1305_macbytes=()=>(V._crypto_box_curve25519xchacha20poly1305_macbytes=ue.si)(),V._crypto_box_curve25519xchacha20poly1305_messagebytes_max=()=>(V._crypto_box_curve25519xchacha20poly1305_messagebytes_max=ue.ti)(),V._crypto_box_curve25519xchacha20poly1305_seal=(be,qe,De,Je,Rt)=>(V._crypto_box_curve25519xchacha20poly1305_seal=ue.ui)(be,qe,De,Je,Rt),V._crypto_box_curve25519xchacha20poly1305_seal_open=(be,qe,De,Je,Rt,Vt)=>(V._crypto_box_curve25519xchacha20poly1305_seal_open=ue.vi)(be,qe,De,Je,Rt,Vt),V._crypto_box_curve25519xchacha20poly1305_sealbytes=()=>(V._crypto_box_curve25519xchacha20poly1305_sealbytes=ue.wi)(),V._crypto_core_ed25519_is_valid_point=be=>(V._crypto_core_ed25519_is_valid_point=ue.xi)(be),V._crypto_core_ed25519_add=(be,qe,De)=>(V._crypto_core_ed25519_add=ue.yi)(be,qe,De),V._crypto_core_ed25519_sub=(be,qe,De)=>(V._crypto_core_ed25519_sub=ue.zi)(be,qe,De),V._crypto_core_ed25519_from_uniform=(be,qe)=>(V._crypto_core_ed25519_from_uniform=ue.Ai)(be,qe),V._crypto_core_ed25519_random=be=>(V._crypto_core_ed25519_random=ue.Bi)(be),V._crypto_core_ed25519_scalar_random=be=>(V._crypto_core_ed25519_scalar_random=ue.Ci)(be),V._crypto_core_ed25519_scalar_invert=(be,qe)=>(V._crypto_core_ed25519_scalar_invert=ue.Di)(be,qe),V._crypto_core_ed25519_scalar_negate=(be,qe)=>(V._crypto_core_ed25519_scalar_negate=ue.Ei)(be,qe),V._crypto_core_ed25519_scalar_complement=(be,qe)=>(V._crypto_core_ed25519_scalar_complement=ue.Fi)(be,qe),V._crypto_core_ed25519_scalar_add=(be,qe,De)=>(V._crypto_core_ed25519_scalar_add=ue.Gi)(be,qe,De),V._crypto_core_ed25519_scalar_reduce=(be,qe)=>(V._crypto_core_ed25519_scalar_reduce=ue.Hi)(be,qe),V._crypto_core_ed25519_scalar_sub=(be,qe,De)=>(V._crypto_core_ed25519_scalar_sub=ue.Ii)(be,qe,De),V._crypto_core_ed25519_scalar_mul=(be,qe,De)=>(V._crypto_core_ed25519_scalar_mul=ue.Ji)(be,qe,De),V._crypto_core_ed25519_bytes=()=>(V._crypto_core_ed25519_bytes=ue.Ki)(),V._crypto_core_ed25519_nonreducedscalarbytes=()=>(V._crypto_core_ed25519_nonreducedscalarbytes=ue.Li)(),V._crypto_core_ed25519_uniformbytes=()=>(V._crypto_core_ed25519_uniformbytes=ue.Mi)(),V._crypto_core_ed25519_hashbytes=()=>(V._crypto_core_ed25519_hashbytes=ue.Ni)(),V._crypto_core_ed25519_scalarbytes=()=>(V._crypto_core_ed25519_scalarbytes=ue.Oi)(),V._crypto_core_ristretto255_is_valid_point=be=>(V._crypto_core_ristretto255_is_valid_point=ue.Pi)(be),V._crypto_core_ristretto255_add=(be,qe,De)=>(V._crypto_core_ristretto255_add=ue.Qi)(be,qe,De),V._crypto_core_ristretto255_sub=(be,qe,De)=>(V._crypto_core_ristretto255_sub=ue.Ri)(be,qe,De),V._crypto_core_ristretto255_from_hash=(be,qe)=>(V._crypto_core_ristretto255_from_hash=ue.Si)(be,qe),V._crypto_core_ristretto255_random=be=>(V._crypto_core_ristretto255_random=ue.Ti)(be),V._crypto_core_ristretto255_scalar_random=be=>(V._crypto_core_ristretto255_scalar_random=ue.Ui)(be),V._crypto_core_ristretto255_scalar_invert=(be,qe)=>(V._crypto_core_ristretto255_scalar_invert=ue.Vi)(be,qe),V._crypto_core_ristretto255_scalar_negate=(be,qe)=>(V._crypto_core_ristretto255_scalar_negate=ue.Wi)(be,qe),V._crypto_core_ristretto255_scalar_complement=(be,qe)=>(V._crypto_core_ristretto255_scalar_complement=ue.Xi)(be,qe),V._crypto_core_ristretto255_scalar_add=(be,qe,De)=>(V._crypto_core_ristretto255_scalar_add=ue.Yi)(be,qe,De),V._crypto_core_ristretto255_scalar_sub=(be,qe,De)=>(V._crypto_core_ristretto255_scalar_sub=ue.Zi)(be,qe,De),V._crypto_core_ristretto255_scalar_mul=(be,qe,De)=>(V._crypto_core_ristretto255_scalar_mul=ue._i)(be,qe,De),V._crypto_core_ristretto255_scalar_reduce=(be,qe)=>(V._crypto_core_ristretto255_scalar_reduce=ue.$i)(be,qe),V._crypto_core_ristretto255_bytes=()=>(V._crypto_core_ristretto255_bytes=ue.aj)(),V._crypto_core_ristretto255_nonreducedscalarbytes=()=>(V._crypto_core_ristretto255_nonreducedscalarbytes=ue.bj)(),V._crypto_core_ristretto255_hashbytes=()=>(V._crypto_core_ristretto255_hashbytes=ue.cj)(),V._crypto_core_ristretto255_scalarbytes=()=>(V._crypto_core_ristretto255_scalarbytes=ue.dj)(),V._crypto_pwhash_scryptsalsa208sha256_ll=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr)=>(V._crypto_pwhash_scryptsalsa208sha256_ll=ue.ej)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr),V._crypto_pwhash_scryptsalsa208sha256_bytes_min=()=>(V._crypto_pwhash_scryptsalsa208sha256_bytes_min=ue.fj)(),V._crypto_pwhash_scryptsalsa208sha256_bytes_max=()=>(V._crypto_pwhash_scryptsalsa208sha256_bytes_max=ue.gj)(),V._crypto_pwhash_scryptsalsa208sha256_passwd_min=()=>(V._crypto_pwhash_scryptsalsa208sha256_passwd_min=ue.hj)(),V._crypto_pwhash_scryptsalsa208sha256_passwd_max=()=>(V._crypto_pwhash_scryptsalsa208sha256_passwd_max=ue.ij)(),V._crypto_pwhash_scryptsalsa208sha256_saltbytes=()=>(V._crypto_pwhash_scryptsalsa208sha256_saltbytes=ue.jj)(),V._crypto_pwhash_scryptsalsa208sha256_strbytes=()=>(V._crypto_pwhash_scryptsalsa208sha256_strbytes=ue.kj)(),V._crypto_pwhash_scryptsalsa208sha256_strprefix=()=>(V._crypto_pwhash_scryptsalsa208sha256_strprefix=ue.lj)(),V._crypto_pwhash_scryptsalsa208sha256_opslimit_min=()=>(V._crypto_pwhash_scryptsalsa208sha256_opslimit_min=ue.mj)(),V._crypto_pwhash_scryptsalsa208sha256_opslimit_max=()=>(V._crypto_pwhash_scryptsalsa208sha256_opslimit_max=ue.nj)(),V._crypto_pwhash_scryptsalsa208sha256_memlimit_min=()=>(V._crypto_pwhash_scryptsalsa208sha256_memlimit_min=ue.oj)(),V._crypto_pwhash_scryptsalsa208sha256_memlimit_max=()=>(V._crypto_pwhash_scryptsalsa208sha256_memlimit_max=ue.pj)(),V._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=()=>(V._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=ue.qj)(),V._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=()=>(V._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=ue.rj)(),V._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=()=>(V._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=ue.sj)(),V._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=()=>(V._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=ue.tj)(),V._crypto_pwhash_scryptsalsa208sha256=(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr)=>(V._crypto_pwhash_scryptsalsa208sha256=ue.uj)(be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr),V._crypto_pwhash_scryptsalsa208sha256_str=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_pwhash_scryptsalsa208sha256_str=ue.vj)(be,qe,De,Je,Rt,Vt,br),V._crypto_pwhash_scryptsalsa208sha256_str_verify=(be,qe,De,Je)=>(V._crypto_pwhash_scryptsalsa208sha256_str_verify=ue.wj)(be,qe,De,Je),V._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=(be,qe,De,Je)=>(V._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=ue.xj)(be,qe,De,Je),V._crypto_scalarmult_ed25519=(be,qe,De)=>(V._crypto_scalarmult_ed25519=ue.yj)(be,qe,De),V._crypto_scalarmult_ed25519_noclamp=(be,qe,De)=>(V._crypto_scalarmult_ed25519_noclamp=ue.zj)(be,qe,De),V._crypto_scalarmult_ed25519_base=(be,qe)=>(V._crypto_scalarmult_ed25519_base=ue.Aj)(be,qe),V._crypto_scalarmult_ed25519_base_noclamp=(be,qe)=>(V._crypto_scalarmult_ed25519_base_noclamp=ue.Bj)(be,qe),V._crypto_scalarmult_ed25519_bytes=()=>(V._crypto_scalarmult_ed25519_bytes=ue.Cj)(),V._crypto_scalarmult_ed25519_scalarbytes=()=>(V._crypto_scalarmult_ed25519_scalarbytes=ue.Dj)(),V._crypto_scalarmult_ristretto255=(be,qe,De)=>(V._crypto_scalarmult_ristretto255=ue.Ej)(be,qe,De),V._crypto_scalarmult_ristretto255_base=(be,qe)=>(V._crypto_scalarmult_ristretto255_base=ue.Fj)(be,qe),V._crypto_scalarmult_ristretto255_bytes=()=>(V._crypto_scalarmult_ristretto255_bytes=ue.Gj)(),V._crypto_scalarmult_ristretto255_scalarbytes=()=>(V._crypto_scalarmult_ristretto255_scalarbytes=ue.Hj)(),V._crypto_secretbox_xchacha20poly1305_detached=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_secretbox_xchacha20poly1305_detached=ue.Ij)(be,qe,De,Je,Rt,Vt,br),V._crypto_secretbox_xchacha20poly1305_easy=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_xchacha20poly1305_easy=ue.Jj)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_xchacha20poly1305_open_detached=(be,qe,De,Je,Rt,Vt,br)=>(V._crypto_secretbox_xchacha20poly1305_open_detached=ue.Kj)(be,qe,De,Je,Rt,Vt,br),V._crypto_secretbox_xchacha20poly1305_open_easy=(be,qe,De,Je,Rt,Vt)=>(V._crypto_secretbox_xchacha20poly1305_open_easy=ue.Lj)(be,qe,De,Je,Rt,Vt),V._crypto_secretbox_xchacha20poly1305_keybytes=()=>(V._crypto_secretbox_xchacha20poly1305_keybytes=ue.Mj)(),V._crypto_secretbox_xchacha20poly1305_noncebytes=()=>(V._crypto_secretbox_xchacha20poly1305_noncebytes=ue.Nj)(),V._crypto_secretbox_xchacha20poly1305_macbytes=()=>(V._crypto_secretbox_xchacha20poly1305_macbytes=ue.Oj)(),V._crypto_secretbox_xchacha20poly1305_messagebytes_max=()=>(V._crypto_secretbox_xchacha20poly1305_messagebytes_max=ue.Pj)(),V._crypto_shorthash_siphashx24_bytes=()=>(V._crypto_shorthash_siphashx24_bytes=ue.Qj)(),V._crypto_shorthash_siphashx24_keybytes=()=>(V._crypto_shorthash_siphashx24_keybytes=ue.Rj)(),V._crypto_shorthash_siphashx24=(be,qe,De,Je,Rt)=>(V._crypto_shorthash_siphashx24=ue.Sj)(be,qe,De,Je,Rt),V._crypto_stream_salsa2012=(be,qe,De,Je,Rt)=>(V._crypto_stream_salsa2012=ue.Tj)(be,qe,De,Je,Rt),V._crypto_stream_salsa2012_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_salsa2012_xor=ue.Uj)(be,qe,De,Je,Rt,Vt),V._crypto_stream_salsa2012_keybytes=()=>(V._crypto_stream_salsa2012_keybytes=ue.Vj)(),V._crypto_stream_salsa2012_noncebytes=()=>(V._crypto_stream_salsa2012_noncebytes=ue.Wj)(),V._crypto_stream_salsa2012_messagebytes_max=()=>(V._crypto_stream_salsa2012_messagebytes_max=ue.Xj)(),V._crypto_stream_salsa2012_keygen=be=>(V._crypto_stream_salsa2012_keygen=ue.Yj)(be),V._crypto_stream_salsa208=(be,qe,De,Je,Rt)=>(V._crypto_stream_salsa208=ue.Zj)(be,qe,De,Je,Rt),V._crypto_stream_salsa208_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_salsa208_xor=ue._j)(be,qe,De,Je,Rt,Vt),V._crypto_stream_salsa208_keybytes=()=>(V._crypto_stream_salsa208_keybytes=ue.$j)(),V._crypto_stream_salsa208_noncebytes=()=>(V._crypto_stream_salsa208_noncebytes=ue.ak)(),V._crypto_stream_salsa208_messagebytes_max=()=>(V._crypto_stream_salsa208_messagebytes_max=ue.bk)(),V._crypto_stream_salsa208_keygen=be=>(V._crypto_stream_salsa208_keygen=ue.ck)(be),V._crypto_stream_xchacha20_keybytes=()=>(V._crypto_stream_xchacha20_keybytes=ue.dk)(),V._crypto_stream_xchacha20_noncebytes=()=>(V._crypto_stream_xchacha20_noncebytes=ue.ek)(),V._crypto_stream_xchacha20_messagebytes_max=()=>(V._crypto_stream_xchacha20_messagebytes_max=ue.fk)(),V._crypto_stream_xchacha20=(be,qe,De,Je,Rt)=>(V._crypto_stream_xchacha20=ue.gk)(be,qe,De,Je,Rt),V._crypto_stream_xchacha20_xor_ic=(be,qe,De,Je,Rt,Vt,br,Rr)=>(V._crypto_stream_xchacha20_xor_ic=ue.hk)(be,qe,De,Je,Rt,Vt,br,Rr),V._crypto_stream_xchacha20_xor=(be,qe,De,Je,Rt,Vt)=>(V._crypto_stream_xchacha20_xor=ue.ik)(be,qe,De,Je,Rt,Vt),V._crypto_stream_xchacha20_keygen=be=>(V._crypto_stream_xchacha20_keygen=ue.jk)(be),V._malloc=be=>(V._malloc=ue.kk)(be),V._free=be=>(V._free=ue.lk)(be),V.setValue=function(be,qe,De="i8"){switch(De.endsWith("*")&&(De="*"),De){case"i1":case"i8":Be[be]=qe;break;case"i16":$t[be>>1]=qe;break;case"i32":at[be>>2]=qe;break;case"i64":Xt("to do setValue(i64) use WASM_BIGINT");case"float":Hr[be>>2]=qe;break;case"double":St[be>>3]=qe;break;case"*":zt[be>>2]=qe;break;default:Xt(`invalid type for setValue: ${De}`)}},V.getValue=function(be,qe="i8"){switch(qe.endsWith("*")&&(qe="*"),qe){case"i1":case"i8":return Be[be];case"i16":return $t[be>>1];case"i32":return at[be>>2];case"i64":Xt("to do getValue(i64) use WASM_BIGINT");case"float":return Hr[be>>2];case"double":return St[be>>3];case"*":return zt[be>>2];default:Xt(`invalid type for getValue: ${qe}`)}},V.UTF8ToString=ar,mn=function be(){In||je(),In||(mn=be)},V.preInit)for(typeof V.preInit=="function"&&(V.preInit=[V.preInit]);V.preInit.length>0;)V.preInit.pop()();je()}))};var y,_=_!==void 0?_:{},I=typeof window=="object",N=typeof importScripts=="function",T=typeof me=="object"&&typeof me.versions=="object"&&typeof me.versions.node=="string",M=Object.assign({},_),D="";if(T){var P=(bhe(),Zu(yhe)),G=(Iz(),Zu(ohe));D="//",y=oe=>(oe=F(oe)?new URL(oe):G.normalize(oe),P.readFileSync(oe)),!_.thisProgram&&me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2),typeof fP<"u"&&(fP.exports=_)}else(I||N)&&(N?D=self.location.href:typeof document<"u"&&document.currentScript&&(D=document.currentScript.src),D=D.startsWith("blob:")?"":D.substr(0,D.replace(/[?#].*/,"").lastIndexOf("/")+1),N&&(y=oe=>{var ge=new XMLHttpRequest;return ge.open("GET",oe,!1),ge.responseType="arraybuffer",ge.send(null),new Uint8Array(ge.response)}));_.print;var q,Y,ne=_.printErr||void 0;Object.assign(_,M),M=null,_.arguments&&_.arguments,_.thisProgram&&_.thisProgram,_.quit&&_.quit,_.wasmBinary&&(q=_.wasmBinary);var ce,le,pe,ae,W,se,O,s=!1;function l(){var oe=Y.buffer;_.HEAP8=ce=new Int8Array(oe),_.HEAP16=pe=new Int16Array(oe),_.HEAPU8=le=new Uint8Array(oe),_.HEAPU16=new Uint16Array(oe),_.HEAP32=ae=new Int32Array(oe),_.HEAPU32=W=new Uint32Array(oe),_.HEAPF32=se=new Float32Array(oe),_.HEAPF64=O=new Float64Array(oe)}var A=[],m=[],E=[],w=0,x=null,R=null;function u(oe){throw _.onAbort?.(oe),ne(oe="Aborted("+oe+")"),s=!0,oe+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(oe)}var C,U="data:application/octet-stream;base64,",F=oe=>oe.startsWith("file://");function X(oe){return Promise.resolve().then((()=>(function(ge){if(ge==C&&q)return new Uint8Array(q);var Le=(function(V){if((Qe=>Qe.startsWith(U))(V))return(function(Qe){if(T!==void 0&&T){var _t=fe.from(Qe,"base64");return new Uint8Array(_t.buffer,_t.byteOffset,_t.length)}for(var rt=atob(Qe),At=new Uint8Array(rt.length),Er=0;Er<rt.length;++Er)At[Er]=rt.charCodeAt(Er);return At})(V.slice(37))})(ge);if(Le)return Le;if(y)return y(ge);throw"both async and sync fetching of the wasm failed"})(oe)))}var Ae={36800:()=>_.getRandomValue(),36836:()=>{if(_.getRandomValue===void 0)try{var oe=typeof window=="object"?window:self,ge=oe.crypto!==void 0?oe.crypto:oe.msCrypto;ge=ge===void 0?V:ge;var Le=function(){var _t=new Uint32Array(1);return ge.getRandomValues(_t),_t[0]>>>0};Le(),_.getRandomValue=Le}catch{try{var V=(IA(),Zu(Lv)),Qe=function(){var rt=V.randomBytes(4);return(rt[0]<<24|rt[1]<<16|rt[2]<<8|rt[3])>>>0};Qe(),_.getRandomValue=Qe}catch{throw"No secure random number generator found"}}}},he=oe=>{for(;oe.length>0;)oe.shift()(_)};_.noExitRuntime;var $e,Ge=typeof TextDecoder<"u"?new TextDecoder:void 0,Re=(oe,ge)=>oe?((Le,V,Qe)=>{for(var _t=V+Qe,rt=V;Le[rt]&&!(rt>=_t);)++rt;if(rt-V>16&&Le.buffer&&Ge)return Ge.decode(Le.subarray(V,rt));for(var At="";V<rt;){var Er=Le[V++];if(128&Er){var mt=63&Le[V++];if((224&Er)!=192){var Ht=63&Le[V++];if((Er=(240&Er)==224?(15&Er)<<12|mt<<6|Ht:(7&Er)<<18|mt<<12|Ht<<6|63&Le[V++])<65536)At+=String.fromCharCode(Er);else{var zr=Er-65536;At+=String.fromCharCode(55296|zr>>10,56320|1023&zr)}}else At+=String.fromCharCode((31&Er)<<6|mt)}else At+=String.fromCharCode(Er)}return At})(le,oe,ge):"",Se=[],ct=oe=>{var ge=(oe-Y.buffer.byteLength+65535)/65536;try{return Y.grow(ge),l(),1}catch{}},ze={b:(oe,ge,Le,V)=>{u(`Assertion failed: ${Re(oe)}, at: `+[ge?Re(ge):"unknown filename",Le,V?Re(V):"unknown function"])},c:()=>{u("")},d:(oe,ge,Le)=>le.copyWithin(oe,ge,ge+Le),a:(oe,ge,Le)=>((V,Qe,_t)=>{var rt=((At,Er)=>{var mt;for(Se.length=0;mt=le[At++];){var Ht=mt!=105;Er+=(Ht&=mt!=112)&&Er%8?4:0,Se.push(mt==112?W[Er>>2]:mt==105?ae[Er>>2]:O[Er>>3]),Er+=Ht?8:4}return Se})(Qe,_t);return Ae[V](...rt)})(oe,ge,Le),e:oe=>{var ge=le.length,Le=2147483648;if((oe>>>=0)>Le)return!1;for(var V,Qe=1;Qe<=4;Qe*=2){var _t=ge*(1+.2/Qe);_t=Math.min(_t,oe+100663296);var rt=Math.min(Le,(V=Math.max(oe,_t))+(65536-V%65536)%65536);if(ct(rt))return!0}return!1}},te=(function(){var oe,ge={a:ze};function Le(V,Qe){return te=V.exports,Y=te.f,l(),(function(_t){if(w--,_.monitorRunDependencies?.(w),w==0&&(x!==null&&(clearInterval(x),x=null),R)){var rt=R;R=null,rt()}})(),te}if(w++,_.monitorRunDependencies?.(w),_.instantiateWasm)try{return _.instantiateWasm(ge,Le)}catch(V){return ne(`Module.instantiateWasm callback failed with error: ${V}`),!1}return C||(C="data:application/octet-stream;base64,AGFzbQEAAAAB5gInYAJ/fwF/YAABf2ADf39+AX9gA39/fwF/YAJ/fwBgBH9/f38Bf2AFf39/f38Bf2ADf39/AGAGf39/f39/AX9gAX8Bf2ALf39/f39/f39/f38Bf2AHf39/f39/fwF/YAZ/f35/fn8Bf2AJf39/f39/f39/AX9gAX8AYAR/fn9/AX9gBn9/fn9/fwF/YAR/f35/AX9gCH9/f39/f39/AX9gBH9/f38AYAV/f35/fwF/YAZ/f39+f38Bf2AAAGAMf39/f39/f39/f39/AX9gCn9/f39/f39/f38Bf2AFf39/f38AYAh/f35/f35/fwF/YAl/f39/fn9+f38Bf2AFf39/fn8Bf2ADf39+AGAFf39+fn8Bf2AIf35/fn9+f38Bf2AEf39/fgBgBX5/f39/AGAJf39/f35/f39/AX9gCn9/f39/fn9/f38Bf2AGf39/f39/AGAIf39/fn9/f38Bf2AFf39+f38AAh8FAWEBYQADAWEBYgATAWEBYwAWAWEBZAAHAWEBZQAJA8IDwAMEBwcHBAEDAwEWAgQEDgcBDgECBAQABQEACQMJAwUCAgECAQ4HBwUBAAMEAwAJDwAEBAAJARAMAwAEAAMAAwADCQACBQUFBAkJFRUBAQQPBAcECAgAEwkEFRUPABUTCQETFBQgGQMJCQcEHQQFHSEJBxQTFRQDAQEBAQEAEgYDAQQEBwAEBBYECQQHBwcEAAABAAAICwsIBgYICAgGCwUGBggFCwgLCwsLBQYGABobEBADBQEiBg4jJAQUFAEBGhobGwMFCQEAAw8QEAIeHwEBAQIeHwEFCwMlAQcHBAcEBAAOAxYEJgE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hoRCAYhC////AIMiDCACKAAKIj1BBHZB////AHGtIg1+fCA5QRh2rSACMQAGQgiGhCACMQAHQhCGhEICiEL///8AgyIOIDtBGHatIAExABNCCIaEIAExABRCEIaEQgOIIgl+fCACKAAPIjlBBnZB////AHGtIgcgATUAB0IHiEL///8AgyIPfnwgPUEYdq0gAjEADkIIhoQgAjEAD0IQhoRCAYhC////AIMiCiA8QQR2Qf///wBxrSIQfnwgOUEYdq0gAjEAE0IIhoQgAjEAFEIQhoRCA4giESABKAACIjlBGHatIAExAAZCCIaEIAExAAdCEIaEQgKIQv///wCDIhJ+fCACMwAVIAIxABdCEIZCgID8AIOEIhUgOUEFdkH///8Aca0iFn58IAEzAAAgATEAAkIQhkKAgPwAg4QiFyACKAAXIjlBBXZB////AHGtIhh+fCAEIAV+IAkgC358IAggDH58IA0gEH58IAYgDn58IAcgEn58IAogD358IBEgFn58IBUgF358Ih1CgIBAfSIeQhWIfCITIBNCgIBAfSIgQoCAgH+DfSA5QRh2rSACMQAbQgiGhCACMQAcQhCGhEICiEL///8AgyITIAEoABxBB3atIhl+IDpBGHatIAExABtCCIaEIAExABxCEIaEQgKIQv///wCDIhogAigAHEEHdq0iG358IAMgG34gGCAZfnwgEyAafnwiIUKAgEB9Ih9CFYh8IiIgIkKAgEB9IhxCgICA/////wCDfSIiQpPYKH58ICEgH0KAgID/////AIN9IBUgGX4gGCAafnwgBCAbfnwgAyATfnwgAyAYfiARIBl+fCAVIBp+fCAJIBt+fCAEIBN+fCIjQoCAQH0iFEIViHwiH0KAgEB9IiRCFYh8IiFCmNocfnwgHyAkQoCAgH+DfSIfQuf2J358ICMgFEKAgIB/g30gESAafiAHIBl+fCAEIBh+fCADIBV+fCAGIBt+fCAJIBN+fCAKIBl+IAcgGn58IAMgEX58IAkgGH58IAQgFX58IAwgG358IAYgE358IhRCgIBAfSIkQhWIfCIlQoCAQH0iJkIViHwiI0LTjEN+fCAdIAUgCX4gBiALfnwgCCAQfnwgDSAPfnwgDCAOfnw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JCENIAMoAighDiACKAIAIQ8gAigCBCEQIAIoAgghESAAIAIoAgwgAygCMCADKAI0QQh3cyADKAI4QRB3cyADKAI8QRh3c3M2AgwgACARIAwgDUEId3MgDkEQd3MgC0EYd3NzNgIIIAAgECAIIAlBCHdzIApBEHdzIAdBGHdzczYCBCAAIA8gBCAFQQh3cyAGQRB3cyABQRh3c3M2AgALCwAgAEEAIAEQDBoLBABBIAuCBAEDfyACQYAETwRAIAAgASACEAMgAA8LIAAgAmohAwJAIAAgAXNBA3FFBEACQCAAQQNxRQRAIAAhAgwBCyACRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAkEDcUUNASACIANJDQALCyADQXxxIQQCQCADQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAvyAgICfwF+AkAgAkUNACAAIAE6AAAgACACaiIDQQFrIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0EDayABOgAAIANBAmsgAToAACACQQdJDQAgACABOgADIANBBGsgAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkEEayABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBCGsgATYCACACQQxrIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQRBrIAE2AgAgAkEUayABNgIAIAJBGGsgATYCACACQRxrIAE2AgAgBCADQQRxQRhyIgRrIgJBIEkNACABrUKBgICAEH4hBSADIARqIQEDQCABIAU3AxggASAFNwMQIAEgBTcDCCABIAU3AwAgAUEgaiEBIAJBIGsiAkEfSw0ACwsgAAsEAEEQCxkBAX9BiKoCKAIAIgAEQCAAERYACxCLAQAL1AECBX8CfgJ/IAJCAFIEQCAAQeABaiEHIABB4ABqIQMgACgA4AIhBANAIAMgBGohBkGAAiAEayIFrSIIIAJaBEAgBiABIAKnIgEQCxogACAAKADgAiABajYA4AJBAAwDCyAGIAEgBRALGiAAIAAoAOACIAVqNgDgAiAAIAApAEAiCUKAAXw3AEAgACAAKQBIIAlC/35WrXw3AEggACADEFIgAyAHQYABEAsaIAAgACgA4AJBgAFrIgQ2AOACIAEgBWohASACIAh9IgJCAFINAAsLQQALC58EARN/IAEoAgQhAiABKAIsIQMgASgCCCEEIAEoAjAhBSABKAIMIQYgASgCNCEHIAEoAhAhCCABKAI4IQkgASgCFCEKIAEoAjwhCyABKAIYIQwgAUFAayINKAIAIQ4gASgCHCEPIAEoAkQhECABKAIgIREgASgCSCESIAEoAiQhEyABKAJMIRQgACABKAIAIAEoAihqNgIAIAAgEyAUajYCJCAAIBEgEmo2AiAgACAPIBBqNgIcIAAgDCAOajYCGCAAIAogC2o2AhQgACAIIAlqNgIQIAAgBiAHajYCDCAAIAQgBWo2AgggACACIANqNgIEIAEoAgQhAiABKAIsIQMgASgCCCEEIAEoAjAhBSABKAIMIQYgASgCNCEHIAEoAhAhCCABKAI4IQkgASgCFCEKIAEoAjwhCyABKAIYIQwgDSgCACENIAEoAhwhDiABKAJEIQ8gASgCICEQIAEoAkghESABKAIAIRIgASgCKCETIAAgASgCTCABKAIkazYCTCAAI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QgBWoiBDYCMCAAIAEgA2oiATYCLCAAIBIgE2oiAzYCKCACKAIAIQUgAigCBCEHIAIoAgghCSACKAIMIQsgAigCECENIAIoAhQhDyACKAIYIREgAigCHCESIAIoAiAhEyAAIAIoAiQgFGs2AiQgACATIBBrNgIgIAAgEiAOazYCHCAAIBEgDGs2AhggACAPIAprNgIUIAAgDSAIazYCECAAIAsgBms2AgwgACAJIARrNgIIIAAgByABazYCBCAAIAUgA2s2AgAgACgCfCEBIAAoAoABIQMgACgChAEhBCAAKAKIASEFIAAoAowBIQYgACgCkAEhByAAKAKUASEIIAAoApgBIQkgACgCeCEKIAAgACgCnAEgF2s2ApwBIAAgCSAYazYCmAEgACAIIBlrNgKUASAAIAcgGms2ApABIAAgBiAbazYCjAEgACAFIBxrNgKIASAAIAQgHWs2AoQBIAAgAyAeazYCgAEgACABIB9rNgJ8IAAgCiAgazYCeCACQTBqJAALRAECfyMAQRBrIgIkACABBEADQCACQQA6AA8gACADakHAnwIgAkEPakEAEAA6AAAgA0EBaiIDIAFHDQALCyACQRBqJAALxwEBBX8jAEEQayICQQA6AA8CQCABRQ0AIAFBBE8EQCABQXxxIQYDQCACIAAgA2oiBC0AACACLQAPcjoADyACIAQtAAEgAi0AD3I6AA8gAiAELQACIAItAA9yOgAPIAIgBC0AAyACLQAPcjoADyADQQRqIQMgBUEEaiIFIAZHDQALCyABQQNxIgRFDQBBACEBA0AgAiAAIANqLQAAIAItAA9yOgAPIANBAWohAyABQQFqIgEgBEcNAAsLIAItAA9BAWtBCHZBAXELjgUBEX8CfyADRQRAQbLaiMsHIQZB7siBmQMhB0Hl8MGLBiEEQfTKgdkGDAELIAMoAAghBiADKAAEIQcgAygAACEEIAMoAAwLIQ8gASgADCEFIAEoAAghDCABKAAEIQggAigAHCEKIAIoABghCyACKAAUIRAgAigAECEOIAIoAAwhAyACKAAIIQ0gAigABCEJIAEoAAAhASACKAAAIQIDQCACIAEgAiAEaiICc0EQdyIBIA5qIgRzQQx3Ig4gAm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AgYKEeEYNAAsDQCACIgFBAWohAiABLQAADQALCyABIABrCycAIAJBgAJPBEBB1gpB/wlB6wBB4wgQAQALIAAgASACQf8BcRCDAQv7AwECf0F/IQQCQCACQcAASw0AIANBwQBrQUBJDQACQCABQQAgAhtFBEAgA0H/AXEiAUHBAGtB/wFxQb8BTQRAEA4ACyAAQUBrQQBBpQIQDBogAEL5wvibkaOz8NsANwA4IABC6/qG2r+19sEfNwAwIABCn9j52cKR2oKbfzcAKCAAQtGFmu/6z5SH0QA3ACAgAELx7fT4paf9p6V/NwAYIABCq/DT9K/uvLc8NwAQIABCu86qptjQ67O7fzcACCAAIAGtQoiS95X/zPmE6gCFNwAADAELAn8gAkH/AXEhAiMAQYABayIFJAACQCADQf8BcSIDQcEAa0H/AXFBvwFNDQAgAUUNACACQcEAa0H/AXFBvwFNDQAgAEFAa0EAQaUCEAwaIABC+cL4m5Gjs/DbADcAOCAAQuv6htq/tfbBHzcAMCAAQp/Y+dnCkdqCm383ACggAELRhZrv+s+Uh9EANwAgIABC8e30+KWn/aelfzcAGCAAQqvw0/Sv7ry3PDcAECAAQrvOqqbY0Ouzu383AAggACADrSACrUIIhoRCiJL3lf/M+YTqAIU3AAAgAEHgAGogBUEAQYABEAwgASACEAsiAUGAARALGiAAIAAoAOACQYABajYA4AIgAUGAARAJIAFBgAFqJABBAAwBCxAOAAsNAQtBACEECyAECw0AIAAgASACECQaQQAL6AUCB34DfyMAQaACayILJAACQCACUA0AIAAgACkDICIDIAJCA4Z8NwMgIABBKGohCkLAACADQgOIQj+DIgR9IgggAlgEQEIAIQMgBEI/hUIDWgRAIAhC/ACDIQcDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiCSAEfKdqIAEgCadqLQAAOgAAIAogA0IChCIJIAR8p2ogASAJp2otAAA6AAAgCiADQgOEIgkgBHynaiABIAmnai0AADoAACADQgR8IQMgBUIEfCIFIAdSDQALCyAIQgODIgVCAFIEQANAIAogAyAEfKdqIAEgA6dqLQAAOgAAIANCAXwhAyAGQgF8IgYgBVINAAsLIAAgCiALIAtBgAJqIgwQYiABIAinaiEBIAIgCH0iAkI/VgRAA0AgACABIAsgDBBiIAFBQGshASACQkB8IgJCP1YNAAsLAkAgAlANACACQgODIQRCACEGQgAhAyACQgRaBEAgAkI8gyEFQgAhAgNAIAogA6ciAGogACABai0AADoAACAKIABBAXIiDGogASAMai0AADoAACAKIABBAnIiDGogASAMai0AADoAACAKIABBA3IiAGogACABai0AADoAACADQgR8IQMgAkIEfCICIAVSDQALCyAEUA0AA0AgCiADpyIAaiAAIAFqLQAAOgAAIANCAXwhAyAGQgF8IgYgBFINAAsLIAtBoAIQCQwBC0IAIQMgAkIEWgRAIAJCfIMhCANAIAogAyAEfKdqIAEgA6dqLQAAOgAAIAogA0IBhCIHIAR8p2ogASAHp2otAAA6AAAgCiADQgKEIgcgBHynaiABIAenai0AADoAACAKIANCA4QiByAEfKdqIAEgB6dqLQAAOgAAIANCBHwhAyAFQgR8IgUgCFINAAsLIAJCA4MiAlANAANAIAogAyAEfKdqIAEgA6dqLQAAOgAAIANCAXwhAyAGQgF8IgYgAlINAAsLIAtBoAJqJABBAAsEAEEYCw0AIAAgASACEBcaQQALBABBCAv3EgIVfgN/IAAgACgALCIWQQV2Qf///wBxrSAAKAA8QQN2rSICQoOhVn4gADMAKiAAMQAsQhCGQoCA/ACDhHwiC0KAgEB9IghCFYd8IgFCg6FWfiAANQAxQgeIQv///wCDIgNC04xDfiAAKAAXIhdBGHatIAAxABtCCIaEIAAxABxCEIaEQgKIQv///wCDfCAAKAA0IhhBBHZB////AHGtIgRC5/YnfnwgFkEYdq0gADEAMEIIhoQgADEAMUIQhoRCAohC////AIMiBULRqwh+fCAANQA5QgaIQv///wCDIgZCk9gofnwgGEEYdq0gADEAOEIIhoQgADEAOUIQhoRCAYhC////AIMiCUKY2hx+fCIHfCAHQoCAQH0iEUKAgIB/g30gF0EFdkH///8Aca0gA0Ln9id+fCAEQpjaHH58IAVC04xDfnwgCUKT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BCAELQAAIAEgA2otAABzOgAAIAggA0EBciIEaiIGIAYtAAAgASAEai0AAHM6AAAgCCADQQJyIgRqIgYgBi0AACABIARqLQAAczoAACAIIANBA3IiBGoiBiAGLQAAIAEgBGotAABzOgAAIANBBGohAyAHQQRqIgcgCkcNAAsLIAJBA3EiAkUNAANAIAVBQGsgA2oiByAHLQAAIAEgA2otAABzOgAAIANBAWohAyAJQQFqIgkgAkcNAAsLIAAgBUFAayIAQoABEBcaIABBgAEQCSAFQcAAEAkgBUHAAWokAEEAC2IBA38jAEGwAWsiAiQAIAJB4ABqIgMgAUHQAGoQNSACQTBqIgQgASADEAYgAiABQShqIAMQBiAAIAIQESACQZABaiAEEBEgACAALQAfIAItAJABQQd0czoAHyACQbABaiQAC7sGAQl/IwBB4ABrIgMkACACQcEATwRAIAAQYxogACABIAKtECQaIAAgAxAtGkEgIQIgAyEBCyAAEGMaIANCtuzYsePGjZs2NwNYIANCtuzYsePGjZs2NwNQIANCtuzYsePGjZs2NwNIIANBQGsiCkK27Nix48aNmzY3AwAgA0K27Nix48aNmzY3AzggA0K27Nix48aNmzY3AzAgA0K27Nix48aNmzY3AyggA0K27Nix48aNmzY3AyACQCACRQ0AIAJBBE8EQCACQfwAcSEGA0AgA0EgaiILIARqIgUgBS0AACABIARqLQAAczoAACALIARBAXIiBWoiCCAILQAAIAEgBWotAABzOgAAIAsgBEECciIFaiIIIAgtAAAgASAFai0AAHM6AAAgCyAEQQNyIgVqIgggCC0AACABIAVqLQAAczoAACAEQQRqIQQgB0EEaiIHIAZHDQALCyACQQNxIgdFDQADQCADQSBqIARqIgYgBi0AACABIARqLQAAczoAACAEQQFqIQQgCUEBaiIJIAdHDQALCyAAIANBIGpCwAAQJBogAEHoAGoiABBjGiADQty48eLFi5eu3AA3A1ggA0LcuPHixYuXrtwANwNQIANC3Ljx4sWLl67cADcDSCAKQty48eLFi5eu3AA3AwAgA0LcuPHixYuXrtwANwM4IANC3Ljx4sWLl67cADcDMCADQty48eLFi5eu3AA3AyggA0LcuPHixYuXrtwANwMgAkAgAkUNAEEAIQlBACEEIAJBBE8EQCACQfwAcSEKQQAhBwNAIANBIGoiCCAEaiIGIAYtAAAgASAEai0AAHM6AAAgCCAEQQFyIgZqIgUgBS0AACABIAZqLQAAczoAACAIIARBAnIiBmoiBSAFLQAAIAEgBmotAABzOgAAIAggBEEDciIGaiIFIAUtAAAgASAGai0AAHM6AAAgBEEEaiEEIAdBBGoiByAKRw0ACwsgAkEDcSICRQ0AA0AgA0EgaiAEaiIHIActAAAgASAEai0AAHM6AAAgBEEBaiEEIAlBAWoiCSACRw0ACwsgACADQSBqIgBCwAAQJBogAEHAABAJIANBIBAJIANB4ABqJABBAAs7AQF/IwBBQGoiAiQAIAAgAhAdGiAAQdABaiIAIAJCwAAQFxogACABEB0aIAJBwAAQCSACQUBrJABBAAtyACAAQgA3A0AgAEIANwNIIABBsIwCKQMANwMAIABBuIwCKQMANwMIIABBwIwCKQMANwMQIABByIwCKQMANwMYIABB0IwCKQMANwMgIABB2IwCKQMANwMoIABB4IwCKQMANwMwIABB6IwCKQMANwM4QQALIwAgAUKAgICAEFoEQBAOAAsgACABIAIgA0G0nwIoAgARDwAL5QgBGH8jAEHAAmsiAiQAIABBKGoiFyABEDYgAEIANwJUIABBATYCUCAAQgA3AlwgAEIANwJkIABCADcCbCAAQQA2AnQgAkHwAWoiBCAXEAUgAkHAAWoiDiAEQbAMEAYgAiACKALAAUEBajYCwAEgAiACKALwAUEBayIDNgLwASACKAL0ASENIAIoAvgBIQUgAigC/AEhBiACKAKAAiEHIAIoAoQCIQggAigCiAIhCSACKAKMAiEKIAIoApACIQsgAigClAIhDCAAIAQgDhAGIAAgABBuIAAgBCAAEAYgAkGQAWoiBCAAEAUgBCAEIA4QBiACIAIoArQBIgQgDGs2AoQBIAIgAigCsAEiDiALazYCgAEgAiACKAKsASIPIAprNgJ8IAIgAigCqAEiECAJazYCeCACIAIoAqQBIhEgCGs2AnQgAiACKAKgASISIAdrNgJwIA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AQgAxAGIAJBMGoiASAEEAUgAyADIAEQBiABIAMQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSADIAEgAxAGIAEgAxAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASADEAYgAiABEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgASACIAEQBiABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSADIAEgAxAGIAEgAxAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASADEAYgAiABEAVBASEBA0AgAiACEAUgAUEBaiIBQeQARw0ACyACQTBqIgEgAiABEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgAkHgAGoiAyABIAMQBiADIAMQBSADIAMQBSADIAMQBSADIAMQBSADIAMQBSAAIAMgAkGQAWoQBiACQcABaiQAC/QEARl+IAExAB8hAiABMQAeIQYgATEAHSEOIAExAAYhByABMQAFIQggATEABCEDIAExAAkhDyABMQAIIRAgATEAByERIAExAAwhCSABMQALIQogATEACiELIAExAA8hDCABMQAOIRIgATEADSETIAExABwhBCABMQAbIRQgATEAGiEVIAExABkhBSABMQAYIRYgATEAFyEXIAE1AAAhGCAAIAExABVCD4YgATEAFEIHhoQgATEAFkIXhoQgATUAECIZQoCAgAh8IhpCGYh8Ig0gDUKAgIAQfCINQoCAgOAPg30+AhggACAWQg2GIBdCBYaEIAVCFYaEIgUgDUIaiHwgBUKAgIAIfCIFQoCAgPADg30+AhwgACAUQgyGIBVCBIaEIARCFIaEIAVCGYh8IgQgBEKAgIAQfCIEQoCAgOAPg30+AiAgACAZIBpCgICA8A+DfSASQgqGIBNCAoaEIAxCEoaEIApCC4YgC0IDhoQgCUIThoQiCUKAgIAIfCIKQhmIfCILQoCAgBB8IgxCGoh8PgIUIAAgCyAMQoCAgOAPg30+AhAgACAQQg2GIBFCBYaEIA9CFYaEIAhCDoYgA0IGhoQgB0IWhoQiB0KAgIAIfCIIQhmIfCIDIANCgICAEHwiA0KAgIDgD4N9PgIIIAAgAkIShkKAgPAPgyAGQgqGIA5CAoaEhCICIARCGoh8IAJCgICACHwiAkKAgIAQg30+AiQgACADQhqIIAl8IApCgICA8ACDfT4CDCAAIAcgCEKAgIDwB4N9IBggAkIZiEITfnwiAkKAgIAQfCIGQhqIfD4CBCAAIAIgBkKAgIDgD4N9PgIAC+8DAQF/IwBBEGsiAiAANgIMIAIgATYCCCACQQA2AgQgAiACKAIEIAIoAgwtAAAgAigCCC0AAHNyNgIEIAIgAigCBCACKAIMLQABIAIoAggtAAFzcj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tFDQAgAyADLQAHIAMoAgwgAGotAAAgAygCCCAAai0AAHNyOgAHCyADLQAHQQFrQQh2QQFxQQFrC5wLARd/IwBBgARrIgIkAEF/IQMgAS0AHyIEQX9zQf8AcSABLQABIAEtAAIgAS0AAyABLQAEIAEtAAUgAS0ABiABLQAHIAEtAAggAS0ACSABLQAKIAEtAAsgAS0ADCABLQANIAEtAA4gAS0ADyABLQAQIAEtABEgAS0AEiABLQATIAEtABQgAS0AFSABLQAWIAEtABcgAS0AGCABLQAZIAEtABogAS0AGyABLQAcIAEtAB0gAS0AHnFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxQX9zckH/AXFBAWtB7AEgAS0AACIFa3FBCHYgBSAEQQd2cnJBAXFFBEAgAkHQAmoiDSABEDYgAkGgAmogDRAFIAJBACACKALEAiIBazYClAIgAkEAIAIoAsACIgNrNgKQAiACQQAgAigCvAIiBGs2AowCIAJBACACKAK4AiIFazYCiAIgAkEAIAIoArQCIgZrNgKEAiACQQAgAigCsAIiB2s2AoACIAJBACACKAKsAiIIazYC/AEgAkEAIAIoAqgCIglrNgL4ASACQQAgAigCpAIiCms2AvQBIAJBASACKAKgAiILazYC8AEgAkGQAWoiDCACQfABaiIREAUgAiABNgLkASACIAM2AuABIAIgBDYC3AEgAiAFNgLYASACIAY2AtQBIAIgBzYC0AEgAiAINgLMASACIAk2AsgBIAIgCjYCxAEgAiALQQFqNgLAASACQeAAaiISIAJBwAFqIhMQBSACQTBqIhBBsAwgDBAGIAIoAmAhASACKAIwIQMgAigCZCEEIAIoAjQhBSACKAJoIQYgAigCOCEHIAIoAmwhCCACKAI8IQkgAigCcCEKIAIoAkAhCyACKAJ0IQwgAigCRCEOIAIoAnghDyACKAJIIRQgAigCfCEVIAIoAkwhFiACKAKAASEXIAIoAlAhGCACQQAgAigCVCACKAKEAWprNgJUIAJBACAXIBhqazYCUCACQQAgFSAWams2AkwgAkEAIA8gFGprNgJIIAJBACAMIA5qazYCRCACQQAgCiALams2AkAgAkEAIAggCWprNgI8IAJBACAGIAdqazYCOCACQQAgBCAFams2AjQgAkEAIAEgA2prNgIwIAIgECASEAYgAkIANwKUAyACQgA3ApwDIAJBADYCpAMgAkIANwKEAyACQQE2AoADIAJCADcCjAMgAkGwA2oiASACQYADaiACEGohDyAAIAEgExAGIABBKGoiAyABIAAQBiADIAMgEBAGIAAgACANEAYgACAAKAIkQQF0IgQ2AiQgACAAKAIgQQF0IgU2AiAgACAAKAIcQQF0IgY2AhwgACAAKAIYQQF0Igc2AhggACAAKAIUQQF0Igg2AhQgACAAKAIQQQF0Igk2AhAgACAAKAIMQQF0Igo2AgwgACAAKAIIQQF0Igs2AgggACAAKAIEQQF0Igw2AgQgACAAKAIAQQF0Ig42AgAgAkHgA2oiDSAAEBEgAEEAIAItAOADQQFxayIBIARBACAEa3NxIARzNgIkIAAgBUEAIAVrcyABcSAFczYCICAAIAZBACAGa3MgAXEgBnM2AhwgACAHQQAgB2tzIAFxIAdzNgIYIAAgCEEAIAhrcyABcSAIczYCFCAAIAlBACAJa3MgAXEgCXM2AhAgACAKQQAgCmtzIAFxIApzNgIMIAAgC0EAIAtrcyABcSALczYCCCAAIAxBACAMa3MgAXEgDHM2AgQgACAOQQAgDmtzIAFxIA5zNgIAIAMgESADEAYgAEIANwJUIABBATYCUCAAQgA3AlwgAEIANwJkIABCADcCbCAAQQA2AnQgAEH4AGoiASAAIAMQBiANIAEQESACLQDgAyEAIA0gAxARQQAgDUEgEBpBASAPayAAQQFxcnJrIQMLIAJBgARqJAAgAwuFBwEKfyMAQeADayICJAADQCACQaACaiIFIANBAXRqIgYgASADai0AACIHQQR2OgABIAYgB0EPcToAACADQQFyIgZBAXQgBWoiByABIAZqLQAAIgZBBHY6AAEgByAGQQ9xOgAAIANBAmoiA0EgRw0AC0EAIQEDQCACQaACaiAEaiIDIAMtAAAgAWoiASABQQhqIgFB8AFxazoAACADIAMtAAEgAcBBBHVqIgEgAUEIaiIBQfABcWs6AAEgAyADLQACIAHAQ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fgAaiIFEAYgAkGQBGogAUHgDBAGIAJB4ANqIANB4AwQBiACQfAEaiAEQYAXEAYgAkHQAmoiAyAFIB0QBiACQYADaiIYIAMQESACLQCAAyEDIAIgASkCICIuNwOwASACIAEpAhgiLzcDqAEgAiABKQIQIjA3A6ABIAIgASkCCCIxNwOYASACIAEpAgAiMjcDkAEgASgCLCEFIAEoAjAhDCABKAI0IQ0gASgCOCEOIAEoAjwhDyAUKAIAIRAgASgCRCERIAEoAkghEiABKAJMIRMgASgCKCEWIAIoAuQDIQogAigClAEhBCACKALsAyELIAIoApwBIQYgAigC9AMhFCACKAKkASEHIAIoAvwDIRUgAigCrAEhCCACKAKEBCEXIAIoArQBIQkgAigC4AMhHiACKALoAyEZIAIoAvADIRogAigC+AMhGyACQQAgA0EBcWsiAyAupyIcIAIoAoAEc3EgHHM2ArABIAIgGyAvpyIccyADcSAcczYCqAEgAiAaIDCnIhtzIANxIBtzNgKgASACIBkgMaciGnMgA3EgGnM2ApgBIAIgHiAypyIZcyADcSAZczYCkAEgAiAJIAkgF3MgA3FzNgK0ASACIAggCCAVcyADcXM2AqwBIAIgByAHIBRzIANxczYCpAEgAiAGIAYgC3MgA3FzNgKcASACIAQgBCAKcyADcXM2ApQBIAIoApAEIRcgAigClAQhHiACKAKYBCEZIAIoApwEIRogAigCoAQhGyACKAKkBCEcIAIoAqgEISAgAigCrAQhISACKAKwBCEiIAIoArQEISMgAigCoAUhBCACKALwBCEkIAIoAqQFIQYgAigC9AQhJSACKAKoBSEHIAIoAvgEISYgAigCrAUhCCACKAL8BCEnIAIoArAFIQkgAigCgAUhKCACKAK0BSEKIAIoAoQFISkgAigCuAUhCyACKAKIBSEqIAIoArwFIRQgAigCjAUhKyACKALABSEVIAIoApAFISwgAiACKALEBSItIAIoApQFcyADcSAtczYCxAUgAiAVIBUgLHMgA3FzNgLABSACIBQgFCArcyADcXM2ArwFIAIgCyALICpzIANxczYCuAUgAiAKIAogKXMgA3FzNgK0BSACIAkgCSAocyADcXM2ArAFIAIgCCAIICdzIANxczYCrAUgAiAHIAcgJnMgA3FzNgKoBSACIAYgBiAlcyADcXM2AqQFIAIgBCAEICRzIANxczYCoAUgAkHgAGoiBCACQZABaiAdEAYgGCAEEBEgASgCVCEEIAEoAlghBiABKAJcIQcgASgCYCEIIAEoAmQhCSABKAJoIQogASgCbCELIAEoAnAhFCABKAJQIRUgAiABKAJ0QQAgAi0AgANBAXFrIgEgEyATICNzIANxcyITQQAgE2tzcSATc2s2AqQDIAIgFCASIBIgInMgA3FzIhJBACASa3MgAXEgEnNrNgKgAyACIAsgESARICFzIANxcyIRQQAgEWtzIAFxIBFzazYCnAMgAiAKIBAgECAgcyADcXMiEEEAIBBrcyABcSAQc2s2ApgDIAIgCSAPIA8gHHMgA3FzIg9BACAPa3MgAXEgD3NrNgKUAyACIAggDiAOIBtzIANxcyIOQQAgDmtzIAFxIA5zazYCkAMgAiAHIA0gDSAacyADcXMiDUEAIA1rcyABcSANc2s2AowDIAIgBiAMIAwgGXMgA3FzIgxBACAMa3MgAXEgDHNrNgKIAyACIAQgBSAFIB5zIANxcyIFQQAgBWtzIAFxIAVzazYChAMgAiAVIAEgFiAWIBdzIANxcyIBQQAgAWtzcSABc2s2AoADIBggHyAYEAYgAkGABmogGBARIAJBACACLQCABkEBcWsiASACKAKAAyIDQQAgA2tzcSADczYCgAMgAiACKAKEAyIDQQAgA2tzIAFxIANzNgKEAyACIAIoAogDIgNBACADa3MgAXEgA3M2AogDIAIgAigCjAMiA0EAIANrcyABcSADczYCjAMgAiACKAKQAyIDQQAgA2tzIAFxIANzNgKQAyACIAIoApQDIgNBACADa3MgAXEgA3M2ApQDIAIgAigCmAMiA0EAIANrcyABcSADczYCmAMgAiACKAKcAyIDQQAgA2tzIAFxIANzNgKcAyACIAIoAqADIgNBACADa3MgAXEgA3M2AqADIAIgASACKAKkAyIBQQAgAWtzcSABczYCpAMgACAYEBEgAkGgBmokAAv4AQEKfwNAIAQgACADai0AACIBIANBgBVqIgItAABzciEEIAogASACLQDAAXNyIQogCSABIAItAKABc3IhCSAIIAEgAi0AgAFzciEIIAcgASACLQBgc3IhByAGIAEgAkFAay0AAHNyIQYgBSABIAItACBzciEFIANBAWoiA0EfRw0ACyAKIAAtAB9B/wBxIgBB/wBzIgFyQf8BcUEBayABIAlyQf8BcUEBayABIAhyQf8BcUEBayAHIABB+gBzckH/AXFBAWsgBiAAQQVzckH/AXFBAWsgACAFckH/AXFBAWsgACAEckH/AXFBAWtycnJycnJBCHZBAXELwQUBHH8jAEHAAmsiASQAIAFB8AFqIgMgABAFIAFBwAFqIgQgAEEoahAFIAFBkAFqIgIgAEHQAGoQBSABKALwASEAIAEoAsABIQUgASgC9AEhBiABKALEASEHIAEoAvgBIQggASgCyAEhCSABKAL8ASEKIAEoAswBIQsgASgCgAIhDCABKALQASENIAEoAoQCIQ4gASgC1AEhDyABKAKIAiEQIAEoAtgBIREgASgCjAIhEiABKALcASETIAEoApACIRQgASgC4AEhFSABIAEoAuQBIAEoApQCazYCVCABIBUgFGs2AlAgASATIBJrNgJMIAEgESAQazYCSCABIA8gDms2AkQgASANIAxrNgJAIAEgCyAKazYCPCABIAkgCGs2AjggASAHIAZrNgI0IAEgBSAAazYCMCABQTBqIhYgFiACEAYgASADIAQQBiABIAFBsAwQBiABQeAAaiACEAUgASgCMCEAIAEoAmAhBSABKAIAIQYgASgCNCEHIAEoAmQhCCABKAIEIQkgASgCOCEKIAEoAmghCyABKAIIIQwgASgCPCENIAEoAmwhDiABKAIMIQ8gASgCQCEQIAEoAnAhESABKAIQIRIgASgCRCETIAEoAnQhFCABKAIUIRUgASgCSCECIAEoAnghAyABKAIYIQQgASgCTCEXIAEoAnwhGCABKAIcIRkgASgCUCEaIAEoAoABIRsgASgCICEcIAEgASgCVCABKAKEASABKAIkams2AlQgASAaIBsgHGprNgJQIAEgFyAYIBlqazYCTCABIAIgAyAEams2AkggASATIBQgFWprNgJEIAEgECARIBJqazYCQCABIA0gDiAPams2AjwgASAKIAsgDG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NwNoIAIgASkCMDcDYCADIAJB8ABqIAJB4ABqEAggASACKQKIAjcCOCABIAIpAoACNwIwIAIgASkCGDcDWCACIAEpAhA3A1AgAiABKQIoNwNIIAIgASkCIDcDQCADIAJB0ABqIAJBQGsQCCABIAIpAogCNwIoIAEgAikCgAI3AiAgAiABKQIINwM4IAIgASkCADcDMCACIAEpAhg3AyggAiABKQIQNwMgIAMgAkEwaiACQSBqEAggASACKQKIAjcCGCABIAIpAoACNwIQIAIgAikDmAI3AxggAiACKQOQAjcDECACIAEpAgg3AwggAiABKQIANwMAIAMgAkEQaiACEAggASACKQKIAjcCCCABIAIpAoACNwIAIAEgCiABKAAMczYCDCABIAkgASgACHM2AgggASAIIAEoAARzNgIEIAEgCyABKAAAczYCACAAIAcgACgAAHM2AgAgASAGIAEoAERzNgJEIAEgBSABKABIczYCSCABIAQgASgATHM2AkwgAkGgAmokAAvwCQEdfyABKAIEIQQgASgCLCEDIAEoAgghBSABKAIwIQYgASgCDCEHIAEoAjQhCCABKAIQIQkgASgCOCEKIAEoAhQhCyABKAI8IQwgASgCGCENIAFBQGsiDigCACEPIAEoAhwhECABKAJEIREgASgCICESIAEoAkghEyABKAIkIRQgASgCTCEVIAAgASgCACABKAIoajYCACAAIBQgFWo2AiQgACASIBNqNgIgIAAgECARajYCHCAAIA0gD2o2AhggACALIAxqNgIUIAAgCSAKajYCECAAIAcgCGo2AgwgACAFIAZqNgIIIAAgAyAEajYCBCABKAIEIQMgASgCLCEFIAEoAgghBiABKAIwIQcgASgCDCEIIAEoAjQhCSABKAIQIQogASgCOCELIAEoAhQhDCABKAI8IQ0gASgCGCEPIA4oAgAhDiABKAIcIQQgASgCRCEQIAEoAiAhESABKAJIIRIgASgCACETIAEoAighFCAAIAEoAkwgASgCJGs2AkwgACASIBFrNgJIIAAgECAEazYCRCAAQUBrIgQgDiAPazYCACAAIA0gDGs2AjwgACALIAprNgI4IAAgCSAIazYCNCAAIAcgBms2AjAgACAFIANrNgIsIAAgFCATazYC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EF/IAgbIANrCyACaiEEQgAgCUEDRg0AGiADIBJsrQshFyAAKAIAKAIEIgMgAiAYp2xBCnRqIBcgBEEBa618IAStIBNC/////w+DIhcgF35CIIh+QiCIfSACrYKnQQp0aiEEIAMgDUEKdGohAiADIApBCnRqIQcCQCAMBEAgAiAEIAcQdQwBCyAFQYAYaiAEQYAIEAsaQQAhBANAIARBA3QiAyAFQYAYaiILaiIGIAYpAwAgAiADaikDAIU3AwAgCyADQQhyIgZqIg8gDykDACACIAZqKQMAhTcDACALIANBEHIiBmoiDyAPKQMAIAIgBmopAwCFNwMAIAsgA0EYciIDaiIGIAYpAwAgAiADaikDAIU3AwAgBEEEaiIEQYABRw0ACyAFQYAQaiALQYAIEAsaQQAhA0EAIQQDQCAFQYAYaiAEQQd0aiICIAIpAzgiFyACKQMYIhh8IBhCAYZC/v///x+DIBdC/////w+DfnwiGCACKQN4hUIgiSITIAIpA1giFnwgE0L/////D4MgFkIBhkL+////H4N+fCIWIBeFQiiJIhcgGHwgF0L/////D4MgGEIBhkL+////H4N+fCIYIBOFQjCJIhMgAikDKCIUIAIpAwgiFXwgFUIBhkL+////H4MgFEL/////D4N+fCIVIAIpA2iFQiCJIhsgAikDSCIcfCAbQv////8PgyAcQgGGQv7///8fg358IhwgFIVCKIkiFCAVfCAUQv////8PgyAVQgGGQv7///8fg358IhUgG4VCMIkiGyAcfCAbQv////8PgyAcQgGGQv7///8fg358IhwgFIVCAYkiFCACKQMgIh8gAikDACIafCAaQgGGQv7///8fgyAfQv////8Pg358IhogAikDYIVCIIkiICACQUBrIgYpAwAiI3wgIEL/////D4MgI0IBhkL+////H4N+fCIjIB+FQiiJIh8gGnwgH0L/////D4MgGkIBhkL+////H4N+fCIafCAUQv////8PgyAaQgGGQv7///8fg358IhmFQiCJIiQgAikDMCIhIAIpAxAiHXwgHUIBhkL+////H4MgIUL/////D4N+fCIdIAIpA3CFQiCJIiIgAikDUCIefCAiQv////8PgyAeQgGGQv7///8fg358Ih4gIYVCKIkiISAdfCAhQv////8PgyAdQgGGQv7///8fg358Ih0gIoVCMIkiIiAefCAiQv////8PgyAeQgGGQv7///8fg358Ih58ICRC/////w+DIB5CAYZC/v///x+DfnwiJSAUhUIoiSIUIBl8IBRC/////w+DIBlCAYZC/v///x+DfnwiGTcDACACIBkgJIVCMIkiGTcDeCACIBkgJXwgGUL/////D4MgJUIBhkL+////H4N+fCIZNwNQIAIgFCAZhUIBiTcDKCACIB4gIYVCAYkiFCAVfCAUQv////8PgyAVQgGGQv7///8fg358IhUgGiAghUIwiSIahUIgiSIgIBMgFnwgE0L/////D4MgFkIBhkL+////H4N+fCITfCAgQv////8PgyATQgGGQv7///8fg358IhYgFIVCKIkiFCAVfCAUQv////8PgyAVQgGGQv7///8fg358IhkgIIVCMIkiFTcDYCACIBk3AwggAiAVIBZ8IBVC/////w+DIBZCAYZC/v///x+DfnwiFiAUhUIBiTcDMCACIBY3A1ggAiATIBeFQgGJIhcgHXwgF0L/////D4MgHUIBhkL+////H4N+fCITIBuFQiCJIhYgGiAjfCAaQv////8PgyAjQgGGQv7///8fg358IhR8IBZC/////w+DIBRCAYZC/v///x+DfnwiFSAXhUIoiSIXIBN8IBdC/////w+DIBNCAYZC/v///x+DfnwiEzcDECACIBMgFoVCMIkiEzcDaCAGIBMgFXwgE0L/////D4MgFUIBhkL+////H4N+fCIVNwMAIAIgGCAUIB+FQgGJIhN8IBhCAYZC/v///x+DIBNC/////w+DfnwiGCAihUIgiSIWIBx8IBZC/////w+DIBxCAYZC/v///x+DfnwiFCAThUIoiSITIBh8IBNC/////w+DIBhCAYZC/v///x+DfnwiGyAWhUIwiSIYIBR8IBhC/////w+DIBRCAYZC/v///x+DfnwiFjcDSCACIBg3A3AgAiAbNwMYIAIgFSAXhUIBiTcDOCACIBMgFoVCAYk3AyAgBEEBaiIEQQhHDQALA0AgBUGAGGogA0EEdGoiAiACKQOIAyIXIAIpA4gBIhh8IBhCAYZC/v///x+DIBdC/////w+DfnwiGCACKQOIB4VCIIkiEyACKQOIBSIWfCATQv////8PgyAWQgGGQv7///8fg358IhYgF4VCKIkiFyAYfCAXQv////8PgyAYQgGGQv7///8fg358IhggE4VCMIkiEyACKQOIAiIUIAIpAwgiFXwgFUIBhkL+////H4MgFEL/////D4N+fCIVIAIpA4gGhUIgiSIbIAIpA4gEIhx8IBtC/////w+DIBxCAYZC/v///x+DfnwiHCAUhUIoiSIUIBV8IBRC/////w+DIBVCAYZC/v///x+DfnwiFSAbhUIwiSIbIBx8IBtC/////w+DIBxCAYZC/v///x+DfnwiHCAUhUIBiSIUIAIpA4ACIh8gAikDACIafCAaQgGGQv7///8fgyAfQv////8Pg358IhogAikDgAaFQiCJIiAgAikDgAQiI3wgIEL/////D4MgI0IBhkL+////H4N+fCIjIB+FQiiJIh8gGnwgH0L/////D4MgGkIBhkL+////H4N+fCIafCAUQv////8PgyAaQgGGQv7///8fg358IhmFQiCJIiQgAikDgAMiISACKQOAASIdfCAdQgGGQv7///8fgyAhQv////8Pg358Ih0gAikDgAeFQiCJIiIgAikDgAUiHnwgIkL/////D4MgHkIBhkL+////H4N+fCIeICGFQiiJIiEgHXwgIUL/////D4MgHUIBhkL+////H4N+fCIdICKFQjCJIiIgHnwgIkL/////D4MgHkIBhkL+////H4N+fCIefCAkQv////8PgyAeQgGGQv7///8fg358IiUgFIVCKIkiFCAZfCAUQv////8PgyAZQgGGQv7///8fg358Ihk3AwAgAiAZICSFQjCJIhk3A4gHIAIgGSAlfCAZQv////8PgyAlQgGGQv7///8fg358Ihk3A4AFIAIgFCAZhUIBiTcDiAIgAiAeICGFQgGJIhQgFXwgFEL/////D4MgFUIBhkL+////H4N+fCIVIBogIIVCMIkiGoVCIIkiICATIBZ8IBNC/////w+DIBZCAYZC/v///x+DfnwiE3wgIEL/////D4MgE0IBhkL+////H4N+fCIWIBSFQiiJIhQgFXwgFEL/////D4MgFUIBhkL+////H4N+fCIZICCFQjCJIhU3A4AGIAIgGTcDCCACIBUgFnwgFUL/////D4MgFkIBhkL+////H4N+fCIWIBSFQgGJNwOAAyACIBY3A4gFIAIgEyAXhUIBiSIXIB18IBdC/////w+DIB1CAYZC/v///x+DfnwiEyAbhUIgiSIWIBogI3wgGkL/////D4MgI0IBhkL+////H4N+fCIUfCAWQv////8PgyAUQgGGQv7///8fg358IhUgF4VCKIkiFyATfCAXQv////8PgyATQgGGQv7///8fg358IhM3A4ABIAIgEyAWhUIwiSITNwOIBiACIBMgFXwgE0L/////D4MgFUIBhkL+////H4N+fCIVNwOABCACIBggFCAfhUIBiSITfCAYQgGGQv7///8fgyATQv////8Pg358IhggIoVCIIkiFiAcfCAWQv////8PgyAcQgGGQv7///8fg358IhQgE4VCKIkiEyAYfCATQv////8PgyAYQgGGQv7///8fg358IhsgFoVCMIkiGCAUfCAYQv////8PgyAUQgGGQv7///8fg358IhY3A4gEIAIgGDcDgAcgAiAbNwOIASACIBUgF4VCAYk3A4gDIAIgEyAWhUIBiTcDgAIgA0EBaiIDQQhHDQALIAcgBUGAEGpBgAgQCyECQQAhBANAIAIgBEEDdCIDaiIHIAcpAwAgBUGAGGoiCyADaikDAIU3AwAgAiADQQhyIgdqIgYgBikDACAHIAtqKQMAhTcDACACIANBEHIiB2oiBiAGKQMAIAVBgBhqIAdqKQMAhTcDACACIANBGHIiA2oiByAHKQMAIAVBgBhqIANqKQMAhTcDACAEQQRqIgRBgAFHDQALCyANQQFqIQQgCkEBaiEKIAhBAWoiCCAAKAIUIgNJDQALCyAFQYAgaiQAC9ECAgJ/AX4jAEHgAGsiBiQAIAYgBCAFQQAQKxogBkEgaiIHQiAgBEEQaiIFIAZBkJcCKAIAEQ8AGkF/IQQCQAJAIAIgASADIAdB+JYCKAIAEREADQBBACEEIABFDQECQAJ+AkAgACABSSABIABrrSADVHFFBEAgACABTQ0BIAAgAWutIANaDQELIAAgASADpxBCIQFCICADIANCIFobDAELIANQDQFCICADIANCIFobCyEIIAZBQGsgASAIpyICEAshByAGQSBqIgQgBCAIQiB8IAVCACAGQZSXAigCABEMABog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FBoAtqIgAgAxAQIAIgByAAEBMgAyACIAQQBiAIIAUgBhAGIAkgBiAEEAYgCiACIAUQBiABQcAMaiIAIAMQECACIAcgABATIAMgAiAEEAYgCCAFIAYQBiAJIAYgBBAGIAogAiAFEAYgAUHgDWogAxAQIAFCADcDICABQgA3AxggAUIANwMQIAFCADcDCCABQgA3AjQgAUIANwI8IAFCADcCRCABQoCAgIAQNwJMIAFCADcDACABQgA3AiwgAUEBNgIoIAFB1ABqQQBBzAAQDBogAUH4AGohDyABQdgPaiEMIAFBsA9qIQ0gAUHQAGohAyABQShqIQdB/AEhAANAIAFBqA9qIAEpAyA3AwAgAUGgD2ogASkDGDcDACABQZgPaiABKQMQNwMAIAFBkA9qIAEpAwg3AwAgASABKQMANwOIDyANIAcpAiA3AiAgDSAHKQIYNwIYIA0gBykCEDcCECANIAcpAgg3AgggDSAHKQIANwIAIAwgAykCIDcCICAMIAMpAhg3AhggDCADKQIQNwIQIAwgAykCCDcCCCAMIAMpAgA3AgAgACICQbCHAmosAAAhACABQeADaiILIAFBiA9qEBgCQCAAQQBKBEAgAUHAAmoiDiALIAQQBiAIIAUgBhAGIAkgBiAEEAYgCiALIAUQBiALIA4gAUGABWogAEH+AXFBAXZBoAFsahATDAELIABBAE4NACABQcACaiIOIAFB4ANqIgsgBBAGIAggBSAGEAYgCSAGIAQQBiAKIAsgBRAGIAsgDiABQYAFakEAIABrQf4BcUEBdkGgAWxqEFULIAEgAUHgA2oiACAEEAYgByAFIAYQBiADIAYgBBAGIA8gACAFEAYgAkEBayEAIAINAAsgAUGABWoiACABEBEgAEEgEBogAUGAEGokAAvgCQEdfyABKAIEIQQgASgCLCEDIAEoAgghBSABKAIwIQYgASgCDCEHIAEoAjQhCCABKAIQIQkgASgCOCEKIAEoAhQhCyABKAI8IQwgASgCGCENIAFBQGsiDigCACEPIAEoAhwhECABKAJEIREgASgCICESIAEoAkghEyABKAIkIRQgASgCTCEVIAAgASgCACABKAIoajYCACAAIBQgFWo2AiQgACASIBNqNgIgIAAgECARajYCHCAAIA0gD2o2AhggACALIAxqNgIUIAAgCSAKajYCECAAIAcgCGo2AgwgACAFIAZqNgIIIAAgAyAEajYCBCABKAIEIQMgASgCLCEFIAEoAgghBiABKAIwIQcgASgCDCEIIAEoAjQhCSABKAIQIQogASgCOCELIAEoAhQhDCABKAI8IQ0gASgCGCEPIA4oAgAhDiABKAIcIQQgASgCRCEQIAEoAiAhESABKAJIIRIgASgCACETIAEoAighFCAAIAEoAkwgASgCJGs2AkwgACASIBFrNgJIIAAgECAEazYCRCAAQUBrIgQgDiAPazYCACAAIA0gDGs2AjwgACALIAprNgI4IAAgCSAIazYCNCAAIAcgBms2AjAgACAFIANrNgIsIAAgFCATazYCKCAAQdAAaiAAIAIQBiAAQShqIgMgAyACQShqEAYgAEH4AGogAkHQAGogAUH4AGoQBiABKAJUIRQgASgCWCEVIAEoAlwhFiABKAJgIRcgASgCZCEYIAEoAmghGSABKAJsIRogASgCcCEbIAEoAnQhHCAAKAIsIQIgACgCVCEDIAAoAjAhBSAAKAJYIQYgACgCNCEHIAAoAlwhCCAAKAI4IQkgACgCYCEKIAAoAjwhCyAAKAJkIQwgBCgCACENIAAoAmghDiAAKAJEIQ8gACgCbCEQIAAoAkghESAAKAJwIRIgASgCUCEdIAAoAighASAAKAJQIRMgACAAKAJMIh4gACgCdCIfajYCTCAAIBEgEmo2AkggACAPIBBqNgJEIAQgDSAOajYCACAAIAsgDGo2AjwgACAJIApqNgI4IAAgByAIajYCNCAAIAUgBmo2AjAgACACIANqNgIsIAAgASATajYCKCAAIB8gHms2AiQgACASIBFrNgIgIAAgECAPazYCHCAAIA4gDWs2AhggACAMIAtrNgIUIAAgCiAJazYCECAAIAggB2s2AgwgACAGIAVrNgIIIAAgAyACazYCBCAAIBMgAWs2AgAgACAcQQF0IgEgACgCnAEiAms2ApwBIAAgG0EBdCIEIAAoApgBIgNrNgKYASAAIBpBAXQiBSAAKAKUASIGazYClAEgACAZQQF0IgcgACgCkAEiCG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gAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACIAQQBiADIAIQBUEBIQIDQCADIAMQBSACQQFqIgJB5ABHDQALIANBMGoiAiADIAIQBiACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSADQeAAaiIEIAIgBBAGIAQgBBAFIAQgBBAFIAAgBCABEAYgA0GQAWokAAumBAIOfgp/IAAoAiQhEiAAKAIgIRMgACgCHCEUIAAoAhghFSAAKAIUIREgAkIQWgRAIAAtAFBFQRh0IRYgACgCECIXrSEPIAAoAgwiGK0hDSAAKAIIIhmtIQsgACgCBCIarSEJIBpBBWytIRAgGUEFbK0hDiAYQQVsrSEMIBdBBWytIQogADUCACEIA0AgASgAA0ECdkH///8fcSAVaq0iAyANfiABKAAAQf///x9xIBFqrSIEIA9+fCABKAAGQQR2Qf///x9xIBRqrSIFIAt+fCABKAAJQQZ2IBNqrSIGIAl+fCASIBZqIAEoAAxBCHZqrSIHIAh+fCADIAt+IAQgDX58IAUgCX58IAYgCH58IAcgCn58IAMgCX4gBCALfnwgBSAIfnwgBiAKfnwgByAMfnwgAyAIfiAEIAl+fCAFIAp+fCAGIAx+fCAHIA5+fCADIAp+IAQgCH58IAUgDH58IAYgDn58IAcgEH58IgNCGohC/////w+DfCIEQhqIQv////8Pg3w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kDACACIBdqKQMAhTcDACAYIBZBEHIiF2oiGSAZKQMAIAIgF2opAwCFNwMAIBggFkEYciIWaiIXIBcpAwAgAiAWaikDAIU3AwAgAUEEaiIBQYABRw0ACwNAIBhBgAhqIABBB3RqIgEgASkDOCIIIAEpAxgiB3wgB0IBhkL+////H4MgCEL/////D4N+fCIHIAEpA3iFQiCJIgQgASkDWCIFfCAFQgGGQv7///8fgyAEQv////8Pg358IgUgCIVCKIkiCCAHfCAIQv////8PgyAHQgGGQv7///8fg358IgcgBIVCMIkiBCABKQMoIgMgASkDCCIGfCAGQgGGQv7///8fgyADQv////8Pg358IgYgASkDaIVCIIkiCyABKQNIIgx8IAxCAYZC/v///x+DIAtC/////w+DfnwiDCADhUIoiSIDIAZ8IANC/////w+DIAZCAYZC/v///x+DfnwiBiALhUIwiSILIAx8IAtC/////w+DIAxCAYZC/v///x+DfnwiDCADhUIBiSIDIAEpAyAiDyABKQMAIgp8IApCAYZC/v///x+DIA9C/////w+DfnwiCiABKQNghUIgiSIQIAFBQGsiFikDACITfCATQgGGQv7///8fgyAQQv////8Pg358IhMgD4VCKIkiDyAKfCAPQv////8PgyAKQgGGQv7///8fg358Igp8IANC/////w+DIApCAYZC/v///x+DfnwiCYVCIIkiFCABKQMwIhEgASkDECINfCANQgGGQv7///8fgyARQv////8Pg358Ig0gASkDcIVCIIkiEiABKQNQIg58IA5CAYZC/v///x+DIBJC/////w+DfnwiDiARhUIoiSIRIA18IBFC/////w+DIA1CAYZC/v///x+DfnwiDSAShUIwiSISIA58IBJC/////w+DIA5CAYZC/v///x+DfnwiDnwgFEL/////D4MgDkIBhkL+////H4N+fCIVIAOFQiiJIgMgCXwgA0L/////D4MgCUIBhkL+////H4N+fCIJNwMAIAEgCSAUhUIwiSIJNwN4IAEgCSAVfCAJQv////8PgyAVQgGGQv7///8fg358Igk3A1AgASADIAmFQgGJNwMoIAEgBCAFfCAEQv////8PgyAFQgGGQv7///8fg358IgQgDiARhUIBiSIFIAZ8IAVC/////w+DIAZCAYZC/v///x+DfnwiAyAKIBCFQjCJIgaFQiCJIgp8IARCAYZC/v///x+DIApC/////w+DfnwiECAFhUIoiSIFIAN8IAVC/////w+DIANCAYZC/v///x+DfnwiCSAKhUIwiSIDNwNgIAEgCTcDCCABIAUgAyAQfCADQv////8PgyAQQgGGQv7///8fg358IgWFQgGJNwMwIAEgBTcDWCABIAQgCIVCAYkiCCANfCAIQv////8PgyANQgGGQv7///8fg358IgQgC4VCIIkiBSAGIBN8IAZC/////w+DIBNCAYZC/v///x+DfnwiA3wgBUL/////D4MgA0IBhkL+////H4N+fCIGIAiFQiiJIgggBHwgCEL/////D4MgBEIBhkL+////H4N+fCIENwMQIAEgBCAFhUIwiSIENwNoIBYgBCAGfCAEQv////8PgyAGQgGGQv7///8fg358IgY3AwAgASAHIAMgD4VCAYkiBHwgB0IBhkL+////H4MgBEL/////D4N+fCIHIBKFQiCJIgUgDHwgBUL/////D4MgDEIBhkL+////H4N+fCIDIASFQiiJIgQgB3wgBEL/////D4MgB0IBhkL+////H4N+fCILIAWFQjCJIgcgA3wgB0L/////D4MgA0IBhkL+////H4N+fCIFNwNIIAEgBzcDcCABIAs3AxggASAGIAiFQgGJNwM4IAEgBCAFhUIBiTcDICAAQQFqIgBBCEcNAAtBACEAA0AgGEGACGogAEEEdGoiASABKQOIAyIIIAEpA4gBIgd8IAdCAYZC/v///x+DIAhC/////w+DfnwiByABKQOIB4VCIIkiBCABKQOIBSIFfCAFQgGGQv7///8fgyAEQv////8Pg358IgUgCIVCKIkiCCAHfCAIQv////8PgyAHQgGGQv7///8fg358IgcgBIVCMIkiBCABKQOIAiIDIAEpAwgiBnwgBkIBhkL+////H4MgA0L/////D4N+fCIGIAEpA4gGhUIgiSILIAEpA4gEIgx8IAxCAYZC/v///x+DIAtC/////w+DfnwiDCADhUIoiSIDIAZ8IANC/////w+DIAZCAYZC/v///x+DfnwiBiALhUIwiSILIAx8IAtC/////w+DIAxCAYZC/v///x+DfnwiDCADhUIBiSIDIAEpA4ACIg8gASkDACIKfCAKQgGGQv7///8fgyAPQv////8Pg358IgogASkDgAaFQiCJIhAgASkDgAQiE3wgE0IBhkL+////H4MgEEL/////D4N+fCITIA+FQiiJIg8gCnwgD0L/////D4MgCkIBhkL+////H4N+fCIKfCADQv////8PgyAKQgGGQv7///8fg358IgmFQiCJIhQgASkDgAMiESABKQOAASINfCANQgGGQv7///8fgyARQv////8Pg358Ig0gASkDgAeFQiCJIhIgASkDgAUiDnwgDkIBhkL+////H4MgEkL/////D4N+fCIOIBGFQiiJIhEgDXwgEUL/////D4MgDUIBhkL+////H4N+fCINIBKFQjCJIhIgDnwgEkL/////D4MgDkIBhkL+////H4N+fCIOfCAUQv////8PgyAOQgGGQv7///8fg358IhUgA4VCKIkiAyAJfCADQv////8PgyAJQgGGQv7///8fg358Igk3AwAgASAJIBSFQjCJIgk3A4gHIAEgCSAVfCAJQv////8PgyAVQgGGQv7///8fg358Igk3A4AFIAEgAyAJhUIBiTcDiAIgASAEIAV8IARC/////w+DIAVCAYZC/v///x+DfnwiBCAOIBGFQgGJIgUgBnwgBUL/////D4MgBkIBhkL+////H4N+fCIDIAogEIVCMIkiBoVCIIkiCnwgBEIBhkL+////H4MgCkL/////D4N+fCIQIAWFQiiJIgUgA3wgBUL/////D4MgA0IBhkL+////H4N+fCIJIAqFQjCJIgM3A4AGIAEgCTcDCCABIAUgAyAQfCADQv////8PgyAQQgGGQv7///8fg358IgWFQgGJNwOAAyABIAU3A4gFIAEgBCAIhUIBiSIIIA18IAhC/////w+DIA1CAYZC/v///x+DfnwiBCALhUIgiSIFIAYgE3wgBkL/////D4MgE0IBhkL+////H4N+fCIDfCAFQv////8PgyADQgGGQv7///8fg358IgYgCIVCKIkiCCAEfCAIQv////8PgyAEQgGGQv7///8fg358IgQ3A4ABIAEgBCAFhUIwiSIENwOIBiABIAQgBnwgBEL/////D4MgBkIBhkL+////H4N+fCIGNwOABCABIAcgAyAPhUIBiSIEfCAHQgGGQv7///8fgyAEQ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Qv9+Vq18NwBIIAAgAEHgAGoiBBBSIAAgACgA4AJBgAFrIgU2AOACIAVBgQFPDQMgBCAAQeABaiAFEAsaIAAoAOACIQULIAAgACkAQCIGIAWtfCIHNwBAIAAgACkASCAGIAdWrXw3AEggAC0A5AIEQCAAQn83AFgLIABCfzcAUCAAQeAAaiIEIAVqQQBBgAIgBWsQDBogACAEEFIgAyAAKQAANwMAIAMgACkACDcDCCADIAApABA3AxAgAyAAKQAYNwMYIAMgACkAIDcDICADIAApACg3AyggAyAAKQAwNwMwIAMgACkAODcDOCABIAMgAhALGiAAQcAAEAkgBEGAAhAJQQAhBAsgA0FAayQAIAQPCxAOAAtB6gpB0glBsgJB9ggQAQALBQBBoAMLZAEFfwNAIAAgA2oiAiACLQAAIAEgA2otAABrIARqIgI6AAAgACADQQFyIgRqIgYgBi0AACABIARqLQAAayACQQh1aiICOgAAIAJBCHUhBCADQQJqIQMgBUECaiIFQcAARw0ACwuZDQESfyMAQaAEayICJAAgACgAPCEEIAAoADghBSAAKAA0IQYgACgAMCEHIAAoACAhCCAAKAAkIQkgACgAKCEKIAAoACwhCyAAKAAcIQwgACgAGCENIAAoABQhDiAAKAAQIQ8gACgABCEQIAAoAAghESAAKAAMIRIgACgAACETIAIgASkCeDcDmAQgAiABKQJwNwOQBCACIAEpAmg3A/gDIAIgASkCYDcD8AMgAiABKQJ4NwPoAyACIAEpAnA3A+ADIAJBgARqIgMgAkHwA2ogAkHgA2oQCCABIAIpAogENwJ4IAEgAikCgAQ3AnAgAiABKQJYNwPYAyACIAEpAlA3A9ADIAIgASkCaDcDyAMgAiABKQJgNwPAAyADIAJB0ANqIAJBwANqEAggASACKQKIBDcCaCABIAIpAoAENwJgIAIgASkCSDcDuAMgAiABQUBrIgApAgA3A7ADIAIgASkCWDcDqAMgAiABKQJQNwOgAyADIAJBsANqIAJBoANqEAggASACKQKIBDcCWCABIAIpAoAENwJQIAIgASkCODcDmAMgAiABKQIwNwOQAyACIAEpAkg3A4gDIAIgACkCADcDgAMgAyACQZADaiACQYADahAIIAEgAikCiAQ3AkggACACKQKABDcCACACIAEpAig3A/gCIAIgASkCIDcD8AIgAiABKQI4NwPoAiACIAEpAjA3A+ACIAMgAkHwAmogAkHgAmoQCCABIAIpAogENwI4IAEgAikCgAQ3AjAgAiABKQIYNwPYAiACIAEpAhA3A9ACIAIgASkCKDcDyAIgAiABKQIgNwPAAiADIAJB0AJqIAJBwAJqEAggASACKQKIBDcCKCABIAIpAoAENwIgIAIgASkCCDcDuAIgAiABKQIANwOwAiACIAEpAhg3A6gCIAIgASkCEDcDoAIgAyACQbACaiACQaACahAIIAEgAikCiAQ3AhggASACKQKABDcCECACIAIpA5gENwOYAiACIAIpA5AENwOQAiACIAEpAgg3A4gCIAIgASkCADcDgAIgAyACQZACaiACQYACahAIIAEgAikCiAQ3AgggASACKQKABDcCACABIBIgASgADHM2AgwgASARIAEoAAhzNgIIIAEgECABKAAEczYCBCABIBMgASgAAHM2AgAgACAPIAAoAABzNgIAIAEgDiABKABEczYCRCABIA0gASgASHM2AkggASAMIAEoAExzNgJMIAIgASkCeDcDmAQgAiABKQJwNwOQBCACIAEpAmg3A/gBIAIgASkCYDcD8AEgAiABKQJ4NwPoASACIAEpAnA3A+ABIAMgAkHwAWogAkHgAWoQCCABIAIpAogENwJ4IAEgAikCgAQ3AnAgAiABKQJYNwPYASACIAEpAlA3A9ABIAIgASkCaDcDyAEgAiABKQJgNwPAASADIAJB0AFqIAJBwAFqEAggASACKQKIBDcCaCABIAIpAoAENwJgIAIgASkCSDcDuAEgAiAAKQIANwOwASACIAEpAlg3A6gBIAIgASkCUDcDoAEgAyACQbABaiACQaABahAIIAEgAikCiAQ3AlggASACKQKABDcCUCACIAEpAjg3A5gBIAIgASkCMDcDkAEgAiABKQJINwOIASACIAApAgA3A4ABIAMgAkGQAWogAkGAAWoQCCABIAIpAogENwJIIAAgAikCgAQ3AgAgAiABKQIoNwN4IAIgASkCIDcDcCACIAEpAjg3A2ggAiABKQIwNwNg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IANwPwASADIAEpAgg3A+gBIAMgASkCADcD4AEgA0GAAmoiBCADQfABaiADQeABahAIIAEgAykCiAI3AgggASADKQKAAjcCACADIAcpAgg3A9gBIAMgBykCADcD0AEgAyAGKQIINwPIASADIAYpAgA3A8ABIAQgA0HQAWogA0HAAWoQCCAGIAMpAogCNwIIIAYgAykCgAI3AgAgAyAAKQIINwO4ASADIAApAgA3A7ABIAMgBykCCDcDqAEgAyAHKQIANwOgASAEIANBsAFqIANBoAFqEAggByADKQKIAjcCCCAHIAMpAoACNwIAIAMgCCkCCDcDmAEgAyAIKQIANwOQASADIAApAgg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAIIAAgAykCiAI3AgggACADKQKAAjcCACADIAkpAgg3A3ggAyAJKQIANwNwIAMgCCkCCDcDaCADIAgpAgA3A2AgBCADQfAAaiADQeAAahAIIAggAykCiAI3AgggCCADKQKAAjcCACADIAopAgg3A1ggAyAKKQIANwNQIAMgCSkCCDcDSCADIAkpAgA3A0AgBCADQdAAaiADQUBrEAggCSADKQKIAjcCCCAJIAMpAoACNwIAIAMgAikCCDcDOCADIAIpAgA3AzAgAyAKKQIINwMoIAMgCikCADcDICAEIANBMGogA0EgahAIIAogAykCiAI3AgggCiADKQKAAjcCACADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAIIAIgAykCiAI3AgggAiADKQKAAjcCACACIAIoAAwgEnM2AgwgAiACKAAIIBFzNgIIIAIgAigABCAQczYCBCACIAIoAAAgE3M2AgAgACAAKAAAIA5zNgIAIAIgAigARCALczYCRCACIAIoAEggDHM2AkggAiACKABMIA1zNgJMIAVBAWoiBUEKRw0ACyADQaACaiQACxAAIAAgAUGMlwIoAgARAAAL0g8BJH8jAEHwBGsiAiQAIAJB4ANqIgMgARAFIANB4AwgAxAGIAIgAigChAQiBzYClAIgAiACKAKABCIINgKQAiACIAIoAvwDIgk2AowCIAIgAigC+AMiCjYCiAIgAiACKAL0AyILNgKEAiACIAIoAvADIgw2AoACIAIgAigC7AMiDTYC/AEgAiACKALoAyIONgL4ASACIAIoAuQDIgU2AvQBIAIgAigC4AMiBkEBajYC8AEgAkHwAWoiBCAEQbCJAhAGIAIgB0HM5N8FazYC1AMgAiAIQYCS9QhrNgLQAyACIAlB55zGAWs2AswDIAIgCkHEhv8CazYCyAMgAiALQeiumARrNgLEAyACIAxBqYAHajYCwAMgAiANQY+UqANqNgK8AyACIA5Bw6KqB2s2ArgDIAIgBUGF5c0GajYCtAMgAiAGQcqOmgVrNgKwAyACQcABaiIZIANBsAwQBiACQQAgAigC5AFrNgLkASACQQAgAigC4AFrNgLgASACQQAgAigC3AFrNgLcASACQQAgAigC2AFrNgLYASACQQAgAigC1AFrNgLUASACQQAgAigC0AFrNgLQASACQQAgAigCzAFrNgLMASACQQAgAigCyAFrNgLIASACQQAgAigCxAFrNgLEASACIAIoAsABQX9zNgLAASAZIBkgAkGwA2oQBiACQYADaiIiIAQgGRBqIQMgAkHQAmoiBCAiIAEQBiACQcAEaiIkIAQQESACLQDABCElIAIoAqQDIRogAigC9AIhBCACKAKgAyEbIAIoAvACIRAgAigCnAMhHCACKALsAiERIAIoApgDIR0gAigC6AIhEiACKAKUAyEeIAIoAuQCIRMgAigCkAMhHyACKALgAiEUIAIoAowDISAgAigC3AIhFSACKAKIAyEhIAIoAtgCIRYgAigChAMhDyACKALUAiEXIAIoAoADISMgAigC0AIhGCACIAcgA0EBayIBcTYC5AQgAiABIAhxNgLgBCACIAEgCXE2AtwEIAIgASAKcTYC2AQgAiABIAtxNgLUBCACIAEgDHE2AtAEIAIgASANcTYCzAQgAiABIA5xNgLIBCACIAEgBXE2AsQEIAIgBkEAIANrcjYCwAQgAiAjICNBACAYQQAgJUEBcWsiAyAYQQAgGGtzcXNrcyABcXMiGDYCgAMgAiAPIA9BACAXIBdBACAXa3MgA3Fza3MgAXFzIhc2AoQDIAIgISAhQQAgFiAWQQAgFmtzIANxc2tzIAFxcyIWNgKIA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Pg30gIUIZh0ITfiAeQobaHX58Ih5CgICAEHwiGkIaiHynIgE2AtQBIAIgESALayABajYC5AIgAiAeIBpCgICA4A+DfaciATYC0AEgAiAPIAxrIAFqNgLgAiACQfAEaiIDIAJB4AJqIgEgARAGIAIgASADEAYgAkGQBmoiASACEAUgASABEAUgAkGQB2oiBSACIAEQBiACQcAEaiIDIAUQBSADIAMQBSADIAMQBSADIAMQBSACQZAEaiIBIAUgAxAGIAEgARAFIAEgARAFIAEgASACEAYgAiACKQOwBDcDgAQgAiACKQOoBDcD+AMgAiACKQOgBDcD8AMgAiACKQOYBDcD6AMgAiACKQOQBDcD4AMgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAJB4ANqIgMQBiABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAxAGIAIgAikDsAQ3A9ADIAIgAikDqAQ3A8gDIAIgAikDoAQ3A8ADIAIgAikDmAQ3A7gDIAIgAikDkAQ3A7ADIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASACQbADaiIDEAYgAiACKQOwBDcD0AMgAiACKQOoBDcDyAMgAiACKQOgBDcDwAMgAiACKQOYBDcDuAMgAiACKQOQBDcDsAMgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAIpA7AENwPQAyACIAIpA6gENwPIAyACIAIpA6AENwPAAyACIAIpA5gENwO4AyACIAIpA5AENwOwAwNAIAJBkARqIgEgARAFIARBAWoiBEH4AEcNAAsgASABIAJBsANqEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAJB4ANqEAYgASABEAUgASABEAUgASABEAUgASABIAIQBiABIAEQBSACQZADaiABEBEgAigCgAIhAyACKAKEAiEEIAIoAogCIQUgAigCjAIhBiACKAKQAiEHIAIoApQCIQggAigCmAIhCSACKAKcAiEKIAIoAqACIQsgAkEAIAItAJEDQQFxayIBIAIoAqQCIgxBACAMa3NxIAxzIgw2ApQFIAIgCyALQQAgC2tzIAFxcyILNgKQBSACIAogCkEAIAprcyABcXMiCjYCjAUgAiAJIAlBACAJa3MgAXFzIgk2AogFIAIgCCAIQQAgCGtzIAFxcyIINgKEBSACIAcgB0EAIAdrcyABcXMiBzYCgAUgAiAGIAZBACAGa3MgAXFzIgY2AvwEIAIgBSAFQQAgBWtzIAFxcyIFNgL4BCACIAQgBEEAIARrcyABcXMiBDYC9AQgAiADIANBACADa3MgAXFzIAFBhtodcWsiAUEBajYC8AQgAiAMNgK0BiACIAs2ArAGIAIgCjYCrAYgAiAJNgKoBiACIAg2AqQGIAIgBzYCoAYgAiAGNgKcBiACIAU2ApgGIAIgBDYClAYgAiABQQFrNgKQBiACIAJB8ARqEDUgAkGQB2oiASACQZAGaiACEAYgACABEBEgACAALQAfIBByOgAfIAIgABA0BEAQiwEACyACIAIpAiA3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2AmwgA0EAIAZrNgJoIANBACAFazYCZCADQQAgBGs2AmAgA0EAIAFrNgJcIANBACALazYCWCAAIANBCGogAkGAAXFBB3YQKSADQYABaiQAC6wFAQl/IwBBoAFrIgMkACAAQQE2AgAgAEIANwIEIABCADcCDCAAQgA3AhQgAEIANwIcIABCADcCLCAAQoCAgIAQNwIkIABCADcCNCAAQgA3AjwgAEIANwJEIABCgICAgBA3AkwgAEHUAGpBAEHMABAMGiAAIAEgAiACQR91IAJxQQF0ayIEQQFzQf8BcUEBa0EfdhAqIAAgAUGgAWogBEECc0H/AXFBAWtBH3YQKiAAIAFBwAJqIARBA3NB/wFxQQFrQR92ECogACABQeADaiAEQQRzQf8BcUEBa0EfdhAqIAAgAUGABWogBEEFc0H/AXFBAWtBH3YQKiAAIAFBoAZqIARBBnNB/wFxQQFrQR92ECogACABQcAHaiAEQQdzQf8BcUEBa0EfdhAqIAAgAUHgCGogBEEIc0H/AXFBAWtBH3YQKiADIAApAkg3AyAgAyAAQUBrKQIANwMYIAMgACkCODcDECADIAApAjA3AwggAyAAKQIoNwMAIAMgACkCIDcDSCADQUBrIAApAhg3AwAgAyAAKQIQNwM4IAMgACkCCDcDMCADIAApAgA3AyggAyAAKQJYNwNYIAMgACkCYDcDYCADIAApAmg3A2ggAyAAKQJwNwNwIAMgACkCUDcDUCAAKAJ8IQEgACgCgAEhBCAAKAKEASEFIAAoAogBIQYgACgCjAEhByAAKAKQASEIIAAoApQBIQkgACgCmAEhCiAAKAJ4IQsgA0EAIAAoApwBazYCnAEgA0EAIAprNgKYASADQQAgCWs2ApQBIANBACAIazYCkAEgA0EAIAdrNgKMASADQQAgBms2AogBIANBACAFazYChAEgA0EAIARrNgKAASADQQAgAWs2AnwgA0EAIAtrNgJ4IAAgAyACQYABcUEHdhAqIANBoAFqJAALjhEBE38jAEHAH2siAyQAIANBoAFqIAIQECADQYAeaiIGIAIpAiA3AwAgA0H4HWoiByACKQIYNwMAIANB8B1qIgkgAikCEDcDACADQegdaiIMIAIpAgg3AwAgAyACKQIANwPgHSADQZAeaiINIAIpAjA3AwAgA0GYHmoiDiACKQI4NwMAIANBoB5qIg8gAkFAaykCADcDACADQageaiIQIAIpAkg3AwAgAyACKQIoNwOIHiADQbgeaiIRIAIpAlg3AwAgA0HAHmoiEiACKQJgNwMAIANByB5qIhMgAikCaDcDACADQdAeaiIUIAIpAnA3AwAgAyACKQJQNwOwHiADQcgbaiIIIANB4B1qIhUQGCADQegSaiILIAggA0HAHGoiBBAGIANBkBNqIANB8BtqIgUgA0GYHGoiChAGIANBuBNqIAogBBAGIANB4BNqIAggBRAGIANBwAJqIgQgCxAQIANBqBpqIgggAiAEEBMgA0HIEWoiCyAIIANBoBtqIgQQBiADQfARaiADQdAaaiIFIANB+BpqIgoQBiADQZgSaiAKIAQQBiADQcASaiAIIAUQBiADQeADaiALEBAgBiADQYgTaikCADcDACAHIANBgBNqKQIANwMAIAkgA0H4EmopAgA3AwAgDCADQfASaikCADcDACANIANBmBNqKQIANwMAIA4gA0GgE2opAgA3AwAgDyADQagTaikCADcDACAQIANBsBNqKQIANwMAIAMgAykC6BI3A+AdIAMgAykCkBM3A4geIBQgA0HYE2opAgA3AwAgEyADQdATaikCADcDACASIANByBNqKQIANwMAIBEgA0HAE2opAgA3AwAgAyADKQK4EzcDsB4gA0GIGWoiCCAVEBggA0GoEGoiCyAIIANBgBpqIgQQBiADQdAQaiADQbAZaiIFIANB2BlqIgoQBiADQfgQaiAKIAQQBiADQaARaiAIIAUQBiADQYAFaiIEIAsQECADQegXaiIIIAIgBBATIANBiA9qIgsgCCADQeAYaiIEEAYgA0GwD2ogA0GQGGoiBSADQbgYaiIKEAYgA0HYD2ogCiAEEAYgA0GAEGogCCAFEAYgA0GgBmogCxAQIAYgA0HoEWopAgA3AwAgByADQeARaikCADcDACAJIANB2BFqKQIANwMAIAwgA0HQEWopAgA3AwAgDSADQfgRaikCADcDACAOIANBgBJqKQIANwMAIA8gA0GIEmopAgA3AwAgECADQZASaikCADcDACADIAMpAsgRNwPgHSADIAMpAvARNwOIHiAUIANBuBJqKQIANwMAIBMgA0GwEmopAgA3AwAgEiADQagSaikCADcDACARIANBoBJqKQIANwMAIAMgAykCmBI3A7AeIANByBZqIgggFRAYIANB6A1qIgsgCCADQcAXaiIEEAYgA0GQDmogA0HwFmoiBSADQZgXaiIKEAYgA0G4DmogCiAEEAYgA0HgDmogCCAFEAYgA0HAB2oiBCALEBAgA0GoFWoiCiACIAQQEyADQcgMaiIIIAogA0GgFmoiAhAGIANB8AxqIANB0BVqIgQgA0H4FWoiBRAGIANBmA1qIAUgAhAGIANBwA1qIAogBBAGIANB4AhqIAgQECAGIANByBBqKQIANwMAIAcgA0HAEGopAgA3AwAgCSADQbgQaikCADcDACAMIANBsBBqKQIANwMAIA0gA0HYEGopAgA3AwAgDiADQeAQaikCADcDACAPIANB6BBqKQIANwMAIBAgA0HwEGopAgA3AwAgAyADKQKoEDcD4B0gAyADKQLQEDcDiB4gFCADQZgRaikCADcDACATIANBkBFqKQIANwMAIBIgA0GIEWopAgA3AwAgESADQYARaikCADcDACADIAMpAvgQNwOwHiADQYgUaiIEIBUQGCADQagLaiIJIAQgA0GAFWoiAhAGIANB0AtqIANBsBRqIgYgA0HYFGoiBxAGIANB+AtqIAcgAhAGIANBoAxqIAQgBhAGIANBgApqIAkQEEEAIQZBACECA0AgA0GAH2oiBCACQQF0aiIHIAEgAmotAAAiCUEEdjoAASAHIAlBD3E6AAAgAkEBciIHQQF0IARqIgkgASAHai0AACIHQQR2OgABIAkgB0EPcToAACACQQJqIgJBIEcNAAtBACEBA0AgA0GAH2ogBmoiAiACLQAAIAFqIgEgAUEIaiIBQfABcWs6AAAgAiACLQABIAHAQQR1aiIBIAFBCGoiAUHwAXFrOgABIAIgAi0AAiABwEEEdWoiASABQQhqIgFB8AFxazoAAiABwEEEdSEBIAZBA2oiBkE/Rw0ACyADIAMtAL8fIAFqOgC/HyAAQgA3AiAgAEIANwIYIABCADcCECAAQgA3AgggAEIANwI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IAAgATYCAEEAC4kGARd/IwBBwAJrIgIkACAAQShqIgYgARA2IABCADcCVCAAQQE2AlAgAEIANwJcIABCADcCZCAAQgA3AmwgAEEANgJ0IAJB8AFqIgUgBhAFIAJBwAFqIgQgBUGwDBAGQX8hByACIAIoAvABQQFrIgg2AvABIAIgAigCwAFBAWo2AsABIAIoAvQBIQkgAigC+AEhCiACKAL8ASELIAIoAoACIQwgAigChAIhDSACKAKIAiEOIAIoAowCIQ8gAigCkAIhECACKAKUAiERIAJBkAFqIgMgBBAFIAMgAyAEEAYgACADEAUgACAAIAQQBiAAIAAgBRAGIAAgABBuIAAgACADEAYgACAAIAUQBiACQeAAaiIDIAAQBSADIAMgBBAGIAIgAigChAEiBCARazYCVCACIAIoAoABIgMgEGs2AlAgAiACKAJ8IgUgD2s2AkwgAiACKAJ4IhIgDms2AkggAiACKAJ0IhMgDWs2AkQgAiACKAJwIhQgDGs2AkAgAiACKAJsIhUgC2s2AjwgAiACKAJoIhYgCms2AjggAiACKAJkIhcgCWs2AjQgAiACKAJgIhggCGs2AjAgAiACQTBqEBECQCACQSAQGkUEQCACIAQgEWo2AiQgAiADIBBqNgIgIAIgBSAPajYCHCACIA4gEmo2AhggAiANIBNqNgIUIAIgDCAUajYCECACIAsgFWo2AgwgAiAKIBZqNgIIIAIgCSAXajYCBCACIAggGGo2AgAgAkGgAmoiBCACEBEgBEEgEBpFDQEgACAAQeAMEAYLIAJBoAJqIAAQESACLQCgAkEBcSABLQAfQQd2RgRAIABBACAAKAIAazYCACAAQQAgACgCJGs2AiQgAEEAIAAoAiBrNgIgIABBACAAKAIcazYCHCAAQQAgACgCGGs2AhggAEEAIAAoAhRrNgIUIABBACAAKAIQazYCECAAQQAgACgCDGs2AgwgAEEAIAAoAghrNgIIIABBACAAKAIEazYCBAsgAEH4AGogACAGEAZBACEHCyACQcACaiQAIAcLBQBBgAILEAAgACABQYSXAigCABEAAAsQACAAIAFB/JYCKAIAEQAACy0BAX4gAq0gA61CIIaEIgZCEFoEfyAAIAFBEGogASAGQhB9IAQgBRBeBUF/CwsYACAAIAEgAiADrSAErUIghoQgBSAGEF4LGAAgACABIAIgA60gBK1CIIaEIAUgBhBPCxYAIAAgASACrSADrUIghoQgBCAFEHkLFQAgACABrSACrUIghoQgAyAEEM0BCxYAIAAgASACrSADrUIghoQgBEEAEHYLFwAgACABIAIgA60gBK1CIIaEIAUQhQMLFwAgACABIAIgA60gBK1CIIaEIAUQgwMLFwAgACABIAIgA60gBK1CIIaEIAUQhAMLFQAgACABIAKtIAOtQiCGhCAEEOkCCx8AIAAgASACrSADrUIghoQgBK0gBa1CIIaEIAYQ0QELGgAgACABIAKtIAOtQiCGhEGAlwIoAgARAgALHAAgACABIAKtIAOtQiCGhCAEQfiWAigCABERAAscACAAIAEgAq0gA61CIIaEIARB9JYCKAIAEREACxcAIAAgASACrSADrUIghoQgBCAFEOoCCxIAIAAgASACrSADrUIghoQQRwsYACAAIAEgAiADrSAErUIghoQgBSAGEGELLQEBfiACrSADrUIghoQiBkIQWgR/IAAgAUEQaiABIAZCEH0gBCAFEF0FQX8LCxgAIAAgASACIAOtIAStQiCGhCAFIAYQXQsYACAAIAEgAiADrSAErUIghoQgBSAGEE4LGQAgACABIAKtIAOtQiCGhCAEIAUgBhD3AgsZACAAIAEgAq0gA61CIIaEIAQgBSAGEPgCCxIAIAAgASACrSADrUIghoQQJgsVACAAIAEgAq0gA61CIIaEIAQQ4gILFQAgACABIAKtIAOtQiCGhCAEEOMCC4wBAQF/IwBBEGsiAiAANgIMIAIgATYCCEEAIQAgAkEANgIEA0AgAiACKAIEIAIoAgwgAGotAAAgAigCCCAAai0AAHNyNgIEIAIgAigCBCAAQQFyIgEgAigCDGotAAAgAigCCCABai0AAHNyNgIEIABBAmoiAEHAAEcNAAsgAigCBEEBa0EIdkEBcUEBawvaAgECfyMAQZADayIIJAAgCEEANgIEIAhBEGoiCSAGIAdBABAbGiAIIAYpABA3AgggCEHQAGoiB0LAACAIQQRqIAkQMxogCEGQ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IIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiABLQAfIQMgACACBH8gACAALQAAQfgBcToAACADQcAAcgUgAwtB/wBxOgAfIAQgABA+IAAgBBAvQX8hAyAALQAfQf8AcSAALQAeIAAtAB0gAC0AHCAALQAbIAAtABogAC0AGSAALQAYIAAtABcgAC0AFiAALQAVIAAtABQgAC0AEyAALQASIAAtABEgAC0AECAALQAPIAAtAA4gAC0ADSAALQAMIAAtAAsgAC0ACiAALQAJIAAtAAggAC0AByAALQAGIAAtAAUgAC0ABCAALQADIAAtAAIgAC0AASAALQAAQQFzcnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyckEBa0GAAnFFBEBBf0EAIAFBIBAaGyEDCyAEQaABaiQAIAMLjgUBAn8jAEHAAmsiBCQAQX8hBQJAIAIQa0UNACACEEwNACAEIAIQNA0AIAQQbEUNACAAIAEtAAA6AAAgACABLQABOgABIAAgAS0AAjoAAiAAIAEtAAM6AAMgACABLQAEOgAEIAAgAS0ABToABSAAIAEtAAY6AAYgACABLQAHOgAHIAAgAS0ACDoACCAAIAEtAAk6AAkgACABLQAKOgAKIAAgAS0ACzoACyAAIAEtAAw6AAwgACABLQANOgANIAAgAS0ADjoADiAAIAEtAA86AA8gACABLQAQOgAQIAAgAS0AEToAESAAIAEtABI6ABIgACABLQATOgATIAAgAS0AFDoAFCAAIAEtABU6ABUgACABLQAWOgAWIAAgAS0AFzoAFyAAIAEtABg6ABggACABLQAZOgAZIAAgAS0AGjoAGiAAIAEtABs6ABsgACABLQAcOgAcIAA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CAHIAIgA6ciAhALGiABIAEoAuACIAJqNgLgAgwCCyAHIAIgBhALGiABIAEoAuACIAZqNgLgAiABIAEpA0AiDEKAAXw3A0AgASABKQNIIAxC/35WrXw3A0ggASAFEFIgBSAJQYABEAsaIAEgASgC4AJBgAFrIgQ2AuACIAIgBmohAiADIAt9IgNCAFINAAsLIAEgACAIEIMBGiAKJABBAAwBCxAOAAshCAsgCAsFAEGAAwsKACAAIAEgAhAHC/ADAgJ/An4jAEHAAWsiAyQAIANCADcDkAEgA0IANwOYASADQgA3A2ggA0IANwNwIANCADcDeCADQfiSAikDADcDqAEgA0GAkwIpAwA3A7ABIANBiJMCKQMANwO4ASADQgA3A4ABIANCADcDiAEgA0IANwNgIANB8JICKQMANwOgASADIAIpABA3A1AgAyACKQAYNwNYIAMgAikAADcDQCADIAIpAAg3A0ggA0GAAWoiAiADQUBrIgQQhQEgAhAoIAMgAykDmAE3AxggAyADKQOQATcDECADIAMpA4gBNwMIIAMgAykDgAE3AwAgA0IANwN4IANCADcDcCADQgA3A2ggA0IANwNgIAMgASkAEDcDUCADIAEpABg3A1ggASkACCEFIAEpAAAhBiADQgA3AzggA0IANwMwIANCADcDKCADIAY3A0AgAyAFNwNIIANCADcDICAEIAMQ6QEgAyADKQN4NwO4ASADIAMpA3A3A7ABIAMgAykDaDcDqAEgAyADKQNgNwOgASADIAMpA1g3A5gBIAMgAykDUDcDkAEgAyADKQNINwOIASADIAMpA0A3A4ABIAIQKCAAIAMpA5gBNwAYIAAgAykDkAE3ABAgACADKQOIATcACCAAIAMpA4ABNwAAIAJBwAAQCSADQcABaiQAC5cBAQF/IwBBQGoiAiQAIAIgASkAODcDOCACIAEpADA3AzAgAiABKQAoNwMoIAIgASkAIDcDICACIAEpABg3AxggAiABKQAQNwMQIAIgASkAADcDACACIAEpAAg3AwggAhAoIAAgAikDGDcAGCAAIAIpAxA3ABAgACACKQMINwAIIAAgAikDADcAACACQcAAEAkgAkFAayQAC8cCAgF/An4jAEHAAWsiAyQAIANCADcDYCADQgA3A2ggA0IANwNwIANCADcDeCADIAEpABA3A1AgAyABKQAYNwNYIAEpAAghBCABKQAAIQUgA0IANwMoIANCADcDMCADQgA3AzggAyAFNwNAIAMgBDcDSCADQgA3AyAgAyACKQAQNwMQIAMgAikAGDcDGCADIAIpAAA3AwAgAyACKQAINwMIIANBQGsgAxDpASADIAMpA3g3A7gBIAMgAykDcDcDsAEgAyADKQNoNwOoASADIAMpA2A3A6ABIAMgAykDWDcDmAEgAyADKQNQNwOQASADIAMpA0g3A4gBIAMgAykDQDcDgAEgA0GAAWoiARAoIAAgAykDmAE3ABggACADKQOQATcAECAAIAMpA4gBNwAIIAAgAykDgAE3AAAgAUHAABAJIANBwAFqJAAL5QEBAX8jAEGAAWsiAiQAIAJCADcDUCACQgA3A1ggAkIANwMoIAJCADcDMCACQgA3AzggAkH4kgIpAwA3A2ggAkGAkwIpAwA3A3AgAkGIkwIpAwA3A3ggAkIANwNAIAJCADcDSCACQQE6AEAgAkIANwMgIAJB8JICKQMANwNgIAIgASkAGDcDGCACIAEpABA3AxAgAiABKQAINwMIIAIgASkAADcDACACQUBrIgEgAhCFASABECggACACKQNYNwAYIAAgAikDUDcAECAAIAIpA0g3AAggACACKQNANwAAIAJBgAFqJAAL3gEBAX8jAEGAAWsiAiQAIAJCADcDUCACQgA3A1ggAkIANwMoIAJCADcDMCACQgA3AzggAkH4kgIpAwA3A2ggAkGAkwIpAwA3A3AgAkGIkwIpAwA3A3ggAkIANwNAIAJCADcDSCACQgA3AyAgAkHwkgIpAwA3A2AgAiABKQAQNwMQIAIgASkAGDcDGCACIAEpAAA3AwAgAiABKQAINwMIIAJBQGsiASACEIUBIAEQKCAAIAIpA1g3ABggACACKQNQNwAQIAAgAikDSDcACCAAIAIpA0A3AAAgAkGAAWokAAvPCwELfyMAQeAFayICJAAgAkHABWoiByABIAEQByACQeABaiIGIAEgBxAHIAJBoAVqIgQgASAGEAcgAkGABWoiBSAEIAQQByACQaADaiIJIAcgBRAHIAJBwAJqIgcgASAJEAcgAkHgBGoiAyAFIAUQByACQaACaiIFIAcgBxAHIAJBwARqIgggCSAFEAcgAkHAA2oiDCADIAUQByACQaAEaiIKIAggCBAHIAJBgANqIgggAyAKEAcgAkHgAmoiCyAGIAgQByACQcABaiIGIAMgCxAHIAJBoAFqIgMgBCAGEAcgAkHgAGogBCADEAcgAkGABGoiBiAKIAsQByACQeADaiIDIAQgBhAHIAJBgAJqIgYgDCADEAcgAkGAAWogBSAGEAcgAkFAayIFIAggAxAHIAJBIGoiAyAEIAUQByACIAkgAxAHIAAgByACEAdBACEEA0AgACAAIAAQByAEQQFqIgRB/gBHDQALIAAgACACQeACahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQcAFahAHIAAgACACEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkGgAWoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAhAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkGAAmoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBQGsQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHgAGoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHAAmoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBgARqEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHAAWoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHgA2oQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQYABahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkEgahAHIAJB4AVqJABBACABQSAQGmsLKAADQCAAQSAQGSAAIAAtAB9BH3E6AB8gABCNAUUNACAAQSAQGg0ACwsKACAAIAEgAhAuCykBAX8jAEEQayIAJAAgAEEAOgAPQeSfAiAAQQ9qQQAQABogAEEQaiQAC2MBBX8DQCAAIANqIgIgASADai0AACAEIAItAABqaiICOgAAIAAgA0EBciIEaiIGIAEgBGotAAAgBi0AACACQQh2amoiAjoAACACQQh2IQQgA0ECaiEDIAVBAmoiBUEgRw0ACwsoACACQoCAgIAQWgRAEA4ACyAAIAEgAiADQQEgBEG8nwIoAgAREAAaCwQAQQwLdAEFfwJAQQEhAgNAIAAgA2oiASACIAEtAABqIgI6AAAgASABLQABIAJBCHZqIgI6AAEgASABLQACIAJBCHZqIgI6AAIgASABLQADIAJBCHZqIgE6A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CCAEIAMpAgA3AwAgBSAEQRBqIAQQCCAEKALQASEBIAQoAtQBIQUgBCgC2AEhCCADIAcgBCgC3AFzNgIMIAMgBiAIczYCCCADIAIgBXM2AgQgAyAAIAFzNgIAIARB8AFqJAALqwYBFH8jAEHgAWsiAyQAIAIoABAhBCACQUBrIgUoAAAhBiACKABQIQkgAigAICEKIAIoADAhCyACKAAUIQcgAigARCEMIAIoAFQhDSABKAAEIQ4gAigAJCEPIAIoADQhECACKAAYIQggAigASCERIAIoAFghEiABKAAIIRMgAigAKCEUIAIoADghFSABKAAAIRYgACACKAAsIAIoADxxIAIoABwgAigATCACKABcIAEoAAxzc3NzIgE2AAwgACAUIBVxIAggESASIBNzc3NzIgg2AAggACAPIBBxIAcgDCANIA5zc3NzIgc2AAQgACAKIAtxIAQgBiAJIBZzc3NzIgA2AAAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCSDcDuAEgAyAFKQIANwOwASADIAIpAlg3A6gBIAMgAikCUDcDoAEgA0HAAWoiBCADQbABaiADQaABahAIIAIgAykCyAE3AlggAiADKQLAATcCUCADIAIpAjg3A5gBIAMgAikCMDcDkAEgAyACKQJINwOIASADIAUpAgA3A4ABIAQgA0GQAWogA0GAAWoQCCACIAMpAsgBNwJIIAUgAykCwAE3AgAgAyACKQIoNwN4IAMgAikCIDcDcCADIAIpAjg3A2ggAyACKQIwNwNgIAQgA0HwAGogA0HgAGoQCCACIAMpAsgBNwI4IAIgAykCwAE3AjAgAyACKQIYNwNYIAMgAikCEDcDUCADIAIpAig3A0ggAyACKQIgNwNAIAQgA0HQAGogA0FAaxAIIAIgAykCyAE3AiggAiADKQLAATcCICADIAIpAgg3AzggAyACKQIANwMwIAMgAikCGDcDKCADIAIpAhA3AyAgBCADQTBqIANBIGoQCCACIAMpAsgBNwIYIAIgAykCwAE3AhAgAyADKQPYATcDGCADIAMpA9ABNwMQIAMgAikCCDcDCCADIAIpAgA3AwAgBCADQRBqIAMQCCADKALAASEFIAMoAsQBIQ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QoAEQhECAEKAAYIREgBCgAOCESIAQoACghEyAEKABYIRQgBCgASCEVIAAgBCgAHCAEKAA8IAQoACwgBCgAXCAEKABMc3NzcyANczYADCAAIBEgEiATIBQgFXNzc3MgCXM2AAggACAIIAogDiAPIBBzc3NzIAxzNgAEIAAgASACIAMgBiAHc3NzcyALczYAAAwCCyAEKAAgIQEgBCgAECECIAQoACQhAyAEKAAUIQYgBCgAKCEHIAQoABghCCAAIAQoACwgBCgAHHMgDXM2AAwgACAHIAhzIAlzNgAIIAAgAyAGcyAMczYABCAAIAEgAnMgC3M2AAAgBCgAMCEBIAQoAFAhAiAEQUBrKAAAIQMgBCgANCEGIAQoAFQhByAEKABEIQggBCgAOCEKIAQoAFghDSAEKABIIQkgACAEKAA8IAQoAFwgBCgATHNzNgAcIAAgCiAJIA1zczYAGCAAIAYgByAIc3M2ABQgACABIAIgA3NzNgAQDAELIABBACABEAwaCyAFQeABaiQAC6UGARR/IwBB4AFrIgMkACACKAAQIQUgAkFAayIEKAAAIQkgAigAUCEKIAIoACAhCyACKAAwIQwgASgABCEGIAIoABQhDSACKABEIQ4gAigAVCEPIAIoACQhECACKAA0IREgASgACCEHIAIoABghEiACKABIIRMgAigAWCEUIAIoACghFSACKAA4IRYgASgAACEIIAAgASgADCIBIAIoACwgAigAPHEgAigAHCACKABcIAIoAExzc3NzNgAMIAAgByAVIBZxIBIgEyAUc3NzczYACCAAIAYgECARcSANIA4gD3Nzc3M2AAQgACAIIAsgDHEgBSAJIApzc3NzNgAAIAMgAikCWDcD2AEgAyACKQJQNwPQASADIAIpAkg3A7gBIAMgBCkCADcDsAEgAyACKQJYNwOoASADIAIpAlA3A6ABIANBwAFqIgAgA0GwAWogA0GgAWoQCCACIAMpAsgBNwJYIAIgAykCwAE3AlAgAyACKQI4NwOYASADIAIpAjA3A5ABIAMgAikCSDcDiAEgAyAEKQIANwOAASAAIANBkAFqIANBgAFqEAggAiADKQLIATcCSCAEIAMpAsABNwIAIAMgAikCKDcDeCADIAIpAiA3A3AgAyACKQI4NwNoIAMgAikCMDcDYCAAIANB8ABqIANB4ABqEAggAiADKQLIATcCOCACIAMpAsABNwIwIAMgAikCGDcDWCADIAIpAhA3A1AgAyACKQIoNwNIIAMgAikCIDcDQCAAIANB0ABqIANBQGsQCCACIAMpAsgBNwIoIAIgAykCwAE3AiAgAyACKQIINwM4IAMgAikCADcDMCADIAIpAhg3AyggAyACKQIQNwMgIAAgA0EwaiADQSBqEAggAiADKQLIATcCGCACIAMpAsABNwIQIAMgAykD2AE3AxggAyADKQPQATcDECADIAIpAgg3AwggAyACKQIANwMAIAAgA0EQaiADEAggAygCwAEhACADKALEASEEIAMoAsgBIQUgAiABIAMoAswBczYCDCACIAUgB3M2AgggAiAEIAZzNgIEIAIgACAIczYCACADQeABaiQAC6UJAQ1/IwBBoANrIgIkACAAKAAQIQYgACgAFCEHIAAoABghCCAAKAAcIQkgACgABCEEIAAoAAghBSAAKAAMIQogACgAACELIAIgASkCWDcDmAMgAiABKQJQNwOQAyACIAEpAkg3A/gCIAIgAUFAayIAKQIANwPwAiACIAEpAlg3A+gCIAIgASkCUDcD4AIgAkGAA2oiAyACQfACaiACQeACahAIIAEgAikCiAM3AlggASACKQKAAzcCUCACIAEpAjg3A9gCIAIgASkCMDcD0AIgAiABKQJINwPIAiACIAApAgA3A8ACIAMgAkHQAmogAkHAAmoQCCABIAIpAogDNwJIIAAgAikCgAM3AgAgAiABKQIoNwO4AiACIAEpAiA3A7ACIAIgASkCODcDqAIgAiABKQIwNwOgAiADIAJBsAJqIAJBoAJqEAggASACKQKIAzcCOCABIAIpAoADNwIwIAIgASkCGDcDmAIgAiABKQIQNwOQAiACIAEpAig3A4gCIAIgASkCIDcDgAIgAyACQZACaiACQYACahAIIAEgAikCiAM3AiggASACKQKAAzcCICACIAEpAgg3A/gBIAIgASkCADcD8AEgAiABKQIYNwPoASACIAEpAhA3A+ABIAMgAkHwAWogAkHgAWoQCCABIAIpAogDNwIYIAEgAikCgAM3AhAgAiACKQOYAzcD2AEgAiACKQOQAzcD0AEgAiABKQIINwPIASACIAEpAgA3A8ABIAMgAkHQAWogAkHAAWoQCCACKAKAAyEMIAIoAoQDIQ0gAigCiAMhDiABIAogAigCjANzNgIMIAEgBSAOczYCCCABIAQgDXM2AgQgASALIAxzNgIAIAIgASkCWDcDmAMgAiABKQJQNwOQAyACIAEpAkg3A7gBIAIgACkCADcDsAEgAiABKQJYNwOoASACIAEpAlA3A6ABIAMgAkGwAWogAkGgAWoQCCABIAIpAogDNwJYIAEgAikCgAM3AlAgAiABKQI4NwOYASACIAEpAjA3A5ABIAIgASkCSDcDiAEgAiAAKQIANwOAASADIAJBkAFqIAJBgAFqEAggASACKQKIAzcCSCAAIAIpAoADNwIAIAIgASkCKDcDeCACIAEpAiA3A3AgAiABKQI4NwNoIAIgASkCMDcDYCADIAJB8ABqIAJB4ABqEAggASACKQKIAzcCOCABIAIpAoADNwIwIAIgASkCGDcDWCACIAEpAhA3A1AgAiABKQIoNwNIIAIgASkCIDcDQCADIAJB0ABqIAJBQGsQCCABIAIpAogDNwIoIAEgAikCgAM3AiAgAiABKQIINwM4IAIgASkCADcDMCACIAEpAhg3AyggAiABKQIQNwMgIAMgAkEwaiACQSBqEAggASACKQKIAzcCGCABIAIpAoADNwIQIAIgAikDmAM3AxggAiACKQOQAzcDECACIAEpAgg3AwggAiABKQIANwMAIAMgAkEQaiACEAggAigCgAMhACACKAKEAyEEIAIoAogDIQUgASAJIAIoAowDczYCDCABIAUgCHM2AgggASAEIAdzNgIEIAEgACAGczYCACACQaADaiQAC/MUARl/IwBBoAZrIgMkACABKAAEIQsgASgACCEMIAEoAAwhDSABKAAQIQ4gASgAFCEEIAEoABghDyABKAAcIRAgACgABCERIAAoAAghEiAAKAAMIRMgACgAECEUIAAoABQhFSAAKAAYIRYgACgAHCEXIAEoAAAhBSACQUBrIgEgACgAACIYQYCChBBzNgIAIAJClcTcyYWy+rziADcCOCACQTBqIgBCgIKEkLCggYQNNwIAIAJCoKLEkbSurZRdNwIoIAJBIGoiBkLb++Co1c3wl3E3AgAgAiAFIBhzIhk2AgAgAiAXQfPqoul9czYCXCACIBZBoKLEkQRzNgJYIAIgFUHthL+Jf3M2AlQgAkHQAGoiBSAUQdv74KgFczYCACACIBNBkNPnkwZzNgJMIAIgEkGVxNzJBXM2AkggAiARQYOKoOgAczYCRCACIBAgF3MiEDYCHCACIA8gFnMiDzYCGCACIAQgFXMiGjYCFCACQRBqIgQgDiAUcyIONgIAIAIgDSATcyINNgIMIAIgDCAScyIMNgIIIAIgCyARcyIbNgIEQQAhCwNAIAMgBSkCCDcDmAYgAyAFKQIANwOQBiADIAEpAgg3A/gFIAMgASkCADcD8AUgAyAFKQIINwPoBSADIAUpAgA3A+AFIANBgAZqIgcgA0HwBWogA0HgBWoQCCAFIAMpAogGNwIIIAUgAykCgAY3AgAgAyAAKQIINwPYBSADIAApAgA3A9AFIAMgASkCCDcDyAUgAyABKQIANwPABSAHIANB0AVqIANBwAVqEAggASADKQKIBjcCCCABIAMpAoAGNwIAIAMgBikCCDcDuAUgAyAGKQIANwOwBSADIAApAgg3A6gFIAMgACkCADcDoAUgByADQbAFaiADQaAFahAIIAAgAykCiAY3AgggACADKQKABjcCACADIAQpAgg3A5gFIAMgBCkCADcDkAUgAyAGKQIINwOIBSADIAYpAgA3A4AFIAcgA0GQBWogA0GABWoQCCAGIAMpAogGNwIIIAYgAykCgAY3AgAgAyACKQIINwP4BCADIAIpAgA3A/AEIAMgBCkCCDcD6AQgAyAEKQIANwPgBCAHIANB8ARqIANB4ARqEAggBCADKQKIBjcCCCAEIAMpAoAGNwIAIAMgAykDmAY3A9gEIAMgAykDkAY3A9AEIAMgAikCCDcDyAQgAyACKQIANwPABCAHIANB0ARqIANBwARqEAggAygCgAYhCCADKAKEBiEJIAMoAogGIQogAiADKAKMBiATczYCDCACIAogEnM2AgggAiAJIBFzNgIEIAIgCCAYczYCACADIAUpAgg3A5gGIAMgBSkCADcDkAYgAyABKQIINwO4BCADIAEpAgA3A7AEIAMgBSkCCDcDqAQgAyAFKQIANwOgBCAHIANBsARqIANBoARqEAggBSADKQKIBjcCCCAFIAMpAoAGNwIAIAMgACkCCDcDmAQgAyAAKQIANwOQBCADIAEpAgg3A4gEIAMgASkCADcDgAQgByADQZAEaiADQYAEahAIIAEgAykCiAY3AgggASADKQKABjcCACADIAYpAgg3A/gDIAMgBikCADcD8AMgAyAAKQIINwPoAyADIAApAgA3A+ADIAcgA0HwA2ogA0HgA2oQCCAAIAMpAogGNwIIIAAgAykCgAY3AgAgAyAEKQIINwPYAyADIAQpAgA3A9ADIAMgBikCCDcDyAMgAyAGKQIANwPAAyAHIANB0ANqIANBwANqEAggBiADKQKIBjcCCCAGIAMpAoAGNwIAIAMgAikCCDcDuAMgAyACKQIANwOwAyADIAQpAgg3A6gDIAMgBCkCADcDoAMgByADQbADaiADQaADahAIIAQgAykCiAY3AgggBCADKQKABjcCACADIAMpA5gGNwOYAyADIAMpA5AGNwOQAyADIAIpAgg3A4gDIAMgAikCADcDgAMgByADQZADaiADQYADahAIIAMoAoAGIQggAygChAYhCSADKAKIBiEKIAIgAygCjAYgF3M2AgwgAiAKIBZzNgIIIAIgCSAVczYCBCACIAggFHM2AgAgAyAFKQIINwOYBiADIAUpAgA3A5AGIAMgASkCCDcD+AIgAyABKQIANwPwAiADIAUpAgg3A+gCIAMgBSkCADcD4AIgByADQfACaiADQeACahAIIAUgAykCiAY3AgggBSADKQKABjcCACADIAApAgg3A9gCIAMgACkCADcD0AIgAyABKQIINwPIAiADIAEpAgA3A8ACIAcgA0HQAmogA0HAAmoQCCABIAMpAogGNwIIIAEgAykCgAY3AgAgAyAGKQIINwO4AiADIAYpAgA3A7ACIAMgACkCCDcDqAIgAyAAKQIANwOgAiAHIANBsAJqIANBoAJqEAggACADKQKIBjcCCCAAIAMpAoAGNwIAIAMgBCkCCDcDmAIgAyAEKQIANwOQAiADIAYpAgg3A4gCIAMgBikCADcDgAIgByADQZACaiADQYACahAIIAYgAykCiAY3AgggBiADKQKABjcCACADIAIpAgg3A/gBIAMgAikCADcD8AEgAyAEKQIINwPoASADIAQpAgA3A+ABIAcgA0HwAWogA0HgAWoQCCAEIAMpAogGNwIIIAQgAykCgAY3AgAgAyADKQOYBjcD2AEgAyADKQOQBjcD0AEgAyACKQIINwPIASADIAIpAgA3A8ABIAcgA0HQAWogA0HAAWoQCCADKAKABiEIIAMoAoQGIQkgAygCiAYhCiACIAMoAowGIA1zNgIMIAIgCiAMczYCCCACIAkgG3M2AgQgAiAIIBlzNgIAIAMgBSkCCDcDmAYgAyAFKQIANwOQBiADIAEpAgg3A7gBIAMgASkCADcDsAEgAyAFKQIINwOoASADIAUpAgA3A6ABIAcgA0GwAWogA0GgAWoQCCAFIAMpAogGNwIIIAUgAykCgAY3AgAgAyAAKQIINwOYASADIAApAgA3A5ABIAMgASkCCDcDiAEgAyABKQIANwOAASAHIANBkAFqIANBgAFqEAggASADKQKIBjcCCCABIAMpAoAGNwIAIAMgBikCCDcDeCADIAYpAgA3A3AgAyAAKQIINwNoIAMgACkCADcDYCAHIANB8ABqIANB4ABqEAggACADKQKIBjcCCCAAIAMpAoAGNwIAIAMgBCkCCDcDWCADIAQpAgA3A1AgAyAGKQIINwNIIAMgBikCADcDQCAHIANB0ABqIANBQGsQCCAGIAMpAogGNwIIIAYgAykCgAY3AgAgAyACKQIINwM4IAMgAikCADcDMCADIAQpAgg3AyggAyAEKQIANwMgIAcgA0EwaiADQSBqEAggBCADKQKIBjcCCCAEIAMpAoAGNwIAIAMgAykDmAY3AxggAyADKQOQBjcDECADIAIpAgg3AwggAyACKQIANwMAIAcgA0EQaiADEAggAygCgAYhCCADKAKEBiEJIAMoAogGIQogAiADKAKMBiAQczYCDCACIAogD3M2AgggAiAJIBpzNgIEIAIgCCAOczYCACALQQFqIgtBBEcNAAsgA0GgBmokAAsIACAAQRAQGQsEAEFfC5gKAR5/IwBBwAJrIgQkACAEQgA3A5gCIARCADcDkAIgBEIANwOIAiAEQgA3A4AC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QpAqACNwIAIAQgAykCKDcDeCAEIAMpAiA3A3AgBCADKQI4NwNoIAQgAykCMDcDYCAFIARB8ABqIARB4ABqEAggAyAEKQKoAjcCOCADIAQpAqACNwIwIAQgAykCGDcDWCAEIAMpAhA3A1AgBCADKQIoNwNIIAQgAykCIDcDQCAFIARB0ABqIARBQGsQCCADIAQpAqgCNwIoIAMgBCkCoAI3AiAgBCADKQIINwM4IAQgAykCADcDMCAEIAMpAhg3AyggBCADKQIQNwMgIAUgBEEwaiAEQSBqEAggAyAEKQKoAjcCGCADIAQpAqACNwIQIAQgBCkDuAI3AxggBCAEKQOwAjcDECAEIAMpAgg3AwggBCADKQIANwMAIAUgBEEQaiAEEAggAyAEKQKoAjcCCCADIAQpAqACNwIAIAMgCyADKAAMczYCDCADIAogAygACHM2AgggAyAJIAMoAARzNgIEIAMgCCADKAAAczYCACAAIAIgACgAAHM2AgAgAyAHIAMoAERzNgJEIAMgASADKABIczYCSCADIAYgAygATHM2AkwgBEHAAmokAAuRCQEefyMAQaACayIDJAAgAigAECEOIAIoADAhDyACKAAUIRAgASgABCERIAIoADQhEiACKAAYIRMgASgACCEUIAIoADghFSACKAAcIQggASgADCEWIAIoADwhFyACKAAgIQUgAigAUCEJIAEoABAhGCACKABwIRkgAigAYCEEIAIoACQhBiACKABUIQogASgAFCEaIAIoAHQhGyACKABkIQwgAigAKCEHIAIoAFghCyABKAAYIRwgAigAeCEdIAIoAGghDSABKAAAIR4gACACKAAsIh8gAigAbCIgIAIoAHxxIAIoAFwgASgAHHNzcyIBNgAcIAAgByANIB1xIAsgHHNzcyILNgAYIAAgBiAMIBtxIAogGnNzcyIKNgAUIAAgBSAEIBlxIAkgGHNzcyIJNgAQIAAgICAXIB9xIAggFnNzcyIINgAMIAAgDSAHIBVxIBMgFHNzcyIHNgAIIAAgDCAGIBJxIBAgEXNzcyIGNgAEIAAgBCAFIA9xIA4gHnNzcyIFNgAAIAMgAikCeDcDmAIgAyACKQJwNwOQAiADIAIpAmg3A/gBIAMgAikCYDcD8AEgAyACKQJ4NwPoASADIAIpAnA3A+ABIANBgAJqIgQgA0HwAWogA0HgAWoQCCACIAMpAogCNwJ4IAIgAykCgAI3AnAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCaDcDyAEgAyACKQJgNwPAASAEIANB0AFqIANBwAFqEAggAiADKQKIAjcCaCACIAMpAoACNwJgIAMgAikCSDcDuAEgAyACQUBrIgApAgA3A7ABIAMgAikCWDcDqAEgAyACKQJQNwOgASAEIANBsAFqIANBoAFqEAggAiADKQKIAjcCWCACIAMpAoACNwJQIAMgAikCODcDmAEgAyACKQIwNwOQASADIAIpAkg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAIIAIgAykCiAI3AkggACADKQKAAjcCACADIAIpAig3A3ggAyACKQIgNwNwIAMgAikCODcDaCADIAIpAjA3A2AgBCADQfAAaiADQeAAahAIIAIgAykCiAI3AjggAiADKQKAAjcCMCADIAIpAhg3A1ggAyACKQIQNwNQIAMgAikCKDcDSCADIAIpAiA3A0AgBCADQdAAaiADQUBrEAggAiADKQKIAjcCKCACIAMpAoACNwIgIAMgAikCCDcDOCADIAIpAgA3AzAgAyACKQIYNwMoIAMgAikCEDcDICAEIANBMGogA0EgahAIIAIgAykCiAI3AhggAiADKQKAAjcCECADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAIIAIgAykCiAI3AgggAiADKQKAAjcCACACIAIoAAwgCHM2AgwgAiACKAAIIAdzNgIIIAIgAigABCAGczYCBCACIAIoAAAgBXM2AgAgACAAKAAAIAlzNgIAIAIgAigARCAKczYCRCACIAIoAEggC3M2AkggAiACKABMIAFzNgJMIANBoAJqJAAL0gsBFX8jAEGgAmsiBSQAIAQoACwgA0EddnMhDCAEKAAoIANBA3RzIQ0gBCgAJCACQR12cyEOIARBIGoiAygAACACQQN0cyEPIARBEGohBiAEQTBqIQcgBEFAayECIARB0ABqIQggBEHgAGohCSAEQfA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AZIAkgGnFzc3M2ABAgACAgIAcgFyAYIB9xc3NzNgAMIAAgDyAGIBUgDSAWcXNzczYACCAAIAwgBSATIAogFHFzc3M2AAQgACAJIBAgESAEIBJxc3NzNgAAIAMgAikCeDcDmAIgAyACKQJwNwOQAiADIAIpAmg3A/gBIAMgAikCYDcD8AEgAyACKQJ4NwPoASADIAIpAnA3A+ABIANBgAJqIgQgA0HwAWogA0HgAWoQCCACIAMpAogCNwJ4IAIgAykCgAI3AnAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCaDcDyAEgAyACKQJgNwPAASAEIANB0AFqIANBwAFqEAggAiADKQKIAjcCaCACIAMpAoACNwJgIAMgAikCSDcDuAEgAyACQUBrIgApAgA3A7ABIAMgAikCWDcDqAEgAyACKQJQNwOgASAEIANBsAFqIANBoAFqEAggAiADKQKIAjcCWCACIAMpAoACNwJQIAMgAikCODcDmAEgAyACKQIwNwOQASADIAIpAkg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAIIAIgAykCiAI3AkggACADKQKAAjcCACADIAIpAig3A3ggAyACKQIgNwNwIAMgAikCODcDaCADIAIpAjA3A2AgBCADQfAAaiADQeAAahAIIAIgAykCiAI3AjggAiADKQKAAjcCMCADIAIpAhg3A1ggAyACKQIQNwNQIAMgAikCKDcDSCADIAIpAiA3A0AgBCADQdAAaiADQUBrEAggAiADKQKIAjcCKCACIAMpAoACNwIgIAMgAikCCDcDOCADIAIpAgA3AzAgAyACKQIYNwMoIAMgAikCEDcDICAEIANBMGogA0EgahAIIAIgAykCiAI3AhggAiADKQKAAjcCECADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAIIAIgAykCiAI3AgggAiADKQKAAjcCACACIAcgAigADHM2AgwgAiAGIAIoAAhzNgIIIAIgBSACKAAEczYCBCACIBAgAigAAHM2AgAgACAIIAAoAABzNgIAIAIgCyACKABEczYCRCACIA4gAigASHM2AkggAiABIAIoAExzNgJMI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FrciAEQf8AcyIEIAhyQf8BcUEBa3IgBCAMckH/AXFBAWtyIAQgBXJB/wFxQQFrckGAAnFFBEAgAyABKQAYNwPoAiADIAEpABA3A+ACIAMgASkAACJDNwPQAiADIAEpAAg3A9gCIAMgQ6dB+AFxOgDQAiADIAMtAO8CQT9xQcAAcjoA7wIgA0GgAmogAhA2IANCADcChAIgA0IANwKMAiADQQA2ApQCIANCADcD0AEgA0IANwPYASADQgA3A+ABIAMgAykDsAI3A6ABIAMgAykDuAI3A6gBIAMgAykDwAI3A7ABIANCADcC9AEgA0EBNgLwASADQgA3AvwBIANCADcDwAEgA0IANwPIASADIAMpA6ACNwOQASADIAMpA6gCNwOYASADQgA3AnQgA0IANwJ8IANBADYChAEgA0IANwJkIANBATYCYCADQgA3AmxB/gEhAkEAIQQDQCADKAKUAiEJIAMoArQBIQYgAygCYCEHIAMoAsABIQogAygCkAEhCyADKALwASENIAMoAmQhCCADKALEASEMIAMoApQBIQUgAygC9AEhECADKAJoIQ4gAygCyAEhESADKAKYASESIAMoAvgBIRMgAygCbCEPIAMoAswBIRQgAygCnAEhFSADKAL8ASEXIAMoAnAhGCADKALQASEcIAMoAqABIR0gAygCgAIhHiADKAJ0IRkgAygC1AEhHyADKAKkASEgIAMoAoQCISEgAygCeCEaIAMoAtgBISIgAygCqAEhIyADKAKIAiEkIAMoAnwhGyADKALcASElIAMoAqwBISYgAygCjAIhJyADKAKAASEWIAMoAuABISggAygCsAEhKSADKAKQAiEsIANBACAEIANB0AJqIi0gAiIBQQN2ai0AACACQQdxdkEBcSIEc2siAiADKAKEASIqIAMoAuQBIitzcSIuICpzIio2AoQBIAMgBiAGIAlzIAJxIi9zIjAgKms2AlQgAyAWIBYgKHMgAnEiMXMiBjYCgAEgAyApICkgLHMgAnEiFnMiKSAGazYCUCADIBsgGyAlcyACcSIycyIbNgJ8IAMgJiAmICdzIAJxIjNzIiYgG2s2AkwgAyAaIBogInMgAnEiNHMiGjYCeCADICMgIyAkcyACcSI1cyI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kZCgICA4A+DfaciEjYCgAEgAyBBQhqIIEJ8IEhCgICA8A+DfaciEzYCbCADIERCGoggSXwgSkKAgIDwD4N9pyIPNgJ0IAMgRUIaiCBLfCBMQoCAgPAPg32nIhQ2AnwgAyBGQhqIIEN8IEdCgICA8A+DfaciGDYChAEgA0GQAWoiHCAcEAUgAyAMIBhqNgJUIAMgDSASajYCUCADIAggFGo2AkwgAyAKIBFqNgJIIAMgCyAPajYCRCADIAYgDmo2AkAgAyAHIBNqNgI8IAMgCSAQajYCOCADIAIgBWo2AjQgAyAVIBdqNgIwIAFBAWshAiAbIANBoAJqIBYQBiAWIAMgGhAGIAENAAsgAygCkAEhECADKALwASECIAMoApQBIQ4gAygC9AEhBiADKAKYASERIAMoAvgBIQcgAygCnAEhEiADKAL8ASEKIAMoAqABIRMgAygCgAIhCyADKAKkASEPIAMoAoQCIQ0gAygCqAEhFCADKAKIAiEIIAMoAqwBIRUgAygCjAIhDCADKAKwASEXIAMoApACIQUgA0EAIARrIgEgAygClAIiBCADKAK0AXNxIARzNgKUAiADIAUgBSAXcyABcXM2ApACIAMgDCAMIBVzIAFxczYCjAIgAyAIIAggFHMgAXFzNgKIAiADIA0gDSAPcyABcXM2AoQCIAMgCyALIBNzIAFxczYCgAIgAyAKIAogEnMgAXFzNgL8ASADIAcgByARcyABcXM2AvgBIAMgBiAGIA5zIAFxczYC9AEgAyACIAIgEHMgAXFzNgLwASADKALAASECIAMoAmAhBSADKALEASEEIAMoAmQhECADKALIASEGIAMoAmghDiADKALMASEHIAMoAmwhESADKALQASEKIAMoAnAhEiADKALUASELIAMoAnQhEyADKALYASENIAMoAnghDyADKALcASEIIAMoAnwhFCADKALgASEMIAMoAoABIRUgAyADKALkASIXIAMoAoQBcyABcSAXczYC5AEgAyAMIAwgFXMgAXFzNgLgASADIAggCCAUcyABcXM2AtwBIAMgDSANIA9zIAFxczYC2AEgAyALIAsgE3MgAXFzNgLUASADIAogCiAScyABcXM2AtABIAMgByAHIBFzIAFxczY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aiQAQQALeQECfyMAQZACayIFJAAgBUEgaiIGIARBIBAwGiAGIAEgAq0gA61CIIaEECQaIAYgBUHwAWoiARAtGiAFQYgBaiICIAFCIBAkGiACIAUQLRogAUEgEAkgACAFED8hASAFIABBIBA8IAVBkAJqJABBfyABIAAgBUYbcgtbAQF/IwBB8AFrIgUkACAFIARBIBAwGiAFIAEgAq0gA61CIIaEECQaIAUgBUHQAWoiARAtGiAFQegAaiICIAFCIBAkGiACIAAQLRogAUEgEAkgBUHwAWokAEEACxIAIAAgASACrSADrUIghoQQIwtbAQJ+IAetIAitQiCGhCEMQX8hAiAErSAFrUIghoQiC0IQWgRAIAAgAyALQhB9IAMgC6dqQRBrIAYgDCAJIAoQsgEhAgsgAQRAIAFCACALQhB9IAIbNwMACyACCyUAIAAgAiADrSAErUIghoQgBSAGIAetIAitQiCGhCAJIAoQsgELWQECfgJ/IAatIAetQiCGhCEMIAOtIAStQiCGhCILQvD///8PVARAIAAgACALp2pBACACIAsgBSAMIAkgChCzARogAQRAIAEgC0IQfDcDAAtBAAwBCxAOAAsLJwAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCiALELMBC1sBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChDDASECCyABBEAgAUIAIAtCEH0gAhs3AwALIAILJQAgACACIAOtIAStQiCGhCAFIAYgB60gCK1CIIaEIAkgChDDAQtbAQJ+IAetIAitQiCGhCEMQX8hAiAErSAFrUIghoQiC0IQWgRAIAAgAyALQhB9IAMgC6dqQRBrIAYgDCAJIAoQxAEhAgsgAQRAIAFCACALQhB9IAIbNwMACyACCyUAIAAgAiADrSAErUIghoQgBSAGIAetIAitQiCGhCAJIAoQxAELWQECfgJ/IAatIAetQiCGhCEMIAOtIAStQiCGhCILQvD///8PVARAIAAgACALp2pBACACIAsgBSAMIAkgChDFARogAQRAIAEgC0IQfDcDAAtBAAwBCxAOAAsLJwAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCiALEMUBC1kBAn4CfyAGrSAHrUIghoQhDCADrSAErUIghoQiC0Lw////D1QEQCAAIAAgC6dqQQAgAiALIAUgDCAJIAoQxgEaIAEEQCABIAtCEHw3AwALQQAMAQsQDgALCycAIAAgASACIAMgBK0gBa1CIIaEIAYgB60gCK1CIIaEIAogCxDGAQtZAQJ+IAetIAitQiCGhCELQX8hAQJAIAOtIAStQiCGhCIMQt////8PVg0AIAtC3////w9WDQAgACACIAynIAVBICAGIAunIAkgCkGsnwIoAgARDQAhAQsgAQuAAQEDfiAHrSAIrUIghoQhDEF/IQICQCAErSAFrUIghoQiC0IgVA0AIAtCIH0iDULf////D1YNACAMQt////8PVg0AIAAgAyANpyADIAunakEga0EgIAYgDKcgCSAKQayfAigCABENACECCyABBEAgAUIAIAtCIH0gAhs3AwALIAILYAECfiAErSAFrUIghoQhDCAHrSAIrUIghoQhDSACBEAgAkIgNwMACyANQuD///8PVCAMQt////8PWHFFBEAQDgALIAAgAUEgIAMgDKcgBiANpyAKIAtBqJ8CKAIAEQ0AC3YBAn4CfyAGrSAHrUIghoQhCwJAIAOtIAStQiCGhCIMQt////8PVg0AIAtC4P///w9aDQAgACAAIAynIgNqQSAgAiADIAUgC6cgCSAKQaifAigCABENACEAIAEEQCABQgAgDEIgfCAAGzcDAAsgAAwBCxAOAAsLWQECfiAHrSAIrUIghoQhC0F/IQECQCADrSAErUIghoQiDELf////D1YNACALQt////8PVg0AIAAgAiAMpyAFQSAgBiALpyAJIApBpJ8CKAIAEQ0AIQELIAELgAEBA34gB60gCK1CIIaEIQxBfyECAkAgBK0gBa1CIIaEIgtCIFQNACALQiB9Ig1C3////w9WDQAgDELf////D1YNACAAIAMgDacgAyALp2pBIGtBICAGIAynIAkgCkGknwIoAgARDQAhAgsgAQRAIAFCACALQiB9IAIbNwMACyACC2ABAn4gBK0gBa1CIIaEIQwgB60gCK1CIIaEIQ0gAgRAIAJCIDcDAAsgDULg////D1QgDELf////D1hxRQRAEA4ACyAAIAFBICADIAynIAYgDacgCiALQaCfAigCABENAAt2AQJ+An8gBq0gB61CIIaEIQsCQCADrSAErUIghoQiDELf////D1YNACALQuD///8PWg0AIAAgACAMpyIDakEgIAIgAyAFIAunIAkgCkGgnwIoAgARDQAhACABBEAgAUIAIAxCIHwgABs3AwALIAAMAQsQDgALCwUAQegACwQAQRoLBQBBiwwLBQBBtAoL/QEBBX8jACIFIQkgBUGABGtBQHEiBSQAIAAgASAAGyIHBEBBfyEGIAVB4ABqIgggAyAEEB9FBEAgASAAIAEbIQNBACEAIAVBgAFqIgFBAEEAQcAAECIaIAEgCEIgEA8aIAhBIBAJIAEgBEIgEA8aIAEgAkIgEA8aIAEgBUEgakHAABAhGiABQYADEAkDQCAAIANqIAVBIGoiASAAaiICLQAAOgAAIAAgB2ogAi0AIDoAACADIABBAXIiAmogASACai0AADoAACACIAdqIABBIXIgAWotAAA6AAAgAEECaiIAQSBHDQALIAFBwAAQCUEAIQYLIAkkACAGDwsQDgAL/QEBBX8jACIFIQkgBUGABGtBQHEiBSQAIAAgASAAGyIHBEBBfyEGIAVB4ABqIgggAyAEEB9FBEAgASAAIAEbIQNBACEAIAVBgAFqIgFBAEEAQcAAECIaIAEgCEIgEA8aIAhBIBAJIAEgAkIgEA8aIAEgBEIgEA8aIAEgBUEgakHAABAhGiABQYADEAkDQCAAIAdqIAVBIGoiASAAaiICLQAAOgAAIAAgA2ogAi0AIDoAACAHIABBAXIiAmogASACai0AADoAACACIANqIABBIXIgAWotAAA6AAAgAEECaiIAQSBHDQALIAFBwAAQCUEAIQYLIAkkACAGDwsQDgALHwAgAUEgIAJCIEEAQQAQYRogACABQYyXAigCABEAAAsKACAAIAEgAhAfCwUAQaMLCwUAQbYLCwUAQfsLCwUAQc4LC38BAn8jAEGABGsiBCQAIARBIGoiBSADQSAQLhogBSABIAIQJhogBSAEQcADahAxGiAEIAQpA9gDNwMYIAQgBCkD0AM3AxAgBCAEKQPIAz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SICIAZ8IgRCIIkgBXwiBoUiBUIQiSACQg2JIASFIgIgB3wiBEIgiSAFfCIHhUIViSACQhGJIASFIgJCDYkgAiAGfIUiAkIRiYUgAiAHfCICQiCJhSAChTcAAEEAC2sCAX8BfiMAQSBrIgUkACADKQAAIQYgBUIANwMYIAUgBjcDECAFQgA3AwggBSACNwMAAn8gAUHBAGtBTk0EQEHwpQJBHDYCAEF/DAELIAAgAUEAQgAgBEEgIAUgBUEQahDdAQsgBUEgaiQACwsAIAAgAUEAELYBCwsAIAAgAUEBELYBCw0AIAAgASACQQAQtwELDQAgACABIAJBARC3AQsGAEGAgCALBgBBgIACCwUAQacMCwUAQeYACwoAIAAgASACEEALCAAgACABEEELCgAgACABIAIQegsFAEHECwtXAQF/IwBBQGoiBiQAAkAgBkEgaiAFIAQQHwRAQX8hBAwBC0F/IQQgBkHQlgIgBkEgakEAECsNACAAIAEgAiADIAYQvwEhBCAGQSAQCQsgBkFAayQAIAQLVwEBfyMAQUBqIgYkAAJAIAZBIGogBSAEEB8EQEF/IQQMAQtBfyEEIAZB0JYCIAZBIGpBABArDQAgACABIAIgAyAGEMABIQQgBkEgEAkLIAZBQGskACAECwoAIAAgASACECELDAAgACABIAIgAxAiCwsAIAAgASACEMcBCw0AIAAgASACIAMQyAELBwAgABDJAQsJACAAIAEQywELCwAgACABIAIQzAELBQBBrgsLOgEDfiABKQAgIQIgASkAKCEDIAEpADAhBCAAIAEpADg3ABggACAENwAQIAAgAzcACCAAIAI3AABBAAs6AQN+IAEpAAghAiABKQAQIQMgASkAACEEIAAgASkAGDcAGCAAIAM3ABAgACACNwAIIAAgBDcAAEEAC3wBAX8CQAJAAkAgA0LAAFQNACADQkB8IgNCv////w9WDQAgAiACQUBrIgUgAyAEQQAQdkUNASAARQ0AIABBACADpxAMGgtBfyECIAFFDQEgAUIANwMAQX8PCyABBEAgASADNwMAC0EAIQIgAEUNACAAIAUgA6cQQhoLIAILcAECfyMAQRBrIgUkACAAIAVBCGogAEFAayACIAOnIgIQQiADIARBABB4GgJAIAUpAwhCwABSBEAgAQRAIAFCADcDAAsgAEEAIAJBQGsQDBpBfyEGDAELIAFFDQAgASADQkB9NwMACyAFQRBqJAAgBgsTACAAIAEgAiADIARBABB4GkEAC20BAX8jAEFAaiICJAAgAiABQiAQRxogAiACLQAAQfgBcToAACACIAItAB9BP3FBwAByOgAfIAAgAikDEDcAECAAIAIpAwg3AAggACACKQMANwAAIAAgAikDGDcAGCACQcAAEAkgAkFAayQAQQAL5woCD38nfiMAQYACayICJABBfyEIAkAgARBMDQAgAkHgAGoiAyABEJQBDQAgAxBsRQ0AQQAhCCACQQAgAigCrAEiAWs2AiQgAkEAIAIoAqgBIgNrNgIgIAJBACACKAKkASIJazYCHCACQQAgAigCoAEiBGs2AhggAkEAIAIoApwBIgprNgIUIAJBACACKAKYASIFazYCECACQQAgAigClAEiC2s2AgwgAkEAIAIoApABIgZrNgIIIAJBACACKAKMASIMazYCBCACQQEgAigCiAEiB2s2AgAgAiACEDUgAiACKAIEIg2sIhkgCkEBdKwiIn4gAjQCACIRIASsIhR+fCACKAIIIgSsIhsgBawiFX58IAIoAgwiBawiHiALQQF0rCIjfnwgAigCECIOrCIfIAasIhZ+fCACKAIUIgasIiQgDEEBdKwiJX58IAIoAhgiD6wiLiAHQQFqrCIXfnwgAigCHCIHQRNsrCIaIAFBAXSsIiZ+fCACKAIgIhBBE2ysIhIgA6wiGH58IAIoAiQiA0ETbKwiEyAJQQF0rCInfnwgFSAZfiARIAqsIih+fCAbIAusIil+fCAWIB5+fCAfIAysIip+fCAXICR+fCAPQRNsrCIcIAGsIit+fCAYIBp+fCASIAmsIix+fCATIBR+fCAZICN+IBEgFX58IBYgG358IB4gJX58IBcgH358IAZBE2ysIi0gJn58IBggHH58IBogJ358IBIgFH58IBMgIn58IjBCgICAEHwiMUIah3wiMkKAgIAIfCIzQhmHfCIgICBCgICAEHwiIUKAgIDgD4N9PgJIIAIgGSAlfiARIBZ+fCAXIBt+fCAFQRNsr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iIBIAIQPQ0AIAMgARAQIANBoAFqIgEgBSADEFUgA0HAAmoiAiABEFYgACACEEtBACEECyADQaAGaiQAIAQLZQEDfyMAQaAGayIDJABBfyEEAkAgA0GABWoiBSABED0NACADQeADaiIBIAIQPQ0AIAMgARAQIANBoAFqIgEgBSADEBMgA0HAAmoiAiABEFYgACACEEtBACEECyADQaAGaiQAIAQLHQEBfyMAQaABayIBJAAgASAAED0gAUGgAWokAEULpQEBBn8jAEEQayIFQQA2AgxBfyEEIAIgA0EBa0sEfyABIAJBAWsiB2ohCEEAIQJBACEBQQAhBANAIAUgBSgCDCIGQQAgCCACay0AACIJQYABc0EBayAGQQFrIARBAWtxcUEIdkEBcSIGayACcXI2AgwgASAGciEBIAQgCXIhBCACQQFqIgIgA0cNAAsgACAHIAUoAgxrNgIAIAFB/wFxQQFrBUF/CwshAQF/IwBBIGsiASQAIAFBIBAZIAAgARCMASABQSBqJAALCwAgACABEIwBQQALcwEDfyMAQaAGayIDJABBfyEEAkAgA0GABWoiBSABEDQNACAFEE1FDQAgA0HgA2oiASACEDQNACABEE1FDQAgAyABEBAgA0GgAWoiASAFIAMQVSADQcACaiICIAEQViAAIAIQL0EAIQQLIANBoAZqJAAgBAtzAQN/IwBBoAZrIgMkAEF/IQQCQCADQYAFaiIFIAEQNA0AIAUQTUUNACADQeADaiIBIAIQNA0AIAEQTUUNACADIAEQECADQaABaiIBIAUgAxATIANBwAJqIgIgARBWIAAgAhAvQQAhBAsgA0GgBmokACAEC0ABAn8jAEGgAWsiASQAAkAgABBrRQ0AIAAQTA0AIAEgABA0DQAgARBNRQ0AIAEQbEEARyECCyABQaABaiQAIAILBgBBwP8AC7UCAgV/AX4jAEHwA2siBSQAIAVBAToADwJ/IAFBwP8ATQRAIAFBwABPBEAgAEFAaiEJIAOtIQpBwAAhBgNAIAYhByAFQdAAaiIGIARBwAAQLhogCARAIAYgCCAJakLAABAmGgsgBUHQAGoiBiACIAoQJhogBiAFQQ9qQgEQJhogBiAAIAhq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wAwXpMA9Sk4AH0NzP70rXcALN0g/lTqFAD5oMYB7H7q/y9jqP6q4pn/ZrPYAOKNev96Qpn+tvWGAOPkGQHWOev/2K04/7Xn0gB3gJ3/gV+I/25+MwACqbf/B4Ji/kWwXv90BOMB2fKR/8qtHwFpASf/Lq9FAOQvOv/X4EX+zzhF/xD+i/8Xz9T/yhR+/1/VYP8JsCEAyAXP//EqgP4jIcD/+OXEAYEReAD7Z5f/BzRw/4w4Qv8o4vX/2UYl/qzWCf9IQ4YBksDW/ywmcABEuEv/zlr7AJXrjQC1qjoAdPTvAFydAgBmrWIA6YlgAX8xywAFm5QAF5QJ/9N6DAAihhr/28yIAIYIKf/gUyv+VRn3AG1/AP6piDAA7nfb/+et1QDOEv7+CLoH/34JBwFvKkgAbzTs/mA/jQCTv3/+zU7A/w5q7QG720wAr/O7/mlZrQBVGVkBovOUAAJ20f4hngkAi6Mu/11GKABsKo7+b/yO/5vfkAAz5af/Sfyb/150DP+YoNr/nO4l/7Pqz//FALP/mqSNAOHEaAAKIxn+0dTy/2H93v64ZeUA3hJ/AaSIh/8ez4z+kmHzAIHAGv7JVCH/bwpO/5NRsv8EBBgAoe7X/waNIQA11w7/KbXQ/+eLnQCzy93//7lxAL3irP9xQtb/yj4t/2ZACP9OrhD+hXVE/wBBoBULAQEAQcAVC7ABJuiVj8KyJ7BFw/SJ8u+Y8NXfrAXTxjM5sTgCiG1T/AXHF2pwPU3YT7o8C3YNEGcPKiBT+iw5zMZOx/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQAQf8WC6zxARD9QF0AoGo/ADnTV/4M0roAWLx0/kHYAQD/yD0B2EKU/wD7XAAksuH/AAAAAAAAAACFO4wBvfEk//glwwFg3DcAt0w+/8NCPQAyTKQB4aRM/0w9o/91Ph8AUZFA/3ZBDgCic9b/BoouAHzm9P8Kio8ANBrCALj0TACBjykBvvQT/3uqev9igUQAedWTAFZlHv+hZ5s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7//8qTsgA/kZGAfR9qADMRIoBfNdGAGZCyP4RNOQAddyP/sv4ewA4Eq7/upek/zPo0AGg5Cv/+R0ZAUS+PwANAAAAAP8AAAAA9QAAAAAAAPsAAAAAAAD9AAAAAPMAAAAABwAAAAAAAwAAAADzAAAAAAUAAAAAAAAAAAsAAAAAAAsAAAAA8wAAAAAAAP0AAAAAAP8AAAAAAwAAAAD1AAAAAAAAAA8AAAAAAP8AAAAA/wAAAAAHAAAAAAUAQayJAgsrAQAAAHbBXwBlcAL/UPyh/vJqxv+FBrIA5N9wAN/uVf4z8xoAPiuL/stBCgBB4IkCC1czTe0AkapW/zYmM//xgGX/KXlK/+xOmwCpl2n+nClIAMJmr//OomX/AAAAAAAAAAAbLnsBEqj9/9Ovl/7D22AAOHa+/v7R9f+ZZH7+6IEV/zW48v/HpN0AQeCKAgsBAQBBgIsCC/EG4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f0xpYnNvZGl1bURSRwAAAAAIybzzZ+YJajunyoSFrme7K/iU/nLzbjzxNh1fOvVPpdGC5q1/Ug5RH2w+K4xoBZtrvUH7q9mDH3khfhMZzeBbIq4o15gvikLNZe8jkUQ3cS87TezP+8C1vNuJgaXbtek4tUjzW8JWORnQBbbxEfFZm08Zr6SCP5IYgW3a1V4cq0ICA6OYqgfYvm9wRQFbgxKMsuROvoUxJOK0/9XDfQxVb4l78nRdvnKxlhY7/rHegDUSxyWnBtyblCZpz3Txm8HSSvGewWmb5OMlTziGR77vtdWMi8adwQ9lnKx3zKEMJHUCK1lvLOktg+SmbqqEdErU+0G93KmwXLVTEYPaiPl2q99m7lJRPpgQMrQtbcYxqD8h+5jIJwOw5A7vvsd/Wb/Cj6g98wvgxiWnCpNHkafVb4ID4FFjygZwbg4KZykpFPwv0kaFCrcnJskmXDghGy7tKsRa/G0s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YPioqF4HBwkHw+PkJxtbXEzGZmqpBISNgGAwMF9/b2ARwODhLCYWGjajU1X65XV/lpubnQF4aGkZnBwVg6HR0nJ56eudnh4Tjr+PgTK5iYsyIRETPSaWm7qdnZcAeOjokzlJSnLZubtjweHiIVh4eSyenpIIfOzkmqVVX/UCgoeKXf33oDjIyPWaGh+AmJiYAaDQ0XZb+/2tfm5jGEQkLG0GhouIJBQcMpmZmwWi0tdx4PDxF7sLDLqFRU/G27u9YsFhY6CgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABE="),oe=ge,X(C).then((V=>WebAssembly.instantiate(V,oe))).then((function(V){Le(V.instance)}),(V=>{ne(`failed to asynchronously prepare wasm: ${V}`),u(V)})),{}})();function Ue(){function oe(){$e||($e=!0,_.calledRun=!0,s||(he(m),_.onRuntimeInitialized?.(),(function(){if(_.postRun)for(typeof _.postRun=="function"&&(_.postRun=[_.postRun]);_.postRun.length;)ge=_.postRun.shift(),E.unshift(ge);var ge;he(E)})()))}w>0||((function(){if(_.preRun)for(typeof _.preRun=="function"&&(_.preRun=[_.preRun]);_.preRun.length;)ge=_.preRun.shift(),A.unshift(ge);var ge;he(A)})(),w>0||(_.setStatus?(_.setStatus("Running..."),setTimeout((function(){setTimeout((function(){_.setStatus("")}),1),oe()}),1)):oe()))}if(_._crypto_aead_aegis128l_keybytes=()=>(_._crypto_aead_aegis128l_keybytes=te.g)(),_._crypto_aead_aegis128l_nsecbytes=()=>(_._crypto_aead_aegis128l_nsecbytes=te.h)(),_._crypto_aead_aegis128l_npubbytes=()=>(_._crypto_aead_aegis128l_npubbytes=te.i)(),_._crypto_aead_aegis128l_abytes=()=>(_._crypto_aead_aegis128l_abytes=te.j)(),_._crypto_aead_aegis128l_messagebytes_max=()=>(_._crypto_aead_aegis128l_messagebytes_max=te.k)(),_._crypto_aead_aegis128l_keygen=oe=>(_._crypto_aead_aegis128l_keygen=te.l)(oe),_._crypto_aead_aegis128l_encrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_aegis128l_encrypt=te.m)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_aegis128l_encrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr)=>(_._crypto_aead_aegis128l_encrypt_detached=te.n)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr),_._crypto_aead_aegis128l_decrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_aegis128l_decrypt=te.o)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_aegis128l_decrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_aegis128l_decrypt_detached=te.p)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_aegis256_keybytes=()=>(_._crypto_aead_aegis256_keybytes=te.q)(),_._crypto_aead_aegis256_nsecbytes=()=>(_._crypto_aead_aegis256_nsecbytes=te.r)(),_._crypto_aead_aegis256_npubbytes=()=>(_._crypto_aead_aegis256_npubbytes=te.s)(),_._crypto_aead_aegis256_abytes=()=>(_._crypto_aead_aegis256_abytes=te.t)(),_._crypto_aead_aegis256_messagebytes_max=()=>(_._crypto_aead_aegis256_messagebytes_max=te.u)(),_._crypto_aead_aegis256_keygen=oe=>(_._crypto_aead_aegis256_keygen=te.v)(oe),_._crypto_aead_aegis256_encrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_aegis256_encrypt=te.w)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_aegis256_encrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr)=>(_._crypto_aead_aegis256_encrypt_detached=te.x)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr),_._crypto_aead_aegis256_decrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_aegis256_decrypt=te.y)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_aegis256_decrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_aegis256_decrypt_detached=te.z)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_aes256gcm_is_available=()=>(_._crypto_aead_aes256gcm_is_available=te.A)(),_._crypto_aead_chacha20poly1305_encrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr)=>(_._crypto_aead_chacha20poly1305_encrypt_detached=te.B)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr),_._crypto_aead_chacha20poly1305_encrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_chacha20poly1305_encrypt=te.C)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_chacha20poly1305_ietf_encrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr)=>(_._crypto_aead_chacha20poly1305_ietf_encrypt_detached=te.D)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr),_._crypto_aead_chacha20poly1305_ietf_encrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_chacha20poly1305_ietf_encrypt=te.E)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_chacha20poly1305_decrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_chacha20poly1305_decrypt_detached=te.F)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_chacha20poly1305_decrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_chacha20poly1305_decrypt=te.G)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_chacha20poly1305_ietf_decrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_chacha20poly1305_ietf_decrypt_detached=te.H)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_chacha20poly1305_ietf_decrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_chacha20poly1305_ietf_decrypt=te.I)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_chacha20poly1305_ietf_keybytes=()=>(_._crypto_aead_chacha20poly1305_ietf_keybytes=te.J)(),_._crypto_aead_chacha20poly1305_ietf_npubbytes=()=>(_._crypto_aead_chacha20poly1305_ietf_npubbytes=te.K)(),_._crypto_aead_chacha20poly1305_ietf_nsecbytes=()=>(_._crypto_aead_chacha20poly1305_ietf_nsecbytes=te.L)(),_._crypto_aead_chacha20poly1305_ietf_abytes=()=>(_._crypto_aead_chacha20poly1305_ietf_abytes=te.M)(),_._crypto_aead_chacha20poly1305_ietf_messagebytes_max=()=>(_._crypto_aead_chacha20poly1305_ietf_messagebytes_max=te.N)(),_._crypto_aead_chacha20poly1305_ietf_keygen=oe=>(_._crypto_aead_chacha20poly1305_ietf_keygen=te.O)(oe),_._crypto_aead_chacha20poly1305_keybytes=()=>(_._crypto_aead_chacha20poly1305_keybytes=te.P)(),_._crypto_aead_chacha20poly1305_npubbytes=()=>(_._crypto_aead_chacha20poly1305_npubbytes=te.Q)(),_._crypto_aead_chacha20poly1305_nsecbytes=()=>(_._crypto_aead_chacha20poly1305_nsecbytes=te.R)(),_._crypto_aead_chacha20poly1305_abytes=()=>(_._crypto_aead_chacha20poly1305_abytes=te.S)(),_._crypto_aead_chacha20poly1305_messagebytes_max=()=>(_._crypto_aead_chacha20poly1305_messagebytes_max=te.T)(),_._crypto_aead_chacha20poly1305_keygen=oe=>(_._crypto_aead_chacha20poly1305_keygen=te.U)(oe),_._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr)=>(_._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=te.V)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr),_._crypto_aead_xchacha20poly1305_ietf_encrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_xchacha20poly1305_ietf_encrypt=te.W)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=te.X)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_xchacha20poly1305_ietf_decrypt=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_aead_xchacha20poly1305_ietf_decrypt=te.Y)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_aead_xchacha20poly1305_ietf_keybytes=()=>(_._crypto_aead_xchacha20poly1305_ietf_keybytes=te.Z)(),_._crypto_aead_xchacha20poly1305_ietf_npubbytes=()=>(_._crypto_aead_xchacha20poly1305_ietf_npubbytes=te._)(),_._crypto_aead_xchacha20poly1305_ietf_nsecbytes=()=>(_._crypto_aead_xchacha20poly1305_ietf_nsecbytes=te.$)(),_._crypto_aead_xchacha20poly1305_ietf_abytes=()=>(_._crypto_aead_xchacha20poly1305_ietf_abytes=te.aa)(),_._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=()=>(_._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=te.ba)(),_._crypto_aead_xchacha20poly1305_ietf_keygen=oe=>(_._crypto_aead_xchacha20poly1305_ietf_keygen=te.ca)(oe),_._crypto_auth_bytes=()=>(_._crypto_auth_bytes=te.da)(),_._crypto_auth_keybytes=()=>(_._crypto_auth_keybytes=te.ea)(),_._crypto_auth_primitive=()=>(_._crypto_auth_primitive=te.fa)(),_._crypto_auth=(oe,ge,Le,V,Qe)=>(_._crypto_auth=te.ga)(oe,ge,Le,V,Qe),_._crypto_auth_verify=(oe,ge,Le,V,Qe)=>(_._crypto_auth_verify=te.ha)(oe,ge,Le,V,Qe),_._crypto_auth_keygen=oe=>(_._crypto_auth_keygen=te.ia)(oe),_._crypto_auth_hmacsha256_bytes=()=>(_._crypto_auth_hmacsha256_bytes=te.ja)(),_._crypto_auth_hmacsha256_keybytes=()=>(_._crypto_auth_hmacsha256_keybytes=te.ka)(),_._crypto_auth_hmacsha256_statebytes=()=>(_._crypto_auth_hmacsha256_statebytes=te.la)(),_._crypto_auth_hmacsha256_keygen=oe=>(_._crypto_auth_hmacsha256_keygen=te.ma)(oe),_._crypto_auth_hmacsha256_init=(oe,ge,Le)=>(_._crypto_auth_hmacsha256_init=te.na)(oe,ge,Le),_._crypto_auth_hmacsha256_update=(oe,ge,Le,V)=>(_._crypto_auth_hmacsha256_update=te.oa)(oe,ge,Le,V),_._crypto_auth_hmacsha256_final=(oe,ge)=>(_._crypto_auth_hmacsha256_final=te.pa)(oe,ge),_._crypto_auth_hmacsha256=(oe,ge,Le,V,Qe)=>(_._crypto_auth_hmacsha256=te.qa)(oe,ge,Le,V,Qe),_._crypto_auth_hmacsha256_verify=(oe,ge,Le,V,Qe)=>(_._crypto_auth_hmacsha256_verify=te.ra)(oe,ge,Le,V,Qe),_._crypto_auth_hmacsha512_bytes=()=>(_._crypto_auth_hmacsha512_bytes=te.sa)(),_._crypto_auth_hmacsha512_keybytes=()=>(_._crypto_auth_hmacsha512_keybytes=te.ta)(),_._crypto_auth_hmacsha512_statebytes=()=>(_._crypto_auth_hmacsha512_statebytes=te.ua)(),_._crypto_auth_hmacsha512_keygen=oe=>(_._crypto_auth_hmacsha512_keygen=te.va)(oe),_._crypto_auth_hmacsha512_init=(oe,ge,Le)=>(_._crypto_auth_hmacsha512_init=te.wa)(oe,ge,Le),_._crypto_auth_hmacsha512_update=(oe,ge,Le,V)=>(_._crypto_auth_hmacsha512_update=te.xa)(oe,ge,Le,V),_._crypto_auth_hmacsha512_final=(oe,ge)=>(_._crypto_auth_hmacsha512_final=te.ya)(oe,ge),_._crypto_auth_hmacsha512=(oe,ge,Le,V,Qe)=>(_._crypto_auth_hmacsha512=te.za)(oe,ge,Le,V,Qe),_._crypto_auth_hmacsha512_verify=(oe,ge,Le,V,Qe)=>(_._crypto_auth_hmacsha512_verify=te.Aa)(oe,ge,Le,V,Qe),_._crypto_auth_hmacsha512256_bytes=()=>(_._crypto_auth_hmacsha512256_bytes=te.Ba)(),_._crypto_auth_hmacsha512256_keybytes=()=>(_._crypto_auth_hmacsha512256_keybytes=te.Ca)(),_._crypto_auth_hmacsha512256_statebytes=()=>(_._crypto_auth_hmacsha512256_statebytes=te.Da)(),_._crypto_auth_hmacsha512256_keygen=oe=>(_._crypto_auth_hmacsha512256_keygen=te.Ea)(oe),_._crypto_auth_hmacsha512256_init=(oe,ge,Le)=>(_._crypto_auth_hmacsha512256_init=te.Fa)(oe,ge,Le),_._crypto_auth_hmacsha512256_update=(oe,ge,Le,V)=>(_._crypto_auth_hmacsha512256_update=te.Ga)(oe,ge,Le,V),_._crypto_auth_hmacsha512256_final=(oe,ge)=>(_._crypto_auth_hmacsha512256_final=te.Ha)(oe,ge),_._crypto_auth_hmacsha512256=(oe,ge,Le,V,Qe)=>(_._crypto_auth_hmacsha512256=te.Ia)(oe,ge,Le,V,Qe),_._crypto_auth_hmacsha512256_verify=(oe,ge,Le,V,Qe)=>(_._crypto_auth_hmacsha512256_verify=te.Ja)(oe,ge,Le,V,Qe),_._crypto_box_seedbytes=()=>(_._crypto_box_seedbytes=te.Ka)(),_._crypto_box_publickeybytes=()=>(_._crypto_box_publickeybytes=te.La)(),_._crypto_box_secretkeybytes=()=>(_._crypto_box_secretkeybytes=te.Ma)(),_._crypto_box_beforenmbytes=()=>(_._crypto_box_beforenmbytes=te.Na)(),_._crypto_box_noncebytes=()=>(_._crypto_box_noncebytes=te.Oa)(),_._crypto_box_zerobytes=()=>(_._crypto_box_zerobytes=te.Pa)(),_._crypto_box_boxzerobytes=()=>(_._crypto_box_boxzerobytes=te.Qa)(),_._crypto_box_macbytes=()=>(_._crypto_box_macbytes=te.Ra)(),_._crypto_box_messagebytes_max=()=>(_._crypto_box_messagebytes_max=te.Sa)(),_._crypto_box_primitive=()=>(_._crypto_box_primitive=te.Ta)(),_._crypto_box_seed_keypair=(oe,ge,Le)=>(_._crypto_box_seed_keypair=te.Ua)(oe,ge,Le),_._crypto_box_keypair=(oe,ge)=>(_._crypto_box_keypair=te.Va)(oe,ge),_._crypto_box_beforenm=(oe,ge,Le)=>(_._crypto_box_beforenm=te.Wa)(oe,ge,Le),_._crypto_box_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_afternm=te.Xa)(oe,ge,Le,V,Qe,_t),_._crypto_box_open_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_open_afternm=te.Ya)(oe,ge,Le,V,Qe,_t),_._crypto_box=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box=te.Za)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_open=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_open=te._a)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_detached_afternm=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_detached_afternm=te.$a)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_detached=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_box_detached=te.ab)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_box_easy_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_easy_afternm=te.bb)(oe,ge,Le,V,Qe,_t),_._crypto_box_easy=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_easy=te.cb)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_open_detached_afternm=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_open_detached_afternm=te.db)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_open_detached=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_box_open_detached=te.eb)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_box_open_easy_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_open_easy_afternm=te.fb)(oe,ge,Le,V,Qe,_t),_._crypto_box_open_easy=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_open_easy=te.gb)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_seal=(oe,ge,Le,V,Qe)=>(_._crypto_box_seal=te.hb)(oe,ge,Le,V,Qe),_._crypto_box_seal_open=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_seal_open=te.ib)(oe,ge,Le,V,Qe,_t),_._crypto_box_sealbytes=()=>(_._crypto_box_sealbytes=te.jb)(),_._crypto_box_curve25519xsalsa20poly1305_seed_keypair=(oe,ge,Le)=>(_._crypto_box_curve25519xsalsa20poly1305_seed_keypair=te.kb)(oe,ge,Le),_._crypto_box_curve25519xsalsa20poly1305_keypair=(oe,ge)=>(_._crypto_box_curve25519xsalsa20poly1305_keypair=te.lb)(oe,ge),_._crypto_box_curve25519xsalsa20poly1305_beforenm=(oe,ge,Le)=>(_._crypto_box_curve25519xsalsa20poly1305_beforenm=te.mb)(oe,ge,Le),_._crypto_box_curve25519xsalsa20poly1305_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_curve25519xsalsa20poly1305_afternm=te.nb)(oe,ge,Le,V,Qe,_t),_._crypto_box_curve25519xsalsa20poly1305_open_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_curve25519xsalsa20poly1305_open_afternm=te.ob)(oe,ge,Le,V,Qe,_t),_._crypto_box_curve25519xsalsa20poly1305=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_curve25519xsalsa20poly1305=te.pb)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_curve25519xsalsa20poly1305_open=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_curve25519xsalsa20poly1305_open=te.qb)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_curve25519xsalsa20poly1305_seedbytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_seedbytes=te.rb)(),_._crypto_box_curve25519xsalsa20poly1305_publickeybytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_publickeybytes=te.sb)(),_._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=te.tb)(),_._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=te.ub)(),_._crypto_box_curve25519xsalsa20poly1305_noncebytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_noncebytes=te.vb)(),_._crypto_box_curve25519xsalsa20poly1305_zerobytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_zerobytes=te.wb)(),_._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=te.xb)(),_._crypto_box_curve25519xsalsa20poly1305_macbytes=()=>(_._crypto_box_curve25519xsalsa20poly1305_macbytes=te.yb)(),_._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=()=>(_._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=te.zb)(),_._crypto_core_hchacha20=(oe,ge,Le,V)=>(_._crypto_core_hchacha20=te.Ab)(oe,ge,Le,V),_._crypto_core_hchacha20_outputbytes=()=>(_._crypto_core_hchacha20_outputbytes=te.Bb)(),_._crypto_core_hchacha20_inputbytes=()=>(_._crypto_core_hchacha20_inputbytes=te.Cb)(),_._crypto_core_hchacha20_keybytes=()=>(_._crypto_core_hchacha20_keybytes=te.Db)(),_._crypto_core_hchacha20_constbytes=()=>(_._crypto_core_hchacha20_constbytes=te.Eb)(),_._crypto_core_hsalsa20=(oe,ge,Le,V)=>(_._crypto_core_hsalsa20=te.Fb)(oe,ge,Le,V),_._crypto_core_hsalsa20_outputbytes=()=>(_._crypto_core_hsalsa20_outputbytes=te.Gb)(),_._crypto_core_hsalsa20_inputbytes=()=>(_._crypto_core_hsalsa20_inputbytes=te.Hb)(),_._crypto_core_hsalsa20_keybytes=()=>(_._crypto_core_hsalsa20_keybytes=te.Ib)(),_._crypto_core_hsalsa20_constbytes=()=>(_._crypto_core_hsalsa20_constbytes=te.Jb)(),_._crypto_core_salsa20=(oe,ge,Le,V)=>(_._crypto_core_salsa20=te.Kb)(oe,ge,Le,V),_._crypto_core_salsa20_outputbytes=()=>(_._crypto_core_salsa20_outputbytes=te.Lb)(),_._crypto_core_salsa20_inputbytes=()=>(_._crypto_core_salsa20_inputbytes=te.Mb)(),_._crypto_core_salsa20_keybytes=()=>(_._crypto_core_salsa20_keybytes=te.Nb)(),_._crypto_core_salsa20_constbytes=()=>(_._crypto_core_salsa20_constbytes=te.Ob)(),_._crypto_core_salsa2012=(oe,ge,Le,V)=>(_._crypto_core_salsa2012=te.Pb)(oe,ge,Le,V),_._crypto_core_salsa2012_outputbytes=()=>(_._crypto_core_salsa2012_outputbytes=te.Qb)(),_._crypto_core_salsa2012_inputbytes=()=>(_._crypto_core_salsa2012_inputbytes=te.Rb)(),_._crypto_core_salsa2012_keybytes=()=>(_._crypto_core_salsa2012_keybytes=te.Sb)(),_._crypto_core_salsa2012_constbytes=()=>(_._crypto_core_salsa2012_constbytes=te.Tb)(),_._crypto_core_salsa208=(oe,ge,Le,V)=>(_._crypto_core_salsa208=te.Ub)(oe,ge,Le,V),_._crypto_core_salsa208_outputbytes=()=>(_._crypto_core_salsa208_outputbytes=te.Vb)(),_._crypto_core_salsa208_inputbytes=()=>(_._crypto_core_salsa208_inputbytes=te.Wb)(),_._crypto_core_salsa208_keybytes=()=>(_._crypto_core_salsa208_keybytes=te.Xb)(),_._crypto_core_salsa208_constbytes=()=>(_._crypto_core_salsa208_constbytes=te.Yb)(),_._crypto_generichash_bytes_min=()=>(_._crypto_generichash_bytes_min=te.Zb)(),_._crypto_generichash_bytes_max=()=>(_._crypto_generichash_bytes_max=te._b)(),_._crypto_generichash_bytes=()=>(_._crypto_generichash_bytes=te.$b)(),_._crypto_generichash_keybytes_min=()=>(_._crypto_generichash_keybytes_min=te.ac)(),_._crypto_generichash_keybytes_max=()=>(_._crypto_generichash_keybytes_max=te.bc)(),_._crypto_generichash_keybytes=()=>(_._crypto_generichash_keybytes=te.cc)(),_._crypto_generichash_primitive=()=>(_._crypto_generichash_primitive=te.dc)(),_._crypto_generichash_statebytes=()=>(_._crypto_generichash_statebytes=te.ec)(),_._crypto_generichash=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_generichash=te.fc)(oe,ge,Le,V,Qe,_t,rt),_._crypto_generichash_init=(oe,ge,Le,V)=>(_._crypto_generichash_init=te.gc)(oe,ge,Le,V),_._crypto_generichash_update=(oe,ge,Le,V)=>(_._crypto_generichash_update=te.hc)(oe,ge,Le,V),_._crypto_generichash_final=(oe,ge,Le)=>(_._crypto_generichash_final=te.ic)(oe,ge,Le),_._crypto_generichash_keygen=oe=>(_._crypto_generichash_keygen=te.jc)(oe),_._crypto_generichash_blake2b_bytes_min=()=>(_._crypto_generichash_blake2b_bytes_min=te.kc)(),_._crypto_generichash_blake2b_bytes_max=()=>(_._crypto_generichash_blake2b_bytes_max=te.lc)(),_._crypto_generichash_blake2b_bytes=()=>(_._crypto_generichash_blake2b_bytes=te.mc)(),_._crypto_generichash_blake2b_keybytes_min=()=>(_._crypto_generichash_blake2b_keybytes_min=te.nc)(),_._crypto_generichash_blake2b_keybytes_max=()=>(_._crypto_generichash_blake2b_keybytes_max=te.oc)(),_._crypto_generichash_blake2b_keybytes=()=>(_._crypto_generichash_blake2b_keybytes=te.pc)(),_._crypto_generichash_blake2b_saltbytes=()=>(_._crypto_generichash_blake2b_saltbytes=te.qc)(),_._crypto_generichash_blake2b_personalbytes=()=>(_._crypto_generichash_blake2b_personalbytes=te.rc)(),_._crypto_generichash_blake2b_statebytes=()=>(_._crypto_generichash_blake2b_statebytes=te.sc)(),_._crypto_generichash_blake2b_keygen=oe=>(_._crypto_generichash_blake2b_keygen=te.tc)(oe),_._crypto_generichash_blake2b=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_generichash_blake2b=te.uc)(oe,ge,Le,V,Qe,_t,rt),_._crypto_generichash_blake2b_salt_personal=(oe,ge,Le,V,Qe,_t,rt,At,Er)=>(_._crypto_generichash_blake2b_salt_personal=te.vc)(oe,ge,Le,V,Qe,_t,rt,At,Er),_._crypto_generichash_blake2b_init=(oe,ge,Le,V)=>(_._crypto_generichash_blake2b_init=te.wc)(oe,ge,Le,V),_._crypto_generichash_blake2b_init_salt_personal=(oe,ge,Le,V,Qe,_t)=>(_._crypto_generichash_blake2b_init_salt_personal=te.xc)(oe,ge,Le,V,Qe,_t),_._crypto_generichash_blake2b_update=(oe,ge,Le,V)=>(_._crypto_generichash_blake2b_update=te.yc)(oe,ge,Le,V),_._crypto_generichash_blake2b_final=(oe,ge,Le)=>(_._crypto_generichash_blake2b_final=te.zc)(oe,ge,Le),_._crypto_hash_bytes=()=>(_._crypto_hash_bytes=te.Ac)(),_._crypto_hash=(oe,ge,Le,V)=>(_._crypto_hash=te.Bc)(oe,ge,Le,V),_._crypto_hash_primitive=()=>(_._crypto_hash_primitive=te.Cc)(),_._crypto_hash_sha256_bytes=()=>(_._crypto_hash_sha256_bytes=te.Dc)(),_._crypto_hash_sha256_statebytes=()=>(_._crypto_hash_sha256_statebytes=te.Ec)(),_._crypto_hash_sha256_init=oe=>(_._crypto_hash_sha256_init=te.Fc)(oe),_._crypto_hash_sha256_update=(oe,ge,Le,V)=>(_._crypto_hash_sha256_update=te.Gc)(oe,ge,Le,V),_._crypto_hash_sha256_final=(oe,ge)=>(_._crypto_hash_sha256_final=te.Hc)(oe,ge),_._crypto_hash_sha256=(oe,ge,Le,V)=>(_._crypto_hash_sha256=te.Ic)(oe,ge,Le,V),_._crypto_hash_sha512_bytes=()=>(_._crypto_hash_sha512_bytes=te.Jc)(),_._crypto_hash_sha512_statebytes=()=>(_._crypto_hash_sha512_statebytes=te.Kc)(),_._crypto_hash_sha512_init=oe=>(_._crypto_hash_sha512_init=te.Lc)(oe),_._crypto_hash_sha512_update=(oe,ge,Le,V)=>(_._crypto_hash_sha512_update=te.Mc)(oe,ge,Le,V),_._crypto_hash_sha512_final=(oe,ge)=>(_._crypto_hash_sha512_final=te.Nc)(oe,ge),_._crypto_hash_sha512=(oe,ge,Le,V)=>(_._crypto_hash_sha512=te.Oc)(oe,ge,Le,V),_._crypto_kdf_blake2b_bytes_min=()=>(_._crypto_kdf_blake2b_bytes_min=te.Pc)(),_._crypto_kdf_blake2b_bytes_max=()=>(_._crypto_kdf_blake2b_bytes_max=te.Qc)(),_._crypto_kdf_blake2b_contextbytes=()=>(_._crypto_kdf_blake2b_contextbytes=te.Rc)(),_._crypto_kdf_blake2b_keybytes=()=>(_._crypto_kdf_blake2b_keybytes=te.Sc)(),_._crypto_kdf_blake2b_derive_from_key=(oe,ge,Le,V,Qe,_t)=>(_._crypto_kdf_blake2b_derive_from_key=te.Tc)(oe,ge,Le,V,Qe,_t),_._crypto_kdf_primitive=()=>(_._crypto_kdf_primitive=te.Uc)(),_._crypto_kdf_bytes_min=()=>(_._crypto_kdf_bytes_min=te.Vc)(),_._crypto_kdf_bytes_max=()=>(_._crypto_kdf_bytes_max=te.Wc)(),_._crypto_kdf_contextbytes=()=>(_._crypto_kdf_contextbytes=te.Xc)(),_._crypto_kdf_keybytes=()=>(_._crypto_kdf_keybytes=te.Yc)(),_._crypto_kdf_derive_from_key=(oe,ge,Le,V,Qe,_t)=>(_._crypto_kdf_derive_from_key=te.Zc)(oe,ge,Le,V,Qe,_t),_._crypto_kdf_keygen=oe=>(_._crypto_kdf_keygen=te._c)(oe),_._crypto_kdf_hkdf_sha256_extract_init=(oe,ge,Le)=>(_._crypto_kdf_hkdf_sha256_extract_init=te.$c)(oe,ge,Le),_._crypto_kdf_hkdf_sha256_extract_update=(oe,ge,Le)=>(_._crypto_kdf_hkdf_sha256_extract_update=te.ad)(oe,ge,Le),_._crypto_kdf_hkdf_sha256_extract_final=(oe,ge)=>(_._crypto_kdf_hkdf_sha256_extract_final=te.bd)(oe,ge),_._crypto_kdf_hkdf_sha256_extract=(oe,ge,Le,V,Qe)=>(_._crypto_kdf_hkdf_sha256_extract=te.cd)(oe,ge,Le,V,Qe),_._crypto_kdf_hkdf_sha256_keygen=oe=>(_._crypto_kdf_hkdf_sha256_keygen=te.dd)(oe),_._crypto_kdf_hkdf_sha256_expand=(oe,ge,Le,V,Qe)=>(_._crypto_kdf_hkdf_sha256_expand=te.ed)(oe,ge,Le,V,Qe),_._crypto_kdf_hkdf_sha256_keybytes=()=>(_._crypto_kdf_hkdf_sha256_keybytes=te.fd)(),_._crypto_kdf_hkdf_sha256_bytes_min=()=>(_._crypto_kdf_hkdf_sha256_bytes_min=te.gd)(),_._crypto_kdf_hkdf_sha256_bytes_max=()=>(_._crypto_kdf_hkdf_sha256_bytes_max=te.hd)(),_._crypto_kdf_hkdf_sha256_statebytes=()=>(_._crypto_kdf_hkdf_sha256_statebytes=te.id)(),_._crypto_kdf_hkdf_sha512_extract_init=(oe,ge,Le)=>(_._crypto_kdf_hkdf_sha512_extract_init=te.jd)(oe,ge,Le),_._crypto_kdf_hkdf_sha512_extract_update=(oe,ge,Le)=>(_._crypto_kdf_hkdf_sha512_extract_update=te.kd)(oe,ge,Le),_._crypto_kdf_hkdf_sha512_extract_final=(oe,ge)=>(_._crypto_kdf_hkdf_sha512_extract_final=te.ld)(oe,ge),_._crypto_kdf_hkdf_sha512_extract=(oe,ge,Le,V,Qe)=>(_._crypto_kdf_hkdf_sha512_extract=te.md)(oe,ge,Le,V,Qe),_._crypto_kdf_hkdf_sha512_keygen=oe=>(_._crypto_kdf_hkdf_sha512_keygen=te.nd)(oe),_._crypto_kdf_hkdf_sha512_expand=(oe,ge,Le,V,Qe)=>(_._crypto_kdf_hkdf_sha512_expand=te.od)(oe,ge,Le,V,Qe),_._crypto_kdf_hkdf_sha512_keybytes=()=>(_._crypto_kdf_hkdf_sha512_keybytes=te.pd)(),_._crypto_kdf_hkdf_sha512_bytes_min=()=>(_._crypto_kdf_hkdf_sha512_bytes_min=te.qd)(),_._crypto_kdf_hkdf_sha512_bytes_max=()=>(_._crypto_kdf_hkdf_sha512_bytes_max=te.rd)(),_._crypto_kdf_hkdf_sha512_statebytes=()=>(_._crypto_kdf_hkdf_sha512_statebytes=te.sd)(),_._crypto_kx_seed_keypair=(oe,ge,Le)=>(_._crypto_kx_seed_keypair=te.td)(oe,ge,Le),_._crypto_kx_keypair=(oe,ge)=>(_._crypto_kx_keypair=te.ud)(oe,ge),_._crypto_kx_client_session_keys=(oe,ge,Le,V,Qe)=>(_._crypto_kx_client_session_keys=te.vd)(oe,ge,Le,V,Qe),_._crypto_kx_server_session_keys=(oe,ge,Le,V,Qe)=>(_._crypto_kx_server_session_keys=te.wd)(oe,ge,Le,V,Qe),_._crypto_kx_publickeybytes=()=>(_._crypto_kx_publickeybytes=te.xd)(),_._crypto_kx_secretkeybytes=()=>(_._crypto_kx_secretkeybytes=te.yd)(),_._crypto_kx_seedbytes=()=>(_._crypto_kx_seedbytes=te.zd)(),_._crypto_kx_sessionkeybytes=()=>(_._crypto_kx_sessionkeybytes=te.Ad)(),_._crypto_kx_primitive=()=>(_._crypto_kx_primitive=te.Bd)(),_._crypto_onetimeauth_statebytes=()=>(_._crypto_onetimeauth_statebytes=te.Cd)(),_._crypto_onetimeauth_bytes=()=>(_._crypto_onetimeauth_bytes=te.Dd)(),_._crypto_onetimeauth_keybytes=()=>(_._crypto_onetimeauth_keybytes=te.Ed)(),_._crypto_onetimeauth=(oe,ge,Le,V,Qe)=>(_._crypto_onetimeauth=te.Fd)(oe,ge,Le,V,Qe),_._crypto_onetimeauth_verify=(oe,ge,Le,V,Qe)=>(_._crypto_onetimeauth_verify=te.Gd)(oe,ge,Le,V,Qe),_._crypto_onetimeauth_init=(oe,ge)=>(_._crypto_onetimeauth_init=te.Hd)(oe,ge),_._crypto_onetimeauth_update=(oe,ge,Le,V)=>(_._crypto_onetimeauth_update=te.Id)(oe,ge,Le,V),_._crypto_onetimeauth_final=(oe,ge)=>(_._crypto_onetimeauth_final=te.Jd)(oe,ge),_._crypto_onetimeauth_primitive=()=>(_._crypto_onetimeauth_primitive=te.Kd)(),_._crypto_onetimeauth_keygen=oe=>(_._crypto_onetimeauth_keygen=te.Ld)(oe),_._crypto_onetimeauth_poly1305=(oe,ge,Le,V,Qe)=>(_._crypto_onetimeauth_poly1305=te.Md)(oe,ge,Le,V,Qe),_._crypto_onetimeauth_poly1305_verify=(oe,ge,Le,V,Qe)=>(_._crypto_onetimeauth_poly1305_verify=te.Nd)(oe,ge,Le,V,Qe),_._crypto_onetimeauth_poly1305_init=(oe,ge)=>(_._crypto_onetimeauth_poly1305_init=te.Od)(oe,ge),_._crypto_onetimeauth_poly1305_update=(oe,ge,Le,V)=>(_._crypto_onetimeauth_poly1305_update=te.Pd)(oe,ge,Le,V),_._crypto_onetimeauth_poly1305_final=(oe,ge)=>(_._crypto_onetimeauth_poly1305_final=te.Qd)(oe,ge),_._crypto_onetimeauth_poly1305_bytes=()=>(_._crypto_onetimeauth_poly1305_bytes=te.Rd)(),_._crypto_onetimeauth_poly1305_keybytes=()=>(_._crypto_onetimeauth_poly1305_keybytes=te.Sd)(),_._crypto_onetimeauth_poly1305_statebytes=()=>(_._crypto_onetimeauth_poly1305_statebytes=te.Td)(),_._crypto_onetimeauth_poly1305_keygen=oe=>(_._crypto_onetimeauth_poly1305_keygen=te.Ud)(oe),_._crypto_pwhash_argon2i_alg_argon2i13=()=>(_._crypto_pwhash_argon2i_alg_argon2i13=te.Vd)(),_._crypto_pwhash_argon2i_bytes_min=()=>(_._crypto_pwhash_argon2i_bytes_min=te.Wd)(),_._crypto_pwhash_argon2i_bytes_max=()=>(_._crypto_pwhash_argon2i_bytes_max=te.Xd)(),_._crypto_pwhash_argon2i_passwd_min=()=>(_._crypto_pwhash_argon2i_passwd_min=te.Yd)(),_._crypto_pwhash_argon2i_passwd_max=()=>(_._crypto_pwhash_argon2i_passwd_max=te.Zd)(),_._crypto_pwhash_argon2i_saltbytes=()=>(_._crypto_pwhash_argon2i_saltbytes=te._d)(),_._crypto_pwhash_argon2i_strbytes=()=>(_._crypto_pwhash_argon2i_strbytes=te.$d)(),_._crypto_pwhash_argon2i_strprefix=()=>(_._crypto_pwhash_argon2i_strprefix=te.ae)(),_._crypto_pwhash_argon2i_opslimit_min=()=>(_._crypto_pwhash_argon2i_opslimit_min=te.be)(),_._crypto_pwhash_argon2i_opslimit_max=()=>(_._crypto_pwhash_argon2i_opslimit_max=te.ce)(),_._crypto_pwhash_argon2i_memlimit_min=()=>(_._crypto_pwhash_argon2i_memlimit_min=te.de)(),_._crypto_pwhash_argon2i_memlimit_max=()=>(_._crypto_pwhash_argon2i_memlimit_max=te.ee)(),_._crypto_pwhash_argon2i_opslimit_interactive=()=>(_._crypto_pwhash_argon2i_opslimit_interactive=te.fe)(),_._crypto_pwhash_argon2i_memlimit_interactive=()=>(_._crypto_pwhash_argon2i_memlimit_interactive=te.ge)(),_._crypto_pwhash_argon2i_opslimit_moderate=()=>(_._crypto_pwhash_argon2i_opslimit_moderate=te.he)(),_._crypto_pwhash_argon2i_memlimit_moderate=()=>(_._crypto_pwhash_argon2i_memlimit_moderate=te.ie)(),_._crypto_pwhash_argon2i_opslimit_sensitive=()=>(_._crypto_pwhash_argon2i_opslimit_sensitive=te.je)(),_._crypto_pwhash_argon2i_memlimit_sensitive=()=>(_._crypto_pwhash_argon2i_memlimit_sensitive=te.ke)(),_._crypto_pwhash_argon2i=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_pwhash_argon2i=te.le)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_pwhash_argon2i_str=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_pwhash_argon2i_str=te.me)(oe,ge,Le,V,Qe,_t,rt),_._crypto_pwhash_argon2i_str_verify=(oe,ge,Le,V)=>(_._crypto_pwhash_argon2i_str_verify=te.ne)(oe,ge,Le,V),_._crypto_pwhash_argon2i_str_needs_rehash=(oe,ge,Le,V)=>(_._crypto_pwhash_argon2i_str_needs_rehash=te.oe)(oe,ge,Le,V),_._crypto_pwhash_argon2id_str_needs_rehash=(oe,ge,Le,V)=>(_._crypto_pwhash_argon2id_str_needs_rehash=te.pe)(oe,ge,Le,V),_._crypto_pwhash_argon2id_alg_argon2id13=()=>(_._crypto_pwhash_argon2id_alg_argon2id13=te.qe)(),_._crypto_pwhash_argon2id_bytes_min=()=>(_._crypto_pwhash_argon2id_bytes_min=te.re)(),_._crypto_pwhash_argon2id_bytes_max=()=>(_._crypto_pwhash_argon2id_bytes_max=te.se)(),_._crypto_pwhash_argon2id_passwd_min=()=>(_._crypto_pwhash_argon2id_passwd_min=te.te)(),_._crypto_pwhash_argon2id_passwd_max=()=>(_._crypto_pwhash_argon2id_passwd_max=te.ue)(),_._crypto_pwhash_argon2id_saltbytes=()=>(_._crypto_pwhash_argon2id_saltbytes=te.ve)(),_._crypto_pwhash_argon2id_strbytes=()=>(_._crypto_pwhash_argon2id_strbytes=te.we)(),_._crypto_pwhash_argon2id_strprefix=()=>(_._crypto_pwhash_argon2id_strprefix=te.xe)(),_._crypto_pwhash_argon2id_opslimit_min=()=>(_._crypto_pwhash_argon2id_opslimit_min=te.ye)(),_._crypto_pwhash_argon2id_opslimit_max=()=>(_._crypto_pwhash_argon2id_opslimit_max=te.ze)(),_._crypto_pwhash_argon2id_memlimit_min=()=>(_._crypto_pwhash_argon2id_memlimit_min=te.Ae)(),_._crypto_pwhash_argon2id_memlimit_max=()=>(_._crypto_pwhash_argon2id_memlimit_max=te.Be)(),_._crypto_pwhash_argon2id_opslimit_interactive=()=>(_._crypto_pwhash_argon2id_opslimit_interactive=te.Ce)(),_._crypto_pwhash_argon2id_memlimit_interactive=()=>(_._crypto_pwhash_argon2id_memlimit_interactive=te.De)(),_._crypto_pwhash_argon2id_opslimit_moderate=()=>(_._crypto_pwhash_argon2id_opslimit_moderate=te.Ee)(),_._crypto_pwhash_argon2id_memlimit_moderate=()=>(_._crypto_pwhash_argon2id_memlimit_moderate=te.Fe)(),_._crypto_pwhash_argon2id_opslimit_sensitive=()=>(_._crypto_pwhash_argon2id_opslimit_sensitive=te.Ge)(),_._crypto_pwhash_argon2id_memlimit_sensitive=()=>(_._crypto_pwhash_argon2id_memlimit_sensitive=te.He)(),_._crypto_pwhash_argon2id=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_pwhash_argon2id=te.Ie)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_pwhash_argon2id_str=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_pwhash_argon2id_str=te.Je)(oe,ge,Le,V,Qe,_t,rt),_._crypto_pwhash_argon2id_str_verify=(oe,ge,Le,V)=>(_._crypto_pwhash_argon2id_str_verify=te.Ke)(oe,ge,Le,V),_._crypto_pwhash_alg_argon2i13=()=>(_._crypto_pwhash_alg_argon2i13=te.Le)(),_._crypto_pwhash_alg_argon2id13=()=>(_._crypto_pwhash_alg_argon2id13=te.Me)(),_._crypto_pwhash_alg_default=()=>(_._crypto_pwhash_alg_default=te.Ne)(),_._crypto_pwhash_bytes_min=()=>(_._crypto_pwhash_bytes_min=te.Oe)(),_._crypto_pwhash_bytes_max=()=>(_._crypto_pwhash_bytes_max=te.Pe)(),_._crypto_pwhash_passwd_min=()=>(_._crypto_pwhash_passwd_min=te.Qe)(),_._crypto_pwhash_passwd_max=()=>(_._crypto_pwhash_passwd_max=te.Re)(),_._crypto_pwhash_saltbytes=()=>(_._crypto_pwhash_saltbytes=te.Se)(),_._crypto_pwhash_strbytes=()=>(_._crypto_pwhash_strbytes=te.Te)(),_._crypto_pwhash_strprefix=()=>(_._crypto_pwhash_strprefix=te.Ue)(),_._crypto_pwhash_opslimit_min=()=>(_._crypto_pwhash_opslimit_min=te.Ve)(),_._crypto_pwhash_opslimit_max=()=>(_._crypto_pwhash_opslimit_max=te.We)(),_._crypto_pwhash_memlimit_min=()=>(_._crypto_pwhash_memlimit_min=te.Xe)(),_._crypto_pwhash_memlimit_max=()=>(_._crypto_pwhash_memlimit_max=te.Ye)(),_._crypto_pwhash_opslimit_interactive=()=>(_._crypto_pwhash_opslimit_interactive=te.Ze)(),_._crypto_pwhash_memlimit_interactive=()=>(_._crypto_pwhash_memlimit_interactive=te._e)(),_._crypto_pwhash_opslimit_moderate=()=>(_._crypto_pwhash_opslimit_moderate=te.$e)(),_._crypto_pwhash_memlimit_moderate=()=>(_._crypto_pwhash_memlimit_moderate=te.af)(),_._crypto_pwhash_opslimit_sensitive=()=>(_._crypto_pwhash_opslimit_sensitive=te.bf)(),_._crypto_pwhash_memlimit_sensitive=()=>(_._crypto_pwhash_memlimit_sensitive=te.cf)(),_._crypto_pwhash=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht)=>(_._crypto_pwhash=te.df)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht),_._crypto_pwhash_str=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_pwhash_str=te.ef)(oe,ge,Le,V,Qe,_t,rt),_._crypto_pwhash_str_alg=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_pwhash_str_alg=te.ff)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_pwhash_str_verify=(oe,ge,Le,V)=>(_._crypto_pwhash_str_verify=te.gf)(oe,ge,Le,V),_._crypto_pwhash_str_needs_rehash=(oe,ge,Le,V)=>(_._crypto_pwhash_str_needs_rehash=te.hf)(oe,ge,Le,V),_._crypto_pwhash_primitive=()=>(_._crypto_pwhash_primitive=te.jf)(),_._crypto_scalarmult_primitive=()=>(_._crypto_scalarmult_primitive=te.kf)(),_._crypto_scalarmult_base=(oe,ge)=>(_._crypto_scalarmult_base=te.lf)(oe,ge),_._crypto_scalarmult=(oe,ge,Le)=>(_._crypto_scalarmult=te.mf)(oe,ge,Le),_._crypto_scalarmult_bytes=()=>(_._crypto_scalarmult_bytes=te.nf)(),_._crypto_scalarmult_scalarbytes=()=>(_._crypto_scalarmult_scalarbytes=te.of)(),_._crypto_scalarmult_curve25519=(oe,ge,Le)=>(_._crypto_scalarmult_curve25519=te.pf)(oe,ge,Le),_._crypto_scalarmult_curve25519_base=(oe,ge)=>(_._crypto_scalarmult_curve25519_base=te.qf)(oe,ge),_._crypto_scalarmult_curve25519_bytes=()=>(_._crypto_scalarmult_curve25519_bytes=te.rf)(),_._crypto_scalarmult_curve25519_scalarbytes=()=>(_._crypto_scalarmult_curve25519_scalarbytes=te.sf)(),_._crypto_secretbox_keybytes=()=>(_._crypto_secretbox_keybytes=te.tf)(),_._crypto_secretbox_noncebytes=()=>(_._crypto_secretbox_noncebytes=te.uf)(),_._crypto_secretbox_zerobytes=()=>(_._crypto_secretbox_zerobytes=te.vf)(),_._crypto_secretbox_boxzerobytes=()=>(_._crypto_secretbox_boxzerobytes=te.wf)(),_._crypto_secretbox_macbytes=()=>(_._crypto_secretbox_macbytes=te.xf)(),_._crypto_secretbox_messagebytes_max=()=>(_._crypto_secretbox_messagebytes_max=te.yf)(),_._crypto_secretbox_primitive=()=>(_._crypto_secretbox_primitive=te.zf)(),_._crypto_secretbox=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox=te.Af)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_open=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_open=te.Bf)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_keygen=oe=>(_._crypto_secretbox_keygen=te.Cf)(oe),_._crypto_secretbox_detached=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_secretbox_detached=te.Df)(oe,ge,Le,V,Qe,_t,rt),_._crypto_secretbox_easy=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_easy=te.Ef)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_open_detached=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_secretbox_open_detached=te.Ff)(oe,ge,Le,V,Qe,_t,rt),_._crypto_secretbox_open_easy=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_open_easy=te.Gf)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_xsalsa20poly1305=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_xsalsa20poly1305=te.Hf)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_xsalsa20poly1305_open=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_xsalsa20poly1305_open=te.If)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_xsalsa20poly1305_keybytes=()=>(_._crypto_secretbox_xsalsa20poly1305_keybytes=te.Jf)(),_._crypto_secretbox_xsalsa20poly1305_noncebytes=()=>(_._crypto_secretbox_xsalsa20poly1305_noncebytes=te.Kf)(),_._crypto_secretbox_xsalsa20poly1305_zerobytes=()=>(_._crypto_secretbox_xsalsa20poly1305_zerobytes=te.Lf)(),_._crypto_secretbox_xsalsa20poly1305_boxzerobytes=()=>(_._crypto_secretbox_xsalsa20poly1305_boxzerobytes=te.Mf)(),_._crypto_secretbox_xsalsa20poly1305_macbytes=()=>(_._crypto_secretbox_xsalsa20poly1305_macbytes=te.Nf)(),_._crypto_secretbox_xsalsa20poly1305_messagebytes_max=()=>(_._crypto_secretbox_xsalsa20poly1305_messagebytes_max=te.Of)(),_._crypto_secretbox_xsalsa20poly1305_keygen=oe=>(_._crypto_secretbox_xsalsa20poly1305_keygen=te.Pf)(oe),_._crypto_secretstream_xchacha20poly1305_keygen=oe=>(_._crypto_secretstream_xchacha20poly1305_keygen=te.Qf)(oe),_._crypto_secretstream_xchacha20poly1305_init_push=(oe,ge,Le)=>(_._crypto_secretstream_xchacha20poly1305_init_push=te.Rf)(oe,ge,Le),_._crypto_secretstream_xchacha20poly1305_init_pull=(oe,ge,Le)=>(_._crypto_secretstream_xchacha20poly1305_init_pull=te.Sf)(oe,ge,Le),_._crypto_secretstream_xchacha20poly1305_rekey=oe=>(_._crypto_secretstream_xchacha20poly1305_rekey=te.Tf)(oe),_._crypto_secretstream_xchacha20poly1305_push=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt)=>(_._crypto_secretstream_xchacha20poly1305_push=te.Uf)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt),_._crypto_secretstream_xchacha20poly1305_pull=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt)=>(_._crypto_secretstream_xchacha20poly1305_pull=te.Vf)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt),_._crypto_secretstream_xchacha20poly1305_statebytes=()=>(_._crypto_secretstream_xchacha20poly1305_statebytes=te.Wf)(),_._crypto_secretstream_xchacha20poly1305_abytes=()=>(_._crypto_secretstream_xchacha20poly1305_abytes=te.Xf)(),_._crypto_secretstream_xchacha20poly1305_headerbytes=()=>(_._crypto_secretstream_xchacha20poly1305_headerbytes=te.Yf)(),_._crypto_secretstream_xchacha20poly1305_keybytes=()=>(_._crypto_secretstream_xchacha20poly1305_keybytes=te.Zf)(),_._crypto_secretstream_xchacha20poly1305_messagebytes_max=()=>(_._crypto_secretstream_xchacha20poly1305_messagebytes_max=te._f)(),_._crypto_secretstream_xchacha20poly1305_tag_message=()=>(_._crypto_secretstream_xchacha20poly1305_tag_message=te.$f)(),_._crypto_secretstream_xchacha20poly1305_tag_push=()=>(_._crypto_secretstream_xchacha20poly1305_tag_push=te.ag)(),_._crypto_secretstream_xchacha20poly1305_tag_rekey=()=>(_._crypto_secretstream_xchacha20poly1305_tag_rekey=te.bg)(),_._crypto_secretstream_xchacha20poly1305_tag_final=()=>(_._crypto_secretstream_xchacha20poly1305_tag_final=te.cg)(),_._crypto_shorthash_bytes=()=>(_._crypto_shorthash_bytes=te.dg)(),_._crypto_shorthash_keybytes=()=>(_._crypto_shorthash_keybytes=te.eg)(),_._crypto_shorthash_primitive=()=>(_._crypto_shorthash_primitive=te.fg)(),_._crypto_shorthash=(oe,ge,Le,V,Qe)=>(_._crypto_shorthash=te.gg)(oe,ge,Le,V,Qe),_._crypto_shorthash_keygen=oe=>(_._crypto_shorthash_keygen=te.hg)(oe),_._crypto_shorthash_siphash24_bytes=()=>(_._crypto_shorthash_siphash24_bytes=te.ig)(),_._crypto_shorthash_siphash24_keybytes=()=>(_._crypto_shorthash_siphash24_keybytes=te.jg)(),_._crypto_shorthash_siphash24=(oe,ge,Le,V,Qe)=>(_._crypto_shorthash_siphash24=te.kg)(oe,ge,Le,V,Qe),_._crypto_sign_statebytes=()=>(_._crypto_sign_statebytes=te.lg)(),_._crypto_sign_bytes=()=>(_._crypto_sign_bytes=te.mg)(),_._crypto_sign_seedbytes=()=>(_._crypto_sign_seedbytes=te.ng)(),_._crypto_sign_publickeybytes=()=>(_._crypto_sign_publickeybytes=te.og)(),_._crypto_sign_secretkeybytes=()=>(_._crypto_sign_secretkeybytes=te.pg)(),_._crypto_sign_messagebytes_max=()=>(_._crypto_sign_messagebytes_max=te.qg)(),_._crypto_sign_primitive=()=>(_._crypto_sign_primitive=te.rg)(),_._crypto_sign_seed_keypair=(oe,ge,Le)=>(_._crypto_sign_seed_keypair=te.sg)(oe,ge,Le),_._crypto_sign_keypair=(oe,ge)=>(_._crypto_sign_keypair=te.tg)(oe,ge),_._crypto_sign=(oe,ge,Le,V,Qe,_t)=>(_._crypto_sign=te.ug)(oe,ge,Le,V,Qe,_t),_._crypto_sign_open=(oe,ge,Le,V,Qe,_t)=>(_._crypto_sign_open=te.vg)(oe,ge,Le,V,Qe,_t),_._crypto_sign_detached=(oe,ge,Le,V,Qe,_t)=>(_._crypto_sign_detached=te.wg)(oe,ge,Le,V,Qe,_t),_._crypto_sign_verify_detached=(oe,ge,Le,V,Qe)=>(_._crypto_sign_verify_detached=te.xg)(oe,ge,Le,V,Qe),_._crypto_sign_init=oe=>(_._crypto_sign_init=te.yg)(oe),_._crypto_sign_update=(oe,ge,Le,V)=>(_._crypto_sign_update=te.zg)(oe,ge,Le,V),_._crypto_sign_final_create=(oe,ge,Le,V)=>(_._crypto_sign_final_create=te.Ag)(oe,ge,Le,V),_._crypto_sign_final_verify=(oe,ge,Le)=>(_._crypto_sign_final_verify=te.Bg)(oe,ge,Le),_._crypto_sign_ed25519ph_statebytes=()=>(_._crypto_sign_ed25519ph_statebytes=te.Cg)(),_._crypto_sign_ed25519_bytes=()=>(_._crypto_sign_ed25519_bytes=te.Dg)(),_._crypto_sign_ed25519_seedbytes=()=>(_._crypto_sign_ed25519_seedbytes=te.Eg)(),_._crypto_sign_ed25519_publickeybytes=()=>(_._crypto_sign_ed25519_publickeybytes=te.Fg)(),_._crypto_sign_ed25519_secretkeybytes=()=>(_._crypto_sign_ed25519_secretkeybytes=te.Gg)(),_._crypto_sign_ed25519_messagebytes_max=()=>(_._crypto_sign_ed25519_messagebytes_max=te.Hg)(),_._crypto_sign_ed25519_sk_to_seed=(oe,ge)=>(_._crypto_sign_ed25519_sk_to_seed=te.Ig)(oe,ge),_._crypto_sign_ed25519_sk_to_pk=(oe,ge)=>(_._crypto_sign_ed25519_sk_to_pk=te.Jg)(oe,ge),_._crypto_sign_ed25519ph_init=oe=>(_._crypto_sign_ed25519ph_init=te.Kg)(oe),_._crypto_sign_ed25519ph_update=(oe,ge,Le,V)=>(_._crypto_sign_ed25519ph_update=te.Lg)(oe,ge,Le,V),_._crypto_sign_ed25519ph_final_create=(oe,ge,Le,V)=>(_._crypto_sign_ed25519ph_final_create=te.Mg)(oe,ge,Le,V),_._crypto_sign_ed25519ph_final_verify=(oe,ge,Le)=>(_._crypto_sign_ed25519ph_final_verify=te.Ng)(oe,ge,Le),_._crypto_sign_ed25519_seed_keypair=(oe,ge,Le)=>(_._crypto_sign_ed25519_seed_keypair=te.Og)(oe,ge,Le),_._crypto_sign_ed25519_keypair=(oe,ge)=>(_._crypto_sign_ed25519_keypair=te.Pg)(oe,ge),_._crypto_sign_ed25519_pk_to_curve25519=(oe,ge)=>(_._crypto_sign_ed25519_pk_to_curve25519=te.Qg)(oe,ge),_._crypto_sign_ed25519_sk_to_curve25519=(oe,ge)=>(_._crypto_sign_ed25519_sk_to_curve25519=te.Rg)(oe,ge),_._crypto_sign_ed25519_verify_detached=(oe,ge,Le,V,Qe)=>(_._crypto_sign_ed25519_verify_detached=te.Sg)(oe,ge,Le,V,Qe),_._crypto_sign_ed25519_open=(oe,ge,Le,V,Qe,_t)=>(_._crypto_sign_ed25519_open=te.Tg)(oe,ge,Le,V,Qe,_t),_._crypto_sign_ed25519_detached=(oe,ge,Le,V,Qe,_t)=>(_._crypto_sign_ed25519_detached=te.Ug)(oe,ge,Le,V,Qe,_t),_._crypto_sign_ed25519=(oe,ge,Le,V,Qe,_t)=>(_._crypto_sign_ed25519=te.Vg)(oe,ge,Le,V,Qe,_t),_._crypto_stream_chacha20_keybytes=()=>(_._crypto_stream_chacha20_keybytes=te.Wg)(),_._crypto_stream_chacha20_noncebytes=()=>(_._crypto_stream_chacha20_noncebytes=te.Xg)(),_._crypto_stream_chacha20_messagebytes_max=()=>(_._crypto_stream_chacha20_messagebytes_max=te.Yg)(),_._crypto_stream_chacha20_ietf_keybytes=()=>(_._crypto_stream_chacha20_ietf_keybytes=te.Zg)(),_._crypto_stream_chacha20_ietf_noncebytes=()=>(_._crypto_stream_chacha20_ietf_noncebytes=te._g)(),_._crypto_stream_chacha20_ietf_messagebytes_max=()=>(_._crypto_stream_chacha20_ietf_messagebytes_max=te.$g)(),_._crypto_stream_chacha20=(oe,ge,Le,V,Qe)=>(_._crypto_stream_chacha20=te.ah)(oe,ge,Le,V,Qe),_._crypto_stream_chacha20_xor_ic=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_stream_chacha20_xor_ic=te.bh)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_stream_chacha20_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_chacha20_xor=te.ch)(oe,ge,Le,V,Qe,_t),_._crypto_stream_chacha20_ietf=(oe,ge,Le,V,Qe)=>(_._crypto_stream_chacha20_ietf=te.dh)(oe,ge,Le,V,Qe),_._crypto_stream_chacha20_ietf_xor_ic=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_stream_chacha20_ietf_xor_ic=te.eh)(oe,ge,Le,V,Qe,_t,rt),_._crypto_stream_chacha20_ietf_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_chacha20_ietf_xor=te.fh)(oe,ge,Le,V,Qe,_t),_._crypto_stream_chacha20_ietf_keygen=oe=>(_._crypto_stream_chacha20_ietf_keygen=te.gh)(oe),_._crypto_stream_chacha20_keygen=oe=>(_._crypto_stream_chacha20_keygen=te.hh)(oe),_._crypto_stream_keybytes=()=>(_._crypto_stream_keybytes=te.ih)(),_._crypto_stream_noncebytes=()=>(_._crypto_stream_noncebytes=te.jh)(),_._crypto_stream_messagebytes_max=()=>(_._crypto_stream_messagebytes_max=te.kh)(),_._crypto_stream_primitive=()=>(_._crypto_stream_primitive=te.lh)(),_._crypto_stream=(oe,ge,Le,V,Qe)=>(_._crypto_stream=te.mh)(oe,ge,Le,V,Qe),_._crypto_stream_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_xor=te.nh)(oe,ge,Le,V,Qe,_t),_._crypto_stream_keygen=oe=>(_._crypto_stream_keygen=te.oh)(oe),_._crypto_stream_salsa20_keybytes=()=>(_._crypto_stream_salsa20_keybytes=te.ph)(),_._crypto_stream_salsa20_noncebytes=()=>(_._crypto_stream_salsa20_noncebytes=te.qh)(),_._crypto_stream_salsa20_messagebytes_max=()=>(_._crypto_stream_salsa20_messagebytes_max=te.rh)(),_._crypto_stream_salsa20=(oe,ge,Le,V,Qe)=>(_._crypto_stream_salsa20=te.sh)(oe,ge,Le,V,Qe),_._crypto_stream_salsa20_xor_ic=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_stream_salsa20_xor_ic=te.th)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_stream_salsa20_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_salsa20_xor=te.uh)(oe,ge,Le,V,Qe,_t),_._crypto_stream_salsa20_keygen=oe=>(_._crypto_stream_salsa20_keygen=te.vh)(oe),_._crypto_stream_xsalsa20=(oe,ge,Le,V,Qe)=>(_._crypto_stream_xsalsa20=te.wh)(oe,ge,Le,V,Qe),_._crypto_stream_xsalsa20_xor_ic=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_stream_xsalsa20_xor_ic=te.xh)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_stream_xsalsa20_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_xsalsa20_xor=te.yh)(oe,ge,Le,V,Qe,_t),_._crypto_stream_xsalsa20_keybytes=()=>(_._crypto_stream_xsalsa20_keybytes=te.zh)(),_._crypto_stream_xsalsa20_noncebytes=()=>(_._crypto_stream_xsalsa20_noncebytes=te.Ah)(),_._crypto_stream_xsalsa20_messagebytes_max=()=>(_._crypto_stream_xsalsa20_messagebytes_max=te.Bh)(),_._crypto_stream_xsalsa20_keygen=oe=>(_._crypto_stream_xsalsa20_keygen=te.Ch)(oe),_._crypto_verify_16_bytes=()=>(_._crypto_verify_16_bytes=te.Dh)(),_._crypto_verify_32_bytes=()=>(_._crypto_verify_32_bytes=te.Eh)(),_._crypto_verify_64_bytes=()=>(_._crypto_verify_64_bytes=te.Fh)(),_._crypto_verify_16=(oe,ge)=>(_._crypto_verify_16=te.Gh)(oe,ge),_._crypto_verify_32=(oe,ge)=>(_._crypto_verify_32=te.Hh)(oe,ge),_._crypto_verify_64=(oe,ge)=>(_._crypto_verify_64=te.Ih)(oe,ge),_._randombytes_implementation_name=()=>(_._randombytes_implementation_name=te.Jh)(),_._randombytes_random=()=>(_._randombytes_random=te.Kh)(),_._randombytes_stir=()=>(_._randombytes_stir=te.Lh)(),_._randombytes_uniform=oe=>(_._randombytes_uniform=te.Mh)(oe),_._randombytes_buf=(oe,ge)=>(_._randombytes_buf=te.Nh)(oe,ge),_._randombytes_buf_deterministic=(oe,ge,Le)=>(_._randombytes_buf_deterministic=te.Oh)(oe,ge,Le),_._randombytes_seedbytes=()=>(_._randombytes_seedbytes=te.Ph)(),_._randombytes_close=()=>(_._randombytes_close=te.Qh)(),_._randombytes=(oe,ge,Le)=>(_._randombytes=te.Rh)(oe,ge,Le),_._sodium_bin2hex=(oe,ge,Le,V)=>(_._sodium_bin2hex=te.Sh)(oe,ge,Le,V),_._sodium_hex2bin=(oe,ge,Le,V,Qe,_t,rt)=>(_._sodium_hex2bin=te.Th)(oe,ge,Le,V,Qe,_t,rt),_._sodium_base64_encoded_len=(oe,ge)=>(_._sodium_base64_encoded_len=te.Uh)(oe,ge),_._sodium_bin2base64=(oe,ge,Le,V,Qe)=>(_._sodium_bin2base64=te.Vh)(oe,ge,Le,V,Qe),_._sodium_base642bin=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._sodium_base642bin=te.Wh)(oe,ge,Le,V,Qe,_t,rt,At),_._sodium_init=()=>(_._sodium_init=te.Xh)(),_._sodium_pad=(oe,ge,Le,V,Qe)=>(_._sodium_pad=te.Yh)(oe,ge,Le,V,Qe),_._sodium_unpad=(oe,ge,Le,V)=>(_._sodium_unpad=te.Zh)(oe,ge,Le,V),_._sodium_version_string=()=>(_._sodium_version_string=te._h)(),_._sodium_library_version_major=()=>(_._sodium_library_version_major=te.$h)(),_._sodium_library_version_minor=()=>(_._sodium_library_version_minor=te.ai)(),_._sodium_library_minimal=()=>(_._sodium_library_minimal=te.bi)(),_._crypto_box_curve25519xchacha20poly1305_seed_keypair=(oe,ge,Le)=>(_._crypto_box_curve25519xchacha20poly1305_seed_keypair=te.ci)(oe,ge,Le),_._crypto_box_curve25519xchacha20poly1305_keypair=(oe,ge)=>(_._crypto_box_curve25519xchacha20poly1305_keypair=te.di)(oe,ge),_._crypto_box_curve25519xchacha20poly1305_beforenm=(oe,ge,Le)=>(_._crypto_box_curve25519xchacha20poly1305_beforenm=te.ei)(oe,ge,Le),_._crypto_box_curve25519xchacha20poly1305_detached_afternm=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_curve25519xchacha20poly1305_detached_afternm=te.fi)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_curve25519xchacha20poly1305_detached=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_box_curve25519xchacha20poly1305_detached=te.gi)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_box_curve25519xchacha20poly1305_easy_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_curve25519xchacha20poly1305_easy_afternm=te.hi)(oe,ge,Le,V,Qe,_t),_._crypto_box_curve25519xchacha20poly1305_easy=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_curve25519xchacha20poly1305_easy=te.ii)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=te.ji)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_curve25519xchacha20poly1305_open_detached=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_box_curve25519xchacha20poly1305_open_detached=te.ki)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=te.li)(oe,ge,Le,V,Qe,_t),_._crypto_box_curve25519xchacha20poly1305_open_easy=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_box_curve25519xchacha20poly1305_open_easy=te.mi)(oe,ge,Le,V,Qe,_t,rt),_._crypto_box_curve25519xchacha20poly1305_seedbytes=()=>(_._crypto_box_curve25519xchacha20poly1305_seedbytes=te.ni)(),_._crypto_box_curve25519xchacha20poly1305_publickeybytes=()=>(_._crypto_box_curve25519xchacha20poly1305_publickeybytes=te.oi)(),_._crypto_box_curve25519xchacha20poly1305_secretkeybytes=()=>(_._crypto_box_curve25519xchacha20poly1305_secretkeybytes=te.pi)(),_._crypto_box_curve25519xchacha20poly1305_beforenmbytes=()=>(_._crypto_box_curve25519xchacha20poly1305_beforenmbytes=te.qi)(),_._crypto_box_curve25519xchacha20poly1305_noncebytes=()=>(_._crypto_box_curve25519xchacha20poly1305_noncebytes=te.ri)(),_._crypto_box_curve25519xchacha20poly1305_macbytes=()=>(_._crypto_box_curve25519xchacha20poly1305_macbytes=te.si)(),_._crypto_box_curve25519xchacha20poly1305_messagebytes_max=()=>(_._crypto_box_curve25519xchacha20poly1305_messagebytes_max=te.ti)(),_._crypto_box_curve25519xchacha20poly1305_seal=(oe,ge,Le,V,Qe)=>(_._crypto_box_curve25519xchacha20poly1305_seal=te.ui)(oe,ge,Le,V,Qe),_._crypto_box_curve25519xchacha20poly1305_seal_open=(oe,ge,Le,V,Qe,_t)=>(_._crypto_box_curve25519xchacha20poly1305_seal_open=te.vi)(oe,ge,Le,V,Qe,_t),_._crypto_box_curve25519xchacha20poly1305_sealbytes=()=>(_._crypto_box_curve25519xchacha20poly1305_sealbytes=te.wi)(),_._crypto_core_ed25519_is_valid_point=oe=>(_._crypto_core_ed25519_is_valid_point=te.xi)(oe),_._crypto_core_ed25519_add=(oe,ge,Le)=>(_._crypto_core_ed25519_add=te.yi)(oe,ge,Le),_._crypto_core_ed25519_sub=(oe,ge,Le)=>(_._crypto_core_ed25519_sub=te.zi)(oe,ge,Le),_._crypto_core_ed25519_from_uniform=(oe,ge)=>(_._crypto_core_ed25519_from_uniform=te.Ai)(oe,ge),_._crypto_core_ed25519_random=oe=>(_._crypto_core_ed25519_random=te.Bi)(oe),_._crypto_core_ed25519_scalar_random=oe=>(_._crypto_core_ed25519_scalar_random=te.Ci)(oe),_._crypto_core_ed25519_scalar_invert=(oe,ge)=>(_._crypto_core_ed25519_scalar_invert=te.Di)(oe,ge),_._crypto_core_ed25519_scalar_negate=(oe,ge)=>(_._crypto_core_ed25519_scalar_negate=te.Ei)(oe,ge),_._crypto_core_ed25519_scalar_complement=(oe,ge)=>(_._crypto_core_ed25519_scalar_complement=te.Fi)(oe,ge),_._crypto_core_ed25519_scalar_add=(oe,ge,Le)=>(_._crypto_core_ed25519_scalar_add=te.Gi)(oe,ge,Le),_._crypto_core_ed25519_scalar_reduce=(oe,ge)=>(_._crypto_core_ed25519_scalar_reduce=te.Hi)(oe,ge),_._crypto_core_ed25519_scalar_sub=(oe,ge,Le)=>(_._crypto_core_ed25519_scalar_sub=te.Ii)(oe,ge,Le),_._crypto_core_ed25519_scalar_mul=(oe,ge,Le)=>(_._crypto_core_ed25519_scalar_mul=te.Ji)(oe,ge,Le),_._crypto_core_ed25519_bytes=()=>(_._crypto_core_ed25519_bytes=te.Ki)(),_._crypto_core_ed25519_nonreducedscalarbytes=()=>(_._crypto_core_ed25519_nonreducedscalarbytes=te.Li)(),_._crypto_core_ed25519_uniformbytes=()=>(_._crypto_core_ed25519_uniformbytes=te.Mi)(),_._crypto_core_ed25519_hashbytes=()=>(_._crypto_core_ed25519_hashbytes=te.Ni)(),_._crypto_core_ed25519_scalarbytes=()=>(_._crypto_core_ed25519_scalarbytes=te.Oi)(),_._crypto_core_ristretto255_is_valid_point=oe=>(_._crypto_core_ristretto255_is_valid_point=te.Pi)(oe),_._crypto_core_ristretto255_add=(oe,ge,Le)=>(_._crypto_core_ristretto255_add=te.Qi)(oe,ge,Le),_._crypto_core_ristretto255_sub=(oe,ge,Le)=>(_._crypto_core_ristretto255_sub=te.Ri)(oe,ge,Le),_._crypto_core_ristretto255_from_hash=(oe,ge)=>(_._crypto_core_ristretto255_from_hash=te.Si)(oe,ge),_._crypto_core_ristretto255_random=oe=>(_._crypto_core_ristretto255_random=te.Ti)(oe),_._crypto_core_ristretto255_scalar_random=oe=>(_._crypto_core_ristretto255_scalar_random=te.Ui)(oe),_._crypto_core_ristretto255_scalar_invert=(oe,ge)=>(_._crypto_core_ristretto255_scalar_invert=te.Vi)(oe,ge),_._crypto_core_ristretto255_scalar_negate=(oe,ge)=>(_._crypto_core_ristretto255_scalar_negate=te.Wi)(oe,ge),_._crypto_core_ristretto255_scalar_complement=(oe,ge)=>(_._crypto_core_ristretto255_scalar_complement=te.Xi)(oe,ge),_._crypto_core_ristretto255_scalar_add=(oe,ge,Le)=>(_._crypto_core_ristretto255_scalar_add=te.Yi)(oe,ge,Le),_._crypto_core_ristretto255_scalar_sub=(oe,ge,Le)=>(_._crypto_core_ristretto255_scalar_sub=te.Zi)(oe,ge,Le),_._crypto_core_ristretto255_scalar_mul=(oe,ge,Le)=>(_._crypto_core_ristretto255_scalar_mul=te._i)(oe,ge,Le),_._crypto_core_ristretto255_scalar_reduce=(oe,ge)=>(_._crypto_core_ristretto255_scalar_reduce=te.$i)(oe,ge),_._crypto_core_ristretto255_bytes=()=>(_._crypto_core_ristretto255_bytes=te.aj)(),_._crypto_core_ristretto255_nonreducedscalarbytes=()=>(_._crypto_core_ristretto255_nonreducedscalarbytes=te.bj)(),_._crypto_core_ristretto255_hashbytes=()=>(_._crypto_core_ristretto255_hashbytes=te.cj)(),_._crypto_core_ristretto255_scalarbytes=()=>(_._crypto_core_ristretto255_scalarbytes=te.dj)(),_._crypto_pwhash_scryptsalsa208sha256_ll=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt)=>(_._crypto_pwhash_scryptsalsa208sha256_ll=te.ej)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt),_._crypto_pwhash_scryptsalsa208sha256_bytes_min=()=>(_._crypto_pwhash_scryptsalsa208sha256_bytes_min=te.fj)(),_._crypto_pwhash_scryptsalsa208sha256_bytes_max=()=>(_._crypto_pwhash_scryptsalsa208sha256_bytes_max=te.gj)(),_._crypto_pwhash_scryptsalsa208sha256_passwd_min=()=>(_._crypto_pwhash_scryptsalsa208sha256_passwd_min=te.hj)(),_._crypto_pwhash_scryptsalsa208sha256_passwd_max=()=>(_._crypto_pwhash_scryptsalsa208sha256_passwd_max=te.ij)(),_._crypto_pwhash_scryptsalsa208sha256_saltbytes=()=>(_._crypto_pwhash_scryptsalsa208sha256_saltbytes=te.jj)(),_._crypto_pwhash_scryptsalsa208sha256_strbytes=()=>(_._crypto_pwhash_scryptsalsa208sha256_strbytes=te.kj)(),_._crypto_pwhash_scryptsalsa208sha256_strprefix=()=>(_._crypto_pwhash_scryptsalsa208sha256_strprefix=te.lj)(),_._crypto_pwhash_scryptsalsa208sha256_opslimit_min=()=>(_._crypto_pwhash_scryptsalsa208sha256_opslimit_min=te.mj)(),_._crypto_pwhash_scryptsalsa208sha256_opslimit_max=()=>(_._crypto_pwhash_scryptsalsa208sha256_opslimit_max=te.nj)(),_._crypto_pwhash_scryptsalsa208sha256_memlimit_min=()=>(_._crypto_pwhash_scryptsalsa208sha256_memlimit_min=te.oj)(),_._crypto_pwhash_scryptsalsa208sha256_memlimit_max=()=>(_._crypto_pwhash_scryptsalsa208sha256_memlimit_max=te.pj)(),_._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=()=>(_._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=te.qj)(),_._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=()=>(_._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=te.rj)(),_._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=()=>(_._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=te.sj)(),_._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=()=>(_._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=te.tj)(),_._crypto_pwhash_scryptsalsa208sha256=(oe,ge,Le,V,Qe,_t,rt,At,Er,mt)=>(_._crypto_pwhash_scryptsalsa208sha256=te.uj)(oe,ge,Le,V,Qe,_t,rt,At,Er,mt),_._crypto_pwhash_scryptsalsa208sha256_str=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_pwhash_scryptsalsa208sha256_str=te.vj)(oe,ge,Le,V,Qe,_t,rt),_._crypto_pwhash_scryptsalsa208sha256_str_verify=(oe,ge,Le,V)=>(_._crypto_pwhash_scryptsalsa208sha256_str_verify=te.wj)(oe,ge,Le,V),_._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=(oe,ge,Le,V)=>(_._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=te.xj)(oe,ge,Le,V),_._crypto_scalarmult_ed25519=(oe,ge,Le)=>(_._crypto_scalarmult_ed25519=te.yj)(oe,ge,Le),_._crypto_scalarmult_ed25519_noclamp=(oe,ge,Le)=>(_._crypto_scalarmult_ed25519_noclamp=te.zj)(oe,ge,Le),_._crypto_scalarmult_ed25519_base=(oe,ge)=>(_._crypto_scalarmult_ed25519_base=te.Aj)(oe,ge),_._crypto_scalarmult_ed25519_base_noclamp=(oe,ge)=>(_._crypto_scalarmult_ed25519_base_noclamp=te.Bj)(oe,ge),_._crypto_scalarmult_ed25519_bytes=()=>(_._crypto_scalarmult_ed25519_bytes=te.Cj)(),_._crypto_scalarmult_ed25519_scalarbytes=()=>(_._crypto_scalarmult_ed25519_scalarbytes=te.Dj)(),_._crypto_scalarmult_ristretto255=(oe,ge,Le)=>(_._crypto_scalarmult_ristretto255=te.Ej)(oe,ge,Le),_._crypto_scalarmult_ristretto255_base=(oe,ge)=>(_._crypto_scalarmult_ristretto255_base=te.Fj)(oe,ge),_._crypto_scalarmult_ristretto255_bytes=()=>(_._crypto_scalarmult_ristretto255_bytes=te.Gj)(),_._crypto_scalarmult_ristretto255_scalarbytes=()=>(_._crypto_scalarmult_ristretto255_scalarbytes=te.Hj)(),_._crypto_secretbox_xchacha20poly1305_detached=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_secretbox_xchacha20poly1305_detached=te.Ij)(oe,ge,Le,V,Qe,_t,rt),_._crypto_secretbox_xchacha20poly1305_easy=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_xchacha20poly1305_easy=te.Jj)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_xchacha20poly1305_open_detached=(oe,ge,Le,V,Qe,_t,rt)=>(_._crypto_secretbox_xchacha20poly1305_open_detached=te.Kj)(oe,ge,Le,V,Qe,_t,rt),_._crypto_secretbox_xchacha20poly1305_open_easy=(oe,ge,Le,V,Qe,_t)=>(_._crypto_secretbox_xchacha20poly1305_open_easy=te.Lj)(oe,ge,Le,V,Qe,_t),_._crypto_secretbox_xchacha20poly1305_keybytes=()=>(_._crypto_secretbox_xchacha20poly1305_keybytes=te.Mj)(),_._crypto_secretbox_xchacha20poly1305_noncebytes=()=>(_._crypto_secretbox_xchacha20poly1305_noncebytes=te.Nj)(),_._crypto_secretbox_xchacha20poly1305_macbytes=()=>(_._crypto_secretbox_xchacha20poly1305_macbytes=te.Oj)(),_._crypto_secretbox_xchacha20poly1305_messagebytes_max=()=>(_._crypto_secretbox_xchacha20poly1305_messagebytes_max=te.Pj)(),_._crypto_shorthash_siphashx24_bytes=()=>(_._crypto_shorthash_siphashx24_bytes=te.Qj)(),_._crypto_shorthash_siphashx24_keybytes=()=>(_._crypto_shorthash_siphashx24_keybytes=te.Rj)(),_._crypto_shorthash_siphashx24=(oe,ge,Le,V,Qe)=>(_._crypto_shorthash_siphashx24=te.Sj)(oe,ge,Le,V,Qe),_._crypto_stream_salsa2012=(oe,ge,Le,V,Qe)=>(_._crypto_stream_salsa2012=te.Tj)(oe,ge,Le,V,Qe),_._crypto_stream_salsa2012_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_salsa2012_xor=te.Uj)(oe,ge,Le,V,Qe,_t),_._crypto_stream_salsa2012_keybytes=()=>(_._crypto_stream_salsa2012_keybytes=te.Vj)(),_._crypto_stream_salsa2012_noncebytes=()=>(_._crypto_stream_salsa2012_noncebytes=te.Wj)(),_._crypto_stream_salsa2012_messagebytes_max=()=>(_._crypto_stream_salsa2012_messagebytes_max=te.Xj)(),_._crypto_stream_salsa2012_keygen=oe=>(_._crypto_stream_salsa2012_keygen=te.Yj)(oe),_._crypto_stream_salsa208=(oe,ge,Le,V,Qe)=>(_._crypto_stream_salsa208=te.Zj)(oe,ge,Le,V,Qe),_._crypto_stream_salsa208_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_salsa208_xor=te._j)(oe,ge,Le,V,Qe,_t),_._crypto_stream_salsa208_keybytes=()=>(_._crypto_stream_salsa208_keybytes=te.$j)(),_._crypto_stream_salsa208_noncebytes=()=>(_._crypto_stream_salsa208_noncebytes=te.ak)(),_._crypto_stream_salsa208_messagebytes_max=()=>(_._crypto_stream_salsa208_messagebytes_max=te.bk)(),_._crypto_stream_salsa208_keygen=oe=>(_._crypto_stream_salsa208_keygen=te.ck)(oe),_._crypto_stream_xchacha20_keybytes=()=>(_._crypto_stream_xchacha20_keybytes=te.dk)(),_._crypto_stream_xchacha20_noncebytes=()=>(_._crypto_stream_xchacha20_noncebytes=te.ek)(),_._crypto_stream_xchacha20_messagebytes_max=()=>(_._crypto_stream_xchacha20_messagebytes_max=te.fk)(),_._crypto_stream_xchacha20=(oe,ge,Le,V,Qe)=>(_._crypto_stream_xchacha20=te.gk)(oe,ge,Le,V,Qe),_._crypto_stream_xchacha20_xor_ic=(oe,ge,Le,V,Qe,_t,rt,At)=>(_._crypto_stream_xchacha20_xor_ic=te.hk)(oe,ge,Le,V,Qe,_t,rt,At),_._crypto_stream_xchacha20_xor=(oe,ge,Le,V,Qe,_t)=>(_._crypto_stream_xchacha20_xor=te.ik)(oe,ge,Le,V,Qe,_t),_._crypto_stream_xchacha20_keygen=oe=>(_._crypto_stream_xchacha20_keygen=te.jk)(oe),_._malloc=oe=>(_._malloc=te.kk)(oe),_._free=oe=>(_._free=te.lk)(oe),_.setValue=function(oe,ge,Le="i8"){switch(Le.endsWith("*")&&(Le="*"),Le){case"i1":case"i8":ce[oe]=ge;break;case"i16":pe[oe>>1]=ge;break;case"i32":ae[oe>>2]=ge;break;case"i64":u("to do setValue(i64) use WASM_BIGINT");case"float":se[oe>>2]=ge;break;case"double":O[oe>>3]=ge;break;case"*":W[oe>>2]=ge;break;default:u(`invalid type for setValue: ${Le}`)}},_.getValue=function(oe,ge="i8"){switch(ge.endsWith("*")&&(ge="*"),ge){case"i1":case"i8":return ce[oe];case"i16":return pe[oe>>1];case"i32":return ae[oe>>2];case"i64":u("to do getValue(i64) use WASM_BIGINT");case"float":return se[oe>>2];case"double":return O[oe>>3];case"*":return W[oe>>2];default:u(`invalid type for getValue: ${ge}`)}},_.UTF8ToString=Re,R=function oe(){$e||Ue(),$e||(R=oe)},_.preInit)for(typeof _.preInit=="function"&&(_.preInit=[_.preInit]);_.preInit.length>0;)_.preInit.pop()();Ue()})).catch((function(){return o.useBackupModule()})),i}typeof define=="function"&&define.amd?define(["exports"],t):typeof dP=="object"&&typeof dP.nodeName!="string"?t(dP):e.libsodium=t(e.libsodium_mod||(e.commonJsStrict={}))})(dP)});var Oet=ir(lP=>{"use strict";J();K();z();(function(e){function t(i,n){"use strict";var o,d="uint8array",g=n.ready.then((function(){function Te(){if(o._sodium_init()!==0)throw new Error("libsodium was not correctly initialized.");for(var tt=["crypto_aead_aegis128l_decrypt","crypto_aead_aegis128l_decrypt_detached","crypto_aead_aegis128l_encrypt","crypto_aead_aegis128l_encrypt_detached","crypto_aead_aegis128l_keygen","crypto_aead_aegis256_decrypt","crypto_aead_aegis256_decrypt_detached","crypto_aead_aegis256_encrypt","crypto_aead_aegis256_encrypt_detached","crypto_aead_aegis256_keygen","crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512256","crypto_auth_hmacsha512256_final","crypto_auth_hmacsha512256_init","crypto_auth_hmacsha512256_keygen","crypto_auth_hmacsha512256_update","crypto_auth_hmacsha512256_verify","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_beforenm","crypto_box_curve25519xchacha20poly1305_detached","crypto_box_curve25519xchacha20poly1305_detached_afternm","crypto_box_curve25519xchacha20poly1305_easy","crypto_box_curve25519xchacha20poly1305_easy_afternm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_open_detached","crypto_box_curve25519xchacha20poly1305_open_detached_afternm","crypto_box_curve25519xchacha20poly1305_open_easy","crypto_box_curve25519xchacha20poly1305_open_easy_afternm","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_curve25519xchacha20poly1305_seed_keypair","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],vt=[se,O,s,l,A,m,E,w,x,R,u,C,U,F,X,Ae,he,$e,Ge,Re,Se,ct,ze,te,Ue,oe,ge,Le,V,Qe,_t,rt,At,Er,mt,Ht,zr,ve,ie,_e,Be,Ze,$t,at,zt,Hr,St,Yt,qr,tr,hr,Cn,er,pr,mn,Xt,dr,wn,Qt,fr,In,jt,ar,ht,Xe,et,ue,je,be,qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a,S,sn,Lr,Wr,ln,yt,ot,lt,gt,Ie,Zt,Ir,$,Qr,en,xr,Mi,oo,ho,Tr,jo,ka,wo,Fo,Ar,Pa,Hu,vs,Iu,Cu,wu,l0,Ed,vd,Et,XQ,ZQ,J5,z5,Ah,jQ,eH,I8,K5,tH,rH,nH,sM,iH,cM,uM,h0,oH,aH,sH,GS,dM,cH,uH,$5,fM,C8,Ll,Gu,Y5,lM,dv,hM,$2,qS,dH,fH,L0,Y2,AM,fv,Rd,w1,pM,lH,hH,W2,AH,My,gM,pH,gH,_M,X2,lv,mM,_H,mH,w8,yM,yH,Sd,bH,EH,vH,mc,un,RH,bM,vg,SH,yc,Z2],sr=0;sr<vt.length;sr++)typeof o["_"+tt[sr]]=="function"&&(i[tt[sr]]=vt[sr]);var mr=["SODIUM_LIBRARY_VERSION_MAJOR","SODIUM_LIBRARY_VERSION_MINOR","crypto_aead_aegis128l_ABYTES","crypto_aead_aegis128l_KEYBYTES","crypto_aead_aegis128l_MESSAGEBYTES_MAX","crypto_aead_aegis128l_NPUBBYTES","crypto_aead_aegis128l_NSECBYTES","crypto_aead_aegis256_ABYTES","crypto_aead_aegis256_KEYBYTES","crypto_aead_aegis256_MESSAGEBYTES_MAX","crypto_aead_aegis256_NPUBBYTES","crypto_aead_aegis256_NSECBYTES","crypto_aead_aes256gcm_ABYTES","crypto_aead_aes256gcm_KEYBYTES","crypto_aead_aes256gcm_MESSAGEBYTES_MAX","crypto_aead_aes256gcm_NPUBBYTES","crypto_aead_aes256gcm_NSECBYTES","crypto_aead_chacha20poly1305_ABYTES","crypto_aead_chacha20poly1305_IETF_ABYTES","crypto_aead_chacha20poly1305_IETF_KEYBYTES","crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_IETF_NPUBBYTES","crypto_aead_chacha20poly1305_IETF_NSECBYTES","crypto_aead_chacha20poly1305_KEYBYTES","crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_NPUBBYTES","crypto_aead_chacha20poly1305_NSECBYTES","crypto_aead_chacha20poly1305_ietf_ABYTES","crypto_aead_chacha20poly1305_ietf_KEYBYTES","crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_ietf_NPUBBYTES","crypto_aead_chacha20poly1305_ietf_NSECBYTES","crypto_aead_xchacha20poly1305_IETF_ABYTES","crypto_aead_xchacha20poly1305_IETF_KEYBYTES","crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_IETF_NPUBBYTES","crypto_aead_xchacha20poly1305_IETF_NSECBYTES","crypto_aead_xchacha20poly1305_ietf_ABYTES","crypto_aead_xchacha20poly1305_ietf_KEYBYTES","crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_ietf_NPUBBYTES","crypto_aead_xchacha20poly1305_ietf_NSECBYTES","crypto_auth_BYTES","crypto_auth_KEYBYTES","crypto_auth_hmacsha256_BYTES","crypto_auth_hmacsha256_KEYBYTES","crypto_auth_hmacsha512256_BYTES","crypto_auth_hmacsha512256_KEYBYTES","crypto_auth_hmacsha512_BYTES","crypto_auth_hmacsha512_KEYBYTES","crypto_box_BEFORENMBYTES","crypto_box_MACBYTES","crypto_box_MESSAGEBYTES_MAX","crypto_box_NONCEBYTES","crypto_box_PUBLICKEYBYTES","crypto_box_SEALBYTES","crypto_box_SECRETKEYBYTES","crypto_box_SEEDBYTES","crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES","crypto_box_curve25519xchacha20poly1305_MACBYTES","crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xchacha20poly1305_NONCEBYTES","crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEALBYTES","crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEEDBYTES","crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES","crypto_box_curve25519xsalsa20poly1305_MACBYTES","crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xsalsa20poly1305_NONCEBYTES","crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SEEDBYTES","crypto_core_ed25519_BYTES","crypto_core_ed25519_HASHBYTES","crypto_core_ed25519_NONREDUCEDSCALARBYTES","crypto_core_ed25519_SCALARBYTES","crypto_core_ed25519_UNIFORMBYTES","crypto_core_hchacha20_CONSTBYTES","crypto_core_hchacha20_INPUTBYTES","crypto_core_hchacha20_KEYBYTES","crypto_core_hchacha20_OUTPUTBYTES","crypto_core_hsalsa20_CONSTBYTES","crypto_core_hsalsa20_INPUTBYTES","crypto_core_hsalsa20_KEYBYTES","crypto_core_hsalsa20_OUTPUTBYTES","crypto_core_ristretto255_BYTES","crypto_core_ristretto255_HASHBYTES","crypto_core_ristretto255_NONREDUCEDSCALARBYTES","crypto_core_ristretto255_SCALARBYTES","crypto_core_salsa2012_CONSTBYTES","crypto_core_salsa2012_INPUTBYTES","crypto_core_salsa2012_KEYBYTES","crypto_core_salsa2012_OUTPUTBYTES","crypto_core_salsa208_CONSTBYTES","crypto_core_salsa208_INPUTBYTES","crypto_core_salsa208_KEYBYTES","crypto_core_salsa208_OUTPUTBYTES","crypto_core_salsa20_CONSTBYTES","crypto_core_salsa20_INPUTBYTES","crypto_core_salsa20_KEYBYTES","crypto_core_salsa20_OUTPUTBYTES","crypto_generichash_BYTES","crypto_generichash_BYTES_MAX","crypto_generichash_BYTES_MIN","crypto_generichash_KEYBYTES","crypto_generichash_KEYBYTES_MAX","crypto_generichash_KEYBYTES_MIN","crypto_generichash_blake2b_BYTES","crypto_generichash_blake2b_BYTES_MAX","crypto_generichash_blake2b_BYTES_MIN","crypto_generichash_blake2b_KEYBYTES","crypto_generichash_blake2b_KEYBYTES_MAX","crypto_generichash_blake2b_KEYBYTES_MIN","crypto_generichash_blake2b_PERSONALBYTES","crypto_generichash_blake2b_SALTBYTES","crypto_hash_BYTES","crypto_hash_sha256_BYTES","crypto_hash_sha512_BYTES","crypto_kdf_BYTES_MAX","crypto_kdf_BYTES_MIN","crypto_kdf_CONTEXTBYTES","crypto_kdf_KEYBYTES","crypto_kdf_blake2b_BYTES_MAX","crypto_kdf_blake2b_BYTES_MIN","crypto_kdf_blake2b_CONTEXTBYTES","crypto_kdf_blake2b_KEYBYTES","crypto_kdf_hkdf_sha256_BYTES_MAX","crypto_kdf_hkdf_sha256_BYTES_MIN","crypto_kdf_hkdf_sha256_KEYBYTES","crypto_kdf_hkdf_sha512_BYTES_MAX","crypto_kdf_hkdf_sha512_BYTES_MIN","crypto_kdf_hkdf_sha512_KEYBYTES","crypto_kx_PUBLICKEYBYTES","crypto_kx_SECRETKEYBYTES","crypto_kx_SEEDBYTES","crypto_kx_SESSIONKEYBYTES","crypto_onetimeauth_BYTES","crypto_onetimeauth_KEYBYTES","crypto_onetimeauth_poly1305_BYTES","crypto_onetimeauth_poly1305_KEYBYTES","crypto_pwhash_ALG_ARGON2I13","crypto_pwhash_ALG_ARGON2ID13","crypto_pwhash_ALG_DEFAULT","crypto_pwhash_BYTES_MAX","crypto_pwhash_BYTES_MIN","crypto_pwhash_MEMLIMIT_INTERACTIVE","crypto_pwhash_MEMLIMIT_MAX","crypto_pwhash_MEMLIMIT_MIN","crypto_pwhash_MEMLIMIT_MODERATE","crypto_pwhash_MEMLIMIT_SENSITIVE","crypto_pwhash_OPSLIMIT_INTERACTIVE","crypto_pwhash_OPSLIMIT_MAX","crypto_pwhash_OPSLIMIT_MIN","crypto_pwhash_OPSLIMIT_MODERATE","crypto_pwhash_OPSLIMIT_SENSITIVE","crypto_pwhash_PASSWD_MAX","crypto_pwhash_PASSWD_MIN","crypto_pwhash_SALTBYTES","crypto_pwhash_STRBYTES","crypto_pwhash_argon2i_BYTES_MAX","crypto_pwhash_argon2i_BYTES_MIN","crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2i_MEMLIMIT_MAX","crypto_pwhash_argon2i_MEMLIMIT_MIN","crypto_pwhash_argon2i_MEMLIMIT_MODERATE","crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2i_OPSLIMIT_MAX","crypto_pwhash_argon2i_OPSLIMIT_MIN","crypto_pwhash_argon2i_OPSLIMIT_MODERATE","crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2i_PASSWD_MAX","crypto_pwhash_argon2i_PASSWD_MIN","crypto_pwhash_argon2i_SALTBYTES","crypto_pwhash_argon2i_STRBYTES","crypto_pwhash_argon2id_BYTES_MAX","crypto_pwhash_argon2id_BYTES_MIN","crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2id_MEMLIMIT_MAX","crypto_pwhash_argon2id_MEMLIMIT_MIN","crypto_pwhash_argon2id_MEMLIMIT_MODERATE","crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2id_OPSLIMIT_MAX","crypto_pwhash_argon2id_OPSLIMIT_MIN","crypto_pwhash_argon2id_OPSLIMIT_MODERATE","crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2id_PASSWD_MAX","crypto_pwhash_argon2id_PASSWD_MIN","crypto_pwhash_argon2id_SALTBYTES","crypto_pwhash_argon2id_STRBYTES","crypto_pwhash_scryptsalsa208sha256_BYTES_MAX","crypto_pwhash_scryptsalsa208sha256_BYTES_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX","crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN","crypto_pwhash_scryptsalsa208sha256_SALTBYTES","crypto_pwhash_scryptsalsa208sha256_STRBYTES","crypto_scalarmult_BYTES","crypto_scalarmult_SCALARBYTES","crypto_scalarmult_curve25519_BYTES","crypto_scalarmult_curve25519_SCALARBYTES","crypto_scalarmult_ed25519_BYTES","crypto_scalarmult_ed25519_SCALARBYTES","crypto_scalarmult_ristretto255_BYTES","crypto_scalarmult_ristretto255_SCALARBYTES","crypto_secretbox_KEYBYTES","crypto_secretbox_MACBYTES","crypto_secretbox_MESSAGEBYTES_MAX","crypto_secretbox_NONCEBYTES","crypto_secretbox_xchacha20poly1305_KEYBYTES","crypto_secretbox_xchacha20poly1305_MACBYTES","crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xchacha20poly1305_NONCEBYTES","crypto_secretbox_xsalsa20poly1305_KEYBYTES","crypto_secretbox_xsalsa20poly1305_MACBYTES","crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xsalsa20poly1305_NONCEBYTES","crypto_secretstream_xchacha20poly1305_ABYTES","crypto_secretstream_xchacha20poly1305_HEADERBYTES","crypto_secretstream_xchacha20poly1305_KEYBYTES","crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretstream_xchacha20poly1305_TAG_FINAL","crypto_secretstream_xchacha20poly1305_TAG_MESSAGE","crypto_secretstream_xchacha20poly1305_TAG_PUSH","crypto_secretstream_xchacha20poly1305_TAG_REKEY","crypto_shorthash_BYTES","crypto_shorthash_KEYBYTES","crypto_shorthash_siphash24_BYTES","crypto_shorthash_siphash24_KEYBYTES","crypto_shorthash_siphashx24_BYTES","crypto_shorthash_siphashx24_KEYBYTES","crypto_sign_BYTES","crypto_sign_MESSAGEBYTES_MAX","crypto_sign_PUBLICKEYBYTES","crypto_sign_SECRETKEYBYTES","crypto_sign_SEEDBYTES","crypto_sign_ed25519_BYTES","crypto_sign_ed25519_MESSAGEBYTES_MAX","crypto_sign_ed25519_PUBLICKEYBYTES","crypto_sign_ed25519_SECRETKEYBYTES","crypto_sign_ed25519_SEEDBYTES","crypto_stream_KEYBYTES","crypto_stream_MESSAGEBYTES_MAX","crypto_stream_NONCEBYTES","crypto_stream_chacha20_IETF_KEYBYTES","crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX","crypto_stream_chacha20_IETF_NONCEBYTES","crypto_stream_chacha20_KEYBYTES","crypto_stream_chacha20_MESSAGEBYTES_MAX","crypto_stream_chacha20_NONCEBYTES","crypto_stream_chacha20_ietf_KEYBYTES","crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX","crypto_stream_chacha20_ietf_NONCEBYTES","crypto_stream_salsa2012_KEYBYTES","crypto_stream_salsa2012_MESSAGEBYTES_MAX","crypto_stream_salsa2012_NONCEBYTES","crypto_stream_salsa208_KEYBYTES","crypto_stream_salsa208_MESSAGEBYTES_MAX","crypto_stream_salsa208_NONCEBYTES","crypto_stream_salsa20_KEYBYTES","crypto_stream_salsa20_MESSAGEBYTES_MAX","crypto_stream_salsa20_NONCEBYTES","crypto_stream_xchacha20_KEYBYTES","crypto_stream_xchacha20_MESSAGEBYTES_MAX","crypto_stream_xchacha20_NONCEBYTES","crypto_stream_xsalsa20_KEYBYTES","crypto_stream_xsalsa20_MESSAGEBYTES_MAX","crypto_stream_xsalsa20_NONCEBYTES","crypto_verify_16_BYTES","crypto_verify_32_BYTES","crypto_verify_64_BYTES"];for(sr=0;sr<mr.length;sr++)typeof(Fr=o["_"+mr[sr].toLowerCase()])=="function"&&(i[mr[sr]]=Fr());var wr=["SODIUM_VERSION_STRING","crypto_pwhash_STRPREFIX","crypto_pwhash_argon2i_STRPREFIX","crypto_pwhash_argon2id_STRPREFIX","crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];for(sr=0;sr<wr.length;sr++){var Fr;typeof(Fr=o["_"+wr[sr].toLowerCase()])=="function"&&(i[wr[sr]]=o.UTF8ToString(Fr()))}}o=n;try{Te();var Fe=new Uint8Array([98,97,108,108,115]),Pe=i.randombytes_buf(i.crypto_secretbox_NONCEBYTES),Oe=i.randombytes_buf(i.crypto_secretbox_KEYBYTES),He=i.crypto_secretbox_easy(Fe,Pe,Oe),st=i.crypto_secretbox_open_easy(He,Pe,Oe);if(i.memcmp(Fe,st))return}catch(tt){if(o.useBackupModule==null)throw new Error("Both wasm and asm failed to load"+tt)}o.useBackupModule(),Te()}));function y(Te){if(typeof TextEncoder=="function")return new TextEncoder().encode(Te);Te=unescape(encodeURIComponent(Te));for(var Fe=new Uint8Array(Te.length),Pe=0,Oe=Te.length;Pe<Oe;Pe++)Fe[Pe]=Te.charCodeAt(Pe);return Fe}function _(Te){if(typeof TextDecoder=="function")return new TextDecoder("utf-8",{fatal:!0}).decode(Te);var Fe=8192,Pe=Math.ceil(Te.length/Fe);if(Pe<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,Te)))}catch{throw new TypeError("The encoded data was not valid.")}for(var Oe="",He=0,st=0;st<Pe;st++){var tt=Array.prototype.slice.call(Te,st*Fe+He,(st+1)*Fe+He);if(tt.length!=0){var vt,sr=tt.length,mr=0;do{var wr=tt[--sr];wr>=240?(mr=4,vt=!0):wr>=224?(mr=3,vt=!0):wr>=192?(mr=2,vt=!0):wr<128&&(mr=1,vt=!0)}while(!vt);for(var Fr=mr-(tt.length-sr),Vr=0;Vr<Fr;Vr++)He--,tt.pop();Oe+=_(tt)}}return Oe}function I(Te){Te=W(null,Te,"input");for(var Fe,Pe,Oe,He="",st=0;st<Te.length;st++)Oe=87+(Pe=15&Te[st])+(Pe-10>>8&-39)<<8|87+(Fe=Te[st]>>>4)+(Fe-10>>8&-39),He+=String.fromCharCode(255&Oe)+String.fromCharCode(Oe>>>8);return He}var N={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function T(Te){if(Te==null)return N.URLSAFE_NO_PADDING;if(Te!==N.ORIGINAL&&Te!==N.ORIGINAL_NO_PADDING&&Te!==N.URLSAFE&&Te!=N.URLSAFE_NO_PADDING)throw new Error("unsupported base64 variant");return Te}function M(Te,Fe){Fe=T(Fe),Te=W(Oe,Te,"input");var Pe,Oe=[],He=0|Math.floor(Te.length/3),st=Te.length-3*He,tt=4*He+(st!==0?2&Fe?2+(st>>>1):4:0),vt=new q(tt+1),sr=Y(Te);return Oe.push(sr),Oe.push(vt.address),o._sodium_bin2base64(vt.address,vt.length,sr,Te.length,Fe)===0&&le(Oe,"conversion failed"),vt.length=tt,Pe=_(vt.to_Uint8Array()),ce(Oe),Pe}function D(Te,Fe){var Pe=Fe||d;if(!P(Pe))throw new Error(Pe+" output format is not available");if(Te instanceof q){if(Pe==="uint8array")return Te.to_Uint8Array();if(Pe==="text")return _(Te.to_Uint8Array());if(Pe==="hex")return I(Te.to_Uint8Array());if(Pe==="base64")return M(Te.to_Uint8Array(),N.URLSAFE_NO_PADDING);throw new Error('What is output format "'+Pe+'"?')}if(typeof Te=="object"){for(var Oe=Object.keys(Te),He={},st=0;st<Oe.length;st++)He[Oe[st]]=D(Te[Oe[st]],Pe);return He}if(typeof Te=="string")return Te;throw new TypeError("Cannot format output")}function P(Te){for(var Fe=["uint8array","text","hex","base64"],Pe=0;Pe<Fe.length;Pe++)if(Fe[Pe]===Te)return!0;return!1}function G(Te){if(Te){if(typeof Te!="string")throw new TypeError("When defined, the output format must be a string");if(!P(Te))throw new Error(Te+" is not a supported output format")}}function q(Te){this.length=Te,this.address=ne(Te)}function Y(Te){var Fe=ne(Te.length);return o.HEAPU8.set(Te,Fe),Fe}function ne(Te){var Fe=o._malloc(Te);if(Fe===0)throw{message:"_malloc() failed",length:Te};return Fe}function ce(Te){if(Te)for(var Fe=0;Fe<Te.length;Fe++)Pe=Te[Fe],o._free(Pe);var Pe}function le(Te,Fe){throw ce(Te),new Error(Fe)}function pe(Te,Fe){throw ce(Te),new TypeError(Fe)}function ae(Te,Fe,Pe){Fe==null&&pe(Te,Pe+" cannot be null or undefined")}function W(Te,Fe,Pe){return ae(Te,Fe,Pe),Fe instanceof Uint8Array?Fe:typeof Fe=="string"?y(Fe):void pe(Te,"unsupported input type for "+Pe)}function se(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=null;Te!=null&&(vt=Y(Te=W(tt,Te,"secret_nonce")),Te.length,tt.push(vt)),Fe=W(tt,Fe,"ciphertext");var sr,mr=o._crypto_aead_aegis128l_abytes(),wr=Fe.length;wr<mr&&pe(tt,"ciphertext is too short"),sr=Y(Fe),tt.push(sr);var Fr=null,Vr=0;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"additional_data")),Vr=Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var on,On=0|o._crypto_aead_aegis128l_npubbytes();Oe.length!==On&&pe(tt,"invalid public_nonce length"),on=Y(Oe),tt.push(on),He=W(tt,He,"key");var Qn,bi=0|o._crypto_aead_aegis128l_keybytes();He.length!==bi&&pe(tt,"invalid key length"),Qn=Y(He),tt.push(Qn);var ci=new q(wr-o._crypto_aead_aegis128l_abytes()|0),qi=ci.address;if(tt.push(qi),o._crypto_aead_aegis128l_decrypt(qi,null,vt,sr,wr,0,Fr,Vr,0,on,Qn)===0){var ea=D(ci,st);return ce(tt),ea}le(tt,"ciphertext cannot be decrypted using that key")}function O(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt);var sr=null;Te!=null&&(sr=Y(Te=W(vt,Te,"secret_nonce")),Te.length,vt.push(sr));var mr=Y(Fe=W(vt,Fe,"ciphertext")),wr=Fe.length;vt.push(mr),Pe=W(vt,Pe,"mac");var Fr,Vr=0|o._crypto_box_macbytes();Pe.length!==Vr&&pe(vt,"invalid mac length"),Fr=Y(Pe),vt.push(Fr);var on=null,On=0;Oe!=null&&(on=Y(Oe=W(vt,Oe,"additional_data")),On=Oe.length,vt.push(on)),He=W(vt,He,"public_nonce");var Qn,bi=0|o._crypto_aead_aegis128l_npubbytes();He.length!==bi&&pe(vt,"invalid public_nonce length"),Qn=Y(He),vt.push(Qn),st=W(vt,st,"key");var ci,qi=0|o._crypto_aead_aegis128l_keybytes();st.length!==qi&&pe(vt,"invalid key length"),ci=Y(st),vt.push(ci);var ea=new q(0|wr),ya=ea.address;if(vt.push(ya),o._crypto_aead_aegis128l_decrypt_detached(ya,sr,mr,wr,0,Fr,on,On,0,Qn,ci)===0){var Ul=D(ea,tt);return ce(vt),Ul}le(vt,"ciphertext cannot be decrypted using that key")}function s(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_aegis128l_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_aegis128l_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(sr+o._crypto_aead_aegis128l_abytes()|0),ci=bi.address;if(tt.push(ci),o._crypto_aead_aegis128l_encrypt(ci,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var qi=D(bi,st);return ce(tt),qi}le(tt,"invalid usage")}function l(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_aegis128l_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_aegis128l_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(0|sr),ci=bi.address;tt.push(ci);var qi=new q(0|o._crypto_aead_aegis128l_abytes()),ea=qi.address;if(tt.push(ea),o._crypto_aead_aegis128l_encrypt_detached(ci,ea,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var ya=D({ciphertext:bi,mac:qi},st);return ce(tt),ya}le(tt,"invalid usage")}function A(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_aead_aegis128l_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_aead_aegis128l_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function m(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=null;Te!=null&&(vt=Y(Te=W(tt,Te,"secret_nonce")),Te.length,tt.push(vt)),Fe=W(tt,Fe,"ciphertext");var sr,mr=o._crypto_aead_aegis256_abytes(),wr=Fe.length;wr<mr&&pe(tt,"ciphertext is too short"),sr=Y(Fe),tt.push(sr);var Fr=null,Vr=0;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"additional_data")),Vr=Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var on,On=0|o._crypto_aead_aegis256_npubbytes();Oe.length!==On&&pe(tt,"invalid public_nonce length"),on=Y(Oe),tt.push(on),He=W(tt,He,"key");var Qn,bi=0|o._crypto_aead_aegis256_keybytes();He.length!==bi&&pe(tt,"invalid key length"),Qn=Y(He),tt.push(Qn);var ci=new q(wr-o._crypto_aead_aegis256_abytes()|0),qi=ci.address;if(tt.push(qi),o._crypto_aead_aegis256_decrypt(qi,null,vt,sr,wr,0,Fr,Vr,0,on,Qn)===0){var ea=D(ci,st);return ce(tt),ea}le(tt,"ciphertext cannot be decrypted using that key")}function E(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt);var sr=null;Te!=null&&(sr=Y(Te=W(vt,Te,"secret_nonce")),Te.length,vt.push(sr));var mr=Y(Fe=W(vt,Fe,"ciphertext")),wr=Fe.length;vt.push(mr),Pe=W(vt,Pe,"mac");var Fr,Vr=0|o._crypto_box_macbytes();Pe.length!==Vr&&pe(vt,"invalid mac length"),Fr=Y(Pe),vt.push(Fr);var on=null,On=0;Oe!=null&&(on=Y(Oe=W(vt,Oe,"additional_data")),On=Oe.length,vt.push(on)),He=W(vt,He,"public_nonce");var Qn,bi=0|o._crypto_aead_aegis256_npubbytes();He.length!==bi&&pe(vt,"invalid public_nonce length"),Qn=Y(He),vt.push(Qn),st=W(vt,st,"key");var ci,qi=0|o._crypto_aead_aegis256_keybytes();st.length!==qi&&pe(vt,"invalid key length"),ci=Y(st),vt.push(ci);var ea=new q(0|wr),ya=ea.address;if(vt.push(ya),o._crypto_aead_aegis256_decrypt_detached(ya,sr,mr,wr,0,Fr,on,On,0,Qn,ci)===0){var Ul=D(ea,tt);return ce(vt),Ul}le(vt,"ciphertext cannot be decrypted using that key")}function w(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_aegis256_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_aegis256_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(sr+o._crypto_aead_aegis256_abytes()|0),ci=bi.address;if(tt.push(ci),o._crypto_aead_aegis256_encrypt(ci,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var qi=D(bi,st);return ce(tt),qi}le(tt,"invalid usage")}function x(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_aegis256_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_aegis256_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(0|sr),ci=bi.address;tt.push(ci);var qi=new q(0|o._crypto_aead_aegis256_abytes()),ea=qi.address;if(tt.push(ea),o._crypto_aead_aegis256_encrypt_detached(ci,ea,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var ya=D({ciphertext:bi,mac:qi},st);return ce(tt),ya}le(tt,"invalid usage")}function R(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_aead_aegis256_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_aead_aegis256_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function u(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=null;Te!=null&&(vt=Y(Te=W(tt,Te,"secret_nonce")),Te.length,tt.push(vt)),Fe=W(tt,Fe,"ciphertext");var sr,mr=o._crypto_aead_chacha20poly1305_abytes(),wr=Fe.length;wr<mr&&pe(tt,"ciphertext is too short"),sr=Y(Fe),tt.push(sr);var Fr=null,Vr=0;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"additional_data")),Vr=Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var on,On=0|o._crypto_aead_chacha20poly1305_npubbytes();Oe.length!==On&&pe(tt,"invalid public_nonce length"),on=Y(Oe),tt.push(on),He=W(tt,He,"key");var Qn,bi=0|o._crypto_aead_chacha20poly1305_keybytes();He.length!==bi&&pe(tt,"invalid key length"),Qn=Y(He),tt.push(Qn);var ci=new q(wr-o._crypto_aead_chacha20poly1305_abytes()|0),qi=ci.address;if(tt.push(qi),o._crypto_aead_chacha20poly1305_decrypt(qi,null,vt,sr,wr,0,Fr,Vr,0,on,Qn)===0){var ea=D(ci,st);return ce(tt),ea}le(tt,"ciphertext cannot be decrypted using that key")}function C(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt);var sr=null;Te!=null&&(sr=Y(Te=W(vt,Te,"secret_nonce")),Te.length,vt.push(sr));var mr=Y(Fe=W(vt,Fe,"ciphertext")),wr=Fe.length;vt.push(mr),Pe=W(vt,Pe,"mac");var Fr,Vr=0|o._crypto_box_macbytes();Pe.length!==Vr&&pe(vt,"invalid mac length"),Fr=Y(Pe),vt.push(Fr);var on=null,On=0;Oe!=null&&(on=Y(Oe=W(vt,Oe,"additional_data")),On=Oe.length,vt.push(on)),He=W(vt,He,"public_nonce");var Qn,bi=0|o._crypto_aead_chacha20poly1305_npubbytes();He.length!==bi&&pe(vt,"invalid public_nonce length"),Qn=Y(He),vt.push(Qn),st=W(vt,st,"key");var ci,qi=0|o._crypto_aead_chacha20poly1305_keybytes();st.length!==qi&&pe(vt,"invalid key length"),ci=Y(st),vt.push(ci);var ea=new q(0|wr),ya=ea.address;if(vt.push(ya),o._crypto_aead_chacha20poly1305_decrypt_detached(ya,sr,mr,wr,0,Fr,on,On,0,Qn,ci)===0){var Ul=D(ea,tt);return ce(vt),Ul}le(vt,"ciphertext cannot be decrypted using that key")}function U(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_chacha20poly1305_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_chacha20poly1305_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(sr+o._crypto_aead_chacha20poly1305_abytes()|0),ci=bi.address;if(tt.push(ci),o._crypto_aead_chacha20poly1305_encrypt(ci,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var qi=D(bi,st);return ce(tt),qi}le(tt,"invalid usage")}function F(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_chacha20poly1305_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_chacha20poly1305_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(0|sr),ci=bi.address;tt.push(ci);var qi=new q(0|o._crypto_aead_chacha20poly1305_abytes()),ea=qi.address;if(tt.push(ea),o._crypto_aead_chacha20poly1305_encrypt_detached(ci,ea,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var ya=D({ciphertext:bi,mac:qi},st);return ce(tt),ya}le(tt,"invalid usage")}function X(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=null;Te!=null&&(vt=Y(Te=W(tt,Te,"secret_nonce")),Te.length,tt.push(vt)),Fe=W(tt,Fe,"ciphertext");var sr,mr=o._crypto_aead_chacha20poly1305_ietf_abytes(),wr=Fe.length;wr<mr&&pe(tt,"ciphertext is too short"),sr=Y(Fe),tt.push(sr);var Fr=null,Vr=0;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"additional_data")),Vr=Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var on,On=0|o._crypto_aead_chacha20poly1305_ietf_npubbytes();Oe.length!==On&&pe(tt,"invalid public_nonce length"),on=Y(Oe),tt.push(on),He=W(tt,He,"key");var Qn,bi=0|o._crypto_aead_chacha20poly1305_ietf_keybytes();He.length!==bi&&pe(tt,"invalid key length"),Qn=Y(He),tt.push(Qn);var ci=new q(wr-o._crypto_aead_chacha20poly1305_ietf_abytes()|0),qi=ci.address;if(tt.push(qi),o._crypto_aead_chacha20poly1305_ietf_decrypt(qi,null,vt,sr,wr,0,Fr,Vr,0,on,Qn)===0){var ea=D(ci,st);return ce(tt),ea}le(tt,"ciphertext cannot be decrypted using that key")}function Ae(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt);var sr=null;Te!=null&&(sr=Y(Te=W(vt,Te,"secret_nonce")),Te.length,vt.push(sr));var mr=Y(Fe=W(vt,Fe,"ciphertext")),wr=Fe.length;vt.push(mr),Pe=W(vt,Pe,"mac");var Fr,Vr=0|o._crypto_box_macbytes();Pe.length!==Vr&&pe(vt,"invalid mac length"),Fr=Y(Pe),vt.push(Fr);var on=null,On=0;Oe!=null&&(on=Y(Oe=W(vt,Oe,"additional_data")),On=Oe.length,vt.push(on)),He=W(vt,He,"public_nonce");var Qn,bi=0|o._crypto_aead_chacha20poly1305_ietf_npubbytes();He.length!==bi&&pe(vt,"invalid public_nonce length"),Qn=Y(He),vt.push(Qn),st=W(vt,st,"key");var ci,qi=0|o._crypto_aead_chacha20poly1305_ietf_keybytes();st.length!==qi&&pe(vt,"invalid key length"),ci=Y(st),vt.push(ci);var ea=new q(0|wr),ya=ea.address;if(vt.push(ya),o._crypto_aead_chacha20poly1305_ietf_decrypt_detached(ya,sr,mr,wr,0,Fr,on,On,0,Qn,ci)===0){var Ul=D(ea,tt);return ce(vt),Ul}le(vt,"ciphertext cannot be decrypted using that key")}function he(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_chacha20poly1305_ietf_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_chacha20poly1305_ietf_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(sr+o._crypto_aead_chacha20poly1305_ietf_abytes()|0),ci=bi.address;if(tt.push(ci),o._crypto_aead_chacha20poly1305_ietf_encrypt(ci,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var qi=D(bi,st);return ce(tt),qi}le(tt,"invalid usage")}function $e(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_chacha20poly1305_ietf_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_chacha20poly1305_ietf_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(0|sr),ci=bi.address;tt.push(ci);var qi=new q(0|o._crypto_aead_chacha20poly1305_ietf_abytes()),ea=qi.address;if(tt.push(ea),o._crypto_aead_chacha20poly1305_ietf_encrypt_detached(ci,ea,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var ya=D({ciphertext:bi,mac:qi},st);return ce(tt),ya}le(tt,"invalid usage")}function Ge(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_aead_chacha20poly1305_ietf_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_aead_chacha20poly1305_ietf_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function Re(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_aead_chacha20poly1305_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_aead_chacha20poly1305_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function Se(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=null;Te!=null&&(vt=Y(Te=W(tt,Te,"secret_nonce")),Te.length,tt.push(vt)),Fe=W(tt,Fe,"ciphertext");var sr,mr=o._crypto_aead_xchacha20poly1305_ietf_abytes(),wr=Fe.length;wr<mr&&pe(tt,"ciphertext is too short"),sr=Y(Fe),tt.push(sr);var Fr=null,Vr=0;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"additional_data")),Vr=Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var on,On=0|o._crypto_aead_xchacha20poly1305_ietf_npubbytes();Oe.length!==On&&pe(tt,"invalid public_nonce length"),on=Y(Oe),tt.push(on),He=W(tt,He,"key");var Qn,bi=0|o._crypto_aead_xchacha20poly1305_ietf_keybytes();He.length!==bi&&pe(tt,"invalid key length"),Qn=Y(He),tt.push(Qn);var ci=new q(wr-o._crypto_aead_xchacha20poly1305_ietf_abytes()|0),qi=ci.address;if(tt.push(qi),o._crypto_aead_xchacha20poly1305_ietf_decrypt(qi,null,vt,sr,wr,0,Fr,Vr,0,on,Qn)===0){var ea=D(ci,st);return ce(tt),ea}le(tt,"ciphertext cannot be decrypted using that key")}function ct(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt);var sr=null;Te!=null&&(sr=Y(Te=W(vt,Te,"secret_nonce")),Te.length,vt.push(sr));var mr=Y(Fe=W(vt,Fe,"ciphertext")),wr=Fe.length;vt.push(mr),Pe=W(vt,Pe,"mac");var Fr,Vr=0|o._crypto_box_macbytes();Pe.length!==Vr&&pe(vt,"invalid mac length"),Fr=Y(Pe),vt.push(Fr);var on=null,On=0;Oe!=null&&(on=Y(Oe=W(vt,Oe,"additional_data")),On=Oe.length,vt.push(on)),He=W(vt,He,"public_nonce");var Qn,bi=0|o._crypto_aead_xchacha20poly1305_ietf_npubbytes();He.length!==bi&&pe(vt,"invalid public_nonce length"),Qn=Y(He),vt.push(Qn),st=W(vt,st,"key");var ci,qi=0|o._crypto_aead_xchacha20poly1305_ietf_keybytes();st.length!==qi&&pe(vt,"invalid key length"),ci=Y(st),vt.push(ci);var ea=new q(0|wr),ya=ea.address;if(vt.push(ya),o._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(ya,sr,mr,wr,0,Fr,on,On,0,Qn,ci)===0){var Ul=D(ea,tt);return ce(vt),Ul}le(vt,"ciphertext cannot be decrypted using that key")}function ze(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_xchacha20poly1305_ietf_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_xchacha20poly1305_ietf_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(sr+o._crypto_aead_xchacha20poly1305_ietf_abytes()|0),ci=bi.address;if(tt.push(ci),o._crypto_aead_xchacha20poly1305_ietf_encrypt(ci,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var qi=D(bi,st);return ce(tt),qi}le(tt,"invalid usage")}function te(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"message")),sr=Te.length;tt.push(vt);var mr=null,wr=0;Fe!=null&&(mr=Y(Fe=W(tt,Fe,"additional_data")),wr=Fe.length,tt.push(mr));var Fr=null;Pe!=null&&(Fr=Y(Pe=W(tt,Pe,"secret_nonce")),Pe.length,tt.push(Fr)),Oe=W(tt,Oe,"public_nonce");var Vr,on=0|o._crypto_aead_xchacha20poly1305_ietf_npubbytes();Oe.length!==on&&pe(tt,"invalid public_nonce length"),Vr=Y(Oe),tt.push(Vr),He=W(tt,He,"key");var On,Qn=0|o._crypto_aead_xchacha20poly1305_ietf_keybytes();He.length!==Qn&&pe(tt,"invalid key length"),On=Y(He),tt.push(On);var bi=new q(0|sr),ci=bi.address;tt.push(ci);var qi=new q(0|o._crypto_aead_xchacha20poly1305_ietf_abytes()),ea=qi.address;if(tt.push(ea),o._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(ci,ea,null,vt,sr,0,mr,wr,0,Fr,Vr,On)===0){var ya=D({ciphertext:bi,mac:qi},st);return ce(tt),ya}le(tt,"invalid usage")}function Ue(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_aead_xchacha20poly1305_ietf_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_aead_xchacha20poly1305_ietf_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function oe(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_auth_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_auth_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_auth(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function ge(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_auth_hmacsha256_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_auth_hmacsha256_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_auth_hmacsha256(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function Le(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"state_address");var Oe=new q(0|o._crypto_auth_hmacsha256_bytes()),He=Oe.address;if(Pe.push(He),!(0|o._crypto_auth_hmacsha256_final(Te,He))){var st=(o._free(Te),D(Oe,Fe));return ce(Pe),st}le(Pe,"invalid usage")}function V(Te,Fe){var Pe=[];G(Fe);var Oe=null,He=0;Te!=null&&(Oe=Y(Te=W(Pe,Te,"key")),He=Te.length,Pe.push(Oe));var st=new q(208).address;if(!(0|o._crypto_auth_hmacsha256_init(st,Oe,He))){var tt=st;return ce(Pe),tt}le(Pe,"invalid usage")}function Qe(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_auth_hmacsha256_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_auth_hmacsha256_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function _t(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_auth_hmacsha256_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function rt(Te,Fe,Pe){var Oe=[];Te=W(Oe,Te,"tag");var He,st=0|o._crypto_auth_hmacsha256_bytes();Te.length!==st&&pe(Oe,"invalid tag length"),He=Y(Te),Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"message")),vt=Fe.length;Oe.push(tt),Pe=W(Oe,Pe,"key");var sr,mr=0|o._crypto_auth_hmacsha256_keybytes();Pe.length!==mr&&pe(Oe,"invalid key length"),sr=Y(Pe),Oe.push(sr);var wr=!(0|o._crypto_auth_hmacsha256_verify(He,tt,vt,0,sr));return ce(Oe),wr}function At(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_auth_hmacsha512_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_auth_hmacsha512_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_auth_hmacsha512(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function Er(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_auth_hmacsha512256_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_auth_hmacsha512256_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_auth_hmacsha512256(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function mt(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"state_address");var Oe=new q(0|o._crypto_auth_hmacsha512256_bytes()),He=Oe.address;if(Pe.push(He),!(0|o._crypto_auth_hmacsha512256_final(Te,He))){var st=(o._free(Te),D(Oe,Fe));return ce(Pe),st}le(Pe,"invalid usage")}function Ht(Te,Fe){var Pe=[];G(Fe);var Oe=null,He=0;Te!=null&&(Oe=Y(Te=W(Pe,Te,"key")),He=Te.length,Pe.push(Oe));var st=new q(416).address;if(!(0|o._crypto_auth_hmacsha512256_init(st,Oe,He))){var tt=st;return ce(Pe),tt}le(Pe,"invalid usage")}function zr(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_auth_hmacsha512256_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_auth_hmacsha512256_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function ve(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_auth_hmacsha512256_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function ie(Te,Fe,Pe){var Oe=[];Te=W(Oe,Te,"tag");var He,st=0|o._crypto_auth_hmacsha512256_bytes();Te.length!==st&&pe(Oe,"invalid tag length"),He=Y(Te),Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"message")),vt=Fe.length;Oe.push(tt),Pe=W(Oe,Pe,"key");var sr,mr=0|o._crypto_auth_hmacsha512256_keybytes();Pe.length!==mr&&pe(Oe,"invalid key length"),sr=Y(Pe),Oe.push(sr);var wr=!(0|o._crypto_auth_hmacsha512256_verify(He,tt,vt,0,sr));return ce(Oe),wr}function _e(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"state_address");var Oe=new q(0|o._crypto_auth_hmacsha512_bytes()),He=Oe.address;if(Pe.push(He),!(0|o._crypto_auth_hmacsha512_final(Te,He))){var st=(o._free(Te),D(Oe,Fe));return ce(Pe),st}le(Pe,"invalid usage")}function Be(Te,Fe){var Pe=[];G(Fe);var Oe=null,He=0;Te!=null&&(Oe=Y(Te=W(Pe,Te,"key")),He=Te.length,Pe.push(Oe));var st=new q(416).address;if(!(0|o._crypto_auth_hmacsha512_init(st,Oe,He))){var tt=st;return ce(Pe),tt}le(Pe,"invalid usage")}function Ze(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_auth_hmacsha512_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_auth_hmacsha512_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function $t(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_auth_hmacsha512_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function at(Te,Fe,Pe){var Oe=[];Te=W(Oe,Te,"tag");var He,st=0|o._crypto_auth_hmacsha512_bytes();Te.length!==st&&pe(Oe,"invalid tag length"),He=Y(Te),Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"message")),vt=Fe.length;Oe.push(tt),Pe=W(Oe,Pe,"key");var sr,mr=0|o._crypto_auth_hmacsha512_keybytes();Pe.length!==mr&&pe(Oe,"invalid key length"),sr=Y(Pe),Oe.push(sr);var wr=!(0|o._crypto_auth_hmacsha512_verify(He,tt,vt,0,sr));return ce(Oe),wr}function zt(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_auth_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_auth_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function Hr(Te,Fe,Pe){var Oe=[];Te=W(Oe,Te,"tag");var He,st=0|o._crypto_auth_bytes();Te.length!==st&&pe(Oe,"invalid tag length"),He=Y(Te),Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"message")),vt=Fe.length;Oe.push(tt),Pe=W(Oe,Pe,"key");var sr,mr=0|o._crypto_auth_keybytes();Pe.length!==mr&&pe(Oe,"invalid key length"),sr=Y(Pe),Oe.push(sr);var wr=!(0|o._crypto_auth_verify(He,tt,vt,0,sr));return ce(Oe),wr}function St(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"publicKey");var He,st=0|o._crypto_box_publickeybytes();Te.length!==st&&pe(Oe,"invalid publicKey length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"privateKey");var tt,vt=0|o._crypto_box_secretkeybytes();Fe.length!==vt&&pe(Oe,"invalid privateKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_box_beforenmbytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_box_beforenm(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function Yt(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"publicKey");var He,st=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Te.length!==st&&pe(Oe,"invalid publicKey length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"privateKey");var tt,vt=0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes();Fe.length!==vt&&pe(Oe,"invalid privateKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_box_curve25519xchacha20poly1305_beforenmbytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_box_curve25519xchacha20poly1305_beforenm(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function qr(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),Pe=W(st,Pe,"publicKey");var wr,Fr=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Pe.length!==Fr&&pe(st,"invalid publicKey length"),wr=Y(Pe),st.push(wr),Oe=W(st,Oe,"privateKey");var Vr,on=0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes();Oe.length!==on&&pe(st,"invalid privateKey length"),Vr=Y(Oe),st.push(Vr);var On=new q(0|vt),Qn=On.address;st.push(Qn);var bi=new q(0|o._crypto_box_curve25519xchacha20poly1305_macbytes()),ci=bi.address;if(st.push(ci),!(0|o._crypto_box_curve25519xchacha20poly1305_detached(Qn,ci,tt,vt,0,sr,wr,Vr))){var qi=D({ciphertext:On,mac:bi},He);return ce(st),qi}le(st,"invalid usage")}function tr(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"sharedKey");var mr,wr=0|o._crypto_box_curve25519xchacha20poly1305_beforenmbytes();Pe.length!==wr&&pe(He,"invalid sharedKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|tt),Vr=Fr.address;He.push(Vr);var on=new q(0|o._crypto_box_curve25519xchacha20poly1305_macbytes()),On=on.address;if(He.push(On),!(0|o._crypto_box_curve25519xchacha20poly1305_detached_afternm(Vr,On,st,tt,0,vt,mr))){var Qn=D({ciphertext:Fr,mac:on},Oe);return ce(He),Qn}le(He,"invalid usage")}function hr(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),Pe=W(st,Pe,"publicKey");var wr,Fr=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Pe.length!==Fr&&pe(st,"invalid publicKey length"),wr=Y(Pe),st.push(wr),Oe=W(st,Oe,"privateKey");var Vr,on=0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes();Oe.length!==on&&pe(st,"invalid privateKey length"),Vr=Y(Oe),st.push(Vr);var On=new q(vt+o._crypto_box_curve25519xchacha20poly1305_macbytes()|0),Qn=On.address;if(st.push(Qn),!(0|o._crypto_box_curve25519xchacha20poly1305_easy(Qn,tt,vt,0,sr,wr,Vr))){var bi=D(On,He);return ce(st),bi}le(st,"invalid usage")}function Cn(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"sharedKey");var mr,wr=0|o._crypto_box_curve25519xchacha20poly1305_beforenmbytes();Pe.length!==wr&&pe(He,"invalid sharedKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(tt+o._crypto_box_curve25519xchacha20poly1305_macbytes()|0),Vr=Fr.address;if(He.push(Vr),!(0|o._crypto_box_curve25519xchacha20poly1305_easy_afternm(Vr,st,tt,0,vt,mr))){var on=D(Fr,Oe);return ce(He),on}le(He,"invalid usage")}function er(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes()),Oe=Pe.address;Fe.push(Oe);var He=new q(0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),st=He.address;Fe.push(st),o._crypto_box_curve25519xchacha20poly1305_keypair(Oe,st);var tt=D({publicKey:Pe,privateKey:He,keyType:"curve25519"},Te);return ce(Fe),tt}function pr(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"ciphertext")),sr=Te.length;tt.push(vt),Fe=W(tt,Fe,"mac");var mr,wr=0|o._crypto_box_curve25519xchacha20poly1305_macbytes();Fe.length!==wr&&pe(tt,"invalid mac length"),mr=Y(Fe),tt.push(mr),Pe=W(tt,Pe,"nonce");var Fr,Vr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Pe.length!==Vr&&pe(tt,"invalid nonce length"),Fr=Y(Pe),tt.push(Fr),Oe=W(tt,Oe,"publicKey");var on,On=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Oe.length!==On&&pe(tt,"invalid publicKey length"),on=Y(Oe),tt.push(on),He=W(tt,He,"privateKey");var Qn,bi=0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes();He.length!==bi&&pe(tt,"invalid privateKey length"),Qn=Y(He),tt.push(Qn);var ci=new q(0|sr),qi=ci.address;if(tt.push(qi),!(0|o._crypto_box_curve25519xchacha20poly1305_open_detached(qi,vt,mr,sr,0,Fr,on,Qn))){var ea=D(ci,st);return ce(tt),ea}le(tt,"incorrect key pair for the given ciphertext")}function mn(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"ciphertext")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"mac");var sr,mr=0|o._crypto_box_curve25519xchacha20poly1305_macbytes();Fe.length!==mr&&pe(st,"invalid mac length"),sr=Y(Fe),st.push(sr),Pe=W(st,Pe,"nonce");var wr,Fr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Pe.length!==Fr&&pe(st,"invalid nonce length"),wr=Y(Pe),st.push(wr),Oe=W(st,Oe,"sharedKey");var Vr,on=0|o._crypto_box_curve25519xchacha20poly1305_beforenmbytes();Oe.length!==on&&pe(st,"invalid sharedKey length"),Vr=Y(Oe),st.push(Vr);var On=new q(0|vt),Qn=On.address;if(st.push(Qn),!(0|o._crypto_box_curve25519xchacha20poly1305_open_detached_afternm(Qn,tt,sr,vt,0,wr,Vr))){var bi=D(On,He);return ce(st),bi}le(st,"incorrect secret key for the given ciphertext")}function Xt(Te,Fe,Pe,Oe,He){var st=[];G(He),Te=W(st,Te,"ciphertext");var tt,vt=o._crypto_box_curve25519xchacha20poly1305_macbytes(),sr=Te.length;sr<vt&&pe(st,"ciphertext is too short"),tt=Y(Te),st.push(tt),Fe=W(st,Fe,"nonce");var mr,wr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Fe.length!==wr&&pe(st,"invalid nonce length"),mr=Y(Fe),st.push(mr),Pe=W(st,Pe,"publicKey");var Fr,Vr=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Pe.length!==Vr&&pe(st,"invalid publicKey length"),Fr=Y(Pe),st.push(Fr),Oe=W(st,Oe,"privateKey");var on,On=0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes();Oe.length!==On&&pe(st,"invalid privateKey length"),on=Y(Oe),st.push(on);var Qn=new q(sr-o._crypto_box_curve25519xchacha20poly1305_macbytes()|0),bi=Qn.address;if(st.push(bi),!(0|o._crypto_box_curve25519xchacha20poly1305_open_easy(bi,tt,sr,0,mr,Fr,on))){var ci=D(Qn,He);return ce(st),ci}le(st,"incorrect key pair for the given ciphertext")}function dr(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"ciphertext")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_box_curve25519xchacha20poly1305_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"sharedKey");var mr,wr=0|o._crypto_box_curve25519xchacha20poly1305_beforenmbytes();Pe.length!==wr&&pe(He,"invalid sharedKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(tt-o._crypto_box_curve25519xchacha20poly1305_macbytes()|0),Vr=Fr.address;if(He.push(Vr),!(0|o._crypto_box_curve25519xchacha20poly1305_open_easy_afternm(Vr,st,tt,0,vt,mr))){var on=D(Fr,Oe);return ce(He),on}le(He,"incorrect secret key for the given ciphertext")}function wn(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"publicKey");var tt,vt=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Fe.length!==vt&&pe(Oe,"invalid publicKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(st+o._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),mr=sr.address;Oe.push(mr),o._crypto_box_curve25519xchacha20poly1305_seal(mr,He,st,0,tt);var wr=D(sr,Pe);return ce(Oe),wr}function Qt(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"ciphertext");var st,tt=o._crypto_box_curve25519xchacha20poly1305_sealbytes(),vt=Te.length;vt<tt&&pe(He,"ciphertext is too short"),st=Y(Te),He.push(st),Fe=W(He,Fe,"publicKey");var sr,mr=0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes();Fe.length!==mr&&pe(He,"invalid publicKey length"),sr=Y(Fe),He.push(sr),Pe=W(He,Pe,"secretKey");var wr,Fr=0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes();Pe.length!==Fr&&pe(He,"invalid secretKey length"),wr=Y(Pe),He.push(wr);var Vr=new q(vt-o._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),on=Vr.address;He.push(on),o._crypto_box_curve25519xchacha20poly1305_seal_open(on,st,vt,0,sr,wr);var On=D(Vr,Oe);return ce(He),On}function fr(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"seed");var Oe,He=0|o._crypto_box_curve25519xchacha20poly1305_seedbytes();Te.length!==He&&pe(Pe,"invalid seed length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_box_curve25519xchacha20poly1305_publickeybytes()),tt=st.address;Pe.push(tt);var vt=new q(0|o._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),sr=vt.address;if(Pe.push(sr),!(0|o._crypto_box_curve25519xchacha20poly1305_seed_keypair(tt,sr,Oe))){var mr={publicKey:D(st,Fe),privateKey:D(vt,Fe),keyType:"x25519"};return ce(Pe),mr}le(Pe,"invalid usage")}function In(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_box_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),Pe=W(st,Pe,"publicKey");var wr,Fr=0|o._crypto_box_publickeybytes();Pe.length!==Fr&&pe(st,"invalid publicKey length"),wr=Y(Pe),st.push(wr),Oe=W(st,Oe,"privateKey");var Vr,on=0|o._crypto_box_secretkeybytes();Oe.length!==on&&pe(st,"invalid privateKey length"),Vr=Y(Oe),st.push(Vr);var On=new q(0|vt),Qn=On.address;st.push(Qn);var bi=new q(0|o._crypto_box_macbytes()),ci=bi.address;if(st.push(ci),!(0|o._crypto_box_detached(Qn,ci,tt,vt,0,sr,wr,Vr))){var qi=D({ciphertext:On,mac:bi},He);return ce(st),qi}le(st,"invalid usage")}function jt(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_box_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),Pe=W(st,Pe,"publicKey");var wr,Fr=0|o._crypto_box_publickeybytes();Pe.length!==Fr&&pe(st,"invalid publicKey length"),wr=Y(Pe),st.push(wr),Oe=W(st,Oe,"privateKey");var Vr,on=0|o._crypto_box_secretkeybytes();Oe.length!==on&&pe(st,"invalid privateKey length"),Vr=Y(Oe),st.push(Vr);var On=new q(vt+o._crypto_box_macbytes()|0),Qn=On.address;if(st.push(Qn),!(0|o._crypto_box_easy(Qn,tt,vt,0,sr,wr,Vr))){var bi=D(On,He);return ce(st),bi}le(st,"invalid usage")}function ar(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_box_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"sharedKey");var mr,wr=0|o._crypto_box_beforenmbytes();Pe.length!==wr&&pe(He,"invalid sharedKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(tt+o._crypto_box_macbytes()|0),Vr=Fr.address;if(He.push(Vr),!(0|o._crypto_box_easy_afternm(Vr,st,tt,0,vt,mr))){var on=D(Fr,Oe);return ce(He),on}le(He,"invalid usage")}function ht(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_box_publickeybytes()),Oe=Pe.address;Fe.push(Oe);var He=new q(0|o._crypto_box_secretkeybytes()),st=He.address;if(Fe.push(st),!(0|o._crypto_box_keypair(Oe,st))){var tt={publicKey:D(Pe,Te),privateKey:D(He,Te),keyType:"x25519"};return ce(Fe),tt}le(Fe,"internal error")}function Xe(Te,Fe,Pe,Oe,He,st){var tt=[];G(st);var vt=Y(Te=W(tt,Te,"ciphertext")),sr=Te.length;tt.push(vt),Fe=W(tt,Fe,"mac");var mr,wr=0|o._crypto_box_macbytes();Fe.length!==wr&&pe(tt,"invalid mac length"),mr=Y(Fe),tt.push(mr),Pe=W(tt,Pe,"nonce");var Fr,Vr=0|o._crypto_box_noncebytes();Pe.length!==Vr&&pe(tt,"invalid nonce length"),Fr=Y(Pe),tt.push(Fr),Oe=W(tt,Oe,"publicKey");var on,On=0|o._crypto_box_publickeybytes();Oe.length!==On&&pe(tt,"invalid publicKey length"),on=Y(Oe),tt.push(on),He=W(tt,He,"privateKey");var Qn,bi=0|o._crypto_box_secretkeybytes();He.length!==bi&&pe(tt,"invalid privateKey length"),Qn=Y(He),tt.push(Qn);var ci=new q(0|sr),qi=ci.address;if(tt.push(qi),!(0|o._crypto_box_open_detached(qi,vt,mr,sr,0,Fr,on,Qn))){var ea=D(ci,st);return ce(tt),ea}le(tt,"incorrect key pair for the given ciphertext")}function et(Te,Fe,Pe,Oe,He){var st=[];G(He),Te=W(st,Te,"ciphertext");var tt,vt=o._crypto_box_macbytes(),sr=Te.length;sr<vt&&pe(st,"ciphertext is too short"),tt=Y(Te),st.push(tt),Fe=W(st,Fe,"nonce");var mr,wr=0|o._crypto_box_noncebytes();Fe.length!==wr&&pe(st,"invalid nonce length"),mr=Y(Fe),st.push(mr),Pe=W(st,Pe,"publicKey");var Fr,Vr=0|o._crypto_box_publickeybytes();Pe.length!==Vr&&pe(st,"invalid publicKey length"),Fr=Y(Pe),st.push(Fr),Oe=W(st,Oe,"privateKey");var on,On=0|o._crypto_box_secretkeybytes();Oe.length!==On&&pe(st,"invalid privateKey length"),on=Y(Oe),st.push(on);var Qn=new q(sr-o._crypto_box_macbytes()|0),bi=Qn.address;if(st.push(bi),!(0|o._crypto_box_open_easy(bi,tt,sr,0,mr,Fr,on))){var ci=D(Qn,He);return ce(st),ci}le(st,"incorrect key pair for the given ciphertext")}function ue(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"ciphertext")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_box_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"sharedKey");var mr,wr=0|o._crypto_box_beforenmbytes();Pe.length!==wr&&pe(He,"invalid sharedKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(tt-o._crypto_box_macbytes()|0),Vr=Fr.address;if(He.push(Vr),!(0|o._crypto_box_open_easy_afternm(Vr,st,tt,0,vt,mr))){var on=D(Fr,Oe);return ce(He),on}le(He,"incorrect secret key for the given ciphertext")}function je(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"publicKey");var tt,vt=0|o._crypto_box_publickeybytes();Fe.length!==vt&&pe(Oe,"invalid publicKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(st+o._crypto_box_sealbytes()|0),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_box_seal(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function be(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"ciphertext");var st,tt=o._crypto_box_sealbytes(),vt=Te.length;vt<tt&&pe(He,"ciphertext is too short"),st=Y(Te),He.push(st),Fe=W(He,Fe,"publicKey");var sr,mr=0|o._crypto_box_publickeybytes();Fe.length!==mr&&pe(He,"invalid publicKey length"),sr=Y(Fe),He.push(sr),Pe=W(He,Pe,"privateKey");var wr,Fr=0|o._crypto_box_secretkeybytes();Pe.length!==Fr&&pe(He,"invalid privateKey length"),wr=Y(Pe),He.push(wr);var Vr=new q(vt-o._crypto_box_sealbytes()|0),on=Vr.address;if(He.push(on),!(0|o._crypto_box_seal_open(on,st,vt,0,sr,wr))){var On=D(Vr,Oe);return ce(He),On}le(He,"incorrect key pair for the given ciphertext")}function qe(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"seed");var Oe,He=0|o._crypto_box_seedbytes();Te.length!==He&&pe(Pe,"invalid seed length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_box_publickeybytes()),tt=st.address;Pe.push(tt);var vt=new q(0|o._crypto_box_secretkeybytes()),sr=vt.address;if(Pe.push(sr),!(0|o._crypto_box_seed_keypair(tt,sr,Oe))){var mr={publicKey:D(st,Fe),privateKey:D(vt,Fe),keyType:"x25519"};return ce(Pe),mr}le(Pe,"invalid usage")}function De(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"p");var He,st=0|o._crypto_core_ed25519_bytes();Te.length!==st&&pe(Oe,"invalid p length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"q");var tt,vt=0|o._crypto_core_ed25519_bytes();Fe.length!==vt&&pe(Oe,"invalid q length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ed25519_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_core_ed25519_add(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"input is an invalid element")}function Je(Te,Fe){var Pe=[];G(Fe);var Oe=Y(Te=W(Pe,Te,"r"));Te.length,Pe.push(Oe);var He=new q(0|o._crypto_core_ed25519_bytes()),st=He.address;if(Pe.push(st),!(0|o._crypto_core_ed25519_from_hash(st,Oe))){var tt=D(He,Fe);return ce(Pe),tt}le(Pe,"invalid usage")}function Rt(Te,Fe){var Pe=[];G(Fe);var Oe=Y(Te=W(Pe,Te,"r"));Te.length,Pe.push(Oe);var He=new q(0|o._crypto_core_ed25519_bytes()),st=He.address;if(Pe.push(st),!(0|o._crypto_core_ed25519_from_uniform(st,Oe))){var tt=D(He,Fe);return ce(Pe),tt}le(Pe,"invalid usage")}function Vt(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"repr");var Oe,He=0|o._crypto_core_ed25519_bytes();Te.length!==He&&pe(Pe,"invalid repr length"),Oe=Y(Te),Pe.push(Oe);var st=(0|o._crypto_core_ed25519_is_valid_point(Oe))==1;return ce(Pe),st}function br(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_core_ed25519_bytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_core_ed25519_random(Oe);var He=D(Pe,Te);return ce(Fe),He}function Rr(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"x");var He,st=0|o._crypto_core_ed25519_scalarbytes();Te.length!==st&&pe(Oe,"invalid x length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"y");var tt,vt=0|o._crypto_core_ed25519_scalarbytes();Fe.length!==vt&&pe(Oe,"invalid y length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ed25519_scalarbytes()),mr=sr.address;Oe.push(mr),o._crypto_core_ed25519_scalar_add(mr,He,tt);var wr=D(sr,Pe);return ce(Oe),wr}function Dr(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"s");var Oe,He=0|o._crypto_core_ed25519_scalarbytes();Te.length!==He&&pe(Pe,"invalid s length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ed25519_scalarbytes()),tt=st.address;Pe.push(tt),o._crypto_core_ed25519_scalar_complement(tt,Oe);var vt=D(st,Fe);return ce(Pe),vt}function Pr(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"s");var Oe,He=0|o._crypto_core_ed25519_scalarbytes();Te.length!==He&&pe(Pe,"invalid s length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ed25519_scalarbytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_core_ed25519_scalar_invert(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid reciprocate")}function k(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"x");var He,st=0|o._crypto_core_ed25519_scalarbytes();Te.length!==st&&pe(Oe,"invalid x length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"y");var tt,vt=0|o._crypto_core_ed25519_scalarbytes();Fe.length!==vt&&pe(Oe,"invalid y length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ed25519_scalarbytes()),mr=sr.address;Oe.push(mr),o._crypto_core_ed25519_scalar_mul(mr,He,tt);var wr=D(sr,Pe);return ce(Oe),wr}function a(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"s");var Oe,He=0|o._crypto_core_ed25519_scalarbytes();Te.length!==He&&pe(Pe,"invalid s length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ed25519_scalarbytes()),tt=st.address;Pe.push(tt),o._crypto_core_ed25519_scalar_negate(tt,Oe);var vt=D(st,Fe);return ce(Pe),vt}function S(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_core_ed25519_scalarbytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_core_ed25519_scalar_random(Oe);var He=D(Pe,Te);return ce(Fe),He}function sn(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"sample");var Oe,He=0|o._crypto_core_ed25519_nonreducedscalarbytes();Te.length!==He&&pe(Pe,"invalid sample length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ed25519_scalarbytes()),tt=st.address;Pe.push(tt),o._crypto_core_ed25519_scalar_reduce(tt,Oe);var vt=D(st,Fe);return ce(Pe),vt}function Lr(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"x");var He,st=0|o._crypto_core_ed25519_scalarbytes();Te.length!==st&&pe(Oe,"invalid x length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"y");var tt,vt=0|o._crypto_core_ed25519_scalarbytes();Fe.length!==vt&&pe(Oe,"invalid y length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ed25519_scalarbytes()),mr=sr.address;Oe.push(mr),o._crypto_core_ed25519_scalar_sub(mr,He,tt);var wr=D(sr,Pe);return ce(Oe),wr}function Wr(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"p");var He,st=0|o._crypto_core_ed25519_bytes();Te.length!==st&&pe(Oe,"invalid p length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"q");var tt,vt=0|o._crypto_core_ed25519_bytes();Fe.length!==vt&&pe(Oe,"invalid q length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ed25519_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_core_ed25519_sub(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"input is an invalid element")}function ln(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"input");var st,tt=0|o._crypto_core_hchacha20_inputbytes();Te.length!==tt&&pe(He,"invalid input length"),st=Y(Te),He.push(st),Fe=W(He,Fe,"privateKey");var vt,sr=0|o._crypto_core_hchacha20_keybytes();Fe.length!==sr&&pe(He,"invalid privateKey length"),vt=Y(Fe),He.push(vt);var mr=null;Pe!=null&&(mr=Y(Pe=W(He,Pe,"constant")),Pe.length,He.push(mr));var wr=new q(0|o._crypto_core_hchacha20_outputbytes()),Fr=wr.address;if(He.push(Fr),!(0|o._crypto_core_hchacha20(Fr,st,vt,mr))){var Vr=D(wr,Oe);return ce(He),Vr}le(He,"invalid usage")}function yt(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"input");var st,tt=0|o._crypto_core_hsalsa20_inputbytes();Te.length!==tt&&pe(He,"invalid input length"),st=Y(Te),He.push(st),Fe=W(He,Fe,"privateKey");var vt,sr=0|o._crypto_core_hsalsa20_keybytes();Fe.length!==sr&&pe(He,"invalid privateKey length"),vt=Y(Fe),He.push(vt);var mr=null;Pe!=null&&(mr=Y(Pe=W(He,Pe,"constant")),Pe.length,He.push(mr));var wr=new q(0|o._crypto_core_hsalsa20_outputbytes()),Fr=wr.address;if(He.push(Fr),!(0|o._crypto_core_hsalsa20(Fr,st,vt,mr))){var Vr=D(wr,Oe);return ce(He),Vr}le(He,"invalid usage")}function ot(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"p");var He,st=0|o._crypto_core_ristretto255_bytes();Te.length!==st&&pe(Oe,"invalid p length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"q");var tt,vt=0|o._crypto_core_ristretto255_bytes();Fe.length!==vt&&pe(Oe,"invalid q length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ristretto255_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_core_ristretto255_add(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"input is an invalid element")}function lt(Te,Fe){var Pe=[];G(Fe);var Oe=Y(Te=W(Pe,Te,"r"));Te.length,Pe.push(Oe);var He=new q(0|o._crypto_core_ristretto255_bytes()),st=He.address;if(Pe.push(st),!(0|o._crypto_core_ristretto255_from_hash(st,Oe))){var tt=D(He,Fe);return ce(Pe),tt}le(Pe,"invalid usage")}function gt(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"repr");var Oe,He=0|o._crypto_core_ristretto255_bytes();Te.length!==He&&pe(Pe,"invalid repr length"),Oe=Y(Te),Pe.push(Oe);var st=(0|o._crypto_core_ristretto255_is_valid_point(Oe))==1;return ce(Pe),st}function Ie(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_core_ristretto255_bytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_core_ristretto255_random(Oe);var He=D(Pe,Te);return ce(Fe),He}function Zt(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"x");var He,st=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==st&&pe(Oe,"invalid x length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"y");var tt,vt=0|o._crypto_core_ristretto255_scalarbytes();Fe.length!==vt&&pe(Oe,"invalid y length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ristretto255_scalarbytes()),mr=sr.address;Oe.push(mr),o._crypto_core_ristretto255_scalar_add(mr,He,tt);var wr=D(sr,Pe);return ce(Oe),wr}function Ir(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"s");var Oe,He=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==He&&pe(Pe,"invalid s length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ristretto255_scalarbytes()),tt=st.address;Pe.push(tt),o._crypto_core_ristretto255_scalar_complement(tt,Oe);var vt=D(st,Fe);return ce(Pe),vt}function $(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"s");var Oe,He=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==He&&pe(Pe,"invalid s length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ristretto255_scalarbytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_core_ristretto255_scalar_invert(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid reciprocate")}function Qr(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"x");var He,st=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==st&&pe(Oe,"invalid x length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"y");var tt,vt=0|o._crypto_core_ristretto255_scalarbytes();Fe.length!==vt&&pe(Oe,"invalid y length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ristretto255_scalarbytes()),mr=sr.address;Oe.push(mr),o._crypto_core_ristretto255_scalar_mul(mr,He,tt);var wr=D(sr,Pe);return ce(Oe),wr}function en(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"s");var Oe,He=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==He&&pe(Pe,"invalid s length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ristretto255_scalarbytes()),tt=st.address;Pe.push(tt),o._crypto_core_ristretto255_scalar_negate(tt,Oe);var vt=D(st,Fe);return ce(Pe),vt}function xr(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_core_ristretto255_scalarbytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_core_ristretto255_scalar_random(Oe);var He=D(Pe,Te);return ce(Fe),He}function Mi(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"sample");var Oe,He=0|o._crypto_core_ristretto255_nonreducedscalarbytes();Te.length!==He&&pe(Pe,"invalid sample length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ristretto255_scalarbytes()),tt=st.address;Pe.push(tt),o._crypto_core_ristretto255_scalar_reduce(tt,Oe);var vt=D(st,Fe);return ce(Pe),vt}function oo(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"x");var He,st=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==st&&pe(Oe,"invalid x length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"y");var tt,vt=0|o._crypto_core_ristretto255_scalarbytes();Fe.length!==vt&&pe(Oe,"invalid y length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ristretto255_scalarbytes()),mr=sr.address;Oe.push(mr),o._crypto_core_ristretto255_scalar_sub(mr,He,tt);var wr=D(sr,Pe);return ce(Oe),wr}function ho(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"p");var He,st=0|o._crypto_core_ristretto255_bytes();Te.length!==st&&pe(Oe,"invalid p length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"q");var tt,vt=0|o._crypto_core_ristretto255_bytes();Fe.length!==vt&&pe(Oe,"invalid q length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_core_ristretto255_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_core_ristretto255_sub(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"input is an invalid element")}function Tr(Te,Fe,Pe,Oe){var He=[];G(Oe),ae(He,Te,"hash_length"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(He,"hash_length must be an unsigned integer");var st=Y(Fe=W(He,Fe,"message")),tt=Fe.length;He.push(st);var vt=null,sr=0;Pe!=null&&(vt=Y(Pe=W(He,Pe,"key")),sr=Pe.length,He.push(vt));var mr=new q(Te|=0),wr=mr.address;if(He.push(wr),!(0|o._crypto_generichash(wr,Te,st,tt,0,vt,sr))){var Fr=D(mr,Oe);return ce(He),Fr}le(He,"invalid usage")}function jo(Te,Fe,Pe,Oe,He){var st=[];G(He),ae(st,Te,"subkey_len"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(st,"subkey_len must be an unsigned integer");var tt=null,vt=0;Fe!=null&&(tt=Y(Fe=W(st,Fe,"key")),vt=Fe.length,st.push(tt));var sr=null,mr=0;Pe!=null&&(Pe=W(st,Pe,"id"),mr=0|o._crypto_generichash_blake2b_saltbytes(),Pe.length!==mr&&pe(st,"invalid id length"),sr=Y(Pe),st.push(sr));var wr=null,Fr=0;Oe!=null&&(Oe=W(st,Oe,"ctx"),Fr=0|o._crypto_generichash_blake2b_personalbytes(),Oe.length!==Fr&&pe(st,"invalid ctx length"),wr=Y(Oe),st.push(wr));var Vr=new q(0|Te),on=Vr.address;if(st.push(on),!(0|o._crypto_generichash_blake2b_salt_personal(on,Te,null,0,0,tt,vt,sr,wr))){var On=D(Vr,He);return ce(st),On}le(st,"invalid usage")}function ka(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address"),ae(Oe,Fe,"hash_length"),(typeof Fe!="number"||(0|Fe)!==Fe||Fe<0)&&pe(Oe,"hash_length must be an unsigned integer");var He=new q(Fe|=0),st=He.address;if(Oe.push(st),!(0|o._crypto_generichash_final(Te,st,Fe))){var tt=(o._free(Te),D(He,Pe));return ce(Oe),tt}le(Oe,"invalid usage")}function wo(Te,Fe,Pe){var Oe=[];G(Pe);var He=null,st=0;Te!=null&&(He=Y(Te=W(Oe,Te,"key")),st=Te.length,Oe.push(He)),ae(Oe,Fe,"hash_length"),(typeof Fe!="number"||(0|Fe)!==Fe||Fe<0)&&pe(Oe,"hash_length must be an unsigned integer");var tt=new q(357).address;if(!(0|o._crypto_generichash_init(tt,He,st,Fe))){var vt=tt;return ce(Oe),vt}le(Oe,"invalid usage")}function Fo(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_generichash_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_generichash_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function Ar(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_generichash_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function Pa(Te,Fe){var Pe=[];G(Fe);var Oe=Y(Te=W(Pe,Te,"message")),He=Te.length;Pe.push(Oe);var st=new q(0|o._crypto_hash_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_hash(tt,Oe,He,0))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid usage")}function Hu(Te,Fe){var Pe=[];G(Fe);var Oe=Y(Te=W(Pe,Te,"message")),He=Te.length;Pe.push(Oe);var st=new q(0|o._crypto_hash_sha256_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_hash_sha256(tt,Oe,He,0))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid usage")}function vs(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"state_address");var Oe=new q(0|o._crypto_hash_sha256_bytes()),He=Oe.address;if(Pe.push(He),!(0|o._crypto_hash_sha256_final(Te,He))){var st=(o._free(Te),D(Oe,Fe));return ce(Pe),st}le(Pe,"invalid usage")}function Iu(Te){var Fe=[];G(Te);var Pe=new q(104).address;if(!(0|o._crypto_hash_sha256_init(Pe))){var Oe=Pe;return ce(Fe),Oe}le(Fe,"invalid usage")}function Cu(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_hash_sha256_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function wu(Te,Fe){var Pe=[];G(Fe);var Oe=Y(Te=W(Pe,Te,"message")),He=Te.length;Pe.push(Oe);var st=new q(0|o._crypto_hash_sha512_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_hash_sha512(tt,Oe,He,0))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid usage")}function l0(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"state_address");var Oe=new q(0|o._crypto_hash_sha512_bytes()),He=Oe.address;if(Pe.push(He),!(0|o._crypto_hash_sha512_final(Te,He))){var st=(o._free(Te),D(Oe,Fe));return ce(Pe),st}le(Pe,"invalid usage")}function Ed(Te){var Fe=[];G(Te);var Pe=new q(208).address;if(!(0|o._crypto_hash_sha512_init(Pe))){var Oe=Pe;return ce(Fe),Oe}le(Fe,"invalid usage")}function vd(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_hash_sha512_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function Et(Te,Fe,Pe,Oe,He){var st=[];G(He),ae(st,Te,"subkey_len"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(st,"subkey_len must be an unsigned integer"),ae(st,Fe,"subkey_id");var tt,vt=0;if(typeof Fe=="bigint"&&Fe>=BigInt(0)){let Qn=Fe>>BigInt(32);Qn>BigInt(4294967295)&&pe(st,"subkey_id cannot be more than 64 bits"),vt=Number(Qn),tt=Number(Fe&BigInt(4294967295))}else typeof Fe=="number"&&(0|Fe)===Fe&&Fe>=0?tt=Fe:pe(st,"subkey_id must be an unsigned integer or bigint");typeof Pe!="string"&&pe(st,"ctx must be a string"),Pe=y(Pe+"\0"),mr!=null&&Pe.length-1!==mr&&pe(st,"invalid ctx length");var sr=Y(Pe),mr=Pe.length-1;st.push(sr),Oe=W(st,Oe,"key");var wr,Fr=0|o._crypto_kdf_keybytes();Oe.length!==Fr&&pe(st,"invalid key length"),wr=Y(Oe),st.push(wr);var Vr=new q(0|Te),on=Vr.address;st.push(on),o._crypto_kdf_derive_from_key(on,Te,tt,vt,sr,wr);var On=D(Vr,He);return ce(st),On}function XQ(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_kdf_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_kdf_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function ZQ(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"clientPublicKey");var st,tt=0|o._crypto_kx_publickeybytes();Te.length!==tt&&pe(He,"invalid clientPublicKey length"),st=Y(Te),He.push(st),Fe=W(He,Fe,"clientSecretKey");var vt,sr=0|o._crypto_kx_secretkeybytes();Fe.length!==sr&&pe(He,"invalid clientSecretKey length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"serverPublicKey");var mr,wr=0|o._crypto_kx_publickeybytes();Pe.length!==wr&&pe(He,"invalid serverPublicKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|o._crypto_kx_sessionkeybytes()),Vr=Fr.address;He.push(Vr);var on=new q(0|o._crypto_kx_sessionkeybytes()),On=on.address;if(He.push(On),!(0|o._crypto_kx_client_session_keys(Vr,On,st,vt,mr))){var Qn=D({sharedRx:Fr,sharedTx:on},Oe);return ce(He),Qn}le(He,"invalid usage")}function J5(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_kx_publickeybytes()),Oe=Pe.address;Fe.push(Oe);var He=new q(0|o._crypto_kx_secretkeybytes()),st=He.address;if(Fe.push(st),!(0|o._crypto_kx_keypair(Oe,st))){var tt={publicKey:D(Pe,Te),privateKey:D(He,Te),keyType:"x25519"};return ce(Fe),tt}le(Fe,"internal error")}function z5(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"seed");var Oe,He=0|o._crypto_kx_seedbytes();Te.length!==He&&pe(Pe,"invalid seed length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_kx_publickeybytes()),tt=st.address;Pe.push(tt);var vt=new q(0|o._crypto_kx_secretkeybytes()),sr=vt.address;if(Pe.push(sr),!(0|o._crypto_kx_seed_keypair(tt,sr,Oe))){var mr={publicKey:D(st,Fe),privateKey:D(vt,Fe),keyType:"x25519"};return ce(Pe),mr}le(Pe,"internal error")}function Ah(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"serverPublicKey");var st,tt=0|o._crypto_kx_publickeybytes();Te.length!==tt&&pe(He,"invalid serverPublicKey length"),st=Y(Te),He.push(st),Fe=W(He,Fe,"serverSecretKey");var vt,sr=0|o._crypto_kx_secretkeybytes();Fe.length!==sr&&pe(He,"invalid serverSecretKey length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"clientPublicKey");var mr,wr=0|o._crypto_kx_publickeybytes();Pe.length!==wr&&pe(He,"invalid clientPublicKey length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|o._crypto_kx_sessionkeybytes()),Vr=Fr.address;He.push(Vr);var on=new q(0|o._crypto_kx_sessionkeybytes()),On=on.address;if(He.push(On),!(0|o._crypto_kx_server_session_keys(Vr,On,st,vt,mr))){var Qn=D({sharedRx:Fr,sharedTx:on},Oe);return ce(He),Qn}le(He,"invalid usage")}function jQ(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_onetimeauth_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_onetimeauth_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_onetimeauth(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function eH(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"state_address");var Oe=new q(0|o._crypto_onetimeauth_bytes()),He=Oe.address;if(Pe.push(He),!(0|o._crypto_onetimeauth_final(Te,He))){var st=(o._free(Te),D(Oe,Fe));return ce(Pe),st}le(Pe,"invalid usage")}function I8(Te,Fe){var Pe=[];G(Fe);var Oe=null;Te!=null&&(Oe=Y(Te=W(Pe,Te,"key")),Te.length,Pe.push(Oe));var He=new q(144).address;if(!(0|o._crypto_onetimeauth_init(He,Oe))){var st=He;return ce(Pe),st}le(Pe,"invalid usage")}function K5(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_onetimeauth_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_onetimeauth_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function tH(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_onetimeauth_update(Te,He,st)&&le(Oe,"invalid usage"),ce(Oe)}function rH(Te,Fe,Pe){var Oe=[];Te=W(Oe,Te,"hash");var He,st=0|o._crypto_onetimeauth_bytes();Te.length!==st&&pe(Oe,"invalid hash length"),He=Y(Te),Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"message")),vt=Fe.length;Oe.push(tt),Pe=W(Oe,Pe,"key");var sr,mr=0|o._crypto_onetimeauth_keybytes();Pe.length!==mr&&pe(Oe,"invalid key length"),sr=Y(Pe),Oe.push(sr);var wr=!(0|o._crypto_onetimeauth_verify(He,tt,vt,0,sr));return ce(Oe),wr}function nH(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt),ae(vt,Te,"keyLength"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(vt,"keyLength must be an unsigned integer");var sr=Y(Fe=W(vt,Fe,"password")),mr=Fe.length;vt.push(sr),Pe=W(vt,Pe,"salt");var wr,Fr=0|o._crypto_pwhash_saltbytes();Pe.length!==Fr&&pe(vt,"invalid salt length"),wr=Y(Pe),vt.push(wr),ae(vt,Oe,"opsLimit"),(typeof Oe!="number"||(0|Oe)!==Oe||Oe<0)&&pe(vt,"opsLimit must be an unsigned integer"),ae(vt,He,"memLimit"),(typeof He!="number"||(0|He)!==He||He<0)&&pe(vt,"memLimit must be an unsigned integer"),ae(vt,st,"algorithm"),(typeof st!="number"||(0|st)!==st||st<0)&&pe(vt,"algorithm must be an unsigned integer");var Vr=new q(0|Te),on=Vr.address;if(vt.push(on),!(0|o._crypto_pwhash(on,Te,0,sr,mr,0,wr,Oe,0,He,st))){var On=D(Vr,tt);return ce(vt),On}le(vt,"invalid usage")}function sM(Te,Fe,Pe,Oe,He,st){var tt=[];G(st),ae(tt,Te,"keyLength"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(tt,"keyLength must be an unsigned integer");var vt=Y(Fe=W(tt,Fe,"password")),sr=Fe.length;tt.push(vt),Pe=W(tt,Pe,"salt");var mr,wr=0|o._crypto_pwhash_scryptsalsa208sha256_saltbytes();Pe.length!==wr&&pe(tt,"invalid salt length"),mr=Y(Pe),tt.push(mr),ae(tt,Oe,"opsLimit"),(typeof Oe!="number"||(0|Oe)!==Oe||Oe<0)&&pe(tt,"opsLimit must be an unsigned integer"),ae(tt,He,"memLimit"),(typeof He!="number"||(0|He)!==He||He<0)&&pe(tt,"memLimit must be an unsigned integer");var Fr=new q(0|Te),Vr=Fr.address;if(tt.push(Vr),!(0|o._crypto_pwhash_scryptsalsa208sha256(Vr,Te,0,vt,sr,0,mr,Oe,0,He))){var on=D(Fr,st);return ce(tt),on}le(tt,"invalid usage")}function iH(Te,Fe,Pe,Oe,He,st,tt){var vt=[];G(tt);var sr=Y(Te=W(vt,Te,"password")),mr=Te.length;vt.push(sr);var wr=Y(Fe=W(vt,Fe,"salt")),Fr=Fe.length;vt.push(wr),ae(vt,Pe,"opsLimit"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(vt,"opsLimit must be an unsigned integer"),ae(vt,Oe,"r"),(typeof Oe!="number"||(0|Oe)!==Oe||Oe<0)&&pe(vt,"r must be an unsigned integer"),ae(vt,He,"p"),(typeof He!="number"||(0|He)!==He||He<0)&&pe(vt,"p must be an unsigned integer"),ae(vt,st,"keyLength"),(typeof st!="number"||(0|st)!==st||st<0)&&pe(vt,"keyLength must be an unsigned integer");var Vr=new q(0|st),on=Vr.address;if(vt.push(on),!(0|o._crypto_pwhash_scryptsalsa208sha256_ll(sr,mr,wr,Fr,Pe,0,Oe,He,on,st))){var On=D(Vr,tt);return ce(vt),On}le(vt,"invalid usage")}function cM(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"password")),tt=Te.length;He.push(st),ae(He,Fe,"opsLimit"),(typeof Fe!="number"||(0|Fe)!==Fe||Fe<0)&&pe(He,"opsLimit must be an unsigned integer"),ae(He,Pe,"memLimit"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(He,"memLimit must be an unsigned integer");var vt=new q(0|o._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(He.push(vt),!(0|o._crypto_pwhash_scryptsalsa208sha256_str(vt,st,tt,0,Fe,0,Pe))){var sr=o.UTF8ToString(vt);return ce(He),sr}le(He,"invalid usage")}function uM(Te,Fe,Pe){var Oe=[];G(Pe),typeof Te!="string"&&pe(Oe,"hashed_password must be a string"),Te=y(Te+"\0"),st!=null&&Te.length-1!==st&&pe(Oe,"invalid hashed_password length");var He=Y(Te),st=Te.length-1;Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"password")),vt=Fe.length;Oe.push(tt);var sr=!(0|o._crypto_pwhash_scryptsalsa208sha256_str_verify(He,tt,vt,0));return ce(Oe),sr}function h0(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"password")),tt=Te.length;He.push(st),ae(He,Fe,"opsLimit"),(typeof Fe!="number"||(0|Fe)!==Fe||Fe<0)&&pe(He,"opsLimit must be an unsigned integer"),ae(He,Pe,"memLimit"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(He,"memLimit must be an unsigned integer");var vt=new q(0|o._crypto_pwhash_strbytes()).address;if(He.push(vt),!(0|o._crypto_pwhash_str(vt,st,tt,0,Fe,0,Pe))){var sr=o.UTF8ToString(vt);return ce(He),sr}le(He,"invalid usage")}function oH(Te,Fe,Pe,Oe){var He=[];G(Oe),typeof Te!="string"&&pe(He,"hashed_password must be a string"),Te=y(Te+"\0"),tt!=null&&Te.length-1!==tt&&pe(He,"invalid hashed_password length");var st=Y(Te),tt=Te.length-1;He.push(st),ae(He,Fe,"opsLimit"),(typeof Fe!="number"||(0|Fe)!==Fe||Fe<0)&&pe(He,"opsLimit must be an unsigned integer"),ae(He,Pe,"memLimit"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(He,"memLimit must be an unsigned integer");var vt=!!(0|o._crypto_pwhash_str_needs_rehash(st,Fe,0,Pe));return ce(He),vt}function aH(Te,Fe,Pe){var Oe=[];G(Pe),typeof Te!="string"&&pe(Oe,"hashed_password must be a string"),Te=y(Te+"\0"),st!=null&&Te.length-1!==st&&pe(Oe,"invalid hashed_password length");var He=Y(Te),st=Te.length-1;Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"password")),vt=Fe.length;Oe.push(tt);var sr=!(0|o._crypto_pwhash_str_verify(He,tt,vt,0));return ce(Oe),sr}function sH(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"privateKey");var He,st=0|o._crypto_scalarmult_scalarbytes();Te.length!==st&&pe(Oe,"invalid privateKey length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"publicKey");var tt,vt=0|o._crypto_scalarmult_bytes();Fe.length!==vt&&pe(Oe,"invalid publicKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_scalarmult_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_scalarmult(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"weak public key")}function GS(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"privateKey");var Oe,He=0|o._crypto_scalarmult_scalarbytes();Te.length!==He&&pe(Pe,"invalid privateKey length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_scalarmult_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_scalarmult_base(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"unknown error")}function dM(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"n");var He,st=0|o._crypto_scalarmult_ed25519_scalarbytes();Te.length!==st&&pe(Oe,"invalid n length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"p");var tt,vt=0|o._crypto_scalarmult_ed25519_bytes();Fe.length!==vt&&pe(Oe,"invalid p length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_scalarmult_ed25519_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_scalarmult_ed25519(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid point or scalar is 0")}function cH(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"scalar");var Oe,He=0|o._crypto_scalarmult_ed25519_scalarbytes();Te.length!==He&&pe(Pe,"invalid scalar length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_scalarmult_ed25519_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_scalarmult_ed25519_base(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"scalar is 0")}function uH(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"scalar");var Oe,He=0|o._crypto_scalarmult_ed25519_scalarbytes();Te.length!==He&&pe(Pe,"invalid scalar length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_scalarmult_ed25519_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_scalarmult_ed25519_base_noclamp(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"scalar is 0")}function $5(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"n");var He,st=0|o._crypto_scalarmult_ed25519_scalarbytes();Te.length!==st&&pe(Oe,"invalid n length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"p");var tt,vt=0|o._crypto_scalarmult_ed25519_bytes();Fe.length!==vt&&pe(Oe,"invalid p length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_scalarmult_ed25519_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_scalarmult_ed25519_noclamp(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid point or scalar is 0")}function fM(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"scalar");var He,st=0|o._crypto_scalarmult_ristretto255_scalarbytes();Te.length!==st&&pe(Oe,"invalid scalar length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"element");var tt,vt=0|o._crypto_scalarmult_ristretto255_bytes();Fe.length!==vt&&pe(Oe,"invalid element length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_scalarmult_ristretto255_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_scalarmult_ristretto255(mr,He,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"result is identity element")}function C8(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"scalar");var Oe,He=0|o._crypto_core_ristretto255_scalarbytes();Te.length!==He&&pe(Pe,"invalid scalar length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_core_ristretto255_bytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_scalarmult_ristretto255_base(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"scalar is 0")}function Ll(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_secretbox_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"key");var mr,wr=0|o._crypto_secretbox_keybytes();Pe.length!==wr&&pe(He,"invalid key length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|tt),Vr=Fr.address;He.push(Vr);var on=new q(0|o._crypto_secretbox_macbytes()),On=on.address;if(He.push(On),!(0|o._crypto_secretbox_detached(Vr,On,st,tt,0,vt,mr))){var Qn=D({mac:on,cipher:Fr},Oe);return ce(He),Qn}le(He,"invalid usage")}function Gu(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_secretbox_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"key");var mr,wr=0|o._crypto_secretbox_keybytes();Pe.length!==wr&&pe(He,"invalid key length"),mr=Y(Pe),He.push(mr);var Fr=new q(tt+o._crypto_secretbox_macbytes()|0),Vr=Fr.address;if(He.push(Vr),!(0|o._crypto_secretbox_easy(Vr,st,tt,0,vt,mr))){var on=D(Fr,Oe);return ce(He),on}le(He,"invalid usage")}function Y5(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_secretbox_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_secretbox_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function lM(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"ciphertext")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"mac");var sr,mr=0|o._crypto_secretbox_macbytes();Fe.length!==mr&&pe(st,"invalid mac length"),sr=Y(Fe),st.push(sr),Pe=W(st,Pe,"nonce");var wr,Fr=0|o._crypto_secretbox_noncebytes();Pe.length!==Fr&&pe(st,"invalid nonce length"),wr=Y(Pe),st.push(wr),Oe=W(st,Oe,"key");var Vr,on=0|o._crypto_secretbox_keybytes();Oe.length!==on&&pe(st,"invalid key length"),Vr=Y(Oe),st.push(Vr);var On=new q(0|vt),Qn=On.address;if(st.push(Qn),!(0|o._crypto_secretbox_open_detached(Qn,tt,sr,vt,0,wr,Vr))){var bi=D(On,He);return ce(st),bi}le(st,"wrong secret key for the given ciphertext")}function dv(Te,Fe,Pe,Oe){var He=[];G(Oe),Te=W(He,Te,"ciphertext");var st,tt=o._crypto_secretbox_macbytes(),vt=Te.length;vt<tt&&pe(He,"ciphertext is too short"),st=Y(Te),He.push(st),Fe=W(He,Fe,"nonce");var sr,mr=0|o._crypto_secretbox_noncebytes();Fe.length!==mr&&pe(He,"invalid nonce length"),sr=Y(Fe),He.push(sr),Pe=W(He,Pe,"key");var wr,Fr=0|o._crypto_secretbox_keybytes();Pe.length!==Fr&&pe(He,"invalid key length"),wr=Y(Pe),He.push(wr);var Vr=new q(vt-o._crypto_secretbox_macbytes()|0),on=Vr.address;if(He.push(on),!(0|o._crypto_secretbox_open_easy(on,st,vt,0,sr,wr))){var On=D(Vr,Oe);return ce(He),On}le(He,"wrong secret key for the given ciphertext")}function hM(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"header");var He,st=0|o._crypto_secretstream_xchacha20poly1305_headerbytes();Te.length!==st&&pe(Oe,"invalid header length"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_secretstream_xchacha20poly1305_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(52).address;if(!(0|o._crypto_secretstream_xchacha20poly1305_init_pull(sr,He,tt))){var mr=sr;return ce(Oe),mr}le(Oe,"invalid usage")}function $2(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"key");var Oe,He=0|o._crypto_secretstream_xchacha20poly1305_keybytes();Te.length!==He&&pe(Pe,"invalid key length"),Oe=Y(Te),Pe.push(Oe);var st=new q(52).address,tt=new q(0|o._crypto_secretstream_xchacha20poly1305_headerbytes()),vt=tt.address;if(Pe.push(vt),!(0|o._crypto_secretstream_xchacha20poly1305_init_push(st,vt,Oe))){var sr={state:st,header:D(tt,Fe)};return ce(Pe),sr}le(Pe,"invalid usage")}function qS(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_secretstream_xchacha20poly1305_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_secretstream_xchacha20poly1305_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function dH(Te,Fe,Pe,Oe){var He=[];G(Oe),ae(He,Te,"state_address"),Fe=W(He,Fe,"cipher");var st,tt=o._crypto_secretstream_xchacha20poly1305_abytes(),vt=Fe.length;vt<tt&&pe(He,"cipher is too short"),st=Y(Fe),He.push(st);var sr=null,mr=0;Pe!=null&&(sr=Y(Pe=W(He,Pe,"ad")),mr=Pe.length,He.push(sr));var wr=new q(vt-o._crypto_secretstream_xchacha20poly1305_abytes()|0),Fr=wr.address;He.push(Fr);var Vr,on=(Vr=ne(1),He.push(Vr),(on=o._crypto_secretstream_xchacha20poly1305_pull(Te,Fr,0,Vr,st,vt,0,sr,mr)===0&&{tag:o.HEAPU8[Vr],message:wr})&&{message:D(on.message,Oe),tag:on.tag});return ce(He),on}function fH(Te,Fe,Pe,Oe,He){var st=[];G(He),ae(st,Te,"state_address");var tt=Y(Fe=W(st,Fe,"message_chunk")),vt=Fe.length;st.push(tt);var sr=null,mr=0;Pe!=null&&(sr=Y(Pe=W(st,Pe,"ad")),mr=Pe.length,st.push(sr)),ae(st,Oe,"tag"),(typeof Oe!="number"||(0|Oe)!==Oe||Oe<0)&&pe(st,"tag must be an unsigned integer");var wr=new q(vt+o._crypto_secretstream_xchacha20poly1305_abytes()|0),Fr=wr.address;if(st.push(Fr),!(0|o._crypto_secretstream_xchacha20poly1305_push(Te,Fr,0,tt,vt,0,sr,mr,0,Oe))){var Vr=D(wr,He);return ce(st),Vr}le(st,"invalid usage")}function L0(Te,Fe){var Pe=[];return G(Fe),ae(Pe,Te,"state_address"),o._crypto_secretstream_xchacha20poly1305_rekey(Te),ce(Pe),!0}function Y2(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_shorthash_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_shorthash_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_shorthash(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function AM(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_shorthash_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_shorthash_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function fv(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"key");var tt,vt=0|o._crypto_shorthash_siphashx24_keybytes();Fe.length!==vt&&pe(Oe,"invalid key length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_shorthash_siphashx24_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_shorthash_siphashx24(mr,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function Rd(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"privateKey");var tt,vt=0|o._crypto_sign_secretkeybytes();Fe.length!==vt&&pe(Oe,"invalid privateKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(Te.length+o._crypto_sign_bytes()|0),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_sign(mr,null,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function w1(Te,Fe,Pe){var Oe=[];G(Pe);var He=Y(Te=W(Oe,Te,"message")),st=Te.length;Oe.push(He),Fe=W(Oe,Fe,"privateKey");var tt,vt=0|o._crypto_sign_secretkeybytes();Fe.length!==vt&&pe(Oe,"invalid privateKey length"),tt=Y(Fe),Oe.push(tt);var sr=new q(0|o._crypto_sign_bytes()),mr=sr.address;if(Oe.push(mr),!(0|o._crypto_sign_detached(mr,null,He,st,0,tt))){var wr=D(sr,Pe);return ce(Oe),wr}le(Oe,"invalid usage")}function pM(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"edPk");var Oe,He=0|o._crypto_sign_publickeybytes();Te.length!==He&&pe(Pe,"invalid edPk length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_scalarmult_scalarbytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_sign_ed25519_pk_to_curve25519(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid key")}function lH(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"edSk");var Oe,He=0|o._crypto_sign_secretkeybytes();Te.length!==He&&pe(Pe,"invalid edSk length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_scalarmult_scalarbytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_sign_ed25519_sk_to_curve25519(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid key")}function hH(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"privateKey");var Oe,He=0|o._crypto_sign_secretkeybytes();Te.length!==He&&pe(Pe,"invalid privateKey length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_sign_publickeybytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_sign_ed25519_sk_to_pk(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid key")}function W2(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"privateKey");var Oe,He=0|o._crypto_sign_secretkeybytes();Te.length!==He&&pe(Pe,"invalid privateKey length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_sign_seedbytes()),tt=st.address;if(Pe.push(tt),!(0|o._crypto_sign_ed25519_sk_to_seed(tt,Oe))){var vt=D(st,Fe);return ce(Pe),vt}le(Pe,"invalid key")}function AH(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address"),Fe=W(Oe,Fe,"privateKey");var He,st=0|o._crypto_sign_secretkeybytes();Fe.length!==st&&pe(Oe,"invalid privateKey length"),He=Y(Fe),Oe.push(He);var tt=new q(0|o._crypto_sign_bytes()),vt=tt.address;if(Oe.push(vt),!(0|o._crypto_sign_final_create(Te,vt,null,He))){var sr=(o._free(Te),D(tt,Pe));return ce(Oe),sr}le(Oe,"invalid usage")}function My(Te,Fe,Pe,Oe){var He=[];G(Oe),ae(He,Te,"state_address"),Fe=W(He,Fe,"signature");var st,tt=0|o._crypto_sign_bytes();Fe.length!==tt&&pe(He,"invalid signature length"),st=Y(Fe),He.push(st),Pe=W(He,Pe,"publicKey");var vt,sr=0|o._crypto_sign_publickeybytes();Pe.length!==sr&&pe(He,"invalid publicKey length"),vt=Y(Pe),He.push(vt);var mr=!(0|o._crypto_sign_final_verify(Te,st,vt));return ce(He),mr}function gM(Te){var Fe=[];G(Te);var Pe=new q(208).address;if(!(0|o._crypto_sign_init(Pe))){var Oe=Pe;return ce(Fe),Oe}le(Fe,"internal error")}function pH(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_sign_publickeybytes()),Oe=Pe.address;Fe.push(Oe);var He=new q(0|o._crypto_sign_secretkeybytes()),st=He.address;if(Fe.push(st),!(0|o._crypto_sign_keypair(Oe,st))){var tt={publicKey:D(Pe,Te),privateKey:D(He,Te),keyType:"ed25519"};return ce(Fe),tt}le(Fe,"internal error")}function gH(Te,Fe,Pe){var Oe=[];G(Pe),Te=W(Oe,Te,"signedMessage");var He,st=o._crypto_sign_bytes(),tt=Te.length;tt<st&&pe(Oe,"signedMessage is too short"),He=Y(Te),Oe.push(He),Fe=W(Oe,Fe,"publicKey");var vt,sr=0|o._crypto_sign_publickeybytes();Fe.length!==sr&&pe(Oe,"invalid publicKey length"),vt=Y(Fe),Oe.push(vt);var mr=new q(tt-o._crypto_sign_bytes()|0),wr=mr.address;if(Oe.push(wr),!(0|o._crypto_sign_open(wr,null,He,tt,0,vt))){var Fr=D(mr,Pe);return ce(Oe),Fr}le(Oe,"incorrect signature for the given public key")}function _M(Te,Fe){var Pe=[];G(Fe),Te=W(Pe,Te,"seed");var Oe,He=0|o._crypto_sign_seedbytes();Te.length!==He&&pe(Pe,"invalid seed length"),Oe=Y(Te),Pe.push(Oe);var st=new q(0|o._crypto_sign_publickeybytes()),tt=st.address;Pe.push(tt);var vt=new q(0|o._crypto_sign_secretkeybytes()),sr=vt.address;if(Pe.push(sr),!(0|o._crypto_sign_seed_keypair(tt,sr,Oe))){var mr={publicKey:D(st,Fe),privateKey:D(vt,Fe),keyType:"ed25519"};return ce(Pe),mr}le(Pe,"invalid usage")}function X2(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"state_address");var He=Y(Fe=W(Oe,Fe,"message_chunk")),st=Fe.length;Oe.push(He),0|o._crypto_sign_update(Te,He,st,0)&&le(Oe,"invalid usage"),ce(Oe)}function lv(Te,Fe,Pe){var Oe=[];Te=W(Oe,Te,"signature");var He,st=0|o._crypto_sign_bytes();Te.length!==st&&pe(Oe,"invalid signature length"),He=Y(Te),Oe.push(He);var tt=Y(Fe=W(Oe,Fe,"message")),vt=Fe.length;Oe.push(tt),Pe=W(Oe,Pe,"publicKey");var sr,mr=0|o._crypto_sign_publickeybytes();Pe.length!==mr&&pe(Oe,"invalid publicKey length"),sr=Y(Pe),Oe.push(sr);var wr=!(0|o._crypto_sign_verify_detached(He,tt,vt,0,sr));return ce(Oe),wr}function mM(Te,Fe,Pe,Oe){var He=[];G(Oe),ae(He,Te,"outLength"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(He,"outLength must be an unsigned integer"),Fe=W(He,Fe,"key");var st,tt=0|o._crypto_stream_chacha20_keybytes();Fe.length!==tt&&pe(He,"invalid key length"),st=Y(Fe),He.push(st),Pe=W(He,Pe,"nonce");var vt,sr=0|o._crypto_stream_chacha20_noncebytes();Pe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Pe),He.push(vt);var mr=new q(0|Te),wr=mr.address;He.push(wr),o._crypto_stream_chacha20(wr,Te,0,vt,st);var Fr=D(mr,Oe);return ce(He),Fr}function _H(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"input_message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_stream_chacha20_ietf_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"key");var mr,wr=0|o._crypto_stream_chacha20_ietf_keybytes();Pe.length!==wr&&pe(He,"invalid key length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|tt),Vr=Fr.address;if(He.push(Vr),o._crypto_stream_chacha20_ietf_xor(Vr,st,tt,0,vt,mr)===0){var on=D(Fr,Oe);return ce(He),on}le(He,"invalid usage")}function mH(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"input_message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_stream_chacha20_ietf_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),ae(st,Pe,"nonce_increment"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(st,"nonce_increment must be an unsigned integer"),Oe=W(st,Oe,"key");var wr,Fr=0|o._crypto_stream_chacha20_ietf_keybytes();Oe.length!==Fr&&pe(st,"invalid key length"),wr=Y(Oe),st.push(wr);var Vr=new q(0|vt),on=Vr.address;if(st.push(on),o._crypto_stream_chacha20_ietf_xor_ic(on,tt,vt,0,sr,Pe,wr)===0){var On=D(Vr,He);return ce(st),On}le(st,"invalid usage")}function w8(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_stream_chacha20_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_stream_chacha20_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function yM(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"input_message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_stream_chacha20_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"key");var mr,wr=0|o._crypto_stream_chacha20_keybytes();Pe.length!==wr&&pe(He,"invalid key length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|tt),Vr=Fr.address;if(He.push(Vr),o._crypto_stream_chacha20_xor(Vr,st,tt,0,vt,mr)===0){var on=D(Fr,Oe);return ce(He),on}le(He,"invalid usage")}function yH(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"input_message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_stream_chacha20_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),ae(st,Pe,"nonce_increment"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(st,"nonce_increment must be an unsigned integer"),Oe=W(st,Oe,"key");var wr,Fr=0|o._crypto_stream_chacha20_keybytes();Oe.length!==Fr&&pe(st,"invalid key length"),wr=Y(Oe),st.push(wr);var Vr=new q(0|vt),on=Vr.address;if(st.push(on),o._crypto_stream_chacha20_xor_ic(on,tt,vt,0,sr,Pe,0,wr)===0){var On=D(Vr,He);return ce(st),On}le(st,"invalid usage")}function Sd(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_stream_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_stream_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function bH(Te){var Fe=[];G(Te);var Pe=new q(0|o._crypto_stream_xchacha20_keybytes()),Oe=Pe.address;Fe.push(Oe),o._crypto_stream_xchacha20_keygen(Oe);var He=D(Pe,Te);return ce(Fe),He}function EH(Te,Fe,Pe,Oe){var He=[];G(Oe);var st=Y(Te=W(He,Te,"input_message")),tt=Te.length;He.push(st),Fe=W(He,Fe,"nonce");var vt,sr=0|o._crypto_stream_xchacha20_noncebytes();Fe.length!==sr&&pe(He,"invalid nonce length"),vt=Y(Fe),He.push(vt),Pe=W(He,Pe,"key");var mr,wr=0|o._crypto_stream_xchacha20_keybytes();Pe.length!==wr&&pe(He,"invalid key length"),mr=Y(Pe),He.push(mr);var Fr=new q(0|tt),Vr=Fr.address;if(He.push(Vr),o._crypto_stream_xchacha20_xor(Vr,st,tt,0,vt,mr)===0){var on=D(Fr,Oe);return ce(He),on}le(He,"invalid usage")}function vH(Te,Fe,Pe,Oe,He){var st=[];G(He);var tt=Y(Te=W(st,Te,"input_message")),vt=Te.length;st.push(tt),Fe=W(st,Fe,"nonce");var sr,mr=0|o._crypto_stream_xchacha20_noncebytes();Fe.length!==mr&&pe(st,"invalid nonce length"),sr=Y(Fe),st.push(sr),ae(st,Pe,"nonce_increment"),(typeof Pe!="number"||(0|Pe)!==Pe||Pe<0)&&pe(st,"nonce_increment must be an unsigned integer"),Oe=W(st,Oe,"key");var wr,Fr=0|o._crypto_stream_xchacha20_keybytes();Oe.length!==Fr&&pe(st,"invalid key length"),wr=Y(Oe),st.push(wr);var Vr=new q(0|vt),on=Vr.address;if(st.push(on),o._crypto_stream_xchacha20_xor_ic(on,tt,vt,0,sr,Pe,0,wr)===0){var On=D(Vr,He);return ce(st),On}le(st,"invalid usage")}function mc(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"length"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(Pe,"length must be an unsigned integer");var Oe=new q(0|Te),He=Oe.address;Pe.push(He),o._randombytes_buf(He,Te);var st=D(Oe,Fe);return ce(Pe),st}function un(Te,Fe,Pe){var Oe=[];G(Pe),ae(Oe,Te,"length"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(Oe,"length must be an unsigned integer"),Fe=W(Oe,Fe,"seed");var He,st=0|o._randombytes_seedbytes();Fe.length!==st&&pe(Oe,"invalid seed length"),He=Y(Fe),Oe.push(He);var tt=new q(0|Te),vt=tt.address;Oe.push(vt),o._randombytes_buf_deterministic(vt,Te,He);var sr=D(tt,Pe);return ce(Oe),sr}function RH(Te){G(Te),o._randombytes_close()}function bM(Te){G(Te);var Fe=o._randombytes_random()>>>0;return ce([]),Fe}function vg(Te,Fe){var Pe=[];G(Fe);for(var Oe=o._malloc(24),He=0;He<6;He++)o.setValue(Oe+4*He,o.Runtime.addFunction(Te[["implementation_name","random","stir","uniform","buf","close"][He]]),"i32");0|o._randombytes_set_implementation(Oe)&&le(Pe,"unsupported implementation"),ce(Pe)}function SH(Te){G(Te),o._randombytes_stir()}function yc(Te,Fe){var Pe=[];G(Fe),ae(Pe,Te,"upper_bound"),(typeof Te!="number"||(0|Te)!==Te||Te<0)&&pe(Pe,"upper_bound must be an unsigned integer");var Oe=o._randombytes_uniform(Te)>>>0;return ce(Pe),Oe}function Z2(){var Te=o._sodium_version_string(),Fe=o.UTF8ToString(Te);return ce([]),Fe}return q.prototype.to_Uint8Array=function(){var Te=new Uint8Array(this.length);return Te.set(o.HEAPU8.subarray(this.address,this.address+this.length)),Te},i.add=function(Te,Fe){if(!(Te instanceof Uint8Array&&Fe instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can added");var Pe=Te.length,Oe=0,He=0;if(Fe.length!=Te.length)throw new TypeError("Arguments must have the same length");for(He=0;He<Pe;He++)Oe>>=8,Oe+=Te[He]+Fe[He],Te[He]=255&Oe},i.base64_variants=N,i.compare=function(Te,Fe){if(!(Te instanceof Uint8Array&&Fe instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(Te.length!==Fe.length)throw new TypeError("Only instances of identical length can be compared");for(var Pe=0,Oe=1,He=Te.length;He-- >0;)Pe|=Fe[He]-Te[He]>>8&Oe,Oe&=(Fe[He]^Te[He])-1>>8;return Pe+Pe+Oe-1},i.from_base64=function(Te,Fe){Fe=T(Fe);var Pe,Oe=[],He=new q(3*(Te=W(Oe,Te,"input")).length/4),st=Y(Te),tt=ne(4),vt=ne(4);return Oe.push(st),Oe.push(He.address),Oe.push(He.result_bin_len_p),Oe.push(He.b64_end_p),o._sodium_base642bin(He.address,He.length,st,Te.length,0,tt,vt,Fe)!==0&&le(Oe,"invalid input"),o.getValue(vt,"i32")-st!==Te.length&&le(Oe,"incomplete input"),He.length=o.getValue(tt,"i32"),Pe=He.to_Uint8Array(),ce(Oe),Pe},i.from_hex=function(Te){var Fe,Pe=[],Oe=new q((Te=W(Pe,Te,"input")).length/2),He=Y(Te),st=ne(4);return Pe.push(He),Pe.push(Oe.address),Pe.push(Oe.hex_end_p),o._sodium_hex2bin(Oe.address,Oe.length,He,Te.length,0,0,st)!==0&&le(Pe,"invalid input"),o.getValue(st,"i32")-He!==Te.length&&le(Pe,"incomplete input"),Fe=Oe.to_Uint8Array(),ce(Pe),Fe},i.from_string=y,i.increment=function(Te){if(!(Te instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be incremented");for(var Fe=256,Pe=0,Oe=Te.length;Pe<Oe;Pe++)Fe>>=8,Fe+=Te[Pe],Te[Pe]=255&Fe},i.is_zero=function(Te){if(!(Te instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be checked");for(var Fe=0,Pe=0,Oe=Te.length;Pe<Oe;Pe++)Fe|=Te[Pe];return Fe===0},i.libsodium=n,i.memcmp=function(Te,Fe){if(!(Te instanceof Uint8Array&&Fe instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(Te.length!==Fe.length)throw new TypeError("Only instances of identical length can be compared");for(var Pe=0,Oe=0,He=Te.length;Oe<He;Oe++)Pe|=Te[Oe]^Fe[Oe];return Pe===0},i.memzero=function(Te){if(!(Te instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be wiped");for(var Fe=0,Pe=Te.length;Fe<Pe;Fe++)Te[Fe]=0},i.output_formats=function(){return["uint8array","text","hex","base64"]},i.pad=function(Te,Fe){if(!(Te instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((Fe|=0)<=0)throw new Error("block size must be > 0");var Pe,Oe=[],He=ne(4),st=1,tt=0,vt=0|Te.length,sr=new q(vt+Fe);Oe.push(He),Oe.push(sr.address);for(var mr=sr.address,wr=sr.address+vt+Fe;mr<wr;mr++)o.HEAPU8[mr]=Te[tt],tt+=st=1&~((65535&((vt-=st)>>>48|vt>>>32|vt>>>16|vt))-1>>16);return o._sodium_pad(He,sr.address,Te.length,Fe,sr.length)!==0&&le(Oe,"internal error"),sr.length=o.getValue(He,"i32"),Pe=sr.to_Uint8Array(),ce(Oe),Pe},i.unpad=function(Te,Fe){if(!(Te instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((Fe|=0)<=0)throw new Error("block size must be > 0");var Pe=[],Oe=Y(Te),He=ne(4);return Pe.push(Oe),Pe.push(He),o._sodium_unpad(He,Oe,Te.length,Fe)!==0&&le(Pe,"unsupported/invalid padding"),Te=(Te=new Uint8Array(Te)).subarray(0,o.getValue(He,"i32")),ce(Pe),Te},i.ready=g,i.symbols=function(){return Object.keys(i).sort()},i.to_base64=M,i.to_hex=I,i.to_string=_,i}var r=typeof e.sodium=="object"&&typeof e.sodium.onload=="function"?e.sodium.onload:null;typeof define=="function"&&define.amd?define(["exports","libsodium-sumo"],t):typeof lP=="object"&&typeof lP.nodeName!="string"?t(lP,wet()):e.sodium=t(e.commonJsStrict={},e.libsodium),r&&e.sodium.ready.then((function(){r(e.sodium)}))})(lP)});var Net=ir(Lh=>{"use strict";J();K();z();var wQt=Lh&&Lh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lh,"__esModule",{value:!0});Lh.Xchacha20poly1305Ietf=Lh.xchacha20NonceLength=Lh.Ed25519=Lh.Ed25519Keypair=Lh.Argon2id=Lh.isArgon2idOptions=void 0;var OQt=Uf(),Y1=wQt(Oet());function NQt(e){return!(!(0,OQt.isNonNullObject)(e)||typeof e.outputLength!="number"||typeof e.opsLimit!="number"||typeof e.memLimitKib!="number")}Lh.isArgon2idOptions=NQt;var Ehe=class{static async execute(t,r,i){return await Y1.default.ready,Y1.default.crypto_pwhash(i.outputLength,t,r,i.opsLimit,i.memLimitKib*1024,Y1.default.crypto_pwhash_ALG_ARGON2ID13)}};Lh.Argon2id=Ehe;var Nz=class e{static fromLibsodiumPrivkey(t){if(t.length!==64)throw new Error(`Unexpected key length ${t.length}. Must be 64.`);return new e(t.slice(0,32),t.slice(32,64))}constructor(t,r){this.privkey=t,this.pubkey=r}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}};Lh.Ed25519Keypair=Nz;var vhe=class{static async makeKeypair(t){await Y1.default.ready;let r=Y1.default.crypto_sign_seed_keypair(t);return Nz.fromLibsodiumPrivkey(r.privateKey)}static async createSignature(t,r){return await Y1.default.ready,Y1.default.crypto_sign_detached(t,r.toLibsodiumPrivkey())}static async verifySignature(t,r,i){return await Y1.default.ready,Y1.default.crypto_sign_verify_detached(t,r,i)}};Lh.Ed25519=vhe;Lh.xchacha20NonceLength=24;var Rhe=class{static async encrypt(t,r,i){return await Y1.default.ready,Y1.default.crypto_aead_xchacha20poly1305_ietf_encrypt(t,null,null,i,r)}static async decrypt(t,r,i){return await Y1.default.ready,Y1.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,t,null,i,r)}};Lh.Xchacha20poly1305Ietf=Rhe});var xet=ir(xz=>{"use strict";J();K();z();Object.defineProperty(xz,"__esModule",{value:!0});xz.Random=void 0;var She=class{static getBytes(t){try{let r=typeof window=="object"?window:self,i=typeof r.crypto<"u"?r.crypto:r.msCrypto,n=new Uint8Array(t);return i.getRandomValues(n),n}catch{try{let r=(IA(),Zu(Lv));return new Uint8Array([...r.randomBytes(t)])}catch{throw new Error("No secure random number generator found")}}}};xz.Random=She});var Let=ir(kp=>{"use strict";J();K();z();Object.defineProperty(kp,"__esModule",{value:!0});kp.ripemd160=kp.RIPEMD160=kp.md5=kp.MD5=kp.sha1=kp.SHA1=void 0;var AC=xle(),zl=iC(),VN=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),fI=new Uint32Array(80),Mz=class extends AC.HashMD{constructor(){super(64,20,8,!1),this.A=VN[0]|0,this.B=VN[1]|0,this.C=VN[2]|0,this.D=VN[3]|0,this.E=VN[4]|0}get(){let{A:t,B:r,C:i,D:n,E:o}=this;return[t,r,i,n,o]}set(t,r,i,n,o){this.A=t|0,this.B=r|0,this.C=i|0,this.D=n|0,this.E=o|0}process(t,r){for(let y=0;y<16;y++,r+=4)fI[y]=t.getUint32(r,!1);for(let y=16;y<80;y++)fI[y]=(0,zl.rotl)(fI[y-3]^fI[y-8]^fI[y-14]^fI[y-16],1);let{A:i,B:n,C:o,D:d,E:g}=this;for(let y=0;y<80;y++){let _,I;y<20?(_=(0,AC.Chi)(n,o,d),I=1518500249):y<40?(_=n^o^d,I=1859775393):y<60?(_=(0,AC.Maj)(n,o,d),I=2400959708):(_=n^o^d,I=3395469782);let N=(0,zl.rotl)(i,5)+_+g+I+fI[y]|0;g=d,d=o,o=(0,zl.rotl)(n,30),n=i,i=N}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,d=d+this.D|0,g=g+this.E|0,this.set(i,n,o,d,g)}roundClean(){(0,zl.clean)(fI)}destroy(){this.set(0,0,0,0,0),(0,zl.clean)(this.buffer)}};kp.SHA1=Mz;kp.sha1=(0,zl.createHasher)(()=>new Mz);var xQt=Math.pow(2,32),TQt=Array.from({length:64},(e,t)=>Math.floor(xQt*Math.abs(Math.sin(t+1)))),Tz=VN.slice(0,4),Ihe=new Uint32Array(16),Dz=class extends AC.HashMD{constructor(){super(64,16,8,!0),this.A=Tz[0]|0,this.B=Tz[1]|0,this.C=Tz[2]|0,this.D=Tz[3]|0}get(){let{A:t,B:r,C:i,D:n}=this;return[t,r,i,n]}set(t,r,i,n){this.A=t|0,this.B=r|0,this.C=i|0,this.D=n|0}process(t,r){for(let g=0;g<16;g++,r+=4)Ihe[g]=t.getUint32(r,!0);let{A:i,B:n,C:o,D:d}=this;for(let g=0;g<64;g++){let y,_,I;g<16?(y=(0,AC.Chi)(n,o,d),_=g,I=[7,12,17,22]):g<32?(y=(0,AC.Chi)(d,n,o),_=(5*g+1)%16,I=[5,9,14,20]):g<48?(y=n^o^d,_=(3*g+5)%16,I=[4,11,16,23]):(y=o^(n|~d),_=7*g%16,I=[6,10,15,21]),y=y+i+TQt[g]+Ihe[_],i=d,d=o,o=n,n=n+(0,zl.rotl)(y,I[g%4])}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,d=d+this.D|0,this.set(i,n,o,d)}roundClean(){(0,zl.clean)(Ihe)}destroy(){this.set(0,0,0,0),(0,zl.clean)(this.buffer)}};kp.MD5=Dz;kp.md5=(0,zl.createHasher)(()=>new Dz);var BQt=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Bet=Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)),MQt=Bet.map(e=>(9*e+5)%16),Met=(()=>{let r=[[Bet],[MQt]];for(let i=0;i<4;i++)for(let n of r)n.push(n[i].map(o=>BQt[o]));return r})(),Det=Met[0],ket=Met[1],Pet=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),DQt=Det.map((e,t)=>e.map(r=>Pet[t][r])),kQt=ket.map((e,t)=>e.map(r=>Pet[t][r])),PQt=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),LQt=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Tet(e,t,r,i){return e===0?t^r^i:e===1?t&r|~t&i:e===2?(t|~r)^i:e===3?t&i|r&~i:t^(r|~i)}var Bz=new Uint32Array(16),kz=class extends AC.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:t,h1:r,h2:i,h3:n,h4:o}=this;return[t,r,i,n,o]}set(t,r,i,n,o){this.h0=t|0,this.h1=r|0,this.h2=i|0,this.h3=n|0,this.h4=o|0}process(t,r){for(let M=0;M<16;M++,r+=4)Bz[M]=t.getUint32(r,!0);let i=this.h0|0,n=i,o=this.h1|0,d=o,g=this.h2|0,y=g,_=this.h3|0,I=_,N=this.h4|0,T=N;for(let M=0;M<5;M++){let D=4-M,P=PQt[M],G=LQt[M],q=Det[M],Y=ket[M],ne=DQt[M],ce=kQt[M];for(let le=0;le<16;le++){let pe=(0,zl.rotl)(i+Tet(M,o,g,_)+Bz[q[le]]+P,ne[le])+N|0;i=N,N=_,_=(0,zl.rotl)(g,10)|0,g=o,o=pe}for(let le=0;le<16;le++){let pe=(0,zl.rotl)(n+Tet(D,d,y,I)+Bz[Y[le]]+G,ce[le])+T|0;n=T,T=I,I=(0,zl.rotl)(y,10)|0,y=d,d=pe}}this.set(this.h1+g+I|0,this.h2+_+T|0,this.h3+N+n|0,this.h4+i+d|0,this.h0+o+y|0)}roundClean(){(0,zl.clean)(Bz)}destroy(){this.destroyed=!0,(0,zl.clean)(this.buffer),this.set(0,0,0,0,0)}};kp.RIPEMD160=kz;kp.ripemd160=(0,zl.createHasher)(()=>new kz)});var Fet=ir(JN=>{"use strict";J();K();z();Object.defineProperty(JN,"__esModule",{value:!0});JN.ripemd160=JN.RIPEMD160=void 0;var Uet=Let();JN.RIPEMD160=Uet.RIPEMD160;JN.ripemd160=Uet.ripemd160});var Qet=ir(zN=>{"use strict";J();K();z();Object.defineProperty(zN,"__esModule",{value:!0});zN.ripemd160=zN.Ripemd160=void 0;var UQt=Fet(),FQt=dz(),Pz=class{constructor(t){this.blockSize=512/8,this.impl=UQt.ripemd160.create(),t&&this.update(t)}update(t){return this.impl.update((0,FQt.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}};zN.Ripemd160=Pz;function QQt(e){return new Pz(e).digest()}zN.ripemd160=QQt});var whe=ir($N=>{"use strict";J();K();z();Object.defineProperty($N,"__esModule",{value:!0});$N.ExtendedSecp256k1Signature=$N.Secp256k1Signature=void 0;function KN(e){let t=0;for(let r of e)if(r===0)t++;else break;return e.slice(t)}var Lz=2,Uz=class e{static fromFixedLength(t){if(t.length!==64)throw new Error(`Got invalid data length: ${t.length}. Expected 2x 32 bytes for the pair (r, s)`);return new e(KN(t.slice(0,32)),KN(t.slice(32,64)))}static fromDer(t){let r=0;if(t[r++]!==48)throw new Error("Prefix 0x30 expected");let i=t[r++];if(t.length-r!==i)throw new Error("Data length mismatch detected");if(t[r++]!==Lz)throw new Error("INTEGER tag expected");let o=t[r++];if(o>=128)throw new Error("Decoding length values above 127 not supported");let d=t.slice(r,r+o);if(r+=o,t[r++]!==Lz)throw new Error("INTEGER tag expected");let y=t[r++];if(y>=128)throw new Error("Decoding length values above 127 not supported");let _=t.slice(r,r+y);return r+=y,new e(KN(d),KN(_))}constructor(t,r){if(t.length>32||t.length===0||t[0]===0)throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(r.length>32||r.length===0||r[0]===0)throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:t,s:r}}r(t){if(t===void 0)return this.data.r;{let r=t-this.data.r.length;if(r<0)throw new Error("Length too small to hold parameter r");let i=new Uint8Array(r);return new Uint8Array([...i,...this.data.r])}}s(t){if(t===void 0)return this.data.s;{let r=t-this.data.s.length;if(r<0)throw new Error("Length too small to hold parameter s");let i=new Uint8Array(r);return new Uint8Array([...i,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){let t=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,r=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,i=t.length,n=r.length,o=new Uint8Array([Lz,i,...t,Lz,n,...r]);return new Uint8Array([48,o.length,...o])}};$N.Secp256k1Signature=Uz;var Che=class e extends Uz{static fromFixedLength(t){if(t.length!==65)throw new Error(`Got invalid data length ${t.length}. Expected 32 + 32 + 1`);return new e(KN(t.slice(0,32)),KN(t.slice(32,64)),t[64])}constructor(t,r,i){if(super(t,r),!Number.isInteger(i))throw new Error("The recovery parameter must be an integer.");if(i<0||i>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=i}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}};$N.ExtendedSecp256k1Signature=Che});var qet=ir(YN=>{"use strict";J();K();z();var Het=YN&&YN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(YN,"__esModule",{value:!0});YN.Secp256k1=void 0;var Fz=Ps(),Get=Het(qv()),HQt=Het(_J()),GQt=whe(),pC=new HQt.default.ec("secp256k1"),qQt=new Get.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex"),Ohe=class{static async makeKeypair(t){if(t.length!==32)throw new Error("input data is not a valid secp256k1 private key");let r=pC.keyFromPrivate(t);if(r.validate().result!==!0)throw new Error("input data is not a valid secp256k1 private key");if(new Get.default(t).gte(qQt))throw new Error("input data is not a valid secp256k1 private key");return{privkey:(0,Fz.fromHex)(r.getPrivate("hex")),pubkey:Uint8Array.from(r.getPublic("array"))}}static async createSignature(t,r){if(t.length===0)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");let i=pC.keyFromPrivate(r),{r:n,s:o,recoveryParam:d}=i.sign(t,{canonical:!0});if(typeof d!="number")throw new Error("Recovery param missing");return new GQt.ExtendedSecp256k1Signature(Uint8Array.from(n.toArray()),Uint8Array.from(o.toArray()),d)}static async verifySignature(t,r,i){if(r.length===0)throw new Error("Message hash must not be empty");if(r.length>32)throw new Error("Message hash length must not exceed 32 bytes");let n=pC.keyFromPublic(i);try{return n.verify(r,t.toDer())}catch{return!1}}static recoverPubkey(t,r){let i={r:(0,Fz.toHex)(t.r()),s:(0,Fz.toHex)(t.s())},n=pC.recoverPubKey(r,i,t.recovery),o=pC.keyFromPublic(n);return(0,Fz.fromHex)(o.getPublic(!1,"hex"))}static compressPubkey(t){switch(t.length){case 33:return t;case 65:return Uint8Array.from(pC.keyFromPublic(t).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static uncompressPubkey(t){switch(t.length){case 33:return Uint8Array.from(pC.keyFromPublic(t).getPublic(!1,"array"));case 65:return t;default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(t){switch(t.length){case 64:return t;case 65:return t.slice(0,64);default:throw new Error("Invalid signature length")}}};YN.Secp256k1=Ohe});var Jet=ir(WN=>{"use strict";J();K();z();var VQt=WN&&WN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(WN,"__esModule",{value:!0});WN.Decimal=void 0;var Hm=VQt(qv()),Vet=100,Nhe=class e{static fromUserInput(t,r){e.verifyFractionalDigits(r);let i=t.match(/[^0-9.]/);if(i)throw new Error(`Invalid character at position ${i.index+1}`);let n,o;if(t==="")n="0",o="";else if(t.search(/\./)===-1)n=t,o="";else{let g=t.split(".");switch(g.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!g[1])throw new Error("Fractional part missing");n=g[0],o=g[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(o.length>r)throw new Error("Got more fractional digits than supported");let d=`${n}${o.padEnd(r,"0")}`;return new e(d,r)}static fromAtomics(t,r){return e.verifyFractionalDigits(r),new e(t,r)}static zero(t){return e.verifyFractionalDigits(t),new e("0",t)}static one(t){return e.verifyFractionalDigits(t),new e("1"+"0".repeat(t),t)}static verifyFractionalDigits(t){if(!Number.isInteger(t))throw new Error("Fractional digits is not an integer");if(t<0)throw new Error("Fractional digits must not be negative");if(t>Vet)throw new Error(`Fractional digits must not exceed ${Vet}`)}static compare(t,r){if(t.fractionalDigits!==r.fractionalDigits)throw new Error("Fractional digits do not match");return t.data.atomics.cmp(new Hm.default(r.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(t,r){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new Hm.default(t),fractionalDigits:r}}clone(){return new e(this.atomics,this.fractionalDigits)}floor(){let t=new Hm.default(10).pow(new Hm.default(this.data.fractionalDigits)),r=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():e.fromAtomics(r.mul(t).toString(),this.fractionalDigits)}ceil(){let t=new Hm.default(10).pow(new Hm.default(this.data.fractionalDigits)),r=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():e.fromAtomics(r.addn(1).mul(t).toString(),this.fractionalDigits)}toString(){let t=new Hm.default(10).pow(new Hm.default(this.data.fractionalDigits)),r=this.data.atomics.div(t),i=this.data.atomics.mod(t);if(i.isZero())return r.toString();{let o=i.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${r.toString()}.${o}`}}toFloatApproximation(){let t=Number(this.toString());if(Number.isNaN(t))throw new Error("Conversion to number failed");return t}plus(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");let r=this.data.atomics.add(new Hm.default(t.atomics));return new e(r.toString(),this.fractionalDigits)}minus(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");let r=this.data.atomics.sub(new Hm.default(t.atomics));if(r.ltn(0))throw new Error("Difference must not be negative");return new e(r.toString(),this.fractionalDigits)}multiply(t){let r=this.data.atomics.mul(new Hm.default(t.toString()));return new e(r.toString(),this.fractionalDigits)}equals(t){return e.compare(this,t)===0}isLessThan(t){return e.compare(this,t)<0}isLessThanOrEqual(t){return e.compare(this,t)<=0}isGreaterThan(t){return e.compare(this,t)>0}isGreaterThanOrEqual(t){return e.compare(this,t)>=0}};WN.Decimal=Nhe});var zet=ir(b_=>{"use strict";J();K();z();var JQt=b_&&b_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b_,"__esModule",{value:!0});b_.Uint64=b_.Uint53=b_.Int53=b_.Uint32=void 0;var Qz=JQt(qv()),zQt=new Qz.default("18446744073709551615",10,"be"),xhe=class e{static fromBigEndianBytes(t){return e.fromBytes(t)}static fromBytes(t,r="be"){if(t.length!==4)throw new Error("Invalid input length. Expected 4 bytes.");for(let n=0;n<t.length;++n)if(!Number.isInteger(t[n])||t[n]>255||t[n]<0)throw new Error("Invalid value in byte. Found: "+t[n]);let i=r==="be"?t:Array.from(t).reverse();return new e(i[0]*2**24+i[1]*2**16+i[2]*2**8+i[3])}static fromString(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new e(Number.parseInt(t,10))}constructor(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<0||t>4294967295)throw new Error("Input not in uint32 range: "+t.toString());this.data=t}toBytesBigEndian(){return new Uint8Array([Math.floor(this.data/2**24)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**0)&255])}toBytesLittleEndian(){return new Uint8Array([Math.floor(this.data/2**0)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**24)&255])}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}};b_.Uint32=xhe;var hP=class e{static fromString(t){if(!t.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new e(Number.parseInt(t,10))}constructor(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+t.toString());this.data=t}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}};b_.Int53=hP;var The=class e{static fromString(t){let r=hP.fromString(t);return new e(r.toNumber())}constructor(t){let r=new hP(t);if(r.toNumber()<0)throw new Error("Input is negative");this.data=r}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}};b_.Uint53=The;var Bhe=class e{static fromBytesBigEndian(t){return e.fromBytes(t)}static fromBytes(t,r="be"){if(t.length!==8)throw new Error("Invalid input length. Expected 8 bytes.");for(let n=0;n<t.length;++n)if(!Number.isInteger(t[n])||t[n]>255||t[n]<0)throw new Error("Invalid value in byte. Found: "+t[n]);let i=r==="be"?Array.from(t):Array.from(t).reverse();return new e(new Qz.default(i))}static fromString(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new e(new Qz.default(t,10,"be"))}static fromNumber(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");let r;try{r=new Qz.default(t)}catch{throw new Error("Input is not a safe integer")}return new e(r)}constructor(t){if(t.isNeg())throw new Error("Input is negative");if(t.gt(zQt))throw new Error("Input exceeds uint64 range");this.data=t}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toBigInt(){return BigInt(this.toString())}toNumber(){return this.data.toNumber()}};b_.Uint64=Bhe});var Uh=ir(E_=>{"use strict";J();K();z();Object.defineProperty(E_,"__esModule",{value:!0});E_.Uint64=E_.Uint53=E_.Uint32=E_.Int53=E_.Decimal=void 0;var KQt=Jet();Object.defineProperty(E_,"Decimal",{enumerable:!0,get:function(){return KQt.Decimal}});var Hz=zet();Object.defineProperty(E_,"Int53",{enumerable:!0,get:function(){return Hz.Int53}});Object.defineProperty(E_,"Uint32",{enumerable:!0,get:function(){return Hz.Uint32}});Object.defineProperty(E_,"Uint53",{enumerable:!0,get:function(){return Hz.Uint53}});Object.defineProperty(E_,"Uint64",{enumerable:!0,get:function(){return Hz.Uint64}})});var Wet=ir(Kl=>{"use strict";J();K();z();var $et=Kl&&Kl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.stringToPath=Kl.pathToString=Kl.Slip10=Kl.Slip10RawIndex=Kl.slip10CurveFromString=Kl.Slip10Curve=void 0;var Ket=Ps(),Yet=Uh(),AP=$et(qv()),$Qt=$et(_J()),Gz=Hle(),qz=hz(),xb;(function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"})(xb=Kl.Slip10Curve||(Kl.Slip10Curve={}));function YQt(e){switch(e){case xb.Ed25519:return xb.Ed25519;case xb.Secp256k1:return xb.Secp256k1;default:throw new Error(`Unknown curve string: '${e}'`)}}Kl.slip10CurveFromString=YQt;var pP=class e extends Yet.Uint32{static hardened(t){return new e(t+2**31)}static normal(t){return new e(t)}isHardened(){return this.data>=2**31}};Kl.Slip10RawIndex=pP;var WQt=new $Qt.default.ec("secp256k1"),Mhe=class e{static derivePath(t,r,i){let n=this.master(t,r);for(let o of i)n=this.child(t,n.privkey,n.chainCode,o);return n}static master(t,r){let i=new Gz.Hmac(qz.Sha512,(0,Ket.toAscii)(t)).update(r).digest(),n=i.slice(0,32),o=i.slice(32,64);return t!==xb.Ed25519&&(this.isZero(n)||this.isGteN(t,n))?this.master(t,i):{chainCode:o,privkey:n}}static child(t,r,i,n){let o;if(n.isHardened()){let d=new Uint8Array([0,...r,...n.toBytesBigEndian()]);o=new Gz.Hmac(qz.Sha512,i).update(d).digest()}else{if(t===xb.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{let d=new Uint8Array([...e.serializedPoint(t,new AP.default(r)),...n.toBytesBigEndian()]);o=new Gz.Hmac(qz.Sha512,i).update(d).digest()}}return this.childImpl(t,r,i,n,o)}static serializedPoint(t,r){if(t===xb.Secp256k1)return(0,Ket.fromHex)(WQt.g.mul(r).encodeCompressed("hex"));throw new Error("curve not supported")}static childImpl(t,r,i,n,o){let d=o.slice(0,32),g=o.slice(32,64),y=g;if(t===xb.Ed25519)return{chainCode:y,privkey:d};let _=this.n(t),I=new AP.default(d).add(new AP.default(r)).mod(_),N=Uint8Array.from(I.toArray("be",32));if(this.isGteN(t,d)||this.isZero(N)){let T=new Gz.Hmac(qz.Sha512,i).update(new Uint8Array([1,...g,...n.toBytesBigEndian()])).digest();return this.childImpl(t,r,i,n,T)}return{chainCode:y,privkey:N}}static isZero(t){return t.every(r=>r===0)}static isGteN(t,r){return new AP.default(r).gte(this.n(t))}static n(t){if(t===xb.Secp256k1)return new AP.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);throw new Error("curve not supported")}};Kl.Slip10=Mhe;function XQt(e){return e.reduce((t,r)=>{let i=r.isHardened()?`${r.toNumber()-2147483648}'`:r.toString();return t+"/"+i},"m")}Kl.pathToString=XQt;function ZQt(e){if(!e.startsWith("m"))throw new Error("Path string must start with 'm'");let t=e.slice(1),r=new Array;for(;t;){let i=t.match(/^\/([0-9]+)('?)/);if(!i)throw new Error("Syntax error while reading path component");let[n,o,d]=i,g=Yet.Uint53.fromString(o).toNumber();if(g>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");d?r.push(pP.hardened(g)):r.push(pP.normal(g)),t=t.slice(n.length)}return r}Kl.stringToPath=ZQt});var $l=ir(bo=>{"use strict";J();K();z();Object.defineProperty(bo,"__esModule",{value:!0});bo.stringToPath=bo.Slip10RawIndex=bo.slip10CurveFromString=bo.Slip10Curve=bo.Slip10=bo.pathToString=bo.sha512=bo.Sha512=bo.sha256=bo.Sha256=bo.Secp256k1Signature=bo.ExtendedSecp256k1Signature=bo.Secp256k1=bo.ripemd160=bo.Ripemd160=bo.Random=bo.Xchacha20poly1305Ietf=bo.xchacha20NonceLength=bo.isArgon2idOptions=bo.Ed25519Keypair=bo.Ed25519=bo.Argon2id=bo.keccak256=bo.Keccak256=bo.Hmac=bo.EnglishMnemonic=bo.Bip39=void 0;var Xet=PZe();Object.defineProperty(bo,"Bip39",{enumerable:!0,get:function(){return Xet.Bip39}});Object.defineProperty(bo,"EnglishMnemonic",{enumerable:!0,get:function(){return Xet.EnglishMnemonic}});var jQt=Hle();Object.defineProperty(bo,"Hmac",{enumerable:!0,get:function(){return jQt.Hmac}});var Zet=zZe();Object.defineProperty(bo,"Keccak256",{enumerable:!0,get:function(){return Zet.Keccak256}});Object.defineProperty(bo,"keccak256",{enumerable:!0,get:function(){return Zet.keccak256}});var XN=Net();Object.defineProperty(bo,"Argon2id",{enumerable:!0,get:function(){return XN.Argon2id}});Object.defineProperty(bo,"Ed25519",{enumerable:!0,get:function(){return XN.Ed25519}});Object.defineProperty(bo,"Ed25519Keypair",{enumerable:!0,get:function(){return XN.Ed25519Keypair}});Object.defineProperty(bo,"isArgon2idOptions",{enumerable:!0,get:function(){return XN.isArgon2idOptions}});Object.defineProperty(bo,"xchacha20NonceLength",{enumerable:!0,get:function(){return XN.xchacha20NonceLength}});Object.defineProperty(bo,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return XN.Xchacha20poly1305Ietf}});var eHt=xet();Object.defineProperty(bo,"Random",{enumerable:!0,get:function(){return eHt.Random}});var jet=Qet();Object.defineProperty(bo,"Ripemd160",{enumerable:!0,get:function(){return jet.Ripemd160}});Object.defineProperty(bo,"ripemd160",{enumerable:!0,get:function(){return jet.ripemd160}});var tHt=qet();Object.defineProperty(bo,"Secp256k1",{enumerable:!0,get:function(){return tHt.Secp256k1}});var ett=whe();Object.defineProperty(bo,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return ett.ExtendedSecp256k1Signature}});Object.defineProperty(bo,"Secp256k1Signature",{enumerable:!0,get:function(){return ett.Secp256k1Signature}});var Vz=hz();Object.defineProperty(bo,"Sha256",{enumerable:!0,get:function(){return Vz.Sha256}});Object.defineProperty(bo,"sha256",{enumerable:!0,get:function(){return Vz.sha256}});Object.defineProperty(bo,"Sha512",{enumerable:!0,get:function(){return Vz.Sha512}});Object.defineProperty(bo,"sha512",{enumerable:!0,get:function(){return Vz.sha512}});var ZN=Wet();Object.defineProperty(bo,"pathToString",{enumerable:!0,get:function(){return ZN.pathToString}});Object.defineProperty(bo,"Slip10",{enumerable:!0,get:function(){return ZN.Slip10}});Object.defineProperty(bo,"Slip10Curve",{enumerable:!0,get:function(){return ZN.Slip10Curve}});Object.defineProperty(bo,"slip10CurveFromString",{enumerable:!0,get:function(){return ZN.slip10CurveFromString}});Object.defineProperty(bo,"Slip10RawIndex",{enumerable:!0,get:function(){return ZN.Slip10RawIndex}});Object.defineProperty(bo,"stringToPath",{enumerable:!0,get:function(){return ZN.stringToPath}})});var gP=ir(BA=>{"use strict";J();K();z();Object.defineProperty(BA,"__esModule",{value:!0});BA.isMultisigThresholdPubkey=BA.isSinglePubkey=BA.pubkeyType=BA.isSecp256k1Pubkey=BA.isEd25519Pubkey=void 0;function rHt(e){return e.type==="tendermint/PubKeyEd25519"}BA.isEd25519Pubkey=rHt;function nHt(e){return e.type==="tendermint/PubKeySecp256k1"}BA.isSecp256k1Pubkey=nHt;BA.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"};function iHt(e){return[BA.pubkeyType.ed25519,BA.pubkeyType.secp256k1,BA.pubkeyType.sr25519].includes(e.type)}BA.isSinglePubkey=iHt;function oHt(e){return e.type==="tendermint/PubKeyMultisigThreshold"}BA.isMultisigThresholdPubkey=oHt});var zz=ir(Pp=>{"use strict";J();K();z();Object.defineProperty(Pp,"__esModule",{value:!0});Pp.encodeBech32Pubkey=Pp.encodeAminoPubkey=Pp.decodeBech32Pubkey=Pp.decodeAminoPubkey=Pp.encodeEd25519Pubkey=Pp.encodeSecp256k1Pubkey=void 0;var Lp=Ps(),aHt=Uh(),_P=Uf(),oR=gP();function sHt(e){if(e.length!==33||e[0]!==2&&e[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:oR.pubkeyType.secp256k1,value:(0,Lp.toBase64)(e)}}Pp.encodeSecp256k1Pubkey=sHt;function cHt(e){if(e.length!==32)throw new Error("Ed25519 public key must be 32 bytes long");return{type:oR.pubkeyType.ed25519,value:(0,Lp.toBase64)(e)}}Pp.encodeEd25519Pubkey=cHt;var Dhe=(0,Lp.fromHex)("eb5ae98721"),khe=(0,Lp.fromHex)("1624de6420"),ttt=(0,Lp.fromHex)("0dfb100520"),Jz=(0,Lp.fromHex)("22c1f7e2");function Phe(e){if((0,_P.arrayContentStartsWith)(e,Dhe)){let t=e.slice(Dhe.length);if(t.length!==33)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:oR.pubkeyType.secp256k1,value:(0,Lp.toBase64)(t)}}else if((0,_P.arrayContentStartsWith)(e,khe)){let t=e.slice(khe.length);if(t.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:oR.pubkeyType.ed25519,value:(0,Lp.toBase64)(t)}}else if((0,_P.arrayContentStartsWith)(e,ttt)){let t=e.slice(ttt.length);if(t.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:oR.pubkeyType.sr25519,value:(0,Lp.toBase64)(t)}}else{if((0,_P.arrayContentStartsWith)(e,Jz))return dHt(e);throw new Error("Unsupported public key type. Amino data starts with: "+(0,Lp.toHex)(e.slice(0,5)))}}Pp.decodeAminoPubkey=Phe;function uHt(e){let{data:t}=(0,Lp.fromBech32)(e);return Phe(t)}Pp.decodeBech32Pubkey=uHt;function rtt(e){if(e.length<1)throw new Error("Can't decode varint. EOF");if(e[0]>127)throw new Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[e[0],1]}function dHt(e){let t=Array.from(e),r=t.splice(0,Jz.length);if(!(0,_P.arrayContentStartsWith)(r,Jz))throw new Error("Invalid multisig prefix.");if(t.shift()!=8)throw new Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");let[i,n]=rtt(t);t.splice(0,n);let o=[];for(;t.length>0;){if(t.shift()!=18)throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");let[d,g]=rtt(t);if(t.splice(0,g),t.length<d)throw new Error("Invalid multisig data length.");let y=t.splice(0,d),_=Phe(Uint8Array.from(y));o.push(_)}return{type:oR.pubkeyType.multisigThreshold,value:{threshold:i.toString(),pubkeys:o}}}function ntt(e){let t=aHt.Uint53.fromString(e.toString()).toNumber();if(t>127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]}function Lhe(e){if((0,oR.isMultisigThresholdPubkey)(e)){let t=Array.from(Jz);t.push(8),t.push(...ntt(e.value.threshold));for(let r of e.value.pubkeys.map(i=>Lhe(i)))t.push(18),t.push(...ntt(r.length)),t.push(...r);return new Uint8Array(t)}else{if((0,oR.isEd25519Pubkey)(e))return new Uint8Array([...khe,...(0,Lp.fromBase64)(e.value)]);if((0,oR.isSecp256k1Pubkey)(e))return new Uint8Array([...Dhe,...(0,Lp.fromBase64)(e.value)]);throw new Error("Unsupported pubkey type")}}Pp.encodeAminoPubkey=Lhe;function fHt(e,t){return(0,Lp.toBech32)(t,Lhe(e))}Pp.encodeBech32Pubkey=fHt});var mP=ir(Tb=>{"use strict";J();K();z();Object.defineProperty(Tb,"__esModule",{value:!0});Tb.pubkeyToAddress=Tb.pubkeyToRawAddress=Tb.rawSecp256k1PubkeyToRawAddress=Tb.rawEd25519PubkeyToRawAddress=void 0;var Kz=$l(),Fhe=Ps(),lHt=zz(),Uhe=gP();function itt(e){if(e.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${e.length}`);return(0,Kz.sha256)(e).slice(0,20)}Tb.rawEd25519PubkeyToRawAddress=itt;function ott(e){if(e.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`);return(0,Kz.ripemd160)((0,Kz.sha256)(e))}Tb.rawSecp256k1PubkeyToRawAddress=ott;function att(e){if((0,Uhe.isSecp256k1Pubkey)(e)){let t=(0,Fhe.fromBase64)(e.value);return ott(t)}else if((0,Uhe.isEd25519Pubkey)(e)){let t=(0,Fhe.fromBase64)(e.value);return itt(t)}else if((0,Uhe.isMultisigThresholdPubkey)(e)){let t=(0,lHt.encodeAminoPubkey)(e);return(0,Kz.sha256)(t).slice(0,20)}else throw new Error("Unsupported public key type")}Tb.pubkeyToRawAddress=att;function hHt(e,t){return(0,Fhe.toBech32)(t,att(e))}Tb.pubkeyToAddress=hHt});var ctt=ir(Bb=>{"use strict";J();K();z();Object.defineProperty(Bb,"__esModule",{value:!0});Bb.addCoins=Bb.parseCoins=Bb.coins=Bb.coin=void 0;var Qhe=Uh();function stt(e,t){let r;if(typeof e=="number")try{r=new Qhe.Uint53(e).toString()}catch{throw new Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!e.match(/^[0-9]+$/))throw new Error("Invalid unsigned integer string format");r=e.replace(/^0*/,"")||"0"}return{amount:r,denom:t}}Bb.coin=stt;function AHt(e,t){return[stt(e,t)]}Bb.coins=AHt;function pHt(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map(t=>{let r=t.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!r)throw new Error("Got an invalid coin string");return{amount:r[1].replace(/^0+/,"")||"0",denom:r[2]}})}Bb.parseCoins=pHt;function gHt(e,t){if(e.denom!==t.denom)throw new Error("Trying to add two coins with different denoms");return{amount:Qhe.Decimal.fromAtomics(e.amount,0).plus(Qhe.Decimal.fromAtomics(t.amount,0)).atomics,denom:e.denom}}Bb.addCoins=gHt});var ltt=ir(jN=>{"use strict";J();K();z();Object.defineProperty(jN,"__esModule",{value:!0});jN.createMultisigThresholdPubkey=jN.compareArrays=void 0;var utt=Ps(),_Ht=Uh(),dtt=mP();function ftt(e,t){let r=(0,utt.toHex)(e),i=(0,utt.toHex)(t);return r===i?0:r<i?-1:1}jN.compareArrays=ftt;function mHt(e,t,r=!1){let i=new _Ht.Uint53(t);if(i.toNumber()>e.length)throw new Error(`Threshold k = ${i.toNumber()} exceeds number of keys n = ${e.length}`);let n=r?e:Array.from(e).sort((o,d)=>{let g=(0,dtt.pubkeyToRawAddress)(o),y=(0,dtt.pubkeyToRawAddress)(d);return ftt(g,y)});return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:i.toString(),pubkeys:n}}}jN.createMultisigThresholdPubkey=mHt});var htt=ir($z=>{"use strict";J();K();z();Object.defineProperty($z,"__esModule",{value:!0});$z.omitDefault=void 0;function yHt(e){switch(typeof e){case"string":return e===""?void 0:e;case"number":return e===0?void 0:e;case"bigint":return e===BigInt(0)?void 0:e;case"boolean":return e||void 0;default:throw new Error(`Got unsupported type '${typeof e}'`)}}$z.omitDefault=yHt});var Hhe=ir(Yz=>{"use strict";J();K();z();Object.defineProperty(Yz,"__esModule",{value:!0});Yz.makeCosmoshubPath=void 0;var yP=$l();function bHt(e){return[yP.Slip10RawIndex.hardened(44),yP.Slip10RawIndex.hardened(118),yP.Slip10RawIndex.hardened(0),yP.Slip10RawIndex.normal(0),yP.Slip10RawIndex.normal(e)]}Yz.makeCosmoshubPath=bHt});var Wz=ir(ex=>{"use strict";J();K();z();Object.defineProperty(ex,"__esModule",{value:!0});ex.decodeSignature=ex.encodeSecp256k1Signature=void 0;var Ghe=Ps(),EHt=zz(),vHt=gP();function RHt(e,t){if(t.length!==64)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,EHt.encodeSecp256k1Pubkey)(e),signature:(0,Ghe.toBase64)(t)}}ex.encodeSecp256k1Signature=RHt;function SHt(e){if(e.pub_key.type===vHt.pubkeyType.secp256k1)return{pubkey:(0,Ghe.fromBase64)(e.pub_key.value),signature:(0,Ghe.fromBase64)(e.signature)};throw new Error("Unsupported pubkey type")}ex.decodeSignature=SHt});var Xz=ir(Mb=>{"use strict";J();K();z();Object.defineProperty(Mb,"__esModule",{value:!0});Mb.serializeSignDoc=Mb.escapeCharacters=Mb.makeSignDoc=Mb.sortedJsonStringify=void 0;var IHt=Ps(),Att=Uh();function qhe(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(qhe);let t=Object.keys(e).sort(),r={};return t.forEach(i=>{r[i]=qhe(e[i])}),r}function ptt(e){return JSON.stringify(qhe(e))}Mb.sortedJsonStringify=ptt;function CHt(e,t,r,i,n,o,d){return{chain_id:r,account_number:Att.Uint53.fromString(n.toString()).toString(),sequence:Att.Uint53.fromString(o.toString()).toString(),fee:t,msgs:e,memo:i||"",...d&&{timeout_height:d.toString()}}}Mb.makeSignDoc=CHt;function gtt(e){let t=/&/g,r=/</g,i=/>/g;return e.replace(t,"\\u0026").replace(r,"\\u003c").replace(i,"\\u003e")}Mb.escapeCharacters=gtt;function wHt(e){let t=gtt(ptt(e));return(0,IHt.toUtf8)(t)}Mb.serializeSignDoc=wHt});var Vhe=ir(MA=>{"use strict";J();K();z();Object.defineProperty(MA,"__esModule",{value:!0});MA.decrypt=MA.encrypt=MA.supportedAlgorithms=MA.executeKdf=MA.cosmjsSalt=void 0;var lI=$l(),OHt=Ps();MA.cosmjsSalt=(0,OHt.toAscii)("The CosmJS salt.");async function NHt(e,t){switch(t.algorithm){case"argon2id":{let r=t.params;if(!(0,lI.isArgon2idOptions)(r))throw new Error("Invalid format of argon2id params");return lI.Argon2id.execute(e,MA.cosmjsSalt,r)}default:throw new Error("Unsupported KDF algorithm")}}MA.executeKdf=NHt;MA.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function xHt(e,t,r){if(r.algorithm===MA.supportedAlgorithms.xchacha20poly1305Ietf){let i=lI.Random.getBytes(lI.xchacha20NonceLength);return new Uint8Array([...i,...await lI.Xchacha20poly1305Ietf.encrypt(e,t,i)])}else throw new Error(`Unsupported encryption algorithm: '${r.algorithm}'`)}MA.encrypt=xHt;async function THt(e,t,r){if(r.algorithm===MA.supportedAlgorithms.xchacha20poly1305Ietf){let i=e.slice(0,lI.xchacha20NonceLength);return lI.Xchacha20poly1305Ietf.decrypt(e.slice(lI.xchacha20NonceLength),t,i)}else throw new Error(`Unsupported encryption algorithm: '${r.algorithm}'`)}MA.decrypt=THt});var mtt=ir(rx=>{"use strict";J();K();z();Object.defineProperty(rx,"__esModule",{value:!0});rx.Secp256k1HdWallet=rx.extractKdfConfiguration=void 0;var v_=$l(),bP=Ps(),tx=Uf(),BHt=mP(),MHt=Hhe(),DHt=Wz(),kHt=Xz(),EP=Vhe(),Zz="secp256k1wallet-v1",PHt={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function LHt(e){return!(!(0,tx.isNonNullObject)(e)||typeof e.hdPath!="string"||typeof e.prefix!="string")}function UHt(e){return e.kdf}function FHt(e){let t=JSON.parse(e);if(!(0,tx.isNonNullObject)(t))throw new Error("Root document is not an object.");if(t.type===Zz)return UHt(t);throw new Error("Unsupported serialization type")}rx.extractKdfConfiguration=FHt;var _tt={bip39Password:"",hdPaths:[(0,MHt.makeCosmoshubPath)(0)],prefix:"cosmos"},Jhe=class e{static async fromMnemonic(t,r={}){let i=new v_.EnglishMnemonic(t),n=await v_.Bip39.mnemonicToSeed(i,r.bip39Password);return new e(i,{...r,seed:n})}static async generate(t=12,r={}){let i=4*Math.floor(11*t/33),n=v_.Random.getBytes(i),o=v_.Bip39.encode(n);return e.fromMnemonic(o.toString(),r)}static async deserialize(t,r){let i=JSON.parse(t);if(!(0,tx.isNonNullObject)(i))throw new Error("Root document is not an object.");if(i.type===Zz)return e.deserializeTypeV1(t,r);throw new Error("Unsupported serialization type")}static async deserializeWithEncryptionKey(t,r){let i=JSON.parse(t);if(!(0,tx.isNonNullObject)(i))throw new Error("Root document is not an object.");let n=i;switch(n.type){case Zz:{let o=await(0,EP.decrypt)((0,bP.fromBase64)(n.data),r,n.encryption),d=JSON.parse((0,bP.fromUtf8)(o)),{mnemonic:g,accounts:y}=d;if((0,tx.assert)(typeof g=="string"),!Array.isArray(y))throw new Error("Property 'accounts' is not an array");if(!y.every(N=>LHt(N)))throw new Error("Account is not in the correct format.");let _=y[0].prefix;if(!y.every(({prefix:N})=>N===_))throw new Error("Accounts do not all have the same prefix");let I=y.map(({hdPath:N})=>(0,v_.stringToPath)(N));return e.fromMnemonic(g,{hdPaths:I,prefix:_})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(t,r){let i=JSON.parse(t);if(!(0,tx.isNonNullObject)(i))throw new Error("Root document is not an object.");let n=await(0,EP.executeKdf)(r,i.kdf);return e.deserializeWithEncryptionKey(t,n)}constructor(t,r){let i=r.hdPaths??_tt.hdPaths,n=r.prefix??_tt.prefix;this.secret=t,this.seed=r.seed,this.accounts=i.map(o=>({hdPath:o,prefix:n}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:r,pubkey:i,address:n})=>({algo:r,pubkey:i,address:n}))}async signAmino(t,r){let n=(await this.getAccountsWithPrivkeys()).find(({address:I})=>I===t);if(n===void 0)throw new Error(`Address ${t} not found in wallet`);let{privkey:o,pubkey:d}=n,g=(0,v_.sha256)((0,kHt.serializeSignDoc)(r)),y=await v_.Secp256k1.createSignature(g,o),_=new Uint8Array([...y.r(32),...y.s(32)]);return{signed:r,signature:(0,DHt.encodeSecp256k1Signature)(d,_)}}async serialize(t){let r=PHt,i=await(0,EP.executeKdf)(t,r);return this.serializeWithEncryptionKey(i,r)}async serializeWithEncryptionKey(t,r){let i={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:y,prefix:_})=>({hdPath:(0,v_.pathToString)(y),prefix:_}))},n=(0,bP.toUtf8)(JSON.stringify(i)),o={algorithm:EP.supportedAlgorithms.xchacha20poly1305Ietf},d=await(0,EP.encrypt)(n,t,o),g={type:Zz,kdf:r,encryption:o,data:(0,bP.toBase64)(d)};return JSON.stringify(g)}async getKeyPair(t){let{privkey:r}=v_.Slip10.derivePath(v_.Slip10Curve.Secp256k1,this.seed,t),{pubkey:i}=await v_.Secp256k1.makeKeypair(r);return{privkey:r,pubkey:v_.Secp256k1.compressPubkey(i)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:t,prefix:r})=>{let{privkey:i,pubkey:n}=await this.getKeyPair(t),o=(0,bP.toBech32)(r,(0,BHt.rawSecp256k1PubkeyToRawAddress)(n));return{algo:"secp256k1",privkey:i,pubkey:n,address:o}}))}};rx.Secp256k1HdWallet=Jhe});var ytt=ir(eK=>{"use strict";J();K();z();Object.defineProperty(eK,"__esModule",{value:!0});eK.Secp256k1Wallet=void 0;var jz=$l(),QHt=Ps(),HHt=mP(),GHt=Wz(),qHt=Xz(),zhe=class e{static async fromKey(t,r="cosmos"){let i=(await jz.Secp256k1.makeKeypair(t)).pubkey;return new e(t,jz.Secp256k1.compressPubkey(i),r)}constructor(t,r,i){this.privkey=t,this.pubkey=r,this.prefix=i}get address(){return(0,QHt.toBech32)(this.prefix,(0,HHt.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(t,r){if(t!==this.address)throw new Error(`Address ${t} not found in wallet`);let i=new jz.Sha256((0,qHt.serializeSignDoc)(r)).digest(),n=await jz.Secp256k1.createSignature(i,this.privkey),o=new Uint8Array([...n.r(32),...n.s(32)]);return{signed:r,signature:(0,GHt.encodeSecp256k1Signature)(this.pubkey,o)}}};eK.Secp256k1Wallet=zhe});var btt=ir(nx=>{"use strict";J();K();z();Object.defineProperty(nx,"__esModule",{value:!0});nx.makeStdTx=nx.isStdTx=void 0;function VHt(e){let{memo:t,msg:r,fee:i,signatures:n}=e;return typeof t=="string"&&Array.isArray(r)&&typeof i=="object"&&Array.isArray(n)}nx.isStdTx=VHt;function JHt(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}}nx.makeStdTx=JHt});var R_=ir(Ji=>{"use strict";J();K();z();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.executeKdf=Ji.makeStdTx=Ji.isStdTx=Ji.serializeSignDoc=Ji.makeSignDoc=Ji.encodeSecp256k1Signature=Ji.decodeSignature=Ji.Secp256k1Wallet=Ji.Secp256k1HdWallet=Ji.extractKdfConfiguration=Ji.pubkeyType=Ji.isSinglePubkey=Ji.isSecp256k1Pubkey=Ji.isMultisigThresholdPubkey=Ji.isEd25519Pubkey=Ji.makeCosmoshubPath=Ji.omitDefault=Ji.createMultisigThresholdPubkey=Ji.encodeSecp256k1Pubkey=Ji.encodeEd25519Pubkey=Ji.encodeBech32Pubkey=Ji.encodeAminoPubkey=Ji.decodeBech32Pubkey=Ji.decodeAminoPubkey=Ji.parseCoins=Ji.coins=Ji.coin=Ji.addCoins=Ji.rawSecp256k1PubkeyToRawAddress=Ji.rawEd25519PubkeyToRawAddress=Ji.pubkeyToRawAddress=Ji.pubkeyToAddress=void 0;var tK=mP();Object.defineProperty(Ji,"pubkeyToAddress",{enumerable:!0,get:function(){return tK.pubkeyToAddress}});Object.defineProperty(Ji,"pubkeyToRawAddress",{enumerable:!0,get:function(){return tK.pubkeyToRawAddress}});Object.defineProperty(Ji,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return tK.rawEd25519PubkeyToRawAddress}});Object.defineProperty(Ji,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return tK.rawSecp256k1PubkeyToRawAddress}});var rK=ctt();Object.defineProperty(Ji,"addCoins",{enumerable:!0,get:function(){return rK.addCoins}});Object.defineProperty(Ji,"coin",{enumerable:!0,get:function(){return rK.coin}});Object.defineProperty(Ji,"coins",{enumerable:!0,get:function(){return rK.coins}});Object.defineProperty(Ji,"parseCoins",{enumerable:!0,get:function(){return rK.parseCoins}});var ix=zz();Object.defineProperty(Ji,"decodeAminoPubkey",{enumerable:!0,get:function(){return ix.decodeAminoPubkey}});Object.defineProperty(Ji,"decodeBech32Pubkey",{enumerable:!0,get:function(){return ix.decodeBech32Pubkey}});Object.defineProperty(Ji,"encodeAminoPubkey",{enumerable:!0,get:function(){return ix.encodeAminoPubkey}});Object.defineProperty(Ji,"encodeBech32Pubkey",{enumerable:!0,get:function(){return ix.encodeBech32Pubkey}});Object.defineProperty(Ji,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return ix.encodeEd25519Pubkey}});Object.defineProperty(Ji,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return ix.encodeSecp256k1Pubkey}});var zHt=ltt();Object.defineProperty(Ji,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return zHt.createMultisigThresholdPubkey}});var KHt=htt();Object.defineProperty(Ji,"omitDefault",{enumerable:!0,get:function(){return KHt.omitDefault}});var $Ht=Hhe();Object.defineProperty(Ji,"makeCosmoshubPath",{enumerable:!0,get:function(){return $Ht.makeCosmoshubPath}});var vP=gP();Object.defineProperty(Ji,"isEd25519Pubkey",{enumerable:!0,get:function(){return vP.isEd25519Pubkey}});Object.defineProperty(Ji,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return vP.isMultisigThresholdPubkey}});Object.defineProperty(Ji,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return vP.isSecp256k1Pubkey}});Object.defineProperty(Ji,"isSinglePubkey",{enumerable:!0,get:function(){return vP.isSinglePubkey}});Object.defineProperty(Ji,"pubkeyType",{enumerable:!0,get:function(){return vP.pubkeyType}});var Ett=mtt();Object.defineProperty(Ji,"extractKdfConfiguration",{enumerable:!0,get:function(){return Ett.extractKdfConfiguration}});Object.defineProperty(Ji,"Secp256k1HdWallet",{enumerable:!0,get:function(){return Ett.Secp256k1HdWallet}});var YHt=ytt();Object.defineProperty(Ji,"Secp256k1Wallet",{enumerable:!0,get:function(){return YHt.Secp256k1Wallet}});var vtt=Wz();Object.defineProperty(Ji,"decodeSignature",{enumerable:!0,get:function(){return vtt.decodeSignature}});Object.defineProperty(Ji,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return vtt.encodeSecp256k1Signature}});var Rtt=Xz();Object.defineProperty(Ji,"makeSignDoc",{enumerable:!0,get:function(){return Rtt.makeSignDoc}});Object.defineProperty(Ji,"serializeSignDoc",{enumerable:!0,get:function(){return Rtt.serializeSignDoc}});var Stt=btt();Object.defineProperty(Ji,"isStdTx",{enumerable:!0,get:function(){return Stt.isStdTx}});Object.defineProperty(Ji,"makeStdTx",{enumerable:!0,get:function(){return Stt.makeStdTx}});var WHt=Vhe();Object.defineProperty(Ji,"executeKdf",{enumerable:!0,get:function(){return WHt.executeKdf}})});var gC,Itt=tn(()=>{"use strict";J();K();z();gC=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});function sR(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function S_(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Yl(e,...t){if(!sR(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function nK(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");S_(e.outputLen),S_(e.blockLen)}function cR(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function iK(e,t){Yl(e);let r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function wtt(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function I_(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function oK(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Gm(e,t){return e<<32-t|e>>>t}function ZHt(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function jHt(e){for(let t=0;t<e.length;t++)e[t]=ZHt(e[t]);return e}function C_(e){if(Yl(e),Ott)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=eGt[e[r]];return t}function Ctt(e){if(e>=aR._0&&e<=aR._9)return e-aR._0;if(e>=aR.A&&e<=aR.F)return e-(aR.A-10);if(e>=aR.a&&e<=aR.f)return e-(aR.a-10)}function _C(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Ott)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let n=0,o=0;n<r;n++,o+=2){let d=Ctt(e.charCodeAt(o)),g=Ctt(e.charCodeAt(o+1));if(d===void 0||g===void 0){let y=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+o)}i[n]=d*16+g}return i}function $he(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function mC(e){return typeof e=="string"&&(e=$he(e)),Yl(e),e}function Qf(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];Yl(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function RP(e){let t=i=>e().update(mC(i)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function w_(e=32){if(gC&&typeof gC.getRandomValues=="function")return gC.getRandomValues(new Uint8Array(e));if(gC&&typeof gC.randomBytes=="function")return Uint8Array.from(gC.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var XHt,Khe,Ott,eGt,aR,hI,Up=tn(()=>{"use strict";J();K();z();Itt();XHt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;Khe=XHt?e=>e:jHt,Ott=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",eGt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));aR={_0:48,_9:57,A:65,F:70,a:97,f:102};hI=class{}});function tGt(e,t,r,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,i);let n=BigInt(32),o=BigInt(4294967295),d=Number(r>>n&o),g=Number(r&o),y=i?4:0,_=i?0:4;e.setUint32(t+y,d,i),e.setUint32(t+_,g,i)}function Ntt(e,t,r){return e&t^~e&r}function xtt(e,t,r){return e&t^e&r^t&r}var SP,uR,Wl,Ttt=tn(()=>{"use strict";J();K();z();Up();SP=class extends hI{constructor(t,r,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=oK(this.buffer)}update(t){cR(this),t=mC(t),Yl(t);let{view:r,buffer:i,blockLen:n}=this,o=t.length;for(let d=0;d<o;){let g=Math.min(n-this.pos,o-d);if(g===n){let y=oK(t);for(;n<=o-d;d+=n)this.process(y,d);continue}i.set(t.subarray(d,d+g),this.pos),this.pos+=g,d+=g,this.pos===n&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){cR(this),iK(t,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:o}=this,{pos:d}=this;r[d++]=128,I_(this.buffer.subarray(d)),this.padOffset>n-d&&(this.process(i,0),d=0);for(let N=d;N<n;N++)r[N]=0;tGt(i,n-8,BigInt(this.length*8),o),this.process(i,0);let g=oK(t),y=this.outputLen;if(y%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let _=y/4,I=this.get();if(_>I.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<_;N++)g.setUint32(4*N,I[N],o)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let i=t.slice(0,r);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:r,buffer:i,length:n,finished:o,destroyed:d,pos:g}=this;return t.destroyed=d,t.finished=o,t.length=n,t.pos=g,n%r&&t.buffer.set(i),t}clone(){return this._cloneInto()}},uR=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Wl=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});function rGt(e,t=!1){return t?{h:Number(e&aK),l:Number(e>>Btt&aK)}:{h:Number(e>>Btt&aK)|0,l:Number(e&aK)|0}}function sK(e,t=!1){let r=e.length,i=new Uint32Array(r),n=new Uint32Array(r);for(let o=0;o<r;o++){let{h:d,l:g}=rGt(e[o],t);[i[o],n[o]]=[d,g]}return[i,n]}function Db(e,t,r,i){let n=(t>>>0)+(i>>>0);return{h:e+r+(n/2**32|0)|0,l:n|0}}var aK,Btt,Yhe,Whe,yC,bC,IP,CP,Mtt,Dtt,ktt,Ptt,Ltt,Utt,Ftt,Qtt,Htt,Gtt,Xhe=tn(()=>{"use strict";J();K();z();aK=BigInt(4294967295),Btt=BigInt(32);Yhe=(e,t,r)=>e>>>r,Whe=(e,t,r)=>e<<32-r|t>>>r,yC=(e,t,r)=>e>>>r|t<<32-r,bC=(e,t,r)=>e<<32-r|t>>>r,IP=(e,t,r)=>e<<64-r|t>>>r-32,CP=(e,t,r)=>e>>>r-32|t<<64-r,Mtt=(e,t,r)=>e<<r|t>>>32-r,Dtt=(e,t,r)=>t<<r|e>>>32-r,ktt=(e,t,r)=>t<<r-32|e>>>64-r,Ptt=(e,t,r)=>e<<r-32|t>>>64-r;Ltt=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Utt=(e,t,r,i)=>t+r+i+(e/2**32|0)|0,Ftt=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0),Qtt=(e,t,r,i,n)=>t+r+i+n+(e/2**32|0)|0,Htt=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0),Gtt=(e,t,r,i,n,o)=>t+r+i+n+o+(e/2**32|0)|0});var iGt,AI,cK,qtt,oGt,aGt,pI,gI,Zhe,qm,Vtt,ox=tn(()=>{"use strict";J();K();z();Ttt();Xhe();Up();iGt=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),AI=new Uint32Array(64),cK=class extends SP{constructor(t=32){super(64,t,8,!1),this.A=uR[0]|0,this.B=uR[1]|0,this.C=uR[2]|0,this.D=uR[3]|0,this.E=uR[4]|0,this.F=uR[5]|0,this.G=uR[6]|0,this.H=uR[7]|0}get(){let{A:t,B:r,C:i,D:n,E:o,F:d,G:g,H:y}=this;return[t,r,i,n,o,d,g,y]}set(t,r,i,n,o,d,g,y){this.A=t|0,this.B=r|0,this.C=i|0,this.D=n|0,this.E=o|0,this.F=d|0,this.G=g|0,this.H=y|0}process(t,r){for(let N=0;N<16;N++,r+=4)AI[N]=t.getUint32(r,!1);for(let N=16;N<64;N++){let T=AI[N-15],M=AI[N-2],D=Gm(T,7)^Gm(T,18)^T>>>3,P=Gm(M,17)^Gm(M,19)^M>>>10;AI[N]=P+AI[N-7]+D+AI[N-16]|0}let{A:i,B:n,C:o,D:d,E:g,F:y,G:_,H:I}=this;for(let N=0;N<64;N++){let T=Gm(g,6)^Gm(g,11)^Gm(g,25),M=I+T+Ntt(g,y,_)+iGt[N]+AI[N]|0,P=(Gm(i,2)^Gm(i,13)^Gm(i,22))+xtt(i,n,o)|0;I=_,_=y,y=g,g=d+M|0,d=o,o=n,n=i,i=M+P|0}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,d=d+this.D|0,g=g+this.E|0,y=y+this.F|0,_=_+this.G|0,I=I+this.H|0,this.set(i,n,o,d,g,y,_,I)}roundClean(){I_(AI)}destroy(){this.set(0,0,0,0,0,0,0,0),I_(this.buffer)}},qtt=sK(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),oGt=qtt[0],aGt=qtt[1],pI=new Uint32Array(80),gI=new Uint32Array(80),Zhe=class extends SP{constructor(t=64){super(128,t,16,!1),this.Ah=Wl[0]|0,this.Al=Wl[1]|0,this.Bh=Wl[2]|0,this.Bl=Wl[3]|0,this.Ch=Wl[4]|0,this.Cl=Wl[5]|0,this.Dh=Wl[6]|0,this.Dl=Wl[7]|0,this.Eh=Wl[8]|0,this.El=Wl[9]|0,this.Fh=Wl[10]|0,this.Fl=Wl[11]|0,this.Gh=Wl[12]|0,this.Gl=Wl[13]|0,this.Hh=Wl[14]|0,this.Hl=Wl[15]|0}get(){let{Ah:t,Al:r,Bh:i,Bl:n,Ch:o,Cl:d,Dh:g,Dl:y,Eh:_,El:I,Fh:N,Fl:T,Gh:M,Gl:D,Hh:P,Hl:G}=this;return[t,r,i,n,o,d,g,y,_,I,N,T,M,D,P,G]}set(t,r,i,n,o,d,g,y,_,I,N,T,M,D,P,G){this.Ah=t|0,this.Al=r|0,this.Bh=i|0,this.Bl=n|0,this.Ch=o|0,this.Cl=d|0,this.Dh=g|0,this.Dl=y|0,this.Eh=_|0,this.El=I|0,this.Fh=N|0,this.Fl=T|0,this.Gh=M|0,this.Gl=D|0,this.Hh=P|0,this.Hl=G|0}process(t,r){for(let ne=0;ne<16;ne++,r+=4)pI[ne]=t.getUint32(r),gI[ne]=t.getUint32(r+=4);for(let ne=16;ne<80;ne++){let ce=pI[ne-15]|0,le=gI[ne-15]|0,pe=yC(ce,le,1)^yC(ce,le,8)^Yhe(ce,le,7),ae=bC(ce,le,1)^bC(ce,le,8)^Whe(ce,le,7),W=pI[ne-2]|0,se=gI[ne-2]|0,O=yC(W,se,19)^IP(W,se,61)^Yhe(W,se,6),s=bC(W,se,19)^CP(W,se,61)^Whe(W,se,6),l=Ftt(ae,s,gI[ne-7],gI[ne-16]),A=Qtt(l,pe,O,pI[ne-7],pI[ne-16]);pI[ne]=A|0,gI[ne]=l|0}let{Ah:i,Al:n,Bh:o,Bl:d,Ch:g,Cl:y,Dh:_,Dl:I,Eh:N,El:T,Fh:M,Fl:D,Gh:P,Gl:G,Hh:q,Hl:Y}=this;for(let ne=0;ne<80;ne++){let ce=yC(N,T,14)^yC(N,T,18)^IP(N,T,41),le=bC(N,T,14)^bC(N,T,18)^CP(N,T,41),pe=N&M^~N&P,ae=T&D^~T&G,W=Htt(Y,le,ae,aGt[ne],gI[ne]),se=Gtt(W,q,ce,pe,oGt[ne],pI[ne]),O=W|0,s=yC(i,n,28)^IP(i,n,34)^IP(i,n,39),l=bC(i,n,28)^CP(i,n,34)^CP(i,n,39),A=i&o^i&g^o&g,m=n&d^n&y^d&y;q=P|0,Y=G|0,P=M|0,G=D|0,M=N|0,D=T|0,{h:N,l:T}=Db(_|0,I|0,se|0,O|0),_=g|0,I=y|0,g=o|0,y=d|0,o=i|0,d=n|0;let E=Ltt(O,l,m);i=Utt(E,se,s,A),n=E|0}({h:i,l:n}=Db(this.Ah|0,this.Al|0,i|0,n|0)),{h:o,l:d}=Db(this.Bh|0,this.Bl|0,o|0,d|0),{h:g,l:y}=Db(this.Ch|0,this.Cl|0,g|0,y|0),{h:_,l:I}=Db(this.Dh|0,this.Dl|0,_|0,I|0),{h:N,l:T}=Db(this.Eh|0,this.El|0,N|0,T|0),{h:M,l:D}=Db(this.Fh|0,this.Fl|0,M|0,D|0),{h:P,l:G}=Db(this.Gh|0,this.Gl|0,P|0,G|0),{h:q,l:Y}=Db(this.Hh|0,this.Hl|0,q|0,Y|0),this.set(i,n,o,d,g,y,_,I,N,T,M,D,P,G,q,Y)}roundClean(){I_(pI,gI)}destroy(){I_(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},qm=RP(()=>new cK),Vtt=RP(()=>new Zhe)});var grt=ir((kzn,prt)=>{"use strict";J();K();z();var kGt=_k(),PGt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";prt.exports=kGt(PGt)});var mrt=ir((zzn,_rt)=>{"use strict";J();K();z();var LGt=_k(),UGt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";_rt.exports=LGt(UGt)});var yrt=ir(yAe=>{"use strict";J();K();z();function gR(e,t,r){return t<=e&&e<=r}function mK(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function FGt(e){for(var t=String(e),r=t.length,i=0,n=[];i<r;){var o=t.charCodeAt(i);if(o<55296||o>57343)n.push(o);else if(56320<=o&&o<=57343)n.push(65533);else if(55296<=o&&o<=56319)if(i===r-1)n.push(65533);else{var d=e.charCodeAt(i+1);if(56320<=d&&d<=57343){var g=o&1023,y=d&1023;n.push(65536+(g<<10)+y),i+=1}else n.push(65533)}i+=1}return n}function QGt(e){for(var t="",r=0;r<e.length;++r){var i=e[r];i<=65535?t+=String.fromCharCode(i):(i-=65536,t+=String.fromCharCode((i>>10)+55296,(i&1023)+56320))}return t}var AK=-1;function mAe(e){this.tokens=[].slice.call(e)}mAe.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():AK},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var lx=-1;function _Ae(e,t){if(e)throw TypeError("Decoder error");return t||65533}var pK="utf-8";function gK(e,t){if(!(this instanceof gK))return new gK(e,t);if(e=e!==void 0?String(e).toLowerCase():pK,e!==pK)throw new Error("Encoding not supported. Only utf-8 is supported");t=mK(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}gK.prototype={decode:function(t,r){var i;typeof t=="object"&&t instanceof ArrayBuffer?i=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):i=new Uint8Array(0),r=mK(r),this._streaming||(this._decoder=new HGt({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var n=new mAe(i),o=[],d;!n.endOfStream()&&(d=this._decoder.handler(n,n.read()),d!==lx);)d!==null&&(Array.isArray(d)?o.push.apply(o,d):o.push(d));if(!this._streaming){do{if(d=this._decoder.handler(n,n.read()),d===lx)break;d!==null&&(Array.isArray(d)?o.push.apply(o,d):o.push(d))}while(!n.endOfStream());this._decoder=null}return o.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(o[0]===65279?(this._BOMseen=!0,o.shift()):this._BOMseen=!0),QGt(o)}};function _K(e,t){if(!(this instanceof _K))return new _K(e,t);if(e=e!==void 0?String(e).toLowerCase():pK,e!==pK)throw new Error("Encoding not supported. Only utf-8 is supported");t=mK(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}_K.prototype={encode:function(t,r){t=t?String(t):"",r=mK(r),this._streaming||(this._encoder=new GGt(this._options)),this._streaming=!!r.stream;for(var i=[],n=new mAe(FGt(t)),o;!n.endOfStream()&&(o=this._encoder.handler(n,n.read()),o!==lx);)Array.isArray(o)?i.push.apply(i,o):i.push(o);if(!this._streaming){for(;o=this._encoder.handler(n,n.read()),o!==lx;)Array.isArray(o)?i.push.apply(i,o):i.push(o);this._encoder=null}return new Uint8Array(i)}};function HGt(e){var t=e.fatal,r=0,i=0,n=0,o=128,d=191;this.handler=function(g,y){if(y===AK&&n!==0)return n=0,_Ae(t);if(y===AK)return lx;if(n===0){if(gR(y,0,127))return y;if(gR(y,194,223))n=1,r=y-192;else if(gR(y,224,239))y===224&&(o=160),y===237&&(d=159),n=2,r=y-224;else if(gR(y,240,244))y===240&&(o=144),y===244&&(d=143),n=3,r=y-240;else return _Ae(t);return r=r<<6*n,null}if(!gR(y,o,d))return r=n=i=0,o=128,d=191,g.prepend(y),_Ae(t);if(o=128,d=191,i+=1,r+=y-128<<6*(n-i),i!==n)return null;var _=r;return r=n=i=0,_}}function GGt(e){var t=e.fatal;this.handler=function(r,i){if(i===AK)return lx;if(gR(i,0,127))return i;var n,o;gR(i,128,2047)?(n=1,o=192):gR(i,2048,65535)?(n=2,o=224):gR(i,65536,1114111)&&(n=3,o=240);for(var d=[(i>>6*n)+o];n>0;){var g=i>>6*(n-1);d.push(128|g&63),n-=1}return d}}yAe.TextEncoder=_K;yAe.TextDecoder=gK});var Srt=ir(fu=>{"use strict";J();K();z();var qGt=fu&&fu.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),VGt=fu&&fu.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),kb=fu&&fu.__decorate||function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var g=e.length-1;g>=0;g--)(d=e[g])&&(o=(n<3?d(o):n>3?d(t,r,o):d(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},JGt=fu&&fu.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&qGt(t,e,r);return VGt(t,e),t},brt=fu&&fu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fu,"__esModule",{value:!0});fu.deserializeUnchecked=fu.deserialize=fu.serialize=fu.BinaryReader=fu.BinaryWriter=fu.BorshError=fu.baseDecode=fu.baseEncode=void 0;var EI=brt(qv()),Ert=brt(mrt()),zGt=JGt(yrt()),KGt=typeof TextDecoder!="function"?zGt.TextDecoder:TextDecoder,$Gt=new KGt("utf-8",{fatal:!0});function YGt(e){return typeof e=="string"&&(e=fe.from(e,"utf8")),Ert.default.encode(fe.from(e))}fu.baseEncode=YGt;function WGt(e){return fe.from(Ert.default.decode(e))}fu.baseDecode=WGt;var bAe=1024,Xl=class extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}};fu.BorshError=Xl;var yK=class{constructor(){this.buf=fe.alloc(bAe),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=fe.concat([this.buf,fe.alloc(bAe)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(fe.from(new EI.default(t).toArray("le",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(fe.from(new EI.default(t).toArray("le",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(fe.from(new EI.default(t).toArray("le",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(fe.from(new EI.default(t).toArray("le",64)))}writeBuffer(t){this.buf=fe.concat([fe.from(this.buf.subarray(0,this.length)),t,fe.alloc(bAe)]),this.length+=t.length}writeString(t){this.maybeResize();let r=fe.from(t,"utf8");this.writeU32(r.length),this.writeBuffer(r)}writeFixedArray(t){this.writeBuffer(fe.from(t))}writeArray(t,r){this.maybeResize(),this.writeU32(t.length);for(let i of t)this.maybeResize(),r(i)}toArray(){return this.buf.subarray(0,this.length)}};fu.BinaryWriter=yK;function Pb(e,t,r){let i=r.value;r.value=function(...n){try{return i.apply(this,n)}catch(o){if(o instanceof RangeError){let d=o.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(d)>=0)throw new Xl("Reached the end of buffer when deserializing")}throw o}}}var kA=class{constructor(t){this.buf=t,this.offset=0}readU8(){let t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){let t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){let t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){let t=this.readBuffer(8);return new EI.default(t,"le")}readU128(){let t=this.readBuffer(16);return new EI.default(t,"le")}readU256(){let t=this.readBuffer(32);return new EI.default(t,"le")}readU512(){let t=this.readBuffer(64);return new EI.default(t,"le")}readBuffer(t){if(this.offset+t>this.buf.length)throw new Xl(`Expected buffer length ${t} isn't within bounds`);let r=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,r}readString(){let t=this.readU32(),r=this.readBuffer(t);try{return $Gt.decode(r)}catch(i){throw new Xl(`Error decoding UTF-8 string: ${i}`)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){let r=this.readU32(),i=Array();for(let n=0;n<r;++n)i.push(t());return i}};kb([Pb],kA.prototype,"readU8",null);kb([Pb],kA.prototype,"readU16",null);kb([Pb],kA.prototype,"readU32",null);kb([Pb],kA.prototype,"readU64",null);kb([Pb],kA.prototype,"readU128",null);kb([Pb],kA.prototype,"readU256",null);kb([Pb],kA.prototype,"readU512",null);kb([Pb],kA.prototype,"readString",null);kb([Pb],kA.prototype,"readFixedArray",null);kb([Pb],kA.prototype,"readArray",null);fu.BinaryReader=kA;function vrt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function RC(e,t,r,i,n){try{if(typeof i=="string")n[`write${vrt(i)}`](r);else if(i instanceof Array)if(typeof i[0]=="number"){if(r.length!==i[0])throw new Xl(`Expecting byte array of length ${i[0]}, but got ${r.length} bytes`);n.writeFixedArray(r)}else if(i.length===2&&typeof i[1]=="number"){if(r.length!==i[1])throw new Xl(`Expecting byte array of length ${i[1]}, but got ${r.length} bytes`);for(let o=0;o<i[1];o++)RC(e,null,r[o],i[0],n)}else n.writeArray(r,o=>{RC(e,t,o,i[0],n)});else if(i.kind!==void 0)switch(i.kind){case"option":{r==null?n.writeU8(0):(n.writeU8(1),RC(e,t,r,i.type,n));break}case"map":{n.writeU32(r.size),r.forEach((o,d)=>{RC(e,t,d,i.key,n),RC(e,t,o,i.value,n)});break}default:throw new Xl(`FieldType ${i} unrecognized`)}else Rrt(e,r,n)}catch(o){throw o instanceof Xl&&o.addToFieldPath(t),o}}function Rrt(e,t,r){if(typeof t.borshSerialize=="function"){t.borshSerialize(r);return}let i=e.get(t.constructor);if(!i)throw new Xl(`Class ${t.constructor.name} is missing in schema`);if(i.kind==="struct")i.fields.map(([n,o])=>{RC(e,n,t[n],o,r)});else if(i.kind==="enum"){let n=t[i.field];for(let o=0;o<i.values.length;++o){let[d,g]=i.values[o];if(d===n){r.writeU8(o),RC(e,d,t[d],g,r);break}}}else throw new Xl(`Unexpected schema kind: ${i.kind} for ${t.constructor.name}`)}function XGt(e,t,r=yK){let i=new r;return Rrt(e,t,i),i.toArray()}fu.serialize=XGt;function SC(e,t,r,i){try{if(typeof r=="string")return i[`read${vrt(r)}`]();if(r instanceof Array){if(typeof r[0]=="number")return i.readFixedArray(r[0]);if(typeof r[1]=="number"){let n=[];for(let o=0;o<r[1];o++)n.push(SC(e,null,r[0],i));return n}else return i.readArray(()=>SC(e,t,r[0],i))}if(r.kind==="option")return i.readU8()?SC(e,t,r.type,i):void 0;if(r.kind==="map"){let n=new Map,o=i.readU32();for(let d=0;d<o;d++){let g=SC(e,t,r.key,i),y=SC(e,t,r.value,i);n.set(g,y)}return n}return EAe(e,r,i)}catch(n){throw n instanceof Xl&&n.addToFieldPath(t),n}}function EAe(e,t,r){if(typeof t.borshDeserialize=="function")return t.borshDeserialize(r);let i=e.get(t);if(!i)throw new Xl(`Class ${t.name} is missing in schema`);if(i.kind==="struct"){let n={};for(let[o,d]of e.get(t).fields)n[o]=SC(e,o,d,r);return new t(n)}if(i.kind==="enum"){let n=r.readU8();if(n>=i.values.length)throw new Xl(`Enum index: ${n} is out of range`);let[o,d]=i.values[n],g=SC(e,o,d,r);return new t({[o]:g})}throw new Xl(`Unexpected schema kind: ${i.kind} for ${t.constructor.name}`)}function ZGt(e,t,r,i=kA){let n=new i(r),o=EAe(e,t,n);if(n.offset<r.length)throw new Xl(`Unexpected ${r.length-n.offset} bytes after deserialized data`);return o}fu.deserialize=ZGt;function jGt(e,t,r,i=kA){let n=new i(r);return EAe(e,t,n)}fu.deserializeUnchecked=jGt});var RI=ir(dn=>{"use strict";J();K();z();Object.defineProperty(dn,"__esModule",{value:!0});dn.s16=dn.s8=dn.nu64be=dn.u48be=dn.u40be=dn.u32be=dn.u24be=dn.u16be=dn.nu64=dn.u48=dn.u40=dn.u32=dn.u24=dn.u16=dn.u8=dn.offset=dn.greedy=dn.Constant=dn.UTF8=dn.CString=dn.Blob=dn.Boolean=dn.BitField=dn.BitStructure=dn.VariantLayout=dn.Union=dn.UnionLayoutDiscriminator=dn.UnionDiscriminator=dn.Structure=dn.Sequence=dn.DoubleBE=dn.Double=dn.FloatBE=dn.Float=dn.NearInt64BE=dn.NearInt64=dn.NearUInt64BE=dn.NearUInt64=dn.IntBE=dn.Int=dn.UIntBE=dn.UInt=dn.OffsetLayout=dn.GreedyCount=dn.ExternalLayout=dn.bindConstructorLayout=dn.nameWithProperty=dn.Layout=dn.uint8ArrayToBuffer=dn.checkUint8Array=void 0;dn.constant=dn.utf8=dn.cstr=dn.blob=dn.unionLayoutDiscriminator=dn.union=dn.seq=dn.bits=dn.struct=dn.f64be=dn.f64=dn.f32be=dn.f32=dn.ns64be=dn.s48be=dn.s40be=dn.s32be=dn.s24be=dn.s16be=dn.ns64=dn.s48=dn.s40=dn.s32=dn.s24=void 0;var RAe=(mh(),Zu(ky));function px(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}dn.checkUint8Array=px;function uc(e){return px(e),RAe.Buffer.from(e.buffer,e.byteOffset,e.length)}dn.uint8ArrayToBuffer=uc;var Cc=class{constructor(t,r){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=r}makeDestinationObject(){return{}}getSpan(t,r){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(t){let r=Object.create(this.constructor.prototype);return Object.assign(r,this),r.property=t,r}fromArray(t){}};dn.Layout=Cc;function SAe(e,t){return t.property?e+"["+t.property+"]":e}dn.nameWithProperty=SAe;function eqt(e,t){if(typeof e!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof Cc))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=(()=>new e),Object.defineProperty(e.prototype,"encode",{value(r,i){return t.encode(this,r,i)},writable:!0}),Object.defineProperty(e,"decode",{value(r,i){return t.decode(r,i)},writable:!0})}dn.bindConstructorLayout=eqt;var Fh=class extends Cc{isCount(){throw new Error("ExternalLayout is abstract")}};dn.ExternalLayout=Fh;var bK=class extends Fh{constructor(t=1,r){if(!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");super(-1,r),this.elementSpan=t}isCount(){return!0}decode(t,r=0){px(t);let i=t.length-r;return Math.floor(i/this.elementSpan)}encode(t,r,i){return 0}};dn.GreedyCount=bK;var MP=class extends Fh{constructor(t,r=0,i){if(!(t instanceof Cc))throw new TypeError("layout must be a Layout");if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");super(t.span,i||t.property),this.layout=t,this.offset=r}isCount(){return this.layout instanceof Qp||this.layout instanceof Z1}decode(t,r=0){return this.layout.decode(t,r+this.offset)}encode(t,r,i=0){return this.layout.encode(t,r,i+this.offset)}};dn.OffsetLayout=MP;var Qp=class extends Cc{constructor(t,r){if(super(t,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,r=0){return uc(t).readUIntLE(r,this.span)}encode(t,r,i=0){return uc(r).writeUIntLE(t,i,this.span),this.span}};dn.UInt=Qp;var Z1=class extends Cc{constructor(t,r){if(super(t,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,r=0){return uc(t).readUIntBE(r,this.span)}encode(t,r,i=0){return uc(r).writeUIntBE(t,i,this.span),this.span}};dn.UIntBE=Z1;var _R=class extends Cc{constructor(t,r){if(super(t,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,r=0){return uc(t).readIntLE(r,this.span)}encode(t,r,i=0){return uc(r).writeIntLE(t,i,this.span),this.span}};dn.Int=_R;var vI=class extends Cc{constructor(t,r){if(super(t,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,r=0){return uc(t).readIntBE(r,this.span)}encode(t,r,i=0){return uc(r).writeIntBE(t,i,this.span),this.span}};dn.IntBE=vI;var vAe=Math.pow(2,32);function LK(e){let t=Math.floor(e/vAe),r=e-t*vAe;return{hi32:t,lo32:r}}function UK(e,t){return e*vAe+t}var EK=class extends Cc{constructor(t){super(8,t)}decode(t,r=0){let i=uc(t),n=i.readUInt32LE(r),o=i.readUInt32LE(r+4);return UK(o,n)}encode(t,r,i=0){let n=LK(t),o=uc(r);return o.writeUInt32LE(n.lo32,i),o.writeUInt32LE(n.hi32,i+4),8}};dn.NearUInt64=EK;var vK=class extends Cc{constructor(t){super(8,t)}decode(t,r=0){let i=uc(t),n=i.readUInt32BE(r),o=i.readUInt32BE(r+4);return UK(n,o)}encode(t,r,i=0){let n=LK(t),o=uc(r);return o.writeUInt32BE(n.hi32,i),o.writeUInt32BE(n.lo32,i+4),8}};dn.NearUInt64BE=vK;var RK=class extends Cc{constructor(t){super(8,t)}decode(t,r=0){let i=uc(t),n=i.readUInt32LE(r),o=i.readInt32LE(r+4);return UK(o,n)}encode(t,r,i=0){let n=LK(t),o=uc(r);return o.writeUInt32LE(n.lo32,i),o.writeInt32LE(n.hi32,i+4),8}};dn.NearInt64=RK;var SK=class extends Cc{constructor(t){super(8,t)}decode(t,r=0){let i=uc(t),n=i.readInt32BE(r),o=i.readUInt32BE(r+4);return UK(n,o)}encode(t,r,i=0){let n=LK(t),o=uc(r);return o.writeInt32BE(n.hi32,i),o.writeUInt32BE(n.lo32,i+4),8}};dn.NearInt64BE=SK;var IK=class extends Cc{constructor(t){super(4,t)}decode(t,r=0){return uc(t).readFloatLE(r)}encode(t,r,i=0){return uc(r).writeFloatLE(t,i),4}};dn.Float=IK;var CK=class extends Cc{constructor(t){super(4,t)}decode(t,r=0){return uc(t).readFloatBE(r)}encode(t,r,i=0){return uc(r).writeFloatBE(t,i),4}};dn.FloatBE=CK;var wK=class extends Cc{constructor(t){super(8,t)}decode(t,r=0){return uc(t).readDoubleLE(r)}encode(t,r,i=0){return uc(r).writeDoubleLE(t,i),8}};dn.Double=wK;var OK=class extends Cc{constructor(t){super(8,t)}decode(t,r=0){return uc(t).readDoubleBE(r)}encode(t,r,i=0){return uc(r).writeDoubleBE(t,i),8}};dn.DoubleBE=OK;var NK=class extends Cc{constructor(t,r,i){if(!(t instanceof Cc))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof Fh&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let n=-1;!(r instanceof Fh)&&0<t.span&&(n=r*t.span),super(n,i),this.elementLayout=t,this.count=r}getSpan(t,r=0){if(0<=this.span)return this.span;let i=0,n=this.count;if(n instanceof Fh&&(n=n.decode(t,r)),0<this.elementLayout.span)i=n*this.elementLayout.span;else{let o=0;for(;o<n;)i+=this.elementLayout.getSpan(t,r+i),++o}return i}decode(t,r=0){let i=[],n=0,o=this.count;for(o instanceof Fh&&(o=o.decode(t,r));n<o;)i.push(this.elementLayout.decode(t,r)),r+=this.elementLayout.getSpan(t,r),n+=1;return i}encode(t,r,i=0){let n=this.elementLayout,o=t.reduce((d,g)=>d+n.encode(g,r,i+d),0);return this.count instanceof Fh&&this.count.encode(t.length,r,i),o}};dn.Sequence=NK;var xK=class extends Cc{constructor(t,r,i){if(!(Array.isArray(t)&&t.reduce((o,d)=>o&&d instanceof Cc,!0)))throw new TypeError("fields must be array of Layout instances");typeof r=="boolean"&&i===void 0&&(i=r,r=void 0);for(let o of t)if(0>o.span&&o.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let n=-1;try{n=t.reduce((o,d)=>o+d.getSpan(),0)}catch{}super(n,r),this.fields=t,this.decodePrefixes=!!i}getSpan(t,r=0){if(0<=this.span)return this.span;let i=0;try{i=this.fields.reduce((n,o)=>{let d=o.getSpan(t,r);return r+=d,n+d},0)}catch{throw new RangeError("indeterminate span")}return i}decode(t,r=0){px(t);let i=this.makeDestinationObject();for(let n of this.fields)if(n.property!==void 0&&(i[n.property]=n.decode(t,r)),r+=n.getSpan(t,r),this.decodePrefixes&&t.length===r)break;return i}encode(t,r,i=0){let n=i,o=0,d=0;for(let g of this.fields){let y=g.span;if(d=0<y?y:0,g.property!==void 0){let _=t[g.property];_!==void 0&&(d=g.encode(_,r,i),0>y&&(y=g.getSpan(r,i)))}o=i,i+=y}return o+d-n}fromArray(t){let r=this.makeDestinationObject();for(let i of this.fields)i.property!==void 0&&0<t.length&&(r[i.property]=t.shift());return r}layoutFor(t){if(typeof t!="string")throw new TypeError("property must be string");for(let r of this.fields)if(r.property===t)return r}offsetOf(t){if(typeof t!="string")throw new TypeError("property must be string");let r=0;for(let i of this.fields){if(i.property===t)return r;0>i.span?r=-1:0<=r&&(r+=i.span)}}};dn.Structure=xK;var DP=class{constructor(t){this.property=t}decode(t,r){throw new Error("UnionDiscriminator is abstract")}encode(t,r,i){throw new Error("UnionDiscriminator is abstract")}};dn.UnionDiscriminator=DP;var Ax=class extends DP{constructor(t,r){if(!(t instanceof Fh&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(r||t.property||"variant"),this.layout=t}decode(t,r){return this.layout.decode(t,r)}encode(t,r,i){return this.layout.encode(t,r,i)}};dn.UnionLayoutDiscriminator=Ax;var kP=class extends Cc{constructor(t,r,i){let n;if(t instanceof Qp||t instanceof Z1)n=new Ax(new MP(t));else if(t instanceof Fh&&t.isCount())n=new Ax(t);else if(t instanceof DP)n=t;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(r===void 0&&(r=null),!(r===null||r instanceof Cc))throw new TypeError("defaultLayout must be null or a Layout");if(r!==null){if(0>r.span)throw new Error("defaultLayout must have constant span");r.property===void 0&&(r=r.replicate("content"))}let o=-1;r&&(o=r.span,0<=o&&(t instanceof Qp||t instanceof Z1)&&(o+=n.layout.span)),super(o,i),this.discriminator=n,this.usesPrefixDiscriminator=t instanceof Qp||t instanceof Z1,this.defaultLayout=r,this.registry={};let d=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(g){return d(g)},this.configGetSourceVariant=function(g){d=g.bind(this)}}getSpan(t,r=0){if(0<=this.span)return this.span;let i=this.getVariant(t,r);if(!i)throw new Error("unable to determine span for unrecognized variant");return i.getSpan(t,r)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;let r=this.registry[t[this.discriminator.property]];if(r&&(!r.layout||r.property&&Object.prototype.hasOwnProperty.call(t,r.property)))return r}else for(let r in this.registry){let i=this.registry[r];if(i.property&&Object.prototype.hasOwnProperty.call(t,i.property))return i}throw new Error("unable to infer src variant")}decode(t,r=0){let i,n=this.discriminator,o=n.decode(t,r),d=this.registry[o];if(d===void 0){let g=this.defaultLayout,y=0;this.usesPrefixDiscriminator&&(y=n.layout.span),i=this.makeDestinationObject(),i[n.property]=o,i[g.property]=g.decode(t,r+y)}else i=d.decode(t,r);return i}encode(t,r,i=0){let n=this.getSourceVariant(t);if(n===void 0){let o=this.discriminator,d=this.defaultLayout,g=0;return this.usesPrefixDiscriminator&&(g=o.layout.span),o.encode(t[o.property],r,i),g+d.encode(t[d.property],r,i+g)}return n.encode(t,r,i)}addVariant(t,r,i){let n=new TK(this,t,r,i);return this.registry[t]=n,n}getVariant(t,r=0){let i;return t instanceof Uint8Array?i=this.discriminator.decode(t,r):i=t,this.registry[i]}};dn.Union=kP;var TK=class extends Cc{constructor(t,r,i,n){if(!(t instanceof kP))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if(typeof i=="string"&&n===void 0&&(n=i,i=null),i){if(!(i instanceof Cc))throw new TypeError("layout must be a Layout");if(t.defaultLayout!==null&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof n!="string")throw new TypeError("variant must have a String property")}let o=t.span;0>t.span&&(o=i?i.span:0,0<=o&&t.usesPrefixDiscriminator&&(o+=t.discriminator.layout.span)),super(o,n),this.union=t,this.variant=r,this.layout=i||null}getSpan(t,r=0){if(0<=this.span)return this.span;let i=0;this.union.usesPrefixDiscriminator&&(i=this.union.discriminator.layout.span);let n=0;return this.layout&&(n=this.layout.getSpan(t,r+i)),i+n}decode(t,r=0){let i=this.makeDestinationObject();if(this!==this.union.getVariant(t,r))throw new Error("variant mismatch");let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?i[this.property]=this.layout.decode(t,r+n):this.property?i[this.property]=!0:this.union.usesPrefixDiscriminator&&(i[this.union.discriminator.property]=this.variant),i}encode(t,r,i=0){let n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,r,i);let o=n;if(this.layout&&(this.layout.encode(t[this.property],r,i+n),o+=this.layout.getSpan(r,i+n),0<=this.union.span&&o>this.union.span))throw new Error("encoded variant overruns containing union");return o}fromArray(t){if(this.layout)return this.layout.fromArray(t)}};dn.VariantLayout=TK;function hx(e){return 0>e&&(e+=4294967296),e}var PP=class extends Cc{constructor(t,r,i){if(!(t instanceof Qp||t instanceof Z1))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof r=="string"&&i===void 0&&(i=r,r=!1),4<t.span)throw new RangeError("word cannot exceed 32 bits");super(t.span,i),this.word=t,this.msb=!!r,this.fields=[];let n=0;this._packedSetValue=function(o){return n=hx(o),this},this._packedGetValue=function(){return n}}decode(t,r=0){let i=this.makeDestinationObject(),n=this.word.decode(t,r);this._packedSetValue(n);for(let o of this.fields)o.property!==void 0&&(i[o.property]=o.decode(t));return i}encode(t,r,i=0){let n=this.word.decode(r,i);this._packedSetValue(n);for(let o of this.fields)if(o.property!==void 0){let d=t[o.property];d!==void 0&&o.encode(d)}return this.word.encode(this._packedGetValue(),r,i)}addField(t,r){let i=new LP(this,t,r);return this.fields.push(i),i}addBoolean(t){let r=new BK(this,t);return this.fields.push(r),r}fieldFor(t){if(typeof t!="string")throw new TypeError("property must be string");for(let r of this.fields)if(r.property===t)return r}};dn.BitStructure=PP;var LP=class{constructor(t,r,i){if(!(t instanceof PP))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(r)||0>=r)throw new TypeError("bits must be positive integer");let n=8*t.span,o=t.fields.reduce((d,g)=>d+g.bits,0);if(r+o>n)throw new Error("bits too long for span remainder ("+(n-o)+" of "+n+" remain)");this.container=t,this.bits=r,this.valueMask=(1<<r)-1,r===32&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=n-o-r),this.wordMask=hx(this.valueMask<<this.start),this.property=i}decode(t,r){let i=this.container._packedGetValue();return hx(i&this.wordMask)>>>this.start}encode(t){if(typeof t!="number"||!Number.isInteger(t)||t!==hx(t&this.valueMask))throw new TypeError(SAe("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let r=this.container._packedGetValue(),i=hx(t<<this.start);this.container._packedSetValue(hx(r&~this.wordMask)|i)}};dn.BitField=LP;var BK=class extends LP{constructor(t,r){super(t,1,r)}decode(t,r){return!!super.decode(t,r)}encode(t){typeof t=="boolean"&&(t=+t),super.encode(t)}};dn.Boolean=BK;var MK=class extends Cc{constructor(t,r){if(!(t instanceof Fh&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let i=-1;t instanceof Fh||(i=t),super(i,r),this.length=t}getSpan(t,r){let i=this.span;return 0>i&&(i=this.length.decode(t,r)),i}decode(t,r=0){let i=this.span;return 0>i&&(i=this.length.decode(t,r)),uc(t).slice(r,r+i)}encode(t,r,i){let n=this.length;if(this.length instanceof Fh&&(n=t.length),!(t instanceof Uint8Array&&n===t.length))throw new TypeError(SAe("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(i+n>r.length)throw new RangeError("encoding overruns Uint8Array");let o=uc(t);return uc(r).write(o.toString("hex"),i,n,"hex"),this.length instanceof Fh&&this.length.encode(n,r,i),n}};dn.Blob=MK;var DK=class extends Cc{constructor(t){super(-1,t)}getSpan(t,r=0){px(t);let i=r;for(;i<t.length&&t[i]!==0;)i+=1;return 1+i-r}decode(t,r=0){let i=this.getSpan(t,r);return uc(t).slice(r,r+i-1).toString("utf-8")}encode(t,r,i=0){typeof t!="string"&&(t=String(t));let n=RAe.Buffer.from(t,"utf8"),o=n.length;if(i+o>r.length)throw new RangeError("encoding overruns Buffer");let d=uc(r);return n.copy(d,i),d[i+o]=0,o+1}};dn.CString=DK;var kK=class extends Cc{constructor(t,r){if(typeof t=="string"&&r===void 0&&(r=t,t=void 0),t===void 0)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");super(-1,r),this.maxSpan=t}getSpan(t,r=0){return px(t),t.length-r}decode(t,r=0){let i=this.getSpan(t,r);if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError("text length exceeds maxSpan");return uc(t).slice(r,r+i).toString("utf-8")}encode(t,r,i=0){typeof t!="string"&&(t=String(t));let n=RAe.Buffer.from(t,"utf8"),o=n.length;if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");if(i+o>r.length)throw new RangeError("encoding overruns Buffer");return n.copy(uc(r),i),o}};dn.UTF8=kK;var PK=class extends Cc{constructor(t,r){super(0,r),this.value=t}decode(t,r){return this.value}encode(t,r,i){return 0}};dn.Constant=PK;dn.greedy=((e,t)=>new bK(e,t));dn.offset=((e,t,r)=>new MP(e,t,r));dn.u8=(e=>new Qp(1,e));dn.u16=(e=>new Qp(2,e));dn.u24=(e=>new Qp(3,e));dn.u32=(e=>new Qp(4,e));dn.u40=(e=>new Qp(5,e));dn.u48=(e=>new Qp(6,e));dn.nu64=(e=>new EK(e));dn.u16be=(e=>new Z1(2,e));dn.u24be=(e=>new Z1(3,e));dn.u32be=(e=>new Z1(4,e));dn.u40be=(e=>new Z1(5,e));dn.u48be=(e=>new Z1(6,e));dn.nu64be=(e=>new vK(e));dn.s8=(e=>new _R(1,e));dn.s16=(e=>new _R(2,e));dn.s24=(e=>new _R(3,e));dn.s32=(e=>new _R(4,e));dn.s40=(e=>new _R(5,e));dn.s48=(e=>new _R(6,e));dn.ns64=(e=>new RK(e));dn.s16be=(e=>new vI(2,e));dn.s24be=(e=>new vI(3,e));dn.s32be=(e=>new vI(4,e));dn.s40be=(e=>new vI(5,e));dn.s48be=(e=>new vI(6,e));dn.ns64be=(e=>new SK(e));dn.f32=(e=>new IK(e));dn.f32be=(e=>new CK(e));dn.f64=(e=>new wK(e));dn.f64be=(e=>new OK(e));dn.struct=((e,t,r)=>new xK(e,t,r));dn.bits=((e,t,r)=>new PP(e,t,r));dn.seq=((e,t,r)=>new NK(e,t,r));dn.union=((e,t,r)=>new kP(e,t,r));dn.unionLayoutDiscriminator=((e,t)=>new Ax(e,t));dn.blob=((e,t)=>new MK(e,t));dn.cstr=(e=>new DK(e));dn.utf8=((e,t)=>new kK(e,t));dn.constant=((e,t)=>new PK(e,t))});function QP(){if(!GK&&(GK=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!GK))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return GK(AKt)}var GK,AKt,kAe=tn(()=>{"use strict";J();K();z();AKt=new Uint8Array(16)});var qrt,Vrt=tn(()=>{"use strict";J();K();z();qrt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function pKt(e){return typeof e=="string"&&qrt.test(e)}var II,HP=tn(()=>{"use strict";J();K();z();Vrt();II=pKt});function gKt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Zl[e[t+0]]+Zl[e[t+1]]+Zl[e[t+2]]+Zl[e[t+3]]+"-"+Zl[e[t+4]]+Zl[e[t+5]]+"-"+Zl[e[t+6]]+Zl[e[t+7]]+"-"+Zl[e[t+8]]+Zl[e[t+9]]+"-"+Zl[e[t+10]]+Zl[e[t+11]]+Zl[e[t+12]]+Zl[e[t+13]]+Zl[e[t+14]]+Zl[e[t+15]]).toLowerCase();if(!II(r))throw TypeError("Stringified UUID is invalid");return r}var Zl,qK,CI,GP=tn(()=>{"use strict";J();K();z();HP();Zl=[];for(qK=0;qK<256;++qK)Zl.push((qK+256).toString(16).substr(1));CI=gKt});function _Kt(e,t,r){var i=t&&r||0,n=t||new Array(16);e=e||{};var o=e.node||Jrt,d=e.clockseq!==void 0?e.clockseq:PAe;if(o==null||d==null){var g=e.random||(e.rng||QP)();o==null&&(o=Jrt=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),d==null&&(d=PAe=(g[6]<<8|g[7])&16383)}var y=e.msecs!==void 0?e.msecs:Date.now(),_=e.nsecs!==void 0?e.nsecs:UAe+1,I=y-LAe+(_-UAe)/1e4;if(I<0&&e.clockseq===void 0&&(d=d+1&16383),(I<0||y>LAe)&&e.nsecs===void 0&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");LAe=y,UAe=_,PAe=d,y+=122192928e5;var N=((y&268435455)*1e4+_)%4294967296;n[i++]=N>>>24&255,n[i++]=N>>>16&255,n[i++]=N>>>8&255,n[i++]=N&255;var T=y/4294967296*1e4&268435455;n[i++]=T>>>8&255,n[i++]=T&255,n[i++]=T>>>24&15|16,n[i++]=T>>>16&255,n[i++]=d>>>8|128,n[i++]=d&255;for(var M=0;M<6;++M)n[i+M]=o[M];return t||CI(n)}var Jrt,PAe,LAe,UAe,zrt,Krt=tn(()=>{"use strict";J();K();z();kAe();GP();LAe=0,UAe=0;zrt=_Kt});function mKt(e){if(!II(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var VK,FAe=tn(()=>{"use strict";J();K();z();HP();VK=mKt});function yKt(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}function JK(e,t,r){function i(n,o,d,g){if(typeof n=="string"&&(n=yKt(n)),typeof o=="string"&&(o=VK(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var y=new Uint8Array(16+n.length);if(y.set(o),y.set(n,o.length),y=r(y),y[6]=y[6]&15|t,y[8]=y[8]&63|128,d){g=g||0;for(var _=0;_<16;++_)d[g+_]=y[_];return d}return CI(y)}try{i.name=e}catch{}return i.DNS=bKt,i.URL=EKt,i}var bKt,EKt,QAe=tn(()=>{"use strict";J();K();z();GP();FAe();bKt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",EKt="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function vKt(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return RKt(SKt(IKt(e),e.length*8))}function RKt(e){for(var t=[],r=e.length*32,i="0123456789abcdef",n=0;n<r;n+=8){var o=e[n>>5]>>>n%32&255,d=parseInt(i.charAt(o>>>4&15)+i.charAt(o&15),16);t.push(d)}return t}function $rt(e){return(e+64>>>9<<4)+14+1}function SKt(e,t){e[t>>5]|=128<<t%32,e[$rt(t)-1]=t;for(var r=1732584193,i=-271733879,n=-1732584194,o=271733878,d=0;d<e.length;d+=16){var g=r,y=i,_=n,I=o;r=Hh(r,i,n,o,e[d],7,-680876936),o=Hh(o,r,i,n,e[d+1],12,-389564586),n=Hh(n,o,r,i,e[d+2],17,606105819),i=Hh(i,n,o,r,e[d+3],22,-1044525330),r=Hh(r,i,n,o,e[d+4],7,-176418897),o=Hh(o,r,i,n,e[d+5],12,1200080426),n=Hh(n,o,r,i,e[d+6],17,-1473231341),i=Hh(i,n,o,r,e[d+7],22,-45705983),r=Hh(r,i,n,o,e[d+8],7,1770035416),o=Hh(o,r,i,n,e[d+9],12,-1958414417),n=Hh(n,o,r,i,e[d+10],17,-42063),i=Hh(i,n,o,r,e[d+11],22,-1990404162),r=Hh(r,i,n,o,e[d+12],7,1804603682),o=Hh(o,r,i,n,e[d+13],12,-40341101),n=Hh(n,o,r,i,e[d+14],17,-1502002290),i=Hh(i,n,o,r,e[d+15],22,1236535329),r=Gh(r,i,n,o,e[d+1],5,-165796510),o=Gh(o,r,i,n,e[d+6],9,-1069501632),n=Gh(n,o,r,i,e[d+11],14,643717713),i=Gh(i,n,o,r,e[d],20,-373897302),r=Gh(r,i,n,o,e[d+5],5,-701558691),o=Gh(o,r,i,n,e[d+10],9,38016083),n=Gh(n,o,r,i,e[d+15],14,-660478335),i=Gh(i,n,o,r,e[d+4],20,-405537848),r=Gh(r,i,n,o,e[d+9],5,568446438),o=Gh(o,r,i,n,e[d+14],9,-1019803690),n=Gh(n,o,r,i,e[d+3],14,-187363961),i=Gh(i,n,o,r,e[d+8],20,1163531501),r=Gh(r,i,n,o,e[d+13],5,-1444681467),o=Gh(o,r,i,n,e[d+2],9,-51403784),n=Gh(n,o,r,i,e[d+7],14,1735328473),i=Gh(i,n,o,r,e[d+12],20,-1926607734),r=qh(r,i,n,o,e[d+5],4,-378558),o=qh(o,r,i,n,e[d+8],11,-2022574463),n=qh(n,o,r,i,e[d+11],16,1839030562),i=qh(i,n,o,r,e[d+14],23,-35309556),r=qh(r,i,n,o,e[d+1],4,-1530992060),o=qh(o,r,i,n,e[d+4],11,1272893353),n=qh(n,o,r,i,e[d+7],16,-155497632),i=qh(i,n,o,r,e[d+10],23,-1094730640),r=qh(r,i,n,o,e[d+13],4,681279174),o=qh(o,r,i,n,e[d],11,-358537222),n=qh(n,o,r,i,e[d+3],16,-722521979),i=qh(i,n,o,r,e[d+6],23,76029189),r=qh(r,i,n,o,e[d+9],4,-640364487),o=qh(o,r,i,n,e[d+12],11,-421815835),n=qh(n,o,r,i,e[d+15],16,530742520),i=qh(i,n,o,r,e[d+2],23,-995338651),r=Vh(r,i,n,o,e[d],6,-198630844),o=Vh(o,r,i,n,e[d+7],10,1126891415),n=Vh(n,o,r,i,e[d+14],15,-1416354905),i=Vh(i,n,o,r,e[d+5],21,-57434055),r=Vh(r,i,n,o,e[d+12],6,1700485571),o=Vh(o,r,i,n,e[d+3],10,-1894986606),n=Vh(n,o,r,i,e[d+10],15,-1051523),i=Vh(i,n,o,r,e[d+1],21,-2054922799),r=Vh(r,i,n,o,e[d+8],6,1873313359),o=Vh(o,r,i,n,e[d+15],10,-30611744),n=Vh(n,o,r,i,e[d+6],15,-1560198380),i=Vh(i,n,o,r,e[d+13],21,1309151649),r=Vh(r,i,n,o,e[d+4],6,-145523070),o=Vh(o,r,i,n,e[d+11],10,-1120210379),n=Vh(n,o,r,i,e[d+2],15,718787259),i=Vh(i,n,o,r,e[d+9],21,-343485551),r=wI(r,g),i=wI(i,y),n=wI(n,_),o=wI(o,I)}return[r,i,n,o]}function IKt(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array($rt(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function wI(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function CKt(e,t){return e<<t|e>>>32-t}function zK(e,t,r,i,n,o){return wI(CKt(wI(wI(t,e),wI(i,o)),n),r)}function Hh(e,t,r,i,n,o,d){return zK(t&r|~t&i,e,t,n,o,d)}function Gh(e,t,r,i,n,o,d){return zK(t&i|r&~i,e,t,n,o,d)}function qh(e,t,r,i,n,o,d){return zK(t^r^i,e,t,n,o,d)}function Vh(e,t,r,i,n,o,d){return zK(r^(t|~i),e,t,n,o,d)}var Yrt,Wrt=tn(()=>{"use strict";J();K();z();Yrt=vKt});var wKt,Xrt,Zrt=tn(()=>{"use strict";J();K();z();QAe();Wrt();wKt=JK("v3",48,Yrt),Xrt=wKt});function OKt(e,t,r){e=e||{};var i=e.random||(e.rng||QP)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var n=0;n<16;++n)t[r+n]=i[n];return t}return CI(i)}var jrt,ent=tn(()=>{"use strict";J();K();z();kAe();GP();jrt=OKt});function NKt(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function HAe(e,t){return e<<t|e>>>32-t}function xKt(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var n=0;n<i.length;++n)e.push(i.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,d=Math.ceil(o/16),g=new Array(d),y=0;y<d;++y){for(var _=new Uint32Array(16),I=0;I<16;++I)_[I]=e[y*64+I*4]<<24|e[y*64+I*4+1]<<16|e[y*64+I*4+2]<<8|e[y*64+I*4+3];g[y]=_}g[d-1][14]=(e.length-1)*8/Math.pow(2,32),g[d-1][14]=Math.floor(g[d-1][14]),g[d-1][15]=(e.length-1)*8&4294967295;for(var N=0;N<d;++N){for(var T=new Uint32Array(80),M=0;M<16;++M)T[M]=g[N][M];for(var D=16;D<80;++D)T[D]=HAe(T[D-3]^T[D-8]^T[D-14]^T[D-16],1);for(var P=r[0],G=r[1],q=r[2],Y=r[3],ne=r[4],ce=0;ce<80;++ce){var le=Math.floor(ce/20),pe=HAe(P,5)+NKt(le,G,q,Y)+ne+t[le]+T[ce]>>>0;ne=Y,Y=q,q=HAe(G,30)>>>0,G=P,P=pe}r[0]=r[0]+P>>>0,r[1]=r[1]+G>>>0,r[2]=r[2]+q>>>0,r[3]=r[3]+Y>>>0,r[4]=r[4]+ne>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var tnt,rnt=tn(()=>{"use strict";J();K();z();tnt=xKt});var TKt,nnt,int=tn(()=>{"use strict";J();K();z();QAe();rnt();TKt=JK("v5",80,tnt),nnt=TKt});var ont,ant=tn(()=>{"use strict";J();K();z();ont="00000000-0000-0000-0000-000000000000"});function BKt(e){if(!II(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var snt,cnt=tn(()=>{"use strict";J();K();z();HP();snt=BKt});var GAe={};gh(GAe,{NIL:()=>ont,parse:()=>VK,stringify:()=>CI,v1:()=>zrt,v3:()=>Xrt,v4:()=>jrt,v5:()=>nnt,validate:()=>II,version:()=>snt});var qAe=tn(()=>{"use strict";J();K();z();Krt();Zrt();ent();int();ant();cnt();HP();GP();FAe()});var dnt=ir((nYn,unt)=>{"use strict";J();K();z();var MKt=(qAe(),Zu(GAe)).v4,DKt=function(e,t,r,i){if(typeof e!="string")throw new TypeError(e+" must be a string");i=i||{};let n=typeof i.version=="number"?i.version:2;if(n!==1&&n!==2)throw new TypeError(n+" must be 1 or 2");let o={method:e};if(n===2&&(o.jsonrpc="2.0"),t){if(typeof t!="object"&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");o.params=t}if(typeof r>"u"){let d=typeof i.generator=="function"?i.generator:function(){return MKt()};o.id=d(o,i)}else n===2&&r===null?i.notificationIdNull&&(o.id=null):o.id=r;return o};unt.exports=DKt});var lnt=ir((sYn,fnt)=>{"use strict";J();K();z();var kKt=(qAe(),Zu(GAe)).v4,PKt=dnt(),qP=function(e,t){if(!(this instanceof qP))return new qP(e,t);t||(t={}),this.options={reviver:typeof t.reviver<"u"?t.reviver:null,replacer:typeof t.replacer<"u"?t.replacer:null,generator:typeof t.generator<"u"?t.generator:function(){return kKt()},version:typeof t.version<"u"?t.version:2,notificationIdNull:typeof t.notificationIdNull=="boolean"?t.notificationIdNull:!1},this.callServer=e};fnt.exports=qP;qP.prototype.request=function(e,t,r,i){let n=this,o=null,d=Array.isArray(e)&&typeof t=="function";if(this.options.version===1&&d)throw new TypeError("JSON-RPC 1.0 does not support batching");if(d||!d&&e&&typeof e=="object"&&typeof t=="function")i=t,o=e;else{typeof r=="function"&&(i=r,r=void 0);let _=typeof i=="function";try{o=PKt(e,t,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(I){if(_)return i(I);throw I}if(!_)return o}let y;try{y=JSON.stringify(o,this.options.replacer)}catch(_){return i(_)}return this.callServer(y,function(_,I){n._parseResponse(_,I,i)}),o};qP.prototype._parseResponse=function(e,t,r){if(e){r(e);return}if(!t)return r();let i;try{i=JSON.parse(t,this.options.reviver)}catch(n){return r(n)}if(r.length===3)if(Array.isArray(i)){let n=function(d){return typeof d.error<"u"},o=function(d){return!n(d)};return r(null,i.filter(n),i.filter(o))}else return r(null,i.error,i.result);r(null,i)}});var Ant=ir((fYn,VAe)=>{"use strict";J();K();z();var LKt=Object.prototype.hasOwnProperty,PA="~";function VP(){}Object.create&&(VP.prototype=Object.create(null),new VP().__proto__||(PA=!1));function UKt(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function hnt(e,t,r,i,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new UKt(r,i||e,n),d=PA?PA+t:t;return e._events[d]?e._events[d].fn?e._events[d]=[e._events[d],o]:e._events[d].push(o):(e._events[d]=o,e._eventsCount++),e}function KK(e,t){--e._eventsCount===0?e._events=new VP:delete e._events[t]}function Jh(){this._events=new VP,this._eventsCount=0}Jh.prototype.eventNames=function(){var t=[],r,i;if(this._eventsCount===0)return t;for(i in r=this._events)LKt.call(r,i)&&t.push(PA?i.slice(1):i);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Jh.prototype.listeners=function(t){var r=PA?PA+t:t,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,o=i.length,d=new Array(o);n<o;n++)d[n]=i[n].fn;return d};Jh.prototype.listenerCount=function(t){var r=PA?PA+t:t,i=this._events[r];return i?i.fn?1:i.length:0};Jh.prototype.emit=function(t,r,i,n,o,d){var g=PA?PA+t:t;if(!this._events[g])return!1;var y=this._events[g],_=arguments.length,I,N;if(y.fn){switch(y.once&&this.removeListener(t,y.fn,void 0,!0),_){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,r),!0;case 3:return y.fn.call(y.context,r,i),!0;case 4:return y.fn.call(y.context,r,i,n),!0;case 5:return y.fn.call(y.context,r,i,n,o),!0;case 6:return y.fn.call(y.context,r,i,n,o,d),!0}for(N=1,I=new Array(_-1);N<_;N++)I[N-1]=arguments[N];y.fn.apply(y.context,I)}else{var T=y.length,M;for(N=0;N<T;N++)switch(y[N].once&&this.removeListener(t,y[N].fn,void 0,!0),_){case 1:y[N].fn.call(y[N].context);break;case 2:y[N].fn.call(y[N].context,r);break;case 3:y[N].fn.call(y[N].context,r,i);break;case 4:y[N].fn.call(y[N].context,r,i,n);break;default:if(!I)for(M=1,I=new Array(_-1);M<_;M++)I[M-1]=arguments[M];y[N].fn.apply(y[N].context,I)}}return!0};Jh.prototype.on=function(t,r,i){return hnt(this,t,r,i,!1)};Jh.prototype.once=function(t,r,i){return hnt(this,t,r,i,!0)};Jh.prototype.removeListener=function(t,r,i,n){var o=PA?PA+t:t;if(!this._events[o])return this;if(!r)return KK(this,o),this;var d=this._events[o];if(d.fn)d.fn===r&&(!n||d.once)&&(!i||d.context===i)&&KK(this,o);else{for(var g=0,y=[],_=d.length;g<_;g++)(d[g].fn!==r||n&&!d[g].once||i&&d[g].context!==i)&&y.push(d[g]);y.length?this._events[o]=y.length===1?y[0]:y:KK(this,o)}return this};Jh.prototype.removeAllListeners=function(t){var r;return t?(r=PA?PA+t:t,this._events[r]&&KK(this,r)):(this._events=new VP,this._eventsCount=0),this};Jh.prototype.off=Jh.prototype.removeListener;Jh.prototype.addListener=Jh.prototype.on;Jh.prefixed=PA;Jh.EventEmitter=Jh;typeof VAe<"u"&&(VAe.exports=Jh)});function $Kt(e,t=24){let r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let d=0;d<10;d++)r[d]=e[d]^e[d+10]^e[d+20]^e[d+30]^e[d+40];for(let d=0;d<10;d+=2){let g=(d+8)%10,y=(d+2)%10,_=r[y],I=r[y+1],N=_nt(_,I,1)^r[g],T=mnt(_,I,1)^r[g+1];for(let M=0;M<50;M+=10)e[d+M]^=N,e[d+M+1]^=T}let n=e[2],o=e[3];for(let d=0;d<24;d++){let g=bnt[d],y=_nt(n,o,g),_=mnt(n,o,g),I=ynt[d];n=e[I],o=e[I+1],e[I]=y,e[I+1]=_}for(let d=0;d<50;d+=10){for(let g=0;g<10;g++)r[g]=e[d+g];for(let g=0;g<10;g++)e[d+g]^=~r[(g+2)%10]&r[(g+4)%10]}e[0]^=zKt[i],e[1]^=KKt[i]}I_(r)}var HKt,JP,GKt,qKt,VKt,JKt,ynt,bnt,Ent,vnt,zKt,KKt,_nt,mnt,JAe,YKt,wC,$K=tn(()=>{"use strict";J();K();z();Xhe();Up();HKt=BigInt(0),JP=BigInt(1),GKt=BigInt(2),qKt=BigInt(7),VKt=BigInt(256),JKt=BigInt(113),ynt=[],bnt=[],Ent=[];for(let e=0,t=JP,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],ynt.push(2*(5*i+r)),bnt.push((e+1)*(e+2)/2%64);let n=HKt;for(let o=0;o<7;o++)t=(t<<JP^(t>>qKt)*JKt)%VKt,t&GKt&&(n^=JP<<(JP<<BigInt(o))-JP);Ent.push(n)}vnt=sK(Ent,!0),zKt=vnt[0],KKt=vnt[1],_nt=(e,t,r)=>r>32?ktt(e,t,r):Mtt(e,t,r),mnt=(e,t,r)=>r>32?Ptt(e,t,r):Dtt(e,t,r);JAe=class e extends hI{constructor(t,r,i,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=i,this.enableXOF=n,this.rounds=o,S_(i),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=wtt(this.state)}clone(){return this._cloneInto()}keccak(){Khe(this.state32),$Kt(this.state32,this.rounds),Khe(this.state32),this.posOut=0,this.pos=0}update(t){cR(this),t=mC(t),Yl(t);let{blockLen:r,state:i}=this,n=t.length;for(let o=0;o<n;){let d=Math.min(r-this.pos,n-o);for(let g=0;g<d;g++)i[this.pos++]^=t[o++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:i,blockLen:n}=this;t[i]^=r,(r&128)!==0&&i===n-1&&this.keccak(),t[n-1]^=128,this.keccak()}writeInto(t){cR(this,!1),Yl(t),this.finish();let r=this.state,{blockLen:i}=this;for(let n=0,o=t.length;n<o;){this.posOut>=i&&this.keccak();let d=Math.min(i-this.posOut,o-n);t.set(r.subarray(this.posOut,this.posOut+d),n),this.posOut+=d,n+=d}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return S_(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(iK(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,I_(this.state)}_cloneInto(t){let{blockLen:r,suffix:i,outputLen:n,rounds:o,enableXOF:d}=this;return t||(t=new e(r,i,n,d,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=i,t.outputLen=n,t.enableXOF=d,t.destroyed=this.destroyed,t}},YKt=(e,t,r)=>RP(()=>new JAe(t,e,r)),wC=YKt(1,136,256/8)});var YK,OC,WK=tn(()=>{"use strict";J();K();z();Up();YK=class extends hI{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,nK(t);let i=mC(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,o=new Uint8Array(n);o.set(i.length>n?t.create().update(i).digest():i);for(let d=0;d<o.length;d++)o[d]^=54;this.iHash.update(o),this.oHash=t.create();for(let d=0;d<o.length;d++)o[d]^=106;this.oHash.update(o),I_(o)}update(t){return cR(this),this.iHash.update(t),this}digestInto(t){cR(this),Yl(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:i,finished:n,destroyed:o,blockLen:d,outputLen:g}=this;return t=t,t.finished=n,t.destroyed=o,t.blockLen=d,t.outputLen=g,t.oHash=r._cloneInto(t.oHash),t.iHash=i._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},OC=(e,t,r)=>new YK(e,t).update(r).digest();OC.create=(e,t)=>new YK(e,t)});var Act,pct=tn(()=>{"use strict";J();K();z();Act="1.1.0"});var kd,yT=tn(()=>{"use strict";J();K();z();pct();kd=class e extends Error{constructor(t,r={}){let i=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,n=r.cause instanceof e&&r.cause.docsPath||r.docsPath,o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...i?[`Details: ${i}`]:[],`Version: abitype@${Act}`].join(`
|
|
`);super(o),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),r.cause&&(this.cause=r.cause),this.details=i,this.docsPath=n,this.metaMessages=r.metaMessages,this.shortMessage=t}}});function cg(e,t){return e.exec(t)?.groups}var Nge,xge,JY,zL=tn(()=>{"use strict";J();K();z();Nge=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,xge=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,JY=/^\(.+?\).*?$/});function zY(e){let t=e.type;if(gct.test(e.type)&&"components"in e){t="(";let r=e.components.length;for(let n=0;n<r;n++){let o=e.components[n];t+=zY(o),n<r-1&&(t+=", ")}let i=cg(gct,e.type);return t+=`)${i?.array??""}`,zY({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var gct,_ct=tn(()=>{"use strict";J();K();z();zL();gct=/^tuple(?<array>(\[(\d*)\])*)$/});function XR(e){let t="",r=e.length;for(let i=0;i<r;i++){let n=e[i];t+=zY(n),i!==r-1&&(t+=", ")}return t}var Tge=tn(()=>{"use strict";J();K();z();_ct()});function Pw(e){return e.type==="function"?`function ${e.name}(${XR(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${XR(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${XR(e.inputs)})`:e.type==="error"?`error ${e.name}(${XR(e.inputs)})`:e.type==="constructor"?`constructor(${XR(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}var mct=tn(()=>{"use strict";J();K();z();Tge()});function bct(e){return yct.test(e)}function Ect(e){return cg(yct,e)}function Rct(e){return vct.test(e)}function Sct(e){return cg(vct,e)}function Cct(e){return Ict.test(e)}function wct(e){return cg(Ict,e)}function f3(e){return Oct.test(e)}function Nct(e){return cg(Oct,e)}function Tct(e){return xct.test(e)}function Bct(e){return cg(xct,e)}function Dct(e){return Mct.test(e)}function kct(e){return cg(Mct,e)}function Pct(e){return Jtr.test(e)}var yct,vct,Ict,Oct,xct,Mct,Jtr,Bge,Lct,KY,bT=tn(()=>{"use strict";J();K();z();zL();yct=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;vct=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;Ict=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;Oct=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;xct=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;Mct=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;Jtr=/^receive\(\) external payable$/;Bge=new Set(["memory","indexed","storage","calldata"]),Lct=new Set(["indexed"]),KY=new Set(["calldata","memory","storage"])});var $Y,YY,WY,XY=tn(()=>{"use strict";J();K();z();yT();$Y=class extends kd{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}},YY=class extends kd{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},WY=class extends kd{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}});var ZY,jY,eW,tW,rW,nW,iW=tn(()=>{"use strict";J();K();z();yT();ZY=class extends kd{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}},jY=class extends kd{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},eW=class extends kd{constructor({param:t,name:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},tW=class extends kd{constructor({param:t,type:r,modifier:i}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${i}" not allowed${r?` in "${r}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},rW=class extends kd{constructor({param:t,type:r,modifier:i}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${i}" not allowed${r?` in "${r}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},nW=class extends kd{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}});var Wb,oW,aW,Mge=tn(()=>{"use strict";J();K();z();yT();Wb=class extends kd{constructor({signature:t,type:r}){super(`Invalid ${r} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},oW=class extends kd{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},aW=class extends kd{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}});var sW,Uct=tn(()=>{"use strict";J();K();z();yT();sW=class extends kd{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}});var cW,Fct=tn(()=>{"use strict";J();K();z();yT();cW=class extends kd{constructor({current:t,depth:r}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${r>0?"opening":"closing"} parentheses.`],details:`Depth "${r}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}});function Qct(e,t,r){let i="";if(r)for(let n of Object.entries(r)){if(!n)continue;let o="";for(let d of n[1])o+=`[${d.type}${d.name?`:${d.name}`:""}]`;i+=`(${n[0]}{${o}})`}return t?`${t}:${e}${i}`:e}var uW,Hct=tn(()=>{"use strict";J();K();z();uW=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])});function KL(e,t={}){if(Cct(e))return ztr(e,t);if(Rct(e))return Ktr(e,t);if(bct(e))return $tr(e,t);if(Tct(e))return Ytr(e,t);if(Dct(e))return Wtr(e);if(Pct(e))return{type:"receive",stateMutability:"payable"};throw new oW({signature:e})}function ztr(e,t={}){let r=wct(e);if(!r)throw new Wb({signature:e,type:"function"});let i=Kp(r.parameters),n=[],o=i.length;for(let g=0;g<o;g++)n.push(uy(i[g],{modifiers:KY,structs:t,type:"function"}));let d=[];if(r.returns){let g=Kp(r.returns),y=g.length;for(let _=0;_<y;_++)d.push(uy(g[_],{modifiers:KY,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:n,outputs:d}}function Ktr(e,t={}){let r=Sct(e);if(!r)throw new Wb({signature:e,type:"event"});let i=Kp(r.parameters),n=[],o=i.length;for(let d=0;d<o;d++)n.push(uy(i[d],{modifiers:Lct,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:n}}function $tr(e,t={}){let r=Ect(e);if(!r)throw new Wb({signature:e,type:"error"});let i=Kp(r.parameters),n=[],o=i.length;for(let d=0;d<o;d++)n.push(uy(i[d],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:n}}function Ytr(e,t={}){let r=Bct(e);if(!r)throw new Wb({signature:e,type:"constructor"});let i=Kp(r.parameters),n=[],o=i.length;for(let d=0;d<o;d++)n.push(uy(i[d],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:n}}function Wtr(e){let t=kct(e);if(!t)throw new Wb({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}function uy(e,t){let r=Qct(e,t?.type,t?.structs);if(uW.has(r))return uW.get(r);let i=JY.test(e),n=cg(i?Ztr:Xtr,e);if(!n)throw new jY({param:e});if(n.name&&trr(n.name))throw new eW({param:e,name:n.name});let o=n.name?{name:n.name}:{},d=n.modifier==="indexed"?{indexed:!0}:{},g=t?.structs??{},y,_={};if(i){y="tuple";let N=Kp(n.type),T=[],M=N.length;for(let D=0;D<M;D++)T.push(uy(N[D],{structs:g}));_={components:T}}else if(n.type in g)y="tuple",_={components:g[n.type]};else if(jtr.test(n.type))y=`${n.type}256`;else if(n.type==="address payable")y="address";else if(y=n.type,t?.type!=="struct"&&!Dge(y))throw new WY({type:y});if(n.modifier){if(!t?.modifiers?.has?.(n.modifier))throw new tW({param:e,type:t?.type,modifier:n.modifier});if(KY.has(n.modifier)&&!rrr(y,!!n.array))throw new rW({param:e,type:t?.type,modifier:n.modifier})}let I={type:`${y}${n.array??""}`,...o,...d,..._};return uW.set(r,I),I}function Kp(e,t=[],r="",i=0){let n=e.trim().length;for(let o=0;o<n;o++){let d=e[o],g=e.slice(o+1);switch(d){case",":return i===0?Kp(g,[...t,r.trim()]):Kp(g,t,`${r}${d}`,i);case"(":return Kp(g,t,`${r}${d}`,i+1);case")":return Kp(g,t,`${r}${d}`,i-1);default:return Kp(g,t,`${r}${d}`,i)}}if(r==="")return t;if(i!==0)throw new cW({current:r,depth:i});return t.push(r.trim()),t}function Dge(e){return e==="address"||e==="bool"||e==="function"||e==="string"||Nge.test(e)||xge.test(e)}function trr(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||Nge.test(e)||xge.test(e)||err.test(e)}function rrr(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}var Xtr,Ztr,jtr,err,ET=tn(()=>{"use strict";J();K();z();zL();XY();iW();Mge();Fct();Hct();bT();Xtr=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Ztr=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,jtr=/^u?int$/;err=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function vT(e){let t={},r=e.length;for(let d=0;d<r;d++){let g=e[d];if(!f3(g))continue;let y=Nct(g);if(!y)throw new Wb({signature:g,type:"struct"});let _=y.properties.split(";"),I=[],N=_.length;for(let T=0;T<N;T++){let D=_[T].trim();if(!D)continue;let P=uy(D,{type:"struct"});I.push(P)}if(!I.length)throw new aW({signature:g});t[y.name]=I}let i={},n=Object.entries(t),o=n.length;for(let d=0;d<o;d++){let[g,y]=n[d];i[g]=Gct(y,t)}return i}function Gct(e,t,r=new Set){let i=[],n=e.length;for(let o=0;o<n;o++){let d=e[o];if(JY.test(d.type))i.push(d);else{let y=cg(nrr,d.type);if(!y?.type)throw new nW({abiParameter:d});let{array:_,type:I}=y;if(I in t){if(r.has(I))throw new sW({type:I});i.push({...d,type:`tuple${_??""}`,components:Gct(t[I]??[],t,new Set([...r,I]))})}else if(Dge(I))i.push(d);else throw new YY({type:I})}}return i}var nrr,dW=tn(()=>{"use strict";J();K();z();zL();XY();iW();Mge();Uct();bT();ET();nrr=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/});function fW(e){let t=vT(e),r=[],i=e.length;for(let n=0;n<i;n++){let o=e[n];f3(o)||r.push(KL(o,t))}return r}var qct=tn(()=>{"use strict";J();K();z();bT();dW();ET()});function lW(e){let t;if(typeof e=="string")t=KL(e);else{let r=vT(e),i=e.length;for(let n=0;n<i;n++){let o=e[n];if(!f3(o)){t=KL(o,r);break}}}if(!t)throw new $Y({signature:e});return t}var Vct=tn(()=>{"use strict";J();K();z();XY();bT();dW();ET()});function hW(e){let t=[];if(typeof e=="string"){let r=Kp(e),i=r.length;for(let n=0;n<i;n++)t.push(uy(r[n],{modifiers:Bge}))}else{let r=vT(e),i=e.length;for(let n=0;n<i;n++){let o=e[n];if(f3(o))continue;let d=Kp(o),g=d.length;for(let y=0;y<g;y++)t.push(uy(d[y],{modifiers:Bge,structs:r}))}}if(t.length===0)throw new ZY({params:e});return t}var Jct=tn(()=>{"use strict";J();K();z();iW();bT();dW();ET();ET()});var $L=tn(()=>{"use strict";J();K();z();mct();Tge();qct();Vct();Jct()});function Vf(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new AW(e.type);return`${e.name}(${YL(e.inputs,{includeName:t})})`}function YL(e,{includeName:t=!1}={}){return e?e.map(r=>irr(r,{includeName:t})).join(t?", ":","):""}function irr(e,{includeName:t}){return e.type.startsWith("tuple")?`(${YL(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}var ZR=tn(()=>{"use strict";J();K();z();W0()});function X0(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}var z_=tn(()=>{"use strict";J();K();z()});function Xs(e){return X0(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var K_=tn(()=>{"use strict";J();K();z();z_()});var kge,Kct=tn(()=>{"use strict";J();K();z();kge="2.39.3"});function $ct(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?$ct(e.cause,t):t?null:e}var Pge,Kr,ia=tn(()=>{"use strict";J();K();z();Kct();Pge={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${kge}`},Kr=class e extends Error{constructor(t,r={}){let i=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,n=r.cause instanceof e&&r.cause.docsPath||r.docsPath,o=Pge.getDocsUrl?.({...r,docsPath:n}),d=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...i?[`Details: ${i}`]:[],...Pge.version?[`Version: ${Pge.version}`]:[]].join(`
|
|
`);super(d,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=n,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=kge}walk(t){return $ct(this,t)}}});var RT,l3,ST,$_,pW,gW,_W,mW,WL,IT,yW,CT,XL,dy,wT,bW,EW,vW,fy,Xb,RW,SW,OT,AW,W0=tn(()=>{"use strict";J();K();z();ZR();K_();ia();RT=class extends Kr{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}},l3=class extends Kr{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}},ST=class extends Kr{constructor({data:t,params:r,size:i}){super([`Data size of ${i} bytes is too small for given parameters.`].join(`
|
|
`),{metaMessages:[`Params: (${YL(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=r,this.size=i}},$_=class extends Kr{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}},pW=class extends Kr{constructor({expectedLength:t,givenLength:r,type:i}){super([`ABI encoding array length mismatch for type ${i}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`
|
|
`),{name:"AbiEncodingArrayLengthMismatchError"})}},gW=class extends Kr{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${Xs(r)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}},_W=class extends Kr{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`
|
|
`),{name:"AbiEncodingLengthMismatchError"})}},mW=class extends Kr{constructor(t,{docsPath:r}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
|
|
`),{docsPath:r,name:"AbiErrorInputsNotFoundError"})}},WL=class extends Kr{constructor(t,{docsPath:r}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
|
|
`),{docsPath:r,name:"AbiErrorNotFoundError"})}},IT=class extends Kr{constructor(t,{docsPath:r}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
|
|
`),{docsPath:r,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}},yW=class extends Kr{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}},CT=class extends Kr{constructor(t,{docsPath:r}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
|
|
`),{docsPath:r,name:"AbiEventSignatureNotFoundError"})}},XL=class extends Kr{constructor(t,{docsPath:r}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
|
|
`),{docsPath:r,name:"AbiEventNotFoundError"})}},dy=class extends Kr{constructor(t,{docsPath:r}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
`),{docsPath:r,name:"AbiFunctionNotFoundError"})}},wT=class extends Kr{constructor(t,{docsPath:r}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
`),{docsPath:r,name:"AbiFunctionOutputsNotFoundError"})}},bW=class extends Kr{constructor(t,{docsPath:r}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
|
|
`),{docsPath:r,name:"AbiFunctionSignatureNotFoundError"})}},EW=class extends Kr{constructor(t,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Vf(t.abiItem)}\`, and`,`\`${r.type}\` in \`${Vf(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}},vW=class extends Kr{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:"BytesSizeMismatchError"})}},fy=class extends Kr{constructor({abiItem:t,data:r,params:i,size:n}){super([`Data size of ${n} bytes is too small for non-indexed event parameters.`].join(`
|
|
`),{metaMessages:[`Params: (${YL(i,{includeName:!0})})`,`Data: ${r} (${n} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=r,this.params=i,this.size=n}},Xb=class extends Kr{constructor({abiItem:t,param:r}){super([`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${Vf(t,{includeName:!0})}".`].join(`
|
|
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}},RW=class extends Kr{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
`),{docsPath:r,name:"InvalidAbiEncodingType"})}},SW=class extends Kr{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
`),{docsPath:r,name:"InvalidAbiDecodingType"})}},OT=class extends Kr{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
|
|
`),{name:"InvalidArrayError"})}},AW=class extends Kr{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
`),{name:"InvalidDefinitionTypeError"})}}});var ZL,jL,eU,CW=tn(()=>{"use strict";J();K();z();ia();ZL=class extends Kr{constructor({offset:t,position:r,size:i}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${i}).`,{name:"SliceOffsetOutOfBoundsError"})}},jL=class extends Kr{constructor({size:t,targetSize:r,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}},eU=class extends Kr{constructor({size:t,targetSize:r,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} is expected to be ${r} ${i} long, but is ${t} ${i} long.`,{name:"InvalidBytesLengthError"})}}});function Zb(e,{dir:t,size:r=32}={}){return typeof e=="string"?jR(e,{dir:t,size:r}):orr(e,{dir:t,size:r})}function jR(e,{dir:t,size:r=32}={}){if(r===null)return e;let i=e.replace("0x","");if(i.length>r*2)throw new jL({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function orr(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new jL({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let o=t==="right";i[o?n:r-n-1]=e[o?n:e.length-n-1]}return i}var tU=tn(()=>{"use strict";J();K();z();CW()});var NT,wW,OW,NW,rU=tn(()=>{"use strict";J();K();z();ia();NT=class extends Kr{constructor({max:t,min:r,signed:i,size:n,value:o}){super(`Number "${o}" is not in safe ${n?`${n*8}-bit ${i?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}},wW=class extends Kr{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}},OW=class extends Kr{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}},NW=class extends Kr{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}});function ml(e,{dir:t="left"}={}){let r=typeof e=="string"?e.replace("0x",""):e,i=0;for(let n=0;n<r.length-1&&r[t==="left"?n:r.length-n-1].toString()==="0";n++)i++;return r=t==="left"?r.slice(i):r.slice(0,r.length-i),typeof e=="string"?(r.length===1&&t==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}var Lw=tn(()=>{"use strict";J();K();z()});function $p(e,{size:t}){if(Xs(e)>t)throw new NW({givenSize:Xs(e),maxSize:t})}function Ga(e,t={}){let{signed:r}=t;t.size&&$p(e,{size:t.size});let i=BigInt(e);if(!r)return i;let n=(e.length-2)/2,o=(1n<<BigInt(n)*8n-1n)-1n;return i<=o?i:i-BigInt(`0x${"f".padStart(n*2,"f")}`)-1n}function Lge(e,t={}){let r=e;if(t.size&&($p(r,{size:t.size}),r=ml(r)),ml(r)==="0x00")return!1;if(ml(r)==="0x01")return!0;throw new OW(r)}function o0(e,t={}){return Number(Ga(e,t))}var sf=tn(()=>{"use strict";J();K();z();rU();K_();Lw()});function Uo(e,t={}){return typeof e=="number"||typeof e=="bigint"?Sn(e,t):typeof e=="string"?Y_(e,t):typeof e=="boolean"?nU(e,t):Qs(e,t)}function nU(e,t={}){let r=`0x${Number(e)}`;return typeof t.size=="number"?($p(r,{size:t.size}),Zb(r,{size:t.size})):r}function Qs(e,t={}){let r="";for(let n=0;n<e.length;n++)r+=arr[e[n]];let i=`0x${r}`;return typeof t.size=="number"?($p(i,{size:t.size}),Zb(i,{dir:"right",size:t.size})):i}function Sn(e,t={}){let{signed:r,size:i}=t,n=BigInt(e),o;i?r?o=(1n<<BigInt(i)*8n-1n)-1n:o=2n**(BigInt(i)*8n)-1n:typeof e=="number"&&(o=BigInt(Number.MAX_SAFE_INTEGER));let d=typeof o=="bigint"&&r?-o-1n:0;if(o&&n>o||n<d){let y=typeof e=="bigint"?"n":"";throw new NT({max:o?`${o}${y}`:void 0,min:`${d}${y}`,signed:r,size:i,value:`${e}${y}`})}let g=`0x${(r&&n<0?(1n<<BigInt(i*8))+BigInt(n):n).toString(16)}`;return i?Zb(g,{size:i}):g}function Y_(e,t={}){let r=srr.encode(e);return Qs(r,t)}var arr,srr,fo=tn(()=>{"use strict";J();K();z();rU();tU();sf();arr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));srr=new TextEncoder});function Wh(e,t={}){return typeof e=="number"||typeof e=="bigint"?drr(e,t):typeof e=="boolean"?urr(e,t):X0(e)?Z0(e,t):ly(e,t)}function urr(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?($p(r,{size:t.size}),Zb(r,{size:t.size})):r}function Yct(e){if(e>=eS.zero&&e<=eS.nine)return e-eS.zero;if(e>=eS.A&&e<=eS.F)return e-(eS.A-10);if(e>=eS.a&&e<=eS.f)return e-(eS.a-10)}function Z0(e,t={}){let r=e;t.size&&($p(r,{size:t.size}),r=Zb(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let n=i.length/2,o=new Uint8Array(n);for(let d=0,g=0;d<n;d++){let y=Yct(i.charCodeAt(g++)),_=Yct(i.charCodeAt(g++));if(y===void 0||_===void 0)throw new Kr(`Invalid byte sequence ("${i[g-2]}${i[g-1]}" in "${i}").`);o[d]=y*16+_}return o}function drr(e,t){let r=Sn(e,t);return Z0(r)}function ly(e,t={}){let r=crr.encode(e);return typeof t.size=="number"?($p(r,{size:t.size}),Zb(r,{dir:"right",size:t.size})):r}var crr,eS,cf=tn(()=>{"use strict";J();K();z();ia();z_();tU();sf();fo();crr=new TextEncoder;eS={zero:48,nine:57,A:65,F:70,a:97,f:102}});function eu(e,t){let r=t||"hex",i=wC(X0(e,{strict:!1})?Wh(e):e);return r==="bytes"?i:Uo(i)}var W_=tn(()=>{"use strict";J();K();z();$K();z_();cf();fo()});function Wct(e){return frr(e)}var frr,Xct=tn(()=>{"use strict";J();K();z();cf();W_();frr=e=>eu(Wh(e))});function Zct(e){let t=!0,r="",i=0,n="",o=!1;for(let d=0;d<e.length;d++){let g=e[d];if(["(",")",","].includes(g)&&(t=!0),g==="("&&i++,g===")"&&i--,!!t){if(i===0){if(g===" "&&["event","function",""].includes(n))n="";else if(n+=g,g===")"){o=!0;break}continue}if(g===" "){e[d-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}n+=g,r+=g}}if(!o)throw new Kr("Unable to normalize signature.");return n}var jct=tn(()=>{"use strict";J();K();z();ia()});var eut,tut=tn(()=>{"use strict";J();K();z();$L();jct();eut=e=>{let t=typeof e=="string"?e:Pw(e);return Zct(t)}});function xW(e){return Wct(eut(e))}var Uge=tn(()=>{"use strict";J();K();z();Xct();tut()});var h3,iU=tn(()=>{"use strict";J();K();z();Uge();h3=xW});var nc,X_=tn(()=>{"use strict";J();K();z();ia();nc=class extends Kr{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}});var Z_,xT=tn(()=>{"use strict";J();K();z();Z_=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){let i=this.keys().next().value;i&&this.delete(i)}return this}}});function jb(e,t){if(Fge.has(`${e}.${t}`))return Fge.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=eu(ly(r),"bytes"),n=(t?r.substring(`${t}0x`.length):r).split("");for(let d=0;d<40;d+=2)i[d>>1]>>4>=8&&n[d]&&(n[d]=n[d].toUpperCase()),(i[d>>1]&15)>=8&&n[d+1]&&(n[d+1]=n[d+1].toUpperCase());let o=`0x${n.join("")}`;return Fge.set(`${e}.${t}`,o),o}function hy(e,t){if(!ys(e,{strict:!1}))throw new nc({address:e});return jb(e,t)}var Fge,tS=tn(()=>{"use strict";J();K();z();X_();cf();W_();xT();Yp();Fge=new Z_(8192)});function ys(e,t){let{strict:r=!0}=t??{},i=`${e}.${r}`;if(Qge.has(i))return Qge.get(i);let n=lrr.test(e)?e.toLowerCase()===e?!0:r?jb(e)===e:!0:!1;return Qge.set(i,n),n}var lrr,Qge,Yp=tn(()=>{"use strict";J();K();z();xT();tS();lrr=/^0x[a-fA-F0-9]{40}$/,Qge=new Z_(8192)});function uf(e){return typeof e[0]=="string"?df(e):hrr(e)}function hrr(e){let t=0;for(let n of e)t+=n.length;let r=new Uint8Array(t),i=0;for(let n of e)r.set(n,i),i+=n.length;return r}function df(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}var Xh=tn(()=>{"use strict";J();K();z()});function j_(e,t,r,{strict:i}={}){return X0(e,{strict:!1})?TW(e,t,r,{strict:i}):Hge(e,t,r,{strict:i})}function rut(e,t){if(typeof t=="number"&&t>0&&t>Xs(e)-1)throw new ZL({offset:t,position:"start",size:Xs(e)})}function nut(e,t,r){if(typeof t=="number"&&typeof r=="number"&&Xs(e)!==r-t)throw new ZL({offset:r,position:"end",size:Xs(e)})}function Hge(e,t,r,{strict:i}={}){rut(e,t);let n=e.slice(t,r);return i&&nut(n,t,r),n}function TW(e,t,r,{strict:i}={}){rut(e,t);let n=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&nut(n,t,r),n}var A3=tn(()=>{"use strict";J();K();z();CW();z_();K_()});var iut,BW,Gge=tn(()=>{"use strict";J();K();z();iut=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,BW=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function ch(e,t){if(e.length!==t.length)throw new _W({expectedLength:e.length,givenLength:t.length});let r=Arr({params:e,values:t}),i=Vge(r);return i.length===0?"0x":i}function Arr({params:e,values:t}){let r=[];for(let i=0;i<e.length;i++)r.push(qge({param:e[i],value:t[i]}));return r}function qge({param:e,value:t}){let r=MW(e.type);if(r){let[i,n]=r;return grr(t,{length:i,param:{...e,type:n}})}if(e.type==="tuple")return Err(t,{param:e});if(e.type==="address")return prr(t);if(e.type==="bool")return mrr(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){let i=e.type.startsWith("int"),[,,n="256"]=BW.exec(e.type)??[];return yrr(t,{signed:i,size:Number(n)})}if(e.type.startsWith("bytes"))return _rr(t,{param:e});if(e.type==="string")return brr(t);throw new RW(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Vge(e){let t=0;for(let o=0;o<e.length;o++){let{dynamic:d,encoded:g}=e[o];d?t+=32:t+=Xs(g)}let r=[],i=[],n=0;for(let o=0;o<e.length;o++){let{dynamic:d,encoded:g}=e[o];d?(r.push(Sn(t+n,{size:32})),i.push(g),n+=Xs(g)):r.push(g)}return uf([...r,...i])}function prr(e){if(!ys(e))throw new nc({address:e});return{dynamic:!1,encoded:jR(e.toLowerCase())}}function grr(e,{length:t,param:r}){let i=t===null;if(!Array.isArray(e))throw new OT(e);if(!i&&e.length!==t)throw new pW({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let n=!1,o=[];for(let d=0;d<e.length;d++){let g=qge({param:r,value:e[d]});g.dynamic&&(n=!0),o.push(g)}if(i||n){let d=Vge(o);if(i){let g=Sn(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?uf([g,d]):g}}if(n)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:uf(o.map(({encoded:d})=>d))}}function _rr(e,{param:t}){let[,r]=t.type.split("bytes"),i=Xs(e);if(!r){let n=e;return i%32!==0&&(n=jR(n,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:uf([jR(Sn(i,{size:32})),n])}}if(i!==Number.parseInt(r,10))throw new gW({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:jR(e,{dir:"right"})}}function mrr(e){if(typeof e!="boolean")throw new Kr(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:jR(nU(e))}}function yrr(e,{signed:t,size:r=256}){if(typeof r=="number"){let i=2n**(BigInt(r)-(t?1n:0n))-1n,n=t?-i-1n:0n;if(e>i||e<n)throw new NT({max:i.toString(),min:n.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Sn(e,{size:32,signed:t})}}function brr(e){let t=Y_(e),r=Math.ceil(Xs(t)/32),i=[];for(let n=0;n<r;n++)i.push(jR(j_(t,n*32,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:uf([jR(Sn(Xs(t),{size:32})),...i])}}function Err(e,{param:t}){let r=!1,i=[];for(let n=0;n<t.components.length;n++){let o=t.components[n],d=Array.isArray(e)?n:o.name,g=qge({param:o,value:e[d]});i.push(g),g.dynamic&&(r=!0)}return{dynamic:r,encoded:r?Vge(i):uf(i.map(({encoded:n})=>n))}}function MW(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}var eE=tn(()=>{"use strict";J();K();z();W0();X_();ia();rU();Yp();Xh();tU();K_();A3();fo();Gge()});var tE,TT=tn(()=>{"use strict";J();K();z();A3();Uge();tE=e=>j_(xW(e),0,4)});function Wp(e){let{abi:t,args:r=[],name:i}=e,n=X0(i,{strict:!1}),o=t.filter(g=>n?g.type==="function"?tE(g)===i:g.type==="event"?h3(g)===i:!1:"name"in g&&g.name===i);if(o.length===0)return;if(o.length===1)return o[0];let d;for(let g of o){if(!("inputs"in g))continue;if(!r||r.length===0){if(!g.inputs||g.inputs.length===0)return g;continue}if(!g.inputs||g.inputs.length===0||g.inputs.length!==r.length)continue;if(r.every((_,I)=>{let N="inputs"in g&&g.inputs[I];return N?Jge(_,N):!1})){if(d&&"inputs"in d&&d.inputs){let _=out(g.inputs,d.inputs,r);if(_)throw new EW({abiItem:g,type:_[0]},{abiItem:d,type:_[1]})}d=g}}return d||o[0]}function Jge(e,t){let r=typeof e,i=t.type;switch(i){case"address":return ys(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return i==="tuple"&&"components"in t?Object.values(t.components).every((n,o)=>Jge(Object.values(e)[o],n)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i)?Array.isArray(e)&&e.every(n=>Jge(n,{...t,type:i.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function out(e,t,r){for(let i in e){let n=e[i],o=t[i];if(n.type==="tuple"&&o.type==="tuple"&&"components"in n&&"components"in o)return out(n.components,o.components,r[i]);let d=[n.type,o.type];if(d.includes("address")&&d.includes("bytes20")?!0:d.includes("address")&&d.includes("string")?ys(r[i],{strict:!1}):d.includes("address")&&d.includes("bytes")?ys(r[i],{strict:!1}):!1)return d}}var p3=tn(()=>{"use strict";J();K();z();W0();z_();Yp();iU();TT()});function na(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}var E0=tn(()=>{"use strict";J();K();z()});function uut(e){let{abi:t,args:r,functionName:i}=e,n=t[0];if(i){let o=Wp({abi:t,args:r,name:i});if(!o)throw new dy(i,{docsPath:cut});n=o}if(n.type!=="function")throw new dy(void 0,{docsPath:cut});return{abi:[n],functionName:tE(Vf(n))}}var cut,dut=tn(()=>{"use strict";J();K();z();W0();TT();ZR();p3();cut="/docs/contract/encodeFunctionData"});function hu(e){let{args:t}=e,{abi:r,functionName:i}=e.abi.length===1&&e.functionName?.startsWith("0x")?e:uut(e),n=r[0],o=i,d="inputs"in n&&n.inputs?ch(n.inputs,t??[]):void 0;return df([o,d??"0x"])}var Xp=tn(()=>{"use strict";J();K();z();Xh();eE();dut()});var fut,kW,lut,PW=tn(()=>{"use strict";J();K();z();fut={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},kW={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},lut={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}});var oU,BT,LW,zge=tn(()=>{"use strict";J();K();z();ia();oU=class extends Kr{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},BT=class extends Kr{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},LW=class extends Kr{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}});function MT(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(vrr);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var vrr,UW=tn(()=>{"use strict";J();K();z();zge();vrr={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new LW({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new BT({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new oU({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new oU({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}});function hut(e,t={}){typeof t.size<"u"&&$p(e,{size:t.size});let r=Qs(e,t);return Ga(r,t)}function Aut(e,t={}){let r=e;if(typeof t.size<"u"&&($p(r,{size:t.size}),r=ml(r)),r.length>1||r[0]>1)throw new wW(r);return!!r[0]}function nE(e,t={}){typeof t.size<"u"&&$p(e,{size:t.size});let r=Qs(e,t);return o0(r,t)}function put(e,t={}){let r=e;return typeof t.size<"u"&&($p(r,{size:t.size}),r=ml(r,{dir:"right"})),new TextDecoder().decode(r)}var gut=tn(()=>{"use strict";J();K();z();rU();Lw();sf();fo()});function rS(e,t){let r=typeof t=="string"?Z0(t):t,i=MT(r);if(Xs(r)===0&&e.length>0)throw new $_;if(Xs(t)&&Xs(t)<32)throw new ST({data:typeof t=="string"?t:Qs(t),params:e,size:Xs(t)});let n=0,o=[];for(let d=0;d<e.length;++d){let g=e[d];i.setPosition(n);let[y,_]=DT(i,g,{staticPosition:0});n+=_,o.push(y)}return o}function DT(e,t,{staticPosition:r}){let i=MW(t.type);if(i){let[n,o]=i;return Srr(e,{...t,type:o},{length:n,staticPosition:r})}if(t.type==="tuple")return Orr(e,t,{staticPosition:r});if(t.type==="address")return Rrr(e);if(t.type==="bool")return Irr(e);if(t.type.startsWith("bytes"))return Crr(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return wrr(e,t);if(t.type==="string")return Nrr(e,{staticPosition:r});throw new SW(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function Rrr(e){let t=e.readBytes(32);return[jb(Qs(Hge(t,-20))),32]}function Srr(e,t,{length:r,staticPosition:i}){if(!r){let d=nE(e.readBytes(Kge)),g=i+d,y=g+_ut;e.setPosition(g);let _=nE(e.readBytes(_ut)),I=aU(t),N=0,T=[];for(let M=0;M<_;++M){e.setPosition(y+(I?M*32:N));let[D,P]=DT(e,t,{staticPosition:y});N+=P,T.push(D)}return e.setPosition(i+32),[T,32]}if(aU(t)){let d=nE(e.readBytes(Kge)),g=i+d,y=[];for(let _=0;_<r;++_){e.setPosition(g+_*32);let[I]=DT(e,t,{staticPosition:g});y.push(I)}return e.setPosition(i+32),[y,32]}let n=0,o=[];for(let d=0;d<r;++d){let[g,y]=DT(e,t,{staticPosition:i+n});n+=y,o.push(g)}return[o,n]}function Irr(e){return[Aut(e.readBytes(32),{size:32}),32]}function Crr(e,t,{staticPosition:r}){let[i,n]=t.type.split("bytes");if(!n){let d=nE(e.readBytes(32));e.setPosition(r+d);let g=nE(e.readBytes(32));if(g===0)return e.setPosition(r+32),["0x",32];let y=e.readBytes(g);return e.setPosition(r+32),[Qs(y),32]}return[Qs(e.readBytes(Number.parseInt(n,10),32)),32]}function wrr(e,t){let r=t.type.startsWith("int"),i=Number.parseInt(t.type.split("int")[1]||"256",10),n=e.readBytes(32);return[i>48?hut(n,{signed:r}):nE(n,{signed:r}),32]}function Orr(e,t,{staticPosition:r}){let i=t.components.length===0||t.components.some(({name:d})=>!d),n=i?[]:{},o=0;if(aU(t)){let d=nE(e.readBytes(Kge)),g=r+d;for(let y=0;y<t.components.length;++y){let _=t.components[y];e.setPosition(g+o);let[I,N]=DT(e,_,{staticPosition:g});o+=N,n[i?y:_?.name]=I}return e.setPosition(r+32),[n,32]}for(let d=0;d<t.components.length;++d){let g=t.components[d],[y,_]=DT(e,g,{staticPosition:r});n[i?d:g?.name]=y,o+=_}return[n,o]}function Nrr(e,{staticPosition:t}){let r=nE(e.readBytes(32)),i=t+r;e.setPosition(i);let n=nE(e.readBytes(32));if(n===0)return e.setPosition(t+32),["",32];let o=e.readBytes(n,32),d=put(ml(o));return e.setPosition(t+32),[d,32]}function aU(e){let{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(aU);let r=MW(e.type);return!!(r&&aU({...e,type:r[1]}))}var _ut,Kge,sU=tn(()=>{"use strict";J();K();z();W0();tS();UW();K_();A3();Lw();gut();cf();fo();eE();_ut=32,Kge=32});function FW(e){let{abi:t,data:r}=e,i=j_(r,0,4);if(i==="0x")throw new $_;let o=[...t||[],kW,lut].find(d=>d.type==="error"&&i===tE(Vf(d)));if(!o)throw new IT(i,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:o,args:"inputs"in o&&o.inputs&&o.inputs.length>0?rS(o.inputs,j_(r,4)):void 0,errorName:o.name}}var $ge=tn(()=>{"use strict";J();K();z();PW();W0();A3();TT();sU();ZR()});var ws,Zh=tn(()=>{"use strict";J();K();z();ws=(e,t,r)=>JSON.stringify(e,(i,n)=>{let o=typeof n=="bigint"?n.toString():n;return typeof t=="function"?t(i,o):o},r)});function Yge({abiItem:e,args:t,includeFunctionName:r=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((n,o)=>`${i&&n.name?`${n.name}: `:""}${typeof t[o]=="object"?ws(t[o]):t[o]}`).join(", ")})`}var mut=tn(()=>{"use strict";J();K();z();Zh()});var yut,but,Wge=tn(()=>{"use strict";J();K();z();yut={gwei:9,wei:18},but={ether:-9,wei:9}});function QW(e,t){let r=e.toString(),i=r.startsWith("-");i&&(r=r.slice(1)),r=r.padStart(t,"0");let[n,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${i?"-":""}${n||"0"}${o?`.${o}`:""}`}var Xge=tn(()=>{"use strict";J();K();z()});function kT(e,t="wei"){return QW(e,yut[t])}var HW=tn(()=>{"use strict";J();K();z();Wge();Xge()});function Jf(e,t="wei"){return QW(e,but[t])}var PT=tn(()=>{"use strict";J();K();z();Wge();Xge()});function Eut(e){return e.reduce((t,{slot:r,value:i})=>`${t} ${r}: ${i}
|
|
`,"")}function vut(e){return e.reduce((t,{address:r,...i})=>{let n=`${t} ${r}:
|
|
`;return i.nonce&&(n+=` nonce: ${i.nonce}
|
|
`),i.balance&&(n+=` balance: ${i.balance}
|
|
`),i.code&&(n+=` code: ${i.code}
|
|
`),i.state&&(n+=` state:
|
|
`,n+=Eut(i.state)),i.stateDiff&&(n+=` stateDiff:
|
|
`,n+=Eut(i.stateDiff)),n},` State Override:
|
|
`).slice(0,-1)}var GW,qW,Zge=tn(()=>{"use strict";J();K();z();ia();GW=class extends Kr{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}},qW=class extends Kr{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}});function Uw(e){let t=Object.entries(e).map(([i,n])=>n===void 0||n===!1?null:[i,n]).filter(Boolean),r=t.reduce((i,[n])=>Math.max(i,n.length),0);return t.map(([i,n])=>` ${`${i}:`.padEnd(r+1)} ${n}`).join(`
|
|
`)}var VW,JW,zW,KW,$W,LT,UT,FT,YW,ug=tn(()=>{"use strict";J();K();z();HW();PT();ia();VW=class extends Kr{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
`),{name:"FeeConflictError"})}},JW=class extends Kr{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}},zW=class extends Kr{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Uw(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}},KW=class extends Kr{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}},$W=class extends Kr{constructor(t,{account:r,docsPath:i,chain:n,data:o,gas:d,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:_,nonce:I,to:N,value:T}){let M=Uw({chain:n&&`${n?.name} (id: ${n?.id})`,from:r?.address,to:N,value:typeof T<"u"&&`${kT(T)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:d,gasPrice:typeof g<"u"&&`${Jf(g)} gwei`,maxFeePerGas:typeof y<"u"&&`${Jf(y)} gwei`,maxPriorityFeePerGas:typeof _<"u"&&`${Jf(_)} gwei`,nonce:I});super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",M].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},LT=class extends Kr{constructor({blockHash:t,blockNumber:r,blockTag:i,hash:n,index:o}){let d="Transaction";i&&o!==void 0&&(d=`Transaction at block time "${i}" at index "${o}"`),t&&o!==void 0&&(d=`Transaction at block hash "${t}" at index "${o}"`),r&&o!==void 0&&(d=`Transaction at block number "${r}" at index "${o}"`),n&&(d=`Transaction with hash "${n}"`),super(`${d} could not be found.`,{name:"TransactionNotFoundError"})}},UT=class extends Kr{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}},FT=class extends Kr{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}},YW=class extends Kr{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}});var Rut,Fw,WW=tn(()=>{"use strict";J();K();z();Rut=e=>e,Fw=e=>e});var QT,HT,Qw,XW,ZW,iE,_3=tn(()=>{"use strict";J();K();z();E0();PW();$ge();ZR();mut();p3();HW();PT();W0();ia();Zge();ug();WW();QT=class extends Kr{constructor(t,{account:r,docsPath:i,chain:n,data:o,gas:d,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:_,nonce:I,to:N,value:T,stateOverride:M}){let D=r?na(r):void 0,P=Uw({from:D?.address,to:N,value:typeof T<"u"&&`${kT(T)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:d,gasPrice:typeof g<"u"&&`${Jf(g)} gwei`,maxFeePerGas:typeof y<"u"&&`${Jf(y)} gwei`,maxPriorityFeePerGas:typeof _<"u"&&`${Jf(_)} gwei`,nonce:I});M&&(P+=`
|
|
${vut(M)}`),super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",P].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},HT=class extends Kr{constructor(t,{abi:r,args:i,contractAddress:n,docsPath:o,functionName:d,sender:g}){let y=Wp({abi:r,args:i,name:d}),_=y?Yge({abiItem:y,args:i,includeFunctionName:!1,includeName:!1}):void 0,I=y?Vf(y,{includeName:!0}):void 0,N=Uw({address:n&&Rut(n),function:I,args:_&&_!=="()"&&`${[...Array(d?.length??0).keys()].map(()=>" ").join("")}${_}`,sender:g});super(t.shortMessage||`An unknown error occurred while executing the contract function "${d}".`,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],N&&"Contract Call:",N].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=i,this.cause=t,this.contractAddress=n,this.functionName=d,this.sender=g}},Qw=class extends Kr{constructor({abi:t,data:r,functionName:i,message:n}){let o,d,g,y;if(r&&r!=="0x")try{d=FW({abi:t,data:r});let{abiItem:I,errorName:N,args:T}=d;if(N==="Error")y=T[0];else if(N==="Panic"){let[M]=T;y=fut[M]}else{let M=I?Vf(I,{includeName:!0}):void 0,D=I&&T?Yge({abiItem:I,args:T,includeFunctionName:!1,includeName:!1}):void 0;g=[M?`Error: ${M}`:"",D&&D!=="()"?` ${[...Array(N?.length??0).keys()].map(()=>" ").join("")}${D}`:""]}}catch(I){o=I}else n&&(y=n);let _;o instanceof IT&&(_=o.signature,g=[`Unable to decode signature "${_}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${_}.`]),super(y&&y!=="execution reverted"||_?[`The contract function "${i}" reverted with the following ${_?"signature":"reason"}:`,y||_].join(`
|
|
`):`The contract function "${i}" reverted.`,{cause:o,metaMessages:g,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=d,this.raw=r,this.reason=y,this.signature=_}},XW=class extends Kr{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}},ZW=class extends Kr{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}},iE=class extends Kr{constructor({data:t,message:r}){super(r||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}});var e2,m3,cU,Hw=tn(()=>{"use strict";J();K();z();Zh();ia();WW();e2=class extends Kr{constructor({body:t,cause:r,details:i,headers:n,status:o,url:d}){super("HTTP request failed.",{cause:r,details:i,metaMessages:[o&&`Status: ${o}`,`URL: ${Fw(d)}`,t&&`Request body: ${ws(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=n,this.status=o,this.url=d}},m3=class extends Kr{constructor({body:t,error:r,url:i}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Fw(i)}`,`Request body: ${ws(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data}},cU=class extends Kr{constructor({body:t,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Fw(r)}`,`Request body: ${ws(t)}`],name:"TimeoutError"})}}});var xrr,jh,GA,GT,qT,VT,JT,nS,t2,zT,KT,$T,y3,Gw,YT,qw,WT,XT,ZT,jT,eB,b3,tB,rB,nB,iB,oB,E3,jW,aB=tn(()=>{"use strict";J();K();z();ia();Hw();xrr=-1,jh=class extends Kr{constructor(t,{code:r,docsPath:i,metaMessages:n,name:o,shortMessage:d}){super(d,{cause:t,docsPath:i,metaMessages:n||t?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||t.name,this.code=t instanceof m3?t.code:r??xrr}},GA=class extends jh{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}},GT=class e extends jh{constructor(t){super(t,{code:e.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}};Object.defineProperty(GT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});qT=class e extends jh{constructor(t){super(t,{code:e.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}};Object.defineProperty(qT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});VT=class e extends jh{constructor(t,{method:r}={}){super(t,{code:e.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}};Object.defineProperty(VT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});JT=class e extends jh{constructor(t){super(t,{code:e.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
`)})}};Object.defineProperty(JT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});nS=class e extends jh{constructor(t){super(t,{code:e.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}};Object.defineProperty(nS,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});t2=class e extends jh{constructor(t){super(t,{code:e.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
`)})}};Object.defineProperty(t2,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});zT=class e extends jh{constructor(t){super(t,{code:e.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(zT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});KT=class e extends jh{constructor(t){super(t,{code:e.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}};Object.defineProperty(KT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});$T=class e extends jh{constructor(t){super(t,{code:e.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}};Object.defineProperty($T,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});y3=class e extends jh{constructor(t,{method:r}={}){super(t,{code:e.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}};Object.defineProperty(y3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});Gw=class e extends jh{constructor(t){super(t,{code:e.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}};Object.defineProperty(Gw,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});YT=class e extends jh{constructor(t){super(t,{code:e.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}};Object.defineProperty(YT,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});qw=class e extends GA{constructor(t){super(t,{code:e.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}};Object.defineProperty(qw,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});WT=class e extends GA{constructor(t){super(t,{code:e.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}};Object.defineProperty(WT,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});XT=class e extends GA{constructor(t,{method:r}={}){super(t,{code:e.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}};Object.defineProperty(XT,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});ZT=class e extends GA{constructor(t){super(t,{code:e.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}};Object.defineProperty(ZT,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});jT=class e extends GA{constructor(t){super(t,{code:e.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}};Object.defineProperty(jT,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});eB=class e extends GA{constructor(t){super(t,{code:e.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}};Object.defineProperty(eB,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});b3=class e extends GA{constructor(t){super(t,{code:e.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}};Object.defineProperty(b3,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});tB=class e extends GA{constructor(t){super(t,{code:e.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}};Object.defineProperty(tB,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});rB=class e extends GA{constructor(t){super(t,{code:e.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}};Object.defineProperty(rB,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});nB=class e extends GA{constructor(t){super(t,{code:e.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}};Object.defineProperty(nB,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});iB=class e extends GA{constructor(t){super(t,{code:e.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}};Object.defineProperty(iB,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});oB=class e extends GA{constructor(t){super(t,{code:e.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}};Object.defineProperty(oB,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});E3=class e extends GA{constructor(t){super(t,{code:e.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}};Object.defineProperty(E3,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});jW=class extends jh{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}});function sB(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function oS(e){if(!sB(e))throw new Error("Uint8Array expected")}function cB(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function uU(e){let t=e.toString(16);return t.length&1?"0"+t:t}function Cut(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?r_e:BigInt("0x"+e)}function uB(e){if(oS(e),wut)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Brr[e[r]];return t}function Sut(e){if(e>=iS._0&&e<=iS._9)return e-iS._0;if(e>=iS.A&&e<=iS.F)return e-(iS.A-10);if(e>=iS.a&&e<=iS.f)return e-(iS.a-10)}function dU(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(wut)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let n=0,o=0;n<r;n++,o+=2){let d=Sut(e.charCodeAt(o)),g=Sut(e.charCodeAt(o+1));if(d===void 0||g===void 0){let y=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+o)}i[n]=d*16+g}return i}function Zp(e){return Cut(uB(e))}function n_e(e){return oS(e),Cut(uB(Uint8Array.from(e).reverse()))}function oE(e,t){return dU(e.toString(16).padStart(t*2,"0"))}function i_e(e,t){return oE(e,t).reverse()}function ff(e,t,r){let i;if(typeof t=="string")try{i=dU(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(sB(t))i=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");let n=i.length;if(typeof r=="number"&&n!==r)throw new Error(e+" of length "+r+" expected, got "+n);return i}function qA(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];oS(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function tX(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Vw(e,t,r){return jge(e)&&jge(t)&&jge(r)&&t<=e&&e<r}function aS(e,t,r,i){if(!Vw(t,r,i))throw new Error("expected valid "+e+": "+r+" <= n < "+i+", got "+t)}function Out(e){let t;for(t=0;e>r_e;e>>=t_e,t+=1);return t}function Nut(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=e_e(e),n=e_e(e),o=0,d=()=>{i.fill(1),n.fill(0),o=0},g=(...N)=>r(n,i,...N),y=(N=e_e(0))=>{n=g(Iut([0]),N),i=g(),N.length!==0&&(n=g(Iut([1]),N),i=g())},_=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let N=0,T=[];for(;N<t;){i=g();let M=i.slice();T.push(M),N+=i.length}return qA(...T)};return(N,T)=>{d(),y(N);let M;for(;!(M=T(_()));)y();return d(),M}}function sS(e,t,r={}){let i=(n,o,d)=>{let g=Mrr[o];if(typeof g!="function")throw new Error("invalid validator function");let y=e[n];if(!(d&&y===void 0)&&!g(y,e))throw new Error("param "+String(n)+" is invalid. Expected "+o+", got "+y)};for(let[n,o]of Object.entries(t))i(n,o,!1);for(let[n,o]of Object.entries(r))i(n,o,!0);return e}function o_e(e){let t=new WeakMap;return(r,...i)=>{let n=t.get(r);if(n!==void 0)return n;let o=e(r,...i);return t.set(r,o),o}}var r_e,t_e,wut,Brr,iS,jge,Jw,e_e,Iut,Mrr,dB=tn(()=>{"use strict";J();K();z();r_e=BigInt(0),t_e=BigInt(1);wut=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Brr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));iS={_0:48,_9:57,A:65,F:70,a:97,f:102};jge=e=>typeof e=="bigint"&&r_e<=e;Jw=e=>(t_e<<BigInt(e))-t_e,e_e=e=>new Uint8Array(e),Iut=e=>Uint8Array.from(e);Mrr={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||sB(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)}});function Pd(e,t){let r=e%t;return r>=VA?r:t+r}function fg(e,t,r){let i=e;for(;t-- >VA;)i*=i,i%=r;return i}function rX(e,t){if(e===VA)throw new Error("invert: expected non-zero number");if(t<=VA)throw new Error("invert: expected positive modulus, got "+t);let r=Pd(e,t),i=t,n=VA,o=eA,d=eA,g=VA;for(;r!==VA;){let _=i/r,I=i%r,N=n-d*_,T=o-g*_;i=r,r=I,n=d,o=g,d=N,g=T}if(i!==eA)throw new Error("invert: does not exist");return Pd(n,t)}function Dut(e,t){let r=(e.ORDER+eA)/Tut,i=e.pow(t,r);if(!e.eql(e.sqr(i),t))throw new Error("Cannot find square root");return i}function krr(e,t){let r=(e.ORDER-But)/Mut,i=e.mul(t,zw),n=e.pow(i,r),o=e.mul(t,n),d=e.mul(e.mul(o,zw),n),g=e.mul(o,e.sub(d,e.ONE));if(!e.eql(e.sqr(g),t))throw new Error("Cannot find square root");return g}function Prr(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-eA,r=0;for(;t%zw===VA;)t/=zw,r++;let i=zw,n=fU(e);for(;xut(n,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Dut;let o=n.pow(i,t),d=(t+eA)/zw;return function(y,_){if(y.is0(_))return _;if(xut(y,_)!==1)throw new Error("Cannot find square root");let I=r,N=y.mul(y.ONE,o),T=y.pow(_,t),M=y.pow(_,d);for(;!y.eql(T,y.ONE);){if(y.is0(T))return y.ZERO;let D=1,P=y.sqr(T);for(;!y.eql(P,y.ONE);)if(D++,P=y.sqr(P),D===I)throw new Error("Cannot find square root");let G=eA<<BigInt(I-D-1),q=y.pow(N,G);I=D,N=y.sqr(q),T=y.mul(T,N),M=y.mul(M,q)}return M}}function Lrr(e){return e%Tut===Drr?Dut:e%Mut===But?krr:Prr(e)}function nX(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Urr.reduce((i,n)=>(i[n]="function",i),t);return sS(e,r)}function Frr(e,t,r){if(r<VA)throw new Error("invalid exponent, negatives unsupported");if(r===VA)return e.ONE;if(r===eA)return t;let i=e.ONE,n=t;for(;r>VA;)r&eA&&(i=e.mul(i,n)),n=e.sqr(n),r>>=eA;return i}function fB(e,t,r=!1){let i=new Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((d,g,y)=>e.is0(g)?d:(i[y]=d,e.mul(d,g)),e.ONE),o=e.inv(n);return t.reduceRight((d,g,y)=>e.is0(g)?d:(i[y]=e.mul(d,i[y]),e.mul(d,g)),o),i}function xut(e,t){let r=(e.ORDER-eA)/zw,i=e.pow(t,r),n=e.eql(i,e.ONE),o=e.eql(i,e.ZERO),d=e.eql(i,e.neg(e.ONE));if(!n&&!o&&!d)throw new Error("invalid Legendre symbol result");return n?1:o?0:-1}function a_e(e,t){t!==void 0&&S_(t);let r=t!==void 0?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function fU(e,t,r=!1,i={}){if(e<=VA)throw new Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:n,nByteLength:o}=a_e(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let d,g=Object.freeze({ORDER:e,isLE:r,BITS:n,BYTES:o,MASK:Jw(n),ZERO:VA,ONE:eA,create:y=>Pd(y,e),isValid:y=>{if(typeof y!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof y);return VA<=y&&y<e},is0:y=>y===VA,isOdd:y=>(y&eA)===eA,neg:y=>Pd(-y,e),eql:(y,_)=>y===_,sqr:y=>Pd(y*y,e),add:(y,_)=>Pd(y+_,e),sub:(y,_)=>Pd(y-_,e),mul:(y,_)=>Pd(y*_,e),pow:(y,_)=>Frr(g,y,_),div:(y,_)=>Pd(y*rX(_,e),e),sqrN:y=>y*y,addN:(y,_)=>y+_,subN:(y,_)=>y-_,mulN:(y,_)=>y*_,inv:y=>rX(y,e),sqrt:i.sqrt||(y=>(d||(d=Lrr(e)),d(g,y))),toBytes:y=>r?i_e(y,o):oE(y,o),fromBytes:y=>{if(y.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+y.length);return r?n_e(y):Zp(y)},invertBatch:y=>fB(g,y),cmov:(y,_,I)=>I?_:y});return Object.freeze(g)}function kut(e){if(typeof e!="bigint")throw new Error("field order must be bigint");let t=e.toString(2).length;return Math.ceil(t/8)}function s_e(e){let t=kut(e);return t+Math.ceil(t/2)}function Put(e,t,r=!1){let i=e.length,n=kut(t),o=s_e(t);if(i<16||i<o||i>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+i);let d=r?n_e(e):Zp(e),g=Pd(d,t-eA)+eA;return r?i_e(g,n):oE(g,n)}var VA,eA,zw,Drr,Tut,But,Mut,Urr,lU=tn(()=>{"use strict";J();K();z();Up();dB();VA=BigInt(0),eA=BigInt(1),zw=BigInt(2),Drr=BigInt(3),Tut=BigInt(4),But=BigInt(5),Mut=BigInt(8);Urr=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"]});function c_e(e,t){let r=t.negate();return e?r:t}function Fut(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function u_e(e,t){Fut(e,t);let r=Math.ceil(t/e)+1,i=2**(e-1),n=2**e,o=Jw(e),d=BigInt(e);return{windows:r,windowSize:i,mask:o,maxNumber:n,shiftBy:d}}function Uut(e,t,r){let{windowSize:i,mask:n,maxNumber:o,shiftBy:d}=r,g=Number(e&n),y=e>>d;g>i&&(g-=o,y+=l_e);let _=t*i,I=_+Math.abs(g)-1,N=g===0,T=g<0,M=t%2!==0;return{nextN:y,offset:I,isZero:N,isNeg:T,isNegF:M,offsetF:_}}function Qrr(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,i)=>{if(!(r instanceof t))throw new Error("invalid point at index "+i)})}function Hrr(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,i)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+i)})}function f_e(e){return Qut.get(e)||1}function Hut(e,t){return{constTimeNegate:c_e,hasPrecomputes(r){return f_e(r)!==1},unsafeLadder(r,i,n=e.ZERO){let o=r;for(;i>Lut;)i&l_e&&(n=n.add(o)),o=o.double(),i>>=l_e;return n},precomputeWindow(r,i){let{windows:n,windowSize:o}=u_e(i,t),d=[],g=r,y=g;for(let _=0;_<n;_++){y=g,d.push(y);for(let I=1;I<o;I++)y=y.add(g),d.push(y);g=y.double()}return d},wNAF(r,i,n){let o=e.ZERO,d=e.BASE,g=u_e(r,t);for(let y=0;y<g.windows;y++){let{nextN:_,offset:I,isZero:N,isNeg:T,isNegF:M,offsetF:D}=Uut(n,y,g);n=_,N?d=d.add(c_e(M,i[D])):o=o.add(c_e(T,i[I]))}return{p:o,f:d}},wNAFUnsafe(r,i,n,o=e.ZERO){let d=u_e(r,t);for(let g=0;g<d.windows&&n!==Lut;g++){let{nextN:y,offset:_,isZero:I,isNeg:N}=Uut(n,g,d);if(n=y,!I){let T=i[_];o=o.add(N?T.negate():T)}}return o},getPrecomputes(r,i,n){let o=d_e.get(i);return o||(o=this.precomputeWindow(i,r),r!==1&&d_e.set(i,n(o))),o},wNAFCached(r,i,n){let o=f_e(r);return this.wNAF(o,this.getPrecomputes(o,r,n),i)},wNAFCachedUnsafe(r,i,n,o){let d=f_e(r);return d===1?this.unsafeLadder(r,i,o):this.wNAFUnsafe(d,this.getPrecomputes(d,r,n),i,o)},setWindowSize(r,i){Fut(i,t),Qut.set(r,i),d_e.delete(r)}}}function Gut(e,t,r,i){Qrr(r,e),Hrr(i,t);let n=r.length,o=i.length;if(n!==o)throw new Error("arrays of points and scalars must have equal length");let d=e.ZERO,g=Out(BigInt(n)),y=1;g>12?y=g-3:g>4?y=g-2:g>0&&(y=2);let _=Jw(y),I=new Array(Number(_)+1).fill(d),N=Math.floor((t.BITS-1)/y)*y,T=d;for(let M=N;M>=0;M-=y){I.fill(d);for(let P=0;P<o;P++){let G=i[P],q=Number(G>>BigInt(M)&_);I[q]=I[q].add(r[P])}let D=d;for(let P=I.length-1,G=d;P>0;P--)G=G.add(I[P]),D=D.add(G);if(T=T.add(D),M!==0)for(let P=0;P<y;P++)T=T.double()}return T}function h_e(e){return nX(e.Fp),sS(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...a_e(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}var Lut,l_e,d_e,Qut,qut=tn(()=>{"use strict";J();K();z();lU();dB();Lut=BigInt(0),l_e=BigInt(1);d_e=new WeakMap,Qut=new WeakMap});function Vut(e){e.lowS!==void 0&&cB("lowS",e.lowS),e.prehash!==void 0&&cB("prehash",e.prehash)}function Grr(e){let t=h_e(e);sS(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:i,a:n}=t;if(r){if(!i.eql(n,i.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}function A_e(e,t){return uB(oE(e,t))}function qrr(e){let t=Grr(e),{Fp:r}=t,i=fU(t.n,t.nBitLength),n=t.toBytes||((ne,ce,le)=>{let pe=ce.toAffine();return qA(Uint8Array.from([4]),r.toBytes(pe.x),r.toBytes(pe.y))}),o=t.fromBytes||(ne=>{let ce=ne.subarray(1),le=r.fromBytes(ce.subarray(0,r.BYTES)),pe=r.fromBytes(ce.subarray(r.BYTES,2*r.BYTES));return{x:le,y:pe}});function d(ne){let{a:ce,b:le}=t,pe=r.sqr(ne),ae=r.mul(pe,ne);return r.add(r.add(ae,r.mul(ne,ce)),le)}function g(ne,ce){let le=r.sqr(ce),pe=d(ne);return r.eql(le,pe)}if(!g(t.Gx,t.Gy))throw new Error("bad curve params: generator point");let y=r.mul(r.pow(t.a,hU),g_e),_=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(y,_)))throw new Error("bad curve params: a or b");function I(ne){return Vw(ne,Au,t.n)}function N(ne){let{allowedPrivateKeyLengths:ce,nByteLength:le,wrapPrivateKey:pe,n:ae}=t;if(ce&&typeof ne!="bigint"){if(sB(ne)&&(ne=uB(ne)),typeof ne!="string"||!ce.includes(ne.length))throw new Error("invalid private key");ne=ne.padStart(le*2,"0")}let W;try{W=typeof ne=="bigint"?ne:Zp(ff("private key",ne,le))}catch{throw new Error("invalid private key, expected hex or "+le+" bytes, got "+typeof ne)}return pe&&(W=Pd(W,ae)),aS("private key",W,Au,ae),W}function T(ne){if(!(ne instanceof P))throw new Error("ProjectivePoint expected")}let M=o_e((ne,ce)=>{let{px:le,py:pe,pz:ae}=ne;if(r.eql(ae,r.ONE))return{x:le,y:pe};let W=ne.is0();ce==null&&(ce=W?r.ONE:r.inv(ae));let se=r.mul(le,ce),O=r.mul(pe,ce),s=r.mul(ae,ce);if(W)return{x:r.ZERO,y:r.ZERO};if(!r.eql(s,r.ONE))throw new Error("invZ was invalid");return{x:se,y:O}}),D=o_e(ne=>{if(ne.is0()){if(t.allowInfinityPoint&&!r.is0(ne.py))return;throw new Error("bad point: ZERO")}let{x:ce,y:le}=ne.toAffine();if(!r.isValid(ce)||!r.isValid(le))throw new Error("bad point: x or y not FE");if(!g(ce,le))throw new Error("bad point: equation left != right");if(!ne.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class P{constructor(ce,le,pe){if(ce==null||!r.isValid(ce))throw new Error("x required");if(le==null||!r.isValid(le)||r.is0(le))throw new Error("y required");if(pe==null||!r.isValid(pe))throw new Error("z required");this.px=ce,this.py=le,this.pz=pe,Object.freeze(this)}static fromAffine(ce){let{x:le,y:pe}=ce||{};if(!ce||!r.isValid(le)||!r.isValid(pe))throw new Error("invalid affine point");if(ce instanceof P)throw new Error("projective point not allowed");let ae=W=>r.eql(W,r.ZERO);return ae(le)&&ae(pe)?P.ZERO:new P(le,pe,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(ce){let le=fB(r,ce.map(pe=>pe.pz));return ce.map((pe,ae)=>pe.toAffine(le[ae])).map(P.fromAffine)}static fromHex(ce){let le=P.fromAffine(o(ff("pointHex",ce)));return le.assertValidity(),le}static fromPrivateKey(ce){return P.BASE.multiply(N(ce))}static msm(ce,le){return Gut(P,i,ce,le)}_setWindowSize(ce){Y.setWindowSize(this,ce)}assertValidity(){D(this)}hasEvenY(){let{y:ce}=this.toAffine();if(r.isOdd)return!r.isOdd(ce);throw new Error("Field doesn't support isOdd")}equals(ce){T(ce);let{px:le,py:pe,pz:ae}=this,{px:W,py:se,pz:O}=ce,s=r.eql(r.mul(le,O),r.mul(W,ae)),l=r.eql(r.mul(pe,O),r.mul(se,ae));return s&&l}negate(){return new P(this.px,r.neg(this.py),this.pz)}double(){let{a:ce,b:le}=t,pe=r.mul(le,hU),{px:ae,py:W,pz:se}=this,O=r.ZERO,s=r.ZERO,l=r.ZERO,A=r.mul(ae,ae),m=r.mul(W,W),E=r.mul(se,se),w=r.mul(ae,W);return w=r.add(w,w),l=r.mul(ae,se),l=r.add(l,l),O=r.mul(ce,l),s=r.mul(pe,E),s=r.add(O,s),O=r.sub(m,s),s=r.add(m,s),s=r.mul(O,s),O=r.mul(w,O),l=r.mul(pe,l),E=r.mul(ce,E),w=r.sub(A,E),w=r.mul(ce,w),w=r.add(w,l),l=r.add(A,A),A=r.add(l,A),A=r.add(A,E),A=r.mul(A,w),s=r.add(s,A),E=r.mul(W,se),E=r.add(E,E),A=r.mul(E,w),O=r.sub(O,A),l=r.mul(E,m),l=r.add(l,l),l=r.add(l,l),new P(O,s,l)}add(ce){T(ce);let{px:le,py:pe,pz:ae}=this,{px:W,py:se,pz:O}=ce,s=r.ZERO,l=r.ZERO,A=r.ZERO,m=t.a,E=r.mul(t.b,hU),w=r.mul(le,W),x=r.mul(pe,se),R=r.mul(ae,O),u=r.add(le,pe),C=r.add(W,se);u=r.mul(u,C),C=r.add(w,x),u=r.sub(u,C),C=r.add(le,ae);let U=r.add(W,O);return C=r.mul(C,U),U=r.add(w,R),C=r.sub(C,U),U=r.add(pe,ae),s=r.add(se,O),U=r.mul(U,s),s=r.add(x,R),U=r.sub(U,s),A=r.mul(m,C),s=r.mul(E,R),A=r.add(s,A),s=r.sub(x,A),A=r.add(x,A),l=r.mul(s,A),x=r.add(w,w),x=r.add(x,w),R=r.mul(m,R),C=r.mul(E,C),x=r.add(x,R),R=r.sub(w,R),R=r.mul(m,R),C=r.add(C,R),w=r.mul(x,C),l=r.add(l,w),w=r.mul(U,C),s=r.mul(u,s),s=r.sub(s,w),w=r.mul(u,x),A=r.mul(U,A),A=r.add(A,w),new P(s,l,A)}subtract(ce){return this.add(ce.negate())}is0(){return this.equals(P.ZERO)}wNAF(ce){return Y.wNAFCached(this,ce,P.normalizeZ)}multiplyUnsafe(ce){let{endo:le,n:pe}=t;aS("scalar",ce,Ay,pe);let ae=P.ZERO;if(ce===Ay)return ae;if(this.is0()||ce===Au)return this;if(!le||Y.hasPrecomputes(this))return Y.wNAFCachedUnsafe(this,ce,P.normalizeZ);let{k1neg:W,k1:se,k2neg:O,k2:s}=le.splitScalar(ce),l=ae,A=ae,m=this;for(;se>Ay||s>Ay;)se&Au&&(l=l.add(m)),s&Au&&(A=A.add(m)),m=m.double(),se>>=Au,s>>=Au;return W&&(l=l.negate()),O&&(A=A.negate()),A=new P(r.mul(A.px,le.beta),A.py,A.pz),l.add(A)}multiply(ce){let{endo:le,n:pe}=t;aS("scalar",ce,Au,pe);let ae,W;if(le){let{k1neg:se,k1:O,k2neg:s,k2:l}=le.splitScalar(ce),{p:A,f:m}=this.wNAF(O),{p:E,f:w}=this.wNAF(l);A=Y.constTimeNegate(se,A),E=Y.constTimeNegate(s,E),E=new P(r.mul(E.px,le.beta),E.py,E.pz),ae=A.add(E),W=m.add(w)}else{let{p:se,f:O}=this.wNAF(ce);ae=se,W=O}return P.normalizeZ([ae,W])[0]}multiplyAndAddUnsafe(ce,le,pe){let ae=P.BASE,W=(O,s)=>s===Ay||s===Au||!O.equals(ae)?O.multiplyUnsafe(s):O.multiply(s),se=W(this,le).add(W(ce,pe));return se.is0()?void 0:se}toAffine(ce){return M(this,ce)}isTorsionFree(){let{h:ce,isTorsionFree:le}=t;if(ce===Au)return!0;if(le)return le(P,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:ce,clearCofactor:le}=t;return ce===Au?this:le?le(P,this):this.multiplyUnsafe(t.h)}toRawBytes(ce=!0){return cB("isCompressed",ce),this.assertValidity(),n(P,this,ce)}toHex(ce=!0){return cB("isCompressed",ce),uB(this.toRawBytes(ce))}}P.BASE=new P(t.Gx,t.Gy,r.ONE),P.ZERO=new P(r.ZERO,r.ONE,r.ZERO);let{endo:G,nBitLength:q}=t,Y=Hut(P,G?Math.ceil(q/2):q);return{CURVE:t,ProjectivePoint:P,normPrivateKeyToScalar:N,weierstrassEquation:d,isWithinCurveOrder:I}}function Vrr(e){let t=h_e(e);return sS(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function Jut(e){let t=Vrr(e),{Fp:r,n:i,nByteLength:n,nBitLength:o}=t,d=r.BYTES+1,g=2*r.BYTES+1;function y(E){return Pd(E,i)}function _(E){return rX(E,i)}let{ProjectivePoint:I,normPrivateKeyToScalar:N,weierstrassEquation:T,isWithinCurveOrder:M}=qrr({...t,toBytes(E,w,x){let R=w.toAffine(),u=r.toBytes(R.x),C=qA;return cB("isCompressed",x),x?C(Uint8Array.from([w.hasEvenY()?2:3]),u):C(Uint8Array.from([4]),u,r.toBytes(R.y))},fromBytes(E){let w=E.length,x=E[0],R=E.subarray(1);if(w===d&&(x===2||x===3)){let u=Zp(R);if(!Vw(u,Au,r.ORDER))throw new Error("Point is not on curve");let C=T(u),U;try{U=r.sqrt(C)}catch(Ae){let he=Ae instanceof Error?": "+Ae.message:"";throw new Error("Point is not on curve"+he)}let F=(U&Au)===Au;return(x&1)===1!==F&&(U=r.neg(U)),{x:u,y:U}}else if(w===g&&x===4){let u=r.fromBytes(R.subarray(0,r.BYTES)),C=r.fromBytes(R.subarray(r.BYTES,2*r.BYTES));return{x:u,y:C}}else{let u=d,C=g;throw new Error("invalid Point, expected length of "+u+", or uncompressed "+C+", got "+w)}}});function D(E){let w=i>>Au;return E>w}function P(E){return D(E)?y(-E):E}let G=(E,w,x)=>Zp(E.slice(w,x));class q{constructor(w,x,R){aS("r",w,Au,i),aS("s",x,Au,i),this.r=w,this.s=x,R!=null&&(this.recovery=R),Object.freeze(this)}static fromCompact(w){let x=n;return w=ff("compactSignature",w,x*2),new q(G(w,0,x),G(w,x,2*x))}static fromDER(w){let{r:x,s:R}=cS.toSig(ff("DER",w));return new q(x,R)}assertValidity(){}addRecoveryBit(w){return new q(this.r,this.s,w)}recoverPublicKey(w){let{r:x,s:R,recovery:u}=this,C=ae(ff("msgHash",w));if(u==null||![0,1,2,3].includes(u))throw new Error("recovery id invalid");let U=u===2||u===3?x+t.n:x;if(U>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");let F=(u&1)===0?"02":"03",X=I.fromHex(F+A_e(U,r.BYTES)),Ae=_(U),he=y(-C*Ae),$e=y(R*Ae),Ge=I.BASE.multiplyAndAddUnsafe(X,he,$e);if(!Ge)throw new Error("point at infinify");return Ge.assertValidity(),Ge}hasHighS(){return D(this.s)}normalizeS(){return this.hasHighS()?new q(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return dU(this.toDERHex())}toDERHex(){return cS.hexFromSig(this)}toCompactRawBytes(){return dU(this.toCompactHex())}toCompactHex(){let w=n;return A_e(this.r,w)+A_e(this.s,w)}}let Y={isValidPrivateKey(E){try{return N(E),!0}catch{return!1}},normPrivateKeyToScalar:N,randomPrivateKey:()=>{let E=s_e(t.n);return Put(t.randomBytes(E),t.n)},precompute(E=8,w=I.BASE){return w._setWindowSize(E),w.multiply(BigInt(3)),w}};function ne(E,w=!0){return I.fromPrivateKey(E).toRawBytes(w)}function ce(E){if(typeof E=="bigint")return!1;if(E instanceof I)return!0;let x=ff("key",E).length,R=r.BYTES,u=R+1,C=2*R+1;if(!(t.allowedPrivateKeyLengths||n===u))return x===u||x===C}function le(E,w,x=!0){if(ce(E)===!0)throw new Error("first arg must be private key");if(ce(w)===!1)throw new Error("second arg must be public key");return I.fromHex(w).multiply(N(E)).toRawBytes(x)}let pe=t.bits2int||function(E){if(E.length>8192)throw new Error("input is too large");let w=Zp(E),x=E.length*8-o;return x>0?w>>BigInt(x):w},ae=t.bits2int_modN||function(E){return y(pe(E))},W=Jw(o);function se(E){return aS("num < 2^"+o,E,Ay,W),oE(E,n)}function O(E,w,x=s){if(["recovered","canonical"].some(Se=>Se in x))throw new Error("sign() legacy options not supported");let{hash:R,randomBytes:u}=t,{lowS:C,prehash:U,extraEntropy:F}=x;C==null&&(C=!0),E=ff("msgHash",E),Vut(x),U&&(E=ff("prehashed msgHash",R(E)));let X=ae(E),Ae=N(w),he=[se(Ae),se(X)];if(F!=null&&F!==!1){let Se=F===!0?u(r.BYTES):F;he.push(ff("extraEntropy",Se))}let $e=qA(...he),Ge=X;function Re(Se){let ct=pe(Se);if(!M(ct))return;let ze=_(ct),te=I.BASE.multiply(ct).toAffine(),Ue=y(te.x);if(Ue===Ay)return;let oe=y(ze*y(Ge+Ue*Ae));if(oe===Ay)return;let ge=(te.x===Ue?0:2)|Number(te.y&Au),Le=oe;return C&&D(oe)&&(Le=P(oe),ge^=1),new q(Ue,Le,ge)}return{seed:$e,k2sig:Re}}let s={lowS:t.lowS,prehash:!1},l={lowS:t.lowS,prehash:!1};function A(E,w,x=s){let{seed:R,k2sig:u}=O(E,w,x),C=t;return Nut(C.hash.outputLen,C.nByteLength,C.hmac)(R,u)}I.BASE._setWindowSize(8);function m(E,w,x,R=l){let u=E;w=ff("msgHash",w),x=ff("publicKey",x);let{lowS:C,prehash:U,format:F}=R;if(Vut(R),"strict"in R)throw new Error("options.strict was renamed to lowS");if(F!==void 0&&F!=="compact"&&F!=="der")throw new Error("format must be compact or der");let X=typeof u=="string"||sB(u),Ae=!X&&!F&&typeof u=="object"&&u!==null&&typeof u.r=="bigint"&&typeof u.s=="bigint";if(!X&&!Ae)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let he,$e;try{if(Ae&&(he=new q(u.r,u.s)),X){try{F!=="compact"&&(he=q.fromDER(u))}catch(ge){if(!(ge instanceof cS.Err))throw ge}!he&&F!=="der"&&(he=q.fromCompact(u))}$e=I.fromHex(x)}catch{return!1}if(!he||C&&he.hasHighS())return!1;U&&(w=t.hash(w));let{r:Ge,s:Re}=he,Se=ae(w),ct=_(Re),ze=y(Se*ct),te=y(Ge*ct),Ue=I.BASE.multiplyAndAddUnsafe($e,ze,te)?.toAffine();return Ue?y(Ue.x)===Ge:!1}return{CURVE:t,getPublicKey:ne,getSharedSecret:le,sign:A,verify:m,ProjectivePoint:I,Signature:q,utils:Y}}function Jrr(e,t){let r=e.ORDER,i=Ay;for(let D=r-Au;D%v3===Ay;D/=v3)i+=Au;let n=i,o=v3<<n-Au-Au,d=o*v3,g=(r-Au)/d,y=(g-Au)/v3,_=d-Au,I=o,N=e.pow(t,g),T=e.pow(t,(g+Au)/v3),M=(D,P)=>{let G=N,q=e.pow(P,_),Y=e.sqr(q);Y=e.mul(Y,P);let ne=e.mul(D,Y);ne=e.pow(ne,y),ne=e.mul(ne,q),q=e.mul(ne,P),Y=e.mul(ne,D);let ce=e.mul(Y,q);ne=e.pow(ce,I);let le=e.eql(ne,e.ONE);q=e.mul(Y,T),ne=e.mul(ce,G),Y=e.cmov(q,Y,le),ce=e.cmov(ne,ce,le);for(let pe=n;pe>Au;pe--){let ae=pe-v3;ae=v3<<ae-Au;let W=e.pow(ce,ae),se=e.eql(W,e.ONE);q=e.mul(Y,G),G=e.mul(G,G),W=e.mul(ce,G),Y=e.cmov(q,Y,se),ce=e.cmov(W,ce,se)}return{isValid:le,value:Y}};if(e.ORDER%g_e===hU){let D=(e.ORDER-hU)/g_e,P=e.sqrt(e.neg(t));M=(G,q)=>{let Y=e.sqr(q),ne=e.mul(G,q);Y=e.mul(Y,ne);let ce=e.pow(Y,D);ce=e.mul(ce,ne);let le=e.mul(ce,P),pe=e.mul(e.sqr(ce),q),ae=e.eql(pe,G),W=e.cmov(le,ce,ae);return{isValid:ae,value:W}}}return M}function zut(e,t){if(nX(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");let r=Jrr(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return i=>{let n,o,d,g,y,_,I,N;n=e.sqr(i),n=e.mul(n,t.Z),o=e.sqr(n),o=e.add(o,n),d=e.add(o,e.ONE),d=e.mul(d,t.B),g=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),g=e.mul(g,t.A),o=e.sqr(d),_=e.sqr(g),y=e.mul(_,t.A),o=e.add(o,y),o=e.mul(o,d),_=e.mul(_,g),y=e.mul(_,t.B),o=e.add(o,y),I=e.mul(n,d);let{isValid:T,value:M}=r(o,_);N=e.mul(n,i),N=e.mul(N,M),I=e.cmov(I,d,T),N=e.cmov(N,M,T);let D=e.isOdd(i)===e.isOdd(N);N=e.cmov(e.neg(N),N,D);let P=fB(e,[g],!0)[0];return I=e.mul(I,P),{x:I,y:N}}}var p_e,cS,Ay,Au,v3,hU,g_e,__e=tn(()=>{"use strict";J();K();z();qut();lU();dB();p_e=class extends Error{constructor(t=""){super(t)}},cS={Err:p_e,_tlv:{encode:(e,t)=>{let{Err:r}=cS;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=uU(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?uU(n.length/2|128):"";return uU(e)+o+n+t},decode(e,t){let{Err:r}=cS,i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=!!(n&128),d=0;if(!o)d=n;else{let y=n&127;if(!y)throw new r("tlv.decode(long): indefinite length not supported");if(y>4)throw new r("tlv.decode(long): byte length is too big");let _=t.subarray(i,i+y);if(_.length!==y)throw new r("tlv.decode: length bytes not complete");if(_[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(let I of _)d=d<<8|I;if(i+=y,d<128)throw new r("tlv.decode(long): not minimal encoding")}let g=t.subarray(i,i+d);if(g.length!==d)throw new r("tlv.decode: wrong value length");return{v:g,l:t.subarray(i+d)}}},_int:{encode(e){let{Err:t}=cS;if(e<Ay)throw new t("integer: negative integers are not allowed");let r=uU(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=cS;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Zp(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=cS,n=ff("signature",e),{v:o,l:d}=i.decode(48,n);if(d.length)throw new t("invalid signature: left bytes after parsing");let{v:g,l:y}=i.decode(2,o),{v:_,l:I}=i.decode(2,y);if(I.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(g),s:r.decode(_)}},hexFromSig(e){let{_tlv:t,_int:r}=cS,i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s)),o=i+n;return t.encode(48,o)}};Ay=BigInt(0),Au=BigInt(1),v3=BigInt(2),hU=BigInt(3),g_e=BigInt(4)});function zrr(e){return{hash:e,hmac:(t,...r)=>OC(e,t,Qf(...r)),randomBytes:w_}}function Kut(e,t){let r=i=>Jut({...e,...zrr(i)});return{...r(t),create:r}}var $ut=tn(()=>{"use strict";J();K();z();WK();Up();__e();});function R3(e,t){if(AU(e),AU(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let i=t-1;i>=0;i--)r[i]=e&255,e>>>=8;return new Uint8Array(r)}function $rr(e,t){let r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e[i]^t[i];return r}function AU(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function Yrr(e,t,r,i){oS(e),oS(t),AU(r),t.length>255&&(t=i(qA(tX("H2C-OVERSIZE-DST-"),t)));let{outputLen:n,blockLen:o}=i,d=Math.ceil(r/n);if(r>65535||d>255)throw new Error("expand_message_xmd: invalid lenInBytes");let g=qA(t,R3(t.length,1)),y=R3(0,o),_=R3(r,2),I=new Array(d),N=i(qA(y,e,_,R3(0,1),g));I[0]=i(qA(N,R3(1,1),g));for(let M=1;M<=d;M++){let D=[$rr(N,I[M-1]),R3(M+1,1),g];I[M]=i(qA(...D))}return qA(...I).slice(0,r)}function Wrr(e,t,r,i,n){if(oS(e),oS(t),AU(r),t.length>255){let o=Math.ceil(2*i/8);t=n.create({dkLen:o}).update(tX("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return n.create({dkLen:r}).update(e).update(R3(r,2)).update(t).update(R3(t.length,1)).digest()}function Yut(e,t,r){sS(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:i,k:n,m:o,hash:d,expand:g,DST:y}=r;oS(e),AU(t);let _=typeof y=="string"?tX(y):y,I=i.toString(2).length,N=Math.ceil((I+n)/8),T=t*o*N,M;if(g==="xmd")M=Yrr(e,_,T,d);else if(g==="xof")M=Wrr(e,_,T,n,d);else if(g==="_internal_pass")M=e;else throw new Error('expand must be "xmd" or "xof"');let D=new Array(t);for(let P=0;P<t;P++){let G=new Array(o);for(let q=0;q<o;q++){let Y=N*(q+P*o),ne=M.subarray(Y,Y+N);G[q]=Pd(Krr(ne),i)}D[P]=G}return D}function Wut(e,t){let r=t.map(i=>Array.from(i).reverse());return(i,n)=>{let[o,d,g,y]=r.map(N=>N.reduce((T,M)=>e.add(e.mul(T,i),M))),[_,I]=fB(e,[d,y],!0);return i=e.mul(o,_),n=e.mul(n,e.mul(g,I)),{x:i,y:n}}}function Xut(e,t,r){if(typeof t!="function")throw new Error("mapToCurve() must be defined");function i(o){return e.fromAffine(t(o))}function n(o){let d=o.clearCofactor();return d.equals(e.ZERO)?e.ZERO:(d.assertValidity(),d)}return{defaults:r,hashToCurve(o,d){let g=Yut(o,2,{...r,DST:r.DST,...d}),y=i(g[0]),_=i(g[1]);return n(y.add(_))},encodeToCurve(o,d){let g=Yut(o,1,{...r,DST:r.encodeDST,...d});return n(i(g[0]))},mapToCurve(o){if(!Array.isArray(o))throw new Error("expected array of bigints");for(let d of o)if(typeof d!="bigint")throw new Error("expected array of bigints");return n(i(o))}}}var Krr,Zut=tn(()=>{"use strict";J();K();z();lU();dB();Krr=Zp});var o0t={};gh(o0t,{encodeToCurve:()=>inr,hashToCurve:()=>nnr,schnorr:()=>enr,secp256k1:()=>py,secp256k1_hasher:()=>S_e});function t0t(e){let t=_U,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),d=BigInt(23),g=BigInt(44),y=BigInt(88),_=e*e*e%t,I=_*_*e%t,N=fg(I,r,t)*I%t,T=fg(N,r,t)*I%t,M=fg(T,oX,t)*_%t,D=fg(M,n,t)*M%t,P=fg(D,o,t)*D%t,G=fg(P,g,t)*P%t,q=fg(G,y,t)*G%t,Y=fg(q,g,t)*P%t,ne=fg(Y,r,t)*I%t,ce=fg(ne,d,t)*D%t,le=fg(ce,i,t)*_%t,pe=fg(le,oX,t);if(!S3.eql(S3.sqr(pe),e))throw new Error("Cannot find square root");return pe}function aX(e,...t){let r=e0t[e];if(r===void 0){let i=qm(Uint8Array.from(e,n=>n.charCodeAt(0)));r=qA(i,i),e0t[e]=r}return qm(qA(r,...t))}function b_e(e){let t=py.utils.normPrivateKeyToScalar(e),r=R_e.fromPrivateKey(t);return{scalar:r.hasEvenY()?t:gU(-t),bytes:v_e(r)}}function r0t(e){aS("x",e,pU,_U);let t=m_e(e*e),r=m_e(t*e+BigInt(7)),i=t0t(r);i%oX!==E_e&&(i=m_e(-i));let n=new R_e(e,i,pU);return n.assertValidity(),n}function n0t(...e){return gU(lB(aX("BIP0340/challenge",...e)))}function Zrr(e){return b_e(e).bytes}function jrr(e,t,r=w_(32)){let i=ff("message",e),{bytes:n,scalar:o}=b_e(t),d=ff("auxRand",r,32),g=y_e(o^lB(aX("BIP0340/aux",d))),y=aX("BIP0340/nonce",g,n,i),_=gU(lB(y));if(_===E_e)throw new Error("sign failed: k is zero");let{bytes:I,scalar:N}=b_e(_),T=n0t(I,n,i),M=new Uint8Array(64);if(M.set(I,0),M.set(y_e(gU(N+T*o)),32),!i0t(M,i,n))throw new Error("sign: Invalid signature produced");return M}function i0t(e,t,r){let i=ff("signature",e,64),n=ff("message",t),o=ff("publicKey",r,32);try{let d=r0t(lB(o)),g=lB(i.subarray(0,32));if(!Vw(g,pU,_U))return!1;let y=lB(i.subarray(32,64));if(!Vw(y,pU,iX))return!1;let _=n0t(y_e(g),v_e(d),n),I=Xrr(d,y,gU(-_));return!(!I||!I.hasEvenY()||I.toAffine().x!==g)}catch{return!1}}var _U,iX,E_e,pU,oX,jut,S3,py,e0t,v_e,y_e,m_e,gU,R_e,Xrr,lB,enr,tnr,rnr,S_e,nnr,inr,mU=tn(()=>{"use strict";J();K();z();ox();Up();$ut();Zut();lU();dB();__e();_U=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),iX=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),E_e=BigInt(0),pU=BigInt(1),oX=BigInt(2),jut=(e,t)=>(e+t/oX)/t;S3=fU(_U,void 0,void 0,{sqrt:t0t}),py=Kut({a:E_e,b:BigInt(7),Fp:S3,n:iX,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=iX,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-pU*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,d=BigInt("0x100000000000000000000000000000000"),g=jut(o*e,t),y=jut(-i*e,t),_=Pd(e-g*r-y*n,t),I=Pd(-g*i-y*o,t),N=_>d,T=I>d;if(N&&(_=t-_),T&&(I=t-I),_>d||I>d)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:N,k1:_,k2neg:T,k2:I}}}},qm),e0t={};v_e=e=>e.toRawBytes(!0).slice(1),y_e=e=>oE(e,32),m_e=e=>Pd(e,_U),gU=e=>Pd(e,iX),R_e=py.ProjectivePoint,Xrr=(e,t,r)=>R_e.BASE.multiplyAndAddUnsafe(e,t,r);lB=Zp;enr={getPublicKey:Zrr,sign:jrr,verify:i0t,utils:{randomPrivateKey:py.utils.randomPrivateKey,lift_x:r0t,pointToBytes:v_e,numberToBytesBE:oE,bytesToNumberBE:Zp,taggedHash:aX,mod:Pd}},tnr=Wut(S3,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(t=>BigInt(t)))),rnr=zut(S3,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:S3.create(BigInt("-11"))}),S_e=Xut(py.ProjectivePoint,e=>{let{x:t,y:r}=rnr(S3.create(e[0]));return tnr(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:S3.ORDER,m:1,k:128,expand:"xmd",hash:qm}),nnr=S_e.hashToCurve,inr=S_e.encodeToCurve});var uS,r2,hB,AB,pB,gB,_B,mB,yB,bB,aE,n2,C3=tn(()=>{"use strict";J();K();z();PT();ia();uS=class extends Kr{constructor({cause:t,message:r}={}){let i=r?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${i?`with reason: ${i}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(uS,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(uS,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});r2=class extends Kr{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${Jf(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}};Object.defineProperty(r2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});hB=class extends Kr{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${Jf(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}};Object.defineProperty(hB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});AB=class extends Kr{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}};Object.defineProperty(AB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});pB=class extends Kr{constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
`),{cause:t,name:"NonceTooLowError"})}};Object.defineProperty(pB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});gB=class extends Kr{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}};Object.defineProperty(gB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});_B=class extends Kr{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}};Object.defineProperty(_B,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});mB=class extends Kr{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}};Object.defineProperty(mB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});yB=class extends Kr{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}};Object.defineProperty(yB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});bB=class extends Kr{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}};Object.defineProperty(bB,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});aE=class extends Kr{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:i}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${Jf(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${i?` = ${Jf(i)} gwei`:""}).`].join(`
|
|
`),{cause:t,name:"TipAboveFeeCapError"})}};Object.defineProperty(aE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});n2=class extends Kr{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}});function w3(e,t){let r=(e.details||"").toLowerCase(),i=e instanceof Kr?e.walk(n=>n?.code===uS.code):e;return i instanceof Kr?new uS({cause:e,message:i.details}):uS.nodeMessage.test(r)?new uS({cause:e,message:e.details}):r2.nodeMessage.test(r)?new r2({cause:e,maxFeePerGas:t?.maxFeePerGas}):hB.nodeMessage.test(r)?new hB({cause:e,maxFeePerGas:t?.maxFeePerGas}):AB.nodeMessage.test(r)?new AB({cause:e,nonce:t?.nonce}):pB.nodeMessage.test(r)?new pB({cause:e,nonce:t?.nonce}):gB.nodeMessage.test(r)?new gB({cause:e,nonce:t?.nonce}):_B.nodeMessage.test(r)?new _B({cause:e}):mB.nodeMessage.test(r)?new mB({cause:e,gas:t?.gas}):yB.nodeMessage.test(r)?new yB({cause:e,gas:t?.gas}):bB.nodeMessage.test(r)?new bB({cause:e}):aE.nodeMessage.test(r)?new aE({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new n2({cause:e})}var yU=tn(()=>{"use strict";J();K();z();ia();C3()});function sE(e,{format:t}){if(!t)return{};let r={};function i(o){let d=Object.keys(o);for(let g of d)g in e&&(r[g]=e[g]),o[g]&&typeof o[g]=="object"&&!Array.isArray(o[g])&&i(o[g])}let n=t(e||{});return i(n),r}var EB=tn(()=>{"use strict";J();K();z()});function O3(e,t){return({exclude:r,format:i})=>({exclude:r,format:(n,o)=>{let d=t(n,o);if(r)for(let g of r)delete d[g];return{...d,...i(n,o)}},type:e})}var bU=tn(()=>{"use strict";J();K();z()});function JA(e,t){let r={};return typeof e.authorizationList<"u"&&(r.authorizationList=cnr(e.authorizationList)),typeof e.accessList<"u"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?r.blobs=e.blobs.map(i=>Qs(i)):r.blobs=e.blobs),typeof e.data<"u"&&(r.data=e.data),e.account&&(r.from=e.account.address),typeof e.from<"u"&&(r.from=e.from),typeof e.gas<"u"&&(r.gas=Sn(e.gas)),typeof e.gasPrice<"u"&&(r.gasPrice=Sn(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(r.maxFeePerBlobGas=Sn(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(r.maxFeePerGas=Sn(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(r.maxPriorityFeePerGas=Sn(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(r.nonce=Sn(e.nonce)),typeof e.to<"u"&&(r.to=e.to),typeof e.type<"u"&&(r.type=snr[e.type]),typeof e.value<"u"&&(r.value=Sn(e.value)),r}function cnr(e){return e.map(t=>({address:t.address,r:t.r?Sn(BigInt(t.r)):t.r,s:t.s?Sn(BigInt(t.s)):t.s,chainId:Sn(t.chainId),nonce:Sn(t.nonce),...typeof t.yParity<"u"?{yParity:Sn(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:Sn(t.v)}:{}}))}var snr,f0t,dS=tn(()=>{"use strict";J();K();z();fo();bU();snr={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};f0t=O3("transactionRequest",JA)});function l0t(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:i})=>{if(r.length!==66)throw new eU({size:r.length,targetSize:66,type:"hex"});if(i.length!==66)throw new eU({size:i.length,targetSize:66,type:"hex"});return t[r]=i,t},{})}function unr(e){let{balance:t,nonce:r,state:i,stateDiff:n,code:o}=e,d={};if(o!==void 0&&(d.code=o),t!==void 0&&(d.balance=Sn(t)),r!==void 0&&(d.nonce=Sn(r)),i!==void 0&&(d.state=l0t(i)),n!==void 0){if(d.state)throw new qW;d.stateDiff=l0t(n)}return d}function vB(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!ys(r,{strict:!1}))throw new nc({address:r});if(t[r])throw new GW({address:r});t[r]=unr(i)}return t}var dX=tn(()=>{"use strict";J();K();z();X_();CW();Zge();Yp();fo()});var MSi,DSi,kSi,PSi,LSi,USi,FSi,QSi,HSi,GSi,qSi,VSi,JSi,zSi,KSi,$Si,YSi,WSi,XSi,ZSi,jSi,e6i,t6i,r6i,n6i,i6i,o6i,a6i,s6i,c6i,u6i,d6i,f6i,l6i,h6i,A6i,p6i,g6i,_6i,m6i,y6i,b6i,E6i,v6i,R6i,S6i,I6i,C6i,w6i,O6i,N6i,x6i,T6i,B6i,M6i,D6i,k6i,P6i,L6i,U6i,F6i,Q6i,H6i,G6i,q6i,h0t,V6i,J6i,z6i,K6i,$6i,Y6i,W6i,X6i,Z6i,j6i,eIi,tIi,rIi,nIi,iIi,oIi,aIi,sIi,cIi,uIi,dIi,fIi,lIi,hIi,AIi,pIi,gIi,_Ii,mIi,RB,fX=tn(()=>{"use strict";J();K();z();MSi=2n**(8n-1n)-1n,DSi=2n**(16n-1n)-1n,kSi=2n**(24n-1n)-1n,PSi=2n**(32n-1n)-1n,LSi=2n**(40n-1n)-1n,USi=2n**(48n-1n)-1n,FSi=2n**(56n-1n)-1n,QSi=2n**(64n-1n)-1n,HSi=2n**(72n-1n)-1n,GSi=2n**(80n-1n)-1n,qSi=2n**(88n-1n)-1n,VSi=2n**(96n-1n)-1n,JSi=2n**(104n-1n)-1n,zSi=2n**(112n-1n)-1n,KSi=2n**(120n-1n)-1n,$Si=2n**(128n-1n)-1n,YSi=2n**(136n-1n)-1n,WSi=2n**(144n-1n)-1n,XSi=2n**(152n-1n)-1n,ZSi=2n**(160n-1n)-1n,jSi=2n**(168n-1n)-1n,e6i=2n**(176n-1n)-1n,t6i=2n**(184n-1n)-1n,r6i=2n**(192n-1n)-1n,n6i=2n**(200n-1n)-1n,i6i=2n**(208n-1n)-1n,o6i=2n**(216n-1n)-1n,a6i=2n**(224n-1n)-1n,s6i=2n**(232n-1n)-1n,c6i=2n**(240n-1n)-1n,u6i=2n**(248n-1n)-1n,d6i=2n**(256n-1n)-1n,f6i=-(2n**(8n-1n)),l6i=-(2n**(16n-1n)),h6i=-(2n**(24n-1n)),A6i=-(2n**(32n-1n)),p6i=-(2n**(40n-1n)),g6i=-(2n**(48n-1n)),_6i=-(2n**(56n-1n)),m6i=-(2n**(64n-1n)),y6i=-(2n**(72n-1n)),b6i=-(2n**(80n-1n)),E6i=-(2n**(88n-1n)),v6i=-(2n**(96n-1n)),R6i=-(2n**(104n-1n)),S6i=-(2n**(112n-1n)),I6i=-(2n**(120n-1n)),C6i=-(2n**(128n-1n)),w6i=-(2n**(136n-1n)),O6i=-(2n**(144n-1n)),N6i=-(2n**(152n-1n)),x6i=-(2n**(160n-1n)),T6i=-(2n**(168n-1n)),B6i=-(2n**(176n-1n)),M6i=-(2n**(184n-1n)),D6i=-(2n**(192n-1n)),k6i=-(2n**(200n-1n)),P6i=-(2n**(208n-1n)),L6i=-(2n**(216n-1n)),U6i=-(2n**(224n-1n)),F6i=-(2n**(232n-1n)),Q6i=-(2n**(240n-1n)),H6i=-(2n**(248n-1n)),G6i=-(2n**(256n-1n)),q6i=2n**8n-1n,h0t=2n**16n-1n,V6i=2n**24n-1n,J6i=2n**32n-1n,z6i=2n**40n-1n,K6i=2n**48n-1n,$6i=2n**56n-1n,Y6i=2n**64n-1n,W6i=2n**72n-1n,X6i=2n**80n-1n,Z6i=2n**88n-1n,j6i=2n**96n-1n,eIi=2n**104n-1n,tIi=2n**112n-1n,rIi=2n**120n-1n,nIi=2n**128n-1n,iIi=2n**136n-1n,oIi=2n**144n-1n,aIi=2n**152n-1n,sIi=2n**160n-1n,cIi=2n**168n-1n,uIi=2n**176n-1n,dIi=2n**184n-1n,fIi=2n**192n-1n,lIi=2n**200n-1n,hIi=2n**208n-1n,AIi=2n**216n-1n,pIi=2n**224n-1n,gIi=2n**232n-1n,_Ii=2n**240n-1n,mIi=2n**248n-1n,RB=2n**256n-1n});function yl(e){let{account:t,gasPrice:r,maxFeePerGas:i,maxPriorityFeePerGas:n,to:o}=e,d=t?na(t):void 0;if(d&&!ys(d.address))throw new nc({address:d.address});if(o&&!ys(o))throw new nc({address:o});if(typeof r<"u"&&(typeof i<"u"||typeof n<"u"))throw new VW;if(i&&i>RB)throw new r2({maxFeePerGas:i});if(n&&i&&n>i)throw new aE({maxFeePerGas:i,maxPriorityFeePerGas:n})}var cE=tn(()=>{"use strict";J();K();z();E0();fX();X_();C3();ug();Yp()});function o2(e,t){if(!ys(e,{strict:!1}))throw new nc({address:e});if(!ys(t,{strict:!1}))throw new nc({address:t});return e.toLowerCase()===t.toLowerCase()}var $w=tn(()=>{"use strict";J();K();z();X_();Yp()});function jp(e){let{abi:t,args:r,functionName:i,data:n}=e,o=t[0];if(i){let g=Wp({abi:t,args:r,name:i});if(!g)throw new dy(i,{docsPath:w_e});o=g}if(o.type!=="function")throw new dy(void 0,{docsPath:w_e});if(!o.outputs)throw new wT(o.name,{docsPath:w_e});let d=rS(o.outputs,n);if(d&&d.length>1)return d;if(d&&d.length===1)return d[0]}var w_e,x3=tn(()=>{"use strict";J();K();z();W0();sU();p3();w_e="/docs/contract/decodeFunctionResult"});function DB(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function B_e(e){if(!DB(e))throw new Error("Uint8Array expected")}function kB(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function RU(e){let t=e.toString(16);return t.length&1?"0"+t:t}function R0t(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?T_e:BigInt("0x"+e)}function PB(e){if(B_e(e),S0t)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=pnr[e[r]];return t}function E0t(e){if(e>=fS._0&&e<=fS._9)return e-fS._0;if(e>=fS.A&&e<=fS.F)return e-(fS.A-10);if(e>=fS.a&&e<=fS.f)return e-(fS.a-10)}function SU(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(S0t)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let n=0,o=0;n<r;n++,o+=2){let d=E0t(e.charCodeAt(o)),g=E0t(e.charCodeAt(o+1));if(d===void 0||g===void 0){let y=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+o)}i[n]=d*16+g}return i}function lS(e){return R0t(PB(e))}function M_e(e){return B_e(e),R0t(PB(Uint8Array.from(e).reverse()))}function Yw(e,t){return SU(e.toString(16).padStart(t*2,"0"))}function D_e(e,t){return Yw(e,t).reverse()}function e1(e,t,r){let i;if(typeof t=="string")try{i=SU(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(DB(t))i=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");let n=i.length;if(typeof r=="number"&&n!==r)throw new Error(e+" of length "+r+" expected, got "+n);return i}function IU(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];B_e(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function IX(e,t,r){return O_e(e)&&O_e(t)&&O_e(r)&&t<=e&&e<r}function Ww(e,t,r,i){if(!IX(t,r,i))throw new Error("expected valid "+e+": "+r+" <= n < "+i+", got "+t)}function I0t(e){let t;for(t=0;e>T_e;e>>=x_e,t+=1);return t}function C0t(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=N_e(e),n=N_e(e),o=0,d=()=>{i.fill(1),n.fill(0),o=0},g=(...N)=>r(n,i,...N),y=(N=N_e(0))=>{n=g(v0t([0]),N),i=g(),N.length!==0&&(n=g(v0t([1]),N),i=g())},_=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let N=0,T=[];for(;N<t;){i=g();let M=i.slice();T.push(M),N+=i.length}return IU(...T)};return(N,T)=>{d(),y(N);let M;for(;!(M=T(_()));)y();return d(),M}}function Zw(e,t,r={}){let i=(n,o,d)=>{let g=gnr[o];if(typeof g!="function")throw new Error("invalid validator function");let y=e[n];if(!(d&&y===void 0)&&!g(y,e))throw new Error("param "+String(n)+" is invalid. Expected "+o+", got "+y)};for(let[n,o]of Object.entries(t))i(n,o,!1);for(let[n,o]of Object.entries(r))i(n,o,!0);return e}function k_e(e){let t=new WeakMap;return(r,...i)=>{let n=t.get(r);if(n!==void 0)return n;let o=e(r,...i);return t.set(r,o),o}}var T_e,x_e,S0t,pnr,fS,O_e,Xw,N_e,v0t,gnr,CX=tn(()=>{"use strict";J();K();z();T_e=BigInt(0),x_e=BigInt(1);S0t=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",pnr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));fS={_0:48,_9:57,A:65,F:70,a:97,f:102};O_e=e=>typeof e=="bigint"&&T_e<=e;Xw=e=>(x_e<<BigInt(e))-x_e,N_e=e=>new Uint8Array(e),v0t=e=>Uint8Array.from(e);gnr={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||DB(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)}});var w0t,O0t=tn(()=>{"use strict";J();K();z();w0t="0.1.1"});function N0t(){return w0t}var x0t=tn(()=>{"use strict";J();K();z();O0t()});function T0t(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?T0t(e.cause,t):t?null:e}var _o,t1=tn(()=>{"use strict";J();K();z();x0t();_o=class e extends Error{constructor(t,r={}){let i=(()=>{if(r.cause instanceof e){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&typeof r.cause.details=="string"?r.cause.details:r.cause?.message?r.cause.message:r.details})(),n=r.cause instanceof e&&r.cause.docsPath||r.docsPath,d=`https://oxlib.sh${n??""}`,g=[t||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...i||n?["",i?`Details: ${i}`:void 0,n?`See: ${d}`:void 0]:[]].filter(y=>typeof y=="string").join(`
|
|
`);super(g,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${N0t()}`}),this.cause=r.cause,this.details=i,this.docs=d,this.docsPath=n,this.shortMessage=t}walk(t){return T0t(this,t)}}});function LB(e,t){if(a2(e)>t)throw new wX({givenSize:a2(e),maxSize:t})}function B0t(e,t){if(typeof t=="number"&&t>0&&t>a2(e)-1)throw new CU({offset:t,position:"start",size:a2(e)})}function M0t(e,t,r){if(typeof t=="number"&&typeof r=="number"&&a2(e)!==r-t)throw new CU({offset:r,position:"end",size:a2(e)})}function P_e(e){if(e>=hS.zero&&e<=hS.nine)return e-hS.zero;if(e>=hS.A&&e<=hS.F)return e-(hS.A-10);if(e>=hS.a&&e<=hS.f)return e-(hS.a-10)}function D0t(e,t={}){let{dir:r,size:i=32}=t;if(i===0)return e;if(e.length>i)throw new OX({size:e.length,targetSize:i,type:"Bytes"});let n=new Uint8Array(i);for(let o=0;o<i;o++){let d=r==="right";n[d?o:i-o-1]=e[d?o:e.length-o-1]}return n}function L_e(e,t={}){let{dir:r="left"}=t,i=e,n=0;for(let o=0;o<i.length-1&&i[r==="left"?o:i.length-o-1].toString()==="0";o++)n++;return i=r==="left"?i.slice(n):i.slice(0,i.length-n),i}var hS,k0t=tn(()=>{"use strict";J();K();z();T3();hS={zero:48,nine:57,A:65,F:70,a:97,f:102}});function UB(e,t){if(v0(e)>t)throw new NX({givenSize:v0(e),maxSize:t})}function P0t(e,t){if(typeof t=="number"&&t>0&&t>v0(e)-1)throw new wU({offset:t,position:"start",size:v0(e)})}function L0t(e,t,r){if(typeof t=="number"&&typeof r=="number"&&v0(e)!==r-t)throw new wU({offset:r,position:"end",size:v0(e)})}function U_e(e,t={}){let{dir:r,size:i=32}=t;if(i===0)return e;let n=e.replace("0x","");if(n.length>i*2)throw new xX({size:Math.ceil(n.length/2),targetSize:i,type:"Hex"});return`0x${n[r==="right"?"padEnd":"padStart"](i*2,"0")}`}function U0t(e,t={}){let{dir:r="left"}=t,i=e.replace("0x",""),n=0;for(let o=0;o<i.length-1&&i[r==="left"?o:i.length-o-1].toString()==="0";o++)n++;return i=r==="left"?i.slice(n):i.slice(0,i.length-n),i==="0"?"0x":r==="right"&&i.length%2===1?`0x${i}0`:`0x${i}`}var F_e=tn(()=>{"use strict";J();K();z();vl()});function B3(e,t,r){return JSON.stringify(e,(i,n)=>typeof t=="function"?t(i,n):typeof n=="bigint"?n.toString()+mnr:n,r)}var mnr,OU=tn(()=>{"use strict";J();K();z();mnr="#__bigint"});function Enr(e){if(!(e instanceof Uint8Array)){if(!e)throw new FB(e);if(typeof e!="object")throw new FB(e);if(!("BYTES_PER_ELEMENT"in e))throw new FB(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new FB(e)}}function Q0t(e){return e instanceof Uint8Array?e:typeof e=="string"?QB(e):vnr(e)}function vnr(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function QB(e,t={}){let{size:r}=t,i=e;r&&(UB(e,r),i=dE(e,r));let n=i.slice(2);n.length%2&&(n=`0${n}`);let o=n.length/2,d=new Uint8Array(o);for(let g=0,y=0;g<o;g++){let _=P_e(n.charCodeAt(y++)),I=P_e(n.charCodeAt(y++));if(_===void 0||I===void 0)throw new _o(`Invalid byte sequence ("${n[y-2]}${n[y-1]}" in "${n}").`);d[g]=_*16+I}return d}function H0t(e,t={}){let{size:r}=t,i=bnr.encode(e);return typeof r=="number"?(LB(i,r),Rnr(i,r)):i}function Rnr(e,t){return D0t(e,{dir:"right",size:t})}function a2(e){return e.length}function G0t(e,t,r,i={}){let{strict:n}=i;B0t(e,t);let o=e.slice(t,r);return n&&M0t(o,t,r),o}function q0t(e,t={}){let{size:r}=t;typeof r<"u"&&LB(e,r);let i=Ld(e,t);return G_e(i,t)}function V0t(e,t={}){let{size:r}=t,i=e;if(typeof r<"u"&&(LB(i,r),i=H_e(i)),i.length>1||i[0]>1)throw new Q_e(i);return!!i[0]}function uE(e,t={}){let{size:r}=t;typeof r<"u"&&LB(e,r);let i=Ld(e,t);return BX(i,t)}function J0t(e,t={}){let{size:r}=t,i=e;return typeof r<"u"&&(LB(i,r),i=Snr(i)),ynr.decode(i)}function H_e(e){return L_e(e,{dir:"left"})}function Snr(e){return L_e(e,{dir:"right"})}function z0t(e){try{return Enr(e),!0}catch{return!1}}var ynr,bnr,Q_e,FB,wX,CU,OX,T3=tn(()=>{"use strict";J();K();z();t1();vl();k0t();F_e();OU();ynr=new TextDecoder,bnr=new TextEncoder;Q_e=class extends _o{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}},FB=class extends _o{constructor(t){super(`Value \`${typeof t=="object"?B3(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}},wX=class extends _o{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},CU=class extends _o{constructor({offset:t,position:r,size:i}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${i}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},OX=class extends _o{constructor({size:t,targetSize:r,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}});function wnr(e,t={}){let{strict:r=!1}=t;if(!e)throw new MX(e);if(typeof e!="string")throw new MX(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new DX(e);if(!e.startsWith("0x"))throw new DX(e)}function j0(...e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function HB(e){return e instanceof Uint8Array?Ld(e):Array.isArray(e)?Ld(new Uint8Array(e)):e}function kX(e,t={}){let r=`0x${Number(e)}`;return typeof t.size=="number"?(UB(r,t.size),AS(r,t.size)):r}function Ld(e,t={}){let r="";for(let n=0;n<e.length;n++)r+=Cnr[e[n]];let i=`0x${r}`;return typeof t.size=="number"?(UB(i,t.size),dE(i,t.size)):i}function lc(e,t={}){let{signed:r,size:i}=t,n=BigInt(e),o;i?r?o=(1n<<BigInt(i)*8n-1n)-1n:o=2n**(BigInt(i)*8n)-1n:typeof e=="number"&&(o=BigInt(Number.MAX_SAFE_INTEGER));let d=typeof o=="bigint"&&r?-o-1n:0;if(o&&n>o||n<d){let _=typeof e=="bigint"?"n":"";throw new NU({max:o?`${o}${_}`:void 0,min:`${d}${_}`,signed:r,size:i,value:`${e}${_}`})}let y=`0x${(r&&n<0?(1n<<BigInt(i*8))+BigInt(n):n).toString(16)}`;return i?AS(y,i):y}function GB(e,t={}){return Ld(Inr.encode(e),t)}function AS(e,t){return U_e(e,{dir:"left",size:t})}function dE(e,t){return U_e(e,{dir:"right",size:t})}function R0(e,t,r,i={}){let{strict:n}=i;P0t(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&L0t(o,t,r),o}function v0(e){return Math.ceil((e.length-2)/2)}function q_e(e){return U0t(e,{dir:"left"})}function G_e(e,t={}){let{signed:r}=t;t.size&&UB(e,t.size);let i=BigInt(e);if(!r)return i;let n=(e.length-2)/2,o=(1n<<BigInt(n)*8n)-1n,d=o>>1n;return i<=d?i:i-o-1n}function BX(e,t={}){let{signed:r,size:i}=t;return Number(!r&&!i?e:G_e(e,t))}function xU(e,t={}){let{strict:r=!1}=t;try{return wnr(e,{strict:r}),!0}catch{return!1}}var Inr,Cnr,NU,MX,DX,NX,wU,xX,vl=tn(()=>{"use strict";J();K();z();t1();F_e();OU();Inr=new TextEncoder,Cnr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));NU=class extends _o{constructor({max:t,min:r,signed:i,size:n,value:o}){super(`Number \`${o}\` is not in safe${n?` ${n*8}-bit`:""}${i?" signed":" unsigned"} integer range ${t?`(\`${r}\` to \`${t}\`)`:`(above \`${r}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}},MX=class extends _o{constructor(t){super(`Value \`${typeof t=="object"?B3(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}},DX=class extends _o{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}},NX=class extends _o{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},wU=class extends _o{constructor({offset:t,position:r,size:i}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${i}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},xX=class extends _o{constructor({size:t,targetSize:r,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}});function K0t(e){return{address:e.address,amount:lc(e.amount),index:lc(e.index),validatorIndex:lc(e.validatorIndex)}}var $0t=tn(()=>{"use strict";J();K();z();vl()});function PX(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:lc(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:lc(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:lc(e.gasLimit)},...typeof e.number=="bigint"&&{number:lc(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:lc(e.prevRandao)},...typeof e.time=="bigint"&&{time:lc(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(K0t)}}}var V_e=tn(()=>{"use strict";J();K();z();vl();$0t()});var e5,LX,W0t,UX,X0t,J_e,z_e,K_e,$_e,M3=tn(()=>{"use strict";J();K();z();e5=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],LX=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],W0t=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],UX=[...W0t,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],X0t=[...W0t,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],J_e=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],z_e=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],K_e=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],$_e=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]});var Z0t,j0t=tn(()=>{"use strict";J();K();z();Z0t="0x82ad56cb"});var FX,edt,tdt,qB,TU=tn(()=>{"use strict";J();K();z();FX="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",edt="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",tdt="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",qB="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"});var t5,QX,HX,BU,pS,VB=tn(()=>{"use strict";J();K();z();ia();t5=class extends Kr{constructor({blockNumber:t,chain:r,contract:i}){super(`Chain "${r.name}" does not support contract "${i.name}".`,{metaMessages:["This could be due to any of the following:",...t&&i.blockCreated&&i.blockCreated>t?[`- The contract "${i.name}" was not deployed until block ${i.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${i.name}" configured.`]],name:"ChainDoesNotSupportContract"})}},QX=class extends Kr{constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} \u2013 ${t.name}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t.id} \u2013 ${t.name}`],name:"ChainMismatchError"})}},HX=class extends Kr{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
|
|
`),{name:"ChainNotFoundError"})}},BU=class extends Kr{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}},pS=class extends Kr{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}});function r5(e){let{abi:t,args:r,bytecode:i}=e;if(!r||r.length===0)return i;let n=t.find(d=>"type"in d&&d.type==="constructor");if(!n)throw new RT({docsPath:Y_e});if(!("inputs"in n))throw new l3({docsPath:Y_e});if(!n.inputs||n.inputs.length===0)throw new l3({docsPath:Y_e});let o=ch(n.inputs,r);return df([i,o])}var Y_e,GX=tn(()=>{"use strict";J();K();z();W0();Xh();eE();Y_e="/docs/contract/encodeDeployData"});function s2({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new t5({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new t5({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}var n5=tn(()=>{"use strict";J();K();z();VB()});function qX(e,{docsPath:t,...r}){let i=(()=>{let n=w3(e,r);return n instanceof n2?e:n})();return new QT(i,{docsPath:t,...r})}var W_e=tn(()=>{"use strict";J();K();z();_3();C3();yU()});function JB(){let e=()=>{},t=()=>{};return{promise:new Promise((i,n)=>{e=i,t=n}),resolve:e,reject:t}}var VX=tn(()=>{"use strict";J();K();z()});function JX({fn:e,id:t,shouldSplitBatch:r,wait:i=0,sort:n}){let o=async()=>{let I=y();d();let N=I.map(({args:T})=>T);N.length!==0&&e(N).then(T=>{n&&Array.isArray(T)&&T.sort(n);for(let M=0;M<I.length;M++){let{resolve:D}=I[M];D?.([T[M],T])}}).catch(T=>{for(let M=0;M<I.length;M++){let{reject:D}=I[M];D?.(T)}})},d=()=>X_e.delete(t),g=()=>y().map(({args:I})=>I),y=()=>X_e.get(t)||[],_=I=>X_e.set(t,[...y(),I]);return{flush:d,async schedule(I){let{promise:N,resolve:T,reject:M}=JB();return r?.([...g(),I])&&o(),y().length>0?(_({args:I,resolve:T,reject:M}),N):(_({args:I,resolve:T,reject:M}),setTimeout(o,i),N)}}}var X_e,Z_e=tn(()=>{"use strict";J();K();z();VX();X_e=new Map});var zX,KX,$X,rdt=tn(()=>{"use strict";J();K();z();Zh();ia();WW();zX=class extends Kr{constructor({callbackSelector:t,cause:r,data:i,extraData:n,sender:o,urls:d}){super(r.shortMessage||"An error occurred while fetching for an offchain result.",{cause:r,metaMessages:[...r.metaMessages||[],r.metaMessages?.length?"":[],"Offchain Gateway Call:",d&&[" Gateway URL(s):",...d.map(g=>` ${Fw(g)}`)],` Sender: ${o}`,` Data: ${i}`,` Callback selector: ${t}`,` Extra data: ${n}`].flat(),name:"OffchainLookupError"})}},KX=class extends Kr{constructor({result:t,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${Fw(r)}`,`Response: ${ws(t)}`],name:"OffchainLookupResponseMalformedError"})}},$X=class extends Kr{constructor({sender:t,to:r}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}});function ndt(e){let{abi:t,data:r}=e,i=j_(r,0,4),n=t.find(o=>o.type==="function"&&i===tE(Vf(o)));if(!n)throw new bW(i,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:n.name,args:"inputs"in n&&n.inputs&&n.inputs.length>0?rS(n.inputs,j_(r,4)):void 0}}var idt=tn(()=>{"use strict";J();K();z();W0();A3();TT();sU();ZR()});function e2e(e){let{abi:t,errorName:r,args:i}=e,n=t[0];if(r){let y=Wp({abi:t,args:i,name:r});if(!y)throw new WL(r,{docsPath:j_e});n=y}if(n.type!=="error")throw new WL(void 0,{docsPath:j_e});let o=Vf(n),d=tE(o),g="0x";if(i&&i.length>0){if(!n.inputs)throw new mW(n.name,{docsPath:j_e});g=ch(n.inputs,i)}return df([d,g])}var j_e,odt=tn(()=>{"use strict";J();K();z();W0();Xh();TT();eE();ZR();p3();j_e="/docs/contract/encodeErrorResult"});function adt(e){let{abi:t,functionName:r,result:i}=e,n=t[0];if(r){let d=Wp({abi:t,name:r});if(!d)throw new dy(r,{docsPath:t2e});n=d}if(n.type!=="function")throw new dy(void 0,{docsPath:t2e});if(!n.outputs)throw new wT(n.name,{docsPath:t2e});let o=(()=>{if(n.outputs.length===0)return[];if(n.outputs.length===1)return[i];if(Array.isArray(i))return i;throw new OT(i)})();return ch(n.outputs,o)}var t2e,sdt=tn(()=>{"use strict";J();K();z();W0();eE();p3();t2e="/docs/contract/encodeFunctionResult"});async function r2e(e){let{data:t,ccipRequest:r}=e,{args:[i]}=ndt({abi:LX,data:t}),n=[],o=[];return await Promise.all(i.map(async(d,g)=>{try{o[g]=d.urls.includes(gS)?await r2e({data:d.data,ccipRequest:r}):await r(d),n[g]=!1}catch(y){n[g]=!0,o[g]=Nnr(y)}})),adt({abi:LX,functionName:"query",result:[n,o]})}function Nnr(e){return e.name==="HttpRequestError"&&e.status?e2e({abi:LX,errorName:"HttpError",args:[e.status,e.shortMessage]}):e2e({abi:[kW],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}var gS,MU=tn(()=>{"use strict";J();K();z();M3();PW();idt();odt();sdt();gS="x-batch-gateway:true"});var ddt={};gh(ddt,{ccipRequest:()=>udt,offchainLookup:()=>Tnr,offchainLookupAbiItem:()=>cdt,offchainLookupSignature:()=>xnr});async function Tnr(e,{blockNumber:t,blockTag:r,data:i,to:n}){let{args:o}=FW({data:i,abi:[cdt]}),[d,g,y,_,I]=o,{ccipRead:N}=e,T=N&&typeof N?.request=="function"?N.request:udt;try{if(!o2(n,d))throw new $X({sender:d,to:n});let M=g.includes(gS)?await r2e({data:y,ccipRequest:T}):await T({data:y,sender:d,urls:g}),{data:D}=await fE(e,{blockNumber:t,blockTag:r,data:uf([_,ch([{type:"bytes"},{type:"bytes"}],[M,I])]),to:n});return D}catch(M){throw new zX({callbackSelector:_,cause:M,data:i,extraData:I,sender:d,urls:g})}}async function udt({data:e,sender:t,urls:r}){let i=new Error("An unknown error occurred.");for(let n=0;n<r.length;n++){let o=r[n],d=o.includes("{data}")?"GET":"POST",g=d==="POST"?{data:e,sender:t}:void 0,y=d==="POST"?{"Content-Type":"application/json"}:{};try{let _=await fetch(o.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(g),headers:y,method:d}),I;if(_.headers.get("Content-Type")?.startsWith("application/json")?I=(await _.json()).data:I=await _.text(),!_.ok){i=new e2({body:g,details:I?.error?ws(I.error):_.statusText,headers:_.headers,status:_.status,url:o});continue}if(!X0(I)){i=new KX({result:I,url:o});continue}return I}catch(_){i=new e2({body:g,details:_.message,url:o})}}throw i}var xnr,cdt,fdt=tn(()=>{"use strict";J();K();z();zB();rdt();Hw();$ge();eE();$w();Xh();z_();MU();Zh();xnr="0x556f1830",cdt={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]}});async function fE(e,t){let{account:r=e.account,authorizationList:i,batch:n=!!e.batch?.multicall,blockNumber:o,blockTag:d=e.experimental_blockTag??"latest",accessList:g,blobs:y,blockOverrides:_,code:I,data:N,factory:T,factoryData:M,gas:D,gasPrice:P,maxFeePerBlobGas:G,maxFeePerGas:q,maxPriorityFeePerGas:Y,nonce:ne,to:ce,value:le,stateOverride:pe,...ae}=t,W=r?na(r):void 0;if(I&&(T||M))throw new Kr("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(I&&ce)throw new Kr("Cannot provide both `code` & `to` as parameters.");let se=I&&N,O=T&&M&&ce&&N,s=se||O,l=se?ldt({code:I,data:N}):O?Dnr({data:N,factory:T,factoryData:M,to:ce}):N;try{yl(t);let m=(typeof o=="bigint"?Sn(o):void 0)||d,E=_?PX(_):void 0,w=vB(pe),x=e.chain?.formatters?.transactionRequest?.format,u=(x||JA)({...sE(ae,{format:x}),accessList:g,account:W,authorizationList:i,blobs:y,data:l,gas:D,gasPrice:P,maxFeePerBlobGas:G,maxFeePerGas:q,maxPriorityFeePerGas:Y,nonce:ne,to:s?void 0:ce,value:le},"call");if(n&&Bnr({request:u})&&!w&&!E)try{return await Mnr(e,{...u,blockNumber:o,blockTag:d})}catch(F){if(!(F instanceof BU)&&!(F instanceof t5))throw F}let C=(()=>{let F=[u,m];return w&&E?[...F,w,E]:w?[...F,w]:E?[...F,{},E]:F})(),U=await e.request({method:"eth_call",params:C});return U==="0x"?{data:void 0}:{data:U}}catch(A){let m=knr(A),{offchainLookup:E,offchainLookupSignature:w}=await Promise.resolve().then(()=>(fdt(),ddt));if(e.ccipRead!==!1&&m?.slice(0,10)===w&&ce)return{data:await E(e,{data:m,to:ce})};throw s&&m?.slice(0,10)==="0x101bb98d"?new ZW({factory:T}):qX(A,{...t,account:W,chain:e.chain})}}function Bnr({request:e}){let{data:t,to:r,...i}=e;return!(!t||t.startsWith(Z0t)||!r||Object.values(i).filter(n=>typeof n<"u").length>0)}async function Mnr(e,t){let{batchSize:r=1024,deployless:i=!1,wait:n=0}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:d=e.experimental_blockTag??"latest",data:g,to:y}=t,_=(()=>{if(i)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return s2({blockNumber:o,chain:e.chain,contract:"multicall3"});throw new BU})(),N=(typeof o=="bigint"?Sn(o):void 0)||d,{schedule:T}=JX({id:`${e.uid}.${N}`,wait:n,shouldSplitBatch(P){return P.reduce((q,{data:Y})=>q+(Y.length-2),0)>r*2},fn:async P=>{let G=P.map(ne=>({allowFailure:!0,callData:ne.data,target:ne.to})),q=hu({abi:e5,args:[G],functionName:"aggregate3"}),Y=await e.request({method:"eth_call",params:[{..._===null?{data:ldt({code:qB,data:q})}:{to:_,data:q}},N]});return jp({abi:e5,args:[G],functionName:"aggregate3",data:Y||"0x"})}}),[{returnData:M,success:D}]=await T({data:g,to:y});if(!D)throw new iE({data:M});return M==="0x"?{data:void 0}:{data:M}}function ldt(e){let{code:t,data:r}=e;return r5({abi:fW(["constructor(bytes, bytes)"]),bytecode:FX,args:[t,r]})}function Dnr(e){let{data:t,factory:r,factoryData:i,to:n}=e;return r5({abi:fW(["constructor(address, bytes, address, bytes)"]),bytecode:edt,args:[n,t,r,i]})}function knr(e){if(!(e instanceof Kr))return;let t=e.walk();return typeof t?.data=="object"?t.data?.data:t.data}var zB=tn(()=>{"use strict";J();K();z();$L();V_e();E0();M3();j0t();TU();ia();VB();_3();x3();GX();Xp();n5();fo();W_e();EB();dS();Z_e();dX();cE()});var k_t=ir(T7=>{"use strict";J();K();z();Object.defineProperty(T7,"__esModule",{value:!0});var jj;function phn(e){{let t=fe.from(e);t.reverse();let r=t.toString("hex");return r.length===0?BigInt(0):BigInt(`0x${r}`)}return jj.toBigInt(e,!1)}T7.toBigIntLE=phn;function ghn(e){{let t=e.toString("hex");return t.length===0?BigInt(0):BigInt(`0x${t}`)}return jj.toBigInt(e,!0)}T7.toBigIntBE=ghn;function _hn(e,t){{let r=e.toString(16),i=fe.from(r.padStart(t*2,"0").slice(0,t*2),"hex");return i.reverse(),i}return jj.fromBigInt(e,fe.allocUnsafe(t),!1)}T7.toBufferLE=_hn;function mhn(e,t){{let r=e.toString(16);return fe.from(r.padStart(t*2,"0").slice(0,t*2),"hex")}return jj.fromBigInt(e,fe.allocUnsafe(t),!0)}T7.toBufferBE=mhn});var oee=ir((xfo,q_t)=>{"use strict";J();K();z();var vhn=_k(),Rhn="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";q_t.exports=vhn(Rhn)});var e2t=ir(gu=>{"use strict";J();K();z();var whn=gu&&gu.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),Ohn=gu&&gu.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Nhn=gu&&gu.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&whn(t,e,r);return Ohn(t,e),t};Object.defineProperty(gu,"__esModule",{value:!0});gu.b64UrlDecode=gu.b64UrlEncode=gu.bufferTob64Url=gu.bufferTob64=gu.b64UrlToBuffer=gu.stringToB64Url=gu.stringToBuffer=gu.bufferToString=gu.b64UrlToString=gu.concatBuffers=void 0;var z_t=Nhn(mV());function xhn(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n].byteLength;let r=new Uint8Array(t),i=0;r.set(new Uint8Array(e[0]),i),i+=e[0].byteLength;for(let n=1;n<e.length;n++)r.set(new Uint8Array(e[n]),i),i+=e[n].byteLength;return r}gu.concatBuffers=xhn;function Thn(e){let t=Y_t(e);return K_t(t)}gu.b64UrlToString=Thn;function K_t(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}gu.bufferToString=K_t;function $_t(e){return new TextEncoder().encode(e)}gu.stringToBuffer=$_t;function Bhn(e){return X_t($_t(e))}gu.stringToB64Url=Bhn;function Y_t(e){return new Uint8Array(z_t.toByteArray(j_t(e)))}gu.b64UrlToBuffer=Y_t;function W_t(e){return z_t.fromByteArray(new Uint8Array(e))}gu.bufferTob64=W_t;function X_t(e){return Z_t(W_t(e))}gu.bufferTob64Url=X_t;function Z_t(e){try{return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}catch(t){throw new Error("Failed to encode string",{cause:t})}}gu.b64UrlEncode=Z_t;function j_t(e){try{e=e.replace(/\-/g,"+").replace(/\_/g,"/");let t;return e.length%4==0?t=0:t=4-e.length%4,e.concat("=".repeat(t))}catch(t){throw new Error("Failed to decode string",{cause:t})}}gu.b64UrlDecode=j_t});var i2t=ir(X3=>{"use strict";J();K();z();Object.defineProperty(X3,"__esModule",{value:!0});X3.utf8Write=X3.utf8Read=X3.utf8Length=void 0;function Dhn(e){let t=0,r=0;for(let i=0;i<e.length;++i)r=e.charCodeAt(i),r<128?t+=1:r<2048?t+=2:(r&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320?(++i,t+=4):t+=3;return t}X3.utf8Length=Dhn;function khn(e,t,r){if(r-t<1)return"";let n=[],o=[],d=0,g;for(;t<r;)g=e[t++],g<128?n[d++]=g:g>191&&g<224?n[d++]=(g&31)<<6|e[t++]&63:g>239&&g<365?(g=((g&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,n[d++]=55296+(g>>10),n[d++]=56320+(g&1023)):n[d++]=(g&15)<<12|(e[t++]&63)<<6|e[t++]&63,d>8191&&((o||(o=[])).push(String.fromCharCode(...n)),d=0);return o?(d&&o.push(String.fromCharCode(...n.slice(0,d))),o.join("")):String.fromCharCode(...n.slice(0,d))}X3.utf8Read=khn;function Phn(e,t,r){let i=r,n,o;for(let d=0;d<e.length;++d)n=e.charCodeAt(d),n<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=n&63|128):(n&64512)===55296&&((o=e.charCodeAt(d+1))&64512)===56320?(n=65536+((n&1023)<<10)+(o&1023),++d,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=n&63|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=n&63|128);return r-i}X3.utf8Write=Phn});var c2t=ir(Zs=>{"use strict";J();K();z();Object.defineProperty(Zs,"__esModule",{value:!0});Zs.writeByte=Zs.writeFixed32=Zs.int64Length=Zs.writeVarint64=Zs.writeVarint32=Zs.readInt32=Zs.readUInt32=Zs.zzDecode=Zs.zzEncode=Zs.varint32read=Zs.varint32write=Zs.uInt64ToString=Zs.int64ToString=Zs.int64FromString=Zs.varint64write=Zs.varint64read=void 0;function Lhn(){let e=0,t=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}Zs.varint64read=Lhn;function Uhn(e,t,r){for(let o=0;o<28;o=o+7){let d=e>>>o,g=!(!(d>>>7)&&t==0),y=(g?d|128:d)&255;if(r.push(y),!g)return}let i=e>>>28&15|(t&7)<<4,n=t>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let o=3;o<31;o=o+7){let d=t>>>o,g=!!(d>>>7),y=(g?d|128:d)&255;if(r.push(y),!g)return}r.push(t>>>31&1)}}Zs.varint64write=Uhn;var fee=4294967296;function Fhn(e){let t=e[0]==="-";t&&(e=e.slice(1));let r=1e6,i=0,n=0;function o(d,g){let y=Number(e.slice(d,g));n*=r,i=i*r+y,i>=fee&&(n=n+(i/fee|0),i=i%fee)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?s2t(i,n):AEe(i,n)}Zs.int64FromString=Fhn;function Qhn(e,t){let r=AEe(e,t),i=r.hi&2147483648;i&&(r=s2t(r.lo,r.hi));let n=a2t(r.lo,r.hi);return i?"-"+n:n}Zs.int64ToString=Qhn;function a2t(e,t){if({lo:e,hi:t}=Hhn(e,t),t<=2097151)return String(fee*t+e);let r=e&16777215,i=(e>>>24|t<<8)&16777215,n=t>>16&65535,o=r+i*6777216+n*6710656,d=i+n*8147497,g=n*2,y=1e7;return o>=y&&(d+=Math.floor(o/y),o%=y),d>=y&&(g+=Math.floor(d/y),d%=y),g.toString()+o2t(d)+o2t(o)}Zs.uInt64ToString=a2t;function Hhn(e,t){return{lo:e>>>0,hi:t>>>0}}function AEe(e,t){return{lo:e|0,hi:t|0}}function s2t(e,t){return t=~t,e?e=~e+1:t+=1,AEe(e,t)}var o2t=e=>{let t=String(e);return"0000000".slice(t.length)+t};function Ghn(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}Zs.varint32write=Ghn;function qhn(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}Zs.varint32read=qhn;function Vhn(e,t){let r=t>>31;return t=((t<<1|e>>>31)^r)>>>0,e=(e<<1^r)>>>0,[e,t]}Zs.zzEncode=Vhn;function Jhn(e,t){let r=-(e&1);return e=((e>>>1|t<<31)^r)>>>0,t=(t>>>1^r)>>>0,[e,t]}Zs.zzDecode=Jhn;function zhn(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216}Zs.readUInt32=zhn;function Khn(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}Zs.readInt32=Khn;function $hn(e,t,r){for(;e>127;)t[r++]=e&127|128,e>>>=7;t[r]=e}Zs.writeVarint32=$hn;function Yhn(e,t,r){for(;e.hi;)t[r++]=e.lo&127|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=e.lo&127|128,e.lo=e.lo>>>7;t[r++]=e.lo}Zs.writeVarint64=Yhn;function Whn(e,t){let r=e,i=(e>>>28|t<<4)>>>0,n=t>>>24;return n===0?i===0?r<16384?r<128?1:2:r<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:n<128?9:10}Zs.int64Length=Whn;function Xhn(e,t,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Zs.writeFixed32=Xhn;function Zhn(e,t,r){t[r]=e&255}Zs.writeByte=Zhn});var Qi=ir(Z3=>{"use strict";J();K();z();Object.defineProperty(Z3,"__esModule",{value:!0});Z3.BinaryWriter=Z3.BinaryReader=Z3.WireType=void 0;var pEe=i2t(),Bc=c2t(),M7;(function(e){e[e.Varint=0]="Varint",e[e.Fixed64=1]="Fixed64",e[e.Bytes=2]="Bytes",e[e.Fixed32=5]="Fixed32"})(M7||(Z3.WireType=M7={}));var gEe=class{assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}constructor(t){this.buf=t?new Uint8Array(t):new Uint8Array(0),this.pos=0,this.type=0,this.len=this.buf.length}tag(){let t=this.uint32(),r=t>>>3,i=t&7;if(r<=0||i<0||i>5)throw new Error("illegal tag: field no "+r+" wire type "+i);return[r,i,t]}skip(t){if(typeof t=="number"){if(this.pos+t>this.len)throw u2t(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u2t(this);while(this.buf[this.pos++]&128);return this}skipType(t){switch(t){case M7.Varint:this.skip();break;case M7.Fixed64:this.skip(8);break;case M7.Bytes:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case M7.Fixed32:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this}uint32(){return Bc.varint32read.bind(this)()}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t%2===1?(t+1)/-2:t/2}fixed32(){let t=(0,Bc.readUInt32)(this.buf,this.pos);return this.pos+=4,t}sfixed32(){let t=(0,Bc.readInt32)(this.buf,this.pos);return this.pos+=4,t}int64(){let[t,r]=Bc.varint64read.bind(this)();return BigInt((0,Bc.int64ToString)(t,r))}uint64(){let[t,r]=Bc.varint64read.bind(this)();return BigInt((0,Bc.uInt64ToString)(t,r))}sint64(){let[t,r]=Bc.varint64read.bind(this)();return[t,r]=(0,Bc.zzDecode)(t,r),BigInt((0,Bc.int64ToString)(t,r))}fixed64(){let t=this.sfixed32(),r=this.sfixed32();return BigInt((0,Bc.uInt64ToString)(t,r))}sfixed64(){let t=this.sfixed32(),r=this.sfixed32();return BigInt((0,Bc.int64ToString)(t,r))}float(){throw new Error("float not supported")}double(){throw new Error("double not supported")}bool(){let[t,r]=Bc.varint64read.bind(this)();return t!==0||r!==0}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){let t=this.bytes();return(0,pEe.utf8Read)(t,0,t.length)}};Z3.BinaryReader=gEe;var v5=class{constructor(t,r,i){this.fn=t,this.len=r,this.val=i}proceed(t,r){this.fn&&this.fn(this.val,t,r)}},_Ee=class{constructor(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}},mEe=class e{constructor(){this.len=0,this.uint64=e.prototype.int64,this.sfixed64=e.prototype.fixed64,this.sfixed32=e.prototype.fixed32,this.head=new v5(null,0,0),this.tail=this.head,this.states=null}static create(){return new e}static alloc(t){return typeof Uint8Array<"u"?eAn(r=>new Uint8Array(r),Uint8Array.prototype.subarray)(t):new Array(t)}_push(t,r,i){return this.tail=this.tail.next=new v5(t,r,i),this.len+=r,this}finish(){let t=this.head.next,r=0,i=e.alloc(this.len);for(;t;)t.proceed(i,r),r+=t.len,t=t.next;return i}fork(){return this.states=new _Ee(this),this.head=this.tail=new v5(null,0,0),this.len=0,this}reset(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new v5(null,0,0),this.len=0),this}ldelim(){let t=this.head,r=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=t.next,this.tail=r,this.len+=i),this}tag(t,r){return this.uint32((t<<3|r)>>>0)}uint32(t){return this.len+=(this.tail=this.tail.next=new v5(Bc.writeVarint32,(t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this}int32(t){return t<0?this._push(Bc.writeVarint64,10,(0,Bc.int64FromString)(t.toString())):this.uint32(t)}sint32(t){return this.uint32((t<<1^t>>31)>>>0)}int64(t){let{lo:r,hi:i}=(0,Bc.int64FromString)(t.toString());return this._push(Bc.writeVarint64,(0,Bc.int64Length)(r,i),{lo:r,hi:i})}sint64(t){let{lo:r,hi:i}=(0,Bc.int64FromString)(t.toString());return[r,i]=(0,Bc.zzEncode)(r,i),this._push(Bc.writeVarint64,(0,Bc.int64Length)(r,i),{lo:r,hi:i})}fixed64(t){let{lo:r,hi:i}=(0,Bc.int64FromString)(t.toString());return this._push(Bc.writeFixed32,4,r)._push(Bc.writeFixed32,4,i)}bool(t){return this._push(Bc.writeByte,1,t?1:0)}fixed32(t){return this._push(Bc.writeFixed32,4,t>>>0)}float(t){throw new Error("float not supported"+t)}double(t){throw new Error("double not supported"+t)}bytes(t){let r=t.length>>>0;return r?this.uint32(r)._push(jhn,r,t):this._push(Bc.writeByte,1,0)}string(t){let r=(0,pEe.utf8Length)(t);return r?this.uint32(r)._push(pEe.utf8Write,r,t):this._push(Bc.writeByte,1,0)}};Z3.BinaryWriter=mEe;function jhn(e,t,r){if(typeof Uint8Array<"u")t.set(e,r);else for(let i=0;i<e.length;++i)t[r+i]=e[i]}function eAn(e,t,r){let i=r||8192,n=i>>>1,o=null,d=i;return function(y){if(y<1||y>n)return e(y);d+y>i&&(o=e(i),d=0);let _=t.call(o,d,d+=y);return d&7&&(d=(d|7)+1),_}}function u2t(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}});var Hi=ir(S0=>{"use strict";J();K();z();Object.defineProperty(S0,"__esModule",{value:!0});S0.fromJsonTimestamp=S0.fromTimestamp=S0.toTimestamp=S0.setPaginationParams=S0.isObject=S0.isSet=S0.fromDuration=S0.toDuration=S0.omitDefault=S0.base64FromBytes=S0.bytesFromBase64=void 0;var D7=(()=>{if(typeof D7<"u")return D7;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"})(),tAn=D7.atob||(e=>D7.Buffer.from(e,"base64").toString("binary"));function rAn(e){let t=tAn(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}S0.bytesFromBase64=rAn;var nAn=D7.btoa||(e=>D7.Buffer.from(e,"binary").toString("base64"));function iAn(e){let t=[];return e.forEach(r=>{t.push(String.fromCharCode(r))}),nAn(t.join(""))}S0.base64FromBytes=iAn;function oAn(e){if(typeof e=="string")return e===""?void 0:e;if(typeof e=="number")return e===0?void 0:e;if(typeof e=="bigint")return e===BigInt(0)?void 0:e;throw new Error(`Got unsupported type ${typeof e}`)}S0.omitDefault=oAn;function aAn(e){return{seconds:BigInt(Math.floor(parseInt(e)/1e9)),nanos:parseInt(e)%1e9}}S0.toDuration=aAn;function sAn(e){return(parseInt(e.seconds.toString())*1e9+e.nanos).toString()}S0.fromDuration=sAn;function yEe(e){return e!=null}S0.isSet=yEe;function cAn(e){return typeof e=="object"&&e!==null}S0.isObject=cAn;var uAn=(e,t)=>(t&&(typeof t?.countTotal<"u"&&(e.params["pagination.count_total"]=t.countTotal),typeof t?.key<"u"&&(e.params["pagination.key"]=fe.from(t.key).toString("base64")),typeof t?.limit<"u"&&(e.params["pagination.limit"]=t.limit.toString()),typeof t?.offset<"u"&&(e.params["pagination.offset"]=t.offset.toString()),typeof t?.reverse<"u"&&(e.params["pagination.reverse"]=t.reverse)),e);S0.setPaginationParams=uAn;function bEe(e){let t=hAn(e.getTime()/1e3),r=e.getTime()%1e3*1e6;return{seconds:t,nanos:r}}S0.toTimestamp=bEe;function dAn(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}S0.fromTimestamp=dAn;var fAn=e=>({seconds:yEe(e.seconds)?BigInt(e.seconds.toString()):BigInt(0),nanos:yEe(e.nanos)?Number(e.nanos):0});function lAn(e){return e instanceof Date?bEe(e):typeof e=="string"?bEe(new Date(e)):fAn(e)}S0.fromJsonTimestamp=lAn;function hAn(e){return BigInt(Math.trunc(e))}});var ru=ir(k7=>{"use strict";J();K();z();Object.defineProperty(k7,"__esModule",{value:!0});k7.Any=k7.protobufPackage=void 0;var EEe=Qi(),lee=Hi();k7.protobufPackage="google.protobuf";function vEe(){return{typeUrl:"",value:new Uint8Array}}k7.Any={typeUrl:"/google.protobuf.Any",encode(e,t=EEe.BinaryWriter.create()){return e.typeUrl!==""&&t.uint32(10).string(e.typeUrl),e.value.length!==0&&t.uint32(18).bytes(e.value),t},decode(e,t){let r=e instanceof EEe.BinaryReader?e:new EEe.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.typeUrl=r.string();break;case 2:n.value=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vEe();return(0,lee.isSet)(e.typeUrl)&&(t.typeUrl=String(e.typeUrl)),(0,lee.isSet)(e.value)&&(t.value=(0,lee.bytesFromBase64)(e.value)),t},toJSON(e){let t={};return e.typeUrl!==void 0&&(t.typeUrl=e.typeUrl),e.value!==void 0&&(t.value=(0,lee.base64FromBytes)(e.value!==void 0?e.value:new Uint8Array)),t},fromPartial(e){let t=vEe();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array,t}}});var hee=ir(j3=>{"use strict";J();K();z();Object.defineProperty(j3,"__esModule",{value:!0});j3.CompactBitArray=j3.MultiSignature=j3.protobufPackage=void 0;var L7=Qi(),P7=Hi();j3.protobufPackage="cosmos.crypto.multisig.v1beta1";function REe(){return{signatures:[]}}j3.MultiSignature={typeUrl:"/cosmos.crypto.multisig.v1beta1.MultiSignature",encode(e,t=L7.BinaryWriter.create()){for(let r of e.signatures)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof L7.BinaryReader?e:new L7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=REe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.signatures.push(r.bytes()):r.skipType(o&7)}return n},fromJSON(e){let t=REe();return Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(r=>(0,P7.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.signatures?t.signatures=e.signatures.map(r=>(0,P7.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.signatures=[],t},fromPartial(e){let t=REe();return t.signatures=e.signatures?.map(r=>r)||[],t}};function SEe(){return{extraBitsStored:0,elems:new Uint8Array}}j3.CompactBitArray={typeUrl:"/cosmos.crypto.multisig.v1beta1.CompactBitArray",encode(e,t=L7.BinaryWriter.create()){return e.extraBitsStored!==0&&t.uint32(8).uint32(e.extraBitsStored),e.elems.length!==0&&t.uint32(18).bytes(e.elems),t},decode(e,t){let r=e instanceof L7.BinaryReader?e:new L7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=SEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.extraBitsStored=r.uint32();break;case 2:n.elems=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=SEe();return(0,P7.isSet)(e.extraBitsStored)&&(t.extraBitsStored=Number(e.extraBitsStored)),(0,P7.isSet)(e.elems)&&(t.elems=(0,P7.bytesFromBase64)(e.elems)),t},toJSON(e){let t={};return e.extraBitsStored!==void 0&&(t.extraBitsStored=Math.round(e.extraBitsStored)),e.elems!==void 0&&(t.elems=(0,P7.base64FromBytes)(e.elems!==void 0?e.elems:new Uint8Array)),t},fromPartial(e){let t=SEe();return t.extraBitsStored=e.extraBitsStored??0,t.elems=e.elems??new Uint8Array,t}}});var U7=ir(aa=>{"use strict";J();K();z();Object.defineProperty(aa,"__esModule",{value:!0});aa.SignatureDescriptor_Data_Multi=aa.SignatureDescriptor_Data_Single=aa.SignatureDescriptor_Data=aa.SignatureDescriptor=aa.SignatureDescriptors=aa.signModeToJSON=aa.signModeFromJSON=aa.SignMode=aa.protobufPackage=void 0;var BF=hee(),MF=ru(),WA=Qi(),RE=Hi();aa.protobufPackage="cosmos.tx.signing.v1beta1";var sA;(function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_DIRECT_AUX=3]="SIGN_MODE_DIRECT_AUX",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sA||(aa.SignMode=sA={}));function d2t(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return sA.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return sA.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return sA.SIGN_MODE_TEXTUAL;case 3:case"SIGN_MODE_DIRECT_AUX":return sA.SIGN_MODE_DIRECT_AUX;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return sA.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return sA.SIGN_MODE_EIP_191;default:return sA.UNRECOGNIZED}}aa.signModeFromJSON=d2t;function f2t(e){switch(e){case sA.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case sA.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case sA.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case sA.SIGN_MODE_DIRECT_AUX:return"SIGN_MODE_DIRECT_AUX";case sA.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case sA.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case sA.UNRECOGNIZED:default:return"UNRECOGNIZED"}}aa.signModeToJSON=f2t;function IEe(){return{signatures:[]}}aa.SignatureDescriptors={typeUrl:"/cosmos.tx.signing.v1beta1.SignatureDescriptors",encode(e,t=WA.BinaryWriter.create()){for(let r of e.signatures)aa.SignatureDescriptor.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof WA.BinaryReader?e:new WA.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=IEe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.signatures.push(aa.SignatureDescriptor.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=IEe();return Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(r=>aa.SignatureDescriptor.fromJSON(r))),t},toJSON(e){let t={};return e.signatures?t.signatures=e.signatures.map(r=>r?aa.SignatureDescriptor.toJSON(r):void 0):t.signatures=[],t},fromPartial(e){let t=IEe();return t.signatures=e.signatures?.map(r=>aa.SignatureDescriptor.fromPartial(r))||[],t}};function CEe(){return{publicKey:void 0,data:void 0,sequence:BigInt(0)}}aa.SignatureDescriptor={typeUrl:"/cosmos.tx.signing.v1beta1.SignatureDescriptor",encode(e,t=WA.BinaryWriter.create()){return e.publicKey!==void 0&&MF.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),e.data!==void 0&&aa.SignatureDescriptor_Data.encode(e.data,t.uint32(18).fork()).ldelim(),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t},decode(e,t){let r=e instanceof WA.BinaryReader?e:new WA.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=CEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.publicKey=MF.Any.decode(r,r.uint32());break;case 2:n.data=aa.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=CEe();return(0,RE.isSet)(e.publicKey)&&(t.publicKey=MF.Any.fromJSON(e.publicKey)),(0,RE.isSet)(e.data)&&(t.data=aa.SignatureDescriptor_Data.fromJSON(e.data)),(0,RE.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.publicKey!==void 0&&(t.publicKey=e.publicKey?MF.Any.toJSON(e.publicKey):void 0),e.data!==void 0&&(t.data=e.data?aa.SignatureDescriptor_Data.toJSON(e.data):void 0),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=CEe();return e.publicKey!==void 0&&e.publicKey!==null&&(t.publicKey=MF.Any.fromPartial(e.publicKey)),e.data!==void 0&&e.data!==null&&(t.data=aa.SignatureDescriptor_Data.fromPartial(e.data)),e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function wEe(){return{single:void 0,multi:void 0}}aa.SignatureDescriptor_Data={typeUrl:"/cosmos.tx.signing.v1beta1.Data",encode(e,t=WA.BinaryWriter.create()){return e.single!==void 0&&aa.SignatureDescriptor_Data_Single.encode(e.single,t.uint32(10).fork()).ldelim(),e.multi!==void 0&&aa.SignatureDescriptor_Data_Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof WA.BinaryReader?e:new WA.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=wEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.single=aa.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:n.multi=aa.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=wEe();return(0,RE.isSet)(e.single)&&(t.single=aa.SignatureDescriptor_Data_Single.fromJSON(e.single)),(0,RE.isSet)(e.multi)&&(t.multi=aa.SignatureDescriptor_Data_Multi.fromJSON(e.multi)),t},toJSON(e){let t={};return e.single!==void 0&&(t.single=e.single?aa.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),e.multi!==void 0&&(t.multi=e.multi?aa.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),t},fromPartial(e){let t=wEe();return e.single!==void 0&&e.single!==null&&(t.single=aa.SignatureDescriptor_Data_Single.fromPartial(e.single)),e.multi!==void 0&&e.multi!==null&&(t.multi=aa.SignatureDescriptor_Data_Multi.fromPartial(e.multi)),t}};function OEe(){return{mode:0,signature:new Uint8Array}}aa.SignatureDescriptor_Data_Single={typeUrl:"/cosmos.tx.signing.v1beta1.Single",encode(e,t=WA.BinaryWriter.create()){return e.mode!==0&&t.uint32(8).int32(e.mode),e.signature.length!==0&&t.uint32(18).bytes(e.signature),t},decode(e,t){let r=e instanceof WA.BinaryReader?e:new WA.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=OEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.mode=r.int32();break;case 2:n.signature=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=OEe();return(0,RE.isSet)(e.mode)&&(t.mode=d2t(e.mode)),(0,RE.isSet)(e.signature)&&(t.signature=(0,RE.bytesFromBase64)(e.signature)),t},toJSON(e){let t={};return e.mode!==void 0&&(t.mode=f2t(e.mode)),e.signature!==void 0&&(t.signature=(0,RE.base64FromBytes)(e.signature!==void 0?e.signature:new Uint8Array)),t},fromPartial(e){let t=OEe();return t.mode=e.mode??0,t.signature=e.signature??new Uint8Array,t}};function NEe(){return{bitarray:void 0,signatures:[]}}aa.SignatureDescriptor_Data_Multi={typeUrl:"/cosmos.tx.signing.v1beta1.Multi",encode(e,t=WA.BinaryWriter.create()){e.bitarray!==void 0&&BF.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim();for(let r of e.signatures)aa.SignatureDescriptor_Data.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof WA.BinaryReader?e:new WA.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=NEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.bitarray=BF.CompactBitArray.decode(r,r.uint32());break;case 2:n.signatures.push(aa.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=NEe();return(0,RE.isSet)(e.bitarray)&&(t.bitarray=BF.CompactBitArray.fromJSON(e.bitarray)),Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(r=>aa.SignatureDescriptor_Data.fromJSON(r))),t},toJSON(e){let t={};return e.bitarray!==void 0&&(t.bitarray=e.bitarray?BF.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?t.signatures=e.signatures.map(r=>r?aa.SignatureDescriptor_Data.toJSON(r):void 0):t.signatures=[],t},fromPartial(e){let t=NEe();return e.bitarray!==void 0&&e.bitarray!==null&&(t.bitarray=BF.CompactBitArray.fromPartial(e.bitarray)),t.signatures=e.signatures?.map(r=>aa.SignatureDescriptor_Data.fromPartial(r))||[],t}}});var Af=ir(l2=>{"use strict";J();K();z();Object.defineProperty(l2,"__esModule",{value:!0});l2.DecProto=l2.IntProto=l2.DecCoin=l2.Coin=l2.protobufPackage=void 0;var h2=Qi(),F7=Hi();l2.protobufPackage="cosmos.base.v1beta1";function xEe(){return{denom:"",amount:""}}l2.Coin={typeUrl:"/cosmos.base.v1beta1.Coin",encode(e,t=h2.BinaryWriter.create()){return e.denom!==""&&t.uint32(10).string(e.denom),e.amount!==""&&t.uint32(18).string(e.amount),t},decode(e,t){let r=e instanceof h2.BinaryReader?e:new h2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=xEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denom=r.string();break;case 2:n.amount=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=xEe();return(0,F7.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,F7.isSet)(e.amount)&&(t.amount=String(e.amount)),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.amount!==void 0&&(t.amount=e.amount),t},fromPartial(e){let t=xEe();return t.denom=e.denom??"",t.amount=e.amount??"",t}};function TEe(){return{denom:"",amount:""}}l2.DecCoin={typeUrl:"/cosmos.base.v1beta1.DecCoin",encode(e,t=h2.BinaryWriter.create()){return e.denom!==""&&t.uint32(10).string(e.denom),e.amount!==""&&t.uint32(18).string(e.amount),t},decode(e,t){let r=e instanceof h2.BinaryReader?e:new h2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=TEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denom=r.string();break;case 2:n.amount=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=TEe();return(0,F7.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,F7.isSet)(e.amount)&&(t.amount=String(e.amount)),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.amount!==void 0&&(t.amount=e.amount),t},fromPartial(e){let t=TEe();return t.denom=e.denom??"",t.amount=e.amount??"",t}};function BEe(){return{int:""}}l2.IntProto={typeUrl:"/cosmos.base.v1beta1.IntProto",encode(e,t=h2.BinaryWriter.create()){return e.int!==""&&t.uint32(10).string(e.int),t},decode(e,t){let r=e instanceof h2.BinaryReader?e:new h2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=BEe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.int=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=BEe();return(0,F7.isSet)(e.int)&&(t.int=String(e.int)),t},toJSON(e){let t={};return e.int!==void 0&&(t.int=e.int),t},fromPartial(e){let t=BEe();return t.int=e.int??"",t}};function MEe(){return{dec:""}}l2.DecProto={typeUrl:"/cosmos.base.v1beta1.DecProto",encode(e,t=h2.BinaryWriter.create()){return e.dec!==""&&t.uint32(10).string(e.dec),t},decode(e,t){let r=e instanceof h2.BinaryReader?e:new h2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=MEe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.dec=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=MEe();return(0,F7.isSet)(e.dec)&&(t.dec=String(e.dec)),t},toJSON(e){let t={};return e.dec!==void 0&&(t.dec=e.dec),t},fromPartial(e){let t=MEe();return t.dec=e.dec??"",t}}});var RS=ir(li=>{"use strict";J();K();z();Object.defineProperty(li,"__esModule",{value:!0});li.AuxSignerData=li.Tip=li.Fee=li.ModeInfo_Multi=li.ModeInfo_Single=li.ModeInfo=li.SignerInfo=li.AuthInfo=li.TxBody=li.SignDocDirectAux=li.SignDoc=li.TxRaw=li.Tx=li.protobufPackage=void 0;var a0=ru(),Aee=U7(),DF=hee(),SE=Af(),is=Qi(),Ko=Hi();li.protobufPackage="cosmos.tx.v1beta1";function DEe(){return{body:void 0,authInfo:void 0,signatures:[]}}li.Tx={typeUrl:"/cosmos.tx.v1beta1.Tx",encode(e,t=is.BinaryWriter.create()){e.body!==void 0&&li.TxBody.encode(e.body,t.uint32(10).fork()).ldelim(),e.authInfo!==void 0&&li.AuthInfo.encode(e.authInfo,t.uint32(18).fork()).ldelim();for(let r of e.signatures)t.uint32(26).bytes(r);return t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=DEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.body=li.TxBody.decode(r,r.uint32());break;case 2:n.authInfo=li.AuthInfo.decode(r,r.uint32());break;case 3:n.signatures.push(r.bytes());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=DEe();return(0,Ko.isSet)(e.body)&&(t.body=li.TxBody.fromJSON(e.body)),(0,Ko.isSet)(e.authInfo)&&(t.authInfo=li.AuthInfo.fromJSON(e.authInfo)),Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(r=>(0,Ko.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.body!==void 0&&(t.body=e.body?li.TxBody.toJSON(e.body):void 0),e.authInfo!==void 0&&(t.authInfo=e.authInfo?li.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?t.signatures=e.signatures.map(r=>(0,Ko.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.signatures=[],t},fromPartial(e){let t=DEe();return e.body!==void 0&&e.body!==null&&(t.body=li.TxBody.fromPartial(e.body)),e.authInfo!==void 0&&e.authInfo!==null&&(t.authInfo=li.AuthInfo.fromPartial(e.authInfo)),t.signatures=e.signatures?.map(r=>r)||[],t}};function kEe(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}li.TxRaw={typeUrl:"/cosmos.tx.v1beta1.TxRaw",encode(e,t=is.BinaryWriter.create()){e.bodyBytes.length!==0&&t.uint32(10).bytes(e.bodyBytes),e.authInfoBytes.length!==0&&t.uint32(18).bytes(e.authInfoBytes);for(let r of e.signatures)t.uint32(26).bytes(r);return t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.bodyBytes=r.bytes();break;case 2:n.authInfoBytes=r.bytes();break;case 3:n.signatures.push(r.bytes());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kEe();return(0,Ko.isSet)(e.bodyBytes)&&(t.bodyBytes=(0,Ko.bytesFromBase64)(e.bodyBytes)),(0,Ko.isSet)(e.authInfoBytes)&&(t.authInfoBytes=(0,Ko.bytesFromBase64)(e.authInfoBytes)),Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(r=>(0,Ko.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.bodyBytes!==void 0&&(t.bodyBytes=(0,Ko.base64FromBytes)(e.bodyBytes!==void 0?e.bodyBytes:new Uint8Array)),e.authInfoBytes!==void 0&&(t.authInfoBytes=(0,Ko.base64FromBytes)(e.authInfoBytes!==void 0?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map(r=>(0,Ko.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.signatures=[],t},fromPartial(e){let t=kEe();return t.bodyBytes=e.bodyBytes??new Uint8Array,t.authInfoBytes=e.authInfoBytes??new Uint8Array,t.signatures=e.signatures?.map(r=>r)||[],t}};function PEe(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:BigInt(0)}}li.SignDoc={typeUrl:"/cosmos.tx.v1beta1.SignDoc",encode(e,t=is.BinaryWriter.create()){return e.bodyBytes.length!==0&&t.uint32(10).bytes(e.bodyBytes),e.authInfoBytes.length!==0&&t.uint32(18).bytes(e.authInfoBytes),e.chainId!==""&&t.uint32(26).string(e.chainId),e.accountNumber!==BigInt(0)&&t.uint32(32).uint64(e.accountNumber),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=PEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.bodyBytes=r.bytes();break;case 2:n.authInfoBytes=r.bytes();break;case 3:n.chainId=r.string();break;case 4:n.accountNumber=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=PEe();return(0,Ko.isSet)(e.bodyBytes)&&(t.bodyBytes=(0,Ko.bytesFromBase64)(e.bodyBytes)),(0,Ko.isSet)(e.authInfoBytes)&&(t.authInfoBytes=(0,Ko.bytesFromBase64)(e.authInfoBytes)),(0,Ko.isSet)(e.chainId)&&(t.chainId=String(e.chainId)),(0,Ko.isSet)(e.accountNumber)&&(t.accountNumber=BigInt(e.accountNumber.toString())),t},toJSON(e){let t={};return e.bodyBytes!==void 0&&(t.bodyBytes=(0,Ko.base64FromBytes)(e.bodyBytes!==void 0?e.bodyBytes:new Uint8Array)),e.authInfoBytes!==void 0&&(t.authInfoBytes=(0,Ko.base64FromBytes)(e.authInfoBytes!==void 0?e.authInfoBytes:new Uint8Array)),e.chainId!==void 0&&(t.chainId=e.chainId),e.accountNumber!==void 0&&(t.accountNumber=(e.accountNumber||BigInt(0)).toString()),t},fromPartial(e){let t=PEe();return t.bodyBytes=e.bodyBytes??new Uint8Array,t.authInfoBytes=e.authInfoBytes??new Uint8Array,t.chainId=e.chainId??"",e.accountNumber!==void 0&&e.accountNumber!==null&&(t.accountNumber=BigInt(e.accountNumber.toString())),t}};function LEe(){return{bodyBytes:new Uint8Array,publicKey:void 0,chainId:"",accountNumber:BigInt(0),sequence:BigInt(0),tip:void 0}}li.SignDocDirectAux={typeUrl:"/cosmos.tx.v1beta1.SignDocDirectAux",encode(e,t=is.BinaryWriter.create()){return e.bodyBytes.length!==0&&t.uint32(10).bytes(e.bodyBytes),e.publicKey!==void 0&&a0.Any.encode(e.publicKey,t.uint32(18).fork()).ldelim(),e.chainId!==""&&t.uint32(26).string(e.chainId),e.accountNumber!==BigInt(0)&&t.uint32(32).uint64(e.accountNumber),e.sequence!==BigInt(0)&&t.uint32(40).uint64(e.sequence),e.tip!==void 0&&li.Tip.encode(e.tip,t.uint32(50).fork()).ldelim(),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=LEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.bodyBytes=r.bytes();break;case 2:n.publicKey=a0.Any.decode(r,r.uint32());break;case 3:n.chainId=r.string();break;case 4:n.accountNumber=r.uint64();break;case 5:n.sequence=r.uint64();break;case 6:n.tip=li.Tip.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=LEe();return(0,Ko.isSet)(e.bodyBytes)&&(t.bodyBytes=(0,Ko.bytesFromBase64)(e.bodyBytes)),(0,Ko.isSet)(e.publicKey)&&(t.publicKey=a0.Any.fromJSON(e.publicKey)),(0,Ko.isSet)(e.chainId)&&(t.chainId=String(e.chainId)),(0,Ko.isSet)(e.accountNumber)&&(t.accountNumber=BigInt(e.accountNumber.toString())),(0,Ko.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),(0,Ko.isSet)(e.tip)&&(t.tip=li.Tip.fromJSON(e.tip)),t},toJSON(e){let t={};return e.bodyBytes!==void 0&&(t.bodyBytes=(0,Ko.base64FromBytes)(e.bodyBytes!==void 0?e.bodyBytes:new Uint8Array)),e.publicKey!==void 0&&(t.publicKey=e.publicKey?a0.Any.toJSON(e.publicKey):void 0),e.chainId!==void 0&&(t.chainId=e.chainId),e.accountNumber!==void 0&&(t.accountNumber=(e.accountNumber||BigInt(0)).toString()),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),e.tip!==void 0&&(t.tip=e.tip?li.Tip.toJSON(e.tip):void 0),t},fromPartial(e){let t=LEe();return t.bodyBytes=e.bodyBytes??new Uint8Array,e.publicKey!==void 0&&e.publicKey!==null&&(t.publicKey=a0.Any.fromPartial(e.publicKey)),t.chainId=e.chainId??"",e.accountNumber!==void 0&&e.accountNumber!==null&&(t.accountNumber=BigInt(e.accountNumber.toString())),e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),e.tip!==void 0&&e.tip!==null&&(t.tip=li.Tip.fromPartial(e.tip)),t}};function UEe(){return{messages:[],memo:"",timeoutHeight:BigInt(0),extensionOptions:[],nonCriticalExtensionOptions:[]}}li.TxBody={typeUrl:"/cosmos.tx.v1beta1.TxBody",encode(e,t=is.BinaryWriter.create()){for(let r of e.messages)a0.Any.encode(r,t.uint32(10).fork()).ldelim();e.memo!==""&&t.uint32(18).string(e.memo),e.timeoutHeight!==BigInt(0)&&t.uint32(24).uint64(e.timeoutHeight);for(let r of e.extensionOptions)a0.Any.encode(r,t.uint32(8186).fork()).ldelim();for(let r of e.nonCriticalExtensionOptions)a0.Any.encode(r,t.uint32(16378).fork()).ldelim();return t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=UEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.messages.push(a0.Any.decode(r,r.uint32()));break;case 2:n.memo=r.string();break;case 3:n.timeoutHeight=r.uint64();break;case 1023:n.extensionOptions.push(a0.Any.decode(r,r.uint32()));break;case 2047:n.nonCriticalExtensionOptions.push(a0.Any.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=UEe();return Array.isArray(e?.messages)&&(t.messages=e.messages.map(r=>a0.Any.fromJSON(r))),(0,Ko.isSet)(e.memo)&&(t.memo=String(e.memo)),(0,Ko.isSet)(e.timeoutHeight)&&(t.timeoutHeight=BigInt(e.timeoutHeight.toString())),Array.isArray(e?.extensionOptions)&&(t.extensionOptions=e.extensionOptions.map(r=>a0.Any.fromJSON(r))),Array.isArray(e?.nonCriticalExtensionOptions)&&(t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(r=>a0.Any.fromJSON(r))),t},toJSON(e){let t={};return e.messages?t.messages=e.messages.map(r=>r?a0.Any.toJSON(r):void 0):t.messages=[],e.memo!==void 0&&(t.memo=e.memo),e.timeoutHeight!==void 0&&(t.timeoutHeight=(e.timeoutHeight||BigInt(0)).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map(r=>r?a0.Any.toJSON(r):void 0):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(r=>r?a0.Any.toJSON(r):void 0):t.nonCriticalExtensionOptions=[],t},fromPartial(e){let t=UEe();return t.messages=e.messages?.map(r=>a0.Any.fromPartial(r))||[],t.memo=e.memo??"",e.timeoutHeight!==void 0&&e.timeoutHeight!==null&&(t.timeoutHeight=BigInt(e.timeoutHeight.toString())),t.extensionOptions=e.extensionOptions?.map(r=>a0.Any.fromPartial(r))||[],t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions?.map(r=>a0.Any.fromPartial(r))||[],t}};function FEe(){return{signerInfos:[],fee:void 0,tip:void 0}}li.AuthInfo={typeUrl:"/cosmos.tx.v1beta1.AuthInfo",encode(e,t=is.BinaryWriter.create()){for(let r of e.signerInfos)li.SignerInfo.encode(r,t.uint32(10).fork()).ldelim();return e.fee!==void 0&&li.Fee.encode(e.fee,t.uint32(18).fork()).ldelim(),e.tip!==void 0&&li.Tip.encode(e.tip,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=FEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.signerInfos.push(li.SignerInfo.decode(r,r.uint32()));break;case 2:n.fee=li.Fee.decode(r,r.uint32());break;case 3:n.tip=li.Tip.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=FEe();return Array.isArray(e?.signerInfos)&&(t.signerInfos=e.signerInfos.map(r=>li.SignerInfo.fromJSON(r))),(0,Ko.isSet)(e.fee)&&(t.fee=li.Fee.fromJSON(e.fee)),(0,Ko.isSet)(e.tip)&&(t.tip=li.Tip.fromJSON(e.tip)),t},toJSON(e){let t={};return e.signerInfos?t.signerInfos=e.signerInfos.map(r=>r?li.SignerInfo.toJSON(r):void 0):t.signerInfos=[],e.fee!==void 0&&(t.fee=e.fee?li.Fee.toJSON(e.fee):void 0),e.tip!==void 0&&(t.tip=e.tip?li.Tip.toJSON(e.tip):void 0),t},fromPartial(e){let t=FEe();return t.signerInfos=e.signerInfos?.map(r=>li.SignerInfo.fromPartial(r))||[],e.fee!==void 0&&e.fee!==null&&(t.fee=li.Fee.fromPartial(e.fee)),e.tip!==void 0&&e.tip!==null&&(t.tip=li.Tip.fromPartial(e.tip)),t}};function QEe(){return{publicKey:void 0,modeInfo:void 0,sequence:BigInt(0)}}li.SignerInfo={typeUrl:"/cosmos.tx.v1beta1.SignerInfo",encode(e,t=is.BinaryWriter.create()){return e.publicKey!==void 0&&a0.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),e.modeInfo!==void 0&&li.ModeInfo.encode(e.modeInfo,t.uint32(18).fork()).ldelim(),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=QEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.publicKey=a0.Any.decode(r,r.uint32());break;case 2:n.modeInfo=li.ModeInfo.decode(r,r.uint32());break;case 3:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=QEe();return(0,Ko.isSet)(e.publicKey)&&(t.publicKey=a0.Any.fromJSON(e.publicKey)),(0,Ko.isSet)(e.modeInfo)&&(t.modeInfo=li.ModeInfo.fromJSON(e.modeInfo)),(0,Ko.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.publicKey!==void 0&&(t.publicKey=e.publicKey?a0.Any.toJSON(e.publicKey):void 0),e.modeInfo!==void 0&&(t.modeInfo=e.modeInfo?li.ModeInfo.toJSON(e.modeInfo):void 0),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=QEe();return e.publicKey!==void 0&&e.publicKey!==null&&(t.publicKey=a0.Any.fromPartial(e.publicKey)),e.modeInfo!==void 0&&e.modeInfo!==null&&(t.modeInfo=li.ModeInfo.fromPartial(e.modeInfo)),e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function HEe(){return{single:void 0,multi:void 0}}li.ModeInfo={typeUrl:"/cosmos.tx.v1beta1.ModeInfo",encode(e,t=is.BinaryWriter.create()){return e.single!==void 0&&li.ModeInfo_Single.encode(e.single,t.uint32(10).fork()).ldelim(),e.multi!==void 0&&li.ModeInfo_Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=HEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.single=li.ModeInfo_Single.decode(r,r.uint32());break;case 2:n.multi=li.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=HEe();return(0,Ko.isSet)(e.single)&&(t.single=li.ModeInfo_Single.fromJSON(e.single)),(0,Ko.isSet)(e.multi)&&(t.multi=li.ModeInfo_Multi.fromJSON(e.multi)),t},toJSON(e){let t={};return e.single!==void 0&&(t.single=e.single?li.ModeInfo_Single.toJSON(e.single):void 0),e.multi!==void 0&&(t.multi=e.multi?li.ModeInfo_Multi.toJSON(e.multi):void 0),t},fromPartial(e){let t=HEe();return e.single!==void 0&&e.single!==null&&(t.single=li.ModeInfo_Single.fromPartial(e.single)),e.multi!==void 0&&e.multi!==null&&(t.multi=li.ModeInfo_Multi.fromPartial(e.multi)),t}};function GEe(){return{mode:0}}li.ModeInfo_Single={typeUrl:"/cosmos.tx.v1beta1.Single",encode(e,t=is.BinaryWriter.create()){return e.mode!==0&&t.uint32(8).int32(e.mode),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=GEe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.mode=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=GEe();return(0,Ko.isSet)(e.mode)&&(t.mode=(0,Aee.signModeFromJSON)(e.mode)),t},toJSON(e){let t={};return e.mode!==void 0&&(t.mode=(0,Aee.signModeToJSON)(e.mode)),t},fromPartial(e){let t=GEe();return t.mode=e.mode??0,t}};function qEe(){return{bitarray:void 0,modeInfos:[]}}li.ModeInfo_Multi={typeUrl:"/cosmos.tx.v1beta1.Multi",encode(e,t=is.BinaryWriter.create()){e.bitarray!==void 0&&DF.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim();for(let r of e.modeInfos)li.ModeInfo.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.bitarray=DF.CompactBitArray.decode(r,r.uint32());break;case 2:n.modeInfos.push(li.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qEe();return(0,Ko.isSet)(e.bitarray)&&(t.bitarray=DF.CompactBitArray.fromJSON(e.bitarray)),Array.isArray(e?.modeInfos)&&(t.modeInfos=e.modeInfos.map(r=>li.ModeInfo.fromJSON(r))),t},toJSON(e){let t={};return e.bitarray!==void 0&&(t.bitarray=e.bitarray?DF.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?t.modeInfos=e.modeInfos.map(r=>r?li.ModeInfo.toJSON(r):void 0):t.modeInfos=[],t},fromPartial(e){let t=qEe();return e.bitarray!==void 0&&e.bitarray!==null&&(t.bitarray=DF.CompactBitArray.fromPartial(e.bitarray)),t.modeInfos=e.modeInfos?.map(r=>li.ModeInfo.fromPartial(r))||[],t}};function VEe(){return{amount:[],gasLimit:BigInt(0),payer:"",granter:""}}li.Fee={typeUrl:"/cosmos.tx.v1beta1.Fee",encode(e,t=is.BinaryWriter.create()){for(let r of e.amount)SE.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.gasLimit!==BigInt(0)&&t.uint32(16).uint64(e.gasLimit),e.payer!==""&&t.uint32(26).string(e.payer),e.granter!==""&&t.uint32(34).string(e.granter),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=VEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.amount.push(SE.Coin.decode(r,r.uint32()));break;case 2:n.gasLimit=r.uint64();break;case 3:n.payer=r.string();break;case 4:n.granter=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=VEe();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>SE.Coin.fromJSON(r))),(0,Ko.isSet)(e.gasLimit)&&(t.gasLimit=BigInt(e.gasLimit.toString())),(0,Ko.isSet)(e.payer)&&(t.payer=String(e.payer)),(0,Ko.isSet)(e.granter)&&(t.granter=String(e.granter)),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(r=>r?SE.Coin.toJSON(r):void 0):t.amount=[],e.gasLimit!==void 0&&(t.gasLimit=(e.gasLimit||BigInt(0)).toString()),e.payer!==void 0&&(t.payer=e.payer),e.granter!==void 0&&(t.granter=e.granter),t},fromPartial(e){let t=VEe();return t.amount=e.amount?.map(r=>SE.Coin.fromPartial(r))||[],e.gasLimit!==void 0&&e.gasLimit!==null&&(t.gasLimit=BigInt(e.gasLimit.toString())),t.payer=e.payer??"",t.granter=e.granter??"",t}};function JEe(){return{amount:[],tipper:""}}li.Tip={typeUrl:"/cosmos.tx.v1beta1.Tip",encode(e,t=is.BinaryWriter.create()){for(let r of e.amount)SE.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.tipper!==""&&t.uint32(18).string(e.tipper),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=JEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.amount.push(SE.Coin.decode(r,r.uint32()));break;case 2:n.tipper=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=JEe();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>SE.Coin.fromJSON(r))),(0,Ko.isSet)(e.tipper)&&(t.tipper=String(e.tipper)),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(r=>r?SE.Coin.toJSON(r):void 0):t.amount=[],e.tipper!==void 0&&(t.tipper=e.tipper),t},fromPartial(e){let t=JEe();return t.amount=e.amount?.map(r=>SE.Coin.fromPartial(r))||[],t.tipper=e.tipper??"",t}};function zEe(){return{address:"",signDoc:void 0,mode:0,sig:new Uint8Array}}li.AuxSignerData={typeUrl:"/cosmos.tx.v1beta1.AuxSignerData",encode(e,t=is.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.signDoc!==void 0&&li.SignDocDirectAux.encode(e.signDoc,t.uint32(18).fork()).ldelim(),e.mode!==0&&t.uint32(24).int32(e.mode),e.sig.length!==0&&t.uint32(34).bytes(e.sig),t},decode(e,t){let r=e instanceof is.BinaryReader?e:new is.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zEe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.signDoc=li.SignDocDirectAux.decode(r,r.uint32());break;case 3:n.mode=r.int32();break;case 4:n.sig=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=zEe();return(0,Ko.isSet)(e.address)&&(t.address=String(e.address)),(0,Ko.isSet)(e.signDoc)&&(t.signDoc=li.SignDocDirectAux.fromJSON(e.signDoc)),(0,Ko.isSet)(e.mode)&&(t.mode=(0,Aee.signModeFromJSON)(e.mode)),(0,Ko.isSet)(e.sig)&&(t.sig=(0,Ko.bytesFromBase64)(e.sig)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.signDoc!==void 0&&(t.signDoc=e.signDoc?li.SignDocDirectAux.toJSON(e.signDoc):void 0),e.mode!==void 0&&(t.mode=(0,Aee.signModeToJSON)(e.mode)),e.sig!==void 0&&(t.sig=(0,Ko.base64FromBytes)(e.sig!==void 0?e.sig:new Uint8Array)),t},fromPartial(e){let t=zEe();return t.address=e.address??"",e.signDoc!==void 0&&e.signDoc!==null&&(t.signDoc=li.SignDocDirectAux.fromPartial(e.signDoc)),t.mode=e.mode??0,t.sig=e.sig??new Uint8Array,t}}});var l2t=ir(pee=>{"use strict";J();K();z();Object.defineProperty(pee,"__esModule",{value:!0});pee.decodeTxRaw=void 0;var KEe=RS();function AAn(e){let t=KEe.TxRaw.decode(e);return{authInfo:KEe.AuthInfo.decode(t.authInfoBytes),body:KEe.TxBody.decode(t.bodyBytes),signatures:t.signatures}}pee.decodeTxRaw=AAn});var _ee=ir(e8=>{"use strict";J();K();z();Object.defineProperty(e8,"__esModule",{value:!0});e8.makeSignBytes=e8.makeSignDoc=e8.makeAuthInfoBytes=void 0;var h2t=Uf(),pAn=U7(),gee=RS();function gAn(e,t){return e.map(({pubkey:r,sequence:i})=>({publicKey:r,modeInfo:{single:{mode:t}},sequence:BigInt(i)}))}function _An(e,t,r,i,n,o=pAn.SignMode.SIGN_MODE_DIRECT){(0,h2t.assert)(i===void 0||typeof i=="string","feeGranter must be undefined or string"),(0,h2t.assert)(n===void 0||typeof n=="string","feePayer must be undefined or string");let d=gee.AuthInfo.fromPartial({signerInfos:gAn(e,o),fee:{amount:[...t],gasLimit:BigInt(r),granter:i,payer:n}});return gee.AuthInfo.encode(d).finish()}e8.makeAuthInfoBytes=_An;function mAn(e,t,r,i){return{bodyBytes:e,authInfoBytes:t,chainId:r,accountNumber:BigInt(i)}}e8.makeSignDoc=mAn;function yAn({accountNumber:e,authInfoBytes:t,bodyBytes:r,chainId:i}){let n=gee.SignDoc.fromPartial({accountNumber:e,authInfoBytes:t,bodyBytes:r,chainId:i});return gee.SignDoc.encode(n).finish()}e8.makeSignBytes=yAn});var $Ee=ir(XA=>{"use strict";J();K();z();Object.defineProperty(XA,"__esModule",{value:!0});XA.decrypt=XA.encrypt=XA.supportedAlgorithms=XA.executeKdf=XA.cosmjsSalt=void 0;var t8=$l(),bAn=Ps();XA.cosmjsSalt=(0,bAn.toAscii)("The CosmJS salt.");async function EAn(e,t){switch(t.algorithm){case"argon2id":{let r=t.params;if(!(0,t8.isArgon2idOptions)(r))throw new Error("Invalid format of argon2id params");return t8.Argon2id.execute(e,XA.cosmjsSalt,r)}default:throw new Error("Unsupported KDF algorithm")}}XA.executeKdf=EAn;XA.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function vAn(e,t,r){if(r.algorithm===XA.supportedAlgorithms.xchacha20poly1305Ietf){let i=t8.Random.getBytes(t8.xchacha20NonceLength);return new Uint8Array([...i,...await t8.Xchacha20poly1305Ietf.encrypt(e,t,i)])}else throw new Error(`Unsupported encryption algorithm: '${r.algorithm}'`)}XA.encrypt=vAn;async function RAn(e,t,r){if(r.algorithm===XA.supportedAlgorithms.xchacha20poly1305Ietf){let i=e.slice(0,t8.xchacha20NonceLength);return t8.Xchacha20poly1305Ietf.decrypt(e.slice(t8.xchacha20NonceLength),t,i)}else throw new Error(`Unsupported encryption algorithm: '${r.algorithm}'`)}XA.decrypt=RAn});var p2t=ir(H7=>{"use strict";J();K();z();Object.defineProperty(H7,"__esModule",{value:!0});H7.DirectSecp256k1HdWallet=H7.extractKdfConfiguration=void 0;var YEe=R_(),A2=$l(),kF=Ps(),Q7=Uf(),SAn=_ee(),PF=$Ee(),mee="directsecp256k1hdwallet-v1",IAn={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function CAn(e){return!(!(0,Q7.isNonNullObject)(e)||typeof e.hdPath!="string"||typeof e.prefix!="string")}function wAn(e){return e.kdf}function OAn(e){let t=JSON.parse(e);if(!(0,Q7.isNonNullObject)(t))throw new Error("Root document is not an object.");if(t.type===mee)return wAn(t);throw new Error("Unsupported serialization type")}H7.extractKdfConfiguration=OAn;var A2t={bip39Password:"",hdPaths:[(0,YEe.makeCosmoshubPath)(0)],prefix:"cosmos"},WEe=class e{static async fromMnemonic(t,r={}){let i=new A2.EnglishMnemonic(t),n=await A2.Bip39.mnemonicToSeed(i,r.bip39Password);return new e(i,{...r,seed:n})}static async generate(t=12,r={}){let i=4*Math.floor(11*t/33),n=A2.Random.getBytes(i),o=A2.Bip39.encode(n);return e.fromMnemonic(o.toString(),r)}static async deserialize(t,r){let i=JSON.parse(t);if(!(0,Q7.isNonNullObject)(i))throw new Error("Root document is not an object.");if(i.type===mee)return e.deserializeTypeV1(t,r);throw new Error("Unsupported serialization type")}static async deserializeWithEncryptionKey(t,r){let i=JSON.parse(t);if(!(0,Q7.isNonNullObject)(i))throw new Error("Root document is not an object.");let n=i;switch(n.type){case mee:{let o=await(0,PF.decrypt)((0,kF.fromBase64)(n.data),r,n.encryption),d=JSON.parse((0,kF.fromUtf8)(o)),{mnemonic:g,accounts:y}=d;if((0,Q7.assert)(typeof g=="string"),!Array.isArray(y))throw new Error("Property 'accounts' is not an array");if(!y.every(N=>CAn(N)))throw new Error("Account is not in the correct format.");let _=y[0].prefix;if(!y.every(({prefix:N})=>N===_))throw new Error("Accounts do not all have the same prefix");let I=y.map(({hdPath:N})=>(0,A2.stringToPath)(N));return e.fromMnemonic(g,{hdPaths:I,prefix:_})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(t,r){let i=JSON.parse(t);if(!(0,Q7.isNonNullObject)(i))throw new Error("Root document is not an object.");let n=await(0,PF.executeKdf)(r,i.kdf);return e.deserializeWithEncryptionKey(t,n)}constructor(t,r){let i=r.prefix??A2t.prefix,n=r.hdPaths??A2t.hdPaths;this.secret=t,this.seed=r.seed,this.accounts=n.map(o=>({hdPath:o,prefix:i}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:r,pubkey:i,address:n})=>({algo:r,pubkey:i,address:n}))}async signDirect(t,r){let n=(await this.getAccountsWithPrivkeys()).find(({address:T})=>T===t);if(n===void 0)throw new Error(`Address ${t} not found in wallet`);let{privkey:o,pubkey:d}=n,g=(0,SAn.makeSignBytes)(r),y=(0,A2.sha256)(g),_=await A2.Secp256k1.createSignature(y,o),I=new Uint8Array([..._.r(32),..._.s(32)]),N=(0,YEe.encodeSecp256k1Signature)(d,I);return{signed:r,signature:N}}async serialize(t){let r=IAn,i=await(0,PF.executeKdf)(t,r);return this.serializeWithEncryptionKey(i,r)}async serializeWithEncryptionKey(t,r){let i={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:y,prefix:_})=>({hdPath:(0,A2.pathToString)(y),prefix:_}))},n=(0,kF.toUtf8)(JSON.stringify(i)),o={algorithm:PF.supportedAlgorithms.xchacha20poly1305Ietf},d=await(0,PF.encrypt)(n,t,o),g={type:mee,kdf:r,encryption:o,data:(0,kF.toBase64)(d)};return JSON.stringify(g)}async getKeyPair(t){let{privkey:r}=A2.Slip10.derivePath(A2.Slip10Curve.Secp256k1,this.seed,t),{pubkey:i}=await A2.Secp256k1.makeKeypair(r);return{privkey:r,pubkey:A2.Secp256k1.compressPubkey(i)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:t,prefix:r})=>{let{privkey:i,pubkey:n}=await this.getKeyPair(t),o=(0,kF.toBech32)(r,(0,YEe.rawSecp256k1PubkeyToRawAddress)(n));return{algo:"secp256k1",privkey:i,pubkey:n,address:o}}))}};H7.DirectSecp256k1HdWallet=WEe});var _2t=ir(bee=>{"use strict";J();K();z();Object.defineProperty(bee,"__esModule",{value:!0});bee.DirectSecp256k1Wallet=void 0;var g2t=R_(),yee=$l(),NAn=Ps(),xAn=_ee(),XEe=class e{static async fromKey(t,r="cosmos"){let i=(await yee.Secp256k1.makeKeypair(t)).pubkey;return new e(t,yee.Secp256k1.compressPubkey(i),r)}constructor(t,r,i){this.privkey=t,this.pubkey=r,this.prefix=i}get address(){return(0,NAn.toBech32)(this.prefix,(0,g2t.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(t,r){let i=(0,xAn.makeSignBytes)(r);if(t!==this.address)throw new Error(`Address ${t} not found in wallet`);let n=(0,yee.sha256)(i),o=await yee.Secp256k1.createSignature(n,this.privkey),d=new Uint8Array([...o.r(32),...o.s(32)]),g=(0,g2t.encodeSecp256k1Signature)(this.pubkey,d);return{signed:r,signature:g}}};bee.DirectSecp256k1Wallet=XEe});var m2t=ir(Eee=>{"use strict";J();K();z();Object.defineProperty(Eee,"__esModule",{value:!0});Eee.makeCosmoshubPath=void 0;var LF=$l();function TAn(e){return[LF.Slip10RawIndex.hardened(44),LF.Slip10RawIndex.hardened(118),LF.Slip10RawIndex.hardened(0),LF.Slip10RawIndex.normal(0),LF.Slip10RawIndex.normal(e)]}Eee.makeCosmoshubPath=TAn});var y2t=ir(r8=>{"use strict";J();K();z();Object.defineProperty(r8,"__esModule",{value:!0});r8.PrivKey=r8.PubKey=r8.protobufPackage=void 0;var G7=Qi(),q7=Hi();r8.protobufPackage="cosmos.crypto.ed25519";function ZEe(){return{key:new Uint8Array}}r8.PubKey={typeUrl:"/cosmos.crypto.ed25519.PubKey",encode(e,t=G7.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),t},decode(e,t){let r=e instanceof G7.BinaryReader?e:new G7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ZEe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.key=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=ZEe();return(0,q7.isSet)(e.key)&&(t.key=(0,q7.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,q7.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),t},fromPartial(e){let t=ZEe();return t.key=e.key??new Uint8Array,t}};function jEe(){return{key:new Uint8Array}}r8.PrivKey={typeUrl:"/cosmos.crypto.ed25519.PrivKey",encode(e,t=G7.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),t},decode(e,t){let r=e instanceof G7.BinaryReader?e:new G7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jEe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.key=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=jEe();return(0,q7.isSet)(e.key)&&(t.key=(0,q7.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,q7.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),t},fromPartial(e){let t=jEe();return t.key=e.key??new Uint8Array,t}}});var b2t=ir(V7=>{"use strict";J();K();z();Object.defineProperty(V7,"__esModule",{value:!0});V7.LegacyAminoPubKey=V7.protobufPackage=void 0;var UF=ru(),eve=Qi(),BAn=Hi();V7.protobufPackage="cosmos.crypto.multisig";function tve(){return{threshold:0,publicKeys:[]}}V7.LegacyAminoPubKey={typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",encode(e,t=eve.BinaryWriter.create()){e.threshold!==0&&t.uint32(8).uint32(e.threshold);for(let r of e.publicKeys)UF.Any.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof eve.BinaryReader?e:new eve.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.threshold=r.uint32();break;case 2:n.publicKeys.push(UF.Any.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=tve();return(0,BAn.isSet)(e.threshold)&&(t.threshold=Number(e.threshold)),Array.isArray(e?.publicKeys)&&(t.publicKeys=e.publicKeys.map(r=>UF.Any.fromJSON(r))),t},toJSON(e){let t={};return e.threshold!==void 0&&(t.threshold=Math.round(e.threshold)),e.publicKeys?t.publicKeys=e.publicKeys.map(r=>r?UF.Any.toJSON(r):void 0):t.publicKeys=[],t},fromPartial(e){let t=tve();return t.threshold=e.threshold??0,t.publicKeys=e.publicKeys?.map(r=>UF.Any.fromPartial(r))||[],t}}});var E2t=ir(n8=>{"use strict";J();K();z();Object.defineProperty(n8,"__esModule",{value:!0});n8.PrivKey=n8.PubKey=n8.protobufPackage=void 0;var J7=Qi(),z7=Hi();n8.protobufPackage="cosmos.crypto.secp256k1";function rve(){return{key:new Uint8Array}}n8.PubKey={typeUrl:"/cosmos.crypto.secp256k1.PubKey",encode(e,t=J7.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),t},decode(e,t){let r=e instanceof J7.BinaryReader?e:new J7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.key=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=rve();return(0,z7.isSet)(e.key)&&(t.key=(0,z7.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,z7.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),t},fromPartial(e){let t=rve();return t.key=e.key??new Uint8Array,t}};function nve(){return{key:new Uint8Array}}n8.PrivKey={typeUrl:"/cosmos.crypto.secp256k1.PrivKey",encode(e,t=J7.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),t},decode(e,t){let r=e instanceof J7.BinaryReader?e:new J7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=nve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.key=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=nve();return(0,z7.isSet)(e.key)&&(t.key=(0,z7.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,z7.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),t},fromPartial(e){let t=nve();return t.key=e.key??new Uint8Array,t}}});var I2t=ir(IE=>{"use strict";J();K();z();Object.defineProperty(IE,"__esModule",{value:!0});IE.decodeOptionalPubkey=IE.decodePubkey=IE.anyToSinglePubkey=IE.encodePubkey=void 0;var FF=R_(),v2t=Ps(),MAn=Uh(),ove=y2t(),ave=b2t(),sve=E2t(),ive=ru();function R2t(e){if((0,FF.isSecp256k1Pubkey)(e)){let t=sve.PubKey.fromPartial({key:(0,v2t.fromBase64)(e.value)});return ive.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(sve.PubKey.encode(t).finish())})}else if((0,FF.isEd25519Pubkey)(e)){let t=ove.PubKey.fromPartial({key:(0,v2t.fromBase64)(e.value)});return ive.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(ove.PubKey.encode(t).finish())})}else if((0,FF.isMultisigThresholdPubkey)(e)){let t=ave.LegacyAminoPubKey.fromPartial({threshold:MAn.Uint53.fromString(e.value.threshold).toNumber(),publicKeys:e.value.pubkeys.map(R2t)});return ive.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(ave.LegacyAminoPubKey.encode(t).finish())})}else throw new Error(`Pubkey type ${e.type} not recognized`)}IE.encodePubkey=R2t;function cve(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{let{key:t}=sve.PubKey.decode(e.value);return(0,FF.encodeSecp256k1Pubkey)(t)}case"/cosmos.crypto.ed25519.PubKey":{let{key:t}=ove.PubKey.decode(e.value);return(0,FF.encodeEd25519Pubkey)(t)}default:throw new Error(`Pubkey type_url ${e.typeUrl} not recognized as single public key type`)}}IE.anyToSinglePubkey=cve;function S2t(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return cve(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{let{threshold:t,publicKeys:r}=ave.LegacyAminoPubKey.decode(e.value);return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:t.toString(),pubkeys:r.map(cve)}}}default:throw new Error(`Pubkey type URL '${e.typeUrl}' not recognized`)}}IE.decodePubkey=S2t;function DAn(e){if(!e)return null;if(e.typeUrl){if(e.value.length)return S2t(e);throw new Error(`Pubkey is an Any with type URL '${e.typeUrl}' but an empty value`)}else{if(e.value.length)throw new Error("Pubkey is an Any with an empty type URL but a value set");return null}}IE.decodeOptionalPubkey=DAn});var gve=ir(_u=>{"use strict";J();K();z();Object.defineProperty(_u,"__esModule",{value:!0});_u.Metadata=_u.DenomUnit=_u.Supply=_u.Output=_u.Input=_u.SendEnabled=_u.Params=_u.protobufPackage=void 0;var ZA=Af(),Fd=Qi(),a1=Hi();_u.protobufPackage="cosmos.bank.v1beta1";function uve(){return{sendEnabled:[],defaultSendEnabled:!1}}_u.Params={typeUrl:"/cosmos.bank.v1beta1.Params",encode(e,t=Fd.BinaryWriter.create()){for(let r of e.sendEnabled)_u.SendEnabled.encode(r,t.uint32(10).fork()).ldelim();return e.defaultSendEnabled===!0&&t.uint32(16).bool(e.defaultSendEnabled),t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.sendEnabled.push(_u.SendEnabled.decode(r,r.uint32()));break;case 2:n.defaultSendEnabled=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=uve();return Array.isArray(e?.sendEnabled)&&(t.sendEnabled=e.sendEnabled.map(r=>_u.SendEnabled.fromJSON(r))),(0,a1.isSet)(e.defaultSendEnabled)&&(t.defaultSendEnabled=!!e.defaultSendEnabled),t},toJSON(e){let t={};return e.sendEnabled?t.sendEnabled=e.sendEnabled.map(r=>r?_u.SendEnabled.toJSON(r):void 0):t.sendEnabled=[],e.defaultSendEnabled!==void 0&&(t.defaultSendEnabled=e.defaultSendEnabled),t},fromPartial(e){let t=uve();return t.sendEnabled=e.sendEnabled?.map(r=>_u.SendEnabled.fromPartial(r))||[],t.defaultSendEnabled=e.defaultSendEnabled??!1,t}};function dve(){return{denom:"",enabled:!1}}_u.SendEnabled={typeUrl:"/cosmos.bank.v1beta1.SendEnabled",encode(e,t=Fd.BinaryWriter.create()){return e.denom!==""&&t.uint32(10).string(e.denom),e.enabled===!0&&t.uint32(16).bool(e.enabled),t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denom=r.string();break;case 2:n.enabled=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=dve();return(0,a1.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,a1.isSet)(e.enabled)&&(t.enabled=!!e.enabled),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.enabled!==void 0&&(t.enabled=e.enabled),t},fromPartial(e){let t=dve();return t.denom=e.denom??"",t.enabled=e.enabled??!1,t}};function fve(){return{address:"",coins:[]}}_u.Input={typeUrl:"/cosmos.bank.v1beta1.Input",encode(e,t=Fd.BinaryWriter.create()){e.address!==""&&t.uint32(10).string(e.address);for(let r of e.coins)ZA.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.coins.push(ZA.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=fve();return(0,a1.isSet)(e.address)&&(t.address=String(e.address)),Array.isArray(e?.coins)&&(t.coins=e.coins.map(r=>ZA.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.coins?t.coins=e.coins.map(r=>r?ZA.Coin.toJSON(r):void 0):t.coins=[],t},fromPartial(e){let t=fve();return t.address=e.address??"",t.coins=e.coins?.map(r=>ZA.Coin.fromPartial(r))||[],t}};function lve(){return{address:"",coins:[]}}_u.Output={typeUrl:"/cosmos.bank.v1beta1.Output",encode(e,t=Fd.BinaryWriter.create()){e.address!==""&&t.uint32(10).string(e.address);for(let r of e.coins)ZA.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=lve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.coins.push(ZA.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=lve();return(0,a1.isSet)(e.address)&&(t.address=String(e.address)),Array.isArray(e?.coins)&&(t.coins=e.coins.map(r=>ZA.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.coins?t.coins=e.coins.map(r=>r?ZA.Coin.toJSON(r):void 0):t.coins=[],t},fromPartial(e){let t=lve();return t.address=e.address??"",t.coins=e.coins?.map(r=>ZA.Coin.fromPartial(r))||[],t}};function hve(){return{total:[]}}_u.Supply={typeUrl:"/cosmos.bank.v1beta1.Supply",encode(e,t=Fd.BinaryWriter.create()){for(let r of e.total)ZA.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.total.push(ZA.Coin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=hve();return Array.isArray(e?.total)&&(t.total=e.total.map(r=>ZA.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.total?t.total=e.total.map(r=>r?ZA.Coin.toJSON(r):void 0):t.total=[],t},fromPartial(e){let t=hve();return t.total=e.total?.map(r=>ZA.Coin.fromPartial(r))||[],t}};function Ave(){return{denom:"",exponent:0,aliases:[]}}_u.DenomUnit={typeUrl:"/cosmos.bank.v1beta1.DenomUnit",encode(e,t=Fd.BinaryWriter.create()){e.denom!==""&&t.uint32(10).string(e.denom),e.exponent!==0&&t.uint32(16).uint32(e.exponent);for(let r of e.aliases)t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Ave();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denom=r.string();break;case 2:n.exponent=r.uint32();break;case 3:n.aliases.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Ave();return(0,a1.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,a1.isSet)(e.exponent)&&(t.exponent=Number(e.exponent)),Array.isArray(e?.aliases)&&(t.aliases=e.aliases.map(r=>String(r))),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.exponent!==void 0&&(t.exponent=Math.round(e.exponent)),e.aliases?t.aliases=e.aliases.map(r=>r):t.aliases=[],t},fromPartial(e){let t=Ave();return t.denom=e.denom??"",t.exponent=e.exponent??0,t.aliases=e.aliases?.map(r=>r)||[],t}};function pve(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:"",uri:"",uriHash:""}}_u.Metadata={typeUrl:"/cosmos.bank.v1beta1.Metadata",encode(e,t=Fd.BinaryWriter.create()){e.description!==""&&t.uint32(10).string(e.description);for(let r of e.denomUnits)_u.DenomUnit.encode(r,t.uint32(18).fork()).ldelim();return e.base!==""&&t.uint32(26).string(e.base),e.display!==""&&t.uint32(34).string(e.display),e.name!==""&&t.uint32(42).string(e.name),e.symbol!==""&&t.uint32(50).string(e.symbol),e.uri!==""&&t.uint32(58).string(e.uri),e.uriHash!==""&&t.uint32(66).string(e.uriHash),t},decode(e,t){let r=e instanceof Fd.BinaryReader?e:new Fd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.description=r.string();break;case 2:n.denomUnits.push(_u.DenomUnit.decode(r,r.uint32()));break;case 3:n.base=r.string();break;case 4:n.display=r.string();break;case 5:n.name=r.string();break;case 6:n.symbol=r.string();break;case 7:n.uri=r.string();break;case 8:n.uriHash=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=pve();return(0,a1.isSet)(e.description)&&(t.description=String(e.description)),Array.isArray(e?.denomUnits)&&(t.denomUnits=e.denomUnits.map(r=>_u.DenomUnit.fromJSON(r))),(0,a1.isSet)(e.base)&&(t.base=String(e.base)),(0,a1.isSet)(e.display)&&(t.display=String(e.display)),(0,a1.isSet)(e.name)&&(t.name=String(e.name)),(0,a1.isSet)(e.symbol)&&(t.symbol=String(e.symbol)),(0,a1.isSet)(e.uri)&&(t.uri=String(e.uri)),(0,a1.isSet)(e.uriHash)&&(t.uriHash=String(e.uriHash)),t},toJSON(e){let t={};return e.description!==void 0&&(t.description=e.description),e.denomUnits?t.denomUnits=e.denomUnits.map(r=>r?_u.DenomUnit.toJSON(r):void 0):t.denomUnits=[],e.base!==void 0&&(t.base=e.base),e.display!==void 0&&(t.display=e.display),e.name!==void 0&&(t.name=e.name),e.symbol!==void 0&&(t.symbol=e.symbol),e.uri!==void 0&&(t.uri=e.uri),e.uriHash!==void 0&&(t.uriHash=e.uriHash),t},fromPartial(e){let t=pve();return t.description=e.description??"",t.denomUnits=e.denomUnits?.map(r=>_u.DenomUnit.fromPartial(r))||[],t.base=e.base??"",t.display=e.display??"",t.name=e.name??"",t.symbol=e.symbol??"",t.uri=e.uri??"",t.uriHash=e.uriHash??"",t}}});var Cve=ir(Mc=>{"use strict";J();K();z();Object.defineProperty(Mc,"__esModule",{value:!0});Mc.MsgClientImpl=Mc.MsgSetSendEnabledResponse=Mc.MsgSetSendEnabled=Mc.MsgUpdateParamsResponse=Mc.MsgUpdateParams=Mc.MsgMultiSendResponse=Mc.MsgMultiSend=Mc.MsgSendResponse=Mc.MsgSend=Mc.protobufPackage=void 0;var QF=Af(),Qd=gve(),mu=Qi(),HF=Hi();Mc.protobufPackage="cosmos.bank.v1beta1";function _ve(){return{fromAddress:"",toAddress:"",amount:[]}}Mc.MsgSend={typeUrl:"/cosmos.bank.v1beta1.MsgSend",encode(e,t=mu.BinaryWriter.create()){e.fromAddress!==""&&t.uint32(10).string(e.fromAddress),e.toAddress!==""&&t.uint32(18).string(e.toAddress);for(let r of e.amount)QF.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_ve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.fromAddress=r.string();break;case 2:n.toAddress=r.string();break;case 3:n.amount.push(QF.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_ve();return(0,HF.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,HF.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>QF.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.fromAddress!==void 0&&(t.fromAddress=e.fromAddress),e.toAddress!==void 0&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(r=>r?QF.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=_ve();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",t.amount=e.amount?.map(r=>QF.Coin.fromPartial(r))||[],t}};function mve(){return{}}Mc.MsgSendResponse={typeUrl:"/cosmos.bank.v1beta1.MsgSendResponse",encode(e,t=mu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return mve()},toJSON(e){return{}},fromPartial(e){return mve()}};function yve(){return{inputs:[],outputs:[]}}Mc.MsgMultiSend={typeUrl:"/cosmos.bank.v1beta1.MsgMultiSend",encode(e,t=mu.BinaryWriter.create()){for(let r of e.inputs)Qd.Input.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.outputs)Qd.Output.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=yve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.inputs.push(Qd.Input.decode(r,r.uint32()));break;case 2:n.outputs.push(Qd.Output.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=yve();return Array.isArray(e?.inputs)&&(t.inputs=e.inputs.map(r=>Qd.Input.fromJSON(r))),Array.isArray(e?.outputs)&&(t.outputs=e.outputs.map(r=>Qd.Output.fromJSON(r))),t},toJSON(e){let t={};return e.inputs?t.inputs=e.inputs.map(r=>r?Qd.Input.toJSON(r):void 0):t.inputs=[],e.outputs?t.outputs=e.outputs.map(r=>r?Qd.Output.toJSON(r):void 0):t.outputs=[],t},fromPartial(e){let t=yve();return t.inputs=e.inputs?.map(r=>Qd.Input.fromPartial(r))||[],t.outputs=e.outputs?.map(r=>Qd.Output.fromPartial(r))||[],t}};function bve(){return{}}Mc.MsgMultiSendResponse={typeUrl:"/cosmos.bank.v1beta1.MsgMultiSendResponse",encode(e,t=mu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return bve()},toJSON(e){return{}},fromPartial(e){return bve()}};function Eve(){return{authority:"",params:Qd.Params.fromPartial({})}}Mc.MsgUpdateParams={typeUrl:"/cosmos.bank.v1beta1.MsgUpdateParams",encode(e,t=mu.BinaryWriter.create()){return e.authority!==""&&t.uint32(10).string(e.authority),e.params!==void 0&&Qd.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Eve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authority=r.string();break;case 2:n.params=Qd.Params.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Eve();return(0,HF.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,HF.isSet)(e.params)&&(t.params=Qd.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.authority!==void 0&&(t.authority=e.authority),e.params!==void 0&&(t.params=e.params?Qd.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=Eve();return t.authority=e.authority??"",e.params!==void 0&&e.params!==null&&(t.params=Qd.Params.fromPartial(e.params)),t}};function vve(){return{}}Mc.MsgUpdateParamsResponse={typeUrl:"/cosmos.bank.v1beta1.MsgUpdateParamsResponse",encode(e,t=mu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return vve()},toJSON(e){return{}},fromPartial(e){return vve()}};function Rve(){return{authority:"",sendEnabled:[],useDefaultFor:[]}}Mc.MsgSetSendEnabled={typeUrl:"/cosmos.bank.v1beta1.MsgSetSendEnabled",encode(e,t=mu.BinaryWriter.create()){e.authority!==""&&t.uint32(10).string(e.authority);for(let r of e.sendEnabled)Qd.SendEnabled.encode(r,t.uint32(18).fork()).ldelim();for(let r of e.useDefaultFor)t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Rve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authority=r.string();break;case 2:n.sendEnabled.push(Qd.SendEnabled.decode(r,r.uint32()));break;case 3:n.useDefaultFor.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Rve();return(0,HF.isSet)(e.authority)&&(t.authority=String(e.authority)),Array.isArray(e?.sendEnabled)&&(t.sendEnabled=e.sendEnabled.map(r=>Qd.SendEnabled.fromJSON(r))),Array.isArray(e?.useDefaultFor)&&(t.useDefaultFor=e.useDefaultFor.map(r=>String(r))),t},toJSON(e){let t={};return e.authority!==void 0&&(t.authority=e.authority),e.sendEnabled?t.sendEnabled=e.sendEnabled.map(r=>r?Qd.SendEnabled.toJSON(r):void 0):t.sendEnabled=[],e.useDefaultFor?t.useDefaultFor=e.useDefaultFor.map(r=>r):t.useDefaultFor=[],t},fromPartial(e){let t=Rve();return t.authority=e.authority??"",t.sendEnabled=e.sendEnabled?.map(r=>Qd.SendEnabled.fromPartial(r))||[],t.useDefaultFor=e.useDefaultFor?.map(r=>r)||[],t}};function Sve(){return{}}Mc.MsgSetSendEnabledResponse={typeUrl:"/cosmos.bank.v1beta1.MsgSetSendEnabledResponse",encode(e,t=mu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof mu.BinaryReader?e:new mu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Sve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Sve()},toJSON(e){return{}},fromPartial(e){return Sve()}};var Ive=class{constructor(t){this.rpc=t,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.SetSendEnabled=this.SetSendEnabled.bind(this)}Send(t){let r=Mc.MsgSend.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",r).then(n=>Mc.MsgSendResponse.decode(new mu.BinaryReader(n)))}MultiSend(t){let r=Mc.MsgMultiSend.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",r).then(n=>Mc.MsgMultiSendResponse.decode(new mu.BinaryReader(n)))}UpdateParams(t){let r=Mc.MsgUpdateParams.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","UpdateParams",r).then(n=>Mc.MsgUpdateParamsResponse.decode(new mu.BinaryReader(n)))}SetSendEnabled(t){let r=Mc.MsgSetSendEnabled.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","SetSendEnabled",r).then(n=>Mc.MsgSetSendEnabledResponse.decode(new mu.BinaryReader(n)))}};Mc.MsgClientImpl=Ive});var N2t=ir(p2=>{"use strict";J();K();z();Object.defineProperty(p2,"__esModule",{value:!0});p2.Registry=p2.isTxBodyEncodeObject=p2.isPbjsGeneratedType=p2.isTsProtoGeneratedType=p2.isTelescopeGeneratedType=void 0;var kAn=Cve(),PAn=Af(),wve=RS(),LAn=ru();function w2t(e){let t=e;return typeof t.fromPartial=="function"&&typeof t.typeUrl=="string"}p2.isTelescopeGeneratedType=w2t;function Nve(e){return typeof e.fromPartial=="function"}p2.isTsProtoGeneratedType=Nve;function UAn(e){return!Nve(e)}p2.isPbjsGeneratedType=UAn;var C2t={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};function O2t(e){return e.typeUrl==="/cosmos.tx.v1beta1.TxBody"}p2.isTxBodyEncodeObject=O2t;var Ove=class{constructor(t){let{cosmosCoin:r,cosmosMsgSend:i}=C2t;this.types=t?new Map([...t]):new Map([[r,PAn.Coin],[i,kAn.MsgSend]])}register(t,r){this.types.set(t,r)}lookupType(t){return this.types.get(t)}lookupTypeWithError(t){let r=this.lookupType(t);if(!r)throw new Error(`Unregistered type url: ${t}`);return r}encode(t){let{value:r,typeUrl:i}=t;if(O2t(t))return this.encodeTxBody(r);let n=this.lookupTypeWithError(i),o=w2t(n)||Nve(n)?n.fromPartial(r):n.create(r);return n.encode(o).finish()}encodeAsAny(t){let r=this.encode(t);return LAn.Any.fromPartial({typeUrl:t.typeUrl,value:r})}encodeTxBody(t){let r=t.messages.map(n=>this.encodeAsAny(n)),i=wve.TxBody.fromPartial({...t,timeoutHeight:BigInt(t.timeoutHeight?.toString()??"0"),messages:r});return wve.TxBody.encode(i).finish()}decode({typeUrl:t,value:r}){if(t===C2t.cosmosTxBody)return this.decodeTxBody(r);let n=this.lookupTypeWithError(t).decode(r);return Object.entries(n).forEach(([o,d])=>{typeof fe<"u"&&typeof fe.isBuffer<"u"&&fe.isBuffer(d)&&(n[o]=Uint8Array.from(d))}),n}decodeTxBody(t){let r=wve.TxBody.decode(t);return{...r,messages:r.messages.map(({typeUrl:i,value:n})=>{if(!i)throw new Error("Missing type_url in Any");if(!n)throw new Error("Missing value in Any");return this.decode({typeUrl:i,value:n})})}}};p2.Registry=Ove});var x2t=ir(vee=>{"use strict";J();K();z();Object.defineProperty(vee,"__esModule",{value:!0});vee.isOfflineDirectSigner=void 0;function FAn(e){return e.signDirect!==void 0}vee.isOfflineDirectSigner=FAn});var SS=ir(ga=>{"use strict";J();K();z();Object.defineProperty(ga,"__esModule",{value:!0});ga.parseCoins=ga.coins=ga.coin=ga.executeKdf=ga.makeSignDoc=ga.makeSignBytes=ga.makeAuthInfoBytes=ga.isOfflineDirectSigner=ga.Registry=ga.isTxBodyEncodeObject=ga.isTsProtoGeneratedType=ga.isPbjsGeneratedType=ga.encodePubkey=ga.decodePubkey=ga.decodeOptionalPubkey=ga.anyToSinglePubkey=ga.makeCosmoshubPath=ga.DirectSecp256k1Wallet=ga.extractKdfConfiguration=ga.DirectSecp256k1HdWallet=ga.decodeTxRaw=void 0;var QAn=l2t();Object.defineProperty(ga,"decodeTxRaw",{enumerable:!0,get:function(){return QAn.decodeTxRaw}});var T2t=p2t();Object.defineProperty(ga,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return T2t.DirectSecp256k1HdWallet}});Object.defineProperty(ga,"extractKdfConfiguration",{enumerable:!0,get:function(){return T2t.extractKdfConfiguration}});var HAn=_2t();Object.defineProperty(ga,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return HAn.DirectSecp256k1Wallet}});var GAn=m2t();Object.defineProperty(ga,"makeCosmoshubPath",{enumerable:!0,get:function(){return GAn.makeCosmoshubPath}});var Ree=I2t();Object.defineProperty(ga,"anyToSinglePubkey",{enumerable:!0,get:function(){return Ree.anyToSinglePubkey}});Object.defineProperty(ga,"decodeOptionalPubkey",{enumerable:!0,get:function(){return Ree.decodeOptionalPubkey}});Object.defineProperty(ga,"decodePubkey",{enumerable:!0,get:function(){return Ree.decodePubkey}});Object.defineProperty(ga,"encodePubkey",{enumerable:!0,get:function(){return Ree.encodePubkey}});var See=N2t();Object.defineProperty(ga,"isPbjsGeneratedType",{enumerable:!0,get:function(){return See.isPbjsGeneratedType}});Object.defineProperty(ga,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return See.isTsProtoGeneratedType}});Object.defineProperty(ga,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return See.isTxBodyEncodeObject}});Object.defineProperty(ga,"Registry",{enumerable:!0,get:function(){return See.Registry}});var qAn=x2t();Object.defineProperty(ga,"isOfflineDirectSigner",{enumerable:!0,get:function(){return qAn.isOfflineDirectSigner}});var xve=_ee();Object.defineProperty(ga,"makeAuthInfoBytes",{enumerable:!0,get:function(){return xve.makeAuthInfoBytes}});Object.defineProperty(ga,"makeSignBytes",{enumerable:!0,get:function(){return xve.makeSignBytes}});Object.defineProperty(ga,"makeSignDoc",{enumerable:!0,get:function(){return xve.makeSignDoc}});var VAn=$Ee();Object.defineProperty(ga,"executeKdf",{enumerable:!0,get:function(){return VAn.executeKdf}});var Tve=R_();Object.defineProperty(ga,"coin",{enumerable:!0,get:function(){return Tve.coin}});Object.defineProperty(ga,"coins",{enumerable:!0,get:function(){return Tve.coins}});Object.defineProperty(ga,"parseCoins",{enumerable:!0,get:function(){return Tve.parseCoins}})});var Iee=ir(fh=>{"use strict";J();K();z();Object.defineProperty(fh,"__esModule",{value:!0});fh.Params=fh.ModuleCredential=fh.ModuleAccount=fh.BaseAccount=fh.protobufPackage=void 0;var GF=ru(),g2=Qi(),s1=Hi();fh.protobufPackage="cosmos.auth.v1beta1";function Bve(){return{address:"",pubKey:void 0,accountNumber:BigInt(0),sequence:BigInt(0)}}fh.BaseAccount={typeUrl:"/cosmos.auth.v1beta1.BaseAccount",encode(e,t=g2.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.pubKey!==void 0&&GF.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber!==BigInt(0)&&t.uint32(24).uint64(e.accountNumber),e.sequence!==BigInt(0)&&t.uint32(32).uint64(e.sequence),t},decode(e,t){let r=e instanceof g2.BinaryReader?e:new g2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Bve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.pubKey=GF.Any.decode(r,r.uint32());break;case 3:n.accountNumber=r.uint64();break;case 4:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Bve();return(0,s1.isSet)(e.address)&&(t.address=String(e.address)),(0,s1.isSet)(e.pubKey)&&(t.pubKey=GF.Any.fromJSON(e.pubKey)),(0,s1.isSet)(e.accountNumber)&&(t.accountNumber=BigInt(e.accountNumber.toString())),(0,s1.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.pubKey!==void 0&&(t.pubKey=e.pubKey?GF.Any.toJSON(e.pubKey):void 0),e.accountNumber!==void 0&&(t.accountNumber=(e.accountNumber||BigInt(0)).toString()),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=Bve();return t.address=e.address??"",e.pubKey!==void 0&&e.pubKey!==null&&(t.pubKey=GF.Any.fromPartial(e.pubKey)),e.accountNumber!==void 0&&e.accountNumber!==null&&(t.accountNumber=BigInt(e.accountNumber.toString())),e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function Mve(){return{baseAccount:void 0,name:"",permissions:[]}}fh.ModuleAccount={typeUrl:"/cosmos.auth.v1beta1.ModuleAccount",encode(e,t=g2.BinaryWriter.create()){e.baseAccount!==void 0&&fh.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim(),e.name!==""&&t.uint32(18).string(e.name);for(let r of e.permissions)t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof g2.BinaryReader?e:new g2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Mve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.baseAccount=fh.BaseAccount.decode(r,r.uint32());break;case 2:n.name=r.string();break;case 3:n.permissions.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Mve();return(0,s1.isSet)(e.baseAccount)&&(t.baseAccount=fh.BaseAccount.fromJSON(e.baseAccount)),(0,s1.isSet)(e.name)&&(t.name=String(e.name)),Array.isArray(e?.permissions)&&(t.permissions=e.permissions.map(r=>String(r))),t},toJSON(e){let t={};return e.baseAccount!==void 0&&(t.baseAccount=e.baseAccount?fh.BaseAccount.toJSON(e.baseAccount):void 0),e.name!==void 0&&(t.name=e.name),e.permissions?t.permissions=e.permissions.map(r=>r):t.permissions=[],t},fromPartial(e){let t=Mve();return e.baseAccount!==void 0&&e.baseAccount!==null&&(t.baseAccount=fh.BaseAccount.fromPartial(e.baseAccount)),t.name=e.name??"",t.permissions=e.permissions?.map(r=>r)||[],t}};function Dve(){return{moduleName:"",derivationKeys:[]}}fh.ModuleCredential={typeUrl:"/cosmos.auth.v1beta1.ModuleCredential",encode(e,t=g2.BinaryWriter.create()){e.moduleName!==""&&t.uint32(10).string(e.moduleName);for(let r of e.derivationKeys)t.uint32(18).bytes(r);return t},decode(e,t){let r=e instanceof g2.BinaryReader?e:new g2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Dve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.moduleName=r.string();break;case 2:n.derivationKeys.push(r.bytes());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Dve();return(0,s1.isSet)(e.moduleName)&&(t.moduleName=String(e.moduleName)),Array.isArray(e?.derivationKeys)&&(t.derivationKeys=e.derivationKeys.map(r=>(0,s1.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.moduleName!==void 0&&(t.moduleName=e.moduleName),e.derivationKeys?t.derivationKeys=e.derivationKeys.map(r=>(0,s1.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.derivationKeys=[],t},fromPartial(e){let t=Dve();return t.moduleName=e.moduleName??"",t.derivationKeys=e.derivationKeys?.map(r=>r)||[],t}};function kve(){return{maxMemoCharacters:BigInt(0),txSigLimit:BigInt(0),txSizeCostPerByte:BigInt(0),sigVerifyCostEd25519:BigInt(0),sigVerifyCostSecp256k1:BigInt(0)}}fh.Params={typeUrl:"/cosmos.auth.v1beta1.Params",encode(e,t=g2.BinaryWriter.create()){return e.maxMemoCharacters!==BigInt(0)&&t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit!==BigInt(0)&&t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte!==BigInt(0)&&t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519!==BigInt(0)&&t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1!==BigInt(0)&&t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode(e,t){let r=e instanceof g2.BinaryReader?e:new g2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.maxMemoCharacters=r.uint64();break;case 2:n.txSigLimit=r.uint64();break;case 3:n.txSizeCostPerByte=r.uint64();break;case 4:n.sigVerifyCostEd25519=r.uint64();break;case 5:n.sigVerifyCostSecp256k1=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kve();return(0,s1.isSet)(e.maxMemoCharacters)&&(t.maxMemoCharacters=BigInt(e.maxMemoCharacters.toString())),(0,s1.isSet)(e.txSigLimit)&&(t.txSigLimit=BigInt(e.txSigLimit.toString())),(0,s1.isSet)(e.txSizeCostPerByte)&&(t.txSizeCostPerByte=BigInt(e.txSizeCostPerByte.toString())),(0,s1.isSet)(e.sigVerifyCostEd25519)&&(t.sigVerifyCostEd25519=BigInt(e.sigVerifyCostEd25519.toString())),(0,s1.isSet)(e.sigVerifyCostSecp256k1)&&(t.sigVerifyCostSecp256k1=BigInt(e.sigVerifyCostSecp256k1.toString())),t},toJSON(e){let t={};return e.maxMemoCharacters!==void 0&&(t.maxMemoCharacters=(e.maxMemoCharacters||BigInt(0)).toString()),e.txSigLimit!==void 0&&(t.txSigLimit=(e.txSigLimit||BigInt(0)).toString()),e.txSizeCostPerByte!==void 0&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||BigInt(0)).toString()),e.sigVerifyCostEd25519!==void 0&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||BigInt(0)).toString()),e.sigVerifyCostSecp256k1!==void 0&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||BigInt(0)).toString()),t},fromPartial(e){let t=kve();return e.maxMemoCharacters!==void 0&&e.maxMemoCharacters!==null&&(t.maxMemoCharacters=BigInt(e.maxMemoCharacters.toString())),e.txSigLimit!==void 0&&e.txSigLimit!==null&&(t.txSigLimit=BigInt(e.txSigLimit.toString())),e.txSizeCostPerByte!==void 0&&e.txSizeCostPerByte!==null&&(t.txSizeCostPerByte=BigInt(e.txSizeCostPerByte.toString())),e.sigVerifyCostEd25519!==void 0&&e.sigVerifyCostEd25519!==null&&(t.sigVerifyCostEd25519=BigInt(e.sigVerifyCostEd25519.toString())),e.sigVerifyCostSecp256k1!==void 0&&e.sigVerifyCostSecp256k1!==null&&(t.sigVerifyCostSecp256k1=BigInt(e.sigVerifyCostSecp256k1.toString())),t}}});var Gve=ir(qa=>{"use strict";J();K();z();Object.defineProperty(qa,"__esModule",{value:!0});qa.PermanentLockedAccount=qa.PeriodicVestingAccount=qa.Period=qa.DelayedVestingAccount=qa.ContinuousVestingAccount=qa.BaseVestingAccount=qa.protobufPackage=void 0;var qF=Iee(),pf=Af(),Cl=Qi(),IS=Hi();qa.protobufPackage="cosmos.vesting.v1beta1";function Pve(){return{baseAccount:void 0,originalVesting:[],delegatedFree:[],delegatedVesting:[],endTime:BigInt(0)}}qa.BaseVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.BaseVestingAccount",encode(e,t=Cl.BinaryWriter.create()){e.baseAccount!==void 0&&qF.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();for(let r of e.originalVesting)pf.Coin.encode(r,t.uint32(18).fork()).ldelim();for(let r of e.delegatedFree)pf.Coin.encode(r,t.uint32(26).fork()).ldelim();for(let r of e.delegatedVesting)pf.Coin.encode(r,t.uint32(34).fork()).ldelim();return e.endTime!==BigInt(0)&&t.uint32(40).int64(e.endTime),t},decode(e,t){let r=e instanceof Cl.BinaryReader?e:new Cl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Pve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.baseAccount=qF.BaseAccount.decode(r,r.uint32());break;case 2:n.originalVesting.push(pf.Coin.decode(r,r.uint32()));break;case 3:n.delegatedFree.push(pf.Coin.decode(r,r.uint32()));break;case 4:n.delegatedVesting.push(pf.Coin.decode(r,r.uint32()));break;case 5:n.endTime=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Pve();return(0,IS.isSet)(e.baseAccount)&&(t.baseAccount=qF.BaseAccount.fromJSON(e.baseAccount)),Array.isArray(e?.originalVesting)&&(t.originalVesting=e.originalVesting.map(r=>pf.Coin.fromJSON(r))),Array.isArray(e?.delegatedFree)&&(t.delegatedFree=e.delegatedFree.map(r=>pf.Coin.fromJSON(r))),Array.isArray(e?.delegatedVesting)&&(t.delegatedVesting=e.delegatedVesting.map(r=>pf.Coin.fromJSON(r))),(0,IS.isSet)(e.endTime)&&(t.endTime=BigInt(e.endTime.toString())),t},toJSON(e){let t={};return e.baseAccount!==void 0&&(t.baseAccount=e.baseAccount?qF.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map(r=>r?pf.Coin.toJSON(r):void 0):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map(r=>r?pf.Coin.toJSON(r):void 0):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map(r=>r?pf.Coin.toJSON(r):void 0):t.delegatedVesting=[],e.endTime!==void 0&&(t.endTime=(e.endTime||BigInt(0)).toString()),t},fromPartial(e){let t=Pve();return e.baseAccount!==void 0&&e.baseAccount!==null&&(t.baseAccount=qF.BaseAccount.fromPartial(e.baseAccount)),t.originalVesting=e.originalVesting?.map(r=>pf.Coin.fromPartial(r))||[],t.delegatedFree=e.delegatedFree?.map(r=>pf.Coin.fromPartial(r))||[],t.delegatedVesting=e.delegatedVesting?.map(r=>pf.Coin.fromPartial(r))||[],e.endTime!==void 0&&e.endTime!==null&&(t.endTime=BigInt(e.endTime.toString())),t}};function Lve(){return{baseVestingAccount:void 0,startTime:BigInt(0)}}qa.ContinuousVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.ContinuousVestingAccount",encode(e,t=Cl.BinaryWriter.create()){return e.baseVestingAccount!==void 0&&qa.BaseVestingAccount.encode(e.baseVestingAccount,t.uint32(10).fork()).ldelim(),e.startTime!==BigInt(0)&&t.uint32(16).int64(e.startTime),t},decode(e,t){let r=e instanceof Cl.BinaryReader?e:new Cl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Lve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.baseVestingAccount=qa.BaseVestingAccount.decode(r,r.uint32());break;case 2:n.startTime=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Lve();return(0,IS.isSet)(e.baseVestingAccount)&&(t.baseVestingAccount=qa.BaseVestingAccount.fromJSON(e.baseVestingAccount)),(0,IS.isSet)(e.startTime)&&(t.startTime=BigInt(e.startTime.toString())),t},toJSON(e){let t={};return e.baseVestingAccount!==void 0&&(t.baseVestingAccount=e.baseVestingAccount?qa.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),e.startTime!==void 0&&(t.startTime=(e.startTime||BigInt(0)).toString()),t},fromPartial(e){let t=Lve();return e.baseVestingAccount!==void 0&&e.baseVestingAccount!==null&&(t.baseVestingAccount=qa.BaseVestingAccount.fromPartial(e.baseVestingAccount)),e.startTime!==void 0&&e.startTime!==null&&(t.startTime=BigInt(e.startTime.toString())),t}};function Uve(){return{baseVestingAccount:void 0}}qa.DelayedVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.DelayedVestingAccount",encode(e,t=Cl.BinaryWriter.create()){return e.baseVestingAccount!==void 0&&qa.BaseVestingAccount.encode(e.baseVestingAccount,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Cl.BinaryReader?e:new Cl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Uve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.baseVestingAccount=qa.BaseVestingAccount.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=Uve();return(0,IS.isSet)(e.baseVestingAccount)&&(t.baseVestingAccount=qa.BaseVestingAccount.fromJSON(e.baseVestingAccount)),t},toJSON(e){let t={};return e.baseVestingAccount!==void 0&&(t.baseVestingAccount=e.baseVestingAccount?qa.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),t},fromPartial(e){let t=Uve();return e.baseVestingAccount!==void 0&&e.baseVestingAccount!==null&&(t.baseVestingAccount=qa.BaseVestingAccount.fromPartial(e.baseVestingAccount)),t}};function Fve(){return{length:BigInt(0),amount:[]}}qa.Period={typeUrl:"/cosmos.vesting.v1beta1.Period",encode(e,t=Cl.BinaryWriter.create()){e.length!==BigInt(0)&&t.uint32(8).int64(e.length);for(let r of e.amount)pf.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Cl.BinaryReader?e:new Cl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Fve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.length=r.int64();break;case 2:n.amount.push(pf.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Fve();return(0,IS.isSet)(e.length)&&(t.length=BigInt(e.length.toString())),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>pf.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.length!==void 0&&(t.length=(e.length||BigInt(0)).toString()),e.amount?t.amount=e.amount.map(r=>r?pf.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=Fve();return e.length!==void 0&&e.length!==null&&(t.length=BigInt(e.length.toString())),t.amount=e.amount?.map(r=>pf.Coin.fromPartial(r))||[],t}};function Qve(){return{baseVestingAccount:void 0,startTime:BigInt(0),vestingPeriods:[]}}qa.PeriodicVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.PeriodicVestingAccount",encode(e,t=Cl.BinaryWriter.create()){e.baseVestingAccount!==void 0&&qa.BaseVestingAccount.encode(e.baseVestingAccount,t.uint32(10).fork()).ldelim(),e.startTime!==BigInt(0)&&t.uint32(16).int64(e.startTime);for(let r of e.vestingPeriods)qa.Period.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Cl.BinaryReader?e:new Cl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Qve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.baseVestingAccount=qa.BaseVestingAccount.decode(r,r.uint32());break;case 2:n.startTime=r.int64();break;case 3:n.vestingPeriods.push(qa.Period.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Qve();return(0,IS.isSet)(e.baseVestingAccount)&&(t.baseVestingAccount=qa.BaseVestingAccount.fromJSON(e.baseVestingAccount)),(0,IS.isSet)(e.startTime)&&(t.startTime=BigInt(e.startTime.toString())),Array.isArray(e?.vestingPeriods)&&(t.vestingPeriods=e.vestingPeriods.map(r=>qa.Period.fromJSON(r))),t},toJSON(e){let t={};return e.baseVestingAccount!==void 0&&(t.baseVestingAccount=e.baseVestingAccount?qa.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),e.startTime!==void 0&&(t.startTime=(e.startTime||BigInt(0)).toString()),e.vestingPeriods?t.vestingPeriods=e.vestingPeriods.map(r=>r?qa.Period.toJSON(r):void 0):t.vestingPeriods=[],t},fromPartial(e){let t=Qve();return e.baseVestingAccount!==void 0&&e.baseVestingAccount!==null&&(t.baseVestingAccount=qa.BaseVestingAccount.fromPartial(e.baseVestingAccount)),e.startTime!==void 0&&e.startTime!==null&&(t.startTime=BigInt(e.startTime.toString())),t.vestingPeriods=e.vestingPeriods?.map(r=>qa.Period.fromPartial(r))||[],t}};function Hve(){return{baseVestingAccount:void 0}}qa.PermanentLockedAccount={typeUrl:"/cosmos.vesting.v1beta1.PermanentLockedAccount",encode(e,t=Cl.BinaryWriter.create()){return e.baseVestingAccount!==void 0&&qa.BaseVestingAccount.encode(e.baseVestingAccount,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Cl.BinaryReader?e:new Cl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Hve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.baseVestingAccount=qa.BaseVestingAccount.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=Hve();return(0,IS.isSet)(e.baseVestingAccount)&&(t.baseVestingAccount=qa.BaseVestingAccount.fromJSON(e.baseVestingAccount)),t},toJSON(e){let t={};return e.baseVestingAccount!==void 0&&(t.baseVestingAccount=e.baseVestingAccount?qa.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),t},fromPartial(e){let t=Hve();return e.baseVestingAccount!==void 0&&e.baseVestingAccount!==null&&(t.baseVestingAccount=qa.BaseVestingAccount.fromPartial(e.baseVestingAccount)),t}}});var qve=ir(wee=>{"use strict";J();K();z();Object.defineProperty(wee,"__esModule",{value:!0});wee.accountFromAny=void 0;var JAn=Uh(),zAn=SS(),VF=Uf(),B2t=Iee(),Cee=Gve();function M2t(e){return JAn.Uint64.fromString(e.toString())}function K7(e){let{address:t,pubKey:r,accountNumber:i,sequence:n}=e,o=(0,zAn.decodeOptionalPubkey)(r);return{address:t,pubkey:o,accountNumber:M2t(i).toNumber(),sequence:M2t(n).toNumber()}}function KAn(e){let{typeUrl:t,value:r}=e;switch(t){case"/cosmos.auth.v1beta1.BaseAccount":return K7(B2t.BaseAccount.decode(r));case"/cosmos.auth.v1beta1.ModuleAccount":{let i=B2t.ModuleAccount.decode(r).baseAccount;return(0,VF.assert)(i),K7(i)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{let i=Cee.BaseVestingAccount.decode(r)?.baseAccount;return(0,VF.assert)(i),K7(i)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{let i=Cee.ContinuousVestingAccount.decode(r)?.baseVestingAccount?.baseAccount;return(0,VF.assert)(i),K7(i)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{let i=Cee.DelayedVestingAccount.decode(r)?.baseVestingAccount?.baseAccount;return(0,VF.assert)(i),K7(i)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{let i=Cee.PeriodicVestingAccount.decode(r)?.baseVestingAccount?.baseAccount;return(0,VF.assert)(i),K7(i)}default:throw new Error(`Unsupported type: '${t}'`)}}wee.accountFromAny=KAn});var Jve=ir(Oee=>{"use strict";J();K();z();Object.defineProperty(Oee,"__esModule",{value:!0});Oee.AminoTypes=void 0;var Vve=class{constructor(t){this.register=t}toAmino({typeUrl:t,value:r}){let i=this.register[t];if(!i)throw new Error(`Type URL '${t}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);return{type:i.aminoType,value:i.toAmino(r)}}fromAmino({type:t,value:r}){let i=Object.entries(this.register).filter(([n,{aminoType:o}])=>o===t);switch(i.length){case 0:throw new Error(`Amino type identifier '${t}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);case 1:{let[n,o]=i[0];return{typeUrl:n,value:o.fromAmino(r)}}default:throw new Error(`Multiple types are registered with Amino type identifier '${t}': '`+i.map(([n,o])=>n).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}};Oee.AminoTypes=Vve});var zve=ir(Nee=>{"use strict";J();K();z();Object.defineProperty(Nee,"__esModule",{value:!0});Nee.fromTendermintEvent=void 0;var D2t=Ps();function $An(e){return{type:e.type,attributes:e.attributes.map(t=>({key:typeof t.key=="string"?t.key:(0,D2t.fromUtf8)(t.key,!0),value:typeof t.value=="string"?t.value:(0,D2t.fromUtf8)(t.value,!0)}))}}Nee.fromTendermintEvent=$An});var Kve=ir($7=>{"use strict";J();K();z();Object.defineProperty($7,"__esModule",{value:!0});$7.calculateFee=$7.GasPrice=void 0;var k2t=Uh(),YAn=SS();function WAn(e){if(e.length<3||e.length>128)throw new Error("Denom must be between 3 and 128 characters")}var xee=class e{constructor(t,r){this.amount=t,this.denom=r}static fromString(t){let r=t.match(/^([0-9.]+)([a-zA-Z][a-zA-Z0-9/:._-]*)$/);if(!r)throw new Error("Invalid gas price string");let[i,n,o]=r;WAn(o);let g=k2t.Decimal.fromUserInput(n,18);return new e(g,o)}toString(){return this.amount.toString()+this.denom}};$7.GasPrice=xee;function XAn(e,t){let r=typeof t=="string"?xee.fromString(t):t,{denom:i,amount:n}=r,o=n.multiply(new k2t.Uint53(e)).ceil().toString();return{amount:(0,YAn.coins)(o,i),gas:e.toString()}}$7.calculateFee=XAn});var Q2t=ir(c1=>{"use strict";J();K();z();Object.defineProperty(c1,"__esModule",{value:!0});c1.findAttribute=c1.parseRawLog=c1.parseLogs=c1.parseLog=c1.parseEvent=c1.parseAttribute=void 0;var $ve=Uf();function P2t(e){if(!(0,$ve.isNonNullObject)(e))throw new Error("Attribute must be a non-null object");let{key:t,value:r}=e;if(typeof t!="string"||!t)throw new Error("Attribute's key must be a non-empty string");if(typeof r!="string"&&typeof r<"u")throw new Error("Attribute's value must be a string or unset");return{key:t,value:r||""}}c1.parseAttribute=P2t;function L2t(e){if(!(0,$ve.isNonNullObject)(e))throw new Error("Event must be a non-null object");let{type:t,attributes:r}=e;if(typeof t!="string"||t==="")throw new Error("Event type must be a non-empty string");if(!Array.isArray(r))throw new Error("Event's attributes must be an array");return{type:t,attributes:r.map(P2t)}}c1.parseEvent=L2t;function U2t(e){if(!(0,$ve.isNonNullObject)(e))throw new Error("Log must be a non-null object");let{msg_index:t,log:r,events:i}=e;if(typeof t!="number")throw new Error("Log's msg_index must be a number");if(typeof r!="string")throw new Error("Log's log must be a string");if(!Array.isArray(i))throw new Error("Log's events must be an array");return{msg_index:t,log:r,events:i.map(L2t)}}c1.parseLog=U2t;function F2t(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(U2t)}c1.parseLogs=F2t;function ZAn(e){if(!e)return[];let t=JSON.parse(e).map(({events:r},i)=>({msg_index:i,events:r,log:""}));return F2t(t)}c1.parseRawLog=ZAn;function jAn(e,t,r){let n=e.find(()=>!0)?.events.find(o=>o.type===t)?.attributes.find(o=>o.key===r);if(!n)throw new Error(`Could not find attribute '${r}' in first event of type '${t}' in first log.`);return n}c1.findAttribute=jAn});var jA=ir(i8=>{"use strict";J();K();z();Object.defineProperty(i8,"__esModule",{value:!0});i8.PageResponse=i8.PageRequest=i8.protobufPackage=void 0;var Y7=Qi(),my=Hi();i8.protobufPackage="cosmos.base.query.v1beta1";function Yve(){return{key:new Uint8Array,offset:BigInt(0),limit:BigInt(0),countTotal:!1,reverse:!1}}i8.PageRequest={typeUrl:"/cosmos.base.query.v1beta1.PageRequest",encode(e,t=Y7.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),e.offset!==BigInt(0)&&t.uint32(16).uint64(e.offset),e.limit!==BigInt(0)&&t.uint32(24).uint64(e.limit),e.countTotal===!0&&t.uint32(32).bool(e.countTotal),e.reverse===!0&&t.uint32(40).bool(e.reverse),t},decode(e,t){let r=e instanceof Y7.BinaryReader?e:new Y7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Yve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.bytes();break;case 2:n.offset=r.uint64();break;case 3:n.limit=r.uint64();break;case 4:n.countTotal=r.bool();break;case 5:n.reverse=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Yve();return(0,my.isSet)(e.key)&&(t.key=(0,my.bytesFromBase64)(e.key)),(0,my.isSet)(e.offset)&&(t.offset=BigInt(e.offset.toString())),(0,my.isSet)(e.limit)&&(t.limit=BigInt(e.limit.toString())),(0,my.isSet)(e.countTotal)&&(t.countTotal=!!e.countTotal),(0,my.isSet)(e.reverse)&&(t.reverse=!!e.reverse),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,my.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.offset!==void 0&&(t.offset=(e.offset||BigInt(0)).toString()),e.limit!==void 0&&(t.limit=(e.limit||BigInt(0)).toString()),e.countTotal!==void 0&&(t.countTotal=e.countTotal),e.reverse!==void 0&&(t.reverse=e.reverse),t},fromPartial(e){let t=Yve();return t.key=e.key??new Uint8Array,e.offset!==void 0&&e.offset!==null&&(t.offset=BigInt(e.offset.toString())),e.limit!==void 0&&e.limit!==null&&(t.limit=BigInt(e.limit.toString())),t.countTotal=e.countTotal??!1,t.reverse=e.reverse??!1,t}};function Wve(){return{nextKey:new Uint8Array,total:BigInt(0)}}i8.PageResponse={typeUrl:"/cosmos.base.query.v1beta1.PageResponse",encode(e,t=Y7.BinaryWriter.create()){return e.nextKey.length!==0&&t.uint32(10).bytes(e.nextKey),e.total!==BigInt(0)&&t.uint32(16).uint64(e.total),t},decode(e,t){let r=e instanceof Y7.BinaryReader?e:new Y7.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Wve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.nextKey=r.bytes();break;case 2:n.total=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Wve();return(0,my.isSet)(e.nextKey)&&(t.nextKey=(0,my.bytesFromBase64)(e.nextKey)),(0,my.isSet)(e.total)&&(t.total=BigInt(e.total.toString())),t},toJSON(e){let t={};return e.nextKey!==void 0&&(t.nextKey=(0,my.base64FromBytes)(e.nextKey!==void 0?e.nextKey:new Uint8Array)),e.total!==void 0&&(t.total=(e.total||BigInt(0)).toString()),t},fromPartial(e){let t=Wve();return t.nextKey=e.nextKey??new Uint8Array,e.total!==void 0&&e.total!==null&&(t.total=BigInt(e.total.toString())),t}}});var H2t=ir(Ki=>{"use strict";J();K();z();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.QueryClientImpl=Ki.QueryAccountInfoResponse=Ki.QueryAccountInfoRequest=Ki.QueryAccountAddressByIDResponse=Ki.QueryAccountAddressByIDRequest=Ki.AddressStringToBytesResponse=Ki.AddressStringToBytesRequest=Ki.AddressBytesToStringResponse=Ki.AddressBytesToStringRequest=Ki.Bech32PrefixResponse=Ki.Bech32PrefixRequest=Ki.QueryModuleAccountByNameResponse=Ki.QueryModuleAccountByNameRequest=Ki.QueryModuleAccountsResponse=Ki.QueryModuleAccountsRequest=Ki.QueryParamsResponse=Ki.QueryParamsRequest=Ki.QueryAccountResponse=Ki.QueryAccountRequest=Ki.QueryAccountsResponse=Ki.QueryAccountsRequest=Ki.protobufPackage=void 0;var yy=jA(),gf=ru(),by=Iee(),ki=Qi(),Hd=Hi();Ki.protobufPackage="cosmos.auth.v1beta1";function Xve(){return{pagination:void 0}}Ki.QueryAccountsRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountsRequest",encode(e,t=ki.BinaryWriter.create()){return e.pagination!==void 0&&yy.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Xve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=yy.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=Xve();return(0,Hd.isSet)(e.pagination)&&(t.pagination=yy.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?yy.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=Xve();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=yy.PageRequest.fromPartial(e.pagination)),t}};function Zve(){return{accounts:[],pagination:void 0}}Ki.QueryAccountsResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountsResponse",encode(e,t=ki.BinaryWriter.create()){for(let r of e.accounts)gf.Any.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&yy.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Zve();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.accounts.push(gf.Any.decode(r,r.uint32()));break;case 2:n.pagination=yy.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Zve();return Array.isArray(e?.accounts)&&(t.accounts=e.accounts.map(r=>gf.Any.fromJSON(r))),(0,Hd.isSet)(e.pagination)&&(t.pagination=yy.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.accounts?t.accounts=e.accounts.map(r=>r?gf.Any.toJSON(r):void 0):t.accounts=[],e.pagination!==void 0&&(t.pagination=e.pagination?yy.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=Zve();return t.accounts=e.accounts?.map(r=>gf.Any.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=yy.PageResponse.fromPartial(e.pagination)),t}};function jve(){return{address:""}}Ki.QueryAccountRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountRequest",encode(e,t=ki.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jve();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.address=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=jve();return(0,Hd.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),t},fromPartial(e){let t=jve();return t.address=e.address??"",t}};function eRe(){return{account:void 0}}Ki.QueryAccountResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountResponse",encode(e,t=ki.BinaryWriter.create()){return e.account!==void 0&&gf.Any.encode(e.account,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=eRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.account=gf.Any.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=eRe();return(0,Hd.isSet)(e.account)&&(t.account=gf.Any.fromJSON(e.account)),t},toJSON(e){let t={};return e.account!==void 0&&(t.account=e.account?gf.Any.toJSON(e.account):void 0),t},fromPartial(e){let t=eRe();return e.account!==void 0&&e.account!==null&&(t.account=gf.Any.fromPartial(e.account)),t}};function tRe(){return{}}Ki.QueryParamsRequest={typeUrl:"/cosmos.auth.v1beta1.QueryParamsRequest",encode(e,t=ki.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return tRe()},toJSON(e){return{}},fromPartial(e){return tRe()}};function rRe(){return{params:by.Params.fromPartial({})}}Ki.QueryParamsResponse={typeUrl:"/cosmos.auth.v1beta1.QueryParamsResponse",encode(e,t=ki.BinaryWriter.create()){return e.params!==void 0&&by.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=by.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=rRe();return(0,Hd.isSet)(e.params)&&(t.params=by.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?by.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=rRe();return e.params!==void 0&&e.params!==null&&(t.params=by.Params.fromPartial(e.params)),t}};function nRe(){return{}}Ki.QueryModuleAccountsRequest={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountsRequest",encode(e,t=ki.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=nRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return nRe()},toJSON(e){return{}},fromPartial(e){return nRe()}};function iRe(){return{accounts:[]}}Ki.QueryModuleAccountsResponse={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountsResponse",encode(e,t=ki.BinaryWriter.create()){for(let r of e.accounts)gf.Any.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=iRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.accounts.push(gf.Any.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=iRe();return Array.isArray(e?.accounts)&&(t.accounts=e.accounts.map(r=>gf.Any.fromJSON(r))),t},toJSON(e){let t={};return e.accounts?t.accounts=e.accounts.map(r=>r?gf.Any.toJSON(r):void 0):t.accounts=[],t},fromPartial(e){let t=iRe();return t.accounts=e.accounts?.map(r=>gf.Any.fromPartial(r))||[],t}};function oRe(){return{name:""}}Ki.QueryModuleAccountByNameRequest={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest",encode(e,t=ki.BinaryWriter.create()){return e.name!==""&&t.uint32(10).string(e.name),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=oRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.name=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=oRe();return(0,Hd.isSet)(e.name)&&(t.name=String(e.name)),t},toJSON(e){let t={};return e.name!==void 0&&(t.name=e.name),t},fromPartial(e){let t=oRe();return t.name=e.name??"",t}};function aRe(){return{account:void 0}}Ki.QueryModuleAccountByNameResponse={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse",encode(e,t=ki.BinaryWriter.create()){return e.account!==void 0&&gf.Any.encode(e.account,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=aRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.account=gf.Any.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=aRe();return(0,Hd.isSet)(e.account)&&(t.account=gf.Any.fromJSON(e.account)),t},toJSON(e){let t={};return e.account!==void 0&&(t.account=e.account?gf.Any.toJSON(e.account):void 0),t},fromPartial(e){let t=aRe();return e.account!==void 0&&e.account!==null&&(t.account=gf.Any.fromPartial(e.account)),t}};function sRe(){return{}}Ki.Bech32PrefixRequest={typeUrl:"/cosmos.auth.v1beta1.Bech32PrefixRequest",encode(e,t=ki.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=sRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return sRe()},toJSON(e){return{}},fromPartial(e){return sRe()}};function cRe(){return{bech32Prefix:""}}Ki.Bech32PrefixResponse={typeUrl:"/cosmos.auth.v1beta1.Bech32PrefixResponse",encode(e,t=ki.BinaryWriter.create()){return e.bech32Prefix!==""&&t.uint32(10).string(e.bech32Prefix),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=cRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.bech32Prefix=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=cRe();return(0,Hd.isSet)(e.bech32Prefix)&&(t.bech32Prefix=String(e.bech32Prefix)),t},toJSON(e){let t={};return e.bech32Prefix!==void 0&&(t.bech32Prefix=e.bech32Prefix),t},fromPartial(e){let t=cRe();return t.bech32Prefix=e.bech32Prefix??"",t}};function uRe(){return{addressBytes:new Uint8Array}}Ki.AddressBytesToStringRequest={typeUrl:"/cosmos.auth.v1beta1.AddressBytesToStringRequest",encode(e,t=ki.BinaryWriter.create()){return e.addressBytes.length!==0&&t.uint32(10).bytes(e.addressBytes),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.addressBytes=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=uRe();return(0,Hd.isSet)(e.addressBytes)&&(t.addressBytes=(0,Hd.bytesFromBase64)(e.addressBytes)),t},toJSON(e){let t={};return e.addressBytes!==void 0&&(t.addressBytes=(0,Hd.base64FromBytes)(e.addressBytes!==void 0?e.addressBytes:new Uint8Array)),t},fromPartial(e){let t=uRe();return t.addressBytes=e.addressBytes??new Uint8Array,t}};function dRe(){return{addressString:""}}Ki.AddressBytesToStringResponse={typeUrl:"/cosmos.auth.v1beta1.AddressBytesToStringResponse",encode(e,t=ki.BinaryWriter.create()){return e.addressString!==""&&t.uint32(10).string(e.addressString),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.addressString=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=dRe();return(0,Hd.isSet)(e.addressString)&&(t.addressString=String(e.addressString)),t},toJSON(e){let t={};return e.addressString!==void 0&&(t.addressString=e.addressString),t},fromPartial(e){let t=dRe();return t.addressString=e.addressString??"",t}};function fRe(){return{addressString:""}}Ki.AddressStringToBytesRequest={typeUrl:"/cosmos.auth.v1beta1.AddressStringToBytesRequest",encode(e,t=ki.BinaryWriter.create()){return e.addressString!==""&&t.uint32(10).string(e.addressString),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.addressString=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=fRe();return(0,Hd.isSet)(e.addressString)&&(t.addressString=String(e.addressString)),t},toJSON(e){let t={};return e.addressString!==void 0&&(t.addressString=e.addressString),t},fromPartial(e){let t=fRe();return t.addressString=e.addressString??"",t}};function lRe(){return{addressBytes:new Uint8Array}}Ki.AddressStringToBytesResponse={typeUrl:"/cosmos.auth.v1beta1.AddressStringToBytesResponse",encode(e,t=ki.BinaryWriter.create()){return e.addressBytes.length!==0&&t.uint32(10).bytes(e.addressBytes),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=lRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.addressBytes=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=lRe();return(0,Hd.isSet)(e.addressBytes)&&(t.addressBytes=(0,Hd.bytesFromBase64)(e.addressBytes)),t},toJSON(e){let t={};return e.addressBytes!==void 0&&(t.addressBytes=(0,Hd.base64FromBytes)(e.addressBytes!==void 0?e.addressBytes:new Uint8Array)),t},fromPartial(e){let t=lRe();return t.addressBytes=e.addressBytes??new Uint8Array,t}};function hRe(){return{id:BigInt(0),accountId:BigInt(0)}}Ki.QueryAccountAddressByIDRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest",encode(e,t=ki.BinaryWriter.create()){return e.id!==BigInt(0)&&t.uint32(8).int64(e.id),e.accountId!==BigInt(0)&&t.uint32(16).uint64(e.accountId),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.id=r.int64();break;case 2:n.accountId=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=hRe();return(0,Hd.isSet)(e.id)&&(t.id=BigInt(e.id.toString())),(0,Hd.isSet)(e.accountId)&&(t.accountId=BigInt(e.accountId.toString())),t},toJSON(e){let t={};return e.id!==void 0&&(t.id=(e.id||BigInt(0)).toString()),e.accountId!==void 0&&(t.accountId=(e.accountId||BigInt(0)).toString()),t},fromPartial(e){let t=hRe();return e.id!==void 0&&e.id!==null&&(t.id=BigInt(e.id.toString())),e.accountId!==void 0&&e.accountId!==null&&(t.accountId=BigInt(e.accountId.toString())),t}};function ARe(){return{accountAddress:""}}Ki.QueryAccountAddressByIDResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse",encode(e,t=ki.BinaryWriter.create()){return e.accountAddress!==""&&t.uint32(10).string(e.accountAddress),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ARe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.accountAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=ARe();return(0,Hd.isSet)(e.accountAddress)&&(t.accountAddress=String(e.accountAddress)),t},toJSON(e){let t={};return e.accountAddress!==void 0&&(t.accountAddress=e.accountAddress),t},fromPartial(e){let t=ARe();return t.accountAddress=e.accountAddress??"",t}};function pRe(){return{address:""}}Ki.QueryAccountInfoRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountInfoRequest",encode(e,t=ki.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.address=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=pRe();return(0,Hd.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),t},fromPartial(e){let t=pRe();return t.address=e.address??"",t}};function gRe(){return{info:void 0}}Ki.QueryAccountInfoResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountInfoResponse",encode(e,t=ki.BinaryWriter.create()){return e.info!==void 0&&by.BaseAccount.encode(e.info,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ki.BinaryReader?e:new ki.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=gRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.info=by.BaseAccount.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=gRe();return(0,Hd.isSet)(e.info)&&(t.info=by.BaseAccount.fromJSON(e.info)),t},toJSON(e){let t={};return e.info!==void 0&&(t.info=e.info?by.BaseAccount.toJSON(e.info):void 0),t},fromPartial(e){let t=gRe();return e.info!==void 0&&e.info!==null&&(t.info=by.BaseAccount.fromPartial(e.info)),t}};var _Re=class{constructor(t){this.rpc=t,this.Accounts=this.Accounts.bind(this),this.Account=this.Account.bind(this),this.AccountAddressByID=this.AccountAddressByID.bind(this),this.Params=this.Params.bind(this),this.ModuleAccounts=this.ModuleAccounts.bind(this),this.ModuleAccountByName=this.ModuleAccountByName.bind(this),this.Bech32Prefix=this.Bech32Prefix.bind(this),this.AddressBytesToString=this.AddressBytesToString.bind(this),this.AddressStringToBytes=this.AddressStringToBytes.bind(this),this.AccountInfo=this.AccountInfo.bind(this)}Accounts(t={pagination:yy.PageRequest.fromPartial({})}){let r=Ki.QueryAccountsRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Accounts",r).then(n=>Ki.QueryAccountsResponse.decode(new ki.BinaryReader(n)))}Account(t){let r=Ki.QueryAccountRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Account",r).then(n=>Ki.QueryAccountResponse.decode(new ki.BinaryReader(n)))}AccountAddressByID(t){let r=Ki.QueryAccountAddressByIDRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountAddressByID",r).then(n=>Ki.QueryAccountAddressByIDResponse.decode(new ki.BinaryReader(n)))}Params(t={}){let r=Ki.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Params",r).then(n=>Ki.QueryParamsResponse.decode(new ki.BinaryReader(n)))}ModuleAccounts(t={}){let r=Ki.QueryModuleAccountsRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccounts",r).then(n=>Ki.QueryModuleAccountsResponse.decode(new ki.BinaryReader(n)))}ModuleAccountByName(t){let r=Ki.QueryModuleAccountByNameRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccountByName",r).then(n=>Ki.QueryModuleAccountByNameResponse.decode(new ki.BinaryReader(n)))}Bech32Prefix(t={}){let r=Ki.Bech32PrefixRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Bech32Prefix",r).then(n=>Ki.Bech32PrefixResponse.decode(new ki.BinaryReader(n)))}AddressBytesToString(t){let r=Ki.AddressBytesToStringRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressBytesToString",r).then(n=>Ki.AddressBytesToStringResponse.decode(new ki.BinaryReader(n)))}AddressStringToBytes(t){let r=Ki.AddressStringToBytesRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressStringToBytes",r).then(n=>Ki.AddressStringToBytesResponse.decode(new ki.BinaryReader(n)))}AccountInfo(t){let r=Ki.QueryAccountInfoRequest.encode(t).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountInfo",r).then(n=>Ki.QueryAccountInfoResponse.decode(new ki.BinaryReader(n)))}};Ki.QueryClientImpl=_Re});var G2t=ir(Bee=>{"use strict";J();K();z();Object.defineProperty(Bee,"__esModule",{value:!0});Bee.QueryClient=void 0;var Tee=Uf(),mRe=class e{static withExtensions(t,...r){let i=new e(t),n=r.map(o=>o(i));for(let o of n){(0,Tee.assert)((0,Tee.isNonNullObject)(o),"Extension must be a non-null object");for(let[d,g]of Object.entries(o)){(0,Tee.assert)((0,Tee.isNonNullObject)(g),`Module must be a non-null object. Found type ${typeof g} for module "${d}".`);let y=i[d]||{};i[d]={...y,...g}}}return i}constructor(t){this.cometClient=t}async queryAbci(t,r,i){let n=await this.cometClient.abciQuery({path:t,data:r,prove:!1,height:i});if(n.code)throw new Error(`Query failed with (${n.code}): ${n.log}`);if(!n.height)throw new Error("No query height returned");return{value:n.value,height:n.height}}};Bee.QueryClient=mRe});var z2t=ir(_2=>{"use strict";J();K();z();Object.defineProperty(_2,"__esModule",{value:!0});_2.decodeCosmosSdkDecFromProto=_2.longify=_2.createProtobufRpcClient=_2.createPagination=_2.toAccAddress=void 0;var V2t=Ps(),J2t=Uh(),q2t=jA();function epn(e){return(0,V2t.fromBech32)(e).data}_2.toAccAddress=epn;function tpn(e){return e?q2t.PageRequest.fromPartial({key:e}):q2t.PageRequest.fromPartial({})}_2.createPagination=tpn;function rpn(e){return{request:async(t,r,i)=>{let n=`/${t}/${r}`;return(await e.queryAbci(n,i,void 0)).value}}}_2.createProtobufRpcClient=rpn;function npn(e){let t=J2t.Uint64.fromString(e.toString());return BigInt(t.toString())}_2.longify=npn;function ipn(e){let t=typeof e=="string"?e:(0,V2t.fromAscii)(e);return J2t.Decimal.fromAtomics(t,18)}_2.decodeCosmosSdkDecFromProto=ipn});var ep=ir(m2=>{"use strict";J();K();z();Object.defineProperty(m2,"__esModule",{value:!0});m2.longify=m2.decodeCosmosSdkDecFromProto=m2.createProtobufRpcClient=m2.createPagination=m2.QueryClient=void 0;var opn=G2t();Object.defineProperty(m2,"QueryClient",{enumerable:!0,get:function(){return opn.QueryClient}});var Mee=z2t();Object.defineProperty(m2,"createPagination",{enumerable:!0,get:function(){return Mee.createPagination}});Object.defineProperty(m2,"createProtobufRpcClient",{enumerable:!0,get:function(){return Mee.createProtobufRpcClient}});Object.defineProperty(m2,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return Mee.decodeCosmosSdkDecFromProto}});Object.defineProperty(m2,"longify",{enumerable:!0,get:function(){return Mee.longify}})});var K2t=ir(Dee=>{"use strict";J();K();z();Object.defineProperty(Dee,"__esModule",{value:!0});Dee.setupAuthExtension=void 0;var apn=H2t(),spn=ep();function cpn(e){let t=(0,spn.createProtobufRpcClient)(e),r=new apn.QueryClientImpl(t);return{auth:{account:async i=>{let{account:n}=await r.Account({address:i});return n??null}}}}Dee.setupAuthExtension=cpn});var $2t=ir(kee=>{"use strict";J();K();z();Object.defineProperty(kee,"__esModule",{value:!0});kee.createAuthzAminoConverters=void 0;function upn(){return{}}kee.createAuthzAminoConverters=upn});var u1=ir(W7=>{"use strict";J();K();z();Object.defineProperty(W7,"__esModule",{value:!0});W7.Timestamp=W7.protobufPackage=void 0;var yRe=Qi(),Y2t=Hi();W7.protobufPackage="google.protobuf";function bRe(){return{seconds:BigInt(0),nanos:0}}W7.Timestamp={typeUrl:"/google.protobuf.Timestamp",encode(e,t=yRe.BinaryWriter.create()){return e.seconds!==BigInt(0)&&t.uint32(8).int64(e.seconds),e.nanos!==0&&t.uint32(16).int32(e.nanos),t},decode(e,t){let r=e instanceof yRe.BinaryReader?e:new yRe.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.seconds=r.int64();break;case 2:n.nanos=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=bRe();return(0,Y2t.isSet)(e.seconds)&&(t.seconds=BigInt(e.seconds.toString())),(0,Y2t.isSet)(e.nanos)&&(t.nanos=Number(e.nanos)),t},toJSON(e){let t={};return e.seconds!==void 0&&(t.seconds=(e.seconds||BigInt(0)).toString()),e.nanos!==void 0&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){let t=bRe();return e.seconds!==void 0&&e.seconds!==null&&(t.seconds=BigInt(e.seconds.toString())),t.nanos=e.nanos??0,t}}});var IRe=ir(y2=>{"use strict";J();K();z();Object.defineProperty(y2,"__esModule",{value:!0});y2.GrantQueueItem=y2.GrantAuthorization=y2.Grant=y2.GenericAuthorization=y2.protobufPackage=void 0;var CE=ru(),X7=u1(),b2=Qi(),Ey=Hi();y2.protobufPackage="cosmos.authz.v1beta1";function ERe(){return{msg:""}}y2.GenericAuthorization={typeUrl:"/cosmos.authz.v1beta1.GenericAuthorization",encode(e,t=b2.BinaryWriter.create()){return e.msg!==""&&t.uint32(10).string(e.msg),t},decode(e,t){let r=e instanceof b2.BinaryReader?e:new b2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ERe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.msg=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=ERe();return(0,Ey.isSet)(e.msg)&&(t.msg=String(e.msg)),t},toJSON(e){let t={};return e.msg!==void 0&&(t.msg=e.msg),t},fromPartial(e){let t=ERe();return t.msg=e.msg??"",t}};function vRe(){return{authorization:void 0,expiration:void 0}}y2.Grant={typeUrl:"/cosmos.authz.v1beta1.Grant",encode(e,t=b2.BinaryWriter.create()){return e.authorization!==void 0&&CE.Any.encode(e.authorization,t.uint32(10).fork()).ldelim(),e.expiration!==void 0&&X7.Timestamp.encode(e.expiration,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof b2.BinaryReader?e:new b2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authorization=CE.Any.decode(r,r.uint32());break;case 2:n.expiration=X7.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vRe();return(0,Ey.isSet)(e.authorization)&&(t.authorization=CE.Any.fromJSON(e.authorization)),(0,Ey.isSet)(e.expiration)&&(t.expiration=(0,Ey.fromJsonTimestamp)(e.expiration)),t},toJSON(e){let t={};return e.authorization!==void 0&&(t.authorization=e.authorization?CE.Any.toJSON(e.authorization):void 0),e.expiration!==void 0&&(t.expiration=(0,Ey.fromTimestamp)(e.expiration).toISOString()),t},fromPartial(e){let t=vRe();return e.authorization!==void 0&&e.authorization!==null&&(t.authorization=CE.Any.fromPartial(e.authorization)),e.expiration!==void 0&&e.expiration!==null&&(t.expiration=X7.Timestamp.fromPartial(e.expiration)),t}};function RRe(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}y2.GrantAuthorization={typeUrl:"/cosmos.authz.v1beta1.GrantAuthorization",encode(e,t=b2.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),e.authorization!==void 0&&CE.Any.encode(e.authorization,t.uint32(26).fork()).ldelim(),e.expiration!==void 0&&X7.Timestamp.encode(e.expiration,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof b2.BinaryReader?e:new b2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=RRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.authorization=CE.Any.decode(r,r.uint32());break;case 4:n.expiration=X7.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=RRe();return(0,Ey.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,Ey.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,Ey.isSet)(e.authorization)&&(t.authorization=CE.Any.fromJSON(e.authorization)),(0,Ey.isSet)(e.expiration)&&(t.expiration=(0,Ey.fromJsonTimestamp)(e.expiration)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.authorization!==void 0&&(t.authorization=e.authorization?CE.Any.toJSON(e.authorization):void 0),e.expiration!==void 0&&(t.expiration=(0,Ey.fromTimestamp)(e.expiration).toISOString()),t},fromPartial(e){let t=RRe();return t.granter=e.granter??"",t.grantee=e.grantee??"",e.authorization!==void 0&&e.authorization!==null&&(t.authorization=CE.Any.fromPartial(e.authorization)),e.expiration!==void 0&&e.expiration!==null&&(t.expiration=X7.Timestamp.fromPartial(e.expiration)),t}};function SRe(){return{msgTypeUrls:[]}}y2.GrantQueueItem={typeUrl:"/cosmos.authz.v1beta1.GrantQueueItem",encode(e,t=b2.BinaryWriter.create()){for(let r of e.msgTypeUrls)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof b2.BinaryReader?e:new b2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=SRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.msgTypeUrls.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=SRe();return Array.isArray(e?.msgTypeUrls)&&(t.msgTypeUrls=e.msgTypeUrls.map(r=>String(r))),t},toJSON(e){let t={};return e.msgTypeUrls?t.msgTypeUrls=e.msgTypeUrls.map(r=>r):t.msgTypeUrls=[],t},fromPartial(e){let t=SRe();return t.msgTypeUrls=e.msgTypeUrls?.map(r=>r)||[],t}}});var W2t=ir(I0=>{"use strict";J();K();z();Object.defineProperty(I0,"__esModule",{value:!0});I0.MsgClientImpl=I0.MsgRevokeResponse=I0.MsgRevoke=I0.MsgGrantResponse=I0.MsgExec=I0.MsgExecResponse=I0.MsgGrant=I0.protobufPackage=void 0;var Z7=IRe(),JF=ru(),Gd=Qi(),CS=Hi();I0.protobufPackage="cosmos.authz.v1beta1";function CRe(){return{granter:"",grantee:"",grant:Z7.Grant.fromPartial({})}}I0.MsgGrant={typeUrl:"/cosmos.authz.v1beta1.MsgGrant",encode(e,t=Gd.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),e.grant!==void 0&&Z7.Grant.encode(e.grant,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof Gd.BinaryReader?e:new Gd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=CRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.grant=Z7.Grant.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=CRe();return(0,CS.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,CS.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,CS.isSet)(e.grant)&&(t.grant=Z7.Grant.fromJSON(e.grant)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.grant!==void 0&&(t.grant=e.grant?Z7.Grant.toJSON(e.grant):void 0),t},fromPartial(e){let t=CRe();return t.granter=e.granter??"",t.grantee=e.grantee??"",e.grant!==void 0&&e.grant!==null&&(t.grant=Z7.Grant.fromPartial(e.grant)),t}};function wRe(){return{results:[]}}I0.MsgExecResponse={typeUrl:"/cosmos.authz.v1beta1.MsgExecResponse",encode(e,t=Gd.BinaryWriter.create()){for(let r of e.results)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof Gd.BinaryReader?e:new Gd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=wRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.results.push(r.bytes()):r.skipType(o&7)}return n},fromJSON(e){let t=wRe();return Array.isArray(e?.results)&&(t.results=e.results.map(r=>(0,CS.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.results?t.results=e.results.map(r=>(0,CS.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.results=[],t},fromPartial(e){let t=wRe();return t.results=e.results?.map(r=>r)||[],t}};function ORe(){return{grantee:"",msgs:[]}}I0.MsgExec={typeUrl:"/cosmos.authz.v1beta1.MsgExec",encode(e,t=Gd.BinaryWriter.create()){e.grantee!==""&&t.uint32(10).string(e.grantee);for(let r of e.msgs)JF.Any.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Gd.BinaryReader?e:new Gd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ORe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.grantee=r.string();break;case 2:n.msgs.push(JF.Any.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ORe();return(0,CS.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),Array.isArray(e?.msgs)&&(t.msgs=e.msgs.map(r=>JF.Any.fromJSON(r))),t},toJSON(e){let t={};return e.grantee!==void 0&&(t.grantee=e.grantee),e.msgs?t.msgs=e.msgs.map(r=>r?JF.Any.toJSON(r):void 0):t.msgs=[],t},fromPartial(e){let t=ORe();return t.grantee=e.grantee??"",t.msgs=e.msgs?.map(r=>JF.Any.fromPartial(r))||[],t}};function NRe(){return{}}I0.MsgGrantResponse={typeUrl:"/cosmos.authz.v1beta1.MsgGrantResponse",encode(e,t=Gd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Gd.BinaryReader?e:new Gd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=NRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return NRe()},toJSON(e){return{}},fromPartial(e){return NRe()}};function xRe(){return{granter:"",grantee:"",msgTypeUrl:""}}I0.MsgRevoke={typeUrl:"/cosmos.authz.v1beta1.MsgRevoke",encode(e,t=Gd.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),e.msgTypeUrl!==""&&t.uint32(26).string(e.msgTypeUrl),t},decode(e,t){let r=e instanceof Gd.BinaryReader?e:new Gd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=xRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.msgTypeUrl=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=xRe();return(0,CS.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,CS.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,CS.isSet)(e.msgTypeUrl)&&(t.msgTypeUrl=String(e.msgTypeUrl)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.msgTypeUrl!==void 0&&(t.msgTypeUrl=e.msgTypeUrl),t},fromPartial(e){let t=xRe();return t.granter=e.granter??"",t.grantee=e.grantee??"",t.msgTypeUrl=e.msgTypeUrl??"",t}};function TRe(){return{}}I0.MsgRevokeResponse={typeUrl:"/cosmos.authz.v1beta1.MsgRevokeResponse",encode(e,t=Gd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Gd.BinaryReader?e:new Gd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=TRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return TRe()},toJSON(e){return{}},fromPartial(e){return TRe()}};var BRe=class{constructor(t){this.rpc=t,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(t){let r=I0.MsgGrant.encode(t).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",r).then(n=>I0.MsgGrantResponse.decode(new Gd.BinaryReader(n)))}Exec(t){let r=I0.MsgExec.encode(t).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",r).then(n=>I0.MsgExecResponse.decode(new Gd.BinaryReader(n)))}Revoke(t){let r=I0.MsgRevoke.encode(t).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",r).then(n=>I0.MsgRevokeResponse.decode(new Gd.BinaryReader(n)))}};I0.MsgClientImpl=BRe});var X2t=ir(Pee=>{"use strict";J();K();z();Object.defineProperty(Pee,"__esModule",{value:!0});Pee.authzTypes=void 0;var MRe=W2t();Pee.authzTypes=[["/cosmos.authz.v1beta1.MsgExec",MRe.MsgExec],["/cosmos.authz.v1beta1.MsgGrant",MRe.MsgGrant],["/cosmos.authz.v1beta1.MsgRevoke",MRe.MsgRevoke]]});var Z2t=ir(C0=>{"use strict";J();K();z();Object.defineProperty(C0,"__esModule",{value:!0});C0.QueryClientImpl=C0.QueryGranteeGrantsResponse=C0.QueryGranteeGrantsRequest=C0.QueryGranterGrantsResponse=C0.QueryGranterGrantsRequest=C0.QueryGrantsResponse=C0.QueryGrantsRequest=C0.protobufPackage=void 0;var Dc=jA(),tp=IRe(),qd=Qi(),vy=Hi();C0.protobufPackage="cosmos.authz.v1beta1";function DRe(){return{granter:"",grantee:"",msgTypeUrl:"",pagination:void 0}}C0.QueryGrantsRequest={typeUrl:"/cosmos.authz.v1beta1.QueryGrantsRequest",encode(e,t=qd.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),e.msgTypeUrl!==""&&t.uint32(26).string(e.msgTypeUrl),e.pagination!==void 0&&Dc.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof qd.BinaryReader?e:new qd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=DRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.msgTypeUrl=r.string();break;case 4:n.pagination=Dc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=DRe();return(0,vy.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,vy.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,vy.isSet)(e.msgTypeUrl)&&(t.msgTypeUrl=String(e.msgTypeUrl)),(0,vy.isSet)(e.pagination)&&(t.pagination=Dc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.msgTypeUrl!==void 0&&(t.msgTypeUrl=e.msgTypeUrl),e.pagination!==void 0&&(t.pagination=e.pagination?Dc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=DRe();return t.granter=e.granter??"",t.grantee=e.grantee??"",t.msgTypeUrl=e.msgTypeUrl??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Dc.PageRequest.fromPartial(e.pagination)),t}};function kRe(){return{grants:[],pagination:void 0}}C0.QueryGrantsResponse={typeUrl:"/cosmos.authz.v1beta1.QueryGrantsResponse",encode(e,t=qd.BinaryWriter.create()){for(let r of e.grants)tp.Grant.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Dc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof qd.BinaryReader?e:new qd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.grants.push(tp.Grant.decode(r,r.uint32()));break;case 2:n.pagination=Dc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kRe();return Array.isArray(e?.grants)&&(t.grants=e.grants.map(r=>tp.Grant.fromJSON(r))),(0,vy.isSet)(e.pagination)&&(t.pagination=Dc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grants?t.grants=e.grants.map(r=>r?tp.Grant.toJSON(r):void 0):t.grants=[],e.pagination!==void 0&&(t.pagination=e.pagination?Dc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=kRe();return t.grants=e.grants?.map(r=>tp.Grant.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Dc.PageResponse.fromPartial(e.pagination)),t}};function PRe(){return{granter:"",pagination:void 0}}C0.QueryGranterGrantsRequest={typeUrl:"/cosmos.authz.v1beta1.QueryGranterGrantsRequest",encode(e,t=qd.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.pagination!==void 0&&Dc.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof qd.BinaryReader?e:new qd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=PRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.pagination=Dc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=PRe();return(0,vy.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,vy.isSet)(e.pagination)&&(t.pagination=Dc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.pagination!==void 0&&(t.pagination=e.pagination?Dc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=PRe();return t.granter=e.granter??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Dc.PageRequest.fromPartial(e.pagination)),t}};function LRe(){return{grants:[],pagination:void 0}}C0.QueryGranterGrantsResponse={typeUrl:"/cosmos.authz.v1beta1.QueryGranterGrantsResponse",encode(e,t=qd.BinaryWriter.create()){for(let r of e.grants)tp.GrantAuthorization.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Dc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof qd.BinaryReader?e:new qd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=LRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.grants.push(tp.GrantAuthorization.decode(r,r.uint32()));break;case 2:n.pagination=Dc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=LRe();return Array.isArray(e?.grants)&&(t.grants=e.grants.map(r=>tp.GrantAuthorization.fromJSON(r))),(0,vy.isSet)(e.pagination)&&(t.pagination=Dc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grants?t.grants=e.grants.map(r=>r?tp.GrantAuthorization.toJSON(r):void 0):t.grants=[],e.pagination!==void 0&&(t.pagination=e.pagination?Dc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=LRe();return t.grants=e.grants?.map(r=>tp.GrantAuthorization.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Dc.PageResponse.fromPartial(e.pagination)),t}};function URe(){return{grantee:"",pagination:void 0}}C0.QueryGranteeGrantsRequest={typeUrl:"/cosmos.authz.v1beta1.QueryGranteeGrantsRequest",encode(e,t=qd.BinaryWriter.create()){return e.grantee!==""&&t.uint32(10).string(e.grantee),e.pagination!==void 0&&Dc.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof qd.BinaryReader?e:new qd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=URe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.grantee=r.string();break;case 2:n.pagination=Dc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=URe();return(0,vy.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,vy.isSet)(e.pagination)&&(t.pagination=Dc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grantee!==void 0&&(t.grantee=e.grantee),e.pagination!==void 0&&(t.pagination=e.pagination?Dc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=URe();return t.grantee=e.grantee??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Dc.PageRequest.fromPartial(e.pagination)),t}};function FRe(){return{grants:[],pagination:void 0}}C0.QueryGranteeGrantsResponse={typeUrl:"/cosmos.authz.v1beta1.QueryGranteeGrantsResponse",encode(e,t=qd.BinaryWriter.create()){for(let r of e.grants)tp.GrantAuthorization.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Dc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof qd.BinaryReader?e:new qd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=FRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.grants.push(tp.GrantAuthorization.decode(r,r.uint32()));break;case 2:n.pagination=Dc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=FRe();return Array.isArray(e?.grants)&&(t.grants=e.grants.map(r=>tp.GrantAuthorization.fromJSON(r))),(0,vy.isSet)(e.pagination)&&(t.pagination=Dc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grants?t.grants=e.grants.map(r=>r?tp.GrantAuthorization.toJSON(r):void 0):t.grants=[],e.pagination!==void 0&&(t.pagination=e.pagination?Dc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=FRe();return t.grants=e.grants?.map(r=>tp.GrantAuthorization.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Dc.PageResponse.fromPartial(e.pagination)),t}};var QRe=class{constructor(t){this.rpc=t,this.Grants=this.Grants.bind(this),this.GranterGrants=this.GranterGrants.bind(this),this.GranteeGrants=this.GranteeGrants.bind(this)}Grants(t){let r=C0.QueryGrantsRequest.encode(t).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","Grants",r).then(n=>C0.QueryGrantsResponse.decode(new qd.BinaryReader(n)))}GranterGrants(t){let r=C0.QueryGranterGrantsRequest.encode(t).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranterGrants",r).then(n=>C0.QueryGranterGrantsResponse.decode(new qd.BinaryReader(n)))}GranteeGrants(t){let r=C0.QueryGranteeGrantsRequest.encode(t).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranteeGrants",r).then(n=>C0.QueryGranteeGrantsResponse.decode(new qd.BinaryReader(n)))}};C0.QueryClientImpl=QRe});var j2t=ir(Uee=>{"use strict";J();K();z();Object.defineProperty(Uee,"__esModule",{value:!0});Uee.setupAuthzExtension=void 0;var dpn=Z2t(),Lee=ep();function fpn(e){let t=(0,Lee.createProtobufRpcClient)(e),r=new dpn.QueryClientImpl(t);return{authz:{grants:async(i,n,o,d)=>await r.Grants({granter:i,grantee:n,msgTypeUrl:o,pagination:(0,Lee.createPagination)(d)}),granteeGrants:async(i,n)=>await r.GranteeGrants({grantee:i,pagination:(0,Lee.createPagination)(n)}),granterGrants:async(i,n)=>await r.GranterGrants({granter:i,pagination:(0,Lee.createPagination)(n)})}}}Uee.setupAuthzExtension=fpn});var emt=ir(o8=>{"use strict";J();K();z();Object.defineProperty(o8,"__esModule",{value:!0});o8.createBankAminoConverters=o8.isAminoMsgMultiSend=o8.isAminoMsgSend=void 0;function lpn(e){return e.type==="cosmos-sdk/MsgSend"}o8.isAminoMsgSend=lpn;function hpn(e){return e.type==="cosmos-sdk/MsgMultiSend"}o8.isAminoMsgMultiSend=hpn;function Apn(){return{"/cosmos.bank.v1beta1.MsgSend":{aminoType:"cosmos-sdk/MsgSend",toAmino:({fromAddress:e,toAddress:t,amount:r})=>({from_address:e,to_address:t,amount:[...r]}),fromAmino:({from_address:e,to_address:t,amount:r})=>({fromAddress:e,toAddress:t,amount:[...r]})},"/cosmos.bank.v1beta1.MsgMultiSend":{aminoType:"cosmos-sdk/MsgMultiSend",toAmino:({inputs:e,outputs:t})=>({inputs:e.map(r=>({address:r.address,coins:[...r.coins]})),outputs:t.map(r=>({address:r.address,coins:[...r.coins]}))}),fromAmino:({inputs:e,outputs:t})=>({inputs:e.map(r=>({address:r.address,coins:[...r.coins]})),outputs:t.map(r=>({address:r.address,coins:[...r.coins]}))})}}}o8.createBankAminoConverters=Apn});var rmt=ir(j7=>{"use strict";J();K();z();Object.defineProperty(j7,"__esModule",{value:!0});j7.isMsgSendEncodeObject=j7.bankTypes=void 0;var tmt=Cve();j7.bankTypes=[["/cosmos.bank.v1beta1.MsgMultiSend",tmt.MsgMultiSend],["/cosmos.bank.v1beta1.MsgSend",tmt.MsgSend]];function ppn(e){return e.typeUrl==="/cosmos.bank.v1beta1.MsgSend"}j7.isMsgSendEncodeObject=ppn});var nmt=ir(Ri=>{"use strict";J();K();z();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.QueryClientImpl=Ri.QuerySendEnabledResponse=Ri.QuerySendEnabledRequest=Ri.QueryDenomOwnersResponse=Ri.DenomOwner=Ri.QueryDenomOwnersRequest=Ri.QueryDenomMetadataResponse=Ri.QueryDenomMetadataRequest=Ri.QueryDenomsMetadataResponse=Ri.QueryDenomsMetadataRequest=Ri.QueryParamsResponse=Ri.QueryParamsRequest=Ri.QuerySupplyOfResponse=Ri.QuerySupplyOfRequest=Ri.QueryTotalSupplyResponse=Ri.QueryTotalSupplyRequest=Ri.QuerySpendableBalanceByDenomResponse=Ri.QuerySpendableBalanceByDenomRequest=Ri.QuerySpendableBalancesResponse=Ri.QuerySpendableBalancesRequest=Ri.QueryAllBalancesResponse=Ri.QueryAllBalancesRequest=Ri.QueryBalanceResponse=Ri.QueryBalanceRequest=Ri.protobufPackage=void 0;var no=jA(),Es=Af(),_d=gve(),vi=Qi(),yu=Hi();Ri.protobufPackage="cosmos.bank.v1beta1";function HRe(){return{address:"",denom:""}}Ri.QueryBalanceRequest={typeUrl:"/cosmos.bank.v1beta1.QueryBalanceRequest",encode(e,t=vi.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.denom!==""&&t.uint32(18).string(e.denom),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=HRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.denom=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=HRe();return(0,yu.isSet)(e.address)&&(t.address=String(e.address)),(0,yu.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.denom!==void 0&&(t.denom=e.denom),t},fromPartial(e){let t=HRe();return t.address=e.address??"",t.denom=e.denom??"",t}};function GRe(){return{balance:void 0}}Ri.QueryBalanceResponse={typeUrl:"/cosmos.bank.v1beta1.QueryBalanceResponse",encode(e,t=vi.BinaryWriter.create()){return e.balance!==void 0&&Es.Coin.encode(e.balance,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=GRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.balance=Es.Coin.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=GRe();return(0,yu.isSet)(e.balance)&&(t.balance=Es.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return e.balance!==void 0&&(t.balance=e.balance?Es.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=GRe();return e.balance!==void 0&&e.balance!==null&&(t.balance=Es.Coin.fromPartial(e.balance)),t}};function qRe(){return{address:"",pagination:void 0}}Ri.QueryAllBalancesRequest={typeUrl:"/cosmos.bank.v1beta1.QueryAllBalancesRequest",encode(e,t=vi.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.pagination!==void 0&&no.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.pagination=no.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qRe();return(0,yu.isSet)(e.address)&&(t.address=String(e.address)),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.pagination!==void 0&&(t.pagination=e.pagination?no.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=qRe();return t.address=e.address??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageRequest.fromPartial(e.pagination)),t}};function VRe(){return{balances:[],pagination:void 0}}Ri.QueryAllBalancesResponse={typeUrl:"/cosmos.bank.v1beta1.QueryAllBalancesResponse",encode(e,t=vi.BinaryWriter.create()){for(let r of e.balances)Es.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&no.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=VRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.balances.push(Es.Coin.decode(r,r.uint32()));break;case 2:n.pagination=no.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=VRe();return Array.isArray(e?.balances)&&(t.balances=e.balances.map(r=>Es.Coin.fromJSON(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.balances?t.balances=e.balances.map(r=>r?Es.Coin.toJSON(r):void 0):t.balances=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=VRe();return t.balances=e.balances?.map(r=>Es.Coin.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageResponse.fromPartial(e.pagination)),t}};function JRe(){return{address:"",pagination:void 0}}Ri.QuerySpendableBalancesRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalancesRequest",encode(e,t=vi.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.pagination!==void 0&&no.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=JRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.pagination=no.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=JRe();return(0,yu.isSet)(e.address)&&(t.address=String(e.address)),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.pagination!==void 0&&(t.pagination=e.pagination?no.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=JRe();return t.address=e.address??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageRequest.fromPartial(e.pagination)),t}};function zRe(){return{balances:[],pagination:void 0}}Ri.QuerySpendableBalancesResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalancesResponse",encode(e,t=vi.BinaryWriter.create()){for(let r of e.balances)Es.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&no.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.balances.push(Es.Coin.decode(r,r.uint32()));break;case 2:n.pagination=no.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=zRe();return Array.isArray(e?.balances)&&(t.balances=e.balances.map(r=>Es.Coin.fromJSON(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.balances?t.balances=e.balances.map(r=>r?Es.Coin.toJSON(r):void 0):t.balances=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=zRe();return t.balances=e.balances?.map(r=>Es.Coin.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageResponse.fromPartial(e.pagination)),t}};function KRe(){return{address:"",denom:""}}Ri.QuerySpendableBalanceByDenomRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest",encode(e,t=vi.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.denom!==""&&t.uint32(18).string(e.denom),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=KRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.denom=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=KRe();return(0,yu.isSet)(e.address)&&(t.address=String(e.address)),(0,yu.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.denom!==void 0&&(t.denom=e.denom),t},fromPartial(e){let t=KRe();return t.address=e.address??"",t.denom=e.denom??"",t}};function $Re(){return{balance:void 0}}Ri.QuerySpendableBalanceByDenomResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse",encode(e,t=vi.BinaryWriter.create()){return e.balance!==void 0&&Es.Coin.encode(e.balance,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$Re();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.balance=Es.Coin.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=$Re();return(0,yu.isSet)(e.balance)&&(t.balance=Es.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return e.balance!==void 0&&(t.balance=e.balance?Es.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=$Re();return e.balance!==void 0&&e.balance!==null&&(t.balance=Es.Coin.fromPartial(e.balance)),t}};function YRe(){return{pagination:void 0}}Ri.QueryTotalSupplyRequest={typeUrl:"/cosmos.bank.v1beta1.QueryTotalSupplyRequest",encode(e,t=vi.BinaryWriter.create()){return e.pagination!==void 0&&no.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=YRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=no.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=YRe();return(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?no.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=YRe();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageRequest.fromPartial(e.pagination)),t}};function WRe(){return{supply:[],pagination:void 0}}Ri.QueryTotalSupplyResponse={typeUrl:"/cosmos.bank.v1beta1.QueryTotalSupplyResponse",encode(e,t=vi.BinaryWriter.create()){for(let r of e.supply)Es.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&no.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=WRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.supply.push(Es.Coin.decode(r,r.uint32()));break;case 2:n.pagination=no.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=WRe();return Array.isArray(e?.supply)&&(t.supply=e.supply.map(r=>Es.Coin.fromJSON(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.supply?t.supply=e.supply.map(r=>r?Es.Coin.toJSON(r):void 0):t.supply=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=WRe();return t.supply=e.supply?.map(r=>Es.Coin.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageResponse.fromPartial(e.pagination)),t}};function XRe(){return{denom:""}}Ri.QuerySupplyOfRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySupplyOfRequest",encode(e,t=vi.BinaryWriter.create()){return e.denom!==""&&t.uint32(10).string(e.denom),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=XRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.denom=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=XRe();return(0,yu.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),t},fromPartial(e){let t=XRe();return t.denom=e.denom??"",t}};function ZRe(){return{amount:Es.Coin.fromPartial({})}}Ri.QuerySupplyOfResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySupplyOfResponse",encode(e,t=vi.BinaryWriter.create()){return e.amount!==void 0&&Es.Coin.encode(e.amount,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ZRe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.amount=Es.Coin.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=ZRe();return(0,yu.isSet)(e.amount)&&(t.amount=Es.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return e.amount!==void 0&&(t.amount=e.amount?Es.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=ZRe();return e.amount!==void 0&&e.amount!==null&&(t.amount=Es.Coin.fromPartial(e.amount)),t}};function jRe(){return{}}Ri.QueryParamsRequest={typeUrl:"/cosmos.bank.v1beta1.QueryParamsRequest",encode(e,t=vi.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jRe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return jRe()},toJSON(e){return{}},fromPartial(e){return jRe()}};function eSe(){return{params:_d.Params.fromPartial({})}}Ri.QueryParamsResponse={typeUrl:"/cosmos.bank.v1beta1.QueryParamsResponse",encode(e,t=vi.BinaryWriter.create()){return e.params!==void 0&&_d.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=eSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=_d.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=eSe();return(0,yu.isSet)(e.params)&&(t.params=_d.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?_d.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=eSe();return e.params!==void 0&&e.params!==null&&(t.params=_d.Params.fromPartial(e.params)),t}};function tSe(){return{pagination:void 0}}Ri.QueryDenomsMetadataRequest={typeUrl:"/cosmos.bank.v1beta1.QueryDenomsMetadataRequest",encode(e,t=vi.BinaryWriter.create()){return e.pagination!==void 0&&no.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=no.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=tSe();return(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?no.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=tSe();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageRequest.fromPartial(e.pagination)),t}};function rSe(){return{metadatas:[],pagination:void 0}}Ri.QueryDenomsMetadataResponse={typeUrl:"/cosmos.bank.v1beta1.QueryDenomsMetadataResponse",encode(e,t=vi.BinaryWriter.create()){for(let r of e.metadatas)_d.Metadata.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&no.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.metadatas.push(_d.Metadata.decode(r,r.uint32()));break;case 2:n.pagination=no.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=rSe();return Array.isArray(e?.metadatas)&&(t.metadatas=e.metadatas.map(r=>_d.Metadata.fromJSON(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.metadatas?t.metadatas=e.metadatas.map(r=>r?_d.Metadata.toJSON(r):void 0):t.metadatas=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=rSe();return t.metadatas=e.metadatas?.map(r=>_d.Metadata.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageResponse.fromPartial(e.pagination)),t}};function nSe(){return{denom:""}}Ri.QueryDenomMetadataRequest={typeUrl:"/cosmos.bank.v1beta1.QueryDenomMetadataRequest",encode(e,t=vi.BinaryWriter.create()){return e.denom!==""&&t.uint32(10).string(e.denom),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=nSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.denom=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=nSe();return(0,yu.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),t},fromPartial(e){let t=nSe();return t.denom=e.denom??"",t}};function iSe(){return{metadata:_d.Metadata.fromPartial({})}}Ri.QueryDenomMetadataResponse={typeUrl:"/cosmos.bank.v1beta1.QueryDenomMetadataResponse",encode(e,t=vi.BinaryWriter.create()){return e.metadata!==void 0&&_d.Metadata.encode(e.metadata,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=iSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.metadata=_d.Metadata.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=iSe();return(0,yu.isSet)(e.metadata)&&(t.metadata=_d.Metadata.fromJSON(e.metadata)),t},toJSON(e){let t={};return e.metadata!==void 0&&(t.metadata=e.metadata?_d.Metadata.toJSON(e.metadata):void 0),t},fromPartial(e){let t=iSe();return e.metadata!==void 0&&e.metadata!==null&&(t.metadata=_d.Metadata.fromPartial(e.metadata)),t}};function oSe(){return{denom:"",pagination:void 0}}Ri.QueryDenomOwnersRequest={typeUrl:"/cosmos.bank.v1beta1.QueryDenomOwnersRequest",encode(e,t=vi.BinaryWriter.create()){return e.denom!==""&&t.uint32(10).string(e.denom),e.pagination!==void 0&&no.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=oSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denom=r.string();break;case 2:n.pagination=no.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=oSe();return(0,yu.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.pagination!==void 0&&(t.pagination=e.pagination?no.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=oSe();return t.denom=e.denom??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageRequest.fromPartial(e.pagination)),t}};function aSe(){return{address:"",balance:Es.Coin.fromPartial({})}}Ri.DenomOwner={typeUrl:"/cosmos.bank.v1beta1.DenomOwner",encode(e,t=vi.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.balance!==void 0&&Es.Coin.encode(e.balance,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=aSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.balance=Es.Coin.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=aSe();return(0,yu.isSet)(e.address)&&(t.address=String(e.address)),(0,yu.isSet)(e.balance)&&(t.balance=Es.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.balance!==void 0&&(t.balance=e.balance?Es.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=aSe();return t.address=e.address??"",e.balance!==void 0&&e.balance!==null&&(t.balance=Es.Coin.fromPartial(e.balance)),t}};function sSe(){return{denomOwners:[],pagination:void 0}}Ri.QueryDenomOwnersResponse={typeUrl:"/cosmos.bank.v1beta1.QueryDenomOwnersResponse",encode(e,t=vi.BinaryWriter.create()){for(let r of e.denomOwners)Ri.DenomOwner.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&no.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=sSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denomOwners.push(Ri.DenomOwner.decode(r,r.uint32()));break;case 2:n.pagination=no.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=sSe();return Array.isArray(e?.denomOwners)&&(t.denomOwners=e.denomOwners.map(r=>Ri.DenomOwner.fromJSON(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.denomOwners?t.denomOwners=e.denomOwners.map(r=>r?Ri.DenomOwner.toJSON(r):void 0):t.denomOwners=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=sSe();return t.denomOwners=e.denomOwners?.map(r=>Ri.DenomOwner.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageResponse.fromPartial(e.pagination)),t}};function cSe(){return{denoms:[],pagination:void 0}}Ri.QuerySendEnabledRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySendEnabledRequest",encode(e,t=vi.BinaryWriter.create()){for(let r of e.denoms)t.uint32(10).string(r);return e.pagination!==void 0&&no.PageRequest.encode(e.pagination,t.uint32(794).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=cSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denoms.push(r.string());break;case 99:n.pagination=no.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=cSe();return Array.isArray(e?.denoms)&&(t.denoms=e.denoms.map(r=>String(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.denoms?t.denoms=e.denoms.map(r=>r):t.denoms=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=cSe();return t.denoms=e.denoms?.map(r=>r)||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageRequest.fromPartial(e.pagination)),t}};function uSe(){return{sendEnabled:[],pagination:void 0}}Ri.QuerySendEnabledResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySendEnabledResponse",encode(e,t=vi.BinaryWriter.create()){for(let r of e.sendEnabled)_d.SendEnabled.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&no.PageResponse.encode(e.pagination,t.uint32(794).fork()).ldelim(),t},decode(e,t){let r=e instanceof vi.BinaryReader?e:new vi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.sendEnabled.push(_d.SendEnabled.decode(r,r.uint32()));break;case 99:n.pagination=no.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=uSe();return Array.isArray(e?.sendEnabled)&&(t.sendEnabled=e.sendEnabled.map(r=>_d.SendEnabled.fromJSON(r))),(0,yu.isSet)(e.pagination)&&(t.pagination=no.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.sendEnabled?t.sendEnabled=e.sendEnabled.map(r=>r?_d.SendEnabled.toJSON(r):void 0):t.sendEnabled=[],e.pagination!==void 0&&(t.pagination=e.pagination?no.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=uSe();return t.sendEnabled=e.sendEnabled?.map(r=>_d.SendEnabled.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=no.PageResponse.fromPartial(e.pagination)),t}};var dSe=class{constructor(t){this.rpc=t,this.Balance=this.Balance.bind(this),this.AllBalances=this.AllBalances.bind(this),this.SpendableBalances=this.SpendableBalances.bind(this),this.SpendableBalanceByDenom=this.SpendableBalanceByDenom.bind(this),this.TotalSupply=this.TotalSupply.bind(this),this.SupplyOf=this.SupplyOf.bind(this),this.Params=this.Params.bind(this),this.DenomMetadata=this.DenomMetadata.bind(this),this.DenomsMetadata=this.DenomsMetadata.bind(this),this.DenomOwners=this.DenomOwners.bind(this),this.SendEnabled=this.SendEnabled.bind(this)}Balance(t){let r=Ri.QueryBalanceRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Balance",r).then(n=>Ri.QueryBalanceResponse.decode(new vi.BinaryReader(n)))}AllBalances(t){let r=Ri.QueryAllBalancesRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","AllBalances",r).then(n=>Ri.QueryAllBalancesResponse.decode(new vi.BinaryReader(n)))}SpendableBalances(t){let r=Ri.QuerySpendableBalancesRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalances",r).then(n=>Ri.QuerySpendableBalancesResponse.decode(new vi.BinaryReader(n)))}SpendableBalanceByDenom(t){let r=Ri.QuerySpendableBalanceByDenomRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalanceByDenom",r).then(n=>Ri.QuerySpendableBalanceByDenomResponse.decode(new vi.BinaryReader(n)))}TotalSupply(t={pagination:no.PageRequest.fromPartial({})}){let r=Ri.QueryTotalSupplyRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","TotalSupply",r).then(n=>Ri.QueryTotalSupplyResponse.decode(new vi.BinaryReader(n)))}SupplyOf(t){let r=Ri.QuerySupplyOfRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SupplyOf",r).then(n=>Ri.QuerySupplyOfResponse.decode(new vi.BinaryReader(n)))}Params(t={}){let r=Ri.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Params",r).then(n=>Ri.QueryParamsResponse.decode(new vi.BinaryReader(n)))}DenomMetadata(t){let r=Ri.QueryDenomMetadataRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomMetadata",r).then(n=>Ri.QueryDenomMetadataResponse.decode(new vi.BinaryReader(n)))}DenomsMetadata(t={pagination:no.PageRequest.fromPartial({})}){let r=Ri.QueryDenomsMetadataRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomsMetadata",r).then(n=>Ri.QueryDenomsMetadataResponse.decode(new vi.BinaryReader(n)))}DenomOwners(t){let r=Ri.QueryDenomOwnersRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomOwners",r).then(n=>Ri.QueryDenomOwnersResponse.decode(new vi.BinaryReader(n)))}SendEnabled(t){let r=Ri.QuerySendEnabledRequest.encode(t).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SendEnabled",r).then(n=>Ri.QuerySendEnabledResponse.decode(new vi.BinaryReader(n)))}};Ri.QueryClientImpl=dSe});var omt=ir(Fee=>{"use strict";J();K();z();Object.defineProperty(Fee,"__esModule",{value:!0});Fee.setupBankExtension=void 0;var fSe=Uf(),lSe=nmt(),imt=ep();function gpn(e){let t=(0,imt.createProtobufRpcClient)(e),r=new lSe.QueryClientImpl(t);return{bank:{balance:async(i,n)=>{let{balance:o}=await r.Balance({address:i,denom:n});return(0,fSe.assert)(o),o},allBalances:async i=>{let{balances:n}=await r.AllBalances(lSe.QueryAllBalancesRequest.fromPartial({address:i}));return n},totalSupply:async i=>await r.TotalSupply({pagination:(0,imt.createPagination)(i)}),supplyOf:async i=>{let{amount:n}=await r.SupplyOf({denom:i});return(0,fSe.assert)(n),n},denomMetadata:async i=>{let{metadata:n}=await r.DenomMetadata({denom:i});return(0,fSe.assert)(n),n},denomsMetadata:async()=>{let{metadatas:i}=await r.DenomsMetadata(lSe.QueryDenomsMetadataRequest.fromPartial({pagination:void 0}));return i}}}}Fee.setupBankExtension=gpn});var amt=ir(e9=>{"use strict";J();K();z();Object.defineProperty(e9,"__esModule",{value:!0});e9.createCrysisAminoConverters=e9.isAminoMsgVerifyInvariant=void 0;function _pn(e){return e.type==="cosmos-sdk/MsgVerifyInvariant"}e9.isAminoMsgVerifyInvariant=_pn;function mpn(){throw new Error("Not implemented")}e9.createCrysisAminoConverters=mpn});var smt=ir(E2=>{"use strict";J();K();z();Object.defineProperty(E2,"__esModule",{value:!0});E2.createDistributionAminoConverters=E2.isAminoMsgFundCommunityPool=E2.isAminoMsgWithdrawValidatorCommission=E2.isAminoMsgWithdrawDelegatorReward=E2.isAminoMsgSetWithdrawAddress=void 0;function ypn(e){return e.type==="cosmos-sdk/MsgModifyWithdrawAddress"}E2.isAminoMsgSetWithdrawAddress=ypn;function bpn(e){return e.type==="cosmos-sdk/MsgWithdrawDelegationReward"}E2.isAminoMsgWithdrawDelegatorReward=bpn;function Epn(e){return e.type==="cosmos-sdk/MsgWithdrawValidatorCommission"}E2.isAminoMsgWithdrawValidatorCommission=Epn;function vpn(e){return e.type==="cosmos-sdk/MsgFundCommunityPool"}E2.isAminoMsgFundCommunityPool=vpn;function Rpn(){return{"/cosmos.distribution.v1beta1.MsgFundCommunityPool":{aminoType:"cosmos-sdk/MsgFundCommunityPool",toAmino:({amount:e,depositor:t})=>({amount:[...e],depositor:t}),fromAmino:({amount:e,depositor:t})=>({amount:[...e],depositor:t})},"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":{aminoType:"cosmos-sdk/MsgModifyWithdrawAddress",toAmino:({delegatorAddress:e,withdrawAddress:t})=>({delegator_address:e,withdraw_address:t}),fromAmino:({delegator_address:e,withdraw_address:t})=>({delegatorAddress:e,withdrawAddress:t})},"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":{aminoType:"cosmos-sdk/MsgWithdrawDelegationReward",toAmino:({delegatorAddress:e,validatorAddress:t})=>({delegator_address:e,validator_address:t}),fromAmino:({delegator_address:e,validator_address:t})=>({delegatorAddress:e,validatorAddress:t})},"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":{aminoType:"cosmos-sdk/MsgWithdrawValidatorCommission",toAmino:({validatorAddress:e})=>({validator_address:e}),fromAmino:({validator_address:e})=>({validatorAddress:e})}}}E2.createDistributionAminoConverters=Rpn});var ISe=ir(ic=>{"use strict";J();K();z();Object.defineProperty(ic,"__esModule",{value:!0});ic.CommunityPoolSpendProposalWithDeposit=ic.DelegationDelegatorReward=ic.DelegatorStartingInfo=ic.CommunityPoolSpendProposal=ic.FeePool=ic.ValidatorSlashEvents=ic.ValidatorSlashEvent=ic.ValidatorOutstandingRewards=ic.ValidatorAccumulatedCommission=ic.ValidatorCurrentRewards=ic.ValidatorHistoricalRewards=ic.Params=ic.protobufPackage=void 0;var Hs=Af(),Os=Qi(),_f=Hi();ic.protobufPackage="cosmos.distribution.v1beta1";function hSe(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}ic.Params={typeUrl:"/cosmos.distribution.v1beta1.Params",encode(e,t=Os.BinaryWriter.create()){return e.communityTax!==""&&t.uint32(10).string(e.communityTax),e.baseProposerReward!==""&&t.uint32(18).string(e.baseProposerReward),e.bonusProposerReward!==""&&t.uint32(26).string(e.bonusProposerReward),e.withdrawAddrEnabled===!0&&t.uint32(32).bool(e.withdrawAddrEnabled),t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.communityTax=r.string();break;case 2:n.baseProposerReward=r.string();break;case 3:n.bonusProposerReward=r.string();break;case 4:n.withdrawAddrEnabled=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=hSe();return(0,_f.isSet)(e.communityTax)&&(t.communityTax=String(e.communityTax)),(0,_f.isSet)(e.baseProposerReward)&&(t.baseProposerReward=String(e.baseProposerReward)),(0,_f.isSet)(e.bonusProposerReward)&&(t.bonusProposerReward=String(e.bonusProposerReward)),(0,_f.isSet)(e.withdrawAddrEnabled)&&(t.withdrawAddrEnabled=!!e.withdrawAddrEnabled),t},toJSON(e){let t={};return e.communityTax!==void 0&&(t.communityTax=e.communityTax),e.baseProposerReward!==void 0&&(t.baseProposerReward=e.baseProposerReward),e.bonusProposerReward!==void 0&&(t.bonusProposerReward=e.bonusProposerReward),e.withdrawAddrEnabled!==void 0&&(t.withdrawAddrEnabled=e.withdrawAddrEnabled),t},fromPartial(e){let t=hSe();return t.communityTax=e.communityTax??"",t.baseProposerReward=e.baseProposerReward??"",t.bonusProposerReward=e.bonusProposerReward??"",t.withdrawAddrEnabled=e.withdrawAddrEnabled??!1,t}};function ASe(){return{cumulativeRewardRatio:[],referenceCount:0}}ic.ValidatorHistoricalRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",encode(e,t=Os.BinaryWriter.create()){for(let r of e.cumulativeRewardRatio)Hs.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return e.referenceCount!==0&&t.uint32(16).uint32(e.referenceCount),t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ASe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.cumulativeRewardRatio.push(Hs.DecCoin.decode(r,r.uint32()));break;case 2:n.referenceCount=r.uint32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ASe();return Array.isArray(e?.cumulativeRewardRatio)&&(t.cumulativeRewardRatio=e.cumulativeRewardRatio.map(r=>Hs.DecCoin.fromJSON(r))),(0,_f.isSet)(e.referenceCount)&&(t.referenceCount=Number(e.referenceCount)),t},toJSON(e){let t={};return e.cumulativeRewardRatio?t.cumulativeRewardRatio=e.cumulativeRewardRatio.map(r=>r?Hs.DecCoin.toJSON(r):void 0):t.cumulativeRewardRatio=[],e.referenceCount!==void 0&&(t.referenceCount=Math.round(e.referenceCount)),t},fromPartial(e){let t=ASe();return t.cumulativeRewardRatio=e.cumulativeRewardRatio?.map(r=>Hs.DecCoin.fromPartial(r))||[],t.referenceCount=e.referenceCount??0,t}};function pSe(){return{rewards:[],period:BigInt(0)}}ic.ValidatorCurrentRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorCurrentRewards",encode(e,t=Os.BinaryWriter.create()){for(let r of e.rewards)Hs.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return e.period!==BigInt(0)&&t.uint32(16).uint64(e.period),t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.rewards.push(Hs.DecCoin.decode(r,r.uint32()));break;case 2:n.period=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=pSe();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(r=>Hs.DecCoin.fromJSON(r))),(0,_f.isSet)(e.period)&&(t.period=BigInt(e.period.toString())),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(r=>r?Hs.DecCoin.toJSON(r):void 0):t.rewards=[],e.period!==void 0&&(t.period=(e.period||BigInt(0)).toString()),t},fromPartial(e){let t=pSe();return t.rewards=e.rewards?.map(r=>Hs.DecCoin.fromPartial(r))||[],e.period!==void 0&&e.period!==null&&(t.period=BigInt(e.period.toString())),t}};function gSe(){return{commission:[]}}ic.ValidatorAccumulatedCommission={typeUrl:"/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",encode(e,t=Os.BinaryWriter.create()){for(let r of e.commission)Hs.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=gSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.commission.push(Hs.DecCoin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=gSe();return Array.isArray(e?.commission)&&(t.commission=e.commission.map(r=>Hs.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.commission?t.commission=e.commission.map(r=>r?Hs.DecCoin.toJSON(r):void 0):t.commission=[],t},fromPartial(e){let t=gSe();return t.commission=e.commission?.map(r=>Hs.DecCoin.fromPartial(r))||[],t}};function _Se(){return{rewards:[]}}ic.ValidatorOutstandingRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",encode(e,t=Os.BinaryWriter.create()){for(let r of e.rewards)Hs.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_Se();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.rewards.push(Hs.DecCoin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=_Se();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(r=>Hs.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(r=>r?Hs.DecCoin.toJSON(r):void 0):t.rewards=[],t},fromPartial(e){let t=_Se();return t.rewards=e.rewards?.map(r=>Hs.DecCoin.fromPartial(r))||[],t}};function mSe(){return{validatorPeriod:BigInt(0),fraction:""}}ic.ValidatorSlashEvent={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvent",encode(e,t=Os.BinaryWriter.create()){return e.validatorPeriod!==BigInt(0)&&t.uint32(8).uint64(e.validatorPeriod),e.fraction!==""&&t.uint32(18).string(e.fraction),t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validatorPeriod=r.uint64();break;case 2:n.fraction=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=mSe();return(0,_f.isSet)(e.validatorPeriod)&&(t.validatorPeriod=BigInt(e.validatorPeriod.toString())),(0,_f.isSet)(e.fraction)&&(t.fraction=String(e.fraction)),t},toJSON(e){let t={};return e.validatorPeriod!==void 0&&(t.validatorPeriod=(e.validatorPeriod||BigInt(0)).toString()),e.fraction!==void 0&&(t.fraction=e.fraction),t},fromPartial(e){let t=mSe();return e.validatorPeriod!==void 0&&e.validatorPeriod!==null&&(t.validatorPeriod=BigInt(e.validatorPeriod.toString())),t.fraction=e.fraction??"",t}};function ySe(){return{validatorSlashEvents:[]}}ic.ValidatorSlashEvents={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvents",encode(e,t=Os.BinaryWriter.create()){for(let r of e.validatorSlashEvents)ic.ValidatorSlashEvent.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ySe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validatorSlashEvents.push(ic.ValidatorSlashEvent.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=ySe();return Array.isArray(e?.validatorSlashEvents)&&(t.validatorSlashEvents=e.validatorSlashEvents.map(r=>ic.ValidatorSlashEvent.fromJSON(r))),t},toJSON(e){let t={};return e.validatorSlashEvents?t.validatorSlashEvents=e.validatorSlashEvents.map(r=>r?ic.ValidatorSlashEvent.toJSON(r):void 0):t.validatorSlashEvents=[],t},fromPartial(e){let t=ySe();return t.validatorSlashEvents=e.validatorSlashEvents?.map(r=>ic.ValidatorSlashEvent.fromPartial(r))||[],t}};function bSe(){return{communityPool:[]}}ic.FeePool={typeUrl:"/cosmos.distribution.v1beta1.FeePool",encode(e,t=Os.BinaryWriter.create()){for(let r of e.communityPool)Hs.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.communityPool.push(Hs.DecCoin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=bSe();return Array.isArray(e?.communityPool)&&(t.communityPool=e.communityPool.map(r=>Hs.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.communityPool?t.communityPool=e.communityPool.map(r=>r?Hs.DecCoin.toJSON(r):void 0):t.communityPool=[],t},fromPartial(e){let t=bSe();return t.communityPool=e.communityPool?.map(r=>Hs.DecCoin.fromPartial(r))||[],t}};function ESe(){return{title:"",description:"",recipient:"",amount:[]}}ic.CommunityPoolSpendProposal={typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",encode(e,t=Os.BinaryWriter.create()){e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),e.recipient!==""&&t.uint32(26).string(e.recipient);for(let r of e.amount)Hs.Coin.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ESe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.recipient=r.string();break;case 4:n.amount.push(Hs.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ESe();return(0,_f.isSet)(e.title)&&(t.title=String(e.title)),(0,_f.isSet)(e.description)&&(t.description=String(e.description)),(0,_f.isSet)(e.recipient)&&(t.recipient=String(e.recipient)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>Hs.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.recipient!==void 0&&(t.recipient=e.recipient),e.amount?t.amount=e.amount.map(r=>r?Hs.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=ESe();return t.title=e.title??"",t.description=e.description??"",t.recipient=e.recipient??"",t.amount=e.amount?.map(r=>Hs.Coin.fromPartial(r))||[],t}};function vSe(){return{previousPeriod:BigInt(0),stake:"",height:BigInt(0)}}ic.DelegatorStartingInfo={typeUrl:"/cosmos.distribution.v1beta1.DelegatorStartingInfo",encode(e,t=Os.BinaryWriter.create()){return e.previousPeriod!==BigInt(0)&&t.uint32(8).uint64(e.previousPeriod),e.stake!==""&&t.uint32(18).string(e.stake),e.height!==BigInt(0)&&t.uint32(24).uint64(e.height),t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.previousPeriod=r.uint64();break;case 2:n.stake=r.string();break;case 3:n.height=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vSe();return(0,_f.isSet)(e.previousPeriod)&&(t.previousPeriod=BigInt(e.previousPeriod.toString())),(0,_f.isSet)(e.stake)&&(t.stake=String(e.stake)),(0,_f.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),t},toJSON(e){let t={};return e.previousPeriod!==void 0&&(t.previousPeriod=(e.previousPeriod||BigInt(0)).toString()),e.stake!==void 0&&(t.stake=e.stake),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),t},fromPartial(e){let t=vSe();return e.previousPeriod!==void 0&&e.previousPeriod!==null&&(t.previousPeriod=BigInt(e.previousPeriod.toString())),t.stake=e.stake??"",e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t}};function RSe(){return{validatorAddress:"",reward:[]}}ic.DelegationDelegatorReward={typeUrl:"/cosmos.distribution.v1beta1.DelegationDelegatorReward",encode(e,t=Os.BinaryWriter.create()){e.validatorAddress!==""&&t.uint32(10).string(e.validatorAddress);for(let r of e.reward)Hs.DecCoin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=RSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validatorAddress=r.string();break;case 2:n.reward.push(Hs.DecCoin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=RSe();return(0,_f.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),Array.isArray(e?.reward)&&(t.reward=e.reward.map(r=>Hs.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.reward?t.reward=e.reward.map(r=>r?Hs.DecCoin.toJSON(r):void 0):t.reward=[],t},fromPartial(e){let t=RSe();return t.validatorAddress=e.validatorAddress??"",t.reward=e.reward?.map(r=>Hs.DecCoin.fromPartial(r))||[],t}};function SSe(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}ic.CommunityPoolSpendProposalWithDeposit={typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",encode(e,t=Os.BinaryWriter.create()){return e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),e.recipient!==""&&t.uint32(26).string(e.recipient),e.amount!==""&&t.uint32(34).string(e.amount),e.deposit!==""&&t.uint32(42).string(e.deposit),t},decode(e,t){let r=e instanceof Os.BinaryReader?e:new Os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=SSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.recipient=r.string();break;case 4:n.amount=r.string();break;case 5:n.deposit=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=SSe();return(0,_f.isSet)(e.title)&&(t.title=String(e.title)),(0,_f.isSet)(e.description)&&(t.description=String(e.description)),(0,_f.isSet)(e.recipient)&&(t.recipient=String(e.recipient)),(0,_f.isSet)(e.amount)&&(t.amount=String(e.amount)),(0,_f.isSet)(e.deposit)&&(t.deposit=String(e.deposit)),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.recipient!==void 0&&(t.recipient=e.recipient),e.amount!==void 0&&(t.amount=e.amount),e.deposit!==void 0&&(t.deposit=e.deposit),t},fromPartial(e){let t=SSe();return t.title=e.title??"",t.description=e.description??"",t.recipient=e.recipient??"",t.amount=e.amount??"",t.deposit=e.deposit??"",t}}});var FSe=ir(Sa=>{"use strict";J();K();z();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.MsgClientImpl=Sa.MsgCommunityPoolSpendResponse=Sa.MsgCommunityPoolSpend=Sa.MsgUpdateParamsResponse=Sa.MsgUpdateParams=Sa.MsgFundCommunityPoolResponse=Sa.MsgFundCommunityPool=Sa.MsgWithdrawValidatorCommissionResponse=Sa.MsgWithdrawValidatorCommission=Sa.MsgWithdrawDelegatorRewardResponse=Sa.MsgWithdrawDelegatorReward=Sa.MsgSetWithdrawAddressResponse=Sa.MsgSetWithdrawAddress=Sa.protobufPackage=void 0;var mf=Af(),t9=ISe(),Ia=Qi(),wE=Hi();Sa.protobufPackage="cosmos.distribution.v1beta1";function CSe(){return{delegatorAddress:"",withdrawAddress:""}}Sa.MsgSetWithdrawAddress={typeUrl:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",encode(e,t=Ia.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.withdrawAddress!==""&&t.uint32(18).string(e.withdrawAddress),t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=CSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.withdrawAddress=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=CSe();return(0,wE.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,wE.isSet)(e.withdrawAddress)&&(t.withdrawAddress=String(e.withdrawAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.withdrawAddress!==void 0&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial(e){let t=CSe();return t.delegatorAddress=e.delegatorAddress??"",t.withdrawAddress=e.withdrawAddress??"",t}};function wSe(){return{}}Sa.MsgSetWithdrawAddressResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse",encode(e,t=Ia.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=wSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return wSe()},toJSON(e){return{}},fromPartial(e){return wSe()}};function OSe(){return{delegatorAddress:"",validatorAddress:""}}Sa.MsgWithdrawDelegatorReward={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",encode(e,t=Ia.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=OSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=OSe();return(0,wE.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,wE.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=OSe();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t}};function NSe(){return{amount:[]}}Sa.MsgWithdrawDelegatorRewardResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse",encode(e,t=Ia.BinaryWriter.create()){for(let r of e.amount)mf.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=NSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.amount.push(mf.Coin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=NSe();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>mf.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(r=>r?mf.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=NSe();return t.amount=e.amount?.map(r=>mf.Coin.fromPartial(r))||[],t}};function xSe(){return{validatorAddress:""}}Sa.MsgWithdrawValidatorCommission={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",encode(e,t=Ia.BinaryWriter.create()){return e.validatorAddress!==""&&t.uint32(10).string(e.validatorAddress),t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=xSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=xSe();return(0,wE.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=xSe();return t.validatorAddress=e.validatorAddress??"",t}};function TSe(){return{amount:[]}}Sa.MsgWithdrawValidatorCommissionResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse",encode(e,t=Ia.BinaryWriter.create()){for(let r of e.amount)mf.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=TSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.amount.push(mf.Coin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=TSe();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>mf.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(r=>r?mf.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=TSe();return t.amount=e.amount?.map(r=>mf.Coin.fromPartial(r))||[],t}};function BSe(){return{amount:[],depositor:""}}Sa.MsgFundCommunityPool={typeUrl:"/cosmos.distribution.v1beta1.MsgFundCommunityPool",encode(e,t=Ia.BinaryWriter.create()){for(let r of e.amount)mf.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.depositor!==""&&t.uint32(18).string(e.depositor),t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=BSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.amount.push(mf.Coin.decode(r,r.uint32()));break;case 2:n.depositor=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=BSe();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>mf.Coin.fromJSON(r))),(0,wE.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(r=>r?mf.Coin.toJSON(r):void 0):t.amount=[],e.depositor!==void 0&&(t.depositor=e.depositor),t},fromPartial(e){let t=BSe();return t.amount=e.amount?.map(r=>mf.Coin.fromPartial(r))||[],t.depositor=e.depositor??"",t}};function MSe(){return{}}Sa.MsgFundCommunityPoolResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse",encode(e,t=Ia.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=MSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return MSe()},toJSON(e){return{}},fromPartial(e){return MSe()}};function DSe(){return{authority:"",params:t9.Params.fromPartial({})}}Sa.MsgUpdateParams={typeUrl:"/cosmos.distribution.v1beta1.MsgUpdateParams",encode(e,t=Ia.BinaryWriter.create()){return e.authority!==""&&t.uint32(10).string(e.authority),e.params!==void 0&&t9.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=DSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authority=r.string();break;case 2:n.params=t9.Params.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=DSe();return(0,wE.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,wE.isSet)(e.params)&&(t.params=t9.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.authority!==void 0&&(t.authority=e.authority),e.params!==void 0&&(t.params=e.params?t9.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=DSe();return t.authority=e.authority??"",e.params!==void 0&&e.params!==null&&(t.params=t9.Params.fromPartial(e.params)),t}};function kSe(){return{}}Sa.MsgUpdateParamsResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgUpdateParamsResponse",encode(e,t=Ia.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return kSe()},toJSON(e){return{}},fromPartial(e){return kSe()}};function PSe(){return{authority:"",recipient:"",amount:[]}}Sa.MsgCommunityPoolSpend={typeUrl:"/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",encode(e,t=Ia.BinaryWriter.create()){e.authority!==""&&t.uint32(10).string(e.authority),e.recipient!==""&&t.uint32(18).string(e.recipient);for(let r of e.amount)mf.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=PSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authority=r.string();break;case 2:n.recipient=r.string();break;case 3:n.amount.push(mf.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=PSe();return(0,wE.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,wE.isSet)(e.recipient)&&(t.recipient=String(e.recipient)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>mf.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.authority!==void 0&&(t.authority=e.authority),e.recipient!==void 0&&(t.recipient=e.recipient),e.amount?t.amount=e.amount.map(r=>r?mf.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=PSe();return t.authority=e.authority??"",t.recipient=e.recipient??"",t.amount=e.amount?.map(r=>mf.Coin.fromPartial(r))||[],t}};function LSe(){return{}}Sa.MsgCommunityPoolSpendResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse",encode(e,t=Ia.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ia.BinaryReader?e:new Ia.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=LSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return LSe()},toJSON(e){return{}},fromPartial(e){return LSe()}};var USe=class{constructor(t){this.rpc=t,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.CommunityPoolSpend=this.CommunityPoolSpend.bind(this)}SetWithdrawAddress(t){let r=Sa.MsgSetWithdrawAddress.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",r).then(n=>Sa.MsgSetWithdrawAddressResponse.decode(new Ia.BinaryReader(n)))}WithdrawDelegatorReward(t){let r=Sa.MsgWithdrawDelegatorReward.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",r).then(n=>Sa.MsgWithdrawDelegatorRewardResponse.decode(new Ia.BinaryReader(n)))}WithdrawValidatorCommission(t){let r=Sa.MsgWithdrawValidatorCommission.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",r).then(n=>Sa.MsgWithdrawValidatorCommissionResponse.decode(new Ia.BinaryReader(n)))}FundCommunityPool(t){let r=Sa.MsgFundCommunityPool.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",r).then(n=>Sa.MsgFundCommunityPoolResponse.decode(new Ia.BinaryReader(n)))}UpdateParams(t){let r=Sa.MsgUpdateParams.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","UpdateParams",r).then(n=>Sa.MsgUpdateParamsResponse.decode(new Ia.BinaryReader(n)))}CommunityPoolSpend(t){let r=Sa.MsgCommunityPoolSpend.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","CommunityPoolSpend",r).then(n=>Sa.MsgCommunityPoolSpendResponse.decode(new Ia.BinaryReader(n)))}};Sa.MsgClientImpl=USe});var cmt=ir(r9=>{"use strict";J();K();z();Object.defineProperty(r9,"__esModule",{value:!0});r9.isMsgWithdrawDelegatorRewardEncodeObject=r9.distributionTypes=void 0;var Qee=FSe();r9.distributionTypes=[["/cosmos.distribution.v1beta1.MsgFundCommunityPool",Qee.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",Qee.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",Qee.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",Qee.MsgWithdrawValidatorCommission]];function Spn(e){return e.typeUrl==="/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"}r9.isMsgWithdrawDelegatorRewardEncodeObject=Spn});var umt=ir($i=>{"use strict";J();K();z();Object.defineProperty($i,"__esModule",{value:!0});$i.QueryClientImpl=$i.QueryCommunityPoolResponse=$i.QueryCommunityPoolRequest=$i.QueryDelegatorWithdrawAddressResponse=$i.QueryDelegatorWithdrawAddressRequest=$i.QueryDelegatorValidatorsResponse=$i.QueryDelegatorValidatorsRequest=$i.QueryDelegationTotalRewardsResponse=$i.QueryDelegationTotalRewardsRequest=$i.QueryDelegationRewardsResponse=$i.QueryDelegationRewardsRequest=$i.QueryValidatorSlashesResponse=$i.QueryValidatorSlashesRequest=$i.QueryValidatorCommissionResponse=$i.QueryValidatorCommissionRequest=$i.QueryValidatorOutstandingRewardsResponse=$i.QueryValidatorOutstandingRewardsRequest=$i.QueryValidatorDistributionInfoResponse=$i.QueryValidatorDistributionInfoRequest=$i.QueryParamsResponse=$i.QueryParamsRequest=$i.protobufPackage=void 0;var OE=jA(),bu=ISe(),s0=Af(),Pi=Qi(),wl=Hi();$i.protobufPackage="cosmos.distribution.v1beta1";function QSe(){return{}}$i.QueryParamsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryParamsRequest",encode(e,t=Pi.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=QSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return QSe()},toJSON(e){return{}},fromPartial(e){return QSe()}};function HSe(){return{params:bu.Params.fromPartial({})}}$i.QueryParamsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryParamsResponse",encode(e,t=Pi.BinaryWriter.create()){return e.params!==void 0&&bu.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=HSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=bu.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=HSe();return(0,wl.isSet)(e.params)&&(t.params=bu.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?bu.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=HSe();return e.params!==void 0&&e.params!==null&&(t.params=bu.Params.fromPartial(e.params)),t}};function GSe(){return{validatorAddress:""}}$i.QueryValidatorDistributionInfoRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest",encode(e,t=Pi.BinaryWriter.create()){return e.validatorAddress!==""&&t.uint32(10).string(e.validatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=GSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=GSe();return(0,wl.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=GSe();return t.validatorAddress=e.validatorAddress??"",t}};function qSe(){return{operatorAddress:"",selfBondRewards:[],commission:[]}}$i.QueryValidatorDistributionInfoResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse",encode(e,t=Pi.BinaryWriter.create()){e.operatorAddress!==""&&t.uint32(10).string(e.operatorAddress);for(let r of e.selfBondRewards)s0.DecCoin.encode(r,t.uint32(18).fork()).ldelim();for(let r of e.commission)s0.DecCoin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.operatorAddress=r.string();break;case 2:n.selfBondRewards.push(s0.DecCoin.decode(r,r.uint32()));break;case 3:n.commission.push(s0.DecCoin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qSe();return(0,wl.isSet)(e.operatorAddress)&&(t.operatorAddress=String(e.operatorAddress)),Array.isArray(e?.selfBondRewards)&&(t.selfBondRewards=e.selfBondRewards.map(r=>s0.DecCoin.fromJSON(r))),Array.isArray(e?.commission)&&(t.commission=e.commission.map(r=>s0.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.operatorAddress!==void 0&&(t.operatorAddress=e.operatorAddress),e.selfBondRewards?t.selfBondRewards=e.selfBondRewards.map(r=>r?s0.DecCoin.toJSON(r):void 0):t.selfBondRewards=[],e.commission?t.commission=e.commission.map(r=>r?s0.DecCoin.toJSON(r):void 0):t.commission=[],t},fromPartial(e){let t=qSe();return t.operatorAddress=e.operatorAddress??"",t.selfBondRewards=e.selfBondRewards?.map(r=>s0.DecCoin.fromPartial(r))||[],t.commission=e.commission?.map(r=>s0.DecCoin.fromPartial(r))||[],t}};function VSe(){return{validatorAddress:""}}$i.QueryValidatorOutstandingRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest",encode(e,t=Pi.BinaryWriter.create()){return e.validatorAddress!==""&&t.uint32(10).string(e.validatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=VSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=VSe();return(0,wl.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=VSe();return t.validatorAddress=e.validatorAddress??"",t}};function JSe(){return{rewards:bu.ValidatorOutstandingRewards.fromPartial({})}}$i.QueryValidatorOutstandingRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse",encode(e,t=Pi.BinaryWriter.create()){return e.rewards!==void 0&&bu.ValidatorOutstandingRewards.encode(e.rewards,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=JSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.rewards=bu.ValidatorOutstandingRewards.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=JSe();return(0,wl.isSet)(e.rewards)&&(t.rewards=bu.ValidatorOutstandingRewards.fromJSON(e.rewards)),t},toJSON(e){let t={};return e.rewards!==void 0&&(t.rewards=e.rewards?bu.ValidatorOutstandingRewards.toJSON(e.rewards):void 0),t},fromPartial(e){let t=JSe();return e.rewards!==void 0&&e.rewards!==null&&(t.rewards=bu.ValidatorOutstandingRewards.fromPartial(e.rewards)),t}};function zSe(){return{validatorAddress:""}}$i.QueryValidatorCommissionRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest",encode(e,t=Pi.BinaryWriter.create()){return e.validatorAddress!==""&&t.uint32(10).string(e.validatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=zSe();return(0,wl.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=zSe();return t.validatorAddress=e.validatorAddress??"",t}};function KSe(){return{commission:bu.ValidatorAccumulatedCommission.fromPartial({})}}$i.QueryValidatorCommissionResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse",encode(e,t=Pi.BinaryWriter.create()){return e.commission!==void 0&&bu.ValidatorAccumulatedCommission.encode(e.commission,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=KSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.commission=bu.ValidatorAccumulatedCommission.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=KSe();return(0,wl.isSet)(e.commission)&&(t.commission=bu.ValidatorAccumulatedCommission.fromJSON(e.commission)),t},toJSON(e){let t={};return e.commission!==void 0&&(t.commission=e.commission?bu.ValidatorAccumulatedCommission.toJSON(e.commission):void 0),t},fromPartial(e){let t=KSe();return e.commission!==void 0&&e.commission!==null&&(t.commission=bu.ValidatorAccumulatedCommission.fromPartial(e.commission)),t}};function $Se(){return{validatorAddress:"",startingHeight:BigInt(0),endingHeight:BigInt(0),pagination:void 0}}$i.QueryValidatorSlashesRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest",encode(e,t=Pi.BinaryWriter.create()){return e.validatorAddress!==""&&t.uint32(10).string(e.validatorAddress),e.startingHeight!==BigInt(0)&&t.uint32(16).uint64(e.startingHeight),e.endingHeight!==BigInt(0)&&t.uint32(24).uint64(e.endingHeight),e.pagination!==void 0&&OE.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$Se();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validatorAddress=r.string();break;case 2:n.startingHeight=r.uint64();break;case 3:n.endingHeight=r.uint64();break;case 4:n.pagination=OE.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=$Se();return(0,wl.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,wl.isSet)(e.startingHeight)&&(t.startingHeight=BigInt(e.startingHeight.toString())),(0,wl.isSet)(e.endingHeight)&&(t.endingHeight=BigInt(e.endingHeight.toString())),(0,wl.isSet)(e.pagination)&&(t.pagination=OE.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.startingHeight!==void 0&&(t.startingHeight=(e.startingHeight||BigInt(0)).toString()),e.endingHeight!==void 0&&(t.endingHeight=(e.endingHeight||BigInt(0)).toString()),e.pagination!==void 0&&(t.pagination=e.pagination?OE.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=$Se();return t.validatorAddress=e.validatorAddress??"",e.startingHeight!==void 0&&e.startingHeight!==null&&(t.startingHeight=BigInt(e.startingHeight.toString())),e.endingHeight!==void 0&&e.endingHeight!==null&&(t.endingHeight=BigInt(e.endingHeight.toString())),e.pagination!==void 0&&e.pagination!==null&&(t.pagination=OE.PageRequest.fromPartial(e.pagination)),t}};function YSe(){return{slashes:[],pagination:void 0}}$i.QueryValidatorSlashesResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse",encode(e,t=Pi.BinaryWriter.create()){for(let r of e.slashes)bu.ValidatorSlashEvent.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&OE.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=YSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.slashes.push(bu.ValidatorSlashEvent.decode(r,r.uint32()));break;case 2:n.pagination=OE.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=YSe();return Array.isArray(e?.slashes)&&(t.slashes=e.slashes.map(r=>bu.ValidatorSlashEvent.fromJSON(r))),(0,wl.isSet)(e.pagination)&&(t.pagination=OE.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.slashes?t.slashes=e.slashes.map(r=>r?bu.ValidatorSlashEvent.toJSON(r):void 0):t.slashes=[],e.pagination!==void 0&&(t.pagination=e.pagination?OE.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=YSe();return t.slashes=e.slashes?.map(r=>bu.ValidatorSlashEvent.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=OE.PageResponse.fromPartial(e.pagination)),t}};function WSe(){return{delegatorAddress:"",validatorAddress:""}}$i.QueryDelegationRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest",encode(e,t=Pi.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=WSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=WSe();return(0,wl.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,wl.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=WSe();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t}};function XSe(){return{rewards:[]}}$i.QueryDelegationRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse",encode(e,t=Pi.BinaryWriter.create()){for(let r of e.rewards)s0.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=XSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.rewards.push(s0.DecCoin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=XSe();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(r=>s0.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(r=>r?s0.DecCoin.toJSON(r):void 0):t.rewards=[],t},fromPartial(e){let t=XSe();return t.rewards=e.rewards?.map(r=>s0.DecCoin.fromPartial(r))||[],t}};function ZSe(){return{delegatorAddress:""}}$i.QueryDelegationTotalRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest",encode(e,t=Pi.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ZSe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.delegatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=ZSe();return(0,wl.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),t},fromPartial(e){let t=ZSe();return t.delegatorAddress=e.delegatorAddress??"",t}};function jSe(){return{rewards:[],total:[]}}$i.QueryDelegationTotalRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse",encode(e,t=Pi.BinaryWriter.create()){for(let r of e.rewards)bu.DelegationDelegatorReward.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.total)s0.DecCoin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jSe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.rewards.push(bu.DelegationDelegatorReward.decode(r,r.uint32()));break;case 2:n.total.push(s0.DecCoin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=jSe();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(r=>bu.DelegationDelegatorReward.fromJSON(r))),Array.isArray(e?.total)&&(t.total=e.total.map(r=>s0.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(r=>r?bu.DelegationDelegatorReward.toJSON(r):void 0):t.rewards=[],e.total?t.total=e.total.map(r=>r?s0.DecCoin.toJSON(r):void 0):t.total=[],t},fromPartial(e){let t=jSe();return t.rewards=e.rewards?.map(r=>bu.DelegationDelegatorReward.fromPartial(r))||[],t.total=e.total?.map(r=>s0.DecCoin.fromPartial(r))||[],t}};function e6e(){return{delegatorAddress:""}}$i.QueryDelegatorValidatorsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest",encode(e,t=Pi.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=e6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.delegatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=e6e();return(0,wl.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),t},fromPartial(e){let t=e6e();return t.delegatorAddress=e.delegatorAddress??"",t}};function t6e(){return{validators:[]}}$i.QueryDelegatorValidatorsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse",encode(e,t=Pi.BinaryWriter.create()){for(let r of e.validators)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=t6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validators.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=t6e();return Array.isArray(e?.validators)&&(t.validators=e.validators.map(r=>String(r))),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(r=>r):t.validators=[],t},fromPartial(e){let t=t6e();return t.validators=e.validators?.map(r=>r)||[],t}};function r6e(){return{delegatorAddress:""}}$i.QueryDelegatorWithdrawAddressRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest",encode(e,t=Pi.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=r6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.delegatorAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=r6e();return(0,wl.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),t},fromPartial(e){let t=r6e();return t.delegatorAddress=e.delegatorAddress??"",t}};function n6e(){return{withdrawAddress:""}}$i.QueryDelegatorWithdrawAddressResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse",encode(e,t=Pi.BinaryWriter.create()){return e.withdrawAddress!==""&&t.uint32(10).string(e.withdrawAddress),t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=n6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.withdrawAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=n6e();return(0,wl.isSet)(e.withdrawAddress)&&(t.withdrawAddress=String(e.withdrawAddress)),t},toJSON(e){let t={};return e.withdrawAddress!==void 0&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial(e){let t=n6e();return t.withdrawAddress=e.withdrawAddress??"",t}};function i6e(){return{}}$i.QueryCommunityPoolRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolRequest",encode(e,t=Pi.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=i6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return i6e()},toJSON(e){return{}},fromPartial(e){return i6e()}};function o6e(){return{pool:[]}}$i.QueryCommunityPoolResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolResponse",encode(e,t=Pi.BinaryWriter.create()){for(let r of e.pool)s0.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Pi.BinaryReader?e:new Pi.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=o6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pool.push(s0.DecCoin.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=o6e();return Array.isArray(e?.pool)&&(t.pool=e.pool.map(r=>s0.DecCoin.fromJSON(r))),t},toJSON(e){let t={};return e.pool?t.pool=e.pool.map(r=>r?s0.DecCoin.toJSON(r):void 0):t.pool=[],t},fromPartial(e){let t=o6e();return t.pool=e.pool?.map(r=>s0.DecCoin.fromPartial(r))||[],t}};var a6e=class{constructor(t){this.rpc=t,this.Params=this.Params.bind(this),this.ValidatorDistributionInfo=this.ValidatorDistributionInfo.bind(this),this.ValidatorOutstandingRewards=this.ValidatorOutstandingRewards.bind(this),this.ValidatorCommission=this.ValidatorCommission.bind(this),this.ValidatorSlashes=this.ValidatorSlashes.bind(this),this.DelegationRewards=this.DelegationRewards.bind(this),this.DelegationTotalRewards=this.DelegationTotalRewards.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorWithdrawAddress=this.DelegatorWithdrawAddress.bind(this),this.CommunityPool=this.CommunityPool.bind(this)}Params(t={}){let r=$i.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","Params",r).then(n=>$i.QueryParamsResponse.decode(new Pi.BinaryReader(n)))}ValidatorDistributionInfo(t){let r=$i.QueryValidatorDistributionInfoRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorDistributionInfo",r).then(n=>$i.QueryValidatorDistributionInfoResponse.decode(new Pi.BinaryReader(n)))}ValidatorOutstandingRewards(t){let r=$i.QueryValidatorOutstandingRewardsRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",r).then(n=>$i.QueryValidatorOutstandingRewardsResponse.decode(new Pi.BinaryReader(n)))}ValidatorCommission(t){let r=$i.QueryValidatorCommissionRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",r).then(n=>$i.QueryValidatorCommissionResponse.decode(new Pi.BinaryReader(n)))}ValidatorSlashes(t){let r=$i.QueryValidatorSlashesRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",r).then(n=>$i.QueryValidatorSlashesResponse.decode(new Pi.BinaryReader(n)))}DelegationRewards(t){let r=$i.QueryDelegationRewardsRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",r).then(n=>$i.QueryDelegationRewardsResponse.decode(new Pi.BinaryReader(n)))}DelegationTotalRewards(t){let r=$i.QueryDelegationTotalRewardsRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",r).then(n=>$i.QueryDelegationTotalRewardsResponse.decode(new Pi.BinaryReader(n)))}DelegatorValidators(t){let r=$i.QueryDelegatorValidatorsRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",r).then(n=>$i.QueryDelegatorValidatorsResponse.decode(new Pi.BinaryReader(n)))}DelegatorWithdrawAddress(t){let r=$i.QueryDelegatorWithdrawAddressRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",r).then(n=>$i.QueryDelegatorWithdrawAddressResponse.decode(new Pi.BinaryReader(n)))}CommunityPool(t={}){let r=$i.QueryCommunityPoolRequest.encode(t).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",r).then(n=>$i.QueryCommunityPoolResponse.decode(new Pi.BinaryReader(n)))}};$i.QueryClientImpl=a6e});var fmt=ir(Hee=>{"use strict";J();K();z();Object.defineProperty(Hee,"__esModule",{value:!0});Hee.setupDistributionExtension=void 0;var Ipn=umt(),dmt=ep();function Cpn(e){let t=(0,dmt.createProtobufRpcClient)(e),r=new Ipn.QueryClientImpl(t);return{distribution:{communityPool:async()=>await r.CommunityPool({}),delegationRewards:async(i,n)=>await r.DelegationRewards({delegatorAddress:i,validatorAddress:n}),delegationTotalRewards:async i=>await r.DelegationTotalRewards({delegatorAddress:i}),delegatorValidators:async i=>await r.DelegatorValidators({delegatorAddress:i}),delegatorWithdrawAddress:async i=>await r.DelegatorWithdrawAddress({delegatorAddress:i}),params:async()=>await r.Params({}),validatorCommission:async i=>await r.ValidatorCommission({validatorAddress:i}),validatorOutstandingRewards:async i=>await r.ValidatorOutstandingRewards({validatorAddress:i}),validatorSlashes:async(i,n,o,d)=>await r.ValidatorSlashes({validatorAddress:i,startingHeight:BigInt(n),endingHeight:BigInt(o),pagination:(0,dmt.createPagination)(d)})}}}Hee.setupDistributionExtension=Cpn});var lmt=ir(n9=>{"use strict";J();K();z();Object.defineProperty(n9,"__esModule",{value:!0});n9.createEvidenceAminoConverters=n9.isAminoMsgSubmitEvidence=void 0;function wpn(e){return e.type==="cosmos-sdk/MsgSubmitEvidence"}n9.isAminoMsgSubmitEvidence=wpn;function Opn(){throw new Error("Not implemented")}n9.createEvidenceAminoConverters=Opn});var hmt=ir(Gee=>{"use strict";J();K();z();Object.defineProperty(Gee,"__esModule",{value:!0});Gee.createFeegrantAminoConverters=void 0;function Npn(){return{}}Gee.createFeegrantAminoConverters=Npn});var Amt=ir(Ol=>{"use strict";J();K();z();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.MsgClientImpl=Ol.MsgRevokeAllowanceResponse=Ol.MsgRevokeAllowance=Ol.MsgGrantAllowanceResponse=Ol.MsgGrantAllowance=Ol.protobufPackage=void 0;var zF=ru(),d1=Qi(),KF=Hi();Ol.protobufPackage="cosmos.feegrant.v1beta1";function s6e(){return{granter:"",grantee:"",allowance:void 0}}Ol.MsgGrantAllowance={typeUrl:"/cosmos.feegrant.v1beta1.MsgGrantAllowance",encode(e,t=d1.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),e.allowance!==void 0&&zF.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof d1.BinaryReader?e:new d1.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=s6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.allowance=zF.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=s6e();return(0,KF.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,KF.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,KF.isSet)(e.allowance)&&(t.allowance=zF.Any.fromJSON(e.allowance)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.allowance!==void 0&&(t.allowance=e.allowance?zF.Any.toJSON(e.allowance):void 0),t},fromPartial(e){let t=s6e();return t.granter=e.granter??"",t.grantee=e.grantee??"",e.allowance!==void 0&&e.allowance!==null&&(t.allowance=zF.Any.fromPartial(e.allowance)),t}};function c6e(){return{}}Ol.MsgGrantAllowanceResponse={typeUrl:"/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse",encode(e,t=d1.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof d1.BinaryReader?e:new d1.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=c6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return c6e()},toJSON(e){return{}},fromPartial(e){return c6e()}};function u6e(){return{granter:"",grantee:""}}Ol.MsgRevokeAllowance={typeUrl:"/cosmos.feegrant.v1beta1.MsgRevokeAllowance",encode(e,t=d1.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),t},decode(e,t){let r=e instanceof d1.BinaryReader?e:new d1.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=u6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=u6e();return(0,KF.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,KF.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),t},fromPartial(e){let t=u6e();return t.granter=e.granter??"",t.grantee=e.grantee??"",t}};function d6e(){return{}}Ol.MsgRevokeAllowanceResponse={typeUrl:"/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse",encode(e,t=d1.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof d1.BinaryReader?e:new d1.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=d6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return d6e()},toJSON(e){return{}},fromPartial(e){return d6e()}};var f6e=class{constructor(t){this.rpc=t,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(t){let r=Ol.MsgGrantAllowance.encode(t).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",r).then(n=>Ol.MsgGrantAllowanceResponse.decode(new d1.BinaryReader(n)))}RevokeAllowance(t){let r=Ol.MsgRevokeAllowance.encode(t).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",r).then(n=>Ol.MsgRevokeAllowanceResponse.decode(new d1.BinaryReader(n)))}};Ol.MsgClientImpl=f6e});var gmt=ir(qee=>{"use strict";J();K();z();Object.defineProperty(qee,"__esModule",{value:!0});qee.feegrantTypes=void 0;var pmt=Amt();qee.feegrantTypes=[["/cosmos.feegrant.v1beta1.MsgGrantAllowance",pmt.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",pmt.MsgRevokeAllowance]]});var wS=ir(i9=>{"use strict";J();K();z();Object.defineProperty(i9,"__esModule",{value:!0});i9.Duration=i9.protobufPackage=void 0;var l6e=Qi(),_mt=Hi();i9.protobufPackage="google.protobuf";function h6e(){return{seconds:BigInt(0),nanos:0}}i9.Duration={typeUrl:"/google.protobuf.Duration",encode(e,t=l6e.BinaryWriter.create()){return e.seconds!==BigInt(0)&&t.uint32(8).int64(e.seconds),e.nanos!==0&&t.uint32(16).int32(e.nanos),t},decode(e,t){let r=e instanceof l6e.BinaryReader?e:new l6e.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=h6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.seconds=r.int64();break;case 2:n.nanos=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=h6e();return(0,_mt.isSet)(e.seconds)&&(t.seconds=BigInt(e.seconds.toString())),(0,_mt.isSet)(e.nanos)&&(t.nanos=Number(e.nanos)),t},toJSON(e){let t={};return e.seconds!==void 0&&(t.seconds=(e.seconds||BigInt(0)).toString()),e.nanos!==void 0&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){let t=h6e();return e.seconds!==void 0&&e.seconds!==null&&(t.seconds=BigInt(e.seconds.toString())),t.nanos=e.nanos??0,t}}});var mmt=ir(Nl=>{"use strict";J();K();z();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.Grant=Nl.AllowedMsgAllowance=Nl.PeriodicAllowance=Nl.BasicAllowance=Nl.protobufPackage=void 0;var rp=Af(),R5=u1(),o9=wS(),NE=ru(),R2=Qi(),v2=Hi();Nl.protobufPackage="cosmos.feegrant.v1beta1";function A6e(){return{spendLimit:[],expiration:void 0}}Nl.BasicAllowance={typeUrl:"/cosmos.feegrant.v1beta1.BasicAllowance",encode(e,t=R2.BinaryWriter.create()){for(let r of e.spendLimit)rp.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.expiration!==void 0&&R5.Timestamp.encode(e.expiration,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof R2.BinaryReader?e:new R2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=A6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.spendLimit.push(rp.Coin.decode(r,r.uint32()));break;case 2:n.expiration=R5.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=A6e();return Array.isArray(e?.spendLimit)&&(t.spendLimit=e.spendLimit.map(r=>rp.Coin.fromJSON(r))),(0,v2.isSet)(e.expiration)&&(t.expiration=(0,v2.fromJsonTimestamp)(e.expiration)),t},toJSON(e){let t={};return e.spendLimit?t.spendLimit=e.spendLimit.map(r=>r?rp.Coin.toJSON(r):void 0):t.spendLimit=[],e.expiration!==void 0&&(t.expiration=(0,v2.fromTimestamp)(e.expiration).toISOString()),t},fromPartial(e){let t=A6e();return t.spendLimit=e.spendLimit?.map(r=>rp.Coin.fromPartial(r))||[],e.expiration!==void 0&&e.expiration!==null&&(t.expiration=R5.Timestamp.fromPartial(e.expiration)),t}};function p6e(){return{basic:Nl.BasicAllowance.fromPartial({}),period:o9.Duration.fromPartial({}),periodSpendLimit:[],periodCanSpend:[],periodReset:R5.Timestamp.fromPartial({})}}Nl.PeriodicAllowance={typeUrl:"/cosmos.feegrant.v1beta1.PeriodicAllowance",encode(e,t=R2.BinaryWriter.create()){e.basic!==void 0&&Nl.BasicAllowance.encode(e.basic,t.uint32(10).fork()).ldelim(),e.period!==void 0&&o9.Duration.encode(e.period,t.uint32(18).fork()).ldelim();for(let r of e.periodSpendLimit)rp.Coin.encode(r,t.uint32(26).fork()).ldelim();for(let r of e.periodCanSpend)rp.Coin.encode(r,t.uint32(34).fork()).ldelim();return e.periodReset!==void 0&&R5.Timestamp.encode(e.periodReset,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof R2.BinaryReader?e:new R2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=p6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.basic=Nl.BasicAllowance.decode(r,r.uint32());break;case 2:n.period=o9.Duration.decode(r,r.uint32());break;case 3:n.periodSpendLimit.push(rp.Coin.decode(r,r.uint32()));break;case 4:n.periodCanSpend.push(rp.Coin.decode(r,r.uint32()));break;case 5:n.periodReset=R5.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=p6e();return(0,v2.isSet)(e.basic)&&(t.basic=Nl.BasicAllowance.fromJSON(e.basic)),(0,v2.isSet)(e.period)&&(t.period=o9.Duration.fromJSON(e.period)),Array.isArray(e?.periodSpendLimit)&&(t.periodSpendLimit=e.periodSpendLimit.map(r=>rp.Coin.fromJSON(r))),Array.isArray(e?.periodCanSpend)&&(t.periodCanSpend=e.periodCanSpend.map(r=>rp.Coin.fromJSON(r))),(0,v2.isSet)(e.periodReset)&&(t.periodReset=(0,v2.fromJsonTimestamp)(e.periodReset)),t},toJSON(e){let t={};return e.basic!==void 0&&(t.basic=e.basic?Nl.BasicAllowance.toJSON(e.basic):void 0),e.period!==void 0&&(t.period=e.period?o9.Duration.toJSON(e.period):void 0),e.periodSpendLimit?t.periodSpendLimit=e.periodSpendLimit.map(r=>r?rp.Coin.toJSON(r):void 0):t.periodSpendLimit=[],e.periodCanSpend?t.periodCanSpend=e.periodCanSpend.map(r=>r?rp.Coin.toJSON(r):void 0):t.periodCanSpend=[],e.periodReset!==void 0&&(t.periodReset=(0,v2.fromTimestamp)(e.periodReset).toISOString()),t},fromPartial(e){let t=p6e();return e.basic!==void 0&&e.basic!==null&&(t.basic=Nl.BasicAllowance.fromPartial(e.basic)),e.period!==void 0&&e.period!==null&&(t.period=o9.Duration.fromPartial(e.period)),t.periodSpendLimit=e.periodSpendLimit?.map(r=>rp.Coin.fromPartial(r))||[],t.periodCanSpend=e.periodCanSpend?.map(r=>rp.Coin.fromPartial(r))||[],e.periodReset!==void 0&&e.periodReset!==null&&(t.periodReset=R5.Timestamp.fromPartial(e.periodReset)),t}};function g6e(){return{allowance:void 0,allowedMessages:[]}}Nl.AllowedMsgAllowance={typeUrl:"/cosmos.feegrant.v1beta1.AllowedMsgAllowance",encode(e,t=R2.BinaryWriter.create()){e.allowance!==void 0&&NE.Any.encode(e.allowance,t.uint32(10).fork()).ldelim();for(let r of e.allowedMessages)t.uint32(18).string(r);return t},decode(e,t){let r=e instanceof R2.BinaryReader?e:new R2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=g6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.allowance=NE.Any.decode(r,r.uint32());break;case 2:n.allowedMessages.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=g6e();return(0,v2.isSet)(e.allowance)&&(t.allowance=NE.Any.fromJSON(e.allowance)),Array.isArray(e?.allowedMessages)&&(t.allowedMessages=e.allowedMessages.map(r=>String(r))),t},toJSON(e){let t={};return e.allowance!==void 0&&(t.allowance=e.allowance?NE.Any.toJSON(e.allowance):void 0),e.allowedMessages?t.allowedMessages=e.allowedMessages.map(r=>r):t.allowedMessages=[],t},fromPartial(e){let t=g6e();return e.allowance!==void 0&&e.allowance!==null&&(t.allowance=NE.Any.fromPartial(e.allowance)),t.allowedMessages=e.allowedMessages?.map(r=>r)||[],t}};function _6e(){return{granter:"",grantee:"",allowance:void 0}}Nl.Grant={typeUrl:"/cosmos.feegrant.v1beta1.Grant",encode(e,t=R2.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),e.allowance!==void 0&&NE.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof R2.BinaryReader?e:new R2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.allowance=NE.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_6e();return(0,v2.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,v2.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,v2.isSet)(e.allowance)&&(t.allowance=NE.Any.fromJSON(e.allowance)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.allowance!==void 0&&(t.allowance=e.allowance?NE.Any.toJSON(e.allowance):void 0),t},fromPartial(e){let t=_6e();return t.granter=e.granter??"",t.grantee=e.grantee??"",e.allowance!==void 0&&e.allowance!==null&&(t.allowance=NE.Any.fromPartial(e.allowance)),t}}});var ymt=ir(w0=>{"use strict";J();K();z();Object.defineProperty(w0,"__esModule",{value:!0});w0.QueryClientImpl=w0.QueryAllowancesByGranterResponse=w0.QueryAllowancesByGranterRequest=w0.QueryAllowancesResponse=w0.QueryAllowancesRequest=w0.QueryAllowanceResponse=w0.QueryAllowanceRequest=w0.protobufPackage=void 0;var yf=jA(),np=mmt(),Vd=Qi(),OS=Hi();w0.protobufPackage="cosmos.feegrant.v1beta1";function m6e(){return{granter:"",grantee:""}}w0.QueryAllowanceRequest={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowanceRequest",encode(e,t=Vd.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.grantee!==""&&t.uint32(18).string(e.grantee),t},decode(e,t){let r=e instanceof Vd.BinaryReader?e:new Vd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=m6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=m6e();return(0,OS.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,OS.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),t},fromPartial(e){let t=m6e();return t.granter=e.granter??"",t.grantee=e.grantee??"",t}};function y6e(){return{allowance:void 0}}w0.QueryAllowanceResponse={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowanceResponse",encode(e,t=Vd.BinaryWriter.create()){return e.allowance!==void 0&&np.Grant.encode(e.allowance,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Vd.BinaryReader?e:new Vd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=y6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.allowance=np.Grant.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=y6e();return(0,OS.isSet)(e.allowance)&&(t.allowance=np.Grant.fromJSON(e.allowance)),t},toJSON(e){let t={};return e.allowance!==void 0&&(t.allowance=e.allowance?np.Grant.toJSON(e.allowance):void 0),t},fromPartial(e){let t=y6e();return e.allowance!==void 0&&e.allowance!==null&&(t.allowance=np.Grant.fromPartial(e.allowance)),t}};function b6e(){return{grantee:"",pagination:void 0}}w0.QueryAllowancesRequest={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesRequest",encode(e,t=Vd.BinaryWriter.create()){return e.grantee!==""&&t.uint32(10).string(e.grantee),e.pagination!==void 0&&yf.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Vd.BinaryReader?e:new Vd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=b6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.grantee=r.string();break;case 2:n.pagination=yf.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=b6e();return(0,OS.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,OS.isSet)(e.pagination)&&(t.pagination=yf.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grantee!==void 0&&(t.grantee=e.grantee),e.pagination!==void 0&&(t.pagination=e.pagination?yf.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=b6e();return t.grantee=e.grantee??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=yf.PageRequest.fromPartial(e.pagination)),t}};function E6e(){return{allowances:[],pagination:void 0}}w0.QueryAllowancesResponse={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesResponse",encode(e,t=Vd.BinaryWriter.create()){for(let r of e.allowances)np.Grant.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&yf.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Vd.BinaryReader?e:new Vd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=E6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.allowances.push(np.Grant.decode(r,r.uint32()));break;case 2:n.pagination=yf.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=E6e();return Array.isArray(e?.allowances)&&(t.allowances=e.allowances.map(r=>np.Grant.fromJSON(r))),(0,OS.isSet)(e.pagination)&&(t.pagination=yf.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.allowances?t.allowances=e.allowances.map(r=>r?np.Grant.toJSON(r):void 0):t.allowances=[],e.pagination!==void 0&&(t.pagination=e.pagination?yf.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=E6e();return t.allowances=e.allowances?.map(r=>np.Grant.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=yf.PageResponse.fromPartial(e.pagination)),t}};function v6e(){return{granter:"",pagination:void 0}}w0.QueryAllowancesByGranterRequest={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",encode(e,t=Vd.BinaryWriter.create()){return e.granter!==""&&t.uint32(10).string(e.granter),e.pagination!==void 0&&yf.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Vd.BinaryReader?e:new Vd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=v6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.granter=r.string();break;case 2:n.pagination=yf.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=v6e();return(0,OS.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,OS.isSet)(e.pagination)&&(t.pagination=yf.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.pagination!==void 0&&(t.pagination=e.pagination?yf.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=v6e();return t.granter=e.granter??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=yf.PageRequest.fromPartial(e.pagination)),t}};function R6e(){return{allowances:[],pagination:void 0}}w0.QueryAllowancesByGranterResponse={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",encode(e,t=Vd.BinaryWriter.create()){for(let r of e.allowances)np.Grant.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&yf.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Vd.BinaryReader?e:new Vd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=R6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.allowances.push(np.Grant.decode(r,r.uint32()));break;case 2:n.pagination=yf.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=R6e();return Array.isArray(e?.allowances)&&(t.allowances=e.allowances.map(r=>np.Grant.fromJSON(r))),(0,OS.isSet)(e.pagination)&&(t.pagination=yf.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.allowances?t.allowances=e.allowances.map(r=>r?np.Grant.toJSON(r):void 0):t.allowances=[],e.pagination!==void 0&&(t.pagination=e.pagination?yf.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=R6e();return t.allowances=e.allowances?.map(r=>np.Grant.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=yf.PageResponse.fromPartial(e.pagination)),t}};var S6e=class{constructor(t){this.rpc=t,this.Allowance=this.Allowance.bind(this),this.Allowances=this.Allowances.bind(this),this.AllowancesByGranter=this.AllowancesByGranter.bind(this)}Allowance(t){let r=w0.QueryAllowanceRequest.encode(t).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowance",r).then(n=>w0.QueryAllowanceResponse.decode(new Vd.BinaryReader(n)))}Allowances(t){let r=w0.QueryAllowancesRequest.encode(t).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowances",r).then(n=>w0.QueryAllowancesResponse.decode(new Vd.BinaryReader(n)))}AllowancesByGranter(t){let r=w0.QueryAllowancesByGranterRequest.encode(t).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","AllowancesByGranter",r).then(n=>w0.QueryAllowancesByGranterResponse.decode(new Vd.BinaryReader(n)))}};w0.QueryClientImpl=S6e});var Emt=ir(Vee=>{"use strict";J();K();z();Object.defineProperty(Vee,"__esModule",{value:!0});Vee.setupFeegrantExtension=void 0;var xpn=ymt(),bmt=ep();function Tpn(e){let t=(0,bmt.createProtobufRpcClient)(e),r=new xpn.QueryClientImpl(t);return{feegrant:{allowance:async(i,n)=>await r.Allowance({granter:i,grantee:n}),allowances:async(i,n)=>await r.Allowances({grantee:i,pagination:(0,bmt.createPagination)(n)})}}}Vee.setupFeegrantExtension=Tpn});var Jee=ir(sa=>{"use strict";J();K();z();Object.defineProperty(sa,"__esModule",{value:!0});sa.TallyParams=sa.VotingParams=sa.DepositParams=sa.Vote=sa.TallyResult=sa.Proposal=sa.Deposit=sa.TextProposal=sa.WeightedVoteOption=sa.proposalStatusToJSON=sa.proposalStatusFromJSON=sa.ProposalStatus=sa.voteOptionToJSON=sa.voteOptionFromJSON=sa.VoteOption=sa.protobufPackage=void 0;var ip=Af(),$F=ru(),cA=u1(),S2=wS(),Lu=Qi(),Za=Hi();sa.protobufPackage="cosmos.gov.v1beta1";var f1;(function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(f1||(sa.VoteOption=f1={}));function D6e(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return f1.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return f1.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return f1.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return f1.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return f1.VOTE_OPTION_NO_WITH_VETO;default:return f1.UNRECOGNIZED}}sa.voteOptionFromJSON=D6e;function k6e(e){switch(e){case f1.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case f1.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case f1.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case f1.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case f1.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case f1.UNRECOGNIZED:default:return"UNRECOGNIZED"}}sa.voteOptionToJSON=k6e;var uA;(function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",e[e.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",e[e.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uA||(sa.ProposalStatus=uA={}));function vmt(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return uA.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return uA.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return uA.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return uA.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return uA.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return uA.PROPOSAL_STATUS_FAILED;default:return uA.UNRECOGNIZED}}sa.proposalStatusFromJSON=vmt;function Rmt(e){switch(e){case uA.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case uA.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case uA.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case uA.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case uA.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case uA.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case uA.UNRECOGNIZED:default:return"UNRECOGNIZED"}}sa.proposalStatusToJSON=Rmt;function I6e(){return{option:0,weight:""}}sa.WeightedVoteOption={typeUrl:"/cosmos.gov.v1beta1.WeightedVoteOption",encode(e,t=Lu.BinaryWriter.create()){return e.option!==0&&t.uint32(8).int32(e.option),e.weight!==""&&t.uint32(18).string(e.weight),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=I6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.option=r.int32();break;case 2:n.weight=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=I6e();return(0,Za.isSet)(e.option)&&(t.option=D6e(e.option)),(0,Za.isSet)(e.weight)&&(t.weight=String(e.weight)),t},toJSON(e){let t={};return e.option!==void 0&&(t.option=k6e(e.option)),e.weight!==void 0&&(t.weight=e.weight),t},fromPartial(e){let t=I6e();return t.option=e.option??0,t.weight=e.weight??"",t}};function C6e(){return{title:"",description:""}}sa.TextProposal={typeUrl:"/cosmos.gov.v1beta1.TextProposal",encode(e,t=Lu.BinaryWriter.create()){return e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=C6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=C6e();return(0,Za.isSet)(e.title)&&(t.title=String(e.title)),(0,Za.isSet)(e.description)&&(t.description=String(e.description)),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),t},fromPartial(e){let t=C6e();return t.title=e.title??"",t.description=e.description??"",t}};function w6e(){return{proposalId:BigInt(0),depositor:"",amount:[]}}sa.Deposit={typeUrl:"/cosmos.gov.v1beta1.Deposit",encode(e,t=Lu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.depositor!==""&&t.uint32(18).string(e.depositor);for(let r of e.amount)ip.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=w6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.depositor=r.string();break;case 3:n.amount.push(ip.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=w6e();return(0,Za.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,Za.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>ip.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.depositor!==void 0&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(r=>r?ip.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=w6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(r=>ip.Coin.fromPartial(r))||[],t}};function O6e(){return{proposalId:BigInt(0),content:void 0,status:0,finalTallyResult:sa.TallyResult.fromPartial({}),submitTime:cA.Timestamp.fromPartial({}),depositEndTime:cA.Timestamp.fromPartial({}),totalDeposit:[],votingStartTime:cA.Timestamp.fromPartial({}),votingEndTime:cA.Timestamp.fromPartial({})}}sa.Proposal={typeUrl:"/cosmos.gov.v1beta1.Proposal",encode(e,t=Lu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.content!==void 0&&$F.Any.encode(e.content,t.uint32(18).fork()).ldelim(),e.status!==0&&t.uint32(24).int32(e.status),e.finalTallyResult!==void 0&&sa.TallyResult.encode(e.finalTallyResult,t.uint32(34).fork()).ldelim(),e.submitTime!==void 0&&cA.Timestamp.encode(e.submitTime,t.uint32(42).fork()).ldelim(),e.depositEndTime!==void 0&&cA.Timestamp.encode(e.depositEndTime,t.uint32(50).fork()).ldelim();for(let r of e.totalDeposit)ip.Coin.encode(r,t.uint32(58).fork()).ldelim();return e.votingStartTime!==void 0&&cA.Timestamp.encode(e.votingStartTime,t.uint32(66).fork()).ldelim(),e.votingEndTime!==void 0&&cA.Timestamp.encode(e.votingEndTime,t.uint32(74).fork()).ldelim(),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=O6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.content=$F.Any.decode(r,r.uint32());break;case 3:n.status=r.int32();break;case 4:n.finalTallyResult=sa.TallyResult.decode(r,r.uint32());break;case 5:n.submitTime=cA.Timestamp.decode(r,r.uint32());break;case 6:n.depositEndTime=cA.Timestamp.decode(r,r.uint32());break;case 7:n.totalDeposit.push(ip.Coin.decode(r,r.uint32()));break;case 8:n.votingStartTime=cA.Timestamp.decode(r,r.uint32());break;case 9:n.votingEndTime=cA.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=O6e();return(0,Za.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,Za.isSet)(e.content)&&(t.content=$F.Any.fromJSON(e.content)),(0,Za.isSet)(e.status)&&(t.status=vmt(e.status)),(0,Za.isSet)(e.finalTallyResult)&&(t.finalTallyResult=sa.TallyResult.fromJSON(e.finalTallyResult)),(0,Za.isSet)(e.submitTime)&&(t.submitTime=(0,Za.fromJsonTimestamp)(e.submitTime)),(0,Za.isSet)(e.depositEndTime)&&(t.depositEndTime=(0,Za.fromJsonTimestamp)(e.depositEndTime)),Array.isArray(e?.totalDeposit)&&(t.totalDeposit=e.totalDeposit.map(r=>ip.Coin.fromJSON(r))),(0,Za.isSet)(e.votingStartTime)&&(t.votingStartTime=(0,Za.fromJsonTimestamp)(e.votingStartTime)),(0,Za.isSet)(e.votingEndTime)&&(t.votingEndTime=(0,Za.fromJsonTimestamp)(e.votingEndTime)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.content!==void 0&&(t.content=e.content?$F.Any.toJSON(e.content):void 0),e.status!==void 0&&(t.status=Rmt(e.status)),e.finalTallyResult!==void 0&&(t.finalTallyResult=e.finalTallyResult?sa.TallyResult.toJSON(e.finalTallyResult):void 0),e.submitTime!==void 0&&(t.submitTime=(0,Za.fromTimestamp)(e.submitTime).toISOString()),e.depositEndTime!==void 0&&(t.depositEndTime=(0,Za.fromTimestamp)(e.depositEndTime).toISOString()),e.totalDeposit?t.totalDeposit=e.totalDeposit.map(r=>r?ip.Coin.toJSON(r):void 0):t.totalDeposit=[],e.votingStartTime!==void 0&&(t.votingStartTime=(0,Za.fromTimestamp)(e.votingStartTime).toISOString()),e.votingEndTime!==void 0&&(t.votingEndTime=(0,Za.fromTimestamp)(e.votingEndTime).toISOString()),t},fromPartial(e){let t=O6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),e.content!==void 0&&e.content!==null&&(t.content=$F.Any.fromPartial(e.content)),t.status=e.status??0,e.finalTallyResult!==void 0&&e.finalTallyResult!==null&&(t.finalTallyResult=sa.TallyResult.fromPartial(e.finalTallyResult)),e.submitTime!==void 0&&e.submitTime!==null&&(t.submitTime=cA.Timestamp.fromPartial(e.submitTime)),e.depositEndTime!==void 0&&e.depositEndTime!==null&&(t.depositEndTime=cA.Timestamp.fromPartial(e.depositEndTime)),t.totalDeposit=e.totalDeposit?.map(r=>ip.Coin.fromPartial(r))||[],e.votingStartTime!==void 0&&e.votingStartTime!==null&&(t.votingStartTime=cA.Timestamp.fromPartial(e.votingStartTime)),e.votingEndTime!==void 0&&e.votingEndTime!==null&&(t.votingEndTime=cA.Timestamp.fromPartial(e.votingEndTime)),t}};function N6e(){return{yes:"",abstain:"",no:"",noWithVeto:""}}sa.TallyResult={typeUrl:"/cosmos.gov.v1beta1.TallyResult",encode(e,t=Lu.BinaryWriter.create()){return e.yes!==""&&t.uint32(10).string(e.yes),e.abstain!==""&&t.uint32(18).string(e.abstain),e.no!==""&&t.uint32(26).string(e.no),e.noWithVeto!==""&&t.uint32(34).string(e.noWithVeto),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=N6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.yes=r.string();break;case 2:n.abstain=r.string();break;case 3:n.no=r.string();break;case 4:n.noWithVeto=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=N6e();return(0,Za.isSet)(e.yes)&&(t.yes=String(e.yes)),(0,Za.isSet)(e.abstain)&&(t.abstain=String(e.abstain)),(0,Za.isSet)(e.no)&&(t.no=String(e.no)),(0,Za.isSet)(e.noWithVeto)&&(t.noWithVeto=String(e.noWithVeto)),t},toJSON(e){let t={};return e.yes!==void 0&&(t.yes=e.yes),e.abstain!==void 0&&(t.abstain=e.abstain),e.no!==void 0&&(t.no=e.no),e.noWithVeto!==void 0&&(t.noWithVeto=e.noWithVeto),t},fromPartial(e){let t=N6e();return t.yes=e.yes??"",t.abstain=e.abstain??"",t.no=e.no??"",t.noWithVeto=e.noWithVeto??"",t}};function x6e(){return{proposalId:BigInt(0),voter:"",option:0,options:[]}}sa.Vote={typeUrl:"/cosmos.gov.v1beta1.Vote",encode(e,t=Lu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter),e.option!==0&&t.uint32(24).int32(e.option);for(let r of e.options)sa.WeightedVoteOption.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=x6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.option=r.int32();break;case 4:n.options.push(sa.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=x6e();return(0,Za.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,Za.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,Za.isSet)(e.option)&&(t.option=D6e(e.option)),Array.isArray(e?.options)&&(t.options=e.options.map(r=>sa.WeightedVoteOption.fromJSON(r))),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.option!==void 0&&(t.option=k6e(e.option)),e.options?t.options=e.options.map(r=>r?sa.WeightedVoteOption.toJSON(r):void 0):t.options=[],t},fromPartial(e){let t=x6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.options=e.options?.map(r=>sa.WeightedVoteOption.fromPartial(r))||[],t}};function T6e(){return{minDeposit:[],maxDepositPeriod:S2.Duration.fromPartial({})}}sa.DepositParams={typeUrl:"/cosmos.gov.v1beta1.DepositParams",encode(e,t=Lu.BinaryWriter.create()){for(let r of e.minDeposit)ip.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.maxDepositPeriod!==void 0&&S2.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=T6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.minDeposit.push(ip.Coin.decode(r,r.uint32()));break;case 2:n.maxDepositPeriod=S2.Duration.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=T6e();return Array.isArray(e?.minDeposit)&&(t.minDeposit=e.minDeposit.map(r=>ip.Coin.fromJSON(r))),(0,Za.isSet)(e.maxDepositPeriod)&&(t.maxDepositPeriod=S2.Duration.fromJSON(e.maxDepositPeriod)),t},toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(r=>r?ip.Coin.toJSON(r):void 0):t.minDeposit=[],e.maxDepositPeriod!==void 0&&(t.maxDepositPeriod=e.maxDepositPeriod?S2.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial(e){let t=T6e();return t.minDeposit=e.minDeposit?.map(r=>ip.Coin.fromPartial(r))||[],e.maxDepositPeriod!==void 0&&e.maxDepositPeriod!==null&&(t.maxDepositPeriod=S2.Duration.fromPartial(e.maxDepositPeriod)),t}};function B6e(){return{votingPeriod:S2.Duration.fromPartial({})}}sa.VotingParams={typeUrl:"/cosmos.gov.v1beta1.VotingParams",encode(e,t=Lu.BinaryWriter.create()){return e.votingPeriod!==void 0&&S2.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=B6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.votingPeriod=S2.Duration.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=B6e();return(0,Za.isSet)(e.votingPeriod)&&(t.votingPeriod=S2.Duration.fromJSON(e.votingPeriod)),t},toJSON(e){let t={};return e.votingPeriod!==void 0&&(t.votingPeriod=e.votingPeriod?S2.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial(e){let t=B6e();return e.votingPeriod!==void 0&&e.votingPeriod!==null&&(t.votingPeriod=S2.Duration.fromPartial(e.votingPeriod)),t}};function M6e(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}sa.TallyParams={typeUrl:"/cosmos.gov.v1beta1.TallyParams",encode(e,t=Lu.BinaryWriter.create()){return e.quorum.length!==0&&t.uint32(10).bytes(e.quorum),e.threshold.length!==0&&t.uint32(18).bytes(e.threshold),e.vetoThreshold.length!==0&&t.uint32(26).bytes(e.vetoThreshold),t},decode(e,t){let r=e instanceof Lu.BinaryReader?e:new Lu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=M6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.quorum=r.bytes();break;case 2:n.threshold=r.bytes();break;case 3:n.vetoThreshold=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=M6e();return(0,Za.isSet)(e.quorum)&&(t.quorum=(0,Za.bytesFromBase64)(e.quorum)),(0,Za.isSet)(e.threshold)&&(t.threshold=(0,Za.bytesFromBase64)(e.threshold)),(0,Za.isSet)(e.vetoThreshold)&&(t.vetoThreshold=(0,Za.bytesFromBase64)(e.vetoThreshold)),t},toJSON(e){let t={};return e.quorum!==void 0&&(t.quorum=(0,Za.base64FromBytes)(e.quorum!==void 0?e.quorum:new Uint8Array)),e.threshold!==void 0&&(t.threshold=(0,Za.base64FromBytes)(e.threshold!==void 0?e.threshold:new Uint8Array)),e.vetoThreshold!==void 0&&(t.vetoThreshold=(0,Za.base64FromBytes)(e.vetoThreshold!==void 0?e.vetoThreshold:new Uint8Array)),t},fromPartial(e){let t=M6e();return t.quorum=e.quorum??new Uint8Array,t.threshold=e.threshold??new Uint8Array,t.vetoThreshold=e.vetoThreshold??new Uint8Array,t}}});var Smt=ir(I2=>{"use strict";J();K();z();Object.defineProperty(I2,"__esModule",{value:!0});I2.createGovAminoConverters=I2.isAminoMsgDeposit=I2.isAminoMsgVoteWeighted=I2.isAminoMsgVote=I2.isAminoMsgSubmitProposal=void 0;var Bpn=Uh(),YF=Uf(),WF=Jee(),Mpn=ru(),Dpn=ep();function kpn(e){return e.type==="cosmos-sdk/MsgSubmitProposal"}I2.isAminoMsgSubmitProposal=kpn;function Ppn(e){return e.type==="cosmos-sdk/MsgVote"}I2.isAminoMsgVote=Ppn;function Lpn(e){return e.type==="cosmos-sdk/MsgVoteWeighted"}I2.isAminoMsgVoteWeighted=Lpn;function Upn(e){return e.type==="cosmos-sdk/MsgDeposit"}I2.isAminoMsgDeposit=Upn;function Fpn(){return{"/cosmos.gov.v1beta1.MsgDeposit":{aminoType:"cosmos-sdk/MsgDeposit",toAmino:({amount:e,depositor:t,proposalId:r})=>({amount:e,depositor:t,proposal_id:r.toString()}),fromAmino:({amount:e,depositor:t,proposal_id:r})=>({amount:Array.from(e),depositor:t,proposalId:BigInt(r)})},"/cosmos.gov.v1beta1.MsgVote":{aminoType:"cosmos-sdk/MsgVote",toAmino:({option:e,proposalId:t,voter:r})=>({option:e,proposal_id:t.toString(),voter:r}),fromAmino:({option:e,proposal_id:t,voter:r})=>({option:(0,WF.voteOptionFromJSON)(e),proposalId:BigInt(t),voter:r})},"/cosmos.gov.v1beta1.MsgVoteWeighted":{aminoType:"cosmos-sdk/MsgVoteWeighted",toAmino:({options:e,proposalId:t,voter:r})=>({options:e.map(i=>({option:i.option,weight:(0,Dpn.decodeCosmosSdkDecFromProto)(i.weight).toString().padEnd(20,"0")})),proposal_id:t.toString(),voter:r}),fromAmino:({options:e,proposal_id:t,voter:r})=>({proposalId:BigInt(t),voter:r,options:e.map(i=>({option:(0,WF.voteOptionFromJSON)(i.option),weight:Bpn.Decimal.fromUserInput(i.weight,18).atomics}))})},"/cosmos.gov.v1beta1.MsgSubmitProposal":{aminoType:"cosmos-sdk/MsgSubmitProposal",toAmino:({initialDeposit:e,proposer:t,content:r})=>{(0,YF.assertDefinedAndNotNull)(r);let i;if(r.typeUrl==="/cosmos.gov.v1beta1.TextProposal"){let n=WF.TextProposal.decode(r.value);i={type:"cosmos-sdk/TextProposal",value:{description:n.description,title:n.title}}}else throw new Error(`Unsupported proposal type: '${r.typeUrl}'`);return{initial_deposit:e,proposer:t,content:i}},fromAmino:({initial_deposit:e,proposer:t,content:r})=>{let i;if(r.type==="cosmos-sdk/TextProposal"){let{value:n}=r;(0,YF.assert)((0,YF.isNonNullObject)(n));let{title:o,description:d}=n;(0,YF.assert)(typeof o=="string"),(0,YF.assert)(typeof d=="string"),i=Mpn.Any.fromPartial({typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:WF.TextProposal.encode(WF.TextProposal.fromPartial({title:o,description:d})).finish()})}else throw new Error(`Unsupported proposal type: '${r.type}'`);return{initialDeposit:Array.from(e),proposer:t,content:i}}}}}I2.createGovAminoConverters=Fpn});var Nmt=ir(ma=>{"use strict";J();K();z();Object.defineProperty(ma,"__esModule",{value:!0});ma.Params=ma.TallyParams=ma.VotingParams=ma.DepositParams=ma.Vote=ma.TallyResult=ma.Proposal=ma.Deposit=ma.WeightedVoteOption=ma.proposalStatusToJSON=ma.proposalStatusFromJSON=ma.ProposalStatus=ma.voteOptionToJSON=ma.voteOptionFromJSON=ma.VoteOption=ma.protobufPackage=void 0;var Ef=Af(),XF=ru(),C2=u1(),bf=wS(),Uu=Qi(),_a=Hi();ma.protobufPackage="cosmos.gov.v1";var l1;(function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(l1||(ma.VoteOption=l1={}));function Imt(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return l1.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return l1.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return l1.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return l1.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return l1.VOTE_OPTION_NO_WITH_VETO;default:return l1.UNRECOGNIZED}}ma.voteOptionFromJSON=Imt;function Cmt(e){switch(e){case l1.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case l1.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case l1.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case l1.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case l1.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case l1.UNRECOGNIZED:default:return"UNRECOGNIZED"}}ma.voteOptionToJSON=Cmt;var dA;(function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",e[e.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",e[e.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dA||(ma.ProposalStatus=dA={}));function wmt(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return dA.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return dA.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return dA.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return dA.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return dA.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return dA.PROPOSAL_STATUS_FAILED;default:return dA.UNRECOGNIZED}}ma.proposalStatusFromJSON=wmt;function Omt(e){switch(e){case dA.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case dA.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case dA.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case dA.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case dA.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case dA.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case dA.UNRECOGNIZED:default:return"UNRECOGNIZED"}}ma.proposalStatusToJSON=Omt;function P6e(){return{option:0,weight:""}}ma.WeightedVoteOption={typeUrl:"/cosmos.gov.v1.WeightedVoteOption",encode(e,t=Uu.BinaryWriter.create()){return e.option!==0&&t.uint32(8).int32(e.option),e.weight!==""&&t.uint32(18).string(e.weight),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=P6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.option=r.int32();break;case 2:n.weight=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=P6e();return(0,_a.isSet)(e.option)&&(t.option=Imt(e.option)),(0,_a.isSet)(e.weight)&&(t.weight=String(e.weight)),t},toJSON(e){let t={};return e.option!==void 0&&(t.option=Cmt(e.option)),e.weight!==void 0&&(t.weight=e.weight),t},fromPartial(e){let t=P6e();return t.option=e.option??0,t.weight=e.weight??"",t}};function L6e(){return{proposalId:BigInt(0),depositor:"",amount:[]}}ma.Deposit={typeUrl:"/cosmos.gov.v1.Deposit",encode(e,t=Uu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.depositor!==""&&t.uint32(18).string(e.depositor);for(let r of e.amount)Ef.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=L6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.depositor=r.string();break;case 3:n.amount.push(Ef.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=L6e();return(0,_a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,_a.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>Ef.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.depositor!==void 0&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(r=>r?Ef.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=L6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(r=>Ef.Coin.fromPartial(r))||[],t}};function U6e(){return{id:BigInt(0),messages:[],status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0,metadata:"",title:"",summary:"",proposer:""}}ma.Proposal={typeUrl:"/cosmos.gov.v1.Proposal",encode(e,t=Uu.BinaryWriter.create()){e.id!==BigInt(0)&&t.uint32(8).uint64(e.id);for(let r of e.messages)XF.Any.encode(r,t.uint32(18).fork()).ldelim();e.status!==0&&t.uint32(24).int32(e.status),e.finalTallyResult!==void 0&&ma.TallyResult.encode(e.finalTallyResult,t.uint32(34).fork()).ldelim(),e.submitTime!==void 0&&C2.Timestamp.encode(e.submitTime,t.uint32(42).fork()).ldelim(),e.depositEndTime!==void 0&&C2.Timestamp.encode(e.depositEndTime,t.uint32(50).fork()).ldelim();for(let r of e.totalDeposit)Ef.Coin.encode(r,t.uint32(58).fork()).ldelim();return e.votingStartTime!==void 0&&C2.Timestamp.encode(e.votingStartTime,t.uint32(66).fork()).ldelim(),e.votingEndTime!==void 0&&C2.Timestamp.encode(e.votingEndTime,t.uint32(74).fork()).ldelim(),e.metadata!==""&&t.uint32(82).string(e.metadata),e.title!==""&&t.uint32(90).string(e.title),e.summary!==""&&t.uint32(98).string(e.summary),e.proposer!==""&&t.uint32(106).string(e.proposer),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=U6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.id=r.uint64();break;case 2:n.messages.push(XF.Any.decode(r,r.uint32()));break;case 3:n.status=r.int32();break;case 4:n.finalTallyResult=ma.TallyResult.decode(r,r.uint32());break;case 5:n.submitTime=C2.Timestamp.decode(r,r.uint32());break;case 6:n.depositEndTime=C2.Timestamp.decode(r,r.uint32());break;case 7:n.totalDeposit.push(Ef.Coin.decode(r,r.uint32()));break;case 8:n.votingStartTime=C2.Timestamp.decode(r,r.uint32());break;case 9:n.votingEndTime=C2.Timestamp.decode(r,r.uint32());break;case 10:n.metadata=r.string();break;case 11:n.title=r.string();break;case 12:n.summary=r.string();break;case 13:n.proposer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=U6e();return(0,_a.isSet)(e.id)&&(t.id=BigInt(e.id.toString())),Array.isArray(e?.messages)&&(t.messages=e.messages.map(r=>XF.Any.fromJSON(r))),(0,_a.isSet)(e.status)&&(t.status=wmt(e.status)),(0,_a.isSet)(e.finalTallyResult)&&(t.finalTallyResult=ma.TallyResult.fromJSON(e.finalTallyResult)),(0,_a.isSet)(e.submitTime)&&(t.submitTime=(0,_a.fromJsonTimestamp)(e.submitTime)),(0,_a.isSet)(e.depositEndTime)&&(t.depositEndTime=(0,_a.fromJsonTimestamp)(e.depositEndTime)),Array.isArray(e?.totalDeposit)&&(t.totalDeposit=e.totalDeposit.map(r=>Ef.Coin.fromJSON(r))),(0,_a.isSet)(e.votingStartTime)&&(t.votingStartTime=(0,_a.fromJsonTimestamp)(e.votingStartTime)),(0,_a.isSet)(e.votingEndTime)&&(t.votingEndTime=(0,_a.fromJsonTimestamp)(e.votingEndTime)),(0,_a.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,_a.isSet)(e.title)&&(t.title=String(e.title)),(0,_a.isSet)(e.summary)&&(t.summary=String(e.summary)),(0,_a.isSet)(e.proposer)&&(t.proposer=String(e.proposer)),t},toJSON(e){let t={};return e.id!==void 0&&(t.id=(e.id||BigInt(0)).toString()),e.messages?t.messages=e.messages.map(r=>r?XF.Any.toJSON(r):void 0):t.messages=[],e.status!==void 0&&(t.status=Omt(e.status)),e.finalTallyResult!==void 0&&(t.finalTallyResult=e.finalTallyResult?ma.TallyResult.toJSON(e.finalTallyResult):void 0),e.submitTime!==void 0&&(t.submitTime=(0,_a.fromTimestamp)(e.submitTime).toISOString()),e.depositEndTime!==void 0&&(t.depositEndTime=(0,_a.fromTimestamp)(e.depositEndTime).toISOString()),e.totalDeposit?t.totalDeposit=e.totalDeposit.map(r=>r?Ef.Coin.toJSON(r):void 0):t.totalDeposit=[],e.votingStartTime!==void 0&&(t.votingStartTime=(0,_a.fromTimestamp)(e.votingStartTime).toISOString()),e.votingEndTime!==void 0&&(t.votingEndTime=(0,_a.fromTimestamp)(e.votingEndTime).toISOString()),e.metadata!==void 0&&(t.metadata=e.metadata),e.title!==void 0&&(t.title=e.title),e.summary!==void 0&&(t.summary=e.summary),e.proposer!==void 0&&(t.proposer=e.proposer),t},fromPartial(e){let t=U6e();return e.id!==void 0&&e.id!==null&&(t.id=BigInt(e.id.toString())),t.messages=e.messages?.map(r=>XF.Any.fromPartial(r))||[],t.status=e.status??0,e.finalTallyResult!==void 0&&e.finalTallyResult!==null&&(t.finalTallyResult=ma.TallyResult.fromPartial(e.finalTallyResult)),e.submitTime!==void 0&&e.submitTime!==null&&(t.submitTime=C2.Timestamp.fromPartial(e.submitTime)),e.depositEndTime!==void 0&&e.depositEndTime!==null&&(t.depositEndTime=C2.Timestamp.fromPartial(e.depositEndTime)),t.totalDeposit=e.totalDeposit?.map(r=>Ef.Coin.fromPartial(r))||[],e.votingStartTime!==void 0&&e.votingStartTime!==null&&(t.votingStartTime=C2.Timestamp.fromPartial(e.votingStartTime)),e.votingEndTime!==void 0&&e.votingEndTime!==null&&(t.votingEndTime=C2.Timestamp.fromPartial(e.votingEndTime)),t.metadata=e.metadata??"",t.title=e.title??"",t.summary=e.summary??"",t.proposer=e.proposer??"",t}};function F6e(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}ma.TallyResult={typeUrl:"/cosmos.gov.v1.TallyResult",encode(e,t=Uu.BinaryWriter.create()){return e.yesCount!==""&&t.uint32(10).string(e.yesCount),e.abstainCount!==""&&t.uint32(18).string(e.abstainCount),e.noCount!==""&&t.uint32(26).string(e.noCount),e.noWithVetoCount!==""&&t.uint32(34).string(e.noWithVetoCount),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=F6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.yesCount=r.string();break;case 2:n.abstainCount=r.string();break;case 3:n.noCount=r.string();break;case 4:n.noWithVetoCount=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=F6e();return(0,_a.isSet)(e.yesCount)&&(t.yesCount=String(e.yesCount)),(0,_a.isSet)(e.abstainCount)&&(t.abstainCount=String(e.abstainCount)),(0,_a.isSet)(e.noCount)&&(t.noCount=String(e.noCount)),(0,_a.isSet)(e.noWithVetoCount)&&(t.noWithVetoCount=String(e.noWithVetoCount)),t},toJSON(e){let t={};return e.yesCount!==void 0&&(t.yesCount=e.yesCount),e.abstainCount!==void 0&&(t.abstainCount=e.abstainCount),e.noCount!==void 0&&(t.noCount=e.noCount),e.noWithVetoCount!==void 0&&(t.noWithVetoCount=e.noWithVetoCount),t},fromPartial(e){let t=F6e();return t.yesCount=e.yesCount??"",t.abstainCount=e.abstainCount??"",t.noCount=e.noCount??"",t.noWithVetoCount=e.noWithVetoCount??"",t}};function Q6e(){return{proposalId:BigInt(0),voter:"",options:[],metadata:""}}ma.Vote={typeUrl:"/cosmos.gov.v1.Vote",encode(e,t=Uu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter);for(let r of e.options)ma.WeightedVoteOption.encode(r,t.uint32(34).fork()).ldelim();return e.metadata!==""&&t.uint32(42).string(e.metadata),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Q6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 4:n.options.push(ma.WeightedVoteOption.decode(r,r.uint32()));break;case 5:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Q6e();return(0,_a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,_a.isSet)(e.voter)&&(t.voter=String(e.voter)),Array.isArray(e?.options)&&(t.options=e.options.map(r=>ma.WeightedVoteOption.fromJSON(r))),(0,_a.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.options?t.options=e.options.map(r=>r?ma.WeightedVoteOption.toJSON(r):void 0):t.options=[],e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=Q6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.options=e.options?.map(r=>ma.WeightedVoteOption.fromPartial(r))||[],t.metadata=e.metadata??"",t}};function H6e(){return{minDeposit:[],maxDepositPeriod:void 0}}ma.DepositParams={typeUrl:"/cosmos.gov.v1.DepositParams",encode(e,t=Uu.BinaryWriter.create()){for(let r of e.minDeposit)Ef.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.maxDepositPeriod!==void 0&&bf.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=H6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.minDeposit.push(Ef.Coin.decode(r,r.uint32()));break;case 2:n.maxDepositPeriod=bf.Duration.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=H6e();return Array.isArray(e?.minDeposit)&&(t.minDeposit=e.minDeposit.map(r=>Ef.Coin.fromJSON(r))),(0,_a.isSet)(e.maxDepositPeriod)&&(t.maxDepositPeriod=bf.Duration.fromJSON(e.maxDepositPeriod)),t},toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(r=>r?Ef.Coin.toJSON(r):void 0):t.minDeposit=[],e.maxDepositPeriod!==void 0&&(t.maxDepositPeriod=e.maxDepositPeriod?bf.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial(e){let t=H6e();return t.minDeposit=e.minDeposit?.map(r=>Ef.Coin.fromPartial(r))||[],e.maxDepositPeriod!==void 0&&e.maxDepositPeriod!==null&&(t.maxDepositPeriod=bf.Duration.fromPartial(e.maxDepositPeriod)),t}};function G6e(){return{votingPeriod:void 0}}ma.VotingParams={typeUrl:"/cosmos.gov.v1.VotingParams",encode(e,t=Uu.BinaryWriter.create()){return e.votingPeriod!==void 0&&bf.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=G6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.votingPeriod=bf.Duration.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=G6e();return(0,_a.isSet)(e.votingPeriod)&&(t.votingPeriod=bf.Duration.fromJSON(e.votingPeriod)),t},toJSON(e){let t={};return e.votingPeriod!==void 0&&(t.votingPeriod=e.votingPeriod?bf.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial(e){let t=G6e();return e.votingPeriod!==void 0&&e.votingPeriod!==null&&(t.votingPeriod=bf.Duration.fromPartial(e.votingPeriod)),t}};function q6e(){return{quorum:"",threshold:"",vetoThreshold:""}}ma.TallyParams={typeUrl:"/cosmos.gov.v1.TallyParams",encode(e,t=Uu.BinaryWriter.create()){return e.quorum!==""&&t.uint32(10).string(e.quorum),e.threshold!==""&&t.uint32(18).string(e.threshold),e.vetoThreshold!==""&&t.uint32(26).string(e.vetoThreshold),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=q6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.quorum=r.string();break;case 2:n.threshold=r.string();break;case 3:n.vetoThreshold=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=q6e();return(0,_a.isSet)(e.quorum)&&(t.quorum=String(e.quorum)),(0,_a.isSet)(e.threshold)&&(t.threshold=String(e.threshold)),(0,_a.isSet)(e.vetoThreshold)&&(t.vetoThreshold=String(e.vetoThreshold)),t},toJSON(e){let t={};return e.quorum!==void 0&&(t.quorum=e.quorum),e.threshold!==void 0&&(t.threshold=e.threshold),e.vetoThreshold!==void 0&&(t.vetoThreshold=e.vetoThreshold),t},fromPartial(e){let t=q6e();return t.quorum=e.quorum??"",t.threshold=e.threshold??"",t.vetoThreshold=e.vetoThreshold??"",t}};function V6e(){return{minDeposit:[],maxDepositPeriod:void 0,votingPeriod:void 0,quorum:"",threshold:"",vetoThreshold:"",minInitialDepositRatio:"",burnVoteQuorum:!1,burnProposalDepositPrevote:!1,burnVoteVeto:!1}}ma.Params={typeUrl:"/cosmos.gov.v1.Params",encode(e,t=Uu.BinaryWriter.create()){for(let r of e.minDeposit)Ef.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.maxDepositPeriod!==void 0&&bf.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),e.votingPeriod!==void 0&&bf.Duration.encode(e.votingPeriod,t.uint32(26).fork()).ldelim(),e.quorum!==""&&t.uint32(34).string(e.quorum),e.threshold!==""&&t.uint32(42).string(e.threshold),e.vetoThreshold!==""&&t.uint32(50).string(e.vetoThreshold),e.minInitialDepositRatio!==""&&t.uint32(58).string(e.minInitialDepositRatio),e.burnVoteQuorum===!0&&t.uint32(104).bool(e.burnVoteQuorum),e.burnProposalDepositPrevote===!0&&t.uint32(112).bool(e.burnProposalDepositPrevote),e.burnVoteVeto===!0&&t.uint32(120).bool(e.burnVoteVeto),t},decode(e,t){let r=e instanceof Uu.BinaryReader?e:new Uu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=V6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.minDeposit.push(Ef.Coin.decode(r,r.uint32()));break;case 2:n.maxDepositPeriod=bf.Duration.decode(r,r.uint32());break;case 3:n.votingPeriod=bf.Duration.decode(r,r.uint32());break;case 4:n.quorum=r.string();break;case 5:n.threshold=r.string();break;case 6:n.vetoThreshold=r.string();break;case 7:n.minInitialDepositRatio=r.string();break;case 13:n.burnVoteQuorum=r.bool();break;case 14:n.burnProposalDepositPrevote=r.bool();break;case 15:n.burnVoteVeto=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=V6e();return Array.isArray(e?.minDeposit)&&(t.minDeposit=e.minDeposit.map(r=>Ef.Coin.fromJSON(r))),(0,_a.isSet)(e.maxDepositPeriod)&&(t.maxDepositPeriod=bf.Duration.fromJSON(e.maxDepositPeriod)),(0,_a.isSet)(e.votingPeriod)&&(t.votingPeriod=bf.Duration.fromJSON(e.votingPeriod)),(0,_a.isSet)(e.quorum)&&(t.quorum=String(e.quorum)),(0,_a.isSet)(e.threshold)&&(t.threshold=String(e.threshold)),(0,_a.isSet)(e.vetoThreshold)&&(t.vetoThreshold=String(e.vetoThreshold)),(0,_a.isSet)(e.minInitialDepositRatio)&&(t.minInitialDepositRatio=String(e.minInitialDepositRatio)),(0,_a.isSet)(e.burnVoteQuorum)&&(t.burnVoteQuorum=!!e.burnVoteQuorum),(0,_a.isSet)(e.burnProposalDepositPrevote)&&(t.burnProposalDepositPrevote=!!e.burnProposalDepositPrevote),(0,_a.isSet)(e.burnVoteVeto)&&(t.burnVoteVeto=!!e.burnVoteVeto),t},toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(r=>r?Ef.Coin.toJSON(r):void 0):t.minDeposit=[],e.maxDepositPeriod!==void 0&&(t.maxDepositPeriod=e.maxDepositPeriod?bf.Duration.toJSON(e.maxDepositPeriod):void 0),e.votingPeriod!==void 0&&(t.votingPeriod=e.votingPeriod?bf.Duration.toJSON(e.votingPeriod):void 0),e.quorum!==void 0&&(t.quorum=e.quorum),e.threshold!==void 0&&(t.threshold=e.threshold),e.vetoThreshold!==void 0&&(t.vetoThreshold=e.vetoThreshold),e.minInitialDepositRatio!==void 0&&(t.minInitialDepositRatio=e.minInitialDepositRatio),e.burnVoteQuorum!==void 0&&(t.burnVoteQuorum=e.burnVoteQuorum),e.burnProposalDepositPrevote!==void 0&&(t.burnProposalDepositPrevote=e.burnProposalDepositPrevote),e.burnVoteVeto!==void 0&&(t.burnVoteVeto=e.burnVoteVeto),t},fromPartial(e){let t=V6e();return t.minDeposit=e.minDeposit?.map(r=>Ef.Coin.fromPartial(r))||[],e.maxDepositPeriod!==void 0&&e.maxDepositPeriod!==null&&(t.maxDepositPeriod=bf.Duration.fromPartial(e.maxDepositPeriod)),e.votingPeriod!==void 0&&e.votingPeriod!==null&&(t.votingPeriod=bf.Duration.fromPartial(e.votingPeriod)),t.quorum=e.quorum??"",t.threshold=e.threshold??"",t.vetoThreshold=e.vetoThreshold??"",t.minInitialDepositRatio=e.minInitialDepositRatio??"",t.burnVoteQuorum=e.burnVoteQuorum??!1,t.burnProposalDepositPrevote=e.burnProposalDepositPrevote??!1,t.burnVoteVeto=e.burnVoteVeto??!1,t}}});var xmt=ir(Ca=>{"use strict";J();K();z();Object.defineProperty(Ca,"__esModule",{value:!0});Ca.MsgClientImpl=Ca.MsgUpdateParamsResponse=Ca.MsgUpdateParams=Ca.MsgDepositResponse=Ca.MsgDeposit=Ca.MsgVoteWeightedResponse=Ca.MsgVoteWeighted=Ca.MsgVoteResponse=Ca.MsgVote=Ca.MsgExecLegacyContentResponse=Ca.MsgExecLegacyContent=Ca.MsgSubmitProposalResponse=Ca.MsgSubmitProposal=Ca.protobufPackage=void 0;var xE=ru(),TE=Af(),bg=Nmt(),wa=Qi(),xl=Hi();Ca.protobufPackage="cosmos.gov.v1";function J6e(){return{messages:[],initialDeposit:[],proposer:"",metadata:"",title:"",summary:""}}Ca.MsgSubmitProposal={typeUrl:"/cosmos.gov.v1.MsgSubmitProposal",encode(e,t=wa.BinaryWriter.create()){for(let r of e.messages)xE.Any.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.initialDeposit)TE.Coin.encode(r,t.uint32(18).fork()).ldelim();return e.proposer!==""&&t.uint32(26).string(e.proposer),e.metadata!==""&&t.uint32(34).string(e.metadata),e.title!==""&&t.uint32(42).string(e.title),e.summary!==""&&t.uint32(50).string(e.summary),t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=J6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.messages.push(xE.Any.decode(r,r.uint32()));break;case 2:n.initialDeposit.push(TE.Coin.decode(r,r.uint32()));break;case 3:n.proposer=r.string();break;case 4:n.metadata=r.string();break;case 5:n.title=r.string();break;case 6:n.summary=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=J6e();return Array.isArray(e?.messages)&&(t.messages=e.messages.map(r=>xE.Any.fromJSON(r))),Array.isArray(e?.initialDeposit)&&(t.initialDeposit=e.initialDeposit.map(r=>TE.Coin.fromJSON(r))),(0,xl.isSet)(e.proposer)&&(t.proposer=String(e.proposer)),(0,xl.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,xl.isSet)(e.title)&&(t.title=String(e.title)),(0,xl.isSet)(e.summary)&&(t.summary=String(e.summary)),t},toJSON(e){let t={};return e.messages?t.messages=e.messages.map(r=>r?xE.Any.toJSON(r):void 0):t.messages=[],e.initialDeposit?t.initialDeposit=e.initialDeposit.map(r=>r?TE.Coin.toJSON(r):void 0):t.initialDeposit=[],e.proposer!==void 0&&(t.proposer=e.proposer),e.metadata!==void 0&&(t.metadata=e.metadata),e.title!==void 0&&(t.title=e.title),e.summary!==void 0&&(t.summary=e.summary),t},fromPartial(e){let t=J6e();return t.messages=e.messages?.map(r=>xE.Any.fromPartial(r))||[],t.initialDeposit=e.initialDeposit?.map(r=>TE.Coin.fromPartial(r))||[],t.proposer=e.proposer??"",t.metadata=e.metadata??"",t.title=e.title??"",t.summary=e.summary??"",t}};function z6e(){return{proposalId:BigInt(0)}}Ca.MsgSubmitProposalResponse={typeUrl:"/cosmos.gov.v1.MsgSubmitProposalResponse",encode(e,t=wa.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=z6e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proposalId=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=z6e();return(0,xl.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=z6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t}};function K6e(){return{content:void 0,authority:""}}Ca.MsgExecLegacyContent={typeUrl:"/cosmos.gov.v1.MsgExecLegacyContent",encode(e,t=wa.BinaryWriter.create()){return e.content!==void 0&&xE.Any.encode(e.content,t.uint32(10).fork()).ldelim(),e.authority!==""&&t.uint32(18).string(e.authority),t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=K6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.content=xE.Any.decode(r,r.uint32());break;case 2:n.authority=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=K6e();return(0,xl.isSet)(e.content)&&(t.content=xE.Any.fromJSON(e.content)),(0,xl.isSet)(e.authority)&&(t.authority=String(e.authority)),t},toJSON(e){let t={};return e.content!==void 0&&(t.content=e.content?xE.Any.toJSON(e.content):void 0),e.authority!==void 0&&(t.authority=e.authority),t},fromPartial(e){let t=K6e();return e.content!==void 0&&e.content!==null&&(t.content=xE.Any.fromPartial(e.content)),t.authority=e.authority??"",t}};function $6e(){return{}}Ca.MsgExecLegacyContentResponse={typeUrl:"/cosmos.gov.v1.MsgExecLegacyContentResponse",encode(e,t=wa.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return $6e()},toJSON(e){return{}},fromPartial(e){return $6e()}};function Y6e(){return{proposalId:BigInt(0),voter:"",option:0,metadata:""}}Ca.MsgVote={typeUrl:"/cosmos.gov.v1.MsgVote",encode(e,t=wa.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter),e.option!==0&&t.uint32(24).int32(e.option),e.metadata!==""&&t.uint32(34).string(e.metadata),t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Y6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.option=r.int32();break;case 4:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Y6e();return(0,xl.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,xl.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,xl.isSet)(e.option)&&(t.option=(0,bg.voteOptionFromJSON)(e.option)),(0,xl.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.option!==void 0&&(t.option=(0,bg.voteOptionToJSON)(e.option)),e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=Y6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.metadata=e.metadata??"",t}};function W6e(){return{}}Ca.MsgVoteResponse={typeUrl:"/cosmos.gov.v1.MsgVoteResponse",encode(e,t=wa.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=W6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return W6e()},toJSON(e){return{}},fromPartial(e){return W6e()}};function X6e(){return{proposalId:BigInt(0),voter:"",options:[],metadata:""}}Ca.MsgVoteWeighted={typeUrl:"/cosmos.gov.v1.MsgVoteWeighted",encode(e,t=wa.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter);for(let r of e.options)bg.WeightedVoteOption.encode(r,t.uint32(26).fork()).ldelim();return e.metadata!==""&&t.uint32(34).string(e.metadata),t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=X6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.options.push(bg.WeightedVoteOption.decode(r,r.uint32()));break;case 4:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=X6e();return(0,xl.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,xl.isSet)(e.voter)&&(t.voter=String(e.voter)),Array.isArray(e?.options)&&(t.options=e.options.map(r=>bg.WeightedVoteOption.fromJSON(r))),(0,xl.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.options?t.options=e.options.map(r=>r?bg.WeightedVoteOption.toJSON(r):void 0):t.options=[],e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=X6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.options=e.options?.map(r=>bg.WeightedVoteOption.fromPartial(r))||[],t.metadata=e.metadata??"",t}};function Z6e(){return{}}Ca.MsgVoteWeightedResponse={typeUrl:"/cosmos.gov.v1.MsgVoteWeightedResponse",encode(e,t=wa.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Z6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Z6e()},toJSON(e){return{}},fromPartial(e){return Z6e()}};function j6e(){return{proposalId:BigInt(0),depositor:"",amount:[]}}Ca.MsgDeposit={typeUrl:"/cosmos.gov.v1.MsgDeposit",encode(e,t=wa.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.depositor!==""&&t.uint32(18).string(e.depositor);for(let r of e.amount)TE.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=j6e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.depositor=r.string();break;case 3:n.amount.push(TE.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=j6e();return(0,xl.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,xl.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>TE.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.depositor!==void 0&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(r=>r?TE.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=j6e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(r=>TE.Coin.fromPartial(r))||[],t}};function eIe(){return{}}Ca.MsgDepositResponse={typeUrl:"/cosmos.gov.v1.MsgDepositResponse",encode(e,t=wa.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=eIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return eIe()},toJSON(e){return{}},fromPartial(e){return eIe()}};function tIe(){return{authority:"",params:bg.Params.fromPartial({})}}Ca.MsgUpdateParams={typeUrl:"/cosmos.gov.v1.MsgUpdateParams",encode(e,t=wa.BinaryWriter.create()){return e.authority!==""&&t.uint32(10).string(e.authority),e.params!==void 0&&bg.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authority=r.string();break;case 2:n.params=bg.Params.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=tIe();return(0,xl.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,xl.isSet)(e.params)&&(t.params=bg.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.authority!==void 0&&(t.authority=e.authority),e.params!==void 0&&(t.params=e.params?bg.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=tIe();return t.authority=e.authority??"",e.params!==void 0&&e.params!==null&&(t.params=bg.Params.fromPartial(e.params)),t}};function rIe(){return{}}Ca.MsgUpdateParamsResponse={typeUrl:"/cosmos.gov.v1.MsgUpdateParamsResponse",encode(e,t=wa.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof wa.BinaryReader?e:new wa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return rIe()},toJSON(e){return{}},fromPartial(e){return rIe()}};var nIe=class{constructor(t){this.rpc=t,this.SubmitProposal=this.SubmitProposal.bind(this),this.ExecLegacyContent=this.ExecLegacyContent.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}SubmitProposal(t){let r=Ca.MsgSubmitProposal.encode(t).finish();return this.rpc.request("cosmos.gov.v1.Msg","SubmitProposal",r).then(n=>Ca.MsgSubmitProposalResponse.decode(new wa.BinaryReader(n)))}ExecLegacyContent(t){let r=Ca.MsgExecLegacyContent.encode(t).finish();return this.rpc.request("cosmos.gov.v1.Msg","ExecLegacyContent",r).then(n=>Ca.MsgExecLegacyContentResponse.decode(new wa.BinaryReader(n)))}Vote(t){let r=Ca.MsgVote.encode(t).finish();return this.rpc.request("cosmos.gov.v1.Msg","Vote",r).then(n=>Ca.MsgVoteResponse.decode(new wa.BinaryReader(n)))}VoteWeighted(t){let r=Ca.MsgVoteWeighted.encode(t).finish();return this.rpc.request("cosmos.gov.v1.Msg","VoteWeighted",r).then(n=>Ca.MsgVoteWeightedResponse.decode(new wa.BinaryReader(n)))}Deposit(t){let r=Ca.MsgDeposit.encode(t).finish();return this.rpc.request("cosmos.gov.v1.Msg","Deposit",r).then(n=>Ca.MsgDepositResponse.decode(new wa.BinaryReader(n)))}UpdateParams(t){let r=Ca.MsgUpdateParams.encode(t).finish();return this.rpc.request("cosmos.gov.v1.Msg","UpdateParams",r).then(n=>Ca.MsgUpdateParamsResponse.decode(new wa.BinaryReader(n)))}};Ca.MsgClientImpl=nIe});var Tmt=ir(kc=>{"use strict";J();K();z();Object.defineProperty(kc,"__esModule",{value:!0});kc.MsgClientImpl=kc.MsgDepositResponse=kc.MsgDeposit=kc.MsgVoteWeightedResponse=kc.MsgVoteWeighted=kc.MsgVoteResponse=kc.MsgVote=kc.MsgSubmitProposalResponse=kc.MsgSubmitProposal=kc.protobufPackage=void 0;var ZF=ru(),BE=Af(),S5=Jee(),Eu=Qi(),ME=Hi();kc.protobufPackage="cosmos.gov.v1beta1";function iIe(){return{content:void 0,initialDeposit:[],proposer:""}}kc.MsgSubmitProposal={typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposal",encode(e,t=Eu.BinaryWriter.create()){e.content!==void 0&&ZF.Any.encode(e.content,t.uint32(10).fork()).ldelim();for(let r of e.initialDeposit)BE.Coin.encode(r,t.uint32(18).fork()).ldelim();return e.proposer!==""&&t.uint32(26).string(e.proposer),t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=iIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.content=ZF.Any.decode(r,r.uint32());break;case 2:n.initialDeposit.push(BE.Coin.decode(r,r.uint32()));break;case 3:n.proposer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=iIe();return(0,ME.isSet)(e.content)&&(t.content=ZF.Any.fromJSON(e.content)),Array.isArray(e?.initialDeposit)&&(t.initialDeposit=e.initialDeposit.map(r=>BE.Coin.fromJSON(r))),(0,ME.isSet)(e.proposer)&&(t.proposer=String(e.proposer)),t},toJSON(e){let t={};return e.content!==void 0&&(t.content=e.content?ZF.Any.toJSON(e.content):void 0),e.initialDeposit?t.initialDeposit=e.initialDeposit.map(r=>r?BE.Coin.toJSON(r):void 0):t.initialDeposit=[],e.proposer!==void 0&&(t.proposer=e.proposer),t},fromPartial(e){let t=iIe();return e.content!==void 0&&e.content!==null&&(t.content=ZF.Any.fromPartial(e.content)),t.initialDeposit=e.initialDeposit?.map(r=>BE.Coin.fromPartial(r))||[],t.proposer=e.proposer??"",t}};function oIe(){return{proposalId:BigInt(0)}}kc.MsgSubmitProposalResponse={typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposalResponse",encode(e,t=Eu.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=oIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proposalId=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=oIe();return(0,ME.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=oIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t}};function aIe(){return{proposalId:BigInt(0),voter:"",option:0}}kc.MsgVote={typeUrl:"/cosmos.gov.v1beta1.MsgVote",encode(e,t=Eu.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter),e.option!==0&&t.uint32(24).int32(e.option),t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=aIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.option=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=aIe();return(0,ME.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,ME.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,ME.isSet)(e.option)&&(t.option=(0,S5.voteOptionFromJSON)(e.option)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.option!==void 0&&(t.option=(0,S5.voteOptionToJSON)(e.option)),t},fromPartial(e){let t=aIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t}};function sIe(){return{}}kc.MsgVoteResponse={typeUrl:"/cosmos.gov.v1beta1.MsgVoteResponse",encode(e,t=Eu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=sIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return sIe()},toJSON(e){return{}},fromPartial(e){return sIe()}};function cIe(){return{proposalId:BigInt(0),voter:"",options:[]}}kc.MsgVoteWeighted={typeUrl:"/cosmos.gov.v1beta1.MsgVoteWeighted",encode(e,t=Eu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter);for(let r of e.options)S5.WeightedVoteOption.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=cIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.options.push(S5.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=cIe();return(0,ME.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,ME.isSet)(e.voter)&&(t.voter=String(e.voter)),Array.isArray(e?.options)&&(t.options=e.options.map(r=>S5.WeightedVoteOption.fromJSON(r))),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.options?t.options=e.options.map(r=>r?S5.WeightedVoteOption.toJSON(r):void 0):t.options=[],t},fromPartial(e){let t=cIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.options=e.options?.map(r=>S5.WeightedVoteOption.fromPartial(r))||[],t}};function uIe(){return{}}kc.MsgVoteWeightedResponse={typeUrl:"/cosmos.gov.v1beta1.MsgVoteWeightedResponse",encode(e,t=Eu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return uIe()},toJSON(e){return{}},fromPartial(e){return uIe()}};function dIe(){return{proposalId:BigInt(0),depositor:"",amount:[]}}kc.MsgDeposit={typeUrl:"/cosmos.gov.v1beta1.MsgDeposit",encode(e,t=Eu.BinaryWriter.create()){e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.depositor!==""&&t.uint32(18).string(e.depositor);for(let r of e.amount)BE.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.depositor=r.string();break;case 3:n.amount.push(BE.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=dIe();return(0,ME.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,ME.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>BE.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.depositor!==void 0&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(r=>r?BE.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=dIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(r=>BE.Coin.fromPartial(r))||[],t}};function fIe(){return{}}kc.MsgDepositResponse={typeUrl:"/cosmos.gov.v1beta1.MsgDepositResponse",encode(e,t=Eu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Eu.BinaryReader?e:new Eu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return fIe()},toJSON(e){return{}},fromPartial(e){return fIe()}};var lIe=class{constructor(t){this.rpc=t,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(t){let r=kc.MsgSubmitProposal.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",r).then(n=>kc.MsgSubmitProposalResponse.decode(new Eu.BinaryReader(n)))}Vote(t){let r=kc.MsgVote.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",r).then(n=>kc.MsgVoteResponse.decode(new Eu.BinaryReader(n)))}VoteWeighted(t){let r=kc.MsgVoteWeighted.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",r).then(n=>kc.MsgVoteWeightedResponse.decode(new Eu.BinaryReader(n)))}Deposit(t){let r=kc.MsgDeposit.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",r).then(n=>kc.MsgDepositResponse.decode(new Eu.BinaryReader(n)))}};kc.MsgClientImpl=lIe});var Bmt=ir(w2=>{"use strict";J();K();z();Object.defineProperty(w2,"__esModule",{value:!0});w2.isMsgVoteWeightedEncodeObject=w2.isMsgVoteEncodeObject=w2.isMsgSubmitProposalEncodeObject=w2.isMsgDepositEncodeObject=w2.govTypes=void 0;var jF=xmt(),zee=Tmt();w2.govTypes=[["/cosmos.gov.v1.MsgDeposit",jF.MsgDeposit],["/cosmos.gov.v1.MsgSubmitProposal",jF.MsgSubmitProposal],["/cosmos.gov.v1.MsgUpdateParams",jF.MsgUpdateParams],["/cosmos.gov.v1.MsgVote",jF.MsgVote],["/cosmos.gov.v1.MsgVoteWeighted",jF.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",zee.MsgDeposit],["/cosmos.gov.v1beta1.MsgSubmitProposal",zee.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",zee.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",zee.MsgVoteWeighted]];function Qpn(e){return e.typeUrl==="/cosmos.gov.v1beta1.MsgDeposit"}w2.isMsgDepositEncodeObject=Qpn;function Hpn(e){return e.typeUrl==="/cosmos.gov.v1beta1.MsgSubmitProposal"}w2.isMsgSubmitProposalEncodeObject=Hpn;function Gpn(e){return e.typeUrl==="/cosmos.gov.v1beta1.MsgVote"}w2.isMsgVoteEncodeObject=Gpn;function qpn(e){return e.typeUrl==="/cosmos.gov.v1beta1.MsgVoteWeighted"}w2.isMsgVoteWeightedEncodeObject=qpn});var Mmt=ir(No=>{"use strict";J();K();z();Object.defineProperty(No,"__esModule",{value:!0});No.QueryClientImpl=No.QueryTallyResultResponse=No.QueryTallyResultRequest=No.QueryDepositsResponse=No.QueryDepositsRequest=No.QueryDepositResponse=No.QueryDepositRequest=No.QueryParamsResponse=No.QueryParamsRequest=No.QueryVotesResponse=No.QueryVotesRequest=No.QueryVoteResponse=No.QueryVoteRequest=No.QueryProposalsResponse=No.QueryProposalsRequest=No.QueryProposalResponse=No.QueryProposalRequest=No.protobufPackage=void 0;var lo=Jee(),Pc=jA(),Eo=Qi(),c0=Hi();No.protobufPackage="cosmos.gov.v1beta1";function hIe(){return{proposalId:BigInt(0)}}No.QueryProposalRequest={typeUrl:"/cosmos.gov.v1beta1.QueryProposalRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proposalId=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=hIe();return(0,c0.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=hIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t}};function AIe(){return{proposal:lo.Proposal.fromPartial({})}}No.QueryProposalResponse={typeUrl:"/cosmos.gov.v1beta1.QueryProposalResponse",encode(e,t=Eo.BinaryWriter.create()){return e.proposal!==void 0&&lo.Proposal.encode(e.proposal,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=AIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proposal=lo.Proposal.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=AIe();return(0,c0.isSet)(e.proposal)&&(t.proposal=lo.Proposal.fromJSON(e.proposal)),t},toJSON(e){let t={};return e.proposal!==void 0&&(t.proposal=e.proposal?lo.Proposal.toJSON(e.proposal):void 0),t},fromPartial(e){let t=AIe();return e.proposal!==void 0&&e.proposal!==null&&(t.proposal=lo.Proposal.fromPartial(e.proposal)),t}};function pIe(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}No.QueryProposalsRequest={typeUrl:"/cosmos.gov.v1beta1.QueryProposalsRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalStatus!==0&&t.uint32(8).int32(e.proposalStatus),e.voter!==""&&t.uint32(18).string(e.voter),e.depositor!==""&&t.uint32(26).string(e.depositor),e.pagination!==void 0&&Pc.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalStatus=r.int32();break;case 2:n.voter=r.string();break;case 3:n.depositor=r.string();break;case 4:n.pagination=Pc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=pIe();return(0,c0.isSet)(e.proposalStatus)&&(t.proposalStatus=(0,lo.proposalStatusFromJSON)(e.proposalStatus)),(0,c0.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,c0.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),(0,c0.isSet)(e.pagination)&&(t.pagination=Pc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.proposalStatus!==void 0&&(t.proposalStatus=(0,lo.proposalStatusToJSON)(e.proposalStatus)),e.voter!==void 0&&(t.voter=e.voter),e.depositor!==void 0&&(t.depositor=e.depositor),e.pagination!==void 0&&(t.pagination=e.pagination?Pc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=pIe();return t.proposalStatus=e.proposalStatus??0,t.voter=e.voter??"",t.depositor=e.depositor??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Pc.PageRequest.fromPartial(e.pagination)),t}};function gIe(){return{proposals:[],pagination:void 0}}No.QueryProposalsResponse={typeUrl:"/cosmos.gov.v1beta1.QueryProposalsResponse",encode(e,t=Eo.BinaryWriter.create()){for(let r of e.proposals)lo.Proposal.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Pc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=gIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposals.push(lo.Proposal.decode(r,r.uint32()));break;case 2:n.pagination=Pc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=gIe();return Array.isArray(e?.proposals)&&(t.proposals=e.proposals.map(r=>lo.Proposal.fromJSON(r))),(0,c0.isSet)(e.pagination)&&(t.pagination=Pc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.proposals?t.proposals=e.proposals.map(r=>r?lo.Proposal.toJSON(r):void 0):t.proposals=[],e.pagination!==void 0&&(t.pagination=e.pagination?Pc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=gIe();return t.proposals=e.proposals?.map(r=>lo.Proposal.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Pc.PageResponse.fromPartial(e.pagination)),t}};function _Ie(){return{proposalId:BigInt(0),voter:""}}No.QueryVoteRequest={typeUrl:"/cosmos.gov.v1beta1.QueryVoteRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_Ie();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_Ie();return(0,c0.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c0.isSet)(e.voter)&&(t.voter=String(e.voter)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),t},fromPartial(e){let t=_Ie();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t}};function mIe(){return{vote:lo.Vote.fromPartial({})}}No.QueryVoteResponse={typeUrl:"/cosmos.gov.v1beta1.QueryVoteResponse",encode(e,t=Eo.BinaryWriter.create()){return e.vote!==void 0&&lo.Vote.encode(e.vote,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.vote=lo.Vote.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=mIe();return(0,c0.isSet)(e.vote)&&(t.vote=lo.Vote.fromJSON(e.vote)),t},toJSON(e){let t={};return e.vote!==void 0&&(t.vote=e.vote?lo.Vote.toJSON(e.vote):void 0),t},fromPartial(e){let t=mIe();return e.vote!==void 0&&e.vote!==null&&(t.vote=lo.Vote.fromPartial(e.vote)),t}};function yIe(){return{proposalId:BigInt(0),pagination:void 0}}No.QueryVotesRequest={typeUrl:"/cosmos.gov.v1beta1.QueryVotesRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.pagination!==void 0&&Pc.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=yIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.pagination=Pc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=yIe();return(0,c0.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c0.isSet)(e.pagination)&&(t.pagination=Pc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.pagination!==void 0&&(t.pagination=e.pagination?Pc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=yIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Pc.PageRequest.fromPartial(e.pagination)),t}};function bIe(){return{votes:[],pagination:void 0}}No.QueryVotesResponse={typeUrl:"/cosmos.gov.v1beta1.QueryVotesResponse",encode(e,t=Eo.BinaryWriter.create()){for(let r of e.votes)lo.Vote.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Pc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.votes.push(lo.Vote.decode(r,r.uint32()));break;case 2:n.pagination=Pc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=bIe();return Array.isArray(e?.votes)&&(t.votes=e.votes.map(r=>lo.Vote.fromJSON(r))),(0,c0.isSet)(e.pagination)&&(t.pagination=Pc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.votes?t.votes=e.votes.map(r=>r?lo.Vote.toJSON(r):void 0):t.votes=[],e.pagination!==void 0&&(t.pagination=e.pagination?Pc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=bIe();return t.votes=e.votes?.map(r=>lo.Vote.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Pc.PageResponse.fromPartial(e.pagination)),t}};function EIe(){return{paramsType:""}}No.QueryParamsRequest={typeUrl:"/cosmos.gov.v1beta1.QueryParamsRequest",encode(e,t=Eo.BinaryWriter.create()){return e.paramsType!==""&&t.uint32(10).string(e.paramsType),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=EIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.paramsType=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=EIe();return(0,c0.isSet)(e.paramsType)&&(t.paramsType=String(e.paramsType)),t},toJSON(e){let t={};return e.paramsType!==void 0&&(t.paramsType=e.paramsType),t},fromPartial(e){let t=EIe();return t.paramsType=e.paramsType??"",t}};function vIe(){return{votingParams:lo.VotingParams.fromPartial({}),depositParams:lo.DepositParams.fromPartial({}),tallyParams:lo.TallyParams.fromPartial({})}}No.QueryParamsResponse={typeUrl:"/cosmos.gov.v1beta1.QueryParamsResponse",encode(e,t=Eo.BinaryWriter.create()){return e.votingParams!==void 0&&lo.VotingParams.encode(e.votingParams,t.uint32(10).fork()).ldelim(),e.depositParams!==void 0&&lo.DepositParams.encode(e.depositParams,t.uint32(18).fork()).ldelim(),e.tallyParams!==void 0&&lo.TallyParams.encode(e.tallyParams,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.votingParams=lo.VotingParams.decode(r,r.uint32());break;case 2:n.depositParams=lo.DepositParams.decode(r,r.uint32());break;case 3:n.tallyParams=lo.TallyParams.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vIe();return(0,c0.isSet)(e.votingParams)&&(t.votingParams=lo.VotingParams.fromJSON(e.votingParams)),(0,c0.isSet)(e.depositParams)&&(t.depositParams=lo.DepositParams.fromJSON(e.depositParams)),(0,c0.isSet)(e.tallyParams)&&(t.tallyParams=lo.TallyParams.fromJSON(e.tallyParams)),t},toJSON(e){let t={};return e.votingParams!==void 0&&(t.votingParams=e.votingParams?lo.VotingParams.toJSON(e.votingParams):void 0),e.depositParams!==void 0&&(t.depositParams=e.depositParams?lo.DepositParams.toJSON(e.depositParams):void 0),e.tallyParams!==void 0&&(t.tallyParams=e.tallyParams?lo.TallyParams.toJSON(e.tallyParams):void 0),t},fromPartial(e){let t=vIe();return e.votingParams!==void 0&&e.votingParams!==null&&(t.votingParams=lo.VotingParams.fromPartial(e.votingParams)),e.depositParams!==void 0&&e.depositParams!==null&&(t.depositParams=lo.DepositParams.fromPartial(e.depositParams)),e.tallyParams!==void 0&&e.tallyParams!==null&&(t.tallyParams=lo.TallyParams.fromPartial(e.tallyParams)),t}};function RIe(){return{proposalId:BigInt(0),depositor:""}}No.QueryDepositRequest={typeUrl:"/cosmos.gov.v1beta1.QueryDepositRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.depositor!==""&&t.uint32(18).string(e.depositor),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=RIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.depositor=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=RIe();return(0,c0.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c0.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.depositor!==void 0&&(t.depositor=e.depositor),t},fromPartial(e){let t=RIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t}};function SIe(){return{deposit:lo.Deposit.fromPartial({})}}No.QueryDepositResponse={typeUrl:"/cosmos.gov.v1beta1.QueryDepositResponse",encode(e,t=Eo.BinaryWriter.create()){return e.deposit!==void 0&&lo.Deposit.encode(e.deposit,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=SIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.deposit=lo.Deposit.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=SIe();return(0,c0.isSet)(e.deposit)&&(t.deposit=lo.Deposit.fromJSON(e.deposit)),t},toJSON(e){let t={};return e.deposit!==void 0&&(t.deposit=e.deposit?lo.Deposit.toJSON(e.deposit):void 0),t},fromPartial(e){let t=SIe();return e.deposit!==void 0&&e.deposit!==null&&(t.deposit=lo.Deposit.fromPartial(e.deposit)),t}};function IIe(){return{proposalId:BigInt(0),pagination:void 0}}No.QueryDepositsRequest={typeUrl:"/cosmos.gov.v1beta1.QueryDepositsRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.pagination!==void 0&&Pc.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=IIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.pagination=Pc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=IIe();return(0,c0.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c0.isSet)(e.pagination)&&(t.pagination=Pc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.pagination!==void 0&&(t.pagination=e.pagination?Pc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=IIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Pc.PageRequest.fromPartial(e.pagination)),t}};function CIe(){return{deposits:[],pagination:void 0}}No.QueryDepositsResponse={typeUrl:"/cosmos.gov.v1beta1.QueryDepositsResponse",encode(e,t=Eo.BinaryWriter.create()){for(let r of e.deposits)lo.Deposit.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Pc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=CIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.deposits.push(lo.Deposit.decode(r,r.uint32()));break;case 2:n.pagination=Pc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=CIe();return Array.isArray(e?.deposits)&&(t.deposits=e.deposits.map(r=>lo.Deposit.fromJSON(r))),(0,c0.isSet)(e.pagination)&&(t.pagination=Pc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.deposits?t.deposits=e.deposits.map(r=>r?lo.Deposit.toJSON(r):void 0):t.deposits=[],e.pagination!==void 0&&(t.pagination=e.pagination?Pc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=CIe();return t.deposits=e.deposits?.map(r=>lo.Deposit.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Pc.PageResponse.fromPartial(e.pagination)),t}};function wIe(){return{proposalId:BigInt(0)}}No.QueryTallyResultRequest={typeUrl:"/cosmos.gov.v1beta1.QueryTallyResultRequest",encode(e,t=Eo.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=wIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proposalId=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=wIe();return(0,c0.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=wIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t}};function OIe(){return{tally:lo.TallyResult.fromPartial({})}}No.QueryTallyResultResponse={typeUrl:"/cosmos.gov.v1beta1.QueryTallyResultResponse",encode(e,t=Eo.BinaryWriter.create()){return e.tally!==void 0&&lo.TallyResult.encode(e.tally,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Eo.BinaryReader?e:new Eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=OIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.tally=lo.TallyResult.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=OIe();return(0,c0.isSet)(e.tally)&&(t.tally=lo.TallyResult.fromJSON(e.tally)),t},toJSON(e){let t={};return e.tally!==void 0&&(t.tally=e.tally?lo.TallyResult.toJSON(e.tally):void 0),t},fromPartial(e){let t=OIe();return e.tally!==void 0&&e.tally!==null&&(t.tally=lo.TallyResult.fromPartial(e.tally)),t}};var NIe=class{constructor(t){this.rpc=t,this.Proposal=this.Proposal.bind(this),this.Proposals=this.Proposals.bind(this),this.Vote=this.Vote.bind(this),this.Votes=this.Votes.bind(this),this.Params=this.Params.bind(this),this.Deposit=this.Deposit.bind(this),this.Deposits=this.Deposits.bind(this),this.TallyResult=this.TallyResult.bind(this)}Proposal(t){let r=No.QueryProposalRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",r).then(n=>No.QueryProposalResponse.decode(new Eo.BinaryReader(n)))}Proposals(t){let r=No.QueryProposalsRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",r).then(n=>No.QueryProposalsResponse.decode(new Eo.BinaryReader(n)))}Vote(t){let r=No.QueryVoteRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Vote",r).then(n=>No.QueryVoteResponse.decode(new Eo.BinaryReader(n)))}Votes(t){let r=No.QueryVotesRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Votes",r).then(n=>No.QueryVotesResponse.decode(new Eo.BinaryReader(n)))}Params(t){let r=No.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Params",r).then(n=>No.QueryParamsResponse.decode(new Eo.BinaryReader(n)))}Deposit(t){let r=No.QueryDepositRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",r).then(n=>No.QueryDepositResponse.decode(new Eo.BinaryReader(n)))}Deposits(t){let r=No.QueryDepositsRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",r).then(n=>No.QueryDepositsResponse.decode(new Eo.BinaryReader(n)))}TallyResult(t){let r=No.QueryTallyResultRequest.encode(t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",r).then(n=>No.QueryTallyResultResponse.decode(new Eo.BinaryReader(n)))}};No.QueryClientImpl=NIe});var Dmt=ir(Kee=>{"use strict";J();K();z();Object.defineProperty(Kee,"__esModule",{value:!0});Kee.setupGovExtension=void 0;var Vpn=Mmt(),DE=ep();function Jpn(e){let t=(0,DE.createProtobufRpcClient)(e),r=new Vpn.QueryClientImpl(t);return{gov:{params:async i=>await r.Params({paramsType:i}),proposals:async(i,n,o,d)=>await r.Proposals({proposalStatus:i,depositor:n,voter:o,pagination:(0,DE.createPagination)(d)}),proposal:async i=>await r.Proposal({proposalId:(0,DE.longify)(i)}),deposits:async(i,n)=>await r.Deposits({proposalId:(0,DE.longify)(i),pagination:(0,DE.createPagination)(n)}),deposit:async(i,n)=>await r.Deposit({proposalId:(0,DE.longify)(i),depositor:n}),tally:async i=>await r.TallyResult({proposalId:(0,DE.longify)(i)}),votes:async(i,n)=>await r.Votes({proposalId:(0,DE.longify)(i),pagination:(0,DE.createPagination)(n)}),vote:async(i,n)=>await r.Vote({proposalId:(0,DE.longify)(i),voter:n})}}}Kee.setupGovExtension=Jpn});var kmt=ir($ee=>{"use strict";J();K();z();Object.defineProperty($ee,"__esModule",{value:!0});$ee.createGroupAminoConverters=void 0;function zpn(){return{}}$ee.createGroupAminoConverters=zpn});var Gmt=ir(Wi=>{"use strict";J();K();z();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Vote=Wi.TallyResult=Wi.Proposal=Wi.GroupPolicyInfo=Wi.GroupMember=Wi.GroupInfo=Wi.DecisionPolicyWindows=Wi.PercentageDecisionPolicy=Wi.ThresholdDecisionPolicy=Wi.MemberRequest=Wi.Member=Wi.proposalExecutorResultToJSON=Wi.proposalExecutorResultFromJSON=Wi.ProposalExecutorResult=Wi.proposalStatusToJSON=Wi.proposalStatusFromJSON=Wi.ProposalStatus=Wi.voteOptionToJSON=Wi.voteOptionFromJSON=Wi.VoteOption=Wi.protobufPackage=void 0;var O0=u1(),O2=wS(),kE=ru(),oc=Qi(),io=Hi();Wi.protobufPackage="cosmos.group.v1";var h1;(function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(h1||(Wi.VoteOption=h1={}));function Pmt(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return h1.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return h1.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return h1.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return h1.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return h1.VOTE_OPTION_NO_WITH_VETO;default:return h1.UNRECOGNIZED}}Wi.voteOptionFromJSON=Pmt;function Lmt(e){switch(e){case h1.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case h1.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case h1.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case h1.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case h1.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case h1.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Wi.voteOptionToJSON=Lmt;var fA;(function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_SUBMITTED=1]="PROPOSAL_STATUS_SUBMITTED",e[e.PROPOSAL_STATUS_ACCEPTED=2]="PROPOSAL_STATUS_ACCEPTED",e[e.PROPOSAL_STATUS_REJECTED=3]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_ABORTED=4]="PROPOSAL_STATUS_ABORTED",e[e.PROPOSAL_STATUS_WITHDRAWN=5]="PROPOSAL_STATUS_WITHDRAWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fA||(Wi.ProposalStatus=fA={}));function Umt(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return fA.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_SUBMITTED":return fA.PROPOSAL_STATUS_SUBMITTED;case 2:case"PROPOSAL_STATUS_ACCEPTED":return fA.PROPOSAL_STATUS_ACCEPTED;case 3:case"PROPOSAL_STATUS_REJECTED":return fA.PROPOSAL_STATUS_REJECTED;case 4:case"PROPOSAL_STATUS_ABORTED":return fA.PROPOSAL_STATUS_ABORTED;case 5:case"PROPOSAL_STATUS_WITHDRAWN":return fA.PROPOSAL_STATUS_WITHDRAWN;default:return fA.UNRECOGNIZED}}Wi.proposalStatusFromJSON=Umt;function Fmt(e){switch(e){case fA.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case fA.PROPOSAL_STATUS_SUBMITTED:return"PROPOSAL_STATUS_SUBMITTED";case fA.PROPOSAL_STATUS_ACCEPTED:return"PROPOSAL_STATUS_ACCEPTED";case fA.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case fA.PROPOSAL_STATUS_ABORTED:return"PROPOSAL_STATUS_ABORTED";case fA.PROPOSAL_STATUS_WITHDRAWN:return"PROPOSAL_STATUS_WITHDRAWN";case fA.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Wi.proposalStatusToJSON=Fmt;var N2;(function(e){e[e.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED=0]="PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",e[e.PROPOSAL_EXECUTOR_RESULT_NOT_RUN=1]="PROPOSAL_EXECUTOR_RESULT_NOT_RUN",e[e.PROPOSAL_EXECUTOR_RESULT_SUCCESS=2]="PROPOSAL_EXECUTOR_RESULT_SUCCESS",e[e.PROPOSAL_EXECUTOR_RESULT_FAILURE=3]="PROPOSAL_EXECUTOR_RESULT_FAILURE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(N2||(Wi.ProposalExecutorResult=N2={}));function Qmt(e){switch(e){case 0:case"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":return N2.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;case 1:case"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":return N2.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;case 2:case"PROPOSAL_EXECUTOR_RESULT_SUCCESS":return N2.PROPOSAL_EXECUTOR_RESULT_SUCCESS;case 3:case"PROPOSAL_EXECUTOR_RESULT_FAILURE":return N2.PROPOSAL_EXECUTOR_RESULT_FAILURE;default:return N2.UNRECOGNIZED}}Wi.proposalExecutorResultFromJSON=Qmt;function Hmt(e){switch(e){case N2.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:return"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";case N2.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:return"PROPOSAL_EXECUTOR_RESULT_NOT_RUN";case N2.PROPOSAL_EXECUTOR_RESULT_SUCCESS:return"PROPOSAL_EXECUTOR_RESULT_SUCCESS";case N2.PROPOSAL_EXECUTOR_RESULT_FAILURE:return"PROPOSAL_EXECUTOR_RESULT_FAILURE";case N2.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Wi.proposalExecutorResultToJSON=Hmt;function xIe(){return{address:"",weight:"",metadata:"",addedAt:O0.Timestamp.fromPartial({})}}Wi.Member={typeUrl:"/cosmos.group.v1.Member",encode(e,t=oc.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.weight!==""&&t.uint32(18).string(e.weight),e.metadata!==""&&t.uint32(26).string(e.metadata),e.addedAt!==void 0&&O0.Timestamp.encode(e.addedAt,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=xIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.weight=r.string();break;case 3:n.metadata=r.string();break;case 4:n.addedAt=O0.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=xIe();return(0,io.isSet)(e.address)&&(t.address=String(e.address)),(0,io.isSet)(e.weight)&&(t.weight=String(e.weight)),(0,io.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,io.isSet)(e.addedAt)&&(t.addedAt=(0,io.fromJsonTimestamp)(e.addedAt)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.weight!==void 0&&(t.weight=e.weight),e.metadata!==void 0&&(t.metadata=e.metadata),e.addedAt!==void 0&&(t.addedAt=(0,io.fromTimestamp)(e.addedAt).toISOString()),t},fromPartial(e){let t=xIe();return t.address=e.address??"",t.weight=e.weight??"",t.metadata=e.metadata??"",e.addedAt!==void 0&&e.addedAt!==null&&(t.addedAt=O0.Timestamp.fromPartial(e.addedAt)),t}};function TIe(){return{address:"",weight:"",metadata:""}}Wi.MemberRequest={typeUrl:"/cosmos.group.v1.MemberRequest",encode(e,t=oc.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.weight!==""&&t.uint32(18).string(e.weight),e.metadata!==""&&t.uint32(26).string(e.metadata),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=TIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.weight=r.string();break;case 3:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=TIe();return(0,io.isSet)(e.address)&&(t.address=String(e.address)),(0,io.isSet)(e.weight)&&(t.weight=String(e.weight)),(0,io.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.weight!==void 0&&(t.weight=e.weight),e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=TIe();return t.address=e.address??"",t.weight=e.weight??"",t.metadata=e.metadata??"",t}};function BIe(){return{threshold:"",windows:void 0}}Wi.ThresholdDecisionPolicy={typeUrl:"/cosmos.group.v1.ThresholdDecisionPolicy",encode(e,t=oc.BinaryWriter.create()){return e.threshold!==""&&t.uint32(10).string(e.threshold),e.windows!==void 0&&Wi.DecisionPolicyWindows.encode(e.windows,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=BIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.threshold=r.string();break;case 2:n.windows=Wi.DecisionPolicyWindows.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=BIe();return(0,io.isSet)(e.threshold)&&(t.threshold=String(e.threshold)),(0,io.isSet)(e.windows)&&(t.windows=Wi.DecisionPolicyWindows.fromJSON(e.windows)),t},toJSON(e){let t={};return e.threshold!==void 0&&(t.threshold=e.threshold),e.windows!==void 0&&(t.windows=e.windows?Wi.DecisionPolicyWindows.toJSON(e.windows):void 0),t},fromPartial(e){let t=BIe();return t.threshold=e.threshold??"",e.windows!==void 0&&e.windows!==null&&(t.windows=Wi.DecisionPolicyWindows.fromPartial(e.windows)),t}};function MIe(){return{percentage:"",windows:void 0}}Wi.PercentageDecisionPolicy={typeUrl:"/cosmos.group.v1.PercentageDecisionPolicy",encode(e,t=oc.BinaryWriter.create()){return e.percentage!==""&&t.uint32(10).string(e.percentage),e.windows!==void 0&&Wi.DecisionPolicyWindows.encode(e.windows,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=MIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.percentage=r.string();break;case 2:n.windows=Wi.DecisionPolicyWindows.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=MIe();return(0,io.isSet)(e.percentage)&&(t.percentage=String(e.percentage)),(0,io.isSet)(e.windows)&&(t.windows=Wi.DecisionPolicyWindows.fromJSON(e.windows)),t},toJSON(e){let t={};return e.percentage!==void 0&&(t.percentage=e.percentage),e.windows!==void 0&&(t.windows=e.windows?Wi.DecisionPolicyWindows.toJSON(e.windows):void 0),t},fromPartial(e){let t=MIe();return t.percentage=e.percentage??"",e.windows!==void 0&&e.windows!==null&&(t.windows=Wi.DecisionPolicyWindows.fromPartial(e.windows)),t}};function DIe(){return{votingPeriod:O2.Duration.fromPartial({}),minExecutionPeriod:O2.Duration.fromPartial({})}}Wi.DecisionPolicyWindows={typeUrl:"/cosmos.group.v1.DecisionPolicyWindows",encode(e,t=oc.BinaryWriter.create()){return e.votingPeriod!==void 0&&O2.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),e.minExecutionPeriod!==void 0&&O2.Duration.encode(e.minExecutionPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=DIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.votingPeriod=O2.Duration.decode(r,r.uint32());break;case 2:n.minExecutionPeriod=O2.Duration.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=DIe();return(0,io.isSet)(e.votingPeriod)&&(t.votingPeriod=O2.Duration.fromJSON(e.votingPeriod)),(0,io.isSet)(e.minExecutionPeriod)&&(t.minExecutionPeriod=O2.Duration.fromJSON(e.minExecutionPeriod)),t},toJSON(e){let t={};return e.votingPeriod!==void 0&&(t.votingPeriod=e.votingPeriod?O2.Duration.toJSON(e.votingPeriod):void 0),e.minExecutionPeriod!==void 0&&(t.minExecutionPeriod=e.minExecutionPeriod?O2.Duration.toJSON(e.minExecutionPeriod):void 0),t},fromPartial(e){let t=DIe();return e.votingPeriod!==void 0&&e.votingPeriod!==null&&(t.votingPeriod=O2.Duration.fromPartial(e.votingPeriod)),e.minExecutionPeriod!==void 0&&e.minExecutionPeriod!==null&&(t.minExecutionPeriod=O2.Duration.fromPartial(e.minExecutionPeriod)),t}};function kIe(){return{id:BigInt(0),admin:"",metadata:"",version:BigInt(0),totalWeight:"",createdAt:O0.Timestamp.fromPartial({})}}Wi.GroupInfo={typeUrl:"/cosmos.group.v1.GroupInfo",encode(e,t=oc.BinaryWriter.create()){return e.id!==BigInt(0)&&t.uint32(8).uint64(e.id),e.admin!==""&&t.uint32(18).string(e.admin),e.metadata!==""&&t.uint32(26).string(e.metadata),e.version!==BigInt(0)&&t.uint32(32).uint64(e.version),e.totalWeight!==""&&t.uint32(42).string(e.totalWeight),e.createdAt!==void 0&&O0.Timestamp.encode(e.createdAt,t.uint32(50).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.id=r.uint64();break;case 2:n.admin=r.string();break;case 3:n.metadata=r.string();break;case 4:n.version=r.uint64();break;case 5:n.totalWeight=r.string();break;case 6:n.createdAt=O0.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kIe();return(0,io.isSet)(e.id)&&(t.id=BigInt(e.id.toString())),(0,io.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,io.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,io.isSet)(e.version)&&(t.version=BigInt(e.version.toString())),(0,io.isSet)(e.totalWeight)&&(t.totalWeight=String(e.totalWeight)),(0,io.isSet)(e.createdAt)&&(t.createdAt=(0,io.fromJsonTimestamp)(e.createdAt)),t},toJSON(e){let t={};return e.id!==void 0&&(t.id=(e.id||BigInt(0)).toString()),e.admin!==void 0&&(t.admin=e.admin),e.metadata!==void 0&&(t.metadata=e.metadata),e.version!==void 0&&(t.version=(e.version||BigInt(0)).toString()),e.totalWeight!==void 0&&(t.totalWeight=e.totalWeight),e.createdAt!==void 0&&(t.createdAt=(0,io.fromTimestamp)(e.createdAt).toISOString()),t},fromPartial(e){let t=kIe();return e.id!==void 0&&e.id!==null&&(t.id=BigInt(e.id.toString())),t.admin=e.admin??"",t.metadata=e.metadata??"",e.version!==void 0&&e.version!==null&&(t.version=BigInt(e.version.toString())),t.totalWeight=e.totalWeight??"",e.createdAt!==void 0&&e.createdAt!==null&&(t.createdAt=O0.Timestamp.fromPartial(e.createdAt)),t}};function PIe(){return{groupId:BigInt(0),member:void 0}}Wi.GroupMember={typeUrl:"/cosmos.group.v1.GroupMember",encode(e,t=oc.BinaryWriter.create()){return e.groupId!==BigInt(0)&&t.uint32(8).uint64(e.groupId),e.member!==void 0&&Wi.Member.encode(e.member,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=PIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.groupId=r.uint64();break;case 2:n.member=Wi.Member.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=PIe();return(0,io.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,io.isSet)(e.member)&&(t.member=Wi.Member.fromJSON(e.member)),t},toJSON(e){let t={};return e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.member!==void 0&&(t.member=e.member?Wi.Member.toJSON(e.member):void 0),t},fromPartial(e){let t=PIe();return e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),e.member!==void 0&&e.member!==null&&(t.member=Wi.Member.fromPartial(e.member)),t}};function LIe(){return{address:"",groupId:BigInt(0),admin:"",metadata:"",version:BigInt(0),decisionPolicy:void 0,createdAt:O0.Timestamp.fromPartial({})}}Wi.GroupPolicyInfo={typeUrl:"/cosmos.group.v1.GroupPolicyInfo",encode(e,t=oc.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),e.admin!==""&&t.uint32(26).string(e.admin),e.metadata!==""&&t.uint32(34).string(e.metadata),e.version!==BigInt(0)&&t.uint32(40).uint64(e.version),e.decisionPolicy!==void 0&&kE.Any.encode(e.decisionPolicy,t.uint32(50).fork()).ldelim(),e.createdAt!==void 0&&O0.Timestamp.encode(e.createdAt,t.uint32(58).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=LIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.groupId=r.uint64();break;case 3:n.admin=r.string();break;case 4:n.metadata=r.string();break;case 5:n.version=r.uint64();break;case 6:n.decisionPolicy=kE.Any.decode(r,r.uint32());break;case 7:n.createdAt=O0.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=LIe();return(0,io.isSet)(e.address)&&(t.address=String(e.address)),(0,io.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,io.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,io.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,io.isSet)(e.version)&&(t.version=BigInt(e.version.toString())),(0,io.isSet)(e.decisionPolicy)&&(t.decisionPolicy=kE.Any.fromJSON(e.decisionPolicy)),(0,io.isSet)(e.createdAt)&&(t.createdAt=(0,io.fromJsonTimestamp)(e.createdAt)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.admin!==void 0&&(t.admin=e.admin),e.metadata!==void 0&&(t.metadata=e.metadata),e.version!==void 0&&(t.version=(e.version||BigInt(0)).toString()),e.decisionPolicy!==void 0&&(t.decisionPolicy=e.decisionPolicy?kE.Any.toJSON(e.decisionPolicy):void 0),e.createdAt!==void 0&&(t.createdAt=(0,io.fromTimestamp)(e.createdAt).toISOString()),t},fromPartial(e){let t=LIe();return t.address=e.address??"",e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t.admin=e.admin??"",t.metadata=e.metadata??"",e.version!==void 0&&e.version!==null&&(t.version=BigInt(e.version.toString())),e.decisionPolicy!==void 0&&e.decisionPolicy!==null&&(t.decisionPolicy=kE.Any.fromPartial(e.decisionPolicy)),e.createdAt!==void 0&&e.createdAt!==null&&(t.createdAt=O0.Timestamp.fromPartial(e.createdAt)),t}};function UIe(){return{id:BigInt(0),groupPolicyAddress:"",metadata:"",proposers:[],submitTime:O0.Timestamp.fromPartial({}),groupVersion:BigInt(0),groupPolicyVersion:BigInt(0),status:0,finalTallyResult:Wi.TallyResult.fromPartial({}),votingPeriodEnd:O0.Timestamp.fromPartial({}),executorResult:0,messages:[],title:"",summary:""}}Wi.Proposal={typeUrl:"/cosmos.group.v1.Proposal",encode(e,t=oc.BinaryWriter.create()){e.id!==BigInt(0)&&t.uint32(8).uint64(e.id),e.groupPolicyAddress!==""&&t.uint32(18).string(e.groupPolicyAddress),e.metadata!==""&&t.uint32(26).string(e.metadata);for(let r of e.proposers)t.uint32(34).string(r);e.submitTime!==void 0&&O0.Timestamp.encode(e.submitTime,t.uint32(42).fork()).ldelim(),e.groupVersion!==BigInt(0)&&t.uint32(48).uint64(e.groupVersion),e.groupPolicyVersion!==BigInt(0)&&t.uint32(56).uint64(e.groupPolicyVersion),e.status!==0&&t.uint32(64).int32(e.status),e.finalTallyResult!==void 0&&Wi.TallyResult.encode(e.finalTallyResult,t.uint32(74).fork()).ldelim(),e.votingPeriodEnd!==void 0&&O0.Timestamp.encode(e.votingPeriodEnd,t.uint32(82).fork()).ldelim(),e.executorResult!==0&&t.uint32(88).int32(e.executorResult);for(let r of e.messages)kE.Any.encode(r,t.uint32(98).fork()).ldelim();return e.title!==""&&t.uint32(106).string(e.title),e.summary!==""&&t.uint32(114).string(e.summary),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=UIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.id=r.uint64();break;case 2:n.groupPolicyAddress=r.string();break;case 3:n.metadata=r.string();break;case 4:n.proposers.push(r.string());break;case 5:n.submitTime=O0.Timestamp.decode(r,r.uint32());break;case 6:n.groupVersion=r.uint64();break;case 7:n.groupPolicyVersion=r.uint64();break;case 8:n.status=r.int32();break;case 9:n.finalTallyResult=Wi.TallyResult.decode(r,r.uint32());break;case 10:n.votingPeriodEnd=O0.Timestamp.decode(r,r.uint32());break;case 11:n.executorResult=r.int32();break;case 12:n.messages.push(kE.Any.decode(r,r.uint32()));break;case 13:n.title=r.string();break;case 14:n.summary=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=UIe();return(0,io.isSet)(e.id)&&(t.id=BigInt(e.id.toString())),(0,io.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,io.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),Array.isArray(e?.proposers)&&(t.proposers=e.proposers.map(r=>String(r))),(0,io.isSet)(e.submitTime)&&(t.submitTime=(0,io.fromJsonTimestamp)(e.submitTime)),(0,io.isSet)(e.groupVersion)&&(t.groupVersion=BigInt(e.groupVersion.toString())),(0,io.isSet)(e.groupPolicyVersion)&&(t.groupPolicyVersion=BigInt(e.groupPolicyVersion.toString())),(0,io.isSet)(e.status)&&(t.status=Umt(e.status)),(0,io.isSet)(e.finalTallyResult)&&(t.finalTallyResult=Wi.TallyResult.fromJSON(e.finalTallyResult)),(0,io.isSet)(e.votingPeriodEnd)&&(t.votingPeriodEnd=(0,io.fromJsonTimestamp)(e.votingPeriodEnd)),(0,io.isSet)(e.executorResult)&&(t.executorResult=Qmt(e.executorResult)),Array.isArray(e?.messages)&&(t.messages=e.messages.map(r=>kE.Any.fromJSON(r))),(0,io.isSet)(e.title)&&(t.title=String(e.title)),(0,io.isSet)(e.summary)&&(t.summary=String(e.summary)),t},toJSON(e){let t={};return e.id!==void 0&&(t.id=(e.id||BigInt(0)).toString()),e.groupPolicyAddress!==void 0&&(t.groupPolicyAddress=e.groupPolicyAddress),e.metadata!==void 0&&(t.metadata=e.metadata),e.proposers?t.proposers=e.proposers.map(r=>r):t.proposers=[],e.submitTime!==void 0&&(t.submitTime=(0,io.fromTimestamp)(e.submitTime).toISOString()),e.groupVersion!==void 0&&(t.groupVersion=(e.groupVersion||BigInt(0)).toString()),e.groupPolicyVersion!==void 0&&(t.groupPolicyVersion=(e.groupPolicyVersion||BigInt(0)).toString()),e.status!==void 0&&(t.status=Fmt(e.status)),e.finalTallyResult!==void 0&&(t.finalTallyResult=e.finalTallyResult?Wi.TallyResult.toJSON(e.finalTallyResult):void 0),e.votingPeriodEnd!==void 0&&(t.votingPeriodEnd=(0,io.fromTimestamp)(e.votingPeriodEnd).toISOString()),e.executorResult!==void 0&&(t.executorResult=Hmt(e.executorResult)),e.messages?t.messages=e.messages.map(r=>r?kE.Any.toJSON(r):void 0):t.messages=[],e.title!==void 0&&(t.title=e.title),e.summary!==void 0&&(t.summary=e.summary),t},fromPartial(e){let t=UIe();return e.id!==void 0&&e.id!==null&&(t.id=BigInt(e.id.toString())),t.groupPolicyAddress=e.groupPolicyAddress??"",t.metadata=e.metadata??"",t.proposers=e.proposers?.map(r=>r)||[],e.submitTime!==void 0&&e.submitTime!==null&&(t.submitTime=O0.Timestamp.fromPartial(e.submitTime)),e.groupVersion!==void 0&&e.groupVersion!==null&&(t.groupVersion=BigInt(e.groupVersion.toString())),e.groupPolicyVersion!==void 0&&e.groupPolicyVersion!==null&&(t.groupPolicyVersion=BigInt(e.groupPolicyVersion.toString())),t.status=e.status??0,e.finalTallyResult!==void 0&&e.finalTallyResult!==null&&(t.finalTallyResult=Wi.TallyResult.fromPartial(e.finalTallyResult)),e.votingPeriodEnd!==void 0&&e.votingPeriodEnd!==null&&(t.votingPeriodEnd=O0.Timestamp.fromPartial(e.votingPeriodEnd)),t.executorResult=e.executorResult??0,t.messages=e.messages?.map(r=>kE.Any.fromPartial(r))||[],t.title=e.title??"",t.summary=e.summary??"",t}};function FIe(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}Wi.TallyResult={typeUrl:"/cosmos.group.v1.TallyResult",encode(e,t=oc.BinaryWriter.create()){return e.yesCount!==""&&t.uint32(10).string(e.yesCount),e.abstainCount!==""&&t.uint32(18).string(e.abstainCount),e.noCount!==""&&t.uint32(26).string(e.noCount),e.noWithVetoCount!==""&&t.uint32(34).string(e.noWithVetoCount),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=FIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.yesCount=r.string();break;case 2:n.abstainCount=r.string();break;case 3:n.noCount=r.string();break;case 4:n.noWithVetoCount=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=FIe();return(0,io.isSet)(e.yesCount)&&(t.yesCount=String(e.yesCount)),(0,io.isSet)(e.abstainCount)&&(t.abstainCount=String(e.abstainCount)),(0,io.isSet)(e.noCount)&&(t.noCount=String(e.noCount)),(0,io.isSet)(e.noWithVetoCount)&&(t.noWithVetoCount=String(e.noWithVetoCount)),t},toJSON(e){let t={};return e.yesCount!==void 0&&(t.yesCount=e.yesCount),e.abstainCount!==void 0&&(t.abstainCount=e.abstainCount),e.noCount!==void 0&&(t.noCount=e.noCount),e.noWithVetoCount!==void 0&&(t.noWithVetoCount=e.noWithVetoCount),t},fromPartial(e){let t=FIe();return t.yesCount=e.yesCount??"",t.abstainCount=e.abstainCount??"",t.noCount=e.noCount??"",t.noWithVetoCount=e.noWithVetoCount??"",t}};function QIe(){return{proposalId:BigInt(0),voter:"",option:0,metadata:"",submitTime:O0.Timestamp.fromPartial({})}}Wi.Vote={typeUrl:"/cosmos.group.v1.Vote",encode(e,t=oc.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter),e.option!==0&&t.uint32(24).int32(e.option),e.metadata!==""&&t.uint32(34).string(e.metadata),e.submitTime!==void 0&&O0.Timestamp.encode(e.submitTime,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof oc.BinaryReader?e:new oc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=QIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.option=r.int32();break;case 4:n.metadata=r.string();break;case 5:n.submitTime=O0.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=QIe();return(0,io.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,io.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,io.isSet)(e.option)&&(t.option=Pmt(e.option)),(0,io.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,io.isSet)(e.submitTime)&&(t.submitTime=(0,io.fromJsonTimestamp)(e.submitTime)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.option!==void 0&&(t.option=Lmt(e.option)),e.metadata!==void 0&&(t.metadata=e.metadata),e.submitTime!==void 0&&(t.submitTime=(0,io.fromTimestamp)(e.submitTime).toISOString()),t},fromPartial(e){let t=QIe();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.metadata=e.metadata??"",e.submitTime!==void 0&&e.submitTime!==null&&(t.submitTime=O0.Timestamp.fromPartial(e.submitTime)),t}}});var qmt=ir(Xn=>{"use strict";J();K();z();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.MsgClientImpl=Xn.MsgLeaveGroupResponse=Xn.MsgLeaveGroup=Xn.MsgExecResponse=Xn.MsgExec=Xn.MsgVoteResponse=Xn.MsgVote=Xn.MsgWithdrawProposalResponse=Xn.MsgWithdrawProposal=Xn.MsgSubmitProposalResponse=Xn.MsgSubmitProposal=Xn.MsgUpdateGroupPolicyMetadataResponse=Xn.MsgUpdateGroupPolicyMetadata=Xn.MsgUpdateGroupPolicyDecisionPolicyResponse=Xn.MsgUpdateGroupPolicyDecisionPolicy=Xn.MsgCreateGroupWithPolicyResponse=Xn.MsgCreateGroupWithPolicy=Xn.MsgUpdateGroupPolicyAdminResponse=Xn.MsgUpdateGroupPolicyAdmin=Xn.MsgCreateGroupPolicyResponse=Xn.MsgCreateGroupPolicy=Xn.MsgUpdateGroupMetadataResponse=Xn.MsgUpdateGroupMetadata=Xn.MsgUpdateGroupAdminResponse=Xn.MsgUpdateGroupAdmin=Xn.MsgUpdateGroupMembersResponse=Xn.MsgUpdateGroupMembers=Xn.MsgCreateGroupResponse=Xn.MsgCreateGroup=Xn.execToJSON=Xn.execFromJSON=Xn.Exec=Xn.protobufPackage=void 0;var zf=Gmt(),vf=ru(),$n=Qi(),Ho=Hi();Xn.protobufPackage="cosmos.group.v1";var a8;(function(e){e[e.EXEC_UNSPECIFIED=0]="EXEC_UNSPECIFIED",e[e.EXEC_TRY=1]="EXEC_TRY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(a8||(Xn.Exec=a8={}));function g3e(e){switch(e){case 0:case"EXEC_UNSPECIFIED":return a8.EXEC_UNSPECIFIED;case 1:case"EXEC_TRY":return a8.EXEC_TRY;default:return a8.UNRECOGNIZED}}Xn.execFromJSON=g3e;function _3e(e){switch(e){case a8.EXEC_UNSPECIFIED:return"EXEC_UNSPECIFIED";case a8.EXEC_TRY:return"EXEC_TRY";case a8.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Xn.execToJSON=_3e;function HIe(){return{admin:"",members:[],metadata:""}}Xn.MsgCreateGroup={typeUrl:"/cosmos.group.v1.MsgCreateGroup",encode(e,t=$n.BinaryWriter.create()){e.admin!==""&&t.uint32(10).string(e.admin);for(let r of e.members)zf.MemberRequest.encode(r,t.uint32(18).fork()).ldelim();return e.metadata!==""&&t.uint32(26).string(e.metadata),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=HIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.members.push(zf.MemberRequest.decode(r,r.uint32()));break;case 3:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=HIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),Array.isArray(e?.members)&&(t.members=e.members.map(r=>zf.MemberRequest.fromJSON(r))),(0,Ho.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.members?t.members=e.members.map(r=>r?zf.MemberRequest.toJSON(r):void 0):t.members=[],e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=HIe();return t.admin=e.admin??"",t.members=e.members?.map(r=>zf.MemberRequest.fromPartial(r))||[],t.metadata=e.metadata??"",t}};function GIe(){return{groupId:BigInt(0)}}Xn.MsgCreateGroupResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupResponse",encode(e,t=$n.BinaryWriter.create()){return e.groupId!==BigInt(0)&&t.uint32(8).uint64(e.groupId),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=GIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.groupId=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=GIe();return(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),t},toJSON(e){let t={};return e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),t},fromPartial(e){let t=GIe();return e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t}};function qIe(){return{admin:"",groupId:BigInt(0),memberUpdates:[]}}Xn.MsgUpdateGroupMembers={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembers",encode(e,t=$n.BinaryWriter.create()){e.admin!==""&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId);for(let r of e.memberUpdates)zf.MemberRequest.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupId=r.uint64();break;case 3:n.memberUpdates.push(zf.MemberRequest.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),Array.isArray(e?.memberUpdates)&&(t.memberUpdates=e.memberUpdates.map(r=>zf.MemberRequest.fromJSON(r))),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.memberUpdates?t.memberUpdates=e.memberUpdates.map(r=>r?zf.MemberRequest.toJSON(r):void 0):t.memberUpdates=[],t},fromPartial(e){let t=qIe();return t.admin=e.admin??"",e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t.memberUpdates=e.memberUpdates?.map(r=>zf.MemberRequest.fromPartial(r))||[],t}};function VIe(){return{}}Xn.MsgUpdateGroupMembersResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembersResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=VIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return VIe()},toJSON(e){return{}},fromPartial(e){return VIe()}};function JIe(){return{admin:"",groupId:BigInt(0),newAdmin:""}}Xn.MsgUpdateGroupAdmin={typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdmin",encode(e,t=$n.BinaryWriter.create()){return e.admin!==""&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),e.newAdmin!==""&&t.uint32(26).string(e.newAdmin),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=JIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupId=r.uint64();break;case 3:n.newAdmin=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=JIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,Ho.isSet)(e.newAdmin)&&(t.newAdmin=String(e.newAdmin)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.newAdmin!==void 0&&(t.newAdmin=e.newAdmin),t},fromPartial(e){let t=JIe();return t.admin=e.admin??"",e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t.newAdmin=e.newAdmin??"",t}};function zIe(){return{}}Xn.MsgUpdateGroupAdminResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdminResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return zIe()},toJSON(e){return{}},fromPartial(e){return zIe()}};function KIe(){return{admin:"",groupId:BigInt(0),metadata:""}}Xn.MsgUpdateGroupMetadata={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadata",encode(e,t=$n.BinaryWriter.create()){return e.admin!==""&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),e.metadata!==""&&t.uint32(26).string(e.metadata),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=KIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupId=r.uint64();break;case 3:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=KIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,Ho.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=KIe();return t.admin=e.admin??"",e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t.metadata=e.metadata??"",t}};function $Ie(){return{}}Xn.MsgUpdateGroupMetadataResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadataResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$Ie();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return $Ie()},toJSON(e){return{}},fromPartial(e){return $Ie()}};function YIe(){return{admin:"",groupId:BigInt(0),metadata:"",decisionPolicy:void 0}}Xn.MsgCreateGroupPolicy={typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicy",encode(e,t=$n.BinaryWriter.create()){return e.admin!==""&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),e.metadata!==""&&t.uint32(26).string(e.metadata),e.decisionPolicy!==void 0&&vf.Any.encode(e.decisionPolicy,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=YIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupId=r.uint64();break;case 3:n.metadata=r.string();break;case 4:n.decisionPolicy=vf.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=YIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,Ho.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,Ho.isSet)(e.decisionPolicy)&&(t.decisionPolicy=vf.Any.fromJSON(e.decisionPolicy)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.metadata!==void 0&&(t.metadata=e.metadata),e.decisionPolicy!==void 0&&(t.decisionPolicy=e.decisionPolicy?vf.Any.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){let t=YIe();return t.admin=e.admin??"",e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t.metadata=e.metadata??"",e.decisionPolicy!==void 0&&e.decisionPolicy!==null&&(t.decisionPolicy=vf.Any.fromPartial(e.decisionPolicy)),t}};function WIe(){return{address:""}}Xn.MsgCreateGroupPolicyResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicyResponse",encode(e,t=$n.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=WIe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.address=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=WIe();return(0,Ho.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),t},fromPartial(e){let t=WIe();return t.address=e.address??"",t}};function XIe(){return{admin:"",groupPolicyAddress:"",newAdmin:""}}Xn.MsgUpdateGroupPolicyAdmin={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",encode(e,t=$n.BinaryWriter.create()){return e.admin!==""&&t.uint32(10).string(e.admin),e.groupPolicyAddress!==""&&t.uint32(18).string(e.groupPolicyAddress),e.newAdmin!==""&&t.uint32(26).string(e.newAdmin),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=XIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupPolicyAddress=r.string();break;case 3:n.newAdmin=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=XIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,Ho.isSet)(e.newAdmin)&&(t.newAdmin=String(e.newAdmin)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupPolicyAddress!==void 0&&(t.groupPolicyAddress=e.groupPolicyAddress),e.newAdmin!==void 0&&(t.newAdmin=e.newAdmin),t},fromPartial(e){let t=XIe();return t.admin=e.admin??"",t.groupPolicyAddress=e.groupPolicyAddress??"",t.newAdmin=e.newAdmin??"",t}};function ZIe(){return{}}Xn.MsgUpdateGroupPolicyAdminResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ZIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return ZIe()},toJSON(e){return{}},fromPartial(e){return ZIe()}};function jIe(){return{admin:"",members:[],groupMetadata:"",groupPolicyMetadata:"",groupPolicyAsAdmin:!1,decisionPolicy:void 0}}Xn.MsgCreateGroupWithPolicy={typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicy",encode(e,t=$n.BinaryWriter.create()){e.admin!==""&&t.uint32(10).string(e.admin);for(let r of e.members)zf.MemberRequest.encode(r,t.uint32(18).fork()).ldelim();return e.groupMetadata!==""&&t.uint32(26).string(e.groupMetadata),e.groupPolicyMetadata!==""&&t.uint32(34).string(e.groupPolicyMetadata),e.groupPolicyAsAdmin===!0&&t.uint32(40).bool(e.groupPolicyAsAdmin),e.decisionPolicy!==void 0&&vf.Any.encode(e.decisionPolicy,t.uint32(50).fork()).ldelim(),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jIe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.members.push(zf.MemberRequest.decode(r,r.uint32()));break;case 3:n.groupMetadata=r.string();break;case 4:n.groupPolicyMetadata=r.string();break;case 5:n.groupPolicyAsAdmin=r.bool();break;case 6:n.decisionPolicy=vf.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=jIe();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),Array.isArray(e?.members)&&(t.members=e.members.map(r=>zf.MemberRequest.fromJSON(r))),(0,Ho.isSet)(e.groupMetadata)&&(t.groupMetadata=String(e.groupMetadata)),(0,Ho.isSet)(e.groupPolicyMetadata)&&(t.groupPolicyMetadata=String(e.groupPolicyMetadata)),(0,Ho.isSet)(e.groupPolicyAsAdmin)&&(t.groupPolicyAsAdmin=!!e.groupPolicyAsAdmin),(0,Ho.isSet)(e.decisionPolicy)&&(t.decisionPolicy=vf.Any.fromJSON(e.decisionPolicy)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.members?t.members=e.members.map(r=>r?zf.MemberRequest.toJSON(r):void 0):t.members=[],e.groupMetadata!==void 0&&(t.groupMetadata=e.groupMetadata),e.groupPolicyMetadata!==void 0&&(t.groupPolicyMetadata=e.groupPolicyMetadata),e.groupPolicyAsAdmin!==void 0&&(t.groupPolicyAsAdmin=e.groupPolicyAsAdmin),e.decisionPolicy!==void 0&&(t.decisionPolicy=e.decisionPolicy?vf.Any.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){let t=jIe();return t.admin=e.admin??"",t.members=e.members?.map(r=>zf.MemberRequest.fromPartial(r))||[],t.groupMetadata=e.groupMetadata??"",t.groupPolicyMetadata=e.groupPolicyMetadata??"",t.groupPolicyAsAdmin=e.groupPolicyAsAdmin??!1,e.decisionPolicy!==void 0&&e.decisionPolicy!==null&&(t.decisionPolicy=vf.Any.fromPartial(e.decisionPolicy)),t}};function e3e(){return{groupId:BigInt(0),groupPolicyAddress:""}}Xn.MsgCreateGroupWithPolicyResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",encode(e,t=$n.BinaryWriter.create()){return e.groupId!==BigInt(0)&&t.uint32(8).uint64(e.groupId),e.groupPolicyAddress!==""&&t.uint32(18).string(e.groupPolicyAddress),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=e3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.groupId=r.uint64();break;case 2:n.groupPolicyAddress=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=e3e();return(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,Ho.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),t},toJSON(e){let t={};return e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.groupPolicyAddress!==void 0&&(t.groupPolicyAddress=e.groupPolicyAddress),t},fromPartial(e){let t=e3e();return e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t.groupPolicyAddress=e.groupPolicyAddress??"",t}};function t3e(){return{admin:"",groupPolicyAddress:"",decisionPolicy:void 0}}Xn.MsgUpdateGroupPolicyDecisionPolicy={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",encode(e,t=$n.BinaryWriter.create()){return e.admin!==""&&t.uint32(10).string(e.admin),e.groupPolicyAddress!==""&&t.uint32(18).string(e.groupPolicyAddress),e.decisionPolicy!==void 0&&vf.Any.encode(e.decisionPolicy,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=t3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupPolicyAddress=r.string();break;case 3:n.decisionPolicy=vf.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=t3e();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,Ho.isSet)(e.decisionPolicy)&&(t.decisionPolicy=vf.Any.fromJSON(e.decisionPolicy)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupPolicyAddress!==void 0&&(t.groupPolicyAddress=e.groupPolicyAddress),e.decisionPolicy!==void 0&&(t.decisionPolicy=e.decisionPolicy?vf.Any.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){let t=t3e();return t.admin=e.admin??"",t.groupPolicyAddress=e.groupPolicyAddress??"",e.decisionPolicy!==void 0&&e.decisionPolicy!==null&&(t.decisionPolicy=vf.Any.fromPartial(e.decisionPolicy)),t}};function r3e(){return{}}Xn.MsgUpdateGroupPolicyDecisionPolicyResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=r3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return r3e()},toJSON(e){return{}},fromPartial(e){return r3e()}};function n3e(){return{admin:"",groupPolicyAddress:"",metadata:""}}Xn.MsgUpdateGroupPolicyMetadata={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",encode(e,t=$n.BinaryWriter.create()){return e.admin!==""&&t.uint32(10).string(e.admin),e.groupPolicyAddress!==""&&t.uint32(18).string(e.groupPolicyAddress),e.metadata!==""&&t.uint32(26).string(e.metadata),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=n3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.admin=r.string();break;case 2:n.groupPolicyAddress=r.string();break;case 3:n.metadata=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=n3e();return(0,Ho.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,Ho.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,Ho.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return e.admin!==void 0&&(t.admin=e.admin),e.groupPolicyAddress!==void 0&&(t.groupPolicyAddress=e.groupPolicyAddress),e.metadata!==void 0&&(t.metadata=e.metadata),t},fromPartial(e){let t=n3e();return t.admin=e.admin??"",t.groupPolicyAddress=e.groupPolicyAddress??"",t.metadata=e.metadata??"",t}};function i3e(){return{}}Xn.MsgUpdateGroupPolicyMetadataResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=i3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return i3e()},toJSON(e){return{}},fromPartial(e){return i3e()}};function o3e(){return{groupPolicyAddress:"",proposers:[],metadata:"",messages:[],exec:0,title:"",summary:""}}Xn.MsgSubmitProposal={typeUrl:"/cosmos.group.v1.MsgSubmitProposal",encode(e,t=$n.BinaryWriter.create()){e.groupPolicyAddress!==""&&t.uint32(10).string(e.groupPolicyAddress);for(let r of e.proposers)t.uint32(18).string(r);e.metadata!==""&&t.uint32(26).string(e.metadata);for(let r of e.messages)vf.Any.encode(r,t.uint32(34).fork()).ldelim();return e.exec!==0&&t.uint32(40).int32(e.exec),e.title!==""&&t.uint32(50).string(e.title),e.summary!==""&&t.uint32(58).string(e.summary),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=o3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.groupPolicyAddress=r.string();break;case 2:n.proposers.push(r.string());break;case 3:n.metadata=r.string();break;case 4:n.messages.push(vf.Any.decode(r,r.uint32()));break;case 5:n.exec=r.int32();break;case 6:n.title=r.string();break;case 7:n.summary=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=o3e();return(0,Ho.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),Array.isArray(e?.proposers)&&(t.proposers=e.proposers.map(r=>String(r))),(0,Ho.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),Array.isArray(e?.messages)&&(t.messages=e.messages.map(r=>vf.Any.fromJSON(r))),(0,Ho.isSet)(e.exec)&&(t.exec=g3e(e.exec)),(0,Ho.isSet)(e.title)&&(t.title=String(e.title)),(0,Ho.isSet)(e.summary)&&(t.summary=String(e.summary)),t},toJSON(e){let t={};return e.groupPolicyAddress!==void 0&&(t.groupPolicyAddress=e.groupPolicyAddress),e.proposers?t.proposers=e.proposers.map(r=>r):t.proposers=[],e.metadata!==void 0&&(t.metadata=e.metadata),e.messages?t.messages=e.messages.map(r=>r?vf.Any.toJSON(r):void 0):t.messages=[],e.exec!==void 0&&(t.exec=_3e(e.exec)),e.title!==void 0&&(t.title=e.title),e.summary!==void 0&&(t.summary=e.summary),t},fromPartial(e){let t=o3e();return t.groupPolicyAddress=e.groupPolicyAddress??"",t.proposers=e.proposers?.map(r=>r)||[],t.metadata=e.metadata??"",t.messages=e.messages?.map(r=>vf.Any.fromPartial(r))||[],t.exec=e.exec??0,t.title=e.title??"",t.summary=e.summary??"",t}};function a3e(){return{proposalId:BigInt(0)}}Xn.MsgSubmitProposalResponse={typeUrl:"/cosmos.group.v1.MsgSubmitProposalResponse",encode(e,t=$n.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=a3e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proposalId=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=a3e();return(0,Ho.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=a3e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t}};function s3e(){return{proposalId:BigInt(0),address:""}}Xn.MsgWithdrawProposal={typeUrl:"/cosmos.group.v1.MsgWithdrawProposal",encode(e,t=$n.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.address!==""&&t.uint32(18).string(e.address),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=s3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.address=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=s3e();return(0,Ho.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,Ho.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.address!==void 0&&(t.address=e.address),t},fromPartial(e){let t=s3e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.address=e.address??"",t}};function c3e(){return{}}Xn.MsgWithdrawProposalResponse={typeUrl:"/cosmos.group.v1.MsgWithdrawProposalResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=c3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return c3e()},toJSON(e){return{}},fromPartial(e){return c3e()}};function u3e(){return{proposalId:BigInt(0),voter:"",option:0,metadata:"",exec:0}}Xn.MsgVote={typeUrl:"/cosmos.group.v1.MsgVote",encode(e,t=$n.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.voter!==""&&t.uint32(18).string(e.voter),e.option!==0&&t.uint32(24).int32(e.option),e.metadata!==""&&t.uint32(34).string(e.metadata),e.exec!==0&&t.uint32(40).int32(e.exec),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=u3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.voter=r.string();break;case 3:n.option=r.int32();break;case 4:n.metadata=r.string();break;case 5:n.exec=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=u3e();return(0,Ho.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,Ho.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,Ho.isSet)(e.option)&&(t.option=(0,zf.voteOptionFromJSON)(e.option)),(0,Ho.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,Ho.isSet)(e.exec)&&(t.exec=g3e(e.exec)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.voter!==void 0&&(t.voter=e.voter),e.option!==void 0&&(t.option=(0,zf.voteOptionToJSON)(e.option)),e.metadata!==void 0&&(t.metadata=e.metadata),e.exec!==void 0&&(t.exec=_3e(e.exec)),t},fromPartial(e){let t=u3e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.metadata=e.metadata??"",t.exec=e.exec??0,t}};function d3e(){return{}}Xn.MsgVoteResponse={typeUrl:"/cosmos.group.v1.MsgVoteResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=d3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return d3e()},toJSON(e){return{}},fromPartial(e){return d3e()}};function f3e(){return{proposalId:BigInt(0),executor:""}}Xn.MsgExec={typeUrl:"/cosmos.group.v1.MsgExec",encode(e,t=$n.BinaryWriter.create()){return e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),e.executor!==""&&t.uint32(18).string(e.executor),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=f3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.proposalId=r.uint64();break;case 2:n.executor=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=f3e();return(0,Ho.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,Ho.isSet)(e.executor)&&(t.executor=String(e.executor)),t},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),e.executor!==void 0&&(t.executor=e.executor),t},fromPartial(e){let t=f3e();return e.proposalId!==void 0&&e.proposalId!==null&&(t.proposalId=BigInt(e.proposalId.toString())),t.executor=e.executor??"",t}};function l3e(){return{result:0}}Xn.MsgExecResponse={typeUrl:"/cosmos.group.v1.MsgExecResponse",encode(e,t=$n.BinaryWriter.create()){return e.result!==0&&t.uint32(16).int32(e.result),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=l3e();for(;r.pos<i;){let o=r.uint32();o>>>3===2?n.result=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=l3e();return(0,Ho.isSet)(e.result)&&(t.result=(0,zf.proposalExecutorResultFromJSON)(e.result)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=(0,zf.proposalExecutorResultToJSON)(e.result)),t},fromPartial(e){let t=l3e();return t.result=e.result??0,t}};function h3e(){return{address:"",groupId:BigInt(0)}}Xn.MsgLeaveGroup={typeUrl:"/cosmos.group.v1.MsgLeaveGroup",encode(e,t=$n.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=h3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.groupId=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=h3e();return(0,Ho.isSet)(e.address)&&(t.address=String(e.address)),(0,Ho.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.groupId!==void 0&&(t.groupId=(e.groupId||BigInt(0)).toString()),t},fromPartial(e){let t=h3e();return t.address=e.address??"",e.groupId!==void 0&&e.groupId!==null&&(t.groupId=BigInt(e.groupId.toString())),t}};function A3e(){return{}}Xn.MsgLeaveGroupResponse={typeUrl:"/cosmos.group.v1.MsgLeaveGroupResponse",encode(e,t=$n.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $n.BinaryReader?e:new $n.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=A3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return A3e()},toJSON(e){return{}},fromPartial(e){return A3e()}};var p3e=class{constructor(t){this.rpc=t,this.CreateGroup=this.CreateGroup.bind(this),this.UpdateGroupMembers=this.UpdateGroupMembers.bind(this),this.UpdateGroupAdmin=this.UpdateGroupAdmin.bind(this),this.UpdateGroupMetadata=this.UpdateGroupMetadata.bind(this),this.CreateGroupPolicy=this.CreateGroupPolicy.bind(this),this.CreateGroupWithPolicy=this.CreateGroupWithPolicy.bind(this),this.UpdateGroupPolicyAdmin=this.UpdateGroupPolicyAdmin.bind(this),this.UpdateGroupPolicyDecisionPolicy=this.UpdateGroupPolicyDecisionPolicy.bind(this),this.UpdateGroupPolicyMetadata=this.UpdateGroupPolicyMetadata.bind(this),this.SubmitProposal=this.SubmitProposal.bind(this),this.WithdrawProposal=this.WithdrawProposal.bind(this),this.Vote=this.Vote.bind(this),this.Exec=this.Exec.bind(this),this.LeaveGroup=this.LeaveGroup.bind(this)}CreateGroup(t){let r=Xn.MsgCreateGroup.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroup",r).then(n=>Xn.MsgCreateGroupResponse.decode(new $n.BinaryReader(n)))}UpdateGroupMembers(t){let r=Xn.MsgUpdateGroupMembers.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMembers",r).then(n=>Xn.MsgUpdateGroupMembersResponse.decode(new $n.BinaryReader(n)))}UpdateGroupAdmin(t){let r=Xn.MsgUpdateGroupAdmin.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupAdmin",r).then(n=>Xn.MsgUpdateGroupAdminResponse.decode(new $n.BinaryReader(n)))}UpdateGroupMetadata(t){let r=Xn.MsgUpdateGroupMetadata.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMetadata",r).then(n=>Xn.MsgUpdateGroupMetadataResponse.decode(new $n.BinaryReader(n)))}CreateGroupPolicy(t){let r=Xn.MsgCreateGroupPolicy.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupPolicy",r).then(n=>Xn.MsgCreateGroupPolicyResponse.decode(new $n.BinaryReader(n)))}CreateGroupWithPolicy(t){let r=Xn.MsgCreateGroupWithPolicy.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupWithPolicy",r).then(n=>Xn.MsgCreateGroupWithPolicyResponse.decode(new $n.BinaryReader(n)))}UpdateGroupPolicyAdmin(t){let r=Xn.MsgUpdateGroupPolicyAdmin.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyAdmin",r).then(n=>Xn.MsgUpdateGroupPolicyAdminResponse.decode(new $n.BinaryReader(n)))}UpdateGroupPolicyDecisionPolicy(t){let r=Xn.MsgUpdateGroupPolicyDecisionPolicy.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyDecisionPolicy",r).then(n=>Xn.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new $n.BinaryReader(n)))}UpdateGroupPolicyMetadata(t){let r=Xn.MsgUpdateGroupPolicyMetadata.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyMetadata",r).then(n=>Xn.MsgUpdateGroupPolicyMetadataResponse.decode(new $n.BinaryReader(n)))}SubmitProposal(t){let r=Xn.MsgSubmitProposal.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","SubmitProposal",r).then(n=>Xn.MsgSubmitProposalResponse.decode(new $n.BinaryReader(n)))}WithdrawProposal(t){let r=Xn.MsgWithdrawProposal.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","WithdrawProposal",r).then(n=>Xn.MsgWithdrawProposalResponse.decode(new $n.BinaryReader(n)))}Vote(t){let r=Xn.MsgVote.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","Vote",r).then(n=>Xn.MsgVoteResponse.decode(new $n.BinaryReader(n)))}Exec(t){let r=Xn.MsgExec.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","Exec",r).then(n=>Xn.MsgExecResponse.decode(new $n.BinaryReader(n)))}LeaveGroup(t){let r=Xn.MsgLeaveGroup.encode(t).finish();return this.rpc.request("cosmos.group.v1.Msg","LeaveGroup",r).then(n=>Xn.MsgLeaveGroupResponse.decode(new $n.BinaryReader(n)))}};Xn.MsgClientImpl=p3e});var Vmt=ir(Yee=>{"use strict";J();K();z();Object.defineProperty(Yee,"__esModule",{value:!0});Yee.groupTypes=void 0;var A1=qmt();Yee.groupTypes=[["/cosmos.group.v1.MsgCreateGroup",A1.MsgCreateGroup],["/cosmos.group.v1.MsgCreateGroupPolicy",A1.MsgCreateGroupPolicy],["/cosmos.group.v1.MsgCreateGroupWithPolicy",A1.MsgCreateGroupWithPolicy],["/cosmos.group.v1.MsgExec",A1.MsgExec],["/cosmos.group.v1.MsgLeaveGroup",A1.MsgLeaveGroup],["/cosmos.group.v1.MsgSubmitProposal",A1.MsgSubmitProposal],["/cosmos.group.v1.MsgUpdateGroupAdmin",A1.MsgUpdateGroupAdmin],["/cosmos.group.v1.MsgUpdateGroupMembers",A1.MsgUpdateGroupMembers],["/cosmos.group.v1.MsgUpdateGroupMetadata",A1.MsgUpdateGroupMetadata],["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",A1.MsgUpdateGroupPolicyAdmin],["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",A1.MsgUpdateGroupPolicyDecisionPolicy],["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",A1.MsgUpdateGroupPolicyMetadata],["/cosmos.group.v1.MsgVote",A1.MsgVote],["/cosmos.group.v1.MsgWithdrawProposal",A1.MsgWithdrawProposal]]});var Jmt=ir(Tl=>{"use strict";J();K();z();Object.defineProperty(Tl,"__esModule",{value:!0});Tl.ModuleVersion=Tl.CancelSoftwareUpgradeProposal=Tl.SoftwareUpgradeProposal=Tl.Plan=Tl.protobufPackage=void 0;var Wee=u1(),eQ=ru(),x2=Qi(),p1=Hi();Tl.protobufPackage="cosmos.upgrade.v1beta1";function m3e(){return{name:"",time:Wee.Timestamp.fromPartial({}),height:BigInt(0),info:"",upgradedClientState:void 0}}Tl.Plan={typeUrl:"/cosmos.upgrade.v1beta1.Plan",encode(e,t=x2.BinaryWriter.create()){return e.name!==""&&t.uint32(10).string(e.name),e.time!==void 0&&Wee.Timestamp.encode(e.time,t.uint32(18).fork()).ldelim(),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),e.info!==""&&t.uint32(34).string(e.info),e.upgradedClientState!==void 0&&eQ.Any.encode(e.upgradedClientState,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof x2.BinaryReader?e:new x2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=m3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.name=r.string();break;case 2:n.time=Wee.Timestamp.decode(r,r.uint32());break;case 3:n.height=r.int64();break;case 4:n.info=r.string();break;case 5:n.upgradedClientState=eQ.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=m3e();return(0,p1.isSet)(e.name)&&(t.name=String(e.name)),(0,p1.isSet)(e.time)&&(t.time=(0,p1.fromJsonTimestamp)(e.time)),(0,p1.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,p1.isSet)(e.info)&&(t.info=String(e.info)),(0,p1.isSet)(e.upgradedClientState)&&(t.upgradedClientState=eQ.Any.fromJSON(e.upgradedClientState)),t},toJSON(e){let t={};return e.name!==void 0&&(t.name=e.name),e.time!==void 0&&(t.time=(0,p1.fromTimestamp)(e.time).toISOString()),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.info!==void 0&&(t.info=e.info),e.upgradedClientState!==void 0&&(t.upgradedClientState=e.upgradedClientState?eQ.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=m3e();return t.name=e.name??"",e.time!==void 0&&e.time!==null&&(t.time=Wee.Timestamp.fromPartial(e.time)),e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.info=e.info??"",e.upgradedClientState!==void 0&&e.upgradedClientState!==null&&(t.upgradedClientState=eQ.Any.fromPartial(e.upgradedClientState)),t}};function y3e(){return{title:"",description:"",plan:Tl.Plan.fromPartial({})}}Tl.SoftwareUpgradeProposal={typeUrl:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",encode(e,t=x2.BinaryWriter.create()){return e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),e.plan!==void 0&&Tl.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof x2.BinaryReader?e:new x2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=y3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.plan=Tl.Plan.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=y3e();return(0,p1.isSet)(e.title)&&(t.title=String(e.title)),(0,p1.isSet)(e.description)&&(t.description=String(e.description)),(0,p1.isSet)(e.plan)&&(t.plan=Tl.Plan.fromJSON(e.plan)),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.plan!==void 0&&(t.plan=e.plan?Tl.Plan.toJSON(e.plan):void 0),t},fromPartial(e){let t=y3e();return t.title=e.title??"",t.description=e.description??"",e.plan!==void 0&&e.plan!==null&&(t.plan=Tl.Plan.fromPartial(e.plan)),t}};function b3e(){return{title:"",description:""}}Tl.CancelSoftwareUpgradeProposal={typeUrl:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",encode(e,t=x2.BinaryWriter.create()){return e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),t},decode(e,t){let r=e instanceof x2.BinaryReader?e:new x2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=b3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=b3e();return(0,p1.isSet)(e.title)&&(t.title=String(e.title)),(0,p1.isSet)(e.description)&&(t.description=String(e.description)),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),t},fromPartial(e){let t=b3e();return t.title=e.title??"",t.description=e.description??"",t}};function E3e(){return{name:"",version:BigInt(0)}}Tl.ModuleVersion={typeUrl:"/cosmos.upgrade.v1beta1.ModuleVersion",encode(e,t=x2.BinaryWriter.create()){return e.name!==""&&t.uint32(10).string(e.name),e.version!==BigInt(0)&&t.uint32(16).uint64(e.version),t},decode(e,t){let r=e instanceof x2.BinaryReader?e:new x2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=E3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.name=r.string();break;case 2:n.version=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=E3e();return(0,p1.isSet)(e.name)&&(t.name=String(e.name)),(0,p1.isSet)(e.version)&&(t.version=BigInt(e.version.toString())),t},toJSON(e){let t={};return e.name!==void 0&&(t.name=e.name),e.version!==void 0&&(t.version=(e.version||BigInt(0)).toString()),t},fromPartial(e){let t=E3e();return t.name=e.name??"",e.version!==void 0&&e.version!==null&&(t.version=BigInt(e.version.toString())),t}}});var NS=ir(nu=>{"use strict";J();K();z();Object.defineProperty(nu,"__esModule",{value:!0});nu.Params=nu.Height=nu.UpgradeProposal=nu.ClientUpdateProposal=nu.ClientConsensusStates=nu.ConsensusStateWithHeight=nu.IdentifiedClientState=nu.protobufPackage=void 0;var op=ru(),a9=Jmt(),Jd=Qi(),ap=Hi();nu.protobufPackage="ibc.core.client.v1";function v3e(){return{clientId:"",clientState:void 0}}nu.IdentifiedClientState={typeUrl:"/ibc.core.client.v1.IdentifiedClientState",encode(e,t=Jd.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.clientState!==void 0&&op.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=v3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.clientState=op.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=v3e();return(0,ap.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,ap.isSet)(e.clientState)&&(t.clientState=op.Any.fromJSON(e.clientState)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.clientState!==void 0&&(t.clientState=e.clientState?op.Any.toJSON(e.clientState):void 0),t},fromPartial(e){let t=v3e();return t.clientId=e.clientId??"",e.clientState!==void 0&&e.clientState!==null&&(t.clientState=op.Any.fromPartial(e.clientState)),t}};function R3e(){return{height:nu.Height.fromPartial({}),consensusState:void 0}}nu.ConsensusStateWithHeight={typeUrl:"/ibc.core.client.v1.ConsensusStateWithHeight",encode(e,t=Jd.BinaryWriter.create()){return e.height!==void 0&&nu.Height.encode(e.height,t.uint32(10).fork()).ldelim(),e.consensusState!==void 0&&op.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=R3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=nu.Height.decode(r,r.uint32());break;case 2:n.consensusState=op.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=R3e();return(0,ap.isSet)(e.height)&&(t.height=nu.Height.fromJSON(e.height)),(0,ap.isSet)(e.consensusState)&&(t.consensusState=op.Any.fromJSON(e.consensusState)),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=e.height?nu.Height.toJSON(e.height):void 0),e.consensusState!==void 0&&(t.consensusState=e.consensusState?op.Any.toJSON(e.consensusState):void 0),t},fromPartial(e){let t=R3e();return e.height!==void 0&&e.height!==null&&(t.height=nu.Height.fromPartial(e.height)),e.consensusState!==void 0&&e.consensusState!==null&&(t.consensusState=op.Any.fromPartial(e.consensusState)),t}};function S3e(){return{clientId:"",consensusStates:[]}}nu.ClientConsensusStates={typeUrl:"/ibc.core.client.v1.ClientConsensusStates",encode(e,t=Jd.BinaryWriter.create()){e.clientId!==""&&t.uint32(10).string(e.clientId);for(let r of e.consensusStates)nu.ConsensusStateWithHeight.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=S3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.consensusStates.push(nu.ConsensusStateWithHeight.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=S3e();return(0,ap.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),Array.isArray(e?.consensusStates)&&(t.consensusStates=e.consensusStates.map(r=>nu.ConsensusStateWithHeight.fromJSON(r))),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.consensusStates?t.consensusStates=e.consensusStates.map(r=>r?nu.ConsensusStateWithHeight.toJSON(r):void 0):t.consensusStates=[],t},fromPartial(e){let t=S3e();return t.clientId=e.clientId??"",t.consensusStates=e.consensusStates?.map(r=>nu.ConsensusStateWithHeight.fromPartial(r))||[],t}};function I3e(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}nu.ClientUpdateProposal={typeUrl:"/ibc.core.client.v1.ClientUpdateProposal",encode(e,t=Jd.BinaryWriter.create()){return e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),e.subjectClientId!==""&&t.uint32(26).string(e.subjectClientId),e.substituteClientId!==""&&t.uint32(34).string(e.substituteClientId),t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=I3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.subjectClientId=r.string();break;case 4:n.substituteClientId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=I3e();return(0,ap.isSet)(e.title)&&(t.title=String(e.title)),(0,ap.isSet)(e.description)&&(t.description=String(e.description)),(0,ap.isSet)(e.subjectClientId)&&(t.subjectClientId=String(e.subjectClientId)),(0,ap.isSet)(e.substituteClientId)&&(t.substituteClientId=String(e.substituteClientId)),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.subjectClientId!==void 0&&(t.subjectClientId=e.subjectClientId),e.substituteClientId!==void 0&&(t.substituteClientId=e.substituteClientId),t},fromPartial(e){let t=I3e();return t.title=e.title??"",t.description=e.description??"",t.subjectClientId=e.subjectClientId??"",t.substituteClientId=e.substituteClientId??"",t}};function C3e(){return{title:"",description:"",plan:a9.Plan.fromPartial({}),upgradedClientState:void 0}}nu.UpgradeProposal={typeUrl:"/ibc.core.client.v1.UpgradeProposal",encode(e,t=Jd.BinaryWriter.create()){return e.title!==""&&t.uint32(10).string(e.title),e.description!==""&&t.uint32(18).string(e.description),e.plan!==void 0&&a9.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),e.upgradedClientState!==void 0&&op.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=C3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.plan=a9.Plan.decode(r,r.uint32());break;case 4:n.upgradedClientState=op.Any.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=C3e();return(0,ap.isSet)(e.title)&&(t.title=String(e.title)),(0,ap.isSet)(e.description)&&(t.description=String(e.description)),(0,ap.isSet)(e.plan)&&(t.plan=a9.Plan.fromJSON(e.plan)),(0,ap.isSet)(e.upgradedClientState)&&(t.upgradedClientState=op.Any.fromJSON(e.upgradedClientState)),t},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.plan!==void 0&&(t.plan=e.plan?a9.Plan.toJSON(e.plan):void 0),e.upgradedClientState!==void 0&&(t.upgradedClientState=e.upgradedClientState?op.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=C3e();return t.title=e.title??"",t.description=e.description??"",e.plan!==void 0&&e.plan!==null&&(t.plan=a9.Plan.fromPartial(e.plan)),e.upgradedClientState!==void 0&&e.upgradedClientState!==null&&(t.upgradedClientState=op.Any.fromPartial(e.upgradedClientState)),t}};function w3e(){return{revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}nu.Height={typeUrl:"/ibc.core.client.v1.Height",encode(e,t=Jd.BinaryWriter.create()){return e.revisionNumber!==BigInt(0)&&t.uint32(8).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(16).uint64(e.revisionHeight),t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=w3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.revisionNumber=r.uint64();break;case 2:n.revisionHeight=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=w3e();return(0,ap.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,ap.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t},toJSON(e){let t={};return e.revisionNumber!==void 0&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),e.revisionHeight!==void 0&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),t},fromPartial(e){let t=w3e();return e.revisionNumber!==void 0&&e.revisionNumber!==null&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),e.revisionHeight!==void 0&&e.revisionHeight!==null&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t}};function O3e(){return{allowedClients:[]}}nu.Params={typeUrl:"/ibc.core.client.v1.Params",encode(e,t=Jd.BinaryWriter.create()){for(let r of e.allowedClients)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof Jd.BinaryReader?e:new Jd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=O3e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.allowedClients.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=O3e();return Array.isArray(e?.allowedClients)&&(t.allowedClients=e.allowedClients.map(r=>String(r))),t},toJSON(e){let t={};return e.allowedClients?t.allowedClients=e.allowedClients.map(r=>r):t.allowedClients=[],t},fromPartial(e){let t=O3e();return t.allowedClients=e.allowedClients?.map(r=>r)||[],t}}});var Xee=ir(T2=>{"use strict";J();K();z();Object.defineProperty(T2,"__esModule",{value:!0});T2.MsgClientImpl=T2.MsgTransferResponse=T2.MsgTransfer=T2.protobufPackage=void 0;var s9=Af(),c9=NS(),I5=Qi(),xS=Hi();T2.protobufPackage="ibc.applications.transfer.v1";function N3e(){return{sourcePort:"",sourceChannel:"",token:s9.Coin.fromPartial({}),sender:"",receiver:"",timeoutHeight:c9.Height.fromPartial({}),timeoutTimestamp:BigInt(0),memo:""}}T2.MsgTransfer={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",encode(e,t=I5.BinaryWriter.create()){return e.sourcePort!==""&&t.uint32(10).string(e.sourcePort),e.sourceChannel!==""&&t.uint32(18).string(e.sourceChannel),e.token!==void 0&&s9.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),e.sender!==""&&t.uint32(34).string(e.sender),e.receiver!==""&&t.uint32(42).string(e.receiver),e.timeoutHeight!==void 0&&c9.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp!==BigInt(0)&&t.uint32(56).uint64(e.timeoutTimestamp),e.memo!==""&&t.uint32(66).string(e.memo),t},decode(e,t){let r=e instanceof I5.BinaryReader?e:new I5.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=N3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.sourcePort=r.string();break;case 2:n.sourceChannel=r.string();break;case 3:n.token=s9.Coin.decode(r,r.uint32());break;case 4:n.sender=r.string();break;case 5:n.receiver=r.string();break;case 6:n.timeoutHeight=c9.Height.decode(r,r.uint32());break;case 7:n.timeoutTimestamp=r.uint64();break;case 8:n.memo=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=N3e();return(0,xS.isSet)(e.sourcePort)&&(t.sourcePort=String(e.sourcePort)),(0,xS.isSet)(e.sourceChannel)&&(t.sourceChannel=String(e.sourceChannel)),(0,xS.isSet)(e.token)&&(t.token=s9.Coin.fromJSON(e.token)),(0,xS.isSet)(e.sender)&&(t.sender=String(e.sender)),(0,xS.isSet)(e.receiver)&&(t.receiver=String(e.receiver)),(0,xS.isSet)(e.timeoutHeight)&&(t.timeoutHeight=c9.Height.fromJSON(e.timeoutHeight)),(0,xS.isSet)(e.timeoutTimestamp)&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),(0,xS.isSet)(e.memo)&&(t.memo=String(e.memo)),t},toJSON(e){let t={};return e.sourcePort!==void 0&&(t.sourcePort=e.sourcePort),e.sourceChannel!==void 0&&(t.sourceChannel=e.sourceChannel),e.token!==void 0&&(t.token=e.token?s9.Coin.toJSON(e.token):void 0),e.sender!==void 0&&(t.sender=e.sender),e.receiver!==void 0&&(t.receiver=e.receiver),e.timeoutHeight!==void 0&&(t.timeoutHeight=e.timeoutHeight?c9.Height.toJSON(e.timeoutHeight):void 0),e.timeoutTimestamp!==void 0&&(t.timeoutTimestamp=(e.timeoutTimestamp||BigInt(0)).toString()),e.memo!==void 0&&(t.memo=e.memo),t},fromPartial(e){let t=N3e();return t.sourcePort=e.sourcePort??"",t.sourceChannel=e.sourceChannel??"",e.token!==void 0&&e.token!==null&&(t.token=s9.Coin.fromPartial(e.token)),t.sender=e.sender??"",t.receiver=e.receiver??"",e.timeoutHeight!==void 0&&e.timeoutHeight!==null&&(t.timeoutHeight=c9.Height.fromPartial(e.timeoutHeight)),e.timeoutTimestamp!==void 0&&e.timeoutTimestamp!==null&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),t.memo=e.memo??"",t}};function x3e(){return{sequence:BigInt(0)}}T2.MsgTransferResponse={typeUrl:"/ibc.applications.transfer.v1.MsgTransferResponse",encode(e,t=I5.BinaryWriter.create()){return e.sequence!==BigInt(0)&&t.uint32(8).uint64(e.sequence),t},decode(e,t){let r=e instanceof I5.BinaryReader?e:new I5.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=x3e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.sequence=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=x3e();return(0,xS.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=x3e();return e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};var T3e=class{constructor(t){this.rpc=t,this.Transfer=this.Transfer.bind(this)}Transfer(t){let r=T2.MsgTransfer.encode(t).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",r).then(n=>T2.MsgTransferResponse.decode(new I5.BinaryReader(n)))}};T2.MsgClientImpl=T3e});var zmt=ir(u9=>{"use strict";J();K();z();Object.defineProperty(u9,"__esModule",{value:!0});u9.createIbcAminoConverters=u9.isAminoMsgTransfer=void 0;var Zee=R_(),Kpn=Xee();function $pn(e){return e.type==="cosmos-sdk/MsgTransfer"}u9.isAminoMsgTransfer=$pn;function Ypn(){return{"/ibc.applications.transfer.v1.MsgTransfer":{aminoType:"cosmos-sdk/MsgTransfer",toAmino:({sourcePort:e,sourceChannel:t,token:r,sender:i,receiver:n,timeoutHeight:o,timeoutTimestamp:d,memo:g})=>({source_port:e,source_channel:t,token:r,sender:i,receiver:n,timeout_height:o?{revision_height:(0,Zee.omitDefault)(o.revisionHeight)?.toString(),revision_number:(0,Zee.omitDefault)(o.revisionNumber)?.toString()}:{},timeout_timestamp:(0,Zee.omitDefault)(d)?.toString(),memo:(0,Zee.omitDefault)(g)}),fromAmino:({source_port:e,source_channel:t,token:r,sender:i,receiver:n,timeout_height:o,timeout_timestamp:d,memo:g})=>Kpn.MsgTransfer.fromPartial({sourcePort:e,sourceChannel:t,token:r,sender:i,receiver:n,timeoutHeight:o?{revisionHeight:BigInt(o.revision_height||"0"),revisionNumber:BigInt(o.revision_number||"0")}:void 0,timeoutTimestamp:BigInt(d||"0"),memo:g??""})}}}u9.createIbcAminoConverters=Ypn});var q3e=ir(Oa=>{"use strict";J();K();z();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.Acknowledgement=Oa.PacketId=Oa.PacketState=Oa.Packet=Oa.Counterparty=Oa.IdentifiedChannel=Oa.Channel=Oa.orderToJSON=Oa.orderFromJSON=Oa.Order=Oa.stateToJSON=Oa.stateFromJSON=Oa.State=Oa.protobufPackage=void 0;var d9=NS(),zd=Qi(),Gs=Hi();Oa.protobufPackage="ibc.core.channel.v1";var g1;(function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(g1||(Oa.State=g1={}));function F3e(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return g1.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return g1.STATE_INIT;case 2:case"STATE_TRYOPEN":return g1.STATE_TRYOPEN;case 3:case"STATE_OPEN":return g1.STATE_OPEN;case 4:case"STATE_CLOSED":return g1.STATE_CLOSED;default:return g1.UNRECOGNIZED}}Oa.stateFromJSON=F3e;function Q3e(e){switch(e){case g1.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case g1.STATE_INIT:return"STATE_INIT";case g1.STATE_TRYOPEN:return"STATE_TRYOPEN";case g1.STATE_OPEN:return"STATE_OPEN";case g1.STATE_CLOSED:return"STATE_CLOSED";case g1.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Oa.stateToJSON=Q3e;var PE;(function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PE||(Oa.Order=PE={}));function H3e(e){switch(e){case 0:case"ORDER_NONE_UNSPECIFIED":return PE.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return PE.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return PE.ORDER_ORDERED;default:return PE.UNRECOGNIZED}}Oa.orderFromJSON=H3e;function G3e(e){switch(e){case PE.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case PE.ORDER_UNORDERED:return"ORDER_UNORDERED";case PE.ORDER_ORDERED:return"ORDER_ORDERED";case PE.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Oa.orderToJSON=G3e;function B3e(){return{state:0,ordering:0,counterparty:Oa.Counterparty.fromPartial({}),connectionHops:[],version:""}}Oa.Channel={typeUrl:"/ibc.core.channel.v1.Channel",encode(e,t=zd.BinaryWriter.create()){e.state!==0&&t.uint32(8).int32(e.state),e.ordering!==0&&t.uint32(16).int32(e.ordering),e.counterparty!==void 0&&Oa.Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim();for(let r of e.connectionHops)t.uint32(34).string(r);return e.version!==""&&t.uint32(42).string(e.version),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=B3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.state=r.int32();break;case 2:n.ordering=r.int32();break;case 3:n.counterparty=Oa.Counterparty.decode(r,r.uint32());break;case 4:n.connectionHops.push(r.string());break;case 5:n.version=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=B3e();return(0,Gs.isSet)(e.state)&&(t.state=F3e(e.state)),(0,Gs.isSet)(e.ordering)&&(t.ordering=H3e(e.ordering)),(0,Gs.isSet)(e.counterparty)&&(t.counterparty=Oa.Counterparty.fromJSON(e.counterparty)),Array.isArray(e?.connectionHops)&&(t.connectionHops=e.connectionHops.map(r=>String(r))),(0,Gs.isSet)(e.version)&&(t.version=String(e.version)),t},toJSON(e){let t={};return e.state!==void 0&&(t.state=Q3e(e.state)),e.ordering!==void 0&&(t.ordering=G3e(e.ordering)),e.counterparty!==void 0&&(t.counterparty=e.counterparty?Oa.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?t.connectionHops=e.connectionHops.map(r=>r):t.connectionHops=[],e.version!==void 0&&(t.version=e.version),t},fromPartial(e){let t=B3e();return t.state=e.state??0,t.ordering=e.ordering??0,e.counterparty!==void 0&&e.counterparty!==null&&(t.counterparty=Oa.Counterparty.fromPartial(e.counterparty)),t.connectionHops=e.connectionHops?.map(r=>r)||[],t.version=e.version??"",t}};function M3e(){return{state:0,ordering:0,counterparty:Oa.Counterparty.fromPartial({}),connectionHops:[],version:"",portId:"",channelId:""}}Oa.IdentifiedChannel={typeUrl:"/ibc.core.channel.v1.IdentifiedChannel",encode(e,t=zd.BinaryWriter.create()){e.state!==0&&t.uint32(8).int32(e.state),e.ordering!==0&&t.uint32(16).int32(e.ordering),e.counterparty!==void 0&&Oa.Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim();for(let r of e.connectionHops)t.uint32(34).string(r);return e.version!==""&&t.uint32(42).string(e.version),e.portId!==""&&t.uint32(50).string(e.portId),e.channelId!==""&&t.uint32(58).string(e.channelId),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=M3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.state=r.int32();break;case 2:n.ordering=r.int32();break;case 3:n.counterparty=Oa.Counterparty.decode(r,r.uint32());break;case 4:n.connectionHops.push(r.string());break;case 5:n.version=r.string();break;case 6:n.portId=r.string();break;case 7:n.channelId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=M3e();return(0,Gs.isSet)(e.state)&&(t.state=F3e(e.state)),(0,Gs.isSet)(e.ordering)&&(t.ordering=H3e(e.ordering)),(0,Gs.isSet)(e.counterparty)&&(t.counterparty=Oa.Counterparty.fromJSON(e.counterparty)),Array.isArray(e?.connectionHops)&&(t.connectionHops=e.connectionHops.map(r=>String(r))),(0,Gs.isSet)(e.version)&&(t.version=String(e.version)),(0,Gs.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Gs.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return e.state!==void 0&&(t.state=Q3e(e.state)),e.ordering!==void 0&&(t.ordering=G3e(e.ordering)),e.counterparty!==void 0&&(t.counterparty=e.counterparty?Oa.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?t.connectionHops=e.connectionHops.map(r=>r):t.connectionHops=[],e.version!==void 0&&(t.version=e.version),e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),t},fromPartial(e){let t=M3e();return t.state=e.state??0,t.ordering=e.ordering??0,e.counterparty!==void 0&&e.counterparty!==null&&(t.counterparty=Oa.Counterparty.fromPartial(e.counterparty)),t.connectionHops=e.connectionHops?.map(r=>r)||[],t.version=e.version??"",t.portId=e.portId??"",t.channelId=e.channelId??"",t}};function D3e(){return{portId:"",channelId:""}}Oa.Counterparty={typeUrl:"/ibc.core.channel.v1.Counterparty",encode(e,t=zd.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=D3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=D3e();return(0,Gs.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Gs.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),t},fromPartial(e){let t=D3e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}};function k3e(){return{sequence:BigInt(0),sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:d9.Height.fromPartial({}),timeoutTimestamp:BigInt(0)}}Oa.Packet={typeUrl:"/ibc.core.channel.v1.Packet",encode(e,t=zd.BinaryWriter.create()){return e.sequence!==BigInt(0)&&t.uint32(8).uint64(e.sequence),e.sourcePort!==""&&t.uint32(18).string(e.sourcePort),e.sourceChannel!==""&&t.uint32(26).string(e.sourceChannel),e.destinationPort!==""&&t.uint32(34).string(e.destinationPort),e.destinationChannel!==""&&t.uint32(42).string(e.destinationChannel),e.data.length!==0&&t.uint32(50).bytes(e.data),e.timeoutHeight!==void 0&&d9.Height.encode(e.timeoutHeight,t.uint32(58).fork()).ldelim(),e.timeoutTimestamp!==BigInt(0)&&t.uint32(64).uint64(e.timeoutTimestamp),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=k3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.sequence=r.uint64();break;case 2:n.sourcePort=r.string();break;case 3:n.sourceChannel=r.string();break;case 4:n.destinationPort=r.string();break;case 5:n.destinationChannel=r.string();break;case 6:n.data=r.bytes();break;case 7:n.timeoutHeight=d9.Height.decode(r,r.uint32());break;case 8:n.timeoutTimestamp=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=k3e();return(0,Gs.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),(0,Gs.isSet)(e.sourcePort)&&(t.sourcePort=String(e.sourcePort)),(0,Gs.isSet)(e.sourceChannel)&&(t.sourceChannel=String(e.sourceChannel)),(0,Gs.isSet)(e.destinationPort)&&(t.destinationPort=String(e.destinationPort)),(0,Gs.isSet)(e.destinationChannel)&&(t.destinationChannel=String(e.destinationChannel)),(0,Gs.isSet)(e.data)&&(t.data=(0,Gs.bytesFromBase64)(e.data)),(0,Gs.isSet)(e.timeoutHeight)&&(t.timeoutHeight=d9.Height.fromJSON(e.timeoutHeight)),(0,Gs.isSet)(e.timeoutTimestamp)&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),t},toJSON(e){let t={};return e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),e.sourcePort!==void 0&&(t.sourcePort=e.sourcePort),e.sourceChannel!==void 0&&(t.sourceChannel=e.sourceChannel),e.destinationPort!==void 0&&(t.destinationPort=e.destinationPort),e.destinationChannel!==void 0&&(t.destinationChannel=e.destinationChannel),e.data!==void 0&&(t.data=(0,Gs.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.timeoutHeight!==void 0&&(t.timeoutHeight=e.timeoutHeight?d9.Height.toJSON(e.timeoutHeight):void 0),e.timeoutTimestamp!==void 0&&(t.timeoutTimestamp=(e.timeoutTimestamp||BigInt(0)).toString()),t},fromPartial(e){let t=k3e();return e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t.sourcePort=e.sourcePort??"",t.sourceChannel=e.sourceChannel??"",t.destinationPort=e.destinationPort??"",t.destinationChannel=e.destinationChannel??"",t.data=e.data??new Uint8Array,e.timeoutHeight!==void 0&&e.timeoutHeight!==null&&(t.timeoutHeight=d9.Height.fromPartial(e.timeoutHeight)),e.timeoutTimestamp!==void 0&&e.timeoutTimestamp!==null&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),t}};function P3e(){return{portId:"",channelId:"",sequence:BigInt(0),data:new Uint8Array}}Oa.PacketState={typeUrl:"/ibc.core.channel.v1.PacketState",encode(e,t=zd.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),e.data.length!==0&&t.uint32(34).bytes(e.data),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=P3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.sequence=r.uint64();break;case 4:n.data=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=P3e();return(0,Gs.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Gs.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Gs.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),(0,Gs.isSet)(e.data)&&(t.data=(0,Gs.bytesFromBase64)(e.data)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),e.data!==void 0&&(t.data=(0,Gs.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),t},fromPartial(e){let t=P3e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t.data=e.data??new Uint8Array,t}};function L3e(){return{portId:"",channelId:"",sequence:BigInt(0)}}Oa.PacketId={typeUrl:"/ibc.core.channel.v1.PacketId",encode(e,t=zd.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=L3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=L3e();return(0,Gs.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Gs.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Gs.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=L3e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function U3e(){return{result:void 0,error:void 0}}Oa.Acknowledgement={typeUrl:"/ibc.core.channel.v1.Acknowledgement",encode(e,t=zd.BinaryWriter.create()){return e.result!==void 0&&t.uint32(170).bytes(e.result),e.error!==void 0&&t.uint32(178).string(e.error),t},decode(e,t){let r=e instanceof zd.BinaryReader?e:new zd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=U3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 21:n.result=r.bytes();break;case 22:n.error=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=U3e();return(0,Gs.isSet)(e.result)&&(t.result=(0,Gs.bytesFromBase64)(e.result)),(0,Gs.isSet)(e.error)&&(t.error=String(e.error)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=e.result!==void 0?(0,Gs.base64FromBytes)(e.result):void 0),e.error!==void 0&&(t.error=e.error),t},fromPartial(e){let t=U3e();return t.result=e.result??void 0,t.error=e.error??void 0,t}}});var Kmt=ir(Ti=>{"use strict";J();K();z();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.MsgClientImpl=Ti.MsgAcknowledgementResponse=Ti.MsgAcknowledgement=Ti.MsgTimeoutOnCloseResponse=Ti.MsgTimeoutOnClose=Ti.MsgTimeoutResponse=Ti.MsgTimeout=Ti.MsgRecvPacketResponse=Ti.MsgRecvPacket=Ti.MsgChannelCloseConfirmResponse=Ti.MsgChannelCloseConfirm=Ti.MsgChannelCloseInitResponse=Ti.MsgChannelCloseInit=Ti.MsgChannelOpenConfirmResponse=Ti.MsgChannelOpenConfirm=Ti.MsgChannelOpenAckResponse=Ti.MsgChannelOpenAck=Ti.MsgChannelOpenTryResponse=Ti.MsgChannelOpenTry=Ti.MsgChannelOpenInitResponse=Ti.MsgChannelOpenInit=Ti.responseResultTypeToJSON=Ti.responseResultTypeFromJSON=Ti.ResponseResultType=Ti.protobufPackage=void 0;var Ns=q3e(),Xo=NS(),Li=Qi(),Si=Hi();Ti.protobufPackage="ibc.core.channel.v1";var LE;(function(e){e[e.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",e[e.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",e[e.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LE||(Ti.ResponseResultType=LE={}));function tQ(e){switch(e){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return LE.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return LE.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return LE.RESPONSE_RESULT_TYPE_SUCCESS;default:return LE.UNRECOGNIZED}}Ti.responseResultTypeFromJSON=tQ;function rQ(e){switch(e){case LE.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case LE.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case LE.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";case LE.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Ti.responseResultTypeToJSON=rQ;function V3e(){return{portId:"",channel:Ns.Channel.fromPartial({}),signer:""}}Ti.MsgChannelOpenInit={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",encode(e,t=Li.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channel!==void 0&&Ns.Channel.encode(e.channel,t.uint32(18).fork()).ldelim(),e.signer!==""&&t.uint32(26).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=V3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channel=Ns.Channel.decode(r,r.uint32());break;case 3:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=V3e();return(0,Si.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Si.isSet)(e.channel)&&(t.channel=Ns.Channel.fromJSON(e.channel)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channel!==void 0&&(t.channel=e.channel?Ns.Channel.toJSON(e.channel):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=V3e();return t.portId=e.portId??"",e.channel!==void 0&&e.channel!==null&&(t.channel=Ns.Channel.fromPartial(e.channel)),t.signer=e.signer??"",t}};function J3e(){return{channelId:"",version:""}}Ti.MsgChannelOpenInitResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInitResponse",encode(e,t=Li.BinaryWriter.create()){return e.channelId!==""&&t.uint32(10).string(e.channelId),e.version!==""&&t.uint32(18).string(e.version),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=J3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.channelId=r.string();break;case 2:n.version=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=J3e();return(0,Si.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Si.isSet)(e.version)&&(t.version=String(e.version)),t},toJSON(e){let t={};return e.channelId!==void 0&&(t.channelId=e.channelId),e.version!==void 0&&(t.version=e.version),t},fromPartial(e){let t=J3e();return t.channelId=e.channelId??"",t.version=e.version??"",t}};function z3e(){return{portId:"",previousChannelId:"",channel:Ns.Channel.fromPartial({}),counterpartyVersion:"",proofInit:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),signer:""}}Ti.MsgChannelOpenTry={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",encode(e,t=Li.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.previousChannelId!==""&&t.uint32(18).string(e.previousChannelId),e.channel!==void 0&&Ns.Channel.encode(e.channel,t.uint32(26).fork()).ldelim(),e.counterpartyVersion!==""&&t.uint32(34).string(e.counterpartyVersion),e.proofInit.length!==0&&t.uint32(42).bytes(e.proofInit),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),e.signer!==""&&t.uint32(58).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=z3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.previousChannelId=r.string();break;case 3:n.channel=Ns.Channel.decode(r,r.uint32());break;case 4:n.counterpartyVersion=r.string();break;case 5:n.proofInit=r.bytes();break;case 6:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 7:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=z3e();return(0,Si.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Si.isSet)(e.previousChannelId)&&(t.previousChannelId=String(e.previousChannelId)),(0,Si.isSet)(e.channel)&&(t.channel=Ns.Channel.fromJSON(e.channel)),(0,Si.isSet)(e.counterpartyVersion)&&(t.counterpartyVersion=String(e.counterpartyVersion)),(0,Si.isSet)(e.proofInit)&&(t.proofInit=(0,Si.bytesFromBase64)(e.proofInit)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.previousChannelId!==void 0&&(t.previousChannelId=e.previousChannelId),e.channel!==void 0&&(t.channel=e.channel?Ns.Channel.toJSON(e.channel):void 0),e.counterpartyVersion!==void 0&&(t.counterpartyVersion=e.counterpartyVersion),e.proofInit!==void 0&&(t.proofInit=(0,Si.base64FromBytes)(e.proofInit!==void 0?e.proofInit:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=z3e();return t.portId=e.portId??"",t.previousChannelId=e.previousChannelId??"",e.channel!==void 0&&e.channel!==null&&(t.channel=Ns.Channel.fromPartial(e.channel)),t.counterpartyVersion=e.counterpartyVersion??"",t.proofInit=e.proofInit??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function K3e(){return{version:""}}Ti.MsgChannelOpenTryResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTryResponse",encode(e,t=Li.BinaryWriter.create()){return e.version!==""&&t.uint32(10).string(e.version),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=K3e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.version=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=K3e();return(0,Si.isSet)(e.version)&&(t.version=String(e.version)),t},toJSON(e){let t={};return e.version!==void 0&&(t.version=e.version),t},fromPartial(e){let t=K3e();return t.version=e.version??"",t}};function $3e(){return{portId:"",channelId:"",counterpartyChannelId:"",counterpartyVersion:"",proofTry:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),signer:""}}Ti.MsgChannelOpenAck={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",encode(e,t=Li.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.counterpartyChannelId!==""&&t.uint32(26).string(e.counterpartyChannelId),e.counterpartyVersion!==""&&t.uint32(34).string(e.counterpartyVersion),e.proofTry.length!==0&&t.uint32(42).bytes(e.proofTry),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),e.signer!==""&&t.uint32(58).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.counterpartyChannelId=r.string();break;case 4:n.counterpartyVersion=r.string();break;case 5:n.proofTry=r.bytes();break;case 6:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 7:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=$3e();return(0,Si.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Si.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Si.isSet)(e.counterpartyChannelId)&&(t.counterpartyChannelId=String(e.counterpartyChannelId)),(0,Si.isSet)(e.counterpartyVersion)&&(t.counterpartyVersion=String(e.counterpartyVersion)),(0,Si.isSet)(e.proofTry)&&(t.proofTry=(0,Si.bytesFromBase64)(e.proofTry)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.counterpartyChannelId!==void 0&&(t.counterpartyChannelId=e.counterpartyChannelId),e.counterpartyVersion!==void 0&&(t.counterpartyVersion=e.counterpartyVersion),e.proofTry!==void 0&&(t.proofTry=(0,Si.base64FromBytes)(e.proofTry!==void 0?e.proofTry:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=$3e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.counterpartyChannelId=e.counterpartyChannelId??"",t.counterpartyVersion=e.counterpartyVersion??"",t.proofTry=e.proofTry??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function Y3e(){return{}}Ti.MsgChannelOpenAckResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAckResponse",encode(e,t=Li.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Y3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Y3e()},toJSON(e){return{}},fromPartial(e){return Y3e()}};function W3e(){return{portId:"",channelId:"",proofAck:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),signer:""}}Ti.MsgChannelOpenConfirm={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",encode(e,t=Li.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.proofAck.length!==0&&t.uint32(26).bytes(e.proofAck),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.signer!==""&&t.uint32(42).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=W3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.proofAck=r.bytes();break;case 4:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 5:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=W3e();return(0,Si.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Si.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Si.isSet)(e.proofAck)&&(t.proofAck=(0,Si.bytesFromBase64)(e.proofAck)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.proofAck!==void 0&&(t.proofAck=(0,Si.base64FromBytes)(e.proofAck!==void 0?e.proofAck:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=W3e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.proofAck=e.proofAck??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function X3e(){return{}}Ti.MsgChannelOpenConfirmResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirmResponse",encode(e,t=Li.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=X3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return X3e()},toJSON(e){return{}},fromPartial(e){return X3e()}};function Z3e(){return{portId:"",channelId:"",signer:""}}Ti.MsgChannelCloseInit={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",encode(e,t=Li.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.signer!==""&&t.uint32(26).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Z3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Z3e();return(0,Si.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Si.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=Z3e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.signer=e.signer??"",t}};function j3e(){return{}}Ti.MsgChannelCloseInitResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInitResponse",encode(e,t=Li.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=j3e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return j3e()},toJSON(e){return{}},fromPartial(e){return j3e()}};function e8e(){return{portId:"",channelId:"",proofInit:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),signer:""}}Ti.MsgChannelCloseConfirm={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",encode(e,t=Li.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.proofInit.length!==0&&t.uint32(26).bytes(e.proofInit),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.signer!==""&&t.uint32(42).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=e8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.proofInit=r.bytes();break;case 4:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 5:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=e8e();return(0,Si.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,Si.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,Si.isSet)(e.proofInit)&&(t.proofInit=(0,Si.bytesFromBase64)(e.proofInit)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.proofInit!==void 0&&(t.proofInit=(0,Si.base64FromBytes)(e.proofInit!==void 0?e.proofInit:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=e8e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.proofInit=e.proofInit??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function t8e(){return{}}Ti.MsgChannelCloseConfirmResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirmResponse",encode(e,t=Li.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=t8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return t8e()},toJSON(e){return{}},fromPartial(e){return t8e()}};function r8e(){return{packet:Ns.Packet.fromPartial({}),proofCommitment:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),signer:""}}Ti.MsgRecvPacket={typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",encode(e,t=Li.BinaryWriter.create()){return e.packet!==void 0&&Ns.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),e.proofCommitment.length!==0&&t.uint32(18).bytes(e.proofCommitment),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),e.signer!==""&&t.uint32(34).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=r8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.packet=Ns.Packet.decode(r,r.uint32());break;case 2:n.proofCommitment=r.bytes();break;case 3:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 4:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=r8e();return(0,Si.isSet)(e.packet)&&(t.packet=Ns.Packet.fromJSON(e.packet)),(0,Si.isSet)(e.proofCommitment)&&(t.proofCommitment=(0,Si.bytesFromBase64)(e.proofCommitment)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.packet!==void 0&&(t.packet=e.packet?Ns.Packet.toJSON(e.packet):void 0),e.proofCommitment!==void 0&&(t.proofCommitment=(0,Si.base64FromBytes)(e.proofCommitment!==void 0?e.proofCommitment:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=r8e();return e.packet!==void 0&&e.packet!==null&&(t.packet=Ns.Packet.fromPartial(e.packet)),t.proofCommitment=e.proofCommitment??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function n8e(){return{result:0}}Ti.MsgRecvPacketResponse={typeUrl:"/ibc.core.channel.v1.MsgRecvPacketResponse",encode(e,t=Li.BinaryWriter.create()){return e.result!==0&&t.uint32(8).int32(e.result),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=n8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.result=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=n8e();return(0,Si.isSet)(e.result)&&(t.result=tQ(e.result)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=rQ(e.result)),t},fromPartial(e){let t=n8e();return t.result=e.result??0,t}};function i8e(){return{packet:Ns.Packet.fromPartial({}),proofUnreceived:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),nextSequenceRecv:BigInt(0),signer:""}}Ti.MsgTimeout={typeUrl:"/ibc.core.channel.v1.MsgTimeout",encode(e,t=Li.BinaryWriter.create()){return e.packet!==void 0&&Ns.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),e.proofUnreceived.length!==0&&t.uint32(18).bytes(e.proofUnreceived),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),e.nextSequenceRecv!==BigInt(0)&&t.uint32(32).uint64(e.nextSequenceRecv),e.signer!==""&&t.uint32(42).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=i8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.packet=Ns.Packet.decode(r,r.uint32());break;case 2:n.proofUnreceived=r.bytes();break;case 3:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 4:n.nextSequenceRecv=r.uint64();break;case 5:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=i8e();return(0,Si.isSet)(e.packet)&&(t.packet=Ns.Packet.fromJSON(e.packet)),(0,Si.isSet)(e.proofUnreceived)&&(t.proofUnreceived=(0,Si.bytesFromBase64)(e.proofUnreceived)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.nextSequenceRecv)&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.packet!==void 0&&(t.packet=e.packet?Ns.Packet.toJSON(e.packet):void 0),e.proofUnreceived!==void 0&&(t.proofUnreceived=(0,Si.base64FromBytes)(e.proofUnreceived!==void 0?e.proofUnreceived:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.nextSequenceRecv!==void 0&&(t.nextSequenceRecv=(e.nextSequenceRecv||BigInt(0)).toString()),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=i8e();return e.packet!==void 0&&e.packet!==null&&(t.packet=Ns.Packet.fromPartial(e.packet)),t.proofUnreceived=e.proofUnreceived??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),e.nextSequenceRecv!==void 0&&e.nextSequenceRecv!==null&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),t.signer=e.signer??"",t}};function o8e(){return{result:0}}Ti.MsgTimeoutResponse={typeUrl:"/ibc.core.channel.v1.MsgTimeoutResponse",encode(e,t=Li.BinaryWriter.create()){return e.result!==0&&t.uint32(8).int32(e.result),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=o8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.result=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=o8e();return(0,Si.isSet)(e.result)&&(t.result=tQ(e.result)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=rQ(e.result)),t},fromPartial(e){let t=o8e();return t.result=e.result??0,t}};function a8e(){return{packet:Ns.Packet.fromPartial({}),proofUnreceived:new Uint8Array,proofClose:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),nextSequenceRecv:BigInt(0),signer:""}}Ti.MsgTimeoutOnClose={typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",encode(e,t=Li.BinaryWriter.create()){return e.packet!==void 0&&Ns.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),e.proofUnreceived.length!==0&&t.uint32(18).bytes(e.proofUnreceived),e.proofClose.length!==0&&t.uint32(26).bytes(e.proofClose),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.nextSequenceRecv!==BigInt(0)&&t.uint32(40).uint64(e.nextSequenceRecv),e.signer!==""&&t.uint32(50).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=a8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.packet=Ns.Packet.decode(r,r.uint32());break;case 2:n.proofUnreceived=r.bytes();break;case 3:n.proofClose=r.bytes();break;case 4:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 5:n.nextSequenceRecv=r.uint64();break;case 6:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=a8e();return(0,Si.isSet)(e.packet)&&(t.packet=Ns.Packet.fromJSON(e.packet)),(0,Si.isSet)(e.proofUnreceived)&&(t.proofUnreceived=(0,Si.bytesFromBase64)(e.proofUnreceived)),(0,Si.isSet)(e.proofClose)&&(t.proofClose=(0,Si.bytesFromBase64)(e.proofClose)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.nextSequenceRecv)&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.packet!==void 0&&(t.packet=e.packet?Ns.Packet.toJSON(e.packet):void 0),e.proofUnreceived!==void 0&&(t.proofUnreceived=(0,Si.base64FromBytes)(e.proofUnreceived!==void 0?e.proofUnreceived:new Uint8Array)),e.proofClose!==void 0&&(t.proofClose=(0,Si.base64FromBytes)(e.proofClose!==void 0?e.proofClose:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.nextSequenceRecv!==void 0&&(t.nextSequenceRecv=(e.nextSequenceRecv||BigInt(0)).toString()),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=a8e();return e.packet!==void 0&&e.packet!==null&&(t.packet=Ns.Packet.fromPartial(e.packet)),t.proofUnreceived=e.proofUnreceived??new Uint8Array,t.proofClose=e.proofClose??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),e.nextSequenceRecv!==void 0&&e.nextSequenceRecv!==null&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),t.signer=e.signer??"",t}};function s8e(){return{result:0}}Ti.MsgTimeoutOnCloseResponse={typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnCloseResponse",encode(e,t=Li.BinaryWriter.create()){return e.result!==0&&t.uint32(8).int32(e.result),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=s8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.result=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=s8e();return(0,Si.isSet)(e.result)&&(t.result=tQ(e.result)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=rQ(e.result)),t},fromPartial(e){let t=s8e();return t.result=e.result??0,t}};function c8e(){return{packet:Ns.Packet.fromPartial({}),acknowledgement:new Uint8Array,proofAcked:new Uint8Array,proofHeight:Xo.Height.fromPartial({}),signer:""}}Ti.MsgAcknowledgement={typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",encode(e,t=Li.BinaryWriter.create()){return e.packet!==void 0&&Ns.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),e.acknowledgement.length!==0&&t.uint32(18).bytes(e.acknowledgement),e.proofAcked.length!==0&&t.uint32(26).bytes(e.proofAcked),e.proofHeight!==void 0&&Xo.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.signer!==""&&t.uint32(42).string(e.signer),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=c8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.packet=Ns.Packet.decode(r,r.uint32());break;case 2:n.acknowledgement=r.bytes();break;case 3:n.proofAcked=r.bytes();break;case 4:n.proofHeight=Xo.Height.decode(r,r.uint32());break;case 5:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=c8e();return(0,Si.isSet)(e.packet)&&(t.packet=Ns.Packet.fromJSON(e.packet)),(0,Si.isSet)(e.acknowledgement)&&(t.acknowledgement=(0,Si.bytesFromBase64)(e.acknowledgement)),(0,Si.isSet)(e.proofAcked)&&(t.proofAcked=(0,Si.bytesFromBase64)(e.proofAcked)),(0,Si.isSet)(e.proofHeight)&&(t.proofHeight=Xo.Height.fromJSON(e.proofHeight)),(0,Si.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.packet!==void 0&&(t.packet=e.packet?Ns.Packet.toJSON(e.packet):void 0),e.acknowledgement!==void 0&&(t.acknowledgement=(0,Si.base64FromBytes)(e.acknowledgement!==void 0?e.acknowledgement:new Uint8Array)),e.proofAcked!==void 0&&(t.proofAcked=(0,Si.base64FromBytes)(e.proofAcked!==void 0?e.proofAcked:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Xo.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=c8e();return e.packet!==void 0&&e.packet!==null&&(t.packet=Ns.Packet.fromPartial(e.packet)),t.acknowledgement=e.acknowledgement??new Uint8Array,t.proofAcked=e.proofAcked??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Xo.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function u8e(){return{result:0}}Ti.MsgAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.MsgAcknowledgementResponse",encode(e,t=Li.BinaryWriter.create()){return e.result!==0&&t.uint32(8).int32(e.result),t},decode(e,t){let r=e instanceof Li.BinaryReader?e:new Li.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=u8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.result=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=u8e();return(0,Si.isSet)(e.result)&&(t.result=tQ(e.result)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=rQ(e.result)),t},fromPartial(e){let t=u8e();return t.result=e.result??0,t}};var d8e=class{constructor(t){this.rpc=t,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}ChannelOpenInit(t){let r=Ti.MsgChannelOpenInit.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",r).then(n=>Ti.MsgChannelOpenInitResponse.decode(new Li.BinaryReader(n)))}ChannelOpenTry(t){let r=Ti.MsgChannelOpenTry.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",r).then(n=>Ti.MsgChannelOpenTryResponse.decode(new Li.BinaryReader(n)))}ChannelOpenAck(t){let r=Ti.MsgChannelOpenAck.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",r).then(n=>Ti.MsgChannelOpenAckResponse.decode(new Li.BinaryReader(n)))}ChannelOpenConfirm(t){let r=Ti.MsgChannelOpenConfirm.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",r).then(n=>Ti.MsgChannelOpenConfirmResponse.decode(new Li.BinaryReader(n)))}ChannelCloseInit(t){let r=Ti.MsgChannelCloseInit.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",r).then(n=>Ti.MsgChannelCloseInitResponse.decode(new Li.BinaryReader(n)))}ChannelCloseConfirm(t){let r=Ti.MsgChannelCloseConfirm.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",r).then(n=>Ti.MsgChannelCloseConfirmResponse.decode(new Li.BinaryReader(n)))}RecvPacket(t){let r=Ti.MsgRecvPacket.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",r).then(n=>Ti.MsgRecvPacketResponse.decode(new Li.BinaryReader(n)))}Timeout(t){let r=Ti.MsgTimeout.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",r).then(n=>Ti.MsgTimeoutResponse.decode(new Li.BinaryReader(n)))}TimeoutOnClose(t){let r=Ti.MsgTimeoutOnClose.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",r).then(n=>Ti.MsgTimeoutOnCloseResponse.decode(new Li.BinaryReader(n)))}Acknowledgement(t){let r=Ti.MsgAcknowledgement.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",r).then(n=>Ti.MsgAcknowledgementResponse.decode(new Li.BinaryReader(n)))}};Ti.MsgClientImpl=d8e});var $mt=ir(Uc=>{"use strict";J();K();z();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.MsgClientImpl=Uc.MsgSubmitMisbehaviourResponse=Uc.MsgSubmitMisbehaviour=Uc.MsgUpgradeClientResponse=Uc.MsgUpgradeClient=Uc.MsgUpdateClientResponse=Uc.MsgUpdateClient=Uc.MsgCreateClientResponse=Uc.MsgCreateClient=Uc.protobufPackage=void 0;var Lc=ru(),vu=Qi(),Kf=Hi();Uc.protobufPackage="ibc.core.client.v1";function f8e(){return{clientState:void 0,consensusState:void 0,signer:""}}Uc.MsgCreateClient={typeUrl:"/ibc.core.client.v1.MsgCreateClient",encode(e,t=vu.BinaryWriter.create()){return e.clientState!==void 0&&Lc.Any.encode(e.clientState,t.uint32(10).fork()).ldelim(),e.consensusState!==void 0&&Lc.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),e.signer!==""&&t.uint32(26).string(e.signer),t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=f8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientState=Lc.Any.decode(r,r.uint32());break;case 2:n.consensusState=Lc.Any.decode(r,r.uint32());break;case 3:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=f8e();return(0,Kf.isSet)(e.clientState)&&(t.clientState=Lc.Any.fromJSON(e.clientState)),(0,Kf.isSet)(e.consensusState)&&(t.consensusState=Lc.Any.fromJSON(e.consensusState)),(0,Kf.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.clientState!==void 0&&(t.clientState=e.clientState?Lc.Any.toJSON(e.clientState):void 0),e.consensusState!==void 0&&(t.consensusState=e.consensusState?Lc.Any.toJSON(e.consensusState):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=f8e();return e.clientState!==void 0&&e.clientState!==null&&(t.clientState=Lc.Any.fromPartial(e.clientState)),e.consensusState!==void 0&&e.consensusState!==null&&(t.consensusState=Lc.Any.fromPartial(e.consensusState)),t.signer=e.signer??"",t}};function l8e(){return{}}Uc.MsgCreateClientResponse={typeUrl:"/ibc.core.client.v1.MsgCreateClientResponse",encode(e,t=vu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=l8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return l8e()},toJSON(e){return{}},fromPartial(e){return l8e()}};function h8e(){return{clientId:"",clientMessage:void 0,signer:""}}Uc.MsgUpdateClient={typeUrl:"/ibc.core.client.v1.MsgUpdateClient",encode(e,t=vu.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.clientMessage!==void 0&&Lc.Any.encode(e.clientMessage,t.uint32(18).fork()).ldelim(),e.signer!==""&&t.uint32(26).string(e.signer),t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=h8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.clientMessage=Lc.Any.decode(r,r.uint32());break;case 3:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=h8e();return(0,Kf.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Kf.isSet)(e.clientMessage)&&(t.clientMessage=Lc.Any.fromJSON(e.clientMessage)),(0,Kf.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.clientMessage!==void 0&&(t.clientMessage=e.clientMessage?Lc.Any.toJSON(e.clientMessage):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=h8e();return t.clientId=e.clientId??"",e.clientMessage!==void 0&&e.clientMessage!==null&&(t.clientMessage=Lc.Any.fromPartial(e.clientMessage)),t.signer=e.signer??"",t}};function A8e(){return{}}Uc.MsgUpdateClientResponse={typeUrl:"/ibc.core.client.v1.MsgUpdateClientResponse",encode(e,t=vu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=A8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return A8e()},toJSON(e){return{}},fromPartial(e){return A8e()}};function p8e(){return{clientId:"",clientState:void 0,consensusState:void 0,proofUpgradeClient:new Uint8Array,proofUpgradeConsensusState:new Uint8Array,signer:""}}Uc.MsgUpgradeClient={typeUrl:"/ibc.core.client.v1.MsgUpgradeClient",encode(e,t=vu.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.clientState!==void 0&&Lc.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),e.consensusState!==void 0&&Lc.Any.encode(e.consensusState,t.uint32(26).fork()).ldelim(),e.proofUpgradeClient.length!==0&&t.uint32(34).bytes(e.proofUpgradeClient),e.proofUpgradeConsensusState.length!==0&&t.uint32(42).bytes(e.proofUpgradeConsensusState),e.signer!==""&&t.uint32(50).string(e.signer),t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=p8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.clientState=Lc.Any.decode(r,r.uint32());break;case 3:n.consensusState=Lc.Any.decode(r,r.uint32());break;case 4:n.proofUpgradeClient=r.bytes();break;case 5:n.proofUpgradeConsensusState=r.bytes();break;case 6:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=p8e();return(0,Kf.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Kf.isSet)(e.clientState)&&(t.clientState=Lc.Any.fromJSON(e.clientState)),(0,Kf.isSet)(e.consensusState)&&(t.consensusState=Lc.Any.fromJSON(e.consensusState)),(0,Kf.isSet)(e.proofUpgradeClient)&&(t.proofUpgradeClient=(0,Kf.bytesFromBase64)(e.proofUpgradeClient)),(0,Kf.isSet)(e.proofUpgradeConsensusState)&&(t.proofUpgradeConsensusState=(0,Kf.bytesFromBase64)(e.proofUpgradeConsensusState)),(0,Kf.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.clientState!==void 0&&(t.clientState=e.clientState?Lc.Any.toJSON(e.clientState):void 0),e.consensusState!==void 0&&(t.consensusState=e.consensusState?Lc.Any.toJSON(e.consensusState):void 0),e.proofUpgradeClient!==void 0&&(t.proofUpgradeClient=(0,Kf.base64FromBytes)(e.proofUpgradeClient!==void 0?e.proofUpgradeClient:new Uint8Array)),e.proofUpgradeConsensusState!==void 0&&(t.proofUpgradeConsensusState=(0,Kf.base64FromBytes)(e.proofUpgradeConsensusState!==void 0?e.proofUpgradeConsensusState:new Uint8Array)),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=p8e();return t.clientId=e.clientId??"",e.clientState!==void 0&&e.clientState!==null&&(t.clientState=Lc.Any.fromPartial(e.clientState)),e.consensusState!==void 0&&e.consensusState!==null&&(t.consensusState=Lc.Any.fromPartial(e.consensusState)),t.proofUpgradeClient=e.proofUpgradeClient??new Uint8Array,t.proofUpgradeConsensusState=e.proofUpgradeConsensusState??new Uint8Array,t.signer=e.signer??"",t}};function g8e(){return{}}Uc.MsgUpgradeClientResponse={typeUrl:"/ibc.core.client.v1.MsgUpgradeClientResponse",encode(e,t=vu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=g8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return g8e()},toJSON(e){return{}},fromPartial(e){return g8e()}};function _8e(){return{clientId:"",misbehaviour:void 0,signer:""}}Uc.MsgSubmitMisbehaviour={typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviour",encode(e,t=vu.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.misbehaviour!==void 0&&Lc.Any.encode(e.misbehaviour,t.uint32(18).fork()).ldelim(),e.signer!==""&&t.uint32(26).string(e.signer),t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.misbehaviour=Lc.Any.decode(r,r.uint32());break;case 3:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_8e();return(0,Kf.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Kf.isSet)(e.misbehaviour)&&(t.misbehaviour=Lc.Any.fromJSON(e.misbehaviour)),(0,Kf.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.misbehaviour!==void 0&&(t.misbehaviour=e.misbehaviour?Lc.Any.toJSON(e.misbehaviour):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=_8e();return t.clientId=e.clientId??"",e.misbehaviour!==void 0&&e.misbehaviour!==null&&(t.misbehaviour=Lc.Any.fromPartial(e.misbehaviour)),t.signer=e.signer??"",t}};function m8e(){return{}}Uc.MsgSubmitMisbehaviourResponse={typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviourResponse",encode(e,t=vu.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof vu.BinaryReader?e:new vu.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=m8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return m8e()},toJSON(e){return{}},fromPartial(e){return m8e()}};var y8e=class{constructor(t){this.rpc=t,this.CreateClient=this.CreateClient.bind(this),this.UpdateClient=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(t){let r=Uc.MsgCreateClient.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",r).then(n=>Uc.MsgCreateClientResponse.decode(new vu.BinaryReader(n)))}UpdateClient(t){let r=Uc.MsgUpdateClient.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",r).then(n=>Uc.MsgUpdateClientResponse.decode(new vu.BinaryReader(n)))}UpgradeClient(t){let r=Uc.MsgUpgradeClient.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",r).then(n=>Uc.MsgUpgradeClientResponse.decode(new vu.BinaryReader(n)))}SubmitMisbehaviour(t){let r=Uc.MsgSubmitMisbehaviour.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",r).then(n=>Uc.MsgSubmitMisbehaviourResponse.decode(new vu.BinaryReader(n)))}};Uc.MsgClientImpl=y8e});var M8e=ir(gn=>{"use strict";J();K();z();Object.defineProperty(gn,"__esModule",{value:!0});gn.CompressedNonExistenceProof=gn.CompressedExistenceProof=gn.CompressedBatchEntry=gn.CompressedBatchProof=gn.BatchEntry=gn.BatchProof=gn.InnerSpec=gn.ProofSpec=gn.InnerOp=gn.LeafOp=gn.CommitmentProof=gn.NonExistenceProof=gn.ExistenceProof=gn.lengthOpToJSON=gn.lengthOpFromJSON=gn.LengthOp=gn.hashOpToJSON=gn.hashOpFromJSON=gn.HashOp=gn.protobufPackage=void 0;var os=Qi(),mo=Hi();gn.protobufPackage="cosmos.ics23.v1";var Bl;(function(e){e[e.NO_HASH=0]="NO_HASH",e[e.SHA256=1]="SHA256",e[e.SHA512=2]="SHA512",e[e.KECCAK=3]="KECCAK",e[e.RIPEMD160=4]="RIPEMD160",e[e.BITCOIN=5]="BITCOIN",e[e.SHA512_256=6]="SHA512_256",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bl||(gn.HashOp=Bl={}));function f9(e){switch(e){case 0:case"NO_HASH":return Bl.NO_HASH;case 1:case"SHA256":return Bl.SHA256;case 2:case"SHA512":return Bl.SHA512;case 3:case"KECCAK":return Bl.KECCAK;case 4:case"RIPEMD160":return Bl.RIPEMD160;case 5:case"BITCOIN":return Bl.BITCOIN;case 6:case"SHA512_256":return Bl.SHA512_256;default:return Bl.UNRECOGNIZED}}gn.hashOpFromJSON=f9;function l9(e){switch(e){case Bl.NO_HASH:return"NO_HASH";case Bl.SHA256:return"SHA256";case Bl.SHA512:return"SHA512";case Bl.KECCAK:return"KECCAK";case Bl.RIPEMD160:return"RIPEMD160";case Bl.BITCOIN:return"BITCOIN";case Bl.SHA512_256:return"SHA512_256";case Bl.UNRECOGNIZED:default:return"UNRECOGNIZED"}}gn.hashOpToJSON=l9;var md;(function(e){e[e.NO_PREFIX=0]="NO_PREFIX",e[e.VAR_PROTO=1]="VAR_PROTO",e[e.VAR_RLP=2]="VAR_RLP",e[e.FIXED32_BIG=3]="FIXED32_BIG",e[e.FIXED32_LITTLE=4]="FIXED32_LITTLE",e[e.FIXED64_BIG=5]="FIXED64_BIG",e[e.FIXED64_LITTLE=6]="FIXED64_LITTLE",e[e.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",e[e.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(md||(gn.LengthOp=md={}));function Ymt(e){switch(e){case 0:case"NO_PREFIX":return md.NO_PREFIX;case 1:case"VAR_PROTO":return md.VAR_PROTO;case 2:case"VAR_RLP":return md.VAR_RLP;case 3:case"FIXED32_BIG":return md.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return md.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return md.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return md.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return md.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return md.REQUIRE_64_BYTES;default:return md.UNRECOGNIZED}}gn.lengthOpFromJSON=Ymt;function Wmt(e){switch(e){case md.NO_PREFIX:return"NO_PREFIX";case md.VAR_PROTO:return"VAR_PROTO";case md.VAR_RLP:return"VAR_RLP";case md.FIXED32_BIG:return"FIXED32_BIG";case md.FIXED32_LITTLE:return"FIXED32_LITTLE";case md.FIXED64_BIG:return"FIXED64_BIG";case md.FIXED64_LITTLE:return"FIXED64_LITTLE";case md.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case md.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";case md.UNRECOGNIZED:default:return"UNRECOGNIZED"}}gn.lengthOpToJSON=Wmt;function b8e(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}gn.ExistenceProof={typeUrl:"/cosmos.ics23.v1.ExistenceProof",encode(e,t=os.BinaryWriter.create()){e.key.length!==0&&t.uint32(10).bytes(e.key),e.value.length!==0&&t.uint32(18).bytes(e.value),e.leaf!==void 0&&gn.LeafOp.encode(e.leaf,t.uint32(26).fork()).ldelim();for(let r of e.path)gn.InnerOp.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=b8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.bytes();break;case 2:n.value=r.bytes();break;case 3:n.leaf=gn.LeafOp.decode(r,r.uint32());break;case 4:n.path.push(gn.InnerOp.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=b8e();return(0,mo.isSet)(e.key)&&(t.key=(0,mo.bytesFromBase64)(e.key)),(0,mo.isSet)(e.value)&&(t.value=(0,mo.bytesFromBase64)(e.value)),(0,mo.isSet)(e.leaf)&&(t.leaf=gn.LeafOp.fromJSON(e.leaf)),Array.isArray(e?.path)&&(t.path=e.path.map(r=>gn.InnerOp.fromJSON(r))),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,mo.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.value!==void 0&&(t.value=(0,mo.base64FromBytes)(e.value!==void 0?e.value:new Uint8Array)),e.leaf!==void 0&&(t.leaf=e.leaf?gn.LeafOp.toJSON(e.leaf):void 0),e.path?t.path=e.path.map(r=>r?gn.InnerOp.toJSON(r):void 0):t.path=[],t},fromPartial(e){let t=b8e();return t.key=e.key??new Uint8Array,t.value=e.value??new Uint8Array,e.leaf!==void 0&&e.leaf!==null&&(t.leaf=gn.LeafOp.fromPartial(e.leaf)),t.path=e.path?.map(r=>gn.InnerOp.fromPartial(r))||[],t}};function E8e(){return{key:new Uint8Array,left:void 0,right:void 0}}gn.NonExistenceProof={typeUrl:"/cosmos.ics23.v1.NonExistenceProof",encode(e,t=os.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),e.left!==void 0&&gn.ExistenceProof.encode(e.left,t.uint32(18).fork()).ldelim(),e.right!==void 0&&gn.ExistenceProof.encode(e.right,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=E8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.bytes();break;case 2:n.left=gn.ExistenceProof.decode(r,r.uint32());break;case 3:n.right=gn.ExistenceProof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=E8e();return(0,mo.isSet)(e.key)&&(t.key=(0,mo.bytesFromBase64)(e.key)),(0,mo.isSet)(e.left)&&(t.left=gn.ExistenceProof.fromJSON(e.left)),(0,mo.isSet)(e.right)&&(t.right=gn.ExistenceProof.fromJSON(e.right)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,mo.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.left!==void 0&&(t.left=e.left?gn.ExistenceProof.toJSON(e.left):void 0),e.right!==void 0&&(t.right=e.right?gn.ExistenceProof.toJSON(e.right):void 0),t},fromPartial(e){let t=E8e();return t.key=e.key??new Uint8Array,e.left!==void 0&&e.left!==null&&(t.left=gn.ExistenceProof.fromPartial(e.left)),e.right!==void 0&&e.right!==null&&(t.right=gn.ExistenceProof.fromPartial(e.right)),t}};function v8e(){return{exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0}}gn.CommitmentProof={typeUrl:"/cosmos.ics23.v1.CommitmentProof",encode(e,t=os.BinaryWriter.create()){return e.exist!==void 0&&gn.ExistenceProof.encode(e.exist,t.uint32(10).fork()).ldelim(),e.nonexist!==void 0&&gn.NonExistenceProof.encode(e.nonexist,t.uint32(18).fork()).ldelim(),e.batch!==void 0&&gn.BatchProof.encode(e.batch,t.uint32(26).fork()).ldelim(),e.compressed!==void 0&&gn.CompressedBatchProof.encode(e.compressed,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=v8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.exist=gn.ExistenceProof.decode(r,r.uint32());break;case 2:n.nonexist=gn.NonExistenceProof.decode(r,r.uint32());break;case 3:n.batch=gn.BatchProof.decode(r,r.uint32());break;case 4:n.compressed=gn.CompressedBatchProof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=v8e();return(0,mo.isSet)(e.exist)&&(t.exist=gn.ExistenceProof.fromJSON(e.exist)),(0,mo.isSet)(e.nonexist)&&(t.nonexist=gn.NonExistenceProof.fromJSON(e.nonexist)),(0,mo.isSet)(e.batch)&&(t.batch=gn.BatchProof.fromJSON(e.batch)),(0,mo.isSet)(e.compressed)&&(t.compressed=gn.CompressedBatchProof.fromJSON(e.compressed)),t},toJSON(e){let t={};return e.exist!==void 0&&(t.exist=e.exist?gn.ExistenceProof.toJSON(e.exist):void 0),e.nonexist!==void 0&&(t.nonexist=e.nonexist?gn.NonExistenceProof.toJSON(e.nonexist):void 0),e.batch!==void 0&&(t.batch=e.batch?gn.BatchProof.toJSON(e.batch):void 0),e.compressed!==void 0&&(t.compressed=e.compressed?gn.CompressedBatchProof.toJSON(e.compressed):void 0),t},fromPartial(e){let t=v8e();return e.exist!==void 0&&e.exist!==null&&(t.exist=gn.ExistenceProof.fromPartial(e.exist)),e.nonexist!==void 0&&e.nonexist!==null&&(t.nonexist=gn.NonExistenceProof.fromPartial(e.nonexist)),e.batch!==void 0&&e.batch!==null&&(t.batch=gn.BatchProof.fromPartial(e.batch)),e.compressed!==void 0&&e.compressed!==null&&(t.compressed=gn.CompressedBatchProof.fromPartial(e.compressed)),t}};function R8e(){return{hash:0,prehashKey:0,prehashValue:0,length:0,prefix:new Uint8Array}}gn.LeafOp={typeUrl:"/cosmos.ics23.v1.LeafOp",encode(e,t=os.BinaryWriter.create()){return e.hash!==0&&t.uint32(8).int32(e.hash),e.prehashKey!==0&&t.uint32(16).int32(e.prehashKey),e.prehashValue!==0&&t.uint32(24).int32(e.prehashValue),e.length!==0&&t.uint32(32).int32(e.length),e.prefix.length!==0&&t.uint32(42).bytes(e.prefix),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=R8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.hash=r.int32();break;case 2:n.prehashKey=r.int32();break;case 3:n.prehashValue=r.int32();break;case 4:n.length=r.int32();break;case 5:n.prefix=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=R8e();return(0,mo.isSet)(e.hash)&&(t.hash=f9(e.hash)),(0,mo.isSet)(e.prehashKey)&&(t.prehashKey=f9(e.prehashKey)),(0,mo.isSet)(e.prehashValue)&&(t.prehashValue=f9(e.prehashValue)),(0,mo.isSet)(e.length)&&(t.length=Ymt(e.length)),(0,mo.isSet)(e.prefix)&&(t.prefix=(0,mo.bytesFromBase64)(e.prefix)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=l9(e.hash)),e.prehashKey!==void 0&&(t.prehashKey=l9(e.prehashKey)),e.prehashValue!==void 0&&(t.prehashValue=l9(e.prehashValue)),e.length!==void 0&&(t.length=Wmt(e.length)),e.prefix!==void 0&&(t.prefix=(0,mo.base64FromBytes)(e.prefix!==void 0?e.prefix:new Uint8Array)),t},fromPartial(e){let t=R8e();return t.hash=e.hash??0,t.prehashKey=e.prehashKey??0,t.prehashValue=e.prehashValue??0,t.length=e.length??0,t.prefix=e.prefix??new Uint8Array,t}};function S8e(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}gn.InnerOp={typeUrl:"/cosmos.ics23.v1.InnerOp",encode(e,t=os.BinaryWriter.create()){return e.hash!==0&&t.uint32(8).int32(e.hash),e.prefix.length!==0&&t.uint32(18).bytes(e.prefix),e.suffix.length!==0&&t.uint32(26).bytes(e.suffix),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=S8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.hash=r.int32();break;case 2:n.prefix=r.bytes();break;case 3:n.suffix=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=S8e();return(0,mo.isSet)(e.hash)&&(t.hash=f9(e.hash)),(0,mo.isSet)(e.prefix)&&(t.prefix=(0,mo.bytesFromBase64)(e.prefix)),(0,mo.isSet)(e.suffix)&&(t.suffix=(0,mo.bytesFromBase64)(e.suffix)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=l9(e.hash)),e.prefix!==void 0&&(t.prefix=(0,mo.base64FromBytes)(e.prefix!==void 0?e.prefix:new Uint8Array)),e.suffix!==void 0&&(t.suffix=(0,mo.base64FromBytes)(e.suffix!==void 0?e.suffix:new Uint8Array)),t},fromPartial(e){let t=S8e();return t.hash=e.hash??0,t.prefix=e.prefix??new Uint8Array,t.suffix=e.suffix??new Uint8Array,t}};function I8e(){return{leafSpec:void 0,innerSpec:void 0,maxDepth:0,minDepth:0}}gn.ProofSpec={typeUrl:"/cosmos.ics23.v1.ProofSpec",encode(e,t=os.BinaryWriter.create()){return e.leafSpec!==void 0&&gn.LeafOp.encode(e.leafSpec,t.uint32(10).fork()).ldelim(),e.innerSpec!==void 0&&gn.InnerSpec.encode(e.innerSpec,t.uint32(18).fork()).ldelim(),e.maxDepth!==0&&t.uint32(24).int32(e.maxDepth),e.minDepth!==0&&t.uint32(32).int32(e.minDepth),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=I8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.leafSpec=gn.LeafOp.decode(r,r.uint32());break;case 2:n.innerSpec=gn.InnerSpec.decode(r,r.uint32());break;case 3:n.maxDepth=r.int32();break;case 4:n.minDepth=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=I8e();return(0,mo.isSet)(e.leafSpec)&&(t.leafSpec=gn.LeafOp.fromJSON(e.leafSpec)),(0,mo.isSet)(e.innerSpec)&&(t.innerSpec=gn.InnerSpec.fromJSON(e.innerSpec)),(0,mo.isSet)(e.maxDepth)&&(t.maxDepth=Number(e.maxDepth)),(0,mo.isSet)(e.minDepth)&&(t.minDepth=Number(e.minDepth)),t},toJSON(e){let t={};return e.leafSpec!==void 0&&(t.leafSpec=e.leafSpec?gn.LeafOp.toJSON(e.leafSpec):void 0),e.innerSpec!==void 0&&(t.innerSpec=e.innerSpec?gn.InnerSpec.toJSON(e.innerSpec):void 0),e.maxDepth!==void 0&&(t.maxDepth=Math.round(e.maxDepth)),e.minDepth!==void 0&&(t.minDepth=Math.round(e.minDepth)),t},fromPartial(e){let t=I8e();return e.leafSpec!==void 0&&e.leafSpec!==null&&(t.leafSpec=gn.LeafOp.fromPartial(e.leafSpec)),e.innerSpec!==void 0&&e.innerSpec!==null&&(t.innerSpec=gn.InnerSpec.fromPartial(e.innerSpec)),t.maxDepth=e.maxDepth??0,t.minDepth=e.minDepth??0,t}};function C8e(){return{childOrder:[],childSize:0,minPrefixLength:0,maxPrefixLength:0,emptyChild:new Uint8Array,hash:0}}gn.InnerSpec={typeUrl:"/cosmos.ics23.v1.InnerSpec",encode(e,t=os.BinaryWriter.create()){t.uint32(10).fork();for(let r of e.childOrder)t.int32(r);return t.ldelim(),e.childSize!==0&&t.uint32(16).int32(e.childSize),e.minPrefixLength!==0&&t.uint32(24).int32(e.minPrefixLength),e.maxPrefixLength!==0&&t.uint32(32).int32(e.maxPrefixLength),e.emptyChild.length!==0&&t.uint32(42).bytes(e.emptyChild),e.hash!==0&&t.uint32(48).int32(e.hash),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=C8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.childOrder.push(r.int32())}else n.childOrder.push(r.int32());break;case 2:n.childSize=r.int32();break;case 3:n.minPrefixLength=r.int32();break;case 4:n.maxPrefixLength=r.int32();break;case 5:n.emptyChild=r.bytes();break;case 6:n.hash=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=C8e();return Array.isArray(e?.childOrder)&&(t.childOrder=e.childOrder.map(r=>Number(r))),(0,mo.isSet)(e.childSize)&&(t.childSize=Number(e.childSize)),(0,mo.isSet)(e.minPrefixLength)&&(t.minPrefixLength=Number(e.minPrefixLength)),(0,mo.isSet)(e.maxPrefixLength)&&(t.maxPrefixLength=Number(e.maxPrefixLength)),(0,mo.isSet)(e.emptyChild)&&(t.emptyChild=(0,mo.bytesFromBase64)(e.emptyChild)),(0,mo.isSet)(e.hash)&&(t.hash=f9(e.hash)),t},toJSON(e){let t={};return e.childOrder?t.childOrder=e.childOrder.map(r=>Math.round(r)):t.childOrder=[],e.childSize!==void 0&&(t.childSize=Math.round(e.childSize)),e.minPrefixLength!==void 0&&(t.minPrefixLength=Math.round(e.minPrefixLength)),e.maxPrefixLength!==void 0&&(t.maxPrefixLength=Math.round(e.maxPrefixLength)),e.emptyChild!==void 0&&(t.emptyChild=(0,mo.base64FromBytes)(e.emptyChild!==void 0?e.emptyChild:new Uint8Array)),e.hash!==void 0&&(t.hash=l9(e.hash)),t},fromPartial(e){let t=C8e();return t.childOrder=e.childOrder?.map(r=>r)||[],t.childSize=e.childSize??0,t.minPrefixLength=e.minPrefixLength??0,t.maxPrefixLength=e.maxPrefixLength??0,t.emptyChild=e.emptyChild??new Uint8Array,t.hash=e.hash??0,t}};function w8e(){return{entries:[]}}gn.BatchProof={typeUrl:"/cosmos.ics23.v1.BatchProof",encode(e,t=os.BinaryWriter.create()){for(let r of e.entries)gn.BatchEntry.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=w8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.entries.push(gn.BatchEntry.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=w8e();return Array.isArray(e?.entries)&&(t.entries=e.entries.map(r=>gn.BatchEntry.fromJSON(r))),t},toJSON(e){let t={};return e.entries?t.entries=e.entries.map(r=>r?gn.BatchEntry.toJSON(r):void 0):t.entries=[],t},fromPartial(e){let t=w8e();return t.entries=e.entries?.map(r=>gn.BatchEntry.fromPartial(r))||[],t}};function O8e(){return{exist:void 0,nonexist:void 0}}gn.BatchEntry={typeUrl:"/cosmos.ics23.v1.BatchEntry",encode(e,t=os.BinaryWriter.create()){return e.exist!==void 0&&gn.ExistenceProof.encode(e.exist,t.uint32(10).fork()).ldelim(),e.nonexist!==void 0&&gn.NonExistenceProof.encode(e.nonexist,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=O8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.exist=gn.ExistenceProof.decode(r,r.uint32());break;case 2:n.nonexist=gn.NonExistenceProof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=O8e();return(0,mo.isSet)(e.exist)&&(t.exist=gn.ExistenceProof.fromJSON(e.exist)),(0,mo.isSet)(e.nonexist)&&(t.nonexist=gn.NonExistenceProof.fromJSON(e.nonexist)),t},toJSON(e){let t={};return e.exist!==void 0&&(t.exist=e.exist?gn.ExistenceProof.toJSON(e.exist):void 0),e.nonexist!==void 0&&(t.nonexist=e.nonexist?gn.NonExistenceProof.toJSON(e.nonexist):void 0),t},fromPartial(e){let t=O8e();return e.exist!==void 0&&e.exist!==null&&(t.exist=gn.ExistenceProof.fromPartial(e.exist)),e.nonexist!==void 0&&e.nonexist!==null&&(t.nonexist=gn.NonExistenceProof.fromPartial(e.nonexist)),t}};function N8e(){return{entries:[],lookupInners:[]}}gn.CompressedBatchProof={typeUrl:"/cosmos.ics23.v1.CompressedBatchProof",encode(e,t=os.BinaryWriter.create()){for(let r of e.entries)gn.CompressedBatchEntry.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.lookupInners)gn.InnerOp.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=N8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.entries.push(gn.CompressedBatchEntry.decode(r,r.uint32()));break;case 2:n.lookupInners.push(gn.InnerOp.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=N8e();return Array.isArray(e?.entries)&&(t.entries=e.entries.map(r=>gn.CompressedBatchEntry.fromJSON(r))),Array.isArray(e?.lookupInners)&&(t.lookupInners=e.lookupInners.map(r=>gn.InnerOp.fromJSON(r))),t},toJSON(e){let t={};return e.entries?t.entries=e.entries.map(r=>r?gn.CompressedBatchEntry.toJSON(r):void 0):t.entries=[],e.lookupInners?t.lookupInners=e.lookupInners.map(r=>r?gn.InnerOp.toJSON(r):void 0):t.lookupInners=[],t},fromPartial(e){let t=N8e();return t.entries=e.entries?.map(r=>gn.CompressedBatchEntry.fromPartial(r))||[],t.lookupInners=e.lookupInners?.map(r=>gn.InnerOp.fromPartial(r))||[],t}};function x8e(){return{exist:void 0,nonexist:void 0}}gn.CompressedBatchEntry={typeUrl:"/cosmos.ics23.v1.CompressedBatchEntry",encode(e,t=os.BinaryWriter.create()){return e.exist!==void 0&&gn.CompressedExistenceProof.encode(e.exist,t.uint32(10).fork()).ldelim(),e.nonexist!==void 0&&gn.CompressedNonExistenceProof.encode(e.nonexist,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=x8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.exist=gn.CompressedExistenceProof.decode(r,r.uint32());break;case 2:n.nonexist=gn.CompressedNonExistenceProof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=x8e();return(0,mo.isSet)(e.exist)&&(t.exist=gn.CompressedExistenceProof.fromJSON(e.exist)),(0,mo.isSet)(e.nonexist)&&(t.nonexist=gn.CompressedNonExistenceProof.fromJSON(e.nonexist)),t},toJSON(e){let t={};return e.exist!==void 0&&(t.exist=e.exist?gn.CompressedExistenceProof.toJSON(e.exist):void 0),e.nonexist!==void 0&&(t.nonexist=e.nonexist?gn.CompressedNonExistenceProof.toJSON(e.nonexist):void 0),t},fromPartial(e){let t=x8e();return e.exist!==void 0&&e.exist!==null&&(t.exist=gn.CompressedExistenceProof.fromPartial(e.exist)),e.nonexist!==void 0&&e.nonexist!==null&&(t.nonexist=gn.CompressedNonExistenceProof.fromPartial(e.nonexist)),t}};function T8e(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}gn.CompressedExistenceProof={typeUrl:"/cosmos.ics23.v1.CompressedExistenceProof",encode(e,t=os.BinaryWriter.create()){e.key.length!==0&&t.uint32(10).bytes(e.key),e.value.length!==0&&t.uint32(18).bytes(e.value),e.leaf!==void 0&&gn.LeafOp.encode(e.leaf,t.uint32(26).fork()).ldelim(),t.uint32(34).fork();for(let r of e.path)t.int32(r);return t.ldelim(),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=T8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.bytes();break;case 2:n.value=r.bytes();break;case 3:n.leaf=gn.LeafOp.decode(r,r.uint32());break;case 4:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.path.push(r.int32())}else n.path.push(r.int32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=T8e();return(0,mo.isSet)(e.key)&&(t.key=(0,mo.bytesFromBase64)(e.key)),(0,mo.isSet)(e.value)&&(t.value=(0,mo.bytesFromBase64)(e.value)),(0,mo.isSet)(e.leaf)&&(t.leaf=gn.LeafOp.fromJSON(e.leaf)),Array.isArray(e?.path)&&(t.path=e.path.map(r=>Number(r))),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,mo.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.value!==void 0&&(t.value=(0,mo.base64FromBytes)(e.value!==void 0?e.value:new Uint8Array)),e.leaf!==void 0&&(t.leaf=e.leaf?gn.LeafOp.toJSON(e.leaf):void 0),e.path?t.path=e.path.map(r=>Math.round(r)):t.path=[],t},fromPartial(e){let t=T8e();return t.key=e.key??new Uint8Array,t.value=e.value??new Uint8Array,e.leaf!==void 0&&e.leaf!==null&&(t.leaf=gn.LeafOp.fromPartial(e.leaf)),t.path=e.path?.map(r=>r)||[],t}};function B8e(){return{key:new Uint8Array,left:void 0,right:void 0}}gn.CompressedNonExistenceProof={typeUrl:"/cosmos.ics23.v1.CompressedNonExistenceProof",encode(e,t=os.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),e.left!==void 0&&gn.CompressedExistenceProof.encode(e.left,t.uint32(18).fork()).ldelim(),e.right!==void 0&&gn.CompressedExistenceProof.encode(e.right,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof os.BinaryReader?e:new os.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=B8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.bytes();break;case 2:n.left=gn.CompressedExistenceProof.decode(r,r.uint32());break;case 3:n.right=gn.CompressedExistenceProof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=B8e();return(0,mo.isSet)(e.key)&&(t.key=(0,mo.bytesFromBase64)(e.key)),(0,mo.isSet)(e.left)&&(t.left=gn.CompressedExistenceProof.fromJSON(e.left)),(0,mo.isSet)(e.right)&&(t.right=gn.CompressedExistenceProof.fromJSON(e.right)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,mo.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.left!==void 0&&(t.left=e.left?gn.CompressedExistenceProof.toJSON(e.left):void 0),e.right!==void 0&&(t.right=e.right?gn.CompressedExistenceProof.toJSON(e.right):void 0),t},fromPartial(e){let t=B8e();return t.key=e.key??new Uint8Array,e.left!==void 0&&e.left!==null&&(t.left=gn.CompressedExistenceProof.fromPartial(e.left)),e.right!==void 0&&e.right!==null&&(t.right=gn.CompressedExistenceProof.fromPartial(e.right)),t}}});var U8e=ir(B2=>{"use strict";J();K();z();Object.defineProperty(B2,"__esModule",{value:!0});B2.MerkleProof=B2.MerklePath=B2.MerklePrefix=B2.MerkleRoot=B2.protobufPackage=void 0;var nQ=M8e(),M2=Qi(),h9=Hi();B2.protobufPackage="ibc.core.commitment.v1";function D8e(){return{hash:new Uint8Array}}B2.MerkleRoot={typeUrl:"/ibc.core.commitment.v1.MerkleRoot",encode(e,t=M2.BinaryWriter.create()){return e.hash.length!==0&&t.uint32(10).bytes(e.hash),t},decode(e,t){let r=e instanceof M2.BinaryReader?e:new M2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=D8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.hash=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=D8e();return(0,h9.isSet)(e.hash)&&(t.hash=(0,h9.bytesFromBase64)(e.hash)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=(0,h9.base64FromBytes)(e.hash!==void 0?e.hash:new Uint8Array)),t},fromPartial(e){let t=D8e();return t.hash=e.hash??new Uint8Array,t}};function k8e(){return{keyPrefix:new Uint8Array}}B2.MerklePrefix={typeUrl:"/ibc.core.commitment.v1.MerklePrefix",encode(e,t=M2.BinaryWriter.create()){return e.keyPrefix.length!==0&&t.uint32(10).bytes(e.keyPrefix),t},decode(e,t){let r=e instanceof M2.BinaryReader?e:new M2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=k8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.keyPrefix=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=k8e();return(0,h9.isSet)(e.keyPrefix)&&(t.keyPrefix=(0,h9.bytesFromBase64)(e.keyPrefix)),t},toJSON(e){let t={};return e.keyPrefix!==void 0&&(t.keyPrefix=(0,h9.base64FromBytes)(e.keyPrefix!==void 0?e.keyPrefix:new Uint8Array)),t},fromPartial(e){let t=k8e();return t.keyPrefix=e.keyPrefix??new Uint8Array,t}};function P8e(){return{keyPath:[]}}B2.MerklePath={typeUrl:"/ibc.core.commitment.v1.MerklePath",encode(e,t=M2.BinaryWriter.create()){for(let r of e.keyPath)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof M2.BinaryReader?e:new M2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=P8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.keyPath.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=P8e();return Array.isArray(e?.keyPath)&&(t.keyPath=e.keyPath.map(r=>String(r))),t},toJSON(e){let t={};return e.keyPath?t.keyPath=e.keyPath.map(r=>r):t.keyPath=[],t},fromPartial(e){let t=P8e();return t.keyPath=e.keyPath?.map(r=>r)||[],t}};function L8e(){return{proofs:[]}}B2.MerkleProof={typeUrl:"/ibc.core.commitment.v1.MerkleProof",encode(e,t=M2.BinaryWriter.create()){for(let r of e.proofs)nQ.CommitmentProof.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof M2.BinaryReader?e:new M2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=L8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.proofs.push(nQ.CommitmentProof.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=L8e();return Array.isArray(e?.proofs)&&(t.proofs=e.proofs.map(r=>nQ.CommitmentProof.fromJSON(r))),t},toJSON(e){let t={};return e.proofs?t.proofs=e.proofs.map(r=>r?nQ.CommitmentProof.toJSON(r):void 0):t.proofs=[],t},fromPartial(e){let t=L8e();return t.proofs=e.proofs?.map(r=>nQ.CommitmentProof.fromPartial(r))||[],t}}});var $8e=ir(oa=>{"use strict";J();K();z();Object.defineProperty(oa,"__esModule",{value:!0});oa.Params=oa.Version=oa.ConnectionPaths=oa.ClientPaths=oa.Counterparty=oa.IdentifiedConnection=oa.ConnectionEnd=oa.stateToJSON=oa.stateFromJSON=oa.State=oa.protobufPackage=void 0;var A9=U8e(),Kd=Qi(),sp=Hi();oa.protobufPackage="ibc.core.connection.v1";var D2;(function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(D2||(oa.State=D2={}));function z8e(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return D2.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return D2.STATE_INIT;case 2:case"STATE_TRYOPEN":return D2.STATE_TRYOPEN;case 3:case"STATE_OPEN":return D2.STATE_OPEN;default:return D2.UNRECOGNIZED}}oa.stateFromJSON=z8e;function K8e(e){switch(e){case D2.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case D2.STATE_INIT:return"STATE_INIT";case D2.STATE_TRYOPEN:return"STATE_TRYOPEN";case D2.STATE_OPEN:return"STATE_OPEN";case D2.UNRECOGNIZED:default:return"UNRECOGNIZED"}}oa.stateToJSON=K8e;function F8e(){return{clientId:"",versions:[],state:0,counterparty:oa.Counterparty.fromPartial({}),delayPeriod:BigInt(0)}}oa.ConnectionEnd={typeUrl:"/ibc.core.connection.v1.ConnectionEnd",encode(e,t=Kd.BinaryWriter.create()){e.clientId!==""&&t.uint32(10).string(e.clientId);for(let r of e.versions)oa.Version.encode(r,t.uint32(18).fork()).ldelim();return e.state!==0&&t.uint32(24).int32(e.state),e.counterparty!==void 0&&oa.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(40).uint64(e.delayPeriod),t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=F8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.versions.push(oa.Version.decode(r,r.uint32()));break;case 3:n.state=r.int32();break;case 4:n.counterparty=oa.Counterparty.decode(r,r.uint32());break;case 5:n.delayPeriod=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=F8e();return(0,sp.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),Array.isArray(e?.versions)&&(t.versions=e.versions.map(r=>oa.Version.fromJSON(r))),(0,sp.isSet)(e.state)&&(t.state=z8e(e.state)),(0,sp.isSet)(e.counterparty)&&(t.counterparty=oa.Counterparty.fromJSON(e.counterparty)),(0,sp.isSet)(e.delayPeriod)&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.versions?t.versions=e.versions.map(r=>r?oa.Version.toJSON(r):void 0):t.versions=[],e.state!==void 0&&(t.state=K8e(e.state)),e.counterparty!==void 0&&(t.counterparty=e.counterparty?oa.Counterparty.toJSON(e.counterparty):void 0),e.delayPeriod!==void 0&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),t},fromPartial(e){let t=F8e();return t.clientId=e.clientId??"",t.versions=e.versions?.map(r=>oa.Version.fromPartial(r))||[],t.state=e.state??0,e.counterparty!==void 0&&e.counterparty!==null&&(t.counterparty=oa.Counterparty.fromPartial(e.counterparty)),e.delayPeriod!==void 0&&e.delayPeriod!==null&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t}};function Q8e(){return{id:"",clientId:"",versions:[],state:0,counterparty:oa.Counterparty.fromPartial({}),delayPeriod:BigInt(0)}}oa.IdentifiedConnection={typeUrl:"/ibc.core.connection.v1.IdentifiedConnection",encode(e,t=Kd.BinaryWriter.create()){e.id!==""&&t.uint32(10).string(e.id),e.clientId!==""&&t.uint32(18).string(e.clientId);for(let r of e.versions)oa.Version.encode(r,t.uint32(26).fork()).ldelim();return e.state!==0&&t.uint32(32).int32(e.state),e.counterparty!==void 0&&oa.Counterparty.encode(e.counterparty,t.uint32(42).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(48).uint64(e.delayPeriod),t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Q8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.id=r.string();break;case 2:n.clientId=r.string();break;case 3:n.versions.push(oa.Version.decode(r,r.uint32()));break;case 4:n.state=r.int32();break;case 5:n.counterparty=oa.Counterparty.decode(r,r.uint32());break;case 6:n.delayPeriod=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Q8e();return(0,sp.isSet)(e.id)&&(t.id=String(e.id)),(0,sp.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),Array.isArray(e?.versions)&&(t.versions=e.versions.map(r=>oa.Version.fromJSON(r))),(0,sp.isSet)(e.state)&&(t.state=z8e(e.state)),(0,sp.isSet)(e.counterparty)&&(t.counterparty=oa.Counterparty.fromJSON(e.counterparty)),(0,sp.isSet)(e.delayPeriod)&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t},toJSON(e){let t={};return e.id!==void 0&&(t.id=e.id),e.clientId!==void 0&&(t.clientId=e.clientId),e.versions?t.versions=e.versions.map(r=>r?oa.Version.toJSON(r):void 0):t.versions=[],e.state!==void 0&&(t.state=K8e(e.state)),e.counterparty!==void 0&&(t.counterparty=e.counterparty?oa.Counterparty.toJSON(e.counterparty):void 0),e.delayPeriod!==void 0&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),t},fromPartial(e){let t=Q8e();return t.id=e.id??"",t.clientId=e.clientId??"",t.versions=e.versions?.map(r=>oa.Version.fromPartial(r))||[],t.state=e.state??0,e.counterparty!==void 0&&e.counterparty!==null&&(t.counterparty=oa.Counterparty.fromPartial(e.counterparty)),e.delayPeriod!==void 0&&e.delayPeriod!==null&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t}};function H8e(){return{clientId:"",connectionId:"",prefix:A9.MerklePrefix.fromPartial({})}}oa.Counterparty={typeUrl:"/ibc.core.connection.v1.Counterparty",encode(e,t=Kd.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.connectionId!==""&&t.uint32(18).string(e.connectionId),e.prefix!==void 0&&A9.MerklePrefix.encode(e.prefix,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=H8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.connectionId=r.string();break;case 3:n.prefix=A9.MerklePrefix.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=H8e();return(0,sp.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,sp.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,sp.isSet)(e.prefix)&&(t.prefix=A9.MerklePrefix.fromJSON(e.prefix)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.connectionId!==void 0&&(t.connectionId=e.connectionId),e.prefix!==void 0&&(t.prefix=e.prefix?A9.MerklePrefix.toJSON(e.prefix):void 0),t},fromPartial(e){let t=H8e();return t.clientId=e.clientId??"",t.connectionId=e.connectionId??"",e.prefix!==void 0&&e.prefix!==null&&(t.prefix=A9.MerklePrefix.fromPartial(e.prefix)),t}};function G8e(){return{paths:[]}}oa.ClientPaths={typeUrl:"/ibc.core.connection.v1.ClientPaths",encode(e,t=Kd.BinaryWriter.create()){for(let r of e.paths)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=G8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.paths.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=G8e();return Array.isArray(e?.paths)&&(t.paths=e.paths.map(r=>String(r))),t},toJSON(e){let t={};return e.paths?t.paths=e.paths.map(r=>r):t.paths=[],t},fromPartial(e){let t=G8e();return t.paths=e.paths?.map(r=>r)||[],t}};function q8e(){return{clientId:"",paths:[]}}oa.ConnectionPaths={typeUrl:"/ibc.core.connection.v1.ConnectionPaths",encode(e,t=Kd.BinaryWriter.create()){e.clientId!==""&&t.uint32(10).string(e.clientId);for(let r of e.paths)t.uint32(18).string(r);return t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=q8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.paths.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=q8e();return(0,sp.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),Array.isArray(e?.paths)&&(t.paths=e.paths.map(r=>String(r))),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.paths?t.paths=e.paths.map(r=>r):t.paths=[],t},fromPartial(e){let t=q8e();return t.clientId=e.clientId??"",t.paths=e.paths?.map(r=>r)||[],t}};function V8e(){return{identifier:"",features:[]}}oa.Version={typeUrl:"/ibc.core.connection.v1.Version",encode(e,t=Kd.BinaryWriter.create()){e.identifier!==""&&t.uint32(10).string(e.identifier);for(let r of e.features)t.uint32(18).string(r);return t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=V8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.identifier=r.string();break;case 2:n.features.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=V8e();return(0,sp.isSet)(e.identifier)&&(t.identifier=String(e.identifier)),Array.isArray(e?.features)&&(t.features=e.features.map(r=>String(r))),t},toJSON(e){let t={};return e.identifier!==void 0&&(t.identifier=e.identifier),e.features?t.features=e.features.map(r=>r):t.features=[],t},fromPartial(e){let t=V8e();return t.identifier=e.identifier??"",t.features=e.features?.map(r=>r)||[],t}};function J8e(){return{maxExpectedTimePerBlock:BigInt(0)}}oa.Params={typeUrl:"/ibc.core.connection.v1.Params",encode(e,t=Kd.BinaryWriter.create()){return e.maxExpectedTimePerBlock!==BigInt(0)&&t.uint32(8).uint64(e.maxExpectedTimePerBlock),t},decode(e,t){let r=e instanceof Kd.BinaryReader?e:new Kd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=J8e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.maxExpectedTimePerBlock=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=J8e();return(0,sp.isSet)(e.maxExpectedTimePerBlock)&&(t.maxExpectedTimePerBlock=BigInt(e.maxExpectedTimePerBlock.toString())),t},toJSON(e){let t={};return e.maxExpectedTimePerBlock!==void 0&&(t.maxExpectedTimePerBlock=(e.maxExpectedTimePerBlock||BigInt(0)).toString()),t},fromPartial(e){let t=J8e();return e.maxExpectedTimePerBlock!==void 0&&e.maxExpectedTimePerBlock!==null&&(t.maxExpectedTimePerBlock=BigInt(e.maxExpectedTimePerBlock.toString())),t}}});var Xmt=ir(Qc=>{"use strict";J();K();z();Object.defineProperty(Qc,"__esModule",{value:!0});Qc.MsgClientImpl=Qc.MsgConnectionOpenConfirmResponse=Qc.MsgConnectionOpenConfirm=Qc.MsgConnectionOpenAckResponse=Qc.MsgConnectionOpenAck=Qc.MsgConnectionOpenTryResponse=Qc.MsgConnectionOpenTry=Qc.MsgConnectionOpenInitResponse=Qc.MsgConnectionOpenInit=Qc.protobufPackage=void 0;var Fu=$8e(),UE=ru(),Fc=NS(),Ru=Qi(),Go=Hi();Qc.protobufPackage="ibc.core.connection.v1";function Y8e(){return{clientId:"",counterparty:Fu.Counterparty.fromPartial({}),version:void 0,delayPeriod:BigInt(0),signer:""}}Qc.MsgConnectionOpenInit={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",encode(e,t=Ru.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.counterparty!==void 0&&Fu.Counterparty.encode(e.counterparty,t.uint32(18).fork()).ldelim(),e.version!==void 0&&Fu.Version.encode(e.version,t.uint32(26).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(32).uint64(e.delayPeriod),e.signer!==""&&t.uint32(42).string(e.signer),t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Y8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.counterparty=Fu.Counterparty.decode(r,r.uint32());break;case 3:n.version=Fu.Version.decode(r,r.uint32());break;case 4:n.delayPeriod=r.uint64();break;case 5:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Y8e();return(0,Go.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Go.isSet)(e.counterparty)&&(t.counterparty=Fu.Counterparty.fromJSON(e.counterparty)),(0,Go.isSet)(e.version)&&(t.version=Fu.Version.fromJSON(e.version)),(0,Go.isSet)(e.delayPeriod)&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),(0,Go.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.counterparty!==void 0&&(t.counterparty=e.counterparty?Fu.Counterparty.toJSON(e.counterparty):void 0),e.version!==void 0&&(t.version=e.version?Fu.Version.toJSON(e.version):void 0),e.delayPeriod!==void 0&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=Y8e();return t.clientId=e.clientId??"",e.counterparty!==void 0&&e.counterparty!==null&&(t.counterparty=Fu.Counterparty.fromPartial(e.counterparty)),e.version!==void 0&&e.version!==null&&(t.version=Fu.Version.fromPartial(e.version)),e.delayPeriod!==void 0&&e.delayPeriod!==null&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t.signer=e.signer??"",t}};function W8e(){return{}}Qc.MsgConnectionOpenInitResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInitResponse",encode(e,t=Ru.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=W8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return W8e()},toJSON(e){return{}},fromPartial(e){return W8e()}};function X8e(){return{clientId:"",previousConnectionId:"",clientState:void 0,counterparty:Fu.Counterparty.fromPartial({}),delayPeriod:BigInt(0),counterpartyVersions:[],proofHeight:Fc.Height.fromPartial({}),proofInit:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:Fc.Height.fromPartial({}),signer:"",hostConsensusStateProof:new Uint8Array}}Qc.MsgConnectionOpenTry={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",encode(e,t=Ru.BinaryWriter.create()){e.clientId!==""&&t.uint32(10).string(e.clientId),e.previousConnectionId!==""&&t.uint32(18).string(e.previousConnectionId),e.clientState!==void 0&&UE.Any.encode(e.clientState,t.uint32(26).fork()).ldelim(),e.counterparty!==void 0&&Fu.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(40).uint64(e.delayPeriod);for(let r of e.counterpartyVersions)Fu.Version.encode(r,t.uint32(50).fork()).ldelim();return e.proofHeight!==void 0&&Fc.Height.encode(e.proofHeight,t.uint32(58).fork()).ldelim(),e.proofInit.length!==0&&t.uint32(66).bytes(e.proofInit),e.proofClient.length!==0&&t.uint32(74).bytes(e.proofClient),e.proofConsensus.length!==0&&t.uint32(82).bytes(e.proofConsensus),e.consensusHeight!==void 0&&Fc.Height.encode(e.consensusHeight,t.uint32(90).fork()).ldelim(),e.signer!==""&&t.uint32(98).string(e.signer),e.hostConsensusStateProof.length!==0&&t.uint32(106).bytes(e.hostConsensusStateProof),t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=X8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.previousConnectionId=r.string();break;case 3:n.clientState=UE.Any.decode(r,r.uint32());break;case 4:n.counterparty=Fu.Counterparty.decode(r,r.uint32());break;case 5:n.delayPeriod=r.uint64();break;case 6:n.counterpartyVersions.push(Fu.Version.decode(r,r.uint32()));break;case 7:n.proofHeight=Fc.Height.decode(r,r.uint32());break;case 8:n.proofInit=r.bytes();break;case 9:n.proofClient=r.bytes();break;case 10:n.proofConsensus=r.bytes();break;case 11:n.consensusHeight=Fc.Height.decode(r,r.uint32());break;case 12:n.signer=r.string();break;case 13:n.hostConsensusStateProof=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=X8e();return(0,Go.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Go.isSet)(e.previousConnectionId)&&(t.previousConnectionId=String(e.previousConnectionId)),(0,Go.isSet)(e.clientState)&&(t.clientState=UE.Any.fromJSON(e.clientState)),(0,Go.isSet)(e.counterparty)&&(t.counterparty=Fu.Counterparty.fromJSON(e.counterparty)),(0,Go.isSet)(e.delayPeriod)&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),Array.isArray(e?.counterpartyVersions)&&(t.counterpartyVersions=e.counterpartyVersions.map(r=>Fu.Version.fromJSON(r))),(0,Go.isSet)(e.proofHeight)&&(t.proofHeight=Fc.Height.fromJSON(e.proofHeight)),(0,Go.isSet)(e.proofInit)&&(t.proofInit=(0,Go.bytesFromBase64)(e.proofInit)),(0,Go.isSet)(e.proofClient)&&(t.proofClient=(0,Go.bytesFromBase64)(e.proofClient)),(0,Go.isSet)(e.proofConsensus)&&(t.proofConsensus=(0,Go.bytesFromBase64)(e.proofConsensus)),(0,Go.isSet)(e.consensusHeight)&&(t.consensusHeight=Fc.Height.fromJSON(e.consensusHeight)),(0,Go.isSet)(e.signer)&&(t.signer=String(e.signer)),(0,Go.isSet)(e.hostConsensusStateProof)&&(t.hostConsensusStateProof=(0,Go.bytesFromBase64)(e.hostConsensusStateProof)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.previousConnectionId!==void 0&&(t.previousConnectionId=e.previousConnectionId),e.clientState!==void 0&&(t.clientState=e.clientState?UE.Any.toJSON(e.clientState):void 0),e.counterparty!==void 0&&(t.counterparty=e.counterparty?Fu.Counterparty.toJSON(e.counterparty):void 0),e.delayPeriod!==void 0&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),e.counterpartyVersions?t.counterpartyVersions=e.counterpartyVersions.map(r=>r?Fu.Version.toJSON(r):void 0):t.counterpartyVersions=[],e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Fc.Height.toJSON(e.proofHeight):void 0),e.proofInit!==void 0&&(t.proofInit=(0,Go.base64FromBytes)(e.proofInit!==void 0?e.proofInit:new Uint8Array)),e.proofClient!==void 0&&(t.proofClient=(0,Go.base64FromBytes)(e.proofClient!==void 0?e.proofClient:new Uint8Array)),e.proofConsensus!==void 0&&(t.proofConsensus=(0,Go.base64FromBytes)(e.proofConsensus!==void 0?e.proofConsensus:new Uint8Array)),e.consensusHeight!==void 0&&(t.consensusHeight=e.consensusHeight?Fc.Height.toJSON(e.consensusHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),e.hostConsensusStateProof!==void 0&&(t.hostConsensusStateProof=(0,Go.base64FromBytes)(e.hostConsensusStateProof!==void 0?e.hostConsensusStateProof:new Uint8Array)),t},fromPartial(e){let t=X8e();return t.clientId=e.clientId??"",t.previousConnectionId=e.previousConnectionId??"",e.clientState!==void 0&&e.clientState!==null&&(t.clientState=UE.Any.fromPartial(e.clientState)),e.counterparty!==void 0&&e.counterparty!==null&&(t.counterparty=Fu.Counterparty.fromPartial(e.counterparty)),e.delayPeriod!==void 0&&e.delayPeriod!==null&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t.counterpartyVersions=e.counterpartyVersions?.map(r=>Fu.Version.fromPartial(r))||[],e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Fc.Height.fromPartial(e.proofHeight)),t.proofInit=e.proofInit??new Uint8Array,t.proofClient=e.proofClient??new Uint8Array,t.proofConsensus=e.proofConsensus??new Uint8Array,e.consensusHeight!==void 0&&e.consensusHeight!==null&&(t.consensusHeight=Fc.Height.fromPartial(e.consensusHeight)),t.signer=e.signer??"",t.hostConsensusStateProof=e.hostConsensusStateProof??new Uint8Array,t}};function Z8e(){return{}}Qc.MsgConnectionOpenTryResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTryResponse",encode(e,t=Ru.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Z8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Z8e()},toJSON(e){return{}},fromPartial(e){return Z8e()}};function j8e(){return{connectionId:"",counterpartyConnectionId:"",version:void 0,clientState:void 0,proofHeight:Fc.Height.fromPartial({}),proofTry:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:Fc.Height.fromPartial({}),signer:"",hostConsensusStateProof:new Uint8Array}}Qc.MsgConnectionOpenAck={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",encode(e,t=Ru.BinaryWriter.create()){return e.connectionId!==""&&t.uint32(10).string(e.connectionId),e.counterpartyConnectionId!==""&&t.uint32(18).string(e.counterpartyConnectionId),e.version!==void 0&&Fu.Version.encode(e.version,t.uint32(26).fork()).ldelim(),e.clientState!==void 0&&UE.Any.encode(e.clientState,t.uint32(34).fork()).ldelim(),e.proofHeight!==void 0&&Fc.Height.encode(e.proofHeight,t.uint32(42).fork()).ldelim(),e.proofTry.length!==0&&t.uint32(50).bytes(e.proofTry),e.proofClient.length!==0&&t.uint32(58).bytes(e.proofClient),e.proofConsensus.length!==0&&t.uint32(66).bytes(e.proofConsensus),e.consensusHeight!==void 0&&Fc.Height.encode(e.consensusHeight,t.uint32(74).fork()).ldelim(),e.signer!==""&&t.uint32(82).string(e.signer),e.hostConsensusStateProof.length!==0&&t.uint32(90).bytes(e.hostConsensusStateProof),t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=j8e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connectionId=r.string();break;case 2:n.counterpartyConnectionId=r.string();break;case 3:n.version=Fu.Version.decode(r,r.uint32());break;case 4:n.clientState=UE.Any.decode(r,r.uint32());break;case 5:n.proofHeight=Fc.Height.decode(r,r.uint32());break;case 6:n.proofTry=r.bytes();break;case 7:n.proofClient=r.bytes();break;case 8:n.proofConsensus=r.bytes();break;case 9:n.consensusHeight=Fc.Height.decode(r,r.uint32());break;case 10:n.signer=r.string();break;case 11:n.hostConsensusStateProof=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=j8e();return(0,Go.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,Go.isSet)(e.counterpartyConnectionId)&&(t.counterpartyConnectionId=String(e.counterpartyConnectionId)),(0,Go.isSet)(e.version)&&(t.version=Fu.Version.fromJSON(e.version)),(0,Go.isSet)(e.clientState)&&(t.clientState=UE.Any.fromJSON(e.clientState)),(0,Go.isSet)(e.proofHeight)&&(t.proofHeight=Fc.Height.fromJSON(e.proofHeight)),(0,Go.isSet)(e.proofTry)&&(t.proofTry=(0,Go.bytesFromBase64)(e.proofTry)),(0,Go.isSet)(e.proofClient)&&(t.proofClient=(0,Go.bytesFromBase64)(e.proofClient)),(0,Go.isSet)(e.proofConsensus)&&(t.proofConsensus=(0,Go.bytesFromBase64)(e.proofConsensus)),(0,Go.isSet)(e.consensusHeight)&&(t.consensusHeight=Fc.Height.fromJSON(e.consensusHeight)),(0,Go.isSet)(e.signer)&&(t.signer=String(e.signer)),(0,Go.isSet)(e.hostConsensusStateProof)&&(t.hostConsensusStateProof=(0,Go.bytesFromBase64)(e.hostConsensusStateProof)),t},toJSON(e){let t={};return e.connectionId!==void 0&&(t.connectionId=e.connectionId),e.counterpartyConnectionId!==void 0&&(t.counterpartyConnectionId=e.counterpartyConnectionId),e.version!==void 0&&(t.version=e.version?Fu.Version.toJSON(e.version):void 0),e.clientState!==void 0&&(t.clientState=e.clientState?UE.Any.toJSON(e.clientState):void 0),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Fc.Height.toJSON(e.proofHeight):void 0),e.proofTry!==void 0&&(t.proofTry=(0,Go.base64FromBytes)(e.proofTry!==void 0?e.proofTry:new Uint8Array)),e.proofClient!==void 0&&(t.proofClient=(0,Go.base64FromBytes)(e.proofClient!==void 0?e.proofClient:new Uint8Array)),e.proofConsensus!==void 0&&(t.proofConsensus=(0,Go.base64FromBytes)(e.proofConsensus!==void 0?e.proofConsensus:new Uint8Array)),e.consensusHeight!==void 0&&(t.consensusHeight=e.consensusHeight?Fc.Height.toJSON(e.consensusHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),e.hostConsensusStateProof!==void 0&&(t.hostConsensusStateProof=(0,Go.base64FromBytes)(e.hostConsensusStateProof!==void 0?e.hostConsensusStateProof:new Uint8Array)),t},fromPartial(e){let t=j8e();return t.connectionId=e.connectionId??"",t.counterpartyConnectionId=e.counterpartyConnectionId??"",e.version!==void 0&&e.version!==null&&(t.version=Fu.Version.fromPartial(e.version)),e.clientState!==void 0&&e.clientState!==null&&(t.clientState=UE.Any.fromPartial(e.clientState)),e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Fc.Height.fromPartial(e.proofHeight)),t.proofTry=e.proofTry??new Uint8Array,t.proofClient=e.proofClient??new Uint8Array,t.proofConsensus=e.proofConsensus??new Uint8Array,e.consensusHeight!==void 0&&e.consensusHeight!==null&&(t.consensusHeight=Fc.Height.fromPartial(e.consensusHeight)),t.signer=e.signer??"",t.hostConsensusStateProof=e.hostConsensusStateProof??new Uint8Array,t}};function e4e(){return{}}Qc.MsgConnectionOpenAckResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAckResponse",encode(e,t=Ru.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=e4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return e4e()},toJSON(e){return{}},fromPartial(e){return e4e()}};function t4e(){return{connectionId:"",proofAck:new Uint8Array,proofHeight:Fc.Height.fromPartial({}),signer:""}}Qc.MsgConnectionOpenConfirm={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",encode(e,t=Ru.BinaryWriter.create()){return e.connectionId!==""&&t.uint32(10).string(e.connectionId),e.proofAck.length!==0&&t.uint32(18).bytes(e.proofAck),e.proofHeight!==void 0&&Fc.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),e.signer!==""&&t.uint32(34).string(e.signer),t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=t4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connectionId=r.string();break;case 2:n.proofAck=r.bytes();break;case 3:n.proofHeight=Fc.Height.decode(r,r.uint32());break;case 4:n.signer=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=t4e();return(0,Go.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,Go.isSet)(e.proofAck)&&(t.proofAck=(0,Go.bytesFromBase64)(e.proofAck)),(0,Go.isSet)(e.proofHeight)&&(t.proofHeight=Fc.Height.fromJSON(e.proofHeight)),(0,Go.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return e.connectionId!==void 0&&(t.connectionId=e.connectionId),e.proofAck!==void 0&&(t.proofAck=(0,Go.base64FromBytes)(e.proofAck!==void 0?e.proofAck:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Fc.Height.toJSON(e.proofHeight):void 0),e.signer!==void 0&&(t.signer=e.signer),t},fromPartial(e){let t=t4e();return t.connectionId=e.connectionId??"",t.proofAck=e.proofAck??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Fc.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}};function r4e(){return{}}Qc.MsgConnectionOpenConfirmResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse",encode(e,t=Ru.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Ru.BinaryReader?e:new Ru.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=r4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return r4e()},toJSON(e){return{}},fromPartial(e){return r4e()}};var n4e=class{constructor(t){this.rpc=t,this.ConnectionOpenInit=this.ConnectionOpenInit.bind(this),this.ConnectionOpenTry=this.ConnectionOpenTry.bind(this),this.ConnectionOpenAck=this.ConnectionOpenAck.bind(this),this.ConnectionOpenConfirm=this.ConnectionOpenConfirm.bind(this)}ConnectionOpenInit(t){let r=Qc.MsgConnectionOpenInit.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",r).then(n=>Qc.MsgConnectionOpenInitResponse.decode(new Ru.BinaryReader(n)))}ConnectionOpenTry(t){let r=Qc.MsgConnectionOpenTry.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",r).then(n=>Qc.MsgConnectionOpenTryResponse.decode(new Ru.BinaryReader(n)))}ConnectionOpenAck(t){let r=Qc.MsgConnectionOpenAck.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",r).then(n=>Qc.MsgConnectionOpenAckResponse.decode(new Ru.BinaryReader(n)))}ConnectionOpenConfirm(t){let r=Qc.MsgConnectionOpenConfirm.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",r).then(n=>Qc.MsgConnectionOpenConfirmResponse.decode(new Ru.BinaryReader(n)))}};Qc.MsgClientImpl=n4e});var Zmt=ir(p9=>{"use strict";J();K();z();Object.defineProperty(p9,"__esModule",{value:!0});p9.isMsgTransferEncodeObject=p9.ibcTypes=void 0;var Wpn=Xee(),FE=Kmt(),jee=$mt(),ete=Xmt();p9.ibcTypes=[["/ibc.applications.transfer.v1.MsgTransfer",Wpn.MsgTransfer],["/ibc.core.channel.v1.MsgAcknowledgement",FE.MsgAcknowledgement],["/ibc.core.channel.v1.MsgChannelCloseConfirm",FE.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",FE.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelOpenAck",FE.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",FE.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelOpenInit",FE.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",FE.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgRecvPacket",FE.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",FE.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",FE.MsgTimeoutOnClose],["/ibc.core.client.v1.MsgCreateClient",jee.MsgCreateClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",jee.MsgSubmitMisbehaviour],["/ibc.core.client.v1.MsgUpdateClient",jee.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",jee.MsgUpgradeClient],["/ibc.core.connection.v1.MsgConnectionOpenAck",ete.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",ete.MsgConnectionOpenConfirm],["/ibc.core.connection.v1.MsgConnectionOpenInit",ete.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",ete.MsgConnectionOpenTry]];function Xpn(e){return e.typeUrl==="/ibc.applications.transfer.v1.MsgTransfer"}p9.isMsgTransferEncodeObject=Xpn});var jmt=ir(s8=>{"use strict";J();K();z();Object.defineProperty(s8,"__esModule",{value:!0});s8.Params=s8.DenomTrace=s8.protobufPackage=void 0;var g9=Qi(),tte=Hi();s8.protobufPackage="ibc.applications.transfer.v1";function i4e(){return{path:"",baseDenom:""}}s8.DenomTrace={typeUrl:"/ibc.applications.transfer.v1.DenomTrace",encode(e,t=g9.BinaryWriter.create()){return e.path!==""&&t.uint32(10).string(e.path),e.baseDenom!==""&&t.uint32(18).string(e.baseDenom),t},decode(e,t){let r=e instanceof g9.BinaryReader?e:new g9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=i4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.path=r.string();break;case 2:n.baseDenom=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=i4e();return(0,tte.isSet)(e.path)&&(t.path=String(e.path)),(0,tte.isSet)(e.baseDenom)&&(t.baseDenom=String(e.baseDenom)),t},toJSON(e){let t={};return e.path!==void 0&&(t.path=e.path),e.baseDenom!==void 0&&(t.baseDenom=e.baseDenom),t},fromPartial(e){let t=i4e();return t.path=e.path??"",t.baseDenom=e.baseDenom??"",t}};function o4e(){return{sendEnabled:!1,receiveEnabled:!1}}s8.Params={typeUrl:"/ibc.applications.transfer.v1.Params",encode(e,t=g9.BinaryWriter.create()){return e.sendEnabled===!0&&t.uint32(8).bool(e.sendEnabled),e.receiveEnabled===!0&&t.uint32(16).bool(e.receiveEnabled),t},decode(e,t){let r=e instanceof g9.BinaryReader?e:new g9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=o4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.sendEnabled=r.bool();break;case 2:n.receiveEnabled=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=o4e();return(0,tte.isSet)(e.sendEnabled)&&(t.sendEnabled=!!e.sendEnabled),(0,tte.isSet)(e.receiveEnabled)&&(t.receiveEnabled=!!e.receiveEnabled),t},toJSON(e){let t={};return e.sendEnabled!==void 0&&(t.sendEnabled=e.sendEnabled),e.receiveEnabled!==void 0&&(t.receiveEnabled=e.receiveEnabled),t},fromPartial(e){let t=o4e();return t.sendEnabled=e.sendEnabled??!1,t.receiveEnabled=e.receiveEnabled??!1,t}}});var eyt=ir(xs=>{"use strict";J();K();z();Object.defineProperty(xs,"__esModule",{value:!0});xs.QueryClientImpl=xs.QueryEscrowAddressResponse=xs.QueryEscrowAddressRequest=xs.QueryDenomHashResponse=xs.QueryDenomHashRequest=xs.QueryParamsResponse=xs.QueryParamsRequest=xs.QueryDenomTracesResponse=xs.QueryDenomTracesRequest=xs.QueryDenomTraceResponse=xs.QueryDenomTraceRequest=xs.protobufPackage=void 0;var Ry=jA(),cp=jmt(),qs=Qi(),QE=Hi();xs.protobufPackage="ibc.applications.transfer.v1";function a4e(){return{hash:""}}xs.QueryDenomTraceRequest={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTraceRequest",encode(e,t=qs.BinaryWriter.create()){return e.hash!==""&&t.uint32(10).string(e.hash),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=a4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.hash=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=a4e();return(0,QE.isSet)(e.hash)&&(t.hash=String(e.hash)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=e.hash),t},fromPartial(e){let t=a4e();return t.hash=e.hash??"",t}};function s4e(){return{denomTrace:void 0}}xs.QueryDenomTraceResponse={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTraceResponse",encode(e,t=qs.BinaryWriter.create()){return e.denomTrace!==void 0&&cp.DenomTrace.encode(e.denomTrace,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=s4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.denomTrace=cp.DenomTrace.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=s4e();return(0,QE.isSet)(e.denomTrace)&&(t.denomTrace=cp.DenomTrace.fromJSON(e.denomTrace)),t},toJSON(e){let t={};return e.denomTrace!==void 0&&(t.denomTrace=e.denomTrace?cp.DenomTrace.toJSON(e.denomTrace):void 0),t},fromPartial(e){let t=s4e();return e.denomTrace!==void 0&&e.denomTrace!==null&&(t.denomTrace=cp.DenomTrace.fromPartial(e.denomTrace)),t}};function c4e(){return{pagination:void 0}}xs.QueryDenomTracesRequest={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTracesRequest",encode(e,t=qs.BinaryWriter.create()){return e.pagination!==void 0&&Ry.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=c4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=Ry.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=c4e();return(0,QE.isSet)(e.pagination)&&(t.pagination=Ry.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?Ry.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c4e();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ry.PageRequest.fromPartial(e.pagination)),t}};function u4e(){return{denomTraces:[],pagination:void 0}}xs.QueryDenomTracesResponse={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTracesResponse",encode(e,t=qs.BinaryWriter.create()){for(let r of e.denomTraces)cp.DenomTrace.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ry.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=u4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.denomTraces.push(cp.DenomTrace.decode(r,r.uint32()));break;case 2:n.pagination=Ry.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=u4e();return Array.isArray(e?.denomTraces)&&(t.denomTraces=e.denomTraces.map(r=>cp.DenomTrace.fromJSON(r))),(0,QE.isSet)(e.pagination)&&(t.pagination=Ry.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.denomTraces?t.denomTraces=e.denomTraces.map(r=>r?cp.DenomTrace.toJSON(r):void 0):t.denomTraces=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ry.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u4e();return t.denomTraces=e.denomTraces?.map(r=>cp.DenomTrace.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ry.PageResponse.fromPartial(e.pagination)),t}};function d4e(){return{}}xs.QueryParamsRequest={typeUrl:"/ibc.applications.transfer.v1.QueryParamsRequest",encode(e,t=qs.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=d4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return d4e()},toJSON(e){return{}},fromPartial(e){return d4e()}};function f4e(){return{params:void 0}}xs.QueryParamsResponse={typeUrl:"/ibc.applications.transfer.v1.QueryParamsResponse",encode(e,t=qs.BinaryWriter.create()){return e.params!==void 0&&cp.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=f4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=cp.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=f4e();return(0,QE.isSet)(e.params)&&(t.params=cp.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?cp.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=f4e();return e.params!==void 0&&e.params!==null&&(t.params=cp.Params.fromPartial(e.params)),t}};function l4e(){return{trace:""}}xs.QueryDenomHashRequest={typeUrl:"/ibc.applications.transfer.v1.QueryDenomHashRequest",encode(e,t=qs.BinaryWriter.create()){return e.trace!==""&&t.uint32(10).string(e.trace),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=l4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.trace=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=l4e();return(0,QE.isSet)(e.trace)&&(t.trace=String(e.trace)),t},toJSON(e){let t={};return e.trace!==void 0&&(t.trace=e.trace),t},fromPartial(e){let t=l4e();return t.trace=e.trace??"",t}};function h4e(){return{hash:""}}xs.QueryDenomHashResponse={typeUrl:"/ibc.applications.transfer.v1.QueryDenomHashResponse",encode(e,t=qs.BinaryWriter.create()){return e.hash!==""&&t.uint32(10).string(e.hash),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=h4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.hash=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=h4e();return(0,QE.isSet)(e.hash)&&(t.hash=String(e.hash)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=e.hash),t},fromPartial(e){let t=h4e();return t.hash=e.hash??"",t}};function A4e(){return{portId:"",channelId:""}}xs.QueryEscrowAddressRequest={typeUrl:"/ibc.applications.transfer.v1.QueryEscrowAddressRequest",encode(e,t=qs.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=A4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=A4e();return(0,QE.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,QE.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),t},fromPartial(e){let t=A4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}};function p4e(){return{escrowAddress:""}}xs.QueryEscrowAddressResponse={typeUrl:"/ibc.applications.transfer.v1.QueryEscrowAddressResponse",encode(e,t=qs.BinaryWriter.create()){return e.escrowAddress!==""&&t.uint32(10).string(e.escrowAddress),t},decode(e,t){let r=e instanceof qs.BinaryReader?e:new qs.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=p4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.escrowAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=p4e();return(0,QE.isSet)(e.escrowAddress)&&(t.escrowAddress=String(e.escrowAddress)),t},toJSON(e){let t={};return e.escrowAddress!==void 0&&(t.escrowAddress=e.escrowAddress),t},fromPartial(e){let t=p4e();return t.escrowAddress=e.escrowAddress??"",t}};var g4e=class{constructor(t){this.rpc=t,this.DenomTrace=this.DenomTrace.bind(this),this.DenomTraces=this.DenomTraces.bind(this),this.Params=this.Params.bind(this),this.DenomHash=this.DenomHash.bind(this),this.EscrowAddress=this.EscrowAddress.bind(this)}DenomTrace(t){let r=xs.QueryDenomTraceRequest.encode(t).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTrace",r).then(n=>xs.QueryDenomTraceResponse.decode(new qs.BinaryReader(n)))}DenomTraces(t={pagination:Ry.PageRequest.fromPartial({})}){let r=xs.QueryDenomTracesRequest.encode(t).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTraces",r).then(n=>xs.QueryDenomTracesResponse.decode(new qs.BinaryReader(n)))}Params(t={}){let r=xs.QueryParamsRequest.encode(t).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","Params",r).then(n=>xs.QueryParamsResponse.decode(new qs.BinaryReader(n)))}DenomHash(t){let r=xs.QueryDenomHashRequest.encode(t).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomHash",r).then(n=>xs.QueryDenomHashResponse.decode(new qs.BinaryReader(n)))}EscrowAddress(t){let r=xs.QueryEscrowAddressRequest.encode(t).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","EscrowAddress",r).then(n=>xs.QueryEscrowAddressResponse.decode(new qs.BinaryReader(n)))}};xs.QueryClientImpl=g4e});var tyt=ir(hi=>{"use strict";J();K();z();Object.defineProperty(hi,"__esModule",{value:!0});hi.QueryClientImpl=hi.QueryNextSequenceReceiveResponse=hi.QueryNextSequenceReceiveRequest=hi.QueryUnreceivedAcksResponse=hi.QueryUnreceivedAcksRequest=hi.QueryUnreceivedPacketsResponse=hi.QueryUnreceivedPacketsRequest=hi.QueryPacketAcknowledgementsResponse=hi.QueryPacketAcknowledgementsRequest=hi.QueryPacketAcknowledgementResponse=hi.QueryPacketAcknowledgementRequest=hi.QueryPacketReceiptResponse=hi.QueryPacketReceiptRequest=hi.QueryPacketCommitmentsResponse=hi.QueryPacketCommitmentsRequest=hi.QueryPacketCommitmentResponse=hi.QueryPacketCommitmentRequest=hi.QueryChannelConsensusStateResponse=hi.QueryChannelConsensusStateRequest=hi.QueryChannelClientStateResponse=hi.QueryChannelClientStateRequest=hi.QueryConnectionChannelsResponse=hi.QueryConnectionChannelsRequest=hi.QueryChannelsResponse=hi.QueryChannelsRequest=hi.QueryChannelResponse=hi.QueryChannelRequest=hi.protobufPackage=void 0;var Va=jA(),u0=q3e(),pi=NS(),iQ=ru(),ai=Qi(),_i=Hi();hi.protobufPackage="ibc.core.channel.v1";function _4e(){return{portId:"",channelId:""}}hi.QueryChannelRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),t},fromPartial(e){let t=_4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}};function m4e(){return{channel:void 0,proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryChannelResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",encode(e,t=ai.BinaryWriter.create()){return e.channel!==void 0&&u0.Channel.encode(e.channel,t.uint32(10).fork()).ldelim(),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=m4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.channel=u0.Channel.decode(r,r.uint32());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=m4e();return(0,_i.isSet)(e.channel)&&(t.channel=u0.Channel.fromJSON(e.channel)),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.channel!==void 0&&(t.channel=e.channel?u0.Channel.toJSON(e.channel):void 0),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=m4e();return e.channel!==void 0&&e.channel!==null&&(t.channel=u0.Channel.fromPartial(e.channel)),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};function y4e(){return{pagination:void 0}}hi.QueryChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",encode(e,t=ai.BinaryWriter.create()){return e.pagination!==void 0&&Va.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=y4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=Va.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=y4e();return(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=y4e();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageRequest.fromPartial(e.pagination)),t}};function b4e(){return{channels:[],pagination:void 0,height:pi.Height.fromPartial({})}}hi.QueryChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",encode(e,t=ai.BinaryWriter.create()){for(let r of e.channels)u0.IdentifiedChannel.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Va.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),e.height!==void 0&&pi.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=b4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.channels.push(u0.IdentifiedChannel.decode(r,r.uint32()));break;case 2:n.pagination=Va.PageResponse.decode(r,r.uint32());break;case 3:n.height=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=b4e();return Array.isArray(e?.channels)&&(t.channels=e.channels.map(r=>u0.IdentifiedChannel.fromJSON(r))),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageResponse.fromJSON(e.pagination)),(0,_i.isSet)(e.height)&&(t.height=pi.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.channels?t.channels=e.channels.map(r=>r?u0.IdentifiedChannel.toJSON(r):void 0):t.channels=[],e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageResponse.toJSON(e.pagination):void 0),e.height!==void 0&&(t.height=e.height?pi.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=b4e();return t.channels=e.channels?.map(r=>u0.IdentifiedChannel.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageResponse.fromPartial(e.pagination)),e.height!==void 0&&e.height!==null&&(t.height=pi.Height.fromPartial(e.height)),t}};function E4e(){return{connection:"",pagination:void 0}}hi.QueryConnectionChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",encode(e,t=ai.BinaryWriter.create()){return e.connection!==""&&t.uint32(10).string(e.connection),e.pagination!==void 0&&Va.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=E4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connection=r.string();break;case 2:n.pagination=Va.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=E4e();return(0,_i.isSet)(e.connection)&&(t.connection=String(e.connection)),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.connection!==void 0&&(t.connection=e.connection),e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=E4e();return t.connection=e.connection??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageRequest.fromPartial(e.pagination)),t}};function v4e(){return{channels:[],pagination:void 0,height:pi.Height.fromPartial({})}}hi.QueryConnectionChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",encode(e,t=ai.BinaryWriter.create()){for(let r of e.channels)u0.IdentifiedChannel.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Va.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),e.height!==void 0&&pi.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=v4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.channels.push(u0.IdentifiedChannel.decode(r,r.uint32()));break;case 2:n.pagination=Va.PageResponse.decode(r,r.uint32());break;case 3:n.height=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=v4e();return Array.isArray(e?.channels)&&(t.channels=e.channels.map(r=>u0.IdentifiedChannel.fromJSON(r))),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageResponse.fromJSON(e.pagination)),(0,_i.isSet)(e.height)&&(t.height=pi.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.channels?t.channels=e.channels.map(r=>r?u0.IdentifiedChannel.toJSON(r):void 0):t.channels=[],e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageResponse.toJSON(e.pagination):void 0),e.height!==void 0&&(t.height=e.height?pi.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=v4e();return t.channels=e.channels?.map(r=>u0.IdentifiedChannel.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageResponse.fromPartial(e.pagination)),e.height!==void 0&&e.height!==null&&(t.height=pi.Height.fromPartial(e.height)),t}};function R4e(){return{portId:"",channelId:""}}hi.QueryChannelClientStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=R4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=R4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),t},fromPartial(e){let t=R4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}};function S4e(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryChannelClientStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",encode(e,t=ai.BinaryWriter.create()){return e.identifiedClientState!==void 0&&pi.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=S4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.identifiedClientState=pi.IdentifiedClientState.decode(r,r.uint32());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=S4e();return(0,_i.isSet)(e.identifiedClientState)&&(t.identifiedClientState=pi.IdentifiedClientState.fromJSON(e.identifiedClientState)),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.identifiedClientState!==void 0&&(t.identifiedClientState=e.identifiedClientState?pi.IdentifiedClientState.toJSON(e.identifiedClientState):void 0),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=S4e();return e.identifiedClientState!==void 0&&e.identifiedClientState!==null&&(t.identifiedClientState=pi.IdentifiedClientState.fromPartial(e.identifiedClientState)),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};function I4e(){return{portId:"",channelId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}hi.QueryChannelConsensusStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.revisionNumber!==BigInt(0)&&t.uint32(24).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(32).uint64(e.revisionHeight),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=I4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.revisionNumber=r.uint64();break;case 4:n.revisionHeight=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=I4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,_i.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,_i.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.revisionNumber!==void 0&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),e.revisionHeight!==void 0&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),t},fromPartial(e){let t=I4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.revisionNumber!==void 0&&e.revisionNumber!==null&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),e.revisionHeight!==void 0&&e.revisionHeight!==null&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t}};function C4e(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryChannelConsensusStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",encode(e,t=ai.BinaryWriter.create()){return e.consensusState!==void 0&&iQ.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),e.clientId!==""&&t.uint32(18).string(e.clientId),e.proof.length!==0&&t.uint32(26).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=C4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.consensusState=iQ.Any.decode(r,r.uint32());break;case 2:n.clientId=r.string();break;case 3:n.proof=r.bytes();break;case 4:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=C4e();return(0,_i.isSet)(e.consensusState)&&(t.consensusState=iQ.Any.fromJSON(e.consensusState)),(0,_i.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.consensusState!==void 0&&(t.consensusState=e.consensusState?iQ.Any.toJSON(e.consensusState):void 0),e.clientId!==void 0&&(t.clientId=e.clientId),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=C4e();return e.consensusState!==void 0&&e.consensusState!==null&&(t.consensusState=iQ.Any.fromPartial(e.consensusState)),t.clientId=e.clientId??"",t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};function w4e(){return{portId:"",channelId:"",sequence:BigInt(0)}}hi.QueryPacketCommitmentRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=w4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=w4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,_i.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=w4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function O4e(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryPacketCommitmentResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",encode(e,t=ai.BinaryWriter.create()){return e.commitment.length!==0&&t.uint32(10).bytes(e.commitment),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=O4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.commitment=r.bytes();break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=O4e();return(0,_i.isSet)(e.commitment)&&(t.commitment=(0,_i.bytesFromBase64)(e.commitment)),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.commitment!==void 0&&(t.commitment=(0,_i.base64FromBytes)(e.commitment!==void 0?e.commitment:new Uint8Array)),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=O4e();return t.commitment=e.commitment??new Uint8Array,t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};function N4e(){return{portId:"",channelId:"",pagination:void 0}}hi.QueryPacketCommitmentsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.pagination!==void 0&&Va.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=N4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.pagination=Va.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=N4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=N4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageRequest.fromPartial(e.pagination)),t}};function x4e(){return{commitments:[],pagination:void 0,height:pi.Height.fromPartial({})}}hi.QueryPacketCommitmentsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",encode(e,t=ai.BinaryWriter.create()){for(let r of e.commitments)u0.PacketState.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Va.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),e.height!==void 0&&pi.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=x4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.commitments.push(u0.PacketState.decode(r,r.uint32()));break;case 2:n.pagination=Va.PageResponse.decode(r,r.uint32());break;case 3:n.height=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=x4e();return Array.isArray(e?.commitments)&&(t.commitments=e.commitments.map(r=>u0.PacketState.fromJSON(r))),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageResponse.fromJSON(e.pagination)),(0,_i.isSet)(e.height)&&(t.height=pi.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.commitments?t.commitments=e.commitments.map(r=>r?u0.PacketState.toJSON(r):void 0):t.commitments=[],e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageResponse.toJSON(e.pagination):void 0),e.height!==void 0&&(t.height=e.height?pi.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=x4e();return t.commitments=e.commitments?.map(r=>u0.PacketState.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageResponse.fromPartial(e.pagination)),e.height!==void 0&&e.height!==null&&(t.height=pi.Height.fromPartial(e.height)),t}};function T4e(){return{portId:"",channelId:"",sequence:BigInt(0)}}hi.QueryPacketReceiptRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=T4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=T4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,_i.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=T4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function B4e(){return{received:!1,proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryPacketReceiptResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",encode(e,t=ai.BinaryWriter.create()){return e.received===!0&&t.uint32(16).bool(e.received),e.proof.length!==0&&t.uint32(26).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=B4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:n.received=r.bool();break;case 3:n.proof=r.bytes();break;case 4:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=B4e();return(0,_i.isSet)(e.received)&&(t.received=!!e.received),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.received!==void 0&&(t.received=e.received),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=B4e();return t.received=e.received??!1,t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};function M4e(){return{portId:"",channelId:"",sequence:BigInt(0)}}hi.QueryPacketAcknowledgementRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=M4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.sequence=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=M4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,_i.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.sequence!==void 0&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=M4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.sequence!==void 0&&e.sequence!==null&&(t.sequence=BigInt(e.sequence.toString())),t}};function D4e(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryPacketAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",encode(e,t=ai.BinaryWriter.create()){return e.acknowledgement.length!==0&&t.uint32(10).bytes(e.acknowledgement),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=D4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.acknowledgement=r.bytes();break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=D4e();return(0,_i.isSet)(e.acknowledgement)&&(t.acknowledgement=(0,_i.bytesFromBase64)(e.acknowledgement)),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.acknowledgement!==void 0&&(t.acknowledgement=(0,_i.base64FromBytes)(e.acknowledgement!==void 0?e.acknowledgement:new Uint8Array)),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=D4e();return t.acknowledgement=e.acknowledgement??new Uint8Array,t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};function k4e(){return{portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]}}hi.QueryPacketAcknowledgementsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",encode(e,t=ai.BinaryWriter.create()){e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),e.pagination!==void 0&&Va.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t.uint32(34).fork();for(let r of e.packetCommitmentSequences)t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=k4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:n.pagination=Va.PageRequest.decode(r,r.uint32());break;case 4:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.packetCommitmentSequences.push(r.uint64())}else n.packetCommitmentSequences.push(r.uint64());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=k4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageRequest.fromJSON(e.pagination)),Array.isArray(e?.packetCommitmentSequences)&&(t.packetCommitmentSequences=e.packetCommitmentSequences.map(r=>BigInt(r.toString()))),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageRequest.toJSON(e.pagination):void 0),e.packetCommitmentSequences?t.packetCommitmentSequences=e.packetCommitmentSequences.map(r=>(r||BigInt(0)).toString()):t.packetCommitmentSequences=[],t},fromPartial(e){let t=k4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageRequest.fromPartial(e.pagination)),t.packetCommitmentSequences=e.packetCommitmentSequences?.map(r=>BigInt(r.toString()))||[],t}};function P4e(){return{acknowledgements:[],pagination:void 0,height:pi.Height.fromPartial({})}}hi.QueryPacketAcknowledgementsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",encode(e,t=ai.BinaryWriter.create()){for(let r of e.acknowledgements)u0.PacketState.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Va.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),e.height!==void 0&&pi.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=P4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.acknowledgements.push(u0.PacketState.decode(r,r.uint32()));break;case 2:n.pagination=Va.PageResponse.decode(r,r.uint32());break;case 3:n.height=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=P4e();return Array.isArray(e?.acknowledgements)&&(t.acknowledgements=e.acknowledgements.map(r=>u0.PacketState.fromJSON(r))),(0,_i.isSet)(e.pagination)&&(t.pagination=Va.PageResponse.fromJSON(e.pagination)),(0,_i.isSet)(e.height)&&(t.height=pi.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.acknowledgements?t.acknowledgements=e.acknowledgements.map(r=>r?u0.PacketState.toJSON(r):void 0):t.acknowledgements=[],e.pagination!==void 0&&(t.pagination=e.pagination?Va.PageResponse.toJSON(e.pagination):void 0),e.height!==void 0&&(t.height=e.height?pi.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=P4e();return t.acknowledgements=e.acknowledgements?.map(r=>u0.PacketState.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Va.PageResponse.fromPartial(e.pagination)),e.height!==void 0&&e.height!==null&&(t.height=pi.Height.fromPartial(e.height)),t}};function L4e(){return{portId:"",channelId:"",packetCommitmentSequences:[]}}hi.QueryUnreceivedPacketsRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",encode(e,t=ai.BinaryWriter.create()){e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t.uint32(26).fork();for(let r of e.packetCommitmentSequences)t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=L4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.packetCommitmentSequences.push(r.uint64())}else n.packetCommitmentSequences.push(r.uint64());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=L4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),Array.isArray(e?.packetCommitmentSequences)&&(t.packetCommitmentSequences=e.packetCommitmentSequences.map(r=>BigInt(r.toString()))),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.packetCommitmentSequences?t.packetCommitmentSequences=e.packetCommitmentSequences.map(r=>(r||BigInt(0)).toString()):t.packetCommitmentSequences=[],t},fromPartial(e){let t=L4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.packetCommitmentSequences=e.packetCommitmentSequences?.map(r=>BigInt(r.toString()))||[],t}};function U4e(){return{sequences:[],height:pi.Height.fromPartial({})}}hi.QueryUnreceivedPacketsResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",encode(e,t=ai.BinaryWriter.create()){t.uint32(10).fork();for(let r of e.sequences)t.uint64(r);return t.ldelim(),e.height!==void 0&&pi.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=U4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.sequences.push(r.uint64())}else n.sequences.push(r.uint64());break;case 2:n.height=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=U4e();return Array.isArray(e?.sequences)&&(t.sequences=e.sequences.map(r=>BigInt(r.toString()))),(0,_i.isSet)(e.height)&&(t.height=pi.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.sequences?t.sequences=e.sequences.map(r=>(r||BigInt(0)).toString()):t.sequences=[],e.height!==void 0&&(t.height=e.height?pi.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=U4e();return t.sequences=e.sequences?.map(r=>BigInt(r.toString()))||[],e.height!==void 0&&e.height!==null&&(t.height=pi.Height.fromPartial(e.height)),t}};function F4e(){return{portId:"",channelId:"",packetAckSequences:[]}}hi.QueryUnreceivedAcksRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",encode(e,t=ai.BinaryWriter.create()){e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t.uint32(26).fork();for(let r of e.packetAckSequences)t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=F4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;case 3:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.packetAckSequences.push(r.uint64())}else n.packetAckSequences.push(r.uint64());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=F4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),Array.isArray(e?.packetAckSequences)&&(t.packetAckSequences=e.packetAckSequences.map(r=>BigInt(r.toString()))),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),e.packetAckSequences?t.packetAckSequences=e.packetAckSequences.map(r=>(r||BigInt(0)).toString()):t.packetAckSequences=[],t},fromPartial(e){let t=F4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.packetAckSequences=e.packetAckSequences?.map(r=>BigInt(r.toString()))||[],t}};function Q4e(){return{sequences:[],height:pi.Height.fromPartial({})}}hi.QueryUnreceivedAcksResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",encode(e,t=ai.BinaryWriter.create()){t.uint32(10).fork();for(let r of e.sequences)t.uint64(r);return t.ldelim(),e.height!==void 0&&pi.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Q4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.sequences.push(r.uint64())}else n.sequences.push(r.uint64());break;case 2:n.height=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Q4e();return Array.isArray(e?.sequences)&&(t.sequences=e.sequences.map(r=>BigInt(r.toString()))),(0,_i.isSet)(e.height)&&(t.height=pi.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.sequences?t.sequences=e.sequences.map(r=>(r||BigInt(0)).toString()):t.sequences=[],e.height!==void 0&&(t.height=e.height?pi.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=Q4e();return t.sequences=e.sequences?.map(r=>BigInt(r.toString()))||[],e.height!==void 0&&e.height!==null&&(t.height=pi.Height.fromPartial(e.height)),t}};function H4e(){return{portId:"",channelId:""}}hi.QueryNextSequenceReceiveRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",encode(e,t=ai.BinaryWriter.create()){return e.portId!==""&&t.uint32(10).string(e.portId),e.channelId!==""&&t.uint32(18).string(e.channelId),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=H4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.portId=r.string();break;case 2:n.channelId=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=H4e();return(0,_i.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,_i.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return e.portId!==void 0&&(t.portId=e.portId),e.channelId!==void 0&&(t.channelId=e.channelId),t},fromPartial(e){let t=H4e();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}};function G4e(){return{nextSequenceReceive:BigInt(0),proof:new Uint8Array,proofHeight:pi.Height.fromPartial({})}}hi.QueryNextSequenceReceiveResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",encode(e,t=ai.BinaryWriter.create()){return e.nextSequenceReceive!==BigInt(0)&&t.uint32(8).uint64(e.nextSequenceReceive),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&pi.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ai.BinaryReader?e:new ai.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=G4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.nextSequenceReceive=r.uint64();break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=pi.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=G4e();return(0,_i.isSet)(e.nextSequenceReceive)&&(t.nextSequenceReceive=BigInt(e.nextSequenceReceive.toString())),(0,_i.isSet)(e.proof)&&(t.proof=(0,_i.bytesFromBase64)(e.proof)),(0,_i.isSet)(e.proofHeight)&&(t.proofHeight=pi.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.nextSequenceReceive!==void 0&&(t.nextSequenceReceive=(e.nextSequenceReceive||BigInt(0)).toString()),e.proof!==void 0&&(t.proof=(0,_i.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?pi.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=G4e();return e.nextSequenceReceive!==void 0&&e.nextSequenceReceive!==null&&(t.nextSequenceReceive=BigInt(e.nextSequenceReceive.toString())),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=pi.Height.fromPartial(e.proofHeight)),t}};var q4e=class{constructor(t){this.rpc=t,this.Channel=this.Channel.bind(this),this.Channels=this.Channels.bind(this),this.ConnectionChannels=this.ConnectionChannels.bind(this),this.ChannelClientState=this.ChannelClientState.bind(this),this.ChannelConsensusState=this.ChannelConsensusState.bind(this),this.PacketCommitment=this.PacketCommitment.bind(this),this.PacketCommitments=this.PacketCommitments.bind(this),this.PacketReceipt=this.PacketReceipt.bind(this),this.PacketAcknowledgement=this.PacketAcknowledgement.bind(this),this.PacketAcknowledgements=this.PacketAcknowledgements.bind(this),this.UnreceivedPackets=this.UnreceivedPackets.bind(this),this.UnreceivedAcks=this.UnreceivedAcks.bind(this),this.NextSequenceReceive=this.NextSequenceReceive.bind(this)}Channel(t){let r=hi.QueryChannelRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channel",r).then(n=>hi.QueryChannelResponse.decode(new ai.BinaryReader(n)))}Channels(t={pagination:Va.PageRequest.fromPartial({})}){let r=hi.QueryChannelsRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channels",r).then(n=>hi.QueryChannelsResponse.decode(new ai.BinaryReader(n)))}ConnectionChannels(t){let r=hi.QueryConnectionChannelsRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","ConnectionChannels",r).then(n=>hi.QueryConnectionChannelsResponse.decode(new ai.BinaryReader(n)))}ChannelClientState(t){let r=hi.QueryChannelClientStateRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelClientState",r).then(n=>hi.QueryChannelClientStateResponse.decode(new ai.BinaryReader(n)))}ChannelConsensusState(t){let r=hi.QueryChannelConsensusStateRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelConsensusState",r).then(n=>hi.QueryChannelConsensusStateResponse.decode(new ai.BinaryReader(n)))}PacketCommitment(t){let r=hi.QueryPacketCommitmentRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitment",r).then(n=>hi.QueryPacketCommitmentResponse.decode(new ai.BinaryReader(n)))}PacketCommitments(t){let r=hi.QueryPacketCommitmentsRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitments",r).then(n=>hi.QueryPacketCommitmentsResponse.decode(new ai.BinaryReader(n)))}PacketReceipt(t){let r=hi.QueryPacketReceiptRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketReceipt",r).then(n=>hi.QueryPacketReceiptResponse.decode(new ai.BinaryReader(n)))}PacketAcknowledgement(t){let r=hi.QueryPacketAcknowledgementRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgement",r).then(n=>hi.QueryPacketAcknowledgementResponse.decode(new ai.BinaryReader(n)))}PacketAcknowledgements(t){let r=hi.QueryPacketAcknowledgementsRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgements",r).then(n=>hi.QueryPacketAcknowledgementsResponse.decode(new ai.BinaryReader(n)))}UnreceivedPackets(t){let r=hi.QueryUnreceivedPacketsRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedPackets",r).then(n=>hi.QueryUnreceivedPacketsResponse.decode(new ai.BinaryReader(n)))}UnreceivedAcks(t){let r=hi.QueryUnreceivedAcksRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedAcks",r).then(n=>hi.QueryUnreceivedAcksResponse.decode(new ai.BinaryReader(n)))}NextSequenceReceive(t){let r=hi.QueryNextSequenceReceiveRequest.encode(t).finish();return this.rpc.request("ibc.core.channel.v1.Query","NextSequenceReceive",r).then(n=>hi.QueryNextSequenceReceiveResponse.decode(new ai.BinaryReader(n)))}};hi.QueryClientImpl=q4e});var ryt=ir(co=>{"use strict";J();K();z();Object.defineProperty(co,"__esModule",{value:!0});co.QueryClientImpl=co.QueryUpgradedConsensusStateResponse=co.QueryUpgradedConsensusStateRequest=co.QueryUpgradedClientStateResponse=co.QueryUpgradedClientStateRequest=co.QueryClientParamsResponse=co.QueryClientParamsRequest=co.QueryClientStatusResponse=co.QueryClientStatusRequest=co.QueryConsensusStateHeightsResponse=co.QueryConsensusStateHeightsRequest=co.QueryConsensusStatesResponse=co.QueryConsensusStatesRequest=co.QueryConsensusStateResponse=co.QueryConsensusStateRequest=co.QueryClientStatesResponse=co.QueryClientStatesRequest=co.QueryClientStateResponse=co.QueryClientStateRequest=co.protobufPackage=void 0;var Nc=jA(),Rf=ru(),Ac=NS(),ji=Qi(),Su=Hi();co.protobufPackage="ibc.core.client.v1";function V4e(){return{clientId:""}}co.QueryClientStateRequest={typeUrl:"/ibc.core.client.v1.QueryClientStateRequest",encode(e,t=ji.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=V4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.clientId=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=V4e();return(0,Su.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),t},fromPartial(e){let t=V4e();return t.clientId=e.clientId??"",t}};function J4e(){return{clientState:void 0,proof:new Uint8Array,proofHeight:Ac.Height.fromPartial({})}}co.QueryClientStateResponse={typeUrl:"/ibc.core.client.v1.QueryClientStateResponse",encode(e,t=ji.BinaryWriter.create()){return e.clientState!==void 0&&Rf.Any.encode(e.clientState,t.uint32(10).fork()).ldelim(),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&Ac.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=J4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientState=Rf.Any.decode(r,r.uint32());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=Ac.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=J4e();return(0,Su.isSet)(e.clientState)&&(t.clientState=Rf.Any.fromJSON(e.clientState)),(0,Su.isSet)(e.proof)&&(t.proof=(0,Su.bytesFromBase64)(e.proof)),(0,Su.isSet)(e.proofHeight)&&(t.proofHeight=Ac.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.clientState!==void 0&&(t.clientState=e.clientState?Rf.Any.toJSON(e.clientState):void 0),e.proof!==void 0&&(t.proof=(0,Su.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Ac.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=J4e();return e.clientState!==void 0&&e.clientState!==null&&(t.clientState=Rf.Any.fromPartial(e.clientState)),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Ac.Height.fromPartial(e.proofHeight)),t}};function z4e(){return{pagination:void 0}}co.QueryClientStatesRequest={typeUrl:"/ibc.core.client.v1.QueryClientStatesRequest",encode(e,t=ji.BinaryWriter.create()){return e.pagination!==void 0&&Nc.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=z4e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=Nc.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=z4e();return(0,Su.isSet)(e.pagination)&&(t.pagination=Nc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?Nc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=z4e();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Nc.PageRequest.fromPartial(e.pagination)),t}};function K4e(){return{clientStates:[],pagination:void 0}}co.QueryClientStatesResponse={typeUrl:"/ibc.core.client.v1.QueryClientStatesResponse",encode(e,t=ji.BinaryWriter.create()){for(let r of e.clientStates)Ac.IdentifiedClientState.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Nc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=K4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientStates.push(Ac.IdentifiedClientState.decode(r,r.uint32()));break;case 2:n.pagination=Nc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=K4e();return Array.isArray(e?.clientStates)&&(t.clientStates=e.clientStates.map(r=>Ac.IdentifiedClientState.fromJSON(r))),(0,Su.isSet)(e.pagination)&&(t.pagination=Nc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.clientStates?t.clientStates=e.clientStates.map(r=>r?Ac.IdentifiedClientState.toJSON(r):void 0):t.clientStates=[],e.pagination!==void 0&&(t.pagination=e.pagination?Nc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=K4e();return t.clientStates=e.clientStates?.map(r=>Ac.IdentifiedClientState.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Nc.PageResponse.fromPartial(e.pagination)),t}};function $4e(){return{clientId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0),latestHeight:!1}}co.QueryConsensusStateRequest={typeUrl:"/ibc.core.client.v1.QueryConsensusStateRequest",encode(e,t=ji.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.revisionNumber!==BigInt(0)&&t.uint32(16).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(24).uint64(e.revisionHeight),e.latestHeight===!0&&t.uint32(32).bool(e.latestHeight),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.revisionNumber=r.uint64();break;case 3:n.revisionHeight=r.uint64();break;case 4:n.latestHeight=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=$4e();return(0,Su.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Su.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,Su.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),(0,Su.isSet)(e.latestHeight)&&(t.latestHeight=!!e.latestHeight),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.revisionNumber!==void 0&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),e.revisionHeight!==void 0&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),e.latestHeight!==void 0&&(t.latestHeight=e.latestHeight),t},fromPartial(e){let t=$4e();return t.clientId=e.clientId??"",e.revisionNumber!==void 0&&e.revisionNumber!==null&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),e.revisionHeight!==void 0&&e.revisionHeight!==null&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t.latestHeight=e.latestHeight??!1,t}};function Y4e(){return{consensusState:void 0,proof:new Uint8Array,proofHeight:Ac.Height.fromPartial({})}}co.QueryConsensusStateResponse={typeUrl:"/ibc.core.client.v1.QueryConsensusStateResponse",encode(e,t=ji.BinaryWriter.create()){return e.consensusState!==void 0&&Rf.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&Ac.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Y4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.consensusState=Rf.Any.decode(r,r.uint32());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=Ac.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Y4e();return(0,Su.isSet)(e.consensusState)&&(t.consensusState=Rf.Any.fromJSON(e.consensusState)),(0,Su.isSet)(e.proof)&&(t.proof=(0,Su.bytesFromBase64)(e.proof)),(0,Su.isSet)(e.proofHeight)&&(t.proofHeight=Ac.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.consensusState!==void 0&&(t.consensusState=e.consensusState?Rf.Any.toJSON(e.consensusState):void 0),e.proof!==void 0&&(t.proof=(0,Su.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?Ac.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=Y4e();return e.consensusState!==void 0&&e.consensusState!==null&&(t.consensusState=Rf.Any.fromPartial(e.consensusState)),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=Ac.Height.fromPartial(e.proofHeight)),t}};function W4e(){return{clientId:"",pagination:void 0}}co.QueryConsensusStatesRequest={typeUrl:"/ibc.core.client.v1.QueryConsensusStatesRequest",encode(e,t=ji.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.pagination!==void 0&&Nc.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=W4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.pagination=Nc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=W4e();return(0,Su.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Su.isSet)(e.pagination)&&(t.pagination=Nc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.pagination!==void 0&&(t.pagination=e.pagination?Nc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=W4e();return t.clientId=e.clientId??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Nc.PageRequest.fromPartial(e.pagination)),t}};function X4e(){return{consensusStates:[],pagination:void 0}}co.QueryConsensusStatesResponse={typeUrl:"/ibc.core.client.v1.QueryConsensusStatesResponse",encode(e,t=ji.BinaryWriter.create()){for(let r of e.consensusStates)Ac.ConsensusStateWithHeight.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Nc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=X4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.consensusStates.push(Ac.ConsensusStateWithHeight.decode(r,r.uint32()));break;case 2:n.pagination=Nc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=X4e();return Array.isArray(e?.consensusStates)&&(t.consensusStates=e.consensusStates.map(r=>Ac.ConsensusStateWithHeight.fromJSON(r))),(0,Su.isSet)(e.pagination)&&(t.pagination=Nc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.consensusStates?t.consensusStates=e.consensusStates.map(r=>r?Ac.ConsensusStateWithHeight.toJSON(r):void 0):t.consensusStates=[],e.pagination!==void 0&&(t.pagination=e.pagination?Nc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=X4e();return t.consensusStates=e.consensusStates?.map(r=>Ac.ConsensusStateWithHeight.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Nc.PageResponse.fromPartial(e.pagination)),t}};function Z4e(){return{clientId:"",pagination:void 0}}co.QueryConsensusStateHeightsRequest={typeUrl:"/ibc.core.client.v1.QueryConsensusStateHeightsRequest",encode(e,t=ji.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.pagination!==void 0&&Nc.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Z4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.pagination=Nc.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Z4e();return(0,Su.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Su.isSet)(e.pagination)&&(t.pagination=Nc.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.pagination!==void 0&&(t.pagination=e.pagination?Nc.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=Z4e();return t.clientId=e.clientId??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Nc.PageRequest.fromPartial(e.pagination)),t}};function j4e(){return{consensusStateHeights:[],pagination:void 0}}co.QueryConsensusStateHeightsResponse={typeUrl:"/ibc.core.client.v1.QueryConsensusStateHeightsResponse",encode(e,t=ji.BinaryWriter.create()){for(let r of e.consensusStateHeights)Ac.Height.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Nc.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=j4e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.consensusStateHeights.push(Ac.Height.decode(r,r.uint32()));break;case 2:n.pagination=Nc.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=j4e();return Array.isArray(e?.consensusStateHeights)&&(t.consensusStateHeights=e.consensusStateHeights.map(r=>Ac.Height.fromJSON(r))),(0,Su.isSet)(e.pagination)&&(t.pagination=Nc.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.consensusStateHeights?t.consensusStateHeights=e.consensusStateHeights.map(r=>r?Ac.Height.toJSON(r):void 0):t.consensusStateHeights=[],e.pagination!==void 0&&(t.pagination=e.pagination?Nc.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=j4e();return t.consensusStateHeights=e.consensusStateHeights?.map(r=>Ac.Height.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Nc.PageResponse.fromPartial(e.pagination)),t}};function eCe(){return{clientId:""}}co.QueryClientStatusRequest={typeUrl:"/ibc.core.client.v1.QueryClientStatusRequest",encode(e,t=ji.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=eCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.clientId=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=eCe();return(0,Su.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),t},fromPartial(e){let t=eCe();return t.clientId=e.clientId??"",t}};function tCe(){return{status:""}}co.QueryClientStatusResponse={typeUrl:"/ibc.core.client.v1.QueryClientStatusResponse",encode(e,t=ji.BinaryWriter.create()){return e.status!==""&&t.uint32(10).string(e.status),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.status=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=tCe();return(0,Su.isSet)(e.status)&&(t.status=String(e.status)),t},toJSON(e){let t={};return e.status!==void 0&&(t.status=e.status),t},fromPartial(e){let t=tCe();return t.status=e.status??"",t}};function rCe(){return{}}co.QueryClientParamsRequest={typeUrl:"/ibc.core.client.v1.QueryClientParamsRequest",encode(e,t=ji.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return rCe()},toJSON(e){return{}},fromPartial(e){return rCe()}};function nCe(){return{params:void 0}}co.QueryClientParamsResponse={typeUrl:"/ibc.core.client.v1.QueryClientParamsResponse",encode(e,t=ji.BinaryWriter.create()){return e.params!==void 0&&Ac.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=nCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=Ac.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=nCe();return(0,Su.isSet)(e.params)&&(t.params=Ac.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?Ac.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=nCe();return e.params!==void 0&&e.params!==null&&(t.params=Ac.Params.fromPartial(e.params)),t}};function iCe(){return{}}co.QueryUpgradedClientStateRequest={typeUrl:"/ibc.core.client.v1.QueryUpgradedClientStateRequest",encode(e,t=ji.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=iCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return iCe()},toJSON(e){return{}},fromPartial(e){return iCe()}};function oCe(){return{upgradedClientState:void 0}}co.QueryUpgradedClientStateResponse={typeUrl:"/ibc.core.client.v1.QueryUpgradedClientStateResponse",encode(e,t=ji.BinaryWriter.create()){return e.upgradedClientState!==void 0&&Rf.Any.encode(e.upgradedClientState,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=oCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.upgradedClientState=Rf.Any.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=oCe();return(0,Su.isSet)(e.upgradedClientState)&&(t.upgradedClientState=Rf.Any.fromJSON(e.upgradedClientState)),t},toJSON(e){let t={};return e.upgradedClientState!==void 0&&(t.upgradedClientState=e.upgradedClientState?Rf.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=oCe();return e.upgradedClientState!==void 0&&e.upgradedClientState!==null&&(t.upgradedClientState=Rf.Any.fromPartial(e.upgradedClientState)),t}};function aCe(){return{}}co.QueryUpgradedConsensusStateRequest={typeUrl:"/ibc.core.client.v1.QueryUpgradedConsensusStateRequest",encode(e,t=ji.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=aCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return aCe()},toJSON(e){return{}},fromPartial(e){return aCe()}};function sCe(){return{upgradedConsensusState:void 0}}co.QueryUpgradedConsensusStateResponse={typeUrl:"/ibc.core.client.v1.QueryUpgradedConsensusStateResponse",encode(e,t=ji.BinaryWriter.create()){return e.upgradedConsensusState!==void 0&&Rf.Any.encode(e.upgradedConsensusState,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof ji.BinaryReader?e:new ji.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=sCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.upgradedConsensusState=Rf.Any.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=sCe();return(0,Su.isSet)(e.upgradedConsensusState)&&(t.upgradedConsensusState=Rf.Any.fromJSON(e.upgradedConsensusState)),t},toJSON(e){let t={};return e.upgradedConsensusState!==void 0&&(t.upgradedConsensusState=e.upgradedConsensusState?Rf.Any.toJSON(e.upgradedConsensusState):void 0),t},fromPartial(e){let t=sCe();return e.upgradedConsensusState!==void 0&&e.upgradedConsensusState!==null&&(t.upgradedConsensusState=Rf.Any.fromPartial(e.upgradedConsensusState)),t}};var cCe=class{constructor(t){this.rpc=t,this.ClientState=this.ClientState.bind(this),this.ClientStates=this.ClientStates.bind(this),this.ConsensusState=this.ConsensusState.bind(this),this.ConsensusStates=this.ConsensusStates.bind(this),this.ConsensusStateHeights=this.ConsensusStateHeights.bind(this),this.ClientStatus=this.ClientStatus.bind(this),this.ClientParams=this.ClientParams.bind(this),this.UpgradedClientState=this.UpgradedClientState.bind(this),this.UpgradedConsensusState=this.UpgradedConsensusState.bind(this)}ClientState(t){let r=co.QueryClientStateRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientState",r).then(n=>co.QueryClientStateResponse.decode(new ji.BinaryReader(n)))}ClientStates(t={pagination:Nc.PageRequest.fromPartial({})}){let r=co.QueryClientStatesRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStates",r).then(n=>co.QueryClientStatesResponse.decode(new ji.BinaryReader(n)))}ConsensusState(t){let r=co.QueryConsensusStateRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusState",r).then(n=>co.QueryConsensusStateResponse.decode(new ji.BinaryReader(n)))}ConsensusStates(t){let r=co.QueryConsensusStatesRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStates",r).then(n=>co.QueryConsensusStatesResponse.decode(new ji.BinaryReader(n)))}ConsensusStateHeights(t){let r=co.QueryConsensusStateHeightsRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStateHeights",r).then(n=>co.QueryConsensusStateHeightsResponse.decode(new ji.BinaryReader(n)))}ClientStatus(t){let r=co.QueryClientStatusRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStatus",r).then(n=>co.QueryClientStatusResponse.decode(new ji.BinaryReader(n)))}ClientParams(t={}){let r=co.QueryClientParamsRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientParams",r).then(n=>co.QueryClientParamsResponse.decode(new ji.BinaryReader(n)))}UpgradedClientState(t={}){let r=co.QueryUpgradedClientStateRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedClientState",r).then(n=>co.QueryUpgradedClientStateResponse.decode(new ji.BinaryReader(n)))}UpgradedConsensusState(t={}){let r=co.QueryUpgradedConsensusStateRequest.encode(t).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedConsensusState",r).then(n=>co.QueryUpgradedConsensusStateResponse.decode(new ji.BinaryReader(n)))}};co.QueryClientImpl=cCe});var nyt=ir(Na=>{"use strict";J();K();z();Object.defineProperty(Na,"__esModule",{value:!0});Na.QueryClientImpl=Na.QueryConnectionParamsResponse=Na.QueryConnectionParamsRequest=Na.QueryConnectionConsensusStateResponse=Na.QueryConnectionConsensusStateRequest=Na.QueryConnectionClientStateResponse=Na.QueryConnectionClientStateRequest=Na.QueryClientConnectionsResponse=Na.QueryClientConnectionsRequest=Na.QueryConnectionsResponse=Na.QueryConnectionsRequest=Na.QueryConnectionResponse=Na.QueryConnectionRequest=Na.protobufPackage=void 0;var Sy=jA(),HE=$8e(),ja=NS(),oQ=ru(),xa=Qi(),Hc=Hi();Na.protobufPackage="ibc.core.connection.v1";function uCe(){return{connectionId:""}}Na.QueryConnectionRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionRequest",encode(e,t=xa.BinaryWriter.create()){return e.connectionId!==""&&t.uint32(10).string(e.connectionId),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.connectionId=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=uCe();return(0,Hc.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),t},toJSON(e){let t={};return e.connectionId!==void 0&&(t.connectionId=e.connectionId),t},fromPartial(e){let t=uCe();return t.connectionId=e.connectionId??"",t}};function dCe(){return{connection:void 0,proof:new Uint8Array,proofHeight:ja.Height.fromPartial({})}}Na.QueryConnectionResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionResponse",encode(e,t=xa.BinaryWriter.create()){return e.connection!==void 0&&HE.ConnectionEnd.encode(e.connection,t.uint32(10).fork()).ldelim(),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&ja.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connection=HE.ConnectionEnd.decode(r,r.uint32());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=ja.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=dCe();return(0,Hc.isSet)(e.connection)&&(t.connection=HE.ConnectionEnd.fromJSON(e.connection)),(0,Hc.isSet)(e.proof)&&(t.proof=(0,Hc.bytesFromBase64)(e.proof)),(0,Hc.isSet)(e.proofHeight)&&(t.proofHeight=ja.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.connection!==void 0&&(t.connection=e.connection?HE.ConnectionEnd.toJSON(e.connection):void 0),e.proof!==void 0&&(t.proof=(0,Hc.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?ja.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=dCe();return e.connection!==void 0&&e.connection!==null&&(t.connection=HE.ConnectionEnd.fromPartial(e.connection)),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=ja.Height.fromPartial(e.proofHeight)),t}};function fCe(){return{pagination:void 0}}Na.QueryConnectionsRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionsRequest",encode(e,t=xa.BinaryWriter.create()){return e.pagination!==void 0&&Sy.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=Sy.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=fCe();return(0,Hc.isSet)(e.pagination)&&(t.pagination=Sy.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?Sy.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=fCe();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Sy.PageRequest.fromPartial(e.pagination)),t}};function lCe(){return{connections:[],pagination:void 0,height:ja.Height.fromPartial({})}}Na.QueryConnectionsResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionsResponse",encode(e,t=xa.BinaryWriter.create()){for(let r of e.connections)HE.IdentifiedConnection.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Sy.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),e.height!==void 0&&ja.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=lCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connections.push(HE.IdentifiedConnection.decode(r,r.uint32()));break;case 2:n.pagination=Sy.PageResponse.decode(r,r.uint32());break;case 3:n.height=ja.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=lCe();return Array.isArray(e?.connections)&&(t.connections=e.connections.map(r=>HE.IdentifiedConnection.fromJSON(r))),(0,Hc.isSet)(e.pagination)&&(t.pagination=Sy.PageResponse.fromJSON(e.pagination)),(0,Hc.isSet)(e.height)&&(t.height=ja.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.connections?t.connections=e.connections.map(r=>r?HE.IdentifiedConnection.toJSON(r):void 0):t.connections=[],e.pagination!==void 0&&(t.pagination=e.pagination?Sy.PageResponse.toJSON(e.pagination):void 0),e.height!==void 0&&(t.height=e.height?ja.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=lCe();return t.connections=e.connections?.map(r=>HE.IdentifiedConnection.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Sy.PageResponse.fromPartial(e.pagination)),e.height!==void 0&&e.height!==null&&(t.height=ja.Height.fromPartial(e.height)),t}};function hCe(){return{clientId:""}}Na.QueryClientConnectionsRequest={typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsRequest",encode(e,t=xa.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.clientId=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=hCe();return(0,Hc.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),t},fromPartial(e){let t=hCe();return t.clientId=e.clientId??"",t}};function ACe(){return{connectionPaths:[],proof:new Uint8Array,proofHeight:ja.Height.fromPartial({})}}Na.QueryClientConnectionsResponse={typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsResponse",encode(e,t=xa.BinaryWriter.create()){for(let r of e.connectionPaths)t.uint32(10).string(r);return e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&ja.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ACe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connectionPaths.push(r.string());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=ja.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ACe();return Array.isArray(e?.connectionPaths)&&(t.connectionPaths=e.connectionPaths.map(r=>String(r))),(0,Hc.isSet)(e.proof)&&(t.proof=(0,Hc.bytesFromBase64)(e.proof)),(0,Hc.isSet)(e.proofHeight)&&(t.proofHeight=ja.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.connectionPaths?t.connectionPaths=e.connectionPaths.map(r=>r):t.connectionPaths=[],e.proof!==void 0&&(t.proof=(0,Hc.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?ja.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=ACe();return t.connectionPaths=e.connectionPaths?.map(r=>r)||[],t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=ja.Height.fromPartial(e.proofHeight)),t}};function pCe(){return{connectionId:""}}Na.QueryConnectionClientStateRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateRequest",encode(e,t=xa.BinaryWriter.create()){return e.connectionId!==""&&t.uint32(10).string(e.connectionId),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.connectionId=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=pCe();return(0,Hc.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),t},toJSON(e){let t={};return e.connectionId!==void 0&&(t.connectionId=e.connectionId),t},fromPartial(e){let t=pCe();return t.connectionId=e.connectionId??"",t}};function gCe(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:ja.Height.fromPartial({})}}Na.QueryConnectionClientStateResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateResponse",encode(e,t=xa.BinaryWriter.create()){return e.identifiedClientState!==void 0&&ja.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),e.proof.length!==0&&t.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&ja.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=gCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.identifiedClientState=ja.IdentifiedClientState.decode(r,r.uint32());break;case 2:n.proof=r.bytes();break;case 3:n.proofHeight=ja.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=gCe();return(0,Hc.isSet)(e.identifiedClientState)&&(t.identifiedClientState=ja.IdentifiedClientState.fromJSON(e.identifiedClientState)),(0,Hc.isSet)(e.proof)&&(t.proof=(0,Hc.bytesFromBase64)(e.proof)),(0,Hc.isSet)(e.proofHeight)&&(t.proofHeight=ja.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.identifiedClientState!==void 0&&(t.identifiedClientState=e.identifiedClientState?ja.IdentifiedClientState.toJSON(e.identifiedClientState):void 0),e.proof!==void 0&&(t.proof=(0,Hc.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?ja.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=gCe();return e.identifiedClientState!==void 0&&e.identifiedClientState!==null&&(t.identifiedClientState=ja.IdentifiedClientState.fromPartial(e.identifiedClientState)),t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=ja.Height.fromPartial(e.proofHeight)),t}};function _Ce(){return{connectionId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}Na.QueryConnectionConsensusStateRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateRequest",encode(e,t=xa.BinaryWriter.create()){return e.connectionId!==""&&t.uint32(10).string(e.connectionId),e.revisionNumber!==BigInt(0)&&t.uint32(16).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(24).uint64(e.revisionHeight),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_Ce();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.connectionId=r.string();break;case 2:n.revisionNumber=r.uint64();break;case 3:n.revisionHeight=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_Ce();return(0,Hc.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,Hc.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,Hc.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t},toJSON(e){let t={};return e.connectionId!==void 0&&(t.connectionId=e.connectionId),e.revisionNumber!==void 0&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),e.revisionHeight!==void 0&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),t},fromPartial(e){let t=_Ce();return t.connectionId=e.connectionId??"",e.revisionNumber!==void 0&&e.revisionNumber!==null&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),e.revisionHeight!==void 0&&e.revisionHeight!==null&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t}};function mCe(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:ja.Height.fromPartial({})}}Na.QueryConnectionConsensusStateResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateResponse",encode(e,t=xa.BinaryWriter.create()){return e.consensusState!==void 0&&oQ.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),e.clientId!==""&&t.uint32(18).string(e.clientId),e.proof.length!==0&&t.uint32(26).bytes(e.proof),e.proofHeight!==void 0&&ja.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.consensusState=oQ.Any.decode(r,r.uint32());break;case 2:n.clientId=r.string();break;case 3:n.proof=r.bytes();break;case 4:n.proofHeight=ja.Height.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=mCe();return(0,Hc.isSet)(e.consensusState)&&(t.consensusState=oQ.Any.fromJSON(e.consensusState)),(0,Hc.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,Hc.isSet)(e.proof)&&(t.proof=(0,Hc.bytesFromBase64)(e.proof)),(0,Hc.isSet)(e.proofHeight)&&(t.proofHeight=ja.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.consensusState!==void 0&&(t.consensusState=e.consensusState?oQ.Any.toJSON(e.consensusState):void 0),e.clientId!==void 0&&(t.clientId=e.clientId),e.proof!==void 0&&(t.proof=(0,Hc.base64FromBytes)(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(t.proofHeight=e.proofHeight?ja.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=mCe();return e.consensusState!==void 0&&e.consensusState!==null&&(t.consensusState=oQ.Any.fromPartial(e.consensusState)),t.clientId=e.clientId??"",t.proof=e.proof??new Uint8Array,e.proofHeight!==void 0&&e.proofHeight!==null&&(t.proofHeight=ja.Height.fromPartial(e.proofHeight)),t}};function yCe(){return{}}Na.QueryConnectionParamsRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsRequest",encode(e,t=xa.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=yCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return yCe()},toJSON(e){return{}},fromPartial(e){return yCe()}};function bCe(){return{params:void 0}}Na.QueryConnectionParamsResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsResponse",encode(e,t=xa.BinaryWriter.create()){return e.params!==void 0&&ja.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof xa.BinaryReader?e:new xa.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=ja.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=bCe();return(0,Hc.isSet)(e.params)&&(t.params=ja.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?ja.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=bCe();return e.params!==void 0&&e.params!==null&&(t.params=ja.Params.fromPartial(e.params)),t}};var ECe=class{constructor(t){this.rpc=t,this.Connection=this.Connection.bind(this),this.Connections=this.Connections.bind(this),this.ClientConnections=this.ClientConnections.bind(this),this.ConnectionClientState=this.ConnectionClientState.bind(this),this.ConnectionConsensusState=this.ConnectionConsensusState.bind(this),this.ConnectionParams=this.ConnectionParams.bind(this)}Connection(t){let r=Na.QueryConnectionRequest.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connection",r).then(n=>Na.QueryConnectionResponse.decode(new xa.BinaryReader(n)))}Connections(t={pagination:Sy.PageRequest.fromPartial({})}){let r=Na.QueryConnectionsRequest.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connections",r).then(n=>Na.QueryConnectionsResponse.decode(new xa.BinaryReader(n)))}ClientConnections(t){let r=Na.QueryClientConnectionsRequest.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Query","ClientConnections",r).then(n=>Na.QueryClientConnectionsResponse.decode(new xa.BinaryReader(n)))}ConnectionClientState(t){let r=Na.QueryConnectionClientStateRequest.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionClientState",r).then(n=>Na.QueryConnectionClientStateResponse.decode(new xa.BinaryReader(n)))}ConnectionConsensusState(t){let r=Na.QueryConnectionConsensusStateRequest.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionConsensusState",r).then(n=>Na.QueryConnectionConsensusStateResponse.decode(new xa.BinaryReader(n)))}ConnectionParams(t={}){let r=Na.QueryConnectionParamsRequest.encode(t).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionParams",r).then(n=>Na.QueryConnectionParamsResponse.decode(new xa.BinaryReader(n)))}};Na.QueryClientImpl=ECe});var wCe=ir(N0=>{"use strict";J();K();z();Object.defineProperty(N0,"__esModule",{value:!0});N0.ProofOps=N0.ProofOp=N0.DominoOp=N0.ValueOp=N0.Proof=N0.protobufPackage=void 0;var up=Qi(),$d=Hi();N0.protobufPackage="tendermint.crypto";function vCe(){return{total:BigInt(0),index:BigInt(0),leafHash:new Uint8Array,aunts:[]}}N0.Proof={typeUrl:"/tendermint.crypto.Proof",encode(e,t=up.BinaryWriter.create()){e.total!==BigInt(0)&&t.uint32(8).int64(e.total),e.index!==BigInt(0)&&t.uint32(16).int64(e.index),e.leafHash.length!==0&&t.uint32(26).bytes(e.leafHash);for(let r of e.aunts)t.uint32(34).bytes(r);return t},decode(e,t){let r=e instanceof up.BinaryReader?e:new up.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.total=r.int64();break;case 2:n.index=r.int64();break;case 3:n.leafHash=r.bytes();break;case 4:n.aunts.push(r.bytes());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vCe();return(0,$d.isSet)(e.total)&&(t.total=BigInt(e.total.toString())),(0,$d.isSet)(e.index)&&(t.index=BigInt(e.index.toString())),(0,$d.isSet)(e.leafHash)&&(t.leafHash=(0,$d.bytesFromBase64)(e.leafHash)),Array.isArray(e?.aunts)&&(t.aunts=e.aunts.map(r=>(0,$d.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.total!==void 0&&(t.total=(e.total||BigInt(0)).toString()),e.index!==void 0&&(t.index=(e.index||BigInt(0)).toString()),e.leafHash!==void 0&&(t.leafHash=(0,$d.base64FromBytes)(e.leafHash!==void 0?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map(r=>(0,$d.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.aunts=[],t},fromPartial(e){let t=vCe();return e.total!==void 0&&e.total!==null&&(t.total=BigInt(e.total.toString())),e.index!==void 0&&e.index!==null&&(t.index=BigInt(e.index.toString())),t.leafHash=e.leafHash??new Uint8Array,t.aunts=e.aunts?.map(r=>r)||[],t}};function RCe(){return{key:new Uint8Array,proof:void 0}}N0.ValueOp={typeUrl:"/tendermint.crypto.ValueOp",encode(e,t=up.BinaryWriter.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),e.proof!==void 0&&N0.Proof.encode(e.proof,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof up.BinaryReader?e:new up.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=RCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.bytes();break;case 2:n.proof=N0.Proof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=RCe();return(0,$d.isSet)(e.key)&&(t.key=(0,$d.bytesFromBase64)(e.key)),(0,$d.isSet)(e.proof)&&(t.proof=N0.Proof.fromJSON(e.proof)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=(0,$d.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.proof!==void 0&&(t.proof=e.proof?N0.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=RCe();return t.key=e.key??new Uint8Array,e.proof!==void 0&&e.proof!==null&&(t.proof=N0.Proof.fromPartial(e.proof)),t}};function SCe(){return{key:"",input:"",output:""}}N0.DominoOp={typeUrl:"/tendermint.crypto.DominoOp",encode(e,t=up.BinaryWriter.create()){return e.key!==""&&t.uint32(10).string(e.key),e.input!==""&&t.uint32(18).string(e.input),e.output!==""&&t.uint32(26).string(e.output),t},decode(e,t){let r=e instanceof up.BinaryReader?e:new up.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=SCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.string();break;case 2:n.input=r.string();break;case 3:n.output=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=SCe();return(0,$d.isSet)(e.key)&&(t.key=String(e.key)),(0,$d.isSet)(e.input)&&(t.input=String(e.input)),(0,$d.isSet)(e.output)&&(t.output=String(e.output)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=e.key),e.input!==void 0&&(t.input=e.input),e.output!==void 0&&(t.output=e.output),t},fromPartial(e){let t=SCe();return t.key=e.key??"",t.input=e.input??"",t.output=e.output??"",t}};function ICe(){return{type:"",key:new Uint8Array,data:new Uint8Array}}N0.ProofOp={typeUrl:"/tendermint.crypto.ProofOp",encode(e,t=up.BinaryWriter.create()){return e.type!==""&&t.uint32(10).string(e.type),e.key.length!==0&&t.uint32(18).bytes(e.key),e.data.length!==0&&t.uint32(26).bytes(e.data),t},decode(e,t){let r=e instanceof up.BinaryReader?e:new up.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ICe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.type=r.string();break;case 2:n.key=r.bytes();break;case 3:n.data=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ICe();return(0,$d.isSet)(e.type)&&(t.type=String(e.type)),(0,$d.isSet)(e.key)&&(t.key=(0,$d.bytesFromBase64)(e.key)),(0,$d.isSet)(e.data)&&(t.data=(0,$d.bytesFromBase64)(e.data)),t},toJSON(e){let t={};return e.type!==void 0&&(t.type=e.type),e.key!==void 0&&(t.key=(0,$d.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.data!==void 0&&(t.data=(0,$d.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),t},fromPartial(e){let t=ICe();return t.type=e.type??"",t.key=e.key??new Uint8Array,t.data=e.data??new Uint8Array,t}};function CCe(){return{ops:[]}}N0.ProofOps={typeUrl:"/tendermint.crypto.ProofOps",encode(e,t=up.BinaryWriter.create()){for(let r of e.ops)N0.ProofOp.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof up.BinaryReader?e:new up.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=CCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.ops.push(N0.ProofOp.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=CCe();return Array.isArray(e?.ops)&&(t.ops=e.ops.map(r=>N0.ProofOp.fromJSON(r))),t},toJSON(e){let t={};return e.ops?t.ops=e.ops.map(r=>r?N0.ProofOp.toJSON(r):void 0):t.ops=[],t},fromPartial(e){let t=CCe();return t.ops=e.ops?.map(r=>N0.ProofOp.fromPartial(r))||[],t}}});var iyt=ir(c8=>{"use strict";J();K();z();Object.defineProperty(c8,"__esModule",{value:!0});c8.Consensus=c8.App=c8.protobufPackage=void 0;var _9=Qi(),rte=Hi();c8.protobufPackage="tendermint.version";function OCe(){return{protocol:BigInt(0),software:""}}c8.App={typeUrl:"/tendermint.version.App",encode(e,t=_9.BinaryWriter.create()){return e.protocol!==BigInt(0)&&t.uint32(8).uint64(e.protocol),e.software!==""&&t.uint32(18).string(e.software),t},decode(e,t){let r=e instanceof _9.BinaryReader?e:new _9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=OCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.protocol=r.uint64();break;case 2:n.software=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=OCe();return(0,rte.isSet)(e.protocol)&&(t.protocol=BigInt(e.protocol.toString())),(0,rte.isSet)(e.software)&&(t.software=String(e.software)),t},toJSON(e){let t={};return e.protocol!==void 0&&(t.protocol=(e.protocol||BigInt(0)).toString()),e.software!==void 0&&(t.software=e.software),t},fromPartial(e){let t=OCe();return e.protocol!==void 0&&e.protocol!==null&&(t.protocol=BigInt(e.protocol.toString())),t.software=e.software??"",t}};function NCe(){return{block:BigInt(0),app:BigInt(0)}}c8.Consensus={typeUrl:"/tendermint.version.Consensus",encode(e,t=_9.BinaryWriter.create()){return e.block!==BigInt(0)&&t.uint32(8).uint64(e.block),e.app!==BigInt(0)&&t.uint32(16).uint64(e.app),t},decode(e,t){let r=e instanceof _9.BinaryReader?e:new _9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=NCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.block=r.uint64();break;case 2:n.app=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=NCe();return(0,rte.isSet)(e.block)&&(t.block=BigInt(e.block.toString())),(0,rte.isSet)(e.app)&&(t.app=BigInt(e.app.toString())),t},toJSON(e){let t={};return e.block!==void 0&&(t.block=(e.block||BigInt(0)).toString()),e.app!==void 0&&(t.app=(e.app||BigInt(0)).toString()),t},fromPartial(e){let t=NCe();return e.block!==void 0&&e.block!==null&&(t.block=BigInt(e.block.toString())),e.app!==void 0&&e.app!==null&&(t.app=BigInt(e.app.toString())),t}}});var BCe=ir(y9=>{"use strict";J();K();z();Object.defineProperty(y9,"__esModule",{value:!0});y9.PublicKey=y9.protobufPackage=void 0;var xCe=Qi(),m9=Hi();y9.protobufPackage="tendermint.crypto";function TCe(){return{ed25519:void 0,secp256k1:void 0}}y9.PublicKey={typeUrl:"/tendermint.crypto.PublicKey",encode(e,t=xCe.BinaryWriter.create()){return e.ed25519!==void 0&&t.uint32(10).bytes(e.ed25519),e.secp256k1!==void 0&&t.uint32(18).bytes(e.secp256k1),t},decode(e,t){let r=e instanceof xCe.BinaryReader?e:new xCe.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=TCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.ed25519=r.bytes();break;case 2:n.secp256k1=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=TCe();return(0,m9.isSet)(e.ed25519)&&(t.ed25519=(0,m9.bytesFromBase64)(e.ed25519)),(0,m9.isSet)(e.secp256k1)&&(t.secp256k1=(0,m9.bytesFromBase64)(e.secp256k1)),t},toJSON(e){let t={};return e.ed25519!==void 0&&(t.ed25519=e.ed25519!==void 0?(0,m9.base64FromBytes)(e.ed25519):void 0),e.secp256k1!==void 0&&(t.secp256k1=e.secp256k1!==void 0?(0,m9.base64FromBytes)(e.secp256k1):void 0),t},fromPartial(e){let t=TCe();return t.ed25519=e.ed25519??void 0,t.secp256k1=e.secp256k1??void 0,t}}});var nte=ir(Sf=>{"use strict";J();K();z();Object.defineProperty(Sf,"__esModule",{value:!0});Sf.SimpleValidator=Sf.Validator=Sf.ValidatorSet=Sf.protobufPackage=void 0;var Iy=BCe(),TS=Qi(),GE=Hi();Sf.protobufPackage="tendermint.types";function MCe(){return{validators:[],proposer:void 0,totalVotingPower:BigInt(0)}}Sf.ValidatorSet={typeUrl:"/tendermint.types.ValidatorSet",encode(e,t=TS.BinaryWriter.create()){for(let r of e.validators)Sf.Validator.encode(r,t.uint32(10).fork()).ldelim();return e.proposer!==void 0&&Sf.Validator.encode(e.proposer,t.uint32(18).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&t.uint32(24).int64(e.totalVotingPower),t},decode(e,t){let r=e instanceof TS.BinaryReader?e:new TS.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=MCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validators.push(Sf.Validator.decode(r,r.uint32()));break;case 2:n.proposer=Sf.Validator.decode(r,r.uint32());break;case 3:n.totalVotingPower=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=MCe();return Array.isArray(e?.validators)&&(t.validators=e.validators.map(r=>Sf.Validator.fromJSON(r))),(0,GE.isSet)(e.proposer)&&(t.proposer=Sf.Validator.fromJSON(e.proposer)),(0,GE.isSet)(e.totalVotingPower)&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(r=>r?Sf.Validator.toJSON(r):void 0):t.validators=[],e.proposer!==void 0&&(t.proposer=e.proposer?Sf.Validator.toJSON(e.proposer):void 0),e.totalVotingPower!==void 0&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),t},fromPartial(e){let t=MCe();return t.validators=e.validators?.map(r=>Sf.Validator.fromPartial(r))||[],e.proposer!==void 0&&e.proposer!==null&&(t.proposer=Sf.Validator.fromPartial(e.proposer)),e.totalVotingPower!==void 0&&e.totalVotingPower!==null&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),t}};function DCe(){return{address:new Uint8Array,pubKey:Iy.PublicKey.fromPartial({}),votingPower:BigInt(0),proposerPriority:BigInt(0)}}Sf.Validator={typeUrl:"/tendermint.types.Validator",encode(e,t=TS.BinaryWriter.create()){return e.address.length!==0&&t.uint32(10).bytes(e.address),e.pubKey!==void 0&&Iy.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower!==BigInt(0)&&t.uint32(24).int64(e.votingPower),e.proposerPriority!==BigInt(0)&&t.uint32(32).int64(e.proposerPriority),t},decode(e,t){let r=e instanceof TS.BinaryReader?e:new TS.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=DCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.bytes();break;case 2:n.pubKey=Iy.PublicKey.decode(r,r.uint32());break;case 3:n.votingPower=r.int64();break;case 4:n.proposerPriority=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=DCe();return(0,GE.isSet)(e.address)&&(t.address=(0,GE.bytesFromBase64)(e.address)),(0,GE.isSet)(e.pubKey)&&(t.pubKey=Iy.PublicKey.fromJSON(e.pubKey)),(0,GE.isSet)(e.votingPower)&&(t.votingPower=BigInt(e.votingPower.toString())),(0,GE.isSet)(e.proposerPriority)&&(t.proposerPriority=BigInt(e.proposerPriority.toString())),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=(0,GE.base64FromBytes)(e.address!==void 0?e.address:new Uint8Array)),e.pubKey!==void 0&&(t.pubKey=e.pubKey?Iy.PublicKey.toJSON(e.pubKey):void 0),e.votingPower!==void 0&&(t.votingPower=(e.votingPower||BigInt(0)).toString()),e.proposerPriority!==void 0&&(t.proposerPriority=(e.proposerPriority||BigInt(0)).toString()),t},fromPartial(e){let t=DCe();return t.address=e.address??new Uint8Array,e.pubKey!==void 0&&e.pubKey!==null&&(t.pubKey=Iy.PublicKey.fromPartial(e.pubKey)),e.votingPower!==void 0&&e.votingPower!==null&&(t.votingPower=BigInt(e.votingPower.toString())),e.proposerPriority!==void 0&&e.proposerPriority!==null&&(t.proposerPriority=BigInt(e.proposerPriority.toString())),t}};function kCe(){return{pubKey:void 0,votingPower:BigInt(0)}}Sf.SimpleValidator={typeUrl:"/tendermint.types.SimpleValidator",encode(e,t=TS.BinaryWriter.create()){return e.pubKey!==void 0&&Iy.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower!==BigInt(0)&&t.uint32(16).int64(e.votingPower),t},decode(e,t){let r=e instanceof TS.BinaryReader?e:new TS.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.pubKey=Iy.PublicKey.decode(r,r.uint32());break;case 2:n.votingPower=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kCe();return(0,GE.isSet)(e.pubKey)&&(t.pubKey=Iy.PublicKey.fromJSON(e.pubKey)),(0,GE.isSet)(e.votingPower)&&(t.votingPower=BigInt(e.votingPower.toString())),t},toJSON(e){let t={};return e.pubKey!==void 0&&(t.pubKey=e.pubKey?Iy.PublicKey.toJSON(e.pubKey):void 0),e.votingPower!==void 0&&(t.votingPower=(e.votingPower||BigInt(0)).toString()),t},fromPartial(e){let t=kCe();return e.pubKey!==void 0&&e.pubKey!==null&&(t.pubKey=Iy.PublicKey.fromPartial(e.pubKey)),e.votingPower!==void 0&&e.votingPower!==null&&(t.votingPower=BigInt(e.votingPower.toString())),t}}});var C5=ir(Gn=>{"use strict";J();K();z();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.TxProof=Gn.BlockMeta=Gn.LightBlock=Gn.SignedHeader=Gn.Proposal=Gn.CommitSig=Gn.Commit=Gn.Vote=Gn.Data=Gn.Header=Gn.BlockID=Gn.Part=Gn.PartSetHeader=Gn.signedMsgTypeToJSON=Gn.signedMsgTypeFromJSON=Gn.SignedMsgType=Gn.blockIDFlagToJSON=Gn.blockIDFlagFromJSON=Gn.BlockIDFlag=Gn.protobufPackage=void 0;var Cy=wCe(),b9=iyt(),lA=u1(),aQ=nte(),as=Qi(),Jn=Hi();Gn.protobufPackage="tendermint.types";var k2;(function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(k2||(Gn.BlockIDFlag=k2={}));function oyt(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return k2.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return k2.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return k2.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return k2.BLOCK_ID_FLAG_NIL;default:return k2.UNRECOGNIZED}}Gn.blockIDFlagFromJSON=oyt;function ayt(e){switch(e){case k2.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case k2.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case k2.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case k2.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case k2.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Gn.blockIDFlagToJSON=ayt;var P2;(function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(P2||(Gn.SignedMsgType=P2={}));function YCe(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return P2.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return P2.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return P2.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return P2.SIGNED_MSG_TYPE_PROPOSAL;default:return P2.UNRECOGNIZED}}Gn.signedMsgTypeFromJSON=YCe;function WCe(e){switch(e){case P2.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case P2.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case P2.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case P2.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case P2.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Gn.signedMsgTypeToJSON=WCe;function PCe(){return{total:0,hash:new Uint8Array}}Gn.PartSetHeader={typeUrl:"/tendermint.types.PartSetHeader",encode(e,t=as.BinaryWriter.create()){return e.total!==0&&t.uint32(8).uint32(e.total),e.hash.length!==0&&t.uint32(18).bytes(e.hash),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=PCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.total=r.uint32();break;case 2:n.hash=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=PCe();return(0,Jn.isSet)(e.total)&&(t.total=Number(e.total)),(0,Jn.isSet)(e.hash)&&(t.hash=(0,Jn.bytesFromBase64)(e.hash)),t},toJSON(e){let t={};return e.total!==void 0&&(t.total=Math.round(e.total)),e.hash!==void 0&&(t.hash=(0,Jn.base64FromBytes)(e.hash!==void 0?e.hash:new Uint8Array)),t},fromPartial(e){let t=PCe();return t.total=e.total??0,t.hash=e.hash??new Uint8Array,t}};function LCe(){return{index:0,bytes:new Uint8Array,proof:Cy.Proof.fromPartial({})}}Gn.Part={typeUrl:"/tendermint.types.Part",encode(e,t=as.BinaryWriter.create()){return e.index!==0&&t.uint32(8).uint32(e.index),e.bytes.length!==0&&t.uint32(18).bytes(e.bytes),e.proof!==void 0&&Cy.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=LCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.index=r.uint32();break;case 2:n.bytes=r.bytes();break;case 3:n.proof=Cy.Proof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=LCe();return(0,Jn.isSet)(e.index)&&(t.index=Number(e.index)),(0,Jn.isSet)(e.bytes)&&(t.bytes=(0,Jn.bytesFromBase64)(e.bytes)),(0,Jn.isSet)(e.proof)&&(t.proof=Cy.Proof.fromJSON(e.proof)),t},toJSON(e){let t={};return e.index!==void 0&&(t.index=Math.round(e.index)),e.bytes!==void 0&&(t.bytes=(0,Jn.base64FromBytes)(e.bytes!==void 0?e.bytes:new Uint8Array)),e.proof!==void 0&&(t.proof=e.proof?Cy.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=LCe();return t.index=e.index??0,t.bytes=e.bytes??new Uint8Array,e.proof!==void 0&&e.proof!==null&&(t.proof=Cy.Proof.fromPartial(e.proof)),t}};function UCe(){return{hash:new Uint8Array,partSetHeader:Gn.PartSetHeader.fromPartial({})}}Gn.BlockID={typeUrl:"/tendermint.types.BlockID",encode(e,t=as.BinaryWriter.create()){return e.hash.length!==0&&t.uint32(10).bytes(e.hash),e.partSetHeader!==void 0&&Gn.PartSetHeader.encode(e.partSetHeader,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=UCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.hash=r.bytes();break;case 2:n.partSetHeader=Gn.PartSetHeader.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=UCe();return(0,Jn.isSet)(e.hash)&&(t.hash=(0,Jn.bytesFromBase64)(e.hash)),(0,Jn.isSet)(e.partSetHeader)&&(t.partSetHeader=Gn.PartSetHeader.fromJSON(e.partSetHeader)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=(0,Jn.base64FromBytes)(e.hash!==void 0?e.hash:new Uint8Array)),e.partSetHeader!==void 0&&(t.partSetHeader=e.partSetHeader?Gn.PartSetHeader.toJSON(e.partSetHeader):void 0),t},fromPartial(e){let t=UCe();return t.hash=e.hash??new Uint8Array,e.partSetHeader!==void 0&&e.partSetHeader!==null&&(t.partSetHeader=Gn.PartSetHeader.fromPartial(e.partSetHeader)),t}};function FCe(){return{version:b9.Consensus.fromPartial({}),chainId:"",height:BigInt(0),time:lA.Timestamp.fromPartial({}),lastBlockId:Gn.BlockID.fromPartial({}),lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}Gn.Header={typeUrl:"/tendermint.types.Header",encode(e,t=as.BinaryWriter.create()){return e.version!==void 0&&b9.Consensus.encode(e.version,t.uint32(10).fork()).ldelim(),e.chainId!==""&&t.uint32(18).string(e.chainId),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),e.time!==void 0&&lA.Timestamp.encode(e.time,t.uint32(34).fork()).ldelim(),e.lastBlockId!==void 0&&Gn.BlockID.encode(e.lastBlockId,t.uint32(42).fork()).ldelim(),e.lastCommitHash.length!==0&&t.uint32(50).bytes(e.lastCommitHash),e.dataHash.length!==0&&t.uint32(58).bytes(e.dataHash),e.validatorsHash.length!==0&&t.uint32(66).bytes(e.validatorsHash),e.nextValidatorsHash.length!==0&&t.uint32(74).bytes(e.nextValidatorsHash),e.consensusHash.length!==0&&t.uint32(82).bytes(e.consensusHash),e.appHash.length!==0&&t.uint32(90).bytes(e.appHash),e.lastResultsHash.length!==0&&t.uint32(98).bytes(e.lastResultsHash),e.evidenceHash.length!==0&&t.uint32(106).bytes(e.evidenceHash),e.proposerAddress.length!==0&&t.uint32(114).bytes(e.proposerAddress),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=FCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.version=b9.Consensus.decode(r,r.uint32());break;case 2:n.chainId=r.string();break;case 3:n.height=r.int64();break;case 4:n.time=lA.Timestamp.decode(r,r.uint32());break;case 5:n.lastBlockId=Gn.BlockID.decode(r,r.uint32());break;case 6:n.lastCommitHash=r.bytes();break;case 7:n.dataHash=r.bytes();break;case 8:n.validatorsHash=r.bytes();break;case 9:n.nextValidatorsHash=r.bytes();break;case 10:n.consensusHash=r.bytes();break;case 11:n.appHash=r.bytes();break;case 12:n.lastResultsHash=r.bytes();break;case 13:n.evidenceHash=r.bytes();break;case 14:n.proposerAddress=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=FCe();return(0,Jn.isSet)(e.version)&&(t.version=b9.Consensus.fromJSON(e.version)),(0,Jn.isSet)(e.chainId)&&(t.chainId=String(e.chainId)),(0,Jn.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Jn.isSet)(e.time)&&(t.time=(0,Jn.fromJsonTimestamp)(e.time)),(0,Jn.isSet)(e.lastBlockId)&&(t.lastBlockId=Gn.BlockID.fromJSON(e.lastBlockId)),(0,Jn.isSet)(e.lastCommitHash)&&(t.lastCommitHash=(0,Jn.bytesFromBase64)(e.lastCommitHash)),(0,Jn.isSet)(e.dataHash)&&(t.dataHash=(0,Jn.bytesFromBase64)(e.dataHash)),(0,Jn.isSet)(e.validatorsHash)&&(t.validatorsHash=(0,Jn.bytesFromBase64)(e.validatorsHash)),(0,Jn.isSet)(e.nextValidatorsHash)&&(t.nextValidatorsHash=(0,Jn.bytesFromBase64)(e.nextValidatorsHash)),(0,Jn.isSet)(e.consensusHash)&&(t.consensusHash=(0,Jn.bytesFromBase64)(e.consensusHash)),(0,Jn.isSet)(e.appHash)&&(t.appHash=(0,Jn.bytesFromBase64)(e.appHash)),(0,Jn.isSet)(e.lastResultsHash)&&(t.lastResultsHash=(0,Jn.bytesFromBase64)(e.lastResultsHash)),(0,Jn.isSet)(e.evidenceHash)&&(t.evidenceHash=(0,Jn.bytesFromBase64)(e.evidenceHash)),(0,Jn.isSet)(e.proposerAddress)&&(t.proposerAddress=(0,Jn.bytesFromBase64)(e.proposerAddress)),t},toJSON(e){let t={};return e.version!==void 0&&(t.version=e.version?b9.Consensus.toJSON(e.version):void 0),e.chainId!==void 0&&(t.chainId=e.chainId),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(t.time=(0,Jn.fromTimestamp)(e.time).toISOString()),e.lastBlockId!==void 0&&(t.lastBlockId=e.lastBlockId?Gn.BlockID.toJSON(e.lastBlockId):void 0),e.lastCommitHash!==void 0&&(t.lastCommitHash=(0,Jn.base64FromBytes)(e.lastCommitHash!==void 0?e.lastCommitHash:new Uint8Array)),e.dataHash!==void 0&&(t.dataHash=(0,Jn.base64FromBytes)(e.dataHash!==void 0?e.dataHash:new Uint8Array)),e.validatorsHash!==void 0&&(t.validatorsHash=(0,Jn.base64FromBytes)(e.validatorsHash!==void 0?e.validatorsHash:new Uint8Array)),e.nextValidatorsHash!==void 0&&(t.nextValidatorsHash=(0,Jn.base64FromBytes)(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.consensusHash!==void 0&&(t.consensusHash=(0,Jn.base64FromBytes)(e.consensusHash!==void 0?e.consensusHash:new Uint8Array)),e.appHash!==void 0&&(t.appHash=(0,Jn.base64FromBytes)(e.appHash!==void 0?e.appHash:new Uint8Array)),e.lastResultsHash!==void 0&&(t.lastResultsHash=(0,Jn.base64FromBytes)(e.lastResultsHash!==void 0?e.lastResultsHash:new Uint8Array)),e.evidenceHash!==void 0&&(t.evidenceHash=(0,Jn.base64FromBytes)(e.evidenceHash!==void 0?e.evidenceHash:new Uint8Array)),e.proposerAddress!==void 0&&(t.proposerAddress=(0,Jn.base64FromBytes)(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),t},fromPartial(e){let t=FCe();return e.version!==void 0&&e.version!==null&&(t.version=b9.Consensus.fromPartial(e.version)),t.chainId=e.chainId??"",e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),e.time!==void 0&&e.time!==null&&(t.time=lA.Timestamp.fromPartial(e.time)),e.lastBlockId!==void 0&&e.lastBlockId!==null&&(t.lastBlockId=Gn.BlockID.fromPartial(e.lastBlockId)),t.lastCommitHash=e.lastCommitHash??new Uint8Array,t.dataHash=e.dataHash??new Uint8Array,t.validatorsHash=e.validatorsHash??new Uint8Array,t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t.consensusHash=e.consensusHash??new Uint8Array,t.appHash=e.appHash??new Uint8Array,t.lastResultsHash=e.lastResultsHash??new Uint8Array,t.evidenceHash=e.evidenceHash??new Uint8Array,t.proposerAddress=e.proposerAddress??new Uint8Array,t}};function QCe(){return{txs:[]}}Gn.Data={typeUrl:"/tendermint.types.Data",encode(e,t=as.BinaryWriter.create()){for(let r of e.txs)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=QCe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.txs.push(r.bytes()):r.skipType(o&7)}return n},fromJSON(e){let t=QCe();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>(0,Jn.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(r=>(0,Jn.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.txs=[],t},fromPartial(e){let t=QCe();return t.txs=e.txs?.map(r=>r)||[],t}};function HCe(){return{type:0,height:BigInt(0),round:0,blockId:Gn.BlockID.fromPartial({}),timestamp:lA.Timestamp.fromPartial({}),validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}Gn.Vote={typeUrl:"/tendermint.types.Vote",encode(e,t=as.BinaryWriter.create()){return e.type!==0&&t.uint32(8).int32(e.type),e.height!==BigInt(0)&&t.uint32(16).int64(e.height),e.round!==0&&t.uint32(24).int32(e.round),e.blockId!==void 0&&Gn.BlockID.encode(e.blockId,t.uint32(34).fork()).ldelim(),e.timestamp!==void 0&&lA.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),e.validatorAddress.length!==0&&t.uint32(50).bytes(e.validatorAddress),e.validatorIndex!==0&&t.uint32(56).int32(e.validatorIndex),e.signature.length!==0&&t.uint32(66).bytes(e.signature),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=HCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.type=r.int32();break;case 2:n.height=r.int64();break;case 3:n.round=r.int32();break;case 4:n.blockId=Gn.BlockID.decode(r,r.uint32());break;case 5:n.timestamp=lA.Timestamp.decode(r,r.uint32());break;case 6:n.validatorAddress=r.bytes();break;case 7:n.validatorIndex=r.int32();break;case 8:n.signature=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=HCe();return(0,Jn.isSet)(e.type)&&(t.type=YCe(e.type)),(0,Jn.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Jn.isSet)(e.round)&&(t.round=Number(e.round)),(0,Jn.isSet)(e.blockId)&&(t.blockId=Gn.BlockID.fromJSON(e.blockId)),(0,Jn.isSet)(e.timestamp)&&(t.timestamp=(0,Jn.fromJsonTimestamp)(e.timestamp)),(0,Jn.isSet)(e.validatorAddress)&&(t.validatorAddress=(0,Jn.bytesFromBase64)(e.validatorAddress)),(0,Jn.isSet)(e.validatorIndex)&&(t.validatorIndex=Number(e.validatorIndex)),(0,Jn.isSet)(e.signature)&&(t.signature=(0,Jn.bytesFromBase64)(e.signature)),t},toJSON(e){let t={};return e.type!==void 0&&(t.type=WCe(e.type)),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.round!==void 0&&(t.round=Math.round(e.round)),e.blockId!==void 0&&(t.blockId=e.blockId?Gn.BlockID.toJSON(e.blockId):void 0),e.timestamp!==void 0&&(t.timestamp=(0,Jn.fromTimestamp)(e.timestamp).toISOString()),e.validatorAddress!==void 0&&(t.validatorAddress=(0,Jn.base64FromBytes)(e.validatorAddress!==void 0?e.validatorAddress:new Uint8Array)),e.validatorIndex!==void 0&&(t.validatorIndex=Math.round(e.validatorIndex)),e.signature!==void 0&&(t.signature=(0,Jn.base64FromBytes)(e.signature!==void 0?e.signature:new Uint8Array)),t},fromPartial(e){let t=HCe();return t.type=e.type??0,e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.round=e.round??0,e.blockId!==void 0&&e.blockId!==null&&(t.blockId=Gn.BlockID.fromPartial(e.blockId)),e.timestamp!==void 0&&e.timestamp!==null&&(t.timestamp=lA.Timestamp.fromPartial(e.timestamp)),t.validatorAddress=e.validatorAddress??new Uint8Array,t.validatorIndex=e.validatorIndex??0,t.signature=e.signature??new Uint8Array,t}};function GCe(){return{height:BigInt(0),round:0,blockId:Gn.BlockID.fromPartial({}),signatures:[]}}Gn.Commit={typeUrl:"/tendermint.types.Commit",encode(e,t=as.BinaryWriter.create()){e.height!==BigInt(0)&&t.uint32(8).int64(e.height),e.round!==0&&t.uint32(16).int32(e.round),e.blockId!==void 0&&Gn.BlockID.encode(e.blockId,t.uint32(26).fork()).ldelim();for(let r of e.signatures)Gn.CommitSig.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=GCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=r.int64();break;case 2:n.round=r.int32();break;case 3:n.blockId=Gn.BlockID.decode(r,r.uint32());break;case 4:n.signatures.push(Gn.CommitSig.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=GCe();return(0,Jn.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Jn.isSet)(e.round)&&(t.round=Number(e.round)),(0,Jn.isSet)(e.blockId)&&(t.blockId=Gn.BlockID.fromJSON(e.blockId)),Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(r=>Gn.CommitSig.fromJSON(r))),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.round!==void 0&&(t.round=Math.round(e.round)),e.blockId!==void 0&&(t.blockId=e.blockId?Gn.BlockID.toJSON(e.blockId):void 0),e.signatures?t.signatures=e.signatures.map(r=>r?Gn.CommitSig.toJSON(r):void 0):t.signatures=[],t},fromPartial(e){let t=GCe();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.round=e.round??0,e.blockId!==void 0&&e.blockId!==null&&(t.blockId=Gn.BlockID.fromPartial(e.blockId)),t.signatures=e.signatures?.map(r=>Gn.CommitSig.fromPartial(r))||[],t}};function qCe(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:lA.Timestamp.fromPartial({}),signature:new Uint8Array}}Gn.CommitSig={typeUrl:"/tendermint.types.CommitSig",encode(e,t=as.BinaryWriter.create()){return e.blockIdFlag!==0&&t.uint32(8).int32(e.blockIdFlag),e.validatorAddress.length!==0&&t.uint32(18).bytes(e.validatorAddress),e.timestamp!==void 0&&lA.Timestamp.encode(e.timestamp,t.uint32(26).fork()).ldelim(),e.signature.length!==0&&t.uint32(34).bytes(e.signature),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.blockIdFlag=r.int32();break;case 2:n.validatorAddress=r.bytes();break;case 3:n.timestamp=lA.Timestamp.decode(r,r.uint32());break;case 4:n.signature=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qCe();return(0,Jn.isSet)(e.blockIdFlag)&&(t.blockIdFlag=oyt(e.blockIdFlag)),(0,Jn.isSet)(e.validatorAddress)&&(t.validatorAddress=(0,Jn.bytesFromBase64)(e.validatorAddress)),(0,Jn.isSet)(e.timestamp)&&(t.timestamp=(0,Jn.fromJsonTimestamp)(e.timestamp)),(0,Jn.isSet)(e.signature)&&(t.signature=(0,Jn.bytesFromBase64)(e.signature)),t},toJSON(e){let t={};return e.blockIdFlag!==void 0&&(t.blockIdFlag=ayt(e.blockIdFlag)),e.validatorAddress!==void 0&&(t.validatorAddress=(0,Jn.base64FromBytes)(e.validatorAddress!==void 0?e.validatorAddress:new Uint8Array)),e.timestamp!==void 0&&(t.timestamp=(0,Jn.fromTimestamp)(e.timestamp).toISOString()),e.signature!==void 0&&(t.signature=(0,Jn.base64FromBytes)(e.signature!==void 0?e.signature:new Uint8Array)),t},fromPartial(e){let t=qCe();return t.blockIdFlag=e.blockIdFlag??0,t.validatorAddress=e.validatorAddress??new Uint8Array,e.timestamp!==void 0&&e.timestamp!==null&&(t.timestamp=lA.Timestamp.fromPartial(e.timestamp)),t.signature=e.signature??new Uint8Array,t}};function VCe(){return{type:0,height:BigInt(0),round:0,polRound:0,blockId:Gn.BlockID.fromPartial({}),timestamp:lA.Timestamp.fromPartial({}),signature:new Uint8Array}}Gn.Proposal={typeUrl:"/tendermint.types.Proposal",encode(e,t=as.BinaryWriter.create()){return e.type!==0&&t.uint32(8).int32(e.type),e.height!==BigInt(0)&&t.uint32(16).int64(e.height),e.round!==0&&t.uint32(24).int32(e.round),e.polRound!==0&&t.uint32(32).int32(e.polRound),e.blockId!==void 0&&Gn.BlockID.encode(e.blockId,t.uint32(42).fork()).ldelim(),e.timestamp!==void 0&&lA.Timestamp.encode(e.timestamp,t.uint32(50).fork()).ldelim(),e.signature.length!==0&&t.uint32(58).bytes(e.signature),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=VCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.type=r.int32();break;case 2:n.height=r.int64();break;case 3:n.round=r.int32();break;case 4:n.polRound=r.int32();break;case 5:n.blockId=Gn.BlockID.decode(r,r.uint32());break;case 6:n.timestamp=lA.Timestamp.decode(r,r.uint32());break;case 7:n.signature=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=VCe();return(0,Jn.isSet)(e.type)&&(t.type=YCe(e.type)),(0,Jn.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Jn.isSet)(e.round)&&(t.round=Number(e.round)),(0,Jn.isSet)(e.polRound)&&(t.polRound=Number(e.polRound)),(0,Jn.isSet)(e.blockId)&&(t.blockId=Gn.BlockID.fromJSON(e.blockId)),(0,Jn.isSet)(e.timestamp)&&(t.timestamp=(0,Jn.fromJsonTimestamp)(e.timestamp)),(0,Jn.isSet)(e.signature)&&(t.signature=(0,Jn.bytesFromBase64)(e.signature)),t},toJSON(e){let t={};return e.type!==void 0&&(t.type=WCe(e.type)),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.round!==void 0&&(t.round=Math.round(e.round)),e.polRound!==void 0&&(t.polRound=Math.round(e.polRound)),e.blockId!==void 0&&(t.blockId=e.blockId?Gn.BlockID.toJSON(e.blockId):void 0),e.timestamp!==void 0&&(t.timestamp=(0,Jn.fromTimestamp)(e.timestamp).toISOString()),e.signature!==void 0&&(t.signature=(0,Jn.base64FromBytes)(e.signature!==void 0?e.signature:new Uint8Array)),t},fromPartial(e){let t=VCe();return t.type=e.type??0,e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.round=e.round??0,t.polRound=e.polRound??0,e.blockId!==void 0&&e.blockId!==null&&(t.blockId=Gn.BlockID.fromPartial(e.blockId)),e.timestamp!==void 0&&e.timestamp!==null&&(t.timestamp=lA.Timestamp.fromPartial(e.timestamp)),t.signature=e.signature??new Uint8Array,t}};function JCe(){return{header:void 0,commit:void 0}}Gn.SignedHeader={typeUrl:"/tendermint.types.SignedHeader",encode(e,t=as.BinaryWriter.create()){return e.header!==void 0&&Gn.Header.encode(e.header,t.uint32(10).fork()).ldelim(),e.commit!==void 0&&Gn.Commit.encode(e.commit,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=JCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.header=Gn.Header.decode(r,r.uint32());break;case 2:n.commit=Gn.Commit.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=JCe();return(0,Jn.isSet)(e.header)&&(t.header=Gn.Header.fromJSON(e.header)),(0,Jn.isSet)(e.commit)&&(t.commit=Gn.Commit.fromJSON(e.commit)),t},toJSON(e){let t={};return e.header!==void 0&&(t.header=e.header?Gn.Header.toJSON(e.header):void 0),e.commit!==void 0&&(t.commit=e.commit?Gn.Commit.toJSON(e.commit):void 0),t},fromPartial(e){let t=JCe();return e.header!==void 0&&e.header!==null&&(t.header=Gn.Header.fromPartial(e.header)),e.commit!==void 0&&e.commit!==null&&(t.commit=Gn.Commit.fromPartial(e.commit)),t}};function zCe(){return{signedHeader:void 0,validatorSet:void 0}}Gn.LightBlock={typeUrl:"/tendermint.types.LightBlock",encode(e,t=as.BinaryWriter.create()){return e.signedHeader!==void 0&&Gn.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),e.validatorSet!==void 0&&aQ.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.signedHeader=Gn.SignedHeader.decode(r,r.uint32());break;case 2:n.validatorSet=aQ.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=zCe();return(0,Jn.isSet)(e.signedHeader)&&(t.signedHeader=Gn.SignedHeader.fromJSON(e.signedHeader)),(0,Jn.isSet)(e.validatorSet)&&(t.validatorSet=aQ.ValidatorSet.fromJSON(e.validatorSet)),t},toJSON(e){let t={};return e.signedHeader!==void 0&&(t.signedHeader=e.signedHeader?Gn.SignedHeader.toJSON(e.signedHeader):void 0),e.validatorSet!==void 0&&(t.validatorSet=e.validatorSet?aQ.ValidatorSet.toJSON(e.validatorSet):void 0),t},fromPartial(e){let t=zCe();return e.signedHeader!==void 0&&e.signedHeader!==null&&(t.signedHeader=Gn.SignedHeader.fromPartial(e.signedHeader)),e.validatorSet!==void 0&&e.validatorSet!==null&&(t.validatorSet=aQ.ValidatorSet.fromPartial(e.validatorSet)),t}};function KCe(){return{blockId:Gn.BlockID.fromPartial({}),blockSize:BigInt(0),header:Gn.Header.fromPartial({}),numTxs:BigInt(0)}}Gn.BlockMeta={typeUrl:"/tendermint.types.BlockMeta",encode(e,t=as.BinaryWriter.create()){return e.blockId!==void 0&&Gn.BlockID.encode(e.blockId,t.uint32(10).fork()).ldelim(),e.blockSize!==BigInt(0)&&t.uint32(16).int64(e.blockSize),e.header!==void 0&&Gn.Header.encode(e.header,t.uint32(26).fork()).ldelim(),e.numTxs!==BigInt(0)&&t.uint32(32).int64(e.numTxs),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=KCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.blockId=Gn.BlockID.decode(r,r.uint32());break;case 2:n.blockSize=r.int64();break;case 3:n.header=Gn.Header.decode(r,r.uint32());break;case 4:n.numTxs=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=KCe();return(0,Jn.isSet)(e.blockId)&&(t.blockId=Gn.BlockID.fromJSON(e.blockId)),(0,Jn.isSet)(e.blockSize)&&(t.blockSize=BigInt(e.blockSize.toString())),(0,Jn.isSet)(e.header)&&(t.header=Gn.Header.fromJSON(e.header)),(0,Jn.isSet)(e.numTxs)&&(t.numTxs=BigInt(e.numTxs.toString())),t},toJSON(e){let t={};return e.blockId!==void 0&&(t.blockId=e.blockId?Gn.BlockID.toJSON(e.blockId):void 0),e.blockSize!==void 0&&(t.blockSize=(e.blockSize||BigInt(0)).toString()),e.header!==void 0&&(t.header=e.header?Gn.Header.toJSON(e.header):void 0),e.numTxs!==void 0&&(t.numTxs=(e.numTxs||BigInt(0)).toString()),t},fromPartial(e){let t=KCe();return e.blockId!==void 0&&e.blockId!==null&&(t.blockId=Gn.BlockID.fromPartial(e.blockId)),e.blockSize!==void 0&&e.blockSize!==null&&(t.blockSize=BigInt(e.blockSize.toString())),e.header!==void 0&&e.header!==null&&(t.header=Gn.Header.fromPartial(e.header)),e.numTxs!==void 0&&e.numTxs!==null&&(t.numTxs=BigInt(e.numTxs.toString())),t}};function $Ce(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}Gn.TxProof={typeUrl:"/tendermint.types.TxProof",encode(e,t=as.BinaryWriter.create()){return e.rootHash.length!==0&&t.uint32(10).bytes(e.rootHash),e.data.length!==0&&t.uint32(18).bytes(e.data),e.proof!==void 0&&Cy.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof as.BinaryReader?e:new as.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$Ce();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.rootHash=r.bytes();break;case 2:n.data=r.bytes();break;case 3:n.proof=Cy.Proof.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=$Ce();return(0,Jn.isSet)(e.rootHash)&&(t.rootHash=(0,Jn.bytesFromBase64)(e.rootHash)),(0,Jn.isSet)(e.data)&&(t.data=(0,Jn.bytesFromBase64)(e.data)),(0,Jn.isSet)(e.proof)&&(t.proof=Cy.Proof.fromJSON(e.proof)),t},toJSON(e){let t={};return e.rootHash!==void 0&&(t.rootHash=(0,Jn.base64FromBytes)(e.rootHash!==void 0?e.rootHash:new Uint8Array)),e.data!==void 0&&(t.data=(0,Jn.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.proof!==void 0&&(t.proof=e.proof?Cy.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=$Ce();return t.rootHash=e.rootHash??new Uint8Array,t.data=e.data??new Uint8Array,e.proof!==void 0&&e.proof!==null&&(t.proof=Cy.Proof.fromPartial(e.proof)),t}}});var syt=ir(Gc=>{"use strict";J();K();z();Object.defineProperty(Gc,"__esModule",{value:!0});Gc.Fraction=Gc.Header=Gc.Misbehaviour=Gc.ConsensusState=Gc.ClientState=Gc.protobufPackage=void 0;var Ml=wS(),Dl=NS(),sQ=M8e(),ite=u1(),E9=U8e(),cQ=C5(),qE=nte(),dp=Qi(),d0=Hi();Gc.protobufPackage="ibc.lightclients.tendermint.v1";function XCe(){return{chainId:"",trustLevel:Gc.Fraction.fromPartial({}),trustingPeriod:Ml.Duration.fromPartial({}),unbondingPeriod:Ml.Duration.fromPartial({}),maxClockDrift:Ml.Duration.fromPartial({}),frozenHeight:Dl.Height.fromPartial({}),latestHeight:Dl.Height.fromPartial({}),proofSpecs:[],upgradePath:[],allowUpdateAfterExpiry:!1,allowUpdateAfterMisbehaviour:!1}}Gc.ClientState={typeUrl:"/ibc.lightclients.tendermint.v1.ClientState",encode(e,t=dp.BinaryWriter.create()){e.chainId!==""&&t.uint32(10).string(e.chainId),e.trustLevel!==void 0&&Gc.Fraction.encode(e.trustLevel,t.uint32(18).fork()).ldelim(),e.trustingPeriod!==void 0&&Ml.Duration.encode(e.trustingPeriod,t.uint32(26).fork()).ldelim(),e.unbondingPeriod!==void 0&&Ml.Duration.encode(e.unbondingPeriod,t.uint32(34).fork()).ldelim(),e.maxClockDrift!==void 0&&Ml.Duration.encode(e.maxClockDrift,t.uint32(42).fork()).ldelim(),e.frozenHeight!==void 0&&Dl.Height.encode(e.frozenHeight,t.uint32(50).fork()).ldelim(),e.latestHeight!==void 0&&Dl.Height.encode(e.latestHeight,t.uint32(58).fork()).ldelim();for(let r of e.proofSpecs)sQ.ProofSpec.encode(r,t.uint32(66).fork()).ldelim();for(let r of e.upgradePath)t.uint32(74).string(r);return e.allowUpdateAfterExpiry===!0&&t.uint32(80).bool(e.allowUpdateAfterExpiry),e.allowUpdateAfterMisbehaviour===!0&&t.uint32(88).bool(e.allowUpdateAfterMisbehaviour),t},decode(e,t){let r=e instanceof dp.BinaryReader?e:new dp.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=XCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.chainId=r.string();break;case 2:n.trustLevel=Gc.Fraction.decode(r,r.uint32());break;case 3:n.trustingPeriod=Ml.Duration.decode(r,r.uint32());break;case 4:n.unbondingPeriod=Ml.Duration.decode(r,r.uint32());break;case 5:n.maxClockDrift=Ml.Duration.decode(r,r.uint32());break;case 6:n.frozenHeight=Dl.Height.decode(r,r.uint32());break;case 7:n.latestHeight=Dl.Height.decode(r,r.uint32());break;case 8:n.proofSpecs.push(sQ.ProofSpec.decode(r,r.uint32()));break;case 9:n.upgradePath.push(r.string());break;case 10:n.allowUpdateAfterExpiry=r.bool();break;case 11:n.allowUpdateAfterMisbehaviour=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=XCe();return(0,d0.isSet)(e.chainId)&&(t.chainId=String(e.chainId)),(0,d0.isSet)(e.trustLevel)&&(t.trustLevel=Gc.Fraction.fromJSON(e.trustLevel)),(0,d0.isSet)(e.trustingPeriod)&&(t.trustingPeriod=Ml.Duration.fromJSON(e.trustingPeriod)),(0,d0.isSet)(e.unbondingPeriod)&&(t.unbondingPeriod=Ml.Duration.fromJSON(e.unbondingPeriod)),(0,d0.isSet)(e.maxClockDrift)&&(t.maxClockDrift=Ml.Duration.fromJSON(e.maxClockDrift)),(0,d0.isSet)(e.frozenHeight)&&(t.frozenHeight=Dl.Height.fromJSON(e.frozenHeight)),(0,d0.isSet)(e.latestHeight)&&(t.latestHeight=Dl.Height.fromJSON(e.latestHeight)),Array.isArray(e?.proofSpecs)&&(t.proofSpecs=e.proofSpecs.map(r=>sQ.ProofSpec.fromJSON(r))),Array.isArray(e?.upgradePath)&&(t.upgradePath=e.upgradePath.map(r=>String(r))),(0,d0.isSet)(e.allowUpdateAfterExpiry)&&(t.allowUpdateAfterExpiry=!!e.allowUpdateAfterExpiry),(0,d0.isSet)(e.allowUpdateAfterMisbehaviour)&&(t.allowUpdateAfterMisbehaviour=!!e.allowUpdateAfterMisbehaviour),t},toJSON(e){let t={};return e.chainId!==void 0&&(t.chainId=e.chainId),e.trustLevel!==void 0&&(t.trustLevel=e.trustLevel?Gc.Fraction.toJSON(e.trustLevel):void 0),e.trustingPeriod!==void 0&&(t.trustingPeriod=e.trustingPeriod?Ml.Duration.toJSON(e.trustingPeriod):void 0),e.unbondingPeriod!==void 0&&(t.unbondingPeriod=e.unbondingPeriod?Ml.Duration.toJSON(e.unbondingPeriod):void 0),e.maxClockDrift!==void 0&&(t.maxClockDrift=e.maxClockDrift?Ml.Duration.toJSON(e.maxClockDrift):void 0),e.frozenHeight!==void 0&&(t.frozenHeight=e.frozenHeight?Dl.Height.toJSON(e.frozenHeight):void 0),e.latestHeight!==void 0&&(t.latestHeight=e.latestHeight?Dl.Height.toJSON(e.latestHeight):void 0),e.proofSpecs?t.proofSpecs=e.proofSpecs.map(r=>r?sQ.ProofSpec.toJSON(r):void 0):t.proofSpecs=[],e.upgradePath?t.upgradePath=e.upgradePath.map(r=>r):t.upgradePath=[],e.allowUpdateAfterExpiry!==void 0&&(t.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry),e.allowUpdateAfterMisbehaviour!==void 0&&(t.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour),t},fromPartial(e){let t=XCe();return t.chainId=e.chainId??"",e.trustLevel!==void 0&&e.trustLevel!==null&&(t.trustLevel=Gc.Fraction.fromPartial(e.trustLevel)),e.trustingPeriod!==void 0&&e.trustingPeriod!==null&&(t.trustingPeriod=Ml.Duration.fromPartial(e.trustingPeriod)),e.unbondingPeriod!==void 0&&e.unbondingPeriod!==null&&(t.unbondingPeriod=Ml.Duration.fromPartial(e.unbondingPeriod)),e.maxClockDrift!==void 0&&e.maxClockDrift!==null&&(t.maxClockDrift=Ml.Duration.fromPartial(e.maxClockDrift)),e.frozenHeight!==void 0&&e.frozenHeight!==null&&(t.frozenHeight=Dl.Height.fromPartial(e.frozenHeight)),e.latestHeight!==void 0&&e.latestHeight!==null&&(t.latestHeight=Dl.Height.fromPartial(e.latestHeight)),t.proofSpecs=e.proofSpecs?.map(r=>sQ.ProofSpec.fromPartial(r))||[],t.upgradePath=e.upgradePath?.map(r=>r)||[],t.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry??!1,t.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour??!1,t}};function ZCe(){return{timestamp:ite.Timestamp.fromPartial({}),root:E9.MerkleRoot.fromPartial({}),nextValidatorsHash:new Uint8Array}}Gc.ConsensusState={typeUrl:"/ibc.lightclients.tendermint.v1.ConsensusState",encode(e,t=dp.BinaryWriter.create()){return e.timestamp!==void 0&&ite.Timestamp.encode(e.timestamp,t.uint32(10).fork()).ldelim(),e.root!==void 0&&E9.MerkleRoot.encode(e.root,t.uint32(18).fork()).ldelim(),e.nextValidatorsHash.length!==0&&t.uint32(26).bytes(e.nextValidatorsHash),t},decode(e,t){let r=e instanceof dp.BinaryReader?e:new dp.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ZCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.timestamp=ite.Timestamp.decode(r,r.uint32());break;case 2:n.root=E9.MerkleRoot.decode(r,r.uint32());break;case 3:n.nextValidatorsHash=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ZCe();return(0,d0.isSet)(e.timestamp)&&(t.timestamp=(0,d0.fromJsonTimestamp)(e.timestamp)),(0,d0.isSet)(e.root)&&(t.root=E9.MerkleRoot.fromJSON(e.root)),(0,d0.isSet)(e.nextValidatorsHash)&&(t.nextValidatorsHash=(0,d0.bytesFromBase64)(e.nextValidatorsHash)),t},toJSON(e){let t={};return e.timestamp!==void 0&&(t.timestamp=(0,d0.fromTimestamp)(e.timestamp).toISOString()),e.root!==void 0&&(t.root=e.root?E9.MerkleRoot.toJSON(e.root):void 0),e.nextValidatorsHash!==void 0&&(t.nextValidatorsHash=(0,d0.base64FromBytes)(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),t},fromPartial(e){let t=ZCe();return e.timestamp!==void 0&&e.timestamp!==null&&(t.timestamp=ite.Timestamp.fromPartial(e.timestamp)),e.root!==void 0&&e.root!==null&&(t.root=E9.MerkleRoot.fromPartial(e.root)),t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t}};function jCe(){return{clientId:"",header1:void 0,header2:void 0}}Gc.Misbehaviour={typeUrl:"/ibc.lightclients.tendermint.v1.Misbehaviour",encode(e,t=dp.BinaryWriter.create()){return e.clientId!==""&&t.uint32(10).string(e.clientId),e.header1!==void 0&&Gc.Header.encode(e.header1,t.uint32(18).fork()).ldelim(),e.header2!==void 0&&Gc.Header.encode(e.header2,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof dp.BinaryReader?e:new dp.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jCe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.clientId=r.string();break;case 2:n.header1=Gc.Header.decode(r,r.uint32());break;case 3:n.header2=Gc.Header.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=jCe();return(0,d0.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,d0.isSet)(e.header1)&&(t.header1=Gc.Header.fromJSON(e.header1)),(0,d0.isSet)(e.header2)&&(t.header2=Gc.Header.fromJSON(e.header2)),t},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.header1!==void 0&&(t.header1=e.header1?Gc.Header.toJSON(e.header1):void 0),e.header2!==void 0&&(t.header2=e.header2?Gc.Header.toJSON(e.header2):void 0),t},fromPartial(e){let t=jCe();return t.clientId=e.clientId??"",e.header1!==void 0&&e.header1!==null&&(t.header1=Gc.Header.fromPartial(e.header1)),e.header2!==void 0&&e.header2!==null&&(t.header2=Gc.Header.fromPartial(e.header2)),t}};function ewe(){return{signedHeader:void 0,validatorSet:void 0,trustedHeight:Dl.Height.fromPartial({}),trustedValidators:void 0}}Gc.Header={typeUrl:"/ibc.lightclients.tendermint.v1.Header",encode(e,t=dp.BinaryWriter.create()){return e.signedHeader!==void 0&&cQ.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),e.validatorSet!==void 0&&qE.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),e.trustedHeight!==void 0&&Dl.Height.encode(e.trustedHeight,t.uint32(26).fork()).ldelim(),e.trustedValidators!==void 0&&qE.ValidatorSet.encode(e.trustedValidators,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof dp.BinaryReader?e:new dp.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ewe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.signedHeader=cQ.SignedHeader.decode(r,r.uint32());break;case 2:n.validatorSet=qE.ValidatorSet.decode(r,r.uint32());break;case 3:n.trustedHeight=Dl.Height.decode(r,r.uint32());break;case 4:n.trustedValidators=qE.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ewe();return(0,d0.isSet)(e.signedHeader)&&(t.signedHeader=cQ.SignedHeader.fromJSON(e.signedHeader)),(0,d0.isSet)(e.validatorSet)&&(t.validatorSet=qE.ValidatorSet.fromJSON(e.validatorSet)),(0,d0.isSet)(e.trustedHeight)&&(t.trustedHeight=Dl.Height.fromJSON(e.trustedHeight)),(0,d0.isSet)(e.trustedValidators)&&(t.trustedValidators=qE.ValidatorSet.fromJSON(e.trustedValidators)),t},toJSON(e){let t={};return e.signedHeader!==void 0&&(t.signedHeader=e.signedHeader?cQ.SignedHeader.toJSON(e.signedHeader):void 0),e.validatorSet!==void 0&&(t.validatorSet=e.validatorSet?qE.ValidatorSet.toJSON(e.validatorSet):void 0),e.trustedHeight!==void 0&&(t.trustedHeight=e.trustedHeight?Dl.Height.toJSON(e.trustedHeight):void 0),e.trustedValidators!==void 0&&(t.trustedValidators=e.trustedValidators?qE.ValidatorSet.toJSON(e.trustedValidators):void 0),t},fromPartial(e){let t=ewe();return e.signedHeader!==void 0&&e.signedHeader!==null&&(t.signedHeader=cQ.SignedHeader.fromPartial(e.signedHeader)),e.validatorSet!==void 0&&e.validatorSet!==null&&(t.validatorSet=qE.ValidatorSet.fromPartial(e.validatorSet)),e.trustedHeight!==void 0&&e.trustedHeight!==null&&(t.trustedHeight=Dl.Height.fromPartial(e.trustedHeight)),e.trustedValidators!==void 0&&e.trustedValidators!==null&&(t.trustedValidators=qE.ValidatorSet.fromPartial(e.trustedValidators)),t}};function twe(){return{numerator:BigInt(0),denominator:BigInt(0)}}Gc.Fraction={typeUrl:"/ibc.lightclients.tendermint.v1.Fraction",encode(e,t=dp.BinaryWriter.create()){return e.numerator!==BigInt(0)&&t.uint32(8).uint64(e.numerator),e.denominator!==BigInt(0)&&t.uint32(16).uint64(e.denominator),t},decode(e,t){let r=e instanceof dp.BinaryReader?e:new dp.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=twe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.numerator=r.uint64();break;case 2:n.denominator=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=twe();return(0,d0.isSet)(e.numerator)&&(t.numerator=BigInt(e.numerator.toString())),(0,d0.isSet)(e.denominator)&&(t.denominator=BigInt(e.denominator.toString())),t},toJSON(e){let t={};return e.numerator!==void 0&&(t.numerator=(e.numerator||BigInt(0)).toString()),e.denominator!==void 0&&(t.denominator=(e.denominator||BigInt(0)).toString()),t},fromPartial(e){let t=twe();return e.numerator!==void 0&&e.numerator!==null&&(t.numerator=BigInt(e.numerator.toString())),e.denominator!==void 0&&e.denominator!==null&&(t.denominator=BigInt(e.denominator.toString())),t}}});var dyt=ir(ote=>{"use strict";J();K();z();Object.defineProperty(ote,"__esModule",{value:!0});ote.setupIbcExtension=void 0;var cyt=eyt(),w5=tyt(),uQ=ryt(),rwe=nyt(),uyt=syt(),yd=ep();function nwe(e){if(e?.typeUrl!=="/ibc.lightclients.tendermint.v1.ClientState")throw new Error(`Unexpected client state type: ${e?.typeUrl}`);return uyt.ClientState.decode(e.value)}function Zpn(e){if(e?.typeUrl!=="/ibc.lightclients.tendermint.v1.ConsensusState")throw new Error(`Unexpected client state type: ${e?.typeUrl}`);return uyt.ConsensusState.decode(e.value)}function jpn(e){let t=(0,yd.createProtobufRpcClient)(e),r=new w5.QueryClientImpl(t),i=new uQ.QueryClientImpl(t),n=new rwe.QueryClientImpl(t),o=new cyt.QueryClientImpl(t);return{ibc:{channel:{channel:async(d,g)=>r.Channel({portId:d,channelId:g}),channels:async d=>r.Channels({pagination:(0,yd.createPagination)(d)}),allChannels:async()=>{let d=[],g,y;do g=await r.Channels({pagination:(0,yd.createPagination)(y)}),d.push(...g.channels),y=g.pagination?.nextKey;while(y&&y.length);return w5.QueryChannelsResponse.fromPartial({channels:d,height:g.height})},connectionChannels:async(d,g)=>r.ConnectionChannels({connection:d,pagination:(0,yd.createPagination)(g)}),allConnectionChannels:async d=>{let g=[],y,_;do y=await r.ConnectionChannels({connection:d,pagination:(0,yd.createPagination)(_)}),g.push(...y.channels),_=y.pagination?.nextKey;while(_&&_.length);return w5.QueryConnectionChannelsResponse.fromPartial({channels:g,height:y.height})},clientState:async(d,g)=>r.ChannelClientState({portId:d,channelId:g}),consensusState:async(d,g,y,_)=>r.ChannelConsensusState({portId:d,channelId:g,revisionNumber:BigInt(y),revisionHeight:BigInt(_)}),packetCommitment:async(d,g,y)=>r.PacketCommitment({portId:d,channelId:g,sequence:(0,yd.longify)(y)}),packetCommitments:async(d,g,y)=>r.PacketCommitments({channelId:g,portId:d,pagination:(0,yd.createPagination)(y)}),allPacketCommitments:async(d,g)=>{let y=[],_,I;do _=await r.PacketCommitments({channelId:g,portId:d,pagination:(0,yd.createPagination)(I)}),y.push(..._.commitments),I=_.pagination?.nextKey;while(I&&I.length);return w5.QueryPacketCommitmentsResponse.fromPartial({commitments:y,height:_.height})},packetReceipt:async(d,g,y)=>r.PacketReceipt({portId:d,channelId:g,sequence:(0,yd.longify)(y)}),packetAcknowledgement:async(d,g,y)=>r.PacketAcknowledgement({portId:d,channelId:g,sequence:(0,yd.longify)(y)}),packetAcknowledgements:async(d,g,y)=>{let _=w5.QueryPacketAcknowledgementsRequest.fromPartial({portId:d,channelId:g,pagination:(0,yd.createPagination)(y)});return r.PacketAcknowledgements(_)},allPacketAcknowledgements:async(d,g)=>{let y=[],_,I;do{let N=w5.QueryPacketAcknowledgementsRequest.fromPartial({channelId:g,portId:d,pagination:(0,yd.createPagination)(I)});_=await r.PacketAcknowledgements(N),y.push(..._.acknowledgements),I=_.pagination?.nextKey}while(I&&I.length);return w5.QueryPacketAcknowledgementsResponse.fromPartial({acknowledgements:y,height:_.height})},unreceivedPackets:async(d,g,y)=>r.UnreceivedPackets({portId:d,channelId:g,packetCommitmentSequences:y.map(_=>BigInt(_))}),unreceivedAcks:async(d,g,y)=>r.UnreceivedAcks({portId:d,channelId:g,packetAckSequences:y.map(_=>BigInt(_))}),nextSequenceReceive:async(d,g)=>r.NextSequenceReceive({portId:d,channelId:g})},client:{state:async d=>i.ClientState({clientId:d}),states:async d=>i.ClientStates({pagination:(0,yd.createPagination)(d)}),allStates:async()=>{let d=[],g,y;do g=await i.ClientStates({pagination:(0,yd.createPagination)(y)}),d.push(...g.clientStates),y=g.pagination?.nextKey;while(y&&y.length);return uQ.QueryClientStatesResponse.fromPartial({clientStates:d})},consensusState:async(d,g)=>i.ConsensusState(uQ.QueryConsensusStateRequest.fromPartial({clientId:d,revisionHeight:g!==void 0?BigInt(g):void 0,latestHeight:g===void 0})),consensusStates:async(d,g)=>i.ConsensusStates({clientId:d,pagination:(0,yd.createPagination)(g)}),allConsensusStates:async d=>{let g=[],y,_;do y=await i.ConsensusStates({clientId:d,pagination:(0,yd.createPagination)(_)}),g.push(...y.consensusStates),_=y.pagination?.nextKey;while(_&&_.length);return uQ.QueryConsensusStatesResponse.fromPartial({consensusStates:g})},params:async()=>i.ClientParams({}),stateTm:async d=>{let g=await i.ClientState({clientId:d});return nwe(g.clientState)},statesTm:async d=>{let{clientStates:g}=await i.ClientStates({pagination:(0,yd.createPagination)(d)});return g.map(({clientState:y})=>nwe(y))},allStatesTm:async()=>{let d=[],g,y;do g=await i.ClientStates({pagination:(0,yd.createPagination)(y)}),d.push(...g.clientStates),y=g.pagination?.nextKey;while(y&&y.length);return d.map(({clientState:_})=>nwe(_))},consensusStateTm:async(d,g)=>{let y=await i.ConsensusState(uQ.QueryConsensusStateRequest.fromPartial({clientId:d,revisionHeight:g?.revisionHeight,revisionNumber:g?.revisionNumber,latestHeight:g===void 0}));return Zpn(y.consensusState)}},connection:{connection:async d=>n.Connection({connectionId:d}),connections:async d=>n.Connections({pagination:(0,yd.createPagination)(d)}),allConnections:async()=>{let d=[],g,y;do g=await n.Connections({pagination:(0,yd.createPagination)(y)}),d.push(...g.connections),y=g.pagination?.nextKey;while(y&&y.length);return rwe.QueryConnectionsResponse.fromPartial({connections:d,height:g.height})},clientConnections:async d=>n.ClientConnections({clientId:d}),clientState:async d=>n.ConnectionClientState({connectionId:d}),consensusState:async(d,g)=>n.ConnectionConsensusState(rwe.QueryConnectionConsensusStateRequest.fromPartial({connectionId:d,revisionHeight:BigInt(g)}))},transfer:{denomTrace:async d=>o.DenomTrace({hash:d}),denomTraces:async d=>o.DenomTraces({pagination:(0,yd.createPagination)(d)}),allDenomTraces:async()=>{let d=[],g,y;do g=await o.DenomTraces({pagination:(0,yd.createPagination)(y)}),d.push(...g.denomTraces),y=g.pagination?.nextKey;while(y&&y.length);return cyt.QueryDenomTracesResponse.fromPartial({denomTraces:d})},params:async()=>o.Params({})}}}}ote.setupIbcExtension=jpn});var fyt=ir(d8=>{"use strict";J();K();z();Object.defineProperty(d8,"__esModule",{value:!0});d8.Params=d8.Minter=d8.protobufPackage=void 0;var v9=Qi(),u8=Hi();d8.protobufPackage="cosmos.mint.v1beta1";function iwe(){return{inflation:"",annualProvisions:""}}d8.Minter={typeUrl:"/cosmos.mint.v1beta1.Minter",encode(e,t=v9.BinaryWriter.create()){return e.inflation!==""&&t.uint32(10).string(e.inflation),e.annualProvisions!==""&&t.uint32(18).string(e.annualProvisions),t},decode(e,t){let r=e instanceof v9.BinaryReader?e:new v9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=iwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.inflation=r.string();break;case 2:n.annualProvisions=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=iwe();return(0,u8.isSet)(e.inflation)&&(t.inflation=String(e.inflation)),(0,u8.isSet)(e.annualProvisions)&&(t.annualProvisions=String(e.annualProvisions)),t},toJSON(e){let t={};return e.inflation!==void 0&&(t.inflation=e.inflation),e.annualProvisions!==void 0&&(t.annualProvisions=e.annualProvisions),t},fromPartial(e){let t=iwe();return t.inflation=e.inflation??"",t.annualProvisions=e.annualProvisions??"",t}};function owe(){return{mintDenom:"",inflationRateChange:"",inflationMax:"",inflationMin:"",goalBonded:"",blocksPerYear:BigInt(0)}}d8.Params={typeUrl:"/cosmos.mint.v1beta1.Params",encode(e,t=v9.BinaryWriter.create()){return e.mintDenom!==""&&t.uint32(10).string(e.mintDenom),e.inflationRateChange!==""&&t.uint32(18).string(e.inflationRateChange),e.inflationMax!==""&&t.uint32(26).string(e.inflationMax),e.inflationMin!==""&&t.uint32(34).string(e.inflationMin),e.goalBonded!==""&&t.uint32(42).string(e.goalBonded),e.blocksPerYear!==BigInt(0)&&t.uint32(48).uint64(e.blocksPerYear),t},decode(e,t){let r=e instanceof v9.BinaryReader?e:new v9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=owe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.mintDenom=r.string();break;case 2:n.inflationRateChange=r.string();break;case 3:n.inflationMax=r.string();break;case 4:n.inflationMin=r.string();break;case 5:n.goalBonded=r.string();break;case 6:n.blocksPerYear=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=owe();return(0,u8.isSet)(e.mintDenom)&&(t.mintDenom=String(e.mintDenom)),(0,u8.isSet)(e.inflationRateChange)&&(t.inflationRateChange=String(e.inflationRateChange)),(0,u8.isSet)(e.inflationMax)&&(t.inflationMax=String(e.inflationMax)),(0,u8.isSet)(e.inflationMin)&&(t.inflationMin=String(e.inflationMin)),(0,u8.isSet)(e.goalBonded)&&(t.goalBonded=String(e.goalBonded)),(0,u8.isSet)(e.blocksPerYear)&&(t.blocksPerYear=BigInt(e.blocksPerYear.toString())),t},toJSON(e){let t={};return e.mintDenom!==void 0&&(t.mintDenom=e.mintDenom),e.inflationRateChange!==void 0&&(t.inflationRateChange=e.inflationRateChange),e.inflationMax!==void 0&&(t.inflationMax=e.inflationMax),e.inflationMin!==void 0&&(t.inflationMin=e.inflationMin),e.goalBonded!==void 0&&(t.goalBonded=e.goalBonded),e.blocksPerYear!==void 0&&(t.blocksPerYear=(e.blocksPerYear||BigInt(0)).toString()),t},fromPartial(e){let t=owe();return t.mintDenom=e.mintDenom??"",t.inflationRateChange=e.inflationRateChange??"",t.inflationMax=e.inflationMax??"",t.inflationMin=e.inflationMin??"",t.goalBonded=e.goalBonded??"",e.blocksPerYear!==void 0&&e.blocksPerYear!==null&&(t.blocksPerYear=BigInt(e.blocksPerYear.toString())),t}}});var lyt=ir(x0=>{"use strict";J();K();z();Object.defineProperty(x0,"__esModule",{value:!0});x0.QueryClientImpl=x0.QueryAnnualProvisionsResponse=x0.QueryAnnualProvisionsRequest=x0.QueryInflationResponse=x0.QueryInflationRequest=x0.QueryParamsResponse=x0.QueryParamsRequest=x0.protobufPackage=void 0;var R9=fyt(),Yd=Qi(),O5=Hi();x0.protobufPackage="cosmos.mint.v1beta1";function awe(){return{}}x0.QueryParamsRequest={typeUrl:"/cosmos.mint.v1beta1.QueryParamsRequest",encode(e,t=Yd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Yd.BinaryReader?e:new Yd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=awe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return awe()},toJSON(e){return{}},fromPartial(e){return awe()}};function swe(){return{params:R9.Params.fromPartial({})}}x0.QueryParamsResponse={typeUrl:"/cosmos.mint.v1beta1.QueryParamsResponse",encode(e,t=Yd.BinaryWriter.create()){return e.params!==void 0&&R9.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yd.BinaryReader?e:new Yd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=swe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=R9.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=swe();return(0,O5.isSet)(e.params)&&(t.params=R9.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?R9.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=swe();return e.params!==void 0&&e.params!==null&&(t.params=R9.Params.fromPartial(e.params)),t}};function cwe(){return{}}x0.QueryInflationRequest={typeUrl:"/cosmos.mint.v1beta1.QueryInflationRequest",encode(e,t=Yd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Yd.BinaryReader?e:new Yd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=cwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return cwe()},toJSON(e){return{}},fromPartial(e){return cwe()}};function uwe(){return{inflation:new Uint8Array}}x0.QueryInflationResponse={typeUrl:"/cosmos.mint.v1beta1.QueryInflationResponse",encode(e,t=Yd.BinaryWriter.create()){return e.inflation.length!==0&&t.uint32(10).bytes(e.inflation),t},decode(e,t){let r=e instanceof Yd.BinaryReader?e:new Yd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.inflation=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=uwe();return(0,O5.isSet)(e.inflation)&&(t.inflation=(0,O5.bytesFromBase64)(e.inflation)),t},toJSON(e){let t={};return e.inflation!==void 0&&(t.inflation=(0,O5.base64FromBytes)(e.inflation!==void 0?e.inflation:new Uint8Array)),t},fromPartial(e){let t=uwe();return t.inflation=e.inflation??new Uint8Array,t}};function dwe(){return{}}x0.QueryAnnualProvisionsRequest={typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest",encode(e,t=Yd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Yd.BinaryReader?e:new Yd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return dwe()},toJSON(e){return{}},fromPartial(e){return dwe()}};function fwe(){return{annualProvisions:new Uint8Array}}x0.QueryAnnualProvisionsResponse={typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse",encode(e,t=Yd.BinaryWriter.create()){return e.annualProvisions.length!==0&&t.uint32(10).bytes(e.annualProvisions),t},decode(e,t){let r=e instanceof Yd.BinaryReader?e:new Yd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.annualProvisions=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=fwe();return(0,O5.isSet)(e.annualProvisions)&&(t.annualProvisions=(0,O5.bytesFromBase64)(e.annualProvisions)),t},toJSON(e){let t={};return e.annualProvisions!==void 0&&(t.annualProvisions=(0,O5.base64FromBytes)(e.annualProvisions!==void 0?e.annualProvisions:new Uint8Array)),t},fromPartial(e){let t=fwe();return t.annualProvisions=e.annualProvisions??new Uint8Array,t}};var lwe=class{constructor(t){this.rpc=t,this.Params=this.Params.bind(this),this.Inflation=this.Inflation.bind(this),this.AnnualProvisions=this.AnnualProvisions.bind(this)}Params(t={}){let r=x0.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Params",r).then(n=>x0.QueryParamsResponse.decode(new Yd.BinaryReader(n)))}Inflation(t={}){let r=x0.QueryInflationRequest.encode(t).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Inflation",r).then(n=>x0.QueryInflationResponse.decode(new Yd.BinaryReader(n)))}AnnualProvisions(t={}){let r=x0.QueryAnnualProvisionsRequest.encode(t).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","AnnualProvisions",r).then(n=>x0.QueryAnnualProvisionsResponse.decode(new Yd.BinaryReader(n)))}};x0.QueryClientImpl=lwe});var hyt=ir(ate=>{"use strict";J();K();z();Object.defineProperty(ate,"__esModule",{value:!0});ate.setupMintExtension=void 0;var e1n=Uf(),t1n=lyt(),N5=ep();function r1n(e){let t=(0,N5.createProtobufRpcClient)(e),r=new t1n.QueryClientImpl(t);return{mint:{params:async()=>{let{params:i}=await r.Params({});return(0,e1n.assert)(i),{blocksPerYear:i.blocksPerYear,goalBonded:(0,N5.decodeCosmosSdkDecFromProto)(i.goalBonded),inflationMin:(0,N5.decodeCosmosSdkDecFromProto)(i.inflationMin),inflationMax:(0,N5.decodeCosmosSdkDecFromProto)(i.inflationMax),inflationRateChange:(0,N5.decodeCosmosSdkDecFromProto)(i.inflationRateChange),mintDenom:i.mintDenom}},inflation:async()=>{let{inflation:i}=await r.Inflation({});return(0,N5.decodeCosmosSdkDecFromProto)(i)},annualProvisions:async()=>{let{annualProvisions:i}=await r.AnnualProvisions({});return(0,N5.decodeCosmosSdkDecFromProto)(i)}}}}ate.setupMintExtension=r1n});var Ayt=ir(S9=>{"use strict";J();K();z();Object.defineProperty(S9,"__esModule",{value:!0});S9.createSlashingAminoConverters=S9.isAminoMsgUnjail=void 0;function n1n(e){return e.type==="cosmos-sdk/MsgUnjail"}S9.isAminoMsgUnjail=n1n;function i1n(){throw new Error("Not implemented")}S9.createSlashingAminoConverters=i1n});var pyt=ir(f8=>{"use strict";J();K();z();Object.defineProperty(f8,"__esModule",{value:!0});f8.Params=f8.ValidatorSigningInfo=f8.protobufPackage=void 0;var ste=u1(),I9=wS(),C9=Qi(),$f=Hi();f8.protobufPackage="cosmos.slashing.v1beta1";function hwe(){return{address:"",startHeight:BigInt(0),indexOffset:BigInt(0),jailedUntil:ste.Timestamp.fromPartial({}),tombstoned:!1,missedBlocksCounter:BigInt(0)}}f8.ValidatorSigningInfo={typeUrl:"/cosmos.slashing.v1beta1.ValidatorSigningInfo",encode(e,t=C9.BinaryWriter.create()){return e.address!==""&&t.uint32(10).string(e.address),e.startHeight!==BigInt(0)&&t.uint32(16).int64(e.startHeight),e.indexOffset!==BigInt(0)&&t.uint32(24).int64(e.indexOffset),e.jailedUntil!==void 0&&ste.Timestamp.encode(e.jailedUntil,t.uint32(34).fork()).ldelim(),e.tombstoned===!0&&t.uint32(40).bool(e.tombstoned),e.missedBlocksCounter!==BigInt(0)&&t.uint32(48).int64(e.missedBlocksCounter),t},decode(e,t){let r=e instanceof C9.BinaryReader?e:new C9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.string();break;case 2:n.startHeight=r.int64();break;case 3:n.indexOffset=r.int64();break;case 4:n.jailedUntil=ste.Timestamp.decode(r,r.uint32());break;case 5:n.tombstoned=r.bool();break;case 6:n.missedBlocksCounter=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=hwe();return(0,$f.isSet)(e.address)&&(t.address=String(e.address)),(0,$f.isSet)(e.startHeight)&&(t.startHeight=BigInt(e.startHeight.toString())),(0,$f.isSet)(e.indexOffset)&&(t.indexOffset=BigInt(e.indexOffset.toString())),(0,$f.isSet)(e.jailedUntil)&&(t.jailedUntil=(0,$f.fromJsonTimestamp)(e.jailedUntil)),(0,$f.isSet)(e.tombstoned)&&(t.tombstoned=!!e.tombstoned),(0,$f.isSet)(e.missedBlocksCounter)&&(t.missedBlocksCounter=BigInt(e.missedBlocksCounter.toString())),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.startHeight!==void 0&&(t.startHeight=(e.startHeight||BigInt(0)).toString()),e.indexOffset!==void 0&&(t.indexOffset=(e.indexOffset||BigInt(0)).toString()),e.jailedUntil!==void 0&&(t.jailedUntil=(0,$f.fromTimestamp)(e.jailedUntil).toISOString()),e.tombstoned!==void 0&&(t.tombstoned=e.tombstoned),e.missedBlocksCounter!==void 0&&(t.missedBlocksCounter=(e.missedBlocksCounter||BigInt(0)).toString()),t},fromPartial(e){let t=hwe();return t.address=e.address??"",e.startHeight!==void 0&&e.startHeight!==null&&(t.startHeight=BigInt(e.startHeight.toString())),e.indexOffset!==void 0&&e.indexOffset!==null&&(t.indexOffset=BigInt(e.indexOffset.toString())),e.jailedUntil!==void 0&&e.jailedUntil!==null&&(t.jailedUntil=ste.Timestamp.fromPartial(e.jailedUntil)),t.tombstoned=e.tombstoned??!1,e.missedBlocksCounter!==void 0&&e.missedBlocksCounter!==null&&(t.missedBlocksCounter=BigInt(e.missedBlocksCounter.toString())),t}};function Awe(){return{signedBlocksWindow:BigInt(0),minSignedPerWindow:new Uint8Array,downtimeJailDuration:I9.Duration.fromPartial({}),slashFractionDoubleSign:new Uint8Array,slashFractionDowntime:new Uint8Array}}f8.Params={typeUrl:"/cosmos.slashing.v1beta1.Params",encode(e,t=C9.BinaryWriter.create()){return e.signedBlocksWindow!==BigInt(0)&&t.uint32(8).int64(e.signedBlocksWindow),e.minSignedPerWindow.length!==0&&t.uint32(18).bytes(e.minSignedPerWindow),e.downtimeJailDuration!==void 0&&I9.Duration.encode(e.downtimeJailDuration,t.uint32(26).fork()).ldelim(),e.slashFractionDoubleSign.length!==0&&t.uint32(34).bytes(e.slashFractionDoubleSign),e.slashFractionDowntime.length!==0&&t.uint32(42).bytes(e.slashFractionDowntime),t},decode(e,t){let r=e instanceof C9.BinaryReader?e:new C9.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Awe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.signedBlocksWindow=r.int64();break;case 2:n.minSignedPerWindow=r.bytes();break;case 3:n.downtimeJailDuration=I9.Duration.decode(r,r.uint32());break;case 4:n.slashFractionDoubleSign=r.bytes();break;case 5:n.slashFractionDowntime=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Awe();return(0,$f.isSet)(e.signedBlocksWindow)&&(t.signedBlocksWindow=BigInt(e.signedBlocksWindow.toString())),(0,$f.isSet)(e.minSignedPerWindow)&&(t.minSignedPerWindow=(0,$f.bytesFromBase64)(e.minSignedPerWindow)),(0,$f.isSet)(e.downtimeJailDuration)&&(t.downtimeJailDuration=I9.Duration.fromJSON(e.downtimeJailDuration)),(0,$f.isSet)(e.slashFractionDoubleSign)&&(t.slashFractionDoubleSign=(0,$f.bytesFromBase64)(e.slashFractionDoubleSign)),(0,$f.isSet)(e.slashFractionDowntime)&&(t.slashFractionDowntime=(0,$f.bytesFromBase64)(e.slashFractionDowntime)),t},toJSON(e){let t={};return e.signedBlocksWindow!==void 0&&(t.signedBlocksWindow=(e.signedBlocksWindow||BigInt(0)).toString()),e.minSignedPerWindow!==void 0&&(t.minSignedPerWindow=(0,$f.base64FromBytes)(e.minSignedPerWindow!==void 0?e.minSignedPerWindow:new Uint8Array)),e.downtimeJailDuration!==void 0&&(t.downtimeJailDuration=e.downtimeJailDuration?I9.Duration.toJSON(e.downtimeJailDuration):void 0),e.slashFractionDoubleSign!==void 0&&(t.slashFractionDoubleSign=(0,$f.base64FromBytes)(e.slashFractionDoubleSign!==void 0?e.slashFractionDoubleSign:new Uint8Array)),e.slashFractionDowntime!==void 0&&(t.slashFractionDowntime=(0,$f.base64FromBytes)(e.slashFractionDowntime!==void 0?e.slashFractionDowntime:new Uint8Array)),t},fromPartial(e){let t=Awe();return e.signedBlocksWindow!==void 0&&e.signedBlocksWindow!==null&&(t.signedBlocksWindow=BigInt(e.signedBlocksWindow.toString())),t.minSignedPerWindow=e.minSignedPerWindow??new Uint8Array,e.downtimeJailDuration!==void 0&&e.downtimeJailDuration!==null&&(t.downtimeJailDuration=I9.Duration.fromPartial(e.downtimeJailDuration)),t.slashFractionDoubleSign=e.slashFractionDoubleSign??new Uint8Array,t.slashFractionDowntime=e.slashFractionDowntime??new Uint8Array,t}}});var gyt=ir(T0=>{"use strict";J();K();z();Object.defineProperty(T0,"__esModule",{value:!0});T0.QueryClientImpl=T0.QuerySigningInfosResponse=T0.QuerySigningInfosRequest=T0.QuerySigningInfoResponse=T0.QuerySigningInfoRequest=T0.QueryParamsResponse=T0.QueryParamsRequest=T0.protobufPackage=void 0;var wy=jA(),lh=pyt(),Wd=Qi(),dQ=Hi();T0.protobufPackage="cosmos.slashing.v1beta1";function pwe(){return{}}T0.QueryParamsRequest={typeUrl:"/cosmos.slashing.v1beta1.QueryParamsRequest",encode(e,t=Wd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Wd.BinaryReader?e:new Wd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return pwe()},toJSON(e){return{}},fromPartial(e){return pwe()}};function gwe(){return{params:lh.Params.fromPartial({})}}T0.QueryParamsResponse={typeUrl:"/cosmos.slashing.v1beta1.QueryParamsResponse",encode(e,t=Wd.BinaryWriter.create()){return e.params!==void 0&&lh.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Wd.BinaryReader?e:new Wd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=gwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=lh.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=gwe();return(0,dQ.isSet)(e.params)&&(t.params=lh.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?lh.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=gwe();return e.params!==void 0&&e.params!==null&&(t.params=lh.Params.fromPartial(e.params)),t}};function _we(){return{consAddress:""}}T0.QuerySigningInfoRequest={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfoRequest",encode(e,t=Wd.BinaryWriter.create()){return e.consAddress!==""&&t.uint32(10).string(e.consAddress),t},decode(e,t){let r=e instanceof Wd.BinaryReader?e:new Wd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_we();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.consAddress=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=_we();return(0,dQ.isSet)(e.consAddress)&&(t.consAddress=String(e.consAddress)),t},toJSON(e){let t={};return e.consAddress!==void 0&&(t.consAddress=e.consAddress),t},fromPartial(e){let t=_we();return t.consAddress=e.consAddress??"",t}};function mwe(){return{valSigningInfo:lh.ValidatorSigningInfo.fromPartial({})}}T0.QuerySigningInfoResponse={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfoResponse",encode(e,t=Wd.BinaryWriter.create()){return e.valSigningInfo!==void 0&&lh.ValidatorSigningInfo.encode(e.valSigningInfo,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Wd.BinaryReader?e:new Wd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.valSigningInfo=lh.ValidatorSigningInfo.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=mwe();return(0,dQ.isSet)(e.valSigningInfo)&&(t.valSigningInfo=lh.ValidatorSigningInfo.fromJSON(e.valSigningInfo)),t},toJSON(e){let t={};return e.valSigningInfo!==void 0&&(t.valSigningInfo=e.valSigningInfo?lh.ValidatorSigningInfo.toJSON(e.valSigningInfo):void 0),t},fromPartial(e){let t=mwe();return e.valSigningInfo!==void 0&&e.valSigningInfo!==null&&(t.valSigningInfo=lh.ValidatorSigningInfo.fromPartial(e.valSigningInfo)),t}};function ywe(){return{pagination:void 0}}T0.QuerySigningInfosRequest={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfosRequest",encode(e,t=Wd.BinaryWriter.create()){return e.pagination!==void 0&&wy.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Wd.BinaryReader?e:new Wd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ywe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pagination=wy.PageRequest.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=ywe();return(0,dQ.isSet)(e.pagination)&&(t.pagination=wy.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.pagination!==void 0&&(t.pagination=e.pagination?wy.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=ywe();return e.pagination!==void 0&&e.pagination!==null&&(t.pagination=wy.PageRequest.fromPartial(e.pagination)),t}};function bwe(){return{info:[],pagination:void 0}}T0.QuerySigningInfosResponse={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfosResponse",encode(e,t=Wd.BinaryWriter.create()){for(let r of e.info)lh.ValidatorSigningInfo.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&wy.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Wd.BinaryReader?e:new Wd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.info.push(lh.ValidatorSigningInfo.decode(r,r.uint32()));break;case 2:n.pagination=wy.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=bwe();return Array.isArray(e?.info)&&(t.info=e.info.map(r=>lh.ValidatorSigningInfo.fromJSON(r))),(0,dQ.isSet)(e.pagination)&&(t.pagination=wy.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.info?t.info=e.info.map(r=>r?lh.ValidatorSigningInfo.toJSON(r):void 0):t.info=[],e.pagination!==void 0&&(t.pagination=e.pagination?wy.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=bwe();return t.info=e.info?.map(r=>lh.ValidatorSigningInfo.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=wy.PageResponse.fromPartial(e.pagination)),t}};var Ewe=class{constructor(t){this.rpc=t,this.Params=this.Params.bind(this),this.SigningInfo=this.SigningInfo.bind(this),this.SigningInfos=this.SigningInfos.bind(this)}Params(t={}){let r=T0.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","Params",r).then(n=>T0.QueryParamsResponse.decode(new Wd.BinaryReader(n)))}SigningInfo(t){let r=T0.QuerySigningInfoRequest.encode(t).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfo",r).then(n=>T0.QuerySigningInfoResponse.decode(new Wd.BinaryReader(n)))}SigningInfos(t={pagination:wy.PageRequest.fromPartial({})}){let r=T0.QuerySigningInfosRequest.encode(t).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfos",r).then(n=>T0.QuerySigningInfosResponse.decode(new Wd.BinaryReader(n)))}};T0.QueryClientImpl=Ewe});var myt=ir(cte=>{"use strict";J();K();z();Object.defineProperty(cte,"__esModule",{value:!0});cte.setupSlashingExtension=void 0;var o1n=gyt(),_yt=ep();function a1n(e){let t=(0,_yt.createProtobufRpcClient)(e),r=new o1n.QueryClientImpl(t);return{slashing:{signingInfo:async i=>await r.SigningInfo({consAddress:i}),signingInfos:async i=>await r.SigningInfos({pagination:(0,_yt.createPagination)(i)}),params:async()=>await r.Params({})}}}cte.setupSlashingExtension=a1n});var Eyt=ir(kl=>{"use strict";J();K();z();Object.defineProperty(kl,"__esModule",{value:!0});kl.createStakingAminoConverters=kl.isAminoMsgCancelUnbondingDelegation=kl.isAminoMsgUndelegate=kl.isAminoMsgBeginRedelegate=kl.isAminoMsgDelegate=kl.isAminoMsgEditValidator=kl.isAminoMsgCreateValidator=kl.protoDecimalToJson=void 0;var byt=Uh(),yyt=SS(),BS=Uf();function fQ(e){let t=byt.Decimal.fromAtomics(e,18),[r,i]=t.toString().split(".");return`${r}.${(i??"").padEnd(18,"0")}`}kl.protoDecimalToJson=fQ;function ute(e){return byt.Decimal.fromUserInput(e,18).atomics}function s1n(e){return e.type==="cosmos-sdk/MsgCreateValidator"}kl.isAminoMsgCreateValidator=s1n;function c1n(e){return e.type==="cosmos-sdk/MsgEditValidator"}kl.isAminoMsgEditValidator=c1n;function u1n(e){return e.type==="cosmos-sdk/MsgDelegate"}kl.isAminoMsgDelegate=u1n;function d1n(e){return e.type==="cosmos-sdk/MsgBeginRedelegate"}kl.isAminoMsgBeginRedelegate=d1n;function f1n(e){return e.type==="cosmos-sdk/MsgUndelegate"}kl.isAminoMsgUndelegate=f1n;function l1n(e){return e.type==="cosmos-sdk/MsgCancelUnbondingDelegation"}kl.isAminoMsgCancelUnbondingDelegation=l1n;function h1n(){return{"/cosmos.staking.v1beta1.MsgBeginRedelegate":{aminoType:"cosmos-sdk/MsgBeginRedelegate",toAmino:({delegatorAddress:e,validatorSrcAddress:t,validatorDstAddress:r,amount:i})=>((0,BS.assertDefinedAndNotNull)(i,"missing amount"),{delegator_address:e,validator_src_address:t,validator_dst_address:r,amount:i}),fromAmino:({delegator_address:e,validator_src_address:t,validator_dst_address:r,amount:i})=>({delegatorAddress:e,validatorSrcAddress:t,validatorDstAddress:r,amount:i})},"/cosmos.staking.v1beta1.MsgCreateValidator":{aminoType:"cosmos-sdk/MsgCreateValidator",toAmino:({description:e,commission:t,minSelfDelegation:r,delegatorAddress:i,validatorAddress:n,pubkey:o,value:d})=>((0,BS.assertDefinedAndNotNull)(e,"missing description"),(0,BS.assertDefinedAndNotNull)(t,"missing commission"),(0,BS.assertDefinedAndNotNull)(o,"missing pubkey"),(0,BS.assertDefinedAndNotNull)(d,"missing value"),{description:{moniker:e.moniker,identity:e.identity,website:e.website,security_contact:e.securityContact,details:e.details},commission:{rate:fQ(t.rate),max_rate:fQ(t.maxRate),max_change_rate:fQ(t.maxChangeRate)},min_self_delegation:r,delegator_address:i,validator_address:n,pubkey:(0,yyt.decodePubkey)(o),value:d}),fromAmino:({description:e,commission:t,min_self_delegation:r,delegator_address:i,validator_address:n,pubkey:o,value:d})=>({description:{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.security_contact,details:e.details},commission:{rate:ute(t.rate),maxRate:ute(t.max_rate),maxChangeRate:ute(t.max_change_rate)},minSelfDelegation:r,delegatorAddress:i,validatorAddress:n,pubkey:(0,yyt.encodePubkey)(o),value:d})},"/cosmos.staking.v1beta1.MsgDelegate":{aminoType:"cosmos-sdk/MsgDelegate",toAmino:({delegatorAddress:e,validatorAddress:t,amount:r})=>((0,BS.assertDefinedAndNotNull)(r,"missing amount"),{delegator_address:e,validator_address:t,amount:r}),fromAmino:({delegator_address:e,validator_address:t,amount:r})=>({delegatorAddress:e,validatorAddress:t,amount:r})},"/cosmos.staking.v1beta1.MsgEditValidator":{aminoType:"cosmos-sdk/MsgEditValidator",toAmino:({description:e,commissionRate:t,minSelfDelegation:r,validatorAddress:i})=>((0,BS.assertDefinedAndNotNull)(e,"missing description"),{description:{moniker:e.moniker,identity:e.identity,website:e.website,security_contact:e.securityContact,details:e.details},commission_rate:t?fQ(t):void 0,min_self_delegation:r||void 0,validator_address:i}),fromAmino:({description:e,commission_rate:t,min_self_delegation:r,validator_address:i})=>({description:{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.security_contact,details:e.details},commissionRate:t?ute(t):"",minSelfDelegation:r??"",validatorAddress:i})},"/cosmos.staking.v1beta1.MsgUndelegate":{aminoType:"cosmos-sdk/MsgUndelegate",toAmino:({delegatorAddress:e,validatorAddress:t,amount:r})=>((0,BS.assertDefinedAndNotNull)(r,"missing amount"),{delegator_address:e,validator_address:t,amount:r}),fromAmino:({delegator_address:e,validator_address:t,amount:r})=>({delegatorAddress:e,validatorAddress:t,amount:r})},"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation":{aminoType:"cosmos-sdk/MsgCancelUnbondingDelegation",toAmino:({delegatorAddress:e,validatorAddress:t,amount:r,creationHeight:i})=>((0,BS.assertDefinedAndNotNull)(r,"missing amount"),{delegator_address:e,validator_address:t,amount:r,creation_height:i.toString()}),fromAmino:({delegator_address:e,validator_address:t,amount:r,creation_height:i})=>({delegatorAddress:e,validatorAddress:t,amount:r,creationHeight:BigInt(i)})}}}kl.createStakingAminoConverters=h1n});var vyt=ir(Ts=>{"use strict";J();K();z();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.HashedParams=Ts.VersionParams=Ts.ValidatorParams=Ts.EvidenceParams=Ts.BlockParams=Ts.ConsensusParams=Ts.protobufPackage=void 0;var w9=wS(),Pl=Qi(),L2=Hi();Ts.protobufPackage="tendermint.types";function vwe(){return{block:void 0,evidence:void 0,validator:void 0,version:void 0}}Ts.ConsensusParams={typeUrl:"/tendermint.types.ConsensusParams",encode(e,t=Pl.BinaryWriter.create()){return e.block!==void 0&&Ts.BlockParams.encode(e.block,t.uint32(10).fork()).ldelim(),e.evidence!==void 0&&Ts.EvidenceParams.encode(e.evidence,t.uint32(18).fork()).ldelim(),e.validator!==void 0&&Ts.ValidatorParams.encode(e.validator,t.uint32(26).fork()).ldelim(),e.version!==void 0&&Ts.VersionParams.encode(e.version,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof Pl.BinaryReader?e:new Pl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.block=Ts.BlockParams.decode(r,r.uint32());break;case 2:n.evidence=Ts.EvidenceParams.decode(r,r.uint32());break;case 3:n.validator=Ts.ValidatorParams.decode(r,r.uint32());break;case 4:n.version=Ts.VersionParams.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vwe();return(0,L2.isSet)(e.block)&&(t.block=Ts.BlockParams.fromJSON(e.block)),(0,L2.isSet)(e.evidence)&&(t.evidence=Ts.EvidenceParams.fromJSON(e.evidence)),(0,L2.isSet)(e.validator)&&(t.validator=Ts.ValidatorParams.fromJSON(e.validator)),(0,L2.isSet)(e.version)&&(t.version=Ts.VersionParams.fromJSON(e.version)),t},toJSON(e){let t={};return e.block!==void 0&&(t.block=e.block?Ts.BlockParams.toJSON(e.block):void 0),e.evidence!==void 0&&(t.evidence=e.evidence?Ts.EvidenceParams.toJSON(e.evidence):void 0),e.validator!==void 0&&(t.validator=e.validator?Ts.ValidatorParams.toJSON(e.validator):void 0),e.version!==void 0&&(t.version=e.version?Ts.VersionParams.toJSON(e.version):void 0),t},fromPartial(e){let t=vwe();return e.block!==void 0&&e.block!==null&&(t.block=Ts.BlockParams.fromPartial(e.block)),e.evidence!==void 0&&e.evidence!==null&&(t.evidence=Ts.EvidenceParams.fromPartial(e.evidence)),e.validator!==void 0&&e.validator!==null&&(t.validator=Ts.ValidatorParams.fromPartial(e.validator)),e.version!==void 0&&e.version!==null&&(t.version=Ts.VersionParams.fromPartial(e.version)),t}};function Rwe(){return{maxBytes:BigInt(0),maxGas:BigInt(0)}}Ts.BlockParams={typeUrl:"/tendermint.types.BlockParams",encode(e,t=Pl.BinaryWriter.create()){return e.maxBytes!==BigInt(0)&&t.uint32(8).int64(e.maxBytes),e.maxGas!==BigInt(0)&&t.uint32(16).int64(e.maxGas),t},decode(e,t){let r=e instanceof Pl.BinaryReader?e:new Pl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Rwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.maxBytes=r.int64();break;case 2:n.maxGas=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Rwe();return(0,L2.isSet)(e.maxBytes)&&(t.maxBytes=BigInt(e.maxBytes.toString())),(0,L2.isSet)(e.maxGas)&&(t.maxGas=BigInt(e.maxGas.toString())),t},toJSON(e){let t={};return e.maxBytes!==void 0&&(t.maxBytes=(e.maxBytes||BigInt(0)).toString()),e.maxGas!==void 0&&(t.maxGas=(e.maxGas||BigInt(0)).toString()),t},fromPartial(e){let t=Rwe();return e.maxBytes!==void 0&&e.maxBytes!==null&&(t.maxBytes=BigInt(e.maxBytes.toString())),e.maxGas!==void 0&&e.maxGas!==null&&(t.maxGas=BigInt(e.maxGas.toString())),t}};function Swe(){return{maxAgeNumBlocks:BigInt(0),maxAgeDuration:w9.Duration.fromPartial({}),maxBytes:BigInt(0)}}Ts.EvidenceParams={typeUrl:"/tendermint.types.EvidenceParams",encode(e,t=Pl.BinaryWriter.create()){return e.maxAgeNumBlocks!==BigInt(0)&&t.uint32(8).int64(e.maxAgeNumBlocks),e.maxAgeDuration!==void 0&&w9.Duration.encode(e.maxAgeDuration,t.uint32(18).fork()).ldelim(),e.maxBytes!==BigInt(0)&&t.uint32(24).int64(e.maxBytes),t},decode(e,t){let r=e instanceof Pl.BinaryReader?e:new Pl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Swe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.maxAgeNumBlocks=r.int64();break;case 2:n.maxAgeDuration=w9.Duration.decode(r,r.uint32());break;case 3:n.maxBytes=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Swe();return(0,L2.isSet)(e.maxAgeNumBlocks)&&(t.maxAgeNumBlocks=BigInt(e.maxAgeNumBlocks.toString())),(0,L2.isSet)(e.maxAgeDuration)&&(t.maxAgeDuration=w9.Duration.fromJSON(e.maxAgeDuration)),(0,L2.isSet)(e.maxBytes)&&(t.maxBytes=BigInt(e.maxBytes.toString())),t},toJSON(e){let t={};return e.maxAgeNumBlocks!==void 0&&(t.maxAgeNumBlocks=(e.maxAgeNumBlocks||BigInt(0)).toString()),e.maxAgeDuration!==void 0&&(t.maxAgeDuration=e.maxAgeDuration?w9.Duration.toJSON(e.maxAgeDuration):void 0),e.maxBytes!==void 0&&(t.maxBytes=(e.maxBytes||BigInt(0)).toString()),t},fromPartial(e){let t=Swe();return e.maxAgeNumBlocks!==void 0&&e.maxAgeNumBlocks!==null&&(t.maxAgeNumBlocks=BigInt(e.maxAgeNumBlocks.toString())),e.maxAgeDuration!==void 0&&e.maxAgeDuration!==null&&(t.maxAgeDuration=w9.Duration.fromPartial(e.maxAgeDuration)),e.maxBytes!==void 0&&e.maxBytes!==null&&(t.maxBytes=BigInt(e.maxBytes.toString())),t}};function Iwe(){return{pubKeyTypes:[]}}Ts.ValidatorParams={typeUrl:"/tendermint.types.ValidatorParams",encode(e,t=Pl.BinaryWriter.create()){for(let r of e.pubKeyTypes)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof Pl.BinaryReader?e:new Pl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Iwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pubKeyTypes.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=Iwe();return Array.isArray(e?.pubKeyTypes)&&(t.pubKeyTypes=e.pubKeyTypes.map(r=>String(r))),t},toJSON(e){let t={};return e.pubKeyTypes?t.pubKeyTypes=e.pubKeyTypes.map(r=>r):t.pubKeyTypes=[],t},fromPartial(e){let t=Iwe();return t.pubKeyTypes=e.pubKeyTypes?.map(r=>r)||[],t}};function Cwe(){return{app:BigInt(0)}}Ts.VersionParams={typeUrl:"/tendermint.types.VersionParams",encode(e,t=Pl.BinaryWriter.create()){return e.app!==BigInt(0)&&t.uint32(8).uint64(e.app),t},decode(e,t){let r=e instanceof Pl.BinaryReader?e:new Pl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Cwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.app=r.uint64():r.skipType(o&7)}return n},fromJSON(e){let t=Cwe();return(0,L2.isSet)(e.app)&&(t.app=BigInt(e.app.toString())),t},toJSON(e){let t={};return e.app!==void 0&&(t.app=(e.app||BigInt(0)).toString()),t},fromPartial(e){let t=Cwe();return e.app!==void 0&&e.app!==null&&(t.app=BigInt(e.app.toString())),t}};function wwe(){return{blockMaxBytes:BigInt(0),blockMaxGas:BigInt(0)}}Ts.HashedParams={typeUrl:"/tendermint.types.HashedParams",encode(e,t=Pl.BinaryWriter.create()){return e.blockMaxBytes!==BigInt(0)&&t.uint32(8).int64(e.blockMaxBytes),e.blockMaxGas!==BigInt(0)&&t.uint32(16).int64(e.blockMaxGas),t},decode(e,t){let r=e instanceof Pl.BinaryReader?e:new Pl.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=wwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.blockMaxBytes=r.int64();break;case 2:n.blockMaxGas=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=wwe();return(0,L2.isSet)(e.blockMaxBytes)&&(t.blockMaxBytes=BigInt(e.blockMaxBytes.toString())),(0,L2.isSet)(e.blockMaxGas)&&(t.blockMaxGas=BigInt(e.blockMaxGas.toString())),t},toJSON(e){let t={};return e.blockMaxBytes!==void 0&&(t.blockMaxBytes=(e.blockMaxBytes||BigInt(0)).toString()),e.blockMaxGas!==void 0&&(t.blockMaxGas=(e.blockMaxGas||BigInt(0)).toString()),t},fromPartial(e){let t=wwe();return e.blockMaxBytes!==void 0&&e.blockMaxBytes!==null&&(t.blockMaxBytes=BigInt(e.blockMaxBytes.toString())),e.blockMaxGas!==void 0&&e.blockMaxGas!==null&&(t.blockMaxGas=BigInt(e.blockMaxGas.toString())),t}}});var E5e=ir(qt=>{"use strict";J();K();z();Object.defineProperty(qt,"__esModule",{value:!0});qt.ResponsePrepareProposal=qt.ResponseApplySnapshotChunk=qt.ResponseLoadSnapshotChunk=qt.ResponseOfferSnapshot=qt.ResponseListSnapshots=qt.ResponseCommit=qt.ResponseEndBlock=qt.ResponseDeliverTx=qt.ResponseCheckTx=qt.ResponseBeginBlock=qt.ResponseQuery=qt.ResponseInitChain=qt.ResponseInfo=qt.ResponseFlush=qt.ResponseEcho=qt.ResponseException=qt.Response=qt.RequestProcessProposal=qt.RequestPrepareProposal=qt.RequestApplySnapshotChunk=qt.RequestLoadSnapshotChunk=qt.RequestOfferSnapshot=qt.RequestListSnapshots=qt.RequestCommit=qt.RequestEndBlock=qt.RequestDeliverTx=qt.RequestCheckTx=qt.RequestBeginBlock=qt.RequestQuery=qt.RequestInitChain=qt.RequestInfo=qt.RequestFlush=qt.RequestEcho=qt.Request=qt.misbehaviorTypeToJSON=qt.misbehaviorTypeFromJSON=qt.MisbehaviorType=qt.responseProcessProposal_ProposalStatusToJSON=qt.responseProcessProposal_ProposalStatusFromJSON=qt.ResponseProcessProposal_ProposalStatus=qt.responseApplySnapshotChunk_ResultToJSON=qt.responseApplySnapshotChunk_ResultFromJSON=qt.ResponseApplySnapshotChunk_Result=qt.responseOfferSnapshot_ResultToJSON=qt.responseOfferSnapshot_ResultFromJSON=qt.ResponseOfferSnapshot_Result=qt.checkTxTypeToJSON=qt.checkTxTypeFromJSON=qt.CheckTxType=qt.protobufPackage=void 0;qt.ABCIApplicationClientImpl=qt.Snapshot=qt.Misbehavior=qt.ExtendedVoteInfo=qt.VoteInfo=qt.ValidatorUpdate=qt.Validator=qt.TxResult=qt.EventAttribute=qt.Event=qt.ExtendedCommitInfo=qt.CommitInfo=qt.ResponseProcessProposal=void 0;var pA=u1(),fp=vyt(),O9=C5(),lQ=wCe(),N9=BCe(),an=Qi(),Ur=Hi();qt.protobufPackage="tendermint.abci";var l8;(function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(l8||(qt.CheckTxType=l8={}));function Ryt(e){switch(e){case 0:case"NEW":return l8.NEW;case 1:case"RECHECK":return l8.RECHECK;default:return l8.UNRECOGNIZED}}qt.checkTxTypeFromJSON=Ryt;function Syt(e){switch(e){case l8.NEW:return"NEW";case l8.RECHECK:return"RECHECK";case l8.UNRECOGNIZED:default:return"UNRECOGNIZED"}}qt.checkTxTypeToJSON=Syt;var hA;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hA||(qt.ResponseOfferSnapshot_Result=hA={}));function Iyt(e){switch(e){case 0:case"UNKNOWN":return hA.UNKNOWN;case 1:case"ACCEPT":return hA.ACCEPT;case 2:case"ABORT":return hA.ABORT;case 3:case"REJECT":return hA.REJECT;case 4:case"REJECT_FORMAT":return hA.REJECT_FORMAT;case 5:case"REJECT_SENDER":return hA.REJECT_SENDER;default:return hA.UNRECOGNIZED}}qt.responseOfferSnapshot_ResultFromJSON=Iyt;function Cyt(e){switch(e){case hA.UNKNOWN:return"UNKNOWN";case hA.ACCEPT:return"ACCEPT";case hA.ABORT:return"ABORT";case hA.REJECT:return"REJECT";case hA.REJECT_FORMAT:return"REJECT_FORMAT";case hA.REJECT_SENDER:return"REJECT_SENDER";case hA.UNRECOGNIZED:default:return"UNRECOGNIZED"}}qt.responseOfferSnapshot_ResultToJSON=Cyt;var AA;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AA||(qt.ResponseApplySnapshotChunk_Result=AA={}));function wyt(e){switch(e){case 0:case"UNKNOWN":return AA.UNKNOWN;case 1:case"ACCEPT":return AA.ACCEPT;case 2:case"ABORT":return AA.ABORT;case 3:case"RETRY":return AA.RETRY;case 4:case"RETRY_SNAPSHOT":return AA.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return AA.REJECT_SNAPSHOT;default:return AA.UNRECOGNIZED}}qt.responseApplySnapshotChunk_ResultFromJSON=wyt;function Oyt(e){switch(e){case AA.UNKNOWN:return"UNKNOWN";case AA.ACCEPT:return"ACCEPT";case AA.ABORT:return"ABORT";case AA.RETRY:return"RETRY";case AA.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case AA.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";case AA.UNRECOGNIZED:default:return"UNRECOGNIZED"}}qt.responseApplySnapshotChunk_ResultToJSON=Oyt;var VE;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.REJECT=2]="REJECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VE||(qt.ResponseProcessProposal_ProposalStatus=VE={}));function Nyt(e){switch(e){case 0:case"UNKNOWN":return VE.UNKNOWN;case 1:case"ACCEPT":return VE.ACCEPT;case 2:case"REJECT":return VE.REJECT;default:return VE.UNRECOGNIZED}}qt.responseProcessProposal_ProposalStatusFromJSON=Nyt;function xyt(e){switch(e){case VE.UNKNOWN:return"UNKNOWN";case VE.ACCEPT:return"ACCEPT";case VE.REJECT:return"REJECT";case VE.UNRECOGNIZED:default:return"UNRECOGNIZED"}}qt.responseProcessProposal_ProposalStatusToJSON=xyt;var JE;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JE||(qt.MisbehaviorType=JE={}));function Tyt(e){switch(e){case 0:case"UNKNOWN":return JE.UNKNOWN;case 1:case"DUPLICATE_VOTE":return JE.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return JE.LIGHT_CLIENT_ATTACK;default:return JE.UNRECOGNIZED}}qt.misbehaviorTypeFromJSON=Tyt;function Byt(e){switch(e){case JE.UNKNOWN:return"UNKNOWN";case JE.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case JE.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";case JE.UNRECOGNIZED:default:return"UNRECOGNIZED"}}qt.misbehaviorTypeToJSON=Byt;function Owe(){return{echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,beginBlock:void 0,checkTx:void 0,deliverTx:void 0,endBlock:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0}}qt.Request={typeUrl:"/tendermint.abci.Request",encode(e,t=an.BinaryWriter.create()){return e.echo!==void 0&&qt.RequestEcho.encode(e.echo,t.uint32(10).fork()).ldelim(),e.flush!==void 0&&qt.RequestFlush.encode(e.flush,t.uint32(18).fork()).ldelim(),e.info!==void 0&&qt.RequestInfo.encode(e.info,t.uint32(26).fork()).ldelim(),e.initChain!==void 0&&qt.RequestInitChain.encode(e.initChain,t.uint32(42).fork()).ldelim(),e.query!==void 0&&qt.RequestQuery.encode(e.query,t.uint32(50).fork()).ldelim(),e.beginBlock!==void 0&&qt.RequestBeginBlock.encode(e.beginBlock,t.uint32(58).fork()).ldelim(),e.checkTx!==void 0&&qt.RequestCheckTx.encode(e.checkTx,t.uint32(66).fork()).ldelim(),e.deliverTx!==void 0&&qt.RequestDeliverTx.encode(e.deliverTx,t.uint32(74).fork()).ldelim(),e.endBlock!==void 0&&qt.RequestEndBlock.encode(e.endBlock,t.uint32(82).fork()).ldelim(),e.commit!==void 0&&qt.RequestCommit.encode(e.commit,t.uint32(90).fork()).ldelim(),e.listSnapshots!==void 0&&qt.RequestListSnapshots.encode(e.listSnapshots,t.uint32(98).fork()).ldelim(),e.offerSnapshot!==void 0&&qt.RequestOfferSnapshot.encode(e.offerSnapshot,t.uint32(106).fork()).ldelim(),e.loadSnapshotChunk!==void 0&&qt.RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,t.uint32(114).fork()).ldelim(),e.applySnapshotChunk!==void 0&&qt.RequestApplySnapshotChunk.encode(e.applySnapshotChunk,t.uint32(122).fork()).ldelim(),e.prepareProposal!==void 0&&qt.RequestPrepareProposal.encode(e.prepareProposal,t.uint32(130).fork()).ldelim(),e.processProposal!==void 0&&qt.RequestProcessProposal.encode(e.processProposal,t.uint32(138).fork()).ldelim(),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Owe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.echo=qt.RequestEcho.decode(r,r.uint32());break;case 2:n.flush=qt.RequestFlush.decode(r,r.uint32());break;case 3:n.info=qt.RequestInfo.decode(r,r.uint32());break;case 5:n.initChain=qt.RequestInitChain.decode(r,r.uint32());break;case 6:n.query=qt.RequestQuery.decode(r,r.uint32());break;case 7:n.beginBlock=qt.RequestBeginBlock.decode(r,r.uint32());break;case 8:n.checkTx=qt.RequestCheckTx.decode(r,r.uint32());break;case 9:n.deliverTx=qt.RequestDeliverTx.decode(r,r.uint32());break;case 10:n.endBlock=qt.RequestEndBlock.decode(r,r.uint32());break;case 11:n.commit=qt.RequestCommit.decode(r,r.uint32());break;case 12:n.listSnapshots=qt.RequestListSnapshots.decode(r,r.uint32());break;case 13:n.offerSnapshot=qt.RequestOfferSnapshot.decode(r,r.uint32());break;case 14:n.loadSnapshotChunk=qt.RequestLoadSnapshotChunk.decode(r,r.uint32());break;case 15:n.applySnapshotChunk=qt.RequestApplySnapshotChunk.decode(r,r.uint32());break;case 16:n.prepareProposal=qt.RequestPrepareProposal.decode(r,r.uint32());break;case 17:n.processProposal=qt.RequestProcessProposal.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Owe();return(0,Ur.isSet)(e.echo)&&(t.echo=qt.RequestEcho.fromJSON(e.echo)),(0,Ur.isSet)(e.flush)&&(t.flush=qt.RequestFlush.fromJSON(e.flush)),(0,Ur.isSet)(e.info)&&(t.info=qt.RequestInfo.fromJSON(e.info)),(0,Ur.isSet)(e.initChain)&&(t.initChain=qt.RequestInitChain.fromJSON(e.initChain)),(0,Ur.isSet)(e.query)&&(t.query=qt.RequestQuery.fromJSON(e.query)),(0,Ur.isSet)(e.beginBlock)&&(t.beginBlock=qt.RequestBeginBlock.fromJSON(e.beginBlock)),(0,Ur.isSet)(e.checkTx)&&(t.checkTx=qt.RequestCheckTx.fromJSON(e.checkTx)),(0,Ur.isSet)(e.deliverTx)&&(t.deliverTx=qt.RequestDeliverTx.fromJSON(e.deliverTx)),(0,Ur.isSet)(e.endBlock)&&(t.endBlock=qt.RequestEndBlock.fromJSON(e.endBlock)),(0,Ur.isSet)(e.commit)&&(t.commit=qt.RequestCommit.fromJSON(e.commit)),(0,Ur.isSet)(e.listSnapshots)&&(t.listSnapshots=qt.RequestListSnapshots.fromJSON(e.listSnapshots)),(0,Ur.isSet)(e.offerSnapshot)&&(t.offerSnapshot=qt.RequestOfferSnapshot.fromJSON(e.offerSnapshot)),(0,Ur.isSet)(e.loadSnapshotChunk)&&(t.loadSnapshotChunk=qt.RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk)),(0,Ur.isSet)(e.applySnapshotChunk)&&(t.applySnapshotChunk=qt.RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk)),(0,Ur.isSet)(e.prepareProposal)&&(t.prepareProposal=qt.RequestPrepareProposal.fromJSON(e.prepareProposal)),(0,Ur.isSet)(e.processProposal)&&(t.processProposal=qt.RequestProcessProposal.fromJSON(e.processProposal)),t},toJSON(e){let t={};return e.echo!==void 0&&(t.echo=e.echo?qt.RequestEcho.toJSON(e.echo):void 0),e.flush!==void 0&&(t.flush=e.flush?qt.RequestFlush.toJSON(e.flush):void 0),e.info!==void 0&&(t.info=e.info?qt.RequestInfo.toJSON(e.info):void 0),e.initChain!==void 0&&(t.initChain=e.initChain?qt.RequestInitChain.toJSON(e.initChain):void 0),e.query!==void 0&&(t.query=e.query?qt.RequestQuery.toJSON(e.query):void 0),e.beginBlock!==void 0&&(t.beginBlock=e.beginBlock?qt.RequestBeginBlock.toJSON(e.beginBlock):void 0),e.checkTx!==void 0&&(t.checkTx=e.checkTx?qt.RequestCheckTx.toJSON(e.checkTx):void 0),e.deliverTx!==void 0&&(t.deliverTx=e.deliverTx?qt.RequestDeliverTx.toJSON(e.deliverTx):void 0),e.endBlock!==void 0&&(t.endBlock=e.endBlock?qt.RequestEndBlock.toJSON(e.endBlock):void 0),e.commit!==void 0&&(t.commit=e.commit?qt.RequestCommit.toJSON(e.commit):void 0),e.listSnapshots!==void 0&&(t.listSnapshots=e.listSnapshots?qt.RequestListSnapshots.toJSON(e.listSnapshots):void 0),e.offerSnapshot!==void 0&&(t.offerSnapshot=e.offerSnapshot?qt.RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),e.loadSnapshotChunk!==void 0&&(t.loadSnapshotChunk=e.loadSnapshotChunk?qt.RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),e.applySnapshotChunk!==void 0&&(t.applySnapshotChunk=e.applySnapshotChunk?qt.RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),e.prepareProposal!==void 0&&(t.prepareProposal=e.prepareProposal?qt.RequestPrepareProposal.toJSON(e.prepareProposal):void 0),e.processProposal!==void 0&&(t.processProposal=e.processProposal?qt.RequestProcessProposal.toJSON(e.processProposal):void 0),t},fromPartial(e){let t=Owe();return e.echo!==void 0&&e.echo!==null&&(t.echo=qt.RequestEcho.fromPartial(e.echo)),e.flush!==void 0&&e.flush!==null&&(t.flush=qt.RequestFlush.fromPartial(e.flush)),e.info!==void 0&&e.info!==null&&(t.info=qt.RequestInfo.fromPartial(e.info)),e.initChain!==void 0&&e.initChain!==null&&(t.initChain=qt.RequestInitChain.fromPartial(e.initChain)),e.query!==void 0&&e.query!==null&&(t.query=qt.RequestQuery.fromPartial(e.query)),e.beginBlock!==void 0&&e.beginBlock!==null&&(t.beginBlock=qt.RequestBeginBlock.fromPartial(e.beginBlock)),e.checkTx!==void 0&&e.checkTx!==null&&(t.checkTx=qt.RequestCheckTx.fromPartial(e.checkTx)),e.deliverTx!==void 0&&e.deliverTx!==null&&(t.deliverTx=qt.RequestDeliverTx.fromPartial(e.deliverTx)),e.endBlock!==void 0&&e.endBlock!==null&&(t.endBlock=qt.RequestEndBlock.fromPartial(e.endBlock)),e.commit!==void 0&&e.commit!==null&&(t.commit=qt.RequestCommit.fromPartial(e.commit)),e.listSnapshots!==void 0&&e.listSnapshots!==null&&(t.listSnapshots=qt.RequestListSnapshots.fromPartial(e.listSnapshots)),e.offerSnapshot!==void 0&&e.offerSnapshot!==null&&(t.offerSnapshot=qt.RequestOfferSnapshot.fromPartial(e.offerSnapshot)),e.loadSnapshotChunk!==void 0&&e.loadSnapshotChunk!==null&&(t.loadSnapshotChunk=qt.RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk)),e.applySnapshotChunk!==void 0&&e.applySnapshotChunk!==null&&(t.applySnapshotChunk=qt.RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk)),e.prepareProposal!==void 0&&e.prepareProposal!==null&&(t.prepareProposal=qt.RequestPrepareProposal.fromPartial(e.prepareProposal)),e.processProposal!==void 0&&e.processProposal!==null&&(t.processProposal=qt.RequestProcessProposal.fromPartial(e.processProposal)),t}};function Nwe(){return{message:""}}qt.RequestEcho={typeUrl:"/tendermint.abci.RequestEcho",encode(e,t=an.BinaryWriter.create()){return e.message!==""&&t.uint32(10).string(e.message),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Nwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.message=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=Nwe();return(0,Ur.isSet)(e.message)&&(t.message=String(e.message)),t},toJSON(e){let t={};return e.message!==void 0&&(t.message=e.message),t},fromPartial(e){let t=Nwe();return t.message=e.message??"",t}};function xwe(){return{}}qt.RequestFlush={typeUrl:"/tendermint.abci.RequestFlush",encode(e,t=an.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=xwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return xwe()},toJSON(e){return{}},fromPartial(e){return xwe()}};function Twe(){return{version:"",blockVersion:BigInt(0),p2pVersion:BigInt(0),abciVersion:""}}qt.RequestInfo={typeUrl:"/tendermint.abci.RequestInfo",encode(e,t=an.BinaryWriter.create()){return e.version!==""&&t.uint32(10).string(e.version),e.blockVersion!==BigInt(0)&&t.uint32(16).uint64(e.blockVersion),e.p2pVersion!==BigInt(0)&&t.uint32(24).uint64(e.p2pVersion),e.abciVersion!==""&&t.uint32(34).string(e.abciVersion),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Twe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.version=r.string();break;case 2:n.blockVersion=r.uint64();break;case 3:n.p2pVersion=r.uint64();break;case 4:n.abciVersion=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Twe();return(0,Ur.isSet)(e.version)&&(t.version=String(e.version)),(0,Ur.isSet)(e.blockVersion)&&(t.blockVersion=BigInt(e.blockVersion.toString())),(0,Ur.isSet)(e.p2pVersion)&&(t.p2pVersion=BigInt(e.p2pVersion.toString())),(0,Ur.isSet)(e.abciVersion)&&(t.abciVersion=String(e.abciVersion)),t},toJSON(e){let t={};return e.version!==void 0&&(t.version=e.version),e.blockVersion!==void 0&&(t.blockVersion=(e.blockVersion||BigInt(0)).toString()),e.p2pVersion!==void 0&&(t.p2pVersion=(e.p2pVersion||BigInt(0)).toString()),e.abciVersion!==void 0&&(t.abciVersion=e.abciVersion),t},fromPartial(e){let t=Twe();return t.version=e.version??"",e.blockVersion!==void 0&&e.blockVersion!==null&&(t.blockVersion=BigInt(e.blockVersion.toString())),e.p2pVersion!==void 0&&e.p2pVersion!==null&&(t.p2pVersion=BigInt(e.p2pVersion.toString())),t.abciVersion=e.abciVersion??"",t}};function Bwe(){return{time:pA.Timestamp.fromPartial({}),chainId:"",consensusParams:void 0,validators:[],appStateBytes:new Uint8Array,initialHeight:BigInt(0)}}qt.RequestInitChain={typeUrl:"/tendermint.abci.RequestInitChain",encode(e,t=an.BinaryWriter.create()){e.time!==void 0&&pA.Timestamp.encode(e.time,t.uint32(10).fork()).ldelim(),e.chainId!==""&&t.uint32(18).string(e.chainId),e.consensusParams!==void 0&&fp.ConsensusParams.encode(e.consensusParams,t.uint32(26).fork()).ldelim();for(let r of e.validators)qt.ValidatorUpdate.encode(r,t.uint32(34).fork()).ldelim();return e.appStateBytes.length!==0&&t.uint32(42).bytes(e.appStateBytes),e.initialHeight!==BigInt(0)&&t.uint32(48).int64(e.initialHeight),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Bwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.time=pA.Timestamp.decode(r,r.uint32());break;case 2:n.chainId=r.string();break;case 3:n.consensusParams=fp.ConsensusParams.decode(r,r.uint32());break;case 4:n.validators.push(qt.ValidatorUpdate.decode(r,r.uint32()));break;case 5:n.appStateBytes=r.bytes();break;case 6:n.initialHeight=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Bwe();return(0,Ur.isSet)(e.time)&&(t.time=(0,Ur.fromJsonTimestamp)(e.time)),(0,Ur.isSet)(e.chainId)&&(t.chainId=String(e.chainId)),(0,Ur.isSet)(e.consensusParams)&&(t.consensusParams=fp.ConsensusParams.fromJSON(e.consensusParams)),Array.isArray(e?.validators)&&(t.validators=e.validators.map(r=>qt.ValidatorUpdate.fromJSON(r))),(0,Ur.isSet)(e.appStateBytes)&&(t.appStateBytes=(0,Ur.bytesFromBase64)(e.appStateBytes)),(0,Ur.isSet)(e.initialHeight)&&(t.initialHeight=BigInt(e.initialHeight.toString())),t},toJSON(e){let t={};return e.time!==void 0&&(t.time=(0,Ur.fromTimestamp)(e.time).toISOString()),e.chainId!==void 0&&(t.chainId=e.chainId),e.consensusParams!==void 0&&(t.consensusParams=e.consensusParams?fp.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?t.validators=e.validators.map(r=>r?qt.ValidatorUpdate.toJSON(r):void 0):t.validators=[],e.appStateBytes!==void 0&&(t.appStateBytes=(0,Ur.base64FromBytes)(e.appStateBytes!==void 0?e.appStateBytes:new Uint8Array)),e.initialHeight!==void 0&&(t.initialHeight=(e.initialHeight||BigInt(0)).toString()),t},fromPartial(e){let t=Bwe();return e.time!==void 0&&e.time!==null&&(t.time=pA.Timestamp.fromPartial(e.time)),t.chainId=e.chainId??"",e.consensusParams!==void 0&&e.consensusParams!==null&&(t.consensusParams=fp.ConsensusParams.fromPartial(e.consensusParams)),t.validators=e.validators?.map(r=>qt.ValidatorUpdate.fromPartial(r))||[],t.appStateBytes=e.appStateBytes??new Uint8Array,e.initialHeight!==void 0&&e.initialHeight!==null&&(t.initialHeight=BigInt(e.initialHeight.toString())),t}};function Mwe(){return{data:new Uint8Array,path:"",height:BigInt(0),prove:!1}}qt.RequestQuery={typeUrl:"/tendermint.abci.RequestQuery",encode(e,t=an.BinaryWriter.create()){return e.data.length!==0&&t.uint32(10).bytes(e.data),e.path!==""&&t.uint32(18).string(e.path),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),e.prove===!0&&t.uint32(32).bool(e.prove),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Mwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.data=r.bytes();break;case 2:n.path=r.string();break;case 3:n.height=r.int64();break;case 4:n.prove=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Mwe();return(0,Ur.isSet)(e.data)&&(t.data=(0,Ur.bytesFromBase64)(e.data)),(0,Ur.isSet)(e.path)&&(t.path=String(e.path)),(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.prove)&&(t.prove=!!e.prove),t},toJSON(e){let t={};return e.data!==void 0&&(t.data=(0,Ur.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.path!==void 0&&(t.path=e.path),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.prove!==void 0&&(t.prove=e.prove),t},fromPartial(e){let t=Mwe();return t.data=e.data??new Uint8Array,t.path=e.path??"",e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.prove=e.prove??!1,t}};function Dwe(){return{hash:new Uint8Array,header:O9.Header.fromPartial({}),lastCommitInfo:qt.CommitInfo.fromPartial({}),byzantineValidators:[]}}qt.RequestBeginBlock={typeUrl:"/tendermint.abci.RequestBeginBlock",encode(e,t=an.BinaryWriter.create()){e.hash.length!==0&&t.uint32(10).bytes(e.hash),e.header!==void 0&&O9.Header.encode(e.header,t.uint32(18).fork()).ldelim(),e.lastCommitInfo!==void 0&&qt.CommitInfo.encode(e.lastCommitInfo,t.uint32(26).fork()).ldelim();for(let r of e.byzantineValidators)qt.Misbehavior.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Dwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.hash=r.bytes();break;case 2:n.header=O9.Header.decode(r,r.uint32());break;case 3:n.lastCommitInfo=qt.CommitInfo.decode(r,r.uint32());break;case 4:n.byzantineValidators.push(qt.Misbehavior.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Dwe();return(0,Ur.isSet)(e.hash)&&(t.hash=(0,Ur.bytesFromBase64)(e.hash)),(0,Ur.isSet)(e.header)&&(t.header=O9.Header.fromJSON(e.header)),(0,Ur.isSet)(e.lastCommitInfo)&&(t.lastCommitInfo=qt.CommitInfo.fromJSON(e.lastCommitInfo)),Array.isArray(e?.byzantineValidators)&&(t.byzantineValidators=e.byzantineValidators.map(r=>qt.Misbehavior.fromJSON(r))),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=(0,Ur.base64FromBytes)(e.hash!==void 0?e.hash:new Uint8Array)),e.header!==void 0&&(t.header=e.header?O9.Header.toJSON(e.header):void 0),e.lastCommitInfo!==void 0&&(t.lastCommitInfo=e.lastCommitInfo?qt.CommitInfo.toJSON(e.lastCommitInfo):void 0),e.byzantineValidators?t.byzantineValidators=e.byzantineValidators.map(r=>r?qt.Misbehavior.toJSON(r):void 0):t.byzantineValidators=[],t},fromPartial(e){let t=Dwe();return t.hash=e.hash??new Uint8Array,e.header!==void 0&&e.header!==null&&(t.header=O9.Header.fromPartial(e.header)),e.lastCommitInfo!==void 0&&e.lastCommitInfo!==null&&(t.lastCommitInfo=qt.CommitInfo.fromPartial(e.lastCommitInfo)),t.byzantineValidators=e.byzantineValidators?.map(r=>qt.Misbehavior.fromPartial(r))||[],t}};function kwe(){return{tx:new Uint8Array,type:0}}qt.RequestCheckTx={typeUrl:"/tendermint.abci.RequestCheckTx",encode(e,t=an.BinaryWriter.create()){return e.tx.length!==0&&t.uint32(10).bytes(e.tx),e.type!==0&&t.uint32(16).int32(e.type),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.tx=r.bytes();break;case 2:n.type=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kwe();return(0,Ur.isSet)(e.tx)&&(t.tx=(0,Ur.bytesFromBase64)(e.tx)),(0,Ur.isSet)(e.type)&&(t.type=Ryt(e.type)),t},toJSON(e){let t={};return e.tx!==void 0&&(t.tx=(0,Ur.base64FromBytes)(e.tx!==void 0?e.tx:new Uint8Array)),e.type!==void 0&&(t.type=Syt(e.type)),t},fromPartial(e){let t=kwe();return t.tx=e.tx??new Uint8Array,t.type=e.type??0,t}};function Pwe(){return{tx:new Uint8Array}}qt.RequestDeliverTx={typeUrl:"/tendermint.abci.RequestDeliverTx",encode(e,t=an.BinaryWriter.create()){return e.tx.length!==0&&t.uint32(10).bytes(e.tx),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Pwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.tx=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=Pwe();return(0,Ur.isSet)(e.tx)&&(t.tx=(0,Ur.bytesFromBase64)(e.tx)),t},toJSON(e){let t={};return e.tx!==void 0&&(t.tx=(0,Ur.base64FromBytes)(e.tx!==void 0?e.tx:new Uint8Array)),t},fromPartial(e){let t=Pwe();return t.tx=e.tx??new Uint8Array,t}};function Lwe(){return{height:BigInt(0)}}qt.RequestEndBlock={typeUrl:"/tendermint.abci.RequestEndBlock",encode(e,t=an.BinaryWriter.create()){return e.height!==BigInt(0)&&t.uint32(8).int64(e.height),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Lwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.height=r.int64():r.skipType(o&7)}return n},fromJSON(e){let t=Lwe();return(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),t},fromPartial(e){let t=Lwe();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t}};function Uwe(){return{}}qt.RequestCommit={typeUrl:"/tendermint.abci.RequestCommit",encode(e,t=an.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Uwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Uwe()},toJSON(e){return{}},fromPartial(e){return Uwe()}};function Fwe(){return{}}qt.RequestListSnapshots={typeUrl:"/tendermint.abci.RequestListSnapshots",encode(e,t=an.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Fwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Fwe()},toJSON(e){return{}},fromPartial(e){return Fwe()}};function Qwe(){return{snapshot:void 0,appHash:new Uint8Array}}qt.RequestOfferSnapshot={typeUrl:"/tendermint.abci.RequestOfferSnapshot",encode(e,t=an.BinaryWriter.create()){return e.snapshot!==void 0&&qt.Snapshot.encode(e.snapshot,t.uint32(10).fork()).ldelim(),e.appHash.length!==0&&t.uint32(18).bytes(e.appHash),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Qwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.snapshot=qt.Snapshot.decode(r,r.uint32());break;case 2:n.appHash=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Qwe();return(0,Ur.isSet)(e.snapshot)&&(t.snapshot=qt.Snapshot.fromJSON(e.snapshot)),(0,Ur.isSet)(e.appHash)&&(t.appHash=(0,Ur.bytesFromBase64)(e.appHash)),t},toJSON(e){let t={};return e.snapshot!==void 0&&(t.snapshot=e.snapshot?qt.Snapshot.toJSON(e.snapshot):void 0),e.appHash!==void 0&&(t.appHash=(0,Ur.base64FromBytes)(e.appHash!==void 0?e.appHash:new Uint8Array)),t},fromPartial(e){let t=Qwe();return e.snapshot!==void 0&&e.snapshot!==null&&(t.snapshot=qt.Snapshot.fromPartial(e.snapshot)),t.appHash=e.appHash??new Uint8Array,t}};function Hwe(){return{height:BigInt(0),format:0,chunk:0}}qt.RequestLoadSnapshotChunk={typeUrl:"/tendermint.abci.RequestLoadSnapshotChunk",encode(e,t=an.BinaryWriter.create()){return e.height!==BigInt(0)&&t.uint32(8).uint64(e.height),e.format!==0&&t.uint32(16).uint32(e.format),e.chunk!==0&&t.uint32(24).uint32(e.chunk),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Hwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=r.uint64();break;case 2:n.format=r.uint32();break;case 3:n.chunk=r.uint32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Hwe();return(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.format)&&(t.format=Number(e.format)),(0,Ur.isSet)(e.chunk)&&(t.chunk=Number(e.chunk)),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.format!==void 0&&(t.format=Math.round(e.format)),e.chunk!==void 0&&(t.chunk=Math.round(e.chunk)),t},fromPartial(e){let t=Hwe();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.format=e.format??0,t.chunk=e.chunk??0,t}};function Gwe(){return{index:0,chunk:new Uint8Array,sender:""}}qt.RequestApplySnapshotChunk={typeUrl:"/tendermint.abci.RequestApplySnapshotChunk",encode(e,t=an.BinaryWriter.create()){return e.index!==0&&t.uint32(8).uint32(e.index),e.chunk.length!==0&&t.uint32(18).bytes(e.chunk),e.sender!==""&&t.uint32(26).string(e.sender),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Gwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.index=r.uint32();break;case 2:n.chunk=r.bytes();break;case 3:n.sender=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Gwe();return(0,Ur.isSet)(e.index)&&(t.index=Number(e.index)),(0,Ur.isSet)(e.chunk)&&(t.chunk=(0,Ur.bytesFromBase64)(e.chunk)),(0,Ur.isSet)(e.sender)&&(t.sender=String(e.sender)),t},toJSON(e){let t={};return e.index!==void 0&&(t.index=Math.round(e.index)),e.chunk!==void 0&&(t.chunk=(0,Ur.base64FromBytes)(e.chunk!==void 0?e.chunk:new Uint8Array)),e.sender!==void 0&&(t.sender=e.sender),t},fromPartial(e){let t=Gwe();return t.index=e.index??0,t.chunk=e.chunk??new Uint8Array,t.sender=e.sender??"",t}};function qwe(){return{maxTxBytes:BigInt(0),txs:[],localLastCommit:qt.ExtendedCommitInfo.fromPartial({}),misbehavior:[],height:BigInt(0),time:pA.Timestamp.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}qt.RequestPrepareProposal={typeUrl:"/tendermint.abci.RequestPrepareProposal",encode(e,t=an.BinaryWriter.create()){e.maxTxBytes!==BigInt(0)&&t.uint32(8).int64(e.maxTxBytes);for(let r of e.txs)t.uint32(18).bytes(r);e.localLastCommit!==void 0&&qt.ExtendedCommitInfo.encode(e.localLastCommit,t.uint32(26).fork()).ldelim();for(let r of e.misbehavior)qt.Misbehavior.encode(r,t.uint32(34).fork()).ldelim();return e.height!==BigInt(0)&&t.uint32(40).int64(e.height),e.time!==void 0&&pA.Timestamp.encode(e.time,t.uint32(50).fork()).ldelim(),e.nextValidatorsHash.length!==0&&t.uint32(58).bytes(e.nextValidatorsHash),e.proposerAddress.length!==0&&t.uint32(66).bytes(e.proposerAddress),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.maxTxBytes=r.int64();break;case 2:n.txs.push(r.bytes());break;case 3:n.localLastCommit=qt.ExtendedCommitInfo.decode(r,r.uint32());break;case 4:n.misbehavior.push(qt.Misbehavior.decode(r,r.uint32()));break;case 5:n.height=r.int64();break;case 6:n.time=pA.Timestamp.decode(r,r.uint32());break;case 7:n.nextValidatorsHash=r.bytes();break;case 8:n.proposerAddress=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qwe();return(0,Ur.isSet)(e.maxTxBytes)&&(t.maxTxBytes=BigInt(e.maxTxBytes.toString())),Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>(0,Ur.bytesFromBase64)(r))),(0,Ur.isSet)(e.localLastCommit)&&(t.localLastCommit=qt.ExtendedCommitInfo.fromJSON(e.localLastCommit)),Array.isArray(e?.misbehavior)&&(t.misbehavior=e.misbehavior.map(r=>qt.Misbehavior.fromJSON(r))),(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.time)&&(t.time=(0,Ur.fromJsonTimestamp)(e.time)),(0,Ur.isSet)(e.nextValidatorsHash)&&(t.nextValidatorsHash=(0,Ur.bytesFromBase64)(e.nextValidatorsHash)),(0,Ur.isSet)(e.proposerAddress)&&(t.proposerAddress=(0,Ur.bytesFromBase64)(e.proposerAddress)),t},toJSON(e){let t={};return e.maxTxBytes!==void 0&&(t.maxTxBytes=(e.maxTxBytes||BigInt(0)).toString()),e.txs?t.txs=e.txs.map(r=>(0,Ur.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.txs=[],e.localLastCommit!==void 0&&(t.localLastCommit=e.localLastCommit?qt.ExtendedCommitInfo.toJSON(e.localLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map(r=>r?qt.Misbehavior.toJSON(r):void 0):t.misbehavior=[],e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(t.time=(0,Ur.fromTimestamp)(e.time).toISOString()),e.nextValidatorsHash!==void 0&&(t.nextValidatorsHash=(0,Ur.base64FromBytes)(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.proposerAddress!==void 0&&(t.proposerAddress=(0,Ur.base64FromBytes)(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),t},fromPartial(e){let t=qwe();return e.maxTxBytes!==void 0&&e.maxTxBytes!==null&&(t.maxTxBytes=BigInt(e.maxTxBytes.toString())),t.txs=e.txs?.map(r=>r)||[],e.localLastCommit!==void 0&&e.localLastCommit!==null&&(t.localLastCommit=qt.ExtendedCommitInfo.fromPartial(e.localLastCommit)),t.misbehavior=e.misbehavior?.map(r=>qt.Misbehavior.fromPartial(r))||[],e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),e.time!==void 0&&e.time!==null&&(t.time=pA.Timestamp.fromPartial(e.time)),t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t.proposerAddress=e.proposerAddress??new Uint8Array,t}};function Vwe(){return{txs:[],proposedLastCommit:qt.CommitInfo.fromPartial({}),misbehavior:[],hash:new Uint8Array,height:BigInt(0),time:pA.Timestamp.fromPartial({}),nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}qt.RequestProcessProposal={typeUrl:"/tendermint.abci.RequestProcessProposal",encode(e,t=an.BinaryWriter.create()){for(let r of e.txs)t.uint32(10).bytes(r);e.proposedLastCommit!==void 0&&qt.CommitInfo.encode(e.proposedLastCommit,t.uint32(18).fork()).ldelim();for(let r of e.misbehavior)qt.Misbehavior.encode(r,t.uint32(26).fork()).ldelim();return e.hash.length!==0&&t.uint32(34).bytes(e.hash),e.height!==BigInt(0)&&t.uint32(40).int64(e.height),e.time!==void 0&&pA.Timestamp.encode(e.time,t.uint32(50).fork()).ldelim(),e.nextValidatorsHash.length!==0&&t.uint32(58).bytes(e.nextValidatorsHash),e.proposerAddress.length!==0&&t.uint32(66).bytes(e.proposerAddress),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Vwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.txs.push(r.bytes());break;case 2:n.proposedLastCommit=qt.CommitInfo.decode(r,r.uint32());break;case 3:n.misbehavior.push(qt.Misbehavior.decode(r,r.uint32()));break;case 4:n.hash=r.bytes();break;case 5:n.height=r.int64();break;case 6:n.time=pA.Timestamp.decode(r,r.uint32());break;case 7:n.nextValidatorsHash=r.bytes();break;case 8:n.proposerAddress=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Vwe();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>(0,Ur.bytesFromBase64)(r))),(0,Ur.isSet)(e.proposedLastCommit)&&(t.proposedLastCommit=qt.CommitInfo.fromJSON(e.proposedLastCommit)),Array.isArray(e?.misbehavior)&&(t.misbehavior=e.misbehavior.map(r=>qt.Misbehavior.fromJSON(r))),(0,Ur.isSet)(e.hash)&&(t.hash=(0,Ur.bytesFromBase64)(e.hash)),(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.time)&&(t.time=(0,Ur.fromJsonTimestamp)(e.time)),(0,Ur.isSet)(e.nextValidatorsHash)&&(t.nextValidatorsHash=(0,Ur.bytesFromBase64)(e.nextValidatorsHash)),(0,Ur.isSet)(e.proposerAddress)&&(t.proposerAddress=(0,Ur.bytesFromBase64)(e.proposerAddress)),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(r=>(0,Ur.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.txs=[],e.proposedLastCommit!==void 0&&(t.proposedLastCommit=e.proposedLastCommit?qt.CommitInfo.toJSON(e.proposedLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map(r=>r?qt.Misbehavior.toJSON(r):void 0):t.misbehavior=[],e.hash!==void 0&&(t.hash=(0,Ur.base64FromBytes)(e.hash!==void 0?e.hash:new Uint8Array)),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(t.time=(0,Ur.fromTimestamp)(e.time).toISOString()),e.nextValidatorsHash!==void 0&&(t.nextValidatorsHash=(0,Ur.base64FromBytes)(e.nextValidatorsHash!==void 0?e.nextValidatorsHash:new Uint8Array)),e.proposerAddress!==void 0&&(t.proposerAddress=(0,Ur.base64FromBytes)(e.proposerAddress!==void 0?e.proposerAddress:new Uint8Array)),t},fromPartial(e){let t=Vwe();return t.txs=e.txs?.map(r=>r)||[],e.proposedLastCommit!==void 0&&e.proposedLastCommit!==null&&(t.proposedLastCommit=qt.CommitInfo.fromPartial(e.proposedLastCommit)),t.misbehavior=e.misbehavior?.map(r=>qt.Misbehavior.fromPartial(r))||[],t.hash=e.hash??new Uint8Array,e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),e.time!==void 0&&e.time!==null&&(t.time=pA.Timestamp.fromPartial(e.time)),t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t.proposerAddress=e.proposerAddress??new Uint8Array,t}};function Jwe(){return{exception:void 0,echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,beginBlock:void 0,checkTx:void 0,deliverTx:void 0,endBlock:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0}}qt.Response={typeUrl:"/tendermint.abci.Response",encode(e,t=an.BinaryWriter.create()){return e.exception!==void 0&&qt.ResponseException.encode(e.exception,t.uint32(10).fork()).ldelim(),e.echo!==void 0&&qt.ResponseEcho.encode(e.echo,t.uint32(18).fork()).ldelim(),e.flush!==void 0&&qt.ResponseFlush.encode(e.flush,t.uint32(26).fork()).ldelim(),e.info!==void 0&&qt.ResponseInfo.encode(e.info,t.uint32(34).fork()).ldelim(),e.initChain!==void 0&&qt.ResponseInitChain.encode(e.initChain,t.uint32(50).fork()).ldelim(),e.query!==void 0&&qt.ResponseQuery.encode(e.query,t.uint32(58).fork()).ldelim(),e.beginBlock!==void 0&&qt.ResponseBeginBlock.encode(e.beginBlock,t.uint32(66).fork()).ldelim(),e.checkTx!==void 0&&qt.ResponseCheckTx.encode(e.checkTx,t.uint32(74).fork()).ldelim(),e.deliverTx!==void 0&&qt.ResponseDeliverTx.encode(e.deliverTx,t.uint32(82).fork()).ldelim(),e.endBlock!==void 0&&qt.ResponseEndBlock.encode(e.endBlock,t.uint32(90).fork()).ldelim(),e.commit!==void 0&&qt.ResponseCommit.encode(e.commit,t.uint32(98).fork()).ldelim(),e.listSnapshots!==void 0&&qt.ResponseListSnapshots.encode(e.listSnapshots,t.uint32(106).fork()).ldelim(),e.offerSnapshot!==void 0&&qt.ResponseOfferSnapshot.encode(e.offerSnapshot,t.uint32(114).fork()).ldelim(),e.loadSnapshotChunk!==void 0&&qt.ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,t.uint32(122).fork()).ldelim(),e.applySnapshotChunk!==void 0&&qt.ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,t.uint32(130).fork()).ldelim(),e.prepareProposal!==void 0&&qt.ResponsePrepareProposal.encode(e.prepareProposal,t.uint32(138).fork()).ldelim(),e.processProposal!==void 0&&qt.ResponseProcessProposal.encode(e.processProposal,t.uint32(146).fork()).ldelim(),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Jwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.exception=qt.ResponseException.decode(r,r.uint32());break;case 2:n.echo=qt.ResponseEcho.decode(r,r.uint32());break;case 3:n.flush=qt.ResponseFlush.decode(r,r.uint32());break;case 4:n.info=qt.ResponseInfo.decode(r,r.uint32());break;case 6:n.initChain=qt.ResponseInitChain.decode(r,r.uint32());break;case 7:n.query=qt.ResponseQuery.decode(r,r.uint32());break;case 8:n.beginBlock=qt.ResponseBeginBlock.decode(r,r.uint32());break;case 9:n.checkTx=qt.ResponseCheckTx.decode(r,r.uint32());break;case 10:n.deliverTx=qt.ResponseDeliverTx.decode(r,r.uint32());break;case 11:n.endBlock=qt.ResponseEndBlock.decode(r,r.uint32());break;case 12:n.commit=qt.ResponseCommit.decode(r,r.uint32());break;case 13:n.listSnapshots=qt.ResponseListSnapshots.decode(r,r.uint32());break;case 14:n.offerSnapshot=qt.ResponseOfferSnapshot.decode(r,r.uint32());break;case 15:n.loadSnapshotChunk=qt.ResponseLoadSnapshotChunk.decode(r,r.uint32());break;case 16:n.applySnapshotChunk=qt.ResponseApplySnapshotChunk.decode(r,r.uint32());break;case 17:n.prepareProposal=qt.ResponsePrepareProposal.decode(r,r.uint32());break;case 18:n.processProposal=qt.ResponseProcessProposal.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Jwe();return(0,Ur.isSet)(e.exception)&&(t.exception=qt.ResponseException.fromJSON(e.exception)),(0,Ur.isSet)(e.echo)&&(t.echo=qt.ResponseEcho.fromJSON(e.echo)),(0,Ur.isSet)(e.flush)&&(t.flush=qt.ResponseFlush.fromJSON(e.flush)),(0,Ur.isSet)(e.info)&&(t.info=qt.ResponseInfo.fromJSON(e.info)),(0,Ur.isSet)(e.initChain)&&(t.initChain=qt.ResponseInitChain.fromJSON(e.initChain)),(0,Ur.isSet)(e.query)&&(t.query=qt.ResponseQuery.fromJSON(e.query)),(0,Ur.isSet)(e.beginBlock)&&(t.beginBlock=qt.ResponseBeginBlock.fromJSON(e.beginBlock)),(0,Ur.isSet)(e.checkTx)&&(t.checkTx=qt.ResponseCheckTx.fromJSON(e.checkTx)),(0,Ur.isSet)(e.deliverTx)&&(t.deliverTx=qt.ResponseDeliverTx.fromJSON(e.deliverTx)),(0,Ur.isSet)(e.endBlock)&&(t.endBlock=qt.ResponseEndBlock.fromJSON(e.endBlock)),(0,Ur.isSet)(e.commit)&&(t.commit=qt.ResponseCommit.fromJSON(e.commit)),(0,Ur.isSet)(e.listSnapshots)&&(t.listSnapshots=qt.ResponseListSnapshots.fromJSON(e.listSnapshots)),(0,Ur.isSet)(e.offerSnapshot)&&(t.offerSnapshot=qt.ResponseOfferSnapshot.fromJSON(e.offerSnapshot)),(0,Ur.isSet)(e.loadSnapshotChunk)&&(t.loadSnapshotChunk=qt.ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk)),(0,Ur.isSet)(e.applySnapshotChunk)&&(t.applySnapshotChunk=qt.ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk)),(0,Ur.isSet)(e.prepareProposal)&&(t.prepareProposal=qt.ResponsePrepareProposal.fromJSON(e.prepareProposal)),(0,Ur.isSet)(e.processProposal)&&(t.processProposal=qt.ResponseProcessProposal.fromJSON(e.processProposal)),t},toJSON(e){let t={};return e.exception!==void 0&&(t.exception=e.exception?qt.ResponseException.toJSON(e.exception):void 0),e.echo!==void 0&&(t.echo=e.echo?qt.ResponseEcho.toJSON(e.echo):void 0),e.flush!==void 0&&(t.flush=e.flush?qt.ResponseFlush.toJSON(e.flush):void 0),e.info!==void 0&&(t.info=e.info?qt.ResponseInfo.toJSON(e.info):void 0),e.initChain!==void 0&&(t.initChain=e.initChain?qt.ResponseInitChain.toJSON(e.initChain):void 0),e.query!==void 0&&(t.query=e.query?qt.ResponseQuery.toJSON(e.query):void 0),e.beginBlock!==void 0&&(t.beginBlock=e.beginBlock?qt.ResponseBeginBlock.toJSON(e.beginBlock):void 0),e.checkTx!==void 0&&(t.checkTx=e.checkTx?qt.ResponseCheckTx.toJSON(e.checkTx):void 0),e.deliverTx!==void 0&&(t.deliverTx=e.deliverTx?qt.ResponseDeliverTx.toJSON(e.deliverTx):void 0),e.endBlock!==void 0&&(t.endBlock=e.endBlock?qt.ResponseEndBlock.toJSON(e.endBlock):void 0),e.commit!==void 0&&(t.commit=e.commit?qt.ResponseCommit.toJSON(e.commit):void 0),e.listSnapshots!==void 0&&(t.listSnapshots=e.listSnapshots?qt.ResponseListSnapshots.toJSON(e.listSnapshots):void 0),e.offerSnapshot!==void 0&&(t.offerSnapshot=e.offerSnapshot?qt.ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),e.loadSnapshotChunk!==void 0&&(t.loadSnapshotChunk=e.loadSnapshotChunk?qt.ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),e.applySnapshotChunk!==void 0&&(t.applySnapshotChunk=e.applySnapshotChunk?qt.ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),e.prepareProposal!==void 0&&(t.prepareProposal=e.prepareProposal?qt.ResponsePrepareProposal.toJSON(e.prepareProposal):void 0),e.processProposal!==void 0&&(t.processProposal=e.processProposal?qt.ResponseProcessProposal.toJSON(e.processProposal):void 0),t},fromPartial(e){let t=Jwe();return e.exception!==void 0&&e.exception!==null&&(t.exception=qt.ResponseException.fromPartial(e.exception)),e.echo!==void 0&&e.echo!==null&&(t.echo=qt.ResponseEcho.fromPartial(e.echo)),e.flush!==void 0&&e.flush!==null&&(t.flush=qt.ResponseFlush.fromPartial(e.flush)),e.info!==void 0&&e.info!==null&&(t.info=qt.ResponseInfo.fromPartial(e.info)),e.initChain!==void 0&&e.initChain!==null&&(t.initChain=qt.ResponseInitChain.fromPartial(e.initChain)),e.query!==void 0&&e.query!==null&&(t.query=qt.ResponseQuery.fromPartial(e.query)),e.beginBlock!==void 0&&e.beginBlock!==null&&(t.beginBlock=qt.ResponseBeginBlock.fromPartial(e.beginBlock)),e.checkTx!==void 0&&e.checkTx!==null&&(t.checkTx=qt.ResponseCheckTx.fromPartial(e.checkTx)),e.deliverTx!==void 0&&e.deliverTx!==null&&(t.deliverTx=qt.ResponseDeliverTx.fromPartial(e.deliverTx)),e.endBlock!==void 0&&e.endBlock!==null&&(t.endBlock=qt.ResponseEndBlock.fromPartial(e.endBlock)),e.commit!==void 0&&e.commit!==null&&(t.commit=qt.ResponseCommit.fromPartial(e.commit)),e.listSnapshots!==void 0&&e.listSnapshots!==null&&(t.listSnapshots=qt.ResponseListSnapshots.fromPartial(e.listSnapshots)),e.offerSnapshot!==void 0&&e.offerSnapshot!==null&&(t.offerSnapshot=qt.ResponseOfferSnapshot.fromPartial(e.offerSnapshot)),e.loadSnapshotChunk!==void 0&&e.loadSnapshotChunk!==null&&(t.loadSnapshotChunk=qt.ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk)),e.applySnapshotChunk!==void 0&&e.applySnapshotChunk!==null&&(t.applySnapshotChunk=qt.ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk)),e.prepareProposal!==void 0&&e.prepareProposal!==null&&(t.prepareProposal=qt.ResponsePrepareProposal.fromPartial(e.prepareProposal)),e.processProposal!==void 0&&e.processProposal!==null&&(t.processProposal=qt.ResponseProcessProposal.fromPartial(e.processProposal)),t}};function zwe(){return{error:""}}qt.ResponseException={typeUrl:"/tendermint.abci.ResponseException",encode(e,t=an.BinaryWriter.create()){return e.error!==""&&t.uint32(10).string(e.error),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.error=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=zwe();return(0,Ur.isSet)(e.error)&&(t.error=String(e.error)),t},toJSON(e){let t={};return e.error!==void 0&&(t.error=e.error),t},fromPartial(e){let t=zwe();return t.error=e.error??"",t}};function Kwe(){return{message:""}}qt.ResponseEcho={typeUrl:"/tendermint.abci.ResponseEcho",encode(e,t=an.BinaryWriter.create()){return e.message!==""&&t.uint32(10).string(e.message),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Kwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.message=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=Kwe();return(0,Ur.isSet)(e.message)&&(t.message=String(e.message)),t},toJSON(e){let t={};return e.message!==void 0&&(t.message=e.message),t},fromPartial(e){let t=Kwe();return t.message=e.message??"",t}};function $we(){return{}}qt.ResponseFlush={typeUrl:"/tendermint.abci.ResponseFlush",encode(e,t=an.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$we();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return $we()},toJSON(e){return{}},fromPartial(e){return $we()}};function Ywe(){return{data:"",version:"",appVersion:BigInt(0),lastBlockHeight:BigInt(0),lastBlockAppHash:new Uint8Array}}qt.ResponseInfo={typeUrl:"/tendermint.abci.ResponseInfo",encode(e,t=an.BinaryWriter.create()){return e.data!==""&&t.uint32(10).string(e.data),e.version!==""&&t.uint32(18).string(e.version),e.appVersion!==BigInt(0)&&t.uint32(24).uint64(e.appVersion),e.lastBlockHeight!==BigInt(0)&&t.uint32(32).int64(e.lastBlockHeight),e.lastBlockAppHash.length!==0&&t.uint32(42).bytes(e.lastBlockAppHash),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Ywe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.data=r.string();break;case 2:n.version=r.string();break;case 3:n.appVersion=r.uint64();break;case 4:n.lastBlockHeight=r.int64();break;case 5:n.lastBlockAppHash=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Ywe();return(0,Ur.isSet)(e.data)&&(t.data=String(e.data)),(0,Ur.isSet)(e.version)&&(t.version=String(e.version)),(0,Ur.isSet)(e.appVersion)&&(t.appVersion=BigInt(e.appVersion.toString())),(0,Ur.isSet)(e.lastBlockHeight)&&(t.lastBlockHeight=BigInt(e.lastBlockHeight.toString())),(0,Ur.isSet)(e.lastBlockAppHash)&&(t.lastBlockAppHash=(0,Ur.bytesFromBase64)(e.lastBlockAppHash)),t},toJSON(e){let t={};return e.data!==void 0&&(t.data=e.data),e.version!==void 0&&(t.version=e.version),e.appVersion!==void 0&&(t.appVersion=(e.appVersion||BigInt(0)).toString()),e.lastBlockHeight!==void 0&&(t.lastBlockHeight=(e.lastBlockHeight||BigInt(0)).toString()),e.lastBlockAppHash!==void 0&&(t.lastBlockAppHash=(0,Ur.base64FromBytes)(e.lastBlockAppHash!==void 0?e.lastBlockAppHash:new Uint8Array)),t},fromPartial(e){let t=Ywe();return t.data=e.data??"",t.version=e.version??"",e.appVersion!==void 0&&e.appVersion!==null&&(t.appVersion=BigInt(e.appVersion.toString())),e.lastBlockHeight!==void 0&&e.lastBlockHeight!==null&&(t.lastBlockHeight=BigInt(e.lastBlockHeight.toString())),t.lastBlockAppHash=e.lastBlockAppHash??new Uint8Array,t}};function Wwe(){return{consensusParams:void 0,validators:[],appHash:new Uint8Array}}qt.ResponseInitChain={typeUrl:"/tendermint.abci.ResponseInitChain",encode(e,t=an.BinaryWriter.create()){e.consensusParams!==void 0&&fp.ConsensusParams.encode(e.consensusParams,t.uint32(10).fork()).ldelim();for(let r of e.validators)qt.ValidatorUpdate.encode(r,t.uint32(18).fork()).ldelim();return e.appHash.length!==0&&t.uint32(26).bytes(e.appHash),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Wwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.consensusParams=fp.ConsensusParams.decode(r,r.uint32());break;case 2:n.validators.push(qt.ValidatorUpdate.decode(r,r.uint32()));break;case 3:n.appHash=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Wwe();return(0,Ur.isSet)(e.consensusParams)&&(t.consensusParams=fp.ConsensusParams.fromJSON(e.consensusParams)),Array.isArray(e?.validators)&&(t.validators=e.validators.map(r=>qt.ValidatorUpdate.fromJSON(r))),(0,Ur.isSet)(e.appHash)&&(t.appHash=(0,Ur.bytesFromBase64)(e.appHash)),t},toJSON(e){let t={};return e.consensusParams!==void 0&&(t.consensusParams=e.consensusParams?fp.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?t.validators=e.validators.map(r=>r?qt.ValidatorUpdate.toJSON(r):void 0):t.validators=[],e.appHash!==void 0&&(t.appHash=(0,Ur.base64FromBytes)(e.appHash!==void 0?e.appHash:new Uint8Array)),t},fromPartial(e){let t=Wwe();return e.consensusParams!==void 0&&e.consensusParams!==null&&(t.consensusParams=fp.ConsensusParams.fromPartial(e.consensusParams)),t.validators=e.validators?.map(r=>qt.ValidatorUpdate.fromPartial(r))||[],t.appHash=e.appHash??new Uint8Array,t}};function Xwe(){return{code:0,log:"",info:"",index:BigInt(0),key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:BigInt(0),codespace:""}}qt.ResponseQuery={typeUrl:"/tendermint.abci.ResponseQuery",encode(e,t=an.BinaryWriter.create()){return e.code!==0&&t.uint32(8).uint32(e.code),e.log!==""&&t.uint32(26).string(e.log),e.info!==""&&t.uint32(34).string(e.info),e.index!==BigInt(0)&&t.uint32(40).int64(e.index),e.key.length!==0&&t.uint32(50).bytes(e.key),e.value.length!==0&&t.uint32(58).bytes(e.value),e.proofOps!==void 0&&lQ.ProofOps.encode(e.proofOps,t.uint32(66).fork()).ldelim(),e.height!==BigInt(0)&&t.uint32(72).int64(e.height),e.codespace!==""&&t.uint32(82).string(e.codespace),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Xwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.code=r.uint32();break;case 3:n.log=r.string();break;case 4:n.info=r.string();break;case 5:n.index=r.int64();break;case 6:n.key=r.bytes();break;case 7:n.value=r.bytes();break;case 8:n.proofOps=lQ.ProofOps.decode(r,r.uint32());break;case 9:n.height=r.int64();break;case 10:n.codespace=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Xwe();return(0,Ur.isSet)(e.code)&&(t.code=Number(e.code)),(0,Ur.isSet)(e.log)&&(t.log=String(e.log)),(0,Ur.isSet)(e.info)&&(t.info=String(e.info)),(0,Ur.isSet)(e.index)&&(t.index=BigInt(e.index.toString())),(0,Ur.isSet)(e.key)&&(t.key=(0,Ur.bytesFromBase64)(e.key)),(0,Ur.isSet)(e.value)&&(t.value=(0,Ur.bytesFromBase64)(e.value)),(0,Ur.isSet)(e.proofOps)&&(t.proofOps=lQ.ProofOps.fromJSON(e.proofOps)),(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.codespace)&&(t.codespace=String(e.codespace)),t},toJSON(e){let t={};return e.code!==void 0&&(t.code=Math.round(e.code)),e.log!==void 0&&(t.log=e.log),e.info!==void 0&&(t.info=e.info),e.index!==void 0&&(t.index=(e.index||BigInt(0)).toString()),e.key!==void 0&&(t.key=(0,Ur.base64FromBytes)(e.key!==void 0?e.key:new Uint8Array)),e.value!==void 0&&(t.value=(0,Ur.base64FromBytes)(e.value!==void 0?e.value:new Uint8Array)),e.proofOps!==void 0&&(t.proofOps=e.proofOps?lQ.ProofOps.toJSON(e.proofOps):void 0),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.codespace!==void 0&&(t.codespace=e.codespace),t},fromPartial(e){let t=Xwe();return t.code=e.code??0,t.log=e.log??"",t.info=e.info??"",e.index!==void 0&&e.index!==null&&(t.index=BigInt(e.index.toString())),t.key=e.key??new Uint8Array,t.value=e.value??new Uint8Array,e.proofOps!==void 0&&e.proofOps!==null&&(t.proofOps=lQ.ProofOps.fromPartial(e.proofOps)),e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.codespace=e.codespace??"",t}};function Zwe(){return{events:[]}}qt.ResponseBeginBlock={typeUrl:"/tendermint.abci.ResponseBeginBlock",encode(e,t=an.BinaryWriter.create()){for(let r of e.events)qt.Event.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Zwe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.events.push(qt.Event.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=Zwe();return Array.isArray(e?.events)&&(t.events=e.events.map(r=>qt.Event.fromJSON(r))),t},toJSON(e){let t={};return e.events?t.events=e.events.map(r=>r?qt.Event.toJSON(r):void 0):t.events=[],t},fromPartial(e){let t=Zwe();return t.events=e.events?.map(r=>qt.Event.fromPartial(r))||[],t}};function jwe(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:"",sender:"",priority:BigInt(0),mempoolError:""}}qt.ResponseCheckTx={typeUrl:"/tendermint.abci.ResponseCheckTx",encode(e,t=an.BinaryWriter.create()){e.code!==0&&t.uint32(8).uint32(e.code),e.data.length!==0&&t.uint32(18).bytes(e.data),e.log!==""&&t.uint32(26).string(e.log),e.info!==""&&t.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(48).int64(e.gasUsed);for(let r of e.events)qt.Event.encode(r,t.uint32(58).fork()).ldelim();return e.codespace!==""&&t.uint32(66).string(e.codespace),e.sender!==""&&t.uint32(74).string(e.sender),e.priority!==BigInt(0)&&t.uint32(80).int64(e.priority),e.mempoolError!==""&&t.uint32(90).string(e.mempoolError),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jwe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.code=r.uint32();break;case 2:n.data=r.bytes();break;case 3:n.log=r.string();break;case 4:n.info=r.string();break;case 5:n.gasWanted=r.int64();break;case 6:n.gasUsed=r.int64();break;case 7:n.events.push(qt.Event.decode(r,r.uint32()));break;case 8:n.codespace=r.string();break;case 9:n.sender=r.string();break;case 10:n.priority=r.int64();break;case 11:n.mempoolError=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=jwe();return(0,Ur.isSet)(e.code)&&(t.code=Number(e.code)),(0,Ur.isSet)(e.data)&&(t.data=(0,Ur.bytesFromBase64)(e.data)),(0,Ur.isSet)(e.log)&&(t.log=String(e.log)),(0,Ur.isSet)(e.info)&&(t.info=String(e.info)),(0,Ur.isSet)(e.gas_wanted)&&(t.gasWanted=BigInt(e.gas_wanted.toString())),(0,Ur.isSet)(e.gas_used)&&(t.gasUsed=BigInt(e.gas_used.toString())),Array.isArray(e?.events)&&(t.events=e.events.map(r=>qt.Event.fromJSON(r))),(0,Ur.isSet)(e.codespace)&&(t.codespace=String(e.codespace)),(0,Ur.isSet)(e.sender)&&(t.sender=String(e.sender)),(0,Ur.isSet)(e.priority)&&(t.priority=BigInt(e.priority.toString())),(0,Ur.isSet)(e.mempoolError)&&(t.mempoolError=String(e.mempoolError)),t},toJSON(e){let t={};return e.code!==void 0&&(t.code=Math.round(e.code)),e.data!==void 0&&(t.data=(0,Ur.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.log!==void 0&&(t.log=e.log),e.info!==void 0&&(t.info=e.info),e.gasWanted!==void 0&&(t.gas_wanted=(e.gasWanted||BigInt(0)).toString()),e.gasUsed!==void 0&&(t.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?t.events=e.events.map(r=>r?qt.Event.toJSON(r):void 0):t.events=[],e.codespace!==void 0&&(t.codespace=e.codespace),e.sender!==void 0&&(t.sender=e.sender),e.priority!==void 0&&(t.priority=(e.priority||BigInt(0)).toString()),e.mempoolError!==void 0&&(t.mempoolError=e.mempoolError),t},fromPartial(e){let t=jwe();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",e.gasWanted!==void 0&&e.gasWanted!==null&&(t.gasWanted=BigInt(e.gasWanted.toString())),e.gasUsed!==void 0&&e.gasUsed!==null&&(t.gasUsed=BigInt(e.gasUsed.toString())),t.events=e.events?.map(r=>qt.Event.fromPartial(r))||[],t.codespace=e.codespace??"",t.sender=e.sender??"",e.priority!==void 0&&e.priority!==null&&(t.priority=BigInt(e.priority.toString())),t.mempoolError=e.mempoolError??"",t}};function e5e(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}qt.ResponseDeliverTx={typeUrl:"/tendermint.abci.ResponseDeliverTx",encode(e,t=an.BinaryWriter.create()){e.code!==0&&t.uint32(8).uint32(e.code),e.data.length!==0&&t.uint32(18).bytes(e.data),e.log!==""&&t.uint32(26).string(e.log),e.info!==""&&t.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(48).int64(e.gasUsed);for(let r of e.events)qt.Event.encode(r,t.uint32(58).fork()).ldelim();return e.codespace!==""&&t.uint32(66).string(e.codespace),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=e5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.code=r.uint32();break;case 2:n.data=r.bytes();break;case 3:n.log=r.string();break;case 4:n.info=r.string();break;case 5:n.gasWanted=r.int64();break;case 6:n.gasUsed=r.int64();break;case 7:n.events.push(qt.Event.decode(r,r.uint32()));break;case 8:n.codespace=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=e5e();return(0,Ur.isSet)(e.code)&&(t.code=Number(e.code)),(0,Ur.isSet)(e.data)&&(t.data=(0,Ur.bytesFromBase64)(e.data)),(0,Ur.isSet)(e.log)&&(t.log=String(e.log)),(0,Ur.isSet)(e.info)&&(t.info=String(e.info)),(0,Ur.isSet)(e.gas_wanted)&&(t.gasWanted=BigInt(e.gas_wanted.toString())),(0,Ur.isSet)(e.gas_used)&&(t.gasUsed=BigInt(e.gas_used.toString())),Array.isArray(e?.events)&&(t.events=e.events.map(r=>qt.Event.fromJSON(r))),(0,Ur.isSet)(e.codespace)&&(t.codespace=String(e.codespace)),t},toJSON(e){let t={};return e.code!==void 0&&(t.code=Math.round(e.code)),e.data!==void 0&&(t.data=(0,Ur.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.log!==void 0&&(t.log=e.log),e.info!==void 0&&(t.info=e.info),e.gasWanted!==void 0&&(t.gas_wanted=(e.gasWanted||BigInt(0)).toString()),e.gasUsed!==void 0&&(t.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?t.events=e.events.map(r=>r?qt.Event.toJSON(r):void 0):t.events=[],e.codespace!==void 0&&(t.codespace=e.codespace),t},fromPartial(e){let t=e5e();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",e.gasWanted!==void 0&&e.gasWanted!==null&&(t.gasWanted=BigInt(e.gasWanted.toString())),e.gasUsed!==void 0&&e.gasUsed!==null&&(t.gasUsed=BigInt(e.gasUsed.toString())),t.events=e.events?.map(r=>qt.Event.fromPartial(r))||[],t.codespace=e.codespace??"",t}};function t5e(){return{validatorUpdates:[],consensusParamUpdates:void 0,events:[]}}qt.ResponseEndBlock={typeUrl:"/tendermint.abci.ResponseEndBlock",encode(e,t=an.BinaryWriter.create()){for(let r of e.validatorUpdates)qt.ValidatorUpdate.encode(r,t.uint32(10).fork()).ldelim();e.consensusParamUpdates!==void 0&&fp.ConsensusParams.encode(e.consensusParamUpdates,t.uint32(18).fork()).ldelim();for(let r of e.events)qt.Event.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=t5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validatorUpdates.push(qt.ValidatorUpdate.decode(r,r.uint32()));break;case 2:n.consensusParamUpdates=fp.ConsensusParams.decode(r,r.uint32());break;case 3:n.events.push(qt.Event.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=t5e();return Array.isArray(e?.validatorUpdates)&&(t.validatorUpdates=e.validatorUpdates.map(r=>qt.ValidatorUpdate.fromJSON(r))),(0,Ur.isSet)(e.consensusParamUpdates)&&(t.consensusParamUpdates=fp.ConsensusParams.fromJSON(e.consensusParamUpdates)),Array.isArray(e?.events)&&(t.events=e.events.map(r=>qt.Event.fromJSON(r))),t},toJSON(e){let t={};return e.validatorUpdates?t.validatorUpdates=e.validatorUpdates.map(r=>r?qt.ValidatorUpdate.toJSON(r):void 0):t.validatorUpdates=[],e.consensusParamUpdates!==void 0&&(t.consensusParamUpdates=e.consensusParamUpdates?fp.ConsensusParams.toJSON(e.consensusParamUpdates):void 0),e.events?t.events=e.events.map(r=>r?qt.Event.toJSON(r):void 0):t.events=[],t},fromPartial(e){let t=t5e();return t.validatorUpdates=e.validatorUpdates?.map(r=>qt.ValidatorUpdate.fromPartial(r))||[],e.consensusParamUpdates!==void 0&&e.consensusParamUpdates!==null&&(t.consensusParamUpdates=fp.ConsensusParams.fromPartial(e.consensusParamUpdates)),t.events=e.events?.map(r=>qt.Event.fromPartial(r))||[],t}};function r5e(){return{data:new Uint8Array,retainHeight:BigInt(0)}}qt.ResponseCommit={typeUrl:"/tendermint.abci.ResponseCommit",encode(e,t=an.BinaryWriter.create()){return e.data.length!==0&&t.uint32(18).bytes(e.data),e.retainHeight!==BigInt(0)&&t.uint32(24).int64(e.retainHeight),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=r5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:n.data=r.bytes();break;case 3:n.retainHeight=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=r5e();return(0,Ur.isSet)(e.data)&&(t.data=(0,Ur.bytesFromBase64)(e.data)),(0,Ur.isSet)(e.retainHeight)&&(t.retainHeight=BigInt(e.retainHeight.toString())),t},toJSON(e){let t={};return e.data!==void 0&&(t.data=(0,Ur.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.retainHeight!==void 0&&(t.retainHeight=(e.retainHeight||BigInt(0)).toString()),t},fromPartial(e){let t=r5e();return t.data=e.data??new Uint8Array,e.retainHeight!==void 0&&e.retainHeight!==null&&(t.retainHeight=BigInt(e.retainHeight.toString())),t}};function n5e(){return{snapshots:[]}}qt.ResponseListSnapshots={typeUrl:"/tendermint.abci.ResponseListSnapshots",encode(e,t=an.BinaryWriter.create()){for(let r of e.snapshots)qt.Snapshot.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=n5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.snapshots.push(qt.Snapshot.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=n5e();return Array.isArray(e?.snapshots)&&(t.snapshots=e.snapshots.map(r=>qt.Snapshot.fromJSON(r))),t},toJSON(e){let t={};return e.snapshots?t.snapshots=e.snapshots.map(r=>r?qt.Snapshot.toJSON(r):void 0):t.snapshots=[],t},fromPartial(e){let t=n5e();return t.snapshots=e.snapshots?.map(r=>qt.Snapshot.fromPartial(r))||[],t}};function i5e(){return{result:0}}qt.ResponseOfferSnapshot={typeUrl:"/tendermint.abci.ResponseOfferSnapshot",encode(e,t=an.BinaryWriter.create()){return e.result!==0&&t.uint32(8).int32(e.result),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=i5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.result=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=i5e();return(0,Ur.isSet)(e.result)&&(t.result=Iyt(e.result)),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=Cyt(e.result)),t},fromPartial(e){let t=i5e();return t.result=e.result??0,t}};function o5e(){return{chunk:new Uint8Array}}qt.ResponseLoadSnapshotChunk={typeUrl:"/tendermint.abci.ResponseLoadSnapshotChunk",encode(e,t=an.BinaryWriter.create()){return e.chunk.length!==0&&t.uint32(10).bytes(e.chunk),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=o5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.chunk=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=o5e();return(0,Ur.isSet)(e.chunk)&&(t.chunk=(0,Ur.bytesFromBase64)(e.chunk)),t},toJSON(e){let t={};return e.chunk!==void 0&&(t.chunk=(0,Ur.base64FromBytes)(e.chunk!==void 0?e.chunk:new Uint8Array)),t},fromPartial(e){let t=o5e();return t.chunk=e.chunk??new Uint8Array,t}};function a5e(){return{result:0,refetchChunks:[],rejectSenders:[]}}qt.ResponseApplySnapshotChunk={typeUrl:"/tendermint.abci.ResponseApplySnapshotChunk",encode(e,t=an.BinaryWriter.create()){e.result!==0&&t.uint32(8).int32(e.result),t.uint32(18).fork();for(let r of e.refetchChunks)t.uint32(r);t.ldelim();for(let r of e.rejectSenders)t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=a5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.result=r.int32();break;case 2:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.refetchChunks.push(r.uint32())}else n.refetchChunks.push(r.uint32());break;case 3:n.rejectSenders.push(r.string());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=a5e();return(0,Ur.isSet)(e.result)&&(t.result=wyt(e.result)),Array.isArray(e?.refetchChunks)&&(t.refetchChunks=e.refetchChunks.map(r=>Number(r))),Array.isArray(e?.rejectSenders)&&(t.rejectSenders=e.rejectSenders.map(r=>String(r))),t},toJSON(e){let t={};return e.result!==void 0&&(t.result=Oyt(e.result)),e.refetchChunks?t.refetchChunks=e.refetchChunks.map(r=>Math.round(r)):t.refetchChunks=[],e.rejectSenders?t.rejectSenders=e.rejectSenders.map(r=>r):t.rejectSenders=[],t},fromPartial(e){let t=a5e();return t.result=e.result??0,t.refetchChunks=e.refetchChunks?.map(r=>r)||[],t.rejectSenders=e.rejectSenders?.map(r=>r)||[],t}};function s5e(){return{txs:[]}}qt.ResponsePrepareProposal={typeUrl:"/tendermint.abci.ResponsePrepareProposal",encode(e,t=an.BinaryWriter.create()){for(let r of e.txs)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=s5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.txs.push(r.bytes()):r.skipType(o&7)}return n},fromJSON(e){let t=s5e();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>(0,Ur.bytesFromBase64)(r))),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(r=>(0,Ur.base64FromBytes)(r!==void 0?r:new Uint8Array)):t.txs=[],t},fromPartial(e){let t=s5e();return t.txs=e.txs?.map(r=>r)||[],t}};function c5e(){return{status:0}}qt.ResponseProcessProposal={typeUrl:"/tendermint.abci.ResponseProcessProposal",encode(e,t=an.BinaryWriter.create()){return e.status!==0&&t.uint32(8).int32(e.status),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=c5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.status=r.int32():r.skipType(o&7)}return n},fromJSON(e){let t=c5e();return(0,Ur.isSet)(e.status)&&(t.status=Nyt(e.status)),t},toJSON(e){let t={};return e.status!==void 0&&(t.status=xyt(e.status)),t},fromPartial(e){let t=c5e();return t.status=e.status??0,t}};function u5e(){return{round:0,votes:[]}}qt.CommitInfo={typeUrl:"/tendermint.abci.CommitInfo",encode(e,t=an.BinaryWriter.create()){e.round!==0&&t.uint32(8).int32(e.round);for(let r of e.votes)qt.VoteInfo.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=u5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.round=r.int32();break;case 2:n.votes.push(qt.VoteInfo.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=u5e();return(0,Ur.isSet)(e.round)&&(t.round=Number(e.round)),Array.isArray(e?.votes)&&(t.votes=e.votes.map(r=>qt.VoteInfo.fromJSON(r))),t},toJSON(e){let t={};return e.round!==void 0&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map(r=>r?qt.VoteInfo.toJSON(r):void 0):t.votes=[],t},fromPartial(e){let t=u5e();return t.round=e.round??0,t.votes=e.votes?.map(r=>qt.VoteInfo.fromPartial(r))||[],t}};function d5e(){return{round:0,votes:[]}}qt.ExtendedCommitInfo={typeUrl:"/tendermint.abci.ExtendedCommitInfo",encode(e,t=an.BinaryWriter.create()){e.round!==0&&t.uint32(8).int32(e.round);for(let r of e.votes)qt.ExtendedVoteInfo.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=d5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.round=r.int32();break;case 2:n.votes.push(qt.ExtendedVoteInfo.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=d5e();return(0,Ur.isSet)(e.round)&&(t.round=Number(e.round)),Array.isArray(e?.votes)&&(t.votes=e.votes.map(r=>qt.ExtendedVoteInfo.fromJSON(r))),t},toJSON(e){let t={};return e.round!==void 0&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map(r=>r?qt.ExtendedVoteInfo.toJSON(r):void 0):t.votes=[],t},fromPartial(e){let t=d5e();return t.round=e.round??0,t.votes=e.votes?.map(r=>qt.ExtendedVoteInfo.fromPartial(r))||[],t}};function f5e(){return{type:"",attributes:[]}}qt.Event={typeUrl:"/tendermint.abci.Event",encode(e,t=an.BinaryWriter.create()){e.type!==""&&t.uint32(10).string(e.type);for(let r of e.attributes)qt.EventAttribute.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=f5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.type=r.string();break;case 2:n.attributes.push(qt.EventAttribute.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=f5e();return(0,Ur.isSet)(e.type)&&(t.type=String(e.type)),Array.isArray(e?.attributes)&&(t.attributes=e.attributes.map(r=>qt.EventAttribute.fromJSON(r))),t},toJSON(e){let t={};return e.type!==void 0&&(t.type=e.type),e.attributes?t.attributes=e.attributes.map(r=>r?qt.EventAttribute.toJSON(r):void 0):t.attributes=[],t},fromPartial(e){let t=f5e();return t.type=e.type??"",t.attributes=e.attributes?.map(r=>qt.EventAttribute.fromPartial(r))||[],t}};function l5e(){return{key:"",value:"",index:!1}}qt.EventAttribute={typeUrl:"/tendermint.abci.EventAttribute",encode(e,t=an.BinaryWriter.create()){return e.key!==""&&t.uint32(10).string(e.key),e.value!==""&&t.uint32(18).string(e.value),e.index===!0&&t.uint32(24).bool(e.index),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=l5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.string();break;case 2:n.value=r.string();break;case 3:n.index=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=l5e();return(0,Ur.isSet)(e.key)&&(t.key=String(e.key)),(0,Ur.isSet)(e.value)&&(t.value=String(e.value)),(0,Ur.isSet)(e.index)&&(t.index=!!e.index),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=e.key),e.value!==void 0&&(t.value=e.value),e.index!==void 0&&(t.index=e.index),t},fromPartial(e){let t=l5e();return t.key=e.key??"",t.value=e.value??"",t.index=e.index??!1,t}};function h5e(){return{height:BigInt(0),index:0,tx:new Uint8Array,result:qt.ResponseDeliverTx.fromPartial({})}}qt.TxResult={typeUrl:"/tendermint.abci.TxResult",encode(e,t=an.BinaryWriter.create()){return e.height!==BigInt(0)&&t.uint32(8).int64(e.height),e.index!==0&&t.uint32(16).uint32(e.index),e.tx.length!==0&&t.uint32(26).bytes(e.tx),e.result!==void 0&&qt.ResponseDeliverTx.encode(e.result,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=h5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=r.int64();break;case 2:n.index=r.uint32();break;case 3:n.tx=r.bytes();break;case 4:n.result=qt.ResponseDeliverTx.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=h5e();return(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.index)&&(t.index=Number(e.index)),(0,Ur.isSet)(e.tx)&&(t.tx=(0,Ur.bytesFromBase64)(e.tx)),(0,Ur.isSet)(e.result)&&(t.result=qt.ResponseDeliverTx.fromJSON(e.result)),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.index!==void 0&&(t.index=Math.round(e.index)),e.tx!==void 0&&(t.tx=(0,Ur.base64FromBytes)(e.tx!==void 0?e.tx:new Uint8Array)),e.result!==void 0&&(t.result=e.result?qt.ResponseDeliverTx.toJSON(e.result):void 0),t},fromPartial(e){let t=h5e();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.index=e.index??0,t.tx=e.tx??new Uint8Array,e.result!==void 0&&e.result!==null&&(t.result=qt.ResponseDeliverTx.fromPartial(e.result)),t}};function A5e(){return{address:new Uint8Array,power:BigInt(0)}}qt.Validator={typeUrl:"/tendermint.abci.Validator",encode(e,t=an.BinaryWriter.create()){return e.address.length!==0&&t.uint32(10).bytes(e.address),e.power!==BigInt(0)&&t.uint32(24).int64(e.power),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=A5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.address=r.bytes();break;case 3:n.power=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=A5e();return(0,Ur.isSet)(e.address)&&(t.address=(0,Ur.bytesFromBase64)(e.address)),(0,Ur.isSet)(e.power)&&(t.power=BigInt(e.power.toString())),t},toJSON(e){let t={};return e.address!==void 0&&(t.address=(0,Ur.base64FromBytes)(e.address!==void 0?e.address:new Uint8Array)),e.power!==void 0&&(t.power=(e.power||BigInt(0)).toString()),t},fromPartial(e){let t=A5e();return t.address=e.address??new Uint8Array,e.power!==void 0&&e.power!==null&&(t.power=BigInt(e.power.toString())),t}};function p5e(){return{pubKey:N9.PublicKey.fromPartial({}),power:BigInt(0)}}qt.ValidatorUpdate={typeUrl:"/tendermint.abci.ValidatorUpdate",encode(e,t=an.BinaryWriter.create()){return e.pubKey!==void 0&&N9.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power!==BigInt(0)&&t.uint32(16).int64(e.power),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=p5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.pubKey=N9.PublicKey.decode(r,r.uint32());break;case 2:n.power=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=p5e();return(0,Ur.isSet)(e.pubKey)&&(t.pubKey=N9.PublicKey.fromJSON(e.pubKey)),(0,Ur.isSet)(e.power)&&(t.power=BigInt(e.power.toString())),t},toJSON(e){let t={};return e.pubKey!==void 0&&(t.pubKey=e.pubKey?N9.PublicKey.toJSON(e.pubKey):void 0),e.power!==void 0&&(t.power=(e.power||BigInt(0)).toString()),t},fromPartial(e){let t=p5e();return e.pubKey!==void 0&&e.pubKey!==null&&(t.pubKey=N9.PublicKey.fromPartial(e.pubKey)),e.power!==void 0&&e.power!==null&&(t.power=BigInt(e.power.toString())),t}};function g5e(){return{validator:qt.Validator.fromPartial({}),signedLastBlock:!1}}qt.VoteInfo={typeUrl:"/tendermint.abci.VoteInfo",encode(e,t=an.BinaryWriter.create()){return e.validator!==void 0&&qt.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),e.signedLastBlock===!0&&t.uint32(16).bool(e.signedLastBlock),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=g5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validator=qt.Validator.decode(r,r.uint32());break;case 2:n.signedLastBlock=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=g5e();return(0,Ur.isSet)(e.validator)&&(t.validator=qt.Validator.fromJSON(e.validator)),(0,Ur.isSet)(e.signedLastBlock)&&(t.signedLastBlock=!!e.signedLastBlock),t},toJSON(e){let t={};return e.validator!==void 0&&(t.validator=e.validator?qt.Validator.toJSON(e.validator):void 0),e.signedLastBlock!==void 0&&(t.signedLastBlock=e.signedLastBlock),t},fromPartial(e){let t=g5e();return e.validator!==void 0&&e.validator!==null&&(t.validator=qt.Validator.fromPartial(e.validator)),t.signedLastBlock=e.signedLastBlock??!1,t}};function _5e(){return{validator:qt.Validator.fromPartial({}),signedLastBlock:!1,voteExtension:new Uint8Array}}qt.ExtendedVoteInfo={typeUrl:"/tendermint.abci.ExtendedVoteInfo",encode(e,t=an.BinaryWriter.create()){return e.validator!==void 0&&qt.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),e.signedLastBlock===!0&&t.uint32(16).bool(e.signedLastBlock),e.voteExtension.length!==0&&t.uint32(26).bytes(e.voteExtension),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validator=qt.Validator.decode(r,r.uint32());break;case 2:n.signedLastBlock=r.bool();break;case 3:n.voteExtension=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_5e();return(0,Ur.isSet)(e.validator)&&(t.validator=qt.Validator.fromJSON(e.validator)),(0,Ur.isSet)(e.signedLastBlock)&&(t.signedLastBlock=!!e.signedLastBlock),(0,Ur.isSet)(e.voteExtension)&&(t.voteExtension=(0,Ur.bytesFromBase64)(e.voteExtension)),t},toJSON(e){let t={};return e.validator!==void 0&&(t.validator=e.validator?qt.Validator.toJSON(e.validator):void 0),e.signedLastBlock!==void 0&&(t.signedLastBlock=e.signedLastBlock),e.voteExtension!==void 0&&(t.voteExtension=(0,Ur.base64FromBytes)(e.voteExtension!==void 0?e.voteExtension:new Uint8Array)),t},fromPartial(e){let t=_5e();return e.validator!==void 0&&e.validator!==null&&(t.validator=qt.Validator.fromPartial(e.validator)),t.signedLastBlock=e.signedLastBlock??!1,t.voteExtension=e.voteExtension??new Uint8Array,t}};function m5e(){return{type:0,validator:qt.Validator.fromPartial({}),height:BigInt(0),time:pA.Timestamp.fromPartial({}),totalVotingPower:BigInt(0)}}qt.Misbehavior={typeUrl:"/tendermint.abci.Misbehavior",encode(e,t=an.BinaryWriter.create()){return e.type!==0&&t.uint32(8).int32(e.type),e.validator!==void 0&&qt.Validator.encode(e.validator,t.uint32(18).fork()).ldelim(),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),e.time!==void 0&&pA.Timestamp.encode(e.time,t.uint32(34).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&t.uint32(40).int64(e.totalVotingPower),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=m5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.type=r.int32();break;case 2:n.validator=qt.Validator.decode(r,r.uint32());break;case 3:n.height=r.int64();break;case 4:n.time=pA.Timestamp.decode(r,r.uint32());break;case 5:n.totalVotingPower=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=m5e();return(0,Ur.isSet)(e.type)&&(t.type=Tyt(e.type)),(0,Ur.isSet)(e.validator)&&(t.validator=qt.Validator.fromJSON(e.validator)),(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.time)&&(t.time=(0,Ur.fromJsonTimestamp)(e.time)),(0,Ur.isSet)(e.totalVotingPower)&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),t},toJSON(e){let t={};return e.type!==void 0&&(t.type=Byt(e.type)),e.validator!==void 0&&(t.validator=e.validator?qt.Validator.toJSON(e.validator):void 0),e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.time!==void 0&&(t.time=(0,Ur.fromTimestamp)(e.time).toISOString()),e.totalVotingPower!==void 0&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),t},fromPartial(e){let t=m5e();return t.type=e.type??0,e.validator!==void 0&&e.validator!==null&&(t.validator=qt.Validator.fromPartial(e.validator)),e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),e.time!==void 0&&e.time!==null&&(t.time=pA.Timestamp.fromPartial(e.time)),e.totalVotingPower!==void 0&&e.totalVotingPower!==null&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),t}};function y5e(){return{height:BigInt(0),format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}qt.Snapshot={typeUrl:"/tendermint.abci.Snapshot",encode(e,t=an.BinaryWriter.create()){return e.height!==BigInt(0)&&t.uint32(8).uint64(e.height),e.format!==0&&t.uint32(16).uint32(e.format),e.chunks!==0&&t.uint32(24).uint32(e.chunks),e.hash.length!==0&&t.uint32(34).bytes(e.hash),e.metadata.length!==0&&t.uint32(42).bytes(e.metadata),t},decode(e,t){let r=e instanceof an.BinaryReader?e:new an.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=y5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=r.uint64();break;case 2:n.format=r.uint32();break;case 3:n.chunks=r.uint32();break;case 4:n.hash=r.bytes();break;case 5:n.metadata=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=y5e();return(0,Ur.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ur.isSet)(e.format)&&(t.format=Number(e.format)),(0,Ur.isSet)(e.chunks)&&(t.chunks=Number(e.chunks)),(0,Ur.isSet)(e.hash)&&(t.hash=(0,Ur.bytesFromBase64)(e.hash)),(0,Ur.isSet)(e.metadata)&&(t.metadata=(0,Ur.bytesFromBase64)(e.metadata)),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.format!==void 0&&(t.format=Math.round(e.format)),e.chunks!==void 0&&(t.chunks=Math.round(e.chunks)),e.hash!==void 0&&(t.hash=(0,Ur.base64FromBytes)(e.hash!==void 0?e.hash:new Uint8Array)),e.metadata!==void 0&&(t.metadata=(0,Ur.base64FromBytes)(e.metadata!==void 0?e.metadata:new Uint8Array)),t},fromPartial(e){let t=y5e();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.format=e.format??0,t.chunks=e.chunks??0,t.hash=e.hash??new Uint8Array,t.metadata=e.metadata??new Uint8Array,t}};var b5e=class{constructor(t){this.rpc=t,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this),this.PrepareProposal=this.PrepareProposal.bind(this),this.ProcessProposal=this.ProcessProposal.bind(this)}Echo(t){let r=qt.RequestEcho.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",r).then(n=>qt.ResponseEcho.decode(new an.BinaryReader(n)))}Flush(t={}){let r=qt.RequestFlush.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",r).then(n=>qt.ResponseFlush.decode(new an.BinaryReader(n)))}Info(t){let r=qt.RequestInfo.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",r).then(n=>qt.ResponseInfo.decode(new an.BinaryReader(n)))}DeliverTx(t){let r=qt.RequestDeliverTx.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",r).then(n=>qt.ResponseDeliverTx.decode(new an.BinaryReader(n)))}CheckTx(t){let r=qt.RequestCheckTx.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",r).then(n=>qt.ResponseCheckTx.decode(new an.BinaryReader(n)))}Query(t){let r=qt.RequestQuery.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",r).then(n=>qt.ResponseQuery.decode(new an.BinaryReader(n)))}Commit(t={}){let r=qt.RequestCommit.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",r).then(n=>qt.ResponseCommit.decode(new an.BinaryReader(n)))}InitChain(t){let r=qt.RequestInitChain.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",r).then(n=>qt.ResponseInitChain.decode(new an.BinaryReader(n)))}BeginBlock(t){let r=qt.RequestBeginBlock.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",r).then(n=>qt.ResponseBeginBlock.decode(new an.BinaryReader(n)))}EndBlock(t){let r=qt.RequestEndBlock.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",r).then(n=>qt.ResponseEndBlock.decode(new an.BinaryReader(n)))}ListSnapshots(t={}){let r=qt.RequestListSnapshots.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",r).then(n=>qt.ResponseListSnapshots.decode(new an.BinaryReader(n)))}OfferSnapshot(t){let r=qt.RequestOfferSnapshot.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",r).then(n=>qt.ResponseOfferSnapshot.decode(new an.BinaryReader(n)))}LoadSnapshotChunk(t){let r=qt.RequestLoadSnapshotChunk.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",r).then(n=>qt.ResponseLoadSnapshotChunk.decode(new an.BinaryReader(n)))}ApplySnapshotChunk(t){let r=qt.RequestApplySnapshotChunk.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",r).then(n=>qt.ResponseApplySnapshotChunk.decode(new an.BinaryReader(n)))}PrepareProposal(t){let r=qt.RequestPrepareProposal.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","PrepareProposal",r).then(n=>qt.ResponsePrepareProposal.decode(new an.BinaryReader(n)))}ProcessProposal(t){let r=qt.RequestProcessProposal.encode(t).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ProcessProposal",r).then(n=>qt.ResponseProcessProposal.decode(new an.BinaryReader(n)))}};qt.ABCIApplicationClientImpl=b5e});var q5e=ir(xn=>{"use strict";J();K();z();Object.defineProperty(xn,"__esModule",{value:!0});xn.ValidatorUpdates=xn.Pool=xn.RedelegationResponse=xn.RedelegationEntryResponse=xn.DelegationResponse=xn.Params=xn.Redelegation=xn.RedelegationEntry=xn.UnbondingDelegationEntry=xn.UnbondingDelegation=xn.Delegation=xn.DVVTriplets=xn.DVVTriplet=xn.DVPairs=xn.DVPair=xn.ValAddresses=xn.Validator=xn.Description=xn.Commission=xn.CommissionRates=xn.HistoricalInfo=xn.infractionToJSON=xn.infractionFromJSON=xn.Infraction=xn.bondStatusToJSON=xn.bondStatusFromJSON=xn.BondStatus=xn.protobufPackage=void 0;var x9=C5(),gA=u1(),hQ=ru(),T9=wS(),B9=Af(),AQ=E5e(),eo=Qi(),Gi=Hi();xn.protobufPackage="cosmos.staking.v1beta1";var U2;(function(e){e[e.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",e[e.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",e[e.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",e[e.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(U2||(xn.BondStatus=U2={}));function Myt(e){switch(e){case 0:case"BOND_STATUS_UNSPECIFIED":return U2.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return U2.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return U2.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return U2.BOND_STATUS_BONDED;default:return U2.UNRECOGNIZED}}xn.bondStatusFromJSON=Myt;function Dyt(e){switch(e){case U2.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case U2.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case U2.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case U2.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case U2.UNRECOGNIZED:default:return"UNRECOGNIZED"}}xn.bondStatusToJSON=Dyt;var zE;(function(e){e[e.INFRACTION_UNSPECIFIED=0]="INFRACTION_UNSPECIFIED",e[e.INFRACTION_DOUBLE_SIGN=1]="INFRACTION_DOUBLE_SIGN",e[e.INFRACTION_DOWNTIME=2]="INFRACTION_DOWNTIME",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zE||(xn.Infraction=zE={}));function A1n(e){switch(e){case 0:case"INFRACTION_UNSPECIFIED":return zE.INFRACTION_UNSPECIFIED;case 1:case"INFRACTION_DOUBLE_SIGN":return zE.INFRACTION_DOUBLE_SIGN;case 2:case"INFRACTION_DOWNTIME":return zE.INFRACTION_DOWNTIME;default:return zE.UNRECOGNIZED}}xn.infractionFromJSON=A1n;function p1n(e){switch(e){case zE.INFRACTION_UNSPECIFIED:return"INFRACTION_UNSPECIFIED";case zE.INFRACTION_DOUBLE_SIGN:return"INFRACTION_DOUBLE_SIGN";case zE.INFRACTION_DOWNTIME:return"INFRACTION_DOWNTIME";case zE.UNRECOGNIZED:default:return"UNRECOGNIZED"}}xn.infractionToJSON=p1n;function v5e(){return{header:x9.Header.fromPartial({}),valset:[]}}xn.HistoricalInfo={typeUrl:"/cosmos.staking.v1beta1.HistoricalInfo",encode(e,t=eo.BinaryWriter.create()){e.header!==void 0&&x9.Header.encode(e.header,t.uint32(10).fork()).ldelim();for(let r of e.valset)xn.Validator.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=v5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.header=x9.Header.decode(r,r.uint32());break;case 2:n.valset.push(xn.Validator.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=v5e();return(0,Gi.isSet)(e.header)&&(t.header=x9.Header.fromJSON(e.header)),Array.isArray(e?.valset)&&(t.valset=e.valset.map(r=>xn.Validator.fromJSON(r))),t},toJSON(e){let t={};return e.header!==void 0&&(t.header=e.header?x9.Header.toJSON(e.header):void 0),e.valset?t.valset=e.valset.map(r=>r?xn.Validator.toJSON(r):void 0):t.valset=[],t},fromPartial(e){let t=v5e();return e.header!==void 0&&e.header!==null&&(t.header=x9.Header.fromPartial(e.header)),t.valset=e.valset?.map(r=>xn.Validator.fromPartial(r))||[],t}};function R5e(){return{rate:"",maxRate:"",maxChangeRate:""}}xn.CommissionRates={typeUrl:"/cosmos.staking.v1beta1.CommissionRates",encode(e,t=eo.BinaryWriter.create()){return e.rate!==""&&t.uint32(10).string(e.rate),e.maxRate!==""&&t.uint32(18).string(e.maxRate),e.maxChangeRate!==""&&t.uint32(26).string(e.maxChangeRate),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=R5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.rate=r.string();break;case 2:n.maxRate=r.string();break;case 3:n.maxChangeRate=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=R5e();return(0,Gi.isSet)(e.rate)&&(t.rate=String(e.rate)),(0,Gi.isSet)(e.maxRate)&&(t.maxRate=String(e.maxRate)),(0,Gi.isSet)(e.maxChangeRate)&&(t.maxChangeRate=String(e.maxChangeRate)),t},toJSON(e){let t={};return e.rate!==void 0&&(t.rate=e.rate),e.maxRate!==void 0&&(t.maxRate=e.maxRate),e.maxChangeRate!==void 0&&(t.maxChangeRate=e.maxChangeRate),t},fromPartial(e){let t=R5e();return t.rate=e.rate??"",t.maxRate=e.maxRate??"",t.maxChangeRate=e.maxChangeRate??"",t}};function S5e(){return{commissionRates:xn.CommissionRates.fromPartial({}),updateTime:gA.Timestamp.fromPartial({})}}xn.Commission={typeUrl:"/cosmos.staking.v1beta1.Commission",encode(e,t=eo.BinaryWriter.create()){return e.commissionRates!==void 0&&xn.CommissionRates.encode(e.commissionRates,t.uint32(10).fork()).ldelim(),e.updateTime!==void 0&&gA.Timestamp.encode(e.updateTime,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=S5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.commissionRates=xn.CommissionRates.decode(r,r.uint32());break;case 2:n.updateTime=gA.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=S5e();return(0,Gi.isSet)(e.commissionRates)&&(t.commissionRates=xn.CommissionRates.fromJSON(e.commissionRates)),(0,Gi.isSet)(e.updateTime)&&(t.updateTime=(0,Gi.fromJsonTimestamp)(e.updateTime)),t},toJSON(e){let t={};return e.commissionRates!==void 0&&(t.commissionRates=e.commissionRates?xn.CommissionRates.toJSON(e.commissionRates):void 0),e.updateTime!==void 0&&(t.updateTime=(0,Gi.fromTimestamp)(e.updateTime).toISOString()),t},fromPartial(e){let t=S5e();return e.commissionRates!==void 0&&e.commissionRates!==null&&(t.commissionRates=xn.CommissionRates.fromPartial(e.commissionRates)),e.updateTime!==void 0&&e.updateTime!==null&&(t.updateTime=gA.Timestamp.fromPartial(e.updateTime)),t}};function I5e(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}xn.Description={typeUrl:"/cosmos.staking.v1beta1.Description",encode(e,t=eo.BinaryWriter.create()){return e.moniker!==""&&t.uint32(10).string(e.moniker),e.identity!==""&&t.uint32(18).string(e.identity),e.website!==""&&t.uint32(26).string(e.website),e.securityContact!==""&&t.uint32(34).string(e.securityContact),e.details!==""&&t.uint32(42).string(e.details),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=I5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.moniker=r.string();break;case 2:n.identity=r.string();break;case 3:n.website=r.string();break;case 4:n.securityContact=r.string();break;case 5:n.details=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=I5e();return(0,Gi.isSet)(e.moniker)&&(t.moniker=String(e.moniker)),(0,Gi.isSet)(e.identity)&&(t.identity=String(e.identity)),(0,Gi.isSet)(e.website)&&(t.website=String(e.website)),(0,Gi.isSet)(e.securityContact)&&(t.securityContact=String(e.securityContact)),(0,Gi.isSet)(e.details)&&(t.details=String(e.details)),t},toJSON(e){let t={};return e.moniker!==void 0&&(t.moniker=e.moniker),e.identity!==void 0&&(t.identity=e.identity),e.website!==void 0&&(t.website=e.website),e.securityContact!==void 0&&(t.securityContact=e.securityContact),e.details!==void 0&&(t.details=e.details),t},fromPartial(e){let t=I5e();return t.moniker=e.moniker??"",t.identity=e.identity??"",t.website=e.website??"",t.securityContact=e.securityContact??"",t.details=e.details??"",t}};function C5e(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:xn.Description.fromPartial({}),unbondingHeight:BigInt(0),unbondingTime:gA.Timestamp.fromPartial({}),commission:xn.Commission.fromPartial({}),minSelfDelegation:"",unbondingOnHoldRefCount:BigInt(0),unbondingIds:[]}}xn.Validator={typeUrl:"/cosmos.staking.v1beta1.Validator",encode(e,t=eo.BinaryWriter.create()){e.operatorAddress!==""&&t.uint32(10).string(e.operatorAddress),e.consensusPubkey!==void 0&&hQ.Any.encode(e.consensusPubkey,t.uint32(18).fork()).ldelim(),e.jailed===!0&&t.uint32(24).bool(e.jailed),e.status!==0&&t.uint32(32).int32(e.status),e.tokens!==""&&t.uint32(42).string(e.tokens),e.delegatorShares!==""&&t.uint32(50).string(e.delegatorShares),e.description!==void 0&&xn.Description.encode(e.description,t.uint32(58).fork()).ldelim(),e.unbondingHeight!==BigInt(0)&&t.uint32(64).int64(e.unbondingHeight),e.unbondingTime!==void 0&&gA.Timestamp.encode(e.unbondingTime,t.uint32(74).fork()).ldelim(),e.commission!==void 0&&xn.Commission.encode(e.commission,t.uint32(82).fork()).ldelim(),e.minSelfDelegation!==""&&t.uint32(90).string(e.minSelfDelegation),e.unbondingOnHoldRefCount!==BigInt(0)&&t.uint32(96).int64(e.unbondingOnHoldRefCount),t.uint32(106).fork();for(let r of e.unbondingIds)t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=C5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.operatorAddress=r.string();break;case 2:n.consensusPubkey=hQ.Any.decode(r,r.uint32());break;case 3:n.jailed=r.bool();break;case 4:n.status=r.int32();break;case 5:n.tokens=r.string();break;case 6:n.delegatorShares=r.string();break;case 7:n.description=xn.Description.decode(r,r.uint32());break;case 8:n.unbondingHeight=r.int64();break;case 9:n.unbondingTime=gA.Timestamp.decode(r,r.uint32());break;case 10:n.commission=xn.Commission.decode(r,r.uint32());break;case 11:n.minSelfDelegation=r.string();break;case 12:n.unbondingOnHoldRefCount=r.int64();break;case 13:if((o&7)===2){let d=r.uint32()+r.pos;for(;r.pos<d;)n.unbondingIds.push(r.uint64())}else n.unbondingIds.push(r.uint64());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=C5e();return(0,Gi.isSet)(e.operatorAddress)&&(t.operatorAddress=String(e.operatorAddress)),(0,Gi.isSet)(e.consensusPubkey)&&(t.consensusPubkey=hQ.Any.fromJSON(e.consensusPubkey)),(0,Gi.isSet)(e.jailed)&&(t.jailed=!!e.jailed),(0,Gi.isSet)(e.status)&&(t.status=Myt(e.status)),(0,Gi.isSet)(e.tokens)&&(t.tokens=String(e.tokens)),(0,Gi.isSet)(e.delegatorShares)&&(t.delegatorShares=String(e.delegatorShares)),(0,Gi.isSet)(e.description)&&(t.description=xn.Description.fromJSON(e.description)),(0,Gi.isSet)(e.unbondingHeight)&&(t.unbondingHeight=BigInt(e.unbondingHeight.toString())),(0,Gi.isSet)(e.unbondingTime)&&(t.unbondingTime=(0,Gi.fromJsonTimestamp)(e.unbondingTime)),(0,Gi.isSet)(e.commission)&&(t.commission=xn.Commission.fromJSON(e.commission)),(0,Gi.isSet)(e.minSelfDelegation)&&(t.minSelfDelegation=String(e.minSelfDelegation)),(0,Gi.isSet)(e.unbondingOnHoldRefCount)&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),Array.isArray(e?.unbondingIds)&&(t.unbondingIds=e.unbondingIds.map(r=>BigInt(r.toString()))),t},toJSON(e){let t={};return e.operatorAddress!==void 0&&(t.operatorAddress=e.operatorAddress),e.consensusPubkey!==void 0&&(t.consensusPubkey=e.consensusPubkey?hQ.Any.toJSON(e.consensusPubkey):void 0),e.jailed!==void 0&&(t.jailed=e.jailed),e.status!==void 0&&(t.status=Dyt(e.status)),e.tokens!==void 0&&(t.tokens=e.tokens),e.delegatorShares!==void 0&&(t.delegatorShares=e.delegatorShares),e.description!==void 0&&(t.description=e.description?xn.Description.toJSON(e.description):void 0),e.unbondingHeight!==void 0&&(t.unbondingHeight=(e.unbondingHeight||BigInt(0)).toString()),e.unbondingTime!==void 0&&(t.unbondingTime=(0,Gi.fromTimestamp)(e.unbondingTime).toISOString()),e.commission!==void 0&&(t.commission=e.commission?xn.Commission.toJSON(e.commission):void 0),e.minSelfDelegation!==void 0&&(t.minSelfDelegation=e.minSelfDelegation),e.unbondingOnHoldRefCount!==void 0&&(t.unbondingOnHoldRefCount=(e.unbondingOnHoldRefCount||BigInt(0)).toString()),e.unbondingIds?t.unbondingIds=e.unbondingIds.map(r=>(r||BigInt(0)).toString()):t.unbondingIds=[],t},fromPartial(e){let t=C5e();return t.operatorAddress=e.operatorAddress??"",e.consensusPubkey!==void 0&&e.consensusPubkey!==null&&(t.consensusPubkey=hQ.Any.fromPartial(e.consensusPubkey)),t.jailed=e.jailed??!1,t.status=e.status??0,t.tokens=e.tokens??"",t.delegatorShares=e.delegatorShares??"",e.description!==void 0&&e.description!==null&&(t.description=xn.Description.fromPartial(e.description)),e.unbondingHeight!==void 0&&e.unbondingHeight!==null&&(t.unbondingHeight=BigInt(e.unbondingHeight.toString())),e.unbondingTime!==void 0&&e.unbondingTime!==null&&(t.unbondingTime=gA.Timestamp.fromPartial(e.unbondingTime)),e.commission!==void 0&&e.commission!==null&&(t.commission=xn.Commission.fromPartial(e.commission)),t.minSelfDelegation=e.minSelfDelegation??"",e.unbondingOnHoldRefCount!==void 0&&e.unbondingOnHoldRefCount!==null&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t.unbondingIds=e.unbondingIds?.map(r=>BigInt(r.toString()))||[],t}};function w5e(){return{addresses:[]}}xn.ValAddresses={typeUrl:"/cosmos.staking.v1beta1.ValAddresses",encode(e,t=eo.BinaryWriter.create()){for(let r of e.addresses)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=w5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.addresses.push(r.string()):r.skipType(o&7)}return n},fromJSON(e){let t=w5e();return Array.isArray(e?.addresses)&&(t.addresses=e.addresses.map(r=>String(r))),t},toJSON(e){let t={};return e.addresses?t.addresses=e.addresses.map(r=>r):t.addresses=[],t},fromPartial(e){let t=w5e();return t.addresses=e.addresses?.map(r=>r)||[],t}};function O5e(){return{delegatorAddress:"",validatorAddress:""}}xn.DVPair={typeUrl:"/cosmos.staking.v1beta1.DVPair",encode(e,t=eo.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=O5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=O5e();return(0,Gi.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,Gi.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=O5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t}};function N5e(){return{pairs:[]}}xn.DVPairs={typeUrl:"/cosmos.staking.v1beta1.DVPairs",encode(e,t=eo.BinaryWriter.create()){for(let r of e.pairs)xn.DVPair.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=N5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pairs.push(xn.DVPair.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=N5e();return Array.isArray(e?.pairs)&&(t.pairs=e.pairs.map(r=>xn.DVPair.fromJSON(r))),t},toJSON(e){let t={};return e.pairs?t.pairs=e.pairs.map(r=>r?xn.DVPair.toJSON(r):void 0):t.pairs=[],t},fromPartial(e){let t=N5e();return t.pairs=e.pairs?.map(r=>xn.DVPair.fromPartial(r))||[],t}};function x5e(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}xn.DVVTriplet={typeUrl:"/cosmos.staking.v1beta1.DVVTriplet",encode(e,t=eo.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorSrcAddress!==""&&t.uint32(18).string(e.validatorSrcAddress),e.validatorDstAddress!==""&&t.uint32(26).string(e.validatorDstAddress),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=x5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorSrcAddress=r.string();break;case 3:n.validatorDstAddress=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=x5e();return(0,Gi.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,Gi.isSet)(e.validatorSrcAddress)&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),(0,Gi.isSet)(e.validatorDstAddress)&&(t.validatorDstAddress=String(e.validatorDstAddress)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorSrcAddress!==void 0&&(t.validatorSrcAddress=e.validatorSrcAddress),e.validatorDstAddress!==void 0&&(t.validatorDstAddress=e.validatorDstAddress),t},fromPartial(e){let t=x5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorSrcAddress=e.validatorSrcAddress??"",t.validatorDstAddress=e.validatorDstAddress??"",t}};function T5e(){return{triplets:[]}}xn.DVVTriplets={typeUrl:"/cosmos.staking.v1beta1.DVVTriplets",encode(e,t=eo.BinaryWriter.create()){for(let r of e.triplets)xn.DVVTriplet.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=T5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.triplets.push(xn.DVVTriplet.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=T5e();return Array.isArray(e?.triplets)&&(t.triplets=e.triplets.map(r=>xn.DVVTriplet.fromJSON(r))),t},toJSON(e){let t={};return e.triplets?t.triplets=e.triplets.map(r=>r?xn.DVVTriplet.toJSON(r):void 0):t.triplets=[],t},fromPartial(e){let t=T5e();return t.triplets=e.triplets?.map(r=>xn.DVVTriplet.fromPartial(r))||[],t}};function B5e(){return{delegatorAddress:"",validatorAddress:"",shares:""}}xn.Delegation={typeUrl:"/cosmos.staking.v1beta1.Delegation",encode(e,t=eo.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),e.shares!==""&&t.uint32(26).string(e.shares),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=B5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.shares=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=B5e();return(0,Gi.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,Gi.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,Gi.isSet)(e.shares)&&(t.shares=String(e.shares)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.shares!==void 0&&(t.shares=e.shares),t},fromPartial(e){let t=B5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t.shares=e.shares??"",t}};function M5e(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}xn.UnbondingDelegation={typeUrl:"/cosmos.staking.v1beta1.UnbondingDelegation",encode(e,t=eo.BinaryWriter.create()){e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress);for(let r of e.entries)xn.UnbondingDelegationEntry.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=M5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.entries.push(xn.UnbondingDelegationEntry.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=M5e();return(0,Gi.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,Gi.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),Array.isArray(e?.entries)&&(t.entries=e.entries.map(r=>xn.UnbondingDelegationEntry.fromJSON(r))),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.entries?t.entries=e.entries.map(r=>r?xn.UnbondingDelegationEntry.toJSON(r):void 0):t.entries=[],t},fromPartial(e){let t=M5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t.entries=e.entries?.map(r=>xn.UnbondingDelegationEntry.fromPartial(r))||[],t}};function D5e(){return{creationHeight:BigInt(0),completionTime:gA.Timestamp.fromPartial({}),initialBalance:"",balance:"",unbondingId:BigInt(0),unbondingOnHoldRefCount:BigInt(0)}}xn.UnbondingDelegationEntry={typeUrl:"/cosmos.staking.v1beta1.UnbondingDelegationEntry",encode(e,t=eo.BinaryWriter.create()){return e.creationHeight!==BigInt(0)&&t.uint32(8).int64(e.creationHeight),e.completionTime!==void 0&&gA.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),e.initialBalance!==""&&t.uint32(26).string(e.initialBalance),e.balance!==""&&t.uint32(34).string(e.balance),e.unbondingId!==BigInt(0)&&t.uint32(40).uint64(e.unbondingId),e.unbondingOnHoldRefCount!==BigInt(0)&&t.uint32(48).int64(e.unbondingOnHoldRefCount),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=D5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.creationHeight=r.int64();break;case 2:n.completionTime=gA.Timestamp.decode(r,r.uint32());break;case 3:n.initialBalance=r.string();break;case 4:n.balance=r.string();break;case 5:n.unbondingId=r.uint64();break;case 6:n.unbondingOnHoldRefCount=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=D5e();return(0,Gi.isSet)(e.creationHeight)&&(t.creationHeight=BigInt(e.creationHeight.toString())),(0,Gi.isSet)(e.completionTime)&&(t.completionTime=(0,Gi.fromJsonTimestamp)(e.completionTime)),(0,Gi.isSet)(e.initialBalance)&&(t.initialBalance=String(e.initialBalance)),(0,Gi.isSet)(e.balance)&&(t.balance=String(e.balance)),(0,Gi.isSet)(e.unbondingId)&&(t.unbondingId=BigInt(e.unbondingId.toString())),(0,Gi.isSet)(e.unbondingOnHoldRefCount)&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t},toJSON(e){let t={};return e.creationHeight!==void 0&&(t.creationHeight=(e.creationHeight||BigInt(0)).toString()),e.completionTime!==void 0&&(t.completionTime=(0,Gi.fromTimestamp)(e.completionTime).toISOString()),e.initialBalance!==void 0&&(t.initialBalance=e.initialBalance),e.balance!==void 0&&(t.balance=e.balance),e.unbondingId!==void 0&&(t.unbondingId=(e.unbondingId||BigInt(0)).toString()),e.unbondingOnHoldRefCount!==void 0&&(t.unbondingOnHoldRefCount=(e.unbondingOnHoldRefCount||BigInt(0)).toString()),t},fromPartial(e){let t=D5e();return e.creationHeight!==void 0&&e.creationHeight!==null&&(t.creationHeight=BigInt(e.creationHeight.toString())),e.completionTime!==void 0&&e.completionTime!==null&&(t.completionTime=gA.Timestamp.fromPartial(e.completionTime)),t.initialBalance=e.initialBalance??"",t.balance=e.balance??"",e.unbondingId!==void 0&&e.unbondingId!==null&&(t.unbondingId=BigInt(e.unbondingId.toString())),e.unbondingOnHoldRefCount!==void 0&&e.unbondingOnHoldRefCount!==null&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t}};function k5e(){return{creationHeight:BigInt(0),completionTime:gA.Timestamp.fromPartial({}),initialBalance:"",sharesDst:"",unbondingId:BigInt(0),unbondingOnHoldRefCount:BigInt(0)}}xn.RedelegationEntry={typeUrl:"/cosmos.staking.v1beta1.RedelegationEntry",encode(e,t=eo.BinaryWriter.create()){return e.creationHeight!==BigInt(0)&&t.uint32(8).int64(e.creationHeight),e.completionTime!==void 0&&gA.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),e.initialBalance!==""&&t.uint32(26).string(e.initialBalance),e.sharesDst!==""&&t.uint32(34).string(e.sharesDst),e.unbondingId!==BigInt(0)&&t.uint32(40).uint64(e.unbondingId),e.unbondingOnHoldRefCount!==BigInt(0)&&t.uint32(48).int64(e.unbondingOnHoldRefCount),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=k5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.creationHeight=r.int64();break;case 2:n.completionTime=gA.Timestamp.decode(r,r.uint32());break;case 3:n.initialBalance=r.string();break;case 4:n.sharesDst=r.string();break;case 5:n.unbondingId=r.uint64();break;case 6:n.unbondingOnHoldRefCount=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=k5e();return(0,Gi.isSet)(e.creationHeight)&&(t.creationHeight=BigInt(e.creationHeight.toString())),(0,Gi.isSet)(e.completionTime)&&(t.completionTime=(0,Gi.fromJsonTimestamp)(e.completionTime)),(0,Gi.isSet)(e.initialBalance)&&(t.initialBalance=String(e.initialBalance)),(0,Gi.isSet)(e.sharesDst)&&(t.sharesDst=String(e.sharesDst)),(0,Gi.isSet)(e.unbondingId)&&(t.unbondingId=BigInt(e.unbondingId.toString())),(0,Gi.isSet)(e.unbondingOnHoldRefCount)&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t},toJSON(e){let t={};return e.creationHeight!==void 0&&(t.creationHeight=(e.creationHeight||BigInt(0)).toString()),e.completionTime!==void 0&&(t.completionTime=(0,Gi.fromTimestamp)(e.completionTime).toISOString()),e.initialBalance!==void 0&&(t.initialBalance=e.initialBalance),e.sharesDst!==void 0&&(t.sharesDst=e.sharesDst),e.unbondingId!==void 0&&(t.unbondingId=(e.unbondingId||BigInt(0)).toString()),e.unbondingOnHoldRefCount!==void 0&&(t.unbondingOnHoldRefCount=(e.unbondingOnHoldRefCount||BigInt(0)).toString()),t},fromPartial(e){let t=k5e();return e.creationHeight!==void 0&&e.creationHeight!==null&&(t.creationHeight=BigInt(e.creationHeight.toString())),e.completionTime!==void 0&&e.completionTime!==null&&(t.completionTime=gA.Timestamp.fromPartial(e.completionTime)),t.initialBalance=e.initialBalance??"",t.sharesDst=e.sharesDst??"",e.unbondingId!==void 0&&e.unbondingId!==null&&(t.unbondingId=BigInt(e.unbondingId.toString())),e.unbondingOnHoldRefCount!==void 0&&e.unbondingOnHoldRefCount!==null&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t}};function P5e(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}xn.Redelegation={typeUrl:"/cosmos.staking.v1beta1.Redelegation",encode(e,t=eo.BinaryWriter.create()){e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorSrcAddress!==""&&t.uint32(18).string(e.validatorSrcAddress),e.validatorDstAddress!==""&&t.uint32(26).string(e.validatorDstAddress);for(let r of e.entries)xn.RedelegationEntry.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=P5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorSrcAddress=r.string();break;case 3:n.validatorDstAddress=r.string();break;case 4:n.entries.push(xn.RedelegationEntry.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=P5e();return(0,Gi.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,Gi.isSet)(e.validatorSrcAddress)&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),(0,Gi.isSet)(e.validatorDstAddress)&&(t.validatorDstAddress=String(e.validatorDstAddress)),Array.isArray(e?.entries)&&(t.entries=e.entries.map(r=>xn.RedelegationEntry.fromJSON(r))),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorSrcAddress!==void 0&&(t.validatorSrcAddress=e.validatorSrcAddress),e.validatorDstAddress!==void 0&&(t.validatorDstAddress=e.validatorDstAddress),e.entries?t.entries=e.entries.map(r=>r?xn.RedelegationEntry.toJSON(r):void 0):t.entries=[],t},fromPartial(e){let t=P5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorSrcAddress=e.validatorSrcAddress??"",t.validatorDstAddress=e.validatorDstAddress??"",t.entries=e.entries?.map(r=>xn.RedelegationEntry.fromPartial(r))||[],t}};function L5e(){return{unbondingTime:T9.Duration.fromPartial({}),maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:"",minCommissionRate:""}}xn.Params={typeUrl:"/cosmos.staking.v1beta1.Params",encode(e,t=eo.BinaryWriter.create()){return e.unbondingTime!==void 0&&T9.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),e.maxValidators!==0&&t.uint32(16).uint32(e.maxValidators),e.maxEntries!==0&&t.uint32(24).uint32(e.maxEntries),e.historicalEntries!==0&&t.uint32(32).uint32(e.historicalEntries),e.bondDenom!==""&&t.uint32(42).string(e.bondDenom),e.minCommissionRate!==""&&t.uint32(50).string(e.minCommissionRate),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=L5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.unbondingTime=T9.Duration.decode(r,r.uint32());break;case 2:n.maxValidators=r.uint32();break;case 3:n.maxEntries=r.uint32();break;case 4:n.historicalEntries=r.uint32();break;case 5:n.bondDenom=r.string();break;case 6:n.minCommissionRate=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=L5e();return(0,Gi.isSet)(e.unbondingTime)&&(t.unbondingTime=T9.Duration.fromJSON(e.unbondingTime)),(0,Gi.isSet)(e.maxValidators)&&(t.maxValidators=Number(e.maxValidators)),(0,Gi.isSet)(e.maxEntries)&&(t.maxEntries=Number(e.maxEntries)),(0,Gi.isSet)(e.historicalEntries)&&(t.historicalEntries=Number(e.historicalEntries)),(0,Gi.isSet)(e.bondDenom)&&(t.bondDenom=String(e.bondDenom)),(0,Gi.isSet)(e.minCommissionRate)&&(t.minCommissionRate=String(e.minCommissionRate)),t},toJSON(e){let t={};return e.unbondingTime!==void 0&&(t.unbondingTime=e.unbondingTime?T9.Duration.toJSON(e.unbondingTime):void 0),e.maxValidators!==void 0&&(t.maxValidators=Math.round(e.maxValidators)),e.maxEntries!==void 0&&(t.maxEntries=Math.round(e.maxEntries)),e.historicalEntries!==void 0&&(t.historicalEntries=Math.round(e.historicalEntries)),e.bondDenom!==void 0&&(t.bondDenom=e.bondDenom),e.minCommissionRate!==void 0&&(t.minCommissionRate=e.minCommissionRate),t},fromPartial(e){let t=L5e();return e.unbondingTime!==void 0&&e.unbondingTime!==null&&(t.unbondingTime=T9.Duration.fromPartial(e.unbondingTime)),t.maxValidators=e.maxValidators??0,t.maxEntries=e.maxEntries??0,t.historicalEntries=e.historicalEntries??0,t.bondDenom=e.bondDenom??"",t.minCommissionRate=e.minCommissionRate??"",t}};function U5e(){return{delegation:xn.Delegation.fromPartial({}),balance:B9.Coin.fromPartial({})}}xn.DelegationResponse={typeUrl:"/cosmos.staking.v1beta1.DelegationResponse",encode(e,t=eo.BinaryWriter.create()){return e.delegation!==void 0&&xn.Delegation.encode(e.delegation,t.uint32(10).fork()).ldelim(),e.balance!==void 0&&B9.Coin.encode(e.balance,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=U5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegation=xn.Delegation.decode(r,r.uint32());break;case 2:n.balance=B9.Coin.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=U5e();return(0,Gi.isSet)(e.delegation)&&(t.delegation=xn.Delegation.fromJSON(e.delegation)),(0,Gi.isSet)(e.balance)&&(t.balance=B9.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return e.delegation!==void 0&&(t.delegation=e.delegation?xn.Delegation.toJSON(e.delegation):void 0),e.balance!==void 0&&(t.balance=e.balance?B9.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=U5e();return e.delegation!==void 0&&e.delegation!==null&&(t.delegation=xn.Delegation.fromPartial(e.delegation)),e.balance!==void 0&&e.balance!==null&&(t.balance=B9.Coin.fromPartial(e.balance)),t}};function F5e(){return{redelegationEntry:xn.RedelegationEntry.fromPartial({}),balance:""}}xn.RedelegationEntryResponse={typeUrl:"/cosmos.staking.v1beta1.RedelegationEntryResponse",encode(e,t=eo.BinaryWriter.create()){return e.redelegationEntry!==void 0&&xn.RedelegationEntry.encode(e.redelegationEntry,t.uint32(10).fork()).ldelim(),e.balance!==""&&t.uint32(34).string(e.balance),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=F5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.redelegationEntry=xn.RedelegationEntry.decode(r,r.uint32());break;case 4:n.balance=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=F5e();return(0,Gi.isSet)(e.redelegationEntry)&&(t.redelegationEntry=xn.RedelegationEntry.fromJSON(e.redelegationEntry)),(0,Gi.isSet)(e.balance)&&(t.balance=String(e.balance)),t},toJSON(e){let t={};return e.redelegationEntry!==void 0&&(t.redelegationEntry=e.redelegationEntry?xn.RedelegationEntry.toJSON(e.redelegationEntry):void 0),e.balance!==void 0&&(t.balance=e.balance),t},fromPartial(e){let t=F5e();return e.redelegationEntry!==void 0&&e.redelegationEntry!==null&&(t.redelegationEntry=xn.RedelegationEntry.fromPartial(e.redelegationEntry)),t.balance=e.balance??"",t}};function Q5e(){return{redelegation:xn.Redelegation.fromPartial({}),entries:[]}}xn.RedelegationResponse={typeUrl:"/cosmos.staking.v1beta1.RedelegationResponse",encode(e,t=eo.BinaryWriter.create()){e.redelegation!==void 0&&xn.Redelegation.encode(e.redelegation,t.uint32(10).fork()).ldelim();for(let r of e.entries)xn.RedelegationEntryResponse.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Q5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.redelegation=xn.Redelegation.decode(r,r.uint32());break;case 2:n.entries.push(xn.RedelegationEntryResponse.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Q5e();return(0,Gi.isSet)(e.redelegation)&&(t.redelegation=xn.Redelegation.fromJSON(e.redelegation)),Array.isArray(e?.entries)&&(t.entries=e.entries.map(r=>xn.RedelegationEntryResponse.fromJSON(r))),t},toJSON(e){let t={};return e.redelegation!==void 0&&(t.redelegation=e.redelegation?xn.Redelegation.toJSON(e.redelegation):void 0),e.entries?t.entries=e.entries.map(r=>r?xn.RedelegationEntryResponse.toJSON(r):void 0):t.entries=[],t},fromPartial(e){let t=Q5e();return e.redelegation!==void 0&&e.redelegation!==null&&(t.redelegation=xn.Redelegation.fromPartial(e.redelegation)),t.entries=e.entries?.map(r=>xn.RedelegationEntryResponse.fromPartial(r))||[],t}};function H5e(){return{notBondedTokens:"",bondedTokens:""}}xn.Pool={typeUrl:"/cosmos.staking.v1beta1.Pool",encode(e,t=eo.BinaryWriter.create()){return e.notBondedTokens!==""&&t.uint32(10).string(e.notBondedTokens),e.bondedTokens!==""&&t.uint32(18).string(e.bondedTokens),t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=H5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.notBondedTokens=r.string();break;case 2:n.bondedTokens=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=H5e();return(0,Gi.isSet)(e.notBondedTokens)&&(t.notBondedTokens=String(e.notBondedTokens)),(0,Gi.isSet)(e.bondedTokens)&&(t.bondedTokens=String(e.bondedTokens)),t},toJSON(e){let t={};return e.notBondedTokens!==void 0&&(t.notBondedTokens=e.notBondedTokens),e.bondedTokens!==void 0&&(t.bondedTokens=e.bondedTokens),t},fromPartial(e){let t=H5e();return t.notBondedTokens=e.notBondedTokens??"",t.bondedTokens=e.bondedTokens??"",t}};function G5e(){return{updates:[]}}xn.ValidatorUpdates={typeUrl:"/cosmos.staking.v1beta1.ValidatorUpdates",encode(e,t=eo.BinaryWriter.create()){for(let r of e.updates)AQ.ValidatorUpdate.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof eo.BinaryReader?e:new eo.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=G5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.updates.push(AQ.ValidatorUpdate.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=G5e();return Array.isArray(e?.updates)&&(t.updates=e.updates.map(r=>AQ.ValidatorUpdate.fromJSON(r))),t},toJSON(e){let t={};return e.updates?t.updates=e.updates.map(r=>r?AQ.ValidatorUpdate.toJSON(r):void 0):t.updates=[],t},fromPartial(e){let t=G5e();return t.updates=e.updates?.map(r=>AQ.ValidatorUpdate.fromPartial(r))||[],t}}});var oOe=ir(Zo=>{"use strict";J();K();z();Object.defineProperty(Zo,"__esModule",{value:!0});Zo.MsgClientImpl=Zo.MsgUpdateParamsResponse=Zo.MsgUpdateParams=Zo.MsgCancelUnbondingDelegationResponse=Zo.MsgCancelUnbondingDelegation=Zo.MsgUndelegateResponse=Zo.MsgUndelegate=Zo.MsgBeginRedelegateResponse=Zo.MsgBeginRedelegate=Zo.MsgDelegateResponse=Zo.MsgDelegate=Zo.MsgEditValidatorResponse=Zo.MsgEditValidator=Zo.MsgCreateValidatorResponse=Zo.MsgCreateValidator=Zo.protobufPackage=void 0;var B0=q5e(),pQ=ru(),qc=Af(),h8=u1(),$o=Qi(),ac=Hi();Zo.protobufPackage="cosmos.staking.v1beta1";function V5e(){return{description:B0.Description.fromPartial({}),commission:B0.CommissionRates.fromPartial({}),minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:qc.Coin.fromPartial({})}}Zo.MsgCreateValidator={typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidator",encode(e,t=$o.BinaryWriter.create()){return e.description!==void 0&&B0.Description.encode(e.description,t.uint32(10).fork()).ldelim(),e.commission!==void 0&&B0.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),e.minSelfDelegation!==""&&t.uint32(26).string(e.minSelfDelegation),e.delegatorAddress!==""&&t.uint32(34).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(42).string(e.validatorAddress),e.pubkey!==void 0&&pQ.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),e.value!==void 0&&qc.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=V5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.description=B0.Description.decode(r,r.uint32());break;case 2:n.commission=B0.CommissionRates.decode(r,r.uint32());break;case 3:n.minSelfDelegation=r.string();break;case 4:n.delegatorAddress=r.string();break;case 5:n.validatorAddress=r.string();break;case 6:n.pubkey=pQ.Any.decode(r,r.uint32());break;case 7:n.value=qc.Coin.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=V5e();return(0,ac.isSet)(e.description)&&(t.description=B0.Description.fromJSON(e.description)),(0,ac.isSet)(e.commission)&&(t.commission=B0.CommissionRates.fromJSON(e.commission)),(0,ac.isSet)(e.minSelfDelegation)&&(t.minSelfDelegation=String(e.minSelfDelegation)),(0,ac.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,ac.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,ac.isSet)(e.pubkey)&&(t.pubkey=pQ.Any.fromJSON(e.pubkey)),(0,ac.isSet)(e.value)&&(t.value=qc.Coin.fromJSON(e.value)),t},toJSON(e){let t={};return e.description!==void 0&&(t.description=e.description?B0.Description.toJSON(e.description):void 0),e.commission!==void 0&&(t.commission=e.commission?B0.CommissionRates.toJSON(e.commission):void 0),e.minSelfDelegation!==void 0&&(t.minSelfDelegation=e.minSelfDelegation),e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.pubkey!==void 0&&(t.pubkey=e.pubkey?pQ.Any.toJSON(e.pubkey):void 0),e.value!==void 0&&(t.value=e.value?qc.Coin.toJSON(e.value):void 0),t},fromPartial(e){let t=V5e();return e.description!==void 0&&e.description!==null&&(t.description=B0.Description.fromPartial(e.description)),e.commission!==void 0&&e.commission!==null&&(t.commission=B0.CommissionRates.fromPartial(e.commission)),t.minSelfDelegation=e.minSelfDelegation??"",t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",e.pubkey!==void 0&&e.pubkey!==null&&(t.pubkey=pQ.Any.fromPartial(e.pubkey)),e.value!==void 0&&e.value!==null&&(t.value=qc.Coin.fromPartial(e.value)),t}};function J5e(){return{}}Zo.MsgCreateValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidatorResponse",encode(e,t=$o.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=J5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return J5e()},toJSON(e){return{}},fromPartial(e){return J5e()}};function z5e(){return{description:B0.Description.fromPartial({}),validatorAddress:"",commissionRate:"",minSelfDelegation:""}}Zo.MsgEditValidator={typeUrl:"/cosmos.staking.v1beta1.MsgEditValidator",encode(e,t=$o.BinaryWriter.create()){return e.description!==void 0&&B0.Description.encode(e.description,t.uint32(10).fork()).ldelim(),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),e.commissionRate!==""&&t.uint32(26).string(e.commissionRate),e.minSelfDelegation!==""&&t.uint32(34).string(e.minSelfDelegation),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=z5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.description=B0.Description.decode(r,r.uint32());break;case 2:n.validatorAddress=r.string();break;case 3:n.commissionRate=r.string();break;case 4:n.minSelfDelegation=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=z5e();return(0,ac.isSet)(e.description)&&(t.description=B0.Description.fromJSON(e.description)),(0,ac.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,ac.isSet)(e.commissionRate)&&(t.commissionRate=String(e.commissionRate)),(0,ac.isSet)(e.minSelfDelegation)&&(t.minSelfDelegation=String(e.minSelfDelegation)),t},toJSON(e){let t={};return e.description!==void 0&&(t.description=e.description?B0.Description.toJSON(e.description):void 0),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.commissionRate!==void 0&&(t.commissionRate=e.commissionRate),e.minSelfDelegation!==void 0&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial(e){let t=z5e();return e.description!==void 0&&e.description!==null&&(t.description=B0.Description.fromPartial(e.description)),t.validatorAddress=e.validatorAddress??"",t.commissionRate=e.commissionRate??"",t.minSelfDelegation=e.minSelfDelegation??"",t}};function K5e(){return{}}Zo.MsgEditValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.MsgEditValidatorResponse",encode(e,t=$o.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=K5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return K5e()},toJSON(e){return{}},fromPartial(e){return K5e()}};function $5e(){return{delegatorAddress:"",validatorAddress:"",amount:qc.Coin.fromPartial({})}}Zo.MsgDelegate={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",encode(e,t=$o.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),e.amount!==void 0&&qc.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.amount=qc.Coin.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=$5e();return(0,ac.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,ac.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,ac.isSet)(e.amount)&&(t.amount=qc.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.amount!==void 0&&(t.amount=e.amount?qc.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=$5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",e.amount!==void 0&&e.amount!==null&&(t.amount=qc.Coin.fromPartial(e.amount)),t}};function Y5e(){return{}}Zo.MsgDelegateResponse={typeUrl:"/cosmos.staking.v1beta1.MsgDelegateResponse",encode(e,t=$o.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Y5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return Y5e()},toJSON(e){return{}},fromPartial(e){return Y5e()}};function W5e(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:qc.Coin.fromPartial({})}}Zo.MsgBeginRedelegate={typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",encode(e,t=$o.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorSrcAddress!==""&&t.uint32(18).string(e.validatorSrcAddress),e.validatorDstAddress!==""&&t.uint32(26).string(e.validatorDstAddress),e.amount!==void 0&&qc.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=W5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorSrcAddress=r.string();break;case 3:n.validatorDstAddress=r.string();break;case 4:n.amount=qc.Coin.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=W5e();return(0,ac.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,ac.isSet)(e.validatorSrcAddress)&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),(0,ac.isSet)(e.validatorDstAddress)&&(t.validatorDstAddress=String(e.validatorDstAddress)),(0,ac.isSet)(e.amount)&&(t.amount=qc.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorSrcAddress!==void 0&&(t.validatorSrcAddress=e.validatorSrcAddress),e.validatorDstAddress!==void 0&&(t.validatorDstAddress=e.validatorDstAddress),e.amount!==void 0&&(t.amount=e.amount?qc.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=W5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorSrcAddress=e.validatorSrcAddress??"",t.validatorDstAddress=e.validatorDstAddress??"",e.amount!==void 0&&e.amount!==null&&(t.amount=qc.Coin.fromPartial(e.amount)),t}};function X5e(){return{completionTime:h8.Timestamp.fromPartial({})}}Zo.MsgBeginRedelegateResponse={typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegateResponse",encode(e,t=$o.BinaryWriter.create()){return e.completionTime!==void 0&&h8.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=X5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.completionTime=h8.Timestamp.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=X5e();return(0,ac.isSet)(e.completionTime)&&(t.completionTime=(0,ac.fromJsonTimestamp)(e.completionTime)),t},toJSON(e){let t={};return e.completionTime!==void 0&&(t.completionTime=(0,ac.fromTimestamp)(e.completionTime).toISOString()),t},fromPartial(e){let t=X5e();return e.completionTime!==void 0&&e.completionTime!==null&&(t.completionTime=h8.Timestamp.fromPartial(e.completionTime)),t}};function Z5e(){return{delegatorAddress:"",validatorAddress:"",amount:qc.Coin.fromPartial({})}}Zo.MsgUndelegate={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",encode(e,t=$o.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),e.amount!==void 0&&qc.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=Z5e();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.amount=qc.Coin.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=Z5e();return(0,ac.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,ac.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,ac.isSet)(e.amount)&&(t.amount=qc.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.amount!==void 0&&(t.amount=e.amount?qc.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=Z5e();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",e.amount!==void 0&&e.amount!==null&&(t.amount=qc.Coin.fromPartial(e.amount)),t}};function j5e(){return{completionTime:h8.Timestamp.fromPartial({})}}Zo.MsgUndelegateResponse={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegateResponse",encode(e,t=$o.BinaryWriter.create()){return e.completionTime!==void 0&&h8.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=j5e();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.completionTime=h8.Timestamp.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=j5e();return(0,ac.isSet)(e.completionTime)&&(t.completionTime=(0,ac.fromJsonTimestamp)(e.completionTime)),t},toJSON(e){let t={};return e.completionTime!==void 0&&(t.completionTime=(0,ac.fromTimestamp)(e.completionTime).toISOString()),t},fromPartial(e){let t=j5e();return e.completionTime!==void 0&&e.completionTime!==null&&(t.completionTime=h8.Timestamp.fromPartial(e.completionTime)),t}};function eOe(){return{delegatorAddress:"",validatorAddress:"",amount:qc.Coin.fromPartial({}),creationHeight:BigInt(0)}}Zo.MsgCancelUnbondingDelegation={typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",encode(e,t=$o.BinaryWriter.create()){return e.delegatorAddress!==""&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==""&&t.uint32(18).string(e.validatorAddress),e.amount!==void 0&&qc.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),e.creationHeight!==BigInt(0)&&t.uint32(32).int64(e.creationHeight),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=eOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.amount=qc.Coin.decode(r,r.uint32());break;case 4:n.creationHeight=r.int64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=eOe();return(0,ac.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,ac.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,ac.isSet)(e.amount)&&(t.amount=qc.Coin.fromJSON(e.amount)),(0,ac.isSet)(e.creationHeight)&&(t.creationHeight=BigInt(e.creationHeight.toString())),t},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.amount!==void 0&&(t.amount=e.amount?qc.Coin.toJSON(e.amount):void 0),e.creationHeight!==void 0&&(t.creationHeight=(e.creationHeight||BigInt(0)).toString()),t},fromPartial(e){let t=eOe();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",e.amount!==void 0&&e.amount!==null&&(t.amount=qc.Coin.fromPartial(e.amount)),e.creationHeight!==void 0&&e.creationHeight!==null&&(t.creationHeight=BigInt(e.creationHeight.toString())),t}};function tOe(){return{}}Zo.MsgCancelUnbondingDelegationResponse={typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse",encode(e,t=$o.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return tOe()},toJSON(e){return{}},fromPartial(e){return tOe()}};function rOe(){return{authority:"",params:B0.Params.fromPartial({})}}Zo.MsgUpdateParams={typeUrl:"/cosmos.staking.v1beta1.MsgUpdateParams",encode(e,t=$o.BinaryWriter.create()){return e.authority!==""&&t.uint32(10).string(e.authority),e.params!==void 0&&B0.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.authority=r.string();break;case 2:n.params=B0.Params.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=rOe();return(0,ac.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,ac.isSet)(e.params)&&(t.params=B0.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.authority!==void 0&&(t.authority=e.authority),e.params!==void 0&&(t.params=e.params?B0.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=rOe();return t.authority=e.authority??"",e.params!==void 0&&e.params!==null&&(t.params=B0.Params.fromPartial(e.params)),t}};function nOe(){return{}}Zo.MsgUpdateParamsResponse={typeUrl:"/cosmos.staking.v1beta1.MsgUpdateParamsResponse",encode(e,t=$o.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof $o.BinaryReader?e:new $o.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=nOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return nOe()},toJSON(e){return{}},fromPartial(e){return nOe()}};var iOe=class{constructor(t){this.rpc=t,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this),this.CancelUnbondingDelegation=this.CancelUnbondingDelegation.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}CreateValidator(t){let r=Zo.MsgCreateValidator.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",r).then(n=>Zo.MsgCreateValidatorResponse.decode(new $o.BinaryReader(n)))}EditValidator(t){let r=Zo.MsgEditValidator.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",r).then(n=>Zo.MsgEditValidatorResponse.decode(new $o.BinaryReader(n)))}Delegate(t){let r=Zo.MsgDelegate.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",r).then(n=>Zo.MsgDelegateResponse.decode(new $o.BinaryReader(n)))}BeginRedelegate(t){let r=Zo.MsgBeginRedelegate.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",r).then(n=>Zo.MsgBeginRedelegateResponse.decode(new $o.BinaryReader(n)))}Undelegate(t){let r=Zo.MsgUndelegate.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",r).then(n=>Zo.MsgUndelegateResponse.decode(new $o.BinaryReader(n)))}CancelUnbondingDelegation(t){let r=Zo.MsgCancelUnbondingDelegation.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CancelUnbondingDelegation",r).then(n=>Zo.MsgCancelUnbondingDelegationResponse.decode(new $o.BinaryReader(n)))}UpdateParams(t){let r=Zo.MsgUpdateParams.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","UpdateParams",r).then(n=>Zo.MsgUpdateParamsResponse.decode(new $o.BinaryReader(n)))}};Zo.MsgClientImpl=iOe});var kyt=ir(_A=>{"use strict";J();K();z();Object.defineProperty(_A,"__esModule",{value:!0});_A.isMsgCancelUnbondingDelegationEncodeObject=_A.isMsgUndelegateEncodeObject=_A.isMsgEditValidatorEncodeObject=_A.isMsgDelegateEncodeObject=_A.isMsgCreateValidatorEncodeObject=_A.isMsgBeginRedelegateEncodeObject=_A.stakingTypes=void 0;var M9=oOe();_A.stakingTypes=[["/cosmos.staking.v1beta1.MsgBeginRedelegate",M9.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgCreateValidator",M9.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgDelegate",M9.MsgDelegate],["/cosmos.staking.v1beta1.MsgEditValidator",M9.MsgEditValidator],["/cosmos.staking.v1beta1.MsgUndelegate",M9.MsgUndelegate],["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",M9.MsgCancelUnbondingDelegation]];function g1n(e){return e.typeUrl==="/cosmos.staking.v1beta1.MsgBeginRedelegate"}_A.isMsgBeginRedelegateEncodeObject=g1n;function _1n(e){return e.typeUrl==="/cosmos.staking.v1beta1.MsgCreateValidator"}_A.isMsgCreateValidatorEncodeObject=_1n;function m1n(e){return e.typeUrl==="/cosmos.staking.v1beta1.MsgDelegate"}_A.isMsgDelegateEncodeObject=m1n;function y1n(e){return e.typeUrl==="/cosmos.staking.v1beta1.MsgEditValidator"}_A.isMsgEditValidatorEncodeObject=y1n;function b1n(e){return e.typeUrl==="/cosmos.staking.v1beta1.MsgUndelegate"}_A.isMsgUndelegateEncodeObject=b1n;function E1n(e){return e.typeUrl==="/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"}_A.isMsgCancelUnbondingDelegationEncodeObject=E1n});var Pyt=ir(si=>{"use strict";J();K();z();Object.defineProperty(si,"__esModule",{value:!0});si.QueryClientImpl=si.QueryParamsResponse=si.QueryParamsRequest=si.QueryPoolResponse=si.QueryPoolRequest=si.QueryHistoricalInfoResponse=si.QueryHistoricalInfoRequest=si.QueryDelegatorValidatorResponse=si.QueryDelegatorValidatorRequest=si.QueryDelegatorValidatorsResponse=si.QueryDelegatorValidatorsRequest=si.QueryRedelegationsResponse=si.QueryRedelegationsRequest=si.QueryDelegatorUnbondingDelegationsResponse=si.QueryDelegatorUnbondingDelegationsRequest=si.QueryDelegatorDelegationsResponse=si.QueryDelegatorDelegationsRequest=si.QueryUnbondingDelegationResponse=si.QueryUnbondingDelegationRequest=si.QueryDelegationResponse=si.QueryDelegationRequest=si.QueryValidatorUnbondingDelegationsResponse=si.QueryValidatorUnbondingDelegationsRequest=si.QueryValidatorDelegationsResponse=si.QueryValidatorDelegationsRequest=si.QueryValidatorResponse=si.QueryValidatorRequest=si.QueryValidatorsResponse=si.QueryValidatorsRequest=si.protobufPackage=void 0;var Ui=jA(),Ni=q5e(),Yn=Qi(),fs=Hi();si.protobufPackage="cosmos.staking.v1beta1";function aOe(){return{status:"",pagination:void 0}}si.QueryValidatorsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.status!==""&&t.uint32(10).string(e.status),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=aOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.status=r.string();break;case 2:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=aOe();return(0,fs.isSet)(e.status)&&(t.status=String(e.status)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.status!==void 0&&(t.status=e.status),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=aOe();return t.status=e.status??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function sOe(){return{validators:[],pagination:void 0}}si.QueryValidatorsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.validators)Ni.Validator.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=sOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validators.push(Ni.Validator.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=sOe();return Array.isArray(e?.validators)&&(t.validators=e.validators.map(r=>Ni.Validator.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(r=>r?Ni.Validator.toJSON(r):void 0):t.validators=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=sOe();return t.validators=e.validators?.map(r=>Ni.Validator.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function cOe(){return{validatorAddr:""}}si.QueryValidatorRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorRequest",encode(e,t=Yn.BinaryWriter.create()){return e.validatorAddr!==""&&t.uint32(10).string(e.validatorAddr),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=cOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validatorAddr=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=cOe();return(0,fs.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return e.validatorAddr!==void 0&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=cOe();return t.validatorAddr=e.validatorAddr??"",t}};function uOe(){return{validator:Ni.Validator.fromPartial({})}}si.QueryValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorResponse",encode(e,t=Yn.BinaryWriter.create()){return e.validator!==void 0&&Ni.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validator=Ni.Validator.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=uOe();return(0,fs.isSet)(e.validator)&&(t.validator=Ni.Validator.fromJSON(e.validator)),t},toJSON(e){let t={};return e.validator!==void 0&&(t.validator=e.validator?Ni.Validator.toJSON(e.validator):void 0),t},fromPartial(e){let t=uOe();return e.validator!==void 0&&e.validator!==null&&(t.validator=Ni.Validator.fromPartial(e.validator)),t}};function dOe(){return{validatorAddr:"",pagination:void 0}}si.QueryValidatorDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.validatorAddr!==""&&t.uint32(10).string(e.validatorAddr),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validatorAddr=r.string();break;case 2:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=dOe();return(0,fs.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validatorAddr!==void 0&&(t.validatorAddr=e.validatorAddr),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=dOe();return t.validatorAddr=e.validatorAddr??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function fOe(){return{delegationResponses:[],pagination:void 0}}si.QueryValidatorDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.delegationResponses)Ni.DelegationResponse.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegationResponses.push(Ni.DelegationResponse.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=fOe();return Array.isArray(e?.delegationResponses)&&(t.delegationResponses=e.delegationResponses.map(r=>Ni.DelegationResponse.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegationResponses?t.delegationResponses=e.delegationResponses.map(r=>r?Ni.DelegationResponse.toJSON(r):void 0):t.delegationResponses=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=fOe();return t.delegationResponses=e.delegationResponses?.map(r=>Ni.DelegationResponse.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function lOe(){return{validatorAddr:"",pagination:void 0}}si.QueryValidatorUnbondingDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.validatorAddr!==""&&t.uint32(10).string(e.validatorAddr),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=lOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validatorAddr=r.string();break;case 2:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=lOe();return(0,fs.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validatorAddr!==void 0&&(t.validatorAddr=e.validatorAddr),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=lOe();return t.validatorAddr=e.validatorAddr??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function hOe(){return{unbondingResponses:[],pagination:void 0}}si.QueryValidatorUnbondingDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.unbondingResponses)Ni.UnbondingDelegation.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.unbondingResponses.push(Ni.UnbondingDelegation.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=hOe();return Array.isArray(e?.unbondingResponses)&&(t.unbondingResponses=e.unbondingResponses.map(r=>Ni.UnbondingDelegation.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.unbondingResponses?t.unbondingResponses=e.unbondingResponses.map(r=>r?Ni.UnbondingDelegation.toJSON(r):void 0):t.unbondingResponses=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=hOe();return t.unbondingResponses=e.unbondingResponses?.map(r=>Ni.UnbondingDelegation.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function AOe(){return{delegatorAddr:"",validatorAddr:""}}si.QueryDelegationRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegationRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.validatorAddr!==""&&t.uint32(18).string(e.validatorAddr),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=AOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.validatorAddr=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=AOe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.validatorAddr!==void 0&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=AOe();return t.delegatorAddr=e.delegatorAddr??"",t.validatorAddr=e.validatorAddr??"",t}};function pOe(){return{delegationResponse:void 0}}si.QueryDelegationResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegationResponse",encode(e,t=Yn.BinaryWriter.create()){return e.delegationResponse!==void 0&&Ni.DelegationResponse.encode(e.delegationResponse,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.delegationResponse=Ni.DelegationResponse.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=pOe();return(0,fs.isSet)(e.delegationResponse)&&(t.delegationResponse=Ni.DelegationResponse.fromJSON(e.delegationResponse)),t},toJSON(e){let t={};return e.delegationResponse!==void 0&&(t.delegationResponse=e.delegationResponse?Ni.DelegationResponse.toJSON(e.delegationResponse):void 0),t},fromPartial(e){let t=pOe();return e.delegationResponse!==void 0&&e.delegationResponse!==null&&(t.delegationResponse=Ni.DelegationResponse.fromPartial(e.delegationResponse)),t}};function gOe(){return{delegatorAddr:"",validatorAddr:""}}si.QueryUnbondingDelegationRequest={typeUrl:"/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.validatorAddr!==""&&t.uint32(18).string(e.validatorAddr),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=gOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.validatorAddr=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=gOe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.validatorAddr!==void 0&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=gOe();return t.delegatorAddr=e.delegatorAddr??"",t.validatorAddr=e.validatorAddr??"",t}};function _Oe(){return{unbond:Ni.UnbondingDelegation.fromPartial({})}}si.QueryUnbondingDelegationResponse={typeUrl:"/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse",encode(e,t=Yn.BinaryWriter.create()){return e.unbond!==void 0&&Ni.UnbondingDelegation.encode(e.unbond,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_Oe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.unbond=Ni.UnbondingDelegation.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=_Oe();return(0,fs.isSet)(e.unbond)&&(t.unbond=Ni.UnbondingDelegation.fromJSON(e.unbond)),t},toJSON(e){let t={};return e.unbond!==void 0&&(t.unbond=e.unbond?Ni.UnbondingDelegation.toJSON(e.unbond):void 0),t},fromPartial(e){let t=_Oe();return e.unbond!==void 0&&e.unbond!==null&&(t.unbond=Ni.UnbondingDelegation.fromPartial(e.unbond)),t}};function mOe(){return{delegatorAddr:"",pagination:void 0}}si.QueryDelegatorDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=mOe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=mOe();return t.delegatorAddr=e.delegatorAddr??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function yOe(){return{delegationResponses:[],pagination:void 0}}si.QueryDelegatorDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.delegationResponses)Ni.DelegationResponse.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=yOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegationResponses.push(Ni.DelegationResponse.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=yOe();return Array.isArray(e?.delegationResponses)&&(t.delegationResponses=e.delegationResponses.map(r=>Ni.DelegationResponse.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegationResponses?t.delegationResponses=e.delegationResponses.map(r=>r?Ni.DelegationResponse.toJSON(r):void 0):t.delegationResponses=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=yOe();return t.delegationResponses=e.delegationResponses?.map(r=>Ni.DelegationResponse.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function bOe(){return{delegatorAddr:"",pagination:void 0}}si.QueryDelegatorUnbondingDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=bOe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=bOe();return t.delegatorAddr=e.delegatorAddr??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function EOe(){return{unbondingResponses:[],pagination:void 0}}si.QueryDelegatorUnbondingDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.unbondingResponses)Ni.UnbondingDelegation.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=EOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.unbondingResponses.push(Ni.UnbondingDelegation.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=EOe();return Array.isArray(e?.unbondingResponses)&&(t.unbondingResponses=e.unbondingResponses.map(r=>Ni.UnbondingDelegation.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.unbondingResponses?t.unbondingResponses=e.unbondingResponses.map(r=>r?Ni.UnbondingDelegation.toJSON(r):void 0):t.unbondingResponses=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=EOe();return t.unbondingResponses=e.unbondingResponses?.map(r=>Ni.UnbondingDelegation.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function vOe(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}si.QueryRedelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryRedelegationsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.srcValidatorAddr!==""&&t.uint32(18).string(e.srcValidatorAddr),e.dstValidatorAddr!==""&&t.uint32(26).string(e.dstValidatorAddr),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.srcValidatorAddr=r.string();break;case 3:n.dstValidatorAddr=r.string();break;case 4:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=vOe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.srcValidatorAddr)&&(t.srcValidatorAddr=String(e.srcValidatorAddr)),(0,fs.isSet)(e.dstValidatorAddr)&&(t.dstValidatorAddr=String(e.dstValidatorAddr)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.srcValidatorAddr!==void 0&&(t.srcValidatorAddr=e.srcValidatorAddr),e.dstValidatorAddr!==void 0&&(t.dstValidatorAddr=e.dstValidatorAddr),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=vOe();return t.delegatorAddr=e.delegatorAddr??"",t.srcValidatorAddr=e.srcValidatorAddr??"",t.dstValidatorAddr=e.dstValidatorAddr??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function ROe(){return{redelegationResponses:[],pagination:void 0}}si.QueryRedelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryRedelegationsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.redelegationResponses)Ni.RedelegationResponse.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ROe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.redelegationResponses.push(Ni.RedelegationResponse.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ROe();return Array.isArray(e?.redelegationResponses)&&(t.redelegationResponses=e.redelegationResponses.map(r=>Ni.RedelegationResponse.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.redelegationResponses?t.redelegationResponses=e.redelegationResponses.map(r=>r?Ni.RedelegationResponse.toJSON(r):void 0):t.redelegationResponses=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=ROe();return t.redelegationResponses=e.redelegationResponses?.map(r=>Ni.RedelegationResponse.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function SOe(){return{delegatorAddr:"",pagination:void 0}}si.QueryDelegatorValidatorsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.pagination!==void 0&&Ui.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=SOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.pagination=Ui.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=SOe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=SOe();return t.delegatorAddr=e.delegatorAddr??"",e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageRequest.fromPartial(e.pagination)),t}};function IOe(){return{validators:[],pagination:void 0}}si.QueryDelegatorValidatorsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse",encode(e,t=Yn.BinaryWriter.create()){for(let r of e.validators)Ni.Validator.encode(r,t.uint32(10).fork()).ldelim();return e.pagination!==void 0&&Ui.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=IOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.validators.push(Ni.Validator.decode(r,r.uint32()));break;case 2:n.pagination=Ui.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=IOe();return Array.isArray(e?.validators)&&(t.validators=e.validators.map(r=>Ni.Validator.fromJSON(r))),(0,fs.isSet)(e.pagination)&&(t.pagination=Ui.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(r=>r?Ni.Validator.toJSON(r):void 0):t.validators=[],e.pagination!==void 0&&(t.pagination=e.pagination?Ui.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=IOe();return t.validators=e.validators?.map(r=>Ni.Validator.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=Ui.PageResponse.fromPartial(e.pagination)),t}};function COe(){return{delegatorAddr:"",validatorAddr:""}}si.QueryDelegatorValidatorRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest",encode(e,t=Yn.BinaryWriter.create()){return e.delegatorAddr!==""&&t.uint32(10).string(e.delegatorAddr),e.validatorAddr!==""&&t.uint32(18).string(e.validatorAddr),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=COe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.delegatorAddr=r.string();break;case 2:n.validatorAddr=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=COe();return(0,fs.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,fs.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return e.delegatorAddr!==void 0&&(t.delegatorAddr=e.delegatorAddr),e.validatorAddr!==void 0&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=COe();return t.delegatorAddr=e.delegatorAddr??"",t.validatorAddr=e.validatorAddr??"",t}};function wOe(){return{validator:Ni.Validator.fromPartial({})}}si.QueryDelegatorValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse",encode(e,t=Yn.BinaryWriter.create()){return e.validator!==void 0&&Ni.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=wOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.validator=Ni.Validator.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=wOe();return(0,fs.isSet)(e.validator)&&(t.validator=Ni.Validator.fromJSON(e.validator)),t},toJSON(e){let t={};return e.validator!==void 0&&(t.validator=e.validator?Ni.Validator.toJSON(e.validator):void 0),t},fromPartial(e){let t=wOe();return e.validator!==void 0&&e.validator!==null&&(t.validator=Ni.Validator.fromPartial(e.validator)),t}};function OOe(){return{height:BigInt(0)}}si.QueryHistoricalInfoRequest={typeUrl:"/cosmos.staking.v1beta1.QueryHistoricalInfoRequest",encode(e,t=Yn.BinaryWriter.create()){return e.height!==BigInt(0)&&t.uint32(8).int64(e.height),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=OOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.height=r.int64():r.skipType(o&7)}return n},fromJSON(e){let t=OOe();return(0,fs.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),t},fromPartial(e){let t=OOe();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t}};function NOe(){return{hist:void 0}}si.QueryHistoricalInfoResponse={typeUrl:"/cosmos.staking.v1beta1.QueryHistoricalInfoResponse",encode(e,t=Yn.BinaryWriter.create()){return e.hist!==void 0&&Ni.HistoricalInfo.encode(e.hist,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=NOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.hist=Ni.HistoricalInfo.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=NOe();return(0,fs.isSet)(e.hist)&&(t.hist=Ni.HistoricalInfo.fromJSON(e.hist)),t},toJSON(e){let t={};return e.hist!==void 0&&(t.hist=e.hist?Ni.HistoricalInfo.toJSON(e.hist):void 0),t},fromPartial(e){let t=NOe();return e.hist!==void 0&&e.hist!==null&&(t.hist=Ni.HistoricalInfo.fromPartial(e.hist)),t}};function xOe(){return{}}si.QueryPoolRequest={typeUrl:"/cosmos.staking.v1beta1.QueryPoolRequest",encode(e,t=Yn.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=xOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return xOe()},toJSON(e){return{}},fromPartial(e){return xOe()}};function TOe(){return{pool:Ni.Pool.fromPartial({})}}si.QueryPoolResponse={typeUrl:"/cosmos.staking.v1beta1.QueryPoolResponse",encode(e,t=Yn.BinaryWriter.create()){return e.pool!==void 0&&Ni.Pool.encode(e.pool,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=TOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.pool=Ni.Pool.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=TOe();return(0,fs.isSet)(e.pool)&&(t.pool=Ni.Pool.fromJSON(e.pool)),t},toJSON(e){let t={};return e.pool!==void 0&&(t.pool=e.pool?Ni.Pool.toJSON(e.pool):void 0),t},fromPartial(e){let t=TOe();return e.pool!==void 0&&e.pool!==null&&(t.pool=Ni.Pool.fromPartial(e.pool)),t}};function BOe(){return{}}si.QueryParamsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryParamsRequest",encode(e,t=Yn.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=BOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return BOe()},toJSON(e){return{}},fromPartial(e){return BOe()}};function MOe(){return{params:Ni.Params.fromPartial({})}}si.QueryParamsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryParamsResponse",encode(e,t=Yn.BinaryWriter.create()){return e.params!==void 0&&Ni.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof Yn.BinaryReader?e:new Yn.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=MOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.params=Ni.Params.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=MOe();return(0,fs.isSet)(e.params)&&(t.params=Ni.Params.fromJSON(e.params)),t},toJSON(e){let t={};return e.params!==void 0&&(t.params=e.params?Ni.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=MOe();return e.params!==void 0&&e.params!==null&&(t.params=Ni.Params.fromPartial(e.params)),t}};var DOe=class{constructor(t){this.rpc=t,this.Validators=this.Validators.bind(this),this.Validator=this.Validator.bind(this),this.ValidatorDelegations=this.ValidatorDelegations.bind(this),this.ValidatorUnbondingDelegations=this.ValidatorUnbondingDelegations.bind(this),this.Delegation=this.Delegation.bind(this),this.UnbondingDelegation=this.UnbondingDelegation.bind(this),this.DelegatorDelegations=this.DelegatorDelegations.bind(this),this.DelegatorUnbondingDelegations=this.DelegatorUnbondingDelegations.bind(this),this.Redelegations=this.Redelegations.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorValidator=this.DelegatorValidator.bind(this),this.HistoricalInfo=this.HistoricalInfo.bind(this),this.Pool=this.Pool.bind(this),this.Params=this.Params.bind(this)}Validators(t){let r=si.QueryValidatorsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validators",r).then(n=>si.QueryValidatorsResponse.decode(new Yn.BinaryReader(n)))}Validator(t){let r=si.QueryValidatorRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validator",r).then(n=>si.QueryValidatorResponse.decode(new Yn.BinaryReader(n)))}ValidatorDelegations(t){let r=si.QueryValidatorDelegationsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",r).then(n=>si.QueryValidatorDelegationsResponse.decode(new Yn.BinaryReader(n)))}ValidatorUnbondingDelegations(t){let r=si.QueryValidatorUnbondingDelegationsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",r).then(n=>si.QueryValidatorUnbondingDelegationsResponse.decode(new Yn.BinaryReader(n)))}Delegation(t){let r=si.QueryDelegationRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",r).then(n=>si.QueryDelegationResponse.decode(new Yn.BinaryReader(n)))}UnbondingDelegation(t){let r=si.QueryUnbondingDelegationRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",r).then(n=>si.QueryUnbondingDelegationResponse.decode(new Yn.BinaryReader(n)))}DelegatorDelegations(t){let r=si.QueryDelegatorDelegationsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",r).then(n=>si.QueryDelegatorDelegationsResponse.decode(new Yn.BinaryReader(n)))}DelegatorUnbondingDelegations(t){let r=si.QueryDelegatorUnbondingDelegationsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",r).then(n=>si.QueryDelegatorUnbondingDelegationsResponse.decode(new Yn.BinaryReader(n)))}Redelegations(t){let r=si.QueryRedelegationsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",r).then(n=>si.QueryRedelegationsResponse.decode(new Yn.BinaryReader(n)))}DelegatorValidators(t){let r=si.QueryDelegatorValidatorsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",r).then(n=>si.QueryDelegatorValidatorsResponse.decode(new Yn.BinaryReader(n)))}DelegatorValidator(t){let r=si.QueryDelegatorValidatorRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",r).then(n=>si.QueryDelegatorValidatorResponse.decode(new Yn.BinaryReader(n)))}HistoricalInfo(t){let r=si.QueryHistoricalInfoRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",r).then(n=>si.QueryHistoricalInfoResponse.decode(new Yn.BinaryReader(n)))}Pool(t={}){let r=si.QueryPoolRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Pool",r).then(n=>si.QueryPoolResponse.decode(new Yn.BinaryReader(n)))}Params(t={}){let r=si.QueryParamsRequest.encode(t).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Params",r).then(n=>si.QueryParamsResponse.decode(new Yn.BinaryReader(n)))}};si.QueryClientImpl=DOe});var Lyt=ir(dte=>{"use strict";J();K();z();Object.defineProperty(dte,"__esModule",{value:!0});dte.setupStakingExtension=void 0;var v1n=Pyt(),A8=ep();function R1n(e){let t=(0,A8.createProtobufRpcClient)(e),r=new v1n.QueryClientImpl(t);return{staking:{delegation:async(i,n)=>await r.Delegation({delegatorAddr:i,validatorAddr:n}),delegatorDelegations:async(i,n)=>await r.DelegatorDelegations({delegatorAddr:i,pagination:(0,A8.createPagination)(n)}),delegatorUnbondingDelegations:async(i,n)=>await r.DelegatorUnbondingDelegations({delegatorAddr:i,pagination:(0,A8.createPagination)(n)}),delegatorValidator:async(i,n)=>await r.DelegatorValidator({delegatorAddr:i,validatorAddr:n}),delegatorValidators:async(i,n)=>await r.DelegatorValidators({delegatorAddr:i,pagination:(0,A8.createPagination)(n)}),historicalInfo:async i=>await r.HistoricalInfo({height:BigInt(i)}),params:async()=>await r.Params({}),pool:async()=>await r.Pool({}),redelegations:async(i,n,o,d)=>await r.Redelegations({delegatorAddr:i,srcValidatorAddr:n,dstValidatorAddr:o,pagination:(0,A8.createPagination)(d)}),unbondingDelegation:async(i,n)=>await r.UnbondingDelegation({delegatorAddr:i,validatorAddr:n}),validator:async i=>await r.Validator({validatorAddr:i}),validatorDelegations:async(i,n)=>await r.ValidatorDelegations({validatorAddr:i,pagination:(0,A8.createPagination)(n)}),validators:async(i,n)=>await r.Validators({status:i,pagination:(0,A8.createPagination)(n)}),validatorUnbondingDelegations:async(i,n)=>await r.ValidatorUnbondingDelegations({validatorAddr:i,pagination:(0,A8.createPagination)(n)})}}}dte.setupStakingExtension=R1n});var JOe=ir(uo=>{"use strict";J();K();z();Object.defineProperty(uo,"__esModule",{value:!0});uo.SearchTxsResult=uo.TxMsgData=uo.MsgData=uo.SimulationResponse=uo.Result=uo.GasInfo=uo.Attribute=uo.StringEvent=uo.ABCIMessageLog=uo.TxResponse=uo.protobufPackage=void 0;var lp=ru(),KE=E5e(),Vc=Qi(),sc=Hi();uo.protobufPackage="cosmos.base.abci.v1beta1";function kOe(){return{height:BigInt(0),txhash:"",codespace:"",code:0,data:"",rawLog:"",logs:[],info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),tx:void 0,timestamp:"",events:[]}}uo.TxResponse={typeUrl:"/cosmos.base.abci.v1beta1.TxResponse",encode(e,t=Vc.BinaryWriter.create()){e.height!==BigInt(0)&&t.uint32(8).int64(e.height),e.txhash!==""&&t.uint32(18).string(e.txhash),e.codespace!==""&&t.uint32(26).string(e.codespace),e.code!==0&&t.uint32(32).uint32(e.code),e.data!==""&&t.uint32(42).string(e.data),e.rawLog!==""&&t.uint32(50).string(e.rawLog);for(let r of e.logs)uo.ABCIMessageLog.encode(r,t.uint32(58).fork()).ldelim();e.info!==""&&t.uint32(66).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(72).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(80).int64(e.gasUsed),e.tx!==void 0&&lp.Any.encode(e.tx,t.uint32(90).fork()).ldelim(),e.timestamp!==""&&t.uint32(98).string(e.timestamp);for(let r of e.events)KE.Event.encode(r,t.uint32(106).fork()).ldelim();return t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=kOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=r.int64();break;case 2:n.txhash=r.string();break;case 3:n.codespace=r.string();break;case 4:n.code=r.uint32();break;case 5:n.data=r.string();break;case 6:n.rawLog=r.string();break;case 7:n.logs.push(uo.ABCIMessageLog.decode(r,r.uint32()));break;case 8:n.info=r.string();break;case 9:n.gasWanted=r.int64();break;case 10:n.gasUsed=r.int64();break;case 11:n.tx=lp.Any.decode(r,r.uint32());break;case 12:n.timestamp=r.string();break;case 13:n.events.push(KE.Event.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=kOe();return(0,sc.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,sc.isSet)(e.txhash)&&(t.txhash=String(e.txhash)),(0,sc.isSet)(e.codespace)&&(t.codespace=String(e.codespace)),(0,sc.isSet)(e.code)&&(t.code=Number(e.code)),(0,sc.isSet)(e.data)&&(t.data=String(e.data)),(0,sc.isSet)(e.rawLog)&&(t.rawLog=String(e.rawLog)),Array.isArray(e?.logs)&&(t.logs=e.logs.map(r=>uo.ABCIMessageLog.fromJSON(r))),(0,sc.isSet)(e.info)&&(t.info=String(e.info)),(0,sc.isSet)(e.gasWanted)&&(t.gasWanted=BigInt(e.gasWanted.toString())),(0,sc.isSet)(e.gasUsed)&&(t.gasUsed=BigInt(e.gasUsed.toString())),(0,sc.isSet)(e.tx)&&(t.tx=lp.Any.fromJSON(e.tx)),(0,sc.isSet)(e.timestamp)&&(t.timestamp=String(e.timestamp)),Array.isArray(e?.events)&&(t.events=e.events.map(r=>KE.Event.fromJSON(r))),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.txhash!==void 0&&(t.txhash=e.txhash),e.codespace!==void 0&&(t.codespace=e.codespace),e.code!==void 0&&(t.code=Math.round(e.code)),e.data!==void 0&&(t.data=e.data),e.rawLog!==void 0&&(t.rawLog=e.rawLog),e.logs?t.logs=e.logs.map(r=>r?uo.ABCIMessageLog.toJSON(r):void 0):t.logs=[],e.info!==void 0&&(t.info=e.info),e.gasWanted!==void 0&&(t.gasWanted=(e.gasWanted||BigInt(0)).toString()),e.gasUsed!==void 0&&(t.gasUsed=(e.gasUsed||BigInt(0)).toString()),e.tx!==void 0&&(t.tx=e.tx?lp.Any.toJSON(e.tx):void 0),e.timestamp!==void 0&&(t.timestamp=e.timestamp),e.events?t.events=e.events.map(r=>r?KE.Event.toJSON(r):void 0):t.events=[],t},fromPartial(e){let t=kOe();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),t.txhash=e.txhash??"",t.codespace=e.codespace??"",t.code=e.code??0,t.data=e.data??"",t.rawLog=e.rawLog??"",t.logs=e.logs?.map(r=>uo.ABCIMessageLog.fromPartial(r))||[],t.info=e.info??"",e.gasWanted!==void 0&&e.gasWanted!==null&&(t.gasWanted=BigInt(e.gasWanted.toString())),e.gasUsed!==void 0&&e.gasUsed!==null&&(t.gasUsed=BigInt(e.gasUsed.toString())),e.tx!==void 0&&e.tx!==null&&(t.tx=lp.Any.fromPartial(e.tx)),t.timestamp=e.timestamp??"",t.events=e.events?.map(r=>KE.Event.fromPartial(r))||[],t}};function POe(){return{msgIndex:0,log:"",events:[]}}uo.ABCIMessageLog={typeUrl:"/cosmos.base.abci.v1beta1.ABCIMessageLog",encode(e,t=Vc.BinaryWriter.create()){e.msgIndex!==0&&t.uint32(8).uint32(e.msgIndex),e.log!==""&&t.uint32(18).string(e.log);for(let r of e.events)uo.StringEvent.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=POe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.msgIndex=r.uint32();break;case 2:n.log=r.string();break;case 3:n.events.push(uo.StringEvent.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=POe();return(0,sc.isSet)(e.msgIndex)&&(t.msgIndex=Number(e.msgIndex)),(0,sc.isSet)(e.log)&&(t.log=String(e.log)),Array.isArray(e?.events)&&(t.events=e.events.map(r=>uo.StringEvent.fromJSON(r))),t},toJSON(e){let t={};return e.msgIndex!==void 0&&(t.msgIndex=Math.round(e.msgIndex)),e.log!==void 0&&(t.log=e.log),e.events?t.events=e.events.map(r=>r?uo.StringEvent.toJSON(r):void 0):t.events=[],t},fromPartial(e){let t=POe();return t.msgIndex=e.msgIndex??0,t.log=e.log??"",t.events=e.events?.map(r=>uo.StringEvent.fromPartial(r))||[],t}};function LOe(){return{type:"",attributes:[]}}uo.StringEvent={typeUrl:"/cosmos.base.abci.v1beta1.StringEvent",encode(e,t=Vc.BinaryWriter.create()){e.type!==""&&t.uint32(10).string(e.type);for(let r of e.attributes)uo.Attribute.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=LOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.type=r.string();break;case 2:n.attributes.push(uo.Attribute.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=LOe();return(0,sc.isSet)(e.type)&&(t.type=String(e.type)),Array.isArray(e?.attributes)&&(t.attributes=e.attributes.map(r=>uo.Attribute.fromJSON(r))),t},toJSON(e){let t={};return e.type!==void 0&&(t.type=e.type),e.attributes?t.attributes=e.attributes.map(r=>r?uo.Attribute.toJSON(r):void 0):t.attributes=[],t},fromPartial(e){let t=LOe();return t.type=e.type??"",t.attributes=e.attributes?.map(r=>uo.Attribute.fromPartial(r))||[],t}};function UOe(){return{key:"",value:""}}uo.Attribute={typeUrl:"/cosmos.base.abci.v1beta1.Attribute",encode(e,t=Vc.BinaryWriter.create()){return e.key!==""&&t.uint32(10).string(e.key),e.value!==""&&t.uint32(18).string(e.value),t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=UOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.key=r.string();break;case 2:n.value=r.string();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=UOe();return(0,sc.isSet)(e.key)&&(t.key=String(e.key)),(0,sc.isSet)(e.value)&&(t.value=String(e.value)),t},toJSON(e){let t={};return e.key!==void 0&&(t.key=e.key),e.value!==void 0&&(t.value=e.value),t},fromPartial(e){let t=UOe();return t.key=e.key??"",t.value=e.value??"",t}};function FOe(){return{gasWanted:BigInt(0),gasUsed:BigInt(0)}}uo.GasInfo={typeUrl:"/cosmos.base.abci.v1beta1.GasInfo",encode(e,t=Vc.BinaryWriter.create()){return e.gasWanted!==BigInt(0)&&t.uint32(8).uint64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(16).uint64(e.gasUsed),t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=FOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.gasWanted=r.uint64();break;case 2:n.gasUsed=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=FOe();return(0,sc.isSet)(e.gasWanted)&&(t.gasWanted=BigInt(e.gasWanted.toString())),(0,sc.isSet)(e.gasUsed)&&(t.gasUsed=BigInt(e.gasUsed.toString())),t},toJSON(e){let t={};return e.gasWanted!==void 0&&(t.gasWanted=(e.gasWanted||BigInt(0)).toString()),e.gasUsed!==void 0&&(t.gasUsed=(e.gasUsed||BigInt(0)).toString()),t},fromPartial(e){let t=FOe();return e.gasWanted!==void 0&&e.gasWanted!==null&&(t.gasWanted=BigInt(e.gasWanted.toString())),e.gasUsed!==void 0&&e.gasUsed!==null&&(t.gasUsed=BigInt(e.gasUsed.toString())),t}};function QOe(){return{data:new Uint8Array,log:"",events:[],msgResponses:[]}}uo.Result={typeUrl:"/cosmos.base.abci.v1beta1.Result",encode(e,t=Vc.BinaryWriter.create()){e.data.length!==0&&t.uint32(10).bytes(e.data),e.log!==""&&t.uint32(18).string(e.log);for(let r of e.events)KE.Event.encode(r,t.uint32(26).fork()).ldelim();for(let r of e.msgResponses)lp.Any.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=QOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.data=r.bytes();break;case 2:n.log=r.string();break;case 3:n.events.push(KE.Event.decode(r,r.uint32()));break;case 4:n.msgResponses.push(lp.Any.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=QOe();return(0,sc.isSet)(e.data)&&(t.data=(0,sc.bytesFromBase64)(e.data)),(0,sc.isSet)(e.log)&&(t.log=String(e.log)),Array.isArray(e?.events)&&(t.events=e.events.map(r=>KE.Event.fromJSON(r))),Array.isArray(e?.msgResponses)&&(t.msgResponses=e.msgResponses.map(r=>lp.Any.fromJSON(r))),t},toJSON(e){let t={};return e.data!==void 0&&(t.data=(0,sc.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),e.log!==void 0&&(t.log=e.log),e.events?t.events=e.events.map(r=>r?KE.Event.toJSON(r):void 0):t.events=[],e.msgResponses?t.msgResponses=e.msgResponses.map(r=>r?lp.Any.toJSON(r):void 0):t.msgResponses=[],t},fromPartial(e){let t=QOe();return t.data=e.data??new Uint8Array,t.log=e.log??"",t.events=e.events?.map(r=>KE.Event.fromPartial(r))||[],t.msgResponses=e.msgResponses?.map(r=>lp.Any.fromPartial(r))||[],t}};function HOe(){return{gasInfo:uo.GasInfo.fromPartial({}),result:void 0}}uo.SimulationResponse={typeUrl:"/cosmos.base.abci.v1beta1.SimulationResponse",encode(e,t=Vc.BinaryWriter.create()){return e.gasInfo!==void 0&&uo.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),e.result!==void 0&&uo.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=HOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.gasInfo=uo.GasInfo.decode(r,r.uint32());break;case 2:n.result=uo.Result.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=HOe();return(0,sc.isSet)(e.gasInfo)&&(t.gasInfo=uo.GasInfo.fromJSON(e.gasInfo)),(0,sc.isSet)(e.result)&&(t.result=uo.Result.fromJSON(e.result)),t},toJSON(e){let t={};return e.gasInfo!==void 0&&(t.gasInfo=e.gasInfo?uo.GasInfo.toJSON(e.gasInfo):void 0),e.result!==void 0&&(t.result=e.result?uo.Result.toJSON(e.result):void 0),t},fromPartial(e){let t=HOe();return e.gasInfo!==void 0&&e.gasInfo!==null&&(t.gasInfo=uo.GasInfo.fromPartial(e.gasInfo)),e.result!==void 0&&e.result!==null&&(t.result=uo.Result.fromPartial(e.result)),t}};function GOe(){return{msgType:"",data:new Uint8Array}}uo.MsgData={typeUrl:"/cosmos.base.abci.v1beta1.MsgData",encode(e,t=Vc.BinaryWriter.create()){return e.msgType!==""&&t.uint32(10).string(e.msgType),e.data.length!==0&&t.uint32(18).bytes(e.data),t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=GOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.msgType=r.string();break;case 2:n.data=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=GOe();return(0,sc.isSet)(e.msgType)&&(t.msgType=String(e.msgType)),(0,sc.isSet)(e.data)&&(t.data=(0,sc.bytesFromBase64)(e.data)),t},toJSON(e){let t={};return e.msgType!==void 0&&(t.msgType=e.msgType),e.data!==void 0&&(t.data=(0,sc.base64FromBytes)(e.data!==void 0?e.data:new Uint8Array)),t},fromPartial(e){let t=GOe();return t.msgType=e.msgType??"",t.data=e.data??new Uint8Array,t}};function qOe(){return{data:[],msgResponses:[]}}uo.TxMsgData={typeUrl:"/cosmos.base.abci.v1beta1.TxMsgData",encode(e,t=Vc.BinaryWriter.create()){for(let r of e.data)uo.MsgData.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.msgResponses)lp.Any.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=qOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.data.push(uo.MsgData.decode(r,r.uint32()));break;case 2:n.msgResponses.push(lp.Any.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=qOe();return Array.isArray(e?.data)&&(t.data=e.data.map(r=>uo.MsgData.fromJSON(r))),Array.isArray(e?.msgResponses)&&(t.msgResponses=e.msgResponses.map(r=>lp.Any.fromJSON(r))),t},toJSON(e){let t={};return e.data?t.data=e.data.map(r=>r?uo.MsgData.toJSON(r):void 0):t.data=[],e.msgResponses?t.msgResponses=e.msgResponses.map(r=>r?lp.Any.toJSON(r):void 0):t.msgResponses=[],t},fromPartial(e){let t=qOe();return t.data=e.data?.map(r=>uo.MsgData.fromPartial(r))||[],t.msgResponses=e.msgResponses?.map(r=>lp.Any.fromPartial(r))||[],t}};function VOe(){return{totalCount:BigInt(0),count:BigInt(0),pageNumber:BigInt(0),pageTotal:BigInt(0),limit:BigInt(0),txs:[]}}uo.SearchTxsResult={typeUrl:"/cosmos.base.abci.v1beta1.SearchTxsResult",encode(e,t=Vc.BinaryWriter.create()){e.totalCount!==BigInt(0)&&t.uint32(8).uint64(e.totalCount),e.count!==BigInt(0)&&t.uint32(16).uint64(e.count),e.pageNumber!==BigInt(0)&&t.uint32(24).uint64(e.pageNumber),e.pageTotal!==BigInt(0)&&t.uint32(32).uint64(e.pageTotal),e.limit!==BigInt(0)&&t.uint32(40).uint64(e.limit);for(let r of e.txs)uo.TxResponse.encode(r,t.uint32(50).fork()).ldelim();return t},decode(e,t){let r=e instanceof Vc.BinaryReader?e:new Vc.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=VOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.totalCount=r.uint64();break;case 2:n.count=r.uint64();break;case 3:n.pageNumber=r.uint64();break;case 4:n.pageTotal=r.uint64();break;case 5:n.limit=r.uint64();break;case 6:n.txs.push(uo.TxResponse.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=VOe();return(0,sc.isSet)(e.totalCount)&&(t.totalCount=BigInt(e.totalCount.toString())),(0,sc.isSet)(e.count)&&(t.count=BigInt(e.count.toString())),(0,sc.isSet)(e.pageNumber)&&(t.pageNumber=BigInt(e.pageNumber.toString())),(0,sc.isSet)(e.pageTotal)&&(t.pageTotal=BigInt(e.pageTotal.toString())),(0,sc.isSet)(e.limit)&&(t.limit=BigInt(e.limit.toString())),Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>uo.TxResponse.fromJSON(r))),t},toJSON(e){let t={};return e.totalCount!==void 0&&(t.totalCount=(e.totalCount||BigInt(0)).toString()),e.count!==void 0&&(t.count=(e.count||BigInt(0)).toString()),e.pageNumber!==void 0&&(t.pageNumber=(e.pageNumber||BigInt(0)).toString()),e.pageTotal!==void 0&&(t.pageTotal=(e.pageTotal||BigInt(0)).toString()),e.limit!==void 0&&(t.limit=(e.limit||BigInt(0)).toString()),e.txs?t.txs=e.txs.map(r=>r?uo.TxResponse.toJSON(r):void 0):t.txs=[],t},fromPartial(e){let t=VOe();return e.totalCount!==void 0&&e.totalCount!==null&&(t.totalCount=BigInt(e.totalCount.toString())),e.count!==void 0&&e.count!==null&&(t.count=BigInt(e.count.toString())),e.pageNumber!==void 0&&e.pageNumber!==null&&(t.pageNumber=BigInt(e.pageNumber.toString())),e.pageTotal!==void 0&&e.pageTotal!==null&&(t.pageTotal=BigInt(e.pageTotal.toString())),e.limit!==void 0&&e.limit!==null&&(t.limit=BigInt(e.limit.toString())),t.txs=e.txs?.map(r=>uo.TxResponse.fromPartial(r))||[],t}}});var Uyt=ir(Qu=>{"use strict";J();K();z();Object.defineProperty(Qu,"__esModule",{value:!0});Qu.EvidenceList=Qu.LightClientAttackEvidence=Qu.DuplicateVoteEvidence=Qu.Evidence=Qu.protobufPackage=void 0;var hp=C5(),p8=u1(),gQ=nte(),F2=Qi(),Ap=Hi();Qu.protobufPackage="tendermint.types";function zOe(){return{duplicateVoteEvidence:void 0,lightClientAttackEvidence:void 0}}Qu.Evidence={typeUrl:"/tendermint.types.Evidence",encode(e,t=F2.BinaryWriter.create()){return e.duplicateVoteEvidence!==void 0&&Qu.DuplicateVoteEvidence.encode(e.duplicateVoteEvidence,t.uint32(10).fork()).ldelim(),e.lightClientAttackEvidence!==void 0&&Qu.LightClientAttackEvidence.encode(e.lightClientAttackEvidence,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof F2.BinaryReader?e:new F2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=zOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.duplicateVoteEvidence=Qu.DuplicateVoteEvidence.decode(r,r.uint32());break;case 2:n.lightClientAttackEvidence=Qu.LightClientAttackEvidence.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=zOe();return(0,Ap.isSet)(e.duplicateVoteEvidence)&&(t.duplicateVoteEvidence=Qu.DuplicateVoteEvidence.fromJSON(e.duplicateVoteEvidence)),(0,Ap.isSet)(e.lightClientAttackEvidence)&&(t.lightClientAttackEvidence=Qu.LightClientAttackEvidence.fromJSON(e.lightClientAttackEvidence)),t},toJSON(e){let t={};return e.duplicateVoteEvidence!==void 0&&(t.duplicateVoteEvidence=e.duplicateVoteEvidence?Qu.DuplicateVoteEvidence.toJSON(e.duplicateVoteEvidence):void 0),e.lightClientAttackEvidence!==void 0&&(t.lightClientAttackEvidence=e.lightClientAttackEvidence?Qu.LightClientAttackEvidence.toJSON(e.lightClientAttackEvidence):void 0),t},fromPartial(e){let t=zOe();return e.duplicateVoteEvidence!==void 0&&e.duplicateVoteEvidence!==null&&(t.duplicateVoteEvidence=Qu.DuplicateVoteEvidence.fromPartial(e.duplicateVoteEvidence)),e.lightClientAttackEvidence!==void 0&&e.lightClientAttackEvidence!==null&&(t.lightClientAttackEvidence=Qu.LightClientAttackEvidence.fromPartial(e.lightClientAttackEvidence)),t}};function KOe(){return{voteA:void 0,voteB:void 0,totalVotingPower:BigInt(0),validatorPower:BigInt(0),timestamp:p8.Timestamp.fromPartial({})}}Qu.DuplicateVoteEvidence={typeUrl:"/tendermint.types.DuplicateVoteEvidence",encode(e,t=F2.BinaryWriter.create()){return e.voteA!==void 0&&hp.Vote.encode(e.voteA,t.uint32(10).fork()).ldelim(),e.voteB!==void 0&&hp.Vote.encode(e.voteB,t.uint32(18).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&t.uint32(24).int64(e.totalVotingPower),e.validatorPower!==BigInt(0)&&t.uint32(32).int64(e.validatorPower),e.timestamp!==void 0&&p8.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof F2.BinaryReader?e:new F2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=KOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.voteA=hp.Vote.decode(r,r.uint32());break;case 2:n.voteB=hp.Vote.decode(r,r.uint32());break;case 3:n.totalVotingPower=r.int64();break;case 4:n.validatorPower=r.int64();break;case 5:n.timestamp=p8.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=KOe();return(0,Ap.isSet)(e.voteA)&&(t.voteA=hp.Vote.fromJSON(e.voteA)),(0,Ap.isSet)(e.voteB)&&(t.voteB=hp.Vote.fromJSON(e.voteB)),(0,Ap.isSet)(e.totalVotingPower)&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),(0,Ap.isSet)(e.validatorPower)&&(t.validatorPower=BigInt(e.validatorPower.toString())),(0,Ap.isSet)(e.timestamp)&&(t.timestamp=(0,Ap.fromJsonTimestamp)(e.timestamp)),t},toJSON(e){let t={};return e.voteA!==void 0&&(t.voteA=e.voteA?hp.Vote.toJSON(e.voteA):void 0),e.voteB!==void 0&&(t.voteB=e.voteB?hp.Vote.toJSON(e.voteB):void 0),e.totalVotingPower!==void 0&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),e.validatorPower!==void 0&&(t.validatorPower=(e.validatorPower||BigInt(0)).toString()),e.timestamp!==void 0&&(t.timestamp=(0,Ap.fromTimestamp)(e.timestamp).toISOString()),t},fromPartial(e){let t=KOe();return e.voteA!==void 0&&e.voteA!==null&&(t.voteA=hp.Vote.fromPartial(e.voteA)),e.voteB!==void 0&&e.voteB!==null&&(t.voteB=hp.Vote.fromPartial(e.voteB)),e.totalVotingPower!==void 0&&e.totalVotingPower!==null&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),e.validatorPower!==void 0&&e.validatorPower!==null&&(t.validatorPower=BigInt(e.validatorPower.toString())),e.timestamp!==void 0&&e.timestamp!==null&&(t.timestamp=p8.Timestamp.fromPartial(e.timestamp)),t}};function $Oe(){return{conflictingBlock:void 0,commonHeight:BigInt(0),byzantineValidators:[],totalVotingPower:BigInt(0),timestamp:p8.Timestamp.fromPartial({})}}Qu.LightClientAttackEvidence={typeUrl:"/tendermint.types.LightClientAttackEvidence",encode(e,t=F2.BinaryWriter.create()){e.conflictingBlock!==void 0&&hp.LightBlock.encode(e.conflictingBlock,t.uint32(10).fork()).ldelim(),e.commonHeight!==BigInt(0)&&t.uint32(16).int64(e.commonHeight);for(let r of e.byzantineValidators)gQ.Validator.encode(r,t.uint32(26).fork()).ldelim();return e.totalVotingPower!==BigInt(0)&&t.uint32(32).int64(e.totalVotingPower),e.timestamp!==void 0&&p8.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof F2.BinaryReader?e:new F2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=$Oe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.conflictingBlock=hp.LightBlock.decode(r,r.uint32());break;case 2:n.commonHeight=r.int64();break;case 3:n.byzantineValidators.push(gQ.Validator.decode(r,r.uint32()));break;case 4:n.totalVotingPower=r.int64();break;case 5:n.timestamp=p8.Timestamp.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=$Oe();return(0,Ap.isSet)(e.conflictingBlock)&&(t.conflictingBlock=hp.LightBlock.fromJSON(e.conflictingBlock)),(0,Ap.isSet)(e.commonHeight)&&(t.commonHeight=BigInt(e.commonHeight.toString())),Array.isArray(e?.byzantineValidators)&&(t.byzantineValidators=e.byzantineValidators.map(r=>gQ.Validator.fromJSON(r))),(0,Ap.isSet)(e.totalVotingPower)&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),(0,Ap.isSet)(e.timestamp)&&(t.timestamp=(0,Ap.fromJsonTimestamp)(e.timestamp)),t},toJSON(e){let t={};return e.conflictingBlock!==void 0&&(t.conflictingBlock=e.conflictingBlock?hp.LightBlock.toJSON(e.conflictingBlock):void 0),e.commonHeight!==void 0&&(t.commonHeight=(e.commonHeight||BigInt(0)).toString()),e.byzantineValidators?t.byzantineValidators=e.byzantineValidators.map(r=>r?gQ.Validator.toJSON(r):void 0):t.byzantineValidators=[],e.totalVotingPower!==void 0&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),e.timestamp!==void 0&&(t.timestamp=(0,Ap.fromTimestamp)(e.timestamp).toISOString()),t},fromPartial(e){let t=$Oe();return e.conflictingBlock!==void 0&&e.conflictingBlock!==null&&(t.conflictingBlock=hp.LightBlock.fromPartial(e.conflictingBlock)),e.commonHeight!==void 0&&e.commonHeight!==null&&(t.commonHeight=BigInt(e.commonHeight.toString())),t.byzantineValidators=e.byzantineValidators?.map(r=>gQ.Validator.fromPartial(r))||[],e.totalVotingPower!==void 0&&e.totalVotingPower!==null&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),e.timestamp!==void 0&&e.timestamp!==null&&(t.timestamp=p8.Timestamp.fromPartial(e.timestamp)),t}};function YOe(){return{evidence:[]}}Qu.EvidenceList={typeUrl:"/tendermint.types.EvidenceList",encode(e,t=F2.BinaryWriter.create()){for(let r of e.evidence)Qu.Evidence.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof F2.BinaryReader?e:new F2.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=YOe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.evidence.push(Qu.Evidence.decode(r,r.uint32())):r.skipType(o&7)}return n},fromJSON(e){let t=YOe();return Array.isArray(e?.evidence)&&(t.evidence=e.evidence.map(r=>Qu.Evidence.fromJSON(r))),t},toJSON(e){let t={};return e.evidence?t.evidence=e.evidence.map(r=>r?Qu.Evidence.toJSON(r):void 0):t.evidence=[],t},fromPartial(e){let t=YOe();return t.evidence=e.evidence?.map(r=>Qu.Evidence.fromPartial(r))||[],t}}});var Fyt=ir(k9=>{"use strict";J();K();z();Object.defineProperty(k9,"__esModule",{value:!0});k9.Block=k9.protobufPackage=void 0;var hh=C5(),D9=Uyt(),WOe=Qi(),fte=Hi();k9.protobufPackage="tendermint.types";function XOe(){return{header:hh.Header.fromPartial({}),data:hh.Data.fromPartial({}),evidence:D9.EvidenceList.fromPartial({}),lastCommit:void 0}}k9.Block={typeUrl:"/tendermint.types.Block",encode(e,t=WOe.BinaryWriter.create()){return e.header!==void 0&&hh.Header.encode(e.header,t.uint32(10).fork()).ldelim(),e.data!==void 0&&hh.Data.encode(e.data,t.uint32(18).fork()).ldelim(),e.evidence!==void 0&&D9.EvidenceList.encode(e.evidence,t.uint32(26).fork()).ldelim(),e.lastCommit!==void 0&&hh.Commit.encode(e.lastCommit,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof WOe.BinaryReader?e:new WOe.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=XOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.header=hh.Header.decode(r,r.uint32());break;case 2:n.data=hh.Data.decode(r,r.uint32());break;case 3:n.evidence=D9.EvidenceList.decode(r,r.uint32());break;case 4:n.lastCommit=hh.Commit.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=XOe();return(0,fte.isSet)(e.header)&&(t.header=hh.Header.fromJSON(e.header)),(0,fte.isSet)(e.data)&&(t.data=hh.Data.fromJSON(e.data)),(0,fte.isSet)(e.evidence)&&(t.evidence=D9.EvidenceList.fromJSON(e.evidence)),(0,fte.isSet)(e.lastCommit)&&(t.lastCommit=hh.Commit.fromJSON(e.lastCommit)),t},toJSON(e){let t={};return e.header!==void 0&&(t.header=e.header?hh.Header.toJSON(e.header):void 0),e.data!==void 0&&(t.data=e.data?hh.Data.toJSON(e.data):void 0),e.evidence!==void 0&&(t.evidence=e.evidence?D9.EvidenceList.toJSON(e.evidence):void 0),e.lastCommit!==void 0&&(t.lastCommit=e.lastCommit?hh.Commit.toJSON(e.lastCommit):void 0),t},fromPartial(e){let t=XOe();return e.header!==void 0&&e.header!==null&&(t.header=hh.Header.fromPartial(e.header)),e.data!==void 0&&e.data!==null&&(t.data=hh.Data.fromPartial(e.data)),e.evidence!==void 0&&e.evidence!==null&&(t.evidence=D9.EvidenceList.fromPartial(e.evidence)),e.lastCommit!==void 0&&e.lastCommit!==null&&(t.lastCommit=hh.Commit.fromPartial(e.lastCommit)),t}}});var Vyt=ir(Bi=>{"use strict";J();K();z();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.ServiceClientImpl=Bi.TxDecodeAminoResponse=Bi.TxDecodeAminoRequest=Bi.TxEncodeAminoResponse=Bi.TxEncodeAminoRequest=Bi.TxEncodeResponse=Bi.TxEncodeRequest=Bi.TxDecodeResponse=Bi.TxDecodeRequest=Bi.GetBlockWithTxsResponse=Bi.GetBlockWithTxsRequest=Bi.GetTxResponse=Bi.GetTxRequest=Bi.SimulateResponse=Bi.SimulateRequest=Bi.BroadcastTxResponse=Bi.BroadcastTxRequest=Bi.GetTxsEventResponse=Bi.GetTxsEventRequest=Bi.broadcastModeToJSON=Bi.broadcastModeFromJSON=Bi.BroadcastMode=Bi.orderByToJSON=Bi.orderByFromJSON=Bi.OrderBy=Bi.protobufPackage=void 0;var Jc=RS(),If=jA(),f0=JOe(),_Q=C5(),mQ=Fyt(),to=Qi(),Ja=Hi();Bi.protobufPackage="cosmos.tx.v1beta1";var $E;(function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})($E||(Bi.OrderBy=$E={}));function Qyt(e){switch(e){case 0:case"ORDER_BY_UNSPECIFIED":return $E.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return $E.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return $E.ORDER_BY_DESC;default:return $E.UNRECOGNIZED}}Bi.orderByFromJSON=Qyt;function Hyt(e){switch(e){case $E.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case $E.ORDER_BY_ASC:return"ORDER_BY_ASC";case $E.ORDER_BY_DESC:return"ORDER_BY_DESC";case $E.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Bi.orderByToJSON=Hyt;var Q2;(function(e){e[e.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",e[e.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",e[e.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",e[e.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Q2||(Bi.BroadcastMode=Q2={}));function Gyt(e){switch(e){case 0:case"BROADCAST_MODE_UNSPECIFIED":return Q2.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return Q2.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return Q2.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return Q2.BROADCAST_MODE_ASYNC;default:return Q2.UNRECOGNIZED}}Bi.broadcastModeFromJSON=Gyt;function qyt(e){switch(e){case Q2.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case Q2.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case Q2.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case Q2.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";case Q2.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Bi.broadcastModeToJSON=qyt;function ZOe(){return{events:[],pagination:void 0,orderBy:0,page:BigInt(0),limit:BigInt(0)}}Bi.GetTxsEventRequest={typeUrl:"/cosmos.tx.v1beta1.GetTxsEventRequest",encode(e,t=to.BinaryWriter.create()){for(let r of e.events)t.uint32(10).string(r);return e.pagination!==void 0&&If.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),e.orderBy!==0&&t.uint32(24).int32(e.orderBy),e.page!==BigInt(0)&&t.uint32(32).uint64(e.page),e.limit!==BigInt(0)&&t.uint32(40).uint64(e.limit),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ZOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.events.push(r.string());break;case 2:n.pagination=If.PageRequest.decode(r,r.uint32());break;case 3:n.orderBy=r.int32();break;case 4:n.page=r.uint64();break;case 5:n.limit=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ZOe();return Array.isArray(e?.events)&&(t.events=e.events.map(r=>String(r))),(0,Ja.isSet)(e.pagination)&&(t.pagination=If.PageRequest.fromJSON(e.pagination)),(0,Ja.isSet)(e.orderBy)&&(t.orderBy=Qyt(e.orderBy)),(0,Ja.isSet)(e.page)&&(t.page=BigInt(e.page.toString())),(0,Ja.isSet)(e.limit)&&(t.limit=BigInt(e.limit.toString())),t},toJSON(e){let t={};return e.events?t.events=e.events.map(r=>r):t.events=[],e.pagination!==void 0&&(t.pagination=e.pagination?If.PageRequest.toJSON(e.pagination):void 0),e.orderBy!==void 0&&(t.orderBy=Hyt(e.orderBy)),e.page!==void 0&&(t.page=(e.page||BigInt(0)).toString()),e.limit!==void 0&&(t.limit=(e.limit||BigInt(0)).toString()),t},fromPartial(e){let t=ZOe();return t.events=e.events?.map(r=>r)||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=If.PageRequest.fromPartial(e.pagination)),t.orderBy=e.orderBy??0,e.page!==void 0&&e.page!==null&&(t.page=BigInt(e.page.toString())),e.limit!==void 0&&e.limit!==null&&(t.limit=BigInt(e.limit.toString())),t}};function jOe(){return{txs:[],txResponses:[],pagination:void 0,total:BigInt(0)}}Bi.GetTxsEventResponse={typeUrl:"/cosmos.tx.v1beta1.GetTxsEventResponse",encode(e,t=to.BinaryWriter.create()){for(let r of e.txs)Jc.Tx.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.txResponses)f0.TxResponse.encode(r,t.uint32(18).fork()).ldelim();return e.pagination!==void 0&&If.PageResponse.encode(e.pagination,t.uint32(26).fork()).ldelim(),e.total!==BigInt(0)&&t.uint32(32).uint64(e.total),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=jOe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.txs.push(Jc.Tx.decode(r,r.uint32()));break;case 2:n.txResponses.push(f0.TxResponse.decode(r,r.uint32()));break;case 3:n.pagination=If.PageResponse.decode(r,r.uint32());break;case 4:n.total=r.uint64();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=jOe();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>Jc.Tx.fromJSON(r))),Array.isArray(e?.txResponses)&&(t.txResponses=e.txResponses.map(r=>f0.TxResponse.fromJSON(r))),(0,Ja.isSet)(e.pagination)&&(t.pagination=If.PageResponse.fromJSON(e.pagination)),(0,Ja.isSet)(e.total)&&(t.total=BigInt(e.total.toString())),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(r=>r?Jc.Tx.toJSON(r):void 0):t.txs=[],e.txResponses?t.txResponses=e.txResponses.map(r=>r?f0.TxResponse.toJSON(r):void 0):t.txResponses=[],e.pagination!==void 0&&(t.pagination=e.pagination?If.PageResponse.toJSON(e.pagination):void 0),e.total!==void 0&&(t.total=(e.total||BigInt(0)).toString()),t},fromPartial(e){let t=jOe();return t.txs=e.txs?.map(r=>Jc.Tx.fromPartial(r))||[],t.txResponses=e.txResponses?.map(r=>f0.TxResponse.fromPartial(r))||[],e.pagination!==void 0&&e.pagination!==null&&(t.pagination=If.PageResponse.fromPartial(e.pagination)),e.total!==void 0&&e.total!==null&&(t.total=BigInt(e.total.toString())),t}};function eNe(){return{txBytes:new Uint8Array,mode:0}}Bi.BroadcastTxRequest={typeUrl:"/cosmos.tx.v1beta1.BroadcastTxRequest",encode(e,t=to.BinaryWriter.create()){return e.txBytes.length!==0&&t.uint32(10).bytes(e.txBytes),e.mode!==0&&t.uint32(16).int32(e.mode),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=eNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.txBytes=r.bytes();break;case 2:n.mode=r.int32();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=eNe();return(0,Ja.isSet)(e.txBytes)&&(t.txBytes=(0,Ja.bytesFromBase64)(e.txBytes)),(0,Ja.isSet)(e.mode)&&(t.mode=Gyt(e.mode)),t},toJSON(e){let t={};return e.txBytes!==void 0&&(t.txBytes=(0,Ja.base64FromBytes)(e.txBytes!==void 0?e.txBytes:new Uint8Array)),e.mode!==void 0&&(t.mode=qyt(e.mode)),t},fromPartial(e){let t=eNe();return t.txBytes=e.txBytes??new Uint8Array,t.mode=e.mode??0,t}};function tNe(){return{txResponse:void 0}}Bi.BroadcastTxResponse={typeUrl:"/cosmos.tx.v1beta1.BroadcastTxResponse",encode(e,t=to.BinaryWriter.create()){return e.txResponse!==void 0&&f0.TxResponse.encode(e.txResponse,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=tNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.txResponse=f0.TxResponse.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=tNe();return(0,Ja.isSet)(e.txResponse)&&(t.txResponse=f0.TxResponse.fromJSON(e.txResponse)),t},toJSON(e){let t={};return e.txResponse!==void 0&&(t.txResponse=e.txResponse?f0.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial(e){let t=tNe();return e.txResponse!==void 0&&e.txResponse!==null&&(t.txResponse=f0.TxResponse.fromPartial(e.txResponse)),t}};function rNe(){return{tx:void 0,txBytes:new Uint8Array}}Bi.SimulateRequest={typeUrl:"/cosmos.tx.v1beta1.SimulateRequest",encode(e,t=to.BinaryWriter.create()){return e.tx!==void 0&&Jc.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),e.txBytes.length!==0&&t.uint32(18).bytes(e.txBytes),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=rNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.tx=Jc.Tx.decode(r,r.uint32());break;case 2:n.txBytes=r.bytes();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=rNe();return(0,Ja.isSet)(e.tx)&&(t.tx=Jc.Tx.fromJSON(e.tx)),(0,Ja.isSet)(e.txBytes)&&(t.txBytes=(0,Ja.bytesFromBase64)(e.txBytes)),t},toJSON(e){let t={};return e.tx!==void 0&&(t.tx=e.tx?Jc.Tx.toJSON(e.tx):void 0),e.txBytes!==void 0&&(t.txBytes=(0,Ja.base64FromBytes)(e.txBytes!==void 0?e.txBytes:new Uint8Array)),t},fromPartial(e){let t=rNe();return e.tx!==void 0&&e.tx!==null&&(t.tx=Jc.Tx.fromPartial(e.tx)),t.txBytes=e.txBytes??new Uint8Array,t}};function nNe(){return{gasInfo:void 0,result:void 0}}Bi.SimulateResponse={typeUrl:"/cosmos.tx.v1beta1.SimulateResponse",encode(e,t=to.BinaryWriter.create()){return e.gasInfo!==void 0&&f0.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),e.result!==void 0&&f0.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=nNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.gasInfo=f0.GasInfo.decode(r,r.uint32());break;case 2:n.result=f0.Result.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=nNe();return(0,Ja.isSet)(e.gasInfo)&&(t.gasInfo=f0.GasInfo.fromJSON(e.gasInfo)),(0,Ja.isSet)(e.result)&&(t.result=f0.Result.fromJSON(e.result)),t},toJSON(e){let t={};return e.gasInfo!==void 0&&(t.gasInfo=e.gasInfo?f0.GasInfo.toJSON(e.gasInfo):void 0),e.result!==void 0&&(t.result=e.result?f0.Result.toJSON(e.result):void 0),t},fromPartial(e){let t=nNe();return e.gasInfo!==void 0&&e.gasInfo!==null&&(t.gasInfo=f0.GasInfo.fromPartial(e.gasInfo)),e.result!==void 0&&e.result!==null&&(t.result=f0.Result.fromPartial(e.result)),t}};function iNe(){return{hash:""}}Bi.GetTxRequest={typeUrl:"/cosmos.tx.v1beta1.GetTxRequest",encode(e,t=to.BinaryWriter.create()){return e.hash!==""&&t.uint32(10).string(e.hash),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=iNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.hash=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=iNe();return(0,Ja.isSet)(e.hash)&&(t.hash=String(e.hash)),t},toJSON(e){let t={};return e.hash!==void 0&&(t.hash=e.hash),t},fromPartial(e){let t=iNe();return t.hash=e.hash??"",t}};function oNe(){return{tx:void 0,txResponse:void 0}}Bi.GetTxResponse={typeUrl:"/cosmos.tx.v1beta1.GetTxResponse",encode(e,t=to.BinaryWriter.create()){return e.tx!==void 0&&Jc.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),e.txResponse!==void 0&&f0.TxResponse.encode(e.txResponse,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=oNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.tx=Jc.Tx.decode(r,r.uint32());break;case 2:n.txResponse=f0.TxResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=oNe();return(0,Ja.isSet)(e.tx)&&(t.tx=Jc.Tx.fromJSON(e.tx)),(0,Ja.isSet)(e.txResponse)&&(t.txResponse=f0.TxResponse.fromJSON(e.txResponse)),t},toJSON(e){let t={};return e.tx!==void 0&&(t.tx=e.tx?Jc.Tx.toJSON(e.tx):void 0),e.txResponse!==void 0&&(t.txResponse=e.txResponse?f0.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial(e){let t=oNe();return e.tx!==void 0&&e.tx!==null&&(t.tx=Jc.Tx.fromPartial(e.tx)),e.txResponse!==void 0&&e.txResponse!==null&&(t.txResponse=f0.TxResponse.fromPartial(e.txResponse)),t}};function aNe(){return{height:BigInt(0),pagination:void 0}}Bi.GetBlockWithTxsRequest={typeUrl:"/cosmos.tx.v1beta1.GetBlockWithTxsRequest",encode(e,t=to.BinaryWriter.create()){return e.height!==BigInt(0)&&t.uint32(8).int64(e.height),e.pagination!==void 0&&If.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=aNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.height=r.int64();break;case 2:n.pagination=If.PageRequest.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=aNe();return(0,Ja.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,Ja.isSet)(e.pagination)&&(t.pagination=If.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.height!==void 0&&(t.height=(e.height||BigInt(0)).toString()),e.pagination!==void 0&&(t.pagination=e.pagination?If.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=aNe();return e.height!==void 0&&e.height!==null&&(t.height=BigInt(e.height.toString())),e.pagination!==void 0&&e.pagination!==null&&(t.pagination=If.PageRequest.fromPartial(e.pagination)),t}};function sNe(){return{txs:[],blockId:void 0,block:void 0,pagination:void 0}}Bi.GetBlockWithTxsResponse={typeUrl:"/cosmos.tx.v1beta1.GetBlockWithTxsResponse",encode(e,t=to.BinaryWriter.create()){for(let r of e.txs)Jc.Tx.encode(r,t.uint32(10).fork()).ldelim();return e.blockId!==void 0&&_Q.BlockID.encode(e.blockId,t.uint32(18).fork()).ldelim(),e.block!==void 0&&mQ.Block.encode(e.block,t.uint32(26).fork()).ldelim(),e.pagination!==void 0&&If.PageResponse.encode(e.pagination,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=sNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.txs.push(Jc.Tx.decode(r,r.uint32()));break;case 2:n.blockId=_Q.BlockID.decode(r,r.uint32());break;case 3:n.block=mQ.Block.decode(r,r.uint32());break;case 4:n.pagination=If.PageResponse.decode(r,r.uint32());break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=sNe();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(r=>Jc.Tx.fromJSON(r))),(0,Ja.isSet)(e.blockId)&&(t.blockId=_Q.BlockID.fromJSON(e.blockId)),(0,Ja.isSet)(e.block)&&(t.block=mQ.Block.fromJSON(e.block)),(0,Ja.isSet)(e.pagination)&&(t.pagination=If.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(r=>r?Jc.Tx.toJSON(r):void 0):t.txs=[],e.blockId!==void 0&&(t.blockId=e.blockId?_Q.BlockID.toJSON(e.blockId):void 0),e.block!==void 0&&(t.block=e.block?mQ.Block.toJSON(e.block):void 0),e.pagination!==void 0&&(t.pagination=e.pagination?If.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=sNe();return t.txs=e.txs?.map(r=>Jc.Tx.fromPartial(r))||[],e.blockId!==void 0&&e.blockId!==null&&(t.blockId=_Q.BlockID.fromPartial(e.blockId)),e.block!==void 0&&e.block!==null&&(t.block=mQ.Block.fromPartial(e.block)),e.pagination!==void 0&&e.pagination!==null&&(t.pagination=If.PageResponse.fromPartial(e.pagination)),t}};function cNe(){return{txBytes:new Uint8Array}}Bi.TxDecodeRequest={typeUrl:"/cosmos.tx.v1beta1.TxDecodeRequest",encode(e,t=to.BinaryWriter.create()){return e.txBytes.length!==0&&t.uint32(10).bytes(e.txBytes),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=cNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.txBytes=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=cNe();return(0,Ja.isSet)(e.txBytes)&&(t.txBytes=(0,Ja.bytesFromBase64)(e.txBytes)),t},toJSON(e){let t={};return e.txBytes!==void 0&&(t.txBytes=(0,Ja.base64FromBytes)(e.txBytes!==void 0?e.txBytes:new Uint8Array)),t},fromPartial(e){let t=cNe();return t.txBytes=e.txBytes??new Uint8Array,t}};function uNe(){return{tx:void 0}}Bi.TxDecodeResponse={typeUrl:"/cosmos.tx.v1beta1.TxDecodeResponse",encode(e,t=to.BinaryWriter.create()){return e.tx!==void 0&&Jc.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=uNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.tx=Jc.Tx.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=uNe();return(0,Ja.isSet)(e.tx)&&(t.tx=Jc.Tx.fromJSON(e.tx)),t},toJSON(e){let t={};return e.tx!==void 0&&(t.tx=e.tx?Jc.Tx.toJSON(e.tx):void 0),t},fromPartial(e){let t=uNe();return e.tx!==void 0&&e.tx!==null&&(t.tx=Jc.Tx.fromPartial(e.tx)),t}};function dNe(){return{tx:void 0}}Bi.TxEncodeRequest={typeUrl:"/cosmos.tx.v1beta1.TxEncodeRequest",encode(e,t=to.BinaryWriter.create()){return e.tx!==void 0&&Jc.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=dNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.tx=Jc.Tx.decode(r,r.uint32()):r.skipType(o&7)}return n},fromJSON(e){let t=dNe();return(0,Ja.isSet)(e.tx)&&(t.tx=Jc.Tx.fromJSON(e.tx)),t},toJSON(e){let t={};return e.tx!==void 0&&(t.tx=e.tx?Jc.Tx.toJSON(e.tx):void 0),t},fromPartial(e){let t=dNe();return e.tx!==void 0&&e.tx!==null&&(t.tx=Jc.Tx.fromPartial(e.tx)),t}};function fNe(){return{txBytes:new Uint8Array}}Bi.TxEncodeResponse={typeUrl:"/cosmos.tx.v1beta1.TxEncodeResponse",encode(e,t=to.BinaryWriter.create()){return e.txBytes.length!==0&&t.uint32(10).bytes(e.txBytes),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=fNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.txBytes=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=fNe();return(0,Ja.isSet)(e.txBytes)&&(t.txBytes=(0,Ja.bytesFromBase64)(e.txBytes)),t},toJSON(e){let t={};return e.txBytes!==void 0&&(t.txBytes=(0,Ja.base64FromBytes)(e.txBytes!==void 0?e.txBytes:new Uint8Array)),t},fromPartial(e){let t=fNe();return t.txBytes=e.txBytes??new Uint8Array,t}};function lNe(){return{aminoJson:""}}Bi.TxEncodeAminoRequest={typeUrl:"/cosmos.tx.v1beta1.TxEncodeAminoRequest",encode(e,t=to.BinaryWriter.create()){return e.aminoJson!==""&&t.uint32(10).string(e.aminoJson),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=lNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.aminoJson=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=lNe();return(0,Ja.isSet)(e.aminoJson)&&(t.aminoJson=String(e.aminoJson)),t},toJSON(e){let t={};return e.aminoJson!==void 0&&(t.aminoJson=e.aminoJson),t},fromPartial(e){let t=lNe();return t.aminoJson=e.aminoJson??"",t}};function hNe(){return{aminoBinary:new Uint8Array}}Bi.TxEncodeAminoResponse={typeUrl:"/cosmos.tx.v1beta1.TxEncodeAminoResponse",encode(e,t=to.BinaryWriter.create()){return e.aminoBinary.length!==0&&t.uint32(10).bytes(e.aminoBinary),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=hNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.aminoBinary=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=hNe();return(0,Ja.isSet)(e.aminoBinary)&&(t.aminoBinary=(0,Ja.bytesFromBase64)(e.aminoBinary)),t},toJSON(e){let t={};return e.aminoBinary!==void 0&&(t.aminoBinary=(0,Ja.base64FromBytes)(e.aminoBinary!==void 0?e.aminoBinary:new Uint8Array)),t},fromPartial(e){let t=hNe();return t.aminoBinary=e.aminoBinary??new Uint8Array,t}};function ANe(){return{aminoBinary:new Uint8Array}}Bi.TxDecodeAminoRequest={typeUrl:"/cosmos.tx.v1beta1.TxDecodeAminoRequest",encode(e,t=to.BinaryWriter.create()){return e.aminoBinary.length!==0&&t.uint32(10).bytes(e.aminoBinary),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ANe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.aminoBinary=r.bytes():r.skipType(o&7)}return n},fromJSON(e){let t=ANe();return(0,Ja.isSet)(e.aminoBinary)&&(t.aminoBinary=(0,Ja.bytesFromBase64)(e.aminoBinary)),t},toJSON(e){let t={};return e.aminoBinary!==void 0&&(t.aminoBinary=(0,Ja.base64FromBytes)(e.aminoBinary!==void 0?e.aminoBinary:new Uint8Array)),t},fromPartial(e){let t=ANe();return t.aminoBinary=e.aminoBinary??new Uint8Array,t}};function pNe(){return{aminoJson:""}}Bi.TxDecodeAminoResponse={typeUrl:"/cosmos.tx.v1beta1.TxDecodeAminoResponse",encode(e,t=to.BinaryWriter.create()){return e.aminoJson!==""&&t.uint32(10).string(e.aminoJson),t},decode(e,t){let r=e instanceof to.BinaryReader?e:new to.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=pNe();for(;r.pos<i;){let o=r.uint32();o>>>3===1?n.aminoJson=r.string():r.skipType(o&7)}return n},fromJSON(e){let t=pNe();return(0,Ja.isSet)(e.aminoJson)&&(t.aminoJson=String(e.aminoJson)),t},toJSON(e){let t={};return e.aminoJson!==void 0&&(t.aminoJson=e.aminoJson),t},fromPartial(e){let t=pNe();return t.aminoJson=e.aminoJson??"",t}};var gNe=class{constructor(t){this.rpc=t,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this),this.GetBlockWithTxs=this.GetBlockWithTxs.bind(this),this.TxDecode=this.TxDecode.bind(this),this.TxEncode=this.TxEncode.bind(this),this.TxEncodeAmino=this.TxEncodeAmino.bind(this),this.TxDecodeAmino=this.TxDecodeAmino.bind(this)}Simulate(t){let r=Bi.SimulateRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",r).then(n=>Bi.SimulateResponse.decode(new to.BinaryReader(n)))}GetTx(t){let r=Bi.GetTxRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",r).then(n=>Bi.GetTxResponse.decode(new to.BinaryReader(n)))}BroadcastTx(t){let r=Bi.BroadcastTxRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",r).then(n=>Bi.BroadcastTxResponse.decode(new to.BinaryReader(n)))}GetTxsEvent(t){let r=Bi.GetTxsEventRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",r).then(n=>Bi.GetTxsEventResponse.decode(new to.BinaryReader(n)))}GetBlockWithTxs(t){let r=Bi.GetBlockWithTxsRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetBlockWithTxs",r).then(n=>Bi.GetBlockWithTxsResponse.decode(new to.BinaryReader(n)))}TxDecode(t){let r=Bi.TxDecodeRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecode",r).then(n=>Bi.TxDecodeResponse.decode(new to.BinaryReader(n)))}TxEncode(t){let r=Bi.TxEncodeRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncode",r).then(n=>Bi.TxEncodeResponse.decode(new to.BinaryReader(n)))}TxEncodeAmino(t){let r=Bi.TxEncodeAminoRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncodeAmino",r).then(n=>Bi.TxEncodeAminoResponse.decode(new to.BinaryReader(n)))}TxDecodeAmino(t){let r=Bi.TxDecodeAminoRequest.encode(t).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecodeAmino",r).then(n=>Bi.TxDecodeAminoResponse.decode(new to.BinaryReader(n)))}};Bi.ServiceClientImpl=gNe});var zyt=ir(lte=>{"use strict";J();K();z();Object.defineProperty(lte,"__esModule",{value:!0});lte.setupTxExtension=void 0;var S1n=SS(),I1n=U7(),Jyt=Vyt(),yQ=RS(),C1n=ep();function w1n(e){let t=(0,C1n.createProtobufRpcClient)(e),r=new Jyt.ServiceClientImpl(t);return{tx:{getTx:async i=>{let n={hash:i};return await r.GetTx(n)},simulate:async(i,n,o,d)=>{let g=yQ.Tx.fromPartial({authInfo:yQ.AuthInfo.fromPartial({fee:yQ.Fee.fromPartial({}),signerInfos:[{publicKey:(0,S1n.encodePubkey)(o),sequence:BigInt(d),modeInfo:{single:{mode:I1n.SignMode.SIGN_MODE_UNSPECIFIED}}}]}),body:yQ.TxBody.fromPartial({messages:Array.from(i),memo:n}),signatures:[new Uint8Array]}),y=Jyt.SimulateRequest.fromPartial({txBytes:yQ.Tx.encode(g).finish()});return await r.Simulate(y)}}}}lte.setupTxExtension=w1n});var Kyt=ir(P9=>{"use strict";J();K();z();Object.defineProperty(P9,"__esModule",{value:!0});P9.createVestingAminoConverters=P9.isAminoMsgCreateVestingAccount=void 0;function O1n(e){return e.type==="cosmos-sdk/MsgCreateVestingAccount"}P9.isAminoMsgCreateVestingAccount=O1n;function N1n(){return{"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":{aminoType:"cosmos-sdk/MsgCreateVestingAccount",toAmino:({fromAddress:e,toAddress:t,amount:r,endTime:i,delayed:n})=>({from_address:e,to_address:t,amount:[...r],end_time:i.toString(),delayed:n}),fromAmino:({from_address:e,to_address:t,amount:r,end_time:i,delayed:n})=>({fromAddress:e,toAddress:t,amount:[...r],endTime:BigInt(i),delayed:n})}}}P9.createVestingAminoConverters=N1n});var $yt=ir(M0=>{"use strict";J();K();z();Object.defineProperty(M0,"__esModule",{value:!0});M0.MsgClientImpl=M0.MsgCreatePeriodicVestingAccountResponse=M0.MsgCreatePeriodicVestingAccount=M0.MsgCreatePermanentLockedAccountResponse=M0.MsgCreatePermanentLockedAccount=M0.MsgCreateVestingAccountResponse=M0.MsgCreateVestingAccount=M0.protobufPackage=void 0;var YE=Af(),bQ=Gve(),Xd=Qi(),MS=Hi();M0.protobufPackage="cosmos.vesting.v1beta1";function _Ne(){return{fromAddress:"",toAddress:"",amount:[],endTime:BigInt(0),delayed:!1}}M0.MsgCreateVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",encode(e,t=Xd.BinaryWriter.create()){e.fromAddress!==""&&t.uint32(10).string(e.fromAddress),e.toAddress!==""&&t.uint32(18).string(e.toAddress);for(let r of e.amount)YE.Coin.encode(r,t.uint32(26).fork()).ldelim();return e.endTime!==BigInt(0)&&t.uint32(32).int64(e.endTime),e.delayed===!0&&t.uint32(40).bool(e.delayed),t},decode(e,t){let r=e instanceof Xd.BinaryReader?e:new Xd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=_Ne();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.fromAddress=r.string();break;case 2:n.toAddress=r.string();break;case 3:n.amount.push(YE.Coin.decode(r,r.uint32()));break;case 4:n.endTime=r.int64();break;case 5:n.delayed=r.bool();break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=_Ne();return(0,MS.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,MS.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>YE.Coin.fromJSON(r))),(0,MS.isSet)(e.endTime)&&(t.endTime=BigInt(e.endTime.toString())),(0,MS.isSet)(e.delayed)&&(t.delayed=!!e.delayed),t},toJSON(e){let t={};return e.fromAddress!==void 0&&(t.fromAddress=e.fromAddress),e.toAddress!==void 0&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(r=>r?YE.Coin.toJSON(r):void 0):t.amount=[],e.endTime!==void 0&&(t.endTime=(e.endTime||BigInt(0)).toString()),e.delayed!==void 0&&(t.delayed=e.delayed),t},fromPartial(e){let t=_Ne();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",t.amount=e.amount?.map(r=>YE.Coin.fromPartial(r))||[],e.endTime!==void 0&&e.endTime!==null&&(t.endTime=BigInt(e.endTime.toString())),t.delayed=e.delayed??!1,t}};function mNe(){return{}}M0.MsgCreateVestingAccountResponse={typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse",encode(e,t=Xd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Xd.BinaryReader?e:new Xd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=mNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return mNe()},toJSON(e){return{}},fromPartial(e){return mNe()}};function yNe(){return{fromAddress:"",toAddress:"",amount:[]}}M0.MsgCreatePermanentLockedAccount={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",encode(e,t=Xd.BinaryWriter.create()){e.fromAddress!==""&&t.uint32(10).string(e.fromAddress),e.toAddress!==""&&t.uint32(18).string(e.toAddress);for(let r of e.amount)YE.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof Xd.BinaryReader?e:new Xd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=yNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.fromAddress=r.string();break;case 2:n.toAddress=r.string();break;case 3:n.amount.push(YE.Coin.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=yNe();return(0,MS.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,MS.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(r=>YE.Coin.fromJSON(r))),t},toJSON(e){let t={};return e.fromAddress!==void 0&&(t.fromAddress=e.fromAddress),e.toAddress!==void 0&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(r=>r?YE.Coin.toJSON(r):void 0):t.amount=[],t},fromPartial(e){let t=yNe();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",t.amount=e.amount?.map(r=>YE.Coin.fromPartial(r))||[],t}};function bNe(){return{}}M0.MsgCreatePermanentLockedAccountResponse={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse",encode(e,t=Xd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Xd.BinaryReader?e:new Xd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=bNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return bNe()},toJSON(e){return{}},fromPartial(e){return bNe()}};function ENe(){return{fromAddress:"",toAddress:"",startTime:BigInt(0),vestingPeriods:[]}}M0.MsgCreatePeriodicVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",encode(e,t=Xd.BinaryWriter.create()){e.fromAddress!==""&&t.uint32(10).string(e.fromAddress),e.toAddress!==""&&t.uint32(18).string(e.toAddress),e.startTime!==BigInt(0)&&t.uint32(24).int64(e.startTime);for(let r of e.vestingPeriods)bQ.Period.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof Xd.BinaryReader?e:new Xd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=ENe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:n.fromAddress=r.string();break;case 2:n.toAddress=r.string();break;case 3:n.startTime=r.int64();break;case 4:n.vestingPeriods.push(bQ.Period.decode(r,r.uint32()));break;default:r.skipType(o&7);break}}return n},fromJSON(e){let t=ENe();return(0,MS.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,MS.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),(0,MS.isSet)(e.startTime)&&(t.startTime=BigInt(e.startTime.toString())),Array.isArray(e?.vestingPeriods)&&(t.vestingPeriods=e.vestingPeriods.map(r=>bQ.Period.fromJSON(r))),t},toJSON(e){let t={};return e.fromAddress!==void 0&&(t.fromAddress=e.fromAddress),e.toAddress!==void 0&&(t.toAddress=e.toAddress),e.startTime!==void 0&&(t.startTime=(e.startTime||BigInt(0)).toString()),e.vestingPeriods?t.vestingPeriods=e.vestingPeriods.map(r=>r?bQ.Period.toJSON(r):void 0):t.vestingPeriods=[],t},fromPartial(e){let t=ENe();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",e.startTime!==void 0&&e.startTime!==null&&(t.startTime=BigInt(e.startTime.toString())),t.vestingPeriods=e.vestingPeriods?.map(r=>bQ.Period.fromPartial(r))||[],t}};function vNe(){return{}}M0.MsgCreatePeriodicVestingAccountResponse={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse",encode(e,t=Xd.BinaryWriter.create()){return t},decode(e,t){let r=e instanceof Xd.BinaryReader?e:new Xd.BinaryReader(e),i=t===void 0?r.len:r.pos+t,n=vNe();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){default:r.skipType(o&7);break}}return n},fromJSON(e){return vNe()},toJSON(e){return{}},fromPartial(e){return vNe()}};var RNe=class{constructor(t){this.rpc=t,this.CreateVestingAccount=this.CreateVestingAccount.bind(this),this.CreatePermanentLockedAccount=this.CreatePermanentLockedAccount.bind(this),this.CreatePeriodicVestingAccount=this.CreatePeriodicVestingAccount.bind(this)}CreateVestingAccount(t){let r=M0.MsgCreateVestingAccount.encode(t).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",r).then(n=>M0.MsgCreateVestingAccountResponse.decode(new Xd.BinaryReader(n)))}CreatePermanentLockedAccount(t){let r=M0.MsgCreatePermanentLockedAccount.encode(t).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePermanentLockedAccount",r).then(n=>M0.MsgCreatePermanentLockedAccountResponse.decode(new Xd.BinaryReader(n)))}CreatePeriodicVestingAccount(t){let r=M0.MsgCreatePeriodicVestingAccount.encode(t).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePeriodicVestingAccount",r).then(n=>M0.MsgCreatePeriodicVestingAccountResponse.decode(new Xd.BinaryReader(n)))}};M0.MsgClientImpl=RNe});var Yyt=ir(hte=>{"use strict";J();K();z();Object.defineProperty(hte,"__esModule",{value:!0});hte.vestingTypes=void 0;var x1n=$yt();hte.vestingTypes=[["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",x1n.MsgCreateVestingAccount]]});var SQ=ir(Rn=>{"use strict";J();K();z();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.isAminoMsgCreateValidator=Rn.isAminoMsgBeginRedelegate=Rn.createStakingAminoConverters=Rn.setupSlashingExtension=Rn.isAminoMsgUnjail=Rn.createSlashingAminoConverters=Rn.setupMintExtension=Rn.setupIbcExtension=Rn.isMsgTransferEncodeObject=Rn.ibcTypes=Rn.isAminoMsgTransfer=Rn.createIbcAminoConverters=Rn.groupTypes=Rn.createGroupAminoConverters=Rn.setupGovExtension=Rn.isMsgVoteWeightedEncodeObject=Rn.isMsgVoteEncodeObject=Rn.isMsgSubmitProposalEncodeObject=Rn.isMsgDepositEncodeObject=Rn.govTypes=Rn.isAminoMsgVoteWeighted=Rn.isAminoMsgVote=Rn.isAminoMsgSubmitProposal=Rn.isAminoMsgDeposit=Rn.createGovAminoConverters=Rn.setupFeegrantExtension=Rn.feegrantTypes=Rn.createFeegrantAminoConverters=Rn.isAminoMsgSubmitEvidence=Rn.createEvidenceAminoConverters=Rn.setupDistributionExtension=Rn.isMsgWithdrawDelegatorRewardEncodeObject=Rn.distributionTypes=Rn.isAminoMsgWithdrawValidatorCommission=Rn.isAminoMsgWithdrawDelegatorReward=Rn.isAminoMsgSetWithdrawAddress=Rn.isAminoMsgFundCommunityPool=Rn.createDistributionAminoConverters=Rn.isAminoMsgVerifyInvariant=Rn.createCrysisAminoConverters=Rn.setupBankExtension=Rn.isMsgSendEncodeObject=Rn.bankTypes=Rn.isAminoMsgSend=Rn.isAminoMsgMultiSend=Rn.createBankAminoConverters=Rn.setupAuthzExtension=Rn.authzTypes=Rn.createAuthzAminoConverters=Rn.setupAuthExtension=void 0;Rn.vestingTypes=Rn.isAminoMsgCreateVestingAccount=Rn.createVestingAminoConverters=Rn.setupTxExtension=Rn.setupStakingExtension=Rn.stakingTypes=Rn.isMsgUndelegateEncodeObject=Rn.isMsgEditValidatorEncodeObject=Rn.isMsgDelegateEncodeObject=Rn.isMsgCreateValidatorEncodeObject=Rn.isMsgCancelUnbondingDelegationEncodeObject=Rn.isMsgBeginRedelegateEncodeObject=Rn.isAminoMsgUndelegate=Rn.isAminoMsgEditValidator=Rn.isAminoMsgDelegate=void 0;var T1n=K2t();Object.defineProperty(Rn,"setupAuthExtension",{enumerable:!0,get:function(){return T1n.setupAuthExtension}});var B1n=$2t();Object.defineProperty(Rn,"createAuthzAminoConverters",{enumerable:!0,get:function(){return B1n.createAuthzAminoConverters}});var M1n=X2t();Object.defineProperty(Rn,"authzTypes",{enumerable:!0,get:function(){return M1n.authzTypes}});var D1n=j2t();Object.defineProperty(Rn,"setupAuthzExtension",{enumerable:!0,get:function(){return D1n.setupAuthzExtension}});var SNe=emt();Object.defineProperty(Rn,"createBankAminoConverters",{enumerable:!0,get:function(){return SNe.createBankAminoConverters}});Object.defineProperty(Rn,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return SNe.isAminoMsgMultiSend}});Object.defineProperty(Rn,"isAminoMsgSend",{enumerable:!0,get:function(){return SNe.isAminoMsgSend}});var Wyt=rmt();Object.defineProperty(Rn,"bankTypes",{enumerable:!0,get:function(){return Wyt.bankTypes}});Object.defineProperty(Rn,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return Wyt.isMsgSendEncodeObject}});var k1n=omt();Object.defineProperty(Rn,"setupBankExtension",{enumerable:!0,get:function(){return k1n.setupBankExtension}});var Xyt=amt();Object.defineProperty(Rn,"createCrysisAminoConverters",{enumerable:!0,get:function(){return Xyt.createCrysisAminoConverters}});Object.defineProperty(Rn,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return Xyt.isAminoMsgVerifyInvariant}});var EQ=smt();Object.defineProperty(Rn,"createDistributionAminoConverters",{enumerable:!0,get:function(){return EQ.createDistributionAminoConverters}});Object.defineProperty(Rn,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return EQ.isAminoMsgFundCommunityPool}});Object.defineProperty(Rn,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return EQ.isAminoMsgSetWithdrawAddress}});Object.defineProperty(Rn,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return EQ.isAminoMsgWithdrawDelegatorReward}});Object.defineProperty(Rn,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return EQ.isAminoMsgWithdrawValidatorCommission}});var Zyt=cmt();Object.defineProperty(Rn,"distributionTypes",{enumerable:!0,get:function(){return Zyt.distributionTypes}});Object.defineProperty(Rn,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return Zyt.isMsgWithdrawDelegatorRewardEncodeObject}});var P1n=fmt();Object.defineProperty(Rn,"setupDistributionExtension",{enumerable:!0,get:function(){return P1n.setupDistributionExtension}});var jyt=lmt();Object.defineProperty(Rn,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return jyt.createEvidenceAminoConverters}});Object.defineProperty(Rn,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return jyt.isAminoMsgSubmitEvidence}});var L1n=hmt();Object.defineProperty(Rn,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return L1n.createFeegrantAminoConverters}});var U1n=gmt();Object.defineProperty(Rn,"feegrantTypes",{enumerable:!0,get:function(){return U1n.feegrantTypes}});var F1n=Emt();Object.defineProperty(Rn,"setupFeegrantExtension",{enumerable:!0,get:function(){return F1n.setupFeegrantExtension}});var vQ=Smt();Object.defineProperty(Rn,"createGovAminoConverters",{enumerable:!0,get:function(){return vQ.createGovAminoConverters}});Object.defineProperty(Rn,"isAminoMsgDeposit",{enumerable:!0,get:function(){return vQ.isAminoMsgDeposit}});Object.defineProperty(Rn,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return vQ.isAminoMsgSubmitProposal}});Object.defineProperty(Rn,"isAminoMsgVote",{enumerable:!0,get:function(){return vQ.isAminoMsgVote}});Object.defineProperty(Rn,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return vQ.isAminoMsgVoteWeighted}});var RQ=Bmt();Object.defineProperty(Rn,"govTypes",{enumerable:!0,get:function(){return RQ.govTypes}});Object.defineProperty(Rn,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return RQ.isMsgDepositEncodeObject}});Object.defineProperty(Rn,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return RQ.isMsgSubmitProposalEncodeObject}});Object.defineProperty(Rn,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return RQ.isMsgVoteEncodeObject}});Object.defineProperty(Rn,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return RQ.isMsgVoteWeightedEncodeObject}});var Q1n=Dmt();Object.defineProperty(Rn,"setupGovExtension",{enumerable:!0,get:function(){return Q1n.setupGovExtension}});var H1n=kmt();Object.defineProperty(Rn,"createGroupAminoConverters",{enumerable:!0,get:function(){return H1n.createGroupAminoConverters}});var G1n=Vmt();Object.defineProperty(Rn,"groupTypes",{enumerable:!0,get:function(){return G1n.groupTypes}});var ebt=zmt();Object.defineProperty(Rn,"createIbcAminoConverters",{enumerable:!0,get:function(){return ebt.createIbcAminoConverters}});Object.defineProperty(Rn,"isAminoMsgTransfer",{enumerable:!0,get:function(){return ebt.isAminoMsgTransfer}});var tbt=Zmt();Object.defineProperty(Rn,"ibcTypes",{enumerable:!0,get:function(){return tbt.ibcTypes}});Object.defineProperty(Rn,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return tbt.isMsgTransferEncodeObject}});var q1n=dyt();Object.defineProperty(Rn,"setupIbcExtension",{enumerable:!0,get:function(){return q1n.setupIbcExtension}});var V1n=hyt();Object.defineProperty(Rn,"setupMintExtension",{enumerable:!0,get:function(){return V1n.setupMintExtension}});var rbt=Ayt();Object.defineProperty(Rn,"createSlashingAminoConverters",{enumerable:!0,get:function(){return rbt.createSlashingAminoConverters}});Object.defineProperty(Rn,"isAminoMsgUnjail",{enumerable:!0,get:function(){return rbt.isAminoMsgUnjail}});var J1n=myt();Object.defineProperty(Rn,"setupSlashingExtension",{enumerable:!0,get:function(){return J1n.setupSlashingExtension}});var L9=Eyt();Object.defineProperty(Rn,"createStakingAminoConverters",{enumerable:!0,get:function(){return L9.createStakingAminoConverters}});Object.defineProperty(Rn,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return L9.isAminoMsgBeginRedelegate}});Object.defineProperty(Rn,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return L9.isAminoMsgCreateValidator}});Object.defineProperty(Rn,"isAminoMsgDelegate",{enumerable:!0,get:function(){return L9.isAminoMsgDelegate}});Object.defineProperty(Rn,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return L9.isAminoMsgEditValidator}});Object.defineProperty(Rn,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return L9.isAminoMsgUndelegate}});var x5=kyt();Object.defineProperty(Rn,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return x5.isMsgBeginRedelegateEncodeObject}});Object.defineProperty(Rn,"isMsgCancelUnbondingDelegationEncodeObject",{enumerable:!0,get:function(){return x5.isMsgCancelUnbondingDelegationEncodeObject}});Object.defineProperty(Rn,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return x5.isMsgCreateValidatorEncodeObject}});Object.defineProperty(Rn,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return x5.isMsgDelegateEncodeObject}});Object.defineProperty(Rn,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return x5.isMsgEditValidatorEncodeObject}});Object.defineProperty(Rn,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return x5.isMsgUndelegateEncodeObject}});Object.defineProperty(Rn,"stakingTypes",{enumerable:!0,get:function(){return x5.stakingTypes}});var z1n=Lyt();Object.defineProperty(Rn,"setupStakingExtension",{enumerable:!0,get:function(){return z1n.setupStakingExtension}});var K1n=zyt();Object.defineProperty(Rn,"setupTxExtension",{enumerable:!0,get:function(){return K1n.setupTxExtension}});var nbt=Kyt();Object.defineProperty(Rn,"createVestingAminoConverters",{enumerable:!0,get:function(){return nbt.createVestingAminoConverters}});Object.defineProperty(Rn,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return nbt.isAminoMsgCreateVestingAccount}});var $1n=Yyt();Object.defineProperty(Rn,"vestingTypes",{enumerable:!0,get:function(){return $1n.vestingTypes}})});var cbt=ir(g8=>{"use strict";J();K();z();Object.defineProperty(g8,"__esModule",{value:!0});g8.makeMultisignedTxBytes=g8.makeMultisignedTx=g8.makeCompactBitArray=void 0;var Y1n=R_(),W1n=Ps(),X1n=SS(),INe=hee(),Z1n=U7(),ibt=RS(),obt=RS();function abt(e){let t=Math.ceil(e.length/8),r=e.length-Math.floor(e.length/8)*8,i=new Uint8Array(t);return e.forEach((n,o)=>{let d=Math.floor(o/8),g=o%8;n&&(i[d]|=1<<7-g)}),INe.CompactBitArray.fromPartial({elems:i,extraBitsStored:r})}g8.makeCompactBitArray=abt;function sbt(e,t,r,i,n){let o=Array.from(n.keys()),d=(0,W1n.fromBech32)(o[0]).prefix,g=Array(e.value.pubkeys.length).fill(!1),y=new Array;for(let M=0;M<e.value.pubkeys.length;M++){let D=(0,Y1n.pubkeyToAddress)(e.value.pubkeys[M],d),P=n.get(D);P&&(g[M]=!0,y.push(P))}let _={publicKey:(0,X1n.encodePubkey)(e),modeInfo:{multi:{bitarray:abt(g),modeInfos:y.map(M=>({single:{mode:Z1n.SignMode.SIGN_MODE_LEGACY_AMINO_JSON}}))}},sequence:BigInt(t)},I=ibt.AuthInfo.fromPartial({signerInfos:[_],fee:{amount:[...r.amount],gasLimit:BigInt(r.gas)}}),N=ibt.AuthInfo.encode(I).finish();return obt.TxRaw.fromPartial({bodyBytes:i,authInfoBytes:N,signatures:[INe.MultiSignature.encode(INe.MultiSignature.fromPartial({signatures:y})).finish()]})}g8.makeMultisignedTx=sbt;function j1n(e,t,r,i,n){let o=sbt(e,t,r,i,n);return Uint8Array.from(obt.TxRaw.encode(o).finish())}g8.makeMultisignedTxBytes=j1n});var CNe=ir(Ate=>{"use strict";J();K();z();Object.defineProperty(Ate,"__esModule",{value:!0});Ate.isSearchTxQueryArray=void 0;function egn(e){return Array.isArray(e)}Ate.isSearchTxQueryArray=egn});var lbt=ir(WE=>{"use strict";J();K();z();Object.defineProperty(WE,"__esModule",{value:!0});WE.pubkeyToAddress=WE.pubkeyToRawAddress=WE.rawSecp256k1PubkeyToRawAddress=WE.rawEd25519PubkeyToRawAddress=void 0;var wNe=$l(),tgn=Ps();function ubt(e){if(e.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${e.length}`);return(0,wNe.sha256)(e).slice(0,20)}WE.rawEd25519PubkeyToRawAddress=ubt;function dbt(e){if(e.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`);return(0,wNe.ripemd160)((0,wNe.sha256)(e))}WE.rawSecp256k1PubkeyToRawAddress=dbt;function fbt(e,t){switch(e){case"ed25519":return ubt(t);case"secp256k1":return dbt(t);default:throw new Error(`Pubkey type ${e} not supported`)}}WE.pubkeyToRawAddress=fbt;function rgn(e,t){return(0,tgn.toHex)(fbt(e,t)).toUpperCase()}WE.pubkeyToAddress=rgn});var IQ=ir(H2=>{"use strict";J();K();z();Object.defineProperty(H2,"__esModule",{value:!0});H2.DateTime=H2.toSeconds=H2.fromSeconds=H2.toRfc3339WithNanoseconds=H2.fromRfc3339WithNanoseconds=void 0;var ngn=Ps(),ign=Uh();function hbt(e){let t=(0,ngn.fromRfc3339)(e),r=e.match(/\.(\d+)Z$/),i=r?r[1].slice(3):"";return t.nanoseconds=parseInt(i.padEnd(6,"0"),10),t}H2.fromRfc3339WithNanoseconds=hbt;function Abt(e){let t=e.toISOString(),r=e.nanoseconds?.toString()??"";return`${t.slice(0,-1)}${r.padStart(6,"0")}Z`}H2.toRfc3339WithNanoseconds=Abt;function ogn(e,t=0){let r=new ign.Uint32(t).toNumber();if(r>999999999)throw new Error("Nano seconds must not exceed 999999999");let i=new Date(e*1e3+Math.floor(r/1e6));return i.nanoseconds=r%1e6,i}H2.fromSeconds=ogn;function agn(e){return{seconds:Math.floor(e.getTime()/1e3),nanos:e.getTime()%1e3*1e6+(e.nanoseconds??0)}}H2.toSeconds=agn;var ONe=class{static decode(t){return hbt(t)}static encode(t){return Abt(t)}};H2.DateTime=ONe});var T5=ir(pte=>{"use strict";J();K();z();Object.defineProperty(pte,"__esModule",{value:!0});pte.createJsonRpcRequest=void 0;var pbt="123456789";function sgn(){return pbt[Math.floor(Math.random()*pbt.length)]}function cgn(){return parseInt(Array.from({length:12}).map(()=>sgn()).join(""),10)}function ugn(e,t){let r=t?{...t}:{};return{jsonrpc:"2.0",id:cgn(),method:e,params:r}}pte.createJsonRpcRequest=ugn});var gbt=ir(gte=>{"use strict";J();K();z();Object.defineProperty(gte,"__esModule",{value:!0});gte.makeJsonRpcId=void 0;var dgn=1e4;function fgn(){return dgn+=1}gte.makeJsonRpcId=fgn});var _bt=ir(NNe=>{"use strict";J();K();z();Object.defineProperty(NNe,"__esModule",{value:!0});NNe.default=lgn;function lgn(e){var t,r=e.Symbol;if(typeof r=="function")if(r.observable)t=r.observable;else{t=r.for("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch{}}else t="@@observable";return t}});var ybt=ir((Bbo,mbt)=>{"use strict";J();K();z();mbt.exports=_bt()});var xNe=ir((Pbo,Ebt)=>{"use strict";J();K();z();var bbt=Object.prototype.toString;Ebt.exports=function(t){var r=bbt.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&bbt.call(t.callee)==="[object Function]"),i}});var xbt=ir((Qbo,Nbt)=>{"use strict";J();K();z();var Obt;Object.keys||(CQ=Object.prototype.hasOwnProperty,TNe=Object.prototype.toString,vbt=xNe(),BNe=Object.prototype.propertyIsEnumerable,Rbt=!BNe.call({toString:null},"toString"),Sbt=BNe.call(function(){},"prototype"),wQ=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_te=function(e){var t=e.constructor;return t&&t.prototype===e},Ibt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Cbt=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Ibt["$"+e]&&CQ.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{_te(window[e])}catch{return!0}}catch{return!0}return!1})(),wbt=function(e){if(typeof window>"u"||!Cbt)return _te(e);try{return _te(e)}catch{return!1}},Obt=function(t){var r=t!==null&&typeof t=="object",i=TNe.call(t)==="[object Function]",n=vbt(t),o=r&&TNe.call(t)==="[object String]",d=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var g=Sbt&&i;if(o&&t.length>0&&!CQ.call(t,0))for(var y=0;y<t.length;++y)d.push(String(y));if(n&&t.length>0)for(var _=0;_<t.length;++_)d.push(String(_));else for(var I in t)!(g&&I==="prototype")&&CQ.call(t,I)&&d.push(String(I));if(Rbt)for(var N=wbt(t),T=0;T<wQ.length;++T)!(N&&wQ[T]==="constructor")&&CQ.call(t,wQ[T])&&d.push(wQ[T]);return d});var CQ,TNe,vbt,BNe,Rbt,Sbt,wQ,_te,Ibt,Cbt,wbt;Nbt.exports=Obt});var Dbt=ir((Vbo,Mbt)=>{"use strict";J();K();z();var hgn=Array.prototype.slice,Agn=xNe(),Tbt=Object.keys,mte=Tbt?function(t){return Tbt(t)}:xbt(),Bbt=Object.keys;mte.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return Agn(i)?Bbt(hgn.call(i)):Bbt(i)})}else Object.keys=mte;return Object.keys||mte};Mbt.exports=mte});var Pbt=ir(($bo,kbt)=>{"use strict";J();K();z();var yte=Object.defineProperty||!1;if(yte)try{yte({},"a",{value:1})}catch{yte=!1}kbt.exports=yte});var Fbt=ir((Zbo,Ubt)=>{"use strict";J();K();z();var MNe=Pbt(),Lbt=function(){return!!MNe};Lbt.hasArrayLengthDefineBug=function(){if(!MNe)return null;try{return MNe([],"length",{value:1}).length!==1}catch{return!0}};Ubt.exports=Lbt});var DNe=ir((rEo,qbt)=>{"use strict";J();K();z();var pgn=Dbt(),ggn=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",_gn=Object.prototype.toString,mgn=Array.prototype.concat,Qbt=Object.defineProperty,ygn=function(e){return typeof e=="function"&&_gn.call(e)==="[object Function]"},bgn=Fbt()(),Hbt=Qbt&&bgn,Egn=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!ygn(i)||!i())return}Hbt?Qbt(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},Gbt=function(e,t){var r=arguments.length>2?arguments[2]:{},i=pgn(t);ggn&&(i=mgn.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n<i.length;n+=1)Egn(e,i[n],t[i[n]],r[i[n]])};Gbt.supportsDescriptors=!!Hbt;qbt.exports=Gbt});var kNe=ir((aEo,bte)=>{"use strict";J();K();z();typeof self<"u"?bte.exports=self:typeof window<"u"?bte.exports=window:bte.exports=Function("return this")()});var PNe=ir((dEo,Vbt)=>{"use strict";J();K();z();var vgn=kNe();Vbt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?vgn:global}});var zbt=ir((AEo,Jbt)=>{"use strict";J();K();z();var Rgn=DNe(),Sgn=PNe();Jbt.exports=function(){var t=Sgn();if(Rgn.supportsDescriptors){var r=Object.getOwnPropertyDescriptor(t,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else(typeof globalThis!="object"||globalThis!==t)&&(t.globalThis=t);return t}});var Wbt=ir((mEo,Ybt)=>{"use strict";J();K();z();var Ign=DNe(),Cgn=kNe(),Kbt=PNe(),wgn=zbt(),Ogn=Kbt(),$bt=function(){return Ogn};Ign($bt,{getPolyfill:Kbt,implementation:Cgn,shim:wgn});Ybt.exports=$bt});var m8=ir(Eg=>{"use strict";J();K();z();var Ngn=Eg&&Eg.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o])},e(t,r)};return function(t,r){e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.NO_IL=Eg.NO=Eg.MemoryStream=Eg.Stream=void 0;var xgn=ybt(),Tgn=Wbt(),Ete=xgn.default(Tgn.getPolyfill()),Wn={};Eg.NO=Wn;function mA(){}function vte(e){for(var t=e.length,r=Array(t),i=0;i<t;++i)r[i]=e[i];return r}function Bgn(e,t){return function(i){return e(i)&&t(i)}}function UNe(e,t,r){try{return e.f(t)}catch(i){return r._e(i),Wn}}var B5={_n:mA,_e:mA,_c:mA};Eg.NO_IL=B5;function Xbt(e){e._start=function(r){r.next=r._n,r.error=r._e,r.complete=r._c,this.start(r)},e._stop=e.stop}var Mgn=(function(){function e(t,r){this._stream=t,this._listener=r}return e.prototype.unsubscribe=function(){this._stream._remove(this._listener)},e})(),Dgn=(function(){function e(t){this._listener=t}return e.prototype.next=function(t){this._listener._n(t)},e.prototype.error=function(t){this._listener._e(t)},e.prototype.complete=function(){this._listener._c()},e})(),kgn=(function(){function e(t){this.type="fromObservable",this.ins=t,this.active=!1}return e.prototype._start=function(t){this.out=t,this.active=!0,this._sub=this.ins.subscribe(new Dgn(t)),this.active||this._sub.unsubscribe()},e.prototype._stop=function(){this._sub&&this._sub.unsubscribe(),this.active=!1},e})(),Pgn=(function(){function e(t){this.type="merge",this.insArr=t,this.out=Wn,this.ac=0}return e.prototype._start=function(t){this.out=t;var r=this.insArr,i=r.length;this.ac=i;for(var n=0;n<i;n++)r[n]._add(this)},e.prototype._stop=function(){for(var t=this.insArr,r=t.length,i=0;i<r;i++)t[i]._remove(this);this.out=Wn},e.prototype._n=function(t){var r=this.out;r!==Wn&&r._n(t)},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){if(--this.ac<=0){var t=this.out;if(t===Wn)return;t._c()}},e})(),Lgn=(function(){function e(t,r,i){this.i=t,this.out=r,this.p=i,i.ils.push(this)}return e.prototype._n=function(t){var r=this.p,i=this.out;if(i!==Wn&&r.up(t,this.i)){var n=vte(r.vals);i._n(n)}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.p;t.out!==Wn&&--t.Nc===0&&t.out._c()},e})(),Ugn=(function(){function e(t){this.type="combine",this.insArr=t,this.out=Wn,this.ils=[],this.Nc=this.Nn=0,this.vals=[]}return e.prototype.up=function(t,r){var i=this.vals[r],n=this.Nn?i===Wn?--this.Nn:this.Nn:0;return this.vals[r]=t,n===0},e.prototype._start=function(t){this.out=t;var r=this.insArr,i=this.Nc=this.Nn=r.length,n=this.vals=new Array(i);if(i===0)t._n([]),t._c();else for(var o=0;o<i;o++)n[o]=Wn,r[o]._add(new Lgn(o,t,this))},e.prototype._stop=function(){for(var t=this.insArr,r=t.length,i=this.ils,n=0;n<r;n++)t[n]._remove(i[n]);this.out=Wn,this.ils=[],this.vals=[]},e})(),Fgn=(function(){function e(t){this.type="fromArray",this.a=t}return e.prototype._start=function(t){for(var r=this.a,i=0,n=r.length;i<n;i++)t._n(r[i]);t._c()},e.prototype._stop=function(){},e})(),Qgn=(function(){function e(t){this.type="fromPromise",this.on=!1,this.p=t}return e.prototype._start=function(t){var r=this;this.on=!0,this.p.then(function(i){r.on&&(t._n(i),t._c())},function(i){t._e(i)}).then(mA,function(i){setTimeout(function(){throw i})})},e.prototype._stop=function(){this.on=!1},e})(),Hgn=(function(){function e(t){this.type="periodic",this.period=t,this.intervalID=-1,this.i=0}return e.prototype._start=function(t){var r=this;function i(){t._n(r.i++)}this.intervalID=setInterval(i,this.period)},e.prototype._stop=function(){this.intervalID!==-1&&clearInterval(this.intervalID),this.intervalID=-1,this.i=0},e})(),Ggn=(function(){function e(t,r){this.type="debug",this.ins=t,this.out=Wn,this.s=mA,this.l="",typeof r=="string"?this.l=r:typeof r=="function"&&(this.s=r)}return e.prototype._start=function(t){this.out=t,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn},e.prototype._n=function(t){var r=this.out;if(r!==Wn){var i=this.s,n=this.l;if(i!==mA)try{i(t)}catch(o){r._e(o)}else n?console.log(n+":",t):console.log(t);r._n(t)}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),qgn=(function(){function e(t,r){this.type="drop",this.ins=r,this.out=Wn,this.max=t,this.dropped=0}return e.prototype._start=function(t){this.out=t,this.dropped=0,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn},e.prototype._n=function(t){var r=this.out;r!==Wn&&this.dropped++>=this.max&&r._n(t)},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),Vgn=(function(){function e(t,r){this.out=t,this.op=r}return e.prototype._n=function(){this.op.end()},e.prototype._e=function(t){this.out._e(t)},e.prototype._c=function(){this.op.end()},e})(),Jgn=(function(){function e(t,r){this.type="endWhen",this.ins=r,this.out=Wn,this.o=t,this.oil=B5}return e.prototype._start=function(t){this.out=t,this.o._add(this.oil=new Vgn(t,this)),this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=Wn,this.oil=B5},e.prototype.end=function(){var t=this.out;t!==Wn&&t._c()},e.prototype._n=function(t){var r=this.out;r!==Wn&&r._n(t)},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){this.end()},e})(),LNe=(function(){function e(t,r){this.type="filter",this.ins=r,this.out=Wn,this.f=t}return e.prototype._start=function(t){this.out=t,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn},e.prototype._n=function(t){var r=this.out;if(r!==Wn){var i=UNe(this,t,r);i===Wn||!i||r._n(t)}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),zgn=(function(){function e(t,r){this.out=t,this.op=r}return e.prototype._n=function(t){this.out._n(t)},e.prototype._e=function(t){this.out._e(t)},e.prototype._c=function(){this.op.inner=Wn,this.op.less()},e})(),Kgn=(function(){function e(t){this.type="flatten",this.ins=t,this.out=Wn,this.open=!0,this.inner=Wn,this.il=B5}return e.prototype._start=function(t){this.out=t,this.open=!0,this.inner=Wn,this.il=B5,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.inner!==Wn&&this.inner._remove(this.il),this.out=Wn,this.open=!0,this.inner=Wn,this.il=B5},e.prototype.less=function(){var t=this.out;t!==Wn&&!this.open&&this.inner===Wn&&t._c()},e.prototype._n=function(t){var r=this.out;if(r!==Wn){var i=this,n=i.inner,o=i.il;n!==Wn&&o!==B5&&n._remove(o),(this.inner=t)._add(this.il=new zgn(r,this))}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){this.open=!1,this.less()},e})(),$gn=(function(){function e(t,r,i){var n=this;this.type="fold",this.ins=i,this.out=Wn,this.f=function(o){return t(n.acc,o)},this.acc=this.seed=r}return e.prototype._start=function(t){this.out=t,this.acc=this.seed,t._n(this.acc),this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn,this.acc=this.seed},e.prototype._n=function(t){var r=this.out;if(r!==Wn){var i=UNe(this,t,r);i!==Wn&&r._n(this.acc=i)}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),Ygn=(function(){function e(t){this.type="last",this.ins=t,this.out=Wn,this.has=!1,this.val=Wn}return e.prototype._start=function(t){this.out=t,this.has=!1,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn,this.val=Wn},e.prototype._n=function(t){this.has=!0,this.val=t},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&(this.has?(t._n(this.val),t._c()):t._e(new Error("last() failed because input stream completed")))},e})(),Wgn=(function(){function e(t,r){this.type="map",this.ins=r,this.out=Wn,this.f=t}return e.prototype._start=function(t){this.out=t,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn},e.prototype._n=function(t){var r=this.out;if(r!==Wn){var i=UNe(this,t,r);i!==Wn&&r._n(i)}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),Xgn=(function(){function e(t){this.type="remember",this.ins=t,this.out=Wn}return e.prototype._start=function(t){this.out=t,this.ins._add(t)},e.prototype._stop=function(){this.ins._remove(this.out),this.out=Wn},e})(),Zgn=(function(){function e(t,r){this.type="replaceError",this.ins=r,this.out=Wn,this.f=t}return e.prototype._start=function(t){this.out=t,this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn},e.prototype._n=function(t){var r=this.out;r!==Wn&&r._n(t)},e.prototype._e=function(t){var r=this.out;if(r!==Wn)try{this.ins._remove(this),(this.ins=this.f(t))._add(this)}catch(i){r._e(i)}},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),jgn=(function(){function e(t,r){this.type="startWith",this.ins=t,this.out=Wn,this.val=r}return e.prototype._start=function(t){this.out=t,this.out._n(this.val),this.ins._add(t)},e.prototype._stop=function(){this.ins._remove(this.out),this.out=Wn},e})(),e_n=(function(){function e(t,r){this.type="take",this.ins=r,this.out=Wn,this.max=t,this.taken=0}return e.prototype._start=function(t){this.out=t,this.taken=0,this.max<=0?t._c():this.ins._add(this)},e.prototype._stop=function(){this.ins._remove(this),this.out=Wn},e.prototype._n=function(t){var r=this.out;if(r!==Wn){var i=++this.taken;i<this.max?r._n(t):i===this.max&&(r._n(t),r._c())}},e.prototype._e=function(t){var r=this.out;r!==Wn&&r._e(t)},e.prototype._c=function(){var t=this.out;t!==Wn&&t._c()},e})(),FNe=(function(){function e(t){this._prod=t||Wn,this._ils=[],this._stopID=Wn,this._dl=Wn,this._d=!1,this._target=null,this._err=Wn}return e.prototype._n=function(t){var r=this._ils,i=r.length;if(this._d&&this._dl._n(t),i==1)r[0]._n(t);else{if(i==0)return;for(var n=vte(r),o=0;o<i;o++)n[o]._n(t)}},e.prototype._e=function(t){if(this._err===Wn){this._err=t;var r=this._ils,i=r.length;if(this._x(),this._d&&this._dl._e(t),i==1)r[0]._e(t);else{if(i==0)return;for(var n=vte(r),o=0;o<i;o++)n[o]._e(t)}if(!this._d&&i==0)throw this._err}},e.prototype._c=function(){var t=this._ils,r=t.length;if(this._x(),this._d&&this._dl._c(),r==1)t[0]._c();else{if(r==0)return;for(var i=vte(t),n=0;n<r;n++)i[n]._c()}},e.prototype._x=function(){this._ils.length!==0&&(this._prod!==Wn&&this._prod._stop(),this._err=Wn,this._ils=[])},e.prototype._stopNow=function(){this._prod._stop(),this._err=Wn,this._stopID=Wn},e.prototype._add=function(t){var r=this._target;if(r)return r._add(t);var i=this._ils;if(i.push(t),!(i.length>1))if(this._stopID!==Wn)clearTimeout(this._stopID),this._stopID=Wn;else{var n=this._prod;n!==Wn&&n._start(this)}},e.prototype._remove=function(t){var r=this,i=this._target;if(i)return i._remove(t);var n=this._ils,o=n.indexOf(t);o>-1&&(n.splice(o,1),this._prod!==Wn&&n.length<=0?(this._err=Wn,this._stopID=setTimeout(function(){return r._stopNow()})):n.length===1&&this._pruneCycles())},e.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},e.prototype._hasNoSinks=function(t,r){if(r.indexOf(t)!==-1)return!0;if(t.out===this)return!0;if(t.out&&t.out!==Wn)return this._hasNoSinks(t.out,r.concat(t));if(t._ils){for(var i=0,n=t._ils.length;i<n;i++)if(!this._hasNoSinks(t._ils[i],r.concat(t)))return!1;return!0}else return!1},e.prototype.ctor=function(){return this instanceof _8?_8:e},e.prototype.addListener=function(t){t._n=t.next||mA,t._e=t.error||mA,t._c=t.complete||mA,this._add(t)},e.prototype.removeListener=function(t){this._remove(t)},e.prototype.subscribe=function(t){return this.addListener(t),new Mgn(this,t)},e.prototype[Ete]=function(){return this},e.create=function(t){if(t){if(typeof t.start!="function"||typeof t.stop!="function")throw new Error("producer requires both start and stop functions");Xbt(t)}return new e(t)},e.createWithMemory=function(t){return t&&Xbt(t),new _8(t)},e.never=function(){return new e({_start:mA,_stop:mA})},e.empty=function(){return new e({_start:function(t){t._c()},_stop:mA})},e.throw=function(t){return new e({_start:function(r){r._e(t)},_stop:mA})},e.from=function(t){if(typeof t[Ete]=="function")return e.fromObservable(t);if(typeof t.then=="function")return e.fromPromise(t);if(Array.isArray(t))return e.fromArray(t);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable")},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.fromArray(t)},e.fromArray=function(t){return new e(new Fgn(t))},e.fromPromise=function(t){return new e(new Qgn(t))},e.fromObservable=function(t){if(t.endWhen!==void 0)return t;var r=typeof t[Ete]=="function"?t[Ete]():t;return new e(new kgn(r))},e.periodic=function(t){return new e(new Hgn(t))},e.prototype._map=function(t){return new(this.ctor())(new Wgn(t,this))},e.prototype.map=function(t){return this._map(t)},e.prototype.mapTo=function(t){var r=this.map(function(){return t}),i=r._prod;return i.type="mapTo",r},e.prototype.filter=function(t){var r=this._prod;return r instanceof LNe?new e(new LNe(Bgn(r.f,t),r.ins)):new e(new LNe(t,this))},e.prototype.take=function(t){return new(this.ctor())(new e_n(t,this))},e.prototype.drop=function(t){return new e(new qgn(t,this))},e.prototype.last=function(){return new e(new Ygn(this))},e.prototype.startWith=function(t){return new _8(new jgn(this,t))},e.prototype.endWhen=function(t){return new(this.ctor())(new Jgn(t,this))},e.prototype.fold=function(t,r){return new _8(new $gn(t,r,this))},e.prototype.replaceError=function(t){return new(this.ctor())(new Zgn(t,this))},e.prototype.flatten=function(){return new e(new Kgn(this))},e.prototype.compose=function(t){return t(this)},e.prototype.remember=function(){return new _8(new Xgn(this))},e.prototype.debug=function(t){return new(this.ctor())(new Ggn(this,t))},e.prototype.imitate=function(t){if(t instanceof _8)throw new Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=t;for(var r=this._ils,i=r.length,n=0;n<i;n++)t._add(r[n]);this._ils=[]},e.prototype.shamefullySendNext=function(t){this._n(t)},e.prototype.shamefullySendError=function(t){this._e(t)},e.prototype.shamefullySendComplete=function(){this._c()},e.prototype.setDebugListener=function(t){t?(this._d=!0,t._n=t.next||mA,t._e=t.error||mA,t._c=t.complete||mA,this._dl=t):(this._d=!1,this._dl=Wn)},e.merge=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new e(new Pgn(r))},e.combine=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new e(new Ugn(r))},e})();Eg.Stream=FNe;var _8=(function(e){Ngn(t,e);function t(r){var i=e.call(this,r)||this;return i._has=!1,i}return t.prototype._n=function(r){this._v=r,this._has=!0,e.prototype._n.call(this,r)},t.prototype._add=function(r){var i=this._target;if(i)return i._add(r);var n=this._ils;if(n.push(r),n.length>1){this._has&&r._n(this._v);return}if(this._stopID!==Wn)this._has&&r._n(this._v),clearTimeout(this._stopID),this._stopID=Wn;else if(this._has)r._n(this._v);else{var o=this._prod;o!==Wn&&o._start(this)}},t.prototype._stopNow=function(){this._has=!1,e.prototype._stopNow.call(this)},t.prototype._x=function(){this._has=!1,e.prototype._x.call(this)},t.prototype.map=function(r){return this._map(r)},t.prototype.mapTo=function(r){return e.prototype.mapTo.call(this,r)},t.prototype.take=function(r){return e.prototype.take.call(this,r)},t.prototype.endWhen=function(r){return e.prototype.endWhen.call(this,r)},t.prototype.replaceError=function(r){return e.prototype.replaceError.call(this,r)},t.prototype.remember=function(){return this},t.prototype.debug=function(r){return e.prototype.debug.call(this,r)},t})(FNe);Eg.MemoryStream=_8;var t_n=FNe;Eg.default=t_n});var Zbt=ir(Rte=>{"use strict";J();K();z();Object.defineProperty(Rte,"__esModule",{value:!0});Rte.concat=void 0;var r_n=m8();function n_n(...e){let t=new Array,r=new Array,i=new Set,n=0;function o(){for(;t.length>0;)t.shift().unsubscribe();r.length=0,i.clear(),n=0}let d={start:g=>{e.forEach(I=>r.push([]));function y(I){for(;;){let N=r[I].shift();if(N===void 0)return;g.next(N)}}function _(){return n>=e.length}if(_()){g.complete();return}e.forEach((I,N)=>{t.push(I.subscribe({next:T=>{N===n?g.next(T):r[N].push(T)},complete:()=>{for(i.add(N);i.has(n);)y(n),n++;_()?g.complete():y(n)},error:T=>{g.error(T),o()}}))})},stop:()=>{o()}};return r_n.Stream.create(d)}Rte.concat=n_n});var jbt=ir(Ste=>{"use strict";J();K();z();Object.defineProperty(Ste,"__esModule",{value:!0});Ste.DefaultValueProducer=void 0;var QNe=class{get value(){return this.internalValue}constructor(t,r){this.callbacks=r,this.internalValue=t}update(t){this.internalValue=t,this.listener&&this.listener.next(t)}error(t){this.listener&&this.listener.error(t)}start(t){this.listener=t,t.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}};Ste.DefaultValueProducer=QNe});var eEt=ir(Ite=>{"use strict";J();K();z();Object.defineProperty(Ite,"__esModule",{value:!0});Ite.dropDuplicates=void 0;function i_n(e){return r=>{let i=new Set;return r.filter(o=>!i.has(e(o))).debug(o=>i.add(e(o)))}}Ite.dropDuplicates=i_n});var rEt=ir(y8=>{"use strict";J();K();z();Object.defineProperty(y8,"__esModule",{value:!0});y8.firstEvent=y8.toListPromise=y8.fromListPromise=void 0;var o_n=m8();function a_n(e){let t={start:r=>{e.then(i=>{for(let n of i)r.next(n);r.complete()}).catch(i=>r.error(i))},stop:()=>{}};return o_n.Stream.create(t)}y8.fromListPromise=a_n;async function tEt(e,t){return new Promise((r,i)=>{if(t===0){r([]);return}let n=new Array;e.take(t).subscribe({next:o=>{n.push(o),n.length===t&&r(n)},complete:()=>{i(`Stream completed before all events could be collected. Collected ${n.length}, expected ${t}`)},error:o=>i(o)})})}y8.toListPromise=tEt;async function s_n(e){return(await tEt(e,1))[0]}y8.firstEvent=s_n});var nEt=ir(XE=>{"use strict";J();K();z();Object.defineProperty(XE,"__esModule",{value:!0});XE.lastValue=XE.asArray=XE.countStream=XE.Reducer=void 0;var U9=class{constructor(t,r,i){this.stream=t,this.reducer=r,this.state=i,this.completed=new Promise((n,o)=>{let d=this.stream.subscribe({next:g=>{this.state=this.reducer(this.state,g)},complete:()=>{n(),d.unsubscribe()},error:g=>{o(g),d.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}};XE.Reducer=U9;function c_n(e,t){return e+1}function u_n(e){return new U9(e,c_n,0)}XE.countStream=u_n;function d_n(e,t){return[...e,t]}function f_n(e){return new U9(e,d_n,[])}XE.asArray=f_n;function l_n(e,t){return t}function h_n(e){return new U9(e,l_n,void 0)}XE.lastValue=h_n});var iEt=ir(Cte=>{"use strict";J();K();z();Object.defineProperty(Cte,"__esModule",{value:!0});Cte.ValueAndUpdates=void 0;var A_n=m8(),HNe=class{get value(){return this.producer.value}constructor(t){this.producer=t,this.updates=A_n.MemoryStream.createWithMemory(this.producer)}async waitFor(t){let r=typeof t=="function"?t:i=>i===t;return new Promise((i,n)=>{let o=this.updates.subscribe({next:d=>{r(d)&&(i(d),setTimeout(()=>o.unsubscribe(),0))},complete:()=>{o.unsubscribe(),n("Update stream completed without expected value")},error:d=>{n(d)}})})}};Cte.ValueAndUpdates=HNe});var wte=ir(Zd=>{"use strict";J();K();z();var p_n=Zd&&Zd.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),g_n=Zd&&Zd.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&p_n(t,e,r)};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.ValueAndUpdates=Zd.toListPromise=Zd.fromListPromise=Zd.firstEvent=Zd.dropDuplicates=Zd.DefaultValueProducer=Zd.concat=void 0;var __n=Zbt();Object.defineProperty(Zd,"concat",{enumerable:!0,get:function(){return __n.concat}});var m_n=jbt();Object.defineProperty(Zd,"DefaultValueProducer",{enumerable:!0,get:function(){return m_n.DefaultValueProducer}});var y_n=eEt();Object.defineProperty(Zd,"dropDuplicates",{enumerable:!0,get:function(){return y_n.dropDuplicates}});var GNe=rEt();Object.defineProperty(Zd,"firstEvent",{enumerable:!0,get:function(){return GNe.firstEvent}});Object.defineProperty(Zd,"fromListPromise",{enumerable:!0,get:function(){return GNe.fromListPromise}});Object.defineProperty(Zd,"toListPromise",{enumerable:!0,get:function(){return GNe.toListPromise}});g_n(nEt(),Zd);var b_n=iEt();Object.defineProperty(Zd,"ValueAndUpdates",{enumerable:!0,get:function(){return b_n.ValueAndUpdates}})});var qNe=ir(b8=>{"use strict";J();K();z();Object.defineProperty(b8,"__esModule",{value:!0});b8.jsonRpcCode=b8.isJsonRpcSuccessResponse=b8.isJsonRpcErrorResponse=void 0;function oEt(e){return typeof e.error=="object"}b8.isJsonRpcErrorResponse=oEt;function E_n(e){return!oEt(e)}b8.isJsonRpcSuccessResponse=E_n;b8.jsonRpcCode={parseError:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internalError:-32603,serverError:{default:-32e3}}});var aEt=ir(Ote=>{"use strict";J();K();z();Object.defineProperty(Ote,"__esModule",{value:!0});Ote.JsonRpcClient=void 0;var v_n=wte(),R_n=qNe(),VNe=class{constructor(t){this.connection=t}async run(t){let r=this.connection.responseStream.filter(o=>o.id===t.id),i=(0,v_n.firstEvent)(r);this.connection.sendRequest(t);let n=await i;if((0,R_n.isJsonRpcErrorResponse)(n)){let o=n.error;throw new Error(`JSON RPC error: code=${o.code}; message='${o.message}'`)}return n}};Ote.JsonRpcClient=VNe});var uEt=ir(E8=>{"use strict";J();K();z();Object.defineProperty(E8,"__esModule",{value:!0});E8.isJsonCompatibleDictionary=E8.isJsonCompatibleArray=E8.isJsonCompatibleValue=void 0;function JNe(e){return!!(typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||sEt(e)||cEt(e))}E8.isJsonCompatibleValue=JNe;function sEt(e){if(!Array.isArray(e))return!1;for(let t of e)if(!JNe(t))return!1;return!0}E8.isJsonCompatibleArray=sEt;function cEt(e){return typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]"?!1:Object.values(e).every(JNe)}E8.isJsonCompatibleDictionary=cEt});var hEt=ir(G2=>{"use strict";J();K();z();Object.defineProperty(G2,"__esModule",{value:!0});G2.parseJsonRpcResponse=G2.parseJsonRpcSuccessResponse=G2.parseJsonRpcErrorResponse=G2.parseJsonRpcRequest=G2.parseJsonRpcId=void 0;var v8=uEt();function dEt(e){if(!(0,v8.isJsonCompatibleDictionary)(e))throw new Error("Data must be JSON compatible dictionary");let t=e.id;return typeof t!="number"&&typeof t!="string"?null:t}G2.parseJsonRpcId=dEt;function S_n(e){if(!(0,v8.isJsonCompatibleDictionary)(e))throw new Error("Data must be JSON compatible dictionary");if(e.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${e.jsonrpc}`);let t=dEt(e);if(t===null)throw new Error("Invalid id field");let r=e.method;if(typeof r!="string")throw new Error("Invalid method field");if(!(0,v8.isJsonCompatibleArray)(e.params)&&!(0,v8.isJsonCompatibleDictionary)(e.params))throw new Error("Invalid params field");return{jsonrpc:"2.0",id:t,method:r,params:e.params}}G2.parseJsonRpcRequest=S_n;function I_n(e){if(typeof e.code!="number")throw new Error("Error property 'code' is not a number");if(typeof e.message!="string")throw new Error("Error property 'message' is not a string");let t;if(e.data===void 0)t=void 0;else if((0,v8.isJsonCompatibleValue)(e.data))t=e.data;else throw new Error("Error property 'data' is defined but not a JSON compatible value.");return{code:e.code,message:e.message,...t!==void 0?{data:t}:{}}}function fEt(e){if(!(0,v8.isJsonCompatibleDictionary)(e))throw new Error("Data must be JSON compatible dictionary");if(e.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(e)}`);let t=e.id;if(typeof t!="number"&&typeof t!="string"&&t!==null)throw new Error("Invalid id field");if(typeof e.error>"u"||!(0,v8.isJsonCompatibleDictionary)(e.error))throw new Error("Invalid error field");return{jsonrpc:"2.0",id:t,error:I_n(e.error)}}G2.parseJsonRpcErrorResponse=fEt;function lEt(e){if(!(0,v8.isJsonCompatibleDictionary)(e))throw new Error("Data must be JSON compatible dictionary");if(e.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(e)}`);let t=e.id;if(typeof t!="number"&&typeof t!="string")throw new Error("Invalid id field");if(typeof e.result>"u")throw new Error("Invalid result field");let r=e.result;return{jsonrpc:"2.0",id:t,result:r}}G2.parseJsonRpcSuccessResponse=lEt;function C_n(e){let t;try{t=fEt(e)}catch{t=lEt(e)}return t}G2.parseJsonRpcResponse=C_n});var Nte=ir(bd=>{"use strict";J();K();z();Object.defineProperty(bd,"__esModule",{value:!0});bd.jsonRpcCode=bd.isJsonRpcSuccessResponse=bd.isJsonRpcErrorResponse=bd.parseJsonRpcSuccessResponse=bd.parseJsonRpcResponse=bd.parseJsonRpcRequest=bd.parseJsonRpcId=bd.parseJsonRpcErrorResponse=bd.JsonRpcClient=bd.makeJsonRpcId=void 0;var w_n=gbt();Object.defineProperty(bd,"makeJsonRpcId",{enumerable:!0,get:function(){return w_n.makeJsonRpcId}});var O_n=aEt();Object.defineProperty(bd,"JsonRpcClient",{enumerable:!0,get:function(){return O_n.JsonRpcClient}});var OQ=hEt();Object.defineProperty(bd,"parseJsonRpcErrorResponse",{enumerable:!0,get:function(){return OQ.parseJsonRpcErrorResponse}});Object.defineProperty(bd,"parseJsonRpcId",{enumerable:!0,get:function(){return OQ.parseJsonRpcId}});Object.defineProperty(bd,"parseJsonRpcRequest",{enumerable:!0,get:function(){return OQ.parseJsonRpcRequest}});Object.defineProperty(bd,"parseJsonRpcResponse",{enumerable:!0,get:function(){return OQ.parseJsonRpcResponse}});Object.defineProperty(bd,"parseJsonRpcSuccessResponse",{enumerable:!0,get:function(){return OQ.parseJsonRpcSuccessResponse}});var zNe=qNe();Object.defineProperty(bd,"isJsonRpcErrorResponse",{enumerable:!0,get:function(){return zNe.isJsonRpcErrorResponse}});Object.defineProperty(bd,"isJsonRpcSuccessResponse",{enumerable:!0,get:function(){return zNe.isJsonRpcSuccessResponse}});Object.defineProperty(bd,"jsonRpcCode",{enumerable:!0,get:function(){return zNe.jsonRpcCode}})});var XEt=ir((bvo,WEt)=>{"use strict";J();K();z();function xEt(e,t){return function(){return e.apply(t,arguments)}}var{toString:N_n}=Object.prototype,{getPrototypeOf:Pte}=Object,{iterator:Lte,toStringTag:TEt}=Symbol,Ute=(e=>t=>{let r=N_n.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Oy=e=>(e=e.toLowerCase(),t=>Ute(t)===e),Fte=e=>t=>typeof t===e,{isArray:H9}=Array,Q9=Fte("undefined");function xQ(e){return e!==null&&!Q9(e)&&e.constructor!==null&&!Q9(e.constructor)&&_1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var BEt=Oy("ArrayBuffer");function x_n(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BEt(e.buffer),t}var T_n=Fte("string"),_1=Fte("function"),MEt=Fte("number"),TQ=e=>e!==null&&typeof e=="object",B_n=e=>e===!0||e===!1,Tte=e=>{if(Ute(e)!=="object")return!1;let t=Pte(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(TEt in e)&&!(Lte in e)},M_n=e=>{if(!TQ(e)||xQ(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},D_n=Oy("Date"),k_n=Oy("File"),P_n=e=>!!(e&&typeof e.uri<"u"),L_n=e=>e&&typeof e.getParts<"u",U_n=Oy("Blob"),F_n=Oy("FileList"),Q_n=e=>TQ(e)&&_1(e.pipe);function H_n(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var AEt=H_n(),pEt=typeof AEt.FormData<"u"?AEt.FormData:void 0,G_n=e=>{if(!e)return!1;if(pEt&&e instanceof pEt)return!0;let t=Pte(e);if(!t||t===Object.prototype||!_1(e.append))return!1;let r=Ute(e);return r==="formdata"||r==="object"&&_1(e.toString)&&e.toString()==="[object FormData]"},q_n=Oy("URLSearchParams"),[V_n,J_n,z_n,K_n]=["ReadableStream","Request","Response","Headers"].map(Oy),$_n=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function BQ(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),H9(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{if(xQ(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),d=o.length,g;for(i=0;i<d;i++)g=o[i],t.call(null,e[g],g,e)}}function DEt(e,t){if(xQ(e))return null;t=t.toLowerCase();let r=Object.keys(e),i=r.length,n;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}var M5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kEt=e=>!Q9(e)&&e!==M5;function XNe(){let{caseless:e,skipUndefined:t}=kEt(this)&&this||{},r={},i=(n,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;let d=e&&DEt(r,o)||o;Tte(r[d])&&Tte(n)?r[d]=XNe(r[d],n):Tte(n)?r[d]=XNe({},n):H9(n)?r[d]=n.slice():(!t||!Q9(n))&&(r[d]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&BQ(arguments[n],i);return r}var Y_n=(e,t,r,{allOwnKeys:i}={})=>(BQ(t,(n,o)=>{r&&_1(n)?Object.defineProperty(e,o,{value:xEt(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),W_n=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),X_n=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Z_n=(e,t,r,i)=>{let n,o,d,g={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)d=n[o],(!i||i(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=r!==!1&&Pte(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},j_n=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return i!==-1&&i===r},e2n=e=>{if(!e)return null;if(H9(e))return e;let t=e.length;if(!MEt(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},t2n=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pte(Uint8Array)),r2n=(e,t)=>{let i=(e&&e[Lte]).call(e),n;for(;(n=i.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},n2n=(e,t)=>{let r,i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},i2n=Oy("HTMLFormElement"),o2n=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,n){return i.toUpperCase()+n}),gEt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),a2n=Oy("RegExp"),PEt=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};BQ(r,(n,o)=>{let d;(d=t(n,o,e))!==!1&&(i[o]=d||n)}),Object.defineProperties(e,i)},s2n=e=>{PEt(e,(t,r)=>{if(_1(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let i=e[r];if(_1(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},c2n=(e,t)=>{let r={},i=n=>{n.forEach(o=>{r[o]=!0})};return H9(e)?i(e):i(String(e).split(t)),r},u2n=()=>{},d2n=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function f2n(e){return!!(e&&_1(e.append)&&e[TEt]==="FormData"&&e[Lte])}var l2n=e=>{let t=new Array(10),r=(i,n)=>{if(TQ(i)){if(t.indexOf(i)>=0)return;if(xQ(i))return i;if(!("toJSON"in i)){t[n]=i;let o=H9(i)?[]:{};return BQ(i,(d,g)=>{let y=r(d,n+1);!Q9(y)&&(o[g]=y)}),t[n]=void 0,o}}return i};return r(e,0)},h2n=Oy("AsyncFunction"),A2n=e=>e&&(TQ(e)||_1(e))&&_1(e.then)&&_1(e.catch),LEt=((e,t)=>e?setImmediate:t?((r,i)=>(M5.addEventListener("message",({source:n,data:o})=>{n===M5&&o===r&&i.length&&i.shift()()},!1),n=>{i.push(n),M5.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_1(M5.postMessage)),p2n=typeof queueMicrotask<"u"?queueMicrotask.bind(M5):typeof me<"u"&&me.nextTick||LEt,g2n=e=>e!=null&&_1(e[Lte]),cn={isArray:H9,isArrayBuffer:BEt,isBuffer:xQ,isFormData:G_n,isArrayBufferView:x_n,isString:T_n,isNumber:MEt,isBoolean:B_n,isObject:TQ,isPlainObject:Tte,isEmptyObject:M_n,isReadableStream:V_n,isRequest:J_n,isResponse:z_n,isHeaders:K_n,isUndefined:Q9,isDate:D_n,isFile:k_n,isReactNativeBlob:P_n,isReactNative:L_n,isBlob:U_n,isRegExp:a2n,isFunction:_1,isStream:Q_n,isURLSearchParams:q_n,isTypedArray:t2n,isFileList:F_n,forEach:BQ,merge:XNe,extend:Y_n,trim:$_n,stripBOM:W_n,inherits:X_n,toFlatObject:Z_n,kindOf:Ute,kindOfTest:Oy,endsWith:j_n,toArray:e2n,forEachEntry:r2n,matchAll:n2n,isHTMLForm:i2n,hasOwnProperty:gEt,hasOwnProp:gEt,reduceDescriptors:PEt,freezeMethods:s2n,toObjectSet:c2n,toCamelCase:o2n,noop:u2n,toFiniteNumber:d2n,findKey:DEt,global:M5,isContextDefined:kEt,isSpecCompliantForm:f2n,toJSONObject:l2n,isAsyncFn:h2n,isThenable:A2n,setImmediate:LEt,asap:p2n,isIterable:g2n},Bo=class e extends Error{static from(t,r,i,n,o,d){let g=new e(t.message,r||t.code,i,n,o);return g.cause=t,g.name=t.name,t.status!=null&&g.status==null&&(g.status=t.status),d&&Object.assign(g,d),g}constructor(t,r,i,n,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:cn.toJSONObject(this.config),code:this.code,status:this.status}}};Bo.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Bo.ERR_BAD_OPTION="ERR_BAD_OPTION";Bo.ECONNABORTED="ECONNABORTED";Bo.ETIMEDOUT="ETIMEDOUT";Bo.ERR_NETWORK="ERR_NETWORK";Bo.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Bo.ERR_DEPRECATED="ERR_DEPRECATED";Bo.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Bo.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Bo.ERR_CANCELED="ERR_CANCELED";Bo.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Bo.ERR_INVALID_URL="ERR_INVALID_URL";Bo.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var _2n=null;function ZNe(e){return cn.isPlainObject(e)||cn.isArray(e)}function UEt(e){return cn.endsWith(e,"[]")?e.slice(0,-2):e}function KNe(e,t,r){return e?e.concat(t).map(function(n,o){return n=UEt(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function m2n(e){return cn.isArray(e)&&!e.some(ZNe)}var y2n=cn.toFlatObject(cn,{},null,function(t){return/^is[A-Z]/.test(t)});function Qte(e,t,r){if(!cn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=cn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(G,q){return!cn.isUndefined(q[G])});let i=r.metaTokens,n=r.visitor||N,o=r.dots,d=r.indexes,g=r.Blob||typeof Blob<"u"&&Blob,y=r.maxDepth===void 0?100:r.maxDepth,_=g&&cn.isSpecCompliantForm(t);if(!cn.isFunction(n))throw new TypeError("visitor must be a function");function I(P){if(P===null)return"";if(cn.isDate(P))return P.toISOString();if(cn.isBoolean(P))return P.toString();if(!_&&cn.isBlob(P))throw new Bo("Blob is not supported. Use a Buffer instead.");return cn.isArrayBuffer(P)||cn.isTypedArray(P)?_&&typeof Blob=="function"?new Blob([P]):fe.from(P):P}function N(P,G,q){let Y=P;if(cn.isReactNative(t)&&cn.isReactNativeBlob(P))return t.append(KNe(q,G,o),I(P)),!1;if(P&&!q&&typeof P=="object"){if(cn.endsWith(G,"{}"))G=i?G:G.slice(0,-2),P=JSON.stringify(P);else if(cn.isArray(P)&&m2n(P)||(cn.isFileList(P)||cn.endsWith(G,"[]"))&&(Y=cn.toArray(P)))return G=UEt(G),Y.forEach(function(ce,le){!(cn.isUndefined(ce)||ce===null)&&t.append(d===!0?KNe([G],le,o):d===null?G:G+"[]",I(ce))}),!1}return ZNe(P)?!0:(t.append(KNe(q,G,o),I(P)),!1)}let T=[],M=Object.assign(y2n,{defaultVisitor:N,convertValue:I,isVisitable:ZNe});function D(P,G,q=0){if(!cn.isUndefined(P)){if(q>y)throw new Bo("Object is too deeply nested ("+q+" levels). Max depth: "+y,Bo.ERR_FORM_DATA_DEPTH_EXCEEDED);if(T.indexOf(P)!==-1)throw Error("Circular reference detected in "+G.join("."));T.push(P),cn.forEach(P,function(ne,ce){(!(cn.isUndefined(ne)||ne===null)&&n.call(t,ne,cn.isString(ce)?ce.trim():ce,G,M))===!0&&D(ne,G?G.concat(ce):[ce],q+1)}),T.pop()}}if(!cn.isObject(e))throw new TypeError("data must be an object");return D(e),t}function _Et(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(i){return t[i]})}function rxe(e,t){this._pairs=[],e&&Qte(e,this,t)}var FEt=rxe.prototype;FEt.append=function(t,r){this._pairs.push([t,r])};FEt.toString=function(t){let r=t?function(i){return t.call(this,i,_Et)}:_Et;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function b2n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function QEt(e,t,r){if(!t)return e;let i=r&&r.encode||b2n,n=cn.isFunction(r)?{serialize:r}:r,o=n&&n.serialize,d;if(o?d=o(t,n):d=cn.isURLSearchParams(t)?t.toString():new rxe(t,n).toString(i),d){let g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}var Dte=class{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){cn.forEach(this.handlers,function(i){i!==null&&t(i)})}},nxe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},E2n=typeof URLSearchParams<"u"?URLSearchParams:rxe,v2n=typeof FormData<"u"?FormData:null,R2n=typeof Blob<"u"?Blob:null,S2n={isBrowser:!0,classes:{URLSearchParams:E2n,FormData:v2n,Blob:R2n},protocols:["http","https","file","blob","url","data"]},ixe=typeof window<"u"&&typeof document<"u",jNe=typeof navigator=="object"&&navigator||void 0,I2n=ixe&&(!jNe||["ReactNative","NativeScript","NS"].indexOf(jNe.product)<0),C2n=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",w2n=ixe&&window.location.href||"http://localhost",O2n=Object.freeze({__proto__:null,hasBrowserEnv:ixe,hasStandardBrowserEnv:I2n,hasStandardBrowserWebWorkerEnv:C2n,navigator:jNe,origin:w2n}),yA={...O2n,...S2n};function N2n(e,t){return Qte(e,new yA.classes.URLSearchParams,{visitor:function(r,i,n,o){return yA.isNode&&cn.isBuffer(r)?(this.append(i,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function x2n(e){return cn.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T2n(e){let t={},r=Object.keys(e),i,n=r.length,o;for(i=0;i<n;i++)o=r[i],t[o]=e[o];return t}function HEt(e){function t(r,i,n,o){let d=r[o++];if(d==="__proto__")return!0;let g=Number.isFinite(+d),y=o>=r.length;return d=!d&&cn.isArray(n)?n.length:d,y?(cn.hasOwnProp(n,d)?n[d]=cn.isArray(n[d])?n[d].concat(i):[n[d],i]:n[d]=i,!g):((!n[d]||!cn.isObject(n[d]))&&(n[d]=[]),t(r,i,n[d],o)&&cn.isArray(n[d])&&(n[d]=T2n(n[d])),!g)}if(cn.isFormData(e)&&cn.isFunction(e.entries)){let r={};return cn.forEachEntry(e,(i,n)=>{t(x2n(i),n,r,0)}),r}return null}var F9=(e,t)=>e!=null&&cn.hasOwnProp(e,t)?e[t]:void 0;function B2n(e,t,r){if(cn.isString(e))try{return(t||JSON.parse)(e),cn.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}var MQ={transitional:nxe,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let i=r.getContentType()||"",n=i.indexOf("application/json")>-1,o=cn.isObject(t);if(o&&cn.isHTMLForm(t)&&(t=new FormData(t)),cn.isFormData(t))return n?JSON.stringify(HEt(t)):t;if(cn.isArrayBuffer(t)||cn.isBuffer(t)||cn.isStream(t)||cn.isFile(t)||cn.isBlob(t)||cn.isReadableStream(t))return t;if(cn.isArrayBufferView(t))return t.buffer;if(cn.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(o){let y=F9(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return N2n(t,y).toString();if((g=cn.isFileList(t))||i.indexOf("multipart/form-data")>-1){let _=F9(this,"env"),I=_&&_.FormData;return Qte(g?{"files[]":t}:t,I&&new I,y)}}return o||n?(r.setContentType("application/json",!1),B2n(t)):t}],transformResponse:[function(t){let r=F9(this,"transitional")||MQ.transitional,i=r&&r.forcedJSONParsing,n=F9(this,"responseType"),o=n==="json";if(cn.isResponse(t)||cn.isReadableStream(t))return t;if(t&&cn.isString(t)&&(i&&!n||o)){let g=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,F9(this,"parseReviver"))}catch(y){if(g)throw y.name==="SyntaxError"?Bo.from(y,Bo.ERR_BAD_RESPONSE,this,null,F9(this,"response")):y}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yA.classes.FormData,Blob:yA.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cn.forEach(["delete","get","head","post","put","patch"],e=>{MQ.headers[e]={}});var M2n=cn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),D2n=e=>{let t={},r,i,n;return e&&e.split(`
|
|
`).forEach(function(d){n=d.indexOf(":"),r=d.substring(0,n).trim().toLowerCase(),i=d.substring(n+1).trim(),!(!r||t[r]&&M2n[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},mEt=Symbol("internals"),k2n=/[^\x09\x20-\x7E\x80-\xFF]/g;function P2n(e){let t=0,r=e.length;for(;t<r;){let i=e.charCodeAt(t);if(i!==9&&i!==32)break;t+=1}for(;r>t;){let i=e.charCodeAt(r-1);if(i!==9&&i!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function NQ(e){return e&&String(e).trim().toLowerCase()}function L2n(e){return P2n(e.replace(k2n,""))}function Bte(e){return e===!1||e==null?e:cn.isArray(e)?e.map(Bte):L2n(String(e))}function U2n(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}var F2n=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $Ne(e,t,r,i,n){if(cn.isFunction(i))return i.call(this,t,r);if(n&&(t=r),!!cn.isString(t)){if(cn.isString(i))return t.indexOf(i)!==-1;if(cn.isRegExp(i))return i.test(t)}}function Q2n(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function H2n(e,t){let r=cn.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(n,o,d){return this[i].call(this,t,n,o,d)},configurable:!0})})}var bA=class{constructor(t){t&&this.set(t)}set(t,r,i){let n=this;function o(g,y,_){let I=NQ(y);if(!I)throw new Error("header name must be a non-empty string");let N=cn.findKey(n,I);(!N||n[N]===void 0||_===!0||_===void 0&&n[N]!==!1)&&(n[N||y]=Bte(g))}let d=(g,y)=>cn.forEach(g,(_,I)=>o(_,I,y));if(cn.isPlainObject(t)||t instanceof this.constructor)d(t,r);else if(cn.isString(t)&&(t=t.trim())&&!F2n(t))d(D2n(t),r);else if(cn.isObject(t)&&cn.isIterable(t)){let g={},y,_;for(let I of t){if(!cn.isArray(I))throw TypeError("Object iterator must return a key-value pair");g[_=I[0]]=(y=g[_])?cn.isArray(y)?[...y,I[1]]:[y,I[1]]:I[1]}d(g,r)}else t!=null&&o(r,t,i);return this}get(t,r){if(t=NQ(t),t){let i=cn.findKey(this,t);if(i){let n=this[i];if(!r)return n;if(r===!0)return U2n(n);if(cn.isFunction(r))return r.call(this,n,i);if(cn.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=NQ(t),t){let i=cn.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||$Ne(this,this[i],i,r)))}return!1}delete(t,r){let i=this,n=!1;function o(d){if(d=NQ(d),d){let g=cn.findKey(i,d);g&&(!r||$Ne(i,i[g],g,r))&&(delete i[g],n=!0)}}return cn.isArray(t)?t.forEach(o):o(t),n}clear(t){let r=Object.keys(this),i=r.length,n=!1;for(;i--;){let o=r[i];(!t||$Ne(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){let r=this,i={};return cn.forEach(this,(n,o)=>{let d=cn.findKey(i,o);if(d){r[d]=Bte(n),delete r[o];return}let g=t?Q2n(o):String(o).trim();g!==o&&delete r[o],r[g]=Bte(n),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return cn.forEach(this,(i,n)=>{i!=null&&i!==!1&&(r[n]=t&&cn.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let i=new this(t);return r.forEach(n=>i.set(n)),i}static accessor(t){let i=(this[mEt]=this[mEt]={accessors:{}}).accessors,n=this.prototype;function o(d){let g=NQ(d);i[g]||(H2n(n,d),i[g]=!0)}return cn.isArray(t)?t.forEach(o):o(t),this}};bA.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);cn.reduceDescriptors(bA.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});cn.freezeMethods(bA);function YNe(e,t){let r=this||MQ,i=t||r,n=bA.from(i.headers),o=i.data;return cn.forEach(e,function(g){o=g.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function GEt(e){return!!(e&&e.__CANCEL__)}var D5=class extends Bo{constructor(t,r,i){super(t??"canceled",Bo.ERR_CANCELED,r,i),this.name="CanceledError",this.__CANCEL__=!0}};function qEt(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new Bo("Request failed with status code "+r.status,[Bo.ERR_BAD_REQUEST,Bo.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function G2n(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function q2n(e,t){e=e||10;let r=new Array(e),i=new Array(e),n=0,o=0,d;return t=t!==void 0?t:1e3,function(y){let _=Date.now(),I=i[o];d||(d=_),r[n]=y,i[n]=_;let N=o,T=0;for(;N!==n;)T+=r[N++],N=N%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),_-d<t)return;let M=I&&_-I;return M?Math.round(T*1e3/M):void 0}}function V2n(e,t){let r=0,i=1e3/t,n,o,d=(_,I=Date.now())=>{r=I,n=null,o&&(clearTimeout(o),o=null),e(..._)};return[(..._)=>{let I=Date.now(),N=I-r;N>=i?d(_,I):(n=_,o||(o=setTimeout(()=>{o=null,d(n)},i-N)))},()=>n&&d(n)]}var kte=(e,t,r=3)=>{let i=0,n=q2n(50,250);return V2n(o=>{let d=o.loaded,g=o.lengthComputable?o.total:void 0,y=g!=null?Math.min(d,g):d,_=Math.max(0,y-i),I=n(_);i=Math.max(i,y);let N={loaded:y,total:g,progress:g?y/g:void 0,bytes:_,rate:I||void 0,estimated:I&&g?(g-y)/I:void 0,event:o,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(N)},r)},yEt=(e,t)=>{let r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},bEt=e=>(...t)=>cn.asap(()=>e(...t)),J2n=yA.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,yA.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(yA.origin),yA.navigator&&/(msie|trident)/i.test(yA.navigator.userAgent)):()=>!0,z2n=yA.hasStandardBrowserEnv?{write(e,t,r,i,n,o,d){if(typeof document>"u")return;let g=[`${e}=${encodeURIComponent(t)}`];cn.isNumber(r)&&g.push(`expires=${new Date(r).toUTCString()}`),cn.isString(i)&&g.push(`path=${i}`),cn.isString(n)&&g.push(`domain=${n}`),o===!0&&g.push("secure"),cn.isString(d)&&g.push(`SameSite=${d}`),document.cookie=g.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function K2n(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $2n(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function VEt(e,t,r){let i=!K2n(t);return e&&(i||r===!1)?$2n(e,t):t}var EEt=e=>e instanceof bA?{...e}:e;function k5(e,t){t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(_,I,N,T){return cn.isPlainObject(_)&&cn.isPlainObject(I)?cn.merge.call({caseless:T},_,I):cn.isPlainObject(I)?cn.merge({},I):cn.isArray(I)?I.slice():I}function n(_,I,N,T){if(cn.isUndefined(I)){if(!cn.isUndefined(_))return i(void 0,_,N,T)}else return i(_,I,N,T)}function o(_,I){if(!cn.isUndefined(I))return i(void 0,I)}function d(_,I){if(cn.isUndefined(I)){if(!cn.isUndefined(_))return i(void 0,_)}else return i(void 0,I)}function g(_,I,N){if(cn.hasOwnProp(t,N))return i(_,I);if(cn.hasOwnProp(e,N))return i(void 0,_)}let y={url:o,method:o,data:o,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,allowedSocketPaths:d,responseEncoding:d,validateStatus:g,headers:(_,I,N)=>n(EEt(_),EEt(I),N,!0)};return cn.forEach(Object.keys({...e,...t}),function(I){if(I==="__proto__"||I==="constructor"||I==="prototype")return;let N=cn.hasOwnProp(y,I)?y[I]:n,T=cn.hasOwnProp(e,I)?e[I]:void 0,M=cn.hasOwnProp(t,I)?t[I]:void 0,D=N(T,M,I);cn.isUndefined(D)&&N!==g||(r[I]=D)}),r}var JEt=e=>{let t=k5({},e),r=T=>cn.hasOwnProp(t,T)?t[T]:void 0,i=r("data"),n=r("withXSRFToken"),o=r("xsrfHeaderName"),d=r("xsrfCookieName"),g=r("headers"),y=r("auth"),_=r("baseURL"),I=r("allowAbsoluteUrls"),N=r("url");if(t.headers=g=bA.from(g),t.url=QEt(VEt(_,N,I),e.params,e.paramsSerializer),y&&g.set("Authorization","Basic "+btoa((y.username||"")+":"+(y.password?unescape(encodeURIComponent(y.password)):""))),cn.isFormData(i)){if(yA.hasStandardBrowserEnv||yA.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(cn.isFunction(i.getHeaders)){let T=i.getHeaders(),M=["content-type","content-length"];Object.entries(T).forEach(([D,P])=>{M.includes(D.toLowerCase())&&g.set(D,P)})}}if(yA.hasStandardBrowserEnv&&(cn.isFunction(n)&&(n=n(t)),n===!0||n==null&&J2n(t.url))){let M=o&&d&&z2n.read(d);M&&g.set(o,M)}return t},Y2n=typeof XMLHttpRequest<"u",W2n=Y2n&&function(e){return new Promise(function(r,i){let n=JEt(e),o=n.data,d=bA.from(n.headers).normalize(),{responseType:g,onUploadProgress:y,onDownloadProgress:_}=n,I,N,T,M,D;function P(){M&&M(),D&&D(),n.cancelToken&&n.cancelToken.unsubscribe(I),n.signal&&n.signal.removeEventListener("abort",I)}let G=new XMLHttpRequest;G.open(n.method.toUpperCase(),n.url,!0),G.timeout=n.timeout;function q(){if(!G)return;let ne=bA.from("getAllResponseHeaders"in G&&G.getAllResponseHeaders()),le={data:!g||g==="text"||g==="json"?G.responseText:G.response,status:G.status,statusText:G.statusText,headers:ne,config:e,request:G};qEt(function(ae){r(ae),P()},function(ae){i(ae),P()},le),G=null}"onloadend"in G?G.onloadend=q:G.onreadystatechange=function(){!G||G.readyState!==4||G.status===0&&!(G.responseURL&&G.responseURL.indexOf("file:")===0)||setTimeout(q)},G.onabort=function(){G&&(i(new Bo("Request aborted",Bo.ECONNABORTED,e,G)),G=null)},G.onerror=function(ce){let le=ce&&ce.message?ce.message:"Network Error",pe=new Bo(le,Bo.ERR_NETWORK,e,G);pe.event=ce||null,i(pe),G=null},G.ontimeout=function(){let ce=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",le=n.transitional||nxe;n.timeoutErrorMessage&&(ce=n.timeoutErrorMessage),i(new Bo(ce,le.clarifyTimeoutError?Bo.ETIMEDOUT:Bo.ECONNABORTED,e,G)),G=null},o===void 0&&d.setContentType(null),"setRequestHeader"in G&&cn.forEach(d.toJSON(),function(ce,le){G.setRequestHeader(le,ce)}),cn.isUndefined(n.withCredentials)||(G.withCredentials=!!n.withCredentials),g&&g!=="json"&&(G.responseType=n.responseType),_&&([T,D]=kte(_,!0),G.addEventListener("progress",T)),y&&G.upload&&([N,M]=kte(y),G.upload.addEventListener("progress",N),G.upload.addEventListener("loadend",M)),(n.cancelToken||n.signal)&&(I=ne=>{G&&(i(!ne||ne.type?new D5(null,e,G):ne),G.abort(),G=null)},n.cancelToken&&n.cancelToken.subscribe(I),n.signal&&(n.signal.aborted?I():n.signal.addEventListener("abort",I)));let Y=G2n(n.url);if(Y&&yA.protocols.indexOf(Y)===-1){i(new Bo("Unsupported protocol "+Y+":",Bo.ERR_BAD_REQUEST,e));return}G.send(o||null)})},X2n=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let i=new AbortController,n,o=function(_){if(!n){n=!0,g();let I=_ instanceof Error?_:this.reason;i.abort(I instanceof Bo?I:new D5(I instanceof Error?I.message:I))}},d=t&&setTimeout(()=>{d=null,o(new Bo(`timeout of ${t}ms exceeded`,Bo.ETIMEDOUT))},t),g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(_=>{_.unsubscribe?_.unsubscribe(o):_.removeEventListener("abort",o)}),e=null)};e.forEach(_=>_.addEventListener("abort",o));let{signal:y}=i;return y.unsubscribe=()=>cn.asap(g),y}},Z2n=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let i=0,n;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},j2n=async function*(e,t){for await(let r of emn(e))yield*Z2n(r,t)},emn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:i}=await t.read();if(r)break;yield i}}finally{await t.cancel()}},vEt=(e,t,r,i)=>{let n=j2n(e,t),o=0,d,g=y=>{d||(d=!0,i&&i(y))};return new ReadableStream({async pull(y){try{let{done:_,value:I}=await n.next();if(_){g(),y.close();return}let N=I.byteLength;if(r){let T=o+=N;r(T)}y.enqueue(new Uint8Array(I))}catch(_){throw g(_),_}},cancel(y){return g(y),n.return()}},{highWaterMark:2})},REt=64*1024,{isFunction:xte}=cn,tmn=(({Request:e,Response:t})=>({Request:e,Response:t}))(cn.global),{ReadableStream:SEt,TextEncoder:IEt}=cn.global,CEt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rmn=e=>{e=cn.merge.call({skipUndefined:!0},tmn,e);let{fetch:t,Request:r,Response:i}=e,n=t?xte(t):typeof fetch=="function",o=xte(r),d=xte(i);if(!n)return!1;let g=n&&xte(SEt),y=n&&(typeof IEt=="function"?(D=>P=>D.encode(P))(new IEt):async D=>new Uint8Array(await new r(D).arrayBuffer())),_=o&&g&&CEt(()=>{let D=!1,P=new r(yA.origin,{body:new SEt,method:"POST",get duplex(){return D=!0,"half"}}),G=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),D&&!G}),I=d&&g&&CEt(()=>cn.isReadableStream(new i("").body)),N={stream:I&&(D=>D.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(D=>{!N[D]&&(N[D]=(P,G)=>{let q=P&&P[D];if(q)return q.call(P);throw new Bo(`Response type '${D}' is not supported`,Bo.ERR_NOT_SUPPORT,G)})});let T=async D=>{if(D==null)return 0;if(cn.isBlob(D))return D.size;if(cn.isSpecCompliantForm(D))return(await new r(yA.origin,{method:"POST",body:D}).arrayBuffer()).byteLength;if(cn.isArrayBufferView(D)||cn.isArrayBuffer(D))return D.byteLength;if(cn.isURLSearchParams(D)&&(D=D+""),cn.isString(D))return(await y(D)).byteLength},M=async(D,P)=>{let G=cn.toFiniteNumber(D.getContentLength());return G??T(P)};return async D=>{let{url:P,method:G,data:q,signal:Y,cancelToken:ne,timeout:ce,onDownloadProgress:le,onUploadProgress:pe,responseType:ae,headers:W,withCredentials:se="same-origin",fetchOptions:O}=JEt(D),s=t||fetch;ae=ae?(ae+"").toLowerCase():"text";let l=X2n([Y,ne&&ne.toAbortSignal()],ce),A=null,m=l&&l.unsubscribe&&(()=>{l.unsubscribe()}),E;try{if(pe&&_&&G!=="get"&&G!=="head"&&(E=await M(W,q))!==0){let U=new r(P,{method:"POST",body:q,duplex:"half"}),F;if(cn.isFormData(q)&&(F=U.headers.get("content-type"))&&W.setContentType(F),U.body){let[X,Ae]=yEt(E,kte(bEt(pe)));q=vEt(U.body,REt,X,Ae)}}cn.isString(se)||(se=se?"include":"omit");let w=o&&"credentials"in r.prototype;if(cn.isFormData(q)){let U=W.getContentType();U&&/^multipart\/form-data/i.test(U)&&!/boundary=/i.test(U)&&W.delete("content-type")}let x={...O,signal:l,method:G.toUpperCase(),headers:W.normalize().toJSON(),body:q,duplex:"half",credentials:w?se:void 0};A=o&&new r(P,x);let R=await(o?s(A,O):s(P,x)),u=I&&(ae==="stream"||ae==="response");if(I&&(le||u&&m)){let U={};["status","statusText","headers"].forEach(he=>{U[he]=R[he]});let F=cn.toFiniteNumber(R.headers.get("content-length")),[X,Ae]=le&&yEt(F,kte(bEt(le),!0))||[];R=new i(vEt(R.body,REt,X,()=>{Ae&&Ae(),m&&m()}),U)}ae=ae||"text";let C=await N[cn.findKey(N,ae)||"text"](R,D);return!u&&m&&m(),await new Promise((U,F)=>{qEt(U,F,{data:C,headers:bA.from(R.headers),status:R.status,statusText:R.statusText,config:D,request:A})})}catch(w){throw m&&m(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new Bo("Network Error",Bo.ERR_NETWORK,D,A,w&&w.response),{cause:w.cause||w}):Bo.from(w,w&&w.code,D,A,w&&w.response)}}},nmn=new Map,zEt=e=>{let t=e&&e.env||{},{fetch:r,Request:i,Response:n}=t,o=[i,n,r],d=o.length,g=d,y,_,I=nmn;for(;g--;)y=o[g],_=I.get(y),_===void 0&&I.set(y,_=g?new Map:rmn(t)),I=_;return _};zEt();var oxe={http:_2n,xhr:W2n,fetch:{get:zEt}};cn.forEach(oxe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var wEt=e=>`- ${e}`,imn=e=>cn.isFunction(e)||e===null||e===!1;function omn(e,t){e=cn.isArray(e)?e:[e];let{length:r}=e,i,n,o={};for(let d=0;d<r;d++){i=e[d];let g;if(n=i,!imn(i)&&(n=oxe[(g=String(i)).toLowerCase()],n===void 0))throw new Bo(`Unknown adapter '${g}'`);if(n&&(cn.isFunction(n)||(n=n.get(t))))break;o[g||"#"+d]=n}if(!n){let d=Object.entries(o).map(([y,_])=>`adapter ${y} `+(_===!1?"is not supported by the environment":"is not available in the build")),g=r?d.length>1?`since :
|
|
`+d.map(wEt).join(`
|
|
`):" "+wEt(d[0]):"as no adapter specified";throw new Bo("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return n}var KEt={getAdapter:omn,adapters:oxe};function WNe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new D5(null,e)}function OEt(e){return WNe(e),e.headers=bA.from(e.headers),e.data=YNe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),KEt.getAdapter(e.adapter||MQ.adapter,e)(e).then(function(i){return WNe(e),i.data=YNe.call(e,e.transformResponse,i),i.headers=bA.from(i.headers),i},function(i){return GEt(i)||(WNe(e),i&&i.response&&(i.response.data=YNe.call(e,e.transformResponse,i.response),i.response.headers=bA.from(i.response.headers))),Promise.reject(i)})}var $Et="1.15.2",Hte={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hte[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var NEt={};Hte.transitional=function(t,r,i){function n(o,d){return"[Axios v"+$Et+"] Transitional option '"+o+"'"+d+(i?". "+i:"")}return(o,d,g)=>{if(t===!1)throw new Bo(n(d," has been removed"+(r?" in "+r:"")),Bo.ERR_DEPRECATED);return r&&!NEt[d]&&(NEt[d]=!0,console.warn(n(d," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,d,g):!0}};Hte.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function amn(e,t,r){if(typeof e!="object")throw new Bo("options must be an object",Bo.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let o=i[n],d=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(d){let g=e[o],y=g===void 0||d(g,o,e);if(y!==!0)throw new Bo("option "+o+" must be "+y,Bo.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Bo("Unknown option "+o,Bo.ERR_BAD_OPTION)}}var Mte={assertOptions:amn,validators:Hte},q2=Mte.validators,DS=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dte,response:new Dte}}async request(t,r){try{return await this._request(t,r)}catch(i){if(i instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;let o=(()=>{if(!n.stack)return"";let d=n.stack.indexOf(`
|
|
`);return d===-1?"":n.stack.slice(d+1)})();try{if(!i.stack)i.stack=o;else if(o){let d=o.indexOf(`
|
|
`),g=d===-1?-1:o.indexOf(`
|
|
`,d+1),y=g===-1?"":o.slice(g+1);String(i.stack).endsWith(y)||(i.stack+=`
|
|
`+o)}}catch{}}throw i}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=k5(this.defaults,r);let{transitional:i,paramsSerializer:n,headers:o}=r;i!==void 0&&Mte.assertOptions(i,{silentJSONParsing:q2.transitional(q2.boolean),forcedJSONParsing:q2.transitional(q2.boolean),clarifyTimeoutError:q2.transitional(q2.boolean),legacyInterceptorReqResOrdering:q2.transitional(q2.boolean)},!1),n!=null&&(cn.isFunction(n)?r.paramsSerializer={serialize:n}:Mte.assertOptions(n,{encode:q2.function,serialize:q2.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Mte.assertOptions(r,{baseUrl:q2.spelling("baseURL"),withXsrfToken:q2.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=o&&cn.merge(o.common,o[r.method]);o&&cn.forEach(["delete","get","head","post","put","patch","common"],D=>{delete o[D]}),r.headers=bA.concat(d,o);let g=[],y=!0;this.interceptors.request.forEach(function(P){if(typeof P.runWhen=="function"&&P.runWhen(r)===!1)return;y=y&&P.synchronous;let G=r.transitional||nxe;G&&G.legacyInterceptorReqResOrdering?g.unshift(P.fulfilled,P.rejected):g.push(P.fulfilled,P.rejected)});let _=[];this.interceptors.response.forEach(function(P){_.push(P.fulfilled,P.rejected)});let I,N=0,T;if(!y){let D=[OEt.bind(this),void 0];for(D.unshift(...g),D.push(..._),T=D.length,I=Promise.resolve(r);N<T;)I=I.then(D[N++],D[N++]);return I}T=g.length;let M=r;for(;N<T;){let D=g[N++],P=g[N++];try{M=D(M)}catch(G){P.call(this,G);break}}try{I=OEt.call(this,M)}catch(D){return Promise.reject(D)}for(N=0,T=_.length;N<T;)I=I.then(_[N++],_[N++]);return I}getUri(t){t=k5(this.defaults,t);let r=VEt(t.baseURL,t.url,t.allowAbsoluteUrls);return QEt(r,t.params,t.paramsSerializer)}};cn.forEach(["delete","get","head","options"],function(t){DS.prototype[t]=function(r,i){return this.request(k5(i||{},{method:t,url:r,data:(i||{}).data}))}});cn.forEach(["post","put","patch"],function(t){function r(i){return function(o,d,g){return this.request(k5(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:d}))}}DS.prototype[t]=r(),DS.prototype[t+"Form"]=r(!0)});var exe=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});let i=this;this.promise.then(n=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](n);i._listeners=null}),this.promise.then=n=>{let o,d=new Promise(g=>{i.subscribe(g),o=g}).then(n);return d.cancel=function(){i.unsubscribe(o)},d},t(function(o,d,g){i.reason||(i.reason=new D5(o,d,g),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}};function smn(e){return function(r){return e.apply(null,r)}}function cmn(e){return cn.isObject(e)&&e.isAxiosError===!0}var txe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(txe).forEach(([e,t])=>{txe[t]=e});function YEt(e){let t=new DS(e),r=xEt(DS.prototype.request,t);return cn.extend(r,DS.prototype,t,{allOwnKeys:!0}),cn.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return YEt(k5(e,n))},r}var Cf=YEt(MQ);Cf.Axios=DS;Cf.CanceledError=D5;Cf.CancelToken=exe;Cf.isCancel=GEt;Cf.VERSION=$Et;Cf.toFormData=Qte;Cf.AxiosError=Bo;Cf.Cancel=Cf.CanceledError;Cf.all=function(t){return Promise.all(t)};Cf.spread=smn;Cf.isAxiosError=cmn;Cf.mergeConfig=k5;Cf.AxiosHeaders=bA;Cf.formToJSON=e=>HEt(cn.isHTMLForm(e)?new FormData(e):e);Cf.getAdapter=KEt.getAdapter;Cf.HttpStatusCode=txe;Cf.default=Cf;WEt.exports=Cf});var axe=ir(G9=>{"use strict";J();K();z();var umn=G9&&G9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(G9,"__esModule",{value:!0});G9.http=void 0;var dmn=umn(XEt());function fmn(e){if(e.status>=400)throw new Error(`Bad status on response: ${e.status}`);return e}function lmn(e){return e.toString().includes("emitExperimentalWarning")}async function hmn(e,t,r,i){if(typeof fetch=="function"&&!lmn(fetch)){let n={method:e,body:i?JSON.stringify(i):void 0,headers:{"Content-Type":"application/json",...r}};return fetch(t,n).then(fmn).then(o=>o.json())}else return dmn.default.request({url:t,method:e,data:i,headers:r}).then(n=>n.data)}G9.http=hmn});var DQ=ir(q9=>{"use strict";J();K();z();Object.defineProperty(q9,"__esModule",{value:!0});q9.hasProtocol=q9.instanceOfRpcStreamingClient=void 0;function Amn(e){return typeof e.listen=="function"}q9.instanceOfRpcStreamingClient=Amn;function pmn(e){return e.search("://")!==-1}q9.hasProtocol=pmn});var evt=ir(Gte=>{"use strict";J();K();z();Object.defineProperty(Gte,"__esModule",{value:!0});Gte.HttpBatchClient=void 0;var ZEt=Nte(),gmn=axe(),_mn=DQ(),jEt={dispatchInterval:20,batchSizeLimit:20},sxe=class{constructor(t,r={}){if(this.queue=[],this.options={batchSizeLimit:r.batchSizeLimit??jEt.batchSizeLimit,dispatchInterval:r.dispatchInterval??jEt.dispatchInterval},typeof t=="string"){if(!(0,_mn.hasProtocol)(t))throw new Error("Endpoint URL is missing a protocol. Expected 'https://' or 'http://'.");this.url=t}else this.url=t.url,this.headers=t.headers;this.timer=setInterval(()=>this.tick(),r.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(t){return new Promise((r,i)=>{this.queue.push({request:t,resolve:r,reject:i}),this.queue.length>=this.options.batchSizeLimit&&this.tick()})}validate(){if(!this.options.batchSizeLimit||!Number.isSafeInteger(this.options.batchSizeLimit)||this.options.batchSizeLimit<1)throw new Error("batchSizeLimit must be a safe integer >= 1")}tick(){let t=this.queue.splice(0,this.options.batchSizeLimit);if(!t.length)return;let r=t.map(n=>n.request),i=r.map(n=>n.id);(0,gmn.http)("POST",this.url,this.headers,r).then(n=>{(Array.isArray(n)?n:[n]).forEach(d=>{let g=t.find(N=>N.request.id===d.id);if(!g)return;let{reject:y,resolve:_}=g,I=(0,ZEt.parseJsonRpcResponse)(d);(0,ZEt.isJsonRpcErrorResponse)(I)?y(new Error(JSON.stringify(I.error))):_(I)})},n=>{for(let o of i){let d=t.find(g=>g.request.id===o);if(!d)return;d.reject(n)}})}};Gte.HttpBatchClient=sxe});var rvt=ir(qte=>{"use strict";J();K();z();Object.defineProperty(qte,"__esModule",{value:!0});qte.HttpClient=void 0;var tvt=Nte(),mmn=axe(),ymn=DQ(),cxe=class{constructor(t){if(typeof t=="string"){if(!(0,ymn.hasProtocol)(t))throw new Error("Endpoint URL is missing a protocol. Expected 'https://' or 'http://'.");this.url=t}else this.url=t.url,this.headers=t.headers}disconnect(){}async execute(t){let r=(0,tvt.parseJsonRpcResponse)(await(0,mmn.http)("POST",this.url,this.headers,t));if((0,tvt.isJsonRpcErrorResponse)(r))throw new Error(JSON.stringify(r.error));return r}};qte.HttpClient=cxe});var ivt=ir((Qvo,nvt)=>{"use strict";J();K();z();var V9=null;typeof WebSocket<"u"?V9=WebSocket:typeof MozWebSocket<"u"?V9=MozWebSocket:typeof global<"u"?V9=global.WebSocket||global.MozWebSocket:typeof window<"u"?V9=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(V9=self.WebSocket||self.MozWebSocket);nvt.exports=V9});var dxe=ir(z9=>{"use strict";J();K();z();var bmn=z9&&z9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z9,"__esModule",{value:!0});z9.SocketWrapper=void 0;var J9=bmn(ivt());function Emn(){return typeof me<"u"&&typeof me.versions<"u"&&typeof me.versions.node<"u"}var uxe=class{constructor(t,r,i,n,o,d=1e4){this.closed=!1,this.connected=new Promise((g,y)=>{this.connectedResolver=g,this.connectedRejecter=y}),this.url=t,this.messageHandler=r,this.errorHandler=i,this.openHandler=n,this.closeHandler=o,this.timeout=d}connect(){let t=new J9.default(this.url);t.onerror=i=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(i)},t.onmessage=i=>{this.messageHandler({type:i.type,data:i.data})},t.onopen=i=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()},t.onclose=i=>{this.closed=!0,this.closeHandler&&this.closeHandler(i)};let r=Date.now();this.timeoutId=setTimeout(()=>{t.onmessage=()=>0,t.onerror=()=>0,t.onopen=()=>0,t.onclose=()=>0,t.close(),this.socket=void 0;let i=Math.floor(Date.now()-r);this.connectedRejecter(`Connection attempt timed out after ${i} ms`)},this.timeout),this.socket=t}disconnect(){if(!this.socket)throw new Error("Socket undefined. This must be called after connecting.");switch(this.clearTimeout(),this.socket.readyState){case J9.default.OPEN:this.socket.close(1e3);break;case J9.default.CLOSED:break;case J9.default.CONNECTING:this.socket.onopen=()=>0,this.socket.onclose=()=>0,this.socket.onerror=()=>0,this.socket.onmessage=()=>0,this.socket=void 0,this.closeHandler&&this.closeHandler({wasClean:!1,code:4001});break;case J9.default.CLOSING:break;default:throw new Error(`Unknown readyState: ${this.socket.readyState}`)}}async send(t){return new Promise((r,i)=>{if(!this.socket)throw new Error("Socket undefined. This must be called after connecting.");if(this.closed)throw new Error("Socket was closed, so no data can be sent anymore.");if(this.socket.readyState!==J9.default.OPEN)throw new Error("Websocket is not open");Emn()?this.socket.send(t,n=>n?i(n):r()):(this.socket.send(t),r())})}clearTimeout(){if(!this.timeoutId)throw new Error("Timeout ID not set. This should not happen and usually means connect() was not called.");clearTimeout(this.timeoutId)}};z9.SocketWrapper=uxe});var lxe=ir(Vte=>{"use strict";J();K();z();Object.defineProperty(Vte,"__esModule",{value:!0});Vte.StreamingSocket=void 0;var vmn=m8(),Rmn=dxe(),fxe=class{constructor(t,r=1e4){this.socket=new Rmn.SocketWrapper(t,n=>{this.eventProducerListener&&this.eventProducerListener.next(n)},n=>{this.eventProducerListener&&this.eventProducerListener.error(n)},()=>{},n=>{this.eventProducerListener&&(n.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},r),this.connected=this.socket.connected;let i={start:n=>this.eventProducerListener=n,stop:()=>this.eventProducerListener=void 0};this.events=vmn.Stream.create(i)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(t){return this.socket.send(t)}};Vte.StreamingSocket=fxe});var Axe=ir(P5=>{"use strict";J();K();z();Object.defineProperty(P5,"__esModule",{value:!0});P5.QueueingStreamingSocket=P5.ConnectionStatus=void 0;var ovt=wte(),Smn=m8(),avt=lxe(),kS;(function(e){e[e.Unconnected=0]="Unconnected",e[e.Connecting=1]="Connecting",e[e.Connected=2]="Connected",e[e.Disconnected=3]="Disconnected"})(kS=P5.ConnectionStatus||(P5.ConnectionStatus={}));var hxe=class{constructor(t,r=1e4,i){this.queue=[],this.isProcessingQueue=!1,this.url=t,this.timeout=r,this.reconnectedHandler=i;let n={start:o=>this.eventProducerListener=o,stop:()=>this.eventProducerListener=void 0};this.events=Smn.Stream.create(n),this.connectionStatusProducer=new ovt.DefaultValueProducer(kS.Unconnected),this.connectionStatus=new ovt.ValueAndUpdates(this.connectionStatusProducer),this.socket=new avt.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:o=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(o)},error:()=>this.connectionStatusProducer.update(kS.Disconnected)})}connect(){this.connectionStatusProducer.update(kS.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(kS.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(kS.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(kS.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new avt.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:t=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(t)},error:()=>this.connectionStatusProducer.update(kS.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(t){this.queue.push(t),this.processQueue()}async processQueue(){if(this.isProcessingQueue||this.connectionStatus.value!==kS.Connected)return;this.isProcessingQueue=!0;let t;for(;t=this.queue.shift();)try{await this.socket.send(t),this.isProcessingQueue=!1}catch{this.queue.unshift(t),this.isProcessingQueue=!1;return}}};P5.QueueingStreamingSocket=hxe});var svt=ir(Jte=>{"use strict";J();K();z();Object.defineProperty(Jte,"__esModule",{value:!0});Jte.ReconnectingSocket=void 0;var Imn=m8(),pxe=Axe(),gxe=class e{static calculateTimeout(t){return Math.min(2**t*100,5e3)}constructor(t,r=1e4,i){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;let n={start:o=>this.eventProducerListener=o,stop:()=>this.eventProducerListener=void 0};this.events=Imn.Stream.create(n),this.socket=new pxe.QueueingStreamingSocket(t,r,i),this.socket.events.subscribe({next:o=>{this.eventProducerListener&&this.eventProducerListener.next(o)},error:o=>{this.eventProducerListener&&this.eventProducerListener.error(o)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:o=>{o===pxe.ConnectionStatus.Connected&&(this.timeoutIndex=0),o===pxe.ConnectionStatus.Disconnected&&(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.reconnectTimeout=setTimeout(()=>this.socket.reconnect(),e.calculateTimeout(this.timeoutIndex++)))}})}connect(){if(!this.unconnected)throw new Error("Cannot connect: socket has already connected");this.socket.connect(),this.unconnected=!1}disconnect(){if(this.unconnected)throw new Error("Cannot disconnect: socket has not yet connected");this.socket.disconnect(),this.eventProducerListener&&this.eventProducerListener.complete(),this.disconnected=!0}queueRequest(t){if(this.disconnected)throw new Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(t)}};Jte.ReconnectingSocket=gxe});var uvt=ir(V2=>{"use strict";J();K();z();Object.defineProperty(V2,"__esModule",{value:!0});V2.StreamingSocket=V2.SocketWrapper=V2.ReconnectingSocket=V2.QueueingStreamingSocket=V2.ConnectionStatus=void 0;var cvt=Axe();Object.defineProperty(V2,"ConnectionStatus",{enumerable:!0,get:function(){return cvt.ConnectionStatus}});Object.defineProperty(V2,"QueueingStreamingSocket",{enumerable:!0,get:function(){return cvt.QueueingStreamingSocket}});var Cmn=svt();Object.defineProperty(V2,"ReconnectingSocket",{enumerable:!0,get:function(){return Cmn.ReconnectingSocket}});var wmn=dxe();Object.defineProperty(V2,"SocketWrapper",{enumerable:!0,get:function(){return wmn.SocketWrapper}});var Omn=lxe();Object.defineProperty(V2,"StreamingSocket",{enumerable:!0,get:function(){return Omn.StreamingSocket}})});var lvt=ir(Kte=>{"use strict";J();K();z();Object.defineProperty(Kte,"__esModule",{value:!0});Kte.WebsocketClient=void 0;var zte=Nte(),dvt=uvt(),Nmn=wte(),xmn=m8(),Tmn=DQ();function Bmn(e){throw e}function fvt(e){if(e.type!=="message")throw new Error(`Unexcepted message type on websocket: ${e.type}`);return(0,zte.parseJsonRpcResponse)(JSON.parse(e.data))}var _xe=class{constructor(t,r){this.running=!1,this.subscriptions=[],this.request=t,this.socket=r}start(t){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(t),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;let t={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(t))}catch(r){if(!(r instanceof Error&&r.message.match(/socket has disconnected/i)))throw r}}connectToClient(t){let r=this.socket.events.map(fvt),i=r.filter(d=>d.id===this.request.id).subscribe({next:d=>{(0,zte.isJsonRpcErrorResponse)(d)&&(this.closeSubscriptions(),t.error(JSON.stringify(d.error))),i.unsubscribe()}}),n=r.filter(d=>d.id===this.request.id).subscribe({next:d=>{(0,zte.isJsonRpcErrorResponse)(d)?(this.closeSubscriptions(),t.error(JSON.stringify(d.error))):t.next(d.result)}}),o=r.subscribe({error:d=>{this.closeSubscriptions(),t.error(d)},complete:()=>{this.closeSubscriptions(),t.complete()}});this.subscriptions.push(i,n,o)}closeSubscriptions(){for(let t of this.subscriptions)t.unsubscribe();this.subscriptions=[]}},mxe=class{constructor(t,r=Bmn){if(this.subscriptionStreams=new Map,!(0,Tmn.hasProtocol)(t))throw new Error("Base URL is missing a protocol. Expected 'ws://' or 'wss://'.");let i=t.endsWith("/")?"websocket":"/websocket";this.url=t+i,this.socket=new dvt.ReconnectingSocket(this.url);let n=this.socket.events.subscribe({error:o=>{r(o),n.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(fvt),this.socket.connect()}async execute(t){let r=this.responseForRequestId(t.id);this.socket.queueRequest(JSON.stringify(t));let i=await r;if((0,zte.isJsonRpcErrorResponse)(i))throw new Error(JSON.stringify(i.error));return i}listen(t){if(t.method!=="subscribe")throw new Error('Request method must be "subscribe" to start event listening');let r=t.params.query;if(typeof r!="string")throw new Error("request.params.query must be a string");if(!this.subscriptionStreams.has(r)){let i=new _xe(t,this.socket),n=xmn.Stream.create(i);this.subscriptionStreams.set(r,n)}return this.subscriptionStreams.get(r).filter(i=>i.query!==void 0)}async connected(){await this.socket.connectionStatus.waitFor(dvt.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(t){return(0,Nmn.firstEvent)(this.jsonRpcResponseStream.filter(r=>r.id===t))}};Kte.WebsocketClient=mxe});var kQ=ir(ZE=>{"use strict";J();K();z();Object.defineProperty(ZE,"__esModule",{value:!0});ZE.WebsocketClient=ZE.instanceOfRpcStreamingClient=ZE.HttpClient=ZE.HttpBatchClient=void 0;var Mmn=evt();Object.defineProperty(ZE,"HttpBatchClient",{enumerable:!0,get:function(){return Mmn.HttpBatchClient}});var Dmn=rvt();Object.defineProperty(ZE,"HttpClient",{enumerable:!0,get:function(){return Dmn.HttpClient}});var kmn=DQ();Object.defineProperty(ZE,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return kmn.instanceOfRpcStreamingClient}});var Pmn=lvt();Object.defineProperty(ZE,"WebsocketClient",{enumerable:!0,get:function(){return Pmn.WebsocketClient}})});var PQ=ir(pc=>{"use strict";J();K();z();Object.defineProperty(pc,"__esModule",{value:!0});pc.encodeBlockId=pc.encodeVersion=pc.encodeBytes=pc.encodeTime=pc.encodeUvarint=pc.encodeString=pc.dictionaryToStringMap=pc.may=pc.assertNotEmpty=pc.assertObject=pc.assertArray=pc.assertNumber=pc.assertString=pc.assertBoolean=pc.assertSet=void 0;var Lmn=Ps();function L5(e){if(e===void 0)throw new Error("Value must not be undefined");if(e===null)throw new Error("Value must not be null");return e}pc.assertSet=L5;function Umn(e){if(L5(e),typeof e!="boolean")throw new Error("Value must be a boolean");return e}pc.assertBoolean=Umn;function Fmn(e){if(L5(e),typeof e!="string")throw new Error("Value must be a string");return e}pc.assertString=Fmn;function Qmn(e){if(L5(e),typeof e!="number")throw new Error("Value must be a number");return e}pc.assertNumber=Qmn;function Hmn(e){if(L5(e),!Array.isArray(e))throw new Error("Value must be a an array");return e}pc.assertArray=Hmn;function Gmn(e){if(L5(e),typeof e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(e)!=="[object Object]")throw new Error("Value must be a simple object");return e}pc.assertObject=Gmn;function qmn(e){if(L5(e),typeof e=="number"&&e===0)throw new Error("must provide a non-zero value");if(e.length===0)throw new Error("must provide a non-empty value");return e}pc.assertNotEmpty=qmn;function Vmn(e,t){return t==null?void 0:e(t)}pc.may=Vmn;function Jmn(e){let t=new Map;for(let r of Object.keys(e)){let i=e[r];if(typeof i!="string")throw new Error("Found dictionary value of type other than string");t.set(r,i)}return t}pc.dictionaryToStringMap=Jmn;function zmn(e){let t=(0,Lmn.toUtf8)(e);return Uint8Array.from([t.length,...t])}pc.encodeString=zmn;function K9(e){return e>=128?Uint8Array.from([e&255|128,...K9(e>>7)]):Uint8Array.from([e&255])}pc.encodeUvarint=K9;function Kmn(e){let t=e.getTime(),r=Math.floor(t/1e3),i=r?[8,...K9(r)]:new Uint8Array,n=(e.nanoseconds||0)+t%1e3*1e6,o=n?[16,...K9(n)]:new Uint8Array;return Uint8Array.from([...i,...o])}pc.encodeTime=Kmn;function $mn(e){if(e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return e.length?Uint8Array.from([e.length,...e]):new Uint8Array}pc.encodeBytes=$mn;function Ymn(e){let t=e.block?Uint8Array.from([8,...K9(e.block)]):new Uint8Array,r=e.app?Uint8Array.from([16,...K9(e.app)]):new Uint8Array;return Uint8Array.from([...t,...r])}pc.encodeVersion=Ymn;function Wmn(e){return Uint8Array.from([10,e.hash.length,...e.hash,18,e.parts.hash.length+4,8,e.parts.total,18,e.parts.hash.length,...e.parts.hash])}pc.encodeBlockId=Wmn});var U5=ir(R8=>{"use strict";J();K();z();Object.defineProperty(R8,"__esModule",{value:!0});R8.smallIntToApi=R8.apiToBigInt=R8.apiToSmallInt=void 0;var yxe=Uh(),Xmn=PQ();function Zmn(e){return(typeof e=="number"?new yxe.Int53(e):yxe.Int53.fromString(e)).toNumber()}R8.apiToSmallInt=Zmn;function jmn(e){if((0,Xmn.assertString)(e),!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return BigInt(e)}R8.apiToBigInt=jmn;function eyn(e){return new yxe.Int53(e).toString()}R8.smallIntToApi=eyn});var $te=ir(gc=>{"use strict";J();K();z();Object.defineProperty(gc,"__esModule",{value:!0});gc.encodeBlockId=gc.encodeVersion=gc.encodeBytes=gc.encodeTime=gc.encodeUvarint=gc.encodeString=gc.dictionaryToStringMap=gc.may=gc.assertNotEmpty=gc.assertObject=gc.assertArray=gc.assertNumber=gc.assertString=gc.assertBoolean=gc.assertSet=void 0;var tyn=Ps();function F5(e){if(e===void 0)throw new Error("Value must not be undefined");if(e===null)throw new Error("Value must not be null");return e}gc.assertSet=F5;function ryn(e){if(F5(e),typeof e!="boolean")throw new Error("Value must be a boolean");return e}gc.assertBoolean=ryn;function nyn(e){if(F5(e),typeof e!="string")throw new Error("Value must be a string");return e}gc.assertString=nyn;function iyn(e){if(F5(e),typeof e!="number")throw new Error("Value must be a number");return e}gc.assertNumber=iyn;function oyn(e){if(F5(e),!Array.isArray(e))throw new Error("Value must be a an array");return e}gc.assertArray=oyn;function ayn(e){if(F5(e),typeof e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(e)!=="[object Object]")throw new Error("Value must be a simple object");return e}gc.assertObject=ayn;function syn(e){if(F5(e),typeof e=="number"&&e===0)throw new Error("must provide a non-zero value");if(e.length===0)throw new Error("must provide a non-empty value");return e}gc.assertNotEmpty=syn;function cyn(e,t){return t==null?void 0:e(t)}gc.may=cyn;function uyn(e){let t=new Map;for(let r of Object.keys(e)){let i=e[r];if(typeof i!="string")throw new Error("Found dictionary value of type other than string");t.set(r,i)}return t}gc.dictionaryToStringMap=uyn;function dyn(e){let t=(0,tyn.toUtf8)(e);return Uint8Array.from([t.length,...t])}gc.encodeString=dyn;function $9(e){return e>=128?Uint8Array.from([e&255|128,...$9(e>>7)]):Uint8Array.from([e&255])}gc.encodeUvarint=$9;function fyn(e){let t=e.getTime(),r=Math.floor(t/1e3),i=r?[8,...$9(r)]:new Uint8Array,n=(e.nanoseconds||0)+t%1e3*1e6,o=n?[16,...$9(n)]:new Uint8Array;return Uint8Array.from([...i,...o])}gc.encodeTime=fyn;function lyn(e){if(e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return e.length?Uint8Array.from([e.length,...e]):new Uint8Array}gc.encodeBytes=lyn;function hyn(e){let t=e.block?Uint8Array.from([8,...$9(e.block)]):new Uint8Array,r=e.app?Uint8Array.from([16,...$9(e.app)]):new Uint8Array;return Uint8Array.from([...t,...r])}gc.encodeVersion=hyn;function Ayn(e){return Uint8Array.from([10,e.hash.length,...e.hash,18,e.parts.hash.length+4,8,e.parts.total,18,e.parts.hash.length,...e.parts.hash])}gc.encodeBlockId=Ayn});var Yte=ir(jE=>{"use strict";J();K();z();Object.defineProperty(jE,"__esModule",{value:!0});jE.buildQuery=jE.SubscriptionEventType=jE.Method=void 0;var pyn;(function(e){e.AbciInfo="abci_info",e.AbciQuery="abci_query",e.Block="block",e.Blockchain="blockchain",e.BlockResults="block_results",e.BlockSearch="block_search",e.BroadcastTxAsync="broadcast_tx_async",e.BroadcastTxSync="broadcast_tx_sync",e.BroadcastTxCommit="broadcast_tx_commit",e.Commit="commit",e.Genesis="genesis",e.Health="health",e.NumUnconfirmedTxs="num_unconfirmed_txs",e.Status="status",e.Subscribe="subscribe",e.Tx="tx",e.TxSearch="tx_search",e.Validators="validators",e.Unsubscribe="unsubscribe"})(pyn=jE.Method||(jE.Method={}));var gyn;(function(e){e.NewBlock="NewBlock",e.NewBlockHeader="NewBlockHeader",e.Tx="Tx"})(gyn=jE.SubscriptionEventType||(jE.SubscriptionEventType={}));function _yn(e){let r=(e.tags?e.tags:[]).map(n=>`${n.key}='${n.value}'`),i=e.raw?[e.raw]:[];return[...r,...i].join(" AND ")}jE.buildQuery=_yn});var hvt=ir(ev=>{"use strict";J();K();z();var myn=ev&&ev.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),yyn=ev&&ev.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),byn=ev&&ev.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&myn(t,e,r);return yyn(t,e),t};Object.defineProperty(ev,"__esModule",{value:!0});ev.Params=void 0;var vxe=Ps(),Ny=U5(),EA=T5(),m1=$te(),Eyn=byn(Yte());function bxe(e){return{height:(0,m1.may)(Ny.smallIntToApi,e.height)}}function vyn(e){return{minHeight:(0,m1.may)(Ny.smallIntToApi,e.minHeight),maxHeight:(0,m1.may)(Ny.smallIntToApi,e.maxHeight)}}function Ryn(e){return{query:e.query,page:(0,m1.may)(Ny.smallIntToApi,e.page),per_page:(0,m1.may)(Ny.smallIntToApi,e.per_page),order_by:e.order_by}}function Syn(e){return{path:(0,m1.assertNotEmpty)(e.path),data:(0,vxe.toHex)(e.data),height:(0,m1.may)(Ny.smallIntToApi,e.height),prove:e.prove}}function Iyn(e){return{tx:(0,vxe.toBase64)((0,m1.assertNotEmpty)(e.tx))}}function Cyn(e){return{hash:(0,vxe.toBase64)((0,m1.assertNotEmpty)(e.hash)),prove:e.prove}}function wyn(e){return{query:e.query,prove:e.prove,page:(0,m1.may)(Ny.smallIntToApi,e.page),per_page:(0,m1.may)(Ny.smallIntToApi,e.per_page),order_by:e.order_by}}function Oyn(e){return{height:(0,m1.may)(Ny.smallIntToApi,e.height),page:(0,m1.may)(Ny.smallIntToApi,e.page),per_page:(0,m1.may)(Ny.smallIntToApi,e.per_page)}}var Exe=class{static encodeAbciInfo(t){return(0,EA.createJsonRpcRequest)(t.method)}static encodeAbciQuery(t){return(0,EA.createJsonRpcRequest)(t.method,Syn(t.params))}static encodeBlock(t){return(0,EA.createJsonRpcRequest)(t.method,bxe(t.params))}static encodeBlockchain(t){return(0,EA.createJsonRpcRequest)(t.method,vyn(t.params))}static encodeBlockResults(t){return(0,EA.createJsonRpcRequest)(t.method,bxe(t.params))}static encodeBlockSearch(t){return(0,EA.createJsonRpcRequest)(t.method,Ryn(t.params))}static encodeBroadcastTx(t){return(0,EA.createJsonRpcRequest)(t.method,Iyn(t.params))}static encodeCommit(t){return(0,EA.createJsonRpcRequest)(t.method,bxe(t.params))}static encodeGenesis(t){return(0,EA.createJsonRpcRequest)(t.method)}static encodeHealth(t){return(0,EA.createJsonRpcRequest)(t.method)}static encodeNumUnconfirmedTxs(t){return(0,EA.createJsonRpcRequest)(t.method)}static encodeStatus(t){return(0,EA.createJsonRpcRequest)(t.method)}static encodeSubscribe(t){let r={key:"tm.event",value:t.query.type},i=Eyn.buildQuery({tags:[r],raw:t.query.raw});return(0,EA.createJsonRpcRequest)("subscribe",{query:i})}static encodeTx(t){return(0,EA.createJsonRpcRequest)(t.method,Cyn(t.params))}static encodeTxSearch(t){return(0,EA.createJsonRpcRequest)(t.method,wyn(t.params))}static encodeValidators(t){return(0,EA.createJsonRpcRequest)(t.method,Oyn(t.params))}};ev.Params=Exe});var UQ=ir(LQ=>{"use strict";J();K();z();Object.defineProperty(LQ,"__esModule",{value:!0});LQ.BlockIdFlag=void 0;var Nyn;(function(e){e[e.Unknown=0]="Unknown",e[e.Absent=1]="Absent",e[e.Commit=2]="Commit",e[e.Nil=3]="Nil",e[e.Unrecognized=-1]="Unrecognized"})(Nyn=LQ.BlockIdFlag||(LQ.BlockIdFlag={}))});var Avt=ir(Y9=>{"use strict";J();K();z();Object.defineProperty(Y9,"__esModule",{value:!0});Y9.hashBlock=Y9.hashTx=void 0;var Sxe=$l(),y1=$te();function xyn(e){return(0,Sxe.sha256)(e)}Y9.hashTx=xyn;function Tyn(e){if(e<1)throw new Error("Cannot split an empty tree");let t=2**Math.floor(Math.log2(e));return t<e?t:t/2}function Byn(e){let t=new Sxe.Sha256(Uint8Array.from([0]));return t.update(e),t.digest()}function Myn(e,t){let r=new Sxe.Sha256(Uint8Array.from([1]));return r.update(e),r.update(t),r.digest()}function Rxe(e){switch(e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return Byn(e[0]);default:{let t=Tyn(e.length),r=Rxe(e.slice(0,t)),i=Rxe(e.slice(t));return Myn(r,i)}}}function Dyn(e){if(!e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");let t=[(0,y1.encodeVersion)(e.version),(0,y1.encodeString)(e.chainId),(0,y1.encodeUvarint)(e.height),(0,y1.encodeTime)(e.time),(0,y1.encodeBlockId)(e.lastBlockId),(0,y1.encodeBytes)(e.lastCommitHash),(0,y1.encodeBytes)(e.dataHash),(0,y1.encodeBytes)(e.validatorsHash),(0,y1.encodeBytes)(e.nextValidatorsHash),(0,y1.encodeBytes)(e.consensusHash),(0,y1.encodeBytes)(e.appHash),(0,y1.encodeBytes)(e.lastResultsHash),(0,y1.encodeBytes)(e.evidenceHash),(0,y1.encodeBytes)(e.proposerAddress)];return Rxe(t)}Y9.hashBlock=Dyn});var Svt=ir(J2=>{"use strict";J();K();z();Object.defineProperty(J2,"__esModule",{value:!0});J2.Responses=J2.decodeValidatorInfo=J2.decodeValidatorGenesis=J2.decodeValidatorUpdate=J2.decodeEvent=void 0;var es=Ps(),pvt=Uf(),FQ=IQ(),Ta=U5(),kyn=UQ(),Fn=$te(),Pyn=Avt();function Lyn(e){return{data:e.data,lastBlockHeight:(0,Fn.may)(Ta.apiToSmallInt,e.last_block_height),lastBlockAppHash:(0,Fn.may)(es.fromBase64,e.last_block_app_hash)}}function Uyn(e){return{ops:e.ops.map(t=>({type:t.type,key:(0,es.fromBase64)(t.key),data:(0,es.fromBase64)(t.data)}))}}function Fyn(e){return{key:(0,es.fromBase64)((0,Fn.assertString)(e.key??"")),value:(0,es.fromBase64)((0,Fn.assertString)(e.value??"")),proof:(0,Fn.may)(Uyn,e.proofOps),height:(0,Fn.may)(Ta.apiToSmallInt,e.height),code:(0,Fn.may)(Ta.apiToSmallInt,e.code),codespace:(0,Fn.assertString)(e.codespace??""),index:(0,Fn.may)(Ta.apiToSmallInt,e.index),log:e.log,info:(0,Fn.assertString)(e.info??"")}}function Qyn(e){return{key:(0,Fn.assertNotEmpty)(e.key),value:e.value??""}}function Hyn(e){return(0,Fn.assertArray)(e).map(Qyn)}function gvt(e){return{type:e.type,attributes:e.attributes?Hyn(e.attributes):[]}}J2.decodeEvent=gvt;function Ixe(e){return(0,Fn.assertArray)(e).map(gvt)}function W9(e){return{code:(0,Ta.apiToSmallInt)((0,Fn.assertNumber)(e.code??0)),codespace:e.codespace,log:e.log,data:(0,Fn.may)(es.fromBase64,e.data),events:e.events?Ixe(e.events):[],gasWanted:(0,Ta.apiToBigInt)(e.gas_wanted??"0"),gasUsed:(0,Ta.apiToBigInt)(e.gas_used??"0")}}function wxe(e){if("Sum"in e){let[[t,r]]=Object.entries(e.Sum.value);return(0,pvt.assert)(t==="ed25519"||t==="secp256k1",`unknown pubkey type: ${t}`),{algorithm:t,data:(0,es.fromBase64)((0,Fn.assertNotEmpty)(r))}}else switch(e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,es.fromBase64)((0,Fn.assertNotEmpty)(e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,es.fromBase64)((0,Fn.assertNotEmpty)(e.value))};default:throw new Error(`unknown pubkey type: ${e.type}`)}}function Gyn(e){return{maxBytes:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.max_bytes)),maxGas:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.max_gas))}}function qyn(e){return{maxAgeNumBlocks:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.max_age_num_blocks)),maxAgeDuration:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.max_age_duration))}}function _vt(e){return{block:Gyn((0,Fn.assertObject)(e.block)),evidence:qyn((0,Fn.assertObject)(e.evidence))}}function mvt(e){return{pubkey:wxe((0,Fn.assertObject)(e.pub_key)),votingPower:(0,Ta.apiToBigInt)(e.power??"0")}}J2.decodeValidatorUpdate=mvt;function Vyn(e){return{height:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.height)),results:(e.txs_results||[]).map(W9),validatorUpdates:(e.validator_updates||[]).map(mvt),consensusUpdates:(0,Fn.may)(_vt,e.consensus_param_updates),beginBlockEvents:Ixe(e.begin_block_events||[]),endBlockEvents:Ixe(e.end_block_events||[])}}function Wte(e){return{hash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.hash)),parts:{total:(0,Fn.assertNotEmpty)(e.parts.total),hash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.parts.hash))}}}function Jyn(e){return{block:(0,Ta.apiToSmallInt)(e.block),app:(0,Ta.apiToSmallInt)(e.app??0)}}function Xte(e){return{version:Jyn(e.version),chainId:(0,Fn.assertNotEmpty)(e.chain_id),height:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.height)),time:(0,FQ.fromRfc3339WithNanoseconds)((0,Fn.assertNotEmpty)(e.time)),lastBlockId:e.last_block_id.hash?Wte(e.last_block_id):null,lastCommitHash:(0,es.fromHex)((0,Fn.assertSet)(e.last_commit_hash)),dataHash:(0,es.fromHex)((0,Fn.assertSet)(e.data_hash)),validatorsHash:(0,es.fromHex)((0,Fn.assertSet)(e.validators_hash)),nextValidatorsHash:(0,es.fromHex)((0,Fn.assertSet)(e.next_validators_hash)),consensusHash:(0,es.fromHex)((0,Fn.assertSet)(e.consensus_hash)),appHash:(0,es.fromHex)((0,Fn.assertSet)(e.app_hash)),lastResultsHash:(0,es.fromHex)((0,Fn.assertSet)(e.last_results_hash)),evidenceHash:(0,es.fromHex)((0,Fn.assertSet)(e.evidence_hash)),proposerAddress:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.proposer_address))}}function zyn(e){return{blockId:Wte(e.block_id),blockSize:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.block_size)),header:Xte(e.header),numTxs:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.num_txs))}}function Kyn(e){return{lastHeight:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.last_height)),blockMetas:(0,Fn.assertArray)(e.block_metas).map(zyn)}}function $yn(e){return{...W9(e),hash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.hash))}}function Yyn(e){let t=e.tx_result?W9(e.tx_result):void 0;return{height:(0,Ta.apiToSmallInt)(e.height),hash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.hash)),checkTx:W9((0,Fn.assertObject)(e.check_tx)),deliverTx:t,txResult:t}}function Wyn(e){return(0,pvt.assert)(e in kyn.BlockIdFlag),e}function Xyn(e){return{blockIdFlag:Wyn(e.block_id_flag),validatorAddress:e.validator_address?(0,es.fromHex)(e.validator_address):void 0,timestamp:e.timestamp?(0,FQ.fromRfc3339WithNanoseconds)(e.timestamp):void 0,signature:e.signature?(0,es.fromBase64)(e.signature):void 0}}function yvt(e){return{blockId:Wte((0,Fn.assertObject)(e.block_id)),height:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.height)),round:(0,Ta.apiToSmallInt)(e.round),signatures:(0,Fn.assertArray)(e.signatures).map(Xyn)}}function Zyn(e){return{canonical:(0,Fn.assertBoolean)(e.canonical),header:Xte(e.signed_header.header),commit:yvt(e.signed_header.commit)}}function bvt(e){return{address:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.address)),pubkey:wxe((0,Fn.assertObject)(e.pub_key)),votingPower:(0,Ta.apiToBigInt)((0,Fn.assertNotEmpty)(e.power))}}J2.decodeValidatorGenesis=bvt;function jyn(e){return{genesisTime:(0,FQ.fromRfc3339WithNanoseconds)((0,Fn.assertNotEmpty)(e.genesis_time)),chainId:(0,Fn.assertNotEmpty)(e.chain_id),consensusParams:_vt(e.consensus_params),validators:e.validators?(0,Fn.assertArray)(e.validators).map(bvt):[],appHash:(0,es.fromHex)((0,Fn.assertSet)(e.app_hash)),appState:e.app_state}}function Oxe(e){return{pubkey:wxe((0,Fn.assertObject)(e.pub_key)),votingPower:(0,Ta.apiToBigInt)((0,Fn.assertNotEmpty)(e.voting_power)),address:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.address)),proposerPriority:e.proposer_priority?(0,Ta.apiToSmallInt)(e.proposer_priority):void 0}}J2.decodeValidatorInfo=Oxe;function ebn(e){return{id:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.id)),listenAddr:(0,Fn.assertNotEmpty)(e.listen_addr),network:(0,Fn.assertNotEmpty)(e.network),version:(0,Fn.assertString)(e.version),channels:(0,Fn.assertString)(e.channels),moniker:(0,Fn.assertNotEmpty)(e.moniker),other:(0,Fn.dictionaryToStringMap)(e.other),protocolVersion:{app:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.protocol_version.app)),block:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.protocol_version.block)),p2p:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.protocol_version.p2p))}}}function tbn(e){let t=e.earliest_block_height?(0,Ta.apiToSmallInt)(e.earliest_block_height):void 0,r=e.earliest_block_time?(0,FQ.fromRfc3339WithNanoseconds)(e.earliest_block_time):void 0;return{earliestAppHash:e.earliest_app_hash?(0,es.fromHex)(e.earliest_app_hash):void 0,earliestBlockHash:e.earliest_block_hash?(0,es.fromHex)(e.earliest_block_hash):void 0,earliestBlockHeight:t||void 0,earliestBlockTime:r?.getTime()?r:void 0,latestBlockHash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.latest_block_hash)),latestAppHash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.latest_app_hash)),latestBlockTime:(0,FQ.fromRfc3339WithNanoseconds)((0,Fn.assertNotEmpty)(e.latest_block_time)),latestBlockHeight:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.latest_block_height)),catchingUp:(0,Fn.assertBoolean)(e.catching_up)}}function rbn(e){return{nodeInfo:ebn(e.node_info),syncInfo:tbn(e.sync_info),validatorInfo:Oxe(e.validator_info)}}function nbn(e){return{data:(0,es.fromBase64)((0,Fn.assertNotEmpty)(e.data)),rootHash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.root_hash)),proof:{total:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.proof.total)),index:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.proof.index)),leafHash:(0,es.fromBase64)((0,Fn.assertNotEmpty)(e.proof.leaf_hash)),aunts:(0,Fn.assertArray)(e.proof.aunts).map(es.fromBase64)}}}function Evt(e){return{tx:(0,es.fromBase64)((0,Fn.assertNotEmpty)(e.tx)),result:W9((0,Fn.assertObject)(e.tx_result)),height:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.height)),index:(0,Ta.apiToSmallInt)((0,Fn.assertNumber)(e.index)),hash:(0,es.fromHex)((0,Fn.assertNotEmpty)(e.hash)),proof:(0,Fn.may)(nbn,e.proof)}}function ibn(e){return{totalCount:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.total_count)),txs:(0,Fn.assertArray)(e.txs).map(Evt)}}function obn(e){let t=(0,es.fromBase64)((0,Fn.assertNotEmpty)(e.tx));return{tx:t,hash:(0,Pyn.hashTx)(t),result:W9(e.result),height:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.height))}}function abn(e){return{blockHeight:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.block_height)),validators:(0,Fn.assertArray)(e.validators).map(Oxe),count:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.count)),total:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.total))}}function vvt(e){return{header:Xte((0,Fn.assertObject)(e.header)),lastCommit:e.last_commit.block_id.hash?yvt((0,Fn.assertObject)(e.last_commit)):null,txs:e.data.txs?(0,Fn.assertArray)(e.data.txs).map(es.fromBase64):[],evidence:e.evidence?.evidence??[]}}function Rvt(e){return{blockId:Wte(e.block_id),block:vvt(e.block)}}function sbn(e){return{totalCount:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.total_count)),blocks:(0,Fn.assertArray)(e.blocks).map(Rvt)}}function cbn(e){return{total:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.total)),totalBytes:(0,Ta.apiToSmallInt)((0,Fn.assertNotEmpty)(e.total_bytes))}}var Cxe=class e{static decodeAbciInfo(t){return Lyn((0,Fn.assertObject)(t.result.response))}static decodeAbciQuery(t){return Fyn((0,Fn.assertObject)(t.result.response))}static decodeBlock(t){return Rvt(t.result)}static decodeBlockResults(t){return Vyn(t.result)}static decodeBlockSearch(t){return sbn(t.result)}static decodeBlockchain(t){return Kyn(t.result)}static decodeBroadcastTxSync(t){return $yn(t.result)}static decodeBroadcastTxAsync(t){return e.decodeBroadcastTxSync(t)}static decodeBroadcastTxCommit(t){return Yyn(t.result)}static decodeCommit(t){return Zyn(t.result)}static decodeGenesis(t){return jyn((0,Fn.assertObject)(t.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(t){return cbn(t.result)}static decodeStatus(t){return rbn(t.result)}static decodeNewBlockEvent(t){return vvt(t.data.value.block)}static decodeNewBlockHeaderEvent(t){return Xte(t.data.value.header)}static decodeTxEvent(t){return obn(t.data.value.TxResult)}static decodeTx(t){return Evt(t.result)}static decodeTxSearch(t){return ibn(t.result)}static decodeValidators(t){return abn(t.result)}};J2.Responses=Cxe});var Ivt=ir(X9=>{"use strict";J();K();z();Object.defineProperty(X9,"__esModule",{value:!0});X9.Responses=X9.Params=void 0;var ubn=hvt();Object.defineProperty(X9,"Params",{enumerable:!0,get:function(){return ubn.Params}});var dbn=Svt();Object.defineProperty(X9,"Responses",{enumerable:!0,get:function(){return dbn.Responses}})});var Cvt=ir(tv=>{"use strict";J();K();z();var fbn=tv&&tv.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),lbn=tv&&tv.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),hbn=tv&&tv.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&fbn(t,e,r);return lbn(t,e),t};Object.defineProperty(tv,"__esModule",{value:!0});tv.Comet38Client=void 0;var Abn=T5(),Zte=kQ(),ls=Ivt(),D0=hbn(Yte()),Nxe=class e{static async connect(t){let r;typeof t=="object"?r=new Zte.HttpClient(t):r=t.startsWith("http://")||t.startsWith("https://")?new Zte.HttpClient(t):new Zte.WebsocketClient(t);let i=await this.detectVersion(r);return e.create(r)}static async create(t){return new e(t)}static async detectVersion(t){let r=(0,Abn.createJsonRpcRequest)(D0.Method.Status),n=(await t.execute(r)).result;if(!n||!n.node_info)throw new Error("Unrecognized format for status response");let o=n.node_info.version;if(typeof o!="string")throw new Error("Unrecognized version format: must be string");return o}constructor(t){this.client=t}disconnect(){this.client.disconnect()}async abciInfo(){let t={method:D0.Method.AbciInfo};return this.doCall(t,ls.Params.encodeAbciInfo,ls.Responses.decodeAbciInfo)}async abciQuery(t){let r={params:t,method:D0.Method.AbciQuery};return this.doCall(r,ls.Params.encodeAbciQuery,ls.Responses.decodeAbciQuery)}async block(t){let r={method:D0.Method.Block,params:{height:t}};return this.doCall(r,ls.Params.encodeBlock,ls.Responses.decodeBlock)}async blockResults(t){let r={method:D0.Method.BlockResults,params:{height:t}};return this.doCall(r,ls.Params.encodeBlockResults,ls.Responses.decodeBlockResults)}async blockSearch(t){let r={params:t,method:D0.Method.BlockSearch},i=await this.doCall(r,ls.Params.encodeBlockSearch,ls.Responses.decodeBlockSearch);return{...i,blocks:[...i.blocks].sort((n,o)=>n.block.header.height-o.block.header.height)}}async blockSearchAll(t){let r=t.page||1,i=[],n=!1;for(;!n;){let o=await this.blockSearch({...t,page:r});i.push(...o.blocks),i.length<o.totalCount?r++:n=!0}return i.sort((o,d)=>o.block.header.height-d.block.header.height),{totalCount:i.length,blocks:i}}async blockchain(t,r){let i={method:D0.Method.Blockchain,params:{minHeight:t,maxHeight:r}};return this.doCall(i,ls.Params.encodeBlockchain,ls.Responses.decodeBlockchain)}async broadcastTxSync(t){let r={params:t,method:D0.Method.BroadcastTxSync};return this.doCall(r,ls.Params.encodeBroadcastTx,ls.Responses.decodeBroadcastTxSync)}async broadcastTxAsync(t){let r={params:t,method:D0.Method.BroadcastTxAsync};return this.doCall(r,ls.Params.encodeBroadcastTx,ls.Responses.decodeBroadcastTxAsync)}async broadcastTxCommit(t){let r={params:t,method:D0.Method.BroadcastTxCommit};return this.doCall(r,ls.Params.encodeBroadcastTx,ls.Responses.decodeBroadcastTxCommit)}async commit(t){let r={method:D0.Method.Commit,params:{height:t}};return this.doCall(r,ls.Params.encodeCommit,ls.Responses.decodeCommit)}async genesis(){let t={method:D0.Method.Genesis};return this.doCall(t,ls.Params.encodeGenesis,ls.Responses.decodeGenesis)}async health(){let t={method:D0.Method.Health};return this.doCall(t,ls.Params.encodeHealth,ls.Responses.decodeHealth)}async numUnconfirmedTxs(){let t={method:D0.Method.NumUnconfirmedTxs};return this.doCall(t,ls.Params.encodeNumUnconfirmedTxs,ls.Responses.decodeNumUnconfirmedTxs)}async status(){let t={method:D0.Method.Status};return this.doCall(t,ls.Params.encodeStatus,ls.Responses.decodeStatus)}subscribeNewBlock(){let t={method:D0.Method.Subscribe,query:{type:D0.SubscriptionEventType.NewBlock}};return this.subscribe(t,ls.Responses.decodeNewBlockEvent)}subscribeNewBlockHeader(){let t={method:D0.Method.Subscribe,query:{type:D0.SubscriptionEventType.NewBlockHeader}};return this.subscribe(t,ls.Responses.decodeNewBlockHeaderEvent)}subscribeTx(t){let r={method:D0.Method.Subscribe,query:{type:D0.SubscriptionEventType.Tx,raw:t}};return this.subscribe(r,ls.Responses.decodeTxEvent)}async tx(t){let r={params:t,method:D0.Method.Tx};return this.doCall(r,ls.Params.encodeTx,ls.Responses.decodeTx)}async txSearch(t){let r={params:t,method:D0.Method.TxSearch};return this.doCall(r,ls.Params.encodeTxSearch,ls.Responses.decodeTxSearch)}async txSearchAll(t){let r=t.page||1,i=[],n=!1;for(;!n;){let o=await this.txSearch({...t,page:r});i.push(...o.txs),i.length<o.totalCount?r++:n=!0}return{totalCount:i.length,txs:i}}async validators(t){let r={method:D0.Method.Validators,params:t};return this.doCall(r,ls.Params.encodeValidators,ls.Responses.decodeValidators)}async validatorsAll(t){let r=[],i=1,n=!1,o=t;for(;!n;){let d=await this.validators({per_page:50,height:o,page:i});r.push(...d.validators),o=o||d.blockHeight,r.length<d.total?i++:n=!0}return{blockHeight:o??0,count:r.length,total:r.length,validators:r}}async doCall(t,r,i){let n=r(t),o=await this.client.execute(n);return i(o)}subscribe(t,r){if(!(0,Zte.instanceOfRpcStreamingClient)(this.client))throw new Error("This RPC client type cannot subscribe to events");let i=ls.Params.encodeSubscribe(t);return this.client.listen(i).map(o=>r(o))}};tv.Comet38Client=Nxe});var wvt=ir(PS=>{"use strict";J();K();z();Object.defineProperty(PS,"__esModule",{value:!0});PS.VoteType=PS.broadcastTxCommitSuccess=PS.broadcastTxSyncSuccess=void 0;function pbn(e){return e.code===0}PS.broadcastTxSyncSuccess=pbn;function gbn(e){return e.checkTx.code===0&&!!e.deliverTx&&e.deliverTx.code===0}PS.broadcastTxCommitSuccess=gbn;var _bn;(function(e){e[e.PreVote=1]="PreVote",e[e.PreCommit=2]="PreCommit"})(_bn=PS.VoteType||(PS.VoteType={}))});var jte=ir(b1=>{"use strict";J();K();z();Object.defineProperty(b1,"__esModule",{value:!0});b1.VoteType=b1.broadcastTxSyncSuccess=b1.broadcastTxCommitSuccess=b1.SubscriptionEventType=b1.Method=b1.Comet38Client=void 0;var mbn=Cvt();Object.defineProperty(b1,"Comet38Client",{enumerable:!0,get:function(){return mbn.Comet38Client}});var Ovt=Yte();Object.defineProperty(b1,"Method",{enumerable:!0,get:function(){return Ovt.Method}});Object.defineProperty(b1,"SubscriptionEventType",{enumerable:!0,get:function(){return Ovt.SubscriptionEventType}});var xxe=wvt();Object.defineProperty(b1,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return xxe.broadcastTxCommitSuccess}});Object.defineProperty(b1,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return xxe.broadcastTxSyncSuccess}});Object.defineProperty(b1,"VoteType",{enumerable:!0,get:function(){return xxe.VoteType}})});var ere=ir(rv=>{"use strict";J();K();z();Object.defineProperty(rv,"__esModule",{value:!0});rv.buildQuery=rv.SubscriptionEventType=rv.Method=void 0;var ybn;(function(e){e.AbciInfo="abci_info",e.AbciQuery="abci_query",e.Block="block",e.Blockchain="blockchain",e.BlockResults="block_results",e.BlockSearch="block_search",e.BroadcastTxAsync="broadcast_tx_async",e.BroadcastTxSync="broadcast_tx_sync",e.BroadcastTxCommit="broadcast_tx_commit",e.Commit="commit",e.Genesis="genesis",e.Health="health",e.NumUnconfirmedTxs="num_unconfirmed_txs",e.Status="status",e.Subscribe="subscribe",e.Tx="tx",e.TxSearch="tx_search",e.Validators="validators",e.Unsubscribe="unsubscribe"})(ybn=rv.Method||(rv.Method={}));var bbn;(function(e){e.NewBlock="NewBlock",e.NewBlockHeader="NewBlockHeader",e.Tx="Tx"})(bbn=rv.SubscriptionEventType||(rv.SubscriptionEventType={}));function Ebn(e){let r=(e.tags?e.tags:[]).map(n=>`${n.key}='${n.value}'`),i=e.raw?[e.raw]:[];return[...r,...i].join(" AND ")}rv.buildQuery=Ebn});var Nvt=ir(LS=>{"use strict";J();K();z();Object.defineProperty(LS,"__esModule",{value:!0});LS.VoteType=LS.broadcastTxCommitSuccess=LS.broadcastTxSyncSuccess=void 0;function vbn(e){return e.code===0}LS.broadcastTxSyncSuccess=vbn;function Rbn(e){return e.checkTx.code===0&&!!e.deliverTx&&e.deliverTx.code===0}LS.broadcastTxCommitSuccess=Rbn;var Sbn;(function(e){e[e.PreVote=1]="PreVote",e[e.PreCommit=2]="PreCommit"})(Sbn=LS.VoteType||(LS.VoteType={}))});var xvt=ir(nv=>{"use strict";J();K();z();var Ibn=nv&&nv.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),Cbn=nv&&nv.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),wbn=nv&&nv.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ibn(t,e,r);return Cbn(t,e),t};Object.defineProperty(nv,"__esModule",{value:!0});nv.Params=void 0;var Mxe=Ps(),xy=U5(),vA=T5(),E1=PQ(),Obn=wbn(ere());function Txe(e){return{height:(0,E1.may)(xy.smallIntToApi,e.height)}}function Nbn(e){return{minHeight:(0,E1.may)(xy.smallIntToApi,e.minHeight),maxHeight:(0,E1.may)(xy.smallIntToApi,e.maxHeight)}}function xbn(e){return{query:e.query,page:(0,E1.may)(xy.smallIntToApi,e.page),per_page:(0,E1.may)(xy.smallIntToApi,e.per_page),order_by:e.order_by}}function Tbn(e){return{path:(0,E1.assertNotEmpty)(e.path),data:(0,Mxe.toHex)(e.data),height:(0,E1.may)(xy.smallIntToApi,e.height),prove:e.prove}}function Bbn(e){return{tx:(0,Mxe.toBase64)((0,E1.assertNotEmpty)(e.tx))}}function Mbn(e){return{hash:(0,Mxe.toBase64)((0,E1.assertNotEmpty)(e.hash)),prove:e.prove}}function Dbn(e){return{query:e.query,prove:e.prove,page:(0,E1.may)(xy.smallIntToApi,e.page),per_page:(0,E1.may)(xy.smallIntToApi,e.per_page),order_by:e.order_by}}function kbn(e){return{height:(0,E1.may)(xy.smallIntToApi,e.height),page:(0,E1.may)(xy.smallIntToApi,e.page),per_page:(0,E1.may)(xy.smallIntToApi,e.per_page)}}var Bxe=class{static encodeAbciInfo(t){return(0,vA.createJsonRpcRequest)(t.method)}static encodeAbciQuery(t){return(0,vA.createJsonRpcRequest)(t.method,Tbn(t.params))}static encodeBlock(t){return(0,vA.createJsonRpcRequest)(t.method,Txe(t.params))}static encodeBlockchain(t){return(0,vA.createJsonRpcRequest)(t.method,Nbn(t.params))}static encodeBlockResults(t){return(0,vA.createJsonRpcRequest)(t.method,Txe(t.params))}static encodeBlockSearch(t){return(0,vA.createJsonRpcRequest)(t.method,xbn(t.params))}static encodeBroadcastTx(t){return(0,vA.createJsonRpcRequest)(t.method,Bbn(t.params))}static encodeCommit(t){return(0,vA.createJsonRpcRequest)(t.method,Txe(t.params))}static encodeGenesis(t){return(0,vA.createJsonRpcRequest)(t.method)}static encodeHealth(t){return(0,vA.createJsonRpcRequest)(t.method)}static encodeNumUnconfirmedTxs(t){return(0,vA.createJsonRpcRequest)(t.method)}static encodeStatus(t){return(0,vA.createJsonRpcRequest)(t.method)}static encodeSubscribe(t){let r={key:"tm.event",value:t.query.type},i=Obn.buildQuery({tags:[r],raw:t.query.raw});return(0,vA.createJsonRpcRequest)("subscribe",{query:i})}static encodeTx(t){return(0,vA.createJsonRpcRequest)(t.method,Mbn(t.params))}static encodeTxSearch(t){return(0,vA.createJsonRpcRequest)(t.method,Dbn(t.params))}static encodeValidators(t){return(0,vA.createJsonRpcRequest)(t.method,kbn(t.params))}};nv.Params=Bxe});var Tvt=ir(Z9=>{"use strict";J();K();z();Object.defineProperty(Z9,"__esModule",{value:!0});Z9.hashBlock=Z9.hashTx=void 0;var kxe=$l(),v1=PQ();function Pbn(e){return(0,kxe.sha256)(e)}Z9.hashTx=Pbn;function Lbn(e){if(e<1)throw new Error("Cannot split an empty tree");let t=2**Math.floor(Math.log2(e));return t<e?t:t/2}function Ubn(e){let t=new kxe.Sha256(Uint8Array.from([0]));return t.update(e),t.digest()}function Fbn(e,t){let r=new kxe.Sha256(Uint8Array.from([1]));return r.update(e),r.update(t),r.digest()}function Dxe(e){switch(e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return Ubn(e[0]);default:{let t=Lbn(e.length),r=Dxe(e.slice(0,t)),i=Dxe(e.slice(t));return Fbn(r,i)}}}function Qbn(e){if(!e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");let t=[(0,v1.encodeVersion)(e.version),(0,v1.encodeString)(e.chainId),(0,v1.encodeUvarint)(e.height),(0,v1.encodeTime)(e.time),(0,v1.encodeBlockId)(e.lastBlockId),(0,v1.encodeBytes)(e.lastCommitHash),(0,v1.encodeBytes)(e.dataHash),(0,v1.encodeBytes)(e.validatorsHash),(0,v1.encodeBytes)(e.nextValidatorsHash),(0,v1.encodeBytes)(e.consensusHash),(0,v1.encodeBytes)(e.appHash),(0,v1.encodeBytes)(e.lastResultsHash),(0,v1.encodeBytes)(e.evidenceHash),(0,v1.encodeBytes)(e.proposerAddress)];return Dxe(t)}Z9.hashBlock=Qbn});var Hvt=ir(z2=>{"use strict";J();K();z();Object.defineProperty(z2,"__esModule",{value:!0});z2.Responses=z2.decodeValidatorInfo=z2.decodeValidatorGenesis=z2.decodeValidatorUpdate=z2.decodeEvent=void 0;var Ba=Ps(),Bvt=Uf(),QQ=IQ(),Ma=U5(),Hbn=UQ(),Pn=PQ(),Gbn=Tvt();function qbn(e){return{data:e.data,lastBlockHeight:(0,Pn.may)(Ma.apiToSmallInt,e.last_block_height),lastBlockAppHash:(0,Pn.may)(Ba.fromBase64,e.last_block_app_hash)}}function Vbn(e){return{ops:e.ops.map(t=>({type:t.type,key:(0,Ba.fromBase64)(t.key),data:(0,Ba.fromBase64)(t.data)}))}}function Jbn(e){return{key:(0,Ba.fromBase64)((0,Pn.assertString)(e.key??"")),value:(0,Ba.fromBase64)((0,Pn.assertString)(e.value??"")),proof:(0,Pn.may)(Vbn,e.proofOps),height:(0,Pn.may)(Ma.apiToSmallInt,e.height),code:(0,Pn.may)(Ma.apiToSmallInt,e.code),codespace:(0,Pn.assertString)(e.codespace??""),index:(0,Pn.may)(Ma.apiToSmallInt,e.index),log:e.log,info:(0,Pn.assertString)(e.info??"")}}function zbn(e){return{key:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.key)),value:(0,Ba.fromBase64)((0,Pn.assertString)(e.value??""))}}function Kbn(e){return(0,Pn.assertArray)(e).map(zbn)}function Mvt(e){return{type:e.type,attributes:e.attributes?Kbn(e.attributes):[]}}z2.decodeEvent=Mvt;function Pxe(e){return(0,Pn.assertArray)(e).map(Mvt)}function j9(e){return{code:(0,Ma.apiToSmallInt)((0,Pn.assertNumber)(e.code??0)),codespace:e.codespace,log:e.log,data:(0,Pn.may)(Ba.fromBase64,e.data),events:e.events?Pxe(e.events):[],gasWanted:(0,Ma.apiToBigInt)(e.gas_wanted??"0"),gasUsed:(0,Ma.apiToBigInt)(e.gas_used??"0")}}function Uxe(e){if("Sum"in e){let[[t,r]]=Object.entries(e.Sum.value);return(0,Bvt.assert)(t==="ed25519"||t==="secp256k1",`unknown pubkey type: ${t}`),{algorithm:t,data:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(r))}}else switch(e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.value))};default:throw new Error(`unknown pubkey type: ${e.type}`)}}function $bn(e){return{maxBytes:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.max_bytes)),maxGas:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.max_gas))}}function Ybn(e){return{maxAgeNumBlocks:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.max_age_num_blocks)),maxAgeDuration:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.max_age_duration))}}function Dvt(e){return{block:$bn((0,Pn.assertObject)(e.block)),evidence:Ybn((0,Pn.assertObject)(e.evidence))}}function kvt(e){return{pubkey:Uxe((0,Pn.assertObject)(e.pub_key)),votingPower:(0,Ma.apiToBigInt)(e.power??"0")}}z2.decodeValidatorUpdate=kvt;function Wbn(e){return{height:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.height)),results:(e.txs_results||[]).map(j9),validatorUpdates:(e.validator_updates||[]).map(kvt),consensusUpdates:(0,Pn.may)(Dvt,e.consensus_param_updates),beginBlockEvents:Pxe(e.begin_block_events||[]),endBlockEvents:Pxe(e.end_block_events||[])}}function tre(e){return{hash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.hash)),parts:{total:(0,Pn.assertNotEmpty)(e.parts.total),hash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.parts.hash))}}}function Xbn(e){return{block:(0,Ma.apiToSmallInt)(e.block),app:(0,Ma.apiToSmallInt)(e.app??0)}}function rre(e){return{version:Xbn(e.version),chainId:(0,Pn.assertNotEmpty)(e.chain_id),height:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.height)),time:(0,QQ.fromRfc3339WithNanoseconds)((0,Pn.assertNotEmpty)(e.time)),lastBlockId:e.last_block_id.hash?tre(e.last_block_id):null,lastCommitHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.last_commit_hash)),dataHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.data_hash)),validatorsHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.validators_hash)),nextValidatorsHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.next_validators_hash)),consensusHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.consensus_hash)),appHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.app_hash)),lastResultsHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.last_results_hash)),evidenceHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.evidence_hash)),proposerAddress:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.proposer_address))}}function Zbn(e){return{blockId:tre(e.block_id),blockSize:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.block_size)),header:rre(e.header),numTxs:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.num_txs))}}function jbn(e){return{lastHeight:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.last_height)),blockMetas:(0,Pn.assertArray)(e.block_metas).map(Zbn)}}function eEn(e){return{...j9(e),hash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.hash))}}function tEn(e){return{height:(0,Ma.apiToSmallInt)(e.height),hash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.hash)),checkTx:j9((0,Pn.assertObject)(e.check_tx)),deliverTx:(0,Pn.may)(j9,e.deliver_tx)}}function rEn(e){return(0,Bvt.assert)(e in Hbn.BlockIdFlag),e}function nEn(e){return{blockIdFlag:rEn(e.block_id_flag),validatorAddress:e.validator_address?(0,Ba.fromHex)(e.validator_address):void 0,timestamp:e.timestamp?(0,QQ.fromRfc3339WithNanoseconds)(e.timestamp):void 0,signature:e.signature?(0,Ba.fromBase64)(e.signature):void 0}}function Pvt(e){return{blockId:tre((0,Pn.assertObject)(e.block_id)),height:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.height)),round:(0,Ma.apiToSmallInt)(e.round),signatures:(0,Pn.assertArray)(e.signatures).map(nEn)}}function iEn(e){return{canonical:(0,Pn.assertBoolean)(e.canonical),header:rre(e.signed_header.header),commit:Pvt(e.signed_header.commit)}}function Lvt(e){return{address:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.address)),pubkey:Uxe((0,Pn.assertObject)(e.pub_key)),votingPower:(0,Ma.apiToBigInt)((0,Pn.assertNotEmpty)(e.power))}}z2.decodeValidatorGenesis=Lvt;function oEn(e){return{genesisTime:(0,QQ.fromRfc3339WithNanoseconds)((0,Pn.assertNotEmpty)(e.genesis_time)),chainId:(0,Pn.assertNotEmpty)(e.chain_id),consensusParams:Dvt(e.consensus_params),validators:e.validators?(0,Pn.assertArray)(e.validators).map(Lvt):[],appHash:(0,Ba.fromHex)((0,Pn.assertSet)(e.app_hash)),appState:e.app_state}}function Fxe(e){return{pubkey:Uxe((0,Pn.assertObject)(e.pub_key)),votingPower:(0,Ma.apiToBigInt)((0,Pn.assertNotEmpty)(e.voting_power)),address:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.address)),proposerPriority:e.proposer_priority?(0,Ma.apiToSmallInt)(e.proposer_priority):void 0}}z2.decodeValidatorInfo=Fxe;function aEn(e){return{id:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.id)),listenAddr:(0,Pn.assertNotEmpty)(e.listen_addr),network:(0,Pn.assertNotEmpty)(e.network),version:(0,Pn.assertString)(e.version),channels:(0,Pn.assertNotEmpty)(e.channels),moniker:(0,Pn.assertNotEmpty)(e.moniker),other:(0,Pn.dictionaryToStringMap)(e.other),protocolVersion:{app:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.protocol_version.app)),block:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.protocol_version.block)),p2p:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.protocol_version.p2p))}}}function sEn(e){let t=e.earliest_block_height?(0,Ma.apiToSmallInt)(e.earliest_block_height):void 0,r=e.earliest_block_time?(0,QQ.fromRfc3339WithNanoseconds)(e.earliest_block_time):void 0;return{earliestAppHash:e.earliest_app_hash?(0,Ba.fromHex)(e.earliest_app_hash):void 0,earliestBlockHash:e.earliest_block_hash?(0,Ba.fromHex)(e.earliest_block_hash):void 0,earliestBlockHeight:t||void 0,earliestBlockTime:r?.getTime()?r:void 0,latestBlockHash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.latest_block_hash)),latestAppHash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.latest_app_hash)),latestBlockTime:(0,QQ.fromRfc3339WithNanoseconds)((0,Pn.assertNotEmpty)(e.latest_block_time)),latestBlockHeight:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.latest_block_height)),catchingUp:(0,Pn.assertBoolean)(e.catching_up)}}function cEn(e){return{nodeInfo:aEn(e.node_info),syncInfo:sEn(e.sync_info),validatorInfo:Fxe(e.validator_info)}}function uEn(e){return{data:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.data)),rootHash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.root_hash)),proof:{total:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.proof.total)),index:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.proof.index)),leafHash:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.proof.leaf_hash)),aunts:(0,Pn.assertArray)(e.proof.aunts).map(Ba.fromBase64)}}}function Uvt(e){return{tx:(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.tx)),result:j9((0,Pn.assertObject)(e.tx_result)),height:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.height)),index:(0,Ma.apiToSmallInt)((0,Pn.assertNumber)(e.index)),hash:(0,Ba.fromHex)((0,Pn.assertNotEmpty)(e.hash)),proof:(0,Pn.may)(uEn,e.proof)}}function dEn(e){return{totalCount:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.total_count)),txs:(0,Pn.assertArray)(e.txs).map(Uvt)}}function fEn(e){let t=(0,Ba.fromBase64)((0,Pn.assertNotEmpty)(e.tx));return{tx:t,hash:(0,Gbn.hashTx)(t),result:j9(e.result),height:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.height))}}function lEn(e){return{blockHeight:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.block_height)),validators:(0,Pn.assertArray)(e.validators).map(Fxe),count:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.count)),total:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.total))}}function Fvt(e){return{header:rre((0,Pn.assertObject)(e.header)),lastCommit:e.last_commit.block_id.hash?Pvt((0,Pn.assertObject)(e.last_commit)):null,txs:e.data.txs?(0,Pn.assertArray)(e.data.txs).map(Ba.fromBase64):[],evidence:e.evidence?.evidence??[]}}function Qvt(e){return{blockId:tre(e.block_id),block:Fvt(e.block)}}function hEn(e){return{totalCount:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.total_count)),blocks:(0,Pn.assertArray)(e.blocks).map(Qvt)}}function AEn(e){return{total:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.total)),totalBytes:(0,Ma.apiToSmallInt)((0,Pn.assertNotEmpty)(e.total_bytes))}}var Lxe=class e{static decodeAbciInfo(t){return qbn((0,Pn.assertObject)(t.result.response))}static decodeAbciQuery(t){return Jbn((0,Pn.assertObject)(t.result.response))}static decodeBlock(t){return Qvt(t.result)}static decodeBlockResults(t){return Wbn(t.result)}static decodeBlockSearch(t){return hEn(t.result)}static decodeBlockchain(t){return jbn(t.result)}static decodeBroadcastTxSync(t){return eEn(t.result)}static decodeBroadcastTxAsync(t){return e.decodeBroadcastTxSync(t)}static decodeBroadcastTxCommit(t){return tEn(t.result)}static decodeCommit(t){return iEn(t.result)}static decodeGenesis(t){return oEn((0,Pn.assertObject)(t.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(t){return AEn(t.result)}static decodeStatus(t){return cEn(t.result)}static decodeNewBlockEvent(t){return Fvt(t.data.value.block)}static decodeNewBlockHeaderEvent(t){return rre(t.data.value.header)}static decodeTxEvent(t){return fEn(t.data.value.TxResult)}static decodeTx(t){return Uvt(t.result)}static decodeTxSearch(t){return dEn(t.result)}static decodeValidators(t){return lEn(t.result)}};z2.Responses=Lxe});var Gvt=ir(eM=>{"use strict";J();K();z();Object.defineProperty(eM,"__esModule",{value:!0});eM.Responses=eM.Params=void 0;var pEn=xvt();Object.defineProperty(eM,"Params",{enumerable:!0,get:function(){return pEn.Params}});var gEn=Hvt();Object.defineProperty(eM,"Responses",{enumerable:!0,get:function(){return gEn.Responses}})});var qvt=ir(iv=>{"use strict";J();K();z();var _En=iv&&iv.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),mEn=iv&&iv.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),yEn=iv&&iv.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_En(t,e,r);return mEn(t,e),t};Object.defineProperty(iv,"__esModule",{value:!0});iv.Tendermint34Client=void 0;var bEn=T5(),nre=kQ(),hs=Gvt(),k0=yEn(ere()),Qxe=class e{static async connect(t){let r;typeof t=="object"?r=new nre.HttpClient(t):r=t.startsWith("http://")||t.startsWith("https://")?new nre.HttpClient(t):new nre.WebsocketClient(t);let i=await this.detectVersion(r);return e.create(r)}static async create(t){return new e(t)}static async detectVersion(t){let r=(0,bEn.createJsonRpcRequest)(k0.Method.Status),n=(await t.execute(r)).result;if(!n||!n.node_info)throw new Error("Unrecognized format for status response");let o=n.node_info.version;if(typeof o!="string")throw new Error("Unrecognized version format: must be string");return o}constructor(t){this.client=t}disconnect(){this.client.disconnect()}async abciInfo(){let t={method:k0.Method.AbciInfo};return this.doCall(t,hs.Params.encodeAbciInfo,hs.Responses.decodeAbciInfo)}async abciQuery(t){let r={params:t,method:k0.Method.AbciQuery};return this.doCall(r,hs.Params.encodeAbciQuery,hs.Responses.decodeAbciQuery)}async block(t){let r={method:k0.Method.Block,params:{height:t}};return this.doCall(r,hs.Params.encodeBlock,hs.Responses.decodeBlock)}async blockResults(t){let r={method:k0.Method.BlockResults,params:{height:t}};return this.doCall(r,hs.Params.encodeBlockResults,hs.Responses.decodeBlockResults)}async blockSearch(t){let r={params:t,method:k0.Method.BlockSearch},i=await this.doCall(r,hs.Params.encodeBlockSearch,hs.Responses.decodeBlockSearch);return{...i,blocks:[...i.blocks].sort((n,o)=>n.block.header.height-o.block.header.height)}}async blockSearchAll(t){let r=t.page||1,i=[],n=!1;for(;!n;){let o=await this.blockSearch({...t,page:r});i.push(...o.blocks),i.length<o.totalCount?r++:n=!0}return i.sort((o,d)=>o.block.header.height-d.block.header.height),{totalCount:i.length,blocks:i}}async blockchain(t,r){let i={method:k0.Method.Blockchain,params:{minHeight:t,maxHeight:r}};return this.doCall(i,hs.Params.encodeBlockchain,hs.Responses.decodeBlockchain)}async broadcastTxSync(t){let r={params:t,method:k0.Method.BroadcastTxSync};return this.doCall(r,hs.Params.encodeBroadcastTx,hs.Responses.decodeBroadcastTxSync)}async broadcastTxAsync(t){let r={params:t,method:k0.Method.BroadcastTxAsync};return this.doCall(r,hs.Params.encodeBroadcastTx,hs.Responses.decodeBroadcastTxAsync)}async broadcastTxCommit(t){let r={params:t,method:k0.Method.BroadcastTxCommit};return this.doCall(r,hs.Params.encodeBroadcastTx,hs.Responses.decodeBroadcastTxCommit)}async commit(t){let r={method:k0.Method.Commit,params:{height:t}};return this.doCall(r,hs.Params.encodeCommit,hs.Responses.decodeCommit)}async genesis(){let t={method:k0.Method.Genesis};return this.doCall(t,hs.Params.encodeGenesis,hs.Responses.decodeGenesis)}async health(){let t={method:k0.Method.Health};return this.doCall(t,hs.Params.encodeHealth,hs.Responses.decodeHealth)}async numUnconfirmedTxs(){let t={method:k0.Method.NumUnconfirmedTxs};return this.doCall(t,hs.Params.encodeNumUnconfirmedTxs,hs.Responses.decodeNumUnconfirmedTxs)}async status(){let t={method:k0.Method.Status};return this.doCall(t,hs.Params.encodeStatus,hs.Responses.decodeStatus)}subscribeNewBlock(){let t={method:k0.Method.Subscribe,query:{type:k0.SubscriptionEventType.NewBlock}};return this.subscribe(t,hs.Responses.decodeNewBlockEvent)}subscribeNewBlockHeader(){let t={method:k0.Method.Subscribe,query:{type:k0.SubscriptionEventType.NewBlockHeader}};return this.subscribe(t,hs.Responses.decodeNewBlockHeaderEvent)}subscribeTx(t){let r={method:k0.Method.Subscribe,query:{type:k0.SubscriptionEventType.Tx,raw:t}};return this.subscribe(r,hs.Responses.decodeTxEvent)}async tx(t){let r={params:t,method:k0.Method.Tx};return this.doCall(r,hs.Params.encodeTx,hs.Responses.decodeTx)}async txSearch(t){let r={params:t,method:k0.Method.TxSearch};return this.doCall(r,hs.Params.encodeTxSearch,hs.Responses.decodeTxSearch)}async txSearchAll(t){let r=t.page||1,i=[],n=!1;for(;!n;){let o=await this.txSearch({...t,page:r});i.push(...o.txs),i.length<o.totalCount?r++:n=!0}return{totalCount:i.length,txs:i}}async validators(t){let r={method:k0.Method.Validators,params:t};return this.doCall(r,hs.Params.encodeValidators,hs.Responses.decodeValidators)}async validatorsAll(t){let r=[],i=1,n=!1,o=t;for(;!n;){let d=await this.validators({per_page:50,height:o,page:i});r.push(...d.validators),o=o||d.blockHeight,r.length<d.total?i++:n=!0}return{blockHeight:o??0,count:r.length,total:r.length,validators:r}}async doCall(t,r,i){let n=r(t),o=await this.client.execute(n);return i(o)}subscribe(t,r){if(!(0,nre.instanceOfRpcStreamingClient)(this.client))throw new Error("This RPC client type cannot subscribe to events");let i=hs.Params.encodeSubscribe(t);return this.client.listen(i).map(o=>r(o))}};iv.Tendermint34Client=Qxe});var HQ=ir(R1=>{"use strict";J();K();z();Object.defineProperty(R1,"__esModule",{value:!0});R1.Tendermint34Client=R1.VoteType=R1.broadcastTxSyncSuccess=R1.broadcastTxCommitSuccess=R1.SubscriptionEventType=R1.Method=void 0;var Vvt=ere();Object.defineProperty(R1,"Method",{enumerable:!0,get:function(){return Vvt.Method}});Object.defineProperty(R1,"SubscriptionEventType",{enumerable:!0,get:function(){return Vvt.SubscriptionEventType}});var Hxe=Nvt();Object.defineProperty(R1,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return Hxe.broadcastTxCommitSuccess}});Object.defineProperty(R1,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return Hxe.broadcastTxSyncSuccess}});Object.defineProperty(R1,"VoteType",{enumerable:!0,get:function(){return Hxe.VoteType}});var EEn=qvt();Object.defineProperty(R1,"Tendermint34Client",{enumerable:!0,get:function(){return EEn.Tendermint34Client}})});var ire=ir(ov=>{"use strict";J();K();z();Object.defineProperty(ov,"__esModule",{value:!0});ov.buildQuery=ov.SubscriptionEventType=ov.Method=void 0;var vEn;(function(e){e.AbciInfo="abci_info",e.AbciQuery="abci_query",e.Block="block",e.Blockchain="blockchain",e.BlockResults="block_results",e.BlockSearch="block_search",e.BroadcastTxAsync="broadcast_tx_async",e.BroadcastTxSync="broadcast_tx_sync",e.BroadcastTxCommit="broadcast_tx_commit",e.Commit="commit",e.Genesis="genesis",e.Health="health",e.NumUnconfirmedTxs="num_unconfirmed_txs",e.Status="status",e.Subscribe="subscribe",e.Tx="tx",e.TxSearch="tx_search",e.Validators="validators",e.Unsubscribe="unsubscribe"})(vEn=ov.Method||(ov.Method={}));var REn;(function(e){e.NewBlock="NewBlock",e.NewBlockHeader="NewBlockHeader",e.Tx="Tx"})(REn=ov.SubscriptionEventType||(ov.SubscriptionEventType={}));function SEn(e){let r=(e.tags?e.tags:[]).map(n=>`${n.key}='${n.value}'`),i=e.raw?[e.raw]:[];return[...r,...i].join(" AND ")}ov.buildQuery=SEn});var Jvt=ir(US=>{"use strict";J();K();z();Object.defineProperty(US,"__esModule",{value:!0});US.VoteType=US.broadcastTxCommitSuccess=US.broadcastTxSyncSuccess=void 0;function IEn(e){return e.code===0}US.broadcastTxSyncSuccess=IEn;function CEn(e){return e.checkTx.code===0&&!!e.deliverTx&&e.deliverTx.code===0}US.broadcastTxCommitSuccess=CEn;var wEn;(function(e){e[e.PreVote=1]="PreVote",e[e.PreCommit=2]="PreCommit"})(wEn=US.VoteType||(US.VoteType={}))});var ore=ir(_c=>{"use strict";J();K();z();Object.defineProperty(_c,"__esModule",{value:!0});_c.encodeBlockId=_c.encodeVersion=_c.encodeBytes=_c.encodeTime=_c.encodeUvarint=_c.encodeString=_c.dictionaryToStringMap=_c.may=_c.assertNotEmpty=_c.assertObject=_c.assertArray=_c.assertNumber=_c.assertString=_c.assertBoolean=_c.assertSet=void 0;var OEn=Ps();function Q5(e){if(e===void 0)throw new Error("Value must not be undefined");if(e===null)throw new Error("Value must not be null");return e}_c.assertSet=Q5;function NEn(e){if(Q5(e),typeof e!="boolean")throw new Error("Value must be a boolean");return e}_c.assertBoolean=NEn;function xEn(e){if(Q5(e),typeof e!="string")throw new Error("Value must be a string");return e}_c.assertString=xEn;function TEn(e){if(Q5(e),typeof e!="number")throw new Error("Value must be a number");return e}_c.assertNumber=TEn;function BEn(e){if(Q5(e),!Array.isArray(e))throw new Error("Value must be a an array");return e}_c.assertArray=BEn;function MEn(e){if(Q5(e),typeof e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(e)!=="[object Object]")throw new Error("Value must be a simple object");return e}_c.assertObject=MEn;function DEn(e){if(Q5(e),typeof e=="number"&&e===0)throw new Error("must provide a non-zero value");if(e.length===0)throw new Error("must provide a non-empty value");return e}_c.assertNotEmpty=DEn;function kEn(e,t){return t==null?void 0:e(t)}_c.may=kEn;function PEn(e){let t=new Map;for(let r of Object.keys(e)){let i=e[r];if(typeof i!="string")throw new Error("Found dictionary value of type other than string");t.set(r,i)}return t}_c.dictionaryToStringMap=PEn;function LEn(e){let t=(0,OEn.toUtf8)(e);return Uint8Array.from([t.length,...t])}_c.encodeString=LEn;function tM(e){return e>=128?Uint8Array.from([e&255|128,...tM(e>>7)]):Uint8Array.from([e&255])}_c.encodeUvarint=tM;function UEn(e){let t=e.getTime(),r=Math.floor(t/1e3),i=r?[8,...tM(r)]:new Uint8Array,n=(e.nanoseconds||0)+t%1e3*1e6,o=n?[16,...tM(n)]:new Uint8Array;return Uint8Array.from([...i,...o])}_c.encodeTime=UEn;function FEn(e){if(e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return e.length?Uint8Array.from([e.length,...e]):new Uint8Array}_c.encodeBytes=FEn;function QEn(e){let t=e.block?Uint8Array.from([8,...tM(e.block)]):new Uint8Array,r=e.app?Uint8Array.from([16,...tM(e.app)]):new Uint8Array;return Uint8Array.from([...t,...r])}_c.encodeVersion=QEn;function HEn(e){return Uint8Array.from([10,e.hash.length,...e.hash,18,e.parts.hash.length+4,8,e.parts.total,18,e.parts.hash.length,...e.parts.hash])}_c.encodeBlockId=HEn});var zvt=ir(av=>{"use strict";J();K();z();var GEn=av&&av.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),qEn=av&&av.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),VEn=av&&av.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&GEn(t,e,r);return qEn(t,e),t};Object.defineProperty(av,"__esModule",{value:!0});av.Params=void 0;var Vxe=Ps(),Ty=U5(),RA=T5(),S1=ore(),JEn=VEn(ire());function Gxe(e){return{height:(0,S1.may)(Ty.smallIntToApi,e.height)}}function zEn(e){return{minHeight:(0,S1.may)(Ty.smallIntToApi,e.minHeight),maxHeight:(0,S1.may)(Ty.smallIntToApi,e.maxHeight)}}function KEn(e){return{query:e.query,page:(0,S1.may)(Ty.smallIntToApi,e.page),per_page:(0,S1.may)(Ty.smallIntToApi,e.per_page),order_by:e.order_by}}function $En(e){return{path:(0,S1.assertNotEmpty)(e.path),data:(0,Vxe.toHex)(e.data),height:(0,S1.may)(Ty.smallIntToApi,e.height),prove:e.prove}}function YEn(e){return{tx:(0,Vxe.toBase64)((0,S1.assertNotEmpty)(e.tx))}}function WEn(e){return{hash:(0,Vxe.toBase64)((0,S1.assertNotEmpty)(e.hash)),prove:e.prove}}function XEn(e){return{query:e.query,prove:e.prove,page:(0,S1.may)(Ty.smallIntToApi,e.page),per_page:(0,S1.may)(Ty.smallIntToApi,e.per_page),order_by:e.order_by}}function ZEn(e){return{height:(0,S1.may)(Ty.smallIntToApi,e.height),page:(0,S1.may)(Ty.smallIntToApi,e.page),per_page:(0,S1.may)(Ty.smallIntToApi,e.per_page)}}var qxe=class{static encodeAbciInfo(t){return(0,RA.createJsonRpcRequest)(t.method)}static encodeAbciQuery(t){return(0,RA.createJsonRpcRequest)(t.method,$En(t.params))}static encodeBlock(t){return(0,RA.createJsonRpcRequest)(t.method,Gxe(t.params))}static encodeBlockchain(t){return(0,RA.createJsonRpcRequest)(t.method,zEn(t.params))}static encodeBlockResults(t){return(0,RA.createJsonRpcRequest)(t.method,Gxe(t.params))}static encodeBlockSearch(t){return(0,RA.createJsonRpcRequest)(t.method,KEn(t.params))}static encodeBroadcastTx(t){return(0,RA.createJsonRpcRequest)(t.method,YEn(t.params))}static encodeCommit(t){return(0,RA.createJsonRpcRequest)(t.method,Gxe(t.params))}static encodeGenesis(t){return(0,RA.createJsonRpcRequest)(t.method)}static encodeHealth(t){return(0,RA.createJsonRpcRequest)(t.method)}static encodeNumUnconfirmedTxs(t){return(0,RA.createJsonRpcRequest)(t.method)}static encodeStatus(t){return(0,RA.createJsonRpcRequest)(t.method)}static encodeSubscribe(t){let r={key:"tm.event",value:t.query.type},i=JEn.buildQuery({tags:[r],raw:t.query.raw});return(0,RA.createJsonRpcRequest)("subscribe",{query:i})}static encodeTx(t){return(0,RA.createJsonRpcRequest)(t.method,WEn(t.params))}static encodeTxSearch(t){return(0,RA.createJsonRpcRequest)(t.method,XEn(t.params))}static encodeValidators(t){return(0,RA.createJsonRpcRequest)(t.method,ZEn(t.params))}};av.Params=qxe});var Kvt=ir(rM=>{"use strict";J();K();z();Object.defineProperty(rM,"__esModule",{value:!0});rM.hashBlock=rM.hashTx=void 0;var zxe=$l(),I1=ore();function jEn(e){return(0,zxe.sha256)(e)}rM.hashTx=jEn;function evn(e){if(e<1)throw new Error("Cannot split an empty tree");let t=2**Math.floor(Math.log2(e));return t<e?t:t/2}function tvn(e){let t=new zxe.Sha256(Uint8Array.from([0]));return t.update(e),t.digest()}function rvn(e,t){let r=new zxe.Sha256(Uint8Array.from([1]));return r.update(e),r.update(t),r.digest()}function Jxe(e){switch(e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return tvn(e[0]);default:{let t=evn(e.length),r=Jxe(e.slice(0,t)),i=Jxe(e.slice(t));return rvn(r,i)}}}function nvn(e){if(!e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");let t=[(0,I1.encodeVersion)(e.version),(0,I1.encodeString)(e.chainId),(0,I1.encodeUvarint)(e.height),(0,I1.encodeTime)(e.time),(0,I1.encodeBlockId)(e.lastBlockId),(0,I1.encodeBytes)(e.lastCommitHash),(0,I1.encodeBytes)(e.dataHash),(0,I1.encodeBytes)(e.validatorsHash),(0,I1.encodeBytes)(e.nextValidatorsHash),(0,I1.encodeBytes)(e.consensusHash),(0,I1.encodeBytes)(e.appHash),(0,I1.encodeBytes)(e.lastResultsHash),(0,I1.encodeBytes)(e.evidenceHash),(0,I1.encodeBytes)(e.proposerAddress)];return Jxe(t)}rM.hashBlock=nvn});var nRt=ir(K2=>{"use strict";J();K();z();Object.defineProperty(K2,"__esModule",{value:!0});K2.Responses=K2.decodeValidatorInfo=K2.decodeValidatorGenesis=K2.decodeValidatorUpdate=K2.decodeEvent=void 0;var ts=Ps(),$vt=Uf(),GQ=IQ(),Da=U5(),ivn=UQ(),Ln=ore(),ovn=Kvt();function avn(e){return{data:e.data,lastBlockHeight:(0,Ln.may)(Da.apiToSmallInt,e.last_block_height),lastBlockAppHash:(0,Ln.may)(ts.fromBase64,e.last_block_app_hash)}}function svn(e){return{ops:e.ops.map(t=>({type:t.type,key:(0,ts.fromBase64)(t.key),data:(0,ts.fromBase64)(t.data)}))}}function cvn(e){return{key:(0,ts.fromBase64)((0,Ln.assertString)(e.key??"")),value:(0,ts.fromBase64)((0,Ln.assertString)(e.value??"")),proof:(0,Ln.may)(svn,e.proofOps),height:(0,Ln.may)(Da.apiToSmallInt,e.height),code:(0,Ln.may)(Da.apiToSmallInt,e.code),codespace:(0,Ln.assertString)(e.codespace??""),index:(0,Ln.may)(Da.apiToSmallInt,e.index),log:e.log,info:(0,Ln.assertString)(e.info??"")}}function uvn(e){return{key:(0,Ln.assertNotEmpty)(e.key),value:e.value??""}}function dvn(e){return(0,Ln.assertArray)(e).map(uvn)}function Yvt(e){return{type:e.type,attributes:e.attributes?dvn(e.attributes):[]}}K2.decodeEvent=Yvt;function Kxe(e){return(0,Ln.assertArray)(e).map(Yvt)}function nM(e){return{code:(0,Da.apiToSmallInt)((0,Ln.assertNumber)(e.code??0)),codespace:e.codespace,log:e.log,data:(0,Ln.may)(ts.fromBase64,e.data),events:e.events?Kxe(e.events):[],gasWanted:(0,Da.apiToBigInt)(e.gas_wanted??"0"),gasUsed:(0,Da.apiToBigInt)(e.gas_used??"0")}}function Yxe(e){if("Sum"in e){let[[t,r]]=Object.entries(e.Sum.value);return(0,$vt.assert)(t==="ed25519"||t==="secp256k1",`unknown pubkey type: ${t}`),{algorithm:t,data:(0,ts.fromBase64)((0,Ln.assertNotEmpty)(r))}}else switch(e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,ts.fromBase64)((0,Ln.assertNotEmpty)(e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,ts.fromBase64)((0,Ln.assertNotEmpty)(e.value))};default:throw new Error(`unknown pubkey type: ${e.type}`)}}function fvn(e){return{maxBytes:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.max_bytes)),maxGas:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.max_gas))}}function lvn(e){return{maxAgeNumBlocks:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.max_age_num_blocks)),maxAgeDuration:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.max_age_duration))}}function Wvt(e){return{block:fvn((0,Ln.assertObject)(e.block)),evidence:lvn((0,Ln.assertObject)(e.evidence))}}function Xvt(e){return{pubkey:Yxe((0,Ln.assertObject)(e.pub_key)),votingPower:(0,Da.apiToBigInt)(e.power??"0")}}K2.decodeValidatorUpdate=Xvt;function hvn(e){return{height:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.height)),results:(e.txs_results||[]).map(nM),validatorUpdates:(e.validator_updates||[]).map(Xvt),consensusUpdates:(0,Ln.may)(Wvt,e.consensus_param_updates),beginBlockEvents:Kxe(e.begin_block_events||[]),endBlockEvents:Kxe(e.end_block_events||[])}}function are(e){return{hash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.hash)),parts:{total:(0,Ln.assertNotEmpty)(e.parts.total),hash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.parts.hash))}}}function Avn(e){return{block:(0,Da.apiToSmallInt)(e.block),app:(0,Da.apiToSmallInt)(e.app??0)}}function sre(e){return{version:Avn(e.version),chainId:(0,Ln.assertNotEmpty)(e.chain_id),height:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.height)),time:(0,GQ.fromRfc3339WithNanoseconds)((0,Ln.assertNotEmpty)(e.time)),lastBlockId:e.last_block_id.hash?are(e.last_block_id):null,lastCommitHash:(0,ts.fromHex)((0,Ln.assertSet)(e.last_commit_hash)),dataHash:(0,ts.fromHex)((0,Ln.assertSet)(e.data_hash)),validatorsHash:(0,ts.fromHex)((0,Ln.assertSet)(e.validators_hash)),nextValidatorsHash:(0,ts.fromHex)((0,Ln.assertSet)(e.next_validators_hash)),consensusHash:(0,ts.fromHex)((0,Ln.assertSet)(e.consensus_hash)),appHash:(0,ts.fromHex)((0,Ln.assertSet)(e.app_hash)),lastResultsHash:(0,ts.fromHex)((0,Ln.assertSet)(e.last_results_hash)),evidenceHash:(0,ts.fromHex)((0,Ln.assertSet)(e.evidence_hash)),proposerAddress:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.proposer_address))}}function pvn(e){return{blockId:are(e.block_id),blockSize:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.block_size)),header:sre(e.header),numTxs:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.num_txs))}}function gvn(e){return{lastHeight:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.last_height)),blockMetas:(0,Ln.assertArray)(e.block_metas).map(pvn)}}function _vn(e){return{...nM(e),hash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.hash))}}function mvn(e){return{height:(0,Da.apiToSmallInt)(e.height),hash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.hash)),checkTx:nM((0,Ln.assertObject)(e.check_tx)),deliverTx:(0,Ln.may)(nM,e.deliver_tx)}}function yvn(e){return(0,$vt.assert)(e in ivn.BlockIdFlag),e}function bvn(e){return{blockIdFlag:yvn(e.block_id_flag),validatorAddress:e.validator_address?(0,ts.fromHex)(e.validator_address):void 0,timestamp:e.timestamp?(0,GQ.fromRfc3339WithNanoseconds)(e.timestamp):void 0,signature:e.signature?(0,ts.fromBase64)(e.signature):void 0}}function Zvt(e){return{blockId:are((0,Ln.assertObject)(e.block_id)),height:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.height)),round:(0,Da.apiToSmallInt)(e.round),signatures:(0,Ln.assertArray)(e.signatures).map(bvn)}}function Evn(e){return{canonical:(0,Ln.assertBoolean)(e.canonical),header:sre(e.signed_header.header),commit:Zvt(e.signed_header.commit)}}function jvt(e){return{address:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.address)),pubkey:Yxe((0,Ln.assertObject)(e.pub_key)),votingPower:(0,Da.apiToBigInt)((0,Ln.assertNotEmpty)(e.power))}}K2.decodeValidatorGenesis=jvt;function vvn(e){return{genesisTime:(0,GQ.fromRfc3339WithNanoseconds)((0,Ln.assertNotEmpty)(e.genesis_time)),chainId:(0,Ln.assertNotEmpty)(e.chain_id),consensusParams:Wvt(e.consensus_params),validators:e.validators?(0,Ln.assertArray)(e.validators).map(jvt):[],appHash:(0,ts.fromHex)((0,Ln.assertSet)(e.app_hash)),appState:e.app_state}}function Wxe(e){return{pubkey:Yxe((0,Ln.assertObject)(e.pub_key)),votingPower:(0,Da.apiToBigInt)((0,Ln.assertNotEmpty)(e.voting_power)),address:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.address)),proposerPriority:e.proposer_priority?(0,Da.apiToSmallInt)(e.proposer_priority):void 0}}K2.decodeValidatorInfo=Wxe;function Rvn(e){return{id:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.id)),listenAddr:(0,Ln.assertNotEmpty)(e.listen_addr),network:(0,Ln.assertNotEmpty)(e.network),version:(0,Ln.assertString)(e.version),channels:(0,Ln.assertString)(e.channels),moniker:(0,Ln.assertNotEmpty)(e.moniker),other:(0,Ln.dictionaryToStringMap)(e.other),protocolVersion:{app:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.protocol_version.app)),block:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.protocol_version.block)),p2p:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.protocol_version.p2p))}}}function Svn(e){let t=e.earliest_block_height?(0,Da.apiToSmallInt)(e.earliest_block_height):void 0,r=e.earliest_block_time?(0,GQ.fromRfc3339WithNanoseconds)(e.earliest_block_time):void 0;return{earliestAppHash:e.earliest_app_hash?(0,ts.fromHex)(e.earliest_app_hash):void 0,earliestBlockHash:e.earliest_block_hash?(0,ts.fromHex)(e.earliest_block_hash):void 0,earliestBlockHeight:t||void 0,earliestBlockTime:r?.getTime()?r:void 0,latestBlockHash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.latest_block_hash)),latestAppHash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.latest_app_hash)),latestBlockTime:(0,GQ.fromRfc3339WithNanoseconds)((0,Ln.assertNotEmpty)(e.latest_block_time)),latestBlockHeight:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.latest_block_height)),catchingUp:(0,Ln.assertBoolean)(e.catching_up)}}function Ivn(e){return{nodeInfo:Rvn(e.node_info),syncInfo:Svn(e.sync_info),validatorInfo:Wxe(e.validator_info)}}function Cvn(e){return{data:(0,ts.fromBase64)((0,Ln.assertNotEmpty)(e.data)),rootHash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.root_hash)),proof:{total:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.proof.total)),index:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.proof.index)),leafHash:(0,ts.fromBase64)((0,Ln.assertNotEmpty)(e.proof.leaf_hash)),aunts:(0,Ln.assertArray)(e.proof.aunts).map(ts.fromBase64)}}}function eRt(e){return{tx:(0,ts.fromBase64)((0,Ln.assertNotEmpty)(e.tx)),result:nM((0,Ln.assertObject)(e.tx_result)),height:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.height)),index:(0,Da.apiToSmallInt)((0,Ln.assertNumber)(e.index)),hash:(0,ts.fromHex)((0,Ln.assertNotEmpty)(e.hash)),proof:(0,Ln.may)(Cvn,e.proof)}}function wvn(e){return{totalCount:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.total_count)),txs:(0,Ln.assertArray)(e.txs).map(eRt)}}function Ovn(e){let t=(0,ts.fromBase64)((0,Ln.assertNotEmpty)(e.tx));return{tx:t,hash:(0,ovn.hashTx)(t),result:nM(e.result),height:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.height))}}function Nvn(e){return{blockHeight:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.block_height)),validators:(0,Ln.assertArray)(e.validators).map(Wxe),count:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.count)),total:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.total))}}function tRt(e){return{header:sre((0,Ln.assertObject)(e.header)),lastCommit:e.last_commit.block_id.hash?Zvt((0,Ln.assertObject)(e.last_commit)):null,txs:e.data.txs?(0,Ln.assertArray)(e.data.txs).map(ts.fromBase64):[],evidence:e.evidence?.evidence??[]}}function rRt(e){return{blockId:are(e.block_id),block:tRt(e.block)}}function xvn(e){return{totalCount:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.total_count)),blocks:(0,Ln.assertArray)(e.blocks).map(rRt)}}function Tvn(e){return{total:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.total)),totalBytes:(0,Da.apiToSmallInt)((0,Ln.assertNotEmpty)(e.total_bytes))}}var $xe=class e{static decodeAbciInfo(t){return avn((0,Ln.assertObject)(t.result.response))}static decodeAbciQuery(t){return cvn((0,Ln.assertObject)(t.result.response))}static decodeBlock(t){return rRt(t.result)}static decodeBlockResults(t){return hvn(t.result)}static decodeBlockSearch(t){return xvn(t.result)}static decodeBlockchain(t){return gvn(t.result)}static decodeBroadcastTxSync(t){return _vn(t.result)}static decodeBroadcastTxAsync(t){return e.decodeBroadcastTxSync(t)}static decodeBroadcastTxCommit(t){return mvn(t.result)}static decodeCommit(t){return Evn(t.result)}static decodeGenesis(t){return vvn((0,Ln.assertObject)(t.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(t){return Tvn(t.result)}static decodeStatus(t){return Ivn(t.result)}static decodeNewBlockEvent(t){return tRt(t.data.value.block)}static decodeNewBlockHeaderEvent(t){return sre(t.data.value.header)}static decodeTxEvent(t){return Ovn(t.data.value.TxResult)}static decodeTx(t){return eRt(t.result)}static decodeTxSearch(t){return wvn(t.result)}static decodeValidators(t){return Nvn(t.result)}};K2.Responses=$xe});var iRt=ir(iM=>{"use strict";J();K();z();Object.defineProperty(iM,"__esModule",{value:!0});iM.Responses=iM.Params=void 0;var Bvn=zvt();Object.defineProperty(iM,"Params",{enumerable:!0,get:function(){return Bvn.Params}});var Mvn=nRt();Object.defineProperty(iM,"Responses",{enumerable:!0,get:function(){return Mvn.Responses}})});var oRt=ir(sv=>{"use strict";J();K();z();var Dvn=sv&&sv.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),kvn=sv&&sv.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Pvn=sv&&sv.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Dvn(t,e,r);return kvn(t,e),t};Object.defineProperty(sv,"__esModule",{value:!0});sv.Tendermint37Client=void 0;var Lvn=T5(),cre=kQ(),As=iRt(),P0=Pvn(ire()),Xxe=class e{static async connect(t){let r;typeof t=="object"?r=new cre.HttpClient(t):r=t.startsWith("http://")||t.startsWith("https://")?new cre.HttpClient(t):new cre.WebsocketClient(t);let i=await this.detectVersion(r);return e.create(r)}static async create(t){return new e(t)}static async detectVersion(t){let r=(0,Lvn.createJsonRpcRequest)(P0.Method.Status),n=(await t.execute(r)).result;if(!n||!n.node_info)throw new Error("Unrecognized format for status response");let o=n.node_info.version;if(typeof o!="string")throw new Error("Unrecognized version format: must be string");return o}constructor(t){this.client=t}disconnect(){this.client.disconnect()}async abciInfo(){let t={method:P0.Method.AbciInfo};return this.doCall(t,As.Params.encodeAbciInfo,As.Responses.decodeAbciInfo)}async abciQuery(t){let r={params:t,method:P0.Method.AbciQuery};return this.doCall(r,As.Params.encodeAbciQuery,As.Responses.decodeAbciQuery)}async block(t){let r={method:P0.Method.Block,params:{height:t}};return this.doCall(r,As.Params.encodeBlock,As.Responses.decodeBlock)}async blockResults(t){let r={method:P0.Method.BlockResults,params:{height:t}};return this.doCall(r,As.Params.encodeBlockResults,As.Responses.decodeBlockResults)}async blockSearch(t){let r={params:t,method:P0.Method.BlockSearch},i=await this.doCall(r,As.Params.encodeBlockSearch,As.Responses.decodeBlockSearch);return{...i,blocks:[...i.blocks].sort((n,o)=>n.block.header.height-o.block.header.height)}}async blockSearchAll(t){let r=t.page||1,i=[],n=!1;for(;!n;){let o=await this.blockSearch({...t,page:r});i.push(...o.blocks),i.length<o.totalCount?r++:n=!0}return i.sort((o,d)=>o.block.header.height-d.block.header.height),{totalCount:i.length,blocks:i}}async blockchain(t,r){let i={method:P0.Method.Blockchain,params:{minHeight:t,maxHeight:r}};return this.doCall(i,As.Params.encodeBlockchain,As.Responses.decodeBlockchain)}async broadcastTxSync(t){let r={params:t,method:P0.Method.BroadcastTxSync};return this.doCall(r,As.Params.encodeBroadcastTx,As.Responses.decodeBroadcastTxSync)}async broadcastTxAsync(t){let r={params:t,method:P0.Method.BroadcastTxAsync};return this.doCall(r,As.Params.encodeBroadcastTx,As.Responses.decodeBroadcastTxAsync)}async broadcastTxCommit(t){let r={params:t,method:P0.Method.BroadcastTxCommit};return this.doCall(r,As.Params.encodeBroadcastTx,As.Responses.decodeBroadcastTxCommit)}async commit(t){let r={method:P0.Method.Commit,params:{height:t}};return this.doCall(r,As.Params.encodeCommit,As.Responses.decodeCommit)}async genesis(){let t={method:P0.Method.Genesis};return this.doCall(t,As.Params.encodeGenesis,As.Responses.decodeGenesis)}async health(){let t={method:P0.Method.Health};return this.doCall(t,As.Params.encodeHealth,As.Responses.decodeHealth)}async numUnconfirmedTxs(){let t={method:P0.Method.NumUnconfirmedTxs};return this.doCall(t,As.Params.encodeNumUnconfirmedTxs,As.Responses.decodeNumUnconfirmedTxs)}async status(){let t={method:P0.Method.Status};return this.doCall(t,As.Params.encodeStatus,As.Responses.decodeStatus)}subscribeNewBlock(){let t={method:P0.Method.Subscribe,query:{type:P0.SubscriptionEventType.NewBlock}};return this.subscribe(t,As.Responses.decodeNewBlockEvent)}subscribeNewBlockHeader(){let t={method:P0.Method.Subscribe,query:{type:P0.SubscriptionEventType.NewBlockHeader}};return this.subscribe(t,As.Responses.decodeNewBlockHeaderEvent)}subscribeTx(t){let r={method:P0.Method.Subscribe,query:{type:P0.SubscriptionEventType.Tx,raw:t}};return this.subscribe(r,As.Responses.decodeTxEvent)}async tx(t){let r={params:t,method:P0.Method.Tx};return this.doCall(r,As.Params.encodeTx,As.Responses.decodeTx)}async txSearch(t){let r={params:t,method:P0.Method.TxSearch};return this.doCall(r,As.Params.encodeTxSearch,As.Responses.decodeTxSearch)}async txSearchAll(t){let r=t.page||1,i=[],n=!1;for(;!n;){let o=await this.txSearch({...t,page:r});i.push(...o.txs),i.length<o.totalCount?r++:n=!0}return{totalCount:i.length,txs:i}}async validators(t){let r={method:P0.Method.Validators,params:t};return this.doCall(r,As.Params.encodeValidators,As.Responses.decodeValidators)}async validatorsAll(t){let r=[],i=1,n=!1,o=t;for(;!n;){let d=await this.validators({per_page:50,height:o,page:i});r.push(...d.validators),o=o||d.blockHeight,r.length<d.total?i++:n=!0}return{blockHeight:o??0,count:r.length,total:r.length,validators:r}}async doCall(t,r,i){let n=r(t),o=await this.client.execute(n);return i(o)}subscribe(t,r){if(!(0,cre.instanceOfRpcStreamingClient)(this.client))throw new Error("This RPC client type cannot subscribe to events");let i=As.Params.encodeSubscribe(t);return this.client.listen(i).map(o=>r(o))}};sv.Tendermint37Client=Xxe});var ure=ir(C1=>{"use strict";J();K();z();Object.defineProperty(C1,"__esModule",{value:!0});C1.Tendermint37Client=C1.VoteType=C1.broadcastTxSyncSuccess=C1.broadcastTxCommitSuccess=C1.SubscriptionEventType=C1.Method=void 0;var aRt=ire();Object.defineProperty(C1,"Method",{enumerable:!0,get:function(){return aRt.Method}});Object.defineProperty(C1,"SubscriptionEventType",{enumerable:!0,get:function(){return aRt.SubscriptionEventType}});var Zxe=Jvt();Object.defineProperty(C1,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return Zxe.broadcastTxCommitSuccess}});Object.defineProperty(C1,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return Zxe.broadcastTxSyncSuccess}});Object.defineProperty(C1,"VoteType",{enumerable:!0,get:function(){return Zxe.VoteType}});var Uvn=oRt();Object.defineProperty(C1,"Tendermint37Client",{enumerable:!0,get:function(){return Uvn.Tendermint37Client}})});var dRt=ir(cv=>{"use strict";J();K();z();Object.defineProperty(cv,"__esModule",{value:!0});cv.connectComet=cv.isComet38Client=cv.isTendermint37Client=cv.isTendermint34Client=void 0;var sRt=jte(),cRt=HQ(),uRt=ure();function Fvn(e){return e instanceof cRt.Tendermint34Client}cv.isTendermint34Client=Fvn;function Qvn(e){return e instanceof uRt.Tendermint37Client}cv.isTendermint37Client=Qvn;function Hvn(e){return e instanceof sRt.Comet38Client}cv.isComet38Client=Hvn;async function Gvn(e){let t,r=await uRt.Tendermint37Client.connect(e),i=(await r.status()).nodeInfo.version;return i.startsWith("0.37.")?t=r:i.startsWith("0.38.")?(r.disconnect(),t=await sRt.Comet38Client.connect(e)):(r.disconnect(),t=await cRt.Tendermint34Client.connect(e)),t}cv.connectComet=Gvn});var tTe=ir(Xi=>{"use strict";J();K();z();var qvn=Xi&&Xi.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),Vvn=Xi&&Xi.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),jxe=Xi&&Xi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&qvn(t,e,r);return Vvn(t,e),t};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.BlockIdFlag=Xi.isTendermint37Client=Xi.isTendermint34Client=Xi.isComet38Client=Xi.connectComet=Xi.Tendermint37Client=Xi.tendermint37=Xi.Tendermint34Client=Xi.tendermint34=Xi.VoteType=Xi.SubscriptionEventType=Xi.Method=Xi.broadcastTxSyncSuccess=Xi.broadcastTxCommitSuccess=Xi.WebsocketClient=Xi.HttpClient=Xi.HttpBatchClient=Xi.Comet38Client=Xi.comet38=Xi.toSeconds=Xi.toRfc3339WithNanoseconds=Xi.fromSeconds=Xi.fromRfc3339WithNanoseconds=Xi.DateTime=Xi.rawSecp256k1PubkeyToRawAddress=Xi.rawEd25519PubkeyToRawAddress=Xi.pubkeyToRawAddress=Xi.pubkeyToAddress=void 0;var dre=lbt();Object.defineProperty(Xi,"pubkeyToAddress",{enumerable:!0,get:function(){return dre.pubkeyToAddress}});Object.defineProperty(Xi,"pubkeyToRawAddress",{enumerable:!0,get:function(){return dre.pubkeyToRawAddress}});Object.defineProperty(Xi,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return dre.rawEd25519PubkeyToRawAddress}});Object.defineProperty(Xi,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return dre.rawSecp256k1PubkeyToRawAddress}});var qQ=IQ();Object.defineProperty(Xi,"DateTime",{enumerable:!0,get:function(){return qQ.DateTime}});Object.defineProperty(Xi,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return qQ.fromRfc3339WithNanoseconds}});Object.defineProperty(Xi,"fromSeconds",{enumerable:!0,get:function(){return qQ.fromSeconds}});Object.defineProperty(Xi,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return qQ.toRfc3339WithNanoseconds}});Object.defineProperty(Xi,"toSeconds",{enumerable:!0,get:function(){return qQ.toSeconds}});Xi.comet38=jxe(jte());var Jvn=jte();Object.defineProperty(Xi,"Comet38Client",{enumerable:!0,get:function(){return Jvn.Comet38Client}});var eTe=kQ();Object.defineProperty(Xi,"HttpBatchClient",{enumerable:!0,get:function(){return eTe.HttpBatchClient}});Object.defineProperty(Xi,"HttpClient",{enumerable:!0,get:function(){return eTe.HttpClient}});Object.defineProperty(Xi,"WebsocketClient",{enumerable:!0,get:function(){return eTe.WebsocketClient}});var VQ=HQ();Object.defineProperty(Xi,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return VQ.broadcastTxCommitSuccess}});Object.defineProperty(Xi,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return VQ.broadcastTxSyncSuccess}});Object.defineProperty(Xi,"Method",{enumerable:!0,get:function(){return VQ.Method}});Object.defineProperty(Xi,"SubscriptionEventType",{enumerable:!0,get:function(){return VQ.SubscriptionEventType}});Object.defineProperty(Xi,"VoteType",{enumerable:!0,get:function(){return VQ.VoteType}});Xi.tendermint34=jxe(HQ());var zvn=HQ();Object.defineProperty(Xi,"Tendermint34Client",{enumerable:!0,get:function(){return zvn.Tendermint34Client}});Xi.tendermint37=jxe(ure());var Kvn=ure();Object.defineProperty(Xi,"Tendermint37Client",{enumerable:!0,get:function(){return Kvn.Tendermint37Client}});var fre=dRt();Object.defineProperty(Xi,"connectComet",{enumerable:!0,get:function(){return fre.connectComet}});Object.defineProperty(Xi,"isComet38Client",{enumerable:!0,get:function(){return fre.isComet38Client}});Object.defineProperty(Xi,"isTendermint34Client",{enumerable:!0,get:function(){return fre.isTendermint34Client}});Object.defineProperty(Xi,"isTendermint37Client",{enumerable:!0,get:function(){return fre.isTendermint37Client}});var $vn=UQ();Object.defineProperty(Xi,"BlockIdFlag",{enumerable:!0,get:function(){return $vn.BlockIdFlag}})});var oTe=ir(SA=>{"use strict";J();K();z();Object.defineProperty(SA,"__esModule",{value:!0});SA.StargateClient=SA.BroadcastTxError=SA.assertIsDeliverTxFailure=SA.assertIsDeliverTxSuccess=SA.isDeliverTxSuccess=SA.isDeliverTxFailure=SA.TimeoutError=void 0;var Yvn=R_(),rTe=Ps(),fRt=Uh(),lRt=tTe(),hRt=Uf(),Wvn=JOe(),Xvn=qve(),Zvn=zve(),lre=SQ(),jvn=ep(),eRn=CNe(),hre=class extends Error{constructor(t,r){super(t),this.txId=r}};SA.TimeoutError=hre;function iTe(e){return!!e.code}SA.isDeliverTxFailure=iTe;function ARt(e){return!iTe(e)}SA.isDeliverTxSuccess=ARt;function tRn(e){if(iTe(e))throw new Error(`Error when broadcasting tx ${e.transactionHash} at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`)}SA.assertIsDeliverTxSuccess=tRn;function rRn(e){if(ARt(e))throw new Error(`Transaction ${e.transactionHash} did not fail at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`)}SA.assertIsDeliverTxFailure=rRn;var Are=class extends Error{constructor(t,r,i){super(`Broadcasting transaction failed with code ${t} (codespace: ${r}). Log: ${i}`),this.code=t,this.codespace=r,this.log=i}};SA.BroadcastTxError=Are;var nTe=class e{static async connect(t,r={}){let i=await(0,lRt.connectComet)(t);return e.create(i,r)}static async create(t,r={}){return new e(t,r)}constructor(t,r){t&&(this.cometClient=t,this.queryClient=jvn.QueryClient.withExtensions(t,lre.setupAuthExtension,lre.setupBankExtension,lre.setupStakingExtension,lre.setupTxExtension));let{accountParser:i=Xvn.accountFromAny}=r;this.accountParser=i}getCometClient(){return this.cometClient}forceGetCometClient(){if(!this.cometClient)throw new Error("Comet client not available. You cannot use online functionality in offline mode.");return this.cometClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){let r=(await this.forceGetCometClient().status()).nodeInfo.network;if(!r)throw new Error("Chain ID must not be empty");this.chainId=r}return this.chainId}async getHeight(){return(await this.forceGetCometClient().status()).syncInfo.latestBlockHeight}async getAccount(t){try{let r=await this.forceGetQueryClient().auth.account(t);return r?this.accountParser(r):null}catch(r){if(/rpc error: code = NotFound/i.test(r.toString()))return null;throw r}}async getSequence(t){let r=await this.getAccount(t);if(!r)throw new Error(`Account '${t}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:r.accountNumber,sequence:r.sequence}}async getBlock(t){let r=await this.forceGetCometClient().block(t);return{id:(0,rTe.toHex)(r.blockId.hash).toUpperCase(),header:{version:{block:new fRt.Uint53(r.block.header.version.block).toString(),app:new fRt.Uint53(r.block.header.version.app).toString()},height:r.block.header.height,chainId:r.block.header.chainId,time:(0,lRt.toRfc3339WithNanoseconds)(r.block.header.time)},txs:r.block.txs}}async getBalance(t,r){return this.forceGetQueryClient().bank.balance(t,r)}async getAllBalances(t){return this.forceGetQueryClient().bank.allBalances(t)}async getBalanceStaked(t){let r=[],i;do{let{delegationResponses:o,pagination:d}=await this.forceGetQueryClient().staking.delegatorDelegations(t,i),g=o||[];r.push(...g),i=d?.nextKey}while(i!==void 0&&i.length!==0);return r.reduce((o,d)=>((0,hRt.assert)(d.balance),o!==null?(0,Yvn.addCoins)(o,d.balance):d.balance),null)}async getDelegation(t,r){let i;try{i=(await this.forceGetQueryClient().staking.delegation(t,r)).delegationResponse?.balance}catch(n){if(!n.toString().includes("key not found"))throw n}return i||null}async getTx(t){return(await this.txsQuery(`tx.hash='${t}'`))[0]??null}async searchTx(t){let r;if(typeof t=="string")r=t;else if((0,eRn.isSearchTxQueryArray)(t))r=t.map(i=>typeof i.value=="string"?`${i.key}='${i.value}'`:`${i.key}=${i.value}`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(r)}disconnect(){this.cometClient&&this.cometClient.disconnect()}async broadcastTx(t,r=6e4,i=3e3){let n=!1,o=setTimeout(()=>{n=!0},r),d=async y=>{if(n)throw new hre(`Transaction with ID ${y} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${r/1e3} seconds.`,y);await(0,hRt.sleep)(i);let _=await this.getTx(y);return _?{code:_.code,height:_.height,txIndex:_.txIndex,events:_.events,rawLog:_.rawLog,transactionHash:y,msgResponses:_.msgResponses,gasUsed:_.gasUsed,gasWanted:_.gasWanted}:d(y)},g=await this.broadcastTxSync(t);return new Promise((y,_)=>d(g).then(I=>{clearTimeout(o),y(I)},I=>{clearTimeout(o),_(I)}))}async broadcastTxSync(t){let r=await this.forceGetCometClient().broadcastTxSync({tx:t});return r.code?Promise.reject(new Are(r.code,r.codespace??"",r.log)):(0,rTe.toHex)(r.hash).toUpperCase()}async txsQuery(t){return(await this.forceGetCometClient().txSearchAll({query:t})).txs.map(i=>{let n=Wvn.TxMsgData.decode(i.result.data??new Uint8Array);return{height:i.height,txIndex:i.index,hash:(0,rTe.toHex)(i.hash).toUpperCase(),code:i.result.code,events:i.result.events.map(Zvn.fromTendermintEvent),rawLog:i.result.log||"",tx:i.tx,msgResponses:n.msgResponses,gasUsed:i.result.gasUsed,gasWanted:i.result.gasWanted}})}};SA.StargateClient=nTe});var yRt=ir(HS=>{"use strict";J();K();z();Object.defineProperty(HS,"__esModule",{value:!0});HS.SigningStargateClient=HS.createDefaultAminoConverters=HS.defaultRegistryTypes=void 0;var pre=R_(),pRt=Ps(),gre=Uh(),FS=SS(),nRn=tTe(),JQ=Uf(),iRn=Af(),oRn=FSe(),gRt=oOe(),aRn=U7(),_re=RS(),sRn=Xee(),cRn=Jve(),_Rt=Kve(),QS=SQ(),S8=SQ(),uRn=oTe();HS.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",iRn.Coin],...QS.authzTypes,...QS.bankTypes,...QS.distributionTypes,...QS.feegrantTypes,...QS.govTypes,...QS.groupTypes,...QS.stakingTypes,...QS.ibcTypes,...QS.vestingTypes];function mRt(){return{...(0,S8.createAuthzAminoConverters)(),...(0,S8.createBankAminoConverters)(),...(0,S8.createDistributionAminoConverters)(),...(0,S8.createGovAminoConverters)(),...(0,S8.createStakingAminoConverters)(),...(0,S8.createIbcAminoConverters)(),...(0,S8.createFeegrantAminoConverters)(),...(0,S8.createVestingAminoConverters)()}}HS.createDefaultAminoConverters=mRt;var aTe=class e extends uRn.StargateClient{static async connectWithSigner(t,r,i={}){let n=await(0,nRn.connectComet)(t);return e.createWithSigner(n,r,i)}static async createWithSigner(t,r,i={}){return new e(t,r,i)}static async offline(t,r={}){return new e(void 0,t,r)}constructor(t,r,i){super(t,i),this.defaultGasMultiplier=1.4;let{registry:n=new FS.Registry(HS.defaultRegistryTypes),aminoTypes:o=new cRn.AminoTypes(mRt())}=i;this.registry=n,this.aminoTypes=o,this.signer=r,this.broadcastTimeoutMs=i.broadcastTimeoutMs,this.broadcastPollIntervalMs=i.broadcastPollIntervalMs,this.gasPrice=i.gasPrice}async simulate(t,r,i){let n=r.map(_=>this.registry.encodeAsAny(_)),o=(await this.signer.getAccounts()).find(_=>_.address===t);if(!o)throw new Error("Failed to retrieve account from signer");let d=(0,pre.encodeSecp256k1Pubkey)(o.pubkey),{sequence:g}=await this.getSequence(t),{gasInfo:y}=await this.forceGetQueryClient().tx.simulate(n,i,d,g);return(0,JQ.assertDefined)(y),gre.Uint53.fromString(y.gasUsed.toString()).toNumber()}async sendTokens(t,r,i,n,o=""){let d={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:t,toAddress:r,amount:[...i]}};return this.signAndBroadcast(t,[d],n,o)}async delegateTokens(t,r,i,n,o=""){let d={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:gRt.MsgDelegate.fromPartial({delegatorAddress:t,validatorAddress:r,amount:i})};return this.signAndBroadcast(t,[d],n,o)}async undelegateTokens(t,r,i,n,o=""){let d={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:gRt.MsgUndelegate.fromPartial({delegatorAddress:t,validatorAddress:r,amount:i})};return this.signAndBroadcast(t,[d],n,o)}async withdrawRewards(t,r,i,n=""){let o={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:oRn.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:t,validatorAddress:r})};return this.signAndBroadcast(t,[o],i,n)}async sendIbcTokens(t,r,i,n,o,d,g,y,_=""){let I=g?BigInt(g)*BigInt(1e9):void 0,N={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:sRn.MsgTransfer.fromPartial({sourcePort:n,sourceChannel:o,sender:t,receiver:r,token:i,timeoutHeight:d,timeoutTimestamp:I})};return this.signAndBroadcast(t,[N],y,_)}async signAndBroadcast(t,r,i,n="",o){let d;if(i=="auto"||typeof i=="number"){(0,JQ.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");let _=await this.simulate(t,r,n),I=typeof i=="number"?i:this.defaultGasMultiplier;d=(0,_Rt.calculateFee)(Math.round(_*I),this.gasPrice)}else d=i;let g=await this.sign(t,r,d,n,void 0,o),y=_re.TxRaw.encode(g).finish();return this.broadcastTx(y,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(t,r,i,n="",o){let d;if(i=="auto"||typeof i=="number"){(0,JQ.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");let _=await this.simulate(t,r,n),I=typeof i=="number"?i:this.defaultGasMultiplier;d=(0,_Rt.calculateFee)(Math.round(_*I),this.gasPrice)}else d=i;let g=await this.sign(t,r,d,n,void 0,o),y=_re.TxRaw.encode(g).finish();return this.broadcastTxSync(y)}async sign(t,r,i,n,o,d){let g;if(o)g=o;else{let{accountNumber:y,sequence:_}=await this.getSequence(t),I=await this.getChainId();g={accountNumber:y,sequence:_,chainId:I}}return(0,FS.isOfflineDirectSigner)(this.signer)?this.signDirect(t,r,i,n,g,d):this.signAmino(t,r,i,n,g,d)}async signAmino(t,r,i,n,{accountNumber:o,sequence:d,chainId:g},y){(0,JQ.assert)(!(0,FS.isOfflineDirectSigner)(this.signer));let _=(await this.signer.getAccounts()).find(pe=>pe.address===t);if(!_)throw new Error("Failed to retrieve account from signer");let I=(0,FS.encodePubkey)((0,pre.encodeSecp256k1Pubkey)(_.pubkey)),N=aRn.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,T=r.map(pe=>this.aminoTypes.toAmino(pe)),M=(0,pre.makeSignDoc)(T,i,g,n,o,d,y),{signature:D,signed:P}=await this.signer.signAmino(t,M),q={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:P.msgs.map(pe=>this.aminoTypes.fromAmino(pe)),memo:P.memo,timeoutHeight:y}},Y=this.registry.encode(q),ne=gre.Int53.fromString(P.fee.gas).toNumber(),ce=gre.Int53.fromString(P.sequence).toNumber(),le=(0,FS.makeAuthInfoBytes)([{pubkey:I,sequence:ce}],P.fee.amount,ne,P.fee.granter,P.fee.payer,N);return _re.TxRaw.fromPartial({bodyBytes:Y,authInfoBytes:le,signatures:[(0,pRt.fromBase64)(D.signature)]})}async signDirect(t,r,i,n,{accountNumber:o,sequence:d,chainId:g},y){(0,JQ.assert)((0,FS.isOfflineDirectSigner)(this.signer));let _=(await this.signer.getAccounts()).find(Y=>Y.address===t);if(!_)throw new Error("Failed to retrieve account from signer");let I=(0,FS.encodePubkey)((0,pre.encodeSecp256k1Pubkey)(_.pubkey)),N={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:r,memo:n,timeoutHeight:y}},T=this.registry.encode(N),M=gre.Int53.fromString(i.gas).toNumber(),D=(0,FS.makeAuthInfoBytes)([{pubkey:I,sequence:d}],i.amount,M,i.granter,i.payer),P=(0,FS.makeSignDoc)(T,D,g,o),{signature:G,signed:q}=await this.signer.signDirect(t,P);return _re.TxRaw.fromPartial({bodyBytes:q.bodyBytes,authInfoBytes:q.authInfoBytes,signatures:[(0,pRt.fromBase64)(G.signature)]})}};HS.SigningStargateClient=aTe});var vRt=ir($r=>{"use strict";J();K();z();var dRn=$r&&$r.__createBinding||(Object.create?(function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}):(function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]})),fRn=$r&&$r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),lRn=$r&&$r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&dRn(t,e,r);return fRn(t,e),t};Object.defineProperty($r,"__esModule",{value:!0});$r.isMsgVoteWeightedEncodeObject=$r.isMsgVoteEncodeObject=$r.isMsgUndelegateEncodeObject=$r.isMsgTransferEncodeObject=$r.isMsgSubmitProposalEncodeObject=$r.isMsgSendEncodeObject=$r.isMsgEditValidatorEncodeObject=$r.isMsgDepositEncodeObject=$r.isMsgDelegateEncodeObject=$r.isMsgCreateValidatorEncodeObject=$r.isMsgCancelUnbondingDelegationEncodeObject=$r.isMsgBeginRedelegateEncodeObject=$r.isAminoMsgWithdrawValidatorCommission=$r.isAminoMsgWithdrawDelegatorReward=$r.isAminoMsgVoteWeighted=$r.isAminoMsgVote=$r.isAminoMsgVerifyInvariant=$r.isAminoMsgUnjail=$r.isAminoMsgUndelegate=$r.isAminoMsgTransfer=$r.isAminoMsgSubmitProposal=$r.isAminoMsgSubmitEvidence=$r.isAminoMsgSetWithdrawAddress=$r.isAminoMsgSend=$r.isAminoMsgMultiSend=$r.isAminoMsgFundCommunityPool=$r.isAminoMsgEditValidator=$r.isAminoMsgDeposit=$r.isAminoMsgDelegate=$r.isAminoMsgCreateVestingAccount=$r.isAminoMsgCreateValidator=$r.isAminoMsgBeginRedelegate=$r.createVestingAminoConverters=$r.createStakingAminoConverters=$r.createSlashingAminoConverters=$r.createIbcAminoConverters=$r.createGroupAminoConverters=$r.createGovAminoConverters=$r.createFeegrantAminoConverters=$r.createEvidenceAminoConverters=$r.createDistributionAminoConverters=$r.createCrysisAminoConverters=$r.createBankAminoConverters=$r.createAuthzAminoConverters=$r.logs=$r.GasPrice=$r.calculateFee=$r.fromTendermintEvent=$r.AminoTypes=$r.accountFromAny=void 0;$r.parseCoins=$r.makeCosmoshubPath=$r.coins=$r.coin=$r.TimeoutError=$r.StargateClient=$r.isDeliverTxSuccess=$r.isDeliverTxFailure=$r.BroadcastTxError=$r.assertIsDeliverTxSuccess=$r.assertIsDeliverTxFailure=$r.SigningStargateClient=$r.defaultRegistryTypes=$r.createDefaultAminoConverters=$r.isSearchTxQueryArray=$r.QueryClient=$r.decodeCosmosSdkDecFromProto=$r.createProtobufRpcClient=$r.createPagination=$r.makeMultisignedTxBytes=$r.makeMultisignedTx=$r.setupTxExtension=$r.setupStakingExtension=$r.setupSlashingExtension=$r.setupMintExtension=$r.setupIbcExtension=$r.setupGovExtension=$r.setupFeegrantExtension=$r.setupDistributionExtension=$r.setupBankExtension=$r.setupAuthzExtension=$r.setupAuthExtension=$r.isMsgWithdrawDelegatorRewardEncodeObject=void 0;var hRn=qve();Object.defineProperty($r,"accountFromAny",{enumerable:!0,get:function(){return hRn.accountFromAny}});var ARn=Jve();Object.defineProperty($r,"AminoTypes",{enumerable:!0,get:function(){return ARn.AminoTypes}});var pRn=zve();Object.defineProperty($r,"fromTendermintEvent",{enumerable:!0,get:function(){return pRn.fromTendermintEvent}});var bRt=Kve();Object.defineProperty($r,"calculateFee",{enumerable:!0,get:function(){return bRt.calculateFee}});Object.defineProperty($r,"GasPrice",{enumerable:!0,get:function(){return bRt.GasPrice}});$r.logs=lRn(Q2t());var vo=SQ();Object.defineProperty($r,"createAuthzAminoConverters",{enumerable:!0,get:function(){return vo.createAuthzAminoConverters}});Object.defineProperty($r,"createBankAminoConverters",{enumerable:!0,get:function(){return vo.createBankAminoConverters}});Object.defineProperty($r,"createCrysisAminoConverters",{enumerable:!0,get:function(){return vo.createCrysisAminoConverters}});Object.defineProperty($r,"createDistributionAminoConverters",{enumerable:!0,get:function(){return vo.createDistributionAminoConverters}});Object.defineProperty($r,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return vo.createEvidenceAminoConverters}});Object.defineProperty($r,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return vo.createFeegrantAminoConverters}});Object.defineProperty($r,"createGovAminoConverters",{enumerable:!0,get:function(){return vo.createGovAminoConverters}});Object.defineProperty($r,"createGroupAminoConverters",{enumerable:!0,get:function(){return vo.createGroupAminoConverters}});Object.defineProperty($r,"createIbcAminoConverters",{enumerable:!0,get:function(){return vo.createIbcAminoConverters}});Object.defineProperty($r,"createSlashingAminoConverters",{enumerable:!0,get:function(){return vo.createSlashingAminoConverters}});Object.defineProperty($r,"createStakingAminoConverters",{enumerable:!0,get:function(){return vo.createStakingAminoConverters}});Object.defineProperty($r,"createVestingAminoConverters",{enumerable:!0,get:function(){return vo.createVestingAminoConverters}});Object.defineProperty($r,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return vo.isAminoMsgBeginRedelegate}});Object.defineProperty($r,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return vo.isAminoMsgCreateValidator}});Object.defineProperty($r,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return vo.isAminoMsgCreateVestingAccount}});Object.defineProperty($r,"isAminoMsgDelegate",{enumerable:!0,get:function(){return vo.isAminoMsgDelegate}});Object.defineProperty($r,"isAminoMsgDeposit",{enumerable:!0,get:function(){return vo.isAminoMsgDeposit}});Object.defineProperty($r,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return vo.isAminoMsgEditValidator}});Object.defineProperty($r,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return vo.isAminoMsgFundCommunityPool}});Object.defineProperty($r,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return vo.isAminoMsgMultiSend}});Object.defineProperty($r,"isAminoMsgSend",{enumerable:!0,get:function(){return vo.isAminoMsgSend}});Object.defineProperty($r,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return vo.isAminoMsgSetWithdrawAddress}});Object.defineProperty($r,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return vo.isAminoMsgSubmitEvidence}});Object.defineProperty($r,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return vo.isAminoMsgSubmitProposal}});Object.defineProperty($r,"isAminoMsgTransfer",{enumerable:!0,get:function(){return vo.isAminoMsgTransfer}});Object.defineProperty($r,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return vo.isAminoMsgUndelegate}});Object.defineProperty($r,"isAminoMsgUnjail",{enumerable:!0,get:function(){return vo.isAminoMsgUnjail}});Object.defineProperty($r,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return vo.isAminoMsgVerifyInvariant}});Object.defineProperty($r,"isAminoMsgVote",{enumerable:!0,get:function(){return vo.isAminoMsgVote}});Object.defineProperty($r,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return vo.isAminoMsgVoteWeighted}});Object.defineProperty($r,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return vo.isAminoMsgWithdrawDelegatorReward}});Object.defineProperty($r,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return vo.isAminoMsgWithdrawValidatorCommission}});Object.defineProperty($r,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return vo.isMsgBeginRedelegateEncodeObject}});Object.defineProperty($r,"isMsgCancelUnbondingDelegationEncodeObject",{enumerable:!0,get:function(){return vo.isMsgCancelUnbondingDelegationEncodeObject}});Object.defineProperty($r,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return vo.isMsgCreateValidatorEncodeObject}});Object.defineProperty($r,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return vo.isMsgDelegateEncodeObject}});Object.defineProperty($r,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return vo.isMsgDepositEncodeObject}});Object.defineProperty($r,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return vo.isMsgEditValidatorEncodeObject}});Object.defineProperty($r,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return vo.isMsgSendEncodeObject}});Object.defineProperty($r,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return vo.isMsgSubmitProposalEncodeObject}});Object.defineProperty($r,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return vo.isMsgTransferEncodeObject}});Object.defineProperty($r,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return vo.isMsgUndelegateEncodeObject}});Object.defineProperty($r,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return vo.isMsgVoteEncodeObject}});Object.defineProperty($r,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return vo.isMsgVoteWeightedEncodeObject}});Object.defineProperty($r,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return vo.isMsgWithdrawDelegatorRewardEncodeObject}});Object.defineProperty($r,"setupAuthExtension",{enumerable:!0,get:function(){return vo.setupAuthExtension}});Object.defineProperty($r,"setupAuthzExtension",{enumerable:!0,get:function(){return vo.setupAuthzExtension}});Object.defineProperty($r,"setupBankExtension",{enumerable:!0,get:function(){return vo.setupBankExtension}});Object.defineProperty($r,"setupDistributionExtension",{enumerable:!0,get:function(){return vo.setupDistributionExtension}});Object.defineProperty($r,"setupFeegrantExtension",{enumerable:!0,get:function(){return vo.setupFeegrantExtension}});Object.defineProperty($r,"setupGovExtension",{enumerable:!0,get:function(){return vo.setupGovExtension}});Object.defineProperty($r,"setupIbcExtension",{enumerable:!0,get:function(){return vo.setupIbcExtension}});Object.defineProperty($r,"setupMintExtension",{enumerable:!0,get:function(){return vo.setupMintExtension}});Object.defineProperty($r,"setupSlashingExtension",{enumerable:!0,get:function(){return vo.setupSlashingExtension}});Object.defineProperty($r,"setupStakingExtension",{enumerable:!0,get:function(){return vo.setupStakingExtension}});Object.defineProperty($r,"setupTxExtension",{enumerable:!0,get:function(){return vo.setupTxExtension}});var ERt=cbt();Object.defineProperty($r,"makeMultisignedTx",{enumerable:!0,get:function(){return ERt.makeMultisignedTx}});Object.defineProperty($r,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return ERt.makeMultisignedTxBytes}});var mre=ep();Object.defineProperty($r,"createPagination",{enumerable:!0,get:function(){return mre.createPagination}});Object.defineProperty($r,"createProtobufRpcClient",{enumerable:!0,get:function(){return mre.createProtobufRpcClient}});Object.defineProperty($r,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return mre.decodeCosmosSdkDecFromProto}});Object.defineProperty($r,"QueryClient",{enumerable:!0,get:function(){return mre.QueryClient}});var gRn=CNe();Object.defineProperty($r,"isSearchTxQueryArray",{enumerable:!0,get:function(){return gRn.isSearchTxQueryArray}});var sTe=yRt();Object.defineProperty($r,"createDefaultAminoConverters",{enumerable:!0,get:function(){return sTe.createDefaultAminoConverters}});Object.defineProperty($r,"defaultRegistryTypes",{enumerable:!0,get:function(){return sTe.defaultRegistryTypes}});Object.defineProperty($r,"SigningStargateClient",{enumerable:!0,get:function(){return sTe.SigningStargateClient}});var H5=oTe();Object.defineProperty($r,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return H5.assertIsDeliverTxFailure}});Object.defineProperty($r,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return H5.assertIsDeliverTxSuccess}});Object.defineProperty($r,"BroadcastTxError",{enumerable:!0,get:function(){return H5.BroadcastTxError}});Object.defineProperty($r,"isDeliverTxFailure",{enumerable:!0,get:function(){return H5.isDeliverTxFailure}});Object.defineProperty($r,"isDeliverTxSuccess",{enumerable:!0,get:function(){return H5.isDeliverTxSuccess}});Object.defineProperty($r,"StargateClient",{enumerable:!0,get:function(){return H5.StargateClient}});Object.defineProperty($r,"TimeoutError",{enumerable:!0,get:function(){return H5.TimeoutError}});var yre=SS();Object.defineProperty($r,"coin",{enumerable:!0,get:function(){return yre.coin}});Object.defineProperty($r,"coins",{enumerable:!0,get:function(){return yre.coins}});Object.defineProperty($r,"makeCosmoshubPath",{enumerable:!0,get:function(){return yre.makeCosmoshubPath}});Object.defineProperty($r,"parseCoins",{enumerable:!0,get:function(){return yre.parseCoins}})});var TRt=ir((z3o,Tre)=>{"use strict";J();K();z();(function(e){"use strict";var t=function(ht){var Xe,et=new Float64Array(16);if(ht)for(Xe=0;Xe<ht.length;Xe++)et[Xe]=ht[Xe];return et},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),n=new Uint8Array(32);n[0]=9;var o=t(),d=t([1]),g=t([56129,1]),y=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),_=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),I=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),N=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),T=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function M(ht,Xe,et,ue){ht[Xe]=et>>24&255,ht[Xe+1]=et>>16&255,ht[Xe+2]=et>>8&255,ht[Xe+3]=et&255,ht[Xe+4]=ue>>24&255,ht[Xe+5]=ue>>16&255,ht[Xe+6]=ue>>8&255,ht[Xe+7]=ue&255}function D(ht,Xe,et,ue,je){var be,qe=0;for(be=0;be<je;be++)qe|=ht[Xe+be]^et[ue+be];return(1&qe-1>>>8)-1}function P(ht,Xe,et,ue){return D(ht,Xe,et,ue,16)}function G(ht,Xe,et,ue){return D(ht,Xe,et,ue,32)}function q(ht,Xe,et,ue){for(var je=ue[0]&255|(ue[1]&255)<<8|(ue[2]&255)<<16|(ue[3]&255)<<24,be=et[0]&255|(et[1]&255)<<8|(et[2]&255)<<16|(et[3]&255)<<24,qe=et[4]&255|(et[5]&255)<<8|(et[6]&255)<<16|(et[7]&255)<<24,De=et[8]&255|(et[9]&255)<<8|(et[10]&255)<<16|(et[11]&255)<<24,Je=et[12]&255|(et[13]&255)<<8|(et[14]&255)<<16|(et[15]&255)<<24,Rt=ue[4]&255|(ue[5]&255)<<8|(ue[6]&255)<<16|(ue[7]&255)<<24,Vt=Xe[0]&255|(Xe[1]&255)<<8|(Xe[2]&255)<<16|(Xe[3]&255)<<24,br=Xe[4]&255|(Xe[5]&255)<<8|(Xe[6]&255)<<16|(Xe[7]&255)<<24,Rr=Xe[8]&255|(Xe[9]&255)<<8|(Xe[10]&255)<<16|(Xe[11]&255)<<24,Dr=Xe[12]&255|(Xe[13]&255)<<8|(Xe[14]&255)<<16|(Xe[15]&255)<<24,Pr=ue[8]&255|(ue[9]&255)<<8|(ue[10]&255)<<16|(ue[11]&255)<<24,k=et[16]&255|(et[17]&255)<<8|(et[18]&255)<<16|(et[19]&255)<<24,a=et[20]&255|(et[21]&255)<<8|(et[22]&255)<<16|(et[23]&255)<<24,S=et[24]&255|(et[25]&255)<<8|(et[26]&255)<<16|(et[27]&255)<<24,sn=et[28]&255|(et[29]&255)<<8|(et[30]&255)<<16|(et[31]&255)<<24,Lr=ue[12]&255|(ue[13]&255)<<8|(ue[14]&255)<<16|(ue[15]&255)<<24,Wr=je,ln=be,yt=qe,ot=De,lt=Je,gt=Rt,Ie=Vt,Zt=br,Ir=Rr,$=Dr,Qr=Pr,en=k,xr=a,Mi=S,oo=sn,ho=Lr,Tr,jo=0;jo<20;jo+=2)Tr=Wr+xr|0,lt^=Tr<<7|Tr>>>25,Tr=lt+Wr|0,Ir^=Tr<<9|Tr>>>23,Tr=Ir+lt|0,xr^=Tr<<13|Tr>>>19,Tr=xr+Ir|0,Wr^=Tr<<18|Tr>>>14,Tr=gt+ln|0,$^=Tr<<7|Tr>>>25,Tr=$+gt|0,Mi^=Tr<<9|Tr>>>23,Tr=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]=Wr>>>8&255,ht[2]=Wr>>>16&255,ht[3]=Wr>>>24&255,ht[4]=ln>>>0&255,ht[5]=ln>>>8&255,ht[6]=ln>>>16&255,ht[7]=ln>>>24&255,ht[8]=yt>>>0&255,ht[9]=yt>>>8&255,ht[10]=yt>>>16&255,ht[11]=yt>>>24&255,ht[12]=ot>>>0&255,ht[13]=ot>>>8&255,ht[14]=ot>>>16&255,ht[15]=ot>>>24&255,ht[16]=lt>>>0&255,ht[17]=lt>>>8&255,ht[18]=lt>>>16&255,ht[19]=lt>>>24&255,ht[20]=gt>>>0&255,ht[21]=gt>>>8&255,ht[22]=gt>>>16&255,ht[23]=gt>>>24&255,ht[24]=Ie>>>0&255,ht[25]=Ie>>>8&255,ht[26]=Ie>>>16&255,ht[27]=Ie>>>24&255,ht[28]=Zt>>>0&255,ht[29]=Zt>>>8&255,ht[30]=Zt>>>16&255,ht[31]=Zt>>>24&255,ht[32]=Ir>>>0&255,ht[33]=Ir>>>8&255,ht[34]=Ir>>>16&255,ht[35]=Ir>>>24&255,ht[36]=$>>>0&255,ht[37]=$>>>8&255,ht[38]=$>>>16&255,ht[39]=$>>>24&255,ht[40]=Qr>>>0&255,ht[41]=Qr>>>8&255,ht[42]=Qr>>>16&255,ht[43]=Qr>>>24&255,ht[44]=en>>>0&255,ht[45]=en>>>8&255,ht[46]=en>>>16&255,ht[47]=en>>>24&255,ht[48]=xr>>>0&255,ht[49]=xr>>>8&255,ht[50]=xr>>>16&255,ht[51]=xr>>>24&255,ht[52]=Mi>>>0&255,ht[53]=Mi>>>8&255,ht[54]=Mi>>>16&255,ht[55]=Mi>>>24&255,ht[56]=oo>>>0&255,ht[57]=oo>>>8&255,ht[58]=oo>>>16&255,ht[59]=oo>>>24&255,ht[60]=ho>>>0&255,ht[61]=ho>>>8&255,ht[62]=ho>>>16&255,ht[63]=ho>>>24&255}function Y(ht,Xe,et,ue){for(var je=ue[0]&255|(ue[1]&255)<<8|(ue[2]&255)<<16|(ue[3]&255)<<24,be=et[0]&255|(et[1]&255)<<8|(et[2]&255)<<16|(et[3]&255)<<24,qe=et[4]&255|(et[5]&255)<<8|(et[6]&255)<<16|(et[7]&255)<<24,De=et[8]&255|(et[9]&255)<<8|(et[10]&255)<<16|(et[11]&255)<<24,Je=et[12]&255|(et[13]&255)<<8|(et[14]&255)<<16|(et[15]&255)<<24,Rt=ue[4]&255|(ue[5]&255)<<8|(ue[6]&255)<<16|(ue[7]&255)<<24,Vt=Xe[0]&255|(Xe[1]&255)<<8|(Xe[2]&255)<<16|(Xe[3]&255)<<24,br=Xe[4]&255|(Xe[5]&255)<<8|(Xe[6]&255)<<16|(Xe[7]&255)<<24,Rr=Xe[8]&255|(Xe[9]&255)<<8|(Xe[10]&255)<<16|(Xe[11]&255)<<24,Dr=Xe[12]&255|(Xe[13]&255)<<8|(Xe[14]&255)<<16|(Xe[15]&255)<<24,Pr=ue[8]&255|(ue[9]&255)<<8|(ue[10]&255)<<16|(ue[11]&255)<<24,k=et[16]&255|(et[17]&255)<<8|(et[18]&255)<<16|(et[19]&255)<<24,a=et[20]&255|(et[21]&255)<<8|(et[22]&255)<<16|(et[23]&255)<<24,S=et[24]&255|(et[25]&255)<<8|(et[26]&255)<<16|(et[27]&255)<<24,sn=et[28]&255|(et[29]&255)<<8|(et[30]&255)<<16|(et[31]&255)<<24,Lr=ue[12]&255|(ue[13]&255)<<8|(ue[14]&255)<<16|(ue[15]&255)<<24,Wr=je,ln=be,yt=qe,ot=De,lt=Je,gt=Rt,Ie=Vt,Zt=br,Ir=Rr,$=Dr,Qr=Pr,en=k,xr=a,Mi=S,oo=sn,ho=Lr,Tr,jo=0;jo<20;jo+=2)Tr=Wr+xr|0,lt^=Tr<<7|Tr>>>25,Tr=lt+Wr|0,Ir^=Tr<<9|Tr>>>23,Tr=Ir+lt|0,xr^=Tr<<13|Tr>>>19,Tr=xr+Ir|0,Wr^=Tr<<18|Tr>>>14,Tr=gt+ln|0,$^=Tr<<7|Tr>>>25,Tr=$+gt|0,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qr>>>24&255,ht[12]=ho>>>0&255,ht[13]=ho>>>8&255,ht[14]=ho>>>16&255,ht[15]=ho>>>24&255,ht[16]=Ie>>>0&255,ht[17]=Ie>>>8&255,ht[18]=Ie>>>16&255,ht[19]=Ie>>>24&255,ht[20]=Zt>>>0&255,ht[21]=Zt>>>8&255,ht[22]=Zt>>>16&255,ht[23]=Zt>>>24&255,ht[24]=Ir>>>0&255,ht[25]=Ir>>>8&255,ht[26]=Ir>>>16&255,ht[27]=Ir>>>24&255,ht[28]=$>>>0&255,ht[29]=$>>>8&255,ht[30]=$>>>16&255,ht[31]=$>>>24&255}function ne(ht,Xe,et,ue){q(ht,Xe,et,ue)}function ce(ht,Xe,et,ue){Y(ht,Xe,et,ue)}var le=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function pe(ht,Xe,et,ue,je,be,qe){var De=new Uint8Array(16),Je=new Uint8Array(64),Rt,Vt;for(Vt=0;Vt<16;Vt++)De[Vt]=0;for(Vt=0;Vt<8;Vt++)De[Vt]=be[Vt];for(;je>=64;){for(ne(Je,De,qe,le),Vt=0;Vt<64;Vt++)ht[Xe+Vt]=et[ue+Vt]^Je[Vt];for(Rt=1,Vt=8;Vt<16;Vt++)Rt=Rt+(De[Vt]&255)|0,De[Vt]=Rt&255,Rt>>>=8;je-=64,Xe+=64,ue+=64}if(je>0)for(ne(Je,De,qe,le),Vt=0;Vt<je;Vt++)ht[Xe+Vt]=et[ue+Vt]^Je[Vt];return 0}function ae(ht,Xe,et,ue,je){var be=new Uint8Array(16),qe=new Uint8Array(64),De,Je;for(Je=0;Je<16;Je++)be[Je]=0;for(Je=0;Je<8;Je++)be[Je]=ue[Je];for(;et>=64;){for(ne(qe,be,je,le),Je=0;Je<64;Je++)ht[Xe+Je]=qe[Je];for(De=1,Je=8;Je<16;Je++)De=De+(be[Je]&255)|0,be[Je]=De&255,De>>>=8;et-=64,Xe+=64}if(et>0)for(ne(qe,be,je,le),Je=0;Je<et;Je++)ht[Xe+Je]=qe[Je];return 0}function W(ht,Xe,et,ue,je){var be=new Uint8Array(32);ce(be,ue,je,le);for(var qe=new Uint8Array(8),De=0;De<8;De++)qe[De]=ue[De+16];return ae(ht,Xe,et,qe,be)}function se(ht,Xe,et,ue,je,be,qe){var De=new Uint8Array(32);ce(De,be,qe,le);for(var Je=new Uint8Array(8),Rt=0;Rt<8;Rt++)Je[Rt]=be[Rt+16];return pe(ht,Xe,et,ue,je,Je,De)}var O=function(ht){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var Xe,et,ue,je,be,qe,De,Je;Xe=ht[0]&255|(ht[1]&255)<<8,this.r[0]=Xe&8191,et=ht[2]&255|(ht[3]&255)<<8,this.r[1]=(Xe>>>13|et<<3)&8191,ue=ht[4]&255|(ht[5]&255)<<8,this.r[2]=(et>>>10|ue<<6)&7939,je=ht[6]&255|(ht[7]&255)<<8,this.r[3]=(ue>>>7|je<<9)&8191,be=ht[8]&255|(ht[9]&255)<<8,this.r[4]=(je>>>4|be<<12)&255,this.r[5]=be>>>1&8190,qe=ht[10]&255|(ht[11]&255)<<8,this.r[6]=(be>>>14|qe<<2)&8191,De=ht[12]&255|(ht[13]&255)<<8,this.r[7]=(qe>>>11|De<<5)&8065,Je=ht[14]&255|(ht[15]&255)<<8,this.r[8]=(De>>>8|Je<<8)&8191,this.r[9]=Je>>>5&127,this.pad[0]=ht[16]&255|(ht[17]&255)<<8,this.pad[1]=ht[18]&255|(ht[19]&255)<<8,this.pad[2]=ht[20]&255|(ht[21]&255)<<8,this.pad[3]=ht[22]&255|(ht[23]&255)<<8,this.pad[4]=ht[24]&255|(ht[25]&255)<<8,this.pad[5]=ht[26]&255|(ht[27]&255)<<8,this.pad[6]=ht[28]&255|(ht[29]&255)<<8,this.pad[7]=ht[30]&255|(ht[31]&255)<<8};O.prototype.blocks=function(ht,Xe,et){for(var ue=this.fin?0:2048,je,be,qe,De,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=Rr,ln+=ot*Ar,ln+=lt*Fo,ln+=gt*wo,ln+=Ie*ka,ln+=Zt*jo,Rr=ln>>>13,ln&=8191,ln+=Ir*Tr,ln+=$*ho,ln+=Qr*oo,ln+=en*Mi,ln+=xr*(5*Pa),Rr+=ln>>>13,ln&=8191,yt=Rr,yt+=ot*Pa,yt+=lt*Ar,yt+=gt*Fo,yt+=Ie*wo,yt+=Zt*ka,Rr=yt>>>13,yt&=8191,yt+=Ir*jo,yt+=$*Tr,yt+=Qr*ho,yt+=en*oo,yt+=xr*Mi,Rr+=yt>>>13,yt&=8191,Rr=(Rr<<2)+Rr|0,Rr=Rr+Dr|0,Dr=Rr&8191,Rr=Rr>>>13,Pr+=Rr,ot=Dr,lt=Pr,gt=k,Ie=a,Zt=S,Ir=sn,$=Lr,Qr=Wr,en=ln,xr=yt,Xe+=16,et-=16;this.h[0]=ot,this.h[1]=lt,this.h[2]=gt,this.h[3]=Ie,this.h[4]=Zt,this.h[5]=Ir,this.h[6]=$,this.h[7]=Qr,this.h[8]=en,this.h[9]=xr},O.prototype.finish=function(ht,Xe){var et=new Uint16Array(10),ue,je,be,qe;if(this.leftover){for(qe=this.leftover,this.buffer[qe++]=1;qe<16;qe++)this.buffer[qe]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(ue=this.h[1]>>>13,this.h[1]&=8191,qe=2;qe<10;qe++)this.h[qe]+=ue,ue=this.h[qe]>>>13,this.h[qe]&=8191;for(this.h[0]+=ue*5,ue=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=ue,ue=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=ue,et[0]=this.h[0]+5,ue=et[0]>>>13,et[0]&=8191,qe=1;qe<10;qe++)et[qe]=this.h[qe]+ue,ue=et[qe]>>>13,et[qe]&=8191;for(et[9]-=8192,je=(ue^1)-1,qe=0;qe<10;qe++)et[qe]&=je;for(je=~je,qe=0;qe<10;qe++)this.h[qe]=this.h[qe]&je|et[qe];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,be=this.h[0]+this.pad[0],this.h[0]=be&65535,qe=1;qe<8;qe++)be=(this.h[qe]+this.pad[qe]|0)+(be>>>16)|0,this.h[qe]=be&65535;ht[Xe+0]=this.h[0]>>>0&255,ht[Xe+1]=this.h[0]>>>8&255,ht[Xe+2]=this.h[1]>>>0&255,ht[Xe+3]=this.h[1]>>>8&255,ht[Xe+4]=this.h[2]>>>0&255,ht[Xe+5]=this.h[2]>>>8&255,ht[Xe+6]=this.h[3]>>>0&255,ht[Xe+7]=this.h[3]>>>8&255,ht[Xe+8]=this.h[4]>>>0&255,ht[Xe+9]=this.h[4]>>>8&255,ht[Xe+10]=this.h[5]>>>0&255,ht[Xe+11]=this.h[5]>>>8&255,ht[Xe+12]=this.h[6]>>>0&255,ht[Xe+13]=this.h[6]>>>8&255,ht[Xe+14]=this.h[7]>>>0&255,ht[Xe+15]=this.h[7]>>>8&255},O.prototype.update=function(ht,Xe,et){var ue,je;if(this.leftover){for(je=16-this.leftover,je>et&&(je=et),ue=0;ue<je;ue++)this.buffer[this.leftover+ue]=ht[Xe+ue];if(et-=je,Xe+=je,this.leftover+=je,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(et>=16&&(je=et-et%16,this.blocks(ht,Xe,je),Xe+=je,et-=je),et){for(ue=0;ue<et;ue++)this.buffer[this.leftover+ue]=ht[Xe+ue];this.leftover+=et}};function s(ht,Xe,et,ue,je,be){var qe=new O(be);return qe.update(et,ue,je),qe.finish(ht,Xe),0}function l(ht,Xe,et,ue,je,be){var qe=new Uint8Array(16);return s(qe,0,et,ue,je,be),P(ht,Xe,qe,0)}function A(ht,Xe,et,ue,je){var be;if(et<32)return-1;for(se(ht,0,Xe,0,et,ue,je),s(ht,16,ht,32,et-32,ht),be=0;be<16;be++)ht[be]=0;return 0}function m(ht,Xe,et,ue,je){var be,qe=new Uint8Array(32);if(et<32||(W(qe,0,32,ue,je),l(Xe,16,Xe,32,et-32,qe)!==0))return-1;for(se(ht,0,Xe,0,et,ue,je),be=0;be<32;be++)ht[be]=0;return 0}function E(ht,Xe){var et;for(et=0;et<16;et++)ht[et]=Xe[et]|0}function w(ht){var Xe,et,ue=1;for(Xe=0;Xe<16;Xe++)et=ht[Xe]+ue+65535,ue=Math.floor(et/65536),ht[Xe]=et-ue*65536;ht[0]+=ue-1+37*(ue-1)}function x(ht,Xe,et){for(var ue,je=~(et-1),be=0;be<16;be++)ue=je&(ht[be]^Xe[be]),ht[be]^=ue,Xe[be]^=ue}function R(ht,Xe){var et,ue,je,be=t(),qe=t();for(et=0;et<16;et++)qe[et]=Xe[et];for(w(qe),w(qe),w(qe),ue=0;ue<2;ue++){for(be[0]=qe[0]-65517,et=1;et<15;et++)be[et]=qe[et]-65535-(be[et-1]>>16&1),be[et-1]&=65535;be[15]=qe[15]-32767-(be[14]>>16&1),je=be[15]>>16&1,be[14]&=65535,x(qe,be,1-je)}for(et=0;et<16;et++)ht[2*et]=qe[et]&255,ht[2*et+1]=qe[et]>>8}function u(ht,Xe){var et=new Uint8Array(32),ue=new Uint8Array(32);return R(et,ht),R(ue,Xe),G(et,0,ue,0)}function C(ht){var Xe=new Uint8Array(32);return R(Xe,ht),Xe[0]&1}function U(ht,Xe){var et;for(et=0;et<16;et++)ht[et]=Xe[2*et]+(Xe[2*et+1]<<8);ht[15]&=32767}function F(ht,Xe,et){for(var ue=0;ue<16;ue++)ht[ue]=Xe[ue]+et[ue]}function X(ht,Xe,et){for(var ue=0;ue<16;ue++)ht[ue]=Xe[ue]-et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ar,Ie+=ue*Pa,Zt+=ue*Hu,Ir+=ue*vs,$+=ue*Iu,Qr+=ue*Cu,en+=ue*wu,xr+=ue*l0,Mi+=ue*Ed,oo+=ue*vd,ho+=ue*Et,be+=38*ln,qe+=38*yt,De+=38*ot,Je+=38*lt,Rt+=38*gt,Vt+=38*Ie,br+=38*Zt,Rr+=38*Ir,Dr+=38*$,Pr+=38*Qr,k+=38*en,a+=38*xr,S+=38*Mi,sn+=38*oo,Lr+=38*ho,je=1,ue=be+je+65535,je=Math.floor(ue/65536),be=ue-je*65536,ue=qe+je+65535,je=Math.floor(ue/65536),qe=ue-je*65536,ue=De+je+65535,je=Math.floor(ue/65536),De=ue-je*65536,ue=Je+je+65535,je=Math.floor(ue/65536),Je=ue-je*65536,ue=Rt+je+65535,je=Math.floor(ue/65536),Rt=ue-je*65536,ue=Vt+je+65535,je=Math.floor(ue/65536),Vt=ue-je*65536,ue=br+je+65535,je=Math.floor(ue/65536),br=ue-je*65536,ue=Rr+je+65535,je=Math.floor(ue/65536),Rr=ue-je*65536,ue=Dr+je+65535,je=Math.floor(ue/65536),Dr=ue-je*65536,ue=Pr+je+65535,je=Math.floor(ue/65536),Pr=ue-je*65536,ue=k+je+65535,je=Math.floor(ue/65536),k=ue-je*65536,ue=a+je+65535,je=Math.floor(ue/65536),a=ue-je*65536,ue=S+je+65535,je=Math.floor(ue/65536),S=ue-je*65536,ue=sn+je+65535,je=Math.floor(ue/65536),sn=ue-je*65536,ue=Lr+je+65535,je=Math.floor(ue/65536),Lr=ue-je*65536,ue=Wr+je+65535,je=Math.floor(ue/65536),Wr=ue-je*65536,be+=je-1+37*(je-1),je=1,ue=be+je+65535,je=Math.floor(ue/65536),be=ue-je*65536,ue=qe+je+65535,je=Math.floor(ue/65536),qe=ue-je*65536,ue=De+je+65535,je=Math.floor(ue/65536),De=ue-je*65536,ue=Je+je+65535,je=Math.floor(ue/65536),Je=ue-je*65536,ue=Rt+je+65535,je=Math.floor(ue/65536),Rt=ue-je*65536,ue=Vt+je+65535,je=Math.floor(ue/65536),Vt=ue-je*65536,ue=br+je+65535,je=Math.floor(ue/65536),br=ue-je*65536,ue=Rr+je+65535,je=Math.floor(ue/65536),Rr=ue-je*65536,ue=Dr+je+65535,je=Math.floor(ue/65536),Dr=ue-je*65536,ue=Pr+je+65535,je=Math.floor(ue/65536),Pr=ue-je*65536,ue=k+je+65535,je=Math.floor(ue/65536),k=ue-je*65536,ue=a+je+65535,je=Math.floor(ue/65536),a=ue-je*65536,ue=S+je+65535,je=Math.floor(ue/65536),S=ue-je*65536,ue=sn+je+65535,je=Math.floor(ue/65536),sn=ue-je*65536,ue=Lr+je+65535,je=Math.floor(ue/65536),Lr=ue-je*65536,ue=Wr+je+65535,je=Math.floor(ue/65536),Wr=ue-je*65536,be+=je-1+37*(je-1),ht[0]=be,ht[1]=qe,ht[2]=De,ht[3]=Je,ht[4]=Rt,ht[5]=Vt,ht[6]=br,ht[7]=Rr,ht[8]=Dr,ht[9]=Pr,ht[10]=k,ht[11]=a,ht[12]=S,ht[13]=sn,ht[14]=Lr,ht[15]=Wr}function he(ht,Xe){Ae(ht,Xe,Xe)}function $e(ht,Xe){var et=t(),ue;for(ue=0;ue<16;ue++)et[ue]=Xe[ue];for(ue=253;ue>=0;ue--)he(et,et),ue!==2&&ue!==4&&Ae(et,et,Xe);for(ue=0;ue<16;ue++)ht[ue]=et[ue]}function Ge(ht,Xe){var et=t(),ue;for(ue=0;ue<16;ue++)et[ue]=Xe[ue];for(ue=250;ue>=0;ue--)he(et,et),ue!==1&&Ae(et,et,Xe);for(ue=0;ue<16;ue++)ht[ue]=et[ue]}function Re(ht,Xe,et){var ue=new Uint8Array(32),je=new Float64Array(80),be,qe,De=t(),Je=t(),Rt=t(),Vt=t(),br=t(),Rr=t();for(qe=0;qe<31;qe++)ue[qe]=Xe[qe];for(ue[31]=Xe[31]&127|64,ue[0]&=248,U(je,et),qe=0;qe<16;qe++)Je[qe]=je[qe],Vt[qe]=De[qe]=Rt[qe]=0;for(De[0]=Vt[0]=1,qe=254;qe>=0;--qe)be=ue[qe>>>3]>>>(qe&7)&1,x(De,Je,be),x(Rt,Vt,be),F(br,De,Rt),X(De,De,Rt),F(Rt,Je,Vt),X(Je,Je,Vt),he(Vt,br),he(Rr,De),Ae(De,Rt,De),Ae(Rt,Je,br),F(br,De,Rt),X(De,De,Rt),he(Je,De),X(Rt,Vt,Rr),Ae(De,Rt,g),F(De,De,Vt),Ae(Rt,Rt,De),Ae(De,Vt,Rr),Ae(Vt,Je,je),he(Je,br),x(De,Je,be),x(Rt,Vt,be);for(qe=0;qe<16;qe++)je[qe+16]=De[qe],je[qe+32]=Rt[qe],je[qe+48]=Je[qe],je[qe+64]=Vt[qe];var Dr=je.subarray(32),Pr=je.subarray(16);return $e(Dr,Dr),Ae(Pr,Pr,Dr),R(ht,Pr),0}function Se(ht,Xe){return Re(ht,Xe,n)}function ct(ht,Xe){return r(Xe,32),Se(ht,Xe)}function ze(ht,Xe,et){var ue=new Uint8Array(32);return Re(ue,et,Xe),ce(ht,i,ue,le)}var te=A,Ue=m;function oe(ht,Xe,et,ue,je,be){var qe=new Uint8Array(32);return ze(qe,je,be),te(ht,Xe,et,ue,qe)}function ge(ht,Xe,et,ue,je,be){var qe=new Uint8Array(32);return ze(qe,je,be),Ue(ht,Xe,et,ue,qe)}var Le=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function V(ht,Xe,et,ue){for(var je=new Int32Array(16),be=new Int32Array(16),qe,De,Je,Rt,Vt,br,Rr,Dr,Pr,k,a,S,sn,Lr,Wr,ln,yt,ot,lt,gt,Ie,Zt,Ir,$,Qr,en,xr=ht[0],Mi=ht[1],oo=ht[2],ho=ht[3],Tr=ht[4],jo=ht[5],ka=ht[6],wo=ht[7],Fo=Xe[0],Ar=Xe[1],Pa=Xe[2],Hu=Xe[3],vs=Xe[4],Iu=Xe[5],Cu=Xe[6],wu=Xe[7],l0=0;ue>=128;){for(lt=0;lt<16;lt++)gt=8*lt+l0,je[lt]=et[gt+0]<<24|et[gt+1]<<16|et[gt+2]<<8|et[gt+3],be[lt]=et[gt+4]<<24|et[gt+5]<<16|et[gt+6]<<8|et[gt+7];for(lt=0;lt<80;lt++)if(qe=xr,De=Mi,Je=oo,Rt=ho,Vt=Tr,br=jo,Rr=ka,Dr=wo,Pr=Fo,k=Ar,a=Pa,S=Hu,sn=vs,Lr=Iu,Wr=Cu,ln=wu,Ie=wo,Zt=wu,Ir=Zt&65535,$=Zt>>>16,Qr=Ie&65535,en=Ie>>>16,Ie=(Tr>>>14|vs<<18)^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ie=ht[7],Zt=Xe[7],Ir+=Zt&65535,$+=Zt>>>16,Qr+=Ie&65535,en+=Ie>>>16,$+=Ir>>>16,Qr+=$>>>16,en+=Qr>>>16,ht[7]=wo=Qr&65535|en<<16,Xe[7]=wu=Ir&65535|$<<16,l0+=128,ue-=128}return ue}function Qe(ht,Xe,et){var ue=new Int32Array(8),je=new Int32Array(8),be=new Uint8Array(256),qe,De=et;for(ue[0]=1779033703,ue[1]=3144134277,ue[2]=1013904242,ue[3]=2773480762,ue[4]=1359893119,ue[5]=2600822924,ue[6]=528734635,ue[7]=1541459225,je[0]=4089235720,je[1]=2227873595,je[2]=4271175723,je[3]=1595750129,je[4]=2917565137,je[5]=725511199,je[6]=4215389547,je[7]=327033209,V(ue,je,Xe,et),et%=128,qe=0;qe<et;qe++)be[qe]=Xe[De-et+qe];for(be[et]=128,et=256-128*(et<112?1:0),be[et-9]=0,M(be,et-8,De/536870912|0,De<<3),V(ue,je,be,et),qe=0;qe<8;qe++)M(ht,8*qe,ue[qe],je[qe]);return 0}function _t(ht,Xe){var et=t(),ue=t(),je=t(),be=t(),qe=t(),De=t(),Je=t(),Rt=t(),Vt=t();X(et,ht[1],ht[0]),X(Vt,Xe[1],Xe[0]),Ae(et,et,Vt),F(ue,ht[0],ht[1]),F(Vt,Xe[0],Xe[1]),Ae(ue,ue,Vt),Ae(je,ht[3],Xe[3]),Ae(je,je,_),Ae(be,ht[2],Xe[2]),F(be,be,be),X(qe,ue,et),X(De,be,je),F(Je,be,je),F(Rt,ue,et),Ae(ht[0],qe,De),Ae(ht[1],Rt,Je),Ae(ht[2],Je,De),Ae(ht[3],qe,Rt)}function rt(ht,Xe,et){var ue;for(ue=0;ue<4;ue++)x(ht[ue],Xe[ue],et)}function At(ht,Xe){var et=t(),ue=t(),je=t();$e(je,Xe[2]),Ae(et,Xe[0],je),Ae(ue,Xe[1],je),R(ht,ue),ht[31]^=C(et)<<7}function Er(ht,Xe,et){var ue,je;for(E(ht[0],o),E(ht[1],d),E(ht[2],d),E(ht[3],o),je=255;je>=0;--je)ue=et[je/8|0]>>(je&7)&1,rt(ht,Xe,ue),_t(Xe,ht),_t(ht,ht),rt(ht,Xe,ue)}function mt(ht,Xe){var et=[t(),t(),t(),t()];E(et[0],I),E(et[1],N),E(et[2],d),Ae(et[3],I,N),Er(ht,et,Xe)}function Ht(ht,Xe,et){var ue=new Uint8Array(64),je=[t(),t(),t(),t()],be;for(et||r(Xe,32),Qe(ue,Xe,32),ue[0]&=248,ue[31]&=127,ue[31]|=64,mt(je,ue),At(ht,je),be=0;be<32;be++)Xe[be+32]=ht[be];return 0}var zr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ve(ht,Xe){var et,ue,je,be;for(ue=63;ue>=32;--ue){for(et=0,je=ue-32,be=ue-12;je<be;++je)Xe[je]+=et-16*Xe[ue]*zr[je-(ue-32)],et=Math.floor((Xe[je]+128)/256),Xe[je]-=et*256;Xe[je]+=et,Xe[ue]=0}for(et=0,je=0;je<32;je++)Xe[je]+=et-(Xe[31]>>4)*zr[je],et=Xe[je]>>8,Xe[je]&=255;for(je=0;je<32;je++)Xe[je]-=et*zr[je];for(ue=0;ue<32;ue++)Xe[ue+1]+=Xe[ue]>>8,ht[ue]=Xe[ue]&255}function ie(ht){var Xe=new Float64Array(64),et;for(et=0;et<64;et++)Xe[et]=ht[et];for(et=0;et<64;et++)ht[et]=0;ve(ht,Xe)}function _e(ht,Xe,et,ue){var je=new Uint8Array(64),be=new Uint8Array(64),qe=new Uint8Array(64),De,Je,Rt=new Float64Array(64),Vt=[t(),t(),t(),t()];Qe(je,ue,32),je[0]&=248,je[31]&=127,je[31]|=64;var br=et+64;for(De=0;De<et;De++)ht[64+De]=Xe[De];for(De=0;De<32;De++)ht[32+De]=je[32+De];for(Qe(qe,ht.subarray(32),et+32),ie(qe),mt(Vt,qe),At(ht,Vt),De=32;De<64;De++)ht[De]=ue[De];for(Qe(be,ht,et+64),ie(be),De=0;De<64;De++)Rt[De]=0;for(De=0;De<32;De++)Rt[De]=qe[De];for(De=0;De<32;De++)for(Je=0;Je<32;Je++)Rt[De+Je]+=be[De]*je[Je];return ve(ht.subarray(32),Rt),br}function Be(ht,Xe){var et=t(),ue=t(),je=t(),be=t(),qe=t(),De=t(),Je=t();return E(ht[2],d),U(ht[1],Xe),he(je,ht[1]),Ae(be,je,y),X(je,je,ht[2]),F(be,ht[2],be),he(qe,be),he(De,qe),Ae(Je,De,qe),Ae(et,Je,je),Ae(et,et,be),Ge(et,et),Ae(et,et,je),Ae(et,et,be),Ae(et,et,be),Ae(ht[0],et,be),he(ue,ht[0]),Ae(ue,ue,be),u(ue,je)&&Ae(ht[0],ht[0],T),he(ue,ht[0]),Ae(ue,ue,be),u(ue,je)?-1:(C(ht[0])===Xe[31]>>7&&X(ht[0],o,ht[0]),Ae(ht[3],ht[0],ht[1]),0)}function Ze(ht,Xe,et,ue){var je,be=new Uint8Array(32),qe=new Uint8Array(64),De=[t(),t(),t(),t()],Je=[t(),t(),t(),t()];if(et<64||Be(Je,ue))return-1;for(je=0;je<et;je++)ht[je]=Xe[je];for(je=0;je<32;je++)ht[je+32]=ue[je];if(Qe(qe,ht,et),ie(qe),Er(De,Je,qe),mt(Je,Xe.subarray(32)),_t(De,Je),At(be,De),et-=64,G(Xe,0,be,0)){for(je=0;je<et;je++)ht[je]=0;return-1}for(je=0;je<et;je++)ht[je]=Xe[je+64];return et}var $t=32,at=24,zt=32,Hr=16,St=32,Yt=32,qr=32,tr=32,hr=32,Cn=at,er=zt,pr=Hr,mn=64,Xt=32,dr=64,wn=32,Qt=64;e.lowlevel={crypto_core_hsalsa20:ce,crypto_stream_xor:se,crypto_stream:W,crypto_stream_salsa20_xor:pe,crypto_stream_salsa20:ae,crypto_onetimeauth:s,crypto_onetimeauth_verify:l,crypto_verify_16:P,crypto_verify_32:G,crypto_secretbox:A,crypto_secretbox_open:m,crypto_scalarmult:Re,crypto_scalarmult_base:Se,crypto_box_beforenm:ze,crypto_box_afternm:te,crypto_box:oe,crypto_box_open:ge,crypto_box_keypair:ct,crypto_hash:Qe,crypto_sign:_e,crypto_sign_keypair:Ht,crypto_sign_open:Ze,crypto_secretbox_KEYBYTES:$t,crypto_secretbox_NONCEBYTES:at,crypto_secretbox_ZEROBYTES:zt,crypto_secretbox_BOXZEROBYTES:Hr,crypto_scalarmult_BYTES:St,crypto_scalarmult_SCALARBYTES:Yt,crypto_box_PUBLICKEYBYTES:qr,crypto_box_SECRETKEYBYTES:tr,crypto_box_BEFORENMBYTES:hr,crypto_box_NONCEBYTES:Cn,crypto_box_ZEROBYTES:er,crypto_box_BOXZEROBYTES:pr,crypto_sign_BYTES:mn,crypto_sign_PUBLICKEYBYTES:Xt,crypto_sign_SECRETKEYBYTES:dr,crypto_sign_SEEDBYTES:wn,crypto_hash_BYTES:Qt,gf:t,D:y,L:zr,pack25519:R,unpack25519:U,M:Ae,A:F,S:he,Z:X,pow2523:Ge,add:_t,set25519:E,modL:ve,scalarmult:Er,scalarbase:mt};function fr(ht,Xe){if(ht.length!==$t)throw new Error("bad key size");if(Xe.length!==at)throw new Error("bad nonce size")}function In(ht,Xe){if(ht.length!==qr)throw new Error("bad public key size");if(Xe.length!==tr)throw new Error("bad secret key size")}function jt(){for(var ht=0;ht<arguments.length;ht++)if(!(arguments[ht]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ar(ht){for(var Xe=0;Xe<ht.length;Xe++)ht[Xe]=0}e.randomBytes=function(ht){var Xe=new Uint8Array(ht);return r(Xe,ht),Xe},e.secretbox=function(ht,Xe,et){jt(ht,Xe,et),fr(et,Xe);for(var ue=new Uint8Array(zt+ht.length),je=new Uint8Array(ue.length),be=0;be<ht.length;be++)ue[be+zt]=ht[be];return A(je,ue,ue.length,Xe,et),je.subarray(Hr)},e.secretbox.open=function(ht,Xe,et){jt(ht,Xe,et),fr(et,Xe);for(var ue=new Uint8Array(Hr+ht.length),je=new Uint8Array(ue.length),be=0;be<ht.length;be++)ue[be+Hr]=ht[be];return ue.length<32||m(je,ue,ue.length,Xe,et)!==0?null:je.subarray(zt)},e.secretbox.keyLength=$t,e.secretbox.nonceLength=at,e.secretbox.overheadLength=Hr,e.scalarMult=function(ht,Xe){if(jt(ht,Xe),ht.length!==Yt)throw new Error("bad n size");if(Xe.length!==St)throw new Error("bad p size");var et=new Uint8Array(St);return Re(et,ht,Xe),et},e.scalarMult.base=function(ht){if(jt(ht),ht.length!==Yt)throw new Error("bad n size");var Xe=new Uint8Array(St);return Se(Xe,ht),Xe},e.scalarMult.scalarLength=Yt,e.scalarMult.groupElementLength=St,e.box=function(ht,Xe,et,ue){var je=e.box.before(et,ue);return e.secretbox(ht,Xe,je)},e.box.before=function(ht,Xe){jt(ht,Xe),In(ht,Xe);var et=new Uint8Array(hr);return ze(et,ht,Xe),et},e.box.after=e.secretbox,e.box.open=function(ht,Xe,et,ue){var je=e.box.before(et,ue);return e.secretbox.open(ht,Xe,je)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var ht=new Uint8Array(qr),Xe=new Uint8Array(tr);return ct(ht,Xe),{publicKey:ht,secretKey:Xe}},e.box.keyPair.fromSecretKey=function(ht){if(jt(ht),ht.length!==tr)throw new Error("bad secret key size");var Xe=new Uint8Array(qr);return Se(Xe,ht),{publicKey:Xe,secretKey:new Uint8Array(ht)}},e.box.publicKeyLength=qr,e.box.secretKeyLength=tr,e.box.sharedKeyLength=hr,e.box.nonceLength=Cn,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(ht,Xe){if(jt(ht,Xe),Xe.length!==dr)throw new Error("bad secret key size");var et=new Uint8Array(mn+ht.length);return _e(et,ht,ht.length,Xe),et},e.sign.open=function(ht,Xe){if(jt(ht,Xe),Xe.length!==Xt)throw new Error("bad public key size");var et=new Uint8Array(ht.length),ue=Ze(et,ht,ht.length,Xe);if(ue<0)return null;for(var je=new Uint8Array(ue),be=0;be<je.length;be++)je[be]=et[be];return je},e.sign.detached=function(ht,Xe){for(var et=e.sign(ht,Xe),ue=new Uint8Array(mn),je=0;je<ue.length;je++)ue[je]=et[je];return ue},e.sign.detached.verify=function(ht,Xe,et){if(jt(ht,Xe,et),Xe.length!==mn)throw new Error("bad signature size");if(et.length!==Xt)throw new Error("bad public key size");var ue=new Uint8Array(mn+ht.length),je=new Uint8Array(mn+ht.length),be;for(be=0;be<mn;be++)ue[be]=Xe[be];for(be=0;be<ht.length;be++)ue[be+mn]=ht[be];return Ze(je,ue,ue.length,et)>=0},e.sign.keyPair=function(){var ht=new Uint8Array(Xt),Xe=new Uint8Array(dr);return Ht(ht,Xe),{publicKey:ht,secretKey:Xe}},e.sign.keyPair.fromSecretKey=function(ht){if(jt(ht),ht.length!==dr)throw new Error("bad secret key size");for(var Xe=new Uint8Array(Xt),et=0;et<Xe.length;et++)Xe[et]=ht[32+et];return{publicKey:Xe,secretKey:new Uint8Array(ht)}},e.sign.keyPair.fromSeed=function(ht){if(jt(ht),ht.length!==wn)throw new Error("bad seed size");for(var Xe=new Uint8Array(Xt),et=new Uint8Array(dr),ue=0;ue<32;ue++)et[ue]=ht[ue];return Ht(Xe,et,!0),{publicKey:Xe,secretKey:et}},e.sign.publicKeyLength=Xt,e.sign.secretKeyLength=dr,e.sign.seedLength=wn,e.sign.signatureLength=mn,e.hash=function(ht){jt(ht);var Xe=new Uint8Array(Qt);return Qe(Xe,ht,ht.length),Xe},e.hash.hashLength=Qt,e.verify=function(ht,Xe){return jt(ht,Xe),ht.length===0||Xe.length===0||ht.length!==Xe.length?!1:D(ht,0,Xe,0,ht.length)===0},e.setPRNG=function(ht){r=ht},(function(){var ht=typeof self<"u"?self.crypto||self.msCrypto:null;if(ht&&ht.getRandomValues){var Xe=65536;e.setPRNG(function(et,ue){var je,be=new Uint8Array(ue);for(je=0;je<ue;je+=Xe)ht.getRandomValues(be.subarray(je,je+Math.min(ue-je,Xe)));for(je=0;je<ue;je++)et[je]=be[je];ar(be)})}else typeof Av<"u"&&(ht=(IA(),Zu(Lv)),ht&&ht.randomBytes&&e.setPRNG(function(et,ue){var je,be=ht.randomBytes(ue);for(je=0;je<ue;je++)et[je]=be[je];ar(be)}))})()})(typeof Tre<"u"&&Tre.exports?Tre.exports:self.nacl=self.nacl||{})});J();K();z();J();K();z();J();K();z();J();K();z();var hle={};gh(hle,{AVSCTap:()=>Qk,AlgorandSigner:()=>Bk,AptosSigner:()=>Mk,ArconnectSigner:()=>eC,Arweave:()=>qJe.default,ArweaveSigner:()=>nb,Bundle:()=>GJ,BundleItem:()=>lle,CryptoDriver:()=>OV,Curve25519:()=>H1,DataItem:()=>FJ,EthereumSigner:()=>m0,HexInjectedSolanaSigner:()=>Pm,HexSolanaSigner:()=>bb,InjectedAptosSigner:()=>X4,InjectedEthereumSigner:()=>Xv,InjectedSolanaSigner:()=>w4,InjectedTypedEthereumSigner:()=>cle,KyveSigner:()=>Pk,MAX_TAG_BYTES:()=>UJ,MIN_BINARY_SIZE:()=>QJ,MultiSignatureAptosSigner:()=>Z4,NearSigner:()=>Tk,PolygonSigner:()=>xk,Rsa4096:()=>I4,SIG_CONFIG:()=>ps,SignatureConfig:()=>ko,Signer:()=>nne,SolanaSigner:()=>Zv,Transaction:()=>GJe.default,TypedEthereumSigner:()=>j4,bundleAndSignData:()=>NDt,byteArrayToLong:()=>ld,concatBuffers:()=>js.concatBuffers,createData:()=>Gk,deepHash:()=>rb,deserializeTags:()=>CN,exportForTesting:()=>IDt,getCryptoDriver:()=>Od,getSignatureAndId:()=>nXe,indexToType:()=>Lk,keccak256:()=>ole,longTo16ByteArray:()=>wDt,longTo32ByteArray:()=>LJ,longTo8ByteArray:()=>PJ,longToNByteArray:()=>Fk,secp256k1:()=>W4,serializeTags:()=>dle,shortTo2ByteArray:()=>ule,sign:()=>HJ,stringToBuffer:()=>js.stringToBuffer,unbundleData:()=>ODt});J();K();z();J();K();z();J();K();z();var nne=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(t,r,i,n){throw new Error("You must implement verify method on child")}};J();K();z();J();K();z();var rJe=po(Cg(),1);J();K();z();var ko;(function(e){e[e.ARWEAVE=1]="ARWEAVE",e[e.ED25519=2]="ED25519",e[e.ETHEREUM=3]="ETHEREUM",e[e.SOLANA=4]="SOLANA",e[e.INJECTEDAPTOS=5]="INJECTEDAPTOS",e[e.MULTIAPTOS=6]="MULTIAPTOS",e[e.TYPEDETHEREUM=7]="TYPEDETHEREUM",e[e.KYVE=101]="KYVE"})(ko||(ko={}));var ps={[ko.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[ko.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[ko.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[ko.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[ko.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[ko.MULTIAPTOS]:{sigLength:2052,pubLength:1025,sigName:"multiAptos"},[ko.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[ko.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};J();K();z();IA();var il=BigInt(0),Js=BigInt(1),O6=BigInt(2),iNt=BigInt(8),$Ve=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),ju=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:$Ve,n:$Ve,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")});var jVe=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),UD=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),aIn=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),oNt=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),aNt=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),sNt=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),cNt=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),kf=class e{constructor(t,r,i,n){this.x=t,this.y=r,this.z=i,this.t=n}static fromAffine(t){if(!(t instanceof wd))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(wd.ZERO)?e.ZERO:new e(t.x,t.y,Js,qn(t.x*t.y))}static toAffineBatch(t){let r=fNt(t.map(i=>i.z));return t.map((i,n)=>i.toAffine(r[n]))}static normalizeZ(t){return this.toAffineBatch(t).map(this.fromAffine)}equals(t){WVe(t);let{x:r,y:i,z:n}=this,{x:o,y:d,z:g}=t,y=qn(r*g),_=qn(o*n),I=qn(i*g),N=qn(d*n);return y===_&&I===N}negate(){return new e(qn(-this.x),this.y,this.z,qn(-this.t))}double(){let{x:t,y:r,z:i}=this,{a:n}=ju,o=qn(t*t),d=qn(r*r),g=qn(O6*qn(i*i)),y=qn(n*o),_=t+r,I=qn(qn(_*_)-o-d),N=y+d,T=N-g,M=y-d,D=qn(I*T),P=qn(N*M),G=qn(I*M),q=qn(T*N);return new e(D,P,q,G)}add(t){WVe(t);let{x:r,y:i,z:n,t:o}=this,{x:d,y:g,z:y,t:_}=t,I=qn((i-r)*(g+d)),N=qn((i+r)*(g-d)),T=qn(N-I);if(T===il)return this.double();let M=qn(n*O6*_),D=qn(o*O6*y),P=D+M,G=N+I,q=D-M,Y=qn(P*T),ne=qn(G*q),ce=qn(P*q),le=qn(T*G);return new e(Y,ne,le,ce)}subtract(t){return this.add(t.negate())}precomputeWindow(t){let r=1+256/t,i=[],n=this,o=n;for(let d=0;d<r;d++){o=n,i.push(o);for(let g=1;g<2**(t-1);g++)o=o.add(n),i.push(o);n=o.double()}return i}wNAF(t,r){!r&&this.equals(e.BASE)&&(r=wd.BASE);let i=r&&r._WINDOW_SIZE||1;if(256%i)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let n=r&&g0e.get(r);n||(n=this.precomputeWindow(i),r&&i!==1&&(n=e.normalizeZ(n),g0e.set(r,n)));let o=e.ZERO,d=e.BASE,g=1+256/i,y=2**(i-1),_=BigInt(2**i-1),I=2**i,N=BigInt(i);for(let T=0;T<g;T++){let M=T*y,D=Number(t&_);t>>=N,D>y&&(D-=I,t+=Js);let P=M,G=M+Math.abs(D)-1,q=T%2!==0,Y=D<0;D===0?d=d.add(YVe(q,n[P])):o=o.add(YVe(Y,n[G]))}return e.normalizeZ([o,d])[0]}multiply(t,r){return this.wNAF(pV(t,ju.l),r)}multiplyUnsafe(t){let r=pV(t,ju.l,!1),i=e.BASE,n=e.ZERO;if(r===il)return n;if(this.equals(n)||r===Js)return this;if(this.equals(i))return this.wNAF(r);let o=n,d=this;for(;r>il;)r&Js&&(o=o.add(d)),d=d.double(),r>>=Js;return o}isSmallOrder(){return this.multiplyUnsafe(ju.h).equals(e.ZERO)}isTorsionFree(){let t=this.multiplyUnsafe(ju.l/O6).double();return ju.l%O6&&(t=t.add(this)),t.equals(e.ZERO)}toAffine(t){let{x:r,y:i,z:n}=this,o=this.equals(e.ZERO);t==null&&(t=o?iNt:gV(n));let d=qn(r*t),g=qn(i*t),y=qn(n*t);if(o)return wd.ZERO;if(y!==Js)throw new Error("invZ was invalid");return new wd(d,g)}fromRistrettoBytes(){h0e()}toRistrettoBytes(){h0e()}fromRistrettoHash(){h0e()}};kf.BASE=new kf(ju.Gx,ju.Gy,Js,qn(ju.Gx*ju.Gy));kf.ZERO=new kf(il,Js,Js,il);function YVe(e,t){let r=t.negate();return e?r:t}function WVe(e){if(!(e instanceof kf))throw new TypeError("ExtendedPoint expected")}function l0e(e){if(!(e instanceof R4))throw new TypeError("RistrettoPoint expected")}function h0e(){throw new Error("Legacy method: switch to RistrettoPoint")}var R4=class e{constructor(t){this.ep=t}static calcElligatorRistrettoMap(t){let{d:r}=ju,i=qn(UD*t*t),n=qn((i+Js)*sNt),o=BigInt(-1),d=qn((o-r*i)*qn(i+r)),{isValid:g,value:y}=m0e(n,d),_=qn(y*t);w6(_)||(_=qn(-_)),g||(y=_),g||(o=i);let I=qn(o*(i-Js)*cNt-d),N=y*y,T=qn((y+y)*d),M=qn(I*oNt),D=qn(Js-N),P=qn(Js+N);return new kf(qn(T*P),qn(D*M),qn(M*P),qn(T*D))}static hashToCurve(t){t=N6(t,64);let r=A0e(t.slice(0,32)),i=this.calcElligatorRistrettoMap(r),n=A0e(t.slice(32,64)),o=this.calcElligatorRistrettoMap(n);return new e(i.add(o))}static fromHex(t){t=N6(t,32);let{a:r,d:i}=ju,n="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",o=A0e(t);if(!hNt(QD(o),t)||w6(o))throw new Error(n);let d=qn(o*o),g=qn(Js+r*d),y=qn(Js-r*d),_=qn(g*g),I=qn(y*y),N=qn(r*i*_-I),{isValid:T,value:M}=ZVe(qn(N*I)),D=qn(M*y),P=qn(M*D*N),G=qn((o+o)*D);w6(G)&&(G=qn(-G));let q=qn(g*P),Y=qn(G*q);if(!T||w6(Y)||q===il)throw new Error(n);return new e(new kf(G,q,Js,Y))}toRawBytes(){let{x:t,y:r,z:i,t:n}=this.ep,o=qn(qn(i+r)*qn(i-r)),d=qn(t*r),g=qn(d*d),{value:y}=ZVe(qn(o*g)),_=qn(y*o),I=qn(y*d),N=qn(_*I*n),T;if(w6(n*N)){let D=qn(r*UD),P=qn(t*UD);t=D,r=P,T=qn(_*aNt)}else T=I;w6(t*N)&&(r=qn(-r));let M=qn((i-r)*T);return w6(M)&&(M=qn(-M)),QD(M)}toHex(){return HD(this.toRawBytes())}toString(){return this.toHex()}equals(t){l0e(t);let r=this.ep,i=t.ep,n=qn(r.x*i.y)===qn(r.y*i.x),o=qn(r.y*i.y)===qn(r.x*i.x);return n||o}add(t){return l0e(t),new e(this.ep.add(t.ep))}subtract(t){return l0e(t),new e(this.ep.subtract(t.ep))}multiply(t){return new e(this.ep.multiply(t))}multiplyUnsafe(t){return new e(this.ep.multiplyUnsafe(t))}};R4.BASE=new R4(kf.BASE);R4.ZERO=new R4(kf.ZERO);var g0e=new WeakMap,wd=class e{constructor(t,r){this.x=t,this.y=r}_setWindowSize(t){this._WINDOW_SIZE=t,g0e.delete(this)}static fromHex(t,r=!0){let{d:i,P:n}=ju;t=N6(t,32);let o=t.slice();o[31]=t[31]&-129;let d=GD(o);if(r&&d>=n)throw new Error("Expected 0 < hex < P");if(!r&&d>=jVe)throw new Error("Expected 0 < hex < 2**256");let g=qn(d*d),y=qn(g-Js),_=qn(i*g+Js),{isValid:I,value:N}=m0e(y,_);if(!I)throw new Error("Point.fromHex: invalid y coordinate");let T=(N&Js)===Js;return(t[31]&128)!==0!==T&&(N=qn(-N)),new e(N,d)}static async fromPrivateKey(t){return(await y0e(t)).point}toRawBytes(){let t=QD(this.y);return t[31]|=this.x&Js?128:0,t}toHex(){return HD(this.toRawBytes())}toX25519(){let{y:t}=this,r=qn((Js+t)*gV(Js-t));return QD(r)}isTorsionFree(){return kf.fromAffine(this).isTorsionFree()}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new e(qn(-this.x),this.y)}add(t){return kf.fromAffine(this).add(kf.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return kf.fromAffine(this).multiply(t,this).toAffine()}};wd.BASE=new wd(ju.Gx,ju.Gy);wd.ZERO=new wd(il,Js);var FD=class e{constructor(t,r){this.r=t,this.s=r,this.assertValidity()}static fromHex(t){let r=N6(t,64),i=wd.fromHex(r.slice(0,32),!1),n=GD(r.slice(32,64));return new e(i,n)}assertValidity(){let{r:t,s:r}=this;if(!(t instanceof wd))throw new Error("Expected Point instance");return pV(r,ju.l,!1),this}toRawBytes(){let t=new Uint8Array(64);return t.set(this.r.toRawBytes()),t.set(QD(this.s),32),t}toHex(){return HD(this.toRawBytes())}};function XVe(...e){if(!e.every(i=>i instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(e.length===1)return e[0];let t=e.reduce((i,n)=>i+n.length,0),r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}var uNt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function HD(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=uNt[e[r]];return t}function _0e(e){if(typeof e!="string")throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let i=r*2,n=e.slice(i,i+2),o=Number.parseInt(n,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t}function eJe(e){let r=e.toString(16).padStart(64,"0");return _0e(r)}function QD(e){return eJe(e).reverse()}function w6(e){return(qn(e)&Js)===Js}function GD(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+HD(Uint8Array.from(e).reverse()))}var dNt=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function A0e(e){return qn(GD(e)&dNt)}function qn(e,t=ju.P){let r=e%t;return r>=il?r:t+r}function gV(e,t=ju.P){if(e===il||t<=il)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=qn(e,t),i=t,n=il,o=Js,d=Js,g=il;for(;r!==il;){let _=i/r,I=i%r,N=n-d*_,T=o-g*_;i=r,r=I,n=d,o=g,d=N,g=T}if(i!==Js)throw new Error("invert: does not exist");return qn(n,t)}function fNt(e,t=ju.P){let r=new Array(e.length),i=e.reduce((o,d,g)=>d===il?o:(r[g]=o,qn(o*d,t)),Js),n=gV(i,t);return e.reduceRight((o,d,g)=>d===il?o:(r[g]=qn(o*r[g],t),qn(o*d,t)),n),r}function eb(e,t){let{P:r}=ju,i=e;for(;t-- >il;)i*=i,i%=r;return i}function lNt(e){let{P:t}=ju,r=BigInt(5),i=BigInt(10),n=BigInt(20),o=BigInt(40),d=BigInt(80),y=e*e%t*e%t,_=eb(y,O6)*y%t,I=eb(_,Js)*e%t,N=eb(I,r)*I%t,T=eb(N,i)*N%t,M=eb(T,n)*T%t,D=eb(M,o)*M%t,P=eb(D,d)*D%t,G=eb(P,d)*D%t,q=eb(G,i)*N%t;return{pow_p_5_8:eb(q,O6)*e%t,b2:y}}function m0e(e,t){let r=qn(t*t*t),i=qn(r*r*t),n=lNt(e*i).pow_p_5_8,o=qn(e*r*n),d=qn(t*o*o),g=o,y=qn(o*UD),_=d===e,I=d===qn(-e),N=d===qn(-e*UD);return _&&(o=g),(I||N)&&(o=y),w6(o)&&(o=qn(-o)),{isValid:_||I,value:o}}function ZVe(e){return m0e(Js,e)}function AV(e){return qn(GD(e),ju.l)}function hNt(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function N6(e,t){let r=e instanceof Uint8Array?Uint8Array.from(e):_0e(e);if(typeof t=="number"&&r.length!==t)throw new Error(`Expected ${t} bytes`);return r}function pV(e,t,r=!0){if(!t)throw new TypeError("Specify max value");if(typeof e=="number"&&Number.isSafeInteger(e)&&(e=BigInt(e)),typeof e=="bigint"&&e<t){if(r){if(il<e)return e}else if(il<=e)return e}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function ANt(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function pNt(e){if(e=typeof e=="bigint"||typeof e=="number"?eJe(pV(e,jVe)):N6(e),e.length!==32)throw new Error("Expected 32 bytes");return e}function gNt(e){let t=ANt(e.slice(0,32)),r=e.slice(32,64),i=AV(t),n=wd.BASE.multiply(i),o=n.toRawBytes();return{head:t,prefix:r,scalar:i,point:n,pointBytes:o}}var p0e;async function y0e(e){return gNt(await QO.sha512(pNt(e)))}async function tJe(e,t){e=N6(e);let{prefix:r,scalar:i,pointBytes:n}=await y0e(t),o=AV(await QO.sha512(r,e)),d=wd.BASE.multiply(o),g=AV(await QO.sha512(d.toRawBytes(),n,e)),y=qn(o+g*i,ju.l);return new FD(d,y).toRawBytes()}function _Nt(e,t,r){t=N6(t),r instanceof wd||(r=wd.fromHex(r,!1));let{r:i,s:n}=e instanceof FD?e.assertValidity():FD.fromHex(e),o=kf.BASE.multiplyUnsafe(n);return{r:i,s:n,SB:o,pub:r,msg:t}}function mNt(e,t,r,i){let n=AV(i),o=kf.fromAffine(e).multiplyUnsafe(n);return kf.fromAffine(t).add(o).subtract(r).multiplyUnsafe(ju.h).equals(kf.ZERO)}async function x6(e,t,r){let{r:i,SB:n,msg:o,pub:d}=_Nt(e,t,r),g=await QO.sha512(i.toRawBytes(),d.toRawBytes(),o);return mNt(d,i,n,g)}wd.BASE._setWindowSize(8);var C6={node:Lv,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},QO={bytesToHex:HD,hexToBytes:_0e,concatBytes:XVe,getExtendedPublicKey:y0e,mod:qn,invert:gV,TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],hashToPrivateScalar:e=>{if(e=N6(e),e.length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return qn(GD(e),ju.l-Js)+Js},randomBytes:(e=32)=>{if(C6.web)return C6.web.getRandomValues(new Uint8Array(e));if(C6.node){let{randomBytes:t}=C6.node;return new Uint8Array(t(e).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>QO.randomBytes(32),sha512:async(...e)=>{let t=XVe(...e);if(C6.web){let r=await C6.web.subtle.digest("SHA-512",t.buffer);return new Uint8Array(r)}else{if(C6.node)return Uint8Array.from(C6.node.createHash("sha512").update(t).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(e=8,t=wd.BASE){let r=t.equals(wd.BASE)?t:new wd(t.x,t.y);return r._setWindowSize(e),r.multiply(O6),r},sha512Sync:void 0};Object.defineProperties(QO,{sha512Sync:{configurable:!1,get(){return p0e},set(e){p0e||(p0e=e)}}});var H1=class{_key;pk;ownerLength=ps[2].pubLength;signatureLength=ps[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(t,r){this._key=t,this.pk=r}get key(){throw new Error("You must implement `key`")}sign(t){return tJe(fe.from(t),fe.from(this.key))}static async verify(t,r,i){let n=t;return typeof t=="string"&&(n=rJe.default.toBuffer(t)),x6(fe.from(i),fe.from(r),fe.from(n))}};J();K();z();J();K();z();J();K();z();J();K();z();var js=po(Rm(),1);J();K();z();IA();async function rb(e){if(typeof e[Symbol.asyncIterator]=="function"){let n=e,o=vm("sha384"),d=0;for await(let _ of n)d+=_.byteLength,o.update(_);let g=(0,js.concatBuffers)([(0,js.stringToBuffer)("blob"),(0,js.stringToBuffer)(d.toString())]),y=(0,js.concatBuffers)([await Od().hash(g,"SHA-384"),o.digest()]);return await Od().hash(y,"SHA-384")}else if(Array.isArray(e)){let n=(0,js.concatBuffers)([(0,js.stringToBuffer)("list"),(0,js.stringToBuffer)(e.length.toString())]);return await hJe(e,await Od().hash(n,"SHA-384"))}let t=e,r=(0,js.concatBuffers)([(0,js.stringToBuffer)("blob"),(0,js.stringToBuffer)(t.byteLength.toString())]),i=(0,js.concatBuffers)([await Od().hash(r,"SHA-384"),await Od().hash(t,"SHA-384")]);return await Od().hash(i,"SHA-384")}async function hJe(e,t){if(e.length<1)return t;let r=(0,js.concatBuffers)([t,await rb(e[0])]),i=await Od().hash(r,"SHA-384");return await hJe(e.slice(1),i)}var wV=po(R0e(),1),GJe=po(YD(),1),qJe=po(ede(),1),ixt=wV.default.default?wV.default.default:wV.default,OV=class extends ixt{getPublicKey(t){throw new Error("Unimplemented")}},oxt;function Od(){return oxt??=new OV}var VJe=po(Cg(),1);IA();var I4=class{_key;pk;signatureType=1;ownerLength=ps[1].pubLength;signatureLength=ps[1].sigLength;_publicKey;get publicKey(){return this._publicKey}constructor(t,r){this._key=t,this.pk=r,r||(this.pk=Od().getPublicKey(JSON.parse(t)))}sign(t){return d0e("sha256").update(t).sign({key:this._key,padding:u0e.RSA_PKCS1_PSS_PADDING})}static async verify(t,r,i){return await Od().verify(fe.isBuffer(t)?VJe.default.encode(t):t,r,i)}};var Mze=po(Bze(),1),Dze=po(Cg(),1);var nb=class extends I4{jwk;constructor(t){super((0,Mze.jwkTopem)(t),t.n),this.jwk=t}get publicKey(){if(!this.pk)throw new Error("ArweaveSigner - pk is undefined");return Dze.default.toBuffer(this.pk)}sign(t){return Od().sign(this.jwk,t)}static async verify(t,r,i){return await Od().verify(t,r,i)}};J();K();z();var kze=po(Cg(),1);var w4=class{_publicKey;ownerLength=ps[2].pubLength;signatureLength=ps[2].sigLength;signatureType=2;pem;provider;constructor(t){if(this.provider=t,!this.provider.publicKey)throw new Error("InjectedSolanaSigner - provider.publicKey is undefined");this._publicKey=this.provider.publicKey.toBuffer()}get publicKey(){return this._publicKey}async sign(t){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");return await this.provider.signMessage(t)}static async verify(t,r,i){let n=t;return typeof t=="string"&&(n=kze.default.toBuffer(t)),x6(fe.from(i),fe.from(r),fe.from(n))}};J();K();z();J();K();z();J();K();z();J();K();z();var zze=po(Pze());J();K();z();J();K();z();J();K();z();var Lze="logger/5.7.0";var Uze=!1,Fze=!1,LV={debug:1,default:2,info:2,warning:3,error:4,off:5},Qze=LV.default,_de=null;function Fxt(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if("\xE9".normalize("NFD")!=="e\u0301")throw new Error("broken implementation")}catch(e){return e.message}return null}var Hze=Fxt(),mde;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(mde||(mde={}));var Im;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(Im||(Im={}));var Gze="0123456789abcdef",go=class e{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let i=t.toLowerCase();LV[i]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(Qze>LV[i])&&console.log.apply(console,r)}debug(...t){this._log(e.levels.DEBUG,t)}info(...t){this._log(e.levels.INFO,t)}warn(...t){this._log(e.levels.WARNING,t)}makeError(t,r,i){if(Fze)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),i||(i={});let n=[];Object.keys(i).forEach(y=>{let _=i[y];try{if(_ instanceof Uint8Array){let I="";for(let N=0;N<_.length;N++)I+=Gze[_[N]>>4],I+=Gze[_[N]&15];n.push(y+"=Uint8Array(0x"+I+")")}else n.push(y+"="+JSON.stringify(_))}catch{n.push(y+"="+JSON.stringify(i[y].toString()))}}),n.push(`code=${r}`),n.push(`version=${this.version}`);let o=t,d="";switch(r){case Im.NUMERIC_FAULT:{d="NUMERIC_FAULT";let y=t;switch(y){case"overflow":case"underflow":case"division-by-zero":d+="-"+y;break;case"negative-power":case"negative-width":d+="-unsupported";break;case"unbound-bitwise-result":d+="-unbound-result";break}break}case Im.CALL_EXCEPTION:case Im.INSUFFICIENT_FUNDS:case Im.MISSING_NEW:case Im.NONCE_EXPIRED:case Im.REPLACEMENT_UNDERPRICED:case Im.TRANSACTION_REPLACED:case Im.UNPREDICTABLE_GAS_LIMIT:d=r;break}d&&(t+=" [ See: https://links.ethers.org/v5-errors-"+d+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let g=new Error(t);return g.reason=o,g.code=r,Object.keys(i).forEach(function(y){g[y]=i[y]}),g}throwError(t,r,i){throw this.makeError(t,r,i)}throwArgumentError(t,r,i){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:i})}assert(t,r,i,n){t||this.throwError(r,i,n)}assertArgument(t,r,i,n){t||this.throwArgumentError(r,i,n)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),Hze&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Hze})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,i){i?i=": "+i:i="",t<r&&this.throwError("missing argument"+i,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+i,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return _de||(_de=new e(Lze)),_de}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Uze){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Fze=!!t,Uze=!!r}static setLogLevel(t){let r=LV[t.toLowerCase()];if(r==null){e.globalLogger().warn("invalid log level - "+t);return}Qze=r}static from(t){return new e(t)}};go.errors=Im;go.levels=mde;J();K();z();var qze="bytes/5.7.0";var Nd=new go(qze);function Jze(e){return!!e.toHexString}function XO(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return XO(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function tk(e){return Lf(e)&&!(e.length%2)||rk(e)}function Vze(e){return typeof e=="number"&&e==e&&e%1===0}function rk(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!Vze(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!Vze(r)||r<0||r>=256)return!1}return!0}function ii(e,t){if(t||(t={}),typeof e=="number"){Nd.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),XO(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Jze(e)&&(e=e.toHexString()),Lf(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":Nd.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let n=0;n<r.length;n+=2)i.push(parseInt(r.substring(n,n+2),16));return XO(new Uint8Array(i))}return rk(e)?XO(new Uint8Array(e)):Nd.throwArgumentError("invalid arrayify value","value",e)}function V1(e){let t=e.map(n=>ii(n)),r=t.reduce((n,o)=>n+o.length,0),i=new Uint8Array(r);return t.reduce((n,o)=>(i.set(o,n),n+o.length),0),XO(i)}function ib(e){let t=ii(e);if(t.length===0)return t;let r=0;for(;r<t.length&&t[r]===0;)r++;return r&&(t=t.slice(r)),t}function Qxt(e,t){e=ii(e),e.length>t&&Nd.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),XO(r)}function Lf(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var yde="0123456789abcdef";function So(e,t){if(t||(t={}),typeof e=="number"){Nd.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=yde[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Jze(e))return e.toHexString();if(Lf(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":Nd.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(rk(e)){let r="0x";for(let i=0;i<e.length;i++){let n=e[i];r+=yde[(n&240)>>4]+yde[n&15]}return r}return Nd.throwArgumentError("invalid hexlify value","value",e)}function nk(e){if(typeof e!="string")e=So(e);else if(!Lf(e)||e.length%2)return null;return(e.length-2)/2}function Gv(e,t,r){return typeof e!="string"?e=So(e):(!Lf(e)||e.length%2)&&Nd.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function k6(e){let t="0x";return e.forEach(r=>{t+=So(r).substring(2)}),t}function xh(e,t){for(typeof e!="string"?e=So(e):Lf(e)||Nd.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Nd.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function P6(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(tk(e)){let r=ii(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=So(r.slice(0,32)),t.s=So(r.slice(32,64))):r.length===65?(t.r=So(r.slice(0,32)),t.s=So(r.slice(32,64)),t.v=r[64]):Nd.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:Nd.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=So(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){let n=Qxt(ii(t._vs),32);t._vs=So(n);let o=n[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=o:t.recoveryParam!==o&&Nd.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;let d=So(n);t.s==null?t.s=d:t.s!==d&&Nd.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?Nd.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{let n=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==n&&Nd.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!Lf(t.r)?Nd.throwArgumentError("signature missing or invalid r","signature",e):t.r=xh(t.r,32),t.s==null||!Lf(t.s)?Nd.throwArgumentError("signature missing or invalid s","signature",e):t.s=xh(t.s,32);let r=ii(t.s);r[0]>=128&&Nd.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let i=So(r);t._vs&&(Lf(t._vs)||Nd.throwArgumentError("signature invalid _vs","signature",e),t._vs=xh(t._vs,32)),t._vs==null?t._vs=i:t._vs!==i&&Nd.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function bde(e){return e=P6(e),So(V1([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}function H0(e){return"0x"+zze.default.keccak_256(ii(e))}J();K();z();J();K();z();J();K();z();var Xze=po(qv());J();K();z();var $ze="bignumber/5.7.0";var UV=Xze.default.BN,Vv=new go($ze),vde={},Yze=9007199254740991;var Wze=!1,G0=class e{constructor(t,r){t!==vde&&Vv.throwError("cannot call constructor directly; use BigNumber.from",go.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Op(Is(this).fromTwos(t))}toTwos(t){return Op(Is(this).toTwos(t))}abs(){return this._hex[0]==="-"?e.from(this._hex.substring(1)):this}add(t){return Op(Is(this).add(Is(t)))}sub(t){return Op(Is(this).sub(Is(t)))}div(t){return e.from(t).isZero()&&r_("division-by-zero","div"),Op(Is(this).div(Is(t)))}mul(t){return Op(Is(this).mul(Is(t)))}mod(t){let r=Is(t);return r.isNeg()&&r_("division-by-zero","mod"),Op(Is(this).umod(r))}pow(t){let r=Is(t);return r.isNeg()&&r_("negative-power","pow"),Op(Is(this).pow(r))}and(t){let r=Is(t);return(this.isNegative()||r.isNeg())&&r_("unbound-bitwise-result","and"),Op(Is(this).and(r))}or(t){let r=Is(t);return(this.isNegative()||r.isNeg())&&r_("unbound-bitwise-result","or"),Op(Is(this).or(r))}xor(t){let r=Is(t);return(this.isNegative()||r.isNeg())&&r_("unbound-bitwise-result","xor"),Op(Is(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&r_("negative-width","mask"),Op(Is(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&r_("negative-width","shl"),Op(Is(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&r_("negative-width","shr"),Op(Is(this).shrn(t))}eq(t){return Is(this).eq(Is(t))}lt(t){return Is(this).lt(Is(t))}lte(t){return Is(this).lte(Is(t))}gt(t){return Is(this).gt(Is(t))}gte(t){return Is(this).gte(Is(t))}isNegative(){return this._hex[0]==="-"}isZero(){return Is(this).isZero()}toNumber(){try{return Is(this).toNumber()}catch{r_("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Vv.throwError("this platform does not support BigInt",go.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Wze||(Wze=!0,Vv.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Vv.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",go.errors.UNEXPECTED_ARGUMENT,{}):Vv.throwError("BigNumber.toString does not accept parameters",go.errors.UNEXPECTED_ARGUMENT,{})),Is(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof e)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new e(vde,ik(t)):t.match(/^-?[0-9]+$/)?new e(vde,ik(new UV(t))):Vv.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&r_("underflow","BigNumber.from",t),(t>=Yze||t<=-Yze)&&r_("overflow","BigNumber.from",t),e.from(String(t));let r=t;if(typeof r=="bigint")return e.from(r.toString());if(rk(r))return e.from(So(r));if(r)if(r.toHexString){let i=r.toHexString();if(typeof i=="string")return e.from(i)}else{let i=r._hex;if(i==null&&r.type==="BigNumber"&&(i=r.hex),typeof i=="string"&&(Lf(i)||i[0]==="-"&&Lf(i.substring(1))))return e.from(i)}return Vv.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function ik(e){if(typeof e!="string")return ik(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Vv.throwArgumentError("invalid hex","value",e),e=ik(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function Op(e){return G0.from(ik(e))}function Is(e){let t=G0.from(e).toHexString();return t[0]==="-"?new UV("-"+t.substring(3),16):new UV(t.substring(2),16)}function r_(e,t,r){let i={fault:e,operation:t};return r!=null&&(i.value=r),Vv.throwError(e,go.errors.NUMERIC_FAULT,i)}function Rde(e){return new UV(e,36).toString(16)}J();K();z();J();K();z();var Zze="strings/5.7.0";var jze=new go(Zze),ob;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(ob||(ob={}));var O4;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(O4||(O4={}));function Gxt(e,t,r,i,n){return jze.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function eKe(e,t,r,i,n){if(e===O4.BAD_PREFIX||e===O4.UNEXPECTED_CONTINUE){let o=0;for(let d=t+1;d<r.length&&r[d]>>6===2;d++)o++;return o}return e===O4.OVERRUN?r.length-t-1:0}function qxt(e,t,r,i,n){return e===O4.OVERLONG?(i.push(n),0):(i.push(65533),eKe(e,t,r,i,n))}var Vxt=Object.freeze({error:Gxt,ignore:eKe,replace:qxt});function wA(e,t=ob.current){t!=ob.current&&(jze.checkNormalize(),e=e.normalize(t));let r=[];for(let i=0;i<e.length;i++){let n=e.charCodeAt(i);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(n&63|128);else if((n&64512)==55296){i++;let o=e.charCodeAt(i);if(i>=e.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");let d=65536+((n&1023)<<10)+(o&1023);r.push(d>>18|240),r.push(d>>12&63|128),r.push(d>>6&63|128),r.push(d&63|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(n&63|128)}return ii(r)}function ZO(e){return H0(wA(e))}J();K();z();var tKe="hash/5.7.0";J();K();z();var rKe=`Ethereum Signed Message:
|
|
`;function L6(e){return typeof e=="string"&&(e=wA(e)),H0(V1([wA(rKe),wA(String(e.length)),e]))}J();K();z();J();K();z();J();K();z();J();K();z();var nKe="rlp/5.7.0";var Jxt=new go(nKe);function iKe(e){let t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function oKe(e){if(Array.isArray(e)){let i=[];if(e.forEach(function(o){i=i.concat(oKe(o))}),i.length<=55)return i.unshift(192+i.length),i;let n=iKe(i.length);return n.unshift(247+n.length),n.concat(i)}tk(e)||Jxt.throwArgumentError("RLP object must be BytesLike","object",e);let t=Array.prototype.slice.call(ii(e));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let r=iKe(t.length);return r.unshift(183+r.length),r.concat(t)}function ok(e){return So(oKe(e))}J();K();z();var aKe="address/5.7.0";var ak=new go(aKe);function sKe(e){Lf(e,20)||ak.throwArgumentError("invalid address","address",e),e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let n=0;n<40;n++)r[n]=t[n].charCodeAt(0);let i=ii(H0(r));for(let n=0;n<40;n+=2)i[n>>1]>>4>=8&&(t[n]=t[n].toUpperCase()),(i[n>>1]&15)>=8&&(t[n+1]=t[n+1].toUpperCase());return"0x"+t.join("")}var Kxt=9007199254740991;function $xt(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}var Sde={};for(let e=0;e<10;e++)Sde[String(e)]=String(e);for(let e=0;e<26;e++)Sde[String.fromCharCode(65+e)]=String(10+e);var cKe=Math.floor($xt(Kxt));function Yxt(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(i=>Sde[i]).join("");for(;t.length>=cKe;){let i=t.substring(0,cKe);t=parseInt(i,10)%97+t.substring(i.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function Th(e){let t=null;if(typeof e!="string"&&ak.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=sKe(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&ak.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==Yxt(e)&&ak.throwArgumentError("bad icap checksum","address",e),t=Rde(e.substring(4));t.length<40;)t="0"+t;t=sKe("0x"+t)}else ak.throwArgumentError("invalid address","address",e);return t}J();K();z();J();K();z();var uKe="properties/5.7.0";var Wxt=function(e,t,r,i){function n(o){return o instanceof r?o:new r(function(d){d(o)})}return new(r||(r=Promise))(function(o,d){function g(I){try{_(i.next(I))}catch(N){d(N)}}function y(I){try{_(i.throw(I))}catch(N){d(N)}}function _(I){I.done?o(I.value):n(I.value).then(g,y)}_((i=i.apply(e,t||[])).next())})},FV=new go(uKe);function Po(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function Jv(e){return Wxt(this,void 0,void 0,function*(){let t=Object.keys(e).map(i=>{let n=e[i];return Promise.resolve(n).then(o=>({key:i,value:o}))});return(yield Promise.all(t)).reduce((i,n)=>(i[n.key]=n.value,i),{})})}function dKe(e,t){(!e||typeof e!="object")&&FV.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||FV.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function ck(e){let t={};for(let r in e)t[r]=e[r];return t}var Xxt={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function fKe(e){if(e==null||Xxt[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;let t=Object.keys(e);for(let r=0;r<t.length;r++){let i=null;try{i=e[t[r]]}catch{continue}if(!fKe(i))return!1}return!0}return FV.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function Zxt(e){if(fKe(e))return e;if(Array.isArray(e))return Object.freeze(e.map(t=>sk(t)));if(typeof e=="object"){let t={};for(let r in e){let i=e[r];i!==void 0&&Po(t,r,sk(i))}return t}return FV.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function sk(e){return Zxt(e)}var N4=class{constructor(t){for(let r in t)this[r]=sk(t[r])}};var jxt=function(e,t,r,i){function n(o){return o instanceof r?o:new r(function(d){d(o)})}return new(r||(r=Promise))(function(o,d){function g(I){try{_(i.next(I))}catch(N){d(N)}}function y(I){try{_(i.throw(I))}catch(N){d(N)}}function _(I){I.done?o(I.value):n(I.value).then(g,y)}_((i=i.apply(e,t||[])).next())})},q0=new go(tKe),pKe=new Uint8Array(32);pKe.fill(0);var eTt=G0.from(-1),gKe=G0.from(0),_Ke=G0.from(1),tTt=G0.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function rTt(e){let t=ii(e),r=t.length%32;return r?k6([t,pKe.slice(r)]):So(t)}var nTt=xh(_Ke.toHexString(),32),iTt=xh(gKe.toHexString(),32),lKe={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ide=["name","version","chainId","verifyingContract","salt"];function hKe(e){return function(t){return typeof t!="string"&&q0.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}var oTt={name:hKe("name"),version:hKe("version"),chainId:function(e){try{return G0.from(e).toString()}catch{}return q0.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Th(e).toLowerCase()}catch{}return q0.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=ii(e);if(t.length!==32)throw new Error("bad length");return So(t)}catch{}return q0.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Cde(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=t[1]==="",i=parseInt(t[2]||"256");(i%8!==0||i>256||t[2]&&t[2]!==String(i))&&q0.throwArgumentError("invalid numeric width","type",e);let n=tTt.mask(r?i-1:i),o=r?n.add(_Ke).mul(eTt):gKe;return function(d){let g=G0.from(d);return(g.lt(o)||g.gt(n))&&q0.throwArgumentError(`value out-of-bounds for ${e}`,"value",d),xh(g.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(r===0||r>32||t[1]!==String(r))&&q0.throwArgumentError("invalid bytes width","type",e),function(i){return ii(i).length!==r&&q0.throwArgumentError(`invalid length for ${e}`,"value",i),rTt(i)}}}switch(e){case"address":return function(t){return xh(Th(t),32)};case"bool":return function(t){return t?nTt:iTt};case"bytes":return function(t){return H0(t)};case"string":return function(t){return ZO(t)}}return null}function AKe(e,t){return`${e}(${t.map(({name:r,type:i})=>i+" "+r).join(",")})`}var x4=class e{constructor(t){Po(this,"types",Object.freeze(sk(t))),Po(this,"_encoderCache",{}),Po(this,"_types",{});let r={},i={},n={};Object.keys(t).forEach(g=>{r[g]={},i[g]=[],n[g]={}});for(let g in t){let y={};t[g].forEach(_=>{y[_.name]&&q0.throwArgumentError(`duplicate variable name ${JSON.stringify(_.name)} in ${JSON.stringify(g)}`,"types",t),y[_.name]=!0;let I=_.type.match(/^([^\x5b]*)(\x5b|$)/)[1];I===g&&q0.throwArgumentError(`circular type reference to ${JSON.stringify(I)}`,"types",t),!Cde(I)&&(i[I]||q0.throwArgumentError(`unknown type ${JSON.stringify(I)}`,"types",t),i[I].push(g),r[g][I]=!0)})}let o=Object.keys(i).filter(g=>i[g].length===0);o.length===0?q0.throwArgumentError("missing primary type","types",t):o.length>1&&q0.throwArgumentError(`ambiguous primary types or unused types: ${o.map(g=>JSON.stringify(g)).join(", ")}`,"types",t),Po(this,"primaryType",o[0]);function d(g,y){y[g]&&q0.throwArgumentError(`circular type reference to ${JSON.stringify(g)}`,"types",t),y[g]=!0,Object.keys(r[g]).forEach(_=>{i[_]&&(d(_,y),Object.keys(y).forEach(I=>{n[I][_]=!0}))}),delete y[g]}d(this.primaryType,{});for(let g in n){let y=Object.keys(n[g]);y.sort(),this._types[g]=AKe(g,t[g])+y.map(_=>AKe(_,t[_])).join("")}}getEncoder(t){let r=this._encoderCache[t];return r||(r=this._encoderCache[t]=this._getEncoder(t)),r}_getEncoder(t){{let n=Cde(t);if(n)return n}let r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){let n=r[1],o=this.getEncoder(n),d=parseInt(r[3]);return g=>{d>=0&&g.length!==d&&q0.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",g);let y=g.map(o);return this._types[n]&&(y=y.map(H0)),H0(k6(y))}}let i=this.types[t];if(i){let n=ZO(this._types[t]);return o=>{let d=i.map(({name:g,type:y})=>{let _=this.getEncoder(y)(o[g]);return this._types[y]?H0(_):_});return d.unshift(n),k6(d)}}return q0.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){let r=this._types[t];return r||q0.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),r}encodeData(t,r){return this.getEncoder(t)(r)}hashStruct(t,r){return H0(this.encodeData(t,r))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,r,i){if(Cde(t))return i(t,r);let n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let d=n[1],g=parseInt(n[3]);return g>=0&&r.length!==g&&q0.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(y=>this._visit(d,y,i))}let o=this.types[t];return o?o.reduce((d,{name:g,type:y})=>(d[g]=this._visit(y,r[g],i),d),{}):q0.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,r){return this._visit(this.primaryType,t,r)}static from(t){return new e(t)}static getPrimaryType(t){return e.from(t).primaryType}static hashStruct(t,r,i){return e.from(r).hashStruct(t,i)}static hashDomain(t){let r=[];for(let i in t){let n=lKe[i];n||q0.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(i)}`,"domain",t),r.push({name:i,type:n})}return r.sort((i,n)=>Ide.indexOf(i.name)-Ide.indexOf(n.name)),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,i){return k6(["0x1901",e.hashDomain(t),e.from(r).hash(i)])}static hash(t,r,i){return H0(e.encode(t,r,i))}static resolveNames(t,r,i,n){return jxt(this,void 0,void 0,function*(){t=ck(t);let o={};t.verifyingContract&&!Lf(t.verifyingContract,20)&&(o[t.verifyingContract]="0x");let d=e.from(r);d.visit(i,(g,y)=>(g==="address"&&!Lf(y,20)&&(o[y]="0x"),y));for(let g in o)o[g]=yield n(g);return t.verifyingContract&&o[t.verifyingContract]&&(t.verifyingContract=o[t.verifyingContract]),i=d.visit(i,(g,y)=>g==="address"&&o[y]?o[y]:y),{domain:t,value:i}})}static getPayload(t,r,i){e.hashDomain(t);let n={},o=[];Ide.forEach(y=>{let _=t[y];_!=null&&(n[y]=oTt[y](_),o.push({name:y,type:lKe[y]}))});let d=e.from(r),g=ck(r);return g.EIP712Domain?q0.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):g.EIP712Domain=o,d.encode(i),{types:g,domain:n,primaryType:d.primaryType,message:d.visit(i,(y,_)=>{if(y.match(/^bytes(\d*)/))return So(ii(_));if(y.match(/^u?int/))return G0.from(_).toString();switch(y){case"address":return _.toLowerCase();case"bool":return!!_;case"string":return typeof _!="string"&&q0.throwArgumentError("invalid string","value",_),_}return q0.throwArgumentError("unsupported type","type",y)})}}};J();K();z();J();K();z();var ba=po(qv()),lb=po(oN());function aN(e,t,r){return r={path:t,exports:{},require:function(i,n){return OBt(i,n??r.path)}},e(r,r.exports),r.exports}function OBt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Ude=ZKe;function ZKe(e,t){if(!e)throw new Error(t||"Assertion failed")}ZKe.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)};var Nm=aN(function(e,t){"use strict";var r=t;function i(d,g){if(Array.isArray(d))return d.slice();if(!d)return[];var y=[];if(typeof d!="string"){for(var _=0;_<d.length;_++)y[_]=d[_]|0;return y}if(g==="hex"){d=d.replace(/[^a-z0-9]+/ig,""),d.length%2!==0&&(d="0"+d);for(var _=0;_<d.length;_+=2)y.push(parseInt(d[_]+d[_+1],16))}else for(var _=0;_<d.length;_++){var I=d.charCodeAt(_),N=I>>8,T=I&255;N?y.push(N,T):y.push(T)}return y}r.toArray=i;function n(d){return d.length===1?"0"+d:d}r.zero2=n;function o(d){for(var g="",y=0;y<d.length;y++)g+=n(d[y].toString(16));return g}r.toHex=o,r.encode=function(g,y){return y==="hex"?o(g):g}}),J1=aN(function(e,t){"use strict";var r=t;r.assert=Ude,r.toArray=Nm.toArray,r.zero2=Nm.zero2,r.toHex=Nm.toHex,r.encode=Nm.encode;function i(y,_,I){var N=new Array(Math.max(y.bitLength(),I)+1);N.fill(0);for(var T=1<<_+1,M=y.clone(),D=0;D<N.length;D++){var P,G=M.andln(T-1);M.isOdd()?(G>(T>>1)-1?P=(T>>1)-G:P=G,M.isubn(P)):P=0,N[D]=P,M.iushrn(1)}return N}r.getNAF=i;function n(y,_){var I=[[],[]];y=y.clone(),_=_.clone();for(var N=0,T=0,M;y.cmpn(-N)>0||_.cmpn(-T)>0;){var D=y.andln(3)+N&3,P=_.andln(3)+T&3;D===3&&(D=-1),P===3&&(P=-1);var G;(D&1)===0?G=0:(M=y.andln(7)+N&7,(M===3||M===5)&&P===2?G=-D:G=D),I[0].push(G);var q;(P&1)===0?q=0:(M=_.andln(7)+T&7,(M===3||M===5)&&D===2?q=-P:q=P),I[1].push(q),2*N===G+1&&(N=1-N),2*T===q+1&&(T=1-T),y.iushrn(1),_.iushrn(1)}return I}r.getJSF=n;function o(y,_,I){var N="_"+_;y.prototype[_]=function(){return this[N]!==void 0?this[N]:this[N]=I.call(this)}}r.cachedProperty=o;function d(y){return typeof y=="string"?r.toArray(y,"hex"):y}r.parseBytes=d;function g(y){return new ba.default(y,"hex","le")}r.intFromLE=g}),VV=J1.getNAF,NBt=J1.getJSF,JV=J1.assert;function Q6(e,t){this.type=e,this.p=new ba.default(t.p,16),this.red=t.prime?ba.default.red(t.prime):ba.default.mont(this.p),this.zero=new ba.default(0).toRed(this.red),this.one=new ba.default(1).toRed(this.red),this.two=new ba.default(2).toRed(this.red),this.n=t.n&&new ba.default(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var B4=Q6;Q6.prototype.point=function(){throw new Error("Not implemented")};Q6.prototype.validate=function(){throw new Error("Not implemented")};Q6.prototype._fixedNafMul=function(t,r){JV(t.precomputed);var i=t._getDoubles(),n=VV(r,1,this._bitLength),o=(1<<i.step+1)-(i.step%2===0?2:1);o/=3;var d=[],g,y;for(g=0;g<n.length;g+=i.step){y=0;for(var _=g+i.step-1;_>=g;_--)y=(y<<1)+n[_];d.push(y)}for(var I=this.jpoint(null,null,null),N=this.jpoint(null,null,null),T=o;T>0;T--){for(g=0;g<d.length;g++)y=d[g],y===T?N=N.mixedAdd(i.points[g]):y===-T&&(N=N.mixedAdd(i.points[g].neg()));I=I.add(N)}return I.toP()};Q6.prototype._wnafMul=function(t,r){var i=4,n=t._getNAFPoints(i);i=n.wnd;for(var o=n.points,d=VV(r,i,this._bitLength),g=this.jpoint(null,null,null),y=d.length-1;y>=0;y--){for(var _=0;y>=0&&d[y]===0;y--)_++;if(y>=0&&_++,g=g.dblp(_),y<0)break;var I=d[y];JV(I!==0),t.type==="affine"?I>0?g=g.mixedAdd(o[I-1>>1]):g=g.mixedAdd(o[-I-1>>1].neg()):I>0?g=g.add(o[I-1>>1]):g=g.add(o[-I-1>>1].neg())}return t.type==="affine"?g.toP():g};Q6.prototype._wnafMulAdd=function(t,r,i,n,o){var d=this._wnafT1,g=this._wnafT2,y=this._wnafT3,_=0,I,N,T;for(I=0;I<n;I++){T=r[I];var M=T._getNAFPoints(t);d[I]=M.wnd,g[I]=M.points}for(I=n-1;I>=1;I-=2){var D=I-1,P=I;if(d[D]!==1||d[P]!==1){y[D]=VV(i[D],d[D],this._bitLength),y[P]=VV(i[P],d[P],this._bitLength),_=Math.max(y[D].length,_),_=Math.max(y[P].length,_);continue}var G=[r[D],null,null,r[P]];r[D].y.cmp(r[P].y)===0?(G[1]=r[D].add(r[P]),G[2]=r[D].toJ().mixedAdd(r[P].neg())):r[D].y.cmp(r[P].y.redNeg())===0?(G[1]=r[D].toJ().mixedAdd(r[P]),G[2]=r[D].add(r[P].neg())):(G[1]=r[D].toJ().mixedAdd(r[P]),G[2]=r[D].toJ().mixedAdd(r[P].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],Y=NBt(i[D],i[P]);for(_=Math.max(Y[0].length,_),y[D]=new Array(_),y[P]=new Array(_),N=0;N<_;N++){var ne=Y[0][N]|0,ce=Y[1][N]|0;y[D][N]=q[(ne+1)*3+(ce+1)],y[P][N]=0,g[D]=G}}var le=this.jpoint(null,null,null),pe=this._wnafT4;for(I=_;I>=0;I--){for(var ae=0;I>=0;){var W=!0;for(N=0;N<n;N++)pe[N]=y[N][I]|0,pe[N]!==0&&(W=!1);if(!W)break;ae++,I--}if(I>=0&&ae++,le=le.dblp(ae),I<0)break;for(N=0;N<n;N++){var se=pe[N];se!==0&&(se>0?T=g[N][se-1>>1]:se<0&&(T=g[N][-se-1>>1].neg()),T.type==="affine"?le=le.mixedAdd(T):le=le.add(T))}}for(I=0;I<n;I++)g[I]=null;return o?le:le.toP()};function i_(e,t){this.curve=e,this.type=t,this.precomputed=null}Q6.BasePoint=i_;i_.prototype.eq=function(){throw new Error("Not implemented")};i_.prototype.validate=function(){return this.curve.validate(this)};Q6.prototype.decodePoint=function(t,r){t=J1.toArray(t,r);var i=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1===2*i){t[0]===6?JV(t[t.length-1]%2===0):t[0]===7&&JV(t[t.length-1]%2===1);var n=this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));return n}else if((t[0]===2||t[0]===3)&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),t[0]===3);throw new Error("Unknown point format")};i_.prototype.encodeCompressed=function(t){return this.encode(t,!0)};i_.prototype._encode=function(t){var r=this.curve.p.byteLength(),i=this.getX().toArray("be",r);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",r))};i_.prototype.encode=function(t,r){return J1.encode(this._encode(r),t)};i_.prototype.precompute=function(t){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,t),r.beta=this._getBeta(),this.precomputed=r,this};i_.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((t.bitLength()+1)/r.step):!1};i_.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,o=0;o<r;o+=t){for(var d=0;d<t;d++)n=n.dbl();i.push(n)}return{step:t,points:i}};i_.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],i=(1<<t)-1,n=i===1?null:this.dbl(),o=1;o<i;o++)r[o]=r[o-1].add(n);return{wnd:t,points:r}};i_.prototype._getBeta=function(){return null};i_.prototype.dblp=function(t){for(var r=this,i=0;i<t;i++)r=r.dbl();return r};var Fde=aN(function(e){typeof Object.create=="function"?e.exports=function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,i){if(i){r.super_=i;var n=function(){};n.prototype=i.prototype,r.prototype=new n,r.prototype.constructor=r}}}),xBt=J1.assert;function o_(e){B4.call(this,"short",e),this.a=new ba.default(e.a,16).toRed(this.red),this.b=new ba.default(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Fde(o_,B4);var TBt=o_;o_.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,i;if(t.beta)r=new ba.default(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);r=n[0].cmp(n[1])<0?n[0]:n[1],r=r.toRed(this.red)}if(t.lambda)i=new ba.default(t.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(r))===0?i=o[0]:(i=o[1],xBt(this.g.mul(i).x.cmp(this.g.x.redMul(r))===0))}var d;return t.basis?d=t.basis.map(function(g){return{a:new ba.default(g.a,16),b:new ba.default(g.b,16)}}):d=this._getEndoBasis(i),{beta:r,lambda:i,basis:d}}};o_.prototype._getEndoRoots=function(t){var r=t===this.p?this.red:ba.default.mont(t),i=new ba.default(2).toRed(r).redInvm(),n=i.redNeg(),o=new ba.default(3).toRed(r).redNeg().redSqrt().redMul(i),d=n.redAdd(o).fromRed(),g=n.redSub(o).fromRed();return[d,g]};o_.prototype._getEndoBasis=function(t){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=t,n=this.n.clone(),o=new ba.default(1),d=new ba.default(0),g=new ba.default(0),y=new ba.default(1),_,I,N,T,M,D,P,G=0,q,Y;i.cmpn(0)!==0;){var ne=n.div(i);q=n.sub(ne.mul(i)),Y=g.sub(ne.mul(o));var ce=y.sub(ne.mul(d));if(!N&&q.cmp(r)<0)_=P.neg(),I=o,N=q.neg(),T=Y;else if(N&&++G===2)break;P=q,n=i,i=q,g=o,o=Y,y=d,d=ce}M=q.neg(),D=Y;var le=N.sqr().add(T.sqr()),pe=M.sqr().add(D.sqr());return pe.cmp(le)>=0&&(M=_,D=I),N.negative&&(N=N.neg(),T=T.neg()),M.negative&&(M=M.neg(),D=D.neg()),[{a:N,b:T},{a:M,b:D}]};o_.prototype._endoSplit=function(t){var r=this.endo.basis,i=r[0],n=r[1],o=n.b.mul(t).divRound(this.n),d=i.b.neg().mul(t).divRound(this.n),g=o.mul(i.a),y=d.mul(n.a),_=o.mul(i.b),I=d.mul(n.b),N=t.sub(g).sub(y),T=_.add(I).neg();return{k1:N,k2:T}};o_.prototype.pointFromX=function(t,r){t=new ba.default(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(n.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var o=n.fromRed().isOdd();return(r&&!o||!r&&o)&&(n=n.redNeg()),this.point(t,n)};o_.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,i=t.y,n=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(n).redIAdd(this.b);return i.redSqr().redISub(o).cmpn(0)===0};o_.prototype._endoWnafMulAdd=function(t,r,i){for(var n=this._endoWnafT1,o=this._endoWnafT2,d=0;d<t.length;d++){var g=this._endoSplit(r[d]),y=t[d],_=y._getBeta();g.k1.negative&&(g.k1.ineg(),y=y.neg(!0)),g.k2.negative&&(g.k2.ineg(),_=_.neg(!0)),n[d*2]=y,n[d*2+1]=_,o[d*2]=g.k1,o[d*2+1]=g.k2}for(var I=this._wnafMulAdd(1,n,o,d*2,i),N=0;N<d*2;N++)n[N]=null,o[N]=null;return I};function al(e,t,r,i){B4.BasePoint.call(this,e,"affine"),t===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new ba.default(t,16),this.y=new ba.default(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Fde(al,B4.BasePoint);o_.prototype.point=function(t,r,i){return new al(this,t,r,i)};o_.prototype.pointFromJSON=function(t,r){return al.fromJSON(this,t,r)};al.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,n=function(o){return i.point(o.x.redMul(i.endo.beta),o.y)};t.beta=r,r.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return r}};al.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};al.fromJSON=function(t,r,i){typeof r=="string"&&(r=JSON.parse(r));var n=t.point(r[0],r[1],i);if(!r[2])return n;function o(g){return t.point(g[0],g[1],i)}var d=r[2];return n.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[n].concat(d.doubles.points.map(o))},naf:d.naf&&{wnd:d.naf.wnd,points:[n].concat(d.naf.points.map(o))}},n};al.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};al.prototype.isInfinity=function(){return this.inf};al.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var i=r.redSqr().redISub(this.x).redISub(t.x),n=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)};al.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),o=i.redAdd(i).redIAdd(i).redIAdd(r).redMul(n),d=o.redSqr().redISub(this.x.redAdd(this.x)),g=o.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,g)};al.prototype.getX=function(){return this.x.fromRed()};al.prototype.getY=function(){return this.y.fromRed()};al.prototype.mul=function(t){return t=new ba.default(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};al.prototype.mulAdd=function(t,r,i){var n=[this,r],o=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)};al.prototype.jmulAdd=function(t,r,i){var n=[this,r],o=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)};al.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};al.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(o){return o.neg()};r.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return r};al.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function Vl(e,t,r,i){B4.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ba.default(0)):(this.x=new ba.default(t,16),this.y=new ba.default(r,16),this.z=new ba.default(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Fde(Vl,B4.BasePoint);o_.prototype.jpoint=function(t,r,i){return new Vl(this,t,r,i)};Vl.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),i=this.x.redMul(r),n=this.y.redMul(r).redMul(t);return this.curve.point(i,n)};Vl.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Vl.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(r),o=t.x.redMul(i),d=this.y.redMul(r.redMul(t.z)),g=t.y.redMul(i.redMul(this.z)),y=n.redSub(o),_=d.redSub(g);if(y.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=y.redSqr(),N=I.redMul(y),T=n.redMul(I),M=_.redSqr().redIAdd(N).redISub(T).redISub(T),D=_.redMul(T.redISub(M)).redISub(d.redMul(N)),P=this.z.redMul(t.z).redMul(y);return this.curve.jpoint(M,D,P)};Vl.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),i=this.x,n=t.x.redMul(r),o=this.y,d=t.y.redMul(r).redMul(this.z),g=i.redSub(n),y=o.redSub(d);if(g.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=g.redSqr(),I=_.redMul(g),N=i.redMul(_),T=y.redSqr().redIAdd(I).redISub(N).redISub(N),M=y.redMul(N.redISub(T)).redISub(o.redMul(I)),D=this.z.redMul(g);return this.curve.jpoint(T,M,D)};Vl.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var i=this;for(r=0;r<t;r++)i=i.dbl();return i}var n=this.curve.a,o=this.curve.tinv,d=this.x,g=this.y,y=this.z,_=y.redSqr().redSqr(),I=g.redAdd(g);for(r=0;r<t;r++){var N=d.redSqr(),T=I.redSqr(),M=T.redSqr(),D=N.redAdd(N).redIAdd(N).redIAdd(n.redMul(_)),P=d.redMul(T),G=D.redSqr().redISub(P.redAdd(P)),q=P.redISub(G),Y=D.redMul(q);Y=Y.redIAdd(Y).redISub(M);var ne=I.redMul(y);r+1<t&&(_=_.redMul(M)),d=G,y=ne,I=Y}return this.curve.jpoint(d,I.redMul(o),y)};Vl.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Vl.prototype._zeroDbl=function(){var t,r,i;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),d=o.redSqr(),g=this.x.redAdd(o).redSqr().redISub(n).redISub(d);g=g.redIAdd(g);var y=n.redAdd(n).redIAdd(n),_=y.redSqr().redISub(g).redISub(g),I=d.redIAdd(d);I=I.redIAdd(I),I=I.redIAdd(I),t=_,r=y.redMul(g.redISub(_)).redISub(I),i=this.y.redAdd(this.y)}else{var N=this.x.redSqr(),T=this.y.redSqr(),M=T.redSqr(),D=this.x.redAdd(T).redSqr().redISub(N).redISub(M);D=D.redIAdd(D);var P=N.redAdd(N).redIAdd(N),G=P.redSqr(),q=M.redIAdd(M);q=q.redIAdd(q),q=q.redIAdd(q),t=G.redISub(D).redISub(D),r=P.redMul(D.redISub(t)).redISub(q),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(t,r,i)};Vl.prototype._threeDbl=function(){var t,r,i;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),d=o.redSqr(),g=this.x.redAdd(o).redSqr().redISub(n).redISub(d);g=g.redIAdd(g);var y=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),_=y.redSqr().redISub(g).redISub(g);t=_;var I=d.redIAdd(d);I=I.redIAdd(I),I=I.redIAdd(I),r=y.redMul(g.redISub(_)).redISub(I),i=this.y.redAdd(this.y)}else{var N=this.z.redSqr(),T=this.y.redSqr(),M=this.x.redMul(T),D=this.x.redSub(N).redMul(this.x.redAdd(N));D=D.redAdd(D).redIAdd(D);var P=M.redIAdd(M);P=P.redIAdd(P);var G=P.redAdd(P);t=D.redSqr().redISub(G),i=this.y.redAdd(this.z).redSqr().redISub(T).redISub(N);var q=T.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q),r=D.redMul(P.redISub(t)).redISub(q)}return this.curve.jpoint(t,r,i)};Vl.prototype._dbl=function(){var t=this.curve.a,r=this.x,i=this.y,n=this.z,o=n.redSqr().redSqr(),d=r.redSqr(),g=i.redSqr(),y=d.redAdd(d).redIAdd(d).redIAdd(t.redMul(o)),_=r.redAdd(r);_=_.redIAdd(_);var I=_.redMul(g),N=y.redSqr().redISub(I.redAdd(I)),T=I.redISub(N),M=g.redSqr();M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var D=y.redMul(T).redISub(M),P=i.redAdd(i).redMul(n);return this.curve.jpoint(N,D,P)};Vl.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr(),n=r.redSqr(),o=t.redAdd(t).redIAdd(t),d=o.redSqr(),g=this.x.redAdd(r).redSqr().redISub(t).redISub(n);g=g.redIAdd(g),g=g.redAdd(g).redIAdd(g),g=g.redISub(d);var y=g.redSqr(),_=n.redIAdd(n);_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var I=o.redIAdd(g).redSqr().redISub(d).redISub(y).redISub(_),N=r.redMul(I);N=N.redIAdd(N),N=N.redIAdd(N);var T=this.x.redMul(y).redISub(N);T=T.redIAdd(T),T=T.redIAdd(T);var M=this.y.redMul(I.redMul(_.redISub(I)).redISub(g.redMul(y)));M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var D=this.z.redAdd(g).redSqr().redISub(i).redISub(y);return this.curve.jpoint(T,M,D)};Vl.prototype.mul=function(t,r){return t=new ba.default(t,r),this.curve._wnafMul(this,t)};Vl.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var r=this.z.redSqr(),i=t.z.redSqr();if(this.x.redMul(i).redISub(t.x.redMul(r)).cmpn(0)!==0)return!1;var n=r.redMul(this.z),o=i.redMul(t.z);return this.y.redMul(o).redISub(t.y.redMul(n)).cmpn(0)===0};Vl.prototype.eqXToP=function(t){var r=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(r);if(this.x.cmp(i)===0)return!0;for(var n=t.clone(),o=this.curve.redN.redMul(r);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(o),this.x.cmp(i)===0)return!0}};Vl.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};Vl.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var GV=aN(function(e,t){"use strict";var r=t;r.base=B4,r.short=TBt,r.mont=null,r.edwards=null}),qV=aN(function(e,t){"use strict";var r=t,i=J1.assert;function n(g){g.type==="short"?this.curve=new GV.short(g):g.type==="edwards"?this.curve=new GV.edwards(g):this.curve=new GV.mont(g),this.g=this.curve.g,this.n=this.curve.n,this.hash=g.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=n;function o(g,y){Object.defineProperty(r,g,{configurable:!0,enumerable:!0,get:function(){var _=new n(y);return Object.defineProperty(r,g,{configurable:!0,enumerable:!0,value:_}),_}})}o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:lb.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:lb.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:lb.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:lb.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:lb.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:lb.default.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:lb.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d;try{d=null.crash()}catch{d=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:lb.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})});function F6(e){if(!(this instanceof F6))return new F6(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Nm.toArray(e.entropy,e.entropyEnc||"hex"),r=Nm.toArray(e.nonce,e.nonceEnc||"hex"),i=Nm.toArray(e.pers,e.persEnc||"hex");Ude(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var jKe=F6;F6.prototype._init=function(t,r,i){var n=t.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656};F6.prototype._hmac=function(){return new lb.default.hmac(this.hash,this.K)};F6.prototype._update=function(t){var r=this._hmac().update(this.V).update([0]);t&&(r=r.update(t)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())};F6.prototype.reseed=function(t,r,i,n){typeof r!="string"&&(n=i,i=r,r=null),t=Nm.toArray(t,r),i=Nm.toArray(i,n),Ude(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1};F6.prototype.generate=function(t,r,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(n=i,i=r,r=null),i&&(i=Nm.toArray(i,n||"hex"),this._update(i));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var d=o.slice(0,t);return this._update(i),this._reseed++,Nm.encode(d,r)};var Lde=J1.assert;function Bh(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var Qde=Bh;Bh.fromPublic=function(t,r,i){return r instanceof Bh?r:new Bh(t,{pub:r,pubEnc:i})};Bh.fromPrivate=function(t,r,i){return r instanceof Bh?r:new Bh(t,{priv:r,privEnc:i})};Bh.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Bh.prototype.getPublic=function(t,r){return typeof t=="string"&&(r=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,t):this.pub};Bh.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv};Bh.prototype._importPrivate=function(t,r){this.priv=new ba.default(t,r||16),this.priv=this.priv.umod(this.ec.curve.n)};Bh.prototype._importPublic=function(t,r){if(t.x||t.y){this.ec.curve.type==="mont"?Lde(t.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Lde(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,r)};Bh.prototype.derive=function(t){return t.validate()||Lde(t.validate(),"public point not validated"),t.mul(this.priv).getX()};Bh.prototype.sign=function(t,r,i){return this.ec.sign(t,this,r,i)};Bh.prototype.verify=function(t,r){return this.ec.verify(t,r,this)};Bh.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var BBt=J1.assert;function zV(e,t){if(e instanceof zV)return e;this._importDER(e,t)||(BBt(e.r&&e.s,"Signature without r or s"),this.r=new ba.default(e.r,16),this.s=new ba.default(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var KV=zV;function MBt(){this.place=0}function kde(e,t){var r=e[t.place++];if(!(r&128))return r;var i=r&15;if(i===0||i>4)return!1;for(var n=0,o=0,d=t.place;o<i;o++,d++)n<<=8,n|=e[d],n>>>=0;return n<=127?!1:(t.place=d,n)}function XKe(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t<r;)t++;return t===0?e:e.slice(t)}zV.prototype._importDER=function(t,r){t=J1.toArray(t,r);var i=new MBt;if(t[i.place++]!==48)return!1;var n=kde(t,i);if(n===!1||n+i.place!==t.length||t[i.place++]!==2)return!1;var o=kde(t,i);if(o===!1)return!1;var d=t.slice(i.place,o+i.place);if(i.place+=o,t[i.place++]!==2)return!1;var g=kde(t,i);if(g===!1||t.length!==g+i.place)return!1;var y=t.slice(i.place,g+i.place);if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new ba.default(d),this.s=new ba.default(y),this.recoveryParam=null,!0};function Pde(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}zV.prototype.toDER=function(t){var r=this.r.toArray(),i=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),i[0]&128&&(i=[0].concat(i)),r=XKe(r),i=XKe(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var n=[2];Pde(n,r.length),n=n.concat(r),n.push(2),Pde(n,i.length);var o=n.concat(i),d=[48];return Pde(d,o.length),d=d.concat(o),J1.encode(d,t)};var DBt=(function(){throw new Error("unsupported")}),e$e=J1.assert;function n_(e){if(!(this instanceof n_))return new n_(e);typeof e=="string"&&(e$e(Object.prototype.hasOwnProperty.call(qV,e),"Unknown curve "+e),e=qV[e]),e instanceof qV.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var kBt=n_;n_.prototype.keyPair=function(t){return new Qde(this,t)};n_.prototype.keyFromPrivate=function(t,r){return Qde.fromPrivate(this,t,r)};n_.prototype.keyFromPublic=function(t,r){return Qde.fromPublic(this,t,r)};n_.prototype.genKeyPair=function(t){t||(t={});for(var r=new jKe({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||DBt(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new ba.default(2));;){var o=new ba.default(r.generate(i));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}};n_.prototype._truncateToN=function(t,r){var i=t.byteLength()*8-this.n.bitLength();return i>0&&(t=t.ushrn(i)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};n_.prototype.sign=function(t,r,i,n){typeof i=="object"&&(n=i,i=null),n||(n={}),r=this.keyFromPrivate(r,i),t=this._truncateToN(new ba.default(t,16));for(var o=this.n.byteLength(),d=r.getPrivate().toArray("be",o),g=t.toArray("be",o),y=new jKe({hash:this.hash,entropy:d,nonce:g,pers:n.pers,persEnc:n.persEnc||"utf8"}),_=this.n.sub(new ba.default(1)),I=0;;I++){var N=n.k?n.k(I):new ba.default(y.generate(this.n.byteLength()));if(N=this._truncateToN(N,!0),!(N.cmpn(1)<=0||N.cmp(_)>=0)){var T=this.g.mul(N);if(!T.isInfinity()){var M=T.getX(),D=M.umod(this.n);if(D.cmpn(0)!==0){var P=N.invm(this.n).mul(D.mul(r.getPrivate()).iadd(t));if(P=P.umod(this.n),P.cmpn(0)!==0){var G=(T.getY().isOdd()?1:0)|(M.cmp(D)!==0?2:0);return n.canonical&&P.cmp(this.nh)>0&&(P=this.n.sub(P),G^=1),new KV({r:D,s:P,recoveryParam:G})}}}}}};n_.prototype.verify=function(t,r,i,n){t=this._truncateToN(new ba.default(t,16)),i=this.keyFromPublic(i,n),r=new KV(r,"hex");var o=r.r,d=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var g=d.invm(this.n),y=g.mul(t).umod(this.n),_=g.mul(o).umod(this.n),I;return this.curve._maxwellTrick?(I=this.g.jmulAdd(y,i.getPublic(),_),I.isInfinity()?!1:I.eqXToP(o)):(I=this.g.mulAdd(y,i.getPublic(),_),I.isInfinity()?!1:I.getX().umod(this.n).cmp(o)===0)};n_.prototype.recoverPubKey=function(e,t,r,i){e$e((3&r)===r,"The recovery param is more than two bits"),t=new KV(t,i);var n=this.n,o=new ba.default(e),d=t.r,g=t.s,y=r&1,_=r>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&_)throw new Error("Unable to find sencond key candinate");_?d=this.curve.pointFromX(d.add(this.curve.n),y):d=this.curve.pointFromX(d,y);var I=t.r.invm(n),N=n.sub(o).mul(I).umod(n),T=g.mul(I).umod(n);return this.g.mulAdd(N,d,T)};n_.prototype.getKeyRecoveryParam=function(e,t,r,i){if(t=new KV(t,i),t.recoveryParam!==null)return t.recoveryParam;for(var n=0;n<4;n++){var o;try{o=this.recoverPubKey(e,t,n)}catch{continue}if(o.eq(r))return n}throw new Error("Unable to find valid recovery factor")};var PBt=aN(function(e,t){"use strict";var r=t;r.version="6.5.4",r.utils=J1,r.rand=(function(){throw new Error("unsupported")}),r.curve=GV,r.curves=qV,r.ec=kBt,r.eddsa=null}),t$e=PBt.ec;J();K();z();var r$e="signing-key/5.7.0";var Gde=new go(r$e),Hde=null;function hb(){return Hde||(Hde=new t$e("secp256k1")),Hde}var Ab=class{constructor(t){Po(this,"curve","secp256k1"),Po(this,"privateKey",So(t)),nk(this.privateKey)!==32&&Gde.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let r=hb().keyFromPrivate(ii(this.privateKey));Po(this,"publicKey","0x"+r.getPublic(!1,"hex")),Po(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),Po(this,"_isSigningKey",!0)}_addPoint(t){let r=hb().keyFromPublic(ii(this.publicKey)),i=hb().keyFromPublic(ii(t));return"0x"+r.pub.add(i.pub).encodeCompressed("hex")}signDigest(t){let r=hb().keyFromPrivate(ii(this.privateKey)),i=ii(t);i.length!==32&&Gde.throwArgumentError("bad digest length","digest",t);let n=r.sign(i,{canonical:!0});return P6({recoveryParam:n.recoveryParam,r:xh("0x"+n.r.toString(16),32),s:xh("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let r=hb().keyFromPrivate(ii(this.privateKey)),i=hb().keyFromPublic(ii(fk(t)));return xh("0x"+r.derive(i.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}};function sN(e,t){let r=P6(t),i={r:ii(r.r),s:ii(r.s)};return"0x"+hb().recoverPubKey(ii(e),i,r.recoveryParam).encode("hex",!1)}function fk(e,t){let r=ii(e);if(r.length===32){let i=new Ab(r);return t?"0x"+hb().keyFromPrivate(r).getPublic(!0,"hex"):i.publicKey}else{if(r.length===33)return t?So(r):"0x"+hb().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return t?"0x"+hb().keyFromPublic(r).getPublic(!0,"hex"):So(r)}return Gde.throwArgumentError("invalid public or private key","key","[REDACTED]")}J();K();z();J();K();z();var n$e="transactions/5.7.0";var xm=new go(n$e),i$e;(function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"})(i$e||(i$e={}));var LBt=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],UBt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function a_(e){let t=fk(e);return Th(Gv(H0(Gv(t,1)),12))}function Vde(e,t){return a_(sN(ii(e),t))}function z1(e,t){let r=ib(G0.from(e).toHexString());return r.length>32&&xm.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function qde(e,t){return{address:Th(e),storageKeys:(t||[]).map((r,i)=>(nk(r)!==32&&xm.throwArgumentError("invalid access list storageKey",`accessList[${e}:${i}]`,r),r.toLowerCase()))}}function FBt(e){if(Array.isArray(e))return e.map((r,i)=>Array.isArray(r)?(r.length>2&&xm.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${i}]`,r),qde(r[0],r[1])):qde(r.address,r.storageKeys));let t=Object.keys(e).map(r=>{let i=e[r].reduce((n,o)=>(n[o]=!0,n),{});return qde(r,Object.keys(i).sort())});return t.sort((r,i)=>r.address.localeCompare(i.address)),t}function o$e(e){return FBt(e).map(t=>[t.address,t.storageKeys])}function QBt(e,t){if(e.gasPrice!=null){let i=G0.from(e.gasPrice),n=G0.from(e.maxFeePerGas||0);i.eq(n)||xm.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:i,maxFeePerGas:n})}let r=[z1(e.chainId||0,"chainId"),z1(e.nonce||0,"nonce"),z1(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),z1(e.maxFeePerGas||0,"maxFeePerGas"),z1(e.gasLimit||0,"gasLimit"),e.to!=null?Th(e.to):"0x",z1(e.value||0,"value"),e.data||"0x",o$e(e.accessList||[])];if(t){let i=P6(t);r.push(z1(i.recoveryParam,"recoveryParam")),r.push(ib(i.r)),r.push(ib(i.s))}return k6(["0x02",ok(r)])}function HBt(e,t){let r=[z1(e.chainId||0,"chainId"),z1(e.nonce||0,"nonce"),z1(e.gasPrice||0,"gasPrice"),z1(e.gasLimit||0,"gasLimit"),e.to!=null?Th(e.to):"0x",z1(e.value||0,"value"),e.data||"0x",o$e(e.accessList||[])];if(t){let i=P6(t);r.push(z1(i.recoveryParam,"recoveryParam")),r.push(ib(i.r)),r.push(ib(i.s))}return k6(["0x01",ok(r)])}function GBt(e,t){dKe(e,UBt);let r=[];LBt.forEach(function(d){let g=e[d.name]||[],y={};d.numeric&&(y.hexPad="left"),g=ii(So(g,y)),d.length&&g.length!==d.length&&g.length>0&&xm.throwArgumentError("invalid length for "+d.name,"transaction:"+d.name,g),d.maxLength&&(g=ib(g),g.length>d.maxLength&&xm.throwArgumentError("invalid length for "+d.name,"transaction:"+d.name,g)),r.push(So(g))});let i=0;if(e.chainId!=null?(i=e.chainId,typeof i!="number"&&xm.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!tk(t)&&t.v>28&&(i=Math.floor((t.v-35)/2)),i!==0&&(r.push(So(i)),r.push("0x"),r.push("0x")),!t)return ok(r);let n=P6(t),o=27+n.recoveryParam;return i!==0?(r.pop(),r.pop(),r.pop(),o+=i*2+8,n.v>28&&n.v!==o&&xm.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):n.v!==o&&xm.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(So(o)),r.push(ib(ii(n.r))),r.push(ib(ii(n.s))),ok(r)}function Jde(e,t){if(e.type==null||e.type===0)return e.accessList!=null&&xm.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),GBt(e,t);switch(e.type){case 1:return HBt(e,t);case 2:return QBt(e,t);default:break}return xm.throwError(`unsupported transaction type: ${e.type}`,go.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}J();K();z();J();K();z();J();K();z();var a$e="abstract-provider/5.7.0";var qBt=function(e,t,r,i){function n(o){return o instanceof r?o:new r(function(d){d(o)})}return new(r||(r=Promise))(function(o,d){function g(I){try{_(i.next(I))}catch(N){d(N)}}function y(I){try{_(i.throw(I))}catch(N){d(N)}}function _(I){I.done?o(I.value):n(I.value).then(g,y)}_((i=i.apply(e,t||[])).next())})},VBt=new go(a$e);var $V=class e{constructor(){VBt.checkAbstract(new.target,e),Po(this,"_isProvider",!0)}getFeeData(){return qBt(this,void 0,void 0,function*(){let{block:t,gasPrice:r}=yield Jv({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(d=>null)}),i=null,n=null,o=null;return t&&t.baseFeePerGas&&(i=t.baseFeePerGas,o=G0.from("1500000000"),n=t.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:i,maxFeePerGas:n,maxPriorityFeePerGas:o,gasPrice:r}})}addListener(t,r){return this.on(t,r)}removeListener(t,r){return this.off(t,r)}static isProvider(t){return!!(t&&t._isProvider)}};J();K();z();J();K();z();var s$e="abstract-signer/5.7.0";var Tm=function(e,t,r,i){function n(o){return o instanceof r?o:new r(function(d){d(o)})}return new(r||(r=Promise))(function(o,d){function g(I){try{_(i.next(I))}catch(N){d(N)}}function y(I){try{_(i.throw(I))}catch(N){d(N)}}function _(I){I.done?o(I.value):n(I.value).then(g,y)}_((i=i.apply(e,t||[])).next())})},Bm=new go(s$e),JBt=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],zBt=[go.errors.INSUFFICIENT_FUNDS,go.errors.NONCE_EXPIRED,go.errors.REPLACEMENT_UNDERPRICED],YV=class e{constructor(){Bm.checkAbstract(new.target,e),Po(this,"_isSigner",!0)}getBalance(t){return Tm(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return Tm(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return Tm(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let r=yield Jv(this.checkTransaction(t));return yield this.provider.estimateGas(r)})}call(t,r){return Tm(this,void 0,void 0,function*(){this._checkProvider("call");let i=yield Jv(this.checkTransaction(t));return yield this.provider.call(i,r)})}sendTransaction(t){return Tm(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let r=yield this.populateTransaction(t),i=yield this.signTransaction(r);return yield this.provider.sendTransaction(i)})}getChainId(){return Tm(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Tm(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Tm(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return Tm(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(let i in t)JBt.indexOf(i)===-1&&Bm.throwArgumentError("invalid transaction key: "+i,"transaction",t);let r=ck(t);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(i=>(i[0].toLowerCase()!==i[1].toLowerCase()&&Bm.throwArgumentError("from address mismatch","transaction",t),i[0])),r}populateTransaction(t){return Tm(this,void 0,void 0,function*(){let r=yield Jv(this.checkTransaction(t));r.to!=null&&(r.to=Promise.resolve(r.to).then(n=>Tm(this,void 0,void 0,function*(){if(n==null)return null;let o=yield this.resolveName(n);return o==null&&Bm.throwArgumentError("provided ENS name resolves to null","tx.to",n),o})),r.to.catch(n=>{}));let i=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||i)?Bm.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(r.type===0||r.type===1)&&i&&Bm.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{let n=yield this.getFeeData();if(r.type==null)if(n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){let o=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o}else r.maxFeePerGas==null&&(r.maxFeePerGas=n.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=n.maxPriorityFeePerGas);else n.gasPrice!=null?(i&&Bm.throwError("network does not support EIP-1559",go.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=n.gasPrice),r.type=0):Bm.throwError("failed to get consistent fee data",go.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=n.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=n.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(n=>{if(zBt.indexOf(n.code)>=0)throw n;return Bm.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",go.errors.UNPREDICTABLE_GAS_LIMIT,{error:n,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(n=>(n[1]!==0&&n[0]!==n[1]&&Bm.throwArgumentError("chainId address mismatch","transaction",t),n[0])),yield Jv(r)})}_checkProvider(t){this.provider||Bm.throwError("missing provider",go.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}};J();K();z();J();K();z();var WV=class{constructor(t){Po(this,"alphabet",t),Po(this,"base",t.length),Po(this,"_alphabetMap",{}),Po(this,"_leader",t.charAt(0));for(let r=0;r<t.length;r++)this._alphabetMap[t.charAt(r)]=r}encode(t){let r=ii(t);if(r.length===0)return"";let i=[0];for(let o=0;o<r.length;++o){let d=r[o];for(let g=0;g<i.length;++g)d+=i[g]<<8,i[g]=d%this.base,d=d/this.base|0;for(;d>0;)i.push(d%this.base),d=d/this.base|0}let n="";for(let o=0;r[o]===0&&o<r.length-1;++o)n+=this._leader;for(let o=i.length-1;o>=0;--o)n+=this.alphabet[i[o]];return n}decode(t){if(typeof t!="string")throw new TypeError("Expected String");let r=[];if(t.length===0)return new Uint8Array(r);r.push(0);for(let i=0;i<t.length;i++){let n=this._alphabetMap[t[i]];if(n===void 0)throw new Error("Non-base"+this.base+" character");let o=n;for(let d=0;d<r.length;++d)o+=r[d]*this.base,r[d]=o&255,o>>=8;for(;o>0;)r.push(o&255),o>>=8}for(let i=0;t[i]===this._leader&&i<t.length-1;++i)r.push(0);return ii(new Uint8Array(r.reverse()))}},gNn=new WV("abcdefghijklmnopqrstuvwxyz234567"),zde=new WV("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");J();K();z();J();K();z();J();K();z();J();K();z();var lk=po(oN());J();K();z();var H6;(function(e){e.sha256="sha256",e.sha512="sha512"})(H6||(H6={}));J();K();z();var c$e="sha2/5.7.0";var KBt=new go(c$e);function Kde(e){return"0x"+lk.default.ripemd160().update(ii(e)).digest("hex")}function M4(e){return"0x"+lk.default.sha256().update(ii(e)).digest("hex")}function D4(e,t,r){return H6[e]||KBt.throwError("unsupported algorithm "+e,go.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+lk.default.hmac(lk.default[e],ii(t)).update(ii(r)).digest("hex")}function k4(e,t,r,i,n){e=ii(e),t=ii(t);let o,d=1,g=new Uint8Array(i),y=new Uint8Array(t.length+4);y.set(t);let _,I;for(let N=1;N<=d;N++){y[t.length]=N>>24&255,y[t.length+1]=N>>16&255,y[t.length+2]=N>>8&255,y[t.length+3]=N&255;let T=ii(D4(n,e,y));o||(o=T.length,I=new Uint8Array(o),d=Math.ceil(i/o),_=i-(d-1)*o),I.set(T);for(let P=1;P<r;P++){T=ii(D4(n,e,T));for(let G=0;G<o;G++)I[G]^=T[G]}let M=(N-1)*o,D=N===d?_:o;g.set(ii(I).slice(0,D),M)}return So(g)}J();K();z();J();K();z();J();K();z();var u$e="wordlists/5.7.0";var $Bt=!1,YBt=new go(u$e),cN=class e{constructor(t){YBt.checkAbstract(new.target,e),Po(this,"locale",t)}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){let r=[];for(let i=0;i<2048;i++){let n=t.getWord(i);if(i!==t.getWordIndex(n))return"0x";r.push(n)}return ZO(r.join(`
|
|
`)+`
|
|
`)}static register(t,r){if(r||(r=t.locale),$Bt)try{let i=window;i._ethers&&i._ethers.wordlists&&(i._ethers.wordlists[r]||Po(i._ethers.wordlists,r,t))}catch{}}};J();K();z();J();K();z();var WBt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",hk=null;function d$e(e){if(hk==null&&(hk=WBt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),cN.check(e)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw hk=null,new Error("BIP39 Wordlist for en (English) FAILED")}var $de=class extends cN{constructor(){super("en")}getWord(t){return d$e(this),hk[t]}getWordIndex(t){return d$e(this),hk.indexOf(t)}},Yde=new $de;cN.register(Yde);var XV={en:Yde};J();K();z();var f$e="hdnode/5.7.0";var jV=new go(f$e),XBt=G0.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ZBt=wA("Bitcoin seed"),Ak=2147483648;function h$e(e){return(1<<e)-1<<8-e}function jBt(e){return(1<<e)-1}function ZV(e){return xh(So(e),32)}function l$e(e){return zde.encode(V1([e,Gv(M4(M4(e)),0,4)]))}function Wde(e){if(e==null)return XV.en;if(typeof e=="string"){let t=XV[e];return t==null&&jV.throwArgumentError("unknown locale","wordlist",e),t}return e}var uN={},P4="m/44'/60'/0'/0/0",G6=class e{constructor(t,r,i,n,o,d,g,y){if(t!==uN)throw new Error("HDNode constructor cannot be called directly");if(r){let _=new Ab(r);Po(this,"privateKey",_.privateKey),Po(this,"publicKey",_.compressedPublicKey)}else Po(this,"privateKey",null),Po(this,"publicKey",So(i));Po(this,"parentFingerprint",n),Po(this,"fingerprint",Gv(Kde(M4(this.publicKey)),0,4)),Po(this,"address",a_(this.publicKey)),Po(this,"chainCode",o),Po(this,"index",d),Po(this,"depth",g),y==null?(Po(this,"mnemonic",null),Po(this,"path",null)):typeof y=="string"?(Po(this,"mnemonic",null),Po(this,"path",y)):(Po(this,"mnemonic",y),Po(this,"path",y.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return l$e(V1([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",So(this.depth),this.parentFingerprint,xh(So(this.index),4),this.chainCode,this.privateKey!=null?V1(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new e(uN,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let r=this.path;r&&(r+="/"+(t&~Ak));let i=new Uint8Array(37);if(t&Ak){if(!this.privateKey)throw new Error("cannot derive child of neutered node");i.set(ii(this.privateKey),1),r&&(r+="'")}else i.set(ii(this.publicKey));for(let N=24;N>=0;N-=8)i[33+(N>>3)]=t>>24-N&255;let n=ii(D4(H6.sha512,this.chainCode,i)),o=n.slice(0,32),d=n.slice(32),g=null,y=null;this.privateKey?g=ZV(G0.from(o).add(this.privateKey).mod(XBt)):y=new Ab(So(o))._addPoint(this.publicKey);let _=r,I=this.mnemonic;return I&&(_=Object.freeze({phrase:I.phrase,path:r,locale:I.locale||"en"})),new e(uN,g,y,this.fingerprint,ZV(d),t,this.depth+1,_)}derivePath(t){let r=t.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+t);r[0]==="m"&&r.shift();let i=this;for(let n=0;n<r.length;n++){let o=r[n];if(o.match(/^[0-9]+'$/)){let d=parseInt(o.substring(0,o.length-1));if(d>=Ak)throw new Error("invalid path index - "+o);i=i._derive(Ak+d)}else if(o.match(/^[0-9]+$/)){let d=parseInt(o);if(d>=Ak)throw new Error("invalid path index - "+o);i=i._derive(d)}else throw new Error("invalid path component - "+o)}return i}static _fromSeed(t,r){let i=ii(t);if(i.length<16||i.length>64)throw new Error("invalid seed");let n=ii(D4(H6.sha512,ZBt,i));return new e(uN,ZV(n.slice(0,32)),null,"0x00000000",ZV(n.slice(32)),0,0,r)}static fromMnemonic(t,r,i){return i=Wde(i),t=pk(Xde(t,i),i),e._fromSeed(e7t(t,r),{phrase:t,path:"m",locale:i.locale})}static fromSeed(t){return e._fromSeed(t,null)}static fromExtendedKey(t){let r=zde.decode(t);(r.length!==82||l$e(r.slice(0,78))!==t)&&jV.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let i=r[4],n=So(r.slice(5,9)),o=parseInt(So(r.slice(9,13)).substring(2),16),d=So(r.slice(13,45)),g=r.slice(45,78);switch(So(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(uN,null,So(g),n,d,o,i,null);case"0x0488ade4":case"0x04358394 ":if(g[0]!==0)break;return new e(uN,So(g.slice(1)),null,n,d,o,i,null)}return jV.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}};function e7t(e,t){t||(t="");let r=wA("mnemonic"+t,ob.NFKD);return k4(wA(e,ob.NFKD),r,2048,64,"sha512")}function Xde(e,t){t=Wde(t),jV.checkNormalize();let r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");let i=ii(new Uint8Array(Math.ceil(11*r.length/8))),n=0;for(let _=0;_<r.length;_++){let I=t.getWordIndex(r[_].normalize("NFKD"));if(I===-1)throw new Error("invalid mnemonic");for(let N=0;N<11;N++)I&1<<10-N&&(i[n>>3]|=1<<7-n%8),n++}let o=32*r.length/3,d=r.length/3,g=h$e(d);if((ii(M4(i.slice(0,o/8)))[0]&g)!==(i[i.length-1]&g))throw new Error("invalid checksum");return So(i.slice(0,o/8))}function pk(e,t){if(t=Wde(t),e=ii(e),e.length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");let r=[0],i=11;for(let d=0;d<e.length;d++)i>8?(r[r.length-1]<<=8,r[r.length-1]|=e[d],i-=8):(r[r.length-1]<<=i,r[r.length-1]|=e[d]>>8-i,r.push(e[d]&jBt(8-i)),i+=3);let n=e.length/4,o=ii(M4(e))[0]&h$e(n);return r[r.length-1]<<=n,r[r.length-1]|=o>>8-n,t.join(r.map(d=>t.getWord(d)))}J();K();z();J();K();z();J();K();z();var A$e="random/5.7.0";var Zde=new go(A$e);function t7t(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var p$e=t7t(),eJ=p$e.crypto||p$e.msCrypto;(!eJ||!eJ.getRandomValues)&&(Zde.warn("WARNING: Missing strong random number source"),eJ={getRandomValues:function(e){return Zde.throwError("no secure random source avaialble",go.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function q6(e){(e<=0||e>1024||e%1||e!=e)&&Zde.throwArgumentError("invalid length","length",e);let t=new Uint8Array(e);return eJ.getRandomValues(t),ii(t)}J();K();z();J();K();z();var tfe=po(efe());J();K();z();var tJ="json-wallets/5.7.0";J();K();z();function Yv(e){return typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),ii(e)}function dN(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function gk(e){return typeof e=="string"?wA(e,ob.NFKC):ii(e)}function V0(e,t){let r=e,i=t.toLowerCase().split("/");for(let n=0;n<i.length;n++){let o=null;for(let d in r)if(d.toLowerCase()===i[n]){o=r[d];break}if(o===null)return null;r=o}return r}function _$e(e){let t=ii(e);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=So(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}var r7t=new go(tJ),rfe=class extends N4{isCrowdsaleAccount(t){return!!(t&&t._isCrowdsaleAccount)}};function nfe(e,t){let r=JSON.parse(e);t=gk(t);let i=Th(V0(r,"ethaddr")),n=Yv(V0(r,"encseed"));(!n||n.length%16!==0)&&r7t.throwArgumentError("invalid encseed","json",e);let o=ii(k4(t,t,2e3,32,"sha256")).slice(0,16),d=n.slice(0,16),g=n.slice(16),y=new tfe.default.ModeOfOperation.cbc(o,d),_=tfe.default.padding.pkcs7.strip(ii(y.decrypt(g))),I="";for(let M=0;M<_.length;M++)I+=String.fromCharCode(_[M]);let N=wA(I),T=H0(N);return new rfe({_isCrowdsaleAccount:!0,address:i,privateKey:T})}J();K();z();function ife(e){let t=null;try{t=JSON.parse(e)}catch{return!1}return t.encseed&&t.ethaddr}function ofe(e){let t=null;try{t=JSON.parse(e)}catch{return!1}return!(!t.version||parseInt(t.version)!==t.version||parseInt(t.version)!==3)}J();K();z();var Wv=po(efe()),rJ=po(y$e());var n7t=function(e,t,r,i){function n(o){return o instanceof r?o:new r(function(d){d(o)})}return new(r||(r=Promise))(function(o,d){function g(I){try{_(i.next(I))}catch(N){d(N)}}function y(I){try{_(i.throw(I))}catch(N){d(N)}}function _(I){I.done?o(I.value):n(I.value).then(g,y)}_((i=i.apply(e,t||[])).next())})},sfe=new go(tJ);function b$e(e){return e!=null&&e.mnemonic&&e.mnemonic.phrase}var cfe=class extends N4{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}};function i7t(e,t,r){if(V0(e,"crypto/cipher")==="aes-128-ctr"){let n=Yv(V0(e,"crypto/cipherparams/iv")),o=new Wv.default.Counter(n),d=new Wv.default.ModeOfOperation.ctr(t,o);return ii(d.decrypt(r))}return null}function E$e(e,t){let r=Yv(V0(e,"crypto/ciphertext"));if(So(H0(V1([t.slice(16,32),r]))).substring(2)!==V0(e,"crypto/mac").toLowerCase())throw new Error("invalid password");let n=i7t(e,t.slice(0,16),r);n||sfe.throwError("unsupported cipher",go.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let o=t.slice(32,64),d=a_(n);if(e.address){let y=e.address.toLowerCase();if(y.substring(0,2)!=="0x"&&(y="0x"+y),Th(y)!==d)throw new Error("address mismatch")}let g={_isKeystoreAccount:!0,address:d,privateKey:So(n)};if(V0(e,"x-ethers/version")==="0.1"){let y=Yv(V0(e,"x-ethers/mnemonicCiphertext")),_=Yv(V0(e,"x-ethers/mnemonicCounter")),I=new Wv.default.Counter(_),N=new Wv.default.ModeOfOperation.ctr(o,I),T=V0(e,"x-ethers/path")||P4,M=V0(e,"x-ethers/locale")||"en",D=ii(N.decrypt(y));try{let P=pk(D,M),G=G6.fromMnemonic(P,null,M).derivePath(T);if(G.privateKey!=g.privateKey)throw new Error("mnemonic mismatch");g.mnemonic=G.mnemonic}catch(P){if(P.code!==go.errors.INVALID_ARGUMENT||P.argument!=="wordlist")throw P}}return new cfe(g)}function v$e(e,t,r,i,n){return ii(k4(e,t,r,i,n))}function o7t(e,t,r,i,n){return Promise.resolve(v$e(e,t,r,i,n))}function R$e(e,t,r,i,n){let o=gk(t),d=V0(e,"crypto/kdf");if(d&&typeof d=="string"){let g=function(y,_){return sfe.throwArgumentError("invalid key-derivation function parameters",y,_)};if(d.toLowerCase()==="scrypt"){let y=Yv(V0(e,"crypto/kdfparams/salt")),_=parseInt(V0(e,"crypto/kdfparams/n")),I=parseInt(V0(e,"crypto/kdfparams/r")),N=parseInt(V0(e,"crypto/kdfparams/p"));(!_||!I||!N)&&g("kdf",d),(_&_-1)!==0&&g("N",_);let T=parseInt(V0(e,"crypto/kdfparams/dklen"));return T!==32&&g("dklen",T),i(o,y,_,I,N,64,n)}else if(d.toLowerCase()==="pbkdf2"){let y=Yv(V0(e,"crypto/kdfparams/salt")),_=null,I=V0(e,"crypto/kdfparams/prf");I==="hmac-sha256"?_="sha256":I==="hmac-sha512"?_="sha512":g("prf",I);let N=parseInt(V0(e,"crypto/kdfparams/c")),T=parseInt(V0(e,"crypto/kdfparams/dklen"));return T!==32&&g("dklen",T),r(o,y,N,T,_)}}return sfe.throwArgumentError("unsupported key-derivation function","kdf",d)}function S$e(e,t){let r=JSON.parse(e),i=R$e(r,t,v$e,rJ.default.syncScrypt);return E$e(r,i)}function I$e(e,t,r){return n7t(this,void 0,void 0,function*(){let i=JSON.parse(e),n=yield R$e(i,t,o7t,rJ.default.scrypt,r);return E$e(i,n)})}function ufe(e,t,r,i){try{if(Th(e.address)!==a_(e.privateKey))throw new Error("address/privateKey mismatch");if(b$e(e)){let G=e.mnemonic;if(G6.fromMnemonic(G.phrase,null,G.locale).derivePath(G.path||P4).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(G){return Promise.reject(G)}typeof r=="function"&&!i&&(i=r,r={}),r||(r={});let n=ii(e.privateKey),o=gk(t),d=null,g=null,y=null;if(b$e(e)){let G=e.mnemonic;d=ii(Xde(G.phrase,G.locale||"en")),g=G.path||P4,y=G.locale||"en"}let _=r.client;_||(_="ethers.js");let I=null;r.salt?I=ii(r.salt):I=q6(32);let N=null;if(r.iv){if(N=ii(r.iv),N.length!==16)throw new Error("invalid iv")}else N=q6(16);let T=null;if(r.uuid){if(T=ii(r.uuid),T.length!==16)throw new Error("invalid uuid")}else T=q6(16);let M=1<<17,D=8,P=1;return r.scrypt&&(r.scrypt.N&&(M=r.scrypt.N),r.scrypt.r&&(D=r.scrypt.r),r.scrypt.p&&(P=r.scrypt.p)),rJ.default.scrypt(o,I,M,D,P,64,i).then(G=>{G=ii(G);let q=G.slice(0,16),Y=G.slice(16,32),ne=G.slice(32,64),ce=new Wv.default.Counter(N),le=new Wv.default.ModeOfOperation.ctr(q,ce),pe=ii(le.encrypt(n)),ae=H0(V1([Y,pe])),W={address:e.address.substring(2).toLowerCase(),id:_$e(T),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:So(N).substring(2)},ciphertext:So(pe).substring(2),kdf:"scrypt",kdfparams:{salt:So(I).substring(2),n:M,dklen:32,p:P,r:D},mac:ae.substring(2)}};if(d){let se=q6(16),O=new Wv.default.Counter(se),s=new Wv.default.ModeOfOperation.ctr(ne,O),l=ii(s.encrypt(d)),A=new Date,m=A.getUTCFullYear()+"-"+dN(A.getUTCMonth()+1,2)+"-"+dN(A.getUTCDate(),2)+"T"+dN(A.getUTCHours(),2)+"-"+dN(A.getUTCMinutes(),2)+"-"+dN(A.getUTCSeconds(),2)+".0Z";W["x-ethers"]={client:_,gethFilename:"UTC--"+m+"--"+W.address,mnemonicCounter:So(se).substring(2),mnemonicCiphertext:So(l).substring(2),path:g,locale:y,version:"0.1"}}return JSON.stringify(W)})}function C$e(e,t,r){if(ife(e)){r&&r(0);let i=nfe(e,t);return r&&r(1),Promise.resolve(i)}return ofe(e)?I$e(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function w$e(e,t){if(ife(e))return nfe(e,t);if(ofe(e))return S$e(e,t);throw new Error("invalid JSON wallet")}J();K();z();var O$e="wallet/5.7.0";var N$e=function(e,t,r,i){function n(o){return o instanceof r?o:new r(function(d){d(o)})}return new(r||(r=Promise))(function(o,d){function g(I){try{_(i.next(I))}catch(N){d(N)}}function y(I){try{_(i.throw(I))}catch(N){d(N)}}function _(I){I.done?o(I.value):n(I.value).then(g,y)}_((i=i.apply(e,t||[])).next())})},fN=new go(O$e);function a7t(e){return e!=null&&Lf(e.privateKey,32)&&e.address!=null}function s7t(e){let t=e.mnemonic;return t&&t.phrase}var lN=class e extends YV{constructor(t,r){if(super(),a7t(t)){let i=new Ab(t.privateKey);if(Po(this,"_signingKey",()=>i),Po(this,"address",a_(this.publicKey)),this.address!==Th(t.address)&&fN.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),s7t(t)){let n=t.mnemonic;Po(this,"_mnemonic",()=>({phrase:n.phrase,path:n.path||P4,locale:n.locale||"en"}));let o=this.mnemonic,d=G6.fromMnemonic(o.phrase,null,o.locale).derivePath(o.path);a_(d.privateKey)!==this.address&&fN.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Po(this,"_mnemonic",()=>null)}else{if(Ab.isSigningKey(t))t.curve!=="secp256k1"&&fN.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Po(this,"_signingKey",()=>t);else{typeof t=="string"&&t.match(/^[0-9a-f]*$/i)&&t.length===64&&(t="0x"+t);let i=new Ab(t);Po(this,"_signingKey",()=>i)}Po(this,"_mnemonic",()=>null),Po(this,"address",a_(this.publicKey))}r&&!$V.isProvider(r)&&fN.throwArgumentError("invalid provider","provider",r),Po(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new e(this,t)}signTransaction(t){return Jv(t).then(r=>{r.from!=null&&(Th(r.from)!==this.address&&fN.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete r.from);let i=this._signingKey().signDigest(H0(Jde(r)));return Jde(r,i)})}signMessage(t){return N$e(this,void 0,void 0,function*(){return bde(this._signingKey().signDigest(L6(t)))})}_signTypedData(t,r,i){return N$e(this,void 0,void 0,function*(){let n=yield x4.resolveNames(t,r,i,o=>(this.provider==null&&fN.throwError("cannot resolve ENS names without a provider",go.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:o}),this.provider.resolveName(o)));return bde(this._signingKey().signDigest(x4.hash(n.domain,r,n.value)))})}encrypt(t,r,i){if(typeof r=="function"&&!i&&(i=r,r={}),i&&typeof i!="function")throw new Error("invalid callback");return r||(r={}),ufe(this,t,r,i)}static createRandom(t){let r=q6(16);t||(t={}),t.extraEntropy&&(r=ii(Gv(H0(V1([r,t.extraEntropy])),0,16)));let i=pk(r,t.locale);return e.fromMnemonic(i,t.path,t.locale)}static fromEncryptedJson(t,r,i){return C$e(t,r,i).then(n=>new e(n))}static fromEncryptedJsonSync(t,r){return new e(w$e(t,r))}static fromMnemonic(t,r,i){return r||(r=P4),new e(G6.fromMnemonic(t,null,i).derivePath(r))}};function x$e(e,t){return Vde(L6(e),t)}function nJ(e,t,r,i){return Vde(x4.hash(e,t,r),i)}var Xv=class{signer;publicKey;ownerLength=ps[ko.ETHEREUM].pubLength;signatureLength=ps[ko.ETHEREUM].sigLength;signatureType=ko.ETHEREUM;constructor(t){this.signer=t.getSigner()}async setPublicKey(){let t="sign this message to connect to Bundlr.Network",r=await this.signer.signMessage(t),i=await L6(t),n=sN(ii(i),r);this.publicKey=fe.from(ii(n))}async sign(t){this.publicKey||await this.setPublicKey();let r=await this.signer.signMessage(t);return fe.from(r.slice(2),"hex")}static verify(t,r,i){let n=a_(t);return x$e(r,i)===n}};J();K();z();var hN=po(M$e(),1),Zv=class extends H1{get publicKey(){return hN.default.decode(this.pk)}get key(){return hN.default.decode(this._key)}constructor(t){let r=hN.default.decode(t);super(hN.default.encode(r.subarray(0,32)),hN.default.encode(r.subarray(32,64)))}};J();K();z();J();K();z();J();K();z();var eXe=po(Cg(),1),ale=po(wfe(),1);J();K();z();mh();var KWe=po(zWe(),1);function ole(e){return e=$We(e),(0,KWe.default)("keccak256").update(e).digest()}function $We(e){if(!fe.isBuffer(e))if(Array.isArray(e))e=fe.from(e);else if(typeof e=="string")YWe(e)?e=fe.from(kJ(WWe(e)),"hex"):e=fe.from(e);else if(typeof e=="number")e=ZWe(e);else if(typeof e=="bigint")e=SDt(e);else if(e==null)e=fe.allocUnsafe(0);else throw new Error("invalid type");return e}function YWe(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function kJ(e){if(typeof e!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof e}, while padToEven.`);return e.length%2&&(e=`0${e}`),e}function WWe(e){return typeof e!="string"?e:XWe(e)?e.slice(2):e}function XWe(e){if(typeof e!="string")throw new Error("value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return e.startsWith("0x")}function ZWe(e){let t=jWe(e);return fe.from(kJ(t.slice(2)),"hex")}function jWe(e){return`0x${e.toString(16)}`}function SDt(e){let t=e.toString(16);return fe.from(kJ(t),"hex")}typeof window<"u"&&(window.keccak256=ole);var Nk=ole,IDt={intToBuffer:ZWe,intToHex:jWe,isHexPrefixed:XWe,stripHexPrefix:WWe,padToEven:kJ,isHexString:YWe,toBuffer:$We};var W4=class{_key;ownerLength=ps[ko.ETHEREUM].pubLength;signatureLength=ps[ko.ETHEREUM].sigLength;signatureType=ko.ETHEREUM;pk;constructor(t,r){this._key=t,this.pk=r.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return fe.from(this._key,"hex")}static async verify(t,r,i){let n=t;typeof t=="string"&&(n=eXe.default.toBuffer(t));let o=!1;try{o=ale.default.ecdsaVerify(i,Nk(fe.from(r)),n)}catch{}return o}async sign(t){return ale.default.ecdsaSign(Nk(fe.from(t)),fe.from(this.key)).signature}};var sle=po(wfe(),1),tXe=po(Cg(),1);var m0=class extends W4{get publicKey(){return fe.from(this.pk,"hex")}constructor(t){t.startsWith("0x")&&(t=t.slice(2));let r=fe.from(t,"hex"),i=sle.default.publicKeyCreate(r,!1);super(t,fe.from(i))}async sign(t){return new lN(this._key).signMessage(t).then(i=>fe.from(i.slice(2),"hex"))}static async verify(t,r,i){return sle.default.ecdsaVerify(i.length===65?i.slice(0,-1):i,ii(L6(r)),typeof t=="string"?tXe.default.toBuffer(t):t)}};var xk=class extends m0{};J();K();z();var Tk=class extends Zv{constructor(t){super(t.replace("ed25519:",""))}};J();K();z();var Bk=class extends H1{get publicKey(){return fe.from(this.pk)}get key(){return fe.from(this._key)}constructor(t,r){super(t.subarray(0,32),r)}};J();K();z();var Pm=class extends w4{signatureType=4;constructor(t){super(t)}async sign(t){return super.sign(fe.from(fe.from(t).toString("hex")))}static async verify(t,r,i){return super.verify(t,fe.from(fe.from(r).toString("hex")),i)}};J();K();z();var bb=class extends Zv{signatureType=4;constructor(t){super(t)}async sign(t){return super.sign(fe.from(fe.from(t).toString("hex")))}static async verify(t,r,i){return super.verify(t,fe.from(fe.from(r).toString("hex")),i)}};J();K();z();var Mk=class extends H1{constructor(t,r){super(t,r)}get publicKey(){return fe.from(this.pk.slice(2),"hex")}get key(){return fe.from(this._key.slice(2),"hex")}};J();K();z();var X4=class{_publicKey;ownerLength=ps[ko.INJECTEDAPTOS].pubLength;signatureLength=ps[ko.INJECTEDAPTOS].sigLength;signatureType=ko.INJECTEDAPTOS;pem;provider;constructor(t,r){this.provider=t,this._publicKey=r}get publicKey(){return this._publicKey}async sign(t){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");let i=(await this.provider.signMessage({message:fe.from(t).toString("hex"),nonce:"bundlr"})).signature;return typeof i=="string"?fe.from(i,"hex"):i.data.toUint8Array()}static async verify(t,r,i){let n=t;return x6(fe.from(i),fe.from(`APTOS
|
|
message: ${fe.from(r).toString("hex")}
|
|
nonce: bundlr`),fe.from(n))}};J();K();z();var Z4=class{_publicKey;ownerLength=ps[ko.MULTIAPTOS].pubLength;signatureLength=ps[ko.MULTIAPTOS].sigLength;signatureType=ko.MULTIAPTOS;collectSignatures;provider;constructor(t,r){this._publicKey=t,this.collectSignatures=r}get publicKey(){return this._publicKey}async sign(t){let{signatures:r,bitmap:i}=await this.collectSignatures(t),n=128,o=new Uint8Array([0,0,0,0]),d=new Set;i.forEach(_=>{if(_>=32)throw new Error(`Invalid bit value ${_}.`);if(d.has(_))throw new Error("Duplicated bits detected.");d.add(_);let I=Math.floor(_/8),N=o[I];N|=n>>_%8,o[I]=N});let g=fe.alloc(this.signatureLength),y=0;for(let _=0;_<32;_++)i.includes(_)&&g.set(r[y++],_*64);return g.set(o,this.signatureLength-4),g}static async verify(t,r,i){let o=ps[ko.MULTIAPTOS].sigLength-4,d=i.slice(0,o),g=i.slice(o),y=!1;for(let _=0;_<32;_++){let I=Math.floor(_/8),N=_-I*8;if((g[I]&128>>N)!==0){let M=d.slice(_*64,(_+1)*64),D=t.slice(_*32,(_+1)*32);await x6(fe.from(M),fe.from(r),fe.from(D))||(y=!0)}}return!y}};J();K();z();var j4=class extends m0{ownerLength=ps[ko.TYPEDETHEREUM].pubLength;signatureLength=ps[ko.TYPEDETHEREUM].sigLength;signatureType=ko.TYPEDETHEREUM;address;signer;constructor(t){super(t),this.address="0x"+Nk(super.publicKey.slice(1)).slice(-20).toString("hex"),this.signer=new lN(t)}get publicKey(){return fe.from(this.address)}async sign(t){let r=await this.signer._signTypedData(Dk,kk,{address:this.address,"Transaction hash":t});return fe.from(r.slice(2),"hex")}static async verify(t,r,i){let n=t.toString(),o=nJ(Dk,kk,{address:n,"Transaction hash":r},i);return n.toLowerCase()===o.toLowerCase()}},Dk={name:"Bundlr",version:"1"},kk={Bundlr:[{name:"Transaction hash",type:"bytes"},{name:"address",type:"address"}]};J();K();z();var cle=class{ownerLength=ps[ko.TYPEDETHEREUM].pubLength;signatureLength=ps[ko.TYPEDETHEREUM].sigLength;signatureType=ko.TYPEDETHEREUM;address;signer;publicKey;constructor(t){this.signer=t.getSigner()}async ready(){this.address=(await this.signer.getAddress()).toString().toLowerCase(),this.publicKey=fe.from(this.address)}async sign(t){let r=await this.signer._signTypedData(Dk,kk,{address:this.address,"Transaction hash":t});return fe.from(r.slice(2),"hex")}static verify(t,r,i){let n=t.toString(),o=nJ(Dk,kk,{address:n,"Transaction hash":r},i);return n.toLowerCase()===o.toLowerCase()}};J();K();z();var rXe=po(Cg(),1);var eC=class{signer;publicKey;ownerLength=ps[ko.ARWEAVE].pubLength;signatureLength=ps[ko.ARWEAVE].sigLength;signatureType=ko.ARWEAVE;constructor(t){this.signer=t}async setPublicKey(){let t=await this.signer.getActivePublicKey();this.publicKey=rXe.default.toBuffer(t)}async sign(t){this.publicKey||await this.setPublicKey();let r={name:"RSA-PSS",saltLength:32},i=await this.signer.signature(t,r);return new Uint8Array(Object.values(i).map(o=>+o))}static async verify(t,r,i){return await Od().verify(t,r,i)}};J();K();z();var Pk=class extends m0{signatureType=ko.KYVE};var Lk={1:nb,2:H1,3:m0,4:Pm,5:X4,6:Z4,7:j4};J();K();z();J();K();z();async function CDt(e){return rb([(0,js.stringToBuffer)("dataitem"),(0,js.stringToBuffer)("1"),(0,js.stringToBuffer)(e.signatureType.toString()),e.rawOwner,e.rawTarget,e.rawAnchor,e.rawTags,e.rawData])}var Uk=CDt;J();K();z();J();K();z();function Fk(e,t){let r=new Uint8Array(e);if(t<0)throw new Error("Array is unsigned, cannot represent -ve numbers");if(t>2**(e*8)-1)throw new Error(`Number ${t} is too large for an array of ${e} bytes`);for(let i=0;i<r.length;i++){let n=t&255;r[i]=n,t=(t-n)/256}return r}function PJ(e){return Fk(8,e)}function ule(e){return Fk(2,e)}function wDt(e){return Fk(16,e)}function LJ(e){return Fk(32,e)}function ld(e){let t=0;for(let r=e.length-1;r>=0;r--)t=t*256+e[r];return t}J();K();z();var Hk=po(Cg(),1);J();K();z();var h_=po(Cg(),1);mh();J();K();z();var Qk=class{buf;pos;constructor(t=fe.alloc(UJ),r=0){this.buf=t,this.pos=r}writeTags(t){if(!Array.isArray(t))throw new Error("input must be array");let r=t.length,i;if(r)for(this.writeLong(r),i=0;i<r;i++){let n=t[i];if(typeof n?.name!="string"||typeof n?.value!="string")throw new Error(`Invalid tag format for ${n}, expected {name:string, value: string}`);this.writeString(n.name),this.writeString(n.value)}this.writeLong(0)}toBuffer(){let t=fe.alloc(this.pos);if(this.pos>this.buf.length)throw new Error(`Too many tag bytes (${this.pos} > ${this.buf.length})`);return this.buf.copy(t,0,0,this.pos),t}writeLong(t){let r=this.buf,i,n;if(t>=-1073741824&&t<1073741824){n=t>=0?t<<1:~t<<1|1;do r[this.pos]=n&127,n>>=7;while(n&&(r[this.pos++]|=128))}else{i=t>=0?t*2:-t*2-1;do r[this.pos]=i&127,i/=128;while(i>=1&&(r[this.pos++]|=128))}this.pos++,this.buf=r}writeString(t){let r=fe.byteLength(t),i=this.buf;this.writeLong(r);let n=this.pos;if(this.pos+=r,!(this.pos>i.length)){if(r>64)this.buf.write(t,this.pos-r,r,"utf8");else{let o,d,g,y;for(o=0,d=r;o<d;o++)g=t.charCodeAt(o),g<128?i[n++]=g:g<2048?(i[n++]=g>>6|192,i[n++]=g&63|128):(g&64512)===55296&&((y=t.charCodeAt(o+1))&64512)===56320?(g=65536+((g&1023)<<10)+(y&1023),o++,i[n++]=g>>18|240,i[n++]=g>>12&63|128,i[n++]=g>>6&63|128,i[n++]=g&63|128):(i[n++]=g>>12|224,i[n++]=g>>6&63|128,i[n++]=g&63|128)}this.buf=i}}readLong(){let t=0,r=0,i=this.buf,n,o,d,g;do n=i[this.pos++],o=n&128,t|=(n&127)<<r,r+=7;while(o&&r<28);if(o){d=t,g=268435456;do n=i[this.pos++],d+=(n&127)*g,g*=128;while(n&128);return(d%2?-(d+1):d)/2}return t>>1^-(t&1)}skipLong(){let t=this.buf;for(;t[this.pos++]&128;);}readTags(){let t=[],r;for(;r=this.readLong();)for(r<0&&(r=-r,this.skipLong());r--;){let i=this.readString(),n=this.readString();t.push({name:i,value:n})}return t}readString(){let t=this.readLong(),r=this.pos,i=this.buf;if(this.pos+=t,this.pos>i.length)throw new Error("TAP Position out of range");return this.buf.slice(r,r+t).toString()}};function dle(e){if(e?.length===0)return fe.allocUnsafe(0);let t=new Qk;return t.writeTags(e),t.toBuffer()}function CN(e){return new Qk(e).readTags()}IA();var QJ=80,UJ=4096,FJ=class e{binary;_id;constructor(t){this.binary=t}static isDataItem(t){return t.binary!==void 0}get signatureType(){let t=ld(this.binary.subarray(0,2));if(ko?.[t]!==void 0)return t;throw new Error("Unknown signature type: "+t)}async isValid(){return e.verify(this.binary)}get id(){return h_.default.encode(this.rawId)}set id(t){this._id=h_.default.toBuffer(t)}get rawId(){return vm("sha256").update(this.rawSignature).digest()}set rawId(t){this._id=t}get rawSignature(){return this.binary.subarray(2,2+this.signatureLength)}get signature(){return h_.default.encode(this.rawSignature)}set rawOwner(t){if(t.byteLength!=this.ownerLength)throw new Error(`Expected raw owner (pubkey) to be ${this.ownerLength} bytes, got ${t.byteLength} bytes.`);this.binary.set(t,2+this.signatureLength)}get rawOwner(){return this.binary.subarray(2+this.signatureLength,2+this.signatureLength+this.ownerLength)}get signatureLength(){return ps[this.signatureType].sigLength}get owner(){return h_.default.encode(this.rawOwner)}get ownerLength(){return ps[this.signatureType].pubLength}get rawTarget(){let t=this.getTargetStart();return this.binary[t]==1?this.binary.subarray(t+1,t+33):fe.alloc(0)}get target(){return h_.default.encode(this.rawTarget)}get rawAnchor(){let t=this.getAnchorStart();return this.binary[t]==1?this.binary.subarray(t+1,t+33):fe.alloc(0)}get anchor(){return h_.default.encode(this.rawAnchor)}get rawTags(){let t=this.getTagsStart(),r=ld(this.binary.subarray(t+8,t+16));return this.binary.subarray(t+16,t+16+r)}get tags(){let t=this.getTagsStart();if(ld(this.binary.subarray(t,t+8))==0)return[];let i=ld(this.binary.subarray(t+8,t+16));return CN(fe.from(this.binary.subarray(t+16,t+16+i)))}get tagsB64Url(){return this.tags.map(r=>({name:h_.default.encode(r.name),value:h_.default.encode(r.value)}))}getStartOfData(){let t=this.getTagsStart(),r=this.binary.subarray(t+8,t+16),i=ld(r);return t+16+i}get rawData(){let t=this.getTagsStart(),r=this.binary.subarray(t+8,t+16),i=ld(r),n=t+16+i;return this.binary.subarray(n,this.binary.length)}get data(){return h_.default.encode(this.rawData)}getRaw(){return this.binary}async sign(t){return this._id=await HJ(this,t),this.rawId}async setSignature(t){this.binary.set(t,2),this._id=fe.from(await Od().hash(t))}isSigned(){return(this._id?.length??0)>0}toJSON(){return{signature:this.signature,owner:this.owner,target:this.target,tags:this.tags.map(t=>({name:h_.default.encode(t.name),value:h_.default.encode(t.value)})),data:this.data}}static async verify(t){if(t.byteLength<QJ)return!1;let r=new e(t),i=r.signatureType,n=r.getTagsStart(),o=ld(t.subarray(n,n+8)),d=t.subarray(n+8,n+16),g=ld(d);if(g>UJ)return!1;if(o>0)try{if(CN(fe.from(t.subarray(n+16,n+16+g))).length!==o)return!1}catch{return!1}let y=Lk[i],_=await Uk(r);return await y.verify(r.rawOwner,_,r.rawSignature)}async getSignatureData(){return Uk(this)}getTagsStart(){let t=this.getTargetStart(),r=this.binary[t]==1,i=t+(r?33:1),n=this.binary[i]==1;return i+=n?33:1,i}getTargetStart(){return 2+this.signatureLength+this.ownerLength}getAnchorStart(){let t=this.getTargetStart()+1,r=this.binary[this.getTargetStart()]==1;return t+=r?32:0,t}},wN=FJ;IA();var Eb=32,GJ=class{length;items;binary;constructor(t){this.binary=t,this.length=this.getDataItemCount(),this.items=this.getItems()}getRaw(){return this.binary}get(t){if(typeof t=="number"){if(t>=this.length)throw new RangeError("Index out of range");return this.getByIndex(t)}else return this.getById(t)}getSizes(){let t=[];for(let r=Eb;r<Eb+64*this.length;r+=64)t.push(ld(this.binary.subarray(r,r+32)));return t}getIds(){let t=[];for(let r=Eb;r<Eb+64*this.length;r+=64){let i=this.binary.subarray(r+32,r+64);if(i.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");t.push(Hk.default.encode(i))}return t}getIdBy(t){if(t>this.length-1)throw new RangeError("Index of bundle out of range");let r=64+64*t;return Hk.default.encode(this.binary.subarray(r,r+32))}async toTransaction(t,r,i){let n=await r.createTransaction({data:this.binary,...t},i);return n.addTag("Bundle-Format","binary"),n.addTag("Bundle-Version","2.0.0"),n}async verify(){for(let t of this.items){let r=await t.isValid(),i=(0,Hk.default)(vm("sha256").update(t.rawSignature).digest());if(!(r&&t.id===i))return!1}return!0}getOffset(t){let r=0;for(let i=Eb;i<Eb+64*this.length;i+=64){let n=ld(this.binary.subarray(i,i+32));r+=n;let o=this.binary.subarray(i+32,i+64);if(fe.compare(o,t)===0)return{startOffset:r,size:n}}return{startOffset:-1,size:-1}}getByIndex(t){let r=0,i=this.getBundleStart(),n=0,o,d;for(let I=Eb;I<Eb+64*this.length;I+=64){if(o=ld(this.binary.subarray(I,I+32)),n++===t){d=this.binary.subarray(I+32,I+64);break}r+=o}let g=i+r,y=this.binary.subarray(g,g+o),_=new wN(y);return _.rawId=d,_}getById(t){let r=Hk.default.toBuffer(t),i=this.getOffset(r);if(i.startOffset===-1)throw new Error("Transaction not found");let o=this.getBundleStart()+i.startOffset;return new wN(this.binary.subarray(o,o+i.size))}getDataItemCount(){return ld(this.binary.subarray(0,32))}getBundleStart(){return 32+64*this.length}getItems(){let t=new Array(this.length),r=0,i=this.getBundleStart(),n=0;for(let o=Eb;o<Eb+64*this.length;o+=64){let d=ld(this.binary.subarray(o,o+32)),g=this.binary.subarray(o+32,o+64);if(g.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");let y=i+r,_=this.binary.subarray(y,y+d);r+=d;let I=new wN(_);I.rawId=g,t[n]=I,n++}return t}},fle=GJ;function ODt(e){return new fle(e)}async function NDt(e,t){let r=new Uint8Array(64*e.length),i=await Promise.all(e.map(async(o,d)=>{let g=o.isSigned()?o.rawId:await HJ(o,t),y=new Uint8Array(64);return y.set(LJ(o.getRaw().byteLength),0),y.set(g,32),r.set(y,64*d),o.getRaw()})).then(o=>fe.concat(o)),n=fe.concat([fe.from(LJ(e.length)),fe.from(r),i]);return new fle(n)}async function nXe(e,t){let r=await Uk(e),i=await t.sign(r),n=await Od().hash(i);return{signature:fe.from(i),id:fe.from(n)}}async function HJ(e,t){let{signature:r,id:i}=await nXe(e,t);return e.getRaw().set(r,2),i}J();K();z();var iXe=po(Cg(),1);function Gk(e,t,r){let i=t.publicKey,n=r?.target?iXe.default.toBuffer(r.target):null,o=1+(n?.byteLength??0),d=r?.anchor?fe.from(r.anchor):null,g=1+(d?.byteLength??0),y=(r?.tags?.length??0)>0?dle(r?.tags):null,_=16+(y?y.byteLength:0),I=typeof e=="string"?fe.from(e):fe.from(e),N=I.byteLength,T=2+t.signatureLength+t.ownerLength+o+g+_+N,M=fe.alloc(T);if(M.set(ule(t.signatureType),0),M.set(new Uint8Array(t.signatureLength).fill(0),2),i.byteLength!==t.ownerLength)throw new Error(`Owner must be ${t.ownerLength} bytes, but was incorrectly ${i.byteLength}`);M.set(i,2+t.signatureLength);let D=2+t.signatureLength+t.ownerLength;if(M[D]=n?1:0,n){if(n.byteLength!==32)throw new Error(`Target must be 32 bytes but was incorrectly ${n.byteLength}`);M.set(n,D+1)}let P=D+o,G=P+1;if(M[P]=d?1:0,d){if(G+=d.byteLength,d.byteLength!==32)throw new Error("Anchor must be 32 bytes");M.set(d,P+1)}M.set(PJ(r?.tags?.length??0),G);let q=PJ(y?.byteLength??0);M.set(q,G+8),y&&M.set(y,G+16);let Y=G+_;return M.set(I,Y),new wN(M)}J();K();z();J();K();z();var lle=class{signatureType;rawSignature;signature;signatureLength;rawOwner;owner;ownerLength;rawTarget;target;rawAnchor;anchor;rawTags;tags;rawData;data;static async verify(...t){throw new Error("You must implement `verify`")}};J();K();z();J();K();z();var gle={};gh(gle,{default:()=>BDt,processStream:()=>sXe,streamExportForTesting:()=>MDt,streamSigner:()=>TDt});J();K();z();qk();var tC=po(Cg(),1);IA();async function sXe(e){let t=cXe(e),r=(await t.next()).value;r=await OA(t,r,32);let i=ld(r.subarray(0,32));r=r.subarray(32);let n=64*i;r=await OA(t,r,n);let o=new Array(i);for(let y=0;y<n;y+=64)o[y/64]=[ld(r.subarray(y,y+32)),(0,tC.default)(fe.from(r.subarray(y+32,y+64)))];r=r.subarray(n);let d=32+n,g=[];for(let[y,_]of o){r=await OA(t,r,QJ),r=await OA(t,r,2);let I=ld(r.subarray(0,2));r=r.subarray(2);let{sigLength:N,pubLength:T,sigName:M}=ps[I];r=await OA(t,r,N);let D=r.subarray(0,N);r=r.subarray(N),r=await OA(t,r,T);let P=r.subarray(0,T);r=r.subarray(T),r=await OA(t,r,1);let G=r[0]===1;G&&(r=await OA(t,r,33));let q=G?r.subarray(1,33):fe.allocUnsafe(0);r=r.subarray(G?33:1),r=await OA(t,r,1);let Y=r[0]===1;Y&&(r=await OA(t,r,33));let ne=Y?r.subarray(1,33):fe.allocUnsafe(0);r=r.subarray(Y?33:1),r=await OA(t,r,8);let ce=ld(r.subarray(0,8));r=r.subarray(8),r=await OA(t,r,8);let le=ld(r.subarray(0,8));r=r.subarray(8),r=await OA(t,r,le);let pe=r.subarray(0,le),ae=ce!==0&&le!==0?CN(fe.from(pe)):[];if(ae.length!==ce)throw new Error("Tags lengths don't match");r=r.subarray(le);let W=new aXe;W._transform=function(A,m,E){this.push(A),E()};let se=rb([(0,js.stringToBuffer)("dataitem"),(0,js.stringToBuffer)("1"),(0,js.stringToBuffer)(I.toString()),P,q,ne,pe,W]),O=2+N+T+(G?33:1)+(Y?33:1)+16+le,s=y-O;if(r.byteLength>s)W.write(r.subarray(0,s)),r=r.subarray(s);else{let A=r.byteLength;for(W.write(r);s>A;){if(r=(await t.next()).value,!r)throw new Error(`Not enough data bytes expected: ${s} received: ${A}`);A+=r.byteLength,A>s?W.write(r.subarray(0,r.byteLength-(A-s))):W.write(r)}r=r.subarray(r.byteLength-(A-s))}if(W.end(),_!==(0,tC.default)(vm("sha256").update(D).digest()))throw new Error("ID doesn't match signature");if(!await Lk[I].verify(P,await se,D))throw new Error("Invalid signature");g.push({id:_,sigName:M,signature:(0,tC.default)(fe.from(D)),target:(0,tC.default)(fe.from(q)),anchor:(0,tC.default)(fe.from(ne)),owner:(0,tC.default)(fe.from(P)),tags:ae,dataOffset:d+O,dataSize:s}),d+=O+s}return g}async function TDt(e,t,r,i){let n=Gk("",r,i),o=new VJ,d=[(0,js.stringToBuffer)("dataitem"),(0,js.stringToBuffer)("1"),(0,js.stringToBuffer)(n.signatureType.toString()),n.rawOwner,n.rawTarget,n.rawAnchor,n.rawTags,e],g=await rb(d),y=fe.from(await r.sign(g));return n.setSignature(y),o.write(n.getRaw()),t.pipe(o)}async function OA(e,t,r){if(t.byteLength>=r)return t;let{done:i,value:n}=await e.next();if(i&&!n)throw new Error("Invalid buffer");return OA(e,fe.concat([fe.from(t),fe.from(n)]),r)}async function*cXe(e){for await(let t of e)yield t}var BDt=sXe,MDt={readBytes:OA,getReader:cXe};var DDt={...hle,stream:gle};globalThis.arbundles??=DDt;J();K();z();J();K();z();var kDt=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,_le=Math.ceil,p_=Math.floor,Bp="[BigNumber Error] ",uXe=Bp+"Number primitive has more than 15 significant digits: ",Lm=1e14,Ea=14,mle=9007199254740991,yle=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],tI=1e7,dl=1e9;function dXe(e){var t,r,i,n=Y.prototype={constructor:Y,toString:null,valueOf:null},o=new Y(1),d=20,g=4,y=-7,_=21,I=-1e7,N=1e7,T=!1,M=1,D=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},G="0123456789abcdefghijklmnopqrstuvwxyz",q=!0;function Y(W,se){var O,s,l,A,m,E,w,x,R=this;if(!(R instanceof Y))return new Y(W,se);if(se==null){if(W&&W._isBigNumber===!0){R.s=W.s,!W.c||W.e>N?R.c=R.e=null:W.e<I?R.c=[R.e=0]:(R.e=W.e,R.c=W.c.slice());return}if((E=typeof W=="number")&&W*0==0){if(R.s=1/W<0?(W=-W,-1):1,W===~~W){for(A=0,m=W;m>=10;m/=10,A++);A>N?R.c=R.e=null:(R.e=A,R.c=[W]);return}x=String(W)}else{if(!kDt.test(x=String(W)))return i(R,x,E);R.s=x.charCodeAt(0)==45?(x=x.slice(1),-1):1}(A=x.indexOf("."))>-1&&(x=x.replace(".","")),(m=x.search(/e/i))>0?(A<0&&(A=m),A+=+x.slice(m+1),x=x.substring(0,m)):A<0&&(A=x.length)}else{if(J0(se,2,G.length,"Base"),se==10&&q)return R=new Y(W),pe(R,d+R.e+1,g);if(x=String(W),E=typeof W=="number"){if(W*0!=0)return i(R,x,E,se);if(R.s=1/W<0?(x=x.slice(1),-1):1,Y.DEBUG&&x.replace(/^0\.0*|\./,"").length>15)throw Error(uXe+W)}else R.s=x.charCodeAt(0)===45?(x=x.slice(1),-1):1;for(O=G.slice(0,se),A=m=0,w=x.length;m<w;m++)if(O.indexOf(s=x.charAt(m))<0){if(s=="."){if(m>A){A=w;continue}}else if(!l&&(x==x.toUpperCase()&&(x=x.toLowerCase())||x==x.toLowerCase()&&(x=x.toUpperCase()))){l=!0,m=-1,A=0;continue}return i(R,String(W),E,se)}E=!1,x=r(x,se,10,R.s),(A=x.indexOf("."))>-1?x=x.replace(".",""):A=x.length}for(m=0;x.charCodeAt(m)===48;m++);for(w=x.length;x.charCodeAt(--w)===48;);if(x=x.slice(m,++w)){if(w-=m,E&&Y.DEBUG&&w>15&&(W>mle||W!==p_(W)))throw Error(uXe+R.s*W);if((A=A-m-1)>N)R.c=R.e=null;else if(A<I)R.c=[R.e=0];else{if(R.e=A,R.c=[],m=(A+1)%Ea,A<0&&(m+=Ea),m<w){for(m&&R.c.push(+x.slice(0,m)),w-=Ea;m<w;)R.c.push(+x.slice(m,m+=Ea));m=Ea-(x=x.slice(m)).length}else m-=w;for(;m--;x+="0");R.c.push(+x)}}else R.c=[R.e=0]}Y.clone=dXe,Y.ROUND_UP=0,Y.ROUND_DOWN=1,Y.ROUND_CEIL=2,Y.ROUND_FLOOR=3,Y.ROUND_HALF_UP=4,Y.ROUND_HALF_DOWN=5,Y.ROUND_HALF_EVEN=6,Y.ROUND_HALF_CEIL=7,Y.ROUND_HALF_FLOOR=8,Y.EUCLID=9,Y.config=Y.set=function(W){var se,O;if(W!=null)if(typeof W=="object"){if(W.hasOwnProperty(se="DECIMAL_PLACES")&&(O=W[se],J0(O,0,dl,se),d=O),W.hasOwnProperty(se="ROUNDING_MODE")&&(O=W[se],J0(O,0,8,se),g=O),W.hasOwnProperty(se="EXPONENTIAL_AT")&&(O=W[se],O&&O.pop?(J0(O[0],-dl,0,se),J0(O[1],0,dl,se),y=O[0],_=O[1]):(J0(O,-dl,dl,se),y=-(_=O<0?-O:O))),W.hasOwnProperty(se="RANGE"))if(O=W[se],O&&O.pop)J0(O[0],-dl,-1,se),J0(O[1],1,dl,se),I=O[0],N=O[1];else if(J0(O,-dl,dl,se),O)I=-(N=O<0?-O:O);else throw Error(Bp+se+" cannot be zero: "+O);if(W.hasOwnProperty(se="CRYPTO"))if(O=W[se],O===!!O)if(O)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=O;else throw T=!O,Error(Bp+"crypto unavailable");else T=O;else throw Error(Bp+se+" not true or false: "+O);if(W.hasOwnProperty(se="MODULO_MODE")&&(O=W[se],J0(O,0,9,se),M=O),W.hasOwnProperty(se="POW_PRECISION")&&(O=W[se],J0(O,0,dl,se),D=O),W.hasOwnProperty(se="FORMAT"))if(O=W[se],typeof O=="object")P=O;else throw Error(Bp+se+" not an object: "+O);if(W.hasOwnProperty(se="ALPHABET"))if(O=W[se],typeof O=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(O))q=O.slice(0,10)=="0123456789",G=O;else throw Error(Bp+se+" invalid: "+O)}else throw Error(Bp+"Object expected: "+W);return{DECIMAL_PLACES:d,ROUNDING_MODE:g,EXPONENTIAL_AT:[y,_],RANGE:[I,N],CRYPTO:T,MODULO_MODE:M,POW_PRECISION:D,FORMAT:P,ALPHABET:G}},Y.isBigNumber=function(W){if(!W||W._isBigNumber!==!0)return!1;if(!Y.DEBUG)return!0;var se,O,s=W.c,l=W.e,A=W.s;e:if({}.toString.call(s)=="[object Array]"){if((A===1||A===-1)&&l>=-dl&&l<=dl&&l===p_(l)){if(s[0]===0){if(l===0&&s.length===1)return!0;break e}if(se=(l+1)%Ea,se<1&&(se+=Ea),String(s[0]).length==se){for(se=0;se<s.length;se++)if(O=s[se],O<0||O>=Lm||O!==p_(O))break e;if(O!==0)return!0}}}else if(s===null&&l===null&&(A===null||A===1||A===-1))return!0;throw Error(Bp+"Invalid BigNumber: "+W)},Y.maximum=Y.max=function(){return ce(arguments,-1)},Y.minimum=Y.min=function(){return ce(arguments,1)},Y.random=(function(){var W=9007199254740992,se=Math.random()*W&2097151?function(){return p_(Math.random()*W)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(O){var s,l,A,m,E,w=0,x=[],R=new Y(o);if(O==null?O=d:J0(O,0,dl),m=_le(O/Ea),T)if(crypto.getRandomValues){for(s=crypto.getRandomValues(new Uint32Array(m*=2));w<m;)E=s[w]*131072+(s[w+1]>>>11),E>=9e15?(l=crypto.getRandomValues(new Uint32Array(2)),s[w]=l[0],s[w+1]=l[1]):(x.push(E%1e14),w+=2);w=m/2}else if(crypto.randomBytes){for(s=crypto.randomBytes(m*=7);w<m;)E=(s[w]&31)*281474976710656+s[w+1]*1099511627776+s[w+2]*4294967296+s[w+3]*16777216+(s[w+4]<<16)+(s[w+5]<<8)+s[w+6],E>=9e15?crypto.randomBytes(7).copy(s,w):(x.push(E%1e14),w+=7);w=m/7}else throw T=!1,Error(Bp+"crypto unavailable");if(!T)for(;w<m;)E=se(),E<9e15&&(x[w++]=E%1e14);for(m=x[--w],O%=Ea,m&&O&&(E=yle[Ea-O],x[w]=p_(m/E)*E);x[w]===0;x.pop(),w--);if(w<0)x=[A=0];else{for(A=-1;x[0]===0;x.splice(0,1),A-=Ea);for(w=1,E=x[0];E>=10;E/=10,w++);w<Ea&&(A-=Ea-w)}return R.e=A,R.c=x,R}})(),Y.sum=function(){for(var W=1,se=arguments,O=new Y(se[0]);W<se.length;)O=O.plus(se[W++]);return O},r=(function(){var W="0123456789";function se(O,s,l,A){for(var m,E=[0],w,x=0,R=O.length;x<R;){for(w=E.length;w--;E[w]*=s);for(E[0]+=A.indexOf(O.charAt(x++)),m=0;m<E.length;m++)E[m]>l-1&&(E[m+1]==null&&(E[m+1]=0),E[m+1]+=E[m]/l|0,E[m]%=l)}return E.reverse()}return function(O,s,l,A,m){var E,w,x,R,u,C,U,F,X=O.indexOf("."),Ae=d,he=g;for(X>=0&&(R=D,D=0,O=O.replace(".",""),F=new Y(s),C=F.pow(O.length-X),D=R,F.c=se(tR(A_(C.c),C.e,"0"),10,l,W),F.e=F.c.length),U=se(O,s,l,m?(E=G,W):(E=W,G)),x=R=U.length;U[--R]==0;U.pop());if(!U[0])return E.charAt(0);if(X<0?--x:(C.c=U,C.e=x,C.s=A,C=t(C,F,Ae,he,l),U=C.c,u=C.r,x=C.e),w=x+Ae+1,X=U[w],R=l/2,u=u||w<0||U[w+1]!=null,u=he<4?(X!=null||u)&&(he==0||he==(C.s<0?3:2)):X>R||X==R&&(he==4||u||he==6&&U[w-1]&1||he==(C.s<0?8:7)),w<1||!U[0])O=u?tR(E.charAt(1),-Ae,E.charAt(0)):E.charAt(0);else{if(U.length=w,u)for(--l;++U[--w]>l;)U[w]=0,w||(++x,U=[1].concat(U));for(R=U.length;!U[--R];);for(X=0,O="";X<=R;O+=E.charAt(U[X++]));O=tR(O,x,E.charAt(0))}return O}})(),t=(function(){function W(s,l,A){var m,E,w,x,R=0,u=s.length,C=l%tI,U=l/tI|0;for(s=s.slice();u--;)w=s[u]%tI,x=s[u]/tI|0,m=U*w+x*C,E=C*w+m%tI*tI+R,R=(E/A|0)+(m/tI|0)+U*x,s[u]=E%A;return R&&(s=[R].concat(s)),s}function se(s,l,A,m){var E,w;if(A!=m)w=A>m?1:-1;else for(E=w=0;E<A;E++)if(s[E]!=l[E]){w=s[E]>l[E]?1:-1;break}return w}function O(s,l,A,m){for(var E=0;A--;)s[A]-=E,E=s[A]<l[A]?1:0,s[A]=E*m+s[A]-l[A];for(;!s[0]&&s.length>1;s.splice(0,1));}return function(s,l,A,m,E){var w,x,R,u,C,U,F,X,Ae,he,$e,Ge,Re,Se,ct,ze,te,Ue=s.s==l.s?1:-1,oe=s.c,ge=l.c;if(!oe||!oe[0]||!ge||!ge[0])return new Y(!s.s||!l.s||(oe?ge&&oe[0]==ge[0]:!ge)?NaN:oe&&oe[0]==0||!ge?Ue*0:Ue/0);for(X=new Y(Ue),Ae=X.c=[],x=s.e-l.e,Ue=A+x+1,E||(E=Lm,x=g_(s.e/Ea)-g_(l.e/Ea),Ue=Ue/Ea|0),R=0;ge[R]==(oe[R]||0);R++);if(ge[R]>(oe[R]||0)&&x--,Ue<0)Ae.push(1),u=!0;else{for(Se=oe.length,ze=ge.length,R=0,Ue+=2,C=p_(E/(ge[0]+1)),C>1&&(ge=W(ge,C,E),oe=W(oe,C,E),ze=ge.length,Se=oe.length),Re=ze,he=oe.slice(0,ze),$e=he.length;$e<ze;he[$e++]=0);te=ge.slice(),te=[0].concat(te),ct=ge[0],ge[1]>=E/2&&ct++;do{if(C=0,w=se(ge,he,ze,$e),w<0){if(Ge=he[0],ze!=$e&&(Ge=Ge*E+(he[1]||0)),C=p_(Ge/ct),C>1)for(C>=E&&(C=E-1),U=W(ge,C,E),F=U.length,$e=he.length;se(U,he,F,$e)==1;)C--,O(U,ze<F?te:ge,F,E),F=U.length,w=1;else C==0&&(w=C=1),U=ge.slice(),F=U.length;if(F<$e&&(U=[0].concat(U)),O(he,U,$e,E),$e=he.length,w==-1)for(;se(ge,he,ze,$e)<1;)C++,O(he,ze<$e?te:ge,$e,E),$e=he.length}else w===0&&(C++,he=[0]);Ae[R++]=C,he[0]?he[$e++]=oe[Re]||0:(he=[oe[Re]],$e=1)}while((Re++<Se||he[0]!=null)&&Ue--);u=he[0]!=null,Ae[0]||Ae.splice(0,1)}if(E==Lm){for(R=1,Ue=Ae[0];Ue>=10;Ue/=10,R++);pe(X,A+(X.e=R+x*Ea-1)+1,m,u)}else X.e=x,X.r=+u;return X}})();function ne(W,se,O,s){var l,A,m,E,w;if(O==null?O=g:J0(O,0,8),!W.c)return W.toString();if(l=W.c[0],m=W.e,se==null)w=A_(W.c),w=s==1||s==2&&(m<=y||m>=_)?zJ(w,m):tR(w,m,"0");else if(W=pe(new Y(W),se,O),A=W.e,w=A_(W.c),E=w.length,s==1||s==2&&(se<=A||A<=y)){for(;E<se;w+="0",E++);w=zJ(w,A)}else if(se-=m,w=tR(w,A,"0"),A+1>E){if(--se>0)for(w+=".";se--;w+="0");}else if(se+=A-E,se>0)for(A+1==E&&(w+=".");se--;w+="0");return W.s<0&&l?"-"+w:w}function ce(W,se){for(var O,s,l=1,A=new Y(W[0]);l<W.length;l++)s=new Y(W[l]),(!s.s||(O=rC(A,s))===se||O===0&&A.s===se)&&(A=s);return A}function le(W,se,O){for(var s=1,l=se.length;!se[--l];se.pop());for(l=se[0];l>=10;l/=10,s++);return(O=s+O*Ea-1)>N?W.c=W.e=null:O<I?W.c=[W.e=0]:(W.e=O,W.c=se),W}i=(function(){var W=/^(-?)0([xbo])(?=\w[\w.]*$)/i,se=/^([^.]+)\.$/,O=/^\.([^.]+)$/,s=/^-?(Infinity|NaN)$/,l=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(A,m,E,w){var x,R=E?m:m.replace(l,"");if(s.test(R))A.s=isNaN(R)?null:R<0?-1:1;else{if(!E&&(R=R.replace(W,function(u,C,U){return x=(U=U.toLowerCase())=="x"?16:U=="b"?2:8,!w||w==x?C:u}),w&&(x=w,R=R.replace(se,"$1").replace(O,"0.$1")),m!=R))return new Y(R,x);if(Y.DEBUG)throw Error(Bp+"Not a"+(w?" base "+w:"")+" number: "+m);A.s=null}A.c=A.e=null}})();function pe(W,se,O,s){var l,A,m,E,w,x,R,u=W.c,C=yle;if(u){e:{for(l=1,E=u[0];E>=10;E/=10,l++);if(A=se-l,A<0)A+=Ea,m=se,w=u[x=0],R=p_(w/C[l-m-1]%10);else if(x=_le((A+1)/Ea),x>=u.length)if(s){for(;u.length<=x;u.push(0));w=R=0,l=1,A%=Ea,m=A-Ea+1}else break e;else{for(w=E=u[x],l=1;E>=10;E/=10,l++);A%=Ea,m=A-Ea+l,R=m<0?0:p_(w/C[l-m-1]%10)}if(s=s||se<0||u[x+1]!=null||(m<0?w:w%C[l-m-1]),s=O<4?(R||s)&&(O==0||O==(W.s<0?3:2)):R>5||R==5&&(O==4||s||O==6&&(A>0?m>0?w/C[l-m]:0:u[x-1])%10&1||O==(W.s<0?8:7)),se<1||!u[0])return u.length=0,s?(se-=W.e+1,u[0]=C[(Ea-se%Ea)%Ea],W.e=-se||0):u[0]=W.e=0,W;if(A==0?(u.length=x,E=1,x--):(u.length=x+1,E=C[Ea-A],u[x]=m>0?p_(w/C[l-m]%C[m])*E:0),s)for(;;)if(x==0){for(A=1,m=u[0];m>=10;m/=10,A++);for(m=u[0]+=E,E=1;m>=10;m/=10,E++);A!=E&&(W.e++,u[0]==Lm&&(u[0]=1));break}else{if(u[x]+=E,u[x]!=Lm)break;u[x--]=0,E=1}for(A=u.length;u[--A]===0;u.pop());}W.e>N?W.c=W.e=null:W.e<I&&(W.c=[W.e=0])}return W}function ae(W){var se,O=W.e;return O===null?W.toString():(se=A_(W.c),se=O<=y||O>=_?zJ(se,O):tR(se,O,"0"),W.s<0?"-"+se:se)}return n.absoluteValue=n.abs=function(){var W=new Y(this);return W.s<0&&(W.s=1),W},n.comparedTo=function(W,se){return rC(this,new Y(W,se))},n.decimalPlaces=n.dp=function(W,se){var O,s,l,A=this;if(W!=null)return J0(W,0,dl),se==null?se=g:J0(se,0,8),pe(new Y(A),W+A.e+1,se);if(!(O=A.c))return null;if(s=((l=O.length-1)-g_(this.e/Ea))*Ea,l=O[l])for(;l%10==0;l/=10,s--);return s<0&&(s=0),s},n.dividedBy=n.div=function(W,se){return t(this,new Y(W,se),d,g)},n.dividedToIntegerBy=n.idiv=function(W,se){return t(this,new Y(W,se),0,1)},n.exponentiatedBy=n.pow=function(W,se){var O,s,l,A,m,E,w,x,R,u=this;if(W=new Y(W),W.c&&!W.isInteger())throw Error(Bp+"Exponent not an integer: "+ae(W));if(se!=null&&(se=new Y(se)),E=W.e>14,!u.c||!u.c[0]||u.c[0]==1&&!u.e&&u.c.length==1||!W.c||!W.c[0])return R=new Y(Math.pow(+ae(u),E?W.s*(2-JJ(W)):+ae(W))),se?R.mod(se):R;if(w=W.s<0,se){if(se.c?!se.c[0]:!se.s)return new Y(NaN);s=!w&&u.isInteger()&&se.isInteger(),s&&(u=u.mod(se))}else{if(W.e>9&&(u.e>0||u.e<-1||(u.e==0?u.c[0]>1||E&&u.c[1]>=24e7:u.c[0]<8e13||E&&u.c[0]<=9999975e7)))return A=u.s<0&&JJ(W)?-0:0,u.e>-1&&(A=1/A),new Y(w?1/A:A);D&&(A=_le(D/Ea+2))}for(E?(O=new Y(.5),w&&(W.s=1),x=JJ(W)):(l=Math.abs(+ae(W)),x=l%2),R=new Y(o);;){if(x){if(R=R.times(u),!R.c)break;A?R.c.length>A&&(R.c.length=A):s&&(R=R.mod(se))}if(l){if(l=p_(l/2),l===0)break;x=l%2}else if(W=W.times(O),pe(W,W.e+1,1),W.e>14)x=JJ(W);else{if(l=+ae(W),l===0)break;x=l%2}u=u.times(u),A?u.c&&u.c.length>A&&(u.c.length=A):s&&(u=u.mod(se))}return s?R:(w&&(R=o.div(R)),se?R.mod(se):A?pe(R,D,g,m):R)},n.integerValue=function(W){var se=new Y(this);return W==null?W=g:J0(W,0,8),pe(se,se.e+1,W)},n.isEqualTo=n.eq=function(W,se){return rC(this,new Y(W,se))===0},n.isFinite=function(){return!!this.c},n.isGreaterThan=n.gt=function(W,se){return rC(this,new Y(W,se))>0},n.isGreaterThanOrEqualTo=n.gte=function(W,se){return(se=rC(this,new Y(W,se)))===1||se===0},n.isInteger=function(){return!!this.c&&g_(this.e/Ea)>this.c.length-2},n.isLessThan=n.lt=function(W,se){return rC(this,new Y(W,se))<0},n.isLessThanOrEqualTo=n.lte=function(W,se){return(se=rC(this,new Y(W,se)))===-1||se===0},n.isNaN=function(){return!this.s},n.isNegative=function(){return this.s<0},n.isPositive=function(){return this.s>0},n.isZero=function(){return!!this.c&&this.c[0]==0},n.minus=function(W,se){var O,s,l,A,m=this,E=m.s;if(W=new Y(W,se),se=W.s,!E||!se)return new Y(NaN);if(E!=se)return W.s=-se,m.plus(W);var w=m.e/Ea,x=W.e/Ea,R=m.c,u=W.c;if(!w||!x){if(!R||!u)return R?(W.s=-se,W):new Y(u?m:NaN);if(!R[0]||!u[0])return u[0]?(W.s=-se,W):new Y(R[0]?m:g==3?-0:0)}if(w=g_(w),x=g_(x),R=R.slice(),E=w-x){for((A=E<0)?(E=-E,l=R):(x=w,l=u),l.reverse(),se=E;se--;l.push(0));l.reverse()}else for(s=(A=(E=R.length)<(se=u.length))?E:se,E=se=0;se<s;se++)if(R[se]!=u[se]){A=R[se]<u[se];break}if(A&&(l=R,R=u,u=l,W.s=-W.s),se=(s=u.length)-(O=R.length),se>0)for(;se--;R[O++]=0);for(se=Lm-1;s>E;){if(R[--s]<u[s]){for(O=s;O&&!R[--O];R[O]=se);--R[O],R[s]+=Lm}R[s]-=u[s]}for(;R[0]==0;R.splice(0,1),--x);return R[0]?le(W,R,x):(W.s=g==3?-1:1,W.c=[W.e=0],W)},n.modulo=n.mod=function(W,se){var O,s,l=this;return W=new Y(W,se),!l.c||!W.s||W.c&&!W.c[0]?new Y(NaN):!W.c||l.c&&!l.c[0]?new Y(l):(M==9?(s=W.s,W.s=1,O=t(l,W,0,3),W.s=s,O.s*=s):O=t(l,W,0,M),W=l.minus(O.times(W)),!W.c[0]&&M==1&&(W.s=l.s),W)},n.multipliedBy=n.times=function(W,se){var O,s,l,A,m,E,w,x,R,u,C,U,F,X,Ae,he=this,$e=he.c,Ge=(W=new Y(W,se)).c;if(!$e||!Ge||!$e[0]||!Ge[0])return!he.s||!W.s||$e&&!$e[0]&&!Ge||Ge&&!Ge[0]&&!$e?W.c=W.e=W.s=null:(W.s*=he.s,!$e||!Ge?W.c=W.e=null:(W.c=[0],W.e=0)),W;for(s=g_(he.e/Ea)+g_(W.e/Ea),W.s*=he.s,w=$e.length,u=Ge.length,w<u&&(F=$e,$e=Ge,Ge=F,l=w,w=u,u=l),l=w+u,F=[];l--;F.push(0));for(X=Lm,Ae=tI,l=u;--l>=0;){for(O=0,C=Ge[l]%Ae,U=Ge[l]/Ae|0,m=w,A=l+m;A>l;)x=$e[--m]%Ae,R=$e[m]/Ae|0,E=U*x+R*C,x=C*x+E%Ae*Ae+F[A]+O,O=(x/X|0)+(E/Ae|0)+U*R,F[A--]=x%X;F[A]=O}return O?++s:F.splice(0,1),le(W,F,s)},n.negated=function(){var W=new Y(this);return W.s=-W.s||null,W},n.plus=function(W,se){var O,s=this,l=s.s;if(W=new Y(W,se),se=W.s,!l||!se)return new Y(NaN);if(l!=se)return W.s=-se,s.minus(W);var A=s.e/Ea,m=W.e/Ea,E=s.c,w=W.c;if(!A||!m){if(!E||!w)return new Y(l/0);if(!E[0]||!w[0])return w[0]?W:new Y(E[0]?s:l*0)}if(A=g_(A),m=g_(m),E=E.slice(),l=A-m){for(l>0?(m=A,O=w):(l=-l,O=E),O.reverse();l--;O.push(0));O.reverse()}for(l=E.length,se=w.length,l-se<0&&(O=w,w=E,E=O,se=l),l=0;se;)l=(E[--se]=E[se]+w[se]+l)/Lm|0,E[se]=Lm===E[se]?0:E[se]%Lm;return l&&(E=[l].concat(E),++m),le(W,E,m)},n.precision=n.sd=function(W,se){var O,s,l,A=this;if(W!=null&&W!==!!W)return J0(W,1,dl),se==null?se=g:J0(se,0,8),pe(new Y(A),W,se);if(!(O=A.c))return null;if(l=O.length-1,s=l*Ea+1,l=O[l]){for(;l%10==0;l/=10,s--);for(l=O[0];l>=10;l/=10,s++);}return W&&A.e+1>s&&(s=A.e+1),s},n.shiftedBy=function(W){return J0(W,-mle,mle),this.times("1e"+W)},n.squareRoot=n.sqrt=function(){var W,se,O,s,l,A=this,m=A.c,E=A.s,w=A.e,x=d+4,R=new Y("0.5");if(E!==1||!m||!m[0])return new Y(!E||E<0&&(!m||m[0])?NaN:m?A:1/0);if(E=Math.sqrt(+ae(A)),E==0||E==1/0?(se=A_(m),(se.length+w)%2==0&&(se+="0"),E=Math.sqrt(+se),w=g_((w+1)/2)-(w<0||w%2),E==1/0?se="5e"+w:(se=E.toExponential(),se=se.slice(0,se.indexOf("e")+1)+w),O=new Y(se)):O=new Y(E+""),O.c[0]){for(w=O.e,E=w+x,E<3&&(E=0);;)if(l=O,O=R.times(l.plus(t(A,l,x,1))),A_(l.c).slice(0,E)===(se=A_(O.c)).slice(0,E))if(O.e<w&&--E,se=se.slice(E-3,E+1),se=="9999"||!s&&se=="4999"){if(!s&&(pe(l,l.e+d+2,0),l.times(l).eq(A))){O=l;break}x+=4,E+=4,s=1}else{(!+se||!+se.slice(1)&&se.charAt(0)=="5")&&(pe(O,O.e+d+2,1),W=!O.times(O).eq(A));break}}return pe(O,O.e+d+1,g,W)},n.toExponential=function(W,se){return W!=null&&(J0(W,0,dl),W++),ne(this,W,se,1)},n.toFixed=function(W,se){return W!=null&&(J0(W,0,dl),W=W+this.e+1),ne(this,W,se)},n.toFormat=function(W,se,O){var s,l=this;if(O==null)W!=null&&se&&typeof se=="object"?(O=se,se=null):W&&typeof W=="object"?(O=W,W=se=null):O=P;else if(typeof O!="object")throw Error(Bp+"Argument not an object: "+O);if(s=l.toFixed(W,se),l.c){var A,m=s.split("."),E=+O.groupSize,w=+O.secondaryGroupSize,x=O.groupSeparator||"",R=m[0],u=m[1],C=l.s<0,U=C?R.slice(1):R,F=U.length;if(w&&(A=E,E=w,w=A,F-=A),E>0&&F>0){for(A=F%E||E,R=U.substr(0,A);A<F;A+=E)R+=x+U.substr(A,E);w>0&&(R+=x+U.slice(A)),C&&(R="-"+R)}s=u?R+(O.decimalSeparator||"")+((w=+O.fractionGroupSize)?u.replace(new RegExp("\\d{"+w+"}\\B","g"),"$&"+(O.fractionGroupSeparator||"")):u):R}return(O.prefix||"")+s+(O.suffix||"")},n.toFraction=function(W){var se,O,s,l,A,m,E,w,x,R,u,C,U=this,F=U.c;if(W!=null&&(E=new Y(W),!E.isInteger()&&(E.c||E.s!==1)||E.lt(o)))throw Error(Bp+"Argument "+(E.isInteger()?"out of range: ":"not an integer: ")+ae(E));if(!F)return new Y(U);for(se=new Y(o),x=O=new Y(o),s=w=new Y(o),C=A_(F),A=se.e=C.length-U.e-1,se.c[0]=yle[(m=A%Ea)<0?Ea+m:m],W=!W||E.comparedTo(se)>0?A>0?se:x:E,m=N,N=1/0,E=new Y(C),w.c[0]=0;R=t(E,se,0,1),l=O.plus(R.times(s)),l.comparedTo(W)!=1;)O=s,s=l,x=w.plus(R.times(l=x)),w=l,se=E.minus(R.times(l=se)),E=l;return l=t(W.minus(O),s,0,1),w=w.plus(l.times(x)),O=O.plus(l.times(s)),w.s=x.s=U.s,A=A*2,u=t(x,s,A,g).minus(U).abs().comparedTo(t(w,O,A,g).minus(U).abs())<1?[x,s]:[w,O],N=m,u},n.toNumber=function(){return+ae(this)},n.toPrecision=function(W,se){return W!=null&&J0(W,1,dl),ne(this,W,se,2)},n.toString=function(W){var se,O=this,s=O.s,l=O.e;return l===null?s?(se="Infinity",s<0&&(se="-"+se)):se="NaN":(W==null?se=l<=y||l>=_?zJ(A_(O.c),l):tR(A_(O.c),l,"0"):W===10&&q?(O=pe(new Y(O),d+l+1,g),se=tR(A_(O.c),O.e,"0")):(J0(W,2,G.length,"Base"),se=r(tR(A_(O.c),l,"0"),10,W,s,!0)),s<0&&O.c[0]&&(se="-"+se)),se},n.valueOf=n.toJSON=function(){return ae(this)},n._isBigNumber=!0,n[Symbol.toStringTag]="BigNumber",n[Symbol.for("nodejs.util.inspect.custom")]=n.valueOf,e!=null&&Y.set(e),Y}function g_(e){var t=e|0;return e>0||e===t?t:t-1}function A_(e){for(var t,r,i=1,n=e.length,o=e[0]+"";i<n;){for(t=e[i++]+"",r=Ea-t.length;r--;t="0"+t);o+=t}for(n=o.length;o.charCodeAt(--n)===48;);return o.slice(0,n+1||1)}function rC(e,t){var r,i,n=e.c,o=t.c,d=e.s,g=t.s,y=e.e,_=t.e;if(!d||!g)return null;if(r=n&&!n[0],i=o&&!o[0],r||i)return r?i?0:-g:d;if(d!=g)return d;if(r=d<0,i=y==_,!n||!o)return i?0:!n^r?1:-1;if(!i)return y>_^r?1:-1;for(g=(y=n.length)<(_=o.length)?y:_,d=0;d<g;d++)if(n[d]!=o[d])return n[d]>o[d]^r?1:-1;return y==_?0:y>_^r?1:-1}function J0(e,t,r,i){if(e<t||e>r||e!==p_(e))throw Error(Bp+(i||"Argument")+(typeof e=="number"?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function JJ(e){var t=e.c.length-1;return g_(e.e/Ea)==t&&e.c[t]%2!=0}function zJ(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function tR(e,t,r){var i,n;if(t<0){for(n=r+".";++t;n+=r);e=n+e}else if(i=e.length,++t>i){for(n=r,t-=i;--t;n+=r);e+=n}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Qa=dXe(),fXe=Qa;var PDt=["usd","eur","gbp","cad","aud","jpy","inr","sgd","hkd","brl"];function OFn(e){return PDt.includes(e)}var KJ=["arweave","ario","base-ario","solana","ethereum","kyve","matic","pol","base-eth","usdc","base-usdc","polygon-usdc"],lXe=new Set(["ethereum","base-eth","matic","pol","polygon-usdc","usdc","base-usdc","base-ario"]),Vk=class{},Jk=class{constructor({maxTokenAmount:t,topUpBufferMultiplier:r=1.1}){if(t!==void 0&&new Qa(t).isLessThan(0))throw new Error("maxTokenAmount must be non-negative");if(this.maxTokenAmount=t!==void 0?new Qa(t):void 0,r<1)throw new Error("topUpBufferMultiplier must be >= 1");this.topUpBufferMultiplier=r}},nC=class{constructor({signer:t,maxMUSDCAmount:r}){this.signer=t,this.maxMUSDCAmount=r!==void 0?new Qa(r):void 0}},NFn=["ASSEMBLING","VALIDATING","FINALIZING"],hXe=["UNDERFUNDED","INVALID","APPROVAL_FAILED","REVOKE_FAILED"],xFn=["FINALIZED"],TFn=e=>e.folderPath!==void 0,AXe=e=>e.files!==void 0;function pXe(e){return typeof e=="string"}function gXe(e){return typeof e!="string"?!1:e.startsWith("0x")}var _Xe=e=>e.kty!==void 0;function zk(e){return"publicKey"in e&&"signMessage"in e}function ON(e){return"getSigner"in e}var ble=["force","disabled","auto"];J();K();z();J();K();z();var $J="1.40.0";var ku=class e{constructor({level:t="info"}={}){this.level="info";this.levels={debug:0,info:1,warn:2,error:3,none:999};this.level=t}static{this.default=new e}formatMessage(t,r,...i){let o={timestamp:new Date().toISOString(),level:t,message:r,name:"turbo-sdk",version:$J};return i.length>0?JSON.stringify({...o,args:i}):JSON.stringify(o)}log(t,r,...i){if(this.levels[t]<this.levels[this.level])return;let n=this.formatMessage(t,r,...i);switch(t){case"debug":console.debug(n);break;case"info":console.info(n);break;case"warn":console.warn(n);break;case"error":console.error(n);break}}info(t,...r){this.log("info",t,...r)}warn(t,...r){this.log("warn",t,...r)}error(t,...r){this.log("error",t,...r)}debug(t,...r){this.log("debug",t,...r)}setLogLevel(t){this.level=t}};J();K();z();J();K();z();var Yst=po(R_(),1),Wst=po($l(),1),Ner=po(Ps(),1);J();K();z();mh();J();K();z();ox();Up();J();K();z();J();K();z();Up();Up();var tAe=BigInt(0),eAe=BigInt(1);function dR(e,t=""){if(typeof e!="boolean"){let r=t&&`"${t}"`;throw new Error(r+"expected boolean, got type="+typeof e)}return e}function W1(e,t,r=""){let i=sR(e),n=e?.length,o=t!==void 0;if(!i||o&&n!==t){let d=r&&`"${r}" `,g=o?` of length ${t}`:"",y=i?`length=${n}`:`type=${typeof e}`;throw new Error(d+"expected Uint8Array"+g+", got "+y)}return e}function wP(e){let t=e.toString(16);return t.length&1?"0"+t:t}function Jtt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?tAe:BigInt("0x"+e)}function ax(e){return Jtt(C_(e))}function fR(e){return Yl(e),Jtt(C_(Uint8Array.from(e).reverse()))}function uK(e,t){return _C(e.toString(16).padStart(t*2,"0"))}function rAe(e,t){return uK(e,t).reverse()}function du(e,t,r){let i;if(typeof t=="string")try{i=_C(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(sR(t))i=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");let n=i.length;if(typeof r=="number"&&n!==r)throw new Error(e+" of length "+r+" expected, got "+n);return i}function ztt(e,t){if(e.length!==t.length)return!1;let r=0;for(let i=0;i<e.length;i++)r|=e[i]^t[i];return r===0}function nAe(e){return Uint8Array.from(e)}var jhe=e=>typeof e=="bigint"&&tAe<=e;function Ktt(e,t,r){return jhe(e)&&jhe(t)&&jhe(r)&&t<=e&&e<r}function OP(e,t,r,i){if(!Ktt(t,r,i))throw new Error("expected valid "+e+": "+r+" <= n < "+i+", got "+t)}function dK(e){let t;for(t=0;e>tAe;e>>=eAe,t+=1);return t}var _I=e=>(eAe<<BigInt(e))-eAe;function $tt(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=M=>new Uint8Array(M),n=M=>Uint8Array.of(M),o=i(e),d=i(e),g=0,y=()=>{o.fill(1),d.fill(0),g=0},_=(...M)=>r(d,o,...M),I=(M=i(0))=>{d=_(n(0),M),o=_(),M.length!==0&&(d=_(n(1),M),o=_())},N=()=>{if(g++>=1e3)throw new Error("drbg: tried 1000 values");let M=0,D=[];for(;M<t;){o=_();let P=o.slice();D.push(P),M+=o.length}return Qf(...D)};return(M,D)=>{y(),I(M);let P;for(;!(P=D(N()));)I();return y(),P}}function mI(e,t,r={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function i(n,o,d){let g=e[n];if(d&&g===void 0)return;let y=typeof g;if(y!==o||g===null)throw new Error(`param "${n}" is invalid: expected ${o}, got ${y}`)}Object.entries(t).forEach(([n,o])=>i(n,o,!1)),Object.entries(r).forEach(([n,o])=>i(n,o,!0))}var iAe=()=>{throw new Error("not implemented")};function sx(e){let t=new WeakMap;return(r,...i)=>{let n=t.get(r);if(n!==void 0)return n;let o=e(r,...i);return t.set(r,o),o}}J();K();z();var DA=BigInt(0),hl=BigInt(1),EC=BigInt(2),Xtt=BigInt(3),Ztt=BigInt(4),jtt=BigInt(5),sGt=BigInt(7),ert=BigInt(8),cGt=BigInt(9),trt=BigInt(16);function hd(e,t){let r=e%t;return r>=DA?r:t+r}function y0(e,t,r){let i=e;for(;t-- >DA;)i*=i,i%=r;return i}function Ytt(e,t){if(e===DA)throw new Error("invert: expected non-zero number");if(t<=DA)throw new Error("invert: expected positive modulus, got "+t);let r=hd(e,t),i=t,n=DA,o=hl,d=hl,g=DA;for(;r!==DA;){let _=i/r,I=i%r,N=n-d*_,T=o-g*_;i=r,r=I,n=d,o=g,d=N,g=T}if(i!==hl)throw new Error("invert: does not exist");return hd(n,t)}function oAe(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}function rrt(e,t){let r=(e.ORDER+hl)/Ztt,i=e.pow(t,r);return oAe(e,i,t),i}function uGt(e,t){let r=(e.ORDER-jtt)/ert,i=e.mul(t,EC),n=e.pow(i,r),o=e.mul(t,n),d=e.mul(e.mul(o,EC),n),g=e.mul(o,e.sub(d,e.ONE));return oAe(e,g,t),g}function dGt(e){let t=X1(e),r=nrt(e),i=r(t,t.neg(t.ONE)),n=r(t,i),o=r(t,t.neg(i)),d=(e+sGt)/trt;return(g,y)=>{let _=g.pow(y,d),I=g.mul(_,i),N=g.mul(_,n),T=g.mul(_,o),M=g.eql(g.sqr(I),y),D=g.eql(g.sqr(N),y);_=g.cmov(_,I,M),I=g.cmov(T,N,D);let P=g.eql(g.sqr(I),y),G=g.cmov(_,I,P);return oAe(g,G,y),G}}function nrt(e){if(e<Xtt)throw new Error("sqrt is not defined for small field");let t=e-hl,r=0;for(;t%EC===DA;)t/=EC,r++;let i=EC,n=X1(e);for(;Wtt(n,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return rrt;let o=n.pow(i,t),d=(t+hl)/EC;return function(y,_){if(y.is0(_))return _;if(Wtt(y,_)!==1)throw new Error("Cannot find square root");let I=r,N=y.mul(y.ONE,o),T=y.pow(_,t),M=y.pow(_,d);for(;!y.eql(T,y.ONE);){if(y.is0(T))return y.ZERO;let D=1,P=y.sqr(T);for(;!y.eql(P,y.ONE);)if(D++,P=y.sqr(P),D===I)throw new Error("Cannot find square root");let G=hl<<BigInt(I-D-1),q=y.pow(N,G);I=D,N=y.sqr(q),T=y.mul(T,N),M=y.mul(M,q)}return M}}function fGt(e){return e%Ztt===Xtt?rrt:e%ert===jtt?uGt:e%trt===cGt?dGt(e):nrt(e)}var lR=(e,t)=>(hd(e,t)&hl)===hl,lGt=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function aAe(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=lGt.reduce((i,n)=>(i[n]="function",i),t);return mI(e,r),e}function hGt(e,t,r){if(r<DA)throw new Error("invalid exponent, negatives unsupported");if(r===DA)return e.ONE;if(r===hl)return t;let i=e.ONE,n=t;for(;r>DA;)r&hl&&(i=e.mul(i,n)),n=e.sqr(n),r>>=hl;return i}function NP(e,t,r=!1){let i=new Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((d,g,y)=>e.is0(g)?d:(i[y]=d,e.mul(d,g)),e.ONE),o=e.inv(n);return t.reduceRight((d,g,y)=>e.is0(g)?d:(i[y]=e.mul(d,i[y]),e.mul(d,g)),o),i}function Wtt(e,t){let r=(e.ORDER-hl)/EC,i=e.pow(t,r),n=e.eql(i,e.ONE),o=e.eql(i,e.ZERO),d=e.eql(i,e.neg(e.ONE));if(!n&&!o&&!d)throw new Error("invalid Legendre symbol result");return n?1:o?0:-1}function fK(e,t){t!==void 0&&S_(t);let r=t!==void 0?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function X1(e,t,r=!1,i={}){if(e<=DA)throw new Error("invalid field: expected ORDER > 0, got "+e);let n,o,d=!1,g;if(typeof t=="object"&&t!=null){if(i.sqrt||r)throw new Error("cannot specify opts in two arguments");let T=t;T.BITS&&(n=T.BITS),T.sqrt&&(o=T.sqrt),typeof T.isLE=="boolean"&&(r=T.isLE),typeof T.modFromBytes=="boolean"&&(d=T.modFromBytes),g=T.allowedLengths}else typeof t=="number"&&(n=t),i.sqrt&&(o=i.sqrt);let{nBitLength:y,nByteLength:_}=fK(e,n);if(_>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let I,N=Object.freeze({ORDER:e,isLE:r,BITS:y,BYTES:_,MASK:_I(y),ZERO:DA,ONE:hl,allowedLengths:g,create:T=>hd(T,e),isValid:T=>{if(typeof T!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof T);return DA<=T&&T<e},is0:T=>T===DA,isValidNot0:T=>!N.is0(T)&&N.isValid(T),isOdd:T=>(T&hl)===hl,neg:T=>hd(-T,e),eql:(T,M)=>T===M,sqr:T=>hd(T*T,e),add:(T,M)=>hd(T+M,e),sub:(T,M)=>hd(T-M,e),mul:(T,M)=>hd(T*M,e),pow:(T,M)=>hGt(N,T,M),div:(T,M)=>hd(T*Ytt(M,e),e),sqrN:T=>T*T,addN:(T,M)=>T+M,subN:(T,M)=>T-M,mulN:(T,M)=>T*M,inv:T=>Ytt(T,e),sqrt:o||(T=>(I||(I=fGt(e)),I(N,T))),toBytes:T=>r?rAe(T,_):uK(T,_),fromBytes:(T,M=!0)=>{if(g){if(!g.includes(T.length)||T.length>_)throw new Error("Field.fromBytes: expected "+g+" bytes, got "+T.length);let P=new Uint8Array(_);P.set(T,r?0:P.length-T.length),T=P}if(T.length!==_)throw new Error("Field.fromBytes: expected "+_+" bytes, got "+T.length);let D=r?fR(T):ax(T);if(d&&(D=hd(D,e)),!M&&!N.isValid(D))throw new Error("invalid field element: outside of range 0..ORDER");return D},invertBatch:T=>NP(N,T),cmov:(T,M,D)=>D?M:T});return Object.freeze(N)}function irt(e){if(typeof e!="bigint")throw new Error("field order must be bigint");let t=e.toString(2).length;return Math.ceil(t/8)}function sAe(e){let t=irt(e);return t+Math.ceil(t/2)}function cAe(e,t,r=!1){let i=e.length,n=irt(t),o=sAe(t);if(i<16||i<o||i>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+i);let d=r?fR(e):ax(e),g=hd(d,t-hl)+hl;return r?rAe(g,n):uK(g,n)}var cx=BigInt(0),vC=BigInt(1);function xP(e,t){let r=t.negate();return e?r:t}function hR(e,t){let r=NP(e.Fp,t.map(i=>i.Z));return t.map((i,n)=>e.fromAffine(i.toAffine(r[n])))}function crt(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function uAe(e,t){crt(e,t);let r=Math.ceil(t/e)+1,i=2**(e-1),n=2**e,o=_I(e),d=BigInt(e);return{windows:r,windowSize:i,mask:o,maxNumber:n,shiftBy:d}}function ort(e,t,r){let{windowSize:i,mask:n,maxNumber:o,shiftBy:d}=r,g=Number(e&n),y=e>>d;g>i&&(g-=o,y+=vC);let _=t*i,I=_+Math.abs(g)-1,N=g===0,T=g<0,M=t%2!==0;return{nextN:y,offset:I,isZero:N,isNeg:T,isNegF:M,offsetF:_}}function AGt(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,i)=>{if(!(r instanceof t))throw new Error("invalid point at index "+i)})}function pGt(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,i)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+i)})}var dAe=new WeakMap,urt=new WeakMap;function fAe(e){return urt.get(e)||1}function art(e){if(e!==cx)throw new Error("invalid wNAF")}var ux=class{constructor(t,r){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=r}_unsafeLadder(t,r,i=this.ZERO){let n=t;for(;r>cx;)r&vC&&(i=i.add(n)),n=n.double(),r>>=vC;return i}precomputeWindow(t,r){let{windows:i,windowSize:n}=uAe(r,this.bits),o=[],d=t,g=d;for(let y=0;y<i;y++){g=d,o.push(g);for(let _=1;_<n;_++)g=g.add(d),o.push(g);d=g.double()}return o}wNAF(t,r,i){if(!this.Fn.isValid(i))throw new Error("invalid scalar");let n=this.ZERO,o=this.BASE,d=uAe(t,this.bits);for(let g=0;g<d.windows;g++){let{nextN:y,offset:_,isZero:I,isNeg:N,isNegF:T,offsetF:M}=ort(i,g,d);i=y,I?o=o.add(xP(T,r[M])):n=n.add(xP(N,r[_]))}return art(i),{p:n,f:o}}wNAFUnsafe(t,r,i,n=this.ZERO){let o=uAe(t,this.bits);for(let d=0;d<o.windows&&i!==cx;d++){let{nextN:g,offset:y,isZero:_,isNeg:I}=ort(i,d,o);if(i=g,!_){let N=r[y];n=n.add(I?N.negate():N)}}return art(i),n}getPrecomputes(t,r,i){let n=dAe.get(r);return n||(n=this.precomputeWindow(r,t),t!==1&&(typeof i=="function"&&(n=i(n)),dAe.set(r,n))),n}cached(t,r,i){let n=fAe(t);return this.wNAF(n,this.getPrecomputes(n,t,i),r)}unsafe(t,r,i,n){let o=fAe(t);return o===1?this._unsafeLadder(t,r,n):this.wNAFUnsafe(o,this.getPrecomputes(o,t,i),r,n)}createCache(t,r){crt(r,this.bits),urt.set(t,r),dAe.delete(t)}hasCache(t){return fAe(t)!==1}};function drt(e,t,r,i){let n=t,o=e.ZERO,d=e.ZERO;for(;r>cx||i>cx;)r&vC&&(o=o.add(n)),i&vC&&(d=d.add(n)),n=n.double(),r>>=vC,i>>=vC;return{p1:o,p2:d}}function dx(e,t,r,i){AGt(r,e),pGt(i,t);let n=r.length,o=i.length;if(n!==o)throw new Error("arrays of points and scalars must have equal length");let d=e.ZERO,g=dK(BigInt(n)),y=1;g>12?y=g-3:g>4?y=g-2:g>0&&(y=2);let _=_I(y),I=new Array(Number(_)+1).fill(d),N=Math.floor((t.BITS-1)/y)*y,T=d;for(let M=N;M>=0;M-=y){I.fill(d);for(let P=0;P<o;P++){let G=i[P],q=Number(G>>BigInt(M)&_);I[q]=I[q].add(r[P])}let D=d;for(let P=I.length-1,G=d;P>0;P--)G=G.add(I[P]),D=D.add(G);if(T=T.add(D),M!==0)for(let P=0;P<y;P++)T=T.double()}return T}function srt(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return aAe(t),t}else return X1(e,{isLE:r})}function lK(e,t,r={},i){if(i===void 0&&(i=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(let y of["p","n","h"]){let _=t[y];if(!(typeof _=="bigint"&&_>cx))throw new Error(`CURVE.${y} must be positive bigint`)}let n=srt(t.p,r.Fp,i),o=srt(t.n,r.Fn,i),g=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(let y of g)if(!n.isValid(t[y]))throw new Error(`CURVE.${y} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:n,Fn:o}}J();K();z();var yI=BigInt(0),Al=BigInt(1),lAe=BigInt(2),gGt=BigInt(8);function _Gt(e,t,r,i){let n=e.sqr(r),o=e.sqr(i),d=e.add(e.mul(t.a,n),o),g=e.add(e.ONE,e.mul(t.d,e.mul(n,o)));return e.eql(d,g)}function mGt(e,t={}){let r=lK("edwards",e,t,t.FpFnLE),{Fp:i,Fn:n}=r,o=r.CURVE,{h:d}=o;mI(t,{},{uvRatio:"function"});let g=lAe<<BigInt(n.BYTES*8)-Al,y=G=>i.create(G),_=t.uvRatio||((G,q)=>{try{return{isValid:!0,value:i.sqrt(i.div(G,q))}}catch{return{isValid:!1,value:yI}}});if(!_Gt(i,o,o.Gx,o.Gy))throw new Error("bad curve params: generator point");function I(G,q,Y=!1){let ne=Y?Al:yI;return OP("coordinate "+G,q,ne,g),q}function N(G){if(!(G instanceof D))throw new Error("ExtendedPoint expected")}let T=sx((G,q)=>{let{X:Y,Y:ne,Z:ce}=G,le=G.is0();q==null&&(q=le?gGt:i.inv(ce));let pe=y(Y*q),ae=y(ne*q),W=i.mul(ce,q);if(le)return{x:yI,y:Al};if(W!==Al)throw new Error("invZ was invalid");return{x:pe,y:ae}}),M=sx(G=>{let{a:q,d:Y}=o;if(G.is0())throw new Error("bad point: ZERO");let{X:ne,Y:ce,Z:le,T:pe}=G,ae=y(ne*ne),W=y(ce*ce),se=y(le*le),O=y(se*se),s=y(ae*q),l=y(se*y(s+W)),A=y(O+y(Y*y(ae*W)));if(l!==A)throw new Error("bad point: equation left != right (1)");let m=y(ne*ce),E=y(le*pe);if(m!==E)throw new Error("bad point: equation left != right (2)");return!0});class D{constructor(q,Y,ne,ce){this.X=I("x",q),this.Y=I("y",Y),this.Z=I("z",ne,!0),this.T=I("t",ce),Object.freeze(this)}static CURVE(){return o}static fromAffine(q){if(q instanceof D)throw new Error("extended point not allowed");let{x:Y,y:ne}=q||{};return I("x",Y),I("y",ne),new D(Y,ne,Al,y(Y*ne))}static fromBytes(q,Y=!1){let ne=i.BYTES,{a:ce,d:le}=o;q=nAe(W1(q,ne,"point")),dR(Y,"zip215");let pe=nAe(q),ae=q[ne-1];pe[ne-1]=ae&-129;let W=fR(pe),se=Y?g:i.ORDER;OP("point.y",W,yI,se);let O=y(W*W),s=y(O-Al),l=y(le*O-ce),{isValid:A,value:m}=_(s,l);if(!A)throw new Error("bad point: invalid y coordinate");let E=(m&Al)===Al,w=(ae&128)!==0;if(!Y&&m===yI&&w)throw new Error("bad point: x=0 and x_0=1");return w!==E&&(m=y(-m)),D.fromAffine({x:m,y:W})}static fromHex(q,Y=!1){return D.fromBytes(du("point",q),Y)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(q=8,Y=!0){return P.createCache(this,q),Y||this.multiply(lAe),this}assertValidity(){M(this)}equals(q){N(q);let{X:Y,Y:ne,Z:ce}=this,{X:le,Y:pe,Z:ae}=q,W=y(Y*ae),se=y(le*ce),O=y(ne*ae),s=y(pe*ce);return W===se&&O===s}is0(){return this.equals(D.ZERO)}negate(){return new D(y(-this.X),this.Y,this.Z,y(-this.T))}double(){let{a:q}=o,{X:Y,Y:ne,Z:ce}=this,le=y(Y*Y),pe=y(ne*ne),ae=y(lAe*y(ce*ce)),W=y(q*le),se=Y+ne,O=y(y(se*se)-le-pe),s=W+pe,l=s-ae,A=W-pe,m=y(O*l),E=y(s*A),w=y(O*A),x=y(l*s);return new D(m,E,x,w)}add(q){N(q);let{a:Y,d:ne}=o,{X:ce,Y:le,Z:pe,T:ae}=this,{X:W,Y:se,Z:O,T:s}=q,l=y(ce*W),A=y(le*se),m=y(ae*ne*s),E=y(pe*O),w=y((ce+le)*(W+se)-l-A),x=E-m,R=E+m,u=y(A-Y*l),C=y(w*x),U=y(R*u),F=y(w*u),X=y(x*R);return new D(C,U,X,F)}subtract(q){return this.add(q.negate())}multiply(q){if(!n.isValidNot0(q))throw new Error("invalid scalar: expected 1 <= sc < curve.n");let{p:Y,f:ne}=P.cached(this,q,ce=>hR(D,ce));return hR(D,[Y,ne])[0]}multiplyUnsafe(q,Y=D.ZERO){if(!n.isValid(q))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return q===yI?D.ZERO:this.is0()||q===Al?this:P.unsafe(this,q,ne=>hR(D,ne),Y)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return P.unsafe(this,o.n).is0()}toAffine(q){return T(this,q)}clearCofactor(){return d===Al?this:this.multiplyUnsafe(d)}toBytes(){let{x:q,y:Y}=this.toAffine(),ne=i.toBytes(Y);return ne[ne.length-1]|=q&Al?128:0,ne}toHex(){return C_(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(q){return hR(D,q)}static msm(q,Y){return dx(D,n,q,Y)}_setWindowSize(q){this.precompute(q)}toRawBytes(){return this.toBytes()}}D.BASE=new D(o.Gx,o.Gy,Al,y(o.Gx*o.Gy)),D.ZERO=new D(yI,Al,Al,yI),D.Fp=i,D.Fn=n;let P=new ux(D,n.BITS);return D.BASE.precompute(8),D}var hK=class{constructor(t){this.ep=t}static fromBytes(t){iAe()}static fromHex(t){iAe()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(t){return this.ep.toAffine(t)}toHex(){return C_(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(t){return this.assertSame(t),this.init(this.ep.add(t.ep))}subtract(t){return this.assertSame(t),this.init(this.ep.subtract(t.ep))}multiply(t){return this.init(this.ep.multiply(t))}multiplyUnsafe(t){return this.init(this.ep.multiplyUnsafe(t))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(t,r){return this.init(this.ep.precompute(t,r))}toRawBytes(){return this.toBytes()}};function yGt(e,t,r={}){if(typeof t!="function")throw new Error('"hash" function param is required');mI(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});let{prehash:i}=r,{BASE:n,Fp:o,Fn:d}=e,g=r.randomBytes||w_,y=r.adjustScalarBytes||(se=>se),_=r.domain||((se,O,s)=>{if(dR(s,"phflag"),O.length||s)throw new Error("Contexts/pre-hash are not supported");return se});function I(se){return d.create(fR(se))}function N(se){let O=ne.secretKey;se=du("private key",se,O);let s=du("hashed private key",t(se),2*O),l=y(s.slice(0,O)),A=s.slice(O,2*O),m=I(l);return{head:l,prefix:A,scalar:m}}function T(se){let{head:O,prefix:s,scalar:l}=N(se),A=n.multiply(l),m=A.toBytes();return{head:O,prefix:s,scalar:l,point:A,pointBytes:m}}function M(se){return T(se).pointBytes}function D(se=Uint8Array.of(),...O){let s=Qf(...O);return I(t(_(s,du("context",se),!!i)))}function P(se,O,s={}){se=du("message",se),i&&(se=i(se));let{prefix:l,scalar:A,pointBytes:m}=T(O),E=D(s.context,l,se),w=n.multiply(E).toBytes(),x=D(s.context,w,m,se),R=d.create(E+x*A);if(!d.isValid(R))throw new Error("sign failed: invalid s");let u=Qf(w,d.toBytes(R));return W1(u,ne.signature,"result")}let G={zip215:!0};function q(se,O,s,l=G){let{context:A,zip215:m}=l,E=ne.signature;se=du("signature",se,E),O=du("message",O),s=du("publicKey",s,ne.publicKey),m!==void 0&&dR(m,"zip215"),i&&(O=i(O));let w=E/2,x=se.subarray(0,w),R=fR(se.subarray(w,E)),u,C,U;try{u=e.fromBytes(s,m),C=e.fromBytes(x,m),U=n.multiplyUnsafe(R)}catch{return!1}if(!m&&u.isSmallOrder())return!1;let F=D(A,C.toBytes(),u.toBytes(),O);return C.add(u.multiplyUnsafe(F)).subtract(U).clearCofactor().is0()}let Y=o.BYTES,ne={secretKey:Y,publicKey:Y,signature:2*Y,seed:Y};function ce(se=g(ne.seed)){return W1(se,ne.seed,"seed")}function le(se){let O=W.randomSecretKey(se);return{secretKey:O,publicKey:M(O)}}function pe(se){return sR(se)&&se.length===d.BYTES}function ae(se,O){try{return!!e.fromBytes(se,O)}catch{return!1}}let W={getExtendedPublicKey:T,randomSecretKey:ce,isValidSecretKey:pe,isValidPublicKey:ae,toMontgomery(se){let{y:O}=e.fromBytes(se),s=ne.publicKey,l=s===32;if(!l&&s!==57)throw new Error("only defined for 25519 and 448");let A=l?o.div(Al+O,Al-O):o.div(O-Al,O+Al);return o.toBytes(A)},toMontgomerySecret(se){let O=ne.secretKey;W1(se,O);let s=t(se.subarray(0,O));return y(s).subarray(0,O)},randomPrivateKey:ce,precompute(se=8,O=e.BASE){return O.precompute(se,!1)}};return Object.freeze({keygen:le,getPublicKey:M,sign:P,verify:q,utils:W,Point:e,lengths:ne})}function bGt(e){let t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,i=X1(t.n,e.nBitLength,!0),n={Fp:r,Fn:i,uvRatio:e.uvRatio},o={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:n,hash:e.hash,eddsaOpts:o}}function EGt(e,t){let r=t.Point;return Object.assign({},t,{ExtendedPoint:r,CURVE:e,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function frt(e){let{CURVE:t,curveOpts:r,hash:i,eddsaOpts:n}=bGt(e),o=mGt(t,r),d=yGt(o,i,n);return EGt(e,d)}var vGt=BigInt(0),AR=BigInt(1),lrt=BigInt(2),xzn=BigInt(3),RGt=BigInt(5),SGt=BigInt(8),fx=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),TP={p:fx,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:SGt,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function IGt(e){let t=BigInt(10),r=BigInt(20),i=BigInt(40),n=BigInt(80),o=fx,g=e*e%o*e%o,y=y0(g,lrt,o)*g%o,_=y0(y,AR,o)*e%o,I=y0(_,RGt,o)*_%o,N=y0(I,t,o)*I%o,T=y0(N,r,o)*N%o,M=y0(T,i,o)*T%o,D=y0(M,n,o)*M%o,P=y0(D,n,o)*M%o,G=y0(P,t,o)*I%o;return{pow_p_5_8:y0(G,lrt,o)*e%o,b2:g}}function CGt(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}var hAe=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function gAe(e,t){let r=fx,i=hd(t*t*t,r),n=hd(i*i*t,r),o=IGt(e*n).pow_p_5_8,d=hd(e*i*o,r),g=hd(t*d*d,r),y=d,_=hd(d*hAe,r),I=g===e,N=g===hd(-e,r),T=g===hd(-e*hAe,r);return I&&(d=y),(N||T)&&(d=_),lR(d,r)&&(d=hd(-d,r)),{isValid:I||N,value:d}}var bI=X1(TP.p,{isLE:!0}),wGt=X1(TP.n,{isLE:!0}),OGt={...TP,Fp:bI,hash:Vtt,adjustScalarBytes:CGt,uvRatio:gAe},Fp=frt(OGt);var AAe=hAe,NGt=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),xGt=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),TGt=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),BGt=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),hrt=e=>gAe(AR,e),MGt=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),pAe=e=>Fp.Point.Fp.create(fR(e)&MGt);function Art(e){let{d:t}=TP,r=fx,i=q=>bI.create(q),n=i(AAe*e*e),o=i((n+AR)*TGt),d=BigInt(-1),g=i((d-t*n)*i(n+t)),{isValid:y,value:_}=gAe(o,g),I=i(_*e);lR(I,r)||(I=i(-I)),y||(_=I),y||(d=n);let N=i(d*(n-AR)*BGt-g),T=_*_,M=i((_+_)*g),D=i(N*NGt),P=i(AR-T),G=i(AR+T);return new Fp.Point(i(M*G),i(P*D),i(D*G),i(M*P))}function DGt(e){Yl(e,64);let t=pAe(e.subarray(0,32)),r=Art(t),i=pAe(e.subarray(32,64)),n=Art(i);return new pR(r.add(n))}var pR=class e extends hK{constructor(t){super(t)}static fromAffine(t){return new e(Fp.Point.fromAffine(t))}assertSame(t){if(!(t instanceof e))throw new Error("RistrettoPoint expected")}init(t){return new e(t)}static hashToCurve(t){return DGt(du("ristrettoHash",t,64))}static fromBytes(t){Yl(t,32);let{a:r,d:i}=TP,n=fx,o=ce=>bI.create(ce),d=pAe(t);if(!ztt(bI.toBytes(d),t)||lR(d,n))throw new Error("invalid ristretto255 encoding 1");let g=o(d*d),y=o(AR+r*g),_=o(AR-r*g),I=o(y*y),N=o(_*_),T=o(r*i*I-N),{isValid:M,value:D}=hrt(o(T*N)),P=o(D*_),G=o(D*P*T),q=o((d+d)*P);lR(q,n)&&(q=o(-q));let Y=o(y*G),ne=o(q*Y);if(!M||lR(ne,n)||Y===vGt)throw new Error("invalid ristretto255 encoding 2");return new e(new Fp.Point(q,Y,AR,ne))}static fromHex(t){return e.fromBytes(du("ristrettoHex",t,32))}static msm(t,r){return dx(e,Fp.Point.Fn,t,r)}toBytes(){let{X:t,Y:r,Z:i,T:n}=this.ep,o=fx,d=G=>bI.create(G),g=d(d(i+r)*d(i-r)),y=d(t*r),_=d(y*y),{value:I}=hrt(d(g*_)),N=d(I*g),T=d(I*y),M=d(N*T*n),D;if(lR(n*M,o)){let G=d(r*AAe),q=d(t*AAe);t=G,r=q,D=d(N*xGt)}else D=T;lR(t*M,o)&&(r=d(-r));let P=d((i-r)*D);return lR(P,o)&&(P=d(-P)),bI.toBytes(P)}equals(t){this.assertSame(t);let{X:r,Y:i}=this.ep,{X:n,Y:o}=t.ep,d=_=>bI.create(_),g=d(r*o)===d(i*n),y=d(i*o)===d(r*n);return g||y}is0(){return this.equals(e.ZERO)}};pR.BASE=new pR(Fp.Point.BASE);pR.ZERO=new pR(Fp.Point.ZERO);pR.Fp=bI;pR.Fn=wGt;var ope=po(qv()),pl=po(grt());J();K();z();ox();var BP=qm;var Sx=po(Srt()),Br=po(RI()),$nt=po(RI());J();K();z();J();K();z();var tqt=1,rqt=2,nqt=3,iqt=4,oqt=5,aqt=6,sqt=7,cqt=8,uqt=9,dqt=10,fqt=-32700,lqt=-32603,hqt=-32602,Aqt=-32601,pqt=-32600,gqt=-32016,_qt=-32015,mqt=-32014,yqt=-32013,bqt=-32012,Eqt=-32011,vqt=-32010,Rqt=-32009,Sqt=-32008,Iqt=-32007,Cqt=-32006,wqt=-32005,Oqt=-32004,Nqt=-32003,xqt=-32002,Tqt=-32001,Bqt=28e5,Mqt=2800001,Dqt=2800002,kqt=2800003,Pqt=2800004,Lqt=2800005,Uqt=2800006,Fqt=2800007,Qqt=2800008,Hqt=2800009,Gqt=2800010,qqt=2800011,Vqt=323e4,Jqt=32300001,zqt=3230002,Kqt=3230003,$qt=3230004,Yqt=361e4,Wqt=3610001,Xqt=3610002,Zqt=3610003,jqt=3610004,eVt=3610005,tVt=3610006,rVt=3610007,nVt=3611e3,iVt=3704e3,oVt=3704001,aVt=3704002,sVt=3704003,cVt=3704004,uVt=4128e3,dVt=4128001,fVt=4128002,lVt=4615e3,hVt=4615001,AVt=4615002,pVt=4615003,gVt=4615004,_Vt=4615005,mVt=4615006,yVt=4615007,bVt=4615008,EVt=4615009,vVt=4615010,RVt=4615011,SVt=4615012,IVt=4615013,CVt=4615014,wVt=4615015,OVt=4615016,NVt=4615017,xVt=4615018,TVt=4615019,BVt=4615020,MVt=4615021,DVt=4615022,kVt=4615023,PVt=4615024,LVt=4615025,UVt=4615026,FVt=4615027,QVt=4615028,HVt=4615029,GVt=4615030,qVt=4615031,VVt=4615032,JVt=4615033,zVt=4615034,KVt=4615035,$Vt=4615036,YVt=4615037,WVt=4615038,XVt=4615039,ZVt=4615040,jVt=4615041,eJt=4615042,tJt=4615043,rJt=4615044,nJt=4615045,iJt=4615046,oJt=4615047,aJt=4615048,sJt=4615049,cJt=4615050,uJt=4615051,dJt=4615052,fJt=4615053,lJt=4615054,hJt=5508e3,AJt=5508001,pJt=5508002,gJt=5508003,_Jt=5508004,mJt=5508005,yJt=5508006,bJt=5508007,EJt=5508008,vJt=5508009,RJt=5508010,SJt=5508011,IJt=5663e3,CJt=5663001,wJt=5663002,OJt=5663003,NJt=5663004,xJt=5663005,TJt=5663006,BJt=5663007,MJt=5663008,DJt=5663009,kJt=5663010,PJt=5663011,LJt=5663012,UJt=5663013,FJt=5663014,QJt=5663015,HJt=5663016,GJt=5663017,qJt=5663018,VJt=5663019,JJt=5663020,zJt=705e4,KJt=7050001,$Jt=7050002,YJt=7050003,WJt=7050004,XJt=7050005,ZJt=7050006,jJt=7050007,ezt=7050008,tzt=7050009,rzt=7050010,nzt=7050011,izt=7050012,ozt=7050013,azt=7050014,szt=7050015,czt=7050016,uzt=7050017,dzt=7050018,fzt=7050019,lzt=7050020,hzt=7050021,Azt=7050022,pzt=7050023,gzt=7050024,_zt=7050025,mzt=7050026,yzt=7050027,bzt=7050028,Ezt=7050029,vzt=7050030,Rzt=7050031,Szt=7050032,Izt=7050033,Czt=7050034,wzt=7050035,Ozt=7050036,IAe=8078e3,CAe=8078001,Irt=8078002,Crt=8078003,wAe=8078004,OAe=8078005,NAe=8078006,Nzt=8078007,xzt=8078008,Tzt=8078009,Bzt=8078010,xAe=8078011,Mzt=8078012,wrt=8078013,Ort=8078014,Dzt=8078015,kzt=8078016,Pzt=8078017,Lzt=8078018,Uzt=8078019,Nrt=8078020,xrt=8078021,Fzt=8078022,Qzt=81e5,Hzt=8100001,Gzt=8100002,qzt=8100003,Vzt=819e4,Jzt=8190001,zzt=8190002,Kzt=8190003,$zt=8190004,Yzt=99e5,Wzt=9900001,Xzt=9900002,Zzt=9900003,jzt=9900004;function Trt(e){return Array.isArray(e)?"%5B"+e.map(Trt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function eKt([e,t]){return`${e}=${Trt(t)}`}function tKt(e){let t=Object.entries(e).map(eKt).join("&");return btoa(t)}var cKn={[Vqt]:"Account not found at address: $address",[$qt]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Kqt]:"Expected decoded account at address: $address",[zqt]:"Failed to decode account data at address: $address",[Jqt]:"Accounts not found at addresses: $addresses",[Hqt]:"Unable to find a viable program address bump seed.",[Dqt]:"$putativeAddress is not a base58-encoded address.",[Bqt]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[kqt]:"The `CryptoKey` must be an `Ed25519` public key.",[qqt]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Qqt]:"Invalid seeds; point must fall off the Ed25519 curve.",[Pqt]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Uqt]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Fqt]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Lqt]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Gqt]:"Program address cannot end with PDA marker.",[Mqt]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[iqt]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[tqt]:"The network has progressed past the last block for which this transaction could have been committed.",[IAe]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Fzt]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Nrt]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[OAe]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[NAe]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[wAe]:"Encoder and decoder must either both be fixed-size or variable-size.",[xzt]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Irt]:"Expected a fixed-size codec, got a variable-size one.",[wrt]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Crt]:"Expected a variable-size codec, got a fixed-size one.",[Uzt]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[CAe]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Lzt]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Tzt]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Bzt]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Dzt]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Nzt]:"Expected [$codecDescription] to have $expected items, got $actual.",[Mzt]:"Invalid value $value for base $base with alphabet $alphabet.",[kzt]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[xAe]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Ort]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[xrt]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Pzt]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[nVt]:"No random values implementation could be found.",[EVt]:"instruction requires an uninitialized account",[kVt]:"instruction tries to borrow reference for an account which is already borrowed",[PVt]:"instruction left account with an outstanding borrowed reference",[MVt]:"program other than the account's owner changed the size of the account data",[_Vt]:"account data too small for instruction",[DVt]:"instruction expected an executable account",[iJt]:"An account does not have enough lamports to be rent-exempt",[aJt]:"Program arithmetic overflowed",[nJt]:"Failed to serialize or deserialize account data: $encodedData",[lJt]:"Builtin programs must consume compute units",[VVt]:"Cross-program invocation call depth too deep",[WVt]:"Computational budget exceeded",[UVt]:"custom program error: #$code",[NVt]:"instruction contains duplicate accounts",[LVt]:"instruction modifications of multiply-passed account differ",[GVt]:"executable accounts must be rent exempt",[QVt]:"instruction changed executable accounts data",[HVt]:"instruction changed the balance of an executable account",[xVt]:"instruction changed executable bit of an account",[CVt]:"instruction modified data of an account it does not own",[IVt]:"instruction spent from the balance of an account it does not own",[hVt]:"generic instruction error",[cJt]:"Provided owner is not allowed",[tJt]:"Account is immutable",[rJt]:"Incorrect authority provided",[yVt]:"incorrect program id for instruction",[mVt]:"insufficient funds for instruction",[gVt]:"invalid account data for instruction",[oJt]:"Invalid account owner",[AVt]:"invalid program argument",[FVt]:"program returned invalid error code",[pVt]:"invalid instruction data",[YVt]:"Failed to reallocate account data",[$Vt]:"Provided seeds do not result in a valid address",[uJt]:"Accounts data allocations exceeded the maximum allowed per transaction",[dJt]:"Max accounts exceeded",[fJt]:"Max instruction trace length exceeded",[KVt]:"Length of the seed is too long for address generation",[JVt]:"An account required by the instruction is missing",[bVt]:"missing required signature for instruction",[SVt]:"instruction illegally modified the program id of an account",[BVt]:"insufficient account keys for instruction",[XVt]:"Cross-program invocation with unauthorized signer or writable account",[ZVt]:"Failed to create program execution environment",[eJt]:"Program failed to compile",[jVt]:"Program failed to complete",[OVt]:"instruction modified data of a read-only account",[wVt]:"instruction changed the balance of a read-only account",[zVt]:"Cross-program invocation reentrancy not allowed for this instruction",[TVt]:"instruction modified rent epoch of an account",[RVt]:"sum of account balances before and after instruction do not match",[vVt]:"instruction requires an initialized account",[lVt]:"",[qVt]:"Unsupported program id",[sJt]:"Unsupported sysvar",[uVt]:"The instruction does not have any accounts.",[dVt]:"The instruction does not have any data.",[fVt]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[oqt]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[rqt]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Xzt]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jzt]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Wzt]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yzt]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Zzt]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[lqt]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[hqt]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[pqt]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Aqt]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[fqt]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[bqt]:"$__serverMessage",[Tqt]:"$__serverMessage",[Oqt]:"$__serverMessage",[mqt]:"$__serverMessage",[vqt]:"$__serverMessage",[Rqt]:"$__serverMessage",[gqt]:"Minimum context slot has not been reached",[wqt]:"Node is unhealthy; behind by $numSlotsBehind slots",[Sqt]:"No snapshot",[xqt]:"Transaction simulation failed",[Iqt]:"$__serverMessage",[Eqt]:"Transaction history is not available from this node",[Cqt]:"$__serverMessage",[yqt]:"Transaction signature length mismatch",[Nqt]:"Transaction signature verification failure",[_qt]:"$__serverMessage",[iVt]:"Key pair bytes must be of length 64, got $byteLength.",[oVt]:"Expected private key bytes with length 32. Actual length: $actualLength.",[aVt]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[cVt]:"The provided private key does not match the provided public key.",[sVt]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[aqt]:"Lamports value must be in the range [0, 2e64-1]",[sqt]:"`$value` cannot be parsed as a `BigInt`",[dqt]:"$message",[cqt]:"`$value` cannot be parsed as a `Number`",[nqt]:"No nonce account could be found at address `$nonceAccountAddress`",[Vzt]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[zzt]:"WebSocket was closed before payload could be added to the send buffer",[Kzt]:"WebSocket connection closed",[$zt]:"WebSocket failed to connect",[Jzt]:"Failed to obtain a subscription id from the server",[qzt]:"Could not find an API plan for RPC method: `$method`",[Qzt]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Gzt]:"HTTP error ($statusCode): $message",[Hzt]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[hJt]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[AJt]:"The provided value does not implement the `KeyPairSigner` interface",[gJt]:"The provided value does not implement the `MessageModifyingSigner` interface",[_Jt]:"The provided value does not implement the `MessagePartialSigner` interface",[pJt]:"The provided value does not implement any of the `MessageSigner` interfaces",[yJt]:"The provided value does not implement the `TransactionModifyingSigner` interface",[bJt]:"The provided value does not implement the `TransactionPartialSigner` interface",[EJt]:"The provided value does not implement the `TransactionSendingSigner` interface",[mJt]:"The provided value does not implement any of the `TransactionSigner` interfaces",[vJt]:"More than one `TransactionSendingSigner` was identified.",[RJt]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[SJt]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[rVt]:"Cannot export a non-extractable key.",[Wqt]:"No digest implementation could be found.",[Yqt]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Xqt]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Zqt]:"No signature verification implementation could be found.",[jqt]:"No key generation implementation could be found.",[eVt]:"No signing implementation could be found.",[tVt]:"No key export implementation could be found.",[uqt]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[czt]:"Transaction processing left an account with an outstanding borrowed reference",[KJt]:"Account in use",[$Jt]:"Account loaded twice",[YJt]:"Attempt to debit an account but found no record of a prior credit.",[pzt]:"Transaction loads an address table account that doesn't exist",[jJt]:"This transaction has already been processed",[ezt]:"Blockhash not found",[tzt]:"Loader call chain is too deep",[szt]:"Transactions are currently disabled due to cluster maintenance",[vzt]:"Transaction contains a duplicate instruction ($index) that is not allowed",[XJt]:"Insufficient funds for fee",[Rzt]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[ZJt]:"This account may not be used to pay transaction fees",[nzt]:"Transaction contains an invalid account reference",[_zt]:"Transaction loads an address table account with invalid data",[mzt]:"Transaction address table lookup uses an invalid index",[gzt]:"Transaction loads an address table account with an invalid owner",[Izt]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[ozt]:"This program may not be used for executing instructions",[yzt]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[fzt]:"Transaction loads a writable account that cannot be written",[Szt]:"Transaction exceeded max loaded accounts data size cap",[rzt]:"Transaction requires a fee but has no signature present",[WJt]:"Attempt to load a program that does not exist",[wzt]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Czt]:"ResanitizationNeeded",[azt]:"Transaction failed to sanitize accounts offsets correctly",[izt]:"Transaction did not pass signature verification",[Azt]:"Transaction locked too many accounts",[Ozt]:"Sum of account balances before and after transaction do not match",[zJt]:"The transaction failed with the error `$errorName`",[dzt]:"Transaction version is unsupported",[hzt]:"Transaction would exceed account data limit within the block",[Ezt]:"Transaction would exceed total account data limit",[lzt]:"Transaction would exceed max account limit within the block",[uzt]:"Transaction would exceed max Block Cost Limit",[bzt]:"Transaction would exceed max Vote Cost Limit",[QJt]:"Attempted to sign a transaction with an address that is not a signer for it",[kJt]:"Transaction is missing an address at index: $index.",[HJt]:"Transaction has no expected signers therefore it cannot be encoded",[JJt]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[wJt]:"Transaction does not have a blockhash lifetime",[OJt]:"Transaction is not a durable nonce transaction",[xJt]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[TJt]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[MJt]:"No fee payer set in CompiledTransaction",[BJt]:"Could not find program address at index $index",[qJt]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[VJt]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[PJt]:"Transaction is missing a fee payer.",[LJt]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[FJt]:"Transaction first instruction is not advance nonce account instruction.",[UJt]:"Transaction with no instructions cannot be durable nonce transaction.",[IJt]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[CJt]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[GJt]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[DJt]:"Transaction is missing signatures for addresses: $addresses.",[NJt]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"};function rKt(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${tKt(t)}'`),`${r}\``}}var SI=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;if(t){let{cause:o,...d}=t;o&&(i={cause:o}),Object.keys(d).length>0&&(r=d)}let n=rKt(e,r);super(n,i),this.context={__code:e,...r},this.name="SolanaError"}};J();K();z();function nKt(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function Brt(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array(nKt(t,e));return e.write(t,r,0),r}})}function Mrt(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function gx(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function Drt(e,t){if(gx(e)!==gx(t))throw new SI(wAe);if(gx(e)&&gx(t)&&e.fixedSize!==t.fixedSize)throw new SI(OAe,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!gx(e)&&!gx(t)&&e.maxSize!==t.maxSize)throw new SI(NAe,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function krt(e,t,r=0){if(t.length-r<=0)throw new SI(IAe,{codecDescription:e})}function Prt(e,t,r,i=0){let n=r.length-i;if(n<t)throw new SI(CAe,{bytesLength:n,codecDescription:e,expected:t})}function iKt(e,t,r,i){if(i<t||i>r)throw new SI(xAe,{codecDescription:e,max:r,min:t,value:i})}function Lrt(e){return e?.endian!==1}function oKt(e){return Brt({fixedSize:e.size,write(t,r,i){e.range&&iKt(e.name,e.range[0],e.range[1],t);let n=new ArrayBuffer(e.size);return e.set(new DataView(n),t,Lrt(e.config)),r.set(new Uint8Array(n),i),i+e.size}})}function aKt(e){return Mrt({fixedSize:e.size,read(t,r=0){krt(e.name,t,r),Prt(e.name,e.size,t,r);let i=new DataView(sKt(t,r,e.size));return[e.get(i,Lrt(e.config)),r+e.size]}})}function sKt(e,t,r){let i=e.byteOffset+(t??0),n=r??e.byteLength;return e.buffer.slice(i,i+n)}var TAe=(e={})=>oKt({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,r,i)=>t.setBigUint64(0,BigInt(r),i),size:8}),cKt=(e={})=>aKt({config:e,get:(t,r)=>t.getBigUint64(0,r),name:"u64",size:8}),Urt=(e={})=>Drt(TAe(e),cKt(e));J();K();z();var BAe=class extends TypeError{constructor(t,r){let i,{message:n,explanation:o,...d}=t,{path:g}=t,y=g.length===0?n:`At path: ${g.join(".")} -- ${n}`;super(o??y),o!=null&&(this.cause=y),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>i??(i=[t,...r()])}};function uKt(e){return UP(e)&&typeof e[Symbol.iterator]=="function"}function UP(e){return typeof e=="object"&&e!=null}function FK(e){return UP(e)&&!Array.isArray(e)}function Vm(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function dKt(e){let{done:t,value:r}=e.next();return t?void 0:r}function fKt(e,t,r,i){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});let{path:n,branch:o}=t,{type:d}=r,{refinement:g,message:y=`Expected a value of type \`${d}\`${g?` with refinement \`${g}\``:""}, but received: \`${Vm(i)}\``}=e;return{value:i,type:d,refinement:g,key:n[n.length-1],path:n,branch:o,...e,message:y}}function*Frt(e,t,r,i){uKt(e)||(e=[e]);for(let n of e){let o=fKt(n,t,r,i);o&&(yield o)}}function*MAe(e,t,r={}){let{path:i=[],branch:n=[e],coerce:o=!1,mask:d=!1}=r,g={path:i,branch:n,mask:d};o&&(e=t.coercer(e,g));let y="valid";for(let _ of t.validator(e,g))_.explanation=r.message,y="not_valid",yield[_,void 0];for(let[_,I,N]of t.entries(e,g)){let T=MAe(I,N,{path:_===void 0?i:[...i,_],branch:_===void 0?n:[...n,I],coerce:o,mask:d,message:r.message});for(let M of T)M[0]?(y=M[0].refinement!=null?"not_refined":"not_valid",yield[M[0],void 0]):o&&(I=M[1],_===void 0?e=I:e instanceof Map?e.set(_,I):e instanceof Set?e.add(I):UP(e)&&(I!==void 0||_ in e)&&(e[_]=I))}if(y!=="not_valid")for(let _ of t.refiner(e,g))_.explanation=r.message,y="not_refined",yield[_,void 0];y==="valid"&&(yield[void 0,e])}var O_=class{constructor(t){let{type:r,schema:i,validator:n,refiner:o,coercer:d=y=>y,entries:g=function*(){}}=t;this.type=r,this.schema=i,this.entries=g,this.coercer=d,n?this.validator=(y,_)=>{let I=n(y,_);return Frt(I,_,this,y)}:this.validator=()=>[],o?this.refiner=(y,_)=>{let I=o(y,_);return Frt(I,_,this,y)}:this.refiner=()=>[]}assert(t,r){return Qrt(t,this,r)}create(t,r){return Ei(t,this,r)}is(t){return Hrt(t,this)}mask(t,r){return lKt(t,this,r)}validate(t,r={}){return FP(t,this,r)}};function Qrt(e,t,r){let i=FP(e,t,{message:r});if(i[0])throw i[0]}function Ei(e,t,r){let i=FP(e,t,{coerce:!0,message:r});if(i[0])throw i[0];return i[1]}function lKt(e,t,r){let i=FP(e,t,{coerce:!0,mask:!0,message:r});if(i[0])throw i[0];return i[1]}function Hrt(e,t){return!FP(e,t)[0]}function FP(e,t,r={}){let i=MAe(e,t,r),n=dKt(i);return n[0]?[new BAe(n[0],function*(){for(let d of i)d[0]&&(yield d[0])}),void 0]:[void 0,n[1]]}function IC(e,t){return new O_({type:e,schema:null,validator:t})}function Grt(){return IC("any",()=>!0)}function Ii(e){return new O_({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[r,i]of t.entries())yield[r,i,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Vm(t)}`}})}function Jm(){return IC("boolean",e=>typeof e=="boolean")}function QK(e){return IC("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${Vm(t)}`)}function b0(e){let t=Vm(e),r=typeof e;return new O_({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(i){return i===e||`Expected the literal \`${t}\`, but received: ${Vm(i)}`}})}function hKt(){return IC("never",()=>!1)}function wi(e){return new O_({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function Zr(){return IC("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${Vm(e)}`)}function Io(e){return new O_({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function DAe(e,t){return new O_({type:"record",schema:null,*entries(r){if(UP(r))for(let i in r){let n=r[i];yield[i,i,e],yield[i,n,t]}},validator(r){return FK(r)||`Expected an object, but received: ${Vm(r)}`},coercer(r){return FK(r)?{...r}:r}})}function fi(){return IC("string",e=>typeof e=="string"||`Expected a string, but received: ${Vm(e)}`)}function HK(e){let t=hKt();return new O_({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){let i=Math.max(e.length,r.length);for(let n=0;n<i;n++)yield[n,r[n],e[n]||t]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${Vm(r)}`},coercer(r){return Array.isArray(r)?r.slice():r}})}function Vn(e){let t=Object.keys(e);return new O_({type:"type",schema:e,*entries(r){if(UP(r))for(let i of t)yield[i,r[i],e[i]]},validator(r){return FK(r)||`Expected an object, but received: ${Vm(r)}`},coercer(r){return FK(r)?{...r}:r}})}function Qh(e){let t=e.map(r=>r.type).join(" | ");return new O_({type:"union",schema:null,coercer(r,i){for(let n of e){let[o,d]=n.validate(r,{coerce:!0,mask:i.mask});if(!o)return d}return r},validator(r,i){let n=[];for(let o of e){let[...d]=MAe(r,o,i),[g]=d;if(g[0])for(let[y]of d)y&&n.push(y);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Vm(r)}`,...n]}})}function CC(){return IC("unknown",()=>!0)}function _x(e,t,r){return new O_({...e,coercer:(i,n)=>Hrt(i,t)?e.coercer(r(i,n),n):e.coercer(i,n)})}var Ynt=po(lnt());J();K();z();mh();J();K();z();var mx=po(Ant(),1);var FKt=class extends mx.default{socket;constructor(e,t){super(),this.socket=new window.WebSocket(e,t.protocols),this.socket.onopen=()=>this.emit("open"),this.socket.onmessage=r=>this.emit("message",r.data),this.socket.onerror=r=>this.emit("error",r),this.socket.onclose=r=>{this.emit("close",r.code,r.reason)}}send(e,t,r){let i=r||t;try{this.socket.send(e),i()}catch(n){i(n)}}close(e,t){this.socket.close(e,t)}addEventListener(e,t,r){this.socket.addEventListener(e,t,r)}};function pnt(e,t){return new FKt(e,t)}var QKt=class{encode(e){return JSON.stringify(e)}decode(e){return JSON.parse(e)}},gnt=class extends mx.default{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor(e,t="ws://localhost:8080",{autoconnect:r=!0,reconnect:i=!0,reconnect_interval:n=1e3,max_reconnects:o=5,...d}={},g,y){super(),this.webSocketFactory=e,this.queue={},this.rpc_id=0,this.address=t,this.autoconnect=r,this.ready=!1,this.reconnect=i,this.reconnect_timer_id=void 0,this.reconnect_interval=n,this.max_reconnects=o,this.rest_options=d,this.current_reconnects=0,this.generate_request_id=g||(()=>typeof this.rpc_id=="number"?++this.rpc_id:Number(this.rpc_id)+1),y?this.dataPack=y:this.dataPack=new QKt,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(e,t,r,i){return!i&&typeof r=="object"&&(i=r,r=null),new Promise((n,o)=>{if(!this.ready)return o(new Error("socket not ready"));let d=this.generate_request_id(e,t),g={jsonrpc:"2.0",method:e,params:t||void 0,id:d};this.socket.send(this.dataPack.encode(g),i,y=>{if(y)return o(y);this.queue[d]={promise:[n,o]},r&&(this.queue[d].timeout=setTimeout(()=>{delete this.queue[d],o(new Error("reply timeout"))},r))})})}async login(e){let t=await this.call("rpc.login",e);if(!t)throw new Error("authentication failed");return t}async listMethods(){return await this.call("__listMethods")}notify(e,t){return new Promise((r,i)=>{if(!this.ready)return i(new Error("socket not ready"));let n={jsonrpc:"2.0",method:e,params:t};this.socket.send(this.dataPack.encode(n),o=>{if(o)return i(o);r()})})}async subscribe(e){typeof e=="string"&&(e=[e]);let t=await this.call("rpc.on",e);if(typeof e=="string"&&t[e]!=="ok")throw new Error("Failed subscribing to an event '"+e+"' with: "+t[e]);return t}async unsubscribe(e){typeof e=="string"&&(e=[e]);let t=await this.call("rpc.off",e);if(typeof e=="string"&&t[e]!=="ok")throw new Error("Failed unsubscribing from an event with: "+t);return t}close(e,t){this.socket&&this.socket.close(e||1e3,t)}setAutoReconnect(e){this.reconnect=e}setReconnectInterval(e){this.reconnect_interval=e}setMaxReconnects(e){this.max_reconnects=e}getCurrentReconnects(){return this.current_reconnects}getMaxReconnects(){return this.max_reconnects}isReconnecting(){return this.reconnect_timer_id!==void 0}willReconnect(){return this.reconnect&&(this.max_reconnects===0||this.current_reconnects<this.max_reconnects)}_connect(e,t){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:r})=>{r instanceof ArrayBuffer&&(r=fe.from(r).toString());try{r=this.dataPack.decode(r)}catch{return}if(r.notification&&this.listeners(r.notification).length){if(!Object.keys(r.params).length)return this.emit(r.notification);let i=[r.notification];if(r.params.constructor===Object)i.push(r.params);else for(let n=0;n<r.params.length;n++)i.push(r.params[n]);return Promise.resolve().then(()=>{this.emit.apply(this,i)})}if(!this.queue[r.id])return r.method?Promise.resolve().then(()=>{this.emit(r.method,r?.params)}):void 0;"error"in r=="result"in r&&this.queue[r.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[r.id].timeout&&clearTimeout(this.queue[r.id].timeout),r.error?this.queue[r.id].promise[1](r.error):this.queue[r.id].promise[0](r.result),delete this.queue[r.id]}),this.socket.addEventListener("error",r=>this.emit("error",r)),this.socket.addEventListener("close",({code:r,reason:i})=>{this.ready&&setTimeout(()=>this.emit("close",r,i),0),this.ready=!1,this.socket=void 0,r!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)?this.reconnect_timer_id=setTimeout(()=>this._connect(e,t),this.reconnect_interval):this.reconnect&&this.max_reconnects>0&&this.current_reconnects>=this.max_reconnects&&setTimeout(()=>this.emit("max_reconnects_reached",r,i),1))})}};$K();J();K();z();ox();J();K();z();J();K();z();WK();Up();var Rnt=(e,t)=>(e+(e>=0?t:-t)/Snt)/t;function WKt(e,t,r){let[[i,n],[o,d]]=t,g=Rnt(d*e,r),y=Rnt(-n*e,r),_=e-g*i-y*o,I=-g*n-y*d,N=_<yR,T=I<yR;N&&(_=-_),T&&(I=-I);let M=_I(Math.ceil(dK(r)/2))+bx;if(_<yR||_>=M||I<yR||I>=M)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:N,k1:_,k2neg:T,k2:I}}function KAe(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function zAe(e,t){let r={};for(let i of Object.keys(t))r[i]=e[i]===void 0?t[i]:e[i];return dR(r.lowS,"lowS"),dR(r.prehash,"prehash"),r.format!==void 0&&KAe(r.format),r}var $Ae=class extends Error{constructor(t=""){super(t)}},mR={Err:$Ae,_tlv:{encode:(e,t)=>{let{Err:r}=mR;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=wP(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?wP(n.length/2|128):"";return wP(e)+o+n+t},decode(e,t){let{Err:r}=mR,i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=!!(n&128),d=0;if(!o)d=n;else{let y=n&127;if(!y)throw new r("tlv.decode(long): indefinite length not supported");if(y>4)throw new r("tlv.decode(long): byte length is too big");let _=t.subarray(i,i+y);if(_.length!==y)throw new r("tlv.decode: length bytes not complete");if(_[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(let I of _)d=d<<8|I;if(i+=y,d<128)throw new r("tlv.decode(long): not minimal encoding")}let g=t.subarray(i,i+d);if(g.length!==d)throw new r("tlv.decode: wrong value length");return{v:g,l:t.subarray(i+d)}}},_int:{encode(e){let{Err:t}=mR;if(e<yR)throw new t("integer: negative integers are not allowed");let r=wP(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=mR;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return ax(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=mR,n=du("signature",e),{v:o,l:d}=i.decode(48,n);if(d.length)throw new t("invalid signature: left bytes after parsing");let{v:g,l:y}=i.decode(2,o),{v:_,l:I}=i.decode(2,y);if(I.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(g),s:r.decode(_)}},hexFromSig(e){let{_tlv:t,_int:r}=mR,i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s)),o=i+n;return t.encode(48,o)}},yR=BigInt(0),bx=BigInt(1),Snt=BigInt(2),XK=BigInt(3),XKt=BigInt(4);function yx(e,t){let{BYTES:r}=e,i;if(typeof t=="bigint")i=t;else{let n=du("private key",t);try{i=e.fromBytes(n)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof t}`)}}if(!e.isValidNot0(i))throw new Error("invalid private key: out of range [1..N-1]");return i}function ZKt(e,t={}){let r=lK("weierstrass",e,t),{Fp:i,Fn:n}=r,o=r.CURVE,{h:d,n:g}=o;mI(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:y}=t;if(y&&(!i.is0(o.a)||typeof y.beta!="bigint"||!Array.isArray(y.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');let _=Cnt(i,n);function I(){if(!i.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function N(l,A,m){let{x:E,y:w}=A.toAffine(),x=i.toBytes(E);if(dR(m,"isCompressed"),m){I();let R=!i.isOdd(w);return Qf(Int(R),x)}else return Qf(Uint8Array.of(4),x,i.toBytes(w))}function T(l){W1(l,void 0,"Point");let{publicKey:A,publicKeyUncompressed:m}=_,E=l.length,w=l[0],x=l.subarray(1);if(E===A&&(w===2||w===3)){let R=i.fromBytes(x);if(!i.isValid(R))throw new Error("bad point: is not on curve, wrong x");let u=P(R),C;try{C=i.sqrt(u)}catch(X){let Ae=X instanceof Error?": "+X.message:"";throw new Error("bad point: is not on curve, sqrt error"+Ae)}I();let U=i.isOdd(C);return(w&1)===1!==U&&(C=i.neg(C)),{x:R,y:C}}else if(E===m&&w===4){let R=i.BYTES,u=i.fromBytes(x.subarray(0,R)),C=i.fromBytes(x.subarray(R,R*2));if(!G(u,C))throw new Error("bad point: is not on curve");return{x:u,y:C}}else throw new Error(`bad point: got length ${E}, expected compressed=${A} or uncompressed=${m}`)}let M=t.toBytes||N,D=t.fromBytes||T;function P(l){let A=i.sqr(l),m=i.mul(A,l);return i.add(i.add(m,i.mul(l,o.a)),o.b)}function G(l,A){let m=i.sqr(A),E=P(l);return i.eql(m,E)}if(!G(o.Gx,o.Gy))throw new Error("bad curve params: generator point");let q=i.mul(i.pow(o.a,XK),XKt),Y=i.mul(i.sqr(o.b),BigInt(27));if(i.is0(i.add(q,Y)))throw new Error("bad curve params: a or b");function ne(l,A,m=!1){if(!i.isValid(A)||m&&i.is0(A))throw new Error(`bad point coordinate ${l}`);return A}function ce(l){if(!(l instanceof se))throw new Error("ProjectivePoint expected")}function le(l){if(!y||!y.basises)throw new Error("no endo");return WKt(l,y.basises,n.ORDER)}let pe=sx((l,A)=>{let{X:m,Y:E,Z:w}=l;if(i.eql(w,i.ONE))return{x:m,y:E};let x=l.is0();A==null&&(A=x?i.ONE:i.inv(w));let R=i.mul(m,A),u=i.mul(E,A),C=i.mul(w,A);if(x)return{x:i.ZERO,y:i.ZERO};if(!i.eql(C,i.ONE))throw new Error("invZ was invalid");return{x:R,y:u}}),ae=sx(l=>{if(l.is0()){if(t.allowInfinityPoint&&!i.is0(l.Y))return;throw new Error("bad point: ZERO")}let{x:A,y:m}=l.toAffine();if(!i.isValid(A)||!i.isValid(m))throw new Error("bad point: x or y not field elements");if(!G(A,m))throw new Error("bad point: equation left != right");if(!l.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function W(l,A,m,E,w){return m=new se(i.mul(m.X,l),m.Y,m.Z),A=xP(E,A),m=xP(w,m),A.add(m)}class se{constructor(A,m,E){this.X=ne("x",A),this.Y=ne("y",m,!0),this.Z=ne("z",E),Object.freeze(this)}static CURVE(){return o}static fromAffine(A){let{x:m,y:E}=A||{};if(!A||!i.isValid(m)||!i.isValid(E))throw new Error("invalid affine point");if(A instanceof se)throw new Error("projective point not allowed");return i.is0(m)&&i.is0(E)?se.ZERO:new se(m,E,i.ONE)}static fromBytes(A){let m=se.fromAffine(D(W1(A,void 0,"point")));return m.assertValidity(),m}static fromHex(A){return se.fromBytes(du("pointHex",A))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(A=8,m=!0){return s.createCache(this,A),m||this.multiply(XK),this}assertValidity(){ae(this)}hasEvenY(){let{y:A}=this.toAffine();if(!i.isOdd)throw new Error("Field doesn't support isOdd");return!i.isOdd(A)}equals(A){ce(A);let{X:m,Y:E,Z:w}=this,{X:x,Y:R,Z:u}=A,C=i.eql(i.mul(m,u),i.mul(x,w)),U=i.eql(i.mul(E,u),i.mul(R,w));return C&&U}negate(){return new se(this.X,i.neg(this.Y),this.Z)}double(){let{a:A,b:m}=o,E=i.mul(m,XK),{X:w,Y:x,Z:R}=this,u=i.ZERO,C=i.ZERO,U=i.ZERO,F=i.mul(w,w),X=i.mul(x,x),Ae=i.mul(R,R),he=i.mul(w,x);return he=i.add(he,he),U=i.mul(w,R),U=i.add(U,U),u=i.mul(A,U),C=i.mul(E,Ae),C=i.add(u,C),u=i.sub(X,C),C=i.add(X,C),C=i.mul(u,C),u=i.mul(he,u),U=i.mul(E,U),Ae=i.mul(A,Ae),he=i.sub(F,Ae),he=i.mul(A,he),he=i.add(he,U),U=i.add(F,F),F=i.add(U,F),F=i.add(F,Ae),F=i.mul(F,he),C=i.add(C,F),Ae=i.mul(x,R),Ae=i.add(Ae,Ae),F=i.mul(Ae,he),u=i.sub(u,F),U=i.mul(Ae,X),U=i.add(U,U),U=i.add(U,U),new se(u,C,U)}add(A){ce(A);let{X:m,Y:E,Z:w}=this,{X:x,Y:R,Z:u}=A,C=i.ZERO,U=i.ZERO,F=i.ZERO,X=o.a,Ae=i.mul(o.b,XK),he=i.mul(m,x),$e=i.mul(E,R),Ge=i.mul(w,u),Re=i.add(m,E),Se=i.add(x,R);Re=i.mul(Re,Se),Se=i.add(he,$e),Re=i.sub(Re,Se),Se=i.add(m,w);let ct=i.add(x,u);return Se=i.mul(Se,ct),ct=i.add(he,Ge),Se=i.sub(Se,ct),ct=i.add(E,w),C=i.add(R,u),ct=i.mul(ct,C),C=i.add($e,Ge),ct=i.sub(ct,C),F=i.mul(X,Se),C=i.mul(Ae,Ge),F=i.add(C,F),C=i.sub($e,F),F=i.add($e,F),U=i.mul(C,F),$e=i.add(he,he),$e=i.add($e,he),Ge=i.mul(X,Ge),Se=i.mul(Ae,Se),$e=i.add($e,Ge),Ge=i.sub(he,Ge),Ge=i.mul(X,Ge),Se=i.add(Se,Ge),he=i.mul($e,Se),U=i.add(U,he),he=i.mul(ct,Se),C=i.mul(Re,C),C=i.sub(C,he),he=i.mul(Re,$e),F=i.mul(ct,F),F=i.add(F,he),new se(C,U,F)}subtract(A){return this.add(A.negate())}is0(){return this.equals(se.ZERO)}multiply(A){let{endo:m}=t;if(!n.isValidNot0(A))throw new Error("invalid scalar: out of range");let E,w,x=R=>s.cached(this,R,u=>hR(se,u));if(m){let{k1neg:R,k1:u,k2neg:C,k2:U}=le(A),{p:F,f:X}=x(u),{p:Ae,f:he}=x(U);w=X.add(he),E=W(m.beta,F,Ae,R,C)}else{let{p:R,f:u}=x(A);E=R,w=u}return hR(se,[E,w])[0]}multiplyUnsafe(A){let{endo:m}=t,E=this;if(!n.isValid(A))throw new Error("invalid scalar: out of range");if(A===yR||E.is0())return se.ZERO;if(A===bx)return E;if(s.hasCache(this))return this.multiply(A);if(m){let{k1neg:w,k1:x,k2neg:R,k2:u}=le(A),{p1:C,p2:U}=drt(se,E,x,u);return W(m.beta,C,U,w,R)}else return s.unsafe(E,A)}multiplyAndAddUnsafe(A,m,E){let w=this.multiplyUnsafe(m).add(A.multiplyUnsafe(E));return w.is0()?void 0:w}toAffine(A){return pe(this,A)}isTorsionFree(){let{isTorsionFree:A}=t;return d===bx?!0:A?A(se,this):s.unsafe(this,g).is0()}clearCofactor(){let{clearCofactor:A}=t;return d===bx?this:A?A(se,this):this.multiplyUnsafe(d)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}toBytes(A=!0){return dR(A,"isCompressed"),this.assertValidity(),M(se,this,A)}toHex(A=!0){return C_(this.toBytes(A))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(A=!0){return this.toBytes(A)}_setWindowSize(A){this.precompute(A)}static normalizeZ(A){return hR(se,A)}static msm(A,m){return dx(se,n,A,m)}static fromPrivateKey(A){return se.BASE.multiply(yx(n,A))}}se.BASE=new se(o.Gx,o.Gy,i.ONE),se.ZERO=new se(i.ZERO,i.ONE,i.ZERO),se.Fp=i,se.Fn=n;let O=n.BITS,s=new ux(se,t.endo?Math.ceil(O/2):O);return se.BASE.precompute(8),se}function Int(e){return Uint8Array.of(e?2:3)}function Cnt(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function jKt(e,t={}){let{Fn:r}=e,i=t.randomBytes||w_,n=Object.assign(Cnt(e.Fp,r),{seed:sAe(r.ORDER)});function o(M){try{return!!yx(r,M)}catch{return!1}}function d(M,D){let{publicKey:P,publicKeyUncompressed:G}=n;try{let q=M.length;return D===!0&&q!==P||D===!1&&q!==G?!1:!!e.fromBytes(M)}catch{return!1}}function g(M=i(n.seed)){return cAe(W1(M,n.seed,"seed"),r.ORDER)}function y(M,D=!0){return e.BASE.multiply(yx(r,M)).toBytes(D)}function _(M){let D=g(M);return{secretKey:D,publicKey:y(D)}}function I(M){if(typeof M=="bigint")return!1;if(M instanceof e)return!0;let{secretKey:D,publicKey:P,publicKeyUncompressed:G}=n;if(r.allowedLengths||D===P)return;let q=du("key",M).length;return q===P||q===G}function N(M,D,P=!0){if(I(M)===!0)throw new Error("first arg must be private key");if(I(D)===!1)throw new Error("second arg must be public key");let G=yx(r,M);return e.fromHex(D).multiply(G).toBytes(P)}return Object.freeze({getPublicKey:y,getSharedSecret:N,keygen:_,Point:e,utils:{isValidSecretKey:o,isValidPublicKey:d,randomSecretKey:g,isValidPrivateKey:o,randomPrivateKey:g,normPrivateKeyToScalar:M=>yx(r,M),precompute(M=8,D=e.BASE){return D.precompute(M,!1)}},lengths:n})}function e$t(e,t,r={}){nK(t),mI(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let i=r.randomBytes||w_,n=r.hmac||((m,...E)=>OC(t,m,Qf(...E))),{Fp:o,Fn:d}=e,{ORDER:g,BITS:y}=d,{keygen:_,getPublicKey:I,getSharedSecret:N,utils:T,lengths:M}=jKt(e,r),D={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},P="compact";function G(m){let E=g>>bx;return m>E}function q(m,E){if(!d.isValidNot0(E))throw new Error(`invalid signature ${m}: out of range 1..Point.Fn.ORDER`);return E}function Y(m,E){KAe(E);let w=M.signature,x=E==="compact"?w:E==="recovered"?w+1:void 0;return W1(m,x,`${E} signature`)}class ne{constructor(E,w,x){this.r=q("r",E),this.s=q("s",w),x!=null&&(this.recovery=x),Object.freeze(this)}static fromBytes(E,w=P){Y(E,w);let x;if(w==="der"){let{r:U,s:F}=mR.toSig(W1(E));return new ne(U,F)}w==="recovered"&&(x=E[0],w="compact",E=E.subarray(1));let R=d.BYTES,u=E.subarray(0,R),C=E.subarray(R,R*2);return new ne(d.fromBytes(u),d.fromBytes(C),x)}static fromHex(E,w){return this.fromBytes(_C(E),w)}addRecoveryBit(E){return new ne(this.r,this.s,E)}recoverPublicKey(E){let w=o.ORDER,{r:x,s:R,recovery:u}=this;if(u==null||![0,1,2,3].includes(u))throw new Error("recovery id invalid");if(g*Snt<w&&u>1)throw new Error("recovery id is ambiguous for h>1 curve");let U=u===2||u===3?x+g:x;if(!o.isValid(U))throw new Error("recovery id 2 or 3 invalid");let F=o.toBytes(U),X=e.fromBytes(Qf(Int((u&1)===0),F)),Ae=d.inv(U),he=le(du("msgHash",E)),$e=d.create(-he*Ae),Ge=d.create(R*Ae),Re=e.BASE.multiplyUnsafe($e).add(X.multiplyUnsafe(Ge));if(Re.is0())throw new Error("point at infinify");return Re.assertValidity(),Re}hasHighS(){return G(this.s)}toBytes(E=P){if(KAe(E),E==="der")return _C(mR.hexFromSig(this));let w=d.toBytes(this.r),x=d.toBytes(this.s);if(E==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Qf(Uint8Array.of(this.recovery),w,x)}return Qf(w,x)}toHex(E){return C_(this.toBytes(E))}assertValidity(){}static fromCompact(E){return ne.fromBytes(du("sig",E),"compact")}static fromDER(E){return ne.fromBytes(du("sig",E),"der")}normalizeS(){return this.hasHighS()?new ne(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return C_(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return C_(this.toBytes("compact"))}}let ce=r.bits2int||function(E){if(E.length>8192)throw new Error("input is too large");let w=ax(E),x=E.length*8-y;return x>0?w>>BigInt(x):w},le=r.bits2int_modN||function(E){return d.create(ce(E))},pe=_I(y);function ae(m){return OP("num < 2^"+y,m,yR,pe),d.toBytes(m)}function W(m,E){return W1(m,void 0,"message"),E?W1(t(m),void 0,"prehashed message"):m}function se(m,E,w){if(["recovered","canonical"].some($e=>$e in w))throw new Error("sign() legacy options not supported");let{lowS:x,prehash:R,extraEntropy:u}=zAe(w,D);m=W(m,R);let C=le(m),U=yx(d,E),F=[ae(U),ae(C)];if(u!=null&&u!==!1){let $e=u===!0?i(M.secretKey):u;F.push(du("extraEntropy",$e))}let X=Qf(...F),Ae=C;function he($e){let Ge=ce($e);if(!d.isValidNot0(Ge))return;let Re=d.inv(Ge),Se=e.BASE.multiply(Ge).toAffine(),ct=d.create(Se.x);if(ct===yR)return;let ze=d.create(Re*d.create(Ae+ct*U));if(ze===yR)return;let te=(Se.x===ct?0:2)|Number(Se.y&bx),Ue=ze;return x&&G(ze)&&(Ue=d.neg(ze),te^=1),new ne(ct,Ue,te)}return{seed:X,k2sig:he}}function O(m,E,w={}){m=du("message",m);let{seed:x,k2sig:R}=se(m,E,w);return $tt(t.outputLen,d.BYTES,n)(x,R)}function s(m){let E,w=typeof m=="string"||sR(m),x=!w&&m!==null&&typeof m=="object"&&typeof m.r=="bigint"&&typeof m.s=="bigint";if(!w&&!x)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(x)E=new ne(m.r,m.s);else if(w){try{E=ne.fromBytes(du("sig",m),"der")}catch(R){if(!(R instanceof mR.Err))throw R}if(!E)try{E=ne.fromBytes(du("sig",m),"compact")}catch{return!1}}return E||!1}function l(m,E,w,x={}){let{lowS:R,prehash:u,format:C}=zAe(x,D);if(w=du("publicKey",w),E=W(du("message",E),u),"strict"in x)throw new Error("options.strict was renamed to lowS");let U=C===void 0?s(m):ne.fromBytes(du("sig",m),C);if(U===!1)return!1;try{let F=e.fromBytes(w);if(R&&U.hasHighS())return!1;let{r:X,s:Ae}=U,he=le(E),$e=d.inv(Ae),Ge=d.create(he*$e),Re=d.create(X*$e),Se=e.BASE.multiplyUnsafe(Ge).add(F.multiplyUnsafe(Re));return Se.is0()?!1:d.create(Se.x)===X}catch{return!1}}function A(m,E,w={}){let{prehash:x}=zAe(w,D);return E=W(E,x),ne.fromBytes(m,"recovered").recoverPublicKey(E).toBytes()}return Object.freeze({keygen:_,getPublicKey:I,getSharedSecret:N,utils:T,lengths:M,Point:e,sign:O,verify:l,recoverPublicKey:A,Signature:ne,hash:t})}function t$t(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,i=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(d=>Math.ceil(d/2)))):void 0,n=X1(t.n,{BITS:e.nBitLength,allowedLengths:i,modFromBytes:e.wrapPrivateKey}),o={Fp:r,Fn:n,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:o}}function r$t(e){let{CURVE:t,curveOpts:r}=t$t(e),i={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:i}}function n$t(e,t){let r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,fK(r.Fn.ORDER,r.Fn.BITS))})}function wnt(e){let{CURVE:t,curveOpts:r,hash:i,ecdsaOpts:n}=r$t(e),o=ZKt(t,r),d=e$t(o,i,n);return n$t(e,d)}function Ont(e,t){let r=i=>wnt({...e,hash:i});return{...r(t),create:r}}var WAe={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},i$t={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]};var Nnt=BigInt(2);function o$t(e){let t=WAe.p,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),d=BigInt(23),g=BigInt(44),y=BigInt(88),_=e*e*e%t,I=_*_*e%t,N=y0(I,r,t)*I%t,T=y0(N,r,t)*I%t,M=y0(T,Nnt,t)*_%t,D=y0(M,n,t)*M%t,P=y0(D,o,t)*D%t,G=y0(P,g,t)*P%t,q=y0(G,y,t)*G%t,Y=y0(q,g,t)*P%t,ne=y0(Y,r,t)*I%t,ce=y0(ne,d,t)*D%t,le=y0(ce,i,t)*_%t,pe=y0(le,Nnt,t);if(!YAe.eql(YAe.sqr(pe),e))throw new Error("Cannot find square root");return pe}var YAe=X1(WAe.p,{sqrt:o$t}),ZK=Ont({...WAe,Fp:YAe,lowS:!0,endo:i$t},qm);var pWn=Fp.utils.randomPrivateKey,xnt=()=>{let e=Fp.utils.randomPrivateKey(),t=ape(e),r=new Uint8Array(64);return r.set(e),r.set(t,32),{publicKey:t,secretKey:r}},ape=Fp.getPublicKey;function Tnt(e){try{return Fp.ExtendedPoint.fromHex(e),!0}catch{return!1}}var Wnt=(e,t)=>Fp.sign(e,t.slice(0,32)),a$t=Fp.verify,Ls=e=>fe.isBuffer(e)?e:e instanceof Uint8Array?fe.from(e.buffer,e.byteOffset,e.byteLength):fe.from(e),spe=class{constructor(t){Object.assign(this,t)}encode(){return fe.from((0,Sx.serialize)(t$,this))}static decode(t){return(0,Sx.deserialize)(t$,this,t)}static decodeUnchecked(t){return(0,Sx.deserializeUnchecked)(t$,this,t)}};var t$=new Map,Xnt,s$t=32,xI=32;function c$t(e){return e._bn!==void 0}var Bnt=1,xi=class e extends spe{constructor(t){if(super({}),this._bn=void 0,c$t(t))this._bn=t._bn;else{if(typeof t=="string"){let r=pl.default.decode(t);if(r.length!=xI)throw new Error("Invalid public key input");this._bn=new ope.default(r)}else this._bn=new ope.default(t);if(this._bn.byteLength()>xI)throw new Error("Invalid public key input")}}static unique(){let t=new e(Bnt);return Bnt+=1,new e(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return pl.default.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){let t=this._bn.toArrayLike(fe);if(t.length===xI)return t;let r=fe.alloc(32);return t.copy(r,32-t.length),r}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,r,i){let n=fe.concat([t.toBuffer(),fe.from(r),i.toBuffer()]),o=BP(n);return new e(o)}static createProgramAddressSync(t,r){let i=fe.alloc(0);t.forEach(function(o){if(o.length>s$t)throw new TypeError("Max seed length exceeded");i=fe.concat([i,Ls(o)])}),i=fe.concat([i,r.toBuffer(),fe.from("ProgramDerivedAddress")]);let n=BP(i);if(Tnt(n))throw new Error("Invalid seeds, address must fall off the curve");return new e(n)}static async createProgramAddress(t,r){return this.createProgramAddressSync(t,r)}static findProgramAddressSync(t,r){let i=255,n;for(;i!=0;){try{let o=t.concat(fe.from([i]));n=this.createProgramAddressSync(o,r)}catch(o){if(o instanceof TypeError)throw o;i--;continue}return[n,i]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,r){return this.findProgramAddressSync(t,r)}static isOnCurve(t){let r=new e(t);return Tnt(r.toBytes())}};Xnt=xi;xi.default=new Xnt("11111111111111111111111111111111");t$.set(xi,{kind:"struct",fields:[["_bn","u256"]]});var gWn=new xi("BPFLoader1111111111111111111111111111111111"),TC=1232,Znt=127,jnt=64,r$=class extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}};Object.defineProperty(r$.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var n$=class extends Error{constructor(t,r){super(`Transaction was not confirmed in ${r.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}};Object.defineProperty(n$.prototype,"name",{value:"TransactionExpiredTimeoutError"});var xC=class extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}};Object.defineProperty(xC.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var vx=class{constructor(t,r){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=r}keySegments(){let t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(let r of this.keySegments()){if(t<r.length)return r[t];t-=r.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");let i=new Map;this.keySegments().flat().forEach((o,d)=>{i.set(o.toBase58(),d)});let n=o=>{let d=i.get(o.toBase58());if(d===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return d};return t.map(o=>({programIdIndex:n(o.programId),accountKeyIndexes:o.keys.map(d=>n(d.pubkey)),data:o.data}))}},_s=(e="publicKey")=>Br.blob(32,e);var Ex=(e="string")=>{let t=Br.struct([Br.u32("length"),Br.u32("lengthPadding"),Br.blob(Br.offset(Br.u32(),-8),"chars")],e),r=t.decode.bind(t),i=t.encode.bind(t),n=t;return n.decode=(o,d)=>r(o,d).chars.toString(),n.encode=(o,d,g)=>{let y={chars:fe.from(o,"utf8")};return i(y,d,g)},n.alloc=o=>Br.u32().span+Br.u32().span+fe.from(o,"utf8").length,n},u$t=(e="authorized")=>Br.struct([_s("staker"),_s("withdrawer")],e),d$t=(e="lockup")=>Br.struct([Br.ns64("unixTimestamp"),Br.ns64("epoch"),_s("custodian")],e),f$t=(e="voteInit")=>Br.struct([_s("nodePubkey"),_s("authorizedVoter"),_s("authorizedWithdrawer"),Br.u8("commission")],e),l$t=(e="voteAuthorizeWithSeedArgs")=>Br.struct([Br.u32("voteAuthorizationType"),_s("currentAuthorityDerivedKeyOwnerPubkey"),Ex("currentAuthorityDerivedKeySeed"),_s("newAuthorized")],e);function eit(e,t){let r=n=>{if(n.span>=0)return n.span;if(typeof n.alloc=="function")return n.alloc(t[n.property]);if("count"in n&&"elementLayout"in n){let o=t[n.property];if(Array.isArray(o))return o.length*r(n.elementLayout)}else if("fields"in n)return eit({layout:n},t[n.property]);return 0},i=0;return e.layout.fields.forEach(n=>{i+=r(n)}),i}function x_(e){let t=0,r=0;for(;;){let i=e.shift();if(t|=(i&127)<<r*7,r+=1,(i&128)===0)break}return t}function T_(e,t){let r=t;for(;;){let i=r&127;if(r>>=7,r==0){e.push(i);break}else i|=128,e.push(i)}}function Ku(e,t){if(!e)throw new Error(t||"Assertion failed")}var i$=class e{constructor(t,r){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=r}static compile(t,r){let i=new Map,n=d=>{let g=d.toBase58(),y=i.get(g);return y===void 0&&(y={isSigner:!1,isWritable:!1,isInvoked:!1},i.set(g,y)),y},o=n(r);o.isSigner=!0,o.isWritable=!0;for(let d of t){n(d.programId).isInvoked=!0;for(let g of d.keys){let y=n(g.pubkey);y.isSigner||=g.isSigner,y.isWritable||=g.isWritable}}return new e(r,i)}getMessageComponents(){let t=[...this.keyMetaMap.entries()];Ku(t.length<=256,"Max static account keys length exceeded");let r=t.filter(([,y])=>y.isSigner&&y.isWritable),i=t.filter(([,y])=>y.isSigner&&!y.isWritable),n=t.filter(([,y])=>!y.isSigner&&y.isWritable),o=t.filter(([,y])=>!y.isSigner&&!y.isWritable),d={numRequiredSignatures:r.length+i.length,numReadonlySignedAccounts:i.length,numReadonlyUnsignedAccounts:o.length};{Ku(r.length>0,"Expected at least one writable signer key");let[y]=r[0];Ku(y===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}let g=[...r.map(([y])=>new xi(y)),...i.map(([y])=>new xi(y)),...n.map(([y])=>new xi(y)),...o.map(([y])=>new xi(y))];return[d,g]}extractTableLookup(t){let[r,i]=this.drainKeysFoundInLookupTable(t.state.addresses,d=>!d.isSigner&&!d.isInvoked&&d.isWritable),[n,o]=this.drainKeysFoundInLookupTable(t.state.addresses,d=>!d.isSigner&&!d.isInvoked&&!d.isWritable);if(!(r.length===0&&n.length===0))return[{accountKey:t.key,writableIndexes:r,readonlyIndexes:n},{writable:i,readonly:o}]}drainKeysFoundInLookupTable(t,r){let i=new Array,n=new Array;for(let[o,d]of this.keyMetaMap.entries())if(r(d)){let g=new xi(o),y=t.findIndex(_=>_.equals(g));y>=0&&(Ku(y<256,"Max lookup table index exceeded"),i.push(y),n.push(g),this.keyMetaMap.delete(o))}return[i,n]}},tit="Reached end of buffer unexpectedly";function ER(e){if(e.length===0)throw new Error(tit);return e.shift()}function B_(e,...t){let[r]=t;if(t.length===2?r+(t[1]??0)>e.length:r>=e.length)throw new Error(tit);return e.splice(...t)}var BC=class e{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(r=>new xi(r)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(r=>this.indexToProgramIds.set(r.programIdIndex,this.accountKeys[r.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:pl.default.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new vx(this.staticAccountKeys)}static compile(t){let r=i$.compile(t.instructions,t.payerKey),[i,n]=r.getMessageComponents(),d=new vx(n).compileInstructions(t.instructions).map(g=>({programIdIndex:g.programIdIndex,accounts:g.accountKeyIndexes,data:pl.default.encode(g.data)}));return new e({header:i,accountKeys:n,recentBlockhash:t.recentBlockhash,instructions:d})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){let r=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){let i=t-r,o=this.accountKeys.length-r-this.header.numReadonlyUnsignedAccounts;return i<o}else{let i=r-this.header.numReadonlySignedAccounts;return t<i}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,r)=>!this.isProgramId(r))}serialize(){let t=this.accountKeys.length,r=[];T_(r,t);let i=this.instructions.map(N=>{let{accounts:T,programIdIndex:M}=N,D=Array.from(pl.default.decode(N.data)),P=[];T_(P,T.length);let G=[];return T_(G,D.length),{programIdIndex:M,keyIndicesCount:fe.from(P),keyIndices:T,dataLength:fe.from(G),data:D}}),n=[];T_(n,i.length);let o=fe.alloc(TC);fe.from(n).copy(o);let d=n.length;i.forEach(N=>{let M=Br.struct([Br.u8("programIdIndex"),Br.blob(N.keyIndicesCount.length,"keyIndicesCount"),Br.seq(Br.u8("keyIndex"),N.keyIndices.length,"keyIndices"),Br.blob(N.dataLength.length,"dataLength"),Br.seq(Br.u8("userdatum"),N.data.length,"data")]).encode(N,o,d);d+=M}),o=o.slice(0,d);let g=Br.struct([Br.blob(1,"numRequiredSignatures"),Br.blob(1,"numReadonlySignedAccounts"),Br.blob(1,"numReadonlyUnsignedAccounts"),Br.blob(r.length,"keyCount"),Br.seq(_s("key"),t,"keys"),_s("recentBlockhash")]),y={numRequiredSignatures:fe.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:fe.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:fe.from([this.header.numReadonlyUnsignedAccounts]),keyCount:fe.from(r),keys:this.accountKeys.map(N=>Ls(N.toBytes())),recentBlockhash:pl.default.decode(this.recentBlockhash)},_=fe.alloc(2048),I=g.encode(y,_);return o.copy(_,I),_.slice(0,I+o.length)}static from(t){let r=[...t],i=ER(r);if(i!==(i&Znt))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");let n=ER(r),o=ER(r),d=x_(r),g=[];for(let T=0;T<d;T++){let M=B_(r,0,xI);g.push(new xi(fe.from(M)))}let y=B_(r,0,xI),_=x_(r),I=[];for(let T=0;T<_;T++){let M=ER(r),D=x_(r),P=B_(r,0,D),G=x_(r),q=B_(r,0,G),Y=pl.default.encode(fe.from(q));I.push({programIdIndex:M,accounts:P,data:Y})}let N={header:{numRequiredSignatures:i,numReadonlySignedAccounts:n,numReadonlyUnsignedAccounts:o},recentBlockhash:pl.default.encode(fe.from(y)),accountKeys:g,instructions:I};return new e(N)}},cpe=class e{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(let r of this.addressTableLookups)t+=r.readonlyIndexes.length+r.writableIndexes.length;return t}getAccountKeys(t){let r;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");r=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)r=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new vx(this.staticAccountKeys,r)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){let r=this.header.numRequiredSignatures,i=this.staticAccountKeys.length;if(t>=i){let n=t-i,o=this.addressTableLookups.reduce((d,g)=>d+g.writableIndexes.length,0);return n<o}else if(t>=this.header.numRequiredSignatures){let n=t-r,d=i-r-this.header.numReadonlyUnsignedAccounts;return n<d}else{let n=r-this.header.numReadonlySignedAccounts;return t<n}}resolveAddressTableLookups(t){let r={writable:[],readonly:[]};for(let i of this.addressTableLookups){let n=t.find(o=>o.key.equals(i.accountKey));if(!n)throw new Error(`Failed to find address lookup table account for table key ${i.accountKey.toBase58()}`);for(let o of i.writableIndexes)if(o<n.state.addresses.length)r.writable.push(n.state.addresses[o]);else throw new Error(`Failed to find address for index ${o} in address lookup table ${i.accountKey.toBase58()}`);for(let o of i.readonlyIndexes)if(o<n.state.addresses.length)r.readonly.push(n.state.addresses[o]);else throw new Error(`Failed to find address for index ${o} in address lookup table ${i.accountKey.toBase58()}`)}return r}static compile(t){let r=i$.compile(t.instructions,t.payerKey),i=new Array,n={writable:new Array,readonly:new Array},o=t.addressLookupTableAccounts||[];for(let I of o){let N=r.extractTableLookup(I);if(N!==void 0){let[T,{writable:M,readonly:D}]=N;i.push(T),n.writable.push(...M),n.readonly.push(...D)}}let[d,g]=r.getMessageComponents(),_=new vx(g,n).compileInstructions(t.instructions);return new e({header:d,staticAccountKeys:g,recentBlockhash:t.recentBlockhash,compiledInstructions:_,addressTableLookups:i})}serialize(){let t=Array();T_(t,this.staticAccountKeys.length);let r=this.serializeInstructions(),i=Array();T_(i,this.compiledInstructions.length);let n=this.serializeAddressTableLookups(),o=Array();T_(o,this.addressTableLookups.length);let d=Br.struct([Br.u8("prefix"),Br.struct([Br.u8("numRequiredSignatures"),Br.u8("numReadonlySignedAccounts"),Br.u8("numReadonlyUnsignedAccounts")],"header"),Br.blob(t.length,"staticAccountKeysLength"),Br.seq(_s(),this.staticAccountKeys.length,"staticAccountKeys"),_s("recentBlockhash"),Br.blob(i.length,"instructionsLength"),Br.blob(r.length,"serializedInstructions"),Br.blob(o.length,"addressTableLookupsLength"),Br.blob(n.length,"serializedAddressTableLookups")]),g=new Uint8Array(TC),_=d.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(I=>I.toBytes()),recentBlockhash:pl.default.decode(this.recentBlockhash),instructionsLength:new Uint8Array(i),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(o),serializedAddressTableLookups:n},g);return g.slice(0,_)}serializeInstructions(){let t=0,r=new Uint8Array(TC);for(let i of this.compiledInstructions){let n=Array();T_(n,i.accountKeyIndexes.length);let o=Array();T_(o,i.data.length);let d=Br.struct([Br.u8("programIdIndex"),Br.blob(n.length,"encodedAccountKeyIndexesLength"),Br.seq(Br.u8(),i.accountKeyIndexes.length,"accountKeyIndexes"),Br.blob(o.length,"encodedDataLength"),Br.blob(i.data.length,"data")]);t+=d.encode({programIdIndex:i.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(n),accountKeyIndexes:i.accountKeyIndexes,encodedDataLength:new Uint8Array(o),data:i.data},r,t)}return r.slice(0,t)}serializeAddressTableLookups(){let t=0,r=new Uint8Array(TC);for(let i of this.addressTableLookups){let n=Array();T_(n,i.writableIndexes.length);let o=Array();T_(o,i.readonlyIndexes.length);let d=Br.struct([_s("accountKey"),Br.blob(n.length,"encodedWritableIndexesLength"),Br.seq(Br.u8(),i.writableIndexes.length,"writableIndexes"),Br.blob(o.length,"encodedReadonlyIndexesLength"),Br.seq(Br.u8(),i.readonlyIndexes.length,"readonlyIndexes")]);t+=d.encode({accountKey:i.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(n),writableIndexes:i.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(o),readonlyIndexes:i.readonlyIndexes},r,t)}return r.slice(0,t)}static deserialize(t){let r=[...t],i=ER(r),n=i&Znt;Ku(i!==n,"Expected versioned message but received legacy message");let o=n;Ku(o===0,`Expected versioned message with version 0 but found version ${o}`);let d={numRequiredSignatures:ER(r),numReadonlySignedAccounts:ER(r),numReadonlyUnsignedAccounts:ER(r)},g=[],y=x_(r);for(let D=0;D<y;D++)g.push(new xi(B_(r,0,xI)));let _=pl.default.encode(B_(r,0,xI)),I=x_(r),N=[];for(let D=0;D<I;D++){let P=ER(r),G=x_(r),q=B_(r,0,G),Y=x_(r),ne=new Uint8Array(B_(r,0,Y));N.push({programIdIndex:P,accountKeyIndexes:q,data:ne})}let T=x_(r),M=[];for(let D=0;D<T;D++){let P=new xi(B_(r,0,xI)),G=x_(r),q=B_(r,0,G),Y=x_(r),ne=B_(r,0,Y);M.push({accountKey:P,writableIndexes:q,readonlyIndexes:ne})}return new e({header:d,staticAccountKeys:g,recentBlockhash:_,compiledInstructions:N,addressTableLookups:M})}};var OI=(function(e){return e[e.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",e[e.PROCESSED=1]="PROCESSED",e[e.TIMED_OUT=2]="TIMED_OUT",e[e.NONCE_INVALID=3]="NONCE_INVALID",e})({}),h$t=fe.alloc(jnt).fill(0),ms=class{constructor(t){this.keys=void 0,this.programId=void 0,this.data=fe.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:r,isWritable:i})=>({pubkey:t.toJSON(),isSigner:r,isWritable:i})),programId:this.programId.toJSON(),data:[...this.data]}}},Us=class e{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){let{minContextSlot:r,nonceInfo:i}=t;this.minNonceContextSlot=r,this.nonceInfo=i}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){let{blockhash:r,lastValidBlockHeight:i}=t;this.recentBlockhash=r,this.lastValidBlockHeight=i}else{let{recentBlockhash:r,nonceInfo:i}=t;i&&(this.nonceInfo=i),this.recentBlockhash=r}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(r=>{"instructions"in r?this.instructions=this.instructions.concat(r.instructions):"data"in r&&"programId"in r&&"keys"in r?this.instructions.push(r):this.instructions.push(new ms(r))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,r;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?r=[this.nonceInfo.nonceInstruction,...this.instructions]:r=this.instructions):(t=this.recentBlockhash,r=this.instructions),!t)throw new Error("Transaction recentBlockhash required");r.length<1&&console.warn("No instructions provided");let i;if(this.feePayer)i=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)i=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let P=0;P<r.length;P++)if(r[P].programId===void 0)throw new Error(`Transaction instruction index ${P} has undefined program id`);let n=[],o=[];r.forEach(P=>{P.keys.forEach(q=>{o.push({...q})});let G=P.programId.toString();n.includes(G)||n.push(G)}),n.forEach(P=>{o.push({pubkey:new xi(P),isSigner:!1,isWritable:!1})});let d=[];o.forEach(P=>{let G=P.pubkey.toString(),q=d.findIndex(Y=>Y.pubkey.toString()===G);q>-1?(d[q].isWritable=d[q].isWritable||P.isWritable,d[q].isSigner=d[q].isSigner||P.isSigner):d.push(P)}),d.sort(function(P,G){if(P.isSigner!==G.isSigner)return P.isSigner?-1:1;if(P.isWritable!==G.isWritable)return P.isWritable?-1:1;let q={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return P.pubkey.toBase58().localeCompare(G.pubkey.toBase58(),"en",q)});let g=d.findIndex(P=>P.pubkey.equals(i));if(g>-1){let[P]=d.splice(g,1);P.isSigner=!0,P.isWritable=!0,d.unshift(P)}else d.unshift({pubkey:i,isSigner:!0,isWritable:!0});for(let P of this.signatures){let G=d.findIndex(q=>q.pubkey.equals(P.publicKey));if(G>-1)d[G].isSigner||(d[G].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${P.publicKey.toString()}`)}let y=0,_=0,I=0,N=[],T=[];d.forEach(({pubkey:P,isSigner:G,isWritable:q})=>{G?(N.push(P.toString()),y+=1,q||(_+=1)):(T.push(P.toString()),q||(I+=1))});let M=N.concat(T),D=r.map(P=>{let{data:G,programId:q}=P;return{programIdIndex:M.indexOf(q.toString()),accounts:P.keys.map(Y=>M.indexOf(Y.pubkey.toString())),data:pl.default.encode(G)}});return D.forEach(P=>{Ku(P.programIdIndex>=0),P.accounts.forEach(G=>Ku(G>=0))}),new BC({header:{numRequiredSignatures:y,numReadonlySignedAccounts:_,numReadonlyUnsignedAccounts:I},accountKeys:M,recentBlockhash:t,instructions:D})}_compile(){let t=this.compileMessage(),r=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===r.length&&this.signatures.every((n,o)=>r[o].equals(n.publicKey))||(this.signatures=r.map(i=>({signature:null,publicKey:i}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");let r=new Set;this.signatures=t.filter(i=>{let n=i.toString();return r.has(n)?!1:(r.add(n),!0)}).map(i=>({signature:null,publicKey:i}))}sign(...t){if(t.length===0)throw new Error("No signers");let r=new Set,i=[];for(let o of t){let d=o.publicKey.toString();r.has(d)||(r.add(d),i.push(o))}this.signatures=i.map(o=>({signature:null,publicKey:o.publicKey}));let n=this._compile();this._partialSign(n,...i)}partialSign(...t){if(t.length===0)throw new Error("No signers");let r=new Set,i=[];for(let o of t){let d=o.publicKey.toString();r.has(d)||(r.add(d),i.push(o))}let n=this._compile();this._partialSign(n,...i)}_partialSign(t,...r){let i=t.serialize();r.forEach(n=>{let o=Wnt(i,n.secretKey);this._addSignature(n.publicKey,Ls(o))})}addSignature(t,r){this._compile(),this._addSignature(t,r)}_addSignature(t,r){Ku(r.length===64);let i=this.signatures.findIndex(n=>t.equals(n.publicKey));if(i<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[i].signature=fe.from(r)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,r){let i={};for(let{signature:n,publicKey:o}of this.signatures)n===null?r&&(i.missing||=[]).push(o):a$t(n,t,o.toBytes())||(i.invalid||=[]).push(o);return i.invalid||i.missing?i:void 0}serialize(t){let{requireAllSignatures:r,verifySignatures:i}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),n=this.serializeMessage();if(i){let o=this._getMessageSignednessErrors(n,r);if(o){let d="Signature verification failed.";throw o.invalid&&(d+=`
|
|
Invalid signature for public key${o.invalid.length===1?"":"(s)"} [\`${o.invalid.map(g=>g.toBase58()).join("`, `")}\`].`),o.missing&&(d+=`
|
|
Missing signature for public key${o.missing.length===1?"":"(s)"} [\`${o.missing.map(g=>g.toBase58()).join("`, `")}\`].`),new Error(d)}}return this._serialize(n)}_serialize(t){let{signatures:r}=this,i=[];T_(i,r.length);let n=i.length+r.length*64+t.length,o=fe.alloc(n);return Ku(r.length<256),fe.from(i).copy(o,0),r.forEach(({signature:d},g)=>{d!==null&&(Ku(d.length===64,"signature has invalid length"),fe.from(d).copy(o,i.length+g*64))}),t.copy(o,i.length+r.length*64),Ku(o.length<=TC,`Transaction too large: ${o.length} > ${TC}`),o}get keys(){return Ku(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Ku(this.instructions.length===1),this.instructions[0].programId}get data(){return Ku(this.instructions.length===1),this.instructions[0].data}static from(t){let r=[...t],i=x_(r),n=[];for(let o=0;o<i;o++){let d=B_(r,0,jnt);n.push(pl.default.encode(fe.from(d)))}return e.populate(BC.from(r),n)}static populate(t,r=[]){let i=new e;return i.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(i.feePayer=t.accountKeys[0]),r.forEach((n,o)=>{let d={signature:n==pl.default.encode(h$t)?null:pl.default.decode(n),publicKey:t.accountKeys[o]};i.signatures.push(d)}),t.instructions.forEach(n=>{let o=n.accounts.map(d=>{let g=t.accountKeys[d];return{pubkey:g,isSigner:i.signatures.some(y=>y.publicKey.toString()===g.toString())||t.isAccountSigner(d),isWritable:t.isAccountWritable(d)}});i.instructions.push(new ms({keys:o,programId:t.accountKeys[n.programIdIndex],data:pl.default.decode(n.data)}))}),i._message=t,i._json=i.toJSON(),i}};var A$t=160,p$t=64,g$t=A$t/p$t,rit=1e3/g$t,bR=new xi("SysvarC1ock11111111111111111111111111111111"),_Wn=new xi("SysvarEpochSchedu1e111111111111111111111111"),mWn=new xi("Sysvar1nstructions1111111111111111111111111"),XAe=new xi("SysvarRecentB1ockHashes11111111111111111111"),YP=new xi("SysvarRent111111111111111111111111111111111"),yWn=new xi("SysvarRewards111111111111111111111111111111"),bWn=new xi("SysvarS1otHashes111111111111111111111111111"),EWn=new xi("SysvarS1otHistory11111111111111111111111111"),ZAe=new xi("SysvarStakeHistory1111111111111111111111111"),WP=class extends Error{constructor({action:t,signature:r,transactionMessage:i,logs:n}){let o=n?`Logs:
|
|
${JSON.stringify(n.slice(-10),null,2)}. `:"",d="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.",g;switch(t){case"send":g=`Transaction ${r} resulted in an error.
|
|
${i}. `+o+d;break;case"simulate":g=`Simulation failed.
|
|
Message: ${i}.
|
|
`+o+d;break;default:g=`Unknown action '${(y=>y)(t)}'`}super(g),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=r,this.transactionMessage=i,this.transactionLogs=n||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){let t=this.transactionLogs;if(!(t!=null&&typeof t=="object"&&"then"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((r,i)=>{t.getTransaction(this.signature).then(n=>{if(n&&n.meta&&n.meta.logMessages){let o=n.meta.logMessages;this.transactionLogs=o,r(o)}else i(new Error("Log messages not found"))}).catch(i)})),await this.transactionLogs}};var ao=class extends Error{constructor({code:t,message:r,data:i},n){super(n!=null?`${n}: ${r}`:r),this.code=void 0,this.data=void 0,this.code=t,this.data=i,this.name="SolanaJSONRPCError"}};async function Mnt(e,t,r,i){let n=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,maxRetries:i.maxRetries,minContextSlot:i.minContextSlot},o=await e.sendTransaction(t,r,n),d;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)d=(await e.confirmTransaction({abortSignal:i?.abortSignal,signature:o,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},i&&i.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){let{nonceInstruction:g}=t.nonceInfo,y=g.keys[0].pubkey;d=(await e.confirmTransaction({abortSignal:i?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:y,nonceValue:t.nonceInfo.nonce,signature:o},i&&i.commitment)).value}else i?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),d=(await e.confirmTransaction(o,i&&i.commitment)).value;if(d.err)throw o!=null?new WP({action:"send",signature:o,transactionMessage:`Status: (${JSON.stringify(d)})`}):new Error(`Transaction ${o} failed (${JSON.stringify(d)})`);return o}function NC(e){return new Promise(t=>setTimeout(t,e))}function $s(e,t){let r=e.layout.span>=0?e.layout.span:eit(e,t),i=fe.alloc(r),n=Object.assign({instruction:e.index},t);return e.layout.encode(n,i),i}var _$t=Br.nu64("lamportsPerSignature"),nit=Br.struct([Br.u32("version"),Br.u32("state"),_s("authorizedPubkey"),_s("nonce"),Br.struct([_$t],"feeCalculator")]),Dnt=nit.span,upe=class e{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){let r=nit.decode(Ls(t),0);return new e({authorizedPubkey:new xi(r.authorizedPubkey),nonce:new xi(r.nonce).toString(),feeCalculator:r.feeCalculator})}};function Rx(e){let t=(0,$nt.blob)(8,e),r=t.decode.bind(t),i=t.encode.bind(t),n=t,o=Urt();return n.decode=(d,g)=>{let y=r(d,g);return o.decode(y)},n.encode=(d,g,y)=>{let _=o.encode(d);return i(_,g,y)},n}var N_=Object.freeze({Create:{index:0,layout:Br.struct([Br.u32("instruction"),Br.ns64("lamports"),Br.ns64("space"),_s("programId")])},Assign:{index:1,layout:Br.struct([Br.u32("instruction"),_s("programId")])},Transfer:{index:2,layout:Br.struct([Br.u32("instruction"),Rx("lamports")])},CreateWithSeed:{index:3,layout:Br.struct([Br.u32("instruction"),_s("base"),Ex("seed"),Br.ns64("lamports"),Br.ns64("space"),_s("programId")])},AdvanceNonceAccount:{index:4,layout:Br.struct([Br.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:Br.struct([Br.u32("instruction"),Br.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:Br.struct([Br.u32("instruction"),_s("authorized")])},AuthorizeNonceAccount:{index:7,layout:Br.struct([Br.u32("instruction"),_s("authorized")])},Allocate:{index:8,layout:Br.struct([Br.u32("instruction"),Br.ns64("space")])},AllocateWithSeed:{index:9,layout:Br.struct([Br.u32("instruction"),_s("base"),Ex("seed"),Br.ns64("space"),_s("programId")])},AssignWithSeed:{index:10,layout:Br.struct([Br.u32("instruction"),_s("base"),Ex("seed"),_s("programId")])},TransferWithSeed:{index:11,layout:Br.struct([Br.u32("instruction"),Rx("lamports"),Ex("seed"),_s("programId")])},UpgradeNonceAccount:{index:12,layout:Br.struct([Br.u32("instruction")])}}),Td=class e{constructor(){}static createAccount(t){let r=N_.Create,i=$s(r,{lamports:t.lamports,space:t.space,programId:Ls(t.programId.toBuffer())});return new ms({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:i})}static transfer(t){let r,i;if("basePubkey"in t){let n=N_.TransferWithSeed;r=$s(n,{lamports:BigInt(t.lamports),seed:t.seed,programId:Ls(t.programId.toBuffer())}),i=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{let n=N_.Transfer;r=$s(n,{lamports:BigInt(t.lamports)}),i=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new ms({keys:i,programId:this.programId,data:r})}static assign(t){let r,i;if("basePubkey"in t){let n=N_.AssignWithSeed;r=$s(n,{base:Ls(t.basePubkey.toBuffer()),seed:t.seed,programId:Ls(t.programId.toBuffer())}),i=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{let n=N_.Assign;r=$s(n,{programId:Ls(t.programId.toBuffer())}),i=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new ms({keys:i,programId:this.programId,data:r})}static createAccountWithSeed(t){let r=N_.CreateWithSeed,i=$s(r,{base:Ls(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:Ls(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||n.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new ms({keys:n,programId:this.programId,data:i})}static createNonceAccount(t){let r=new Us;"basePubkey"in t&&"seed"in t?r.add(e.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Dnt,programId:this.programId})):r.add(e.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Dnt,programId:this.programId}));let i={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return r.add(this.nonceInitialize(i)),r}static nonceInitialize(t){let r=N_.InitializeNonceAccount,i=$s(r,{authorized:Ls(t.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:XAe,isSigner:!1,isWritable:!1},{pubkey:YP,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new ms(n)}static nonceAdvance(t){let r=N_.AdvanceNonceAccount,i=$s(r),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:XAe,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new ms(n)}static nonceWithdraw(t){let r=N_.WithdrawNonceAccount,i=$s(r,{lamports:t.lamports});return new ms({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:XAe,isSigner:!1,isWritable:!1},{pubkey:YP,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static nonceAuthorize(t){let r=N_.AuthorizeNonceAccount,i=$s(r,{authorized:Ls(t.newAuthorizedPubkey.toBuffer())});return new ms({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static allocate(t){let r,i;if("basePubkey"in t){let n=N_.AllocateWithSeed;r=$s(n,{base:Ls(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:Ls(t.programId.toBuffer())}),i=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{let n=N_.Allocate;r=$s(n,{space:t.space}),i=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new ms({keys:i,programId:this.programId,data:r})}};Td.programId=new xi("11111111111111111111111111111111");var m$t=TC-300,dpe=class e{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/e.chunkSize)+1+1)}static async load(t,r,i,n,o){{let N=await t.getMinimumBalanceForRentExemption(o.length),T=await t.getAccountInfo(i.publicKey,"confirmed"),M=null;if(T!==null){if(T.executable)return console.error("Program load failed, account is already executable"),!1;T.data.length!==o.length&&(M=M||new Us,M.add(Td.allocate({accountPubkey:i.publicKey,space:o.length}))),T.owner.equals(n)||(M=M||new Us,M.add(Td.assign({accountPubkey:i.publicKey,programId:n}))),T.lamports<N&&(M=M||new Us,M.add(Td.transfer({fromPubkey:r.publicKey,toPubkey:i.publicKey,lamports:N-T.lamports})))}else M=new Us().add(Td.createAccount({fromPubkey:r.publicKey,newAccountPubkey:i.publicKey,lamports:N>0?N:1,space:o.length,programId:n}));M!==null&&await Mnt(t,M,[r,i],{commitment:"confirmed"})}let d=Br.struct([Br.u32("instruction"),Br.u32("offset"),Br.u32("bytesLength"),Br.u32("bytesLengthPadding"),Br.seq(Br.u8("byte"),Br.offset(Br.u32(),-8),"bytes")]),g=e.chunkSize,y=0,_=o,I=[];for(;_.length>0;){let N=_.slice(0,g),T=fe.alloc(g+16);d.encode({instruction:0,offset:y,bytes:N,bytesLength:0,bytesLengthPadding:0},T);let M=new Us().add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:n,data:T});I.push(Mnt(t,M,[r,i],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")&&await NC(1e3/4),y+=g,_=_.slice(g)}await Promise.all(I);{let N=Br.struct([Br.u32("instruction")]),T=fe.alloc(N.span);N.encode({instruction:1},T);let M=new Us().add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:YP,isSigner:!1,isWritable:!1}],programId:n,data:T}),D="processed",P=await t.sendTransaction(M,[r,i],{preflightCommitment:D}),{context:G,value:q}=await t.confirmTransaction({signature:P,lastValidBlockHeight:M.lastValidBlockHeight,blockhash:M.recentBlockhash},D);if(q.err)throw new Error(`Transaction ${P} failed (${JSON.stringify(q)})`);for(;;){try{if(await t.getSlot({commitment:D})>G.slot)break}catch{}await new Promise(Y=>setTimeout(Y,Math.round(rit/2)))}}return!0}};dpe.chunkSize=m$t;var vWn=new xi("BPFLoader2111111111111111111111111111111111");function y$t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jAe,knt;function b$t(){if(knt)return jAe;knt=1;var e=Object.prototype.toString,t=Object.keys||function(i){var n=[];for(var o in i)n.push(o);return n};function r(i,n){var o,d,g,y,_,I,N;if(i===!0)return"true";if(i===!1)return"false";switch(typeof i){case"object":if(i===null)return null;if(i.toJSON&&typeof i.toJSON=="function")return r(i.toJSON(),n);if(N=e.call(i),N==="[object Array]"){for(g="[",d=i.length-1,o=0;o<d;o++)g+=r(i[o],!0)+",";return d>-1&&(g+=r(i[o],!0)),g+"]"}else if(N==="[object Object]"){for(y=t(i).sort(),d=y.length,g="",o=0;o<d;)_=y[o],I=r(i[_],!1),I!==void 0&&(g&&(g+=","),g+=JSON.stringify(_)+":"+I),o++;return"{"+g+"}"}else return JSON.stringify(i);case"function":case"undefined":return n?null:void 0;case"string":return JSON.stringify(i);default:return isFinite(i)?i:null}}return jAe=function(i){var n=r(i,!1);if(n!==void 0)return""+n},jAe}var E$t=b$t(),Pnt=y$t(E$t),zP=32;function epe(e){let t=0;for(;e>1;)e/=2,t++;return t}function v$t(e){return e===0?1:(e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e+1)}var fpe=class{constructor(t,r,i,n,o){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=r,this.warmup=i,this.firstNormalEpoch=n,this.firstNormalSlot=o}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){let r=epe(v$t(t+zP+1))-epe(zP)-1,i=this.getSlotsInEpoch(r),n=t-(i-zP);return[r,n]}else{let r=t-this.firstNormalSlot,i=Math.floor(r/this.slotsPerEpoch),n=this.firstNormalEpoch+i,o=r%this.slotsPerEpoch;return[n,o]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?(Math.pow(2,t)-1)*zP:(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+epe(zP)):this.slotsPerEpoch}},R$t=globalThis.fetch,lpe=class extends gnt{constructor(t,r,i){let n=o=>{let d=pnt(o,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...r});return"socket"in d?this.underlyingSocket=d.socket:this.underlyingSocket=d,d};super(n,t,r,i),this.underlyingSocket=void 0}call(...t){let r=this.underlyingSocket?.readyState;return r===1?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}notify(...t){let r=this.underlyingSocket?.readyState;return r===1?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}};function S$t(e,t){let r;try{r=e.layout.decode(t)}catch(i){throw new Error("invalid instruction; "+i)}if(r.typeIndex!==e.index)throw new Error(`invalid account data; account type mismatch ${r.typeIndex} != ${e.index}`);return r}var Lnt=56,o$=class{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){let t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){let r=S$t(I$t,t),i=t.length-Lnt;Ku(i>=0,"lookup table is invalid"),Ku(i%32===0,"lookup table is invalid");let n=i/32,{addresses:o}=Br.struct([Br.seq(_s(),n,"addresses")]).decode(t.slice(Lnt));return{deactivationSlot:r.deactivationSlot,lastExtendedSlot:r.lastExtendedSlot,lastExtendedSlotStartIndex:r.lastExtendedStartIndex,authority:r.authority.length!==0?new xi(r.authority[0]):void 0,addresses:o.map(d=>new xi(d))}}},I$t={index:1,layout:Br.struct([Br.u32("typeIndex"),Rx("deactivationSlot"),Br.nu64("lastExtendedSlot"),Br.u8("lastExtendedStartIndex"),Br.u8(),Br.seq(_s(),Br.offset(Br.u8(),-1),"authority")])},C$t=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function w$t(e){let t=e.match(C$t);if(t==null)throw TypeError(`Failed to validate endpoint URL \`${e}\``);let[r,i,n,o]=t,d=e.startsWith("https:")?"wss:":"ws:",g=n==null?null:parseInt(n.slice(1),10),y=g==null?"":`:${g+1}`;return`${d}//${i}${y}${o}`}var K0=_x(QK(xi),fi(),e=>new xi(e)),iit=HK([fi(),b0("base64")]),Epe=_x(QK(fe),iit,e=>fe.from(e[0],"base64")),O$t=30*1e3;function N$t(e){if(/^https?:/.test(e)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return e}function zu(e){let t,r;if(typeof e=="string")t=e;else if(e){let{commitment:i,...n}=e;t=i,r=n}return{commitment:t,config:r}}function Unt(e){return e.map(t=>"memcmp"in t?{...t,memcmp:{...t.memcmp,encoding:t.memcmp.encoding??"base58"}}:t)}function oit(e){return Qh([Vn({jsonrpc:b0("2.0"),id:fi(),result:e}),Vn({jsonrpc:b0("2.0"),id:fi(),error:Vn({code:CC(),message:fi(),data:Io(Grt())})})])}var x$t=oit(CC());function Wa(e){return _x(oit(e),x$t,t=>"error"in t?t:{...t,result:Ei(t.result,e)})}function xd(e){return Wa(Vn({context:Vn({slot:Zr()}),value:e}))}function u$(e){return Vn({context:Vn({slot:Zr()}),value:e})}function tpe(e,t){return e===0?new cpe({header:t.header,staticAccountKeys:t.accountKeys.map(r=>new xi(r)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(r=>({programIdIndex:r.programIdIndex,accountKeyIndexes:r.accounts,data:pl.default.decode(r.data)})),addressTableLookups:t.addressTableLookups}):new BC(t)}var T$t=Vn({foundation:Zr(),foundationTerm:Zr(),initial:Zr(),taper:Zr(),terminal:Zr()}),B$t=Wa(Ii(wi(Vn({epoch:Zr(),effectiveSlot:Zr(),amount:Zr(),postBalance:Zr(),commission:Io(wi(Zr()))})))),M$t=Ii(Vn({slot:Zr(),prioritizationFee:Zr()})),D$t=Vn({total:Zr(),validator:Zr(),foundation:Zr(),epoch:Zr()}),k$t=Vn({epoch:Zr(),slotIndex:Zr(),slotsInEpoch:Zr(),absoluteSlot:Zr(),blockHeight:Io(Zr()),transactionCount:Io(Zr())}),P$t=Vn({slotsPerEpoch:Zr(),leaderScheduleSlotOffset:Zr(),warmup:Jm(),firstNormalEpoch:Zr(),firstNormalSlot:Zr()}),L$t=DAe(fi(),Ii(Zr())),MC=wi(Qh([Vn({}),fi()])),U$t=Vn({err:MC}),F$t=b0("receivedSignature"),Q$t=Vn({"solana-core":fi(),"feature-set":Io(Zr())}),H$t=Vn({program:fi(),programId:K0,parsed:CC()}),G$t=Vn({programId:K0,accounts:Ii(K0),data:fi()}),Fnt=xd(Vn({err:wi(Qh([Vn({}),fi()])),logs:wi(Ii(fi())),accounts:Io(wi(Ii(wi(Vn({executable:Jm(),owner:fi(),lamports:Zr(),data:Ii(fi()),rentEpoch:Io(Zr())}))))),unitsConsumed:Io(Zr()),returnData:Io(wi(Vn({programId:fi(),data:HK([fi(),b0("base64")])}))),innerInstructions:Io(wi(Ii(Vn({index:Zr(),instructions:Ii(Qh([H$t,G$t]))}))))})),q$t=xd(Vn({byIdentity:DAe(fi(),Ii(Zr())),range:Vn({firstSlot:Zr(),lastSlot:Zr()})}));function V$t(e,t,r,i,n,o){let d=r||R$t,g;o!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let y;return i&&(y=async(I,N)=>{let T=await new Promise((M,D)=>{try{i(I,N,(P,G)=>M([P,G]))}catch(P){D(P)}});return await d(...T)}),new Ynt.default(async(I,N)=>{let T={method:"POST",body:I,agent:g,headers:Object.assign({"Content-Type":"application/json"},t||{},VYt)};try{let M=5,D,P=500;for(;y?D=await y(e,T):D=await d(e,T),!(D.status!==429||n===!0||(M-=1,M===0));)console.error(`Server responded with ${D.status} ${D.statusText}. Retrying after ${P}ms delay...`),await NC(P),P*=2;let G=await D.text();D.ok?N(null,G):N(new Error(`${D.status} ${D.statusText}: ${G}`))}catch(M){M instanceof Error&&N(M)}},{})}function J$t(e){return(t,r)=>new Promise((i,n)=>{e.request(t,r,(o,d)=>{if(o){n(o);return}i(d)})})}function z$t(e){return t=>new Promise((r,i)=>{t.length===0&&r([]);let n=t.map(o=>e.request(o.methodName,o.args));e.request(n,(o,d)=>{if(o){i(o);return}r(d)})})}var K$t=Wa(T$t),$$t=Wa(D$t),Y$t=Wa(M$t),W$t=Wa(k$t),X$t=Wa(P$t),Z$t=Wa(L$t),j$t=Wa(Zr()),eYt=xd(Vn({total:Zr(),circulating:Zr(),nonCirculating:Zr(),nonCirculatingAccounts:Ii(K0)})),hpe=Vn({amount:fi(),uiAmount:wi(Zr()),decimals:Zr(),uiAmountString:Io(fi())}),tYt=xd(Ii(Vn({address:K0,amount:fi(),uiAmount:wi(Zr()),decimals:Zr(),uiAmountString:Io(fi())}))),rYt=xd(Ii(Vn({pubkey:K0,account:Vn({executable:Jm(),owner:K0,lamports:Zr(),data:Epe,rentEpoch:Zr()})}))),Ape=Vn({program:fi(),parsed:CC(),space:Zr()}),nYt=xd(Ii(Vn({pubkey:K0,account:Vn({executable:Jm(),owner:K0,lamports:Zr(),data:Ape,rentEpoch:Zr()})}))),iYt=xd(Ii(Vn({lamports:Zr(),address:K0}))),XP=Vn({executable:Jm(),owner:K0,lamports:Zr(),data:Epe,rentEpoch:Zr()}),oYt=Vn({pubkey:K0,account:XP}),aYt=_x(Qh([QK(fe),Ape]),Qh([iit,Ape]),e=>Array.isArray(e)?Ei(e,Epe):e),ppe=Vn({executable:Jm(),owner:K0,lamports:Zr(),data:aYt,rentEpoch:Zr()}),sYt=Vn({pubkey:K0,account:ppe}),cYt=Vn({state:Qh([b0("active"),b0("inactive"),b0("activating"),b0("deactivating")]),active:Zr(),inactive:Zr()}),uYt=Wa(Ii(Vn({signature:fi(),slot:Zr(),err:MC,memo:wi(fi()),blockTime:Io(wi(Zr()))}))),dYt=Wa(Ii(Vn({signature:fi(),slot:Zr(),err:MC,memo:wi(fi()),blockTime:Io(wi(Zr()))}))),fYt=Vn({subscription:Zr(),result:u$(XP)}),lYt=Vn({pubkey:K0,account:XP}),hYt=Vn({subscription:Zr(),result:u$(lYt)}),AYt=Vn({parent:Zr(),slot:Zr(),root:Zr()}),pYt=Vn({subscription:Zr(),result:AYt}),gYt=Qh([Vn({type:Qh([b0("firstShredReceived"),b0("completed"),b0("optimisticConfirmation"),b0("root")]),slot:Zr(),timestamp:Zr()}),Vn({type:b0("createdBank"),parent:Zr(),slot:Zr(),timestamp:Zr()}),Vn({type:b0("frozen"),slot:Zr(),timestamp:Zr(),stats:Vn({numTransactionEntries:Zr(),numSuccessfulTransactions:Zr(),numFailedTransactions:Zr(),maxTransactionsPerEntry:Zr()})}),Vn({type:b0("dead"),slot:Zr(),timestamp:Zr(),err:fi()})]),_Yt=Vn({subscription:Zr(),result:gYt}),mYt=Vn({subscription:Zr(),result:u$(Qh([U$t,F$t]))}),yYt=Vn({subscription:Zr(),result:Zr()}),bYt=Vn({pubkey:fi(),gossip:wi(fi()),tpu:wi(fi()),rpc:wi(fi()),version:wi(fi())}),Qnt=Vn({votePubkey:fi(),nodePubkey:fi(),activatedStake:Zr(),epochVoteAccount:Jm(),epochCredits:Ii(HK([Zr(),Zr(),Zr()])),commission:Zr(),lastVote:Zr(),rootSlot:wi(Zr())}),EYt=Wa(Vn({current:Ii(Qnt),delinquent:Ii(Qnt)})),vYt=Qh([b0("processed"),b0("confirmed"),b0("finalized")]),RYt=Vn({slot:Zr(),confirmations:wi(Zr()),err:MC,confirmationStatus:Io(vYt)}),SYt=xd(Ii(wi(RYt))),IYt=Wa(Zr()),ait=Vn({accountKey:K0,writableIndexes:Ii(Zr()),readonlyIndexes:Ii(Zr())}),vpe=Vn({signatures:Ii(fi()),message:Vn({accountKeys:Ii(fi()),header:Vn({numRequiredSignatures:Zr(),numReadonlySignedAccounts:Zr(),numReadonlyUnsignedAccounts:Zr()}),instructions:Ii(Vn({accounts:Ii(Zr()),data:fi(),programIdIndex:Zr()})),recentBlockhash:fi(),addressTableLookups:Io(Ii(ait))})}),sit=Vn({pubkey:K0,signer:Jm(),writable:Jm(),source:Io(Qh([b0("transaction"),b0("lookupTable")]))}),cit=Vn({accountKeys:Ii(sit),signatures:Ii(fi())}),uit=Vn({parsed:CC(),program:fi(),programId:K0}),dit=Vn({accounts:Ii(K0),data:fi(),programId:K0}),CYt=Qh([dit,uit]),wYt=Qh([Vn({parsed:CC(),program:fi(),programId:fi()}),Vn({accounts:Ii(fi()),data:fi(),programId:fi()})]),fit=_x(CYt,wYt,e=>"accounts"in e?Ei(e,dit):Ei(e,uit)),lit=Vn({signatures:Ii(fi()),message:Vn({accountKeys:Ii(sit),instructions:Ii(fit),recentBlockhash:fi(),addressTableLookups:Io(wi(Ii(ait)))})}),a$=Vn({accountIndex:Zr(),mint:fi(),owner:Io(fi()),programId:Io(fi()),uiTokenAmount:hpe}),hit=Vn({writable:Ii(K0),readonly:Ii(K0)}),d$=Vn({err:MC,fee:Zr(),innerInstructions:Io(wi(Ii(Vn({index:Zr(),instructions:Ii(Vn({accounts:Ii(Zr()),data:fi(),programIdIndex:Zr()}))})))),preBalances:Ii(Zr()),postBalances:Ii(Zr()),logMessages:Io(wi(Ii(fi()))),preTokenBalances:Io(wi(Ii(a$))),postTokenBalances:Io(wi(Ii(a$))),loadedAddresses:Io(hit),computeUnitsConsumed:Io(Zr()),costUnits:Io(Zr())}),Rpe=Vn({err:MC,fee:Zr(),innerInstructions:Io(wi(Ii(Vn({index:Zr(),instructions:Ii(fit)})))),preBalances:Ii(Zr()),postBalances:Ii(Zr()),logMessages:Io(wi(Ii(fi()))),preTokenBalances:Io(wi(Ii(a$))),postTokenBalances:Io(wi(Ii(a$))),loadedAddresses:Io(hit),computeUnitsConsumed:Io(Zr()),costUnits:Io(Zr())}),Ix=Qh([b0(0),b0("legacy")]),DC=Vn({pubkey:fi(),lamports:Zr(),postBalance:wi(Zr()),rewardType:wi(fi()),commission:Io(wi(Zr()))}),OYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),transactions:Ii(Vn({transaction:vpe,meta:wi(d$),version:Io(Ix)})),rewards:Io(Ii(DC)),blockTime:wi(Zr()),blockHeight:wi(Zr())}))),NYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),rewards:Io(Ii(DC)),blockTime:wi(Zr()),blockHeight:wi(Zr())}))),xYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),transactions:Ii(Vn({transaction:cit,meta:wi(d$),version:Io(Ix)})),rewards:Io(Ii(DC)),blockTime:wi(Zr()),blockHeight:wi(Zr())}))),TYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),transactions:Ii(Vn({transaction:lit,meta:wi(Rpe),version:Io(Ix)})),rewards:Io(Ii(DC)),blockTime:wi(Zr()),blockHeight:wi(Zr())}))),BYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),transactions:Ii(Vn({transaction:cit,meta:wi(Rpe),version:Io(Ix)})),rewards:Io(Ii(DC)),blockTime:wi(Zr()),blockHeight:wi(Zr())}))),MYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),rewards:Io(Ii(DC)),blockTime:wi(Zr()),blockHeight:wi(Zr())}))),DYt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),transactions:Ii(Vn({transaction:vpe,meta:wi(d$)})),rewards:Io(Ii(DC)),blockTime:wi(Zr())}))),Hnt=Wa(wi(Vn({blockhash:fi(),previousBlockhash:fi(),parentSlot:Zr(),signatures:Ii(fi()),blockTime:wi(Zr())}))),rpe=Wa(wi(Vn({slot:Zr(),meta:wi(d$),blockTime:Io(wi(Zr())),transaction:vpe,version:Io(Ix)}))),jK=Wa(wi(Vn({slot:Zr(),transaction:lit,meta:wi(Rpe),blockTime:Io(wi(Zr())),version:Io(Ix)}))),kYt=xd(Vn({blockhash:fi(),lastValidBlockHeight:Zr()})),PYt=xd(Jm()),LYt=Vn({slot:Zr(),numTransactions:Zr(),numSlots:Zr(),samplePeriodSecs:Zr()}),UYt=Wa(Ii(LYt)),FYt=xd(wi(Vn({feeCalculator:Vn({lamportsPerSignature:Zr()})}))),QYt=Wa(fi()),HYt=Wa(fi()),GYt=Vn({err:MC,logs:Ii(fi()),signature:fi()}),qYt=Vn({result:u$(GYt),subscription:Zr()}),VYt={"solana-client":"js/1.0.0-maintenance"},TI=class{constructor(t,r){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{let _={};return async I=>{let{commitment:N,config:T}=zu(I),M=this._buildArgs([],N,void 0,T),D=Pnt(M);return _[D]=_[D]??(async()=>{try{let P=await this._rpcRequest("getBlockHeight",M),G=Ei(P,Wa(Zr()));if("error"in G)throw new ao(G.error,"failed to get block height information");return G.result}finally{delete _[D]}})(),await _[D]}})();let i,n,o,d,g,y;r&&typeof r=="string"?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,i=r.wsEndpoint,n=r.httpHeaders,o=r.fetch,d=r.fetchMiddleware,g=r.disableRetryOnRateLimit,y=r.httpAgent),this._rpcEndpoint=N$t(t),this._rpcWsEndpoint=i||w$t(t),this._rpcClient=V$t(t,n,o,d,g,y),this._rpcRequest=J$t(this._rpcClient),this._rpcBatchRequest=z$t(this._rpcClient),this._rpcWebSocket=new lpe(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgs([t.toBase58()],i,void 0,n),d=await this._rpcRequest("getBalance",o),g=Ei(d,xd(Zr()));if("error"in g)throw new ao(g.error,`failed to get balance for ${t.toBase58()}`);return g.result}async getBalance(t,r){return await this.getBalanceAndContext(t,r).then(i=>i.value).catch(i=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+i)})}async getBlockTime(t){let r=await this._rpcRequest("getBlockTime",[t]),i=Ei(r,Wa(wi(Zr())));if("error"in i)throw new ao(i.error,`failed to get block time for slot ${t}`);return i.result}async getMinimumLedgerSlot(){let t=await this._rpcRequest("minimumLedgerSlot",[]),r=Ei(t,Wa(Zr()));if("error"in r)throw new ao(r.error,"failed to get minimum ledger slot");return r.result}async getFirstAvailableBlock(){let t=await this._rpcRequest("getFirstAvailableBlock",[]),r=Ei(t,j$t);if("error"in r)throw new ao(r.error,"failed to get first available block");return r.result}async getSupply(t){let r={};typeof t=="string"?r={commitment:t}:t?r={...t,commitment:t&&t.commitment||this.commitment}:r={commitment:this.commitment};let i=await this._rpcRequest("getSupply",[r]),n=Ei(i,eYt);if("error"in n)throw new ao(n.error,"failed to get supply");return n.result}async getTokenSupply(t,r){let i=this._buildArgs([t.toBase58()],r),n=await this._rpcRequest("getTokenSupply",i),o=Ei(n,xd(hpe));if("error"in o)throw new ao(o.error,"failed to get token supply");return o.result}async getTokenAccountBalance(t,r){let i=this._buildArgs([t.toBase58()],r),n=await this._rpcRequest("getTokenAccountBalance",i),o=Ei(n,xd(hpe));if("error"in o)throw new ao(o.error,"failed to get token account balance");return o.result}async getTokenAccountsByOwner(t,r,i){let{commitment:n,config:o}=zu(i),d=[t.toBase58()];"mint"in r?d.push({mint:r.mint.toBase58()}):d.push({programId:r.programId.toBase58()});let g=this._buildArgs(d,n,"base64",o),y=await this._rpcRequest("getTokenAccountsByOwner",g),_=Ei(y,rYt);if("error"in _)throw new ao(_.error,`failed to get token accounts owned by account ${t.toBase58()}`);return _.result}async getParsedTokenAccountsByOwner(t,r,i){let n=[t.toBase58()];"mint"in r?n.push({mint:r.mint.toBase58()}):n.push({programId:r.programId.toBase58()});let o=this._buildArgs(n,i,"jsonParsed"),d=await this._rpcRequest("getTokenAccountsByOwner",o),g=Ei(d,nYt);if("error"in g)throw new ao(g.error,`failed to get token accounts owned by account ${t.toBase58()}`);return g.result}async getLargestAccounts(t){let r={...t,commitment:t&&t.commitment||this.commitment},i=r.filter||r.commitment?[r]:[],n=await this._rpcRequest("getLargestAccounts",i),o=Ei(n,iYt);if("error"in o)throw new ao(o.error,"failed to get largest accounts");return o.result}async getTokenLargestAccounts(t,r){let i=this._buildArgs([t.toBase58()],r),n=await this._rpcRequest("getTokenLargestAccounts",i),o=Ei(n,tYt);if("error"in o)throw new ao(o.error,"failed to get token largest accounts");return o.result}async getAccountInfoAndContext(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgs([t.toBase58()],i,"base64",n),d=await this._rpcRequest("getAccountInfo",o),g=Ei(d,xd(wi(XP)));if("error"in g)throw new ao(g.error,`failed to get info about account ${t.toBase58()}`);return g.result}async getParsedAccountInfo(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgs([t.toBase58()],i,"jsonParsed",n),d=await this._rpcRequest("getAccountInfo",o),g=Ei(d,xd(wi(ppe)));if("error"in g)throw new ao(g.error,`failed to get info about account ${t.toBase58()}`);return g.result}async getAccountInfo(t,r){try{return(await this.getAccountInfoAndContext(t,r)).value}catch(i){throw new Error("failed to get info about account "+t.toBase58()+": "+i)}}async getMultipleParsedAccounts(t,r){let{commitment:i,config:n}=zu(r),o=t.map(_=>_.toBase58()),d=this._buildArgs([o],i,"jsonParsed",n),g=await this._rpcRequest("getMultipleAccounts",d),y=Ei(g,xd(Ii(wi(ppe))));if("error"in y)throw new ao(y.error,`failed to get info for accounts ${o}`);return y.result}async getMultipleAccountsInfoAndContext(t,r){let{commitment:i,config:n}=zu(r),o=t.map(_=>_.toBase58()),d=this._buildArgs([o],i,"base64",n),g=await this._rpcRequest("getMultipleAccounts",d),y=Ei(g,xd(Ii(wi(XP))));if("error"in y)throw new ao(y.error,`failed to get info for accounts ${o}`);return y.result}async getMultipleAccountsInfo(t,r){return(await this.getMultipleAccountsInfoAndContext(t,r)).value}async getStakeActivation(t,r,i){let{commitment:n,config:o}=zu(r),d=this._buildArgs([t.toBase58()],n,void 0,{...o,epoch:i??o?.epoch}),g=await this._rpcRequest("getStakeActivation",d),y=Ei(g,Wa(cYt));if("error"in y)throw new ao(y.error,`failed to get Stake Activation ${t.toBase58()}`);return y.result}async getProgramAccounts(t,r){let{commitment:i,config:n}=zu(r),{encoding:o,...d}=n||{},g=this._buildArgs([t.toBase58()],i,o||"base64",{...d,...d.filters?{filters:Unt(d.filters)}:null}),y=await this._rpcRequest("getProgramAccounts",g),_=Ii(oYt),I=d.withContext===!0?Ei(y,xd(_)):Ei(y,Wa(_));if("error"in I)throw new ao(I.error,`failed to get accounts owned by program ${t.toBase58()}`);return I.result}async getParsedProgramAccounts(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgs([t.toBase58()],i,"jsonParsed",n),d=await this._rpcRequest("getProgramAccounts",o),g=Ei(d,Wa(Ii(sYt)));if("error"in g)throw new ao(g.error,`failed to get accounts owned by program ${t.toBase58()}`);return g.result}async confirmTransaction(t,r){let i;if(typeof t=="string")i=t;else{let o=t;if(o.abortSignal?.aborted)return Promise.reject(o.abortSignal.reason);i=o.signature}let n;try{n=pl.default.decode(i)}catch{throw new Error("signature must be base58 encoded: "+i)}return Ku(n.length===64,"signature has invalid length"),typeof t=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:r||this.commitment,signature:i}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:r||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:r||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise((r,i)=>{t!=null&&(t.aborted?i(t.reason):t.addEventListener("abort",()=>{i(t.reason)}))})}getTransactionConfirmationPromise({commitment:t,signature:r}){let i,n,o=!1,d=new Promise((y,_)=>{try{i=this.onSignature(r,(N,T)=>{i=void 0;let M={context:T,value:N};y({__type:OI.PROCESSED,response:M})},t);let I=new Promise(N=>{i==null?N():n=this._onSubscriptionStateChange(i,T=>{T==="subscribed"&&N()})});(async()=>{if(await I,o)return;let N=await this.getSignatureStatus(r);if(o||N==null)return;let{context:T,value:M}=N;if(M!=null)if(M?.err)_(M.err);else{switch(t){case"confirmed":case"single":case"singleGossip":{if(M.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(M.confirmationStatus==="processed"||M.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}o=!0,y({__type:OI.PROCESSED,response:{context:T,value:M}})}})()}catch(I){_(I)}});return{abortConfirmation:()=>{n&&(n(),n=void 0),i!=null&&(this.removeSignatureListener(i),i=void 0)},confirmationPromise:d}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:r,lastValidBlockHeight:i,signature:n}}){let o=!1,d=new Promise(N=>{let T=async()=>{try{return await this.getBlockHeight(t)}catch{return-1}};(async()=>{let M=await T();if(!o){for(;M<=i;)if(await NC(1e3),o||(M=await T(),o))return;N({__type:OI.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:g,confirmationPromise:y}=this.getTransactionConfirmationPromise({commitment:t,signature:n}),_=this.getCancellationPromise(r),I;try{let N=await Promise.race([_,y,d]);if(N.__type===OI.PROCESSED)I=N.response;else throw new r$(n)}finally{o=!0,g()}return I}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:r,minContextSlot:i,nonceAccountPubkey:n,nonceValue:o,signature:d}}){let g=!1,y=new Promise(M=>{let D=o,P=null,G=async()=>{try{let{context:q,value:Y}=await this.getNonceAndContext(n,{commitment:t,minContextSlot:i});return P=q.slot,Y?.nonce}catch{return D}};(async()=>{if(D=await G(),!g)for(;;){if(o!==D){M({__type:OI.NONCE_INVALID,slotInWhichNonceDidAdvance:P});return}if(await NC(2e3),g||(D=await G(),g))return}})()}),{abortConfirmation:_,confirmationPromise:I}=this.getTransactionConfirmationPromise({commitment:t,signature:d}),N=this.getCancellationPromise(r),T;try{let M=await Promise.race([N,I,y]);if(M.__type===OI.PROCESSED)T=M.response;else{let D;for(;;){let P=await this.getSignatureStatus(d);if(P==null)break;if(P.context.slot<(M.slotInWhichNonceDidAdvance??i)){await NC(400);continue}D=P;break}if(D?.value){let P=t||"finalized",{confirmationStatus:G}=D.value;switch(P){case"processed":case"recent":if(G!=="processed"&&G!=="confirmed"&&G!=="finalized")throw new xC(d);break;case"confirmed":case"single":case"singleGossip":if(G!=="confirmed"&&G!=="finalized")throw new xC(d);break;case"finalized":case"max":case"root":if(G!=="finalized")throw new xC(d);break;default:}T={context:D.context,value:{err:D.value.err}}}else throw new xC(d)}}finally{g=!0,_()}return T}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:r}){let i,n=new Promise(y=>{let _=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{_=this._confirmTransactionInitialTimeout||3e4;break}}i=setTimeout(()=>y({__type:OI.TIMED_OUT,timeoutMs:_}),_)}),{abortConfirmation:o,confirmationPromise:d}=this.getTransactionConfirmationPromise({commitment:t,signature:r}),g;try{let y=await Promise.race([d,n]);if(y.__type===OI.PROCESSED)g=y.response;else throw new n$(r,y.timeoutMs/1e3)}finally{clearTimeout(i),o()}return g}async getClusterNodes(){let t=await this._rpcRequest("getClusterNodes",[]),r=Ei(t,Wa(Ii(bYt)));if("error"in r)throw new ao(r.error,"failed to get cluster nodes");return r.result}async getVoteAccounts(t){let r=this._buildArgs([],t),i=await this._rpcRequest("getVoteAccounts",r),n=Ei(i,EYt);if("error"in n)throw new ao(n.error,"failed to get vote accounts");return n.result}async getSlot(t){let{commitment:r,config:i}=zu(t),n=this._buildArgs([],r,void 0,i),o=await this._rpcRequest("getSlot",n),d=Ei(o,Wa(Zr()));if("error"in d)throw new ao(d.error,"failed to get slot");return d.result}async getSlotLeader(t){let{commitment:r,config:i}=zu(t),n=this._buildArgs([],r,void 0,i),o=await this._rpcRequest("getSlotLeader",n),d=Ei(o,Wa(fi()));if("error"in d)throw new ao(d.error,"failed to get slot leader");return d.result}async getSlotLeaders(t,r){let i=[t,r],n=await this._rpcRequest("getSlotLeaders",i),o=Ei(n,Wa(Ii(K0)));if("error"in o)throw new ao(o.error,"failed to get slot leaders");return o.result}async getSignatureStatus(t,r){let{context:i,value:n}=await this.getSignatureStatuses([t],r);Ku(n.length===1);let o=n[0];return{context:i,value:o}}async getSignatureStatuses(t,r){let i=[t];r&&i.push(r);let n=await this._rpcRequest("getSignatureStatuses",i),o=Ei(n,SYt);if("error"in o)throw new ao(o.error,"failed to get signature status");return o.result}async getTransactionCount(t){let{commitment:r,config:i}=zu(t),n=this._buildArgs([],r,void 0,i),o=await this._rpcRequest("getTransactionCount",n),d=Ei(o,Wa(Zr()));if("error"in d)throw new ao(d.error,"failed to get transaction count");return d.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){let r=this._buildArgs([],t),i=await this._rpcRequest("getInflationGovernor",r),n=Ei(i,K$t);if("error"in n)throw new ao(n.error,"failed to get inflation");return n.result}async getInflationReward(t,r,i){let{commitment:n,config:o}=zu(i),d=this._buildArgs([t.map(_=>_.toBase58())],n,void 0,{...o,epoch:r??o?.epoch}),g=await this._rpcRequest("getInflationReward",d),y=Ei(g,B$t);if("error"in y)throw new ao(y.error,"failed to get inflation reward");return y.result}async getInflationRate(){let t=await this._rpcRequest("getInflationRate",[]),r=Ei(t,$$t);if("error"in r)throw new ao(r.error,"failed to get inflation rate");return r.result}async getEpochInfo(t){let{commitment:r,config:i}=zu(t),n=this._buildArgs([],r,void 0,i),o=await this._rpcRequest("getEpochInfo",n),d=Ei(o,W$t);if("error"in d)throw new ao(d.error,"failed to get epoch info");return d.result}async getEpochSchedule(){let t=await this._rpcRequest("getEpochSchedule",[]),r=Ei(t,X$t);if("error"in r)throw new ao(r.error,"failed to get epoch schedule");let i=r.result;return new fpe(i.slotsPerEpoch,i.leaderScheduleSlotOffset,i.warmup,i.firstNormalEpoch,i.firstNormalSlot)}async getLeaderSchedule(){let t=await this._rpcRequest("getLeaderSchedule",[]),r=Ei(t,Z$t);if("error"in r)throw new ao(r.error,"failed to get leader schedule");return r.result}async getMinimumBalanceForRentExemption(t,r){let i=this._buildArgs([t],r),n=await this._rpcRequest("getMinimumBalanceForRentExemption",i),o=Ei(n,IYt);return"error"in o?(console.warn("Unable to fetch minimum balance for rent exemption"),0):o.result}async getRecentBlockhashAndContext(t){let{context:r,value:{blockhash:i}}=await this.getLatestBlockhashAndContext(t);return{context:r,value:{blockhash:i,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(t){let r=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),i=Ei(r,UYt);if("error"in i)throw new ao(i.error,"failed to get recent performance samples");return i.result}async getFeeCalculatorForBlockhash(t,r){let i=this._buildArgs([t],r),n=await this._rpcRequest("getFeeCalculatorForBlockhash",i),o=Ei(n,FYt);if("error"in o)throw new ao(o.error,"failed to get fee calculator");let{context:d,value:g}=o.result;return{context:d,value:g!==null?g.feeCalculator:null}}async getFeeForMessage(t,r){let i=Ls(t.serialize()).toString("base64"),n=this._buildArgs([i],r),o=await this._rpcRequest("getFeeForMessage",n),d=Ei(o,xd(wi(Zr())));if("error"in d)throw new ao(d.error,"failed to get fee for message");if(d.result===null)throw new Error("invalid blockhash");return d.result}async getRecentPrioritizationFees(t){let r=t?.lockedWritableAccounts?.map(d=>d.toBase58()),i=r?.length?[r]:[],n=await this._rpcRequest("getRecentPrioritizationFees",i),o=Ei(n,Y$t);if("error"in o)throw new ao(o.error,"failed to get recent prioritization fees");return o.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhashAndContext(t){let{commitment:r,config:i}=zu(t),n=this._buildArgs([],r,void 0,i),o=await this._rpcRequest("getLatestBlockhash",n),d=Ei(o,kYt);if("error"in d)throw new ao(d.error,"failed to get latest blockhash");return d.result}async isBlockhashValid(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgs([t],i,void 0,n),d=await this._rpcRequest("isBlockhashValid",o),g=Ei(d,PYt);if("error"in g)throw new ao(g.error,"failed to determine if the blockhash `"+t+"`is valid");return g.result}async getVersion(){let t=await this._rpcRequest("getVersion",[]),r=Ei(t,Wa(Q$t));if("error"in r)throw new ao(r.error,"failed to get version");return r.result}async getGenesisHash(){let t=await this._rpcRequest("getGenesisHash",[]),r=Ei(t,Wa(fi()));if("error"in r)throw new ao(r.error,"failed to get genesis hash");return r.result}async getBlock(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgsAtLeastConfirmed([t],i,void 0,n),d=await this._rpcRequest("getBlock",o);try{switch(n?.transactionDetails){case"accounts":{let g=Ei(d,xYt);if("error"in g)throw g.error;return g.result}case"none":{let g=Ei(d,NYt);if("error"in g)throw g.error;return g.result}default:{let g=Ei(d,OYt);if("error"in g)throw g.error;let{result:y}=g;return y?{...y,transactions:y.transactions.map(({transaction:_,meta:I,version:N})=>({meta:I,transaction:{..._,message:tpe(N,_.message)},version:N}))}:null}}}catch(g){throw new ao(g,"failed to get confirmed block")}}async getParsedBlock(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgsAtLeastConfirmed([t],i,"jsonParsed",n),d=await this._rpcRequest("getBlock",o);try{switch(n?.transactionDetails){case"accounts":{let g=Ei(d,BYt);if("error"in g)throw g.error;return g.result}case"none":{let g=Ei(d,MYt);if("error"in g)throw g.error;return g.result}default:{let g=Ei(d,TYt);if("error"in g)throw g.error;return g.result}}}catch(g){throw new ao(g,"failed to get block")}}async getBlockProduction(t){let r,i;if(typeof t=="string")i=t;else if(t){let{commitment:g,...y}=t;i=g,r=y}let n=this._buildArgs([],i,"base64",r),o=await this._rpcRequest("getBlockProduction",n),d=Ei(o,q$t);if("error"in d)throw new ao(d.error,"failed to get block production information");return d.result}async getTransaction(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgsAtLeastConfirmed([t],i,void 0,n),d=await this._rpcRequest("getTransaction",o),g=Ei(d,rpe);if("error"in g)throw new ao(g.error,"failed to get transaction");let y=g.result;return y&&{...y,transaction:{...y.transaction,message:tpe(y.version,y.transaction.message)}}}async getParsedTransaction(t,r){let{commitment:i,config:n}=zu(r),o=this._buildArgsAtLeastConfirmed([t],i,"jsonParsed",n),d=await this._rpcRequest("getTransaction",o),g=Ei(d,jK);if("error"in g)throw new ao(g.error,"failed to get transaction");return g.result}async getParsedTransactions(t,r){let{commitment:i,config:n}=zu(r),o=t.map(y=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([y],i,"jsonParsed",n)}));return(await this._rpcBatchRequest(o)).map(y=>{let _=Ei(y,jK);if("error"in _)throw new ao(_.error,"failed to get transactions");return _.result})}async getTransactions(t,r){let{commitment:i,config:n}=zu(r),o=t.map(y=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([y],i,void 0,n)}));return(await this._rpcBatchRequest(o)).map(y=>{let _=Ei(y,rpe);if("error"in _)throw new ao(_.error,"failed to get transactions");let I=_.result;return I&&{...I,transaction:{...I.transaction,message:tpe(I.version,I.transaction.message)}}})}async getConfirmedBlock(t,r){let i=this._buildArgsAtLeastConfirmed([t],r),n=await this._rpcRequest("getBlock",i),o=Ei(n,DYt);if("error"in o)throw new ao(o.error,"failed to get confirmed block");let d=o.result;if(!d)throw new Error("Confirmed block "+t+" not found");let g={...d,transactions:d.transactions.map(({transaction:y,meta:_})=>{let I=new BC(y.message);return{meta:_,transaction:{...y,message:I}}})};return{...g,transactions:g.transactions.map(({transaction:y,meta:_})=>({meta:_,transaction:Us.populate(y.message,y.signatures)}))}}async getBlocks(t,r,i){let n=this._buildArgsAtLeastConfirmed(r!==void 0?[t,r]:[t],i),o=await this._rpcRequest("getBlocks",n),d=Ei(o,Wa(Ii(Zr())));if("error"in d)throw new ao(d.error,"failed to get blocks");return d.result}async getBlockSignatures(t,r){let i=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetails:"signatures",rewards:!1}),n=await this._rpcRequest("getBlock",i),o=Ei(n,Hnt);if("error"in o)throw new ao(o.error,"failed to get block");let d=o.result;if(!d)throw new Error("Block "+t+" not found");return d}async getConfirmedBlockSignatures(t,r){let i=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetails:"signatures",rewards:!1}),n=await this._rpcRequest("getBlock",i),o=Ei(n,Hnt);if("error"in o)throw new ao(o.error,"failed to get confirmed block");let d=o.result;if(!d)throw new Error("Confirmed block "+t+" not found");return d}async getConfirmedTransaction(t,r){let i=this._buildArgsAtLeastConfirmed([t],r),n=await this._rpcRequest("getTransaction",i),o=Ei(n,rpe);if("error"in o)throw new ao(o.error,"failed to get transaction");let d=o.result;if(!d)return d;let g=new BC(d.transaction.message),y=d.transaction.signatures;return{...d,transaction:Us.populate(g,y)}}async getParsedConfirmedTransaction(t,r){let i=this._buildArgsAtLeastConfirmed([t],r,"jsonParsed"),n=await this._rpcRequest("getTransaction",i),o=Ei(n,jK);if("error"in o)throw new ao(o.error,"failed to get confirmed transaction");return o.result}async getParsedConfirmedTransactions(t,r){let i=t.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],r,"jsonParsed")}));return(await this._rpcBatchRequest(i)).map(d=>{let g=Ei(d,jK);if("error"in g)throw new ao(g.error,"failed to get confirmed transactions");return g.result})}async getConfirmedSignaturesForAddress(t,r,i){let n={},o=await this.getFirstAvailableBlock();for(;!("until"in n)&&(r--,!(r<=0||r<o));)try{let y=await this.getConfirmedBlockSignatures(r,"finalized");y.signatures.length>0&&(n.until=y.signatures[y.signatures.length-1].toString())}catch(y){if(y instanceof Error&&y.message.includes("skipped"))continue;throw y}let d=await this.getSlot("finalized");for(;!("before"in n)&&(i++,!(i>d));)try{let y=await this.getConfirmedBlockSignatures(i);y.signatures.length>0&&(n.before=y.signatures[y.signatures.length-1].toString())}catch(y){if(y instanceof Error&&y.message.includes("skipped"))continue;throw y}return(await this.getConfirmedSignaturesForAddress2(t,n)).map(y=>y.signature)}async getConfirmedSignaturesForAddress2(t,r,i){let n=this._buildArgsAtLeastConfirmed([t.toBase58()],i,void 0,r),o=await this._rpcRequest("getConfirmedSignaturesForAddress2",n),d=Ei(o,uYt);if("error"in d)throw new ao(d.error,"failed to get confirmed signatures for address");return d.result}async getSignaturesForAddress(t,r,i){let n=this._buildArgsAtLeastConfirmed([t.toBase58()],i,void 0,r),o=await this._rpcRequest("getSignaturesForAddress",n),d=Ei(o,dYt);if("error"in d)throw new ao(d.error,"failed to get signatures for address");return d.result}async getAddressLookupTable(t,r){let{context:i,value:n}=await this.getAccountInfoAndContext(t,r),o=null;return n!==null&&(o=new o$({key:t,state:o$.deserialize(n.data)})),{context:i,value:o}}async getNonceAndContext(t,r){let{context:i,value:n}=await this.getAccountInfoAndContext(t,r),o=null;return n!==null&&(o=upe.fromAccountData(n.data)),{context:i,value:o}}async getNonce(t,r){return await this.getNonceAndContext(t,r).then(i=>i.value).catch(i=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+i)})}async requestAirdrop(t,r){let i=await this._rpcRequest("requestAirdrop",[t.toBase58(),r]),n=Ei(i,QYt);if("error"in n)throw new ao(n.error,`airdrop to ${t.toBase58()} failed`);return n.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await NC(100);let i=Date.now()-this._blockhashInfo.lastFetch>=O$t;if(this._blockhashInfo.latestBlockhash!==null&&!i)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{let t=Date.now(),r=this._blockhashInfo.latestBlockhash,i=r?r.blockhash:null;for(let n=0;n<50;n++){let o=await this.getLatestBlockhash("finalized");if(i!==o.blockhash)return this._blockhashInfo={latestBlockhash:o,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},o;await NC(rit/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){let{commitment:r,config:i}=zu(t),n=this._buildArgs([],r,"base64",i),o=await this._rpcRequest("getStakeMinimumDelegation",n),d=Ei(o,xd(Zr()));if("error"in d)throw new ao(d.error,"failed to get stake minimum delegation");return d.result}async simulateTransaction(t,r,i){if("message"in t){let P=t.serialize(),G=fe.from(P).toString("base64");if(Array.isArray(r)||i!==void 0)throw new Error("Invalid arguments");let q=r||{};q.encoding="base64","commitment"in q||(q.commitment=this.commitment),r&&typeof r=="object"&&"innerInstructions"in r&&(q.innerInstructions=r.innerInstructions);let Y=[G,q],ne=await this._rpcRequest("simulateTransaction",Y),ce=Ei(ne,Fnt);if("error"in ce)throw new Error("failed to simulate transaction: "+ce.error.message);return ce.result}let n;if(t instanceof Us){let D=t;n=new Us,n.feePayer=D.feePayer,n.instructions=t.instructions,n.nonceInfo=D.nonceInfo,n.signatures=D.signatures}else n=Us.populate(t),n._message=n._json=void 0;if(r!==void 0&&!Array.isArray(r))throw new Error("Invalid arguments");let o=r;if(n.nonceInfo&&o)n.sign(...o);else{let D=this._disableBlockhashCaching;for(;;){let P=await this._blockhashWithExpiryBlockHeight(D);if(n.lastValidBlockHeight=P.lastValidBlockHeight,n.recentBlockhash=P.blockhash,!o)break;if(n.sign(...o),!n.signature)throw new Error("!signature");let G=n.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(G)&&!this._blockhashInfo.transactionSignatures.includes(G)){this._blockhashInfo.simulatedSignatures.push(G);break}else D=!0}}let d=n._compile(),g=d.serialize(),_=n._serialize(g).toString("base64"),I={encoding:"base64",commitment:this.commitment};if(i){let D=(Array.isArray(i)?i:d.nonProgramIds()).map(P=>P.toBase58());I.accounts={encoding:"base64",addresses:D}}o&&(I.sigVerify=!0),r&&typeof r=="object"&&"innerInstructions"in r&&(I.innerInstructions=r.innerInstructions);let N=[_,I],T=await this._rpcRequest("simulateTransaction",N),M=Ei(T,Fnt);if("error"in M){let D;if("data"in M.error&&(D=M.error.data.logs,D&&Array.isArray(D))){let P=`
|
|
`,G=P+D.join(P);console.error(M.error.message,G)}throw new WP({action:"simulate",signature:"",transactionMessage:M.error.message,logs:D})}return M.result}async sendTransaction(t,r,i){if("version"in t){if(r&&Array.isArray(r))throw new Error("Invalid arguments");let d=t.serialize();return await this.sendRawTransaction(d,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");let n=r;if(t.nonceInfo)t.sign(...n);else{let d=this._disableBlockhashCaching;for(;;){let g=await this._blockhashWithExpiryBlockHeight(d);if(t.lastValidBlockHeight=g.lastValidBlockHeight,t.recentBlockhash=g.blockhash,t.sign(...n),!t.signature)throw new Error("!signature");let y=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(y))d=!0;else{this._blockhashInfo.transactionSignatures.push(y);break}}}let o=t.serialize();return await this.sendRawTransaction(o,i)}async sendRawTransaction(t,r){let i=Ls(t).toString("base64");return await this.sendEncodedTransaction(i,r)}async sendEncodedTransaction(t,r){let i={encoding:"base64"},n=r&&r.skipPreflight,o=n===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(i.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(i.minContextSlot=r.minContextSlot),n&&(i.skipPreflight=n),o&&(i.preflightCommitment=o);let d=[t,i],g=await this._rpcRequest("sendTransaction",d),y=Ei(g,HYt);if("error"in y){let _;throw"data"in y.error&&(_=y.error.data.logs),new WP({action:n?"send":"simulate",signature:"",transactionMessage:y.error.message,logs:_})}return y.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,i])=>{this._setSubscription(r,{...i,state:"pending"})})}_setSubscription(t,r){let i=this._subscriptionsByHash[t]?.state;if(this._subscriptionsByHash[t]=r,i!==r.state){let n=this._subscriptionStateChangeCallbacksByHash[t];n&&n.forEach(o=>{try{o(r.state)}catch{}})}}_onSubscriptionStateChange(t,r){let i=this._subscriptionHashByClientSubscriptionId[t];if(i==null)return()=>{};let n=this._subscriptionStateChangeCallbacksByHash[i]||=new Set;return n.add(r),()=>{n.delete(r),n.size===0&&delete this._subscriptionStateChangeCallbacksByHash[i]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(i){i instanceof Error&&console.log(`Error when closing socket connection: ${i.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}let t=this._rpcWebSocketGeneration,r=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async i=>{let n=this._subscriptionsByHash[i];if(n!==void 0)switch(n.state){case"pending":case"unsubscribed":if(n.callbacks.size===0){delete this._subscriptionsByHash[i],n.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{let{args:o,method:d}=n;try{this._setSubscription(i,{...n,state:"subscribing"});let g=await this._rpcWebSocket.call(d,o);this._setSubscription(i,{...n,serverSubscriptionId:g,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[g]=n.callbacks,await this._updateSubscriptions()}catch(g){if(console.error(`Received ${g instanceof Error?"":"JSON-RPC "}error calling \`${d}\``,{args:o,error:g}),!r())return;this._setSubscription(i,{...n,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":n.callbacks.size===0&&await(async()=>{let{serverSubscriptionId:o,unsubscribeMethod:d}=n;if(this._subscriptionsAutoDisposedByRpc.has(o))this._subscriptionsAutoDisposedByRpc.delete(o);else{this._setSubscription(i,{...n,state:"unsubscribing"}),this._setSubscription(i,{...n,state:"unsubscribing"});try{await this._rpcWebSocket.call(d,[o])}catch(g){if(g instanceof Error&&console.error(`${d} error:`,g.message),!r())return;this._setSubscription(i,{...n,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(i,{...n,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,r){let i=this._subscriptionCallbacksByServerSubscriptionId[t];i!==void 0&&i.forEach(n=>{try{n(...r)}catch(o){console.error(o)}})}_wsOnAccountNotification(t){let{result:r,subscription:i}=Ei(t,fYt);this._handleServerNotification(i,[r.value,r.context])}_makeSubscription(t,r){let i=this._nextClientSubscriptionId++,n=Pnt([t.method,r]),o=this._subscriptionsByHash[n];return o===void 0?this._subscriptionsByHash[n]={...t,args:r,callbacks:new Set([t.callback]),state:"pending"}:o.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[i]=n,this._subscriptionDisposeFunctionsByClientSubscriptionId[i]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[i],delete this._subscriptionHashByClientSubscriptionId[i];let d=this._subscriptionsByHash[n];Ku(d!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${i}`),d.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),i}onAccountChange(t,r,i){let{commitment:n,config:o}=zu(i),d=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",o);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},d)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){let{result:r,subscription:i}=Ei(t,hYt);this._handleServerNotification(i,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(t,r,i,n){let{commitment:o,config:d}=zu(i),g=this._buildArgs([t.toBase58()],o||this._commitment||"finalized","base64",d||(n?{filters:Unt(n)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},g)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,r,i){let n=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],i||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},n)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){let{result:r,subscription:i}=Ei(t,qYt);this._handleServerNotification(i,[r.value,r.context])}_wsOnSlotNotification(t){let{result:r,subscription:i}=Ei(t,pYt);this._handleServerNotification(i,[r])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){let{result:r,subscription:i}=Ei(t,_Yt);this._handleServerNotification(i,[r])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,r){let i=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];i?await i():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${r}' events could not be found.`)}_buildArgs(t,r,i,n){let o=r||this._commitment;if(o||i||n){let d={};i&&(d.encoding=i),o&&(d.commitment=o),n&&(d=Object.assign(d,n)),t.push(d)}return t}_buildArgsAtLeastConfirmed(t,r,i,n){let o=r||this._commitment;if(o&&!["confirmed","finalized"].includes(o))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,r,i,n)}_wsOnSignatureNotification(t){let{result:r,subscription:i}=Ei(t,mYt);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(i),this._handleServerNotification(i,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(t,r,i){let n=this._buildArgs([t],i||this._commitment||"finalized"),o=this._makeSubscription({callback:(d,g)=>{if(d.type==="status"){r(d.result,g);try{this.removeSignatureListener(o)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},n);return o}onSignatureWithOptions(t,r,i){let{commitment:n,...o}={...i,commitment:i&&i.commitment||this._commitment||"finalized"},d=this._buildArgs([t],n,void 0,o),g=this._makeSubscription({callback:(y,_)=>{r(y,_);try{this.removeSignatureListener(g)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},d);return g}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){let{result:r,subscription:i}=Ei(t,yYt);this._handleServerNotification(i,[r])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}},gpe=class e{constructor(t){this._keypair=void 0,this._keypair=t??xnt()}static generate(){return new e(xnt())}static fromSecretKey(t,r){if(t.byteLength!==64)throw new Error("bad secret key size");let i=t.slice(32,64);if(!r||!r.skipValidation){let n=t.slice(0,32),o=ape(n);for(let d=0;d<32;d++)if(i[d]!==o[d])throw new Error("provided secretKey is invalid")}return new e({publicKey:i,secretKey:t})}static fromSeed(t){let r=ape(t),i=new Uint8Array(64);return i.set(t),i.set(r,32),new e({publicKey:r,secretKey:i})}get publicKey(){return new xi(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}},KP=Object.freeze({CreateLookupTable:{index:0,layout:Br.struct([Br.u32("instruction"),Rx("recentSlot"),Br.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:Br.struct([Br.u32("instruction")])},ExtendLookupTable:{index:2,layout:Br.struct([Br.u32("instruction"),Rx(),Br.seq(_s(),Br.offset(Br.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Br.struct([Br.u32("instruction")])},CloseLookupTable:{index:4,layout:Br.struct([Br.u32("instruction")])}});var _pe=class{constructor(){}static createLookupTable(t){let[r,i]=xi.findProgramAddressSync([t.authority.toBuffer(),TAe().encode(t.recentSlot)],this.programId),n=KP.CreateLookupTable,o=$s(n,{recentSlot:BigInt(t.recentSlot),bumpSeed:i}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Td.programId,isSigner:!1,isWritable:!1}];return[new ms({programId:this.programId,keys:d,data:o}),r]}static freezeLookupTable(t){let r=KP.FreezeLookupTable,i=$s(r),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new ms({programId:this.programId,keys:n,data:i})}static extendLookupTable(t){let r=KP.ExtendLookupTable,i=$s(r,{addresses:t.addresses.map(o=>o.toBytes())}),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&n.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Td.programId,isSigner:!1,isWritable:!1}),new ms({programId:this.programId,keys:n,data:i})}static deactivateLookupTable(t){let r=KP.DeactivateLookupTable,i=$s(r),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new ms({programId:this.programId,keys:n,data:i})}static closeLookupTable(t){let r=KP.CloseLookupTable,i=$s(r),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new ms({programId:this.programId,keys:n,data:i})}};_pe.programId=new xi("AddressLookupTab1e1111111111111111111111111");var e$=Object.freeze({RequestUnits:{index:0,layout:Br.struct([Br.u8("instruction"),Br.u32("units"),Br.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:Br.struct([Br.u8("instruction"),Br.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:Br.struct([Br.u8("instruction"),Br.u32("units")])},SetComputeUnitPrice:{index:3,layout:Br.struct([Br.u8("instruction"),Rx("microLamports")])}}),mpe=class{constructor(){}static requestUnits(t){let r=e$.RequestUnits,i=$s(r,t);return new ms({keys:[],programId:this.programId,data:i})}static requestHeapFrame(t){let r=e$.RequestHeapFrame,i=$s(r,t);return new ms({keys:[],programId:this.programId,data:i})}static setComputeUnitLimit(t){let r=e$.SetComputeUnitLimit,i=$s(r,t);return new ms({keys:[],programId:this.programId,data:i})}static setComputeUnitPrice(t){let r=e$.SetComputeUnitPrice,i=$s(r,{microLamports:BigInt(t.microLamports)});return new ms({keys:[],programId:this.programId,data:i})}};mpe.programId=new xi("ComputeBudget111111111111111111111111111111");var Gnt=64,qnt=32,Vnt=64,Jnt=Br.struct([Br.u8("numSignatures"),Br.u8("padding"),Br.u16("signatureOffset"),Br.u16("signatureInstructionIndex"),Br.u16("publicKeyOffset"),Br.u16("publicKeyInstructionIndex"),Br.u16("messageDataOffset"),Br.u16("messageDataSize"),Br.u16("messageInstructionIndex")]),ype=class e{constructor(){}static createInstructionWithPublicKey(t){let{publicKey:r,message:i,signature:n,instructionIndex:o}=t;Ku(r.length===qnt,`Public Key must be ${qnt} bytes but received ${r.length} bytes`),Ku(n.length===Vnt,`Signature must be ${Vnt} bytes but received ${n.length} bytes`);let d=Jnt.span,g=d+r.length,y=g+n.length,_=1,I=fe.alloc(y+i.length),N=o??65535;return Jnt.encode({numSignatures:_,padding:0,signatureOffset:g,signatureInstructionIndex:N,publicKeyOffset:d,publicKeyInstructionIndex:N,messageDataOffset:y,messageDataSize:i.length,messageInstructionIndex:N},I),I.fill(r,d),I.fill(n,g),I.fill(i,y),new ms({keys:[],programId:e.programId,data:I})}static createInstructionWithPrivateKey(t){let{privateKey:r,message:i,instructionIndex:n}=t;Ku(r.length===Gnt,`Private key must be ${Gnt} bytes but received ${r.length} bytes`);try{let o=gpe.fromSecretKey(r),d=o.publicKey.toBytes(),g=Wnt(i,o.secretKey);return this.createInstructionWithPublicKey({publicKey:d,message:i,signature:g,instructionIndex:n})}catch(o){throw new Error(`Error creating instruction; ${o}`)}}};ype.programId=new xi("Ed25519SigVerify111111111111111111111111111");var JYt=(e,t)=>{let r=ZK.sign(e,t);return[r.toCompactRawBytes(),r.recovery]};ZK.utils.isValidPrivateKey;var zYt=ZK.getPublicKey,znt=32,npe=20,Knt=64,KYt=11,ipe=Br.struct([Br.u8("numSignatures"),Br.u16("signatureOffset"),Br.u8("signatureInstructionIndex"),Br.u16("ethAddressOffset"),Br.u8("ethAddressInstructionIndex"),Br.u16("messageDataOffset"),Br.u16("messageDataSize"),Br.u8("messageInstructionIndex"),Br.blob(20,"ethAddress"),Br.blob(64,"signature"),Br.u8("recoveryId")]),bpe=class e{constructor(){}static publicKeyToEthAddress(t){Ku(t.length===Knt,`Public key must be ${Knt} bytes but received ${t.length} bytes`);try{return fe.from(wC(Ls(t))).slice(-npe)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(t){let{publicKey:r,message:i,signature:n,recoveryId:o,instructionIndex:d}=t;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(r),message:i,signature:n,recoveryId:o,instructionIndex:d})}static createInstructionWithEthAddress(t){let{ethAddress:r,message:i,signature:n,recoveryId:o,instructionIndex:d=0}=t,g;typeof r=="string"?r.startsWith("0x")?g=fe.from(r.substr(2),"hex"):g=fe.from(r,"hex"):g=r,Ku(g.length===npe,`Address must be ${npe} bytes but received ${g.length} bytes`);let y=1+KYt,_=y,I=y+g.length,N=I+n.length+1,T=1,M=fe.alloc(ipe.span+i.length);return ipe.encode({numSignatures:T,signatureOffset:I,signatureInstructionIndex:d,ethAddressOffset:_,ethAddressInstructionIndex:d,messageDataOffset:N,messageDataSize:i.length,messageInstructionIndex:d,signature:Ls(n),ethAddress:Ls(g),recoveryId:o},M),M.fill(Ls(i),ipe.span),new ms({keys:[],programId:e.programId,data:M})}static createInstructionWithPrivateKey(t){let{privateKey:r,message:i,instructionIndex:n}=t;Ku(r.length===znt,`Private key must be ${znt} bytes but received ${r.length} bytes`);try{let o=Ls(r),d=zYt(o,!1).slice(1),g=fe.from(wC(Ls(i))),[y,_]=JYt(g,o);return this.createInstructionWithPublicKey({publicKey:d,message:i,signature:y,recoveryId:_,instructionIndex:n})}catch(o){throw new Error(`Error creating instruction; ${o}`)}}};bpe.programId=new xi("KeccakSecp256k11111111111111111111111111111");var Ait,$Yt=new xi("StakeConfig11111111111111111111111111111111");var ZP=class{constructor(t,r,i){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=r,this.custodian=i}};Ait=ZP;ZP.default=new Ait(0,0,xi.default);var NI=Object.freeze({Initialize:{index:0,layout:Br.struct([Br.u32("instruction"),u$t(),d$t()])},Authorize:{index:1,layout:Br.struct([Br.u32("instruction"),_s("newAuthorized"),Br.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:Br.struct([Br.u32("instruction")])},Split:{index:3,layout:Br.struct([Br.u32("instruction"),Br.ns64("lamports")])},Withdraw:{index:4,layout:Br.struct([Br.u32("instruction"),Br.ns64("lamports")])},Deactivate:{index:5,layout:Br.struct([Br.u32("instruction")])},Merge:{index:7,layout:Br.struct([Br.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:Br.struct([Br.u32("instruction"),_s("newAuthorized"),Br.u32("stakeAuthorizationType"),Ex("authoritySeed"),_s("authorityOwner")])}}),RWn=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),s$=class{constructor(){}static initialize(t){let{stakePubkey:r,authorized:i,lockup:n}=t,o=n||ZP.default,d=NI.Initialize,g=$s(d,{authorized:{staker:Ls(i.staker.toBuffer()),withdrawer:Ls(i.withdrawer.toBuffer())},lockup:{unixTimestamp:o.unixTimestamp,epoch:o.epoch,custodian:Ls(o.custodian.toBuffer())}}),y={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:YP,isSigner:!1,isWritable:!1}],programId:this.programId,data:g};return new ms(y)}static createAccountWithSeed(t){let r=new Us;r.add(Td.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));let{stakePubkey:i,authorized:n,lockup:o}=t;return r.add(this.initialize({stakePubkey:i,authorized:n,lockup:o}))}static createAccount(t){let r=new Us;r.add(Td.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));let{stakePubkey:i,authorized:n,lockup:o}=t;return r.add(this.initialize({stakePubkey:i,authorized:n,lockup:o}))}static delegate(t){let{stakePubkey:r,authorizedPubkey:i,votePubkey:n}=t,o=NI.Delegate,d=$s(o);return new Us().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:ZAe,isSigner:!1,isWritable:!1},{pubkey:$Yt,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:d})}static authorize(t){let{stakePubkey:r,authorizedPubkey:i,newAuthorizedPubkey:n,stakeAuthorizationType:o,custodianPubkey:d}=t,g=NI.Authorize,y=$s(g,{newAuthorized:Ls(n.toBuffer()),stakeAuthorizationType:o.index}),_=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:bR,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}];return d&&_.push({pubkey:d,isSigner:!0,isWritable:!1}),new Us().add({keys:_,programId:this.programId,data:y})}static authorizeWithSeed(t){let{stakePubkey:r,authorityBase:i,authoritySeed:n,authorityOwner:o,newAuthorizedPubkey:d,stakeAuthorizationType:g,custodianPubkey:y}=t,_=NI.AuthorizeWithSeed,I=$s(_,{newAuthorized:Ls(d.toBuffer()),stakeAuthorizationType:g.index,authoritySeed:n,authorityOwner:Ls(o.toBuffer())}),N=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1},{pubkey:bR,isSigner:!1,isWritable:!1}];return y&&N.push({pubkey:y,isSigner:!0,isWritable:!1}),new Us().add({keys:N,programId:this.programId,data:I})}static splitInstruction(t){let{stakePubkey:r,authorizedPubkey:i,splitStakePubkey:n,lamports:o}=t,d=NI.Split,g=$s(d,{lamports:o});return new ms({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:g})}static split(t,r){let i=new Us;return i.add(Td.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),i.add(this.splitInstruction(t))}static splitWithSeed(t,r){let{stakePubkey:i,authorizedPubkey:n,splitStakePubkey:o,basePubkey:d,seed:g,lamports:y}=t,_=new Us;return _.add(Td.allocate({accountPubkey:o,basePubkey:d,seed:g,space:this.space,programId:this.programId})),r&&r>0&&_.add(Td.transfer({fromPubkey:t.authorizedPubkey,toPubkey:o,lamports:r})),_.add(this.splitInstruction({stakePubkey:i,authorizedPubkey:n,splitStakePubkey:o,lamports:y}))}static merge(t){let{stakePubkey:r,sourceStakePubKey:i,authorizedPubkey:n}=t,o=NI.Merge,d=$s(o);return new Us().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:ZAe,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:d})}static withdraw(t){let{stakePubkey:r,authorizedPubkey:i,toPubkey:n,lamports:o,custodianPubkey:d}=t,g=NI.Withdraw,y=$s(g,{lamports:o}),_=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:ZAe,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}];return d&&_.push({pubkey:d,isSigner:!0,isWritable:!1}),new Us().add({keys:_,programId:this.programId,data:y})}static deactivate(t){let{stakePubkey:r,authorizedPubkey:i}=t,n=NI.Deactivate,o=$s(n);return new Us().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}};s$.programId=new xi("Stake11111111111111111111111111111111111111");s$.space=200;var $P=Object.freeze({InitializeAccount:{index:0,layout:Br.struct([Br.u32("instruction"),f$t()])},Authorize:{index:1,layout:Br.struct([Br.u32("instruction"),_s("newAuthorized"),Br.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:Br.struct([Br.u32("instruction"),Br.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:Br.struct([Br.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:Br.struct([Br.u32("instruction"),l$t()])}}),SWn=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),c$=class e{constructor(){}static initializeAccount(t){let{votePubkey:r,nodePubkey:i,voteInit:n}=t,o=$P.InitializeAccount,d=$s(o,{voteInit:{nodePubkey:Ls(n.nodePubkey.toBuffer()),authorizedVoter:Ls(n.authorizedVoter.toBuffer()),authorizedWithdrawer:Ls(n.authorizedWithdrawer.toBuffer()),commission:n.commission}}),g={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:YP,isSigner:!1,isWritable:!1},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:d};return new ms(g)}static createAccount(t){let r=new Us;return r.add(Td.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){let{votePubkey:r,authorizedPubkey:i,newAuthorizedPubkey:n,voteAuthorizationType:o}=t,d=$P.Authorize,g=$s(d,{newAuthorized:Ls(n.toBuffer()),voteAuthorizationType:o.index}),y=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}];return new Us().add({keys:y,programId:this.programId,data:g})}static authorizeWithSeed(t){let{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:i,currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:o,voteAuthorizationType:d,votePubkey:g}=t,y=$P.AuthorizeWithSeed,_=$s(y,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Ls(i.toBuffer()),currentAuthorityDerivedKeySeed:n,newAuthorized:Ls(o.toBuffer()),voteAuthorizationType:d.index}}),I=[{pubkey:g,isSigner:!1,isWritable:!0},{pubkey:bR,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Us().add({keys:I,programId:this.programId,data:_})}static withdraw(t){let{votePubkey:r,authorizedWithdrawerPubkey:i,lamports:n,toPubkey:o}=t,d=$P.Withdraw,g=$s(d,{lamports:n}),y=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}];return new Us().add({keys:y,programId:this.programId,data:g})}static safeWithdraw(t,r,i){if(t.lamports>r-i)throw new Error("Withdraw will leave vote account with insufficient funds.");return e.withdraw(t)}static updateValidatorIdentity(t){let{votePubkey:r,authorizedWithdrawerPubkey:i,nodePubkey:n}=t,o=$P.UpdateValidatorIdentity,d=$s(o),g=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}];return new Us().add({keys:g,programId:this.programId,data:d})}};c$.programId=new xi("Vote111111111111111111111111111111111111111");c$.space=3762;var IWn=new xi("Va1idator1nfo111111111111111111111111111111"),CWn=Vn({name:fi(),website:Io(fi()),details:Io(fi()),iconUrl:Io(fi()),keybaseUsername:Io(fi())});var wWn=new xi("Vote111111111111111111111111111111111111111"),OWn=Br.struct([_s("nodePubkey"),_s("authorizedWithdrawer"),Br.u8("commission"),Br.nu64(),Br.seq(Br.struct([Br.nu64("slot"),Br.u32("confirmationCount")]),Br.offset(Br.u32(),-8),"votes"),Br.u8("rootSlotValid"),Br.nu64("rootSlot"),Br.nu64(),Br.seq(Br.struct([Br.nu64("epoch"),_s("authorizedVoter")]),Br.offset(Br.u32(),-8),"authorizedVoters"),Br.struct([Br.seq(Br.struct([_s("authorizedPubkey"),Br.nu64("epochOfLastAuthorizedSwitch"),Br.nu64("targetEpoch")]),32,"buf"),Br.nu64("idx"),Br.u8("isEmpty")],"priorVoters"),Br.nu64(),Br.seq(Br.struct([Br.nu64("epoch"),Br.nu64("credits"),Br.nu64("prevCredits")]),Br.offset(Br.u32(),-8),"epochCredits"),Br.struct([Br.nu64("slot"),Br.nu64("timestamp")],"lastTimestamp")]);J();K();z();var s3={};gh(s3,{AbiCoder:()=>L_,AbstractProvider:()=>U_,AbstractSigner:()=>F_,AlchemyProvider:()=>sw,AnkrProvider:()=>aw,BaseContract:()=>QR,BaseWallet:()=>GR,Block:()=>ew,BrowserProvider:()=>BL,ChainstackProvider:()=>cw,CloudflareProvider:()=>uw,ConstructorFragment:()=>Ub,Contract:()=>Vp,ContractEventPayload:()=>tw,ContractFactory:()=>RL,ContractTransactionReceipt:()=>Yx,ContractTransactionResponse:()=>FR,ContractUnknownEventPayload:()=>XI,EnsPlugin:()=>e3,EnsResolver:()=>ZI,ErrorDescription:()=>Kx,ErrorFragment:()=>QA,EtherSymbol:()=>a1e,EtherscanPlugin:()=>OL,EtherscanProvider:()=>dw,EventFragment:()=>Lb,EventLog:()=>UR,EventPayload:()=>IR,FallbackFragment:()=>ZC,FallbackProvider:()=>hw,FeeData:()=>YI,FeeDataNetworkPlugin:()=>IL,FetchCancelSignal:()=>Nx,FetchRequest:()=>jc,FetchResponse:()=>$m,FetchUrlFeeDataNetworkPlugin:()=>iw,FixedNumber:()=>MI,Fragment:()=>Qb,FunctionFragment:()=>Fb,GasCostPlugin:()=>jI,HDNodeVoidWallet:()=>yw,HDNodeWallet:()=>JR,Indexed:()=>jC,InfuraProvider:()=>o3,InfuraWebSocketProvider:()=>nT,Interface:()=>PR,IpcSocketProvider:()=>sge,JsonRpcApiProvider:()=>n3,JsonRpcProvider:()=>i0,JsonRpcSigner:()=>r3,LangEn:()=>Jp,Log:()=>ig,LogDescription:()=>Jx,MaxInt256:()=>o1e,MaxUint256:()=>n1e,MessagePrefix:()=>dL,MinInt256:()=>i1e,Mnemonic:()=>qb,MulticoinProviderPlugin:()=>Wx,N:()=>t1e,NamedFragment:()=>kR,Network:()=>Fs,NetworkPlugin:()=>ay,NonceManager:()=>TL,ParamType:()=>pd,PocketProvider:()=>ML,QuickNodeProvider:()=>lw,Result:()=>CR,Signature:()=>th,SigningKey:()=>rh,SocketBlockSubscriber:()=>eT,SocketEventSubscriber:()=>rT,SocketPendingSubscriber:()=>tT,SocketProvider:()=>fw,SocketSubscriber:()=>i3,StructFragment:()=>KI,Transaction:()=>ng,TransactionDescription:()=>zx,TransactionReceipt:()=>LR,TransactionResponse:()=>Hb,Typed:()=>lu,TypedDataEncoder:()=>P_,UndecodedEventLog:()=>WI,UnmanagedSubscriber:()=>sy,Utf8ErrorFuncs:()=>A$,VoidSigner:()=>ow,Wallet:()=>zR,WebSocketProvider:()=>HR,WeiPerEther:()=>r1e,Wordlist:()=>Aw,WordlistOwl:()=>qR,WordlistOwlA:()=>QL,ZeroAddress:()=>ry,ZeroHash:()=>Ux,accessListify:()=>ih,assert:()=>Xr,assertArgument:()=>_r,assertArgumentCount:()=>kC,assertNormalize:()=>PC,assertPrivate:()=>jl,checkResultErrors:()=>v$,computeAddress:()=>rg,computeHmac:()=>Zm,concat:()=>Jo,copyRequest:()=>Gb,dataLength:()=>Hp,dataSlice:()=>tc,decodeBase58:()=>eL,decodeBase64:()=>tL,decodeBytes32String:()=>F1e,decodeRlp:()=>DI,decryptCrowdsaleJson:()=>dT,decryptKeystoreJson:()=>FL,decryptKeystoreJsonSync:()=>UL,defaultPath:()=>cT,defineProperties:()=>Un,dnsEncode:()=>mL,encodeBase58:()=>UC,encodeBase64:()=>rL,encodeBytes32String:()=>U1e,encodeRlp:()=>D_,encryptKeystoreJson:()=>mw,encryptKeystoreJsonSync:()=>_w,ensNormalize:()=>rY,formatEther:()=>Npe,formatUnits:()=>m$,fromTwos:()=>RR,getAccountPath:()=>mge,getAddress:()=>Co,getBigInt:()=>gi,getBytes:()=>Dn,getBytesCopy:()=>$u,getCreate2Address:()=>u1e,getCreateAddress:()=>KC,getDefaultProvider:()=>age,getIcapAddress:()=>c1e,getIndexedAccountPath:()=>yge,getNumber:()=>Zi,getUint:()=>LC,hashMessage:()=>zI,hexlify:()=>vn,id:()=>nh,isAddress:()=>f1e,isAddressable:()=>Qx,isBytesLike:()=>zm,isCallException:()=>BI,isCrowdsaleJson:()=>uT,isError:()=>Tc,isHexString:()=>ns,isKeystoreJson:()=>sT,isValidName:()=>I1e,keccak256:()=>Xa,lock:()=>eat,makeError:()=>wc,mask:()=>j1,namehash:()=>JI,parseEther:()=>Mx,parseUnits:()=>y$,pbkdf2:()=>UA,randomBytes:()=>Kh,recoverAddress:()=>BR,resolveAddress:()=>r0,resolveProperties:()=>Pu,ripemd160:()=>jm,scrypt:()=>ey,scryptSync:()=>ty,sha256:()=>Bd,sha512:()=>GC,showThrottleMessage:()=>ah,solidityPacked:()=>bL,solidityPackedKeccak256:()=>B1e,solidityPackedSha256:()=>M1e,stripZerosLeft:()=>Spe,toBeArray:()=>Yu,toBeHex:()=>gl,toBigInt:()=>M_,toNumber:()=>jP,toQuantity:()=>Gp,toTwos:()=>SR,toUtf8Bytes:()=>rc,toUtf8CodePoints:()=>Cpe,toUtf8String:()=>LA,uuidV4:()=>iL,verifyMessage:()=>T1e,verifyTypedData:()=>P1e,version:()=>Cx,wordlists:()=>bge,zeroPadBytes:()=>vR,zeroPadValue:()=>Hf});J();K();z();J();K();z();var Cx="6.12.0";J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();function YYt(e,t,r){let i=t.split("|").map(o=>o.trim());for(let o=0;o<i.length;o++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}let n=new Error(`invalid value for type ${t}`);throw n.code="INVALID_ARGUMENT",n.argument=`value.${r}`,n.value=e,n}async function Pu(e){let t=Object.keys(e);return(await Promise.all(t.map(i=>Promise.resolve(e[i])))).reduce((i,n,o)=>(i[t[o]]=n,i),{})}function Un(e,t,r){for(let i in t){let n=t[i],o=r?r[i]:null;o&&YYt(n,o,i),Object.defineProperty(e,i,{enumerable:!0,value:n,writable:!1})}}function wx(e){if(e==null)return"null";if(Array.isArray(e))return"[ "+e.map(wx).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let i=0;i<e.length;i++)r+=t[e[i]>>4],r+=t[e[i]&15];return r}if(typeof e=="object"&&typeof e.toJSON=="function")return wx(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"number":return e.toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{ "+t.map(r=>`${wx(r)}: ${wx(e[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Tc(e,t){return e&&e.code===t}function BI(e){return Tc(e,"CALL_EXCEPTION")}function wc(e,t,r){let i=e;{let o=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${wx(r)}`);for(let d in r){if(d==="shortMessage")continue;let g=r[d];o.push(d+"="+wx(g))}}o.push(`code=${t}`),o.push(`version=${Cx}`),o.length&&(e+=" ("+o.join(", ")+")")}let n;switch(t){case"INVALID_ARGUMENT":n=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=new RangeError(e);break;default:n=new Error(e)}return Un(n,{code:t}),r&&Object.assign(n,r),n.shortMessage==null&&Un(n,{shortMessage:i}),n}function Xr(e,t,r,i){if(!e)throw wc(t,r,i)}function _r(e,t,r,i){Xr(e,t,"INVALID_ARGUMENT",{argument:r,value:i})}function kC(e,t,r){r==null&&(r=""),r&&(r=": "+r),Xr(e>=t,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),Xr(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}var WYt=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test".normalize(t)!=="test")throw new Error("bad");if(t==="NFD"&&"\xE9".normalize("NFD")!=="e\u0301")throw new Error("broken");e.push(t)}catch{}return e},[]);function PC(e){Xr(WYt.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function jl(e,t,r){if(r==null&&(r=""),e!==t){let i=r,n="new";r&&(i+=".",n+=" "+r),Xr(!1,`private constructor; use ${i}from* methods`,"UNSUPPORTED_OPERATION",{operation:n})}}function git(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if(typeof e=="string"&&e.match(/^0x([0-9a-f][0-9a-f])*$/i)){let i=new Uint8Array((e.length-2)/2),n=2;for(let o=0;o<i.length;o++)i[o]=parseInt(e.substring(n,n+2),16),n+=2;return i}_r(!1,"invalid BytesLike value",t||"value",e)}function Dn(e,t){return git(e,t,!1)}function $u(e,t){return git(e,t,!0)}function ns(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||typeof t=="number"&&e.length!==2+2*t||t===!0&&e.length%2!==0)}function zm(e){return ns(e,!0)||e instanceof Uint8Array}var pit="0123456789abcdef";function vn(e){let t=Dn(e),r="0x";for(let i=0;i<t.length;i++){let n=t[i];r+=pit[(n&240)>>4]+pit[n&15]}return r}function Jo(e){return"0x"+e.map(t=>vn(t).substring(2)).join("")}function Hp(e){return ns(e,!0)?(e.length-2)/2:Dn(e).length}function tc(e,t,r){let i=Dn(e);return r!=null&&r>i.length&&Xr(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:i,length:i.length,offset:r}),vn(i.slice(t??0,r??i.length))}function Spe(e){let t=vn(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t}function _it(e,t,r){let i=Dn(e);Xr(t>=i.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(i),length:t,offset:t+1});let n=new Uint8Array(t);return n.fill(0),r?n.set(i,t-i.length):n.set(i,0),vn(n)}function Hf(e,t){return _it(e,t,!0)}function vR(e,t){return _it(e,t,!1)}J();K();z();var f$=BigInt(0),Km=BigInt(1),Ox=9007199254740991;function RR(e,t){let r=LC(e,"value"),i=BigInt(Zi(t,"width"));if(Xr(r>>i===f$,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>i-Km){let n=(Km<<i)-Km;return-((~r&n)+Km)}return r}function SR(e,t){let r=gi(e,"value"),i=BigInt(Zi(t,"width")),n=Km<<i-Km;if(r<f$){r=-r,Xr(r<=n,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});let o=(Km<<i)-Km;return(~r&o)+Km}else Xr(r<n,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return r}function j1(e,t){let r=LC(e,"value"),i=BigInt(Zi(t,"bits"));return r&(Km<<i)-Km}function gi(e,t){switch(typeof e){case"bigint":return e;case"number":return _r(Number.isInteger(e),"underflow",t||"value",e),_r(e>=-Ox&&e<=Ox,"overflow",t||"value",e),BigInt(e);case"string":try{if(e==="")throw new Error("empty string");return e[0]==="-"&&e[1]!=="-"?-BigInt(e.substring(1)):BigInt(e)}catch(r){_r(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}_r(!1,"invalid BigNumberish value",t||"value",e)}function LC(e,t){let r=gi(e,t);return Xr(r>=f$,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}var mit="0123456789abcdef";function M_(e){if(e instanceof Uint8Array){let t="0x0";for(let r of e)t+=mit[r>>4],t+=mit[r&15];return BigInt(t)}return gi(e)}function Zi(e,t){switch(typeof e){case"bigint":return _r(e>=-Ox&&e<=Ox,"overflow",t||"value",e),Number(e);case"number":return _r(Number.isInteger(e),"underflow",t||"value",e),_r(e>=-Ox&&e<=Ox,"overflow",t||"value",e),e;case"string":try{if(e==="")throw new Error("empty string");return Zi(BigInt(e),t)}catch(r){_r(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}_r(!1,"invalid numeric value",t||"value",e)}function jP(e){return Zi(M_(e))}function gl(e,t){let i=LC(e,"value").toString(16);if(t==null)i.length%2&&(i="0"+i);else{let n=Zi(t,"width");for(Xr(n*2>=i.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});i.length<n*2;)i="0"+i}return"0x"+i}function Yu(e){let t=LC(e,"value");if(t===f$)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);let i=new Uint8Array(r.length/2);for(let n=0;n<i.length;n++){let o=n*2;i[n]=parseInt(r.substring(o,o+2),16)}return i}function Gp(e){let t=vn(zm(e)?e:Yu(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return t===""&&(t="0"),"0x"+t}var h$="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",l$=null;function XYt(e){if(l$==null){l$={};for(let r=0;r<h$.length;r++)l$[h$[r]]=BigInt(r)}let t=l$[e];return _r(t!=null,"invalid base58 value","letter",e),t}var ZYt=BigInt(0),Ipe=BigInt(58);function UC(e){let t=Dn(e),r=M_(t),i="";for(;r;)i=h$[Number(r%Ipe)]+i,r/=Ipe;for(let n=0;n<t.length&&!t[n];n++)i=h$[0]+i;return i}function eL(e){let t=ZYt;for(let r=0;r<e.length;r++)t*=Ipe,t+=XYt(e[r]);return t}J();K();z();function tL(e){e=atob(e);let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return Dn(t)}function rL(e){let t=Dn(e),r="";for(let i=0;i<t.length;i++)r+=String.fromCharCode(t[i]);return btoa(r)}J();K();z();var IR=class{filter;emitter;#e;constructor(t,r,i){this.#e=r,Un(this,{emitter:t,filter:i})}async removeListener(){this.#e!=null&&await this.emitter.off(this.filter,this.#e)}};J();K();z();J();K();z();function jYt(e,t,r,i,n){_r(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function yit(e,t,r,i,n){if(e==="BAD_PREFIX"||e==="UNEXPECTED_CONTINUE"){let o=0;for(let d=t+1;d<r.length&&r[d]>>6===2;d++)o++;return o}return e==="OVERRUN"?r.length-t-1:0}function eWt(e,t,r,i,n){return e==="OVERLONG"?(_r(typeof n=="number","invalid bad code point for replacement","badCodepoint",n),i.push(n),0):(i.push(65533),yit(e,t,r,i,n))}var A$=Object.freeze({error:jYt,ignore:yit,replace:eWt});function bit(e,t){t==null&&(t=A$.error);let r=Dn(e,"bytes"),i=[],n=0;for(;n<r.length;){let o=r[n++];if(o>>7===0){i.push(o);continue}let d=null,g=null;if((o&224)===192)d=1,g=127;else if((o&240)===224)d=2,g=2047;else if((o&248)===240)d=3,g=65535;else{(o&192)===128?n+=t("UNEXPECTED_CONTINUE",n-1,r,i):n+=t("BAD_PREFIX",n-1,r,i);continue}if(n-1+d>=r.length){n+=t("OVERRUN",n-1,r,i);continue}let y=o&(1<<8-d-1)-1;for(let _=0;_<d;_++){let I=r[n];if((I&192)!=128){n+=t("MISSING_CONTINUE",n,r,i),y=null;break}y=y<<6|I&63,n++}if(y!==null){if(y>1114111){n+=t("OUT_OF_RANGE",n-1-d,r,i,y);continue}if(y>=55296&&y<=57343){n+=t("UTF16_SURROGATE",n-1-d,r,i,y);continue}if(y<=g){n+=t("OVERLONG",n-1-d,r,i,y);continue}i.push(y)}}return i}function rc(e,t){_r(typeof e=="string","invalid string value","str",e),t!=null&&(PC(t),e=e.normalize(t));let r=[];for(let i=0;i<e.length;i++){let n=e.charCodeAt(i);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(n&63|128);else if((n&64512)==55296){i++;let o=e.charCodeAt(i);_r(i<e.length&&(o&64512)===56320,"invalid surrogate pair","str",e);let d=65536+((n&1023)<<10)+(o&1023);r.push(d>>18|240),r.push(d>>12&63|128),r.push(d>>6&63|128),r.push(d&63|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(n&63|128)}return new Uint8Array(r)}function tWt(e){return e.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))).join("")}function LA(e,t){return tWt(bit(e,t))}function Cpe(e,t){return bit(rc(e,t))}J();K();z();function p$(e){async function t(r,i){let n=r.url.split(":")[0].toLowerCase();Xr(n==="http"||n==="https",`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),Xr(n==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let o;if(i){let N=new AbortController;o=N.signal,i.addListener(()=>{N.abort()})}let d={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o},g=await fetch(r.url,d),y={};g.headers.forEach((N,T)=>{y[T.toLowerCase()]=N});let _=await g.arrayBuffer(),I=_==null?null:new Uint8Array(_);return{statusCode:g.status,statusMessage:g.statusText,headers:y,body:I}}return t}var OXn=p$({});var rWt=12,nWt=250,Eit=p$(),iWt=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),oWt=new RegExp("^ipfs://(ipfs/)?(.*)$","i"),wpe=!1;async function Rit(e,t){try{let r=e.match(iWt);if(!r)throw new Error("invalid data");return new $m(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?tL(r[3]):aWt(r[3]))}catch{return new $m(599,"BAD REQUEST (invalid data: URI)",{},null,new jc(e))}}function Sit(e){async function t(r,i){try{let n=r.match(oWt);if(!n)throw new Error("invalid link");return new jc(`${e}${n[2]}`)}catch{return new $m(599,"BAD REQUEST (invalid IPFS URI)",{},null,new jc(r))}}return t}var g$={data:Rit,ipfs:Sit("https://gateway.ipfs.io/ipfs/")},Iit=new WeakMap,Nx=class{#e;#t;constructor(t){this.#e=[],this.#t=!1,Iit.set(t,()=>{if(!this.#t){this.#t=!0;for(let r of this.#e)setTimeout(()=>{r()},0);this.#e=[]}})}addListener(t){Xr(!this.#t,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#e.push(t)}get cancelled(){return this.#t}checkSignal(){Xr(!this.cancelled,"cancelled","CANCELLED",{})}};function _$(e){if(e==null)throw new Error("missing signal; should not happen");return e.checkSignal(),e}var jc=class e{#e;#t;#r;#n;#i;#a;#o;#s;#f;#u;#A;#p;#c;#d;#l;get url(){return this.#a}set url(t){this.#a=String(t)}get body(){return this.#o==null?null:new Uint8Array(this.#o)}set body(t){if(t==null)this.#o=void 0,this.#s=void 0;else if(typeof t=="string")this.#o=rc(t),this.#s="text/plain";else if(t instanceof Uint8Array)this.#o=t,this.#s="application/octet-stream";else if(typeof t=="object")this.#o=rc(JSON.stringify(t)),this.#s="application/json";else throw new Error("invalid body")}hasBody(){return this.#o!=null}get method(){return this.#n?this.#n:this.hasBody()?"POST":"GET"}set method(t){t==null&&(t=""),this.#n=String(t).toUpperCase()}get headers(){let t=Object.assign({},this.#r);return this.#f&&(t.authorization=`Basic ${rL(rc(this.#f))}`),this.allowGzip&&(t["accept-encoding"]="gzip"),t["content-type"]==null&&this.#s&&(t["content-type"]=this.#s),this.body&&(t["content-length"]=String(this.body.length)),t}getHeader(t){return this.headers[t.toLowerCase()]}setHeader(t,r){this.#r[String(t).toLowerCase()]=String(r)}clearHeaders(){this.#r={}}[Symbol.iterator](){let t=this.headers,r=Object.keys(t),i=0;return{next:()=>{if(i<r.length){let n=r[i++];return{value:[n,t[n]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#f||null}setCredentials(t,r){_r(!t.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#f=`${t}:${r}`}get allowGzip(){return this.#t}set allowGzip(t){this.#t=!!t}get allowInsecureAuthentication(){return!!this.#e}set allowInsecureAuthentication(t){this.#e=!!t}get timeout(){return this.#i}set timeout(t){_r(t>=0,"timeout must be non-zero","timeout",t),this.#i=t}get preflightFunc(){return this.#u||null}set preflightFunc(t){this.#u=t}get processFunc(){return this.#A||null}set processFunc(t){this.#A=t}get retryFunc(){return this.#p||null}set retryFunc(t){this.#p=t}get getUrlFunc(){return this.#l||Eit}set getUrlFunc(t){this.#l=t}constructor(t){this.#a=String(t),this.#e=!1,this.#t=!0,this.#r={},this.#n="",this.#i=3e5,this.#d={slotInterval:nWt,maxAttempts:rWt},this.#l=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#o?vn(this.#o):"null"}>`}setThrottleParams(t){t.slotInterval!=null&&(this.#d.slotInterval=t.slotInterval),t.maxAttempts!=null&&(this.#d.maxAttempts=t.maxAttempts)}async#h(t,r,i,n,o){if(t>=this.#d.maxAttempts)return o.makeServerError("exceeded maximum retry limit");Xr(vit()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),i>0&&await sWt(i);let d=this.clone(),g=(d.url.split(":")[0]||"").toLowerCase();if(g in g$){let I=await g$[g](d.url,_$(n.#c));if(I instanceof $m){let N=I;if(this.processFunc){_$(n.#c);try{N=await this.processFunc(d,N)}catch(T){(T.throttle==null||typeof T.stall!="number")&&N.makeServerError("error in post-processing function",T).assertOk()}}return N}d=I}this.preflightFunc&&(d=await this.preflightFunc(d));let y=await this.getUrlFunc(d,_$(n.#c)),_=new $m(y.statusCode,y.statusMessage,y.headers,y.body,n);if(_.statusCode===301||_.statusCode===302){try{let I=_.headers.location||"";return d.redirect(I).#h(t+1,r,0,n,_)}catch{}return _}else if(_.statusCode===429&&(this.retryFunc==null||await this.retryFunc(d,_,t))){let I=_.headers["retry-after"],N=this.#d.slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return typeof I=="string"&&I.match(/^[1-9][0-9]*$/)&&(N=parseInt(I)),d.clone().#h(t+1,r,N,n,_)}if(this.processFunc){_$(n.#c);try{_=await this.processFunc(d,_)}catch(I){(I.throttle==null||typeof I.stall!="number")&&_.makeServerError("error in post-processing function",I).assertOk();let N=this.#d.slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return I.stall>=0&&(N=I.stall),d.clone().#h(t+1,r,N,n,_)}}return _}send(){return Xr(this.#c==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#c=new Nx(this),this.#h(0,vit()+this.timeout,0,this,new $m(0,"",{},null,this))}cancel(){Xr(this.#c!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let t=Iit.get(this);if(!t)throw new Error("missing signal; should not happen");t()}redirect(t){let r=this.url.split(":")[0].toLowerCase(),i=t.split(":")[0].toLowerCase();Xr(this.method==="GET"&&(r!=="https"||i!=="http")&&t.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(t)})`});let n=new e(t);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#r=Object.assign({},this.#r),this.#o&&(n.#o=new Uint8Array(this.#o)),n.#s=this.#s,n}clone(){let t=new e(this.url);return t.#n=this.#n,this.#o&&(t.#o=this.#o),t.#s=this.#s,t.#r=Object.assign({},this.#r),t.#f=this.#f,this.allowGzip&&(t.allowGzip=!0),t.timeout=this.timeout,this.allowInsecureAuthentication&&(t.allowInsecureAuthentication=!0),t.#u=this.#u,t.#A=this.#A,t.#p=this.#p,t.#d=Object.assign({},this.#d),t.#l=this.#l,t}static lockConfig(){wpe=!0}static getGateway(t){return g$[t.toLowerCase()]||null}static registerGateway(t,r){if(t=t.toLowerCase(),t==="http"||t==="https")throw new Error(`cannot intercept ${t}; use registerGetUrl`);if(wpe)throw new Error("gateways locked");g$[t]=r}static registerGetUrl(t){if(wpe)throw new Error("gateways locked");Eit=t}static createGetUrlFunc(t){return p$(t)}static createDataGateway(){return Rit}static createIpfsGatewayFunc(t){return Sit(t)}},$m=class e{#e;#t;#r;#n;#i;#a;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#n?vn(this.#n):"null"}>`}get statusCode(){return this.#e}get statusMessage(){return this.#t}get headers(){return Object.assign({},this.#r)}get body(){return this.#n==null?null:new Uint8Array(this.#n)}get bodyText(){try{return this.#n==null?"":LA(this.#n)}catch{Xr(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{Xr(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let t=this.headers,r=Object.keys(t),i=0;return{next:()=>{if(i<r.length){let n=r[i++];return{value:[n,t[n]],done:!1}}return{value:void 0,done:!0}}}}constructor(t,r,i,n,o){this.#e=t,this.#t=r,this.#r=Object.keys(i).reduce((d,g)=>(d[g.toLowerCase()]=String(i[g]),d),{}),this.#n=n==null?null:new Uint8Array(n),this.#i=o||null,this.#a={message:""}}makeServerError(t,r){let i;t?i=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${t})`:(t=`${this.statusCode} ${this.statusMessage}`,i=`CLIENT ESCALATED SERVER ERROR (${t})`);let n=new e(599,i,this.headers,this.body,this.#i||void 0);return n.#a={message:t,error:r},n}throwThrottleError(t,r){r==null?r=-1:_r(Number.isInteger(r)&&r>=0,"invalid stall timeout","stall",r);let i=new Error(t||"throttling requests");throw Un(i,{stall:r,throttle:!0}),i}getHeader(t){return this.headers[t.toLowerCase()]}hasBody(){return this.#n!=null}get request(){return this.#i}ok(){return this.#a.message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:t,error:r}=this.#a;t===""&&(t=`server response ${this.statusCode} ${this.statusMessage}`);let i=null;this.request&&(i=this.request.url);let n=null;try{this.#n&&(n=LA(this.#n))}catch{}Xr(!1,t,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:i,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};function vit(){return new Date().getTime()}function aWt(e){return rc(e.replace(/%([0-9a-f][0-9a-f])/gi,(t,r)=>String.fromCharCode(parseInt(r,16))))}function sWt(e){return new Promise(t=>setTimeout(t,e))}J();K();z();var cWt=BigInt(-1),Ym=BigInt(0),Tx=BigInt(1),uWt=BigInt(5),xx={},Bx="0000";for(;Bx.length<80;)Bx+=Bx;function FC(e){let t=Bx;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function nL(e,t,r){let i=BigInt(t.width);if(t.signed){let n=Tx<<i-Tx;Xr(r==null||e>=-n&&e<n,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e>Ym?e=RR(j1(e,i),i):e=-RR(j1(-e,i),i)}else{let n=Tx<<i;Xr(r==null||e>=0&&e<n,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=(e%n+n)%n&n-Tx}return e}function Ope(e){typeof e=="number"&&(e=`fixed128x${e}`);let t=!0,r=128,i=18;if(typeof e=="string"){if(e!=="fixed")if(e==="ufixed")t=!1;else{let o=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);_r(o,"invalid fixed format","format",e),t=o[1]!=="u",r=parseInt(o[2]),i=parseInt(o[3])}}else if(e){let o=e,d=(g,y,_)=>o[g]==null?_:(_r(typeof o[g]===y,"invalid fixed format ("+g+" not "+y+")","format."+g,o[g]),o[g]);t=d("signed","boolean",t),r=d("width","number",r),i=d("decimals","number",i)}_r(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),_r(i<=80,"invalid FixedNumber decimals (too large)","format.decimals",i);let n=(t?"":"u")+"fixed"+String(r)+"x"+String(i);return{signed:t,width:r,decimals:i,name:n}}function dWt(e,t){let r="";e<Ym&&(r="-",e*=cWt);let i=e.toString();if(t===0)return r+i;for(;i.length<=t;)i=Bx+i;let n=i.length-t;for(i=i.substring(0,n)+"."+i.substring(n);i[0]==="0"&&i[1]!==".";)i=i.substring(1);for(;i[i.length-1]==="0"&&i[i.length-2]!==".";)i=i.substring(0,i.length-1);return r+i}var MI=class e{format;#e;#t;#r;_value;constructor(t,r,i){jl(t,xx,"FixedNumber"),this.#t=r,this.#e=i;let n=dWt(r,i.decimals);Un(this,{format:i.name,_value:n}),this.#r=FC(i.decimals)}get signed(){return this.#e.signed}get width(){return this.#e.width}get decimals(){return this.#e.decimals}get value(){return this.#t}#n(t){_r(this.format===t.format,"incompatible format; use fixedNumber.toFormat","other",t)}#i(t,r){return t=nL(t,this.#e,r),new e(xx,t,this.#e)}#a(t,r){return this.#n(t),this.#i(this.#t+t.#t,r)}addUnsafe(t){return this.#a(t)}add(t){return this.#a(t,"add")}#o(t,r){return this.#n(t),this.#i(this.#t-t.#t,r)}subUnsafe(t){return this.#o(t)}sub(t){return this.#o(t,"sub")}#s(t,r){return this.#n(t),this.#i(this.#t*t.#t/this.#r,r)}mulUnsafe(t){return this.#s(t)}mul(t){return this.#s(t,"mul")}mulSignal(t){this.#n(t);let r=this.#t*t.#t;return Xr(r%this.#r===Ym,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#i(r/this.#r,"mulSignal")}#f(t,r){return Xr(t.#t!==Ym,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#n(t),this.#i(this.#t*this.#r/t.#t,r)}divUnsafe(t){return this.#f(t)}div(t){return this.#f(t,"div")}divSignal(t){Xr(t.#t!==Ym,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#n(t);let r=this.#t*this.#r;return Xr(r%t.#t===Ym,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#i(r/t.#t,"divSignal")}cmp(t){let r=this.value,i=t.value,n=this.decimals-t.decimals;return n>0?i*=FC(n):n<0&&(r*=FC(-n)),r<i?-1:r>i?1:0}eq(t){return this.cmp(t)===0}lt(t){return this.cmp(t)<0}lte(t){return this.cmp(t)<=0}gt(t){return this.cmp(t)>0}gte(t){return this.cmp(t)>=0}floor(){let t=this.#t;return this.#t<Ym&&(t-=this.#r-Tx),t=this.#t/this.#r*this.#r,this.#i(t,"floor")}ceiling(){let t=this.#t;return this.#t>Ym&&(t+=this.#r-Tx),t=this.#t/this.#r*this.#r,this.#i(t,"ceiling")}round(t){if(t==null&&(t=0),t>=this.decimals)return this;let r=this.decimals-t,i=uWt*FC(r-1),n=this.value+i,o=FC(r);return n=n/o*o,nL(n,this.#e,"round"),new e(xx,n,this.#e)}isZero(){return this.#t===Ym}isNegative(){return this.#t<Ym}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return e.fromString(this.toString(),t)}static fromValue(t,r,i){let n=r==null?0:Zi(r),o=Ope(i),d=gi(t,"value"),g=n-o.decimals;if(g>0){let y=FC(g);Xr(d%y===Ym,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:t}),d/=y}else g<0&&(d*=FC(-g));return nL(d,o,"fromValue"),new e(xx,d,o)}static fromString(t,r){let i=t.match(/^(-?)([0-9]*)\.?([0-9]*)$/);_r(i&&i[2].length+i[3].length>0,"invalid FixedNumber string value","value",t);let n=Ope(r),o=i[2]||"0",d=i[3]||"";for(;d.length<n.decimals;)d+=Bx;Xr(d.substring(n.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:t}),d=d.substring(0,n.decimals);let g=BigInt(i[1]+o+d);return nL(g,n,"fromString"),new e(xx,g,n)}static fromBytes(t,r){let i=M_(Dn(t,"value")),n=Ope(r);return n.signed&&(i=RR(i,n.width)),nL(i,n,"fromBytes"),new e(xx,i,n)}};J();K();z();function fWt(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function Cit(e,t,r){let i=0;for(let n=0;n<r;n++)i=i*256+e[t+n];return i}function wit(e,t,r,i){let n=[];for(;r<t+1+i;){let o=Oit(e,r);n.push(o.result),r+=o.consumed,Xr(r<=t+1+i,"child data too short","BUFFER_OVERRUN",{buffer:e,length:i,offset:t})}return{consumed:1+i,result:n}}function Oit(e,t){Xr(e.length!==0,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});let r=i=>{Xr(i<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:i})};if(e[t]>=248){let i=e[t]-247;r(t+1+i);let n=Cit(e,t+1,i);return r(t+1+i+n),wit(e,t,t+1+i,i+n)}else if(e[t]>=192){let i=e[t]-192;return r(t+1+i),wit(e,t,t+1,i)}else if(e[t]>=184){let i=e[t]-183;r(t+1+i);let n=Cit(e,t+1,i);r(t+1+i+n);let o=vn(e.slice(t+1+i,t+1+i+n));return{consumed:1+i+n,result:o}}else if(e[t]>=128){let i=e[t]-128;r(t+1+i);let n=vn(e.slice(t+1,t+1+i));return{consumed:1+i,result:n}}return{consumed:1,result:fWt(e[t])}}function DI(e){let t=Dn(e,"data"),r=Oit(t,0);return _r(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}J();K();z();function Nit(e){let t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function Tit(e){if(Array.isArray(e)){let i=[];if(e.forEach(function(o){i=i.concat(Tit(o))}),i.length<=55)return i.unshift(192+i.length),i;let n=Nit(i.length);return n.unshift(247+n.length),n.concat(i)}let t=Array.prototype.slice.call(Dn(e,"object"));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let r=Nit(t.length);return r.unshift(183+r.length),r.concat(t)}var xit="0123456789abcdef";function D_(e){let t="0x";for(let r of Tit(e))t+=xit[r>>4],t+=xit[r&15];return t}J();K();z();var Bit=["wei","kwei","mwei","gwei","szabo","finney","ether"];function m$(e,t){let r=18;if(typeof t=="string"){let i=Bit.indexOf(t);_r(i>=0,"invalid unit","unit",t),r=3*i}else t!=null&&(r=Zi(t,"unit"));return MI.fromValue(e,r,{decimals:r,width:512}).toString()}function y$(e,t){_r(typeof e=="string","value must be a string","value",e);let r=18;if(typeof t=="string"){let i=Bit.indexOf(t);_r(i>=0,"invalid unit","unit",t),r=3*i}else t!=null&&(r=Zi(t,"unit"));return MI.fromString(e,{decimals:r,width:512}).value}function Npe(e){return m$(e,18)}function Mx(e){return y$(e,18)}J();K();z();function iL(e){let t=Dn(e,"randomBytes");t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=vn(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}J();K();z();var eh=32,xpe=new Uint8Array(eh),lWt=["then"],b$={};function oL(e,t){let r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}var CR=class e extends Array{#e;constructor(...t){let r=t[0],i=t[1],n=(t[2]||[]).slice(),o=!0;r!==b$&&(i=t,n=[],o=!1),super(i.length),i.forEach((g,y)=>{this[y]=g});let d=n.reduce((g,y)=>(typeof y=="string"&&g.set(y,(g.get(y)||0)+1),g),new Map);if(this.#e=Object.freeze(i.map((g,y)=>{let _=n[y];return _!=null&&d.get(_)===1?_:null})),!!o)return Object.freeze(this),new Proxy(this,{get:(g,y,_)=>{if(typeof y=="string"){if(y.match(/^[0-9]+$/)){let N=Zi(y,"%index");if(N<0||N>=this.length)throw new RangeError("out of result range");let T=g[N];return T instanceof Error&&oL(`index ${N}`,T),T}if(lWt.indexOf(y)>=0)return Reflect.get(g,y,_);let I=g[y];if(I instanceof Function)return function(...N){return I.apply(this===_?g:this,N)};if(!(y in g))return g.getValue.apply(this===_?g:this,[y])}return Reflect.get(g,y,_)}})}toArray(t){let r=[];return this.forEach((i,n)=>{i instanceof Error&&oL(`index ${n}`,i),t&&i instanceof e&&(i=i.toArray(t)),r.push(i)}),r}toObject(t){return this.#e.reduce((r,i,n)=>{if(Xr(i!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),!(i in r)){let o=this.getValue(i);t&&o instanceof e&&(o=o.toObject(t)),r[i]=o}return r},{})}slice(t,r){t==null&&(t=0),t<0&&(t+=this.length,t<0&&(t=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);let i=[],n=[];for(let o=t;o<r;o++)i.push(this[o]),n.push(this.#e[o]);return new e(b$,i,n)}filter(t,r){let i=[],n=[];for(let o=0;o<this.length;o++){let d=this[o];d instanceof Error&&oL(`index ${o}`,d),t.call(r,d,o,this)&&(i.push(d),n.push(this.#e[o]))}return new e(b$,i,n)}map(t,r){let i=[];for(let n=0;n<this.length;n++){let o=this[n];o instanceof Error&&oL(`index ${n}`,o),i.push(t.call(r,o,n,this))}return i}getValue(t){let r=this.#e.indexOf(t);if(r===-1)return;let i=this[r];return i instanceof Error&&oL(`property ${JSON.stringify(t)}`,i.error),i}static fromItems(t,r){return new e(b$,t,r)}};function v$(e){let t=[],r=function(i,n){if(Array.isArray(n))for(let o in n){let d=i.slice();d.push(o);try{r(d,n[o])}catch(g){t.push({path:d,error:g})}}};return r([],e),t}function Mit(e){let t=Yu(e);return Xr(t.length<=eh,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:eh,offset:t.length}),t.length!==eh&&(t=$u(Jo([xpe.slice(t.length%eh),t]))),t}var of=class{name;type;localName;dynamic;constructor(t,r,i,n){Un(this,{name:t,type:r,localName:i,dynamic:n},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(t,r){_r(!1,t,this.localName,r)}},QC=class{#e;#t;constructor(){this.#e=[],this.#t=0}get data(){return Jo(this.#e)}get length(){return this.#t}#r(t){return this.#e.push(t),this.#t+=t.length,t.length}appendWriter(t){return this.#r($u(t.data))}writeBytes(t){let r=$u(t),i=r.length%eh;return i&&(r=$u(Jo([r,xpe.slice(i)]))),this.#r(r)}writeValue(t){return this.#r(Mit(t))}writeUpdatableValue(){let t=this.#e.length;return this.#e.push(xpe),this.#t+=eh,r=>{this.#e[t]=Mit(r)}}},E$=class e{allowLoose;#e;#t;#r;#n;#i;constructor(t,r,i){Un(this,{allowLoose:!!r}),this.#e=$u(t),this.#r=0,this.#n=null,this.#i=i??1024,this.#t=0}get data(){return vn(this.#e)}get dataLength(){return this.#e.length}get consumed(){return this.#t}get bytes(){return new Uint8Array(this.#e)}#a(t){if(this.#n)return this.#n.#a(t);this.#r+=t,Xr(this.#i<1||this.#r<=this.#i*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#i} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:$u(this.#e),offset:this.#t,length:t,info:{bytesRead:this.#r,dataLength:this.dataLength}})}#o(t,r,i){let n=Math.ceil(r/eh)*eh;return this.#t+n>this.#e.length&&(this.allowLoose&&i&&this.#t+r<=this.#e.length?n=r:Xr(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:$u(this.#e),length:this.#e.length,offset:this.#t+n})),this.#e.slice(this.#t,this.#t+n)}subReader(t){let r=new e(this.#e.slice(this.#t+t),this.allowLoose,this.#i);return r.#n=this,r}readBytes(t,r){let i=this.#o(0,t,!!r);return this.#a(t),this.#t+=i.length,i.slice(0,t)}readValue(){return M_(this.readBytes(eh))}readIndex(){return jP(this.readBytes(eh))}};J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();function zh(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function aL(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function R$(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");zh(e.outputLen),zh(e.blockLen)}function wR(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function S$(e,t){aL(e);let r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}J();K();z();J();K();z();var I$=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;var Dit=e=>e instanceof Uint8Array;var Dx=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),kx=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Wm=(e,t)=>e<<32-t|e>>>t,hWt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!hWt)throw new Error("Non little-endian hardware is not supported");var AWt=async()=>{};async function C$(e,t,r){let i=Date.now();for(let n=0;n<e;n++){r(n);let o=Date.now()-i;o>=0&&o<t||(await AWt(),i+=o)}}function pWt(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Xm(e){if(typeof e=="string"&&(e=pWt(e)),!Dit(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}function kit(...e){let t=new Uint8Array(e.reduce((i,n)=>i+n.length,0)),r=0;return e.forEach(i=>{if(!Dit(i))throw new Error("Uint8Array expected");t.set(i,r),r+=i.length}),t}var kI=class{clone(){return this._cloneInto()}},gWt={}.toString;function w$(e,t){if(t!==void 0&&gWt.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}function PI(e){let t=i=>e().update(Xm(i)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Pit(e){let t=(i,n)=>e(n).update(Xm(i)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=i=>e(i),t}function Lit(e=32){if(I$&&typeof I$.getRandomValues=="function")return I$.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}var O$=class extends kI{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,R$(t);let i=Xm(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,o=new Uint8Array(n);o.set(i.length>n?t.create().update(i).digest():i);for(let d=0;d<o.length;d++)o[d]^=54;this.iHash.update(o),this.oHash=t.create();for(let d=0;d<o.length;d++)o[d]^=106;this.oHash.update(o),o.fill(0)}update(t){return wR(this),this.iHash.update(t),this}digestInto(t){wR(this),aL(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:i,finished:n,destroyed:o,blockLen:d,outputLen:g}=this;return t=t,t.finished=n,t.destroyed=o,t.blockLen=d,t.outputLen=g,t.oHash=r._cloneInto(t.oHash),t.iHash=i._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},HC=(e,t,r)=>new O$(e,t).update(r).digest();HC.create=(e,t)=>new O$(e,t);J();K();z();function _Wt(e,t,r,i){R$(e);let n=w$({dkLen:32,asyncTick:10},i),{c:o,dkLen:d,asyncTick:g}=n;if(zh(o),zh(d),zh(g),o<1)throw new Error("PBKDF2: iterations (c) should be >= 1");let y=Xm(t),_=Xm(r),I=new Uint8Array(d),N=HC.create(e,y),T=N._cloneInto().update(_);return{c:o,dkLen:d,asyncTick:g,DK:I,PRF:N,PRFSalt:T}}function mWt(e,t,r,i,n){return e.destroy(),t.destroy(),i&&i.destroy(),n.fill(0),r}function sL(e,t,r,i){let{c:n,dkLen:o,DK:d,PRF:g,PRFSalt:y}=_Wt(e,t,r,i),_,I=new Uint8Array(4),N=kx(I),T=new Uint8Array(g.outputLen);for(let M=1,D=0;D<o;M++,D+=g.outputLen){let P=d.subarray(D,D+g.outputLen);N.setInt32(0,M,!1),(_=y._cloneInto(_)).update(I).digestInto(T),P.set(T.subarray(0,P.length));for(let G=1;G<n;G++){g._cloneInto(_).update(T).digestInto(T);for(let q=0;q<P.length;q++)P[q]^=T[q]}}return mWt(g,y,d,_,T)}J();K();z();J();K();z();function yWt(e,t,r,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,i);let n=BigInt(32),o=BigInt(4294967295),d=Number(r>>n&o),g=Number(r&o),y=i?4:0,_=i?0:4;e.setUint32(t+y,d,i),e.setUint32(t+_,g,i)}var LI=class extends kI{constructor(t,r,i,n){super(),this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=kx(this.buffer)}update(t){wR(this);let{view:r,buffer:i,blockLen:n}=this;t=Xm(t);let o=t.length;for(let d=0;d<o;){let g=Math.min(n-this.pos,o-d);if(g===n){let y=kx(t);for(;n<=o-d;d+=n)this.process(y,d);continue}i.set(t.subarray(d,d+g),this.pos),this.pos+=g,d+=g,this.pos===n&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){wR(this),S$(t,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:o}=this,{pos:d}=this;r[d++]=128,this.buffer.subarray(d).fill(0),this.padOffset>n-d&&(this.process(i,0),d=0);for(let N=d;N<n;N++)r[N]=0;yWt(i,n-8,BigInt(this.length*8),o),this.process(i,0);let g=kx(t),y=this.outputLen;if(y%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let _=y/4,I=this.get();if(_>I.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<_;N++)g.setUint32(4*N,I[N],o)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let i=t.slice(0,r);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:r,buffer:i,length:n,finished:o,destroyed:d,pos:g}=this;return t.length=n,t.pos=g,t.finished=o,t.destroyed=d,n%r&&t.buffer.set(i),t}};var bWt=(e,t,r)=>e&t^~e&r,EWt=(e,t,r)=>e&t^e&r^t&r,vWt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),UI=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),FI=new Uint32Array(64),Tpe=class extends LI{constructor(){super(64,32,8,!1),this.A=UI[0]|0,this.B=UI[1]|0,this.C=UI[2]|0,this.D=UI[3]|0,this.E=UI[4]|0,this.F=UI[5]|0,this.G=UI[6]|0,this.H=UI[7]|0}get(){let{A:t,B:r,C:i,D:n,E:o,F:d,G:g,H:y}=this;return[t,r,i,n,o,d,g,y]}set(t,r,i,n,o,d,g,y){this.A=t|0,this.B=r|0,this.C=i|0,this.D=n|0,this.E=o|0,this.F=d|0,this.G=g|0,this.H=y|0}process(t,r){for(let N=0;N<16;N++,r+=4)FI[N]=t.getUint32(r,!1);for(let N=16;N<64;N++){let T=FI[N-15],M=FI[N-2],D=Wm(T,7)^Wm(T,18)^T>>>3,P=Wm(M,17)^Wm(M,19)^M>>>10;FI[N]=P+FI[N-7]+D+FI[N-16]|0}let{A:i,B:n,C:o,D:d,E:g,F:y,G:_,H:I}=this;for(let N=0;N<64;N++){let T=Wm(g,6)^Wm(g,11)^Wm(g,25),M=I+T+bWt(g,y,_)+vWt[N]+FI[N]|0,P=(Wm(i,2)^Wm(i,13)^Wm(i,22))+EWt(i,n,o)|0;I=_,_=y,y=g,g=d+M|0,d=o,o=n,n=i,i=M+P|0}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,d=d+this.D|0,g=g+this.E|0,y=y+this.F|0,_=_+this.G|0,I=I+this.H|0,this.set(i,n,o,d,g,y,_,I)}roundClean(){FI.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};var OR=PI(()=>new Tpe);J();K();z();J();K();z();var N$=BigInt(4294967295),Bpe=BigInt(32);function Uit(e,t=!1){return t?{h:Number(e&N$),l:Number(e>>Bpe&N$)}:{h:Number(e>>Bpe&N$)|0,l:Number(e&N$)|0}}function Mpe(e,t=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let n=0;n<e.length;n++){let{h:o,l:d}=Uit(e[n],t);[r[n],i[n]]=[o,d]}return[r,i]}var RWt=(e,t)=>BigInt(e>>>0)<<Bpe|BigInt(t>>>0),SWt=(e,t,r)=>e>>>r,IWt=(e,t,r)=>e<<32-r|t>>>r,CWt=(e,t,r)=>e>>>r|t<<32-r,wWt=(e,t,r)=>e<<32-r|t>>>r,OWt=(e,t,r)=>e<<64-r|t>>>r-32,NWt=(e,t,r)=>e>>>r-32|t<<64-r,xWt=(e,t)=>t,TWt=(e,t)=>e,Dpe=(e,t,r)=>e<<r|t>>>32-r,kpe=(e,t,r)=>t<<r|e>>>32-r,Ppe=(e,t,r)=>t<<r-32|e>>>64-r,Lpe=(e,t,r)=>e<<r-32|t>>>64-r;function BWt(e,t,r,i){let n=(t>>>0)+(i>>>0);return{h:e+r+(n/2**32|0)|0,l:n|0}}var MWt=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),DWt=(e,t,r,i)=>t+r+i+(e/2**32|0)|0,kWt=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0),PWt=(e,t,r,i,n)=>t+r+i+n+(e/2**32|0)|0,LWt=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0),UWt=(e,t,r,i,n,o)=>t+r+i+n+o+(e/2**32|0)|0;var FWt={fromBig:Uit,split:Mpe,toBig:RWt,shrSH:SWt,shrSL:IWt,rotrSH:CWt,rotrSL:wWt,rotrBH:OWt,rotrBL:NWt,rotr32H:xWt,rotr32L:TWt,rotlSH:Dpe,rotlSL:kpe,rotlBH:Ppe,rotlBL:Lpe,add:BWt,add3L:MWt,add3H:DWt,add4L:kWt,add4H:PWt,add5H:UWt,add5L:LWt},Ha=FWt;var[QWt,HWt]=Ha.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),QI=new Uint32Array(80),HI=new Uint32Array(80),Upe=class extends LI{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:t,Al:r,Bh:i,Bl:n,Ch:o,Cl:d,Dh:g,Dl:y,Eh:_,El:I,Fh:N,Fl:T,Gh:M,Gl:D,Hh:P,Hl:G}=this;return[t,r,i,n,o,d,g,y,_,I,N,T,M,D,P,G]}set(t,r,i,n,o,d,g,y,_,I,N,T,M,D,P,G){this.Ah=t|0,this.Al=r|0,this.Bh=i|0,this.Bl=n|0,this.Ch=o|0,this.Cl=d|0,this.Dh=g|0,this.Dl=y|0,this.Eh=_|0,this.El=I|0,this.Fh=N|0,this.Fl=T|0,this.Gh=M|0,this.Gl=D|0,this.Hh=P|0,this.Hl=G|0}process(t,r){for(let ne=0;ne<16;ne++,r+=4)QI[ne]=t.getUint32(r),HI[ne]=t.getUint32(r+=4);for(let ne=16;ne<80;ne++){let ce=QI[ne-15]|0,le=HI[ne-15]|0,pe=Ha.rotrSH(ce,le,1)^Ha.rotrSH(ce,le,8)^Ha.shrSH(ce,le,7),ae=Ha.rotrSL(ce,le,1)^Ha.rotrSL(ce,le,8)^Ha.shrSL(ce,le,7),W=QI[ne-2]|0,se=HI[ne-2]|0,O=Ha.rotrSH(W,se,19)^Ha.rotrBH(W,se,61)^Ha.shrSH(W,se,6),s=Ha.rotrSL(W,se,19)^Ha.rotrBL(W,se,61)^Ha.shrSL(W,se,6),l=Ha.add4L(ae,s,HI[ne-7],HI[ne-16]),A=Ha.add4H(l,pe,O,QI[ne-7],QI[ne-16]);QI[ne]=A|0,HI[ne]=l|0}let{Ah:i,Al:n,Bh:o,Bl:d,Ch:g,Cl:y,Dh:_,Dl:I,Eh:N,El:T,Fh:M,Fl:D,Gh:P,Gl:G,Hh:q,Hl:Y}=this;for(let ne=0;ne<80;ne++){let ce=Ha.rotrSH(N,T,14)^Ha.rotrSH(N,T,18)^Ha.rotrBH(N,T,41),le=Ha.rotrSL(N,T,14)^Ha.rotrSL(N,T,18)^Ha.rotrBL(N,T,41),pe=N&M^~N&P,ae=T&D^~T&G,W=Ha.add5L(Y,le,ae,HWt[ne],HI[ne]),se=Ha.add5H(W,q,ce,pe,QWt[ne],QI[ne]),O=W|0,s=Ha.rotrSH(i,n,28)^Ha.rotrBH(i,n,34)^Ha.rotrBH(i,n,39),l=Ha.rotrSL(i,n,28)^Ha.rotrBL(i,n,34)^Ha.rotrBL(i,n,39),A=i&o^i&g^o&g,m=n&d^n&y^d&y;q=P|0,Y=G|0,P=M|0,G=D|0,M=N|0,D=T|0,{h:N,l:T}=Ha.add(_|0,I|0,se|0,O|0),_=g|0,I=y|0,g=o|0,y=d|0,o=i|0,d=n|0;let E=Ha.add3L(O,l,m);i=Ha.add3H(E,se,s,A),n=E|0}({h:i,l:n}=Ha.add(this.Ah|0,this.Al|0,i|0,n|0)),{h:o,l:d}=Ha.add(this.Bh|0,this.Bl|0,o|0,d|0),{h:g,l:y}=Ha.add(this.Ch|0,this.Cl|0,g|0,y|0),{h:_,l:I}=Ha.add(this.Dh|0,this.Dl|0,_|0,I|0),{h:N,l:T}=Ha.add(this.Eh|0,this.El|0,N|0,T|0),{h:M,l:D}=Ha.add(this.Fh|0,this.Fl|0,M|0,D|0),{h:P,l:G}=Ha.add(this.Gh|0,this.Gl|0,P|0,G|0),{h:q,l:Y}=Ha.add(this.Hh|0,this.Hl|0,q|0,Y|0),this.set(i,n,o,d,g,y,_,I,N,T,M,D,P,G,q,Y)}roundClean(){QI.fill(0),HI.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};var x$=PI(()=>new Upe);function GWt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var Fit=GWt(),Qit=Fit.crypto||Fit.msCrypto;function Fpe(e){switch(e){case"sha256":return OR.create();case"sha512":return x$.create()}_r(!1,"invalid hashing algorithm name","algorithm",e)}function Hit(e,t){let r={sha256:OR,sha512:x$}[e];return _r(r!=null,"invalid hmac algorithm","algorithm",e),HC.create(r,t)}function Git(e,t,r,i,n){let o={sha256:OR,sha512:x$}[n];return _r(o!=null,"invalid pbkdf2 algorithm","algorithm",n),sL(o,e,t,{c:r,dkLen:i})}function qit(e){Xr(Qit!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),_r(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);let t=new Uint8Array(e);return Qit.getRandomValues(t),t}var Vit=!1,Jit=function(e,t,r){return Hit(e,t).update(r).digest()},zit=Jit;function Zm(e,t,r){let i=Dn(t,"key"),n=Dn(r,"data");return vn(zit(e,i,n))}Zm._=Jit;Zm.lock=function(){Vit=!0};Zm.register=function(e){if(Vit)throw new Error("computeHmac is locked");zit=e};Object.freeze(Zm);J();K();z();J();K();z();var[Yit,Wit,Xit]=[[],[],[]],qWt=BigInt(0),cL=BigInt(1),VWt=BigInt(2),JWt=BigInt(7),zWt=BigInt(256),KWt=BigInt(113);for(let e=0,t=cL,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],Yit.push(2*(5*i+r)),Wit.push((e+1)*(e+2)/2%64);let n=qWt;for(let o=0;o<7;o++)t=(t<<cL^(t>>JWt)*KWt)%zWt,t&VWt&&(n^=cL<<(cL<<BigInt(o))-cL);Xit.push(n)}var[$Wt,YWt]=Mpe(Xit,!0),Kit=(e,t,r)=>r>32?Ppe(e,t,r):Dpe(e,t,r),$it=(e,t,r)=>r>32?Lpe(e,t,r):kpe(e,t,r);function WWt(e,t=24){let r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let d=0;d<10;d++)r[d]=e[d]^e[d+10]^e[d+20]^e[d+30]^e[d+40];for(let d=0;d<10;d+=2){let g=(d+8)%10,y=(d+2)%10,_=r[y],I=r[y+1],N=Kit(_,I,1)^r[g],T=$it(_,I,1)^r[g+1];for(let M=0;M<50;M+=10)e[d+M]^=N,e[d+M+1]^=T}let n=e[2],o=e[3];for(let d=0;d<24;d++){let g=Wit[d],y=Kit(n,o,g),_=$it(n,o,g),I=Yit[d];n=e[I],o=e[I+1],e[I]=y,e[I+1]=_}for(let d=0;d<50;d+=10){for(let g=0;g<10;g++)r[g]=e[d+g];for(let g=0;g<10;g++)e[d+g]^=~r[(g+2)%10]&r[(g+4)%10]}e[0]^=$Wt[i],e[1]^=YWt[i]}r.fill(0)}var T$=class e extends kI{constructor(t,r,i,n=!1,o=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=i,this.enableXOF=n,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,zh(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Dx(this.state)}keccak(){WWt(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){wR(this);let{blockLen:r,state:i}=this;t=Xm(t);let n=t.length;for(let o=0;o<n;){let d=Math.min(r-this.pos,n-o);for(let g=0;g<d;g++)i[this.pos++]^=t[o++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:i,blockLen:n}=this;t[i]^=r,(r&128)!==0&&i===n-1&&this.keccak(),t[n-1]^=128,this.keccak()}writeInto(t){wR(this,!1),aL(t),this.finish();let r=this.state,{blockLen:i}=this;for(let n=0,o=t.length;n<o;){this.posOut>=i&&this.keccak();let d=Math.min(i-this.posOut,o-n);t.set(r.subarray(this.posOut,this.posOut+d),n),this.posOut+=d,n+=d}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return zh(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(S$(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:i,outputLen:n,rounds:o,enableXOF:d}=this;return t||(t=new e(r,i,n,d,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=i,t.outputLen=n,t.enableXOF=d,t.destroyed=this.destroyed,t}},GI=(e,t,r)=>PI(()=>new T$(t,e,r)),nei=GI(6,144,224/8),iei=GI(6,136,256/8),oei=GI(6,104,384/8),aei=GI(6,72,512/8),sei=GI(1,144,224/8),Zit=GI(1,136,256/8),cei=GI(1,104,384/8),uei=GI(1,72,512/8),jit=(e,t,r)=>Pit((i={})=>new T$(t,e,i.dkLen===void 0?r:i.dkLen,!0)),dei=jit(31,168,128/8),fei=jit(31,136,256/8);var eot=!1,tot=function(e){return Zit(e)},rot=tot;function Xa(e){let t=Dn(e,"data");return vn(rot(t))}Xa._=tot;Xa.lock=function(){eot=!0};Xa.register=function(e){if(eot)throw new TypeError("keccak256 is locked");rot=e};Object.freeze(Xa);J();K();z();J();K();z();var XWt=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),iot=Uint8Array.from({length:16},(e,t)=>t),ZWt=iot.map(e=>(9*e+5)%16),Hpe=[iot],Gpe=[ZWt];for(let e=0;e<4;e++)for(let t of[Hpe,Gpe])t.push(t[e].map(r=>XWt[r]));var oot=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),jWt=Hpe.map((e,t)=>e.map(r=>oot[t][r])),eXt=Gpe.map((e,t)=>e.map(r=>oot[t][r])),tXt=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),rXt=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),B$=(e,t)=>e<<t|e>>>32-t;function not(e,t,r,i){return e===0?t^r^i:e===1?t&r|~t&i:e===2?(t|~r)^i:e===3?t&i|r&~i:t^(r|~i)}var M$=new Uint32Array(16),Qpe=class extends LI{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:t,h1:r,h2:i,h3:n,h4:o}=this;return[t,r,i,n,o]}set(t,r,i,n,o){this.h0=t|0,this.h1=r|0,this.h2=i|0,this.h3=n|0,this.h4=o|0}process(t,r){for(let M=0;M<16;M++,r+=4)M$[M]=t.getUint32(r,!0);let i=this.h0|0,n=i,o=this.h1|0,d=o,g=this.h2|0,y=g,_=this.h3|0,I=_,N=this.h4|0,T=N;for(let M=0;M<5;M++){let D=4-M,P=tXt[M],G=rXt[M],q=Hpe[M],Y=Gpe[M],ne=jWt[M],ce=eXt[M];for(let le=0;le<16;le++){let pe=B$(i+not(M,o,g,_)+M$[q[le]]+P,ne[le])+N|0;i=N,N=_,_=B$(g,10)|0,g=o,o=pe}for(let le=0;le<16;le++){let pe=B$(n+not(D,d,y,I)+M$[Y[le]]+G,ce[le])+T|0;n=T,T=I,I=B$(y,10)|0,y=d,d=pe}}this.set(this.h1+g+I|0,this.h2+_+T|0,this.h3+N+n|0,this.h4+i+d|0,this.h0+o+y|0)}roundClean(){M$.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}},aot=PI(()=>new Qpe);var sot=!1,cot=function(e){return aot(e)},uot=cot;function jm(e){let t=Dn(e,"data");return vn(uot(t))}jm._=cot;jm.lock=function(){sot=!0};jm.register=function(e){if(sot)throw new TypeError("ripemd160 is locked");uot=e};Object.freeze(jm);J();K();z();var dot=!1,fot=function(e,t,r,i,n){return Git(e,t,r,i,n)},lot=fot;function UA(e,t,r,i,n){let o=Dn(e,"password"),d=Dn(t,"salt");return vn(lot(o,d,r,i,n))}UA._=fot;UA.lock=function(){dot=!0};UA.register=function(e){if(dot)throw new Error("pbkdf2 is locked");lot=e};Object.freeze(UA);J();K();z();var hot=!1,Aot=function(e){return new Uint8Array(qit(e))},pot=Aot;function Kh(e){return pot(e)}Kh._=Aot;Kh.lock=function(){hot=!0};Kh.register=function(e){if(hot)throw new Error("randomBytes is locked");pot=e};Object.freeze(Kh);J();K();z();J();K();z();var dc=(e,t)=>e<<t|e>>>32-t;function got(e,t,r,i,n,o){let d=e[t++]^r[i++],g=e[t++]^r[i++],y=e[t++]^r[i++],_=e[t++]^r[i++],I=e[t++]^r[i++],N=e[t++]^r[i++],T=e[t++]^r[i++],M=e[t++]^r[i++],D=e[t++]^r[i++],P=e[t++]^r[i++],G=e[t++]^r[i++],q=e[t++]^r[i++],Y=e[t++]^r[i++],ne=e[t++]^r[i++],ce=e[t++]^r[i++],le=e[t++]^r[i++],pe=d,ae=g,W=y,se=_,O=I,s=N,l=T,A=M,m=D,E=P,w=G,x=q,R=Y,u=ne,C=ce,U=le;for(let F=0;F<8;F+=2)O^=dc(pe+R|0,7),m^=dc(O+pe|0,9),R^=dc(m+O|0,13),pe^=dc(R+m|0,18),E^=dc(s+ae|0,7),u^=dc(E+s|0,9),ae^=dc(u+E|0,13),s^=dc(ae+u|0,18),C^=dc(w+l|0,7),W^=dc(C+w|0,9),l^=dc(W+C|0,13),w^=dc(l+W|0,18),se^=dc(U+x|0,7),A^=dc(se+U|0,9),x^=dc(A+se|0,13),U^=dc(x+A|0,18),ae^=dc(pe+se|0,7),W^=dc(ae+pe|0,9),se^=dc(W+ae|0,13),pe^=dc(se+W|0,18),l^=dc(s+O|0,7),A^=dc(l+s|0,9),O^=dc(A+l|0,13),s^=dc(O+A|0,18),x^=dc(w+E|0,7),m^=dc(x+w|0,9),E^=dc(m+x|0,13),w^=dc(E+m|0,18),R^=dc(U+C|0,7),u^=dc(R+U|0,9),C^=dc(u+R|0,13),U^=dc(C+u|0,18);n[o++]=d+pe|0,n[o++]=g+ae|0,n[o++]=y+W|0,n[o++]=_+se|0,n[o++]=I+O|0,n[o++]=N+s|0,n[o++]=T+l|0,n[o++]=M+A|0,n[o++]=D+m|0,n[o++]=P+E|0,n[o++]=G+w|0,n[o++]=q+x|0,n[o++]=Y+R|0,n[o++]=ne+u|0,n[o++]=ce+C|0,n[o++]=le+U|0}function Px(e,t,r,i,n){let o=i+0,d=i+16*n;for(let g=0;g<16;g++)r[d+g]=e[t+(2*n-1)*16+g];for(let g=0;g<n;g++,o+=16,t+=16)got(r,d,e,t,r,o),g>0&&(d+=16),got(r,o,e,t+=16,r,d)}function _ot(e,t,r){let i=w$({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:n,r:o,p:d,dkLen:g,asyncTick:y,maxmem:_,onProgress:I}=i;if(zh(n),zh(o),zh(d),zh(g),zh(y),zh(_),I!==void 0&&typeof I!="function")throw new Error("progressCb should be function");let N=128*o,T=N/4;if(n<=1||(n&n-1)!==0||n>=2**(N/8)||n>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(d<0||d>(2**32-1)*32/N)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(g<0||g>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let M=N*(n+d);if(M>_)throw new Error(`Scrypt: parameters too large, ${M} (128 * r * (N + p)) > ${_} (maxmem)`);let D=sL(OR,e,t,{c:1,dkLen:N*d}),P=Dx(D),G=Dx(new Uint8Array(N*n)),q=Dx(new Uint8Array(N)),Y=()=>{};if(I){let ne=2*n*d,ce=Math.max(Math.floor(ne/1e4),1),le=0;Y=()=>{le++,I&&(!(le%ce)||le===ne)&&I(le/ne)}}return{N:n,r:o,p:d,dkLen:g,blockSize32:T,V:G,B32:P,B:D,tmp:q,blockMixCb:Y,asyncTick:y}}function mot(e,t,r,i,n){let o=sL(OR,e,r,{c:1,dkLen:t});return r.fill(0),i.fill(0),n.fill(0),o}function yot(e,t,r){let{N:i,r:n,p:o,dkLen:d,blockSize32:g,V:y,B32:_,B:I,tmp:N,blockMixCb:T}=_ot(e,t,r);for(let M=0;M<o;M++){let D=g*M;for(let P=0;P<g;P++)y[P]=_[D+P];for(let P=0,G=0;P<i-1;P++)Px(y,G,y,G+=g,n),T();Px(y,(i-1)*g,_,D,n),T();for(let P=0;P<i;P++){let G=_[D+g-16]%i;for(let q=0;q<g;q++)N[q]=_[D+q]^y[G*g+q];Px(N,0,_,D,n),T()}}return mot(e,d,I,y,N)}async function bot(e,t,r){let{N:i,r:n,p:o,dkLen:d,blockSize32:g,V:y,B32:_,B:I,tmp:N,blockMixCb:T,asyncTick:M}=_ot(e,t,r);for(let D=0;D<o;D++){let P=g*D;for(let q=0;q<g;q++)y[q]=_[P+q];let G=0;await C$(i-1,M,()=>{Px(y,G,y,G+=g,n),T()}),Px(y,(i-1)*g,_,P,n),T(),await C$(i,M,()=>{let q=_[P+g-16]%i;for(let Y=0;Y<g;Y++)N[Y]=_[P+Y]^y[q*g+Y];Px(N,0,_,P,n),T()})}return mot(e,d,I,y,N)}var Eot=!1,vot=!1,Rot=async function(e,t,r,i,n,o,d){return await bot(e,t,{N:r,r:i,p:n,dkLen:o,onProgress:d})},Sot=function(e,t,r,i,n,o){return yot(e,t,{N:r,r:i,p:n,dkLen:o})},Iot=Rot,Cot=Sot;async function ey(e,t,r,i,n,o,d){let g=Dn(e,"passwd"),y=Dn(t,"salt");return vn(await Iot(g,y,r,i,n,o,d))}ey._=Rot;ey.lock=function(){vot=!0};ey.register=function(e){if(vot)throw new Error("scrypt is locked");Iot=e};Object.freeze(ey);function ty(e,t,r,i,n,o){let d=Dn(e,"passwd"),g=Dn(t,"salt");return vn(Cot(d,g,r,i,n,o))}ty._=Sot;ty.lock=function(){Eot=!0};ty.register=function(e){if(Eot)throw new Error("scryptSync is locked");Cot=e};Object.freeze(ty);J();K();z();var wot=function(e){return Fpe("sha256").update(e).digest()},Oot=function(e){return Fpe("sha512").update(e).digest()},Not=wot,xot=Oot,Tot=!1,Bot=!1;function Bd(e){let t=Dn(e,"data");return vn(Not(t))}Bd._=wot;Bd.lock=function(){Tot=!0};Bd.register=function(e){if(Tot)throw new Error("sha256 is locked");Not=e};Object.freeze(Bd);function GC(e){let t=Dn(e,"data");return vn(xot(t))}GC._=Oot;GC.lock=function(){Bot=!0};GC.register=function(e){if(Bot)throw new Error("sha512 is locked");xot=e};Object.freeze(Bd);J();K();z();J();K();z();J();K();z();var zpe={};gh(zpe,{bitGet:()=>uXt,bitLen:()=>cXt,bitMask:()=>uL,bitSet:()=>dXt,bytesToHex:()=>qC,bytesToNumberBE:()=>NR,bytesToNumberLE:()=>P$,concatBytes:()=>Lx,createHmacDrbg:()=>Jpe,ensureBytes:()=>eg,equalBytes:()=>aXt,hexToBytes:()=>VC,hexToNumber:()=>Vpe,numberToBytesBE:()=>qI,numberToBytesLE:()=>L$,numberToHexUnpadded:()=>kot,numberToVarBytesBE:()=>oXt,utf8ToBytes:()=>sXt,validateObject:()=>VI});J();K();z();var Dot=BigInt(0),D$=BigInt(1),nXt=BigInt(2),k$=e=>e instanceof Uint8Array,iXt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function qC(e){if(!k$(e))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=iXt[e[r]];return t}function kot(e){let t=e.toString(16);return t.length&1?`0${t}`:t}function Vpe(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}function VC(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let i=0;i<r.length;i++){let n=i*2,o=e.slice(n,n+2),d=Number.parseInt(o,16);if(Number.isNaN(d)||d<0)throw new Error("Invalid byte sequence");r[i]=d}return r}function NR(e){return Vpe(qC(e))}function P$(e){if(!k$(e))throw new Error("Uint8Array expected");return Vpe(qC(Uint8Array.from(e).reverse()))}function qI(e,t){return VC(e.toString(16).padStart(t*2,"0"))}function L$(e,t){return qI(e,t).reverse()}function oXt(e){return VC(kot(e))}function eg(e,t,r){let i;if(typeof t=="string")try{i=VC(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else if(k$(t))i=Uint8Array.from(t);else throw new Error(`${e} must be hex string or Uint8Array`);let n=i.length;if(typeof r=="number"&&n!==r)throw new Error(`${e} expected ${r} bytes, got ${n}`);return i}function Lx(...e){let t=new Uint8Array(e.reduce((i,n)=>i+n.length,0)),r=0;return e.forEach(i=>{if(!k$(i))throw new Error("Uint8Array expected");t.set(i,r),r+=i.length}),t}function aXt(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function sXt(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function cXt(e){let t;for(t=0;e>Dot;e>>=D$,t+=1);return t}function uXt(e,t){return e>>BigInt(t)&D$}var dXt=(e,t,r)=>e|(r?D$:Dot)<<BigInt(t),uL=e=>(nXt<<BigInt(e-1))-D$,qpe=e=>new Uint8Array(e),Mot=e=>Uint8Array.from(e);function Jpe(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=qpe(e),n=qpe(e),o=0,d=()=>{i.fill(1),n.fill(0),o=0},g=(...N)=>r(n,i,...N),y=(N=qpe())=>{n=g(Mot([0]),N),i=g(),N.length!==0&&(n=g(Mot([1]),N),i=g())},_=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let N=0,T=[];for(;N<t;){i=g();let M=i.slice();T.push(M),N+=i.length}return Lx(...T)};return(N,T)=>{d(),y(N);let M;for(;!(M=T(_()));)y();return d(),M}}var fXt={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function VI(e,t,r={}){let i=(n,o,d)=>{let g=fXt[o];if(typeof g!="function")throw new Error(`Invalid validator "${o}", expected function`);let y=e[n];if(!(d&&y===void 0)&&!g(y,e))throw new Error(`Invalid param ${String(n)}=${y} (${typeof y}), expected ${o}`)};for(let[n,o]of Object.entries(t))i(n,o,!1);for(let[n,o]of Object.entries(r))i(n,o,!0);return e}var Gf=BigInt(0),Ad=BigInt(1),JC=BigInt(2),lXt=BigInt(3),Kpe=BigInt(4),Pot=BigInt(5),Lot=BigInt(8),hXt=BigInt(9),AXt=BigInt(16);function $h(e,t){let r=e%t;return r>=Gf?r:t+r}function pXt(e,t,r){if(r<=Gf||t<Gf)throw new Error("Expected power/modulo > 0");if(r===Ad)return Gf;let i=Ad;for(;t>Gf;)t&Ad&&(i=i*e%r),e=e*e%r,t>>=Ad;return i}function tg(e,t,r){let i=e;for(;t-- >Gf;)i*=i,i%=r;return i}function U$(e,t){if(e===Gf||t<=Gf)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=$h(e,t),i=t,n=Gf,o=Ad,d=Ad,g=Gf;for(;r!==Gf;){let _=i/r,I=i%r,N=n-d*_,T=o-g*_;i=r,r=I,n=d,o=g,d=N,g=T}if(i!==Ad)throw new Error("invert: does not exist");return $h(n,t)}function gXt(e){let t=(e-Ad)/JC,r,i,n;for(r=e-Ad,i=0;r%JC===Gf;r/=JC,i++);for(n=JC;n<e&&pXt(n,t,e)!==e-Ad;n++);if(i===1){let d=(e+Ad)/Kpe;return function(y,_){let I=y.pow(_,d);if(!y.eql(y.sqr(I),_))throw new Error("Cannot find square root");return I}}let o=(r+Ad)/JC;return function(g,y){if(g.pow(y,t)===g.neg(g.ONE))throw new Error("Cannot find square root");let _=i,I=g.pow(g.mul(g.ONE,n),r),N=g.pow(y,o),T=g.pow(y,r);for(;!g.eql(T,g.ONE);){if(g.eql(T,g.ZERO))return g.ZERO;let M=1;for(let P=g.sqr(T);M<_&&!g.eql(P,g.ONE);M++)P=g.sqr(P);let D=g.pow(I,Ad<<BigInt(_-M-1));I=g.sqr(D),N=g.mul(N,D),T=g.mul(T,I),_=M}return N}}function _Xt(e){if(e%Kpe===lXt){let t=(e+Ad)/Kpe;return function(i,n){let o=i.pow(n,t);if(!i.eql(i.sqr(o),n))throw new Error("Cannot find square root");return o}}if(e%Lot===Pot){let t=(e-Pot)/Lot;return function(i,n){let o=i.mul(n,JC),d=i.pow(o,t),g=i.mul(n,d),y=i.mul(i.mul(g,JC),d),_=i.mul(g,i.sub(y,i.ONE));if(!i.eql(i.sqr(_),n))throw new Error("Cannot find square root");return _}}return e%AXt,gXt(e)}var mXt=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function $pe(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=mXt.reduce((i,n)=>(i[n]="function",i),t);return VI(e,r)}function yXt(e,t,r){if(r<Gf)throw new Error("Expected power > 0");if(r===Gf)return e.ONE;if(r===Ad)return t;let i=e.ONE,n=t;for(;r>Gf;)r&Ad&&(i=e.mul(i,n)),n=e.sqr(n),r>>=Ad;return i}function bXt(e,t){let r=new Array(t.length),i=t.reduce((o,d,g)=>e.is0(d)?o:(r[g]=o,e.mul(o,d)),e.ONE),n=e.inv(i);return t.reduceRight((o,d,g)=>e.is0(d)?o:(r[g]=e.mul(o,r[g]),e.mul(o,d)),n),r}function Ype(e,t){let r=t!==void 0?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function Uot(e,t,r=!1,i={}){if(e<=Gf)throw new Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:n,nByteLength:o}=Ype(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");let d=_Xt(e),g=Object.freeze({ORDER:e,BITS:n,BYTES:o,MASK:uL(n),ZERO:Gf,ONE:Ad,create:y=>$h(y,e),isValid:y=>{if(typeof y!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof y}`);return Gf<=y&&y<e},is0:y=>y===Gf,isOdd:y=>(y&Ad)===Ad,neg:y=>$h(-y,e),eql:(y,_)=>y===_,sqr:y=>$h(y*y,e),add:(y,_)=>$h(y+_,e),sub:(y,_)=>$h(y-_,e),mul:(y,_)=>$h(y*_,e),pow:(y,_)=>yXt(g,y,_),div:(y,_)=>$h(y*U$(_,e),e),sqrN:y=>y*y,addN:(y,_)=>y+_,subN:(y,_)=>y-_,mulN:(y,_)=>y*_,inv:y=>U$(y,e),sqrt:i.sqrt||(y=>d(g,y)),invertBatch:y=>bXt(g,y),cmov:(y,_,I)=>I?_:y,toBytes:y=>r?L$(y,o):qI(y,o),fromBytes:y=>{if(y.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${y.length}`);return r?P$(y):NR(y)}});return Object.freeze(g)}function Fot(e){if(typeof e!="bigint")throw new Error("field order must be bigint");let t=e.toString(2).length;return Math.ceil(t/8)}function Wpe(e){let t=Fot(e);return t+Math.ceil(t/2)}function Qot(e,t,r=!1){let i=e.length,n=Fot(t),o=Wpe(t);if(i<16||i<o||i>1024)throw new Error(`expected ${o}-1024 bytes of input, got ${i}`);let d=r?NR(e):P$(e),g=$h(d,t-Ad)+Ad;return r?L$(g,n):qI(g,n)}J();K();z();J();K();z();var vXt=BigInt(0),Xpe=BigInt(1);function Hot(e,t){let r=(n,o)=>{let d=o.negate();return n?d:o},i=n=>{let o=Math.ceil(t/n)+1,d=2**(n-1);return{windows:o,windowSize:d}};return{constTimeNegate:r,unsafeLadder(n,o){let d=e.ZERO,g=n;for(;o>vXt;)o&Xpe&&(d=d.add(g)),g=g.double(),o>>=Xpe;return d},precomputeWindow(n,o){let{windows:d,windowSize:g}=i(o),y=[],_=n,I=_;for(let N=0;N<d;N++){I=_,y.push(I);for(let T=1;T<g;T++)I=I.add(_),y.push(I);_=I.double()}return y},wNAF(n,o,d){let{windows:g,windowSize:y}=i(n),_=e.ZERO,I=e.BASE,N=BigInt(2**n-1),T=2**n,M=BigInt(n);for(let D=0;D<g;D++){let P=D*y,G=Number(d&N);d>>=M,G>y&&(G-=T,d+=Xpe);let q=P,Y=P+Math.abs(G)-1,ne=D%2!==0,ce=G<0;G===0?I=I.add(r(ne,o[q])):_=_.add(r(ce,o[Y]))}return{p:_,f:I}},wNAFCached(n,o,d,g){let y=n._WINDOW_SIZE||1,_=o.get(n);return _||(_=this.precomputeWindow(n,y),y!==1&&o.set(n,g(_))),this.wNAF(y,_,d)}}}function Zpe(e){return $pe(e.Fp),VI(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ype(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function RXt(e){let t=Zpe(e);VI(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:i,a:n}=t;if(r){if(!i.eql(n,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}var{bytesToNumberBE:SXt,hexToBytes:IXt}=zpe,zC={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){let{Err:t}=zC;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");let r=e[1],i=e.subarray(2,r+2);if(!r||i.length!==r)throw new t("Invalid signature integer: wrong length");if(i[0]&128)throw new t("Invalid signature integer: negative");if(i[0]===0&&!(i[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:SXt(i),l:e.subarray(r+2)}},toSig(e){let{Err:t}=zC,r=typeof e=="string"?IXt(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let i=r.length;if(i<2||r[0]!=48)throw new t("Invalid signature tag");if(r[1]!==i-2)throw new t("Invalid signature: incorrect length");let{d:n,l:o}=zC._parseInt(r.subarray(2)),{d,l:g}=zC._parseInt(o);if(g.length)throw new t("Invalid signature: left bytes after parsing");return{r:n,s:d}},hexFromSig(e){let t=_=>Number.parseInt(_[0],16)&8?"00"+_:_,r=_=>{let I=_.toString(16);return I.length&1?`0${I}`:I},i=t(r(e.s)),n=t(r(e.r)),o=i.length/2,d=n.length/2,g=r(o),y=r(d);return`30${r(d+o+4)}02${y}${n}02${g}${i}`}},xR=BigInt(0),k_=BigInt(1),wti=BigInt(2),Got=BigInt(3),Oti=BigInt(4);function CXt(e){let t=RXt(e),{Fp:r}=t,i=t.toBytes||((D,P,G)=>{let q=P.toAffine();return Lx(Uint8Array.from([4]),r.toBytes(q.x),r.toBytes(q.y))}),n=t.fromBytes||(D=>{let P=D.subarray(1),G=r.fromBytes(P.subarray(0,r.BYTES)),q=r.fromBytes(P.subarray(r.BYTES,2*r.BYTES));return{x:G,y:q}});function o(D){let{a:P,b:G}=t,q=r.sqr(D),Y=r.mul(q,D);return r.add(r.add(Y,r.mul(D,P)),G)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function d(D){return typeof D=="bigint"&&xR<D&&D<t.n}function g(D){if(!d(D))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function y(D){let{allowedPrivateKeyLengths:P,nByteLength:G,wrapPrivateKey:q,n:Y}=t;if(P&&typeof D!="bigint"){if(D instanceof Uint8Array&&(D=qC(D)),typeof D!="string"||!P.includes(D.length))throw new Error("Invalid key");D=D.padStart(G*2,"0")}let ne;try{ne=typeof D=="bigint"?D:NR(eg("private key",D,G))}catch{throw new Error(`private key must be ${G} bytes, hex or bigint, not ${typeof D}`)}return q&&(ne=$h(ne,Y)),g(ne),ne}let _=new Map;function I(D){if(!(D instanceof N))throw new Error("ProjectivePoint expected")}class N{constructor(P,G,q){if(this.px=P,this.py=G,this.pz=q,P==null||!r.isValid(P))throw new Error("x required");if(G==null||!r.isValid(G))throw new Error("y required");if(q==null||!r.isValid(q))throw new Error("z required")}static fromAffine(P){let{x:G,y:q}=P||{};if(!P||!r.isValid(G)||!r.isValid(q))throw new Error("invalid affine point");if(P instanceof N)throw new Error("projective point not allowed");let Y=ne=>r.eql(ne,r.ZERO);return Y(G)&&Y(q)?N.ZERO:new N(G,q,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(P){let G=r.invertBatch(P.map(q=>q.pz));return P.map((q,Y)=>q.toAffine(G[Y])).map(N.fromAffine)}static fromHex(P){let G=N.fromAffine(n(eg("pointHex",P)));return G.assertValidity(),G}static fromPrivateKey(P){return N.BASE.multiply(y(P))}_setWindowSize(P){this._WINDOW_SIZE=P,_.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}let{x:P,y:G}=this.toAffine();if(!r.isValid(P)||!r.isValid(G))throw new Error("bad point: x or y not FE");let q=r.sqr(G),Y=o(P);if(!r.eql(q,Y))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:P}=this.toAffine();if(r.isOdd)return!r.isOdd(P);throw new Error("Field doesn't support isOdd")}equals(P){I(P);let{px:G,py:q,pz:Y}=this,{px:ne,py:ce,pz:le}=P,pe=r.eql(r.mul(G,le),r.mul(ne,Y)),ae=r.eql(r.mul(q,le),r.mul(ce,Y));return pe&&ae}negate(){return new N(this.px,r.neg(this.py),this.pz)}double(){let{a:P,b:G}=t,q=r.mul(G,Got),{px:Y,py:ne,pz:ce}=this,le=r.ZERO,pe=r.ZERO,ae=r.ZERO,W=r.mul(Y,Y),se=r.mul(ne,ne),O=r.mul(ce,ce),s=r.mul(Y,ne);return s=r.add(s,s),ae=r.mul(Y,ce),ae=r.add(ae,ae),le=r.mul(P,ae),pe=r.mul(q,O),pe=r.add(le,pe),le=r.sub(se,pe),pe=r.add(se,pe),pe=r.mul(le,pe),le=r.mul(s,le),ae=r.mul(q,ae),O=r.mul(P,O),s=r.sub(W,O),s=r.mul(P,s),s=r.add(s,ae),ae=r.add(W,W),W=r.add(ae,W),W=r.add(W,O),W=r.mul(W,s),pe=r.add(pe,W),O=r.mul(ne,ce),O=r.add(O,O),W=r.mul(O,s),le=r.sub(le,W),ae=r.mul(O,se),ae=r.add(ae,ae),ae=r.add(ae,ae),new N(le,pe,ae)}add(P){I(P);let{px:G,py:q,pz:Y}=this,{px:ne,py:ce,pz:le}=P,pe=r.ZERO,ae=r.ZERO,W=r.ZERO,se=t.a,O=r.mul(t.b,Got),s=r.mul(G,ne),l=r.mul(q,ce),A=r.mul(Y,le),m=r.add(G,q),E=r.add(ne,ce);m=r.mul(m,E),E=r.add(s,l),m=r.sub(m,E),E=r.add(G,Y);let w=r.add(ne,le);return E=r.mul(E,w),w=r.add(s,A),E=r.sub(E,w),w=r.add(q,Y),pe=r.add(ce,le),w=r.mul(w,pe),pe=r.add(l,A),w=r.sub(w,pe),W=r.mul(se,E),pe=r.mul(O,A),W=r.add(pe,W),pe=r.sub(l,W),W=r.add(l,W),ae=r.mul(pe,W),l=r.add(s,s),l=r.add(l,s),A=r.mul(se,A),E=r.mul(O,E),l=r.add(l,A),A=r.sub(s,A),A=r.mul(se,A),E=r.add(E,A),s=r.mul(l,E),ae=r.add(ae,s),s=r.mul(w,E),pe=r.mul(m,pe),pe=r.sub(pe,s),s=r.mul(m,l),W=r.mul(w,W),W=r.add(W,s),new N(pe,ae,W)}subtract(P){return this.add(P.negate())}is0(){return this.equals(N.ZERO)}wNAF(P){return M.wNAFCached(this,_,P,G=>{let q=r.invertBatch(G.map(Y=>Y.pz));return G.map((Y,ne)=>Y.toAffine(q[ne])).map(N.fromAffine)})}multiplyUnsafe(P){let G=N.ZERO;if(P===xR)return G;if(g(P),P===k_)return this;let{endo:q}=t;if(!q)return M.unsafeLadder(this,P);let{k1neg:Y,k1:ne,k2neg:ce,k2:le}=q.splitScalar(P),pe=G,ae=G,W=this;for(;ne>xR||le>xR;)ne&k_&&(pe=pe.add(W)),le&k_&&(ae=ae.add(W)),W=W.double(),ne>>=k_,le>>=k_;return Y&&(pe=pe.negate()),ce&&(ae=ae.negate()),ae=new N(r.mul(ae.px,q.beta),ae.py,ae.pz),pe.add(ae)}multiply(P){g(P);let G=P,q,Y,{endo:ne}=t;if(ne){let{k1neg:ce,k1:le,k2neg:pe,k2:ae}=ne.splitScalar(G),{p:W,f:se}=this.wNAF(le),{p:O,f:s}=this.wNAF(ae);W=M.constTimeNegate(ce,W),O=M.constTimeNegate(pe,O),O=new N(r.mul(O.px,ne.beta),O.py,O.pz),q=W.add(O),Y=se.add(s)}else{let{p:ce,f:le}=this.wNAF(G);q=ce,Y=le}return N.normalizeZ([q,Y])[0]}multiplyAndAddUnsafe(P,G,q){let Y=N.BASE,ne=(le,pe)=>pe===xR||pe===k_||!le.equals(Y)?le.multiplyUnsafe(pe):le.multiply(pe),ce=ne(this,G).add(ne(P,q));return ce.is0()?void 0:ce}toAffine(P){let{px:G,py:q,pz:Y}=this,ne=this.is0();P==null&&(P=ne?r.ONE:r.inv(Y));let ce=r.mul(G,P),le=r.mul(q,P),pe=r.mul(Y,P);if(ne)return{x:r.ZERO,y:r.ZERO};if(!r.eql(pe,r.ONE))throw new Error("invZ was invalid");return{x:ce,y:le}}isTorsionFree(){let{h:P,isTorsionFree:G}=t;if(P===k_)return!0;if(G)return G(N,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:P,clearCofactor:G}=t;return P===k_?this:G?G(N,this):this.multiplyUnsafe(t.h)}toRawBytes(P=!0){return this.assertValidity(),i(N,this,P)}toHex(P=!0){return qC(this.toRawBytes(P))}}N.BASE=new N(t.Gx,t.Gy,r.ONE),N.ZERO=new N(r.ZERO,r.ONE,r.ZERO);let T=t.nBitLength,M=Hot(N,t.endo?Math.ceil(T/2):T);return{CURVE:t,ProjectivePoint:N,normPrivateKeyToScalar:y,weierstrassEquation:o,isWithinCurveOrder:d}}function wXt(e){let t=Zpe(e);return VI(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function qot(e){let t=wXt(e),{Fp:r,n:i}=t,n=r.BYTES+1,o=2*r.BYTES+1;function d(E){return xR<E&&E<r.ORDER}function g(E){return $h(E,i)}function y(E){return U$(E,i)}let{ProjectivePoint:_,normPrivateKeyToScalar:I,weierstrassEquation:N,isWithinCurveOrder:T}=CXt({...t,toBytes(E,w,x){let R=w.toAffine(),u=r.toBytes(R.x),C=Lx;return x?C(Uint8Array.from([w.hasEvenY()?2:3]),u):C(Uint8Array.from([4]),u,r.toBytes(R.y))},fromBytes(E){let w=E.length,x=E[0],R=E.subarray(1);if(w===n&&(x===2||x===3)){let u=NR(R);if(!d(u))throw new Error("Point is not on curve");let C=N(u),U=r.sqrt(C),F=(U&k_)===k_;return(x&1)===1!==F&&(U=r.neg(U)),{x:u,y:U}}else if(w===o&&x===4){let u=r.fromBytes(R.subarray(0,r.BYTES)),C=r.fromBytes(R.subarray(r.BYTES,2*r.BYTES));return{x:u,y:C}}else throw new Error(`Point of length ${w} was invalid. Expected ${n} compressed bytes or ${o} uncompressed bytes`)}}),M=E=>qC(qI(E,t.nByteLength));function D(E){let w=i>>k_;return E>w}function P(E){return D(E)?g(-E):E}let G=(E,w,x)=>NR(E.slice(w,x));class q{constructor(w,x,R){this.r=w,this.s=x,this.recovery=R,this.assertValidity()}static fromCompact(w){let x=t.nByteLength;return w=eg("compactSignature",w,x*2),new q(G(w,0,x),G(w,x,2*x))}static fromDER(w){let{r:x,s:R}=zC.toSig(eg("DER",w));return new q(x,R)}assertValidity(){if(!T(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!T(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(w){return new q(this.r,this.s,w)}recoverPublicKey(w){let{r:x,s:R,recovery:u}=this,C=ae(eg("msgHash",w));if(u==null||![0,1,2,3].includes(u))throw new Error("recovery id invalid");let U=u===2||u===3?x+t.n:x;if(U>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");let F=(u&1)===0?"02":"03",X=_.fromHex(F+M(U)),Ae=y(U),he=g(-C*Ae),$e=g(R*Ae),Ge=_.BASE.multiplyAndAddUnsafe(X,he,$e);if(!Ge)throw new Error("point at infinify");return Ge.assertValidity(),Ge}hasHighS(){return D(this.s)}normalizeS(){return this.hasHighS()?new q(this.r,g(-this.s),this.recovery):this}toDERRawBytes(){return VC(this.toDERHex())}toDERHex(){return zC.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return VC(this.toCompactHex())}toCompactHex(){return M(this.r)+M(this.s)}}let Y={isValidPrivateKey(E){try{return I(E),!0}catch{return!1}},normPrivateKeyToScalar:I,randomPrivateKey:()=>{let E=Wpe(t.n);return Qot(t.randomBytes(E),t.n)},precompute(E=8,w=_.BASE){return w._setWindowSize(E),w.multiply(BigInt(3)),w}};function ne(E,w=!0){return _.fromPrivateKey(E).toRawBytes(w)}function ce(E){let w=E instanceof Uint8Array,x=typeof E=="string",R=(w||x)&&E.length;return w?R===n||R===o:x?R===2*n||R===2*o:E instanceof _}function le(E,w,x=!0){if(ce(E))throw new Error("first arg must be private key");if(!ce(w))throw new Error("second arg must be public key");return _.fromHex(w).multiply(I(E)).toRawBytes(x)}let pe=t.bits2int||function(E){let w=NR(E),x=E.length*8-t.nBitLength;return x>0?w>>BigInt(x):w},ae=t.bits2int_modN||function(E){return g(pe(E))},W=uL(t.nBitLength);function se(E){if(typeof E!="bigint")throw new Error("bigint expected");if(!(xR<=E&&E<W))throw new Error(`bigint expected < 2^${t.nBitLength}`);return qI(E,t.nByteLength)}function O(E,w,x=s){if(["recovered","canonical"].some(Se=>Se in x))throw new Error("sign() legacy options not supported");let{hash:R,randomBytes:u}=t,{lowS:C,prehash:U,extraEntropy:F}=x;C==null&&(C=!0),E=eg("msgHash",E),U&&(E=eg("prehashed msgHash",R(E)));let X=ae(E),Ae=I(w),he=[se(Ae),se(X)];if(F!=null){let Se=F===!0?u(r.BYTES):F;he.push(eg("extraEntropy",Se))}let $e=Lx(...he),Ge=X;function Re(Se){let ct=pe(Se);if(!T(ct))return;let ze=y(ct),te=_.BASE.multiply(ct).toAffine(),Ue=g(te.x);if(Ue===xR)return;let oe=g(ze*g(Ge+Ue*Ae));if(oe===xR)return;let ge=(te.x===Ue?0:2)|Number(te.y&k_),Le=oe;return C&&D(oe)&&(Le=P(oe),ge^=1),new q(Ue,Le,ge)}return{seed:$e,k2sig:Re}}let s={lowS:t.lowS,prehash:!1},l={lowS:t.lowS,prehash:!1};function A(E,w,x=s){let{seed:R,k2sig:u}=O(E,w,x),C=t;return Jpe(C.hash.outputLen,C.nByteLength,C.hmac)(R,u)}_.BASE._setWindowSize(8);function m(E,w,x,R=l){let u=E;if(w=eg("msgHash",w),x=eg("publicKey",x),"strict"in R)throw new Error("options.strict was renamed to lowS");let{lowS:C,prehash:U}=R,F,X;try{if(typeof u=="string"||u instanceof Uint8Array)try{F=q.fromDER(u)}catch(te){if(!(te instanceof zC.Err))throw te;F=q.fromCompact(u)}else if(typeof u=="object"&&typeof u.r=="bigint"&&typeof u.s=="bigint"){let{r:te,s:Ue}=u;F=new q(te,Ue)}else throw new Error("PARSE");X=_.fromHex(x)}catch(te){if(te.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(C&&F.hasHighS())return!1;U&&(w=t.hash(w));let{r:Ae,s:he}=F,$e=ae(w),Ge=y(he),Re=g($e*Ge),Se=g(Ae*Ge),ct=_.BASE.multiplyAndAddUnsafe(X,Re,Se)?.toAffine();return ct?g(ct.x)===Ae:!1}return{CURVE:t,getPublicKey:ne,getSharedSecret:le,sign:A,verify:m,ProjectivePoint:_,Signature:q,utils:Y}}J();K();z();function OXt(e){return{hash:e,hmac:(t,...r)=>HC(e,t,kit(...r)),randomBytes:Lit}}function Vot(e,t){let r=i=>qot({...e,...OXt(i)});return Object.freeze({...r(t),create:r})}var Kot=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Jot=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),NXt=BigInt(1),jpe=BigInt(2),zot=(e,t)=>(e+t/jpe)/t;function xXt(e){let t=Kot,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),d=BigInt(23),g=BigInt(44),y=BigInt(88),_=e*e*e%t,I=_*_*e%t,N=tg(I,r,t)*I%t,T=tg(N,r,t)*I%t,M=tg(T,jpe,t)*_%t,D=tg(M,n,t)*M%t,P=tg(D,o,t)*D%t,G=tg(P,g,t)*P%t,q=tg(G,y,t)*G%t,Y=tg(q,g,t)*P%t,ne=tg(Y,r,t)*I%t,ce=tg(ne,d,t)*D%t,le=tg(ce,i,t)*_%t,pe=tg(le,jpe,t);if(!e1e.eql(e1e.sqr(pe),e))throw new Error("Cannot find square root");return pe}var e1e=Uot(Kot,void 0,void 0,{sqrt:xXt}),TR=Vot({a:BigInt(0),b:BigInt(7),Fp:e1e,n:Jot,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=Jot,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-NXt*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,d=BigInt("0x100000000000000000000000000000000"),g=zot(o*e,t),y=zot(-i*e,t),_=$h(e-g*r-y*n,t),I=$h(-g*i-y*o,t),N=_>d,T=I>d;if(N&&(_=t-_),T&&(I=t-I),_>d||I>d)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:N,k1:_,k2neg:T,k2:I}}}},OR),qti=BigInt(0);var Vti=TR.ProjectivePoint;J();K();z();J();K();z();J();K();z();var ry="0x0000000000000000000000000000000000000000";J();K();z();var Ux="0x0000000000000000000000000000000000000000000000000000000000000000";J();K();z();var t1e=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),r1e=BigInt("1000000000000000000"),n1e=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),i1e=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),o1e=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");J();K();z();var a1e="\u039E",dL=`Ethereum Signed Message:
|
|
`;var $ot=BigInt(0),Yot=BigInt(1),Wot=BigInt(2),Xot=BigInt(27),Zot=BigInt(28),F$=BigInt(35),Fx={};function jot(e){return Hf(Yu(e),32)}var th=class e{#e;#t;#r;#n;get r(){return this.#e}set r(t){_r(Hp(t)===32,"invalid r","value",t),this.#e=vn(t)}get s(){return this.#t}set s(t){_r(Hp(t)===32,"invalid s","value",t);let r=vn(t);_r(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),this.#t=r}get v(){return this.#r}set v(t){let r=Zi(t,"value");_r(r===27||r===28,"invalid v","v",t),this.#r=r}get networkV(){return this.#n}get legacyChainId(){let t=this.networkV;return t==null?null:e.getChainId(t)}get yParity(){return this.v===27?0:1}get yParityAndS(){let t=Dn(this.s);return this.yParity&&(t[0]|=128),vn(t)}get compactSerialized(){return Jo([this.r,this.yParityAndS])}get serialized(){return Jo([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(t,r,i,n){jl(t,Fx,"Signature"),this.#e=r,this.#t=i,this.#r=n,this.#n=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){let t=new e(Fx,this.r,this.s,this.v);return this.networkV&&(t.#n=this.networkV),t}toJSON(){let t=this.networkV;return{_type:"signature",networkV:t!=null?t.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(t){let r=gi(t,"v");return r==Xot||r==Zot?$ot:(_r(r>=F$,"invalid EIP-155 v","v",t),(r-F$)/Wot)}static getChainIdV(t,r){return gi(t)*Wot+BigInt(35+r-27)}static getNormalizedV(t){let r=gi(t);return r===$ot||r===Xot?27:r===Yot||r===Zot?28:(_r(r>=F$,"invalid v","v",t),r&Yot?27:28)}static from(t){function r(_,I){_r(_,I,"signature",t)}if(t==null)return new e(Fx,Ux,Ux,27);if(typeof t=="string"){let _=Dn(t,"signature");if(_.length===64){let I=vn(_.slice(0,32)),N=_.slice(32,64),T=N[0]&128?28:27;return N[0]&=127,new e(Fx,I,vn(N),T)}if(_.length===65){let I=vn(_.slice(0,32)),N=_.slice(32,64);r((N[0]&128)===0,"non-canonical s");let T=e.getNormalizedV(_[64]);return new e(Fx,I,vn(N),T)}r(!1,"invalid raw signature length")}if(t instanceof e)return t.clone();let i=t.r;r(i!=null,"missing r");let n=jot(i),o=(function(_,I){if(_!=null)return jot(_);if(I!=null){r(ns(I,32),"invalid yParityAndS");let N=Dn(I);return N[0]&=127,vn(N)}r(!1,"missing s")})(t.s,t.yParityAndS);r((Dn(o)[0]&128)==0,"non-canonical s");let{networkV:d,v:g}=(function(_,I,N){if(_!=null){let T=gi(_);return{networkV:T>=F$?T:void 0,v:e.getNormalizedV(T)}}if(I!=null)return r(ns(I,32),"invalid yParityAndS"),{v:Dn(I)[0]&128?28:27};if(N!=null){switch(Zi(N,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")})(t.v,t.yParityAndS,t.yParity),y=new e(Fx,n,o,g);return d&&(y.#n=d),r(t.yParity==null||Zi(t.yParity,"sig.yParity")===y.yParity,"yParity mismatch"),r(t.yParityAndS==null||t.yParityAndS===y.yParityAndS,"yParityAndS mismatch"),y}};var rh=class e{#e;constructor(t){_r(Hp(t)===32,"invalid private key","privateKey","[REDACTED]"),this.#e=vn(t)}get privateKey(){return this.#e}get publicKey(){return e.computePublicKey(this.#e)}get compressedPublicKey(){return e.computePublicKey(this.#e,!0)}sign(t){_r(Hp(t)===32,"invalid digest length","digest",t);let r=TR.sign($u(t),$u(this.#e),{lowS:!0});return th.from({r:gl(r.r,32),s:gl(r.s,32),v:r.recovery?28:27})}computeSharedSecret(t){let r=e.computePublicKey(t);return vn(TR.getSharedSecret($u(this.#e),Dn(r),!1))}static computePublicKey(t,r){let i=Dn(t,"key");if(i.length===32){let o=TR.getPublicKey(i,!!r);return vn(o)}if(i.length===64){let o=new Uint8Array(65);o[0]=4,o.set(i,1),i=o}let n=TR.ProjectivePoint.fromHex(i);return vn(n.toRawBytes(r))}static recoverPublicKey(t,r){_r(Hp(t)===32,"invalid digest length","digest",t);let i=th.from(r),n=TR.Signature.fromCompact($u(Jo([i.r,i.s])));n=n.addRecoveryBit(i.yParity);let o=n.recoverPublicKey($u(t));return _r(o!=null,"invalid signautre for digest","signature",r),"0x"+o.toHex(!1)}static addPoints(t,r,i){let n=TR.ProjectivePoint.fromHex(e.computePublicKey(t).substring(2)),o=TR.ProjectivePoint.fromHex(e.computePublicKey(r).substring(2));return"0x"+n.add(o).toHex(!!i)}};function eat(){Zm.lock(),Xa.lock(),UA.lock(),Kh.lock(),jm.lock(),ey.lock(),ty.lock(),Bd.lock(),GC.lock(),Kh.lock()}var TXt=BigInt(0),BXt=BigInt(36);function tat(e){e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let n=0;n<40;n++)r[n]=t[n].charCodeAt(0);let i=Dn(Xa(r));for(let n=0;n<40;n+=2)i[n>>1]>>4>=8&&(t[n]=t[n].toUpperCase()),(i[n>>1]&15)>=8&&(t[n+1]=t[n+1].toUpperCase());return"0x"+t.join("")}var s1e={};for(let e=0;e<10;e++)s1e[String(e)]=String(e);for(let e=0;e<26;e++)s1e[String.fromCharCode(65+e)]=String(10+e);var rat=15;function nat(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(i=>s1e[i]).join("");for(;t.length>=rat;){let i=t.substring(0,rat);t=parseInt(i,10)%97+t.substring(i.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}var MXt=(function(){let e={};for(let t=0;t<36;t++){let r="0123456789abcdefghijklmnopqrstuvwxyz"[t];e[r]=BigInt(t)}return e})();function DXt(e){e=e.toLowerCase();let t=TXt;for(let r=0;r<e.length;r++)t=t*BXt+MXt[e[r]];return t}function Co(e){if(_r(typeof e=="string","invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=tat(e);return _r(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){_r(e.substring(2,4)===nat(e),"bad icap checksum","address",e);let t=DXt(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return tat("0x"+t)}_r(!1,"invalid address","address",e)}function c1e(e){let t=BigInt(Co(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+nat("XE00"+t)+t}J();K();z();function KC(e){let t=Co(e.from),i=gi(e.nonce,"tx.nonce").toString(16);return i==="0"?i="0x":i.length%2?i="0x0"+i:i="0x"+i,Co(tc(Xa(D_([t,i])),12))}function u1e(e,t,r){let i=Co(e),n=Dn(t,"salt"),o=Dn(r,"initCodeHash");return _r(n.length===32,"salt must be 32 bytes","salt",t),_r(o.length===32,"initCodeHash must be 32 bytes","initCodeHash",r),Co(tc(Xa(Jo(["0xff",i,n,o])),12))}J();K();z();function Qx(e){return e&&typeof e.getAddress=="function"}function f1e(e){try{return Co(e),!0}catch{}return!1}async function d1e(e,t){let r=await t;return(r==null||r==="0x0000000000000000000000000000000000000000")&&(Xr(typeof e!="string","unconfigured name","UNCONFIGURED_NAME",{value:e}),_r(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),Co(r)}function r0(e,t){if(typeof e=="string")return e.match(/^0x[0-9a-f]{40}$/i)?Co(e):(Xr(t!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),d1e(e,t.resolveName(e)));if(Qx(e))return d1e(e,e.getAddress());if(e&&typeof e.then=="function")return d1e(e,e);_r(!1,"unsupported addressable value","target",e)}J();K();z();var ny={};function zi(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new lu(ny,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function fc(e,t){return new lu(ny,`bytes${t||""}`,e,{size:t})}var iat=Symbol.for("_ethers_typed"),lu=class e{type;value;#e;_typedSymbol;constructor(t,r,i,n){n==null&&(n=null),jl(ny,t,"Typed"),Un(this,{_typedSymbol:iat,type:r,value:i}),this.#e=n,this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(t=>t.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return this.#e}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return this.#e===!0?-1:this.#e===!1?this.value.length:null}static from(t,r){return new e(ny,t,r)}static uint8(t){return zi(t,8)}static uint16(t){return zi(t,16)}static uint24(t){return zi(t,24)}static uint32(t){return zi(t,32)}static uint40(t){return zi(t,40)}static uint48(t){return zi(t,48)}static uint56(t){return zi(t,56)}static uint64(t){return zi(t,64)}static uint72(t){return zi(t,72)}static uint80(t){return zi(t,80)}static uint88(t){return zi(t,88)}static uint96(t){return zi(t,96)}static uint104(t){return zi(t,104)}static uint112(t){return zi(t,112)}static uint120(t){return zi(t,120)}static uint128(t){return zi(t,128)}static uint136(t){return zi(t,136)}static uint144(t){return zi(t,144)}static uint152(t){return zi(t,152)}static uint160(t){return zi(t,160)}static uint168(t){return zi(t,168)}static uint176(t){return zi(t,176)}static uint184(t){return zi(t,184)}static uint192(t){return zi(t,192)}static uint200(t){return zi(t,200)}static uint208(t){return zi(t,208)}static uint216(t){return zi(t,216)}static uint224(t){return zi(t,224)}static uint232(t){return zi(t,232)}static uint240(t){return zi(t,240)}static uint248(t){return zi(t,248)}static uint256(t){return zi(t,256)}static uint(t){return zi(t,256)}static int8(t){return zi(t,-8)}static int16(t){return zi(t,-16)}static int24(t){return zi(t,-24)}static int32(t){return zi(t,-32)}static int40(t){return zi(t,-40)}static int48(t){return zi(t,-48)}static int56(t){return zi(t,-56)}static int64(t){return zi(t,-64)}static int72(t){return zi(t,-72)}static int80(t){return zi(t,-80)}static int88(t){return zi(t,-88)}static int96(t){return zi(t,-96)}static int104(t){return zi(t,-104)}static int112(t){return zi(t,-112)}static int120(t){return zi(t,-120)}static int128(t){return zi(t,-128)}static int136(t){return zi(t,-136)}static int144(t){return zi(t,-144)}static int152(t){return zi(t,-152)}static int160(t){return zi(t,-160)}static int168(t){return zi(t,-168)}static int176(t){return zi(t,-176)}static int184(t){return zi(t,-184)}static int192(t){return zi(t,-192)}static int200(t){return zi(t,-200)}static int208(t){return zi(t,-208)}static int216(t){return zi(t,-216)}static int224(t){return zi(t,-224)}static int232(t){return zi(t,-232)}static int240(t){return zi(t,-240)}static int248(t){return zi(t,-248)}static int256(t){return zi(t,-256)}static int(t){return zi(t,-256)}static bytes1(t){return fc(t,1)}static bytes2(t){return fc(t,2)}static bytes3(t){return fc(t,3)}static bytes4(t){return fc(t,4)}static bytes5(t){return fc(t,5)}static bytes6(t){return fc(t,6)}static bytes7(t){return fc(t,7)}static bytes8(t){return fc(t,8)}static bytes9(t){return fc(t,9)}static bytes10(t){return fc(t,10)}static bytes11(t){return fc(t,11)}static bytes12(t){return fc(t,12)}static bytes13(t){return fc(t,13)}static bytes14(t){return fc(t,14)}static bytes15(t){return fc(t,15)}static bytes16(t){return fc(t,16)}static bytes17(t){return fc(t,17)}static bytes18(t){return fc(t,18)}static bytes19(t){return fc(t,19)}static bytes20(t){return fc(t,20)}static bytes21(t){return fc(t,21)}static bytes22(t){return fc(t,22)}static bytes23(t){return fc(t,23)}static bytes24(t){return fc(t,24)}static bytes25(t){return fc(t,25)}static bytes26(t){return fc(t,26)}static bytes27(t){return fc(t,27)}static bytes28(t){return fc(t,28)}static bytes29(t){return fc(t,29)}static bytes30(t){return fc(t,30)}static bytes31(t){return fc(t,31)}static bytes32(t){return fc(t,32)}static address(t){return new e(ny,"address",t)}static bool(t){return new e(ny,"bool",!!t)}static bytes(t){return new e(ny,"bytes",t)}static string(t){return new e(ny,"string",t)}static array(t,r){throw new Error("not implemented yet")}static tuple(t,r){throw new Error("not implemented yet")}static overrides(t){return new e(ny,"overrides",Object.assign({},t))}static isTyped(t){return t&&typeof t=="object"&&"_typedSymbol"in t&&t._typedSymbol===iat}static dereference(t,r){if(e.isTyped(t)){if(t.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${t.type}`);return t.value}return t}};var Q$=class extends of{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,r){let i=lu.dereference(r,"string");try{i=Co(i)}catch(n){return this._throwError(n.message,r)}return t.writeValue(i)}decode(t){return Co(gl(t.readValue(),20))}};J();K();z();J();K();z();var H$=class extends of{coder;constructor(t){super(t.name,t.type,"_",t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,r){return this.coder.encode(t,r)}decode(t){return this.coder.decode(t)}};function l1e(e,t,r){let i=[];if(Array.isArray(r))i=r;else if(r&&typeof r=="object"){let y={};i=t.map(_=>{let I=_.localName;return Xr(I,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:_},value:r}),Xr(!y[I],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:_},value:r}),y[I]=!0,r[I]})}else _r(!1,"invalid tuple value","tuple",r);_r(t.length===i.length,"types/value length mismatch","tuple",r);let n=new QC,o=new QC,d=[];t.forEach((y,_)=>{let I=i[_];if(y.dynamic){let N=o.length;y.encode(o,I);let T=n.writeUpdatableValue();d.push(M=>{T(M+N)})}else y.encode(n,I)}),d.forEach(y=>{y(n.length)});let g=e.appendWriter(n);return g+=e.appendWriter(o),g}function h1e(e,t){let r=[],i=[],n=e.subReader(0);return t.forEach(o=>{let d=null;if(o.dynamic){let g=e.readIndex(),y=n.subReader(g);try{d=o.decode(y)}catch(_){if(Tc(_,"BUFFER_OVERRUN"))throw _;d=_,d.baseType=o.name,d.name=o.localName,d.type=o.type}}else try{d=o.decode(e)}catch(g){if(Tc(g,"BUFFER_OVERRUN"))throw g;d=g,d.baseType=o.name,d.name=o.localName,d.type=o.type}if(d==null)throw new Error("investigate");r.push(d),i.push(o.localName||null)}),CR.fromItems(r,i)}var G$=class extends of{coder;length;constructor(t,r,i){let n=t.type+"["+(r>=0?r:"")+"]",o=r===-1||t.dynamic;super("array",n,i,o),Un(this,{coder:t,length:r})}defaultValue(){let t=this.coder.defaultValue(),r=[];for(let i=0;i<this.length;i++)r.push(t);return r}encode(t,r){let i=lu.dereference(r,"array");Array.isArray(i)||this._throwError("expected array value",i);let n=this.length;n===-1&&(n=i.length,t.writeValue(i.length)),kC(i.length,n,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let d=0;d<i.length;d++)o.push(this.coder);return l1e(t,o,i)}decode(t){let r=this.length;r===-1&&(r=t.readIndex(),Xr(r*eh<=t.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:t.bytes,offset:r*eh,length:t.dataLength}));let i=[];for(let n=0;n<r;n++)i.push(new H$(this.coder));return h1e(t,i)}};J();K();z();var q$=class extends of{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,r){let i=lu.dereference(r,"bool");return t.writeValue(i?1:0)}decode(t){return!!t.readValue()}};J();K();z();var fL=class extends of{constructor(t,r){super(t,t,r,!0)}defaultValue(){return"0x"}encode(t,r){r=$u(r);let i=t.writeValue(r.length);return i+=t.writeBytes(r),i}decode(t){return t.readBytes(t.readIndex(),!0)}},V$=class extends fL{constructor(t){super("bytes",t)}decode(t){return vn(super.decode(t))}};J();K();z();var J$=class extends of{size;constructor(t,r){let i="bytes"+String(t);super(i,i,r,!1),Un(this,{size:t},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(t,r){let i=$u(lu.dereference(r,this.type));return i.length!==this.size&&this._throwError("incorrect data length",r),t.writeBytes(i)}decode(t){return vn(t.readBytes(this.size))}};J();K();z();var kXt=new Uint8Array([]),z$=class extends of{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,r){return r!=null&&this._throwError("not null",r),t.writeBytes(kXt)}decode(t){return t.readBytes(0),null}};J();K();z();var PXt=BigInt(0),LXt=BigInt(1),UXt=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),K$=class extends of{size;signed;constructor(t,r,i){let n=(r?"int":"uint")+t*8;super(n,n,i,!1),Un(this,{size:t,signed:r},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(t,r){let i=gi(lu.dereference(r,this.type)),n=j1(UXt,eh*8);if(this.signed){let o=j1(n,this.size*8-1);(i>o||i<-(o+LXt))&&this._throwError("value out-of-bounds",r),i=SR(i,8*eh)}else(i<PXt||i>j1(n,this.size*8))&&this._throwError("value out-of-bounds",r);return t.writeValue(i)}decode(t){let r=j1(t.readValue(),this.size*8);return this.signed&&(r=RR(r,this.size*8)),r}};J();K();z();var $$=class extends fL{constructor(t){super("string",t)}defaultValue(){return""}encode(t,r){return super.encode(t,rc(lu.dereference(r,"string")))}decode(t){return LA(super.decode(t))}};J();K();z();var $C=class extends of{coders;constructor(t,r){let i=!1,n=[];t.forEach(d=>{d.dynamic&&(i=!0),n.push(d.type)});let o="tuple("+n.join(",")+")";super("tuple",o,r,i),Un(this,{coders:Object.freeze(t.slice())})}defaultValue(){let t=[];this.coders.forEach(i=>{t.push(i.defaultValue())});let r=this.coders.reduce((i,n)=>{let o=n.localName;return o&&(i[o]||(i[o]=0),i[o]++),i},{});return this.coders.forEach((i,n)=>{let o=i.localName;!o||r[o]!==1||(o==="length"&&(o="_length"),t[o]==null&&(t[o]=t[n]))}),Object.freeze(t)}encode(t,r){let i=lu.dereference(r,"tuple");return l1e(t,this.coders,i)}decode(t){return h1e(t,this.coders)}};J();K();z();J();K();z();J();K();z();function nh(e){return Xa(rc(e))}J();K();z();J();K();z();var FXt="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6ut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WxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI",oat=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),aat=4;function QXt(e){let t=0;function r(){return e[t++]<<8|e[t++]}let i=r(),n=1,o=[0,1];for(let le=1;le<i;le++)o.push(n+=r());let d=r(),g=t;t+=d;let y=0,_=0;function I(){return y==0&&(_=_<<8|e[t++],y=8),_>>--y&1}let N=31,T=2**N,M=T>>>1,D=M>>1,P=T-1,G=0;for(let le=0;le<N;le++)G=G<<1|I();let q=[],Y=0,ne=T;for(;;){let le=Math.floor(((G-Y+1)*n-1)/ne),pe=0,ae=i;for(;ae-pe>1;){let O=pe+ae>>>1;le<o[O]?ae=O:pe=O}if(pe==0)break;q.push(pe);let W=Y+Math.floor(ne*o[pe]/n),se=Y+Math.floor(ne*o[pe+1]/n)-1;for(;((W^se)&M)==0;)G=G<<1&P|I(),W=W<<1&P,se=se<<1&P|1;for(;W&~se&D;)G=G&M|G<<1&P>>>1|I(),W=W<<1^M,se=(se^M)<<1|M|1;Y=W,ne=1+se-W}let ce=i-4;return q.map(le=>{switch(le-ce){case 3:return ce+65792+(e[g++]<<16|e[g++]<<8|e[g++]);case 2:return ce+256+(e[g++]<<8|e[g++]);case 1:return ce+e[g++];default:return le-1}})}function HXt(e){let t=0;return()=>e[t++]}function dat(e){return HXt(QXt(GXt(e)))}function GXt(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((n,o)=>t[n.charCodeAt(0)]=o);let r=e.length,i=new Uint8Array(6*r>>3);for(let n=0,o=0,d=0,g=0;n<r;n++)g=g<<6|t[e.charCodeAt(n)],d+=6,d>=8&&(i[o++]=g>>(d-=8));return i}function qXt(e){return e&1?~e>>1:e>>1}function VXt(e,t){let r=Array(e);for(let i=0,n=0;i<e;i++)r[i]=n+=qXt(t());return r}function AL(e,t=0){let r=[];for(;;){let i=e(),n=e();if(!n)break;t+=i;for(let o=0;o<n;o++)r.push(t+o);t+=n+1}return r}function fat(e){return pL(()=>{let t=AL(e);if(t.length)return t})}function lat(e){let t=[];for(;;){let r=e();if(r==0)break;t.push(JXt(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(zXt(r,e))}return t.flat()}function pL(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function hat(e,t,r){let i=Array(e).fill().map(()=>[]);for(let n=0;n<t;n++)VXt(e,r).forEach((o,d)=>i[d].push(o));return i}function JXt(e,t){let r=1+t(),i=t(),n=pL(t);return hat(n.length,1+e,t).flatMap((d,g)=>{let[y,..._]=d;return Array(n[g]).fill().map((I,N)=>{let T=N*i;return[y+N*r,_.map(M=>M+T)]})})}function zXt(e,t){let r=1+t();return hat(r,1+e,t).map(n=>[n[0],n.slice(1)])}function KXt(e){let t=[],r=AL(e);return n(i([]),[]),t;function i(o){let d=e(),g=pL(()=>{let y=AL(e).map(_=>r[_]);if(y.length)return i(y)});return{S:d,B:g,Q:o}}function n({S:o,B:d},g,y){if(!(o&4&&y===g[g.length-1])){o&2&&(y=g[g.length-1]),o&1&&t.push(g);for(let _ of d)for(let I of _.Q)n(_,[...g,I],y)}}}function $Xt(e){return e.toString(16).toUpperCase().padStart(2,"0")}function Aat(e){return`{${$Xt(e)}}`}function YXt(e){let t=[];for(let r=0,i=e.length;r<i;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}function qx(e){let r=e.length;if(r<4096)return String.fromCodePoint(...e);let i=[];for(let n=0;n<r;)i.push(String.fromCodePoint(...e.slice(n,n+=4096)));return i.join("")}function WXt(e,t){let r=e.length,i=r-t.length;for(let n=0;i==0&&n<r;n++)i=e[n]-t[n];return i}var XXt="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaT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NcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g",gL=44032,W$=4352,X$=4449,Z$=4519,pat=19,gat=21,Vx=28,j$=gat*Vx,ZXt=pat*j$,jXt=gL+ZXt,eZt=W$+pat,tZt=X$+gat,rZt=Z$+Vx;function lL(e){return e>>24&255}function _at(e){return e&16777215}var p1e,sat,g1e,Y$;function nZt(){let e=dat(XXt);p1e=new Map(fat(e).flatMap((t,r)=>t.map(i=>[i,r+1<<24]))),sat=new Set(AL(e)),g1e=new Map,Y$=new Map;for(let[t,r]of lat(e)){if(!sat.has(t)&&r.length==2){let[i,n]=r,o=Y$.get(i);o||(o=new Map,Y$.set(i,o)),o.set(n,t)}g1e.set(t,r.reverse())}}function mat(e){return e>=gL&&e<jXt}function iZt(e,t){if(e>=W$&&e<eZt&&t>=X$&&t<tZt)return gL+(e-W$)*j$+(t-X$)*Vx;if(mat(e)&&t>Z$&&t<rZt&&(e-gL)%Vx==0)return e+(t-Z$);{let r=Y$.get(e);return r&&(r=r.get(t),r)?r:-1}}function yat(e){p1e||nZt();let t=[],r=[],i=!1;function n(o){let d=p1e.get(o);d&&(i=!0,o|=d),t.push(o)}for(let o of e)for(;;){if(o<128)t.push(o);else if(mat(o)){let d=o-gL,g=d/j$|0,y=d%j$/Vx|0,_=d%Vx;n(W$+g),n(X$+y),_>0&&n(Z$+_)}else{let d=g1e.get(o);d?r.push(...d):n(o)}if(!r.length)break;o=r.pop()}if(i&&t.length>1){let o=lL(t[0]);for(let d=1;d<t.length;d++){let g=lL(t[d]);if(g==0||o<=g){o=g;continue}let y=d-1;for(;;){let _=t[y+1];if(t[y+1]=t[y],t[y]=_,!y||(o=lL(t[--y]),o<=g))break}o=lL(t[d])}}return t}function oZt(e){let t=[],r=[],i=-1,n=0;for(let o of e){let d=lL(o),g=_at(o);if(i==-1)d==0?i=g:t.push(g);else if(n>0&&n>=d)d==0?(t.push(i,...r),r.length=0,i=g):r.push(g),n=d;else{let y=iZt(i,g);y>=0?i=y:n==0&&d==0?(t.push(i),i=g):(r.push(g),n=d)}}return i>=0&&t.push(i,...r),t}function bat(e){return yat(e).map(_at)}function aZt(e){return oZt(yat(e))}var cat=45;var Eat=".",vat=65039,Rat=1,eY=e=>Array.from(e);function _L(e,t){return e.P.has(t)||e.Q.has(t)}var _1e=class extends Array{get is_emoji(){return!0}},m1e,Sat,WC,y1e,Iat,sZt,Gx,A1e,Hx,YC,uat,b1e;function E1e(){if(m1e)return;let e=dat(FXt),t=()=>AL(e),r=()=>new Set(t()),i=(I,N)=>N.forEach(T=>I.add(T));m1e=new Map(lat(e)),Sat=r(),WC=t(),y1e=new Set(t().map(I=>WC[I])),WC=new Set(WC),Iat=r(),sZt=r();let n=fat(e),o=e(),d=()=>{let I=new Set;return t().forEach(N=>i(I,n[N])),i(I,t()),I};Gx=pL(I=>{let N=pL(e).map(T=>T+96);if(N.length){let T=I>=o;N[0]-=32,N=qx(N),T&&(N=`Restricted[${N}]`);let M=d(),D=d(),P=!e();return{N,P:M,Q:D,M:P,R:T}}}),A1e=r(),Hx=new Map;let g=t().concat(eY(A1e)).sort((I,N)=>I-N);g.forEach((I,N)=>{let T=e(),M=g[N]=T?g[N-T]:{V:[],M:new Map};M.V.push(I),A1e.has(I)||Hx.set(I,M)});for(let{V:I,M:N}of new Set(Hx.values())){let T=[];for(let D of I){let P=Gx.filter(q=>_L(q,D)),G=T.find(({G:q})=>P.some(Y=>q.has(Y)));G||(G={G:new Set,V:[]},T.push(G)),G.V.push(D),i(G.G,P)}let M=T.flatMap(D=>eY(D.G));for(let{G:D,V:P}of T){let G=new Set(M.filter(q=>!D.has(q)));for(let q of P)N.set(q,G)}}YC=new Set;let y=new Set,_=I=>YC.has(I)?y.add(I):YC.add(I);for(let I of Gx){for(let N of I.P)_(N);for(let N of I.Q)_(N)}for(let I of YC)!Hx.has(I)&&!y.has(I)&&Hx.set(I,Rat);i(YC,bat(YC)),uat=KXt(e).map(I=>_1e.from(I)).sort(WXt),b1e=new Map;for(let I of uat){let N=[b1e];for(let T of I){let M=N.map(D=>{let P=D.get(T);return P||(P=new Map,D.set(T,P)),P});T===vat?N.push(...M):N=M}for(let T of N)T.V=I}}function v1e(e){return(Cat(e)?"":`${R1e(tY([e]))} `)+Aat(e)}function R1e(e){return`"${e}"\u200E`}function cZt(e){if(e.length>=4&&e[2]==cat&&e[3]==cat)throw new Error(`invalid label extension: "${qx(e.slice(0,4))}"`)}function uZt(e){for(let r=e.lastIndexOf(95);r>0;)if(e[--r]!==95)throw new Error("underscore allowed only at start")}function dZt(e){let t=e[0],r=oat.get(t);if(r)throw hL(`leading ${r}`);let i=e.length,n=-1;for(let o=1;o<i;o++){t=e[o];let d=oat.get(t);if(d){if(n==o)throw hL(`${r} + ${d}`);n=o+1,r=d}}if(n==i)throw hL(`trailing ${r}`)}function tY(e,t=1/0,r=Aat){let i=[];fZt(e[0])&&i.push("\u25CC"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let n=0,o=e.length;for(let d=0;d<o;d++){let g=e[d];Cat(g)&&(i.push(qx(e.slice(n,d))),i.push(r(g)),n=d+1)}return i.push(qx(e.slice(n,o))),i.join("")}function fZt(e){return E1e(),WC.has(e)}function Cat(e){return E1e(),Iat.has(e)}function wat(e){return pZt(lZt(e,aZt,mZt))}function lZt(e,t,r){if(!e)return[];E1e();let i=0;return e.split(Eat).map(n=>{let o=YXt(n),d={input:o,offset:i};i+=o.length+1;try{let g=d.tokens=_Zt(o,t,r),y=g.length,_;if(!y)throw new Error("empty label");let I=d.output=g.flat();if(uZt(I),!(d.emoji=y>1||g[0].is_emoji)&&I.every(T=>T<128))cZt(I),_="ASCII";else{let T=g.flatMap(M=>M.is_emoji?[]:M);if(!T.length)_="Emoji";else{if(WC.has(I[0]))throw hL("leading combining mark");for(let P=1;P<y;P++){let G=g[P];if(!G.is_emoji&&WC.has(G[0]))throw hL(`emoji + combining mark: "${qx(g[P-1])} + ${tY([G[0]])}"`)}dZt(I);let M=eY(new Set(T)),[D]=AZt(M);gZt(D,T),hZt(D,M),_=D.N}}d.type=_}catch(g){d.error=g}return d})}function hZt(e,t){let r,i=[];for(let n of t){let o=Hx.get(n);if(o===Rat)return;if(o){let d=o.M.get(n);if(r=r?r.filter(g=>d.has(g)):eY(d),!r.length)return}else i.push(n)}if(r){for(let n of r)if(i.every(o=>_L(n,o)))throw new Error(`whole-script confusable: ${e.N}/${n.N}`)}}function AZt(e){let t=Gx;for(let r of e){let i=t.filter(n=>_L(n,r));if(!i.length)throw Gx.some(n=>_L(n,r))?Nat(t[0],r):Oat(r);if(t=i,i.length==1)break}return t}function pZt(e){return e.map(({input:t,error:r,output:i})=>{if(r){let n=r.message;throw new Error(e.length==1?n:`Invalid label ${R1e(tY(t,63))}: ${n}`)}return qx(i)}).join(Eat)}function Oat(e){return new Error(`disallowed character: ${v1e(e)}`)}function Nat(e,t){let r=v1e(t),i=Gx.find(n=>n.P.has(t));return i&&(r=`${i.N} ${r}`),new Error(`illegal mixture: ${e.N} + ${r}`)}function hL(e){return new Error(`illegal placement: ${e}`)}function gZt(e,t){for(let r of t)if(!_L(e,r))throw Nat(e,r);if(e.M){let r=bat(t);for(let i=1,n=r.length;i<n;i++)if(y1e.has(r[i])){let o=i+1;for(let d;o<n&&y1e.has(d=r[o]);o++)for(let g=i;g<o;g++)if(r[g]==d)throw new Error(`duplicate non-spacing marks: ${v1e(d)}`);if(o-i>aat)throw new Error(`excessive non-spacing marks: ${R1e(tY(r.slice(i-1,o)))} (${o-i}/${aat})`);i=o}}}function _Zt(e,t,r){let i=[],n=[];for(e=e.slice().reverse();e.length;){let o=yZt(e);if(o)n.length&&(i.push(t(n)),n=[]),i.push(r(o));else{let d=e.pop();if(YC.has(d))n.push(d);else{let g=m1e.get(d);if(g)n.push(...g);else if(!Sat.has(d))throw Oat(d)}}}return n.length&&i.push(t(n)),i}function mZt(e){return e.filter(t=>t!=vat)}function yZt(e,t){let r=b1e,i,n=e.length;for(;n&&(r=r.get(e[--n]),!!r);){let{V:o}=r;o&&(i=o,t&&t.push(...e.slice(n).reverse()),e.length=n)}return i}var Tat=new Uint8Array(32);Tat.fill(0);function xat(e){return _r(e.length!==0,"invalid ENS name; empty component","comp",e),e}function S1e(e){let t=rc(rY(e)),r=[];if(e.length===0)return r;let i=0;for(let n=0;n<t.length;n++)t[n]===46&&(r.push(xat(t.slice(i,n))),i=n+1);return _r(i<t.length,"invalid ENS name; empty component","name",e),r.push(xat(t.slice(i))),r}function rY(e){try{if(e.length===0)throw new Error("empty label");return wat(e)}catch(t){_r(!1,`invalid ENS name (${t.message})`,"name",e)}}function I1e(e){try{return S1e(e).length!==0}catch{}return!1}function JI(e){_r(typeof e=="string","invalid ENS name; not a string","name",e),_r(e.length,"invalid ENS name (empty label)","name",e);let t=Tat,r=S1e(e);for(;r.length;)t=Xa(Jo([t,Xa(r.pop())]));return vn(t)}function mL(e,t){let r=t??63;return _r(r<=255,"DNS encoded label cannot exceed 255","length",r),vn(Jo(S1e(e).map(i=>{_r(i.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(i.length+1);return n.set(i,1),n[0]=n.length-1,n})))+"00"}J();K();z();J();K();z();J();K();z();function C1e(e,t){return{address:Co(e),storageKeys:t.map((r,i)=>(_r(ns(r,32),"invalid slot",`storageKeys[${i}]`,r),r.toLowerCase()))}}function ih(e){if(Array.isArray(e))return e.map((r,i)=>Array.isArray(r)?(_r(r.length===2,"invalid slot set",`value[${i}]`,r),C1e(r[0],r[1])):(_r(r!=null&&typeof r=="object","invalid address-slot set","value",e),C1e(r.address,r.storageKeys)));_r(e!=null&&typeof e=="object","invalid access list","value",e);let t=Object.keys(e).map(r=>{let i=e[r].reduce((n,o)=>(n[o]=!0,n),{});return C1e(r,Object.keys(i).sort())});return t.sort((r,i)=>r.address.localeCompare(i.address)),t}J();K();z();function rg(e){let t;return typeof e=="string"?t=rh.computePublicKey(e,!1):t=e.publicKey,Co(Xa("0x"+t.substring(4)).substring(26))}function BR(e,t){return rg(rh.recoverPublicKey(e,t))}J();K();z();var _l=BigInt(0),bZt=BigInt(2),EZt=BigInt(27),vZt=BigInt(28),RZt=BigInt(35),SZt=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),w1e=4096*32;function Bat(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return r+=Bd(t).substring(4),"0x"+r}function nY(e){return e==="0x"?null:Co(e)}function O1e(e,t){try{return ih(e)}catch(r){_r(!1,r.message,t,e)}}function yL(e,t){return e==="0x"?0:Zi(e,t)}function Md(e,t){if(e==="0x")return _l;let r=gi(e,t);return _r(r<=SZt,"value exceeds uint size",t,r),r}function n0(e,t){let r=gi(e,"value"),i=Yu(r);return _r(i.length<=32,"value too large",`tx.${t}`,r),i}function N1e(e){return ih(e).map(t=>[t.address,t.storageKeys])}function IZt(e,t){_r(Array.isArray(e),`invalid ${t}`,"value",e);for(let r=0;r<e.length;r++)_r(ns(e[r],32),"invalid ${ param } hash",`value[${r}]`,e[r]);return e}function CZt(e){let t=DI(e);_r(Array.isArray(t)&&(t.length===9||t.length===6),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:yL(t[0],"nonce"),gasPrice:Md(t[1],"gasPrice"),gasLimit:Md(t[2],"gasLimit"),to:nY(t[3]),value:Md(t[4],"value"),data:vn(t[5]),chainId:_l};if(t.length===6)return r;let i=Md(t[6],"v"),n=Md(t[7],"r"),o=Md(t[8],"s");if(n===_l&&o===_l)r.chainId=i;else{let d=(i-RZt)/bZt;d<_l&&(d=_l),r.chainId=d,_r(d!==_l||i===EZt||i===vZt,"non-canonical legacy v","v",t[6]),r.signature=th.from({r:Hf(t[7],32),s:Hf(t[8],32),v:i})}return r}function wZt(e,t){let r=[n0(e.nonce,"nonce"),n0(e.gasPrice||0,"gasPrice"),n0(e.gasLimit,"gasLimit"),e.to||"0x",n0(e.value,"value"),e.data],i=_l;if(e.chainId!=_l)i=gi(e.chainId,"tx.chainId"),_r(!t||t.networkV==null||t.legacyChainId===i,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){let o=e.signature.legacyChainId;o!=null&&(i=o)}if(!t)return i!==_l&&(r.push(Yu(i)),r.push("0x"),r.push("0x")),D_(r);let n=BigInt(27+t.yParity);return i!==_l?n=th.getChainIdV(i,t.v):BigInt(t.v)!==n&&_r(!1,"tx.chainId/sig.v mismatch","sig",t),r.push(Yu(n)),r.push(Yu(t.r)),r.push(Yu(t.s)),D_(r)}function x1e(e,t){let r;try{if(r=yL(t[0],"yParity"),r!==0&&r!==1)throw new Error("bad yParity")}catch{_r(!1,"invalid yParity","yParity",t[0])}let i=Hf(t[1],32),n=Hf(t[2],32),o=th.from({r:i,s:n,yParity:r});e.signature=o}function OZt(e){let t=DI(Dn(e).slice(1));_r(Array.isArray(t)&&(t.length===9||t.length===12),"invalid field count for transaction type: 2","data",vn(e));let r={type:2,chainId:Md(t[0],"chainId"),nonce:yL(t[1],"nonce"),maxPriorityFeePerGas:Md(t[2],"maxPriorityFeePerGas"),maxFeePerGas:Md(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:Md(t[4],"gasLimit"),to:nY(t[5]),value:Md(t[6],"value"),data:vn(t[7]),accessList:O1e(t[8],"accessList")};return t.length===9||x1e(r,t.slice(9)),r}function NZt(e,t){let r=[n0(e.chainId,"chainId"),n0(e.nonce,"nonce"),n0(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),n0(e.maxFeePerGas||0,"maxFeePerGas"),n0(e.gasLimit,"gasLimit"),e.to||"0x",n0(e.value,"value"),e.data,N1e(e.accessList||[])];return t&&(r.push(n0(t.yParity,"yParity")),r.push(Yu(t.r)),r.push(Yu(t.s))),Jo(["0x02",D_(r)])}function xZt(e){let t=DI(Dn(e).slice(1));_r(Array.isArray(t)&&(t.length===8||t.length===11),"invalid field count for transaction type: 1","data",vn(e));let r={type:1,chainId:Md(t[0],"chainId"),nonce:yL(t[1],"nonce"),gasPrice:Md(t[2],"gasPrice"),gasLimit:Md(t[3],"gasLimit"),to:nY(t[4]),value:Md(t[5],"value"),data:vn(t[6]),accessList:O1e(t[7],"accessList")};return t.length===8||x1e(r,t.slice(8)),r}function TZt(e,t){let r=[n0(e.chainId,"chainId"),n0(e.nonce,"nonce"),n0(e.gasPrice||0,"gasPrice"),n0(e.gasLimit,"gasLimit"),e.to||"0x",n0(e.value,"value"),e.data,N1e(e.accessList||[])];return t&&(r.push(n0(t.yParity,"recoveryParam")),r.push(Yu(t.r)),r.push(Yu(t.s))),Jo(["0x01",D_(r)])}function BZt(e){let t=DI(Dn(e).slice(1)),r="3",i=null;if(t.length===4&&Array.isArray(t[0])){r="3 (network format)";let o=t[1],d=t[2],g=t[3];_r(Array.isArray(o),"invalid network format: blobs not an array","fields[1]",o),_r(Array.isArray(d),"invalid network format: commitments not an array","fields[2]",d),_r(Array.isArray(g),"invalid network format: proofs not an array","fields[3]",g),_r(o.length===d.length,"invalid network format: blobs/commitments length mismatch","fields",t),_r(o.length===g.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let y=0;y<t[1].length;y++)i.push({data:o[y],commitment:d[y],proof:g[y]});t=t[0]}_r(Array.isArray(t)&&(t.length===11||t.length===14),`invalid field count for transaction type: ${r}`,"data",vn(e));let n={type:3,chainId:Md(t[0],"chainId"),nonce:yL(t[1],"nonce"),maxPriorityFeePerGas:Md(t[2],"maxPriorityFeePerGas"),maxFeePerGas:Md(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:Md(t[4],"gasLimit"),to:nY(t[5]),value:Md(t[6],"value"),data:vn(t[7]),accessList:O1e(t[8],"accessList"),maxFeePerBlobGas:Md(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};i&&(n.blobs=i),_r(n.to!=null,`invalid address for transaction type: ${r}`,"data",e),_r(Array.isArray(n.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let o=0;o<n.blobVersionedHashes.length;o++)_r(ns(n.blobVersionedHashes[o],32),`invalid blobVersionedHash at index ${o}: must be length 32`,"data",e);return t.length===11||x1e(n,t.slice(11)),n}function MZt(e,t,r){let i=[n0(e.chainId,"chainId"),n0(e.nonce,"nonce"),n0(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),n0(e.maxFeePerGas||0,"maxFeePerGas"),n0(e.gasLimit,"gasLimit"),e.to||ry,n0(e.value,"value"),e.data,N1e(e.accessList||[]),n0(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),IZt(e.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(i.push(n0(t.yParity,"yParity")),i.push(Yu(t.r)),i.push(Yu(t.s)),r)?Jo(["0x03",D_([i,r.map(n=>n.data),r.map(n=>n.commitment),r.map(n=>n.proof)])]):Jo(["0x03",D_(i)])}var ng=class e{#e;#t;#r;#n;#i;#a;#o;#s;#f;#u;#A;#p;#c;#d;#l;#h;get type(){return this.#e}set type(t){switch(t){case null:this.#e=null;break;case 0:case"legacy":this.#e=0;break;case 1:case"berlin":case"eip-2930":this.#e=1;break;case 2:case"london":case"eip-1559":this.#e=2;break;case 3:case"cancun":case"eip-4844":this.#e=3;break;default:_r(!1,"unsupported transaction type","type",t)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){let t=this.#t;return t==null&&this.type===3?ry:t}set to(t){this.#t=t==null?null:Co(t)}get nonce(){return this.#n}set nonce(t){this.#n=Zi(t,"value")}get gasLimit(){return this.#i}set gasLimit(t){this.#i=gi(t)}get gasPrice(){let t=this.#a;return t==null&&(this.type===0||this.type===1)?_l:t}set gasPrice(t){this.#a=t==null?null:gi(t,"gasPrice")}get maxPriorityFeePerGas(){let t=this.#o;return t??(this.type===2||this.type===3?_l:null)}set maxPriorityFeePerGas(t){this.#o=t==null?null:gi(t,"maxPriorityFeePerGas")}get maxFeePerGas(){let t=this.#s;return t??(this.type===2||this.type===3?_l:null)}set maxFeePerGas(t){this.#s=t==null?null:gi(t,"maxFeePerGas")}get data(){return this.#r}set data(t){this.#r=vn(t)}get value(){return this.#f}set value(t){this.#f=gi(t,"value")}get chainId(){return this.#u}set chainId(t){this.#u=gi(t)}get signature(){return this.#A||null}set signature(t){this.#A=t==null?null:th.from(t)}get accessList(){let t=this.#p||null;return t??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(t){this.#p=t==null?null:ih(t)}get maxFeePerBlobGas(){let t=this.#c;return t==null&&this.type===3?_l:t}set maxFeePerBlobGas(t){this.#c=t==null?null:gi(t,"maxFeePerBlobGas")}get blobVersionedHashes(){let t=this.#d;return t==null&&this.type===3?[]:t}set blobVersionedHashes(t){if(t!=null){_r(Array.isArray(t),"blobVersionedHashes must be an Array","value",t),t=t.slice();for(let r=0;r<t.length;r++)_r(ns(t[r],32),"invalid blobVersionedHash",`value[${r}]`,t[r])}this.#d=t}get blobs(){return this.#h==null?null:this.#h.map(t=>Object.assign({},t))}set blobs(t){if(t==null){this.#h=null;return}let r=[],i=[];for(let n=0;n<t.length;n++){let o=t[n];if(zm(o)){Xr(this.#l,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let d=Dn(o);if(_r(d.length<=w1e,"blob is too large",`blobs[${n}]`,o),d.length!==w1e){let _=new Uint8Array(w1e);_.set(d),d=_}let g=this.#l.blobToKzgCommitment(d),y=vn(this.#l.computeBlobKzgProof(d,g));r.push({data:vn(d),commitment:vn(g),proof:y}),i.push(Bat(1,g))}else{let d=vn(o.commitment);r.push({data:vn(o.data),commitment:d,proof:vn(o.proof)}),i.push(Bat(1,d))}}this.#h=r,this.#d=i}get kzg(){return this.#l}set kzg(t){this.#l=t}constructor(){this.#e=null,this.#t=null,this.#n=0,this.#i=_l,this.#a=null,this.#o=null,this.#s=null,this.#r="0x",this.#f=_l,this.#u=_l,this.#A=null,this.#p=null,this.#c=null,this.#d=null,this.#h=null,this.#l=null}get hash(){return this.signature==null?null:Xa(this.#g(!0,!1))}get unsignedHash(){return Xa(this.unsignedSerialized)}get from(){return this.signature==null?null:BR(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:rh.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}#g(t,r){Xr(!t||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});let i=t?this.signature:null;switch(this.inferType()){case 0:return wZt(this,i);case 1:return TZt(this,i);case 2:return NZt(this,i);case 3:return MZt(this,i,r?this.blobs:null)}Xr(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#g(!0,!0)}get unsignedSerialized(){return this.#g(!1,!1)}inferType(){let t=this.inferTypes();return t.indexOf(2)>=0?2:t.pop()}inferTypes(){let t=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,i=this.accessList!=null,n=this.#c!=null||this.#d;this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&Xr(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),Xr(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),Xr(this.type!==0||!i,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let o=[];return this.type!=null?o.push(this.type):r?o.push(2):t?(o.push(1),i||o.push(0)):i?(o.push(1),o.push(2)):(n&&this.to||(o.push(0),o.push(1),o.push(2)),o.push(3)),o.sort(),o}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return e.from(this)}toJSON(){let t=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:t(this.gasLimit),gasPrice:t(this.gasPrice),maxPriorityFeePerGas:t(this.maxPriorityFeePerGas),maxFeePerGas:t(this.maxFeePerGas),value:t(this.value),chainId:t(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(t){if(t==null)return new e;if(typeof t=="string"){let i=Dn(t);if(i[0]>=127)return e.from(CZt(i));switch(i[0]){case 1:return e.from(xZt(i));case 2:return e.from(OZt(i));case 3:return e.from(BZt(i))}Xr(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}let r=new e;return t.type!=null&&(r.type=t.type),t.to!=null&&(r.to=t.to),t.nonce!=null&&(r.nonce=t.nonce),t.gasLimit!=null&&(r.gasLimit=t.gasLimit),t.gasPrice!=null&&(r.gasPrice=t.gasPrice),t.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas),t.maxFeePerGas!=null&&(r.maxFeePerGas=t.maxFeePerGas),t.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=t.maxFeePerBlobGas),t.data!=null&&(r.data=t.data),t.value!=null&&(r.value=t.value),t.chainId!=null&&(r.chainId=t.chainId),t.signature!=null&&(r.signature=th.from(t.signature)),t.accessList!=null&&(r.accessList=t.accessList),t.blobVersionedHashes!=null&&(r.blobVersionedHashes=t.blobVersionedHashes),t.kzg!=null&&(r.kzg=t.kzg),t.blobs!=null&&(r.blobs=t.blobs),t.hash!=null&&(_r(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",t),_r(r.hash===t.hash,"hash mismatch","tx",t)),t.from!=null&&(_r(r.isSigned(),"unsigned transaction cannot define '.from'","tx",t),_r(r.from.toLowerCase()===(t.from||"").toLowerCase(),"from mismatch","tx",t)),r}};function zI(e){return typeof e=="string"&&(e=rc(e)),Xa(Jo([rc(dL),rc(String(e.length)),e]))}function T1e(e,t){let r=zI(e);return BR(r,t)}J();K();z();var DZt=new RegExp("^bytes([0-9]+)$"),kZt=new RegExp("^(u?int)([0-9]*)$"),PZt=new RegExp("^(.*)\\[([0-9]*)\\]$");function Mat(e,t,r){switch(e){case"address":return r?Dn(Hf(t,32)):Dn(Co(t));case"string":return rc(t);case"bytes":return Dn(t);case"bool":return t=t?"0x01":"0x00",r?Dn(Hf(t,32)):Dn(t)}let i=e.match(kZt);if(i){let n=i[1]==="int",o=parseInt(i[2]||"256");return _r((!i[2]||i[2]===String(o))&&o%8===0&&o!==0&&o<=256,"invalid number type","type",e),r&&(o=256),n&&(t=SR(t,o)),Dn(Hf(Yu(t),o/8))}if(i=e.match(DZt),i){let n=parseInt(i[1]);return _r(String(n)===i[1]&&n!==0&&n<=32,"invalid bytes type","type",e),_r(Hp(t)===n,`invalid value for ${e}`,"value",t),r?Dn(vR(t,32)):t}if(i=e.match(PZt),i&&Array.isArray(t)){let n=i[1],o=parseInt(i[2]||String(t.length));_r(o===t.length,`invalid array length for ${e}`,"value",t);let d=[];return t.forEach(function(g){d.push(Mat(n,g,!0))}),Dn(Jo(d))}_r(!1,"invalid type","type",e)}function bL(e,t){_r(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(i,n){r.push(Mat(i,t[n]))}),vn(Jo(r))}function B1e(e,t){return Xa(bL(e,t))}function M1e(e,t){return Bd(bL(e,t))}J();K();z();var Lat=new Uint8Array(32);Lat.fill(0);var LZt=BigInt(-1),Uat=BigInt(0),Fat=BigInt(1),UZt=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function FZt(e){let t=Dn(e),r=t.length%32;return r?Jo([t,Lat.slice(r)]):vn(t)}var QZt=gl(Fat,32),HZt=gl(Uat,32),Dat={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},D1e=["name","version","chainId","verifyingContract","salt"];function kat(e){return function(t){return _r(typeof t=="string",`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}var GZt={name:kat("name"),version:kat("version"),chainId:function(e){let t=gi(e,"domain.chainId");return _r(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):Gp(t)},verifyingContract:function(e){try{return Co(e).toLowerCase()}catch{}_r(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=Dn(e,"domain.salt");return _r(t.length===32,'invalid domain value "salt"',"domain.salt",e),vn(t)}};function k1e(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=t[1]==="",i=parseInt(t[2]);_r(i%8===0&&i!==0&&i<=256&&t[2]===String(i),"invalid numeric width","type",e);let n=j1(UZt,r?i-1:i),o=r?(n+Fat)*LZt:Uat;return function(d){let g=gi(d,"value");return _r(g>=o&&g<=n,`value out-of-bounds for ${e}`,"value",g),gl(r?SR(g,256):g,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return _r(r!==0&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(i){let n=Dn(i);return _r(n.length===r,`invalid length for ${e}`,"value",i),FZt(i)}}}switch(e){case"address":return function(t){return Hf(Co(t),32)};case"bool":return function(t){return t?QZt:HZt};case"bytes":return function(t){return Xa(t)};case"string":return function(t){return nh(t)}}return null}function Pat(e,t){return`${e}(${t.map(({name:r,type:i})=>i+" "+r).join(",")})`}function iY(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}var P_=class e{primaryType;#e;get types(){return JSON.parse(this.#e)}#t;#r;constructor(t){this.#t=new Map,this.#r=new Map;let r=new Map,i=new Map,n=new Map,o={};Object.keys(t).forEach(y=>{o[y]=t[y].map(({name:_,type:I})=>{let{base:N,index:T}=iY(I);return N==="int"&&!t.int&&(N="int256"),N==="uint"&&!t.uint&&(N="uint256"),{name:_,type:N+(T||"")}}),r.set(y,new Set),i.set(y,[]),n.set(y,new Set)}),this.#e=JSON.stringify(o);for(let y in o){let _=new Set;for(let I of o[y]){_r(!_.has(I.name),`duplicate variable name ${JSON.stringify(I.name)} in ${JSON.stringify(y)}`,"types",t),_.add(I.name);let N=iY(I.type).base;_r(N!==y,`circular type reference to ${JSON.stringify(N)}`,"types",t),!k1e(N)&&(_r(i.has(N),`unknown type ${JSON.stringify(N)}`,"types",t),i.get(N).push(y),r.get(y).add(N))}}let d=Array.from(i.keys()).filter(y=>i.get(y).length===0);_r(d.length!==0,"missing primary type","types",t),_r(d.length===1,`ambiguous primary types or unused types: ${d.map(y=>JSON.stringify(y)).join(", ")}`,"types",t),Un(this,{primaryType:d[0]});function g(y,_){_r(!_.has(y),`circular type reference to ${JSON.stringify(y)}`,"types",t),_.add(y);for(let I of r.get(y))if(i.has(I)){g(I,_);for(let N of _)n.get(N).add(I)}_.delete(y)}g(this.primaryType,new Set);for(let[y,_]of n){let I=Array.from(_);I.sort(),this.#t.set(y,Pat(y,o[y])+I.map(N=>Pat(N,o[N])).join(""))}}getEncoder(t){let r=this.#r.get(t);return r||(r=this.#n(t),this.#r.set(t,r)),r}#n(t){{let n=k1e(t);if(n)return n}let r=iY(t).array;if(r){let n=r.prefix,o=this.getEncoder(n);return d=>{_r(r.count===-1||r.count===d.length,`array length mismatch; expected length ${r.count}`,"value",d);let g=d.map(o);return this.#t.has(n)&&(g=g.map(Xa)),Xa(Jo(g))}}let i=this.types[t];if(i){let n=nh(this.#t.get(t));return o=>{let d=i.map(({name:g,type:y})=>{let _=this.getEncoder(y)(o[g]);return this.#t.has(y)?Xa(_):_});return d.unshift(n),Jo(d)}}_r(!1,`unknown type: ${t}`,"type",t)}encodeType(t){let r=this.#t.get(t);return _r(r,`unknown type: ${JSON.stringify(t)}`,"name",t),r}encodeData(t,r){return this.getEncoder(t)(r)}hashStruct(t,r){return Xa(this.encodeData(t,r))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,r,i){if(k1e(t))return i(t,r);let n=iY(t).array;if(n)return _r(n.count===-1||n.count===r.length,`array length mismatch; expected length ${n.count}`,"value",r),r.map(d=>this._visit(n.prefix,d,i));let o=this.types[t];if(o)return o.reduce((d,{name:g,type:y})=>(d[g]=this._visit(y,r[g],i),d),{});_r(!1,`unknown type: ${t}`,"type",t)}visit(t,r){return this._visit(this.primaryType,t,r)}static from(t){return new e(t)}static getPrimaryType(t){return e.from(t).primaryType}static hashStruct(t,r,i){return e.from(r).hashStruct(t,i)}static hashDomain(t){let r=[];for(let i in t){if(t[i]==null)continue;let n=Dat[i];_r(n,`invalid typed-data domain key: ${JSON.stringify(i)}`,"domain",t),r.push({name:i,type:n})}return r.sort((i,n)=>D1e.indexOf(i.name)-D1e.indexOf(n.name)),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,i){return Jo(["0x1901",e.hashDomain(t),e.from(r).hash(i)])}static hash(t,r,i){return Xa(e.encode(t,r,i))}static async resolveNames(t,r,i,n){t=Object.assign({},t);for(let g in t)t[g]==null&&delete t[g];let o={};t.verifyingContract&&!ns(t.verifyingContract,20)&&(o[t.verifyingContract]="0x");let d=e.from(r);d.visit(i,(g,y)=>(g==="address"&&!ns(y,20)&&(o[y]="0x"),y));for(let g in o)o[g]=await n(g);return t.verifyingContract&&o[t.verifyingContract]&&(t.verifyingContract=o[t.verifyingContract]),i=d.visit(i,(g,y)=>g==="address"&&o[y]?o[y]:y),{domain:t,value:i}}static getPayload(t,r,i){e.hashDomain(t);let n={},o=[];D1e.forEach(y=>{let _=t[y];_!=null&&(n[y]=GZt[y](_),o.push({name:y,type:Dat[y]}))});let d=e.from(r);r=d.types;let g=Object.assign({},r);return _r(g.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),g.EIP712Domain=o,d.encode(i),{types:g,domain:n,primaryType:d.primaryType,message:d.visit(i,(y,_)=>{if(y.match(/^bytes(\d*)/))return vn(Dn(_));if(y.match(/^u?int/))return gi(_).toString();switch(y){case"address":return _.toLowerCase();case"bool":return!!_;case"string":return _r(typeof _=="string","invalid string","value",_),_}_r(!1,"unsupported type","type",y)})}}};function P1e(e,t,r,i){return BR(P_.hash(e,t,r),i)}function FA(e){let t=new Set;return e.forEach(r=>t.add(r)),Object.freeze(t)}var qZt="external public payable override",VZt=FA(qZt.split(" ")),Yat="constant external internal payable private public pure view override",JZt=FA(Yat.split(" ")),Wat="constructor error event fallback function receive struct",Xat=FA(Wat.split(" ")),Zat="calldata memory storage payable indexed",zZt=FA(Zat.split(" ")),KZt="tuple returns",$Zt=[Wat,Zat,KZt,Yat].join(" "),YZt=FA($Zt.split(" ")),WZt={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},XZt=new RegExp("^(\\s*)"),ZZt=new RegExp("^([0-9]+)"),jZt=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),jat=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),est=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),iy=class e{#e;#t;get offset(){return this.#e}get length(){return this.#t.length-this.#e}constructor(t){this.#e=0,this.#t=t.slice()}clone(){return new e(this.#t)}reset(){this.#e=0}#r(t=0,r=0){return new e(this.#t.slice(t,r).map(i=>Object.freeze(Object.assign({},i,{match:i.match-t,linkBack:i.linkBack-t,linkNext:i.linkNext-t}))))}popKeyword(t){let r=this.peek();if(r.type!=="KEYWORD"||!t.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(t){if(this.peek().type!==t){let r=this.peek();throw new Error(`expected ${t}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){let t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");let r=this.#r(this.#e+1,t.match+1);return this.#e=t.match+1,r}popParams(){let t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");let r=[];for(;this.#e<t.match-1;){let i=this.peek().linkNext;r.push(this.#r(this.#e+1,i)),this.#e=i}return this.#e=t.match+1,r}peek(){if(this.#e>=this.#t.length)throw new Error("out-of-bounds");return this.#t[this.#e]}peekKeyword(t){let r=this.peekType("KEYWORD");return r!=null&&t.has(r)?r:null}peekType(t){if(this.length===0)return null;let r=this.peek();return r.type===t?r.text:null}pop(){let t=this.peek();return this.#e++,t}toString(){let t=[];for(let r=this.#e;r<this.#t.length;r++){let i=this.#t[r];t.push(`${i.type}:${i.text}`)}return`<TokenString ${t.join(" ")}>`}};function $I(e){let t=[],r=d=>{let g=o<e.length?JSON.stringify(e[o]):"$EOI";throw new Error(`invalid token ${g} at ${o}: ${d}`)},i=[],n=[],o=0;for(;o<e.length;){let d=e.substring(o),g=d.match(XZt);g&&(o+=g[1].length,d=e.substring(o));let y={depth:i.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(y);let _=WZt[d[0]]||"";if(_){if(y.type=_,y.text=d[0],o++,_==="OPEN_PAREN")i.push(t.length-1),n.push(t.length-1);else if(_=="CLOSE_PAREN")i.length===0&&r("no matching open bracket"),y.match=i.pop(),t[y.match].match=t.length-1,y.depth--,y.linkBack=n.pop(),t[y.linkBack].linkNext=t.length-1;else if(_==="COMMA")y.linkBack=n.pop(),t[y.linkBack].linkNext=t.length-1,n.push(t.length-1);else if(_==="OPEN_BRACKET")y.type="BRACKET";else if(_==="CLOSE_BRACKET"){let I=t.pop().text;if(t.length>0&&t[t.length-1].type==="NUMBER"){let N=t.pop().text;I=N+I,t[t.length-1].value=Zi(N)}if(t.length===0||t[t.length-1].type!=="BRACKET")throw new Error("missing opening bracket");t[t.length-1].text+=I}continue}if(g=d.match(jZt),g){if(y.text=g[1],o+=y.text.length,YZt.has(y.text)){y.type="KEYWORD";continue}if(y.text.match(est)){y.type="TYPE";continue}y.type="ID";continue}if(g=d.match(ZZt),g){y.text=g[1],y.type="NUMBER",o+=y.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(d[0])} at position ${o}`)}return new iy(t.map(d=>Object.freeze(d)))}function Qat(e,t){let r=[];for(let i in t.keys())e.has(i)&&r.push(i);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function oY(e,t){if(t.peekKeyword(Xat)){let r=t.pop().text;if(r!==e)throw new Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function DR(e,t){let r=new Set;for(;;){let i=e.peekType("KEYWORD");if(i==null||t&&!t.has(i))break;if(e.pop(),r.has(i))throw new Error(`duplicate keywords: ${JSON.stringify(i)}`);r.add(i)}return Object.freeze(r)}function tst(e){let t=DR(e,JZt);return Qat(t,FA("constant payable nonpayable".split(" "))),Qat(t,FA("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function MR(e,t){return e.popParams().map(r=>pd.from(r,t))}function rst(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return gi(e.pop().text);throw new Error("invalid gas")}return null}function XC(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}var ejt=new RegExp(/^(.*)\[([0-9]*)\]$/);function Hat(e){let t=e.match(est);if(_r(t,"invalid type","type",e),e==="uint")return"uint256";if(e==="int")return"int256";if(t[2]){let r=parseInt(t[2]);_r(r!==0&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);_r(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",e)}return e}var $0={},qp=Symbol.for("_ethers_internal"),Gat="_ParamTypeInternal",qat="_ErrorInternal",Vat="_EventInternal",Jat="_ConstructorInternal",zat="_FallbackInternal",Kat="_FunctionInternal",$at="_StructInternal",pd=class e{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(t,r,i,n,o,d,g,y){if(jl(t,$0,"ParamType"),Object.defineProperty(this,qp,{value:Gat}),d&&(d=Object.freeze(d.slice())),n==="array"){if(g==null||y==null)throw new Error("")}else if(g!=null||y!=null)throw new Error("");if(n==="tuple"){if(d==null)throw new Error("")}else if(d!=null)throw new Error("");Un(this,{name:r,type:i,baseType:n,indexed:o,components:d,arrayLength:g,arrayChildren:y})}format(t){if(t==null&&(t="sighash"),t==="json"){let i=this.name||"";if(this.isArray()){let o=JSON.parse(this.arrayChildren.format("json"));return o.name=i,o.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(o)}let n={type:this.baseType==="tuple"?"tuple":this.type,name:i};return typeof this.indexed=="boolean"&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map(o=>JSON.parse(o.format(t)))),JSON.stringify(n)}let r="";return this.isArray()?(r+=this.arrayChildren.format(t),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(i=>i.format(t)).join(t==="full"?", ":",")+")":r+=this.type,t!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),t==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(t,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");let i=this;return t.map(n=>i.arrayChildren.walk(n,r))}if(this.isTuple()){if(!Array.isArray(t))throw new Error("invalid tuple value");if(t.length!==this.components.length)throw new Error("array is wrong length");let i=this;return t.map((n,o)=>i.components[o].walk(n,r))}return r(this.type,t)}#e(t,r,i,n){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");let d=this.arrayChildren,g=r.slice();g.forEach((y,_)=>{d.#e(t,y,i,I=>{g[_]=I})}),n(g);return}if(this.isTuple()){let d=this.components,g;if(Array.isArray(r))g=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");g=d.map(y=>{if(!y.name)throw new Error("cannot use object value with unnamed components");if(!(y.name in r))throw new Error(`missing value for component ${y.name}`);return r[y.name]})}if(g.length!==this.components.length)throw new Error("array is wrong length");g.forEach((y,_)=>{d[_].#e(t,y,i,I=>{g[_]=I})}),n(g);return}let o=i(this.type,r);o.then?t.push((async function(){n(await o)})()):n(o)}async walkAsync(t,r){let i=[],n=[t];return this.#e(i,t,r,o=>{n[0]=o}),i.length&&await Promise.all(i),n[0]}static from(t,r){if(e.isParamType(t))return t;if(typeof t=="string")try{return e.from($I(t),r)}catch{_r(!1,"invalid param type","obj",t)}else if(t instanceof iy){let g="",y="",_=null;DR(t,FA(["tuple"])).has("tuple")||t.peekType("OPEN_PAREN")?(y="tuple",_=t.popParams().map(P=>e.from(P)),g=`tuple(${_.map(P=>P.format()).join(",")})`):(g=Hat(t.popType("TYPE")),y=g);let I=null,N=null;for(;t.length&&t.peekType("BRACKET");){let P=t.pop();I=new e($0,"",g,y,null,_,N,I),N=P.value,g+=P.text,y="array",_=null}let T=null;if(DR(t,zZt).has("indexed")){if(!r)throw new Error("");T=!0}let D=t.peekType("ID")?t.pop().text:"";if(t.length)throw new Error("leftover tokens");return new e($0,D,g,y,T,_,N,I)}let i=t.name;_r(!i||typeof i=="string"&&i.match(jat),"invalid name","obj.name",i);let n=t.indexed;n!=null&&(_r(r,"parameter cannot be indexed","obj.indexed",t.indexed),n=!!n);let o=t.type,d=o.match(ejt);if(d){let g=parseInt(d[2]||"-1"),y=e.from({type:d[1],components:t.components});return new e($0,i||"",o,"array",n,null,g,y)}if(o==="tuple"||o.startsWith("tuple(")||o.startsWith("(")){let g=t.components!=null?t.components.map(_=>e.from(_)):null;return new e($0,i||"",o,"tuple",n,g,null,null)}return o=Hat(t.type),new e($0,i||"",o,o,n,null,null,null)}static isParamType(t){return t&&t[qp]===Gat}},Qb=class e{type;inputs;constructor(t,r,i){jl(t,$0,"Fragment"),i=Object.freeze(i.slice()),Un(this,{type:r,inputs:i})}static from(t){if(typeof t=="string"){try{e.from(JSON.parse(t))}catch{}return e.from($I(t))}if(t instanceof iy)switch(t.peekKeyword(Xat)){case"constructor":return Ub.from(t);case"error":return QA.from(t);case"event":return Lb.from(t);case"fallback":case"receive":return ZC.from(t);case"function":return Fb.from(t);case"struct":return KI.from(t)}else if(typeof t=="object"){switch(t.type){case"constructor":return Ub.from(t);case"error":return QA.from(t);case"event":return Lb.from(t);case"fallback":case"receive":return ZC.from(t);case"function":return Fb.from(t);case"struct":return KI.from(t)}Xr(!1,`unsupported type: ${t.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}_r(!1,"unsupported frgament object","obj",t)}static isConstructor(t){return Ub.isFragment(t)}static isError(t){return QA.isFragment(t)}static isEvent(t){return Lb.isFragment(t)}static isFunction(t){return Fb.isFragment(t)}static isStruct(t){return KI.isFragment(t)}},kR=class extends Qb{name;constructor(t,r,i,n){super(t,r,n),_r(typeof i=="string"&&i.match(jat),"invalid identifier","name",i),n=Object.freeze(n.slice()),Un(this,{name:i})}};function EL(e,t){return"("+t.map(r=>r.format(e)).join(e==="full"?", ":",")+")"}var QA=class e extends kR{constructor(t,r,i){super(t,"error",r,i),Object.defineProperty(this,qp,{value:qat})}get selector(){return nh(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(t)))});let r=[];return t!=="sighash"&&r.push("error"),r.push(this.name+EL(t,this.inputs)),r.join(" ")}static from(t){if(e.isFragment(t))return t;if(typeof t=="string")return e.from($I(t));if(t instanceof iy){let r=oY("error",t),i=MR(t);return XC(t),new e($0,r,i)}return new e($0,t.name,t.inputs?t.inputs.map(pd.from):[])}static isFragment(t){return t&&t[qp]===qat}},Lb=class e extends kR{anonymous;constructor(t,r,i,n){super(t,"event",r,i),Object.defineProperty(this,qp,{value:Vat}),Un(this,{anonymous:n})}get topicHash(){return nh(this.format("sighash"))}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(t)))});let r=[];return t!=="sighash"&&r.push("event"),r.push(this.name+EL(t,this.inputs)),t!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(t,r){return r=(r||[]).map(n=>pd.from(n)),new e($0,t,r,!1).topicHash}static from(t){if(e.isFragment(t))return t;if(typeof t=="string")try{return e.from($I(t))}catch{_r(!1,"invalid event fragment","obj",t)}else if(t instanceof iy){let r=oY("event",t),i=MR(t,!0),n=!!DR(t,FA(["anonymous"])).has("anonymous");return XC(t),new e($0,r,i,n)}return new e($0,t.name,t.inputs?t.inputs.map(r=>pd.from(r,!0)):[],!!t.anonymous)}static isFragment(t){return t&&t[qp]===Vat}},Ub=class e extends Qb{payable;gas;constructor(t,r,i,n,o){super(t,r,i),Object.defineProperty(this,qp,{value:Jat}),Un(this,{payable:n,gas:o})}format(t){if(Xr(t!=null&&t!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),t==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(t)))});let r=[`constructor${EL(t,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(t){if(e.isFragment(t))return t;if(typeof t=="string")try{return e.from($I(t))}catch{_r(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof iy){DR(t,FA(["constructor"]));let r=MR(t),i=!!DR(t,VZt).has("payable"),n=rst(t);return XC(t),new e($0,"constructor",r,i,n)}return new e($0,"constructor",t.inputs?t.inputs.map(pd.from):[],!!t.payable,t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[qp]===Jat}},ZC=class e extends Qb{payable;constructor(t,r,i){super(t,"fallback",r),Object.defineProperty(this,qp,{value:zat}),Un(this,{payable:i})}format(t){let r=this.inputs.length===0?"receive":"fallback";if(t==="json"){let i=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:i})}return`${r}()${this.payable?" payable":""}`}static from(t){if(e.isFragment(t))return t;if(typeof t=="string")try{return e.from($I(t))}catch{_r(!1,"invalid fallback fragment","obj",t)}else if(t instanceof iy){let r=t.toString(),i=t.peekKeyword(FA(["fallback","receive"]));if(_r(i,"type must be fallback or receive","obj",r),t.popKeyword(FA(["fallback","receive"]))==="receive"){let g=MR(t);return _r(g.length===0,"receive cannot have arguments","obj.inputs",g),DR(t,FA(["payable"])),XC(t),new e($0,[],!0)}let o=MR(t);o.length?_r(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(g=>g.format("minimal")).join(", ")):o=[pd.from("bytes")];let d=tst(t);if(_r(d==="nonpayable"||d==="payable","fallback cannot be constants","obj.stateMutability",d),DR(t,FA(["returns"])).has("returns")){let g=MR(t);_r(g.length===1&&g[0].type==="bytes","invalid fallback outputs","obj.outputs",g.map(y=>y.format("minimal")).join(", "))}return XC(t),new e($0,o,d==="payable")}if(t.type==="receive")return new e($0,[],!0);if(t.type==="fallback"){let r=[pd.from("bytes")],i=t.stateMutability==="payable";return new e($0,r,i)}_r(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[qp]===zat}},Fb=class e extends kR{constant;outputs;stateMutability;payable;gas;constructor(t,r,i,n,o,d){super(t,"function",r,n),Object.defineProperty(this,qp,{value:Kat}),o=Object.freeze(o.slice()),Un(this,{constant:i==="view"||i==="pure",gas:d,outputs:o,payable:i==="payable",stateMutability:i})}get selector(){return nh(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(t))),outputs:this.outputs.map(i=>JSON.parse(i.format(t)))});let r=[];return t!=="sighash"&&r.push("function"),r.push(this.name+EL(t,this.inputs)),t!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(EL(t,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(t,r){return r=(r||[]).map(n=>pd.from(n)),new e($0,t,"view",r,[],null).selector}static from(t){if(e.isFragment(t))return t;if(typeof t=="string")try{return e.from($I(t))}catch{_r(!1,"invalid function fragment","obj",t)}else if(t instanceof iy){let i=oY("function",t),n=MR(t),o=tst(t),d=[];DR(t,FA(["returns"])).has("returns")&&(d=MR(t));let g=rst(t);return XC(t),new e($0,i,o,n,d,g)}let r=t.stateMutability;return r==null&&(r="payable",typeof t.constant=="boolean"?(r="view",t.constant||(r="payable",typeof t.payable=="boolean"&&!t.payable&&(r="nonpayable"))):typeof t.payable=="boolean"&&!t.payable&&(r="nonpayable")),new e($0,t.name,r,t.inputs?t.inputs.map(pd.from):[],t.outputs?t.outputs.map(pd.from):[],t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[qp]===Kat}},KI=class e extends kR{constructor(t,r,i){super(t,"struct",r,i),Object.defineProperty(this,qp,{value:$at})}format(){throw new Error("@TODO")}static from(t){if(typeof t=="string")try{return e.from($I(t))}catch{_r(!1,"invalid struct fragment","obj",t)}else if(t instanceof iy){let r=oY("struct",t),i=MR(t);return XC(t),new e($0,r,i)}return new e($0,t.name,t.inputs?t.inputs.map(pd.from):[])}static isFragment(t){return t&&t[qp]===$at}};var oy=new Map;oy.set(0,"GENERIC_PANIC");oy.set(1,"ASSERT_FALSE");oy.set(17,"OVERFLOW");oy.set(18,"DIVIDE_BY_ZERO");oy.set(33,"ENUM_RANGE_ERROR");oy.set(34,"BAD_STORAGE_DATA");oy.set(49,"STACK_UNDERFLOW");oy.set(50,"ARRAY_RANGE_ERROR");oy.set(65,"OUT_OF_MEMORY");oy.set(81,"UNINITIALIZED_FUNCTION_CALL");var tjt=new RegExp(/^bytes([0-9]*)$/),rjt=new RegExp(/^(u?int)([0-9]*)$/),L1e=null,nst=1024;function njt(e,t,r,i){let n="missing revert data",o=null,d=null,g=null;if(r){n="execution reverted";let _=Dn(r);if(r=vn(r),_.length===0)n+=" (no data present; likely require(false) occurred",o="require(false)";else if(_.length%32!==4)n+=" (could not decode reason; invalid data length)";else if(vn(_.slice(0,4))==="0x08c379a0")try{o=i.decode(["string"],_.slice(4))[0],g={signature:"Error(string)",name:"Error",args:[o]},n+=`: ${JSON.stringify(o)}`}catch{n+=" (could not decode reason; invalid string data)"}else if(vn(_.slice(0,4))==="0x4e487b71")try{let I=Number(i.decode(["uint256"],_.slice(4))[0]);g={signature:"Panic(uint256)",name:"Panic",args:[I]},o=`Panic due to ${oy.get(I)||"UNKNOWN"}(${I})`,n+=`: ${o}`}catch{n+=" (could not decode panic code)"}else n+=" (unknown custom error)"}let y={to:t.to?Co(t.to):null,data:t.data||"0x"};return t.from&&(y.from=Co(t.from)),wc(n,"CALL_EXCEPTION",{action:e,data:r,reason:o,transaction:y,invocation:d,revert:g})}var L_=class e{#e(t){if(t.isArray())return new G$(this.#e(t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new $C(t.components.map(i=>this.#e(i)),t.name);switch(t.baseType){case"address":return new Q$(t.name);case"bool":return new q$(t.name);case"string":return new $$(t.name);case"bytes":return new V$(t.name);case"":return new z$(t.name)}let r=t.type.match(rjt);if(r){let i=parseInt(r[2]||"256");return _r(i!==0&&i<=256&&i%8===0,"invalid "+r[1]+" bit length","param",t),new K$(i/8,r[1]==="int",t.name)}if(r=t.type.match(tjt),r){let i=parseInt(r[1]);return _r(i!==0&&i<=32,"invalid bytes length","param",t),new J$(i,t.name)}_r(!1,"invalid type","type",t.type)}getDefaultValue(t){let r=t.map(n=>this.#e(pd.from(n)));return new $C(r,"_").defaultValue()}encode(t,r){kC(r.length,t.length,"types/values length mismatch");let i=t.map(d=>this.#e(pd.from(d))),n=new $C(i,"_"),o=new QC;return n.encode(o,r),o.data}decode(t,r,i){let n=t.map(d=>this.#e(pd.from(d)));return new $C(n,"_").decode(new E$(r,i,nst))}static _setDefaultMaxInflation(t){_r(typeof t=="number"&&Number.isInteger(t),"invalid defaultMaxInflation factor","value",t),nst=t}static defaultAbiCoder(){return L1e==null&&(L1e=new e),L1e}static getBuiltinCallException(t,r,i){return njt(t,r,i,e.defaultAbiCoder())}};J();K();z();function U1e(e){let t=rc(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return vR(t,32)}function F1e(e){let t=Dn(e,"bytes");if(t.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(t[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;t[r-1]===0;)r--;return LA(t.slice(0,r))}J();K();z();var Jx=class{fragment;name;signature;topic;args;constructor(t,r,i){let n=t.name,o=t.format();Un(this,{fragment:t,name:n,signature:o,topic:r,args:i})}},zx=class{fragment;name;args;signature;selector;value;constructor(t,r,i,n){let o=t.name,d=t.format();Un(this,{fragment:t,name:o,args:i,signature:d,selector:r,value:n})}},Kx=class{fragment;name;args;signature;selector;constructor(t,r,i){let n=t.name,o=t.format();Un(this,{fragment:t,name:n,args:i,signature:o,selector:r})}},jC=class{hash;_isIndexed;static isIndexed(t){return!!(t&&t._isIndexed)}constructor(t){Un(this,{hash:t,_isIndexed:!0})}},ist={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},ost={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&ist[e.toString()]&&(t=ist[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}},PR=class e{fragments;deploy;fallback;receive;#e;#t;#r;#n;constructor(t){let r=[];typeof t=="string"?r=JSON.parse(t):r=t,this.#r=new Map,this.#e=new Map,this.#t=new Map;let i=[];for(let d of r)try{i.push(Qb.from(d))}catch(g){console.log(`[Warning] Invalid Fragment ${JSON.stringify(d)}:`,g.message)}Un(this,{fragments:Object.freeze(i)});let n=null,o=!1;this.#n=this.getAbiCoder(),this.fragments.forEach((d,g)=>{let y;switch(d.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}Un(this,{deploy:d});return;case"fallback":d.inputs.length===0?o=!0:(_r(!n||d.payable!==n.payable,"conflicting fallback fragments",`fragments[${g}]`,d),n=d,o=n.payable);return;case"function":y=this.#r;break;case"event":y=this.#t;break;case"error":y=this.#e;break;default:return}let _=d.format();y.has(_)||y.set(_,d)}),this.deploy||Un(this,{deploy:Ub.from("constructor()")}),Un(this,{fallback:n,receive:o})}format(t){let r=t?"minimal":"full";return this.fragments.map(n=>n.format(r))}formatJson(){let t=this.fragments.map(r=>r.format("json"));return JSON.stringify(t.map(r=>JSON.parse(r)))}getAbiCoder(){return L_.defaultAbiCoder()}#i(t,r,i){if(ns(t)){let o=t.toLowerCase();for(let d of this.#r.values())if(o===d.selector)return d;return null}if(t.indexOf("(")===-1){let o=[];for(let[d,g]of this.#r)d.split("(")[0]===t&&o.push(g);if(r){let d=r.length>0?r[r.length-1]:null,g=r.length,y=!0;lu.isTyped(d)&&d.type==="overrides"&&(y=!1,g--);for(let _=o.length-1;_>=0;_--){let I=o[_].inputs.length;I!==g&&(!y||I!==g-1)&&o.splice(_,1)}for(let _=o.length-1;_>=0;_--){let I=o[_].inputs;for(let N=0;N<r.length;N++)if(lu.isTyped(r[N])){if(N>=I.length){if(r[N].type==="overrides")continue;o.splice(_,1);break}if(r[N].type!==I[N].baseType){o.splice(_,1);break}}}}if(o.length===1&&r&&r.length!==o[0].inputs.length){let d=r[r.length-1];(d==null||Array.isArray(d)||typeof d!="object")&&o.splice(0,1)}if(o.length===0)return null;if(o.length>1&&i){let d=o.map(g=>JSON.stringify(g.format())).join(", ");_r(!1,`ambiguous function description (i.e. matches ${d})`,"key",t)}return o[0]}let n=this.#r.get(Fb.from(t).format());return n||null}getFunctionName(t){let r=this.#i(t,null,!1);return _r(r,"no matching function","key",t),r.name}hasFunction(t){return!!this.#i(t,null,!1)}getFunction(t,r){return this.#i(t,r||null,!0)}forEachFunction(t){let r=Array.from(this.#r.keys());r.sort((i,n)=>i.localeCompare(n));for(let i=0;i<r.length;i++){let n=r[i];t(this.#r.get(n),i)}}#a(t,r,i){if(ns(t)){let o=t.toLowerCase();for(let d of this.#t.values())if(o===d.topicHash)return d;return null}if(t.indexOf("(")===-1){let o=[];for(let[d,g]of this.#t)d.split("(")[0]===t&&o.push(g);if(r){for(let d=o.length-1;d>=0;d--)o[d].inputs.length<r.length&&o.splice(d,1);for(let d=o.length-1;d>=0;d--){let g=o[d].inputs;for(let y=0;y<r.length;y++)if(lu.isTyped(r[y])&&r[y].type!==g[y].baseType){o.splice(d,1);break}}}if(o.length===0)return null;if(o.length>1&&i){let d=o.map(g=>JSON.stringify(g.format())).join(", ");_r(!1,`ambiguous event description (i.e. matches ${d})`,"key",t)}return o[0]}let n=this.#t.get(Lb.from(t).format());return n||null}getEventName(t){let r=this.#a(t,null,!1);return _r(r,"no matching event","key",t),r.name}hasEvent(t){return!!this.#a(t,null,!1)}getEvent(t,r){return this.#a(t,r||null,!0)}forEachEvent(t){let r=Array.from(this.#t.keys());r.sort((i,n)=>i.localeCompare(n));for(let i=0;i<r.length;i++){let n=r[i];t(this.#t.get(n),i)}}getError(t,r){if(ns(t)){let n=t.toLowerCase();if(ost[n])return QA.from(ost[n].signature);for(let o of this.#e.values())if(n===o.selector)return o;return null}if(t.indexOf("(")===-1){let n=[];for(let[o,d]of this.#e)o.split("(")[0]===t&&n.push(d);if(n.length===0)return t==="Error"?QA.from("error Error(string)"):t==="Panic"?QA.from("error Panic(uint256)"):null;if(n.length>1){let o=n.map(d=>JSON.stringify(d.format())).join(", ");_r(!1,`ambiguous error description (i.e. ${o})`,"name",t)}return n[0]}if(t=QA.from(t).format(),t==="Error(string)")return QA.from("error Error(string)");if(t==="Panic(uint256)")return QA.from("error Panic(uint256)");let i=this.#e.get(t);return i||null}forEachError(t){let r=Array.from(this.#e.keys());r.sort((i,n)=>i.localeCompare(n));for(let i=0;i<r.length;i++){let n=r[i];t(this.#e.get(n),i)}}_decodeParams(t,r){return this.#n.decode(t,r)}_encodeParams(t,r){return this.#n.encode(t,r)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,r){if(typeof t=="string"){let i=this.getError(t);_r(i,"unknown error","fragment",t),t=i}return _r(tc(r,0,4)===t.selector,`data signature does not match error ${t.name}.`,"data",r),this._decodeParams(t.inputs,tc(r,4))}encodeErrorResult(t,r){if(typeof t=="string"){let i=this.getError(t);_r(i,"unknown error","fragment",t),t=i}return Jo([t.selector,this._encodeParams(t.inputs,r||[])])}decodeFunctionData(t,r){if(typeof t=="string"){let i=this.getFunction(t);_r(i,"unknown function","fragment",t),t=i}return _r(tc(r,0,4)===t.selector,`data signature does not match function ${t.name}.`,"data",r),this._decodeParams(t.inputs,tc(r,4))}encodeFunctionData(t,r){if(typeof t=="string"){let i=this.getFunction(t);_r(i,"unknown function","fragment",t),t=i}return Jo([t.selector,this._encodeParams(t.inputs,r||[])])}decodeFunctionResult(t,r){if(typeof t=="string"){let o=this.getFunction(t);_r(o,"unknown function","fragment",t),t=o}let i="invalid length for result data",n=$u(r);if(n.length%32===0)try{return this.#n.decode(t.outputs,n)}catch{i="could not decode result data"}Xr(!1,i,"BAD_DATA",{value:vn(n),info:{method:t.name,signature:t.format()}})}makeError(t,r){let i=Dn(t,"data"),n=L_.getBuiltinCallException("call",r,i);if(n.message.startsWith("execution reverted (unknown custom error)")){let g=vn(i.slice(0,4)),y=this.getError(g);if(y)try{let _=this.#n.decode(y.inputs,i.slice(4));n.revert={name:y.name,signature:y.format(),args:_},n.reason=n.revert.signature,n.message=`execution reverted: ${n.reason}`}catch{n.message="execution reverted (coult not decode custom error)"}}let d=this.parseTransaction(r);return d&&(n.invocation={method:d.name,signature:d.signature,args:d.args}),n}encodeFunctionResult(t,r){if(typeof t=="string"){let i=this.getFunction(t);_r(i,"unknown function","fragment",t),t=i}return vn(this.#n.encode(t.outputs,r||[]))}encodeFilterTopics(t,r){if(typeof t=="string"){let o=this.getEvent(t);_r(o,"unknown event","eventFragment",t),t=o}Xr(r.length<=t.inputs.length,`too many arguments for ${t.format()}`,"UNEXPECTED_ARGUMENT",{count:r.length,expectedCount:t.inputs.length});let i=[];t.anonymous||i.push(t.topicHash);let n=(o,d)=>o.type==="string"?nh(d):o.type==="bytes"?Xa(vn(d)):(o.type==="bool"&&typeof d=="boolean"?d=d?"0x01":"0x00":o.type.match(/^u?int/)?d=gl(d):o.type.match(/^bytes/)?d=vR(d,32):o.type==="address"&&this.#n.encode(["address"],[d]),Hf(vn(d),32));for(r.forEach((o,d)=>{let g=t.inputs[d];if(!g.indexed){_r(o==null,"cannot filter non-indexed parameters; must be null","contract."+g.name,o);return}o==null?i.push(null):g.baseType==="array"||g.baseType==="tuple"?_r(!1,"filtering with tuples or arrays not supported","contract."+g.name,o):Array.isArray(o)?i.push(o.map(y=>n(g,y))):i.push(n(g,o))});i.length&&i[i.length-1]===null;)i.pop();return i}encodeEventLog(t,r){if(typeof t=="string"){let d=this.getEvent(t);_r(d,"unknown event","eventFragment",t),t=d}let i=[],n=[],o=[];return t.anonymous||i.push(t.topicHash),_r(r.length===t.inputs.length,"event arguments/values mismatch","values",r),t.inputs.forEach((d,g)=>{let y=r[g];if(d.indexed)if(d.type==="string")i.push(nh(y));else if(d.type==="bytes")i.push(Xa(y));else{if(d.baseType==="tuple"||d.baseType==="array")throw new Error("not implemented");i.push(this.#n.encode([d.type],[y]))}else n.push(d),o.push(y)}),{data:this.#n.encode(n,o),topics:i}}decodeEventLog(t,r,i){if(typeof t=="string"){let M=this.getEvent(t);_r(M,"unknown event","eventFragment",t),t=M}if(i!=null&&!t.anonymous){let M=t.topicHash;_r(ns(i[0],32)&&i[0].toLowerCase()===M,"fragment/topic mismatch","topics[0]",i[0]),i=i.slice(1)}let n=[],o=[],d=[];t.inputs.forEach((M,D)=>{M.indexed?M.type==="string"||M.type==="bytes"||M.baseType==="tuple"||M.baseType==="array"?(n.push(pd.from({type:"bytes32",name:M.name})),d.push(!0)):(n.push(M),d.push(!1)):(o.push(M),d.push(!1))});let g=i!=null?this.#n.decode(n,Jo(i)):null,y=this.#n.decode(o,r,!0),_=[],I=[],N=0,T=0;return t.inputs.forEach((M,D)=>{let P=null;if(M.indexed)if(g==null)P=new jC(null);else if(d[D])P=new jC(g[T++]);else try{P=g[T++]}catch(G){P=G}else try{P=y[N++]}catch(G){P=G}_.push(P),I.push(M.name||null)}),CR.fromItems(_,I)}parseTransaction(t){let r=Dn(t.data,"tx.data"),i=gi(t.value!=null?t.value:0,"tx.value"),n=this.getFunction(vn(r.slice(0,4)));if(!n)return null;let o=this.#n.decode(n.inputs,r.slice(4));return new zx(n,n.selector,o,i)}parseCallResult(t){throw new Error("@TODO")}parseLog(t){let r=this.getEvent(t.topics[0]);return!r||r.anonymous?null:new Jx(r,r.topicHash,this.decodeEventLog(r,t.data,t.topics))}parseError(t){let r=vn(t),i=this.getError(tc(r,0,4));if(!i)return null;let n=this.#n.decode(i.inputs,tc(r,4));return new Kx(i,i.selector,n)}static from(t){return t instanceof e?t:typeof t=="string"?new e(JSON.parse(t)):typeof t.format=="function"?new e(t.format("json")):new e(t)}};J();K();z();J();K();z();J();K();z();var ast=BigInt(0);function $x(e){return e??null}function Dd(e){return e==null?null:e.toString()}var YI=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(t,r,i){Un(this,{gasPrice:$x(t),maxFeePerGas:$x(r),maxPriorityFeePerGas:$x(i)})}toJSON(){let{gasPrice:t,maxFeePerGas:r,maxPriorityFeePerGas:i}=this;return{_type:"FeeData",gasPrice:Dd(t),maxFeePerGas:Dd(r),maxPriorityFeePerGas:Dd(i)}}};function Gb(e){let t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=vn(e.data));let r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(let n of r)!(n in e)||e[n]==null||(t[n]=gi(e[n],`request.${n}`));let i="type,nonce".split(/,/);for(let n of i)!(n in e)||e[n]==null||(t[n]=Zi(e[n],`request.${n}`));return e.accessList&&(t.accessList=ih(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(n=>zm(n)?vn(n):Object.assign({},n))),t}var ew=class{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#e;constructor(t,r){this.#e=t.transactions.map(i=>typeof i!="string"?new Hb(i,r):i),Un(this,{provider:r,hash:$x(t.hash),number:t.number,timestamp:t.timestamp,parentHash:t.parentHash,parentBeaconBlockRoot:t.parentBeaconBlockRoot,nonce:t.nonce,difficulty:t.difficulty,gasLimit:t.gasLimit,gasUsed:t.gasUsed,blobGasUsed:t.blobGasUsed,excessBlobGas:t.excessBlobGas,miner:t.miner,prevRandao:$x(t.prevRandao),extraData:t.extraData,baseFeePerGas:$x(t.baseFeePerGas),stateRoot:t.stateRoot,receiptsRoot:t.receiptsRoot})}get transactions(){return this.#e.map(t=>typeof t=="string"?t:t.hash)}get prefetchedTransactions(){let t=this.#e.slice();return t.length===0?[]:(Xr(typeof t[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),t)}toJSON(){let{baseFeePerGas:t,difficulty:r,extraData:i,gasLimit:n,gasUsed:o,hash:d,miner:g,prevRandao:y,nonce:_,number:I,parentHash:N,parentBeaconBlockRoot:T,stateRoot:M,receiptsRoot:D,timestamp:P,transactions:G}=this;return{_type:"Block",baseFeePerGas:Dd(t),difficulty:Dd(r),extraData:i,gasLimit:Dd(n),gasUsed:Dd(o),blobGasUsed:Dd(this.blobGasUsed),excessBlobGas:Dd(this.excessBlobGas),hash:d,miner:g,prevRandao:y,nonce:_,number:I,parentHash:N,timestamp:P,parentBeaconBlockRoot:T,stateRoot:M,receiptsRoot:D,transactions:G}}[Symbol.iterator](){let t=0,r=this.transactions;return{next:()=>t<this.length?{value:r[t++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#e.length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(t){let r;if(typeof t=="number")r=this.#e[t];else{let i=t.toLowerCase();for(let n of this.#e)if(typeof n=="string"){if(n!==i)continue;r=n;break}else{if(n.hash===i)continue;r=n;break}}if(r==null)throw new Error("no such tx");return typeof r=="string"?await this.provider.getTransaction(r):r}getPrefetchedTransaction(t){let r=this.prefetchedTransactions;if(typeof t=="number")return r[t];t=t.toLowerCase();for(let i of r)if(i.hash===t)return i;_r(!1,"no matching transaction","indexOrHash",t)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return ijt(this)}},ig=class{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(t,r){this.provider=r;let i=Object.freeze(t.topics.slice());Un(this,{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,removed:t.removed,address:t.address,data:t.data,topics:i,index:t.index,transactionIndex:t.transactionIndex})}toJSON(){let{address:t,blockHash:r,blockNumber:i,data:n,index:o,removed:d,topics:g,transactionHash:y,transactionIndex:_}=this;return{_type:"log",address:t,blockHash:r,blockNumber:i,data:n,index:o,removed:d,topics:g,transactionHash:y,transactionIndex:_}}async getBlock(){let t=await this.provider.getBlock(this.blockHash);return Xr(!!t,"failed to find transaction","UNKNOWN_ERROR",{}),t}async getTransaction(){let t=await this.provider.getTransaction(this.transactionHash);return Xr(!!t,"failed to find transaction","UNKNOWN_ERROR",{}),t}async getTransactionReceipt(){let t=await this.provider.getTransactionReceipt(this.transactionHash);return Xr(!!t,"failed to find transaction receipt","UNKNOWN_ERROR",{}),t}removedEvent(){return ojt(this)}},LR=class{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#e;constructor(t,r){this.#e=Object.freeze(t.logs.map(n=>new ig(n,r)));let i=ast;t.effectiveGasPrice!=null?i=t.effectiveGasPrice:t.gasPrice!=null&&(i=t.gasPrice),Un(this,{provider:r,to:t.to,from:t.from,contractAddress:t.contractAddress,hash:t.hash,index:t.index,blockHash:t.blockHash,blockNumber:t.blockNumber,logsBloom:t.logsBloom,gasUsed:t.gasUsed,cumulativeGasUsed:t.cumulativeGasUsed,blobGasUsed:t.blobGasUsed,gasPrice:i,blobGasPrice:t.blobGasPrice,type:t.type,status:t.status,root:t.root})}get logs(){return this.#e}toJSON(){let{to:t,from:r,contractAddress:i,hash:n,index:o,blockHash:d,blockNumber:g,logsBloom:y,logs:_,status:I,root:N}=this;return{_type:"TransactionReceipt",blockHash:d,blockNumber:g,contractAddress:i,cumulativeGasUsed:Dd(this.cumulativeGasUsed),from:r,gasPrice:Dd(this.gasPrice),blobGasUsed:Dd(this.blobGasUsed),blobGasPrice:Dd(this.blobGasPrice),gasUsed:Dd(this.gasUsed),hash:n,index:o,logs:_,logsBloom:y,root:N,status:I,to:t}}get length(){return this.logs.length}[Symbol.iterator](){let t=0;return{next:()=>t<this.length?{value:this.logs[t++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){let t=await this.provider.getBlock(this.blockHash);if(t==null)throw new Error("TODO");return t}async getTransaction(){let t=await this.provider.getTransaction(this.hash);if(t==null)throw new Error("TODO");return t}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return cst(this)}reorderedEvent(t){return Xr(!t||t.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),sst(this,t)}},Hb=class e{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;#e;constructor(t,r){this.provider=r,this.blockNumber=t.blockNumber!=null?t.blockNumber:null,this.blockHash=t.blockHash!=null?t.blockHash:null,this.hash=t.hash,this.index=t.index,this.type=t.type,this.from=t.from,this.to=t.to||null,this.gasLimit=t.gasLimit,this.nonce=t.nonce,this.data=t.data,this.value=t.value,this.gasPrice=t.gasPrice,this.maxPriorityFeePerGas=t.maxPriorityFeePerGas!=null?t.maxPriorityFeePerGas:null,this.maxFeePerGas=t.maxFeePerGas!=null?t.maxFeePerGas:null,this.maxFeePerBlobGas=t.maxFeePerBlobGas!=null?t.maxFeePerBlobGas:null,this.chainId=t.chainId,this.signature=t.signature,this.accessList=t.accessList!=null?t.accessList:null,this.blobVersionedHashes=t.blobVersionedHashes!=null?t.blobVersionedHashes:null,this.#e=-1}toJSON(){let{blockNumber:t,blockHash:r,index:i,hash:n,type:o,to:d,from:g,nonce:y,data:_,signature:I,accessList:N,blobVersionedHashes:T}=this;return{_type:"TransactionResponse",accessList:N,blockNumber:t,blockHash:r,blobVersionedHashes:T,chainId:Dd(this.chainId),data:_,from:g,gasLimit:Dd(this.gasLimit),gasPrice:Dd(this.gasPrice),hash:n,maxFeePerGas:Dd(this.maxFeePerGas),maxPriorityFeePerGas:Dd(this.maxPriorityFeePerGas),maxFeePerBlobGas:Dd(this.maxFeePerBlobGas),nonce:y,signature:I,to:d,index:i,type:o,value:Dd(this.value)}}async getBlock(){let t=this.blockNumber;if(t==null){let i=await this.getTransaction();i&&(t=i.blockNumber)}if(t==null)return null;let r=this.provider.getBlock(t);if(r==null)throw new Error("TODO");return r}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){let{tx:r,blockNumber:i}=await Pu({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return r==null||r.blockNumber==null?0:i-r.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(t,r){let i=t??1,n=r??0,o=this.#e,d=-1,g=o===-1,y=async()=>{if(g)return null;let{blockNumber:T,nonce:M}=await Pu({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(M<this.nonce){o=T;return}if(g)return null;let D=await this.getTransaction();if(!(D&&D.blockNumber!=null))for(d===-1&&(d=o-3,d<this.#e&&(d=this.#e));d<=T;){if(g)return null;let P=await this.provider.getBlock(d,!0);if(P==null)return;for(let G of P)if(G===this.hash)return;for(let G=0;G<P.length;G++){let q=await P.getTransaction(G);if(q.from===this.from&&q.nonce===this.nonce){if(g)return null;let Y=await this.provider.getTransactionReceipt(q.hash);if(Y==null||T-Y.blockNumber+1<i)return;let ne="replaced";q.data===this.data&&q.to===this.to&&q.value===this.value?ne="repriced":q.data==="0x"&&q.from===q.to&&q.value===ast&&(ne="cancelled"),Xr(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:ne==="replaced"||ne==="cancelled",reason:ne,replacement:q.replaceableTransaction(o),hash:q.hash,receipt:Y})}}d++}},_=T=>{if(T==null||T.status!==0)return T;Xr(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:T.to,from:T.from,data:""},receipt:T})},I=await this.provider.getTransactionReceipt(this.hash);if(i===0)return _(I);if(I){if(await I.confirmations()>=i)return _(I)}else if(await y(),i===0)return null;return await new Promise((T,M)=>{let D=[],P=()=>{D.forEach(q=>q())};if(D.push(()=>{g=!0}),n>0){let q=setTimeout(()=>{P(),M(wc("wait for transaction timeout","TIMEOUT"))},n);D.push(()=>{clearTimeout(q)})}let G=async q=>{if(await q.confirmations()>=i){P();try{T(_(q))}catch(Y){M(Y)}}};if(D.push(()=>{this.provider.off(this.hash,G)}),this.provider.on(this.hash,G),o>=0){let q=async()=>{try{await y()}catch(Y){if(Tc(Y,"TRANSACTION_REPLACED")){P(),M(Y);return}}g||this.provider.once("block",q)};D.push(()=>{this.provider.off("block",q)}),this.provider.once("block",q)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return Xr(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),cst(this)}reorderedEvent(t){return Xr(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Xr(!t||t.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),sst(this,t)}replaceableTransaction(t){_r(Number.isInteger(t)&&t>=0,"invalid startBlock","startBlock",t);let r=new e(this,this.provider);return r.#e=t,r}};function ijt(e){return{orphan:"drop-block",hash:e.hash,number:e.number}}function sst(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function cst(e){return{orphan:"drop-transaction",tx:e}}function ojt(e){return{orphan:"drop-log",log:{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}}}J();K();z();var UR=class extends ig{interface;fragment;args;constructor(t,r,i){super(t,t.provider);let n=r.decodeEventLog(i,t.data,t.topics);Un(this,{args:n,fragment:i,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}},WI=class extends ig{error;constructor(t,r){super(t,t.provider),Un(this,{error:r})}},Yx=class extends LR{#e;constructor(t,r,i){super(i,r),this.#e=t}get logs(){return super.logs.map(t=>{let r=t.topics.length?this.#e.getEvent(t.topics[0]):null;if(r)try{return new UR(t,this.#e,r)}catch(i){return new WI(t,i)}return t})}},FR=class extends Hb{#e;constructor(t,r,i){super(i,r),this.#e=t}async wait(t,r){let i=await super.wait(t,r);return i==null?null:new Yx(this.#e,this.provider,i)}},XI=class extends IR{log;constructor(t,r,i,n){super(t,r,i),Un(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}},tw=class extends XI{constructor(t,r,i,n,o){super(t,r,i,new UR(o,t.interface,n));let d=t.interface.decodeEventLog(n,this.log.data,this.log.topics);Un(this,{args:d,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}};var ust=BigInt(0);function fst(e){return e&&typeof e.call=="function"}function lst(e){return e&&typeof e.estimateGas=="function"}function cY(e){return e&&typeof e.resolveName=="function"}function hst(e){return e&&typeof e.sendTransaction=="function"}function Ast(e){if(e!=null){if(cY(e))return e;if(e.provider)return e.provider}}var Q1e=class{#e;fragment;constructor(t,r,i){if(Un(this,{fragment:r}),r.inputs.length<i.length)throw new Error("too many arguments");let n=nw(t.runner,"resolveName"),o=cY(n)?n:null;this.#e=(async function(){let d=await Promise.all(r.inputs.map((g,y)=>i[y]==null?null:g.walkAsync(i[y],(I,N)=>I==="address"?Array.isArray(N)?Promise.all(N.map(T=>r0(T,o))):r0(N,o):N)));return t.interface.encodeFilterTopics(r,d)})()}getTopicFilter(){return this.#e}};function nw(e,t){return e==null?null:typeof e[t]=="function"?e:e.provider&&typeof e.provider[t]=="function"?e.provider:null}function rw(e){return e==null?null:e.provider||null}async function uY(e,t){let r=lu.dereference(e,"overrides");_r(typeof r=="object","invalid overrides parameter","overrides",e);let i=Gb(r);return _r(i.to==null||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",i.to),_r(i.data==null||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",i.data),i.from&&(i.from=i.from),i}async function q1e(e,t,r){let i=nw(e,"resolveName"),n=cY(i)?i:null;return await Promise.all(t.map((o,d)=>o.walkAsync(r[d],(g,y)=>(y=lu.dereference(y,g),g==="address"?r0(y,n):y))))}function ajt(e){let t=async function(d){let g=await uY(d,["data"]);g.to=await e.getAddress(),g.from&&(g.from=await r0(g.from,Ast(e.runner)));let y=e.interface,_=gi(g.value||ust,"overrides.value")===ust,I=(g.data||"0x")==="0x";y.fallback&&!y.fallback.payable&&y.receive&&!I&&!_&&_r(!1,"cannot send data to receive or send value to non-payable fallback","overrides",d),_r(y.fallback||I,"cannot send data to receive-only contract","overrides.data",g.data);let N=y.receive||y.fallback&&y.fallback.payable;return _r(N||_,"cannot send value to non-payable fallback","overrides.value",g.value),_r(y.fallback||I,"cannot send data to receive-only contract","overrides.data",g.data),g},r=async function(d){let g=nw(e.runner,"call");Xr(fst(g),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let y=await t(d);try{return await g.call(y)}catch(_){throw BI(_)&&_.data?e.interface.makeError(_.data,y):_}},i=async function(d){let g=e.runner;Xr(hst(g),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let y=await g.sendTransaction(await t(d)),_=rw(e.runner);return new FR(e.interface,_,y)},n=async function(d){let g=nw(e.runner,"estimateGas");return Xr(lst(g),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await g.estimateGas(await t(d))},o=async d=>await i(d);return Un(o,{_contract:e,estimateGas:n,populateTransaction:t,send:i,staticCall:r}),o}function sjt(e,t){let r=function(..._){let I=e.interface.getFunction(t,_);return Xr(I,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:_}}),I},i=async function(..._){let I=r(..._),N={};if(I.inputs.length+1===_.length&&(N=await uY(_.pop()),N.from&&(N.from=await r0(N.from,Ast(e.runner)))),I.inputs.length!==_.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");let T=await q1e(e.runner,I.inputs,_);return Object.assign({},N,await Pu({to:e.getAddress(),data:e.interface.encodeFunctionData(I,T)}))},n=async function(..._){let I=await g(..._);return I.length===1?I[0]:I},o=async function(..._){let I=e.runner;Xr(hst(I),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let N=await I.sendTransaction(await i(..._)),T=rw(e.runner);return new FR(e.interface,T,N)},d=async function(..._){let I=nw(e.runner,"estimateGas");return Xr(lst(I),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await I.estimateGas(await i(..._))},g=async function(..._){let I=nw(e.runner,"call");Xr(fst(I),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let N=await i(..._),T="0x";try{T=await I.call(N)}catch(D){throw BI(D)&&D.data?e.interface.makeError(D.data,N):D}let M=r(..._);return e.interface.decodeFunctionResult(M,T)},y=async(..._)=>r(..._).constant?await n(..._):await o(..._);return Un(y,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:d,populateTransaction:i,send:o,staticCall:n,staticCallResult:g}),Object.defineProperty(y,"fragment",{configurable:!1,enumerable:!0,get:()=>{let _=e.interface.getFunction(t);return Xr(_,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),_}}),y}function cjt(e,t){let r=function(...n){let o=e.interface.getEvent(t,n);return Xr(o,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:n}}),o},i=function(...n){return new Q1e(e,r(...n),n)};return Un(i,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:r}),Object.defineProperty(i,"fragment",{configurable:!1,enumerable:!0,get:()=>{let n=e.interface.getEvent(t);return Xr(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),i}var sY=Symbol.for("_ethersInternal_contract"),pst=new WeakMap;function ujt(e,t){pst.set(e[sY],t)}function og(e){return pst.get(e[sY])}function djt(e){return e&&typeof e=="object"&&"getTopicFilter"in e&&typeof e.getTopicFilter=="function"&&e.fragment}async function V1e(e,t){let r,i=null;if(Array.isArray(t)){let o=function(d){if(ns(d,32))return d;let g=e.interface.getEvent(d);return _r(g,"unknown fragment","name",d),g.topicHash};r=t.map(d=>d==null?null:Array.isArray(d)?d.map(o):o(d))}else t==="*"?r=[null]:typeof t=="string"?ns(t,32)?r=[t]:(i=e.interface.getEvent(t),_r(i,"unknown fragment","event",t),r=[i.topicHash]):djt(t)?r=await t.getTopicFilter():"fragment"in t?(i=t.fragment,r=[i.topicHash]):_r(!1,"unknown event name","event",t);r=r.map(o=>{if(o==null)return null;if(Array.isArray(o)){let d=Array.from(new Set(o.map(g=>g.toLowerCase())).values());return d.length===1?d[0]:(d.sort(),d)}return o.toLowerCase()});let n=r.map(o=>o==null?"null":Array.isArray(o)?o.join("|"):o).join("&");return{fragment:i,tag:n,topics:r}}async function vL(e,t){let{subs:r}=og(e);return r.get((await V1e(e,t)).tag)||null}async function dst(e,t,r){let i=rw(e.runner);Xr(i,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:n,tag:o,topics:d}=await V1e(e,r),{addr:g,subs:y}=og(e),_=y.get(o);if(!_){let N={address:g||e,topics:d},T=G=>{let q=n;if(q==null)try{q=e.interface.getEvent(G.topics[0])}catch{}if(q){let Y=q,ne=n?e.interface.decodeEventLog(n,G.data,G.topics):[];G1e(e,r,ne,ce=>new tw(e,ce,r,Y,G))}else G1e(e,r,[],Y=>new XI(e,Y,r,G))},M=[];_={tag:o,listeners:[],start:()=>{M.length||M.push(i.on(N,T))},stop:async()=>{if(M.length==0)return;let G=M;M=[],await Promise.all(G),i.off(N,T)}},y.set(o,_)}return _}var H1e=Promise.resolve();async function fjt(e,t,r,i){await H1e;let n=await vL(e,t);if(!n)return!1;let o=n.listeners.length;return n.listeners=n.listeners.filter(({listener:d,once:g})=>{let y=Array.from(r);i&&y.push(i(g?null:d));try{d.call(e,...y)}catch{}return!g}),n.listeners.length===0&&(n.stop(),og(e).subs.delete(n.tag)),o>0}async function G1e(e,t,r,i){try{await H1e}catch{}let n=fjt(e,t,r,i);return H1e=n,await n}var aY=["then"],QR=class e{target;interface;runner;filters;[sY];fallback;constructor(t,r,i,n){_r(typeof t=="string"||Qx(t),"invalid value for Contract target","target",t),i==null&&(i=null);let o=PR.from(r);Un(this,{target:t,runner:i,interface:o}),Object.defineProperty(this,sY,{value:{}});let d,g=null,y=null;if(n){let N=rw(i);y=new FR(this.interface,N,n)}let _=new Map;if(typeof t=="string")if(ns(t))g=t,d=Promise.resolve(t);else{let N=nw(i,"resolveName");if(!cY(N))throw wc("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});d=N.resolveName(t).then(T=>{if(T==null)throw wc("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:t});return og(this).addr=T,T})}else d=t.getAddress().then(N=>{if(N==null)throw new Error("TODO");return og(this).addr=N,N});ujt(this,{addrPromise:d,addr:g,deployTx:y,subs:_});let I=new Proxy({},{get:(N,T,M)=>{if(typeof T=="symbol"||aY.indexOf(T)>=0)return Reflect.get(N,T,M);try{return this.getEvent(T)}catch(D){if(!Tc(D,"INVALID_ARGUMENT")||D.argument!=="key")throw D}},has:(N,T)=>aY.indexOf(T)>=0?Reflect.has(N,T):Reflect.has(N,T)||this.interface.hasEvent(String(T))});return Un(this,{filters:I}),Un(this,{fallback:o.receive||o.fallback?ajt(this):null}),new Proxy(this,{get:(N,T,M)=>{if(typeof T=="symbol"||T in N||aY.indexOf(T)>=0)return Reflect.get(N,T,M);try{return N.getFunction(T)}catch(D){if(!Tc(D,"INVALID_ARGUMENT")||D.argument!=="key")throw D}},has:(N,T)=>typeof T=="symbol"||T in N||aY.indexOf(T)>=0?Reflect.has(N,T):N.interface.hasFunction(T)})}connect(t){return new e(this.target,this.interface,t)}attach(t){return new e(t,this.interface,this.runner)}async getAddress(){return await og(this).addrPromise}async getDeployedCode(){let t=rw(this.runner);Xr(t,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let r=await t.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){let t=this.deploymentTransaction();if(t)return await t.wait(),this;if(await this.getDeployedCode()!=null)return this;let i=rw(this.runner);return Xr(i!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((n,o)=>{let d=async()=>{try{if(await this.getDeployedCode()!=null)return n(this);i.once("block",d)}catch(g){o(g)}};d()})}deploymentTransaction(){return og(this).deployTx}getFunction(t){return typeof t!="string"&&(t=t.format()),sjt(this,t)}getEvent(t){return typeof t!="string"&&(t=t.format()),cjt(this,t)}async queryTransaction(t){throw new Error("@TODO")}async queryFilter(t,r,i){r==null&&(r=0),i==null&&(i="latest");let{addr:n,addrPromise:o}=og(this),d=n||await o,{fragment:g,topics:y}=await V1e(this,t),_={address:d,topics:y,fromBlock:r,toBlock:i},I=rw(this.runner);return Xr(I,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await I.getLogs(_)).map(N=>{let T=g;if(T==null)try{T=this.interface.getEvent(N.topics[0])}catch{}if(T)try{return new UR(N,this.interface,T)}catch(M){return new WI(N,M)}return new ig(N,I)})}async on(t,r){let i=await dst(this,"on",t);return i.listeners.push({listener:r,once:!1}),i.start(),this}async once(t,r){let i=await dst(this,"once",t);return i.listeners.push({listener:r,once:!0}),i.start(),this}async emit(t,...r){return await G1e(this,t,r,null)}async listenerCount(t){if(t){let n=await vL(this,t);return n?n.listeners.length:0}let{subs:r}=og(this),i=0;for(let{listeners:n}of r.values())i+=n.length;return i}async listeners(t){if(t){let n=await vL(this,t);return n?n.listeners.map(({listener:o})=>o):[]}let{subs:r}=og(this),i=[];for(let{listeners:n}of r.values())i=i.concat(n.map(({listener:o})=>o));return i}async off(t,r){let i=await vL(this,t);if(!i)return this;if(r){let n=i.listeners.map(({listener:o})=>o).indexOf(r);n>=0&&i.listeners.splice(n,1)}return(r==null||i.listeners.length===0)&&(i.stop(),og(this).subs.delete(i.tag)),this}async removeAllListeners(t){if(t){let r=await vL(this,t);if(!r)return this;r.stop(),og(this).subs.delete(r.tag)}else{let{subs:r}=og(this);for(let{tag:i,stop:n}of r.values())n(),r.delete(i)}return this}async addListener(t,r){return await this.on(t,r)}async removeListener(t,r){return await this.off(t,r)}static buildClass(t){class r extends e{constructor(n,o=null){super(n,t,o)}}return r}static from(t,r,i){return i==null&&(i=null),new this(t,r,i)}};function ljt(){return QR}var Vp=class extends ljt(){};J();K();z();var RL=class e{interface;bytecode;runner;constructor(t,r,i){let n=PR.from(t);r instanceof Uint8Array?r=vn(Dn(r)):(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r),r=vn(Dn(r))),Un(this,{bytecode:r,interface:n,runner:i||null})}attach(t){return new QR(t,this.interface,this.runner)}async getDeployTransaction(...t){let r={},i=this.interface.deploy;if(i.inputs.length+1===t.length&&(r=await uY(t.pop())),i.inputs.length!==t.length)throw new Error("incorrect number of arguments to constructor");let n=await q1e(this.runner,i.inputs,t),o=Jo([this.bytecode,this.interface.encodeDeploy(n)]);return Object.assign({},r,{data:o})}async deploy(...t){let r=await this.getDeployTransaction(...t);Xr(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let i=await this.runner.sendTransaction(r),n=KC(i);return new QR(n,this.interface,this.runner,i)}connect(t){return new e(this.interface,this.bytecode,t)}static fromSolidity(t,r){_r(t!=null,"bad compiler output","output",t),typeof t=="string"&&(t=JSON.parse(t));let i=t.abi,n="";return t.bytecode?n=t.bytecode:t.evm&&t.evm.bytecode&&(n=t.evm.bytecode),new this(i,n,r)}};J();K();z();J();K();z();J();K();z();function J1e(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):_r(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}var Wx=class{name;constructor(t){Un(this,{name:t})}connect(t){return this}supportsCoinType(t){return!1}async encodeAddress(t,r){throw new Error("unsupported coin")}async decodeAddress(t,r){throw new Error("unsupported coin")}};var _st=new RegExp("^(ipfs)://(.*)$","i"),gst=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),_st,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")],ZI=class e{provider;address;name;#e;#t;constructor(t,r,i){Un(this,{provider:t,address:r,name:i}),this.#e=null,this.#t=new Vp(r,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],t)}async supportsWildcard(){return this.#e==null&&(this.#e=(async()=>{try{return await this.#t.supportsInterface("0x9061b923")}catch(t){if(Tc(t,"CALL_EXCEPTION"))return!1;throw this.#e=null,t}})()),await this.#e}async#r(t,r){r=(r||[]).slice();let i=this.#t.interface;r.unshift(JI(this.name));let n=null;await this.supportsWildcard()&&(n=i.getFunction(t),Xr(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:t}}),r=[mL(this.name,255),i.encodeFunctionData(n,r)],t="resolve(bytes,bytes)"),r.push({enableCcipRead:!0});try{let o=await this.#t[t](...r);return n?i.decodeFunctionResult(n,o)[0]:o}catch(o){if(!Tc(o,"CALL_EXCEPTION"))throw o}return null}async getAddress(t){if(t==null&&(t=60),t===60)try{let o=await this.#r("addr(bytes32)");return o==null||o===ry?null:o}catch(o){if(Tc(o,"CALL_EXCEPTION"))return null;throw o}if(t>=0&&t<2147483648){let o=t+2147483648,d=await this.#r("addr(bytes32,uint)",[o]);if(ns(d,20))return Co(d)}let r=null;for(let o of this.provider.plugins)if(o instanceof Wx&&o.supportsCoinType(t)){r=o;break}if(r==null)return null;let i=await this.#r("addr(bytes32,uint)",[t]);if(i==null||i==="0x")return null;let n=await r.decodeAddress(t,i);if(n!=null)return n;Xr(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:i}})}async getText(t){let r=await this.#r("text(bytes32,string)",[t]);return r==null||r==="0x"?null:r}async getContentHash(){let t=await this.#r("contenthash(bytes32)");if(t==null||t==="0x")return null;let r=t.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let n=r[1]==="e3010170"?"ipfs":"ipns",o=parseInt(r[4],16);if(r[5].length===o*2)return`${n}://${UC("0x"+r[2])}`}let i=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(i&&i[1].length===64)return`bzz://${i[1]}`;Xr(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:t}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let t=[{type:"name",value:this.name}];try{let r=await this.getText("avatar");if(r==null)return t.push({type:"!avatar",value:""}),{url:null,linkage:t};t.push({type:"avatar",value:r});for(let i=0;i<gst.length;i++){let n=r.match(gst[i]);if(n==null)continue;let o=n[1].toLowerCase();switch(o){case"https":case"data":return t.push({type:"url",value:r}),{linkage:t,url:r};case"ipfs":{let d=J1e(r);return t.push({type:"ipfs",value:r}),t.push({type:"url",value:d}),{linkage:t,url:d}}case"erc721":case"erc1155":{let d=o==="erc721"?"tokenURI(uint256)":"uri(uint256)";t.push({type:o,value:r});let g=await this.getAddress();if(g==null)return t.push({type:"!owner",value:""}),{url:null,linkage:t};let y=(n[2]||"").split("/");if(y.length!==2)return t.push({type:`!${o}caip`,value:n[2]||""}),{url:null,linkage:t};let _=y[1],I=new Vp(y[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(o==="erc721"){let P=await I.ownerOf(_);if(g!==P)return t.push({type:"!owner",value:P}),{url:null,linkage:t};t.push({type:"owner",value:P})}else if(o==="erc1155"){let P=await I.balanceOf(g,_);if(!P)return t.push({type:"!balance",value:"0"}),{url:null,linkage:t};t.push({type:"balance",value:P.toString()})}let N=await I[d](_);if(N==null||N==="0x")return t.push({type:"!metadata-url",value:""}),{url:null,linkage:t};t.push({type:"metadata-url-base",value:N}),o==="erc1155"&&(N=N.replace("{id}",gl(_,32).substring(2)),t.push({type:"metadata-url-expanded",value:N})),N.match(/^ipfs:/i)&&(N=J1e(N)),t.push({type:"metadata-url",value:N});let T={},M=await new jc(N).send();M.assertOk();try{T=M.bodyJson}catch{try{t.push({type:"!metadata",value:M.bodyText})}catch{let q=M.body;return q&&t.push({type:"!metadata",value:vn(q)}),{url:null,linkage:t}}return{url:null,linkage:t}}if(!T)return t.push({type:"!metadata",value:""}),{url:null,linkage:t};t.push({type:"metadata",value:JSON.stringify(T)});let D=T.image;if(typeof D!="string")return t.push({type:"!imageUrl",value:""}),{url:null,linkage:t};if(!D.match(/^(https:\/\/|data:)/i)){if(D.match(_st)==null)return t.push({type:"!imageUrl-ipfs",value:D}),{url:null,linkage:t};t.push({type:"imageUrl-ipfs",value:D}),D=J1e(D)}return t.push({type:"url",value:D}),{linkage:t,url:D}}}}}catch{}return{linkage:t,url:null}}static async getEnsAddress(t){let r=await t.getNetwork(),i=r.getPlugin("org.ethers.plugins.network.Ens");return Xr(i,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:r}}),i.address}static async#n(t,r){let i=await e.getEnsAddress(t);try{let o=await new Vp(i,["function resolver(bytes32) view returns (address)"],t).resolver(JI(r),{enableCcipRead:!0});return o===ry?null:o}catch(n){throw n}return null}static async fromName(t,r){let i=r;for(;;){if(i===""||i==="."||r!=="eth"&&i==="eth")return null;let n=await e.#n(t,i);if(n!=null){let o=new e(t,n,r);return i!==r&&!await o.supportsWildcard()?null:o}i=i.split(".").slice(1).join(".")}}};J();K();z();var mst=BigInt(0);function Ys(e,t){return(function(r){return r==null?t:e(r)})}function dY(e,t){return(r=>{if(t&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(i=>e(i))})}function SL(e,t){return(r=>{let i={};for(let n in e){let o=n;if(t&&n in t&&!(o in r)){for(let d of t[n])if(d in r){o=d;break}}try{let d=e[n](r[o]);d!==void 0&&(i[n]=d)}catch(d){let g=d instanceof Error?d.message:"not-an-error";Xr(!1,`invalid value for value.${n} (${g})`,"BAD_DATA",{value:r})}}return i})}function hjt(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}_r(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function Xx(e){return _r(ns(e,!0),"invalid data","value",e),e}function oh(e){return _r(ns(e,32),"invalid hash","value",e),e}var Ajt=SL({address:Co,blockHash:oh,blockNumber:Zi,data:Xx,index:Zi,removed:Ys(hjt,!1),topics:dY(oh),transactionHash:oh,transactionIndex:Zi},{index:["logIndex"]});function yst(e){return Ajt(e)}var pjt=SL({hash:Ys(oh),parentHash:oh,parentBeaconBlockRoot:Ys(oh,null),number:Zi,timestamp:Zi,nonce:Ys(Xx),difficulty:gi,gasLimit:gi,gasUsed:gi,stateRoot:Ys(oh,null),receiptsRoot:Ys(oh,null),blobGasUsed:Ys(gi,null),excessBlobGas:Ys(gi,null),miner:Ys(Co),prevRandao:Ys(oh,null),extraData:Xx,baseFeePerGas:Ys(gi)},{prevRandao:["mixHash"]});function bst(e){let t=pjt(e);return t.transactions=e.transactions.map(r=>typeof r=="string"?r:z1e(r)),t}var gjt=SL({transactionIndex:Zi,blockNumber:Zi,transactionHash:oh,address:Co,topics:dY(oh),data:Xx,index:Zi,blockHash:oh},{index:["logIndex"]});function _jt(e){return gjt(e)}var mjt=SL({to:Ys(Co,null),from:Ys(Co,null),contractAddress:Ys(Co,null),index:Zi,root:Ys(vn),gasUsed:gi,blobGasUsed:Ys(gi,null),logsBloom:Ys(Xx),blockHash:oh,hash:oh,logs:dY(_jt),blockNumber:Zi,cumulativeGasUsed:gi,effectiveGasPrice:Ys(gi),blobGasPrice:Ys(gi,null),status:Ys(Zi),type:Ys(Zi,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Est(e){return mjt(e)}function z1e(e){e.to&&gi(e.to)===mst&&(e.to="0x0000000000000000000000000000000000000000");let t=SL({hash:oh,index:Ys(Zi,void 0),type:r=>r==="0x"||r==null?0:Zi(r),accessList:Ys(ih,null),blobVersionedHashes:Ys(dY(oh,!0),null),blockHash:Ys(oh,null),blockNumber:Ys(Zi,null),transactionIndex:Ys(Zi,null),from:Co,gasPrice:Ys(gi),maxPriorityFeePerGas:Ys(gi),maxFeePerGas:Ys(gi),maxFeePerBlobGas:Ys(gi,null),gasLimit:gi,to:Ys(Co,null),value:gi,nonce:Zi,data:Xx,creates:Ys(Co,null),chainId:Ys(gi,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(t.to==null&&t.creates==null&&(t.creates=KC(t)),(e.type===1||e.type===2)&&e.accessList==null&&(t.accessList=[]),e.signature?t.signature=th.from(e.signature):t.signature=th.from(e),t.chainId==null){let r=t.signature.legacyChainId;r!=null&&(t.chainId=r)}return t.blockHash&&gi(t.blockHash)===mst&&(t.blockHash=null),t}J();K();z();J();K();z();var yjt="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ay=class e{name;constructor(t){Un(this,{name:t})}clone(){return new e(this.name)}},jI=class e extends ay{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(t,r){t==null&&(t=0),super(`org.ethers.network.plugins.GasCost#${t||0}`);let i={effectiveBlock:t};function n(o,d){let g=(r||{})[o];g==null&&(g=d),_r(typeof g=="number",`invalud value for ${o}`,"costs",r),i[o]=g}n("txBase",21e3),n("txCreate",32e3),n("txDataZero",4),n("txDataNonzero",16),n("txAccessListStorageKey",1900),n("txAccessListAddress",2400),Un(this,i)}clone(){return new e(this.effectiveBlock,this)}},e3=class e extends ay{address;targetNetwork;constructor(t,r){super("org.ethers.plugins.network.Ens"),Un(this,{address:t||yjt,targetNetwork:r??1})}clone(){return new e(this.address,this.targetNetwork)}},IL=class e extends ay{#e;get feeDataFunc(){return this.#e}constructor(t){super("org.ethers.plugins.network.FeeData"),this.#e=t}async getFeeData(t){return await this.#e(t)}clone(){return new e(this.#e)}},iw=class extends ay{#e;#t;get url(){return this.#e}get processFunc(){return this.#t}constructor(t,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#e=t,this.#t=r}clone(){return this}};var K1e=new Map,Fs=class e{#e;#t;#r;constructor(t,r){this.#e=t,this.#t=gi(r),this.#r=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#e}set name(t){this.#e=t}get chainId(){return this.#t}set chainId(t){this.#t=gi(t,"chainId")}matches(t){if(t==null)return!1;if(typeof t=="string"){try{return this.chainId===gi(t)}catch{}return this.name===t}if(typeof t=="number"||typeof t=="bigint"){try{return this.chainId===gi(t)}catch{}return!1}if(typeof t=="object"){if(t.chainId!=null){try{return this.chainId===gi(t.chainId)}catch{}return!1}return t.name!=null?this.name===t.name:!1}return!1}get plugins(){return Array.from(this.#r.values())}attachPlugin(t){if(this.#r.get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return this.#r.set(t.name,t.clone()),this}getPlugin(t){return this.#r.get(t)||null}getPlugins(t){return this.plugins.filter(r=>r.name.split("#")[0]===t)}clone(){let t=new e(this.name,this.chainId);return this.plugins.forEach(r=>{t.attachPlugin(r.clone())}),t}computeIntrinsicGas(t){let r=this.getPlugin("org.ethers.plugins.network.GasCost")||new jI,i=r.txBase;if(t.to==null&&(i+=r.txCreate),t.data)for(let n=2;n<t.data.length;n+=2)t.data.substring(n,n+2)==="00"?i+=r.txDataZero:i+=r.txDataNonzero;if(t.accessList){let n=ih(t.accessList);for(let o in n)i+=r.txAccessListAddress+r.txAccessListStorageKey*n[o].storageKeys.length}return i}static from(t){if(bjt(),t==null)return e.from("mainnet");if(typeof t=="number"&&(t=BigInt(t)),typeof t=="string"||typeof t=="bigint"){let r=K1e.get(t);if(r)return r();if(typeof t=="bigint")return new e("unknown",t);_r(!1,"unknown network","network",t)}if(typeof t.clone=="function")return t.clone();if(typeof t=="object"){_r(typeof t.name=="string"&&typeof t.chainId=="number","invalid network object name or chainId","network",t);let r=new e(t.name,t.chainId);return(t.ensAddress||t.ensNetwork!=null)&&r.attachPlugin(new e3(t.ensAddress,t.ensNetwork)),r}_r(!1,"invalid network","network",t)}static register(t,r){typeof t=="number"&&(t=BigInt(t));let i=K1e.get(t);i&&_r(!1,`conflicting network for ${JSON.stringify(i.name)}`,"nameOrChainId",t),K1e.set(t,r)}};function vst(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);let i=r.split(".");if(i.length===1&&i.push(""),i.length!==2)throw new Error(`invalid gwei value: ${e}`);for(;i[1].length<t;)i[1]+="0";if(i[1].length>9){let n=BigInt(i[1].substring(0,9));i[1].substring(9).match(/^0+$/)||n++,i[1]=n.toString()}return BigInt(i[0]+i[1])}function Rst(e){return new iw(e,async(t,r,i)=>{i.setHeader("User-Agent","ethers");let n;try{let[o,d]=await Promise.all([i.send(),t()]);n=o;let g=n.bodyJson.standard;return{gasPrice:d.gasPrice,maxFeePerGas:vst(g.maxFee,9),maxPriorityFeePerGas:vst(g.maxPriorityFee,9)}}catch(o){Xr(!1,`error encountered with polygon gas station (${JSON.stringify(i.url)})`,"SERVER_ERROR",{request:i,response:n,error:o})}})}var Sst=!1;function bjt(){if(Sst)return;Sst=!0;function e(t,r,i){let n=function(){let o=new Fs(t,r);return i.ensNetwork!=null&&o.attachPlugin(new e3(null,i.ensNetwork)),o.attachPlugin(new jI),(i.plugins||[]).forEach(d=>{o.attachPlugin(d)}),o};Fs.register(t,n),Fs.register(r,n),i.altNames&&i.altNames.forEach(o=>{Fs.register(o,n)})}e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[Rst("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[Rst("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1})}J();K();z();function $1e(e){return JSON.parse(JSON.stringify(e))}var fY=class{#e;#t;#r;#n;constructor(t){this.#e=t,this.#t=null,this.#r=4e3,this.#n=-2}get pollingInterval(){return this.#r}set pollingInterval(t){this.#r=t}async#i(){try{let t=await this.#e.getBlockNumber();if(this.#n===-2){this.#n=t;return}if(t!==this.#n){for(let r=this.#n+1;r<=t;r++){if(this.#t==null)return;await this.#e.emit("block",r)}this.#n=t}}catch{}this.#t!=null&&(this.#t=this.#e._setTimeout(this.#i.bind(this),this.#r))}start(){this.#t||(this.#t=this.#e._setTimeout(this.#i.bind(this),this.#r),this.#i())}stop(){this.#t&&(this.#e._clearTimeout(this.#t),this.#t=null)}pause(t){this.stop(),t&&(this.#n=-2)}resume(){this.start()}},CL=class{#e;#t;#r;constructor(t){this.#e=t,this.#r=!1,this.#t=r=>{this._poll(r,this.#e)}}async _poll(t,r){throw new Error("sub-classes must override this")}start(){this.#r||(this.#r=!0,this.#t(-2),this.#e.on("block",this.#t))}stop(){this.#r&&(this.#r=!1,this.#e.off("block",this.#t))}pause(t){this.stop()}resume(){this.start()}},lY=class extends CL{#e;#t;constructor(t,r){super(t),this.#e=r,this.#t=-2}pause(t){t&&(this.#t=-2),super.pause(t)}async _poll(t,r){let i=await r.getBlock(this.#e);i!=null&&(this.#t===-2?this.#t=i.number:i.number>this.#t&&(r.emit(this.#e,i.number),this.#t=i.number))}},hY=class extends CL{#e;constructor(t,r){super(t),this.#e=$1e(r)}async _poll(t,r){throw new Error("@TODO")}},AY=class extends CL{#e;constructor(t,r){super(t),this.#e=r}async _poll(t,r){let i=await r.getTransactionReceipt(this.#e);i&&r.emit(this.#e,i)}},t3=class{#e;#t;#r;#n;#i;constructor(t,r){this.#e=t,this.#t=$1e(r),this.#r=this.#a.bind(this),this.#n=!1,this.#i=-2}async#a(t){if(this.#i===-2)return;let r=$1e(this.#t);r.fromBlock=this.#i+1,r.toBlock=t;let i=await this.#e.getLogs(r);if(i.length===0){this.#i<t-60&&(this.#i=t-60);return}for(let n of i)this.#e.emit(this.#t,n),this.#i=n.blockNumber}start(){this.#n||(this.#n=!0,this.#i===-2&&this.#e.getBlockNumber().then(t=>{this.#i=t}),this.#e.on("block",this.#r))}stop(){this.#n&&(this.#n=!1,this.#e.off("block",this.#r))}pause(t){this.stop(),t&&(this.#i=-2)}resume(){this.start()}};var Ejt=BigInt(2),vjt=10;function pY(e){return e&&typeof e.then=="function"}function gY(e,t){return e+":"+JSON.stringify(t,(r,i)=>{if(i==null)return"null";if(typeof i=="bigint")return`bigint:${i.toString()}`;if(typeof i=="string")return i.toLowerCase();if(typeof i=="object"&&!Array.isArray(i)){let n=Object.keys(i);return n.sort(),n.reduce((o,d)=>(o[d]=i[d],o),{})}return i})}var sy=class{name;constructor(t){Un(this,{name:t})}start(){}stop(){}pause(t){}resume(){}};function Rjt(e){return JSON.parse(JSON.stringify(e))}function X1e(e){return e=Array.from(new Set(e).values()),e.sort(),e}async function Y1e(e,t){if(e==null)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),typeof e=="string")switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if(ns(e,32)){let r=e.toLowerCase();return{type:"transaction",tag:gY("tx",{hash:r}),hash:r}}if(e.orphan){let r=e;return{type:"orphan",tag:gY("orphan",r),filter:Rjt(r)}}if(e.address||e.topics){let r=e,i={topics:(r.topics||[]).map(n=>n==null?null:Array.isArray(n)?X1e(n.map(o=>o.toLowerCase())):n.toLowerCase())};if(r.address){let n=[],o=[],d=g=>{ns(g)?n.push(g):o.push((async()=>{n.push(await r0(g,t))})())};Array.isArray(r.address)?r.address.forEach(d):d(r.address),o.length&&await Promise.all(o),i.address=X1e(n.map(g=>g.toLowerCase()))}return{filter:i,tag:gY("event",i),type:"event"}}_r(!1,"unknown ProviderEvent","event",e)}function W1e(){return new Date().getTime()}var Sjt={cacheTimeout:250,pollingInterval:4e3},U_=class{#e;#t;#r;#n;#i;#a;#o;#s;#f;#u;#A;#p;constructor(t,r){if(this.#p=Object.assign({},Sjt,r||{}),t==="any")this.#a=!0,this.#i=null;else if(t){let i=Fs.from(t);this.#a=!1,this.#i=Promise.resolve(i),setTimeout(()=>{this.emit("network",i,null)},0)}else this.#a=!1,this.#i=null;this.#s=-1,this.#o=new Map,this.#e=new Map,this.#t=new Map,this.#r=null,this.#n=!1,this.#f=1,this.#u=new Map,this.#A=!1}get pollingInterval(){return this.#p.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#t.values())}attachPlugin(t){if(this.#t.get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return this.#t.set(t.name,t.connect(this)),this}getPlugin(t){return this.#t.get(t)||null}get disableCcipRead(){return this.#A}set disableCcipRead(t){this.#A=!!t}async#c(t){let r=this.#p.cacheTimeout;if(r<0)return await this._perform(t);let i=gY(t.method,t),n=this.#o.get(i);return n||(n=this._perform(t),this.#o.set(i,n),setTimeout(()=>{this.#o.get(i)===n&&this.#o.delete(i)},r)),await n}async ccipReadFetch(t,r,i){if(this.disableCcipRead||i.length===0||t.to==null)return null;let n=t.to.toLowerCase(),o=r.toLowerCase(),d=[];for(let g=0;g<i.length;g++){let y=i[g],_=y.replace("{sender}",n).replace("{data}",o),I=new jc(_);y.indexOf("{data}")===-1&&(I.body={data:o,sender:n}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:I,index:g,urls:i});let N="unknown error",T=await I.send();try{let M=T.bodyJson;if(M.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:I,result:M}),M.data;M.message&&(N=M.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:I,result:M})}catch{}Xr(T.statusCode<400||T.statusCode>=500,`response not found during CCIP fetch: ${N}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:t,info:{url:y,errorMessage:N}}),d.push(N)}Xr(!1,`error encountered during CCIP fetch: ${d.map(g=>JSON.stringify(g)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:t,info:{urls:i,errorMessages:d}})}_wrapBlock(t,r){return new ew(bst(t),this)}_wrapLog(t,r){return new ig(yst(t),this)}_wrapTransactionReceipt(t,r){return new LR(Est(t),this)}_wrapTransactionResponse(t,r){return new Hb(z1e(t),this)}_detectNetwork(){Xr(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(t){Xr(!1,`unsupported method: ${t.method}`,"UNSUPPORTED_OPERATION",{operation:t.method,info:t})}async getBlockNumber(){let t=Zi(await this.#c({method:"getBlockNumber"}),"%response");return this.#s>=0&&(this.#s=t),t}_getAddress(t){return r0(t,this)}_getBlockTag(t){if(t==null)return"latest";switch(t){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return t}if(ns(t))return ns(t,32)?t:Gp(t);if(typeof t=="bigint"&&(t=Zi(t,"blockTag")),typeof t=="number")return t>=0?Gp(t):this.#s>=0?Gp(this.#s+t):this.getBlockNumber().then(r=>Gp(r+t));_r(!1,"invalid blockTag","blockTag",t)}_getFilter(t){let r=(t.topics||[]).map(y=>y==null?null:Array.isArray(y)?X1e(y.map(_=>_.toLowerCase())):y.toLowerCase()),i="blockHash"in t?t.blockHash:void 0,n=(y,_,I)=>{let N;switch(y.length){case 0:break;case 1:N=y[0];break;default:y.sort(),N=y}if(i&&(_!=null||I!=null))throw new Error("invalid filter");let T={};return N&&(T.address=N),r.length&&(T.topics=r),_&&(T.fromBlock=_),I&&(T.toBlock=I),i&&(T.blockHash=i),T},o=[];if(t.address)if(Array.isArray(t.address))for(let y of t.address)o.push(this._getAddress(y));else o.push(this._getAddress(t.address));let d;"fromBlock"in t&&(d=this._getBlockTag(t.fromBlock));let g;return"toBlock"in t&&(g=this._getBlockTag(t.toBlock)),o.filter(y=>typeof y!="string").length||d!=null&&typeof d!="string"||g!=null&&typeof g!="string"?Promise.all([Promise.all(o),d,g]).then(y=>n(y[0],y[1],y[2])):n(o,d,g)}_getTransactionRequest(t){let r=Gb(t),i=[];if(["to","from"].forEach(n=>{if(r[n]==null)return;let o=r0(r[n],this);pY(o)?i.push((async function(){r[n]=await o})()):r[n]=o}),r.blockTag!=null){let n=this._getBlockTag(r.blockTag);pY(n)?i.push((async function(){r.blockTag=await n})()):r.blockTag=n}return i.length?(async function(){return await Promise.all(i),r})():r}async getNetwork(){if(this.#i==null){let n=(async()=>{try{let o=await this._detectNetwork();return this.emit("network",o,null),o}catch(o){throw this.#i===n&&(this.#i=null),o}})();return this.#i=n,(await n).clone()}let t=this.#i,[r,i]=await Promise.all([t,this._detectNetwork()]);return r.chainId!==i.chainId&&(this.#a?(this.emit("network",i,r),this.#i===t&&(this.#i=Promise.resolve(i))):Xr(!1,`network changed: ${r.chainId} => ${i.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){let t=await this.getNetwork(),r=async()=>{let{_block:n,gasPrice:o,priorityFee:d}=await Pu({_block:this.#g("latest",!1),gasPrice:(async()=>{try{let I=await this.#c({method:"getGasPrice"});return gi(I,"%response")}catch{}return null})(),priorityFee:(async()=>{try{let I=await this.#c({method:"getPriorityFee"});return gi(I,"%response")}catch{}return null})()}),g=null,y=null,_=this._wrapBlock(n,t);return _&&_.baseFeePerGas&&(y=d??BigInt("1000000000"),g=_.baseFeePerGas*Ejt+y),new YI(o,g,y)},i=t.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(i){let n=new jc(i.url),o=await i.processFunc(r,this,n);return new YI(o.gasPrice,o.maxFeePerGas,o.maxPriorityFeePerGas)}return await r()}async estimateGas(t){let r=this._getTransactionRequest(t);return pY(r)&&(r=await r),gi(await this.#c({method:"estimateGas",transaction:r}),"%response")}async#d(t,r,i){Xr(i<vjt,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},t,{blockTag:r,enableCcipRead:!0})});let n=Gb(t);try{return vn(await this._perform({method:"call",transaction:n,blockTag:r}))}catch(o){if(!this.disableCcipRead&&BI(o)&&o.data&&i>=0&&r==="latest"&&n.to!=null&&tc(o.data,0,4)==="0x556f1830"){let d=o.data,g=await r0(n.to,this),y;try{y=Njt(tc(o.data,4))}catch(N){Xr(!1,N.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:n,info:{data:d}})}Xr(y.sender.toLowerCase()===g.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:d,reason:"OffchainLookup",transaction:n,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:y.errorArgs}});let _=await this.ccipReadFetch(n,y.calldata,y.urls);Xr(_!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:n,info:{data:o.data,errorArgs:y.errorArgs}});let I={to:g,data:Jo([y.selector,Ojt([_,y.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:I});try{let N=await this.#d(I,r,i+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},I),result:N}),N}catch(N){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},I),error:N}),N}}throw o}}async#l(t){let{value:r}=await Pu({network:this.getNetwork(),value:t});return r}async call(t){let{tx:r,blockTag:i}=await Pu({tx:this._getTransactionRequest(t),blockTag:this._getBlockTag(t.blockTag)});return await this.#l(this.#d(r,i,t.enableCcipRead?0:-1))}async#h(t,r,i){let n=this._getAddress(r),o=this._getBlockTag(i);return(typeof n!="string"||typeof o!="string")&&([n,o]=await Promise.all([n,o])),await this.#l(this.#c(Object.assign(t,{address:n,blockTag:o})))}async getBalance(t,r){return gi(await this.#h({method:"getBalance"},t,r),"%response")}async getTransactionCount(t,r){return Zi(await this.#h({method:"getTransactionCount"},t,r),"%response")}async getCode(t,r){return vn(await this.#h({method:"getCode"},t,r))}async getStorage(t,r,i){let n=gi(r,"position");return vn(await this.#h({method:"getStorage",position:n},t,i))}async broadcastTransaction(t){let{blockNumber:r,hash:i,network:n}=await Pu({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:t}),network:this.getNetwork()}),o=ng.from(t);if(o.hash!==i)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(o,n).replaceableTransaction(r)}async#g(t,r){if(ns(t,32))return await this.#c({method:"getBlock",blockHash:t,includeTransactions:r});let i=this._getBlockTag(t);return typeof i!="string"&&(i=await i),await this.#c({method:"getBlock",blockTag:i,includeTransactions:r})}async getBlock(t,r){let{network:i,params:n}=await Pu({network:this.getNetwork(),params:this.#g(t,!!r)});return n==null?null:this._wrapBlock(n,i)}async getTransaction(t){let{network:r,params:i}=await Pu({network:this.getNetwork(),params:this.#c({method:"getTransaction",hash:t})});return i==null?null:this._wrapTransactionResponse(i,r)}async getTransactionReceipt(t){let{network:r,params:i}=await Pu({network:this.getNetwork(),params:this.#c({method:"getTransactionReceipt",hash:t})});if(i==null)return null;if(i.gasPrice==null&&i.effectiveGasPrice==null){let n=await this.#c({method:"getTransaction",hash:t});if(n==null)throw new Error("report this; could not find tx or effectiveGasPrice");i.effectiveGasPrice=n.gasPrice}return this._wrapTransactionReceipt(i,r)}async getTransactionResult(t){let{result:r}=await Pu({network:this.getNetwork(),result:this.#c({method:"getTransactionResult",hash:t})});return r==null?null:vn(r)}async getLogs(t){let r=this._getFilter(t);pY(r)&&(r=await r);let{network:i,params:n}=await Pu({network:this.getNetwork(),params:this.#c({method:"getLogs",filter:r})});return n.map(o=>this._wrapLog(o,i))}_getProvider(t){Xr(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(t){return await ZI.fromName(this,t)}async getAvatar(t){let r=await this.getResolver(t);return r?await r.getAvatar():null}async resolveName(t){let r=await this.getResolver(t);return r?await r.getAddress():null}async lookupAddress(t){t=Co(t);let r=JI(t.substring(2).toLowerCase()+".addr.reverse");try{let i=await ZI.getEnsAddress(this),o=await new Vp(i,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(o==null||o===ry)return null;let g=await new Vp(o,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(g)!==t?null:g}catch(i){if(Tc(i,"BAD_DATA")&&i.value==="0x"||Tc(i,"CALL_EXCEPTION"))return null;throw i}return null}async waitForTransaction(t,r,i){let n=r??1;return n===0?this.getTransactionReceipt(t):new Promise(async(o,d)=>{let g=null,y=(async _=>{try{let I=await this.getTransactionReceipt(t);if(I!=null&&_-I.blockNumber+1>=n){o(I),g&&(clearTimeout(g),g=null);return}}catch(I){console.log("EEE",I)}this.once("block",y)});i!=null&&(g=setTimeout(()=>{g!=null&&(g=null,this.off("block",y),d(wc("timeout","TIMEOUT",{reason:"timeout"})))},i)),y(await this.getBlockNumber())})}async waitForBlock(t){Xr(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(t){let r=this.#u.get(t);r&&(r.timer&&clearTimeout(r.timer),this.#u.delete(t))}_setTimeout(t,r){r==null&&(r=0);let i=this.#f++,n=()=>{this.#u.delete(i),t()};if(this.paused)this.#u.set(i,{timer:null,func:n,time:r});else{let o=setTimeout(n,r);this.#u.set(i,{timer:o,func:n,time:W1e()})}return i}_forEachSubscriber(t){for(let r of this.#e.values())t(r.subscriber)}_getSubscriber(t){switch(t.type){case"debug":case"error":case"network":return new sy(t.type);case"block":{let r=new fY(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new lY(this,t.type);case"event":return new t3(this,t.filter);case"transaction":return new AY(this,t.hash);case"orphan":return new hY(this,t.filter)}throw new Error(`unsupported event: ${t.type}`)}_recoverSubscriber(t,r){for(let i of this.#e.values())if(i.subscriber===t){i.started&&i.subscriber.stop(),i.subscriber=r,i.started&&r.start(),this.#r!=null&&r.pause(this.#r);break}}async#_(t,r){let i=await Y1e(t,this);return i.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(i=await Y1e({orphan:"drop-log",log:r[0]},this)),this.#e.get(i.tag)||null}async#m(t){let r=await Y1e(t,this),i=r.tag,n=this.#e.get(i);return n||(n={subscriber:this._getSubscriber(r),tag:i,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#e.set(i,n)),n}async on(t,r){let i=await this.#m(t);return i.listeners.push({listener:r,once:!1}),i.started||(i.subscriber.start(),i.started=!0,this.#r!=null&&i.subscriber.pause(this.#r)),this}async once(t,r){let i=await this.#m(t);return i.listeners.push({listener:r,once:!0}),i.started||(i.subscriber.start(),i.started=!0,this.#r!=null&&i.subscriber.pause(this.#r)),this}async emit(t,...r){let i=await this.#_(t,r);if(!i||i.listeners.length===0)return!1;let n=i.listeners.length;return i.listeners=i.listeners.filter(({listener:o,once:d})=>{let g=new IR(this,d?null:o,t);try{o.call(this,...r,g)}catch{}return!d}),i.listeners.length===0&&(i.started&&i.subscriber.stop(),this.#e.delete(i.tag)),n>0}async listenerCount(t){if(t){let i=await this.#_(t);return i?i.listeners.length:0}let r=0;for(let{listeners:i}of this.#e.values())r+=i.length;return r}async listeners(t){if(t){let i=await this.#_(t);return i?i.listeners.map(({listener:n})=>n):[]}let r=[];for(let{listeners:i}of this.#e.values())r=r.concat(i.map(({listener:n})=>n));return r}async off(t,r){let i=await this.#_(t);if(!i)return this;if(r){let n=i.listeners.map(({listener:o})=>o).indexOf(r);n>=0&&i.listeners.splice(n,1)}return(!r||i.listeners.length===0)&&(i.started&&i.subscriber.stop(),this.#e.delete(i.tag)),this}async removeAllListeners(t){if(t){let{tag:r,started:i,subscriber:n}=await this.#m(t);i&&n.stop(),this.#e.delete(r)}else for(let[r,{started:i,subscriber:n}]of this.#e)i&&n.stop(),this.#e.delete(r);return this}async addListener(t,r){return await this.on(t,r)}async removeListener(t,r){return this.off(t,r)}get destroyed(){return this.#n}destroy(){this.removeAllListeners();for(let t of this.#u.keys())this._clearTimeout(t);this.#n=!0}get paused(){return this.#r!=null}set paused(t){!!t!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(t){if(this.#s=-1,this.#r!=null){if(this.#r==!!t)return;Xr(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(t)),this.#r=!!t;for(let r of this.#u.values())r.timer&&clearTimeout(r.timer),r.time=W1e()-r.time}resume(){if(this.#r!=null){this._forEachSubscriber(t=>t.resume()),this.#r=null;for(let t of this.#u.values()){let r=t.time;r<0&&(r=0),t.time=W1e(),setTimeout(t.func,r)}}}};function Ijt(e,t){try{let r=Z1e(e,t);if(r)return LA(r)}catch{}return null}function Z1e(e,t){if(e==="0x")return null;try{let r=Zi(tc(e,t,t+32)),i=Zi(tc(e,r,r+32));return tc(e,r+32,r+32+i)}catch{}return null}function Ist(e){let t=Yu(e);if(t.length>32)throw new Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function Cjt(e){if(e.length%32===0)return e;let t=new Uint8Array(Math.ceil(e.length/32)*32);return t.set(e),t}var wjt=new Uint8Array([]);function Ojt(e){let t=[],r=0;for(let i=0;i<e.length;i++)t.push(wjt),r+=32;for(let i=0;i<e.length;i++){let n=Dn(e[i]);t[i]=Ist(r),t.push(Ist(n.length)),t.push(Cjt(n)),r+=32+Math.ceil(n.length/32)*32}return Jo(t)}var Cst="0x0000000000000000000000000000000000000000000000000000000000000000";function Njt(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};Xr(Hp(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=tc(e,0,32);Xr(tc(r,0,12)===tc(Cst,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=tc(r,12);try{let i=[],n=Zi(tc(e,32,64)),o=Zi(tc(e,n,n+32)),d=tc(e,n+32);for(let g=0;g<o;g++){let y=Ijt(d,g*32);if(y==null)throw new Error("abort");i.push(y)}t.urls=i}catch{Xr(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{let i=Z1e(e,64);if(i==null)throw new Error("abort");t.calldata=i}catch{Xr(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}Xr(tc(e,100,128)===tc(Cst,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=tc(e,96,100);try{let i=Z1e(e,128);if(i==null)throw new Error("abort");t.extraData=i}catch{Xr(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(i=>t[i]),t}J();K();z();function Zx(e,t){if(e.provider)return e.provider;Xr(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function wst(e,t){let r=Gb(t);if(r.to!=null&&(r.to=r0(r.to,e)),r.from!=null){let i=r.from;r.from=Promise.all([e.getAddress(),r0(i,e)]).then(([n,o])=>(_r(n.toLowerCase()===o.toLowerCase(),"transaction from mismatch","tx.from",o),n))}else r.from=e.getAddress();return await Pu(r)}var F_=class{provider;constructor(t){Un(this,{provider:t||null})}async getNonce(t){return Zx(this,"getTransactionCount").getTransactionCount(await this.getAddress(),t)}async populateCall(t){return await wst(this,t)}async populateTransaction(t){let r=Zx(this,"populateTransaction"),i=await wst(this,t);i.nonce==null&&(i.nonce=await this.getNonce("pending")),i.gasLimit==null&&(i.gasLimit=await this.estimateGas(i));let n=await this.provider.getNetwork();if(i.chainId!=null){let d=gi(i.chainId);_r(d===n.chainId,"transaction chainId mismatch","tx.chainId",t.chainId)}else i.chainId=n.chainId;let o=i.maxFeePerGas!=null||i.maxPriorityFeePerGas!=null;if(i.gasPrice!=null&&(i.type===2||o)?_r(!1,"eip-1559 transaction do not support gasPrice","tx",t):(i.type===0||i.type===1)&&o&&_r(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",t),(i.type===2||i.type==null)&&i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)i.type=2;else if(i.type===0||i.type===1){let d=await r.getFeeData();Xr(d.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),i.gasPrice==null&&(i.gasPrice=d.gasPrice)}else{let d=await r.getFeeData();if(i.type==null)if(d.maxFeePerGas!=null&&d.maxPriorityFeePerGas!=null)if(i.type=2,i.gasPrice!=null){let g=i.gasPrice;delete i.gasPrice,i.maxFeePerGas=g,i.maxPriorityFeePerGas=g}else i.maxFeePerGas==null&&(i.maxFeePerGas=d.maxFeePerGas),i.maxPriorityFeePerGas==null&&(i.maxPriorityFeePerGas=d.maxPriorityFeePerGas);else d.gasPrice!=null?(Xr(!o,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),i.gasPrice==null&&(i.gasPrice=d.gasPrice),i.type=0):Xr(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(i.type===2||i.type===3)&&(i.maxFeePerGas==null&&(i.maxFeePerGas=d.maxFeePerGas),i.maxPriorityFeePerGas==null&&(i.maxPriorityFeePerGas=d.maxPriorityFeePerGas))}return await Pu(i)}async estimateGas(t){return Zx(this,"estimateGas").estimateGas(await this.populateCall(t))}async call(t){return Zx(this,"call").call(await this.populateCall(t))}async resolveName(t){return await Zx(this,"resolveName").resolveName(t)}async sendTransaction(t){let r=Zx(this,"sendTransaction"),i=await this.populateTransaction(t);delete i.from;let n=ng.from(i);return await r.broadcastTransaction(await this.signTransaction(n))}},ow=class e extends F_{address;constructor(t,r){super(r),Un(this,{address:t})}async getAddress(){return this.address}connect(t){return new e(this.address,t)}#e(t,r){Xr(!1,`VoidSigner cannot sign ${t}`,"UNSUPPORTED_OPERATION",{operation:r})}async signTransaction(t){this.#e("transactions","signTransaction")}async signMessage(t){this.#e("messages","signMessage")}async signTypedData(t,r,i){this.#e("typed-data","signTypedData")}};J();K();z();var Ost=new Set;function ah(e){Ost.has(e)||(Ost.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}J();K();z();J();K();z();J();K();z();J();K();z();function xjt(e){return JSON.parse(JSON.stringify(e))}var _Y=class{#e;#t;#r;#n;#i;#a;constructor(t){this.#e=t,this.#t=null,this.#r=this.#o.bind(this),this.#n=!1,this.#i=null,this.#a=!1}_subscribe(t){throw new Error("subclasses must override this")}_emitResults(t,r){throw new Error("subclasses must override this")}_recover(t){throw new Error("subclasses must override this")}async#o(t){try{this.#t==null&&(this.#t=this._subscribe(this.#e));let r=null;try{r=await this.#t}catch(o){if(!Tc(o,"UNSUPPORTED_OPERATION")||o.operation!=="eth_newFilter")throw o}if(r==null){this.#t=null,this.#e._recoverSubscriber(this,this._recover(this.#e));return}let i=await this.#e.getNetwork();if(this.#i||(this.#i=i),this.#i.chainId!==i.chainId)throw new Error("chaid changed");if(this.#a)return;let n=await this.#e.send("eth_getFilterChanges",[r]);await this._emitResults(this.#e,n)}catch(r){console.log("@TODO",r)}this.#e.once("block",this.#r)}#s(){let t=this.#t;t&&(this.#t=null,t.then(r=>{this.#e.destroyed||this.#e.send("eth_uninstallFilter",[r])}))}start(){this.#n||(this.#n=!0,this.#o(-2))}stop(){this.#n&&(this.#n=!1,this.#a=!0,this.#s(),this.#e.off("block",this.#r))}pause(t){t&&this.#s(),this.#e.off("block",this.#r)}resume(){this.start()}},mY=class extends _Y{#e;constructor(t,r){super(t),this.#e=xjt(r)}_recover(t){return new t3(t,this.#e)}async _subscribe(t){return await t.send("eth_newFilter",[this.#e])}async _emitResults(t,r){for(let i of r)t.emit(this.#e,t._wrapLog(i,t._network))}},yY=class extends _Y{async _subscribe(t){return await t.send("eth_newPendingTransactionFilter",[])}async _emitResults(t,r){for(let i of r)t.emit("pending",i)}};var Tjt="bigint,boolean,function,number,string,symbol".split(/,/g);function bY(e){if(e==null||Tjt.indexOf(typeof e)>=0||typeof e.getAddress=="function")return e;if(Array.isArray(e))return e.map(bY);if(typeof e=="object")return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function Bjt(e){return new Promise(t=>{setTimeout(t,e)})}function jx(e){return e&&e.toLowerCase()}function Nst(e){return e&&typeof e.pollingInterval=="number"}var Mjt={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3},r3=class extends F_{address;constructor(t,r){super(t),r=Co(r),Un(this,{address:r})}connect(t){Xr(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){let r=bY(t),i=[];if(r.from){let o=r.from;i.push((async()=>{let d=await r0(o,this.provider);_r(d!=null&&d.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),r.from=d})())}else r.from=this.address;if(r.gasLimit==null&&i.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){let o=r.to;i.push((async()=>{r.to=await r0(o,this.provider)})())}i.length&&await Promise.all(i);let n=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(t){let r=await this.provider.getBlockNumber(),i=await this.sendUncheckedTransaction(t);return await new Promise((n,o)=>{let d=[1e3,100],g=0,y=async()=>{try{let _=await this.provider.getTransaction(i);if(_!=null){n(_.replaceableTransaction(r));return}}catch(_){if(Tc(_,"CANCELLED")||Tc(_,"BAD_DATA")||Tc(_,"NETWORK_ERROR")){_.info==null&&(_.info={}),_.info.sendTransactionHash=i,o(_);return}if(Tc(_,"INVALID_ARGUMENT")&&(g++,_.info==null&&(_.info={}),_.info.sendTransactionHash=i,g>10)){o(_);return}this.provider.emit("error",wc("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:_}))}this.provider._setTimeout(()=>{y()},d.pop()||4e3)};y()})}async signTransaction(t){let r=bY(t);if(r.from){let n=await r0(r.from,this.provider);_r(n!=null&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),r.from=n}else r.from=this.address;let i=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[i])}async signMessage(t){let r=typeof t=="string"?rc(t):t;return await this.provider.send("personal_sign",[vn(r),this.address.toLowerCase()])}async signTypedData(t,r,i){let n=bY(i),o=await P_.resolveNames(t,r,n,async d=>{let g=await r0(d);return _r(g!=null,"TypedData does not support null address","value",d),g});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(P_.getPayload(o.domain,r,o.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){let r=typeof t=="string"?rc(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),vn(r)])}},n3=class extends U_{#e;#t;#r;#n;#i;#a;#o;#s(){if(this.#n)return;let t=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");this.#n=setTimeout(()=>{this.#n=null;let r=this.#r;for(this.#r=[];r.length;){let i=[r.shift()];for(;r.length&&i.length!==this.#e.batchMaxCount;)if(i.push(r.shift()),JSON.stringify(i.map(o=>o.payload)).length>this.#e.batchMaxSize){r.unshift(i.pop());break}(async()=>{let n=i.length===1?i[0].payload:i.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:n});try{let o=await this._send(n);this.emit("debug",{action:"receiveRpcResult",result:o});for(let{resolve:d,reject:g,payload:y}of i){if(this.destroyed){g(wc("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:y.method}));continue}let _=o.filter(I=>I.id===y.id)[0];if(_==null){let I=wc("missing response for request","BAD_DATA",{value:o,info:{payload:y}});this.emit("error",I),g(I);continue}if("error"in _){g(this.getRpcError(y,_));continue}d(_.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(let{reject:d}of i)d(o)}})()}},t)}constructor(t,r){super(t,r),this.#t=1,this.#e=Object.assign({},Mjt,r||{}),this.#r=[],this.#n=null,this.#a=null,this.#o=null;{let n=null,o=new Promise(d=>{n=d});this.#i={promise:o,resolve:n}}let i=this._getOption("staticNetwork");typeof i=="boolean"?(_r(!i||t!=="any","staticNetwork cannot be used on special network 'any'","options",r),i&&t!=null&&(this.#a=Fs.from(t))):i&&(_r(t==null||i.matches(t),"staticNetwork MUST match network object","options",r),this.#a=i)}_getOption(t){return this.#e[t]}get _network(){return Xr(this.#a,"network is not available yet","NETWORK_ERROR"),this.#a}async _perform(t){if(t.method==="call"||t.method==="estimateGas"){let i=t.transaction;if(i&&i.type!=null&&gi(i.type)&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){let n=await this.getFeeData();n.maxFeePerGas==null&&n.maxPriorityFeePerGas==null&&(t=Object.assign({},t,{transaction:Object.assign({},i,{type:void 0})}))}}let r=this.getRpcRequest(t);return r!=null?await this.send(r.method,r.args):super._perform(t)}async _detectNetwork(){let t=this._getOption("staticNetwork");if(t)if(t===!0){if(this.#a)return this.#a}else return t;return this.#o?await this.#o:this.ready?(this.#o=(async()=>{try{let r=Fs.from(gi(await this.send("eth_chainId",[])));return this.#o=null,r}catch(r){throw this.#o=null,r}})(),await this.#o):(this.#o=(async()=>{let r={id:this.#t++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let i;try{i=(await this._send(r))[0],this.#o=null}catch(n){throw this.#o=null,this.emit("debug",{action:"receiveRpcError",error:n}),n}if(this.emit("debug",{action:"receiveRpcResult",result:i}),"result"in i)return Fs.from(gi(i.result));throw this.getRpcError(r,i)})(),await this.#o)}_start(){this.#i==null||this.#i.resolve==null||(this.#i.resolve(),this.#i=null,(async()=>{for(;this.#a==null&&!this.destroyed;)try{this.#a=await this._detectNetwork()}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",wc("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await Bjt(1e3)}this.#s()})())}async _waitUntilReady(){if(this.#i!=null)return await this.#i.promise}_getSubscriber(t){return t.type==="pending"?new yY(this):t.type==="event"?this._getOption("polling")?new t3(this,t.filter):new mY(this,t.filter):t.type==="orphan"&&t.filter.orphan==="drop-log"?new sy("orphan"):super._getSubscriber(t)}get ready(){return this.#i==null}getRpcTransaction(t){let r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(i=>{if(t[i]==null)return;let n=i;i==="gasLimit"&&(n="gas"),r[n]=Gp(gi(t[i],`tx.${i}`))}),["from","to","data"].forEach(i=>{t[i]!=null&&(r[i]=vn(t[i]))}),t.accessList&&(r.accessList=ih(t.accessList)),r}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[jx(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[jx(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[jx(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[jx(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&t.filter.address!=null&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(jx):t.filter.address=jx(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,r){let{method:i}=t,{error:n}=r;if(i==="eth_estimateGas"&&n.message){let g=n.message;if(!g.match(/revert/i)&&g.match(/insufficient funds/i))return wc("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:n}})}if(i==="eth_call"||i==="eth_estimateGas"){let g=j1e(n),y=L_.getBuiltinCallException(i==="eth_call"?"call":"estimateGas",t.params[0],g?g.data:null);return y.info={error:n,payload:t},y}let o=JSON.stringify(Djt(n));if(typeof n.message=="string"&&n.message.match(/user denied|ethers-user-denied/i))return wc("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[i]||"unknown",reason:"rejected",info:{payload:t,error:n}});if(i==="eth_sendRawTransaction"||i==="eth_sendTransaction"){let g=t.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return wc("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:g,info:{error:n}});if(o.match(/nonce/i)&&o.match(/too low/i))return wc("nonce has already been used","NONCE_EXPIRED",{transaction:g,info:{error:n}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return wc("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:g,info:{error:n}});if(o.match(/only replay-protected/i))return wc("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:i,info:{transaction:g,info:{error:n}}})}let d=!!o.match(/the method .* does not exist/i);return d||n&&n.details&&n.details.startsWith("Unauthorized method:")&&(d=!0),d?wc("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:n,payload:t}}):wc("could not coalesce error","UNKNOWN_ERROR",{error:n,payload:t})}send(t,r){if(this.destroyed)return Promise.reject(wc("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));let i=this.#t++,n=new Promise((o,d)=>{this.#r.push({resolve:o,reject:d,payload:{method:t,params:r,id:i,jsonrpc:"2.0"}})});return this.#s(),n}async getSigner(t){t==null&&(t=0);let r=this.send("eth_accounts",[]);if(typeof t=="number"){let n=await r;if(t>=n.length)throw new Error("no such account");return new r3(this,n[t])}let{accounts:i}=await Pu({network:this.getNetwork(),accounts:r});t=Co(t);for(let n of i)if(Co(n)===t)return new r3(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new r3(this,r))}destroy(){this.#n&&(clearTimeout(this.#n),this.#n=null);for(let{payload:t,reject:r}of this.#r)r(wc("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));this.#r=[],super.destroy()}},wL=class extends n3{#e;constructor(t,r){super(t,r),this.#e=4e3}_getSubscriber(t){let r=super._getSubscriber(t);return Nst(r)&&(r.pollingInterval=this.#e),r}get pollingInterval(){return this.#e}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");this.#e=t,this._forEachSubscriber(r=>{Nst(r)&&(r.pollingInterval=this.#e)})}},i0=class extends wL{#e;constructor(t,r,i){t==null&&(t="http://localhost:8545"),super(r,i),typeof t=="string"?this.#e=new jc(t):this.#e=t.clone()}_getConnection(){return this.#e.clone()}async send(t,r){return await this._start(),await super.send(t,r)}async _send(t){let r=this._getConnection();r.body=JSON.stringify(t),r.setHeader("content-type","application/json");let i=await r.send();i.assertOk();let n=i.bodyJson;return Array.isArray(n)||(n=[n]),n}};function j1e(e){if(e==null)return null;if(typeof e.message=="string"&&e.message.match(/revert/i)&&ns(e.data))return{message:e.message,data:e.data};if(typeof e=="object"){for(let t in e){let r=j1e(e[t]);if(r)return r}return null}if(typeof e=="string")try{return j1e(JSON.parse(e))}catch{}return null}function ege(e,t){if(e!=null){if(typeof e.message=="string"&&t.push(e.message),typeof e=="object")for(let r in e)ege(e[r],t);if(typeof e=="string")try{return ege(JSON.parse(e),t)}catch{}}}function Djt(e){let t=[];return ege(e,t),t}var EY="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function kjt(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}_r(!1,"unsupported network","network",e)}var aw=class e extends i0{apiKey;constructor(t,r){t==null&&(t="mainnet");let i=Fs.from(t);r==null&&(r=EY);let n={polling:!0,staticNetwork:i},o=e.getRequest(i,r);super(o,i,n),Un(this,{apiKey:r})}_getProvider(t){try{return new e(t,this.apiKey)}catch{}return super._getProvider(t)}static getRequest(t,r){r==null&&(r=EY);let i=new jc(`https://${kjt(t.name)}/${r}`);return i.allowGzip=!0,r===EY&&(i.retryFunc=async(n,o,d)=>(ah("AnkrProvider"),!0)),i}getRpcError(t,r){return t.method==="eth_sendRawTransaction"&&r&&r.error&&r.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(r.error.message="replacement transaction underpriced"),super.getRpcError(t,r)}isCommunityResource(){return this.apiKey===EY}};J();K();z();var vY="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function Pjt(e){switch(e){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}_r(!1,"unsupported network","network",e)}var sw=class e extends i0{apiKey;constructor(t,r){t==null&&(t="mainnet");let i=Fs.from(t);r==null&&(r=vY);let n=e.getRequest(i,r);super(n,i,{staticNetwork:i}),Un(this,{apiKey:r})}_getProvider(t){try{return new e(t,this.apiKey)}catch{}return super._getProvider(t)}async _perform(t){if(t.method==="getTransactionResult"){let{trace:r,tx:i}=await Pu({trace:this.send("trace_transaction",[t.hash]),tx:this.getTransaction(t.hash)});if(r==null||i==null)return null;let n,o=!1;try{n=r[0].result.output,o=r[0].error==="Reverted"}catch{}if(n)return Xr(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:n,reason:null,transaction:i,invocation:null,revert:null}),n;Xr(!1,"could not parse trace result","BAD_DATA",{value:r})}return await super._perform(t)}isCommunityResource(){return this.apiKey===vY}static getRequest(t,r){r==null&&(r=vY);let i=new jc(`https://${Pjt(t.name)}/v2/${r}`);return i.allowGzip=!0,r===vY&&(i.retryFunc=async(n,o,d)=>(ah("alchemy"),!0)),i}};J();K();z();function RY(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}_r(!1,"unsupported network","network",e)}function Ljt(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}_r(!1,"unsupported network","network",e)}var cw=class e extends i0{apiKey;constructor(t,r){t==null&&(t="mainnet");let i=Fs.from(t);r==null&&(r=RY(i.name));let n=e.getRequest(i,r);super(n,i,{staticNetwork:i}),Un(this,{apiKey:r})}_getProvider(t){try{return new e(t,this.apiKey)}catch{}return super._getProvider(t)}isCommunityResource(){return this.apiKey===RY(this._network.name)}static getRequest(t,r){r==null&&(r=RY(t.name));let i=new jc(`https://${Ljt(t.name)}/${r}`);return i.allowGzip=!0,r===RY(t.name)&&(i.retryFunc=async(n,o,d)=>(ah("ChainstackProvider"),!0)),i}};J();K();z();var uw=class extends i0{constructor(t){t==null&&(t="mainnet");let r=Fs.from(t);_r(r.name==="mainnet","unsupported network","network",t),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}};J();K();z();var xst=2e3;function Ujt(e){return e&&typeof e.then=="function"}var Tst="org.ethers.plugins.provider.Etherscan",OL=class e extends ay{baseUrl;constructor(t){super(Tst),Un(this,{baseUrl:t})}clone(){return new e(this.baseUrl)}},Fjt=["enableCcipRead"],Qjt=1,dw=class extends U_{network;apiKey;#e;constructor(t,r){let i=r??null;super();let n=Fs.from(t);this.#e=n.getPlugin(Tst),Un(this,{apiKey:i,network:n}),this.getBaseUrl()}getBaseUrl(){if(this.#e)return this.#e.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}_r(!1,"unsupported network","network",this.network)}getUrl(t,r){let i=Object.keys(r).reduce((o,d)=>{let g=r[d];return g!=null&&(o+=`&${d}=${g}`),o},""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${t}${i}${n}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(t,r){return r.module=t,r.apikey=this.apiKey,r}async detectNetwork(){return this.network}async fetch(t,r,i){let n=Qjt++,o=i?this.getPostUrl():this.getUrl(t,r),d=i?this.getPostData(t,r):null;this.emit("debug",{action:"sendRequest",id:n,url:o,payload:d});let g=new jc(o);g.setThrottleParams({slotInterval:1e3}),g.retryFunc=(I,N,T)=>(this.isCommunityResource()&&ah("Etherscan"),Promise.resolve(!0)),g.processFunc=async(I,N)=>{let T=N.hasBody()?JSON.parse(LA(N.body)):{},M=(typeof T.result=="string"?T.result:"").toLowerCase().indexOf("rate limit")>=0;return t==="proxy"?T&&T.status==0&&T.message=="NOTOK"&&M&&(this.emit("debug",{action:"receiveError",id:n,reason:"proxy-NOTOK",error:T}),N.throwThrottleError(T.result,xst)):M&&(this.emit("debug",{action:"receiveError",id:n,reason:"null result",error:T.result}),N.throwThrottleError(T.result,xst)),N},d&&(g.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),g.body=Object.keys(d).map(I=>`${I}=${d[I]}`).join("&"));let y=await g.send();try{y.assertOk()}catch(I){this.emit("debug",{action:"receiveError",id:n,error:I,reason:"assertOk"}),Xr(!1,"response error","SERVER_ERROR",{request:g,response:y})}y.hasBody()||(this.emit("debug",{action:"receiveError",id:n,error:"missing body",reason:"null body"}),Xr(!1,"missing response","SERVER_ERROR",{request:g,response:y}));let _=JSON.parse(LA(y.body));return t==="proxy"?(_.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:n,result:_,reason:"invalid JSON-RPC"}),Xr(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:g,response:y,info:{result:_}})),_.error&&(this.emit("debug",{action:"receiveError",id:n,result:_,reason:"JSON-RPC error"}),Xr(!1,"error response","SERVER_ERROR",{request:g,response:y,info:{result:_}})),this.emit("debug",{action:"receiveRequest",id:n,result:_}),_.result):_.status==0&&(_.message==="No records found"||_.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:n,result:_}),_.result):((_.status!=1||typeof _.message=="string"&&!_.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:n,result:_}),Xr(!1,"error response","SERVER_ERROR",{request:g,response:y,info:{result:_}})),this.emit("debug",{action:"receiveRequest",id:n,result:_}),_.result)}_getTransactionPostData(t){let r={};for(let i in t){if(Fjt.indexOf(i)>=0||t[i]==null)continue;let n=t[i];i==="type"&&n===0||i==="blockTag"&&n==="latest"||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[i]?n=Gp(n):i==="accessList"?n="["+ih(n).map(o=>`{address:"${o.address}",storageKeys:["${o.storageKeys.join('","')}"]}`).join(",")+"]":n=vn(n),r[i]=n)}return r}_checkError(t,r,i){let n="";if(Tc(r,"SERVER_ERROR")){try{n=r.info.result.error.message}catch{}if(!n)try{n=r.info.message}catch{}}if(t.method==="estimateGas"&&!n.match(/revert/i)&&n.match(/insufficient funds/i)&&Xr(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.transaction}),(t.method==="call"||t.method==="estimateGas")&&n.match(/execution reverted/i)){let o="";try{o=r.info.result.error.data}catch{}let d=L_.getBuiltinCallException(t.method,t.transaction,o);throw d.info={request:t,error:r},d}if(n&&t.method==="broadcastTransaction"){let o=ng.from(t.signedTransaction);n.match(/replacement/i)&&n.match(/underpriced/i)&&Xr(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:o}),n.match(/insufficient funds/)&&Xr(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:o}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Xr(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:o})}throw r}async _detectNetwork(){return this.network}async _perform(t){switch(t.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(r=>this._checkError(t,r,t.signedTransaction));case"getBlock":if("blockTag"in t)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});Xr(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.hash});case"call":{if(t.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");let r=this._getTransactionPostData(t.transaction);r.module="proxy",r.action="eth_call";try{return await this.fetch("proxy",r,!0)}catch(i){return this._checkError(t,i,t.transaction)}}case"estimateGas":{let r=this._getTransactionPostData(t.transaction);r.module="proxy",r.action="eth_estimateGas";try{return await this.fetch("proxy",r,!0)}catch(i){return this._checkError(t,i,t.transaction)}}default:break}return super._perform(t)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(t){let r=this._getAddress(t);Ujt(r)&&(r=await r);try{let i=await this.fetch("contract",{action:"getabi",address:r}),n=JSON.parse(i);return new Vp(r,n,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}};J();K();z();J();K();z();J();K();z();function Hjt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var Bst=Hjt().WebSocket;J();K();z();var i3=class{#e;#t;get filter(){return JSON.parse(this.#t)}#r;#n;#i;constructor(t,r){this.#e=t,this.#t=JSON.stringify(r),this.#r=null,this.#n=null,this.#i=null}start(){this.#r=this.#e.send("eth_subscribe",this.filter).then(t=>(this.#e._register(t,this),t))}stop(){this.#r.then(t=>{this.#e.destroyed||this.#e.send("eth_unsubscribe",[t])}),this.#r=null}pause(t){Xr(t,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#n=!!t}resume(){this.#n=null}_handleMessage(t){if(this.#r!=null&&this.#n===null){let r=this.#i;r==null?r=this._emit(this.#e,t):r=r.then(async()=>{await this._emit(this.#e,t)}),this.#i=r.then(()=>{this.#i===r&&(this.#i=null)})}}async _emit(t,r){throw new Error("sub-classes must implemente this; _emit")}},eT=class extends i3{constructor(t){super(t,["newHeads"])}async _emit(t,r){t.emit("block",parseInt(r.number))}},tT=class extends i3{constructor(t){super(t,["newPendingTransactions"])}async _emit(t,r){t.emit("pending",r)}},rT=class extends i3{#e;get logFilter(){return JSON.parse(this.#e)}constructor(t,r){super(t,["logs",r]),this.#e=JSON.stringify(r)}async _emit(t,r){t.emit(this.logFilter,t._wrapLog(r,t._network))}},fw=class extends n3{#e;#t;#r;constructor(t,r){let i=Object.assign({},r??{});_r(i.batchMaxCount==null||i.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",r),i.batchMaxCount=1,i.staticNetwork==null&&(i.staticNetwork=!0),super(t,i),this.#e=new Map,this.#t=new Map,this.#r=new Map}_getSubscriber(t){switch(t.type){case"close":return new sy("close");case"block":return new eT(this);case"pending":return new tT(this);case"event":return new rT(this,t.filter);case"orphan":if(t.filter.orphan==="drop-log")return new sy("drop-log")}return super._getSubscriber(t)}_register(t,r){this.#t.set(t,r);let i=this.#r.get(t);if(i){for(let n of i)r._handleMessage(n);this.#r.delete(t)}}async _send(t){_r(!Array.isArray(t),"WebSocket does not support batch send","payload",t);let r=new Promise((i,n)=>{this.#e.set(t.id,{payload:t,resolve:i,reject:n})});return await this._waitUntilReady(),await this._write(JSON.stringify(t)),[await r]}async _processMessage(t){let r=JSON.parse(t);if(r&&typeof r=="object"&&"id"in r){let i=this.#e.get(r.id);if(i==null){this.emit("error",wc("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:r}));return}this.#e.delete(r.id),i.resolve(r)}else if(r&&r.method==="eth_subscription"){let i=r.params.subscription,n=this.#t.get(i);if(n)n._handleMessage(r.params.result);else{let o=this.#r.get(i);o==null&&(o=[],this.#r.set(i,o)),o.push(r.params.result)}}else{this.emit("error",wc("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:r}));return}}async _write(t){throw new Error("sub-classes must override this")}};var HR=class extends fw{#e;#t;get websocket(){if(this.#t==null)throw new Error("websocket closed");return this.#t}constructor(t,r,i){super(r,i),typeof t=="string"?(this.#e=()=>new Bst(t),this.#t=this.#e()):typeof t=="function"?(this.#e=t,this.#t=t()):(this.#e=null,this.#t=t),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(n){console.log("failed to start WebsocketProvider",n)}},this.websocket.onmessage=n=>{this._processMessage(n.data)}}async _write(t){this.websocket.send(t)}async destroy(){this.#t!=null&&(this.#t.close(),this.#t=null),super.destroy()}};var NL="84842078b09946638c03157f83405213";function Gjt(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}_r(!1,"unsupported network","network",e)}var nT=class extends HR{projectId;projectSecret;constructor(t,r){let i=new o3(t,r),n=i._getConnection();Xr(!n.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});let o=n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,i._network),Un(this,{projectId:i.projectId,projectSecret:i.projectSecret})}isCommunityResource(){return this.projectId===NL}},o3=class e extends i0{projectId;projectSecret;constructor(t,r,i){t==null&&(t="mainnet");let n=Fs.from(t);r==null&&(r=NL),i==null&&(i=null);let o=e.getRequest(n,r,i);super(o,n,{staticNetwork:n}),Un(this,{projectId:r,projectSecret:i})}_getProvider(t){try{return new e(t,this.projectId,this.projectSecret)}catch{}return super._getProvider(t)}isCommunityResource(){return this.projectId===NL}static getWebSocketProvider(t,r){return new nT(t,r)}static getRequest(t,r,i){r==null&&(r=NL),i==null&&(i=null);let n=new jc(`https://${Gjt(t.name)}/v3/${r}`);return n.allowGzip=!0,i&&n.setCredentials("",i),r===NL&&(n.retryFunc=async(o,d,g)=>(ah("InfuraProvider"),!0)),n}};J();K();z();var SY="919b412a057b5e9c9b6dce193c5a60242d6efadb";function qjt(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}_r(!1,"unsupported network","network",e)}var lw=class e extends i0{token;constructor(t,r){t==null&&(t="mainnet");let i=Fs.from(t);r==null&&(r=SY);let n=e.getRequest(i,r);super(n,i,{staticNetwork:i}),Un(this,{token:r})}_getProvider(t){try{return new e(t,this.token)}catch{}return super._getProvider(t)}isCommunityResource(){return this.token===SY}static getRequest(t,r){r==null&&(r=SY);let i=new jc(`https://${qjt(t.name)}/${r}`);return i.allowGzip=!0,r===SY&&(i.retryFunc=async(n,o,d)=>(ah("QuickNodeProvider"),!0)),i}};J();K();z();var Vjt=BigInt("1"),Jjt=BigInt("2");function zjt(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}}function Kjt(e){return new Promise(t=>{setTimeout(t,e)})}function ige(){return new Date().getTime()}function tge(e){return JSON.stringify(e,(t,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}var Mst={stallTimeout:400,priority:1,weight:1},Dst={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function $jt(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{let r=await e.provider.getBlockNumber();r>e.blockNumber&&(e.blockNumber=r)}catch(r){e.blockNumber=-2,e._lastFatalError=r,e._lastFatalErrorTimestamp=ige()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}function xL(e){if(e==null)return"null";if(Array.isArray(e))return"["+e.map(xL).join(",")+"]";if(typeof e=="object"&&typeof e.toJSON=="function")return xL(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{"+t.map(r=>`${JSON.stringify(r)}:${xL(e[r])}`).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function rge(e){if("error"in e){let r=e.error;return{tag:xL(r),value:r}}let t=e.result;return{tag:xL(t),value:t}}function IY(e,t){let r=new Map;for(let{value:n,tag:o,weight:d}of t){let g=r.get(o)||{value:n,weight:0};g.weight+=d,r.set(o,g)}let i=null;for(let n of r.values())n.weight>=e&&(!i||n.weight>i.weight)&&(i=n);if(i)return i.value}function oge(e,t){let r=0,i=new Map,n=null,o=[];for(let{value:g,tag:y,weight:_}of t)if(g instanceof Error){let I=i.get(y)||{value:g,weight:0};I.weight+=_,i.set(y,I),(n==null||I.weight>n.weight)&&(n=I)}else o.push(BigInt(g)),r+=_;if(r<e)return n&&n.weight>=e?n.value:void 0;o.sort((g,y)=>g<y?-1:y>g?1:0);let d=Math.floor(o.length/2);return o.length%2?o[d]:(o[d-1]+o[d]+Vjt)/Jjt}function nge(e,t){let r=IY(e,t);if(r!==void 0)return r;for(let i of t)if(i.value)return i.value}function Yjt(e,t){if(e===1)return Zi(oge(e,t),"%internal");let r=new Map,i=(d,g)=>{let y=r.get(d)||{result:d,weight:0};y.weight+=g,r.set(d,y)};for(let{weight:d,value:g}of t){let y=Zi(g);i(y-1,d),i(y,d),i(y+1,d)}let n=0,o;for(let{weight:d,result:g}of r.values())d>=e&&(d>n||o!=null&&d===n&&g>o)&&(n=d,o=g);return o}var hw=class extends U_{quorum;eventQuorum;eventWorkers;#e;#t;#r;constructor(t,r,i){super(r,i),this.#e=t.map(n=>n instanceof U_?Object.assign({provider:n},Mst,Dst):Object.assign({},Mst,n,Dst)),this.#t=-2,this.#r=null,i&&i.quorum!=null?this.quorum=i.quorum:this.quorum=Math.ceil(this.#e.reduce((n,o)=>(n+=o.weight,n),0)/2),this.eventQuorum=1,this.eventWorkers=1,_r(this.quorum<=this.#e.reduce((n,o)=>n+o.weight,0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return this.#e.map(t=>{let r=Object.assign({},t);for(let i in r)i[0]==="_"&&delete r[i];return r})}async _detectNetwork(){return Fs.from(gi(await this._perform({method:"chainId"})))}async _translatePerform(t,r){switch(r.method){case"broadcastTransaction":return await t.broadcastTransaction(r.signedTransaction);case"call":return await t.call(Object.assign({},r.transaction,{blockTag:r.blockTag}));case"chainId":return(await t.getNetwork()).chainId;case"estimateGas":return await t.estimateGas(r.transaction);case"getBalance":return await t.getBalance(r.address,r.blockTag);case"getBlock":{let i="blockHash"in r?r.blockHash:r.blockTag;return await t.getBlock(i,r.includeTransactions)}case"getBlockNumber":return await t.getBlockNumber();case"getCode":return await t.getCode(r.address,r.blockTag);case"getGasPrice":return(await t.getFeeData()).gasPrice;case"getPriorityFee":return(await t.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await t.getLogs(r.filter);case"getStorage":return await t.getStorage(r.address,r.position,r.blockTag);case"getTransaction":return await t.getTransaction(r.hash);case"getTransactionCount":return await t.getTransactionCount(r.address,r.blockTag);case"getTransactionReceipt":return await t.getTransactionReceipt(r.hash);case"getTransactionResult":return await t.getTransactionResult(r.hash)}}#n(t){let r=Array.from(t).map(n=>n.config),i=this.#e.slice();zjt(i),i.sort((n,o)=>n.priority-o.priority);for(let n of i)if(!n._lastFatalError&&r.indexOf(n)===-1)return n;return null}#i(t,r){let i=this.#n(t);if(i==null)return null;let n={config:i,result:null,didBump:!1,perform:null,staller:null},o=ige();return n.perform=(async()=>{try{i.requests++;let g=await this._translatePerform(i.provider,r);n.result={result:g}}catch(g){i.errorResponses++,n.result={error:g}}let d=ige()-o;i._totalTime+=d,i.rollingDuration=.95*i.rollingDuration+.05*d,n.perform=null})(),n.staller=(async()=>{await Kjt(i.stallTimeout),n.staller=null})(),t.add(n),n}async#a(){let t=this.#r;if(!t){let r=[];this.#e.forEach(i=>{r.push((async()=>{await $jt(i,0),i._lastFatalError||(i._network=await i.provider.getNetwork())})())}),this.#r=t=(async()=>{await Promise.all(r);let i=null;for(let n of this.#e){if(n._lastFatalError)continue;let o=n._network;i==null?i=o.chainId:o.chainId!==i&&Xr(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await t}async#o(t,r){let i=[];for(let n of t)if(n.result!=null){let{tag:o,value:d}=rge(n.result);i.push({tag:o,value:d,weight:n.config.weight})}if(!(i.reduce((n,o)=>n+o.weight,0)<this.quorum)){switch(r.method){case"getBlockNumber":{this.#t===-2&&(this.#t=Math.ceil(Zi(oge(this.quorum,this.#e.filter(o=>!o._lastFatalError).map(o=>({value:o.blockNumber,tag:Zi(o.blockNumber).toString(),weight:o.weight}))))));let n=Yjt(this.quorum,i);return n===void 0?void 0:(n>this.#t&&(this.#t=n),this.#t)}case"getGasPrice":case"getPriorityFee":case"estimateGas":return oge(this.quorum,i);case"getBlock":return"blockTag"in r&&r.blockTag==="pending"?nge(this.quorum,i):IY(this.quorum,i);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return IY(this.quorum,i);case"broadcastTransaction":return nge(this.quorum,i)}Xr(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${tge(r.method)})`})}}async#s(t,r){if(t.size===0)throw new Error("no runners?!");let i=[],n=0;for(let d of t){if(d.perform&&i.push(d.perform),d.staller){i.push(d.staller);continue}d.didBump||(d.didBump=!0,n++)}let o=await this.#o(t,r);if(o!==void 0){if(o instanceof Error)throw o;return o}for(let d=0;d<n;d++)this.#i(t,r);return Xr(i.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:Array.from(t).map(d=>tge(d.result))}}),await Promise.race(i),await this.#s(t,r)}async _perform(t){if(t.method==="broadcastTransaction"){let o=this.#e.map(y=>null),d=this.#e.map(async({provider:y,weight:_},I)=>{try{let N=await y._perform(t);o[I]=Object.assign(rge({result:N}),{weight:_})}catch(N){o[I]=Object.assign(rge({error:N}),{weight:_})}});for(;;){let y=o.filter(N=>N!=null);for(let{value:N}of y)if(!(N instanceof Error))return N;let _=IY(this.quorum,o.filter(N=>N!=null));if(Tc(_,"INSUFFICIENT_FUNDS"))throw _;let I=d.filter((N,T)=>o[T]==null);if(I.length===0)break;await Promise.race(I)}let g=nge(this.quorum,o);if(Xr(g!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:o.map(tge)}}),g instanceof Error)throw g;return g}await this.#a();let r=new Set,i=0;for(;;){let o=this.#i(r,t);if(o==null||(i+=o.config.weight,i>=this.quorum))break}let n=await this.#s(r,t);for(let o of r)o.perform&&o.result==null&&o.config.lateResponses++;return n}async destroy(){for(let{provider:t}of this.#e)t.destroy();super.destroy()}};function Wjt(e){return e&&typeof e.send=="function"&&typeof e.close=="function"}var Xjt="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function age(e,t){t==null&&(t={});let r=d=>t[d]==="-"?!1:typeof t.exclusive=="string"?d===t.exclusive:Array.isArray(t.exclusive)?t.exclusive.indexOf(d)!==-1:!0;if(typeof e=="string"&&e.match(/^https?:/))return new i0(e);if(typeof e=="string"&&e.match(/^wss?:/)||Wjt(e))return new HR(e);let i=null;try{i=Fs.from(e)}catch{}let n=[];if(r("publicPolygon")&&i&&(i.name==="matic"?n.push(new i0("https://polygon-rpc.com/",i,{staticNetwork:i})):i.name==="matic-amoy"&&n.push(new i0("https://rpc-amoy.polygon.technology/",i,{staticNetwork:i}))),r("alchemy"))try{n.push(new sw(e,t.alchemy))}catch{}if(r("ankr")&&t.ankr!=null)try{n.push(new aw(e,t.ankr))}catch{}if(r("chainstack"))try{n.push(new cw(e,t.chainstack))}catch{}if(r("cloudflare"))try{n.push(new uw(e))}catch{}if(r("etherscan"))try{n.push(new dw(e,t.etherscan))}catch{}if(r("infura"))try{let d=t.infura,g;typeof d=="object"&&(g=d.projectSecret,d=d.projectId),n.push(new o3(e,d,g))}catch{}if(r("quicknode"))try{let d=t.quicknode;n.push(new lw(e,d))}catch{}if(Xr(n.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),n.length===1)return n[0];let o=Math.floor(n.length/2);return o>2&&(o=2),i&&Xjt.indexOf(i.name)!==-1&&(o=1),t&&t.quorum&&(o=t.quorum),new hw(n,void 0,{quorum:o})}J();K();z();var TL=class e extends F_{signer;#e;#t;constructor(t){super(t.provider),Un(this,{signer:t}),this.#e=null,this.#t=0}async getAddress(){return this.signer.getAddress()}connect(t){return new e(this.signer.connect(t))}async getNonce(t){if(t==="pending"){this.#e==null&&(this.#e=super.getNonce("pending"));let r=this.#t;return await this.#e+r}return super.getNonce(t)}increment(){this.#t++}reset(){this.#t=0,this.#e=null}async sendTransaction(t){let r=this.getNonce("pending");return this.increment(),t=await this.signer.populateTransaction(t),t.nonce=await r,await this.signer.sendTransaction(t)}signTransaction(t){return this.signer.signTransaction(t)}signMessage(t){return this.signer.signMessage(t)}signTypedData(t,r,i){return this.signer.signTypedData(t,r,i)}};J();K();z();var BL=class extends wL{#e;constructor(t,r){_r(t&&t.request,"invalid EIP-1193 provider","ethereum",t),super(r,{batchMaxCount:1}),this.#e=async(i,n)=>{let o={method:i,params:n};this.emit("debug",{action:"sendEip1193Request",payload:o});try{let d=await t.request(o);return this.emit("debug",{action:"receiveEip1193Result",result:d}),d}catch(d){let g=new Error(d.message);throw g.code=d.code,g.data=d.data,g.payload=o,this.emit("debug",{action:"receiveEip1193Error",error:g}),g}}}async send(t,r){return await this._start(),await super.send(t,r)}async _send(t){_r(!Array.isArray(t),"EIP-1193 does not support batch request","payload",t);try{let r=await this.#e(t.method,t.params||[]);return[{id:t.id,result:r}]}catch(r){return[{id:t.id,error:{code:r.code,data:r.data,message:r.message}}]}}getRpcError(t,r){switch(r=JSON.parse(JSON.stringify(r)),r.error.code||-1){case 4001:r.error.message=`ethers-user-denied: ${r.error.message}`;break;case 4200:r.error.message=`ethers-unsupported: ${r.error.message}`;break}return super.getRpcError(t,r)}async hasSigner(t){t==null&&(t=0);let r=await this.send("eth_accounts",[]);return typeof t=="number"?r.length>t:(t=t.toLowerCase(),r.filter(i=>i.toLowerCase()===t).length!==0)}async getSigner(t){if(t==null&&(t=0),!await this.hasSigner(t))try{await this.#e("eth_requestAccounts",[])}catch(r){let i=r.payload;throw this.getRpcError(i,{id:i.id,error:r})}return await super.getSigner(t)}};J();K();z();var CY="62e1ad51b37b8e00394bda3b";function Zjt(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}_r(!1,"unsupported network","network",e)}var ML=class e extends i0{applicationId;applicationSecret;constructor(t,r,i){t==null&&(t="mainnet");let n=Fs.from(t);r==null&&(r=CY),i==null&&(i=null);let o={staticNetwork:n},d=e.getRequest(n,r,i);super(d,n,o),Un(this,{applicationId:r,applicationSecret:i})}_getProvider(t){try{return new e(t,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(t)}static getRequest(t,r,i){r==null&&(r=CY);let n=new jc(`https://${Zjt(t.name)}/v1/lb/${r}`);return n.allowGzip=!0,i&&n.setCredentials("",i),r===CY&&(n.retryFunc=async(o,d,g)=>(ah("PocketProvider"),!0)),n}isCommunityResource(){return this.applicationId===CY}};J();K();z();var sge=void 0;J();K();z();J();K();z();var GR=class e extends F_{address;#e;constructor(t,r){super(r),_r(t&&typeof t.sign=="function","invalid private key","privateKey","[ REDACTED ]"),this.#e=t;let i=rg(this.signingKey.publicKey);Un(this,{address:i})}get signingKey(){return this.#e}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(t){return new e(this.#e,t)}async signTransaction(t){let{to:r,from:i}=await Pu({to:t.to?r0(t.to,this.provider):void 0,from:t.from?r0(t.from,this.provider):void 0});r!=null&&(t.to=r),i!=null&&(t.from=i),t.from!=null&&(_r(Co(t.from)===this.address,"transaction from address mismatch","tx.from",t.from),delete t.from);let n=ng.from(t);return n.signature=this.signingKey.sign(n.unsignedHash),n.serialized}async signMessage(t){return this.signMessageSync(t)}signMessageSync(t){return this.signingKey.sign(zI(t)).serialized}async signTypedData(t,r,i){let n=await P_.resolveNames(t,r,i,async o=>{Xr(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:o}});let d=await this.provider.resolveName(o);return Xr(d!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:o}),d});return this.signingKey.sign(P_.hash(n.domain,r,n.value)).serialized}};J();K();z();J();K();z();J();K();z();J();K();z();var wY=" !#$%&'()*+,-./<=>?@[]^_`{|}~",jjt=/^[a-z]*$/i;function kst(e,t){let r=97;return e.reduce((i,n)=>(n===t?r++:n.match(jjt)?i.push(String.fromCharCode(r)+n):(r=97,i.push(n)),i),[])}function eer(e,t){for(let n=wY.length-1;n>=0;n--)e=e.split(wY[n]).join(t.substring(2*n,2*n+2));let r=[],i=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(n,o,d,g)=>{if(d)for(let y=parseInt(d);y>=0;y--)r.push(";");else r.push(o.toLowerCase());return""});if(i)throw new Error(`leftovers: ${JSON.stringify(i)}`);return kst(kst(r,";"),":")}function OY(e){return _r(e[0]==="0","unsupported auwl data","data",e),eer(e.substring(1+2*wY.length),e.substring(1,1+2*wY.length))}J();K();z();var Aw=class{locale;constructor(t){Un(this,{locale:t})}split(t){return t.toLowerCase().split(/\s+/g)}join(t){return t.join(" ")}};var qR=class extends Aw{#e;#t;constructor(t,r,i){super(t),this.#e=r,this.#t=i,this.#r=null}get _data(){return this.#e}_decodeWords(){return OY(this.#e)}#r;#n(){if(this.#r==null){let t=this._decodeWords();if(nh(t.join(`
|
|
`)+`
|
|
`)!==this.#t)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#r=t}return this.#r}getWord(t){let r=this.#n();return _r(t>=0&&t<r.length,`invalid word index: ${t}`,"index",t),r[t]}getWordIndex(t){return this.#n().indexOf(t)}};var ter="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg N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Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",rer="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60",cge=null,Jp=class e extends qR{constructor(){super("en",ter,rer)}static wordlist(){return cge==null&&(cge=new e),cge}};J();K();z();function Pst(e){return(1<<e)-1<<8-e&255}function ner(e){return(1<<e)-1&255}function uge(e,t){PC("NFKD"),t==null&&(t=Jp.wordlist());let r=t.split(e);_r(r.length%3===0&&r.length>=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");let i=new Uint8Array(Math.ceil(11*r.length/8)),n=0;for(let _=0;_<r.length;_++){let I=t.getWordIndex(r[_].normalize("NFKD"));_r(I>=0,`invalid mnemonic word at index ${_}`,"mnemonic","[ REDACTED ]");for(let N=0;N<11;N++)I&1<<10-N&&(i[n>>3]|=1<<7-n%8),n++}let o=32*r.length/3,d=r.length/3,g=Pst(d),y=Dn(Bd(i.slice(0,o/8)))[0]&g;return _r(y===(i[i.length-1]&g),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),vn(i.slice(0,o/8))}function dge(e,t){_r(e.length%4===0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),t==null&&(t=Jp.wordlist());let r=[0],i=11;for(let d=0;d<e.length;d++)i>8?(r[r.length-1]<<=8,r[r.length-1]|=e[d],i-=8):(r[r.length-1]<<=i,r[r.length-1]|=e[d]>>8-i,r.push(e[d]&ner(8-i)),i+=3);let n=e.length/4,o=parseInt(Bd(e).substring(2,4),16)&Pst(n);return r[r.length-1]<<=n,r[r.length-1]|=o>>8-n,t.join(r.map(d=>t.getWord(d)))}var fge={},qb=class e{phrase;password;wordlist;entropy;constructor(t,r,i,n,o){n==null&&(n=""),o==null&&(o=Jp.wordlist()),jl(t,fge,"Mnemonic"),Un(this,{phrase:i,password:n,wordlist:o,entropy:r})}computeSeed(){let t=rc("mnemonic"+this.password,"NFKD");return UA(rc(this.phrase,"NFKD"),t,2048,64,"sha512")}static fromPhrase(t,r,i){let n=uge(t,i);return t=dge(Dn(n),i),new e(fge,n,t,r,i)}static fromEntropy(t,r,i){let n=Dn(t,"entropy"),o=dge(n,i);return new e(fge,vn(n),o,r,i)}static entropyToPhrase(t,r){let i=Dn(t,"entropy");return dge(i,r)}static phraseToEntropy(t,r){return uge(t,r)}static isValidMnemonic(t,r){try{return uge(t,r),!0}catch{}return!1}};J();K();z();J();K();z();J();K();z();var sh=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},lge=function(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r},xY,H_,Vb,ier={16:10,24:12,32:14},oer=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Q_=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],NY=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],aer=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],ser=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],cer=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],uer=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],der=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],fer=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],ler=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],her=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Aer=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],per=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],ger=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],_er=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function hge(e){let t=[];for(let r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var DL=class e{get key(){return sh(this,xY,"f").slice()}constructor(t){if(xY.set(this,void 0),H_.set(this,void 0),Vb.set(this,void 0),!(this instanceof e))throw Error("AES must be instanitated with `new`");lge(this,xY,new Uint8Array(t),"f");let r=ier[this.key.length];if(r==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");lge(this,Vb,[],"f"),lge(this,H_,[],"f");for(let I=0;I<=r;I++)sh(this,Vb,"f").push([0,0,0,0]),sh(this,H_,"f").push([0,0,0,0]);let i=(r+1)*4,n=this.key.length/4,o=hge(this.key),d;for(let I=0;I<n;I++)d=I>>2,sh(this,Vb,"f")[d][I%4]=o[I],sh(this,H_,"f")[r-d][I%4]=o[I];let g=0,y=n,_;for(;y<i;){if(_=o[n-1],o[0]^=Q_[_>>16&255]<<24^Q_[_>>8&255]<<16^Q_[_&255]<<8^Q_[_>>24&255]^oer[g]<<24,g+=1,n!=8)for(let M=1;M<n;M++)o[M]^=o[M-1];else{for(let M=1;M<n/2;M++)o[M]^=o[M-1];_=o[n/2-1],o[n/2]^=Q_[_&255]^Q_[_>>8&255]<<8^Q_[_>>16&255]<<16^Q_[_>>24&255]<<24;for(let M=n/2+1;M<n;M++)o[M]^=o[M-1]}let I=0,N,T;for(;I<n&&y<i;)N=y>>2,T=y%4,sh(this,Vb,"f")[N][T]=o[I],sh(this,H_,"f")[r-N][T]=o[I++],y++}for(let I=1;I<r;I++)for(let N=0;N<4;N++)_=sh(this,H_,"f")[I][N],sh(this,H_,"f")[I][N]=Aer[_>>24&255]^per[_>>16&255]^ger[_>>8&255]^_er[_&255]}encrypt(t){if(t.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");let r=sh(this,Vb,"f").length-1,i=[0,0,0,0],n=hge(t);for(let g=0;g<4;g++)n[g]^=sh(this,Vb,"f")[0][g];for(let g=1;g<r;g++){for(let y=0;y<4;y++)i[y]=aer[n[y]>>24&255]^ser[n[(y+1)%4]>>16&255]^cer[n[(y+2)%4]>>8&255]^uer[n[(y+3)%4]&255]^sh(this,Vb,"f")[g][y];n=i.slice()}let o=new Uint8Array(16),d=0;for(let g=0;g<4;g++)d=sh(this,Vb,"f")[r][g],o[4*g]=(Q_[n[g]>>24&255]^d>>24)&255,o[4*g+1]=(Q_[n[(g+1)%4]>>16&255]^d>>16)&255,o[4*g+2]=(Q_[n[(g+2)%4]>>8&255]^d>>8)&255,o[4*g+3]=(Q_[n[(g+3)%4]&255]^d)&255;return o}decrypt(t){if(t.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");let r=sh(this,H_,"f").length-1,i=[0,0,0,0],n=hge(t);for(let g=0;g<4;g++)n[g]^=sh(this,H_,"f")[0][g];for(let g=1;g<r;g++){for(let y=0;y<4;y++)i[y]=der[n[y]>>24&255]^fer[n[(y+3)%4]>>16&255]^ler[n[(y+2)%4]>>8&255]^her[n[(y+1)%4]&255]^sh(this,H_,"f")[g][y];n=i.slice()}let o=new Uint8Array(16),d=0;for(let g=0;g<4;g++)d=sh(this,H_,"f")[r][g],o[4*g]=(NY[n[g]>>24&255]^d>>24)&255,o[4*g+1]=(NY[n[(g+3)%4]>>16&255]^d>>16)&255,o[4*g+2]=(NY[n[(g+2)%4]>>8&255]^d>>8)&255,o[4*g+3]=(NY[n[(g+1)%4]&255]^d)&255;return o}};xY=new WeakMap,H_=new WeakMap,Vb=new WeakMap;J();K();z();var Jb=class{constructor(t,r,i){if(i&&!(this instanceof i))throw new Error(`${t} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new DL(r)},name:{enumerable:!0,value:t}})}};J();K();z();var TY=function(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r},iT=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},kL,VR,PL=class e extends Jb{constructor(t,r){if(super("ECC",t,e),kL.set(this,void 0),VR.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");TY(this,kL,new Uint8Array(r),"f")}else TY(this,kL,new Uint8Array(16),"f");TY(this,VR,this.iv,"f")}get iv(){return new Uint8Array(iT(this,kL,"f"))}encrypt(t){if(t.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");let r=new Uint8Array(t.length);for(let i=0;i<t.length;i+=16){for(let n=0;n<16;n++)iT(this,VR,"f")[n]^=t[i+n];TY(this,VR,this.aes.encrypt(iT(this,VR,"f")),"f"),r.set(iT(this,VR,"f"),i)}return r}decrypt(t){if(t.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");let r=new Uint8Array(t.length);for(let i=0;i<t.length;i+=16){let n=this.aes.decrypt(t.subarray(i,i+16));for(let o=0;o<16;o++)r[i+o]=n[o]^iT(this,VR,"f")[o],iT(this,VR,"f")[o]=t[i+o]}return r}};kL=new WeakMap,VR=new WeakMap;J();K();z();var Age=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},mer,yer,BY,ber;yer=new WeakMap,BY=new WeakMap,mer=new WeakSet,ber=function(t){let r=this.segmentSize/8;Age(this,BY,"f").set(Age(this,BY,"f").subarray(r)),Age(this,BY,"f").set(t.subarray(0,r),16-r)};J();K();z();var oT=function(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r},G_=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},LL,pw,q_,a3=class e extends Jb{constructor(t,r){super("CTR",t,e),LL.set(this,void 0),pw.set(this,void 0),q_.set(this,void 0),oT(this,q_,new Uint8Array(16),"f"),G_(this,q_,"f").fill(0),oT(this,LL,G_(this,q_,"f"),"f"),oT(this,pw,16,"f"),r==null&&(r=1),typeof r=="number"?this.setCounterValue(r):this.setCounterBytes(r)}get counter(){return new Uint8Array(G_(this,q_,"f"))}setCounterValue(t){if(!Number.isInteger(t)||t<0||t>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)G_(this,q_,"f")[r]=t%256,t=Math.floor(t/256)}setCounterBytes(t){if(t.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");G_(this,q_,"f").set(t)}increment(){for(let t=15;t>=0;t--)if(G_(this,q_,"f")[t]===255)G_(this,q_,"f")[t]=0;else{G_(this,q_,"f")[t]++;break}}encrypt(t){var r,i;let n=new Uint8Array(t);for(let o=0;o<n.length;o++)G_(this,pw,"f")===16&&(oT(this,LL,this.aes.encrypt(G_(this,q_,"f")),"f"),oT(this,pw,0,"f"),this.increment()),n[o]^=G_(this,LL,"f")[oT(this,pw,(i=G_(this,pw,"f"),r=i++,i),"f"),r];return n}decrypt(t){return this.encrypt(t)}};LL=new WeakMap,pw=new WeakMap,q_=new WeakMap;J();K();z();J();K();z();var Eer,ver,Rer;Eer=new WeakMap,ver=new WeakMap,Rer=new WeakMap;J();K();z();function pge(e){if(e.length<16)throw new TypeError("PKCS#7 invalid length");let t=e[e.length-1];if(t>16)throw new TypeError("PKCS#7 padding byte out of range");let r=e.length-t;for(let i=0;i<t;i++)if(e[r+i]!==t)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,r))}J();K();z();function gge(e){return typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e),$u(e)}function aT(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function gw(e){return typeof e=="string"?rc(e,"NFKC"):$u(e)}function Y0(e,t){let r=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);_r(r!=null,"invalid path","path",t);let i=r[1],n=r[3],o=r[4]==="!",d=e;for(let g of i.toLowerCase().split(".")){if(Array.isArray(d)){if(!g.match(/^[0-9]+$/))break;d=d[parseInt(g)]}else if(typeof d=="object"){let y=null;for(let _ in d)if(_.toLowerCase()===g){y=d[_];break}d=y}else d=null;if(d==null)break}if(_r(!o||d!=null,"missing required value","path",i),n&&d!=null){if(n==="int"){if(typeof d=="string"&&d.match(/^-?[0-9]+$/))return parseInt(d);if(Number.isSafeInteger(d))return d}if(n==="number"&&typeof d=="string"&&d.match(/^-?[0-9.]*$/))return parseFloat(d);if(n==="data"&&typeof d=="string")return gge(d);if(n==="array"&&Array.isArray(d)||n===typeof d)return d;_r(!1,`wrong type found for ${n} `,"path",i)}return d}var Ust="m/44'/60'/0'/0/0";function sT(e){try{let t=JSON.parse(e);if((t.version!=null?parseInt(t.version):0)===3)return!0}catch{}return!1}function Ser(e,t,r){if(Y0(e,"crypto.cipher:string")==="aes-128-ctr"){let n=Y0(e,"crypto.cipherparams.iv:data!"),o=new a3(t,n);return vn(o.decrypt(r))}Xr(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function MY(e,t){let r=Dn(t),i=Y0(e,"crypto.ciphertext:data!"),n=vn(Xa(Jo([r.slice(16,32),i]))).substring(2);_r(n===Y0(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");let o=Ser(e,r.slice(0,16),i),d=rg(o);if(e.address){let _=e.address.toLowerCase();_.startsWith("0x")||(_="0x"+_),_r(Co(_)===d,"keystore address/privateKey mismatch","address",e.address)}let g={address:d,privateKey:o};if(Y0(e,"x-ethers.version:string")==="0.1"){let _=r.slice(32,64),I=Y0(e,"x-ethers.mnemonicCiphertext:data!"),N=Y0(e,"x-ethers.mnemonicCounter:data!"),T=new a3(_,N);g.mnemonic={path:Y0(e,"x-ethers.path:string")||Ust,locale:Y0(e,"x-ethers.locale:string")||"en",entropy:vn(Dn(T.decrypt(I)))}}return g}function Fst(e){let t=Y0(e,"crypto.kdf:string");if(t&&typeof t=="string"){if(t.toLowerCase()==="scrypt"){let r=Y0(e,"crypto.kdfparams.salt:data!"),i=Y0(e,"crypto.kdfparams.n:int!"),n=Y0(e,"crypto.kdfparams.r:int!"),o=Y0(e,"crypto.kdfparams.p:int!");_r(i>0&&(i&i-1)===0,"invalid kdf.N","kdf.N",i),_r(n>0&&o>0,"invalid kdf","kdf",t);let d=Y0(e,"crypto.kdfparams.dklen:int!");return _r(d===32,"invalid kdf.dklen","kdf.dflen",d),{name:"scrypt",salt:r,N:i,r:n,p:o,dkLen:64}}else if(t.toLowerCase()==="pbkdf2"){let r=Y0(e,"crypto.kdfparams.salt:data!"),i=Y0(e,"crypto.kdfparams.prf:string!"),n=i.split("-").pop();_r(n==="sha256"||n==="sha512","invalid kdf.pdf","kdf.pdf",i);let o=Y0(e,"crypto.kdfparams.c:int!"),d=Y0(e,"crypto.kdfparams.dklen:int!");return _r(d===32,"invalid kdf.dklen","kdf.dklen",d),{name:"pbkdf2",salt:r,count:o,dkLen:d,algorithm:n}}}_r(!1,"unsupported key-derivation function","kdf",t)}function UL(e,t){let r=JSON.parse(e),i=gw(t),n=Fst(r);if(n.name==="pbkdf2"){let{salt:N,count:T,dkLen:M,algorithm:D}=n,P=UA(i,N,T,M,D);return MY(r,P)}Xr(n.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:n});let{salt:o,N:d,r:g,p:y,dkLen:_}=n,I=ty(i,o,d,g,y,_);return MY(r,I)}function Lst(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function FL(e,t,r){let i=JSON.parse(e),n=gw(t),o=Fst(i);if(o.name==="pbkdf2"){r&&(r(0),await Lst(0));let{salt:T,count:M,dkLen:D,algorithm:P}=o,G=UA(n,T,M,D,P);return r&&(r(1),await Lst(0)),MY(i,G)}Xr(o.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:o});let{salt:d,N:g,r:y,p:_,dkLen:I}=o,N=await ey(n,d,g,y,_,I,r);return MY(i,N)}function Qst(e){let t=e.salt!=null?Dn(e.salt,"options.salt"):Kh(32),r=1<<17,i=8,n=1;return e.scrypt&&(e.scrypt.N&&(r=e.scrypt.N),e.scrypt.r&&(i=e.scrypt.r),e.scrypt.p&&(n=e.scrypt.p)),_r(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),_r(typeof i=="number"&&i>0&&Number.isSafeInteger(i),"invalid scrypt r parameter","options.r",i),_r(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt p parameter","options.p",n),{name:"scrypt",dkLen:32,salt:t,N:r,r:i,p:n}}function Hst(e,t,r,i){let n=Dn(r.privateKey,"privateKey"),o=i.iv!=null?Dn(i.iv,"options.iv"):Kh(16);_r(o.length===16,"invalid options.iv length","options.iv",i.iv);let d=i.uuid!=null?Dn(i.uuid,"options.uuid"):Kh(16);_r(d.length===16,"invalid options.uuid length","options.uuid",i.iv);let g=e.slice(0,16),y=e.slice(16,32),_=new a3(g,o),I=Dn(_.encrypt(n)),N=Xa(Jo([y,I])),T={address:r.address.substring(2).toLowerCase(),id:iL(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:vn(o).substring(2)},ciphertext:vn(I).substring(2),kdf:"scrypt",kdfparams:{salt:vn(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:N.substring(2)}};if(r.mnemonic){let M=i.client!=null?i.client:`ethers/${Cx}`,D=r.mnemonic.path||Ust,P=r.mnemonic.locale||"en",G=e.slice(32,64),q=Dn(r.mnemonic.entropy,"account.mnemonic.entropy"),Y=Kh(16),ne=new a3(G,Y),ce=Dn(ne.encrypt(q)),le=new Date,ae="UTC--"+(le.getUTCFullYear()+"-"+aT(le.getUTCMonth()+1,2)+"-"+aT(le.getUTCDate(),2)+"T"+aT(le.getUTCHours(),2)+"-"+aT(le.getUTCMinutes(),2)+"-"+aT(le.getUTCSeconds(),2)+".0Z")+"--"+T.address;T["x-ethers"]={client:M,gethFilename:ae,path:D,locale:P,mnemonicCounter:vn(Y).substring(2),mnemonicCiphertext:vn(ce).substring(2),version:"0.1"}}return JSON.stringify(T)}function _w(e,t,r){r==null&&(r={});let i=gw(t),n=Qst(r),o=ty(i,n.salt,n.N,n.r,n.p,64);return Hst(Dn(o),n,e,r)}async function mw(e,t,r){r==null&&(r={});let i=gw(t),n=Qst(r),o=await ey(i,n.salt,n.N,n.r,n.p,64,r.progressCallback);return Hst(Dn(o),n,e,r)}var cT="m/44'/60'/0'/0/0",Ier=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),Kb=2147483648,Cer=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),wer="0123456789abcdef";function DY(e,t){let r="";for(;e;)r=wer[e%16]+r,e=Math.trunc(e/16);for(;r.length<t*2;)r="0"+r;return"0x"+r}function _ge(e){let t=Dn(e),r=tc(Bd(Bd(t)),0,4),i=Jo([t,r]);return UC(i)}var zb={};function Gst(e,t,r,i){let n=new Uint8Array(37);e&Kb?(Xr(i!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),n.set(Dn(i),1)):n.set(Dn(r));for(let d=24;d>=0;d-=8)n[33+(d>>3)]=e>>24-d&255;let o=Dn(Zm("sha512",t,n));return{IL:o.slice(0,32),IR:o.slice(32)}}function qst(e,t){let r=t.split("/");_r(r.length>0,"invalid path","path",t),r[0]==="m"&&(_r(e.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),r.shift());let i=e;for(let n=0;n<r.length;n++){let o=r[n];if(o.match(/^[0-9]+'$/)){let d=parseInt(o.substring(0,o.length-1));_r(d<Kb,"invalid path index",`path[${n}]`,o),i=i.deriveChild(Kb+d)}else if(o.match(/^[0-9]+$/)){let d=parseInt(o);_r(d<Kb,"invalid path index",`path[${n}]`,o),i=i.deriveChild(d)}else _r(!1,"invalid path component",`path[${n}]`,o)}return i}var JR=class e extends GR{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(t,r,i,n,o,d,g,y,_){super(r,_),jl(t,zb,"HDNodeWallet"),Un(this,{publicKey:r.compressedPublicKey});let I=tc(jm(Bd(this.publicKey)),0,4);Un(this,{parentFingerprint:i,fingerprint:I,chainCode:n,path:o,index:d,depth:g}),Un(this,{mnemonic:y})}connect(t){return new e(zb,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,t)}#e(){let t={address:this.address,privateKey:this.privateKey},r=this.mnemonic;return this.path&&r&&r.wordlist.locale==="en"&&r.password===""&&(t.mnemonic={path:this.path,locale:"en",entropy:r.entropy}),t}async encrypt(t,r){return await mw(this.#e(),t,{progressCallback:r})}encryptSync(t){return _w(this.#e(),t)}get extendedKey(){return Xr(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),_ge(Jo(["0x0488ADE4",DY(this.depth,1),this.parentFingerprint,DY(this.index,4),this.chainCode,Jo(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new yw(zb,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(t){let r=Zi(t,"index");_r(r<=4294967295,"invalid index","index",r);let i=this.path;i&&(i+="/"+(r&~Kb),r&Kb&&(i+="'"));let{IR:n,IL:o}=Gst(r,this.chainCode,this.publicKey,this.privateKey),d=new rh(gl((M_(o)+BigInt(this.privateKey))%Cer,32));return new e(zb,d,this.fingerprint,vn(n),i,r,this.depth+1,this.mnemonic,this.provider)}derivePath(t){return qst(this,t)}static#t(t,r){_r(zm(t),"invalid seed","seed","[REDACTED]");let i=Dn(t,"seed");_r(i.length>=16&&i.length<=64,"invalid seed","seed","[REDACTED]");let n=Dn(Zm("sha512",Ier,i)),o=new rh(vn(n.slice(0,32)));return new e(zb,o,"0x00000000",vn(n.slice(32)),"m",0,0,r,null)}static fromExtendedKey(t){let r=Yu(eL(t));_r(r.length===82||_ge(r.slice(0,78))===t,"invalid extended key","extendedKey","[ REDACTED ]");let i=r[4],n=vn(r.slice(5,9)),o=parseInt(vn(r.slice(9,13)).substring(2),16),d=vn(r.slice(13,45)),g=r.slice(45,78);switch(vn(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":{let y=vn(g);return new yw(zb,rg(y),y,n,d,null,o,i,null)}case"0x0488ade4":case"0x04358394 ":if(g[0]!==0)break;return new e(zb,new rh(g.slice(1)),n,d,null,o,i,null,null)}_r(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(t,r,i){t==null&&(t=""),r==null&&(r=cT),i==null&&(i=Jp.wordlist());let n=qb.fromEntropy(Kh(16),t,i);return e.#t(n.computeSeed(),n).derivePath(r)}static fromMnemonic(t,r){return r||(r=cT),e.#t(t.computeSeed(),t).derivePath(r)}static fromPhrase(t,r,i,n){r==null&&(r=""),i==null&&(i=cT),n==null&&(n=Jp.wordlist());let o=qb.fromPhrase(t,r,n);return e.#t(o.computeSeed(),o).derivePath(i)}static fromSeed(t){return e.#t(t,null)}},yw=class e extends ow{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(t,r,i,n,o,d,g,y,_){super(r,_),jl(t,zb,"HDNodeVoidWallet"),Un(this,{publicKey:i});let I=tc(jm(Bd(i)),0,4);Un(this,{publicKey:i,fingerprint:I,parentFingerprint:n,chainCode:o,path:d,index:g,depth:y})}connect(t){return new e(zb,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,t)}get extendedKey(){return Xr(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),_ge(Jo(["0x0488B21E",DY(this.depth,1),this.parentFingerprint,DY(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(t){let r=Zi(t,"index");_r(r<=4294967295,"invalid index","index",r);let i=this.path;i&&(i+="/"+(r&~Kb),r&Kb&&(i+="'"));let{IR:n,IL:o}=Gst(r,this.chainCode,this.publicKey,null),d=rh.addPoints(o,this.publicKey,!0),g=rg(d);return new e(zb,g,d,this.fingerprint,vn(n),i,r,this.depth+1,this.provider)}derivePath(t){return qst(this,t)}};function mge(e){let t=Zi(e,"index");return _r(t>=0&&t<Kb,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`}function yge(e){let t=Zi(e,"index");return _r(t>=0&&t<Kb,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}J();K();z();function uT(e){try{if(JSON.parse(e).encseed)return!0}catch{}return!1}function dT(e,t){let r=JSON.parse(e),i=gw(t),n=Co(Y0(r,"ethaddr:string!")),o=gge(Y0(r,"encseed:string!"));_r(o&&o.length%16===0,"invalid encseed","json",e);let d=Dn(UA(i,i,2e3,32,"sha256")).slice(0,16),g=o.slice(0,16),y=o.slice(16),_=new PL(d,g),I=pge(Dn(_.decrypt(y))),N="";for(let T=0;T<I.length;T++)N+=String.fromCharCode(I[T]);return{address:n,privateKey:nh(N)}}J();K();z();function Vst(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}var zR=class e extends GR{constructor(t,r){typeof t=="string"&&!t.startsWith("0x")&&(t="0x"+t);let i=typeof t=="string"?new rh(t):t;super(i,r)}connect(t){return new e(this.signingKey,t)}async encrypt(t,r){let i={address:this.address,privateKey:this.privateKey};return await mw(i,t,{progressCallback:r})}encryptSync(t){let r={address:this.address,privateKey:this.privateKey};return _w(r,t)}static#e(t){if(_r(t,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in t&&t.mnemonic&&t.mnemonic.locale==="en"){let i=qb.fromEntropy(t.mnemonic.entropy),n=JR.fromMnemonic(i,t.mnemonic.path);if(n.address===t.address&&n.privateKey===t.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}let r=new e(t.privateKey);return _r(r.address===t.address,"address/privateKey mismatch","json","[ REDACTED ]"),r}static async fromEncryptedJson(t,r,i){let n=null;return sT(t)?n=await FL(t,r,i):uT(t)&&(i&&(i(0),await Vst(0)),n=dT(t,r),i&&(i(1),await Vst(0))),e.#e(n)}static fromEncryptedJsonSync(t,r){let i=null;return sT(t)?i=UL(t,r):uT(t)?i=dT(t,r):_r(!1,"invalid JSON wallet","json","[ REDACTED ]"),e.#e(i)}static createRandom(t){let r=JR.createRandom();return t?r.connect(t):r}static fromPhrase(t,r){let i=JR.fromPhrase(t);return r?i.connect(r):i}};J();K();z();J();K();z();J();K();z();J();K();z();var Oer=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function Jst(e,t){let r=(1<<e)-1,i=[],n=0,o=0,d=0;for(let g=0;g<t.length;g++)for(n=n<<6|Oer.indexOf(t[g]),o+=6;o>=e;){let y=n>>o-e;n&=(1<<o-e)-1,o-=e,y===0?d+=r:(i.push(y+d),d=0)}return i}function zst(e,t){let r=OY(e).join(",");return t.split(/,/g).forEach(i=>{let n=i.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);_r(n!==null,"internal error parsing accents","accents",t);let o=0,d=Jst(parseInt(n[3]),n[4]),g=parseInt(n[2]),y=new RegExp(`([${n[1]}])`,"g");r=r.replace(y,(_,I)=>(--d[o]===0&&(I=String.fromCharCode(I.charCodeAt(0),g),o++),I))}),r.split(",")}var QL=class extends qR{#e;constructor(t,r,i,n){super(t,r,n),this.#e=i}get _accent(){return this.#e}_decodeWords(){return zst(this._data,this._accent)}};J();K();z();var bge={en:Jp.wordlist()};function qf(e){return new Promise(t=>setTimeout(t,e))}var Kst="https://sepolia.gateway.tenderly.co",$st="https://sepolia.base.org",Ege="https://rpc-amoy.polygon.technology",kY="https://mainnet.base.org",PY={arweave:"https://turbo-gateway.com",ario:"https://api.devnet.solana.com","base-ario":kY,solana:"https://api.devnet.solana.com",ethereum:Kst,"base-eth":$st,kyve:"https://api.korellia.kyve.network",matic:Ege,pol:Ege,usdc:Kst,"base-usdc":$st,"polygon-usdc":Ege},af={arweave:"https://turbo-gateway.com",ario:"https://api.mainnet-beta.solana.com","base-ario":kY,solana:"https://api.mainnet-beta.solana.com",ethereum:"https://cloudflare-eth.com/","base-eth":kY,kyve:"https://api.kyve.network/",matic:"https://polygon-rpc.com/",pol:"https://polygon-rpc.com/",usdc:"https://cloudflare-eth.com/","base-usdc":kY,"polygon-usdc":"https://polygon-rpc.com/"};function Xst({signer:e,privateKey:t,token:r="arweave"}){if(e!==void 0)return e instanceof Xv&&(e.setPublicKey=async()=>{let i="sign this message to connect to your account",n=await e.signer.signMessage(i),o=zI(i),d=sN(ii(o),n);e.publicKey=fe.from(ii(d))}),e;if(t===void 0)throw new Error("A privateKey or signer must be provided.");switch(r){case"solana":case"ario":return new bb(t);case"ethereum":case"pol":case"matic":case"base-eth":case"usdc":case"base-usdc":case"base-ario":case"polygon-usdc":if(!gXe(t))throw new Error("A valid Ethereum private key must be provided for EthereumSigner.");return new m0(t);case"kyve":if(!pXe(t))throw new Error("A valid Kyve private key must be provided for KyveSigner.");return xer(t);case"arweave":if(!_Xe(t))throw new Error("A JWK must be provided for ArweaveSigner.");return new nb(t)}}function xer(e){return new m0(e)}function vge(e){return typeof Blob<"u"&&e instanceof Blob}function Ter(e){return new RegExp("^[a-zA-Z0-9_-]{43}$").test(e)}function Ber(e){try{return xi.isOnCurve(e)}catch{return!1}}function Mer(e){return new RegExp("^0x[a-fA-F0-9]{40}$").test(e)}function Der(e){return new RegExp("^kyve[a-zA-Z0-9]{39}$").test(e)}function ker(e,t){switch(t){case"arweave":return Ter(e);case"ario":case"solana":return Ber(e);case"ethereum":case"base-eth":case"matic":case"pol":case"base-usdc":case"base-ario":case"usdc":case"polygon-usdc":return Mer(e);case"kyve":return Der(e)}}function Zst(e){for(let t of KJ)if(ker(e,t))return t;return!1}J();K();z();qk();J();K();z();J();K();z();J();K();z();J();K();z();J();K();z();var Per=Object.defineProperty,jst=(e=>typeof Av<"u"?Av:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Av<"u"?Av:t)[r]}):e)(function(e){if(typeof Av<"u")return Av.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),LY=(e,t)=>{for(var r in t)Per(e,r,{get:t[r],enumerable:!0})},UY={84532:{usdcAddress:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",usdcName:"USDC"},8453:{usdcAddress:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",usdcName:"USD Coin"},43113:{usdcAddress:"0x5425890298aed601595a70AB815c96711a31Bc65",usdcName:"USD Coin"},43114:{usdcAddress:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",usdcName:"USD Coin"},4689:{usdcAddress:"0xcdf79194c6c285077a58da47641d4dbe51f63542",usdcName:"Bridged USDC"},103:{usdcAddress:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",usdcName:"USDC"},101:{usdcAddress:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",usdcName:"USDC"},1328:{usdcAddress:"0x4fcf1784b31630811181f670aea7a7bef803eaed",usdcName:"USDC"},1329:{usdcAddress:"0xe15fc38f6d8c56af07bbcbe3baf5708a2bf42392",usdcName:"USDC"},137:{usdcAddress:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",usdcName:"USD Coin"},80002:{usdcAddress:"0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582",usdcName:"USDC"},3338:{usdcAddress:"0xbbA60da06c2c5424f03f7434542280FCAd453d10",usdcName:"USDC"},2741:{usdcAddress:"0x84a71ccd554cc1b02749b35d22f684cc8ec987e1",usdcName:"Bridged USDC"},11124:{usdcAddress:"0xe4C7fBB0a626ed208021ccabA6Be1566905E2dFc",usdcName:"Bridged USDC"},1514:{usdcAddress:"0xF1815bd50389c46847f0Bda824eC8da914045D14",usdcName:"Bridged USDC"},41923:{usdcAddress:"0x12a272A581feE5577A5dFa371afEB4b2F3a8C2F8",usdcName:"Bridged USDC (Stargate)"},324705682:{usdcAddress:"0x2e08028E3C4c2356572E096d8EF835cD5C6030bD",usdcName:"Bridged USDC (SKALE Bridge)"}};var ect=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationUsed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"Blacklisted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newBlacklister",type:"address"}],name:"BlacklisterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"burner",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newMasterMinter",type:"address"}],name:"MasterMinterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!1,internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"MinterConfigured",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldMinter",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"PauserChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRescuer",type:"address"}],name:"RescuerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"UnBlacklisted",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{inputs:[],name:"CANCEL_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"RECEIVE_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TRANSFER_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"authorizationState",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"blacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"blacklister",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"cancelAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"cancelAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"},{internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"configureMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"currency",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"decrement",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"increment",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"tokenName",type:"string"},{internalType:"string",name:"tokenSymbol",type:"string"},{internalType:"string",name:"tokenCurrency",type:"string"},{internalType:"uint8",name:"tokenDecimals",type:"uint8"},{internalType:"address",name:"newMasterMinter",type:"address"},{internalType:"address",name:"newPauser",type:"address"},{internalType:"address",name:"newBlacklister",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newName",type:"string"}],name:"initializeV2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"lostAndFound",type:"address"}],name:"initializeV2_1",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"accountsToBlacklist",type:"address[]"},{internalType:"string",name:"newSymbol",type:"string"}],name:"initializeV2_2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"isBlacklisted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"masterMinter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"minterAllowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauser",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"receiveWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"receiveWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"removeMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenContract",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"rescueERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rescuer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"transferWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"transferWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"unBlacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newBlacklister",type:"address"}],name:"updateBlacklister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newMasterMinter",type:"address"}],name:"updateMasterMinter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newPauser",type:"address"}],name:"updatePauser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newRescuer",type:"address"}],name:"updateRescuer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"}];function Rge(e){return UY[e.toString()]}J();K();z();var Ws;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let d of n)o[d]=d;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(g=>typeof n[n[g]]!="number"),d={};for(let g of o)d[g]=n[g];return e.objectValues(d)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let d in n)Object.prototype.hasOwnProperty.call(n,d)&&o.push(d);return o},e.find=(n,o)=>{for(let d of n)if(o(d))return d},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(d=>typeof d=="string"?`'${d}'`:d).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(Ws||(Ws={}));var Ige;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Ige||(Ige={}));var Fi=Ws.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$R=e=>{switch(typeof e){case"undefined":return Fi.undefined;case"string":return Fi.string;case"number":return isNaN(e)?Fi.nan:Fi.number;case"boolean":return Fi.boolean;case"function":return Fi.function;case"bigint":return Fi.bigint;case"symbol":return Fi.symbol;case"object":return Array.isArray(e)?Fi.array:e===null?Fi.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Fi.promise:typeof Map<"u"&&e instanceof Map?Fi.map:typeof Set<"u"&&e instanceof Set?Fi.set:typeof Date<"u"&&e instanceof Date?Fi.date:Fi.object;default:return Fi.unknown}},Zn=Ws.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ler=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ag=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},i={_errors:[]},n=o=>{for(let d of o.issues)if(d.code==="invalid_union")d.unionErrors.map(n);else if(d.code==="invalid_return_type")n(d.returnTypeError);else if(d.code==="invalid_arguments")n(d.argumentsError);else if(d.path.length===0)i._errors.push(r(d));else{let g=i,y=0;for(;y<d.path.length;){let _=d.path[y];y===d.path.length-1?(g[_]=g[_]||{_errors:[]},g[_]._errors.push(r(d))):g[_]=g[_]||{_errors:[]},g=g[_],y++}}};return n(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ws.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},i=[];for(let n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};ag.create=e=>new ag(e);var hT=(e,t)=>{let r;switch(e.code){case Zn.invalid_type:e.received===Fi.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Zn.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ws.jsonStringifyReplacer)}`;break;case Zn.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ws.joinValues(e.keys,", ")}`;break;case Zn.invalid_union:r="Invalid input";break;case Zn.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ws.joinValues(e.options)}`;break;case Zn.invalid_enum_value:r=`Invalid enum value. Expected ${Ws.joinValues(e.options)}, received '${e.received}'`;break;case Zn.invalid_arguments:r="Invalid function arguments";break;case Zn.invalid_return_type:r="Invalid function return type";break;case Zn.invalid_date:r="Invalid date";break;case Zn.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ws.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Zn.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Zn.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Zn.custom:r="Invalid input";break;case Zn.invalid_intersection_types:r="Intersection results could not be merged";break;case Zn.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Zn.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ws.assertNever(e)}return{message:r}},ict=hT;function Uer(e){ict=e}function FY(){return ict}var QY=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,o=[...r,...n.path||[]],d={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let g="",y=i.filter(_=>!!_).slice().reverse();for(let _ of y)g=_(d,{data:t,defaultError:g}).message;return{...n,path:o,message:g}},Fer=[];function Oi(e,t){let r=FY(),i=QY({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===hT?void 0:hT].filter(n=>!!n)});e.common.issues.push(i)}var Yh=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let n of r){if(n.status==="aborted")return Wo;n.status==="dirty"&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let n of r){let o=await n.key,d=await n.value;i.push({key:o,value:d})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let n of r){let{key:o,value:d}=n;if(o.status==="aborted"||d.status==="aborted")return Wo;o.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof d.value<"u"||n.alwaysSet)&&(i[o.value]=d.value)}return{status:t.value,value:i}}},Wo=Object.freeze({status:"aborted"}),lT=e=>({status:"dirty",value:e}),HA=e=>({status:"valid",value:e}),Cge=e=>e.status==="aborted",wge=e=>e.status==="dirty",bw=e=>e.status==="valid",qL=e=>typeof Promise<"u"&&e instanceof Promise;function HY(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)}function oct(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r}var so;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(so||(so={}));var HL,GL,J_=class{constructor(t,r,i,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},tct=(e,t)=>{if(bw(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new ag(e.common.issues);return this._error=r,this._error}}};function va(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(d,g)=>{var y,_;let{message:I}=e;return d.code==="invalid_enum_value"?{message:I??g.defaultError}:typeof g.data>"u"?{message:(y=I??i)!==null&&y!==void 0?y:g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:(_=I??r)!==null&&_!==void 0?_:g.defaultError}},description:n}}var Ra=class{get description(){return this._def.description}_getType(t){return $R(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:$R(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yh,ctx:{common:t.parent.common,data:t.data,parsedType:$R(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(qL(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){var i;let n={common:{issues:[],async:(i=r?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$R(t)},o=this._parseSync({data:t,path:n.path,parent:n});return tct(n,o)}"~validate"(t){var r,i;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$R(t)};if(!this["~standard"].async)try{let o=this._parseSync({data:t,path:[],parent:n});return bw(o)?{value:o.value}:{issues:n.common.issues}}catch(o){!((i=(r=o?.message)===null||r===void 0?void 0:r.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>bw(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$R(t)},n=this._parse({data:t,path:i.path,parent:i}),o=await(qL(n)?n:Promise.resolve(n));return tct(i,o)}refine(t,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let d=t(n),g=()=>o.addIssue({code:Zn.custom,...i(n)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(t,r){return this._refinement((i,n)=>t(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(t){return new sg({schema:this,typeName:zo.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return V_.create(this,this._def)}nullable(){return Yb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return WR.create(this)}promise(){return d3.create(this,this._def)}or(t){return ww.create([this,t],this._def)}and(t){return Ow.create(this,t,this._def)}transform(t){return new sg({...va(this._def),schema:this,typeName:zo.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Mw({...va(this._def),innerType:this,defaultValue:r,typeName:zo.ZodDefault})}brand(){return new VL({typeName:zo.ZodBranded,type:this,...va(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Dw({...va(this._def),innerType:this,catchValue:r,typeName:zo.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return JL.create(this,t)}readonly(){return kw.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Qer=/^c[^\s-]{8,}$/i,Her=/^[0-9a-z]+$/,Ger=/^[0-9A-HJKMNP-TV-Z]{26}$/i,qer=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ver=/^[a-z0-9_-]{21}$/i,Jer=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zer=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|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="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ttr=new RegExp(`^${act}$`);function sct(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function rtr(e){return new RegExp(`^${sct(e)}$`)}function cct(e){let t=`${act}T${sct(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function ntr(e,t){return!!((t==="v4"||!t)&&Yer.test(e)||(t==="v6"||!t)&&Xer.test(e))}function itr(e,t){if(!Jer.test(e))return!1;try{let[r]=e.split("."),i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||!n.typ||!n.alg||t&&n.alg!==t)}catch{return!1}}function otr(e,t){return!!((t==="v4"||!t)&&Wer.test(e)||(t==="v6"||!t)&&Zer.test(e))}var c3=class e extends Ra{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Fi.string){let o=this._getOrReturnCtx(t);return Oi(o,{code:Zn.invalid_type,expected:Fi.string,received:o.parsedType}),Wo}let i=new Yh,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let d=t.data.length>o.value,g=t.data.length<o.value;(d||g)&&(n=this._getOrReturnCtx(t,n),d?Oi(n,{code:Zn.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):g&&Oi(n,{code:Zn.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Ker.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"email",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Sge||(Sge=new RegExp($er,"u")),Sge.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"emoji",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")qer.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"uuid",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")Ver.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"nanoid",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Qer.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"cuid",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Her.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"cuid2",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Ger.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"ulid",code:Zn.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),Oi(n,{validation:"url",code:Zn.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"regex",code:Zn.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?cct(o).test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?ttr.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?rtr(o).test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?zer.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"duration",code:Zn.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?ntr(t.data,o.version)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"ip",code:Zn.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?itr(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"jwt",code:Zn.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?otr(t.data,o.version)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"cidr",code:Zn.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?jer.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"base64",code:Zn.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?etr.test(t.data)||(n=this._getOrReturnCtx(t,n),Oi(n,{validation:"base64url",code:Zn.invalid_string,message:o.message}),i.dirty()):Ws.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(n=>t.test(n),{validation:r,code:Zn.invalid_string,...so.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...so.errToObj(t)})}url(t){return this._addCheck({kind:"url",...so.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...so.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...so.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...so.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...so.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...so.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...so.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...so.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...so.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...so.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...so.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...so.errToObj(t)})}datetime(t){var r,i;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,local:(i=t?.local)!==null&&i!==void 0?i:!1,...so.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...so.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...so.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...so.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...so.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...so.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...so.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...so.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...so.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...so.errToObj(r)})}nonempty(t){return this.min(1,so.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};c3.create=e=>{var t;return new c3({checks:[],typeName:zo.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...va(e)})};function atr(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=parseInt(e.toFixed(n).replace(".","")),d=parseInt(t.toFixed(n).replace(".",""));return o%d/Math.pow(10,n)}var Ew=class e extends Ra{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Fi.number){let o=this._getOrReturnCtx(t);return Oi(o,{code:Zn.invalid_type,expected:Fi.number,received:o.parsedType}),Wo}let i,n=new Yh;for(let o of this._def.checks)o.kind==="int"?Ws.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?atr(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.not_finite,message:o.message}),n.dirty()):Ws.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,so.toString(r))}gt(t,r){return this.setLimit("min",t,!1,so.toString(r))}lte(t,r){return this.setLimit("max",t,!0,so.toString(r))}lt(t,r){return this.setLimit("max",t,!1,so.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:so.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:so.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:so.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:so.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:so.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:so.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:so.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:so.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:so.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:so.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ws.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Ew.create=e=>new Ew({checks:[],typeName:zo.ZodNumber,coerce:e?.coerce||!1,...va(e)});var vw=class e extends Ra{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Fi.bigint)return this._getInvalidInput(t);let i,n=new Yh;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),Oi(i,{code:Zn.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):Ws.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return Oi(r,{code:Zn.invalid_type,expected:Fi.bigint,received:r.parsedType}),Wo}gte(t,r){return this.setLimit("min",t,!0,so.toString(r))}gt(t,r){return this.setLimit("min",t,!1,so.toString(r))}lte(t,r){return this.setLimit("max",t,!0,so.toString(r))}lt(t,r){return this.setLimit("max",t,!1,so.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:so.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:so.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:so.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:so.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:so.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:so.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};vw.create=e=>{var t;return new vw({checks:[],typeName:zo.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...va(e)})};var Rw=class extends Ra{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Fi.boolean){let i=this._getOrReturnCtx(t);return Oi(i,{code:Zn.invalid_type,expected:Fi.boolean,received:i.parsedType}),Wo}return HA(t.data)}};Rw.create=e=>new Rw({typeName:zo.ZodBoolean,coerce:e?.coerce||!1,...va(e)});var Sw=class e extends Ra{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Fi.date){let o=this._getOrReturnCtx(t);return Oi(o,{code:Zn.invalid_type,expected:Fi.date,received:o.parsedType}),Wo}if(isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return Oi(o,{code:Zn.invalid_date}),Wo}let i=new Yh,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),Oi(n,{code:Zn.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):Ws.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:so.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:so.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Sw.create=e=>new Sw({checks:[],coerce:e?.coerce||!1,typeName:zo.ZodDate,...va(e)});var AT=class extends Ra{_parse(t){if(this._getType(t)!==Fi.symbol){let i=this._getOrReturnCtx(t);return Oi(i,{code:Zn.invalid_type,expected:Fi.symbol,received:i.parsedType}),Wo}return HA(t.data)}};AT.create=e=>new AT({typeName:zo.ZodSymbol,...va(e)});var Iw=class extends Ra{_parse(t){if(this._getType(t)!==Fi.undefined){let i=this._getOrReturnCtx(t);return Oi(i,{code:Zn.invalid_type,expected:Fi.undefined,received:i.parsedType}),Wo}return HA(t.data)}};Iw.create=e=>new Iw({typeName:zo.ZodUndefined,...va(e)});var Cw=class extends Ra{_parse(t){if(this._getType(t)!==Fi.null){let i=this._getOrReturnCtx(t);return Oi(i,{code:Zn.invalid_type,expected:Fi.null,received:i.parsedType}),Wo}return HA(t.data)}};Cw.create=e=>new Cw({typeName:zo.ZodNull,...va(e)});var u3=class extends Ra{constructor(){super(...arguments),this._any=!0}_parse(t){return HA(t.data)}};u3.create=e=>new u3({typeName:zo.ZodAny,...va(e)});var YR=class extends Ra{constructor(){super(...arguments),this._unknown=!0}_parse(t){return HA(t.data)}};YR.create=e=>new YR({typeName:zo.ZodUnknown,...va(e)});var cy=class extends Ra{_parse(t){let r=this._getOrReturnCtx(t);return Oi(r,{code:Zn.invalid_type,expected:Fi.never,received:r.parsedType}),Wo}};cy.create=e=>new cy({typeName:zo.ZodNever,...va(e)});var pT=class extends Ra{_parse(t){if(this._getType(t)!==Fi.undefined){let i=this._getOrReturnCtx(t);return Oi(i,{code:Zn.invalid_type,expected:Fi.void,received:i.parsedType}),Wo}return HA(t.data)}};pT.create=e=>new pT({typeName:zo.ZodVoid,...va(e)});var WR=class e extends Ra{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),n=this._def;if(r.parsedType!==Fi.array)return Oi(r,{code:Zn.invalid_type,expected:Fi.array,received:r.parsedType}),Wo;if(n.exactLength!==null){let d=r.data.length>n.exactLength.value,g=r.data.length<n.exactLength.value;(d||g)&&(Oi(r,{code:d?Zn.too_big:Zn.too_small,minimum:g?n.exactLength.value:void 0,maximum:d?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(Oi(r,{code:Zn.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(Oi(r,{code:Zn.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((d,g)=>n.type._parseAsync(new J_(r,d,r.path,g)))).then(d=>Yh.mergeArray(i,d));let o=[...r.data].map((d,g)=>n.type._parseSync(new J_(r,d,r.path,g)));return Yh.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:so.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:so.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:so.toString(r)}})}nonempty(t){return this.min(1,t)}};WR.create=(e,t)=>new WR({type:e,minLength:null,maxLength:null,exactLength:null,typeName:zo.ZodArray,...va(t)});function fT(e){if(e instanceof zp){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=V_.create(fT(i))}return new zp({...e._def,shape:()=>t})}else return e instanceof WR?new WR({...e._def,type:fT(e.element)}):e instanceof V_?V_.create(fT(e.unwrap())):e instanceof Yb?Yb.create(fT(e.unwrap())):e instanceof $b?$b.create(e.items.map(t=>fT(t))):e}var zp=class e extends Ra{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Ws.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Fi.object){let _=this._getOrReturnCtx(t);return Oi(_,{code:Zn.invalid_type,expected:Fi.object,received:_.parsedType}),Wo}let{status:i,ctx:n}=this._processInputParams(t),{shape:o,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof cy&&this._def.unknownKeys==="strip"))for(let _ in n.data)d.includes(_)||g.push(_);let y=[];for(let _ of d){let I=o[_],N=n.data[_];y.push({key:{status:"valid",value:_},value:I._parse(new J_(n,N,n.path,_)),alwaysSet:_ in n.data})}if(this._def.catchall instanceof cy){let _=this._def.unknownKeys;if(_==="passthrough")for(let I of g)y.push({key:{status:"valid",value:I},value:{status:"valid",value:n.data[I]}});else if(_==="strict")g.length>0&&(Oi(n,{code:Zn.unrecognized_keys,keys:g}),i.dirty());else if(_!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let _=this._def.catchall;for(let I of g){let N=n.data[I];y.push({key:{status:"valid",value:I},value:_._parse(new J_(n,N,n.path,I)),alwaysSet:I in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let _=[];for(let I of y){let N=await I.key,T=await I.value;_.push({key:N,value:T,alwaysSet:I.alwaysSet})}return _}).then(_=>Yh.mergeObjectSync(i,_)):Yh.mergeObjectSync(i,y)}get shape(){return this._def.shape()}strict(t){return so.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{var n,o,d,g;let y=(d=(o=(n=this._def).errorMap)===null||o===void 0?void 0:o.call(n,r,i).message)!==null&&d!==void 0?d:i.defaultError;return r.code==="unrecognized_keys"?{message:(g=so.errToObj(t).message)!==null&&g!==void 0?g:y}:{message:y}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:zo.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return Ws.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return Ws.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new e({...this._def,shape:()=>r})}deepPartial(){return fT(this)}partial(t){let r={};return Ws.objectKeys(this.shape).forEach(i=>{let n=this.shape[i];t&&!t[i]?r[i]=n:r[i]=n.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return Ws.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof V_;)o=o._def.innerType;r[i]=o}}),new e({...this._def,shape:()=>r})}keyof(){return uct(Ws.objectKeys(this.shape))}};zp.create=(e,t)=>new zp({shape:()=>e,unknownKeys:"strip",catchall:cy.create(),typeName:zo.ZodObject,...va(t)});zp.strictCreate=(e,t)=>new zp({shape:()=>e,unknownKeys:"strict",catchall:cy.create(),typeName:zo.ZodObject,...va(t)});zp.lazycreate=(e,t)=>new zp({shape:e,unknownKeys:"strip",catchall:cy.create(),typeName:zo.ZodObject,...va(t)});var ww=class extends Ra{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function n(o){for(let g of o)if(g.result.status==="valid")return g.result;for(let g of o)if(g.result.status==="dirty")return r.common.issues.push(...g.ctx.common.issues),g.result;let d=o.map(g=>new ag(g.ctx.common.issues));return Oi(r,{code:Zn.invalid_union,unionErrors:d}),Wo}if(r.common.async)return Promise.all(i.map(async o=>{let d={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:d}),ctx:d}})).then(n);{let o,d=[];for(let y of i){let _={...r,common:{...r.common,issues:[]},parent:null},I=y._parseSync({data:r.data,path:r.path,parent:_});if(I.status==="valid")return I;I.status==="dirty"&&!o&&(o={result:I,ctx:_}),_.common.issues.length&&d.push(_.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let g=d.map(y=>new ag(y));return Oi(r,{code:Zn.invalid_union,unionErrors:g}),Wo}}get options(){return this._def.options}};ww.create=(e,t)=>new ww({options:e,typeName:zo.ZodUnion,...va(t)});var KR=e=>e instanceof Nw?KR(e.schema):e instanceof sg?KR(e.innerType()):e instanceof xw?[e.value]:e instanceof Tw?e.options:e instanceof Bw?Ws.objectValues(e.enum):e instanceof Mw?KR(e._def.innerType):e instanceof Iw?[void 0]:e instanceof Cw?[null]:e instanceof V_?[void 0,...KR(e.unwrap())]:e instanceof Yb?[null,...KR(e.unwrap())]:e instanceof VL||e instanceof kw?KR(e.unwrap()):e instanceof Dw?KR(e._def.innerType):[],GY=class e extends Ra{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Fi.object)return Oi(r,{code:Zn.invalid_type,expected:Fi.object,received:r.parsedType}),Wo;let i=this.discriminator,n=r.data[i],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(Oi(r,{code:Zn.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Wo)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let n=new Map;for(let o of r){let d=KR(o.shape[t]);if(!d.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let g of d){if(n.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);n.set(g,o)}}return new e({typeName:zo.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...va(i)})}};function Oge(e,t){let r=$R(e),i=$R(t);if(e===t)return{valid:!0,data:e};if(r===Fi.object&&i===Fi.object){let n=Ws.objectKeys(t),o=Ws.objectKeys(e).filter(g=>n.indexOf(g)!==-1),d={...e,...t};for(let g of o){let y=Oge(e[g],t[g]);if(!y.valid)return{valid:!1};d[g]=y.data}return{valid:!0,data:d}}else if(r===Fi.array&&i===Fi.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let d=e[o],g=t[o],y=Oge(d,g);if(!y.valid)return{valid:!1};n.push(y.data)}return{valid:!0,data:n}}else return r===Fi.date&&i===Fi.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ow=class extends Ra{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=(o,d)=>{if(Cge(o)||Cge(d))return Wo;let g=Oge(o.value,d.value);return g.valid?((wge(o)||wge(d))&&r.dirty(),{status:r.value,value:g.data}):(Oi(i,{code:Zn.invalid_intersection_types}),Wo)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,d])=>n(o,d)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Ow.create=(e,t,r)=>new Ow({left:e,right:t,typeName:zo.ZodIntersection,...va(r)});var $b=class e extends Ra{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Fi.array)return Oi(i,{code:Zn.invalid_type,expected:Fi.array,received:i.parsedType}),Wo;if(i.data.length<this._def.items.length)return Oi(i,{code:Zn.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Wo;!this._def.rest&&i.data.length>this._def.items.length&&(Oi(i,{code:Zn.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...i.data].map((d,g)=>{let y=this._def.items[g]||this._def.rest;return y?y._parse(new J_(i,d,i.path,g)):null}).filter(d=>!!d);return i.common.async?Promise.all(o).then(d=>Yh.mergeArray(r,d)):Yh.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};$b.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new $b({items:e,typeName:zo.ZodTuple,rest:null,...va(t)})};var qY=class e extends Ra{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Fi.object)return Oi(i,{code:Zn.invalid_type,expected:Fi.object,received:i.parsedType}),Wo;let n=[],o=this._def.keyType,d=this._def.valueType;for(let g in i.data)n.push({key:o._parse(new J_(i,g,i.path,g)),value:d._parse(new J_(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?Yh.mergeObjectAsync(r,n):Yh.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof Ra?new e({keyType:t,valueType:r,typeName:zo.ZodRecord,...va(i)}):new e({keyType:c3.create(),valueType:t,typeName:zo.ZodRecord,...va(r)})}},gT=class extends Ra{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Fi.map)return Oi(i,{code:Zn.invalid_type,expected:Fi.map,received:i.parsedType}),Wo;let n=this._def.keyType,o=this._def.valueType,d=[...i.data.entries()].map(([g,y],_)=>({key:n._parse(new J_(i,g,i.path,[_,"key"])),value:o._parse(new J_(i,y,i.path,[_,"value"]))}));if(i.common.async){let g=new Map;return Promise.resolve().then(async()=>{for(let y of d){let _=await y.key,I=await y.value;if(_.status==="aborted"||I.status==="aborted")return Wo;(_.status==="dirty"||I.status==="dirty")&&r.dirty(),g.set(_.value,I.value)}return{status:r.value,value:g}})}else{let g=new Map;for(let y of d){let _=y.key,I=y.value;if(_.status==="aborted"||I.status==="aborted")return Wo;(_.status==="dirty"||I.status==="dirty")&&r.dirty(),g.set(_.value,I.value)}return{status:r.value,value:g}}}};gT.create=(e,t,r)=>new gT({valueType:t,keyType:e,typeName:zo.ZodMap,...va(r)});var _T=class e extends Ra{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Fi.set)return Oi(i,{code:Zn.invalid_type,expected:Fi.set,received:i.parsedType}),Wo;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(Oi(i,{code:Zn.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(Oi(i,{code:Zn.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function d(y){let _=new Set;for(let I of y){if(I.status==="aborted")return Wo;I.status==="dirty"&&r.dirty(),_.add(I.value)}return{status:r.value,value:_}}let g=[...i.data.values()].map((y,_)=>o._parse(new J_(i,y,i.path,_)));return i.common.async?Promise.all(g).then(y=>d(y)):d(g)}min(t,r){return new e({...this._def,minSize:{value:t,message:so.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:so.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};_T.create=(e,t)=>new _T({valueType:e,minSize:null,maxSize:null,typeName:zo.ZodSet,...va(t)});var VY=class e extends Ra{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Fi.function)return Oi(r,{code:Zn.invalid_type,expected:Fi.function,received:r.parsedType}),Wo;function i(g,y){return QY({data:g,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,FY(),hT].filter(_=>!!_),issueData:{code:Zn.invalid_arguments,argumentsError:y}})}function n(g,y){return QY({data:g,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,FY(),hT].filter(_=>!!_),issueData:{code:Zn.invalid_return_type,returnTypeError:y}})}let o={errorMap:r.common.contextualErrorMap},d=r.data;if(this._def.returns instanceof d3){let g=this;return HA(async function(...y){let _=new ag([]),I=await g._def.args.parseAsync(y,o).catch(M=>{throw _.addIssue(i(y,M)),_}),N=await Reflect.apply(d,this,I);return await g._def.returns._def.type.parseAsync(N,o).catch(M=>{throw _.addIssue(n(N,M)),_})})}else{let g=this;return HA(function(...y){let _=g._def.args.safeParse(y,o);if(!_.success)throw new ag([i(y,_.error)]);let I=Reflect.apply(d,this,_.data),N=g._def.returns.safeParse(I,o);if(!N.success)throw new ag([n(I,N.error)]);return N.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:$b.create(t).rest(YR.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||$b.create([]).rest(YR.create()),returns:r||YR.create(),typeName:zo.ZodFunction,...va(i)})}},Nw=class extends Ra{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Nw.create=(e,t)=>new Nw({getter:e,typeName:zo.ZodLazy,...va(t)});var xw=class extends Ra{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return Oi(r,{received:r.data,code:Zn.invalid_literal,expected:this._def.value}),Wo}return{status:"valid",value:t.data}}get value(){return this._def.value}};xw.create=(e,t)=>new xw({value:e,typeName:zo.ZodLiteral,...va(t)});function uct(e,t){return new Tw({values:e,typeName:zo.ZodEnum,...va(t)})}var Tw=class e extends Ra{constructor(){super(...arguments),HL.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return Oi(r,{expected:Ws.joinValues(i),received:r.parsedType,code:Zn.invalid_type}),Wo}if(HY(this,HL,"f")||oct(this,HL,new Set(this._def.values),"f"),!HY(this,HL,"f").has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return Oi(r,{received:r.data,code:Zn.invalid_enum_value,options:i}),Wo}return HA(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};HL=new WeakMap;Tw.create=uct;var Bw=class extends Ra{constructor(){super(...arguments),GL.set(this,void 0)}_parse(t){let r=Ws.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==Fi.string&&i.parsedType!==Fi.number){let n=Ws.objectValues(r);return Oi(i,{expected:Ws.joinValues(n),received:i.parsedType,code:Zn.invalid_type}),Wo}if(HY(this,GL,"f")||oct(this,GL,new Set(Ws.getValidEnumValues(this._def.values)),"f"),!HY(this,GL,"f").has(t.data)){let n=Ws.objectValues(r);return Oi(i,{received:i.data,code:Zn.invalid_enum_value,options:n}),Wo}return HA(t.data)}get enum(){return this._def.values}};GL=new WeakMap;Bw.create=(e,t)=>new Bw({values:e,typeName:zo.ZodNativeEnum,...va(t)});var d3=class extends Ra{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Fi.promise&&r.common.async===!1)return Oi(r,{code:Zn.invalid_type,expected:Fi.promise,received:r.parsedType}),Wo;let i=r.parsedType===Fi.promise?r.data:Promise.resolve(r.data);return HA(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};d3.create=(e,t)=>new d3({type:e,typeName:zo.ZodPromise,...va(t)});var sg=class extends Ra{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===zo.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:d=>{Oi(i,d),d.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let d=n.transform(i.data,o);if(i.common.async)return Promise.resolve(d).then(async g=>{if(r.value==="aborted")return Wo;let y=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return y.status==="aborted"?Wo:y.status==="dirty"||r.value==="dirty"?lT(y.value):y});{if(r.value==="aborted")return Wo;let g=this._def.schema._parseSync({data:d,path:i.path,parent:i});return g.status==="aborted"?Wo:g.status==="dirty"||r.value==="dirty"?lT(g.value):g}}if(n.type==="refinement"){let d=g=>{let y=n.refinement(g,o);if(i.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(i.common.async===!1){let g=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return g.status==="aborted"?Wo:(g.status==="dirty"&&r.dirty(),d(g.value),{status:r.value,value:g.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(g=>g.status==="aborted"?Wo:(g.status==="dirty"&&r.dirty(),d(g.value).then(()=>({status:r.value,value:g.value}))))}if(n.type==="transform")if(i.common.async===!1){let d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!bw(d))return d;let g=n.transform(d.value,o);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:g}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>bw(d)?Promise.resolve(n.transform(d.value,o)).then(g=>({status:r.value,value:g})):d);Ws.assertNever(n)}};sg.create=(e,t,r)=>new sg({schema:e,typeName:zo.ZodEffects,effect:t,...va(r)});sg.createWithPreprocess=(e,t,r)=>new sg({schema:t,effect:{type:"preprocess",transform:e},typeName:zo.ZodEffects,...va(r)});var V_=class extends Ra{_parse(t){return this._getType(t)===Fi.undefined?HA(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};V_.create=(e,t)=>new V_({innerType:e,typeName:zo.ZodOptional,...va(t)});var Yb=class extends Ra{_parse(t){return this._getType(t)===Fi.null?HA(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Yb.create=(e,t)=>new Yb({innerType:e,typeName:zo.ZodNullable,...va(t)});var Mw=class extends Ra{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===Fi.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Mw.create=(e,t)=>new Mw({innerType:e,typeName:zo.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...va(t)});var Dw=class extends Ra{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return qL(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ag(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new ag(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Dw.create=(e,t)=>new Dw({innerType:e,typeName:zo.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...va(t)});var mT=class extends Ra{_parse(t){if(this._getType(t)!==Fi.nan){let i=this._getOrReturnCtx(t);return Oi(i,{code:Zn.invalid_type,expected:Fi.nan,received:i.parsedType}),Wo}return{status:"valid",value:t.data}}};mT.create=e=>new mT({typeName:zo.ZodNaN,...va(e)});var str=Symbol("zod_brand"),VL=class extends Ra{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},JL=class e extends Ra{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?Wo:o.status==="dirty"?(r.dirty(),lT(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?Wo:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:zo.ZodPipeline})}},kw=class extends Ra{_parse(t){let r=this._def.innerType._parse(t),i=n=>(bw(n)&&(n.value=Object.freeze(n.value)),n);return qL(r)?r.then(n=>i(n)):i(r)}unwrap(){return this._def.innerType}};kw.create=(e,t)=>new kw({innerType:e,typeName:zo.ZodReadonly,...va(t)});function rct(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function dct(e,t={},r){return e?u3.create().superRefine((i,n)=>{var o,d;let g=e(i);if(g instanceof Promise)return g.then(y=>{var _,I;if(!y){let N=rct(t,i),T=(I=(_=N.fatal)!==null&&_!==void 0?_:r)!==null&&I!==void 0?I:!0;n.addIssue({code:"custom",...N,fatal:T})}});if(!g){let y=rct(t,i),_=(d=(o=y.fatal)!==null&&o!==void 0?o:r)!==null&&d!==void 0?d:!0;n.addIssue({code:"custom",...y,fatal:_})}}):u3.create()}var ctr={object:zp.lazycreate},zo;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(zo||(zo={}));var utr=(e,t={message:`Input not instance of ${e.name}`})=>dct(r=>r instanceof e,t),fct=c3.create,lct=Ew.create,dtr=mT.create,ftr=vw.create,hct=Rw.create,ltr=Sw.create,htr=AT.create,Atr=Iw.create,ptr=Cw.create,gtr=u3.create,_tr=YR.create,mtr=cy.create,ytr=pT.create,btr=WR.create,Etr=zp.create,vtr=zp.strictCreate,Rtr=ww.create,Str=GY.create,Itr=Ow.create,Ctr=$b.create,wtr=qY.create,Otr=gT.create,Ntr=_T.create,xtr=VY.create,Ttr=Nw.create,Btr=xw.create,Mtr=Tw.create,Dtr=Bw.create,ktr=d3.create,nct=sg.create,Ptr=V_.create,Ltr=Yb.create,Utr=sg.createWithPreprocess,Ftr=JL.create,Qtr=()=>fct().optional(),Htr=()=>lct().optional(),Gtr=()=>hct().optional(),qtr={string:(e=>c3.create({...e,coerce:!0})),number:(e=>Ew.create({...e,coerce:!0})),boolean:(e=>Rw.create({...e,coerce:!0})),bigint:(e=>vw.create({...e,coerce:!0})),date:(e=>Sw.create({...e,coerce:!0}))},Vtr=Wo,jn=Object.freeze({__proto__:null,defaultErrorMap:hT,setErrorMap:Uer,getErrorMap:FY,makeIssue:QY,EMPTY_PATH:Fer,addIssueToContext:Oi,ParseStatus:Yh,INVALID:Wo,DIRTY:lT,OK:HA,isAborted:Cge,isDirty:wge,isValid:bw,isAsync:qL,get util(){return Ws},get objectUtil(){return Ige},ZodParsedType:Fi,getParsedType:$R,ZodType:Ra,datetimeRegex:cct,ZodString:c3,ZodNumber:Ew,ZodBigInt:vw,ZodBoolean:Rw,ZodDate:Sw,ZodSymbol:AT,ZodUndefined:Iw,ZodNull:Cw,ZodAny:u3,ZodUnknown:YR,ZodNever:cy,ZodVoid:pT,ZodArray:WR,ZodObject:zp,ZodUnion:ww,ZodDiscriminatedUnion:GY,ZodIntersection:Ow,ZodTuple:$b,ZodRecord:qY,ZodMap:gT,ZodSet:_T,ZodFunction:VY,ZodLazy:Nw,ZodLiteral:xw,ZodEnum:Tw,ZodNativeEnum:Bw,ZodPromise:d3,ZodEffects:sg,ZodTransformer:sg,ZodOptional:V_,ZodNullable:Yb,ZodDefault:Mw,ZodCatch:Dw,ZodNaN:mT,BRAND:str,ZodBranded:VL,ZodPipeline:JL,ZodReadonly:kw,custom:dct,Schema:Ra,ZodSchema:Ra,late:ctr,get ZodFirstPartyTypeKind(){return zo},coerce:qtr,any:gtr,array:btr,bigint:ftr,boolean:hct,date:ltr,discriminatedUnion:Str,effect:nct,enum:Mtr,function:xtr,instanceof:utr,intersection:Itr,lazy:Ttr,literal:Btr,map:Otr,nan:dtr,nativeEnum:Dtr,never:mtr,null:ptr,nullable:Ltr,number:lct,object:Etr,oboolean:Gtr,onumber:Htr,optional:Ptr,ostring:Qtr,pipeline:Ftr,preprocess:Utr,promise:ktr,record:wtr,set:Ntr,strictObject:vtr,string:fct,symbol:htr,transformer:nct,tuple:Ctr,undefined:Atr,union:Rtr,unknown:_tr,void:ytr,NEVER:Vtr,ZodIssueCode:Zn,quotelessJson:Ler,ZodError:ag});J();K();z();J();K();z();function ei(e,t,r){let i=e[t.name];if(typeof i=="function")return i;let n=e[r];return typeof n=="function"?n:o=>t(e,o)}J();K();z();J();K();z();W0();J();K();z();ia();var IW=class extends Kr{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}};cf();W_();iU();eE();ZR();p3();var aut="/docs/contract/encodeEventTopics";function rE(e){let{abi:t,eventName:r,args:i}=e,n=t[0];if(r){let y=Wp({abi:t,name:r});if(!y)throw new XL(r,{docsPath:aut});n=y}if(n.type!=="event")throw new XL(void 0,{docsPath:aut});let o=Vf(n),d=h3(o),g=[];if(i&&"inputs"in n){let y=n.inputs?.filter(I=>"indexed"in I&&I.indexed),_=Array.isArray(i)?i:Object.values(i).length>0?y?.map(I=>i[I.name])??[]:[];_.length>0&&(g=y?.map((I,N)=>Array.isArray(_[N])?_[N].map((T,M)=>sut({param:I,value:_[N][M]})):typeof _[N]<"u"&&_[N]!==null?sut({param:I,value:_[N]}):null)??[])}return[d,...g]}function sut({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return eu(Wh(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new IW(e.type);return ch([e],[t])}fo();J();K();z();function g3(e,{method:t}){let r={};return e.transport.type==="fallback"&&e.transport.onResponse?.(({method:i,response:n,status:o,transport:d})=>{o==="success"&&t===i&&(r[n]=d.request)}),(i=>r[i]||e.request)}async function DW(e,t){let{address:r,abi:i,args:n,eventName:o,fromBlock:d,strict:g,toBlock:y}=t,_=g3(e,{method:"eth_newFilter"}),I=o?rE({abi:i,args:n,eventName:o}):void 0,N=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:typeof d=="bigint"?Sn(d):d,toBlock:typeof y=="bigint"?Sn(y):y,topics:I}]});return{abi:i,args:n,eventName:o,id:N,request:_(N),strict:!!g,type:"event"}}J();K();z();E0();Xp();J();K();z();W0();ia();_3();Hw();aB();var Trr=3;function dg(e,{abi:t,address:r,args:i,docsPath:n,functionName:o,sender:d}){let g=e instanceof iE?e:e instanceof Kr?e.walk(D=>"data"in D)||e.walk():{},{code:y,data:_,details:I,message:N,shortMessage:T}=g,M=e instanceof $_?new XW({functionName:o}):[Trr,nS.code].includes(y)&&(_||I||N||T)||y===t2.code&&I==="execution reverted"&&_?new Qw({abi:t,data:typeof _=="object"?_.data:_,functionName:o,message:g instanceof m3?I:T??N}):e;return new HT(M,{abi:t,args:i,contractAddress:r,docsPath:n,functionName:o,sender:d})}J();K();z();E0();ia();J();K();z();J();K();z();J();K();z();tS();W_();function eX(e){let t=eu(`0x${e.substring(4)}`).substring(26);return jb(`0x${t}`)}J();K();z();z_();K_();sf();fo();async function s0t({hash:e,signature:t}){let r=X0(e)?e:Uo(e),{secp256k1:i}=await Promise.resolve().then(()=>(mU(),o0t));return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){let{r:_,s:I,v:N,yParity:T}=t,M=Number(T??N),D=a0t(M);return new i.Signature(Ga(_),Ga(I)).addRecoveryBit(D)}let d=X0(t)?t:Uo(t);if(Xs(d)!==65)throw new Error("invalid signature length");let g=o0(`0x${d.slice(130)}`),y=a0t(g);return i.Signature.fromCompact(d.substring(2,130)).addRecoveryBit(y)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function a0t(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function sX({hash:e,signature:t}){return eX(await s0t({hash:e,signature:t}))}J();K();z();Xh();cf();fo();J();K();z();ia();UW();cf();fo();function lg(e,t="hex"){let r=c0t(e),i=MT(new Uint8Array(r.length));return r.encode(i),t==="hex"?Qs(i.bytes):i.bytes}function c0t(e){return Array.isArray(e)?onr(e.map(t=>c0t(t))):anr(e)}function onr(e){let t=e.reduce((n,o)=>n+o.length,0),r=u0t(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),r===1?n.pushUint8(t):r===2?n.pushUint16(t):r===3?n.pushUint24(t):n.pushUint32(t));for(let{encode:o}of e)o(n)}}}function anr(e){let t=typeof e=="string"?Z0(e):e,r=u0t(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(n){t.length===1&&t[0]<128?n.pushBytes(t):t.length<=55?(n.pushByte(128+t.length),n.pushBytes(t)):(n.pushByte(183+r),r===1?n.pushUint8(t.length):r===2?n.pushUint16(t.length):r===3?n.pushUint24(t.length):n.pushUint32(t.length),n.pushBytes(t))}}}function u0t(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Kr("Length is too large.")}W_();function cX(e){let{chainId:t,nonce:r,to:i}=e,n=e.contractAddress??e.address,o=eu(df(["0x05",lg([t?Sn(t):"0x",n,r?Sn(r):"0x"])]));return i==="bytes"?Z0(o):o}async function I3(e){let{authorization:t,signature:r}=e;return sX({hash:cX(t),signature:r??t})}fo();J();K();z();J();K();z();HW();PT();ia();ug();var uX=class extends Kr{constructor(t,{account:r,docsPath:i,chain:n,data:o,gas:d,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:_,nonce:I,to:N,value:T}){let M=Uw({from:r?.address,to:N,value:typeof T<"u"&&`${kT(T)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:d,gasPrice:typeof g<"u"&&`${Jf(g)} gwei`,maxFeePerGas:typeof y<"u"&&`${Jf(y)} gwei`,maxPriorityFeePerGas:typeof _<"u"&&`${Jf(_)} gwei`,nonce:I});super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",M].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}};C3();yU();function d0t(e,{docsPath:t,...r}){let i=(()=>{let n=w3(e,r);return n instanceof n2?e:n})();return new uX(i,{docsPath:t,...r})}EB();dS();dX();cE();J();K();z();E0();J();K();z();J();K();z();PT();ia();var lX=class extends Kr{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}},N3=class extends Kr{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}},hX=class extends Kr{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Jf(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}};J();K();z();sf();J();K();z();J();K();z();ia();var SB=class extends Kr{constructor({blockHash:t,blockNumber:r}){let i="Block";t&&(i=`Block at hash "${t}"`),r&&(i=`Block at number "${r}"`),super(`${i} could not be found.`,{name:"BlockNotFoundError"})}};fo();J();K();z();bU();J();K();z();sf();bU();var I_e={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Kw(e,t){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?o0(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?o0(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?I_e[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(r.authorizationList=dnr(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v=="bigint"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type==="legacy"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type==="eip2930"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type==="eip1559"&&delete r.maxFeePerBlobGas,r}var AX=O3("transaction",Kw);function dnr(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function EU(e,t){let r=(e.transactions??[]).map(i=>typeof i=="string"?i:Kw(i));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var pX=O3("block",EU);async function tA(e,{blockHash:t,blockNumber:r,blockTag:i=e.experimental_blockTag??"latest",includeTransactions:n}={}){let o=n??!1,d=r!==void 0?Sn(r):void 0,g=null;if(t?g=await e.request({method:"eth_getBlockByHash",params:[t,o]},{dedupe:!0}):g=await e.request({method:"eth_getBlockByNumber",params:[d||i,o]},{dedupe:!!d}),!g)throw new SB({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||EU)(g,"getBlock")}J();K();z();async function IB(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function A0t(e,t){return C_e(e,t)}async function C_e(e,t){let{block:r,chain:i=e.chain,request:n}=t||{};try{let o=i?.fees?.maxPriorityFeePerGas??i?.fees?.defaultPriorityFee;if(typeof o=="function"){let g=r||await ei(e,tA,"getBlock")({}),y=await o({block:g,client:e,request:n});if(y===null)throw new Error;return y}if(typeof o<"u")return o;let d=await e.request({method:"eth_maxPriorityFeePerGas"});return Ga(d)}catch{let[o,d]=await Promise.all([r?Promise.resolve(r):ei(e,tA,"getBlock")({}),ei(e,IB,"getGasPrice")({})]);if(typeof o.baseFeePerGas!="bigint")throw new N3;let g=d-o.baseFeePerGas;return g<0n?0n:g}}async function p0t(e,t){return gX(e,t)}async function gX(e,t){let{block:r,chain:i=e.chain,request:n,type:o="eip1559"}=t||{},d=await(async()=>typeof i?.fees?.baseFeeMultiplier=="function"?i.fees.baseFeeMultiplier({block:r,client:e,request:n}):i?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new lX;let y=10**(d.toString().split(".")[1]?.length??0),_=T=>T*BigInt(Math.ceil(d*y))/BigInt(y),I=r||await ei(e,tA,"getBlock")({});if(typeof i?.fees?.estimateFeesPerGas=="function"){let T=await i.fees.estimateFeesPerGas({block:r,client:e,multiply:_,request:n,type:o});if(T!==null)return T}if(o==="eip1559"){if(typeof I.baseFeePerGas!="bigint")throw new N3;let T=typeof n?.maxPriorityFeePerGas=="bigint"?n.maxPriorityFeePerGas:await C_e(e,{block:I,chain:i,request:n}),M=_(I.baseFeePerGas);return{maxFeePerGas:n?.maxFeePerGas??M+T,maxPriorityFeePerGas:T}}return{gasPrice:n?.gasPrice??_(await ei(e,IB,"getGasPrice")({}))}}J();K();z();sf();fo();async function CB(e,{address:t,blockTag:r="latest",blockNumber:i}){let n=await e.request({method:"eth_getTransactionCount",params:[t,typeof i=="bigint"?Sn(i):r]},{dedupe:!!i});return o0(n)}J();K();z();cf();fo();function wB(e){let{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),i=typeof e.blobs[0]=="string"?e.blobs.map(o=>Z0(o)):e.blobs,n=[];for(let o of i)n.push(Uint8Array.from(t.blobToKzgCommitment(o)));return r==="bytes"?n:n.map(o=>Qs(o))}J();K();z();cf();fo();function OB(e){let{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),i=typeof e.blobs[0]=="string"?e.blobs.map(d=>Z0(d)):e.blobs,n=typeof e.commitments[0]=="string"?e.commitments.map(d=>Z0(d)):e.commitments,o=[];for(let d=0;d<i.length;d++){let g=i[d],y=n[d];o.push(Uint8Array.from(t.computeBlobKzgProof(g,y)))}return r==="bytes"?o:o.map(d=>Qs(d))}J();K();z();J();K();z();fo();J();K();z();z_();cf();fo();function _X(e,t){let r=t||"hex",i=BP(X0(e,{strict:!1})?Wh(e):e);return r==="bytes"?i:Uo(i)}function g0t(e){let{commitment:t,version:r=1}=e,i=e.to??(typeof t=="string"?"hex":"bytes"),n=_X(t,"bytes");return n.set([r],0),i==="bytes"?n:Qs(n)}function mX(e){let{commitments:t,version:r}=e,i=e.to??(typeof t[0]=="string"?"hex":"bytes"),n=[];for(let o of t)n.push(g0t({commitment:o,to:i,version:r}));return n}J();K();z();J();K();z();J();K();z();ia();var yX=class extends Kr{constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}},NB=class extends Kr{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}},bX=class extends Kr{constructor({hash:t,size:r}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}},EX=class extends Kr{constructor({hash:t,version:r}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}};UW();K_();cf();fo();function _0t(e){let t=e.to??(typeof e.data=="string"?"hex":"bytes"),r=typeof e.data=="string"?Z0(e.data):e.data,i=Xs(r);if(!i)throw new NB;if(i>761855)throw new yX({maxSize:761855,size:i});let n=[],o=!0,d=0;for(;o;){let g=MT(new Uint8Array(131072)),y=0;for(;y<4096;){let _=r.slice(d,d+31);if(g.pushByte(0),g.pushBytes(_),_.length<31){g.pushByte(128),o=!1;break}y++,d+=31}n.push(g)}return t==="bytes"?n.map(g=>g.bytes):n.map(g=>Qs(g.bytes))}function vX(e){let{data:t,kzg:r,to:i}=e,n=e.blobs??_0t({data:t,to:i}),o=e.commitments??wB({blobs:n,kzg:r,to:i}),d=e.proofs??OB({blobs:n,commitments:o,kzg:r,to:i}),g=[];for(let y=0;y<n.length;y++)g.push({blob:n[y],commitment:o[y],proof:d[y]});return g}cE();J();K();z();ug();function RX(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new zW({transaction:e})}J();K();z();sf();async function bl(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return o0(t)}var vU=["blobVersionedHashes","chainId","fees","gas","nonce","type"],m0t=new Map;async function i2(e,t){let{account:r=e.account,blobs:i,chain:n,gas:o,kzg:d,nonce:g,nonceManager:y,parameters:_=vU,type:I}=t,N=r&&na(r),T={...t,...N?{from:N?.address}:{}},M;async function D(){return M||(M=await ei(e,tA,"getBlock")({blockTag:"latest"}),M)}let P;async function G(){return P||(n?n.id:typeof t.chainId<"u"?t.chainId:(P=await ei(e,bl,"getChainId")({}),P))}if(_.includes("nonce")&&typeof g>"u"&&N)if(y){let q=await G();T.nonce=await y.consume({address:N.address,chainId:q,client:e})}else T.nonce=await ei(e,CB,"getTransactionCount")({address:N.address,blockTag:"pending"});if((_.includes("blobVersionedHashes")||_.includes("sidecars"))&&i&&d){let q=wB({blobs:i,kzg:d});if(_.includes("blobVersionedHashes")){let Y=mX({commitments:q,to:"hex"});T.blobVersionedHashes=Y}if(_.includes("sidecars")){let Y=OB({blobs:i,commitments:q,kzg:d}),ne=vX({blobs:i,commitments:q,proofs:Y,to:"hex"});T.sidecars=ne}}if(_.includes("chainId")&&(T.chainId=await G()),(_.includes("fees")||_.includes("type"))&&typeof I>"u")try{T.type=RX(T)}catch{let q=m0t.get(e.uid);typeof q>"u"&&(q=typeof(await D())?.baseFeePerGas=="bigint",m0t.set(e.uid,q)),T.type=q?"eip1559":"legacy"}if(_.includes("fees"))if(T.type!=="legacy"&&T.type!=="eip2930"){if(typeof T.maxFeePerGas>"u"||typeof T.maxPriorityFeePerGas>"u"){let q=await D(),{maxFeePerGas:Y,maxPriorityFeePerGas:ne}=await gX(e,{block:q,chain:n,request:T});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<ne)throw new hX({maxPriorityFeePerGas:ne});T.maxPriorityFeePerGas=ne,T.maxFeePerGas=Y}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new N3;if(typeof t.gasPrice>"u"){let q=await D(),{gasPrice:Y}=await gX(e,{block:q,chain:n,request:T,type:"legacy"});T.gasPrice=Y}}return _.includes("gas")&&typeof o>"u"&&(T.gas=await ei(e,xB,"estimateGas")({...T,account:N,prepare:N?.type==="local"?[]:["blobVersionedHashes"]})),yl(T),delete T.parameters,T}async function xB(e,t){let{account:r=e.account,prepare:i=!0}=t,n=r?na(r):void 0,o=(()=>{if(Array.isArray(i))return i;if(n?.type!=="local")return["blobVersionedHashes"]})();try{let{accessList:d,authorizationList:g,blobs:y,blobVersionedHashes:_,blockNumber:I,blockTag:N,data:T,gas:M,gasPrice:D,maxFeePerBlobGas:P,maxFeePerGas:G,maxPriorityFeePerGas:q,nonce:Y,value:ne,stateOverride:ce,...le}=i?await i2(e,{...t,parameters:o}):t,ae=(typeof I=="bigint"?Sn(I):void 0)||N,W=vB(ce),se=await(async()=>{if(le.to)return le.to;if(g&&g.length>0)return await I3({authorization:g[0]}).catch(()=>{throw new Kr("`to` is required. Could not infer from `authorizationList`")})})();yl(t);let O=e.chain?.formatters?.transactionRequest?.format,l=(O||JA)({...sE(le,{format:O}),account:n,accessList:d,authorizationList:g,blobs:y,blobVersionedHashes:_,data:T,gas:M,gasPrice:D,maxFeePerBlobGas:P,maxFeePerGas:G,maxPriorityFeePerGas:q,nonce:Y,to:se,value:ne},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:W?[l,ae??e.experimental_blockTag??"latest",W]:ae?[l,ae]:[l]}))}catch(d){throw d0t(d,{...t,account:n,chain:e.chain})}}async function y0t(e,t){let{abi:r,address:i,args:n,functionName:o,dataSuffix:d,...g}=t,y=hu({abi:r,args:n,functionName:o});try{return await ei(e,xB,"estimateGas")({data:`${y}${d?d.replace("0x",""):""}`,to:i,...g})}catch(_){let I=g.account?na(g.account):void 0;throw dg(_,{abi:r,address:i,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:I?.address})}}J();K();z();p3();J();K();z();J();K();z();W0();$w();cf();W_();iU();J();K();z();W0();zge();K_();iU();sU();ZR();var b0t="/docs/contract/decodeEventLog";function TB(e){let{abi:t,data:r,strict:i,topics:n}=e,o=i??!0,[d,...g]=n;if(!d)throw new yW({docsPath:b0t});let y=t.find(P=>P.type==="event"&&d===h3(Vf(P)));if(!(y&&"name"in y)||y.type!=="event")throw new CT(d,{docsPath:b0t});let{name:_,inputs:I}=y,N=I?.some(P=>!("name"in P&&P.name)),T=N?[]:{},M=I.map((P,G)=>[P,G]).filter(([P])=>"indexed"in P&&P.indexed);for(let P=0;P<M.length;P++){let[G,q]=M[P],Y=g[P];if(!Y)throw new Xb({abiItem:y,param:G});T[N?q:G.name||q]=hnr({param:G,value:Y})}let D=I.filter(P=>!("indexed"in P&&P.indexed));if(D.length>0){if(r&&r!=="0x")try{let P=rS(D,r);if(P)if(N)for(let G=0;G<I.length;G++)T[G]=T[G]??P.shift();else for(let G=0;G<D.length;G++)T[D[G].name]=P[G]}catch(P){if(o)throw P instanceof ST||P instanceof BT?new fy({abiItem:y,data:r,params:D,size:Xs(r)}):P}else if(o)throw new fy({abiItem:y,data:"0x",params:D,size:0})}return{eventName:_,args:Object.values(T).length>0?T:void 0}}function hnr({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(rS([e],t)||[])[0]}function BB(e){let{abi:t,args:r,logs:i,strict:n=!0}=e,o=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return i.map(d=>{try{let g=t.find(_=>_.type==="event"&&d.topics[0]===h3(_));if(!g)return null;let y=TB({...d,abi:[g],strict:n});return o&&!o.includes(y.eventName)||!Anr({args:y.args,inputs:g.inputs,matchArgs:r})?null:{...y,...d}}catch(g){let y,_;if(g instanceof CT)return null;if(g instanceof fy||g instanceof Xb){if(n)return null;y=g.abiItem.name,_=g.abiItem.inputs?.some(I=>!("name"in I&&I.name))}return{...d,args:_?[]:{},eventName:y}}}).filter(Boolean)}function Anr(e){let{args:t,inputs:r,matchArgs:i}=e;if(!i)return!0;if(!t)return!1;function n(o,d,g){try{return o.type==="address"?o2(d,g):o.type==="string"||o.type==="bytes"?eu(Wh(d))===g:d===g}catch{return!1}}return Array.isArray(t)&&Array.isArray(i)?i.every((o,d)=>{if(o==null)return!0;let g=r[d];return g?(Array.isArray(o)?o:[o]).some(_=>n(g,_,t[d])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof i=="object"&&!Array.isArray(i)?Object.entries(i).every(([o,d])=>{if(d==null)return!0;let g=r.find(_=>_.name===o);return g?(Array.isArray(d)?d:[d]).some(_=>n(g,_,t[o])):!1}):!1}fo();J();K();z();function El(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}async function MB(e,{address:t,blockHash:r,fromBlock:i,toBlock:n,event:o,events:d,args:g,strict:y}={}){let _=y??!1,I=d??(o?[o]:void 0),N=[];I&&(N=[I.flatMap(P=>rE({abi:[P],eventName:P.name,args:d?void 0:g}))],o&&(N=N[0]));let T;r?T=await e.request({method:"eth_getLogs",params:[{address:t,topics:N,blockHash:r}]}):T=await e.request({method:"eth_getLogs",params:[{address:t,topics:N,fromBlock:typeof i=="bigint"?Sn(i):i,toBlock:typeof n=="bigint"?Sn(n):n}]});let M=T.map(D=>El(D));return I?BB({abi:I,args:g,logs:M,strict:_}):M}async function SX(e,t){let{abi:r,address:i,args:n,blockHash:o,eventName:d,fromBlock:g,toBlock:y,strict:_}=t,I=d?Wp({abi:r,name:d}):void 0,N=I?void 0:r.filter(T=>T.type==="event");return ei(e,MB,"getLogs")({address:i,args:n,blockHash:o,event:I,events:N,fromBlock:g,toBlock:y,strict:_})}J();K();z();x3();Xp();zB();async function lf(e,t){let{abi:r,address:i,args:n,functionName:o,...d}=t,g=hu({abi:r,args:n,functionName:o});try{let{data:y}=await ei(e,fE,"call")({...d,data:g,to:i});return jp({abi:r,args:n,functionName:o,data:y||"0x"})}catch(y){throw dg(y,{abi:r,address:i,args:n,docsPath:"/docs/contract/readContract",functionName:o})}}J();K();z();E0();x3();Xp();zB();async function hdt(e,t){let{abi:r,address:i,args:n,dataSuffix:o,functionName:d,...g}=t,y=g.account?na(g.account):e.account,_=hu({abi:r,args:n,functionName:d});try{let{data:I}=await ei(e,fE,"call")({batch:!1,data:`${_}${o?o.replace("0x",""):""}`,to:i,...g,account:y}),N=jp({abi:r,args:n,functionName:d,data:I||"0x"}),T=r.filter(M=>"name"in M&&M.name===t.functionName);return{result:N,request:{abi:T,address:i,args:n,dataSuffix:o,functionName:d,...g,account:y}}}catch(I){throw dg(I,{abi:r,address:i,args:n,docsPath:"/docs/contract/simulateContract",functionName:d,sender:y?.address})}}J();K();z();W0();aB();J();K();z();var n2e=new Map,Adt=new Map,Pnr=0;function rA(e,t,r){let i=++Pnr,n=()=>n2e.get(e)||[],o=()=>{let I=n();n2e.set(e,I.filter(N=>N.id!==i))},d=()=>{let I=n();if(!I.some(T=>T.id===i))return;let N=Adt.get(e);if(I.length===1&&N){let T=N();T instanceof Promise&&T.catch(()=>{})}o()},g=n();if(n2e.set(e,[...g,{id:i,fns:t}]),g&&g.length>0)return d;let y={};for(let I in t)y[I]=((...N)=>{let T=n();if(T.length!==0)for(let M of T)M.fns[I]?.(...N)});let _=r(y);return typeof _=="function"&&Adt.set(e,_),d}J();K();z();J();K();z();async function DU(e){return new Promise(t=>setTimeout(t,e))}function c2(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let n=!0,o=()=>n=!1;return(async()=>{let g;t&&(g=await e({unpoll:o}));let y=await r?.(g)??i;await DU(y);let _=async()=>{n&&(await e({unpoll:o}),await DU(i),_())};_()})(),o}Zh();J();K();z();J();K();z();var Lnr=new Map,Unr=new Map;function pdt(e){let t=(n,o)=>({clear:()=>o.delete(n),get:()=>o.get(n),set:d=>o.set(n,d)}),r=t(e,Lnr),i=t(e,Unr);return{clear:()=>{r.clear(),i.clear()},promise:r,response:i}}async function gdt(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let i=pdt(t),n=i.response.get();if(n&&r>0&&Date.now()-n.created.getTime()<r)return n.data;let o=i.promise.get();o||(o=e(),i.promise.set(o));try{let d=await o;return i.response.set({created:new Date,data:d}),d}finally{i.promise.clear()}}var Fnr=e=>`blockNumber.${e}`;async function lE(e,{cacheTime:t=e.cacheTime}={}){let r=await gdt(()=>e.request({method:"eth_blockNumber"}),{cacheKey:Fnr(e.uid),cacheTime:t});return BigInt(r)}J();K();z();async function D3(e,{filter:t}){let r="strict"in t&&t.strict,i=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof i[0]=="string")return i;let n=i.map(o=>El(o));return!("abi"in t)||!t.abi?n:BB({abi:t.abi,logs:n,strict:r})}J();K();z();async function k3(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function _dt(e,t){let{abi:r,address:i,args:n,batch:o=!0,eventName:d,fromBlock:g,onError:y,onLogs:_,poll:I,pollingInterval:N=e.pollingInterval,strict:T}=t;return(typeof I<"u"?I:typeof g=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{let G=T??!1,q=ws(["watchContractEvent",i,n,o,e.uid,d,N,G,g]);return rA(q,{onLogs:_,onError:y},Y=>{let ne;g!==void 0&&(ne=g-1n);let ce,le=!1,pe=c2(async()=>{if(!le){try{ce=await ei(e,DW,"createContractEventFilter")({abi:r,address:i,args:n,eventName:d,strict:G,fromBlock:g})}catch{}le=!0;return}try{let ae;if(ce)ae=await ei(e,D3,"getFilterChanges")({filter:ce});else{let W=await ei(e,lE,"getBlockNumber")({});ne&&ne<W?ae=await ei(e,SX,"getContractEvents")({abi:r,address:i,args:n,eventName:d,fromBlock:ne+1n,toBlock:W,strict:G}):ae=[],ne=W}if(ae.length===0)return;if(o)Y.onLogs(ae);else for(let W of ae)Y.onLogs([W])}catch(ae){ce&&ae instanceof t2&&(le=!1),Y.onError?.(ae)}},{emitOnBegin:!0,interval:N});return async()=>{ce&&await ei(e,k3,"uninstallFilter")({filter:ce}),pe()}})})():(()=>{let G=T??!1,q=ws(["watchContractEvent",i,n,o,e.uid,d,N,G]),Y=!0,ne=()=>Y=!1;return rA(q,{onLogs:_,onError:y},ce=>((async()=>{try{let le=(()=>{if(e.transport.type==="fallback"){let W=e.transport.transports.find(se=>se.config.type==="webSocket"||se.config.type==="ipc");return W?W.value:e.transport}return e.transport})(),pe=d?rE({abi:r,eventName:d,args:n}):[],{unsubscribe:ae}=await le.subscribe({params:["logs",{address:i,topics:pe}],onData(W){if(!Y)return;let se=W.result;try{let{eventName:O,args:s}=TB({abi:r,data:se.data,topics:se.topics,strict:T}),l=El(se,{args:s,eventName:O});ce.onLogs([l])}catch(O){let s,l;if(O instanceof fy||O instanceof Xb){if(T)return;s=O.abiItem.name,l=O.abiItem.inputs?.some(m=>!("name"in m&&m.name))}let A=El(se,{args:l?[]:{},eventName:s});ce.onLogs([A])}},onError(W){ce.onError?.(W)}});ne=ae,Y||ne()}catch(le){y?.(le)}})(),()=>ne()))})()}J();K();z();E0();J();K();z();ia();var gd=class extends Kr{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}},u2=class extends Kr{constructor({docsPath:t,metaMessages:r,type:i}){super(`Account type "${i}" is not supported.`,{docsPath:t,metaMessages:r,name:"AccountTypeNotSupportedError"})}};Xp();J();K();z();E0();ia();J();K();z();VB();function hE({chain:e,currentChainId:t}){if(!e)throw new HX;if(t!==e.id)throw new QX({chain:e,currentChainId:t})}J();K();z();C3();ug();yU();function P3(e,{docsPath:t,...r}){let i=(()=>{let n=w3(e,r);return n instanceof n2?e:n})();return new $W(i,{docsPath:t,...r})}EB();dS();xT();cE();J();K();z();async function L3(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}var i2e=new Z_(128);async function AE(e,t){let{account:r=e.account,chain:i=e.chain,accessList:n,authorizationList:o,blobs:d,data:g,gas:y,gasPrice:_,maxFeePerBlobGas:I,maxFeePerGas:N,maxPriorityFeePerGas:T,nonce:M,type:D,value:P,...G}=t;if(typeof r>"u")throw new gd({docsPath:"/docs/actions/wallet/sendTransaction"});let q=r?na(r):null;try{yl(t);let Y=await(async()=>{if(t.to)return t.to;if(t.to!==null&&o&&o.length>0)return await I3({authorization:o[0]}).catch(()=>{throw new Kr("`to` is required. Could not infer from `authorizationList`.")})})();if(q?.type==="json-rpc"||q===null){let ne;i!==null&&(ne=await ei(e,bl,"getChainId")({}),hE({currentChainId:ne,chain:i}));let ce=e.chain?.formatters?.transactionRequest?.format,pe=(ce||JA)({...sE(G,{format:ce}),accessList:n,account:q,authorizationList:o,blobs:d,chainId:ne,data:g,gas:y,gasPrice:_,maxFeePerBlobGas:I,maxFeePerGas:N,maxPriorityFeePerGas:T,nonce:M,to:Y,type:D,value:P},"sendTransaction"),ae=i2e.get(e.uid),W=ae?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:W,params:[pe]},{retryCount:0})}catch(se){if(ae===!1)throw se;let O=se;if(O.name==="InvalidInputRpcError"||O.name==="InvalidParamsRpcError"||O.name==="MethodNotFoundRpcError"||O.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[pe]},{retryCount:0}).then(s=>(i2e.set(e.uid,!0),s)).catch(s=>{let l=s;throw l.name==="MethodNotFoundRpcError"||l.name==="MethodNotSupportedRpcError"?(i2e.set(e.uid,!1),O):l});throw O}}if(q?.type==="local"){let ne=await ei(e,i2,"prepareTransactionRequest")({account:q,accessList:n,authorizationList:o,blobs:d,chain:i,data:g,gas:y,gasPrice:_,maxFeePerBlobGas:I,maxFeePerGas:N,maxPriorityFeePerGas:T,nonce:M,nonceManager:q.nonceManager,parameters:[...vU,"sidecars"],type:D,value:P,...G,to:Y}),ce=i?.serializers?.transaction,le=await q.signTransaction(ne,{serializer:ce});return await ei(e,L3,"sendRawTransaction")({serializedTransaction:le})}throw q?.type==="smart"?new u2({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new u2({docsPath:"/docs/actions/wallet/sendTransaction",type:q?.type})}catch(Y){throw Y instanceof u2?Y:P3(Y,{...t,account:q,chain:t.chain||void 0})}}async function _S(e,t){return _S.internal(e,AE,"sendTransaction",t)}(function(e){async function t(r,i,n,o){let{abi:d,account:g=r.account,address:y,args:_,dataSuffix:I,functionName:N,...T}=o;if(typeof g>"u")throw new gd({docsPath:"/docs/contract/writeContract"});let M=g?na(g):null,D=hu({abi:d,args:_,functionName:N});try{return await ei(r,i,n)({data:`${D}${I?I.replace("0x",""):""}`,to:y,account:M,...T})}catch(P){throw dg(P,{abi:d,address:y,args:_,docsPath:"/docs/contract/writeContract",functionName:N,sender:M?.address})}}e.internal=t})(_S||(_S={}));J();K();z();ia();J();K();z();ia();var YX=class extends Kr{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}};VX();J();K();z();function i5(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((n,o)=>{let d=async({count:g=0}={})=>{let y=async({error:_})=>{let I=typeof t=="function"?t({count:g,error:_}):t;I&&await DU(I),d({count:g+1})};try{let _=await e();n(_)}catch(_){if(g<r&&await i({count:g,error:_}))return y({error:_});o(_)}};d()})}Zh();J();K();z();A3();Lw();sf();J();K();z();sf();bU();var o2e={"0x0":"reverted","0x1":"success"};function kU(e,t){let r={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(i=>El(i)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?o0(e.transactionIndex):null,status:e.status?o2e[e.status]:null,type:e.type?I_e[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}var WX=O3("transactionReceipt",kU);J();K();z();E0();ia();aB();Xp();Xh();sf();fo();var a2e="0x5792579257925792579257925792579257925792579257925792579257925792",s2e=Sn(0,{size:32});async function XX(e,t){let{account:r=e.account,capabilities:i,chain:n=e.chain,experimental_fallback:o,experimental_fallbackDelay:d=32,forceAtomic:g=!1,id:y,version:_="2.0.0"}=t,I=r?na(r):null,N=t.calls.map(T=>{let M=T,D=M.abi?hu({abi:M.abi,functionName:M.functionName,args:M.args}):M.data;return{data:M.dataSuffix&&D?uf([D,M.dataSuffix]):D,to:M.to,value:M.value?Sn(M.value):void 0}});try{let T=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:g,calls:N,capabilities:i,chainId:Sn(n.id),from:I?.address,id:y,version:_}]},{retryCount:0});return typeof T=="string"?{id:T}:T}catch(T){let M=T;if(o&&(M.name==="MethodNotFoundRpcError"||M.name==="MethodNotSupportedRpcError"||M.name==="UnknownRpcError"||M.details.toLowerCase().includes("does not exist / is not available")||M.details.toLowerCase().includes("missing or invalid. request()")||M.details.toLowerCase().includes("did not match any variant of untagged enum")||M.details.toLowerCase().includes("account upgraded to unsupported contract")||M.details.toLowerCase().includes("eip-7702 not supported")||M.details.toLowerCase().includes("unsupported wc_ method")||M.details.toLowerCase().includes("feature toggled misconfigured")||M.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(i&&Object.values(i).some(Y=>!Y.optional)){let Y="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new b3(new Kr(Y,{details:Y}))}if(g&&N.length>1){let q="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new E3(new Kr(q,{details:q}))}let D=[];for(let q of N){let Y=AE(e,{account:I,chain:n,data:q.data,to:q.to,value:q.value?Ga(q.value):void 0});D.push(Y),d>0&&await new Promise(ne=>setTimeout(ne,d))}let P=await Promise.allSettled(D);if(P.every(q=>q.status==="rejected"))throw P[0].reason;let G=P.map(q=>q.status==="fulfilled"?q.value:s2e);return{id:uf([...G,Sn(n.id,{size:32}),a2e])}}throw P3(T,{...t,account:I,chain:t.chain})}}async function ZX(e,t){async function r(I){if(I.endsWith(a2e.slice(2))){let T=ml(TW(I,-64,-32)),M=TW(I,0,-64).slice(2).match(/.{1,64}/g),D=await Promise.all(M.map(G=>s2e.slice(2)!==G?e.request({method:"eth_getTransactionReceipt",params:[`0x${G}`]},{dedupe:!0}):void 0)),P=D.some(G=>G===null)?100:D.every(G=>G?.status==="0x1")?200:D.every(G=>G?.status==="0x0")?500:600;return{atomic:!1,chainId:o0(T),receipts:D.filter(Boolean),status:P,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[I]})}let{atomic:i=!1,chainId:n,receipts:o,version:d="2.0.0",...g}=await r(t.id),[y,_]=(()=>{let I=g.status;return I>=100&&I<200?["pending",I]:I>=200&&I<300?["success",I]:I>=300&&I<700?["failure",I]:I==="CONFIRMED"?["success",200]:I==="PENDING"?["pending",100]:[void 0,I]})();return{...g,atomic:i,chainId:n?o0(n):void 0,receipts:o?.map(I=>({...I,blockNumber:Ga(I.blockNumber),gasUsed:Ga(I.gasUsed),status:o2e[I.status]}))??[],statusCode:_,status:y,version:d}}async function jX(e,t){let{id:r,pollingInterval:i=e.pollingInterval,status:n=({statusCode:P})=>P===200||P>=300,retryCount:o=4,retryDelay:d=({count:P})=>~~(1<<P)*200,timeout:g=6e4,throwOnFailure:y=!1}=t,_=ws(["waitForCallsStatus",e.uid,r]),{promise:I,resolve:N,reject:T}=JB(),M,D=rA(_,{resolve:N,reject:T},P=>{let G=c2(async()=>{let q=Y=>{clearTimeout(M),G(),Y(),D()};try{let Y=await i5(async()=>{let ne=await ei(e,ZX,"getCallsStatus")({id:r});if(y&&ne.status==="failure")throw new YX(ne);return ne},{retryCount:o,delay:d});if(!n(Y))return;q(()=>P.resolve(Y))}catch(Y){q(()=>P.reject(Y))}},{interval:i,emitOnBegin:!0});return G});return M=g?setTimeout(()=>{D(),clearTimeout(M),T(new c2e({id:r}))},g):void 0,await I}var c2e=class extends Kr{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}};J();K();z();E0();J();K();z();var eZ=256,tZ;function rZ(e=11){if(!tZ||eZ+e>256*2){tZ="",eZ=0;for(let t=0;t<256;t++)tZ+=(256+Math.random()*256|0).toString(16).substring(1)}return tZ.substring(eZ,eZ+++e)}function nZ(e){let{batch:t,chain:r,ccipRead:i,key:n="base",name:o="Base Client",type:d="base"}=e,g=e.experimental_blockTag??(typeof r?.experimental_preconfirmationTime=="number"?"pending":void 0),y=r?.blockTime??12e3,_=Math.min(Math.max(Math.floor(y/2),500),4e3),I=e.pollingInterval??_,N=e.cacheTime??I,T=e.account?na(e.account):void 0,{config:M,request:D,value:P}=e.transport({account:T,chain:r,pollingInterval:I}),G={...M,...P},q={account:T,batch:t,cacheTime:N,ccipRead:i,chain:r,key:n,name:o,pollingInterval:I,request:D,transport:G,type:d,uid:rZ(),...g?{experimental_blockTag:g}:{}};function Y(ne){return ce=>{let le=ce(ne);for(let ae in q)delete le[ae];let pe={...ne,...le};return Object.assign(pe,{extend:Y(pe)})}}return Object.assign(q,{extend:Y(q)})}J();K();z();J();K();z();J();K();z();M3();x3();Xp();n5();Lw();fo();J();K();z();ia();_3();function KB(e){if(!(e instanceof Kr))return!1;let t=e.walk(r=>r instanceof Qw);return t instanceof Qw?t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile":!1}MU();J();K();z();Xh();cf();fo();W_();J();K();z();z_();function iZ(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;let t=`0x${e.slice(1,65)}`;return X0(t)?t:null}function PU(e){let t=new Uint8Array(32).fill(0);if(!e)return Qs(t);let r=e.split(".");for(let i=r.length-1;i>=0;i-=1){let n=iZ(r[i]),o=n?Wh(n):eu(ly(r[i]),"bytes");t=eu(uf([t,o]),"bytes")}return Qs(t)}J();K();z();cf();J();K();z();function mdt(e){return`[${e.slice(2)}]`}J();K();z();cf();fo();W_();function ydt(e){let t=new Uint8Array(32).fill(0);return e?iZ(e)||eu(ly(e)):Qs(t)}function $B(e){let t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);let r=new Uint8Array(ly(t).byteLength+2),i=0,n=t.split(".");for(let o=0;o<n.length;o++){let d=ly(n[o]);d.byteLength>255&&(d=ly(mdt(ydt(n[o])))),r[i]=d.length,r.set(d,i+1),i+=d.length+1}return r.byteLength!==i+1?r.slice(0,i+1):r}async function bdt(e,t){let{blockNumber:r,blockTag:i,coinType:n,name:o,gatewayUrls:d,strict:g}=t,{chain:y}=e,_=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!y)throw new Error("client chain not configured. universalResolverAddress is required.");return s2({blockNumber:r,chain:y,contract:"ensUniversalResolver"})})(),I=y?.ensTlds;if(I&&!I.some(T=>o.endsWith(T)))return null;let N=n!=null?[PU(o),BigInt(n)]:[PU(o)];try{let T=hu({abi:z_e,functionName:"addr",args:N}),M={address:_,abi:UX,functionName:"resolveWithGateways",args:[Uo($B(o)),T,d??[gS]],blockNumber:r,blockTag:i},P=await ei(e,lf,"readContract")(M);if(P[0]==="0x")return null;let G=jp({abi:z_e,args:N,functionName:"addr",data:P[0]});return G==="0x"||ml(G)==="0x00"?null:G}catch(T){if(g)throw T;if(KB(T))return null;throw T}}J();K();z();J();K();z();J();K();z();J();K();z();ia();var oZ=class extends Kr{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}},U3=class extends Kr{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}},YB=class extends Kr{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}},aZ=class extends Kr{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}};var Qnr=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,Hnr=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,Gnr=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,qnr=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function Vnr(e){try{let t=await fetch(e,{method:"HEAD"});return t.status===200?t.headers.get("content-type")?.startsWith("image/"):!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(r=>{let i=new Image;i.onload=()=>{r(!0)},i.onerror=()=>{r(!1)},i.src=e})}}function Edt(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function u2e({uri:e,gatewayUrls:t}){let r=Gnr.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let i=Edt(t?.ipfs,"https://ipfs.io"),n=Edt(t?.arweave,"https://arweave.net"),o=e.match(Qnr),{protocol:d,subpath:g,target:y,subtarget:_=""}=o?.groups||{},I=d==="ipns:/"||g==="ipns/",N=d==="ipfs:/"||g==="ipfs/"||Hnr.test(e);if(e.startsWith("http")&&!I&&!N){let M=e;return t?.arweave&&(M=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:M,isOnChain:!1,isEncoded:!1}}if((I||N)&&y)return{uri:`${i}/${I?"ipns":"ipfs"}/${y}${_}`,isOnChain:!1,isEncoded:!1};if(d==="ar:/"&&y)return{uri:`${n}/${y}${_||""}`,isOnChain:!1,isEncoded:!1};let T=e.replace(qnr,"");if(T.startsWith("<svg")&&(T=`data:image/svg+xml;base64,${btoa(T)}`),T.startsWith("data:")||T.startsWith("{"))return{uri:T,isOnChain:!0,isEncoded:!1};throw new YB({uri:e})}function d2e(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new oZ({data:e});return e.image||e.image_url||e.image_data}async function vdt({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(n=>n.json());return await sZ({gatewayUrls:e,uri:d2e(r)})}catch{throw new YB({uri:t})}}async function sZ({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:i}=u2e({uri:t,gatewayUrls:e});if(i||await Vnr(r))return r;throw new YB({uri:t})}function Rdt(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,i,n]=t.split("/"),[o,d]=r.split(":"),[g,y]=i.split(":");if(!o||o.toLowerCase()!=="eip155")throw new U3({reason:"Only EIP-155 supported"});if(!d)throw new U3({reason:"Chain ID not found"});if(!y)throw new U3({reason:"Contract address not found"});if(!n)throw new U3({reason:"Token ID not found"});if(!g)throw new U3({reason:"ERC namespace not found"});return{chainID:Number.parseInt(d,10),namespace:g.toLowerCase(),contractAddress:y,tokenID:n}}async function Sdt(e,{nft:t}){if(t.namespace==="erc721")return lf(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return lf(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new aZ({namespace:t.namespace})}async function Idt(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?Jnr(e,{gatewayUrls:t,record:r}):sZ({uri:r,gatewayUrls:t})}async function Jnr(e,{gatewayUrls:t,record:r}){let i=Rdt(r),n=await Sdt(e,{nft:i}),{uri:o,isOnChain:d,isEncoded:g}=u2e({uri:n,gatewayUrls:t});if(d&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){let _=g?atob(o.replace("data:application/json;base64,","")):o,I=JSON.parse(_);return sZ({uri:d2e(I),gatewayUrls:t})}let y=i.tokenID;return i.namespace==="erc1155"&&(y=y.replace("0x","").padStart(64,"0")),vdt({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,y)})}J();K();z();M3();x3();Xp();n5();fo();MU();async function cZ(e,t){let{blockNumber:r,blockTag:i,key:n,name:o,gatewayUrls:d,strict:g}=t,{chain:y}=e,_=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!y)throw new Error("client chain not configured. universalResolverAddress is required.");return s2({blockNumber:r,chain:y,contract:"ensUniversalResolver"})})(),I=y?.ensTlds;if(I&&!I.some(N=>o.endsWith(N)))return null;try{let N={address:_,abi:UX,args:[Uo($B(o)),hu({abi:J_e,functionName:"text",args:[PU(o),n]}),d??[gS]],functionName:"resolveWithGateways",blockNumber:r,blockTag:i},M=await ei(e,lf,"readContract")(N);if(M[0]==="0x")return null;let D=jp({abi:J_e,functionName:"text",data:M[0]});return D===""?null:D}catch(N){if(g)throw N;if(KB(N))return null;throw N}}async function Cdt(e,{blockNumber:t,blockTag:r,assetGatewayUrls:i,name:n,gatewayUrls:o,strict:d,universalResolverAddress:g}){let y=await ei(e,cZ,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:n,universalResolverAddress:g,gatewayUrls:o,strict:d});if(!y)return null;try{return await Idt(e,{record:y,gatewayUrls:i})}catch{return null}}J();K();z();M3();n5();MU();async function wdt(e,t){let{address:r,blockNumber:i,blockTag:n,coinType:o=60n,gatewayUrls:d,strict:g}=t,{chain:y}=e,_=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!y)throw new Error("client chain not configured. universalResolverAddress is required.");return s2({blockNumber:i,chain:y,contract:"ensUniversalResolver"})})();try{let I={address:_,abi:X0t,args:[r,o,d??[gS]],functionName:"reverseWithGateways",blockNumber:i,blockTag:n},N=ei(e,lf,"readContract"),[T]=await N(I);return T||null}catch(I){if(g)throw I;if(KB(I))return null;throw I}}J();K();z();n5();fo();async function Odt(e,t){let{blockNumber:r,blockTag:i,name:n}=t,{chain:o}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!o)throw new Error("client chain not configured. universalResolverAddress is required.");return s2({blockNumber:r,chain:o,contract:"ensUniversalResolver"})})(),g=o?.ensTlds;if(g&&!g.some(_=>n.endsWith(_)))throw new Error(`${n} is not a valid ENS TLD (${g?.join(", ")}) for chain "${o.name}" (id: ${o.id}).`);let[y]=await ei(e,lf,"readContract")({address:d,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Uo($B(n))],blockNumber:r,blockTag:i});return y}zB();J();K();z();E0();fo();W_e();EB();dS();cE();async function uZ(e,t){let{account:r=e.account,blockNumber:i,blockTag:n="latest",blobs:o,data:d,gas:g,gasPrice:y,maxFeePerBlobGas:_,maxFeePerGas:I,maxPriorityFeePerGas:N,to:T,value:M,...D}=t,P=r?na(r):void 0;try{yl(t);let q=(typeof i=="bigint"?Sn(i):void 0)||n,Y=e.chain?.formatters?.transactionRequest?.format,ce=(Y||JA)({...sE(D,{format:Y}),account:P,blobs:o,data:d,gas:g,gasPrice:y,maxFeePerBlobGas:_,maxFeePerGas:I,maxPriorityFeePerGas:N,to:T,value:M},"createAccessList"),le=await e.request({method:"eth_createAccessList",params:[ce,q]});return{accessList:le.accessList,gasUsed:BigInt(le.gasUsed)}}catch(G){throw qX(G,{...t,account:P,chain:e.chain})}}J();K();z();async function Ndt(e){let t=g3(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}J();K();z();fo();async function dZ(e,{address:t,args:r,event:i,events:n,fromBlock:o,strict:d,toBlock:g}={}){let y=n??(i?[i]:void 0),_=g3(e,{method:"eth_newFilter"}),I=[];y&&(I=[y.flatMap(M=>rE({abi:[M],eventName:M.name,args:r}))],i&&(I=I[0]));let N=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof o=="bigint"?Sn(o):o,toBlock:typeof g=="bigint"?Sn(g):g,...I.length?{topics:I}:{}}]});return{abi:y,args:r,eventName:i?i.name:void 0,fromBlock:o,id:N,request:_(N),strict:!!d,toBlock:g,type:"event"}}J();K();z();async function fZ(e){let t=g3(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}J();K();z();fo();async function xdt(e,{address:t,blockNumber:r,blockTag:i=e.experimental_blockTag??"latest"}){let n=typeof r=="bigint"?Sn(r):void 0,o=await e.request({method:"eth_getBalance",params:[t,n||i]});return BigInt(o)}J();K();z();async function Tdt(e){let t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}J();K();z();sf();fo();async function Bdt(e,{blockHash:t,blockNumber:r,blockTag:i="latest"}={}){let n=r!==void 0?Sn(r):void 0,o;return t?o=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):o=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[n||i]},{dedupe:!!n}),o0(o)}J();K();z();fo();async function LU(e,{address:t,blockNumber:r,blockTag:i="latest"}){let n=r!==void 0?Sn(r):void 0,o=await e.request({method:"eth_getCode",params:[t,n||i]},{dedupe:!!n});if(o!=="0x")return o}J();K();z();J();K();z();ia();var lZ=class extends Kr{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}};async function Mdt(e,t){let{address:r,factory:i,factoryData:n}=t;try{let[o,d,g,y,_,I,N]=await ei(e,lf,"readContract")({abi:znr,address:r,functionName:"eip712Domain",factory:i,factoryData:n});return{domain:{name:d,version:g,chainId:Number(y),verifyingContract:_,salt:I},extensions:N,fields:o}}catch(o){let d=o;throw d.name==="ContractFunctionExecutionError"&&d.cause.name==="ContractFunctionZeroDataError"?new lZ({address:r}):d}}var znr=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];J();K();z();fo();J();K();z();function Ddt(e){return{baseFeePerGas:e.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(t=>t.map(r=>BigInt(r)))}}async function kdt(e,{blockCount:t,blockNumber:r,blockTag:i="latest",rewardPercentiles:n}){let o=typeof r=="bigint"?Sn(r):void 0,d=await e.request({method:"eth_feeHistory",params:[Sn(t),o||i,n]},{dedupe:!!o});return Ddt(d)}J();K();z();async function Pdt(e,{filter:t}){let r=t.strict??!1,n=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(o=>El(o));return t.abi?BB({abi:t.abi,logs:n,strict:r}):n}J();K();z();fo();J();K();z();J();K();z();J();K();z();fo();J();K();z();ug();Xh();Lw();fo();J();K();z();fX();X_();ia();VB();C3();Yp();K_();A3();sf();function Ldt(e){let{authorizationList:t}=e;if(t)for(let r of t){let{chainId:i}=r,n=r.address;if(!ys(n))throw new nc({address:n});if(i<0)throw new pS({chainId:i})}hZ(e)}function Udt(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new NB;for(let r of t){let i=Xs(r),n=o0(j_(r,0,1));if(i!==32)throw new bX({hash:r,size:i});if(n!==1)throw new EX({hash:r,version:n})}}hZ(e)}function hZ(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:i,to:n}=e;if(t<=0)throw new pS({chainId:t});if(n&&!ys(n))throw new nc({address:n});if(i&&i>RB)throw new r2({maxFeePerGas:i});if(r&&i&&r>i)throw new aE({maxFeePerGas:i,maxPriorityFeePerGas:r})}function Fdt(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:i,maxFeePerGas:n,to:o}=e;if(t<=0)throw new pS({chainId:t});if(o&&!ys(o))throw new nc({address:o});if(r||n)throw new Kr("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(i&&i>RB)throw new r2({maxFeePerGas:i})}function Qdt(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:i,maxFeePerGas:n,to:o}=e;if(o&&!ys(o))throw new nc({address:o});if(typeof t<"u"&&t<=0)throw new pS({chainId:t});if(r||n)throw new Kr("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(i&&i>RB)throw new r2({maxFeePerGas:i})}J();K();z();X_();ug();Yp();function UU(e){if(!e||e.length===0)return[];let t=[];for(let r=0;r<e.length;r++){let{address:i,storageKeys:n}=e[r];for(let o=0;o<n.length;o++)if(n[o].length-2!==64)throw new KW({storageKey:n[o]});if(!ys(i,{strict:!1}))throw new nc({address:i});t.push([i,n])}return t}function WB(e,t){let r=RX(e);return r==="eip1559"?Ynr(e,t):r==="eip2930"?Wnr(e,t):r==="eip4844"?$nr(e,t):r==="eip7702"?Knr(e,t):Xnr(e,t)}function Knr(e,t){let{authorizationList:r,chainId:i,gas:n,nonce:o,to:d,value:g,maxFeePerGas:y,maxPriorityFeePerGas:_,accessList:I,data:N}=e;Ldt(e);let T=UU(I),M=Hdt(r);return df(["0x04",lg([Sn(i),o?Sn(o):"0x",_?Sn(_):"0x",y?Sn(y):"0x",n?Sn(n):"0x",d??"0x",g?Sn(g):"0x",N??"0x",T,M,...XB(e,t)])])}function $nr(e,t){let{chainId:r,gas:i,nonce:n,to:o,value:d,maxFeePerBlobGas:g,maxFeePerGas:y,maxPriorityFeePerGas:_,accessList:I,data:N}=e;Udt(e);let T=e.blobVersionedHashes,M=e.sidecars;if(e.blobs&&(typeof T>"u"||typeof M>"u")){let ne=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(pe=>Qs(pe)),ce=e.kzg,le=wB({blobs:ne,kzg:ce});if(typeof T>"u"&&(T=mX({commitments:le})),typeof M>"u"){let pe=OB({blobs:ne,commitments:le,kzg:ce});M=vX({blobs:ne,commitments:le,proofs:pe})}}let D=UU(I),P=[Sn(r),n?Sn(n):"0x",_?Sn(_):"0x",y?Sn(y):"0x",i?Sn(i):"0x",o??"0x",d?Sn(d):"0x",N??"0x",D,g?Sn(g):"0x",T??[],...XB(e,t)],G=[],q=[],Y=[];if(M)for(let ne=0;ne<M.length;ne++){let{blob:ce,commitment:le,proof:pe}=M[ne];G.push(ce),q.push(le),Y.push(pe)}return df(["0x03",M?lg([P,G,q,Y]):lg(P)])}function Ynr(e,t){let{chainId:r,gas:i,nonce:n,to:o,value:d,maxFeePerGas:g,maxPriorityFeePerGas:y,accessList:_,data:I}=e;hZ(e);let N=UU(_),T=[Sn(r),n?Sn(n):"0x",y?Sn(y):"0x",g?Sn(g):"0x",i?Sn(i):"0x",o??"0x",d?Sn(d):"0x",I??"0x",N,...XB(e,t)];return df(["0x02",lg(T)])}function Wnr(e,t){let{chainId:r,gas:i,data:n,nonce:o,to:d,value:g,accessList:y,gasPrice:_}=e;Fdt(e);let I=UU(y),N=[Sn(r),o?Sn(o):"0x",_?Sn(_):"0x",i?Sn(i):"0x",d??"0x",g?Sn(g):"0x",n??"0x",I,...XB(e,t)];return df(["0x01",lg(N)])}function Xnr(e,t){let{chainId:r=0,gas:i,data:n,nonce:o,to:d,value:g,gasPrice:y}=e;Qdt(e);let _=[o?Sn(o):"0x",y?Sn(y):"0x",i?Sn(i):"0x",d??"0x",g?Sn(g):"0x",n??"0x"];if(t){let I=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+t.v-27n);let M=27n+(t.v===27n?0n:1n);if(t.v!==M)throw new JW({v:t.v});return M})(),N=ml(t.r),T=ml(t.s);_=[..._,Sn(I),N==="0x00"?"0x":N,T==="0x00"?"0x":T]}else r>0&&(_=[..._,Sn(r),"0x","0x"]);return lg(_)}function XB(e,t){let r=t??e,{v:i,yParity:n}=r;if(typeof r.r>"u")return[];if(typeof r.s>"u")return[];if(typeof i>"u"&&typeof n>"u")return[];let o=ml(r.r),d=ml(r.s);return[typeof n=="number"?n?Sn(1):"0x":i===0n?"0x":i===1n?Sn(1):i===27n?"0x":Sn(1),o==="0x00"?"0x":o,d==="0x00"?"0x":d]}function Hdt(e){if(!e||e.length===0)return[];let t=[];for(let r of e){let{chainId:i,nonce:n,...o}=r,d=r.address;t.push([i?Uo(i):"0x",d,n?Uo(n):"0x",...XB({},o)])}return t}J();K();z();tS();$w();async function Gdt({address:e,authorization:t,signature:r}){return o2(hy(e),await I3({authorization:t,signature:r}))}J();K();z();ia();Hw();aB();fo();J();K();z();xT();var AZ=new Z_(8192);function qdt(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(AZ.get(r))return AZ.get(r);let i=e().finally(()=>AZ.delete(r));return AZ.set(r,i),i}Zh();function Vdt(e,t={}){return async(r,i={})=>{let{dedupe:n=!1,methods:o,retryDelay:d=150,retryCount:g=3,uid:y}={...t,...i},{method:_}=r;if(o?.exclude?.includes(_))throw new y3(new Error("method not supported"),{method:_});if(o?.include&&!o.include.includes(_))throw new y3(new Error("method not supported"),{method:_});let I=n?Y_(`${y}.${ws(r)}`):void 0;return qdt(()=>i5(async()=>{try{return await e(r)}catch(N){let T=N;switch(T.code){case GT.code:throw new GT(T);case qT.code:throw new qT(T);case VT.code:throw new VT(T,{method:r.method});case JT.code:throw new JT(T);case nS.code:throw new nS(T);case t2.code:throw new t2(T);case zT.code:throw new zT(T);case KT.code:throw new KT(T);case $T.code:throw new $T(T);case y3.code:throw new y3(T,{method:r.method});case Gw.code:throw new Gw(T);case YT.code:throw new YT(T);case qw.code:throw new qw(T);case WT.code:throw new WT(T);case XT.code:throw new XT(T);case ZT.code:throw new ZT(T);case jT.code:throw new jT(T);case eB.code:throw new eB(T);case b3.code:throw new b3(T);case tB.code:throw new tB(T);case rB.code:throw new rB(T);case nB.code:throw new nB(T);case iB.code:throw new iB(T);case oB.code:throw new oB(T);case E3.code:throw new E3(T);case 5e3:throw new qw(T);default:throw N instanceof Kr?N:new jW(T)}}},{delay:({count:N,error:T})=>{if(T&&T instanceof e2){let M=T?.headers?.get("Retry-After");if(M?.match(/\d/))return Number.parseInt(M,10)*1e3}return~~(1<<N)*d},retryCount:g,shouldRetry:({error:N})=>Znr(N)}),{enabled:n,id:I})}}function Znr(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Gw.code||e.code===nS.code:e instanceof e2&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}J();K();z();function hc(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}sf();fo();J();K();z();Hw();J();K();z();function Jdt(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:i}){return new Promise((n,o)=>{(async()=>{let d;try{let g=new AbortController;r>0&&(d=setTimeout(()=>{i?g.abort():o(t)},r)),n(await e({signal:g?.signal||null}))}catch(g){g?.name==="AbortError"&&o(t),o(g)}finally{clearTimeout(d)}})()})}Zh();J();K();z();function jnr(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var f2e=jnr();function zdt(e,t={}){return{async request(r){let{body:i,fetchFn:n=t.fetchFn??fetch,onRequest:o=t.onRequest,onResponse:d=t.onResponse,timeout:g=t.timeout??1e4}=r,y={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:_,method:I,signal:N}=y;try{let T=await Jdt(async({signal:D})=>{let P={...y,body:Array.isArray(i)?ws(i.map(ne=>({jsonrpc:"2.0",id:ne.id??f2e.take(),...ne}))):ws({jsonrpc:"2.0",id:i.id??f2e.take(),...i}),headers:{"Content-Type":"application/json",..._},method:I||"POST",signal:N||(g>0?D:null)},G=new Request(e,P),q=await o?.(G,P)??{...P,url:e};return await n(q.url??e,q)},{errorInstance:new cU({body:i,url:e}),timeout:g,signal:!0});d&&await d(T);let M;if(T.headers.get("Content-Type")?.startsWith("application/json"))M=await T.json();else{M=await T.text();try{M=JSON.parse(M||"{}")}catch(D){if(T.ok)throw D;M={error:M}}}if(!T.ok)throw new e2({body:i,details:ws(M.error)||T.statusText,headers:T.headers,status:T.status,url:e});return M}catch(T){throw T instanceof e2||T instanceof cU?T:new e2({body:i,cause:T,url:e})}}}}J();K();z();W_();J();K();z();J();K();z();var Kdt=`Ethereum Signed Message:
|
|
`;Xh();K_();fo();function $dt(e){let t=typeof e=="string"?Y_(e):typeof e.raw=="string"?e.raw:Qs(e.raw),r=Y_(`${Kdt}${Xs(t)}`);return uf([r,t])}function ZB(e,t){return eu($dt(e),t)}J();K();z();eE();Xh();fo();W_();J();K();z();W0();X_();J();K();z();Zh();ia();var pZ=class extends Kr{constructor({domain:t}){super(`Invalid domain "${ws(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}},gZ=class extends Kr{constructor({primaryType:t,types:r}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(r))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}},_Z=class extends Kr{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}};Yp();K_();fo();Gge();Zh();function Ydt(e){let{domain:t,message:r,primaryType:i,types:n}=e,o=(y,_)=>{let I={..._};for(let N of y){let{name:T,type:M}=N;M==="address"&&(I[T]=I[T].toLowerCase())}return I},d=n.EIP712Domain?t?o(n.EIP712Domain,t):{}:{},g=(()=>{if(i!=="EIP712Domain")return o(n[i],r)})();return ws({domain:d,message:g,primaryType:i,types:n})}function mZ(e){let{domain:t,message:r,primaryType:i,types:n}=e,o=(d,g)=>{for(let y of d){let{name:_,type:I}=y,N=g[_],T=I.match(BW);if(T&&(typeof N=="number"||typeof N=="bigint")){let[P,G,q]=T;Sn(N,{signed:G==="int",size:Number.parseInt(q,10)/8})}if(I==="address"&&typeof N=="string"&&!ys(N))throw new nc({address:N});let M=I.match(iut);if(M){let[P,G]=M;if(G&&Xs(N)!==Number.parseInt(G,10))throw new vW({expectedSize:Number.parseInt(G,10),givenSize:Xs(N)})}let D=n[I];D&&(eir(I),o(D,N))}};if(n.EIP712Domain&&t){if(typeof t!="object")throw new pZ({domain:t});o(n.EIP712Domain,t)}if(i!=="EIP712Domain")if(n[i])o(n[i],r);else throw new gZ({primaryType:i,types:n})}function yZ({domain:e}){return[typeof e?.name=="string"&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},(typeof e?.chainId=="number"||typeof e?.chainId=="bigint")&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function eir(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new _Z({type:e})}function bZ(e){let{domain:t={},message:r,primaryType:i}=e,n={EIP712Domain:yZ({domain:t}),...e.types};mZ({domain:t,message:r,primaryType:i,types:n});let o=["0x1901"];return t&&o.push(tir({domain:t,types:n})),i!=="EIP712Domain"&&o.push(Wdt({data:r,primaryType:i,types:n})),eu(uf(o))}function tir({domain:e,types:t}){return Wdt({data:e,primaryType:"EIP712Domain",types:t})}function Wdt({data:e,primaryType:t,types:r}){let i=Xdt({data:e,primaryType:t,types:r});return eu(i)}function Xdt({data:e,primaryType:t,types:r}){let i=[{type:"bytes32"}],n=[rir({primaryType:t,types:r})];for(let o of r[t]){let[d,g]=jdt({types:r,name:o.name,type:o.type,value:e[o.name]});i.push(d),n.push(g)}return ch(i,n)}function rir({primaryType:e,types:t}){let r=Uo(nir({primaryType:e,types:t}));return eu(r)}function nir({primaryType:e,types:t}){let r="",i=Zdt({primaryType:e,types:t});i.delete(e);let n=[e,...Array.from(i).sort()];for(let o of n)r+=`${o}(${t[o].map(({name:d,type:g})=>`${g} ${d}`).join(",")})`;return r}function Zdt({primaryType:e,types:t},r=new Set){let n=e.match(/^\w*/u)?.[0];if(r.has(n)||t[n]===void 0)return r;r.add(n);for(let o of t[n])Zdt({primaryType:o.type,types:t},r);return r}function jdt({types:e,name:t,type:r,value:i}){if(e[r]!==void 0)return[{type:"bytes32"},eu(Xdt({data:i,primaryType:r,types:e}))];if(r==="bytes")return[{type:"bytes32"},eu(i)];if(r==="string")return[{type:"bytes32"},eu(Uo(i))];if(r.lastIndexOf("]")===r.length-1){let n=r.slice(0,r.lastIndexOf("[")),o=i.map(d=>jdt({name:t,type:n,types:e,value:d}));return[{type:"bytes32"},eu(ch(o.map(([d])=>d),o.map(([,d])=>d)))]}return[{type:r},i]}J();K();z();var l2e="0x0000000000000000000000000000000000000000000000000000000000000000";J();K();z();var zU={};gh(zU,{InvalidWrappedSignatureError:()=>PZ,assert:()=>LZ,from:()=>eor,magicBytes:()=>j2e,suffixParameters:()=>eme,unwrap:()=>Qft,validate:()=>ror,wrap:()=>tor});J();K();z();J();K();z();$L();J();K();z();T3();J();K();z();J();K();z();var EZ=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){let i=this.keys().next().value;i&&this.delete(i)}return this}};var iir={checksum:new EZ(8192)},vZ=iir.checksum;t1();J();K();z();$K();T3();vl();function o5(e,t={}){let{as:r=typeof e=="string"?"Hex":"Bytes"}=t,i=wC(Q0t(e));return r==="Bytes"?i:Ld(i)}J();K();z();T3();t1();vl();OU();function eft(e,t={}){let{compressed:r}=t,{prefix:i,x:n,y:o}=e;if(r===!1||typeof n=="bigint"&&typeof o=="bigint"){if(i!==4)throw new RZ({prefix:i,cause:new g2e});return}if(r===!0||typeof n=="bigint"&&typeof o>"u"){if(i!==3&&i!==2)throw new RZ({prefix:i,cause:new p2e});return}throw new A2e({publicKey:e})}function tft(e){let t=(()=>{if(xU(e))return rft(e);if(z0t(e))return air(e);let{prefix:r,x:i,y:n}=e;return typeof i=="bigint"&&typeof n=="bigint"?{prefix:r??4,x:i,y:n}:{prefix:r,x:i}})();return eft(t),t}function air(e){return rft(Ld(e))}function rft(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new _2e({publicKey:e});if(e.length===130){let i=BigInt(R0(e,0,32)),n=BigInt(R0(e,32,64));return{prefix:4,x:i,y:n}}if(e.length===132){let i=Number(R0(e,0,1)),n=BigInt(R0(e,1,33)),o=BigInt(R0(e,33,65));return{prefix:i,x:n,y:o}}let t=Number(R0(e,0,1)),r=BigInt(R0(e,1,33));return{prefix:t,x:r}}function m2e(e,t={}){eft(e);let{prefix:r,x:i,y:n}=e,{includePrefix:o=!0}=t;return j0(o?lc(r,{size:1}):"0x",lc(i,{size:32}),typeof n=="bigint"?lc(n,{size:32}):"0x")}var A2e=class extends _o{constructor({publicKey:t}){super(`Value \`${B3(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}},RZ=class extends _o{constructor({prefix:t,cause:r}){super(`Prefix "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}},p2e=class extends _o{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}},g2e=class extends _o{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}},_2e=class extends _o{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${v0(HB(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};var sir=/^0x[a-fA-F0-9]{40}$/;function a5(e,t={}){let{strict:r=!0}=t;if(!sir.test(e))throw new SZ({address:e,cause:new y2e});if(r){if(e.toLowerCase()===e)return;if(IZ(e)!==e)throw new SZ({address:e,cause:new b2e})}}function IZ(e){if(vZ.has(e))return vZ.get(e);a5(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=o5(H0t(t),{as:"Bytes"}),i=t.split("");for(let o=0;o<40;o+=2)r[o>>1]>>4>=8&&i[o]&&(i[o]=i[o].toUpperCase()),(r[o>>1]&15)>=8&&i[o+1]&&(i[o+1]=i[o+1].toUpperCase());let n=`0x${i.join("")}`;return vZ.set(e,n),n}function cir(e,t={}){let{checksum:r=!1}=t;return a5(e),r?IZ(e):e}function ift(e,t={}){let r=o5(`0x${m2e(e).slice(4)}`).substring(26);return cir(`0x${r}`,t)}function CZ(e,t={}){let{strict:r=!0}=t??{};try{return a5(e,{strict:r}),!0}catch{return!1}}var SZ=class extends _o{constructor({address:t,cause:r}){super(`Address "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},y2e=class extends _o{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},b2e=class extends _o{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}};T3();t1();vl();J();K();z();T3();t1();vl();J();K();z();var oft=/^(.*)\[([0-9]*)\]$/,aft=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,OZ=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,pPi=2n**(8n-1n)-1n,gPi=2n**(16n-1n)-1n,_Pi=2n**(24n-1n)-1n,mPi=2n**(32n-1n)-1n,yPi=2n**(40n-1n)-1n,bPi=2n**(48n-1n)-1n,EPi=2n**(56n-1n)-1n,vPi=2n**(64n-1n)-1n,RPi=2n**(72n-1n)-1n,SPi=2n**(80n-1n)-1n,IPi=2n**(88n-1n)-1n,CPi=2n**(96n-1n)-1n,wPi=2n**(104n-1n)-1n,OPi=2n**(112n-1n)-1n,NPi=2n**(120n-1n)-1n,xPi=2n**(128n-1n)-1n,TPi=2n**(136n-1n)-1n,BPi=2n**(144n-1n)-1n,MPi=2n**(152n-1n)-1n,DPi=2n**(160n-1n)-1n,kPi=2n**(168n-1n)-1n,PPi=2n**(176n-1n)-1n,LPi=2n**(184n-1n)-1n,UPi=2n**(192n-1n)-1n,FPi=2n**(200n-1n)-1n,QPi=2n**(208n-1n)-1n,HPi=2n**(216n-1n)-1n,GPi=2n**(224n-1n)-1n,qPi=2n**(232n-1n)-1n,VPi=2n**(240n-1n)-1n,JPi=2n**(248n-1n)-1n,zPi=2n**(256n-1n)-1n,KPi=-(2n**(8n-1n)),$Pi=-(2n**(16n-1n)),YPi=-(2n**(24n-1n)),WPi=-(2n**(32n-1n)),XPi=-(2n**(40n-1n)),ZPi=-(2n**(48n-1n)),jPi=-(2n**(56n-1n)),eLi=-(2n**(64n-1n)),tLi=-(2n**(72n-1n)),rLi=-(2n**(80n-1n)),nLi=-(2n**(88n-1n)),iLi=-(2n**(96n-1n)),oLi=-(2n**(104n-1n)),aLi=-(2n**(112n-1n)),sLi=-(2n**(120n-1n)),cLi=-(2n**(128n-1n)),uLi=-(2n**(136n-1n)),dLi=-(2n**(144n-1n)),fLi=-(2n**(152n-1n)),lLi=-(2n**(160n-1n)),hLi=-(2n**(168n-1n)),ALi=-(2n**(176n-1n)),pLi=-(2n**(184n-1n)),gLi=-(2n**(192n-1n)),_Li=-(2n**(200n-1n)),mLi=-(2n**(208n-1n)),yLi=-(2n**(216n-1n)),bLi=-(2n**(224n-1n)),ELi=-(2n**(232n-1n)),vLi=-(2n**(240n-1n)),RLi=-(2n**(248n-1n)),SLi=-(2n**(256n-1n)),ILi=2n**8n-1n,CLi=2n**16n-1n,wLi=2n**24n-1n,OLi=2n**32n-1n,NLi=2n**40n-1n,xLi=2n**48n-1n,TLi=2n**56n-1n,BLi=2n**64n-1n,MLi=2n**72n-1n,DLi=2n**80n-1n,kLi=2n**88n-1n,PLi=2n**96n-1n,LLi=2n**104n-1n,ULi=2n**112n-1n,FLi=2n**120n-1n,QLi=2n**128n-1n,HLi=2n**136n-1n,GLi=2n**144n-1n,qLi=2n**152n-1n,VLi=2n**160n-1n,JLi=2n**168n-1n,zLi=2n**176n-1n,KLi=2n**184n-1n,$Li=2n**192n-1n,YLi=2n**200n-1n,WLi=2n**208n-1n,XLi=2n**216n-1n,ZLi=2n**224n-1n,jLi=2n**232n-1n,eUi=2n**240n-1n,tUi=2n**248n-1n,E2e=2n**256n-1n;function s5(e,t,r){let{checksumAddress:i,staticPosition:n}=r,o=S2e(t.type);if(o){let[d,g]=o;return dir(e,{...t,type:g},{checksumAddress:i,length:d,staticPosition:n})}if(t.type==="tuple")return Air(e,t,{checksumAddress:i,staticPosition:n});if(t.type==="address")return uir(e,{checksum:i});if(t.type==="bool")return fir(e);if(t.type.startsWith("bytes"))return lir(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return hir(e,t);if(t.type==="string")return pir(e,{staticPosition:n});throw new jB(t.type)}var cft=32,v2e=32;function uir(e,t={}){let{checksum:r=!1}=t,i=e.readBytes(32);return[(o=>r?IZ(o):o)(Ld(G0t(i,-20))),32]}function dir(e,t,r){let{checksumAddress:i,length:n,staticPosition:o}=r;if(!n){let y=uE(e.readBytes(v2e)),_=o+y,I=_+cft;e.setPosition(_);let N=uE(e.readBytes(cft)),T=FU(t),M=0,D=[];for(let P=0;P<N;++P){e.setPosition(I+(T?P*32:M));let[G,q]=s5(e,t,{checksumAddress:i,staticPosition:I});M+=q,D.push(G)}return e.setPosition(o+32),[D,32]}if(FU(t)){let y=uE(e.readBytes(v2e)),_=o+y,I=[];for(let N=0;N<n;++N){e.setPosition(_+N*32);let[T]=s5(e,t,{checksumAddress:i,staticPosition:_});I.push(T)}return e.setPosition(o+32),[I,32]}let d=0,g=[];for(let y=0;y<n;++y){let[_,I]=s5(e,t,{checksumAddress:i,staticPosition:o+d});d+=I,g.push(_)}return[g,d]}function fir(e){return[V0t(e.readBytes(32),{size:32}),32]}function lir(e,t,{staticPosition:r}){let[i,n]=t.type.split("bytes");if(!n){let d=uE(e.readBytes(32));e.setPosition(r+d);let g=uE(e.readBytes(32));if(g===0)return e.setPosition(r+32),["0x",32];let y=e.readBytes(g);return e.setPosition(r+32),[Ld(y),32]}return[Ld(e.readBytes(Number.parseInt(n,10),32)),32]}function hir(e,t){let r=t.type.startsWith("int"),i=Number.parseInt(t.type.split("int")[1]||"256",10),n=e.readBytes(32);return[i>48?q0t(n,{signed:r}):uE(n,{signed:r}),32]}function Air(e,t,r){let{checksumAddress:i,staticPosition:n}=r,o=t.components.length===0||t.components.some(({name:y})=>!y),d=o?[]:{},g=0;if(FU(t)){let y=uE(e.readBytes(v2e)),_=n+y;for(let I=0;I<t.components.length;++I){let N=t.components[I];e.setPosition(_+g);let[T,M]=s5(e,N,{checksumAddress:i,staticPosition:_});g+=M,d[o?I:N?.name]=T}return e.setPosition(n+32),[d,32]}for(let y=0;y<t.components.length;++y){let _=t.components[y],[I,N]=s5(e,_,{checksumAddress:i,staticPosition:n});d[o?y:_?.name]=I,g+=N}return[d,g]}function pir(e,{staticPosition:t}){let r=uE(e.readBytes(32)),i=t+r;e.setPosition(i);let n=uE(e.readBytes(32));if(n===0)return e.setPosition(t+32),["",32];let o=e.readBytes(n,32),d=J0t(H_e(o));return e.setPosition(t+32),[d,32]}function uft({checksumAddress:e,parameters:t,values:r}){let i=[];for(let n=0;n<t.length;n++)i.push(R2e({checksumAddress:e,parameter:t[n],value:r[n]}));return i}function R2e({checksumAddress:e=!1,parameter:t,value:r}){let i=t,n=S2e(i.type);if(n){let[o,d]=n;return _ir(r,{checksumAddress:e,length:o,parameter:{...i,type:d}})}if(i.type==="tuple")return vir(r,{checksumAddress:e,parameter:i});if(i.type==="address")return gir(r,{checksum:e});if(i.type==="bool")return yir(r);if(i.type.startsWith("uint")||i.type.startsWith("int")){let o=i.type.startsWith("int"),[,,d="256"]=OZ.exec(i.type)??[];return bir(r,{signed:o,size:Number(d)})}if(i.type.startsWith("bytes"))return mir(r,{type:i.type});if(i.type==="string")return Eir(r);throw new jB(i.type)}function NZ(e){let t=0;for(let o=0;o<e.length;o++){let{dynamic:d,encoded:g}=e[o];d?t+=32:t+=v0(g)}let r=[],i=[],n=0;for(let o=0;o<e.length;o++){let{dynamic:d,encoded:g}=e[o];d?(r.push(lc(t+n,{size:32})),i.push(g),n+=v0(g)):r.push(g)}return j0(...r,...i)}function gir(e,t){let{checksum:r=!1}=t;return a5(e,{strict:r}),{dynamic:!1,encoded:AS(e.toLowerCase())}}function _ir(e,t){let{checksumAddress:r,length:i,parameter:n}=t,o=i===null;if(!Array.isArray(e))throw new TZ(e);if(!o&&e.length!==i)throw new xZ({expectedLength:i,givenLength:e.length,type:`${n.type}[${i}]`});let d=!1,g=[];for(let y=0;y<e.length;y++){let _=R2e({checksumAddress:r,parameter:n,value:e[y]});_.dynamic&&(d=!0),g.push(_)}if(o||d){let y=NZ(g);if(o){let _=lc(g.length,{size:32});return{dynamic:!0,encoded:g.length>0?j0(_,y):_}}if(d)return{dynamic:!0,encoded:y}}return{dynamic:!1,encoded:j0(...g.map(({encoded:y})=>y))}}function mir(e,{type:t}){let[,r]=t.split("bytes"),i=v0(e);if(!r){let n=e;return i%32!==0&&(n=dE(n,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:j0(AS(lc(i,{size:32})),n)}}if(i!==Number.parseInt(r,10))throw new QU({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:dE(e)}}function yir(e){if(typeof e!="boolean")throw new _o(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:AS(kX(e))}}function bir(e,{signed:t,size:r}){if(typeof r=="number"){let i=2n**(BigInt(r)-(t?1n:0n))-1n,n=t?-i-1n:0n;if(e>i||e<n)throw new NU({max:i.toString(),min:n.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:lc(e,{size:32,signed:t})}}function Eir(e){let t=GB(e),r=Math.ceil(v0(t)/32),i=[];for(let n=0;n<r;n++)i.push(dE(R0(t,n*32,(n+1)*32)));return{dynamic:!0,encoded:j0(dE(lc(v0(t),{size:32})),...i)}}function vir(e,t){let{checksumAddress:r,parameter:i}=t,n=!1,o=[];for(let d=0;d<i.components.length;d++){let g=i.components[d],y=Array.isArray(e)?d:g.name,_=R2e({checksumAddress:r,parameter:g,value:e[y]});o.push(_),_.dynamic&&(n=!0)}return{dynamic:n,encoded:n?NZ(o):j0(...o.map(({encoded:d})=>d))}}function S2e(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function FU(e){let{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(FU);let r=S2e(e.type);return!!(r&&FU({...e,type:r[1]}))}J();K();z();t1();var Sir={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new C2e({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new I2e({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new BZ({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new BZ({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function MZ(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(Sir);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var BZ=class extends _o{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}},I2e=class extends _o{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}},C2e=class extends _o{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}};function e7(e,t,r={}){let{as:i="Array",checksumAddress:n=!1}=r,o=typeof t=="string"?QB(t):t,d=MZ(o);if(a2(o)===0&&e.length>0)throw new N2e;if(a2(o)&&a2(o)<32)throw new O2e({data:typeof t=="string"?t:Ld(t),parameters:e,size:a2(o)});let g=0,y=i==="Array"?[]:{};for(let _=0;_<e.length;++_){let I=e[_];d.setPosition(g);let[N,T]=s5(d,I,{checksumAddress:n,staticPosition:0});g+=T,i==="Array"?y.push(N):y[I.name??_]=N}return y}function F3(e,t,r){let{checksumAddress:i=!1}=r??{};if(e.length!==t.length)throw new DZ({expectedLength:e.length,givenLength:t.length});let n=uft({checksumAddress:i,parameters:e,values:t}),o=NZ(n);return o.length===0?"0x":o}function w2e(e,t){if(e.length!==t.length)throw new DZ({expectedLength:e.length,givenLength:t.length});let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i];r.push(w2e.encode(n,o))}return j0(...r)}(function(e){function t(r,i,n=!1){if(r==="address"){let y=i;return a5(y),AS(y.toLowerCase(),n?32:0)}if(r==="string")return GB(i);if(r==="bytes")return i;if(r==="bool")return AS(kX(i),n?32:1);let o=r.match(OZ);if(o){let[y,_,I="256"]=o,N=Number.parseInt(I,10)/8;return lc(i,{size:n?32:N,signed:_==="int"})}let d=r.match(aft);if(d){let[y,_]=d;if(Number.parseInt(_,10)!==(i.length-2)/2)throw new QU({expectedSize:Number.parseInt(_,10),value:i});return dE(i,n?32:0)}let g=r.match(oft);if(g&&Array.isArray(i)){let[y,_]=g,I=[];for(let N=0;N<i.length;N++)I.push(t(_,i[N],!0));return I.length===0?"0x":j0(...I)}throw new jB(r)}e.encode=t})(w2e||(w2e={}));function GU(e){return Array.isArray(e)&&typeof e[0]=="string"?hW(e):typeof e=="string"?hW(e):e}var O2e=class extends _o{constructor({data:t,parameters:r,size:i}){super(`Data size of ${i} bytes is too small for given parameters.`,{metaMessages:[`Params: (${XR(r)})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}},N2e=class extends _o{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}},xZ=class extends _o{constructor({expectedLength:t,givenLength:r,type:i}){super(`Array length mismatch for type \`${i}\`. Expected: \`${t}\`. Given: \`${r}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}},QU=class extends _o{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${v0(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},DZ=class extends _o{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`
|
|
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},TZ=class extends _o{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}},jB=class extends _o{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}};J();K();z();vl();J();K();z();T3();t1();vl();function Iir(e,t){let{as:r}=t,i=lft(e),n=MZ(new Uint8Array(i.length));return i.encode(n),r==="Hex"?Ld(n.bytes):n.bytes}function fft(e,t={}){let{as:r="Hex"}=t;return Iir(e,{as:r})}function lft(e){return Array.isArray(e)?Cir(e.map(t=>lft(t))):wir(e)}function Cir(e){let t=e.reduce((n,o)=>n+o.length,0),r=hft(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),r===1?n.pushUint8(t):r===2?n.pushUint16(t):r===3?n.pushUint24(t):n.pushUint32(t));for(let{encode:o}of e)o(n)}}}function wir(e){let t=typeof e=="string"?QB(e):e,r=hft(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(n){t.length===1&&t[0]<128?n.pushBytes(t):t.length<=55?(n.pushByte(128+t.length),n.pushBytes(t)):(n.pushByte(183+r),r===1?n.pushUint8(t.length):r===2?n.pushUint16(t.length):r===3?n.pushUint24(t.length):n.pushUint32(t.length),n.pushBytes(t))}}}function hft(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new _o("Length is too large.")}J();K();z();J();K();z();ox();J();K();z();WK();Up();J();K();z();J();K();z();J();K();z();Up();CX();var zA=BigInt(0),iA=BigInt(1),c5=BigInt(2),Nir=BigInt(3),pft=BigInt(4),gft=BigInt(5),_ft=BigInt(8);function nA(e,t){let r=e%t;return r>=zA?r:t+r}function Ag(e,t,r){let i=e;for(;t-- >zA;)i*=i,i%=r;return i}function kZ(e,t){if(e===zA)throw new Error("invert: expected non-zero number");if(t<=zA)throw new Error("invert: expected positive modulus, got "+t);let r=nA(e,t),i=t,n=zA,o=iA,d=iA,g=zA;for(;r!==zA;){let _=i/r,I=i%r,N=n-d*_,T=o-g*_;i=r,r=I,n=d,o=g,d=N,g=T}if(i!==iA)throw new Error("invert: does not exist");return nA(n,t)}function mft(e,t){let r=(e.ORDER+iA)/pft,i=e.pow(t,r);if(!e.eql(e.sqr(i),t))throw new Error("Cannot find square root");return i}function xir(e,t){let r=(e.ORDER-gft)/_ft,i=e.mul(t,c5),n=e.pow(i,r),o=e.mul(t,n),d=e.mul(e.mul(o,c5),n),g=e.mul(o,e.sub(d,e.ONE));if(!e.eql(e.sqr(g),t))throw new Error("Cannot find square root");return g}function Tir(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-iA,r=0;for(;t%c5===zA;)t/=c5,r++;let i=c5,n=qU(e);for(;Aft(n,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return mft;let o=n.pow(i,t),d=(t+iA)/c5;return function(y,_){if(y.is0(_))return _;if(Aft(y,_)!==1)throw new Error("Cannot find square root");let I=r,N=y.mul(y.ONE,o),T=y.pow(_,t),M=y.pow(_,d);for(;!y.eql(T,y.ONE);){if(y.is0(T))return y.ZERO;let D=1,P=y.sqr(T);for(;!y.eql(P,y.ONE);)if(D++,P=y.sqr(P),D===I)throw new Error("Cannot find square root");let G=iA<<BigInt(I-D-1),q=y.pow(N,G);I=D,N=y.sqr(q),T=y.mul(T,N),M=y.mul(M,q)}return M}}function Bir(e){return e%pft===Nir?mft:e%_ft===gft?xir:Tir(e)}var Mir=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function x2e(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Mir.reduce((i,n)=>(i[n]="function",i),t);return Zw(e,r)}function Dir(e,t,r){if(r<zA)throw new Error("invalid exponent, negatives unsupported");if(r===zA)return e.ONE;if(r===iA)return t;let i=e.ONE,n=t;for(;r>zA;)r&iA&&(i=e.mul(i,n)),n=e.sqr(n),r>>=iA;return i}function T2e(e,t,r=!1){let i=new Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((d,g,y)=>e.is0(g)?d:(i[y]=d,e.mul(d,g)),e.ONE),o=e.inv(n);return t.reduceRight((d,g,y)=>e.is0(g)?d:(i[y]=e.mul(d,i[y]),e.mul(d,g)),o),i}function Aft(e,t){let r=(e.ORDER-iA)/c5,i=e.pow(t,r),n=e.eql(i,e.ONE),o=e.eql(i,e.ZERO),d=e.eql(i,e.neg(e.ONE));if(!n&&!o&&!d)throw new Error("invalid Legendre symbol result");return n?1:o?0:-1}function B2e(e,t){t!==void 0&&S_(t);let r=t!==void 0?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function qU(e,t,r=!1,i={}){if(e<=zA)throw new Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:n,nByteLength:o}=B2e(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let d,g=Object.freeze({ORDER:e,isLE:r,BITS:n,BYTES:o,MASK:Xw(n),ZERO:zA,ONE:iA,create:y=>nA(y,e),isValid:y=>{if(typeof y!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof y);return zA<=y&&y<e},is0:y=>y===zA,isOdd:y=>(y&iA)===iA,neg:y=>nA(-y,e),eql:(y,_)=>y===_,sqr:y=>nA(y*y,e),add:(y,_)=>nA(y+_,e),sub:(y,_)=>nA(y-_,e),mul:(y,_)=>nA(y*_,e),pow:(y,_)=>Dir(g,y,_),div:(y,_)=>nA(y*kZ(_,e),e),sqrN:y=>y*y,addN:(y,_)=>y+_,subN:(y,_)=>y-_,mulN:(y,_)=>y*_,inv:y=>kZ(y,e),sqrt:i.sqrt||(y=>(d||(d=Bir(e)),d(g,y))),toBytes:y=>r?D_e(y,o):Yw(y,o),fromBytes:y=>{if(y.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+y.length);return r?M_e(y):lS(y)},invertBatch:y=>T2e(g,y),cmov:(y,_,I)=>I?_:y});return Object.freeze(g)}function yft(e){if(typeof e!="bigint")throw new Error("field order must be bigint");let t=e.toString(2).length;return Math.ceil(t/8)}function M2e(e){let t=yft(e);return t+Math.ceil(t/2)}function bft(e,t,r=!1){let i=e.length,n=yft(t),o=M2e(t);if(i<16||i<o||i>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+i);let d=r?M_e(e):lS(e),g=nA(d,t-iA)+iA;return r?D_e(g,n):Yw(g,n)}CX();var Eft=BigInt(0),U2e=BigInt(1);function D2e(e,t){let r=t.negate();return e?r:t}function Rft(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function k2e(e,t){Rft(e,t);let r=Math.ceil(t/e)+1,i=2**(e-1),n=2**e,o=Xw(e),d=BigInt(e);return{windows:r,windowSize:i,mask:o,maxNumber:n,shiftBy:d}}function vft(e,t,r){let{windowSize:i,mask:n,maxNumber:o,shiftBy:d}=r,g=Number(e&n),y=e>>d;g>i&&(g-=o,y+=U2e);let _=t*i,I=_+Math.abs(g)-1,N=g===0,T=g<0,M=t%2!==0;return{nextN:y,offset:I,isZero:N,isNeg:T,isNegF:M,offsetF:_}}function kir(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,i)=>{if(!(r instanceof t))throw new Error("invalid point at index "+i)})}function Pir(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,i)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+i)})}var P2e=new WeakMap,Sft=new WeakMap;function L2e(e){return Sft.get(e)||1}function Ift(e,t){return{constTimeNegate:D2e,hasPrecomputes(r){return L2e(r)!==1},unsafeLadder(r,i,n=e.ZERO){let o=r;for(;i>Eft;)i&U2e&&(n=n.add(o)),o=o.double(),i>>=U2e;return n},precomputeWindow(r,i){let{windows:n,windowSize:o}=k2e(i,t),d=[],g=r,y=g;for(let _=0;_<n;_++){y=g,d.push(y);for(let I=1;I<o;I++)y=y.add(g),d.push(y);g=y.double()}return d},wNAF(r,i,n){let o=e.ZERO,d=e.BASE,g=k2e(r,t);for(let y=0;y<g.windows;y++){let{nextN:_,offset:I,isZero:N,isNeg:T,isNegF:M,offsetF:D}=vft(n,y,g);n=_,N?d=d.add(D2e(M,i[D])):o=o.add(D2e(T,i[I]))}return{p:o,f:d}},wNAFUnsafe(r,i,n,o=e.ZERO){let d=k2e(r,t);for(let g=0;g<d.windows&&n!==Eft;g++){let{nextN:y,offset:_,isZero:I,isNeg:N}=vft(n,g,d);if(n=y,!I){let T=i[_];o=o.add(N?T.negate():T)}}return o},getPrecomputes(r,i,n){let o=P2e.get(i);return o||(o=this.precomputeWindow(i,r),r!==1&&P2e.set(i,n(o))),o},wNAFCached(r,i,n){let o=L2e(r);return this.wNAF(o,this.getPrecomputes(o,r,n),i)},wNAFCachedUnsafe(r,i,n,o){let d=L2e(r);return d===1?this.unsafeLadder(r,i,o):this.wNAFUnsafe(d,this.getPrecomputes(d,r,n),i,o)},setWindowSize(r,i){Rft(i,t),Sft.set(r,i),P2e.delete(r)}}}function Cft(e,t,r,i){kir(r,e),Pir(i,t);let n=r.length,o=i.length;if(n!==o)throw new Error("arrays of points and scalars must have equal length");let d=e.ZERO,g=I0t(BigInt(n)),y=1;g>12?y=g-3:g>4?y=g-2:g>0&&(y=2);let _=Xw(y),I=new Array(Number(_)+1).fill(d),N=Math.floor((t.BITS-1)/y)*y,T=d;for(let M=N;M>=0;M-=y){I.fill(d);for(let P=0;P<o;P++){let G=i[P],q=Number(G>>BigInt(M)&_);I[q]=I[q].add(r[P])}let D=d;for(let P=I.length-1,G=d;P>0;P--)G=G.add(I[P]),D=D.add(G);if(T=T.add(D),M!==0)for(let P=0;P<y;P++)T=T.double()}return T}function F2e(e){return x2e(e.Fp),Zw(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...B2e(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}CX();function wft(e){e.lowS!==void 0&&kB("lowS",e.lowS),e.prehash!==void 0&&kB("prehash",e.prehash)}function Lir(e){let t=F2e(e);Zw(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:i,a:n}=t;if(r){if(!i.eql(n,i.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}var G2e=class extends Error{constructor(t=""){super(t)}},mS={Err:G2e,_tlv:{encode:(e,t)=>{let{Err:r}=mS;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=RU(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?RU(n.length/2|128):"";return RU(e)+o+n+t},decode(e,t){let{Err:r}=mS,i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=!!(n&128),d=0;if(!o)d=n;else{let y=n&127;if(!y)throw new r("tlv.decode(long): indefinite length not supported");if(y>4)throw new r("tlv.decode(long): byte length is too big");let _=t.subarray(i,i+y);if(_.length!==y)throw new r("tlv.decode: length bytes not complete");if(_[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(let I of _)d=d<<8|I;if(i+=y,d<128)throw new r("tlv.decode(long): not minimal encoding")}let g=t.subarray(i,i+d);if(g.length!==d)throw new r("tlv.decode: wrong value length");return{v:g,l:t.subarray(i+d)}}},_int:{encode(e){let{Err:t}=mS;if(e<yS)throw new t("integer: negative integers are not allowed");let r=RU(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=mS;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return lS(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=mS,n=e1("signature",e),{v:o,l:d}=i.decode(48,n);if(d.length)throw new t("invalid signature: left bytes after parsing");let{v:g,l:y}=i.decode(2,o),{v:_,l:I}=i.decode(2,y);if(I.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(g),s:r.decode(_)}},hexFromSig(e){let{_tlv:t,_int:r}=mS,i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s)),o=i+n;return t.encode(48,o)}};function Q2e(e,t){return PB(Yw(e,t))}var yS=BigInt(0),Rl=BigInt(1),DUi=BigInt(2),H2e=BigInt(3),Uir=BigInt(4);function Fir(e){let t=Lir(e),{Fp:r}=t,i=qU(t.n,t.nBitLength),n=t.toBytes||((ne,ce,le)=>{let pe=ce.toAffine();return IU(Uint8Array.from([4]),r.toBytes(pe.x),r.toBytes(pe.y))}),o=t.fromBytes||(ne=>{let ce=ne.subarray(1),le=r.fromBytes(ce.subarray(0,r.BYTES)),pe=r.fromBytes(ce.subarray(r.BYTES,2*r.BYTES));return{x:le,y:pe}});function d(ne){let{a:ce,b:le}=t,pe=r.sqr(ne),ae=r.mul(pe,ne);return r.add(r.add(ae,r.mul(ne,ce)),le)}function g(ne,ce){let le=r.sqr(ce),pe=d(ne);return r.eql(le,pe)}if(!g(t.Gx,t.Gy))throw new Error("bad curve params: generator point");let y=r.mul(r.pow(t.a,H2e),Uir),_=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(y,_)))throw new Error("bad curve params: a or b");function I(ne){return IX(ne,Rl,t.n)}function N(ne){let{allowedPrivateKeyLengths:ce,nByteLength:le,wrapPrivateKey:pe,n:ae}=t;if(ce&&typeof ne!="bigint"){if(DB(ne)&&(ne=PB(ne)),typeof ne!="string"||!ce.includes(ne.length))throw new Error("invalid private key");ne=ne.padStart(le*2,"0")}let W;try{W=typeof ne=="bigint"?ne:lS(e1("private key",ne,le))}catch{throw new Error("invalid private key, expected hex or "+le+" bytes, got "+typeof ne)}return pe&&(W=nA(W,ae)),Ww("private key",W,Rl,ae),W}function T(ne){if(!(ne instanceof P))throw new Error("ProjectivePoint expected")}let M=k_e((ne,ce)=>{let{px:le,py:pe,pz:ae}=ne;if(r.eql(ae,r.ONE))return{x:le,y:pe};let W=ne.is0();ce==null&&(ce=W?r.ONE:r.inv(ae));let se=r.mul(le,ce),O=r.mul(pe,ce),s=r.mul(ae,ce);if(W)return{x:r.ZERO,y:r.ZERO};if(!r.eql(s,r.ONE))throw new Error("invZ was invalid");return{x:se,y:O}}),D=k_e(ne=>{if(ne.is0()){if(t.allowInfinityPoint&&!r.is0(ne.py))return;throw new Error("bad point: ZERO")}let{x:ce,y:le}=ne.toAffine();if(!r.isValid(ce)||!r.isValid(le))throw new Error("bad point: x or y not FE");if(!g(ce,le))throw new Error("bad point: equation left != right");if(!ne.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class P{constructor(ce,le,pe){if(ce==null||!r.isValid(ce))throw new Error("x required");if(le==null||!r.isValid(le)||r.is0(le))throw new Error("y required");if(pe==null||!r.isValid(pe))throw new Error("z required");this.px=ce,this.py=le,this.pz=pe,Object.freeze(this)}static fromAffine(ce){let{x:le,y:pe}=ce||{};if(!ce||!r.isValid(le)||!r.isValid(pe))throw new Error("invalid affine point");if(ce instanceof P)throw new Error("projective point not allowed");let ae=W=>r.eql(W,r.ZERO);return ae(le)&&ae(pe)?P.ZERO:new P(le,pe,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(ce){let le=T2e(r,ce.map(pe=>pe.pz));return ce.map((pe,ae)=>pe.toAffine(le[ae])).map(P.fromAffine)}static fromHex(ce){let le=P.fromAffine(o(e1("pointHex",ce)));return le.assertValidity(),le}static fromPrivateKey(ce){return P.BASE.multiply(N(ce))}static msm(ce,le){return Cft(P,i,ce,le)}_setWindowSize(ce){Y.setWindowSize(this,ce)}assertValidity(){D(this)}hasEvenY(){let{y:ce}=this.toAffine();if(r.isOdd)return!r.isOdd(ce);throw new Error("Field doesn't support isOdd")}equals(ce){T(ce);let{px:le,py:pe,pz:ae}=this,{px:W,py:se,pz:O}=ce,s=r.eql(r.mul(le,O),r.mul(W,ae)),l=r.eql(r.mul(pe,O),r.mul(se,ae));return s&&l}negate(){return new P(this.px,r.neg(this.py),this.pz)}double(){let{a:ce,b:le}=t,pe=r.mul(le,H2e),{px:ae,py:W,pz:se}=this,O=r.ZERO,s=r.ZERO,l=r.ZERO,A=r.mul(ae,ae),m=r.mul(W,W),E=r.mul(se,se),w=r.mul(ae,W);return w=r.add(w,w),l=r.mul(ae,se),l=r.add(l,l),O=r.mul(ce,l),s=r.mul(pe,E),s=r.add(O,s),O=r.sub(m,s),s=r.add(m,s),s=r.mul(O,s),O=r.mul(w,O),l=r.mul(pe,l),E=r.mul(ce,E),w=r.sub(A,E),w=r.mul(ce,w),w=r.add(w,l),l=r.add(A,A),A=r.add(l,A),A=r.add(A,E),A=r.mul(A,w),s=r.add(s,A),E=r.mul(W,se),E=r.add(E,E),A=r.mul(E,w),O=r.sub(O,A),l=r.mul(E,m),l=r.add(l,l),l=r.add(l,l),new P(O,s,l)}add(ce){T(ce);let{px:le,py:pe,pz:ae}=this,{px:W,py:se,pz:O}=ce,s=r.ZERO,l=r.ZERO,A=r.ZERO,m=t.a,E=r.mul(t.b,H2e),w=r.mul(le,W),x=r.mul(pe,se),R=r.mul(ae,O),u=r.add(le,pe),C=r.add(W,se);u=r.mul(u,C),C=r.add(w,x),u=r.sub(u,C),C=r.add(le,ae);let U=r.add(W,O);return C=r.mul(C,U),U=r.add(w,R),C=r.sub(C,U),U=r.add(pe,ae),s=r.add(se,O),U=r.mul(U,s),s=r.add(x,R),U=r.sub(U,s),A=r.mul(m,C),s=r.mul(E,R),A=r.add(s,A),s=r.sub(x,A),A=r.add(x,A),l=r.mul(s,A),x=r.add(w,w),x=r.add(x,w),R=r.mul(m,R),C=r.mul(E,C),x=r.add(x,R),R=r.sub(w,R),R=r.mul(m,R),C=r.add(C,R),w=r.mul(x,C),l=r.add(l,w),w=r.mul(U,C),s=r.mul(u,s),s=r.sub(s,w),w=r.mul(u,x),A=r.mul(U,A),A=r.add(A,w),new P(s,l,A)}subtract(ce){return this.add(ce.negate())}is0(){return this.equals(P.ZERO)}wNAF(ce){return Y.wNAFCached(this,ce,P.normalizeZ)}multiplyUnsafe(ce){let{endo:le,n:pe}=t;Ww("scalar",ce,yS,pe);let ae=P.ZERO;if(ce===yS)return ae;if(this.is0()||ce===Rl)return this;if(!le||Y.hasPrecomputes(this))return Y.wNAFCachedUnsafe(this,ce,P.normalizeZ);let{k1neg:W,k1:se,k2neg:O,k2:s}=le.splitScalar(ce),l=ae,A=ae,m=this;for(;se>yS||s>yS;)se&Rl&&(l=l.add(m)),s&Rl&&(A=A.add(m)),m=m.double(),se>>=Rl,s>>=Rl;return W&&(l=l.negate()),O&&(A=A.negate()),A=new P(r.mul(A.px,le.beta),A.py,A.pz),l.add(A)}multiply(ce){let{endo:le,n:pe}=t;Ww("scalar",ce,Rl,pe);let ae,W;if(le){let{k1neg:se,k1:O,k2neg:s,k2:l}=le.splitScalar(ce),{p:A,f:m}=this.wNAF(O),{p:E,f:w}=this.wNAF(l);A=Y.constTimeNegate(se,A),E=Y.constTimeNegate(s,E),E=new P(r.mul(E.px,le.beta),E.py,E.pz),ae=A.add(E),W=m.add(w)}else{let{p:se,f:O}=this.wNAF(ce);ae=se,W=O}return P.normalizeZ([ae,W])[0]}multiplyAndAddUnsafe(ce,le,pe){let ae=P.BASE,W=(O,s)=>s===yS||s===Rl||!O.equals(ae)?O.multiplyUnsafe(s):O.multiply(s),se=W(this,le).add(W(ce,pe));return se.is0()?void 0:se}toAffine(ce){return M(this,ce)}isTorsionFree(){let{h:ce,isTorsionFree:le}=t;if(ce===Rl)return!0;if(le)return le(P,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:ce,clearCofactor:le}=t;return ce===Rl?this:le?le(P,this):this.multiplyUnsafe(t.h)}toRawBytes(ce=!0){return kB("isCompressed",ce),this.assertValidity(),n(P,this,ce)}toHex(ce=!0){return kB("isCompressed",ce),PB(this.toRawBytes(ce))}}P.BASE=new P(t.Gx,t.Gy,r.ONE),P.ZERO=new P(r.ZERO,r.ONE,r.ZERO);let{endo:G,nBitLength:q}=t,Y=Ift(P,G?Math.ceil(q/2):q);return{CURVE:t,ProjectivePoint:P,normPrivateKeyToScalar:N,weierstrassEquation:d,isWithinCurveOrder:I}}function Qir(e){let t=F2e(e);return Zw(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function Oft(e){let t=Qir(e),{Fp:r,n:i,nByteLength:n,nBitLength:o}=t,d=r.BYTES+1,g=2*r.BYTES+1;function y(E){return nA(E,i)}function _(E){return kZ(E,i)}let{ProjectivePoint:I,normPrivateKeyToScalar:N,weierstrassEquation:T,isWithinCurveOrder:M}=Fir({...t,toBytes(E,w,x){let R=w.toAffine(),u=r.toBytes(R.x),C=IU;return kB("isCompressed",x),x?C(Uint8Array.from([w.hasEvenY()?2:3]),u):C(Uint8Array.from([4]),u,r.toBytes(R.y))},fromBytes(E){let w=E.length,x=E[0],R=E.subarray(1);if(w===d&&(x===2||x===3)){let u=lS(R);if(!IX(u,Rl,r.ORDER))throw new Error("Point is not on curve");let C=T(u),U;try{U=r.sqrt(C)}catch(Ae){let he=Ae instanceof Error?": "+Ae.message:"";throw new Error("Point is not on curve"+he)}let F=(U&Rl)===Rl;return(x&1)===1!==F&&(U=r.neg(U)),{x:u,y:U}}else if(w===g&&x===4){let u=r.fromBytes(R.subarray(0,r.BYTES)),C=r.fromBytes(R.subarray(r.BYTES,2*r.BYTES));return{x:u,y:C}}else{let u=d,C=g;throw new Error("invalid Point, expected length of "+u+", or uncompressed "+C+", got "+w)}}});function D(E){let w=i>>Rl;return E>w}function P(E){return D(E)?y(-E):E}let G=(E,w,x)=>lS(E.slice(w,x));class q{constructor(w,x,R){Ww("r",w,Rl,i),Ww("s",x,Rl,i),this.r=w,this.s=x,R!=null&&(this.recovery=R),Object.freeze(this)}static fromCompact(w){let x=n;return w=e1("compactSignature",w,x*2),new q(G(w,0,x),G(w,x,2*x))}static fromDER(w){let{r:x,s:R}=mS.toSig(e1("DER",w));return new q(x,R)}assertValidity(){}addRecoveryBit(w){return new q(this.r,this.s,w)}recoverPublicKey(w){let{r:x,s:R,recovery:u}=this,C=ae(e1("msgHash",w));if(u==null||![0,1,2,3].includes(u))throw new Error("recovery id invalid");let U=u===2||u===3?x+t.n:x;if(U>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");let F=(u&1)===0?"02":"03",X=I.fromHex(F+Q2e(U,r.BYTES)),Ae=_(U),he=y(-C*Ae),$e=y(R*Ae),Ge=I.BASE.multiplyAndAddUnsafe(X,he,$e);if(!Ge)throw new Error("point at infinify");return Ge.assertValidity(),Ge}hasHighS(){return D(this.s)}normalizeS(){return this.hasHighS()?new q(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return SU(this.toDERHex())}toDERHex(){return mS.hexFromSig(this)}toCompactRawBytes(){return SU(this.toCompactHex())}toCompactHex(){let w=n;return Q2e(this.r,w)+Q2e(this.s,w)}}let Y={isValidPrivateKey(E){try{return N(E),!0}catch{return!1}},normPrivateKeyToScalar:N,randomPrivateKey:()=>{let E=M2e(t.n);return bft(t.randomBytes(E),t.n)},precompute(E=8,w=I.BASE){return w._setWindowSize(E),w.multiply(BigInt(3)),w}};function ne(E,w=!0){return I.fromPrivateKey(E).toRawBytes(w)}function ce(E){if(typeof E=="bigint")return!1;if(E instanceof I)return!0;let x=e1("key",E).length,R=r.BYTES,u=R+1,C=2*R+1;if(!(t.allowedPrivateKeyLengths||n===u))return x===u||x===C}function le(E,w,x=!0){if(ce(E)===!0)throw new Error("first arg must be private key");if(ce(w)===!1)throw new Error("second arg must be public key");return I.fromHex(w).multiply(N(E)).toRawBytes(x)}let pe=t.bits2int||function(E){if(E.length>8192)throw new Error("input is too large");let w=lS(E),x=E.length*8-o;return x>0?w>>BigInt(x):w},ae=t.bits2int_modN||function(E){return y(pe(E))},W=Xw(o);function se(E){return Ww("num < 2^"+o,E,yS,W),Yw(E,n)}function O(E,w,x=s){if(["recovered","canonical"].some(Se=>Se in x))throw new Error("sign() legacy options not supported");let{hash:R,randomBytes:u}=t,{lowS:C,prehash:U,extraEntropy:F}=x;C==null&&(C=!0),E=e1("msgHash",E),wft(x),U&&(E=e1("prehashed msgHash",R(E)));let X=ae(E),Ae=N(w),he=[se(Ae),se(X)];if(F!=null&&F!==!1){let Se=F===!0?u(r.BYTES):F;he.push(e1("extraEntropy",Se))}let $e=IU(...he),Ge=X;function Re(Se){let ct=pe(Se);if(!M(ct))return;let ze=_(ct),te=I.BASE.multiply(ct).toAffine(),Ue=y(te.x);if(Ue===yS)return;let oe=y(ze*y(Ge+Ue*Ae));if(oe===yS)return;let ge=(te.x===Ue?0:2)|Number(te.y&Rl),Le=oe;return C&&D(oe)&&(Le=P(oe),ge^=1),new q(Ue,Le,ge)}return{seed:$e,k2sig:Re}}let s={lowS:t.lowS,prehash:!1},l={lowS:t.lowS,prehash:!1};function A(E,w,x=s){let{seed:R,k2sig:u}=O(E,w,x),C=t;return C0t(C.hash.outputLen,C.nByteLength,C.hmac)(R,u)}I.BASE._setWindowSize(8);function m(E,w,x,R=l){let u=E;w=e1("msgHash",w),x=e1("publicKey",x);let{lowS:C,prehash:U,format:F}=R;if(wft(R),"strict"in R)throw new Error("options.strict was renamed to lowS");if(F!==void 0&&F!=="compact"&&F!=="der")throw new Error("format must be compact or der");let X=typeof u=="string"||DB(u),Ae=!X&&!F&&typeof u=="object"&&u!==null&&typeof u.r=="bigint"&&typeof u.s=="bigint";if(!X&&!Ae)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let he,$e;try{if(Ae&&(he=new q(u.r,u.s)),X){try{F!=="compact"&&(he=q.fromDER(u))}catch(ge){if(!(ge instanceof mS.Err))throw ge}!he&&F!=="der"&&(he=q.fromCompact(u))}$e=I.fromHex(x)}catch{return!1}if(!he||C&&he.hasHighS())return!1;U&&(w=t.hash(w));let{r:Ge,s:Re}=he,Se=ae(w),ct=_(Re),ze=y(Se*ct),te=y(Ge*ct),Ue=I.BASE.multiplyAndAddUnsafe($e,ze,te)?.toAffine();return Ue?y(Ue.x)===Ge:!1}return{CURVE:t,getPublicKey:ne,getSharedSecret:le,sign:A,verify:m,ProjectivePoint:I,Signature:q,utils:Y}}function Hir(e){return{hash:e,hmac:(t,...r)=>OC(e,t,Qf(...r)),randomBytes:w_}}function Nft(e,t){let r=i=>Oft({...e,...Hir(i)});return{...r(t),create:r}}var Bft=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),xft=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Gir=BigInt(0),qir=BigInt(1),q2e=BigInt(2),Tft=(e,t)=>(e+t/q2e)/t;function Vir(e){let t=Bft,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),d=BigInt(23),g=BigInt(44),y=BigInt(88),_=e*e*e%t,I=_*_*e%t,N=Ag(I,r,t)*I%t,T=Ag(N,r,t)*I%t,M=Ag(T,q2e,t)*_%t,D=Ag(M,n,t)*M%t,P=Ag(D,o,t)*D%t,G=Ag(P,g,t)*P%t,q=Ag(G,y,t)*G%t,Y=Ag(q,g,t)*P%t,ne=Ag(Y,r,t)*I%t,ce=Ag(ne,d,t)*D%t,le=Ag(ce,i,t)*_%t,pe=Ag(le,q2e,t);if(!V2e.eql(V2e.sqr(pe),e))throw new Error("Cannot find square root");return pe}var V2e=qU(Bft,void 0,void 0,{sqrt:Vir}),Mft=Nft({a:Gir,b:BigInt(7),Fp:V2e,n:xft,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=xft,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-qir*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,d=BigInt("0x100000000000000000000000000000000"),g=Tft(o*e,t),y=Tft(-i*e,t),_=nA(e-g*r-y*n,t),I=nA(-g*i-y*o,t),N=_>d,T=I>d;if(N&&(_=t-_),T&&(I=t-I),_>d||I>d)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:N,k1:_,k2neg:T,k2:I}}}},qm);t1();vl();OU();function Y2e(e,t={}){let{recovered:r}=t;if(typeof e.r>"u")throw new VU({signature:e});if(typeof e.s>"u")throw new VU({signature:e});if(r&&typeof e.yParity>"u")throw new VU({signature:e});if(e.r<0n||e.r>E2e)throw new z2e({value:e.r});if(e.s<0n||e.s>E2e)throw new K2e({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new JU({value:e.yParity})}function Jir(e){return Dft(Ld(e))}function Dft(e){if(e.length!==130&&e.length!==132)throw new J2e({signature:e});let t=BigInt(R0(e,0,32)),r=BigInt(R0(e,32,64)),i=(()=>{let n=+`0x${e.slice(130)}`;if(!Number.isNaN(n))try{return Z2e(n)}catch{throw new JU({value:n})}})();return typeof i>"u"?{r:t,s:r}:{r:t,s:r,yParity:i}}function W2e(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return X2e(e)}function X2e(e){let t=typeof e=="string"?Dft(e):e instanceof Uint8Array?Jir(e):typeof e.r=="string"?Kir(e):e.v?zir(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Y2e(t),t}function zir(e){return{r:e.r,s:e.s,yParity:Z2e(e.v)}}function Kir(e){let t=(()=>{let r=e.v?Number(e.v):void 0,i=e.yParity?Number(e.yParity):void 0;if(typeof r=="number"&&typeof i!="number"&&(i=Z2e(r)),typeof i!="number")throw new JU({value:e.yParity});return i})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function kft(e){let{r:t,s:r,yParity:i}=e;return[i?"0x01":"0x",t===0n?"0x":q_e(lc(t)),r===0n?"0x":q_e(lc(r))]}function Z2e(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new $2e({value:e})}var J2e=class extends _o{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${v0(HB(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}},VU=class extends _o{constructor({signature:t}){super(`Signature \`${B3(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}},z2e=class extends _o{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}},K2e=class extends _o{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}},JU=class extends _o{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}},$2e=class extends _o{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}};function Lft(e,t={}){return typeof e.chainId=="string"?$ir(e):{...e,...t.signature}}function $ir(e){let{address:t,chainId:r,nonce:i}=e,n=W2e(e);return{address:t,chainId:Number(r),nonce:BigInt(i),...n}}function Uft(e){return Yir(e,{presign:!0})}function Yir(e,t={}){let{presign:r}=t;return o5(j0("0x05",fft(Wir(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function Wir(e){let{address:t,chainId:r,nonce:i}=e,n=W2e(e);return[r?lc(r):"0x",t,i?lc(i):"0x",...n?kft(n):[]]}t1();vl();J();K();z();vl();function Fft(e){return ift(Zir(e))}function Zir(e){let{payload:t,signature:r}=e,{r:i,s:n,yParity:o}=r,g=new Mft.Signature(BigInt(i),BigInt(n)).addRecoveryBit(o).recoverPublicKey(HB(t).substring(2));return tft(g)}var j2e="0x8010801080108010801080108010801080108010801080108010801080108010",eme=GU("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function LZ(e){if(typeof e=="string"){if(R0(e,-32)!==j2e)throw new PZ(e)}else Y2e(e.authorization)}function eor(e){return typeof e=="string"?Qft(e):e}function Qft(e){LZ(e);let t=BX(R0(e,-64,-32)),r=R0(e,-t-64,-64),i=R0(e,0,-t-64),[n,o,d]=e7(eme,r);return{authorization:Lft({address:n.delegation,chainId:Number(n.chainId),nonce:n.nonce,yParity:n.yParity,r:n.r,s:n.s}),signature:i,...d&&d!=="0x"?{data:d,to:o}:{}}}function tor(e){let{data:t,signature:r}=e;LZ(e);let i=Fft({payload:Uft(e.authorization),signature:X2e(e.authorization)}),n=F3(eme,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??i,t??"0x"]),o=lc(v0(n),{size:32});return j0(r,n,o,j2e)}function ror(e){try{return LZ(e),!0}catch{return!1}}var PZ=class extends _o{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function nor(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function Hft(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?o0(e.nonce):void 0,storageProof:e.storageProof?nor(e.storageProof):void 0}}async function Gft(e,{address:t,blockNumber:r,blockTag:i,storageKeys:n}){let o=i??"latest",d=r!==void 0?Sn(r):void 0,g=await e.request({method:"eth_getProof",params:[t,n,d||o]});return Hft(g)}J();K();z();fo();async function qft(e,{address:t,blockNumber:r,blockTag:i="latest",slot:n}){let o=r!==void 0?Sn(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,n,o||i]})}J();K();z();ug();fo();async function t7(e,{blockHash:t,blockNumber:r,blockTag:i,hash:n,index:o,sender:d,nonce:g}){let y=i||"latest",_=r!==void 0?Sn(r):void 0,I=null;if(n?I=await e.request({method:"eth_getTransactionByHash",params:[n]},{dedupe:!0}):t?I=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,Sn(o)]},{dedupe:!0}):(_||y)&&typeof o=="number"?I=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[_||y,Sn(o)]},{dedupe:!!_}):d&&typeof g=="number"&&(I=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[d,Sn(g)]},{dedupe:!0})),!I)throw new LT({blockHash:t,blockNumber:r,blockTag:y,hash:n,index:o});return(e.chain?.formatters?.transaction?.format||Kw)(I,"getTransaction")}J();K();z();async function Vft(e,{hash:t,transactionReceipt:r}){let[i,n]=await Promise.all([ei(e,lE,"getBlockNumber")({}),t?ei(e,t7,"getTransaction")({hash:t}):void 0]),o=r?.blockNumber||n?.blockNumber;return o?i-o+1n:0n}J();K();z();ug();async function r7(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new UT({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||kU)(r,"getTransactionReceipt")}J();K();z();M3();TU();W0();ia();_3();x3();Xp();n5();async function Jft(e,t){let{account:r,authorizationList:i,allowFailure:n=!0,blockNumber:o,blockOverrides:d,blockTag:g,stateOverride:y}=t,_=t.contracts,{batchSize:I=t.batchSize??1024,deployless:N=t.deployless??!1}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},T=(()=>{if(t.multicallAddress)return t.multicallAddress;if(N)return null;if(e.chain)return s2({blockNumber:o,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),M=[[]],D=0,P=0;for(let Y=0;Y<_.length;Y++){let{abi:ne,address:ce,args:le,functionName:pe}=_[Y];try{let ae=hu({abi:ne,args:le,functionName:pe});P+=(ae.length-2)/2,I>0&&P>I&&M[D].length>0&&(D++,P=(ae.length-2)/2,M[D]=[]),M[D]=[...M[D],{allowFailure:!0,callData:ae,target:ce}]}catch(ae){let W=dg(ae,{abi:ne,address:ce,args:le,docsPath:"/docs/contract/multicall",functionName:pe,sender:r});if(!n)throw W;M[D]=[...M[D],{allowFailure:!0,callData:"0x",target:ce}]}}let G=await Promise.allSettled(M.map(Y=>ei(e,lf,"readContract")({...T===null?{code:qB}:{address:T},abi:e5,account:r,args:[Y],authorizationList:i,blockNumber:o,blockOverrides:d,blockTag:g,functionName:"aggregate3",stateOverride:y}))),q=[];for(let Y=0;Y<G.length;Y++){let ne=G[Y];if(ne.status==="rejected"){if(!n)throw ne.reason;for(let le=0;le<M[Y].length;le++)q.push({status:"failure",error:ne.reason,result:void 0});continue}let ce=ne.value;for(let le=0;le<ce.length;le++){let{returnData:pe,success:ae}=ce[le],{callData:W}=M[Y][le],{abi:se,address:O,functionName:s,args:l}=_[q.length];try{if(W==="0x")throw new $_;if(!ae)throw new iE({data:pe});let A=jp({abi:se,args:l,data:pe,functionName:s});q.push(n?{result:A,status:"success"}:A)}catch(A){let m=dg(A,{abi:se,address:O,args:l,docsPath:"/docs/contract/multicall",functionName:s});if(!n)throw m;q.push({error:m,result:void 0,status:"failure"})}}}if(q.length!==_.length)throw new Kr("multicall results mismatch");return q}J();K();z();V_e();E0();W0();_3();C3();x3();Xp();Xh();fo();yU();dS();dX();cE();async function KU(e,t){let{blockNumber:r,blockTag:i=e.experimental_blockTag??"latest",blocks:n,returnFullTransactions:o,traceTransfers:d,validation:g}=t;try{let y=[];for(let T of n){let M=T.blockOverrides?PX(T.blockOverrides):void 0,D=T.calls.map(G=>{let q=G,Y=q.account?na(q.account):void 0,ne=q.abi?hu(q):q.data,ce={...q,account:Y,data:q.dataSuffix?uf([ne||"0x",q.dataSuffix]):ne,from:q.from??Y?.address};return yl(ce),JA(ce)}),P=T.stateOverrides?vB(T.stateOverrides):void 0;y.push({blockOverrides:M,calls:D,stateOverrides:P})}let I=(typeof r=="bigint"?Sn(r):void 0)||i;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:y,returnFullTransactions:o,traceTransfers:d,validation:g},I]})).map((T,M)=>({...EU(T),calls:T.calls.map((D,P)=>{let{abi:G,args:q,functionName:Y,to:ne}=n[M].calls[P],ce=D.error?.data??D.returnData,le=BigInt(D.gasUsed),pe=D.logs?.map(O=>El(O)),ae=D.status==="0x1"?"success":"failure",W=G&&ae==="success"&&ce!=="0x"?jp({abi:G,data:ce,functionName:Y}):null,se=(()=>{if(ae==="success")return;let O;if(D.error?.data==="0x"?O=new $_:D.error&&(O=new iE(D.error)),!!O)return dg(O,{abi:G??[],address:ne??"0x",args:q,functionName:Y??"<unknown>"})})();return{data:ce,gasUsed:le,logs:pe,status:ae,...ae==="success"?{result:W}:{error:se}}})}))}catch(y){let _=y,I=w3(_,{});throw I instanceof n2?_:I}}J();K();z();J();K();z();J();K();z();$L();t1();vl();J();K();z();t1();function FZ(e){let t=!0,r="",i=0,n="",o=!1;for(let d=0;d<e.length;d++){let g=e[d];if(["(",")",","].includes(g)&&(t=!0),g==="("&&i++,g===")"&&i--,!!t){if(i===0){if(g===" "&&["event","function","error",""].includes(n))n="";else if(n+=g,g===")"){o=!0;break}continue}if(g===" "){e[d-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}n+=g,r+=g}}if(!o)throw new _o("Unable to normalize signature.");return n}function UZ(e,t){let r=typeof e,i=t.type;switch(i){case"address":return CZ(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return i==="tuple"&&"components"in t?Object.values(t.components).every((n,o)=>UZ(Object.values(e)[o],n)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i)?Array.isArray(e)&&e.every(n=>UZ(n,{...t,type:i.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function tme(e,t,r){for(let i in e){let n=e[i],o=t[i];if(n.type==="tuple"&&o.type==="tuple"&&"components"in n&&"components"in o)return tme(n.components,o.components,r[i]);let d=[n.type,o.type];if(d.includes("address")&&d.includes("bytes20")?!0:d.includes("address")&&d.includes("string")?CZ(r[i],{strict:!1}):d.includes("address")&&d.includes("bytes")?CZ(r[i],{strict:!1}):!1)return d}}function QZ(e,t={}){let{prepare:r=!0}=t,i=Array.isArray(e)?lW(e):typeof e=="string"?lW(e):e;return{...i,...r?{hash:n7(i)}:{}}}function $U(e,t,r){let{args:i=[],prepare:n=!0}=r??{},o=xU(t,{strict:!1}),d=e.filter(_=>o?_.type==="function"||_.type==="error"?nme(_)===R0(t,0,4):_.type==="event"?n7(_)===t:!1:"name"in _&&_.name===t);if(d.length===0)throw new Q3({name:t});if(d.length===1)return{...d[0],...n?{hash:n7(d[0])}:{}};let g;for(let _ of d){if(!("inputs"in _))continue;if(!i||i.length===0){if(!_.inputs||_.inputs.length===0)return{..._,...n?{hash:n7(_)}:{}};continue}if(!_.inputs||_.inputs.length===0||_.inputs.length!==i.length)continue;if(i.every((N,T)=>{let M="inputs"in _&&_.inputs[T];return M?UZ(N,M):!1})){if(g&&"inputs"in g&&g.inputs){let N=tme(_.inputs,g.inputs,i);if(N)throw new rme({abiItem:_,type:N[0]},{abiItem:g,type:N[1]})}g=_}}let y=(()=>{if(g)return g;let[_,...I]=d;return{..._,overloads:I}})();if(!y)throw new Q3({name:t});return{...y,...n?{hash:n7(y)}:{}}}function nme(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,i]=e;return $U(r,i)}return e[0]})();return R0(n7(t),0,4)}function oor(...e){let t=(()=>{if(Array.isArray(e[0])){let[i,n]=e;return $U(i,n)}return e[0]})(),r=typeof t=="string"?t:Pw(t);return FZ(r)}function n7(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,i]=e;return $U(r,i)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:o5(GB(oor(t)))}var rme=class extends _o{constructor(t,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${FZ(Pw(t.abiItem))}\`, and`,`\`${r.type}\` in \`${FZ(Pw(r.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}},Q3=class extends _o{constructor({name:t,data:r,type:i="item"}){let n=t?` with name "${t}"`:r?` with data "${r}"`:"";super(`ABI ${i}${n} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}};vl();function Kft(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[o,d]=e;return[aor(o),d]}return e})(),{bytecode:i,args:n}=r;return j0(i,t.inputs?.length&&n?.length?F3(t.inputs,n):"0x")}function $ft(e){return QZ(e)}function aor(e){let t=e.find(r=>r.type==="constructor");if(!t)throw new Q3({name:"constructor"});return t}J();K();z();vl();function Wft(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[_,I,N]=e;return[Yft(_,I,{args:N}),N]}let[g,y]=e;return[g,y]})(),{overloads:i}=t,n=i?Yft([t,...i],t.name,{args:r}):t,o=cor(n),d=r.length>0?F3(n.inputs,r):void 0;return d?j0(o,d):o}function u5(e,t={}){return QZ(e,t)}function Yft(e,t,r){let i=$U(e,t,r);if(i.type!=="function")throw new Q3({name:t,type:"function"});return i}function cor(e){return nme(e)}E0();J();K();z();var Xft="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",gy="0x0000000000000000000000000000000000000000";TU();ia();Xp();var dor="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function Zft(e,t){let{blockNumber:r,blockTag:i,calls:n,stateOverrides:o,traceAssetChanges:d,traceTransfers:g,validation:y}=t,_=t.account?na(t.account):void 0;if(d&&!_)throw new Kr("`account` is required when `traceAssetChanges` is true");let I=_?Kft($ft("constructor(bytes, bytes)"),{bytecode:FX,args:[dor,Wft(u5("function getBalance(address)"),[_.address])]}):void 0,N=d?await Promise.all(t.calls.map(async R=>{if(!R.data&&!R.abi)return;let{accessList:u}=await uZ(e,{account:_.address,...R,data:R.abi?hu(R):R.data});return u.map(({address:C,storageKeys:U})=>U.length>0?C:null)})).then(R=>R.flat().filter(Boolean)):[],T=await KU(e,{blockNumber:r,blockTag:i,blocks:[...d?[{calls:[{data:I}],stateOverrides:o},{calls:N.map((R,u)=>({abi:[u5("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[_.address],to:R,from:gy,nonce:u})),stateOverrides:[{address:gy,nonce:0}]}]:[],{calls:[...n,{}].map(R=>({...R,from:_?.address})),stateOverrides:o},...d?[{calls:[{data:I}]},{calls:N.map((R,u)=>({abi:[u5("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[_.address],to:R,from:gy,nonce:u})),stateOverrides:[{address:gy,nonce:0}]},{calls:N.map((R,u)=>({to:R,abi:[u5("function decimals() returns (uint256)")],functionName:"decimals",from:gy,nonce:u})),stateOverrides:[{address:gy,nonce:0}]},{calls:N.map((R,u)=>({to:R,abi:[u5("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:gy,nonce:u})),stateOverrides:[{address:gy,nonce:0}]},{calls:N.map((R,u)=>({to:R,abi:[u5("function symbol() returns (string)")],functionName:"symbol",from:gy,nonce:u})),stateOverrides:[{address:gy,nonce:0}]}]:[]],traceTransfers:g,validation:y}),M=d?T[2]:T[0],[D,P,,G,q,Y,ne,ce]=d?T:[],{calls:le,...pe}=M,ae=le.slice(0,-1)??[],W=D?.calls??[],se=P?.calls??[],O=[...W,...se].map(R=>R.status==="success"?Ga(R.data):null),s=G?.calls??[],l=q?.calls??[],A=[...s,...l].map(R=>R.status==="success"?Ga(R.data):null),m=(Y?.calls??[]).map(R=>R.status==="success"?R.result:null),E=(ce?.calls??[]).map(R=>R.status==="success"?R.result:null),w=(ne?.calls??[]).map(R=>R.status==="success"?R.result:null),x=[];for(let[R,u]of A.entries()){let C=O[R];if(typeof u!="bigint"||typeof C!="bigint")continue;let U=m[R-1],F=E[R-1],X=w[R-1],Ae=R===0?{address:Xft,decimals:18,symbol:"ETH"}:{address:N[R-1],decimals:X||U?Number(U??1):void 0,symbol:F??void 0};x.some(he=>he.token.address===Ae.address)||x.push({token:Ae,value:{pre:C,post:u,diff:u-C}})}return{assetChanges:x,block:pe,results:ae}}J();K();z();J();K();z();var YU={};gh(YU,{InvalidWrappedSignatureError:()=>HZ,assert:()=>ome,from:()=>Aor,magicBytes:()=>ime,universalSignatureValidatorAbi:()=>hor,universalSignatureValidatorBytecode:()=>lor,unwrap:()=>jft,validate:()=>gor,wrap:()=>por});J();K();z();t1();vl();var ime="0x6492649264926492649264926492649264926492649264926492649264926492",lor="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",hor=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function ome(e){if(R0(e,-32)!==ime)throw new HZ(e)}function Aor(e){return typeof e=="string"?jft(e):e}function jft(e){ome(e);let[t,r,i]=e7(GU("address, bytes, bytes"),e);return{data:r,signature:i,to:t}}function por(e){let{data:t,signature:r,to:i}=e;return j0(F3(GU("address, bytes, bytes"),[i,t,r]),ime)}function gor(e){try{return ome(e),!0}catch{return!1}}var HZ=class extends _o{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};M3();TU();_3();GX();Xp();tS();$w();Xh();z_();sf();fo();J();K();z();mU();sf();cf();function GZ({r:e,s:t,to:r="hex",v:i,yParity:n}){let o=(()=>{if(n===0||n===1)return n;if(i&&(i===27n||i===28n||i>=35n))return i%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),d=`0x${new py.Signature(Ga(e),Ga(t)).toCompactHex()}${o===0?"1b":"1c"}`;return r==="hex"?d:Z0(d)}zB();async function H3(e,t){let{address:r,hash:i,erc6492VerifierAddress:n=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:o=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,d=(()=>{let g=t.signature;return X0(g)?g:typeof g=="object"&&"r"in g&&"s"in g?GZ(g):Qs(g)})();try{return zU.validate(d)?await _or(e,{...t,multicallAddress:o,signature:d}):await mor(e,{...t,verifierAddress:n,signature:d})}catch(g){try{if(o2(hy(r),await sX({hash:i,signature:d})))return!0}catch{}if(g instanceof bS)return!1;throw g}}async function _or(e,t){let{address:r,blockNumber:i,blockTag:n,hash:o,multicallAddress:d}=t,{authorization:g,data:y,signature:_,to:I}=zU.unwrap(t.signature);if(await LU(e,{address:r,blockNumber:i,blockTag:n})===df(["0xef0100",g.address]))return await yor(e,{address:r,blockNumber:i,blockTag:n,hash:o,signature:_});let T={address:g.address,chainId:Number(g.chainId),nonce:Number(g.nonce),r:Sn(g.r,{size:32}),s:Sn(g.s,{size:32}),yParity:g.yParity};if(!await Gdt({address:r,authorization:T}))throw new bS;let D=await ei(e,lf,"readContract")({...d?{address:d}:{code:qB},authorizationList:[T],abi:e5,blockNumber:i,blockTag:"pending",functionName:"aggregate3",args:[[...y?[{allowFailure:!0,target:I??r,callData:y}]:[],{allowFailure:!0,target:r,callData:hu({abi:K_e,functionName:"isValidSignature",args:[o,_]})}]]});if(D[D.length-1]?.returnData?.startsWith("0x1626ba7e"))return!0;throw new bS}async function mor(e,t){let{address:r,factory:i,factoryData:n,hash:o,signature:d,verifierAddress:g,...y}=t,_=await(async()=>!i&&!n||YU.validate(d)?d:YU.wrap({data:n,signature:d,to:i}))(),I=g?{to:g,data:hu({abi:$_e,functionName:"isValidSig",args:[r,o,_]}),...y}:{data:r5({abi:$_e,args:[r,o,_],bytecode:tdt}),...y},{data:N}=await ei(e,fE,"call")(I).catch(T=>{throw T instanceof QT?new bS:T});if(Lge(N??"0x0"))return!0;throw new bS}async function yor(e,t){let{address:r,blockNumber:i,blockTag:n,hash:o,signature:d}=t;if((await ei(e,lf,"readContract")({address:r,abi:K_e,args:[o,d],blockNumber:i,blockTag:n,functionName:"isValidSignature"}).catch(y=>{throw y instanceof HT?new bS:y})).startsWith("0x1626ba7e"))return!0;throw new bS}var bS=class extends Error{};J();K();z();async function elt(e,{address:t,message:r,factory:i,factoryData:n,signature:o,...d}){let g=ZB(r);return H3(e,{address:t,factory:i,factoryData:n,hash:g,signature:o,...d})}J();K();z();async function tlt(e,t){let{address:r,factory:i,factoryData:n,signature:o,message:d,primaryType:g,types:y,domain:_,...I}=t,N=bZ({message:d,primaryType:g,types:y,domain:_});return H3(e,{address:r,factory:i,factoryData:n,hash:N,signature:o,...I})}J();K();z();ug();VX();Zh();J();K();z();sf();Zh();function qZ(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:i,onError:n,poll:o,pollingInterval:d=e.pollingInterval}){let g=typeof o<"u"?o:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),y;return g?(()=>{let N=ws(["watchBlockNumber",e.uid,t,r,d]);return rA(N,{onBlockNumber:i,onError:n},T=>c2(async()=>{try{let M=await ei(e,lE,"getBlockNumber")({cacheTime:0});if(y!==void 0){if(M===y)return;if(M-y>1&&r)for(let D=y+1n;D<M;D++)T.onBlockNumber(D,y),y=D}(y===void 0||M>y)&&(T.onBlockNumber(M,y),y=M)}catch(M){T.onError?.(M)}},{emitOnBegin:t,interval:d}))})():(()=>{let N=ws(["watchBlockNumber",e.uid,t,r]);return rA(N,{onBlockNumber:i,onError:n},T=>{let M=!0,D=()=>M=!1;return(async()=>{try{let P=(()=>{if(e.transport.type==="fallback"){let q=e.transport.transports.find(Y=>Y.config.type==="webSocket"||Y.config.type==="ipc");return q?q.value:e.transport}return e.transport})(),{unsubscribe:G}=await P.subscribe({params:["newHeads"],onData(q){if(!M)return;let Y=Ga(q.result?.number);T.onBlockNumber(Y,y),y=Y},onError(q){T.onError?.(q)}});D=G,M||D()}catch(P){n?.(P)}})(),()=>D()})})()}async function VZ(e,t){let{checkReplacement:r=!0,confirmations:i=1,hash:n,onReplaced:o,retryCount:d=6,retryDelay:g=({count:le})=>~~(1<<le)*200,timeout:y=18e4}=t,_=ws(["waitForTransactionReceipt",e.uid,n]),I=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,N,T,M,D=!1,P,G,{promise:q,resolve:Y,reject:ne}=JB(),ce=y?setTimeout(()=>{G?.(),P?.(),ne(new YW({hash:n}))},y):void 0;return P=rA(_,{onReplaced:o,resolve:Y,reject:ne},async le=>{if(M=await ei(e,r7,"getTransactionReceipt")({hash:n}).catch(()=>{}),M&&i<=1){clearTimeout(ce),le.resolve(M),P?.();return}G=ei(e,qZ,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:I,async onBlockNumber(pe){let ae=se=>{clearTimeout(ce),G?.(),se(),P?.()},W=pe;if(!D)try{if(M){if(i>1&&(!M.blockNumber||W-M.blockNumber+1n<i))return;ae(()=>le.resolve(M));return}if(r&&!N&&(D=!0,await i5(async()=>{N=await ei(e,t7,"getTransaction")({hash:n}),N.blockNumber&&(W=N.blockNumber)},{delay:g,retryCount:d}),D=!1),M=await ei(e,r7,"getTransactionReceipt")({hash:n}),i>1&&(!M.blockNumber||W-M.blockNumber+1n<i))return;ae(()=>le.resolve(M))}catch(se){if(se instanceof LT||se instanceof UT){if(!N){D=!1;return}try{T=N,D=!0;let O=await i5(()=>ei(e,tA,"getBlock")({blockNumber:W,includeTransactions:!0}),{delay:g,retryCount:d,shouldRetry:({error:A})=>A instanceof SB});D=!1;let s=O.transactions.find(({from:A,nonce:m})=>A===T.from&&m===T.nonce);if(!s||(M=await ei(e,r7,"getTransactionReceipt")({hash:s.hash}),i>1&&(!M.blockNumber||W-M.blockNumber+1n<i)))return;let l="replaced";s.to===T.to&&s.value===T.value&&s.input===T.input?l="repriced":s.from===s.to&&s.value===0n&&(l="cancelled"),ae(()=>{le.onReplaced?.({reason:l,replacedTransaction:T,transaction:s,transactionReceipt:M}),le.resolve(M)})}catch(O){ae(()=>le.reject(O))}}else ae(()=>le.reject(se))}}})}),q}J();K();z();Zh();function rlt(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:i=!1,onBlock:n,onError:o,includeTransactions:d,poll:g,pollingInterval:y=e.pollingInterval}){let _=typeof g<"u"?g:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),I=d??!1,N;return _?(()=>{let D=ws(["watchBlocks",e.uid,t,r,i,I,y]);return rA(D,{onBlock:n,onError:o},P=>c2(async()=>{try{let G=await ei(e,tA,"getBlock")({blockTag:t,includeTransactions:I});if(G.number!==null&&N?.number!=null){if(G.number===N.number)return;if(G.number-N.number>1&&r)for(let q=N?.number+1n;q<G.number;q++){let Y=await ei(e,tA,"getBlock")({blockNumber:q,includeTransactions:I});P.onBlock(Y,N),N=Y}}(N?.number==null||t==="pending"&&G?.number==null||G.number!==null&&G.number>N.number)&&(P.onBlock(G,N),N=G)}catch(G){P.onError?.(G)}},{emitOnBegin:i,interval:y}))})():(()=>{let D=!0,P=!0,G=()=>D=!1;return(async()=>{try{i&&ei(e,tA,"getBlock")({blockTag:t,includeTransactions:I}).then(ne=>{D&&P&&(n(ne,void 0),P=!1)}).catch(o);let q=(()=>{if(e.transport.type==="fallback"){let ne=e.transport.transports.find(ce=>ce.config.type==="webSocket"||ce.config.type==="ipc");return ne?ne.value:e.transport}return e.transport})(),{unsubscribe:Y}=await q.subscribe({params:["newHeads"],async onData(ne){if(!D)return;let ce=await ei(e,tA,"getBlock")({blockNumber:ne.result?.number,includeTransactions:I}).catch(()=>{});D&&(n(ce,N),P=!1,N=ce)},onError(ne){o?.(ne)}});G=Y,D||G()}catch(q){o?.(q)}})(),()=>G()})()}J();K();z();W0();aB();Zh();function nlt(e,{address:t,args:r,batch:i=!0,event:n,events:o,fromBlock:d,onError:g,onLogs:y,poll:_,pollingInterval:I=e.pollingInterval,strict:N}){let T=typeof _<"u"?_:typeof d=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),M=N??!1;return T?(()=>{let G=ws(["watchEvent",t,r,i,e.uid,n,I,d]);return rA(G,{onLogs:y,onError:g},q=>{let Y;d!==void 0&&(Y=d-1n);let ne,ce=!1,le=c2(async()=>{if(!ce){try{ne=await ei(e,dZ,"createEventFilter")({address:t,args:r,event:n,events:o,strict:M,fromBlock:d})}catch{}ce=!0;return}try{let pe;if(ne)pe=await ei(e,D3,"getFilterChanges")({filter:ne});else{let ae=await ei(e,lE,"getBlockNumber")({});Y&&Y!==ae?pe=await ei(e,MB,"getLogs")({address:t,args:r,event:n,events:o,fromBlock:Y+1n,toBlock:ae}):pe=[],Y=ae}if(pe.length===0)return;if(i)q.onLogs(pe);else for(let ae of pe)q.onLogs([ae])}catch(pe){ne&&pe instanceof t2&&(ce=!1),q.onError?.(pe)}},{emitOnBegin:!0,interval:I});return async()=>{ne&&await ei(e,k3,"uninstallFilter")({filter:ne}),le()}})})():(()=>{let G=!0,q=()=>G=!1;return(async()=>{try{let Y=(()=>{if(e.transport.type==="fallback"){let pe=e.transport.transports.find(ae=>ae.config.type==="webSocket"||ae.config.type==="ipc");return pe?pe.value:e.transport}return e.transport})(),ne=o??(n?[n]:void 0),ce=[];ne&&(ce=[ne.flatMap(ae=>rE({abi:[ae],eventName:ae.name,args:r}))],n&&(ce=ce[0]));let{unsubscribe:le}=await Y.subscribe({params:["logs",{address:t,topics:ce}],onData(pe){if(!G)return;let ae=pe.result;try{let{eventName:W,args:se}=TB({abi:ne??[],data:ae.data,topics:ae.topics,strict:M}),O=El(ae,{args:se,eventName:W});y([O])}catch(W){let se,O;if(W instanceof fy||W instanceof Xb){if(N)return;se=W.abiItem.name,O=W.abiItem.inputs?.some(l=>!("name"in l&&l.name))}let s=El(ae,{args:O?[]:{},eventName:se});y([s])}},onError(pe){g?.(pe)}});q=le,G||q()}catch(Y){g?.(Y)}})(),()=>q()})()}J();K();z();Zh();function ilt(e,{batch:t=!0,onError:r,onTransactions:i,poll:n,pollingInterval:o=e.pollingInterval}){return(typeof n<"u"?n:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{let _=ws(["watchPendingTransactions",e.uid,t,o]);return rA(_,{onTransactions:i,onError:r},I=>{let N,T=c2(async()=>{try{if(!N)try{N=await ei(e,fZ,"createPendingTransactionFilter")({});return}catch(D){throw T(),D}let M=await ei(e,D3,"getFilterChanges")({filter:N});if(M.length===0)return;if(t)I.onTransactions(M);else for(let D of M)I.onTransactions([D])}catch(M){I.onError?.(M)}},{emitOnBegin:!0,interval:o});return async()=>{N&&await ei(e,k3,"uninstallFilter")({filter:N}),T()}})})():(()=>{let _=!0,I=()=>_=!1;return(async()=>{try{let{unsubscribe:N}=await e.transport.subscribe({params:["newPendingTransactions"],onData(T){if(!_)return;let M=T.result;i([M])},onError(T){r?.(T)}});I=N,_||I()}catch(N){r?.(N)}})(),()=>I()})()}J();K();z();J();K();z();function olt(e){let{scheme:t,statement:r,...i}=e.match(bor)?.groups??{},{chainId:n,expirationTime:o,issuedAt:d,notBefore:g,requestId:y,..._}=e.match(Eor)?.groups??{},I=e.split("Resources:")[1]?.split(`
|
|
- `).slice(1);return{...i,..._,...n?{chainId:Number(n)}:{},...o?{expirationTime:new Date(o)}:{},...d?{issuedAt:new Date(d)}:{},...g?{notBefore:new Date(g)}:{},...y?{requestId:y}:{},...I?{resources:I}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}var bor=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,Eor=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;J();K();z();Yp();$w();function alt(e){let{address:t,domain:r,message:i,nonce:n,scheme:o,time:d=new Date}=e;if(r&&i.domain!==r||n&&i.nonce!==n||o&&i.scheme!==o||i.expirationTime&&d>=i.expirationTime||i.notBefore&&d<i.notBefore)return!1;try{if(!i.address||!ys(i.address,{strict:!1})||t&&!o2(i.address,t))return!1}catch{return!1}return!0}async function slt(e,t){let{address:r,domain:i,message:n,nonce:o,scheme:d,signature:g,time:y=new Date,..._}=t,I=olt(n);if(!I.address||!alt({address:r,domain:i,message:I,nonce:o,scheme:d,time:y}))return!1;let T=ZB(n);return H3(e,{address:I.address,hash:T,signature:g,..._})}J();K();z();ug();async function i7(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:i}){let n=await e.request({method:"eth_sendRawTransactionSync",params:i?[t,Sn(i)]:[t]},{retryCount:0}),d=(e.chain?.formatters?.transactionReceipt?.format||kU)(n);if(d.status==="reverted"&&r)throw new FT({receipt:d});return d}function d5(e){return{call:t=>fE(e,t),createAccessList:t=>uZ(e,t),createBlockFilter:()=>Ndt(e),createContractEventFilter:t=>DW(e,t),createEventFilter:t=>dZ(e,t),createPendingTransactionFilter:()=>fZ(e),estimateContractGas:t=>y0t(e,t),estimateGas:t=>xB(e,t),getBalance:t=>xdt(e,t),getBlobBaseFee:()=>Tdt(e),getBlock:t=>tA(e,t),getBlockNumber:t=>lE(e,t),getBlockTransactionCount:t=>Bdt(e,t),getBytecode:t=>LU(e,t),getChainId:()=>bl(e),getCode:t=>LU(e,t),getContractEvents:t=>SX(e,t),getEip712Domain:t=>Mdt(e,t),getEnsAddress:t=>bdt(e,t),getEnsAvatar:t=>Cdt(e,t),getEnsName:t=>wdt(e,t),getEnsResolver:t=>Odt(e,t),getEnsText:t=>cZ(e,t),getFeeHistory:t=>kdt(e,t),estimateFeesPerGas:t=>p0t(e,t),getFilterChanges:t=>D3(e,t),getFilterLogs:t=>Pdt(e,t),getGasPrice:()=>IB(e),getLogs:t=>MB(e,t),getProof:t=>Gft(e,t),estimateMaxPriorityFeePerGas:t=>A0t(e,t),getStorageAt:t=>qft(e,t),getTransaction:t=>t7(e,t),getTransactionConfirmations:t=>Vft(e,t),getTransactionCount:t=>CB(e,t),getTransactionReceipt:t=>r7(e,t),multicall:t=>Jft(e,t),prepareTransactionRequest:t=>i2(e,t),readContract:t=>lf(e,t),sendRawTransaction:t=>L3(e,t),sendRawTransactionSync:t=>i7(e,t),simulate:t=>KU(e,t),simulateBlocks:t=>KU(e,t),simulateCalls:t=>Zft(e,t),simulateContract:t=>hdt(e,t),verifyHash:t=>H3(e,t),verifyMessage:t=>elt(e,t),verifySiweMessage:t=>slt(e,t),verifyTypedData:t=>tlt(e,t),uninstallFilter:t=>k3(e,t),waitForTransactionReceipt:t=>VZ(e,t),watchBlocks:t=>rlt(e,t),watchBlockNumber:t=>qZ(e,t),watchContractEvent:t=>_dt(e,t),watchEvent:t=>nlt(e,t),watchPendingTransactions:t=>ilt(e,t)}}function ame(e){let{key:t="public",name:r="Public Client"}=e;return nZ({...e,key:t,name:r,type:"publicClient"}).extend(d5)}J();K();z();J();K();z();J();K();z();fo();async function clt(e,{chain:t}){let{id:r,name:i,nativeCurrency:n,rpcUrls:o,blockExplorers:d}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Sn(r),chainName:i,nativeCurrency:n,rpcUrls:o.default.http,blockExplorerUrls:d?Object.values(d).map(({url:g})=>g):void 0}]},{dedupe:!0,retryCount:0})}J();K();z();GX();function ult(e,t){let{abi:r,args:i,bytecode:n,...o}=t,d=r5({abi:r,args:i,bytecode:n});return AE(e,{...o,...o.authorizationList?{to:null}:{},data:d})}J();K();z();tS();async function dlt(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(r=>jb(r))}J();K();z();E0();fo();async function flt(e,t={}){let{account:r=e.account,chainId:i}=t,n=r?na(r):void 0,o=i?[n?.address,[Sn(i)]]:[n?.address],d=await e.request({method:"wallet_getCapabilities",params:o}),g={};for(let[y,_]of Object.entries(d)){g[Number(y)]={};for(let[I,N]of Object.entries(_))I==="addSubAccount"&&(I="unstable_addSubAccount"),g[Number(y)][I]=N}return typeof i=="number"?g[i]:g}J();K();z();async function llt(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}J();K();z();E0();$w();async function JZ(e,t){let{account:r=e.account,chainId:i,nonce:n}=t;if(!r)throw new gd({docsPath:"/docs/eip7702/prepareAuthorization"});let o=na(r),d=(()=>{if(t.executor)return t.executor==="self"?t.executor:na(t.executor)})(),g={address:t.contractAddress??t.address,chainId:i,nonce:n};return typeof g.chainId>"u"&&(g.chainId=e.chain?.id??await ei(e,bl,"getChainId")({})),typeof g.nonce>"u"&&(g.nonce=await ei(e,CB,"getTransactionCount")({address:o.address,blockTag:"pending"}),(d==="self"||d?.address&&o2(d.address,o.address))&&(g.nonce+=1)),g}J();K();z();tS();async function hlt(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(r=>hy(r))}J();K();z();async function Alt(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}J();K();z();async function plt(e,t){let{chain:r=e.chain}=t,i=t.timeout??Math.max((r?.blockTime??0)*3,5e3),n=await XX(e,t);return await jX(e,{...t,id:n.id,timeout:i})}J();K();z();E0();ia();ug();EB();dS();xT();cE();var sme=new Z_(128);async function zZ(e,t){let{account:r=e.account,chain:i=e.chain,accessList:n,authorizationList:o,blobs:d,data:g,gas:y,gasPrice:_,maxFeePerBlobGas:I,maxFeePerGas:N,maxPriorityFeePerGas:T,nonce:M,pollingInterval:D,throwOnReceiptRevert:P,type:G,value:q,...Y}=t,ne=t.timeout??Math.max((i?.blockTime??0)*3,5e3);if(typeof r>"u")throw new gd({docsPath:"/docs/actions/wallet/sendTransactionSync"});let ce=r?na(r):null;try{yl(t);let le=await(async()=>{if(t.to)return t.to;if(t.to!==null&&o&&o.length>0)return await I3({authorization:o[0]}).catch(()=>{throw new Kr("`to` is required. Could not infer from `authorizationList`.")})})();if(ce?.type==="json-rpc"||ce===null){let pe;i!==null&&(pe=await ei(e,bl,"getChainId")({}),hE({currentChainId:pe,chain:i}));let ae=e.chain?.formatters?.transactionRequest?.format,se=(ae||JA)({...sE(Y,{format:ae}),accessList:n,account:ce,authorizationList:o,blobs:d,chainId:pe,data:g,gas:y,gasPrice:_,maxFeePerBlobGas:I,maxFeePerGas:N,maxPriorityFeePerGas:T,nonce:M,to:le,type:G,value:q},"sendTransaction"),O=sme.get(e.uid),s=O?"wallet_sendTransaction":"eth_sendTransaction",l=await(async()=>{try{return await e.request({method:s,params:[se]},{retryCount:0})}catch(m){if(O===!1)throw m;let E=m;if(E.name==="InvalidInputRpcError"||E.name==="InvalidParamsRpcError"||E.name==="MethodNotFoundRpcError"||E.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[se]},{retryCount:0}).then(w=>(sme.set(e.uid,!0),w)).catch(w=>{let x=w;throw x.name==="MethodNotFoundRpcError"||x.name==="MethodNotSupportedRpcError"?(sme.set(e.uid,!1),E):x});throw E}})(),A=await ei(e,VZ,"waitForTransactionReceipt")({checkReplacement:!1,hash:l,pollingInterval:D,timeout:ne});if(P&&A.status==="reverted")throw new FT({receipt:A});return A}if(ce?.type==="local"){let pe=await ei(e,i2,"prepareTransactionRequest")({account:ce,accessList:n,authorizationList:o,blobs:d,chain:i,data:g,gas:y,gasPrice:_,maxFeePerBlobGas:I,maxFeePerGas:N,maxPriorityFeePerGas:T,nonce:M,nonceManager:ce.nonceManager,parameters:[...vU,"sidecars"],type:G,value:q,...Y,to:le}),ae=i?.serializers?.transaction,W=await ce.signTransaction(pe,{serializer:ae});return await ei(e,i7,"sendRawTransactionSync")({serializedTransaction:W,throwOnReceiptRevert:P})}throw ce?.type==="smart"?new u2({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new u2({docsPath:"/docs/actions/wallet/sendTransactionSync",type:ce?.type})}catch(le){throw le instanceof u2?le:P3(le,{...t,account:ce,chain:t.chain||void 0})}}J();K();z();async function glt(e,t){let{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}J();K();z();E0();async function _lt(e,t){let{account:r=e.account}=t;if(!r)throw new gd({docsPath:"/docs/eip7702/signAuthorization"});let i=na(r);if(!i.signAuthorization)throw new u2({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:i.type});let n=await JZ(e,t);return i.signAuthorization(n)}J();K();z();E0();fo();async function mlt(e,{account:t=e.account,message:r}){if(!t)throw new gd({docsPath:"/docs/actions/wallet/signMessage"});let i=na(t);if(i.signMessage)return i.signMessage({message:r});let n=typeof r=="string"?Y_(r):r.raw instanceof Uint8Array?Uo(r.raw):r.raw;return e.request({method:"personal_sign",params:[n,i.address]},{retryCount:0})}J();K();z();E0();fo();dS();cE();async function KZ(e,t){let{account:r=e.account,chain:i=e.chain,...n}=t;if(!r)throw new gd({docsPath:"/docs/actions/wallet/signTransaction"});let o=na(r);yl({account:o,...t});let d=await ei(e,bl,"getChainId")({});i!==null&&hE({currentChainId:d,chain:i});let y=(i?.formatters||e.chain?.formatters)?.transactionRequest?.format||JA;return o.signTransaction?o.signTransaction({...n,chainId:d},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...y({...n,account:o},"signTransaction"),chainId:Sn(d),from:o.address}]},{retryCount:0})}J();K();z();E0();async function $Z(e,t){let{account:r=e.account,domain:i,message:n,primaryType:o}=t;if(!r)throw new gd({docsPath:"/docs/actions/wallet/signTypedData"});let d=na(r),g={EIP712Domain:yZ({domain:i}),...t.types};if(mZ({domain:i,message:n,primaryType:o,types:g}),d.signTypedData)return d.signTypedData({domain:i,message:n,primaryType:o,types:g});let y=Ydt({domain:i,message:n,primaryType:o,types:g});return e.request({method:"eth_signTypedData_v4",params:[d.address,y]},{retryCount:0})}J();K();z();fo();async function ylt(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Sn(t)}]},{retryCount:0})}J();K();z();async function blt(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}J();K();z();async function Elt(e,t){return _S.internal(e,zZ,"sendTransactionSync",t)}function vlt(e){return{addChain:t=>clt(e,t),deployContract:t=>ult(e,t),getAddresses:()=>dlt(e),getCallsStatus:t=>ZX(e,t),getCapabilities:t=>flt(e,t),getChainId:()=>bl(e),getPermissions:()=>llt(e),prepareAuthorization:t=>JZ(e,t),prepareTransactionRequest:t=>i2(e,t),requestAddresses:()=>hlt(e),requestPermissions:t=>Alt(e,t),sendCalls:t=>XX(e,t),sendCallsSync:t=>plt(e,t),sendRawTransaction:t=>L3(e,t),sendRawTransactionSync:t=>i7(e,t),sendTransaction:t=>AE(e,t),sendTransactionSync:t=>zZ(e,t),showCallsStatus:t=>glt(e,t),signAuthorization:t=>_lt(e,t),signMessage:t=>mlt(e,t),signTransaction:t=>KZ(e,t),signTypedData:t=>$Z(e,t),switchChain:t=>ylt(e,t),waitForCallsStatus:t=>jX(e,t),watchAsset:t=>blt(e,t),writeContract:t=>_S(e,t),writeContractSync:t=>Elt(e,t)}}function o7(e){let{key:t="wallet",name:r="Wallet Client",transport:i}=e;return nZ({...e,key:t,name:r,transport:i,type:"walletClient"}).extend(vlt)}J();K();z();function YZ({key:e,methods:t,name:r,request:i,retryCount:n=3,retryDelay:o=150,timeout:d,type:g},y){let _=rZ();return{config:{key:e,methods:t,name:r,request:i,retryCount:n,retryDelay:o,timeout:d,type:g},request:Vdt(i,{methods:t,retryCount:n,retryDelay:o,uid:_}),value:y}}J();K();z();function cme(e,t={}){let{key:r="custom",methods:i,name:n="Custom Provider",retryDelay:o}=t;return({retryCount:d})=>YZ({key:r,methods:i,name:n,request:e.request.bind(e),retryCount:t.retryCount??d,retryDelay:o,type:"custom"})}J();K();z();Hw();J();K();z();ia();var WZ=class extends Kr{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}};Z_e();function a7(e,t={}){let{batch:r,fetchFn:i,fetchOptions:n,key:o="http",methods:d,name:g="HTTP JSON-RPC",onFetchRequest:y,onFetchResponse:_,retryDelay:I,raw:N}=t;return({chain:T,retryCount:M,timeout:D})=>{let{batchSize:P=1e3,wait:G=0}=typeof r=="object"?r:{},q=t.retryCount??M,Y=D??t.timeout??1e4,ne=e||T?.rpcUrls.default.http[0];if(!ne)throw new WZ;let ce=zdt(ne,{fetchFn:i,fetchOptions:n,onRequest:y,onResponse:_,timeout:Y});return YZ({key:o,methods:d,name:g,async request({method:le,params:pe}){let ae={method:le,params:pe},{schedule:W}=JX({id:ne,wait:G,shouldSplitBatch(l){return l.length>P},fn:l=>ce.request({body:l}),sort:(l,A)=>l.id-A.id}),se=async l=>r?W(l):[await ce.request({body:l})],[{error:O,result:s}]=await se(ae);if(N)return{error:O,result:s};if(O)throw new m3({body:ae,error:O,url:ne});return s},retryCount:q,retryDelay:I,timeout:Y,type:"http"},{fetchOptions:n,url:ne})}}tS();fo();J();K();z();J();K();z();J();K();z();J();K();z();sf();cf();fo();dS();J();K();z();fX();var s7=50000n,ume=h0t*32n;var dme={block:pX({format(e){let t=e.transactions?.map(r=>{if(typeof r=="string")return r;let i=dme.transaction?.format(r);return i.typeHex==="0x71"?i.type="eip712":i.typeHex==="0xff"&&(i.type="priority"),i});return{l1BatchNumber:e.l1BatchNumber?Ga(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?Ga(e.l1BatchTimestamp):null,transactions:t}}}),transaction:AX({format(e){let t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?Ga(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Ga(e.l1BatchTxIndex):null}}}),transactionReceipt:WX({format(e){return{l1BatchNumber:e.l1BatchNumber?Ga(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Ga(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...El(t),l1BatchNumber:t.l1BatchNumber?Ga(t.l1BatchNumber):null,transactionLogIndex:o0(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:Ga(t.blockHash),blockHash:t.blockHash,l1BatchNumber:t.l1BatchNumber?Ga(t.l1BatchNumber):null,transactionIndex:Ga(t.transactionIndex),shardId:Ga(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:Ga(t.logIndex)}))}}}),transactionRequest:f0t({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:Uo(e.gasPerPubdata)}:{gasPerPubdata:Uo(s7)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(Z0(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(Z0(t)))}:{},...e.customSignature?{customSignature:Array.from(Z0(e.customSignature))}:{}},type:"0x71"}:{}}})};J();K();z();Xh();fo();J();K();z();X_();ia();VB();Yp();J();K();z();ia();var c7=class extends Kr{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
|
|
`),{name:"InvalidEip712TransactionError"})}};J();K();z();function pE(e){return!!(e.type==="eip712"||"customSignature"in e&&e.customSignature||"paymaster"in e&&e.paymaster||"paymasterInput"in e&&e.paymasterInput||"gasPerPubdata"in e&&typeof e.gasPerPubdata=="bigint"||"factoryDeps"in e&&e.factoryDeps)}function XZ(e){let{chainId:t,to:r,from:i,paymaster:n,paymasterInput:o}=e;if(!pE(e))throw new c7;if(!t||t<=0)throw new pS({chainId:t});if(r&&!ys(r))throw new nc({address:r});if(i&&!ys(i))throw new nc({address:i});if(n&&!ys(n))throw new nc({address:n});if(n&&!o)throw new Kr("`paymasterInput` must be provided when `paymaster` is defined");if(!n&&o)throw new Kr("`paymaster` must be provided when `paymasterInput` is defined")}function vor(e,t){return pE(e)?Ror(e):WB(e,t)}var Rlt={transaction:vor};function Ror(e){let{chainId:t,gas:r,nonce:i,to:n,from:o,value:d,maxFeePerGas:g,maxPriorityFeePerGas:y,customSignature:_,factoryDeps:I,paymaster:N,paymasterInput:T,gasPerPubdata:M,data:D}=e;XZ(e);let P=[i?Uo(i):"0x",y?Uo(y):"0x",g?Uo(g):"0x",r?Uo(r):"0x",n??"0x",d?Uo(d):"0x",D??"0x",Uo(t),Uo(""),Uo(""),Uo(t),o??"0x",M?Uo(M):Uo(s7),I??[],_??"0x",N&&T?[N,T]:[]];return df(["0x71",lg(P)])}J();K();z();fo();J();K();z();tU();cf();J();K();z();ia();var ZZ=class extends Kr{constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:"BytecodeLengthExceedsMaxSizeError"})}},jZ=class extends Kr{constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:"BytecodeLengthInWordsMustBeOddError"})}},ej=class extends Kr{constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}};function WU(e){let t=Wh(e);if(t.length%32!==0)throw new ej({givenLength:t.length});if(t.length>ume)throw new ZZ({givenLength:t.length,maxBytecodeSize:ume});let r=_X(t),i=Wh(r),n=t.length/32;if(n%2===0)throw new jZ({givenLengthInWords:n});let o=Wh(n),d=Zb(o,{size:2}),g=new Uint8Array([1,0]);return i.set(g,0),i.set(d,2),i}var Slt=e=>{XZ(e);let t=Sor(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}};function Sor(e){let{gas:t,nonce:r,to:i,from:n,value:o,maxFeePerGas:d,maxPriorityFeePerGas:g,factoryDeps:y,paymaster:_,paymasterInput:I,gasPerPubdata:N,data:T}=e;return{txType:113n,from:BigInt(n),to:i?BigInt(i):0n,gasLimit:t??0n,gasPerPubdataByteLimit:N??s7,maxFeePerGas:d??0n,maxPriorityFeePerGas:g??0n,paymaster:_?BigInt(_):0n,nonce:r?BigInt(r):0n,value:o??0n,data:T??"0x",factoryDeps:y?.map(M=>Uo(WU(M)))??[],paymasterInput:I||"0x"}}var tj={blockTime:1e3,formatters:dme,serializers:Rlt,custom:{getEip712Domain:Slt}};var fme=hc({...tj,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}});J();K();z();var lme=hc({...tj,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}});J();K();z();J();K();z();var Ilt={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}};J();K();z();sf();var Clt={block:pX({format(e){return{transactions:e.transactions?.map(r=>{if(typeof r=="string")return r;let i=Kw(r);return i.typeHex==="0x7e"&&(i.isSystemTx=r.isSystemTx,i.mint=r.mint?Ga(r.mint):void 0,i.sourceHash=r.sourceHash,i.type="deposit"),i}),stateRoot:e.stateRoot}}}),transaction:AX({format(e){let t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Ga(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:WX({format(e){return{l1GasPrice:e.l1GasPrice?Ga(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Ga(e.l1GasUsed):null,l1Fee:e.l1Fee?Ga(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};J();K();z();X_();Yp();Xh();fo();function Ior(e,t){return wor(e)?Cor(e):WB(e,t)}var wlt={transaction:Ior};function Cor(e){Oor(e);let{sourceHash:t,data:r,from:i,gas:n,isSystemTx:o,mint:d,to:g,value:y}=e,_=[t,i,g??"0x",d?Uo(d):"0x",y?Uo(y):"0x",n?Uo(n):"0x",o?"0x1":"0x",r??"0x"];return df(["0x7e",lg(_)])}function wor(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Oor(e){let{from:t,to:r}=e;if(t&&!ys(t))throw new nc({address:t});if(r&&!ys(r))throw new nc({address:r})}var u7={blockTime:2e3,contracts:Ilt,formatters:Clt,serializers:wlt};J();K();z();var hme=hc({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}});J();K();z();var Ame=hc({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0});J();K();z();var XU=1,rj=hc({...u7,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...u7.contracts,disputeGameFactory:{[XU]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[XU]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[XU]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[XU]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:XU}),Nor=hc({...rj,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}});J();K();z();var ZU=11155111,f5=hc({...u7,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...u7.contracts,disputeGameFactory:{[ZU]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[ZU]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[ZU]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[ZU]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:ZU}),xor=hc({...f5,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}});J();K();z();var pme=hc({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.edu-chain.raas.gelato.cloud"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://educhain.blockscout.com/"}},testnet:!1});J();K();z();var gme=hc({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}});J();K();z();var _me=hc({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0});J();K();z();var mme=hc({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}});J();K();z();var yme=hc({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}});J();K();z();var bme=hc({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api-amoy.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0});J();K();z();var Eme=hc({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com",apiUrl:"https://seitrace.com/pacific-1/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}});J();K();z();var vme=hc({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0});J();K();z();var Rme=hc({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story explorer",url:"https://storyscan.io",apiUrl:"https://storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1});J();K();z();J();K();z();function Tor(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Nlt(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(r=>typeof r=="string"):t.every(r=>Number.isSafeInteger(r)):!1}function Sme(e,t){if(typeof t!="string")throw new Error(`${e}: string expected`);return!0}function xlt(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function Ime(e){if(!Array.isArray(e))throw new Error("array expected")}function Tlt(e,t){if(!Nlt(!0,t))throw new Error(`${e}: array of strings expected`)}function Bor(e,t){if(!Nlt(!1,t))throw new Error(`${e}: array of numbers expected`)}function Mor(...e){let t=o=>o,r=(o,d)=>g=>o(d(g)),i=e.map(o=>o.encode).reduceRight(r,t),n=e.map(o=>o.decode).reduce(r,t);return{encode:i,decode:n}}function Dor(e){let t=typeof e=="string"?e.split(""):e,r=t.length;Tlt("alphabet",t);let i=new Map(t.map((n,o)=>[n,o]));return{encode:n=>(Ime(n),n.map(o=>{if(!Number.isSafeInteger(o)||o<0||o>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${o}". Allowed: ${e}`);return t[o]})),decode:n=>(Ime(n),n.map(o=>{Sme("alphabet.decode",o);let d=i.get(o);if(d===void 0)throw new Error(`Unknown letter: "${o}". Allowed: ${e}`);return d}))}}function kor(e=""){return Sme("join",e),{encode:t=>(Tlt("join.decode",t),t.join(e)),decode:t=>(Sme("join.decode",t),t.split(e))}}function Olt(e,t,r){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(Ime(e),!e.length)return[];let i=0,n=[],o=Array.from(e,g=>{if(xlt(g),g<0||g>=t)throw new Error(`invalid integer: ${g}`);return g}),d=o.length;for(;;){let g=0,y=!0;for(let _=i;_<d;_++){let I=o[_],N=t*g,T=N+I;if(!Number.isSafeInteger(T)||N/t!==g||T-I!==N)throw new Error("convertRadix: carry overflow");let M=T/r;g=T%r;let D=Math.floor(M);if(o[_]=D,!Number.isSafeInteger(D)||D*r+g!==T)throw new Error("convertRadix: carry overflow");if(y)D?y=!1:i=_;else continue}if(n.push(g),y)break}for(let g=0;g<e.length-1&&e[g]===0;g++)n.push(0);return n.reverse()}function Por(e){xlt(e);let t=2**8;return{encode:r=>{if(!Tor(r))throw new Error("radix.encode input should be Uint8Array");return Olt(Array.from(r),t,e)},decode:r=>(Bor("radix.decode",r),Uint8Array.from(Olt(r,e,t)))}}var Lor=e=>Mor(Por(58),Dor(e),kor("")),Blt=Lor("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");J();K();z();mU();fo();J();K();z();X_();Yp();function Mlt(e){if(typeof e=="string"){if(!ys(e,{strict:!1}))throw new nc({address:e});return{address:e,type:"json-rpc"}}if(!ys(e.address,{strict:!1}))throw new nc({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,signAuthorization:e.signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}J();K();z();mU();z_();cf();fo();var Cme=!1;async function gE({hash:e,privateKey:t,to:r="object"}){let{r:i,s:n,recovery:o}=py.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:X0(Cme,{strict:!1})?Z0(Cme):Cme}),d={r:Sn(i,{size:32}),s:Sn(n,{size:32}),v:o?28n:27n,yParity:o};return r==="bytes"||r==="hex"?GZ({...d,to:r}):d}J();K();z();async function Dlt(e){let{chainId:t,nonce:r,privateKey:i,to:n="object"}=e,o=e.contractAddress??e.address,d=await gE({hash:cX({address:o,chainId:t,nonce:r}),privateKey:i,to:n});return n==="object"?{address:o,chainId:t,nonce:r,...d}:d}J();K();z();async function klt({message:e,privateKey:t}){return await gE({hash:ZB(e),privateKey:t,to:"hex"})}J();K();z();W_();async function Plt(e){let{privateKey:t,transaction:r,serializer:i=WB}=e,n=r.type==="eip4844"?{...r,sidecars:!1}:r,o=await gE({hash:eu(await i(n)),privateKey:t});return await i(r,o)}J();K();z();async function Llt(e){let{privateKey:t,...r}=e;return await gE({hash:bZ(r),privateKey:t,to:"hex"})}function jU(e,t={}){let{nonceManager:r}=t,i=Uo(py.getPublicKey(e.slice(2),!1)),n=eX(i);return{...Mlt({address:n,nonceManager:r,async sign({hash:d}){return gE({hash:d,privateKey:e,to:"hex"})},async signAuthorization(d){return Dlt({...d,privateKey:e})},async signMessage({message:d}){return klt({message:d,privateKey:e})},async signTransaction(d,{serializer:g}={}){return Plt({privateKey:e,transaction:d,serializer:g})},async signTypedData(d){return Llt({...d,privateKey:e})}}),publicKey:i,source:"privateKey"}}J();K();z();J();K();z();var Ult="0x0000000000000000000000000000000000008006",Flt="0x0000000000000000000000000000000000010000";var kji=2n**160n;J();K();z();J();K();z();W0();eE();Xp();fo();J();K();z();var wme=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"accountAddress",type:"address"},{indexed:!1,internalType:"enum IContractDeployer.AccountNonceOrdering",name:"nonceOrdering",type:"uint8"}],name:"AccountNonceOrderingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"accountAddress",type:"address"},{indexed:!1,internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"aaVersion",type:"uint8"}],name:"AccountVersionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployerAddress",type:"address"},{indexed:!0,internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"contractAddress",type:"address"}],name:"ContractDeployed",type:"event"},{inputs:[{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"}],name:"create",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"}],name:"create2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"},{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"_aaVersion",type:"uint8"}],name:"create2Account",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"},{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"_aaVersion",type:"uint8"}],name:"createAccount",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"extendedAccountVersion",outputs:[{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_keccak256BytecodeHash",type:"bytes32"}],name:"forceDeployKeccak256",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"newAddress",type:"address"},{internalType:"bool",name:"callConstructor",type:"bool"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"input",type:"bytes"}],internalType:"struct ContractDeployer.ForceDeployment",name:"_deployment",type:"tuple"},{internalType:"address",name:"_sender",type:"address"}],name:"forceDeployOnAddress",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"newAddress",type:"address"},{internalType:"bool",name:"callConstructor",type:"bool"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"input",type:"bytes"}],internalType:"struct ContractDeployer.ForceDeployment[]",name:"_deployments",type:"tuple[]"}],name:"forceDeployOnAddresses",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"getAccountInfo",outputs:[{components:[{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"supportedAAVersion",type:"uint8"},{internalType:"enum IContractDeployer.AccountNonceOrdering",name:"nonceOrdering",type:"uint8"}],internalType:"struct IContractDeployer.AccountInfo",name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_sender",type:"address"},{internalType:"uint256",name:"_senderNonce",type:"uint256"}],name:"getNewAddressCreate",outputs:[{internalType:"address",name:"newAddress",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_sender",type:"address"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"}],name:"getNewAddressCreate2",outputs:[{internalType:"address",name:"newAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"_version",type:"uint8"}],name:"updateAccountVersion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum IContractDeployer.AccountNonceOrdering",name:"_nonceOrdering",type:"uint8"}],name:"updateNonceOrdering",outputs:[],stateMutability:"nonpayable",type:"function"}];var Ome="/docs/contract/encodeDeployData";function Hlt(e){let{abi:t,args:r,bytecode:i,deploymentType:n,salt:o}=e;if(!r||r.length===0){let{functionName:I,argsContractDeployer:N}=Qlt(n,o??l2e,Uo(WU(i)),"0x");return hu({abi:wme,functionName:I,args:N})}let d=t.find(I=>"type"in I&&I.type==="constructor");if(!d)throw new RT({docsPath:Ome});if(!("inputs"in d))throw new l3({docsPath:Ome});if(!d.inputs||d.inputs.length===0)throw new l3({docsPath:Ome});let g=ch(d.inputs,r),{functionName:y,argsContractDeployer:_}=Qlt(n,o??l2e,Uo(WU(i)),g);return hu({abi:wme,functionName:y,args:_})}function Qlt(e,t,r,i){let n=[t,r,i];return{create:{functionName:"create",argsContractDeployer:n},create2:{functionName:"create2",argsContractDeployer:n},createAccount:{functionName:"createAccount",argsContractDeployer:[...n,1]},create2Account:{functionName:"create2Account",argsContractDeployer:[...n,1]}}[e||"create"]}J();K();z();E0();J();K();z();cE();function nj(e){if(!pE(e))throw new c7;yl(e)}J();K();z();J();K();z();E0();ia();async function Glt(e,t){let{account:r=e.account,chain:i=e.chain,...n}=t,o=r?na(r):e.account;if(!o)throw new gd({docsPath:"/docs/actions/wallet/signTransaction"});if(nj({account:o,chain:i,...t}),!i?.custom?.getEip712Domain)throw new Kr("`getEip712Domain` not found on chain.");if(!i?.serializers?.transaction)throw new Kr("transaction serializer not found on chain.");let d=await ei(e,bl,"getChainId")({});i!==null&&hE({currentChainId:d,chain:i});let g=i?.custom.getEip712Domain({...n,chainId:d,from:o.address,type:"eip712"}),y=await $Z(e,{...g,account:o});return i?.serializers?.transaction({chainId:d,...n,customSignature:y,type:"eip712"},{r:"0x0",s:"0x0",v:0n})}async function ij(e,t){return pE(t)?Glt(e,t):await KZ(e,t)}async function oj(e,t){let{account:r=e.account,chain:i=e.chain}=t,n=r?na(r):e.account;if(!n)throw new gd({docsPath:"/docs/actions/wallet/sendTransaction"});try{nj(t);let o=await i2(e,{...t,nonceManager:n.nonceManager,parameters:["gas","nonce","fees"]}),d;i!==null&&(d=await ei(e,bl,"getChainId")({}),hE({currentChainId:d,chain:i}));let g=await ij(e,{...o,chainId:d});return await ei(e,L3,"sendRawTransaction")({serializedTransaction:g})}catch(o){throw P3(o,{...t,account:n,chain:i})}}function qlt(e,t){let{abi:r,args:i,bytecode:n,deploymentType:o,salt:d,...g}=t,y=Hlt({abi:r,args:i,bytecode:n,deploymentType:o,salt:d});return g.factoryDeps=g.factoryDeps||[],g.factoryDeps.includes(n)||g.factoryDeps.push(n),oj(e,{...g,data:y,to:o==="create2"||o==="create2Account"?Flt:Ult})}J();K();z();async function Nme(e,t){return pE(t)?oj(e,t):AE(e,t)}J();K();z();function xme(){return e=>({sendTransaction:t=>Nme(e,t),signTransaction:t=>ij(e,t),deployContract:t=>qlt(e,t),writeContract:t=>_S(Object.assign(e,{sendTransaction:r=>Nme(e,r)}),t)})}J();K();z();J();K();z();var For=1,Qor=2,Hor=3,Gor=4,qor=5,Vor=6,Jor=7,zor=8,Kor=9,$or=10,Yor=-32700,Wor=-32603,Xor=-32602,Zor=-32601,jor=-32600,ear=-32019,tar=-32018,rar=-32017,nar=-32016,iar=-32015,oar=-32014,aar=-32013,sar=-32012,car=-32011,uar=-32010,dar=-32009,far=-32008,lar=-32007,har=-32006,Aar=-32005,par=-32004,gar=-32003,_ar=-32002,mar=-32001,yar=28e5,bar=2800001,Ear=2800002,Rar=2800003,Sar=2800004,Iar=2800005,Car=2800006,war=2800007,Oar=2800008,Nar=2800009,xar=2800010,Tar=2800011,Tme=323e4,Vlt=32300001,Bme=3230002,Jlt=3230003,zlt=3230004,Bar=361e4,Mar=3610001,Dar=3610002,kar=3610003,Par=3610004,Lar=3610005,Uar=3610006,Far=3610007,Qar=3611e3,Har=3704e3,Gar=3704001,qar=3704002,Var=3704003,Jar=3704004,zar=4128e3,Kar=4128001,$ar=4128002,Yar=4615e3,War=4615001,Xar=4615002,Zar=4615003,jar=4615004,esr=4615005,tsr=4615006,rsr=4615007,nsr=4615008,isr=4615009,osr=4615010,asr=4615011,ssr=4615012,csr=4615013,usr=4615014,dsr=4615015,fsr=4615016,lsr=4615017,hsr=4615018,Asr=4615019,psr=4615020,gsr=4615021,_sr=4615022,msr=4615023,ysr=4615024,bsr=4615025,Esr=4615026,vsr=4615027,Rsr=4615028,Ssr=4615029,Isr=4615030,Csr=4615031,wsr=4615032,Osr=4615033,Nsr=4615034,xsr=4615035,Tsr=4615036,Bsr=4615037,Msr=4615038,Dsr=4615039,ksr=4615040,Psr=4615041,Lsr=4615042,Usr=4615043,Fsr=4615044,Qsr=4615045,Hsr=4615046,Gsr=4615047,qsr=4615048,Vsr=4615049,Jsr=4615050,zsr=4615051,Ksr=4615052,$sr=4615053,Ysr=4615054,Wsr=5508e3,Xsr=5508001,Zsr=5508002,jsr=5508003,ecr=5508004,tcr=5508005,rcr=5508006,ncr=5508007,icr=5508008,ocr=5508009,acr=5508010,scr=5508011,ccr=5663e3,ucr=5663001,dcr=5663002,fcr=5663003,lcr=5663004,hcr=5663005,Acr=5663006,pcr=5663007,gcr=5663008,_cr=5663009,mcr=5663010,ycr=5663011,bcr=5663012,Ecr=5663013,vcr=5663014,Rcr=5663015,Scr=5663016,Icr=5663017,Ccr=5663018,wcr=5663019,Ocr=5663020,Ncr=5663021,xcr=5663022,Tcr=705e4,Bcr=7050001,Mcr=7050002,Dcr=7050003,kcr=7050004,Pcr=7050005,Lcr=7050006,Ucr=7050007,Fcr=7050008,Qcr=7050009,Hcr=7050010,Gcr=7050011,qcr=7050012,Vcr=7050013,Jcr=7050014,zcr=7050015,Kcr=7050016,$cr=7050017,Ycr=7050018,Wcr=7050019,Xcr=7050020,Zcr=7050021,jcr=7050022,eur=7050023,tur=7050024,rur=7050025,nur=7050026,iur=7050027,our=7050028,aur=7050029,sur=7050030,cur=7050031,uur=7050032,dur=7050033,fur=7050034,lur=7050035,hur=7050036,Aur=7618e3,pur=7618001,gur=7618002,_ur=7618003,mur=8078e3,yur=8078001,bur=8078002,Eur=8078003,vur=8078004,Rur=8078005,Sur=8078006,Iur=8078007,Cur=8078008,wur=8078009,Our=8078010,Nur=8078011,aj=8078012,xur=8078013,Tur=8078014,Bur=8078015,Mur=8078016,Dur=8078017,kur=8078018,Pur=8078019,Lur=8078020,Uur=8078021,Fur=8078022,Qur=8078023,Hur=81e5,Gur=8100001,qur=8100002,Vur=8100003,Jur=819e4,zur=8190001,Kur=8190002,$ur=8190003,Yur=8190004,Wur=99e5,Xur=9900001,Zur=9900002,jur=9900003,e0r=9900004,t0r=9900005,r0r=9900006;function Klt(e){return Array.isArray(e)?"%5B"+e.map(Klt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function n0r([e,t]){return`${e}=${Klt(t)}`}function i0r(e){let t=Object.entries(e).map(n0r).join("&");return btoa(t)}var Ato={[Tme]:"Account not found at address: $address",[zlt]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Jlt]:"Expected decoded account at address: $address",[Bme]:"Failed to decode account data at address: $address",[Vlt]:"Accounts not found at addresses: $addresses",[Nar]:"Unable to find a viable program address bump seed.",[Ear]:"$putativeAddress is not a base58-encoded address.",[yar]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Rar]:"The `CryptoKey` must be an `Ed25519` public key.",[Tar]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Oar]:"Invalid seeds; point must fall off the Ed25519 curve.",[Sar]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Car]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[war]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Iar]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[xar]:"Program address cannot end with PDA marker.",[bar]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Gor]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[For]:"The network has progressed past the last block for which this transaction could have been committed.",[mur]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Fur]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Lur]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Rur]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Sur]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[vur]:"Encoder and decoder must either both be fixed-size or variable-size.",[Cur]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[bur]:"Expected a fixed-size codec, got a variable-size one.",[xur]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Eur]:"Expected a variable-size codec, got a fixed-size one.",[Pur]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[yur]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[kur]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[wur]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Our]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Bur]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Iur]:"Expected [$codecDescription] to have $expected items, got $actual.",[aj]:"Invalid value $value for base $base with alphabet $alphabet.",[Mur]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Nur]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Tur]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Uur]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Dur]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Qur]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Qar]:"No random values implementation could be found.",[isr]:"instruction requires an uninitialized account",[msr]:"instruction tries to borrow reference for an account which is already borrowed",[ysr]:"instruction left account with an outstanding borrowed reference",[gsr]:"program other than the account's owner changed the size of the account data",[esr]:"account data too small for instruction",[_sr]:"instruction expected an executable account",[Hsr]:"An account does not have enough lamports to be rent-exempt",[qsr]:"Program arithmetic overflowed",[Qsr]:"Failed to serialize or deserialize account data: $encodedData",[Ysr]:"Builtin programs must consume compute units",[wsr]:"Cross-program invocation call depth too deep",[Msr]:"Computational budget exceeded",[Esr]:"custom program error: #$code",[lsr]:"instruction contains duplicate accounts",[bsr]:"instruction modifications of multiply-passed account differ",[Isr]:"executable accounts must be rent exempt",[Rsr]:"instruction changed executable accounts data",[Ssr]:"instruction changed the balance of an executable account",[hsr]:"instruction changed executable bit of an account",[usr]:"instruction modified data of an account it does not own",[csr]:"instruction spent from the balance of an account it does not own",[War]:"generic instruction error",[Jsr]:"Provided owner is not allowed",[Usr]:"Account is immutable",[Fsr]:"Incorrect authority provided",[rsr]:"incorrect program id for instruction",[tsr]:"insufficient funds for instruction",[jar]:"invalid account data for instruction",[Gsr]:"Invalid account owner",[Xar]:"invalid program argument",[vsr]:"program returned invalid error code",[Zar]:"invalid instruction data",[Bsr]:"Failed to reallocate account data",[Tsr]:"Provided seeds do not result in a valid address",[zsr]:"Accounts data allocations exceeded the maximum allowed per transaction",[Ksr]:"Max accounts exceeded",[$sr]:"Max instruction trace length exceeded",[xsr]:"Length of the seed is too long for address generation",[Osr]:"An account required by the instruction is missing",[nsr]:"missing required signature for instruction",[ssr]:"instruction illegally modified the program id of an account",[psr]:"insufficient account keys for instruction",[Dsr]:"Cross-program invocation with unauthorized signer or writable account",[ksr]:"Failed to create program execution environment",[Lsr]:"Program failed to compile",[Psr]:"Program failed to complete",[fsr]:"instruction modified data of a read-only account",[dsr]:"instruction changed the balance of a read-only account",[Nsr]:"Cross-program invocation reentrancy not allowed for this instruction",[Asr]:"instruction modified rent epoch of an account",[asr]:"sum of account balances before and after instruction do not match",[osr]:"instruction requires an initialized account",[Yar]:"",[Csr]:"Unsupported program id",[Vsr]:"Unsupported sysvar",[t0r]:"Invalid instruction plan kind: $kind.",[gur]:"The provided instruction plan is empty.",[_ur]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[Aur]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[r0r]:"Invalid transaction plan kind: $kind.",[pur]:"No more instructions to pack; the message packer has completed the instruction plan.",[zar]:"The instruction does not have any accounts.",[Kar]:"The instruction does not have any data.",[$ar]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[qor]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Qor]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Zur]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[e0r]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Xur]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Wur]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jur]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Wor]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Xor]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[jor]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Zor]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Yor]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[sar]:"$__serverMessage",[mar]:"$__serverMessage",[par]:"$__serverMessage",[oar]:"$__serverMessage",[rar]:"Epoch rewards period still active at slot $slot",[uar]:"$__serverMessage",[dar]:"$__serverMessage",[ear]:"Failed to query long-term storage; please try again",[nar]:"Minimum context slot has not been reached",[Aar]:"Node is unhealthy; behind by $numSlotsBehind slots",[far]:"No snapshot",[_ar]:"Transaction simulation failed",[tar]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[lar]:"$__serverMessage",[car]:"Transaction history is not available from this node",[har]:"$__serverMessage",[aar]:"Transaction signature length mismatch",[gar]:"Transaction signature verification failure",[iar]:"$__serverMessage",[Har]:"Key pair bytes must be of length 64, got $byteLength.",[Gar]:"Expected private key bytes with length 32. Actual length: $actualLength.",[qar]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Jar]:"The provided private key does not match the provided public key.",[Var]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Vor]:"Lamports value must be in the range [0, 2e64-1]",[Jor]:"`$value` cannot be parsed as a `BigInt`",[$or]:"$message",[zor]:"`$value` cannot be parsed as a `Number`",[Hor]:"No nonce account could be found at address `$nonceAccountAddress`",[Jur]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Kur]:"WebSocket was closed before payload could be added to the send buffer",[$ur]:"WebSocket connection closed",[Yur]:"WebSocket failed to connect",[zur]:"Failed to obtain a subscription id from the server",[Vur]:"Could not find an API plan for RPC method: `$method`",[Hur]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[qur]:"HTTP error ($statusCode): $message",[Gur]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Wsr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Xsr]:"The provided value does not implement the `KeyPairSigner` interface",[jsr]:"The provided value does not implement the `MessageModifyingSigner` interface",[ecr]:"The provided value does not implement the `MessagePartialSigner` interface",[Zsr]:"The provided value does not implement any of the `MessageSigner` interfaces",[rcr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[ncr]:"The provided value does not implement the `TransactionPartialSigner` interface",[icr]:"The provided value does not implement the `TransactionSendingSigner` interface",[tcr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[ocr]:"More than one `TransactionSendingSigner` was identified.",[acr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[scr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Far]:"Cannot export a non-extractable key.",[Mar]:"No digest implementation could be found.",[Bar]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Dar]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[kar]:"No signature verification implementation could be found.",[Par]:"No key generation implementation could be found.",[Lar]:"No signing implementation could be found.",[Uar]:"No key export implementation could be found.",[Kor]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Kcr]:"Transaction processing left an account with an outstanding borrowed reference",[Bcr]:"Account in use",[Mcr]:"Account loaded twice",[Dcr]:"Attempt to debit an account but found no record of a prior credit.",[eur]:"Transaction loads an address table account that doesn't exist",[Ucr]:"This transaction has already been processed",[Fcr]:"Blockhash not found",[Qcr]:"Loader call chain is too deep",[zcr]:"Transactions are currently disabled due to cluster maintenance",[sur]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Pcr]:"Insufficient funds for fee",[cur]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Lcr]:"This account may not be used to pay transaction fees",[Gcr]:"Transaction contains an invalid account reference",[rur]:"Transaction loads an address table account with invalid data",[nur]:"Transaction address table lookup uses an invalid index",[tur]:"Transaction loads an address table account with an invalid owner",[dur]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Vcr]:"This program may not be used for executing instructions",[iur]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Wcr]:"Transaction loads a writable account that cannot be written",[uur]:"Transaction exceeded max loaded accounts data size cap",[Hcr]:"Transaction requires a fee but has no signature present",[kcr]:"Attempt to load a program that does not exist",[lur]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[fur]:"ResanitizationNeeded",[Jcr]:"Transaction failed to sanitize accounts offsets correctly",[qcr]:"Transaction did not pass signature verification",[jcr]:"Transaction locked too many accounts",[hur]:"Sum of account balances before and after transaction do not match",[Tcr]:"The transaction failed with the error `$errorName`",[Ycr]:"Transaction version is unsupported",[Zcr]:"Transaction would exceed account data limit within the block",[aur]:"Transaction would exceed total account data limit",[Xcr]:"Transaction would exceed max account limit within the block",[$cr]:"Transaction would exceed max Block Cost Limit",[our]:"Transaction would exceed max Vote Cost Limit",[Rcr]:"Attempted to sign a transaction with an address that is not a signer for it",[mcr]:"Transaction is missing an address at index: $index.",[Scr]:"Transaction has no expected signers therefore it cannot be encoded",[Ocr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[dcr]:"Transaction does not have a blockhash lifetime",[fcr]:"Transaction is not a durable nonce transaction",[hcr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Acr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[gcr]:"No fee payer set in CompiledTransaction",[pcr]:"Could not find program address at index $index",[Ccr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[wcr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[ycr]:"Transaction is missing a fee payer.",[bcr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[vcr]:"Transaction first instruction is not advance nonce account instruction.",[Ecr]:"Transaction with no instructions cannot be durable nonce transaction.",[ccr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[ucr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Icr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[_cr]:"Transaction is missing signatures for addresses: $addresses.",[lcr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Ncr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[xcr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function o0r(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${i0r(t)}'`),`${r}\``}}var d7=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=o0r(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};J();K();z();J();K();z();function a0r(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function $lt(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array(a0r(t,e));return e.write(t,r,0),r}})}var Ylt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wlt=()=>$lt({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new d7(aj,{alphabet:Ylt,base:64,value:e})}},write(e,t,r){try{let i=atob(e).split("").map(n=>n.charCodeAt(0));return t.set(i,r),i.length+r}catch{throw new d7(aj,{alphabet:Ylt,base:64,value:e})}}});var Oto=globalThis.TextDecoder,Nto=globalThis.TextEncoder;function Xlt(e,t){try{return"exists"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new d7(Bme,{address:e.address})}}function s0r(e,t){if(!t)return Object.freeze({address:e,exists:!1});let r=Wlt().encode(t.data[0]);return Object.freeze({...c0r(t),address:e,data:r,exists:!0})}function c0r(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner,space:e.space})}async function Zlt(e,t,r={}){let{abortSignal:i,...n}=r,o=await e.getAccountInfo(t,{...n,encoding:"base64"}).send({abortSignal:i});return s0r(t,o.value)}function jlt(e){if(!e.exists)throw new d7(Tme,{address:e.address})}J();K();z();J();K();z();J();K();z();var u0r=1,d0r=2,f0r=3,l0r=4,h0r=5,A0r=6,p0r=7,g0r=8,_0r=9,m0r=10,y0r=-32700,b0r=-32603,E0r=-32602,v0r=-32601,R0r=-32600,S0r=-32019,I0r=-32018,C0r=-32017,w0r=-32016,O0r=-32015,N0r=-32014,x0r=-32013,T0r=-32012,B0r=-32011,M0r=-32010,D0r=-32009,k0r=-32008,P0r=-32007,L0r=-32006,U0r=-32005,F0r=-32004,Q0r=-32003,H0r=-32002,G0r=-32001,Mme=28e5,Dme=2800001,q0r=2800002,kme=2800003,eht=2800004,tht=2800005,Pme=2800006,Lme=2800007,sj=2800008,Ume=2800009,rht=2800010,nht=2800011,V0r=323e4,J0r=32300001,z0r=3230002,K0r=3230003,$0r=3230004,Y0r=361e4,W0r=3610001,X0r=3610002,Z0r=3610003,j0r=3610004,edr=3610005,tdr=3610006,rdr=3610007,ndr=3611e3,idr=3704e3,odr=3704001,adr=3704002,sdr=3704003,cdr=3704004,udr=4128e3,ddr=4128001,fdr=4128002,ldr=4615e3,hdr=4615001,Adr=4615002,pdr=4615003,gdr=4615004,_dr=4615005,mdr=4615006,ydr=4615007,bdr=4615008,Edr=4615009,vdr=4615010,Rdr=4615011,Sdr=4615012,Idr=4615013,Cdr=4615014,wdr=4615015,Odr=4615016,Ndr=4615017,xdr=4615018,Tdr=4615019,Bdr=4615020,Mdr=4615021,Ddr=4615022,kdr=4615023,Pdr=4615024,Ldr=4615025,Udr=4615026,Fdr=4615027,Qdr=4615028,Hdr=4615029,Gdr=4615030,qdr=4615031,Vdr=4615032,Jdr=4615033,zdr=4615034,Kdr=4615035,$dr=4615036,Ydr=4615037,Wdr=4615038,Xdr=4615039,Zdr=4615040,jdr=4615041,efr=4615042,tfr=4615043,rfr=4615044,nfr=4615045,ifr=4615046,ofr=4615047,afr=4615048,sfr=4615049,cfr=4615050,ufr=4615051,dfr=4615052,ffr=4615053,lfr=4615054,hfr=5508e3,Afr=5508001,pfr=5508002,gfr=5508003,_fr=5508004,mfr=5508005,yfr=5508006,bfr=5508007,Efr=5508008,vfr=5508009,Rfr=5508010,Sfr=5508011,Ifr=5663e3,Cfr=5663001,wfr=5663002,Ofr=5663003,Nfr=5663004,xfr=5663005,Tfr=5663006,Bfr=5663007,Mfr=5663008,Dfr=5663009,kfr=5663010,Pfr=5663011,Lfr=5663012,Ufr=5663013,Ffr=5663014,Qfr=5663015,Hfr=5663016,Gfr=5663017,qfr=5663018,Vfr=5663019,Jfr=5663020,zfr=5663021,Kfr=5663022,$fr=705e4,Yfr=7050001,Wfr=7050002,Xfr=7050003,Zfr=7050004,jfr=7050005,elr=7050006,tlr=7050007,rlr=7050008,nlr=7050009,ilr=7050010,olr=7050011,alr=7050012,slr=7050013,clr=7050014,ulr=7050015,dlr=7050016,flr=7050017,llr=7050018,hlr=7050019,Alr=7050020,plr=7050021,glr=7050022,_lr=7050023,mlr=7050024,ylr=7050025,blr=7050026,Elr=7050027,vlr=7050028,Rlr=7050029,Slr=7050030,Ilr=7050031,Clr=7050032,wlr=7050033,Olr=7050034,Nlr=7050035,xlr=7050036,Tlr=7618e3,Blr=7618001,Mlr=7618002,Dlr=7618003,iht=8078e3,Fme=8078001,oht=8078002,aht=8078003,Qme=8078004,Hme=8078005,Gme=8078006,klr=8078007,Plr=8078008,Llr=8078009,Ulr=8078010,Flr=8078011,qme=8078012,sht=8078013,cht=8078014,Qlr=8078015,Hlr=8078016,Glr=8078017,qlr=8078018,Vlr=8078019,uht=8078020,dht=8078021,Jlr=8078022,fht=8078023,zlr=81e5,Klr=8100001,$lr=8100002,Ylr=8100003,Wlr=819e4,Xlr=8190001,Zlr=8190002,jlr=8190003,ehr=8190004,thr=99e5,rhr=9900001,nhr=9900002,ihr=9900003,ohr=9900004,ahr=9900005,shr=9900006;function lht(e){return Array.isArray(e)?"%5B"+e.map(lht).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function chr([e,t]){return`${e}=${lht(t)}`}function uhr(e){let t=Object.entries(e).map(chr).join("&");return btoa(t)}var Hto={[V0r]:"Account not found at address: $address",[$0r]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[K0r]:"Expected decoded account at address: $address",[z0r]:"Failed to decode account data at address: $address",[J0r]:"Accounts not found at addresses: $addresses",[Ume]:"Unable to find a viable program address bump seed.",[q0r]:"$putativeAddress is not a base58-encoded address.",[Mme]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[kme]:"The `CryptoKey` must be an `Ed25519` public key.",[nht]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[sj]:"Invalid seeds; point must fall off the Ed25519 curve.",[eht]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Pme]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Lme]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[tht]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[rht]:"Program address cannot end with PDA marker.",[Dme]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[l0r]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[u0r]:"The network has progressed past the last block for which this transaction could have been committed.",[iht]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Jlr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[uht]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Hme]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Gme]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Qme]:"Encoder and decoder must either both be fixed-size or variable-size.",[Plr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[oht]:"Expected a fixed-size codec, got a variable-size one.",[sht]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[aht]:"Expected a variable-size codec, got a fixed-size one.",[Vlr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Fme]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[qlr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Llr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Ulr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Qlr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[klr]:"Expected [$codecDescription] to have $expected items, got $actual.",[qme]:"Invalid value $value for base $base with alphabet $alphabet.",[Hlr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Flr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[cht]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[dht]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Glr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[fht]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[ndr]:"No random values implementation could be found.",[Edr]:"instruction requires an uninitialized account",[kdr]:"instruction tries to borrow reference for an account which is already borrowed",[Pdr]:"instruction left account with an outstanding borrowed reference",[Mdr]:"program other than the account's owner changed the size of the account data",[_dr]:"account data too small for instruction",[Ddr]:"instruction expected an executable account",[ifr]:"An account does not have enough lamports to be rent-exempt",[afr]:"Program arithmetic overflowed",[nfr]:"Failed to serialize or deserialize account data: $encodedData",[lfr]:"Builtin programs must consume compute units",[Vdr]:"Cross-program invocation call depth too deep",[Wdr]:"Computational budget exceeded",[Udr]:"custom program error: #$code",[Ndr]:"instruction contains duplicate accounts",[Ldr]:"instruction modifications of multiply-passed account differ",[Gdr]:"executable accounts must be rent exempt",[Qdr]:"instruction changed executable accounts data",[Hdr]:"instruction changed the balance of an executable account",[xdr]:"instruction changed executable bit of an account",[Cdr]:"instruction modified data of an account it does not own",[Idr]:"instruction spent from the balance of an account it does not own",[hdr]:"generic instruction error",[cfr]:"Provided owner is not allowed",[tfr]:"Account is immutable",[rfr]:"Incorrect authority provided",[ydr]:"incorrect program id for instruction",[mdr]:"insufficient funds for instruction",[gdr]:"invalid account data for instruction",[ofr]:"Invalid account owner",[Adr]:"invalid program argument",[Fdr]:"program returned invalid error code",[pdr]:"invalid instruction data",[Ydr]:"Failed to reallocate account data",[$dr]:"Provided seeds do not result in a valid address",[ufr]:"Accounts data allocations exceeded the maximum allowed per transaction",[dfr]:"Max accounts exceeded",[ffr]:"Max instruction trace length exceeded",[Kdr]:"Length of the seed is too long for address generation",[Jdr]:"An account required by the instruction is missing",[bdr]:"missing required signature for instruction",[Sdr]:"instruction illegally modified the program id of an account",[Bdr]:"insufficient account keys for instruction",[Xdr]:"Cross-program invocation with unauthorized signer or writable account",[Zdr]:"Failed to create program execution environment",[efr]:"Program failed to compile",[jdr]:"Program failed to complete",[Odr]:"instruction modified data of a read-only account",[wdr]:"instruction changed the balance of a read-only account",[zdr]:"Cross-program invocation reentrancy not allowed for this instruction",[Tdr]:"instruction modified rent epoch of an account",[Rdr]:"sum of account balances before and after instruction do not match",[vdr]:"instruction requires an initialized account",[ldr]:"",[qdr]:"Unsupported program id",[sfr]:"Unsupported sysvar",[ahr]:"Invalid instruction plan kind: $kind.",[Mlr]:"The provided instruction plan is empty.",[Dlr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[Tlr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[shr]:"Invalid transaction plan kind: $kind.",[Blr]:"No more instructions to pack; the message packer has completed the instruction plan.",[udr]:"The instruction does not have any accounts.",[ddr]:"The instruction does not have any data.",[fdr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[h0r]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[d0r]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[nhr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[ohr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[rhr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[thr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[ihr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[b0r]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[E0r]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[R0r]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[v0r]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[y0r]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[T0r]:"$__serverMessage",[G0r]:"$__serverMessage",[F0r]:"$__serverMessage",[N0r]:"$__serverMessage",[C0r]:"Epoch rewards period still active at slot $slot",[M0r]:"$__serverMessage",[D0r]:"$__serverMessage",[S0r]:"Failed to query long-term storage; please try again",[w0r]:"Minimum context slot has not been reached",[U0r]:"Node is unhealthy; behind by $numSlotsBehind slots",[k0r]:"No snapshot",[H0r]:"Transaction simulation failed",[I0r]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[P0r]:"$__serverMessage",[B0r]:"Transaction history is not available from this node",[L0r]:"$__serverMessage",[x0r]:"Transaction signature length mismatch",[Q0r]:"Transaction signature verification failure",[O0r]:"$__serverMessage",[idr]:"Key pair bytes must be of length 64, got $byteLength.",[odr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[adr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[cdr]:"The provided private key does not match the provided public key.",[sdr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[A0r]:"Lamports value must be in the range [0, 2e64-1]",[p0r]:"`$value` cannot be parsed as a `BigInt`",[m0r]:"$message",[g0r]:"`$value` cannot be parsed as a `Number`",[f0r]:"No nonce account could be found at address `$nonceAccountAddress`",[Wlr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Zlr]:"WebSocket was closed before payload could be added to the send buffer",[jlr]:"WebSocket connection closed",[ehr]:"WebSocket failed to connect",[Xlr]:"Failed to obtain a subscription id from the server",[Ylr]:"Could not find an API plan for RPC method: `$method`",[zlr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[$lr]:"HTTP error ($statusCode): $message",[Klr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[hfr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Afr]:"The provided value does not implement the `KeyPairSigner` interface",[gfr]:"The provided value does not implement the `MessageModifyingSigner` interface",[_fr]:"The provided value does not implement the `MessagePartialSigner` interface",[pfr]:"The provided value does not implement any of the `MessageSigner` interfaces",[yfr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[bfr]:"The provided value does not implement the `TransactionPartialSigner` interface",[Efr]:"The provided value does not implement the `TransactionSendingSigner` interface",[mfr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[vfr]:"More than one `TransactionSendingSigner` was identified.",[Rfr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Sfr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[rdr]:"Cannot export a non-extractable key.",[W0r]:"No digest implementation could be found.",[Y0r]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[X0r]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Z0r]:"No signature verification implementation could be found.",[j0r]:"No key generation implementation could be found.",[edr]:"No signing implementation could be found.",[tdr]:"No key export implementation could be found.",[_0r]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[dlr]:"Transaction processing left an account with an outstanding borrowed reference",[Yfr]:"Account in use",[Wfr]:"Account loaded twice",[Xfr]:"Attempt to debit an account but found no record of a prior credit.",[_lr]:"Transaction loads an address table account that doesn't exist",[tlr]:"This transaction has already been processed",[rlr]:"Blockhash not found",[nlr]:"Loader call chain is too deep",[ulr]:"Transactions are currently disabled due to cluster maintenance",[Slr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[jfr]:"Insufficient funds for fee",[Ilr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[elr]:"This account may not be used to pay transaction fees",[olr]:"Transaction contains an invalid account reference",[ylr]:"Transaction loads an address table account with invalid data",[blr]:"Transaction address table lookup uses an invalid index",[mlr]:"Transaction loads an address table account with an invalid owner",[wlr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[slr]:"This program may not be used for executing instructions",[Elr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[hlr]:"Transaction loads a writable account that cannot be written",[Clr]:"Transaction exceeded max loaded accounts data size cap",[ilr]:"Transaction requires a fee but has no signature present",[Zfr]:"Attempt to load a program that does not exist",[Nlr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Olr]:"ResanitizationNeeded",[clr]:"Transaction failed to sanitize accounts offsets correctly",[alr]:"Transaction did not pass signature verification",[glr]:"Transaction locked too many accounts",[xlr]:"Sum of account balances before and after transaction do not match",[$fr]:"The transaction failed with the error `$errorName`",[llr]:"Transaction version is unsupported",[plr]:"Transaction would exceed account data limit within the block",[Rlr]:"Transaction would exceed total account data limit",[Alr]:"Transaction would exceed max account limit within the block",[flr]:"Transaction would exceed max Block Cost Limit",[vlr]:"Transaction would exceed max Vote Cost Limit",[Qfr]:"Attempted to sign a transaction with an address that is not a signer for it",[kfr]:"Transaction is missing an address at index: $index.",[Hfr]:"Transaction has no expected signers therefore it cannot be encoded",[Jfr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[wfr]:"Transaction does not have a blockhash lifetime",[Ofr]:"Transaction is not a durable nonce transaction",[xfr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Tfr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Mfr]:"No fee payer set in CompiledTransaction",[Bfr]:"Could not find program address at index $index",[qfr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[Vfr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Pfr]:"Transaction is missing a fee payer.",[Lfr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Ffr]:"Transaction first instruction is not advance nonce account instruction.",[Ufr]:"Transaction with no instructions cannot be durable nonce transaction.",[Ifr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Cfr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Gfr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Dfr]:"Transaction is missing signatures for addresses: $addresses.",[Nfr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[zfr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[Kfr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function dhr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${uhr(t)}'`),`${r}\``}}function hht(e,t){return e instanceof Error&&e.name==="SolanaError"?t!==void 0?e.context.__code===t:!0:!1}var KA=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=dhr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function fhr(e,t){if(e.length>=t)return e;let r=new Uint8Array(t).fill(0);return r.set(e),r}var lhr=(e,t)=>fhr(e.length<=t?e:e.slice(0,t),t);function hhr(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function cj(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array(hhr(t,e));return e.write(t,r,0),r}})}function Vme(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function G3(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function Ahr(e){return!G3(e)}function Jme(e,t){if(G3(e)!==G3(t))throw new KA(Qme);if(G3(e)&&G3(t)&&e.fixedSize!==t.fixedSize)throw new KA(Hme,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!G3(e)&&!G3(t)&&e.maxSize!==t.maxSize)throw new KA(Gme,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function phr(e,t,r,i=0){let n=r.length-i;if(n<t)throw new KA(Fme,{bytesLength:n,codecDescription:e,expected:t})}function Aht(e,t){return cj({fixedSize:t,write:(r,i,n)=>{let o=e.encode(r),d=o.length>t?o.slice(0,t):o;return i.set(d,n),n+t}})}function pht(e,t){return Vme({fixedSize:t,read:(r,i)=>{phr("fixCodecSize",t,r,i),(i>0||r.length>t)&&(r=r.slice(i,i+t)),G3(e)&&(r=lhr(r,e.fixedSize));let[n]=e.read(r,0);return[n,i+t]}})}function ght(e,t){return cj({...Ahr(e)?{...e,getSizeFromValue:r=>e.getSizeFromValue(t(r))}:e,write:(r,i,n)=>e.write(t(r),i,n)})}J();K();z();function ghr(e,t,r=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new KA(qme,{alphabet:e,base:e.length,value:r})}var _hr=e=>cj({getSizeFromValue:t=>{let[r,i]=_ht(t,e[0]);if(!i)return t.length;let n=mht(i,e);return r.length+Math.ceil(n.toString(16).length/2)},write(t,r,i){if(ghr(e,t),t==="")return i;let[n,o]=_ht(t,e[0]);if(!o)return r.set(new Uint8Array(n.length).fill(0),i),i+n.length;let d=mht(o,e),g=[];for(;d>0n;)g.unshift(Number(d%256n)),d/=256n;let y=[...Array(n.length).fill(0),...g];return r.set(y,i),i+y.length}}),mhr=e=>Vme({read(t,r){let i=r===0?t:t.slice(r);if(i.length===0)return["",0];let n=i.findIndex(y=>y!==0);n=n===-1?i.length:n;let o=e[0].repeat(n);if(n===i.length)return[o,t.length];let d=i.slice(n).reduce((y,_)=>y*256n+BigInt(_),0n),g=yhr(d,e);return[o+g,t.length]}});function _ht(e,t){let[r,i]=e.split(new RegExp(`((?!${t}).*)`));return[r,i]}function mht(e,t){let r=BigInt(t.length),i=0n;for(let n of e)i*=r,i+=BigInt(t.indexOf(n));return i}function yhr(e,t){let r=BigInt(t.length),i=[];for(;e>0n;)i.unshift(t[Number(e%r)]),e/=r;return i.join("")}var yht="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",bht=()=>_hr(yht),Eht=()=>mhr(yht);var ero=globalThis.TextDecoder,tro=globalThis.TextEncoder;J();K();z();J();K();z();var bhr=1,Ehr=2,vhr=3,Rhr=4,Shr=5,Ihr=6,Chr=7,whr=8,Ohr=9,Nhr=10,xhr=-32700,Thr=-32603,Bhr=-32602,Mhr=-32601,Dhr=-32600,khr=-32019,Phr=-32018,Lhr=-32017,Uhr=-32016,Fhr=-32015,Qhr=-32014,Hhr=-32013,Ghr=-32012,qhr=-32011,Vhr=-32010,Jhr=-32009,zhr=-32008,Khr=-32007,$hr=-32006,Yhr=-32005,Whr=-32004,Xhr=-32003,Zhr=-32002,jhr=-32001,eAr=28e5,tAr=2800001,rAr=2800002,nAr=2800003,iAr=2800004,oAr=2800005,aAr=2800006,sAr=2800007,cAr=2800008,uAr=2800009,dAr=2800010,fAr=2800011,lAr=323e4,hAr=32300001,AAr=3230002,pAr=3230003,gAr=3230004,zme=361e4,Kme=3610001,vht=3610002,$me=3610003,Rht=3610004,Yme=3610005,Wme=3610006,_Ar=3610007,Xme=3611e3,mAr=3704e3,yAr=3704001,bAr=3704002,EAr=3704003,vAr=3704004,RAr=4128e3,SAr=4128001,IAr=4128002,CAr=4615e3,wAr=4615001,OAr=4615002,NAr=4615003,xAr=4615004,TAr=4615005,BAr=4615006,MAr=4615007,DAr=4615008,kAr=4615009,PAr=4615010,LAr=4615011,UAr=4615012,FAr=4615013,QAr=4615014,HAr=4615015,GAr=4615016,qAr=4615017,VAr=4615018,JAr=4615019,zAr=4615020,KAr=4615021,$Ar=4615022,YAr=4615023,WAr=4615024,XAr=4615025,ZAr=4615026,jAr=4615027,epr=4615028,tpr=4615029,rpr=4615030,npr=4615031,ipr=4615032,opr=4615033,apr=4615034,spr=4615035,cpr=4615036,upr=4615037,dpr=4615038,fpr=4615039,lpr=4615040,hpr=4615041,Apr=4615042,ppr=4615043,gpr=4615044,_pr=4615045,mpr=4615046,ypr=4615047,bpr=4615048,Epr=4615049,vpr=4615050,Rpr=4615051,Spr=4615052,Ipr=4615053,Cpr=4615054,wpr=5508e3,Opr=5508001,Npr=5508002,xpr=5508003,Tpr=5508004,Bpr=5508005,Mpr=5508006,Dpr=5508007,kpr=5508008,Ppr=5508009,Lpr=5508010,Upr=5508011,Fpr=5663e3,Qpr=5663001,Hpr=5663002,Gpr=5663003,qpr=5663004,Vpr=5663005,Jpr=5663006,zpr=5663007,Kpr=5663008,$pr=5663009,Ypr=5663010,Wpr=5663011,Xpr=5663012,Zpr=5663013,jpr=5663014,e1r=5663015,t1r=5663016,r1r=5663017,n1r=5663018,i1r=5663019,o1r=5663020,a1r=5663021,s1r=5663022,c1r=705e4,u1r=7050001,d1r=7050002,f1r=7050003,l1r=7050004,h1r=7050005,A1r=7050006,p1r=7050007,g1r=7050008,_1r=7050009,m1r=7050010,y1r=7050011,b1r=7050012,E1r=7050013,v1r=7050014,R1r=7050015,S1r=7050016,I1r=7050017,C1r=7050018,w1r=7050019,O1r=7050020,N1r=7050021,x1r=7050022,T1r=7050023,B1r=7050024,M1r=7050025,D1r=7050026,k1r=7050027,P1r=7050028,L1r=7050029,U1r=7050030,F1r=7050031,Q1r=7050032,H1r=7050033,G1r=7050034,q1r=7050035,V1r=7050036,J1r=7618e3,z1r=7618001,K1r=7618002,$1r=7618003,Y1r=8078e3,W1r=8078001,X1r=8078002,Z1r=8078003,j1r=8078004,egr=8078005,tgr=8078006,rgr=8078007,ngr=8078008,igr=8078009,ogr=8078010,agr=8078011,sgr=8078012,cgr=8078013,ugr=8078014,dgr=8078015,fgr=8078016,lgr=8078017,hgr=8078018,Agr=8078019,pgr=8078020,ggr=8078021,_gr=8078022,mgr=8078023,ygr=81e5,bgr=8100001,Egr=8100002,vgr=8100003,Rgr=819e4,Sgr=8190001,Igr=8190002,Cgr=8190003,wgr=8190004,Ogr=99e5,Ngr=9900001,xgr=9900002,Tgr=9900003,Bgr=9900004,Mgr=9900005,Dgr=9900006;function Sht(e){return Array.isArray(e)?"%5B"+e.map(Sht).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function kgr([e,t]){return`${e}=${Sht(t)}`}function Pgr(e){let t=Object.entries(e).map(kgr).join("&");return btoa(t)}var aro={[lAr]:"Account not found at address: $address",[gAr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[pAr]:"Expected decoded account at address: $address",[AAr]:"Failed to decode account data at address: $address",[hAr]:"Accounts not found at addresses: $addresses",[uAr]:"Unable to find a viable program address bump seed.",[rAr]:"$putativeAddress is not a base58-encoded address.",[eAr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[nAr]:"The `CryptoKey` must be an `Ed25519` public key.",[fAr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[cAr]:"Invalid seeds; point must fall off the Ed25519 curve.",[iAr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[aAr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[sAr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[oAr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[dAr]:"Program address cannot end with PDA marker.",[tAr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Rhr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[bhr]:"The network has progressed past the last block for which this transaction could have been committed.",[Y1r]:"Codec [$codecDescription] cannot decode empty byte arrays.",[_gr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[pgr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[egr]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[tgr]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[j1r]:"Encoder and decoder must either both be fixed-size or variable-size.",[ngr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[X1r]:"Expected a fixed-size codec, got a variable-size one.",[cgr]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Z1r]:"Expected a variable-size codec, got a fixed-size one.",[Agr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[W1r]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[hgr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[igr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[ogr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[dgr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[rgr]:"Expected [$codecDescription] to have $expected items, got $actual.",[sgr]:"Invalid value $value for base $base with alphabet $alphabet.",[fgr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[agr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[ugr]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[ggr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[lgr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[mgr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Xme]:"No random values implementation could be found.",[kAr]:"instruction requires an uninitialized account",[YAr]:"instruction tries to borrow reference for an account which is already borrowed",[WAr]:"instruction left account with an outstanding borrowed reference",[KAr]:"program other than the account's owner changed the size of the account data",[TAr]:"account data too small for instruction",[$Ar]:"instruction expected an executable account",[mpr]:"An account does not have enough lamports to be rent-exempt",[bpr]:"Program arithmetic overflowed",[_pr]:"Failed to serialize or deserialize account data: $encodedData",[Cpr]:"Builtin programs must consume compute units",[ipr]:"Cross-program invocation call depth too deep",[dpr]:"Computational budget exceeded",[ZAr]:"custom program error: #$code",[qAr]:"instruction contains duplicate accounts",[XAr]:"instruction modifications of multiply-passed account differ",[rpr]:"executable accounts must be rent exempt",[epr]:"instruction changed executable accounts data",[tpr]:"instruction changed the balance of an executable account",[VAr]:"instruction changed executable bit of an account",[QAr]:"instruction modified data of an account it does not own",[FAr]:"instruction spent from the balance of an account it does not own",[wAr]:"generic instruction error",[vpr]:"Provided owner is not allowed",[ppr]:"Account is immutable",[gpr]:"Incorrect authority provided",[MAr]:"incorrect program id for instruction",[BAr]:"insufficient funds for instruction",[xAr]:"invalid account data for instruction",[ypr]:"Invalid account owner",[OAr]:"invalid program argument",[jAr]:"program returned invalid error code",[NAr]:"invalid instruction data",[upr]:"Failed to reallocate account data",[cpr]:"Provided seeds do not result in a valid address",[Rpr]:"Accounts data allocations exceeded the maximum allowed per transaction",[Spr]:"Max accounts exceeded",[Ipr]:"Max instruction trace length exceeded",[spr]:"Length of the seed is too long for address generation",[opr]:"An account required by the instruction is missing",[DAr]:"missing required signature for instruction",[UAr]:"instruction illegally modified the program id of an account",[zAr]:"insufficient account keys for instruction",[fpr]:"Cross-program invocation with unauthorized signer or writable account",[lpr]:"Failed to create program execution environment",[Apr]:"Program failed to compile",[hpr]:"Program failed to complete",[GAr]:"instruction modified data of a read-only account",[HAr]:"instruction changed the balance of a read-only account",[apr]:"Cross-program invocation reentrancy not allowed for this instruction",[JAr]:"instruction modified rent epoch of an account",[LAr]:"sum of account balances before and after instruction do not match",[PAr]:"instruction requires an initialized account",[CAr]:"",[npr]:"Unsupported program id",[Epr]:"Unsupported sysvar",[Mgr]:"Invalid instruction plan kind: $kind.",[K1r]:"The provided instruction plan is empty.",[$1r]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[J1r]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Dgr]:"Invalid transaction plan kind: $kind.",[z1r]:"No more instructions to pack; the message packer has completed the instruction plan.",[RAr]:"The instruction does not have any accounts.",[SAr]:"The instruction does not have any data.",[IAr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Shr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Ehr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[xgr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Bgr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ngr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ogr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Tgr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Thr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Bhr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Dhr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Mhr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[xhr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Ghr]:"$__serverMessage",[jhr]:"$__serverMessage",[Whr]:"$__serverMessage",[Qhr]:"$__serverMessage",[Lhr]:"Epoch rewards period still active at slot $slot",[Vhr]:"$__serverMessage",[Jhr]:"$__serverMessage",[khr]:"Failed to query long-term storage; please try again",[Uhr]:"Minimum context slot has not been reached",[Yhr]:"Node is unhealthy; behind by $numSlotsBehind slots",[zhr]:"No snapshot",[Zhr]:"Transaction simulation failed",[Phr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Khr]:"$__serverMessage",[qhr]:"Transaction history is not available from this node",[$hr]:"$__serverMessage",[Hhr]:"Transaction signature length mismatch",[Xhr]:"Transaction signature verification failure",[Fhr]:"$__serverMessage",[mAr]:"Key pair bytes must be of length 64, got $byteLength.",[yAr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[bAr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[vAr]:"The provided private key does not match the provided public key.",[EAr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Ihr]:"Lamports value must be in the range [0, 2e64-1]",[Chr]:"`$value` cannot be parsed as a `BigInt`",[Nhr]:"$message",[whr]:"`$value` cannot be parsed as a `Number`",[vhr]:"No nonce account could be found at address `$nonceAccountAddress`",[Rgr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Igr]:"WebSocket was closed before payload could be added to the send buffer",[Cgr]:"WebSocket connection closed",[wgr]:"WebSocket failed to connect",[Sgr]:"Failed to obtain a subscription id from the server",[vgr]:"Could not find an API plan for RPC method: `$method`",[ygr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Egr]:"HTTP error ($statusCode): $message",[bgr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[wpr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Opr]:"The provided value does not implement the `KeyPairSigner` interface",[xpr]:"The provided value does not implement the `MessageModifyingSigner` interface",[Tpr]:"The provided value does not implement the `MessagePartialSigner` interface",[Npr]:"The provided value does not implement any of the `MessageSigner` interfaces",[Mpr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Dpr]:"The provided value does not implement the `TransactionPartialSigner` interface",[kpr]:"The provided value does not implement the `TransactionSendingSigner` interface",[Bpr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Ppr]:"More than one `TransactionSendingSigner` was identified.",[Lpr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Upr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[_Ar]:"Cannot export a non-extractable key.",[Kme]:"No digest implementation could be found.",[zme]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[vht]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[$me]:"No signature verification implementation could be found.",[Rht]:"No key generation implementation could be found.",[Yme]:"No signing implementation could be found.",[Wme]:"No key export implementation could be found.",[Ohr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[S1r]:"Transaction processing left an account with an outstanding borrowed reference",[u1r]:"Account in use",[d1r]:"Account loaded twice",[f1r]:"Attempt to debit an account but found no record of a prior credit.",[T1r]:"Transaction loads an address table account that doesn't exist",[p1r]:"This transaction has already been processed",[g1r]:"Blockhash not found",[_1r]:"Loader call chain is too deep",[R1r]:"Transactions are currently disabled due to cluster maintenance",[U1r]:"Transaction contains a duplicate instruction ($index) that is not allowed",[h1r]:"Insufficient funds for fee",[F1r]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[A1r]:"This account may not be used to pay transaction fees",[y1r]:"Transaction contains an invalid account reference",[M1r]:"Transaction loads an address table account with invalid data",[D1r]:"Transaction address table lookup uses an invalid index",[B1r]:"Transaction loads an address table account with an invalid owner",[H1r]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[E1r]:"This program may not be used for executing instructions",[k1r]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[w1r]:"Transaction loads a writable account that cannot be written",[Q1r]:"Transaction exceeded max loaded accounts data size cap",[m1r]:"Transaction requires a fee but has no signature present",[l1r]:"Attempt to load a program that does not exist",[q1r]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[G1r]:"ResanitizationNeeded",[v1r]:"Transaction failed to sanitize accounts offsets correctly",[b1r]:"Transaction did not pass signature verification",[x1r]:"Transaction locked too many accounts",[V1r]:"Sum of account balances before and after transaction do not match",[c1r]:"The transaction failed with the error `$errorName`",[C1r]:"Transaction version is unsupported",[N1r]:"Transaction would exceed account data limit within the block",[L1r]:"Transaction would exceed total account data limit",[O1r]:"Transaction would exceed max account limit within the block",[I1r]:"Transaction would exceed max Block Cost Limit",[P1r]:"Transaction would exceed max Vote Cost Limit",[e1r]:"Attempted to sign a transaction with an address that is not a signer for it",[Ypr]:"Transaction is missing an address at index: $index.",[t1r]:"Transaction has no expected signers therefore it cannot be encoded",[o1r]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Hpr]:"Transaction does not have a blockhash lifetime",[Gpr]:"Transaction is not a durable nonce transaction",[Vpr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Jpr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Kpr]:"No fee payer set in CompiledTransaction",[zpr]:"Could not find program address at index $index",[n1r]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[i1r]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Wpr]:"Transaction is missing a fee payer.",[Xpr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[jpr]:"Transaction first instruction is not advance nonce account instruction.",[Zpr]:"Transaction with no instructions cannot be durable nonce transaction.",[Fpr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Qpr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[r1r]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[$pr]:"Transaction is missing signatures for addresses: $addresses.",[qpr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[a1r]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[s1r]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function Lgr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${Pgr(t)}'`),`${r}\``}}var l5=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=Lgr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function Iht(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.getRandomValues!="function")throw new l5(Xme)}function uj(){if(!globalThis.isSecureContext)throw new l5(zme)}function Cht(){if(uj(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.digest!="function")throw new l5(Kme)}function dj(){if(uj(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.exportKey!="function")throw new l5($me)}function wht(){if(uj(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.sign!="function")throw new l5(Yme)}function Oht(){if(uj(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.verify!="function")throw new l5(Wme)}var Zme,jme;function eye(){return Zme||(Zme=bht()),Zme}function Ugr(){return jme||(jme=Eht()),jme}function fj(e){if(e.length<32||e.length>44)return!1;let t=eye();try{return t.encode(e).byteLength===32}catch{return!1}}function tye(e){if(e.length<32||e.length>44)throw new KA(Dme,{actualLength:e.length});let i=eye().encode(e).byteLength;if(i!==32)throw new KA(Mme,{actualLength:i})}function Fgr(e){return tye(e),e}function ES(){return ght(Aht(eye(),32),e=>Fgr(e))}function bs(){return pht(Ugr(),32)}function Qgr(){return Jme(ES(),bs())}function lj(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}var Hgr=37095705934669439343138083508754565189542113879843219016388785533085940283555n,$A=57896044618658097711785492504343953926634992332820282019728792003956564819949n,Nht=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function d2(e){let t=e%$A;return t>=0n?t:$A+t}function _E(e,t){let r=e;for(;t-- >0n;)r*=r,r%=$A;return r}function Ggr(e){let r=e*e%$A*e%$A,i=_E(r,2n)*r%$A,n=_E(i,1n)*e%$A,o=_E(n,5n)*n%$A,d=_E(o,10n)*o%$A,g=_E(d,20n)*d%$A,y=_E(g,40n)*g%$A,_=_E(y,80n)*y%$A,I=_E(_,80n)*y%$A,N=_E(I,10n)*o%$A;return _E(N,2n)*e%$A}function qgr(e,t){let r=d2(t*t*t),i=d2(r*r*t),n=Ggr(e*i),o=d2(e*r*n),d=d2(t*o*o),g=o,y=d2(o*Nht),_=d===e,I=d===d2(-e),N=d===d2(-e*Nht);return _&&(o=g),(I||N)&&(o=y),(d2(o)&1n)===1n&&(o=d2(-o)),!_&&!I?null:o}function Vgr(e,t){let r=d2(e*e),i=d2(r-1n),n=d2(Hgr*r+1n),o=qgr(i,n);if(o===null)return!1;let d=(t&128)!==0;return!(o===0n&&d)}function Jgr(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function zgr(e){let r=`0x${e.reduce((i,n,o)=>`${Jgr(o===31?n&-129:n)}${i}`,"")}`;return BigInt(r)}function Kgr(e){if(e.byteLength!==32)return!1;let t=zgr(e);return Vgr(t,e[31])}var xht=32,Tht=16,$gr=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function Ygr({programAddress:e,seeds:t}){if(Cht(),t.length>Tht)throw new KA(Pme,{actual:t.length,maxSeeds:Tht});let r,i=t.reduce((y,_,I)=>{let N=typeof _=="string"?(r||=new TextEncoder).encode(_):_;if(N.byteLength>xht)throw new KA(Lme,{actual:N.byteLength,index:I,maxSeedLength:xht});return y.push(...N),y},[]),n=Qgr(),o=n.encode(e),d=await crypto.subtle.digest("SHA-256",new Uint8Array([...i,...o,...$gr])),g=new Uint8Array(d);if(Kgr(g))throw new KA(sj);return n.decode(g)}async function Bht({programAddress:e,seeds:t}){let r=255;for(;r>0;)try{return[await Ygr({programAddress:e,seeds:[...t,new Uint8Array([r])]}),r]}catch(i){if(hht(i,sj))r--;else throw i}throw new KA(Ume)}async function hj(e){if(dj(),e.type!=="public"||e.algorithm.name!=="Ed25519")throw new KA(kme);let t=await crypto.subtle.exportKey("raw",e);return bs().decode(new Uint8Array(t))}J();K();z();J();K();z();var Wgr=1,Xgr=2,Zgr=3,jgr=4,e_r=5,t_r=6,r_r=7,n_r=8,i_r=9,o_r=10,a_r=-32700,s_r=-32603,c_r=-32602,u_r=-32601,d_r=-32600,f_r=-32019,l_r=-32018,h_r=-32017,A_r=-32016,p_r=-32015,g_r=-32014,__r=-32013,m_r=-32012,y_r=-32011,b_r=-32010,E_r=-32009,v_r=-32008,R_r=-32007,S_r=-32006,I_r=-32005,C_r=-32004,w_r=-32003,O_r=-32002,N_r=-32001,x_r=28e5,T_r=2800001,B_r=2800002,M_r=2800003,D_r=2800004,k_r=2800005,P_r=2800006,L_r=2800007,U_r=2800008,F_r=2800009,Q_r=2800010,H_r=2800011,G_r=323e4,q_r=32300001,V_r=3230002,J_r=3230003,z_r=3230004,K_r=361e4,$_r=3610001,Y_r=3610002,W_r=3610003,X_r=3610004,Z_r=3610005,j_r=3610006,e2r=3610007,t2r=3611e3,r2r=3704e3,n2r=3704001,i2r=3704002,o2r=3704003,a2r=3704004,s2r=4128e3,c2r=4128001,u2r=4128002,d2r=4615e3,f2r=4615001,l2r=4615002,h2r=4615003,A2r=4615004,p2r=4615005,g2r=4615006,_2r=4615007,m2r=4615008,y2r=4615009,b2r=4615010,E2r=4615011,v2r=4615012,R2r=4615013,S2r=4615014,I2r=4615015,C2r=4615016,w2r=4615017,O2r=4615018,N2r=4615019,x2r=4615020,T2r=4615021,B2r=4615022,M2r=4615023,D2r=4615024,k2r=4615025,P2r=4615026,L2r=4615027,U2r=4615028,F2r=4615029,Q2r=4615030,H2r=4615031,G2r=4615032,q2r=4615033,V2r=4615034,J2r=4615035,z2r=4615036,K2r=4615037,$2r=4615038,Y2r=4615039,W2r=4615040,X2r=4615041,Z2r=4615042,j2r=4615043,emr=4615044,tmr=4615045,rmr=4615046,nmr=4615047,imr=4615048,omr=4615049,amr=4615050,smr=4615051,cmr=4615052,umr=4615053,dmr=4615054,fmr=5508e3,lmr=5508001,hmr=5508002,Amr=5508003,pmr=5508004,gmr=5508005,_mr=5508006,mmr=5508007,ymr=5508008,bmr=5508009,Emr=5508010,vmr=5508011,Rmr=5663e3,Smr=5663001,Imr=5663002,Cmr=5663003,wmr=5663004,Omr=5663005,Nmr=5663006,xmr=5663007,Tmr=5663008,Bmr=5663009,Mmr=5663010,Dmr=5663011,kmr=5663012,Pmr=5663013,Lmr=5663014,Umr=5663015,Fmr=5663016,Qmr=5663017,Aj=5663018,pj=5663019,Hmr=5663020,Gmr=5663021,qmr=5663022,Vmr=705e4,Jmr=7050001,zmr=7050002,Kmr=7050003,$mr=7050004,Ymr=7050005,Wmr=7050006,Xmr=7050007,Zmr=7050008,jmr=7050009,eyr=7050010,tyr=7050011,ryr=7050012,nyr=7050013,iyr=7050014,oyr=7050015,ayr=7050016,syr=7050017,cyr=7050018,uyr=7050019,dyr=7050020,fyr=7050021,lyr=7050022,hyr=7050023,Ayr=7050024,pyr=7050025,gyr=7050026,_yr=7050027,myr=7050028,yyr=7050029,byr=7050030,Eyr=7050031,vyr=7050032,Ryr=7050033,Syr=7050034,Iyr=7050035,Cyr=7050036,wyr=7618e3,Oyr=7618001,Nyr=7618002,xyr=7618003,rye=8078e3,nye=8078001,iye=8078002,Mht=8078003,Dht=8078004,kht=8078005,Pht=8078006,Lht=8078007,oye=8078008,Uht=8078009,Fht=8078010,aye=8078011,gj=8078012,_j=8078013,sye=8078014,Qht=8078015,Hht=8078016,cye=8078017,uye=8078018,Tyr=8078019,Ght=8078020,qht=8078021,dye=8078022,Vht=8078023,Byr=81e5,Myr=8100001,Dyr=8100002,kyr=8100003,Pyr=819e4,Lyr=8190001,Uyr=8190002,Fyr=8190003,Qyr=8190004,Hyr=99e5,Gyr=9900001,qyr=9900002,Vyr=9900003,Jyr=9900004,zyr=9900005,Kyr=9900006;function Jht(e){return Array.isArray(e)?"%5B"+e.map(Jht).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function $yr([e,t]){return`${e}=${Jht(t)}`}function Yyr(e){let t=Object.entries(e).map($yr).join("&");return btoa(t)}var Iro={[G_r]:"Account not found at address: $address",[z_r]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[J_r]:"Expected decoded account at address: $address",[V_r]:"Failed to decode account data at address: $address",[q_r]:"Accounts not found at addresses: $addresses",[F_r]:"Unable to find a viable program address bump seed.",[B_r]:"$putativeAddress is not a base58-encoded address.",[x_r]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[M_r]:"The `CryptoKey` must be an `Ed25519` public key.",[H_r]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[U_r]:"Invalid seeds; point must fall off the Ed25519 curve.",[D_r]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[P_r]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[L_r]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[k_r]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Q_r]:"Program address cannot end with PDA marker.",[T_r]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[jgr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Wgr]:"The network has progressed past the last block for which this transaction could have been committed.",[rye]:"Codec [$codecDescription] cannot decode empty byte arrays.",[dye]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Ght]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[kht]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Pht]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Dht]:"Encoder and decoder must either both be fixed-size or variable-size.",[oye]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[iye]:"Expected a fixed-size codec, got a variable-size one.",[_j]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Mht]:"Expected a variable-size codec, got a fixed-size one.",[Tyr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[nye]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[uye]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Uht]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Fht]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Qht]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Lht]:"Expected [$codecDescription] to have $expected items, got $actual.",[gj]:"Invalid value $value for base $base with alphabet $alphabet.",[Hht]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[aye]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[sye]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[qht]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[cye]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Vht]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[t2r]:"No random values implementation could be found.",[y2r]:"instruction requires an uninitialized account",[M2r]:"instruction tries to borrow reference for an account which is already borrowed",[D2r]:"instruction left account with an outstanding borrowed reference",[T2r]:"program other than the account's owner changed the size of the account data",[p2r]:"account data too small for instruction",[B2r]:"instruction expected an executable account",[rmr]:"An account does not have enough lamports to be rent-exempt",[imr]:"Program arithmetic overflowed",[tmr]:"Failed to serialize or deserialize account data: $encodedData",[dmr]:"Builtin programs must consume compute units",[G2r]:"Cross-program invocation call depth too deep",[$2r]:"Computational budget exceeded",[P2r]:"custom program error: #$code",[w2r]:"instruction contains duplicate accounts",[k2r]:"instruction modifications of multiply-passed account differ",[Q2r]:"executable accounts must be rent exempt",[U2r]:"instruction changed executable accounts data",[F2r]:"instruction changed the balance of an executable account",[O2r]:"instruction changed executable bit of an account",[S2r]:"instruction modified data of an account it does not own",[R2r]:"instruction spent from the balance of an account it does not own",[f2r]:"generic instruction error",[amr]:"Provided owner is not allowed",[j2r]:"Account is immutable",[emr]:"Incorrect authority provided",[_2r]:"incorrect program id for instruction",[g2r]:"insufficient funds for instruction",[A2r]:"invalid account data for instruction",[nmr]:"Invalid account owner",[l2r]:"invalid program argument",[L2r]:"program returned invalid error code",[h2r]:"invalid instruction data",[K2r]:"Failed to reallocate account data",[z2r]:"Provided seeds do not result in a valid address",[smr]:"Accounts data allocations exceeded the maximum allowed per transaction",[cmr]:"Max accounts exceeded",[umr]:"Max instruction trace length exceeded",[J2r]:"Length of the seed is too long for address generation",[q2r]:"An account required by the instruction is missing",[m2r]:"missing required signature for instruction",[v2r]:"instruction illegally modified the program id of an account",[x2r]:"insufficient account keys for instruction",[Y2r]:"Cross-program invocation with unauthorized signer or writable account",[W2r]:"Failed to create program execution environment",[Z2r]:"Program failed to compile",[X2r]:"Program failed to complete",[C2r]:"instruction modified data of a read-only account",[I2r]:"instruction changed the balance of a read-only account",[V2r]:"Cross-program invocation reentrancy not allowed for this instruction",[N2r]:"instruction modified rent epoch of an account",[E2r]:"sum of account balances before and after instruction do not match",[b2r]:"instruction requires an initialized account",[d2r]:"",[H2r]:"Unsupported program id",[omr]:"Unsupported sysvar",[zyr]:"Invalid instruction plan kind: $kind.",[Nyr]:"The provided instruction plan is empty.",[xyr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[wyr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Kyr]:"Invalid transaction plan kind: $kind.",[Oyr]:"No more instructions to pack; the message packer has completed the instruction plan.",[s2r]:"The instruction does not have any accounts.",[c2r]:"The instruction does not have any data.",[u2r]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[e_r]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Xgr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[qyr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Jyr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Gyr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Hyr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vyr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[s_r]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[c_r]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[d_r]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[u_r]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[a_r]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[m_r]:"$__serverMessage",[N_r]:"$__serverMessage",[C_r]:"$__serverMessage",[g_r]:"$__serverMessage",[h_r]:"Epoch rewards period still active at slot $slot",[b_r]:"$__serverMessage",[E_r]:"$__serverMessage",[f_r]:"Failed to query long-term storage; please try again",[A_r]:"Minimum context slot has not been reached",[I_r]:"Node is unhealthy; behind by $numSlotsBehind slots",[v_r]:"No snapshot",[O_r]:"Transaction simulation failed",[l_r]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[R_r]:"$__serverMessage",[y_r]:"Transaction history is not available from this node",[S_r]:"$__serverMessage",[__r]:"Transaction signature length mismatch",[w_r]:"Transaction signature verification failure",[p_r]:"$__serverMessage",[r2r]:"Key pair bytes must be of length 64, got $byteLength.",[n2r]:"Expected private key bytes with length 32. Actual length: $actualLength.",[i2r]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[a2r]:"The provided private key does not match the provided public key.",[o2r]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[t_r]:"Lamports value must be in the range [0, 2e64-1]",[r_r]:"`$value` cannot be parsed as a `BigInt`",[o_r]:"$message",[n_r]:"`$value` cannot be parsed as a `Number`",[Zgr]:"No nonce account could be found at address `$nonceAccountAddress`",[Pyr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Uyr]:"WebSocket was closed before payload could be added to the send buffer",[Fyr]:"WebSocket connection closed",[Qyr]:"WebSocket failed to connect",[Lyr]:"Failed to obtain a subscription id from the server",[kyr]:"Could not find an API plan for RPC method: `$method`",[Byr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Dyr]:"HTTP error ($statusCode): $message",[Myr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[fmr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[lmr]:"The provided value does not implement the `KeyPairSigner` interface",[Amr]:"The provided value does not implement the `MessageModifyingSigner` interface",[pmr]:"The provided value does not implement the `MessagePartialSigner` interface",[hmr]:"The provided value does not implement any of the `MessageSigner` interfaces",[_mr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[mmr]:"The provided value does not implement the `TransactionPartialSigner` interface",[ymr]:"The provided value does not implement the `TransactionSendingSigner` interface",[gmr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[bmr]:"More than one `TransactionSendingSigner` was identified.",[Emr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[vmr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[e2r]:"Cannot export a non-extractable key.",[$_r]:"No digest implementation could be found.",[K_r]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Y_r]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[W_r]:"No signature verification implementation could be found.",[X_r]:"No key generation implementation could be found.",[Z_r]:"No signing implementation could be found.",[j_r]:"No key export implementation could be found.",[i_r]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[ayr]:"Transaction processing left an account with an outstanding borrowed reference",[Jmr]:"Account in use",[zmr]:"Account loaded twice",[Kmr]:"Attempt to debit an account but found no record of a prior credit.",[hyr]:"Transaction loads an address table account that doesn't exist",[Xmr]:"This transaction has already been processed",[Zmr]:"Blockhash not found",[jmr]:"Loader call chain is too deep",[oyr]:"Transactions are currently disabled due to cluster maintenance",[byr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Ymr]:"Insufficient funds for fee",[Eyr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Wmr]:"This account may not be used to pay transaction fees",[tyr]:"Transaction contains an invalid account reference",[pyr]:"Transaction loads an address table account with invalid data",[gyr]:"Transaction address table lookup uses an invalid index",[Ayr]:"Transaction loads an address table account with an invalid owner",[Ryr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[nyr]:"This program may not be used for executing instructions",[_yr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[uyr]:"Transaction loads a writable account that cannot be written",[vyr]:"Transaction exceeded max loaded accounts data size cap",[eyr]:"Transaction requires a fee but has no signature present",[$mr]:"Attempt to load a program that does not exist",[Iyr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Syr]:"ResanitizationNeeded",[iyr]:"Transaction failed to sanitize accounts offsets correctly",[ryr]:"Transaction did not pass signature verification",[lyr]:"Transaction locked too many accounts",[Cyr]:"Sum of account balances before and after transaction do not match",[Vmr]:"The transaction failed with the error `$errorName`",[cyr]:"Transaction version is unsupported",[fyr]:"Transaction would exceed account data limit within the block",[yyr]:"Transaction would exceed total account data limit",[dyr]:"Transaction would exceed max account limit within the block",[syr]:"Transaction would exceed max Block Cost Limit",[myr]:"Transaction would exceed max Vote Cost Limit",[Umr]:"Attempted to sign a transaction with an address that is not a signer for it",[Mmr]:"Transaction is missing an address at index: $index.",[Fmr]:"Transaction has no expected signers therefore it cannot be encoded",[Hmr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Imr]:"Transaction does not have a blockhash lifetime",[Cmr]:"Transaction is not a durable nonce transaction",[Omr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Nmr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Tmr]:"No fee payer set in CompiledTransaction",[xmr]:"Could not find program address at index $index",[Aj]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[pj]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Dmr]:"Transaction is missing a fee payer.",[kmr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Lmr]:"Transaction first instruction is not advance nonce account instruction.",[Pmr]:"Transaction with no instructions cannot be durable nonce transaction.",[Rmr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Smr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Qmr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Bmr]:"Transaction is missing signatures for addresses: $addresses.",[wmr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Gmr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[qmr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function Wyr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${Yyr(t)}'`),`${r}\``}}function zht(e,t){return e instanceof Error&&e.name==="SolanaError"?t!==void 0?e.context.__code===t:!0:!1}var Ud=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=Wyr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function Xyr(e,t){if(e.length>=t)return e;let r=new Uint8Array(t).fill(0);return r.set(e),r}var Zyr=(e,t)=>Xyr(e.length<=t?e:e.slice(0,t),t);function _y(e,t,r){let i=r===0&&e.length===t.length?e:e.slice(r,r+t.length);return i.length!==t.length?!1:t.every((n,o)=>n===i[o])}function fye(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function mE(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array(fye(t,e));return e.write(t,r,0),r}})}function Sl(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function pg(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function lye(e){if(!pg(e))throw new Ud(iye)}function jyr(e){return!pg(e)}function $ht(e,t,r=0){if(t.length-r<=0)throw new Ud(rye,{codecDescription:e})}function eF(e,t,r,i=0){let n=r.length-i;if(n<t)throw new Ud(nye,{bytesLength:n,codecDescription:e,expected:t})}function Kht(e,t,r){if(t<0||t>r)throw new Ud(sye,{bytesLength:r,codecDescription:e,offset:t})}function Oc(e,t){let r=(d,g)=>{let[y,_]=t.read(d,g),I=Number(y);return g=_,(g>0||d.length>I)&&(d=d.slice(g,g+I)),eF("addDecoderSizePrefix",I,d),[e.decode(d),g+I]};if(pg(t)&&pg(e))return Sl({...e,fixedSize:t.fixedSize+e.fixedSize,read:r});let i=pg(t)?t.fixedSize:t.maxSize??null,n=pg(e)?e.fixedSize:e.maxSize??null,o=i!==null&&n!==null?i+n:null;return Sl({...e,...o!==null?{maxSize:o}:{},read:r})}function f7(e,t){return Sl({fixedSize:t,read:(r,i)=>{eF("fixCodecSize",t,r,i),(i>0||r.length>t)&&(r=r.slice(i,i+t)),pg(e)&&(r=Zyr(r,e.fixedSize));let[n]=e.read(r,0);return[n,i+t]}})}function ebr(e,t){return mE({...e,write:(r,i,n)=>{let o=_=>tbr(_,i.length),d=t.preOffset?t.preOffset({bytes:i,preOffset:n,wrapBytes:o}):n;Kht("offsetEncoder",d,i.length);let g=e.write(r,i,d),y=t.postOffset?t.postOffset({bytes:i,newPreOffset:d,postOffset:g,preOffset:n,wrapBytes:o}):g;return Kht("offsetEncoder",y,i.length),y}})}function tbr(e,t){return t===0?0:(e%t+t)%t}function rbr(e,t){if(pg(e)){let r=t(e.fixedSize);if(r<0)throw new Ud(_j,{bytesLength:r,codecDescription:"resizeEncoder"});return mE({...e,fixedSize:r})}return mE({...e,getSizeFromValue:r=>{let i=t(e.getSizeFromValue(r));if(i<0)throw new Ud(_j,{bytesLength:i,codecDescription:"resizeEncoder"});return i}})}function Yht(e,t){return ebr(rbr(e,r=>r+t),{preOffset:({preOffset:r})=>r+t})}function h5(e,t){return mE({...jyr(e)?{...e,getSizeFromValue:r=>e.getSizeFromValue(t(r))}:e,write:(r,i,n)=>e.write(t(r),i,n)})}function yE(e,t){return Sl({...e,read:(r,i)=>{let[n,o]=e.read(r,i);return[t(n,r,i),o]}})}J();K();z();J();K();z();function nbr(e,t,r,i){if(i<t||i>r)throw new Ud(aye,{codecDescription:e,max:r,min:t,value:i})}function Wht(e){return e?.endian!==1}function hye(e){return mE({fixedSize:e.size,write(t,r,i){e.range&&nbr(e.name,e.range[0],e.range[1],t);let n=new ArrayBuffer(e.size);return e.set(new DataView(n),t,Wht(e.config)),r.set(new Uint8Array(n),i),i+e.size}})}function l7(e){return Sl({fixedSize:e.size,read(t,r=0){$ht(e.name,t,r),eF(e.name,e.size,t,r);let i=new DataView(ibr(t,r,e.size));return[e.get(i,Wht(e.config)),r+e.size]}})}function ibr(e,t,r){let i=e.byteOffset+(t??0),n=r??e.byteLength;return e.buffer.slice(i,i+n)}var Aye=(e={})=>l7({config:e,get:(t,r)=>t.getFloat64(0,r),name:"f64",size:8});var pye=(e={})=>l7({config:e,get:(t,r)=>t.getInt16(0,r),name:"i16",size:2});var pu=(e={})=>l7({config:e,get:(t,r)=>t.getUint16(0,r),name:"u16",size:2});var mj=(e={})=>hye({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,r,i)=>t.setUint32(0,Number(r),i),size:4}),f2=(e={})=>l7({config:e,get:(t,r)=>t.getUint32(0,r),name:"u32",size:4});var yj=(e={})=>hye({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,r,i)=>t.setBigUint64(0,BigInt(r),i),size:8}),dh=(e={})=>l7({config:e,get:(t,r)=>t.getBigUint64(0,r),name:"u64",size:8});var r1=()=>hye({name:"u8",range:[0,+"0xff"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),vS=()=>l7({get:e=>e.getUint8(0),name:"u8",size:1});function obr(e){return e.reduce((t,r)=>t===null||r===null?null:Math.max(t,r),0)}function h7(e){return e.reduce((t,r)=>t===null||r===null?null:t+r,0)}function bj(e){return pg(e)?e.fixedSize:null}function rF(e){return pg(e)?e.fixedSize:e.maxSize??null}function gye(e,t={}){let r=t.size??f2(),i=bj(e),n=Xht(r,i),o=Xht(r,rF(e))??void 0;return Sl({...n!==null?{fixedSize:n}:{maxSize:o},read:(d,g)=>{let y=[];if(typeof r=="object"&&d.slice(g).length===0)return[y,g];if(r==="remainder"){for(;g<d.length;){let[N,T]=e.read(d,g);g=T,y.push(N)}return[y,g]}let[_,I]=typeof r=="number"?[r,g]:r.read(d,g);g=I;for(let N=0;N<_;N+=1){let[T,M]=e.read(d,g);g=M,y.push(T)}return[y,g]}})}function Xht(e,t){return typeof e!="number"?null:e===0?0:t===null?null:t*e}function gg(e={}){return yE(e.size??vS(),t=>Number(t)===1)}function _ye(){return Sl({read:(e,t)=>{let r=e.slice(t);return[r,t+r.length]}})}var abr=()=>Sl({read(e,t){return[e.slice(t).reduce((i,n)=>i+n.toString(16).padStart(2,"0"),""),e.length]}});function Ej(e){return Sl({fixedSize:e.length,read:(t,r)=>{let i=abr();if(!_y(t,e,r))throw new Ud(uye,{constant:e,data:t,hexConstant:i.decode(e),hexData:i.decode(t),offset:r});return[void 0,r+e.length]}})}function A5(e){let t=h7(e.map(bj)),r=h7(e.map(rF))??void 0;return Sl({...t===null?{maxSize:r}:{fixedSize:t},read:(i,n)=>{let o=[];return e.forEach(d=>{let[g,y]=d.read(i,n);o.push(g),n=y}),[o,n]}})}function mye(e,t){let r=cbr(e),i=(o,d)=>{let g=t(o,d);return sbr(e,g),e[g].read(o,d)};if(r!==null)return Sl({fixedSize:r,read:i});let n=ubr(e);return Sl({...n!==null?{maxSize:n}:{},read:i})}function sbr(e,t){if(typeof e[t]>"u")throw new Ud(cye,{maxRange:e.length-1,minRange:0,variant:t})}function cbr(e){if(e.length===0)return 0;if(!pg(e[0]))return null;let t=e[0].fixedSize;return e.every(i=>pg(i)&&i.fixedSize===t)?t:null}function ubr(e){return obr(e.map(t=>rF(t)))}function jht(e,t={}){let r=t.discriminator??"__kind",i=t.size??vS();return mye(e.map(([n,o])=>yE(A5([i,o]),([,d])=>({[r]:n,...d}))),(n,o)=>Number(i.read(n,o)[0]))}function dbr(e){let t=[...new Set(Object.values(e).filter(d=>typeof d=="number"))].sort(),r=Object.fromEntries(Object.entries(e).slice(t.length)),i=Object.keys(r),n=Object.values(r),o=[...new Set([...i,...n.filter(d=>typeof d=="string")])];return{enumKeys:i,enumRecord:r,enumValues:n,numericalValues:t,stringValues:o}}function fbr({discriminator:e,enumKeys:t,enumValues:r,useValuesAsDiscriminators:i}){return i?lbr(r,n=>n===e):e>=0&&e<t.length?e:-1}function lbr(e,t){let r=e.length;for(;r--;)if(t(e[r],r,e))return r;return-1}function hbr(e){if(e.length===0)return"";let t=[e[0],e[0]],r=[];for(let i=1;i<e.length;i++){let n=e[i];t[1]+1===n?t[1]=n:(r.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[n,n])}return r.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),r.join(", ")}function eAt(e,t={}){let r=t.size??vS(),i=t.useValuesAsDiscriminators??!1,{enumKeys:n,enumValues:o,numericalValues:d}=dbr(e);if(i&&o.some(g=>typeof g=="string"))throw new Ud(dye,{stringValues:o.filter(g=>typeof g=="string")});return yE(r,g=>{let y=Number(g),_=fbr({discriminator:y,enumKeys:n,enumValues:o,useValuesAsDiscriminators:i});if(_<0){let I=i?d:[...Array(n.length).keys()];throw new Ud(oye,{discriminator:y,formattedValidDiscriminators:hbr(I),validDiscriminators:I})}return o[_]})}function tAt(e,t){return yE(A5([...t,e]),r=>r[r.length-1])}function rAt(e,t,r={}){return yE(gye(A5([e,t]),r),i=>new Map(i))}function q3(){return Sl({fixedSize:0,read:(e,t)=>[void 0,t]})}function nF(e){let t=e.map(([,n])=>n),r=h7(t.map(bj)),i=h7(t.map(rF))??void 0;return mE({...r===null?{getSizeFromValue:n=>e.map(([o,d])=>fye(n[o],d)).reduce((o,d)=>o+d,0),maxSize:i}:{fixedSize:r},write:(n,o,d)=>(e.forEach(([g,y])=>{d=y.write(n[g],o,d)}),d)})}function tu(e){let t=e.map(([,n])=>n),r=h7(t.map(bj)),i=h7(t.map(rF))??void 0;return Sl({...r===null?{maxSize:i}:{fixedSize:r},read:(n,o)=>{let d={};return e.forEach(([g,y])=>{let[_,I]=y.read(n,o);o=I,d[g]=_}),[d,o]}})}J();K();z();var nAt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iAt=()=>mE({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new Ud(gj,{alphabet:nAt,base:64,value:e})}},write(e,t,r){try{let i=atob(e).split("").map(n=>n.charCodeAt(0));return t.set(i,r),i.length+r}catch{throw new Ud(gj,{alphabet:nAt,base:64,value:e})}}});var Abr=e=>e.replace(/\u0000/g,"");var pbr=globalThis.TextDecoder,Xro=globalThis.TextEncoder;var A7=()=>{let e;return Sl({read(t,r){let i=(e||=new pbr).decode(t.slice(r));return[Abr(i),t.length]}})};J();K();z();var bbr=e=>({__option:"Some",value:e}),oAt=()=>({__option:"None"});function oA(e,t={}){let r=t.prefix===null?yE(q3(),()=>!1):gg({size:t.prefix??vS()}),i=t.noneValue==="zeroes"?(lye(e),f7(q3(),e.fixedSize)):t.noneValue?Ej(t.noneValue):q3();return mye([yE(A5([r,i]),()=>oAt()),yE(A5([r,e]),([,n])=>bbr(n))],(n,o)=>{if(t.prefix===null&&!t.noneValue)return+(o<n.length);if(t.prefix===null&&t.noneValue!=null){let d=t.noneValue==="zeroes"?new Uint8Array(i.fixedSize).fill(0):t.noneValue;return _y(n,d,o)?0:1}return Number(r.read(n,o)[0])})}J();K();z();function n1(e,...t){return t.reduce((r,i)=>i(r),e)}J();K();z();var _g=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(_g||{}),Ebr=2,vbr=1;function p5(e){return e>=2}function p7(e){return(e&vbr)!==0}function yye(e,t){return e|t}function aAt(e){return e|Ebr}J();K();z();J();K();z();var Rbr=1,Sbr=2,Ibr=3,Cbr=4,wbr=5,Obr=6,Nbr=7,xbr=8,Tbr=9,Bbr=10,Mbr=-32700,Dbr=-32603,kbr=-32602,Pbr=-32601,Lbr=-32600,Ubr=-32019,Fbr=-32018,Qbr=-32017,Hbr=-32016,Gbr=-32015,qbr=-32014,Vbr=-32013,Jbr=-32012,zbr=-32011,Kbr=-32010,$br=-32009,Ybr=-32008,Wbr=-32007,Xbr=-32006,Zbr=-32005,jbr=-32004,eEr=-32003,tEr=-32002,rEr=-32001,nEr=28e5,iEr=2800001,oEr=2800002,aEr=2800003,sEr=2800004,cEr=2800005,uEr=2800006,dEr=2800007,fEr=2800008,lEr=2800009,hEr=2800010,AEr=2800011,pEr=323e4,gEr=32300001,_Er=3230002,mEr=3230003,yEr=3230004,bEr=361e4,EEr=3610001,vEr=3610002,REr=3610003,SEr=3610004,IEr=3610005,CEr=3610006,wEr=3610007,OEr=3611e3,NEr=3704e3,xEr=3704001,TEr=3704002,BEr=3704003,MEr=3704004,DEr=4128e3,kEr=4128001,PEr=4128002,LEr=4615e3,UEr=4615001,FEr=4615002,QEr=4615003,HEr=4615004,GEr=4615005,qEr=4615006,VEr=4615007,JEr=4615008,zEr=4615009,KEr=4615010,$Er=4615011,YEr=4615012,WEr=4615013,XEr=4615014,ZEr=4615015,jEr=4615016,evr=4615017,tvr=4615018,rvr=4615019,nvr=4615020,ivr=4615021,ovr=4615022,avr=4615023,svr=4615024,cvr=4615025,uvr=4615026,dvr=4615027,fvr=4615028,lvr=4615029,hvr=4615030,Avr=4615031,pvr=4615032,gvr=4615033,_vr=4615034,mvr=4615035,yvr=4615036,bvr=4615037,Evr=4615038,vvr=4615039,Rvr=4615040,Svr=4615041,Ivr=4615042,Cvr=4615043,wvr=4615044,Ovr=4615045,Nvr=4615046,xvr=4615047,Tvr=4615048,Bvr=4615049,Mvr=4615050,Dvr=4615051,kvr=4615052,Pvr=4615053,Lvr=4615054,Uvr=5508e3,Fvr=5508001,Qvr=5508002,Hvr=5508003,Gvr=5508004,qvr=5508005,Vvr=5508006,Jvr=5508007,zvr=5508008,Kvr=5508009,$vr=5508010,Yvr=5508011,bye=5663e3,vj=5663001,sAt=5663002,cAt=5663003,Eye=5663004,uAt=5663005,dAt=5663006,fAt=5663007,lAt=5663008,Wvr=5663009,Xvr=5663010,Zvr=5663011,jvr=5663012,eRr=5663013,tRr=5663014,rRr=5663015,nRr=5663016,iRr=5663017,oRr=5663018,aRr=5663019,sRr=5663020,Rj=5663021,cRr=5663022,uRr=705e4,dRr=7050001,fRr=7050002,lRr=7050003,hRr=7050004,ARr=7050005,pRr=7050006,gRr=7050007,_Rr=7050008,mRr=7050009,yRr=7050010,bRr=7050011,ERr=7050012,vRr=7050013,RRr=7050014,SRr=7050015,IRr=7050016,CRr=7050017,wRr=7050018,ORr=7050019,NRr=7050020,xRr=7050021,TRr=7050022,BRr=7050023,MRr=7050024,DRr=7050025,kRr=7050026,PRr=7050027,LRr=7050028,URr=7050029,FRr=7050030,QRr=7050031,HRr=7050032,GRr=7050033,qRr=7050034,VRr=7050035,JRr=7050036,zRr=7618e3,KRr=7618001,$Rr=7618002,YRr=7618003,vye=8078e3,Rye=8078001,hAt=8078002,AAt=8078003,pAt=8078004,gAt=8078005,_At=8078006,Sye=8078007,mAt=8078008,yAt=8078009,bAt=8078010,Iye=8078011,Cye=8078012,EAt=8078013,vAt=8078014,RAt=8078015,SAt=8078016,wye=8078017,IAt=8078018,WRr=8078019,CAt=8078020,wAt=8078021,OAt=8078022,NAt=8078023,XRr=81e5,ZRr=8100001,jRr=8100002,eSr=8100003,tSr=819e4,rSr=8190001,nSr=8190002,iSr=8190003,oSr=8190004,aSr=99e5,sSr=9900001,cSr=9900002,uSr=9900003,dSr=9900004,fSr=9900005,lSr=9900006;function xAt(e){return Array.isArray(e)?"%5B"+e.map(xAt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function hSr([e,t]){return`${e}=${xAt(t)}`}function ASr(e){let t=Object.entries(e).map(hSr).join("&");return btoa(t)}var mno={[pEr]:"Account not found at address: $address",[yEr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[mEr]:"Expected decoded account at address: $address",[_Er]:"Failed to decode account data at address: $address",[gEr]:"Accounts not found at addresses: $addresses",[lEr]:"Unable to find a viable program address bump seed.",[oEr]:"$putativeAddress is not a base58-encoded address.",[nEr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[aEr]:"The `CryptoKey` must be an `Ed25519` public key.",[AEr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[fEr]:"Invalid seeds; point must fall off the Ed25519 curve.",[sEr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[uEr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[dEr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[cEr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[hEr]:"Program address cannot end with PDA marker.",[iEr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Cbr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Rbr]:"The network has progressed past the last block for which this transaction could have been committed.",[vye]:"Codec [$codecDescription] cannot decode empty byte arrays.",[OAt]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[CAt]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[gAt]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[_At]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[pAt]:"Encoder and decoder must either both be fixed-size or variable-size.",[mAt]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[hAt]:"Expected a fixed-size codec, got a variable-size one.",[EAt]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[AAt]:"Expected a variable-size codec, got a fixed-size one.",[WRr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Rye]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[IAt]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[yAt]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[bAt]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[RAt]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Sye]:"Expected [$codecDescription] to have $expected items, got $actual.",[Cye]:"Invalid value $value for base $base with alphabet $alphabet.",[SAt]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Iye]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[vAt]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[wAt]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[wye]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[NAt]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[OEr]:"No random values implementation could be found.",[zEr]:"instruction requires an uninitialized account",[avr]:"instruction tries to borrow reference for an account which is already borrowed",[svr]:"instruction left account with an outstanding borrowed reference",[ivr]:"program other than the account's owner changed the size of the account data",[GEr]:"account data too small for instruction",[ovr]:"instruction expected an executable account",[Nvr]:"An account does not have enough lamports to be rent-exempt",[Tvr]:"Program arithmetic overflowed",[Ovr]:"Failed to serialize or deserialize account data: $encodedData",[Lvr]:"Builtin programs must consume compute units",[pvr]:"Cross-program invocation call depth too deep",[Evr]:"Computational budget exceeded",[uvr]:"custom program error: #$code",[evr]:"instruction contains duplicate accounts",[cvr]:"instruction modifications of multiply-passed account differ",[hvr]:"executable accounts must be rent exempt",[fvr]:"instruction changed executable accounts data",[lvr]:"instruction changed the balance of an executable account",[tvr]:"instruction changed executable bit of an account",[XEr]:"instruction modified data of an account it does not own",[WEr]:"instruction spent from the balance of an account it does not own",[UEr]:"generic instruction error",[Mvr]:"Provided owner is not allowed",[Cvr]:"Account is immutable",[wvr]:"Incorrect authority provided",[VEr]:"incorrect program id for instruction",[qEr]:"insufficient funds for instruction",[HEr]:"invalid account data for instruction",[xvr]:"Invalid account owner",[FEr]:"invalid program argument",[dvr]:"program returned invalid error code",[QEr]:"invalid instruction data",[bvr]:"Failed to reallocate account data",[yvr]:"Provided seeds do not result in a valid address",[Dvr]:"Accounts data allocations exceeded the maximum allowed per transaction",[kvr]:"Max accounts exceeded",[Pvr]:"Max instruction trace length exceeded",[mvr]:"Length of the seed is too long for address generation",[gvr]:"An account required by the instruction is missing",[JEr]:"missing required signature for instruction",[YEr]:"instruction illegally modified the program id of an account",[nvr]:"insufficient account keys for instruction",[vvr]:"Cross-program invocation with unauthorized signer or writable account",[Rvr]:"Failed to create program execution environment",[Ivr]:"Program failed to compile",[Svr]:"Program failed to complete",[jEr]:"instruction modified data of a read-only account",[ZEr]:"instruction changed the balance of a read-only account",[_vr]:"Cross-program invocation reentrancy not allowed for this instruction",[rvr]:"instruction modified rent epoch of an account",[$Er]:"sum of account balances before and after instruction do not match",[KEr]:"instruction requires an initialized account",[LEr]:"",[Avr]:"Unsupported program id",[Bvr]:"Unsupported sysvar",[fSr]:"Invalid instruction plan kind: $kind.",[$Rr]:"The provided instruction plan is empty.",[YRr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[zRr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[lSr]:"Invalid transaction plan kind: $kind.",[KRr]:"No more instructions to pack; the message packer has completed the instruction plan.",[DEr]:"The instruction does not have any accounts.",[kEr]:"The instruction does not have any data.",[PEr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[wbr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Sbr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[cSr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[dSr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[sSr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[aSr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[uSr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Dbr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[kbr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Lbr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Pbr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Mbr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Jbr]:"$__serverMessage",[rEr]:"$__serverMessage",[jbr]:"$__serverMessage",[qbr]:"$__serverMessage",[Qbr]:"Epoch rewards period still active at slot $slot",[Kbr]:"$__serverMessage",[$br]:"$__serverMessage",[Ubr]:"Failed to query long-term storage; please try again",[Hbr]:"Minimum context slot has not been reached",[Zbr]:"Node is unhealthy; behind by $numSlotsBehind slots",[Ybr]:"No snapshot",[tEr]:"Transaction simulation failed",[Fbr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Wbr]:"$__serverMessage",[zbr]:"Transaction history is not available from this node",[Xbr]:"$__serverMessage",[Vbr]:"Transaction signature length mismatch",[eEr]:"Transaction signature verification failure",[Gbr]:"$__serverMessage",[NEr]:"Key pair bytes must be of length 64, got $byteLength.",[xEr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[TEr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[MEr]:"The provided private key does not match the provided public key.",[BEr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Obr]:"Lamports value must be in the range [0, 2e64-1]",[Nbr]:"`$value` cannot be parsed as a `BigInt`",[Bbr]:"$message",[xbr]:"`$value` cannot be parsed as a `Number`",[Ibr]:"No nonce account could be found at address `$nonceAccountAddress`",[tSr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[nSr]:"WebSocket was closed before payload could be added to the send buffer",[iSr]:"WebSocket connection closed",[oSr]:"WebSocket failed to connect",[rSr]:"Failed to obtain a subscription id from the server",[eSr]:"Could not find an API plan for RPC method: `$method`",[XRr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[jRr]:"HTTP error ($statusCode): $message",[ZRr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Uvr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Fvr]:"The provided value does not implement the `KeyPairSigner` interface",[Hvr]:"The provided value does not implement the `MessageModifyingSigner` interface",[Gvr]:"The provided value does not implement the `MessagePartialSigner` interface",[Qvr]:"The provided value does not implement any of the `MessageSigner` interfaces",[Vvr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Jvr]:"The provided value does not implement the `TransactionPartialSigner` interface",[zvr]:"The provided value does not implement the `TransactionSendingSigner` interface",[qvr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Kvr]:"More than one `TransactionSendingSigner` was identified.",[$vr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Yvr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[wEr]:"Cannot export a non-extractable key.",[EEr]:"No digest implementation could be found.",[bEr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[vEr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[REr]:"No signature verification implementation could be found.",[SEr]:"No key generation implementation could be found.",[IEr]:"No signing implementation could be found.",[CEr]:"No key export implementation could be found.",[Tbr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[IRr]:"Transaction processing left an account with an outstanding borrowed reference",[dRr]:"Account in use",[fRr]:"Account loaded twice",[lRr]:"Attempt to debit an account but found no record of a prior credit.",[BRr]:"Transaction loads an address table account that doesn't exist",[gRr]:"This transaction has already been processed",[_Rr]:"Blockhash not found",[mRr]:"Loader call chain is too deep",[SRr]:"Transactions are currently disabled due to cluster maintenance",[FRr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[ARr]:"Insufficient funds for fee",[QRr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[pRr]:"This account may not be used to pay transaction fees",[bRr]:"Transaction contains an invalid account reference",[DRr]:"Transaction loads an address table account with invalid data",[kRr]:"Transaction address table lookup uses an invalid index",[MRr]:"Transaction loads an address table account with an invalid owner",[GRr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[vRr]:"This program may not be used for executing instructions",[PRr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[ORr]:"Transaction loads a writable account that cannot be written",[HRr]:"Transaction exceeded max loaded accounts data size cap",[yRr]:"Transaction requires a fee but has no signature present",[hRr]:"Attempt to load a program that does not exist",[VRr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[qRr]:"ResanitizationNeeded",[RRr]:"Transaction failed to sanitize accounts offsets correctly",[ERr]:"Transaction did not pass signature verification",[TRr]:"Transaction locked too many accounts",[JRr]:"Sum of account balances before and after transaction do not match",[uRr]:"The transaction failed with the error `$errorName`",[wRr]:"Transaction version is unsupported",[xRr]:"Transaction would exceed account data limit within the block",[URr]:"Transaction would exceed total account data limit",[NRr]:"Transaction would exceed max account limit within the block",[CRr]:"Transaction would exceed max Block Cost Limit",[LRr]:"Transaction would exceed max Vote Cost Limit",[rRr]:"Attempted to sign a transaction with an address that is not a signer for it",[Xvr]:"Transaction is missing an address at index: $index.",[nRr]:"Transaction has no expected signers therefore it cannot be encoded",[sRr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[sAt]:"Transaction does not have a blockhash lifetime",[cAt]:"Transaction is not a durable nonce transaction",[uAt]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[dAt]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[lAt]:"No fee payer set in CompiledTransaction",[fAt]:"Could not find program address at index $index",[oRr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[aRr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Zvr]:"Transaction is missing a fee payer.",[jvr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[tRr]:"Transaction first instruction is not advance nonce account instruction.",[eRr]:"Transaction with no instructions cannot be durable nonce transaction.",[bye]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[vj]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[iRr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Wvr]:"Transaction is missing signatures for addresses: $addresses.",[Eye]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Rj]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[cRr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function pSr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${ASr(t)}'`),`${r}\``}}var aA=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=pSr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};J();K();z();function TAt(e){return fj(e)}J();K();z();function gSr(e,t){if(e.length>=t)return e;let r=new Uint8Array(t).fill(0);return r.set(e),r}var _Sr=(e,t)=>gSr(e.length<=t?e:e.slice(0,t),t);function V3(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function Il(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array(V3(t,e));return e.write(t,r,0),r}})}function i1(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function YA(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function mSr(e){return!YA(e)}function BAt(e,t,r=0){if(t.length-r<=0)throw new aA(vye,{codecDescription:e})}function iF(e,t,r,i=0){let n=r.length-i;if(n<t)throw new aA(Rye,{bytesLength:n,codecDescription:e,expected:t})}function MAt(e,t){let r=(d,g,y)=>{let _=e.encode(d);return y=t.write(_.length,g,y),g.set(_,y),y+_.length};if(YA(t)&&YA(e))return Il({...e,fixedSize:t.fixedSize+e.fixedSize,write:r});let i=YA(t)?t.fixedSize:t.maxSize??null,n=YA(e)?e.fixedSize:e.maxSize??null,o=i!==null&&n!==null?i+n:null;return Il({...e,...o!==null?{maxSize:o}:{},getSizeFromValue:d=>{let g=V3(d,e);return V3(g,t)+g},write:r})}function DAt(e,t){let r=(d,g)=>{let[y,_]=t.read(d,g),I=Number(y);return g=_,(g>0||d.length>I)&&(d=d.slice(g,g+I)),iF("addDecoderSizePrefix",I,d),[e.decode(d),g+I]};if(YA(t)&&YA(e))return i1({...e,fixedSize:t.fixedSize+e.fixedSize,read:r});let i=YA(t)?t.fixedSize:t.maxSize??null,n=YA(e)?e.fixedSize:e.maxSize??null,o=i!==null&&n!==null?i+n:null;return i1({...e,...o!==null?{maxSize:o}:{},read:r})}function Oye(e,t){return Il({fixedSize:t,write:(r,i,n)=>{let o=e.encode(r),d=o.length>t?o.slice(0,t):o;return i.set(d,n),n+t}})}function Nye(e,t){return i1({fixedSize:t,read:(r,i)=>{iF("fixCodecSize",t,r,i),(i>0||r.length>t)&&(r=r.slice(i,i+t)),YA(e)&&(r=_Sr(r,e.fixedSize));let[n]=e.read(r,0);return[n,i+t]}})}function Sj(e,t){return Il({...mSr(e)?{...e,getSizeFromValue:r=>e.getSizeFromValue(t(r))}:e,write:(r,i,n)=>e.write(t(r),i,n)})}function Ij(e,t){return i1({...e,read:(r,i)=>{let[n,o]=e.read(r,i);return[t(n,r,i),o]}})}J();K();z();J();K();z();function PAt(e,t,r,i){if(i<t||i>r)throw new aA(Iye,{codecDescription:e,max:r,min:t,value:i})}function LAt(e){return e?.endian!==1}function UAt(e){return Il({fixedSize:e.size,write(t,r,i){e.range&&PAt(e.name,e.range[0],e.range[1],t);let n=new ArrayBuffer(e.size);return e.set(new DataView(n),t,LAt(e.config)),r.set(new Uint8Array(n),i),i+e.size}})}function FAt(e){return i1({fixedSize:e.size,read(t,r=0){BAt(e.name,t,r),iF(e.name,e.size,t,r);let i=new DataView(ySr(t,r,e.size));return[e.get(i,LAt(e.config)),r+e.size]}})}function ySr(e,t,r){let i=e.byteOffset+(t??0),n=r??e.byteLength;return e.buffer.slice(i,i+n)}var g5=()=>Il({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,r)=>{PAt("shortU16",0,65535,e);let i=[0];for(let n=0;;n+=1){let o=Number(e)>>n*7;if(o===0)break;let d=127&o;i[n]=d,n>0&&(i[n-1]|=128)}return t.set(i,r),r+i.length}}),_5=()=>i1({maxSize:3,read:(e,t)=>{let r=0,i=0;for(;++i;){let n=i-1,o=e[t+n],d=127&o;if(r|=d<<n*7,(o&128)===0)break}return[r,t+i]}});var QAt=(e={})=>UAt({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,r,i)=>t.setUint32(0,Number(r),i),size:4}),HAt=(e={})=>FAt({config:e,get:(t,r)=>t.getUint32(0,r),name:"u32",size:4});var g7=()=>UAt({name:"u8",range:[0,+"0xff"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),_7=()=>FAt({get:e=>e.getUint8(0),name:"u8",size:1});function bSr(e,t,r){if(t!==r)throw new aA(Sye,{actual:r,codecDescription:e,expected:t})}function ESr(e){return e.reduce((t,r)=>t===null||r===null?null:Math.max(t,r),0)}function Cj(e){return e.reduce((t,r)=>t===null||r===null?null:t+r,0)}function Oj(e){return YA(e)?e.fixedSize:null}function oF(e){return YA(e)?e.fixedSize:e.maxSize??null}function m7(e,t={}){let r=t.size??QAt(),i=wj(r,Oj(e)),n=wj(r,oF(e))??void 0;return Il({...i!==null?{fixedSize:i}:{getSizeFromValue:o=>(typeof r=="object"?V3(o.length,r):0)+[...o].reduce((g,y)=>g+V3(y,e),0),maxSize:n},write:(o,d,g)=>(typeof r=="number"&&bSr("array",r,o.length),typeof r=="object"&&(g=r.write(o.length,d,g)),o.forEach(y=>{g=e.write(y,d,g)}),g)})}function y7(e,t={}){let r=t.size??HAt(),i=Oj(e),n=wj(r,i),o=wj(r,oF(e))??void 0;return i1({...n!==null?{fixedSize:n}:{maxSize:o},read:(d,g)=>{let y=[];if(typeof r=="object"&&d.slice(g).length===0)return[y,g];if(r==="remainder"){for(;g<d.length;){let[N,T]=e.read(d,g);g=T,y.push(N)}return[y,g]}let[_,I]=typeof r=="number"?[r,g]:r.read(d,g);g=I;for(let N=0;N<_;N+=1){let[T,M]=e.read(d,g);g=M,y.push(T)}return[y,g]}})}function wj(e,t){return typeof e!="number"?null:e===0?0:t===null?null:t*e}function qAt(){return Il({getSizeFromValue:e=>e.length,write:(e,t,r)=>(t.set(e,r),r+e.length)})}function VAt(){return i1({read:(e,t)=>{let r=e.slice(t);return[r,t+r.length]}})}function JAt(e){return Il({fixedSize:e.length,write:(t,r,i)=>(r.set(e,i),i+e.length)})}function zAt(e,t){let r=vSr(e),i=(o,d,g)=>{let y=t(o);return GAt(e,y),e[y].write(o,d,g)};if(r!==null)return Il({fixedSize:r,write:i});let n=RSr(e);return Il({...n!==null?{maxSize:n}:{},getSizeFromValue:o=>{let d=t(o);return GAt(e,d),V3(o,e[d])},write:i})}function GAt(e,t){if(typeof e[t]>"u")throw new aA(wye,{maxRange:e.length-1,minRange:0,variant:t})}function vSr(e){if(e.length===0)return 0;if(!YA(e[0]))return null;let t=e[0].fixedSize;return e.every(i=>YA(i)&&i.fixedSize===t)?t:null}function RSr(e){return ESr(e.map(t=>oF(t)))}function b7(e){let t=e.map(([,n])=>n),r=Cj(t.map(Oj)),i=Cj(t.map(oF))??void 0;return Il({...r===null?{getSizeFromValue:n=>e.map(([o,d])=>V3(n[o],d)).reduce((o,d)=>o+d,0),maxSize:i}:{fixedSize:r},write:(n,o,d)=>(e.forEach(([g,y])=>{d=y.write(n[g],o,d)}),d)})}function aF(e){let t=e.map(([,n])=>n),r=Cj(t.map(Oj)),i=Cj(t.map(oF))??void 0;return i1({...r===null?{maxSize:i}:{fixedSize:r},read:(n,o)=>{let d={};return e.forEach(([g,y])=>{let[_,I]=y.read(n,o);o=I,d[g]=_}),[d,o]}})}function ZAt(e){return"lifetimeConstraint"in e&&typeof e.lifetimeConstraint.blockhash=="string"&&typeof e.lifetimeConstraint.lastValidBlockHeight=="bigint"&&TAt(e.lifetimeConstraint.blockhash)}function jAt(e,t){return"lifetimeConstraint"in t&&t.lifetimeConstraint&&"blockhash"in t.lifetimeConstraint&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight?t:Object.freeze({...t,lifetimeConstraint:Object.freeze(e)})}function SSr(e,t,r=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new aA(Cye,{alphabet:e,base:e.length,value:r})}var ISr=e=>Il({getSizeFromValue:t=>{let[r,i]=KAt(t,e[0]);if(!i)return t.length;let n=$At(i,e);return r.length+Math.ceil(n.toString(16).length/2)},write(t,r,i){if(SSr(e,t),t==="")return i;let[n,o]=KAt(t,e[0]);if(!o)return r.set(new Uint8Array(n.length).fill(0),i),i+n.length;let d=$At(o,e),g=[];for(;d>0n;)g.unshift(Number(d%256n)),d/=256n;let y=[...Array(n.length).fill(0),...g];return r.set(y,i),i+y.length}}),CSr=e=>i1({read(t,r){let i=r===0?t:t.slice(r);if(i.length===0)return["",0];let n=i.findIndex(y=>y!==0);n=n===-1?i.length:n;let o=e[0].repeat(n);if(n===i.length)return[o,t.length];let d=i.slice(n).reduce((y,_)=>y*256n+BigInt(_),0n),g=wSr(d,e);return[o+g,t.length]}});function KAt(e,t){let[r,i]=e.split(new RegExp(`((?!${t}).*)`));return[r,i]}function $At(e,t){let r=BigInt(t.length),i=0n;for(let n of e)i*=r,i+=BigInt(t.indexOf(n));return i}function wSr(e,t){let r=BigInt(t.length),i=[];for(;e>0n;)i.unshift(t[Number(e%r)]),e/=r;return i.join("")}var ept="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",OSr=()=>ISr(ept),NSr=()=>CSr(ept),xye;function xSr(){if(!xye){let e=m7(g7(),{size:g5()});xye=b7([["lookupTableAddress",ES()],["writableIndexes",e],["readonlyIndexes",e]])}return xye}var Tye;function TSr(){if(!Tye){let e=y7(_7(),{size:_5()});Tye=aF([["lookupTableAddress",bs()],["writableIndexes",e],["readonlyIndexes",e]])}return Tye}var Bye;function Mye(){return Bye||(Bye=g7()),Bye}var Dye;function kye(){return Dye||(Dye=_7()),Dye}function BSr(){return b7([["numSignerAccounts",Mye()],["numReadonlySignerAccounts",Mye()],["numReadonlyNonSignerAccounts",Mye()]])}function MSr(){return aF([["numSignerAccounts",kye()],["numReadonlySignerAccounts",kye()],["numReadonlyNonSignerAccounts",kye()]])}var Pye;function DSr(){return Pye||(Pye=Sj(b7([["programAddressIndex",g7()],["accountIndices",m7(g7(),{size:g5()})],["data",MAt(qAt(),g5())]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),Pye}var Lye;function kSr(){return Lye||(Lye=Ij(aF([["programAddressIndex",_7()],["accountIndices",y7(_7(),{size:_5()})],["data",DAt(VAt(),_5())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;let{accountIndices:t,data:r,...i}=e;return{...i,...t.length?{accountIndices:t}:null,...r.byteLength?{data:r}:null}})),Lye}var tpt=0,Uye=128;function PSr(){return Il({getSizeFromValue:e=>e==="legacy"?0:1,maxSize:1,write:(e,t,r)=>{if(e==="legacy")return r;if(e<0||e>127)throw new aA(Eye,{actualVersion:e});if(e>tpt)throw new aA(Rj,{unsupportedVersion:e});return t.set([e|Uye],r),r+1}})}function Fye(){return i1({maxSize:1,read:(e,t)=>{let r=e[t];if((r&Uye)===0)return["legacy",t];{let i=r^Uye;if(i>tpt)throw new aA(Rj,{unsupportedVersion:i});return[i,t+1]}}})}function YAt(){return b7(rpt())}function WAt(){return Sj(b7([...rpt(),["addressTableLookups",USr()]]),e=>e.version==="legacy"?e:{...e,addressTableLookups:e.addressTableLookups??[]})}function rpt(){let e=zAt([JAt(new Uint8Array(32)),Oye(OSr(),32)],t=>t===void 0?0:1);return[["version",PSr()],["header",BSr()],["staticAccounts",m7(ES(),{size:g5()})],["lifetimeToken",e],["instructions",m7(DSr(),{size:g5()})]]}function LSr(){return[["version",Fye()],["header",MSr()],["staticAccounts",y7(bs(),{size:_5()})],["lifetimeToken",Nye(NSr(),32)],["instructions",y7(kSr(),{size:_5()})],["addressTableLookups",FSr()]]}function USr(){return m7(xSr(),{size:g5()})}function FSr(){return y7(TSr(),{size:_5()})}function npt(){return Il({getSizeFromValue:e=>e.version==="legacy"?YAt().getSizeFromValue(e):WAt().getSizeFromValue(e),write:(e,t,r)=>e.version==="legacy"?YAt().write(e,t,r):WAt().write(e,t,r)})}function ipt(){return Ij(aF(LSr()),({addressTableLookups:e,...t})=>t.version==="legacy"||!e?.length?t:{...t,addressTableLookups:e})}function XAt(e,t,r){e[t]=r(e[t]??{role:_g.READONLY})}var hf=Symbol("AddressMapTypeProperty");function QSr(e,t){let r={[e]:{[hf]:0,role:_g.WRITABLE_SIGNER}},i=new Set;for(let n of t){XAt(r,n.programAddress,d=>{if(i.add(n.programAddress),hf in d){if(p7(d.role))throw d[hf]===0?new aA(bye,{programAddress:n.programAddress}):new aA(vj,{programAddress:n.programAddress});if(d[hf]===2)return d}return{[hf]:2,role:_g.READONLY}});let o;if(n.accounts)for(let d of n.accounts)XAt(r,d.address,g=>{let{address:y,..._}=d;if(hf in g)switch(g[hf]){case 0:return g;case 1:{let I=yye(g.role,_.role);if("lookupTableAddress"in _){if(g.lookupTableAddress!==_.lookupTableAddress&&(o||=lj())(_.lookupTableAddress,g.lookupTableAddress)<0)return{[hf]:1,..._,role:I}}else if(p5(_.role))return{[hf]:2,role:I};return g.role!==I?{...g,role:I}:g}case 2:{let I=yye(g.role,_.role);if(i.has(d.address)){if(p7(_.role))throw new aA(vj,{programAddress:d.address});return g.role!==I?{...g,role:I}:g}else return"lookupTableAddress"in _&&!p5(g.role)?{..._,[hf]:1,role:I}:g.role!==I?{...g,role:I}:g}}return"lookupTableAddress"in _?{..._,[hf]:1}:{..._,[hf]:2}})}return r}function HSr(e){let t;return Object.entries(e).sort(([i,n],[o,d])=>{if(n[hf]!==d[hf]){if(n[hf]===0)return-1;if(d[hf]===0)return 1;if(n[hf]===2)return-1;if(d[hf]===2)return 1}let g=p5(n.role);if(g!==p5(d.role))return g?-1:1;let y=p7(n.role);return y!==p7(d.role)?y?-1:1:(t||=lj(),n[hf]===1&&d[hf]===1&&n.lookupTableAddress!==d.lookupTableAddress?t(n.lookupTableAddress,d.lookupTableAddress):t(i,o))}).map(([i,n])=>({address:i,...n}))}function GSr(e){let t={};for(let r of e){if(!("lookupTableAddress"in r))continue;let i=t[r.lookupTableAddress]||={readonlyIndexes:[],writableIndexes:[]};r.role===_g.WRITABLE?i.writableIndexes.push(r.addressIndex):i.readonlyIndexes.push(r.addressIndex)}return Object.keys(t).sort(lj()).map(r=>({lookupTableAddress:r,...t[r]}))}function qSr(e){let t=0,r=0,i=0;for(let n of e){if("lookupTableAddress"in n)break;let o=p7(n.role);p5(n.role)?(i++,o||r++):o||t++}return{numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:r,numSignerAccounts:i}}function VSr(e){let t={};for(let[r,i]of e.entries())t[i.address]=r;return t}function JSr(e,t){let r=VSr(t);return e.map(({accounts:i,data:n,programAddress:o})=>({programAddressIndex:r[o],...i?{accountIndices:i.map(({address:d})=>r[d])}:null,...n?{data:n}:null}))}function zSr(e){return"nonce"in e?e.nonce:e.blockhash}function KSr(e){let t=e.findIndex(i=>"lookupTableAddress"in i);return(t===-1?e:e.slice(0,t)).map(({address:i})=>i)}function opt(e){let t=QSr(e.feePayer.address,e.instructions),r=HSr(t),i=e.lifetimeConstraint;return{...e.version!=="legacy"?{addressTableLookups:GSr(r)}:null,...i?{lifetimeToken:zSr(i)}:null,header:qSr(r),instructions:JSr(e.instructions,r),staticAccounts:KSr(r),version:e.version}}function apt(e){return Object.freeze({instructions:Object.freeze([]),version:e.version})}var $Sr="SysvarRecentB1ockHashes11111111111111111111",YSr="11111111111111111111111111111111";function WSr(e){return e.programAddress===YSr&&e.data!=null&&XSr(e.data)&&e.accounts?.length===3&&e.accounts[0].address!=null&&e.accounts[0].role===_g.WRITABLE&&e.accounts[1].address===$Sr&&e.accounts[1].role===_g.READONLY&&e.accounts[2].address!=null&&p5(e.accounts[2].role)}function XSr(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function Nj(e){return"lifetimeConstraint"in e&&typeof e.lifetimeConstraint.nonce=="string"&&e.instructions[0]!=null&&WSr(e.instructions[0])}function spt(e,t){if("feePayer"in t&&e===t.feePayer?.address&&ZSr(t.feePayer))return t;let r={...t,feePayer:Object.freeze({address:e})};return Object.freeze(r),r}function ZSr(e){return!!e&&"address"in e&&typeof e.address=="string"&&Object.keys(e).length===1}function Qye(e,t){return Hye([e],t)}function Hye(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function cpt(e,t){return jSr([e],t)}function jSr(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}J();K();z();J();K();z();J();K();z();var e6r=1,t6r=2,r6r=3,n6r=4,i6r=5,o6r=6,a6r=7,s6r=8,c6r=9,u6r=10,d6r=-32700,f6r=-32603,l6r=-32602,h6r=-32601,A6r=-32600,p6r=-32019,g6r=-32018,_6r=-32017,m6r=-32016,y6r=-32015,b6r=-32014,E6r=-32013,v6r=-32012,R6r=-32011,S6r=-32010,I6r=-32009,C6r=-32008,w6r=-32007,O6r=-32006,N6r=-32005,x6r=-32004,T6r=-32003,B6r=-32002,M6r=-32001,D6r=28e5,k6r=2800001,P6r=2800002,L6r=2800003,U6r=2800004,F6r=2800005,Q6r=2800006,H6r=2800007,G6r=2800008,q6r=2800009,V6r=2800010,J6r=2800011,z6r=323e4,K6r=32300001,$6r=3230002,Y6r=3230003,W6r=3230004,X6r=361e4,Z6r=3610001,j6r=3610002,eIr=3610003,tIr=3610004,rIr=3610005,nIr=3610006,iIr=3610007,oIr=3611e3,aIr=3704e3,sIr=3704001,cIr=3704002,uIr=3704003,dIr=3704004,fIr=4128e3,lIr=4128001,hIr=4128002,AIr=4615e3,pIr=4615001,gIr=4615002,_Ir=4615003,mIr=4615004,yIr=4615005,bIr=4615006,EIr=4615007,vIr=4615008,RIr=4615009,SIr=4615010,IIr=4615011,CIr=4615012,wIr=4615013,OIr=4615014,NIr=4615015,xIr=4615016,TIr=4615017,BIr=4615018,MIr=4615019,DIr=4615020,kIr=4615021,PIr=4615022,LIr=4615023,UIr=4615024,FIr=4615025,QIr=4615026,HIr=4615027,GIr=4615028,qIr=4615029,VIr=4615030,JIr=4615031,zIr=4615032,KIr=4615033,$Ir=4615034,YIr=4615035,WIr=4615036,XIr=4615037,ZIr=4615038,jIr=4615039,e3r=4615040,t3r=4615041,r3r=4615042,n3r=4615043,i3r=4615044,o3r=4615045,a3r=4615046,s3r=4615047,c3r=4615048,u3r=4615049,d3r=4615050,f3r=4615051,l3r=4615052,h3r=4615053,A3r=4615054,p3r=5508e3,g3r=5508001,_3r=5508002,m3r=5508003,y3r=5508004,b3r=5508005,E3r=5508006,v3r=5508007,R3r=5508008,S3r=5508009,I3r=5508010,C3r=5508011,w3r=5663e3,O3r=5663001,upt=5663002,dpt=5663003,N3r=5663004,x3r=5663005,T3r=5663006,B3r=5663007,M3r=5663008,fpt=5663009,D3r=5663010,k3r=5663011,lpt=5663012,P3r=5663013,L3r=5663014,Gye=5663015,qye=5663016,Vye=5663017,U3r=5663018,F3r=5663019,hpt=5663020,Q3r=5663021,Apt=5663022,H3r=705e4,G3r=7050001,q3r=7050002,V3r=7050003,J3r=7050004,z3r=7050005,K3r=7050006,$3r=7050007,Y3r=7050008,W3r=7050009,X3r=7050010,Z3r=7050011,j3r=7050012,e8r=7050013,t8r=7050014,r8r=7050015,n8r=7050016,i8r=7050017,o8r=7050018,a8r=7050019,s8r=7050020,c8r=7050021,u8r=7050022,d8r=7050023,f8r=7050024,l8r=7050025,h8r=7050026,A8r=7050027,p8r=7050028,g8r=7050029,_8r=7050030,m8r=7050031,y8r=7050032,b8r=7050033,E8r=7050034,v8r=7050035,R8r=7050036,S8r=7618e3,I8r=7618001,C8r=7618002,w8r=7618003,Jye=8078e3,zye=8078001,ppt=8078002,gpt=8078003,_pt=8078004,mpt=8078005,ypt=8078006,Kye=8078007,bpt=8078008,Ept=8078009,vpt=8078010,$ye=8078011,O8r=8078012,Yye=8078013,Wye=8078014,Rpt=8078015,Spt=8078016,Ipt=8078017,Cpt=8078018,N8r=8078019,wpt=8078020,Opt=8078021,Npt=8078022,xpt=8078023,x8r=81e5,T8r=8100001,B8r=8100002,M8r=8100003,D8r=819e4,k8r=8190001,P8r=8190002,L8r=8190003,U8r=8190004,F8r=99e5,Q8r=9900001,H8r=9900002,G8r=9900003,q8r=9900004,V8r=9900005,J8r=9900006;function Tpt(e){return Array.isArray(e)?"%5B"+e.map(Tpt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function z8r([e,t]){return`${e}=${Tpt(t)}`}function K8r(e){let t=Object.entries(e).map(z8r).join("&");return btoa(t)}var aio={[z6r]:"Account not found at address: $address",[W6r]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Y6r]:"Expected decoded account at address: $address",[$6r]:"Failed to decode account data at address: $address",[K6r]:"Accounts not found at addresses: $addresses",[q6r]:"Unable to find a viable program address bump seed.",[P6r]:"$putativeAddress is not a base58-encoded address.",[D6r]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[L6r]:"The `CryptoKey` must be an `Ed25519` public key.",[J6r]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[G6r]:"Invalid seeds; point must fall off the Ed25519 curve.",[U6r]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Q6r]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[H6r]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[F6r]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[V6r]:"Program address cannot end with PDA marker.",[k6r]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[n6r]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[e6r]:"The network has progressed past the last block for which this transaction could have been committed.",[Jye]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Npt]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[wpt]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[mpt]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[ypt]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[_pt]:"Encoder and decoder must either both be fixed-size or variable-size.",[bpt]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[ppt]:"Expected a fixed-size codec, got a variable-size one.",[Yye]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[gpt]:"Expected a variable-size codec, got a fixed-size one.",[N8r]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[zye]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Cpt]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Ept]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[vpt]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Rpt]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Kye]:"Expected [$codecDescription] to have $expected items, got $actual.",[O8r]:"Invalid value $value for base $base with alphabet $alphabet.",[Spt]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[$ye]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Wye]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Opt]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Ipt]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[xpt]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[oIr]:"No random values implementation could be found.",[RIr]:"instruction requires an uninitialized account",[LIr]:"instruction tries to borrow reference for an account which is already borrowed",[UIr]:"instruction left account with an outstanding borrowed reference",[kIr]:"program other than the account's owner changed the size of the account data",[yIr]:"account data too small for instruction",[PIr]:"instruction expected an executable account",[a3r]:"An account does not have enough lamports to be rent-exempt",[c3r]:"Program arithmetic overflowed",[o3r]:"Failed to serialize or deserialize account data: $encodedData",[A3r]:"Builtin programs must consume compute units",[zIr]:"Cross-program invocation call depth too deep",[ZIr]:"Computational budget exceeded",[QIr]:"custom program error: #$code",[TIr]:"instruction contains duplicate accounts",[FIr]:"instruction modifications of multiply-passed account differ",[VIr]:"executable accounts must be rent exempt",[GIr]:"instruction changed executable accounts data",[qIr]:"instruction changed the balance of an executable account",[BIr]:"instruction changed executable bit of an account",[OIr]:"instruction modified data of an account it does not own",[wIr]:"instruction spent from the balance of an account it does not own",[pIr]:"generic instruction error",[d3r]:"Provided owner is not allowed",[n3r]:"Account is immutable",[i3r]:"Incorrect authority provided",[EIr]:"incorrect program id for instruction",[bIr]:"insufficient funds for instruction",[mIr]:"invalid account data for instruction",[s3r]:"Invalid account owner",[gIr]:"invalid program argument",[HIr]:"program returned invalid error code",[_Ir]:"invalid instruction data",[XIr]:"Failed to reallocate account data",[WIr]:"Provided seeds do not result in a valid address",[f3r]:"Accounts data allocations exceeded the maximum allowed per transaction",[l3r]:"Max accounts exceeded",[h3r]:"Max instruction trace length exceeded",[YIr]:"Length of the seed is too long for address generation",[KIr]:"An account required by the instruction is missing",[vIr]:"missing required signature for instruction",[CIr]:"instruction illegally modified the program id of an account",[DIr]:"insufficient account keys for instruction",[jIr]:"Cross-program invocation with unauthorized signer or writable account",[e3r]:"Failed to create program execution environment",[r3r]:"Program failed to compile",[t3r]:"Program failed to complete",[xIr]:"instruction modified data of a read-only account",[NIr]:"instruction changed the balance of a read-only account",[$Ir]:"Cross-program invocation reentrancy not allowed for this instruction",[MIr]:"instruction modified rent epoch of an account",[IIr]:"sum of account balances before and after instruction do not match",[SIr]:"instruction requires an initialized account",[AIr]:"",[JIr]:"Unsupported program id",[u3r]:"Unsupported sysvar",[V8r]:"Invalid instruction plan kind: $kind.",[C8r]:"The provided instruction plan is empty.",[w8r]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[S8r]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[J8r]:"Invalid transaction plan kind: $kind.",[I8r]:"No more instructions to pack; the message packer has completed the instruction plan.",[fIr]:"The instruction does not have any accounts.",[lIr]:"The instruction does not have any data.",[hIr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[i6r]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[t6r]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[H8r]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[q8r]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Q8r]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[F8r]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[G8r]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[f6r]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[l6r]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[A6r]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[h6r]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[d6r]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[v6r]:"$__serverMessage",[M6r]:"$__serverMessage",[x6r]:"$__serverMessage",[b6r]:"$__serverMessage",[_6r]:"Epoch rewards period still active at slot $slot",[S6r]:"$__serverMessage",[I6r]:"$__serverMessage",[p6r]:"Failed to query long-term storage; please try again",[m6r]:"Minimum context slot has not been reached",[N6r]:"Node is unhealthy; behind by $numSlotsBehind slots",[C6r]:"No snapshot",[B6r]:"Transaction simulation failed",[g6r]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[w6r]:"$__serverMessage",[R6r]:"Transaction history is not available from this node",[O6r]:"$__serverMessage",[E6r]:"Transaction signature length mismatch",[T6r]:"Transaction signature verification failure",[y6r]:"$__serverMessage",[aIr]:"Key pair bytes must be of length 64, got $byteLength.",[sIr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[cIr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[dIr]:"The provided private key does not match the provided public key.",[uIr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[o6r]:"Lamports value must be in the range [0, 2e64-1]",[a6r]:"`$value` cannot be parsed as a `BigInt`",[u6r]:"$message",[s6r]:"`$value` cannot be parsed as a `Number`",[r6r]:"No nonce account could be found at address `$nonceAccountAddress`",[D8r]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[P8r]:"WebSocket was closed before payload could be added to the send buffer",[L8r]:"WebSocket connection closed",[U8r]:"WebSocket failed to connect",[k8r]:"Failed to obtain a subscription id from the server",[M8r]:"Could not find an API plan for RPC method: `$method`",[x8r]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[B8r]:"HTTP error ($statusCode): $message",[T8r]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[p3r]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[g3r]:"The provided value does not implement the `KeyPairSigner` interface",[m3r]:"The provided value does not implement the `MessageModifyingSigner` interface",[y3r]:"The provided value does not implement the `MessagePartialSigner` interface",[_3r]:"The provided value does not implement any of the `MessageSigner` interfaces",[E3r]:"The provided value does not implement the `TransactionModifyingSigner` interface",[v3r]:"The provided value does not implement the `TransactionPartialSigner` interface",[R3r]:"The provided value does not implement the `TransactionSendingSigner` interface",[b3r]:"The provided value does not implement any of the `TransactionSigner` interfaces",[S3r]:"More than one `TransactionSendingSigner` was identified.",[I3r]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[C3r]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[iIr]:"Cannot export a non-extractable key.",[Z6r]:"No digest implementation could be found.",[X6r]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[j6r]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[eIr]:"No signature verification implementation could be found.",[tIr]:"No key generation implementation could be found.",[rIr]:"No signing implementation could be found.",[nIr]:"No key export implementation could be found.",[c6r]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[n8r]:"Transaction processing left an account with an outstanding borrowed reference",[G3r]:"Account in use",[q3r]:"Account loaded twice",[V3r]:"Attempt to debit an account but found no record of a prior credit.",[d8r]:"Transaction loads an address table account that doesn't exist",[$3r]:"This transaction has already been processed",[Y3r]:"Blockhash not found",[W3r]:"Loader call chain is too deep",[r8r]:"Transactions are currently disabled due to cluster maintenance",[_8r]:"Transaction contains a duplicate instruction ($index) that is not allowed",[z3r]:"Insufficient funds for fee",[m8r]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[K3r]:"This account may not be used to pay transaction fees",[Z3r]:"Transaction contains an invalid account reference",[l8r]:"Transaction loads an address table account with invalid data",[h8r]:"Transaction address table lookup uses an invalid index",[f8r]:"Transaction loads an address table account with an invalid owner",[b8r]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[e8r]:"This program may not be used for executing instructions",[A8r]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[a8r]:"Transaction loads a writable account that cannot be written",[y8r]:"Transaction exceeded max loaded accounts data size cap",[X3r]:"Transaction requires a fee but has no signature present",[J3r]:"Attempt to load a program that does not exist",[v8r]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[E8r]:"ResanitizationNeeded",[t8r]:"Transaction failed to sanitize accounts offsets correctly",[j3r]:"Transaction did not pass signature verification",[u8r]:"Transaction locked too many accounts",[R8r]:"Sum of account balances before and after transaction do not match",[H3r]:"The transaction failed with the error `$errorName`",[o8r]:"Transaction version is unsupported",[c8r]:"Transaction would exceed account data limit within the block",[g8r]:"Transaction would exceed total account data limit",[s8r]:"Transaction would exceed max account limit within the block",[i8r]:"Transaction would exceed max Block Cost Limit",[p8r]:"Transaction would exceed max Vote Cost Limit",[Gye]:"Attempted to sign a transaction with an address that is not a signer for it",[D3r]:"Transaction is missing an address at index: $index.",[qye]:"Transaction has no expected signers therefore it cannot be encoded",[hpt]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[upt]:"Transaction does not have a blockhash lifetime",[dpt]:"Transaction is not a durable nonce transaction",[x3r]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[T3r]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[M3r]:"No fee payer set in CompiledTransaction",[B3r]:"Could not find program address at index $index",[U3r]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[F3r]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[k3r]:"Transaction is missing a fee payer.",[lpt]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[L3r]:"Transaction first instruction is not advance nonce account instruction.",[P3r]:"Transaction with no instructions cannot be durable nonce transaction.",[w3r]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[O3r]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Vye]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[fpt]:"Transaction is missing signatures for addresses: $addresses.",[N3r]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Q3r]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[Apt]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function $8r(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${K8r(t)}'`),`${r}\``}}var mg=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=$8r(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function Y8r(e,t){if(e.length>=t)return e;let r=new Uint8Array(t).fill(0);return r.set(e),r}var W8r=(e,t)=>Y8r(e.length<=t?e:e.slice(0,t),t);function sF(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function bE(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array(sF(t,e));return e.write(t,r,0),r}})}function o1(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function E7(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function X8r(e){return!E7(e)}function Mpt(e,t,r=0){if(t.length-r<=0)throw new mg(Jye,{codecDescription:e})}function xj(e,t,r,i=0){let n=r.length-i;if(n<t)throw new mg(zye,{bytesLength:n,codecDescription:e,expected:t})}function Bpt(e,t,r){if(t<0||t>r)throw new mg(Wye,{bytesLength:r,codecDescription:e,offset:t})}function Xye(e,t){return bE({fixedSize:t,write:(r,i,n)=>{let o=e.encode(r),d=o.length>t?o.slice(0,t):o;return i.set(d,n),n+t}})}function Zye(e,t){return o1({fixedSize:t,read:(r,i)=>{xj("fixCodecSize",t,r,i),(i>0||r.length>t)&&(r=r.slice(i,i+t)),E7(e)&&(r=W8r(r,e.fixedSize));let[n]=e.read(r,0);return[n,i+t]}})}function Z8r(e,t){return o1({...e,read:(r,i)=>{let n=_=>j8r(_,r.length),o=t.preOffset?t.preOffset({bytes:r,preOffset:i,wrapBytes:n}):i;Bpt("offsetDecoder",o,r.length);let[d,g]=e.read(r,o),y=t.postOffset?t.postOffset({bytes:r,newPreOffset:o,postOffset:g,preOffset:i,wrapBytes:n}):g;return Bpt("offsetDecoder",y,r.length),[d,y]}})}function j8r(e,t){return t===0?0:(e%t+t)%t}function e4r(e,t){if(E7(e)){let r=t(e.fixedSize);if(r<0)throw new mg(Yye,{bytesLength:r,codecDescription:"resizeDecoder"});return o1({...e,fixedSize:r})}return e}function Dpt(e,t){return Z8r(e4r(e,r=>r+t),{postOffset:({postOffset:r})=>r+t})}function jye(e,t){return bE({...X8r(e)?{...e,getSizeFromValue:r=>e.getSizeFromValue(t(r))}:e,write:(r,i,n)=>e.write(t(r),i,n)})}function ebe(e,t){return o1({...e,read:(r,i)=>{let[n,o]=e.read(r,i);return[t(n,r,i),o]}})}J();K();z();J();K();z();function kpt(e,t,r,i){if(i<t||i>r)throw new mg($ye,{codecDescription:e,max:r,min:t,value:i})}function Ppt(e){return e?.endian!==1}function t4r(e){return bE({fixedSize:e.size,write(t,r,i){e.range&&kpt(e.name,e.range[0],e.range[1],t);let n=new ArrayBuffer(e.size);return e.set(new DataView(n),t,Ppt(e.config)),r.set(new Uint8Array(n),i),i+e.size}})}function Lpt(e){return o1({fixedSize:e.size,read(t,r=0){Mpt(e.name,t,r),xj(e.name,e.size,t,r);let i=new DataView(r4r(t,r,e.size));return[e.get(i,Ppt(e.config)),r+e.size]}})}function r4r(e,t,r){let i=e.byteOffset+(t??0),n=r??e.byteLength;return e.buffer.slice(i,i+n)}var Upt=()=>bE({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,r)=>{kpt("shortU16",0,65535,e);let i=[0];for(let n=0;;n+=1){let o=Number(e)>>n*7;if(o===0)break;let d=127&o;i[n]=d,n>0&&(i[n-1]|=128)}return t.set(i,r),r+i.length}}),rbe=()=>o1({maxSize:3,read:(e,t)=>{let r=0,i=0;for(;++i;){let n=i-1,o=e[t+n],d=127&o;if(r|=d<<n*7,(o&128)===0)break}return[r,t+i]}});var Fpt=(e={})=>t4r({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,r,i)=>t.setUint32(0,Number(r),i),size:4}),Qpt=(e={})=>Lpt({config:e,get:(t,r)=>t.getUint32(0,r),name:"u32",size:4});var nbe=()=>Lpt({get:e=>e.getUint8(0),name:"u8",size:1});function n4r(e,t,r){if(t!==r)throw new mg(Kye,{actual:r,codecDescription:e,expected:t})}function v7(e){return e.reduce((t,r)=>t===null||r===null?null:t+r,0)}function cF(e){return E7(e)?e.fixedSize:null}function uF(e){return E7(e)?e.fixedSize:e.maxSize??null}function Hpt(e,t={}){let r=t.size??Fpt(),i=Tj(r,cF(e)),n=Tj(r,uF(e))??void 0;return bE({...i!==null?{fixedSize:i}:{getSizeFromValue:o=>(typeof r=="object"?sF(o.length,r):0)+[...o].reduce((g,y)=>g+sF(y,e),0),maxSize:n},write:(o,d,g)=>(typeof r=="number"&&n4r("array",r,o.length),typeof r=="object"&&(g=r.write(o.length,d,g)),o.forEach(y=>{g=e.write(y,d,g)}),g)})}function ibe(e,t={}){let r=t.size??Qpt(),i=cF(e),n=Tj(r,i),o=Tj(r,uF(e))??void 0;return o1({...n!==null?{fixedSize:n}:{maxSize:o},read:(d,g)=>{let y=[];if(typeof r=="object"&&d.slice(g).length===0)return[y,g];if(r==="remainder"){for(;g<d.length;){let[N,T]=e.read(d,g);g=T,y.push(N)}return[y,g]}let[_,I]=typeof r=="number"?[r,g]:r.read(d,g);g=I;for(let N=0;N<_;N+=1){let[T,M]=e.read(d,g);g=M,y.push(T)}return[y,g]}})}function Tj(e,t){return typeof e!="number"?null:e===0?0:t===null?null:t*e}function obe(){return bE({getSizeFromValue:e=>e.length,write:(e,t,r)=>(t.set(e,r),r+e.length)})}function abe(){return o1({read:(e,t)=>{let r=e.slice(t);return[r,t+r.length]}})}function Gpt(e){let t=v7(e.map(cF)),r=v7(e.map(uF))??void 0;return o1({...t===null?{maxSize:r}:{fixedSize:t},read:(i,n)=>{let o=[];return e.forEach(d=>{let[g,y]=d.read(i,n);o.push(g),n=y}),[o,n]}})}function qpt(e){let t=e.map(([,n])=>n),r=v7(t.map(cF)),i=v7(t.map(uF))??void 0;return bE({...r===null?{getSizeFromValue:n=>e.map(([o,d])=>sF(n[o],d)).reduce((o,d)=>o+d,0),maxSize:i}:{fixedSize:r},write:(n,o,d)=>(e.forEach(([g,y])=>{d=y.write(n[g],o,d)}),d)})}function Vpt(e){let t=e.map(([,n])=>n),r=v7(t.map(cF)),i=v7(t.map(uF))??void 0;return o1({...r===null?{maxSize:i}:{fixedSize:r},read:(n,o)=>{let d={};return e.forEach(([g,y])=>{let[_,I]=y.read(n,o);o=I,d[g]=_}),[d,o]}})}J();K();z();var Jpt=()=>o1({read(e,t=0){let r=e.slice(t);return[btoa(String.fromCharCode(...r)),e.length]}});var Dio=globalThis.TextDecoder,kio=globalThis.TextEncoder;J();K();z();J();K();z();var i4r=1,o4r=2,a4r=3,s4r=4,c4r=5,u4r=6,d4r=7,f4r=8,l4r=9,h4r=10,A4r=-32700,p4r=-32603,g4r=-32602,_4r=-32601,m4r=-32600,y4r=-32019,b4r=-32018,E4r=-32017,v4r=-32016,R4r=-32015,S4r=-32014,I4r=-32013,C4r=-32012,w4r=-32011,O4r=-32010,N4r=-32009,x4r=-32008,T4r=-32007,B4r=-32006,M4r=-32005,D4r=-32004,k4r=-32003,P4r=-32002,L4r=-32001,U4r=28e5,F4r=2800001,Q4r=2800002,H4r=2800003,G4r=2800004,q4r=2800005,V4r=2800006,J4r=2800007,z4r=2800008,K4r=2800009,$4r=2800010,Y4r=2800011,W4r=323e4,X4r=32300001,Z4r=3230002,j4r=3230003,eCr=3230004,tCr=361e4,rCr=3610001,nCr=3610002,iCr=3610003,oCr=3610004,aCr=3610005,sCr=3610006,sbe=3610007,cCr=3611e3,cbe=3704e3,ube=3704001,zpt=3704002,Kpt=3704003,dbe=3704004,uCr=4128e3,dCr=4128001,fCr=4128002,lCr=4615e3,hCr=4615001,ACr=4615002,pCr=4615003,gCr=4615004,_Cr=4615005,mCr=4615006,yCr=4615007,bCr=4615008,ECr=4615009,vCr=4615010,RCr=4615011,SCr=4615012,ICr=4615013,CCr=4615014,wCr=4615015,OCr=4615016,NCr=4615017,xCr=4615018,TCr=4615019,BCr=4615020,MCr=4615021,DCr=4615022,kCr=4615023,PCr=4615024,LCr=4615025,UCr=4615026,FCr=4615027,QCr=4615028,HCr=4615029,GCr=4615030,qCr=4615031,VCr=4615032,JCr=4615033,zCr=4615034,KCr=4615035,$Cr=4615036,YCr=4615037,WCr=4615038,XCr=4615039,ZCr=4615040,jCr=4615041,ewr=4615042,twr=4615043,rwr=4615044,nwr=4615045,iwr=4615046,owr=4615047,awr=4615048,swr=4615049,cwr=4615050,uwr=4615051,dwr=4615052,fwr=4615053,lwr=4615054,hwr=5508e3,Awr=5508001,pwr=5508002,gwr=5508003,_wr=5508004,mwr=5508005,ywr=5508006,bwr=5508007,Ewr=5508008,vwr=5508009,Rwr=5508010,Swr=5508011,Iwr=5663e3,Cwr=5663001,wwr=5663002,Owr=5663003,Nwr=5663004,xwr=5663005,Twr=5663006,Bwr=5663007,Mwr=5663008,Dwr=5663009,kwr=5663010,Pwr=5663011,Lwr=5663012,Uwr=5663013,Fwr=5663014,Qwr=5663015,Hwr=5663016,Gwr=5663017,qwr=5663018,Vwr=5663019,Jwr=5663020,zwr=5663021,Kwr=5663022,$wr=705e4,Ywr=7050001,Wwr=7050002,Xwr=7050003,Zwr=7050004,jwr=7050005,e5r=7050006,t5r=7050007,r5r=7050008,n5r=7050009,i5r=7050010,o5r=7050011,a5r=7050012,s5r=7050013,c5r=7050014,u5r=7050015,d5r=7050016,f5r=7050017,l5r=7050018,h5r=7050019,A5r=7050020,p5r=7050021,g5r=7050022,_5r=7050023,m5r=7050024,y5r=7050025,b5r=7050026,E5r=7050027,v5r=7050028,R5r=7050029,S5r=7050030,I5r=7050031,C5r=7050032,w5r=7050033,O5r=7050034,N5r=7050035,x5r=7050036,T5r=7618e3,B5r=7618001,M5r=7618002,D5r=7618003,k5r=8078e3,P5r=8078001,L5r=8078002,U5r=8078003,F5r=8078004,Q5r=8078005,H5r=8078006,G5r=8078007,q5r=8078008,V5r=8078009,J5r=8078010,z5r=8078011,K5r=8078012,$5r=8078013,Y5r=8078014,W5r=8078015,X5r=8078016,Z5r=8078017,j5r=8078018,eOr=8078019,tOr=8078020,rOr=8078021,nOr=8078022,iOr=8078023,oOr=81e5,aOr=8100001,sOr=8100002,cOr=8100003,uOr=819e4,dOr=8190001,fOr=8190002,lOr=8190003,hOr=8190004,AOr=99e5,pOr=9900001,gOr=9900002,_Or=9900003,mOr=9900004,yOr=9900005,bOr=9900006;function $pt(e){return Array.isArray(e)?"%5B"+e.map($pt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function EOr([e,t]){return`${e}=${$pt(t)}`}function vOr(e){let t=Object.entries(e).map(EOr).join("&");return btoa(t)}var Qio={[W4r]:"Account not found at address: $address",[eCr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[j4r]:"Expected decoded account at address: $address",[Z4r]:"Failed to decode account data at address: $address",[X4r]:"Accounts not found at addresses: $addresses",[K4r]:"Unable to find a viable program address bump seed.",[Q4r]:"$putativeAddress is not a base58-encoded address.",[U4r]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[H4r]:"The `CryptoKey` must be an `Ed25519` public key.",[Y4r]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[z4r]:"Invalid seeds; point must fall off the Ed25519 curve.",[G4r]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[V4r]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[J4r]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[q4r]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[$4r]:"Program address cannot end with PDA marker.",[F4r]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[s4r]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[i4r]:"The network has progressed past the last block for which this transaction could have been committed.",[k5r]:"Codec [$codecDescription] cannot decode empty byte arrays.",[nOr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[tOr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Q5r]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[H5r]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[F5r]:"Encoder and decoder must either both be fixed-size or variable-size.",[q5r]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[L5r]:"Expected a fixed-size codec, got a variable-size one.",[$5r]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[U5r]:"Expected a variable-size codec, got a fixed-size one.",[eOr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[P5r]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[j5r]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[V5r]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[J5r]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[W5r]:"Invalid literal union variant. Expected one of [$variants], got $value.",[G5r]:"Expected [$codecDescription] to have $expected items, got $actual.",[K5r]:"Invalid value $value for base $base with alphabet $alphabet.",[X5r]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[z5r]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Y5r]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[rOr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Z5r]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[iOr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[cCr]:"No random values implementation could be found.",[ECr]:"instruction requires an uninitialized account",[kCr]:"instruction tries to borrow reference for an account which is already borrowed",[PCr]:"instruction left account with an outstanding borrowed reference",[MCr]:"program other than the account's owner changed the size of the account data",[_Cr]:"account data too small for instruction",[DCr]:"instruction expected an executable account",[iwr]:"An account does not have enough lamports to be rent-exempt",[awr]:"Program arithmetic overflowed",[nwr]:"Failed to serialize or deserialize account data: $encodedData",[lwr]:"Builtin programs must consume compute units",[VCr]:"Cross-program invocation call depth too deep",[WCr]:"Computational budget exceeded",[UCr]:"custom program error: #$code",[NCr]:"instruction contains duplicate accounts",[LCr]:"instruction modifications of multiply-passed account differ",[GCr]:"executable accounts must be rent exempt",[QCr]:"instruction changed executable accounts data",[HCr]:"instruction changed the balance of an executable account",[xCr]:"instruction changed executable bit of an account",[CCr]:"instruction modified data of an account it does not own",[ICr]:"instruction spent from the balance of an account it does not own",[hCr]:"generic instruction error",[cwr]:"Provided owner is not allowed",[twr]:"Account is immutable",[rwr]:"Incorrect authority provided",[yCr]:"incorrect program id for instruction",[mCr]:"insufficient funds for instruction",[gCr]:"invalid account data for instruction",[owr]:"Invalid account owner",[ACr]:"invalid program argument",[FCr]:"program returned invalid error code",[pCr]:"invalid instruction data",[YCr]:"Failed to reallocate account data",[$Cr]:"Provided seeds do not result in a valid address",[uwr]:"Accounts data allocations exceeded the maximum allowed per transaction",[dwr]:"Max accounts exceeded",[fwr]:"Max instruction trace length exceeded",[KCr]:"Length of the seed is too long for address generation",[JCr]:"An account required by the instruction is missing",[bCr]:"missing required signature for instruction",[SCr]:"instruction illegally modified the program id of an account",[BCr]:"insufficient account keys for instruction",[XCr]:"Cross-program invocation with unauthorized signer or writable account",[ZCr]:"Failed to create program execution environment",[ewr]:"Program failed to compile",[jCr]:"Program failed to complete",[OCr]:"instruction modified data of a read-only account",[wCr]:"instruction changed the balance of a read-only account",[zCr]:"Cross-program invocation reentrancy not allowed for this instruction",[TCr]:"instruction modified rent epoch of an account",[RCr]:"sum of account balances before and after instruction do not match",[vCr]:"instruction requires an initialized account",[lCr]:"",[qCr]:"Unsupported program id",[swr]:"Unsupported sysvar",[yOr]:"Invalid instruction plan kind: $kind.",[M5r]:"The provided instruction plan is empty.",[D5r]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[T5r]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[bOr]:"Invalid transaction plan kind: $kind.",[B5r]:"No more instructions to pack; the message packer has completed the instruction plan.",[uCr]:"The instruction does not have any accounts.",[dCr]:"The instruction does not have any data.",[fCr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[c4r]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[o4r]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[gOr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[mOr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[pOr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[AOr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[_Or]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[p4r]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[g4r]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[m4r]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[_4r]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[A4r]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[C4r]:"$__serverMessage",[L4r]:"$__serverMessage",[D4r]:"$__serverMessage",[S4r]:"$__serverMessage",[E4r]:"Epoch rewards period still active at slot $slot",[O4r]:"$__serverMessage",[N4r]:"$__serverMessage",[y4r]:"Failed to query long-term storage; please try again",[v4r]:"Minimum context slot has not been reached",[M4r]:"Node is unhealthy; behind by $numSlotsBehind slots",[x4r]:"No snapshot",[P4r]:"Transaction simulation failed",[b4r]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[T4r]:"$__serverMessage",[w4r]:"Transaction history is not available from this node",[B4r]:"$__serverMessage",[I4r]:"Transaction signature length mismatch",[k4r]:"Transaction signature verification failure",[R4r]:"$__serverMessage",[cbe]:"Key pair bytes must be of length 64, got $byteLength.",[ube]:"Expected private key bytes with length 32. Actual length: $actualLength.",[zpt]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[dbe]:"The provided private key does not match the provided public key.",[Kpt]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[u4r]:"Lamports value must be in the range [0, 2e64-1]",[d4r]:"`$value` cannot be parsed as a `BigInt`",[h4r]:"$message",[f4r]:"`$value` cannot be parsed as a `Number`",[a4r]:"No nonce account could be found at address `$nonceAccountAddress`",[uOr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[fOr]:"WebSocket was closed before payload could be added to the send buffer",[lOr]:"WebSocket connection closed",[hOr]:"WebSocket failed to connect",[dOr]:"Failed to obtain a subscription id from the server",[cOr]:"Could not find an API plan for RPC method: `$method`",[oOr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[sOr]:"HTTP error ($statusCode): $message",[aOr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[hwr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Awr]:"The provided value does not implement the `KeyPairSigner` interface",[gwr]:"The provided value does not implement the `MessageModifyingSigner` interface",[_wr]:"The provided value does not implement the `MessagePartialSigner` interface",[pwr]:"The provided value does not implement any of the `MessageSigner` interfaces",[ywr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[bwr]:"The provided value does not implement the `TransactionPartialSigner` interface",[Ewr]:"The provided value does not implement the `TransactionSendingSigner` interface",[mwr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[vwr]:"More than one `TransactionSendingSigner` was identified.",[Rwr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Swr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[sbe]:"Cannot export a non-extractable key.",[rCr]:"No digest implementation could be found.",[tCr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[nCr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[iCr]:"No signature verification implementation could be found.",[oCr]:"No key generation implementation could be found.",[aCr]:"No signing implementation could be found.",[sCr]:"No key export implementation could be found.",[l4r]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[d5r]:"Transaction processing left an account with an outstanding borrowed reference",[Ywr]:"Account in use",[Wwr]:"Account loaded twice",[Xwr]:"Attempt to debit an account but found no record of a prior credit.",[_5r]:"Transaction loads an address table account that doesn't exist",[t5r]:"This transaction has already been processed",[r5r]:"Blockhash not found",[n5r]:"Loader call chain is too deep",[u5r]:"Transactions are currently disabled due to cluster maintenance",[S5r]:"Transaction contains a duplicate instruction ($index) that is not allowed",[jwr]:"Insufficient funds for fee",[I5r]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[e5r]:"This account may not be used to pay transaction fees",[o5r]:"Transaction contains an invalid account reference",[y5r]:"Transaction loads an address table account with invalid data",[b5r]:"Transaction address table lookup uses an invalid index",[m5r]:"Transaction loads an address table account with an invalid owner",[w5r]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[s5r]:"This program may not be used for executing instructions",[E5r]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[h5r]:"Transaction loads a writable account that cannot be written",[C5r]:"Transaction exceeded max loaded accounts data size cap",[i5r]:"Transaction requires a fee but has no signature present",[Zwr]:"Attempt to load a program that does not exist",[N5r]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[O5r]:"ResanitizationNeeded",[c5r]:"Transaction failed to sanitize accounts offsets correctly",[a5r]:"Transaction did not pass signature verification",[g5r]:"Transaction locked too many accounts",[x5r]:"Sum of account balances before and after transaction do not match",[$wr]:"The transaction failed with the error `$errorName`",[l5r]:"Transaction version is unsupported",[p5r]:"Transaction would exceed account data limit within the block",[R5r]:"Transaction would exceed total account data limit",[A5r]:"Transaction would exceed max account limit within the block",[f5r]:"Transaction would exceed max Block Cost Limit",[v5r]:"Transaction would exceed max Vote Cost Limit",[Qwr]:"Attempted to sign a transaction with an address that is not a signer for it",[kwr]:"Transaction is missing an address at index: $index.",[Hwr]:"Transaction has no expected signers therefore it cannot be encoded",[Jwr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[wwr]:"Transaction does not have a blockhash lifetime",[Owr]:"Transaction is not a durable nonce transaction",[xwr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Twr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Mwr]:"No fee payer set in CompiledTransaction",[Bwr]:"Could not find program address at index $index",[qwr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[Vwr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Pwr]:"Transaction is missing a fee payer.",[Lwr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Fwr]:"Transaction first instruction is not advance nonce account instruction.",[Uwr]:"Transaction with no instructions cannot be durable nonce transaction.",[Iwr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Cwr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Gwr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Dwr]:"Transaction is missing signatures for addresses: $addresses.",[Nwr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[zwr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[Kwr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function ROr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${vOr(t)}'`),`${r}\``}}var dF=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=ROr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};var Bj=Object.freeze({name:"Ed25519"});function SOr(e){return new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32,...e])}async function fbe(e,t=!1){let r=e.byteLength;if(r!==32)throw new dF(ube,{actualLength:r});let i=SOr(e);return await crypto.subtle.importKey("pkcs8",i,Bj,t,["sign"])}async function IOr(e,t=!1){if(dj(),e.extractable===!1)throw new dF(sbe,{key:e});let r=await crypto.subtle.exportKey("jwk",e);return await crypto.subtle.importKey("jwk",{crv:"Ed25519",ext:t,key_ops:["verify"],kty:"OKP",x:r.x},"Ed25519",t,["verify"])}async function fF(e,t){wht();let r=await crypto.subtle.sign(Bj,e,t);return new Uint8Array(r)}async function COr(e,t,r){return Oht(),await crypto.subtle.verify(Bj,e,t,r)}async function Ypt(e,t=!1){if(Iht(),e.byteLength!==64)throw new dF(cbe,{byteLength:e.byteLength});let[r,i]=await Promise.all([crypto.subtle.importKey("raw",e.slice(32),Bj,!0,["verify"]),fbe(e.slice(0,32),t)]),n=new Uint8Array(32);crypto.getRandomValues(n);let o=await fF(i,n);if(!await COr(r,o,n))throw new dF(dbe);return{privateKey:i,publicKey:r}}async function Wpt(e,t=!1){let r=fbe(e,t),[i,n]=await Promise.all([(t?r:fbe(e,!0)).then(async o=>await IOr(o,!0)),r]);return{privateKey:n,publicKey:i}}function wOr(e){let t=Object.values(e);if(t.length===0)throw new mg(qye);return t.map(r=>r||new Uint8Array(64).fill(0))}function OOr(){return jye(Hpt(Xye(obe(),64),{size:Upt()}),wOr)}function NOr(){return qpt([["signatures",OOr()],["messageBytes",obe()]])}function Xpt(){return ebe(Vpt([["signatures",ibe(Zye(abe(),64),{size:rbe()})],["messageBytes",abe()]]),xOr)}function xOr(e){let{messageBytes:t,signatures:r}=e,i=Gpt([Fye(),Dpt(nbe(),2),ibe(bs(),{size:rbe()})]),[n,o,d]=i.decode(t),g=d.slice(0,o);if(g.length!==r.length)throw new mg(Vye,{numRequiredSignatures:o,signaturesLength:r.length,signerAddresses:g});let y={};return g.forEach((_,I)=>{let N=r[I];N.every(T=>T===0)?y[_]=null:y[_]=N}),{messageBytes:t,signatures:Object.freeze(y)}}function Mj(e){let t=opt(e),r=npt().encode(t),i=t.staticAccounts.slice(0,t.header.numSignerAccounts),n={};for(let d of i)n[d]=null;let o;return ZAt(e)?o={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:Nj(e)&&(o={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address}),Object.freeze({...o?{lifetimeConstraint:o}:void 0,messageBytes:r,signatures:Object.freeze(n)})}function TOr(e,t){return e.length===t.length&&e.every((r,i)=>r===t[i])}async function Zpt(e,t){let r,i;if(await Promise.all(e.map(async n=>{let o=await hj(n.publicKey),d=t.signatures[o];if(d===void 0){i||=new Set,i.add(o);return}if(i)return;let g=await fF(n.privateKey,t.messageBytes);d!==null&&TOr(g,d)||(r||={},r[o]=g)})),i&&i.size>0){let n=Object.keys(t.signatures);throw new mg(Gye,{expectedAddresses:n,unexpectedAddresses:[...i]})}return r?Object.freeze({...t,signatures:Object.freeze({...t.signatures,...r})}):t}function R7(e){let t=NOr().encode(e);return Jpt().decode(t)}var BOr=1280,MOr=48,coo=BOr-MOr;J();K();z();function jpt(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function DOr(e){let t=new Set,r={deferreds:t,settled:!1};return Promise.resolve(e).then(i=>{for(let{resolve:n}of t)n(i);t.clear(),r.settled=!0},i=>{for(let{reject:n}of t)n(i);t.clear(),r.settled=!0}),r}var lbe=new WeakMap;async function e1t(e){let t;return await new Promise((i,n)=>{t={reject:n,resolve:i};for(let o of e){if(!jpt(o)){Promise.resolve(o).then(i,n);continue}let d=lbe.get(o);d===void 0?(d=DOr(o),d.deferreds.add(t),lbe.set(o,d)):d.settled?Promise.resolve(o).then(i,n):d.deferreds.add(t)}}).finally(()=>{for(let i of e)jpt(i)&&lbe.get(i).deferreds.delete(t)})}J();K();z();J();K();z();J();K();z();J();K();z();var kOr=1,POr=2,LOr=3,UOr=4,FOr=5,QOr=6,HOr=7,GOr=8,qOr=9,VOr=10,JOr=-32700,zOr=-32603,KOr=-32602,$Or=-32601,YOr=-32600,WOr=-32019,XOr=-32018,ZOr=-32017,jOr=-32016,eNr=-32015,tNr=-32014,rNr=-32013,nNr=-32012,iNr=-32011,oNr=-32010,aNr=-32009,sNr=-32008,cNr=-32007,uNr=-32006,dNr=-32005,fNr=-32004,lNr=-32003,hNr=-32002,ANr=-32001,pNr=28e5,gNr=2800001,_Nr=2800002,mNr=2800003,yNr=2800004,bNr=2800005,ENr=2800006,vNr=2800007,RNr=2800008,SNr=2800009,INr=2800010,CNr=2800011,wNr=323e4,ONr=32300001,NNr=3230002,xNr=3230003,TNr=3230004,BNr=361e4,MNr=3610001,DNr=3610002,kNr=3610003,PNr=3610004,LNr=3610005,UNr=3610006,FNr=3610007,QNr=3611e3,HNr=3704e3,GNr=3704001,qNr=3704002,VNr=3704003,JNr=3704004,zNr=4128e3,KNr=4128001,$Nr=4128002,YNr=4615e3,WNr=4615001,XNr=4615002,ZNr=4615003,jNr=4615004,exr=4615005,txr=4615006,rxr=4615007,nxr=4615008,ixr=4615009,oxr=4615010,axr=4615011,sxr=4615012,cxr=4615013,uxr=4615014,dxr=4615015,fxr=4615016,lxr=4615017,hxr=4615018,Axr=4615019,pxr=4615020,gxr=4615021,_xr=4615022,mxr=4615023,yxr=4615024,bxr=4615025,Exr=4615026,vxr=4615027,Rxr=4615028,Sxr=4615029,Ixr=4615030,Cxr=4615031,wxr=4615032,Oxr=4615033,Nxr=4615034,xxr=4615035,Txr=4615036,Bxr=4615037,Mxr=4615038,Dxr=4615039,kxr=4615040,Pxr=4615041,Lxr=4615042,Uxr=4615043,Fxr=4615044,Qxr=4615045,Hxr=4615046,Gxr=4615047,qxr=4615048,Vxr=4615049,Jxr=4615050,zxr=4615051,Kxr=4615052,$xr=4615053,Yxr=4615054,Wxr=5508e3,Xxr=5508001,Zxr=5508002,jxr=5508003,eTr=5508004,tTr=5508005,rTr=5508006,nTr=5508007,iTr=5508008,oTr=5508009,aTr=5508010,sTr=5508011,cTr=5663e3,uTr=5663001,dTr=5663002,fTr=5663003,lTr=5663004,hTr=5663005,ATr=5663006,pTr=5663007,gTr=5663008,_Tr=5663009,mTr=5663010,yTr=5663011,bTr=5663012,ETr=5663013,vTr=5663014,RTr=5663015,STr=5663016,ITr=5663017,CTr=5663018,wTr=5663019,OTr=5663020,NTr=5663021,xTr=5663022,TTr=705e4,BTr=7050001,MTr=7050002,DTr=7050003,kTr=7050004,PTr=7050005,LTr=7050006,UTr=7050007,FTr=7050008,QTr=7050009,HTr=7050010,GTr=7050011,qTr=7050012,VTr=7050013,JTr=7050014,zTr=7050015,KTr=7050016,$Tr=7050017,YTr=7050018,WTr=7050019,XTr=7050020,ZTr=7050021,jTr=7050022,eBr=7050023,tBr=7050024,rBr=7050025,nBr=7050026,iBr=7050027,oBr=7050028,aBr=7050029,sBr=7050030,cBr=7050031,uBr=7050032,dBr=7050033,fBr=7050034,lBr=7050035,hBr=7050036,ABr=7618e3,pBr=7618001,gBr=7618002,_Br=7618003,mBr=8078e3,yBr=8078001,bBr=8078002,EBr=8078003,vBr=8078004,RBr=8078005,SBr=8078006,IBr=8078007,CBr=8078008,wBr=8078009,OBr=8078010,NBr=8078011,xBr=8078012,TBr=8078013,BBr=8078014,MBr=8078015,DBr=8078016,kBr=8078017,PBr=8078018,LBr=8078019,UBr=8078020,FBr=8078021,QBr=8078022,HBr=8078023,GBr=81e5,qBr=8100001,VBr=8100002,hbe=8100003,JBr=819e4,zBr=8190001,KBr=8190002,$Br=8190003,YBr=8190004,WBr=99e5,XBr=9900001,ZBr=9900002,jBr=9900003,e7r=9900004,t7r=9900005,r7r=9900006;function t1t(e){return Array.isArray(e)?"%5B"+e.map(t1t).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function n7r([e,t]){return`${e}=${t1t(t)}`}function i7r(e){let t=Object.entries(e).map(n7r).join("&");return btoa(t)}var _oo={[wNr]:"Account not found at address: $address",[TNr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[xNr]:"Expected decoded account at address: $address",[NNr]:"Failed to decode account data at address: $address",[ONr]:"Accounts not found at addresses: $addresses",[SNr]:"Unable to find a viable program address bump seed.",[_Nr]:"$putativeAddress is not a base58-encoded address.",[pNr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[mNr]:"The `CryptoKey` must be an `Ed25519` public key.",[CNr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[RNr]:"Invalid seeds; point must fall off the Ed25519 curve.",[yNr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[ENr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[vNr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[bNr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[INr]:"Program address cannot end with PDA marker.",[gNr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[UOr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[kOr]:"The network has progressed past the last block for which this transaction could have been committed.",[mBr]:"Codec [$codecDescription] cannot decode empty byte arrays.",[QBr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[UBr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[RBr]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[SBr]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[vBr]:"Encoder and decoder must either both be fixed-size or variable-size.",[CBr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[bBr]:"Expected a fixed-size codec, got a variable-size one.",[TBr]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[EBr]:"Expected a variable-size codec, got a fixed-size one.",[LBr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[yBr]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[PBr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[wBr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[OBr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[MBr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[IBr]:"Expected [$codecDescription] to have $expected items, got $actual.",[xBr]:"Invalid value $value for base $base with alphabet $alphabet.",[DBr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[NBr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[BBr]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[FBr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[kBr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[HBr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[QNr]:"No random values implementation could be found.",[ixr]:"instruction requires an uninitialized account",[mxr]:"instruction tries to borrow reference for an account which is already borrowed",[yxr]:"instruction left account with an outstanding borrowed reference",[gxr]:"program other than the account's owner changed the size of the account data",[exr]:"account data too small for instruction",[_xr]:"instruction expected an executable account",[Hxr]:"An account does not have enough lamports to be rent-exempt",[qxr]:"Program arithmetic overflowed",[Qxr]:"Failed to serialize or deserialize account data: $encodedData",[Yxr]:"Builtin programs must consume compute units",[wxr]:"Cross-program invocation call depth too deep",[Mxr]:"Computational budget exceeded",[Exr]:"custom program error: #$code",[lxr]:"instruction contains duplicate accounts",[bxr]:"instruction modifications of multiply-passed account differ",[Ixr]:"executable accounts must be rent exempt",[Rxr]:"instruction changed executable accounts data",[Sxr]:"instruction changed the balance of an executable account",[hxr]:"instruction changed executable bit of an account",[uxr]:"instruction modified data of an account it does not own",[cxr]:"instruction spent from the balance of an account it does not own",[WNr]:"generic instruction error",[Jxr]:"Provided owner is not allowed",[Uxr]:"Account is immutable",[Fxr]:"Incorrect authority provided",[rxr]:"incorrect program id for instruction",[txr]:"insufficient funds for instruction",[jNr]:"invalid account data for instruction",[Gxr]:"Invalid account owner",[XNr]:"invalid program argument",[vxr]:"program returned invalid error code",[ZNr]:"invalid instruction data",[Bxr]:"Failed to reallocate account data",[Txr]:"Provided seeds do not result in a valid address",[zxr]:"Accounts data allocations exceeded the maximum allowed per transaction",[Kxr]:"Max accounts exceeded",[$xr]:"Max instruction trace length exceeded",[xxr]:"Length of the seed is too long for address generation",[Oxr]:"An account required by the instruction is missing",[nxr]:"missing required signature for instruction",[sxr]:"instruction illegally modified the program id of an account",[pxr]:"insufficient account keys for instruction",[Dxr]:"Cross-program invocation with unauthorized signer or writable account",[kxr]:"Failed to create program execution environment",[Lxr]:"Program failed to compile",[Pxr]:"Program failed to complete",[fxr]:"instruction modified data of a read-only account",[dxr]:"instruction changed the balance of a read-only account",[Nxr]:"Cross-program invocation reentrancy not allowed for this instruction",[Axr]:"instruction modified rent epoch of an account",[axr]:"sum of account balances before and after instruction do not match",[oxr]:"instruction requires an initialized account",[YNr]:"",[Cxr]:"Unsupported program id",[Vxr]:"Unsupported sysvar",[t7r]:"Invalid instruction plan kind: $kind.",[gBr]:"The provided instruction plan is empty.",[_Br]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[ABr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[r7r]:"Invalid transaction plan kind: $kind.",[pBr]:"No more instructions to pack; the message packer has completed the instruction plan.",[zNr]:"The instruction does not have any accounts.",[KNr]:"The instruction does not have any data.",[$Nr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[FOr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[POr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[ZBr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[e7r]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[XBr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[WBr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jBr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[zOr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[KOr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[YOr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[$Or]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[JOr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[nNr]:"$__serverMessage",[ANr]:"$__serverMessage",[fNr]:"$__serverMessage",[tNr]:"$__serverMessage",[ZOr]:"Epoch rewards period still active at slot $slot",[oNr]:"$__serverMessage",[aNr]:"$__serverMessage",[WOr]:"Failed to query long-term storage; please try again",[jOr]:"Minimum context slot has not been reached",[dNr]:"Node is unhealthy; behind by $numSlotsBehind slots",[sNr]:"No snapshot",[hNr]:"Transaction simulation failed",[XOr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[cNr]:"$__serverMessage",[iNr]:"Transaction history is not available from this node",[uNr]:"$__serverMessage",[rNr]:"Transaction signature length mismatch",[lNr]:"Transaction signature verification failure",[eNr]:"$__serverMessage",[HNr]:"Key pair bytes must be of length 64, got $byteLength.",[GNr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[qNr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[JNr]:"The provided private key does not match the provided public key.",[VNr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[QOr]:"Lamports value must be in the range [0, 2e64-1]",[HOr]:"`$value` cannot be parsed as a `BigInt`",[VOr]:"$message",[GOr]:"`$value` cannot be parsed as a `Number`",[LOr]:"No nonce account could be found at address `$nonceAccountAddress`",[JBr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[KBr]:"WebSocket was closed before payload could be added to the send buffer",[$Br]:"WebSocket connection closed",[YBr]:"WebSocket failed to connect",[zBr]:"Failed to obtain a subscription id from the server",[hbe]:"Could not find an API plan for RPC method: `$method`",[GBr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[VBr]:"HTTP error ($statusCode): $message",[qBr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Wxr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Xxr]:"The provided value does not implement the `KeyPairSigner` interface",[jxr]:"The provided value does not implement the `MessageModifyingSigner` interface",[eTr]:"The provided value does not implement the `MessagePartialSigner` interface",[Zxr]:"The provided value does not implement any of the `MessageSigner` interfaces",[rTr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[nTr]:"The provided value does not implement the `TransactionPartialSigner` interface",[iTr]:"The provided value does not implement the `TransactionSendingSigner` interface",[tTr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[oTr]:"More than one `TransactionSendingSigner` was identified.",[aTr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[sTr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[FNr]:"Cannot export a non-extractable key.",[MNr]:"No digest implementation could be found.",[BNr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[DNr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[kNr]:"No signature verification implementation could be found.",[PNr]:"No key generation implementation could be found.",[LNr]:"No signing implementation could be found.",[UNr]:"No key export implementation could be found.",[qOr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[KTr]:"Transaction processing left an account with an outstanding borrowed reference",[BTr]:"Account in use",[MTr]:"Account loaded twice",[DTr]:"Attempt to debit an account but found no record of a prior credit.",[eBr]:"Transaction loads an address table account that doesn't exist",[UTr]:"This transaction has already been processed",[FTr]:"Blockhash not found",[QTr]:"Loader call chain is too deep",[zTr]:"Transactions are currently disabled due to cluster maintenance",[sBr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[PTr]:"Insufficient funds for fee",[cBr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[LTr]:"This account may not be used to pay transaction fees",[GTr]:"Transaction contains an invalid account reference",[rBr]:"Transaction loads an address table account with invalid data",[nBr]:"Transaction address table lookup uses an invalid index",[tBr]:"Transaction loads an address table account with an invalid owner",[dBr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[VTr]:"This program may not be used for executing instructions",[iBr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[WTr]:"Transaction loads a writable account that cannot be written",[uBr]:"Transaction exceeded max loaded accounts data size cap",[HTr]:"Transaction requires a fee but has no signature present",[kTr]:"Attempt to load a program that does not exist",[lBr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[fBr]:"ResanitizationNeeded",[JTr]:"Transaction failed to sanitize accounts offsets correctly",[qTr]:"Transaction did not pass signature verification",[jTr]:"Transaction locked too many accounts",[hBr]:"Sum of account balances before and after transaction do not match",[TTr]:"The transaction failed with the error `$errorName`",[YTr]:"Transaction version is unsupported",[ZTr]:"Transaction would exceed account data limit within the block",[aBr]:"Transaction would exceed total account data limit",[XTr]:"Transaction would exceed max account limit within the block",[$Tr]:"Transaction would exceed max Block Cost Limit",[oBr]:"Transaction would exceed max Vote Cost Limit",[RTr]:"Attempted to sign a transaction with an address that is not a signer for it",[mTr]:"Transaction is missing an address at index: $index.",[STr]:"Transaction has no expected signers therefore it cannot be encoded",[OTr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[dTr]:"Transaction does not have a blockhash lifetime",[fTr]:"Transaction is not a durable nonce transaction",[hTr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[ATr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[gTr]:"No fee payer set in CompiledTransaction",[pTr]:"Could not find program address at index $index",[CTr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[wTr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[yTr]:"Transaction is missing a fee payer.",[bTr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[vTr]:"Transaction first instruction is not advance nonce account instruction.",[ETr]:"Transaction with no instructions cannot be durable nonce transaction.",[cTr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[uTr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[ITr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[_Tr]:"Transaction is missing signatures for addresses: $addresses.",[lTr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[NTr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[xTr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function o7r(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${i7r(t)}'`),`${r}\``}}var r1t=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=o7r(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};J();K();z();function Dj(e){return JSON.parse(a7r(e),(t,r)=>d7r(r)?u7r(r):r)}function a7r(e){let t=[],r=!1;for(let i=0;i<e.length;i++){let n=!1;if(e[i]==="\\"&&(t.push(e[i++]),n=!n),e[i]==='"'){t.push(e[i]),n||(r=!r);continue}if(!r){let o=s7r(e,i);if(o?.length){i+=o.length-1,o.match(/\.|[eE]-/)?t.push(o):t.push(c7r(o));continue}}t.push(e[i])}return t.join("")}function s7r(e,t){let r=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/;if(!e[t]?.match(/[-\d]/))return null;let i=e.slice(t).match(r);return i?i[0]:null}function c7r(e){return`{"$n":"${e}"}`}function u7r({$n:e}){if(e.match(/[eE]/)){let[t,r]=e.split(/[eE]/);return BigInt(t)*BigInt(10)**BigInt(r)}return BigInt(e)}function d7r(e){return!!e&&typeof e=="object"&&"$n"in e&&typeof e.$n=="string"}var n1t=0n;function f7r(){let e=n1t;return n1t++,e.toString()}function lF(e){return{id:f7r(),jsonrpc:"2.0",method:e.methodName,params:e.params}}function kj(e,t){return h7r(JSON.stringify(e,(r,i)=>typeof i=="bigint"?l7r(i):i,t))}function l7r(e){return{$n:`${e}`}}function h7r(e){return e.replace(/\{\s*"\$n"\s*:\s*"(-?\d+)"\s*\}/g,"$1")}function i1t(e){return A7r(e)}function A7r(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,r,i){if(r!=="then")return function(...n){let o=r.toString(),d=Reflect.get(t,o,i);if(!d)throw new r1t(hbe,{method:o,params:n});let g=d(...n);return p7r(e,g)}}})}function p7r({transport:e},t){return{async send(r){return await t.execute({signal:r?.abortSignal,transport:e})}}}function o1t(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[r,i]=t,n=i.toString();return function(...o){let d=Object.freeze({methodName:n,params:o}),g=e?.requestTransformer?e?.requestTransformer(d):d;return Object.freeze({execute:async({signal:y,transport:_})=>{let I=lF(g),N=await _({payload:I,signal:y});return e?.responseTransformer?e.responseTransformer(N,g):N}})}}})}function Pj(e){return e==null||typeof e!="object"||Array.isArray(e)?!1:"jsonrpc"in e&&e.jsonrpc==="2.0"&&"method"in e&&typeof e.method=="string"&&"params"in e}J();K();z();J();K();z();var g7r=1,_7r=2,m7r=3,y7r=4,b7r=5,E7r=6,v7r=7,R7r=8,S7r=9,a1t=10,s1t=-32700,c1t=-32603,u1t=-32602,d1t=-32601,f1t=-32600,I7r=-32019,C7r=-32018,w7r=-32017,O7r=-32016,l1t=-32015,h1t=-32014,N7r=-32013,A1t=-32012,x7r=-32011,p1t=-32010,g1t=-32009,T7r=-32008,_1t=-32007,m1t=-32006,B7r=-32005,y1t=-32004,M7r=-32003,Abe=-32002,b1t=-32001,D7r=28e5,k7r=2800001,P7r=2800002,L7r=2800003,U7r=2800004,F7r=2800005,Q7r=2800006,H7r=2800007,G7r=2800008,q7r=2800009,V7r=2800010,J7r=2800011,z7r=323e4,K7r=32300001,$7r=3230002,Y7r=3230003,W7r=3230004,X7r=361e4,Z7r=3610001,j7r=3610002,e9r=3610003,t9r=3610004,r9r=3610005,n9r=3610006,i9r=3610007,o9r=3611e3,a9r=3704e3,s9r=3704001,c9r=3704002,u9r=3704003,d9r=3704004,f9r=4128e3,l9r=4128001,h9r=4128002,E1t=4615e3,A9r=4615001,p9r=4615002,g9r=4615003,_9r=4615004,m9r=4615005,y9r=4615006,b9r=4615007,E9r=4615008,v9r=4615009,R9r=4615010,S9r=4615011,I9r=4615012,C9r=4615013,w9r=4615014,O9r=4615015,N9r=4615016,x9r=4615017,T9r=4615018,B9r=4615019,M9r=4615020,D9r=4615021,k9r=4615022,P9r=4615023,L9r=4615024,U9r=4615025,v1t=4615026,F9r=4615027,Q9r=4615028,H9r=4615029,G9r=4615030,q9r=4615031,V9r=4615032,J9r=4615033,z9r=4615034,K9r=4615035,$9r=4615036,Y9r=4615037,W9r=4615038,X9r=4615039,Z9r=4615040,j9r=4615041,eMr=4615042,tMr=4615043,rMr=4615044,nMr=4615045,iMr=4615046,oMr=4615047,aMr=4615048,sMr=4615049,cMr=4615050,uMr=4615051,dMr=4615052,fMr=4615053,lMr=4615054,hMr=5508e3,AMr=5508001,pMr=5508002,gMr=5508003,_Mr=5508004,mMr=5508005,yMr=5508006,bMr=5508007,EMr=5508008,vMr=5508009,RMr=5508010,SMr=5508011,IMr=5663e3,CMr=5663001,wMr=5663002,OMr=5663003,NMr=5663004,xMr=5663005,TMr=5663006,BMr=5663007,MMr=5663008,DMr=5663009,kMr=5663010,PMr=5663011,LMr=5663012,UMr=5663013,FMr=5663014,QMr=5663015,HMr=5663016,GMr=5663017,qMr=5663018,VMr=5663019,JMr=5663020,zMr=5663021,KMr=5663022,R1t=705e4,$Mr=7050001,YMr=7050002,WMr=7050003,XMr=7050004,ZMr=7050005,jMr=7050006,eDr=7050007,tDr=7050008,rDr=7050009,nDr=7050010,iDr=7050011,oDr=7050012,aDr=7050013,sDr=7050014,cDr=7050015,uDr=7050016,dDr=7050017,fDr=7050018,lDr=7050019,hDr=7050020,ADr=7050021,pDr=7050022,gDr=7050023,_Dr=7050024,mDr=7050025,yDr=7050026,bDr=7050027,EDr=7050028,vDr=7050029,S1t=7050030,I1t=7050031,RDr=7050032,SDr=7050033,IDr=7050034,C1t=7050035,CDr=7050036,wDr=7618e3,ODr=7618001,NDr=7618002,xDr=7618003,TDr=8078e3,BDr=8078001,MDr=8078002,DDr=8078003,kDr=8078004,PDr=8078005,LDr=8078006,UDr=8078007,FDr=8078008,QDr=8078009,HDr=8078010,GDr=8078011,qDr=8078012,VDr=8078013,JDr=8078014,zDr=8078015,KDr=8078016,$Dr=8078017,YDr=8078018,WDr=8078019,XDr=8078020,ZDr=8078021,jDr=8078022,ekr=8078023,tkr=81e5,rkr=8100001,nkr=8100002,ikr=8100003,okr=819e4,akr=8190001,skr=8190002,ckr=8190003,ukr=8190004,dkr=99e5,fkr=9900001,lkr=9900002,hkr=9900003,Akr=9900004,pkr=9900005,gkr=9900006;function w1t(e){return Array.isArray(e)?"%5B"+e.map(w1t).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function _kr([e,t]){return`${e}=${w1t(t)}`}function mkr(e){let t=Object.entries(e).map(_kr).join("&");return btoa(t)}var Moo={[z7r]:"Account not found at address: $address",[W7r]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Y7r]:"Expected decoded account at address: $address",[$7r]:"Failed to decode account data at address: $address",[K7r]:"Accounts not found at addresses: $addresses",[q7r]:"Unable to find a viable program address bump seed.",[P7r]:"$putativeAddress is not a base58-encoded address.",[D7r]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[L7r]:"The `CryptoKey` must be an `Ed25519` public key.",[J7r]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[G7r]:"Invalid seeds; point must fall off the Ed25519 curve.",[U7r]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Q7r]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[H7r]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[F7r]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[V7r]:"Program address cannot end with PDA marker.",[k7r]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[y7r]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[g7r]:"The network has progressed past the last block for which this transaction could have been committed.",[TDr]:"Codec [$codecDescription] cannot decode empty byte arrays.",[jDr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[XDr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[PDr]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[LDr]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[kDr]:"Encoder and decoder must either both be fixed-size or variable-size.",[FDr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[MDr]:"Expected a fixed-size codec, got a variable-size one.",[VDr]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[DDr]:"Expected a variable-size codec, got a fixed-size one.",[WDr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[BDr]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[YDr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[QDr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[HDr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[zDr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[UDr]:"Expected [$codecDescription] to have $expected items, got $actual.",[qDr]:"Invalid value $value for base $base with alphabet $alphabet.",[KDr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[GDr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[JDr]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[ZDr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[$Dr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ekr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[o9r]:"No random values implementation could be found.",[v9r]:"instruction requires an uninitialized account",[P9r]:"instruction tries to borrow reference for an account which is already borrowed",[L9r]:"instruction left account with an outstanding borrowed reference",[D9r]:"program other than the account's owner changed the size of the account data",[m9r]:"account data too small for instruction",[k9r]:"instruction expected an executable account",[iMr]:"An account does not have enough lamports to be rent-exempt",[aMr]:"Program arithmetic overflowed",[nMr]:"Failed to serialize or deserialize account data: $encodedData",[lMr]:"Builtin programs must consume compute units",[V9r]:"Cross-program invocation call depth too deep",[W9r]:"Computational budget exceeded",[v1t]:"custom program error: #$code",[x9r]:"instruction contains duplicate accounts",[U9r]:"instruction modifications of multiply-passed account differ",[G9r]:"executable accounts must be rent exempt",[Q9r]:"instruction changed executable accounts data",[H9r]:"instruction changed the balance of an executable account",[T9r]:"instruction changed executable bit of an account",[w9r]:"instruction modified data of an account it does not own",[C9r]:"instruction spent from the balance of an account it does not own",[A9r]:"generic instruction error",[cMr]:"Provided owner is not allowed",[tMr]:"Account is immutable",[rMr]:"Incorrect authority provided",[b9r]:"incorrect program id for instruction",[y9r]:"insufficient funds for instruction",[_9r]:"invalid account data for instruction",[oMr]:"Invalid account owner",[p9r]:"invalid program argument",[F9r]:"program returned invalid error code",[g9r]:"invalid instruction data",[Y9r]:"Failed to reallocate account data",[$9r]:"Provided seeds do not result in a valid address",[uMr]:"Accounts data allocations exceeded the maximum allowed per transaction",[dMr]:"Max accounts exceeded",[fMr]:"Max instruction trace length exceeded",[K9r]:"Length of the seed is too long for address generation",[J9r]:"An account required by the instruction is missing",[E9r]:"missing required signature for instruction",[I9r]:"instruction illegally modified the program id of an account",[M9r]:"insufficient account keys for instruction",[X9r]:"Cross-program invocation with unauthorized signer or writable account",[Z9r]:"Failed to create program execution environment",[eMr]:"Program failed to compile",[j9r]:"Program failed to complete",[N9r]:"instruction modified data of a read-only account",[O9r]:"instruction changed the balance of a read-only account",[z9r]:"Cross-program invocation reentrancy not allowed for this instruction",[B9r]:"instruction modified rent epoch of an account",[S9r]:"sum of account balances before and after instruction do not match",[R9r]:"instruction requires an initialized account",[E1t]:"",[q9r]:"Unsupported program id",[sMr]:"Unsupported sysvar",[pkr]:"Invalid instruction plan kind: $kind.",[NDr]:"The provided instruction plan is empty.",[xDr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[wDr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[gkr]:"Invalid transaction plan kind: $kind.",[ODr]:"No more instructions to pack; the message packer has completed the instruction plan.",[f9r]:"The instruction does not have any accounts.",[l9r]:"The instruction does not have any data.",[h9r]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[b7r]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[_7r]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[lkr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Akr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[fkr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[dkr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[hkr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[c1t]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[u1t]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[f1t]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[d1t]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[s1t]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[A1t]:"$__serverMessage",[b1t]:"$__serverMessage",[y1t]:"$__serverMessage",[h1t]:"$__serverMessage",[w7r]:"Epoch rewards period still active at slot $slot",[p1t]:"$__serverMessage",[g1t]:"$__serverMessage",[I7r]:"Failed to query long-term storage; please try again",[O7r]:"Minimum context slot has not been reached",[B7r]:"Node is unhealthy; behind by $numSlotsBehind slots",[T7r]:"No snapshot",[Abe]:"Transaction simulation failed",[C7r]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[_1t]:"$__serverMessage",[x7r]:"Transaction history is not available from this node",[m1t]:"$__serverMessage",[N7r]:"Transaction signature length mismatch",[M7r]:"Transaction signature verification failure",[l1t]:"$__serverMessage",[a9r]:"Key pair bytes must be of length 64, got $byteLength.",[s9r]:"Expected private key bytes with length 32. Actual length: $actualLength.",[c9r]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[d9r]:"The provided private key does not match the provided public key.",[u9r]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[E7r]:"Lamports value must be in the range [0, 2e64-1]",[v7r]:"`$value` cannot be parsed as a `BigInt`",[a1t]:"$message",[R7r]:"`$value` cannot be parsed as a `Number`",[m7r]:"No nonce account could be found at address `$nonceAccountAddress`",[okr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[skr]:"WebSocket was closed before payload could be added to the send buffer",[ckr]:"WebSocket connection closed",[ukr]:"WebSocket failed to connect",[akr]:"Failed to obtain a subscription id from the server",[ikr]:"Could not find an API plan for RPC method: `$method`",[tkr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[nkr]:"HTTP error ($statusCode): $message",[rkr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[hMr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[AMr]:"The provided value does not implement the `KeyPairSigner` interface",[gMr]:"The provided value does not implement the `MessageModifyingSigner` interface",[_Mr]:"The provided value does not implement the `MessagePartialSigner` interface",[pMr]:"The provided value does not implement any of the `MessageSigner` interfaces",[yMr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[bMr]:"The provided value does not implement the `TransactionPartialSigner` interface",[EMr]:"The provided value does not implement the `TransactionSendingSigner` interface",[mMr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[vMr]:"More than one `TransactionSendingSigner` was identified.",[RMr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[SMr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[i9r]:"Cannot export a non-extractable key.",[Z7r]:"No digest implementation could be found.",[X7r]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[j7r]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[e9r]:"No signature verification implementation could be found.",[t9r]:"No key generation implementation could be found.",[r9r]:"No signing implementation could be found.",[n9r]:"No key export implementation could be found.",[S7r]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[uDr]:"Transaction processing left an account with an outstanding borrowed reference",[$Mr]:"Account in use",[YMr]:"Account loaded twice",[WMr]:"Attempt to debit an account but found no record of a prior credit.",[gDr]:"Transaction loads an address table account that doesn't exist",[eDr]:"This transaction has already been processed",[tDr]:"Blockhash not found",[rDr]:"Loader call chain is too deep",[cDr]:"Transactions are currently disabled due to cluster maintenance",[S1t]:"Transaction contains a duplicate instruction ($index) that is not allowed",[ZMr]:"Insufficient funds for fee",[I1t]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[jMr]:"This account may not be used to pay transaction fees",[iDr]:"Transaction contains an invalid account reference",[mDr]:"Transaction loads an address table account with invalid data",[yDr]:"Transaction address table lookup uses an invalid index",[_Dr]:"Transaction loads an address table account with an invalid owner",[SDr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[aDr]:"This program may not be used for executing instructions",[bDr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[lDr]:"Transaction loads a writable account that cannot be written",[RDr]:"Transaction exceeded max loaded accounts data size cap",[nDr]:"Transaction requires a fee but has no signature present",[XMr]:"Attempt to load a program that does not exist",[C1t]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[IDr]:"ResanitizationNeeded",[sDr]:"Transaction failed to sanitize accounts offsets correctly",[oDr]:"Transaction did not pass signature verification",[pDr]:"Transaction locked too many accounts",[CDr]:"Sum of account balances before and after transaction do not match",[R1t]:"The transaction failed with the error `$errorName`",[fDr]:"Transaction version is unsupported",[ADr]:"Transaction would exceed account data limit within the block",[vDr]:"Transaction would exceed total account data limit",[hDr]:"Transaction would exceed max account limit within the block",[dDr]:"Transaction would exceed max Block Cost Limit",[EDr]:"Transaction would exceed max Vote Cost Limit",[QMr]:"Attempted to sign a transaction with an address that is not a signer for it",[kMr]:"Transaction is missing an address at index: $index.",[HMr]:"Transaction has no expected signers therefore it cannot be encoded",[JMr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[wMr]:"Transaction does not have a blockhash lifetime",[OMr]:"Transaction is not a durable nonce transaction",[xMr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[TMr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[MMr]:"No fee payer set in CompiledTransaction",[BMr]:"Could not find program address at index $index",[qMr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[VMr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[PMr]:"Transaction is missing a fee payer.",[LMr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[FMr]:"Transaction first instruction is not advance nonce account instruction.",[UMr]:"Transaction with no instructions cannot be durable nonce transaction.",[IMr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[CMr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[GMr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[DMr]:"Transaction is missing signatures for addresses: $addresses.",[NMr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[zMr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[KMr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function ykr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${mkr(t)}'`),`${r}\``}}var Lj=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=ykr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function O1t(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e)}function N1t({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:r,rpcEnumError:i},n){let o,d;typeof i=="string"?o=i:(o=Object.keys(i)[0],d=i[o]);let g=r.indexOf(o),y=e+g,_=t(y,o,d),I=new Lj(y,_);return O1t(I,n),I}var bkr=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function x1t(e,t){let r=Number(e);return N1t({errorCodeBaseOffset:4615001,getErrorContext(i,n,o){return i===E1t?{errorName:n,index:r,...o!==void 0?{instructionErrorContext:o}:null}:i===v1t?{code:Number(o),index:r}:{index:r}},orderedErrorNames:bkr,rpcEnumError:t},x1t)}var Ekr=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function T1t(e){return typeof e=="object"&&"InstructionError"in e?x1t(...e.InstructionError):N1t({errorCodeBaseOffset:7050001,getErrorContext(t,r,i){if(t===R1t)return{errorName:r,...i!==void 0?{transactionErrorContext:i}:null};if(t===S1t)return{index:Number(i)};if(t===I1t||t===C1t)return{accountIndex:Number(i.account_index)}},orderedErrorNames:Ekr,rpcEnumError:e},T1t)}function pbe(e){let t;if(vkr(e)){let{code:r,data:i,message:n}=e,o=Number(r);if(o===Abe){let{err:d,...g}=i,y=d?{cause:T1t(d)}:null;t=new Lj(Abe,{...g,...y})}else{let d;switch(o){case c1t:case u1t:case f1t:case d1t:case s1t:case A1t:case b1t:case y1t:case h1t:case p1t:case g1t:case _1t:case m1t:case l1t:d={__serverMessage:n};break;default:typeof i=="object"&&!Array.isArray(i)&&(d=i)}t=new Lj(o,d)}}else{let r=typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:"Malformed JSON-RPC error with no message attribute";t=new Lj(a1t,{error:e,message:r})}return O1t(t,pbe),t}function vkr(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e&&(typeof e.code=="number"||typeof e.code=="bigint")&&typeof e.message=="string"}function Rkr(e){return typeof e=="bigint"?Number(e):e}var oi={};function B1t(e){return function t(r,i){if(Array.isArray(r))return r.map((n,o)=>{let d={...i,keyPath:[...i.keyPath,o]};return t(n,d)});if(typeof r=="object"&&r!==null){let n={};for(let o in r){if(!Object.prototype.hasOwnProperty.call(r,o))continue;let d={...i,keyPath:[...i.keyPath,o]};n[o]=t(r[o],d)}return n}else return e.reduce((n,o)=>o(n,i),r)}}function M1t(e,t){return r=>{let i=B1t(e);return Object.freeze({...r,params:i(r.params,t)})}}function Skr(e,t){return r=>B1t(e)(r,t)}function Ikr(){return M1t([Rkr],{keyPath:[]})}function Ckr({commitmentPropertyName:e,params:t,optionsObjectPositionInParams:r,overrideCommitment:i}){let n=t[r];if(n===void 0||n&&typeof n=="object"&&!Array.isArray(n)){if(n&&e in n){if(!n[e]||n[e]==="finalized"){let o=[...t],{[e]:d,...g}=n;return Object.keys(g).length>0?o[r]=g:r===o.length-1?o.length--:o[r]=void 0,o}}else if(i!=="finalized"){let o=[...t];return o[r]={...n,[e]:i},o}}return t}function wkr({defaultCommitment:e,optionsObjectPositionByMethod:t}){return r=>{let{params:i,methodName:n}=r;if(!Array.isArray(i))return r;let o=t[n];return o==null?r:Object.freeze({methodName:n,params:Ckr({commitmentPropertyName:n==="sendTransaction"?"preflightCommitment":"commitment",optionsObjectPositionInParams:o,overrideCommitment:e,params:i})})}}function Okr(e){return(t,{keyPath:r})=>(typeof t=="bigint"&&e&&(t>Number.MAX_SAFE_INTEGER||t<-Number.MAX_SAFE_INTEGER)&&e(r,t),t)}function Nkr(e){return t=>M1t([Okr((...i)=>e(t,...i))],{keyPath:[]})(t)}var xkr={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function Uj(e){let t=e?.onIntegerOverflow;return r=>n1(r,t?Nkr(t):i=>i,Ikr(),wkr({defaultCommitment:e?.defaultCommitment,optionsObjectPositionByMethod:xkr}))}function Tkr(e){return function(r,{keyPath:i}){return typeof r=="number"&&Number.isInteger(r)||typeof r=="bigint"?Bkr(i,e)?Number(r):BigInt(r):r}}function Bkr(e,t){return t.some(r=>{if(r.length!==e.length)return!1;for(let i=e.length-1;i>=0;i--){let n=e[i],o=r[i];if(o!==n&&(o!==oi||typeof n!="number"))return!1}return!0})}function D1t(e){return Skr([Tkr(e)],{keyPath:[]})}function Mkr(){return e=>e.result}function Dkr(){return e=>{let t=e;if("error"in t)throw pbe(t.error);return t}}function k1t(e){return(t,r)=>{let i=r.methodName,n=e?.allowedNumericKeyPaths&&i?e.allowedNumericKeyPaths[i]:void 0;return n1(t,o=>Dkr()(o,r),o=>Mkr()(o,r),o=>D1t(n??[])(o,r))}}function P1t(e){return(t,r)=>{let i=r.methodName,n=e?.allowedNumericKeyPaths&&i?e.allowedNumericKeyPaths[i]:void 0;return n1(t,o=>D1t(n??[])(o,r))}}var Fj=[["data","parsed","info","tokenAmount","decimals"],["data","parsed","info","tokenAmount","uiAmount"],["data","parsed","info","rentExemptReserve","decimals"],["data","parsed","info","rentExemptReserve","uiAmount"],["data","parsed","info","delegatedAmount","decimals"],["data","parsed","info","delegatedAmount","uiAmount"],["data","parsed","info","extensions",oi,"state","olderTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",oi,"state","newerTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",oi,"state","preUpdateAverageRate"],["data","parsed","info","extensions",oi,"state","currentRate"]],J3=[...Fj,["data","parsed","info","lastExtendedSlotStartIndex"],["data","parsed","info","slashPenalty"],["data","parsed","info","warmupCooldownRate"],["data","parsed","info","decimals"],["data","parsed","info","numRequiredSigners"],["data","parsed","info","numValidSigners"],["data","parsed","info","stake","delegation","warmupCooldownRate"],["data","parsed","info","exemptionThreshold"],["data","parsed","info","burnPercent"],["data","parsed","info","commission"],["data","parsed","info","votes",oi,"confirmationCount"]],Qj=[["index"],["instructions",oi,"accounts",oi],["instructions",oi,"programIdIndex"],["instructions",oi,"stackHeight"]],gbe=[["addressTableLookups",oi,"writableIndexes",oi],["addressTableLookups",oi,"readonlyIndexes",oi],["header","numReadonlySignedAccounts"],["header","numReadonlyUnsignedAccounts"],["header","numRequiredSignatures"],["instructions",oi,"accounts",oi],["instructions",oi,"programIdIndex"],["instructions",oi,"stackHeight"]];function L1t(e){return o1t({requestTransformer:Uj(e),responseTransformer:k1t({allowedNumericKeyPaths:kkr()})})}var _be;function kkr(){return _be||(_be={getAccountInfo:J3.map(e=>["value",...e]),getBlock:[["transactions",oi,"meta","preTokenBalances",oi,"accountIndex"],["transactions",oi,"meta","preTokenBalances",oi,"uiTokenAmount","decimals"],["transactions",oi,"meta","postTokenBalances",oi,"accountIndex"],["transactions",oi,"meta","postTokenBalances",oi,"uiTokenAmount","decimals"],["transactions",oi,"meta","rewards",oi,"commission"],...Qj.map(e=>["transactions",oi,"meta","innerInstructions",oi,...e]),...gbe.map(e=>["transactions",oi,"transaction","message",...e]),["rewards",oi,"commission"]],getClusterNodes:[[oi,"featureSet"],[oi,"shredVersion"]],getInflationGovernor:[["initial"],["foundation"],["foundationTerm"],["taper"],["terminal"]],getInflationRate:[["foundation"],["total"],["validator"]],getInflationReward:[[oi,"commission"]],getMultipleAccounts:J3.map(e=>["value",oi,...e]),getProgramAccounts:J3.flatMap(e=>[["value",oi,"account",...e],[oi,"account",...e]]),getRecentPerformanceSamples:[[oi,"samplePeriodSecs"]],getTokenAccountBalance:[["value","decimals"],["value","uiAmount"]],getTokenAccountsByDelegate:Fj.map(e=>["value",oi,"account",...e]),getTokenAccountsByOwner:Fj.map(e=>["value",oi,"account",...e]),getTokenLargestAccounts:[["value",oi,"decimals"],["value",oi,"uiAmount"]],getTokenSupply:[["value","decimals"],["value","uiAmount"]],getTransaction:[["meta","preTokenBalances",oi,"accountIndex"],["meta","preTokenBalances",oi,"uiTokenAmount","decimals"],["meta","postTokenBalances",oi,"accountIndex"],["meta","postTokenBalances",oi,"uiTokenAmount","decimals"],["meta","rewards",oi,"commission"],...Qj.map(e=>["meta","innerInstructions",oi,...e]),...gbe.map(e=>["transaction","message",...e])],getVersion:[["feature-set"]],getVoteAccounts:[["current",oi,"commission"],["delinquent",oi,"commission"]],simulateTransaction:[["value","loadedAccountsDataSize"],...J3.map(e=>["value","accounts",oi,...e]),...Qj.map(e=>["value","innerInstructions",oi,...e])]}),_be}J();K();z();var Pkr=1,Lkr=2,Ukr=3,Fkr=4,Qkr=5,Hkr=6,Gkr=7,qkr=8,Vkr=9,Jkr=10,zkr=-32700,Kkr=-32603,$kr=-32602,Ykr=-32601,Wkr=-32600,Xkr=-32019,Zkr=-32018,jkr=-32017,ePr=-32016,tPr=-32015,rPr=-32014,nPr=-32013,iPr=-32012,oPr=-32011,aPr=-32010,sPr=-32009,cPr=-32008,uPr=-32007,dPr=-32006,fPr=-32005,lPr=-32004,hPr=-32003,APr=-32002,pPr=-32001,gPr=28e5,_Pr=2800001,mPr=2800002,yPr=2800003,bPr=2800004,EPr=2800005,vPr=2800006,RPr=2800007,SPr=2800008,IPr=2800009,CPr=2800010,wPr=2800011,OPr=323e4,NPr=32300001,xPr=3230002,TPr=3230003,BPr=3230004,MPr=361e4,DPr=3610001,kPr=3610002,PPr=3610003,LPr=3610004,UPr=3610005,FPr=3610006,QPr=3610007,HPr=3611e3,GPr=3704e3,qPr=3704001,VPr=3704002,JPr=3704003,zPr=3704004,KPr=4128e3,$Pr=4128001,YPr=4128002,WPr=4615e3,XPr=4615001,ZPr=4615002,jPr=4615003,eLr=4615004,tLr=4615005,rLr=4615006,nLr=4615007,iLr=4615008,oLr=4615009,aLr=4615010,sLr=4615011,cLr=4615012,uLr=4615013,dLr=4615014,fLr=4615015,lLr=4615016,hLr=4615017,ALr=4615018,pLr=4615019,gLr=4615020,_Lr=4615021,mLr=4615022,yLr=4615023,bLr=4615024,ELr=4615025,vLr=4615026,RLr=4615027,SLr=4615028,ILr=4615029,CLr=4615030,wLr=4615031,OLr=4615032,NLr=4615033,xLr=4615034,TLr=4615035,BLr=4615036,MLr=4615037,DLr=4615038,kLr=4615039,PLr=4615040,LLr=4615041,ULr=4615042,FLr=4615043,QLr=4615044,HLr=4615045,GLr=4615046,qLr=4615047,VLr=4615048,JLr=4615049,zLr=4615050,KLr=4615051,$Lr=4615052,YLr=4615053,WLr=4615054,XLr=5508e3,ZLr=5508001,jLr=5508002,eUr=5508003,tUr=5508004,rUr=5508005,nUr=5508006,iUr=5508007,oUr=5508008,aUr=5508009,sUr=5508010,cUr=5508011,uUr=5663e3,dUr=5663001,fUr=5663002,lUr=5663003,hUr=5663004,AUr=5663005,pUr=5663006,gUr=5663007,_Ur=5663008,mUr=5663009,yUr=5663010,bUr=5663011,EUr=5663012,vUr=5663013,RUr=5663014,SUr=5663015,IUr=5663016,CUr=5663017,wUr=5663018,OUr=5663019,NUr=5663020,xUr=5663021,TUr=5663022,BUr=705e4,MUr=7050001,DUr=7050002,kUr=7050003,PUr=7050004,LUr=7050005,UUr=7050006,FUr=7050007,QUr=7050008,HUr=7050009,GUr=7050010,qUr=7050011,VUr=7050012,JUr=7050013,zUr=7050014,KUr=7050015,$Ur=7050016,YUr=7050017,WUr=7050018,XUr=7050019,ZUr=7050020,jUr=7050021,eFr=7050022,tFr=7050023,rFr=7050024,nFr=7050025,iFr=7050026,oFr=7050027,aFr=7050028,sFr=7050029,cFr=7050030,uFr=7050031,dFr=7050032,fFr=7050033,lFr=7050034,hFr=7050035,AFr=7050036,pFr=7618e3,gFr=7618001,_Fr=7618002,mFr=7618003,yFr=8078e3,bFr=8078001,EFr=8078002,vFr=8078003,RFr=8078004,SFr=8078005,IFr=8078006,CFr=8078007,wFr=8078008,OFr=8078009,NFr=8078010,xFr=8078011,TFr=8078012,BFr=8078013,MFr=8078014,DFr=8078015,kFr=8078016,PFr=8078017,LFr=8078018,UFr=8078019,FFr=8078020,QFr=8078021,HFr=8078022,GFr=8078023,mbe=81e5,qFr=8100001,VFr=8100002,JFr=8100003,zFr=819e4,KFr=8190001,$Fr=8190002,YFr=8190003,WFr=8190004,XFr=99e5,ZFr=9900001,jFr=9900002,eQr=9900003,tQr=9900004,rQr=9900005,nQr=9900006;function U1t(e){return Array.isArray(e)?"%5B"+e.map(U1t).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function iQr([e,t]){return`${e}=${U1t(t)}`}function oQr(e){let t=Object.entries(e).map(iQr).join("&");return btoa(t)}var Xoo={[OPr]:"Account not found at address: $address",[BPr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[TPr]:"Expected decoded account at address: $address",[xPr]:"Failed to decode account data at address: $address",[NPr]:"Accounts not found at addresses: $addresses",[IPr]:"Unable to find a viable program address bump seed.",[mPr]:"$putativeAddress is not a base58-encoded address.",[gPr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[yPr]:"The `CryptoKey` must be an `Ed25519` public key.",[wPr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[SPr]:"Invalid seeds; point must fall off the Ed25519 curve.",[bPr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[vPr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[RPr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[EPr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[CPr]:"Program address cannot end with PDA marker.",[_Pr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Fkr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Pkr]:"The network has progressed past the last block for which this transaction could have been committed.",[yFr]:"Codec [$codecDescription] cannot decode empty byte arrays.",[HFr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[FFr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[SFr]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[IFr]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[RFr]:"Encoder and decoder must either both be fixed-size or variable-size.",[wFr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[EFr]:"Expected a fixed-size codec, got a variable-size one.",[BFr]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[vFr]:"Expected a variable-size codec, got a fixed-size one.",[UFr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[bFr]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[LFr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[OFr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[NFr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[DFr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[CFr]:"Expected [$codecDescription] to have $expected items, got $actual.",[TFr]:"Invalid value $value for base $base with alphabet $alphabet.",[kFr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[xFr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[MFr]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[QFr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[PFr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[GFr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[HPr]:"No random values implementation could be found.",[oLr]:"instruction requires an uninitialized account",[yLr]:"instruction tries to borrow reference for an account which is already borrowed",[bLr]:"instruction left account with an outstanding borrowed reference",[_Lr]:"program other than the account's owner changed the size of the account data",[tLr]:"account data too small for instruction",[mLr]:"instruction expected an executable account",[GLr]:"An account does not have enough lamports to be rent-exempt",[VLr]:"Program arithmetic overflowed",[HLr]:"Failed to serialize or deserialize account data: $encodedData",[WLr]:"Builtin programs must consume compute units",[OLr]:"Cross-program invocation call depth too deep",[DLr]:"Computational budget exceeded",[vLr]:"custom program error: #$code",[hLr]:"instruction contains duplicate accounts",[ELr]:"instruction modifications of multiply-passed account differ",[CLr]:"executable accounts must be rent exempt",[SLr]:"instruction changed executable accounts data",[ILr]:"instruction changed the balance of an executable account",[ALr]:"instruction changed executable bit of an account",[dLr]:"instruction modified data of an account it does not own",[uLr]:"instruction spent from the balance of an account it does not own",[XPr]:"generic instruction error",[zLr]:"Provided owner is not allowed",[FLr]:"Account is immutable",[QLr]:"Incorrect authority provided",[nLr]:"incorrect program id for instruction",[rLr]:"insufficient funds for instruction",[eLr]:"invalid account data for instruction",[qLr]:"Invalid account owner",[ZPr]:"invalid program argument",[RLr]:"program returned invalid error code",[jPr]:"invalid instruction data",[MLr]:"Failed to reallocate account data",[BLr]:"Provided seeds do not result in a valid address",[KLr]:"Accounts data allocations exceeded the maximum allowed per transaction",[$Lr]:"Max accounts exceeded",[YLr]:"Max instruction trace length exceeded",[TLr]:"Length of the seed is too long for address generation",[NLr]:"An account required by the instruction is missing",[iLr]:"missing required signature for instruction",[cLr]:"instruction illegally modified the program id of an account",[gLr]:"insufficient account keys for instruction",[kLr]:"Cross-program invocation with unauthorized signer or writable account",[PLr]:"Failed to create program execution environment",[ULr]:"Program failed to compile",[LLr]:"Program failed to complete",[lLr]:"instruction modified data of a read-only account",[fLr]:"instruction changed the balance of a read-only account",[xLr]:"Cross-program invocation reentrancy not allowed for this instruction",[pLr]:"instruction modified rent epoch of an account",[sLr]:"sum of account balances before and after instruction do not match",[aLr]:"instruction requires an initialized account",[WPr]:"",[wLr]:"Unsupported program id",[JLr]:"Unsupported sysvar",[rQr]:"Invalid instruction plan kind: $kind.",[_Fr]:"The provided instruction plan is empty.",[mFr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[pFr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[nQr]:"Invalid transaction plan kind: $kind.",[gFr]:"No more instructions to pack; the message packer has completed the instruction plan.",[KPr]:"The instruction does not have any accounts.",[$Pr]:"The instruction does not have any data.",[YPr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Qkr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Lkr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[jFr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[tQr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[ZFr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[XFr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[eQr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Kkr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[$kr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Wkr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Ykr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[zkr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[iPr]:"$__serverMessage",[pPr]:"$__serverMessage",[lPr]:"$__serverMessage",[rPr]:"$__serverMessage",[jkr]:"Epoch rewards period still active at slot $slot",[aPr]:"$__serverMessage",[sPr]:"$__serverMessage",[Xkr]:"Failed to query long-term storage; please try again",[ePr]:"Minimum context slot has not been reached",[fPr]:"Node is unhealthy; behind by $numSlotsBehind slots",[cPr]:"No snapshot",[APr]:"Transaction simulation failed",[Zkr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[uPr]:"$__serverMessage",[oPr]:"Transaction history is not available from this node",[dPr]:"$__serverMessage",[nPr]:"Transaction signature length mismatch",[hPr]:"Transaction signature verification failure",[tPr]:"$__serverMessage",[GPr]:"Key pair bytes must be of length 64, got $byteLength.",[qPr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[VPr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[zPr]:"The provided private key does not match the provided public key.",[JPr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Hkr]:"Lamports value must be in the range [0, 2e64-1]",[Gkr]:"`$value` cannot be parsed as a `BigInt`",[Jkr]:"$message",[qkr]:"`$value` cannot be parsed as a `Number`",[Ukr]:"No nonce account could be found at address `$nonceAccountAddress`",[zFr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[$Fr]:"WebSocket was closed before payload could be added to the send buffer",[YFr]:"WebSocket connection closed",[WFr]:"WebSocket failed to connect",[KFr]:"Failed to obtain a subscription id from the server",[JFr]:"Could not find an API plan for RPC method: `$method`",[mbe]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[VFr]:"HTTP error ($statusCode): $message",[qFr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[XLr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[ZLr]:"The provided value does not implement the `KeyPairSigner` interface",[eUr]:"The provided value does not implement the `MessageModifyingSigner` interface",[tUr]:"The provided value does not implement the `MessagePartialSigner` interface",[jLr]:"The provided value does not implement any of the `MessageSigner` interfaces",[nUr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[iUr]:"The provided value does not implement the `TransactionPartialSigner` interface",[oUr]:"The provided value does not implement the `TransactionSendingSigner` interface",[rUr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[aUr]:"More than one `TransactionSendingSigner` was identified.",[sUr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[cUr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[QPr]:"Cannot export a non-extractable key.",[DPr]:"No digest implementation could be found.",[MPr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[kPr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[PPr]:"No signature verification implementation could be found.",[LPr]:"No key generation implementation could be found.",[UPr]:"No signing implementation could be found.",[FPr]:"No key export implementation could be found.",[Vkr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[$Ur]:"Transaction processing left an account with an outstanding borrowed reference",[MUr]:"Account in use",[DUr]:"Account loaded twice",[kUr]:"Attempt to debit an account but found no record of a prior credit.",[tFr]:"Transaction loads an address table account that doesn't exist",[FUr]:"This transaction has already been processed",[QUr]:"Blockhash not found",[HUr]:"Loader call chain is too deep",[KUr]:"Transactions are currently disabled due to cluster maintenance",[cFr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[LUr]:"Insufficient funds for fee",[uFr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[UUr]:"This account may not be used to pay transaction fees",[qUr]:"Transaction contains an invalid account reference",[nFr]:"Transaction loads an address table account with invalid data",[iFr]:"Transaction address table lookup uses an invalid index",[rFr]:"Transaction loads an address table account with an invalid owner",[fFr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[JUr]:"This program may not be used for executing instructions",[oFr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[XUr]:"Transaction loads a writable account that cannot be written",[dFr]:"Transaction exceeded max loaded accounts data size cap",[GUr]:"Transaction requires a fee but has no signature present",[PUr]:"Attempt to load a program that does not exist",[hFr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[lFr]:"ResanitizationNeeded",[zUr]:"Transaction failed to sanitize accounts offsets correctly",[VUr]:"Transaction did not pass signature verification",[eFr]:"Transaction locked too many accounts",[AFr]:"Sum of account balances before and after transaction do not match",[BUr]:"The transaction failed with the error `$errorName`",[WUr]:"Transaction version is unsupported",[jUr]:"Transaction would exceed account data limit within the block",[sFr]:"Transaction would exceed total account data limit",[ZUr]:"Transaction would exceed max account limit within the block",[YUr]:"Transaction would exceed max Block Cost Limit",[aFr]:"Transaction would exceed max Vote Cost Limit",[SUr]:"Attempted to sign a transaction with an address that is not a signer for it",[yUr]:"Transaction is missing an address at index: $index.",[IUr]:"Transaction has no expected signers therefore it cannot be encoded",[NUr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[fUr]:"Transaction does not have a blockhash lifetime",[lUr]:"Transaction is not a durable nonce transaction",[AUr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[pUr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[_Ur]:"No fee payer set in CompiledTransaction",[gUr]:"Could not find program address at index $index",[wUr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[OUr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[bUr]:"Transaction is missing a fee payer.",[EUr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[RUr]:"Transaction first instruction is not advance nonce account instruction.",[vUr]:"Transaction with no instructions cannot be durable nonce transaction.",[uUr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[dUr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[CUr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[mUr]:"Transaction is missing signatures for addresses: $addresses.",[hUr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[xUr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[TUr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function aQr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${oQr(t)}'`),`${r}\``}}var F1t=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=aQr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function Q1t(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e)}J();K();z();J();K();z();var sQr=1,cQr=2,uQr=3,dQr=4,fQr=5,lQr=6,hQr=7,AQr=8,pQr=9,gQr=10,_Qr=-32700,mQr=-32603,yQr=-32602,bQr=-32601,EQr=-32600,vQr=-32019,RQr=-32018,SQr=-32017,IQr=-32016,CQr=-32015,wQr=-32014,OQr=-32013,NQr=-32012,xQr=-32011,TQr=-32010,BQr=-32009,MQr=-32008,DQr=-32007,kQr=-32006,PQr=-32005,LQr=-32004,UQr=-32003,FQr=-32002,QQr=-32001,HQr=28e5,GQr=2800001,qQr=2800002,VQr=2800003,JQr=2800004,zQr=2800005,KQr=2800006,$Qr=2800007,YQr=2800008,WQr=2800009,XQr=2800010,ZQr=2800011,jQr=323e4,eHr=32300001,tHr=3230002,rHr=3230003,nHr=3230004,iHr=361e4,oHr=3610001,aHr=3610002,sHr=3610003,cHr=3610004,uHr=3610005,dHr=3610006,fHr=3610007,lHr=3611e3,hHr=3704e3,AHr=3704001,pHr=3704002,gHr=3704003,_Hr=3704004,mHr=4128e3,yHr=4128001,bHr=4128002,EHr=4615e3,vHr=4615001,RHr=4615002,SHr=4615003,IHr=4615004,CHr=4615005,wHr=4615006,OHr=4615007,NHr=4615008,xHr=4615009,THr=4615010,BHr=4615011,MHr=4615012,DHr=4615013,kHr=4615014,PHr=4615015,LHr=4615016,UHr=4615017,FHr=4615018,QHr=4615019,HHr=4615020,GHr=4615021,qHr=4615022,VHr=4615023,JHr=4615024,zHr=4615025,KHr=4615026,$Hr=4615027,YHr=4615028,WHr=4615029,XHr=4615030,ZHr=4615031,jHr=4615032,eGr=4615033,tGr=4615034,rGr=4615035,nGr=4615036,iGr=4615037,oGr=4615038,aGr=4615039,sGr=4615040,cGr=4615041,uGr=4615042,dGr=4615043,fGr=4615044,lGr=4615045,hGr=4615046,AGr=4615047,pGr=4615048,gGr=4615049,_Gr=4615050,mGr=4615051,yGr=4615052,bGr=4615053,EGr=4615054,vGr=5508e3,RGr=5508001,SGr=5508002,IGr=5508003,CGr=5508004,wGr=5508005,OGr=5508006,NGr=5508007,xGr=5508008,TGr=5508009,BGr=5508010,MGr=5508011,DGr=5663e3,kGr=5663001,PGr=5663002,LGr=5663003,UGr=5663004,FGr=5663005,QGr=5663006,HGr=5663007,GGr=5663008,qGr=5663009,VGr=5663010,JGr=5663011,zGr=5663012,KGr=5663013,$Gr=5663014,YGr=5663015,WGr=5663016,XGr=5663017,ZGr=5663018,jGr=5663019,eqr=5663020,tqr=5663021,rqr=5663022,nqr=705e4,iqr=7050001,oqr=7050002,aqr=7050003,sqr=7050004,cqr=7050005,uqr=7050006,dqr=7050007,fqr=7050008,lqr=7050009,hqr=7050010,Aqr=7050011,pqr=7050012,gqr=7050013,_qr=7050014,mqr=7050015,yqr=7050016,bqr=7050017,Eqr=7050018,vqr=7050019,Rqr=7050020,Sqr=7050021,Iqr=7050022,Cqr=7050023,wqr=7050024,Oqr=7050025,Nqr=7050026,xqr=7050027,Tqr=7050028,Bqr=7050029,Mqr=7050030,Dqr=7050031,kqr=7050032,Pqr=7050033,Lqr=7050034,Uqr=7050035,Fqr=7050036,Qqr=7618e3,Hqr=7618001,Gqr=7618002,qqr=7618003,Vqr=8078e3,Jqr=8078001,zqr=8078002,Kqr=8078003,$qr=8078004,Yqr=8078005,Wqr=8078006,Xqr=8078007,Zqr=8078008,jqr=8078009,eVr=8078010,tVr=8078011,rVr=8078012,nVr=8078013,iVr=8078014,oVr=8078015,aVr=8078016,sVr=8078017,cVr=8078018,uVr=8078019,dVr=8078020,fVr=8078021,lVr=8078022,hVr=8078023,AVr=81e5,H1t=8100001,ybe=8100002,pVr=8100003,gVr=819e4,_Vr=8190001,mVr=8190002,yVr=8190003,bVr=8190004,EVr=99e5,vVr=9900001,RVr=9900002,SVr=9900003,IVr=9900004,CVr=9900005,wVr=9900006;function G1t(e){return Array.isArray(e)?"%5B"+e.map(G1t).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function OVr([e,t]){return`${e}=${G1t(t)}`}function NVr(e){let t=Object.entries(e).map(OVr).join("&");return btoa(t)}var nao={[jQr]:"Account not found at address: $address",[nHr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[rHr]:"Expected decoded account at address: $address",[tHr]:"Failed to decode account data at address: $address",[eHr]:"Accounts not found at addresses: $addresses",[WQr]:"Unable to find a viable program address bump seed.",[qQr]:"$putativeAddress is not a base58-encoded address.",[HQr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[VQr]:"The `CryptoKey` must be an `Ed25519` public key.",[ZQr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[YQr]:"Invalid seeds; point must fall off the Ed25519 curve.",[JQr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[KQr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[$Qr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[zQr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[XQr]:"Program address cannot end with PDA marker.",[GQr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[dQr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[sQr]:"The network has progressed past the last block for which this transaction could have been committed.",[Vqr]:"Codec [$codecDescription] cannot decode empty byte arrays.",[lVr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[dVr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Yqr]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Wqr]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[$qr]:"Encoder and decoder must either both be fixed-size or variable-size.",[Zqr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[zqr]:"Expected a fixed-size codec, got a variable-size one.",[nVr]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Kqr]:"Expected a variable-size codec, got a fixed-size one.",[uVr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Jqr]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[cVr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[jqr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[eVr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[oVr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Xqr]:"Expected [$codecDescription] to have $expected items, got $actual.",[rVr]:"Invalid value $value for base $base with alphabet $alphabet.",[aVr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[tVr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[iVr]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[fVr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[sVr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[hVr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[lHr]:"No random values implementation could be found.",[xHr]:"instruction requires an uninitialized account",[VHr]:"instruction tries to borrow reference for an account which is already borrowed",[JHr]:"instruction left account with an outstanding borrowed reference",[GHr]:"program other than the account's owner changed the size of the account data",[CHr]:"account data too small for instruction",[qHr]:"instruction expected an executable account",[hGr]:"An account does not have enough lamports to be rent-exempt",[pGr]:"Program arithmetic overflowed",[lGr]:"Failed to serialize or deserialize account data: $encodedData",[EGr]:"Builtin programs must consume compute units",[jHr]:"Cross-program invocation call depth too deep",[oGr]:"Computational budget exceeded",[KHr]:"custom program error: #$code",[UHr]:"instruction contains duplicate accounts",[zHr]:"instruction modifications of multiply-passed account differ",[XHr]:"executable accounts must be rent exempt",[YHr]:"instruction changed executable accounts data",[WHr]:"instruction changed the balance of an executable account",[FHr]:"instruction changed executable bit of an account",[kHr]:"instruction modified data of an account it does not own",[DHr]:"instruction spent from the balance of an account it does not own",[vHr]:"generic instruction error",[_Gr]:"Provided owner is not allowed",[dGr]:"Account is immutable",[fGr]:"Incorrect authority provided",[OHr]:"incorrect program id for instruction",[wHr]:"insufficient funds for instruction",[IHr]:"invalid account data for instruction",[AGr]:"Invalid account owner",[RHr]:"invalid program argument",[$Hr]:"program returned invalid error code",[SHr]:"invalid instruction data",[iGr]:"Failed to reallocate account data",[nGr]:"Provided seeds do not result in a valid address",[mGr]:"Accounts data allocations exceeded the maximum allowed per transaction",[yGr]:"Max accounts exceeded",[bGr]:"Max instruction trace length exceeded",[rGr]:"Length of the seed is too long for address generation",[eGr]:"An account required by the instruction is missing",[NHr]:"missing required signature for instruction",[MHr]:"instruction illegally modified the program id of an account",[HHr]:"insufficient account keys for instruction",[aGr]:"Cross-program invocation with unauthorized signer or writable account",[sGr]:"Failed to create program execution environment",[uGr]:"Program failed to compile",[cGr]:"Program failed to complete",[LHr]:"instruction modified data of a read-only account",[PHr]:"instruction changed the balance of a read-only account",[tGr]:"Cross-program invocation reentrancy not allowed for this instruction",[QHr]:"instruction modified rent epoch of an account",[BHr]:"sum of account balances before and after instruction do not match",[THr]:"instruction requires an initialized account",[EHr]:"",[ZHr]:"Unsupported program id",[gGr]:"Unsupported sysvar",[CVr]:"Invalid instruction plan kind: $kind.",[Gqr]:"The provided instruction plan is empty.",[qqr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[Qqr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[wVr]:"Invalid transaction plan kind: $kind.",[Hqr]:"No more instructions to pack; the message packer has completed the instruction plan.",[mHr]:"The instruction does not have any accounts.",[yHr]:"The instruction does not have any data.",[bHr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[fQr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[cQr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[RVr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[IVr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[vVr]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[EVr]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[SVr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[mQr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[yQr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[EQr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[bQr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[_Qr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[NQr]:"$__serverMessage",[QQr]:"$__serverMessage",[LQr]:"$__serverMessage",[wQr]:"$__serverMessage",[SQr]:"Epoch rewards period still active at slot $slot",[TQr]:"$__serverMessage",[BQr]:"$__serverMessage",[vQr]:"Failed to query long-term storage; please try again",[IQr]:"Minimum context slot has not been reached",[PQr]:"Node is unhealthy; behind by $numSlotsBehind slots",[MQr]:"No snapshot",[FQr]:"Transaction simulation failed",[RQr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[DQr]:"$__serverMessage",[xQr]:"Transaction history is not available from this node",[kQr]:"$__serverMessage",[OQr]:"Transaction signature length mismatch",[UQr]:"Transaction signature verification failure",[CQr]:"$__serverMessage",[hHr]:"Key pair bytes must be of length 64, got $byteLength.",[AHr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[pHr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[_Hr]:"The provided private key does not match the provided public key.",[gHr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[lQr]:"Lamports value must be in the range [0, 2e64-1]",[hQr]:"`$value` cannot be parsed as a `BigInt`",[gQr]:"$message",[AQr]:"`$value` cannot be parsed as a `Number`",[uQr]:"No nonce account could be found at address `$nonceAccountAddress`",[gVr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[mVr]:"WebSocket was closed before payload could be added to the send buffer",[yVr]:"WebSocket connection closed",[bVr]:"WebSocket failed to connect",[_Vr]:"Failed to obtain a subscription id from the server",[pVr]:"Could not find an API plan for RPC method: `$method`",[AVr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[ybe]:"HTTP error ($statusCode): $message",[H1t]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[vGr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[RGr]:"The provided value does not implement the `KeyPairSigner` interface",[IGr]:"The provided value does not implement the `MessageModifyingSigner` interface",[CGr]:"The provided value does not implement the `MessagePartialSigner` interface",[SGr]:"The provided value does not implement any of the `MessageSigner` interfaces",[OGr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[NGr]:"The provided value does not implement the `TransactionPartialSigner` interface",[xGr]:"The provided value does not implement the `TransactionSendingSigner` interface",[wGr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[TGr]:"More than one `TransactionSendingSigner` was identified.",[BGr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[MGr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[fHr]:"Cannot export a non-extractable key.",[oHr]:"No digest implementation could be found.",[iHr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[aHr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[sHr]:"No signature verification implementation could be found.",[cHr]:"No key generation implementation could be found.",[uHr]:"No signing implementation could be found.",[dHr]:"No key export implementation could be found.",[pQr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[yqr]:"Transaction processing left an account with an outstanding borrowed reference",[iqr]:"Account in use",[oqr]:"Account loaded twice",[aqr]:"Attempt to debit an account but found no record of a prior credit.",[Cqr]:"Transaction loads an address table account that doesn't exist",[dqr]:"This transaction has already been processed",[fqr]:"Blockhash not found",[lqr]:"Loader call chain is too deep",[mqr]:"Transactions are currently disabled due to cluster maintenance",[Mqr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[cqr]:"Insufficient funds for fee",[Dqr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[uqr]:"This account may not be used to pay transaction fees",[Aqr]:"Transaction contains an invalid account reference",[Oqr]:"Transaction loads an address table account with invalid data",[Nqr]:"Transaction address table lookup uses an invalid index",[wqr]:"Transaction loads an address table account with an invalid owner",[Pqr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[gqr]:"This program may not be used for executing instructions",[xqr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[vqr]:"Transaction loads a writable account that cannot be written",[kqr]:"Transaction exceeded max loaded accounts data size cap",[hqr]:"Transaction requires a fee but has no signature present",[sqr]:"Attempt to load a program that does not exist",[Uqr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Lqr]:"ResanitizationNeeded",[_qr]:"Transaction failed to sanitize accounts offsets correctly",[pqr]:"Transaction did not pass signature verification",[Iqr]:"Transaction locked too many accounts",[Fqr]:"Sum of account balances before and after transaction do not match",[nqr]:"The transaction failed with the error `$errorName`",[Eqr]:"Transaction version is unsupported",[Sqr]:"Transaction would exceed account data limit within the block",[Bqr]:"Transaction would exceed total account data limit",[Rqr]:"Transaction would exceed max account limit within the block",[bqr]:"Transaction would exceed max Block Cost Limit",[Tqr]:"Transaction would exceed max Vote Cost Limit",[YGr]:"Attempted to sign a transaction with an address that is not a signer for it",[VGr]:"Transaction is missing an address at index: $index.",[WGr]:"Transaction has no expected signers therefore it cannot be encoded",[eqr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[PGr]:"Transaction does not have a blockhash lifetime",[LGr]:"Transaction is not a durable nonce transaction",[FGr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[QGr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[GGr]:"No fee payer set in CompiledTransaction",[HGr]:"Could not find program address at index $index",[ZGr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[jGr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[JGr]:"Transaction is missing a fee payer.",[zGr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[$Gr]:"Transaction first instruction is not advance nonce account instruction.",[KGr]:"Transaction with no instructions cannot be durable nonce transaction.",[DGr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[kGr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[XGr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[qGr]:"Transaction is missing signatures for addresses: $addresses.",[UGr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[tqr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[rqr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function xVr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${NVr(t)}'`),`${r}\``}}var q1t=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=xVr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function TVr(e){let t={};for(let r in e)t[r.toLowerCase()]=e[r];return t}function BVr(e){let{fromJson:t,headers:r,toJson:i,url:n}=e,o,d=r&&TVr(r);return async function({payload:y,signal:_}){let I=i?i(y):JSON.stringify(y),N={...o,body:I,headers:{...d,accept:"application/json","content-length":I.length.toString(),"content-type":"application/json; charset=utf-8"},method:"POST",signal:_},T=await fetch(n,N);if(!T.ok)throw new q1t(ybe,{headers:T.headers,message:T.statusText,statusCode:T.status});return t?t(await T.text(),y):await T.json()}}var MVr=["getAccountInfo","getBalance","getBlock","getBlockCommitment","getBlockHeight","getBlockProduction","getBlocks","getBlocksWithLimit","getBlockTime","getClusterNodes","getEpochInfo","getEpochSchedule","getFeeForMessage","getFirstAvailableBlock","getGenesisHash","getHealth","getHighestSnapshotSlot","getIdentity","getInflationGovernor","getInflationRate","getInflationReward","getLargestAccounts","getLatestBlockhash","getLeaderSchedule","getMaxRetransmitSlot","getMaxShredInsertSlot","getMinimumBalanceForRentExemption","getMultipleAccounts","getProgramAccounts","getRecentPerformanceSamples","getRecentPrioritizationFees","getSignaturesForAddress","getSignatureStatuses","getSlot","getSlotLeader","getSlotLeaders","getStakeMinimumDelegation","getSupply","getTokenAccountBalance","getTokenAccountsByDelegate","getTokenAccountsByOwner","getTokenLargestAccounts","getTokenSupply","getTransaction","getTransactionCount","getVersion","getVoteAccounts","index","isBlockhashValid","minimumLedgerSlot","requestAirdrop","sendTransaction","simulateTransaction"];function V1t(e){return Pj(e)&&MVr.includes(e.method)}function J1t(e){return BVr({...e,fromJson:(t,r)=>V1t(r)?Dj(t):JSON.parse(t),toJson:t=>V1t(t)?kj(t):JSON.stringify(t)})}J();K();z();var DVr=Object.prototype.toString,kVr=Object.keys||function(e){let t=[];for(let r in e)t.push(r);return t};function hF(e,t){let r,i,n,o,d,g,y;if(e===!0)return"true";if(e===!1)return"false";switch(typeof e){case"object":if(e===null)return null;if("toJSON"in e&&typeof e.toJSON=="function")return hF(e.toJSON(),t);if(y=DVr.call(e),y==="[object Array]"){for(n="[",i=e.length-1,r=0;r<i;r++)n+=hF(e[r],!0)+",";return i>-1&&(n+=hF(e[r],!0)),n+"]"}else if(y==="[object Object]"){for(o=kVr(e).sort(),i=o.length,n="",r=0;r<i;)d=o[r],g=hF(e[d],!1),g!==void 0&&(n&&(n+=","),n+=JSON.stringify(d)+":"+g),r++;return"{"+n+"}"}else return JSON.stringify(e);case"function":case"undefined":return t?null:void 0;case"bigint":return`${e.toString()}n`;case"string":return JSON.stringify(e);default:return isFinite(e)?e:null}}function Hj(e){let t=hF(e,!1);if(t!==void 0)return""+t}function $1t(e,t,r){let i="";if(typeof t[0]=="number"){let d=t[0]+1,g=d%10,y=d%100;g==1&&y!=11?i=d+"st":g==2&&y!=12?i=d+"nd":g==3&&y!=13?i=d+"rd":i=d+"th"}else i=`\`${t[0].toString()}\``;let n=t.length>1?t.slice(1).map(d=>typeof d=="number"?`[${d}]`:d).join("."):void 0,o=new F1t(mbe,{argumentLabel:i,keyPath:t,methodName:e,optionalPathLabel:n?` at path \`${n}\``:"",value:r,...n!==void 0?{path:n}:void 0});return Q1t(o,$1t),o}var PVr={defaultCommitment:"confirmed",onIntegerOverflow(e,t,r){throw $1t(e.methodName,t,r)}},LVr=globalThis.AbortController,z1t;function K1t(){return{}}function UVr(e,t){let r;return async function(n){let{payload:o,signal:d}=n,g=t(o);if(g===void 0)return await e(n);if(r||(queueMicrotask(()=>{r=void 0}),r={}),r[g]==null){let _=new LVr,I=(async()=>{try{return await e({...n,signal:_.signal})}catch(N){if(N===(z1t||=K1t()))return;throw N}})();r[g]={abortController:_,numConsumers:0,responsePromise:I}}let y=r[g];if(y.numConsumers++,d){let _=y.responsePromise;return await new Promise((I,N)=>{let T=M=>{d.removeEventListener("abort",T),y.numConsumers-=1,queueMicrotask(()=>{y.numConsumers===0&&y.abortController.abort(z1t||=K1t())}),N(M.target.reason)};d.addEventListener("abort",T),_.then(I).catch(N).finally(()=>{d.removeEventListener("abort",T)})})}else return await y.responsePromise}}function FVr(e){return Pj(e)?Hj([e.method,e.params]):void 0}function QVr(e){let t={};for(let r in e)t[r.toLowerCase()]=e[r];return t}function HVr(e){return n1(J1t({...e,headers:{...e.headers?QVr(e.headers):void 0,"solana-client":"js/5.0.0"}}),t=>UVr(t,FVr))}function bbe(e,t){return GVr(HVr({url:e,...t}))}function GVr(e){return i1t({api:L1t(PVr),transport:e})}J();K();z();J();K();z();J();K();z();J();K();z();var qVr=1,VVr=2,JVr=3,zVr=4,KVr=5,$Vr=6,YVr=7,WVr=8,XVr=9,Y1t=10,W1t=-32700,X1t=-32603,Z1t=-32602,j1t=-32601,egt=-32600,ZVr=-32019,jVr=-32018,eJr=-32017,tJr=-32016,tgt=-32015,rgt=-32014,rJr=-32013,ngt=-32012,nJr=-32011,igt=-32010,ogt=-32009,iJr=-32008,agt=-32007,sgt=-32006,oJr=-32005,cgt=-32004,aJr=-32003,Ebe=-32002,ugt=-32001,sJr=28e5,cJr=2800001,uJr=2800002,dJr=2800003,fJr=2800004,lJr=2800005,hJr=2800006,AJr=2800007,pJr=2800008,gJr=2800009,_Jr=2800010,mJr=2800011,yJr=323e4,bJr=32300001,EJr=3230002,vJr=3230003,RJr=3230004,SJr=361e4,IJr=3610001,CJr=3610002,wJr=3610003,OJr=3610004,NJr=3610005,xJr=3610006,TJr=3610007,BJr=3611e3,MJr=3704e3,DJr=3704001,kJr=3704002,PJr=3704003,LJr=3704004,UJr=4128e3,FJr=4128001,QJr=4128002,dgt=4615e3,HJr=4615001,GJr=4615002,qJr=4615003,VJr=4615004,JJr=4615005,zJr=4615006,KJr=4615007,$Jr=4615008,YJr=4615009,WJr=4615010,XJr=4615011,ZJr=4615012,jJr=4615013,ezr=4615014,tzr=4615015,rzr=4615016,nzr=4615017,izr=4615018,ozr=4615019,azr=4615020,szr=4615021,czr=4615022,uzr=4615023,dzr=4615024,fzr=4615025,fgt=4615026,lzr=4615027,hzr=4615028,Azr=4615029,pzr=4615030,gzr=4615031,_zr=4615032,mzr=4615033,yzr=4615034,bzr=4615035,Ezr=4615036,vzr=4615037,Rzr=4615038,Szr=4615039,Izr=4615040,Czr=4615041,wzr=4615042,Ozr=4615043,Nzr=4615044,xzr=4615045,Tzr=4615046,Bzr=4615047,Mzr=4615048,Dzr=4615049,kzr=4615050,Pzr=4615051,Lzr=4615052,Uzr=4615053,Fzr=4615054,Qzr=5508e3,Hzr=5508001,Gzr=5508002,qzr=5508003,Vzr=5508004,Jzr=5508005,zzr=5508006,Kzr=5508007,$zr=5508008,Yzr=5508009,Wzr=5508010,Xzr=5508011,Zzr=5663e3,jzr=5663001,eKr=5663002,tKr=5663003,rKr=5663004,nKr=5663005,iKr=5663006,oKr=5663007,aKr=5663008,sKr=5663009,cKr=5663010,uKr=5663011,dKr=5663012,fKr=5663013,lKr=5663014,hKr=5663015,AKr=5663016,pKr=5663017,gKr=5663018,_Kr=5663019,mKr=5663020,yKr=5663021,bKr=5663022,lgt=705e4,EKr=7050001,vKr=7050002,RKr=7050003,SKr=7050004,IKr=7050005,CKr=7050006,wKr=7050007,OKr=7050008,NKr=7050009,xKr=7050010,TKr=7050011,BKr=7050012,MKr=7050013,DKr=7050014,kKr=7050015,PKr=7050016,LKr=7050017,UKr=7050018,FKr=7050019,QKr=7050020,HKr=7050021,GKr=7050022,qKr=7050023,VKr=7050024,JKr=7050025,zKr=7050026,KKr=7050027,$Kr=7050028,YKr=7050029,hgt=7050030,Agt=7050031,WKr=7050032,XKr=7050033,ZKr=7050034,pgt=7050035,jKr=7050036,e$r=7618e3,t$r=7618001,r$r=7618002,n$r=7618003,i$r=8078e3,o$r=8078001,a$r=8078002,s$r=8078003,c$r=8078004,u$r=8078005,d$r=8078006,f$r=8078007,l$r=8078008,h$r=8078009,A$r=8078010,p$r=8078011,g$r=8078012,_$r=8078013,m$r=8078014,y$r=8078015,b$r=8078016,E$r=8078017,v$r=8078018,R$r=8078019,S$r=8078020,I$r=8078021,C$r=8078022,w$r=8078023,O$r=81e5,N$r=8100001,x$r=8100002,T$r=8100003,vbe=819e4,Rbe=8190001,B$r=8190002,M$r=8190003,D$r=8190004,k$r=99e5,P$r=9900001,L$r=9900002,U$r=9900003,Sbe=9900004,F$r=9900005,Q$r=9900006;function ggt(e){return Array.isArray(e)?"%5B"+e.map(ggt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function H$r([e,t]){return`${e}=${ggt(t)}`}function G$r(e){let t=Object.entries(e).map(H$r).join("&");return btoa(t)}var Bao={[yJr]:"Account not found at address: $address",[RJr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[vJr]:"Expected decoded account at address: $address",[EJr]:"Failed to decode account data at address: $address",[bJr]:"Accounts not found at addresses: $addresses",[gJr]:"Unable to find a viable program address bump seed.",[uJr]:"$putativeAddress is not a base58-encoded address.",[sJr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[dJr]:"The `CryptoKey` must be an `Ed25519` public key.",[mJr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[pJr]:"Invalid seeds; point must fall off the Ed25519 curve.",[fJr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[hJr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[AJr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[lJr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[_Jr]:"Program address cannot end with PDA marker.",[cJr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[zVr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[qVr]:"The network has progressed past the last block for which this transaction could have been committed.",[i$r]:"Codec [$codecDescription] cannot decode empty byte arrays.",[C$r]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[S$r]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[u$r]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[d$r]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[c$r]:"Encoder and decoder must either both be fixed-size or variable-size.",[l$r]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[a$r]:"Expected a fixed-size codec, got a variable-size one.",[_$r]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[s$r]:"Expected a variable-size codec, got a fixed-size one.",[R$r]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[o$r]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[v$r]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[h$r]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[A$r]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[y$r]:"Invalid literal union variant. Expected one of [$variants], got $value.",[f$r]:"Expected [$codecDescription] to have $expected items, got $actual.",[g$r]:"Invalid value $value for base $base with alphabet $alphabet.",[b$r]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[p$r]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[m$r]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[I$r]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[E$r]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[w$r]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[BJr]:"No random values implementation could be found.",[YJr]:"instruction requires an uninitialized account",[uzr]:"instruction tries to borrow reference for an account which is already borrowed",[dzr]:"instruction left account with an outstanding borrowed reference",[szr]:"program other than the account's owner changed the size of the account data",[JJr]:"account data too small for instruction",[czr]:"instruction expected an executable account",[Tzr]:"An account does not have enough lamports to be rent-exempt",[Mzr]:"Program arithmetic overflowed",[xzr]:"Failed to serialize or deserialize account data: $encodedData",[Fzr]:"Builtin programs must consume compute units",[_zr]:"Cross-program invocation call depth too deep",[Rzr]:"Computational budget exceeded",[fgt]:"custom program error: #$code",[nzr]:"instruction contains duplicate accounts",[fzr]:"instruction modifications of multiply-passed account differ",[pzr]:"executable accounts must be rent exempt",[hzr]:"instruction changed executable accounts data",[Azr]:"instruction changed the balance of an executable account",[izr]:"instruction changed executable bit of an account",[ezr]:"instruction modified data of an account it does not own",[jJr]:"instruction spent from the balance of an account it does not own",[HJr]:"generic instruction error",[kzr]:"Provided owner is not allowed",[Ozr]:"Account is immutable",[Nzr]:"Incorrect authority provided",[KJr]:"incorrect program id for instruction",[zJr]:"insufficient funds for instruction",[VJr]:"invalid account data for instruction",[Bzr]:"Invalid account owner",[GJr]:"invalid program argument",[lzr]:"program returned invalid error code",[qJr]:"invalid instruction data",[vzr]:"Failed to reallocate account data",[Ezr]:"Provided seeds do not result in a valid address",[Pzr]:"Accounts data allocations exceeded the maximum allowed per transaction",[Lzr]:"Max accounts exceeded",[Uzr]:"Max instruction trace length exceeded",[bzr]:"Length of the seed is too long for address generation",[mzr]:"An account required by the instruction is missing",[$Jr]:"missing required signature for instruction",[ZJr]:"instruction illegally modified the program id of an account",[azr]:"insufficient account keys for instruction",[Szr]:"Cross-program invocation with unauthorized signer or writable account",[Izr]:"Failed to create program execution environment",[wzr]:"Program failed to compile",[Czr]:"Program failed to complete",[rzr]:"instruction modified data of a read-only account",[tzr]:"instruction changed the balance of a read-only account",[yzr]:"Cross-program invocation reentrancy not allowed for this instruction",[ozr]:"instruction modified rent epoch of an account",[XJr]:"sum of account balances before and after instruction do not match",[WJr]:"instruction requires an initialized account",[dgt]:"",[gzr]:"Unsupported program id",[Dzr]:"Unsupported sysvar",[F$r]:"Invalid instruction plan kind: $kind.",[r$r]:"The provided instruction plan is empty.",[n$r]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[e$r]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Q$r]:"Invalid transaction plan kind: $kind.",[t$r]:"No more instructions to pack; the message packer has completed the instruction plan.",[UJr]:"The instruction does not have any accounts.",[FJr]:"The instruction does not have any data.",[QJr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[KVr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[VVr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[L$r]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Sbe]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[P$r]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[k$r]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[U$r]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[X1t]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Z1t]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[egt]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[j1t]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[W1t]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[ngt]:"$__serverMessage",[ugt]:"$__serverMessage",[cgt]:"$__serverMessage",[rgt]:"$__serverMessage",[eJr]:"Epoch rewards period still active at slot $slot",[igt]:"$__serverMessage",[ogt]:"$__serverMessage",[ZVr]:"Failed to query long-term storage; please try again",[tJr]:"Minimum context slot has not been reached",[oJr]:"Node is unhealthy; behind by $numSlotsBehind slots",[iJr]:"No snapshot",[Ebe]:"Transaction simulation failed",[jVr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[agt]:"$__serverMessage",[nJr]:"Transaction history is not available from this node",[sgt]:"$__serverMessage",[rJr]:"Transaction signature length mismatch",[aJr]:"Transaction signature verification failure",[tgt]:"$__serverMessage",[MJr]:"Key pair bytes must be of length 64, got $byteLength.",[DJr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[kJr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[LJr]:"The provided private key does not match the provided public key.",[PJr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[$Vr]:"Lamports value must be in the range [0, 2e64-1]",[YVr]:"`$value` cannot be parsed as a `BigInt`",[Y1t]:"$message",[WVr]:"`$value` cannot be parsed as a `Number`",[JVr]:"No nonce account could be found at address `$nonceAccountAddress`",[vbe]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[B$r]:"WebSocket was closed before payload could be added to the send buffer",[M$r]:"WebSocket connection closed",[D$r]:"WebSocket failed to connect",[Rbe]:"Failed to obtain a subscription id from the server",[T$r]:"Could not find an API plan for RPC method: `$method`",[O$r]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[x$r]:"HTTP error ($statusCode): $message",[N$r]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Qzr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Hzr]:"The provided value does not implement the `KeyPairSigner` interface",[qzr]:"The provided value does not implement the `MessageModifyingSigner` interface",[Vzr]:"The provided value does not implement the `MessagePartialSigner` interface",[Gzr]:"The provided value does not implement any of the `MessageSigner` interfaces",[zzr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Kzr]:"The provided value does not implement the `TransactionPartialSigner` interface",[$zr]:"The provided value does not implement the `TransactionSendingSigner` interface",[Jzr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Yzr]:"More than one `TransactionSendingSigner` was identified.",[Wzr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Xzr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[TJr]:"Cannot export a non-extractable key.",[IJr]:"No digest implementation could be found.",[SJr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[CJr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[wJr]:"No signature verification implementation could be found.",[OJr]:"No key generation implementation could be found.",[NJr]:"No signing implementation could be found.",[xJr]:"No key export implementation could be found.",[XVr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[PKr]:"Transaction processing left an account with an outstanding borrowed reference",[EKr]:"Account in use",[vKr]:"Account loaded twice",[RKr]:"Attempt to debit an account but found no record of a prior credit.",[qKr]:"Transaction loads an address table account that doesn't exist",[wKr]:"This transaction has already been processed",[OKr]:"Blockhash not found",[NKr]:"Loader call chain is too deep",[kKr]:"Transactions are currently disabled due to cluster maintenance",[hgt]:"Transaction contains a duplicate instruction ($index) that is not allowed",[IKr]:"Insufficient funds for fee",[Agt]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[CKr]:"This account may not be used to pay transaction fees",[TKr]:"Transaction contains an invalid account reference",[JKr]:"Transaction loads an address table account with invalid data",[zKr]:"Transaction address table lookup uses an invalid index",[VKr]:"Transaction loads an address table account with an invalid owner",[XKr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[MKr]:"This program may not be used for executing instructions",[KKr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[FKr]:"Transaction loads a writable account that cannot be written",[WKr]:"Transaction exceeded max loaded accounts data size cap",[xKr]:"Transaction requires a fee but has no signature present",[SKr]:"Attempt to load a program that does not exist",[pgt]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[ZKr]:"ResanitizationNeeded",[DKr]:"Transaction failed to sanitize accounts offsets correctly",[BKr]:"Transaction did not pass signature verification",[GKr]:"Transaction locked too many accounts",[jKr]:"Sum of account balances before and after transaction do not match",[lgt]:"The transaction failed with the error `$errorName`",[UKr]:"Transaction version is unsupported",[HKr]:"Transaction would exceed account data limit within the block",[YKr]:"Transaction would exceed total account data limit",[QKr]:"Transaction would exceed max account limit within the block",[LKr]:"Transaction would exceed max Block Cost Limit",[$Kr]:"Transaction would exceed max Vote Cost Limit",[hKr]:"Attempted to sign a transaction with an address that is not a signer for it",[cKr]:"Transaction is missing an address at index: $index.",[AKr]:"Transaction has no expected signers therefore it cannot be encoded",[mKr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[eKr]:"Transaction does not have a blockhash lifetime",[tKr]:"Transaction is not a durable nonce transaction",[nKr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[iKr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[aKr]:"No fee payer set in CompiledTransaction",[oKr]:"Could not find program address at index $index",[gKr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[_Kr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[uKr]:"Transaction is missing a fee payer.",[dKr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[lKr]:"Transaction first instruction is not advance nonce account instruction.",[fKr]:"Transaction with no instructions cannot be durable nonce transaction.",[Zzr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[jzr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[pKr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[sKr]:"Transaction is missing signatures for addresses: $addresses.",[rKr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[yKr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[bKr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function q$r(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${G$r(t)}'`),`${r}\``}}var z3=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=q$r(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function _gt(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e)}function mgt({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:r,rpcEnumError:i},n){let o,d;typeof i=="string"?o=i:(o=Object.keys(i)[0],d=i[o]);let g=r.indexOf(o),y=e+g,_=t(y,o,d),I=new z3(y,_);return _gt(I,n),I}var V$r=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function ygt(e,t){let r=Number(e);return mgt({errorCodeBaseOffset:4615001,getErrorContext(i,n,o){return i===dgt?{errorName:n,index:r,...o!==void 0?{instructionErrorContext:o}:null}:i===fgt?{code:Number(o),index:r}:{index:r}},orderedErrorNames:V$r,rpcEnumError:t},ygt)}var J$r=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function bgt(e){return typeof e=="object"&&"InstructionError"in e?ygt(...e.InstructionError):mgt({errorCodeBaseOffset:7050001,getErrorContext(t,r,i){if(t===lgt)return{errorName:r,...i!==void 0?{transactionErrorContext:i}:null};if(t===hgt)return{index:Number(i)};if(t===Agt||t===pgt)return{accountIndex:Number(i.account_index)}},orderedErrorNames:J$r,rpcEnumError:e},bgt)}function Ibe(e){let t;if(z$r(e)){let{code:r,data:i,message:n}=e,o=Number(r);if(o===Ebe){let{err:d,...g}=i,y=d?{cause:bgt(d)}:null;t=new z3(Ebe,{...g,...y})}else{let d;switch(o){case X1t:case Z1t:case egt:case j1t:case W1t:case ngt:case ugt:case cgt:case rgt:case igt:case ogt:case agt:case sgt:case tgt:d={__serverMessage:n};break;default:typeof i=="object"&&!Array.isArray(i)&&(d=i)}t=new z3(o,d)}}else{let r=typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:"Malformed JSON-RPC error with no message attribute";t=new z3(Y1t,{error:e,message:r})}return _gt(t,Ibe),t}function z$r(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e&&(typeof e.code=="number"||typeof e.code=="bigint")&&typeof e.message=="string"}J();K();z();J();K();z();var K$r=1,$$r=2,Y$r=3,W$r=4,X$r=5,Z$r=6,j$r=7,eYr=8,tYr=9,rYr=10,nYr=-32700,iYr=-32603,oYr=-32602,aYr=-32601,sYr=-32600,cYr=-32019,uYr=-32018,dYr=-32017,fYr=-32016,lYr=-32015,hYr=-32014,AYr=-32013,pYr=-32012,gYr=-32011,_Yr=-32010,mYr=-32009,yYr=-32008,bYr=-32007,EYr=-32006,vYr=-32005,RYr=-32004,SYr=-32003,IYr=-32002,CYr=-32001,wYr=28e5,OYr=2800001,NYr=2800002,xYr=2800003,TYr=2800004,BYr=2800005,MYr=2800006,DYr=2800007,kYr=2800008,PYr=2800009,LYr=2800010,UYr=2800011,FYr=323e4,QYr=32300001,HYr=3230002,GYr=3230003,qYr=3230004,VYr=361e4,JYr=3610001,zYr=3610002,KYr=3610003,$Yr=3610004,YYr=3610005,WYr=3610006,XYr=3610007,ZYr=3611e3,jYr=3704e3,eWr=3704001,tWr=3704002,rWr=3704003,nWr=3704004,iWr=4128e3,oWr=4128001,aWr=4128002,sWr=4615e3,cWr=4615001,uWr=4615002,dWr=4615003,fWr=4615004,lWr=4615005,hWr=4615006,AWr=4615007,pWr=4615008,gWr=4615009,_Wr=4615010,mWr=4615011,yWr=4615012,bWr=4615013,EWr=4615014,vWr=4615015,RWr=4615016,SWr=4615017,IWr=4615018,CWr=4615019,wWr=4615020,OWr=4615021,NWr=4615022,xWr=4615023,TWr=4615024,BWr=4615025,MWr=4615026,DWr=4615027,kWr=4615028,PWr=4615029,LWr=4615030,UWr=4615031,FWr=4615032,QWr=4615033,HWr=4615034,GWr=4615035,qWr=4615036,VWr=4615037,JWr=4615038,zWr=4615039,KWr=4615040,$Wr=4615041,YWr=4615042,WWr=4615043,XWr=4615044,ZWr=4615045,jWr=4615046,eXr=4615047,tXr=4615048,rXr=4615049,nXr=4615050,iXr=4615051,oXr=4615052,aXr=4615053,sXr=4615054,cXr=5508e3,uXr=5508001,dXr=5508002,fXr=5508003,lXr=5508004,hXr=5508005,AXr=5508006,pXr=5508007,gXr=5508008,_Xr=5508009,mXr=5508010,yXr=5508011,bXr=5663e3,EXr=5663001,vXr=5663002,RXr=5663003,SXr=5663004,IXr=5663005,CXr=5663006,wXr=5663007,OXr=5663008,NXr=5663009,xXr=5663010,TXr=5663011,BXr=5663012,MXr=5663013,DXr=5663014,kXr=5663015,PXr=5663016,LXr=5663017,UXr=5663018,FXr=5663019,QXr=5663020,HXr=5663021,GXr=5663022,qXr=705e4,VXr=7050001,JXr=7050002,zXr=7050003,KXr=7050004,$Xr=7050005,YXr=7050006,WXr=7050007,XXr=7050008,ZXr=7050009,jXr=7050010,eZr=7050011,tZr=7050012,rZr=7050013,nZr=7050014,iZr=7050015,oZr=7050016,aZr=7050017,sZr=7050018,cZr=7050019,uZr=7050020,dZr=7050021,fZr=7050022,lZr=7050023,hZr=7050024,AZr=7050025,pZr=7050026,gZr=7050027,_Zr=7050028,mZr=7050029,yZr=7050030,bZr=7050031,EZr=7050032,vZr=7050033,RZr=7050034,SZr=7050035,IZr=7050036,CZr=7618e3,wZr=7618001,OZr=7618002,NZr=7618003,xZr=8078e3,TZr=8078001,BZr=8078002,MZr=8078003,DZr=8078004,kZr=8078005,PZr=8078006,LZr=8078007,UZr=8078008,FZr=8078009,QZr=8078010,HZr=8078011,GZr=8078012,qZr=8078013,VZr=8078014,JZr=8078015,zZr=8078016,KZr=8078017,$Zr=8078018,YZr=8078019,WZr=8078020,XZr=8078021,ZZr=8078022,jZr=8078023,ejr=81e5,tjr=8100001,rjr=8100002,njr=8100003,ijr=819e4,ojr=8190001,ajr=8190002,sjr=8190003,cjr=8190004,Cbe=99e5,wbe=9900001,ujr=9900002,djr=9900003,fjr=9900004,ljr=9900005,hjr=9900006;function Egt(e){return Array.isArray(e)?"%5B"+e.map(Egt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function Ajr([e,t]){return`${e}=${Egt(t)}`}function pjr(e){let t=Object.entries(e).map(Ajr).join("&");return btoa(t)}var Uao={[FYr]:"Account not found at address: $address",[qYr]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[GYr]:"Expected decoded account at address: $address",[HYr]:"Failed to decode account data at address: $address",[QYr]:"Accounts not found at addresses: $addresses",[PYr]:"Unable to find a viable program address bump seed.",[NYr]:"$putativeAddress is not a base58-encoded address.",[wYr]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[xYr]:"The `CryptoKey` must be an `Ed25519` public key.",[UYr]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[kYr]:"Invalid seeds; point must fall off the Ed25519 curve.",[TYr]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[MYr]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[DYr]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[BYr]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[LYr]:"Program address cannot end with PDA marker.",[OYr]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[W$r]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[K$r]:"The network has progressed past the last block for which this transaction could have been committed.",[xZr]:"Codec [$codecDescription] cannot decode empty byte arrays.",[ZZr]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[WZr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[kZr]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[PZr]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[DZr]:"Encoder and decoder must either both be fixed-size or variable-size.",[UZr]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[BZr]:"Expected a fixed-size codec, got a variable-size one.",[qZr]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[MZr]:"Expected a variable-size codec, got a fixed-size one.",[YZr]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[TZr]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[$Zr]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[FZr]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[QZr]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[JZr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[LZr]:"Expected [$codecDescription] to have $expected items, got $actual.",[GZr]:"Invalid value $value for base $base with alphabet $alphabet.",[zZr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[HZr]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[VZr]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[XZr]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[KZr]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[jZr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[ZYr]:"No random values implementation could be found.",[gWr]:"instruction requires an uninitialized account",[xWr]:"instruction tries to borrow reference for an account which is already borrowed",[TWr]:"instruction left account with an outstanding borrowed reference",[OWr]:"program other than the account's owner changed the size of the account data",[lWr]:"account data too small for instruction",[NWr]:"instruction expected an executable account",[jWr]:"An account does not have enough lamports to be rent-exempt",[tXr]:"Program arithmetic overflowed",[ZWr]:"Failed to serialize or deserialize account data: $encodedData",[sXr]:"Builtin programs must consume compute units",[FWr]:"Cross-program invocation call depth too deep",[JWr]:"Computational budget exceeded",[MWr]:"custom program error: #$code",[SWr]:"instruction contains duplicate accounts",[BWr]:"instruction modifications of multiply-passed account differ",[LWr]:"executable accounts must be rent exempt",[kWr]:"instruction changed executable accounts data",[PWr]:"instruction changed the balance of an executable account",[IWr]:"instruction changed executable bit of an account",[EWr]:"instruction modified data of an account it does not own",[bWr]:"instruction spent from the balance of an account it does not own",[cWr]:"generic instruction error",[nXr]:"Provided owner is not allowed",[WWr]:"Account is immutable",[XWr]:"Incorrect authority provided",[AWr]:"incorrect program id for instruction",[hWr]:"insufficient funds for instruction",[fWr]:"invalid account data for instruction",[eXr]:"Invalid account owner",[uWr]:"invalid program argument",[DWr]:"program returned invalid error code",[dWr]:"invalid instruction data",[VWr]:"Failed to reallocate account data",[qWr]:"Provided seeds do not result in a valid address",[iXr]:"Accounts data allocations exceeded the maximum allowed per transaction",[oXr]:"Max accounts exceeded",[aXr]:"Max instruction trace length exceeded",[GWr]:"Length of the seed is too long for address generation",[QWr]:"An account required by the instruction is missing",[pWr]:"missing required signature for instruction",[yWr]:"instruction illegally modified the program id of an account",[wWr]:"insufficient account keys for instruction",[zWr]:"Cross-program invocation with unauthorized signer or writable account",[KWr]:"Failed to create program execution environment",[YWr]:"Program failed to compile",[$Wr]:"Program failed to complete",[RWr]:"instruction modified data of a read-only account",[vWr]:"instruction changed the balance of a read-only account",[HWr]:"Cross-program invocation reentrancy not allowed for this instruction",[CWr]:"instruction modified rent epoch of an account",[mWr]:"sum of account balances before and after instruction do not match",[_Wr]:"instruction requires an initialized account",[sWr]:"",[UWr]:"Unsupported program id",[rXr]:"Unsupported sysvar",[ljr]:"Invalid instruction plan kind: $kind.",[OZr]:"The provided instruction plan is empty.",[NZr]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[CZr]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[hjr]:"Invalid transaction plan kind: $kind.",[wZr]:"No more instructions to pack; the message packer has completed the instruction plan.",[iWr]:"The instruction does not have any accounts.",[oWr]:"The instruction does not have any data.",[aWr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[X$r]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[$$r]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[ujr]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[fjr]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[wbe]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Cbe]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[djr]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[iYr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[oYr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[sYr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[aYr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[nYr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[pYr]:"$__serverMessage",[CYr]:"$__serverMessage",[RYr]:"$__serverMessage",[hYr]:"$__serverMessage",[dYr]:"Epoch rewards period still active at slot $slot",[_Yr]:"$__serverMessage",[mYr]:"$__serverMessage",[cYr]:"Failed to query long-term storage; please try again",[fYr]:"Minimum context slot has not been reached",[vYr]:"Node is unhealthy; behind by $numSlotsBehind slots",[yYr]:"No snapshot",[IYr]:"Transaction simulation failed",[uYr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[bYr]:"$__serverMessage",[gYr]:"Transaction history is not available from this node",[EYr]:"$__serverMessage",[AYr]:"Transaction signature length mismatch",[SYr]:"Transaction signature verification failure",[lYr]:"$__serverMessage",[jYr]:"Key pair bytes must be of length 64, got $byteLength.",[eWr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[tWr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[nWr]:"The provided private key does not match the provided public key.",[rWr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Z$r]:"Lamports value must be in the range [0, 2e64-1]",[j$r]:"`$value` cannot be parsed as a `BigInt`",[rYr]:"$message",[eYr]:"`$value` cannot be parsed as a `Number`",[Y$r]:"No nonce account could be found at address `$nonceAccountAddress`",[ijr]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[ajr]:"WebSocket was closed before payload could be added to the send buffer",[sjr]:"WebSocket connection closed",[cjr]:"WebSocket failed to connect",[ojr]:"Failed to obtain a subscription id from the server",[njr]:"Could not find an API plan for RPC method: `$method`",[ejr]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[rjr]:"HTTP error ($statusCode): $message",[tjr]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[cXr]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[uXr]:"The provided value does not implement the `KeyPairSigner` interface",[fXr]:"The provided value does not implement the `MessageModifyingSigner` interface",[lXr]:"The provided value does not implement the `MessagePartialSigner` interface",[dXr]:"The provided value does not implement any of the `MessageSigner` interfaces",[AXr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[pXr]:"The provided value does not implement the `TransactionPartialSigner` interface",[gXr]:"The provided value does not implement the `TransactionSendingSigner` interface",[hXr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[_Xr]:"More than one `TransactionSendingSigner` was identified.",[mXr]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[yXr]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[XYr]:"Cannot export a non-extractable key.",[JYr]:"No digest implementation could be found.",[VYr]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[zYr]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[KYr]:"No signature verification implementation could be found.",[$Yr]:"No key generation implementation could be found.",[YYr]:"No signing implementation could be found.",[WYr]:"No key export implementation could be found.",[tYr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[oZr]:"Transaction processing left an account with an outstanding borrowed reference",[VXr]:"Account in use",[JXr]:"Account loaded twice",[zXr]:"Attempt to debit an account but found no record of a prior credit.",[lZr]:"Transaction loads an address table account that doesn't exist",[WXr]:"This transaction has already been processed",[XXr]:"Blockhash not found",[ZXr]:"Loader call chain is too deep",[iZr]:"Transactions are currently disabled due to cluster maintenance",[yZr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[$Xr]:"Insufficient funds for fee",[bZr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[YXr]:"This account may not be used to pay transaction fees",[eZr]:"Transaction contains an invalid account reference",[AZr]:"Transaction loads an address table account with invalid data",[pZr]:"Transaction address table lookup uses an invalid index",[hZr]:"Transaction loads an address table account with an invalid owner",[vZr]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[rZr]:"This program may not be used for executing instructions",[gZr]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[cZr]:"Transaction loads a writable account that cannot be written",[EZr]:"Transaction exceeded max loaded accounts data size cap",[jXr]:"Transaction requires a fee but has no signature present",[KXr]:"Attempt to load a program that does not exist",[SZr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[RZr]:"ResanitizationNeeded",[nZr]:"Transaction failed to sanitize accounts offsets correctly",[tZr]:"Transaction did not pass signature verification",[fZr]:"Transaction locked too many accounts",[IZr]:"Sum of account balances before and after transaction do not match",[qXr]:"The transaction failed with the error `$errorName`",[sZr]:"Transaction version is unsupported",[dZr]:"Transaction would exceed account data limit within the block",[mZr]:"Transaction would exceed total account data limit",[uZr]:"Transaction would exceed max account limit within the block",[aZr]:"Transaction would exceed max Block Cost Limit",[_Zr]:"Transaction would exceed max Vote Cost Limit",[kXr]:"Attempted to sign a transaction with an address that is not a signer for it",[xXr]:"Transaction is missing an address at index: $index.",[PXr]:"Transaction has no expected signers therefore it cannot be encoded",[QXr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[vXr]:"Transaction does not have a blockhash lifetime",[RXr]:"Transaction is not a durable nonce transaction",[IXr]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[CXr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[OXr]:"No fee payer set in CompiledTransaction",[wXr]:"Could not find program address at index $index",[UXr]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[FXr]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[TXr]:"Transaction is missing a fee payer.",[BXr]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[DXr]:"Transaction first instruction is not advance nonce account instruction.",[MXr]:"Transaction with no instructions cannot be durable nonce transaction.",[bXr]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[EXr]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[LXr]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[NXr]:"Transaction is missing signatures for addresses: $addresses.",[SXr]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[HXr]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[GXr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function gjr(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${pjr(t)}'`),`${r}\``}}var Obe=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=gjr(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};var _jr=globalThis.AbortController,mjr=globalThis.EventTarget,vgt;function Rgt(){return Symbol(void 0)}var Nbe=Symbol();function Sgt({abortSignal:e,dataChannelName:t,dataPublisher:r,errorChannelName:i}){let n=new Map;function o(_){for(let[I,N]of n.entries())N.__hasPolled?(n.delete(I),N.onError(_)):N.publishQueue.push({__type:1,err:_})}let d=new _jr;e.addEventListener("abort",()=>{d.abort(),o(vgt||=Rgt())});let g={signal:d.signal},y=Nbe;return r.on(i,_=>{y===Nbe&&(y=_,d.abort(),o(_))},g),r.on(t,_=>{n.forEach((I,N)=>{if(I.__hasPolled){let{onData:T}=I;n.set(N,{__hasPolled:!1,publishQueue:[]}),T(_)}else I.publishQueue.push({__type:0,data:_})})},g),{async*[Symbol.asyncIterator](){if(e.aborted)return;if(y!==Nbe)throw y;let _=Symbol();n.set(_,{__hasPolled:!1,publishQueue:[]});try{for(;;){let I=n.get(_);if(!I)throw new Obe(Cbe);if(I.__hasPolled)throw new Obe(wbe);let N=I.publishQueue;try{if(N.length){I.publishQueue=[];for(let T of N)if(T.__type===0)yield T.data;else throw T.err}else yield await new Promise((T,M)=>{n.set(_,{__hasPolled:!0,onData:T,onError:M})})}catch(T){if(T===(vgt||=Rgt()))return;throw T}}}finally{n.delete(_)}}}}function xbe(e){return{on(t,r,i){function n(o){if(o instanceof CustomEvent){let d=o.detail;r(d)}else r()}return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n)}}}}function Igt(e,t,r){let i,n=new mjr,o=xbe(n);return{...o,on(d,g,y){i||(i={dispose:e.on(t,M=>{let D=r(M);if(!D)return;let[P,G]=D;n.dispatchEvent(new CustomEvent(P,{detail:G}))}),numSubscribers:0}),i.numSubscribers++;let _=o.on(d,g,y),I=!0;function N(){I&&(I=!1,y?.signal.removeEventListener("abort",N),i.numSubscribers--,i.numSubscribers===0&&(i.dispose(),i=void 0),_())}return y?.signal.addEventListener("abort",N),N}}}function wgt(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,r,i){if(r!=="then")return function(...n){let o=r.toString(),d=Reflect.get(t,o,i);if(!d)throw new z3(vbe,{notificationName:o});let g=d(...n);return yjr(e.transport,g)}}})}function yjr(e,t){return{async subscribe({abortSignal:r}){let i=await e({signal:r,...t});return Sgt({abortSignal:r,dataChannelName:"notification",dataPublisher:i,errorChannelName:"error"})}}}function Ogt(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[r,i]=t,n=i.toString();return function(...o){let d={methodName:n,params:o},g=e.requestTransformer?e.requestTransformer(d):d;return{execute(y){return e.planExecutor({...y,request:g})},request:g}}}})}function Ngt(e,t){return Object.freeze({...e,on(r,i,n){return r!=="message"?e.on(r,i,n):e.on("message",o=>i(t(o)),n)}})}function xgt(e,t){return Object.freeze({...e,send:r=>e.send(t(r))})}var bjr=globalThis.AbortController,Tbe=new WeakMap;function Ejr(e,t){return Tgt(-1,e,t)}function vjr(e,t){Tgt(1,e,t)}function Rjr(e){let t=Tbe.get(e);return t||Tbe.set(e,t={}),t}function Tgt(e,t,r){if(r===void 0)return;let i=Rjr(t);!i[r]&&e>0&&(i[r]=0);let n=e+i[r];return n<=0?delete i[r]:i[r]=n,n}var Cgt=new WeakMap;function Sjr(e,t,r){let i=Cgt.get(e);i||Cgt.set(e,i=new WeakMap);let n=r??e,o=i.get(n);return o||i.set(n,o=Igt(e,"message",d=>{let g=d;if(!("method"in g))return;let y=r?r(g.params.result,t):g.params.result;return[`notification:${g.params.subscription}`,y]})),o}async function Bgt({channel:e,responseTransformer:t,signal:r,subscribeRequest:i,unsubscribeMethodName:n}){let o;e.on("error",()=>{o=void 0,Tbe.delete(e)},{signal:r});let d=new Promise((N,T)=>{function M(){if(Ejr(e,o)===0){let D=lF({methodName:n,params:[o]});o=void 0,e.send(D).catch(()=>{})}T(this.reason)}r.aborted?M.call(r):r.addEventListener("abort",M)}),g=lF(i);await e.send(g);let y=new Promise((N,T)=>{let M=new bjr;r.addEventListener("abort",M.abort.bind(M));let D={signal:M.signal};e.on("error",P=>{M.abort(),T(P)},D),e.on("message",P=>{P&&typeof P=="object"&&"id"in P&&P.id===g.id&&(M.abort(),"error"in P?T(Ibe(P.error)):N(P.result))},D)});if(o=await e1t([d,y]),o==null)throw new z3(Rbe);vjr(e,o);let _=Sjr(e,i,t),I=`notification:${o}`;return{on(N,T,M){switch(N){case"notification":return _.on(I,T,M);case"error":return e.on("error",T,M);default:throw new z3(Sbe,{channelName:N,supportedChannelNames:["notification","error"]})}}}}function Ijr(e){let t=Uj(e),r=P1t({allowedNumericKeyPaths:Cjr()});return Ogt({planExecutor({request:i,...n}){return Bgt({...n,responseTransformer:r,subscribeRequest:{...i,methodName:i.methodName.replace(/Notifications$/,"Subscribe")},unsubscribeMethodName:i.methodName.replace(/Notifications$/,"Unsubscribe")})},requestTransformer:t})}function Mgt(e){return Ijr(e)}var Bbe;function Cjr(){return Bbe||(Bbe={accountNotifications:J3.map(e=>["value",...e]),blockNotifications:[["value","block","transactions",oi,"meta","preTokenBalances",oi,"accountIndex"],["value","block","transactions",oi,"meta","preTokenBalances",oi,"uiTokenAmount","decimals"],["value","block","transactions",oi,"meta","postTokenBalances",oi,"accountIndex"],["value","block","transactions",oi,"meta","postTokenBalances",oi,"uiTokenAmount","decimals"],["value","block","transactions",oi,"meta","rewards",oi,"commission"],["value","block","transactions",oi,"meta","innerInstructions",oi,"index"],["value","block","transactions",oi,"meta","innerInstructions",oi,"instructions",oi,"programIdIndex"],["value","block","transactions",oi,"meta","innerInstructions",oi,"instructions",oi,"accounts",oi],["value","block","transactions",oi,"transaction","message","addressTableLookups",oi,"writableIndexes",oi],["value","block","transactions",oi,"transaction","message","addressTableLookups",oi,"readonlyIndexes",oi],["value","block","transactions",oi,"transaction","message","instructions",oi,"programIdIndex"],["value","block","transactions",oi,"transaction","message","instructions",oi,"accounts",oi],["value","block","transactions",oi,"transaction","message","header","numReadonlySignedAccounts"],["value","block","transactions",oi,"transaction","message","header","numReadonlyUnsignedAccounts"],["value","block","transactions",oi,"transaction","message","header","numRequiredSignatures"],["value","block","rewards",oi,"commission"]],programNotifications:J3.flatMap(e=>[["value",oi,"account",...e],[oi,"account",...e]])}),Bbe}J();K();z();var wjr=1,Ojr=2,Njr=3,xjr=4,Tjr=5,Bjr=6,Mjr=7,Djr=8,kjr=9,Pjr=10,Ljr=-32700,Ujr=-32603,Fjr=-32602,Qjr=-32601,Hjr=-32600,Gjr=-32019,qjr=-32018,Vjr=-32017,Jjr=-32016,zjr=-32015,Kjr=-32014,$jr=-32013,Yjr=-32012,Wjr=-32011,Xjr=-32010,Zjr=-32009,jjr=-32008,een=-32007,ten=-32006,ren=-32005,nen=-32004,ien=-32003,oen=-32002,aen=-32001,sen=28e5,cen=2800001,uen=2800002,den=2800003,fen=2800004,len=2800005,hen=2800006,Aen=2800007,pen=2800008,gen=2800009,_en=2800010,men=2800011,yen=323e4,ben=32300001,Een=3230002,ven=3230003,Ren=3230004,Sen=361e4,Ien=3610001,Cen=3610002,wen=3610003,Oen=3610004,Nen=3610005,xen=3610006,Ten=3610007,Ben=3611e3,Men=3704e3,Den=3704001,ken=3704002,Pen=3704003,Len=3704004,Uen=4128e3,Fen=4128001,Qen=4128002,Hen=4615e3,Gen=4615001,qen=4615002,Ven=4615003,Jen=4615004,zen=4615005,Ken=4615006,$en=4615007,Yen=4615008,Wen=4615009,Xen=4615010,Zen=4615011,jen=4615012,etn=4615013,ttn=4615014,rtn=4615015,ntn=4615016,itn=4615017,otn=4615018,atn=4615019,stn=4615020,ctn=4615021,utn=4615022,dtn=4615023,ftn=4615024,ltn=4615025,htn=4615026,Atn=4615027,ptn=4615028,gtn=4615029,_tn=4615030,mtn=4615031,ytn=4615032,btn=4615033,Etn=4615034,vtn=4615035,Rtn=4615036,Stn=4615037,Itn=4615038,Ctn=4615039,wtn=4615040,Otn=4615041,Ntn=4615042,xtn=4615043,Ttn=4615044,Btn=4615045,Mtn=4615046,Dtn=4615047,ktn=4615048,Ptn=4615049,Ltn=4615050,Utn=4615051,Ftn=4615052,Qtn=4615053,Htn=4615054,Gtn=5508e3,qtn=5508001,Vtn=5508002,Jtn=5508003,ztn=5508004,Ktn=5508005,$tn=5508006,Ytn=5508007,Wtn=5508008,Xtn=5508009,Ztn=5508010,jtn=5508011,ern=5663e3,trn=5663001,rrn=5663002,nrn=5663003,irn=5663004,orn=5663005,arn=5663006,srn=5663007,crn=5663008,urn=5663009,drn=5663010,frn=5663011,lrn=5663012,hrn=5663013,Arn=5663014,prn=5663015,grn=5663016,_rn=5663017,mrn=5663018,yrn=5663019,brn=5663020,Ern=5663021,vrn=5663022,Rrn=705e4,Srn=7050001,Irn=7050002,Crn=7050003,wrn=7050004,Orn=7050005,Nrn=7050006,xrn=7050007,Trn=7050008,Brn=7050009,Mrn=7050010,Drn=7050011,krn=7050012,Prn=7050013,Lrn=7050014,Urn=7050015,Frn=7050016,Qrn=7050017,Hrn=7050018,Grn=7050019,qrn=7050020,Vrn=7050021,Jrn=7050022,zrn=7050023,Krn=7050024,$rn=7050025,Yrn=7050026,Wrn=7050027,Xrn=7050028,Zrn=7050029,jrn=7050030,enn=7050031,tnn=7050032,rnn=7050033,nnn=7050034,inn=7050035,onn=7050036,ann=7618e3,snn=7618001,cnn=7618002,unn=7618003,dnn=8078e3,fnn=8078001,lnn=8078002,hnn=8078003,Ann=8078004,pnn=8078005,gnn=8078006,_nn=8078007,mnn=8078008,ynn=8078009,bnn=8078010,Enn=8078011,vnn=8078012,Rnn=8078013,Snn=8078014,Inn=8078015,Cnn=8078016,wnn=8078017,Onn=8078018,Nnn=8078019,xnn=8078020,Tnn=8078021,Bnn=8078022,Mnn=8078023,Mbe=81e5,Dnn=8100001,knn=8100002,Pnn=8100003,Lnn=819e4,Unn=8190001,Fnn=8190002,Dbe=8190003,Qnn=8190004,Hnn=99e5,Gnn=9900001,qnn=9900002,Vnn=9900003,Jnn=9900004,znn=9900005,Knn=9900006;function Dgt(e){return Array.isArray(e)?"%5B"+e.map(Dgt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function $nn([e,t]){return`${e}=${Dgt(t)}`}function Ynn(e){let t=Object.entries(e).map($nn).join("&");return btoa(t)}var uso={[yen]:"Account not found at address: $address",[Ren]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[ven]:"Expected decoded account at address: $address",[Een]:"Failed to decode account data at address: $address",[ben]:"Accounts not found at addresses: $addresses",[gen]:"Unable to find a viable program address bump seed.",[uen]:"$putativeAddress is not a base58-encoded address.",[sen]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[den]:"The `CryptoKey` must be an `Ed25519` public key.",[men]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[pen]:"Invalid seeds; point must fall off the Ed25519 curve.",[fen]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[hen]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Aen]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[len]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[_en]:"Program address cannot end with PDA marker.",[cen]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[xjr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[wjr]:"The network has progressed past the last block for which this transaction could have been committed.",[dnn]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Bnn]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[xnn]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[pnn]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[gnn]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Ann]:"Encoder and decoder must either both be fixed-size or variable-size.",[mnn]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[lnn]:"Expected a fixed-size codec, got a variable-size one.",[Rnn]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[hnn]:"Expected a variable-size codec, got a fixed-size one.",[Nnn]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[fnn]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Onn]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[ynn]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[bnn]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Inn]:"Invalid literal union variant. Expected one of [$variants], got $value.",[_nn]:"Expected [$codecDescription] to have $expected items, got $actual.",[vnn]:"Invalid value $value for base $base with alphabet $alphabet.",[Cnn]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Enn]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Snn]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Tnn]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[wnn]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Mnn]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Ben]:"No random values implementation could be found.",[Wen]:"instruction requires an uninitialized account",[dtn]:"instruction tries to borrow reference for an account which is already borrowed",[ftn]:"instruction left account with an outstanding borrowed reference",[ctn]:"program other than the account's owner changed the size of the account data",[zen]:"account data too small for instruction",[utn]:"instruction expected an executable account",[Mtn]:"An account does not have enough lamports to be rent-exempt",[ktn]:"Program arithmetic overflowed",[Btn]:"Failed to serialize or deserialize account data: $encodedData",[Htn]:"Builtin programs must consume compute units",[ytn]:"Cross-program invocation call depth too deep",[Itn]:"Computational budget exceeded",[htn]:"custom program error: #$code",[itn]:"instruction contains duplicate accounts",[ltn]:"instruction modifications of multiply-passed account differ",[_tn]:"executable accounts must be rent exempt",[ptn]:"instruction changed executable accounts data",[gtn]:"instruction changed the balance of an executable account",[otn]:"instruction changed executable bit of an account",[ttn]:"instruction modified data of an account it does not own",[etn]:"instruction spent from the balance of an account it does not own",[Gen]:"generic instruction error",[Ltn]:"Provided owner is not allowed",[xtn]:"Account is immutable",[Ttn]:"Incorrect authority provided",[$en]:"incorrect program id for instruction",[Ken]:"insufficient funds for instruction",[Jen]:"invalid account data for instruction",[Dtn]:"Invalid account owner",[qen]:"invalid program argument",[Atn]:"program returned invalid error code",[Ven]:"invalid instruction data",[Stn]:"Failed to reallocate account data",[Rtn]:"Provided seeds do not result in a valid address",[Utn]:"Accounts data allocations exceeded the maximum allowed per transaction",[Ftn]:"Max accounts exceeded",[Qtn]:"Max instruction trace length exceeded",[vtn]:"Length of the seed is too long for address generation",[btn]:"An account required by the instruction is missing",[Yen]:"missing required signature for instruction",[jen]:"instruction illegally modified the program id of an account",[stn]:"insufficient account keys for instruction",[Ctn]:"Cross-program invocation with unauthorized signer or writable account",[wtn]:"Failed to create program execution environment",[Ntn]:"Program failed to compile",[Otn]:"Program failed to complete",[ntn]:"instruction modified data of a read-only account",[rtn]:"instruction changed the balance of a read-only account",[Etn]:"Cross-program invocation reentrancy not allowed for this instruction",[atn]:"instruction modified rent epoch of an account",[Zen]:"sum of account balances before and after instruction do not match",[Xen]:"instruction requires an initialized account",[Hen]:"",[mtn]:"Unsupported program id",[Ptn]:"Unsupported sysvar",[znn]:"Invalid instruction plan kind: $kind.",[cnn]:"The provided instruction plan is empty.",[unn]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[ann]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Knn]:"Invalid transaction plan kind: $kind.",[snn]:"No more instructions to pack; the message packer has completed the instruction plan.",[Uen]:"The instruction does not have any accounts.",[Fen]:"The instruction does not have any data.",[Qen]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Tjr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Ojr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[qnn]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Jnn]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Gnn]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Hnn]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vnn]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ujr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Fjr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Hjr]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Qjr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Ljr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Yjr]:"$__serverMessage",[aen]:"$__serverMessage",[nen]:"$__serverMessage",[Kjr]:"$__serverMessage",[Vjr]:"Epoch rewards period still active at slot $slot",[Xjr]:"$__serverMessage",[Zjr]:"$__serverMessage",[Gjr]:"Failed to query long-term storage; please try again",[Jjr]:"Minimum context slot has not been reached",[ren]:"Node is unhealthy; behind by $numSlotsBehind slots",[jjr]:"No snapshot",[oen]:"Transaction simulation failed",[qjr]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[een]:"$__serverMessage",[Wjr]:"Transaction history is not available from this node",[ten]:"$__serverMessage",[$jr]:"Transaction signature length mismatch",[ien]:"Transaction signature verification failure",[zjr]:"$__serverMessage",[Men]:"Key pair bytes must be of length 64, got $byteLength.",[Den]:"Expected private key bytes with length 32. Actual length: $actualLength.",[ken]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Len]:"The provided private key does not match the provided public key.",[Pen]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Bjr]:"Lamports value must be in the range [0, 2e64-1]",[Mjr]:"`$value` cannot be parsed as a `BigInt`",[Pjr]:"$message",[Djr]:"`$value` cannot be parsed as a `Number`",[Njr]:"No nonce account could be found at address `$nonceAccountAddress`",[Lnn]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Fnn]:"WebSocket was closed before payload could be added to the send buffer",[Dbe]:"WebSocket connection closed",[Qnn]:"WebSocket failed to connect",[Unn]:"Failed to obtain a subscription id from the server",[Pnn]:"Could not find an API plan for RPC method: `$method`",[Mbe]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[knn]:"HTTP error ($statusCode): $message",[Dnn]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Gtn]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[qtn]:"The provided value does not implement the `KeyPairSigner` interface",[Jtn]:"The provided value does not implement the `MessageModifyingSigner` interface",[ztn]:"The provided value does not implement the `MessagePartialSigner` interface",[Vtn]:"The provided value does not implement any of the `MessageSigner` interfaces",[$tn]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Ytn]:"The provided value does not implement the `TransactionPartialSigner` interface",[Wtn]:"The provided value does not implement the `TransactionSendingSigner` interface",[Ktn]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Xtn]:"More than one `TransactionSendingSigner` was identified.",[Ztn]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[jtn]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Ten]:"Cannot export a non-extractable key.",[Ien]:"No digest implementation could be found.",[Sen]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Cen]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[wen]:"No signature verification implementation could be found.",[Oen]:"No key generation implementation could be found.",[Nen]:"No signing implementation could be found.",[xen]:"No key export implementation could be found.",[kjr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Frn]:"Transaction processing left an account with an outstanding borrowed reference",[Srn]:"Account in use",[Irn]:"Account loaded twice",[Crn]:"Attempt to debit an account but found no record of a prior credit.",[zrn]:"Transaction loads an address table account that doesn't exist",[xrn]:"This transaction has already been processed",[Trn]:"Blockhash not found",[Brn]:"Loader call chain is too deep",[Urn]:"Transactions are currently disabled due to cluster maintenance",[jrn]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Orn]:"Insufficient funds for fee",[enn]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Nrn]:"This account may not be used to pay transaction fees",[Drn]:"Transaction contains an invalid account reference",[$rn]:"Transaction loads an address table account with invalid data",[Yrn]:"Transaction address table lookup uses an invalid index",[Krn]:"Transaction loads an address table account with an invalid owner",[rnn]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Prn]:"This program may not be used for executing instructions",[Wrn]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Grn]:"Transaction loads a writable account that cannot be written",[tnn]:"Transaction exceeded max loaded accounts data size cap",[Mrn]:"Transaction requires a fee but has no signature present",[wrn]:"Attempt to load a program that does not exist",[inn]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[nnn]:"ResanitizationNeeded",[Lrn]:"Transaction failed to sanitize accounts offsets correctly",[krn]:"Transaction did not pass signature verification",[Jrn]:"Transaction locked too many accounts",[onn]:"Sum of account balances before and after transaction do not match",[Rrn]:"The transaction failed with the error `$errorName`",[Hrn]:"Transaction version is unsupported",[Vrn]:"Transaction would exceed account data limit within the block",[Zrn]:"Transaction would exceed total account data limit",[qrn]:"Transaction would exceed max account limit within the block",[Qrn]:"Transaction would exceed max Block Cost Limit",[Xrn]:"Transaction would exceed max Vote Cost Limit",[prn]:"Attempted to sign a transaction with an address that is not a signer for it",[drn]:"Transaction is missing an address at index: $index.",[grn]:"Transaction has no expected signers therefore it cannot be encoded",[brn]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[rrn]:"Transaction does not have a blockhash lifetime",[nrn]:"Transaction is not a durable nonce transaction",[orn]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[arn]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[crn]:"No fee payer set in CompiledTransaction",[srn]:"Could not find program address at index $index",[mrn]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[yrn]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[frn]:"Transaction is missing a fee payer.",[lrn]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Arn]:"Transaction first instruction is not advance nonce account instruction.",[hrn]:"Transaction with no instructions cannot be durable nonce transaction.",[ern]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[trn]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[_rn]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[urn]:"Transaction is missing signatures for addresses: $addresses.",[irn]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Ern]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[vrn]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function Wnn(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${Ynn(t)}'`),`${r}\``}}function kgt(e,t){return e instanceof Error&&e.name==="SolanaError"?t!==void 0?e.context.__code===t:!0:!1}var Pgt=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=Wnn(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function Lgt(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e)}J();K();z();J();K();z();var Xnn=1,Znn=2,jnn=3,ein=4,tin=5,rin=6,nin=7,iin=8,oin=9,ain=10,sin=-32700,cin=-32603,uin=-32602,din=-32601,fin=-32600,lin=-32019,hin=-32018,Ain=-32017,pin=-32016,gin=-32015,_in=-32014,min=-32013,yin=-32012,bin=-32011,Ein=-32010,vin=-32009,Rin=-32008,Sin=-32007,Iin=-32006,Cin=-32005,win=-32004,Oin=-32003,Nin=-32002,xin=-32001,Tin=28e5,Bin=2800001,Min=2800002,Din=2800003,kin=2800004,Pin=2800005,Lin=2800006,Uin=2800007,Fin=2800008,Qin=2800009,Hin=2800010,Gin=2800011,qin=323e4,Vin=32300001,Jin=3230002,zin=3230003,Kin=3230004,$in=361e4,Yin=3610001,Win=3610002,Xin=3610003,Zin=3610004,jin=3610005,eon=3610006,ton=3610007,ron=3611e3,non=3704e3,ion=3704001,oon=3704002,aon=3704003,son=3704004,con=4128e3,uon=4128001,don=4128002,fon=4615e3,lon=4615001,hon=4615002,Aon=4615003,pon=4615004,gon=4615005,_on=4615006,mon=4615007,yon=4615008,bon=4615009,Eon=4615010,von=4615011,Ron=4615012,Son=4615013,Ion=4615014,Con=4615015,won=4615016,Oon=4615017,Non=4615018,xon=4615019,Ton=4615020,Bon=4615021,Mon=4615022,Don=4615023,kon=4615024,Pon=4615025,Lon=4615026,Uon=4615027,Fon=4615028,Qon=4615029,Hon=4615030,Gon=4615031,qon=4615032,Von=4615033,Jon=4615034,zon=4615035,Kon=4615036,$on=4615037,Yon=4615038,Won=4615039,Xon=4615040,Zon=4615041,jon=4615042,ean=4615043,tan=4615044,ran=4615045,nan=4615046,ian=4615047,oan=4615048,aan=4615049,san=4615050,can=4615051,uan=4615052,dan=4615053,fan=4615054,lan=5508e3,han=5508001,Aan=5508002,pan=5508003,gan=5508004,_an=5508005,man=5508006,yan=5508007,ban=5508008,Ean=5508009,van=5508010,Ran=5508011,San=5663e3,Ian=5663001,Can=5663002,wan=5663003,Oan=5663004,Nan=5663005,xan=5663006,Tan=5663007,Ban=5663008,Man=5663009,Dan=5663010,kan=5663011,Pan=5663012,Lan=5663013,Uan=5663014,Fan=5663015,Qan=5663016,Han=5663017,Gan=5663018,qan=5663019,Van=5663020,Jan=5663021,zan=5663022,Kan=705e4,$an=7050001,Yan=7050002,Wan=7050003,Xan=7050004,Zan=7050005,jan=7050006,esn=7050007,tsn=7050008,rsn=7050009,nsn=7050010,isn=7050011,osn=7050012,asn=7050013,ssn=7050014,csn=7050015,usn=7050016,dsn=7050017,fsn=7050018,lsn=7050019,hsn=7050020,Asn=7050021,psn=7050022,gsn=7050023,_sn=7050024,msn=7050025,ysn=7050026,bsn=7050027,Esn=7050028,vsn=7050029,Rsn=7050030,Ssn=7050031,Isn=7050032,Csn=7050033,wsn=7050034,Osn=7050035,Nsn=7050036,xsn=7618e3,Tsn=7618001,Bsn=7618002,Msn=7618003,Dsn=8078e3,ksn=8078001,Psn=8078002,Lsn=8078003,Usn=8078004,Fsn=8078005,Qsn=8078006,Hsn=8078007,Gsn=8078008,qsn=8078009,Vsn=8078010,Jsn=8078011,zsn=8078012,Ksn=8078013,$sn=8078014,Ysn=8078015,Wsn=8078016,Xsn=8078017,Zsn=8078018,jsn=8078019,ecn=8078020,tcn=8078021,rcn=8078022,ncn=8078023,icn=81e5,ocn=8100001,acn=8100002,scn=8100003,ccn=819e4,ucn=8190001,kbe=8190002,Gj=8190003,Pbe=8190004,dcn=99e5,fcn=9900001,lcn=9900002,hcn=9900003,Acn=9900004,pcn=9900005,gcn=9900006;function Ugt(e){return Array.isArray(e)?"%5B"+e.map(Ugt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function _cn([e,t]){return`${e}=${Ugt(t)}`}function mcn(e){let t=Object.entries(e).map(_cn).join("&");return btoa(t)}var pso={[qin]:"Account not found at address: $address",[Kin]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[zin]:"Expected decoded account at address: $address",[Jin]:"Failed to decode account data at address: $address",[Vin]:"Accounts not found at addresses: $addresses",[Qin]:"Unable to find a viable program address bump seed.",[Min]:"$putativeAddress is not a base58-encoded address.",[Tin]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Din]:"The `CryptoKey` must be an `Ed25519` public key.",[Gin]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Fin]:"Invalid seeds; point must fall off the Ed25519 curve.",[kin]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Lin]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Uin]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Pin]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Hin]:"Program address cannot end with PDA marker.",[Bin]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[ein]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Xnn]:"The network has progressed past the last block for which this transaction could have been committed.",[Dsn]:"Codec [$codecDescription] cannot decode empty byte arrays.",[rcn]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[ecn]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Fsn]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Qsn]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Usn]:"Encoder and decoder must either both be fixed-size or variable-size.",[Gsn]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Psn]:"Expected a fixed-size codec, got a variable-size one.",[Ksn]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Lsn]:"Expected a variable-size codec, got a fixed-size one.",[jsn]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[ksn]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Zsn]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[qsn]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Vsn]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Ysn]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Hsn]:"Expected [$codecDescription] to have $expected items, got $actual.",[zsn]:"Invalid value $value for base $base with alphabet $alphabet.",[Wsn]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Jsn]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[$sn]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[tcn]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Xsn]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ncn]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[ron]:"No random values implementation could be found.",[bon]:"instruction requires an uninitialized account",[Don]:"instruction tries to borrow reference for an account which is already borrowed",[kon]:"instruction left account with an outstanding borrowed reference",[Bon]:"program other than the account's owner changed the size of the account data",[gon]:"account data too small for instruction",[Mon]:"instruction expected an executable account",[nan]:"An account does not have enough lamports to be rent-exempt",[oan]:"Program arithmetic overflowed",[ran]:"Failed to serialize or deserialize account data: $encodedData",[fan]:"Builtin programs must consume compute units",[qon]:"Cross-program invocation call depth too deep",[Yon]:"Computational budget exceeded",[Lon]:"custom program error: #$code",[Oon]:"instruction contains duplicate accounts",[Pon]:"instruction modifications of multiply-passed account differ",[Hon]:"executable accounts must be rent exempt",[Fon]:"instruction changed executable accounts data",[Qon]:"instruction changed the balance of an executable account",[Non]:"instruction changed executable bit of an account",[Ion]:"instruction modified data of an account it does not own",[Son]:"instruction spent from the balance of an account it does not own",[lon]:"generic instruction error",[san]:"Provided owner is not allowed",[ean]:"Account is immutable",[tan]:"Incorrect authority provided",[mon]:"incorrect program id for instruction",[_on]:"insufficient funds for instruction",[pon]:"invalid account data for instruction",[ian]:"Invalid account owner",[hon]:"invalid program argument",[Uon]:"program returned invalid error code",[Aon]:"invalid instruction data",[$on]:"Failed to reallocate account data",[Kon]:"Provided seeds do not result in a valid address",[can]:"Accounts data allocations exceeded the maximum allowed per transaction",[uan]:"Max accounts exceeded",[dan]:"Max instruction trace length exceeded",[zon]:"Length of the seed is too long for address generation",[Von]:"An account required by the instruction is missing",[yon]:"missing required signature for instruction",[Ron]:"instruction illegally modified the program id of an account",[Ton]:"insufficient account keys for instruction",[Won]:"Cross-program invocation with unauthorized signer or writable account",[Xon]:"Failed to create program execution environment",[jon]:"Program failed to compile",[Zon]:"Program failed to complete",[won]:"instruction modified data of a read-only account",[Con]:"instruction changed the balance of a read-only account",[Jon]:"Cross-program invocation reentrancy not allowed for this instruction",[xon]:"instruction modified rent epoch of an account",[von]:"sum of account balances before and after instruction do not match",[Eon]:"instruction requires an initialized account",[fon]:"",[Gon]:"Unsupported program id",[aan]:"Unsupported sysvar",[pcn]:"Invalid instruction plan kind: $kind.",[Bsn]:"The provided instruction plan is empty.",[Msn]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[xsn]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[gcn]:"Invalid transaction plan kind: $kind.",[Tsn]:"No more instructions to pack; the message packer has completed the instruction plan.",[con]:"The instruction does not have any accounts.",[uon]:"The instruction does not have any data.",[don]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[tin]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Znn]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[lcn]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Acn]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[fcn]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[dcn]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[hcn]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[cin]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[uin]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[fin]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[din]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[sin]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[yin]:"$__serverMessage",[xin]:"$__serverMessage",[win]:"$__serverMessage",[_in]:"$__serverMessage",[Ain]:"Epoch rewards period still active at slot $slot",[Ein]:"$__serverMessage",[vin]:"$__serverMessage",[lin]:"Failed to query long-term storage; please try again",[pin]:"Minimum context slot has not been reached",[Cin]:"Node is unhealthy; behind by $numSlotsBehind slots",[Rin]:"No snapshot",[Nin]:"Transaction simulation failed",[hin]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Sin]:"$__serverMessage",[bin]:"Transaction history is not available from this node",[Iin]:"$__serverMessage",[min]:"Transaction signature length mismatch",[Oin]:"Transaction signature verification failure",[gin]:"$__serverMessage",[non]:"Key pair bytes must be of length 64, got $byteLength.",[ion]:"Expected private key bytes with length 32. Actual length: $actualLength.",[oon]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[son]:"The provided private key does not match the provided public key.",[aon]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[rin]:"Lamports value must be in the range [0, 2e64-1]",[nin]:"`$value` cannot be parsed as a `BigInt`",[ain]:"$message",[iin]:"`$value` cannot be parsed as a `Number`",[jnn]:"No nonce account could be found at address `$nonceAccountAddress`",[ccn]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[kbe]:"WebSocket was closed before payload could be added to the send buffer",[Gj]:"WebSocket connection closed",[Pbe]:"WebSocket failed to connect",[ucn]:"Failed to obtain a subscription id from the server",[scn]:"Could not find an API plan for RPC method: `$method`",[icn]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[acn]:"HTTP error ($statusCode): $message",[ocn]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[lan]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[han]:"The provided value does not implement the `KeyPairSigner` interface",[pan]:"The provided value does not implement the `MessageModifyingSigner` interface",[gan]:"The provided value does not implement the `MessagePartialSigner` interface",[Aan]:"The provided value does not implement any of the `MessageSigner` interfaces",[man]:"The provided value does not implement the `TransactionModifyingSigner` interface",[yan]:"The provided value does not implement the `TransactionPartialSigner` interface",[ban]:"The provided value does not implement the `TransactionSendingSigner` interface",[_an]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Ean]:"More than one `TransactionSendingSigner` was identified.",[van]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Ran]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[ton]:"Cannot export a non-extractable key.",[Yin]:"No digest implementation could be found.",[$in]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Win]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Xin]:"No signature verification implementation could be found.",[Zin]:"No key generation implementation could be found.",[jin]:"No signing implementation could be found.",[eon]:"No key export implementation could be found.",[oin]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[usn]:"Transaction processing left an account with an outstanding borrowed reference",[$an]:"Account in use",[Yan]:"Account loaded twice",[Wan]:"Attempt to debit an account but found no record of a prior credit.",[gsn]:"Transaction loads an address table account that doesn't exist",[esn]:"This transaction has already been processed",[tsn]:"Blockhash not found",[rsn]:"Loader call chain is too deep",[csn]:"Transactions are currently disabled due to cluster maintenance",[Rsn]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Zan]:"Insufficient funds for fee",[Ssn]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[jan]:"This account may not be used to pay transaction fees",[isn]:"Transaction contains an invalid account reference",[msn]:"Transaction loads an address table account with invalid data",[ysn]:"Transaction address table lookup uses an invalid index",[_sn]:"Transaction loads an address table account with an invalid owner",[Csn]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[asn]:"This program may not be used for executing instructions",[bsn]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[lsn]:"Transaction loads a writable account that cannot be written",[Isn]:"Transaction exceeded max loaded accounts data size cap",[nsn]:"Transaction requires a fee but has no signature present",[Xan]:"Attempt to load a program that does not exist",[Osn]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[wsn]:"ResanitizationNeeded",[ssn]:"Transaction failed to sanitize accounts offsets correctly",[osn]:"Transaction did not pass signature verification",[psn]:"Transaction locked too many accounts",[Nsn]:"Sum of account balances before and after transaction do not match",[Kan]:"The transaction failed with the error `$errorName`",[fsn]:"Transaction version is unsupported",[Asn]:"Transaction would exceed account data limit within the block",[vsn]:"Transaction would exceed total account data limit",[hsn]:"Transaction would exceed max account limit within the block",[dsn]:"Transaction would exceed max Block Cost Limit",[Esn]:"Transaction would exceed max Vote Cost Limit",[Fan]:"Attempted to sign a transaction with an address that is not a signer for it",[Dan]:"Transaction is missing an address at index: $index.",[Qan]:"Transaction has no expected signers therefore it cannot be encoded",[Van]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Can]:"Transaction does not have a blockhash lifetime",[wan]:"Transaction is not a durable nonce transaction",[Nan]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[xan]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Ban]:"No fee payer set in CompiledTransaction",[Tan]:"Could not find program address at index $index",[Gan]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[qan]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[kan]:"Transaction is missing a fee payer.",[Pan]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Uan]:"Transaction first instruction is not advance nonce account instruction.",[Lan]:"Transaction with no instructions cannot be durable nonce transaction.",[San]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Ian]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Han]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Man]:"Transaction is missing signatures for addresses: $addresses.",[Oan]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Jan]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[zan]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function ycn(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${mcn(t)}'`),`${r}\``}}var AF=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=ycn(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};var bcn=globalThis.EventTarget,pF=globalThis.WebSocket,Fgt=1e3;function Qgt({sendBufferHighWatermark:e,signal:t,url:r}){if(t.aborted)return Promise.reject(t.reason);let i,n=!1,o=new Set;function d(){o.forEach(q=>{q()}),o.clear()}function g(){d(),n||P(t.reason),D.readyState!==pF.CLOSED&&D.readyState!==pF.CLOSING&&D.close(Fgt)}function y(q){d(),i?.onCancel(),t.removeEventListener("abort",g),D.removeEventListener("close",y),D.removeEventListener("error",_),D.removeEventListener("message",I),D.removeEventListener("open",M),!t.aborted&&!(q.wasClean&&q.code===Fgt)&&N.dispatchEvent(new CustomEvent("error",{detail:new AF(Gj,{cause:q})}))}function _(q){if(!t.aborted&&!n){let Y=new AF(Pbe,{errorEvent:q});P(Y),N.dispatchEvent(new CustomEvent("error",{detail:Y}))}}function I(q){t.aborted||N.dispatchEvent(new CustomEvent("message",{detail:q.data}))}let N=new bcn,T=xbe(N);function M(){n=!0,G({...T,async send(q){if(D.readyState!==pF.OPEN)throw new AF(Gj);if(!i&&D.bufferedAmount>e){let Y,ne=new Promise((ce,le)=>{let pe=setInterval(()=>{(D.readyState!==pF.OPEN||!(D.bufferedAmount>e))&&(clearInterval(pe),i=void 0,ce())},16);Y=()=>{i=void 0,clearInterval(pe),le(new AF(kbe))}});i={onCancel:Y,promise:ne}}if(i){if(ArrayBuffer.isView(q)&&!(q instanceof DataView)){let Y=q.constructor;q=new Y(q)}await i.promise}D.send(q)}})}let D=new pF(r);t.addEventListener("abort",g),D.addEventListener("close",y),D.addEventListener("error",_),D.addEventListener("message",I),D.addEventListener("open",M);let P,G;return new Promise((q,Y)=>{P=Y,G=q})}function Hgt(e,t,r){let i="";if(typeof t[0]=="number"){let d=t[0]+1,g=d%10,y=d%100;g==1&&y!=11?i=d+"st":g==2&&y!=12?i=d+"nd":g==3&&y!=13?i=d+"rd":i=d+"th"}else i=`\`${t[0].toString()}\``;let n=t.length>1?t.slice(1).map(d=>typeof d=="number"?`[${d}]`:d).join("."):void 0,o=new Pgt(Mbe,{argumentLabel:i,keyPath:t,methodName:e,optionalPathLabel:n?` at path \`${n}\``:"",value:r,...n!==void 0?{path:n}:void 0});return Lgt(o,Hgt),o}var Ecn={defaultCommitment:"confirmed",onIntegerOverflow(e,t,r){throw Hgt(e.methodName,t,r)}},Lbe=globalThis.AbortController,vcn={jsonrpc:"2.0",method:"ping"};function Rcn({abortSignal:e,channel:t,intervalMs:r}){let i;function n(){t.send(vcn).catch(g=>{kgt(g,Dbe)&&d.abort()})}function o(){clearInterval(i),i=setInterval(n,r)}let d=new Lbe;return d.signal.addEventListener("abort",()=>{clearInterval(i)}),e.addEventListener("abort",()=>{d.abort()}),t.on("error",()=>{d.abort()},{signal:d.signal}),t.on("message",o,{signal:d.signal}),globalThis.navigator.onLine&&o(),globalThis.addEventListener("offline",function(){clearInterval(i)},{signal:d.signal}),globalThis.addEventListener("online",function(){n(),o()},{signal:d.signal}),{...t,send(...g){return d.signal.aborted||o(),t.send(...g)}}}function Scn(){return{entries:[],freeChannelIndex:-1}}function Icn(e,{maxSubscriptionsPerChannel:t,minChannels:r}){let i=Scn();function n(){if(i.entries.length<r){i.freeChannelIndex=-1;return}let o;for(let d=0;d<i.entries.length;d++){let g=(i.freeChannelIndex+d+2)%i.entries.length,y=i.entries[g];y.subscriptionCount<t&&(!o||o.subscriptionCount>=y.subscriptionCount)&&(o={poolIndex:g,subscriptionCount:y.subscriptionCount})}i.freeChannelIndex=o?.poolIndex??-1}return function({abortSignal:d}){let g;function y(){let _=i.entries.findIndex(I=>I===g);i.entries.splice(_,1),g.dispose(),n()}if(i.freeChannelIndex===-1){let _=new Lbe,I=e({abortSignal:_.signal});I.then(N=>{N.on("error",y,{signal:_.signal})}).catch(y),g={channel:I,dispose(){_.abort()},subscriptionCount:0},i.entries.push(g)}else g=i.entries[i.freeChannelIndex];return g.subscriptionCount++,d.addEventListener("abort",function(){g.subscriptionCount--,g.subscriptionCount===0?y():i.freeChannelIndex!==-1&&(i.freeChannelIndex--,n())}),n(),g.channel}}function Ccn(e){return n1(e,t=>Ngt(t,Dj),t=>xgt(t,kj))}function wcn(e){return Ocn({...e,jsonSerializer:Ccn})}function Ocn(e){if(/^wss?:/i.test(e.url)===!1){let n=e.url.match(/^([^:]+):/);throw new DOMException(n?`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${n[1]}:' is not allowed.`:`Failed to construct 'WebSocket': The URL '${e.url}' is invalid.`)}let{intervalMs:t,...r}=e;return Icn(({abortSignal:n})=>Qgt({...r,sendBufferHighWatermark:e.sendBufferHighWatermark??131072,signal:n}).then(e.jsonSerializer).then(o=>Rcn({abortSignal:n,channel:o,intervalMs:t??5e3})),{maxSubscriptionsPerChannel:e.maxSubscriptionsPerChannel??100,minChannels:e.minChannels??1})}function Ncn(e){let t=new Map;return function(i){let{request:n,signal:o}=i,d=Hj([n.methodName,n.params]),g=t.get(d);if(!g){let y=new Lbe,_=e({...i,signal:y.signal});_.then(I=>{I.on("error",()=>{t.delete(d),y.abort()},{signal:y.signal})}).catch(()=>{}),t.set(d,g={abortController:y,dataPublisherPromise:_,numSubscribers:0})}return g.numSubscribers++,o.addEventListener("abort",()=>{g.numSubscribers--,g.numSubscribers===0&&queueMicrotask(()=>{g.numSubscribers===0&&(t.delete(d),g.abortController.abort())})},{signal:g.abortController.signal}),g.dataPublisherPromise}}function xcn({createChannel:e}){return n1(Tcn(e),t=>Ncn(t))}function Tcn(e){return async({execute:t,signal:r})=>{let i=await e({abortSignal:r});return await t({channel:i,signal:r})}}function Bcn(e,t){let r=xcn({createChannel:wcn({...t,url:e})});return Mcn(r)}function Ube(e,t){return Bcn(e,t)}function Mcn(e){return wgt({api:Mgt(Ecn),transport:e})}J();K();z();J();K();z();var Dcn=1,kcn=2,Pcn=3,Lcn=4,Ucn=5,Fcn=6,Qcn=7,Hcn=8,Gcn=9,qcn=10,Vcn=-32700,Jcn=-32603,zcn=-32602,Kcn=-32601,$cn=-32600,Ycn=-32019,Wcn=-32018,Xcn=-32017,Zcn=-32016,jcn=-32015,eun=-32014,tun=-32013,run=-32012,nun=-32011,iun=-32010,oun=-32009,aun=-32008,sun=-32007,cun=-32006,uun=-32005,dun=-32004,fun=-32003,lun=-32002,hun=-32001,Aun=28e5,pun=2800001,gun=2800002,_un=2800003,mun=2800004,yun=2800005,bun=2800006,Eun=2800007,vun=2800008,Run=2800009,Sun=2800010,Iun=2800011,Cun=323e4,wun=32300001,Oun=3230002,Nun=3230003,xun=3230004,Tun=361e4,Bun=3610001,Mun=3610002,Dun=3610003,kun=3610004,Pun=3610005,Lun=3610006,Uun=3610007,Fun=3611e3,Qun=3704e3,Hun=3704001,Gun=3704002,qun=3704003,Vun=3704004,Jun=4128e3,zun=4128001,Kun=4128002,$un=4615e3,Yun=4615001,Wun=4615002,Xun=4615003,Zun=4615004,jun=4615005,e0n=4615006,t0n=4615007,r0n=4615008,n0n=4615009,i0n=4615010,o0n=4615011,a0n=4615012,s0n=4615013,c0n=4615014,u0n=4615015,d0n=4615016,f0n=4615017,l0n=4615018,h0n=4615019,A0n=4615020,p0n=4615021,g0n=4615022,_0n=4615023,m0n=4615024,y0n=4615025,b0n=4615026,E0n=4615027,v0n=4615028,R0n=4615029,S0n=4615030,I0n=4615031,C0n=4615032,w0n=4615033,O0n=4615034,N0n=4615035,x0n=4615036,T0n=4615037,B0n=4615038,M0n=4615039,D0n=4615040,k0n=4615041,P0n=4615042,L0n=4615043,U0n=4615044,F0n=4615045,Q0n=4615046,H0n=4615047,G0n=4615048,q0n=4615049,V0n=4615050,J0n=4615051,z0n=4615052,K0n=4615053,$0n=4615054,Fbe=5508e3,Ggt=5508001,qgt=5508002,Vgt=5508003,Jgt=5508004,zgt=5508005,Kgt=5508006,$gt=5508007,Ygt=5508008,Wgt=5508009,Xgt=5508010,Y0n=5508011,W0n=5663e3,X0n=5663001,Z0n=5663002,j0n=5663003,edn=5663004,tdn=5663005,rdn=5663006,ndn=5663007,idn=5663008,odn=5663009,adn=5663010,sdn=5663011,cdn=5663012,udn=5663013,ddn=5663014,fdn=5663015,ldn=5663016,hdn=5663017,Adn=5663018,pdn=5663019,gdn=5663020,_dn=5663021,mdn=5663022,ydn=705e4,bdn=7050001,Edn=7050002,vdn=7050003,Rdn=7050004,Sdn=7050005,Idn=7050006,Cdn=7050007,wdn=7050008,Odn=7050009,Ndn=7050010,xdn=7050011,Tdn=7050012,Bdn=7050013,Mdn=7050014,Ddn=7050015,kdn=7050016,Pdn=7050017,Ldn=7050018,Udn=7050019,Fdn=7050020,Qdn=7050021,Hdn=7050022,Gdn=7050023,qdn=7050024,Vdn=7050025,Jdn=7050026,zdn=7050027,Kdn=7050028,$dn=7050029,Ydn=7050030,Wdn=7050031,Xdn=7050032,Zdn=7050033,jdn=7050034,efn=7050035,tfn=7050036,rfn=7618e3,nfn=7618001,ifn=7618002,ofn=7618003,afn=8078e3,sfn=8078001,cfn=8078002,ufn=8078003,dfn=8078004,ffn=8078005,lfn=8078006,hfn=8078007,Afn=8078008,pfn=8078009,gfn=8078010,_fn=8078011,mfn=8078012,yfn=8078013,bfn=8078014,Efn=8078015,vfn=8078016,Rfn=8078017,Sfn=8078018,Ifn=8078019,Cfn=8078020,wfn=8078021,Ofn=8078022,Nfn=8078023,xfn=81e5,Tfn=8100001,Bfn=8100002,Mfn=8100003,Dfn=819e4,kfn=8190001,Pfn=8190002,Lfn=8190003,Ufn=8190004,Ffn=99e5,Qfn=9900001,Hfn=9900002,Gfn=9900003,qfn=9900004,Vfn=9900005,Jfn=9900006;function Zgt(e){return Array.isArray(e)?"%5B"+e.map(Zgt).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function zfn([e,t]){return`${e}=${Zgt(t)}`}function Kfn(e){let t=Object.entries(e).map(zfn).join("&");return btoa(t)}var Qso={[Cun]:"Account not found at address: $address",[xun]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Nun]:"Expected decoded account at address: $address",[Oun]:"Failed to decode account data at address: $address",[wun]:"Accounts not found at addresses: $addresses",[Run]:"Unable to find a viable program address bump seed.",[gun]:"$putativeAddress is not a base58-encoded address.",[Aun]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[_un]:"The `CryptoKey` must be an `Ed25519` public key.",[Iun]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[vun]:"Invalid seeds; point must fall off the Ed25519 curve.",[mun]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[bun]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Eun]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[yun]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Sun]:"Program address cannot end with PDA marker.",[pun]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Lcn]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Dcn]:"The network has progressed past the last block for which this transaction could have been committed.",[afn]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ofn]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Cfn]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[ffn]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[lfn]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[dfn]:"Encoder and decoder must either both be fixed-size or variable-size.",[Afn]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[cfn]:"Expected a fixed-size codec, got a variable-size one.",[yfn]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[ufn]:"Expected a variable-size codec, got a fixed-size one.",[Ifn]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[sfn]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Sfn]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[pfn]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[gfn]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Efn]:"Invalid literal union variant. Expected one of [$variants], got $value.",[hfn]:"Expected [$codecDescription] to have $expected items, got $actual.",[mfn]:"Invalid value $value for base $base with alphabet $alphabet.",[vfn]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[_fn]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[bfn]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[wfn]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Rfn]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Nfn]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Fun]:"No random values implementation could be found.",[n0n]:"instruction requires an uninitialized account",[_0n]:"instruction tries to borrow reference for an account which is already borrowed",[m0n]:"instruction left account with an outstanding borrowed reference",[p0n]:"program other than the account's owner changed the size of the account data",[jun]:"account data too small for instruction",[g0n]:"instruction expected an executable account",[Q0n]:"An account does not have enough lamports to be rent-exempt",[G0n]:"Program arithmetic overflowed",[F0n]:"Failed to serialize or deserialize account data: $encodedData",[$0n]:"Builtin programs must consume compute units",[C0n]:"Cross-program invocation call depth too deep",[B0n]:"Computational budget exceeded",[b0n]:"custom program error: #$code",[f0n]:"instruction contains duplicate accounts",[y0n]:"instruction modifications of multiply-passed account differ",[S0n]:"executable accounts must be rent exempt",[v0n]:"instruction changed executable accounts data",[R0n]:"instruction changed the balance of an executable account",[l0n]:"instruction changed executable bit of an account",[c0n]:"instruction modified data of an account it does not own",[s0n]:"instruction spent from the balance of an account it does not own",[Yun]:"generic instruction error",[V0n]:"Provided owner is not allowed",[L0n]:"Account is immutable",[U0n]:"Incorrect authority provided",[t0n]:"incorrect program id for instruction",[e0n]:"insufficient funds for instruction",[Zun]:"invalid account data for instruction",[H0n]:"Invalid account owner",[Wun]:"invalid program argument",[E0n]:"program returned invalid error code",[Xun]:"invalid instruction data",[T0n]:"Failed to reallocate account data",[x0n]:"Provided seeds do not result in a valid address",[J0n]:"Accounts data allocations exceeded the maximum allowed per transaction",[z0n]:"Max accounts exceeded",[K0n]:"Max instruction trace length exceeded",[N0n]:"Length of the seed is too long for address generation",[w0n]:"An account required by the instruction is missing",[r0n]:"missing required signature for instruction",[a0n]:"instruction illegally modified the program id of an account",[A0n]:"insufficient account keys for instruction",[M0n]:"Cross-program invocation with unauthorized signer or writable account",[D0n]:"Failed to create program execution environment",[P0n]:"Program failed to compile",[k0n]:"Program failed to complete",[d0n]:"instruction modified data of a read-only account",[u0n]:"instruction changed the balance of a read-only account",[O0n]:"Cross-program invocation reentrancy not allowed for this instruction",[h0n]:"instruction modified rent epoch of an account",[o0n]:"sum of account balances before and after instruction do not match",[i0n]:"instruction requires an initialized account",[$un]:"",[I0n]:"Unsupported program id",[q0n]:"Unsupported sysvar",[Vfn]:"Invalid instruction plan kind: $kind.",[ifn]:"The provided instruction plan is empty.",[ofn]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[rfn]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Jfn]:"Invalid transaction plan kind: $kind.",[nfn]:"No more instructions to pack; the message packer has completed the instruction plan.",[Jun]:"The instruction does not have any accounts.",[zun]:"The instruction does not have any data.",[Kun]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Ucn]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[kcn]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Hfn]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[qfn]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Qfn]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ffn]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Gfn]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Jcn]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[zcn]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[$cn]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Kcn]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Vcn]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[run]:"$__serverMessage",[hun]:"$__serverMessage",[dun]:"$__serverMessage",[eun]:"$__serverMessage",[Xcn]:"Epoch rewards period still active at slot $slot",[iun]:"$__serverMessage",[oun]:"$__serverMessage",[Ycn]:"Failed to query long-term storage; please try again",[Zcn]:"Minimum context slot has not been reached",[uun]:"Node is unhealthy; behind by $numSlotsBehind slots",[aun]:"No snapshot",[lun]:"Transaction simulation failed",[Wcn]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[sun]:"$__serverMessage",[nun]:"Transaction history is not available from this node",[cun]:"$__serverMessage",[tun]:"Transaction signature length mismatch",[fun]:"Transaction signature verification failure",[jcn]:"$__serverMessage",[Qun]:"Key pair bytes must be of length 64, got $byteLength.",[Hun]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Gun]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Vun]:"The provided private key does not match the provided public key.",[qun]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Fcn]:"Lamports value must be in the range [0, 2e64-1]",[Qcn]:"`$value` cannot be parsed as a `BigInt`",[qcn]:"$message",[Hcn]:"`$value` cannot be parsed as a `Number`",[Pcn]:"No nonce account could be found at address `$nonceAccountAddress`",[Dfn]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Pfn]:"WebSocket was closed before payload could be added to the send buffer",[Lfn]:"WebSocket connection closed",[Ufn]:"WebSocket failed to connect",[kfn]:"Failed to obtain a subscription id from the server",[Mfn]:"Could not find an API plan for RPC method: `$method`",[xfn]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Bfn]:"HTTP error ($statusCode): $message",[Tfn]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Fbe]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Ggt]:"The provided value does not implement the `KeyPairSigner` interface",[Vgt]:"The provided value does not implement the `MessageModifyingSigner` interface",[Jgt]:"The provided value does not implement the `MessagePartialSigner` interface",[qgt]:"The provided value does not implement any of the `MessageSigner` interfaces",[Kgt]:"The provided value does not implement the `TransactionModifyingSigner` interface",[$gt]:"The provided value does not implement the `TransactionPartialSigner` interface",[Ygt]:"The provided value does not implement the `TransactionSendingSigner` interface",[zgt]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Wgt]:"More than one `TransactionSendingSigner` was identified.",[Xgt]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Y0n]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Uun]:"Cannot export a non-extractable key.",[Bun]:"No digest implementation could be found.",[Tun]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Mun]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
|
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
|
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Dun]:"No signature verification implementation could be found.",[kun]:"No key generation implementation could be found.",[Pun]:"No signing implementation could be found.",[Lun]:"No key export implementation could be found.",[Gcn]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[kdn]:"Transaction processing left an account with an outstanding borrowed reference",[bdn]:"Account in use",[Edn]:"Account loaded twice",[vdn]:"Attempt to debit an account but found no record of a prior credit.",[Gdn]:"Transaction loads an address table account that doesn't exist",[Cdn]:"This transaction has already been processed",[wdn]:"Blockhash not found",[Odn]:"Loader call chain is too deep",[Ddn]:"Transactions are currently disabled due to cluster maintenance",[Ydn]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Sdn]:"Insufficient funds for fee",[Wdn]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Idn]:"This account may not be used to pay transaction fees",[xdn]:"Transaction contains an invalid account reference",[Vdn]:"Transaction loads an address table account with invalid data",[Jdn]:"Transaction address table lookup uses an invalid index",[qdn]:"Transaction loads an address table account with an invalid owner",[Zdn]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Bdn]:"This program may not be used for executing instructions",[zdn]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Udn]:"Transaction loads a writable account that cannot be written",[Xdn]:"Transaction exceeded max loaded accounts data size cap",[Ndn]:"Transaction requires a fee but has no signature present",[Rdn]:"Attempt to load a program that does not exist",[efn]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[jdn]:"ResanitizationNeeded",[Mdn]:"Transaction failed to sanitize accounts offsets correctly",[Tdn]:"Transaction did not pass signature verification",[Hdn]:"Transaction locked too many accounts",[tfn]:"Sum of account balances before and after transaction do not match",[ydn]:"The transaction failed with the error `$errorName`",[Ldn]:"Transaction version is unsupported",[Qdn]:"Transaction would exceed account data limit within the block",[$dn]:"Transaction would exceed total account data limit",[Fdn]:"Transaction would exceed max account limit within the block",[Pdn]:"Transaction would exceed max Block Cost Limit",[Kdn]:"Transaction would exceed max Vote Cost Limit",[fdn]:"Attempted to sign a transaction with an address that is not a signer for it",[adn]:"Transaction is missing an address at index: $index.",[ldn]:"Transaction has no expected signers therefore it cannot be encoded",[gdn]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Z0n]:"Transaction does not have a blockhash lifetime",[j0n]:"Transaction is not a durable nonce transaction",[tdn]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[rdn]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[idn]:"No fee payer set in CompiledTransaction",[ndn]:"Could not find program address at index $index",[Adn]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[pdn]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[sdn]:"Transaction is missing a fee payer.",[cdn]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[ddn]:"Transaction first instruction is not advance nonce account instruction.",[udn]:"Transaction with no instructions cannot be durable nonce transaction.",[W0n]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[X0n]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[hdn]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[odn]:"Transaction is missing signatures for addresses: $addresses.",[edn]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[_dn]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[mdn]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."};function $fn(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${Kfn(t)}'`),`${r}\``}}var jgt=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([o,d])=>{o==="cause"?i={cause:d.value}:(r===void 0&&(r={}),Object.defineProperty(r,o,d))});let n=$fn(e,r);super(n,i),this.context=r===void 0?{}:r,this.context.__code=e,this.name="SolanaError"}};function Qbe(e){let t={};return e.forEach(r=>{if(!t[r.address])t[r.address]=r;else if(t[r.address]!==r)throw new jgt(Fbe,{address:r.address})}),Object.values(t)}function S7(e){return"modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function m5(e){return"signTransactions"in e&&typeof e.signTransactions=="function"}function e_t(e){return"signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function I7(e){return m5(e)||S7(e)||e_t(e)}function Yfn(e){return Qbe((e.accounts??[]).flatMap(t=>"signer"in t?t.signer:[]))}function Wfn(e){return Qbe([...e.feePayer&&I7(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(Yfn)])}async function t_t(e){let t=await hj(e.publicKey);return Object.freeze({address:t,keyPair:e,signMessages:i=>Promise.all(i.map(async n=>Object.freeze({[t]:await fF(e.privateKey,n.content)}))),signTransactions:i=>Promise.all(i.map(async n=>{let o=await Zpt([e],n);return Object.freeze({[t]:o.signatures[t]})}))})}async function r_t(e,t){return await t_t(await Ypt(e,t))}async function n_t(e,t){return await t_t(await Wpt(e,t))}async function i_t(e,t){let{partialSigners:r,modifyingSigners:i}=Xfn(Qbe(Wfn(e).filter(I7)),{identifySendingSigner:!1});return await eln(e,i,r,t)}function Xfn(e,t={}){let i=t.identifySendingSigner??!0?Zfn(e):null,n=e.filter(g=>g!==i&&(S7(g)||m5(g))),o=jfn(n),d=n.filter(m5).filter(g=>!o.includes(g));return Object.freeze({modifyingSigners:o,partialSigners:d,sendingSigner:i})}function Zfn(e){let t=e.filter(e_t);if(t.length===0)return null;let r=t.filter(i=>!S7(i)&&!m5(i));return r.length>0?r[0]:t[0]}function jfn(e){let t=e.filter(S7);if(t.length===0)return[];let r=t.filter(i=>!m5(i));return r.length>0?r:[t[0]]}async function eln(e,t=[],r=[],i){let n=Mj(e),o=await t.reduce(async(g,y)=>{i?.abortSignal?.throwIfAborted();let[_]=await y.modifyAndSignTransactions([await g],i);return Object.freeze(_)},Promise.resolve(n));i?.abortSignal?.throwIfAborted();let d=await Promise.all(r.map(async g=>{let[y]=await g.signTransactions([o],i);return y}));return Object.freeze({...o,signatures:Object.freeze(d.reduce((g,y)=>({...g,...y}),o.signatures??{}))})}var Zso=globalThis.TextEncoder;J();K();z();var qj="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";J();K();z();var s_t=(e=>(e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen",e))(s_t||{});function tln(){return eAt(s_t)}function rln(){return f7(_ye(),36)}function gF(){return f7(_ye(),64)}function nln(){return jht([["Uninitialized",q3()],["TransferFeeConfig",Oc(tu([["transferFeeConfigAuthority",bs()],["withdrawWithheldAuthority",bs()],["withheldAmount",dh()],["olderTransferFee",o_t()],["newerTransferFee",o_t()]]),pu())],["TransferFeeAmount",Oc(tu([["withheldAmount",dh()]]),pu())],["MintCloseAuthority",Oc(tu([["closeAuthority",bs()]]),pu())],["ConfidentialTransferMint",Oc(tu([["authority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["autoApproveNewAccounts",gg()],["auditorElgamalPubkey",oA(bs(),{prefix:null,noneValue:"zeroes"})]]),pu())],["ConfidentialTransferAccount",Oc(tu([["approved",gg()],["elgamalPubkey",bs()],["pendingBalanceLow",gF()],["pendingBalanceHigh",gF()],["availableBalance",gF()],["decryptableAvailableBalance",rln()],["allowConfidentialCredits",gg()],["allowNonConfidentialCredits",gg()],["pendingBalanceCreditCounter",dh()],["maximumPendingBalanceCreditCounter",dh()],["expectedPendingBalanceCreditCounter",dh()],["actualPendingBalanceCreditCounter",dh()]]),pu())],["DefaultAccountState",Oc(tu([["state",tln()]]),pu())],["ImmutableOwner",Oc(tu([]),pu())],["MemoTransfer",Oc(tu([["requireIncomingTransferMemos",gg()]]),pu())],["NonTransferable",Oc(tu([]),pu())],["InterestBearingConfig",Oc(tu([["rateAuthority",bs()],["initializationTimestamp",dh()],["preUpdateAverageRate",pye()],["lastUpdateTimestamp",dh()],["currentRate",pye()]]),pu())],["CpiGuard",Oc(tu([["lockCpi",gg()]]),pu())],["PermanentDelegate",Oc(tu([["delegate",bs()]]),pu())],["NonTransferableAccount",Oc(tu([]),pu())],["TransferHook",Oc(tu([["authority",bs()],["programId",bs()]]),pu())],["TransferHookAccount",Oc(tu([["transferring",gg()]]),pu())],["ConfidentialTransferFee",Oc(tu([["authority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["elgamalPubkey",bs()],["harvestToMintEnabled",gg()],["withheldAmount",gF()]]),pu())],["ConfidentialTransferFeeAmount",Oc(tu([["withheldAmount",gF()]]),pu())],["MetadataPointer",Oc(tu([["authority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["metadataAddress",oA(bs(),{prefix:null,noneValue:"zeroes"})]]),pu())],["TokenMetadata",Oc(tu([["updateAuthority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["mint",bs()],["name",Oc(A7(),f2())],["symbol",Oc(A7(),f2())],["uri",Oc(A7(),f2())],["additionalMetadata",rAt(Oc(A7(),f2()),Oc(A7(),f2()))]]),pu())],["GroupPointer",Oc(tu([["authority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["groupAddress",oA(bs(),{prefix:null,noneValue:"zeroes"})]]),pu())],["TokenGroup",Oc(tu([["updateAuthority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["mint",bs()],["size",dh()],["maxSize",dh()]]),pu())],["GroupMemberPointer",Oc(tu([["authority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["memberAddress",oA(bs(),{prefix:null,noneValue:"zeroes"})]]),pu())],["TokenGroupMember",Oc(tu([["mint",bs()],["group",bs()],["memberNumber",dh()]]),pu())],["ConfidentialMintBurn",q3()],["ScaledUiAmountConfig",Oc(tu([["authority",bs()],["multiplier",Aye()],["newMultiplierEffectiveTimestamp",dh()],["newMultiplier",Aye()]]),pu())],["PausableConfig",Oc(tu([["authority",oA(bs(),{prefix:null,noneValue:"zeroes"})],["paused",gg()]]),pu())],["PausableAccount",q3()]],{size:pu()})}function o_t(){return tu([["epoch",dh()],["maximumFee",dh()],["transferFeeBasisPoints",pu()]])}function iln(){return tu([["mintAuthority",oA(bs(),{prefix:f2(),noneValue:"zeroes"})],["supply",dh()],["decimals",vS()],["isInitialized",gg()],["freezeAuthority",oA(bs(),{prefix:f2(),noneValue:"zeroes"})],["extensions",oA(tAt(gye(nln(),{size:"remainder"}),[Ej(Yht(r1(),83).encode(1))]),{prefix:null})]])}function oln(e){return Xlt(e,iln())}async function c_t(e,t,r){let i=await aln(e,t,r);return jlt(i),i}async function aln(e,t,r){let i=await Zlt(e,t,r);return oln(i)}var _F="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";function sln(e){if(!e)throw new Error("Expected a Address.");return typeof e=="object"&&"address"in e?e.address:Array.isArray(e)?e[0]:e}function cln(e,t){return r=>{if(!r.value)return Object.freeze({address:e,role:_g.READONLY});let i=r.isWritable?_g.WRITABLE:_g.READONLY;return Object.freeze({address:sln(r.value),role:a_t(r.value)?aAt(i):i,...a_t(r.value)?{signer:r.value}:{}})}}function a_t(e){return!!e&&typeof e=="object"&&"address"in e&&I7(e)}async function Hbe(e,t={}){let{programAddress:r="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"}=t;return await Bht({programAddress:r,seeds:[ES().encode(e.owner),ES().encode(e.tokenProgram),ES().encode(e.mint)]})}var Tco=new Uint8Array([250,166,180,250,13,12,184,70]);var Bco=new Uint8Array([121,113,108,39,54,51,0,4]);var Mco=new Uint8Array([152,32,222,176,223,237,116,134]);var Dco=new Uint8Array([210,225,30,162,88,184,77,141]);var kco=new Uint8Array([234,18,32,56,89,141,37,181]);var uln=12;function dln(){return h5(nF([["discriminator",r1()],["amount",yj()],["decimals",r1()]]),e=>({...e,discriminator:uln}))}function u_t(e,t){let r=t?.programAddress??_F,n={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},o={...e},d=(o.multiSigners??[]).map(y=>({address:y.address,role:_g.READONLY_SIGNER,signer:y})),g=cln(r);return Object.freeze({accounts:[g(n.source),g(n.mint),g(n.destination),g(n.authority),...d],data:dln().encode(o),programAddress:r})}var Pco=new Uint8Array([108,37,171,143,248,30,18,110]);var Lco=new Uint8Array([161,105,88,1,237,221,216,203]);var Uco=new Uint8Array([221,233,49,45,181,202,220,200]);var Fco=new Uint8Array([215,228,166,228,84,100,86,123]);var Qco=3600*24*365.24;var fln=jn.union([jn.string().transform(e=>e.replace(/[^0-9.-]+/g,"")),jn.number()]).pipe(jn.coerce.number().min(1e-4).max(999999999)),mF=jn.enum(["abstract","abstract-testnet","base-sepolia","base","avalanche-fuji","avalanche","iotex","solana-devnet","solana","sei","sei-testnet","polygon","polygon-amoy","peaq","story","educhain","skale-base-sepolia"]),C7=["abstract","abstract-testnet","base-sepolia","base","avalanche-fuji","avalanche","iotex","sei","sei-testnet","polygon","polygon-amoy","peaq","story","educhain","skale-base-sepolia"],Jj=new Map([["abstract",2741],["abstract-testnet",11124],["base-sepolia",84532],["base",8453],["avalanche-fuji",43113],["avalanche",43114],["iotex",4689],["sei",1329],["sei-testnet",1328],["polygon",137],["polygon-amoy",80002],["peaq",3338],["story",1514],["educhain",41923],["skale-base-sepolia",324705682]]),y5=["solana-devnet","solana"],Gbe=new Map([["solana-devnet",103],["solana",101]]),Vbe=Object.fromEntries([...C7,...y5].map(e=>[Jj.get(e),e])),lln={id:324705682,name:"SKALE Base Sepolia",nativeCurrency:{name:"Credits",symbol:"CREDITS",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/jubilant-horrible-ancha"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia-testnet-explorer.skalenodes.com",apiUrl:"https://base-sepolia-testnet-explorer.skalenodes.com/api"}}};function Jbe(e){let t=Kbe(e);return ame({chain:t,transport:a7()}).extend(d5)}function hln(){return Jbe("base-sepolia")}function Aln(){return Jbe("avalanche-fuji")}function zbe(e,t){let r=Kbe(e),i=o7({chain:r,transport:a7(),account:jU(t)});return f_t(r)?i.extend(d5).extend(xme()):i.extend(d5)}function pln(e){return zbe("base-sepolia",e)}function gln(e){return zbe("avalanche-fuji",e)}function yF(e){return typeof e=="object"&&e!==null&&"chain"in e&&"transport"in e}function zj(e){let t=e;return typeof e=="object"&&e!==null&&typeof t.address=="string"&&typeof t.type=="string"&&typeof t.sign=="function"&&typeof t.signMessage=="function"&&typeof t.signTypedData=="function"&&typeof t.signTransaction=="function"}function Kbe(e){if(!e)throw new Error("NETWORK environment variable is not set");switch(e){case"abstract":return fme;case"abstract-testnet":return lme;case"base":return rj;case"base-sepolia":return f5;case"avalanche":return hme;case"avalanche-fuji":return Ame;case"sei":return Eme;case"sei-testnet":return vme;case"polygon":return yme;case"polygon-amoy":return bme;case"peaq":return mme;case"story":return Rme;case"educhain":return pme;case"iotex":return gme;case"iotex-testnet":return _me;case"skale-base-sepolia":return lln;default:throw new Error(`Unsupported network: ${e}`)}}var _ln=new Set([2741,11124]);function f_t(e){return _ln.has(e.id)}var mln="https://api.devnet.solana.com",yln="https://api.mainnet-beta.solana.com",bln="wss://api.devnet.solana.com",Eln="wss://api.mainnet-beta.solana.com";function l_t(e){return bbe(e?e:mln)}function h_t(e){return bbe(e?e:yln)}function bF(e,t){if(e==="solana-devnet")return l_t(t);if(e==="solana")return h_t(t);throw new Error("Invalid network")}function vln(e,t){if(e==="solana-devnet")return Ube(t?d_t(t):bln);if(e==="solana")return Ube(t?d_t(t):Eln);throw new Error("Invalid network")}function d_t(e){return e.startsWith("http")?e.replace("http","ws"):e}function Rln(e){if(!y5.find(t=>t===e))throw new Error(`Unsupported SVM network: ${e}`);return bF(e)}async function Sln(e){let t=Blt.decode(e);if(t.length===64)return await r_t(t);if(t.length===32)return await n_t(t);throw new Error(`Unexpected key length: ${t.length}. Expected 32 or 64 bytes.`)}function A_t(e){return typeof e=="object"&&e!==null&&I7(e)}function $be(e){return yF(e)||zj(e)}function EF(e){return A_t(e)}function w7(e){return"evm"in e&&"svm"in e}var Kj={};LY(Kj,{authorizationPrimaryType:()=>Iln,authorizationTypes:()=>Ybe,config:()=>UY,createClientAvalancheFuji:()=>Aln,createClientSepolia:()=>hln,createConnectedClient:()=>Jbe,createSigner:()=>zbe,createSignerAvalancheFuji:()=>gln,createSignerSepolia:()=>pln,getChainFromNetwork:()=>Kbe,isAccount:()=>zj,isSignerWallet:()=>yF,isZkStackChain:()=>f_t,usdcABI:()=>ect});var Ybe={TransferWithAuthorization:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"validAfter",type:"uint256"},{name:"validBefore",type:"uint256"},{name:"nonce",type:"bytes32"}]},Iln="TransferWithAuthorization",p_t={};LY(p_t,{SvmAddressRegex:()=>Wbe});var Wbe=/^[1-9A-HJ-NP-Za-km-z]{32,44}$/,g_t=/^[A-Za-z0-9+/]*={0,2}$/;function $j(e){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?globalThis.btoa(e):fe.from(e).toString("base64")}var Cln=18,qbe=/^0x[0-9a-fA-F]{40}$/,Xbe=/^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$/,wln=/^0x[0-9a-fA-F]{64}$/,Oln=/^0x[0-9a-fA-F]+$/,Yj=["exact"],O7=[1],Wj=["insufficient_funds","invalid_exact_evm_payload_authorization_valid_after","invalid_exact_evm_payload_authorization_valid_before","invalid_exact_evm_payload_authorization_value","invalid_exact_evm_payload_signature","invalid_exact_evm_payload_undeployed_smart_wallet","invalid_exact_evm_payload_recipient_mismatch","invalid_exact_svm_payload_transaction","invalid_exact_svm_payload_transaction_amount_mismatch","invalid_exact_svm_payload_transaction_create_ata_instruction","invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee","invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset","invalid_exact_svm_payload_transaction_instructions","invalid_exact_svm_payload_transaction_instructions_length","invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction","invalid_exact_svm_payload_transaction_instructions_compute_price_instruction","invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high","invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked","invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked","invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts","invalid_exact_svm_payload_transaction_fee_payer_transferring_funds","invalid_exact_svm_payload_transaction_not_a_transfer_instruction","invalid_exact_svm_payload_transaction_receiver_ata_not_found","invalid_exact_svm_payload_transaction_sender_ata_not_found","invalid_exact_svm_payload_transaction_simulation_failed","invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata","invalid_network","invalid_payload","invalid_payment_requirements","invalid_scheme","invalid_payment","payment_expired","unsupported_scheme","invalid_x402_version","invalid_transaction_state","invalid_x402_version","settle_exact_svm_block_height_exceeded","settle_exact_svm_transaction_confirmation_timed_out","unsupported_scheme","unexpected_settle_error","unexpected_verify_error"],Vj=e=>Number.isInteger(Number(e))&&Number(e)>=0,Nln=e=>t=>t.length<=e,Zbe=jn.string().regex(qbe).or(jn.string().regex(Wbe)),xln=jn.string().regex(Xbe).or(jn.string().regex(Wbe)),K3=jn.object({scheme:jn.enum(Yj),network:mF,maxAmountRequired:jn.string().refine(Vj),resource:jn.string().url(),description:jn.string(),mimeType:jn.string(),outputSchema:jn.record(jn.any()).optional(),payTo:Zbe,maxTimeoutSeconds:jn.number().int(),asset:xln,extra:jn.record(jn.any()).optional()}),__t=jn.object({from:jn.string().regex(qbe),to:jn.string().regex(qbe),value:jn.string().refine(Vj).refine(Nln(Cln)),validAfter:jn.string().refine(Vj),validBefore:jn.string().refine(Vj),nonce:jn.string().regex(wln)}),m_t=jn.object({signature:jn.string().regex(Oln),authorization:__t}),y_t=jn.object({transaction:jn.string().regex(g_t)}),Xj=jn.object({x402Version:jn.number().refine(e=>O7.includes(e)),scheme:jn.enum(Yj),network:mF,payload:jn.union([m_t,y_t])}),Tln=jn.object({x402Version:jn.number().refine(e=>O7.includes(e)),error:jn.enum(Wj).optional(),accepts:jn.array(K3).optional(),payer:jn.string().regex(Xbe).optional()}),Bln=jn.enum(["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"]),b_t=jn.object({type:jn.literal("http"),method:Bln,queryParams:jn.record(jn.string(),jn.string()).optional(),bodyType:jn.enum(["json","form-data","multipart-form-data","text","binary"]).optional(),bodyFields:jn.record(jn.string(),jn.any()).optional(),headerFields:jn.record(jn.string(),jn.any()).optional()}),Mln=jn.discriminatedUnion("type",[b_t]),E_t=jn.object({resource:jn.string(),type:jn.enum(["http"]),x402Version:jn.number().refine(e=>O7.includes(e)),accepts:jn.array(K3),lastUpdated:jn.date(),metadata:jn.record(jn.any()).optional()}),Dln=jn.object({paymentPayload:Xj,paymentRequirements:K3}),kln=jn.object({paymentPayload:Xj,paymentRequirements:K3}),Pln=jn.object({isValid:jn.boolean(),invalidReason:jn.enum(Wj).optional(),payer:Zbe.optional()}),Lln=jn.object({success:jn.boolean(),errorReason:jn.enum(Wj).optional(),payer:Zbe.optional(),transaction:jn.string().regex(Xbe),network:mF}),Uln=jn.object({type:jn.string().optional(),limit:jn.number().optional(),offset:jn.number().optional()}),Fln=jn.object({x402Version:jn.number().refine(e=>O7.includes(e)),items:jn.array(E_t),pagination:jn.object({limit:jn.number(),offset:jn.number(),total:jn.number()})}),v_t=jn.object({x402Version:jn.number().refine(e=>O7.includes(e)),scheme:jn.enum(Yj),network:mF,extra:jn.record(jn.any()).optional()}),Qln=jn.object({kinds:jn.array(v_t)});function vF(e){if(Jj.has(e))return Jj.get(e);if(Gbe.has(e))return Gbe.get(e);throw new Error(`Unsupported network: ${e}`)}var R_t={};LY(R_t,{createDevnetRpcClient:()=>l_t,createMainnetRpcClient:()=>h_t,createSignerFromBase58:()=>Sln,createSvmConnectedClient:()=>Rln,decodeTransactionFromPayload:()=>Hln,getRpcClient:()=>bF,getRpcSubscriptions:()=>vln,getTokenPayerFromTransaction:()=>Gln,isSignerWallet:()=>A_t,signAndSimulateTransaction:()=>qln,signTransactionWithSigner:()=>S_t});function Hln(e){try{let r=iAt().encode(e.transaction);return Xpt().decode(r)}catch(t){throw console.error("error",t),new Error("invalid_exact_svm_payload_transaction")}}function Gln(e){let t=ipt().decode(e.messageBytes),r=t.staticAccounts??[],i=t.instructions??[];for(let n of i){let o=n.programAddressIndex,d=r[o].toString();if(d===qj.toString()||d===_F.toString()){let g=n.accountIndices??[];if(g.length>=4){let y=g[3],_=r[y].toString();if(_)return _}}}return""}async function qln(e,t,r){let i=await S_t(e,t),n=R7(i),o={sigVerify:!0,replaceRecentBlockhash:!1,commitment:"confirmed",encoding:"base64",accounts:void 0,innerInstructions:void 0,minContextSlot:void 0};return await r.simulateTransaction(n,o).send()}async function S_t(e,t){if(S7(e)){let[r]=await e.modifyAndSignTransactions([t]);if(!r)throw new Error("transaction_signer_failed_to_return_transaction");return r}if(m5(e)){let[r]=await e.signTransactions([t]);if(!r)throw new Error("transaction_signer_failed_to_return_signatures");return Vln(t,r)}throw new Error("transaction_signer_must_support_offline_signing")}function Vln(e,t){return Object.freeze({...e,signatures:Object.freeze({...e.signatures,...t})})}var Jln=jn.object({paymentHeader:jn.string(),paymentRequirements:K3});J();K();z();J();K();z();J();K();z();J();K();z();var jbe="ComputeBudget111111111111111111111111111111";function Kln(e){let t="data"in e?e.data:e;if(_y(t,r1().encode(0),0))return 0;if(_y(t,r1().encode(1),0))return 1;if(_y(t,r1().encode(2),0))return 2;if(_y(t,r1().encode(3),0))return 3;if(_y(t,r1().encode(4),0))return 4;throw new Error("The provided instruction could not be identified as a computeBudget instruction.")}var $ln=2;function Yln(){return h5(nF([["discriminator",r1()],["units",mj()]]),e=>({...e,discriminator:$ln}))}function Zj(e,t){let r=t?.programAddress??jbe,i={...e};return Object.freeze({data:Yln().encode(i),programAddress:r})}var Wln=3;function Xln(){return h5(nF([["discriminator",r1()],["microLamports",yj()]]),e=>({...e,discriminator:Wln}))}function Zln(e,t){let r=t?.programAddress??jbe,i={...e};return Object.freeze({data:Xln().encode(i),programAddress:r})}var jln=14e5;function ehn(e){let t=thn(e);if(t<0)return null;let r=f2().decode(e.instructions[t].data,1);return{index:t,units:r}}function thn(e){return e.instructions.findIndex(rhn)}function rhn(e){return e.programAddress===jbe&&Kln(e.data)===2}function nhn(e,t){let r=_=>typeof e=="function"?e(_):e,i=ehn(t);if(!i)return Qye(Zj({units:r(null)}),t);let{index:n,units:o}=i,d=r(o);if(d===o)return t;let g=Zj({units:d}),y=[...t.instructions];return y.splice(n,1,g),Object.freeze({...t,instructions:y})}async function ihn({transactionMessage:e,...t}){let r=!Nj(e),i=n1(e,n=>nhn(jln,n),Mj);return await ohn({transaction:i,replaceRecentBlockhash:r,...t})}async function ohn({abortSignal:e,rpc:t,transaction:r,...i}){let n=R7(r);try{let{value:{err:o,unitsConsumed:d}}=await t.simulateTransaction(n,{...i,encoding:"base64",sigVerify:!1}).send({abortSignal:e});if(d==null)throw new Ud(Aj);let g=d>4294967295n?4294967295:Number(d);if(o)throw new Ud(pj,{cause:o,unitsConsumed:g});return g}catch(o){throw zht(o,pj)?o:new Ud(Aj,{cause:o})}}function I_t({rpc:e}){return async function(r,i){return await ihn({...i,rpc:e,transactionMessage:r})}}function C_t(e,t){return Qye(Zln({microLamports:e}),t)}function eEe(e){let t;if(C7.includes(e.network)){let r=e.payload;return t={...e,payload:{...r,authorization:Object.fromEntries(Object.entries(r.authorization).map(([i,n])=>[i,typeof n=="bigint"?n.toString():n]))}},$j(JSON.stringify(t))}if(y5.includes(e.network))return t={...e,payload:e.payload},$j(JSON.stringify(t));throw new Error("Invalid network")}async function shn(e,{from:t,to:r,value:i,validAfter:n,validBefore:o,nonce:d},{asset:g,network:y,extra:_}){let I=vF(y),N=_?.name,T=_?.version,M={types:Ybe,domain:{name:N,version:T,chainId:I,verifyingContract:hy(g)},primaryType:"TransferWithAuthorization",message:{from:hy(t),to:hy(r),value:i,validAfter:n,validBefore:o,nonce:d}};if(yF(e))return{signature:await e.signTypedData(M)};if(zj(e)&&e.signTypedData)return{signature:await e.signTypedData(M)};throw new Error("Invalid wallet client provided does not support signTypedData")}function chn(){let e=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:jst("crypto").webcrypto;return Uo(e.getRandomValues(new Uint8Array(32)))}function w_t(e,t,r){let i=chn(),n=BigInt(Math.floor(Date.now()/1e3)-600).toString(),o=BigInt(Math.floor(Date.now()/1e3+r.maxTimeoutSeconds)).toString();return{x402Version:t,scheme:r.scheme,network:r.network,payload:{signature:void 0,authorization:{from:e,to:r.payTo,value:r.maxAmountRequired,validAfter:n.toString(),validBefore:o.toString(),nonce:i}}}}async function O_t(e,t,r){let{signature:i}=await shn(e,r.payload.authorization,t);return{...r,payload:{...r.payload,signature:i}}}async function uhn(e,t,r){let i=yF(e)?e.account.address:e.address,n=w_t(i,t,r);return O_t(e,r,n)}async function N_t(e,t,r){let i=await uhn(e,t,r);return eEe(i)}async function x_t(e,t,r,i){let n=await dhn(e,t,r,i);return eEe(n)}async function dhn(e,t,r,i){let n=await fhn(e,r,i),o=await i_t(n),d=R7(o);return{scheme:r.scheme,network:r.network,x402Version:t,payload:{transaction:d}}}async function fhn(e,t,r){let i=bF(t.network,r?.svmConfig?.rpcUrl),n=await lhn(e,t,r),o=t.extra?.feePayer,d=n1(apt({version:0}),N=>C_t(1,N),N=>spt(o,N),N=>Hye(n,N)),y=await I_t({rpc:i})(d),{value:_}=await i.getLatestBlockhash().send();return n1(d,N=>cpt(Zj({units:y}),N),N=>jAt(_,N))}async function lhn(e,t,r){let{asset:i,maxAmountRequired:n,payTo:o}=t,d=bF(t.network,r?.svmConfig?.rpcUrl),g=await c_t(d,i),y=g.programAddress;if(y.toString()!==qj.toString()&&y.toString()!==_F.toString())throw new Error("Asset was not created by a known token program");let[_]=await Hbe({mint:i,owner:e.address,tokenProgram:y}),[I]=await Hbe({mint:i,owner:o,tokenProgram:y});return[u_t({source:_,mint:i,destination:I,authority:e,amount:BigInt(n),decimals:g.data.decimals},{programAddress:y})]}async function tEe(e,t,r,i){if(r.scheme==="exact"){if(C7.includes(r.network)){let n=w7(e)?e.evm:e;if(!$be(n))throw new Error("Invalid evm wallet client provided");return await N_t(n,t,r)}if(y5.includes(r.network)){let n=w7(e)?e.svm:e;if(!EF(n))throw new Error("Invalid svm wallet client provided");return await x_t(n,t,r,i)}throw new Error("Unsupported network")}throw new Error("Unsupported scheme")}function rEe(e,t,r){let i=e.filter(o=>{let d=!r||o.scheme===r,g=!t||(Array.isArray(t)?t.includes(o.network):t==o.network);return d&&g}),n=i.filter(o=>o.asset===Rge(vF(o.network))?.usdcAddress);return n.length>0?n[0]:i.length>0?i[0]:e[0]}J();K();z();function T_t(e,t,r=BigInt(.1*10**6),i=rEe,n){return async(o,d)=>{var g;let y=await e(o,d);if(y.status!==402)return y;let{x402Version:_,accepts:I}=await y.json(),N=I.map(q=>K3.parse(q)),T=w7(t)?void 0:Kj.isSignerWallet(t)?Vbe[(g=t.chain)==null?void 0:g.id]:EF(t)?["solana","solana-devnet"]:void 0,M=i(N,T,"exact");if(BigInt(M.maxAmountRequired)>r)throw new Error("Payment amount exceeds maximum allowed");let D=await tEe(t,_,M,n);if(d&&d.__is402Retry)throw new Error("Payment already attempted");let P={...d,headers:{...d?.headers||{},"X-PAYMENT":D,"Access-Control-Expose-Headers":"X-PAYMENT-RESPONSE"},__is402Retry:!0};return await e(o,P)}}J();K();z();var RF=class extends Error{constructor(t){super(t),this.name=this.constructor.name}};var yg=class extends RF{constructor(t,r){super(`Failed request${r!==void 0?` (Status ${r})`:""}: ${t}`),this.status=r}},N7=class extends RF{constructor(t){super(t??"User has provided an invalid input")}},EE=class extends RF{constructor(t="Request was aborted"){super(t)}};J();K();z();function nEe(e,t=20971520){let r=e.getReader(),i=null;return new ReadableStream({async pull(n){if(i){let g=i.subarray(0,t);i=i.subarray(g.length),i.length===0&&(i=null),n.enqueue(g);return}let{value:o,done:d}=await r.read();if(d){n.close();return}if(!(o instanceof Uint8Array))throw new TypeError("Expected Uint8Array from source stream");o.byteLength<=t?n.enqueue(o):(n.enqueue(o.subarray(0,t)),i=o.subarray(t))}})}function B_t(e){return new ReadableStream({async start(t){for await(let r of e)t.enqueue(fe.isBuffer(r)?new Uint8Array(r):r);t.close()}})}function M_t({data:e,maxChunkSize:t=20971520}){return e instanceof Blob?()=>nEe(e.stream()):e instanceof ReadableStream?()=>{let r=e.getReader(),i=new ReadableStream({async pull(n){let{value:o,done:d}=await r.read();if(d){n.close();return}if(ArrayBuffer.isView(o))n.enqueue(new Uint8Array(o.buffer,o.byteOffset,o.byteLength));else if(o instanceof ArrayBuffer||o instanceof SharedArrayBuffer)n.enqueue(new Uint8Array(o));else throw new TypeError("Unsupported chunk type in ReadableStream")}});return nEe(i,t)}:()=>{let r;if(typeof e=="string")r=new TextEncoder().encode(e);else if(ArrayBuffer.isView(e))r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);else if(e instanceof ArrayBuffer||e instanceof SharedArrayBuffer)r=new Uint8Array(e);else throw new TypeError("Unsupported input type for stream");let i=new ReadableStream({start(n){n.enqueue(r),n.close()}});return nEe(i,t)}}var SF=e=>({retryDelay:t=>Math.min(1e3*2**(t-1),30*1e3),retries:5,onRetry:(t,r)=>{e?.debug(`Request failed, ${r}. Retry attempt #${t}...`)}}),iEe={"x-turbo-source-version":$J,"x-turbo-source-identifier":"turbo-sdk"},x7=class{constructor({url:t,logger:r,retryConfig:i=SF(r)}){this.logger=r,this.baseURL=t,this.retryConfig=i}async get({endpoint:t,signal:r,allowedStatuses:i=[200,202],headers:n}){return this.withRetry(()=>fetch(this.baseURL+t,{method:"GET",headers:{...iEe,...n},signal:r}),i)}async post({endpoint:t,signal:r,allowedStatuses:i=[200,202],headers:n,data:o,x402Options:d}){if(d!==void 0)return this.x402Post({signal:r,allowedStatuses:i,headers:n,data:o,x402Options:d});let{body:g,duplex:y}=await oEe(o);return(o instanceof fe||o instanceof Uint8Array?this.withRetry.bind(this):this.tryRequest.bind(this))(()=>fetch(this.baseURL+t,{method:"POST",headers:{...iEe,...n},body:g,signal:r,...y?{duplex:y}:{}}),i)}async tryRequest(t,r){try{let i=await t(),{status:n,statusText:o}=i;if(!r.includes(n)){let g=await i.text();throw new yg(g||o,n)}let d=i.headers.get("content-type");return d!==null&&d.includes("application/json")?i.json():i.text()}catch(i){throw i.name==="AbortError"||i.message.includes("aborted")?new EE("Request was aborted"):i}}async withRetry(t,r){let i=0,n;for(;i<this.retryConfig.retries;)try{return await this.tryRequest(t,r)}catch(o){if(o instanceof yg){if(n=o,this.retryConfig.onRetry(i+1,o),o.status!==void 0&&o.status>=400&&o.status<500)throw o;await qf(this.retryConfig.retryDelay(i+1)),i++}else throw o}throw new yg("Max retries reached - "+n?.message,n?.status)}async x402Post({signal:t,allowedStatuses:r,headers:i,data:n,x402Options:o}){let d="/x402/data-item/"+(o.unsignedData?"unsigned":"signed");this.logger.debug("Using X402 options for POST request",{endpoint:d,x402Options:o});let{body:g,duplex:y}=await oEe(n);return this.tryRequest(async()=>{let _=o.maxMUSDCAmount!==void 0?BigInt(o.maxMUSDCAmount.toString()):void 0;return await T_t(fetch,o.signer,_)(this.baseURL+d,{method:"POST",headers:{...iEe,...i},body:g,signal:t,...y?{duplex:y}:{}})},r)}},D_t=typeof window<"u"&&typeof window.document<"u";async function oEe(e){if(e instanceof ReadableStream)return Ahn()?{body:await new Response(e).blob()}:{body:e,duplex:"half"};if(e instanceof eI){let t=B_t(e);return oEe(t)}return D_t?{body:new Blob([new Uint8Array(e)])}:{body:Uint8Array.from(e)}}function Ahn(){if(!D_t)return!1;let e=navigator.userAgent;return e.includes("Firefox")||e.includes("Safari")&&!e.includes("Chrome")&&!e.includes("Chromium")}J();K();z();J();K();z();J();K();z();var b5=new xi("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),q0o=new xi("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),IF=new xi("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),V0o=new xi("So11111111111111111111111111111111111111112"),J0o=new xi("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");J();K();z();J();K();z();var $3=e=>{let t=e.decode.bind(e),r=e.encode.bind(e);return{decode:t,encode:r}};J();K();z();var aEe=po(RI(),1),Y3=po(k_t(),1);var eee=e=>t=>{let r=(0,aEe.blob)(e,t),{encode:i,decode:n}=$3(r),o=r;return o.decode=(d,g)=>{let y=n(d,g);return(0,Y3.toBigIntLE)(fe.from(y))},o.encode=(d,g,y)=>{let _=(0,Y3.toBufferLE)(d,e);return i(_,g,y)},o},tee=e=>t=>{let r=(0,aEe.blob)(e,t),{encode:i,decode:n}=$3(r),o=r;return o.decode=(d,g)=>{let y=n(d,g);return(0,Y3.toBigIntBE)(fe.from(y))},o.encode=(d,g,y)=>{let _=(0,Y3.toBufferBE)(d,e);return i(_,g,y)},o},ree=eee(8),odo=tee(8),yhn=eee(16),ado=tee(16),sdo=eee(24),cdo=tee(24),udo=eee(32),ddo=tee(32);J();K();z();var mdo=new fXe("1e+18");J();K();z();var P_t=po(RI(),1);var L_t=e=>{let t=(0,P_t.u8)(e),{encode:r,decode:i}=$3(t),n=t;return n.decode=(o,d)=>!!i(o,d),n.encode=(o,d,g)=>{let y=Number(o);return r(y,d,g)},n};J();K();z();var U_t=po(RI(),1);var sEe=e=>{let t=(0,U_t.blob)(32,e),{encode:r,decode:i}=$3(t),n=t;return n.decode=(o,d)=>{let g=i(o,d);return new xi(g)},n.encode=(o,d,g)=>{let y=o.toBuffer();return r(y,d,g)},n};J();K();z();var cEe=class extends Error{constructor(t){super(t)}};var nee=class extends cEe{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}};J();K();z();var iee;(function(e){e[e.InitializeMint=0]="InitializeMint",e[e.InitializeAccount=1]="InitializeAccount",e[e.InitializeMultisig=2]="InitializeMultisig",e[e.Transfer=3]="Transfer",e[e.Approve=4]="Approve",e[e.Revoke=5]="Revoke",e[e.SetAuthority=6]="SetAuthority",e[e.MintTo=7]="MintTo",e[e.Burn=8]="Burn",e[e.CloseAccount=9]="CloseAccount",e[e.FreezeAccount=10]="FreezeAccount",e[e.ThawAccount=11]="ThawAccount",e[e.TransferChecked=12]="TransferChecked",e[e.ApproveChecked=13]="ApproveChecked",e[e.MintToChecked=14]="MintToChecked",e[e.BurnChecked=15]="BurnChecked",e[e.InitializeAccount2=16]="InitializeAccount2",e[e.SyncNative=17]="SyncNative",e[e.InitializeAccount3=18]="InitializeAccount3",e[e.InitializeMultisig2=19]="InitializeMultisig2",e[e.InitializeMint2=20]="InitializeMint2",e[e.GetAccountDataSize=21]="GetAccountDataSize",e[e.InitializeImmutableOwner=22]="InitializeImmutableOwner",e[e.AmountToUiAmount=23]="AmountToUiAmount",e[e.UiAmountToAmount=24]="UiAmountToAmount",e[e.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",e[e.TransferFeeExtension=26]="TransferFeeExtension",e[e.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",e[e.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",e[e.Reallocate=29]="Reallocate",e[e.MemoTransferExtension=30]="MemoTransferExtension",e[e.CreateNativeMint=31]="CreateNativeMint",e[e.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",e[e.InterestBearingMintExtension=33]="InterestBearingMintExtension",e[e.CpiGuardExtension=34]="CpiGuardExtension",e[e.InitializePermanentDelegate=35]="InitializePermanentDelegate",e[e.TransferHookExtension=36]="TransferHookExtension",e[e.MetadataPointerExtension=39]="MetadataPointerExtension",e[e.GroupPointerExtension=40]="GroupPointerExtension",e[e.GroupMemberPointerExtension=41]="GroupMemberPointerExtension",e[e.ScaledUiAmountExtension=43]="ScaledUiAmountExtension",e[e.PausableExtension=44]="PausableExtension"})(iee||(iee={}));J();K();z();var E5=po(RI(),1);J();K();z();function F_t(e,t,r){if(r.length){e.push({pubkey:t,isSigner:!1,isWritable:!1});for(let i of r)e.push({pubkey:i instanceof xi?i:i.publicKey,isSigner:!0,isWritable:!1})}else e.push({pubkey:t,isSigner:!0,isWritable:!1});return e}J();K();z();var CF=po(RI(),1);var Q_t=(0,CF.struct)([(0,CF.u8)("instruction"),ree("amount"),(0,CF.u8)("decimals")]);function H_t(e,t,r,i,n,o,d=[],g=b5){let y=F_t([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!1,isWritable:!0}],i,d),_=fe.alloc(Q_t.span);return Q_t.encode({instruction:iee.TransferChecked,amount:BigInt(n),decimals:o},_),new ms({keys:y,programId:g,data:_})}var bhn=(0,E5.struct)([(0,E5.u32)("mintAuthorityOption"),sEe("mintAuthority"),ree("supply"),(0,E5.u8)("decimals"),L_t("isInitialized"),(0,E5.u32)("freezeAuthorityOption"),sEe("freezeAuthority")]),yfo=bhn.span;function uEe(e,t,r=!1,i=b5,n=IF){if(!r&&!xi.isOnCurve(t.toBuffer()))throw new nee;let[o]=xi.findProgramAddressSync([t.toBuffer(),i.toBuffer(),e.toBuffer()],n);return o}J();K();z();function G_t(e,t,r,i,n=b5,o=IF){return Ehn(e,t,r,i,fe.from([1]),n,o)}function Ehn(e,t,r,i,n,o=b5,d=IF){let g=[{pubkey:e,isSigner:!0,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:Td.programId,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!1,isWritable:!1}];return new ms({keys:g,programId:d,data:n})}var fEe=po(oee(),1);J();K();z();var dEe=po(oee(),1);var Gfo=e=>e,V_t=e=>new Qa(e).times(1e9).valueOf(),wF="MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",aee=class{constructor({logger:t=ku.default,gatewayUrl:r=af.solana,pollingOptions:i={maxAttempts:10,pollingIntervalMs:2500,initialBackoffMs:500}}={}){this.logger=t,this.gatewayUrl=r,this.connection=new TI(r,"confirmed"),this.pollingOptions=i}async createAndSubmitTx({target:t,tokenAmount:r,signer:i,turboCreditDestinationAddress:n}){if(i.signer instanceof Pm){let I=await i.sendTransaction({amount:r,target:t,gatewayUrl:this.gatewayUrl,turboCreditDestinationAddress:n});return{target:t,id:I}}let o=new xi(dEe.default.encode(Uint8Array.from(await i.getPublicKey()))),d=new Us({feePayer:o,...await this.connection.getLatestBlockhash()});d.add(Td.transfer({fromPubkey:o,toPubkey:new xi(t),lamports:+new Qa(r)})),n!==void 0&&d.add(new ms({programId:new xi(wF),keys:[],data:fe.from("turboCreditDestinationAddress="+n)}));let g=d.serializeMessage(),y=await i.signData(Uint8Array.from(g));d.addSignature(o,fe.from(y));let _=dEe.default.encode(y);return await this.submitTx(d,_),{id:_,target:t}}async submitTx(t,r){if(this.logger.debug("Submitting fund transaction...",{id:r}),await this.connection.sendRawTransaction(t.serialize(),{maxRetries:this.pollingOptions.maxAttempts}),t.recentBlockhash===void 0||t.lastValidBlockHeight===void 0)throw new Error("Failed to submit Transaction -- missing blockhash or lastValidBlockHeight from transaction creation. Solana Gateway Url:"+this.gatewayUrl);await this.connection.confirmTransaction({signature:r,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},"finalized")}async pollTxAvailability({txId:t}){let{maxAttempts:r,pollingIntervalMs:i,initialBackoffMs:n}=this.pollingOptions;this.logger.debug("Polling for transaction...",{txId:t,pollingOptions:this.pollingOptions}),await qf(n);let o=0;for(;o<r;){let d;o++;try{d=await this.connection.getSignatureStatus(t)}catch(g){this.logger.debug("Failed to poll for transaction...",{err:g})}if(d&&d.value&&d.value.err!==null)throw new Error(`Transaction failed: ${d.value.err}`);if(d&&d.value&&d.value.slot!==null){this.logger.debug("Transaction found!",{txId:t,status:d});return}this.logger.debug("Transaction not found, polling...",{txId:t,attempts:o,maxAttempts:r,pollingIntervalMs:i}),await qf(i)}throw new Error("Transaction not found after polling, transaction id: "+t)}};var Shn="DcNnMuFxwhgV4WY1HVSaSEgr92bv2b1vUvEKiNxWqHdF",Ihn="6vTw5CysRXQ4ybbHkDUiisHWVsBeMtUzYvJqs2iqHyaN",Chn=6,see=class{constructor({gatewayUrl:t=af.solana,logger:r=ku.default,pollingOptions:i={maxAttempts:10,pollingIntervalMs:2500,initialBackoffMs:500}}={}){this.gatewayUrl=t,this.connection=new TI(t,"confirmed"),this.pollingOptions=i,this.logger=r,t.includes("devnet")?this.mintAddress=Ihn:this.mintAddress=Shn}async createAndSubmitTx({target:t,signer:r,tokenAmount:i,turboCreditDestinationAddress:n}){let o=new xi(fEe.default.encode(Uint8Array.from(await r.getPublicKey()))),d=new xi(t),g=new xi(this.mintAddress),y=uEe(g,o),_=uEe(g,d),I=new Us({feePayer:o,...await this.connection.getLatestBlockhash()});I.add(G_t(o,_,d,g)),I.add(H_t(y,g,_,o,BigInt(new Qa(i).toFixed(0)),Chn)),n!==void 0&&I.add(new ms({programId:new xi(wF),keys:[],data:fe.from("turboCreditDestinationAddress="+n)}));let N=I.serializeMessage(),T=await r.signData(Uint8Array.from(N));I.addSignature(o,fe.from(T));let M=fEe.default.encode(T);return await this.submitTx(I,M),this.logger.debug("Submitted ARIO SPL transfer transaction...",{id:M,target:t,tokenAmount:i,fromAta:y.toBase58(),toAta:_.toBase58(),mint:g.toBase58()}),{id:M,target:t,reward:"0"}}async submitTx(t,r){if(this.logger.debug("Submitting ARIO fund transaction...",{id:r}),await this.connection.sendRawTransaction(t.serialize(),{maxRetries:this.pollingOptions.maxAttempts}),t.recentBlockhash===void 0||t.lastValidBlockHeight===void 0)throw new Error("Failed to submit Transaction -- missing blockhash or lastValidBlockHeight from transaction creation. Solana Gateway Url:"+this.gatewayUrl);await this.connection.confirmTransaction({signature:r,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},"finalized")}async pollTxAvailability({txId:t}){let{maxAttempts:r,pollingIntervalMs:i,initialBackoffMs:n}=this.pollingOptions;this.logger.debug("Polling for ARIO SPL transaction...",{txId:t,pollingOptions:this.pollingOptions,gatewayUrl:this.gatewayUrl}),await qf(n);let o=0;for(;o<r;){let d;o++;try{let g=await this.connection.getSignatureStatuses([t],{searchTransactionHistory:!0});d={context:g.context,value:g.value[0]}}catch(g){this.logger.debug("Failed to poll ARIO SPL transaction...",{err:g})}if(d&&d.value&&d.value.err!==null)throw new Error(`Transaction failed: ${d.value.err}`);if(d&&d.value&&d.value.slot!==null){this.logger.debug("Transaction found!",{txId:t,status:d});return}this.logger.debug("ARIO SPL transaction not found, polling...",{txId:t,attempts:o,maxAttempts:r,pollingIntervalMs:i}),await qf(i)}throw new Error("Transaction not found after polling, transaction id: "+t)}},tlo=e=>e,J_t=e=>new Qa(e).times(1e6).valueOf();J();K();z();var cee=po(ede(),1);J();K();z();var t2t=po(e2t(),1);IA();function r2t(e){return lEe(OF(e))}function OF(e){let t=e.length%4===0?0:4-e.length%4,r=e.replace(/-/g,"+").replace(/_/g,"/").concat("=".repeat(t));return fe.from(r,"base64")}function W3(e){return(0,t2t.bufferTob64Url)(Uint8Array.from(e))}function lEe(e){return W3(vm("sha256").update(Uint8Array.from(e)).digest())}var Mhn=cee.default.default?.default||cee.default.default||cee.default,uee=class{constructor({gatewayUrl:t="https://turbo-gateway.com",arweave:r,logger:i=ku.default,mintU:n=!0,pollingOptions:o={maxAttempts:10,pollingIntervalMs:5e3,initialBackoffMs:15e3}}={}){let d=new URL(t);this.arweave=r??new Mhn({host:d.hostname,port:d.port,protocol:d.protocol.replace(":","")}),this.logger=i,this.mintU=n,this.pollingOptions=o}async createAndSubmitTx({feeMultiplier:t,target:r,tokenAmount:i,signer:n,turboCreditDestinationAddress:o}){let d=await this.arweave.createTransaction({target:r,quantity:i.toString(),data:""});t!==1&&(d.reward=Qa(d.reward).times(Qa(t)).toFixed(0,Qa.ROUND_UP)),this.mintU&&(d.addTag("App-Name","SmartWeaveAction"),d.addTag("App-Version","0.3.0"),d.addTag("Contract","KTzTXT_ANmF84fWEKHzWURD1LWd9QaFR9yfYUwH2Lxw"),d.addTag("Input",JSON.stringify({function:"mint"}))),o!==void 0&&d.addTag("Turbo-Credit-Destination-Address",o);let g=W3(await n.getPublicKey());d.setOwner(g);let y=await d.getSignatureData(),_=await n.signData(y),I=fe.from(_),N=lEe(I);return d.setSignature({id:N,owner:g,signature:W3(I)}),this.logger.debug("Submitting fund transaction...",{id:N}),await this.submitTx(d),{id:N,target:r,reward:d.reward}}async pollTxAvailability({txId:t}){let{maxAttempts:r,pollingIntervalMs:i,initialBackoffMs:n}=this.pollingOptions;this.logger.debug("Polling for transaction...",{txId:t,maxAttempts:r,pollingIntervalMs:i,gatewayUrl:this.arweave.api.getConfig().host}),await qf(n);let o=0;for(;o<r;){let d;o++;try{let g=`
|
|
query {
|
|
transactions(ids: ["${t}"]) {
|
|
edges {
|
|
node {
|
|
recipient
|
|
owner {
|
|
address
|
|
}
|
|
quantity {
|
|
winston
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;d=(await this.arweave.api.post("/graphql",{query:g}))?.data?.data?.transactions?.edges[0]?.node}catch(g){this.logger.debug("Failed to poll for transaction...",{err:g})}if(d)return;this.logger.debug("Transaction not found...",{txId:t,attempts:o,maxAttempts:r,pollingIntervalMs:i}),await qf(i)}throw new Error("Transaction not found after polling, transaction id: "+t)}async submitTx(t){try{let r=await this.arweave.transactions.post(t);if(r.status!==200)throw new Error(`Failed to post transaction -- Status ${r.status}, ${r.statusText}, ${r.data}`);this.logger.debug("Successfully posted fund transaction...",{tx:t})}catch(r){throw new Error(`Failed to post transaction -- ${r instanceof Error?r.message:r}`)}this.logger.debug("Posted transaction...",{tx:t})}},ylo=e=>e,n2t=e=>new Qa(e).times(1e12).valueOf();J();K();z();J();K();z();var Olo=e=>e,NF=e=>new Qa(e).times(1e18).valueOf(),hEe={initialBackoffMs:25e3,maxAttempts:10,pollingIntervalMs:1500},vE=class{constructor({logger:t=ku.default,gatewayUrl:r=af.ethereum,pollingOptions:i=hEe}={}){this.logger=t,this.gatewayUrl=r,this.pollingOptions=i,this.rpcProvider=new s3.JsonRpcProvider(r)}async createAndSubmitTx({target:t,tokenAmount:r,signer:i,turboCreditDestinationAddress:n}){try{let o=r.shiftedBy(-18);return{id:await i.sendTransaction({target:t,amount:o,gatewayUrl:this.gatewayUrl,turboCreditDestinationAddress:n}),target:t}}catch(o){throw this.logger.error("Error creating and submitting Ethereum tx",{error:o instanceof Error?o.message:o,target:t,tokenAmount:r,rpcEndpoint:this.gatewayUrl}),o}}async getTxAvailability(t){let r=await this.rpcProvider.getTransaction(t);return r?(this.logger.debug("Transaction is available on chain",{txId:t,tx:r}),!0):(this.logger.debug("Transaction not yet available on chain",{txId:t}),!1)}async pollTxAvailability({txId:t}){await new Promise(i=>setTimeout(i,this.pollingOptions.initialBackoffMs));let r=0;for(;r<this.pollingOptions.maxAttempts;){try{if(await this.getTxAvailability(t))return}catch(i){this.logger.debug("Error polling for tx",{txId:t,e:i})}await new Promise(i=>setTimeout(i,this.pollingOptions.pollingIntervalMs)),r++}throw new Error(`Transaction ${t} not found after polling!`)}};function xF(e){if(e!==void 0)return vn(rc("turboCreditDestinationAddress="+e))}var TF={initialBackoffMs:2500,maxAttempts:10,pollingIntervalMs:750},dee=class extends vE{constructor({logger:t,gatewayUrl:r=af["base-eth"],pollingOptions:i=TF}={}){super({logger:t,gatewayUrl:r,pollingOptions:i})}async getTxAvailability(t){let r=await this.rpcProvider.getTransactionReceipt(t);if(r){let i=await r.confirmations();if(i>=1)return this.logger.debug("Transaction is available on chain",{txId:t,tx:r,confirmations:i}),!0}return this.logger.debug("Transaction not yet available on chain",{txId:t,tx:r}),!1}};J();K();z();var B7=class extends vE{constructor({tokenContractAddress:t,logger:r=ku.default,gatewayUrl:i=af.ethereum,pollingOptions:n}){super({logger:r,gatewayUrl:i,pollingOptions:n}),this.tokenContract=new s3.Contract(t,["function decimals() view returns (uint8)","function balanceOf(address) view returns (uint256)","function transfer(address to, uint256 value) returns (bool)"],this.rpcProvider)}async createAndSubmitTx({target:t,tokenAmount:r,signer:i,turboCreditDestinationAddress:n}){try{let o,d;if(i.signer instanceof m0){let T=new i0(this.gatewayUrl),M=fe.from(i.signer.key).toString("hex");d=new zR(M,T),o=this.tokenContract.connect(d)}else if(i.walletAdapter!==void 0&&ON(i.walletAdapter))d=i.walletAdapter.getSigner(),o=this.tokenContract.connect(d);else throw new Error("Unsupported signer -- must be EthereumSigner or have a walletAdapter implementing getSigner");let y=o.interface.encodeFunctionData("transfer",[t,r.toString()]),_=xF(n);_!==void 0&&(y+=_.slice(2));let I={to:await o.getAddress(),data:y};this.logger.debug("Submitting ERC20 transfer",{target:t,tokenAmount:r.toString(),rpcEndpoint:this.gatewayUrl,txRequest:I});let N=await d.sendTransaction(I);return this.logger.debug("ERC20 transfer submitted",{txHash:N.hash,target:t,tx:N}),{id:N.hash,target:t}}catch(o){throw this.logger.error("Error creating/submitting ERC20 tx",{error:o instanceof Error?o.message:o,target:t,tokenAmount:r,rpcEndpoint:this.gatewayUrl}),o}}};J();K();z();var Ere=po(R_(),1),vre=po($l(),1),RRt=po(Ps(),1),SRt=po(SS(),1),G5=po(vRt(),1);function _Rn(e){return e.tx_response!==void 0}var X6o=e=>e,IRt=e=>new Qa(e).times(1e6).valueOf(),bre=class{constructor({logger:t=ku.default,gatewayUrl:r=af.kyve,pollingOptions:i={maxAttempts:5,pollingIntervalMs:1e3,initialBackoffMs:500}}){this.logger=t,this.gatewayUrl=r,this.pollingOptions=i}async createAndSubmitTx({target:t,tokenAmount:r,signer:i}){this.logger.debug("Creating and submitting transaction...",{target:t,tokenAmount:r,signer:i});let n=this.gatewayUrl.includes("kaon")?"kaon-1":this.gatewayUrl.includes("korellia")?"korellia-2":"kyve-1";return{id:await this.sendTokens({chainId:n,privateKeyUint8Array:i.signer.key,recipientAddress:t,amount:r.toString()}),target:t}}async pollTxAvailability({txId:t}){let{maxAttempts:r,pollingIntervalMs:i,initialBackoffMs:n}=this.pollingOptions;this.logger.debug("Polling for transaction...",{txId:t,pollingOptions:this.pollingOptions}),await qf(n);let o=0;for(;o<r;){let d;o++;try{let g=await fetch(this.gatewayUrl+"/cosmos/tx/v1beta1/txs/"+t);g.ok&&(d=await g.json())}catch(g){this.logger.debug("Failed to poll for transaction...",{err:g})}if(d!==void 0&&_Rn(d)){if(d.tx_response.code!==0)throw new Error(`Transaction failed: ${d.tx_response.code}`);return}this.logger.debug("Transaction not found, polling...",{txId:t,attempts:o,maxAttempts:r,pollingIntervalMs:i}),await qf(i)}throw new Error("Transaction not found after polling, transaction id: "+t)}async sendTokens({chainId:t,privateKeyUint8Array:r,recipientAddress:i,amount:n,gasMultiplier:o=1.5}){let d=bRn[t];if(d===void 0)throw new Error(`Unsupported chain ID: ${t}`);let g=await SRt.DirectSecp256k1Wallet.fromKey(r,"kyve"),[y]=await g.getAccounts(),_=y.address,I=G5.GasPrice.fromString(`${d.gasPrice}${d.coinDenom}`),N=await G5.SigningStargateClient.connectWithSigner(d.rpc,g,{gasPrice:I}),M={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:_,toAddress:i,amount:[{denom:d.coinDenom,amount:n}]}},D=await N.simulate(_,[M],""),P=(0,G5.calculateFee)(Math.round(D*o),G5.GasPrice.fromString(`${d.gasPrice}${d.coinDenom}`));return(await N.sendTokens(_,i,[{denom:d.coinDenom,amount:n}],P,"")).transactionHash}};function mRn(e){return new m0(e)}async function yRn(e){let t=await Ere.Secp256k1HdWallet.fromMnemonic(e,{prefix:"kyve"});return(0,RRt.toHex)(vre.Slip10.derivePath(vre.Slip10Curve.Secp256k1,t.seed,(0,Ere.makeCosmoshubPath)(0)).privkey)}async function Z6o(e){let t=await yRn(e);return mRn(t)}var bRn={"kyve-1":{chainId:"kyve-1",chainName:"KYVE",rpc:"https://rpc.kyve.network",rest:"https://api.kyve.network",coin:"KYVE",coinDenom:"ukyve",coinDecimals:6,gasPrice:62.5},"kaon-1":{chainId:"kaon-1",chainName:"KYVE Kaon",rpc:"https://rpc.kaon.kyve.network",rest:"https://api.kaon.kyve.network",coin:"KYVE",coinDenom:"tkyve",coinDecimals:6,gasPrice:.02},"korellia-2":{chainId:"korellia-2",chainName:"KYVE Korellia",rpc:"https://rpc.korellia.kyve.network",rest:"https://api.korellia.kyve.network",coin:"KYVE",coinDenom:"tkyve",coinDecimals:6,gasPrice:62.5},"kyve-beta":{chainId:"kyve-beta",chainName:"KYVE-Beta",rpc:"https://rpc.beta.kyve.network",rest:"https://api.beta.kyve.network",coin:"KYVE",coinDenom:"tkyve",coinDecimals:6,gasPrice:2},"kyve-alpha":{chainId:"kyve-alpha",chainName:"KYVE Alpha",rpc:"https://rpc.alpha.kyve.network",rest:"https://api.alpha.kyve.network",coin:"KYVE",coinDenom:"tkyve",coinDecimals:6,gasPrice:2},"kyve-local":{chainId:"kyve-local",chainName:"KYVE Local",rpc:"http://0.0.0.0:26657",rest:"http://0.0.0.0:1317",coin:"KYVE",coinDenom:"tkyve",coinDecimals:6,gasPrice:2}};J();K();z();var cTe=NF,uTe={maxAttempts:10,initialBackoffMs:5e3,pollingIntervalMs:1e3},zQ=class extends vE{constructor({logger:t=ku.default,gatewayUrl:r=af.pol,pollingOptions:i=uTe}={}){super({logger:t,gatewayUrl:r,pollingOptions:i})}};J();K();z();var ERn=(e=!1)=>({ethereum:{tokenContractAddress:e?IRn:vRn,rpcEndpoint:e?PY.ethereum:af.ethereum,defaultPollingOptions:hEe},base:{tokenContractAddress:e?CRn:RRn,rpcEndpoint:e?PY["base-eth"]:af["base-eth"],defaultPollingOptions:TF},polygon:{tokenContractAddress:e?wRn:SRn,rpcEndpoint:e?PY.pol:af.pol,defaultPollingOptions:uTe}}),vRn="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",RRn="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",SRn="0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",IRn="0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",CRn="0x036CbD53842c5426634e7929541eC2318f3dCF7e",wRn="0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582";var KQ=e=>new Qa(e).times(1e6).valueOf(),oM=class extends B7{constructor({network:t="ethereum",logger:r,gatewayUrl:i,tokenContractAddress:n,pollingOptions:o,useDevnet:d}={}){d===void 0&&(d=["sepolia","amoy"].some(N=>(i??"").toLowerCase().includes(N)));let{tokenContractAddress:g,rpcEndpoint:y,defaultPollingOptions:_}=ERn(d)[t];super({tokenContractAddress:n??g,logger:r,gatewayUrl:i??y,pollingOptions:o??_})}};var ORn="0x138746adfA52909E5920def027f5a8dc1C7EfFb6",wRt={arweave:e=>new uee(e),ario:e=>new see(e),solana:e=>new aee(e),ethereum:e=>new vE(e),"base-eth":e=>new dee(e),kyve:e=>new bre(e),matic:e=>new zQ(e),pol:e=>new zQ(e),usdc:e=>new oM({network:"ethereum",...e}),"base-usdc":e=>new oM({network:"base",...e}),"polygon-usdc":e=>new oM({network:"polygon",...e}),"base-ario":e=>new B7({...e,pollingOptions:e.pollingOptions??TF,tokenContractAddress:ORn,gatewayUrl:e.gatewayUrl??af["base-ario"]})},Rre=18,dTe=6,CRt=6,Sre={arweave:12,ario:CRt,"base-ario":CRt,solana:9,ethereum:Rre,"base-eth":Rre,kyve:6,matic:Rre,pol:Rre,usdc:dTe,"base-usdc":dTe,"polygon-usdc":dTe},$Q={arweave:e=>n2t(e),ario:e=>J_t(e),"base-ario":e=>KQ(e),solana:e=>V_t(e),ethereum:e=>NF(e),"base-eth":e=>NF(e),kyve:e=>IRt(e),matic:e=>cTe(e),pol:e=>cTe(e),usdc:e=>KQ(e),"base-usdc":e=>KQ(e),"polygon-usdc":e=>KQ(e)};function DIo(e){return KJ.includes(e)}var ORt="https://payment.ardrive.dev",Cre="https://payment.ardrive.io",q5=class{constructor({url:t=Cre,logger:r=ku.default,retryConfig:i=SF(r),token:n="arweave"}){this.logger=r,this.httpService=new x7({url:`${t}/v1`,retryConfig:i,logger:this.logger}),this.token=n,this.url=t}async getBalance(t){let r=await this.httpService.get({endpoint:`/account/balance/${this.token}?address=${t}`,allowedStatuses:[200,404]});return r.winc?r:{winc:"0",controlledWinc:"0",effectiveBalance:"0",givenApprovals:[],receivedApprovals:[]}}getFiatRates(){return this.httpService.get({endpoint:"/rates"})}getFiatToAR({currency:t}){return this.httpService.get({endpoint:`/rates/${t}`})}getSupportedCountries(){return this.httpService.get({endpoint:"/countries"})}getSupportedCurrencies(){return this.httpService.get({endpoint:"/currencies"})}async getUploadCosts({bytes:t}){let r=t.map(n=>this.httpService.get({endpoint:`/price/bytes/${n}`}));return await Promise.all(r)}getWincForFiat({amount:t,promoCodes:r=[],nativeAddress:i="placeholder"}){return this.httpService.get({endpoint:`/price/${t.type}/${t.amount}?destinationAddress=${i}&${this.appendPromoCodesToQuery(r)}`})}async getWincForToken({tokenAmount:t}){let{actualPaymentAmount:r,fees:i,winc:n}=await this.httpService.get({endpoint:`/price/${this.token}/${t}`});return{winc:n,fees:i,actualTokenAmount:t.toString(),equivalentWincTokenAmount:r.toString()}}appendPromoCodesToQuery(t){let r=t.join(",");return r?`promoCode=${r}`:""}async getTurboCryptoWallets(){let{addresses:t}=await this.httpService.get({endpoint:"/info"});return t}async getCheckout({amount:t,owner:r,promoCodes:i=[],uiMode:n="hosted",...o},d="checkout-session",g){let{amount:y,type:_}=t,I=new URLSearchParams;I.append("token",this.token),n&&I.append("uiMode",n),i.length>0&&I.append("promoCode",i.join(",")),"successUrl"in o&&o.successUrl!==void 0&&I.append("successUrl",o.successUrl),"cancelUrl"in o&&o.cancelUrl!==void 0&&I.append("cancelUrl",o.cancelUrl),"returnUrl"in o&&o.returnUrl!==void 0&&I.append("returnUrl",o.returnUrl);let N=`/top-up/${d}/${r}/${_}/${y}?${I.toString()}`,{adjustments:T,paymentSession:M,topUpQuote:D,fees:P}=await this.httpService.get({endpoint:N,headers:g});return{winc:D.winstonCreditAmount,adjustments:T,fees:P,url:M.url??void 0,id:M.id,client_secret:M.client_secret??void 0,paymentAmount:D.paymentAmount,actualPaymentAmount:D.paymentAmount,quotedPaymentAmount:D.quotedPaymentAmount}}createCheckoutSession(t){return this.getCheckout(t)}async submitFundTransaction({txId:t}){this.logger.debug("Submitting fund transaction to Turbo...",{txId:t,url:this.url});let r=await this.httpService.post({endpoint:`/account/balance/${this.token}`,data:fe.from(JSON.stringify({tx_id:t}))});if("creditedTransaction"in r)return{id:r.creditedTransaction.transactionId,quantity:r.creditedTransaction.transactionQuantity,owner:r.creditedTransaction.transactionSenderAddress??r.creditedTransaction.destinationAddress,winc:r.creditedTransaction.winstonCreditAmount,token:r.creditedTransaction.tokenType,status:"confirmed",block:r.creditedTransaction.blockHeight,recipient:r.creditedTransaction.destinationAddress};if("pendingTransaction"in r)return{id:r.pendingTransaction.transactionId,quantity:r.pendingTransaction.transactionQuantity,owner:r.pendingTransaction.transactionSenderAddress??r.pendingTransaction.destinationAddress,winc:r.pendingTransaction.winstonCreditAmount,token:r.pendingTransaction.tokenType,status:"pending",recipient:r.pendingTransaction.destinationAddress};if("failedTransaction"in r)return{id:r.failedTransaction.transactionId,quantity:r.failedTransaction.transactionQuantity,owner:r.failedTransaction.transactionSenderAddress??r.failedTransaction.destinationAddress,winc:r.failedTransaction.winstonCreditAmount,token:r.failedTransaction.tokenType,status:"failed",recipient:r.failedTransaction.destinationAddress};throw new Error("Unknown response from payment service: "+r)}async getCreditShareApprovals({userAddress:t}){let r=await this.httpService.get({endpoint:`/account/approvals/get?userAddress=${t}`,allowedStatuses:[200,404]});return r?.givenApprovals===void 0&&r?.receivedApprovals===void 0?{givenApprovals:[],receivedApprovals:[]}:r}async getFiatEstimateForBytes({byteCount:t,currency:r}){let i=await this.getUploadCosts({bytes:[t]}),{winc:n,fiat:o}=await this.getFiatRates(),d=new Qa(i[0].winc).dividedBy(new Qa(n)).times(o[r]),g=r==="jpy"?+d.integerValue(Qa.ROUND_CEIL):+d.decimalPlaces(2,Qa.ROUND_CEIL);return{byteCount:t,amount:g,currency:r,winc:i[0].winc}}async getTokenPriceForBytes({byteCount:t}){let r=(await this.getWincForToken({tokenAmount:$Q[this.token](1)})).winc,i=(await this.getUploadCosts({bytes:[2**30]}))[0].winc,o=new Qa(i).dividedBy(r).dividedBy(2**30).times(t).toFixed(Sre[this.token]);return{byteCount:t,tokenPrice:o,token:this.token}}async createPaymentIntent(t){return this.getCheckout(t,"payment-intent")}},Ire=class extends q5{constructor({url:t=Cre,retryConfig:r,signer:i,logger:n=ku.default,token:o="arweave",tokenTools:d}){super({url:t,retryConfig:r,logger:n,token:o}),this.signer=i,this.tokenTools=d}async getBalance(t){return t??=await this.signer.getNativeAddress(),super.getBalance(t)}async getCreditShareApprovals({userAddress:t}){return t??=await this.signer.getNativeAddress(),super.getCreditShareApprovals({userAddress:t})}async getWincForFiat({amount:t,promoCodes:r=[]}){return super.getWincForFiat({amount:t,promoCodes:r,nativeAddress:await this.signer.getNativeAddress()})}async createCheckoutSession(t){return this.getCheckout(t)}async getTargetWalletForFund(){let{addresses:t}=await this.httpService.get({endpoint:"/info"}),r=t[this.token];if(!r)throw new Error(`No wallet address found for token type: ${this.token}`);return r}async topUpWithTokens({feeMultiplier:t=1,tokenAmount:r,turboCreditDestinationAddress:i}){if(!this.tokenTools)throw new Error(`Token type not supported for crypto fund ${this.token}`);if(i!==void 0&&Zst(i)===!1)throw new Error(`Invalid turboCreditDestinationAddress provided: ${i}`);let n=new Qa(r),o=await this.getTargetWalletForFund();this.logger.debug("Funding account...",{feeMultiplier:t,tokenAmount:n,target:o,token:this.token,turboCreditDestinationAddress:i});let d=await this.tokenTools.createAndSubmitTx({target:o,tokenAmount:n,feeMultiplier:t,signer:this.signer,turboCreditDestinationAddress:i}),g=d.id;try{await this.tokenTools.pollTxAvailability({txId:g})}catch(y){this.logger.error(`Failed to poll for transaction being available from ${this.token} gateway... Attempting to submit fund tx to Turbo...`,y)}try{return{...await this.submitFundTransaction({txId:g}),target:d.target,reward:d.reward}}catch(y){throw this.logger.debug("Failed to submit fund transaction...",y),Error(`Failed to submit fund transaction! Save this Transaction ID and try again with 'turbo.submitFundTransaction(id)': ${g}`)}}};J();K();z();J();K();z();J();K();z();var NRn=Object.defineProperty,xRn=(e,t,r)=>t in e?NRn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YQ=(e,t,r)=>(xRn(e,typeof t!="symbol"?t+"":t,r),r),fTe=class{constructor(t){YQ(this,"value"),YQ(this,"next"),this.value=t}},lTe=class{constructor(){YQ(this,"head"),YQ(this,"tail"),YQ(this,"_size",0),this.clear()}clear(){this.head=void 0,this.tail=void 0,this._size=0}push(t){let r=new fTe(t);return this.head&&this.tail?(this.tail.next=r,this.tail=r):(this.head=r,this.tail=r),this._size++,this._size}pop(){if(!this.head)return;let t=this.head;return this.head=this.head.next,this._size--,t.value}get size(){return this._size}*[Symbol.iterator](){let t=this.head;for(;t;)yield t.value,t=t.next}};function wre(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number greater than 1");let t=new lTe,r=0,i=()=>{r--,t.size>0&&t.pop()()},n=async(g,y,_)=>{r++;let I=(async()=>g(..._))();y(I);try{await I}catch{}i()},o=(g,y,_)=>{t.push(n.bind(null,g,y,_)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.pop()()))()},d=(g,...y)=>new Promise(_=>{o(g,_,y)});return Object.defineProperties(d,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),d}J();K();z();J();K();z();qk();function TRn({data:e,dataSize:t,emitter:r,eventNamesMap:i}){let n=e instanceof ReadableStream?e:new ReadableStream({start:y=>{y.enqueue(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),y.close()}}),o=0,d;return{stream:new ReadableStream({start(){d=n.getReader()},async pull(y){try{let{value:_,done:I}=await d.read();if(I){r.emit(i["on-end"]),y.close();return}o+=_.byteLength,r.emit(i["on-progress"],{processedBytes:o,totalBytes:t}),y.enqueue(new Uint8Array(_.buffer,_.byteOffset,_.byteLength))}catch(_){r.emit(i["on-error"],_),y.error(_)}},cancel(y){return d.cancel(y)}}),resume:()=>{}}}function BRn({data:e,dataSize:t,emitter:r,eventNamesMap:i}){let n=e instanceof eI?e:eI.from(e),o=new VJ;n.pause();let d=0;return n.on("data",g=>{o.write(g),d+=g.byteLength,r.emit(i["on-progress"],{processedBytes:d,totalBytes:t})}),n.on("end",()=>{r.emit(i["on-end"]),o.end()}),n.on("error",g=>{r.emit(i["on-error"],g),o.destroy(g)}),{stream:o,resume:()=>n.resume()}}function NRt({data:e,dataSize:t,emitter:r,eventNamesMap:i}){if(e instanceof ReadableStream||typeof window<"u"&&e instanceof fe)return TRn({data:e,dataSize:t,emitter:r,eventNamesMap:i});if(e instanceof eI||e instanceof fe)return BRn({data:e,dataSize:t,emitter:r,eventNamesMap:i});throw new Error("Invalid data or platform type")}var uv=class extends mx.default{constructor({onProgress:t,onError:r,onSuccess:i,onUploadProgress:n,onUploadError:o,onUploadSuccess:d,onSigningProgress:g,onSigningError:y,onSigningSuccess:_,onFileStart:I,onFileProgress:N,onFileComplete:T,onFileError:M,onFolderProgress:D,onFolderError:P,onFolderSuccess:G}={}){super(),n!==void 0&&this.on("upload-progress",n),o!==void 0&&this.on("upload-error",o),d!==void 0&&this.on("upload-success",d),g!==void 0&&this.on("signing-progress",g),y!==void 0&&this.on("signing-error",y),_!==void 0&&this.on("signing-success",_),t!==void 0&&this.on("overall-progress",t),r!==void 0&&this.on("overall-error",r),i!==void 0&&this.on("overall-success",i),this.on("signing-progress",q=>{this.emit("overall-progress",{...q,processedBytes:q.processedBytes/2,totalBytes:q.totalBytes,step:"signing"})}),this.on("signing-error",q=>{this.emit("overall-error",q)}),this.on("upload-progress",q=>{this.emit("overall-progress",{...q,processedBytes:q.totalBytes/2+q.processedBytes/2,totalBytes:q.totalBytes,step:"upload"})}),this.on("upload-error",q=>{this.emit("overall-error",q)}),this.on("upload-success",()=>{this.emit("overall-success")}),I!==void 0&&this.on("file-upload-start",I),N!==void 0&&this.on("file-upload-progress",N),T!==void 0&&this.on("file-upload-complete",T),M!==void 0&&this.on("file-upload-error",M),D!==void 0&&this.on("folder-progress",D),P!==void 0&&this.on("folder-error",P),G!==void 0&&this.on("folder-success",G)}};function Ore({data:e,dataSize:t,emitter:r=new uv}){return NRt({data:e,dataSize:t,emitter:r,eventNamesMap:{"on-progress":"upload-progress","on-error":"upload-error","on-end":"upload-success"}})}function c3o({data:e,dataSize:t,emitter:r=new uv}){return NRt({data:e,dataSize:t,emitter:r,eventNamesMap:{"on-progress":"signing-progress","on-error":"signing-error","on-end":"signing-success"}})}var ATe=5*1024*1024,MRn=ATe*100,DRn=5,kRn=256;var PRn=ATe,LRn=PRn,URn=2,hTe={"x-chunking-version":"2"},Nre=class{constructor({http:t,token:r,maxChunkConcurrency:i=DRn,maxFinalizeMs:n,chunkByteCount:o=LRn,logger:d=ku.default,chunkingMode:g="auto",dataItemByteCount:y}){this.assertChunkParams({chunkByteCount:o,chunkingMode:g,maxChunkConcurrency:i,maxFinalizeMs:n}),this.chunkByteCount=o,this.maxChunkConcurrency=i,this.maxFinalizeMs=n,this.http=t,this.token=r,this.logger=d,this.shouldUseChunkUploader=this.shouldChunkUpload({chunkByteCount:o,chunkingMode:g,dataItemByteCount:y}),this.maxBacklogQueue=this.maxChunkConcurrency*URn}shouldChunkUpload({chunkByteCount:t,chunkingMode:r,dataItemByteCount:i}){return r==="disabled"?!1:r==="force"?!0:i>t*2}assertChunkParams({chunkByteCount:t,chunkingMode:r,maxChunkConcurrency:i,maxFinalizeMs:n}){if(n!==void 0&&(Number.isNaN(n)||!Number.isInteger(n)||n<0))throw new Error("Invalid max finalization wait time. Must be a non-negative integer.");if(Number.isNaN(i)||!Number.isInteger(i)||i<1||i>kRn)throw new Error("Invalid max chunk concurrency. Must be an integer of at least 1 and at most 256.");if(Number.isNaN(t)||!Number.isInteger(t)||t<ATe||t>MRn)throw new Error("Invalid chunk size. Must be an integer between 5 MiB and 500 MiB.");if(typeof r!="string"||!ble.includes(r))throw new Error(`Invalid chunking mode. Must be one of: ${ble.join(", ")}`)}async initUpload(){let t=await this.http.get({endpoint:`/chunks/${this.token}/-1/-1?chunkSize=${this.chunkByteCount}`,headers:hTe});return t.chunkSize!==this.chunkByteCount&&(this.logger.warn("Chunk size mismatch! Overriding with server value.",{clientExpected:this.chunkByteCount,serverReturned:t.chunkSize}),this.chunkByteCount=t.chunkSize),t.id}async upload({dataItemSizeFactory:t,dataItemStreamFactory:r,dataItemOpts:i,signal:n,events:o}){let d=await this.initUpload(),g=t(),y=new uv(o),{stream:_,resume:I}=Ore({data:r(),dataSize:g,emitter:y});this.logger.debug("Starting chunked upload",{token:this.token,uploadId:d,totalSize:g,chunkByteCount:this.chunkByteCount,maxChunkConcurrency:this.maxChunkConcurrency,inputStreamType:xRt(_)?"ReadableStream":"Readable"});let N=new Set,T=new AbortController,M=GRn([T.signal,n]),D=wre(this.maxChunkConcurrency),P=0,G=0,q,Y=0,ne=FRn(_,this.chunkByteCount);I();for await(let le of ne){if(M?.aborted){T.abort(),await Promise.allSettled(N),q??=new EE;break}let pe=++G,ae=le.length,W=P;P+=ae;let se=D(async()=>{q===void 0&&(this.logger.debug("Uploading chunk",{chunkPartNumber:pe,chunkOffset:W,chunkByteCount:ae}),await this.http.post({endpoint:`/chunks/${this.token}/${d}/${W}`,data:le,headers:{"Content-Type":"application/octet-stream",...hTe},signal:M}),Y+=ae,this.logger.debug("Chunk uploaded",{chunkPartNumber:pe,chunkOffset:W,chunkByteCount:ae}),y.emit("upload-progress",{processedBytes:Y,totalBytes:g}))}).catch(O=>{this.logger.error("Chunk upload failed",{id:pe,offset:W,size:ae,err:O}),y.emit("upload-error",O),T.abort(O),q=q??O});if(N.add(se),se.finally(()=>N.delete(se)),N.size>=this.maxBacklogQueue&&(await Promise.race(N),M?.aborted)){T.abort(),await Promise.allSettled(N),q??=new EE;break}}if(await Promise.all(N),q!==void 0)throw q;let ce=await this.finalizeUpload(d,g,i?.paidBy,M);return y.emit("upload-success"),ce}toGiB(t){return t/1024**3}async finalizeUpload(t,r,i,n){let o=Math.ceil(this.toGiB(r)),d=o*2.5,g=this.maxFinalizeMs??Math.floor(d*60*1e3),y=r<1024*1024*100?2e3:r<1024*1024*1024*3?4e3:Math.max(1500*o,15e3),_={};i!==void 0&&(_["x-paid-by"]=Array.isArray(i)?i.join(","):i),await this.http.post({endpoint:`/chunks/${this.token}/${t}/finalize`,data:fe.alloc(0),headers:{"Content-Type":"application/octet-stream",..._,...hTe},signal:n}),this.logger.debug(`Confirming upload to Turbo with uploadId ${t} for up to ${g/1e3/60} minutes.`);let I=Date.now(),N=I+g,T=0;for(;Date.now()<N;){let M=Math.min(Math.floor((N-Date.now())*.75),y);if(await qf(M),n?.aborted)throw this.logger.warn("Upload finalization aborted by signal."),new EE;let D=await this.http.get({endpoint:`/chunks/${this.token}/${t}/status`,signal:n});if(this.logger.debug(`Upload status found: ${D.status}`,{status:D.status,attempts:T++,maxWaitTimeMs:g,minimumWaitPerStepMs:y,waitTimeMs:M,elapsedMs:Date.now()-I}),D.status==="FINALIZED")return this.logger.debug("Upload finalized successfully."),D.receipt;if(D.status==="UNDERFUNDED")throw new yg("Insufficient balance",402);if(hXe.includes(D.status))throw new yg(`Upload failed with multi-part status ${D.status}`)}throw new Error(`Upload multi-part finalization has timed out for Upload ID ${t}`)}};async function*FRn(e,t){xRt(e)?yield*HRn(e,t):yield*QRn(e,t)}async function*QRn(e,t){let r=[],i=0,n;for await(let o of e){let d=o instanceof Uint8Array?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):(n??=new TextEncoder).encode(String(o));for(r.push(d),i+=d.length;i>=t;){let g=new Uint8Array(t),y=g.length,_=0;for(;y>0;){let I=r[0],N=Math.min(y,I.length);g.set(I.subarray(0,N),_),_+=N,y-=N,N===I.length?r.shift():r[0]=I.subarray(N)}i-=t,yield fe.from(g.buffer,g.byteOffset,g.byteLength)}}if(i>0){let o=new Uint8Array(i),d=0;for(;r.length>0;){let g=r.shift();o.set(g,d),d+=g.length}yield fe.from(o.buffer,o.byteOffset,o.byteLength)}}async function*HRn(e,t){let r=e.getReader(),i=[],n=0;try{for(;;){let{value:o,done:d}=await r.read();if(d)break;let g=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);for(i.push(g),n+=g.length;n>=t;){let y=new Uint8Array(t),_=y.length,I=0;for(;_>0;){let N=i[0],T=Math.min(_,N.length);y.set(N.subarray(0,T),I),I+=T,_-=T,T===N.length?i.shift():i[0]=N.subarray(T)}n-=t,yield fe.from(y.buffer,y.byteOffset,y.byteLength)}}if(n>0){let o=new Uint8Array(n),d=0;for(;i.length>0;){let g=i.shift();o.set(g,d),d+=g.length}yield fe.from(o.buffer,o.byteOffset,o.byteLength)}}finally{r.releaseLock()}}function xRt(e){return typeof ReadableStream<"u"&&e instanceof ReadableStream?!0:e!==null&&typeof e=="object"&&"getReader"in e&&typeof e.getReader=="function"}function GRn(e){let t=e.filter(Boolean);if(t.length===0)return;let r=AbortSignal.any;if(typeof r=="function")return r(t);let i=new AbortController;for(let n of t){let o=n;if(o.aborted){i.abort(o.reason);break}let d=()=>i.abort(o.reason);n.addEventListener("abort",d,{once:!0})}return i.signal}J();K();z();J();K();z();var xre=class{constructor(t,r){this.amt=t;this.type=r;if(t<0)throw new N7(`${r} currency amount cannot be negative`);this.assertDecimalPlaces(t)}assertDecimalPlaces(t){if(t%1!==0)throw new N7(`${this.type} currency amount must have zero decimal places`)}get amount(){return this.amt}},By=class extends xre{constructor(r,i){super(r,i);this.a=r;this.type=i}assertDecimalPlaces(r){if(r*100%1!==0)throw new N7(`${this.type} currency amount must have two decimal places`)}get amount(){return this.a*100}},qRn=e=>new By(e,"usd"),VRn=e=>new By(e,"eur"),JRn=e=>new By(e,"gbp"),zRn=e=>new By(e,"cad"),KRn=e=>new By(e,"aud"),$Rn=e=>new By(e,"inr"),YRn=e=>new By(e,"sgd"),WRn=e=>new By(e,"hkd"),XRn=e=>new By(e,"brl"),ZRn=e=>new xre(e,"jpy"),B3o={usd:qRn,eur:VRn,gbp:JRn,cad:zRn,aud:KRn,inr:$Rn,sgd:YRn,hkd:WRn,brl:XRn,jpy:ZRn};J();K();z();var BRt=po(R_(),1),MRt=po($l(),1),DRt=po(Ps(),1);var kRt=po(oee(),1);IA();var PRt=po(TRt(),1);var Bre=class{constructor({signer:t,logger:r=ku.default,token:i,walletAdapter:n}){this.logger=r,this.signer=t,this.token=i,this.walletAdapter=n}ownerToNativeAddress(t,r){switch(r){case"solana":return kRt.default.encode(Uint8Array.from(OF(t)));case"ethereum":case"matic":case"pol":case"base-eth":case"usdc":case"base-usdc":case"base-ario":case"polygon-usdc":return rg(fk(OF(t)));case"kyve":return(0,BRt.pubkeyToAddress)({type:"tendermint/PubKeySecp256k1",value:(0,DRt.toBase64)(MRt.Secp256k1.compressPubkey(Uint8Array.from(OF(t))))},"kyve");case"arweave":case"ario":return r2t(t)}}async generateSignedRequestHeaders(){let t=f0e(16).toString("hex"),r=fe.from(t),i=await this.signer.sign(Uint8Array.from(r));return{"x-public-key":W3(this.signer.publicKey),"x-nonce":t,"x-signature":W3(fe.from(i))}}async getPublicKey(){return this.signer.publicKey}async getNativeAddress(){return this.ownerToNativeAddress(W3(await this.getPublicKey()),this.token)}async sendTransaction({target:t,amount:r,gatewayUrl:i,turboCreditDestinationAddress:n}){if(this.walletAdapter){if(zk(this.walletAdapter)){let N=new TI(i,"confirmed"),T=new xi(this.walletAdapter.publicKey.toString()),M=new Us({feePayer:T,...await N.getLatestBlockhash()});M.add(Td.transfer({fromPubkey:T,toPubkey:new xi(t),lamports:+new Qa(r)})),n!==void 0&&M.add(new ms({programId:new xi(wF),keys:[],data:fe.from("turboCreditDestinationAddress="+n)}));let D=await this.walletAdapter.signTransaction(M);return await N.sendRawTransaction(D.serialize())}if(!ON(this.walletAdapter))throw new Error("Unsupported wallet adapter -- must implement getSigner");let _=this.walletAdapter.getSigner();if(_.sendTransaction===void 0)throw new Error("Unsupported wallet adapter -- getSigner must return a signer with sendTransaction API for crypto funds transfer");let{hash:I}=await _.sendTransaction({to:t,value:Mx(r.toFixed(18)),data:xF(n)});return I}if(!(this.signer instanceof m0))throw new Error("Only EthereumSigner is supported for sendTransaction API currently!");let o=fe.from(this.signer.key).toString("hex"),d=new s3.JsonRpcProvider(i),y=await new zR(o,d).sendTransaction({to:t,value:Mx(r.toFixed(18)),data:xF(n)});return this.logger.debug("Sent transaction",{tx:y}),y.hash}async signData(t){if(this.signer instanceof bb){let r=this.signer.key,i=Uint8Array.from(await this.getPublicKey()),n=new Uint8Array(r.length+i.length);return n.set(r),n.set(i,r.length),PRt.default.sign.detached(t,n)}return this.signer.sign(t)}};async function pTe(e){if(e instanceof m0)return o7({account:jU("0x"+fe.from(e.key).toString("hex")),chain:f5,transport:a7()});if(typeof window<"u"&&window.ethereum){let t=window.ethereum,r=await t.request({method:"eth_requestAccounts"});if(r===void 0||r.length===0)throw new Error("No accounts returned from wallet");let i=r[0];return o7({account:i,chain:f5,transport:cme(t)})}throw new Error("Unable to construct x402 signer for x402 options")}function jRn(e){return"fileStreamFactory"in e}function eSn(e){return"file"in e}var Mre={shareCredits:"x-approve-payment",sharedWincAmount:"x-amount",approvalExpiresBySeconds:"x-expires-seconds",revokeCredits:"x-delete-payment-approval"},LRt="https://upload.ardrive.dev",aM="https://upload.ardrive.io",V5=class{constructor({url:t=aM,logger:r=ku.default,retryConfig:i=SF(r),token:n="arweave"}){this.x402EnabledTokens=["base-usdc"];this.token=n,this.logger=r,this.httpService=new x7({url:`${t}/v1`,retryConfig:i,logger:this.logger}),this.retryConfig=i}async uploadSignedDataItem({dataItemStreamFactory:t,dataItemSizeFactory:r,dataItemOpts:i,signal:n,events:o={},x402Options:d}){let g=r();this.logger.debug("Uploading signed data item...");let y=new uv(o),{stream:_,resume:I}=Ore({data:t(),dataSize:g,emitter:y}),N={"content-type":"application/octet-stream","content-length":`${g}`};if(i!==void 0&&i.paidBy!==void 0){let M=Array.isArray(i.paidBy)?i.paidBy:[i.paidBy];i.paidBy.length>0&&(N["x-paid-by"]=M)}let T=this.httpService.post({endpoint:`/tx/${this.token}`,signal:n,data:_,headers:N,x402Options:d});return I(),T}async uploadRawX402Data({data:t,tags:r,signal:i,maxMUSDCAmount:n,signer:o}){if(!this.x402EnabledTokens.includes(this.token))throw new Error("x402 uploads are not supported for token: "+this.token);this.logger.debug("Uploading raw x402 data...",{maxMUSDCAmount:n?.toString()});let d;if(fe.isBuffer(t))d=t;else if(typeof t=="string"||t instanceof Uint8Array)d=fe.from(t);else if(vge(t))d=fe.from(await t.arrayBuffer());else if(t instanceof ArrayBuffer)d=fe.from(t);else throw new TypeError("Invalid data type for x402 upload");let g=o===void 0?void 0:{signer:await pTe(o.signer),maxMUSDCAmount:n,unsignedData:!0};return this.httpService.post({data:d,endpoint:"/x402/data-item/unsigned",signal:i,headers:r!==void 0?{"x-data-item-tags":JSON.stringify(r)}:void 0,x402Options:g})}},Dre=class extends V5{constructor({url:r=aM,retryConfig:i,signer:n,logger:o,token:d,paymentService:g}){super({url:r,retryConfig:i,logger:o,token:d});this.enabledOnDemandTokens=["ario","solana","base-eth","base-usdc","base-ario"];this.signer=n,this.paymentService=g}upload({data:r,dataItemOpts:i,signal:n,events:o,chunkByteCount:d,chunkingMode:g,maxChunkConcurrency:y,fundingMode:_,maxFinalizeMs:I}){if(vge(r)){let T=()=>r.stream(),M=()=>r.size;return this.uploadFile({fileStreamFactory:T,fileSizeFactory:M,signal:n,dataItemOpts:i,events:o,chunkByteCount:d,chunkingMode:g,maxChunkConcurrency:y,fundingMode:_,maxFinalizeMs:I})}let N=fe.isBuffer(r)?r:typeof r=="string"||r instanceof Uint8Array?fe.from(r):fe.from(r);return this.uploadFile({fileStreamFactory:()=>N,fileSizeFactory:()=>N.byteLength,signal:n,dataItemOpts:i,events:o,chunkByteCount:d,chunkingMode:g,maxChunkConcurrency:y,fundingMode:_,maxFinalizeMs:I})}resolveUploadFileConfig(r){let i,n;if(jRn(r))i=r.fileStreamFactory,n=r.fileSizeFactory;else if(eSn(r)){let o=r.file;i=o instanceof File?()=>this.getFileStreamForFile(o):()=>this.getFileStreamForFile(o),n=()=>this.getFileSize(r.file)}else throw new TypeError("Invalid upload file params. Must be either TurboUploadFileWithStreamFactoryParams or TurboUploadFileWithFileOrPathParams");return{fileStreamFactory:i,fileSizeFactory:n,...r}}async uploadFile(r){let{signal:i,dataItemOpts:n,events:o,fileStreamFactory:d,fileSizeFactory:g,fundingMode:y=new Vk}=this.resolveUploadFileConfig(r);if(y instanceof nC&&!this.x402EnabledTokens.includes(this.token))throw new Error("x402 uploads are not supported for token: "+this.token);if(r.chunkingMode==="force"&&y instanceof nC)throw new Error("Chunking mode 'force' is not supported when x402 is enabled");this.logger.debug("Starting file upload",{params:r});let _=0,I=this.retryConfig.retries??3,N=this.retryConfig.retryDelay??(q=>q*1e3),T,M,D=new uv(o),P;for(;_<I;){if(i?.aborted)throw new EE;let{dataItemStreamFactory:q,dataItemSizeFactory:Y}=await this.signer.signDataItem({fileStreamFactory:d,fileSizeFactory:g,dataItemOpts:n,emitter:D});if(y instanceof Jk&&P===void 0){let ne=Y();P=await this.onDemand({totalByteCount:ne,onDemandFunding:y})}try{let{chunkByteCount:ne,maxChunkConcurrency:ce}=r,le=new Nre({http:this.httpService,token:this.token,maxChunkConcurrency:ce,chunkByteCount:ne,logger:this.logger,dataItemByteCount:Y(),chunkingMode:r.chunkingMode,maxFinalizeMs:r.maxFinalizeMs});if(le.shouldUseChunkUploader&&!(y instanceof nC))return{...await le.upload({dataItemStreamFactory:q,dataItemSizeFactory:Y,dataItemOpts:n,signal:i,events:o}),cryptoFundResult:P};let pe=y instanceof nC?{signer:y.signer??await pTe(this.signer.signer),maxMUSDCAmount:y.maxMUSDCAmount}:void 0;return{...await this.uploadSignedDataItem({dataItemStreamFactory:q,dataItemSizeFactory:Y,dataItemOpts:n,signal:i,events:o,x402Options:pe}),cryptoFundResult:P}}catch(ne){if(T=ne,ne instanceof yg?M=ne.status:M=ne.response?.status,M!==void 0&&M>=400&&M<500)break;this.logger.debug(`Upload failed on attempt ${_+1}/${I+1}`,{message:ne instanceof Error?ne.message:ne},ne),_++;let ce=new Promise(le=>{i?.addEventListener("abort",()=>{le()})});await Promise.race([qf(N(_)),ce])}}let G=`Failed to upload file after ${_+1} attempts
|
|
${T instanceof Error?T.message:T}`;throw T instanceof yg?(T.message=G,T):new yg(G,M)}async generateManifest({paths:r,indexFile:i,fallbackFile:n}){let o=i!==void 0&&r[i]?.id!==void 0?i:r["index.html"]?.id!==void 0?"index.html":Object.keys(r)[0],d=n!==void 0&&r[n]?.id!==void 0?r[n].id:r["404.html"]?.id??r[o].id;return{manifest:"arweave/paths",version:"0.2.0",index:{path:o},paths:r,fallback:{id:d}}}getContentType(r,i){let n=i?.tags?.find(o=>o.name==="Content-Type")?.value;return n!==void 0?n:this.contentTypeFromFile(r)}async uploadFolder(r){this.logger.debug("Uploading folder...",{params:r});let{dataItemOpts:i,signal:n,manifestOptions:o={},maxConcurrentUploads:d=1,throwOnFailure:g=!0,maxChunkConcurrency:y,chunkByteCount:_,chunkingMode:I,fundingMode:N=new Vk,maxFinalizeMs:T,events:M={}}=r,{disableManifest:D,indexFile:P,fallbackFile:G}=o,q=new uv(M),Y={},ne={fileResponses:[]},ce=[],le=await this.getFiles(r),pe=le.length,ae=0,W=new Map;le.forEach(R=>{let u=this.getFileSize(R);W.set(R,u),ae+=u});let se=0,O=0,s=async(R,u)=>{let C=this.getFileName(R),U=W.get(R)??0;q.emit("file-upload-start",{fileName:C,fileSize:U,fileIndex:u,totalFiles:pe});let F=this.getContentType(R,i),X={...i,tags:[...i?.tags?.filter(Ae=>Ae.name!=="Content-Type")??[],{name:"Content-Type",value:F}]};try{let Ae=await this.uploadFile({fileStreamFactory:()=>this.getFileStreamForFile(R),fileSizeFactory:()=>U,signal:n,dataItemOpts:X,chunkByteCount:_,maxChunkConcurrency:y,chunkingMode:I,events:{onProgress:$e=>{q.emit("file-upload-progress",{fileName:C,fileIndex:u,totalFiles:pe,fileProcessedBytes:$e.processedBytes,fileTotalBytes:$e.totalBytes,step:$e.step});let Ge=$e.processedBytes;q.emit("folder-progress",{processedFiles:se,totalFiles:pe,processedBytes:O+Ge,totalBytes:ae,currentPhase:"files"})},onError:$e=>{q.emit("file-upload-error",{fileName:C,fileIndex:u,totalFiles:pe,error:$e})}},fundingMode:N}),he=this.getRelativePath(R,r);Y[he]={id:Ae.id},ne.fileResponses.push(Ae),se++,O+=U,q.emit("file-upload-complete",{fileName:C,fileIndex:u,totalFiles:pe,id:Ae.id}),q.emit("folder-progress",{processedFiles:se,totalFiles:pe,processedBytes:O,totalBytes:ae,currentPhase:"files"})}catch(Ae){if(q.emit("file-upload-error",{fileName:C,fileIndex:u,totalFiles:pe,error:Ae}),g)throw q.emit("folder-error",Ae),Ae;this.logger.error(`Error uploading file: ${R}`,Ae),ce.push(Ae)}},l=wre(d),A;if(N instanceof Jk){let R=le.reduce((u,C)=>u+this.getFileSize(C)+1200,0);A=await this.onDemand({totalByteCount:R,onDemandFunding:N})}if(await Promise.all(le.map((R,u)=>l(()=>s(R,u)))),this.logger.debug("Finished uploading files",{numFiles:le.length,numErrors:ce.length,results:ne.fileResponses}),ce.length>0&&(ne.errors=ce),D)return q.emit("folder-success"),ne;q.emit("folder-progress",{processedFiles:se,totalFiles:pe,processedBytes:O,totalBytes:ae,currentPhase:"manifest"});let m=await this.generateManifest({paths:Y,indexFile:P,fallbackFile:G}),E=[...i?.tags?.filter(R=>R.name!=="Content-Type")??[],{name:"Content-Type",value:"application/x.arweave-manifest+json"}],w=fe.from(JSON.stringify(m)),x=await this.uploadFile({fileStreamFactory:()=>this.createManifestStream(w),fileSizeFactory:()=>w.byteLength,signal:n,dataItemOpts:{...i,tags:E},chunkByteCount:_,maxChunkConcurrency:y,maxFinalizeMs:T,chunkingMode:I,fundingMode:N});return q.emit("folder-success"),{...ne,manifest:m,manifestResponse:x,cryptoFundResult:A}}async shareCredits({approvedAddress:r,approvedWincAmount:i,expiresBySeconds:n}){let o={tags:[{name:Mre.shareCredits,value:r},{name:Mre.sharedWincAmount,value:i.toString()}]};n!==void 0&&o.tags.push({name:Mre.approvalExpiresBySeconds,value:n.toString()});let d=fe.from(r+i+Date.now()),{createdApproval:g,...y}=await this.uploadFile({fileStreamFactory:()=>d,fileSizeFactory:()=>d.byteLength,dataItemOpts:o});if(!g)throw new Error(`Failed to create credit share approval but upload has succeeded
|
|
`+JSON.stringify(y));return g}async revokeCredits({revokedAddress:r}){let i={tags:[{name:Mre.revokeCredits,value:r}]},n=fe.from(r+Date.now()),{revokedApprovals:o,...d}=await this.uploadFile({fileStreamFactory:()=>n,fileSizeFactory:()=>n.byteLength,dataItemOpts:i});if(!o)throw new Error(`Failed to revoke credit share approvals but upload has succeeded
|
|
`+JSON.stringify(d));return o}async onDemand({totalByteCount:r,onDemandFunding:i}){let{maxTokenAmount:n,topUpBufferMultiplier:o}=i,d=await this.paymentService.getBalance(),g=(await this.paymentService.getUploadCosts({bytes:[2**30]}))[0].winc,y=new Qa(g).multipliedBy(r).dividedBy(2**30).toFixed(0,Qa.ROUND_UP);if(Qa(d.effectiveBalance).isGreaterThanOrEqualTo(y)){this.logger.debug("Sufficient balance for on demand upload",{currentBalance:d,expectedWincPrice:y});return}if(this.logger.debug("Insufficient balance for on demand upload",{currentBalance:d,expectedWincPrice:y}),!this.enabledOnDemandTokens.includes(this.token))throw new Error(`On-demand uploads are not supported for token: ${this.token}`);let _=Qa(y).minus(d.effectiveBalance).multipliedBy(o).toFixed(0,Qa.ROUND_UP),I=(await this.paymentService.getWincForToken({tokenAmount:$Q[this.token](1)})).winc,N=new Qa(_).dividedBy(I).multipliedBy($Q[this.token](1)).toFixed(0,Qa.ROUND_UP);if(n!==void 0&&new Qa(N).isGreaterThan(n))throw new Error(`Top up token amount ${new Qa(N).div(Sre[this.token])} is greater than the maximum allowed amount of ${n}`);this.logger.debug(`Topping up wallet with ${N} ${this.token} for ${_} winc`);let T=await this.paymentService.topUpWithTokens({tokenAmount:N});this.logger.debug("Top up transaction submitted",{topUpResponse:T});let M={pollIntervalMs:3*1e3,timeoutMs:120*1e3},D=1,P=Math.ceil(M.timeoutMs/M.pollIntervalMs)-1;for(;T.status!=="confirmed"&&D<P;){this.logger.debug("Tx not yet confirmed, waiting to poll again",{tries:D,maxTries:P}),await qf(M.pollIntervalMs),D++;try{let G=await this.paymentService.submitFundTransaction({txId:T.id});if(G.status==="confirmed"){this.logger.debug("Top-up transaction confirmed and balance updated",{submitFundResult:G}),T.status="confirmed";break}}catch(G){this.logger.warn("Error fetching fund transaction during polling",{message:G instanceof Error?G.message:G})}}return D>=P&&this.logger.warn("Timed out waiting for fund tx to confirm after top-up. Will continue to attempt upload but it may fail if balance is insufficient."),T}async uploadRawX402Data({data:r,tags:i,signal:n,maxMUSDCAmount:o}){return super.uploadRawX402Data({data:r,tags:i,signal:n,maxMUSDCAmount:o,signer:this.signer})}};var E4o={paymentServiceConfig:{url:ORt},uploadServiceConfig:{url:LRt}},v4o={paymentServiceConfig:{url:Cre},uploadServiceConfig:{url:aM}},WQ=class{constructor({uploadService:t=new V5({}),paymentService:r=new q5({})}){this.paymentService=r,this.uploadService=t}getFiatToAR({currency:t}){return this.paymentService.getFiatToAR({currency:t})}getFiatRates(){return this.paymentService.getFiatRates()}getSupportedCountries(){return this.paymentService.getSupportedCountries()}getBalance(t){return this.paymentService.getBalance(t)}getSupportedCurrencies(){return this.paymentService.getSupportedCurrencies()}getUploadCosts({bytes:t}){return this.paymentService.getUploadCosts({bytes:t})}getWincForFiat(t){return this.paymentService.getWincForFiat(t)}getWincForToken(t){return this.paymentService.getWincForToken(t)}getFiatEstimateForBytes({byteCount:t,currency:r}){return this.paymentService.getFiatEstimateForBytes({byteCount:t,currency:r})}getTokenPriceForBytes({byteCount:t}){return this.paymentService.getTokenPriceForBytes({byteCount:t})}uploadSignedDataItem({dataItemStreamFactory:t,dataItemSizeFactory:r,signal:i,events:n}){return this.uploadService.uploadSignedDataItem({dataItemStreamFactory:t,dataItemSizeFactory:r,signal:i,events:n})}createCheckoutSession(t){return this.paymentService.createCheckoutSession(t)}createPaymentIntent(t){return this.paymentService.createPaymentIntent(t)}submitFundTransaction(t){return this.paymentService.submitFundTransaction(t)}async getTurboCryptoWallets(){let t=await this.paymentService.getTurboCryptoWallets();return t.pol=t.matic,t}getCreditShareApprovals(t){return this.paymentService.getCreditShareApprovals(t)}uploadRawX402Data({data:t,tags:r,signal:i,maxMUSDCAmount:n}){return this.uploadService.uploadRawX402Data({data:t,tags:r,signal:i,maxMUSDCAmount:n})}},kre=class extends WQ{constructor({paymentService:t,uploadService:r,signer:i}){super({paymentService:t,uploadService:r}),this.signer=i}getBalance(t){return this.paymentService.getBalance(t)}getCreditShareApprovals(t={}){return this.paymentService.getCreditShareApprovals(t)}upload({data:t,dataItemOpts:r,signal:i,events:n,chunkByteCount:o,chunkingMode:d,maxChunkConcurrency:g,maxFinalizeMs:y,fundingMode:_}){return this.uploadService.upload({data:t,dataItemOpts:r,signal:i,events:n,chunkByteCount:o,chunkingMode:d,maxChunkConcurrency:g,fundingMode:_,maxFinalizeMs:y})}uploadFile(t){return this.uploadService.uploadFile(t)}uploadFolder(t){return this.uploadService.uploadFolder(t)}topUpWithTokens(t){return this.paymentService.topUpWithTokens(t)}shareCredits(t){return this.uploadService.shareCredits(t)}revokeCredits(t){return this.uploadService.revokeCredits(t)}uploadRawX402Data({data:t,tags:r,signal:i,maxMUSDCAmount:n}){return this.uploadService.uploadRawX402Data({data:t,tags:r,signal:i,maxMUSDCAmount:n})}};var Pre=class{static{this.logger=ku.default}static setLogLevel(t){this.logger.setLogLevel(t)}static unauthenticated({paymentServiceConfig:t={},uploadServiceConfig:r={},token:i}={}){i=i==="pol"?"matic":i,i??="arweave";let n=new q5({...t,logger:this.logger,token:i}),o=new V5({...r,logger:this.logger,token:i});return new WQ({uploadService:o,paymentService:n})}getAuthenticatedTurbo({privateKey:t,signer:r,paymentServiceConfig:i={},uploadServiceConfig:n={},token:o,gatewayUrl:d,tokenMap:g,tokenTools:y,logger:_,walletAdapter:I}){if(o=o==="pol"?"matic":o,!o&&r)switch(r.signatureType){case ko.ETHEREUM:case ko.TYPEDETHEREUM:o="ethereum";break;case ko.SOLANA:case ko.ED25519:o="solana";break;case ko.ARWEAVE:o="arweave";break;case ko.KYVE:o="kyve";break;default:break}if(o??="arweave",I){if(zk(I)){let D=I.signMessage.bind(I);I.signMessage=async P=>{let G=await D(P);return"signature"in G?G.signature:G},"toString"in I.publicKey||(I.publicKey.toString=function(){return this.toBuffer().toString("base64")})}r=this.signerFromAdapter(I,o)}let N=this.getSigner({providedSigner:r,providedPrivateKey:t,token:o,logger:_,providedWalletAdapter:I});y||(g&&o==="arweave"&&(y=g.arweave),y=wRt[o]?.({gatewayUrl:d,logger:_}));let T=new Ire({...i,signer:N,logger:_,token:o,tokenTools:y}),M=this.getAuthenticatedUploadService({...n,signer:N,logger:_,token:o,paymentService:T});return new kre({uploadService:M,paymentService:T,signer:N})}signerFromAdapter(t,r){if(r==="solana"){if(!zk(t))throw new Error("Unsupported wallet adapter -- must implement publicKey and signMessage");return new Pm(t)}if(lXe.has(r)){if(!ON(t))throw new Error("Unsupported wallet adapter -- must implement getSigner");return new Xv(t)}throw new Error("Unsupported wallet adapter -- wallet adapter is currently only supported for Solana and Ethereum")}};J();K();z();var Lre=class extends Bre{constructor(t){super(t)}async setPublicKey(){this.signer.publicKey===void 0&&(this.signer instanceof eC||this.signer instanceof Xv)&&await this.signer.setPublicKey()}async getPublicKey(){return await this.setPublicKey(),super.getPublicKey()}async signDataItem({fileStreamFactory:t,fileSizeFactory:r,dataItemOpts:i,emitter:n}){await this.setPublicKey();let o=r();this.logger.debug("Signing data item...");let{signedDataItemFactory:d,signedDataItemSize:g}=await rSn({streamFactory:M_t({data:t()}),signer:this.signer,dataItemOpts:i,fileSize:o,emitter:n});return this.logger.debug("Successfully signed data item..."),{dataItemStreamFactory:d,dataItemSizeFactory:()=>g}}async generateSignedRequestHeaders(){return await this.setPublicKey(),super.generateSignedRequestHeaders()}async signData(t){return await this.setPublicKey(),super.signData(t)}},tSn=e=>({async*[Symbol.asyncIterator](){let t=e.getReader();try{for(;;){let{done:r,value:i}=await t.read();if(r)break;i!==void 0&&(yield fe.from(i))}}finally{t.releaseLock()}}});async function rSn({streamFactory:e,signer:t,dataItemOpts:r,fileSize:i,emitter:n}){try{let o=Gk("",t,r),d=o.getRaw().byteLength,g=i+d,[y,_]=e().tee(),I=y.getReader(),N=0,T=new ReadableStream({start(){N=d,n?.emit("signing-progress",{processedBytes:N,totalBytes:g})},async pull(ne){let{done:ce,value:le}=await I.read();if(ce){ne.close();return}N+=le.byteLength,ne.enqueue(le),n?.emit("signing-progress",{processedBytes:N,totalBytes:g})},cancel(){I.cancel()}}),M=tSn(T),D=[(0,js.stringToBuffer)("dataitem"),(0,js.stringToBuffer)("1"),(0,js.stringToBuffer)(o.signatureType.toString()),Uint8Array.from(o.rawOwner),Uint8Array.from(o.rawTarget),Uint8Array.from(o.rawAnchor),Uint8Array.from(o.rawTags),M],P=await rb(D),G=fe.from(await t.sign(P));n?.emit("signing-success"),o.setSignature(G);let q=o.getRaw();return{signedDataItemSize:g,signedDataItemFactory:()=>{let ne=_.getReader();return new ReadableStream({start(ce){ce.enqueue(Uint8Array.from(q)),N+=q.byteLength},async pull(ce){try{let{done:le,value:pe}=await ne.read();if(le){ce.close();return}ce.enqueue(pe)}catch(le){ce.error(le)}},cancel(){ne.cancel()}})}}}catch(o){throw n?.emit("signing-error",o),o}}function X4o(e){return typeof e[Symbol.asyncIterator]=="function"}J();K();z();var Ure=class extends Dre{constructor({url:t=aM,retryConfig:r,signer:i,logger:n,token:o,paymentService:d}){super({url:t,retryConfig:r,logger:n,token:o,signer:i,paymentService:d})}getFiles(t){if(!AXe(t))throw new Error("files are required for web uploadFolder");return Promise.resolve(t.files)}getFileStreamForFile(t){return t.stream()}getFileSize(t){return t.size}getFileName(t){return t.name}getRelativePath(t){return t.name||t.webkitRelativePath}contentTypeFromFile(t){return t.type||"application/octet-stream"}createManifestStream(t){return new ReadableStream({start(i){i.enqueue(t),i.close()}})}};var URt=class e extends Pre{getSigner({providedPrivateKey:t,logger:r,providedSigner:i,providedWalletAdapter:n,token:o}){return new Lre({signer:Xst({signer:i,privateKey:t,token:o}),logger:r,token:o,walletAdapter:n})}getAuthenticatedUploadService(t){return new Ure(t)}static authenticated({privateKey:t,signer:r,paymentServiceConfig:i={},uploadServiceConfig:n={},token:o,gatewayUrl:d,tokenMap:g,tokenTools:y,walletAdapter:_}){return new e().getAuthenticatedTurbo({privateKey:t,signer:r,paymentServiceConfig:i,uploadServiceConfig:n,token:o,gatewayUrl:d,tokenMap:g,tokenTools:y,logger:this.logger,walletAdapter:_})}};export{J_t as ARIOToTokenAmount,see as ARIOToken,n2t as ARToTokenAmount,KRn as AUD,eC as ArconnectSigner,nb as ArweaveSigner,uee as ArweaveToken,XRn as BRL,dee as BaseEthToken,zRn as CAD,NF as ETHToTokenAmount,VRn as EUR,m0 as EthereumSigner,vE as EthereumToken,Vk as ExistingBalanceFunding,JRn as GBP,WRn as HKD,bb as HexSolanaSigner,$Rn as INR,ZRn as JPY,IRt as KYVEToTokenAmount,bre as KyveToken,Jk as OnDemandFunding,cTe as POLToTokenAmount,zQ as PolygonToken,YRn as SGD,V_t as SOLToTokenAmount,bRn as SUPPORTED_CHAIN_CONFIGS,aee as SolanaToken,Dre as TurboAuthenticatedBaseUploadService,kre as TurboAuthenticatedClient,Ire as TurboAuthenticatedPaymentService,Ure as TurboAuthenticatedUploadService,uv as TurboEventEmitter,URt as TurboFactory,WQ as TurboUnauthenticatedClient,q5 as TurboUnauthenticatedPaymentService,V5 as TurboUnauthenticatedUploadService,Lre as TurboWebArweaveSigner,By as TwoDecimalCurrency,qRn as USD,ylo as WinstonToTokenAmount,nC as X402Funding,xre as ZeroDecimalCurrency,NRt as createStreamWithEvents,c3o as createStreamWithSigningEvents,Ore as createStreamWithUploadEvents,Mre as creditSharingTagNames,B3o as currencyMap,TF as defaultBaseNetworkPollingOptions,hEe as defaultEthereumPollingOptions,Cre as defaultPaymentServiceURL,uTe as defaultPolygonPollingOptions,wRt as defaultTokenMap,v4o as defaultTurboConfiguration,aM as defaultUploadServiceURL,ORt as developmentPaymentServiceURL,E4o as developmentTurboConfiguration,LRt as developmentUploadServiceURL,xF as ethDataFromTurboCreditDestinationAddress,Sre as exponentMap,PDt as fiatCurrencyTypes,X4o as isAsyncIterable,OFn as isCurrency,gXe as isEthPrivateKey,ON as isEthereumWalletAdapter,_Xe as isJWK,pXe as isKyvePrivateKey,TFn as isNodeUploadFolderParams,zk as isSolanaWalletAdapter,DIo as isTokenType,AXe as isWebUploadFolderParams,Gfo as lamportToTokenAmount,tlo as mARIOToTokenAmount,wF as memoProgramId,hXe as multipartFailedStatus,xFn as multipartFinalizedStatus,NFn as multipartPendingStatus,yRn as privateKeyFromKyveMnemonic,tSn as readableStreamToAsyncIterable,Z6o as signerFromKyveMnemonic,mRn as signerFromKyvePrivateKey,rSn as streamSignerReadableStream,lXe as supportedEvmSignerTokens,$Q as tokenToBaseMap,KJ as tokenTypes,X6o as ukyveToTokenAmount,ble as validChunkingModes,Olo as weiToTokenAmount};
|
|
/*! Bundled license information:
|
|
|
|
@jspm/core/nodelibs/browser/buffer.js:
|
|
@jspm/core/nodelibs/browser/chunk-44e51b61.js:
|
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
|
|
@jspm/core/nodelibs/browser/crypto.js:
|
|
safe-buffer/index.js:
|
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
|
|
js-sha3/src/sha3.js:
|
|
(**
|
|
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
*
|
|
* @version 0.8.0
|
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
* @license MIT
|
|
*)
|
|
|
|
@noble/hashes/utils.js:
|
|
@noble/hashes/esm/utils.js:
|
|
@noble/hashes/esm/utils.js:
|
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
|
|
@jspm/core/nodelibs/browser/assert.js:
|
|
(*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
* @license MIT
|
|
*)
|
|
|
|
@solana/buffer-layout/lib/Layout.js:
|
|
(**
|
|
* Support for translating between Uint8Array instances and JavaScript
|
|
* native types.
|
|
*
|
|
* {@link module:Layout~Layout|Layout} is the basis of a class
|
|
* hierarchy that associates property names with sequences of encoded
|
|
* bytes.
|
|
*
|
|
* Layouts are supported for these scalar (numeric) types:
|
|
* * {@link module:Layout~UInt|Unsigned integers in little-endian
|
|
* format} with {@link module:Layout.u8|8-bit}, {@link
|
|
* module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit},
|
|
* {@link module:Layout.u32|32-bit}, {@link
|
|
* module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit}
|
|
* representation ranges;
|
|
* * {@link module:Layout~UIntBE|Unsigned integers in big-endian
|
|
* format} with {@link module:Layout.u16be|16-bit}, {@link
|
|
* module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit},
|
|
* {@link module:Layout.u40be|40-bit}, and {@link
|
|
* module:Layout.u48be|48-bit} representation ranges;
|
|
* * {@link module:Layout~Int|Signed integers in little-endian
|
|
* format} with {@link module:Layout.s8|8-bit}, {@link
|
|
* module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit},
|
|
* {@link module:Layout.s32|32-bit}, {@link
|
|
* module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit}
|
|
* representation ranges;
|
|
* * {@link module:Layout~IntBE|Signed integers in big-endian format}
|
|
* with {@link module:Layout.s16be|16-bit}, {@link
|
|
* module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit},
|
|
* {@link module:Layout.s40be|40-bit}, and {@link
|
|
* module:Layout.s48be|48-bit} representation ranges;
|
|
* * 64-bit integral values that decode to an exact (if magnitude is
|
|
* less than 2^53) or nearby integral Number in {@link
|
|
* module:Layout.nu64|unsigned little-endian}, {@link
|
|
* module:Layout.nu64be|unsigned big-endian}, {@link
|
|
* module:Layout.ns64|signed little-endian}, and {@link
|
|
* module:Layout.ns64be|unsigned big-endian} encodings;
|
|
* * 32-bit floating point values with {@link
|
|
* module:Layout.f32|little-endian} and {@link
|
|
* module:Layout.f32be|big-endian} representations;
|
|
* * 64-bit floating point values with {@link
|
|
* module:Layout.f64|little-endian} and {@link
|
|
* module:Layout.f64be|big-endian} representations;
|
|
* * {@link module:Layout.const|Constants} that take no space in the
|
|
* encoded expression.
|
|
*
|
|
* and for these aggregate types:
|
|
* * {@link module:Layout.seq|Sequence}s of instances of a {@link
|
|
* module:Layout~Layout|Layout}, with JavaScript representation as
|
|
* an Array and constant or data-dependent {@link
|
|
* module:Layout~Sequence#count|length};
|
|
* * {@link module:Layout.struct|Structure}s that aggregate a
|
|
* heterogeneous sequence of {@link module:Layout~Layout|Layout}
|
|
* instances, with JavaScript representation as an Object;
|
|
* * {@link module:Layout.union|Union}s that support multiple {@link
|
|
* module:Layout~VariantLayout|variant layouts} over a fixed
|
|
* (padded) or variable (not padded) span of bytes, using an
|
|
* unsigned integer at the start of the data or a separate {@link
|
|
* module:Layout.unionLayoutDiscriminator|layout element} to
|
|
* determine which layout to use when interpreting the buffer
|
|
* contents;
|
|
* * {@link module:Layout.bits|BitStructure}s that contain a sequence
|
|
* of individual {@link
|
|
* module:Layout~BitStructure#addField|BitField}s packed into an 8,
|
|
* 16, 24, or 32-bit unsigned integer starting at the least- or
|
|
* most-significant bit;
|
|
* * {@link module:Layout.cstr|C strings} of varying length;
|
|
* * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link
|
|
* module:Layout~Blob#length|length} raw data.
|
|
*
|
|
* All {@link module:Layout~Layout|Layout} instances are immutable
|
|
* after construction, to prevent internal state from becoming
|
|
* inconsistent.
|
|
*
|
|
* @local Layout
|
|
* @local ExternalLayout
|
|
* @local GreedyCount
|
|
* @local OffsetLayout
|
|
* @local UInt
|
|
* @local UIntBE
|
|
* @local Int
|
|
* @local IntBE
|
|
* @local NearUInt64
|
|
* @local NearUInt64BE
|
|
* @local NearInt64
|
|
* @local NearInt64BE
|
|
* @local Float
|
|
* @local FloatBE
|
|
* @local Double
|
|
* @local DoubleBE
|
|
* @local Sequence
|
|
* @local Structure
|
|
* @local UnionDiscriminator
|
|
* @local UnionLayoutDiscriminator
|
|
* @local Union
|
|
* @local VariantLayout
|
|
* @local BitStructure
|
|
* @local BitField
|
|
* @local Boolean
|
|
* @local Blob
|
|
* @local CString
|
|
* @local Constant
|
|
* @local bindConstructorLayout
|
|
* @module Layout
|
|
* @license MIT
|
|
* @author Peter A. Bigot
|
|
* @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}
|
|
*)
|
|
|
|
@noble/curves/esm/abstract/utils.js:
|
|
@noble/curves/esm/abstract/modular.js:
|
|
@noble/curves/esm/abstract/curve.js:
|
|
@noble/curves/esm/abstract/weierstrass.js:
|
|
@noble/curves/esm/_shortw_utils.js:
|
|
@noble/curves/esm/secp256k1.js:
|
|
@noble/curves/esm/abstract/utils.js:
|
|
@noble/curves/esm/utils.js:
|
|
@noble/curves/esm/abstract/modular.js:
|
|
@noble/curves/esm/abstract/curve.js:
|
|
@noble/curves/esm/abstract/edwards.js:
|
|
@noble/curves/esm/ed25519.js:
|
|
@noble/curves/esm/abstract/weierstrass.js:
|
|
@noble/curves/esm/_shortw_utils.js:
|
|
@noble/curves/esm/secp256k1.js:
|
|
@noble/curves/esm/abstract/utils.js:
|
|
@noble/curves/esm/abstract/modular.js:
|
|
@noble/curves/esm/abstract/curve.js:
|
|
@noble/curves/esm/abstract/weierstrass.js:
|
|
@noble/curves/esm/_shortw_utils.js:
|
|
@noble/curves/esm/secp256k1.js:
|
|
@noble/curves/esm/abstract/modular.js:
|
|
@noble/curves/esm/abstract/curve.js:
|
|
@noble/curves/esm/abstract/weierstrass.js:
|
|
@noble/curves/esm/_shortw_utils.js:
|
|
@noble/curves/esm/secp256k1.js:
|
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
|
|
axios/dist/browser/axios.cjs:
|
|
(*! Axios v1.15.2 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
|
|
@noble/ed25519/lib/esm/index.js:
|
|
(*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) *)
|
|
|
|
aes-js/lib.esm/aes.js:
|
|
(*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. *)
|
|
|
|
@scure/base/lib/esm/index.js:
|
|
(*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
*/
|