!function(e,t){“object”==typeof exports&&“object”==typeof module?module.exports=t():“function”==typeof define&&define.amd?define([],t):“object”==typeof exports?exports.blockstack=t():e.blockstack=t()}(this,function(){return function(e){var t={};function r(n){if(t)return t.exports;var i=t={i:n,l:!1,exports:{}};return e.call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:“Module”}),Object.defineProperty(e,“__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&“object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,“default”,{enumerable:!0,value:e}),2&t&&“string”!=typeof e)for(var i in e)r.d(n,i,function(t){return e}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,“a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=“”,r(r.s=218)}([function(e,t,r){“use strict”;function n(e){return(n=“function”==typeof Symbol&&“symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&“function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?“symbol”:typeof e})(e)}function i(e){return(i=“function”==typeof Symbol&&“symbol”===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&“function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?“symbol”:n(e)})(e)}Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e){if(!(“string”==typeof e||e instanceof String)){var t;throw t=null===e?“null”:“object”===(t=i(e))&&e.constructor&&e.constructor.hasOwnProperty(“name”)?e.constructor.name:“a ”.concat(t),new TypeError(“Expected string but received ”.concat(t,“.”))}},e.exports=t.default,e.exports.default=t.default},function(e,t,r){“use strict”;(function(e){ /*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var n=r(220),i=r(221),o=r(124);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError(“Attempt to allocate Buffer larger than maximum size: 0x”+a().toString(16)+“ bytes”);return 0|e}function p(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case“ascii”:case“latin1”:case“binary”:return r;case“utf8”:case“utf-8”:case void 0:return z(e).length;case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return 2*r;case“hex”:return r>>>1;case“base64”:return L(e).length;default:if(n)return z(e).length;t=(“”+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if(“string”==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o–){for(var l=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError(“Invalid hex string”);n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return“”;if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return“”;for(e||(e=“utf8”);;)switch(e){case“hex”:return T(this,t,r);case“utf8”:case“utf-8”:return E(this,t,r);case“ascii”:return P(this,t,r);case“latin1”:case“binary”:return O(this,t,r);case“base64”:return x(this,t,r);case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return j(this,t,r);default:if(n)throw new TypeError(“Unknown encoding: ”+e);e=(e+“”).toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(“Argument must be a Buffer”);return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=“”,r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(“hex”,0,r).match(/.{2}/g).join(“ ”),this.length>r&&(e+=“ … ”)),“e”>“},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError(”Argument must be a Buffer“);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError(”out of range index“);if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError(”Attempt to write outside buffer bounds“);n||(n=”utf8“);for(var o=!1;;)switch(n){case”hex“:return g(this,e,t,r);case”utf8“:case”utf-8“:return v(this,e,t,r);case”ascii“:return _(this,e,t,r);case”latin1“:case”binary“:return w(this,e,t,r);case”base64“:return S(this,e,t,r);case”ucs2“:case”ucs-2“:case”utf16le“:case”utf-16le“:return k(this,e,t,r);default:if(o)throw new TypeError(”Unknown encoding: “+n);n=(”“+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:”Buffer“,data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function P(e,t,r){var n=”“;r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i=”“,o=t;or)throw new RangeError(”Trying to access beyond buffer length“)}function I(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError(‘”buffer“ argument must be a Buffer instance’);if(t>i||te.length)throw new RangeError(”Index out of range“)}function B(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError(”Index out of range“);if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function U(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+–t]*i;return n},u.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=t,i=1,o=this[e+–n];n>0&&(i*=256);)o+=this[e+–n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;–o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=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),e.length-t=0;–i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),”number“==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function L(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^s+|s+$/g,”“)}(e).replace(R,”“)).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(7))},function(e,t,r){var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if(”number“==typeof e)throw new TypeError(”Argument must not be a number“);return i(e,t,r)},a.alloc=function(e,t,r){if(”number“!=typeof e)throw new TypeError(”Argument must be a number“);var n=i(e);return void 0!==t?”string“==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if(”number“!=typeof e)throw new TypeError(”Argument must be a number“);return i(e)},a.allocUnsafeSlow=function(e){if(”number“!=typeof e)throw new TypeError(”Argument must be a number“);return n.SlowBuffer(e)}},function(e,t){”function“==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){(function(e){function t(e){return(t=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:typeof e})(e)}!function(e,n){”use strict“;function i(e,t){if(!e)throw new Error(t||”Assertion failed“)}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(”le“!==t&&”be“!==t||(r=t,t=10),this._init(e||0,t||10,r||”be“))}var s;”object“===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;try{s=r(228).Buffer}catch(e){}function u(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&”object“===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(e,o):this._parseBase(e,r,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if(”le“===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=u(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=u(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f1&&0===this.words[this.length-1];)this.length–;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?”“};var f=[”“,”0“,”00“,”000“,”0000“,”00000“,”000000“,”0000000“,”00000000“,”000000000“,”0000000000“,”00000000000“,”000000000000“,”0000000000000“,”00000000000000“,”000000000000000“,”0000000000000000“,”00000000000000000“,”000000000000000000“,”0000000000000000000“,”00000000000000000000“,”000000000000000000000“,”0000000000000000000000“,”00000000000000000000000“,”000000000000000000000000“,”0000000000000000000000000“],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c>>26,l=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[d])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a–)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r=”0“+r;return 0!==this.negative&&(r=”-“+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=l[e],d=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(e);r=(p=p.idivn(d)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,”Number can only safely store up to 53 bits“),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,”Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i(“number”==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t–;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i(“number”==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,b=d>>>13,y=0|a[2],m=8191&y,g=y>>>13,v=0|a[3],_=8191&v,w=v>>>13,S=0|a[4],k=8191&S,x=S>>>13,E=0|a[5],A=8191&E,P=E>>>13,O=0|a[6],T=8191&O,j=O>>>13,M=0|a[7],I=8191&M,B=M>>>13,D=0|a[8],C=8191&D,N=D>>>13,U=0|a[9],R=8191&U,F=U>>>13,z=0|s[0],L=8191&z,q=z>>>13,H=0|s[1],$=8191&H,K=H>>>13,V=0|s[2],G=8191&V,W=V>>>13,X=0|s[3],Z=8191&X,J=X>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,he=fe>>>13,de=0|s[9],pe=8191&de,be=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,L))|0)+((8191&(i=(i=Math.imul(l,q))+Math.imul(h,L)|0))<<13)|0;c=((o=Math.imul(h,q))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,q))+Math.imul(b,L)|0,o=Math.imul(b,q);var me=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,L),i=(i=Math.imul(m,q))+Math.imul(g,L)|0,o=Math.imul(g,q),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,K)|0;var ge=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,W)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(_,L),i=(i=Math.imul(_,q))+Math.imul(w,L)|0,o=Math.imul(w,q),n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,W)|0;var ve=(c+(n=n+Math.imul(l,Z)|0)|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(k,L),i=(i=Math.imul(k,q))+Math.imul(x,L)|0,o=Math.imul(x,q),n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0;var _e=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,L),i=(i=Math.imul(A,q))+Math.imul(P,L)|0,o=Math.imul(P,q),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var we=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,L),i=(i=Math.imul(T,q))+Math.imul(j,L)|0,o=Math.imul(j,q),n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Se=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,L),i=(i=Math.imul(I,q))+Math.imul(B,L)|0,o=Math.imul(B,q),n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var ke=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(C,L),i=(i=Math.imul(C,q))+Math.imul(N,L)|0,o=Math.imul(N,q),n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var xe=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,q))+Math.imul(F,L)|0,o=Math.imul(F,q),n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,ce)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Ee=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,$),i=(i=Math.imul(R,K))+Math.imul(F,$)|0,o=Math.imul(F,K),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,ue)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(m,le)|0,i=(i=i+Math.imul(m,he)|0)+Math.imul(g,le)|0,o=o+Math.imul(g,he)|0;var Ae=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,W))+Math.imul(F,G)|0,o=Math.imul(F,W),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(_,le)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,he)|0;var Pe=(c+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(g,pe)|0))<<13)|0;c=((o=o+Math.imul(g,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(R,Z),i=(i=Math.imul(R,J))+Math.imul(F,Z)|0,o=Math.imul(F,J),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(k,le)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(x,le)|0,o=o+Math.imul(x,he)|0;var Oe=(c+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,be)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,Q),i=(i=Math.imul(R,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(A,le)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,he)|0;var Te=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,be)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(R,re),i=(i=Math.imul(R,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,ce)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,he)|0;var je=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,he)|0;var Me=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(C,le)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,he)|0;var Ie=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,be)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(R,le),i=(i=Math.imul(R,he))+Math.imul(F,le)|0,o=Math.imul(F,he);var Be=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863;var De=(c+(n=Math.imul(R,pe))|0)+((8191&(i=(i=Math.imul(R,be))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,be))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ye,u[1]=me,u[2]=ge,u[3]=ve,u[4]=_e,u[5]=we,u[6]=Se,u[7]=ke,u[8]=xe,u[9]=Ee,u[10]=Ae,u[11]=Pe,u[12]=Oe,u[13]=Te,u[14]=je,u[15]=Me,u[16]=Ie,u[17]=Be,u[18]=De,0!==c&&(u[19]=c,r.length++),r};function b(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length–,r.strip()}(this,e,t):b(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t–)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==f||c>=n);c–){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i(“number”==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,“imaskn works only with positive numbers”),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i(“number”==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln®,n.iushln®,o=0|i.words[i.length-1]);var s,u=n.length-i.length;if(“mod”!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;l–){var h=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,l);0!==n.negative;)h–,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=h)}return s&&s.strip(),n.strip(),“div”!==t&&0!==r&&n.iushrn®,{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),“mod”!==t&&(n=s.div.neg()),“div”!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),“mod”!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),“div”!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n–)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r–){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h– >0;)(n.isOdd()||o.isOdd())&&(n.iadd(f),o.isub(l)),n.iushrn(1),o.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p– >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp®>=0?(t.isub®,n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln©}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn©;c– >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(r.iushrn(l);l– >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp®>=0?(t.isub®,o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r–){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},o(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(m[e])return m[e];var t;if(“k256”===e)t=new v;else if(“p224”===e)t=new _;else if(“p192”===e)t=new w;else{if(“p25519”!==e)throw new Error(“Unknown prime ”+e);t=new S}return m[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,“red works only with positives”),i(e.red,“red works only with red numbers”)},k.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),“red works only with positives”),i(e.red&&e.red===t.red,“red works only with red numbers”)},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var b=d,y=0;0!==b.cmp(s);y++)b=b.redSqr();i(y=0;n–){for(var c=t.words[n],f=u-1;f>=0;f–){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==o?(o<<=1,o|=l,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},o(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(17)(e))},function(e,t,r){var n=r(2).Buffer,i=r(171),o=r(34),a=r(382),s=r(10),u=r(19),c=r(173),f=r(6),l=r(384),h=f.OP_RESERVED;function d(e){return u.Buffer(e)||function(e){return u.Number(e)&&(e===f.OP_0||e>=f.OP_1&&e<=f.OP_16||e===f.OP_1NEGATE)}(e)}function p(e){return u.Array(e)&&e.every(d)}function b(e){return 0===e.length?f.OP_0:1===e.length?e[0]>=1&&e[0]<=16?h+e[0]:129===e[0]?f.OP_1NEGATE:void 0:void 0}function y(e){if(n.isBuffer(e))return e;s(u.Array,e);var t=e.reduce(function(e,t){return n.isBuffer(t)?1===t.length&&void 0!==b(t)?e+1:e+a.encodingLength(t.length)+t.length:e+1},0),r=n.allocUnsafe(t),i=0;if(e.forEach(function(e){if(n.isBuffer(e)){var t=b(e);if(void 0!==t)return r.writeUInt8(t,i),void(i+=1);i+=a.encode(r,e.length,i),e.copy(r,i),i+=e.length}else r.writeUInt8(e,i),i+=1}),i!==r.length)throw new Error("Could not decode chunks");return r}function m(e){if(u.Array(e))return e;s(u.Buffer,e);for(var t=[],r=0;rf.OP_0&&n<=f.OP_PUSHDATA4){var i=a.decode(e,r);if(null===i)return null;if((r+=i.size)+i.number>e.length)return null;var o=e.slice(r,r+i.number);r+=i.number;var c=b(o);void 0!==c?t.push©:t.push(o)}else t.push(n),r+=1}return t}function g(e){var t=-129&e;return t>0&&t<4}e.exports={compile:y,decompile:m,fromASM:function(e){return s(u.String,e),y(e.split(" ").map(function(e){return void 0!==f[e]?f[e]:(s(u.Hex,e),n.from(e,"hex"))}))},toASM:function(e){return n.isBuffer(e)&&(e=m(e)),e.map(function(e){if(n.isBuffer(e)){var t=b(e);if(void 0===t)return e.toString("hex");e=t}return l[e]}).join(" ")},toStack:function(e){return e=m(e),s(p,e),e.map(function(e){return n.isBuffer(e)?e:e===f.OP_0?n.allocUnsafe(0):c.encode(e-h)})},number:r(173),signature:r(385),isCanonicalPubKey:function(e){return o.isPoint(e)},isCanonicalScriptSignature:function(e){return!!n.isBuffer(e)&&!!g(e[e.length-1])&&i.check(e.slice(0,-1))},isPushOnly:p,isDefinedHashType:g}},function(e){e.exports={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(function(){var i,o,a,s,u;u=r(13),o=function(e){var t,r,n,i;for(r=new Uint8Array(e.length),t=n=0,i=e.length;0<=i?ni;t=0<=i?++n:--n)r[t]=e.readUInt8(t);return r},s=function(t){var r,n,i,o;for(n=new e(t.length),r=i=0,o=t.length;0<=o?io;r=0<=o?++i:--i)n.writeUInt8(t[r],r);return n},a=function(e){return e>>>24&255|(e>>>16&255)<<8|(e>>>8&255)<<16|(255&e)<<24},t.WordArray=i=function(){function t(e,t){this.words=e||[],this.sigBytes=null!=t?t:4*this.words.length}return t.prototype.concat=function(e){var t,r,n,i,o;if(i=e.words,n=e.sigBytes,this.clamp(),this.sigBytes%4)for(t=o=0;0<=n?on;t=0<=n?++o:--o)r=i[t>>>2]>>>24-t%4*8&255,this.words[this.sigBytes+t>>>2]|=r<<24-(this.sigBytes+t)%4*8;else this.words=this.words.concat(i);return this.sigBytes+=n,this},t.prototype.clamp=function(){return this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this},t.prototype.clone=function(){return new t(this.words.slice(0),this.sigBytes)},t.prototype.to_buffer=function(){var t,r,n,i,o,a,s;for(r=new e(this.sigBytes),n=0,o=0,a=(s=this.words).length;o=4&&(i=u.fixup_uint32(i),r.writeUInt32BE(i,n),n+=4);for(;n>>2]>>>24-n%4*8&255,r.writeUInt8(t,n),n++;return r},t.prototype.endian_reverse=function(){var e,t,r,n,i;for(e=r=0,n=(i=this.words).length;r0?ei;r=e+=n)o.push(new t(this.words.slice(r,r+n)));return o}.call(this)},t.prototype.to_utf8=function(){return this.to_buffer().toString(“utf8”)},t.prototype.to_hex=function(){return this.to_buffer().toString(“hex”)},t.prototype.to_ui8a=function(){return o(this.to_buffer())},t.alloc=function®{return e.isBuffer®?t.from_buffer®:“object”===n®&&r instanceof t?r:“string”==typeof r?t.from_hex®:null},t.from_buffer=function(e){var r,n,i;for(i=[],n=0;e.length-n>=4;)i.push(e.readUInt32BE(n)),n+=4;if(n=4;)i.push(e.readUInt32LE(n)),n+=4;if(nthis.words.length“ < "+(r+i)+")");if(e.words.lengthi;n=0<=i?++s:--s)a=this.words[r+n]^e.words[o+n],this.words[r+n]=u.fixup_uint32(a);return this},t.prototype.truncate=function(e){var r;if(!(e<=this.sigBytes))throw new Error("Cannot truncate: "e
” > “+this.sigBytes);return r=Math.ceil(e/4),new t(this.words.slice(0,r),e)},t.prototype.unshift=function(e){var r;return this.words.length>=e?(r=this.words.splice(0,e),this.sigBytes-=4*e,new t®):null},t.prototype.is_scrubbed=function(){var e,t,r;for(e=0,t=(r=this.words).length;ee”,“r
”)] when only “n
” avail“);return i=4*(r-e),r===n&&(i-=4*n-this.sigBytes),new t(this.words.slice(e,r),i)},t}(),t.X64Word=function(){function e(e,t){this.high=e,this.low=t}return e.prototype.clone=function(){return new e(this.high,this.low)},e}(),t.X64WordArray=function(){function e(e,t){this.sigBytes=t,this.words=e||[],this.sigBytes||(this.sigBytes=8*this.words.length)}return e.prototype.toX32=function(){var e,t,r,n,o;for(e=[],r=0,n=(o=this.words).length;rt.maxLength)&&((void 0===t.length||r.length===t.length)&&r.every(function(t,r){try{return h(e,t,n)}catch(e){throw u(e,r)}})))))}return e=l(e),t=t||{},r.toJSON=function(){var r=”[“+o(e)+”]“;return void 0!==t.length?r+=”{“t.length
”}“:void 0===t.minLength&&void 0===t.maxLength||(r+=”{“+(void 0===t.minLength?0:t.minLength)+”,“+(void 0===t.maxLength?1/0:t.maxLength)+”}“),r},r},maybe:function e(t){function r(r,n){return i.Nil®||t(r,n,e)}return t=l(t),r.toJSON=function(){return”?“+o(t)},r},map:function(e,t){function r(r,n){if(!i.Object®)return!1;if(i.Nil®)return!1;for(var o in r){try{t&&h(t,o,n)}catch(e){throw u(e,o,”key“)}try{var a=r[o];h(e,a,n)}catch(e){throw u(e,o)}}return!0}return e=l(e),t&&(t=l(t)),r.toJSON=t?function(){return”{“+o(t)+”: “+o(e)+”}“}:function(){return”{“+o(e)+”}“},r},object:function(e){var t={};for(var r in e)t[r]=l(e[r]);function n(e,r){if(!i.Object(e))return!1;if(i.Nil(e))return!1;var n;try{for(n in t){h(t[n],e[n],r)}}catch(e){throw u(e,n)}if®for(n in e)if(!t[n])throw new s(void 0,n);return!0}return n.toJSON=function(){return o(t)},n},anyOf:function(){var e=[].slice.call(arguments).map(l);function t(t,r){return e.some(function(e){try{return h(e,t,r)}catch(e){return!1}})}return t.toJSON=function(){return e.map(o).join(”|“)},t},allOf:function(){var e=[].slice.call(arguments).map(l);function t(t,r){return e.every(function(e){try{return h(e,t,r)}catch(e){return!1}})}return t.toJSON=function(){return e.map(o).join(” & “)},t},quacksLike:function(e){function t(t){return e===c(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(l);function t(t,r){return!i.Nil(t)&&(!i.Nil(t.length)&&((!r||t.length===e.length)&&e.every(function(e,n){try{return h(e,t[n],r)}catch(e){throw u(e,n)}})))}return t.toJSON=function(){return”(“+e.map(o).join(”, “)+”)“},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function l(e){if(i.String(e))return”?“===e[0]?f.maybe(e.slice(1)):i[e]||f.quacksLike(e);if(e&&i.Object(e)){if(i.Array(e)){if(1!==e.length)throw new TypeError(”Expected compile() parameter of type Array of length 1“);return f.arrayOf(e[0])}return f.object(e)}return i.Function(e)?e:f.value(e)}function h(e,t,r,n){if(i.Function(e)){if(e(t,r))return!0;throw new a(n||e,t)}return h(l(e),t,r)}for(var d in f.oneOf=f.anyOf,i)h[d]=i[d];for(d in f)h[d]=f[d];var p=r(383);for(d in p)h[d]=p[d];h.compile=l,h.TfTypeError=a,h.TfPropertyTypeError=s,e.exports=h},function(e,t){function r(e,t){if(!e)throw new Error(t||”Assertion failed“)}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||”Assertion failed: “e
” != “+t)}},function(e,t,r){(function(){var e,n,i,o,a,s;for(t.const=r(115),a=0,s=(i=[r(214),r(498)]).length;aa||e<0?(t=Math.abs(e)%a,e<0?a-t:t):e},t.scrub_buffer=function(e){var t,r;for(r=e.length>>2,t=0;to;r=0<=o?++i:--i)n.writeUInt8(t.readUInt8(r),r);return n},t.scrub_vec=function(e){var t,r,n;for(t=r=0,n=e.length;0<=n?rn;t=0<=n?++r:--r)e[t]=0;return!1},t.default_delay=i=function(e,t,r){var i,a;i=o.findDeferral(arguments),function(e){null!=n?function(e){a=new o.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),n(a.defer({lineno:45})),a._fulfill()}(e):function(e){a=new o.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),setTimeout(a.defer({lineno:47}),1),a._fulfill()}(e)}(function(){return r()})},t.buffer_cmp_ule=function(e,t){var r,n,i,o,a,s;for(i=o=0,r=e.length,n=t.length;in-o)return 1;if(n-o>r-i)return-1;for(;i0))return e();d=Math.min(h,l),m(f,f+d),n(f),_=new o.Deferrals(function(){return r(f+=d)},{parent:v,filename:”/Users/max/src/keybase/triplesec/src/util.iced“,funcname:”bulk“}),u(f,y,_.defer({lineno:105})),_._fulfill()})(e)}(function(){return n(y),b=c(),a(b)})}}).call(this)}).call(this,r(1).Buffer,r(87).setImmediate)},function(e,t){var r,n,i=e.exports={};function o(){throw new Error(”setTimeout has not been defined“)}function a(){throw new Error(”clearTimeout has not been defined“)}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r=”function“==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n=”function“==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,c=[],f=!1,l=-1;function h(){f&&u&&(f=!1,u.length?c=u.concat©:l=-1,c.length&&d())}function d(){if(!f){var e=s(h);f=!0;for(var t=c.length;t;){for(u=c,c=[];++l1)for(var r=1;rparseInt(e,10)),n=t.split(”.“).map(e=>parseInt(e,10));for(let i=0;i=e.length&&n.push(0),r[i]{const r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),(”x“===t?r:3&r|8).toString(16)})},t.isSameOriginAbsoluteUrl=function(e,t){const r=i.default.parse(e),n=i.default.parse(t),o=0|parseInt(r.port||”0“,10)||(”https:“===r.protocol?443:80),a=0|parseInt(n.port||”0“,10)||(”https:“===n.protocol?443:80),s={scheme:r.protocol===n.protocol,hostname:r.hostname===n.hostname,port:o===a,absolute:(e.includes(”http://“)||e.includes(”https://“))&&(t.includes(”http://“)||t.includes(”https://“))};return s.scheme&&s.hostname&&s.port&&s.absolute},t.checkWindowAPI=function(e,t){if(”undefined“==typeof window||!window[t]){const r=``${e}` uses the `window.${t}` API which is `+” not available in the current environment.“;throw s.Logger.error®,new Error®}}}).call(this,r(1).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,”loaded“,{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,”id“,{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){”use strict“;var n=r(11),i=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?”0“+e:e}function u(e){return 7===e.length?”0“+e:6===e.length?”00“+e:5===e.length?”000“+e:4===e.length?”0000“+e:3===e.length?”00000“+e:2===e.length?”000000“+e:1===e.length?”0000000“+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(”string“==typeof e)if(t){if(”hex“===t)for((e=e.replace(/[^a-z0-9]+/gi,”“)).length%2!=0&&(e=”0“+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;return f+=(l=l+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){var n=r(10),i=Math.pow(2,31)-1;function o(e){return n.String(e)&&e.match(/^(m/)?(d+‘?/)*d+’?$/)}o.toJSON=function(){return”BIP32 derivation path“};var a=21e14;var s=n.quacksLike(”Point“),u=n.compile({messagePrefix:n.oneOf(n.Buffer,n.String),bip32:{public:n.UInt32,private:n.UInt32},pubKeyHash:n.UInt8,scriptHash:n.UInt8,wif:n.UInt8}),c={BIP32Path:o,Buffer256bit:n.BufferN(32),ECPoint:s,Hash160bit:n.BufferN(20),Hash256bit:n.BufferN(32),Network:u,Satoshi:function(e){return n.UInt53(e)&&e<=a},UInt31:function(e){return n.UInt32(e)&&e<=i}};for(var f in n)c[f]=n[f];e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(29);t.levels=["debug","info","warn","error","none"];const i={},o={};for(let e=0;e0?fs;u=f+=l)this._doProcessBlock(n,u);c=n.splice(0,s),t.sigBytes-=o}return new a(c,o)},e.prototype.copy_to=function(e){return e._data=this._data.clone(),e._nDataBytes=this._nDataBytes},e.prototype.clone=function(){var t;return t=new e,this.copy_to(t),t},e}(),i=function(e){function t(){t.__super__.constructor.call(this)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.prototype.reset=function(){return t.__super__.reset.call(this),this._doReset(),this},t.prototype.update=function(e){return this._append(e),this._process(),this},t.prototype.finalize=function(e){return e&&this._append(e),this._doFinalize()},t.prototype.bufhash=function(e){var t,r,n;return r=a.from_buffer(e),t=(n=this.finalize®).to_buffer(),r.scrub(),n.scrub(),t},t}(),t.BlockCipher=e=function(){function e(e){}return e.prototype.encryptBlock=function(e,t){},e}(),o=function(){function e(){}return e.prototype.encryptBlock=function(e,t){var r,n;return null==t&&(t=0),n=this.get_pad(),r=Math.min(e.words.length-t,this.bsiw),e.xor(n,{dst_offset:t,n_words:r}),n.scrub(),this.bsiw},e.prototype.encrypt=function(e){var t,r,n,i;for(t=r=0,n=e.words.length,i=this.bsiw;i>0?rn;t=r+=i)this.encryptBlock(e,t);return e},e.prototype.bulk_encrypt=function(e,t){var r,n,i,o,a,u;return n=e.input,i=e.progress_hook,a=e.what,o={update:(u=this,function(e,t){var r,i,o,a;for(a=[],r=i=e,o=u.bsiw;o>0?it;r=i+=o)a.push(u.encryptBlock(n,r));return a}),finalize:function(){return n},default_n:1024*this.bsiw},r={progress_hook:i,cb:t,what:a},s.bulk(n.sigBytes,o,r)},e}(),t.BlockCipher=e,t.Hasher=i,t.BufferedBlockAlgorithm=n,t.StreamCipher=o}).call(this)},function(e,t,r){”use strict“;var n=r(3),i=r(83),o=r(46),a=r(88),s=r(27);function u(e){s.call(this,”digest“),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return”md5“===(e=e.toLowerCase())?new i:”rmd160“===e||”ripemd160“===e?new o:new u(a(e))}},function(e,t,r){var n=r(5);e.exports={Block:r(386),ECPair:r(175),Transaction:r(99),TransactionBuilder:r(392),address:r(177),bip32:r(180),crypto:r(28),networks:r(15),opcodes:r(6),payments:r(101),script:n}},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.ERROR_CODES={MISSING_PARAMETER:”missing_parameter“,REMOTE_SERVICE_ERROR:”remote_service_error“,INVALID_STATE:”invalid_state“,NO_SESSION_DATA:”no_session_data“,UNKNOWN:”unknown“},Object.freeze(t.ERROR_CODES);class n extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.parameter=e.parameter?e.parameter:null}toString(){return`${super.toString()}n code: ${this.code} param: ${this.parameter?this.parameter:”n/a“}`}}t.BlockstackError=n;t.InvalidParameterError=class extends n{constructor(e,t=”“){super({code:”missing_parameter“,message:t,parameter:”“}),this.name=”MissingParametersError“}};t.MissingParameterError=class extends n{constructor(e,r=”“){super({code:t.ERROR_CODES.MISSING_PARAMETER,message:r,parameter:e}),this.name=”MissingParametersError“}};t.RemoteServiceError=class extends n{constructor(e,r=”“){super({code:t.ERROR_CODES.REMOTE_SERVICE_ERROR,message:r}),this.response=e}};t.InvalidDIDError=class extends n{constructor(e=”“){super({code:”invalid_did_error“,message:e}),this.name=”InvalidDIDError“}};t.NotEnoughFundsError=class extends n{constructor(e){const t=`Not enough UTXOs to fund. Left to fund: ${e}`;super({code:”not_enough_error“,message:t}),this.leftToFund=e,this.name=”NotEnoughFundsError“,this.message=t}};t.InvalidAmountError=class extends n{constructor(e,t){const r=`Not enough coin to fund fees transaction fees. Fees would be ${e},`+` specified spend is ${t}`;super({code:”invalid_amount_error“,message:r}),this.specifiedAmount=t,this.fees=e,this.name=”InvalidAmountError“,this.message=r}};t.LoginFailedError=class extends n{constructor(e){const t=`Failed to login: ${e}`;super({code:”login_failed“,message:t}),this.message=t,this.name=”LoginFailedError“}};t.SignatureVerificationError=class extends n{constructor(e){const t=`Failed to verify signature: ${e}`;super({code:”signature_verification_failure“,message:t}),this.message=t,this.name=”SignatureVerificationError“}};t.InvalidStateError=class extends n{constructor(e){super({code:t.ERROR_CODES.INVALID_STATE,message:e}),this.message=e,this.name=”InvalidStateError“}};t.NoSessionDataError=class extends n{constructor(e){super({code:t.ERROR_CODES.INVALID_STATE,message:e}),this.message=e,this.name=”NoSessionDataError“}}},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0});var n=r(222);Object.defineProperty(t,”TokenSigner“,{enumerable:!0,get:function(){return n.TokenSigner}}),Object.defineProperty(t,”createUnsecuredToken“,{enumerable:!0,get:function(){return n.createUnsecuredToken}});var i=r(379);Object.defineProperty(t,”TokenVerifier“,{enumerable:!0,get:function(){return i.TokenVerifier}});var o=r(380);Object.defineProperty(t,”decodeToken“,{enumerable:!0,get:function(){return o.decodeToken}});var a=r(69);Object.defineProperty(t,”MissingParametersError“,{enumerable:!0,get:function(){return a.MissingParametersError}}),Object.defineProperty(t,”InvalidTokenError“,{enumerable:!0,get:function(){return a.InvalidTokenError}});var s=r(81);Object.defineProperty(t,”SECP256K1Client“,{enumerable:!0,get:function(){return s.SECP256K1Client}}),Object.defineProperty(t,”cryptoClients“,{enumerable:!0,get:function(){return s.cryptoClients}})},function(e,t,r){”use strict“;(function(t,n){var i=65536,o=4294967295;var a=r(2).Buffer,s=t.crypto||t.msCrypto;s&&s.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError(”requested too many random bytes“);var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},function(e,t,r){(function(t){var n=r(4),i=new(0,r(9).ec)(”secp256k1“),o=r(381),a=t.alloc(32,0),s=t.from(”fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141“,”hex“),u=t.from(”fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f“,”hex“),c=i.curve.n,f=c.shrn(1),l=i.curve.g,h=”Expected Private“,d=”Expected Point“,p=”Expected Tweak“,b=”Expected Hash“,y=”Expected Signature“;function m(e){return t.isBuffer(e)&&32===e.length}function g(e){return!!m(e)&&e.compare(s)<0}function v(e){if(!t.isBuffer(e))return!1;if(e.length<33)return!1;var r=e[0],n=e.slice(1,33);if(0===n.compare(a))return!1;if(n.compare(u)>=0)return!1;if((2===r||3===r)&&33===e.length)return!0;var i=e.slice(33);return 0!==i.compare(a)&&(!(i.compare(u)>=0)&&(4===r&&65===e.length))}function _(e){return 4!==e[0]}function w(e){return!!m(e)&&(e.compare(a)>0&&e.compare(s)<0)}function S(e,t){return void 0===e&&void 0!==t?_(t):void 0===e||e}function k(e){return new n(e)}function x(e){return e.toArrayLike(t,"be",32)}function E(e){return i.curve.decodePoint(e)}function A(e,r){return t.from(e._encode(r))}e.exports={isPoint:v,isPointCompressed:function(e){return!!v(e)&&_(e)},isPrivate:w,pointAdd:function(e,t,r){if(!v(e))throw new TypeError(d);if(!v(t))throw new TypeError(d);var n=E(e),i=E(t),o=n.add(i);return o.isInfinity()?null:A(o,S(r,e))},pointAddScalar:function(e,t,r){if(!v(e))throw new TypeError(d);if(!g(t))throw new TypeError(p);var n=S(r,e),i=E(e);if(0===t.compare(a))return A(i,n);var o=k(t),s=l.mul(o),u=i.add(s);return u.isInfinity()?null:A(u,n)},pointCompress:function(e,t){if(!v(e))throw new TypeError(d);var r=E(e);if(r.isInfinity())throw new TypeError(d);return A(r,t)},pointFromScalar:function(e,t){if(!w(e))throw new TypeError(h);var r=k(e),n=l.mul(r);return n.isInfinity()?null:A(n,S(t))},pointMultiply:function(e,t,r){if(!v(e))throw new TypeError(d);if(!g(t))throw new TypeError(p);var n=S(r,e),i=E(e),o=k(t),a=i.mul(o);return a.isInfinity()?null:A(a,n)},privateAdd:function(e,t){if(!w(e))throw new TypeError(h);if(!g(t))throw new TypeError(p);var r=k(e),n=k(t),i=x(r.add(n).umod(c));return w(i)?i:null},privateSub:function(e,t){if(!w(e))throw new TypeError(h);if(!g(t))throw new TypeError(p);var r=k(e),n=k(t),i=x(r.sub(n).umod(c));return w(i)?i:null},sign:function(e,r){if(!m(e))throw new TypeError(b);if(!w(r))throw new TypeError(h);var n,i,a=k(r),s=k(e);o(e,r,function(e){var t=k(e),r=l.mul(t);return!r.isInfinity()&&0!==(n=r.x.umod(c)).isZero()&&0!==(i=t.invm(c).mul(s.add(a.mul(n))).umod(c)).isZero()},w),i.cmp(f)>0&&(i=c.sub(i));var u=t.allocUnsafe(64);return x(n).copy(u,0),x(i).copy(u,32),u},verify:function(e,r,n){if(!m(e))throw new TypeError(b);if(!v®)throw new TypeError(d);if(!function(e){var r=e.slice(0,32),n=e.slice(32,64);return t.isBuffer(e)&&64===e.length&&r.compare(s)<0&&n.compare(s)<0}(n))throw new TypeError(y);var i=E(r),o=k(n.slice(0,32)),a=k(n.slice(32,64));if(o.gtn(0)<=0)return!1;if(a.gtn(0)<=0)return!1;var u=k(e),f=a.invm(c),h=u.mul(f).umod(c),p=o.mul(f).umod(c),g=l.mulAdd(h,i,p);return!g.isInfinity()&&g.x.umod(c).eq(o)}}}).call(this,r(1).Buffer)},function(e,t){e.exports={prop:function(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=r.call(this);return this[t]=e,e},set:function(e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e,writable:!0})}})},value:function(e){var t;return function(){return void 0!==t?t:t=e()}}}},function(e,t,r){var n=e.exports;[r(438),r(442),r(443),r(444),r(445),r(446)].forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t].bind(n)})})},function(e,t,r){(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(8),o=u.X64Word,a=u.X64WordArray,n=r(21).Hasher,e=function(){function e(){this.K=this.convert([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]),this.I=new a(this.convert([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])),this.W=function(){var e,t;for(t=[],e=0;e<80;++e)t.push(new o(0,0));return t}()}return e.convert=function(e){var t,r,n,i;for(i=[],t=r=0,n=e.length;r>>1|(te=Q.low)<<31)^(ee>>>8|te<<24)^ee>>>7,Y=(te>>>1|ee<<31)^(te>>>8|ee<<24)^(te>>>7|ee<<25),re=((oe=(ie=j[le-2]).high)>>>19|(ae=ie.low)<<13)^(oe<<3|ae>>>29)^oe>>>6,ne=(ae>>>19|oe<<13)^(ae<<3|oe>>>29)^(ae>>>6|oe<<26),C=(C=(C=J+(D=j[le-7]).high+((N=Y+D.low)>>>0>>0?1:0))re
((N+=ne)>>>0>>0?1:0))+(I=j[le-16]).high+((N+=B=I.low)>>>0>>0?1:0),M.high=C,M.low=N),q=G&X^~G&se,H=W&Z^~W&ue,he=U&F^U&L^F&L,de=R&z^R&$^z&$,pe=(U>>>28|R<<4)^(U<<30|R>>>2)^(U<<25|R>>>7),be=(R>>>28|U<<4)^(R<<30|U>>>2)^(R<<25|U>>>7),ye=ce+((G>>>14|W<<18)^(G>>>18|W<<14)^(G<<23|W>>>9))+((me=fe+((W>>>14|G<<18)^(W>>>18|G<<14)^(W<<23|G>>>9)))>>>0>>0?1:0),ce=se,fe=ue,se=X,ue=Z,X=G,Z=W,G=K+(ye=(ye=(ye=ye+q+((me+=H)>>>0>>0?1:0))+(O=s.K[le]).high+((me+=T=O.low)>>>0>>0?1:0))C
((me+=N)>>>0>>0?1:0))+((W=V+me|0)>>>0>>0?1:0)|0,K=L,V=$,L=F,$=z,F=U,z=R,U=ye+(pe+he+((ge=be+de)>>>0>>0?1:0))+((R=me+ge|0)>>>0>>0?1:0)|0;return o=n.low=o+R,n.high=i+U+(o>>>0>>0?1:0),c=a.low=c+z,a.high=u+F+(c>>>0>>0?1:0),h=f.low=h+$,f.high=l+L+(h>>>0<$>>>0?1:0),b=d.low=b+V,d.high=p+K+(b>>>0>>0?1:0),g=y.low=g+W,y.high=m+G+(g>>>0>>0?1:0),w=v.low=w+Z,v.high=_X
(w>>>0>>0?1:0),x=S.low=x+ue,S.high=k+se+(x>>>0>>0?1:0),P=E.low=P+fe,E.high=A+ce+(P>>>0>>0?1:0)},t.prototype._doFinalize=function(){var e,t,r;return e=this._data.words,r=8*this._nDataBytes,e[(t=8*this._data.sigBytes)>>>5]|=128<<24-t%32,e[30+(t+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(t+128>>>10<<5)]=r,this._data.sigBytes=4*e.length,this._process(),this._hash.toX32()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),t.transform=function(e){var t;return t=(new i).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){var n=r(2).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error(”_update must be implemented by subclass“)},e.exports=i},function(e,t,r){”use strict“;(function(e){Object.defineProperty(t,”__esModule“,{value:!0});const n=r(31),i=r(23);function o(e){return e||(e=32),n.randomBytes(e)}t.getEntropy=o,t.makeECPrivateKey=function(){return i.ECPair.makeRandom({rng:o}).privateKey.toString(”hex“)},t.publicKeyToAddress=function(t){const r=e.from(t,”hex“),n=i.crypto.hash160®;return i.address.toBase58Check(n,0)},t.getPublicKeyFromPrivate=function(t){return i.ECPair.fromPrivateKey(e.from(t,”hex“)).publicKey.toString(”hex“)}}).call(this,r(1).Buffer)},function(e,t){e.exports={Text:”text“,Directive:”directive“,Comment:”comment“,Script:”script“,Style:”style“,Tag:”tag“,CDATA:”cdata“,Doctype:”doctype“,isTag:function(e){return”tag“===e.type||”script“===e.type||”style“===e.type}}},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),r(79);const n=r(207);t.Service=class{static validateProof(e,t,r=null){let i;return Promise.resolve().then(()=>(i=this.getProofUrl(e),fetch(i))).then(e=>{if(200!==e.status)throw new Error(`Proof url ${i} returned unexpected http status ${e.status}.n Unable to validate proof.`);return e.text()}).then(i=>{if(this.shouldValidateIdentityInBody()&&e.identifier!==this.getProofIdentity(i))return e;const o=this.getProofStatement(i);return e.valid=n.containsValidProofStatement(o,r)||n.containsValidAddressProofStatement(o,t),e}).catch(t=>(console.error(t),e.valid=!1,e))}static getBaseUrls(){return[]}static getProofIdentity(e){return e}static getProofStatement(e){return e}static shouldValidateIdentityInBody(){return!1}static prefixScheme(e){return e.startsWith(”https://“)||e.startsWith(”http://“)?e.startsWith(”http://“)?e.replace(”http://“,”https://“):e:`https://${e}`}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=this.prefixScheme®;for(let n=0;nthis.hasherBlockSizeBytes&&(this.key=this.hasher.finalize(this.key)),this.key.clamp(),this._oKey=this.key.clone(),this._iKey=this.key.clone(),r=n=0,o=this.hasherBlockSize;0<=o?no;r=0<=o?++n:--n)this._oKey.words[r]^=1549556828,this._iKey.words[r]^=909522486;this._oKey.sigBytes=this._iKey.sigBytes=this.hasherBlockSizeBytes,this.reset()}return e.outputSize=64,e.prototype.outputSize=e.outputSize,e.prototype.get_output_size=function(){return this.hasher.output_size},e.prototype.reset=function(){return this.hasher.reset().update(this._iKey)},e.prototype.update=function(e){return this.hasher.update(e),this},e.prototype.finalize=function(e){var t,r,n;return t=this.hasher.finalize(e),this.hasher.reset(),r=this._oKey.clone().concat(t),n=this.hasher.finalize(r),t.scrub(),r.scrub(),n},e.prototype.scrub=function(){return this.key.scrub(),this._iKey.scrub(),this._oKey.scrub()},e}(),s=function(t){var r,n,i,o,a;return o=t.key,i=t.input,n=t.hash_class,a=(r=new e(o,n)).finalize(i.clamp()),r.scrub(),a},o=function(t,r){var n,i,o,s,c,f,l,h,d,p;d=a.findDeferral(arguments),o=t.key,i=t.input,c=t.progress_hook,s=t.klass,h=t.what,s||(s=e),h||(h="hmac_sha512"),n=new s(o),i.clamp(),l={update:function(e,t){return n.update(i.slice(e,t))},finalize:function(){return n.finalize()},default_n:1e3*n.hasherBlockSize},function(e){p=new a.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/triplesec/src/hmac.iced"}),u.bulk(i.sigBytes,l,{what:h,progress_hook:c,cb:p.defer({assign_fn:function(){return f=arguments[0]},lineno:137})}),p._fulfill()}(function(){return n.scrub(),r(f)})},t.HMAC_SHA256=function(t){function r(e){r.__super__.constructor.call(this,e,n)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r}(),t.HMAC=e,t.sign=s,t.bulk_sign=o}).call(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCKSTACK_HANDLER="blockstack",t.BLOCKSTACK_STORAGE_LABEL="blockstack",t.DEFAULT_BLOCKSTACK_HOST="https://browser.blockstack.org/auth",t.DEFAULT_SCOPE=["store_write"],t.BLOCKSTACK_APP_PRIVATE_KEY_LABEL="blockstack-transit-private-key",t.BLOCKSTACK_DEFAULT_GAIA_HUB_URL="https://hub.blockstack.org",t.DEFAULT_CORE_NODE="https://core.blockstack.org",t.NAME_LOOKUP_PATH="/v1/names",t.LOCALSTORAGE_SESSION_KEY="blockstack-session"},function(e,t,r){"use strict";var n=r(18),i=r(11);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this.e,=0|this._a,w=0|this._b,S=0|this._c,k=0|this._d,x=0|this._e,E=0;E<80;E+=1){var A,P;E<16?(A=b(r,n,i,o,d,e[s[E]],l[0],c[E]),P=v(_,w,S,k,x,e[u[E]],h[0],f[E])):E<32?(A=y(r,n,i,o,d,e[s[E]],l[1],c[E]),P=g(_,w,S,k,x,e[u[E]],h[1],f[E])):E<48?(A=m(r,n,i,o,d,e[s[E]],l[2],c[E]),P=m(_,w,S,k,x,e[u[E]],h[2],f[E])):E<64?(A=g(r,n,i,o,d,e[s[E]],l[3],c[E]),P=y(_,w,S,k,x,e[u[E]],h[3],f[E])):(A=v(r,n,i,o,d,e[s[E]],l[4],c[E]),P=b(_,w,S,k,x,e[u[E]],h[4],f[E])),r=d,d=o,o=p(i,10),i=n,n=A,_=x,x=k,k=p(S,10),S=w,w=P}var O=this._b+i+k|0;this._b=this._c+o+x|0,this._c=this._d+d+_|0,this._d=this._e+r+w|0,this._e=this._a+n+S|0,this._a=O},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o)[^>]*$|#([w-]*)$)/;t.isHtml=function(e){if(”<"===e.charAt(0)&&">“===e.charAt(e.length-1)&&e.length>=3)return!0;var t=a.exec(e);return!(!t||!t[1])}},function(e,t){e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(e,t,r){(function(e){(function(){var n,i,o,a,s,u,c,f,l,h,d,p,b,y={}.hasOwnProperty,m=function(e,t){for(var r in t)y.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};d=r(12),b=r(8),l=b.endian_reverse,c=b.WordArray,i=r(77).Counter,h=r(13).fixup_uint32,u=r(21).StreamCipher,p=r(13),f=function(e,t){var r,n,i,o;for(n=i=0,o=t.length;i>>25)+r|0)<<9|t>>>23)+h|0)<<13|t>>>19)+y|0)<<18|t>>>14,d^=(t=(n^=(t=(s^=(t=(m^=(t=d+n|0)<<7|t>>>25)+d|0)<<9|t>>>23)+m|0)<<13|t>>>19)+s|0)<<18|t>>>14,i^=(t=(p^=(t=(f^=(t=(u^=(t=i+p|0)<<7|t>>>25)+i|0)<<9|t>>>23)+u|0)<<13|t>>>19)+f|0)<<18|t>>>14,c^=(t=(o^=(t=(b^=(t=(l^=(t=c+o|0)<<7|t>>>25)+c|0)<<9|t>>>23)+l|0)<<13|t>>>19)+b|0)<<18|t>>>14,r^=(t=(l^=(t=(f^=(t=(n^=(t=r+l|0)<<7|t>>>25)+r|0)<<9|t>>>23)+n|0)<<13|t>>>19)+f|0)<<18|t>>>14,d^=(t=(h^=(t=(b^=(t=(p^=(t=d+h|0)<<7|t>>>25)+d|0)<<9|t>>>23)+p|0)<<13|t>>>19)+b|0)<<18|t>>>14,i^=(t=(m^=(t=(y^=(t=(o^=(t=i+m|0)<<7|t>>>25)+i|0)<<9|t>>>23)+o|0)<<13|t>>>19)+y|0)<<18|t>>>14,c^=(t=(u^=(t=(s^=(t=(a^=(t=c+u|0)<<7|t>>>25)+c|0)<<9|t>>>23)+a|0)<<13|t>>>19)+s|0)<<18|t>>>14;return[r,n,f,l,h,d,p,b,y,m,i,o,a,s,u,c]},e}(),o=function(t){function r(e,t){var n;if(r.__super__.constructor.call(this,20),this.key=e.clone().endian_reverse(),this.nonce=t.clone().endian_reverse(),(16!==this.key.sigBytes||8!==this.nonce.sigBytes)&&(32!==this.key.sigBytes||8!==(n=this.nonce.sigBytes)&&24!==n))throw new Error(”Bad key/nonce lengths“);24===this.nonce.sigBytes&&this.xsalsa_setup(),this.input=this.key_iv_setup(this.nonce,this.key),this._reset()}return m(r,a),r.prototype.sigma=c.from_buffer_le(new e(”expand 32-byte k“)),r.prototype.tau=c.from_buffer_le(new e(”expand 16-byte k“)),r.blockSize=64,r.prototype.blockSize=r.blockSize,r.keySize=32,r.prototype.keySize=r.keySize,r.ivSize=24,r.prototype.ivSize=r.ivSize,r.prototype.scrub=function(){return this.key.scrub(),this.nonce.scrub(),p.scrub_vec(this.input)},r.prototype.xsalsa_setup=function(){var e;return e=new c(this.nonce.words.slice(0,4)),this.nonce=new c(this.nonce.words.slice(4)),this.key=this.hsalsa20(e,this.key)},r.prototype.hsalsa20=function(e,t){var r,n,i,o;return(i=this.key_iv_setup(e,t))[8]=e.words[2],i[9]=e.words[3],o=this._core(i),n=[0,5,10,15,6,7,8,9],o=function(){var e,t,i;for(i=[],e=0,t=n.length;en;r=0<=n?++e:--e)t.push(this._generateBlock());return t}.call(this),o=(u=[]).concat.apply(u,t)),r=a=0,s=o.length;a0;)this._i===r&&(this._generateBlockBuffer(),this._i=0),n=Math.min(t,r-this._i),i.push(n===r?this._buf:this._buf.slice(this._i,this._i+n)),this._i+=n,t-=n;return e.concat(i)},r.prototype._generateBlockBuffer=function(){var t,r,n,i,o;for(this._buf=new e(this.blockSize),r=i=0,o=(n=this._generateBlock()).length;i{const t=”undefined“!=typeof window&&window.location&&window.location.origin;if(!t){const t=``makeAuthRequest` called without the `${e}` param specified but`+” the default value uses `window.location.origin` which is not available in this environment“;throw u.Logger.error(t),new Error(t)}return t};t||(t=`${b(”redirectURI“)}/`),r||(r=`${b(”manifestURI“)}/manifest.json`),h||(h=b(”appDomain“));const y=Object.assign({},p,{jti:o.makeUUID4(),iat:Math.floor((new Date).getTime()/1e3),exp:Math.floor(d/1e3),iss:null,public_keys:[],domain_name:h,manifest_uri:r,redirect_uri:t,version:l,do_not_include_profile:!0,supports_hub_url:!0,scopes:s});u.Logger.info(`blockstack.js: generating v${l} auth request`);const m=n.SECP256K1Client.derivePublicKey(e);y.public_keys=[m];const g=i.publicKeyToAddress(m);return y.iss=a.makeDIDFromAddress(g),new n.TokenSigner(”ES256k“,e).sign(y)},t.encryptPrivateKey=h,t.decryptPrivateKey=function(t,r){const n=e.from(r,”hex“).toString(),i=JSON.parse(n),o=s.decryptECIES(t,i);if(”string“!=typeof o)throw new Error(”Unable to correctly decrypt private key“);return o},t.makeAuthResponse=function(e,t={},r=null,s,c=null,f=null,d=o.nextMonth().getTime(),p=null,b=null,y=null,m=null){const g=n.SECP256K1Client.derivePublicKey(e),v=i.publicKeyToAddress(g);let _=f,w=c,S={};null!=f?(u.Logger.info(`blockstack.js: generating v${l} auth response`),null!=p&&(_=h(p,f),null!=c&&(w=h(p,c))),S={email:s.email?s.email:null,profile_url:s.profileUrl?s.profileUrl:null,hubUrl:b,blockstackAPIUrl:y,associationToken:m,version:l}):u.Logger.info(”blockstack.js: generating legacy auth response“);const k=Object.assign({},{jti:o.makeUUID4(),iat:Math.floor((new Date).getTime()/1e3),exp:Math.floor(d/1e3),iss:a.makeDIDFromAddress(v),private_key:_,public_keys:[g],profile:t,username:r,core_token:w},S);return new n.TokenSigner(”ES256k“,e).sign(k)}}).call(this,r(1).Buffer)},function(e,t,r){”use strict“;var n=t;n.base=r(230),n.short=r(231),n.mont=r(232),n.edwards=r(233)},function(e,t,r){”use strict“;function n(e){return(n=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:typeof e})(e)}var i,o=”object“===(”undefined“==typeof Reflect?”undefined“:n(Reflect))?Reflect:null,a=o&&”function“==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=o&&”function“==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function l(e,t,r,i){var o,a,s,u;if(”function“!=typeof r)throw new TypeError(‘The ”listener“ argument must be of type Function. Received type ’+n®);if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit(”newListener“,t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if(”function“==typeof s?s=a[t]=i?[r,s]:[s,r]:i?s.unshift®:s.push®,(o=f(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error(”Possible EventEmitter memory leak detected. “s.length
” “+String(t)+” listeners added. Use emitter.setMaxListeners() to increase limit“);c.name=”MaxListenersExceededWarning“,c.emitter=e,c.type=t,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return e}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;te”.“);c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if(”number“!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received 'e
”.“);return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],r=1;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error(”Unhandled error.“+(o?” (“o.message
”)“:”“));throw s.context=o,s}var u=i[e];if(void 0===u)return!1;if(”function“==typeof u)a(u,this,t);else{var c=u.length,f=b(u,c);for(r=0;r=0;a–)if(r[a]===t||r[a].listener===t){s=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n–)this.removeListener(e,t[n]);return this},u.prototype.listeners=function(e){return d(this,e,!0)},u.prototype.rawListeners=function(e){return d(this,e,!1)},u.listenerCount=function(e,t){return”function“==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},u.prototype.listenerCount=p,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){”use strict“;(function(t){!t.version||0===t.version.indexOf(”v0.“)||0===t.version.indexOf(”v1.“)&&0!==t.version.indexOf(”v1.8.“)?e.exports={nextTick:function(e,r,n,i){if(”function“!=typeof e)throw new TypeError(‘”callback“ argument must be a function’);var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,”�“;if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,”�“;if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,”�“}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(–n=0)return i>0&&(e.lastNeed=i-2),i;if(–n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString(”utf8“,t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString(”utf8“,t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";var n=r(3),i=r(263),o=r(27),a=r(2).Buffer,s=r(137),u=r(46),c=r(88),f=a.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=(”rmd160“===e?new u:c(e)).update(t).digest():t.length>>24]^f[p>>>16&255]^l[b>>>8&255]^h[255&y]^t[m++],a=c[p>>>24]^f[b>>>16&255]^l[y>>>8&255]^h[255&d]^t[m++],s=c[b>>>24]^f[y>>>16&255]^l[d>>>8&255]^h[255&p]^t[m++],u=c[y>>>24]^f[d>>>16&255]^l[p>>>8&255]^h[255&b]^t[m++],d=o,p=a,b=s,y=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&y])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[y>>>8&255]<<8|n[255&d])^t[m++],s=(n[b>>>24]<<24|n[y>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[m++],u=(n[y>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var f=e[a],l=e[f],h=e[l],d=257*e[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*l^257*f^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=f^e[e[e[h^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],f=0;f>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,r){var n=r(2).Buffer,i=r(83);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,”binary“)),t&&(n.isBuffer(t)||(t=n.from(t,”binary“)),8!==t.length))throw new RangeError(”salt should be Buffer with 8 byte length“);for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var f=new i;f.update©,f.update(e),t&&f.update(t),c=f.digest();var l=0;if(a>0){var h=s.length-a;l=Math.min(a,c.length),c.copy(s,h,0,l),a-=l}if(l0){var d=u.length-o,p=Math.min(o,c.length-l);c.copy(u,d,l,l+p),o-=p}}return c.fill(0),{key:s,iv:u}}},function(e,t,r){function n(e){return(n=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:typeof e})(e)}var i=r(288),o=r(299),a=r(300),s=r(91),u=r(89),c=r(2).Buffer;function f(e){var t;”object“!==n(e)||c.isBuffer(e)||(t=e.passphrase,e=e.key),”string“==typeof e&&(e=c.from(e));var r,f,l=a(e,t),h=l.tag,d=l.data;switch(h){case”CERTIFICATE“:f=i.certificate.decode(d,”der“).tbsCertificate.subjectPublicKeyInfo;case”PUBLIC KEY“:switch(f||(f=i.PublicKey.decode(d,”der“)),r=f.algorithm.algorithm.join(”.“)){case”1.2.840.113549.1.1.1“:return i.RSAPublicKey.decode(f.subjectPublicKey.data,”der“);case”1.2.840.10045.2.1“:return f.subjectPrivateKey=f.subjectPublicKey,{type:”ec“,data:f};case”1.2.840.10040.4.1“:return f.algorithm.params.pub_key=i.DSAparam.decode(f.subjectPublicKey.data,”der“),{type:”dsa“,data:f.algorithm.params};default:throw new Error(”unknown key id “+r)}throw new Error(”unknown key type “+h);case”ENCRYPTED PRIVATE KEY“:d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[e.algorithm.decrypt.cipher.algo.join(”.“)],a=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,l=parseInt(i.split(”-“)[1],10)/8,h=u.pbkdf2Sync(t,r,n,l,”sha1“),d=s.createDecipheriv(i,h,a),p=[];return p.push(d.update(f)),p.push(d.final()),c.concat(p)}(d=i.EncryptedPrivateKey.decode(d,”der“),t);case”PRIVATE KEY“:switch(r=(f=i.PrivateKey.decode(d,”der“)).algorithm.algorithm.join(”.“)){case”1.2.840.113549.1.1.1“:return i.RSAPrivateKey.decode(f.subjectPrivateKey,”der“);case”1.2.840.10045.2.1“:return{curve:f.algorithm.curve,privateKey:i.ECPrivateKey.decode(f.subjectPrivateKey,”der“).privateKey};case”1.2.840.10040.4.1“:return f.algorithm.params.priv_key=i.DSAparam.decode(f.subjectPrivateKey,”der“),{type:”dsa“,params:f.algorithm.params};default:throw new Error(”unknown key id “+r)}throw new Error(”unknown key type “+h);case”RSA PUBLIC KEY“:return i.RSAPublicKey.decode(d,”der“);case”RSA PRIVATE KEY“:return i.RSAPrivateKey.decode(d,”der“);case”DSA PRIVATE KEY“:return{type:”dsa“,params:i.DSAPrivateKey.decode(d,”der“)};case”EC PRIVATE KEY“:return{curve:(d=i.ECPrivateKey.decode(d,”der“)).parameters.value,privateKey:d.privateKey};default:throw new Error(”unknown key type “+h)}}e.exports=f,f.signature=i.signature},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”“;(0,i.default)(t);r=String®;if(!r)return e(t,4)||e(t,6);if(”4“===r){if(!o.test(t))return!1;var n=t.split(”.“).sort(function(e,t){return e-t});return n[3]<=255}if("6"===r){var s=t.split(":"),u=!1,c=e(s[s.length-1],4),f=c?7:8;if(s.length>f)return!1;if(”::“===t)return!0;”::“===t.substr(0,2)?(s.shift(),s.shift(),u=!0):”::“===t.substr(t.length-2)&&(s.pop(),s.pop(),u=!0);for(var l=0;l0&&l=1:s.length===f}return!1};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(d{1,3}).(d{1,3}).(d{1,3}).(d{1,3})$/,a=/^[0-9A-F]{1,4}$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.commaDecimal=t.dotDecimal=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var n={”en-US“:/^[A-Z]+$/i,”bg-BG“:/^[А-Я]+$/i,”cs-CZ“:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,”da-DK“:/^[A-ZÆØÅ]+$/i,”de-DE“:/^[A-ZÄÖÜß]+$/i,”el-GR“:/^[Α-ω]+$/i,”es-ES“:/^[A-ZÁÉÍÑÓÚÜ]+$/i,”fr-FR“:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,”it-IT“:/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,”nb-NO“:/^[A-ZÆØÅ]+$/i,”nl-NL“:/^[A-ZÁÉËÏÓÖÜÚ]+$/i,”nn-NO“:/^[A-ZÆØÅ]+$/i,”hu-HU“:/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,”pl-PL“:/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,”pt-PT“:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,”ru-RU“:/^[А-ЯЁ]+$/i,”sl-SI“:/^[A-ZČĆĐŠŽ]+$/i,”sk-SK“:/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,”sr-RS@latin“:/^[A-ZČĆŽŠĐ]+$/i,”sr-RS“:/^[А-ЯЂЈЉЊЋЏ]+$/i,”sv-SE“:/^[A-ZÅÄÖ]+$/i,”tr-TR“:/^[A-ZÇĞİıÖŞÜ]+$/i,”uk-UA“:/^[А-ЩЬЮЯЄIЇҐі]+$/i,”ku-IQ“:/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};t.alpha=n;var i={”en-US“:/^[0-9A-Z]+$/i,”bg-BG“:/^[0-9А-Я]+$/i,”cs-CZ“:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,”da-DK“:/^[0-9A-ZÆØÅ]+$/i,”de-DE“:/^[0-9A-ZÄÖÜß]+$/i,”el-GR“:/^[0-9Α-ω]+$/i,”es-ES“:/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,”fr-FR“:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,”it-IT“:/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,”hu-HU“:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,”nb-NO“:/^[0-9A-ZÆØÅ]+$/i,”nl-NL“:/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,”nn-NO“:/^[0-9A-ZÆØÅ]+$/i,”pl-PL“:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,”pt-PT“:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,”ru-RU“:/^[0-9А-ЯЁ]+$/i,”sl-SI“:/^[0-9A-ZČĆĐŠŽ]+$/i,”sk-SK“:/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,”sr-RS@latin“:/^[0-9A-ZČĆŽŠĐ]+$/i,”sr-RS“:/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,”sv-SE“:/^[0-9A-ZÅÄÖ]+$/i,”tr-TR“:/^[0-9A-ZÇĞİıÖŞÜ]+$/i,”uk-UA“:/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,”ku-IQ“:/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};t.alphanumeric=i;var o={”en-US“:”.“,ar:”٫“};t.decimal=o;var a=[”AU“,”GB“,”HK“,”IN“,”NZ“,”ZA“,”ZM“];t.englishLocales=a;for(var s,u=0;u{let c=null;try{(c=n.parseZoneFile(e)).hasOwnProperty(”$origin“)||(c=null)}catch(e){u(e)}let f=null;if(c&&Object.keys©.length>0)(f=s©)?fetch(f).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{const n=e,o=i.extractProfile(n[0].token,t);r(o)}).catch(e=>{a.Logger.error(`resolveZoneFileToProfile: error fetching token file ${f}: ${e}`),u(e)}):(a.Logger.debug(”Token file url not found. Resolving to blank profile.“),r({}));else{let t=null;try{t=JSON.parse(e),t=o.Person.fromLegacyFormat(t).profile()}catch(e){u(e)}r(t)}})}},function(e,t,r){e.exports=r(432)},function(e,t,r){”use strict“;var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,”__esModule“,{value:!0});const i=n(r(73)),o=r(30),a=r(193),s=r(72),u={type:”object“,properties:{”@context“:{type:”string“,optional:!0},”@type“:{type:”string“}}};class c{constructor(e={}){this._profile=Object.assign({},{”@context“:”http://schema.org/“},e)}toJSON(){return Object.assign({},this._profile)}toToken(e){return o.signProfileToken(this.toJSON(),e)}static validateSchema(e,t=!1){return u.strict=t,i.default.validate(u,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new c®}static makeZoneFile(e,t){return s.makeProfileZoneFile(e,t)}static validateProofs(e){return a.validateProofs((new c).toJSON(),e)}}t.Profile=c},function(e,t,r){(function(n){var i=r(54);(t=e.exports=function(e,r){var n=t.evaluate(e,r),i=t.evaluate(”“,r)[0];return i.type=”root“,t.update(n,i),i}).evaluate=function(e,t){return”string“==typeof e||n.isBuffer(e)?i.parseDOM(e,t):e},t.update=function(e,t){Array.isArray(e)||(e=[e]),t?t.children=e:t=null;for(var r=0;r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=r(e);return!!e&&("object"==t||"function"==t)}(e)?d.call(e):"";return t==o||t==a}(e)}function E(e){return x(e)?y(e):w(e)}function A(e){return e}e.exports=function(e,t){return(k(e)?u:v)(e,"function"==typeof t?t:A)}},function(e,t,r){(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(12),o=r(8).WordArray,i=r(21).StreamCipher,n=function(){function e(e){var t,r;r=e.value,t=e.len,this._value=null!=r?r.clone():(null==t&&(t=2),new o(function(){var e,r;for(r=[],e=0;0<=t?et;0<=t?++e:--e)r.push(0);return r}()))}return e.prototype.WORD_MAX=4294967295,e.prototype.inc=function(){var t,r;for(t=!0,r=this._value.words.length-1;t&&r>=0;)++this._value.words[r]>e.WORD_MAX?this._value.words[r]=0:t=!1,r–;return this},e.prototype.inc_le=function(){var t,r;for(t=!0,r=0;t&&re.WORD_MAX?this._value.words[r]=0:t=!1,r++;return this},e.prototype.get=function(){return this._value},e.prototype.copy=function(){return this._value.clone()},e}(),e=function(e){function t(e){if(this.block_cipher=e.block_cipher,this.iv=e.iv,t.__super__.constructor.call(this),this.bsiw=this.block_cipher.blockSize/4,this.iv.sigBytes!==this.block_cipher.blockSize)throw new Error(”IV is wrong length (“this.iv.sigBytes
”)“);this.ctr=new n({value:this.iv})}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,i),t.prototype.scrub=function(){return this.block_cipher.scrub()},t.prototype.get_pad=function(){var e;return e=this.ctr.copy(),this.ctr.inc(),this.block_cipher.encryptBlock(e.words),e},t}(),s=function(t){var r,n,i,o,a;return r=t.block_cipher,o=t.iv,i=t.input,a=(n=new e({block_cipher:r,iv:o})).encrypt(i),n.scrub(),a},a=function(t,r){var n,i,o,a,s,c,f,l,h;l=u.findDeferral(arguments),n=t.block_cipher,a=t.iv,o=t.input,s=t.progress_hook,f=t.what,i=new e({block_cipher:n,iv:a}),function(e){h=new u.Deferrals(e,{parent:l,filename:”/Users/max/src/keybase/triplesec/src/ctr.iced“}),i.bulk_encrypt({input:o,progress_hook:s,what:f},h.defer({assign_fn:function(){return c=arguments[0]},lineno:121})),h._fulfill()}(function(){return r©})},t.Counter=n,t.Cipher=e,t.encrypt=s,t.bulk_encrypt=a}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s,u,c,f,l={}.hasOwnProperty,h=function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};f=r(42),i=f.HMAC,c=f.bulk_sign,a=r(37).SHA512,o=r(119).SHA3,s=r(8).WordArray,e=function(){function e(){this.hasherBlockSize=this.hashers[0].hasherBlockSize,this.hasherBlockSizeBytes=4*this.hasherBlockSize,this.reset()}return e.prototype.reset=function(){var e,t,r;for(e=0,t=(r=this.hashers).length;e-1};f.prototype.append=function(e,t){e=s(e),t=u(t);var r=this.map[e];this.map[e]=r?r+”,“+t:t},f.prototype.delete=function(e){delete this.map[s(e)]},f.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},f.prototype.set=function(e,t){this.map[s(e)]=u(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty®&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push®}),c(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},t.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var o=[”DELETE“,”GET“,”HEAD“,”OPTIONS“,”POST“,”PUT“];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},b.call(y.prototype),b.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:”“});return e.type=”error“,e};var a=[301,302,303,307,308];g.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError(”Invalid status code“);return new g(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=y,e.Response=g,e.fetch=function(e,r){return new Promise(function(n,i){var o=new y(e,r),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||”“,t=new f,e.replace(/r?n[t ]+/g,” “).split(/r?n/).forEach(function(e){var r=e.split(”:“),n=r.shift().trim();if(n){var i=r.join(”:“).trim();t.append(n,i)}}),t)};r.url=”responseURL“in a?a.responseURL:r.headers.get(”X-Request-URL“);var i=”response“in a?a.response:a.responseText;n(new g(i,r))},a.onerror=function(){i(new TypeError(”Network request failed“))},a.ontimeout=function(){i(new TypeError(”Network request failed“))},a.open(o.method,o.url,!0),”include“===o.credentials?a.withCredentials=!0:”omit“===o.credentials&&(a.withCredentials=!1),”responseType“in a&&t.blob&&(a.responseType=”blob“),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}function s(e){if(”string“!=typeof e&&(e=String(e)),/[^a-z0-9-#$%&‘*+.^_`|~]/i.test(e))throw new TypeError(”Invalid character in header field name“);return e.toLowerCase()}function u(e){return”string“!=typeof e&&(e=String(e)),e}function c(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError(”Already read“));e.bodyUsed=!0}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if(”string“==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&n(e))this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!i(e))throw new Error(”unsupported BodyInit type“);this._bodyArrayBuffer=p(e)}else this._bodyText=”“;this.headers.get(”content-type“)||(”string“==typeof e?this.headers.set(”content-type“,”text/plain;charset=UTF-8“):this._bodyBlob&&this._bodyBlob.type?this.headers.set(”content-type“,this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(”content-type“,”application/x-www-form-urlencoded;charset=UTF-8“))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(”could not read FormData body as blob“);return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=l(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,(”GET“===this.method||”HEAD“===this.method)&&i)throw new TypeError(”Body not allowed for GET or HEAD requests“);this._initBody(i)}function m(e){var t=new FormData;return e.trim().split(”&“).forEach(function(e){if(e){var r=e.split(”=“),n=r.shift().replace(/+/g,” “),i=r.join(”=“).replace(/+/g,” “);t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function g(e,t){t||(t={}),this.type=”default“,this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,r){e.exports=r(223).default,e.exports.default=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoClients=t.SECP256K1Client=void 0;var n=r(225),i={ES256K:n.SECP256K1Client};t.SECP256K1Client=n.SECP256K1Client,t.cryptoClients=i},function(e,t,r){var n=t;n.utils=r(18),n.common=r(44),n.sha=r(235),n.ripemd=r(239),n.hmac=r(240),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(3),i=r(130),o=r(2).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=f(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),r=l(r,n=f(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=h(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){e.exports=i;var n=r(60).EventEmitter;function i(){n.call(this)}r(3)(i,n),i.Readable=r(85),i.Writable=r(255),i.Duplex=r(256),i.Transform=r(257),i.PassThrough=r(258),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on(”data“,i),e.on(”drain“,o),e._isStdio||t&&!1===t.end||(r.on(”end“,s),r.on(”close“,u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,”function“==typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,”error“))throw e}function f(){r.removeListener(”data“,i),e.removeListener(”drain“,o),r.removeListener(”end“,s),r.removeListener(”close“,u),r.removeListener(”error“,c),e.removeListener(”error“,c),r.removeListener(”end“,f),r.removeListener(”close“,f),e.removeListener(”close“,f)}return r.on(”error“,c),e.on(”error“,c),r.on(”end“,f),r.on(”close“,f),e.on(”close“,f),e.emit(”pipe“,r),e}},function(e,t,r){(t=e.exports=r(131)).Stream=t,t.Readable=t,t.Writable=r(86),t.Duplex=r(32),t.Transform=r(134),t.PassThrough=r(254)},function(e,t,r){”use strict“;(function(t,n,i){var o=r(61);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb–,i®,n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,u=!t.browser&&[”v0.10“,”v0.9.“].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;g.WritableState=m;var c=r(45);c.inherits=r(3);var f={deprecate:r(253)},l=r(132),h=r(2).Buffer,d=i.Uint8Array||function(){};var p,b=r(133);function y(){}function m(e,t){s=s||r(32),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||”utf8“,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}®,t)!function(e,t,r,n,i){–t.pendingcb,r?(o.nextTick(i,n),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit(”error“,n)):(i(n),e._writableState.errorEmitted=!0,e.emit(”error“,n),x(e,t))}(e,r,n,t,i);else{var a=S®;a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?u(_,e,r,a,i):_(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(e){if(s=s||r(32),!(p.call(g,this)||this instanceof s))return new g(e);this._writableState=new m(e,this),this.writable=!0,e&&(”function“==typeof e.write&&(this._write=e.write),”function“==typeof e.writev&&(this._writev=e.writev),”function“==typeof e.destroy&&(this._destroy=e.destroy),”function“==typeof e.final&&(this._final=e.final)),l.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit(”drain“))}(e,t),t.pendingcb–,n(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,”“,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount–,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function®{t.pendingcb–,r&&e.emit(”error“,r),t.prefinished=!0,e.emit(”prefinish“),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||(”function“==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit(”prefinish“)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit(”finish“))),r}c.inherits(g,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,”buffer“,{get:f.deprecate(function(){return this.getBuffer()},”_writableState.buffer is deprecated. Use _writableState.getBuffer instead.“,”DEP0003“)})}catch(e){}}(),”function“==typeof Symbol&&Symbol.hasInstance&&”function“==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===g&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit(”error“,new Error(”Cannot pipe, not readable“))},g.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),”function“==typeof t&&(r=t,t=null),s?t=”buffer“:t||(t=i.defaultEncoding),”function“!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error(”write after end“);e.emit(”error“,r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError(”May not write null values to stream“):”string“==typeof r||void 0===r||t.objectMode||(a=new TypeError(”Invalid non-string/buffer chunk“)),a&&(e.emit(”error“,a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||”string“!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i=”buffer“,n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError(”Unknown encoding: “+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,”writableHighWaterMark“,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error(”_write() is not implemented“))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var n=this._writableState;”function“==typeof e?(r=e,e=null,t=null):”function“==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick®:e.once(”finish“,r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,”destroyed“,{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=b.destroy,g.prototype._undestroy=b.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(14),r(87).setImmediate,r(7))},function(e,t,r){(function(e){var n=void 0!==e&&e||”undefined“!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(252),t.setImmediate=”undefined“!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=”undefined“!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(7))},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+” is not supported (we accept pull requests)“);return new r}).sha=r(259),t.sha1=r(260),t.sha224=r(261),t.sha256=r(135),t.sha384=r(262),t.sha512=r(136)},function(e,t,r){t.pbkdf2=r(265),t.pbkdf2Sync=r(141)},function(e,t,r){”use strict“;t.utils=r(268),t.Cipher=r(269),t.DES=r(270),t.CBC=r(271),t.EDE=r(272)},function(e,t,r){var n=r(273),i=r(281),o=r(144);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(274),CBC:r(275),CFB:r(276),CFB8:r(277),CFB1:r(278),OFB:r(279),CTR:r(142),GCM:r(142)},i=r(144);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){(function(t){var n=r(4),i=r(26);function o(e,r){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}®,o=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=s.toRed(n.mont(r.prime1)),c=s.toRed(n.mont(r.prime2)),f=r.coefficient,l=r.prime1,h=r.prime2,d=u.redPow(r.exponent1),p=c.redPow(r.exponent2);d=d.fromRed(),p=p.fromRed();var b=d.isub(p).imul(f).umod(l);return b.imul(h),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=a}).call(this,r(1).Buffer)},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e){return(0,i.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;function n(e){return(n=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:typeof e})(e)}function i(e){return(i=”function“==typeof Symbol&&”symbol“===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:n(e)})(e)}Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e){”object“===i(e)&&null!==e?e=”function“==typeof e.toString?e.toString():”[object Object]“:(null==e||isNaN(e)&&!e.length)&&(e=”“);return String(e)},e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&”.“===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var r=e.split(”.“),o=0;o63)return!1;if(t.require_tld){var s=r.pop();if(!r.length||!/^([a-zu00a1-uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[su2002-u200Bu202Fu205Fu3000uFEFFuDB40uDC20]/.test(s))return!1}for(var u,c=0;c=this.ins.length)return y;var a=o.compile(o.decompile(t).filter(function(e){return e!==s.OP_CODESEPARATOR})),f=this.clone();if((31&r)===h.SIGHASH_NONE)f.outs=[],f.ins.forEach(function(t,r){r!==e&&(t.sequence=0)});else if((31&r)===h.SIGHASH_SINGLE){if(e>=this.outs.length)return y;f.outs.length=e+1;for(var l=0;l>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function u(e){for(var t=1,r=0;r126)throw new Error(”Invalid prefix (“e
”)“);t=s(t)^n>>5}for(t=s(t),r=0;r=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<=t)throw new Error(”Excess padding“);if(i<t)throw new TypeError(”Exceeds length limit“);var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)throw new Error(”Mixed-case string “+e);var o=(e=r).lastIndexOf(”1“);if(-1===o)throw new Error(”No separator character for “+e);if(0===o)throw new Error(”Missing prefix for “+e);var a=e.slice(0,o),c=e.slice(o+1);if(c.length<6)throw new Error("Data too short");for(var f=u(a),l=[],h=0;h=c.length||l.push(p)}if(1!==f)throw new Error(”Invalid checksum for “+e);return{prefix:a,words:l}},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError(”Exceeds length limit“);for(var i=u(e=e.toLowerCase()),o=e+”1“,a=0;a>5!=0)throw new Error(”Non 5-bit word“);i=s(i)^c,o+=n.charAt©}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){var f=i>>5*(5-a)&31;o+=n.charAt(f)}return o},toWords:function(e){return c(e,8,5,!0)},fromWords:function(e){return c(e,5,8,!1)}}},function(e,t,r){var n=r(393),i=r(394),o=r(395),a=r(396),s=r(397),u=r(398),c=r(399);e.exports={embed:n,p2ms:i,p2pk:o,p2pkh:a,p2sh:s,p2wpkh:u,p2wsh:c}},function(e,t,r){e.exports={input:r(401),output:r(402)}},function(e,t,r){e.exports={input:r(404),output:r(405)}},function(e,t,r){e.exports={input:r(406),output:r(407)}},function(e,t,r){”use strict“;(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,”__esModule“,{value:!0});const i=r(9),o=n(r(31)),a=r(39),s=new i.ec(”secp256k1“);function u(e,t){return o.default.createHmac(”sha256“,e).update(t).digest()}function c(e){const t=o.default.createHash(”sha512“).update(e).digest();return{encryptionKey:t.slice(0,32),hmacKey:t.slice(32)}}function f(e){const t=e.toString(”hex“);if(64===t.length)return t;if(t.length<64){return`${"0".repeat(64-t.length)}${t}`}throw new Error("Generated a > 32-byte BN for encryption. Failing.”)}t.getHexFromBN=f,t.encryptECIES=function(t,r){const n=“string”==typeof r,i=e.from®,a=s.keyFromPublic(t,“hex”).getPublic(),l=s.genKeyPair(),h=l.getPublic(),d=f(l.derive(a)),p=c(e.from(d,“hex”)),b=o.default.randomBytes(16),y=function(t,r,n){const i=o.default.createCipheriv(“aes-256-cbc”,r,t);return e.concat([i.update(n),i.final()])}(b,p.encryptionKey,i),m=e.concat([b,e.from(h.encodeCompressed()),y]),g=u(p.hmacKey,m);return{iv:b.toString(“hex”),ephemeralPK:h.encodeCompressed(“hex”),cipherText:y.toString(“hex”),mac:g.toString(“hex”),wasString:n}},t.decryptECIES=function(t,r){const n=s.keyFromPrivate(t,“hex”),i=s.keyFromPublic(r.ephemeralPK,“hex”).getPublic(),a=n.derive(i),l=c(e.from(f(a),“hex”)),h=e.from(r.iv,“hex”),d=e.from(r.cipherText,“hex”),p=e.concat([h,e.from(i.encodeCompressed()),d]),b=u(l.hmacKey,p);if(!function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n“,GT:”>“,Gt:”≫“,gtdot:”⋗“,gtlPar:”⦕“,gtquest:”⩼“,gtrapprox:”⪆“,gtrarr:”⥸“,gtrdot:”⋗“,gtreqless:”⋛“,gtreqqless:”⪌“,gtrless:”≷“,gtrsim:”≳“,gvertneqq:”≩︀“,gvnE:”≩︀“,Hacek:”ˇ“,hairsp:” “,half:”½“,hamilt:”ℋ“,HARDcy:”Ъ“,hardcy:”ъ“,harrcir:”⥈“,harr:”↔“,hArr:”⇔“,harrw:”↭“,Hat:”^“,hbar:”ℏ“,Hcirc:”Ĥ“,hcirc:”ĥ“,hearts:”♥“,heartsuit:”♥“,hellip:”…“,hercon:”⊹“,hfr:”𝔥“,Hfr:”ℌ“,HilbertSpace:”ℋ“,hksearow:”⤥“,hkswarow:”⤦“,hoarr:”⇿“,homtht:”∻“,hookleftarrow:”↩“,hookrightarrow:”↪“,hopf:”𝕙“,Hopf:”ℍ“,horbar:”―“,HorizontalLine:”─“,hscr:”𝒽“,Hscr:”ℋ“,hslash:”ℏ“,Hstrok:”Ħ“,hstrok:”ħ“,HumpDownHump:”≎“,HumpEqual:”≏“,hybull:”⁃“,hyphen:”‐“,Iacute:”Í“,iacute:”í“,ic:”“,Icirc:”Γ,icirc:”î“,Icy:”И“,icy:”и“,Idot:”İ“,IEcy:”Е“,iecy:”е“,iexcl:”¡“,iff:”⇔“,ifr:”𝔦“,Ifr:”ℑ“,Igrave:”Ì“,igrave:”ì“,ii:”ⅈ“,iiiint:”⨌“,iiint:”∭“,iinfin:”⧜“,iiota:”℩“,IJlig:”IJ“,ijlig:”ij“,Imacr:”Ī“,imacr:”ī“,image:”ℑ“,ImaginaryI:”ⅈ“,imagline:”ℐ“,imagpart:”ℑ“,imath:”ı“,Im:”ℑ“,imof:”⊷“,imped:”Ƶ“,Implies:”⇒“,incare:”℅“,in:”∈“,infin:”∞“,infintie:”⧝“,inodot:”ı“,intcal:”⊺“,int:”∫“,Int:”∬“,integers:”ℤ“,Integral:”∫“,intercal:”⊺“,Intersection:”⋂“,intlarhk:”⨗“,intprod:”⨼“,InvisibleComma:”“,InvisibleTimes:”“,IOcy:”Ё“,iocy:”ё“,Iogon:”Į“,iogon:”į“,Iopf:”𝕀“,iopf:”𝕚“,Iota:”Ι“,iota:”ι“,iprod:”⨼“,iquest:”¿“,iscr:”𝒾“,Iscr:”ℐ“,isin:”∈“,isindot:”⋵“,isinE:”⋹“,isins:”⋴“,isinsv:”⋳“,isinv:”∈“,it:”“,Itilde:”Ĩ“,itilde:”ĩ“,Iukcy:”І“,iukcy:”і“,Iuml:”Ï“,iuml:”ï“,Jcirc:”Ĵ“,jcirc:”ĵ“,Jcy:”Й“,jcy:”й“,Jfr:”𝔍“,jfr:”𝔧“,jmath:”ȷ“,Jopf:”𝕁“,jopf:”𝕛“,Jscr:”𝒥“,jscr:”𝒿“,Jsercy:”Ј“,jsercy:”ј“,Jukcy:”Є“,jukcy:”є“,Kappa:”Κ“,kappa:”κ“,kappav:”ϰ“,Kcedil:”Ķ“,kcedil:”ķ“,Kcy:”К“,kcy:”к“,Kfr:”𝔎“,kfr:”𝔨“,kgreen:”ĸ“,KHcy:”Х“,khcy:”х“,KJcy:”Ќ“,kjcy:”ќ“,Kopf:”𝕂“,kopf:”𝕜“,Kscr:”𝒦“,kscr:”𝓀“,lAarr:”⇚“,Lacute:”Ĺ“,lacute:”ĺ“,laemptyv:”⦴“,lagran:”ℒ“,Lambda:”Λ“,lambda:”λ“,lang:”⟨“,Lang:”⟪“,langd:”⦑“,langle:”⟨“,lap:”⪅“,Laplacetrf:”ℒ“,laquo:”«“,larrb:”⇤“,larrbfs:”⤟“,larr:”←“,Larr:”↞“,lArr:”⇐“,larrfs:”⤝“,larrhk:”↩“,larrlp:”↫“,larrpl:”⤹“,larrsim:”⥳“,larrtl:”↢“,latail:”⤙“,lAtail:”⤛“,lat:”⪫“,late:”⪭“,lates:”⪭︀“,lbarr:”⤌“,lBarr:”⤎“,lbbrk:”❲“,lbrace:”{“,lbrack:”[“,lbrke:”⦋“,lbrksld:”⦏“,lbrkslu:”⦍“,Lcaron:”Ľ“,lcaron:”ľ“,Lcedil:”Ļ“,lcedil:”ļ“,lceil:”⌈“,lcub:”{“,Lcy:”Л“,lcy:”л“,ldca:”⤶“,ldquo:”““,ldquor:”„“,ldrdhar:”⥧“,ldrushar:”⥋“,ldsh:”↲“,le:”≤“,lE:”≦“,LeftAngleBracket:”⟨“,LeftArrowBar:”⇤“,leftarrow:”←“,LeftArrow:”←“,Leftarrow:”⇐“,LeftArrowRightArrow:”⇆“,leftarrowtail:”↢“,LeftCeiling:”⌈“,LeftDoubleBracket:”⟦“,LeftDownTeeVector:”⥡“,LeftDownVectorBar:”⥙“,LeftDownVector:”⇃“,LeftFloor:”⌊“,leftharpoondown:”↽“,leftharpoonup:”↼“,leftleftarrows:”⇇“,leftrightarrow:”↔“,LeftRightArrow:”↔“,Leftrightarrow:”⇔“,leftrightarrows:”⇆“,leftrightharpoons:”⇋“,leftrightsquigarrow:”↭“,LeftRightVector:”⥎“,LeftTeeArrow:”↤“,LeftTee:”⊣“,LeftTeeVector:”⥚“,leftthreetimes:”⋋“,LeftTriangleBar:”⧏“,LeftTriangle:”⊲“,LeftTriangleEqual:”⊴“,LeftUpDownVector:”⥑“,LeftUpTeeVector:”⥠“,LeftUpVectorBar:”⥘“,LeftUpVector:”↿“,LeftVectorBar:”⥒“,LeftVector:”↼“,lEg:”⪋“,leg:”⋚“,leq:”≤“,leqq:”≦“,leqslant:”⩽“,lescc:”⪨“,les:”⩽“,lesdot:”⩿“,lesdoto:”⪁“,lesdotor:”⪃“,lesg:”⋚︀“,lesges:”⪓“,lessapprox:”⪅“,lessdot:”⋖“,lesseqgtr:”⋚“,lesseqqgtr:”⪋“,LessEqualGreater:”⋚“,LessFullEqual:”≦“,LessGreater:”≶“,lessgtr:”≶“,LessLess:”⪡“,lesssim:”≲“,LessSlantEqual:”⩽“,LessTilde:”≲“,lfisht:”⥼“,lfloor:”⌊“,Lfr:”𝔏“,lfr:”𝔩“,lg:”≶“,lgE:”⪑“,lHar:”⥢“,lhard:”↽“,lharu:”↼“,lharul:”⥪“,lhblk:”▄“,LJcy:”Љ“,ljcy:”љ“,llarr:”⇇“,ll:”≪“,Ll:”⋘“,llcorner:”⌞“,Lleftarrow:”⇚“,llhard:”⥫“,lltri:”◺“,Lmidot:”Ŀ“,lmidot:”ŀ“,lmoustache:”⎰“,lmoust:”⎰“,lnap:”⪉“,lnapprox:”⪉“,lne:”⪇“,lnE:”≨“,lneq:”⪇“,lneqq:”≨“,lnsim:”⋦“,loang:”⟬“,loarr:”⇽“,lobrk:”⟦“,longleftarrow:”⟵“,LongLeftArrow:”⟵“,Longleftarrow:”⟸“,longleftrightarrow:”⟷“,LongLeftRightArrow:”⟷“,Longleftrightarrow:”⟺“,longmapsto:”⟼“,longrightarrow:”⟶“,LongRightArrow:”⟶“,Longrightarrow:”⟹“,looparrowleft:”↫“,looparrowright:”↬“,lopar:”⦅“,Lopf:”𝕃“,lopf:”𝕝“,loplus:”⨭“,lotimes:”⨴“,lowast:”∗“,lowbar:”_“,LowerLeftArrow:”↙“,LowerRightArrow:”↘“,loz:”◊“,lozenge:”◊“,lozf:”⧫“,lpar:”(“,lparlt:”⦓“,lrarr:”⇆“,lrcorner:”⌟“,lrhar:”⇋“,lrhard:”⥭“,lrm:”“,lrtri:”⊿“,lsaquo:”‹“,lscr:”𝓁“,Lscr:”ℒ“,lsh:”↰“,Lsh:”↰“,lsim:”≲“,lsime:”⪍“,lsimg:”⪏“,lsqb:”[“,lsquo:”‘“,lsquor:”‚“,Lstrok:”Ł“,lstrok:”ł“,ltcc:”⪦“,ltcir:”⩹“,lt:”<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒“,nvHarr:”⤄“,nvinfin:”⧞“,nvlArr:”⤂“,nvle:”≤⃒“,nvlt:”<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},function(e){e.exports={amp:"&",apos:"'",gt:">“,lt:”<",quot:'"'}},function(e,t,r){var n=r(40),i=r(439),o={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var r="",i=0;i“,e.children&&(r+=s(e.children,t)),a[e.name]&&!t.xmlMode||(r+=”"e.name
“>”)):r+=“/>”,r}function c(e){return“<"e.data
”>“}function f(e,t){var r=e.data||”“;return!t.decodeEntities||e.parent&&e.parent.name in o||(r=i.encodeXML®),r}function l(e){return”e.children[0].data“]]>”}function h(e){return“x3c!–”e.data
“–x3e”}},function(e,t,r){(function(t){function r(e){return(r=“function”==typeof Symbol&&“symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&“function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?“symbol”:typeof e})(e)}var n=“Expected a function”,i=“lodash_placeholder”,o=1,a=2,s=4,u=8,c=16,f=32,l=64,h=128,d=512,p=1/0,b=9007199254740991,y=1.7976931348623157e308,m=NaN,g=[[“ary”,h],[“bind”,o],[“bindKey”,a],[“curry”,u],[“curryRight”,c],[“flip”,d],[“partial”,f],[“partialRight”,l],[“rearg”,256]],v=“[object Function]”,_=“[object GeneratorFunction]”,w=“[object Symbol]”,S=/^s+|s+$/g,k=/{(?:n/* [wrapped with .+] */)?n?/,x=/{n/* [wrapped with (.+)] */,E=/,? & /,A=/^[-]0x[0-9a-f]
$/i,P=/^0b[01]+$/i,O=/^[object .+?Constructor]$/,T=/^0o[0-7]+$/i,j=/^(?:0|[1-9]d*)$/,M=parseInt,I=“object”==(void 0===t?“undefined”:r(t))&&t&&t.Object===Object&&t,B=“object”==(“undefined”==typeof self?“undefined”:r(self))&&self&&self.Object===Object&&self,D=I||B||Function(“return this”)();function C(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function N(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o–:++o-1}function U(e){return e!=e}function R(e,t){for(var r=-1,n=e.length,o=0,a=[];++rcore-js_shared“],K=(F=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||”“))?”Symbol(src)_1.“+F:”“,V=q.toString,G=H.hasOwnProperty,W=H.toString,X=RegExp(”^“+V.call(G).replace(/[\^$.*+?()[]{}|]/g,”\$&“).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,”$1.*?“)+”$“),Z=Object.create,J=Math.max,Y=Math.min,Q=(z=ae(Object,”defineProperty“),(L=ae.name)&&L.length>2?z:void 0);function ee(e){return!(!de(e)||(t=e,K&&K in t))&&(function(e){var t=de(e)?W.call(e):”“;return t==v||t==_}(e)||function(e){var t=!1;if(null!=e&&”function“!=typeof e.toString)try{t=!!(e+”“)}catch(e){}return t}(e)?X:O).test(function(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+”“}catch(e){}}return”“}(e));var t}function te(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r,n=de(r=e.prototype)?Z®:{},i=e.apply(n,t);return de(i)?i:n}}function re(e,t,r,n,i,s,f,l,p,b){var y=t&h,m=t&o,g=t&a,v=t&(u|c),_=t&d,w=g?void 0:te(e);return function o(){for(var a=arguments.length,u=Array(a),c=a;c–;)u[c]=arguments[c];if(v)var h=oe(o),d=function(e,t){for(var r=e.length,n=0;r–;)e[r]===t&&n++;return n}(u,h);if(n&&(u=function(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,u=t.length,c=J(o-a,0),f=Array(u+c),l=!n;++s1&&u.reverse(),y&&p1?”& “:”“)+t[n],t=t.join(r>2?”, “:” “),e.replace(k,”{n/* [wrapped with “t
”] */n“)}function ce(e,t){return!!(t=null==t?b:t)&&(”number“==typeof e||j.test(e))&&e>-1&&e%1==0&&e=0}},icontains:function(e,t){var r=t.toLowerCase();return function(t){return e(t)&&o(t).toLowerCase().indexOf®>=0}},”nth-child“:function(e,t){var r=h(t);return r===y?r:r===b?g(e):function(t){for(var n=u(t),o=0,a=0;o=0;a–)if(i(n[a])){if(n[a]===t)break;o++}return r(o)&&e(t)}},”nth-of-type“:function(e,t){var r=h(t);return r===y?r:r===b?g(e):function(t){for(var n=u(t),o=0,a=0;a=0;a–)if(i(n[a])){if(n[a]===t)break;f(n[a])===f(t)&&o++}return r(o)&&e(t)}},root:function(e){return function(t){return!a(t)&&e(t)}},scope:function(e,t,r,n){return n&&0!==n.length?1===n.length?function(t){return n[0]===t&&e(t)}:function(t){return n.indexOf(t)>=0&&e(t)}:v.root(e)},checkbox:m(”type“,”checkbox“),file:m(”type“,”file“),password:m(”type“,”password“),radio:m(”type“,”radio“),reset:m(”type“,”reset“),image:m(”type“,”image“),submit:m(”type“,”submit“)},_={empty:function(e){return!s(e).some(function(e){return i(e)||”text“===e.type})},”first-child“:function(e){return function(e){for(var t=0;e&&t=0;r–){if(t[r]===e)return!0;if(i(t[r]))break}return!1},”first-of-type“:function(e){for(var t=u(e),r=0;r=0;r–)if(i(t[r])){if(t[r]===e)return!0;if(f(t[r])===f(e))break}return!1},”only-of-type“:function(e){for(var t=u(e),r=0,n=t.length;r1&&”scope“!==t)throw new SyntaxError(”pseudo-selector :“t
” requires an argument“)}else if(1===e.length)throw new SyntaxError(”pseudo-selector :“t
” doesn’t have any arguments“)}var S=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.exports={compile:function(e,t,r,n){var i=t.name,o=t.data;if(r&&r.strict&&!S.test(i))throw SyntaxError(”:“i
” isn’t part of CSS3“);if(”function“==typeof v[i])return w(v[i],i,o),v[i](e,o,r,n);if(”function“==typeof _[i]){var a=_[i];return w(a,i,o),e===b?a:function(t){return a(t,o)&&e(t)}}throw new SyntaxError(”unmatched pseudo-class :“+i)},filters:v,pseudos:_}},function(e,t,r){”use strict“;(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,”__esModule“,{value:!0});const i=n(r(23)),o=n(r(46)),a=n(r(4)),s=r(24);t.DUST_MINIMUM=5500,t.hash160=function(e){const t=i.default.crypto.sha256(e);return(new o.default).update(t).digest()},t.hash128=function(t){return e.from(i.default.crypto.sha256(t).slice(0,16))};const u=10,c=41,f=107,l=9,h=25;function d(e,t){return u+e.reduce((e,t)=>e+function(e){return e&&e.script&&e.script.length>0?c+e.script.length:c+f}(t),0)+t.reduce((e,t)=>e+function(e){return e&&e.script&&e.script.length>0?l+e.script.length:l+h}(t),0)}function p(e){return e.__tx}function b(e){return e instanceof i.default.Transaction?e:p(e)}function y(e,t,r){const n=b(e),i=new Array(t);i.fill(null);const o=new Array®;return o.fill(null),d([].concat(n.ins,i),[].concat(n.outs,o))}t.getTransactionInsideBuilder=p,t.estimateTXBytes=y,t.sumOutputValues=function(e){return b(e).outs.reduce((e,t)=>e+t.value,0)},t.decodeB40=function(e){const t=new a.default(40);return e.split(”“).reverse().map((e,r)=>new a.default(”0123456789abcdefghijklmnopqrstuvwxyz-_.+“.indexOf(e)).mul(t.pow(new a.default®))).reduce((e,t)=>e.add(t),new a.default(0)).toString(16,2)},t.addUTXOsToFund=function e(t,r,n,i,o=!0){if(0===r.length)throw new s.NotEnoughFundsError(n);const a=i*(y(t,1,0)-y(t,0,0));let u=n;o&&(u+=a);const c=r.filter(e=>e.value>=u);if(c.length>0){c.sort((e,t)=>e.value-t.value);const e=c[0];let r=e.value-n;return o&&(r-=a),t.addInput(e.tx_hash,e.tx_output_n),r}{r.sort((e,t)=>t.value-e.value);const u=r[0];if(a>=u.value)throw new s.NotEnoughFundsError(n);t.addInput(u.tx_hash,u.tx_output_n);let c=n-u.value;return o&&(c+=a),e(t,r.slice(1),c,i,o)}},t.signInputs=function(e,t,r){const n=p(e),i=n.ins.map(()=>t);r&&r.forEach(e=>{i[e.index]=e.signer});let o=Promise.resolve();for(let t=0;ti[t].signTransaction(e,t));return o.then(()=>e)}}).call(this,r(1).Buffer)},function(e,t){(function(){e.exports={k:”__iced_k“,k_noop:”__iced_k_noop“,param:”_iced_p“,ns:”iced“,runtime:”runtime“,Deferrals:”Deferrals“,deferrals:”__iced_deferrals“,fulfill:”_fulfill“,b_while:”_break“,t_while:”_while“,c_while:”_continue“,n_while:”_next“,n_arg:”__iced_next_arg“,defer_method:”defer“,slot:”__slot“,assign_fn:”assign_fn“,autocb:”autocb“,retslot:”ret“,trace:”__iced_trace“,passed_deferral:”__iced_passed_deferral“,findDeferral:”findDeferral“,lineno:”lineno“,parent:”parent“,filename:”filename“,funcname:”funcname“,catchExceptions:”catchExceptions“,runtime_modes:[”node“,”inline“,”window“,”none“,”browserify“,”interp“],trampoline:”trampoline“,context:”context“,defer_arg:”_iced_defer“}}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s={}.hasOwnProperty;n=r(21).BlockCipher,a=r(13).scrub_vec,o=function(){function e(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.INV_SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}return e.prototype.init=function(){var e,t,r,n,i,o,a,s,u,c;for(e=function(){var e,r;for(r=[],t=e=0;e<256;t=++e)t<128?r.push(t<<1):r.push(t<<1^283);return r}(),i=0,u=0,t=c=0;c<256;t=++c)r=(r=u^u<<1^u<<2^u<<3^u<<4)>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,s=e[a=e[o=e[i]]],n=257*e[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*s^65537*a^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=u=1:(i=o^e[e[e[s^o]]],u^=e[e[u]]);return!0},e}(),i=new o,e=function(e){function t(e){this._key=e.clone(),this._doReset()}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=t.blockSize,t.prototype.ivSize=t.ivSize,t.prototype._doReset=function(){var e,t,r,n,o,a,s,u;for(r=this._key.words,t=this._key.sigBytes/4,this._nRounds=t+6,o=4*(this._nRounds+1),this._keySchedule=[],n=s=0;0<=o?so;n=0<=o?++s:--s)this._keySchedule[n]=n>>24,a=i.SBOX[a>>>24]<<24|i.SBOX[a>>>16&255]<<16|i.SBOX[a>>>8&255]<<8|i.SBOX[255&a],a^=i.RCON[n/t|0]<<24):t>6&&n%t==4&&(a=i.SBOX[a>>>24]<<24|i.SBOX[a>>>16&255]<<16|i.SBOX[a>>>8&255]<<8|i.SBOX[255&a]),this._keySchedule[n-t]^a);for(this._invKeySchedule=[],e=u=0;0<=o?uo;e=0<=o?++u:--u)n=o-e,a=this._keySchedule[n-(e%4?0:4)],this._invKeySchedule[e]=e<4||n<=4?a:i.INV_SUB_MIX[0][i.SBOX[a>>>24]]^i.INV_SUB_MIX[1][i.SBOX[a>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[a>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&a]];return!0},t.prototype.encryptBlock=function(e,t){return null==t&&(t=0),this._doCryptBlock(e,t,this._keySchedule,i.SUB_MIX,i.SBOX)},t.prototype.decryptBlock=function(e,t){var r,n;return null==t&&(t=0),r=[e[t+3],e[t+1]],e[t+1]=r[0],e[t+3]=r[1],this._doCryptBlock(e,t,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX),n=[e[t+3],e[t+1]],e[t+1]=n[0],e[t+3]=n[1],n},t.prototype.scrub=function(){return a(this._keySchedule),a(this._invKeySchedule),this._key.scrub()},t.prototype._doCryptBlock=function(e,t,r,n,i){var o,a,s,u,c,f,l,h,d,p,b;for(a=e[t]^r[0],s=e[t+1]^r[1],u=e[t+2]^r[2],c=e[t+3]^r[3],o=4,p=1,b=this._nRounds;1<=b?pb;1<=b?++p:--p)f=n[0][a>>>24]^n[1][s>>>16&255]^n[2][u>>>8&255]^n[3][255&c]^r[o++],l=n[0][s>>>24]^n[1][u>>>16&255]^n[2][c>>>8&255]^n[3][255&a]^r[o++],h=n[0][u>>>24]^n[1][c>>>16&255]^n[2][a>>>8&255]^n[3][255&s]^r[o++],d=n[0][c>>>24]^n[1][a>>>16&255]^n[2][s>>>8&255]^n[3][255&u]^r[o++],a=f,s=l,u=h,c=d;return f=(i[a>>>24]<<24|i[s>>>16&255]<<16|i[u>>>8&255]<<8|i[255&c])^r[o++],l=(i[s>>>24]<<24|i[u>>>16&255]<<16|i[c>>>8&255]<<8|i[255&a])^r[o++],h=(i[u>>>24]<<24|i[c>>>16&255]<<16|i[a>>>8&255]<<8|i[255&s])^r[o++],d=(i[c>>>24]<<24|i[a>>>16&255]<<16|i[s>>>8&255]<<8|i[255&u])^r[o++],e[t]=f,e[t+1]=l,e[t+2]=h,e[t+3]=d},t}(),t.AES=e}).call(this)},function(e,t,r){(function(){var e,n,i,o,a={}.hasOwnProperty;e=r(21).BlockCipher,o=r(13).scrub_vec,i=function(){return function(){this.P=[[169,103,179,232,4,253,163,118,154,146,128,120,228,221,209,56,13,198,53,152,24,247,236,108,67,117,55,38,250,19,148,72,242,208,139,48,132,84,223,35,25,91,61,89,243,174,162,130,99,1,131,46,217,81,155,124,166,235,165,190,22,12,227,97,192,140,58,245,115,44,37,11,187,78,137,107,83,106,180,241,225,230,189,69,226,244,182,102,204,149,3,86,212,28,30,215,251,195,142,181,233,207,191,186,234,119,57,175,51,201,98,113,129,121,9,173,36,205,249,216,229,197,185,77,68,8,134,231,161,29,170,237,6,112,178,210,65,123,160,17,49,194,39,144,32,246,96,255,150,92,177,171,158,156,82,27,95,147,10,239,145,133,73,238,45,79,143,59,71,135,109,70,214,62,105,100,42,206,203,47,252,151,5,122,172,127,213,26,75,14,167,90,40,20,63,41,136,60,76,2,184,218,176,23,85,31,138,125,87,199,141,116,183,196,159,114,126,21,34,18,88,7,153,52,110,80,222,104,101,188,219,248,200,168,43,64,220,254,50,164,202,16,33,240,211,93,15,0,111,157,54,66,74,94,193,224],[117,243,198,244,219,123,251,200,74,211,230,107,69,125,232,75,214,50,216,253,55,113,241,225,48,15,248,27,135,250,6,63,94,186,174,91,138,0,188,157,109,193,177,14,128,93,210,213,160,132,7,20,181,144,44,163,178,115,76,84,146,116,54,81,56,176,189,90,252,96,98,150,108,66,247,16,124,40,39,140,19,149,156,199,36,70,59,112,202,227,133,203,17,208,147,184,166,131,32,255,159,119,195,204,3,111,8,191,64,231,43,226,121,12,170,130,65,58,234,185,228,154,164,151,126,218,122,23,102,148,161,29,61,240,222,179,11,114,167,28,239,209,83,62,143,51,38,95,236,118,42,73,129,136,238,33,196,26,235,217,197,57,153,205,173,49,139,1,24,35,221,31,78,45,249,72,79,242,101,142,120,92,88,25,141,229,152,87,103,127,5,100,175,99,182,254,245,183,60,165,206,233,104,68,224,77,67,105,41,46,172,21,89,168,10,158,110,71,223,52,53,106,207,220,34,201,192,155,137,212,237,171,18,162,13,82,187,2,47,169,215,97,30,180,80,4,246,194,22,37,134,86,85,9,190,145]],this.P_00=1,this.P_01=0,this.P_02=0,this.P_03=1,this.P_04=1,this.P_10=0,this.P_11=0,this.P_12=1,this.P_13=1,this.P_14=0,this.P_20=1,this.P_21=1,this.P_22=0,this.P_23=0,this.P_24=0,this.P_30=0,this.P_31=1,this.P_32=1,this.P_33=0,this.P_34=1,this.GF256_FDBK=361,this.GF256_FDBK_2=this.GF256_FDBK/2,this.GF256_FDBK_4=this.GF256_FDBK/4,this.RS_GF_FDBK=333,this.SK_STEP=33686018,this.SK_BUMP=16843009,this.SK_ROTL=9}}(),n=new i,t.TwoFish=function(t){function r(e){this._key=e.clone(),this.gMDS0=[],this.gMDS1=[],this.gMDS2=[],this.gMDS3=[],this.gSubKeys=[],this.gSBox=[],this.k64Cnt=0,this._doReset()}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.keySize=32,r.prototype.keySize=r.keySize,r.ivSize=r.blockSize,r.prototype.ivSize=r.ivSize,r.prototype.getByte=function(e,t){return e>>>8*t&255},r.prototype.switchEndianness=function(e){return(255&e)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>24&255},r.prototype.LFSR1=function(e){return e>>1^(0!=(1&e)?n.GF256_FDBK_2:0)},r.prototype.LFSR2=function(e){return e>>2^(0!=(2&e)?n.GF256_FDBK_2:0)^(0!=(1&e)?n.GF256_FDBK_4:0)},r.prototype.Mx_X=function(e){return e^this.LFSR2(e)},r.prototype.Mx_Y=function(e){return e^this.LFSR1(e)^this.LFSR2(e)},r.prototype.RS_rem=function(e){var t,r,i;return r=255&((t=e>>>24&255)<<1^(0!=(128&t)?n.RS_GF_FDBK:0)),e<<8^(i=t>>>1^(0!=(1&t)?n.RS_GF_FDBK>>>1:0)^r)<<24^r<<16^i<<8^t},r.prototype.RS_MDS_Encode=function(e,t){var r,n,i;for(r=t,n=0;n<4;++n)r=this.RS_rem(r);for(r^=e,i=0;i<4;++i)r=this.RS_rem(r);return r},r.prototype.F32=function(e,t){var r,i,o,a,s,u,c,f,l;return r=this.getByte(e,0),i=this.getByte(e,1),o=this.getByte(e,2),a=this.getByte(e,3),s=t[0],u=t[1],c=t[2],f=t[3],1===(l=3&this.k64Cnt)?this.gMDS0[255&n.P[n.P_01][r]^this.getByte(s,0)]^this.gMDS1[255&n.P[n.P_11][i]^this.getByte(s,1)]^this.gMDS2[255&n.P[n.P_21][o]^this.getByte(s,2)]^this.gMDS3[255&n.P[n.P_31][a]^this.getByte(s,3)]:(0===l&&(r=255&n.P[n.P_04][r]^this.getByte(f,0),i=255&n.P[n.P_14][i]^this.getByte(f,1),o=255&n.P[n.P_24][o]^this.getByte(f,2),a=255&n.P[n.P_34][a]^this.getByte(f,3)),(0===l||3===l)&&(r=255&n.P[n.P_03][r]^this.getByte(c,0),i=255&n.P[n.P_13][i]^this.getByte(c,1),o=255&n.P[n.P_23][o]^this.getByte(c,2),a=255&n.P[n.P_33][a]^this.getByte(c,3)),this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(u,0)]^this.getByte(s,0)]^this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(u,1)]^this.getByte(s,1)]^this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(u,2)]^this.getByte(s,2)]^this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][a]^this.getByte(u,3)]^this.getByte(s,3)])},r.prototype.Fe32_0=function(e){return this.gSBox[0+2*(255&e)]^this.gSBox[1+2*(e>>>8&255)]^this.gSBox[512+2*(e>>>16&255)]^this.gSBox[513+2*(e>>>24&255)]},r.prototype.Fe32_3=function(e){return this.gSBox[0+2*(e>>>24&255)]^this.gSBox[1+2*(255&e)]^this.gSBox[512+2*(e>>>8&255)]^this.gSBox[513+2*(e>>>16&255)]},r.prototype._doReset=function(){var e,t,r,i,o,a,s,u,c,f,l,h,d,p,b,y,m,g,v,_,w,S,k,x,E,A,P;if(d=[],p=[],w=[],y=[],m=[],g=[],this.k64Cnt=this._key.words.length/2,this.k64Cnt<1)throw"Key size less than 64 bits";if(this.k64Cnt>4)throw”Key size larger than 256 bits“;for(s=S=0;S<256;s=++S)u=255&n.P[0][s],y[0]=u,m[0]=255&this.Mx_X(u),g[0]=255&this.Mx_Y(u),u=255&n.P[1][s],y[1]=u,m[1]=255&this.Mx_X(u),g[1]=255&this.Mx_Y(u),this.gMDS0[s]=y[n.P_00]|m[n.P_00]<<8|g[n.P_00]<<16|g[n.P_00]<<24,this.gMDS1[s]=g[n.P_10]|g[n.P_10]<<8|m[n.P_10]<<16|y[n.P_10]<<24,this.gMDS2[s]=m[n.P_20]|g[n.P_20]<<8|y[n.P_20]<<16|g[n.P_20]<<24,this.gMDS3[s]=m[n.P_30]|y[n.P_30]<<8|g[n.P_30]<<16|m[n.P_30]<<24;for(s=k=0,A=this.k64Cnt;0<=A?kA;s=0<=A?++k:--k)v=2*s,d[s]=this.switchEndianness(this._key.words[v]),p[s]=this.switchEndianness(this._key.words[v+1]),w[this.k64Cnt-1-s]=this.RS_MDS_Encode(d[s],p[s]);for(s=x=0,20;x<20;s=++x)_=s*n.SK_STEP,e=this.F32(_,d),e+=t=(t=this.F32(_+n.SK_BUMP,p))<<8|t>>>24,this.gSubKeys[2*s]=e,e+=t,this.gSubKeys[2*s+1]=e<>>32-n.SK_ROTL;for(c=w[0],f=w[1],l=w[2],h=w[3],this.gSBox=[],P=[],s=E=0;E<256;s=++E)r=i=o=a=s,1===(b=3&this.k64Cnt)?(this.gSBox[2*s]=this.gMDS0[255&n.P[n.P_01][r]^this.getByte(c,0)],this.gSBox[2*s+1]=this.gMDS1[255&n.P[n.P_11][i]^this.getByte(c,1)],this.gSBox[2*s+512]=this.gMDS2[255&n.P[n.P_21][o]^this.getByte(c,2)],P.push(this.gSBox[2*s+513]=this.gMDS3[255&n.P[n.P_31][a]^this.getByte(c,3)])):(0===b&&(r=255&n.P[n.P_04][r]^this.getByte(h,0),i=255&n.P[n.P_14][i]^this.getByte(h,1),o=255&n.P[n.P_24][o]^this.getByte(h,2),a=255&n.P[n.P_34][a]^this.getByte(h,3)),0!==b&&3!==b||(r=255&n.P[n.P_03][r]^this.getByte(l,0),i=255&n.P[n.P_13][i]^this.getByte(l,1),o=255&n.P[n.P_23][o]^this.getByte(l,2),a=255&n.P[n.P_33][a]^this.getByte(l,3)),this.gSBox[2*s]=this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(f,0)]^this.getByte(c,0)],this.gSBox[2*s+1]=this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(f,1)]^this.getByte(c,1)],this.gSBox[2*s+512]=this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(f,2)]^this.getByte(c,2)],P.push(this.gSBox[2*s+513]=this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][a]^this.getByte(f,3)]^this.getByte(c,3)]));return P},r.prototype.scrub=function(){return o(this.gSubKeys),o(this.gSBox),this._key.scrub()},r.prototype.decryptBlock=function(e,t){var r,n,i,o,a,s,u,c;for(null==t&&(t=0),s=this.switchEndianness(e[t])^this.gSubKeys[4],u=this.switchEndianness(e[t+1])^this.gSubKeys[5],o=this.switchEndianness(e[t+2])^this.gSubKeys[6],a=this.switchEndianness(e[t+3])^this.gSubKeys[7],r=39,c=0;c<16;c+=2)a^=(n=this.Fe32_0(s))+2*(i=this.Fe32_3(u))+this.gSubKeys[r--],o=(o<<1|o>>>31)^n+i+this.gSubKeys[r–],a=a>>>1|a<<31,u^=(n=this.Fe32_0(o))+2*(i=this.Fe32_3(a))+this.gSubKeys[r--],s=(s<<1|s>>>31)^n+i+this.gSubKeys[r–],u=u>>>1|u<<31;return e[t]=this.switchEndianness(o^this.gSubKeys[0]),e[t+1]=this.switchEndianness(a^this.gSubKeys[1]),e[t+2]=this.switchEndianness(s^this.gSubKeys[2]),e[t+3]=this.switchEndianness(u^this.gSubKeys[3])},r.prototype.encryptBlock=function(e,t){var r,n,i,o,a,s,u,c;for(null==t&&(t=0),o=this.switchEndianness(e[t])^this.gSubKeys[0],a=this.switchEndianness(e[t+1])^this.gSubKeys[1],s=this.switchEndianness(e[t+2])^this.gSubKeys[2],u=this.switchEndianness(e[t+3])^this.gSubKeys[3],r=8,c=0;c<16;c+=2)s=(s^=(n=this.Fe32_0(o))+(i=this.Fe32_3(a))this.gSubKeys[r+
])>>>1|s<<31,u=(u<<1|u>>>31)^n+2*i+this.gSubKeys[r++],o=(o^=(n=this.Fe32_0(s))+(i=this.Fe32_3(u))this.gSubKeys[r+
])>>>1|o<<31,a=(a<<1|a>>>31)^n+2*i+this.gSubKeys[r++];return e[t]=this.switchEndianness(s^this.gSubKeys[4]),e[t+1]=this.switchEndianness(u^this.gSubKeys[5]),e[t+2]=this.switchEndianness(o^this.gSubKeys[6]),e[t+3]=this.switchEndianness(a^this.gSubKeys[7])},r}()}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s,u={}.hasOwnProperty;o=r(8).WordArray,n=r(21).Hasher,e=function(){function e(){this.H=[],this.K=[],this.W=[],this.init()}return e.prototype.isPrime=function(e){var t,r,n;if(2===e||3===e||5===e||7===e)return!0;if(1===e||4===e||6===e||8===e||9===e)return!1;for(r=Math.ceil(Math.sqrt(e)),t=n=2;2<=r?n<=r:n>=r;t=2<=r?++n:--n)if(e%t==0)return!1;return!0},e.prototype.getFractionalBits=function(e){return 4294967296*(e-(0|e))|0},e.prototype.init=function(){var e,t,r;for(e=2,t=0,r=[];t<64;)this.isPrime(e)&&(t<8&&(this.H[t]=this.getFractionalBits(Math.pow(e,.5))),this.K[t]=this.getFractionalBits(Math.pow(e,1/3)),t++),r.push(e++);return r},e}(),a=new e,i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.output_size=32,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new o(a.H.slice(0))},t.prototype.get_output_size=function(){return this.output_size},t.prototype._doProcessBlock=function(e,t){var r,n,i,o,s,u,c,f,l,h,d,p,b,y,m,g,v,_,w,S;for(r=this._hash.words,i=a.W,n=a.K,o=r[0],s=r[1],u=r[2],c=r[3],f=r[4],l=r[5],h=r[6],m=r[7],g=S=0;S<64;g=++S)g<16?i[g]=0|e[t+g]:(d=((p=i[g-15])<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,b=((y=i[g-2])<<15|y>>>17)^(y<<13|y>>>19)^y>>>10,i[g]=d+i[g-7]+b+i[g-16]),v=o&s^o&u^s&u,_=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=m+((f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25))+(f&l^~f&h)+n[g]+i[g],m=h,h=l,l=f,f=c+w|0,c=u,u=s,s=o,o=w+(_+v)|0;return r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+u|0,r[3]=r[3]+c|0,r[4]=r[4]+f|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+m|0},t.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},t.prototype.scrub=function(){return this._hash.scrub()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),s=function(e){var t;return t=(new i).finalize(e),e.scrub(),t},t.SHA256=i,t.transform=s}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(8),o=u.WordArray,a=u.X64Word,u.X64WordArray,n=r(21).Hasher,e=function(){function e(){this.RHO_OFFSETS=[],this.PI_INDEXES=[],this.ROUND_CONSTANTS=[],this.T=[],this.compute_rho_offsets(),this.compute_pi_indexes(),this.compute_round_constants(),this.make_reusables()}return e.prototype.compute_rho_offsets=function(){var e,t,r,n,i,o;for(r=1,n=0,o=[],t=i=0;i<24;t=++i)this.RHO_OFFSETS[r+5*n]=(t+1)*(t+2)/2%64,e=(2*r+3*n)%5,r=n%5,o.push(n=e);return o},e.prototype.compute_pi_indexes=function(){var e,t,r,n;for(n=[],e=r=0;r<5;e=++r)n.push(function(){var r,n;for(n=[],t=r=0;r<5;t=++r)n.push(this.PI_INDEXES[e+5*t]=t+(2*e+3*t)%5*5);return n}.call(this));return n},e.prototype.compute_round_constants=function(){var e,t,r,n,i,o,s,u,c;for(e=1,c=[],r=s=0;s<24;r=++s){for(o=0,i=0,n=u=0;u<7;n=++u)1&e&&((t=(1<w;y=0<=w?++M:--M)n=16711935&((n=e[t+2*y])<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&((i=e[t+2*y+1])<<8|i>>>24)|4278255360&(i<<24|i>>>8),(m=E[y]).high^=i,m.low^=n;for(z=[],k=I=0;I<24;k=++I){for(T=B=0;B<5;T=++B){for(O=P=0,j=D=0;D<5;j=++D)O^=(m=E[T+5*j]).high,P^=m.low;(c=r.T[T]).high=O,c.low=P}for(T=C=0;C<5;T=++C)for(b=r.T[(T+4)%5],d=(f=r.T[(T+1)%5]).high,h=f.low,O=b.high^(d<<1|h>>>31),P=b.low^(h<<1|d>>>31),j=N=0;N<5;j=++N)(m=E[T+5*j]).high^=O,m.low^=P;for(g=U=1;U<25;g=++U)_=(m=E[g]).high,v=m.low,(S=r.RHO_OFFSETS[g])<32?(O=_<>>32-S,P=v<>>32-S):(O=v<>>64-S,P=_<>>64-S),(u=r.T[r.PI_INDEXES[g]]).high=O,u.low=P;for(o=r.T[0],A=E[0],o.high=A.high,o.low=A.low,T=R=0;R<5;T=++R)for(j=F=0;F<5;j=++F)m=E[g=T+5*j],a=r.T[g],l=r.T[(T+1)%5+5*j],p=r.T[(T+2)%5+5*j],m.high=a.high^~l.high&p.high,m.low=a.low^~l.low&p.low;m=E[0],x=r.ROUND_CONSTANTS[k],m.high^=x.high,z.push(m.low^=x.low)}return z},t.prototype._doFinalize=function(){var e,t,r,n,i,a,s,u,c,f,l,h,d;for(r=(t=this._data).words,8*this._nDataBytes,c=8*t.sigBytes,e=32*this.blockSize,r[c>>>5]|=1<<24-c%32,r[(Math.ceil((c+1)/e)*e>>>5)-1]|=128,t.sigBytes=4*r.length,this._process(),h=this._state,l=(f=this.outputLength/8)/8,n=[],i=d=0;0<=l?dl;i=0<=l?++d:--d)u=16711935&((u=(a=h[i]).high)<<8|u>>>24)|4278255360&(u<<24|u>>>8),s=16711935&((s=a.low)<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.push(s),n.push(u);return new o(n,f)},t.prototype.copy_to=function(e){var r;return t.__super__.copy_to.call(this,e),e._state=function(){var e,t,n,i;for(i=[],e=0,t=(n=this._state).length;e1,(r=function(t){var n;if(n=function(){return o.trampoline(function(){return m?s+=1:s-=1,r(t)})},!0===m&&s>c||!1===m&&s{const e=t.get(o);window.location.href=e},10),!0}return!1}},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0});const n=r(43);t.AppConfig=class{constructor(e=n.DEFAULT_SCOPE.slice(),t=window.location.origin,r=”“,i=”/manifest.json“,o=null,a=n.DEFAULT_BLOCKSTACK_HOST){this.appDomain=t,this.scopes=e,this.redirectPath=r,this.manifestPath=i,this.coreNode=o||n.DEFAULT_CORE_NODE,this.authenticatorURL=a}redirectURI(){return`${this.appDomain}${this.redirectPath}`}manifestURI(){return`${this.appDomain}${this.manifestPath}`}}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return”[object Array]“==r.call(e)}},function(e,t,r){”use strict“;var n=t;function i(e){return 1===e.length?”0“+e:e}function o(e){for(var t=”“,r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return”hex“===t?o(e):e}},function(e,t,r){function n(e){return(n=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:typeof e})(e)}var i;function o(e){this.rand=e}if(e.exports=function(e){return i||(i=new o(null)),i.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){”use strict“;var n=r(18),i=r(44),o=r(127),a=r(11),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,l=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,b=o.g1_256,y=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(g,y),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error(”_update is not implemented“)},o.prototype.digest=function(e){if(this._finalized)throw new Error(”Digest already called“);this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i=r(61);e.exports=v;var o,a=r(124);v.ReadableState=g;r(60).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(132),c=r(2).Buffer,f=t.Uint8Array||function(){};var l=r(45);l.inherits=r(3);var h=r(249),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,b=r(250),y=r(133);l.inherits(v,u);var m=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var n=t instanceof(o=o||r(32));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(62).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||r(32),!(this instanceof v))return new v(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function _(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,a)):(i||(o=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(”string“==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit(”error“,new Error(”stream.unshift() after end event“)):w(e,a,t,!0):a.ended?e.emit(”error“,new Error(”stream.push() after EOF“)):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):A(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e–,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){d("emit readable"),e.emit("readable"),j(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(”“):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy®,e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function I(e){var t=e._readableState;if(t.length>0)throw new Error(‘”endReadable()“ called on non-empty stream’);t.endEmitted||(t.ended=!0,i.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit(”end“))}function D(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d(”read: emitReadable“,t.length,t.ended),0===t.length&&t.ended?I(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return d(”need readable“,i),(0===t.length||t.length-e0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit(”data“,n),n},v.prototype._read=function(e){this.emit(”error“,new Error(”_read() is not implemented“))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d(”pipe count=%d opts=%j“,o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:v;function c(t,n){d(”onunpipe“),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d(”cleanup“),e.removeListener(”close“,m),e.removeListener(”finish“,g),e.removeListener(”drain“,l),e.removeListener(”error“,y),e.removeListener(”unpipe“,c),r.removeListener(”end“,f),r.removeListener(”end“,v),r.removeListener(”data“,b),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function f(){d(”onend“),e.end()}o.endEmitted?i.nextTick(u):r.once(”end“,u),e.on(”unpipe“,c);var l=function(e){return function(){var t=e._readableState;d(”pipeOnDrain“,t.awaitDrain),t.awaitDrain&&t.awaitDrain–,0===t.awaitDrain&&s(e,”data“)&&(t.flowing=!0,j(e))}}®;e.on(”drain“,l);var h=!1;var p=!1;function b(t){d(”ondata“),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!h&&(d(”false write response, pause“,r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function y(t){d(”onerror“,t),v(),e.removeListener(”error“,y),0===s(e,”error“)&&e.emit(”error“,t)}function m(){e.removeListener(”finish“,g),v()}function g(){d(”onfinish“),e.removeListener(”close“,m),v()}function v(){d(”unpipe“),r.unpipe(e)}return r.on(”data“,b),function(e,t,r){if(”function“==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift®:e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,”error“,y),e.once(”close“,m),e.once(”finish“,g),e.emit(”pipe“,r),o.flowing||(d(”pipe resume“),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(”unpipe“,this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,y=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+d(r[m-15])+r[m-16];for(var g=0;g<64;++g){var v=y+h(u)+c(u,p,b)+a[g]+r[g]|0,_=l(n)+f(n,i,o)|0;y=b,b=p,p=u,u=s+v|0,s=o,o=i,i=n,n=v+_|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){var n=r(3),i=r(38),o=r(2).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,g=0|this._gh,v=0|this.hh,=0|this._al,w=0|this._bl,S=0|this._cl,k=0|this._dl,x=0|this._el,E=0|this._fl,A=0|this._gl,P=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var T=t[O-30],j=t[O-30+1],M=d(T,j),I=p(j,T),B=b(T=t[O-4],j=t[O-4+1]),D=y(j,T),C=t[O-14],N=t[O-14+1],U=t[O-32],R=t[O-32+1],F=I+N|0,z=M+C+m(F,I)|0;z=(z=z+B+m(F=F+D|0,D)|0)+U+m(F=F+R|0,R)|0,t[O]=z,t[O+1]=F}for(var L=0;L<160;L+=2){z=t[L],F=t[L+1];var q=f(r,n,i),H=f(_,w,S),$=l(r,_),K=l(_,r),V=h(s,x),G=h(x,s),W=a[L],X=a[L+1],Z=c(s,u,g),J=c(x,E,A),Y=P+G|0,Q=v+V+m(Y,P)|0;Q=(Q=(Q=Q+Z+m(Y=Y+J|0,J)|0)+W+m(Y=Y+X|0,X)|0)+z+m(Y=Y+F|0,F)|0;var ee=K+H|0,te=$+q+m(ee,K)|0;v=g,P=A,g=u,A=E,u=s,E=x,s=o+Q+m(x=k+Y|0,k)|0,o=i,k=S,i=n,S=w,n=r,w=_,r=Q+te+m(_=Y+ee|0,Y)|0}this._al=this.al+|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+P|0,this._ah=this._ah+r+m(this.al,)|0,this._bh=this._bh+n+m(this._bl,w)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,k)|0,this._eh=this._eh+s+m(this._el,x)|0,this._fh=this._fh+u+m(this._fl,E)|0,this._gh=this._gh+g+m(this._gl,A)|0,this._hh=this._hh+v+m(this._hl,P)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){var n=r(83);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports={sha224WithRSAEncryption:{sign:”rsa“,hash:”sha224“,id:”302d300d06096086480165030402040500041c“},”RSA-SHA224“:{sign:”ecdsa/rsa“,hash:”sha224“,id:”302d300d06096086480165030402040500041c“},sha256WithRSAEncryption:{sign:”rsa“,hash:”sha256“,id:”3031300d060960864801650304020105000420“},”RSA-SHA256“:{sign:”ecdsa/rsa“,hash:”sha256“,id:”3031300d060960864801650304020105000420“},sha384WithRSAEncryption:{sign:”rsa“,hash:”sha384“,id:”3041300d060960864801650304020205000430“},”RSA-SHA384“:{sign:”ecdsa/rsa“,hash:”sha384“,id:”3041300d060960864801650304020205000430“},sha512WithRSAEncryption:{sign:”rsa“,hash:”sha512“,id:”3051300d060960864801650304020305000440“},”RSA-SHA512“:{sign:”ecdsa/rsa“,hash:”sha512“,id:”3051300d060960864801650304020305000440“},”RSA-SHA1“:{sign:”rsa“,hash:”sha1“,id:”3021300906052b0e03021a05000414“},”ecdsa-with-SHA1“:{sign:”ecdsa“,hash:”sha1“,id:”“},sha256:{sign:”ecdsa“,hash:”sha256“,id:”“},sha224:{sign:”ecdsa“,hash:”sha224“,id:”“},sha384:{sign:”ecdsa“,hash:”sha384“,id:”“},sha512:{sign:”ecdsa“,hash:”sha512“,id:”“},”DSA-SHA“:{sign:”dsa“,hash:”sha1“,id:”“},”DSA-SHA1“:{sign:”dsa“,hash:”sha1“,id:”“},DSA:{sign:”dsa“,hash:”sha1“,id:”“},”DSA-WITH-SHA224“:{sign:”dsa“,hash:”sha224“,id:”“},”DSA-SHA224“:{sign:”dsa“,hash:”sha224“,id:”“},”DSA-WITH-SHA256“:{sign:”dsa“,hash:”sha256“,id:”“},”DSA-SHA256“:{sign:”dsa“,hash:”sha256“,id:”“},”DSA-WITH-SHA384“:{sign:”dsa“,hash:”sha384“,id:”“},”DSA-SHA384“:{sign:”dsa“,hash:”sha384“,id:”“},”DSA-WITH-SHA512“:{sign:”dsa“,hash:”sha512“,id:”“},”DSA-SHA512“:{sign:”dsa“,hash:”sha512“,id:”“},”DSA-RIPEMD160“:{sign:”dsa“,hash:”rmd160“,id:”“},ripemd160WithRSA:{sign:”rsa“,hash:”rmd160“,id:”3021300906052b2403020105000414“},”RSA-RIPEMD160“:{sign:”rsa“,hash:”rmd160“,id:”3021300906052b2403020105000414“},md5WithRSAEncryption:{sign:”rsa“,hash:”md5“,id:”3020300c06082a864886f70d020505000410“},”RSA-MD5“:{sign:”rsa“,hash:”md5“,id:”3020300c06082a864886f70d020505000410“}}},function(e,t,r){(function(t){var r=Math.pow(2,30)-1;function n(e,r){if(”string“!=typeof e&&!t.isBuffer(e))throw new TypeError(r+” must be a buffer or string“)}e.exports=function(e,t,i,o){if(n(e,”Password“),n(t,”Salt“),”number“!=typeof i)throw new TypeError(”Iterations not a number“);if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>r||o!=o)throw new TypeError(”Bad key length“)}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var r;t.browser?r=”utf-8“:r=parseInt(t.version.split(”.“)[0].slice(1),10)>=6?”utf-8“:”binary“;e.exports=r}).call(this,r(14))},function(e,t,r){var n=r(137),i=r(46),o=r(88),a=r(139),s=r(140),u=r(2).Buffer,c=u.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var a=function(e){return”rmd160“===e||”ripemd160“===e?function(e){return(new i).update(e).digest()}:”md5“===e?n:function(t){return o(e).update(t).digest()}}(e),s=”sha512“===e||”sha384“===e?128:64;t.length>s?t=a(t):t.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp©)for(;r.mod(f).cmp(l);)r.iadd(d)}else for(;r.mod(o).cmp(h);)r.iadd(d);if(y(p=r.shrn(1))&&y®&&m(p)&&m®&&a.test(p)&&a.test®)return r}}},function(e,t,r){var n=r(4),i=r(126);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate®)}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow®)},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),f=s.toRed(o);t>0;t–){var l=this._randrange(new n(2),s);r&&r(l);var h=l.toRed(o).redPow©;if(0!==h.cmp(a)&&0!==h.cmp(f)){for(var d=1;d0;t–){var f=this._randrange(new n(2),a),l=e.gcd(f);if(0!==l.cmpn(1))return l;var h=f.toRed(i).redPow(u);if(0!==h.cmp(o)&&0!==h.cmp©){for(var d=1;dwebpack_require){function _typeof(e){return(_typeof=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function“==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol“:typeof e})(e)}var indexOf=webpack_require(290),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push®;return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error(”length octect is too long“);n=0;for(var o=0;ot’”‘);return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+“of”===t||r)},c.prototype._decodeTag=function(e,t,r){var n=f(e,’Failed to decode tag of “‘t
’”‘);if(e.isError(n))return n;var i=l(e,n.primitive,’Failed to get length of “‘t
’”‘);if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+“of”!==t)return e.error(’Failed to match tag: “‘t
’”‘);if(n.primitive||null!==i)return e.skip(i,’Failed to match body of: “‘t
’”‘);var o=e.save(),a=this._skipUntilEnd(e,’Failed to skip indefinite length body: “‘this.tag
’”‘);return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,’Failed to match body of: “‘t
’”‘))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=f(e,t);if(e.isError®)return r;var n,i=l(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if(“end”===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,“end”);if(e.isError(o))return o;var a=r.decode(e,“der”,n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if(“bitstr”===t){var r=e.readUInt8();return e.isError®?r:{unused:r,data:e.raw()}}if(“bmpstr”===t){var n=e.raw();if(n.length%2==1)return e.error(“Decoding of string type: bmpstr length mismatch”);for(var i=“”,o=0;ot“ unsupported”)},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "t
“ time is not supported yet”);n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){var n=r(3),i=r(1).Buffer,o=r(48),a=o.base,s=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function f(e){return e<10?"0"+e:e}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a.Node),c.prototype._encodeComposite=function(e,t,r,n){var o,a=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error(“Multi-octet tag encoding unsupported”);t||(i|=32);return i|=s.tagClassByName[r||“universal”]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,c=n.length;c>=256;c>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;c=1+u;for(var f=n.length;f>0;c–,f>>=8)o[c]=255&f;return this._createEncoderBuffer([o,n])},c.prototype._encodeStr=function(e,t){if(“bitstr”===t)return this._createEncoderBuffer([0|e.unused,e.data]);if(“bmpstr”===t){for(var r=new i(2*e.length),n=0;nt“ unsupported”)},c.prototype._encodeObjid=function(e,t,r){if(“string”==typeof e){if(!t)return this.reporter.error(“string objid given, but no values map found”);if(!t.hasOwnProperty(e))return this.reporter.error(“objid not found in values map”);e=t[e].split(/[s.]+/g);for(var n=0;n=40)return this.reporter.error(“Second objid identifier OOB”);e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=e.length-1;n>=0;n–){a=e[n];for(s[u–]=127&a;(a>>=7)>0;)s[u–]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return“gentime”===t?r=[f(n.getFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),“Z”].join(“”):“utctime”===t?r=[f(n.getFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),“Z”].join(“”):this.reporter.error(“Encoding ”t
“ time is not supported yet”),this._encodeStr(r,“octstr”)},c.prototype._encodeNull=function(){return this._createEncoderBuffer(“”)},c.prototype._encodeInt=function(e,t){if(“string”==typeof e){if(!t)return this.reporter.error(“String int or enum given, but no values map”);if(!t.hasOwnProperty(e))return this.reporter.error(“Values map doesn’t contain: ”+JSON.stringify(e));e=t[e]}if(“number”!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i®}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a–)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return“function”==typeof e&&(e=e(t)),e._getEncoder(“der”).tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error(“length octect is too long”);n=0;for(var o=0;ot’“‘);return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+”of“===t||r)},c.prototype._decodeTag=function(e,t,r){var n=f(e,’Failed to decode tag of ”‘t
’“‘);if(e.isError(n))return n;var i=l(e,n.primitive,’Failed to get length of ”‘t
’“‘);if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+”of“!==t)return e.error(’Failed to match tag: ”‘t
’“‘);if(n.primitive||null!==i)return e.skip(i,’Failed to match body of: ”‘t
’“‘);var o=e.save(),a=this._skipUntilEnd(e,’Failed to skip indefinite length body: ”‘this.tag
’“‘);return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,’Failed to match body of: ”‘t
’“‘))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=f(e,t);if(e.isError®)return r;var n=l(e,r.primitive,t);if(e.isError(n))return n;var i=void 0;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if(”end“===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,”end“);if(e.isError(o))return o;var a=r.decode(e,”der“,n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if(”bitstr“===t){var r=e.readUInt8();return e.isError®?r:{unused:r,data:e.raw()}}if(”bmpstr“===t){var n=e.raw();if(n.length%2==1)return e.error(”Decoding of string type: bmpstr length mismatch“);for(var i=”“,o=0;ot” unsupported“)},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0,a=0;!e.isEmpty();)o<<=7,o|=127&(a=e.readUInt8()),0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r,n,i,o,a,s,u=e.raw().toString();if("gentime"===t)r=0|u.slice(0,4),n=0|u.slice(4,6),i=0|u.slice(6,8),o=0|u.slice(8,10),a=0|u.slice(10,12),s=0|u.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "t
” time is not supported yet“);r=0|u.slice(0,2),n=0|u.slice(2,4),i=0|u.slice(4,6),o=0|u.slice(6,8),a=0|u.slice(8,10),s=0|u.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,i,o,a,s,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){"use strict";var n=r(3),i=r(1).Buffer,o=r(50),a=o.base,s=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function f(e){return e<10?"0"+e:e}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a.Node),c.prototype._encodeComposite=function(e,t,r,n){var o=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error(”Multi-octet tag encoding unsupported“);t||(i|=32);return i|=s.tagClassByName[r||”universal“]<<6}(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var u=1,c=n.length;c>=256;c>>=8)u++;var f=new i(2+u);f[0]=o,f[1]=128|u;for(var l=1+u,h=n.length;h>0;l–,h>>=8)f[l]=255&h;return this._createEncoderBuffer([f,n])},c.prototype._encodeStr=function(e,t){if(”bitstr“===t)return this._createEncoderBuffer([0|e.unused,e.data]);if(”bmpstr“===t){for(var r=new i(2*e.length),n=0;nt” unsupported“)},c.prototype._encodeObjid=function(e,t,r){if(”string“==typeof e){if(!t)return this.reporter.error(”string objid given, but no values map found“);if(!t.hasOwnProperty(e))return this.reporter.error(”objid not found in values map“);e=t[e].split(/[s.]+/g);for(var n=0;n=40)return this.reporter.error(”Second objid identifier OOB“);e.splice(0,2,40*e[0]+e[1])}for(var a=0,s=0;s=128;u>>=7)a++}for(var c=new i(a),f=c.length-1,l=e.length-1;l>=0;l–){var h=e[l];for(c[f–]=127&h;(h>>=7)>0;)c[f–]=128|127&h}return this._createEncoderBuffer©},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return”gentime“===t?r=[f(n.getUTCFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),”Z“].join(”“):”utctime“===t?r=[f(n.getUTCFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),”Z“].join(”“):this.reporter.error(”Encoding “t
” time is not supported yet“),this._encodeStr(r,”octstr“)},c.prototype._encodeNull=function(){return this._createEncoderBuffer(”“)},c.prototype._encodeInt=function(e,t){if(”string“==typeof e){if(!t)return this.reporter.error(”String int or enum given, but no values map“);if(!t.hasOwnProperty(e))return this.reporter.error(”Values map doesn’t contain: “+JSON.stringify(e));e=t[e]}if(”number“!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i®}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var a=1,s=e;s>=256;s>>=8)a++;for(var u=new Array(a),c=u.length-1;c>=0;c–)u[c]=255&e,e>>=8;return 128&u[0]&&u.unshift(0),this._createEncoderBuffer(new i(u))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return”function“==typeof e&&(e=e(t)),e._getEncoder(”der“).tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n=r&&(void 0===n||i<=n)};var i,o=(i=r(0))&&i.__esModule?i:{default:i};function a(e){return(a="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:a,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty(”max“)||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&u&&c};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)},t.fullWidth=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/[^u0020-u007EuFF61-uFF9FuFFA0-uFFDCuFFE8-uFFEE0-9a-zA-Z]/;t.fullWidth=o},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)},t.halfWidth=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/[u0020-u007EuFF61-uFF9FuFFA0-uFFDCuFFE8-uFFEE0-9a-zA-Z]/;t.halfWidth=o},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e,t){(0,i.default)(e);var r=t?new RegExp(”^[“.concat(t,”]+“),”g“):/^s+/g;return e.replace(r,”“)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e,t){(0,i.default)(e);for(var r=t?new RegExp(”[“.concat(t,”]“)):/s/,n=e.length-1;n>=0&&r.test(e[n]);n–);return n72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var r=e[5+t];return!(0===r||6+t+r!==e.length||128&e[4]||t>1&&0===e[4]&&!(128&e[5])||128&e[t+6]||r>1&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error(”DER sequence length is too long“);if(48!==e[0])throw new Error(”Expected DER sequence“);if(e[1]!==e.length-2)throw new Error(”DER sequence length is invalid“);if(2!==e[2])throw new Error(”Expected DER integer“);var t=e[3];if(0===t)throw new Error(”R length is zero“);if(5+t>=e.length)throw new Error(”R length is too long“);if(2!==e[4+t])throw new Error(”Expected DER integer (2)“);var r=e[5+t];if(0===r)throw new Error(”S length is zero“);if(6+t+r!==e.length)throw new Error(”S length is invalid“);if(128&e[4])throw new Error(”R value is negative“);if(t>1&&0===e[4]&&!(128&e[5]))throw new Error(”R value excessively padded“);if(128&e[t+6])throw new Error(”S value is negative“);if(r>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error(”S value excessively padded“);return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var r=e.length,i=t.length;if(0===r)throw new Error(”R length is zero“);if(0===i)throw new Error(”S length is zero“);if(r>33)throw new Error(”R length is too long“);if(i>33)throw new Error(”S length is too long“);if(128&e[0])throw new Error(”R value is negative“);if(128&t[0])throw new Error(”S value is negative“);if(r>1&&0===e[0]&&!(128&e[1]))throw new Error(”R value excessively padded“);if(i>1&&0===t[0]&&!(128&t[1]))throw new Error(”S value excessively padded“);var o=n.allocUnsafe(6+r+i);return o[0]=48,o[1]=o.length-2,o[2]=2,o[3]=e.length,e.copy(o,4),o[4+r]=2,o[5+r]=t.length,t.copy(o,6+r),o}}},function(e,t,r){var n=r(98);function i(e){return e.name||e.toString().match(/function (.*?)s*(/)[1]}function o(e){return n.Nil(e)?”“:i(e.constructor)}function a(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e){return n.Function(e)?e.toJSON?e.toJSON():i(e):n.Array(e)?”Array“:e&&n.Object(e)?”Object“:void 0!==e?e:”“}function u(e,t,r){var i=function(e){return n.Function(e)?”“:n.String(e)?JSON.stringify(e):e&&n.Object(e)?”“:e}(t);return”Expected “+s(e)+”, got“+(”“!==r?” “+r:”“)+(”“!==i?” “+i:”“)}function c(e,t,r){r=r||o(t),this.message=u(e,t,r),a(this,c),this.__type=e,this.__value=t,this.__valueTypeName=r}function f(e,t,r,n,i){e?(i=i||o(n),this.message=function(e,t,r,n,i){var o=‘” of type ’;return“key”===t&&(o=‘“ with key type ’),u(‘property ”’+s®+o+s(e),n,i)}(e,r,t,n,i)):this.message=‘Unexpected property “’t
‘”’,a(this,c),this.__label=r,this.__property=t,this.__type=e,this.__value=n,this.__valueTypeName=i}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,f.prototype=Object.create(Error.prototype),f.prototype.constructor=c,e.exports={TfTypeError:c,TfPropertyTypeError:f,tfCustomError:function(e,t){return new c(e,{},t)},tfSubError:function(e,t,r){return e instanceof f?(t=t+“.”+e.__property,e=new f(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof c&&(e=new f(e.__type,t,r,e.__value,e.__valueTypeName)),a(e),e},tfJSON:s,getValueTypeName:o}},function(e,t,r){var n=r(2).Buffer;e.exports={decode:function(e,t,r){t=t||4,r=void 0===r||r;var n=e.length;if(0===n)return 0;if(n>t)throw new TypeError(“Script number overflow”);if(r&&0==(127&e[n-1])&&(n<=1||0==(128&e[n-2])))throw new Error("Non-minimally encoded script number");if(5===n){var i=e.readUInt32LE(0),o=e.readUInt8(4);return 128&o?-(4294967296*(-129&o)+i):4294967296*o+i}for(var a=0,s=0;s2147483647?5:e>8388607?4:e>32767?3:e>127?2:e>0?1:0}(t),i=n.allocUnsafe®,o=e<0,a=0;a>=8;return 128&i[r-1]?i.writeUInt8(o?128:0,r-1):o&&(i[r-1]|=128),i}}},function(e,t,r){“use strict”;var n=r(2).Buffer,i=9007199254740991;function o(e){if(e<0||e>i||e%1!=0)throw new RangeError(“value out of range”)}function a(e){return o(e),e<253?1:e<=65535?3:e<=4294967295?5:9}e.exports={encode:function e(t,r,i){if(o(t),r||(r=n.allocUnsafe(a(t))),!n.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");return i||(i=0),t<253?(r.writeUInt8(t,i),e.bytes=1):t<=65535?(r.writeUInt8(253,i),r.writeUInt16LE(t,i+1),e.bytes=3):t<=4294967295?(r.writeUInt8(254,i),r.writeUInt32LE(t,i+1),e.bytes=5):(r.writeUInt8(255,i),r.writeUInt32LE(t>>>0,i+1),r.writeUInt32LE(t/4294967296|0,i+5),e.bytes=9),r},decode:function e(t,r){if(!n.isBuffer(t))throw new TypeError(“buffer must be a Buffer instance”);r||(r=0);var i=t.readUInt8®;if(i<253)return e.bytes=1,i;if(253===i)return e.bytes=3,t.readUInt16LE(r+1);if(254===i)return e.bytes=5,t.readUInt32LE(r+1);e.bytes=9;var a=t.readUInt32LE(r+1),s=4294967296*t.readUInt32LE(r+5)+a;return o(s),s},encodingLength:a}},function(e,t,r){var n=r(34),i=r(26),o=r(10),a=r(19),s=r(176),u=r(15),c=o.maybe(o.compile({compressed:a.maybe(a.Boolean),network:a.maybe(a.Network)}));function f(e,t,r){r=r||{},this.compressed=void 0===r.compressed||r.compressed,this.network=r.network||u.bitcoin,this.__d=e||null,this.__Q=null,t&&(this.__Q=n.pointCompress(t,this.compressed))}function l(e,t){if(o(a.Buffer256bit,e),!n.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return o(c,t),new f(e,null,t)}Object.defineProperty(f.prototype,"privateKey",{enumerable:!1,get:function(){return this.__d}}),Object.defineProperty(f.prototype,"publicKey",{get:function(){return this.__Q||(this.__Q=n.pointFromScalar(this.__d,this.compressed)),this.__Q}}),f.prototype.toWIF=function(){if(!this.__d)throw new Error("Missing private key");return s.encode(this.network.wif,this.__d,this.compressed)},f.prototype.sign=function(e){if(!this.__d)throw new Error("Missing private key");return n.sign(e,this.__d)},f.prototype.verify=function(e,t){return n.verify(e,this.publicKey,t)},e.exports={makeRandom:function(e){o(c,e);var t,r=(e=e||{}).rng||i;do{t=r(32),o(a.Buffer256bit,t)}while(!n.isPrivate(t));return l(t,e)},fromPrivateKey:l,fromPublicKey:function(e,t){return o(n.isPoint,e),o(c,t),new f(null,e,t)},fromWIF:function(e,t){var r=s.decode(e),n=r.version;if(a.Array(t)){if(!(t=t.filter(function(e){return n===e.wif}).pop()))throw new Error("Unknown network version")}else if(t=t||u.bitcoin,n!==t.wif)throw new Error("Invalid network version");return l(r.privateKey,{compressed:r.compressed,network:t})}}},function(e,t,r){(function(t){var n=r(52);function i(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function o(e,r,n){var i=new t(n?34:33);return i.writeUInt8(e,0),r.copy(i,1),n&&(i[33]=1),i}e.exports={decode:function(e,t){return i(n.decode(e),t)},decodeRaw:i,encode:function(e,t,r){return"number"==typeof e?n.encode(o(e,t,r)):n.encode(o(e.version,e.privateKey,e.compressed))},encodeRaw:o}}).call(this,r(1).Buffer)},function(e,t,r){var n=r(2).Buffer,i=r(100),o=r(52),a=r(5),s=r(15),u=r(10),c=r(19),f=r(101);function l(e){var t=o.decode(e);if(t.length<21)throw new TypeError(e+" is too short");if(t.length>21)throw new TypeError(e+“ is too long”);return{version:t.readUInt8(0),hash:t.slice(1)}}function h(e){var t=i.decode(e),r=i.fromWords(t.words.slice(1));return{version:t.words[0],prefix:t.prefix,data:n.from®}}e.exports={fromBase58Check:l,fromBech32:h,fromOutputScript:function(e,t){t=t||s.bitcoin;try{return f.p2pkh({output:e,network:t}).address}catch(e){}try{return f.p2sh({output:e,network:t}).address}catch(e){}try{return f.p2wpkh({output:e,network:t}).address}catch(e){}try{return f.p2wsh({output:e,network:t}).address}catch(e){}throw new Error(a.toASM(e)+“ has no matching Address”)},toBase58Check:function(e,t){u(c.tuple(c.Hash160bit,c.UInt8),arguments);var r=n.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),o.encode®},toBech32:function(e,t,r){var n=i.toWords(e);return n.unshift(t),i.encode(r,n)},toOutputScript:function(e,t){var r;t=t||s.bitcoin;try{r=l(e)}catch(e){}if®{if(r.version===t.pubKeyHash)return f.p2pkh({hash:r.hash}).output;if(r.version===t.scriptHash)return f.p2sh({hash:r.hash}).output}else{try{r=h(e)}catch(e){}if®{if(r.prefix!==t.bech32)throw new Error(e+“ has an invalid prefix”);if(0===r.version){if(20===r.data.length)return f.p2wpkh({hash:r.data}).output;if(32===r.data.length)return f.p2wsh({hash:r.data}).output}}}throw new Error(e+“ has no matching Script”)}}},function(e,t,r){var n=r(5),i=r(6);function o(e){var t=n.compile(e);return 22===t.length&&t[0]===i.OP_0&&20===t[1]}o.toJSON=function(){return“Witness pubKeyHash output”},e.exports={check:o}},function(e,t,r){var n=r(5),i=r(6);function o(e){var t=n.compile(e);return 34===t.length&&t[0]===i.OP_0&&32===t[1]}o.toJSON=function(){return“Witness scriptHash output”},e.exports={check:o}},function(e,t,r){var n=r(2).Buffer,i=r(52),o=r(417),a=r(34),s=r(10),u=r(176),c=s.BufferN(32),f=s.compile({wif:s.UInt8,bip32:{public:s.UInt32,private:s.UInt32}}),l={wif:128,bip32:{public:76067358,private:76066276}};function h(e,t,r,n){s(f,n),this.__d=e||null,this.__Q=t||null,this.chainCode=r,this.depth=0,this.index=0,this.network=n,this.parentFingerprint=0}Object.defineProperty(h.prototype,“identifier”,{get:function(){return o.hash160(this.publicKey)}}),Object.defineProperty(h.prototype,“fingerprint”,{get:function(){return this.identifier.slice(0,4)}}),Object.defineProperty(h.prototype,“privateKey”,{enumerable:!1,get:function(){return this.__d}}),Object.defineProperty(h.prototype,“publicKey”,{get:function(){return this.__Q||(this.__Q=a.pointFromScalar(this.__d,this.compressed)),this.__Q}}),h.prototype.isNeutered=function(){return null===this.__d},h.prototype.neutered=function(){var e=m(this.publicKey,this.chainCode,this.network);return e.depth=this.depth,e.index=this.index,e.parentFingerprint=this.parentFingerprint,e},h.prototype.toBase58=function(){var e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=n.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),i.encode®},h.prototype.toWIF=function(){if(!this.privateKey)throw new TypeError(“Missing private key”);return u.encode(this.network.wif,this.privateKey,!0)};h.prototype.derive=function(e){s(s.UInt32,e);var t=e>=2147483648,r=n.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError(“Missing private key for hardened child key”);r[0]=0,this.privateKey.copy(r,1),r.writeUInt32BE(e,33)}else this.publicKey.copy(r,0),r.writeUInt32BE(e,33);var i,u=o.hmacSHA512(this.chainCode,r),c=u.slice(0,32),f=u.slice(32);if(!a.isPrivate©)return this.derive(e+1);if(this.isNeutered()){var l=a.pointAddScalar(this.publicKey,c,!0);if(null===l)return this.derive(e+1);i=m(l,f,this.network)}else{var h=a.privateAdd(this.privateKey,c);if(null==h)return this.derive(e+1);i=y(h,f,this.network)}return i.depth=this.depth+1,i.index=e,i.parentFingerprint=this.fingerprint.readUInt32BE(0),i};var d=Math.pow(2,31)-1;function p(e){return s.UInt32(e)&&e<=d}function b(e){return s.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function y(e,t,r){if(s({privateKey:c,chainCode:c},{privateKey:e,chainCode:t}),r=r||l,!a.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new h(e,null,t,r)}function m(e,t,r){if(s({publicKey:s.BufferN(33),chainCode:c},{publicKey:e,chainCode:t}),r=r||l,!a.isPoint(e))throw new TypeError("Point is not on the curve");return new h(null,e,t,r)}h.prototype.deriveHardened=function(e){return s(p,e),this.derive(e+2147483648)},h.prototype.derivePath=function(e){s(b,e);var t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce(function(e,t){var r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)},h.prototype.sign=function(e){return a.sign(e,this.privateKey)},h.prototype.verify=function(e,t){return a.verify(e,this.publicKey,t)},e.exports={fromBase58:function(e,t){var r=i.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||l;var n=r.readUInt32BE(0);if(n!==t.bip32.private&&n!==t.bip32.public)throw new TypeError("Invalid network version");var o=r[4],a=r.readUInt32BE(5);if(0===o&&0!==a)throw new TypeError("Invalid parent fingerprint");var s=r.readUInt32BE(9);if(0===o&&0!==s)throw new TypeError("Invalid index");var u,c=r.slice(13,45);if(n===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");u=y(r.slice(46,78),c,t)}else u=m(r.slice(45,78),c,t);return u.depth=o,u.index=s,u.parentFingerprint=a,u},fromPrivateKey:y,fromPublicKey:m,fromSeed:function(e,t){if(s(s.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError(“Seed should be at most 512 bits”);t=t||l;var r=o.hmacSHA512(“Bitcoin seed”,e);return y(r.slice(0,32),r.slice(32),t)}}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){“use strict”;(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,“__esModule”,{value:!0});const i=n(r(23)),o=n(r(424)),a=n(r(4)),s=n(r(46)),u=r(24),c=r(20),f=1e8,l=“zone-file”,h=“registration”,d=“transaction”;class p{broadcastTransaction(e){return Promise.reject(new Error(`Not implemented, broadcastTransaction(${e})`))}getBlockHeight(){return Promise.reject(new Error(“Not implemented, getBlockHeight()”))}getTransactionInfo(e){return Promise.reject(new Error(`Not implemented, getTransactionInfo(${e})`))}getNetworkedUTXOs(e){return Promise.reject(new Error(`Not implemented, getNetworkedUTXOs(${e})`))}}t.BitcoinNetwork=p;class b{constructor(e,t,r,n=i.default.networks.bitcoin){this.blockstackAPIUrl=e,this.broadcastServiceUrl=t,this.layer1=n,this.btc=r,this.DUST_MINIMUM=5500,this.includeUtxoMap={},this.excludeUtxoSet=[],this.MAGIC_BYTES=“id”}coerceAddress(e){const{hash:t,version:r}=i.default.address.fromBase58Check(e),n=[i.default.networks.bitcoin.scriptHash,i.default.networks.testnet.scriptHash],o=[i.default.networks.bitcoin.pubKeyHash,i.default.networks.testnet.pubKeyHash];let a;if(n.indexOf®>=0)a=this.layer1.scriptHash;else{if(!(o.indexOf®>=0))throw new Error(`Unrecognized address version number ${r} in ${e}`);a=this.layer1.pubKeyHash}return i.default.address.toBase58Check(t,a)}getDefaultBurnAddress(){return this.coerceAddress(“1111111111111111111114oLvT2”)}getNamePriceV1(e){return fetch(`${this.blockstackAPIUrl}/v1/prices/names/${e}`).then(t=>{if(!t.ok)throw new Error(`Failed to query name price for ${e}`);return t}).then(e=>e.json()).then(e=>e.name_price).then(t=>{if(!t||!t.satoshis)throw new Error(`Failed to get price for ${e}. Does the namespace exist?`);return t.satoshis{if(!t.ok)throw new Error(`Failed to query name price for ${e}`);return t}).then(e=>e.json()).then(t=>{if(!t||!t.satoshis)throw new Error(`Failed to get price for ${e}`);return t.satoshis{if(200!==e.status)throw new Error(“The upstream node does not handle the /v2/ price namespace”);return e}).then(e=>e.json()).then(e=>e.name_price).then(t=>{if(!t)throw new Error(`Failed to get price for ${e}. Does the namespace exist?`);const r={units:t.units,amount:new a.default(t.amount)};if(“BTC”===t.units){const e=new a.default(String(this.DUST_MINIMUM));r.amount.ucmp(e)<0&&(r.amount=e)}return r})}getNamespacePriceV2(e){return fetch(`${this.blockstackAPIUrl}/v2/prices/namespaces/${e}`).then(e=>{if(200!==e.status)throw new Error(“The upstream node does not handle the /v2/ price namespace”);return e}).then(e=>e.json()).then(t=>{if(!t)throw new Error(`Failed to get price for ${e}`);const r={units:t.units,amount:new a.default(t.amount)};if(“BTC”===t.units){const e=new a.default(String(this.DUST_MINIMUM));r.amount.ucmp(e)<0&&(r.amount=e)}return r})}getNamePrice(e){return Promise.resolve().then(()=>this.getNamePriceV2(e)).catch(()=>this.getNamePriceV1(e))}getNamespacePrice(e){return Promise.resolve().then(()=>this.getNamespacePriceV2(e)).catch(()=>this.getNamespacePriceV1(e))}getGracePeriod(e){return Promise.resolve(5e3)}getNamesOwned(e){const t=this.coerceAddress(e);return fetch(`${this.blockstackAPIUrl}/v1/addresses/bitcoin/${t}`).then(e=>e.json()).then(e=>e.names)}getNamespaceBurnAddress(e){return Promise.all([fetch(`${this.blockstackAPIUrl}/v1/namespaces/${e}`),this.getBlockHeight()]).then(([t,r])=>{if(404===t.status)throw new Error(`No such namespace ‘${e}’`);return Promise.all([t.json(),r])}).then(([e,t])=>{let r=this.getDefaultBurnAddress();return 2===e.version&&e.reveal_block+52595>=t&&(r=e.address),r}).then(e=>this.coerceAddress(e))}getNameInfo(e){c.Logger.debug(this.blockstackAPIUrl);const t=`${this.blockstackAPIUrl}/v1/names/${e}`;return fetch(t).then(e=>{if(404===e.status)throw new Error(“Name not found”);if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>(c.Logger.debug(`nameInfo: ${JSON.stringify(e)}`),e.address?Object.assign({},e,{address:this.coerceAddress(e.address)}):e))}getNamespaceInfo(e){return fetch(`${this.blockstackAPIUrl}/v1/namespaces/${e}`).then(e=>{if(404===e.status)throw new Error(“Namespace not found”);if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>e.address&&e.recipient_address?Object.assign({},e,{address:this.coerceAddress(e.address),recipient_address:this.coerceAddress(e.recipient_address)}):e)}getZonefile(t){return fetch(`${this.blockstackAPIUrl}/v1/zonefiles/${t}`).then(r=>{if(200===r.status)return r.text().then(r=>{const n=i.default.crypto.sha256(e.from®),o=(new s.default).update(n).digest(“hex”);if(o!==t)throw new Error(`Zone file contents hash to ${o}, not ${t}`);return r});throw new Error(`Bad response status: ${r.status}`)})}getAccountStatus(e,t){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/${t}/status`).then(e=>{if(404===e.status)throw new Error(“Account not found”);if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{return Object.assign({},e,{address:this.coerceAddress(e.address),debit_value:new a.default(String(e.debit_value)),credit_value:new a.default(String(e.credit_value))})})}getAccountHistoryPage(e,t){const r=`${this.blockstackAPIUrl}/v1/accounts/${e}/history?page=${t}`;return fetch®.then(e=>{if(404===e.status)throw new Error(“Account not found”);if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get account history page: ${e.error}`);return e.map(e=>(e.address=this.coerceAddress(e.address),e.debit_value=new a.default(String(e.debit_value)),e.credit_value=new a.default(String(e.credit_value)),e))})}getAccountAt(e,t){const r=`${this.blockstackAPIUrl}/v1/accounts/${e}/history/${t}`;return fetch®.then(e=>{if(404===e.status)throw new Error(“Account not found”);if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get historic account state: ${e.error}`);return e.map(e=>(e.address=this.coerceAddress(e.address),e.debit_value=new a.default(String(e.debit_value)),e.credit_value=new a.default(String(e.credit_value)),e))})}getAccountTokens(e){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/tokens`).then(e=>{if(404===e.status)throw new Error(“Account not found”);if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get token list: ${e.error}`);return e})}getAccountBalance(e,t){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/${t}/balance`).then(e=>{if(404===e.status)return Promise.resolve().then(()=>new a.default(“0”));if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get account balance: ${e.error}`);let t=“0”;return e&&e.balance&&(t=e.balance),new a.default(t)})}broadcastServiceFetchHelper(e,t){const r={method:“POST”,headers:{Accept:“application/json”,“Content-Type”:“application/json”},body:JSON.stringify(t)},n=`${this.broadcastServiceUrl}/v1/broadcast/${e}`;return fetch(n,r).then(e=>{if(e.ok)return e.json();throw new u.RemoteServiceError(e)})}broadcastTransaction(e,t=null,r=6){if(!e){const e=new u.MissingParameterError(“transaction”);return Promise.reject(e)}if(!r&&0!==r){const e=new u.MissingParameterError(“confirmations”);return Promise.reject(e)}if(null===t)return this.btc.broadcastTransaction(e);{const n=d,i={transaction:e,transactionToWatch:t,confirmations:r};return this.broadcastServiceFetchHelper(n,i)}}broadcastZoneFile(e,t=null){if(!e)return Promise.reject(new u.MissingParameterError(“zoneFile”));if(t){const r={zoneFile:e,transactionToWatch:t},n=l;return this.broadcastServiceFetchHelper(n,r)}{const t={zonefile:e};return fetch(`${this.blockstackAPIUrl}/v1/zonefile/`,{method:“POST”,body:JSON.stringify(t),headers:{“Content-Type”:“application/json”}}).then(e=>{return e.json().then(t=>{if(t.hasOwnProperty(“error”))throw new u.RemoteServiceError(e);return t.servers})})}}broadcastNameRegistration(e,t,r){if(!e){const e=new u.MissingParameterError(“preorderTransaction”);return Promise.reject(e)}if(!t){const e=new u.MissingParameterError(“registerTransaction”);return Promise.reject(e)}if(!r){const e=new u.MissingParameterError(“zoneFile”);return Promise.reject(e)}const n={preorderTransaction:e,registerTransaction:t,zoneFile:r},i=h;return this.broadcastServiceFetchHelper(i,n)}getFeeRate(){return fetch(“https://bitcoinfees.earn.com/api/v1/fees/recommended”).then(e=>e.json()).then(e=>Math.floor(e.fastestFee))}countDustOutputs(){throw new Error(“Not implemented.”)}getUTXOs(e){return this.getNetworkedUTXOs(e).then(t=>{let r=t.concat();this.includeUtxoMap.hasOwnProperty(e)&&(r=t.concat(this.includeUtxoMap[e]));const n=this.excludeUtxoSet;return r=r.filter(e=>{return!n.reduce((t,r)=>t||r.tx_hash===e.tx_hash&&r.tx_output_n===e.tx_output_n,!1)})})}modifyUTXOSetFrom(t){const r=i.default.Transaction.fromHex(t),n=this.excludeUtxoSet.concat();r.ins.forEach(t=>{const r=e.from(t.hash);r.reverse(),n.push({tx_hash:r.toString(“hex”),tx_output_n:t.index})}),this.excludeUtxoSet=n;const o=e.from(r.getHash().reverse()).toString(“hex”);r.outs.forEach((e,t)=>{if(function(e){try{return i.default.payments.embed({output:e},{validate:!0}),!0}catch(e){return!1}}(e.script))return;const r=i.default.address.fromOutputScript(e.script,this.layer1);let n=[];this.includeUtxoMap.hasOwnProperty®&&(n=n.concat(this.includeUtxoMap[r])),n.push({tx_hash:o,confirmations:0,value:e.value,tx_output_n:t}),this.includeUtxoMap[r]=n})}resetUTXOs(e){delete this.includeUtxoMap[e],this.excludeUtxoSet=[]}getConsensusHash(){return fetch(`${this.blockstackAPIUrl}/v1/blockchains/bitcoin/consensus`).then(e=>e.json()).then(e=>e.consensus_hash)}getTransactionInfo(e){return this.btc.getTransactionInfo(e)}getBlockHeight(){return this.btc.getBlockHeight()}getNetworkedUTXOs(e){return this.btc.getNetworkedUTXOs(e)}}t.BlockstackNetwork=b;class y extends b{constructor(e,t,r){super(e,t,r,i.default.networks.testnet)}getFeeRate(){return Promise.resolve(Math.floor(1e-5*f))}}t.LocalRegtest=y;class m extends p{constructor(e,t){super(),this.bitcoindUrl=e,this.bitcoindCredentials=t,this.importedBefore={}}broadcastTransaction(t){const r={jsonrpc:“1.0”,method:“sendrawtransaction”,params:[t]},n={Authorization:`Basic ${e.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString(“base64”)}`};return fetch(this.bitcoindUrl,{method:“POST”,body:JSON.stringify®,headers:n}).then(e=>e.json()).then(e=>e.result)}getBlockHeight(){const t={Authorization:`Basic ${e.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString(“base64”)}`};return fetch(this.bitcoindUrl,{method:“POST”,body:JSON.stringify({jsonrpc:“1.0”,method:“getblockcount”}),headers:t}).then(e=>e.json()).then(e=>e.result)}getTransactionInfo(t){const r={jsonrpc:“1.0”,method:“gettransaction”,params:[t]},n=e.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString(“base64”),i={Authorization:`Basic ${n}`};return fetch(this.bitcoindUrl,{method:“POST”,body:JSON.stringify®,headers:i}).then(e=>e.json()).then(e=>e.result).then(e=>e.blockhash).then(e=>{const t={jsonrpc:“1.0”,method:“getblockheader”,params:[e]};return i.Authorization=`Basic ${n}`,fetch(this.bitcoindUrl,{method:“POST”,body:JSON.stringify(t),headers:i})}).then(e=>e.json()).then(e=>{if(e&&e.result)return{block_height:e.result.height};throw new Error(“Unconfirmed transaction”)})}getNetworkedUTXOs(t){const r={jsonrpc:“1.0”,method:“importaddress”,params:[t]},n={jsonrpc:“1.0”,method:“listunspent”,params:[0,9999999,[t]]},i={Authorization:`Basic ${e.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString(“base64”)}`};return(this.importedBefore[t]?Promise.resolve():fetch(this.bitcoindUrl,{method:“POST”,body:JSON.stringify®,headers:i}).then(()=>{this.importedBefore[t]=!0})).then(()=>fetch(this.bitcoindUrl,{method:“POST”,body:JSON.stringify(n),headers:i})).then(e=>e.json()).then(e=>e.result).then(e=>e.map(e=>({value:Math.round(e.amount*f),confirmations:e.confirmations,tx_hash:e.txid,tx_output_n:e.vout})))}}t.BitcoindAPI=m;class g extends p{constructor(e=“https://utxo.technofractal.com/”){super(),this.apiUrl=e}broadcastTransaction(e){const t={rawtx:e};return fetch(`${this.apiUrl}/tx/send`,{method:“POST”,headers:{“Content-Type”:“application/json”},body:JSON.stringify(t)}).then(e=>e.json())}getBlockHeight(){return fetch(`${this.apiUrl}/status`).then(e=>e.json()).then(e=>e.blocks)}getTransactionInfo(e){return fetch(`${this.apiUrl}/tx/${e}`).then(e=>e.json()).then(e=>{if(e.error)throw new Error(`Error finding transaction: ${e.error}`);return fetch(`${this.apiUrl}/block/${e.blockHash}`)}).then(e=>e.json()).then(e=>({block_height:e.height}))}getNetworkedUTXOs(e){return fetch(`${this.apiUrl}/addr/${e}/utxo`).then(e=>e.json()).then(e=>e.map(e=>({value:e.satoshis,confirmations:e.confirmations,tx_hash:e.txid,tx_output_n:e.vout})))}}t.InsightClient=g;class v extends p{constructor(e=“https://blockchain.info”){super(),this.utxoProviderUrl=e}getBlockHeight(){return fetch(`${this.utxoProviderUrl}/latestblock?cors=true`).then(e=>e.json()).then(e=>e.height)}getNetworkedUTXOs(e){return fetch(`${this.utxoProviderUrl}/unspent?format=json&active=${e}&cors=true`).then(e=>500===e.status?(c.Logger.debug(“UTXO provider 500 usually means no UTXOs: returning []”),{unspent_outputs:[]}):e.json()).then(e=>e.unspent_outputs).then(e=>e.map(e=>{return{value:e.value,tx_output_n:e.tx_output_n,confirmations:e.confirmations,tx_hash:e.tx_hash_big_endian}}))}getTransactionInfo(e){return fetch(`${this.utxoProviderUrl}/rawtx/${e}?cors=true`).then(t=>{if(200===t.status)return t.json();throw new Error(`Could not lookup transaction info for ‘${e}’. Server error.`)}).then(e=>({block_height:e.block_height}))}broadcastTransaction(t){const r=new o.default;return r.append(“tx”,t),fetch(`${this.utxoProviderUrl}/pushtx?cors=true`,{method:“POST”,body:r}).then(r=>{return r.text().then(n=>{if(n.toLowerCase().indexOf(“transaction submitted”)>=0){return e.from(i.default.Transaction.fromHex(t).getHash().reverse()).toString(“hex”)}throw new u.RemoteServiceError(r,`Broadcast transaction failed with message: ${n}`)})})}}t.BlockchainInfoApi=v;const _=new y(“http://localhost:16268”,“http://localhost:16269”,new m(“http://localhost:18332/”,{username:“blockstack”,password:“blockstacksystem”})),w=new b(“https://core.blockstack.org”,“https://broadcast.blockstack.org”,new v);t.network={BlockstackNetwork:b,LocalRegtest:y,BlockchainInfoApi:v,BitcoindAPI:m,InsightClient:g,defaults:{LOCAL_REGTEST:_,MAINNET_DEFAULT:w}}}).call(this,r(1).Buffer)},function(e,t,r){“use strict”;var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,“__esModule”,{value:!0});const o=i(r(184)),a=r(25),s=r(185),u=r(16),c=r(70),f=r(24),l=r(58),h=r(43),d=r(30),p=r(71),b=r(29),y=r(20),m=r(122),g=r(429),v={“@type”:“Person”,“@context”:“http://schema.org”};function _(){u.checkWindowAPI(“getAuthResponseToken”,“location”);const e=o.default.parse(window.location.search);return e.authResponse?e.authResponse:“”}function w(e,t=h.DEFAULT_BLOCKSTACK_HOST){const r=`${t}?authRequest=${e=e||l.makeAuthRequest()}`;if(u.checkWindowAPI(“redirectToSignInWithAuthRequest”,“navigator”),u.checkWindowAPI(“redirectToSignInWithAuthRequest”,“location”),/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent))return y.Logger.info(“detected mobile OS, sending to https”),void(window.location.href=r);g.launchCustomProtocol(e,function(){y.Logger.info(“protocol handler detected”)},function(){y.Logger.warn(“protocol handler not detected”),window.location.href=r})}t.isUserSignedIn=function(){return console.warn(“DEPRECATION WARNING: The static isUserSignedIn() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method isUserSignedIn().”),(new p.UserSession).isUserSignedIn()},t.redirectToSignIn=function(e,t,r){console.warn(“DEPRECATION WARNING: The static redirectToSignIn() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method redirectToSignIn().”),w(l.makeAuthRequest(null,e,t,r))},t.isSignInPending=function(){try{if(m.protocolEchoReplyDetection())return y.Logger.info(“protocolEchoReply detected from isSignInPending call, the page is about to redirect.”),!0}catch(e){y.Logger.error(`Error checking for protocol echo reply isSignInPending: ${e}`)}return!!_()},t.getAuthResponseToken=_,t.loadUserData=function(){return console.warn(“DEPRECATION WARNING: The static loadUserData() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method loadUserData().”),(new p.UserSession).loadUserData()},t.signUserOut=function(e,t){if((t||new p.UserSession).store.deleteSessionData(),e){if(“undefined”==typeof window){const t=“`signUserOut` called with `redirectURL` specified”+` (“${e}”)`+“ but `window.location.href` is not available in this environment”;throw y.Logger.error(t),new Error(t)}window.location.href=e}},t.redirectToSignInWithAuthRequest=w,t.handlePendingSignIn=function(e=“”,t=_(),r,i){return n(this,void 0,void 0,function*(){try{if(m.protocolEchoReplyDetection()){const e=“handlePendingSignIn called while protocolEchoReply was detected, and the page is about to redirect. This function will resolve with an error after several seconds, if the page was not redirected for some reason.”;return y.Logger.info(e),new Promise((t,r)=>{setTimeout(()=>{y.Logger.error(“Page should have redirected by now. handlePendingSignIn will now throw.”),r(e)},3e3)})}}catch(e){y.Logger.error(`Error checking for protocol echo reply handlePendingSignIn: ${e}`)}if(i||(i=new p.UserSession),r||(r=i.store.getSessionData().transitKey),!e){const r=a.decodeToken(t).payload;u.isLaterVersion(r.version,“1.3.0”)&&null!==r.blockstackAPIUrl&&void 0!==r.blockstackAPIUrl&&(y.Logger.info(`Overriding ${b.config.network.blockstackAPIUrl} `+`with ${r.blockstackAPIUrl}`),b.config.network.blockstackAPIUrl=r.blockstackAPIUrl),e=`${b.config.network.blockstackAPIUrl}${h.NAME_LOOKUP_PATH}`}if(!(yield s.verifyAuthResponse(t,e)))throw new f.LoginFailedError(“Invalid authentication response.”);const n=a.decodeToken(t).payload;let o=n.private_key,g=n.core_token;if(u.isLaterVersion(n.version,“1.1.0”)){if(void 0===r||null==r)throw new f.LoginFailedError(“Authenticating with protocol > 1.1.0 requires transit key, and none found.”);if(void 0!==n.private_key&&null!==n.private_key)try{o=l.decryptPrivateKey(r,n.private_key)}catch(e){y.Logger.warn(“Failed decryption of appPrivateKey, will try to use as given”);try{u.hexStringToECPair(n.private_key)}catch(e){throw new f.LoginFailedError(“Failed decrypting appPrivateKey. Usually means that the transit key has changed during login.”)}}if(null!=g)try{g=l.decryptPrivateKey(r,g)}catch(e){y.Logger.info(“Failed decryption of coreSessionToken, will try to use as given”)}}let _,w=h.BLOCKSTACK_DEFAULT_GAIA_HUB_URL;u.isLaterVersion(n.version,“1.2.0”)&&null!==n.hubUrl&&void 0!==n.hubUrl&&(w=n.hubUrl),u.isLaterVersion(n.version,“1.3.0”)&&null!==n.associationToken&&void 0!==n.associationToken&&(_=n.associationToken);const S={username:n.username,profile:n.profile,email:n.email,decentralizedID:n.iss,identityAddress:c.getAddressFromDID(n.iss),appPrivateKey:o,coreSessionToken:g,authResponseToken:t,hubUrl:w,gaiaAssociationToken:_},k=n.profile_url;if(!S.profile&&k){const e=yield fetch(k);if(e.ok){const t=yield e.text(),r=JSON.parse(t),n=d.extractProfile(r[0].token);S.profile=n}else S.profile=Object.assign({},v)}else S.profile=n.profile;const x=i.store.getSessionData();return x.userData=S,i.store.setSessionData(x),S})}},function(e,t,r){“use strict”;function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}()}function i(e){return(i=“function”==typeof Symbol&&“symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&“function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?“symbol”:typeof e})(e)}var o=r(427),a=r(428);function s(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function u(e,t){return t.decode?a(e):e}function c(e){var t=e.indexOf(“?”);return-1===t?“”:e.slice(t+1)}function f(e,t){var r=function(e){var t;switch(e.arrayFormat){case“index”:return function(e,r,n){t=/[(d*)]$/.exec(e),e=e.replace(/[d*]$/,“”),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case“bracket”:return function(e,r,n){t=/([])$/.exec(e),e=e.replace(/[]$/,“”),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=Object.assign({decode:!0,arrayFormat:“none”},t)),o=Object.create(null);if(“string”!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,“”)))return o;var a=!0,s=!1,c=void 0;try{for(var f,l=e.split(“&”)[Symbol.iterator]();!(a=(f=l.next()).done);a=!0){var h=n(f.value.replace(/+/g,“ ”).split(“=”),2),d=h[0],p=h[1];p=void 0===p?null:u(p,t),r(u(d,t),p,o)}}catch(e){s=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw c}}return Object.keys(o).sort().reduce(function(e,t){var r=o[t];return Boolean®&&“object”===i®&&!Array.isArray®?e[t]=function e(t){return Array.isArray(t)?t.sort():“object”===i(t)?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}®:e[t]=r,e},Object.create(null))}t.extract=c,t.parse=f,t.stringify=function(e,t){if(!e)return“”;var r=function(e){switch(e.arrayFormat){case“index”:return function(t,r,n){return null===r?[s(t,e),“[”,n,“]”].join(“”):[s(t,e),“[”,s(n,e),“]=”,s(r,e)].join(“”)};case“bracket”:return function(t,r){return null===r?[s(t,e),“[]”].join(“”):[s(t,e),“[]=”,s(r,e)].join(“”)};default:return function(t,r){return null===r?s(t,e):[s(t,e),“=”,s(r,e)].join(“”)}}}(t=Object.assign({encode:!0,strict:!0,arrayFormat:“none”},t)),n=Object.keys(e);return!1!==t.sort&&n.sort(t.sort),n.map(function(n){var i=e[n];if(void 0===i)return“”;if(null===i)return s(n,t);if(Array.isArray(i)){var o=[],a=!0,u=!1,c=void 0;try{for(var f,l=i.slice()[Symbol.iterator]();!(a=(f=l.next()).done);a=!0){var h=f.value;void 0!==h&&o.push(r(n,h,o.length))}}catch(e){u=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(u)throw c}}return o.join(“&”)}return s(n,t)+“=”+s(i,t)}).filter(function(e){return e.length>0}).join(“&”)},t.parseUrl=function(e,t){var r=e.indexOf(“#”);return-1!==r&&(e=e.slice(0,r)),{url:e.split(“?”)[0]||“”,query:f(c(e),t)}}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(25),i=r(70),o=r(39),a=r(16),s=r(186);function u(e){const t=n.decodeToken(e).payload.public_keys;if(1!==t.length)throw new Error(“Multiple public keys are not supported”);{const r=t[0];try{return!!new n.TokenVerifier(“ES256k”,r).verify(e)}catch(e){return!1}}}function c(e){const t=n.decodeToken(e).payload,r=t.public_keys,a=i.getAddressFromDID(t.iss);if(1!==r.length)throw new Error(“Multiple public keys are not supported”);if(o.publicKeyToAddress(r[0])===a)return!0;return!1}function f(e,t){return Promise.resolve().then(()=>{const r=n.decodeToken(e).payload;if(!r.username)return!0;if(null===r.username)return!0;if(null===t)return!1;const o=r.username,a=`${t.replace(//$/,“”)}/${o}`;return fetch(a).then(e=>e.text()).then(e=>{const t=JSON.parse(e);if(t.hasOwnProperty(“address”)){return t.address===i.getAddressFromDID(r.iss)}return!1})}).catch(()=>!1)}function l(e){const t=n.decodeToken(e).payload;if(t.iat){if(“number”!=typeof t.iat)return!1;const e=new Date(1e3*t.iat);return!((new Date).getTime()e.getTime())}return!0}function d(e){const t=n.decodeToken(e).payload;return a.isSameOriginAbsoluteUrl(t.domain_name,t.manifest_uri)}function p(e){const t=n.decodeToken(e).payload;return a.isSameOriginAbsoluteUrl(t.domain_name,t.redirect_uri)}function b(e){return Promise.resolve().then(()=>{if(“none”===n.decodeToken(e).header.alg)throw new Error(“Token must be signed in order to be verified”)}).then(()=>Promise.all([h(e),l(e),u(e),c(e),d(e),p(e)])).then(e=>!!e.every(Boolean))}t.doSignaturesMatchPublicKeys=u,t.doPublicKeysMatchIssuer=c,t.doPublicKeysMatchUsername=f,t.isIssuanceDateValid=l,t.isExpirationDateValid=h,t.isManifestUriValid=d,t.isRedirectUriValid=p,t.verifyAuthRequest=b,t.verifyAuthRequestAndLoadManifest=function(e){return Promise.resolve().then(()=>b(e).then(t=>t?s.fetchAppManifest(e):Promise.reject()))},t.verifyAuthResponse=function(e,t){return Promise.all([h(e),l(e),u(e),c(e),f(e,t)]).then(e=>!!e.every(Boolean))}},function(e,t,r){“use strict”;var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,“__esModule”,{value:!0});const i=n(r(184)),o=r(25),a=r(16),s=r(20);t.getAuthRequestFromURL=function(){a.checkWindowAPI(“getAuthRequestFromURL”,“location”);const e=i.default.parse(window.location.search);return e.authRequest?e.authRequest.split(`${a.BLOCKSTACK_HANDLER}:`).join(“”):null},t.fetchAppManifest=function(e){return new Promise((t,r)=>{if(e){const n=o.decodeToken(e).payload.manifest_uri;try{s.Logger.debug(`Fetching manifest from ${n}`),fetch(n).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{t(e)}).catch(e=>{s.Logger.debug(e.stack),r(“Could not fetch manifest.json”)})}catch(e){s.Logger.debug(e.stack),r(“Could not fetch manifest.json”)}}else r(“Invalid auth request”)})},t.redirectUserToApp=function(e,t){let r=o.decodeToken(e).payload.redirect_uri;if(s.Logger.debug®,!r)throw new Error(“Invalid redirect URI”);r=a.updateQueryStringParameter(r,“authResponse”,t),a.checkWindowAPI(“redirectUserToApp”,“location”),window.location.href=r}},function(e,t,r){“use strict”;var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,“__esModule”,{value:!0});const i=r(188);t.connectToGaiaHub=i.connectToGaiaHub,t.uploadToGaiaHub=i.uploadToGaiaHub,t.BLOCKSTACK_GAIA_HUB_LABEL=i.BLOCKSTACK_GAIA_HUB_LABEL;const o=r(105),a=r(39),s=r(189),u=r(24),c=r(20),f=r(71),l=“.sig”;function h(e,t,r,i){return n(this,void 0,void 0,function*(){const n=yield s.lookupProfile(t,i);let o=null;if(n.hasOwnProperty(“apps”)&&n.apps.hasOwnProperty®){o=`${n.apps[r].replace(//?(?|#|$)/,“/$1”)}${e}`}return o})}function d(e,t,r){const n=Object.assign({},t);if(!n.publicKey){const e=(r||new f.UserSession).loadUserData().appPrivateKey;n.publicKey=a.getPublicKeyFromPrivate(e)}const i=o.encryptECIES(n.publicKey,e);return JSON.stringify(i)}function p(e,t,r,o){return n(this,void 0,void 0,function*(){const n=b({app:e,username:t},o);let a;if(t)a=yield h(“/”,n.username,n.app,r);else{o||(o=new f.UserSession);const e=yield o.getOrSetLocalGaiaHubConnection();a=yield i.getFullReadUrl(“/”,e)}const s=a.match(/([13][a-km-zA-HJ-NP-Z0-9]{26,35})/);if(!s)throw new Error(“Failed to parse gaia address”);return s[s.length-1]})}function b(e,t){const r=Object.assign({},e);if(r.username&&!r.app){const e=(t||new f.UserSession).appConfig;if(!e)throw new u.InvalidStateError(“Missing AppConfig”);r.app=e.appDomain}return r}function y(e,t,r){return n(this,void 0,void 0,function*(){const n=b(t,r);let o;if(n.username)o=yield h(e,n.username,n.app,n.zoneFileLookupURL);else{const t=yield(r||new f.UserSession).getOrSetLocalGaiaHubConnection();o=yield i.getFullReadUrl(e,t)}if(o)return o;throw new Error(“Missing readURL”)})}function m(e,t,r,n,i,o){return Promise.resolve().then(()=>{return y(e,{app:t,username:r,zoneFileLookupURL:n},o)}).then(e=>fetch(e)).then(t=>{if(200!==t.status){if(404===t.status)return c.Logger.debug(`getFile ${e} returned 404, returning null`),null;throw new Error(`getFile ${e} failed with HTTP status ${t.status}`)}const r=t.headers.get(“Content-Type”);return i||null===r||r.startsWith(“text”)||“application/json”===r?t.text():t.arrayBuffer()})}t.deleteFile=function(e){Promise.reject(new Error(`Delete of ${e} not supported by gaia hubs`))},t.getUserAppFileUrl=h,t.encryptContent=d,t.decryptContent=function(e,t,r){const n=Object.assign({},t);n.privateKey||(n.privateKey=(r||new f.UserSession).loadUserData().appPrivateKey);try{const t=JSON.parse(e);return o.decryptECIES(n.privateKey,t)}catch(e){throw e instanceof SyntaxError?new Error(“Failed to parse encrypted content JSON. The content may not be encrypted. If using getFile, try passing { decrypt: false }.”):e}},t.getFileUrl=y,t.getFile=function(e,t,r){const n={decrypt:!0,verify:!1,username:null,app:“undefined”!=typeof window?window.location.origin:void 0,zoneFileLookupURL:null},i=Object.assign({},n,t);return r||(r=new f.UserSession),i.verify&&!i.decrypt?function(e,t,r){return Promise.all([m(e,t.app,t.username,t.zoneFileLookupURL,!1,r),m(`${e}${l}`,t.app,t.username,t.zoneFileLookupURL,!0,r),p(t.app,t.username,t.zoneFileLookupURL,r)]).then(([t,r,n])=>{if(!t)return t;if(!n)throw new u.SignatureVerificationError(“Failed to get gaia address for verification of: ”+`${e}`);if(!r||“string”!=typeof r)throw new u.SignatureVerificationError(“Failed to obtain signature for file: ”+`${e} – looked in ${e}${l}`);let i,s;try{const t=JSON.parse®;i=t.signature,s=t.publicKey}catch(t){throw t instanceof SyntaxError?new Error(“Failed to parse signature content JSON ”+`(path: ${e}${l})`+“ The content may be corrupted.”):t}const c=a.publicKeyToAddress(s);if(n!==c)throw new u.SignatureVerificationError(`Signer pubkey address (${c}) doesn’t`+` match gaia address (${n})`);if(o.verifyECDSA(t,s,i))return t;throw new u.SignatureVerificationError(“Contents do not match ECDSA signature: ”+`path: ${e}, signature: ${e}${l}`)})}(e,i,r):m(e,i.app,i.username,i.zoneFileLookupURL,!!i.decrypt,r).then(t=>{if(null===t)return t;if(i.decrypt&&!i.verify){if(“string”!=typeof t)throw new Error(“Expected to get back a string for the cipherText”);return r.decryptContent(t)}if(i.decrypt&&i.verify){if(“string”!=typeof t)throw new Error(“Expected to get back a string for the cipherText”);return function(e,t,r,n,i,s){const c=e.loadUserData().appPrivateKey,f=a.getPublicKeyFromPrivate©;let l;if(i)l=p(n,i,s,e);else{const e=a.publicKeyToAddress(f);l=Promise.resolve(e)}return l.then(n=>{if(!n)throw new u.SignatureVerificationError(“Failed to get gaia address for verification of: ”+`${t}`);let i;try{i=JSON.parse®}catch(e){throw e instanceof SyntaxError?new Error(“Failed to parse encrypted, signed content JSON. The content may not be encrypted. If using getFile, try passing { verify: false, decrypt: false }.”):e}const s=i.signature,c=i.publicKey,f=i.cipherText,l=a.publicKeyToAddress©;if(c&&f&&s){if(l!==n)throw new u.SignatureVerificationError(`Signer pubkey address (${l}) doesn’t`+` match gaia address (${n})`);if(o.verifyECDSA(f,c,s))return e.decryptContent(f);throw new u.SignatureVerificationError(“Contents do not match ECDSA signature in file:”+` ${t}`)}throw new u.SignatureVerificationError(“Failed to get signature verification data from file:”+` ${t}`)})}(r,e,t,i.app,i.username,i.zoneFileLookupURL)}if(i.verify||i.decrypt)throw new Error(“Should be unreachable.”);return t})},t.putFile=function(e,t,r,s){return n(this,void 0,void 0,function*(){const n=Object.assign({},{encrypt:!0,sign:!1,contentType:“”},r);let{contentType:u}=n;u||(u=“string”==typeof t?“text/plain; charset=utf-8”:“application/octet-stream”),s||(s=new f.UserSession);let c=“”,h=“”;if(n.sign&&(c=“string”==typeof n.sign?n.sign:s.loadUserData().appPrivateKey),n.encrypt&&(“string”==typeof n.encrypt?h=n.encrypt:(c||(c=s.loadUserData().appPrivateKey),h=a.getPublicKeyFromPrivate©)),!n.encrypt&&n.sign){const r=o.signECDSA(c,t),n=JSON.stringify®,a=yield s.getOrSetLocalGaiaHubConnection();try{return(yield Promise.all([i.uploadToGaiaHub(e,t,a,u),i.uploadToGaiaHub(`${e}${l}`,n,a,“application/json”)]))[0]}catch®{const o=yield s.setLocalGaiaHubConnection();return(yield Promise.all([i.uploadToGaiaHub(e,t,o,u),i.uploadToGaiaHub(`${e}${l}`,n,o,“application/json”)]))[0]}}if(n.encrypt&&!n.sign)t=d(t,{publicKey:h}),u=“application/json”;else if(n.encrypt&&n.sign){const e=d(t,{publicKey:h}),r=o.signECDSA(c,e),n={signature:r.signature,publicKey:r.publicKey,cipherText:e};t=JSON.stringify(n),u=“application/json”}const p=yield s.getOrSetLocalGaiaHubConnection();try{return yield i.uploadToGaiaHub(e,t,p,u)}catch®{const n=yield s.setLocalGaiaHubConnection();return yield i.uploadToGaiaHub(e,t,n,u)}})},t.getAppBucketUrl=function(e,t){return i.getBucketUrl(e,t)},t.listFiles=function(e,t){return n(this,void 0,void 0,function*(){const r=t||new f.UserSession;return function e(t,r,n,i,o){if(n>65536)throw new Error(“Too many entries to list”);let a;const s=JSON.stringify({page:r}),u={method:“POST”,headers:{“Content-Type”:“application/json”,“Content-Length”:`${s.length}`,Authorization:`bearer ${t.token}`},body:s};return fetch(`${t.server}/list-files/${t.address}`,u).then(e=>{if((a=e.status)>=400)throw new Error(`listFiles failed with HTTP status ${a}`);return e.text()}).then(e=>JSON.parse(e)).then(r=>{const a=r.entries,s=r.page;if(null==a)throw new Error(“Bad listFiles response: no entries”);for(let e=0;e0?e(t,s,n+1,i+a.length,o):Promise.resolve(i+a.length)})}(yield r.getOrSetLocalGaiaHubConnection(),null,0,0,e)})}},function(e,t,r){“use strict”;(function(e){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,“__esModule”,{value:!0});const o=i(r(23)),a=i(r(31)),s=r(25),u=r(16),c=r(39),f=r(20);function l(t,r,n,i){const f=t.challenge_text,l=t.latest_auth_version&&parseInt(t.latest_auth_version.slice(1),10)>=1,h=c.getPublicKeyFromPrivate®;if(!l)return function(t,r){let n;try{n=JSON.parse(t)}catch(e){throw new Error(“Failed in parsing legacy challenge text from the gaia hub.”)}if(“gaiahub”===n[0]&&“blockstack_storage_please_sign”===n[3]){const n=u.hexStringToECPair(r+(64===r.length?“01”:“”)),i=o.default.crypto.sha256(e.from(t)),a=n.sign(i),s=o.default.script.signature.encode(a,o.default.Transaction.SIGHASH_NONE).toString(“hex”).slice(0,-2),f=c.getPublicKeyFromPrivate®;return e.from(JSON.stringify({publickey:f,signature:s})).toString(“base64”)}throw new Error(“Failed to connect to legacy gaia hub. If you operate this hub, please update.”)}(f,r);const d={gaiaChallenge:f,hubUrl:n,iss:h,salt:a.default.randomBytes(16).toString(“hex”),associationToken:i};return`v1:${new s.TokenSigner(“ES256K”,r).sign(d)}`}t.BLOCKSTACK_GAIA_HUB_LABEL=“blockstack-gaia-hub-config”,t.uploadToGaiaHub=function(e,t,r,i=“application/octet-stream”){return n(this,void 0,void 0,function*(){f.Logger.debug(`uploadToGaiaHub: uploading ${e} to ${r.server}`);const n=yield fetch(`${r.server}/store/${r.address}/${e}`,{method:“POST”,headers:{“Content-Type”:i,Authorization:`bearer ${r.token}`},body:t});if(!n.ok)throw new Error(“Error when uploading to Gaia hub”);const o=yield n.text();return JSON.parse(o).publicURL})},t.getFullReadUrl=function(e,t){return Promise.resolve(`${t.url_prefix}${t.address}/${e}`)},t.connectToGaiaHub=function(e,t,r){return n(this,void 0,void 0,function*(){f.Logger.debug(`connectToGaiaHub: ${e}/hub_info`);const n=yield fetch(`${e}/hub_info`),i=yield n.json(),o=i.read_url_prefix,a=l(i,t,e,r);return{url_prefix:o,address:u.ecPairToAddress(u.hexStringToECPair(t+(64===t.length?“01”:“”))),token:a,server:e}})},t.getBucketUrl=function(t,r){return n(this,void 0,void 0,function*(){const n=o.default.ECPair.fromPrivateKey(e.from(r,“hex”)),i=yield fetch(`${t}/hub_info`),a=yield i.text();return`${JSON.parse(a).read_url_prefix}${u.ecPairToAddress(n)}/`})}}).call(this,r(1).Buffer)},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(72),i=r(29);t.lookupProfile=function(e,t){if(!e)return Promise.reject();let r;if(t){const n=`${t.replace(//$/,“”)}/${e}`;r=fetch(n).then(e=>e.json())}else r=i.config.network.getNameInfo(e);return r.then(e=>{if(e.hasOwnProperty(“zonefile”)&&e.hasOwnProperty(“address”))return n.resolveZoneFileToProfile(e.zonefile,e.address);throw new Error(“Invalid zonefile lookup response: did not contain `address` or `zonefile` field”)})}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),Object.defineProperty(t,“makeZoneFile”,{enumerable:!0,get:function(){return n.makeZoneFile}}),Object.defineProperty(t,“parseZoneFile”,{enumerable:!0,get:function(){return i.parseZoneFile}}),Object.defineProperty(t,“ZoneFile”,{enumerable:!0,get:function(){return o.ZoneFile}});var n=r(191),i=r(192),o=r(431)},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.makeZoneFile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,n.getZoneFileTemplate)();return t=function(e,t){var r=“”;return void 0!==e&&(r+=“$ORIGIN ”+e),t.replace(“{$origin}”,r)}(e.$origin,t),t=function(e,t){var r=“”;return void 0!==e&&(r+=“$TTL ”+e),t.replace(“{$ttl}”,r)}(e.$ttl,t),t=function(e,t){var r=t;if(void 0!==e)for(var n in e.name=e.name||“@”,e.ttl=e.ttl||“”,e){var i=e[n];r=r.replace(“{”n
“}”,i+“t”)}return r}(e.soa,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtNSt”u.host
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{ns}”,r)}(e.ns,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtAt”u.ip
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{a}”,r)}(e.a,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtAAAAt”u.ip
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{aaaa}”,r)}(e.aaaa,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtCNAMEt”u.alias
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{cname}”,r)}(e.cname,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtMXt”u.preference
“t”u.host
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{mx}”,r)}(e.mx,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtPTRt”u.host
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{ptr}”,r)}(e.ptr,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtTXTt”;var c=u.txt;“string”==typeof c?r+=‘“’c
‘”’:c instanceof Array&&(r+=c.map(function(e){return’“‘e
’”‘}).join(“ ”)),r+=“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{txt}”,r)}(e.txt,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtSRVt”u.priority
“t”,r+=u.weight+“t”,r+=u.port+“t”,r+=u.target+“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{srv}”,r)}(e.srv,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtSPFt”u.data
“n”}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{spf}”,r)}(e.spf,t),t=function(e,t){var r=“”;if(e){var n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;r+=(u.name||“@”)+“t”,u.ttl&&(r+=u.ttl+“t”),r+=“INtURIt”u.priority
“t”,r+=u.weight+“t”,r+=’“‘u.target
’”n‘}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return t.replace(“{uri}”,r)}(e.uri,t),(t=function(e,t){t=(t=t.replace(“{zone}”,e.$origin||!!e.soa&&e.soa.name||“”)).replace(“{datetime}”,(new Date).toISOString());var r=Math.round(Date.now()/1e3);return t.replace(“{time}”,“”.concat®)}(e,t)).replace(/n{2,}/gim,“nn”)};var n=r(430)},function(e,t,r){“use strict”;function n(e){var t={},r=e.trim().split(/s+/g),n=r.length;return t.name=r[0],t.minimum=parseInt(r[n-1],10),t.expire=parseInt(r[n-2],10),t.retry=parseInt(r[n-3],10),t.refresh=parseInt(r[n-4],10),t.serial=parseInt(r[n-5],10),t.rname=r[n-6],t.mname=r[n-7],isNaN(r[1])||(t.ttl=parseInt(r[1],10)),t}function i(e){var t=e.trim().split(/s+/g),r=t.length,n={name:t[0],host:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function o(e,t){var r=e.trim().split(/s+/g),n=e.trim().toUpperCase().split(/s+/g),i=r.length,o={name:r[0],ip:r[i-1]};return 0===n.lastIndexOf(“A”)&&(t.length?o.name=t[t.length-1].name:o.name=“@”),isNaN(r[1])||(o.ttl=parseInt(r[1],10)),o}function a(e){var t=e.trim().split(/s+/g),r=t.length,n={name:t[0],ip:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function s(e){var t=e.trim().split(/s+/g),r=t.length,n={name:t[0],alias:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function u(e){var t=e.trim().split(/s+/g),r=t.length,n={name:t[0],preference:parseInt(t[r-2],10),host:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function c(e){var t=e.trim().match(/[^s"’]+|"[^"]*"|‘[^’]*‘/g);if(!t)throw new Error(“Failure to tokenize TXT record”);var r,n=t.length,i=t.indexOf(“TXT”);function o(e){return e.indexOf(’“‘)>-1&&(e=e.split(’”‘)[1]),e.indexOf(’“‘)>-1&&(e=e.split(’”‘)[1]),e}r=n-i-1>1?t.slice(i+1).map(o):o(t[n-1]);var a={name:t[0],txt:r};return isNaN(t[1])||(a.ttl=parseInt(t[1],10)),a}function f(e,t,r){var n=e.trim().split(/s+/g);0===e.trim().toUpperCase().split(/s+/g).lastIndexOf(“PTR”)&&t[t.length-1]&&n.unshift(t[t.length-1].name);var i=n.length,o={name:n[0],fullname:n[0]+“.”+r,host:n[i-1]};return isNaN(n[1])||(o.ttl=parseInt(n[1],10)),o}function l(e){var t=e.trim().split(/s+/g),r=t.length,n={name:t[0],target:t[r-1],priority:parseInt(t[r-4],10),weight:parseInt(t[r-3],10),port:parseInt(t[r-2],10)};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function h(e){for(var t=e.trim().split(/s+/g),r={name:t[0],data:“”},n=t.length;n– >4;)r.data=t[n]+“ ”+r.data.trim();return isNaN(t[1])||(r.ttl=parseInt(t[1],10)),r}function d(e){var t=e.trim().split(/s+/g),r=t.length,n={name:t[0],target:t[r-1].replace(/“/g,”“),priority:parseInt(t[r-3],10),weight:parseInt(t[r-2],10)};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}Object.defineProperty(t,”__esModule“,{value:!0}),t.parseZoneFile=function(e){return function(e){var t={},r=e.split(”n“),p=!0,b=!1,y=void 0;try{for(var m,g=r[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var v=m.value;if(v&&v.trim()){var _=v.toUpperCase();/s+TXTs+/.test(_)?(t.txt=t.txt||[],t.txt.push(c(v))):0===_.indexOf(”$ORIGIN“)?t.$origin=v.split(/s+/g)[1]:0===_.indexOf(”$TTL“)?t.$ttl=parseInt(v.split(/s+/g)[1],10):/s+SOAs+/.test(_)?t.soa=n(v):/s+NSs+/.test(_)?(t.ns=t.ns||[],t.ns.push(i(v))):/s+As+/.test(_)?(t.a=t.a||[],t.a.push(o(v,t.a))):/s+AAAAs+/.test(_)?(t.aaaa=t.aaaa||[],t.aaaa.push(a(v))):/s+CNAMEs+/.test(_)?(t.cname=t.cname||[],t.cname.push(s(v))):/s+MXs+/.test(_)?(t.mx=t.mx||[],t.mx.push(u(v))):/s+PTRs+/.test(_)?(t.ptr=t.ptr||[],t.ptr.push(f(v,t.ptr,t.$origin))):/s+SRVs+/.test(_)?(t.srv=t.srv||[],t.srv.push(l(v))):/s+SPFs+/.test(_)?(t.spf=t.spf||[],t.spf.push(h(v))):/s+URIs+/.test(_)&&(t.uri=t.uri||[],t.uri.push(d(v)))}}}catch(e){b=!0,y=e}finally{try{p||null==g.return||g.return()}finally{if(b)throw y}}return t}(e=function(e){for(var t=[],r=/([sS]*?)/gim,n=r.exec(e);null!==n;){var i=n[0].replace(/s+/gm,” “);t.push({match:n,replacement:i}),n=r.exec(e)}for(var o=e.split(”“),a=0;a{if(e.hasOwnProperty(”service“)&&!n.profileServices.hasOwnProperty(e.service))return;if(!e.hasOwnProperty(”proofType“)||”http“!==e.proofType||!e.hasOwnProperty(”proofUrl“))return;const i={service:e.service,proof_url:e.proofUrl,identifier:e.identifier,valid:!1};o.push(n.profileServices[e.service].validateProof(i,t,r))}),Promise.all(o)):Promise.resolve([])}},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0});const n=r(434),i=r(472),o=r(473),a=r(474),s=r(475),u=r(476);t.profileServices={facebook:n.Facebook,github:i.Github,twitter:o.Twitter,instagram:a.Instagram,hackerNews:s.HackerNews,linkedIn:u.LinkedIn};var c=r(207);t.containsValidProofStatement=c.containsValidProofStatement,t.containsValidAddressProofStatement=c.containsValidAddressProofStatement},function(e,t,r){var n=r(196),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},o={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s={__proto__:null,math:!0,svg:!0},u={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,”annotation-xml“:!0,foreignObject:!0,desc:!0,title:!0},c=/s|//;function f(e,t){this._options=t||{},this._cbs=e||{},this._tagname=”“,this._attribname=”“,this._attribvalue=”“,this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames=”lowerCaseTags“in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames=”lowerCaseAttributeNames“in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(n=this._options.Tokenizer),this._tokenizer=new n(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}r(3)(f,r(60).EventEmitter),f.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},f.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},f.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));!this._options.xmlMode&&e in a||(this._stack.push(e),e in s?this._foreignContext.push(!0):e in u&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},f.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},f.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(e in s||e in u)&&this._foreignContext.pop(),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},f.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},f.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},f.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},f.prototype.onattribdata=function(e){this._attribvalue+=e},f.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},f.prototype._getInstructionName=function(e){var t=e.search(c),r=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(r=r.toLowerCase()),r},f.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},f.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},f.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},f.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["e
”]]“)},f.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},f.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[–e]));this._cbs.onend&&this._cbs.onend()},f.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname=”“,this._attribname=”“,this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},f.prototype.parseComplete=function(e){this.reset(),this.end(e)},f.prototype.write=function(e){this._tokenizer.write(e)},f.prototype.end=function(e){this._tokenizer.end(e)},f.prototype.pause=function(){this._tokenizer.pause()},f.prototype.resume=function(){this._tokenizer.resume()},f.prototype.parseChunk=f.prototype.write,f.prototype.done=f.prototype.end,e.exports=f},function(e,t,r){e.exports=ye;var n=r(197),i=r(108),o=r(198),a=r(109),s=0,u=s++,c=s++,f=s++,l=s++,h=s++,d=s++,p=s++,b=s++,y=s++,m=s++,g=s++,v=s++,_=s++,w=s++,S=s++,k=s++,x=s++,E=s++,A=s++,P=s++,O=s++,T=s++,j=s++,M=s++,I=s++,B=s++,D=s++,C=s++,N=s++,U=s++,R=s++,F=s++,z=s++,L=s++,q=s++,H=s++,$=s++,K=s++,V=s++,G=s++,W=s++,X=s++,Z=s++,J=s++,Y=s++,Q=s++,ee=s++,te=s++,re=s++,ne=s++,ie=s++,oe=s++,ae=s++,se=s++,ue=s++,ce=0,fe=ce++,le=ce++,he=ce++;function de(e){return” “===e||”n“===e||”t“===e||”f“===e||”r“===e}function pe(e,t,r){var n=e.toLowerCase();return e===n?function(e){e===n?this._state=t:(this._state=r,this._index–)}:function(i){i===n||i===e?this._state=t:(this._state=r,this._index–)}}function be(e,t){var r=e.toLowerCase();return function(n){n===r||n===e?this._state=t:(this._state=f,this._index–)}}function ye(e,t){this._state=u,this._buffer=”“,this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=u,this._special=fe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ye.prototype._stateText=function(e){”<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=c,this._sectionStart=this._index):this._decodeEntities&&this._special===fe&&“&”===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=u,this._state=ie,this._sectionStart=this._index)},ye.prototype._stateBeforeTagName=function(e){“/”===e?this._state=h:“<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">”===e||this._special!==fe||de(e)?this._state=u:“!”===e?(this._state=S,this._sectionStart=this._index+1):“?”===e?(this._state=x,this._sectionStart=this._index+1):(this._state=this._xmlMode||“s”!==e&&“S”!==e?f:R,this._sectionStart=this._index)},ye.prototype._stateInTagName=function(e){(“/”===e||“>”===e||de(e))&&(this._emitToken(“onopentagname”),this._state=b,this._index–)},ye.prototype._stateBeforeCloseingTagName=function(e){de(e)||(“>”===e?this._state=u:this._special!==fe?“s”===e||“S”===e?this._state=F:(this._state=u,this._index–):(this._state=d,this._sectionStart=this._index))},ye.prototype._stateInCloseingTagName=function(e){(“>”===e||de(e))&&(this._emitToken(“onclosetag”),this._state=p,this._index–)},ye.prototype._stateAfterCloseingTagName=function(e){“>”===e&&(this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateBeforeAttributeName=function(e){“>”===e?(this._cbs.onopentagend(),this._state=u,this._sectionStart=this._index+1):“/”===e?this._state=l:de(e)||(this._state=y,this._sectionStart=this._index)},ye.prototype._stateInSelfClosingTag=function(e){“>”===e?(this._cbs.onselfclosingtag(),this._state=u,this._sectionStart=this._index+1):de(e)||(this._state=b,this._index–)},ye.prototype._stateInAttributeName=function(e){(“=”===e||“/”===e||“>”===e||de(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=m,this._index–)},ye.prototype._stateAfterAttributeName=function(e){“=”===e?this._state=g:“/”===e||“>”===e?(this._cbs.onattribend(),this._state=b,this._index–):de(e)||(this._cbs.onattribend(),this._state=y,this._sectionStart=this._index)},ye.prototype._stateBeforeAttributeValue=function(e){’“‘===e?(this._state=v,this._sectionStart=this._index+1):”’“===e?(this.state=,this._sectionStart=this._index+1):de(e)||(this._state=w,this._sectionStart=this._index,this._index–)},ye.prototype._stateInAttributeValueDoubleQuotes=function(e){‘”’===e?(this._emitToken(“onattribdata”),this._cbs.onattribend(),this._state=b):this._decodeEntities&&“&”===e&&(this._emitToken(“onattribdata”),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueSingleQuotes=function(e){“‘”===e?(this._emitToken(“onattribdata”),this._cbs.onattribend(),this._state=b):this._decodeEntities&&“&”===e&&(this._emitToken(“onattribdata”),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueNoQuotes=function(e){de(e)||“>”===e?(this._emitToken(“onattribdata”),this._cbs.onattribend(),this._state=b,this._index–):this._decodeEntities&&“&”===e&&(this._emitToken(“onattribdata”),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ye.prototype._stateBeforeDeclaration=function(e){this._state=“[”===e?T:“-”===e?E:k},ye.prototype._stateInDeclaration=function(e){“>”===e&&(this._cbs.ondeclaration(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateInProcessingInstruction=function(e){“>”===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateBeforeComment=function(e){“-”===e?(this._state=A,this._sectionStart=this._index+1):this._state=k},ye.prototype._stateInComment=function(e){“-”===e&&(this._state=P)},ye.prototype._stateAfterComment1=function(e){this._state=“-”===e?O:A},ye.prototype._stateAfterComment2=function(e){“>”===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):“-”!==e&&(this._state=A)},ye.prototype._stateBeforeCdata1=pe(“C”,j,k),ye.prototype._stateBeforeCdata2=pe(“D”,M,k),ye.prototype._stateBeforeCdata3=pe(“A”,I,k),ye.prototype._stateBeforeCdata4=pe(“T”,B,k),ye.prototype._stateBeforeCdata5=pe(“A”,D,k),ye.prototype._stateBeforeCdata6=function(e){“[”===e?(this._state=C,this._sectionStart=this._index+1):(this._state=k,this._index–)},ye.prototype._stateInCdata=function(e){“]”===e&&(this._state=N)},ye.prototype._stateAfterCdata1=function(e){this._state=“]”===e?U:C},ye.prototype._stateAfterCdata2=function(e){“>”===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):“]”!==e&&(this._state=C)},ye.prototype._stateBeforeSpecial=function(e){“c”===e||“C”===e?this._state=z:“t”===e||“T”===e?this._state=Z:(this._state=f,this._index–)},ye.prototype._stateBeforeSpecialEnd=function(e){this._special!==le||“c”!==e&&“C”!==e?this._special!==he||“t”!==e&&“T”!==e?this._state=u:this._state=ee:this._state=K},ye.prototype._stateBeforeScript1=be(“R”,L),ye.prototype._stateBeforeScript2=be(“I”,q),ye.prototype._stateBeforeScript3=be(“P”,H),ye.prototype._stateBeforeScript4=be(“T”,$),ye.prototype._stateBeforeScript5=function(e){(“/”===e||“>”===e||de(e))&&(this._special=le),this._state=f,this._index–},ye.prototype._stateAfterScript1=pe(“R”,V,u),ye.prototype._stateAfterScript2=pe(“I”,G,u),ye.prototype._stateAfterScript3=pe(“P”,W,u),ye.prototype._stateAfterScript4=pe(“T”,X,u),ye.prototype._stateAfterScript5=function(e){“>”===e||de(e)?(this._special=fe,this._state=d,this._sectionStart=this._index-6,this._index–):this._state=u},ye.prototype._stateBeforeStyle1=be(“Y”,J),ye.prototype._stateBeforeStyle2=be(“L”,Y),ye.prototype._stateBeforeStyle3=be(“E”,Q),ye.prototype._stateBeforeStyle4=function(e){(“/”===e||“>”===e||de(e))&&(this._special=he),this._state=f,this._index–},ye.prototype._stateAfterStyle1=pe(“Y”,te,u),ye.prototype._stateAfterStyle2=pe(“L”,re,u),ye.prototype._stateAfterStyle3=pe(“E”,ne,u),ye.prototype._stateAfterStyle4=function(e){“>”===e||de(e)?(this._special=fe,this._state=d,this._sectionStart=this._index-5,this._index–):this._state=u},ye.prototype._stateBeforeEntity=pe(“#”,oe,ae),ye.prototype._stateBeforeNumericEntity=pe(“X”,ue,se),ye.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var r=this._buffer.substr(e,t);if(o.hasOwnProperty®)return this._emitPartial(o[r]),void(this._sectionStart+=t+1);t–}},ye.prototype._stateInNamedEntity=function(e){“;”===e?(this._parseNamedEntityStrict(),this._sectionStart+1“z”)&&(e<"A"||e>“Z”)&&(e<"0"||e>“9”)&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==u?“=”!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index–)},ye.prototype._decodeNumericEntity=function(e,t){var r=this._sectionStart+e;if(r!==this._index){var i=this._buffer.substring(r,this._index),o=parseInt(i,t);this._emitPartial(n(o)),this._sectionStart=this._index}else this._sectionStart–;this._state=this._baseState},ye.prototype._stateInNumericEntity=function(e){“;”===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>“9”)&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index–)},ye.prototype._stateInHexEntity=function(e){“;”===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>“f”)&&(e<"A"||e>“F”)&&(e<"0"||e>“9”)&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index–)},ye.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===u?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ye.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ye.prototype._parse=function(){for(;this._index=55296&&e<=57343||e>1114111)return“�”;e in n&&(e=n[e]);var t=“”;e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={Aacute:“Á”,aacute:“á”,Acirc:“”,acirc:“â”,acute:“´”,AElig:“Æ”,aelig:“æ”,Agrave:“À”,agrave:“à”,amp:“&”,AMP:“&”,Aring:“Å”,aring:“å”,Atilde:“Ô,atilde:“ã”,Auml:“Ä”,auml:“ä”,brvbar:“¦”,Ccedil:“Ç”,ccedil:“ç”,cedil:“¸”,cent:“¢”,copy:“©”,COPY:“©”,curren:“¤”,deg:“°”,divide:“÷”,Eacute:“É”,eacute:“é”,Ecirc:“Ê”,ecirc:“ê”,Egrave:“È”,egrave:“è”,ETH:“Д,eth:“ð”,Euml:“Ë”,euml:“ë”,frac12:“½”,frac14:“¼”,frac34:“¾”,gt:“>”,GT:“>”,Iacute:“Í”,iacute:“í”,Icirc:“Δ,icirc:“î”,iexcl:“¡”,Igrave:“Ì”,igrave:“ì”,iquest:“¿”,Iuml:“Ï”,iuml:“ï”,laquo:“«”,lt:“<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(40),o=/\s+/g,a=r(200),s=r(436);function u(e,t,r){"object"===n(e)?(r=t,t=e,e=null):"function"==typeof t&&(r=t,t=c),this._callback=e,this._options=t||c,this._elementCB=r,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};u.prototype.onparserinit=function(e){this._parser=e},u.prototype.onreset=function(){u.call(this,this._callback,this._options,this._elementCB)},u.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},u.prototype._handleCallback=u.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},u.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},u.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var r in t="tag"===e.type?Object.create(s):Object.create(a),e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},u.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],r=t?t.children:this.dom,n=r[r.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),n?(e.prev=n,n.next=e):e.prev=null,r.push(e),e.parent=t||null},u.prototype.onopentag=function(e,t){var r={type:"script"===e?i.Script:"style"===e?i.Style:i.Tag,name:e,attribs:t,children:[]},n=this._createDomElement(r);this._addDomElement(n),this._tagStack.push(n)},u.prototype.ontext=function(e){var t,r=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===i.Text)r?t.data=(t.data+e).replace(o," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===i.Text)r?t.data=(t.data+e).replace(o," "):t.data+=e;else{r&&(e=e.replace(o," "));var n=this._createDomElement({data:e,type:i.Text});this._addDomElement(n)}},u.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===i.Comment)t.data+=e;else{var r={data:e,type:i.Comment},n=this._createDomElement(r);this._addDomElement(n),this._tagStack.push(n)}},u.prototype.oncdatastart=function(){var e={children:[{data:"",type:i.Text}],type:i.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},u.prototype.oncommentend=u.prototype.oncdataend=function(){this._tagStack.pop()},u.prototype.onprocessinginstruction=function(e,t){var r=this._createDomElement({name:e,data:t,type:i.Directive});this._addDomElement(r)},e.exports=u},function(e,t){var r=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},n={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},i={element:1,text:3,cdata:4,comment:8};Object.keys(n).forEach(function(e){var t=n[e];Object.defineProperty(r,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,r){e.exports=s;var n=r(195),i=r(448).Writable,o=r(62).StringDecoder,a=r(1).Buffer;function s(e,t){var r=this._parser=new n(e,t),a=this._decoder=new o;i.call(this,{decodeStrings:!1}),this.once("finish",function(){r.end(a.end())})}r(3)(s,i),s.prototype._write=function(e,t,r){e instanceof a&&(e=this._decoder.write(e)),this._parser.write(e),r()}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s=/^(?:0|[1-9]\d*)$/;var u=Object.prototype,c=u.hasOwnProperty,f=u.toString,l=u.propertyIsEnumerable,h=Math.max;function d(e,t){var n=g(e)||function(e){return function(e){return function(e){return!!e&&"object"==r(e)}(e)&&v(e)}(e)&&c.call(e,"callee")&&(!l.call(e,"callee")||f.call(e)==i)}(e)?function(e,t){for(var r=-1,n=Array(e);++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=_(e)?f.call(e):"";return t==o||t==a}(e)}function _(e){var t=r(e);return!!e&&("object"==t||"function"==t)}var w,S,k,x=(w=function(e,t){!function(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=w.length>3&&”function“==typeof o?(i–,o):void 0,a&&function(e,t,n){if(!_(n))return!1;var i=r(t);return!!(”number“==i?v(n)&&y(t,n.length):”string“==i&&t in n)&&m(n[t],e)}(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=k(e)?l.call(e):"";return t==o||t==a}(e)}function k(e){var t=r(e);return!!e&&("object"==t||"function"==t)}var x,E=(x=function(e,t,r,n){!function(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=x.length>3&&”function“==typeof o?(i–,o):void 0,a&&function(e,t,n){if(!k(n))return!1;var i=r(t);return!!(”number“==i?S(n)&&v(t,n.length):”string“==i&&t in n)&&_(n[t],e)}(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++n=0&&e(t)}},not:function(e,t){var r=t.name,n=t.value;return”“===n?function(t){return!!o(t,r)&&e(t)}:t.ignoreCase?(n=n.toLowerCase(),function(t){var i=o(t,r);return null!=i&&i.toLowerCase()!==n&&e(t)}):function(t){return o(t,r)!==n&&e(t)}}};e.exports={compile:function(e,t,r){if(r&&r.strict&&(t.ignoreCase||”not“===t.action))throw SyntaxError(”Unsupported attribute selector“);return u[t.action](e,t)},rules:u}},function(e){e.exports={universal:50,tag:30,attribute:1,pseudo:0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1}},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.containsValidProofStatement=function(e,t=null){if(!t)return!1;if(e=e.toLowerCase(),t.split(”.“).length<2)throw new Error("Please provide the fully qualified Blockstack name.");let r=null;t.endsWith(".id")&&(r=t.split(".id")[0]);const n=null!=r?[`verifying myself: my bitcoin username is +${r}`,`verifying myself: my bitcoin username is ${r}`,`verifying myself: my openname is ${r}`,`verifying that +${r} is my bitcoin username`,`verifying that ${r} is my bitcoin username`,`verifying that ${r} is my openname`,`verifying that +${r} is my openname`,`verifying i am +${r} on my passcard`,`verifying that +${r} is my blockchain id`,`verifying that "${t}" is my blockstack id`,`verifying that ${t} is my blockstack id`,`verifying that "${t}" is my blockstack id`]:[`verifying that "${t}" is my blockstack id`,`verifying that ${t} is my blockstack id`,`verifying that "${t}" is my blockstack id`];for(let t=0;t0&&e.auth[0]&&e.auth[0].publicKeychain&&i.push({”@type“:”Account“,role:”key“,service:”bip32“,identifier:e.auth[0].publicKeychain}),e.pgp&&e.pgp.url&&i.push({”@type“:”Account“,role:”key“,service:”pgp“,identifier:e.pgp.fingerprint,contentUrl:e.pgp.url}),t.account=i}return t}},function(e,t,r){”use strict“;(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,”__esModule“,{value:!0});const i=n(r(23)),o=n(r(4)),a=r(114),s=r(29);function u(e){return”number“==typeof e?{units:”BTC“,amount:new o.default(String(e))}:{units:e.units,amount:e.amount}}function c(){const e=new i.default.TransactionBuilder(s.config.network.layer1);return e.setVersion(1),e}function f(e){const t=`${s.config.network.MAGIC_BYTES}${e}`;if(3!==t.length)throw new Error(”Runtime error: invalid MAGIC_BYTES“);return t}function l(t,r,n=null,o=null){let s;if(o&&!n&&(n=”0000000000000000000000000000000000000000“),n){if(40!==n.length)throw new Error(”Value hash length incorrect. Expecting 20-bytes, hex-encoded“);if(o&&16!==o.length)throw new Error(”Burn field length incorrect. Expecting 8-bytes, hex-encoded“);const r=o?65:57;(s=e.alloc(r,0)).write(t,0,37,”ascii“),s.write(n,37,20,”hex“),o&&s.write(o,57,8,”hex“)}else s=e.from(t,”ascii“);const u=e.concat([e.from(f(”:“),”ascii“),s]),l=i.default.payments.embed({data:[u]}).output,h=c();return h.addOutput(l,0),h.addOutput(r,a.DUST_MINIMUM),h.buildIncomplete()}t.BlockstackNamespace=class{constructor(e){if(e.length>19)throw new Error(”Namespace ID too long (19 chars max)“);if(!e.match(”[0123456789abcdefghijklmnopqrstuvwxyz_-]+“))throw new Error(”Namespace ID can only use characters 0123456789abcdefghijklmnopqrstuvwxyz-_“);this.namespaceID=e,this.version=-1,this.lifetime=-1,this.coeff=-1,this.base=-1,this.buckets=[-1],this.nonalphaDiscount=-1,this.noVowelDiscount=-1}check(){try{return this.setVersion(this.version),this.setLifetime(this.lifetime),this.setCoeff(this.coeff),this.setBase(this.base),this.setBuckets(this.buckets),this.setNonalphaDiscount(this.nonalphaDiscount),this.setNoVowelDiscount(this.noVowelDiscount),!0}catch(e){return!1}}setVersion(e){if(e<0||e>Math.pow(2,16)-1)throw new Error(”Invalid version: must be a 16-bit number“);this.version=e}setLifetime(e){if(e<0||e>Math.pow(2,32)-1)throw new Error(”Invalid lifetime: must be a 32-bit number“);this.lifetime=e}setCoeff(e){if(e<0||e>255)throw new Error(”Invalid coeff: must be an 8-bit number“);this.coeff=e}setBase(e){if(e<0||e>255)throw new Error(”Invalid base: must be an 8-bit number“);this.base=e}setBuckets(e){if(16!==e.length)throw new Error(”Invalid buckets: must have 16 entries“);for(let t=0;t15)throw new Error(”Invalid buckets: must be 4-bit numbers“);this.buckets=e.slice(0)}setNonalphaDiscount(e){if(e<=0||e>15)throw new Error(”Invalid nonalphaDiscount: must be a positive 4-bit number“);this.nonalphaDiscount=e}setNoVowelDiscount(e){if(e<=0||e>15)throw new Error(”Invalid noVowelDiscount: must be a positive 4-bit number“);this.noVowelDiscount=e}toHexPayload(){return`00000000${this.lifetime.toString(16)}`.slice(-8)+`00${this.coeff.toString(16)}`.slice(-2)+`00${this.base.toString(16)}`.slice(-2)+this.buckets.map(e=>e.toString(16)).reduce((e,t)=>e+t,”“)+(this.nonalphaDiscount.toString(16)+this.noVowelDiscount.toString(16))+`0000${this.version.toString(16)}`.slice(-4)+e.from(this.namespaceID).toString(”hex“)}},t.makePreorderSkeleton=function(t,r,n,o,l,h=null){const d=u(l),p=s.config.network,b=[e.from(a.decodeB40(t),”hex“),i.default.address.toOutputScript(n,p.layer1)];if(h){const t=e.from(h,”ascii“);b.push(t)}const y=e.concat(b),m=a.hash160(y),g=”BTC“===d.units?39:66,v=e.alloc(g);if(v.write(f(”?“),0,3,”ascii“),m.copy(v,3),v.write(r,23,16,”hex“),”BTC“!==d.units){const e=d.amount.toString(16,2);if(e.length>16)throw new Error(`Cannot preorder ’${t}‘: cannot fit price into 8 bytes`);const r=`0000000000000000${e}`.slice(-16);v.write(r,39,8,”hex“),v.write(d.units,47,d.units.length,”ascii“)}const _=i.default.payments.embed({data:[v]}).output,w=c();if(w.addOutput(_,0),w.addOutput(n,a.DUST_MINIMUM),”BTC“===d.units){const e=d.amount.toNumber();w.addOutput(o,e)}else w.addOutput(o,a.DUST_MINIMUM);return w.buildIncomplete()},t.makeRegisterSkeleton=l,t.makeRenewalSkeleton=function(e,t,r,n,o,c=null){const f=u(o),h=s.config.network,d=”BTC“===f.units?null:f.amount,p=”BTC“===f.units?f.amount.toNumber():a.DUST_MINIMUM;let b=null;if(d){const t=d.toString(16,2);if(t.length>16)throw new Error(`Cannot renew ’${e}‘: cannot fit price into 8 bytes`);b=`0000000000000000${t}`.slice(-16)}const y=l(e,t,c,b),m=i.default.TransactionBuilder.fromTransaction(y,h.layer1);return m.addOutput(r,a.DUST_MINIMUM),m.addOutput(n,p),m.buildIncomplete()},t.makeTransferSkeleton=function(t,r,n,o=!1){const s=e.alloc(36);let u=”~“;o&&(u=”>“),s.write(f(”>“),0,3,”ascii“),s.write(u,3,1,”ascii“),a.hash128(e.from(t,”ascii“)).copy(s,4),s.write(r,20,16,”hex“);const l=i.default.payments.embed({data:[s]}).output,h=c();return h.addOutput(l,0),h.addOutput(n,a.DUST_MINIMUM),h.buildIncomplete()},t.makeUpdateSkeleton=function(t,r,n){const o=e.alloc(39),s=e.from(t,”ascii“),u=e.from(r,”ascii“),l=a.hash128(e.concat([s,u]));o.write(f(”+“),0,3,”ascii“),l.copy(o,3),o.write(n,19,20,”hex“);const h=i.default.payments.embed({data:[o]}).output,d=c();return d.addOutput(h,0),d.buildIncomplete()},t.makeRevokeSkeleton=function(t){const r=e.alloc(3),n=e.from(t,”ascii“);r.write(f(”~“),0,3,”ascii“);const o=e.concat([r,n]),a=i.default.payments.embed({data:[o]}).output,s=c();return s.addOutput(a,0),s.buildIncomplete()},t.makeNamespacePreorderSkeleton=function(t,r,n,o,l){const h=u(l);if(”BTC“!==h.units&&”STACKS“!==h.units)throw new Error(`Invalid burnUnits ${h.units}`);const d=s.config.network,p=d.getDefaultBurnAddress(),b=[e.from(a.decodeB40(t),”hex“),i.default.address.toOutputScript(n,d.layer1),e.from(o,”ascii“)],y=e.concat(b),m=a.hash160(y);let g=a.DUST_MINIMUM,v=39;”STACKS“===h.units?v=47:g=h.amount.toNumber();const _=e.alloc(v);if(_.write(f(”*“),0,3,”ascii“),m.copy(_,3),_.write(r,23,16,”hex“),”STACKS“===h.units){const e=`0000000000000000${h.amount.toString(16,2)}`.slice(-16);_.write(e,39,8,”hex“)}const w=i.default.payments.embed({data:[_]}).output,S=c();return S.addOutput(w,0),S.addOutput(n,a.DUST_MINIMUM),S.addOutput(p,g),S.buildIncomplete()},t.makeNamespaceRevealSkeleton=function(t,r){const n=t.toHexPayload(),o=e.alloc(3+n.length/2);o.write(f(”&“),0,3,”ascii“),o.write(n,3,n.length/2,”hex“);const s=i.default.payments.embed({data:[o]}).output,u=c();return u.addOutput(s,0),u.addOutput(r,a.DUST_MINIMUM),u.buildIncomplete()},t.makeNamespaceReadySkeleton=function(t){const r=e.alloc(3+t.length+1);r.write(f(”!“),0,3,”ascii“),r.write(`.${t}`,3,t.length+1,”ascii“);const n=i.default.payments.embed({data:[r]}).output,o=c();return o.addOutput(n,0),o.buildIncomplete()},t.makeNameImportSkeleton=function(t,r,n){if(40!==n.length)throw new Error(”Invalid zonefile hash: must be 20 bytes hex-encoded“);const o=s.config.network,u=e.alloc(3+t.length);u.write(f(”;“),0,3,”ascii“),u.write(t,3,t.length,”ascii“);const l=i.default.payments.embed({data:[u]}).output,h=c(),d=i.default.address.toBase58Check(e.from(n,”hex“),o.layer1.pubKeyHash);return h.addOutput(l,0),h.addOutput(r,a.DUST_MINIMUM),h.addOutput(d,a.DUST_MINIMUM),h.buildIncomplete()},t.makeAnnounceSkeleton=function(t){if(40!==t.length)throw new Error(”Invalid message hash: must be 20 bytes hex-encoded“);const r=e.alloc(3+t.length/2);r.write(f(”#“),0,3,”ascii“),r.write(t,3,t.length/2,”hex“);const n=i.default.payments.embed({data:[r]}).output,o=c();return o.addOutput(n,0),o.buildIncomplete()},t.makeTokenTransferSkeleton=function(t,r,n,o,s){if(s.length>34)throw new Error(”Invalid scratch area: must be no more than 34 bytes“);const u=e.alloc(46+s.length),l=`00000000000000000000000000000000000000${e.from(n).toString(”hex“)}`.slice(-38),h=o.toString(16,2);if(h.length>16)throw new Error(`Cannot send tokens: cannot fit ${o.toString()} into 8 bytes`);const d=`0000000000000000${h}`.slice(-16);u.write(f(”$“),0,3,”ascii“),u.write(r,3,r.length/2,”hex“),u.write(l,19,l.length/2,”hex“),u.write(d,38,d.length/2,”hex“),u.write(s,46,s.length,”ascii“);const p=i.default.payments.embed({data:[u]}).output,b=c();return b.addOutput(p,0),b.addOutput(t,a.DUST_MINIMUM),b.buildIncomplete()}}).call(this,r(1).Buffer)},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0});const n=r(16);class i{constructor(e){this.ecPair=e}static fromHexString(e){return new i(n.hexStringToECPair(e))}signerVersion(){return 1}getAddress(){return Promise.resolve().then(()=>n.ecPairToAddress(this.ecPair))}signTransaction(e,t){return Promise.resolve().then(()=>{e.sign(t,this.ecPair)})}}t.PubkeyHashSigner=i},function(e,t,r){var n=r(2).Buffer,i=r(22),o=r(89).pbkdf2Sync,a=r(26),s=r(488),u=r(489),c=r(490),f=r(491),l=r(492),h=r(493),d=r(494),p=r(495),b=r(496),y=f,m=”Invalid mnemonic“,g=”Invalid entropy“,v=”Invalid mnemonic checksum“;function _(e,t,r){for(;e.length32)throw new Error(g);if(c.length%4!=0)throw new Error(g);var f=n.from©;if(k(f)!==u)throw new Error(v);return f.toString(”hex“)}function A(e,t){if(n.isBuffer(e)||(e=n.from(e,”hex“)),t=t||y,e.length<16)throw new TypeError(g);if(e.length>32)throw new TypeError(g);if(e.length%4!=0)throw new TypeError(g);var r=(S([].slice.call(e))+k(e)).match(/(.{1,11})/g).map(function(e){var r=w(e);return t[r]});return t===d?r.join(” “):r.join(” “)}e.exports={mnemonicToSeed:x,mnemonicToSeedHex:function(e,t){return x(e,t).toString(”hex“)},mnemonicToEntropy:E,entropyToMnemonic:A,generateMnemonic:function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(g);return A((t=t||a)(e/8),r)},validateMnemonic:function(e,t){try{E(e,t)}catch(e){return!1}return!0},wordlists:{EN:f,JA:d,chinese_simplified:u,chinese_traditional:c,english:f,french:l,italian:h,japanese:d,korean:p,spanish:b}}},function(e,t,r){”use strict“;(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,”__esModule“,{value:!0});const i=n(r(31)),o=n(r(211)),a=n(r(497));t.encryptMnemonic=function(t,r){return Promise.resolve().then(()=>{if(!o.default.validateMnemonic(t))throw new Error(”Not a valid bip39 nmemonic“);const n=e.from(o.default.mnemonicToEntropy(t),”hex“),a=i.default.randomBytes(16),s=i.default.pbkdf2Sync(r,a,1e5,48,”sha512“),u=s.slice(0,16),c=s.slice(16,32),f=s.slice(32,48),l=i.default.createCipheriv(”aes-128-cbc“,u,f);let h=l.update(n).toString(”hex“);h+=l.final().toString(”hex“);const d=e.concat([a,e.from(h,”hex“)]),p=i.default.createHmac(”sha256“,c);p.write(d);const b=p.digest();return e.concat([a,b,e.from(h,”hex“)])})};class s extends Error{}t.decryptMnemonic=function(t,r){const n=e.isBuffer(t)?t:e.from(t,”hex“);return function(t,r){return Promise.resolve().then(()=>{const n=t.slice(0,16),a=t.slice(16,48),u=t.slice(48),c=e.concat([n,u]),f=i.default.pbkdf2Sync(r,n,1e5,48,”sha512“),l=f.slice(0,16),h=f.slice(16,32),d=f.slice(32,48),p=i.default.createDecipheriv(”aes-128-cbc“,l,d);let b=p.update(u).toString(”hex“);b+=p.final().toString(”hex“);const y=i.default.createHmac(”sha256“,h);y.write©;const m=y.digest();if(i.default.createHash(”sha256“).update(a).digest().toString(”hex“)!==i.default.createHash(”sha256“).update(m).digest().toString(”hex“))throw new s(”Wrong password (HMAC mismatch)“);const g=o.default.entropyToMnemonic(b);if(!o.default.validateMnemonic(g))throw new s(”Wrong password (invalid plaintext)“);return g})}(n,r).catch(t=>{if(t instanceof s)throw t;return function(t,r){return new Promise((n,i)=>{a.default.decrypt({key:e.from®,data:t},(e,t)=>{e?i(e):n(t)})})}(n,r).then(e=>e.toString())})}}).call(this,r(1).Buffer)},function(e,t,r){(function(){var e,n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,g,v,_,w,S={}.hasOwnProperty;y=r(12),h=r(8).WordArray,v=r(57),e=r(116).AES,f=r(117).TwoFish,p=r(77),d=(w=r(78)).XOR,o=w.Concat,r(37).SHA512,u=r(120).PBKDF2,c=r(215).Scrypt,_=r(13),g=r(216),m=r(217).make_esc,s=r(42).HMAC_SHA256,l={1:{header:[479516638,1],salt_size:8,xsalsa20_rev:!0,kdf:{klass:u,opts:{c:1024,klass:d}},hmac_key_size:96,version:1},2:{header:[479516638,2],salt_size:16,xsalsa20_rev:!0,kdf:{klass:c,opts:{c:64,klass:d,N:12,r:8,p:1}},hmac_key_size:96,version:2},3:{header:[479516638,3],salt_size:16,xsalsa20_rev:!1,kdf:{klass:c,opts:{c:1,klass:s,N:15,r:8,p:1}},hmac_key_size:96,version:3}},t.CURRENT_VERSION=i=3,n=function(){function t(e){var t,r;if(t=e.key,r=e.version,this.version=l[null!=r?r:i],null==this.version)throw new Error(”unknown version: “+r);this.set_key(t),this.derived_keys={}}return t.prototype.kdf=function(t,r){var n,i,o,a,s,u,c,l,d,p,b,m,g,_,w,S,k;w=y.findDeferral(arguments),g=t.salt,a=t.extra_keymaterial,b=t.progress_hook,(k=this,function(e){S=new y.Deferrals(e,{parent:w,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Base.kdf“}),k._check_scrubbed(k.key,”in KDF“,r,S.defer({lineno:97})),S._fulfill()})(function(t){return function(){_=g.to_hex(),c=t.key.clone(),S=new y.Deferrals(function(){!function®{if(null!=(l=t.derived_keys[_]))return r();for(u in t._kdf=new t.version.kdf.klass(t.version.kdf.opts),d={hmac:t.version.hmac_key_size,aes:e.keySize,twofish:f.keySize,salsa20:v.Salsa20.keySize},p=[”hmac“,”aes“,”twofish“,”salsa20“],i=a||0,d)i+=d[u];n={dkLen:i,key:c,progress_hook:b,salt:g},function(e){S=new y.Deferrals(e,{parent:w,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Base.kdf“}),t._kdf.run(n,S.defer({assign_fn:function(){return m=arguments[0]},lineno:124})),S._fulfill()}(function(){var e,n;for(l={},s=0,e=0,n=p.length;eu.version.salt_size” bytes (got “o.length
”)“):u.salt=h.alloc(o));!function(e){var t;s=new y.Deferrals(e,{parent:a,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.resalt“}),u.rng(u.version.salt_size,s.defer({assign_fn:(t=u,function(){return t.salt=arguments[0]}),lineno:393})),s._fulfill()}(e)})(function(e){return function(){!function(t){if(null!=r)return t();!function(t){var o;s=new y.Deferrals(t,{parent:a,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.resalt“}),e.kdf({extra_keymaterial:n,progress_hook:i,salt:e.salt},s.defer({assign_fn:(o=e,function(){return r=arguments[0],o.keys=arguments[1]}),lineno:399})),s._fulfill()}(t)}(function(){return t(r,e.keys)})}}(this))},r.prototype.run=function(e,t){var r,n,i,o,a,s,u,c,f,l,d,p,b,g,v;b=y.findDeferral(arguments),o=e.data,d=e.salt,s=e.extra_keymaterial,c=e.progress_hook,a=m(t,”Encryptor::run“),(v=this,function(e){if(null==d&&null!=v.salt)return e();!function(e){g=new y.Deferrals(e,{parent:b,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.run“}),v.resalt({salt:d,extra_keymaterial:s,progress_hook:c},a(g.defer({lineno:430}))),g._fulfill()}(e)})(function(e){return function(){g=new y.Deferrals(function(){f=h.from_buffer(o),g=new y.Deferrals(function(){g=new y.Deferrals(function(){g=new y.Deferrals(function(){g=new y.Deferrals(function(){return l=new h(e.version.header).concat(e.salt).concat(p).concat(i).to_buffer(),_.scrub_buffer(o),t(null,l)},{parent:b,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.run“}),e.sign({input:i,key:e.keys.hmac,progress_hook:c,salt:e.salt},a(g.defer({assign_fn:function(){return p=arguments[0]},lineno:436}))),g._fulfill()},{parent:b,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.run“}),e.run_aes({input:n,key:e.keys.aes,progress_hook:c,iv:u.aes},a(g.defer({assign_fn:function(){return i=arguments[0]},lineno:435}))),g._fulfill()},{parent:b,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.run“}),e.run_twofish({input:r,key:e.keys.twofish,progress_hook:c,iv:u.twofish},a(g.defer({assign_fn:function(){return n=arguments[0]},lineno:434}))),g._fulfill()},{parent:b,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.run“}),e.run_salsa20({input:f,key:e.keys.salsa20,progress_hook:c,iv:u.salsa20,output_iv:!0},a(g.defer({assign_fn:function(){return r=arguments[0]},lineno:433}))),g._fulfill()},{parent:b,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“,funcname:”Encryptor.run“}),e.pick_random_ivs({progress_hook:c},g.defer({assign_fn:function(){return u=arguments[0]},lineno:431})),g._fulfill()}}(this))},r.prototype.clone=function(){var e,t,n;return(e=new r({key:null!=(t=this.key)?t.to_buffer():void 0,rng:this.rng,version:null!=(n=this.version)?n.version:void 0})).derived_keys=this.clone_derived_keys(),e},r}(),b=function(e,t){var r,n,i,o,s,u,c,f,l,h;l=y.findDeferral(arguments),o=e.key,r=e.data,c=e.rng,s=e.progress_hook,f=e.version,n=new a({key:o,rng:c,version:f}),function(e){h=new y.Deferrals(e,{parent:l,filename:”/Users/max/src/keybase/triplesec/src/enc.iced“}),n.run({data:r,progress_hook:s},h.defer({assign_fn:function(){return i=arguments[0],u=arguments[1]},lineno:475})),h._fulfill()}(function(){return n.scrub(),t(i,u)})},t.V=l,t.encrypt=b,t.Base=n,t.Encryptor=a}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,a,s,u,c,f,l,h,d=[].slice;n=r(115),o=function(e,t,r,i,o){var a,s,u,f;for(a in u={},i)f=i[a],u[a]=f;return u[n.lineno]=null!=t?t[n.lineno]:void 0,(s=function(){var n,i,a;return n=1<=arguments.length?d.call(arguments,0):[],null!=t&&null!=(a=t.assign_fn)&&a.apply(null,n),e?(i=e,o||(e=null),i._fulfill(r,u)):c("overused deferral at "+h(u))})[n.trace]=u,s},l=0,s=function(e){return++l%e==0&&(l=0,!0)},f=null,h=function(e){return(e[n.funcname]||"”)+“ (”e[n.filename]
“:”+(e1)
“)”},c=function(e){return“undefined”!=typeof console&&null!==console?console.error(“ICED warning: ”+e):void 0},t.trampoline=u=function(t){return s(500)?null!=(null!=e?e.nextTick:void 0)?e.nextTick(t):setTimeout(t):t()},t.Deferrals=function(){function e(e,t){this.trace=t,this.continuation=e,this.count=1,this.ret=null}return e.prototype._call=function(e){var t;return this.continuation?(f=e,t=this.continuation,this.continuation=null,t(this.ret)):c(“Entered dead await at ”+h(e))},e.prototype._fulfill=function(e,t){if(!(–this.count>0))return u((r=this,function(){return r._call(t)}));var r},e.prototype.defer=function(e){return this.count++,this,o(this,e,null,this.trace)},e}(),t.findDeferral=function(e){var t,r,i;for(r=0,i=e.length;ro;n=0<=o?++i:--i)s(r,e,n,1),this.salsa20_8(r),a(t,r,n,0,1);for(n=0;n(n=4294967295)?new Error(“asked for too much data”):this.r*this.p>=1<<30?new Error("r & p are too big"):(this.r>n/128/this.p||this.r>n/256||this.N>n/128/this.r)&&new Error(“N is too big”),a=new Int32Array(64*this.r),i=new Int32Array(32*this.r*this.N),f=function(e){return e.what+=“ (pass 1)”,“function”==typeof p?p(e):void 0},(w=this,function(e){g=new l.Deferrals(e,{parent:m,filename:“/Users/max/src/keybase/triplesec/src/scrypt.iced”,funcname:“Scrypt.run”}),w.pbkdf2({key:c.clone(),salt:y,dkLen:128*w.r*w.p,c:w.c0,progress_hook:f},g.defer({assign_fn:function(){return r=arguments[0]},lineno:214})),g._fulfill()})(function(e){return function(){var n;r=new Int32Array(r.words),b®,f=function(t){return function®{return“function”==typeof p?p({i:r+t*e.N*2,what:“scrypt”,total:e.p*e.N*2}):void 0}},u=0,0,v=e.p,_=v>0,(n=function(t){var o,s;if(o=t,s=function(){return l.trampoline(function(){return _?u+=1:u-=1,n(t)})},!0===_&&u>=e.p||!1===_&&u<=e.p)return o();!function(t){g=new l.Deferrals(t,{parent:m,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.smix({B:r.subarray(32*e.r*u),V:i,XY:a,progress_hook:f(u)},g.defer({lineno:221})),g._fulfill()}(s)})(function(){b(r),f=function(e){return e.what+=" (pass 2)","function"==typeof p?p(e):void 0},g=new l.Deferrals(function(){return d(a),d(i),d(r),c.scrub(),t(h)},{parent:m,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.pbkdf2({key:c,salt:o.from_i32a(r),dkLen:s,c:e.c1,progress_hook:f},g.defer({assign_fn:function(){return h=arguments[0]},lineno:229})),g._fulfill()})}}(this))},t}(),p=function(e,t){var r,n,o,a,s,u,c,f,h,d,p,b,y,m,g;m=l.findDeferral(arguments),c=e.key,b=e.salt,p=e.r,r=e.N,h=e.p,o=e.c0,a=e.c1,n=e.c,f=e.klass,d=e.progress_hook,s=e.dkLen,u=new i({r:p,N:r,p:h,c:n,c0:o,c1:a,klass:f}),function(e){g=new l.Deferrals(e,{parent:m,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced"}),u.run({key:c,salt:b,progress_hook:d,dkLen:s},g.defer({assign_fn:function(){return y=arguments[0]},lineno:259})),g._fulfill()}(function(){return t(y)})},t.Scrypt=i,t.scrypt=p,t.v_endian_reverse=b}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,g,v;if(c=r(12),function(){},l=r(499),n=r(501).ADRBG,o=r(8).WordArray,a=r(78).XOR,p=r(13),b=null,s=function(t){var r;return r=new Uint8Array(t),b(r),new e(r)},null!=(b=null!=(f="undefined"!=typeof window&&null!==window&&null!=(g=window.crypto)?g.getRandomValues:void 0)?f.bind(window.crypto):null!=(f="undefined"!=typeof window&&null!==window&&null!=(v=window.msCrypto)?v.getRandomValues:void 0)?f.bind(window.msCrypto):null))y=s;else try{null!=(d=r(31).rng)&&(y=d)}catch(e){e}h=function(e){if(null==y)throw new Error('No rng found; tried requiring "crypto" and window.crypto');return y(e)},i=function(){function t(){var e;this.meg=new l.Generator,this.adrbg=new n((e=this,function(t,r){return e.gen_seed(t,r)}),a.sign)}return t.prototype.now_to_buffer=function(){var t,r,n,i;return n=(r=Date.now())%1e3,i=Math.floor(r/1e3),(t=new e(8)).writeUInt32BE(i,0),t.writeUInt32BE(n,4),t},t.prototype.gen_seed=function(t,r){var n,i,a,s,u,f,l,d,b;l=c.findDeferral(arguments),s=t/8,(i=[]).push(this.now_to_buffer()),(b=this,function(e){d=new c.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/triplesec/src/prng.iced",funcname:"PRNG.gen_seed"}),b.meg.generate(t,d.defer({assign_fn:function(){return f=arguments[0]},lineno:83})),d._fulfill()})(function(t){return function(){var c,l;for(i.push(t.now_to_buffer()),i.push(new e(f)),i.push(h(s)),i.push(t.now_to_buffer()),a=e.concat(i),u=o.from_buffer(a),p.scrub_buffer(a),c=0,l=i.length;ct“: ”