!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.Mafmt=r():t.Mafmt=r()}(window,(function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=5)}([function(t,r,e){"use strict";(function(t){var n=e(8),o=e(9),i=e(10);function s(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,r){if(a.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return $(t).length;default:if(n)return F(t).length;r=(""+r).toLowerCase(),n=!0}}function g(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return C(this,r,e);case"ascii":return R(this,r,e);case"latin1":case"binary":return _(this,r,e);case"base64":return B(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function y(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=a.from(r,n)),a.isBuffer(r))return 0===r.length?-1:m(t,r,e,n,o);if("number"==typeof r)return r&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):m(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,r,e,n,o){var i,s=1,u=t.length,a=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;s=2,u/=2,a/=2,e/=2}function f(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}if(o){var c=-1;for(i=e;iu&&(e=u-a),i=e;i>=0;i--){for(var h=!0,p=0;po&&(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 s=0;s>8,o=e%256,i.push(o),i.push(n);return i}(r,t.length-e),t,e,n)}function B(t,r,e){return 0===r&&e===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(r,e))}function C(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o239?4:f>223?3:f>191?2:1;if(o+h<=e)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(i=t[o+1]))&&(a=(31&f)<<6|63&i)>127&&(c=a);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(a=(15&f)<<12|(63&i)<<6|63&s)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:i=t[o+1],s=t[o+2],u=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&u)&&(a=(15&f)<<18|(63&i)<<12|(63&s)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=h}return function(t){var r=t.length;if(r<=P)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},a.prototype.compare=function(t,r,e,n,o){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return-1;if(r>=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(e>>>=0)-(r>>>=0),u=Math.min(i,s),f=this.slice(n,o),c=t.slice(r,e),h=0;ho)&&(e=o),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,t,r,e);case"utf8":case"utf-8":return b(this,t,r,e);case"ascii":return A(this,t,r,e);case"latin1":case"binary":return E(this,t,r,e);case"base64":return S(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;on)&&(e=n);for(var o="",i=r;ie)throw new RangeError("Trying to access beyond buffer length")}function I(t,r,e,n,o,i){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||rt.length)throw new RangeError("Index out of range")}function L(t,r,e,n){r<0&&(r=65535+r+1);for(var o=0,i=Math.min(t.length-e,2);o>>8*(n?o:1-o)}function O(t,r,e,n){r<0&&(r=4294967295+r+1);for(var o=0,i=Math.min(t.length-e,4);o>>8*(n?o:3-o)&255}function Y(t,r,e,n,o,i){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function N(t,r,e,n,i){return i||Y(t,0,e,4),o.write(t,r,e,n,23,4),e+4}function k(t,r,e,n,i){return i||Y(t,0,e,8),o.write(t,r,e,n,52,8),e+8}a.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r0&&(o*=256);)n+=this[t+--r]*o;return n},a.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*r)),n},a.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},a.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),o.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),o.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),o.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),o.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||I(this,t,r,e,Math.pow(2,8*e)-1,0);var o=1,i=0;for(this[r]=255&t;++i=0&&(i*=256);)this[r+o]=t/i&255;return r+e},a.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},a.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):L(this,t,r,!0),r+2},a.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):L(this,t,r,!1),r+2},a.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):O(this,t,r,!0),r+4},a.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):O(this,t,r,!1),r+4},a.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);I(this,t,r,e,o-1,-o)}var i=0,s=1,u=0;for(this[r]=255&t;++i>0)-u&255;return r+e},a.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);I(this,t,r,e,o-1,-o)}var i=e-1,s=1,u=0;for(this[r+i]=255&t;--i>=0&&(s*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/s>>0)-u&255;return r+e},a.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},a.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):L(this,t,r,!0),r+2},a.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):L(this,t,r,!1),r+2},a.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):O(this,t,r,!0),r+4},a.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||I(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):O(this,t,r,!1),r+4},a.prototype.writeFloatLE=function(t,r,e){return N(this,t,r,!0,e)},a.prototype.writeFloatBE=function(t,r,e){return N(this,t,r,!1,e)},a.prototype.writeDoubleLE=function(t,r,e){return k(this,t,r,!0,e)},a.prototype.writeDoubleBE=function(t,r,e){return k(this,t,r,!1,e)},a.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--o)t[o+r]=this[o+e];else if(i<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function $(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,r,e,n){for(var o=0;o=r.length||o>=t.length);++o)r[o+e]=t[o];return o}}).call(this,e(3))},function(t,r,e){"use strict";function n(t){if("number"==typeof t){if(n.codes[t])return n.codes[t];throw new Error("no protocol with code: "+t)}if("string"==typeof t||t instanceof String){if(n.names[t])return n.names[t];throw new Error("no protocol with name: "+t)}throw new Error("invalid protocol id type: "+t)}const o=-1;function i(t,r,e,n,o){return{code:t,size:r,name:e,resolvable:Boolean(n),path:Boolean(o)}}n.lengthPrefixedVarSize=o,n.V=o,n.table=[[4,32,"ip4"],[6,16,"tcp"],[33,16,"dccp"],[41,128,"ip6"],[42,o,"ip6zone"],[53,o,"dns","resolvable"],[54,o,"dns4","resolvable"],[55,o,"dns6","resolvable"],[56,o,"dnsaddr","resolvable"],[132,16,"sctp"],[273,16,"udp"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[277,0,"p2p-stardust"],[290,0,"p2p-circuit"],[301,0,"udt"],[302,0,"utp"],[400,o,"unix",!1,"path"],[421,o,"p2p"],[421,o,"ipfs"],[443,0,"https"],[444,96,"onion"],[445,296,"onion3"],[446,o,"garlic64"],[460,0,"quic"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[480,0,"http"]],n.names={},n.codes={},n.table.map(t=>{const r=i.apply(null,t);n.codes[r.code]=r,n.names[r.name]=r}),n.object=i,t.exports=n},function(t,r,e){"use strict";t.exports={encode:e(22),decode:e(23),encodingLength:e(24)}},function(t,r,e){"use strict";var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"==typeof window&&(n=window)}t.exports=n},function(t,r,e){"use strict";var n=e(17);t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(t,r,e){t.exports=e(6)},function(t,r,e){"use strict";const n=e(7),o=R("dns4"),i=R("dns6"),s=P(R("dns"),R("dnsaddr"),o,i),u=P(R("ip4"),R("ip6")),a=P(C(u,R("tcp")),C(s,R("tcp"))),f=C(u,R("udp")),c=C(f,R("utp")),h=P(C(a,R("ws")),C(s,R("ws"))),p=P(C(a,R("wss")),C(s,R("wss"))),l=P(C(a,R("http")),C(u,R("http")),C(s,R("http"))),d=P(C(a,R("https")),C(u,R("https")),C(s,R("https"))),g=P(C(h,R("p2p-webrtc-star"),R("ipfs")),C(p,R("p2p-webrtc-star"),R("ipfs")),C(h,R("p2p-webrtc-star"),R("p2p")),C(p,R("p2p-webrtc-star"),R("p2p"))),w=P(C(h,R("p2p-websocket-star"),R("ipfs")),C(p,R("p2p-websocket-star"),R("ipfs")),C(h,R("p2p-websocket-star"),R("p2p")),C(p,R("p2p-websocket-star"),R("p2p")),C(h,R("p2p-websocket-star")),C(p,R("p2p-websocket-star"))),y=P(C(l,R("p2p-webrtc-direct")),C(d,R("p2p-webrtc-direct"))),m=P(h,p,l,d,g,y,a,c),v=P(C(m,R("p2p-stardust"),R("ipfs")),C(m,R("p2p-stardust"))),b=P(C(m,R("ipfs")),C(m,R("p2p")),g,R("ipfs"),R("p2p")),A=P(C(b,R("p2p-circuit"),b),C(b,R("p2p-circuit")),C(R("p2p-circuit"),b),C(m,R("p2p-circuit")),C(R("p2p-circuit"),m),R("p2p-circuit")),E=()=>P(C(A,E),A),S=E(),T=P(C(S,b,S),C(b,S),C(S,b),S,b);function B(t){return function(r){if(!n.isMultiaddr(r))try{r=n(r)}catch(o){return!1}const e=t(r.protoNames());return null!==e&&0===e.length}}function C(){const t=Array.from(arguments);function r(r){return r.length{if(null===(r="function"==typeof t?t().partialMatch(r):t.partialMatch(r)))return!0}),r)}return{toString:function(){return"{ "+t.join(" ")+" }"},input:t,matches:B(r),partialMatch:r}}function P(){const t=Array.from(arguments);function r(r){let e=null;return t.some(t=>{const n="function"==typeof t?t().partialMatch(r):t.partialMatch(r);if(n)return e=n,!0}),e}return{toString:function(){return"{ "+t.join(" ")+" }"},input:t,matches:B(r),partialMatch:r}}function R(t){const r=t;return{toString:function(){return r},matches:function(t){if("string"==typeof t)try{t=n(t)}catch(o){return!1}const e=t.protoNames();return 1===e.length&&e[0]===r},partialMatch:function(t){return 0===t.length?null:t[0]===r?t.slice(1):null}}}r.DNS=s,r.DNS4=o,r.DNS6=i,r.IP=u,r.TCP=a,r.UDP=f,r.UTP=c,r.HTTP=l,r.HTTPS=d,r.WebSockets=h,r.WebSocketsSecure=p,r.WebSocketStar=w,r.WebRTCStar=g,r.WebRTCDirect=y,r.Reliable=m,r.Stardust=v,r.Circuit=S,r.P2P=T,r.IPFS=T},function(t,r,e){"use strict";(function(r){const n=e(11),o=e(1),i=e(2),s=e(4),u=e(25).proto((function(t){if(!(this instanceof u))return new u(t);if(null==t&&(t=""),t instanceof r)this.buffer=n.fromBuffer(t);else if("string"==typeof t||t instanceof String){if(t.length>0&&"/"!==t.charAt(0))throw new Error('multiaddr "'.concat(t,'" must start with a "/"'));this.buffer=n.fromString(t)}else{if(!(t.buffer&&t.protos&&t.protoCodes))throw new Error("addr must be a string, Buffer, or another Multiaddr");this.buffer=n.fromBuffer(t.buffer)}}),{className:"Multiaddr",symbolName:"@multiformats/js-multiaddr/multiaddr"});u.prototype.toString=function(){return n.bufferToString(this.buffer)},u.prototype.toJSON=u.prototype.toString,u.prototype.toOptions=function(){const t={},r=this.toString().split("/");return t.family="ip4"===r[1]?"ipv4":"ipv6",t.host=r[2],t.transport=r[3],t.port=r[4],t},u.prototype.inspect=function(){return""},u.prototype.protos=function(){return this.protoCodes().map(t=>Object.assign({},o(t)))},u.prototype.protoCodes=function(){const t=[],r=this.buffer;let e=0;for(;et.name)},u.prototype.tuples=function(){return n.bufferToTuples(this.buffer)},u.prototype.stringTuples=function(){const t=n.bufferToTuples(this.buffer);return n.tuplesToStringTuples(t)},u.prototype.encapsulate=function(t){return t=u(t),u(this.toString()+t.toString())},u.prototype.decapsulate=function(t){t=t.toString();const r=this.toString(),e=r.lastIndexOf(t);if(e<0)throw new Error("Address "+this+" does not contain subaddress: "+t);return u(r.slice(0,e))},u.prototype.getPeerId=function(){let t=null;try{t=this.stringTuples().filter(t=>{if(t[0]===o.names.ipfs.code)return!0}).pop()[1],s.decode(t)}catch(r){t=null}return t},u.prototype.getPath=function(){let t=null;try{t=this.stringTuples().filter(t=>{if(o(t[0]).path)return!0})[0][1]}catch(r){t=null}return t},u.prototype.equals=function(t){return this.buffer.equals(t.buffer)},u.prototype.nodeAddress=function(){const t=this.protoCodes(),r=this.protoNames(),e=this.toString().split("/").slice(1);if(e.length<4)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6}/{address}/{tcp, udp}/{port}".');if(4!==t[0]&&41!==t[0]&&54!==t[0]&&55!==t[0])throw new Error("no protocol with name: \"'".concat(r[0],'\'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".'));if("tcp"!==e[2]&&"udp"!==e[2])throw new Error("no protocol with name: \"'".concat(r[1],'\'". Must have a valid transport protocol: "{tcp, udp}".'));return{family:41===t[0]||55===t[0]?6:4,address:e[1],port:e[3]}},u.fromNodeAddress=function(t,r){if(!t)throw new Error("requires node address object");if(!r)throw new Error("requires transport protocol");const e="IPv6"===t.family?"ip6":"ip4";return u("/"+[e,t.address,r,t.port].join("/"))},u.prototype.isThinWaistAddress=function(t){const r=(t||this).protos();return 2===r.length&&((4===r[0].code||41===r[0].code)&&(6===r[1].code||273===r[1].code))},u.protocols=o,u.isName=function(t){return!!u.isMultiaddr(t)&&t.protos().some(t=>t.resolvable)},u.resolve=function(t,r){return u.isMultiaddr(t)&&u.isName(t)?r(new Error("not implemented yet")):r(new Error("not a valid name"))},t.exports=u}).call(this,e(0).Buffer)},function(t,r,e){"use strict";r.byteLength=function(t){var r=f(t),e=r[0],n=r[1];return 3*(e+n)/4-n},r.toByteArray=function(t){var r,e,n=f(t),s=n[0],u=n[1],a=new i(function(t,r,e){return 3*(r+e)/4-e}(0,s,u)),c=0,h=u>0?s-4:s;for(e=0;e>16&255,a[c++]=r>>8&255,a[c++]=255&r;2===u&&(r=o[t.charCodeAt(e)]<<2|o[t.charCodeAt(e+1)]>>4,a[c++]=255&r);1===u&&(r=o[t.charCodeAt(e)]<<10|o[t.charCodeAt(e+1)]<<4|o[t.charCodeAt(e+2)]>>2,a[c++]=r>>8&255,a[c++]=255&r);return a},r.fromByteArray=function(t){for(var r,e=t.length,o=e%3,i=[],s=0,u=e-o;su?u:s+16383));1===o?(r=t[e-1],i.push(n[r>>2]+n[r<<4&63]+"==")):2===o&&(r=(t[e-2]<<8)+t[e-1],i.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=s.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function c(t,r,e){for(var o,i,s=[],u=r;u>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,r,e){"use strict";r.read=function(t,r,e,n,o){var i,s,u=8*o-n-1,a=(1<>1,c=-7,h=e?o-1:0,p=e?-1:1,l=t[r+h];for(h+=p,i=l&(1<<-c)-1,l>>=-c,c+=u;c>0;i=256*i+t[r+h],h+=p,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+t[r+h],h+=p,c-=8);if(0===i)i=1-f;else{if(i===a)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var s,u,a,f=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,d=n?1:-1,g=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=c):(s=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-s))<1&&(s--,a*=2),(r+=s+h>=1?p/a:p*Math.pow(2,1-h))*a>=2&&(s++,a/=2),s+h>=c?(u=0,s=c):s+h>=1?(u=(r*a-1)*Math.pow(2,o),s+=h):(u=r*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[e+l]=255&u,l+=d,u/=256,o-=8);for(s=s<0;t[e+l]=255&s,l+=d,s/=256,f-=8);t[e+l-d]|=128*g}},function(t,r,e){"use strict";var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,r,e){"use strict";(function(r){const n=e(12),o=e(1),i=e(2);function s(t){const r=[],e=t.split("/").slice(1);if(1===e.length&&""===e[0])return[];for(let n=0;n=e.length)throw y("invalid address: "+t);if(s.path){r.push([i,w(e.slice(n).join("/"))]);break}r.push([i,e[n]])}else r.push([i])}return r}function u(t){const r=[];return t.map(t=>{const e=m(t);r.push(e.name),t.length>1&&r.push(t[1])}),w(r.join("/"))}function a(t){return t.map(t=>{Array.isArray(t)||(t=[t]);const r=m(t);return t.length>1?[r.code,n.toBuffer(r.code,t[1])]:[r.code]})}function f(t){return t.map(t=>{const r=m(t);return t.length>1?[r.code,n.toString(r.code,t[1])]:[r.code]})}function c(t){return d(r.concat(t.map(t=>{const e=m(t);let n=r.from(i.encode(e.code));return t.length>1&&(n=r.concat([n,t[1]])),n})))}function h(t,r){if(t.size>0)return t.size/8;if(0===t.size)return 0;return i.decode(r)+i.decode.bytes}function p(t){const r=[];let e=0;for(;et.length)throw y("Invalid address buffer: "+t.toString("hex"));r.push([n,a])}return r}function l(t){return c(a(s(t=w(t))))}function d(t){const e=g(t);if(e)throw e;return r.from(t)}function g(t){try{p(t)}catch(r){return r}}function w(t){return"/"+t.trim().split("/").filter(t=>t).join("/")}function y(t){return new Error("Error parsing address: "+t)}function m(t){return o(t[0])}t.exports={stringToStringTuples:s,stringTuplesToString:u,tuplesToStringTuples:f,stringTuplesToTuples:a,bufferToTuples:p,tuplesToBuffer:c,bufferToString:function(t){return u(f(p(t)))},stringToBuffer:l,fromString:function(t){return l(t)},fromBuffer:d,validateBuffer:g,isValidBuffer:function(t){return void 0===g(t)},cleanPath:w,ParseError:y,protoFromTuple:m,sizeForAddr:h}}).call(this,e(0).Buffer)},function(t,r,e){"use strict";(function(r){const n=e(13),o=e(15),i=e(1),s=e(4),u=e(19),a=e(2);function f(t,e){return e instanceof r?f.toString(t,e):f.toBuffer(t,e)}function c(t){if(!o(t))throw new Error("invalid ip address");return n.toBuffer(t)}function h(t){const e=r.alloc(2);return e.writeUInt16BE(t,0),e}function p(t){return t.readUInt16BE(0)}function l(t){const r=t.slice(0,t.length-2),e=t.slice(t.length-2);return u.encode(r).toString("ascii").toLowerCase()+":"+p(e)}t.exports=f,f.toString=function(t,r){switch((t=i(t)).code){case 4:case 41:return function(t){const r=n.toString(t);if(!o(r))throw new Error("invalid ip address");return r}(r);case 6:case 273:case 33:case 132:return p(r);case 53:case 54:case 55:case 56:case 400:return function(t){const r=a.decode(t);if((t=t.slice(a.decode.bytes)).length!==r)throw new Error("inconsistent lengths");return t.toString()}(r);case 421:return function(t){const r=a.decode(t),e=t.slice(a.decode.bytes);if(e.length!==r)throw new Error("inconsistent lengths");return s.encode(e)}(r);case 444:case 445:return l(r);default:return r.toString("hex")}},f.toBuffer=function(t,e){switch((t=i(t)).code){case 4:case 41:return c(e);case 6:case 273:case 33:case 132:return h(parseInt(e,10));case 53:case 54:case 55:case 56:case 400:return function(t){const e=r.from(t),n=r.from(a.encode(e.length));return r.concat([n,e])}(e);case 421:return function(t){const e=r.from(s.decode(t)),n=r.from(a.encode(e.length));return r.concat([n,e])}(e);case 444:return function(t){const e=t.split(":");if(2!==e.length)throw new Error("failed to parse onion addr: "+e+" does not contain a port number");if(16!==e[0].length)throw new Error("failed to parse onion addr: "+e[0]+" not a Tor onion address.");const n=r.from(u.decode.asBytes(e[0].toUpperCase())),o=parseInt(e[1],10);if(o<1||o>65536)throw new Error("Port number is not in range(1, 65536)");const i=h(o);return r.concat([n,i])}(e);case 445:return function(t){const e=t.split(":");if(2!==e.length)throw new Error("failed to parse onion addr: "+e+" does not contain a port number");if(56!==e[0].length)throw new Error("failed to parse onion addr: "+e[0]+" not a Tor onion3 address.");const n=r.from(u.decode.asBytes(e[0].toUpperCase())),o=parseInt(e[1],10);if(o<1||o>65536)throw new Error("Port number is not in range(1, 65536)");const i=h(o);return r.concat([n,i])}(e);default:return r.from(e,"hex")}}}).call(this,e(0).Buffer)},function(t,r,e){"use strict";var n=r,o=e(0).Buffer,i=e(14);n.toBuffer=function(t,r,e){var n;if(e=~~e,this.isV4Format(t))n=r||new o(e+4),t.split(/\./g).map((function(t){n[e++]=255&parseInt(t,10)}));else if(this.isV6Format(t)){var i,s=t.split(":",8);for(i=0;i0;i--)a.push("0");s.splice.apply(s,a)}for(n=r||new o(e+16),i=0;i>8&255,n[e++]=255&f}}if(!n)throw Error("Invalid ip address: "+t);return n},n.toString=function(t,r,e){r=~~r;var n=[];if(4===(e=e||t.length-r)){for(var o=0;o32?"ipv6":a(r))&&(e=16);for(var i=new o(e),s=0,u=i.length;s>f)}return n.toString(i)},n.mask=function(t,r){t=n.toBuffer(t),r=n.toBuffer(r);var e=new o(Math.max(t.length,r.length)),i=0;if(t.length===r.length)for(i=0;it.length&&(o=r,i=t);var s=o.length-i.length;for(e=s;e>>0},n.fromLong=function(t){return(t>>>24)+"."+(t>>16&255)+"."+(t>>8&255)+"."+(255&t)}},function(t,r,e){"use strict";r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n",r.homedir=function(){return"/"}},function(t,r,e){"use strict";const n=e(16),o=t.exports=t=>n({exact:!0}).test(t);o.v4=t=>n.v4({exact:!0}).test(t),o.v6=t=>n.v6({exact:!0}).test(t)},function(t,r,e){"use strict";const n="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",o="[0-9a-fA-F]{1,4}",i="\n(\n(?:".concat(o,":){7}(?:").concat(o,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(o,":){5}(?::").concat(n,"|(:").concat(o,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(o,":){4}(?:(:").concat(o,"){0,1}:").concat(n,"|(:").concat(o,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(o,":){3}(?:(:").concat(o,"){0,2}:").concat(n,"|(:").concat(o,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(o,":){2}(?:(:").concat(o,"){0,3}:").concat(n,"|(:").concat(o,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(o,":){1}(?:(:").concat(o,"){0,4}:").concat(n,"|(:").concat(o,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::").concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=t.exports=t=>t&&t.exact?new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")):new RegExp("(?:".concat(n,")|(?:").concat(i,")"),"g");s.v4=t=>t&&t.exact?new RegExp("^".concat(n,"$")):new RegExp(n,"g"),s.v6=t=>t&&t.exact?new RegExp("^".concat(i,"$")):new RegExp(i,"g")},function(t,r,e){"use strict";var n=e(18).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");var r=new Uint8Array(256);r.fill(255);for(var e=0;e>>0,c=new Uint8Array(f);t[e];){var h=r[t.charCodeAt(e)];if(255===h)return;for(var p=0,l=f-1;(0!==h||p>>0,c[l]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");i=p,e++}if(" "!==t[e]){for(var d=f-i;d!==f&&0===c[d];)d++;var g=n.allocUnsafe(o+(f-d));g.fill(0,0,o);for(var w=o;d!==f;)g[w++]=c[d++];return g}}}return{encode:function(r){if(!n.isBuffer(r))throw new TypeError("Expected Buffer");if(0===r.length)return"";for(var e=0,o=0,i=0,a=r.length;i!==a&&0===r[i];)i++,e++;for(var c=(a-i)*f+1>>>0,h=new Uint8Array(c);i!==a;){for(var p=r[i],l=0,d=c-1;(0!==p||l>>0,h[d]=p%s>>>0,p=p/s>>>0;if(0!==p)throw new Error("Non-zero carry");o=l,i++}for(var g=c-o;g!==c&&0===h[g];)g++;for(var w=u.repeat(e);g10&&(r="..."+r.substr(-10));var e=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+t+" bytes: "+r+" <-");throw e.position=t,e},p=function(t){if(!/^[A-Z2-7=]+$/.test(t))throw new Error("Invalid base32 characters");for(var r,e,n,o,i,s,u,a,c=[],h=0,p=(t=t.replace(/=/g,"")).length,l=0,d=p>>3<<3;l>>2),c[h++]=255&(e<<6|n<<1|o>>>4),c[h++]=255&(o<<4|i>>>1),c[h++]=255&(i<<7|s<<2|u>>>3),c[h++]=255&(u<<5|a);var g=p-d;return 2===g?(r=f[t.charAt(l++)],e=f[t.charAt(l++)],c[h++]=255&(r<<3|e>>>2)):4===g?(r=f[t.charAt(l++)],e=f[t.charAt(l++)],n=f[t.charAt(l++)],o=f[t.charAt(l++)],c[h++]=255&(r<<3|e>>>2),c[h++]=255&(e<<6|n<<1|o>>>4)):5===g?(r=f[t.charAt(l++)],e=f[t.charAt(l++)],n=f[t.charAt(l++)],o=f[t.charAt(l++)],i=f[t.charAt(l++)],c[h++]=255&(r<<3|e>>>2),c[h++]=255&(e<<6|n<<1|o>>>4),c[h++]=255&(o<<4|i>>>1)):7===g&&(r=f[t.charAt(l++)],e=f[t.charAt(l++)],n=f[t.charAt(l++)],o=f[t.charAt(l++)],i=f[t.charAt(l++)],s=f[t.charAt(l++)],u=f[t.charAt(l++)],c[h++]=255&(r<<3|e>>>2),c[h++]=255&(e<<6|n<<1|o>>>4),c[h++]=255&(o<<4|i>>>1),c[h++]=255&(i<<7|s<<2|u>>>3)),c},l=function(t,r){if(!r)return function(t){for(var r,e,n="",o=t.length,i=0,s=0;i191&&r<=223?(e=31&r,s=1):r<=239?(e=15&r,s=2):r<=247?(e=7&r,s=3):h(i,n);for(var u=0;u191)&&h(i,n),e<<=6,e+=63&r;e>=55296&&e<=57343&&h(i,n),e>1114111&&h(i,n),e<=65535?n+=String.fromCharCode(e):(e-=65536,n+=String.fromCharCode(55296+(e>>10)),n+=String.fromCharCode(56320+(1023&e)))}return n}(p(t));if(!/^[A-Z2-7=]+$/.test(t))throw new Error("Invalid base32 characters");var e,n,o,i,s,u,a,c,l="",d=t.indexOf("=");-1===d&&(d=t.length);for(var g=0,w=d>>3<<3;g>>2))+String.fromCharCode(255&(n<<6|o<<1|i>>>4))+String.fromCharCode(255&(i<<4|s>>>1))+String.fromCharCode(255&(s<<7|u<<2|a>>>3))+String.fromCharCode(255&(a<<5|c));var y=d-w;return 2===y?(e=f[t.charAt(g++)],n=f[t.charAt(g++)],l+=String.fromCharCode(255&(e<<3|n>>>2))):4===y?(e=f[t.charAt(g++)],n=f[t.charAt(g++)],o=f[t.charAt(g++)],i=f[t.charAt(g++)],l+=String.fromCharCode(255&(e<<3|n>>>2))+String.fromCharCode(255&(n<<6|o<<1|i>>>4))):5===y?(e=f[t.charAt(g++)],n=f[t.charAt(g++)],o=f[t.charAt(g++)],i=f[t.charAt(g++)],s=f[t.charAt(g++)],l+=String.fromCharCode(255&(e<<3|n>>>2))+String.fromCharCode(255&(n<<6|o<<1|i>>>4))+String.fromCharCode(255&(i<<4|s>>>1))):7===y&&(e=f[t.charAt(g++)],n=f[t.charAt(g++)],o=f[t.charAt(g++)],i=f[t.charAt(g++)],s=f[t.charAt(g++)],u=f[t.charAt(g++)],a=f[t.charAt(g++)],l+=String.fromCharCode(255&(e<<3|n>>>2))+String.fromCharCode(255&(n<<6|o<<1|i>>>4))+String.fromCharCode(255&(i<<4|s>>>1))+String.fromCharCode(255&(s<<7|u<<2|a>>>3))),l},d={encode:function(t,r){var e="string"!=typeof t;return e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),e?function(t){for(var r,e,n,o,i,s="",u=t.length,f=0,c=5*parseInt(u/5);f>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[31&(n<<1|o>>>7)]+a[o>>>2&31]+a[31&(o<<3|i>>>5)]+a[31&i];var h=u-c;return 1===h?(r=t[f],s+=a[r>>>3]+a[r<<2&31]+"======"):2===h?(r=t[f++],e=t[f],s+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[e<<4&31]+"===="):3===h?(r=t[f++],e=t[f++],n=t[f],s+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[n<<1&31]+"==="):4===h&&(r=t[f++],e=t[f++],n=t[f++],o=t[f],s+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[31&(n<<1|o>>>7)]+a[o>>>2&31]+a[o<<3&31]+"="),s}(t):r?function(t){for(var r,e,n,o,i,s="",u=t.length,f=0,c=5*parseInt(u/5);f>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[31&(n<<1|o>>>7)]+a[o>>>2&31]+a[31&(o<<3|i>>>5)]+a[31&i];var h=u-c;return 1===h?(r=t.charCodeAt(f),s+=a[r>>>3]+a[r<<2&31]+"======"):2===h?(r=t.charCodeAt(f++),e=t.charCodeAt(f),s+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[e<<4&31]+"===="):3===h?(r=t.charCodeAt(f++),e=t.charCodeAt(f++),n=t.charCodeAt(f),s+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[n<<1&31]+"==="):4===h&&(r=t.charCodeAt(f++),e=t.charCodeAt(f++),n=t.charCodeAt(f++),o=t.charCodeAt(f),s+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[31&(n<<1|o>>>7)]+a[o>>>2&31]+a[o<<3&31]+"="),s}(t):function(t){var r,e,n,o,i,s,u,f=!1,h="",p=0,l=0,d=t.length;do{for(c[0]=c[5],c[1]=c[6],c[2]=c[7],u=l;p>6,c[u++]=128|63&s):s<55296||s>=57344?(c[u++]=224|s>>12,c[u++]=128|s>>6&63,c[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++p)),c[u++]=240|s>>18,c[u++]=128|s>>12&63,c[u++]=128|s>>6&63,c[u++]=128|63&s);u-l,l=u-5,p===d&&++p,p>d&&u<6&&(f=!0),r=c[0],u>4?(e=c[1],n=c[2],o=c[3],i=c[4],h+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[31&(n<<1|o>>>7)]+a[o>>>2&31]+a[31&(o<<3|i>>>5)]+a[31&i]):1===u?h+=a[r>>>3]+a[r<<2&31]+"======":2===u?(e=c[1],h+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[e<<4&31]+"===="):3===u?(e=c[1],n=c[2],h+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[n<<1&31]+"==="):(e=c[1],n=c[2],o=c[3],h+=a[r>>>3]+a[31&(r<<2|e>>>6)]+a[e>>>1&31]+a[31&(e<<4|n>>>4)]+a[31&(n<<1|o>>>7)]+a[o>>>2&31]+a[o<<3&31]+"=")}while(!f);return h}(t)},decode:l};l.asBytes=p,s?t.exports=d:(i.base32=d,u&&(void 0===(o=function(){return d}.call(d,e,d,t))||(t.exports=o)))}()}).call(this,e(20),e(3))},function(t,r,e){"use strict";var n,o,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(r){try{return n.call(null,t,0)}catch(r){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(t){o=u}}();var f,c=[],h=!1,p=-1;function l(){h&&f&&(h=!1,f.length?c=f.concat(c):p=-1,c.length&&d())}function d(){if(!h){var t=a(l);h=!0;for(var r=c.length;r;){for(f=c,c=[];++p1)for(var e=1;e=i;)e[s++]=255&r|n,r/=128;for(;r&o;)e[s++]=255&r|n,r>>>=7;e[s]=0|r;t.bytes=s-u+1;return e};var n=128,o=-128,i=Math.pow(2,31)},function(t,r,e){"use strict";t.exports=function t(r,e){var i,s=0,u=(e=e||0,0),a=e,f=r.length;do{if(a>=f)throw t.bytes=0,new RangeError("Could not decode varint");i=r[a++],s+=u<28?(i&o)<=n);t.bytes=a-e;return s};var n=128,o=127},function(t,r,e){"use strict";var n=Math.pow(2,7),o=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),u=Math.pow(2,35),a=Math.pow(2,42),f=Math.pow(2,49),c=Math.pow(2,56),h=Math.pow(2,63);t.exports=function(t){return t!(!t||!t[o]),i},t.exports.proto=function(t,r){let{className:e,symbolName:n,withoutNew:o}=r;const i=Symbol.for(n),s={[e]:function(){for(var r=arguments.length,e=new Array(r),n=0;ne}),s["is".concat(e)]=t=>!(!t||!t[i]),s}}])})); //# sourceMappingURL=index.min.js.map