Socket
Socket
Sign inDemoInstall

multicodec

Package Overview
Dependencies
1
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.5.0

src/constants.js

12

CHANGELOG.md

@@ -0,1 +1,13 @@

<a name="0.5.0"></a>
# [0.5.0](https://github.com/multiformats/js-multicodec/compare/v0.4.0...v0.5.0) (2019-01-24)
### Features
* add codes as constants ([1c43120](https://github.com/multiformats/js-multicodec/commit/1c43120))
* add convenience function for getting the codec code ([ab110e3](https://github.com/multiformats/js-multicodec/commit/ab110e3))
* update scripts ([b74f269](https://github.com/multiformats/js-multicodec/commit/b74f269))
<a name="0.4.0"></a>

@@ -2,0 +14,0 @@ # [0.4.0](https://github.com/multiformats/js-multicodec/compare/v0.3.0...v0.4.0) (2019-01-08)

2

dist/index.min.js

@@ -1,2 +0,2 @@

var Multicodec=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function r(){return e.default}:function r(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}({"./node_modules/base64-js/index.js":function(e,r,t){"use strict";r.byteLength=a,r.toByteArray=m,r.fromByteArray=l;for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,s=f.length;h<s;++h)n[h]=f[h],o[f.charCodeAt(h)]=h;function b(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("="),n;return-1===t&&(t=r),[t,t===r?0:4-t%4]}function a(e){var r=b(e),t=r[0],n=r[1];return 3*(t+n)/4-n}function u(e,r,t){return 3*(r+t)/4-t}function m(e){for(var r,t=b(e),n=t[0],f=t[1],h=new i(u(e,n,f)),s=0,a=f>0?n-4:n,m=0;m<a;m+=4)r=o[e.charCodeAt(m)]<<18|o[e.charCodeAt(m+1)]<<12|o[e.charCodeAt(m+2)]<<6|o[e.charCodeAt(m+3)],h[s++]=r>>16&255,h[s++]=r>>8&255,h[s++]=255&r;return 2===f&&(r=o[e.charCodeAt(m)]<<2|o[e.charCodeAt(m+1)]>>4,h[s++]=255&r),1===f&&(r=o[e.charCodeAt(m)]<<10|o[e.charCodeAt(m+1)]<<4|o[e.charCodeAt(m+2)]>>2,h[s++]=r>>8&255,h[s++]=255&r),h}function x(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,r,t){for(var n,o=[],i=r;i<t;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(x(n));return o.join("")}function l(e){for(var r,t=e.length,o=t%3,i=[],f=16383,h=0,s=t-o;h<s;h+=16383)i.push(c(e,h,h+16383>s?s:h+16383));return 1===o?(r=e[t-1],i.push(n[r>>2]+n[r<<4&63]+"==")):2===o&&(r=(e[t-2]<<8)+e[t-1],i.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"./node_modules/buffer/index.js":function(e,r,t){"use strict";(function(e){var n=t("./node_modules/base64-js/index.js"),o=t("./node_modules/ieee754/index.js"),i=t("./node_modules/isarray/index.js");function f(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function h(){return b.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,r){if(h()<r)throw new RangeError("Invalid typed array length");return b.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=b.prototype:(null===e&&(e=new b(r)),e.length=r),e}function b(e,r,t){if(!(b.TYPED_ARRAY_SUPPORT||this instanceof b))return new b(e,r,t);if("number"==typeof e){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return x(this,e)}return a(this,e,r,t)}function a(e,r,t,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?k(e,r,t,n):"string"==typeof r?c(e,r,t):d(e,r)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function m(e,r,t,n){return u(r),r<=0?s(e,r):void 0!==t?"string"==typeof n?s(e,r).fill(t,n):s(e,r).fill(t):s(e,r)}function x(e,r){if(u(r),e=s(e,r<0?0:0|p(r)),!b.TYPED_ARRAY_SUPPORT)for(var t=0;t<r;++t)e[t]=0;return e}function c(e,r,t){if("string"==typeof t&&""!==t||(t="utf8"),!b.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(r,t),o=(e=s(e,n)).write(r,t);return o!==n&&(e=e.slice(0,o)),e}function l(e,r){var t=r.length<0?0:0|p(r.length);e=s(e,t);for(var n=0;n<t;n+=1)e[n]=255&r[n];return e}function k(e,r,t,n){if(r.byteLength,t<0||r.byteLength<t)throw new RangeError("'offset' is out of bounds");if(r.byteLength<t+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===t&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,t):new Uint8Array(r,t,n),b.TYPED_ARRAY_SUPPORT?(e=r).__proto__=b.prototype:e=l(e,r),e}function d(e,r){if(b.isBuffer(r)){var t=0|p(r.length);return 0===(e=s(e,t)).length?e:(r.copy(e,0,0,t),e)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||re(r.length)?s(e,0):l(e,r);if("Buffer"===r.type&&i(r.data))return l(e,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(e){if(e>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),b.alloc(+e)}function y(e,r){if(b.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return $(e).length;default:if(n)return K(e).length;r=(""+r).toLowerCase(),n=!0}}function w(e,r,t){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(r>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,r,t);case"utf8":case"utf-8":return j(this,r,t);case"ascii":return I(this,r,t);case"latin1":case"binary":return O(this,r,t);case"base64":return U(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}function _(e,r,t,n,o){if(0===e.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)return-1;t=0}if("string"==typeof r&&(r=b.from(r,n)),b.isBuffer(r))return 0===r.length?-1:E(e,r,t,n,o);if("number"==typeof r)return r&=255,b.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):E(e,[r],t,n,o);throw new TypeError("val must be string, number or Buffer")}function E(e,r,t,n,o){var i=1,f=e.length,h=r.length,s;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||r.length<2)return-1;i=2,f/=2,h/=2,t/=2}function b(e,r){return 1===i?e[r]:e.readUInt16BE(r*i)}if(o){var a=-1;for(s=t;s<f;s++)if(b(e,s)===b(r,-1===a?0:s-a)){if(-1===a&&(a=s),s-a+1===h)return a*i}else-1!==a&&(s-=s-a),a=-1}else for(t+h>f&&(t=f-h),s=t;s>=0;s--){for(var u=!0,m=0;m<h;m++)if(b(e,s+m)!==b(r,m)){u=!1;break}if(u)return s}return-1}function A(e,r,t,n){t=Number(t)||0;var o=e.length-t;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var f=0;f<n;++f){var h=parseInt(r.substr(2*f,2),16);if(isNaN(h))return f;e[t+f]=h}return f}function R(e,r,t,n){return ee(K(r,e.length-t),e,t,n)}function P(e,r,t,n){return ee(Q(r),e,t,n)}function B(e,r,t,n){return P(e,r,t,n)}function T(e,r,t,n){return ee($(r),e,t,n)}function S(e,r,t,n){return ee(W(r,e.length-t),e,t,n)}function U(e,r,t){return 0===r&&t===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(r,t))}function j(e,r,t){t=Math.min(e.length,t);for(var n=[],o=r;o<t;){var i=e[o],f=null,h=i>239?4:i>223?3:i>191?2:1,s,b,a,u;if(o+h<=t)switch(h){case 1:i<128&&(f=i);break;case 2:128==(192&(s=e[o+1]))&&(u=(31&i)<<6|63&s)>127&&(f=u);break;case 3:s=e[o+1],b=e[o+2],128==(192&s)&&128==(192&b)&&(u=(15&i)<<12|(63&s)<<6|63&b)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:s=e[o+1],b=e[o+2],a=e[o+3],128==(192&s)&&128==(192&b)&&128==(192&a)&&(u=(15&i)<<18|(63&s)<<12|(63&b)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=h}return Y(n)}r.Buffer=b,r.SlowBuffer=g,r.INSPECT_MAX_BYTES=50,b.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:f(),r.kMaxLength=h(),b.poolSize=8192,b._augment=function(e){return e.__proto__=b.prototype,e},b.from=function(e,r,t){return a(null,e,r,t)},b.TYPED_ARRAY_SUPPORT&&(b.prototype.__proto__=Uint8Array.prototype,b.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&b[Symbol.species]===b&&Object.defineProperty(b,Symbol.species,{value:null,configurable:!0})),b.alloc=function(e,r,t){return m(null,e,r,t)},b.allocUnsafe=function(e){return x(null,e)},b.allocUnsafeSlow=function(e){return x(null,e)},b.isBuffer=function e(r){return!(null==r||!r._isBuffer)},b.compare=function e(r,t){if(!b.isBuffer(r)||!b.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(r===t)return 0;for(var n=r.length,o=t.length,i=0,f=Math.min(n,o);i<f;++i)if(r[i]!==t[i]){n=r[i],o=t[i];break}return n<o?-1:o<n?1:0},b.isEncoding=function e(r){switch(String(r).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}},b.concat=function e(r,t){if(!i(r))throw new TypeError('"list" argument must be an Array of Buffers');if(0===r.length)return b.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var o=b.allocUnsafe(t),f=0;for(n=0;n<r.length;++n){var h=r[n];if(!b.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(o,f),f+=h.length}return o},b.byteLength=y,b.prototype._isBuffer=!0,b.prototype.swap16=function e(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)v(this,t,t+1);return this},b.prototype.swap32=function e(){var r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},b.prototype.swap64=function e(){var r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},b.prototype.toString=function e(){var r=0|this.length;return 0===r?"":0===arguments.length?j(this,0,r):w.apply(this,arguments)},b.prototype.equals=function e(r){if(!b.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||0===b.compare(this,r)},b.prototype.inspect=function e(){var t="",n=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},b.prototype.compare=function e(r,t,n,o,i){if(!b.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=r?r.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>r.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===r)return 0;for(var f=i-o,h=n-t,s=Math.min(f,h),a=this.slice(o,i),u=r.slice(t,n),m=0;m<s;++m)if(a[m]!==u[m]){f=a[m],h=u[m];break}return f<h?-1:h<f?1:0},b.prototype.includes=function e(r,t,n){return-1!==this.indexOf(r,t,n)},b.prototype.indexOf=function e(r,t,n){return _(this,r,t,n,!0)},b.prototype.lastIndexOf=function e(r,t,n){return _(this,r,t,n,!1)},b.prototype.write=function e(r,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var f=!1;;)switch(o){case"hex":return A(this,r,t,n);case"utf8":case"utf-8":return R(this,r,t,n);case"ascii":return P(this,r,t,n);case"latin1":case"binary":return B(this,r,t,n);case"base64":return T(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,r,t,n);default:if(f)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),f=!0}},b.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function Y(e){var r=e.length;if(r<=M)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=M));return t}function I(e,r,t){var n="";t=Math.min(e.length,t);for(var o=r;o<t;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,r,t){var n="";t=Math.min(e.length,t);for(var o=r;o<t;++o)n+=String.fromCharCode(e[o]);return n}function C(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var o="",i=r;i<t;++i)o+=H(e[i]);return o}function L(e,r,t){for(var n=e.slice(r,t),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function D(e,r,t){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}function N(e,r,t,n,o,i){if(!b.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}function z(e,r,t,n){r<0&&(r=65535+r+1);for(var o=0,i=Math.min(e.length-t,2);o<i;++o)e[t+o]=(r&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function F(e,r,t,n){r<0&&(r=4294967295+r+1);for(var o=0,i=Math.min(e.length-t,4);o<i;++o)e[t+o]=r>>>8*(n?o:3-o)&255}function V(e,r,t,n,o,i){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function q(e,r,t,n,i){return i||V(e,r,t,4,3.4028234663852886e38,-3.4028234663852886e38),o.write(e,r,t,n,23,4),t+4}function X(e,r,t,n,i){return i||V(e,r,t,8,1.7976931348623157e308,-1.7976931348623157e308),o.write(e,r,t,n,52,8),t+8}b.prototype.slice=function e(r,t){var n=this.length,o;if(r=~~r,t=void 0===t?n:~~t,r<0?(r+=n)<0&&(r=0):r>n&&(r=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<r&&(t=r),b.TYPED_ARRAY_SUPPORT)(o=this.subarray(r,t)).__proto__=b.prototype;else{var i=t-r;o=new b(i,void 0);for(var f=0;f<i;++f)o[f]=this[f+r]}return o},b.prototype.readUIntLE=function e(r,t,n){r|=0,t|=0,n||D(r,t,this.length);for(var o=this[r],i=1,f=0;++f<t&&(i*=256);)o+=this[r+f]*i;return o},b.prototype.readUIntBE=function e(r,t,n){r|=0,t|=0,n||D(r,t,this.length);for(var o=this[r+--t],i=1;t>0&&(i*=256);)o+=this[r+--t]*i;return o},b.prototype.readUInt8=function e(r,t){return t||D(r,1,this.length),this[r]},b.prototype.readUInt16LE=function e(r,t){return t||D(r,2,this.length),this[r]|this[r+1]<<8},b.prototype.readUInt16BE=function e(r,t){return t||D(r,2,this.length),this[r]<<8|this[r+1]},b.prototype.readUInt32LE=function e(r,t){return t||D(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},b.prototype.readUInt32BE=function e(r,t){return t||D(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},b.prototype.readIntLE=function e(r,t,n){r|=0,t|=0,n||D(r,t,this.length);for(var o=this[r],i=1,f=0;++f<t&&(i*=256);)o+=this[r+f]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},b.prototype.readIntBE=function e(r,t,n){r|=0,t|=0,n||D(r,t,this.length);for(var o=t,i=1,f=this[r+--o];o>0&&(i*=256);)f+=this[r+--o]*i;return f>=(i*=128)&&(f-=Math.pow(2,8*t)),f},b.prototype.readInt8=function e(r,t){return t||D(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},b.prototype.readInt16LE=function e(r,t){t||D(r,2,this.length);var n=this[r]|this[r+1]<<8;return 32768&n?4294901760|n:n},b.prototype.readInt16BE=function e(r,t){t||D(r,2,this.length);var n=this[r+1]|this[r]<<8;return 32768&n?4294901760|n:n},b.prototype.readInt32LE=function e(r,t){return t||D(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},b.prototype.readInt32BE=function e(r,t){return t||D(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},b.prototype.readFloatLE=function e(r,t){return t||D(r,4,this.length),o.read(this,r,!0,23,4)},b.prototype.readFloatBE=function e(r,t){return t||D(r,4,this.length),o.read(this,r,!1,23,4)},b.prototype.readDoubleLE=function e(r,t){return t||D(r,8,this.length),o.read(this,r,!0,52,8)},b.prototype.readDoubleBE=function e(r,t){return t||D(r,8,this.length),o.read(this,r,!1,52,8)},b.prototype.writeUIntLE=function e(r,t,n,o){var i;(r=+r,t|=0,n|=0,o)||N(this,r,t,n,Math.pow(2,8*n)-1,0);var f=1,h=0;for(this[t]=255&r;++h<n&&(f*=256);)this[t+h]=r/f&255;return t+n},b.prototype.writeUIntBE=function e(r,t,n,o){var i;(r=+r,t|=0,n|=0,o)||N(this,r,t,n,Math.pow(2,8*n)-1,0);var f=n-1,h=1;for(this[t+f]=255&r;--f>=0&&(h*=256);)this[t+f]=r/h&255;return t+n},b.prototype.writeUInt8=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,1,255,0),b.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[t]=255&r,t+1},b.prototype.writeUInt16LE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,2,65535,0),b.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8):z(this,r,t,!0),t+2},b.prototype.writeUInt16BE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,2,65535,0),b.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=255&r):z(this,r,t,!1),t+2},b.prototype.writeUInt32LE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,4,4294967295,0),b.TYPED_ARRAY_SUPPORT?(this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=255&r):F(this,r,t,!0),t+4},b.prototype.writeUInt32BE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,4,4294967295,0),b.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=255&r):F(this,r,t,!1),t+4},b.prototype.writeIntLE=function e(r,t,n,o){if(r=+r,t|=0,!o){var i=Math.pow(2,8*n-1);N(this,r,t,n,i-1,-i)}var f=0,h=1,s=0;for(this[t]=255&r;++f<n&&(h*=256);)r<0&&0===s&&0!==this[t+f-1]&&(s=1),this[t+f]=(r/h>>0)-s&255;return t+n},b.prototype.writeIntBE=function e(r,t,n,o){if(r=+r,t|=0,!o){var i=Math.pow(2,8*n-1);N(this,r,t,n,i-1,-i)}var f=n-1,h=1,s=0;for(this[t+f]=255&r;--f>=0&&(h*=256);)r<0&&0===s&&0!==this[t+f+1]&&(s=1),this[t+f]=(r/h>>0)-s&255;return t+n},b.prototype.writeInt8=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,1,127,-128),b.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[t]=255&r,t+1},b.prototype.writeInt16LE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,2,32767,-32768),b.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8):z(this,r,t,!0),t+2},b.prototype.writeInt16BE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,2,32767,-32768),b.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=255&r):z(this,r,t,!1),t+2},b.prototype.writeInt32LE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,4,2147483647,-2147483648),b.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24):F(this,r,t,!0),t+4},b.prototype.writeInt32BE=function e(r,t,n){return r=+r,t|=0,n||N(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),b.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=255&r):F(this,r,t,!1),t+4},b.prototype.writeFloatLE=function e(r,t,n){return q(this,r,t,!0,n)},b.prototype.writeFloatBE=function e(r,t,n){return q(this,r,t,!1,n)},b.prototype.writeDoubleLE=function e(r,t,n){return X(this,r,t,!0,n)},b.prototype.writeDoubleBE=function e(r,t,n){return X(this,r,t,!1,n)},b.prototype.copy=function e(r,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=r.length&&(t=r.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===r.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),r.length-t<o-n&&(o=r.length-t+n);var i=o-n,f;if(this===r&&n<t&&t<o)for(f=i-1;f>=0;--f)r[f+t]=this[f+n];else if(i<1e3||!b.TYPED_ARRAY_SUPPORT)for(f=0;f<i;++f)r[f+t]=this[f+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+i),t);return i},b.prototype.fill=function e(r,t,n,o){if("string"==typeof r){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===r.length){var i=r.charCodeAt(0);i<256&&(r=i)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!b.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof r&&(r&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var f;if(t>>>=0,n=void 0===n?this.length:n>>>0,r||(r=0),"number"==typeof r)for(f=t;f<n;++f)this[f]=r;else{var h=b.isBuffer(r)?r:K(new b(r,o).toString()),s=h.length;for(f=0;f<n-t;++f)this[f+t]=h[f%s]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function Z(e){if((e=G(e).replace(J,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function G(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,r){var t;r=r||1/0;for(var n=e.length,o=null,i=[],f=0;f<n;++f){if((t=e.charCodeAt(f))>55295&&t<57344){if(!o){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function Q(e){for(var r=[],t=0;t<e.length;++t)r.push(255&e.charCodeAt(t));return r}function W(e,r){for(var t,n,o,i=[],f=0;f<e.length&&!((r-=2)<0);++f)n=(t=e.charCodeAt(f))>>8,o=t%256,i.push(o),i.push(n);return i}function $(e){return n.toByteArray(Z(e))}function ee(e,r,t,n){for(var o=0;o<n&&!(o+t>=r.length||o>=e.length);++o)r[o+t]=e[o];return o}function re(e){return e!=e}}).call(this,t("./node_modules/webpack/buildin/global.js"))},"./node_modules/ieee754/index.js":function(e,r){r.read=function(e,r,t,n,o){var i,f,h=8*o-n-1,s=(1<<h)-1,b=s>>1,a=-7,u=t?o-1:0,m=t?-1:1,x=e[r+u];for(u+=m,i=x&(1<<-a)-1,x>>=-a,a+=h;a>0;i=256*i+e[r+u],u+=m,a-=8);for(f=i&(1<<-a)-1,i>>=-a,a+=n;a>0;f=256*f+e[r+u],u+=m,a-=8);if(0===i)i=1-b;else{if(i===s)return f?NaN:1/0*(x?-1:1);f+=Math.pow(2,n),i-=b}return(x?-1:1)*f*Math.pow(2,i-n)},r.write=function(e,r,t,n,o,i){var f,h,s,b=8*i-o-1,a=(1<<b)-1,u=a>>1,m=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:i-1,c=n?1:-1,l=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,f=a):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),(r+=f+u>=1?m/s:m*Math.pow(2,1-u))*s>=2&&(f++,s/=2),f+u>=a?(h=0,f=a):f+u>=1?(h=(r*s-1)*Math.pow(2,o),f+=u):(h=r*Math.pow(2,u-1)*Math.pow(2,o),f=0));o>=8;e[t+x]=255&h,x+=c,h/=256,o-=8);for(f=f<<o|h,b+=o;b>0;e[t+x]=255&f,x+=c,f/=256,b-=8);e[t+x-c]|=128*l}},"./node_modules/isarray/index.js":function(e,r){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},"./node_modules/varint/decode.js":function(e,r){e.exports=o;var t=128,n=127;function o(e,r){var i=0,r,f=0,h=r=r||0,s,b=e.length;do{if(h>=b)throw o.bytes=0,new RangeError("Could not decode varint");s=e[h++],i+=f<28?(s&n)<<f:(s&n)*Math.pow(2,f),f+=7}while(s>=t);return o.bytes=h-r,i}},"./node_modules/varint/encode.js":function(e,r){e.exports=f;var t=128,n=127,o=-128,i=Math.pow(2,31);function f(e,r,n){r=r||[];for(var h=n=n||0;e>=i;)r[n++]=255&e|t,e/=128;for(;e&o;)r[n++]=255&e|t,e>>>=7;return r[n]=0|e,f.bytes=n-h+1,r}},"./node_modules/varint/index.js":function(e,r,t){e.exports={encode:t("./node_modules/varint/encode.js"),decode:t("./node_modules/varint/decode.js"),encodingLength:t("./node_modules/varint/length.js")}},"./node_modules/varint/length.js":function(e,r){var t=Math.pow(2,7),n=Math.pow(2,14),o=Math.pow(2,21),i=Math.pow(2,28),f=Math.pow(2,35),h=Math.pow(2,42),s=Math.pow(2,49),b=Math.pow(2,56),a=Math.pow(2,63);e.exports=function(e){return e<t?1:e<n?2:e<o?3:e<i?4:e<f?5:e<h?6:e<s?7:e<b?8:e<a?9:10}},"./node_modules/webpack/buildin/global.js":function(e,r){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},"./src/base-table.js":function(e,r,t){"use strict";(function(e){r.raw=e.from("55","hex"),r.cbor=e.from("51","hex"),r.protobuf=e.from("50","hex"),r.rlp=e.from("60","hex"),r.bencode=e.from("63","hex"),r.multicodec=e.from("30","hex"),r.multihash=e.from("31","hex"),r.multiaddr=e.from("32","hex"),r.multibase=e.from("33","hex"),r.identity=e.from("00","hex"),r.md4=e.from("d4","hex"),r.md5=e.from("d5","hex"),r.sha1=e.from("11","hex"),r["sha2-256"]=e.from("12","hex"),r["sha2-512"]=e.from("13","hex"),r["dbl-sha2-256"]=e.from("56","hex"),r["sha3-224"]=e.from("17","hex"),r["sha3-256"]=e.from("16","hex"),r["sha3-384"]=e.from("15","hex"),r["sha3-512"]=e.from("14","hex"),r["shake-128"]=e.from("18","hex"),r["shake-256"]=e.from("19","hex"),r["keccak-224"]=e.from("1a","hex"),r["keccak-256"]=e.from("1b","hex"),r["keccak-384"]=e.from("1c","hex"),r["keccak-512"]=e.from("1d","hex"),r["murmur3-128"]=e.from("22","hex"),r["murmur3-32"]=e.from("23","hex"),r.x11=e.from("1100","hex"),r["blake2b-8"]=e.from("b201","hex"),r["blake2b-16"]=e.from("b202","hex"),r["blake2b-24"]=e.from("b203","hex"),r["blake2b-32"]=e.from("b204","hex"),r["blake2b-40"]=e.from("b205","hex"),r["blake2b-48"]=e.from("b206","hex"),r["blake2b-56"]=e.from("b207","hex"),r["blake2b-64"]=e.from("b208","hex"),r["blake2b-72"]=e.from("b209","hex"),r["blake2b-80"]=e.from("b20a","hex"),r["blake2b-88"]=e.from("b20b","hex"),r["blake2b-96"]=e.from("b20c","hex"),r["blake2b-104"]=e.from("b20d","hex"),r["blake2b-112"]=e.from("b20e","hex"),r["blake2b-120"]=e.from("b20f","hex"),r["blake2b-128"]=e.from("b210","hex"),r["blake2b-136"]=e.from("b211","hex"),r["blake2b-144"]=e.from("b212","hex"),r["blake2b-152"]=e.from("b213","hex"),r["blake2b-160"]=e.from("b214","hex"),r["blake2b-168"]=e.from("b215","hex"),r["blake2b-176"]=e.from("b216","hex"),r["blake2b-184"]=e.from("b217","hex"),r["blake2b-192"]=e.from("b218","hex"),r["blake2b-200"]=e.from("b219","hex"),r["blake2b-208"]=e.from("b21a","hex"),r["blake2b-216"]=e.from("b21b","hex"),r["blake2b-224"]=e.from("b21c","hex"),r["blake2b-232"]=e.from("b21d","hex"),r["blake2b-240"]=e.from("b21e","hex"),r["blake2b-248"]=e.from("b21f","hex"),r["blake2b-256"]=e.from("b220","hex"),r["blake2b-264"]=e.from("b221","hex"),r["blake2b-272"]=e.from("b222","hex"),r["blake2b-280"]=e.from("b223","hex"),r["blake2b-288"]=e.from("b224","hex"),r["blake2b-296"]=e.from("b225","hex"),r["blake2b-304"]=e.from("b226","hex"),r["blake2b-312"]=e.from("b227","hex"),r["blake2b-320"]=e.from("b228","hex"),r["blake2b-328"]=e.from("b229","hex"),r["blake2b-336"]=e.from("b22a","hex"),r["blake2b-344"]=e.from("b22b","hex"),r["blake2b-352"]=e.from("b22c","hex"),r["blake2b-360"]=e.from("b22d","hex"),r["blake2b-368"]=e.from("b22e","hex"),r["blake2b-376"]=e.from("b22f","hex"),r["blake2b-384"]=e.from("b230","hex"),r["blake2b-392"]=e.from("b231","hex"),r["blake2b-400"]=e.from("b232","hex"),r["blake2b-408"]=e.from("b233","hex"),r["blake2b-416"]=e.from("b234","hex"),r["blake2b-424"]=e.from("b235","hex"),r["blake2b-432"]=e.from("b236","hex"),r["blake2b-440"]=e.from("b237","hex"),r["blake2b-448"]=e.from("b238","hex"),r["blake2b-456"]=e.from("b239","hex"),r["blake2b-464"]=e.from("b23a","hex"),r["blake2b-472"]=e.from("b23b","hex"),r["blake2b-480"]=e.from("b23c","hex"),r["blake2b-488"]=e.from("b23d","hex"),r["blake2b-496"]=e.from("b23e","hex"),r["blake2b-504"]=e.from("b23f","hex"),r["blake2b-512"]=e.from("b240","hex"),r["blake2s-8"]=e.from("b241","hex"),r["blake2s-16"]=e.from("b242","hex"),r["blake2s-24"]=e.from("b243","hex"),r["blake2s-32"]=e.from("b244","hex"),r["blake2s-40"]=e.from("b245","hex"),r["blake2s-48"]=e.from("b246","hex"),r["blake2s-56"]=e.from("b247","hex"),r["blake2s-64"]=e.from("b248","hex"),r["blake2s-72"]=e.from("b249","hex"),r["blake2s-80"]=e.from("b24a","hex"),r["blake2s-88"]=e.from("b24b","hex"),r["blake2s-96"]=e.from("b24c","hex"),r["blake2s-104"]=e.from("b24d","hex"),r["blake2s-112"]=e.from("b24e","hex"),r["blake2s-120"]=e.from("b24f","hex"),r["blake2s-128"]=e.from("b250","hex"),r["blake2s-136"]=e.from("b251","hex"),r["blake2s-144"]=e.from("b252","hex"),r["blake2s-152"]=e.from("b253","hex"),r["blake2s-160"]=e.from("b254","hex"),r["blake2s-168"]=e.from("b255","hex"),r["blake2s-176"]=e.from("b256","hex"),r["blake2s-184"]=e.from("b257","hex"),r["blake2s-192"]=e.from("b258","hex"),r["blake2s-200"]=e.from("b259","hex"),r["blake2s-208"]=e.from("b25a","hex"),r["blake2s-216"]=e.from("b25b","hex"),r["blake2s-224"]=e.from("b25c","hex"),r["blake2s-232"]=e.from("b25d","hex"),r["blake2s-240"]=e.from("b25e","hex"),r["blake2s-248"]=e.from("b25f","hex"),r["blake2s-256"]=e.from("b260","hex"),r["skein256-8"]=e.from("b301","hex"),r["skein256-16"]=e.from("b302","hex"),r["skein256-24"]=e.from("b303","hex"),r["skein256-32"]=e.from("b304","hex"),r["skein256-40"]=e.from("b305","hex"),r["skein256-48"]=e.from("b306","hex"),r["skein256-56"]=e.from("b307","hex"),r["skein256-64"]=e.from("b308","hex"),r["skein256-72"]=e.from("b309","hex"),r["skein256-80"]=e.from("b30a","hex"),r["skein256-88"]=e.from("b30b","hex"),r["skein256-96"]=e.from("b30c","hex"),r["skein256-104"]=e.from("b30d","hex"),r["skein256-112"]=e.from("b30e","hex"),r["skein256-120"]=e.from("b30f","hex"),r["skein256-128"]=e.from("b310","hex"),r["skein256-136"]=e.from("b311","hex"),r["skein256-144"]=e.from("b312","hex"),r["skein256-152"]=e.from("b313","hex"),r["skein256-160"]=e.from("b314","hex"),r["skein256-168"]=e.from("b315","hex"),r["skein256-176"]=e.from("b316","hex"),r["skein256-184"]=e.from("b317","hex"),r["skein256-192"]=e.from("b318","hex"),r["skein256-200"]=e.from("b319","hex"),r["skein256-208"]=e.from("b31a","hex"),r["skein256-216"]=e.from("b31b","hex"),r["skein256-224"]=e.from("b31c","hex"),r["skein256-232"]=e.from("b31d","hex"),r["skein256-240"]=e.from("b31e","hex"),r["skein256-248"]=e.from("b31f","hex"),r["skein256-256"]=e.from("b320","hex"),r["skein512-8"]=e.from("b321","hex"),r["skein512-16"]=e.from("b322","hex"),r["skein512-24"]=e.from("b323","hex"),r["skein512-32"]=e.from("b324","hex"),r["skein512-40"]=e.from("b325","hex"),r["skein512-48"]=e.from("b326","hex"),r["skein512-56"]=e.from("b327","hex"),r["skein512-64"]=e.from("b328","hex"),r["skein512-72"]=e.from("b329","hex"),r["skein512-80"]=e.from("b32a","hex"),r["skein512-88"]=e.from("b32b","hex"),r["skein512-96"]=e.from("b32c","hex"),r["skein512-104"]=e.from("b32d","hex"),r["skein512-112"]=e.from("b32e","hex"),r["skein512-120"]=e.from("b32f","hex"),r["skein512-128"]=e.from("b330","hex"),r["skein512-136"]=e.from("b331","hex"),r["skein512-144"]=e.from("b332","hex"),r["skein512-152"]=e.from("b333","hex"),r["skein512-160"]=e.from("b334","hex"),r["skein512-168"]=e.from("b335","hex"),r["skein512-176"]=e.from("b336","hex"),r["skein512-184"]=e.from("b337","hex"),r["skein512-192"]=e.from("b338","hex"),r["skein512-200"]=e.from("b339","hex"),r["skein512-208"]=e.from("b33a","hex"),r["skein512-216"]=e.from("b33b","hex"),r["skein512-224"]=e.from("b33c","hex"),r["skein512-232"]=e.from("b33d","hex"),r["skein512-240"]=e.from("b33e","hex"),r["skein512-248"]=e.from("b33f","hex"),r["skein512-256"]=e.from("b340","hex"),r["skein512-264"]=e.from("b341","hex"),r["skein512-272"]=e.from("b342","hex"),r["skein512-280"]=e.from("b343","hex"),r["skein512-288"]=e.from("b344","hex"),r["skein512-296"]=e.from("b345","hex"),r["skein512-304"]=e.from("b346","hex"),r["skein512-312"]=e.from("b347","hex"),r["skein512-320"]=e.from("b348","hex"),r["skein512-328"]=e.from("b349","hex"),r["skein512-336"]=e.from("b34a","hex"),r["skein512-344"]=e.from("b34b","hex"),r["skein512-352"]=e.from("b34c","hex"),r["skein512-360"]=e.from("b34d","hex"),r["skein512-368"]=e.from("b34e","hex"),r["skein512-376"]=e.from("b34f","hex"),r["skein512-384"]=e.from("b350","hex"),r["skein512-392"]=e.from("b351","hex"),r["skein512-400"]=e.from("b352","hex"),r["skein512-408"]=e.from("b353","hex"),r["skein512-416"]=e.from("b354","hex"),r["skein512-424"]=e.from("b355","hex"),r["skein512-432"]=e.from("b356","hex"),r["skein512-440"]=e.from("b357","hex"),r["skein512-448"]=e.from("b358","hex"),r["skein512-456"]=e.from("b359","hex"),r["skein512-464"]=e.from("b35a","hex"),r["skein512-472"]=e.from("b35b","hex"),r["skein512-480"]=e.from("b35c","hex"),r["skein512-488"]=e.from("b35d","hex"),r["skein512-496"]=e.from("b35e","hex"),r["skein512-504"]=e.from("b35f","hex"),r["skein512-512"]=e.from("b360","hex"),r["skein1024-8"]=e.from("b361","hex"),r["skein1024-16"]=e.from("b362","hex"),r["skein1024-24"]=e.from("b363","hex"),r["skein1024-32"]=e.from("b364","hex"),r["skein1024-40"]=e.from("b365","hex"),r["skein1024-48"]=e.from("b366","hex"),r["skein1024-56"]=e.from("b367","hex"),r["skein1024-64"]=e.from("b368","hex"),r["skein1024-72"]=e.from("b369","hex"),r["skein1024-80"]=e.from("b36a","hex"),r["skein1024-88"]=e.from("b36b","hex"),r["skein1024-96"]=e.from("b36c","hex"),r["skein1024-104"]=e.from("b36d","hex"),r["skein1024-112"]=e.from("b36e","hex"),r["skein1024-120"]=e.from("b36f","hex"),r["skein1024-128"]=e.from("b370","hex"),r["skein1024-136"]=e.from("b371","hex"),r["skein1024-144"]=e.from("b372","hex"),r["skein1024-152"]=e.from("b373","hex"),r["skein1024-160"]=e.from("b374","hex"),r["skein1024-168"]=e.from("b375","hex"),r["skein1024-176"]=e.from("b376","hex"),r["skein1024-184"]=e.from("b377","hex"),r["skein1024-192"]=e.from("b378","hex"),r["skein1024-200"]=e.from("b379","hex"),r["skein1024-208"]=e.from("b37a","hex"),r["skein1024-216"]=e.from("b37b","hex"),r["skein1024-224"]=e.from("b37c","hex"),r["skein1024-232"]=e.from("b37d","hex"),r["skein1024-240"]=e.from("b37e","hex"),r["skein1024-248"]=e.from("b37f","hex"),r["skein1024-256"]=e.from("b380","hex"),r["skein1024-264"]=e.from("b381","hex"),r["skein1024-272"]=e.from("b382","hex"),r["skein1024-280"]=e.from("b383","hex"),r["skein1024-288"]=e.from("b384","hex"),r["skein1024-296"]=e.from("b385","hex"),r["skein1024-304"]=e.from("b386","hex"),r["skein1024-312"]=e.from("b387","hex"),r["skein1024-320"]=e.from("b388","hex"),r["skein1024-328"]=e.from("b389","hex"),r["skein1024-336"]=e.from("b38a","hex"),r["skein1024-344"]=e.from("b38b","hex"),r["skein1024-352"]=e.from("b38c","hex"),r["skein1024-360"]=e.from("b38d","hex"),r["skein1024-368"]=e.from("b38e","hex"),r["skein1024-376"]=e.from("b38f","hex"),r["skein1024-384"]=e.from("b390","hex"),r["skein1024-392"]=e.from("b391","hex"),r["skein1024-400"]=e.from("b392","hex"),r["skein1024-408"]=e.from("b393","hex"),r["skein1024-416"]=e.from("b394","hex"),r["skein1024-424"]=e.from("b395","hex"),r["skein1024-432"]=e.from("b396","hex"),r["skein1024-440"]=e.from("b397","hex"),r["skein1024-448"]=e.from("b398","hex"),r["skein1024-456"]=e.from("b399","hex"),r["skein1024-464"]=e.from("b39a","hex"),r["skein1024-472"]=e.from("b39b","hex"),r["skein1024-480"]=e.from("b39c","hex"),r["skein1024-488"]=e.from("b39d","hex"),r["skein1024-496"]=e.from("b39e","hex"),r["skein1024-504"]=e.from("b39f","hex"),r["skein1024-512"]=e.from("b3a0","hex"),r["skein1024-520"]=e.from("b3a1","hex"),r["skein1024-528"]=e.from("b3a2","hex"),r["skein1024-536"]=e.from("b3a3","hex"),r["skein1024-544"]=e.from("b3a4","hex"),r["skein1024-552"]=e.from("b3a5","hex"),r["skein1024-560"]=e.from("b3a6","hex"),r["skein1024-568"]=e.from("b3a7","hex"),r["skein1024-576"]=e.from("b3a8","hex"),r["skein1024-584"]=e.from("b3a9","hex"),r["skein1024-592"]=e.from("b3aa","hex"),r["skein1024-600"]=e.from("b3ab","hex"),r["skein1024-608"]=e.from("b3ac","hex"),r["skein1024-616"]=e.from("b3ad","hex"),r["skein1024-624"]=e.from("b3ae","hex"),r["skein1024-632"]=e.from("b3af","hex"),r["skein1024-640"]=e.from("b3b0","hex"),r["skein1024-648"]=e.from("b3b1","hex"),r["skein1024-656"]=e.from("b3b2","hex"),r["skein1024-664"]=e.from("b3b3","hex"),r["skein1024-672"]=e.from("b3b4","hex"),r["skein1024-680"]=e.from("b3b5","hex"),r["skein1024-688"]=e.from("b3b6","hex"),r["skein1024-696"]=e.from("b3b7","hex"),r["skein1024-704"]=e.from("b3b8","hex"),r["skein1024-712"]=e.from("b3b9","hex"),r["skein1024-720"]=e.from("b3ba","hex"),r["skein1024-728"]=e.from("b3bb","hex"),r["skein1024-736"]=e.from("b3bc","hex"),r["skein1024-744"]=e.from("b3bd","hex"),r["skein1024-752"]=e.from("b3be","hex"),r["skein1024-760"]=e.from("b3bf","hex"),r["skein1024-768"]=e.from("b3c0","hex"),r["skein1024-776"]=e.from("b3c1","hex"),r["skein1024-784"]=e.from("b3c2","hex"),r["skein1024-792"]=e.from("b3c3","hex"),r["skein1024-800"]=e.from("b3c4","hex"),r["skein1024-808"]=e.from("b3c5","hex"),r["skein1024-816"]=e.from("b3c6","hex"),r["skein1024-824"]=e.from("b3c7","hex"),r["skein1024-832"]=e.from("b3c8","hex"),r["skein1024-840"]=e.from("b3c9","hex"),r["skein1024-848"]=e.from("b3ca","hex"),r["skein1024-856"]=e.from("b3cb","hex"),r["skein1024-864"]=e.from("b3cc","hex"),r["skein1024-872"]=e.from("b3cd","hex"),r["skein1024-880"]=e.from("b3ce","hex"),r["skein1024-888"]=e.from("b3cf","hex"),r["skein1024-896"]=e.from("b3d0","hex"),r["skein1024-904"]=e.from("b3d1","hex"),r["skein1024-912"]=e.from("b3d2","hex"),r["skein1024-920"]=e.from("b3d3","hex"),r["skein1024-928"]=e.from("b3d4","hex"),r["skein1024-936"]=e.from("b3d5","hex"),r["skein1024-944"]=e.from("b3d6","hex"),r["skein1024-952"]=e.from("b3d7","hex"),r["skein1024-960"]=e.from("b3d8","hex"),r["skein1024-968"]=e.from("b3d9","hex"),r["skein1024-976"]=e.from("b3da","hex"),r["skein1024-984"]=e.from("b3db","hex"),r["skein1024-992"]=e.from("b3dc","hex"),r["skein1024-1000"]=e.from("b3dd","hex"),r["skein1024-1008"]=e.from("b3de","hex"),r["skein1024-1016"]=e.from("b3df","hex"),r["skein1024-1024"]=e.from("b3e0","hex"),r.ip4=e.from("04","hex"),r.ip6=e.from("29","hex"),r.ip6zone=e.from("2a","hex"),r.tcp=e.from("06","hex"),r.udp=e.from("0111","hex"),r.dccp=e.from("21","hex"),r.sctp=e.from("84","hex"),r.udt=e.from("012d","hex"),r.utp=e.from("012e","hex"),r.p2p=e.from("01a5","hex"),r.ipfs=e.from("01a5","hex"),r.http=e.from("01e0","hex"),r.https=e.from("01bb","hex"),r.quic=e.from("01cc","hex"),r.ws=e.from("01dd","hex"),r.wss=e.from("01de","hex"),r.onion=e.from("01bc","hex"),r.onion3=e.from("01bd","hex"),r.garlic64=e.from("01be","hex"),r["p2p-circuit"]=e.from("0122","hex"),r.dns=e.from("35","hex"),r.dns4=e.from("36","hex"),r.dns6=e.from("37","hex"),r.dnsaddr=e.from("38","hex"),r["p2p-websocket-star"]=e.from("01df","hex"),r["p2p-webrtc-star"]=e.from("0113","hex"),r["p2p-webrtc-direct"]=e.from("0114","hex"),r.unix=e.from("0190","hex"),r["dag-pb"]=e.from("70","hex"),r["dag-cbor"]=e.from("71","hex"),r["dag-json"]=e.from("0129","hex"),r["git-raw"]=e.from("78","hex"),r["eth-block"]=e.from("90","hex"),r["eth-block-list"]=e.from("91","hex"),r["eth-tx-trie"]=e.from("92","hex"),r["eth-tx"]=e.from("93","hex"),r["eth-tx-receipt-trie"]=e.from("94","hex"),r["eth-tx-receipt"]=e.from("95","hex"),r["eth-state-trie"]=e.from("96","hex"),r["eth-account-snapshot"]=e.from("97","hex"),r["eth-storage-trie"]=e.from("98","hex"),r["bitcoin-block"]=e.from("b0","hex"),r["bitcoin-tx"]=e.from("b1","hex"),r["zcash-block"]=e.from("c0","hex"),r["zcash-tx"]=e.from("c1","hex"),r["stellar-block"]=e.from("d0","hex"),r["stellar-tx"]=e.from("d1","hex"),r["decred-block"]=e.from("e0","hex"),r["decred-tx"]=e.from("e1","hex"),r["dash-block"]=e.from("f0","hex"),r["dash-tx"]=e.from("f1","hex"),r["torrent-info"]=e.from("7b","hex"),r["torrent-file"]=e.from("7c","hex"),r["ed25519-pub"]=e.from("ed","hex")}).call(this,t("./node_modules/buffer/index.js").Buffer)},"./src/index.js":function(e,r,t){"use strict";(function(n){const o=t("./node_modules/varint/index.js"),i=t("./src/varint-table.js"),f=t("./src/name-table.js"),h=t("./src/util.js");(r=e.exports).addPrefix=((e,r)=>{let t;if(n.isBuffer(e))t=h.varintBufferEncode(e);else{if(!i[e])throw new Error("multicodec not recognized");t=i[e]}return n.concat([t,r])}),r.rmPrefix=(e=>(o.decode(e),e.slice(o.decode.bytes))),r.getCodec=(e=>{const r=h.varintBufferDecode(e),t=f[r.toString("hex")];if(void 0===t)throw new Error("Code `0x"+r.toString("hex")+"` not found");return t}),r.getCodeVarint=(e=>{const r=i[e];if(void 0===r)throw new Error("Codec `"+e+"` not found");return r})}).call(this,t("./node_modules/buffer/index.js").Buffer)},"./src/name-table.js":function(e,r,t){"use strict";const n=t("./src/base-table.js"),o={};e.exports=o;for(let e in n){let r;o[n[e].toString("hex")]=e}},"./src/util.js":function(e,r,t){"use strict";(function(r){const n=t("./node_modules/varint/index.js");function o(e){return parseInt(e.toString("hex"),16)}function i(e){let t=e.toString(16);return t.length%2==1&&(t="0"+t),r.from(t,"hex")}function f(e){return r.from(n.encode(o(e)))}function h(e){return i(n.decode(e))}e.exports={numberToBuffer:i,bufferToNumber:o,varintBufferEncode:f,varintBufferDecode:h}}).call(this,t("./node_modules/buffer/index.js").Buffer)},"./src/varint-table.js":function(e,r,t){"use strict";const n=t("./src/base-table.js"),o=t("./src/util.js").varintBufferEncode,i={};e.exports=i;for(let e in n){let r=n[e];i[e]=o(r)}},0:function(e,r,t){e.exports=t("./src/index.js")}});
var Multicodec=function(e){var r={};function n(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)n.d(t,i,function(r){return e[r]}.bind(null,i));return t},n.n=function(e){var r=e&&e.__esModule?function r(){return e.default}:function r(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=0)}({"./node_modules/base64-js/index.js":function(e,r,n){"use strict";r.byteLength=a,r.toByteArray=u,r.fromByteArray=c;for(var t=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=s.length;f<h;++f)t[f]=s[f],i[s.charCodeAt(f)]=f;function b(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("="),t;return-1===n&&(n=r),[n,n===r?0:4-n%4]}function a(e){var r=b(e),n=r[0],t=r[1];return 3*(n+t)/4-t}function k(e,r,n){return 3*(r+n)/4-n}function u(e){for(var r,n=b(e),t=n[0],s=n[1],f=new o(k(e,t,s)),h=0,a=s>0?t-4:t,u=0;u<a;u+=4)r=i[e.charCodeAt(u)]<<18|i[e.charCodeAt(u+1)]<<12|i[e.charCodeAt(u+2)]<<6|i[e.charCodeAt(u+3)],f[h++]=r>>16&255,f[h++]=r>>8&255,f[h++]=255&r;return 2===s&&(r=i[e.charCodeAt(u)]<<2|i[e.charCodeAt(u+1)]>>4,f[h++]=255&r),1===s&&(r=i[e.charCodeAt(u)]<<10|i[e.charCodeAt(u+1)]<<4|i[e.charCodeAt(u+2)]>>2,f[h++]=r>>8&255,f[h++]=255&r),f}function l(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[63&e]}function m(e,r,n){for(var t,i=[],o=r;o<n;o+=3)t=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(l(t));return i.join("")}function c(e){for(var r,n=e.length,i=n%3,o=[],s=16383,f=0,h=n-i;f<h;f+=16383)o.push(m(e,f,f+16383>h?h:f+16383));return 1===i?(r=e[n-1],o.push(t[r>>2]+t[r<<4&63]+"==")):2===i&&(r=(e[n-2]<<8)+e[n-1],o.push(t[r>>10]+t[r>>4&63]+t[r<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"./node_modules/buffer/index.js":function(e,r,n){"use strict";(function(e){var t=n("./node_modules/base64-js/index.js"),i=n("./node_modules/ieee754/index.js"),o=n("./node_modules/isarray/index.js");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function f(){return b.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(e,r){if(f()<r)throw new RangeError("Invalid typed array length");return b.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=b.prototype:(null===e&&(e=new b(r)),e.length=r),e}function b(e,r,n){if(!(b.TYPED_ARRAY_SUPPORT||this instanceof b))return new b(e,r,n);if("number"==typeof e){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return a(this,e,r,n)}function a(e,r,n,t){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?x(e,r,n,t):"string"==typeof r?m(e,r,n):_(e,r)}function k(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,r,n,t){return k(r),r<=0?h(e,r):void 0!==n?"string"==typeof t?h(e,r).fill(n,t):h(e,r).fill(n):h(e,r)}function l(e,r){if(k(r),e=h(e,r<0?0:0|E(r)),!b.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)e[n]=0;return e}function m(e,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!b.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var t=0|p(r,n),i=(e=h(e,t)).write(r,n);return i!==t&&(e=e.slice(0,i)),e}function c(e,r){var n=r.length<0?0:0|E(r.length);e=h(e,n);for(var t=0;t<n;t+=1)e[t]=255&r[t];return e}function x(e,r,n,t){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(t||0))throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===t?new Uint8Array(r):void 0===t?new Uint8Array(r,n):new Uint8Array(r,n,t),b.TYPED_ARRAY_SUPPORT?(e=r).__proto__=b.prototype:e=c(e,r),e}function _(e,r){if(b.isBuffer(r)){var n=0|E(r.length);return 0===(e=h(e,n)).length?e:(r.copy(e,0,0,n),e)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||re(r.length)?h(e,0):c(e,r);if("Buffer"===r.type&&o(r.data))return c(e,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function E(e){if(e>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return 0|e}function S(e){return+e!=e&&(e=0),b.alloc(+e)}function p(e,r){if(b.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var t=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(t)return q(e).length;r=(""+r).toLowerCase(),t=!0}}function d(e,r,n){var t=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(r>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return U(this,r,n);case"utf8":case"utf-8":return T(this,r,n);case"ascii":return C(this,r,n);case"latin1":case"binary":return O(this,r,n);case"base64":return v(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,r,n);default:if(t)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),t=!0}}function K(e,r,n){var t=e[r];e[r]=e[n],e[n]=t}function I(e,r,n,t,i){if(0===e.length)return-1;if("string"==typeof n?(t=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=b.from(r,t)),b.isBuffer(r))return 0===r.length?-1:N(e,r,n,t,i);if("number"==typeof r)return r&=255,b.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):N(e,[r],n,t,i);throw new TypeError("val must be string, number or Buffer")}function N(e,r,n,t,i){var o=1,s=e.length,f=r.length,h;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(e.length<2||r.length<2)return-1;o=2,s/=2,f/=2,n/=2}function b(e,r){return 1===o?e[r]:e.readUInt16BE(r*o)}if(i){var a=-1;for(h=n;h<s;h++)if(b(e,h)===b(r,-1===a?0:h-a)){if(-1===a&&(a=h),h-a+1===f)return a*o}else-1!==a&&(h-=h-a),a=-1}else for(n+f>s&&(n=s-f),h=n;h>=0;h--){for(var k=!0,u=0;u<f;u++)if(b(e,h+u)!==b(r,u)){k=!1;break}if(k)return h}return-1}function g(e,r,n,t){n=Number(n)||0;var i=e.length-n;t?(t=Number(t))>i&&(t=i):t=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");t>o/2&&(t=o/2);for(var s=0;s<t;++s){var f=parseInt(r.substr(2*s,2),16);if(isNaN(f))return s;e[n+s]=f}return s}function B(e,r,n,t){return ee(q(r,e.length-n),e,n,t)}function A(e,r,n,t){return ee(J(r),e,n,t)}function y(e,r,n,t){return A(e,r,n,t)}function w(e,r,n,t){return ee($(r),e,n,t)}function L(e,r,n,t){return ee(Q(r,e.length-n),e,n,t)}function v(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function T(e,r,n){n=Math.min(e.length,n);for(var t=[],i=r;i<n;){var o=e[i],s=null,f=o>239?4:o>223?3:o>191?2:1,h,b,a,k;if(i+f<=n)switch(f){case 1:o<128&&(s=o);break;case 2:128==(192&(h=e[i+1]))&&(k=(31&o)<<6|63&h)>127&&(s=k);break;case 3:h=e[i+1],b=e[i+2],128==(192&h)&&128==(192&b)&&(k=(15&o)<<12|(63&h)<<6|63&b)>2047&&(k<55296||k>57343)&&(s=k);break;case 4:h=e[i+1],b=e[i+2],a=e[i+3],128==(192&h)&&128==(192&b)&&128==(192&a)&&(k=(15&o)<<18|(63&h)<<12|(63&b)<<6|63&a)>65535&&k<1114112&&(s=k)}null===s?(s=65533,f=1):s>65535&&(s-=65536,t.push(s>>>10&1023|55296),s=56320|1023&s),t.push(s),i+=f}return P(t)}r.Buffer=b,r.SlowBuffer=S,r.INSPECT_MAX_BYTES=50,b.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),r.kMaxLength=f(),b.poolSize=8192,b._augment=function(e){return e.__proto__=b.prototype,e},b.from=function(e,r,n){return a(null,e,r,n)},b.TYPED_ARRAY_SUPPORT&&(b.prototype.__proto__=Uint8Array.prototype,b.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&b[Symbol.species]===b&&Object.defineProperty(b,Symbol.species,{value:null,configurable:!0})),b.alloc=function(e,r,n){return u(null,e,r,n)},b.allocUnsafe=function(e){return l(null,e)},b.allocUnsafeSlow=function(e){return l(null,e)},b.isBuffer=function e(r){return!(null==r||!r._isBuffer)},b.compare=function e(r,n){if(!b.isBuffer(r)||!b.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(r===n)return 0;for(var t=r.length,i=n.length,o=0,s=Math.min(t,i);o<s;++o)if(r[o]!==n[o]){t=r[o],i=n[o];break}return t<i?-1:i<t?1:0},b.isEncoding=function e(r){switch(String(r).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}},b.concat=function e(r,n){if(!o(r))throw new TypeError('"list" argument must be an Array of Buffers');if(0===r.length)return b.alloc(0);var t;if(void 0===n)for(n=0,t=0;t<r.length;++t)n+=r[t].length;var i=b.allocUnsafe(n),s=0;for(t=0;t<r.length;++t){var f=r[t];if(!b.isBuffer(f))throw new TypeError('"list" argument must be an Array of Buffers');f.copy(i,s),s+=f.length}return i},b.byteLength=p,b.prototype._isBuffer=!0,b.prototype.swap16=function e(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<r;n+=2)K(this,n,n+1);return this},b.prototype.swap32=function e(){var r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<r;n+=4)K(this,n,n+3),K(this,n+1,n+2);return this},b.prototype.swap64=function e(){var r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<r;n+=8)K(this,n,n+7),K(this,n+1,n+6),K(this,n+2,n+5),K(this,n+3,n+4);return this},b.prototype.toString=function e(){var r=0|this.length;return 0===r?"":0===arguments.length?T(this,0,r):d.apply(this,arguments)},b.prototype.equals=function e(r){if(!b.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||0===b.compare(this,r)},b.prototype.inspect=function e(){var n="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(n+=" ... ")),"<Buffer "+n+">"},b.prototype.compare=function e(r,n,t,i,o){if(!b.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===t&&(t=r?r.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),n<0||t>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=t)return 0;if(i>=o)return-1;if(n>=t)return 1;if(n>>>=0,t>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var s=o-i,f=t-n,h=Math.min(s,f),a=this.slice(i,o),k=r.slice(n,t),u=0;u<h;++u)if(a[u]!==k[u]){s=a[u],f=k[u];break}return s<f?-1:f<s?1:0},b.prototype.includes=function e(r,n,t){return-1!==this.indexOf(r,n,t)},b.prototype.indexOf=function e(r,n,t){return I(this,r,n,t,!0)},b.prototype.lastIndexOf=function e(r,n,t){return I(this,r,n,t,!1)},b.prototype.write=function e(r,n,t,i){if(void 0===n)i="utf8",t=this.length,n=0;else if(void 0===t&&"string"==typeof n)i=n,t=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(t)?(t|=0,void 0===i&&(i="utf8")):(i=t,t=void 0)}var o=this.length-n;if((void 0===t||t>o)&&(t=o),r.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return g(this,r,n,t);case"utf8":case"utf-8":return B(this,r,n,t);case"ascii":return A(this,r,n,t);case"latin1":case"binary":return y(this,r,n,t);case"base64":return w(this,r,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,n,t);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},b.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function P(e){var r=e.length;if(r<=R)return String.fromCharCode.apply(String,e);for(var n="",t=0;t<r;)n+=String.fromCharCode.apply(String,e.slice(t,t+=R));return n}function C(e,r,n){var t="";n=Math.min(e.length,n);for(var i=r;i<n;++i)t+=String.fromCharCode(127&e[i]);return t}function O(e,r,n){var t="";n=Math.min(e.length,n);for(var i=r;i<n;++i)t+=String.fromCharCode(e[i]);return t}function U(e,r,n){var t=e.length;(!r||r<0)&&(r=0),(!n||n<0||n>t)&&(n=t);for(var i="",o=r;o<n;++o)i+=Z(e[o]);return i}function j(e,r,n){for(var t=e.slice(r,n),i="",o=0;o<t.length;o+=2)i+=String.fromCharCode(t[o]+256*t[o+1]);return i}function D(e,r,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+r>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,r,n,t,i,o){if(!b.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(n+t>e.length)throw new RangeError("Index out of range")}function Y(e,r,n,t){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(r&255<<8*(t?i:1-i))>>>8*(t?i:1-i)}function H(e,r,n,t){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=r>>>8*(t?i:3-i)&255}function z(e,r,n,t,i,o){if(n+t>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,r,n,t,o){return o||z(e,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(e,r,n,t,23,4),n+4}function X(e,r,n,t,o){return o||z(e,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(e,r,n,t,52,8),n+8}b.prototype.slice=function e(r,n){var t=this.length,i;if(r=~~r,n=void 0===n?t:~~n,r<0?(r+=t)<0&&(r=0):r>t&&(r=t),n<0?(n+=t)<0&&(n=0):n>t&&(n=t),n<r&&(n=r),b.TYPED_ARRAY_SUPPORT)(i=this.subarray(r,n)).__proto__=b.prototype;else{var o=n-r;i=new b(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+r]}return i},b.prototype.readUIntLE=function e(r,n,t){r|=0,n|=0,t||D(r,n,this.length);for(var i=this[r],o=1,s=0;++s<n&&(o*=256);)i+=this[r+s]*o;return i},b.prototype.readUIntBE=function e(r,n,t){r|=0,n|=0,t||D(r,n,this.length);for(var i=this[r+--n],o=1;n>0&&(o*=256);)i+=this[r+--n]*o;return i},b.prototype.readUInt8=function e(r,n){return n||D(r,1,this.length),this[r]},b.prototype.readUInt16LE=function e(r,n){return n||D(r,2,this.length),this[r]|this[r+1]<<8},b.prototype.readUInt16BE=function e(r,n){return n||D(r,2,this.length),this[r]<<8|this[r+1]},b.prototype.readUInt32LE=function e(r,n){return n||D(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},b.prototype.readUInt32BE=function e(r,n){return n||D(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},b.prototype.readIntLE=function e(r,n,t){r|=0,n|=0,t||D(r,n,this.length);for(var i=this[r],o=1,s=0;++s<n&&(o*=256);)i+=this[r+s]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},b.prototype.readIntBE=function e(r,n,t){r|=0,n|=0,t||D(r,n,this.length);for(var i=n,o=1,s=this[r+--i];i>0&&(o*=256);)s+=this[r+--i]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*n)),s},b.prototype.readInt8=function e(r,n){return n||D(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},b.prototype.readInt16LE=function e(r,n){n||D(r,2,this.length);var t=this[r]|this[r+1]<<8;return 32768&t?4294901760|t:t},b.prototype.readInt16BE=function e(r,n){n||D(r,2,this.length);var t=this[r+1]|this[r]<<8;return 32768&t?4294901760|t:t},b.prototype.readInt32LE=function e(r,n){return n||D(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},b.prototype.readInt32BE=function e(r,n){return n||D(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},b.prototype.readFloatLE=function e(r,n){return n||D(r,4,this.length),i.read(this,r,!0,23,4)},b.prototype.readFloatBE=function e(r,n){return n||D(r,4,this.length),i.read(this,r,!1,23,4)},b.prototype.readDoubleLE=function e(r,n){return n||D(r,8,this.length),i.read(this,r,!0,52,8)},b.prototype.readDoubleBE=function e(r,n){return n||D(r,8,this.length),i.read(this,r,!1,52,8)},b.prototype.writeUIntLE=function e(r,n,t,i){var o;(r=+r,n|=0,t|=0,i)||M(this,r,n,t,Math.pow(2,8*t)-1,0);var s=1,f=0;for(this[n]=255&r;++f<t&&(s*=256);)this[n+f]=r/s&255;return n+t},b.prototype.writeUIntBE=function e(r,n,t,i){var o;(r=+r,n|=0,t|=0,i)||M(this,r,n,t,Math.pow(2,8*t)-1,0);var s=t-1,f=1;for(this[n+s]=255&r;--s>=0&&(f*=256);)this[n+s]=r/f&255;return n+t},b.prototype.writeUInt8=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,1,255,0),b.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[n]=255&r,n+1},b.prototype.writeUInt16LE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,2,65535,0),b.TYPED_ARRAY_SUPPORT?(this[n]=255&r,this[n+1]=r>>>8):Y(this,r,n,!0),n+2},b.prototype.writeUInt16BE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,2,65535,0),b.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=255&r):Y(this,r,n,!1),n+2},b.prototype.writeUInt32LE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,4,4294967295,0),b.TYPED_ARRAY_SUPPORT?(this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=255&r):H(this,r,n,!0),n+4},b.prototype.writeUInt32BE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,4,4294967295,0),b.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=255&r):H(this,r,n,!1),n+4},b.prototype.writeIntLE=function e(r,n,t,i){if(r=+r,n|=0,!i){var o=Math.pow(2,8*t-1);M(this,r,n,t,o-1,-o)}var s=0,f=1,h=0;for(this[n]=255&r;++s<t&&(f*=256);)r<0&&0===h&&0!==this[n+s-1]&&(h=1),this[n+s]=(r/f>>0)-h&255;return n+t},b.prototype.writeIntBE=function e(r,n,t,i){if(r=+r,n|=0,!i){var o=Math.pow(2,8*t-1);M(this,r,n,t,o-1,-o)}var s=t-1,f=1,h=0;for(this[n+s]=255&r;--s>=0&&(f*=256);)r<0&&0===h&&0!==this[n+s+1]&&(h=1),this[n+s]=(r/f>>0)-h&255;return n+t},b.prototype.writeInt8=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,1,127,-128),b.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[n]=255&r,n+1},b.prototype.writeInt16LE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,2,32767,-32768),b.TYPED_ARRAY_SUPPORT?(this[n]=255&r,this[n+1]=r>>>8):Y(this,r,n,!0),n+2},b.prototype.writeInt16BE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,2,32767,-32768),b.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=255&r):Y(this,r,n,!1),n+2},b.prototype.writeInt32LE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,4,2147483647,-2147483648),b.TYPED_ARRAY_SUPPORT?(this[n]=255&r,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24):H(this,r,n,!0),n+4},b.prototype.writeInt32BE=function e(r,n,t){return r=+r,n|=0,t||M(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),b.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=255&r):H(this,r,n,!1),n+4},b.prototype.writeFloatLE=function e(r,n,t){return F(this,r,n,!0,t)},b.prototype.writeFloatBE=function e(r,n,t){return F(this,r,n,!1,t)},b.prototype.writeDoubleLE=function e(r,n,t){return X(this,r,n,!0,t)},b.prototype.writeDoubleBE=function e(r,n,t){return X(this,r,n,!1,t)},b.prototype.copy=function e(r,n,t,i){if(t||(t=0),i||0===i||(i=this.length),n>=r.length&&(n=r.length),n||(n=0),i>0&&i<t&&(i=t),i===t)return 0;if(0===r.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-n<i-t&&(i=r.length-n+t);var o=i-t,s;if(this===r&&t<n&&n<i)for(s=o-1;s>=0;--s)r[s+n]=this[s+t];else if(o<1e3||!b.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)r[s+n]=this[s+t];else Uint8Array.prototype.set.call(r,this.subarray(t,t+o),n);return o},b.prototype.fill=function e(r,n,t,i){if("string"==typeof r){if("string"==typeof n?(i=n,n=0,t=this.length):"string"==typeof t&&(i=t,t=this.length),1===r.length){var o=r.charCodeAt(0);o<256&&(r=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!b.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof r&&(r&=255);if(n<0||this.length<n||this.length<t)throw new RangeError("Out of range index");if(t<=n)return this;var s;if(n>>>=0,t=void 0===t?this.length:t>>>0,r||(r=0),"number"==typeof r)for(s=n;s<t;++s)this[s]=r;else{var f=b.isBuffer(r)?r:q(new b(r,i).toString()),h=f.length;for(s=0;s<t-n;++s)this[s+n]=f[s%h]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(e){if((e=V(e).replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Z(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,r){var n;r=r||1/0;for(var t=e.length,i=null,o=[],s=0;s<t;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===t){(r-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var r=[],n=0;n<e.length;++n)r.push(255&e.charCodeAt(n));return r}function Q(e,r){for(var n,t,i,o=[],s=0;s<e.length&&!((r-=2)<0);++s)t=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(t);return o}function $(e){return t.toByteArray(G(e))}function ee(e,r,n,t){for(var i=0;i<t&&!(i+n>=r.length||i>=e.length);++i)r[i+n]=e[i];return i}function re(e){return e!=e}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/ieee754/index.js":function(e,r){r.read=function(e,r,n,t,i){var o,s,f=8*i-t-1,h=(1<<f)-1,b=h>>1,a=-7,k=n?i-1:0,u=n?-1:1,l=e[r+k];for(k+=u,o=l&(1<<-a)-1,l>>=-a,a+=f;a>0;o=256*o+e[r+k],k+=u,a-=8);for(s=o&(1<<-a)-1,o>>=-a,a+=t;a>0;s=256*s+e[r+k],k+=u,a-=8);if(0===o)o=1-b;else{if(o===h)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,t),o-=b}return(l?-1:1)*s*Math.pow(2,o-t)},r.write=function(e,r,n,t,i,o){var s,f,h,b=8*o-i-1,a=(1<<b)-1,k=a>>1,u=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=t?0:o-1,m=t?1:-1,c=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,s=a):(s=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-s))<1&&(s--,h*=2),(r+=s+k>=1?u/h:u*Math.pow(2,1-k))*h>=2&&(s++,h/=2),s+k>=a?(f=0,s=a):s+k>=1?(f=(r*h-1)*Math.pow(2,i),s+=k):(f=r*Math.pow(2,k-1)*Math.pow(2,i),s=0));i>=8;e[n+l]=255&f,l+=m,f/=256,i-=8);for(s=s<<i|f,b+=i;b>0;e[n+l]=255&s,l+=m,s/=256,b-=8);e[n+l-m]|=128*c}},"./node_modules/isarray/index.js":function(e,r){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"./node_modules/varint/decode.js":function(e,r){e.exports=i;var n=128,t=127;function i(e,r){var o=0,r,s=0,f=r=r||0,h,b=e.length;do{if(f>=b)throw i.bytes=0,new RangeError("Could not decode varint");h=e[f++],o+=s<28?(h&t)<<s:(h&t)*Math.pow(2,s),s+=7}while(h>=n);return i.bytes=f-r,o}},"./node_modules/varint/encode.js":function(e,r){e.exports=s;var n=128,t=127,i=-128,o=Math.pow(2,31);function s(e,r,t){r=r||[];for(var f=t=t||0;e>=o;)r[t++]=255&e|n,e/=128;for(;e&i;)r[t++]=255&e|n,e>>>=7;return r[t]=0|e,s.bytes=t-f+1,r}},"./node_modules/varint/index.js":function(e,r,n){e.exports={encode:n("./node_modules/varint/encode.js"),decode:n("./node_modules/varint/decode.js"),encodingLength:n("./node_modules/varint/length.js")}},"./node_modules/varint/length.js":function(e,r){var n=Math.pow(2,7),t=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),s=Math.pow(2,35),f=Math.pow(2,42),h=Math.pow(2,49),b=Math.pow(2,56),a=Math.pow(2,63);e.exports=function(e){return e<n?1:e<t?2:e<i?3:e<o?4:e<s?5:e<f?6:e<h?7:e<b?8:e<a?9:10}},"./node_modules/webpack/buildin/global.js":function(e,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./src/base-table.js":function(e,r,n){"use strict";(function(e){r.raw=e.from("55","hex"),r.cbor=e.from("51","hex"),r.protobuf=e.from("50","hex"),r.rlp=e.from("60","hex"),r.bencode=e.from("63","hex"),r.multicodec=e.from("30","hex"),r.multihash=e.from("31","hex"),r.multiaddr=e.from("32","hex"),r.multibase=e.from("33","hex"),r.identity=e.from("00","hex"),r.md4=e.from("d4","hex"),r.md5=e.from("d5","hex"),r.sha1=e.from("11","hex"),r["sha2-256"]=e.from("12","hex"),r["sha2-512"]=e.from("13","hex"),r["dbl-sha2-256"]=e.from("56","hex"),r["sha3-224"]=e.from("17","hex"),r["sha3-256"]=e.from("16","hex"),r["sha3-384"]=e.from("15","hex"),r["sha3-512"]=e.from("14","hex"),r["shake-128"]=e.from("18","hex"),r["shake-256"]=e.from("19","hex"),r["keccak-224"]=e.from("1a","hex"),r["keccak-256"]=e.from("1b","hex"),r["keccak-384"]=e.from("1c","hex"),r["keccak-512"]=e.from("1d","hex"),r["murmur3-128"]=e.from("22","hex"),r["murmur3-32"]=e.from("23","hex"),r.x11=e.from("1100","hex"),r["blake2b-8"]=e.from("b201","hex"),r["blake2b-16"]=e.from("b202","hex"),r["blake2b-24"]=e.from("b203","hex"),r["blake2b-32"]=e.from("b204","hex"),r["blake2b-40"]=e.from("b205","hex"),r["blake2b-48"]=e.from("b206","hex"),r["blake2b-56"]=e.from("b207","hex"),r["blake2b-64"]=e.from("b208","hex"),r["blake2b-72"]=e.from("b209","hex"),r["blake2b-80"]=e.from("b20a","hex"),r["blake2b-88"]=e.from("b20b","hex"),r["blake2b-96"]=e.from("b20c","hex"),r["blake2b-104"]=e.from("b20d","hex"),r["blake2b-112"]=e.from("b20e","hex"),r["blake2b-120"]=e.from("b20f","hex"),r["blake2b-128"]=e.from("b210","hex"),r["blake2b-136"]=e.from("b211","hex"),r["blake2b-144"]=e.from("b212","hex"),r["blake2b-152"]=e.from("b213","hex"),r["blake2b-160"]=e.from("b214","hex"),r["blake2b-168"]=e.from("b215","hex"),r["blake2b-176"]=e.from("b216","hex"),r["blake2b-184"]=e.from("b217","hex"),r["blake2b-192"]=e.from("b218","hex"),r["blake2b-200"]=e.from("b219","hex"),r["blake2b-208"]=e.from("b21a","hex"),r["blake2b-216"]=e.from("b21b","hex"),r["blake2b-224"]=e.from("b21c","hex"),r["blake2b-232"]=e.from("b21d","hex"),r["blake2b-240"]=e.from("b21e","hex"),r["blake2b-248"]=e.from("b21f","hex"),r["blake2b-256"]=e.from("b220","hex"),r["blake2b-264"]=e.from("b221","hex"),r["blake2b-272"]=e.from("b222","hex"),r["blake2b-280"]=e.from("b223","hex"),r["blake2b-288"]=e.from("b224","hex"),r["blake2b-296"]=e.from("b225","hex"),r["blake2b-304"]=e.from("b226","hex"),r["blake2b-312"]=e.from("b227","hex"),r["blake2b-320"]=e.from("b228","hex"),r["blake2b-328"]=e.from("b229","hex"),r["blake2b-336"]=e.from("b22a","hex"),r["blake2b-344"]=e.from("b22b","hex"),r["blake2b-352"]=e.from("b22c","hex"),r["blake2b-360"]=e.from("b22d","hex"),r["blake2b-368"]=e.from("b22e","hex"),r["blake2b-376"]=e.from("b22f","hex"),r["blake2b-384"]=e.from("b230","hex"),r["blake2b-392"]=e.from("b231","hex"),r["blake2b-400"]=e.from("b232","hex"),r["blake2b-408"]=e.from("b233","hex"),r["blake2b-416"]=e.from("b234","hex"),r["blake2b-424"]=e.from("b235","hex"),r["blake2b-432"]=e.from("b236","hex"),r["blake2b-440"]=e.from("b237","hex"),r["blake2b-448"]=e.from("b238","hex"),r["blake2b-456"]=e.from("b239","hex"),r["blake2b-464"]=e.from("b23a","hex"),r["blake2b-472"]=e.from("b23b","hex"),r["blake2b-480"]=e.from("b23c","hex"),r["blake2b-488"]=e.from("b23d","hex"),r["blake2b-496"]=e.from("b23e","hex"),r["blake2b-504"]=e.from("b23f","hex"),r["blake2b-512"]=e.from("b240","hex"),r["blake2s-8"]=e.from("b241","hex"),r["blake2s-16"]=e.from("b242","hex"),r["blake2s-24"]=e.from("b243","hex"),r["blake2s-32"]=e.from("b244","hex"),r["blake2s-40"]=e.from("b245","hex"),r["blake2s-48"]=e.from("b246","hex"),r["blake2s-56"]=e.from("b247","hex"),r["blake2s-64"]=e.from("b248","hex"),r["blake2s-72"]=e.from("b249","hex"),r["blake2s-80"]=e.from("b24a","hex"),r["blake2s-88"]=e.from("b24b","hex"),r["blake2s-96"]=e.from("b24c","hex"),r["blake2s-104"]=e.from("b24d","hex"),r["blake2s-112"]=e.from("b24e","hex"),r["blake2s-120"]=e.from("b24f","hex"),r["blake2s-128"]=e.from("b250","hex"),r["blake2s-136"]=e.from("b251","hex"),r["blake2s-144"]=e.from("b252","hex"),r["blake2s-152"]=e.from("b253","hex"),r["blake2s-160"]=e.from("b254","hex"),r["blake2s-168"]=e.from("b255","hex"),r["blake2s-176"]=e.from("b256","hex"),r["blake2s-184"]=e.from("b257","hex"),r["blake2s-192"]=e.from("b258","hex"),r["blake2s-200"]=e.from("b259","hex"),r["blake2s-208"]=e.from("b25a","hex"),r["blake2s-216"]=e.from("b25b","hex"),r["blake2s-224"]=e.from("b25c","hex"),r["blake2s-232"]=e.from("b25d","hex"),r["blake2s-240"]=e.from("b25e","hex"),r["blake2s-248"]=e.from("b25f","hex"),r["blake2s-256"]=e.from("b260","hex"),r["skein256-8"]=e.from("b301","hex"),r["skein256-16"]=e.from("b302","hex"),r["skein256-24"]=e.from("b303","hex"),r["skein256-32"]=e.from("b304","hex"),r["skein256-40"]=e.from("b305","hex"),r["skein256-48"]=e.from("b306","hex"),r["skein256-56"]=e.from("b307","hex"),r["skein256-64"]=e.from("b308","hex"),r["skein256-72"]=e.from("b309","hex"),r["skein256-80"]=e.from("b30a","hex"),r["skein256-88"]=e.from("b30b","hex"),r["skein256-96"]=e.from("b30c","hex"),r["skein256-104"]=e.from("b30d","hex"),r["skein256-112"]=e.from("b30e","hex"),r["skein256-120"]=e.from("b30f","hex"),r["skein256-128"]=e.from("b310","hex"),r["skein256-136"]=e.from("b311","hex"),r["skein256-144"]=e.from("b312","hex"),r["skein256-152"]=e.from("b313","hex"),r["skein256-160"]=e.from("b314","hex"),r["skein256-168"]=e.from("b315","hex"),r["skein256-176"]=e.from("b316","hex"),r["skein256-184"]=e.from("b317","hex"),r["skein256-192"]=e.from("b318","hex"),r["skein256-200"]=e.from("b319","hex"),r["skein256-208"]=e.from("b31a","hex"),r["skein256-216"]=e.from("b31b","hex"),r["skein256-224"]=e.from("b31c","hex"),r["skein256-232"]=e.from("b31d","hex"),r["skein256-240"]=e.from("b31e","hex"),r["skein256-248"]=e.from("b31f","hex"),r["skein256-256"]=e.from("b320","hex"),r["skein512-8"]=e.from("b321","hex"),r["skein512-16"]=e.from("b322","hex"),r["skein512-24"]=e.from("b323","hex"),r["skein512-32"]=e.from("b324","hex"),r["skein512-40"]=e.from("b325","hex"),r["skein512-48"]=e.from("b326","hex"),r["skein512-56"]=e.from("b327","hex"),r["skein512-64"]=e.from("b328","hex"),r["skein512-72"]=e.from("b329","hex"),r["skein512-80"]=e.from("b32a","hex"),r["skein512-88"]=e.from("b32b","hex"),r["skein512-96"]=e.from("b32c","hex"),r["skein512-104"]=e.from("b32d","hex"),r["skein512-112"]=e.from("b32e","hex"),r["skein512-120"]=e.from("b32f","hex"),r["skein512-128"]=e.from("b330","hex"),r["skein512-136"]=e.from("b331","hex"),r["skein512-144"]=e.from("b332","hex"),r["skein512-152"]=e.from("b333","hex"),r["skein512-160"]=e.from("b334","hex"),r["skein512-168"]=e.from("b335","hex"),r["skein512-176"]=e.from("b336","hex"),r["skein512-184"]=e.from("b337","hex"),r["skein512-192"]=e.from("b338","hex"),r["skein512-200"]=e.from("b339","hex"),r["skein512-208"]=e.from("b33a","hex"),r["skein512-216"]=e.from("b33b","hex"),r["skein512-224"]=e.from("b33c","hex"),r["skein512-232"]=e.from("b33d","hex"),r["skein512-240"]=e.from("b33e","hex"),r["skein512-248"]=e.from("b33f","hex"),r["skein512-256"]=e.from("b340","hex"),r["skein512-264"]=e.from("b341","hex"),r["skein512-272"]=e.from("b342","hex"),r["skein512-280"]=e.from("b343","hex"),r["skein512-288"]=e.from("b344","hex"),r["skein512-296"]=e.from("b345","hex"),r["skein512-304"]=e.from("b346","hex"),r["skein512-312"]=e.from("b347","hex"),r["skein512-320"]=e.from("b348","hex"),r["skein512-328"]=e.from("b349","hex"),r["skein512-336"]=e.from("b34a","hex"),r["skein512-344"]=e.from("b34b","hex"),r["skein512-352"]=e.from("b34c","hex"),r["skein512-360"]=e.from("b34d","hex"),r["skein512-368"]=e.from("b34e","hex"),r["skein512-376"]=e.from("b34f","hex"),r["skein512-384"]=e.from("b350","hex"),r["skein512-392"]=e.from("b351","hex"),r["skein512-400"]=e.from("b352","hex"),r["skein512-408"]=e.from("b353","hex"),r["skein512-416"]=e.from("b354","hex"),r["skein512-424"]=e.from("b355","hex"),r["skein512-432"]=e.from("b356","hex"),r["skein512-440"]=e.from("b357","hex"),r["skein512-448"]=e.from("b358","hex"),r["skein512-456"]=e.from("b359","hex"),r["skein512-464"]=e.from("b35a","hex"),r["skein512-472"]=e.from("b35b","hex"),r["skein512-480"]=e.from("b35c","hex"),r["skein512-488"]=e.from("b35d","hex"),r["skein512-496"]=e.from("b35e","hex"),r["skein512-504"]=e.from("b35f","hex"),r["skein512-512"]=e.from("b360","hex"),r["skein1024-8"]=e.from("b361","hex"),r["skein1024-16"]=e.from("b362","hex"),r["skein1024-24"]=e.from("b363","hex"),r["skein1024-32"]=e.from("b364","hex"),r["skein1024-40"]=e.from("b365","hex"),r["skein1024-48"]=e.from("b366","hex"),r["skein1024-56"]=e.from("b367","hex"),r["skein1024-64"]=e.from("b368","hex"),r["skein1024-72"]=e.from("b369","hex"),r["skein1024-80"]=e.from("b36a","hex"),r["skein1024-88"]=e.from("b36b","hex"),r["skein1024-96"]=e.from("b36c","hex"),r["skein1024-104"]=e.from("b36d","hex"),r["skein1024-112"]=e.from("b36e","hex"),r["skein1024-120"]=e.from("b36f","hex"),r["skein1024-128"]=e.from("b370","hex"),r["skein1024-136"]=e.from("b371","hex"),r["skein1024-144"]=e.from("b372","hex"),r["skein1024-152"]=e.from("b373","hex"),r["skein1024-160"]=e.from("b374","hex"),r["skein1024-168"]=e.from("b375","hex"),r["skein1024-176"]=e.from("b376","hex"),r["skein1024-184"]=e.from("b377","hex"),r["skein1024-192"]=e.from("b378","hex"),r["skein1024-200"]=e.from("b379","hex"),r["skein1024-208"]=e.from("b37a","hex"),r["skein1024-216"]=e.from("b37b","hex"),r["skein1024-224"]=e.from("b37c","hex"),r["skein1024-232"]=e.from("b37d","hex"),r["skein1024-240"]=e.from("b37e","hex"),r["skein1024-248"]=e.from("b37f","hex"),r["skein1024-256"]=e.from("b380","hex"),r["skein1024-264"]=e.from("b381","hex"),r["skein1024-272"]=e.from("b382","hex"),r["skein1024-280"]=e.from("b383","hex"),r["skein1024-288"]=e.from("b384","hex"),r["skein1024-296"]=e.from("b385","hex"),r["skein1024-304"]=e.from("b386","hex"),r["skein1024-312"]=e.from("b387","hex"),r["skein1024-320"]=e.from("b388","hex"),r["skein1024-328"]=e.from("b389","hex"),r["skein1024-336"]=e.from("b38a","hex"),r["skein1024-344"]=e.from("b38b","hex"),r["skein1024-352"]=e.from("b38c","hex"),r["skein1024-360"]=e.from("b38d","hex"),r["skein1024-368"]=e.from("b38e","hex"),r["skein1024-376"]=e.from("b38f","hex"),r["skein1024-384"]=e.from("b390","hex"),r["skein1024-392"]=e.from("b391","hex"),r["skein1024-400"]=e.from("b392","hex"),r["skein1024-408"]=e.from("b393","hex"),r["skein1024-416"]=e.from("b394","hex"),r["skein1024-424"]=e.from("b395","hex"),r["skein1024-432"]=e.from("b396","hex"),r["skein1024-440"]=e.from("b397","hex"),r["skein1024-448"]=e.from("b398","hex"),r["skein1024-456"]=e.from("b399","hex"),r["skein1024-464"]=e.from("b39a","hex"),r["skein1024-472"]=e.from("b39b","hex"),r["skein1024-480"]=e.from("b39c","hex"),r["skein1024-488"]=e.from("b39d","hex"),r["skein1024-496"]=e.from("b39e","hex"),r["skein1024-504"]=e.from("b39f","hex"),r["skein1024-512"]=e.from("b3a0","hex"),r["skein1024-520"]=e.from("b3a1","hex"),r["skein1024-528"]=e.from("b3a2","hex"),r["skein1024-536"]=e.from("b3a3","hex"),r["skein1024-544"]=e.from("b3a4","hex"),r["skein1024-552"]=e.from("b3a5","hex"),r["skein1024-560"]=e.from("b3a6","hex"),r["skein1024-568"]=e.from("b3a7","hex"),r["skein1024-576"]=e.from("b3a8","hex"),r["skein1024-584"]=e.from("b3a9","hex"),r["skein1024-592"]=e.from("b3aa","hex"),r["skein1024-600"]=e.from("b3ab","hex"),r["skein1024-608"]=e.from("b3ac","hex"),r["skein1024-616"]=e.from("b3ad","hex"),r["skein1024-624"]=e.from("b3ae","hex"),r["skein1024-632"]=e.from("b3af","hex"),r["skein1024-640"]=e.from("b3b0","hex"),r["skein1024-648"]=e.from("b3b1","hex"),r["skein1024-656"]=e.from("b3b2","hex"),r["skein1024-664"]=e.from("b3b3","hex"),r["skein1024-672"]=e.from("b3b4","hex"),r["skein1024-680"]=e.from("b3b5","hex"),r["skein1024-688"]=e.from("b3b6","hex"),r["skein1024-696"]=e.from("b3b7","hex"),r["skein1024-704"]=e.from("b3b8","hex"),r["skein1024-712"]=e.from("b3b9","hex"),r["skein1024-720"]=e.from("b3ba","hex"),r["skein1024-728"]=e.from("b3bb","hex"),r["skein1024-736"]=e.from("b3bc","hex"),r["skein1024-744"]=e.from("b3bd","hex"),r["skein1024-752"]=e.from("b3be","hex"),r["skein1024-760"]=e.from("b3bf","hex"),r["skein1024-768"]=e.from("b3c0","hex"),r["skein1024-776"]=e.from("b3c1","hex"),r["skein1024-784"]=e.from("b3c2","hex"),r["skein1024-792"]=e.from("b3c3","hex"),r["skein1024-800"]=e.from("b3c4","hex"),r["skein1024-808"]=e.from("b3c5","hex"),r["skein1024-816"]=e.from("b3c6","hex"),r["skein1024-824"]=e.from("b3c7","hex"),r["skein1024-832"]=e.from("b3c8","hex"),r["skein1024-840"]=e.from("b3c9","hex"),r["skein1024-848"]=e.from("b3ca","hex"),r["skein1024-856"]=e.from("b3cb","hex"),r["skein1024-864"]=e.from("b3cc","hex"),r["skein1024-872"]=e.from("b3cd","hex"),r["skein1024-880"]=e.from("b3ce","hex"),r["skein1024-888"]=e.from("b3cf","hex"),r["skein1024-896"]=e.from("b3d0","hex"),r["skein1024-904"]=e.from("b3d1","hex"),r["skein1024-912"]=e.from("b3d2","hex"),r["skein1024-920"]=e.from("b3d3","hex"),r["skein1024-928"]=e.from("b3d4","hex"),r["skein1024-936"]=e.from("b3d5","hex"),r["skein1024-944"]=e.from("b3d6","hex"),r["skein1024-952"]=e.from("b3d7","hex"),r["skein1024-960"]=e.from("b3d8","hex"),r["skein1024-968"]=e.from("b3d9","hex"),r["skein1024-976"]=e.from("b3da","hex"),r["skein1024-984"]=e.from("b3db","hex"),r["skein1024-992"]=e.from("b3dc","hex"),r["skein1024-1000"]=e.from("b3dd","hex"),r["skein1024-1008"]=e.from("b3de","hex"),r["skein1024-1016"]=e.from("b3df","hex"),r["skein1024-1024"]=e.from("b3e0","hex"),r.ip4=e.from("04","hex"),r.ip6=e.from("29","hex"),r.ip6zone=e.from("2a","hex"),r.tcp=e.from("06","hex"),r.udp=e.from("0111","hex"),r.dccp=e.from("21","hex"),r.sctp=e.from("84","hex"),r.udt=e.from("012d","hex"),r.utp=e.from("012e","hex"),r.p2p=e.from("01a5","hex"),r.ipfs=e.from("01a5","hex"),r.http=e.from("01e0","hex"),r.https=e.from("01bb","hex"),r.quic=e.from("01cc","hex"),r.ws=e.from("01dd","hex"),r.wss=e.from("01de","hex"),r.onion=e.from("01bc","hex"),r.onion3=e.from("01bd","hex"),r.garlic64=e.from("01be","hex"),r["p2p-circuit"]=e.from("0122","hex"),r.dns=e.from("35","hex"),r.dns4=e.from("36","hex"),r.dns6=e.from("37","hex"),r.dnsaddr=e.from("38","hex"),r["p2p-websocket-star"]=e.from("01df","hex"),r["p2p-stardust"]=e.from("0115","hex"),r["p2p-webrtc-star"]=e.from("0113","hex"),r["p2p-webrtc-direct"]=e.from("0114","hex"),r.unix=e.from("0190","hex"),r["dag-pb"]=e.from("70","hex"),r["dag-cbor"]=e.from("71","hex"),r["dag-json"]=e.from("0129","hex"),r["git-raw"]=e.from("78","hex"),r["eth-block"]=e.from("90","hex"),r["eth-block-list"]=e.from("91","hex"),r["eth-tx-trie"]=e.from("92","hex"),r["eth-tx"]=e.from("93","hex"),r["eth-tx-receipt-trie"]=e.from("94","hex"),r["eth-tx-receipt"]=e.from("95","hex"),r["eth-state-trie"]=e.from("96","hex"),r["eth-account-snapshot"]=e.from("97","hex"),r["eth-storage-trie"]=e.from("98","hex"),r["bitcoin-block"]=e.from("b0","hex"),r["bitcoin-tx"]=e.from("b1","hex"),r["zcash-block"]=e.from("c0","hex"),r["zcash-tx"]=e.from("c1","hex"),r["stellar-block"]=e.from("d0","hex"),r["stellar-tx"]=e.from("d1","hex"),r["decred-block"]=e.from("e0","hex"),r["decred-tx"]=e.from("e1","hex"),r["dash-block"]=e.from("f0","hex"),r["dash-tx"]=e.from("f1","hex"),r["leofcoin-block"]=e.from("81","hex"),r["leofcoin-tx"]=e.from("82","hex"),r["leofcoin-pr"]=e.from("83","hex"),r["torrent-info"]=e.from("7b","hex"),r["torrent-file"]=e.from("7c","hex"),r["ed25519-pub"]=e.from("ed","hex"),r["ipld-ns"]=e.from("e2","hex"),r["ipfs-ns"]=e.from("e3","hex"),r["swarm-ns"]=e.from("e4","hex")}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./src/constants.js":function(e,r,n){"use strict";e.exports=Object.freeze({RAW:85,CBOR:81,PROTOBUF:80,RLP:96,BENCODE:99,MULTICODEC:48,MULTIHASH:49,MULTIADDR:50,MULTIBASE:51,IDENTITY:0,MD4:212,MD5:213,SHA1:17,SHA2_256:18,SHA2_512:19,DBL_SHA2_256:86,SHA3_224:23,SHA3_256:22,SHA3_384:21,SHA3_512:20,SHAKE_128:24,SHAKE_256:25,KECCAK_224:26,KECCAK_256:27,KECCAK_384:28,KECCAK_512:29,MURMUR3_128:34,MURMUR3_32:35,X11:4352,BLAKE2B_8:45569,BLAKE2B_16:45570,BLAKE2B_24:45571,BLAKE2B_32:45572,BLAKE2B_40:45573,BLAKE2B_48:45574,BLAKE2B_56:45575,BLAKE2B_64:45576,BLAKE2B_72:45577,BLAKE2B_80:45578,BLAKE2B_88:45579,BLAKE2B_96:45580,BLAKE2B_104:45581,BLAKE2B_112:45582,BLAKE2B_120:45583,BLAKE2B_128:45584,BLAKE2B_136:45585,BLAKE2B_144:45586,BLAKE2B_152:45587,BLAKE2B_160:45588,BLAKE2B_168:45589,BLAKE2B_176:45590,BLAKE2B_184:45591,BLAKE2B_192:45592,BLAKE2B_200:45593,BLAKE2B_208:45594,BLAKE2B_216:45595,BLAKE2B_224:45596,BLAKE2B_232:45597,BLAKE2B_240:45598,BLAKE2B_248:45599,BLAKE2B_256:45600,BLAKE2B_264:45601,BLAKE2B_272:45602,BLAKE2B_280:45603,BLAKE2B_288:45604,BLAKE2B_296:45605,BLAKE2B_304:45606,BLAKE2B_312:45607,BLAKE2B_320:45608,BLAKE2B_328:45609,BLAKE2B_336:45610,BLAKE2B_344:45611,BLAKE2B_352:45612,BLAKE2B_360:45613,BLAKE2B_368:45614,BLAKE2B_376:45615,BLAKE2B_384:45616,BLAKE2B_392:45617,BLAKE2B_400:45618,BLAKE2B_408:45619,BLAKE2B_416:45620,BLAKE2B_424:45621,BLAKE2B_432:45622,BLAKE2B_440:45623,BLAKE2B_448:45624,BLAKE2B_456:45625,BLAKE2B_464:45626,BLAKE2B_472:45627,BLAKE2B_480:45628,BLAKE2B_488:45629,BLAKE2B_496:45630,BLAKE2B_504:45631,BLAKE2B_512:45632,BLAKE2S_8:45633,BLAKE2S_16:45634,BLAKE2S_24:45635,BLAKE2S_32:45636,BLAKE2S_40:45637,BLAKE2S_48:45638,BLAKE2S_56:45639,BLAKE2S_64:45640,BLAKE2S_72:45641,BLAKE2S_80:45642,BLAKE2S_88:45643,BLAKE2S_96:45644,BLAKE2S_104:45645,BLAKE2S_112:45646,BLAKE2S_120:45647,BLAKE2S_128:45648,BLAKE2S_136:45649,BLAKE2S_144:45650,BLAKE2S_152:45651,BLAKE2S_160:45652,BLAKE2S_168:45653,BLAKE2S_176:45654,BLAKE2S_184:45655,BLAKE2S_192:45656,BLAKE2S_200:45657,BLAKE2S_208:45658,BLAKE2S_216:45659,BLAKE2S_224:45660,BLAKE2S_232:45661,BLAKE2S_240:45662,BLAKE2S_248:45663,BLAKE2S_256:45664,SKEIN256_8:45825,SKEIN256_16:45826,SKEIN256_24:45827,SKEIN256_32:45828,SKEIN256_40:45829,SKEIN256_48:45830,SKEIN256_56:45831,SKEIN256_64:45832,SKEIN256_72:45833,SKEIN256_80:45834,SKEIN256_88:45835,SKEIN256_96:45836,SKEIN256_104:45837,SKEIN256_112:45838,SKEIN256_120:45839,SKEIN256_128:45840,SKEIN256_136:45841,SKEIN256_144:45842,SKEIN256_152:45843,SKEIN256_160:45844,SKEIN256_168:45845,SKEIN256_176:45846,SKEIN256_184:45847,SKEIN256_192:45848,SKEIN256_200:45849,SKEIN256_208:45850,SKEIN256_216:45851,SKEIN256_224:45852,SKEIN256_232:45853,SKEIN256_240:45854,SKEIN256_248:45855,SKEIN256_256:45856,SKEIN512_8:45857,SKEIN512_16:45858,SKEIN512_24:45859,SKEIN512_32:45860,SKEIN512_40:45861,SKEIN512_48:45862,SKEIN512_56:45863,SKEIN512_64:45864,SKEIN512_72:45865,SKEIN512_80:45866,SKEIN512_88:45867,SKEIN512_96:45868,SKEIN512_104:45869,SKEIN512_112:45870,SKEIN512_120:45871,SKEIN512_128:45872,SKEIN512_136:45873,SKEIN512_144:45874,SKEIN512_152:45875,SKEIN512_160:45876,SKEIN512_168:45877,SKEIN512_176:45878,SKEIN512_184:45879,SKEIN512_192:45880,SKEIN512_200:45881,SKEIN512_208:45882,SKEIN512_216:45883,SKEIN512_224:45884,SKEIN512_232:45885,SKEIN512_240:45886,SKEIN512_248:45887,SKEIN512_256:45888,SKEIN512_264:45889,SKEIN512_272:45890,SKEIN512_280:45891,SKEIN512_288:45892,SKEIN512_296:45893,SKEIN512_304:45894,SKEIN512_312:45895,SKEIN512_320:45896,SKEIN512_328:45897,SKEIN512_336:45898,SKEIN512_344:45899,SKEIN512_352:45900,SKEIN512_360:45901,SKEIN512_368:45902,SKEIN512_376:45903,SKEIN512_384:45904,SKEIN512_392:45905,SKEIN512_400:45906,SKEIN512_408:45907,SKEIN512_416:45908,SKEIN512_424:45909,SKEIN512_432:45910,SKEIN512_440:45911,SKEIN512_448:45912,SKEIN512_456:45913,SKEIN512_464:45914,SKEIN512_472:45915,SKEIN512_480:45916,SKEIN512_488:45917,SKEIN512_496:45918,SKEIN512_504:45919,SKEIN512_512:45920,SKEIN1024_8:45921,SKEIN1024_16:45922,SKEIN1024_24:45923,SKEIN1024_32:45924,SKEIN1024_40:45925,SKEIN1024_48:45926,SKEIN1024_56:45927,SKEIN1024_64:45928,SKEIN1024_72:45929,SKEIN1024_80:45930,SKEIN1024_88:45931,SKEIN1024_96:45932,SKEIN1024_104:45933,SKEIN1024_112:45934,SKEIN1024_120:45935,SKEIN1024_128:45936,SKEIN1024_136:45937,SKEIN1024_144:45938,SKEIN1024_152:45939,SKEIN1024_160:45940,SKEIN1024_168:45941,SKEIN1024_176:45942,SKEIN1024_184:45943,SKEIN1024_192:45944,SKEIN1024_200:45945,SKEIN1024_208:45946,SKEIN1024_216:45947,SKEIN1024_224:45948,SKEIN1024_232:45949,SKEIN1024_240:45950,SKEIN1024_248:45951,SKEIN1024_256:45952,SKEIN1024_264:45953,SKEIN1024_272:45954,SKEIN1024_280:45955,SKEIN1024_288:45956,SKEIN1024_296:45957,SKEIN1024_304:45958,SKEIN1024_312:45959,SKEIN1024_320:45960,SKEIN1024_328:45961,SKEIN1024_336:45962,SKEIN1024_344:45963,SKEIN1024_352:45964,SKEIN1024_360:45965,SKEIN1024_368:45966,SKEIN1024_376:45967,SKEIN1024_384:45968,SKEIN1024_392:45969,SKEIN1024_400:45970,SKEIN1024_408:45971,SKEIN1024_416:45972,SKEIN1024_424:45973,SKEIN1024_432:45974,SKEIN1024_440:45975,SKEIN1024_448:45976,SKEIN1024_456:45977,SKEIN1024_464:45978,SKEIN1024_472:45979,SKEIN1024_480:45980,SKEIN1024_488:45981,SKEIN1024_496:45982,SKEIN1024_504:45983,SKEIN1024_512:45984,SKEIN1024_520:45985,SKEIN1024_528:45986,SKEIN1024_536:45987,SKEIN1024_544:45988,SKEIN1024_552:45989,SKEIN1024_560:45990,SKEIN1024_568:45991,SKEIN1024_576:45992,SKEIN1024_584:45993,SKEIN1024_592:45994,SKEIN1024_600:45995,SKEIN1024_608:45996,SKEIN1024_616:45997,SKEIN1024_624:45998,SKEIN1024_632:45999,SKEIN1024_640:46e3,SKEIN1024_648:46001,SKEIN1024_656:46002,SKEIN1024_664:46003,SKEIN1024_672:46004,SKEIN1024_680:46005,SKEIN1024_688:46006,SKEIN1024_696:46007,SKEIN1024_704:46008,SKEIN1024_712:46009,SKEIN1024_720:46010,SKEIN1024_728:46011,SKEIN1024_736:46012,SKEIN1024_744:46013,SKEIN1024_752:46014,SKEIN1024_760:46015,SKEIN1024_768:46016,SKEIN1024_776:46017,SKEIN1024_784:46018,SKEIN1024_792:46019,SKEIN1024_800:46020,SKEIN1024_808:46021,SKEIN1024_816:46022,SKEIN1024_824:46023,SKEIN1024_832:46024,SKEIN1024_840:46025,SKEIN1024_848:46026,SKEIN1024_856:46027,SKEIN1024_864:46028,SKEIN1024_872:46029,SKEIN1024_880:46030,SKEIN1024_888:46031,SKEIN1024_896:46032,SKEIN1024_904:46033,SKEIN1024_912:46034,SKEIN1024_920:46035,SKEIN1024_928:46036,SKEIN1024_936:46037,SKEIN1024_944:46038,SKEIN1024_952:46039,SKEIN1024_960:46040,SKEIN1024_968:46041,SKEIN1024_976:46042,SKEIN1024_984:46043,SKEIN1024_992:46044,SKEIN1024_1000:46045,SKEIN1024_1008:46046,SKEIN1024_1016:46047,SKEIN1024_1024:46048,IP4:4,IP6:41,IP6ZONE:42,TCP:6,UDP:273,DCCP:33,SCTP:132,UDT:301,UTP:302,P2P:421,IPFS:421,HTTP:480,HTTPS:443,QUIC:460,WS:477,WSS:478,ONION:444,ONION3:445,GARLIC64:446,P2P_CIRCUIT:290,DNS:53,DNS4:54,DNS6:55,DNSADDR:56,P2P_WEBSOCKET_STAR:479,P2P_STARDUST:277,P2P_WEBRTC_STAR:275,P2P_WEBRTC_DIRECT:276,UNIX:400,DAG_PB:112,DAG_CBOR:113,DAG_JSON:297,GIT_RAW:120,ETH_BLOCK:144,ETH_BLOCK_LIST:145,ETH_TX_TRIE:146,ETH_TX:147,ETH_TX_RECEIPT_TRIE:148,ETH_TX_RECEIPT:149,ETH_STATE_TRIE:150,ETH_ACCOUNT_SNAPSHOT:151,ETH_STORAGE_TRIE:152,BITCOIN_BLOCK:176,BITCOIN_TX:177,ZCASH_BLOCK:192,ZCASH_TX:193,STELLAR_BLOCK:208,STELLAR_TX:209,DECRED_BLOCK:224,DECRED_TX:225,DASH_BLOCK:240,DASH_TX:241,LEOFCOIN_BLOCK:129,LEOFCOIN_TX:130,LEOFCOIN_PR:131,TORRENT_INFO:123,TORRENT_FILE:124,ED25519_PUB:237,IPLD_NS:226,IPFS_NS:227,SWARM_NS:228})},"./src/index.js":function(e,r,n){"use strict";(function(t){const i=n("./node_modules/varint/index.js"),o=n("./src/varint-table.js"),s=n("./src/name-table.js"),f=n("./src/util.js");(r=e.exports).addPrefix=((e,r)=>{let n;if(t.isBuffer(e))n=f.varintBufferEncode(e);else{if(!o[e])throw new Error("multicodec not recognized");n=o[e]}return t.concat([n,r])}),r.rmPrefix=(e=>(i.decode(e),e.slice(i.decode.bytes))),r.getCodec=(e=>{const r=f.varintBufferDecode(e),n=s[r.toString("hex")];if(void 0===n)throw new Error("Code `0x"+r.toString("hex")+"` not found");return n}),r.getCode=(e=>i.decode(e)),r.getCodeVarint=(e=>{const r=o[e];if(void 0===r)throw new Error("Codec `"+e+"` not found");return r}),r.getVarint=(e=>i.encode(e));const h=n("./src/constants.js");Object.assign(r,h),r.print=n("./src/print.js")}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./src/name-table.js":function(e,r,n){"use strict";const t=n("./src/base-table.js"),i={};e.exports=i;for(let e in t){let r;i[t[e].toString("hex")]=e}},"./src/print.js":function(e,r,n){"use strict";e.exports=Object.freeze({85:"raw",81:"cbor",80:"protobuf",96:"rlp",99:"bencode",48:"multicodec",49:"multihash",50:"multiaddr",51:"multibase",0:"identity",212:"md4",213:"md5",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",4352:"x11",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"skein256-8",45826:"skein256-16",45827:"skein256-24",45828:"skein256-32",45829:"skein256-40",45830:"skein256-48",45831:"skein256-56",45832:"skein256-64",45833:"skein256-72",45834:"skein256-80",45835:"skein256-88",45836:"skein256-96",45837:"skein256-104",45838:"skein256-112",45839:"skein256-120",45840:"skein256-128",45841:"skein256-136",45842:"skein256-144",45843:"skein256-152",45844:"skein256-160",45845:"skein256-168",45846:"skein256-176",45847:"skein256-184",45848:"skein256-192",45849:"skein256-200",45850:"skein256-208",45851:"skein256-216",45852:"skein256-224",45853:"skein256-232",45854:"skein256-240",45855:"skein256-248",45856:"skein256-256",45857:"skein512-8",45858:"skein512-16",45859:"skein512-24",45860:"skein512-32",45861:"skein512-40",45862:"skein512-48",45863:"skein512-56",45864:"skein512-64",45865:"skein512-72",45866:"skein512-80",45867:"skein512-88",45868:"skein512-96",45869:"skein512-104",45870:"skein512-112",45871:"skein512-120",45872:"skein512-128",45873:"skein512-136",45874:"skein512-144",45875:"skein512-152",45876:"skein512-160",45877:"skein512-168",45878:"skein512-176",45879:"skein512-184",45880:"skein512-192",45881:"skein512-200",45882:"skein512-208",45883:"skein512-216",45884:"skein512-224",45885:"skein512-232",45886:"skein512-240",45887:"skein512-248",45888:"skein512-256",45889:"skein512-264",45890:"skein512-272",45891:"skein512-280",45892:"skein512-288",45893:"skein512-296",45894:"skein512-304",45895:"skein512-312",45896:"skein512-320",45897:"skein512-328",45898:"skein512-336",45899:"skein512-344",45900:"skein512-352",45901:"skein512-360",45902:"skein512-368",45903:"skein512-376",45904:"skein512-384",45905:"skein512-392",45906:"skein512-400",45907:"skein512-408",45908:"skein512-416",45909:"skein512-424",45910:"skein512-432",45911:"skein512-440",45912:"skein512-448",45913:"skein512-456",45914:"skein512-464",45915:"skein512-472",45916:"skein512-480",45917:"skein512-488",45918:"skein512-496",45919:"skein512-504",45920:"skein512-512",45921:"skein1024-8",45922:"skein1024-16",45923:"skein1024-24",45924:"skein1024-32",45925:"skein1024-40",45926:"skein1024-48",45927:"skein1024-56",45928:"skein1024-64",45929:"skein1024-72",45930:"skein1024-80",45931:"skein1024-88",45932:"skein1024-96",45933:"skein1024-104",45934:"skein1024-112",45935:"skein1024-120",45936:"skein1024-128",45937:"skein1024-136",45938:"skein1024-144",45939:"skein1024-152",45940:"skein1024-160",45941:"skein1024-168",45942:"skein1024-176",45943:"skein1024-184",45944:"skein1024-192",45945:"skein1024-200",45946:"skein1024-208",45947:"skein1024-216",45948:"skein1024-224",45949:"skein1024-232",45950:"skein1024-240",45951:"skein1024-248",45952:"skein1024-256",45953:"skein1024-264",45954:"skein1024-272",45955:"skein1024-280",45956:"skein1024-288",45957:"skein1024-296",45958:"skein1024-304",45959:"skein1024-312",45960:"skein1024-320",45961:"skein1024-328",45962:"skein1024-336",45963:"skein1024-344",45964:"skein1024-352",45965:"skein1024-360",45966:"skein1024-368",45967:"skein1024-376",45968:"skein1024-384",45969:"skein1024-392",45970:"skein1024-400",45971:"skein1024-408",45972:"skein1024-416",45973:"skein1024-424",45974:"skein1024-432",45975:"skein1024-440",45976:"skein1024-448",45977:"skein1024-456",45978:"skein1024-464",45979:"skein1024-472",45980:"skein1024-480",45981:"skein1024-488",45982:"skein1024-496",45983:"skein1024-504",45984:"skein1024-512",45985:"skein1024-520",45986:"skein1024-528",45987:"skein1024-536",45988:"skein1024-544",45989:"skein1024-552",45990:"skein1024-560",45991:"skein1024-568",45992:"skein1024-576",45993:"skein1024-584",45994:"skein1024-592",45995:"skein1024-600",45996:"skein1024-608",45997:"skein1024-616",45998:"skein1024-624",45999:"skein1024-632",46000:"skein1024-640",46001:"skein1024-648",46002:"skein1024-656",46003:"skein1024-664",46004:"skein1024-672",46005:"skein1024-680",46006:"skein1024-688",46007:"skein1024-696",46008:"skein1024-704",46009:"skein1024-712",46010:"skein1024-720",46011:"skein1024-728",46012:"skein1024-736",46013:"skein1024-744",46014:"skein1024-752",46015:"skein1024-760",46016:"skein1024-768",46017:"skein1024-776",46018:"skein1024-784",46019:"skein1024-792",46020:"skein1024-800",46021:"skein1024-808",46022:"skein1024-816",46023:"skein1024-824",46024:"skein1024-832",46025:"skein1024-840",46026:"skein1024-848",46027:"skein1024-856",46028:"skein1024-864",46029:"skein1024-872",46030:"skein1024-880",46031:"skein1024-888",46032:"skein1024-896",46033:"skein1024-904",46034:"skein1024-912",46035:"skein1024-920",46036:"skein1024-928",46037:"skein1024-936",46038:"skein1024-944",46039:"skein1024-952",46040:"skein1024-960",46041:"skein1024-968",46042:"skein1024-976",46043:"skein1024-984",46044:"skein1024-992",46045:"skein1024-1000",46046:"skein1024-1008",46047:"skein1024-1016",46048:"skein1024-1024",4:"ip4",41:"ip6",42:"ip6zone",6:"tcp",273:"udp",33:"dccp",132:"sctp",301:"udt",302:"utp",421:"p2p",480:"http",443:"https",460:"quic",477:"ws",478:"wss",444:"onion",445:"onion3",446:"garlic64",290:"p2p-circuit",53:"dns",54:"dns4",55:"dns6",56:"dnsaddr",479:"p2p-websocket-star",277:"p2p-stardust",275:"p2p-webrtc-star",276:"p2p-webrtc-direct",400:"unix",112:"dag-pb",113:"dag-cbor",297:"dag-json",120:"git-raw",144:"eth-block",145:"eth-block-list",146:"eth-tx-trie",147:"eth-tx",148:"eth-tx-receipt-trie",149:"eth-tx-receipt",150:"eth-state-trie",151:"eth-account-snapshot",152:"eth-storage-trie",176:"bitcoin-block",177:"bitcoin-tx",192:"zcash-block",193:"zcash-tx",208:"stellar-block",209:"stellar-tx",224:"decred-block",225:"decred-tx",240:"dash-block",241:"dash-tx",129:"leofcoin-block",130:"leofcoin-tx",131:"leofcoin-pr",123:"torrent-info",124:"torrent-file",237:"ed25519-pub",226:"ipld-ns",227:"ipfs-ns",228:"swarm-ns"})},"./src/util.js":function(e,r,n){"use strict";(function(r){const t=n("./node_modules/varint/index.js");function i(e){return parseInt(e.toString("hex"),16)}function o(e){let n=e.toString(16);return n.length%2==1&&(n="0"+n),r.from(n,"hex")}function s(e){return r.from(t.encode(i(e)))}function f(e){return o(t.decode(e))}e.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:s,varintBufferDecode:f}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./src/varint-table.js":function(e,r,n){"use strict";const t=n("./src/base-table.js"),i=n("./src/util.js").varintBufferEncode,o={};e.exports=o;for(let e in t){let r=t[e];o[e]=i(r)}},0:function(e,r,n){e.exports=n("./src/index.js")}});
//# sourceMappingURL=index.min.js.map
{
"name": "multicodec",
"version": "0.4.0",
"version": "0.5.0",
"description": "JavaScript implementation of the multicodec specification",

@@ -5,0 +5,0 @@ "leadMaintainer": "Henrique Dias <hacdias@gmail.com>",

@@ -389,2 +389,3 @@ // THIS FILE IS GENERATED, DO NO EDIT MANUALLY

exports['p2p-websocket-star'] = Buffer.from('01df', 'hex')
exports['p2p-stardust'] = Buffer.from('0115', 'hex')
exports['p2p-webrtc-star'] = Buffer.from('0113', 'hex')

@@ -394,8 +395,2 @@ exports['p2p-webrtc-direct'] = Buffer.from('0114', 'hex')

// archiving formats
// image formats
// video formats
// IPLD formats

@@ -425,4 +420,12 @@ exports['dag-pb'] = Buffer.from('70', 'hex')

exports['dash-tx'] = Buffer.from('f1', 'hex')
exports['leofcoin-block'] = Buffer.from('81', 'hex')
exports['leofcoin-tx'] = Buffer.from('82', 'hex')
exports['leofcoin-pr'] = Buffer.from('83', 'hex')
exports['torrent-info'] = Buffer.from('7b', 'hex')
exports['torrent-file'] = Buffer.from('7c', 'hex')
exports['ed25519-pub'] = Buffer.from('ed', 'hex')
// Content Namespaces
exports['ipld-ns'] = Buffer.from('e2', 'hex')
exports['ipfs-ns'] = Buffer.from('e3', 'hex')
exports['swarm-ns'] = Buffer.from('e4', 'hex')

@@ -69,2 +69,11 @@ /**

/**
* Get the code of the prefixed data.
* @param {Buffer} prefixedData
* @returns {number}
*/
exports.getCode = (prefixedData) => {
return varint.decode(prefixedData)
}
/**
* Get the code as varint of a codec name.

@@ -81,1 +90,17 @@ * @param {string} codecName

}
/**
* Get the varint of a code.
* @param {Number} code
* @returns {Array.<number>}
*/
exports.getVarint = (code) => {
return varint.encode(code)
}
// Make the constants top-level constants
const constants = require('./constants')
Object.assign(exports, constants)
// Human friendly names for printing, e.g. in error messages
exports.print = require('./print')

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc