@dfinity/nns 0.2.2 → 0.3.0-nightly-2022-04-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +1 -6
  2. package/dist/candid/governanceTypes.d.ts +13 -9
  3. package/dist/cjs/index.cjs.js +36 -36
  4. package/dist/cjs/index.cjs.js.map +3 -3
  5. package/dist/esm/account_identifier.js +1 -1
  6. package/dist/esm/{chunk-2DZXLOEC.js → chunk-27LBXZJR.js} +3 -3
  7. package/dist/esm/{chunk-2DZXLOEC.js.map → chunk-27LBXZJR.js.map} +2 -2
  8. package/dist/esm/{chunk-HMU24NWJ.js → chunk-7AFR3LOO.js} +2 -2
  9. package/dist/esm/{chunk-HMU24NWJ.js.map → chunk-7AFR3LOO.js.map} +0 -0
  10. package/dist/esm/chunk-EXEYDII6.js +18 -0
  11. package/dist/esm/{chunk-FVDRR6PO.js.map → chunk-EXEYDII6.js.map} +3 -3
  12. package/dist/esm/chunk-F6ES4H7R.js +2 -0
  13. package/dist/esm/{chunk-QR4654XK.js.map → chunk-F6ES4H7R.js.map} +3 -3
  14. package/dist/esm/chunk-FY5QONEL.js +4 -0
  15. package/dist/esm/chunk-FY5QONEL.js.map +7 -0
  16. package/dist/esm/{chunk-D2W3ELRE.js → chunk-HQLGGFMH.js} +2 -2
  17. package/dist/esm/{chunk-D2W3ELRE.js.map → chunk-HQLGGFMH.js.map} +1 -1
  18. package/dist/esm/chunk-LSSEKDUC.js +3 -0
  19. package/dist/esm/chunk-LSSEKDUC.js.map +7 -0
  20. package/dist/esm/governance.js +1 -1
  21. package/dist/esm/icp.js +1 -1
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/index.js.map +3 -3
  24. package/dist/esm/ledger.js +1 -1
  25. package/dist/proto/base_types_pb.js +217 -140
  26. package/dist/proto/ledger_pb.js +1571 -969
  27. package/dist/types/canisters/governance/payloads.d.ts +1 -1
  28. package/dist/types/canisters/governance/request.converters.d.ts +24 -26
  29. package/dist/types/canisters/governance/response.converters.d.ts +6 -35
  30. package/dist/types/canisters/governance/services.d.ts +9 -0
  31. package/dist/types/errors/governance.errors.d.ts +22 -0
  32. package/dist/types/errors/ledger.errors.d.ts +21 -0
  33. package/dist/types/governance.d.ts +95 -7
  34. package/dist/types/index.d.ts +4 -0
  35. package/dist/types/ledger.d.ts +9 -3
  36. package/dist/types/types/common.d.ts +4 -0
  37. package/dist/types/types/governance_converters.d.ts +1 -70
  38. package/dist/types/types/ledger.d.ts +3 -24
  39. package/dist/types/utils/converter.utils.d.ts +1 -6
  40. package/dist/types/utils/neurons.utils.d.ts +13 -0
  41. package/package.json +6 -4
  42. package/dist/candid/nns_dapp.certified.idl.js +0 -206
  43. package/dist/candid/nns_dapp.did +0 -240
  44. package/dist/candid/nns_dapp.idl.js +0 -206
  45. package/dist/esm/chunk-4FZAJTYF.js +0 -2
  46. package/dist/esm/chunk-4FZAJTYF.js.map +0 -7
  47. package/dist/esm/chunk-FVDRR6PO.js +0 -17
  48. package/dist/esm/chunk-LNMGZ6W7.js +0 -3
  49. package/dist/esm/chunk-LNMGZ6W7.js.map +0 -7
  50. package/dist/esm/chunk-QR4654XK.js +0 -2
  51. package/dist/esm/chunk-RUFBUR7C.js +0 -4
  52. package/dist/esm/chunk-RUFBUR7C.js.map +0 -7
  53. package/dist/esm/chunk-ZWZRSVU4.js +0 -2
  54. package/dist/esm/chunk-ZWZRSVU4.js.map +0 -7
  55. package/dist/types/types/option.d.ts +0 -1
@@ -0,0 +1,18 @@
1
+ import{a as M,c as w}from"./chunk-27LBXZJR.js";var a0=M((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=window:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,x){return function(r){return new Sha256(x,!0).update(r)[e]()}},createMethod=function(e){var x=createOutputMethod("hex",e);NODE_JS&&(x=nodeWrap(x,e)),x.create=function(){return new Sha256(e)},x.update=function(f){return x.create().update(f)};for(var r=0;r<OUTPUT_TYPES.length;++r){var t=OUTPUT_TYPES[r];x[t]=createOutputMethod(t,e)}return x},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if(typeof e=="string")return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(e==null)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,x){return function(r,t){return new HmacSha256(r,x,!0).update(t)[e]()}},createHmacMethod=function(e){var x=createHmacOutputMethod("hex",e);x.create=function(f){return new HmacSha256(f,e)},x.update=function(f,c){return x.create(f).update(c)};for(var r=0;r<OUTPUT_TYPES.length;++r){var t=OUTPUT_TYPES[r];x[t]=createHmacOutputMethod(t,e)}return x};function Sha256(e,x){x?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}Sha256.prototype.update=function(e){if(!this.finalized){var x,r=typeof e;if(r!=="string"){if(r==="object"){if(e===null)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR)}else throw new Error(ERROR);x=!0}for(var t,f=0,c,a=e.length,i=this.blocks;f<a;){if(this.hashed&&(this.hashed=!1,i[0]=this.block,i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),x)for(c=this.start;f<a&&c<64;++f)i[c>>2]|=e[f]<<SHIFT[c++&3];else for(c=this.start;f<a&&c<64;++f)t=e.charCodeAt(f),t<128?i[c>>2]|=t<<SHIFT[c++&3]:t<2048?(i[c>>2]|=(192|t>>6)<<SHIFT[c++&3],i[c>>2]|=(128|t&63)<<SHIFT[c++&3]):t<55296||t>=57344?(i[c>>2]|=(224|t>>12)<<SHIFT[c++&3],i[c>>2]|=(128|t>>6&63)<<SHIFT[c++&3],i[c>>2]|=(128|t&63)<<SHIFT[c++&3]):(t=65536+((t&1023)<<10|e.charCodeAt(++f)&1023),i[c>>2]|=(240|t>>18)<<SHIFT[c++&3],i[c>>2]|=(128|t>>12&63)<<SHIFT[c++&3],i[c>>2]|=(128|t>>6&63)<<SHIFT[c++&3],i[c>>2]|=(128|t&63)<<SHIFT[c++&3]);this.lastByteIndex=c,this.bytes+=c-this.start,c>=64?(this.block=i[16],this.start=c-64,this.hash(),this.hashed=!0):this.start=c}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,x=this.lastByteIndex;e[16]=this.block,e[x>>2]|=EXTRA[x&3],this.block=e[16],x>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e=this.h0,x=this.h1,r=this.h2,t=this.h3,f=this.h4,c=this.h5,a=this.h6,i=this.h7,o=this.blocks,d,h,b,l,u,A,B,g,L,N,X;for(d=16;d<64;++d)u=o[d-15],h=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3,u=o[d-2],b=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,o[d]=o[d-16]+h+o[d-7]+b<<0;for(X=x&r,d=0;d<64;d+=4)this.first?(this.is224?(g=300032,u=o[0]-1413257819,i=u-150054599<<0,t=u+24177077<<0):(g=704751109,u=o[0]-210244248,i=u-1521486534<<0,t=u+143694565<<0),this.first=!1):(h=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),b=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7),g=e&x,l=g^e&r^X,B=f&c^~f&a,u=i+b+B+K[d]+o[d],A=h+l,i=t+u<<0,t=u+A<<0),h=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),b=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),L=t&e,l=L^t&x^g,B=i&f^~i&c,u=a+b+B+K[d+1]+o[d+1],A=h+l,a=r+u<<0,r=u+A<<0,h=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),b=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),N=r&t,l=N^r&e^L,B=a&i^~a&f,u=c+b+B+K[d+2]+o[d+2],A=h+l,c=x+u<<0,x=u+A<<0,h=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),b=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),X=x&r,l=X^x&t^N,B=c&a^~c&i,u=f+b+B+K[d+3]+o[d+3],A=h+l,f=e+u<<0,e=u+A<<0;this.h0=this.h0+e<<0,this.h1=this.h1+x<<0,this.h2=this.h2+r<<0,this.h3=this.h3+t<<0,this.h4=this.h4+f<<0,this.h5=this.h5+c<<0,this.h6=this.h6+a<<0,this.h7=this.h7+i<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,x=this.h1,r=this.h2,t=this.h3,f=this.h4,c=this.h5,a=this.h6,i=this.h7,o=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[x&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[f&15]+HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[c&15]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[a&15];return this.is224||(o+=HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]),o},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,x=this.h1,r=this.h2,t=this.h3,f=this.h4,c=this.h5,a=this.h6,i=this.h7,o=[e>>24&255,e>>16&255,e>>8&255,e&255,x>>24&255,x>>16&255,x>>8&255,x&255,r>>24&255,r>>16&255,r>>8&255,r&255,t>>24&255,t>>16&255,t>>8&255,t&255,f>>24&255,f>>16&255,f>>8&255,f&255,c>>24&255,c>>16&255,c>>8&255,c&255,a>>24&255,a>>16&255,a>>8&255,a&255];return this.is224||o.push(i>>24&255,i>>16&255,i>>8&255,i&255),o},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),x=new DataView(e);return x.setUint32(0,this.h0),x.setUint32(4,this.h1),x.setUint32(8,this.h2),x.setUint32(12,this.h3),x.setUint32(16,this.h4),x.setUint32(20,this.h5),x.setUint32(24,this.h6),this.is224||x.setUint32(28,this.h7),e};function HmacSha256(e,x,r){var t,f=typeof e;if(f==="string"){var c=[],a=e.length,i=0,o;for(t=0;t<a;++t)o=e.charCodeAt(t),o<128?c[i++]=o:o<2048?(c[i++]=192|o>>6,c[i++]=128|o&63):o<55296||o>=57344?(c[i++]=224|o>>12,c[i++]=128|o>>6&63,c[i++]=128|o&63):(o=65536+((o&1023)<<10|e.charCodeAt(++t)&1023),c[i++]=240|o>>18,c[i++]=128|o>>12&63,c[i++]=128|o>>6&63,c[i++]=128|o&63);e=c}else if(f==="object"){if(e===null)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR)}else throw new Error(ERROR);e.length>64&&(e=new Sha256(x,!0).update(e).array());var d=[],h=[];for(t=0;t<64;++t){var b=e[t]||0;d[t]=92^b,h[t]=54^b}Sha256.call(this,x,r),this.update(h),this.oKeyPad=d,this.inner=!0,this.sharedMemory=r}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var o0=M(k=>{"use strict";k.byteLength=j0;k.toByteArray=G0;k.fromByteArray=$0;var S=[],E=[],P0=typeof Uint8Array!="undefined"?Uint8Array:Array,W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,i0=W.length;U<i0;++U)S[U]=W[U],E[W.charCodeAt(U)]=U;var U,i0;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function n0(e){var x=e.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=x);var t=r===x?0:4-r%4;return[r,t]}function j0(e){var x=n0(e),r=x[0],t=x[1];return(r+t)*3/4-t}function q0(e,x,r){return(x+r)*3/4-r}function G0(e){var x,r=n0(e),t=r[0],f=r[1],c=new P0(q0(e,t,f)),a=0,i=f>0?t-4:t,o;for(o=0;o<i;o+=4)x=E[e.charCodeAt(o)]<<18|E[e.charCodeAt(o+1)]<<12|E[e.charCodeAt(o+2)]<<6|E[e.charCodeAt(o+3)],c[a++]=x>>16&255,c[a++]=x>>8&255,c[a++]=x&255;return f===2&&(x=E[e.charCodeAt(o)]<<2|E[e.charCodeAt(o+1)]>>4,c[a++]=x&255),f===1&&(x=E[e.charCodeAt(o)]<<10|E[e.charCodeAt(o+1)]<<4|E[e.charCodeAt(o+2)]>>2,c[a++]=x>>8&255,c[a++]=x&255),c}function Z0(e){return S[e>>18&63]+S[e>>12&63]+S[e>>6&63]+S[e&63]}function Q0(e,x,r){for(var t,f=[],c=x;c<r;c+=3)t=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),f.push(Z0(t));return f.join("")}function $0(e){for(var x,r=e.length,t=r%3,f=[],c=16383,a=0,i=r-t;a<i;a+=c)f.push(Q0(e,a,a+c>i?i:a+c));return t===1?(x=e[r-1],f.push(S[x>>2]+S[x<<4&63]+"==")):t===2&&(x=(e[r-2]<<8)+e[r-1],f.push(S[x>>10]+S[x>>4&63]+S[x<<2&63]+"=")),f.join("")}});var d0=M(Y=>{Y.read=function(e,x,r,t,f){var c,a,i=f*8-t-1,o=(1<<i)-1,d=o>>1,h=-7,b=r?f-1:0,l=r?-1:1,u=e[x+b];for(b+=l,c=u&(1<<-h)-1,u>>=-h,h+=i;h>0;c=c*256+e[x+b],b+=l,h-=8);for(a=c&(1<<-h)-1,c>>=-h,h+=t;h>0;a=a*256+e[x+b],b+=l,h-=8);if(c===0)c=1-d;else{if(c===o)return a?NaN:(u?-1:1)*(1/0);a=a+Math.pow(2,t),c=c-d}return(u?-1:1)*a*Math.pow(2,c-t)};Y.write=function(e,x,r,t,f,c){var a,i,o,d=c*8-f-1,h=(1<<d)-1,b=h>>1,l=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=t?0:c-1,A=t?1:-1,B=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(i=isNaN(x)?1:0,a=h):(a=Math.floor(Math.log(x)/Math.LN2),x*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+b>=1?x+=l/o:x+=l*Math.pow(2,1-b),x*o>=2&&(a++,o/=2),a+b>=h?(i=0,a=h):a+b>=1?(i=(x*o-1)*Math.pow(2,f),a=a+b):(i=x*Math.pow(2,b-1)*Math.pow(2,f),a=0));f>=8;e[r+u]=i&255,u+=A,i/=256,f-=8);for(a=a<<f|i,d+=f;d>0;e[r+u]=a&255,u+=A,a/=256,d-=8);e[r+u-A]|=B*128}});var m=M(v=>{"use strict";var J=o0(),I=d0(),b0=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=n;v.SlowBuffer=cx;v.INSPECT_MAX_BYTES=50;var O=2147483647;v.kMaxLength=O;n.TYPED_ARRAY_SUPPORT=xx();!n.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function xx(){try{var e=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(e,x),e.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.buffer}});Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.byteOffset}});function R(e){if(e>O)throw new RangeError('The value "'+e+'" is invalid for option "size"');var x=new Uint8Array(e);return Object.setPrototypeOf(x,n.prototype),x}function n(e,x,r){if(typeof e=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(e)}return h0(e,x,r)}n.poolSize=8192;function h0(e,x,r){if(typeof e=="string")return ex(e,x);if(ArrayBuffer.isView(e))return tx(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(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return P(e,x,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var t=e.valueOf&&e.valueOf();if(t!=null&&t!==e)return n.from(t,x,r);var f=fx(e);if(f)return f;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return n.from(e[Symbol.toPrimitive]("string"),x,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}n.from=function(e,x,r){return h0(e,x,r)};Object.setPrototypeOf(n.prototype,Uint8Array.prototype);Object.setPrototypeOf(n,Uint8Array);function u0(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 rx(e,x,r){return u0(e),e<=0?R(e):x!==void 0?typeof r=="string"?R(e).fill(x,r):R(e).fill(x):R(e)}n.alloc=function(e,x,r){return rx(e,x,r)};function z(e){return u0(e),R(e<0?0:j(e)|0)}n.allocUnsafe=function(e){return z(e)};n.allocUnsafeSlow=function(e){return z(e)};function ex(e,x){if((typeof x!="string"||x==="")&&(x="utf8"),!n.isEncoding(x))throw new TypeError("Unknown encoding: "+x);var r=p0(e,x)|0,t=R(r),f=t.write(e,x);return f!==r&&(t=t.slice(0,f)),t}function V(e){for(var x=e.length<0?0:j(e.length)|0,r=R(x),t=0;t<x;t+=1)r[t]=e[t]&255;return r}function tx(e){if(H(e,Uint8Array)){var x=new Uint8Array(e);return P(x.buffer,x.byteOffset,x.byteLength)}return V(e)}function P(e,x,r){if(x<0||e.byteLength<x)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<x+(r||0))throw new RangeError('"length" is outside of buffer bounds');var t;return x===void 0&&r===void 0?t=new Uint8Array(e):r===void 0?t=new Uint8Array(e,x):t=new Uint8Array(e,x,r),Object.setPrototypeOf(t,n.prototype),t}function fx(e){if(n.isBuffer(e)){var x=j(e.length)|0,r=R(x);return r.length===0||e.copy(r,0,0,x),r}if(e.length!==void 0)return typeof e.length!="number"||G(e.length)?R(0):V(e);if(e.type==="Buffer"&&Array.isArray(e.data))return V(e.data)}function j(e){if(e>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return e|0}function cx(e){return+e!=e&&(e=0),n.alloc(+e)}n.isBuffer=function(x){return x!=null&&x._isBuffer===!0&&x!==n.prototype};n.compare=function(x,r){if(H(x,Uint8Array)&&(x=n.from(x,x.offset,x.byteLength)),H(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),!n.isBuffer(x)||!n.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(x===r)return 0;for(var t=x.length,f=r.length,c=0,a=Math.min(t,f);c<a;++c)if(x[c]!==r[c]){t=x[c],f=r[c];break}return t<f?-1:f<t?1:0};n.isEncoding=function(x){switch(String(x).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}};n.concat=function(x,r){if(!Array.isArray(x))throw new TypeError('"list" argument must be an Array of Buffers');if(x.length===0)return n.alloc(0);var t;if(r===void 0)for(r=0,t=0;t<x.length;++t)r+=x[t].length;var f=n.allocUnsafe(r),c=0;for(t=0;t<x.length;++t){var a=x[t];if(H(a,Uint8Array))c+a.length>f.length?n.from(a).copy(f,c):Uint8Array.prototype.set.call(f,a,c);else if(n.isBuffer(a))a.copy(f,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=a.length}return f};function p0(e,x){if(n.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(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,t=arguments.length>2&&arguments[2]===!0;if(!t&&r===0)return 0;for(var f=!1;;)switch(x){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return E0(e).length;default:if(f)return t?-1:q(e).length;x=(""+x).toLowerCase(),f=!0}}n.byteLength=p0;function ax(e,x,r){var t=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,x>>>=0,r<=x))return"";for(e||(e="utf8");;)switch(e){case"hex":return lx(this,x,r);case"utf8":case"utf-8":return y0(this,x,r);case"ascii":return px(this,x,r);case"latin1":case"binary":return sx(this,x,r);case"base64":return hx(this,x,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yx(this,x,r);default:if(t)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),t=!0}}n.prototype._isBuffer=!0;function C(e,x,r){var t=e[x];e[x]=e[r],e[r]=t}n.prototype.swap16=function(){var x=this.length;if(x%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<x;r+=2)C(this,r,r+1);return this};n.prototype.swap32=function(){var x=this.length;if(x%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<x;r+=4)C(this,r,r+3),C(this,r+1,r+2);return this};n.prototype.swap64=function(){var x=this.length;if(x%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<x;r+=8)C(this,r,r+7),C(this,r+1,r+6),C(this,r+2,r+5),C(this,r+3,r+4);return this};n.prototype.toString=function(){var x=this.length;return x===0?"":arguments.length===0?y0(this,0,x):ax.apply(this,arguments)};n.prototype.toLocaleString=n.prototype.toString;n.prototype.equals=function(x){if(!n.isBuffer(x))throw new TypeError("Argument must be a Buffer");return this===x?!0:n.compare(this,x)===0};n.prototype.inspect=function(){var x="",r=v.INSPECT_MAX_BYTES;return x=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(x+=" ... "),"<Buffer "+x+">"};b0&&(n.prototype[b0]=n.prototype.inspect);n.prototype.compare=function(x,r,t,f,c){if(H(x,Uint8Array)&&(x=n.from(x,x.offset,x.byteLength)),!n.isBuffer(x))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof x);if(r===void 0&&(r=0),t===void 0&&(t=x?x.length:0),f===void 0&&(f=0),c===void 0&&(c=this.length),r<0||t>x.length||f<0||c>this.length)throw new RangeError("out of range index");if(f>=c&&r>=t)return 0;if(f>=c)return-1;if(r>=t)return 1;if(r>>>=0,t>>>=0,f>>>=0,c>>>=0,this===x)return 0;for(var a=c-f,i=t-r,o=Math.min(a,i),d=this.slice(f,c),h=x.slice(r,t),b=0;b<o;++b)if(d[b]!==h[b]){a=d[b],i=h[b];break}return a<i?-1:i<a?1:0};function s0(e,x,r,t,f){if(e.length===0)return-1;if(typeof r=="string"?(t=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,G(r)&&(r=f?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(f)return-1;r=e.length-1}else if(r<0)if(f)r=0;else return-1;if(typeof x=="string"&&(x=n.from(x,t)),n.isBuffer(x))return x.length===0?-1:l0(e,x,r,t,f);if(typeof x=="number")return x=x&255,typeof Uint8Array.prototype.indexOf=="function"?f?Uint8Array.prototype.indexOf.call(e,x,r):Uint8Array.prototype.lastIndexOf.call(e,x,r):l0(e,[x],r,t,f);throw new TypeError("val must be string, number or Buffer")}function l0(e,x,r,t,f){var c=1,a=e.length,i=x.length;if(t!==void 0&&(t=String(t).toLowerCase(),t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le")){if(e.length<2||x.length<2)return-1;c=2,a/=2,i/=2,r/=2}function o(u,A){return c===1?u[A]:u.readUInt16BE(A*c)}var d;if(f){var h=-1;for(d=r;d<a;d++)if(o(e,d)===o(x,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===i)return h*c}else h!==-1&&(d-=d-h),h=-1}else for(r+i>a&&(r=a-i),d=r;d>=0;d--){for(var b=!0,l=0;l<i;l++)if(o(e,d+l)!==o(x,l)){b=!1;break}if(b)return d}return-1}n.prototype.includes=function(x,r,t){return this.indexOf(x,r,t)!==-1};n.prototype.indexOf=function(x,r,t){return s0(this,x,r,t,!0)};n.prototype.lastIndexOf=function(x,r,t){return s0(this,x,r,t,!1)};function ix(e,x,r,t){r=Number(r)||0;var f=e.length-r;t?(t=Number(t),t>f&&(t=f)):t=f;var c=x.length;t>c/2&&(t=c/2);for(var a=0;a<t;++a){var i=parseInt(x.substr(a*2,2),16);if(G(i))return a;e[r+a]=i}return a}function nx(e,x,r,t){return D(q(x,e.length-r),e,r,t)}function ox(e,x,r,t){return D(Fx(x),e,r,t)}function dx(e,x,r,t){return D(E0(x),e,r,t)}function bx(e,x,r,t){return D(mx(x,e.length-r),e,r,t)}n.prototype.write=function(x,r,t,f){if(r===void 0)f="utf8",t=this.length,r=0;else if(t===void 0&&typeof r=="string")f=r,t=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(t)?(t=t>>>0,f===void 0&&(f="utf8")):(f=t,t=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var c=this.length-r;if((t===void 0||t>c)&&(t=c),x.length>0&&(t<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");for(var a=!1;;)switch(f){case"hex":return ix(this,x,r,t);case"utf8":case"utf-8":return nx(this,x,r,t);case"ascii":case"latin1":case"binary":return ox(this,x,r,t);case"base64":return dx(this,x,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bx(this,x,r,t);default:if(a)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),a=!0}};n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hx(e,x,r){return x===0&&r===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(x,r))}function y0(e,x,r){r=Math.min(e.length,r);for(var t=[],f=x;f<r;){var c=e[f],a=null,i=c>239?4:c>223?3:c>191?2:1;if(f+i<=r){var o,d,h,b;switch(i){case 1:c<128&&(a=c);break;case 2:o=e[f+1],(o&192)===128&&(b=(c&31)<<6|o&63,b>127&&(a=b));break;case 3:o=e[f+1],d=e[f+2],(o&192)===128&&(d&192)===128&&(b=(c&15)<<12|(o&63)<<6|d&63,b>2047&&(b<55296||b>57343)&&(a=b));break;case 4:o=e[f+1],d=e[f+2],h=e[f+3],(o&192)===128&&(d&192)===128&&(h&192)===128&&(b=(c&15)<<18|(o&63)<<12|(d&63)<<6|h&63,b>65535&&b<1114112&&(a=b))}}a===null?(a=65533,i=1):a>65535&&(a-=65536,t.push(a>>>10&1023|55296),a=56320|a&1023),t.push(a),f+=i}return ux(t)}var A0=4096;function ux(e){var x=e.length;if(x<=A0)return String.fromCharCode.apply(String,e);for(var r="",t=0;t<x;)r+=String.fromCharCode.apply(String,e.slice(t,t+=A0));return r}function px(e,x,r){var t="";r=Math.min(e.length,r);for(var f=x;f<r;++f)t+=String.fromCharCode(e[f]&127);return t}function sx(e,x,r){var t="";r=Math.min(e.length,r);for(var f=x;f<r;++f)t+=String.fromCharCode(e[f]);return t}function lx(e,x,r){var t=e.length;(!x||x<0)&&(x=0),(!r||r<0||r>t)&&(r=t);for(var f="",c=x;c<r;++c)f+=Ex[e[c]];return f}function yx(e,x,r){for(var t=e.slice(x,r),f="",c=0;c<t.length-1;c+=2)f+=String.fromCharCode(t[c]+t[c+1]*256);return f}n.prototype.slice=function(x,r){var t=this.length;x=~~x,r=r===void 0?t:~~r,x<0?(x+=t,x<0&&(x=0)):x>t&&(x=t),r<0?(r+=t,r<0&&(r=0)):r>t&&(r=t),r<x&&(r=x);var f=this.subarray(x,r);return Object.setPrototypeOf(f,n.prototype),f};function y(e,x,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+x>r)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(x,r,t){x=x>>>0,r=r>>>0,t||y(x,r,this.length);for(var f=this[x],c=1,a=0;++a<r&&(c*=256);)f+=this[x+a]*c;return f};n.prototype.readUintBE=n.prototype.readUIntBE=function(x,r,t){x=x>>>0,r=r>>>0,t||y(x,r,this.length);for(var f=this[x+--r],c=1;r>0&&(c*=256);)f+=this[x+--r]*c;return f};n.prototype.readUint8=n.prototype.readUInt8=function(x,r){return x=x>>>0,r||y(x,1,this.length),this[x]};n.prototype.readUint16LE=n.prototype.readUInt16LE=function(x,r){return x=x>>>0,r||y(x,2,this.length),this[x]|this[x+1]<<8};n.prototype.readUint16BE=n.prototype.readUInt16BE=function(x,r){return x=x>>>0,r||y(x,2,this.length),this[x]<<8|this[x+1]};n.prototype.readUint32LE=n.prototype.readUInt32LE=function(x,r){return x=x>>>0,r||y(x,4,this.length),(this[x]|this[x+1]<<8|this[x+2]<<16)+this[x+3]*16777216};n.prototype.readUint32BE=n.prototype.readUInt32BE=function(x,r){return x=x>>>0,r||y(x,4,this.length),this[x]*16777216+(this[x+1]<<16|this[x+2]<<8|this[x+3])};n.prototype.readIntLE=function(x,r,t){x=x>>>0,r=r>>>0,t||y(x,r,this.length);for(var f=this[x],c=1,a=0;++a<r&&(c*=256);)f+=this[x+a]*c;return c*=128,f>=c&&(f-=Math.pow(2,8*r)),f};n.prototype.readIntBE=function(x,r,t){x=x>>>0,r=r>>>0,t||y(x,r,this.length);for(var f=r,c=1,a=this[x+--f];f>0&&(c*=256);)a+=this[x+--f]*c;return c*=128,a>=c&&(a-=Math.pow(2,8*r)),a};n.prototype.readInt8=function(x,r){return x=x>>>0,r||y(x,1,this.length),this[x]&128?(255-this[x]+1)*-1:this[x]};n.prototype.readInt16LE=function(x,r){x=x>>>0,r||y(x,2,this.length);var t=this[x]|this[x+1]<<8;return t&32768?t|4294901760:t};n.prototype.readInt16BE=function(x,r){x=x>>>0,r||y(x,2,this.length);var t=this[x+1]|this[x]<<8;return t&32768?t|4294901760:t};n.prototype.readInt32LE=function(x,r){return x=x>>>0,r||y(x,4,this.length),this[x]|this[x+1]<<8|this[x+2]<<16|this[x+3]<<24};n.prototype.readInt32BE=function(x,r){return x=x>>>0,r||y(x,4,this.length),this[x]<<24|this[x+1]<<16|this[x+2]<<8|this[x+3]};n.prototype.readFloatLE=function(x,r){return x=x>>>0,r||y(x,4,this.length),I.read(this,x,!0,23,4)};n.prototype.readFloatBE=function(x,r){return x=x>>>0,r||y(x,4,this.length),I.read(this,x,!1,23,4)};n.prototype.readDoubleLE=function(x,r){return x=x>>>0,r||y(x,8,this.length),I.read(this,x,!0,52,8)};n.prototype.readDoubleBE=function(x,r){return x=x>>>0,r||y(x,8,this.length),I.read(this,x,!1,52,8)};function F(e,x,r,t,f,c){if(!n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>f||x<c)throw new RangeError('"value" argument is out of bounds');if(r+t>e.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(x,r,t,f){if(x=+x,r=r>>>0,t=t>>>0,!f){var c=Math.pow(2,8*t)-1;F(this,x,r,t,c,0)}var a=1,i=0;for(this[r]=x&255;++i<t&&(a*=256);)this[r+i]=x/a&255;return r+t};n.prototype.writeUintBE=n.prototype.writeUIntBE=function(x,r,t,f){if(x=+x,r=r>>>0,t=t>>>0,!f){var c=Math.pow(2,8*t)-1;F(this,x,r,t,c,0)}var a=t-1,i=1;for(this[r+a]=x&255;--a>=0&&(i*=256);)this[r+a]=x/i&255;return r+t};n.prototype.writeUint8=n.prototype.writeUInt8=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,1,255,0),this[r]=x&255,r+1};n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,2,65535,0),this[r]=x&255,this[r+1]=x>>>8,r+2};n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,2,65535,0),this[r]=x>>>8,this[r+1]=x&255,r+2};n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,4,4294967295,0),this[r+3]=x>>>24,this[r+2]=x>>>16,this[r+1]=x>>>8,this[r]=x&255,r+4};n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,4,4294967295,0),this[r]=x>>>24,this[r+1]=x>>>16,this[r+2]=x>>>8,this[r+3]=x&255,r+4};n.prototype.writeIntLE=function(x,r,t,f){if(x=+x,r=r>>>0,!f){var c=Math.pow(2,8*t-1);F(this,x,r,t,c-1,-c)}var a=0,i=1,o=0;for(this[r]=x&255;++a<t&&(i*=256);)x<0&&o===0&&this[r+a-1]!==0&&(o=1),this[r+a]=(x/i>>0)-o&255;return r+t};n.prototype.writeIntBE=function(x,r,t,f){if(x=+x,r=r>>>0,!f){var c=Math.pow(2,8*t-1);F(this,x,r,t,c-1,-c)}var a=t-1,i=1,o=0;for(this[r+a]=x&255;--a>=0&&(i*=256);)x<0&&o===0&&this[r+a+1]!==0&&(o=1),this[r+a]=(x/i>>0)-o&255;return r+t};n.prototype.writeInt8=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,1,127,-128),x<0&&(x=255+x+1),this[r]=x&255,r+1};n.prototype.writeInt16LE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,2,32767,-32768),this[r]=x&255,this[r+1]=x>>>8,r+2};n.prototype.writeInt16BE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,2,32767,-32768),this[r]=x>>>8,this[r+1]=x&255,r+2};n.prototype.writeInt32LE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,4,2147483647,-2147483648),this[r]=x&255,this[r+1]=x>>>8,this[r+2]=x>>>16,this[r+3]=x>>>24,r+4};n.prototype.writeInt32BE=function(x,r,t){return x=+x,r=r>>>0,t||F(this,x,r,4,2147483647,-2147483648),x<0&&(x=4294967295+x+1),this[r]=x>>>24,this[r+1]=x>>>16,this[r+2]=x>>>8,this[r+3]=x&255,r+4};function w0(e,x,r,t,f,c){if(r+t>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F0(e,x,r,t,f){return x=+x,r=r>>>0,f||w0(e,x,r,4,34028234663852886e22,-34028234663852886e22),I.write(e,x,r,t,23,4),r+4}n.prototype.writeFloatLE=function(x,r,t){return F0(this,x,r,!0,t)};n.prototype.writeFloatBE=function(x,r,t){return F0(this,x,r,!1,t)};function m0(e,x,r,t,f){return x=+x,r=r>>>0,f||w0(e,x,r,8,17976931348623157e292,-17976931348623157e292),I.write(e,x,r,t,52,8),r+8}n.prototype.writeDoubleLE=function(x,r,t){return m0(this,x,r,!0,t)};n.prototype.writeDoubleBE=function(x,r,t){return m0(this,x,r,!1,t)};n.prototype.copy=function(x,r,t,f){if(!n.isBuffer(x))throw new TypeError("argument should be a Buffer");if(t||(t=0),!f&&f!==0&&(f=this.length),r>=x.length&&(r=x.length),r||(r=0),f>0&&f<t&&(f=t),f===t||x.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),x.length-r<f-t&&(f=x.length-r+t);var c=f-t;return this===x&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,t,f):Uint8Array.prototype.set.call(x,this.subarray(t,f),r),c};n.prototype.fill=function(x,r,t,f){if(typeof x=="string"){if(typeof r=="string"?(f=r,r=0,t=this.length):typeof t=="string"&&(f=t,t=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!n.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(x.length===1){var c=x.charCodeAt(0);(f==="utf8"&&c<128||f==="latin1")&&(x=c)}}else typeof x=="number"?x=x&255:typeof x=="boolean"&&(x=Number(x));if(r<0||this.length<r||this.length<t)throw new RangeError("Out of range index");if(t<=r)return this;r=r>>>0,t=t===void 0?this.length:t>>>0,x||(x=0);var a;if(typeof x=="number")for(a=r;a<t;++a)this[a]=x;else{var i=n.isBuffer(x)?x:n.from(x,f),o=i.length;if(o===0)throw new TypeError('The value "'+x+'" is invalid for argument "value"');for(a=0;a<t-r;++a)this[a+r]=i[a%o]}return this};var Ax=/[^+/0-9A-Za-z-_]/g;function wx(e){if(e=e.split("=")[0],e=e.trim().replace(Ax,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function q(e,x){x=x||1/0;for(var r,t=e.length,f=null,c=[],a=0;a<t;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!f){if(r>56319){(x-=3)>-1&&c.push(239,191,189);continue}else if(a+1===t){(x-=3)>-1&&c.push(239,191,189);continue}f=r;continue}if(r<56320){(x-=3)>-1&&c.push(239,191,189),f=r;continue}r=(f-55296<<10|r-56320)+65536}else f&&(x-=3)>-1&&c.push(239,191,189);if(f=null,r<128){if((x-=1)<0)break;c.push(r)}else if(r<2048){if((x-=2)<0)break;c.push(r>>6|192,r&63|128)}else if(r<65536){if((x-=3)<0)break;c.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((x-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return c}function Fx(e){for(var x=[],r=0;r<e.length;++r)x.push(e.charCodeAt(r)&255);return x}function mx(e,x){for(var r,t,f,c=[],a=0;a<e.length&&!((x-=2)<0);++a)r=e.charCodeAt(a),t=r>>8,f=r%256,c.push(f),c.push(t);return c}function E0(e){return J.toByteArray(wx(e))}function D(e,x,r,t){for(var f=0;f<t&&!(f+r>=x.length||f>=e.length);++f)x[f+r]=e[f];return f}function H(e,x){return e instanceof x||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===x.name}function G(e){return e!==e}var Ex=function(){for(var e="0123456789abcdef",x=new Array(256),r=0;r<16;++r)for(var t=r*16,f=0;f<16;++f)x[t+f]=e[r]+e[f];return x}()});var T=w(m());var B0=w(m());var _=w(m()),Bx=_.Buffer.from&&_.Buffer.alloc&&_.Buffer.allocUnsafe&&_.Buffer.allocUnsafeSlow?_.Buffer.from:e=>new _.Buffer(e),p=Bx;function s(e,x){let r=(t,f)=>x(t,f)>>>0;return r.signed=x,r.unsigned=r,r.model=e,r}var Sx=s("crc1",function(e,x){B0.Buffer.isBuffer(e)||(e=p(e));let r=~~x,t=0;for(let f=0;f<e.length;f++)t+=e[f];return r+=t%256,r%256}),S0=Sx;var H0=w(m());var Z=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array!="undefined"&&(Z=new Int32Array(Z));var Hx=s("crc-8",function(e,x){H0.Buffer.isBuffer(e)||(e=p(e));let r=~~x;for(let t=0;t<e.length;t++){let f=e[t];r=Z[(r^f)&255]&255}return r}),R0=Hx;var U0=w(m());var Q=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];typeof Int32Array!="undefined"&&(Q=new Int32Array(Q));var Rx=s("dallas-1-wire",function(e,x){U0.Buffer.isBuffer(e)||(e=p(e));let r=~~x;for(let t=0;t<e.length;t++){let f=e[t];r=Q[(r^f)&255]&255}return r}),C0=Rx;var _0=w(m());var $=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array!="undefined"&&($=new Int32Array($));var Ux=s("crc-16",function(e,x){_0.Buffer.isBuffer(e)||(e=p(e));let r=~~x;for(let t=0;t<e.length;t++){let f=e[t];r=($[(r^f)&255]^r>>8)&65535}return r}),I0=Ux;var v0=w(m());var x0=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];typeof Int32Array!="undefined"&&(x0=new Int32Array(x0));var Cx=s("ccitt",function(e,x){v0.Buffer.isBuffer(e)||(e=p(e));let r=typeof x!="undefined"?~~x:65535;for(let t=0;t<e.length;t++){let f=e[t];r=(x0[(r>>8^f)&255]^r<<8)&65535}return r}),g0=Cx;var T0=w(m());var r0=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array!="undefined"&&(r0=new Int32Array(r0));var _x=s("crc-16-modbus",function(e,x){T0.Buffer.isBuffer(e)||(e=p(e));let r=typeof x!="undefined"?~~x:65535;for(let t=0;t<e.length;t++){let f=e[t];r=(r0[(r^f)&255]^r>>8)&65535}return r}),X0=_x;var M0=w(m());var Ix=s("xmodem",function(e,x){M0.Buffer.isBuffer(e)||(e=p(e));let r=typeof x!="undefined"?~~x:0;for(let t=0;t<e.length;t++){let f=e[t],c=r>>>8&255;c^=f&255,c^=c>>>4,r=r<<8&65535,r^=c,c=c<<5&65535,r^=c,c=c<<7&65535,r^=c}return r}),k0=Ix;var O0=w(m());var e0=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array!="undefined"&&(e0=new Int32Array(e0));var vx=s("kermit",function(e,x){O0.Buffer.isBuffer(e)||(e=p(e));let r=typeof x!="undefined"?~~x:0;for(let t=0;t<e.length;t++){let f=e[t];r=(e0[(r^f)&255]^r>>8)&65535}return r}),D0=vx;var L0=w(m());var t0=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array!="undefined"&&(t0=new Int32Array(t0));var gx=s("crc-24",function(e,x){L0.Buffer.isBuffer(e)||(e=p(e));let r=typeof x!="undefined"?~~x:11994318;for(let t=0;t<e.length;t++){let f=e[t];r=(t0[(r>>16^f)&255]^r<<8)&16777215}return r}),N0=gx;var W0=w(m());var f0=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(f0=new Int32Array(f0));var Tx=s("crc-32",function(e,x){W0.Buffer.isBuffer(e)||(e=p(e));let r=x===0?0:~~x^-1;for(let t=0;t<e.length;t++){let f=e[t];r=f0[(r^f)&255]^r>>>8}return r^-1}),Y0=Tx;var J0=w(m());var c0=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(c0=new Int32Array(c0));var Xx=s("jam",function(e,x=-1){J0.Buffer.isBuffer(e)||(e=p(e));let r=x===0?0:~~x;for(let t=0;t<e.length;t++){let f=e[t];r=c0[(r^f)&255]^r>>>8}return r}),z0=Xx;var V0={crc1:S0,crc8:R0,crc81wire:C0,crc16:I0,crc16ccitt:g0,crc16modbus:X0,crc16xmodem:k0,crc16kermit:D0,crc24:N0,crc32:Y0,crcjam:z0};var K0=w(a0()),kr=e=>{let x=new DataView(e.buffer,e.byteOffset,e.byteLength);if(typeof x.getBigUint64=="function")return x.getBigUint64(0);{let r=BigInt(x.getUint32(0)),t=BigInt(x.getUint32(4));return(r<<BigInt(32))+t}},Or=e=>{let x=new Uint8Array(e);return Array.from(x)},Mx=e=>new Uint8Array(e),Dr=e=>Mx(e).buffer,Lr=(e,x)=>{let r=new ArrayBuffer(x);return new DataView(r).setUint32(x-4,e),r},kx=e=>Array.from(e).map(x=>x.charCodeAt(0)),Nr=e=>Uint8Array.from(T.Buffer.from(e,"hex")).subarray(4),Wr=e=>T.Buffer.from(e).toString("hex"),Yr=(e,x)=>{let r=kx(`
2
+ account-id`),t=K0.sha224.create();t.update([...r,...e.toUint8Array(),...x??Array(32).fill(0)]);let f=new Uint8Array(t.array()),c=Dx(f),a=new Uint8Array([...c,...f]);return Ox(a)},Ox=e=>e.reduce((x,r)=>x+r.toString(16).padStart(2,"0"),""),Dx=e=>{let x=new ArrayBuffer(4);return new DataView(x).setUint32(0,V0.crc32(T.Buffer.from(e)),!1),T.Buffer.from(x)};export{a0 as a,d0 as b,m as c,kr as d,Or as e,Mx as f,Dr as g,Lr as h,kx as i,Nr as j,Wr as k,Yr as l,Ox as m,Dx as n};
3
+ /*!
4
+ * The buffer module from node.js, for the browser.
5
+ *
6
+ * @author Feross Aboukhadijeh <https://feross.org>
7
+ * @license MIT
8
+ */
9
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
+ /**
11
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
12
+ *
13
+ * @version 0.9.0
14
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
15
+ * @copyright Chen, Yi-Cyuan 2014-2017
16
+ * @license MIT
17
+ */
18
+ //# sourceMappingURL=chunk-EXEYDII6.js.map